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:
- resources.projects.methods.setManagedProtectionTier.description
- resources.projects.methods.setManagedProtectionTier.flatPath
- resources.projects.methods.setManagedProtectionTier.httpMethod
- resources.projects.methods.setManagedProtectionTier.id
- resources.projects.methods.setManagedProtectionTier.parameterOrder
- resources.projects.methods.setManagedProtectionTier.parameters.project.description
- resources.projects.methods.setManagedProtectionTier.parameters.project.location
- resources.projects.methods.setManagedProtectionTier.parameters.project.pattern
- resources.projects.methods.setManagedProtectionTier.parameters.project.required
- resources.projects.methods.setManagedProtectionTier.parameters.project.type
- resources.projects.methods.setManagedProtectionTier.parameters.requestId.description
- resources.projects.methods.setManagedProtectionTier.parameters.requestId.location
- resources.projects.methods.setManagedProtectionTier.parameters.requestId.type
- resources.projects.methods.setManagedProtectionTier.path
- resources.projects.methods.setManagedProtectionTier.request.$ref
- resources.projects.methods.setManagedProtectionTier.response.$ref
- resources.projects.methods.setManagedProtectionTier.scopes
- schemas.Project.properties.managedProtectionTier.description
- schemas.Project.properties.managedProtectionTier.enum
- schemas.Project.properties.managedProtectionTier.enumDescriptions
- schemas.Project.properties.managedProtectionTier.type
- schemas.ProjectsSetManagedProtectionTierRequest.id
- schemas.ProjectsSetManagedProtectionTierRequest.properties.managedProtectionTier.description
- schemas.ProjectsSetManagedProtectionTierRequest.properties.managedProtectionTier.enum
- schemas.ProjectsSetManagedProtectionTierRequest.properties.managedProtectionTier.enumDescriptions
- schemas.ProjectsSetManagedProtectionTierRequest.properties.managedProtectionTier.type
- schemas.ProjectsSetManagedProtectionTierRequest.type

The following keys were changed:
- resources.regionSecurityPolicies.methods.patch.description
- resources.securityPolicies.methods.patch.description
- resources.securityPolicies.methods.patchRule.description
- schemas.BackendBucket.properties.customResponseHeaders.description
- schemas.InstanceGroupManagerUpdatePolicy.properties.type.description
- schemas.InstanceGroupManagerUpdatePolicy.properties.type.enumDescriptions
- schemas.ReservationAffinity.properties.consumeReservationType.enum
- schemas.ReservationAffinity.properties.consumeReservationType.enumDescriptions

#### compute:beta

