Skip to content

Commit

Permalink
feat(compute): update the API
Browse files Browse the repository at this point in the history
#### compute:alpha

The following keys were added:
- schemas.Scheduling.properties.windowsLicenseOptimizationMode.description
- schemas.Scheduling.properties.windowsLicenseOptimizationMode.enum
- schemas.Scheduling.properties.windowsLicenseOptimizationMode.enumDescriptions
- schemas.Scheduling.properties.windowsLicenseOptimizationMode.type
- schemas.SecurityPolicy.properties.shortName.description
- schemas.SecurityPolicy.properties.shortName.pattern
- schemas.SecurityPolicy.properties.shortName.type
- schemas.SecurityPolicyAssociation.properties.excludedFolders.description
- schemas.SecurityPolicyAssociation.properties.excludedFolders.items.type
- schemas.SecurityPolicyAssociation.properties.excludedFolders.type
- schemas.SecurityPolicyAssociation.properties.excludedProjects.description
- schemas.SecurityPolicyAssociation.properties.excludedProjects.items.type
- schemas.SecurityPolicyAssociation.properties.excludedProjects.type
- schemas.SecurityPolicyAssociation.properties.shortName.description
- schemas.SecurityPolicyAssociation.properties.shortName.type

The following keys were changed:
- schemas.AccessConfig.properties.publicPtrDomainName.description
- schemas.HTTP2HealthCheck.properties.requestPath.description
- schemas.HTTPHealthCheck.properties.requestPath.description
- schemas.HTTPSHealthCheck.properties.requestPath.description
- schemas.HealthCheck.properties.sourceRegions.description
- schemas.Quota.properties.metric.enum
- schemas.Quota.properties.metric.enumDescriptions
- schemas.SnapshotSettingsStorageLocationSettings.properties.locations.description
- schemas.SnapshotSettingsStorageLocationSettings.properties.policy.enumDescriptions
- schemas.SnapshotSettingsStorageLocationSettingsStorageLocationPreference.properties.name.description

#### compute:v1

The following keys were changed:
- schemas.AccessConfig.properties.publicPtrDomainName.description
- schemas.Commitment.properties.type.enum
- schemas.Commitment.properties.type.enumDescriptions
- schemas.HTTP2HealthCheck.properties.requestPath.description
- schemas.HTTPHealthCheck.properties.requestPath.description
- schemas.HTTPSHealthCheck.properties.requestPath.description
- schemas.Quota.properties.metric.enum
- schemas.Quota.properties.metric.enumDescriptions
- schemas.SnapshotSettingsStorageLocationSettings.properties.locations.description
- schemas.SnapshotSettingsStorageLocationSettings.properties.policy.enumDescriptions
- schemas.SnapshotSettingsStorageLocationSettingsStorageLocationPreference.properties.name.description
  • Loading branch information
