Skip to content

Commit

Permalink
generate from merged file
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasRooney committed Nov 5, 2023
1 parent a91307c commit bcee221
Show file tree
Hide file tree
Showing 245 changed files with 37,379 additions and 4,996 deletions.
File renamed without changes.
11 changes: 3 additions & 8 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
.terraform
.terraform*
*.tfstate*
# If you prefer the allow list template instead of the deny list, see community template:
# https://github.com/github/gitignore/blob/main/community/Golang/Go.AllowList.gitignore
#
Expand All @@ -7,26 +10,18 @@
*.dll
*.so
*.dylib

# Test binary, built with `go test -c`
*.test

# Output of the go coverage tool, specifically when used with LiteIDE
*.out

# Dependency directories (remove the comment below to include it)
# vendor/

# Go workspace file
go.work

# JetBrains IDE files
*.iml


#OSX files
.DS_Store

#Local testing folders
test/
testing/
10 changes: 4 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,13 @@ all: terraform-provider-ns-npa-publisher
docs:
go generate ./...

terraform-provider-ns-npa-publisher: terraform-provider-ns-npa-publisher/npa_publisher.yaml
terraform-provider-ns-npa-publisher: netskope.yaml
# speakeasy generate sdk --lang terraform -o terraform-provider-ns-npa-publisher -s terraform-provider-ns-npa-publisher/npa_publisher.yaml
go run ../../cmd/generate/main.go -l terraform -o terraform-provider-ns-npa-publisher -s terraform-provider-ns-npa-publisher/npa_publisher.yaml
go run ../../cmd/generate/main.go -l terraform -o . -s netskope.yaml


terraform-provider-ns-npa-publisher/npa_publisher.yaml: check-speakeasy check-local-oas
mkdir -p terraform-provider-ns-npa-publisher
cp ${NETSKOPE_LOCAL_OAS_REPO}/endpoints/infrastructure/npa_publisher.yaml terraform-provider-ns-npa-publisher/npa_publisher.yaml
speakeasy overlay apply -s ${NETSKOPE_LOCAL_OAS_REPO}/endpoints/infrastructure/npa_publisher.yaml -o ${NETSKOPE_LOCAL_OAS_REPO}/endpoints/infrastructure/npa_publisher_tf.yaml > terraform-provider-ns-npa-publisher/npa_publisher.yaml
netskope.yaml: check-speakeasy check-local-oas
speakeasy overlay apply -s ${NETSKOPE_LOCAL_OAS_REPO}/base_oas.yaml -o ${NETSKOPE_LOCAL_OAS_REPO}/terraform_overlay.yaml > netskope.yaml

check-speakeasy:
@command -v speakeasy >/dev/null 2>&1 || { echo >&2 "speakeasy CLI is not installed. Please install before continuing."; exit 1; }
Expand Down
4 changes: 2 additions & 2 deletions POCScope.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ Defined:
- [x] infrastructure/publishers/{id}/apps get `NPAPublisherApps#read`
- [x] infrastructure/publishers/bulk put `NPAPublisherBulkUpgrade#create`
- [x] infrastructure/publishers/releases get `NPAPublisherReleases#read`
- [x] infrastructure/publishers/alertsconfiguration get `NPAPublisherAlerts#read` # Note -- requires unreleased CLI version
- [ ] infrastructure/publishers/alertsconfiguration put `NPAPublisherAlerts#create`
- [x] infrastructure/publishers/alertsconfiguration get `NPAPublisherAlertsList#read` # Note -- requires unreleased CLI version
- [x] infrastructure/publishers/alertsconfiguration put `NPAPublisherAlerts#create`
- [ ] infrastructure/publisherupgradeprofiles get
- [ ] infrastructure/publisherupgradeprofiles post
- [ ] infrastructure/publisherupgradeprofiles/{id} delete
Expand Down
15 changes: 14 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,14 @@
# terraform-provider-ns
# terraform-provider-n

<!-- No SDK Installation -->
<!-- No SDK Example Usage -->
<!-- No SDK Available Operations -->


<!-- Start Dev Containers -->

<!-- End Dev Containers -->

<!-- Placeholder for Future Speakeasy SDK Sections -->

s
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
---
# generated by https://github.com/hashicorp/terraform-plugin-docs
page_title: "npa-publisher_npa_publisher Data Source - terraform-provider-ns-npa-publisher"
page_title: "ns_npa_publisher Data Source - terraform-provider-ns"
subcategory: ""
description: |-
NPAPublisher DataSource
---

# npa-publisher_npa_publisher (Data Source)
# ns_npa_publisher (Data Source)

NPAPublisher DataSource

## Example Usage

```terraform
data "npa-publisher_npa_publisher" "my_npapublisher" {
id = 8
data "ns_npa_publisher" "my_npapublisher" {
id = 9
}
```