The following keys were added:
- resources.projects.methods.setManagedProtectionTier.description
- resources.projects.methods.setManagedProtectionTier.flatPath
- resources.projects.methods.setManagedProtectionTier.httpMethod
- resources.projects.methods.setManagedProtectionTier.id
- resources.projects.methods.setManagedProtectionTier.parameterOrder
- resources.projects.methods.setManagedProtectionTier.parameters.project.description
- resources.projects.methods.setManagedProtectionTier.parameters.project.location
- resources.projects.methods.setManagedProtectionTier.parameters.project.pattern
- resources.projects.methods.setManagedProtectionTier.parameters.project.required
- resources.projects.methods.setManagedProtectionTier.parameters.project.type
- resources.projects.methods.setManagedProtectionTier.parameters.requestId.description
- resources.projects.methods.setManagedProtectionTier.parameters.requestId.location
- resources.projects.methods.setManagedProtectionTier.parameters.requestId.type
- resources.projects.methods.setManagedProtectionTier.path
- resources.projects.methods.setManagedProtectionTier.request.$ref
- resources.projects.methods.setManagedProtectionTier.response.$ref
- resources.projects.methods.setManagedProtectionTier.scopes
- resources.regionZones.methods.list.description
- resources.regionZones.methods.list.flatPath
- resources.regionZones.methods.list.httpMethod
- resources.regionZones.methods.list.id
- resources.regionZones.methods.list.parameterOrder
- resources.regionZones.methods.list.parameters.filter.description
- resources.regionZones.methods.list.parameters.filter.location
- resources.regionZones.methods.list.parameters.filter.type
- resources.regionZones.methods.list.parameters.maxResults.default
- resources.regionZones.methods.list.parameters.maxResults.description
- resources.regionZones.methods.list.parameters.maxResults.format
- resources.regionZones.methods.list.parameters.maxResults.location
- resources.regionZones.methods.list.parameters.maxResults.minimum
- resources.regionZones.methods.list.parameters.maxResults.type
- resources.regionZones.methods.list.parameters.orderBy.description
- resources.regionZones.methods.list.parameters.orderBy.location
- resources.regionZones.methods.list.parameters.orderBy.type
- resources.regionZones.methods.list.parameters.pageToken.description
- resources.regionZones.methods.list.parameters.pageToken.location
- resources.regionZones.methods.list.parameters.pageToken.type
- resources.regionZones.methods.list.parameters.project.description
- resources.regionZones.methods.list.parameters.project.location
- resources.regionZones.methods.list.parameters.project.pattern
- resources.regionZones.methods.list.parameters.project.required
- resources.regionZones.methods.list.parameters.project.type
- resources.regionZones.methods.list.parameters.region.description
- resources.regionZones.methods.list.parameters.region.location
- resources.regionZones.methods.list.parameters.region.pattern
- resources.regionZones.methods.list.parameters.region.required
- resources.regionZones.methods.list.parameters.region.type
- resources.regionZones.methods.list.parameters.returnPartialSuccess.description
- resources.regionZones.methods.list.parameters.returnPartialSuccess.location
- resources.regionZones.methods.list.parameters.returnPartialSuccess.type
- resources.regionZones.methods.list.path
- resources.regionZones.methods.list.response.$ref
- resources.regionZones.methods.list.scopes
- schemas.Project.properties.managedProtectionTier.description
- schemas.Project.properties.managedProtectionTier.enum
- schemas.Project.properties.managedProtectionTier.enumDescriptions
- schemas.Project.properties.managedProtectionTier.type
- schemas.ProjectsSetManagedProtectionTierRequest.id
- schemas.ProjectsSetManagedProtectionTierRequest.properties.managedProtectionTier.description
- schemas.ProjectsSetManagedProtectionTierRequest.properties.managedProtectionTier.enum
- schemas.ProjectsSetManagedProtectionTierRequest.properties.managedProtectionTier.enumDescriptions
- schemas.ProjectsSetManagedProtectionTierRequest.properties.managedProtectionTier.type
- schemas.ProjectsSetManagedProtectionTierRequest.type
- schemas.QuotaExceededInfo.properties.futureLimit.description
- schemas.QuotaExceededInfo.properties.futureLimit.format
- schemas.QuotaExceededInfo.properties.futureLimit.type
- schemas.QuotaExceededInfo.properties.rolloutStatus.description
- schemas.QuotaExceededInfo.properties.rolloutStatus.enum
- schemas.QuotaExceededInfo.properties.rolloutStatus.enumDescriptions
- schemas.QuotaExceededInfo.properties.rolloutStatus.type
- schemas.Scheduling.properties.localSsdRecoveryTimeout.$ref
- schemas.Scheduling.properties.localSsdRecoveryTimeout.description
- schemas.ServiceAttachmentConnectedEndpoint.properties.consumerNetwork.description
- schemas.ServiceAttachmentConnectedEndpoint.properties.consumerNetwork.type

