Skip to content

Commit

Permalink
Upgrade terraform-provider-auth0 to v1.2.1 (#554)
Browse files Browse the repository at this point in the history
This PR was generated via `$ upgrade-provider pulumi/pulumi-auth0
--kind=all --target-bridge-version=latest`.

---

- Updating Java Gen version from 0.11.0 to 0.12.0.
- Upgrading terraform-provider-auth0 from 1.2.0  to 1.2.1.
	Fixes #553
  • Loading branch information
pulumi-bot authored Jun 3, 2024
1 parent 4c212ba commit c3ad15b
Show file tree
Hide file tree
Showing 16 changed files with 449 additions and 99 deletions.
2 changes: 1 addition & 1 deletion .pulumi-java-gen.version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.11.0
0.12.0
4 changes: 2 additions & 2 deletions provider/cmd/pulumi-resource-auth0/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -9467,7 +9467,7 @@
}
},
"auth0:index/rolePermission:RolePermission": {
"description": "With this resource, you can manage role permissions (1-1).\n\n!\u003e This resource appends a permission to a role. In contrast, the `auth0.RolePermissions` resource manages all the\npermissions assigned to a role. To avoid potential issues, it is recommended not to use this resource in conjunction\nwith the `auth0.RolePermissions` resource when managing permissions for the same role id.\n",
"description": "With this resource, you can manage role permissions (1-1).\n\n!\u003e This resource appends a permission to a role. In contrast, the `auth0.RolePermissions` resource manages all the\npermissions assigned to a role. To avoid potential issues, it is recommended not to use this resource in conjunction\nwith the `auth0.RolePermissions` resource when managing permissions for the same role id.\n\n## Import\n\nThis resource can be imported by specifying the\n\nrole ID, resource identifier, and permission name separated by \"::\" (note the double colon)\n\n\u003croleID\u003e::\u003cresourceServerIdentifier\u003e::\u003cpermission\u003e\n\n#\n\nExample:\n\n```sh\n$ pulumi import auth0:index/rolePermission:RolePermission permission \"rol_XXXXXXXXXXXXX::https://example.com::read:foo\"\n```\n\n",
"properties": {
"description": {
"type": "string",
Expand Down Expand Up @@ -9550,7 +9550,7 @@
}
},
"auth0:index/rolePermissions:RolePermissions": {
"description": "With this resource, you can manage role permissions (1-many).\n\n!\u003e This resource manages all the permissions assigned to a role. In contrast, the `auth0.RolePermission` resource only\nappends a permission to a role. To avoid potential issues, it is recommended not to use this resource in conjunction\nwith the `auth0.RolePermission` resource when managing permissions for the same role id.\n",
"description": "With this resource, you can manage role permissions (1-many).\n\n!\u003e This resource manages all the permissions assigned to a role. In contrast, the `auth0.RolePermission` resource only\nappends a permission to a role. To avoid potential issues, it is recommended not to use this resource in conjunction\nwith the `auth0.RolePermission` resource when managing permissions for the same role id.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as auth0 from \"@pulumi/auth0\";\n\n// Example:\nconst resourceServer = new auth0.ResourceServer(\"resource_server\", {\n name: \"test\",\n identifier: \"test.example.com\",\n});\nconst resourceServerScopes = new auth0.ResourceServerScopes(\"resource_server_scopes\", {\n resourceServerIdentifier: resourceServer.identifier,\n scopes: [\n {\n name: \"store:create\",\n },\n {\n name: \"store:read\",\n },\n {\n name: \"store:update\",\n },\n {\n name: \"store:delete\",\n },\n ],\n});\nconst myRole = new auth0.Role(\"my_role\", {name: \"My Role\"});\nconst myRolePerms = new auth0.RolePermissions(\"my_role_perms\", {\n permissions: resourceServer.identifier.apply(identifier =\u003e .map(entry =\u003e ({\n name: entry.value.name,\n resourceServerIdentifier: identifier,\n }))),\n roleId: myRole.id,\n});\n```\n```python\nimport pulumi\nimport pulumi_auth0 as auth0\n\n# Example:\nresource_server = auth0.ResourceServer(\"resource_server\",\n name=\"test\",\n identifier=\"test.example.com\")\nresource_server_scopes = auth0.ResourceServerScopes(\"resource_server_scopes\",\n resource_server_identifier=resource_server.identifier,\n scopes=[\n auth0.ResourceServerScopesScopeArgs(\n name=\"store:create\",\n ),\n auth0.ResourceServerScopesScopeArgs(\n name=\"store:read\",\n ),\n auth0.ResourceServerScopesScopeArgs(\n name=\"store:update\",\n ),\n auth0.ResourceServerScopesScopeArgs(\n name=\"store:delete\",\n ),\n ])\nmy_role = auth0.Role(\"my_role\", name=\"My Role\")\nmy_role_perms = auth0.RolePermissions(\"my_role_perms\",\n permissions=resource_server.identifier.apply(lambda identifier: [{\n \"name\": entry[\"value\"],\n \"resourceServerIdentifier\": identifier,\n } for entry in resource_server_scopes.scopes.apply(lambda scopes: [{\"key\": k, \"value\": v} for k, v in scopes])]),\n role_id=my_role.id)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Auth0 = Pulumi.Auth0;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n // Example:\n var resourceServer = new Auth0.ResourceServer(\"resource_server\", new()\n {\n Name = \"test\",\n Identifier = \"test.example.com\",\n });\n\n var resourceServerScopes = new Auth0.ResourceServerScopes(\"resource_server_scopes\", new()\n {\n ResourceServerIdentifier = resourceServer.Identifier,\n Scopes = new[]\n {\n new Auth0.Inputs.ResourceServerScopesScopeArgs\n {\n Name = \"store:create\",\n },\n new Auth0.Inputs.ResourceServerScopesScopeArgs\n {\n Name = \"store:read\",\n },\n new Auth0.Inputs.ResourceServerScopesScopeArgs\n {\n Name = \"store:update\",\n },\n new Auth0.Inputs.ResourceServerScopesScopeArgs\n {\n Name = \"store:delete\",\n },\n },\n });\n\n var myRole = new Auth0.Role(\"my_role\", new()\n {\n Name = \"My Role\",\n });\n\n var myRolePerms = new Auth0.RolePermissions(\"my_role_perms\", new()\n {\n Permissions = resourceServer.Identifier.Apply(identifier =\u003e ),\n RoleId = myRole.Id,\n });\n\n});\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n## Import\n\nThis resource can be imported by specifying the role ID\n\n#\n\nExample:\n\n```sh\n$ pulumi import auth0:index/rolePermissions:RolePermissions all_role_permissions \"rol_XXXXXXXXXXXX\"\n```\n\n",
"properties": {
"permissions": {
"type": "array",
Expand Down
69 changes: 34 additions & 35 deletions provider/go.mod
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
module github.com/pulumi/pulumi-auth0/provider/v3

go 1.21.0
go 1.22

toolchain go1.21.5
toolchain go1.22.3

replace (
github.com/auth0/terraform-provider-auth0 => ../upstream
Expand All @@ -19,8 +19,7 @@ require (

require (
cloud.google.com/go v0.112.1 // indirect
cloud.google.com/go/compute v1.25.0 // indirect
cloud.google.com/go/compute/metadata v0.2.3 // indirect
cloud.google.com/go/compute/metadata v0.3.0 // indirect
cloud.google.com/go/iam v1.1.6 // indirect
cloud.google.com/go/kms v1.15.7 // indirect
cloud.google.com/go/logging v1.9.0 // indirect
Expand All @@ -33,22 +32,22 @@ require (
github.com/Azure/azure-sdk-for-go/sdk/keyvault/azkeys v0.10.0 // indirect
github.com/Azure/azure-sdk-for-go/sdk/keyvault/internal v0.7.1 // indirect
github.com/AzureAD/microsoft-authentication-library-for-go v1.2.2 // indirect
github.com/BurntSushi/toml v1.2.1 // indirect
github.com/BurntSushi/toml v1.4.0 // indirect
github.com/Masterminds/goutils v1.1.1 // indirect
github.com/Masterminds/semver v1.5.0 // indirect
github.com/Masterminds/semver/v3 v3.2.0 // indirect
github.com/Masterminds/semver/v3 v3.2.1 // indirect
github.com/Masterminds/sprig/v3 v3.2.3 // indirect
github.com/Microsoft/go-winio v0.6.1 // indirect
github.com/ProtonMail/go-crypto v1.1.0-alpha.0 // indirect
github.com/PuerkitoBio/rehttp v1.3.0 // indirect
github.com/ProtonMail/go-crypto v1.1.0-alpha.2 // indirect
github.com/PuerkitoBio/rehttp v1.4.0 // indirect
github.com/aead/chacha20 v0.0.0-20180709150244-8b13a72661da // indirect
github.com/agext/levenshtein v1.2.3 // indirect
github.com/apparentlymart/go-cidr v1.1.0 // indirect
github.com/apparentlymart/go-textseg/v15 v15.0.0 // indirect
github.com/armon/go-metrics v0.4.0 // indirect
github.com/armon/go-radix v1.0.0 // indirect
github.com/atotto/clipboard v0.1.4 // indirect
github.com/auth0/go-auth0 v1.4.1 // indirect
github.com/auth0/go-auth0 v1.6.0 // indirect
github.com/aws/aws-sdk-go v1.50.36 // indirect
github.com/aws/aws-sdk-go-v2 v1.26.1 // indirect
github.com/aws/aws-sdk-go-v2/config v1.27.11 // indirect
Expand All @@ -73,7 +72,7 @@ require (
github.com/charmbracelet/bubbletea v0.24.2 // indirect
github.com/charmbracelet/lipgloss v0.7.1 // indirect
github.com/cheggaaa/pb v1.0.29 // indirect
github.com/cloudflare/circl v1.3.7 // indirect
github.com/cloudflare/circl v1.3.8 // indirect
github.com/containerd/console v1.0.4-0.20230313162750-1ae8d489ac81 // indirect
github.com/cyphar/filepath-securejoin v0.2.4 // indirect
github.com/davecgh/go-spew v1.1.1 // indirect
Expand All @@ -82,7 +81,7 @@ require (
github.com/edsrzf/mmap-go v1.1.0 // indirect
github.com/emirpasic/gods v1.18.1 // indirect
github.com/ettle/strcase v0.1.1 // indirect
github.com/fatih/color v1.16.0 // indirect
github.com/fatih/color v1.17.0 // indirect
github.com/felixge/httpsnoop v1.0.4 // indirect
github.com/gedex/inflector v0.0.0-20170307190818-16278e9db813 // indirect
github.com/go-git/gcfg v1.5.1-0.20230307220236-3a3c6141e376 // indirect
Expand Down Expand Up @@ -111,10 +110,10 @@ require (
github.com/hashicorp/go-cleanhttp v0.5.2 // indirect
github.com/hashicorp/go-cty v1.4.1-0.20200414143053-d3edf31b6320 // indirect
github.com/hashicorp/go-getter v1.7.1 // indirect
github.com/hashicorp/go-hclog v1.5.0 // indirect
github.com/hashicorp/go-hclog v1.6.3 // indirect
github.com/hashicorp/go-immutable-radix v1.3.1 // indirect
github.com/hashicorp/go-multierror v1.1.1 // indirect
github.com/hashicorp/go-plugin v1.6.0 // indirect
github.com/hashicorp/go-plugin v1.6.1 // indirect
github.com/hashicorp/go-retryablehttp v0.7.1 // indirect
github.com/hashicorp/go-rootcerts v1.0.2 // indirect
github.com/hashicorp/go-safetemp v1.0.0 // indirect
Expand All @@ -123,20 +122,20 @@ require (
github.com/hashicorp/go-secure-stdlib/strutil v0.1.2 // indirect
github.com/hashicorp/go-sockaddr v1.0.2 // indirect
github.com/hashicorp/go-uuid v1.0.3 // indirect
github.com/hashicorp/go-version v1.6.0 // indirect
github.com/hashicorp/go-version v1.7.0 // indirect
github.com/hashicorp/golang-lru v0.5.4 // indirect
github.com/hashicorp/hcl v1.0.0 // indirect
github.com/hashicorp/hcl/v2 v2.19.1 // indirect
github.com/hashicorp/hcl/v2 v2.20.1 // indirect
github.com/hashicorp/hil v0.0.0-20190212132231-97b3a9cdfa93 // indirect
github.com/hashicorp/logutils v1.0.0 // indirect
github.com/hashicorp/terraform-plugin-go v0.23.0 // indirect
github.com/hashicorp/terraform-plugin-log v0.9.0 // indirect
github.com/hashicorp/terraform-plugin-sdk/v2 v2.33.0 // indirect
github.com/hashicorp/terraform-plugin-sdk/v2 v2.34.0 // indirect
github.com/hashicorp/terraform-svchost v0.1.1 // indirect
github.com/hashicorp/vault/api v1.8.2 // indirect
github.com/hashicorp/vault/sdk v0.6.1 // indirect
github.com/hashicorp/yamux v0.1.1 // indirect
github.com/huandu/xstrings v1.3.3 // indirect
github.com/huandu/xstrings v1.4.0 // indirect
github.com/iancoleman/strcase v0.2.0 // indirect
github.com/imdario/mergo v0.3.15 // indirect
github.com/inconshreveable/mousetrap v1.1.0 // indirect
Expand Down Expand Up @@ -187,7 +186,7 @@ require (
github.com/pulumi/pulumi/pkg/v3 v3.116.1 // indirect
github.com/pulumi/schema-tools v0.1.2 // indirect
github.com/pulumi/terraform-diff-reader v0.0.2 // indirect
github.com/rivo/uniseg v0.4.4 // indirect
github.com/rivo/uniseg v0.4.7 // indirect
github.com/rogpeppe/go-internal v1.11.0 // indirect
github.com/russross/blackfriday/v2 v2.1.0 // indirect
github.com/ryanuber/go-glob v1.0.0 // indirect
Expand All @@ -196,10 +195,10 @@ require (
github.com/segmentio/asm v1.2.0 // indirect
github.com/segmentio/encoding v0.3.5 // indirect
github.com/sergi/go-diff v1.3.2-0.20230802210424-5b0b94c5c0d3 // indirect
github.com/shopspring/decimal v1.3.1 // indirect
github.com/shopspring/decimal v1.4.0 // indirect
github.com/skeema/knownhosts v1.2.2 // indirect
github.com/spf13/afero v1.9.5 // indirect
github.com/spf13/cast v1.5.0 // indirect
github.com/spf13/cast v1.6.0 // indirect
github.com/spf13/cobra v1.8.0 // indirect
github.com/spf13/pflag v1.0.5 // indirect
github.com/stretchr/testify v1.9.0 // indirect
Expand All @@ -215,7 +214,7 @@ require (
github.com/xeipuuv/gojsonpointer v0.0.0-20180127040702-4e3ac2762d5f // indirect
github.com/xeipuuv/gojsonreference v0.0.0-20180127040603-bd5ef7bd5415 // indirect
github.com/xeipuuv/gojsonschema v1.2.0 // indirect
github.com/zclconf/go-cty v1.14.2 // indirect
github.com/zclconf/go-cty v1.14.4 // indirect
go.opencensus.io v0.24.0 // indirect
go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.49.0 // indirect
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.49.0 // indirect
Expand All @@ -225,25 +224,25 @@ require (
go.uber.org/atomic v1.9.0 // indirect
gocloud.dev v0.37.0 // indirect
gocloud.dev/secrets/hashivault v0.27.0 // indirect
golang.org/x/crypto v0.22.0 // indirect
golang.org/x/exp v0.0.0-20231110203233-9a3e6036ecaa // indirect
golang.org/x/mod v0.15.0 // indirect
golang.org/x/net v0.23.0 // indirect
golang.org/x/oauth2 v0.18.0 // indirect
golang.org/x/sync v0.6.0 // indirect
golang.org/x/sys v0.19.0 // indirect
golang.org/x/term v0.19.0 // indirect
golang.org/x/text v0.14.0 // indirect
golang.org/x/crypto v0.23.0 // indirect
golang.org/x/exp v0.0.0-20240525044651-4c93da0ed11d // indirect
golang.org/x/mod v0.17.0 // indirect
golang.org/x/net v0.25.0 // indirect
golang.org/x/oauth2 v0.20.0 // indirect
golang.org/x/sync v0.7.0 // indirect
golang.org/x/sys v0.20.0 // indirect
golang.org/x/term v0.20.0 // indirect
golang.org/x/text v0.15.0 // indirect
golang.org/x/time v0.5.0 // indirect
golang.org/x/tools v0.17.0 // indirect
golang.org/x/tools v0.21.0 // indirect
golang.org/x/xerrors v0.0.0-20231012003039-104605ab7028 // indirect
google.golang.org/api v0.169.0 // indirect
google.golang.org/appengine v1.6.8 // indirect
google.golang.org/genproto v0.0.0-20240311173647-c811ad7063a7 // indirect
google.golang.org/genproto/googleapis/api v0.0.0-20240311173647-c811ad7063a7 // indirect
google.golang.org/genproto/googleapis/rpc v0.0.0-20240311173647-c811ad7063a7 // indirect
google.golang.org/grpc v1.63.2 // indirect
google.golang.org/protobuf v1.34.0 // indirect
google.golang.org/genproto/googleapis/api v0.0.0-20240318140521-94a12d6c2237 // indirect
google.golang.org/genproto/googleapis/rpc v0.0.0-20240521202816-d264139d666e // indirect
google.golang.org/grpc v1.64.0 // indirect
google.golang.org/protobuf v1.34.1 // indirect
gopkg.in/square/go-jose.v2 v2.6.0 // indirect
gopkg.in/warnings.v0 v0.1.2 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
Expand Down
Loading

0 comments on commit c3ad15b

Please sign in to comment.