Expand Down
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
---
# generated by https://github.com/hashicorp/terraform-plugin-docs
page_title: "npa-publisher_npa_publisher_alerts Data Source - terraform-provider-ns-npa-publisher"
page_title: "ns_npa_publisher_alerts_list Data Source - terraform-provider-ns"
subcategory: ""
description: |-
NPAPublisherAlerts DataSource
NPAPublisherAlertsList DataSource
---

# npa-publisher_npa_publisher_alerts (Data Source)
# ns_npa_publisher_alerts_list (Data Source)

NPAPublisherAlerts DataSource
NPAPublisherAlertsList DataSource

## Example Usage

```terraform
data "npa-publisher_npa_publisher_alerts" "my_npapublisheralerts" {
data "ns_npa_publisher_alerts_list" "my_npapublisheralertslist" {
}
```

Expand Down
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
---
# generated by https://github.com/hashicorp/terraform-plugin-docs
page_title: "npa-publisher_npa_publisher_apps Data Source - terraform-provider-ns-npa-publisher"
page_title: "ns_npa_publisher_apps Data Source - terraform-provider-ns"
subcategory: ""
description: |-
NPAPublisherApps DataSource
---

# npa-publisher_npa_publisher_apps (Data Source)
# ns_npa_publisher_apps (Data Source)

NPAPublisherApps DataSource

## Example Usage

```terraform
data "npa-publisher_npa_publisher_apps" "my_npapublisherapps" {
publisher_id = 9
data "ns_npa_publisher_apps" "my_npapublisherapps" {
publisher_id = 4
}
```

Expand Down
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
---
# generated by https://github.com/hashicorp/terraform-plugin-docs
page_title: "npa-publisher_npa_publisher_releases Data Source - terraform-provider-ns-npa-publisher"
page_title: "ns_npa_publisher_releases Data Source - terraform-provider-ns"
subcategory: ""
description: |-
NPAPublisherReleases DataSource
---

# npa-publisher_npa_publisher_releases (Data Source)
# ns_npa_publisher_releases (Data Source)

NPAPublisherReleases DataSource

## Example Usage

```terraform
data "npa-publisher_npa_publisher_releases" "my_npapublisherreleases" {
data "ns_npa_publisher_releases" "my_npapublisherreleases" {
fields = "...my_fields..."
}
```
Expand Down
42 changes: 42 additions & 0 deletions docs/data-sources/npa_publisher_upgrade_profiles.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
---
# generated by https://github.com/hashicorp/terraform-plugin-docs
page_title: "ns_npa_publisher_upgrade_profiles Data Source - terraform-provider-ns"
subcategory: ""
description: |-
NPAPublisherUpgradeProfiles DataSource
---

# ns_npa_publisher_upgrade_profiles (Data Source)

NPAPublisherUpgradeProfiles DataSource

## Example Usage

```terraform
data "ns_npa_publisher_upgrade_profiles" "my_npapublisherupgradeprofiles" {
}
```

<!-- schema generated by tfplugindocs -->
## Schema

### Read-Only