The following keys were changed:
- resources.regionSecurityPolicies.methods.patch.description
- resources.securityPolicies.methods.patch.description
- resources.securityPolicies.methods.patchRule.description
- schemas.BackendBucket.properties.customResponseHeaders.description
- schemas.InstanceGroupManagerResizeRequest.properties.state.enum
- schemas.InstanceGroupManagerResizeRequest.properties.state.enumDescriptions
- schemas.InstanceGroupManagerUpdatePolicy.properties.type.description
- schemas.InstanceGroupManagerUpdatePolicy.properties.type.enumDescriptions

#### compute:v1

The following keys were added:
- resources.resourcePolicies.methods.patch.description
- resources.resourcePolicies.methods.patch.flatPath
- resources.resourcePolicies.methods.patch.httpMethod
- resources.resourcePolicies.methods.patch.id
- resources.resourcePolicies.methods.patch.parameterOrder
- resources.resourcePolicies.methods.patch.parameters.project.description
- resources.resourcePolicies.methods.patch.parameters.project.location
- resources.resourcePolicies.methods.patch.parameters.project.pattern
- resources.resourcePolicies.methods.patch.parameters.project.required
- resources.resourcePolicies.methods.patch.parameters.project.type
- resources.resourcePolicies.methods.patch.parameters.region.description
- resources.resourcePolicies.methods.patch.parameters.region.location
- resources.resourcePolicies.methods.patch.parameters.region.pattern
- resources.resourcePolicies.methods.patch.parameters.region.required
- resources.resourcePolicies.methods.patch.parameters.region.type
- resources.resourcePolicies.methods.patch.parameters.requestId.description
- resources.resourcePolicies.methods.patch.parameters.requestId.location
- resources.resourcePolicies.methods.patch.parameters.requestId.type
- resources.resourcePolicies.methods.patch.parameters.resourcePolicy.description
- resources.resourcePolicies.methods.patch.parameters.resourcePolicy.location
- resources.resourcePolicies.methods.patch.parameters.resourcePolicy.pattern
- resources.resourcePolicies.methods.patch.parameters.resourcePolicy.required
- resources.resourcePolicies.methods.patch.parameters.resourcePolicy.type
- resources.resourcePolicies.methods.patch.parameters.updateMask.description
- resources.resourcePolicies.methods.patch.parameters.updateMask.format
- resources.resourcePolicies.methods.patch.parameters.updateMask.location
- resources.resourcePolicies.methods.patch.parameters.updateMask.type
- resources.resourcePolicies.methods.patch.path
- resources.resourcePolicies.methods.patch.request.$ref
- resources.resourcePolicies.methods.patch.response.$ref
- resources.resourcePolicies.methods.patch.scopes
- schemas.QuotaExceededInfo.properties.futureLimit.description
- schemas.QuotaExceededInfo.properties.futureLimit.format
- schemas.QuotaExceededInfo.properties.futureLimit.type
- schemas.QuotaExceededInfo.properties.rolloutStatus.description
- schemas.QuotaExceededInfo.properties.rolloutStatus.enum
- schemas.QuotaExceededInfo.properties.rolloutStatus.enumDescriptions
- schemas.QuotaExceededInfo.properties.rolloutStatus.type
- schemas.Scheduling.properties.localSsdRecoveryTimeout.$ref
- schemas.Scheduling.properties.localSsdRecoveryTimeout.description
- schemas.ServiceAttachmentConnectedEndpoint.properties.consumerNetwork.description
- schemas.ServiceAttachmentConnectedEndpoint.properties.consumerNetwork.type

The following keys were changed:
- resources.regionSecurityPolicies.methods.patch.description
- resources.securityPolicies.methods.patch.description
- resources.securityPolicies.methods.patchRule.description
- schemas.BackendBucket.properties.customResponseHeaders.description
- schemas.DistributionPolicy.properties.targetShape.enum
- schemas.DistributionPolicy.properties.targetShape.enumDescriptions
- schemas.InstanceGroupManagerUpdatePolicy.properties.type.description
- schemas.InstanceGroupManagerUpdatePolicy.properties.type.enumDescriptions
  • Loading branch information
