Skip to content

Commit

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

---

- Upgrading terraform-provider-ec from 0.11.0  to 0.12.0.
	Fixes #436
  • Loading branch information
guineveresaenger authored Sep 27, 2024
2 parents 183324e + 7ea6af1 commit d0943e6
Show file tree
Hide file tree
Showing 45 changed files with 5,794 additions and 6 deletions.
64 changes: 64 additions & 0 deletions provider/cmd/pulumi-resource-ec/bridge-metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,70 @@
"current": "ec:index/observabilityProject:ObservabilityProject",
"majorVersion": 1
},
"ec_organization": {
"current": "ec:index/organization:Organization",
"majorVersion": 1,
"fields": {
"members": {
"elem": {
"fields": {
"deployment_roles": {
"maxItemsOne": false,
"elem": {
"fields": {
"application_roles": {
"maxItemsOne": false
},
"deployment_ids": {
"maxItemsOne": false
}
}
}
},
"project_elasticsearch_roles": {
"maxItemsOne": false,
"elem": {
"fields": {
"application_roles": {
"maxItemsOne": false
},
"project_ids": {
"maxItemsOne": false
}
}
}
},
"project_observability_roles": {
"maxItemsOne": false,
"elem": {
"fields": {
"application_roles": {
"maxItemsOne": false
},
"project_ids": {
"maxItemsOne": false
}
}
}
},
"project_security_roles": {
"maxItemsOne": false,
"elem": {
"fields": {
"application_roles": {
"maxItemsOne": false
},
"project_ids": {
"maxItemsOne": false
}
}
}
}
}
}
}
}
},
"ec_security_project": {
"current": "ec:index/securityProject:SecurityProject",
"majorVersion": 1,
Expand Down
214 changes: 214 additions & 0 deletions provider/cmd/pulumi-resource-ec/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -2023,6 +2023,187 @@
}
}
},
"ec:index/OrganizationMembers:OrganizationMembers": {
"properties": {
"deploymentRoles": {
"type": "array",
"items": {
"$ref": "#/types/ec:index/OrganizationMembersDeploymentRole:OrganizationMembersDeploymentRole"
},
"description": "Grant access to one or more deployments. For more info see: [Deployment instance roles](https://www.elastic.co/guide/en/cloud/current/ec-user-privileges.html#ec_instance_access_roles).\n"
},
"email": {
"type": "string",
"description": "Email address of the user.\n"
},
"invitationPending": {
"type": "boolean",
"description": "Set to true while the user has not yet accepted their invitation to the organization.\n"
},
"organizationRole": {
"type": "string",
"description": "The optional organization role for the member. Can be one of `organization-admin`, `billing-admin`. For more info see: [Organization roles](https://www.elastic.co/guide/en/cloud/current/ec-user-privileges.html#ec_organization_level_roles)\n"
},
"projectElasticsearchRoles": {
"type": "array",
"items": {
"$ref": "#/types/ec:index/OrganizationMembersProjectElasticsearchRole:OrganizationMembersProjectElasticsearchRole"
},
"description": "Roles assigned for elasticsearch projects. For more info see: [Serverless elasticsearch roles](https://www.elastic.co/docs/current/serverless/general/assign-user-roles#es)\n"
},
"projectObservabilityRoles": {
"type": "array",
"items": {
"$ref": "#/types/ec:index/OrganizationMembersProjectObservabilityRole:OrganizationMembersProjectObservabilityRole"
},
"description": "Roles assigned for observability projects. For more info see: [Serverless observability roles](https://www.elastic.co/docs/current/serverless/general/assign-user-roles#observability)\n"
},
"projectSecurityRoles": {
"type": "array",
"items": {
"$ref": "#/types/ec:index/OrganizationMembersProjectSecurityRole:OrganizationMembersProjectSecurityRole"
},
"description": "Roles assigned for security projects. For more info see: [Serverless security roles](https://www.elastic.co/docs/current/serverless/general/assign-user-roles#security)\n"
},
"userId": {
"type": "string",
"description": "User ID.\n"
}
},
"type": "object",
"language": {
"nodejs": {
"requiredOutputs": [
"email",
"invitationPending",
"projectElasticsearchRoles",
"projectObservabilityRoles",
"projectSecurityRoles",
"userId"
]
}
}
},
"ec:index/OrganizationMembersDeploymentRole:OrganizationMembersDeploymentRole": {
"properties": {
"allDeployments": {
"type": "boolean",
"description": "Role applies to all deployments in the organization.\n"
},
"applicationRoles": {
"type": "array",
"items": {
"type": "string"
},
"description": "If provided, the user assigned this role assignment will be granted this application role when signing in to the deployment(s) specified in the role assignment.\n"
},
"deploymentIds": {
"type": "array",
"items": {
"type": "string"
},
"description": "Role applies to deployments listed here.\n"
},
"role": {
"type": "string",
"description": "Assigned role. Must be on of `viewer`, `editor` or `admin`.\n"
}
},
"type": "object",
"required": [
"role"
]
},
"ec:index/OrganizationMembersProjectElasticsearchRole:OrganizationMembersProjectElasticsearchRole": {
"properties": {
"allProjects": {
"type": "boolean",
"description": "Role applies to all projects in the organization.\n"
},
"applicationRoles": {
"type": "array",
"items": {
"type": "string"
},
"description": "If provided, the user assigned this role assignment will be granted this application role when signing in to the project(s) specified in the role assignment.\n"
},
"projectIds": {
"type": "array",
"items": {
"type": "string"
},
"description": "Role applies to projects listed here.\n"
},
"role": {
"type": "string",
"description": "Assigned role. (Allowed values: `admin`, `developer`, `viewer`)\n"
}
},
"type": "object",
"required": [
"role"
]
},
"ec:index/OrganizationMembersProjectObservabilityRole:OrganizationMembersProjectObservabilityRole": {
"properties": {
"allProjects": {
"type": "boolean",
"description": "Role applies to all projects in the organization.\n"
},
"applicationRoles": {
"type": "array",
"items": {
"type": "string"
},
"description": "If provided, the user assigned this role assignment will be granted this application role when signing in to the project(s) specified in the role assignment.\n"
},
"projectIds": {
"type": "array",
"items": {
"type": "string"
},
"description": "Role applies to projects listed here.\n"
},
"role": {
"type": "string",
"description": "Assigned role. (Allowed values: `admin`, `editor`, `viewer`)\n"
}
},
"type": "object",
"required": [
"role"
]
},
"ec:index/OrganizationMembersProjectSecurityRole:OrganizationMembersProjectSecurityRole": {
"properties": {
"allProjects": {
"type": "boolean",
"description": "Role applies to all projects in the organization.\n"
},
"applicationRoles": {
"type": "array",
"items": {
"type": "string"
},
"description": "If provided, the user assigned this role assignment will be granted this application role when signing in to the project(s) specified in the role assignment.\n"
},
"projectIds": {
"type": "array",
"items": {
"type": "string"
},
"description": "Role applies to projects listed here.\n"
},
"role": {
"type": "string",
"description": "Assigned role. (Allowed values: `admin`, `editor`, `viewer`, `t1-analyst`, `t2-analyst`, `t3-analyst`, `threat-intel-analyst`, `rule-author`, `soc-manager`, `endpoint-operations-analyst`, `platform-engineer`, `detections-admin`, `endpoint-policy-manager`)\n"
}
},
"type": "object",
"required": [
"role"
]
},
"ec:index/SecurityProjectCredentials:SecurityProjectCredentials": {
"properties": {
"password": {
Expand Down Expand Up @@ -4876,6 +5057,39 @@
"type": "object"
}
},
"ec:index/organization:Organization": {
"properties": {
"members": {
"type": "object",
"additionalProperties": {
"$ref": "#/types/ec:index/OrganizationMembers:OrganizationMembers"
},
"description": "Manages the members of an Elastic Cloud organization. The key of each entry should be the email of the member.\n"
}
},
"inputProperties": {
"members": {
"type": "object",
"additionalProperties": {
"$ref": "#/types/ec:index/OrganizationMembers:OrganizationMembers"
},
"description": "Manages the members of an Elastic Cloud organization. The key of each entry should be the email of the member.\n"
}
},
"stateInputs": {
"description": "Input properties used for looking up and filtering Organization resources.\n",
"properties": {
"members": {
"type": "object",
"additionalProperties": {
"$ref": "#/types/ec:index/OrganizationMembers:OrganizationMembers"
},
"description": "Manages the members of an Elastic Cloud organization. The key of each entry should be the email of the member.\n"
}
},
"type": "object"
}
},
"ec:index/securityProject:SecurityProject": {
"description": "## Technical preview\n\nThis functionality is in technical preview and may be changed or removed in a future release.\nElastic will work to fix any issues, but features in technical preview are not subject to the support SLA of official GA features.\n\n\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as ec from \"@pulumi/ec\";\n\nconst myProject = new ec.SecurityProject(\"my_project\", {\n name: \"my_project\",\n regionId: \"aws-us-east-1\",\n});\n```\n```python\nimport pulumi\nimport pulumi_ec as ec\n\nmy_project = ec.SecurityProject(\"my_project\",\n name=\"my_project\",\n region_id=\"aws-us-east-1\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing ElasticCloud = Pulumi.ElasticCloud;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var myProject = new ElasticCloud.SecurityProject(\"my_project\", new()\n {\n Name = \"my_project\",\n RegionId = \"aws-us-east-1\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-ec/sdk/go/ec\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := ec.NewSecurityProject(ctx, \"my_project\", \u0026ec.SecurityProjectArgs{\n\t\t\tName: pulumi.String(\"my_project\"),\n\t\t\tRegionId: pulumi.String(\"aws-us-east-1\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.ec.SecurityProject;\nimport com.pulumi.ec.SecurityProjectArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var myProject = new SecurityProject(\"myProject\", SecurityProjectArgs.builder()\n .name(\"my_project\")\n .regionId(\"aws-us-east-1\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n myProject:\n type: ec:SecurityProject\n name: my_project\n properties:\n name: my_project\n regionId: aws-us-east-1\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n## Import\n\nProjects can be imported using the `id`, for example:\n\n```sh\n$ pulumi import ec:index/securityProject:SecurityProject id 320b7b540dfc967a7a649c18e2fce4ed\n```\n\n",
"properties": {
Expand Down
4 changes: 2 additions & 2 deletions provider/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ replace (
)

require (
github.com/elastic/terraform-provider-ec v0.11.0
github.com/elastic/terraform-provider-ec v0.12.0
github.com/pulumi/pulumi-terraform-bridge/pf v0.44.1
github.com/pulumi/pulumi-terraform-bridge/v3 v3.91.1
)
Expand Down Expand Up @@ -78,7 +78,7 @@ require (
github.com/deckarep/golang-set/v2 v2.5.0 // indirect
github.com/djherbis/times v1.5.0 // indirect
github.com/edsrzf/mmap-go v1.1.0 // indirect
github.com/elastic/cloud-sdk-go v1.20.0 // indirect
github.com/elastic/cloud-sdk-go v1.21.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
Expand Down
8 changes: 4 additions & 4 deletions provider/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -364,10 +364,10 @@ github.com/djherbis/times v1.5.0 h1:79myA211VwPhFTqUk8xehWrsEO+zcIZj0zT8mXPVARU=
github.com/djherbis/times v1.5.0/go.mod h1:5q7FDLvbNg1L/KaBmPcWlVR9NmoKo3+ucqUA3ijQhA0=
github.com/edsrzf/mmap-go v1.1.0 h1:6EUwBLQ/Mcr1EYLE4Tn1VdW1A4ckqCQWZBw8Hr0kjpQ=
github.com/edsrzf/mmap-go v1.1.0/go.mod h1:19H/e8pUPLicwkyNgOykDXkJ9F0MHE+Z52B8EIth78Q=
github.com/elastic/cloud-sdk-go v1.20.0 h1:OkGG0CRXSZbntNwoKATbqO8SQoaBZAfAcXavdi8sA5Y=
github.com/elastic/cloud-sdk-go v1.20.0/go.mod h1:k0ZebhZKX22l6Ysl5Zbpc8VLF54hfwDtHppEEEVUJ04=
github.com/elastic/terraform-provider-ec v0.11.0 h1:wd2alZJftQoLCX+78cv3PVHOy0Zw9bhILihmqEXQp1M=
github.com/elastic/terraform-provider-ec v0.11.0/go.mod h1:0+J6Gaw4EkPR3iEBBhSxqMh4mQgXrK5tnkcs7ghrhVs=
github.com/elastic/cloud-sdk-go v1.21.0 h1:nP+ca4nU026kdkzEVcqwEHJbv0sGlIGgRoROPu+YjMU=
github.com/elastic/cloud-sdk-go v1.21.0/go.mod h1:k0ZebhZKX22l6Ysl5Zbpc8VLF54hfwDtHppEEEVUJ04=
github.com/elastic/terraform-provider-ec v0.12.0 h1:1kOIID/4EFcayZa2tg2U8nsKVQzEfH8SjEg5JsK144w=
github.com/elastic/terraform-provider-ec v0.12.0/go.mod h1:wrul01UL76cwzbTzvHf1W071t6Vs22HL7BgtBpHVuYk=
github.com/elazarl/goproxy v0.0.0-20230808193330-2592e75ae04a h1:mATvB/9r/3gvcejNsXKSkQ6lcIaNec2nyfOdlTBR2lU=
github.com/elazarl/goproxy v0.0.0-20230808193330-2592e75ae04a/go.mod h1:Ro8st/ElPeALwNFlcTpWmkr6IoMFfkjXAvTHpevnDsM=
github.com/emirpasic/gods v1.18.1 h1:FXtiHYKDGKCW2KzwZKx0iC0PQmdlorYgdFG9jPXJ1Bc=
Expand Down
Loading

0 comments on commit d0943e6

Please sign in to comment.