yoshi-automation authored and sofisl committed May 8, 2024
1 parent 751fcf5 commit 899847d
Show file tree
Hide file tree
Showing 4 changed files with 95 additions and 34 deletions.
63 changes: 54 additions & 9 deletions discovery/compute-alpha.json
Original file line number Diff line number Diff line change
Expand Up @@ -44423,7 +44423,7 @@
}
}
},
"revision": "20240421",
"revision": "20240430",
"rootUrl": "https://compute.googleapis.com/",
"schemas": {
"AWSV4Signature": {
Expand Down Expand Up @@ -45010,7 +45010,7 @@
"type": "string"
},
"publicPtrDomainName": {
"description": "The DNS domain name for the public PTR record. You can set this field only if the `setPublicPtr` field is enabled in accessConfig. If this field is unspecified in ipv6AccessConfig, a default PTR record will be createc for first IP in associated external IPv6 range.",
"description": "The DNS domain name for the public PTR record. You can set this field only if the `setPublicPtr` field is enabled in accessConfig. If this field is unspecified in ipv6AccessConfig, a default PTR record will be created for first IP in associated external IPv6 range.",
"type": "string"
},
"securityPolicy": {
Expand Down Expand Up @@ -55559,7 +55559,7 @@
"type": "string"
},
"requestPath": {
"description": "The request path of the HTTP/2 health check request. The default value is /.",
"description": "The request path of the HTTP/2 health check request. The default value is /. Must comply with RFC3986.",
"type": "string"
},
"response": {
Expand Down Expand Up @@ -55626,7 +55626,7 @@
"type": "string"
},
"requestPath": {
"description": "The request path of the HTTP health check request. The default value is /.",
"description": "The request path of the HTTP health check request. The default value is /. Must comply with RFC3986.",
"type": "string"
},
"response": {
Expand Down Expand Up @@ -55693,7 +55693,7 @@
"type": "string"
},
"requestPath": {
"description": "The request path of the HTTPS health check request. The default value is /.",
"description": "The request path of the HTTPS health check request. The default value is /. Must comply with RFC3986.",
"type": "string"
},
"response": {
Expand Down Expand Up @@ -55786,7 +55786,7 @@
"type": "string"
},
"sourceRegions": {
"description": "The list of cloud regions from which health checks are performed. If any regions are specified, then exactly 3 regions should be specified. The region names must be valid names of GCP regions. This can only be set for global health check. If this list is non-empty, then there are restrictions on what other health check fields are supported and what other resources can use this health check: - SSL, HTTP2, and GRPC protocols are not supported. - The TCP request field is not supported. - The proxyHeader field for HTTP, HTTPS, and TCP is not supported. - The checkIntervalSec field must be at least 30. - The health check cannot be used with BackendService nor with managed instance group auto-healing. ",
"description": "The list of cloud regions from which health checks are performed. If any regions are specified, then exactly 3 regions should be specified. The region names must be valid names of Google Cloud regions. This can only be set for global health check. If this list is non-empty, then there are restrictions on what other health check fields are supported and what other resources can use this health check: - SSL, HTTP2, and GRPC protocols are not supported. - The TCP request field is not supported. - The proxyHeader field for HTTP, HTTPS, and TCP is not supported. - The checkIntervalSec field must be at least 30. - The health check cannot be used with BackendService nor with managed instance group auto-healing. ",
"items": {
"type": "string"
},
Expand Down Expand Up @@ -77957,6 +77957,7 @@
"TPU_LITE_PODSLICE_V5",
"TPU_PODSLICE_V4",
"URL_MAPS",
"VARIABLE_IPV6_PUBLIC_DELEGATED_PREFIXES",
"VPN_GATEWAYS",
"VPN_TUNNELS",
"XPN_SERVICE_PROJECTS"
Expand Down Expand Up @@ -78130,6 +78131,7 @@
"",
"",
"",
"",
""
],
"type": "string"
Expand Down Expand Up @@ -84788,6 +84790,26 @@
"terminationTime": {
"description": "Specifies the timestamp, when the instance will be terminated, in RFC3339 text format. If specified, the instance termination action will be performed at the termination time.",
"type": "string"
},
"windowsLicenseOptimizationMode": {
"description": "Represents the Windows Server License Optimization Mode of the VM. If unspecified, the default mode is `OFF`.",
"enum": [
"AUTO",
"BALANCED",
"COST_OPTIMIZED",
"OFF",
"PERFORMANCE",
"UNSPECIFIED"
],
"enumDescriptions": [
"\"Automatically maximize savings and minimize performance impact by matching license optimization mode to current CPU utilization.",
"Significant license cost savings via moderate throttles (40% baseline, 10 minute maximum burst at full utilization).",
"Maximum license cost savings via restrictive throttles (20% baseline, 3.75 minute maximum burst at full utilization).",
"No license cost savings with maximum CPU performance.",
"Moderate license cost savings via least restrictive throttles (60% baseline, 22.5 minute maximum burst at full utilization).",
"Unspecified license optimization mode defaults to `OFF`."
],
"type": "string"
}
},
"type": "object"
Expand Down Expand Up @@ -85290,6 +85312,11 @@
"description": "[Output Only] Server-defined URL for this resource with the resource id.",
"type": "string"
},
"shortName": {
"description": "User-provided name of the organization security policy. The name should be unique in the organization in which the security policy is created. This should only be used when SecurityPolicyType is CLOUD_ARMOR. The name must be 1-63 characters long, and comply with https://www.ietf.org/rfc/rfc1035.txt. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.",
"pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?",
"type": "string"
},
"type": {
"description": "The type indicates the intended use of the security policy. - CLOUD_ARMOR: Cloud Armor backend security policies can be configured to filter incoming HTTP requests targeting backend services. They filter requests before they hit the origin servers. - CLOUD_ARMOR_EDGE: Cloud Armor edge security policies can be configured to filter incoming HTTP requests targeting backend services (including Cloud CDN-enabled) as well as backend buckets (Cloud Storage). They filter requests before the request is served from Google's cache. - CLOUD_ARMOR_INTERNAL_SERVICE: Cloud Armor internal service policies can be configured to filter HTTP requests targeting services managed by Traffic Director in a service mesh. They filter requests before the request is served from the application. - CLOUD_ARMOR_NETWORK: Cloud Armor network policies can be configured to filter packets targeting network load balancing resources such as backend services, target pools, target instances, and instances with external IPs. They filter requests before the request is served from the application. This field can be set only at resource creation time.",
"enum": [
Expand Down Expand Up @@ -85525,13 +85552,31 @@
"description": "[Output Only] The display name of the security policy of the association.",
"type": "string"
},
"excludedFolders": {
"description": "A list of folders to exclude from the security policy.",
"items": {
"type": "string"
},
"type": "array"
},
"excludedProjects": {
"description": "A list of projects to exclude from the security policy.",
"items": {
"type": "string"
},
"type": "array"
},
"name": {
"description": "The name for an association.",
"type": "string"
},
"securityPolicyId": {
"description": "[Output Only] The security policy ID of the association.",
"type": "string"
},
"shortName": {
"description": "[Output Only] The short name of the security policy of the association.",
"type": "string"
}
},
"type": "object"
Expand Down Expand Up @@ -88130,7 +88175,7 @@
"additionalProperties": {
"$ref": "SnapshotSettingsStorageLocationSettingsStorageLocationPreference"
},
"description": "When the policy is SPECIFIC_LOCATIONS, snapshots will be stored in the locations listed in this field. Keys are GCS bucket locations.",
"description": "When the policy is SPECIFIC_LOCATIONS, snapshots will be stored in the locations listed in this field. Keys are Cloud Storage bucket locations. Only one location can be specified.",
"type": "object"
},
"policy": {
Expand All @@ -88143,7 +88188,7 @@
],
"enumDescriptions": [
"Store snapshot in the same region as with the originating disk. No additional parameters are needed.",
"Store snapshot to the nearest multi region GCS bucket, relative to the originating disk. No additional parameters are needed.",
"Store snapshot in the nearest multi region Cloud Storage bucket, relative to the originating disk. No additional parameters are needed.",
"Store snapshot in the specific locations, as specified by the user. The list of regions to store must be defined under the `locations` field.",
""
],
Expand All @@ -88157,7 +88202,7 @@
"id": "SnapshotSettingsStorageLocationSettingsStorageLocationPreference",
"properties": {
"name": {
"description": "Name of the location. It should be one of the GCS buckets.",
"description": "Name of the location. It should be one of the Cloud Storage buckets. Only one location can be specified.",
"type": "string"
}
},
Expand Down
20 changes: 8 additions & 12 deletions discovery/compute-v1.json
Original file line number Diff line number Diff line change
Expand Up @@ -37421,7 +37421,7 @@
}
}
},
"revision": "20240430",
"revision": "20240421",
"rootUrl": "https://compute.googleapis.com/",
"schemas": {
"AWSV4Signature": {
Expand Down Expand Up @@ -37998,7 +37998,7 @@
"type": "string"
},
"publicPtrDomainName": {
"description": "The DNS domain name for the public PTR record. You can set this field only if the `setPublicPtr` field is enabled in accessConfig. If this field is unspecified in ipv6AccessConfig, a default PTR record will be created for first IP in associated external IPv6 range.",
"description": "The DNS domain name for the public PTR record. You can set this field only if the `setPublicPtr` field is enabled in accessConfig. If this field is unspecified in ipv6AccessConfig, a default PTR record will be createc for first IP in associated external IPv6 range.",
"type": "string"
},
"securityPolicy": {
Expand Down Expand Up @@ -42244,7 +42244,6 @@
"enum": [
"ACCELERATOR_OPTIMIZED",
"ACCELERATOR_OPTIMIZED_A3",
"ACCELERATOR_OPTIMIZED_A3_MEGA",
"COMPUTE_OPTIMIZED",
"COMPUTE_OPTIMIZED_C2D",
"COMPUTE_OPTIMIZED_C3",
Expand Down Expand Up @@ -42280,7 +42279,6 @@
"",
"",
"",
"",
""
],
"type": "string"
Expand Down Expand Up @@ -46830,7 +46828,7 @@
"type": "string"
},
"requestPath": {
"description": "The request path of the HTTP/2 health check request. The default value is /. Must comply with RFC3986.",
"description": "The request path of the HTTP/2 health check request. The default value is /.",
"type": "string"
},
"response": {
Expand Down Expand Up @@ -46883,7 +46881,7 @@
"type": "string"
},
"requestPath": {
"description": "The request path of the HTTP health check request. The default value is /. Must comply with RFC3986.",
"description": "The request path of the HTTP health check request. The default value is /.",
"type": "string"
},
"response": {
Expand Down Expand Up @@ -46936,7 +46934,7 @@
"type": "string"
},
"requestPath": {
"description": "The request path of the HTTPS health check request. The default value is /. Must comply with RFC3986.",
"description": "The request path of the HTTPS health check request. The default value is /.",
"type": "string"
},
"response": {
Expand Down Expand Up @@ -65520,7 +65518,6 @@
"TPU_LITE_PODSLICE_V5",
"TPU_PODSLICE_V4",
"URL_MAPS",
"VARIABLE_IPV6_PUBLIC_DELEGATED_PREFIXES",
"VPN_GATEWAYS",
"VPN_TUNNELS",
"XPN_SERVICE_PROJECTS"
Expand Down Expand Up @@ -65688,7 +65685,6 @@
"",
"",
"",
"",
""
],
"type": "string"
Expand Down Expand Up @@ -73747,7 +73743,7 @@
"additionalProperties": {
"$ref": "SnapshotSettingsStorageLocationSettingsStorageLocationPreference"
},
"description": "When the policy is SPECIFIC_LOCATIONS, snapshots will be stored in the locations listed in this field. Keys are Cloud Storage bucket locations. Only one location can be specified.",
"description": "When the policy is SPECIFIC_LOCATIONS, snapshots will be stored in the locations listed in this field. Keys are GCS bucket locations.",
"type": "object"
},
"policy": {
Expand All @@ -73760,7 +73756,7 @@
],
"enumDescriptions": [
"Store snapshot in the same region as with the originating disk. No additional parameters are needed.",
"Store snapshot in the nearest multi region Cloud Storage bucket, relative to the originating disk. No additional parameters are needed.",
"Store snapshot to the nearest multi region GCS bucket, relative to the originating disk. No additional parameters are needed.",
"Store snapshot in the specific locations, as specified by the user. The list of regions to store must be defined under the `locations` field.",
""
],
Expand All @@ -73774,7 +73770,7 @@
"id": "SnapshotSettingsStorageLocationSettingsStorageLocationPreference",
"properties": {
"name": {
"description": "Name of the location. It should be one of the Cloud Storage buckets. Only one location can be specified.",
"description": "Name of the location. It should be one of the GCS buckets.",
"type": "string"
}
},
Expand Down

0 comments on commit 899847d

Please sign in to comment.