yoshi-automation authored and sofisl committed Jul 13, 2023
1 parent d726c93 commit f034a52
Show file tree
Hide file tree
Showing 6 changed files with 1,186 additions and 39 deletions.
86 changes: 78 additions & 8 deletions discovery/compute-alpha.json
Original file line number Diff line number Diff line change
Expand Up @@ -21533,6 +21533,40 @@
"https://www.googleapis.com/auth/compute"
]
},
"setManagedProtectionTier": {
"description": "Sets the Cloud Armor Managed Protection (CAMP) tier of the project. To set PLUS or above the billing account of the project must be subscribed to Managed Protection Plus. See Subscribing to Managed Protection Plus for more information.",
"flatPath": "projects/{project}/setManagedProtectionTier",
"httpMethod": "POST",
"id": "compute.projects.setManagedProtectionTier",
"parameterOrder": [
"project"
],
"parameters": {
"project": {
"description": "Project ID for this request.",
"location": "path",
"pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))",
"required": true,
"type": "string"
},
"requestId": {
"description": "An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).",
"location": "query",
"type": "string"
}
},
"path": "projects/{project}/setManagedProtectionTier",
"request": {
"$ref": "ProjectsSetManagedProtectionTierRequest"
},
"response": {
"$ref": "Operation"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/compute"
]
},
"setUsageExportBucket": {
"description": "Enables the usage export feature and sets the usage export bucket where reports are stored. If you provide an empty request body using this method, the usage export feature will be disabled.",
"flatPath": "projects/{project}/setUsageExportBucket",
Expand Down Expand Up @@ -29734,7 +29768,7 @@
]
},
"patch": {
"description": "Patches the specified policy with the data included in the request. To clear fields in the rule, leave the fields empty and specify them in the updateMask. This cannot be used to be update the rules in the policy. Please use the per rule methods like addRule, patchRule, and removeRule instead.",
"description": "Patches the specified policy with the data included in the request. To clear fields in the policy, leave the fields empty and specify them in the updateMask. This cannot be used to be update the rules in the policy. Please use the per rule methods like addRule, patchRule, and removeRule instead.",
"flatPath": "projects/{project}/regions/{region}/securityPolicies/{securityPolicy}",
"httpMethod": "PATCH",
"id": "compute.regionSecurityPolicies.patch",
Expand Down Expand Up @@ -34203,7 +34237,7 @@
]
},
"patch": {
"description": "Patches the specified policy with the data included in the request. To clear fields in the rule, leave the fields empty and specify them in the updateMask. This cannot be used to be update the rules in the policy. Please use the per rule methods like addRule, patchRule, and removeRule instead.",
"description": "Patches the specified policy with the data included in the request. To clear fields in the policy, leave the fields empty and specify them in the updateMask. This cannot be used to be update the rules in the policy. Please use the per rule methods like addRule, patchRule, and removeRule instead.",
"flatPath": "projects/{project}/global/securityPolicies/{securityPolicy}",
"httpMethod": "PATCH",
"id": "compute.securityPolicies.patch",
Expand Down Expand Up @@ -34256,7 +34290,7 @@
]
},
"patchRule": {
"description": "Patches a rule at the specified priority.",
"description": "Patches a rule at the specified priority. To clear fields in the rule, leave the fields empty and specify them in the updateMask.",
"flatPath": "projects/{project}/global/securityPolicies/{securityPolicy}/patchRule",
"httpMethod": "POST",
"id": "compute.securityPolicies.patchRule",
Expand Down Expand Up @@ -42087,7 +42121,7 @@
}
}
},
"revision": "20230701",
"revision": "20230711",
"rootUrl": "https://compute.googleapis.com/",
"schemas": {
"AWSV4Signature": {
Expand Down Expand Up @@ -44962,7 +44996,7 @@
"type": "string"
},
"customResponseHeaders": {
"description": "Headers that the HTTP/S load balancer should add to proxied responses.",
"description": "Headers that the Application Load Balancer should add to proxied responses.",
"items": {
"type": "string"
},
Expand Down Expand Up @@ -57554,14 +57588,14 @@
"type": "string"
},
"type": {
"description": "The type of update process. You can specify either PROACTIVE so that the instance group manager proactively executes actions in order to bring instances to their target versions or OPPORTUNISTIC so that no action is proactively executed but the update will be performed as part of other actions (for example, resizes or recreateInstances calls).",
"description": "The type of update process. You can specify either PROACTIVE so that the MIG automatically updates VMs to the latest configurations or OPPORTUNISTIC so that you can select the VMs that you want to update.",
"enum": [
"OPPORTUNISTIC",
"PROACTIVE"
],
"enumDescriptions": [
"No action is being proactively performed in order to bring this IGM to its target version distribution (regardless of whether this distribution is expressed using instanceTemplate or versions field).",
"This IGM will actively converge to its target version distribution (regardless of whether this distribution is expressed using instanceTemplate or versions field)."
"MIG will apply new configurations to existing VMs only when you selectively target specific or all VMs to be updated.",
"MIG will automatically apply new configurations to all or a subset of existing VMs and also to new VMs that are added to the group."
],
"type": "string"
}
Expand Down Expand Up @@ -72352,6 +72386,20 @@
"description": "[Output Only] Type of the resource. Always compute#project for projects.",
"type": "string"
},
"managedProtectionTier": {
"description": "[Output Only] The Cloud Armor Managed Protection (CAMP) tier for this project. It can be one of the following values: CA_STANDARD, CAMP_PLUS_MONTHLY. If this field is not specified, it is assumed to be CA_STANDARD.",
"enum": [
"CAMP_PLUS_ANNUAL",
"CAMP_PLUS_MONTHLY",
"CA_STANDARD"
],
"enumDescriptions": [
"Plus tier protection annual.",
"Plus tier protection monthly.",
"Standard protection."
],
"type": "string"
},
"name": {
"description": "The project ID. For example: my-example-project. Use the project ID to make requests to Compute Engine.",
"type": "string"
Expand Down Expand Up @@ -72492,6 +72540,26 @@
},
"type": "object"
},
"ProjectsSetManagedProtectionTierRequest": {
"id": "ProjectsSetManagedProtectionTierRequest",
"properties": {
"managedProtectionTier": {
"description": "Managed protection tier to be set.",
"enum": [
"CAMP_PLUS_ANNUAL",
"CAMP_PLUS_MONTHLY",
"CA_STANDARD"
],
"enumDescriptions": [
"Plus tier protection annual.",
"Plus tier protection monthly.",
"Standard protection."
],
"type": "string"
}
},
"type": "object"
},
"PublicAdvertisedPrefix": {
"description": "A public advertised prefix represents an aggregated IP prefix or netblock which customers bring to cloud. The IP prefix is a single unit of route advertisement and is announced globally to the internet.",
"id": "PublicAdvertisedPrefix",
Expand Down Expand Up @@ -76258,13 +76326,15 @@
"NO_RESERVATION",
"SPECIFIC_RESERVATION",
"SPECIFIC_THEN_ANY_RESERVATION",
"SPECIFIC_THEN_NO_RESERVATION",
"UNSPECIFIED"
],
"enumDescriptions": [
"Consume any allocation available.",
"Do not consume from any allocated capacity.",
"Must consume from a specific reservation. Must specify key value fields for specifying the reservations.",
"Prefer to consume from a specific reservation, but still consume any reservation available if the specified reservation is not available or exhausted. Must specify key value fields for specifying the reservations.",
"Prefer to consume from a specific reservation, but still consume from the on-demand pool if the specified reservation is exhausted. Must specify key value fields for specifying the reservations.",
""
],
"type": "string"
Expand Down
Loading

0 comments on commit f034a52

Please sign in to comment.