Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: run the generator #3006

Merged
merged 12 commits into from Jun 21, 2022
57 changes: 56 additions & 1 deletion discovery/assuredworkloads-v1.json
Expand Up @@ -343,6 +343,34 @@
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
]
},
"restrictAllowedResources": {
"description": "Restrict the list of resources allowed in the Workload environment. The current list of allowed products can be found at https://cloud.google.com/assured-workloads/docs/supported-products In addition to assuredworkloads.workload.update permission, the user should also have orgpolicy.policy.set permission on the folder resource to use this functionality.",
"flatPath": "v1/organizations/{organizationsId}/locations/{locationsId}/workloads/{workloadsId}:restrictAllowedResources",
"httpMethod": "POST",
"id": "assuredworkloads.organizations.locations.workloads.restrictAllowedResources",
"parameterOrder": [
"name"
],
"parameters": {
"name": {
"description": "Required. The resource name of the Workload. This is the workloads's relative path in the API, formatted as \"organizations/{organization_id}/locations/{location_id}/workloads/{workload_id}\". For example, \"organizations/123/locations/us-east1/workloads/assured-workload-1\".",
"location": "path",
"pattern": "^organizations/[^/]+/locations/[^/]+/workloads/[^/]+$",
"required": true,
"type": "string"
}
},
"path": "v1/{+name}:restrictAllowedResources",
"request": {
"$ref": "GoogleCloudAssuredworkloadsV1RestrictAllowedResourcesRequest"
},
"response": {
"$ref": "GoogleCloudAssuredworkloadsV1RestrictAllowedResourcesResponse"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
]
}
}
}
Expand All @@ -351,7 +379,7 @@
}
}
},
"revision": "20220603",
"revision": "20220609",
"rootUrl": "https://assuredworkloads.googleapis.com/",
"schemas": {
"GoogleCloudAssuredworkloadsV1CreateWorkloadOperationMetadata": {
Expand Down Expand Up @@ -422,6 +450,33 @@
},
"type": "object"
},
"GoogleCloudAssuredworkloadsV1RestrictAllowedResourcesRequest": {
"description": "Request for restricting list of available resources in Workload environment.",
"id": "GoogleCloudAssuredworkloadsV1RestrictAllowedResourcesRequest",
"properties": {
"restrictionType": {
"description": "Required. The type of restriction for using gcp products in the Workload environment.",
"enum": [
"RESTRICTION_TYPE_UNSPECIFIED",
"ALLOW_ALL_GCP_RESOURCES",
"ALLOW_COMPLIANT_RESOURCES"
],
"enumDescriptions": [
"Unknown restriction type.",
"Allow the use all of all gcp products, irrespective of the compliance posture. This effectively removes gcp.restrictServiceUsage OrgPolicy on the AssuredWorkloads Folder.",
"Based on Workload's compliance regime, allowed list changes. See - https://cloud.google.com/assured-workloads/docs/supported-products for the list of supported resources."
],
"type": "string"
}
},
"type": "object"
},
"GoogleCloudAssuredworkloadsV1RestrictAllowedResourcesResponse": {
"description": "Response for restricting the list of allowed resources.",
"id": "GoogleCloudAssuredworkloadsV1RestrictAllowedResourcesResponse",
"properties": {},
"type": "object"
},
"GoogleCloudAssuredworkloadsV1Workload": {
"description": "An Workload object for managing highly regulated workloads of cloud customers.",
"id": "GoogleCloudAssuredworkloadsV1Workload",
Expand Down
57 changes: 54 additions & 3 deletions discovery/clouddeploy-v1.json
Expand Up @@ -508,6 +508,34 @@
"resources": {
"releases": {
"methods": {
"abandon": {
"description": "Abandons a Release in the Delivery Pipeline.",
"flatPath": "v1/projects/{projectsId}/locations/{locationsId}/deliveryPipelines/{deliveryPipelinesId}/releases/{releasesId}:abandon",
"httpMethod": "POST",
"id": "clouddeploy.projects.locations.deliveryPipelines.releases.abandon",
"parameterOrder": [
"name"
],
"parameters": {
"name": {
"description": "Required. Name of the Release. Format is projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/ releases/{release}.",
"location": "path",
"pattern": "^projects/[^/]+/locations/[^/]+/deliveryPipelines/[^/]+/releases/[^/]+$",
"required": true,
"type": "string"
}
},
"path": "v1/{+name}:abandon",
"request": {
"$ref": "AbandonReleaseRequest"
},
"response": {
"$ref": "AbandonReleaseResponse"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
]
},
"create": {
"description": "Creates a new Release in a given project and location.",
"flatPath": "v1/projects/{projectsId}/locations/{locationsId}/deliveryPipelines/{deliveryPipelinesId}/releases",
Expand Down Expand Up @@ -1201,9 +1229,21 @@
}
}
},
"revision": "20220602",
"revision": "20220609",
"rootUrl": "https://clouddeploy.googleapis.com/",
"schemas": {
"AbandonReleaseRequest": {
"description": "The request object used by `AbandonRelease`.",
"id": "AbandonReleaseRequest",
"properties": {},
"type": "object"
},
"AbandonReleaseResponse": {
"description": "The response object for `AbandonRelease`.",
"id": "AbandonReleaseResponse",
"properties": {},
"type": "object"
},
"AnthosCluster": {
"description": "Information specifying an Anthos Cluster.",
"id": "AnthosCluster",
Expand Down Expand Up @@ -1429,6 +1469,10 @@
"$ref": "SerialPipeline",
"description": "SerialPipeline defines a sequential set of stages for a `DeliveryPipeline`."
},
"suspended": {
"description": "When suspended, no new releases or rollouts can be created, but in-progress ones will complete.",
"type": "boolean"
},
"uid": {
"description": "Output only. Unique identifier of the `DeliveryPipeline`.",
"readOnly": true,
Expand Down Expand Up @@ -1899,6 +1943,11 @@
"description": "A `Release` resource in the Google Cloud Deploy API. A `Release` defines a specific Skaffold configuration instance that can be deployed.",
"id": "Release",
"properties": {
"abandoned": {
"description": "Output only. Indicates whether this is an abandoned release.",
"readOnly": true,
"type": "boolean"
},
"annotations": {
"additionalProperties": {
"type": "string"
Expand Down Expand Up @@ -2115,14 +2164,16 @@
"CLOUD_BUILD_UNAVAILABLE",
"EXECUTION_FAILED",
"DEADLINE_EXCEEDED",
"RELEASE_FAILED"
"RELEASE_FAILED",
"RELEASE_ABANDONED"
],
"enumDescriptions": [
"No reason for failure is specified.",
"Cloud Build is not available, either because it is not enabled or because Cloud Deploy has insufficient permissions. See [required permission](/deploy/docs/cloud-deploy-service-account#required_permissions).",
"The deploy operation did not complete successfully; check Cloud Build logs.",
"Deployment did not complete within the alloted time.",
"Release is in a failed state."
"Release is in a failed state.",
"Release is abandoned."
],
"readOnly": true,
"type": "string"
Expand Down
20 changes: 19 additions & 1 deletion discovery/gkehub-v1.json
Expand Up @@ -905,7 +905,7 @@
}
}
},
"revision": "20220603",
"revision": "20220613",
"rootUrl": "https://gkehub.googleapis.com/",
"schemas": {
"AnthosVMMembershipSpec": {
Expand Down Expand Up @@ -2677,6 +2677,24 @@
"readOnly": true,
"type": "boolean"
},
"clusterType": {
"description": "Immutable. The on prem cluster's type.",
"enum": [
"CLUSTERTYPE_UNSPECIFIED",
"BOOTSTRAP",
"HYBRID",
"STANDALONE",
"USER"
],
"enumDescriptions": [
"The ClusterType is not set.",
"The ClusterType is bootstrap cluster.",
"The ClusterType is baremetal hybrid cluster.",
"The ClusterType is baremetal standalone cluster.",
"The ClusterType is user cluster."
],
"type": "string"
},
"resourceLink": {
"description": "Immutable. Self-link of the GCP resource for the GKE On-Prem cluster. For example: //gkeonprem.googleapis.com/projects/my-project/locations/us-west1-a/vmwareClusters/my-cluster //gkeonprem.googleapis.com/projects/my-project/locations/us-west1-a/bareMetalClusters/my-cluster",
"type": "string"
Expand Down
20 changes: 19 additions & 1 deletion discovery/gkehub-v1alpha.json
Expand Up @@ -1151,7 +1151,7 @@
}
}
},
"revision": "20220603",
"revision": "20220613",
"rootUrl": "https://gkehub.googleapis.com/",
"schemas": {
"AnthosObservabilityFeatureSpec": {
Expand Down Expand Up @@ -3276,6 +3276,24 @@
"readOnly": true,
"type": "boolean"
},
"clusterType": {
"description": "Immutable. The on prem cluster's type.",
"enum": [
"CLUSTERTYPE_UNSPECIFIED",
"BOOTSTRAP",
"HYBRID",
"STANDALONE",
"USER"
],
"enumDescriptions": [
"The ClusterType is not set.",
"The ClusterType is bootstrap cluster.",
"The ClusterType is baremetal hybrid cluster.",
"The ClusterType is baremetal standalone cluster.",
"The ClusterType is user cluster."
],
"type": "string"
},
"resourceLink": {
"description": "Immutable. Self-link of the GCP resource for the GKE On-Prem cluster. For example: //gkeonprem.googleapis.com/projects/my-project/locations/us-west1-a/vmwareClusters/my-cluster //gkeonprem.googleapis.com/projects/my-project/locations/us-west1-a/bareMetalClusters/my-cluster",
"type": "string"
Expand Down
20 changes: 19 additions & 1 deletion discovery/gkehub-v1alpha2.json
Expand Up @@ -652,7 +652,7 @@
}
}
},
"revision": "20220603",
"revision": "20220613",
"rootUrl": "https://gkehub.googleapis.com/",
"schemas": {
"ApplianceCluster": {
Expand Down Expand Up @@ -1245,6 +1245,24 @@
"readOnly": true,
"type": "boolean"
},
"clusterType": {
"description": "Immutable. The on prem cluster's type.",
"enum": [
"CLUSTERTYPE_UNSPECIFIED",
"BOOTSTRAP",
"HYBRID",
"STANDALONE",
"USER"
],
"enumDescriptions": [
"The ClusterType is not set.",
"The ClusterType is bootstrap cluster.",
"The ClusterType is baremetal hybrid cluster.",
"The ClusterType is baremetal standalone cluster.",
"The ClusterType is user cluster."
],
"type": "string"
},
"resourceLink": {
"description": "Immutable. Self-link of the GCP resource for the GKE On-Prem cluster. For example: //gkeonprem.googleapis.com/projects/my-project/locations/us-west1-a/vmwareClusters/my-cluster //gkeonprem.googleapis.com/projects/my-project/locations/us-west1-a/bareMetalClusters/my-cluster",
"type": "string"
Expand Down
20 changes: 19 additions & 1 deletion discovery/gkehub-v1beta1.json
Expand Up @@ -706,7 +706,7 @@
}
}
},
"revision": "20220603",
"revision": "20220613",
"rootUrl": "https://gkehub.googleapis.com/",
"schemas": {
"ApplianceCluster": {
Expand Down Expand Up @@ -1301,6 +1301,24 @@
"readOnly": true,
"type": "boolean"
},
"clusterType": {
"description": "Immutable. The on prem cluster's type.",
"enum": [
"CLUSTERTYPE_UNSPECIFIED",
"BOOTSTRAP",
"HYBRID",
"STANDALONE",
"USER"
],
"enumDescriptions": [
"The ClusterType is not set.",
"The ClusterType is bootstrap cluster.",
"The ClusterType is baremetal hybrid cluster.",
"The ClusterType is baremetal standalone cluster.",
"The ClusterType is user cluster."
],
"type": "string"
},
"resourceLink": {
"description": "Immutable. Self-link of the GCP resource for the GKE On-Prem cluster. For example: //gkeonprem.googleapis.com/projects/my-project/locations/us-west1-a/vmwareClusters/my-cluster //gkeonprem.googleapis.com/projects/my-project/locations/us-west1-a/bareMetalClusters/my-cluster",
"type": "string"
Expand Down
21 changes: 3 additions & 18 deletions discovery/index.json
Expand Up @@ -571,28 +571,13 @@
"documentationLink": "https://developers.google.com/authorized-buyers/apis/marketplace/reference/rest/",
"preferred": true
},
{
"kind": "discovery#directoryItem",
"id": "baremetalsolution:v1alpha1",
"name": "baremetalsolution",
"version": "v1alpha1",
"title": "Bare Metal Solution API",
"description": "Provides ways to manage Bare Metal Solution hardware installed in a regional extension located near a Google Cloud data center.",
"discoveryRestUrl": "https://baremetalsolution.googleapis.com/$discovery/rest?version=v1alpha1",
"icons": {
"x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png",
"x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png"
},
"documentationLink": "https://cloud.google.com/bare-metal",
"preferred": false
},
{
"kind": "discovery#directoryItem",
"id": "baremetalsolution:v1",
"name": "baremetalsolution",
"version": "v1",
"title": "Bare Metal Solution API",
"description": "Provides ways to manage Bare Metal Solution hardware installed in a regional extension located near a Google Cloud data center.",
"description": "Bare Metal Solution provides hardware to run specialized workloads with low latency on Google Cloud.",
"discoveryRestUrl": "https://baremetalsolution.googleapis.com/$discovery/rest?version=v1",
"icons": {
"x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png",
Expand All @@ -607,7 +592,7 @@
"name": "baremetalsolution",
"version": "v2",
"title": "Bare Metal Solution API",
"description": "Provides ways to manage Bare Metal Solution hardware installed in a regional extension located near a Google Cloud data center.",
"description": "Bare Metal Solution provides hardware to run specialized workloads with low latency on Google Cloud.",
"discoveryRestUrl": "https://baremetalsolution.googleapis.com/$discovery/rest?version=v2",
"icons": {
"x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png",
Expand Down Expand Up @@ -3657,7 +3642,7 @@
"name": "mybusinessbusinesscalls",
"version": "v1",
"title": "My Business Business Calls API",
"description": "The My Business Business Calls API manages business calls information of a location on Google.",
"description": "The My Business Business Calls API manages business calls information of a location on Google and collect insights like the number of missed calls to their location. Additional information about Business calls can be found at https://support.google.com/business/answer/9688285?p=call_history. If the Google Business Profile links to a Google Ads account and call history is turned on, calls that last longer than a specific time, and that can be attributed to an ad interaction, will show in the linked Google Ads account under the \"Calls from Ads\" conversion. If smart bidding and call conversions are used in the optimization strategy, there could be a change in ad spend. Learn more about smart bidding <https://support.google.com/google-ads/answer/7065882>. To view and perform actions on a location's calls, you need to be a `OWNER`, `CO_OWNER` or `MANAGER` of the location.",
"discoveryRestUrl": "https://mybusinessbusinesscalls.googleapis.com/$discovery/rest?version=v1",
"icons": {
"x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png",
Expand Down