- `data` (Attributes) (see [below for nested schema](#nestedatt--data))
- `status` (String) must be one of ["success", "not found"]
- `total` (Number)

<a id="nestedatt--data"></a>
### Nested Schema for `data`

Read-Only:

- `docker_tag` (String)
- `enabled` (Number)
- `frequency` (String)
- `id` (Number)
- `name` (String)
- `release_type` (String)
- `timezone` (String)


Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
---
# generated by https://github.com/hashicorp/terraform-plugin-docs
page_title: "npa-publisher_npa_publishers Data Source - terraform-provider-ns-npa-publisher"
page_title: "ns_npa_publishers Data Source - terraform-provider-ns"
subcategory: ""
description: |-
NPAPublishers DataSource
---

# npa-publisher_npa_publishers (Data Source)
# ns_npa_publishers (Data Source)

NPAPublishers DataSource

## Example Usage

```terraform
data "npa-publisher_npa_publishers" "my_npapublishers" {
data "ns_npa_publishers" "my_npapublishers" {
fields = "...my_fields..."
}
```
Expand Down Expand Up @@ -64,10 +64,10 @@ Read-Only:

Read-Only:

- `assessment` (Attributes) (see [below for nested schema](#nestedatt--data--publishers--assessment--assessment))
- `get_infrastructure_publishers_npa_publishers_assessment` (Attributes) (see [below for nested schema](#nestedatt--data--publishers--assessment--get_infrastructure_publishers_npa_publishers_assessment))
- `two` (Attributes) (see [below for nested schema](#nestedatt--data--publishers--assessment--two))

<a id="nestedatt--data--publishers--assessment--assessment"></a>
<a id="nestedatt--data--publishers--assessment--get_infrastructure_publishers_npa_publishers_assessment"></a>
### Nested Schema for `data.publishers.assessment.two`

Read-Only:
Expand All @@ -90,11 +90,11 @@ Read-Only:

Read-Only:

- `get_infrastructure_publishers_2` (Attributes) (see [below for nested schema](#nestedatt--data--publishers--stitcher_id--get_infrastructure_publishers_2))
- `integer` (Number)
- `publisher_2` (Attributes) (see [below for nested schema](#nestedatt--data--publishers--stitcher_id--publisher_2))

<a id="nestedatt--data--publishers--stitcher_id--publisher_2"></a>
### Nested Schema for `data.publishers.stitcher_id.publisher_2`
<a id="nestedatt--data--publishers--stitcher_id--get_infrastructure_publishers_2"></a>
### Nested Schema for `data.publishers.stitcher_id.integer`



Expand All @@ -103,15 +103,15 @@ Read-Only:

Read-Only:

- `publisher_schemas_2` (Attributes) (see [below for nested schema](#nestedatt--data--publishers--upgrade_failed_reason--publisher_schemas_2))
- `upgrade_failed_reason` (Attributes) (see [below for nested schema](#nestedatt--data--publishers--upgrade_failed_reason--upgrade_failed_reason))
- `get_infrastructure_publishers_npa_publishers_2` (Attributes) (see [below for nested schema](#nestedatt--data--publishers--upgrade_failed_reason--get_infrastructure_publishers_npa_publishers_2))
- `get_infrastructure_publishers_npa_publishers_upgrade_failed_reason` (Attributes) (see [below for nested schema](#nestedatt--data--publishers--upgrade_failed_reason--get_infrastructure_publishers_npa_publishers_upgrade_failed_reason))

<a id="nestedatt--data--publishers--upgrade_failed_reason--publisher_schemas_2"></a>
### Nested Schema for `data.publishers.upgrade_failed_reason.upgrade_failed_reason`
<a id="nestedatt--data--publishers--upgrade_failed_reason--get_infrastructure_publishers_npa_publishers_2"></a>
### Nested Schema for `data.publishers.upgrade_failed_reason.get_infrastructure_publishers_npa_publishers_upgrade_failed_reason`


<a id="nestedatt--data--publishers--upgrade_failed_reason--upgrade_failed_reason"></a>
### Nested Schema for `data.publishers.upgrade_failed_reason.upgrade_failed_reason`
<a id="nestedatt--data--publishers--upgrade_failed_reason--get_infrastructure_publishers_npa_publishers_upgrade_failed_reason"></a>
### Nested Schema for `data.publishers.upgrade_failed_reason.get_infrastructure_publishers_npa_publishers_upgrade_failed_reason`

Read-Only:

Expand Down
14 changes: 7 additions & 7 deletions ...m-provider-ns-npa-publisher/docs/index.md → docs/index.md
Original file line number Diff line number Diff line change
@@ -1,28 +1,28 @@
---
# generated by https://github.com/hashicorp/terraform-plugin-docs
page_title: "ns-npa-publisher Provider"
page_title: "ns Provider"
subcategory: ""
description: |-
npa_publisher: NPA publisher CRUD operations.
Netskope Terraform Provider: Combined specification to produce netskope terraform provider via speakeasy
---

# ns-npa-publisher Provider
# ns Provider

npa_publisher: NPA publisher CRUD operations.
Netskope Terraform Provider: Combined specification to produce netskope terraform provider via speakeasy

## Example Usage

```terraform
terraform {
required_providers {
npa-publisher = {
source = "netskope/npa-publisher"
ns = {
source = "netskope/ns"
version = "0.0.1"
}
}
}
provider "npa-publisher" {
provider "ns" {
# Configuration options
}
```
Expand Down
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
---
# generated by https://github.com/hashicorp/terraform-plugin-docs
page_title: "npa-publisher_npa_publisher Resource - terraform-provider-ns-npa-publisher"
page_title: "ns_npa_publisher Resource - terraform-provider-ns"
subcategory: ""
description: |-
NPAPublisher Resource
---

# npa-publisher_npa_publisher (Resource)
# ns_npa_publisher (Resource)

NPAPublisher Resource

## Example Usage

```terraform
resource "npa-publisher_npa_publisher" "my_npapublisher" {
resource "ns_npa_publisher" "my_npapublisher" {
lbrokerconnect = true
name = "Mr. Bessie Hickle DVM"
publisher_upgrade_profiles_id = 5
name = "Miss Arnold Runolfsdottir V"
publisher_upgrade_profiles_id = 2
tags = [
{
tag_id = 9
Expand Down
Loading

0 comments on commit bcee221

Please sign in to comment.