From b8a7c388d8f2fb4bcc7cda8b7f22f40b693781e7 Mon Sep 17 00:00:00 2001 From: "bot@pulumi.com" Date: Mon, 13 Jan 2025 03:12:02 +0000 Subject: [PATCH 1/2] make tfgen --- .../bridge-metadata.json | 3 ++ .../cmd/pulumi-resource-spotinst/schema.json | 32 ++++++++++++++++++- provider/go.mod | 4 +-- provider/go.sum | 8 ++--- 4 files changed, 40 insertions(+), 7 deletions(-) diff --git a/provider/cmd/pulumi-resource-spotinst/bridge-metadata.json b/provider/cmd/pulumi-resource-spotinst/bridge-metadata.json index 98c43ad8..a083dfba 100644 --- a/provider/cmd/pulumi-resource-spotinst/bridge-metadata.json +++ b/provider/cmd/pulumi-resource-spotinst/bridge-metadata.json @@ -1840,6 +1840,9 @@ "spotinst_ocean_gke_import": { "current": "spotinst:gke/oceanImport:OceanImport", "fields": { + "auto_update": { + "maxItemsOne": false + }, "autoscaler": { "maxItemsOne": true, "elem": { diff --git a/provider/cmd/pulumi-resource-spotinst/schema.json b/provider/cmd/pulumi-resource-spotinst/schema.json index c3cddb66..cecc4c1e 100644 --- a/provider/cmd/pulumi-resource-spotinst/schema.json +++ b/provider/cmd/pulumi-resource-spotinst/schema.json @@ -6516,6 +6516,15 @@ "name" ] }, + "spotinst:gke/OceanImportAutoUpdate:OceanImportAutoUpdate": { + "properties": { + "isEnabled": { + "type": "boolean", + "description": "Enable the Ocean Kubernetes AutoUpdate.\n" + } + }, + "type": "object" + }, "spotinst:gke/OceanImportAutoscaler:OceanImportAutoscaler": { "properties": { "autoHeadroomPercentage": { @@ -17577,8 +17586,15 @@ } }, "spotinst:gke/oceanImport:OceanImport": { - "description": "## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as spotinst from \"@pulumi/spotinst\";\n\nconst example = new spotinst.gke.OceanImport(\"example\", {\n clusterName: \"example-cluster-name\",\n controllerClusterId: \"example-controller-123124\",\n location: \"us-central1-a\",\n minSize: 0,\n maxSize: 2,\n desiredCapacity: 0,\n whitelists: [\n \"n1-standard-1\",\n \"n1-standard-2\",\n ],\n filters: {\n excludeFamilies: [\"n2\"],\n includeFamilies: [\n \"c2\",\n \"c3\",\n ],\n minMemoryGib: 8,\n maxMemoryGib: 16,\n minVcpu: 2,\n maxVcpu: 16,\n },\n backendServices: [{\n serviceName: \"example-backend-service\",\n locationType: \"regional\",\n scheme: \"INTERNAL\",\n namedPorts: [{\n name: \"http\",\n ports: [\n \"80\",\n \"8080\",\n ],\n }],\n }],\n rootVolumeType: \"pd-ssd\",\n shieldedInstanceConfig: {\n enableSecureBoot: true,\n enableIntegrityMonitoring: true,\n },\n useAsTemplateOnly: false,\n});\n```\n```python\nimport pulumi\nimport pulumi_spotinst as spotinst\n\nexample = spotinst.gke.OceanImport(\"example\",\n cluster_name=\"example-cluster-name\",\n controller_cluster_id=\"example-controller-123124\",\n location=\"us-central1-a\",\n min_size=0,\n max_size=2,\n desired_capacity=0,\n whitelists=[\n \"n1-standard-1\",\n \"n1-standard-2\",\n ],\n filters={\n \"exclude_families\": [\"n2\"],\n \"include_families\": [\n \"c2\",\n \"c3\",\n ],\n \"min_memory_gib\": 8,\n \"max_memory_gib\": 16,\n \"min_vcpu\": 2,\n \"max_vcpu\": 16,\n },\n backend_services=[{\n \"service_name\": \"example-backend-service\",\n \"location_type\": \"regional\",\n \"scheme\": \"INTERNAL\",\n \"named_ports\": [{\n \"name\": \"http\",\n \"ports\": [\n \"80\",\n \"8080\",\n ],\n }],\n }],\n root_volume_type=\"pd-ssd\",\n shielded_instance_config={\n \"enable_secure_boot\": True,\n \"enable_integrity_monitoring\": True,\n },\n use_as_template_only=False)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing SpotInst = Pulumi.SpotInst;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = new SpotInst.Gke.OceanImport(\"example\", new()\n {\n ClusterName = \"example-cluster-name\",\n ControllerClusterId = \"example-controller-123124\",\n Location = \"us-central1-a\",\n MinSize = 0,\n MaxSize = 2,\n DesiredCapacity = 0,\n Whitelists = new[]\n {\n \"n1-standard-1\",\n \"n1-standard-2\",\n },\n Filters = new SpotInst.Gke.Inputs.OceanImportFiltersArgs\n {\n ExcludeFamilies = new[]\n {\n \"n2\",\n },\n IncludeFamilies = new[]\n {\n \"c2\",\n \"c3\",\n },\n MinMemoryGib = 8,\n MaxMemoryGib = 16,\n MinVcpu = 2,\n MaxVcpu = 16,\n },\n BackendServices = new[]\n {\n new SpotInst.Gke.Inputs.OceanImportBackendServiceArgs\n {\n ServiceName = \"example-backend-service\",\n LocationType = \"regional\",\n Scheme = \"INTERNAL\",\n NamedPorts = new[]\n {\n new SpotInst.Gke.Inputs.OceanImportBackendServiceNamedPortArgs\n {\n Name = \"http\",\n Ports = new[]\n {\n \"80\",\n \"8080\",\n },\n },\n },\n },\n },\n RootVolumeType = \"pd-ssd\",\n ShieldedInstanceConfig = new SpotInst.Gke.Inputs.OceanImportShieldedInstanceConfigArgs\n {\n EnableSecureBoot = true,\n EnableIntegrityMonitoring = true,\n },\n UseAsTemplateOnly = false,\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-spotinst/sdk/v3/go/spotinst/gke\"\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 := gke.NewOceanImport(ctx, \"example\", \u0026gke.OceanImportArgs{\n\t\t\tClusterName: pulumi.String(\"example-cluster-name\"),\n\t\t\tControllerClusterId: pulumi.String(\"example-controller-123124\"),\n\t\t\tLocation: pulumi.String(\"us-central1-a\"),\n\t\t\tMinSize: pulumi.Int(0),\n\t\t\tMaxSize: pulumi.Int(2),\n\t\t\tDesiredCapacity: pulumi.Int(0),\n\t\t\tWhitelists: pulumi.StringArray{\n\t\t\t\tpulumi.String(\"n1-standard-1\"),\n\t\t\t\tpulumi.String(\"n1-standard-2\"),\n\t\t\t},\n\t\t\tFilters: \u0026gke.OceanImportFiltersArgs{\n\t\t\t\tExcludeFamilies: pulumi.StringArray{\n\t\t\t\t\tpulumi.String(\"n2\"),\n\t\t\t\t},\n\t\t\t\tIncludeFamilies: pulumi.StringArray{\n\t\t\t\t\tpulumi.String(\"c2\"),\n\t\t\t\t\tpulumi.String(\"c3\"),\n\t\t\t\t},\n\t\t\t\tMinMemoryGib: pulumi.Float64(8),\n\t\t\t\tMaxMemoryGib: pulumi.Float64(16),\n\t\t\t\tMinVcpu: pulumi.Int(2),\n\t\t\t\tMaxVcpu: pulumi.Int(16),\n\t\t\t},\n\t\t\tBackendServices: gke.OceanImportBackendServiceArray{\n\t\t\t\t\u0026gke.OceanImportBackendServiceArgs{\n\t\t\t\t\tServiceName: pulumi.String(\"example-backend-service\"),\n\t\t\t\t\tLocationType: pulumi.String(\"regional\"),\n\t\t\t\t\tScheme: pulumi.String(\"INTERNAL\"),\n\t\t\t\t\tNamedPorts: gke.OceanImportBackendServiceNamedPortArray{\n\t\t\t\t\t\t\u0026gke.OceanImportBackendServiceNamedPortArgs{\n\t\t\t\t\t\t\tName: pulumi.String(\"http\"),\n\t\t\t\t\t\t\tPorts: pulumi.StringArray{\n\t\t\t\t\t\t\t\tpulumi.String(\"80\"),\n\t\t\t\t\t\t\t\tpulumi.String(\"8080\"),\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t\tRootVolumeType: pulumi.String(\"pd-ssd\"),\n\t\t\tShieldedInstanceConfig: \u0026gke.OceanImportShieldedInstanceConfigArgs{\n\t\t\t\tEnableSecureBoot: pulumi.Bool(true),\n\t\t\t\tEnableIntegrityMonitoring: pulumi.Bool(true),\n\t\t\t},\n\t\t\tUseAsTemplateOnly: pulumi.Bool(false),\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.spotinst.gke.OceanImport;\nimport com.pulumi.spotinst.gke.OceanImportArgs;\nimport com.pulumi.spotinst.gke.inputs.OceanImportFiltersArgs;\nimport com.pulumi.spotinst.gke.inputs.OceanImportBackendServiceArgs;\nimport com.pulumi.spotinst.gke.inputs.OceanImportShieldedInstanceConfigArgs;\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 example = new OceanImport(\"example\", OceanImportArgs.builder()\n .clusterName(\"example-cluster-name\")\n .controllerClusterId(\"example-controller-123124\")\n .location(\"us-central1-a\")\n .minSize(0)\n .maxSize(2)\n .desiredCapacity(0)\n .whitelists( \n \"n1-standard-1\",\n \"n1-standard-2\")\n .filters(OceanImportFiltersArgs.builder()\n .excludeFamilies(\"n2\")\n .includeFamilies( \n \"c2\",\n \"c3\")\n .minMemoryGib(8)\n .maxMemoryGib(16)\n .minVcpu(2)\n .maxVcpu(16)\n .build())\n .backendServices(OceanImportBackendServiceArgs.builder()\n .serviceName(\"example-backend-service\")\n .locationType(\"regional\")\n .scheme(\"INTERNAL\")\n .namedPorts(OceanImportBackendServiceNamedPortArgs.builder()\n .name(\"http\")\n .ports( \n 80,\n 8080)\n .build())\n .build())\n .rootVolumeType(\"pd-ssd\")\n .shieldedInstanceConfig(OceanImportShieldedInstanceConfigArgs.builder()\n .enableSecureBoot(true)\n .enableIntegrityMonitoring(true)\n .build())\n .useAsTemplateOnly(false)\n .build());\n\n }\n}\n```\n```yaml\nresources:\n example:\n type: spotinst:gke:OceanImport\n properties:\n clusterName: example-cluster-name\n controllerClusterId: example-controller-123124\n location: us-central1-a\n minSize: 0\n maxSize: 2\n desiredCapacity: 0\n whitelists:\n - n1-standard-1\n - n1-standard-2\n filters:\n excludeFamilies:\n - n2\n includeFamilies:\n - c2\n - c3\n minMemoryGib: 8\n maxMemoryGib: 16\n minVcpu: 2\n maxVcpu: 16\n backendServices:\n - serviceName: example-backend-service\n locationType: regional\n scheme: INTERNAL\n namedPorts:\n - name: http\n ports:\n - 80\n - 8080\n rootVolumeType: pd-ssd\n shieldedInstanceConfig:\n enableSecureBoot: true\n enableIntegrityMonitoring: true\n useAsTemplateOnly: false\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n```\noutput \"ocean_id\" {\n value = spotinst_ocean_gke_import.example.id\n}\n```\n", + "description": "## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as spotinst from \"@pulumi/spotinst\";\n\nconst example = new spotinst.gke.OceanImport(\"example\", {\n clusterName: \"example-cluster-name\",\n controllerClusterId: \"example-controller-123124\",\n location: \"us-central1-a\",\n minSize: 0,\n maxSize: 2,\n desiredCapacity: 0,\n autoUpdates: [{\n isEnabled: true,\n }],\n whitelists: [\n \"n1-standard-1\",\n \"n1-standard-2\",\n ],\n filters: {\n excludeFamilies: [\"n2\"],\n includeFamilies: [\n \"c2\",\n \"c3\",\n ],\n minMemoryGib: 8,\n maxMemoryGib: 16,\n minVcpu: 2,\n maxVcpu: 16,\n },\n backendServices: [{\n serviceName: \"example-backend-service\",\n locationType: \"regional\",\n scheme: \"INTERNAL\",\n namedPorts: [{\n name: \"http\",\n ports: [\n \"80\",\n \"8080\",\n ],\n }],\n }],\n rootVolumeType: \"pd-ssd\",\n shieldedInstanceConfig: {\n enableSecureBoot: true,\n enableIntegrityMonitoring: true,\n },\n useAsTemplateOnly: false,\n});\n```\n```python\nimport pulumi\nimport pulumi_spotinst as spotinst\n\nexample = spotinst.gke.OceanImport(\"example\",\n cluster_name=\"example-cluster-name\",\n controller_cluster_id=\"example-controller-123124\",\n location=\"us-central1-a\",\n min_size=0,\n max_size=2,\n desired_capacity=0,\n auto_updates=[{\n \"is_enabled\": True,\n }],\n whitelists=[\n \"n1-standard-1\",\n \"n1-standard-2\",\n ],\n filters={\n \"exclude_families\": [\"n2\"],\n \"include_families\": [\n \"c2\",\n \"c3\",\n ],\n \"min_memory_gib\": 8,\n \"max_memory_gib\": 16,\n \"min_vcpu\": 2,\n \"max_vcpu\": 16,\n },\n backend_services=[{\n \"service_name\": \"example-backend-service\",\n \"location_type\": \"regional\",\n \"scheme\": \"INTERNAL\",\n \"named_ports\": [{\n \"name\": \"http\",\n \"ports\": [\n \"80\",\n \"8080\",\n ],\n }],\n }],\n root_volume_type=\"pd-ssd\",\n shielded_instance_config={\n \"enable_secure_boot\": True,\n \"enable_integrity_monitoring\": True,\n },\n use_as_template_only=False)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing SpotInst = Pulumi.SpotInst;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = new SpotInst.Gke.OceanImport(\"example\", new()\n {\n ClusterName = \"example-cluster-name\",\n ControllerClusterId = \"example-controller-123124\",\n Location = \"us-central1-a\",\n MinSize = 0,\n MaxSize = 2,\n DesiredCapacity = 0,\n AutoUpdates = new[]\n {\n new SpotInst.Gke.Inputs.OceanImportAutoUpdateArgs\n {\n IsEnabled = true,\n },\n },\n Whitelists = new[]\n {\n \"n1-standard-1\",\n \"n1-standard-2\",\n },\n Filters = new SpotInst.Gke.Inputs.OceanImportFiltersArgs\n {\n ExcludeFamilies = new[]\n {\n \"n2\",\n },\n IncludeFamilies = new[]\n {\n \"c2\",\n \"c3\",\n },\n MinMemoryGib = 8,\n MaxMemoryGib = 16,\n MinVcpu = 2,\n MaxVcpu = 16,\n },\n BackendServices = new[]\n {\n new SpotInst.Gke.Inputs.OceanImportBackendServiceArgs\n {\n ServiceName = \"example-backend-service\",\n LocationType = \"regional\",\n Scheme = \"INTERNAL\",\n NamedPorts = new[]\n {\n new SpotInst.Gke.Inputs.OceanImportBackendServiceNamedPortArgs\n {\n Name = \"http\",\n Ports = new[]\n {\n \"80\",\n \"8080\",\n },\n },\n },\n },\n },\n RootVolumeType = \"pd-ssd\",\n ShieldedInstanceConfig = new SpotInst.Gke.Inputs.OceanImportShieldedInstanceConfigArgs\n {\n EnableSecureBoot = true,\n EnableIntegrityMonitoring = true,\n },\n UseAsTemplateOnly = false,\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-spotinst/sdk/v3/go/spotinst/gke\"\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 := gke.NewOceanImport(ctx, \"example\", \u0026gke.OceanImportArgs{\n\t\t\tClusterName: pulumi.String(\"example-cluster-name\"),\n\t\t\tControllerClusterId: pulumi.String(\"example-controller-123124\"),\n\t\t\tLocation: pulumi.String(\"us-central1-a\"),\n\t\t\tMinSize: pulumi.Int(0),\n\t\t\tMaxSize: pulumi.Int(2),\n\t\t\tDesiredCapacity: pulumi.Int(0),\n\t\t\tAutoUpdates: gke.OceanImportAutoUpdateArray{\n\t\t\t\t\u0026gke.OceanImportAutoUpdateArgs{\n\t\t\t\t\tIsEnabled: pulumi.Bool(true),\n\t\t\t\t},\n\t\t\t},\n\t\t\tWhitelists: pulumi.StringArray{\n\t\t\t\tpulumi.String(\"n1-standard-1\"),\n\t\t\t\tpulumi.String(\"n1-standard-2\"),\n\t\t\t},\n\t\t\tFilters: \u0026gke.OceanImportFiltersArgs{\n\t\t\t\tExcludeFamilies: pulumi.StringArray{\n\t\t\t\t\tpulumi.String(\"n2\"),\n\t\t\t\t},\n\t\t\t\tIncludeFamilies: pulumi.StringArray{\n\t\t\t\t\tpulumi.String(\"c2\"),\n\t\t\t\t\tpulumi.String(\"c3\"),\n\t\t\t\t},\n\t\t\t\tMinMemoryGib: pulumi.Float64(8),\n\t\t\t\tMaxMemoryGib: pulumi.Float64(16),\n\t\t\t\tMinVcpu: pulumi.Int(2),\n\t\t\t\tMaxVcpu: pulumi.Int(16),\n\t\t\t},\n\t\t\tBackendServices: gke.OceanImportBackendServiceArray{\n\t\t\t\t\u0026gke.OceanImportBackendServiceArgs{\n\t\t\t\t\tServiceName: pulumi.String(\"example-backend-service\"),\n\t\t\t\t\tLocationType: pulumi.String(\"regional\"),\n\t\t\t\t\tScheme: pulumi.String(\"INTERNAL\"),\n\t\t\t\t\tNamedPorts: gke.OceanImportBackendServiceNamedPortArray{\n\t\t\t\t\t\t\u0026gke.OceanImportBackendServiceNamedPortArgs{\n\t\t\t\t\t\t\tName: pulumi.String(\"http\"),\n\t\t\t\t\t\t\tPorts: pulumi.StringArray{\n\t\t\t\t\t\t\t\tpulumi.String(\"80\"),\n\t\t\t\t\t\t\t\tpulumi.String(\"8080\"),\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t\tRootVolumeType: pulumi.String(\"pd-ssd\"),\n\t\t\tShieldedInstanceConfig: \u0026gke.OceanImportShieldedInstanceConfigArgs{\n\t\t\t\tEnableSecureBoot: pulumi.Bool(true),\n\t\t\t\tEnableIntegrityMonitoring: pulumi.Bool(true),\n\t\t\t},\n\t\t\tUseAsTemplateOnly: pulumi.Bool(false),\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.spotinst.gke.OceanImport;\nimport com.pulumi.spotinst.gke.OceanImportArgs;\nimport com.pulumi.spotinst.gke.inputs.OceanImportAutoUpdateArgs;\nimport com.pulumi.spotinst.gke.inputs.OceanImportFiltersArgs;\nimport com.pulumi.spotinst.gke.inputs.OceanImportBackendServiceArgs;\nimport com.pulumi.spotinst.gke.inputs.OceanImportShieldedInstanceConfigArgs;\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 example = new OceanImport(\"example\", OceanImportArgs.builder()\n .clusterName(\"example-cluster-name\")\n .controllerClusterId(\"example-controller-123124\")\n .location(\"us-central1-a\")\n .minSize(0)\n .maxSize(2)\n .desiredCapacity(0)\n .autoUpdates(OceanImportAutoUpdateArgs.builder()\n .isEnabled(true)\n .build())\n .whitelists( \n \"n1-standard-1\",\n \"n1-standard-2\")\n .filters(OceanImportFiltersArgs.builder()\n .excludeFamilies(\"n2\")\n .includeFamilies( \n \"c2\",\n \"c3\")\n .minMemoryGib(8)\n .maxMemoryGib(16)\n .minVcpu(2)\n .maxVcpu(16)\n .build())\n .backendServices(OceanImportBackendServiceArgs.builder()\n .serviceName(\"example-backend-service\")\n .locationType(\"regional\")\n .scheme(\"INTERNAL\")\n .namedPorts(OceanImportBackendServiceNamedPortArgs.builder()\n .name(\"http\")\n .ports( \n 80,\n 8080)\n .build())\n .build())\n .rootVolumeType(\"pd-ssd\")\n .shieldedInstanceConfig(OceanImportShieldedInstanceConfigArgs.builder()\n .enableSecureBoot(true)\n .enableIntegrityMonitoring(true)\n .build())\n .useAsTemplateOnly(false)\n .build());\n\n }\n}\n```\n```yaml\nresources:\n example:\n type: spotinst:gke:OceanImport\n properties:\n clusterName: example-cluster-name\n controllerClusterId: example-controller-123124\n location: us-central1-a\n minSize: 0\n maxSize: 2\n desiredCapacity: 0\n autoUpdates:\n - isEnabled: true\n whitelists:\n - n1-standard-1\n - n1-standard-2\n filters:\n excludeFamilies:\n - n2\n includeFamilies:\n - c2\n - c3\n minMemoryGib: 8\n maxMemoryGib: 16\n minVcpu: 2\n maxVcpu: 16\n backendServices:\n - serviceName: example-backend-service\n locationType: regional\n scheme: INTERNAL\n namedPorts:\n - name: http\n ports:\n - 80\n - 8080\n rootVolumeType: pd-ssd\n shieldedInstanceConfig:\n enableSecureBoot: true\n enableIntegrityMonitoring: true\n useAsTemplateOnly: false\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n```\noutput \"ocean_id\" {\n value = spotinst_ocean_gke_import.example.id\n}\n```\n", "properties": { + "autoUpdates": { + "type": "array", + "items": { + "$ref": "#/types/spotinst:gke/OceanImportAutoUpdate:OceanImportAutoUpdate" + }, + "description": "The Ocean Kubernetes AutoUpdate object. If set to 'true', Ocean will ensure that your clusters have an up-to-date configuration according to the respective GKE cluster.\n" + }, "autoscaler": { "$ref": "#/types/spotinst:gke/OceanImportAutoscaler:OceanImportAutoscaler", "description": "The Ocean Kubernetes Autoscaler object.\n" @@ -17674,6 +17690,13 @@ "shieldedInstanceConfig" ], "inputProperties": { + "autoUpdates": { + "type": "array", + "items": { + "$ref": "#/types/spotinst:gke/OceanImportAutoUpdate:OceanImportAutoUpdate" + }, + "description": "The Ocean Kubernetes AutoUpdate object. If set to 'true', Ocean will ensure that your clusters have an up-to-date configuration according to the respective GKE cluster.\n" + }, "autoscaler": { "$ref": "#/types/spotinst:gke/OceanImportAutoscaler:OceanImportAutoscaler", "description": "The Ocean Kubernetes Autoscaler object.\n" @@ -17764,6 +17787,13 @@ "stateInputs": { "description": "Input properties used for looking up and filtering OceanImport resources.\n", "properties": { + "autoUpdates": { + "type": "array", + "items": { + "$ref": "#/types/spotinst:gke/OceanImportAutoUpdate:OceanImportAutoUpdate" + }, + "description": "The Ocean Kubernetes AutoUpdate object. If set to 'true', Ocean will ensure that your clusters have an up-to-date configuration according to the respective GKE cluster.\n" + }, "autoscaler": { "$ref": "#/types/spotinst:gke/OceanImportAutoscaler:OceanImportAutoscaler", "description": "The Ocean Kubernetes Autoscaler object.\n" diff --git a/provider/go.mod b/provider/go.mod index f185a3aa..31d50bc6 100644 --- a/provider/go.mod +++ b/provider/go.mod @@ -7,7 +7,7 @@ toolchain go1.23.4 require ( github.com/pulumi/pulumi-terraform-bridge/v3 v3.100.0 github.com/pulumi/pulumi/sdk/v3 v3.145.0 - github.com/spotinst/terraform-provider-spotinst v1.205.1 + github.com/spotinst/terraform-provider-spotinst v1.206.0 ) replace ( @@ -160,7 +160,7 @@ require ( github.com/spf13/cast v1.5.0 // indirect github.com/spf13/cobra v1.8.0 // indirect github.com/spf13/pflag v1.0.5 // indirect - github.com/spotinst/spotinst-sdk-go v1.380.0 // indirect + github.com/spotinst/spotinst-sdk-go v1.382.0 // indirect github.com/stretchr/objx v0.5.2 // indirect github.com/teekennedy/goldmark-markdown v0.3.0 // indirect github.com/texttheater/golang-levenshtein v1.0.1 // indirect diff --git a/provider/go.sum b/provider/go.sum index 2e522a92..1fe4dadc 100644 --- a/provider/go.sum +++ b/provider/go.sum @@ -2012,10 +2012,10 @@ github.com/spf13/pflag v1.0.2/go.mod h1:DYY7MBk1bdzusC3SYhjObp+wFpr4gzcvqqNjLnIn github.com/spf13/pflag v1.0.3/go.mod h1:DYY7MBk1bdzusC3SYhjObp+wFpr4gzcvqqNjLnInEg4= github.com/spf13/pflag v1.0.5 h1:iy+VFUOCP1a+8yFto/drg2CJ5u0yRoB7fZw3DKv/JXA= github.com/spf13/pflag v1.0.5/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg= -github.com/spotinst/spotinst-sdk-go v1.380.0 h1:eGZ12gMDYHazZbR+ZGW1Pq5JnD8uTTrt+sLJX3fd/DY= -github.com/spotinst/spotinst-sdk-go v1.380.0/go.mod h1:Tn4/eb0SFY6IXmxz71CClujvbD/PuT+EO6Ta8v6AML4= -github.com/spotinst/terraform-provider-spotinst v1.205.1 h1:swCy7zIT26hT7rMPC2Wz0zbbfAfetOLv9AHjQuNvG/4= -github.com/spotinst/terraform-provider-spotinst v1.205.1/go.mod h1:YMJdx/8X4oT9JzmMw33yL4zO5VwQzezdvZ2j6z67H/4= +github.com/spotinst/spotinst-sdk-go v1.382.0 h1:EbRLMORlFdN27urjc0QyThjlKUEmpYp+89FvZWZAK80= +github.com/spotinst/spotinst-sdk-go v1.382.0/go.mod h1:Tn4/eb0SFY6IXmxz71CClujvbD/PuT+EO6Ta8v6AML4= +github.com/spotinst/terraform-provider-spotinst v1.206.0 h1:QXxg0RoXrx2ACtVv84CnIreMv8VoetCiL2w8bLuNcDQ= +github.com/spotinst/terraform-provider-spotinst v1.206.0/go.mod h1:ytoBlap8Uf50H6lcwkzXqzEi/0THTfAIi8kimV0CTyw= github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= github.com/stretchr/objx v0.1.1/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= github.com/stretchr/objx v0.4.0/go.mod h1:YvHI0jy2hoMjB+UWwv71VJQ9isScKT/TqJzVSSt89Yw= From 211451a99b724cd5bb79ebddfbb026c99bd15a1b Mon Sep 17 00:00:00 2001 From: "bot@pulumi.com" Date: Mon, 13 Jan 2025 03:13:24 +0000 Subject: [PATCH 2/2] make build_sdks --- .../Gke/Inputs/OceanImportAutoUpdateArgs.cs | 26 +++++ .../Inputs/OceanImportAutoUpdateGetArgs.cs | 26 +++++ sdk/dotnet/Gke/OceanImport.cs | 37 +++++++ .../Gke/Outputs/OceanImportAutoUpdate.cs | 27 +++++ sdk/go/spotinst/gke/oceanImport.go | 20 ++++ sdk/go/spotinst/gke/pulumiTypes.go | 101 ++++++++++++++++++ .../com/pulumi/spotinst/gke/OceanImport.java | 19 ++++ .../pulumi/spotinst/gke/OceanImportArgs.java | 48 +++++++++ .../gke/inputs/OceanImportAutoUpdateArgs.java | 83 ++++++++++++++ .../spotinst/gke/inputs/OceanImportState.java | 48 +++++++++ .../gke/outputs/OceanImportAutoUpdate.java | 57 ++++++++++ sdk/nodejs/gke/oceanImport.ts | 17 +++ sdk/nodejs/types/input.ts | 7 ++ sdk/nodejs/types/output.ts | 7 ++ sdk/python/pulumi_spotinst/gke/_inputs.py | 34 ++++++ .../pulumi_spotinst/gke/ocean_import.py | 53 +++++++++ sdk/python/pulumi_spotinst/gke/outputs.py | 37 +++++++ 17 files changed, 647 insertions(+) create mode 100644 sdk/dotnet/Gke/Inputs/OceanImportAutoUpdateArgs.cs create mode 100644 sdk/dotnet/Gke/Inputs/OceanImportAutoUpdateGetArgs.cs create mode 100644 sdk/dotnet/Gke/Outputs/OceanImportAutoUpdate.cs create mode 100644 sdk/java/src/main/java/com/pulumi/spotinst/gke/inputs/OceanImportAutoUpdateArgs.java create mode 100644 sdk/java/src/main/java/com/pulumi/spotinst/gke/outputs/OceanImportAutoUpdate.java diff --git a/sdk/dotnet/Gke/Inputs/OceanImportAutoUpdateArgs.cs b/sdk/dotnet/Gke/Inputs/OceanImportAutoUpdateArgs.cs new file mode 100644 index 00000000..ec1463fa --- /dev/null +++ b/sdk/dotnet/Gke/Inputs/OceanImportAutoUpdateArgs.cs @@ -0,0 +1,26 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.SpotInst.Gke.Inputs +{ + + public sealed class OceanImportAutoUpdateArgs : global::Pulumi.ResourceArgs + { + /// + /// Enable the Ocean Kubernetes AutoUpdate. + /// + [Input("isEnabled")] + public Input? IsEnabled { get; set; } + + public OceanImportAutoUpdateArgs() + { + } + public static new OceanImportAutoUpdateArgs Empty => new OceanImportAutoUpdateArgs(); + } +} diff --git a/sdk/dotnet/Gke/Inputs/OceanImportAutoUpdateGetArgs.cs b/sdk/dotnet/Gke/Inputs/OceanImportAutoUpdateGetArgs.cs new file mode 100644 index 00000000..4a40045d --- /dev/null +++ b/sdk/dotnet/Gke/Inputs/OceanImportAutoUpdateGetArgs.cs @@ -0,0 +1,26 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.SpotInst.Gke.Inputs +{ + + public sealed class OceanImportAutoUpdateGetArgs : global::Pulumi.ResourceArgs + { + /// + /// Enable the Ocean Kubernetes AutoUpdate. + /// + [Input("isEnabled")] + public Input? IsEnabled { get; set; } + + public OceanImportAutoUpdateGetArgs() + { + } + public static new OceanImportAutoUpdateGetArgs Empty => new OceanImportAutoUpdateGetArgs(); + } +} diff --git a/sdk/dotnet/Gke/OceanImport.cs b/sdk/dotnet/Gke/OceanImport.cs index 1ff084d0..e21a1d40 100644 --- a/sdk/dotnet/Gke/OceanImport.cs +++ b/sdk/dotnet/Gke/OceanImport.cs @@ -28,6 +28,13 @@ namespace Pulumi.SpotInst.Gke /// MinSize = 0, /// MaxSize = 2, /// DesiredCapacity = 0, + /// AutoUpdates = new[] + /// { + /// new SpotInst.Gke.Inputs.OceanImportAutoUpdateArgs + /// { + /// IsEnabled = true, + /// }, + /// }, /// Whitelists = new[] /// { /// "n1-standard-1", @@ -85,6 +92,12 @@ namespace Pulumi.SpotInst.Gke [SpotInstResourceType("spotinst:gke/oceanImport:OceanImport")] public partial class OceanImport : global::Pulumi.CustomResource { + /// + /// The Ocean Kubernetes AutoUpdate object. If set to 'true', Ocean will ensure that your clusters have an up-to-date configuration according to the respective GKE cluster. + /// + [Output("autoUpdates")] + public Output> AutoUpdates { get; private set; } = null!; + /// /// The Ocean Kubernetes Autoscaler object. /// @@ -233,6 +246,18 @@ public static OceanImport Get(string name, Input id, OceanImportState? s public sealed class OceanImportArgs : global::Pulumi.ResourceArgs { + [Input("autoUpdates")] + private InputList? _autoUpdates; + + /// + /// The Ocean Kubernetes AutoUpdate object. If set to 'true', Ocean will ensure that your clusters have an up-to-date configuration according to the respective GKE cluster. + /// + public InputList AutoUpdates + { + get => _autoUpdates ?? (_autoUpdates = new InputList()); + set => _autoUpdates = value; + } + /// /// The Ocean Kubernetes Autoscaler object. /// @@ -370,6 +395,18 @@ public OceanImportArgs() public sealed class OceanImportState : global::Pulumi.ResourceArgs { + [Input("autoUpdates")] + private InputList? _autoUpdates; + + /// + /// The Ocean Kubernetes AutoUpdate object. If set to 'true', Ocean will ensure that your clusters have an up-to-date configuration according to the respective GKE cluster. + /// + public InputList AutoUpdates + { + get => _autoUpdates ?? (_autoUpdates = new InputList()); + set => _autoUpdates = value; + } + /// /// The Ocean Kubernetes Autoscaler object. /// diff --git a/sdk/dotnet/Gke/Outputs/OceanImportAutoUpdate.cs b/sdk/dotnet/Gke/Outputs/OceanImportAutoUpdate.cs new file mode 100644 index 00000000..9a3d87d7 --- /dev/null +++ b/sdk/dotnet/Gke/Outputs/OceanImportAutoUpdate.cs @@ -0,0 +1,27 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.SpotInst.Gke.Outputs +{ + + [OutputType] + public sealed class OceanImportAutoUpdate + { + /// + /// Enable the Ocean Kubernetes AutoUpdate. + /// + public readonly bool? IsEnabled; + + [OutputConstructor] + private OceanImportAutoUpdate(bool? isEnabled) + { + IsEnabled = isEnabled; + } + } +} diff --git a/sdk/go/spotinst/gke/oceanImport.go b/sdk/go/spotinst/gke/oceanImport.go index 950fbd44..6af0bfd3 100644 --- a/sdk/go/spotinst/gke/oceanImport.go +++ b/sdk/go/spotinst/gke/oceanImport.go @@ -33,6 +33,11 @@ import ( // MinSize: pulumi.Int(0), // MaxSize: pulumi.Int(2), // DesiredCapacity: pulumi.Int(0), +// AutoUpdates: gke.OceanImportAutoUpdateArray{ +// &gke.OceanImportAutoUpdateArgs{ +// IsEnabled: pulumi.Bool(true), +// }, +// }, // Whitelists: pulumi.StringArray{ // pulumi.String("n1-standard-1"), // pulumi.String("n1-standard-2"), @@ -84,6 +89,8 @@ import ( type OceanImport struct { pulumi.CustomResourceState + // The Ocean Kubernetes AutoUpdate object. If set to 'true', Ocean will ensure that your clusters have an up-to-date configuration according to the respective GKE cluster. + AutoUpdates OceanImportAutoUpdateArrayOutput `pulumi:"autoUpdates"` // The Ocean Kubernetes Autoscaler object. Autoscaler OceanImportAutoscalerOutput `pulumi:"autoscaler"` // Describes the backend service configurations. @@ -156,6 +163,8 @@ func GetOceanImport(ctx *pulumi.Context, // Input properties used for looking up and filtering OceanImport resources. type oceanImportState struct { + // The Ocean Kubernetes AutoUpdate object. If set to 'true', Ocean will ensure that your clusters have an up-to-date configuration according to the respective GKE cluster. + AutoUpdates []OceanImportAutoUpdate `pulumi:"autoUpdates"` // The Ocean Kubernetes Autoscaler object. Autoscaler *OceanImportAutoscaler `pulumi:"autoscaler"` // Describes the backend service configurations. @@ -193,6 +202,8 @@ type oceanImportState struct { } type OceanImportState struct { + // The Ocean Kubernetes AutoUpdate object. If set to 'true', Ocean will ensure that your clusters have an up-to-date configuration according to the respective GKE cluster. + AutoUpdates OceanImportAutoUpdateArrayInput // The Ocean Kubernetes Autoscaler object. Autoscaler OceanImportAutoscalerPtrInput // Describes the backend service configurations. @@ -234,6 +245,8 @@ func (OceanImportState) ElementType() reflect.Type { } type oceanImportArgs struct { + // The Ocean Kubernetes AutoUpdate object. If set to 'true', Ocean will ensure that your clusters have an up-to-date configuration according to the respective GKE cluster. + AutoUpdates []OceanImportAutoUpdate `pulumi:"autoUpdates"` // The Ocean Kubernetes Autoscaler object. Autoscaler *OceanImportAutoscaler `pulumi:"autoscaler"` // Describes the backend service configurations. @@ -271,6 +284,8 @@ type oceanImportArgs struct { // The set of arguments for constructing a OceanImport resource. type OceanImportArgs struct { + // The Ocean Kubernetes AutoUpdate object. If set to 'true', Ocean will ensure that your clusters have an up-to-date configuration according to the respective GKE cluster. + AutoUpdates OceanImportAutoUpdateArrayInput // The Ocean Kubernetes Autoscaler object. Autoscaler OceanImportAutoscalerPtrInput // Describes the backend service configurations. @@ -393,6 +408,11 @@ func (o OceanImportOutput) ToOceanImportOutputWithContext(ctx context.Context) O return o } +// The Ocean Kubernetes AutoUpdate object. If set to 'true', Ocean will ensure that your clusters have an up-to-date configuration according to the respective GKE cluster. +func (o OceanImportOutput) AutoUpdates() OceanImportAutoUpdateArrayOutput { + return o.ApplyT(func(v *OceanImport) OceanImportAutoUpdateArrayOutput { return v.AutoUpdates }).(OceanImportAutoUpdateArrayOutput) +} + // The Ocean Kubernetes Autoscaler object. func (o OceanImportOutput) Autoscaler() OceanImportAutoscalerOutput { return o.ApplyT(func(v *OceanImport) OceanImportAutoscalerOutput { return v.Autoscaler }).(OceanImportAutoscalerOutput) diff --git a/sdk/go/spotinst/gke/pulumiTypes.go b/sdk/go/spotinst/gke/pulumiTypes.go index c86c1e64..7a9f8280 100644 --- a/sdk/go/spotinst/gke/pulumiTypes.go +++ b/sdk/go/spotinst/gke/pulumiTypes.go @@ -2656,6 +2656,103 @@ func (o ElastigroupScalingUpPolicyDimensionArrayOutput) Index(i pulumi.IntInput) }).(ElastigroupScalingUpPolicyDimensionOutput) } +type OceanImportAutoUpdate struct { + // Enable the Ocean Kubernetes AutoUpdate. + IsEnabled *bool `pulumi:"isEnabled"` +} + +// OceanImportAutoUpdateInput is an input type that accepts OceanImportAutoUpdateArgs and OceanImportAutoUpdateOutput values. +// You can construct a concrete instance of `OceanImportAutoUpdateInput` via: +// +// OceanImportAutoUpdateArgs{...} +type OceanImportAutoUpdateInput interface { + pulumi.Input + + ToOceanImportAutoUpdateOutput() OceanImportAutoUpdateOutput + ToOceanImportAutoUpdateOutputWithContext(context.Context) OceanImportAutoUpdateOutput +} + +type OceanImportAutoUpdateArgs struct { + // Enable the Ocean Kubernetes AutoUpdate. + IsEnabled pulumi.BoolPtrInput `pulumi:"isEnabled"` +} + +func (OceanImportAutoUpdateArgs) ElementType() reflect.Type { + return reflect.TypeOf((*OceanImportAutoUpdate)(nil)).Elem() +} + +func (i OceanImportAutoUpdateArgs) ToOceanImportAutoUpdateOutput() OceanImportAutoUpdateOutput { + return i.ToOceanImportAutoUpdateOutputWithContext(context.Background()) +} + +func (i OceanImportAutoUpdateArgs) ToOceanImportAutoUpdateOutputWithContext(ctx context.Context) OceanImportAutoUpdateOutput { + return pulumi.ToOutputWithContext(ctx, i).(OceanImportAutoUpdateOutput) +} + +// OceanImportAutoUpdateArrayInput is an input type that accepts OceanImportAutoUpdateArray and OceanImportAutoUpdateArrayOutput values. +// You can construct a concrete instance of `OceanImportAutoUpdateArrayInput` via: +// +// OceanImportAutoUpdateArray{ OceanImportAutoUpdateArgs{...} } +type OceanImportAutoUpdateArrayInput interface { + pulumi.Input + + ToOceanImportAutoUpdateArrayOutput() OceanImportAutoUpdateArrayOutput + ToOceanImportAutoUpdateArrayOutputWithContext(context.Context) OceanImportAutoUpdateArrayOutput +} + +type OceanImportAutoUpdateArray []OceanImportAutoUpdateInput + +func (OceanImportAutoUpdateArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]OceanImportAutoUpdate)(nil)).Elem() +} + +func (i OceanImportAutoUpdateArray) ToOceanImportAutoUpdateArrayOutput() OceanImportAutoUpdateArrayOutput { + return i.ToOceanImportAutoUpdateArrayOutputWithContext(context.Background()) +} + +func (i OceanImportAutoUpdateArray) ToOceanImportAutoUpdateArrayOutputWithContext(ctx context.Context) OceanImportAutoUpdateArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(OceanImportAutoUpdateArrayOutput) +} + +type OceanImportAutoUpdateOutput struct{ *pulumi.OutputState } + +func (OceanImportAutoUpdateOutput) ElementType() reflect.Type { + return reflect.TypeOf((*OceanImportAutoUpdate)(nil)).Elem() +} + +func (o OceanImportAutoUpdateOutput) ToOceanImportAutoUpdateOutput() OceanImportAutoUpdateOutput { + return o +} + +func (o OceanImportAutoUpdateOutput) ToOceanImportAutoUpdateOutputWithContext(ctx context.Context) OceanImportAutoUpdateOutput { + return o +} + +// Enable the Ocean Kubernetes AutoUpdate. +func (o OceanImportAutoUpdateOutput) IsEnabled() pulumi.BoolPtrOutput { + return o.ApplyT(func(v OceanImportAutoUpdate) *bool { return v.IsEnabled }).(pulumi.BoolPtrOutput) +} + +type OceanImportAutoUpdateArrayOutput struct{ *pulumi.OutputState } + +func (OceanImportAutoUpdateArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]OceanImportAutoUpdate)(nil)).Elem() +} + +func (o OceanImportAutoUpdateArrayOutput) ToOceanImportAutoUpdateArrayOutput() OceanImportAutoUpdateArrayOutput { + return o +} + +func (o OceanImportAutoUpdateArrayOutput) ToOceanImportAutoUpdateArrayOutputWithContext(ctx context.Context) OceanImportAutoUpdateArrayOutput { + return o +} + +func (o OceanImportAutoUpdateArrayOutput) Index(i pulumi.IntInput) OceanImportAutoUpdateOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) OceanImportAutoUpdate { + return vs[0].([]OceanImportAutoUpdate)[vs[1].(int)] + }).(OceanImportAutoUpdateOutput) +} + type OceanImportAutoscaler struct { // Optionally set the auto headroom percentage, set a number between 0-200 to control the headroom % from the cluster. Relevant when isAutoConfig=true. AutoHeadroomPercentage *int `pulumi:"autoHeadroomPercentage"` @@ -7445,6 +7542,8 @@ func init() { pulumi.RegisterInputType(reflect.TypeOf((*ElastigroupScalingUpPolicyArrayInput)(nil)).Elem(), ElastigroupScalingUpPolicyArray{}) pulumi.RegisterInputType(reflect.TypeOf((*ElastigroupScalingUpPolicyDimensionInput)(nil)).Elem(), ElastigroupScalingUpPolicyDimensionArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*ElastigroupScalingUpPolicyDimensionArrayInput)(nil)).Elem(), ElastigroupScalingUpPolicyDimensionArray{}) + pulumi.RegisterInputType(reflect.TypeOf((*OceanImportAutoUpdateInput)(nil)).Elem(), OceanImportAutoUpdateArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*OceanImportAutoUpdateArrayInput)(nil)).Elem(), OceanImportAutoUpdateArray{}) pulumi.RegisterInputType(reflect.TypeOf((*OceanImportAutoscalerInput)(nil)).Elem(), OceanImportAutoscalerArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*OceanImportAutoscalerPtrInput)(nil)).Elem(), OceanImportAutoscalerArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*OceanImportAutoscalerDownInput)(nil)).Elem(), OceanImportAutoscalerDownArgs{}) @@ -7553,6 +7652,8 @@ func init() { pulumi.RegisterOutputType(ElastigroupScalingUpPolicyArrayOutput{}) pulumi.RegisterOutputType(ElastigroupScalingUpPolicyDimensionOutput{}) pulumi.RegisterOutputType(ElastigroupScalingUpPolicyDimensionArrayOutput{}) + pulumi.RegisterOutputType(OceanImportAutoUpdateOutput{}) + pulumi.RegisterOutputType(OceanImportAutoUpdateArrayOutput{}) pulumi.RegisterOutputType(OceanImportAutoscalerOutput{}) pulumi.RegisterOutputType(OceanImportAutoscalerPtrOutput{}) pulumi.RegisterOutputType(OceanImportAutoscalerDownOutput{}) diff --git a/sdk/java/src/main/java/com/pulumi/spotinst/gke/OceanImport.java b/sdk/java/src/main/java/com/pulumi/spotinst/gke/OceanImport.java index 71e9f853..e6e2a4a5 100644 --- a/sdk/java/src/main/java/com/pulumi/spotinst/gke/OceanImport.java +++ b/sdk/java/src/main/java/com/pulumi/spotinst/gke/OceanImport.java @@ -10,6 +10,7 @@ import com.pulumi.spotinst.Utilities; import com.pulumi.spotinst.gke.OceanImportArgs; import com.pulumi.spotinst.gke.inputs.OceanImportState; +import com.pulumi.spotinst.gke.outputs.OceanImportAutoUpdate; import com.pulumi.spotinst.gke.outputs.OceanImportAutoscaler; import com.pulumi.spotinst.gke.outputs.OceanImportBackendService; import com.pulumi.spotinst.gke.outputs.OceanImportFilters; @@ -37,6 +38,7 @@ * import com.pulumi.core.Output; * import com.pulumi.spotinst.gke.OceanImport; * import com.pulumi.spotinst.gke.OceanImportArgs; + * import com.pulumi.spotinst.gke.inputs.OceanImportAutoUpdateArgs; * import com.pulumi.spotinst.gke.inputs.OceanImportFiltersArgs; * import com.pulumi.spotinst.gke.inputs.OceanImportBackendServiceArgs; * import com.pulumi.spotinst.gke.inputs.OceanImportShieldedInstanceConfigArgs; @@ -60,6 +62,9 @@ * .minSize(0) * .maxSize(2) * .desiredCapacity(0) + * .autoUpdates(OceanImportAutoUpdateArgs.builder() + * .isEnabled(true) + * .build()) * .whitelists( * "n1-standard-1", * "n1-standard-2") @@ -101,6 +106,20 @@ */ @ResourceType(type="spotinst:gke/oceanImport:OceanImport") public class OceanImport extends com.pulumi.resources.CustomResource { + /** + * The Ocean Kubernetes AutoUpdate object. If set to 'true', Ocean will ensure that your clusters have an up-to-date configuration according to the respective GKE cluster. + * + */ + @Export(name="autoUpdates", refs={List.class,OceanImportAutoUpdate.class}, tree="[0,1]") + private Output> autoUpdates; + + /** + * @return The Ocean Kubernetes AutoUpdate object. If set to 'true', Ocean will ensure that your clusters have an up-to-date configuration according to the respective GKE cluster. + * + */ + public Output>> autoUpdates() { + return Codegen.optional(this.autoUpdates); + } /** * The Ocean Kubernetes Autoscaler object. * diff --git a/sdk/java/src/main/java/com/pulumi/spotinst/gke/OceanImportArgs.java b/sdk/java/src/main/java/com/pulumi/spotinst/gke/OceanImportArgs.java index 88040905..d32fd875 100644 --- a/sdk/java/src/main/java/com/pulumi/spotinst/gke/OceanImportArgs.java +++ b/sdk/java/src/main/java/com/pulumi/spotinst/gke/OceanImportArgs.java @@ -6,6 +6,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; import com.pulumi.exceptions.MissingRequiredPropertyException; +import com.pulumi.spotinst.gke.inputs.OceanImportAutoUpdateArgs; import com.pulumi.spotinst.gke.inputs.OceanImportAutoscalerArgs; import com.pulumi.spotinst.gke.inputs.OceanImportBackendServiceArgs; import com.pulumi.spotinst.gke.inputs.OceanImportFiltersArgs; @@ -26,6 +27,21 @@ public final class OceanImportArgs extends com.pulumi.resources.ResourceArgs { public static final OceanImportArgs Empty = new OceanImportArgs(); + /** + * The Ocean Kubernetes AutoUpdate object. If set to 'true', Ocean will ensure that your clusters have an up-to-date configuration according to the respective GKE cluster. + * + */ + @Import(name="autoUpdates") + private @Nullable Output> autoUpdates; + + /** + * @return The Ocean Kubernetes AutoUpdate object. If set to 'true', Ocean will ensure that your clusters have an up-to-date configuration according to the respective GKE cluster. + * + */ + public Optional>> autoUpdates() { + return Optional.ofNullable(this.autoUpdates); + } + /** * The Ocean Kubernetes Autoscaler object. * @@ -276,6 +292,7 @@ public Optional>> whitelists() { private OceanImportArgs() {} private OceanImportArgs(OceanImportArgs $) { + this.autoUpdates = $.autoUpdates; this.autoscaler = $.autoscaler; this.backendServices = $.backendServices; this.blacklists = $.blacklists; @@ -313,6 +330,37 @@ public Builder(OceanImportArgs defaults) { $ = new OceanImportArgs(Objects.requireNonNull(defaults)); } + /** + * @param autoUpdates The Ocean Kubernetes AutoUpdate object. If set to 'true', Ocean will ensure that your clusters have an up-to-date configuration according to the respective GKE cluster. + * + * @return builder + * + */ + public Builder autoUpdates(@Nullable Output> autoUpdates) { + $.autoUpdates = autoUpdates; + return this; + } + + /** + * @param autoUpdates The Ocean Kubernetes AutoUpdate object. If set to 'true', Ocean will ensure that your clusters have an up-to-date configuration according to the respective GKE cluster. + * + * @return builder + * + */ + public Builder autoUpdates(List autoUpdates) { + return autoUpdates(Output.of(autoUpdates)); + } + + /** + * @param autoUpdates The Ocean Kubernetes AutoUpdate object. If set to 'true', Ocean will ensure that your clusters have an up-to-date configuration according to the respective GKE cluster. + * + * @return builder + * + */ + public Builder autoUpdates(OceanImportAutoUpdateArgs... autoUpdates) { + return autoUpdates(List.of(autoUpdates)); + } + /** * @param autoscaler The Ocean Kubernetes Autoscaler object. * diff --git a/sdk/java/src/main/java/com/pulumi/spotinst/gke/inputs/OceanImportAutoUpdateArgs.java b/sdk/java/src/main/java/com/pulumi/spotinst/gke/inputs/OceanImportAutoUpdateArgs.java new file mode 100644 index 00000000..369dfc39 --- /dev/null +++ b/sdk/java/src/main/java/com/pulumi/spotinst/gke/inputs/OceanImportAutoUpdateArgs.java @@ -0,0 +1,83 @@ +// *** WARNING: this file was generated by pulumi-java-gen. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package com.pulumi.spotinst.gke.inputs; + +import com.pulumi.core.Output; +import com.pulumi.core.annotations.Import; +import java.lang.Boolean; +import java.util.Objects; +import java.util.Optional; +import javax.annotation.Nullable; + + +public final class OceanImportAutoUpdateArgs extends com.pulumi.resources.ResourceArgs { + + public static final OceanImportAutoUpdateArgs Empty = new OceanImportAutoUpdateArgs(); + + /** + * Enable the Ocean Kubernetes AutoUpdate. + * + */ + @Import(name="isEnabled") + private @Nullable Output isEnabled; + + /** + * @return Enable the Ocean Kubernetes AutoUpdate. + * + */ + public Optional> isEnabled() { + return Optional.ofNullable(this.isEnabled); + } + + private OceanImportAutoUpdateArgs() {} + + private OceanImportAutoUpdateArgs(OceanImportAutoUpdateArgs $) { + this.isEnabled = $.isEnabled; + } + + public static Builder builder() { + return new Builder(); + } + public static Builder builder(OceanImportAutoUpdateArgs defaults) { + return new Builder(defaults); + } + + public static final class Builder { + private OceanImportAutoUpdateArgs $; + + public Builder() { + $ = new OceanImportAutoUpdateArgs(); + } + + public Builder(OceanImportAutoUpdateArgs defaults) { + $ = new OceanImportAutoUpdateArgs(Objects.requireNonNull(defaults)); + } + + /** + * @param isEnabled Enable the Ocean Kubernetes AutoUpdate. + * + * @return builder + * + */ + public Builder isEnabled(@Nullable Output isEnabled) { + $.isEnabled = isEnabled; + return this; + } + + /** + * @param isEnabled Enable the Ocean Kubernetes AutoUpdate. + * + * @return builder + * + */ + public Builder isEnabled(Boolean isEnabled) { + return isEnabled(Output.of(isEnabled)); + } + + public OceanImportAutoUpdateArgs build() { + return $; + } + } + +} diff --git a/sdk/java/src/main/java/com/pulumi/spotinst/gke/inputs/OceanImportState.java b/sdk/java/src/main/java/com/pulumi/spotinst/gke/inputs/OceanImportState.java index 9799abb2..e7f91f09 100644 --- a/sdk/java/src/main/java/com/pulumi/spotinst/gke/inputs/OceanImportState.java +++ b/sdk/java/src/main/java/com/pulumi/spotinst/gke/inputs/OceanImportState.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.spotinst.gke.inputs.OceanImportAutoUpdateArgs; import com.pulumi.spotinst.gke.inputs.OceanImportAutoscalerArgs; import com.pulumi.spotinst.gke.inputs.OceanImportBackendServiceArgs; import com.pulumi.spotinst.gke.inputs.OceanImportFiltersArgs; @@ -25,6 +26,21 @@ public final class OceanImportState extends com.pulumi.resources.ResourceArgs { public static final OceanImportState Empty = new OceanImportState(); + /** + * The Ocean Kubernetes AutoUpdate object. If set to 'true', Ocean will ensure that your clusters have an up-to-date configuration according to the respective GKE cluster. + * + */ + @Import(name="autoUpdates") + private @Nullable Output> autoUpdates; + + /** + * @return The Ocean Kubernetes AutoUpdate object. If set to 'true', Ocean will ensure that your clusters have an up-to-date configuration according to the respective GKE cluster. + * + */ + public Optional>> autoUpdates() { + return Optional.ofNullable(this.autoUpdates); + } + /** * The Ocean Kubernetes Autoscaler object. * @@ -282,6 +298,7 @@ public Optional>> whitelists() { private OceanImportState() {} private OceanImportState(OceanImportState $) { + this.autoUpdates = $.autoUpdates; this.autoscaler = $.autoscaler; this.backendServices = $.backendServices; this.blacklists = $.blacklists; @@ -320,6 +337,37 @@ public Builder(OceanImportState defaults) { $ = new OceanImportState(Objects.requireNonNull(defaults)); } + /** + * @param autoUpdates The Ocean Kubernetes AutoUpdate object. If set to 'true', Ocean will ensure that your clusters have an up-to-date configuration according to the respective GKE cluster. + * + * @return builder + * + */ + public Builder autoUpdates(@Nullable Output> autoUpdates) { + $.autoUpdates = autoUpdates; + return this; + } + + /** + * @param autoUpdates The Ocean Kubernetes AutoUpdate object. If set to 'true', Ocean will ensure that your clusters have an up-to-date configuration according to the respective GKE cluster. + * + * @return builder + * + */ + public Builder autoUpdates(List autoUpdates) { + return autoUpdates(Output.of(autoUpdates)); + } + + /** + * @param autoUpdates The Ocean Kubernetes AutoUpdate object. If set to 'true', Ocean will ensure that your clusters have an up-to-date configuration according to the respective GKE cluster. + * + * @return builder + * + */ + public Builder autoUpdates(OceanImportAutoUpdateArgs... autoUpdates) { + return autoUpdates(List.of(autoUpdates)); + } + /** * @param autoscaler The Ocean Kubernetes Autoscaler object. * diff --git a/sdk/java/src/main/java/com/pulumi/spotinst/gke/outputs/OceanImportAutoUpdate.java b/sdk/java/src/main/java/com/pulumi/spotinst/gke/outputs/OceanImportAutoUpdate.java new file mode 100644 index 00000000..4a71dcdd --- /dev/null +++ b/sdk/java/src/main/java/com/pulumi/spotinst/gke/outputs/OceanImportAutoUpdate.java @@ -0,0 +1,57 @@ +// *** WARNING: this file was generated by pulumi-java-gen. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package com.pulumi.spotinst.gke.outputs; + +import com.pulumi.core.annotations.CustomType; +import java.lang.Boolean; +import java.util.Objects; +import java.util.Optional; +import javax.annotation.Nullable; + +@CustomType +public final class OceanImportAutoUpdate { + /** + * @return Enable the Ocean Kubernetes AutoUpdate. + * + */ + private @Nullable Boolean isEnabled; + + private OceanImportAutoUpdate() {} + /** + * @return Enable the Ocean Kubernetes AutoUpdate. + * + */ + public Optional isEnabled() { + return Optional.ofNullable(this.isEnabled); + } + + public static Builder builder() { + return new Builder(); + } + + public static Builder builder(OceanImportAutoUpdate defaults) { + return new Builder(defaults); + } + @CustomType.Builder + public static final class Builder { + private @Nullable Boolean isEnabled; + public Builder() {} + public Builder(OceanImportAutoUpdate defaults) { + Objects.requireNonNull(defaults); + this.isEnabled = defaults.isEnabled; + } + + @CustomType.Setter + public Builder isEnabled(@Nullable Boolean isEnabled) { + + this.isEnabled = isEnabled; + return this; + } + public OceanImportAutoUpdate build() { + final var _resultValue = new OceanImportAutoUpdate(); + _resultValue.isEnabled = isEnabled; + return _resultValue; + } + } +} diff --git a/sdk/nodejs/gke/oceanImport.ts b/sdk/nodejs/gke/oceanImport.ts index 07b21e5f..98426283 100644 --- a/sdk/nodejs/gke/oceanImport.ts +++ b/sdk/nodejs/gke/oceanImport.ts @@ -20,6 +20,9 @@ import * as utilities from "../utilities"; * minSize: 0, * maxSize: 2, * desiredCapacity: 0, + * autoUpdates: [{ + * isEnabled: true, + * }], * whitelists: [ * "n1-standard-1", * "n1-standard-2", @@ -84,6 +87,10 @@ export class OceanImport extends pulumi.CustomResource { return obj['__pulumiType'] === OceanImport.__pulumiType; } + /** + * The Ocean Kubernetes AutoUpdate object. If set to 'true', Ocean will ensure that your clusters have an up-to-date configuration according to the respective GKE cluster. + */ + public readonly autoUpdates!: pulumi.Output; /** * The Ocean Kubernetes Autoscaler object. */ @@ -164,6 +171,7 @@ export class OceanImport extends pulumi.CustomResource { opts = opts || {}; if (opts.id) { const state = argsOrState as OceanImportState | undefined; + resourceInputs["autoUpdates"] = state ? state.autoUpdates : undefined; resourceInputs["autoscaler"] = state ? state.autoscaler : undefined; resourceInputs["backendServices"] = state ? state.backendServices : undefined; resourceInputs["blacklists"] = state ? state.blacklists : undefined; @@ -190,6 +198,7 @@ export class OceanImport extends pulumi.CustomResource { if ((!args || args.location === undefined) && !opts.urn) { throw new Error("Missing required property 'location'"); } + resourceInputs["autoUpdates"] = args ? args.autoUpdates : undefined; resourceInputs["autoscaler"] = args ? args.autoscaler : undefined; resourceInputs["backendServices"] = args ? args.backendServices : undefined; resourceInputs["blacklists"] = args ? args.blacklists : undefined; @@ -218,6 +227,10 @@ export class OceanImport extends pulumi.CustomResource { * Input properties used for looking up and filtering OceanImport resources. */ export interface OceanImportState { + /** + * The Ocean Kubernetes AutoUpdate object. If set to 'true', Ocean will ensure that your clusters have an up-to-date configuration according to the respective GKE cluster. + */ + autoUpdates?: pulumi.Input[]>; /** * The Ocean Kubernetes Autoscaler object. */ @@ -290,6 +303,10 @@ export interface OceanImportState { * The set of arguments for constructing a OceanImport resource. */ export interface OceanImportArgs { + /** + * The Ocean Kubernetes AutoUpdate object. If set to 'true', Ocean will ensure that your clusters have an up-to-date configuration according to the respective GKE cluster. + */ + autoUpdates?: pulumi.Input[]>; /** * The Ocean Kubernetes Autoscaler object. */ diff --git a/sdk/nodejs/types/input.ts b/sdk/nodejs/types/input.ts index c1b5a88b..ccccc5aa 100644 --- a/sdk/nodejs/types/input.ts +++ b/sdk/nodejs/types/input.ts @@ -4747,6 +4747,13 @@ export namespace gke { value?: pulumi.Input; } + export interface OceanImportAutoUpdate { + /** + * Enable the Ocean Kubernetes AutoUpdate. + */ + isEnabled?: pulumi.Input; + } + export interface OceanImportAutoscaler { /** * Optionally set the auto headroom percentage, set a number between 0-200 to control the headroom % from the cluster. Relevant when isAutoConfig=true. diff --git a/sdk/nodejs/types/output.ts b/sdk/nodejs/types/output.ts index 36a4db91..43719ecd 100644 --- a/sdk/nodejs/types/output.ts +++ b/sdk/nodejs/types/output.ts @@ -4752,6 +4752,13 @@ export namespace gke { value?: string; } + export interface OceanImportAutoUpdate { + /** + * Enable the Ocean Kubernetes AutoUpdate. + */ + isEnabled?: boolean; + } + export interface OceanImportAutoscaler { /** * Optionally set the auto headroom percentage, set a number between 0-200 to control the headroom % from the cluster. Relevant when isAutoConfig=true. diff --git a/sdk/python/pulumi_spotinst/gke/_inputs.py b/sdk/python/pulumi_spotinst/gke/_inputs.py index 12c3f9d0..4aa8befc 100644 --- a/sdk/python/pulumi_spotinst/gke/_inputs.py +++ b/sdk/python/pulumi_spotinst/gke/_inputs.py @@ -57,6 +57,8 @@ 'ElastigroupScalingUpPolicyArgsDict', 'ElastigroupScalingUpPolicyDimensionArgs', 'ElastigroupScalingUpPolicyDimensionArgsDict', + 'OceanImportAutoUpdateArgs', + 'OceanImportAutoUpdateArgsDict', 'OceanImportAutoscalerArgs', 'OceanImportAutoscalerArgsDict', 'OceanImportAutoscalerDownArgs', @@ -1465,6 +1467,38 @@ def value(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "value", value) +if not MYPY: + class OceanImportAutoUpdateArgsDict(TypedDict): + is_enabled: NotRequired[pulumi.Input[bool]] + """ + Enable the Ocean Kubernetes AutoUpdate. + """ +elif False: + OceanImportAutoUpdateArgsDict: TypeAlias = Mapping[str, Any] + +@pulumi.input_type +class OceanImportAutoUpdateArgs: + def __init__(__self__, *, + is_enabled: Optional[pulumi.Input[bool]] = None): + """ + :param pulumi.Input[bool] is_enabled: Enable the Ocean Kubernetes AutoUpdate. + """ + if is_enabled is not None: + pulumi.set(__self__, "is_enabled", is_enabled) + + @property + @pulumi.getter(name="isEnabled") + def is_enabled(self) -> Optional[pulumi.Input[bool]]: + """ + Enable the Ocean Kubernetes AutoUpdate. + """ + return pulumi.get(self, "is_enabled") + + @is_enabled.setter + def is_enabled(self, value: Optional[pulumi.Input[bool]]): + pulumi.set(self, "is_enabled", value) + + if not MYPY: class OceanImportAutoscalerArgsDict(TypedDict): auto_headroom_percentage: NotRequired[pulumi.Input[int]] diff --git a/sdk/python/pulumi_spotinst/gke/ocean_import.py b/sdk/python/pulumi_spotinst/gke/ocean_import.py index ade11ecf..ceb044bd 100644 --- a/sdk/python/pulumi_spotinst/gke/ocean_import.py +++ b/sdk/python/pulumi_spotinst/gke/ocean_import.py @@ -23,6 +23,7 @@ class OceanImportArgs: def __init__(__self__, *, cluster_name: pulumi.Input[str], location: pulumi.Input[str], + auto_updates: Optional[pulumi.Input[Sequence[pulumi.Input['OceanImportAutoUpdateArgs']]]] = None, autoscaler: Optional[pulumi.Input['OceanImportAutoscalerArgs']] = None, backend_services: Optional[pulumi.Input[Sequence[pulumi.Input['OceanImportBackendServiceArgs']]]] = None, blacklists: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, @@ -42,6 +43,7 @@ def __init__(__self__, *, The set of arguments for constructing a OceanImport resource. :param pulumi.Input[str] cluster_name: The GKE cluster name. :param pulumi.Input[str] location: The zone the master cluster is located in. + :param pulumi.Input[Sequence[pulumi.Input['OceanImportAutoUpdateArgs']]] auto_updates: The Ocean Kubernetes AutoUpdate object. If set to 'true', Ocean will ensure that your clusters have an up-to-date configuration according to the respective GKE cluster. :param pulumi.Input['OceanImportAutoscalerArgs'] autoscaler: The Ocean Kubernetes Autoscaler object. :param pulumi.Input[Sequence[pulumi.Input['OceanImportBackendServiceArgs']]] backend_services: Describes the backend service configurations. :param pulumi.Input[Sequence[pulumi.Input[str]]] blacklists: Instance types to avoid launching in the Ocean cluster. Cannot be configured if whitelist list is configured. @@ -59,6 +61,8 @@ def __init__(__self__, *, """ pulumi.set(__self__, "cluster_name", cluster_name) pulumi.set(__self__, "location", location) + if auto_updates is not None: + pulumi.set(__self__, "auto_updates", auto_updates) if autoscaler is not None: pulumi.set(__self__, "autoscaler", autoscaler) if backend_services is not None: @@ -114,6 +118,18 @@ def location(self) -> pulumi.Input[str]: def location(self, value: pulumi.Input[str]): pulumi.set(self, "location", value) + @property + @pulumi.getter(name="autoUpdates") + def auto_updates(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['OceanImportAutoUpdateArgs']]]]: + """ + The Ocean Kubernetes AutoUpdate object. If set to 'true', Ocean will ensure that your clusters have an up-to-date configuration according to the respective GKE cluster. + """ + return pulumi.get(self, "auto_updates") + + @auto_updates.setter + def auto_updates(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['OceanImportAutoUpdateArgs']]]]): + pulumi.set(self, "auto_updates", value) + @property @pulumi.getter def autoscaler(self) -> Optional[pulumi.Input['OceanImportAutoscalerArgs']]: @@ -295,6 +311,7 @@ def whitelists(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]) @pulumi.input_type class _OceanImportState: def __init__(__self__, *, + auto_updates: Optional[pulumi.Input[Sequence[pulumi.Input['OceanImportAutoUpdateArgs']]]] = None, autoscaler: Optional[pulumi.Input['OceanImportAutoscalerArgs']] = None, backend_services: Optional[pulumi.Input[Sequence[pulumi.Input['OceanImportBackendServiceArgs']]]] = None, blacklists: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, @@ -315,6 +332,7 @@ def __init__(__self__, *, whitelists: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None): """ Input properties used for looking up and filtering OceanImport resources. + :param pulumi.Input[Sequence[pulumi.Input['OceanImportAutoUpdateArgs']]] auto_updates: The Ocean Kubernetes AutoUpdate object. If set to 'true', Ocean will ensure that your clusters have an up-to-date configuration according to the respective GKE cluster. :param pulumi.Input['OceanImportAutoscalerArgs'] autoscaler: The Ocean Kubernetes Autoscaler object. :param pulumi.Input[Sequence[pulumi.Input['OceanImportBackendServiceArgs']]] backend_services: Describes the backend service configurations. :param pulumi.Input[Sequence[pulumi.Input[str]]] blacklists: Instance types to avoid launching in the Ocean cluster. Cannot be configured if whitelist list is configured. @@ -332,6 +350,8 @@ def __init__(__self__, *, :param pulumi.Input[bool] use_as_template_only: launch specification defined on the Ocean object will function only as a template for virtual node groups. :param pulumi.Input[Sequence[pulumi.Input[str]]] whitelists: Instance types allowed in the Ocean cluster. Cannot be configured if blacklist list is configured. """ + if auto_updates is not None: + pulumi.set(__self__, "auto_updates", auto_updates) if autoscaler is not None: pulumi.set(__self__, "autoscaler", autoscaler) if backend_services is not None: @@ -369,6 +389,18 @@ def __init__(__self__, *, if whitelists is not None: pulumi.set(__self__, "whitelists", whitelists) + @property + @pulumi.getter(name="autoUpdates") + def auto_updates(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['OceanImportAutoUpdateArgs']]]]: + """ + The Ocean Kubernetes AutoUpdate object. If set to 'true', Ocean will ensure that your clusters have an up-to-date configuration according to the respective GKE cluster. + """ + return pulumi.get(self, "auto_updates") + + @auto_updates.setter + def auto_updates(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['OceanImportAutoUpdateArgs']]]]): + pulumi.set(self, "auto_updates", value) + @property @pulumi.getter def autoscaler(self) -> Optional[pulumi.Input['OceanImportAutoscalerArgs']]: @@ -585,6 +617,7 @@ class OceanImport(pulumi.CustomResource): def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, + auto_updates: Optional[pulumi.Input[Sequence[pulumi.Input[Union['OceanImportAutoUpdateArgs', 'OceanImportAutoUpdateArgsDict']]]]] = None, autoscaler: Optional[pulumi.Input[Union['OceanImportAutoscalerArgs', 'OceanImportAutoscalerArgsDict']]] = None, backend_services: Optional[pulumi.Input[Sequence[pulumi.Input[Union['OceanImportBackendServiceArgs', 'OceanImportBackendServiceArgsDict']]]]] = None, blacklists: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, @@ -617,6 +650,9 @@ def __init__(__self__, min_size=0, max_size=2, desired_capacity=0, + auto_updates=[{ + "is_enabled": True, + }], whitelists=[ "n1-standard-1", "n1-standard-2", @@ -654,6 +690,7 @@ def __init__(__self__, :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. + :param pulumi.Input[Sequence[pulumi.Input[Union['OceanImportAutoUpdateArgs', 'OceanImportAutoUpdateArgsDict']]]] auto_updates: The Ocean Kubernetes AutoUpdate object. If set to 'true', Ocean will ensure that your clusters have an up-to-date configuration according to the respective GKE cluster. :param pulumi.Input[Union['OceanImportAutoscalerArgs', 'OceanImportAutoscalerArgsDict']] autoscaler: The Ocean Kubernetes Autoscaler object. :param pulumi.Input[Sequence[pulumi.Input[Union['OceanImportBackendServiceArgs', 'OceanImportBackendServiceArgsDict']]]] backend_services: Describes the backend service configurations. :param pulumi.Input[Sequence[pulumi.Input[str]]] blacklists: Instance types to avoid launching in the Ocean cluster. Cannot be configured if whitelist list is configured. @@ -691,6 +728,9 @@ def __init__(__self__, min_size=0, max_size=2, desired_capacity=0, + auto_updates=[{ + "is_enabled": True, + }], whitelists=[ "n1-standard-1", "n1-standard-2", @@ -741,6 +781,7 @@ def __init__(__self__, resource_name: str, *args, **kwargs): def _internal_init(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, + auto_updates: Optional[pulumi.Input[Sequence[pulumi.Input[Union['OceanImportAutoUpdateArgs', 'OceanImportAutoUpdateArgsDict']]]]] = None, autoscaler: Optional[pulumi.Input[Union['OceanImportAutoscalerArgs', 'OceanImportAutoscalerArgsDict']]] = None, backend_services: Optional[pulumi.Input[Sequence[pulumi.Input[Union['OceanImportBackendServiceArgs', 'OceanImportBackendServiceArgsDict']]]]] = None, blacklists: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, @@ -767,6 +808,7 @@ def _internal_init(__self__, raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') __props__ = OceanImportArgs.__new__(OceanImportArgs) + __props__.__dict__["auto_updates"] = auto_updates __props__.__dict__["autoscaler"] = autoscaler __props__.__dict__["backend_services"] = backend_services __props__.__dict__["blacklists"] = blacklists @@ -799,6 +841,7 @@ def _internal_init(__self__, def get(resource_name: str, id: pulumi.Input[str], opts: Optional[pulumi.ResourceOptions] = None, + auto_updates: Optional[pulumi.Input[Sequence[pulumi.Input[Union['OceanImportAutoUpdateArgs', 'OceanImportAutoUpdateArgsDict']]]]] = None, autoscaler: Optional[pulumi.Input[Union['OceanImportAutoscalerArgs', 'OceanImportAutoscalerArgsDict']]] = None, backend_services: Optional[pulumi.Input[Sequence[pulumi.Input[Union['OceanImportBackendServiceArgs', 'OceanImportBackendServiceArgsDict']]]]] = None, blacklists: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, @@ -824,6 +867,7 @@ def get(resource_name: str, :param str resource_name: The unique name of the resulting resource. :param pulumi.Input[str] id: The unique provider ID of the resource to lookup. :param pulumi.ResourceOptions opts: Options for the resource. + :param pulumi.Input[Sequence[pulumi.Input[Union['OceanImportAutoUpdateArgs', 'OceanImportAutoUpdateArgsDict']]]] auto_updates: The Ocean Kubernetes AutoUpdate object. If set to 'true', Ocean will ensure that your clusters have an up-to-date configuration according to the respective GKE cluster. :param pulumi.Input[Union['OceanImportAutoscalerArgs', 'OceanImportAutoscalerArgsDict']] autoscaler: The Ocean Kubernetes Autoscaler object. :param pulumi.Input[Sequence[pulumi.Input[Union['OceanImportBackendServiceArgs', 'OceanImportBackendServiceArgsDict']]]] backend_services: Describes the backend service configurations. :param pulumi.Input[Sequence[pulumi.Input[str]]] blacklists: Instance types to avoid launching in the Ocean cluster. Cannot be configured if whitelist list is configured. @@ -845,6 +889,7 @@ def get(resource_name: str, __props__ = _OceanImportState.__new__(_OceanImportState) + __props__.__dict__["auto_updates"] = auto_updates __props__.__dict__["autoscaler"] = autoscaler __props__.__dict__["backend_services"] = backend_services __props__.__dict__["blacklists"] = blacklists @@ -865,6 +910,14 @@ def get(resource_name: str, __props__.__dict__["whitelists"] = whitelists return OceanImport(resource_name, opts=opts, __props__=__props__) + @property + @pulumi.getter(name="autoUpdates") + def auto_updates(self) -> pulumi.Output[Optional[Sequence['outputs.OceanImportAutoUpdate']]]: + """ + The Ocean Kubernetes AutoUpdate object. If set to 'true', Ocean will ensure that your clusters have an up-to-date configuration according to the respective GKE cluster. + """ + return pulumi.get(self, "auto_updates") + @property @pulumi.getter def autoscaler(self) -> pulumi.Output['outputs.OceanImportAutoscaler']: diff --git a/sdk/python/pulumi_spotinst/gke/outputs.py b/sdk/python/pulumi_spotinst/gke/outputs.py index a0087be5..e5841310 100644 --- a/sdk/python/pulumi_spotinst/gke/outputs.py +++ b/sdk/python/pulumi_spotinst/gke/outputs.py @@ -37,6 +37,7 @@ 'ElastigroupScalingDownPolicyDimension', 'ElastigroupScalingUpPolicy', 'ElastigroupScalingUpPolicyDimension', + 'OceanImportAutoUpdate', 'OceanImportAutoscaler', 'OceanImportAutoscalerDown', 'OceanImportAutoscalerHeadroom', @@ -1128,6 +1129,42 @@ def value(self) -> Optional[str]: return pulumi.get(self, "value") +@pulumi.output_type +class OceanImportAutoUpdate(dict): + @staticmethod + def __key_warning(key: str): + suggest = None + if key == "isEnabled": + suggest = "is_enabled" + + if suggest: + pulumi.log.warn(f"Key '{key}' not found in OceanImportAutoUpdate. Access the value via the '{suggest}' property getter instead.") + + def __getitem__(self, key: str) -> Any: + OceanImportAutoUpdate.__key_warning(key) + return super().__getitem__(key) + + def get(self, key: str, default = None) -> Any: + OceanImportAutoUpdate.__key_warning(key) + return super().get(key, default) + + def __init__(__self__, *, + is_enabled: Optional[bool] = None): + """ + :param bool is_enabled: Enable the Ocean Kubernetes AutoUpdate. + """ + if is_enabled is not None: + pulumi.set(__self__, "is_enabled", is_enabled) + + @property + @pulumi.getter(name="isEnabled") + def is_enabled(self) -> Optional[bool]: + """ + Enable the Ocean Kubernetes AutoUpdate. + """ + return pulumi.get(self, "is_enabled") + + @pulumi.output_type class OceanImportAutoscaler(dict): @staticmethod