Skip to content

Commit

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

The following keys were added:
- 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.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.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
  • Loading branch information
yoshi-automation authored and sofisl committed May 7, 2024
1 parent b6b24c6 commit 0ef7bad
Show file tree
Hide file tree
Showing 2 changed files with 59 additions and 16 deletions.
45 changes: 36 additions & 9 deletions discovery/compute-beta.json
Original file line number Diff line number Diff line change
Expand Up @@ -41579,7 +41579,7 @@
}
}
},
"revision": "20240421",
"revision": "20240430",
"rootUrl": "https://compute.googleapis.com/",
"schemas": {
"AWSV4Signature": {
Expand Down Expand Up @@ -42156,7 +42156,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 @@ -46588,6 +46588,7 @@
"enum": [
"ACCELERATOR_OPTIMIZED",
"ACCELERATOR_OPTIMIZED_A3",
"ACCELERATOR_OPTIMIZED_A3_MEGA",
"COMPUTE_OPTIMIZED",
"COMPUTE_OPTIMIZED_C2D",
"COMPUTE_OPTIMIZED_C3",
Expand Down Expand Up @@ -46623,6 +46624,7 @@
"",
"",
"",
"",
""
],
"type": "string"
Expand Down Expand Up @@ -52042,7 +52044,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 @@ -52095,7 +52097,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 @@ -52148,7 +52150,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 @@ -52220,7 +52222,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 @@ -71429,6 +71431,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 @@ -71597,6 +71600,7 @@
"",
"",
"",
"",
""
],
"type": "string"
Expand Down Expand Up @@ -78168,6 +78172,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 @@ -78401,13 +78410,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 @@ -80611,7 +80638,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 @@ -80624,7 +80651,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 @@ -80638,7 +80665,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
30 changes: 23 additions & 7 deletions src/apis/compute/beta.ts
Original file line number Diff line number Diff line change
Expand Up @@ -541,7 +541,7 @@ export namespace compute_beta {
*/
networkTier?: string | null;
/**
* 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.
* 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.
*/
publicPtrDomainName?: string | null;
/**
Expand Down Expand Up @@ -4747,7 +4747,7 @@ export namespace compute_beta {
*/
selfLink?: string | null;
/**
* 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.
* 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.
*/
sourceRegions?: string[] | null;
sslHealthCheck?: Schema$SSLHealthCheck;
Expand Down Expand Up @@ -5078,7 +5078,7 @@ export namespace compute_beta {
*/
proxyHeader?: string | null;
/**
* The request path of the HTTP/2 health check request. The default value is /.
* The request path of the HTTP/2 health check request. The default value is /. Must comply with RFC3986.
*/
requestPath?: string | null;
/**
Expand Down Expand Up @@ -5239,7 +5239,7 @@ export namespace compute_beta {
*/
proxyHeader?: string | null;
/**
* The request path of the HTTP health check request. The default value is /.
* The request path of the HTTP health check request. The default value is /. Must comply with RFC3986.
*/
requestPath?: string | null;
/**
Expand Down Expand Up @@ -5542,7 +5542,7 @@ export namespace compute_beta {
*/
proxyHeader?: string | null;
/**
* The request path of the HTTPS health check request. The default value is /.
* The request path of the HTTPS health check request. The default value is /. Must comply with RFC3986.
*/
requestPath?: string | null;
/**
Expand Down Expand Up @@ -14737,6 +14737,10 @@ export namespace compute_beta {
* [Output Only] Server-defined URL for this resource with the resource id.
*/
selfLinkWithId?: string | null;
/**
* 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.
*/
shortName?: string | null;
/**
* 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.
*/
Expand Down Expand Up @@ -14843,6 +14847,14 @@ export namespace compute_beta {
* [Output Only] The display name of the security policy of the association.
*/
displayName?: string | null;
/**
* A list of folders to exclude from the security policy.
*/
excludedFolders?: string[] | null;
/**
* A list of projects to exclude from the security policy.
*/
excludedProjects?: string[] | null;
/**
* The name for an association.
*/
Expand All @@ -14851,6 +14863,10 @@ export namespace compute_beta {
* [Output Only] The security policy ID of the association.
*/
securityPolicyId?: string | null;
/**
* [Output Only] The short name of the security policy of the association.
*/
shortName?: string | null;
}
export interface Schema$SecurityPolicyDdosProtectionConfig {
ddosProtection?: string | null;
Expand Down Expand Up @@ -15876,7 +15892,7 @@ export namespace compute_beta {
}
export interface Schema$SnapshotSettingsStorageLocationSettings {
/**
* When the policy is SPECIFIC_LOCATIONS, snapshots will be stored in the locations listed in this field. Keys are GCS bucket locations.
* 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.
*/
locations?: {
[
Expand All @@ -15893,7 +15909,7 @@ export namespace compute_beta {
*/
export interface Schema$SnapshotSettingsStorageLocationSettingsStorageLocationPreference {
/**
* Name of the location. It should be one of the GCS buckets.
* Name of the location. It should be one of the Cloud Storage buckets. Only one location can be specified.
*/
name?: string | null;
}
Expand Down

0 comments on commit 0ef7bad

Please sign in to comment.