@pulumi/gcp 9.31.0 → 9.32.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/backupdisasterrecovery/backupPlan.d.ts +1 -0
- package/backupdisasterrecovery/backupPlan.d.ts.map +1 -1
- package/backupdisasterrecovery/backupPlan.js +1 -0
- package/backupdisasterrecovery/backupPlan.js.map +1 -1
- package/backupdisasterrecovery/backupPlanAssociation.d.ts +3 -0
- package/backupdisasterrecovery/backupPlanAssociation.d.ts.map +1 -1
- package/backupdisasterrecovery/backupPlanAssociation.js.map +1 -1
- package/backupdisasterrecovery/backupVault.d.ts +14 -0
- package/backupdisasterrecovery/backupVault.d.ts.map +1 -1
- package/backupdisasterrecovery/backupVault.js +2 -0
- package/backupdisasterrecovery/backupVault.js.map +1 -1
- package/backupdisasterrecovery/getBackupVault.d.ts +1 -0
- package/backupdisasterrecovery/getBackupVault.d.ts.map +1 -1
- package/backupdisasterrecovery/getBackupVault.js.map +1 -1
- package/backupdisasterrecovery/getDataSource.d.ts +1 -0
- package/backupdisasterrecovery/getDataSource.d.ts.map +1 -1
- package/backupdisasterrecovery/getDataSource.js.map +1 -1
- package/biglake/getHiveTableIamPolicy.d.ts +108 -0
- package/biglake/getHiveTableIamPolicy.d.ts.map +1 -0
- package/biglake/getHiveTableIamPolicy.js +89 -0
- package/biglake/getHiveTableIamPolicy.js.map +1 -0
- package/biglake/hiveTable.d.ts +336 -0
- package/biglake/hiveTable.d.ts.map +1 -0
- package/biglake/hiveTable.js +212 -0
- package/biglake/hiveTable.js.map +1 -0
- package/biglake/hiveTableIamBinding.d.ts +342 -0
- package/biglake/hiveTableIamBinding.d.ts.map +1 -0
- package/biglake/hiveTableIamBinding.js +276 -0
- package/biglake/hiveTableIamBinding.js.map +1 -0
- package/biglake/hiveTableIamMember.d.ts +342 -0
- package/biglake/hiveTableIamMember.d.ts.map +1 -0
- package/biglake/hiveTableIamMember.js +276 -0
- package/biglake/hiveTableIamMember.js.map +1 -0
- package/biglake/hiveTableIamPolicy.d.ts +289 -0
- package/biglake/hiveTableIamPolicy.d.ts.map +1 -0
- package/biglake/hiveTableIamPolicy.js +269 -0
- package/biglake/hiveTableIamPolicy.js.map +1 -0
- package/biglake/index.d.ts +15 -0
- package/biglake/index.d.ts.map +1 -1
- package/biglake/index.js +24 -1
- package/biglake/index.js.map +1 -1
- package/bigquery/connection.d.ts +1 -1
- package/bigquery/connection.js +1 -1
- package/bigquery/routine.d.ts +1 -1
- package/bigquery/routine.js +1 -1
- package/billing/projectInfo.d.ts +2 -2
- package/billing/projectInfo.js +2 -2
- package/certificatemanager/certificate.d.ts +9 -0
- package/certificatemanager/certificate.d.ts.map +1 -1
- package/certificatemanager/certificate.js.map +1 -1
- package/chronicle/dataExport.d.ts +2 -2
- package/chronicle/dataExport.js +2 -2
- package/chronicle/environmentGroup.d.ts +1 -4
- package/chronicle/environmentGroup.d.ts.map +1 -1
- package/chronicle/environmentGroup.js +1 -4
- package/chronicle/environmentGroup.js.map +1 -1
- package/chronicle/feed.d.ts +3 -3
- package/chronicle/feed.js +3 -3
- package/cloudrunv2/getJob.d.ts +3 -0
- package/cloudrunv2/getJob.d.ts.map +1 -1
- package/cloudrunv2/getJob.js.map +1 -1
- package/cloudrunv2/getService.d.ts +3 -0
- package/cloudrunv2/getService.d.ts.map +1 -1
- package/cloudrunv2/getService.js.map +1 -1
- package/cloudrunv2/job.d.ts +46 -0
- package/cloudrunv2/job.d.ts.map +1 -1
- package/cloudrunv2/job.js +24 -0
- package/cloudrunv2/job.js.map +1 -1
- package/cloudrunv2/service.d.ts +45 -1
- package/cloudrunv2/service.d.ts.map +1 -1
- package/cloudrunv2/service.js +23 -1
- package/cloudrunv2/service.js.map +1 -1
- package/compute/address.d.ts +9 -6
- package/compute/address.d.ts.map +1 -1
- package/compute/address.js.map +1 -1
- package/compute/futureReservation.d.ts +11 -5
- package/compute/futureReservation.d.ts.map +1 -1
- package/compute/futureReservation.js +3 -1
- package/compute/futureReservation.js.map +1 -1
- package/compute/getMachineTypes.d.ts +6 -6
- package/compute/getMachineTypes.js +6 -6
- package/compute/globalVmExtensionPolicy.d.ts +337 -0
- package/compute/globalVmExtensionPolicy.d.ts.map +1 -0
- package/compute/globalVmExtensionPolicy.js +237 -0
- package/compute/globalVmExtensionPolicy.js.map +1 -0
- package/compute/index.d.ts +3 -0
- package/compute/index.d.ts.map +1 -1
- package/compute/index.js +9 -4
- package/compute/index.js.map +1 -1
- package/compute/networkFirewallPolicyPacketMirroringRule.d.ts +1 -1
- package/compute/networkFirewallPolicyPacketMirroringRule.js +1 -1
- package/compute/networkFirewallPolicyRule.d.ts +1 -1
- package/compute/networkFirewallPolicyRule.js +1 -1
- package/compute/networkPeeringRoutesConfig.d.ts +66 -0
- package/compute/networkPeeringRoutesConfig.d.ts.map +1 -1
- package/compute/networkPeeringRoutesConfig.js +66 -0
- package/compute/networkPeeringRoutesConfig.js.map +1 -1
- package/compute/organizationSecurityPolicyAssociation.d.ts +2 -2
- package/compute/organizationSecurityPolicyAssociation.js +2 -2
- package/compute/organizationSecurityPolicyRule.d.ts +5 -5
- package/compute/organizationSecurityPolicyRule.js +5 -5
- package/compute/regionCommitment.d.ts +9 -3
- package/compute/regionCommitment.d.ts.map +1 -1
- package/compute/regionCommitment.js.map +1 -1
- package/compute/regionNetworkFirewallPolicyWithRules.d.ts +8 -8
- package/compute/regionNetworkFirewallPolicyWithRules.js +8 -8
- package/compute/rolloutPlan.d.ts +1 -1
- package/compute/rolloutPlan.js +1 -1
- package/compute/router.d.ts +1 -1
- package/compute/router.js +1 -1
- package/compute/routerNamedSet.d.ts +1 -4
- package/compute/routerNamedSet.d.ts.map +1 -1
- package/compute/routerNamedSet.js +1 -4
- package/compute/routerNamedSet.js.map +1 -1
- package/compute/targetInstance.d.ts +2 -2
- package/compute/targetInstance.js +2 -2
- package/compute/zoneVmExtensionPolicy.d.ts +1 -1
- package/compute/zoneVmExtensionPolicy.js +1 -1
- package/databasemigrationservice/connectionProfile.d.ts +3 -3
- package/databasemigrationservice/connectionProfile.js +3 -3
- package/dataform/folder.d.ts +3 -3
- package/dataform/folder.js +3 -3
- package/dataform/teamFolder.d.ts +1 -1
- package/dataform/teamFolder.js +1 -1
- package/datalineage/config.d.ts +2 -2
- package/datalineage/config.js +2 -2
- package/dataplex/dataAsset.d.ts +5 -5
- package/dataplex/dataAsset.js +5 -5
- package/dataplex/dataProduct.d.ts +3 -3
- package/dataplex/dataProduct.js +3 -3
- package/dataplex/dataProductDataAsset.d.ts +5 -5
- package/dataplex/dataProductDataAsset.js +5 -5
- package/dataplex/datascan.d.ts +25 -25
- package/dataplex/datascan.js +25 -25
- package/dataplex/entryLink.d.ts +12 -12
- package/dataplex/entryLink.js +12 -12
- package/dataplex/entryType.d.ts +1 -1
- package/dataplex/entryType.js +1 -1
- package/dataplex/glossaryCategory.d.ts +4 -4
- package/dataplex/glossaryCategory.js +4 -4
- package/dataplex/glossaryTerm.d.ts +4 -4
- package/dataplex/glossaryTerm.js +4 -4
- package/dataplex/task.d.ts +8 -8
- package/dataplex/task.js +8 -8
- package/dataproc/batch.d.ts +5 -5
- package/dataproc/batch.js +5 -5
- package/datastream/stream.d.ts +2 -2
- package/datastream/stream.js +2 -2
- package/developerconnect/insightsConfig.d.ts +5 -5
- package/developerconnect/insightsConfig.js +5 -5
- package/dns/getRecordSet.d.ts +4 -4
- package/dns/getRecordSet.js +4 -4
- package/firestore/field.d.ts +4 -4
- package/firestore/field.js +4 -4
- package/gkehub/membershipBinding.d.ts +3 -3
- package/gkehub/membershipBinding.js +3 -3
- package/gkehub/membershipRbacRoleBinding.d.ts +2 -2
- package/gkehub/membershipRbacRoleBinding.js +2 -2
- package/gkehub/namespace.d.ts +2 -2
- package/gkehub/namespace.js +2 -2
- package/gkehub/scopeRbacRoleBinding.d.ts +4 -4
- package/gkehub/scopeRbacRoleBinding.js +4 -4
- package/iap/tunnelDestGroup.d.ts +1 -1
- package/iap/tunnelDestGroup.js +1 -1
- package/integrationconnectors/managedZone.d.ts +4 -4
- package/integrationconnectors/managedZone.js +4 -4
- package/networkconnectivity/gatewayAdvertisedRoute.d.ts +1 -1
- package/networkconnectivity/gatewayAdvertisedRoute.js +1 -1
- package/networkconnectivity/spoke.d.ts +8 -8
- package/networkconnectivity/spoke.js +8 -8
- package/networkconnectivity/transport.d.ts +2 -2
- package/networkconnectivity/transport.js +2 -2
- package/observability/folderSettings.d.ts +2 -2
- package/observability/folderSettings.js +2 -2
- package/observability/projectSettings.d.ts +2 -2
- package/observability/projectSettings.js +2 -2
- package/observability/traceScope.d.ts +2 -2
- package/observability/traceScope.js +2 -2
- package/orgpolicy/policy.d.ts +1 -1
- package/orgpolicy/policy.js +1 -1
- package/package.json +2 -2
- package/pubsub/subscription.d.ts +4 -4
- package/pubsub/subscription.js +4 -4
- package/securityposture/posture.d.ts +17 -0
- package/securityposture/posture.d.ts.map +1 -1
- package/securityposture/posture.js +17 -0
- package/securityposture/posture.js.map +1 -1
- package/sql/databaseInstance.d.ts +24 -0
- package/sql/databaseInstance.d.ts.map +1 -1
- package/sql/databaseInstance.js +4 -0
- package/sql/databaseInstance.js.map +1 -1
- package/sql/getDatabaseInstance.d.ts +2 -0
- package/sql/getDatabaseInstance.d.ts.map +1 -1
- package/sql/getDatabaseInstance.js.map +1 -1
- package/types/input.d.ts +787 -15
- package/types/input.d.ts.map +1 -1
- package/types/output.d.ts +843 -26
- package/types/output.d.ts.map +1 -1
- package/vertex/aiEndpoint.d.ts +3 -3
- package/vertex/aiEndpoint.js +3 -3
- package/vertex/aiFeatureOnlineStoreFeatureview.d.ts +2 -2
- package/vertex/aiFeatureOnlineStoreFeatureview.js +2 -2
- package/vertex/aiSemanticGovernancePolicyEngine.d.ts +0 -3
- package/vertex/aiSemanticGovernancePolicyEngine.d.ts.map +1 -1
- package/vertex/aiSemanticGovernancePolicyEngine.js +0 -3
- package/vertex/aiSemanticGovernancePolicyEngine.js.map +1 -1
- package/vertex/getAiReasoningEngineQuery.d.ts +2 -2
- package/vertex/getAiReasoningEngineQuery.js +2 -2
- package/workbench/instance.d.ts +31 -2
- package/workbench/instance.d.ts.map +1 -1
- package/workbench/instance.js +21 -2
- package/workbench/instance.js.map +1 -1
|
@@ -0,0 +1,337 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import * as inputs from "../types/input";
|
|
3
|
+
import * as outputs from "../types/output";
|
|
4
|
+
/**
|
|
5
|
+
* A Global VM Extension Policy.
|
|
6
|
+
*
|
|
7
|
+
* > **Warning:** This resource is in beta, and should be used with the terraform-provider-google-beta provider.
|
|
8
|
+
* See Provider Versions for more details on beta resources.
|
|
9
|
+
*
|
|
10
|
+
* ## Example Usage
|
|
11
|
+
*
|
|
12
|
+
* ### Compute Global Vm Extension Policy Basic
|
|
13
|
+
*
|
|
14
|
+
* ```typescript
|
|
15
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
16
|
+
* import * as gcp from "@pulumi/gcp";
|
|
17
|
+
*
|
|
18
|
+
* const opsAgentPolicy = new gcp.compute.GlobalVmExtensionPolicy("ops_agent_policy", {
|
|
19
|
+
* name: "global-ops-agent-vme-policy-_88722",
|
|
20
|
+
* description: "A basic global VM extension policy",
|
|
21
|
+
* priority: 10,
|
|
22
|
+
* extensionPolicies: [{
|
|
23
|
+
* extensionName: "ops-agent",
|
|
24
|
+
* pinnedVersion: "2.66.0",
|
|
25
|
+
* }],
|
|
26
|
+
* instanceSelectors: [{
|
|
27
|
+
* labelSelector: {
|
|
28
|
+
* inclusionLabels: {
|
|
29
|
+
* env: "test",
|
|
30
|
+
* },
|
|
31
|
+
* },
|
|
32
|
+
* }],
|
|
33
|
+
* rolloutOperation: {
|
|
34
|
+
* rolloutInput: {
|
|
35
|
+
* predefinedRolloutPlan: "FAST_ROLLOUT",
|
|
36
|
+
* },
|
|
37
|
+
* },
|
|
38
|
+
* });
|
|
39
|
+
* ```
|
|
40
|
+
* ### Compute Global Vm Extension Policy Basic
|
|
41
|
+
*
|
|
42
|
+
* ```typescript
|
|
43
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
44
|
+
* import * as gcp from "@pulumi/gcp";
|
|
45
|
+
*
|
|
46
|
+
* const opsAgentPolicy = new gcp.compute.GlobalVmExtensionPolicy("ops_agent_policy", {
|
|
47
|
+
* name: "global-ops-agent-vme-policy-_39249",
|
|
48
|
+
* description: "A basic global VM extension policy",
|
|
49
|
+
* priority: 10,
|
|
50
|
+
* extensionPolicies: [{
|
|
51
|
+
* extensionName: "ops-agent",
|
|
52
|
+
* pinnedVersion: "2.66.0",
|
|
53
|
+
* }],
|
|
54
|
+
* instanceSelectors: [{
|
|
55
|
+
* labelSelector: {
|
|
56
|
+
* inclusionLabels: {
|
|
57
|
+
* env: "test",
|
|
58
|
+
* },
|
|
59
|
+
* },
|
|
60
|
+
* }],
|
|
61
|
+
* rolloutOperation: {
|
|
62
|
+
* rolloutInput: {
|
|
63
|
+
* predefinedRolloutPlan: "FAST_ROLLOUT",
|
|
64
|
+
* },
|
|
65
|
+
* },
|
|
66
|
+
* });
|
|
67
|
+
* ```
|
|
68
|
+
* ### Compute Global Vm Extension Policy Custom Rollout
|
|
69
|
+
*
|
|
70
|
+
* ```typescript
|
|
71
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
72
|
+
* import * as gcp from "@pulumi/gcp";
|
|
73
|
+
*
|
|
74
|
+
* const project = gcp.organizations.getProject({});
|
|
75
|
+
* const customRollout = new gcp.compute.RolloutPlan("custom_rollout", {
|
|
76
|
+
* name: "custom-rollout-plan-_16511",
|
|
77
|
+
* locationScope: "ZONAL",
|
|
78
|
+
* waves: [{
|
|
79
|
+
* displayName: "wave-1",
|
|
80
|
+
* selectors: [{
|
|
81
|
+
* locationSelector: {
|
|
82
|
+
* includedLocations: [
|
|
83
|
+
* "us-central1-a",
|
|
84
|
+
* "us-west1-a",
|
|
85
|
+
* ],
|
|
86
|
+
* },
|
|
87
|
+
* }],
|
|
88
|
+
* validation: {
|
|
89
|
+
* type: "time",
|
|
90
|
+
* timeBasedValidationMetadata: {
|
|
91
|
+
* waitDuration: "0s",
|
|
92
|
+
* },
|
|
93
|
+
* },
|
|
94
|
+
* orchestrationOptions: {
|
|
95
|
+
* maxConcurrentResourcesPerLocation: 10,
|
|
96
|
+
* maxConcurrentLocations: 10,
|
|
97
|
+
* },
|
|
98
|
+
* }],
|
|
99
|
+
* });
|
|
100
|
+
* const opsAgentPolicy = new gcp.compute.GlobalVmExtensionPolicy("ops_agent_policy", {
|
|
101
|
+
* name: "global-ops-agent-vme-policy-_74391",
|
|
102
|
+
* description: "A global VM extension policy with a custom rollout plan",
|
|
103
|
+
* priority: 10,
|
|
104
|
+
* extensionPolicies: [{
|
|
105
|
+
* extensionName: "ops-agent",
|
|
106
|
+
* pinnedVersion: "2.66.0",
|
|
107
|
+
* }],
|
|
108
|
+
* instanceSelectors: [{
|
|
109
|
+
* labelSelector: {
|
|
110
|
+
* inclusionLabels: {
|
|
111
|
+
* env: "test",
|
|
112
|
+
* },
|
|
113
|
+
* },
|
|
114
|
+
* }],
|
|
115
|
+
* rolloutOperation: {
|
|
116
|
+
* rolloutInput: {
|
|
117
|
+
* name: pulumi.all([project, customRollout.name]).apply(([project, name]) => `projects/${project.number}/locations/global/rolloutPlans/${name}`),
|
|
118
|
+
* },
|
|
119
|
+
* },
|
|
120
|
+
* });
|
|
121
|
+
* ```
|
|
122
|
+
*
|
|
123
|
+
* ## Import
|
|
124
|
+
*
|
|
125
|
+
* GlobalVmExtensionPolicy can be imported using any of these accepted formats:
|
|
126
|
+
*
|
|
127
|
+
* * `projects/{{project}}/global/vmExtensionPolicies/{{name}}`
|
|
128
|
+
* * `{{project}}/{{name}}`
|
|
129
|
+
* * `{{name}}`
|
|
130
|
+
*
|
|
131
|
+
* When using the `pulumi import` command, GlobalVmExtensionPolicy can be imported using one of the formats above. For example:
|
|
132
|
+
*
|
|
133
|
+
* ```sh
|
|
134
|
+
* $ pulumi import gcp:compute/globalVmExtensionPolicy:GlobalVmExtensionPolicy default projects/{{project}}/global/vmExtensionPolicies/{{name}}
|
|
135
|
+
* $ pulumi import gcp:compute/globalVmExtensionPolicy:GlobalVmExtensionPolicy default {{project}}/{{name}}
|
|
136
|
+
* $ pulumi import gcp:compute/globalVmExtensionPolicy:GlobalVmExtensionPolicy default {{name}}
|
|
137
|
+
* ```
|
|
138
|
+
*/
|
|
139
|
+
export declare class GlobalVmExtensionPolicy extends pulumi.CustomResource {
|
|
140
|
+
/**
|
|
141
|
+
* Get an existing GlobalVmExtensionPolicy resource's state with the given name, ID, and optional extra
|
|
142
|
+
* properties used to qualify the lookup.
|
|
143
|
+
*
|
|
144
|
+
* @param name The _unique_ name of the resulting resource.
|
|
145
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
146
|
+
* @param state Any extra arguments used during the lookup.
|
|
147
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
148
|
+
*/
|
|
149
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: GlobalVmExtensionPolicyState, opts?: pulumi.CustomResourceOptions): GlobalVmExtensionPolicy;
|
|
150
|
+
/**
|
|
151
|
+
* Returns true if the given object is an instance of GlobalVmExtensionPolicy. This is designed to work even
|
|
152
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
153
|
+
*/
|
|
154
|
+
static isInstance(obj: any): obj is GlobalVmExtensionPolicy;
|
|
155
|
+
/**
|
|
156
|
+
* Creation timestamp in RFC3339 text format.
|
|
157
|
+
*/
|
|
158
|
+
readonly creationTimestamp: pulumi.Output<string>;
|
|
159
|
+
/**
|
|
160
|
+
* Whether Terraform will be prevented from destroying the resource. Defaults to DELETE.
|
|
161
|
+
* When a 'terraform destroy' or 'pulumi up' would delete the resource,
|
|
162
|
+
* the command will fail if this field is set to "PREVENT" in Terraform state.
|
|
163
|
+
* When set to "ABANDON", the command will remove the resource from Terraform
|
|
164
|
+
* management without updating or deleting the resource in the API.
|
|
165
|
+
* When set to "DELETE", deleting the resource is allowed.
|
|
166
|
+
*/
|
|
167
|
+
readonly deletionPolicy: pulumi.Output<string>;
|
|
168
|
+
/**
|
|
169
|
+
* An optional description of this resource.
|
|
170
|
+
*/
|
|
171
|
+
readonly description: pulumi.Output<string | undefined>;
|
|
172
|
+
/**
|
|
173
|
+
* Map from extension (eg: "cloudops") to its policy configuration.
|
|
174
|
+
* Structure is documented below.
|
|
175
|
+
*/
|
|
176
|
+
readonly extensionPolicies: pulumi.Output<outputs.compute.GlobalVmExtensionPolicyExtensionPolicy[]>;
|
|
177
|
+
/**
|
|
178
|
+
* Selector to target VMs for a policy.
|
|
179
|
+
* Structure is documented below.
|
|
180
|
+
*/
|
|
181
|
+
readonly instanceSelectors: pulumi.Output<outputs.compute.GlobalVmExtensionPolicyInstanceSelector[] | undefined>;
|
|
182
|
+
/**
|
|
183
|
+
* Type of the resource.
|
|
184
|
+
*/
|
|
185
|
+
readonly kind: pulumi.Output<string>;
|
|
186
|
+
/**
|
|
187
|
+
* Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long and match the regular expression '^a-z?$' to comply with RFC1035.
|
|
188
|
+
*/
|
|
189
|
+
readonly name: pulumi.Output<string>;
|
|
190
|
+
/**
|
|
191
|
+
* Used to resolve conflicts when multiple policies are active. Defaults to 0.
|
|
192
|
+
*/
|
|
193
|
+
readonly priority: pulumi.Output<number>;
|
|
194
|
+
/**
|
|
195
|
+
* The ID of the project in which the resource belongs.
|
|
196
|
+
* If it is not provided, the provider project is used.
|
|
197
|
+
*/
|
|
198
|
+
readonly project: pulumi.Output<string>;
|
|
199
|
+
/**
|
|
200
|
+
* Represents the rollout operation.
|
|
201
|
+
* Structure is documented below.
|
|
202
|
+
*/
|
|
203
|
+
readonly rolloutOperation: pulumi.Output<outputs.compute.GlobalVmExtensionPolicyRolloutOperation>;
|
|
204
|
+
/**
|
|
205
|
+
* The scoped resource status.
|
|
206
|
+
*/
|
|
207
|
+
readonly scopedResourceStatus: pulumi.Output<string>;
|
|
208
|
+
/**
|
|
209
|
+
* Server-defined fully-qualified URL for this resource.
|
|
210
|
+
*/
|
|
211
|
+
readonly selfLink: pulumi.Output<string>;
|
|
212
|
+
/**
|
|
213
|
+
* Update timestamp in RFC3339 text format.
|
|
214
|
+
*/
|
|
215
|
+
readonly updateTimestamp: pulumi.Output<string>;
|
|
216
|
+
/**
|
|
217
|
+
* Create a GlobalVmExtensionPolicy resource with the given unique name, arguments, and options.
|
|
218
|
+
*
|
|
219
|
+
* @param name The _unique_ name of the resource.
|
|
220
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
221
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
222
|
+
*/
|
|
223
|
+
constructor(name: string, args: GlobalVmExtensionPolicyArgs, opts?: pulumi.CustomResourceOptions);
|
|
224
|
+
}
|
|
225
|
+
/**
|
|
226
|
+
* Input properties used for looking up and filtering GlobalVmExtensionPolicy resources.
|
|
227
|
+
*/
|
|
228
|
+
export interface GlobalVmExtensionPolicyState {
|
|
229
|
+
/**
|
|
230
|
+
* Creation timestamp in RFC3339 text format.
|
|
231
|
+
*/
|
|
232
|
+
creationTimestamp?: pulumi.Input<string | undefined>;
|
|
233
|
+
/**
|
|
234
|
+
* Whether Terraform will be prevented from destroying the resource. Defaults to DELETE.
|
|
235
|
+
* When a 'terraform destroy' or 'pulumi up' would delete the resource,
|
|
236
|
+
* the command will fail if this field is set to "PREVENT" in Terraform state.
|
|
237
|
+
* When set to "ABANDON", the command will remove the resource from Terraform
|
|
238
|
+
* management without updating or deleting the resource in the API.
|
|
239
|
+
* When set to "DELETE", deleting the resource is allowed.
|
|
240
|
+
*/
|
|
241
|
+
deletionPolicy?: pulumi.Input<string | undefined>;
|
|
242
|
+
/**
|
|
243
|
+
* An optional description of this resource.
|
|
244
|
+
*/
|
|
245
|
+
description?: pulumi.Input<string | undefined>;
|
|
246
|
+
/**
|
|
247
|
+
* Map from extension (eg: "cloudops") to its policy configuration.
|
|
248
|
+
* Structure is documented below.
|
|
249
|
+
*/
|
|
250
|
+
extensionPolicies?: pulumi.Input<pulumi.Input<inputs.compute.GlobalVmExtensionPolicyExtensionPolicy>[] | undefined>;
|
|
251
|
+
/**
|
|
252
|
+
* Selector to target VMs for a policy.
|
|
253
|
+
* Structure is documented below.
|
|
254
|
+
*/
|
|
255
|
+
instanceSelectors?: pulumi.Input<pulumi.Input<inputs.compute.GlobalVmExtensionPolicyInstanceSelector>[] | undefined>;
|
|
256
|
+
/**
|
|
257
|
+
* Type of the resource.
|
|
258
|
+
*/
|
|
259
|
+
kind?: pulumi.Input<string | undefined>;
|
|
260
|
+
/**
|
|
261
|
+
* Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long and match the regular expression '^a-z?$' to comply with RFC1035.
|
|
262
|
+
*/
|
|
263
|
+
name?: pulumi.Input<string | undefined>;
|
|
264
|
+
/**
|
|
265
|
+
* Used to resolve conflicts when multiple policies are active. Defaults to 0.
|
|
266
|
+
*/
|
|
267
|
+
priority?: pulumi.Input<number | undefined>;
|
|
268
|
+
/**
|
|
269
|
+
* The ID of the project in which the resource belongs.
|
|
270
|
+
* If it is not provided, the provider project is used.
|
|
271
|
+
*/
|
|
272
|
+
project?: pulumi.Input<string | undefined>;
|
|
273
|
+
/**
|
|
274
|
+
* Represents the rollout operation.
|
|
275
|
+
* Structure is documented below.
|
|
276
|
+
*/
|
|
277
|
+
rolloutOperation?: pulumi.Input<inputs.compute.GlobalVmExtensionPolicyRolloutOperation | undefined>;
|
|
278
|
+
/**
|
|
279
|
+
* The scoped resource status.
|
|
280
|
+
*/
|
|
281
|
+
scopedResourceStatus?: pulumi.Input<string | undefined>;
|
|
282
|
+
/**
|
|
283
|
+
* Server-defined fully-qualified URL for this resource.
|
|
284
|
+
*/
|
|
285
|
+
selfLink?: pulumi.Input<string | undefined>;
|
|
286
|
+
/**
|
|
287
|
+
* Update timestamp in RFC3339 text format.
|
|
288
|
+
*/
|
|
289
|
+
updateTimestamp?: pulumi.Input<string | undefined>;
|
|
290
|
+
}
|
|
291
|
+
/**
|
|
292
|
+
* The set of arguments for constructing a GlobalVmExtensionPolicy resource.
|
|
293
|
+
*/
|
|
294
|
+
export interface GlobalVmExtensionPolicyArgs {
|
|
295
|
+
/**
|
|
296
|
+
* Whether Terraform will be prevented from destroying the resource. Defaults to DELETE.
|
|
297
|
+
* When a 'terraform destroy' or 'pulumi up' would delete the resource,
|
|
298
|
+
* the command will fail if this field is set to "PREVENT" in Terraform state.
|
|
299
|
+
* When set to "ABANDON", the command will remove the resource from Terraform
|
|
300
|
+
* management without updating or deleting the resource in the API.
|
|
301
|
+
* When set to "DELETE", deleting the resource is allowed.
|
|
302
|
+
*/
|
|
303
|
+
deletionPolicy?: pulumi.Input<string | undefined>;
|
|
304
|
+
/**
|
|
305
|
+
* An optional description of this resource.
|
|
306
|
+
*/
|
|
307
|
+
description?: pulumi.Input<string | undefined>;
|
|
308
|
+
/**
|
|
309
|
+
* Map from extension (eg: "cloudops") to its policy configuration.
|
|
310
|
+
* Structure is documented below.
|
|
311
|
+
*/
|
|
312
|
+
extensionPolicies: pulumi.Input<pulumi.Input<inputs.compute.GlobalVmExtensionPolicyExtensionPolicy>[]>;
|
|
313
|
+
/**
|
|
314
|
+
* Selector to target VMs for a policy.
|
|
315
|
+
* Structure is documented below.
|
|
316
|
+
*/
|
|
317
|
+
instanceSelectors?: pulumi.Input<pulumi.Input<inputs.compute.GlobalVmExtensionPolicyInstanceSelector>[] | undefined>;
|
|
318
|
+
/**
|
|
319
|
+
* Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long and match the regular expression '^a-z?$' to comply with RFC1035.
|
|
320
|
+
*/
|
|
321
|
+
name?: pulumi.Input<string | undefined>;
|
|
322
|
+
/**
|
|
323
|
+
* Used to resolve conflicts when multiple policies are active. Defaults to 0.
|
|
324
|
+
*/
|
|
325
|
+
priority?: pulumi.Input<number | undefined>;
|
|
326
|
+
/**
|
|
327
|
+
* The ID of the project in which the resource belongs.
|
|
328
|
+
* If it is not provided, the provider project is used.
|
|
329
|
+
*/
|
|
330
|
+
project?: pulumi.Input<string | undefined>;
|
|
331
|
+
/**
|
|
332
|
+
* Represents the rollout operation.
|
|
333
|
+
* Structure is documented below.
|
|
334
|
+
*/
|
|
335
|
+
rolloutOperation: pulumi.Input<inputs.compute.GlobalVmExtensionPolicyRolloutOperation>;
|
|
336
|
+
}
|
|
337
|
+
//# sourceMappingURL=globalVmExtensionPolicy.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"globalVmExtensionPolicy.d.ts","sourceRoot":"","sources":["../../compute/globalVmExtensionPolicy.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AACzC,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AACzC,OAAO,KAAK,OAAO,MAAM,iBAAiB,CAAC;AAG3C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsIG;AACH,qBAAa,uBAAwB,SAAQ,MAAM,CAAC,cAAc;IAC9D;;;;;;;;OAQG;WACW,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,CAAC,EAAE,KAAK,CAAC,EAAE,4BAA4B,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,qBAAqB,GAAG,uBAAuB;IAOhK;;;OAGG;WACW,UAAU,CAAC,GAAG,EAAE,GAAG,GAAG,GAAG,IAAI,uBAAuB;IAOlE;;OAEG;IACH,SAAgC,iBAAiB,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IACzE;;;;;;;OAOG;IACH,SAAwB,cAAc,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IAC9D;;OAEG;IACH,SAAwB,WAAW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AAM,GAAG,SAAS,CAAC,CAAC;CACtD;AAED;;GAEG;AACH,MAAM,WAAW,2BAA2B;IACxC;;;;;;;OAOG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IAClD;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IAC/C;;;OAGG;IACH,iBAAiB,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC,sCAAsC,CAAC,EAAE,CAAC,CAAC;IACvG;;;OAGG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC,uCAAuC,CAAC,EAAE,GAAG,SAAS,CAAC,CAAC;IACrH;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IACxC;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IAC5C;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IAC3C;;;OAGG;IACH,gBAAgB,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC,uCAAuC,CAAC,CAAC;CAC1F"}
|
|
@@ -0,0 +1,237 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
|
|
3
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
5
|
+
if (k2 === undefined) k2 = k;
|
|
6
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
7
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
8
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
9
|
+
}
|
|
10
|
+
Object.defineProperty(o, k2, desc);
|
|
11
|
+
}) : (function(o, m, k, k2) {
|
|
12
|
+
if (k2 === undefined) k2 = k;
|
|
13
|
+
o[k2] = m[k];
|
|
14
|
+
}));
|
|
15
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
16
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
17
|
+
}) : function(o, v) {
|
|
18
|
+
o["default"] = v;
|
|
19
|
+
});
|
|
20
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
21
|
+
if (mod && mod.__esModule) return mod;
|
|
22
|
+
var result = {};
|
|
23
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
24
|
+
__setModuleDefault(result, mod);
|
|
25
|
+
return result;
|
|
26
|
+
};
|
|
27
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28
|
+
exports.GlobalVmExtensionPolicy = void 0;
|
|
29
|
+
const pulumi = __importStar(require("@pulumi/pulumi"));
|
|
30
|
+
const utilities = __importStar(require("../utilities"));
|
|
31
|
+
/**
|
|
32
|
+
* A Global VM Extension Policy.
|
|
33
|
+
*
|
|
34
|
+
* > **Warning:** This resource is in beta, and should be used with the terraform-provider-google-beta provider.
|
|
35
|
+
* See Provider Versions for more details on beta resources.
|
|
36
|
+
*
|
|
37
|
+
* ## Example Usage
|
|
38
|
+
*
|
|
39
|
+
* ### Compute Global Vm Extension Policy Basic
|
|
40
|
+
*
|
|
41
|
+
* ```typescript
|
|
42
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
43
|
+
* import * as gcp from "@pulumi/gcp";
|
|
44
|
+
*
|
|
45
|
+
* const opsAgentPolicy = new gcp.compute.GlobalVmExtensionPolicy("ops_agent_policy", {
|
|
46
|
+
* name: "global-ops-agent-vme-policy-_88722",
|
|
47
|
+
* description: "A basic global VM extension policy",
|
|
48
|
+
* priority: 10,
|
|
49
|
+
* extensionPolicies: [{
|
|
50
|
+
* extensionName: "ops-agent",
|
|
51
|
+
* pinnedVersion: "2.66.0",
|
|
52
|
+
* }],
|
|
53
|
+
* instanceSelectors: [{
|
|
54
|
+
* labelSelector: {
|
|
55
|
+
* inclusionLabels: {
|
|
56
|
+
* env: "test",
|
|
57
|
+
* },
|
|
58
|
+
* },
|
|
59
|
+
* }],
|
|
60
|
+
* rolloutOperation: {
|
|
61
|
+
* rolloutInput: {
|
|
62
|
+
* predefinedRolloutPlan: "FAST_ROLLOUT",
|
|
63
|
+
* },
|
|
64
|
+
* },
|
|
65
|
+
* });
|
|
66
|
+
* ```
|
|
67
|
+
* ### Compute Global Vm Extension Policy Basic
|
|
68
|
+
*
|
|
69
|
+
* ```typescript
|
|
70
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
71
|
+
* import * as gcp from "@pulumi/gcp";
|
|
72
|
+
*
|
|
73
|
+
* const opsAgentPolicy = new gcp.compute.GlobalVmExtensionPolicy("ops_agent_policy", {
|
|
74
|
+
* name: "global-ops-agent-vme-policy-_39249",
|
|
75
|
+
* description: "A basic global VM extension policy",
|
|
76
|
+
* priority: 10,
|
|
77
|
+
* extensionPolicies: [{
|
|
78
|
+
* extensionName: "ops-agent",
|
|
79
|
+
* pinnedVersion: "2.66.0",
|
|
80
|
+
* }],
|
|
81
|
+
* instanceSelectors: [{
|
|
82
|
+
* labelSelector: {
|
|
83
|
+
* inclusionLabels: {
|
|
84
|
+
* env: "test",
|
|
85
|
+
* },
|
|
86
|
+
* },
|
|
87
|
+
* }],
|
|
88
|
+
* rolloutOperation: {
|
|
89
|
+
* rolloutInput: {
|
|
90
|
+
* predefinedRolloutPlan: "FAST_ROLLOUT",
|
|
91
|
+
* },
|
|
92
|
+
* },
|
|
93
|
+
* });
|
|
94
|
+
* ```
|
|
95
|
+
* ### Compute Global Vm Extension Policy Custom Rollout
|
|
96
|
+
*
|
|
97
|
+
* ```typescript
|
|
98
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
99
|
+
* import * as gcp from "@pulumi/gcp";
|
|
100
|
+
*
|
|
101
|
+
* const project = gcp.organizations.getProject({});
|
|
102
|
+
* const customRollout = new gcp.compute.RolloutPlan("custom_rollout", {
|
|
103
|
+
* name: "custom-rollout-plan-_16511",
|
|
104
|
+
* locationScope: "ZONAL",
|
|
105
|
+
* waves: [{
|
|
106
|
+
* displayName: "wave-1",
|
|
107
|
+
* selectors: [{
|
|
108
|
+
* locationSelector: {
|
|
109
|
+
* includedLocations: [
|
|
110
|
+
* "us-central1-a",
|
|
111
|
+
* "us-west1-a",
|
|
112
|
+
* ],
|
|
113
|
+
* },
|
|
114
|
+
* }],
|
|
115
|
+
* validation: {
|
|
116
|
+
* type: "time",
|
|
117
|
+
* timeBasedValidationMetadata: {
|
|
118
|
+
* waitDuration: "0s",
|
|
119
|
+
* },
|
|
120
|
+
* },
|
|
121
|
+
* orchestrationOptions: {
|
|
122
|
+
* maxConcurrentResourcesPerLocation: 10,
|
|
123
|
+
* maxConcurrentLocations: 10,
|
|
124
|
+
* },
|
|
125
|
+
* }],
|
|
126
|
+
* });
|
|
127
|
+
* const opsAgentPolicy = new gcp.compute.GlobalVmExtensionPolicy("ops_agent_policy", {
|
|
128
|
+
* name: "global-ops-agent-vme-policy-_74391",
|
|
129
|
+
* description: "A global VM extension policy with a custom rollout plan",
|
|
130
|
+
* priority: 10,
|
|
131
|
+
* extensionPolicies: [{
|
|
132
|
+
* extensionName: "ops-agent",
|
|
133
|
+
* pinnedVersion: "2.66.0",
|
|
134
|
+
* }],
|
|
135
|
+
* instanceSelectors: [{
|
|
136
|
+
* labelSelector: {
|
|
137
|
+
* inclusionLabels: {
|
|
138
|
+
* env: "test",
|
|
139
|
+
* },
|
|
140
|
+
* },
|
|
141
|
+
* }],
|
|
142
|
+
* rolloutOperation: {
|
|
143
|
+
* rolloutInput: {
|
|
144
|
+
* name: pulumi.all([project, customRollout.name]).apply(([project, name]) => `projects/${project.number}/locations/global/rolloutPlans/${name}`),
|
|
145
|
+
* },
|
|
146
|
+
* },
|
|
147
|
+
* });
|
|
148
|
+
* ```
|
|
149
|
+
*
|
|
150
|
+
* ## Import
|
|
151
|
+
*
|
|
152
|
+
* GlobalVmExtensionPolicy can be imported using any of these accepted formats:
|
|
153
|
+
*
|
|
154
|
+
* * `projects/{{project}}/global/vmExtensionPolicies/{{name}}`
|
|
155
|
+
* * `{{project}}/{{name}}`
|
|
156
|
+
* * `{{name}}`
|
|
157
|
+
*
|
|
158
|
+
* When using the `pulumi import` command, GlobalVmExtensionPolicy can be imported using one of the formats above. For example:
|
|
159
|
+
*
|
|
160
|
+
* ```sh
|
|
161
|
+
* $ pulumi import gcp:compute/globalVmExtensionPolicy:GlobalVmExtensionPolicy default projects/{{project}}/global/vmExtensionPolicies/{{name}}
|
|
162
|
+
* $ pulumi import gcp:compute/globalVmExtensionPolicy:GlobalVmExtensionPolicy default {{project}}/{{name}}
|
|
163
|
+
* $ pulumi import gcp:compute/globalVmExtensionPolicy:GlobalVmExtensionPolicy default {{name}}
|
|
164
|
+
* ```
|
|
165
|
+
*/
|
|
166
|
+
class GlobalVmExtensionPolicy extends pulumi.CustomResource {
|
|
167
|
+
/**
|
|
168
|
+
* Get an existing GlobalVmExtensionPolicy resource's state with the given name, ID, and optional extra
|
|
169
|
+
* properties used to qualify the lookup.
|
|
170
|
+
*
|
|
171
|
+
* @param name The _unique_ name of the resulting resource.
|
|
172
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
173
|
+
* @param state Any extra arguments used during the lookup.
|
|
174
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
175
|
+
*/
|
|
176
|
+
static get(name, id, state, opts) {
|
|
177
|
+
return new GlobalVmExtensionPolicy(name, state, { ...opts, id: id });
|
|
178
|
+
}
|
|
179
|
+
/** @internal */
|
|
180
|
+
static __pulumiType = 'gcp:compute/globalVmExtensionPolicy:GlobalVmExtensionPolicy';
|
|
181
|
+
/**
|
|
182
|
+
* Returns true if the given object is an instance of GlobalVmExtensionPolicy. This is designed to work even
|
|
183
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
184
|
+
*/
|
|
185
|
+
static isInstance(obj) {
|
|
186
|
+
if (obj === undefined || obj === null) {
|
|
187
|
+
return false;
|
|
188
|
+
}
|
|
189
|
+
return obj['__pulumiType'] === GlobalVmExtensionPolicy.__pulumiType;
|
|
190
|
+
}
|
|
191
|
+
constructor(name, argsOrState, opts) {
|
|
192
|
+
let resourceInputs = {};
|
|
193
|
+
opts = opts || {};
|
|
194
|
+
if (opts.id) {
|
|
195
|
+
const state = argsOrState;
|
|
196
|
+
resourceInputs["creationTimestamp"] = state?.creationTimestamp;
|
|
197
|
+
resourceInputs["deletionPolicy"] = state?.deletionPolicy;
|
|
198
|
+
resourceInputs["description"] = state?.description;
|
|
199
|
+
resourceInputs["extensionPolicies"] = state?.extensionPolicies;
|
|
200
|
+
resourceInputs["instanceSelectors"] = state?.instanceSelectors;
|
|
201
|
+
resourceInputs["kind"] = state?.kind;
|
|
202
|
+
resourceInputs["name"] = state?.name;
|
|
203
|
+
resourceInputs["priority"] = state?.priority;
|
|
204
|
+
resourceInputs["project"] = state?.project;
|
|
205
|
+
resourceInputs["rolloutOperation"] = state?.rolloutOperation;
|
|
206
|
+
resourceInputs["scopedResourceStatus"] = state?.scopedResourceStatus;
|
|
207
|
+
resourceInputs["selfLink"] = state?.selfLink;
|
|
208
|
+
resourceInputs["updateTimestamp"] = state?.updateTimestamp;
|
|
209
|
+
}
|
|
210
|
+
else {
|
|
211
|
+
const args = argsOrState;
|
|
212
|
+
if (args?.extensionPolicies === undefined && !opts.urn) {
|
|
213
|
+
throw new Error("Missing required property 'extensionPolicies'");
|
|
214
|
+
}
|
|
215
|
+
if (args?.rolloutOperation === undefined && !opts.urn) {
|
|
216
|
+
throw new Error("Missing required property 'rolloutOperation'");
|
|
217
|
+
}
|
|
218
|
+
resourceInputs["deletionPolicy"] = args?.deletionPolicy;
|
|
219
|
+
resourceInputs["description"] = args?.description;
|
|
220
|
+
resourceInputs["extensionPolicies"] = args?.extensionPolicies;
|
|
221
|
+
resourceInputs["instanceSelectors"] = args?.instanceSelectors;
|
|
222
|
+
resourceInputs["name"] = args?.name;
|
|
223
|
+
resourceInputs["priority"] = args?.priority;
|
|
224
|
+
resourceInputs["project"] = args?.project;
|
|
225
|
+
resourceInputs["rolloutOperation"] = args?.rolloutOperation;
|
|
226
|
+
resourceInputs["creationTimestamp"] = undefined /*out*/;
|
|
227
|
+
resourceInputs["kind"] = undefined /*out*/;
|
|
228
|
+
resourceInputs["scopedResourceStatus"] = undefined /*out*/;
|
|
229
|
+
resourceInputs["selfLink"] = undefined /*out*/;
|
|
230
|
+
resourceInputs["updateTimestamp"] = undefined /*out*/;
|
|
231
|
+
}
|
|
232
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
233
|
+
super(GlobalVmExtensionPolicy.__pulumiType, name, resourceInputs, opts);
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
exports.GlobalVmExtensionPolicy = GlobalVmExtensionPolicy;
|
|
237
|
+
//# sourceMappingURL=globalVmExtensionPolicy.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"globalVmExtensionPolicy.js","sourceRoot":"","sources":["../../compute/globalVmExtensionPolicy.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AAGzC,wDAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsIG;AACH,MAAa,uB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MAAM,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAC3C,cAAc,CAAC,sBAAsB,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAC3D,cAAc,CAAC,UAAU,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAC/C,cAAc,CAAC,iBAAiB,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SACzD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,uBAAuB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC5E,CAAC;;AA5IL,0DA6IC"}
|
package/compute/index.d.ts
CHANGED
|
@@ -361,6 +361,9 @@ export declare const GlobalNetworkEndpoint: typeof import("./globalNetworkEndpoi
|
|
|
361
361
|
export { GlobalNetworkEndpointGroupArgs, GlobalNetworkEndpointGroupState } from "./globalNetworkEndpointGroup";
|
|
362
362
|
export type GlobalNetworkEndpointGroup = import("./globalNetworkEndpointGroup").GlobalNetworkEndpointGroup;
|
|
363
363
|
export declare const GlobalNetworkEndpointGroup: typeof import("./globalNetworkEndpointGroup").GlobalNetworkEndpointGroup;
|
|
364
|
+
export { GlobalVmExtensionPolicyArgs, GlobalVmExtensionPolicyState } from "./globalVmExtensionPolicy";
|
|
365
|
+
export type GlobalVmExtensionPolicy = import("./globalVmExtensionPolicy").GlobalVmExtensionPolicy;
|
|
366
|
+
export declare const GlobalVmExtensionPolicy: typeof import("./globalVmExtensionPolicy").GlobalVmExtensionPolicy;
|
|
364
367
|
export { HaVpnGatewayArgs, HaVpnGatewayState } from "./haVpnGateway";
|
|
365
368
|
export type HaVpnGateway = import("./haVpnGateway").HaVpnGateway;
|
|
366
369
|
export declare const HaVpnGateway: typeof import("./haVpnGateway").HaVpnGateway;
|