Skip to content

Commit 8071314

Browse files
yoshi-automationsofisl
authored andcommitted
feat(compute)!: update the API
BREAKING CHANGE: This release has breaking changes. #### compute:alpha The following keys were deleted: - schemas.FirewallPolicyRuleMatcher.properties.destNetworkScope.description - schemas.FirewallPolicyRuleMatcher.properties.destNetworkScope.enum - schemas.FirewallPolicyRuleMatcher.properties.destNetworkScope.enumDescriptions - schemas.FirewallPolicyRuleMatcher.properties.destNetworkScope.type - schemas.FirewallPolicyRuleMatcher.properties.srcNetworkScope.description - schemas.FirewallPolicyRuleMatcher.properties.srcNetworkScope.enum - schemas.FirewallPolicyRuleMatcher.properties.srcNetworkScope.enumDescriptions - schemas.FirewallPolicyRuleMatcher.properties.srcNetworkScope.type - schemas.FirewallPolicyRuleMatcher.properties.srcNetworks.description - schemas.FirewallPolicyRuleMatcher.properties.srcNetworks.items.type - schemas.FirewallPolicyRuleMatcher.properties.srcNetworks.type - schemas.InstanceGroupManager.properties.satisfiesPzi.description - schemas.InstanceGroupManager.properties.satisfiesPzi.type - schemas.InstanceGroupManager.properties.satisfiesPzs.description - schemas.InstanceGroupManager.properties.satisfiesPzs.type - schemas.Network.properties.networkProfile.description - schemas.Network.properties.networkProfile.type The following keys were changed: - resources.networks.methods.patch.description - resources.regions.methods.list.description - schemas.AttachedDisk.properties.diskEncryptionKey.description - schemas.AttachedDisk.properties.source.description - schemas.AttachedDiskInitializeParams.properties.sourceImage.description - schemas.AttachedDiskInitializeParams.properties.sourceInstantSnapshot.description - schemas.AttachedDiskInitializeParams.properties.sourceSnapshot.description - schemas.InstanceProperties.properties.machineType.description - schemas.ResourceStatusShutdownDetails.properties.stopState.enum - schemas.ResourceStatusShutdownDetails.properties.stopState.enumDescriptions - schemas.Zone.description #### compute:beta The following keys were added: - schemas.Disk.properties.accessMode.description - schemas.Disk.properties.accessMode.enum - schemas.Disk.properties.accessMode.enumDescriptions - schemas.Disk.properties.accessMode.type - schemas.InstanceGroupManager.properties.satisfiesPzi.description - schemas.InstanceGroupManager.properties.satisfiesPzi.type - schemas.InstanceGroupManager.properties.satisfiesPzs.description - schemas.InstanceGroupManager.properties.satisfiesPzs.type - schemas.InstanceGroupManagerInstanceFlexibilityPolicy.properties.provisioningModelMix.$ref - schemas.InstanceGroupManagerInstanceFlexibilityPolicy.properties.provisioningModelMix.description - schemas.InstanceGroupManagerInstanceFlexibilityPolicyProvisioningModelMix.id - schemas.InstanceGroupManagerInstanceFlexibilityPolicyProvisioningModelMix.properties.standardCapacityBase.description - schemas.InstanceGroupManagerInstanceFlexibilityPolicyProvisioningModelMix.properties.standardCapacityBase.format - schemas.InstanceGroupManagerInstanceFlexibilityPolicyProvisioningModelMix.properties.standardCapacityBase.type - schemas.InstanceGroupManagerInstanceFlexibilityPolicyProvisioningModelMix.properties.standardCapacityPercentAboveBase.description - schemas.InstanceGroupManagerInstanceFlexibilityPolicyProvisioningModelMix.properties.standardCapacityPercentAboveBase.format - schemas.InstanceGroupManagerInstanceFlexibilityPolicyProvisioningModelMix.properties.standardCapacityPercentAboveBase.type - schemas.InstanceGroupManagerInstanceFlexibilityPolicyProvisioningModelMix.type - schemas.ManagedInstancePropertiesFromFlexibilityPolicy.properties.provisioningModel.description - schemas.ManagedInstancePropertiesFromFlexibilityPolicy.properties.provisioningModel.enum - schemas.ManagedInstancePropertiesFromFlexibilityPolicy.properties.provisioningModel.enumDescriptions - schemas.ManagedInstancePropertiesFromFlexibilityPolicy.properties.provisioningModel.type The following keys were changed: - resources.networks.methods.patch.description - resources.regions.methods.list.description - schemas.AttachedDisk.properties.diskEncryptionKey.description - schemas.AttachedDisk.properties.source.description - schemas.AttachedDiskInitializeParams.properties.sourceImage.description - schemas.AttachedDiskInitializeParams.properties.sourceInstantSnapshot.description - schemas.AttachedDiskInitializeParams.properties.sourceSnapshot.description - schemas.InstanceProperties.properties.machineType.description - schemas.NetworkInterface.properties.nicType.enum - schemas.NetworkInterface.properties.nicType.enumDescriptions - schemas.Zone.description
1 parent a153fd8 commit 8071314

