Skip to content

Commit

Permalink
Merge pull request #10 from netskopeoss/beta
Browse files Browse the repository at this point in the history
Beta
  • Loading branch information
jadrianNS authored Apr 19, 2024
2 parents 4cf0b94 + bc9c822 commit d991586
Show file tree
Hide file tree
Showing 415 changed files with 27,311 additions and 16,053 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/sdk_generation.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Generate
permissions:
checks: write
contents: write
pull-requests: write
statuses: write
"on":
workflow_dispatch:
inputs:
force:
description: Force generation of SDKs
type: boolean
default: false
schedule:
- cron: 0 0 * * *
jobs:
generate:
uses: speakeasy-api/sdk-generation-action/.github/workflows/workflow-executor.yaml@v15
with:
force: ${{ github.event.inputs.force }}
mode: pr
speakeasy_version: latest
secrets:
github_access_token: ${{ secrets.GITHUB_TOKEN }}
speakeasy_api_key: ${{ secrets.SPEAKEASY_API_KEY }}
42 changes: 42 additions & 0 deletions .github/workflows/terraform_release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# Terraform Provider release workflow.
name: Release

# This GitHub action creates a release when a tag that matches the pattern
# "v*" (e.g. v0.1.0) is created.
on:
push:
tags:
- 'v0.0.*'
workflow_dispatch:

# Releases need permissions to read and write the repository contents.
# GitHub considers creating releases and uploading assets as writing contents.
permissions:
contents: write

jobs:
goreleaser:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@8f4b7f84864484a7bf31766abe9204da3cbe65b3 # v3.5.0
with:
# Allow goreleaser to access older tag information.
fetch-depth: 0
- uses: actions/setup-go@4d34df0c2316fe8122ab82dc22947d607c0c91f9 # v4.0.0
with:
go-version-file: 'go.mod'
cache: true
- name: Import GPG key
uses: crazy-max/ghaction-import-gpg@111c56156bcc6918c056dbef52164cfa583dc549 # v5.2.0
id: import_gpg
with:
gpg_private_key: ${{ secrets.terraform_gpg_secret_key }}
passphrase: ${{ secrets.terraform_gpg_passphrase }}
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@f82d6c1c344bcacabba2c841718984797f664a6b # v4.2.0
with:
args: release --clean
env:
# GitHub sets the GITHUB_TOKEN secret automatically.
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GPG_FINGERPRINT: ${{ steps.import_gpg.outputs.fingerprint }}
372 changes: 372 additions & 0 deletions .speakeasy/gen.lock

Large diffs are not rendered by default.

27 changes: 27 additions & 0 deletions .speakeasy/gen.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
configVersion: 2.0.0
generation:
sdkClassName: terraform-provider-ns
maintainOpenAPIOrder: true
usageSnippets:
optionalPropertyRendering: withExample
useClassNamesForArrayFields: true
fixes:
nameResolutionDec2023: true
parameterOrderingFeb2024: true
requestResponseComponentNamesFeb2024: true
auth:
oAuth2ClientCredentialsEnabled: true
terraform:
version: 0.0.1
author: speakeasy
imports:
option: openapi
paths:
callbacks: callbacks
errors: sdkerrors
operations: operations
shared: shared
webhooks: webhooks
inputModelSuffix: input
outputModelSuffix: output
packageName: terraform
25 changes: 25 additions & 0 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
speakeasyVersion: 1.264.1
sources: {}
targets: {}
workflow:
workflowVersion: 1.0.0
speakeasyVersion: latest
sources:
openapi:
inputs:
- location: /Users/jadrian/speakeasy/netskope-apiv2-oas/base_oas.yaml
- location: /Users/jadrian/speakeasy/netskope-apiv2-oas/endpoints/infrastructure/npa_publisher.yaml
- location: /Users/jadrian/speakeasy/netskope-apiv2-oas/endpoints/infrastructure/npa_upgrade_profiles.yaml
- location: /Users/jadrian/speakeasy/netskope-apiv2-oas/endpoints/policy/npa_policy.yaml
- location: /Users/jadrian/speakeasy/netskope-apiv2-oas/endpoints/policy/npa_policygroup.yaml
- location: /Users/jadrian/speakeasy/netskope-apiv2-oas/endpoints/steering/npa_apps_private.yaml
- location: /Users/jadrian/speakeasy/netskope-apiv2-oas/endpoints/steering/npa_private_tag.yaml
- location: /Users/jadrian/speakeasy/netskope-apiv2-oas/endpoints/steering/gre.yaml
- location: /Users/jadrian/speakeasy/netskope-apiv2-oas/endpoints/steering/ipsec.yaml
- location: /Users/jadrian/speakeasy/netskope-apiv2-oas/endpoints/scim/scim-apis.yaml
overlays:
- location: /Users/jadrian/speakeasy/netskope-apiv2-oas/terraform_overlay.yaml
targets:
first-target:
target: terraform
source: openapi
21 changes: 21 additions & 0 deletions .speakeasy/workflow.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
workflowVersion: 1.0.0
speakeasyVersion: latest
sources:
openapi:
inputs:
- location: /Users/jadrian/speakeasy/netskope-apiv2-oas/base_oas.yaml
- location: /Users/jadrian/speakeasy/netskope-apiv2-oas/endpoints/infrastructure/npa_publisher.yaml
- location: /Users/jadrian/speakeasy/netskope-apiv2-oas/endpoints/infrastructure/npa_upgrade_profiles.yaml
- location: /Users/jadrian/speakeasy/netskope-apiv2-oas/endpoints/policy/npa_policy.yaml
- location: /Users/jadrian/speakeasy/netskope-apiv2-oas/endpoints/policy/npa_policygroup.yaml
- location: /Users/jadrian/speakeasy/netskope-apiv2-oas/endpoints/steering/npa_apps_private.yaml
- location: /Users/jadrian/speakeasy/netskope-apiv2-oas/endpoints/steering/npa_private_tag.yaml
- location: /Users/jadrian/speakeasy/netskope-apiv2-oas/endpoints/steering/gre.yaml
- location: /Users/jadrian/speakeasy/netskope-apiv2-oas/endpoints/steering/ipsec.yaml
- location: /Users/jadrian/speakeasy/netskope-apiv2-oas/endpoints/scim/scim-apis.yaml
overlays:
- location: /Users/jadrian/speakeasy/netskope-apiv2-oas/terraform_overlay.yaml
targets:
first-target:
target: terraform
source: openapi
43 changes: 0 additions & 43 deletions Makefile

This file was deleted.

45 changes: 0 additions & 45 deletions POCScope.md

This file was deleted.

62 changes: 0 additions & 62 deletions POCValidation.md

This file was deleted.

Loading

0 comments on commit d991586

Please sign in to comment.