File tree

4 files changed

+124
-115
lines changed

4 files changed

+124
-115
lines changed

discovery/compute-alpha.json

Lines changed: 10 additions & 63 deletions
Original file line numberDiff line numberDiff line change
@@ -19351,7 +19351,7 @@
1935119351
]
1935219352
},
1935319353
"patch": {
19354-
"description": "Patches the specified network with the data included in the request. Only routingConfig can be modified.",
19354+
"description": "Patches the specified network with the data included in the request. Only the following fields can be modified: routingConfig.routingMode.",
1935519355
"flatPath": "projects/{project}/global/networks/{network}",
1935619356
"httpMethod": "PATCH",
1935719357
"id": "compute.networks.patch",
@@ -33307,7 +33307,7 @@
3330733307
]
3330833308
},
3330933309
"list": {
33310-
"description": "Retrieves the list of region resources available to the specified project. To decrease latency for this method, you can optionally omit any unneeded information from the response by using a field mask. This practice is especially recommended for unused quota information (the `items.quotas` field). To exclude one or more fields, set your request's `fields` query parameter to only include the fields you need. For example, to only include the `id` and `selfLink` fields, add the query parameter `?fields=id,selfLink` to your request. This method fails if the quota information is unavailable for the region and if the organization policy constraint compute.requireBasicQuotaInResponse is enforced. This constraint, when enforced, disables the fail-open behaviour when quota information (the `items.quotas` field) is unavailable for the region. It is recommended to use the default setting for the constraint unless your application requires the fail-closed behaviour for this method.",
33310+
"description": "Retrieves the list of region resources available to the specified project. To decrease latency for this method, you can optionally omit any unneeded information from the response by using a field mask. This practice is especially recommended for unused quota information (the `items.quotas` field). To exclude one or more fields, set your request's `fields` query parameter to only include the fields you need. For example, to only include the `id` and `selfLink` fields, add the query parameter `?fields=id,selfLink` to your request.",
3331133311
"flatPath": "projects/{project}/regions",
3331233312
"httpMethod": "GET",
3331333313
"id": "compute.regions.list",
@@ -44423,7 +44423,7 @@
4442344423
}
4442444424
}
4442544425
},
44426-
"revision": "20240526",
44426+
"revision": "20240507",
4442744427
"rootUrl": "https://compute.googleapis.com/",
4442844428
"schemas": {
4442944429
"AWSV4Signature": {
@@ -45966,7 +45966,7 @@
4596645966
},
4596745967
"diskEncryptionKey": {
4596845968
"$ref": "CustomerEncryptionKey",
45969-
"description": "Encrypts or decrypts a disk using a customer-supplied encryption key. If you are creating a new disk, this field encrypts the new disk using an encryption key that you provide. If you are attaching an existing disk that is already encrypted, this field decrypts the disk using the customer-supplied encryption key. If you encrypt a disk using a customer-supplied key, you must provide the same key again when you attempt to use this resource at a later time. For example, you must provide the key when you create a snapshot or an image from the disk or when you attach the disk to a virtual machine instance. If you do not provide an encryption key, then the disk will be encrypted using an automatically generated key and you do not need to provide a key to use the disk later. Note: Instance templates do not store customer-supplied encryption keys, so you cannot use your own keys to encrypt disks in a managed instance group. You cannot create VMs that have disks with customer-supplied keys using the bulk insert method."
45969+
"description": "Encrypts or decrypts a disk using a customer-supplied encryption key. If you are creating a new disk, this field encrypts the new disk using an encryption key that you provide. If you are attaching an existing disk that is already encrypted, this field decrypts the disk using the customer-supplied encryption key. If you encrypt a disk using a customer-supplied key, you must provide the same key again when you attempt to use this resource at a later time. For example, you must provide the key when you create a snapshot or an image from the disk or when you attach the disk to a virtual machine instance. If you do not provide an encryption key, then the disk will be encrypted using an automatically generated key and you do not need to provide a key to use the disk later. Instance templates do not store customer-supplied encryption keys, so you cannot use your own keys to encrypt disks in a managed instance group."
4597045970
},
4597145971
"diskSizeGb": {
4597245972
"description": "The size of the disk in GB.",
@@ -46052,7 +46052,7 @@
4605246052
"description": "[Output Only] shielded vm initial state stored on disk"
4605346053
},
4605446054
"source": {
46055-
"description": "Specifies a valid partial or full URL to an existing Persistent Disk resource. When creating a new instance boot disk, one of initializeParams.sourceImage or initializeParams.sourceSnapshot or disks.source is required. If desired, you can also attach existing non-root persistent disks using this property. This field is only applicable for persistent disks. Note that for InstanceTemplate, specify the disk name for zonal disk, and the URL for regional disk.",
46055+
"description": "Specifies a valid partial or full URL to an existing Persistent Disk resource. When creating a new instance, one of initializeParams.sourceImage or initializeParams.sourceSnapshot or disks.source is required except for local SSD. If desired, you can also attach existing non-root persistent disks using this property. This field is only applicable for persistent disks. Note that for InstanceTemplate, specify the disk name for zonal disk, and the URL for regional disk.",
4605646056
"type": "string"
4605746057
},
4605846058
"type": {
@@ -46210,19 +46210,19 @@
4621046210
"type": "array"
4621146211
},
4621246212
"sourceImage": {
46213-
"description": "The source image to create this disk. When creating a new instance boot disk, one of initializeParams.sourceImage or initializeParams.sourceSnapshot or disks.source is required. To create a disk with one of the public operating system images, specify the image by its family name. For example, specify family/debian-9 to use the latest Debian 9 image: projects/debian-cloud/global/images/family/debian-9 Alternatively, use a specific version of a public operating system image: projects/debian-cloud/global/images/debian-9-stretch-vYYYYMMDD To create a disk with a custom image that you created, specify the image name in the following format: global/images/my-custom-image You can also specify a custom image by its image family, which returns the latest version of the image in that family. Replace the image name with family/family-name: global/images/family/my-image-family If the source image is deleted later, this field will not be set.",
46213+
"description": "The source image to create this disk. When creating a new instance, one of initializeParams.sourceImage or initializeParams.sourceSnapshot or disks.source is required except for local SSD. To create a disk with one of the public operating system images, specify the image by its family name. For example, specify family/debian-9 to use the latest Debian 9 image: projects/debian-cloud/global/images/family/debian-9 Alternatively, use a specific version of a public operating system image: projects/debian-cloud/global/images/debian-9-stretch-vYYYYMMDD To create a disk with a custom image that you created, specify the image name in the following format: global/images/my-custom-image You can also specify a custom image by its image family, which returns the latest version of the image in that family. Replace the image name with family/family-name: global/images/family/my-image-family If the source image is deleted later, this field will not be set.",
4621446214
"type": "string"
4621546215
},
4621646216
"sourceImageEncryptionKey": {
4621746217
"$ref": "CustomerEncryptionKey",
4621846218
"description": "The customer-supplied encryption key of the source image. Required if the source image is protected by a customer-supplied encryption key. InstanceTemplate and InstancePropertiesPatch do not store customer-supplied encryption keys, so you cannot create disks for instances in a managed instance group if the source images are encrypted with your own keys."
4621946219
},
4622046220
"sourceInstantSnapshot": {
46221-
"description": "The source instant-snapshot to create this disk. When creating a new instance boot disk, one of initializeParams.sourceSnapshot or initializeParams.sourceInstantSnapshot initializeParams.sourceImage or disks.source is required. To create a disk with a snapshot that you created, specify the snapshot name in the following format: us-central1-a/instantSnapshots/my-backup If the source instant-snapshot is deleted later, this field will not be set.",
46221+
"description": "The source instant-snapshot to create this disk. When creating a new instance, one of initializeParams.sourceSnapshot or initializeParams.sourceInstantSnapshot initializeParams.sourceImage or disks.source is required except for local SSD. To create a disk with a snapshot that you created, specify the snapshot name in the following format: us-central1-a/instantSnapshots/my-backup If the source instant-snapshot is deleted later, this field will not be set.",
4622246222
"type": "string"
4622346223
},
4622446224
"sourceSnapshot": {
46225-
"description": "The source snapshot to create this disk. When creating a new instance boot disk, one of initializeParams.sourceSnapshot or initializeParams.sourceImage or disks.source is required. To create a disk with a snapshot that you created, specify the snapshot name in the following format: global/snapshots/my-backup If the source snapshot is deleted later, this field will not be set.",
46225+
"description": "The source snapshot to create this disk. When creating a new instance, one of initializeParams.sourceSnapshot or initializeParams.sourceImage or disks.source is required except for local SSD. To create a disk with a snapshot that you created, specify the snapshot name in the following format: global/snapshots/my-backup If the source snapshot is deleted later, this field will not be set.",
4622646226
"type": "string"
4622746227
},
4622846228
"sourceSnapshotEncryptionKey": {
@@ -53589,22 +53589,6 @@
5358953589
},
5359053590
"type": "array"
5359153591
},
53592-
"destNetworkScope": {
53593-
"description": "Network scope of the traffic destination.",
53594-
"enum": [
53595-
"INTERNET",
53596-
"NON_INTERNET",
53597-
"UNSPECIFIED",
53598-
"VPC_NETWORKS"
53599-
],
53600-
"enumDescriptions": [
53601-
"",
53602-
"",
53603-
"",
53604-
""
53605-
],
53606-
"type": "string"
53607-
},
5360853592
"destRegionCodes": {
5360953593
"description": "Region codes whose IP addresses will be used to match for destination of traffic. Should be specified as 2 letter country code defined as per ISO 3166 alpha-2 country codes. ex.\"US\" Maximum number of dest region codes allowed is 5000.",
5361053594
"items": {
@@ -53647,29 +53631,6 @@
5364753631
},
5364853632
"type": "array"
5364953633
},
53650-
"srcNetworkScope": {
53651-
"description": "Network scope of the traffic source.",
53652-
"enum": [
53653-
"INTERNET",
53654-
"NON_INTERNET",
53655-
"UNSPECIFIED",
53656-
"VPC_NETWORKS"
53657-
],
53658-
"enumDescriptions": [
53659-
"",
53660-
"",
53661-
"",
53662-
""
53663-
],
53664-
"type": "string"
53665-
},
53666-
"srcNetworks": {
53667-
"description": "Networks of the traffic source. It can be either a full or partial url.",
53668-
"items": {
53669-
"type": "string"
53670-
},
53671-
"type": "array"
53672-
},
5367353634
"srcRegionCodes": {
5367453635
"description": "Region codes whose IP addresses will be used to match for source of traffic. Should be specified as 2 letter country code defined as per ISO 3166 alpha-2 country codes. ex.\"US\" Maximum number of source region codes allowed is 5000.",
5367553636
"items": {
@@ -59377,14 +59338,6 @@
5937759338
"description": "[Output Only] The URL of the region where the managed instance group resides (for regional resources).",
5937859339
"type": "string"
5937959340
},
59380-
"satisfiesPzi": {
59381-
"description": "[Output Only] Reserved for future use.",
59382-
"type": "boolean"
59383-
},
59384-
"satisfiesPzs": {
59385-
"description": "[Output Only] Reserved for future use.",
59386-
"type": "boolean"
59387-
},
5938859341
"selfLink": {
5938959342
"description": "[Output Only] The URL for this managed instance group. The server defines this URL.",
5939059343
"type": "string"
@@ -62036,7 +61989,7 @@
6203661989
"compute.instanceTemplates.insert"
6203761990
]
6203861991
},
62039-
"description": "The machine type to use for instances that are created from these properties. This field only accept machine types name. e.g. n2-standard-4 and does not accept machine type full or partial url. e.g. projects/my-l7ilb-project/zones/us-central1-a/machineTypes/n2-standard-4 will throw INTERNAL_ERROR.",
61992+
"description": "The machine type to use for instances that are created from these properties.",
6204061993
"type": "string"
6204161994
},
6204261995
"metadata": {
@@ -68460,10 +68413,6 @@
6846068413
"description": "A full or partial URL of the network placement to apply to this network. This field can be set only at resource creation time. For example, the following are valid URLs: - https://www.googleapis.com/compute/alpha/projects/{project_id}/global/networkPlacements/{network_placement_name} - projects/{project_id}/global/networkPlacements/{network_placement_name} ",
6846168414
"type": "string"
6846268415
},
68463-
"networkProfile": {
68464-
"description": "A full or partial URL of the network profile to apply to this network. This field can be set only at resource creation time. For example, the following are valid URLs: - https://www.googleapis.com/compute/alpha/projects/{project_id}/global/networkProfiles/{network_profile_name} - projects/{project_id}/global/networkProfiles/{network_profile_name} ",
68465-
"type": "string"
68466-
},
6846768416
"peerings": {
6846868417
"description": "[Output Only] A list of network peerings for the resource.",
6846968418
"items": {
@@ -81801,12 +81750,10 @@
8180181750
"stopState": {
8180281751
"description": "Current stopping state of the instance.",
8180381752
"enum": [
81804-
"PENDING_STOP",
8180581753
"SHUTTING_DOWN",
8180681754
"STOPPING"
8180781755
],
8180881756
"enumDescriptions": [
81809-
"The instance is gracefully shutting down.",
8181081757
"Deprecating, please use PENDING_STOP. The instance is gracefully shutting down.",
8181181758
"The instance is stopping."
8181281759
],
@@ -99180,7 +99127,7 @@
9918099127
"type": "object"
9918199128
},
9918299129
"Zone": {
99183-
"description": "Represents a Zone resource. A zone is a deployment area. These deployment areas are subsets of a region. For example the zone us-east1-b is located in the us-east1 region. For more information, read Regions and Zones.",
99130+
"description": "Represents a Zone resource. A zone is a deployment area. These deployment areas are subsets of a region. For example the zone us-east1-a is located in the us-east1 region. For more information, read Regions and Zones.",
9918499131
"id": "Zone",
9918599132
"properties": {
9918699133
"availableCpuPlatforms": {

0 commit comments

Comments
 (0)