From 8ba6963062f42f9745db3086e510427690e40964 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Sat, 29 Jul 2023 00:22:12 -0700 Subject: [PATCH] feat(all): auto-regenerate discovery clients (#2090) --- batch/v1/batch-api.json | 6 +- batch/v1/batch-gen.go | 13 +- beyondcorp/v1alpha/beyondcorp-api.json | 41 +- beyondcorp/v1alpha/beyondcorp-gen.go | 187 +++ chromepolicy/v1/chromepolicy-api.json | 6 +- chromepolicy/v1/chromepolicy-gen.go | 6 +- container/v1/container-api.json | 107 +- dataform/v1beta1/dataform-api.json | 306 ++++- dataform/v1beta1/dataform-gen.go | 1188 +++++++++++++++-- datastream/v1/datastream-api.json | 99 +- datastream/v1/datastream-gen.go | 285 ++++ .../v1/firebaseappdistribution-api.json | 47 +- .../v1/firebaseappdistribution-gen.go | 184 --- gkehub/v1/gkehub-api.json | 8 +- gkehub/v1/gkehub-gen.go | 8 +- gkehub/v1alpha/gkehub-api.json | 8 +- gkehub/v1alpha/gkehub-gen.go | 8 +- gkehub/v1beta/gkehub-api.json | 8 +- gkehub/v1beta/gkehub-gen.go | 8 +- .../v1/networkconnectivity-api.json | 42 +- .../v1/networkconnectivity-gen.go | 71 +- notebooks/v1/notebooks-api.json | 12 +- notebooks/v1/notebooks-gen.go | 8 + notebooks/v2/notebooks-api.json | 7 +- notebooks/v2/notebooks-gen.go | 4 + .../v1/workflowexecutions-api.json | 8 +- .../v1/workflowexecutions-gen.go | 2 + .../v1beta/workflowexecutions-api.json | 10 +- .../v1beta/workflowexecutions-gen.go | 3 + workloadmanager/v1/workloadmanager-api.json | 22 +- workloadmanager/v1/workloadmanager-gen.go | 17 +- 31 files changed, 2327 insertions(+), 402 deletions(-) diff --git a/batch/v1/batch-api.json b/batch/v1/batch-api.json index b3766ebf63d..09ff67382d0 100644 --- a/batch/v1/batch-api.json +++ b/batch/v1/batch-api.json @@ -561,7 +561,7 @@ } } }, - "revision": "20230705", + "revision": "20230721", "rootUrl": "https://batch.googleapis.com/", "schemas": { "Accelerator": { @@ -1333,7 +1333,7 @@ "description": "The attribute requirements of messages to be sent to this Pub/Sub topic. Without this field, no message will be sent." }, "pubsubTopic": { - "description": "The Pub/Sub topic where notifications like the job state changes will be published. This topic exist in the same project as the job and billings will be charged to this project. If not specified, no Pub/Sub messages will be sent. Topic format: `projects/{project}/topics/{topic}`.", + "description": "The Pub/Sub topic where notifications like the job state changes will be published. The topic must exist in the same project as the job and billings will be charged to this project. If not specified, no Pub/Sub messages will be sent. Topic format: `projects/{project}/topics/{topic}`.", "type": "string" } }, @@ -1585,7 +1585,7 @@ "type": "object" }, "Message": { - "description": "Message details. Describe the attribute that a message should have. Without specified message attributes, no message will be sent by default.", + "description": "Message details. Describe the conditions under which messages will be sent. If no attribute is defined, no message will be sent by default. One message should specify either the job or the task level attributes, but not both. For example, job level: JOB_STATE_CHANGED and/or a specified new_job_state; task level: TASK_STATE_CHANGED and/or a specified new_task_state.", "id": "Message", "properties": { "newJobState": { diff --git a/batch/v1/batch-gen.go b/batch/v1/batch-gen.go index a99116d4357..99e39a60243 100644 --- a/batch/v1/batch-gen.go +++ b/batch/v1/batch-gen.go @@ -1394,8 +1394,8 @@ type JobNotification struct { Message *Message `json:"message,omitempty"` // PubsubTopic: The Pub/Sub topic where notifications like the job state - // changes will be published. This topic exist in the same project as - // the job and billings will be charged to this project. If not + // changes will be published. The topic must exist in the same project + // as the job and billings will be charged to this project. If not // specified, no Pub/Sub messages will be sent. Topic format: // `projects/{project}/topics/{topic}`. PubsubTopic string `json:"pubsubTopic,omitempty"` @@ -1829,9 +1829,12 @@ func (s *LogsPolicy) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// Message: Message details. Describe the attribute that a message -// should have. Without specified message attributes, no message will be -// sent by default. +// Message: Message details. Describe the conditions under which +// messages will be sent. If no attribute is defined, no message will be +// sent by default. One message should specify either the job or the +// task level attributes, but not both. For example, job level: +// JOB_STATE_CHANGED and/or a specified new_job_state; task level: +// TASK_STATE_CHANGED and/or a specified new_task_state. type Message struct { // NewJobState: The new job state. // diff --git a/beyondcorp/v1alpha/beyondcorp-api.json b/beyondcorp/v1alpha/beyondcorp-api.json index 9f9a34c8ca2..a92f98118bc 100644 --- a/beyondcorp/v1alpha/beyondcorp-api.json +++ b/beyondcorp/v1alpha/beyondcorp-api.json @@ -475,6 +475,31 @@ "https://www.googleapis.com/auth/cloud-platform" ] }, + "list": { + "description": "Lists BrowserDlpRules for PartnerTenant in a given organization.", + "flatPath": "v1alpha/organizations/{organizationsId}/locations/global/partnerTenants/{partnerTenantsId}/browserDlpRules", + "httpMethod": "GET", + "id": "beyondcorp.organizations.locations.global.partnerTenants.browserDlpRules.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "Required. The parent partnerTenant to which the BrowserDlpRules belong. Format: `organizations/{organization_id}/locations/global/partnerTenants/{partner_tenant_id}`", + "location": "path", + "pattern": "^organizations/[^/]+/locations/global/partnerTenants/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1alpha/{+parent}/browserDlpRules", + "response": { + "$ref": "GoogleCloudBeyondcorpPartnerservicesV1alphaListBrowserDlpRulesResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, "patch": { "description": "Update an existing BrowserDlpRule in a given organization and PartnerTenant.", "flatPath": "v1alpha/organizations/{organizationsId}/locations/global/partnerTenants/{partnerTenantsId}/browserDlpRules/{browserDlpRulesId}", @@ -3744,7 +3769,7 @@ } } }, - "revision": "20230616", + "revision": "20230717", "rootUrl": "https://beyondcorp.googleapis.com/", "schemas": { "AllocatedConnection": { @@ -5169,6 +5194,20 @@ }, "type": "object" }, + "GoogleCloudBeyondcorpPartnerservicesV1alphaListBrowserDlpRulesResponse": { + "description": "Message for response to listing BrowserDlpRules.", + "id": "GoogleCloudBeyondcorpPartnerservicesV1alphaListBrowserDlpRulesResponse", + "properties": { + "browserDlpRules": { + "description": "The list of ProxyConfig objects.", + "items": { + "$ref": "GoogleCloudBeyondcorpPartnerservicesV1alphaBrowserDlpRule" + }, + "type": "array" + } + }, + "type": "object" + }, "GoogleCloudBeyondcorpPartnerservicesV1alphaListPartnerTenantsResponse": { "description": "Message for response to listing PartnerTenants.", "id": "GoogleCloudBeyondcorpPartnerservicesV1alphaListPartnerTenantsResponse", diff --git a/beyondcorp/v1alpha/beyondcorp-gen.go b/beyondcorp/v1alpha/beyondcorp-gen.go index e8be08da176..d75fa797a5d 100644 --- a/beyondcorp/v1alpha/beyondcorp-gen.go +++ b/beyondcorp/v1alpha/beyondcorp-gen.go @@ -2436,6 +2436,40 @@ func (s *GoogleCloudBeyondcorpPartnerservicesV1alphaGroup) MarshalJSON() ([]byte return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudBeyondcorpPartnerservicesV1alphaListBrowserDlpRulesResponse +// : Message for response to listing BrowserDlpRules. +type GoogleCloudBeyondcorpPartnerservicesV1alphaListBrowserDlpRulesResponse struct { + // BrowserDlpRules: The list of ProxyConfig objects. + BrowserDlpRules []*GoogleCloudBeyondcorpPartnerservicesV1alphaBrowserDlpRule `json:"browserDlpRules,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "BrowserDlpRules") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "BrowserDlpRules") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudBeyondcorpPartnerservicesV1alphaListBrowserDlpRulesResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudBeyondcorpPartnerservicesV1alphaListBrowserDlpRulesResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudBeyondcorpPartnerservicesV1alphaListPartnerTenantsResponse: // // Message for response to listing PartnerTenants. @@ -6550,6 +6584,159 @@ func (c *OrganizationsLocationsGlobalPartnerTenantsBrowserDlpRulesGetIamPolicyCa } +// method id "beyondcorp.organizations.locations.global.partnerTenants.browserDlpRules.list": + +type OrganizationsLocationsGlobalPartnerTenantsBrowserDlpRulesListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists BrowserDlpRules for PartnerTenant in a given +// organization. +// +// - parent: The parent partnerTenant to which the BrowserDlpRules +// belong. Format: +// `organizations/{organization_id}/locations/global/partnerTenants/{pa +// rtner_tenant_id}`. +func (r *OrganizationsLocationsGlobalPartnerTenantsBrowserDlpRulesService) List(parent string) *OrganizationsLocationsGlobalPartnerTenantsBrowserDlpRulesListCall { + c := &OrganizationsLocationsGlobalPartnerTenantsBrowserDlpRulesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *OrganizationsLocationsGlobalPartnerTenantsBrowserDlpRulesListCall) Fields(s ...googleapi.Field) *OrganizationsLocationsGlobalPartnerTenantsBrowserDlpRulesListCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *OrganizationsLocationsGlobalPartnerTenantsBrowserDlpRulesListCall) IfNoneMatch(entityTag string) *OrganizationsLocationsGlobalPartnerTenantsBrowserDlpRulesListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *OrganizationsLocationsGlobalPartnerTenantsBrowserDlpRulesListCall) Context(ctx context.Context) *OrganizationsLocationsGlobalPartnerTenantsBrowserDlpRulesListCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *OrganizationsLocationsGlobalPartnerTenantsBrowserDlpRulesListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *OrganizationsLocationsGlobalPartnerTenantsBrowserDlpRulesListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/browserDlpRules") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "beyondcorp.organizations.locations.global.partnerTenants.browserDlpRules.list" call. +// Exactly one of +// *GoogleCloudBeyondcorpPartnerservicesV1alphaListBrowserDlpRulesRespons +// e or error will be non-nil. Any non-2xx status code is an error. +// Response headers are in either +// *GoogleCloudBeyondcorpPartnerservicesV1alphaListBrowserDlpRulesRespons +// e.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *OrganizationsLocationsGlobalPartnerTenantsBrowserDlpRulesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudBeyondcorpPartnerservicesV1alphaListBrowserDlpRulesResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleCloudBeyondcorpPartnerservicesV1alphaListBrowserDlpRulesResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Lists BrowserDlpRules for PartnerTenant in a given organization.", + // "flatPath": "v1alpha/organizations/{organizationsId}/locations/global/partnerTenants/{partnerTenantsId}/browserDlpRules", + // "httpMethod": "GET", + // "id": "beyondcorp.organizations.locations.global.partnerTenants.browserDlpRules.list", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "parent": { + // "description": "Required. The parent partnerTenant to which the BrowserDlpRules belong. Format: `organizations/{organization_id}/locations/global/partnerTenants/{partner_tenant_id}`", + // "location": "path", + // "pattern": "^organizations/[^/]+/locations/global/partnerTenants/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1alpha/{+parent}/browserDlpRules", + // "response": { + // "$ref": "GoogleCloudBeyondcorpPartnerservicesV1alphaListBrowserDlpRulesResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + // method id "beyondcorp.organizations.locations.global.partnerTenants.browserDlpRules.patch": type OrganizationsLocationsGlobalPartnerTenantsBrowserDlpRulesPatchCall struct { diff --git a/chromepolicy/v1/chromepolicy-api.json b/chromepolicy/v1/chromepolicy-api.json index dcde960c037..9c6a67c82c8 100644 --- a/chromepolicy/v1/chromepolicy-api.json +++ b/chromepolicy/v1/chromepolicy-api.json @@ -557,7 +557,7 @@ } } }, - "revision": "20230704", + "revision": "20230727", "rootUrl": "https://chromepolicy.googleapis.com/", "schemas": { "ChromeCrosDpanelAutosettingsProtoPolicyApiLifecycle": { @@ -1057,7 +1057,7 @@ "description": "Schema definition using proto descriptor." }, "fieldDescriptions": { - "description": "Output only. Detailed description of each field that is part of the schema.", + "description": "Output only. Detailed description of each field that is part of the schema. Fields are suggested to be displayed by the ordering in this list, not by field number.", "items": { "$ref": "GoogleChromePolicyVersionsV1PolicySchemaFieldDescription" }, @@ -1188,7 +1188,7 @@ "type": "string" }, "nestedFieldDescriptions": { - "description": "Output only. Provides the description of the fields nested in this field, if the field is a message type that defines multiple fields.", + "description": "Output only. Provides the description of the fields nested in this field, if the field is a message type that defines multiple fields. Fields are suggested to be displayed by the ordering in this list, not by field number.", "items": { "$ref": "GoogleChromePolicyVersionsV1PolicySchemaFieldDescription" }, diff --git a/chromepolicy/v1/chromepolicy-gen.go b/chromepolicy/v1/chromepolicy-gen.go index 5702c365f53..0073b5aca4f 100644 --- a/chromepolicy/v1/chromepolicy-gen.go +++ b/chromepolicy/v1/chromepolicy-gen.go @@ -1162,7 +1162,8 @@ type GoogleChromePolicyVersionsV1PolicySchema struct { Definition *Proto2FileDescriptorProto `json:"definition,omitempty"` // FieldDescriptions: Output only. Detailed description of each field - // that is part of the schema. + // that is part of the schema. Fields are suggested to be displayed by + // the ordering in this list, not by field number. FieldDescriptions []*GoogleChromePolicyVersionsV1PolicySchemaFieldDescription `json:"fieldDescriptions,omitempty"` // Name: Format: @@ -1301,7 +1302,8 @@ type GoogleChromePolicyVersionsV1PolicySchemaFieldDescription struct { // NestedFieldDescriptions: Output only. Provides the description of the // fields nested in this field, if the field is a message type that - // defines multiple fields. + // defines multiple fields. Fields are suggested to be displayed by the + // ordering in this list, not by field number. NestedFieldDescriptions []*GoogleChromePolicyVersionsV1PolicySchemaFieldDescription `json:"nestedFieldDescriptions,omitempty"` // RequiredItems: Output only. Provides a list of fields that are diff --git a/container/v1/container-api.json b/container/v1/container-api.json index 94351fb29f9..9fcc68e0e00 100644 --- a/container/v1/container-api.json +++ b/container/v1/container-api.json @@ -2540,7 +2540,7 @@ } } }, - "revision": "20230629", + "revision": "20230719", "rootUrl": "https://container.googleapis.com/", "schemas": { "AcceleratorConfig": { @@ -2669,6 +2669,7 @@ }, "kubernetesDashboard": { "$ref": "KubernetesDashboard", + "deprecated": true, "description": "Configuration for the Kubernetes Dashboard. This addon is deprecated, and will be disabled in 1.15. It is recommended to use the Cloud Console to manage and monitor your Kubernetes clusters, workloads and applications. For more information, see: https://cloud.google.com/kubernetes-engine/docs/concepts/dashboards" }, "networkPolicyConfig": { @@ -2839,6 +2840,7 @@ "description": "Specifies the node management options for NAP created node-pools." }, "minCpuPlatform": { + "deprecated": true, "description": "Deprecated. Minimum CPU platform to be used for NAP created node pools. The instance may be scheduled on the specified or newer CPU platform. Applicable values are the friendly names of CPU platforms, such as minCpuPlatform: Intel Haswell or minCpuPlatform: Intel Sandy Bridge. For more information, read [how to specify min CPU platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform). This field is deprecated, min_cpu_platform should be specified using `cloud.google.com/requested-min-cpu-platform` label selector on the pod. To unset the min cpu platform field pass \"automatic\" as field value.", "type": "string" }, @@ -2896,6 +2898,7 @@ "id": "BinaryAuthorization", "properties": { "enabled": { + "deprecated": true, "description": "This field is deprecated. Leave this unset and instead configure BinaryAuthorization using evaluation_mode. If evaluation_mode is set to anything other than EVALUATION_MODE_UNSPECIFIED, this field is ignored.", "type": "boolean" }, @@ -2994,14 +2997,17 @@ "type": "string" }, "operationId": { + "deprecated": true, "description": "Deprecated. The server-assigned `name` of the operation. This field has been deprecated and replaced by the name field.", "type": "string" }, "projectId": { + "deprecated": true, "description": "Deprecated. The Google Developers Console [project ID or project number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). This field has been deprecated and replaced by the name field.", "type": "string" }, "zone": { + "deprecated": true, "description": "Deprecated. The name of the Google Compute Engine [zone](https://cloud.google.com/compute/docs/zones#available) in which the operation resides. This field has been deprecated and replaced by the name field.", "type": "string" } @@ -3129,11 +3135,13 @@ "type": "string" }, "currentNodeCount": { + "deprecated": true, "description": "[Output only] The number of nodes currently in the cluster. Deprecated. Call Kubernetes API directly to retrieve node information.", "format": "int32", "type": "integer" }, "currentNodeVersion": { + "deprecated": true, "description": "[Output only] Deprecated, use [NodePools.version](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools) instead. The current version of the node software components. If they are currently at multiple versions because they're in the process of being upgraded, this reflects the minimum version of all nodes.", "type": "string" }, @@ -3191,11 +3199,13 @@ "type": "string" }, "initialNodeCount": { + "deprecated": true, "description": "The number of nodes to create in this cluster. You must ensure that your Compute Engine [resource quota](https://cloud.google.com/compute/quotas) is sufficient for this number of instances. You must also have available firewall and routes quota. For requests, this field should only be used in lieu of a \"node_pool\" object, since this configuration (along with the \"node_config\") will be used to create a \"NodePool\" object with an auto-generated name. Do not use this and a node_pool at the same time. This field is deprecated, use node_pool.initial_node_count instead.", "format": "int32", "type": "integer" }, "instanceGroupUrls": { + "deprecated": true, "description": "Deprecated. Use node_pools.instance_group_urls.", "items": { "type": "string" @@ -3275,6 +3285,7 @@ }, "nodeConfig": { "$ref": "NodeConfig", + "deprecated": true, "description": "Parameters used in creating the cluster's nodes. For requests, this field should only be used in lieu of a \"node_pool\" object, since this configuration (along with the \"initial_node_count\") will be used to create a \"NodePool\" object with an auto-generated name. Do not use this and a node_pool at the same time. For responses, this field will be populated with the node configuration of the first node pool. (For configuration of each node pool, see `node_pool.config`) If unspecified, the defaults are used. This field is deprecated, use node_pool.config instead." }, "nodeIpv4CidrSize": { @@ -3359,6 +3370,7 @@ "type": "string" }, "statusMessage": { + "deprecated": true, "description": "[Output only] Deprecated. Use conditions instead. Additional information about the current status of this cluster, if available.", "type": "string" }, @@ -3379,6 +3391,7 @@ "description": "Configuration for the use of Kubernetes Service Accounts in GCP IAM policies." }, "zone": { + "deprecated": true, "description": "[Output only] The name of the Google Compute Engine [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster resides. This field is deprecated, use location instead.", "type": "string" } @@ -3690,6 +3703,7 @@ "id": "CompleteIPRotationRequest", "properties": { "clusterId": { + "deprecated": true, "description": "Deprecated. The name of the cluster. This field has been deprecated and replaced by the name field.", "type": "string" }, @@ -3698,10 +3712,12 @@ "type": "string" }, "projectId": { + "deprecated": true, "description": "Deprecated. The Google Developers Console [project ID or project number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). This field has been deprecated and replaced by the name field.", "type": "string" }, "zone": { + "deprecated": true, "description": "Deprecated. The name of the Google Compute Engine [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster resides. This field has been deprecated and replaced by the name field.", "type": "string" } @@ -3771,10 +3787,12 @@ "type": "string" }, "projectId": { + "deprecated": true, "description": "Deprecated. The Google Developers Console [project ID or project number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). This field has been deprecated and replaced by the parent field.", "type": "string" }, "zone": { + "deprecated": true, "description": "Deprecated. The name of the Google Compute Engine [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster resides. This field has been deprecated and replaced by the parent field.", "type": "string" } @@ -3786,6 +3804,7 @@ "id": "CreateNodePoolRequest", "properties": { "clusterId": { + "deprecated": true, "description": "Deprecated. The name of the cluster. This field has been deprecated and replaced by the parent field.", "type": "string" }, @@ -3798,10 +3817,12 @@ "type": "string" }, "projectId": { + "deprecated": true, "description": "Deprecated. The Google Developers Console [project ID or project number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). This field has been deprecated and replaced by the parent field.", "type": "string" }, "zone": { + "deprecated": true, "description": "Deprecated. The name of the Google Compute Engine [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster resides. This field has been deprecated and replaced by the parent field.", "type": "string" } @@ -4245,6 +4266,7 @@ "readOnly": true }, "clusterIpv4Cidr": { + "deprecated": true, "description": "This field is deprecated, use cluster_ipv4_cidr_block.", "type": "string" }, @@ -4281,6 +4303,7 @@ "type": "string" }, "nodeIpv4Cidr": { + "deprecated": true, "description": "This field is deprecated, use node_ipv4_cidr_block.", "type": "string" }, @@ -4293,6 +4316,7 @@ "description": "[PRIVATE FIELD] Pod CIDR size overprovisioning config for the cluster. Pod CIDR size per node depends on max_pods_per_node. By default, the value of max_pods_per_node is doubled and then rounded off to next power of 2 to get the size of pod CIDR block per node. Example: max_pods_per_node of 30 would result in 64 IPs (/26). This config can disable the doubling of IPs (we still round off to next power of 2) Example: max_pods_per_node of 30 will result in 32 IPs (/27) when overprovisioning is disabled." }, "servicesIpv4Cidr": { + "deprecated": true, "description": "This field is deprecated, use services_ipv4_cidr_block.", "type": "string" }, @@ -4714,10 +4738,12 @@ "type": "string" }, "password": { + "deprecated": true, "description": "The password to use for HTTP basic authentication to the master endpoint. Because the master endpoint is open to the Internet, you should create a strong password. If a password is provided for cluster creation, username must be non-empty. Warning: basic authentication is deprecated, and will be removed in GKE control plane versions 1.19 and newer. For a list of recommended authentication methods, see: https://cloud.google.com/kubernetes-engine/docs/how-to/api-server-authentication", "type": "string" }, "username": { + "deprecated": true, "description": "The username to use for HTTP basic authentication to the master endpoint. For clusters v1.6.0 and later, basic authentication can be disabled by leaving username unspecified (or setting it to the empty string). Warning: basic authentication is deprecated, and will be removed in GKE control plane versions 1.19 and newer. For a list of recommended authentication methods, see: https://cloud.google.com/kubernetes-engine/docs/how-to/api-server-authentication", "type": "string" } @@ -5412,6 +5438,7 @@ "type": "string" }, "statusMessage": { + "deprecated": true, "description": "[Output only] Deprecated. Use conditions instead. Additional information about the current status of this node pool instance, if available.", "type": "string" }, @@ -5574,6 +5601,7 @@ "id": "Operation", "properties": { "clusterConditions": { + "deprecated": true, "description": "Which conditions caused the current cluster state. Deprecated. Use field error instead.", "items": { "$ref": "StatusCondition" @@ -5601,6 +5629,7 @@ "type": "string" }, "nodepoolConditions": { + "deprecated": true, "description": "Which conditions caused the current node pool state. Deprecated. Use field error instead.", "items": { "$ref": "StatusCondition" @@ -5629,6 +5658,26 @@ "SET_MAINTENANCE_POLICY", "RESIZE_CLUSTER" ], + "enumDeprecated": [ + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + true, + true, + true, + false, + true, + true, + false + ], "enumDescriptions": [ "Not set.", "The cluster is being created. The cluster should be assumed to be unusable until the operation finishes. In the event of the operation failing, the cluster will enter the ERROR state and eventually be deleted.", @@ -5683,6 +5732,7 @@ "type": "string" }, "statusMessage": { + "deprecated": true, "description": "Output only. If an error has occurred, a textual description of the error. Deprecated. Use the field error instead.", "readOnly": true, "type": "string" @@ -5692,6 +5742,7 @@ "type": "string" }, "zone": { + "deprecated": true, "description": "The name of the Google Compute Engine [zone](https://cloud.google.com/compute/docs/zones#available) in which the operation is taking place. This field is deprecated, use location instead.", "type": "string" } @@ -6027,6 +6078,7 @@ "id": "RollbackNodePoolUpgradeRequest", "properties": { "clusterId": { + "deprecated": true, "description": "Deprecated. The name of the cluster to rollback. This field has been deprecated and replaced by the name field.", "type": "string" }, @@ -6035,10 +6087,12 @@ "type": "string" }, "nodePoolId": { + "deprecated": true, "description": "Deprecated. The name of the node pool to rollback. This field has been deprecated and replaced by the name field.", "type": "string" }, "projectId": { + "deprecated": true, "description": "Deprecated. The Google Developers Console [project ID or project number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). This field has been deprecated and replaced by the name field.", "type": "string" }, @@ -6047,6 +6101,7 @@ "type": "boolean" }, "zone": { + "deprecated": true, "description": "Deprecated. The name of the Google Compute Engine [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster resides. This field has been deprecated and replaced by the name field.", "type": "string" } @@ -6226,6 +6281,7 @@ "description": "Required. The desired configurations for the various addons available to run in the cluster." }, "clusterId": { + "deprecated": true, "description": "Deprecated. The name of the cluster to upgrade. This field has been deprecated and replaced by the name field.", "type": "string" }, @@ -6234,10 +6290,12 @@ "type": "string" }, "projectId": { + "deprecated": true, "description": "Deprecated. The Google Developers Console [project ID or project number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). This field has been deprecated and replaced by the name field.", "type": "string" }, "zone": { + "deprecated": true, "description": "Deprecated. The name of the Google Compute Engine [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster resides. This field has been deprecated and replaced by the name field.", "type": "string" } @@ -6249,6 +6307,7 @@ "id": "SetLabelsRequest", "properties": { "clusterId": { + "deprecated": true, "description": "Deprecated. The name of the cluster. This field has been deprecated and replaced by the name field.", "type": "string" }, @@ -6261,6 +6320,7 @@ "type": "string" }, "projectId": { + "deprecated": true, "description": "Deprecated. The Google Developers Console [project ID or project number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). This field has been deprecated and replaced by the name field.", "type": "string" }, @@ -6272,6 +6332,7 @@ "type": "object" }, "zone": { + "deprecated": true, "description": "Deprecated. The name of the Google Compute Engine [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster resides. This field has been deprecated and replaced by the name field.", "type": "string" } @@ -6283,6 +6344,7 @@ "id": "SetLegacyAbacRequest", "properties": { "clusterId": { + "deprecated": true, "description": "Deprecated. The name of the cluster to update. This field has been deprecated and replaced by the name field.", "type": "string" }, @@ -6295,10 +6357,12 @@ "type": "string" }, "projectId": { + "deprecated": true, "description": "Deprecated. The Google Developers Console [project ID or project number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). This field has been deprecated and replaced by the name field.", "type": "string" }, "zone": { + "deprecated": true, "description": "Deprecated. The name of the Google Compute Engine [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster resides. This field has been deprecated and replaced by the name field.", "type": "string" } @@ -6310,6 +6374,7 @@ "id": "SetLocationsRequest", "properties": { "clusterId": { + "deprecated": true, "description": "Deprecated. The name of the cluster to upgrade. This field has been deprecated and replaced by the name field.", "type": "string" }, @@ -6325,10 +6390,12 @@ "type": "string" }, "projectId": { + "deprecated": true, "description": "Deprecated. The Google Developers Console [project ID or project number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). This field has been deprecated and replaced by the name field.", "type": "string" }, "zone": { + "deprecated": true, "description": "Deprecated. The name of the Google Compute Engine [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster resides. This field has been deprecated and replaced by the name field.", "type": "string" } @@ -6340,6 +6407,7 @@ "id": "SetLoggingServiceRequest", "properties": { "clusterId": { + "deprecated": true, "description": "Deprecated. The name of the cluster to upgrade. This field has been deprecated and replaced by the name field.", "type": "string" }, @@ -6352,10 +6420,12 @@ "type": "string" }, "projectId": { + "deprecated": true, "description": "Deprecated. The Google Developers Console [project ID or project number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). This field has been deprecated and replaced by the name field.", "type": "string" }, "zone": { + "deprecated": true, "description": "Deprecated. The name of the Google Compute Engine [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster resides. This field has been deprecated and replaced by the name field.", "type": "string" } @@ -6410,6 +6480,7 @@ "type": "string" }, "clusterId": { + "deprecated": true, "description": "Deprecated. The name of the cluster to upgrade. This field has been deprecated and replaced by the name field.", "type": "string" }, @@ -6418,6 +6489,7 @@ "type": "string" }, "projectId": { + "deprecated": true, "description": "Deprecated. The Google Developers Console [project ID or project number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). This field has been deprecated and replaced by the name field.", "type": "string" }, @@ -6426,6 +6498,7 @@ "description": "Required. A description of the update." }, "zone": { + "deprecated": true, "description": "Deprecated. The name of the Google Compute Engine [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster resides. This field has been deprecated and replaced by the name field.", "type": "string" } @@ -6437,6 +6510,7 @@ "id": "SetMonitoringServiceRequest", "properties": { "clusterId": { + "deprecated": true, "description": "Deprecated. The name of the cluster to upgrade. This field has been deprecated and replaced by the name field.", "type": "string" }, @@ -6449,10 +6523,12 @@ "type": "string" }, "projectId": { + "deprecated": true, "description": "Deprecated. The Google Developers Console [project ID or project number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). This field has been deprecated and replaced by the name field.", "type": "string" }, "zone": { + "deprecated": true, "description": "Deprecated. The name of the Google Compute Engine [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster resides. This field has been deprecated and replaced by the name field.", "type": "string" } @@ -6464,6 +6540,7 @@ "id": "SetNetworkPolicyRequest", "properties": { "clusterId": { + "deprecated": true, "description": "Deprecated. The name of the cluster. This field has been deprecated and replaced by the name field.", "type": "string" }, @@ -6476,10 +6553,12 @@ "description": "Required. Configuration options for the NetworkPolicy feature." }, "projectId": { + "deprecated": true, "description": "Deprecated. The Google Developers Console [project ID or project number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). This field has been deprecated and replaced by the name field.", "type": "string" }, "zone": { + "deprecated": true, "description": "Deprecated. The name of the Google Compute Engine [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster resides. This field has been deprecated and replaced by the name field.", "type": "string" } @@ -6495,6 +6574,7 @@ "description": "Required. Autoscaling configuration for the node pool." }, "clusterId": { + "deprecated": true, "description": "Deprecated. The name of the cluster to upgrade. This field has been deprecated and replaced by the name field.", "type": "string" }, @@ -6503,14 +6583,17 @@ "type": "string" }, "nodePoolId": { + "deprecated": true, "description": "Deprecated. The name of the node pool to upgrade. This field has been deprecated and replaced by the name field.", "type": "string" }, "projectId": { + "deprecated": true, "description": "Deprecated. The Google Developers Console [project ID or project number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). This field has been deprecated and replaced by the name field.", "type": "string" }, "zone": { + "deprecated": true, "description": "Deprecated. The name of the Google Compute Engine [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster resides. This field has been deprecated and replaced by the name field.", "type": "string" } @@ -6522,6 +6605,7 @@ "id": "SetNodePoolManagementRequest", "properties": { "clusterId": { + "deprecated": true, "description": "Deprecated. The name of the cluster to update. This field has been deprecated and replaced by the name field.", "type": "string" }, @@ -6534,14 +6618,17 @@ "type": "string" }, "nodePoolId": { + "deprecated": true, "description": "Deprecated. The name of the node pool to update. This field has been deprecated and replaced by the name field.", "type": "string" }, "projectId": { + "deprecated": true, "description": "Deprecated. The Google Developers Console [project ID or project number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). This field has been deprecated and replaced by the name field.", "type": "string" }, "zone": { + "deprecated": true, "description": "Deprecated. The name of the Google Compute Engine [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster resides. This field has been deprecated and replaced by the name field.", "type": "string" } @@ -6553,6 +6640,7 @@ "id": "SetNodePoolSizeRequest", "properties": { "clusterId": { + "deprecated": true, "description": "Deprecated. The name of the cluster to update. This field has been deprecated and replaced by the name field.", "type": "string" }, @@ -6566,14 +6654,17 @@ "type": "integer" }, "nodePoolId": { + "deprecated": true, "description": "Deprecated. The name of the node pool to update. This field has been deprecated and replaced by the name field.", "type": "string" }, "projectId": { + "deprecated": true, "description": "Deprecated. The Google Developers Console [project ID or project number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). This field has been deprecated and replaced by the name field.", "type": "string" }, "zone": { + "deprecated": true, "description": "Deprecated. The name of the Google Compute Engine [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster resides. This field has been deprecated and replaced by the name field.", "type": "string" } @@ -6647,6 +6738,7 @@ "id": "StartIPRotationRequest", "properties": { "clusterId": { + "deprecated": true, "description": "Deprecated. The name of the cluster. This field has been deprecated and replaced by the name field.", "type": "string" }, @@ -6655,6 +6747,7 @@ "type": "string" }, "projectId": { + "deprecated": true, "description": "Deprecated. The Google Developers Console [project ID or project number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). This field has been deprecated and replaced by the name field.", "type": "string" }, @@ -6663,6 +6756,7 @@ "type": "boolean" }, "zone": { + "deprecated": true, "description": "Deprecated. The name of the Google Compute Engine [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster resides. This field has been deprecated and replaced by the name field.", "type": "string" } @@ -6743,6 +6837,7 @@ "type": "string" }, "code": { + "deprecated": true, "description": "Machine-friendly representation of the condition Deprecated. Use canonical_code instead.", "enum": [ "UNKNOWN", @@ -6797,6 +6892,7 @@ "id": "UpdateClusterRequest", "properties": { "clusterId": { + "deprecated": true, "description": "Deprecated. The name of the cluster to upgrade. This field has been deprecated and replaced by the name field.", "type": "string" }, @@ -6805,6 +6901,7 @@ "type": "string" }, "projectId": { + "deprecated": true, "description": "Deprecated. The Google Developers Console [project ID or project number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). This field has been deprecated and replaced by the name field.", "type": "string" }, @@ -6813,6 +6910,7 @@ "description": "Required. A description of the update." }, "zone": { + "deprecated": true, "description": "Deprecated. The name of the Google Compute Engine [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster resides. This field has been deprecated and replaced by the name field.", "type": "string" } @@ -6835,6 +6933,7 @@ "id": "UpdateMasterRequest", "properties": { "clusterId": { + "deprecated": true, "description": "Deprecated. The name of the cluster to upgrade. This field has been deprecated and replaced by the name field.", "type": "string" }, @@ -6847,10 +6946,12 @@ "type": "string" }, "projectId": { + "deprecated": true, "description": "Deprecated. The Google Developers Console [project ID or project number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). This field has been deprecated and replaced by the name field.", "type": "string" }, "zone": { + "deprecated": true, "description": "Deprecated. The name of the Google Compute Engine [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster resides. This field has been deprecated and replaced by the name field.", "type": "string" } @@ -6862,6 +6963,7 @@ "id": "UpdateNodePoolRequest", "properties": { "clusterId": { + "deprecated": true, "description": "Deprecated. The name of the cluster to upgrade. This field has been deprecated and replaced by the name field.", "type": "string" }, @@ -6921,6 +7023,7 @@ "description": "Node network config." }, "nodePoolId": { + "deprecated": true, "description": "Deprecated. The name of the node pool to upgrade. This field has been deprecated and replaced by the name field.", "type": "string" }, @@ -6929,6 +7032,7 @@ "type": "string" }, "projectId": { + "deprecated": true, "description": "Deprecated. The Google Developers Console [project ID or project number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). This field has been deprecated and replaced by the name field.", "type": "string" }, @@ -6957,6 +7061,7 @@ "description": "The desired workload metadata config for the node pool." }, "zone": { + "deprecated": true, "description": "Deprecated. The name of the Google Compute Engine [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster resides. This field has been deprecated and replaced by the name field.", "type": "string" } diff --git a/dataform/v1beta1/dataform-api.json b/dataform/v1beta1/dataform-api.json index dbb3c47e3ea..e5e56312b26 100644 --- a/dataform/v1beta1/dataform-api.json +++ b/dataform/v1beta1/dataform-api.json @@ -178,6 +178,34 @@ "resources": { "repositories": { "methods": { + "commit": { + "description": "Applies a Git commit to a Repository. The Repository must not have a value for `git_remote_settings.url`.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}:commit", + "httpMethod": "POST", + "id": "dataform.projects.locations.repositories.commit", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The repository's name.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+name}:commit", + "request": { + "$ref": "CommitRepositoryChangesRequest" + }, + "response": { + "$ref": "Empty" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, "computeAccessTokenStatus": { "description": "Computes a Repository's Git access token status.", "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}:computeAccessTokenStatus", @@ -266,6 +294,42 @@ "https://www.googleapis.com/auth/cloud-platform" ] }, + "fetchHistory": { + "description": "Fetches a Repository's history of commits. The Repository must not have a value for `git_remote_settings.url`.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}:fetchHistory", + "httpMethod": "GET", + "id": "dataform.projects.locations.repositories.fetchHistory", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The repository's name.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+$", + "required": true, + "type": "string" + }, + "pageSize": { + "description": "Optional. Maximum number of commits to return. The server may return fewer items than requested. If unspecified, the server will pick an appropriate default.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "Optional. Page token received from a previous `FetchRepositoryHistory` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `FetchRepositoryHistory` must match the call that provided the page token.", + "location": "query", + "type": "string" + } + }, + "path": "v1beta1/{+name}:fetchHistory", + "response": { + "$ref": "FetchRepositoryHistoryResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, "fetchRemoteBranches": { "description": "Fetches a Repository's remote branches.", "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}:fetchRemoteBranches", @@ -427,6 +491,87 @@ "https://www.googleapis.com/auth/cloud-platform" ] }, + "queryDirectoryContents": { + "description": "Returns the contents of a given Repository directory. The Repository must not have a value for `git_remote_settings.url`.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}:queryDirectoryContents", + "httpMethod": "GET", + "id": "dataform.projects.locations.repositories.queryDirectoryContents", + "parameterOrder": [ + "name" + ], + "parameters": { + "commitSha": { + "description": "Optional. The Commit SHA for the commit to query from. If unset, the directory will be queried from HEAD.", + "location": "query", + "type": "string" + }, + "name": { + "description": "Required. The repository's name.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+$", + "required": true, + "type": "string" + }, + "pageSize": { + "description": "Optional. Maximum number of paths to return. The server may return fewer items than requested. If unspecified, the server will pick an appropriate default.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "Optional. Page token received from a previous `QueryRepositoryDirectoryContents` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `QueryRepositoryDirectoryContents` must match the call that provided the page token.", + "location": "query", + "type": "string" + }, + "path": { + "description": "Optional. The directory's full path including directory name, relative to root. If left unset, the root is used.", + "location": "query", + "type": "string" + } + }, + "path": "v1beta1/{+name}:queryDirectoryContents", + "response": { + "$ref": "QueryRepositoryDirectoryContentsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "readFile": { + "description": "Returns the contents of a file (inside a Repository). The Repository must not have a value for `git_remote_settings.url`.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}:readFile", + "httpMethod": "GET", + "id": "dataform.projects.locations.repositories.readFile", + "parameterOrder": [ + "name" + ], + "parameters": { + "commitSha": { + "description": "Optional. The commit SHA for the commit to read from. If unset, the file will be read from HEAD.", + "location": "query", + "type": "string" + }, + "name": { + "description": "Required. The repository's name.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+$", + "required": true, + "type": "string" + }, + "path": { + "description": "Required. Full file path to read including filename, from repository root.", + "location": "query", + "type": "string" + } + }, + "path": "v1beta1/{+name}:readFile", + "response": { + "$ref": "ReadRepositoryFileResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, "setIamPolicy": { "description": "Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.", "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}:setIamPolicy", @@ -1816,7 +1961,7 @@ } } }, - "revision": "20230707", + "revision": "20230722", "rootUrl": "https://dataform.googleapis.com/", "schemas": { "Assertion": { @@ -1978,6 +2123,67 @@ }, "type": "object" }, + "CommitLogEntry": { + "description": "Represents a single commit log.", + "id": "CommitLogEntry", + "properties": { + "author": { + "$ref": "CommitAuthor", + "description": "The commit author for this commit log entry." + }, + "commitMessage": { + "description": "The commit message for this commit log entry.", + "type": "string" + }, + "commitSha": { + "description": "The commit SHA for this commit log entry.", + "type": "string" + }, + "commitTime": { + "description": "Commit timestamp.", + "format": "google-datetime", + "type": "string" + } + }, + "type": "object" + }, + "CommitMetadata": { + "description": "Represents a Dataform Git commit.", + "id": "CommitMetadata", + "properties": { + "author": { + "$ref": "CommitAuthor", + "description": "Required. The commit's author." + }, + "commitMessage": { + "description": "Optional. The commit's message.", + "type": "string" + } + }, + "type": "object" + }, + "CommitRepositoryChangesRequest": { + "description": "`CommitRepositoryChanges` request message.", + "id": "CommitRepositoryChangesRequest", + "properties": { + "commitMetadata": { + "$ref": "CommitMetadata", + "description": "Required. The changes to commit to the repository." + }, + "fileOperations": { + "additionalProperties": { + "$ref": "FileOperation" + }, + "description": "A map to the path of the file to the operation. The path is the ull file path including filename, from repository root.", + "type": "object" + }, + "requiredHeadCommitSha": { + "description": "Optional. The commit SHA which must be the repository's current HEAD before applying this commit; otherwise this request will fail. If unset, no validation on the current HEAD commit SHA is performed.", + "type": "string" + } + }, + "type": "object" + }, "CommitWorkspaceChangesRequest": { "description": "`CommitWorkspaceChanges` request message.", "id": "CommitWorkspaceChangesRequest", @@ -2142,6 +2348,12 @@ }, "type": "object" }, + "DeleteFile": { + "description": "Represents the delete file operation.", + "id": "DeleteFile", + "properties": {}, + "type": "object" + }, "DirectoryEntry": { "description": "Represents a single entry in a directory.", "id": "DirectoryEntry", @@ -2242,12 +2454,45 @@ }, "type": "object" }, + "FetchRepositoryHistoryResponse": { + "description": "`FetchRepositoryHistory` response message.", + "id": "FetchRepositoryHistoryResponse", + "properties": { + "commits": { + "description": "A list of commit logs, ordered by 'git log' default order.", + "items": { + "$ref": "CommitLogEntry" + }, + "type": "array" + }, + "nextPageToken": { + "description": "A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.", + "type": "string" + } + }, + "type": "object" + }, + "FileOperation": { + "description": "Represents a single file operation to the repository.", + "id": "FileOperation", + "properties": { + "deleteFile": { + "$ref": "DeleteFile", + "description": "Represents the delete operation." + }, + "writeFile": { + "$ref": "WriteFile", + "description": "Represents the write operation." + } + }, + "type": "object" + }, "GitRemoteSettings": { "description": "Controls Git remote configuration for a repository.", "id": "GitRemoteSettings", "properties": { "authenticationTokenSecretVersion": { - "description": "Required. The name of the Secret Manager secret version to use as an authentication token for Git operations. Must be in the format `projects/*/secrets/*/versions/*`.", + "description": "Optional. The name of the Secret Manager secret version to use as an authentication token for Git operations. Must be in the format `projects/*/secrets/*/versions/*`.", "type": "string" }, "defaultBranch": { @@ -2816,6 +3061,24 @@ }, "type": "object" }, + "QueryRepositoryDirectoryContentsResponse": { + "description": "`QueryRepositoryDirectoryContents` response message.", + "id": "QueryRepositoryDirectoryContentsResponse", + "properties": { + "directoryEntries": { + "description": "List of entries in the directory.", + "items": { + "$ref": "DirectoryEntry" + }, + "type": "array" + }, + "nextPageToken": { + "description": "A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.", + "type": "string" + } + }, + "type": "object" + }, "QueryWorkflowInvocationActionsResponse": { "description": "`QueryWorkflowInvocationActions` response message.", "id": "QueryWorkflowInvocationActionsResponse", @@ -2846,6 +3109,18 @@ }, "type": "object" }, + "ReadRepositoryFileResponse": { + "description": "`ReadRepositoryFile` response message.", + "id": "ReadRepositoryFileResponse", + "properties": { + "contents": { + "description": "The file's contents.", + "format": "byte", + "type": "string" + } + }, + "type": "object" + }, "Relation": { "description": "Represents a database relation.", "id": "Relation", @@ -3033,10 +3308,21 @@ "description": "Represents a Dataform Git repository.", "id": "Repository", "properties": { + "displayName": { + "description": "Optional. The repository's user-friendly name.", + "type": "string" + }, "gitRemoteSettings": { "$ref": "GitRemoteSettings", "description": "Optional. If set, configures this repository to be linked to a Git remote." }, + "labels": { + "additionalProperties": { + "type": "string" + }, + "description": "Optional. Repository user labels.", + "type": "object" + }, "name": { "description": "Output only. The repository's name.", "readOnly": true, @@ -3050,6 +3336,10 @@ "description": "Optional. The service account to run workflow invocations under.", "type": "string" }, + "setAuthenticatedUserAdmin": { + "description": "Optional. Input only. If set to true, the authenticated user will be granted the roles/dataform.admin role on the created repository. To modify access to the created repository later apply setIamPolicy from https://cloud.google.com/dataform/reference/rest#rest-resource:-v1beta1.projects.locations.repositories", + "type": "boolean" + }, "workspaceCompilationOverrides": { "$ref": "WorkspaceCompilationOverrides", "description": "Optional. If set, fields of `workspace_compilation_overrides` override the default compilation settings that are specified in dataform.json when creating workspace-scoped compilation results. See documentation for `WorkspaceCompilationOverrides` for more information." @@ -3401,6 +3691,18 @@ }, "type": "object" }, + "WriteFile": { + "description": "Represents the write file operation (for files added or modified).", + "id": "WriteFile", + "properties": { + "contents": { + "description": "The file's contents.", + "format": "byte", + "type": "string" + } + }, + "type": "object" + }, "WriteFileRequest": { "description": "`WriteFile` request message.", "id": "WriteFileRequest", diff --git a/dataform/v1beta1/dataform-gen.go b/dataform/v1beta1/dataform-gen.go index a343cd30a60..9ca4c3d049c 100644 --- a/dataform/v1beta1/dataform-gen.go +++ b/dataform/v1beta1/dataform-gen.go @@ -519,6 +519,114 @@ func (s *CommitAuthor) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// CommitLogEntry: Represents a single commit log. +type CommitLogEntry struct { + // Author: The commit author for this commit log entry. + Author *CommitAuthor `json:"author,omitempty"` + + // CommitMessage: The commit message for this commit log entry. + CommitMessage string `json:"commitMessage,omitempty"` + + // CommitSha: The commit SHA for this commit log entry. + CommitSha string `json:"commitSha,omitempty"` + + // CommitTime: Commit timestamp. + CommitTime string `json:"commitTime,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Author") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Author") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *CommitLogEntry) MarshalJSON() ([]byte, error) { + type NoMethod CommitLogEntry + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// CommitMetadata: Represents a Dataform Git commit. +type CommitMetadata struct { + // Author: Required. The commit's author. + Author *CommitAuthor `json:"author,omitempty"` + + // CommitMessage: Optional. The commit's message. + CommitMessage string `json:"commitMessage,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Author") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Author") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *CommitMetadata) MarshalJSON() ([]byte, error) { + type NoMethod CommitMetadata + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// CommitRepositoryChangesRequest: `CommitRepositoryChanges` request +// message. +type CommitRepositoryChangesRequest struct { + // CommitMetadata: Required. The changes to commit to the repository. + CommitMetadata *CommitMetadata `json:"commitMetadata,omitempty"` + + // FileOperations: A map to the path of the file to the operation. The + // path is the ull file path including filename, from repository root. + FileOperations map[string]FileOperation `json:"fileOperations,omitempty"` + + // RequiredHeadCommitSha: Optional. The commit SHA which must be the + // repository's current HEAD before applying this commit; otherwise this + // request will fail. If unset, no validation on the current HEAD commit + // SHA is performed. + RequiredHeadCommitSha string `json:"requiredHeadCommitSha,omitempty"` + + // ForceSendFields is a list of field names (e.g. "CommitMetadata") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "CommitMetadata") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *CommitRepositoryChangesRequest) MarshalJSON() ([]byte, error) { + type NoMethod CommitRepositoryChangesRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // CommitWorkspaceChangesRequest: `CommitWorkspaceChanges` request // message. type CommitWorkspaceChangesRequest struct { @@ -789,6 +897,10 @@ func (s *Declaration) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// DeleteFile: Represents the delete file operation. +type DeleteFile struct { +} + // DirectoryEntry: Represents a single entry in a directory. type DirectoryEntry struct { // Directory: A child directory in the directory. @@ -1028,10 +1140,79 @@ func (s *FetchRemoteBranchesResponse) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// FetchRepositoryHistoryResponse: `FetchRepositoryHistory` response +// message. +type FetchRepositoryHistoryResponse struct { + // Commits: A list of commit logs, ordered by 'git log' default order. + Commits []*CommitLogEntry `json:"commits,omitempty"` + + // NextPageToken: A token, which can be sent as `page_token` to retrieve + // the next page. If this field is omitted, there are no subsequent + // pages. + NextPageToken string `json:"nextPageToken,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "Commits") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Commits") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *FetchRepositoryHistoryResponse) MarshalJSON() ([]byte, error) { + type NoMethod FetchRepositoryHistoryResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// FileOperation: Represents a single file operation to the repository. +type FileOperation struct { + // DeleteFile: Represents the delete operation. + DeleteFile *DeleteFile `json:"deleteFile,omitempty"` + + // WriteFile: Represents the write operation. + WriteFile *WriteFile `json:"writeFile,omitempty"` + + // ForceSendFields is a list of field names (e.g. "DeleteFile") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "DeleteFile") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *FileOperation) MarshalJSON() ([]byte, error) { + type NoMethod FileOperation + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GitRemoteSettings: Controls Git remote configuration for a // repository. type GitRemoteSettings struct { - // AuthenticationTokenSecretVersion: Required. The name of the Secret + // AuthenticationTokenSecretVersion: Optional. The name of the Secret // Manager secret version to use as an authentication token for Git // operations. Must be in the format `projects/*/secrets/*/versions/*`. AuthenticationTokenSecretVersion string `json:"authenticationTokenSecretVersion,omitempty"` @@ -2030,6 +2211,45 @@ func (s *QueryDirectoryContentsResponse) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// QueryRepositoryDirectoryContentsResponse: +// `QueryRepositoryDirectoryContents` response message. +type QueryRepositoryDirectoryContentsResponse struct { + // DirectoryEntries: List of entries in the directory. + DirectoryEntries []*DirectoryEntry `json:"directoryEntries,omitempty"` + + // NextPageToken: A token, which can be sent as `page_token` to retrieve + // the next page. If this field is omitted, there are no subsequent + // pages. + NextPageToken string `json:"nextPageToken,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "DirectoryEntries") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "DirectoryEntries") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *QueryRepositoryDirectoryContentsResponse) MarshalJSON() ([]byte, error) { + type NoMethod QueryRepositoryDirectoryContentsResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // QueryWorkflowInvocationActionsResponse: // `QueryWorkflowInvocationActions` response message. type QueryWorkflowInvocationActionsResponse struct { @@ -2100,6 +2320,38 @@ func (s *ReadFileResponse) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// ReadRepositoryFileResponse: `ReadRepositoryFile` response message. +type ReadRepositoryFileResponse struct { + // Contents: The file's contents. + Contents string `json:"contents,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "Contents") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Contents") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *ReadRepositoryFileResponse) MarshalJSON() ([]byte, error) { + type NoMethod ReadRepositoryFileResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // Relation: Represents a database relation. type Relation struct { // AdditionalOptions: Additional options that will be provided as @@ -2353,10 +2605,16 @@ func (s *RemoveFileRequest) MarshalJSON() ([]byte, error) { // Repository: Represents a Dataform Git repository. type Repository struct { + // DisplayName: Optional. The repository's user-friendly name. + DisplayName string `json:"displayName,omitempty"` + // GitRemoteSettings: Optional. If set, configures this repository to be // linked to a Git remote. GitRemoteSettings *GitRemoteSettings `json:"gitRemoteSettings,omitempty"` + // Labels: Optional. Repository user labels. + Labels map[string]string `json:"labels,omitempty"` + // Name: Output only. The repository's name. Name string `json:"name,omitempty"` @@ -2371,6 +2629,13 @@ type Repository struct { // invocations under. ServiceAccount string `json:"serviceAccount,omitempty"` + // SetAuthenticatedUserAdmin: Optional. Input only. If set to true, the + // authenticated user will be granted the roles/dataform.admin role on + // the created repository. To modify access to the created repository + // later apply setIamPolicy from + // https://cloud.google.com/dataform/reference/rest#rest-resource:-v1beta1.projects.locations.repositories + SetAuthenticatedUserAdmin bool `json:"setAuthenticatedUserAdmin,omitempty"` + // WorkspaceCompilationOverrides: Optional. If set, fields of // `workspace_compilation_overrides` override the default compilation // settings that are specified in dataform.json when creating @@ -2382,21 +2647,20 @@ type Repository struct { // server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "GitRemoteSettings") - // to unconditionally include in API requests. By default, fields with + // ForceSendFields is a list of field names (e.g. "DisplayName") to + // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "GitRemoteSettings") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "DisplayName") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` } @@ -2999,6 +3263,35 @@ func (s *WorkspaceCompilationOverrides) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// WriteFile: Represents the write file operation (for files added or +// modified). +type WriteFile struct { + // Contents: The file's contents. + Contents string `json:"contents,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Contents") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Contents") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *WriteFile) MarshalJSON() ([]byte, error) { + type NoMethod WriteFile + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // WriteFileRequest: `WriteFile` request message. type WriteFileRequest struct { // Contents: Required. The file's contents. @@ -3392,43 +3685,186 @@ func (c *ProjectsLocationsListCall) Pages(ctx context.Context, f func(*ListLocat } } -// method id "dataform.projects.locations.repositories.computeAccessTokenStatus": +// method id "dataform.projects.locations.repositories.commit": -type ProjectsLocationsRepositoriesComputeAccessTokenStatusCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +type ProjectsLocationsRepositoriesCommitCall struct { + s *Service + name string + commitrepositorychangesrequest *CommitRepositoryChangesRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// ComputeAccessTokenStatus: Computes a Repository's Git access token -// status. +// Commit: Applies a Git commit to a Repository. The Repository must not +// have a value for `git_remote_settings.url`. // // - name: The repository's name. -func (r *ProjectsLocationsRepositoriesService) ComputeAccessTokenStatus(name string) *ProjectsLocationsRepositoriesComputeAccessTokenStatusCall { - c := &ProjectsLocationsRepositoriesComputeAccessTokenStatusCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ProjectsLocationsRepositoriesService) Commit(name string, commitrepositorychangesrequest *CommitRepositoryChangesRequest) *ProjectsLocationsRepositoriesCommitCall { + c := &ProjectsLocationsRepositoriesCommitCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name + c.commitrepositorychangesrequest = commitrepositorychangesrequest return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsRepositoriesComputeAccessTokenStatusCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesComputeAccessTokenStatusCall { +func (c *ProjectsLocationsRepositoriesCommitCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesCommitCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. -func (c *ProjectsLocationsRepositoriesComputeAccessTokenStatusCall) IfNoneMatch(entityTag string) *ProjectsLocationsRepositoriesComputeAccessTokenStatusCall { - c.ifNoneMatch_ = entityTag - return c +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsRepositoriesCommitCall) Context(ctx context.Context) *ProjectsLocationsRepositoriesCommitCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsRepositoriesCommitCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsRepositoriesCommitCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.commitrepositorychangesrequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}:commit") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "dataform.projects.locations.repositories.commit" call. +// Exactly one of *Empty or error will be non-nil. Any non-2xx status +// code is an error. Response headers are in either +// *Empty.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified +// was returned. +func (c *ProjectsLocationsRepositoriesCommitCall) Do(opts ...googleapi.CallOption) (*Empty, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &Empty{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Applies a Git commit to a Repository. The Repository must not have a value for `git_remote_settings.url`.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}:commit", + // "httpMethod": "POST", + // "id": "dataform.projects.locations.repositories.commit", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The repository's name.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+name}:commit", + // "request": { + // "$ref": "CommitRepositoryChangesRequest" + // }, + // "response": { + // "$ref": "Empty" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "dataform.projects.locations.repositories.computeAccessTokenStatus": + +type ProjectsLocationsRepositoriesComputeAccessTokenStatusCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// ComputeAccessTokenStatus: Computes a Repository's Git access token +// status. +// +// - name: The repository's name. +func (r *ProjectsLocationsRepositoriesService) ComputeAccessTokenStatus(name string) *ProjectsLocationsRepositoriesComputeAccessTokenStatusCall { + c := &ProjectsLocationsRepositoriesComputeAccessTokenStatusCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsRepositoriesComputeAccessTokenStatusCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesComputeAccessTokenStatusCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsRepositoriesComputeAccessTokenStatusCall) IfNoneMatch(entityTag string) *ProjectsLocationsRepositoriesComputeAccessTokenStatusCall { + c.ifNoneMatch_ = entityTag + return c } // Context sets the context to be used in this call's Do method. Any @@ -3842,9 +4278,9 @@ func (c *ProjectsLocationsRepositoriesDeleteCall) Do(opts ...googleapi.CallOptio } -// method id "dataform.projects.locations.repositories.fetchRemoteBranches": +// method id "dataform.projects.locations.repositories.fetchHistory": -type ProjectsLocationsRepositoriesFetchRemoteBranchesCall struct { +type ProjectsLocationsRepositoriesFetchHistoryCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -3853,19 +4289,38 @@ type ProjectsLocationsRepositoriesFetchRemoteBranchesCall struct { header_ http.Header } -// FetchRemoteBranches: Fetches a Repository's remote branches. +// FetchHistory: Fetches a Repository's history of commits. The +// Repository must not have a value for `git_remote_settings.url`. // // - name: The repository's name. -func (r *ProjectsLocationsRepositoriesService) FetchRemoteBranches(name string) *ProjectsLocationsRepositoriesFetchRemoteBranchesCall { - c := &ProjectsLocationsRepositoriesFetchRemoteBranchesCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ProjectsLocationsRepositoriesService) FetchHistory(name string) *ProjectsLocationsRepositoriesFetchHistoryCall { + c := &ProjectsLocationsRepositoriesFetchHistoryCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } +// PageSize sets the optional parameter "pageSize": Maximum number of +// commits to return. The server may return fewer items than requested. +// If unspecified, the server will pick an appropriate default. +func (c *ProjectsLocationsRepositoriesFetchHistoryCall) PageSize(pageSize int64) *ProjectsLocationsRepositoriesFetchHistoryCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": Page token +// received from a previous `FetchRepositoryHistory` call. Provide this +// to retrieve the subsequent page. When paginating, all other +// parameters provided to `FetchRepositoryHistory` must match the call +// that provided the page token. +func (c *ProjectsLocationsRepositoriesFetchHistoryCall) PageToken(pageToken string) *ProjectsLocationsRepositoriesFetchHistoryCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsRepositoriesFetchRemoteBranchesCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesFetchRemoteBranchesCall { +func (c *ProjectsLocationsRepositoriesFetchHistoryCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesFetchHistoryCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -3875,7 +4330,7 @@ func (c *ProjectsLocationsRepositoriesFetchRemoteBranchesCall) Fields(s ...googl // getting updates only after the object has changed since the last // request. Use googleapi.IsNotModified to check whether the response // error from Do is the result of In-None-Match. -func (c *ProjectsLocationsRepositoriesFetchRemoteBranchesCall) IfNoneMatch(entityTag string) *ProjectsLocationsRepositoriesFetchRemoteBranchesCall { +func (c *ProjectsLocationsRepositoriesFetchHistoryCall) IfNoneMatch(entityTag string) *ProjectsLocationsRepositoriesFetchHistoryCall { c.ifNoneMatch_ = entityTag return c } @@ -3883,21 +4338,21 @@ func (c *ProjectsLocationsRepositoriesFetchRemoteBranchesCall) IfNoneMatch(entit // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ProjectsLocationsRepositoriesFetchRemoteBranchesCall) Context(ctx context.Context) *ProjectsLocationsRepositoriesFetchRemoteBranchesCall { +func (c *ProjectsLocationsRepositoriesFetchHistoryCall) Context(ctx context.Context) *ProjectsLocationsRepositoriesFetchHistoryCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *ProjectsLocationsRepositoriesFetchRemoteBranchesCall) Header() http.Header { +func (c *ProjectsLocationsRepositoriesFetchHistoryCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsRepositoriesFetchRemoteBranchesCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsRepositoriesFetchHistoryCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { @@ -3910,7 +4365,7 @@ func (c *ProjectsLocationsRepositoriesFetchRemoteBranchesCall) doRequest(alt str var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}:fetchRemoteBranches") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}:fetchHistory") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -3923,14 +4378,14 @@ func (c *ProjectsLocationsRepositoriesFetchRemoteBranchesCall) doRequest(alt str return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "dataform.projects.locations.repositories.fetchRemoteBranches" call. -// Exactly one of *FetchRemoteBranchesResponse or error will be non-nil. -// Any non-2xx status code is an error. Response headers are in either -// *FetchRemoteBranchesResponse.ServerResponse.Header or (if a response -// was returned at all) in error.(*googleapi.Error).Header. Use +// Do executes the "dataform.projects.locations.repositories.fetchHistory" call. +// Exactly one of *FetchRepositoryHistoryResponse or error will be +// non-nil. Any non-2xx status code is an error. Response headers are in +// either *FetchRepositoryHistoryResponse.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use // googleapi.IsNotModified to check whether the returned error was // because http.StatusNotModified was returned. -func (c *ProjectsLocationsRepositoriesFetchRemoteBranchesCall) Do(opts ...googleapi.CallOption) (*FetchRemoteBranchesResponse, error) { +func (c *ProjectsLocationsRepositoriesFetchHistoryCall) Do(opts ...googleapi.CallOption) (*FetchRepositoryHistoryResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -3949,7 +4404,7 @@ func (c *ProjectsLocationsRepositoriesFetchRemoteBranchesCall) Do(opts ...google if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &FetchRemoteBranchesResponse{ + ret := &FetchRepositoryHistoryResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -3961,10 +4416,10 @@ func (c *ProjectsLocationsRepositoriesFetchRemoteBranchesCall) Do(opts ...google } return ret, nil // { - // "description": "Fetches a Repository's remote branches.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}:fetchRemoteBranches", + // "description": "Fetches a Repository's history of commits. The Repository must not have a value for `git_remote_settings.url`.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}:fetchHistory", // "httpMethod": "GET", - // "id": "dataform.projects.locations.repositories.fetchRemoteBranches", + // "id": "dataform.projects.locations.repositories.fetchHistory", // "parameterOrder": [ // "name" // ], @@ -3975,11 +4430,22 @@ func (c *ProjectsLocationsRepositoriesFetchRemoteBranchesCall) Do(opts ...google // "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+$", // "required": true, // "type": "string" + // }, + // "pageSize": { + // "description": "Optional. Maximum number of commits to return. The server may return fewer items than requested. If unspecified, the server will pick an appropriate default.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "Optional. Page token received from a previous `FetchRepositoryHistory` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `FetchRepositoryHistory` must match the call that provided the page token.", + // "location": "query", + // "type": "string" // } // }, - // "path": "v1beta1/{+name}:fetchRemoteBranches", + // "path": "v1beta1/{+name}:fetchHistory", // "response": { - // "$ref": "FetchRemoteBranchesResponse" + // "$ref": "FetchRepositoryHistoryResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -3988,9 +4454,30 @@ func (c *ProjectsLocationsRepositoriesFetchRemoteBranchesCall) Do(opts ...google } -// method id "dataform.projects.locations.repositories.get": +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *ProjectsLocationsRepositoriesFetchHistoryCall) Pages(ctx context.Context, f func(*FetchRepositoryHistoryResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} -type ProjectsLocationsRepositoriesGetCall struct { +// method id "dataform.projects.locations.repositories.fetchRemoteBranches": + +type ProjectsLocationsRepositoriesFetchRemoteBranchesCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -3999,11 +4486,11 @@ type ProjectsLocationsRepositoriesGetCall struct { header_ http.Header } -// Get: Fetches a single Repository. +// FetchRemoteBranches: Fetches a Repository's remote branches. // // - name: The repository's name. -func (r *ProjectsLocationsRepositoriesService) Get(name string) *ProjectsLocationsRepositoriesGetCall { - c := &ProjectsLocationsRepositoriesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ProjectsLocationsRepositoriesService) FetchRemoteBranches(name string) *ProjectsLocationsRepositoriesFetchRemoteBranchesCall { + c := &ProjectsLocationsRepositoriesFetchRemoteBranchesCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -4011,7 +4498,7 @@ func (r *ProjectsLocationsRepositoriesService) Get(name string) *ProjectsLocatio // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsRepositoriesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesGetCall { +func (c *ProjectsLocationsRepositoriesFetchRemoteBranchesCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesFetchRemoteBranchesCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -4021,7 +4508,7 @@ func (c *ProjectsLocationsRepositoriesGetCall) Fields(s ...googleapi.Field) *Pro // getting updates only after the object has changed since the last // request. Use googleapi.IsNotModified to check whether the response // error from Do is the result of In-None-Match. -func (c *ProjectsLocationsRepositoriesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsRepositoriesGetCall { +func (c *ProjectsLocationsRepositoriesFetchRemoteBranchesCall) IfNoneMatch(entityTag string) *ProjectsLocationsRepositoriesFetchRemoteBranchesCall { c.ifNoneMatch_ = entityTag return c } @@ -4029,21 +4516,21 @@ func (c *ProjectsLocationsRepositoriesGetCall) IfNoneMatch(entityTag string) *Pr // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ProjectsLocationsRepositoriesGetCall) Context(ctx context.Context) *ProjectsLocationsRepositoriesGetCall { +func (c *ProjectsLocationsRepositoriesFetchRemoteBranchesCall) Context(ctx context.Context) *ProjectsLocationsRepositoriesFetchRemoteBranchesCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *ProjectsLocationsRepositoriesGetCall) Header() http.Header { +func (c *ProjectsLocationsRepositoriesFetchRemoteBranchesCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsRepositoriesGetCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsRepositoriesFetchRemoteBranchesCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { @@ -4056,7 +4543,7 @@ func (c *ProjectsLocationsRepositoriesGetCall) doRequest(alt string) (*http.Resp var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}:fetchRemoteBranches") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -4069,14 +4556,14 @@ func (c *ProjectsLocationsRepositoriesGetCall) doRequest(alt string) (*http.Resp return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "dataform.projects.locations.repositories.get" call. -// Exactly one of *Repository or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Repository.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. -func (c *ProjectsLocationsRepositoriesGetCall) Do(opts ...googleapi.CallOption) (*Repository, error) { +// Do executes the "dataform.projects.locations.repositories.fetchRemoteBranches" call. +// Exactly one of *FetchRemoteBranchesResponse or error will be non-nil. +// Any non-2xx status code is an error. Response headers are in either +// *FetchRemoteBranchesResponse.ServerResponse.Header or (if a response +// was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *ProjectsLocationsRepositoriesFetchRemoteBranchesCall) Do(opts ...googleapi.CallOption) (*FetchRemoteBranchesResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -4095,7 +4582,7 @@ func (c *ProjectsLocationsRepositoriesGetCall) Do(opts ...googleapi.CallOption) if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &Repository{ + ret := &FetchRemoteBranchesResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -4107,10 +4594,10 @@ func (c *ProjectsLocationsRepositoriesGetCall) Do(opts ...googleapi.CallOption) } return ret, nil // { - // "description": "Fetches a single Repository.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}", + // "description": "Fetches a Repository's remote branches.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}:fetchRemoteBranches", // "httpMethod": "GET", - // "id": "dataform.projects.locations.repositories.get", + // "id": "dataform.projects.locations.repositories.fetchRemoteBranches", // "parameterOrder": [ // "name" // ], @@ -4123,9 +4610,155 @@ func (c *ProjectsLocationsRepositoriesGetCall) Do(opts ...googleapi.CallOption) // "type": "string" // } // }, - // "path": "v1beta1/{+name}", + // "path": "v1beta1/{+name}:fetchRemoteBranches", // "response": { - // "$ref": "Repository" + // "$ref": "FetchRemoteBranchesResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "dataform.projects.locations.repositories.get": + +type ProjectsLocationsRepositoriesGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Fetches a single Repository. +// +// - name: The repository's name. +func (r *ProjectsLocationsRepositoriesService) Get(name string) *ProjectsLocationsRepositoriesGetCall { + c := &ProjectsLocationsRepositoriesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsRepositoriesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesGetCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsRepositoriesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsRepositoriesGetCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsRepositoriesGetCall) Context(ctx context.Context) *ProjectsLocationsRepositoriesGetCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsRepositoriesGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsRepositoriesGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "dataform.projects.locations.repositories.get" call. +// Exactly one of *Repository or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *Repository.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified +// to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsRepositoriesGetCall) Do(opts ...googleapi.CallOption) (*Repository, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &Repository{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Fetches a single Repository.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}", + // "httpMethod": "GET", + // "id": "dataform.projects.locations.repositories.get", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The repository's name.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+name}", + // "response": { + // "$ref": "Repository" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -4689,6 +5322,403 @@ func (c *ProjectsLocationsRepositoriesPatchCall) Do(opts ...googleapi.CallOption } +// method id "dataform.projects.locations.repositories.queryDirectoryContents": + +type ProjectsLocationsRepositoriesQueryDirectoryContentsCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// QueryDirectoryContents: Returns the contents of a given Repository +// directory. The Repository must not have a value for +// `git_remote_settings.url`. +// +// - name: The repository's name. +func (r *ProjectsLocationsRepositoriesService) QueryDirectoryContents(name string) *ProjectsLocationsRepositoriesQueryDirectoryContentsCall { + c := &ProjectsLocationsRepositoriesQueryDirectoryContentsCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// CommitSha sets the optional parameter "commitSha": The Commit SHA for +// the commit to query from. If unset, the directory will be queried +// from HEAD. +func (c *ProjectsLocationsRepositoriesQueryDirectoryContentsCall) CommitSha(commitSha string) *ProjectsLocationsRepositoriesQueryDirectoryContentsCall { + c.urlParams_.Set("commitSha", commitSha) + return c +} + +// PageSize sets the optional parameter "pageSize": Maximum number of +// paths to return. The server may return fewer items than requested. If +// unspecified, the server will pick an appropriate default. +func (c *ProjectsLocationsRepositoriesQueryDirectoryContentsCall) PageSize(pageSize int64) *ProjectsLocationsRepositoriesQueryDirectoryContentsCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": Page token +// received from a previous `QueryRepositoryDirectoryContents` call. +// Provide this to retrieve the subsequent page. When paginating, all +// other parameters provided to `QueryRepositoryDirectoryContents` must +// match the call that provided the page token. +func (c *ProjectsLocationsRepositoriesQueryDirectoryContentsCall) PageToken(pageToken string) *ProjectsLocationsRepositoriesQueryDirectoryContentsCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// Path sets the optional parameter "path": The directory's full path +// including directory name, relative to root. If left unset, the root +// is used. +func (c *ProjectsLocationsRepositoriesQueryDirectoryContentsCall) Path(path string) *ProjectsLocationsRepositoriesQueryDirectoryContentsCall { + c.urlParams_.Set("path", path) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsRepositoriesQueryDirectoryContentsCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesQueryDirectoryContentsCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsRepositoriesQueryDirectoryContentsCall) IfNoneMatch(entityTag string) *ProjectsLocationsRepositoriesQueryDirectoryContentsCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsRepositoriesQueryDirectoryContentsCall) Context(ctx context.Context) *ProjectsLocationsRepositoriesQueryDirectoryContentsCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsRepositoriesQueryDirectoryContentsCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsRepositoriesQueryDirectoryContentsCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}:queryDirectoryContents") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "dataform.projects.locations.repositories.queryDirectoryContents" call. +// Exactly one of *QueryRepositoryDirectoryContentsResponse or error +// will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *QueryRepositoryDirectoryContentsResponse.ServerResponse.Header or +// (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsLocationsRepositoriesQueryDirectoryContentsCall) Do(opts ...googleapi.CallOption) (*QueryRepositoryDirectoryContentsResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &QueryRepositoryDirectoryContentsResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Returns the contents of a given Repository directory. The Repository must not have a value for `git_remote_settings.url`.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}:queryDirectoryContents", + // "httpMethod": "GET", + // "id": "dataform.projects.locations.repositories.queryDirectoryContents", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "commitSha": { + // "description": "Optional. The Commit SHA for the commit to query from. If unset, the directory will be queried from HEAD.", + // "location": "query", + // "type": "string" + // }, + // "name": { + // "description": "Required. The repository's name.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "pageSize": { + // "description": "Optional. Maximum number of paths to return. The server may return fewer items than requested. If unspecified, the server will pick an appropriate default.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "Optional. Page token received from a previous `QueryRepositoryDirectoryContents` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `QueryRepositoryDirectoryContents` must match the call that provided the page token.", + // "location": "query", + // "type": "string" + // }, + // "path": { + // "description": "Optional. The directory's full path including directory name, relative to root. If left unset, the root is used.", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1beta1/{+name}:queryDirectoryContents", + // "response": { + // "$ref": "QueryRepositoryDirectoryContentsResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *ProjectsLocationsRepositoriesQueryDirectoryContentsCall) Pages(ctx context.Context, f func(*QueryRepositoryDirectoryContentsResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} + +// method id "dataform.projects.locations.repositories.readFile": + +type ProjectsLocationsRepositoriesReadFileCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// ReadFile: Returns the contents of a file (inside a Repository). The +// Repository must not have a value for `git_remote_settings.url`. +// +// - name: The repository's name. +func (r *ProjectsLocationsRepositoriesService) ReadFile(name string) *ProjectsLocationsRepositoriesReadFileCall { + c := &ProjectsLocationsRepositoriesReadFileCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// CommitSha sets the optional parameter "commitSha": The commit SHA for +// the commit to read from. If unset, the file will be read from HEAD. +func (c *ProjectsLocationsRepositoriesReadFileCall) CommitSha(commitSha string) *ProjectsLocationsRepositoriesReadFileCall { + c.urlParams_.Set("commitSha", commitSha) + return c +} + +// Path sets the optional parameter "path": Required. Full file path to +// read including filename, from repository root. +func (c *ProjectsLocationsRepositoriesReadFileCall) Path(path string) *ProjectsLocationsRepositoriesReadFileCall { + c.urlParams_.Set("path", path) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsRepositoriesReadFileCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesReadFileCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsRepositoriesReadFileCall) IfNoneMatch(entityTag string) *ProjectsLocationsRepositoriesReadFileCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsRepositoriesReadFileCall) Context(ctx context.Context) *ProjectsLocationsRepositoriesReadFileCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsRepositoriesReadFileCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsRepositoriesReadFileCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}:readFile") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "dataform.projects.locations.repositories.readFile" call. +// Exactly one of *ReadRepositoryFileResponse or error will be non-nil. +// Any non-2xx status code is an error. Response headers are in either +// *ReadRepositoryFileResponse.ServerResponse.Header or (if a response +// was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *ProjectsLocationsRepositoriesReadFileCall) Do(opts ...googleapi.CallOption) (*ReadRepositoryFileResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &ReadRepositoryFileResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Returns the contents of a file (inside a Repository). The Repository must not have a value for `git_remote_settings.url`.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}:readFile", + // "httpMethod": "GET", + // "id": "dataform.projects.locations.repositories.readFile", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "commitSha": { + // "description": "Optional. The commit SHA for the commit to read from. If unset, the file will be read from HEAD.", + // "location": "query", + // "type": "string" + // }, + // "name": { + // "description": "Required. The repository's name.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "path": { + // "description": "Required. Full file path to read including filename, from repository root.", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1beta1/{+name}:readFile", + // "response": { + // "$ref": "ReadRepositoryFileResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + // method id "dataform.projects.locations.repositories.setIamPolicy": type ProjectsLocationsRepositoriesSetIamPolicyCall struct { diff --git a/datastream/v1/datastream-api.json b/datastream/v1/datastream-api.json index 5bdbf66f4b8..04a3466c5cf 100644 --- a/datastream/v1/datastream-api.json +++ b/datastream/v1/datastream-api.json @@ -1074,6 +1074,34 @@ "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ] + }, + "run": { + "description": "Use this method to start, resume or recover a stream with a non default CDC strategy.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/streams/{streamsId}:run", + "httpMethod": "POST", + "id": "datastream.projects.locations.streams.run", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. Name of the stream resource to start, in the format: projects/{project_id}/locations/{location}/streams/{stream_name}", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/streams/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}:run", + "request": { + "$ref": "RunStreamRequest" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] } }, "resources": { @@ -1233,7 +1261,7 @@ } } }, - "revision": "20230630", + "revision": "20230719", "rootUrl": "https://datastream.googleapis.com/", "schemas": { "AvroFileFormat": { @@ -1365,6 +1393,25 @@ "properties": {}, "type": "object" }, + "CdcStrategy": { + "description": "The strategy that the stream uses for CDC replication.", + "id": "CdcStrategy", + "properties": { + "mostRecentStartPosition": { + "$ref": "MostRecentStartPosition", + "description": "Optional. Start replicating from the most recent position in the source." + }, + "nextAvailableStartPosition": { + "$ref": "NextAvailableStartPosition", + "description": "Optional. Resume replication from the next available position in the source." + }, + "specificStartPosition": { + "$ref": "SpecificStartPosition", + "description": "Optional. Start replicating from a specific position in the source." + } + }, + "type": "object" + }, "ConnectionProfile": { "description": "A set of reusable connection configurations to be used as a source or destination for a stream.", "id": "ConnectionProfile", @@ -1892,6 +1939,12 @@ }, "type": "object" }, + "MostRecentStartPosition": { + "description": "CDC strategy to start replicating from the most recent position in the source.", + "id": "MostRecentStartPosition", + "properties": {}, + "type": "object" + }, "MysqlColumn": { "description": "MySQL Column.", "id": "MysqlColumn", @@ -1957,6 +2010,22 @@ }, "type": "object" }, + "MysqlLogPosition": { + "description": "MySQL log position", + "id": "MysqlLogPosition", + "properties": { + "logFile": { + "description": "The binary log file name.", + "type": "string" + }, + "logPosition": { + "description": "The position within the binary log file. Default is head of file.", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, "MysqlObjectIdentifier": { "description": "Mysql data source object identifier.", "id": "MysqlObjectIdentifier", @@ -2091,6 +2160,12 @@ }, "type": "object" }, + "NextAvailableStartPosition": { + "description": "CDC strategy to resume replication from the next available position in the source.", + "id": "NextAvailableStartPosition", + "properties": {}, + "type": "object" + }, "Operation": { "description": "This resource represents a long-running operation that is the result of a network API call.", "id": "Operation", @@ -2639,6 +2714,17 @@ }, "type": "object" }, + "RunStreamRequest": { + "description": "Request message for running a stream.", + "id": "RunStreamRequest", + "properties": { + "cdcStrategy": { + "$ref": "CdcStrategy", + "description": "Optional. The CDC strategy of the stream. If not set, the system's default value will be used." + } + }, + "type": "object" + }, "SingleTargetDataset": { "description": "A single target dataset to which all data will be streamed.", "id": "SingleTargetDataset", @@ -2703,6 +2789,17 @@ }, "type": "object" }, + "SpecificStartPosition": { + "description": "CDC strategy to start replicating from a specific position in the source.", + "id": "SpecificStartPosition", + "properties": { + "mysqlLogPosition": { + "$ref": "MysqlLogPosition", + "description": "MySQL specific log position to start replicating from." + } + }, + "type": "object" + }, "StartBackfillJobRequest": { "description": "Request for manually initiating a backfill job for a specific stream object.", "id": "StartBackfillJobRequest", diff --git a/datastream/v1/datastream-gen.go b/datastream/v1/datastream-gen.go index b8c83a34a99..e47bc3a83c0 100644 --- a/datastream/v1/datastream-gen.go +++ b/datastream/v1/datastream-gen.go @@ -387,6 +387,45 @@ type BigQueryProfile struct { type CancelOperationRequest struct { } +// CdcStrategy: The strategy that the stream uses for CDC replication. +type CdcStrategy struct { + // MostRecentStartPosition: Optional. Start replicating from the most + // recent position in the source. + MostRecentStartPosition *MostRecentStartPosition `json:"mostRecentStartPosition,omitempty"` + + // NextAvailableStartPosition: Optional. Resume replication from the + // next available position in the source. + NextAvailableStartPosition *NextAvailableStartPosition `json:"nextAvailableStartPosition,omitempty"` + + // SpecificStartPosition: Optional. Start replicating from a specific + // position in the source. + SpecificStartPosition *SpecificStartPosition `json:"specificStartPosition,omitempty"` + + // ForceSendFields is a list of field names (e.g. + // "MostRecentStartPosition") to unconditionally include in API + // requests. By default, fields with empty or default values are omitted + // from API requests. However, any non-pointer, non-interface field + // appearing in ForceSendFields will be sent to the server regardless of + // whether the field is empty or not. This may be used to include empty + // fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "MostRecentStartPosition") + // to include in API requests with the JSON null value. By default, + // fields with empty values are omitted from API requests. However, any + // field with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *CdcStrategy) MarshalJSON() ([]byte, error) { + type NoMethod CdcStrategy + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // ConnectionProfile: A set of reusable connection configurations to be // used as a source or destination for a stream. type ConnectionProfile struct { @@ -1239,6 +1278,11 @@ func (s *LookupStreamObjectRequest) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// MostRecentStartPosition: CDC strategy to start replicating from the +// most recent position in the source. +type MostRecentStartPosition struct { +} + // MysqlColumn: MySQL Column. type MysqlColumn struct { // Collation: Column collation. @@ -1323,6 +1367,38 @@ func (s *MysqlDatabase) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// MysqlLogPosition: MySQL log position +type MysqlLogPosition struct { + // LogFile: The binary log file name. + LogFile string `json:"logFile,omitempty"` + + // LogPosition: The position within the binary log file. Default is head + // of file. + LogPosition int64 `json:"logPosition,omitempty"` + + // ForceSendFields is a list of field names (e.g. "LogFile") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "LogFile") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *MysqlLogPosition) MarshalJSON() ([]byte, error) { + type NoMethod MysqlLogPosition + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // MysqlObjectIdentifier: Mysql data source object identifier. type MysqlObjectIdentifier struct { // Database: Required. The database name. @@ -1549,6 +1625,11 @@ func (s *MysqlTable) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// NextAvailableStartPosition: CDC strategy to resume replication from +// the next available position in the source. +type NextAvailableStartPosition struct { +} + // Operation: This resource represents a long-running operation that is // the result of a network API call. type Operation struct { @@ -2343,6 +2424,35 @@ func (s *Route) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// RunStreamRequest: Request message for running a stream. +type RunStreamRequest struct { + // CdcStrategy: Optional. The CDC strategy of the stream. If not set, + // the system's default value will be used. + CdcStrategy *CdcStrategy `json:"cdcStrategy,omitempty"` + + // ForceSendFields is a list of field names (e.g. "CdcStrategy") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "CdcStrategy") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *RunStreamRequest) MarshalJSON() ([]byte, error) { + type NoMethod RunStreamRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // SingleTargetDataset: A single target dataset to which all data will // be streamed. type SingleTargetDataset struct { @@ -2482,6 +2592,37 @@ func (s *SourceObjectIdentifier) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// SpecificStartPosition: CDC strategy to start replicating from a +// specific position in the source. +type SpecificStartPosition struct { + // MysqlLogPosition: MySQL specific log position to start replicating + // from. + MysqlLogPosition *MysqlLogPosition `json:"mysqlLogPosition,omitempty"` + + // ForceSendFields is a list of field names (e.g. "MysqlLogPosition") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "MysqlLogPosition") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *SpecificStartPosition) MarshalJSON() ([]byte, error) { + type NoMethod SpecificStartPosition + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // StartBackfillJobRequest: Request for manually initiating a backfill // job for a specific stream object. type StartBackfillJobRequest struct { @@ -7542,6 +7683,150 @@ func (c *ProjectsLocationsStreamsPatchCall) Do(opts ...googleapi.CallOption) (*O } +// method id "datastream.projects.locations.streams.run": + +type ProjectsLocationsStreamsRunCall struct { + s *Service + name string + runstreamrequest *RunStreamRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Run: Use this method to start, resume or recover a stream with a non +// default CDC strategy. +// +// - name: Name of the stream resource to start, in the format: +// projects/{project_id}/locations/{location}/streams/{stream_name}. +func (r *ProjectsLocationsStreamsService) Run(name string, runstreamrequest *RunStreamRequest) *ProjectsLocationsStreamsRunCall { + c := &ProjectsLocationsStreamsRunCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.runstreamrequest = runstreamrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsStreamsRunCall) Fields(s ...googleapi.Field) *ProjectsLocationsStreamsRunCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsStreamsRunCall) Context(ctx context.Context) *ProjectsLocationsStreamsRunCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsStreamsRunCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsStreamsRunCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.runstreamrequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:run") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "datastream.projects.locations.streams.run" call. +// Exactly one of *Operation or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified +// to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsStreamsRunCall) Do(opts ...googleapi.CallOption) (*Operation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &Operation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Use this method to start, resume or recover a stream with a non default CDC strategy.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/streams/{streamsId}:run", + // "httpMethod": "POST", + // "id": "datastream.projects.locations.streams.run", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. Name of the stream resource to start, in the format: projects/{project_id}/locations/{location}/streams/{stream_name}", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/streams/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}:run", + // "request": { + // "$ref": "RunStreamRequest" + // }, + // "response": { + // "$ref": "Operation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + // method id "datastream.projects.locations.streams.objects.get": type ProjectsLocationsStreamsObjectsGetCall struct { diff --git a/firebaseappdistribution/v1/firebaseappdistribution-api.json b/firebaseappdistribution/v1/firebaseappdistribution-api.json index 638924f12c0..e4ecb892c6e 100644 --- a/firebaseappdistribution/v1/firebaseappdistribution-api.json +++ b/firebaseappdistribution/v1/firebaseappdistribution-api.json @@ -342,34 +342,6 @@ "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ] - }, - "test": { - "description": "Run automated test(s) on release.", - "flatPath": "v1/projects/{projectsId}/apps/{appsId}/releases/{releasesId}:test", - "httpMethod": "POST", - "id": "firebaseappdistribution.projects.apps.releases.test", - "parameterOrder": [ - "name" - ], - "parameters": { - "name": { - "description": "Required. The name of the release resource to test. Format: `projects/{project_number}/apps/{app_id}/releases/{release_id}`", - "location": "path", - "pattern": "^projects/[^/]+/apps/[^/]+/releases/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1/{+name}:test", - "request": { - "$ref": "GoogleFirebaseAppdistroV1alphaTestReleaseRequest" - }, - "response": { - "$ref": "GoogleFirebaseAppdistroV1alphaTestReleaseResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] } }, "resources": { @@ -969,7 +941,7 @@ } } }, - "revision": "20230726", + "revision": "20230728", "rootUrl": "https://firebaseappdistribution.googleapis.com/", "schemas": { "GdataBlobstore2Info": { @@ -1858,23 +1830,6 @@ }, "type": "object" }, - "GoogleFirebaseAppdistroV1alphaTestReleaseRequest": { - "description": "The request message for `TestRelease`.", - "id": "GoogleFirebaseAppdistroV1alphaTestReleaseRequest", - "properties": {}, - "type": "object" - }, - "GoogleFirebaseAppdistroV1alphaTestReleaseResponse": { - "description": "The response message for `TestRelease`.", - "id": "GoogleFirebaseAppdistroV1alphaTestReleaseResponse", - "properties": { - "testMatrix": { - "description": "Resource name of the test matrix Format: `v1/projects/{project_id}/testMatrices/{test_matrix_id}`", - "type": "string" - } - }, - "type": "object" - }, "GoogleLongrunningCancelOperationRequest": { "description": "The request message for Operations.CancelOperation.", "id": "GoogleLongrunningCancelOperationRequest", diff --git a/firebaseappdistribution/v1/firebaseappdistribution-gen.go b/firebaseappdistribution/v1/firebaseappdistribution-gen.go index a72d5c594ce..40980283705 100644 --- a/firebaseappdistribution/v1/firebaseappdistribution-gen.go +++ b/firebaseappdistribution/v1/firebaseappdistribution-gen.go @@ -1706,45 +1706,6 @@ func (s *GoogleFirebaseAppdistroV1UploadReleaseResponse) MarshalJSON() ([]byte, return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleFirebaseAppdistroV1alphaTestReleaseRequest: The request message -// for `TestRelease`. -type GoogleFirebaseAppdistroV1alphaTestReleaseRequest struct { -} - -// GoogleFirebaseAppdistroV1alphaTestReleaseResponse: The response -// message for `TestRelease`. -type GoogleFirebaseAppdistroV1alphaTestReleaseResponse struct { - // TestMatrix: Resource name of the test matrix Format: - // `v1/projects/{project_id}/testMatrices/{test_matrix_id}` - TestMatrix string `json:"testMatrix,omitempty"` - - // ServerResponse contains the HTTP response code and headers from the - // server. - googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "TestMatrix") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "TestMatrix") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. - NullFields []string `json:"-"` -} - -func (s *GoogleFirebaseAppdistroV1alphaTestReleaseResponse) MarshalJSON() ([]byte, error) { - type NoMethod GoogleFirebaseAppdistroV1alphaTestReleaseResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - // GoogleLongrunningCancelOperationRequest: The request message for // Operations.CancelOperation. type GoogleLongrunningCancelOperationRequest struct { @@ -3143,151 +3104,6 @@ func (c *ProjectsAppsReleasesPatchCall) Do(opts ...googleapi.CallOption) (*Googl } -// method id "firebaseappdistribution.projects.apps.releases.test": - -type ProjectsAppsReleasesTestCall struct { - s *Service - name string - googlefirebaseappdistrov1alphatestreleaserequest *GoogleFirebaseAppdistroV1alphaTestReleaseRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// Test: Run automated test(s) on release. -// -// - name: The name of the release resource to test. Format: -// `projects/{project_number}/apps/{app_id}/releases/{release_id}`. -func (r *ProjectsAppsReleasesService) Test(name string, googlefirebaseappdistrov1alphatestreleaserequest *GoogleFirebaseAppdistroV1alphaTestReleaseRequest) *ProjectsAppsReleasesTestCall { - c := &ProjectsAppsReleasesTestCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name - c.googlefirebaseappdistrov1alphatestreleaserequest = googlefirebaseappdistrov1alphatestreleaserequest - return c -} - -// Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. -func (c *ProjectsAppsReleasesTestCall) Fields(s ...googleapi.Field) *ProjectsAppsReleasesTestCall { - c.urlParams_.Set("fields", googleapi.CombineFields(s)) - return c -} - -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. -func (c *ProjectsAppsReleasesTestCall) Context(ctx context.Context) *ProjectsAppsReleasesTestCall { - c.ctx_ = ctx - return c -} - -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. -func (c *ProjectsAppsReleasesTestCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *ProjectsAppsReleasesTestCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) - var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlefirebaseappdistrov1alphatestreleaserequest) - if err != nil { - return nil, err - } - reqHeaders.Set("Content-Type", "application/json") - c.urlParams_.Set("alt", alt) - c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:test") - urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) - if err != nil { - return nil, err - } - req.Header = reqHeaders - googleapi.Expand(req.URL, map[string]string{ - "name": c.name, - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "firebaseappdistribution.projects.apps.releases.test" call. -// Exactly one of *GoogleFirebaseAppdistroV1alphaTestReleaseResponse or -// error will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleFirebaseAppdistroV1alphaTestReleaseResponse.ServerResponse.Head -// er or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. -func (c *ProjectsAppsReleasesTestCall) Do(opts ...googleapi.CallOption) (*GoogleFirebaseAppdistroV1alphaTestReleaseResponse, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &GoogleFirebaseAppdistroV1alphaTestReleaseResponse{ - ServerResponse: googleapi.ServerResponse{ - Header: res.Header, - HTTPStatusCode: res.StatusCode, - }, - } - target := &ret - if err := gensupport.DecodeResponse(target, res); err != nil { - return nil, err - } - return ret, nil - // { - // "description": "Run automated test(s) on release.", - // "flatPath": "v1/projects/{projectsId}/apps/{appsId}/releases/{releasesId}:test", - // "httpMethod": "POST", - // "id": "firebaseappdistribution.projects.apps.releases.test", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Required. The name of the release resource to test. Format: `projects/{project_number}/apps/{app_id}/releases/{release_id}`", - // "location": "path", - // "pattern": "^projects/[^/]+/apps/[^/]+/releases/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/{+name}:test", - // "request": { - // "$ref": "GoogleFirebaseAppdistroV1alphaTestReleaseRequest" - // }, - // "response": { - // "$ref": "GoogleFirebaseAppdistroV1alphaTestReleaseResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - // method id "firebaseappdistribution.projects.apps.releases.feedbackReports.delete": type ProjectsAppsReleasesFeedbackReportsDeleteCall struct { diff --git a/gkehub/v1/gkehub-api.json b/gkehub/v1/gkehub-api.json index dcc48a593b6..6220ab2b088 100644 --- a/gkehub/v1/gkehub-api.json +++ b/gkehub/v1/gkehub-api.json @@ -1518,7 +1518,7 @@ } } }, - "revision": "20230707", + "revision": "20230720", "rootUrl": "https://gkehub.googleapis.com/", "schemas": { "AppDevExperienceFeatureSpec": { @@ -1714,7 +1714,7 @@ "description": "Git repo configuration for the cluster." }, "metricsGcpServiceAccountEmail": { - "description": "The Email of the Google Cloud Service Account (GSA) used for exporting Config Sync metrics to Cloud Monitoring and Cloud Monarch when Workload Identity is enabled. The GSA should have the Monitoring Metric Writer (roles/monitoring.metricWriter) IAM role. The Kubernetes ServiceAccount `default` in the namespace `config-management-monitoring` should be binded to the GSA. This field is required when automatic Feature management is enabled.", + "description": "The Email of the Google Cloud Service Account (GSA) used for exporting Config Sync metrics to Cloud Monitoring and Cloud Monarch when Workload Identity is enabled. The GSA should have the Monitoring Metric Writer (roles/monitoring.metricWriter) IAM role. The Kubernetes ServiceAccount `default` in the namespace `config-management-monitoring` should be bound to the GSA. This field is required when automatic Feature management is enabled.", "type": "string" }, "oci": { @@ -3036,10 +3036,6 @@ "tenant": { "description": "Kind of Azure AD account to be authenticated. Supported values are or for accounts belonging to a specific tenant.", "type": "string" - }, - "userClaim": { - "description": "Optional. Claim in the AzureAD ID Token that holds the user details.", - "type": "string" } }, "type": "object" diff --git a/gkehub/v1/gkehub-gen.go b/gkehub/v1/gkehub-gen.go index 50dcec21c92..b1a43f292e1 100644 --- a/gkehub/v1/gkehub-gen.go +++ b/gkehub/v1/gkehub-gen.go @@ -674,8 +674,8 @@ type ConfigManagementConfigSync struct { // GSA should have the Monitoring Metric Writer // (roles/monitoring.metricWriter) IAM role. The Kubernetes // ServiceAccount `default` in the namespace - // `config-management-monitoring` should be binded to the GSA. This - // field is required when automatic Feature management is enabled. + // `config-management-monitoring` should be bound to the GSA. This field + // is required when automatic Feature management is enabled. MetricsGcpServiceAccountEmail string `json:"metricsGcpServiceAccountEmail,omitempty"` // Oci: OCI repo configuration for the cluster @@ -2700,10 +2700,6 @@ type IdentityServiceAzureADConfig struct { // values are or for accounts belonging to a specific tenant. Tenant string `json:"tenant,omitempty"` - // UserClaim: Optional. Claim in the AzureAD ID Token that holds the - // user details. - UserClaim string `json:"userClaim,omitempty"` - // ForceSendFields is a list of field names (e.g. "ClientId") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any diff --git a/gkehub/v1alpha/gkehub-api.json b/gkehub/v1alpha/gkehub-api.json index dbc64705820..daf151652e1 100644 --- a/gkehub/v1alpha/gkehub-api.json +++ b/gkehub/v1alpha/gkehub-api.json @@ -2098,7 +2098,7 @@ } } }, - "revision": "20230707", + "revision": "20230720", "rootUrl": "https://gkehub.googleapis.com/", "schemas": { "AnthosObservabilityFeatureSpec": { @@ -2717,7 +2717,7 @@ "description": "Git repo configuration for the cluster." }, "metricsGcpServiceAccountEmail": { - "description": "The Email of the Google Cloud Service Account (GSA) used for exporting Config Sync metrics to Cloud Monitoring and Cloud Monarch when Workload Identity is enabled. The GSA should have the Monitoring Metric Writer (roles/monitoring.metricWriter) IAM role. The Kubernetes ServiceAccount `default` in the namespace `config-management-monitoring` should be binded to the GSA. This field is required when automatic Feature management is enabled.", + "description": "The Email of the Google Cloud Service Account (GSA) used for exporting Config Sync metrics to Cloud Monitoring and Cloud Monarch when Workload Identity is enabled. The GSA should have the Monitoring Metric Writer (roles/monitoring.metricWriter) IAM role. The Kubernetes ServiceAccount `default` in the namespace `config-management-monitoring` should be bound to the GSA. This field is required when automatic Feature management is enabled.", "type": "string" }, "oci": { @@ -4087,10 +4087,6 @@ "tenant": { "description": "Kind of Azure AD account to be authenticated. Supported values are or for accounts belonging to a specific tenant.", "type": "string" - }, - "userClaim": { - "description": "Optional. Claim in the AzureAD ID Token that holds the user details.", - "type": "string" } }, "type": "object" diff --git a/gkehub/v1alpha/gkehub-gen.go b/gkehub/v1alpha/gkehub-gen.go index 05fad983e3c..94fc6235e97 100644 --- a/gkehub/v1alpha/gkehub-gen.go +++ b/gkehub/v1alpha/gkehub-gen.go @@ -1475,8 +1475,8 @@ type ConfigManagementConfigSync struct { // GSA should have the Monitoring Metric Writer // (roles/monitoring.metricWriter) IAM role. The Kubernetes // ServiceAccount `default` in the namespace - // `config-management-monitoring` should be binded to the GSA. This - // field is required when automatic Feature management is enabled. + // `config-management-monitoring` should be bound to the GSA. This field + // is required when automatic Feature management is enabled. MetricsGcpServiceAccountEmail string `json:"metricsGcpServiceAccountEmail,omitempty"` // Oci: OCI repo configuration for the cluster @@ -3586,10 +3586,6 @@ type IdentityServiceAzureADConfig struct { // values are or for accounts belonging to a specific tenant. Tenant string `json:"tenant,omitempty"` - // UserClaim: Optional. Claim in the AzureAD ID Token that holds the - // user details. - UserClaim string `json:"userClaim,omitempty"` - // ForceSendFields is a list of field names (e.g. "ClientId") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any diff --git a/gkehub/v1beta/gkehub-api.json b/gkehub/v1beta/gkehub-api.json index 2a5194015d9..2457f768217 100644 --- a/gkehub/v1beta/gkehub-api.json +++ b/gkehub/v1beta/gkehub-api.json @@ -1784,7 +1784,7 @@ } } }, - "revision": "20230707", + "revision": "20230720", "rootUrl": "https://gkehub.googleapis.com/", "schemas": { "AnthosObservabilityFeatureSpec": { @@ -2031,7 +2031,7 @@ "description": "Git repo configuration for the cluster." }, "metricsGcpServiceAccountEmail": { - "description": "The Email of the Google Cloud Service Account (GSA) used for exporting Config Sync metrics to Cloud Monitoring and Cloud Monarch when Workload Identity is enabled. The GSA should have the Monitoring Metric Writer (roles/monitoring.metricWriter) IAM role. The Kubernetes ServiceAccount `default` in the namespace `config-management-monitoring` should be binded to the GSA. This field is required when automatic Feature management is enabled.", + "description": "The Email of the Google Cloud Service Account (GSA) used for exporting Config Sync metrics to Cloud Monitoring and Cloud Monarch when Workload Identity is enabled. The GSA should have the Monitoring Metric Writer (roles/monitoring.metricWriter) IAM role. The Kubernetes ServiceAccount `default` in the namespace `config-management-monitoring` should be bound to the GSA. This field is required when automatic Feature management is enabled.", "type": "string" }, "oci": { @@ -3316,10 +3316,6 @@ "tenant": { "description": "Kind of Azure AD account to be authenticated. Supported values are or for accounts belonging to a specific tenant.", "type": "string" - }, - "userClaim": { - "description": "Optional. Claim in the AzureAD ID Token that holds the user details.", - "type": "string" } }, "type": "object" diff --git a/gkehub/v1beta/gkehub-gen.go b/gkehub/v1beta/gkehub-gen.go index 39782920505..672a5fdb6de 100644 --- a/gkehub/v1beta/gkehub-gen.go +++ b/gkehub/v1beta/gkehub-gen.go @@ -814,8 +814,8 @@ type ConfigManagementConfigSync struct { // GSA should have the Monitoring Metric Writer // (roles/monitoring.metricWriter) IAM role. The Kubernetes // ServiceAccount `default` in the namespace - // `config-management-monitoring` should be binded to the GSA. This - // field is required when automatic Feature management is enabled. + // `config-management-monitoring` should be bound to the GSA. This field + // is required when automatic Feature management is enabled. MetricsGcpServiceAccountEmail string `json:"metricsGcpServiceAccountEmail,omitempty"` // Oci: OCI repo configuration for the cluster @@ -2744,10 +2744,6 @@ type IdentityServiceAzureADConfig struct { // values are or for accounts belonging to a specific tenant. Tenant string `json:"tenant,omitempty"` - // UserClaim: Optional. Claim in the AzureAD ID Token that holds the - // user details. - UserClaim string `json:"userClaim,omitempty"` - // ForceSendFields is a list of field names (e.g. "ClientId") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any diff --git a/networkconnectivity/v1/networkconnectivity-api.json b/networkconnectivity/v1/networkconnectivity-api.json index 4b870279f38..241b1a98291 100644 --- a/networkconnectivity/v1/networkconnectivity-api.json +++ b/networkconnectivity/v1/networkconnectivity-api.json @@ -2420,7 +2420,7 @@ } } }, - "revision": "20230712", + "revision": "20230721", "rootUrl": "https://networkconnectivity.googleapis.com/", "schemas": { "AcceptSpokeRequest": { @@ -2548,6 +2548,11 @@ "$ref": "GoogleRpcStatus", "description": "The most recent error during operating this connection." }, + "errorInfo": { + "$ref": "GoogleRpcErrorInfo", + "description": "Output only. The error info for the latest error during operating this connection.", + "readOnly": true + }, "errorType": { "description": "The error type indicates whether the error is consumer facing, producer facing or system internal.", "enum": [ @@ -2701,6 +2706,28 @@ }, "type": "object" }, + "GoogleRpcErrorInfo": { + "description": "Describes the cause of the error with structured details. Example of an error when contacting the \"pubsub.googleapis.com\" API when it is not enabled: { \"reason\": \"API_DISABLED\" \"domain\": \"googleapis.com\" \"metadata\": { \"resource\": \"projects/123\", \"service\": \"pubsub.googleapis.com\" } } This response indicates that the pubsub.googleapis.com API is not enabled. Example of an error that is returned when attempting to create a Spanner instance in a region that is out of stock: { \"reason\": \"STOCKOUT\" \"domain\": \"spanner.googleapis.com\", \"metadata\": { \"availableRegions\": \"us-central1,us-east2\" } }", + "id": "GoogleRpcErrorInfo", + "properties": { + "domain": { + "description": "The logical grouping to which the \"reason\" belongs. The error domain is typically the registered service name of the tool or product that generates the error. Example: \"pubsub.googleapis.com\". If the error is generated by some common infrastructure, the error domain must be a globally unique value that identifies the infrastructure. For Google API infrastructure, the error domain is \"googleapis.com\".", + "type": "string" + }, + "metadata": { + "additionalProperties": { + "type": "string" + }, + "description": "Additional structured details about this error. Keys should match /[a-zA-Z0-9-_]/ and be limited to 64 characters in length. When identifying the current value of an exceeded limit, the units should be contained in the key, not the value. For example, rather than {\"instanceLimit\": \"100/request\"}, should be returned as, {\"instanceLimitPerRequest\": \"100\"}, if the client exceeds the number of instances that can be created in a single (batch) request.", + "type": "object" + }, + "reason": { + "description": "The reason of the error. This is a constant value that identifies the proximate cause of the error. Error reasons are unique within a particular domain of errors. This should be at most 63 characters and match a regular expression of `A-Z+[A-Z0-9]`, which represents UPPER_SNAKE_CASE.", + "type": "string" + } + }, + "type": "object" + }, "GoogleRpcStatus": { "description": "The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors).", "id": "GoogleRpcStatus", @@ -3469,6 +3496,11 @@ "$ref": "GoogleRpcStatus", "description": "The most recent error during operating this connection." }, + "errorInfo": { + "$ref": "GoogleRpcErrorInfo", + "description": "Output only. The error info for the latest error during operating this connection.", + "readOnly": true + }, "errorType": { "description": "The error type indicates whether the error is consumer facing, producer facing or system internal.", "enum": [ @@ -3757,14 +3789,6 @@ "readOnly": true, "type": "string" }, - "serviceConnectionMaps": { - "description": "Output only. URIs of all Service Connection Maps using this service class.", - "items": { - "type": "string" - }, - "readOnly": true, - "type": "array" - }, "updateTime": { "description": "Output only. Time when the ServiceClass was updated.", "format": "google-datetime", diff --git a/networkconnectivity/v1/networkconnectivity-gen.go b/networkconnectivity/v1/networkconnectivity-gen.go index f6a86211acf..07badd2574e 100644 --- a/networkconnectivity/v1/networkconnectivity-gen.go +++ b/networkconnectivity/v1/networkconnectivity-gen.go @@ -590,6 +590,10 @@ type ConsumerPscConnection struct { // Error: The most recent error during operating this connection. Error *GoogleRpcStatus `json:"error,omitempty"` + // ErrorInfo: Output only. The error info for the latest error during + // operating this connection. + ErrorInfo *GoogleRpcErrorInfo `json:"errorInfo,omitempty"` + // ErrorType: The error type indicates whether the error is consumer // facing, producer facing or system internal. // @@ -844,6 +848,65 @@ func (s *GoogleLongrunningOperation) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleRpcErrorInfo: Describes the cause of the error with structured +// details. Example of an error when contacting the +// "pubsub.googleapis.com" API when it is not enabled: { "reason": +// "API_DISABLED" "domain": "googleapis.com" "metadata": { "resource": +// "projects/123", "service": "pubsub.googleapis.com" } } This response +// indicates that the pubsub.googleapis.com API is not enabled. Example +// of an error that is returned when attempting to create a Spanner +// instance in a region that is out of stock: { "reason": "STOCKOUT" +// "domain": "spanner.googleapis.com", "metadata": { "availableRegions": +// "us-central1,us-east2" } } +type GoogleRpcErrorInfo struct { + // Domain: The logical grouping to which the "reason" belongs. The error + // domain is typically the registered service name of the tool or + // product that generates the error. Example: "pubsub.googleapis.com". + // If the error is generated by some common infrastructure, the error + // domain must be a globally unique value that identifies the + // infrastructure. For Google API infrastructure, the error domain is + // "googleapis.com". + Domain string `json:"domain,omitempty"` + + // Metadata: Additional structured details about this error. Keys should + // match /[a-zA-Z0-9-_]/ and be limited to 64 characters in length. When + // identifying the current value of an exceeded limit, the units should + // be contained in the key, not the value. For example, rather than + // {"instanceLimit": "100/request"}, should be returned as, + // {"instanceLimitPerRequest": "100"}, if the client exceeds the number + // of instances that can be created in a single (batch) request. + Metadata map[string]string `json:"metadata,omitempty"` + + // Reason: The reason of the error. This is a constant value that + // identifies the proximate cause of the error. Error reasons are unique + // within a particular domain of errors. This should be at most 63 + // characters and match a regular expression of `A-Z+[A-Z0-9]`, which + // represents UPPER_SNAKE_CASE. + Reason string `json:"reason,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Domain") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Domain") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleRpcErrorInfo) MarshalJSON() ([]byte, error) { + type NoMethod GoogleRpcErrorInfo + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleRpcStatus: The `Status` type defines a logical error model that // is suitable for different programming environments, including REST // APIs and RPC APIs. It is used by gRPC (https://github.com/grpc). Each @@ -2086,6 +2149,10 @@ type PscConnection struct { // Error: The most recent error during operating this connection. Error *GoogleRpcStatus `json:"error,omitempty"` + // ErrorInfo: Output only. The error info for the latest error during + // operating this connection. + ErrorInfo *GoogleRpcErrorInfo `json:"errorInfo,omitempty"` + // ErrorType: The error type indicates whether the error is consumer // facing, producer facing or system internal. // @@ -2451,10 +2518,6 @@ type ServiceClass struct { // Service Connection Policies. ServiceClass string `json:"serviceClass,omitempty"` - // ServiceConnectionMaps: Output only. URIs of all Service Connection - // Maps using this service class. - ServiceConnectionMaps []string `json:"serviceConnectionMaps,omitempty"` - // UpdateTime: Output only. Time when the ServiceClass was updated. UpdateTime string `json:"updateTime,omitempty"` diff --git a/notebooks/v1/notebooks-api.json b/notebooks/v1/notebooks-api.json index d18156bd85c..13dcc5b3506 100644 --- a/notebooks/v1/notebooks-api.json +++ b/notebooks/v1/notebooks-api.json @@ -1932,7 +1932,7 @@ } } }, - "revision": "20230710", + "revision": "20230720", "rootUrl": "https://notebooks.googleapis.com/", "schemas": { "AcceleratorConfig": { @@ -2046,6 +2046,11 @@ "diagnosticConfig": { "$ref": "DiagnosticConfig", "description": "Required. Defines flags that are used to run the diagnostic tool" + }, + "timeoutMinutes": { + "description": "Optional. Maxmium amount of time in minutes before the operation times out.", + "format": "int32", + "type": "integer" } }, "type": "object" @@ -2057,6 +2062,11 @@ "diagnosticConfig": { "$ref": "DiagnosticConfig", "description": "Required. Defines flags that are used to run the diagnostic tool" + }, + "timeoutMinutes": { + "description": "Optional. Maxmium amount of time in minutes before the operation times out.", + "format": "int32", + "type": "integer" } }, "type": "object" diff --git a/notebooks/v1/notebooks-gen.go b/notebooks/v1/notebooks-gen.go index 0885f23b13f..b5805364a31 100644 --- a/notebooks/v1/notebooks-gen.go +++ b/notebooks/v1/notebooks-gen.go @@ -441,6 +441,10 @@ type DiagnoseInstanceRequest struct { // diagnostic tool DiagnosticConfig *DiagnosticConfig `json:"diagnosticConfig,omitempty"` + // TimeoutMinutes: Optional. Maxmium amount of time in minutes before + // the operation times out. + TimeoutMinutes int64 `json:"timeoutMinutes,omitempty"` + // ForceSendFields is a list of field names (e.g. "DiagnosticConfig") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any @@ -472,6 +476,10 @@ type DiagnoseRuntimeRequest struct { // diagnostic tool DiagnosticConfig *DiagnosticConfig `json:"diagnosticConfig,omitempty"` + // TimeoutMinutes: Optional. Maxmium amount of time in minutes before + // the operation times out. + TimeoutMinutes int64 `json:"timeoutMinutes,omitempty"` + // ForceSendFields is a list of field names (e.g. "DiagnosticConfig") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any diff --git a/notebooks/v2/notebooks-api.json b/notebooks/v2/notebooks-api.json index 7c62630ad5c..b309a67b385 100644 --- a/notebooks/v2/notebooks-api.json +++ b/notebooks/v2/notebooks-api.json @@ -813,7 +813,7 @@ } } }, - "revision": "20230710", + "revision": "20230720", "rootUrl": "https://notebooks.googleapis.com/", "schemas": { "AcceleratorConfig": { @@ -1027,6 +1027,11 @@ "diagnosticConfig": { "$ref": "DiagnosticConfig", "description": "Required. Defines flags that are used to run the diagnostic tool" + }, + "timeoutMinutes": { + "description": "Optional. Maxmium amount of time in minutes before the operation times out.", + "format": "int32", + "type": "integer" } }, "type": "object" diff --git a/notebooks/v2/notebooks-gen.go b/notebooks/v2/notebooks-gen.go index 5390fc03df8..dbaafa5b236 100644 --- a/notebooks/v2/notebooks-gen.go +++ b/notebooks/v2/notebooks-gen.go @@ -521,6 +521,10 @@ type DiagnoseInstanceRequest struct { // diagnostic tool DiagnosticConfig *DiagnosticConfig `json:"diagnosticConfig,omitempty"` + // TimeoutMinutes: Optional. Maxmium amount of time in minutes before + // the operation times out. + TimeoutMinutes int64 `json:"timeoutMinutes,omitempty"` + // ForceSendFields is a list of field names (e.g. "DiagnosticConfig") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any diff --git a/workflowexecutions/v1/workflowexecutions-api.json b/workflowexecutions/v1/workflowexecutions-api.json index 6b8347af7b4..2f649d4f8f3 100644 --- a/workflowexecutions/v1/workflowexecutions-api.json +++ b/workflowexecutions/v1/workflowexecutions-api.json @@ -309,7 +309,7 @@ } } }, - "revision": "20230710", + "revision": "20230719", "rootUrl": "https://workflowexecutions.googleapis.com/", "schemas": { "CancelExecutionRequest": { @@ -409,7 +409,8 @@ "SUCCEEDED", "FAILED", "CANCELLED", - "UNAVAILABLE" + "UNAVAILABLE", + "QUEUED" ], "enumDescriptions": [ "Invalid state.", @@ -417,7 +418,8 @@ "The execution finished successfully.", "The execution failed with an error.", "The execution was stopped intentionally.", - "Execution data is unavailable. See the `state_error` field." + "Execution data is unavailable. See the `state_error` field.", + "Request has been placed in the backlog for processing at a later time." ], "readOnly": true, "type": "string" diff --git a/workflowexecutions/v1/workflowexecutions-gen.go b/workflowexecutions/v1/workflowexecutions-gen.go index 550c0cb9e31..f313856a0bd 100644 --- a/workflowexecutions/v1/workflowexecutions-gen.go +++ b/workflowexecutions/v1/workflowexecutions-gen.go @@ -287,6 +287,8 @@ type Execution struct { // "CANCELLED" - The execution was stopped intentionally. // "UNAVAILABLE" - Execution data is unavailable. See the // `state_error` field. + // "QUEUED" - Request has been placed in the backlog for processing at + // a later time. State string `json:"state,omitempty"` // StateError: Output only. Error regarding the state of the Execution diff --git a/workflowexecutions/v1beta/workflowexecutions-api.json b/workflowexecutions/v1beta/workflowexecutions-api.json index 105228604a2..4122a0446e2 100644 --- a/workflowexecutions/v1beta/workflowexecutions-api.json +++ b/workflowexecutions/v1beta/workflowexecutions-api.json @@ -269,7 +269,7 @@ } } }, - "revision": "20221206", + "revision": "20230719", "rootUrl": "https://workflowexecutions.googleapis.com/", "schemas": { "CancelExecutionRequest": { @@ -353,14 +353,18 @@ "ACTIVE", "SUCCEEDED", "FAILED", - "CANCELLED" + "CANCELLED", + "UNAVAILABLE", + "QUEUED" ], "enumDescriptions": [ "Invalid state.", "The execution is in progress.", "The execution finished successfully.", "The execution failed with an error.", - "The execution was stopped intentionally." + "The execution was stopped intentionally.", + "Reserved for future use.", + "Request has been placed in the backlog for processing at a later time." ], "readOnly": true, "type": "string" diff --git a/workflowexecutions/v1beta/workflowexecutions-gen.go b/workflowexecutions/v1beta/workflowexecutions-gen.go index 3cdbbe3c995..9dec9cc2273 100644 --- a/workflowexecutions/v1beta/workflowexecutions-gen.go +++ b/workflowexecutions/v1beta/workflowexecutions-gen.go @@ -272,6 +272,9 @@ type Execution struct { // "SUCCEEDED" - The execution finished successfully. // "FAILED" - The execution failed with an error. // "CANCELLED" - The execution was stopped intentionally. + // "UNAVAILABLE" - Reserved for future use. + // "QUEUED" - Request has been placed in the backlog for processing at + // a later time. State string `json:"state,omitempty"` // Status: Output only. Status tracks the current steps and progress diff --git a/workloadmanager/v1/workloadmanager-api.json b/workloadmanager/v1/workloadmanager-api.json index a479d19d3b1..647bb062de6 100644 --- a/workloadmanager/v1/workloadmanager-api.json +++ b/workloadmanager/v1/workloadmanager-api.json @@ -707,7 +707,7 @@ } } }, - "revision": "20230710", + "revision": "20230719", "rootUrl": "https://workloadmanager.googleapis.com/", "schemas": { "CancelOperationRequest": { @@ -1667,18 +1667,20 @@ "DB_TRANSACTION_LOG_HANDLING", "DB_VIRTUAL_LOG_FILE_COUNT", "DB_BUFFER_POOL_EXTENSION", - "DB_MAX_SERVER_MEMORY" + "DB_MAX_SERVER_MEMORY", + "INSTANCE_METRICS" ], "enumDescriptions": [ "Unspecified type.", - "The Sqlserver system named OS", - "The LOG_DISK_SEPARATION table", - "The MAX_PARALLELISM table", - "The CXPACKET_WAITS table", - "The TRANSACTION_LOG_HANDLING table", - "The VIRTUAL_LOG_FILE_COUNT table", - "The BUFFER_POOL_EXTENSION table", - "The MAX_SERVER_MEMORY table" + "The Sqlserver system named OS.", + "The LOG_DISK_SEPARATION table.", + "The MAX_PARALLELISM table.", + "The CXPACKET_WAITS table.", + "The TRANSACTION_LOG_HANDLING table.", + "The VIRTUAL_LOG_FILE_COUNT table.", + "The BUFFER_POOL_EXTENSION table.", + "The MAX_SERVER_MEMORY table.", + "The INSTANCE_METRICS table." ], "type": "string" } diff --git a/workloadmanager/v1/workloadmanager-gen.go b/workloadmanager/v1/workloadmanager-gen.go index dcdaddad497..4a2906aa7ae 100644 --- a/workloadmanager/v1/workloadmanager-gen.go +++ b/workloadmanager/v1/workloadmanager-gen.go @@ -1614,14 +1614,15 @@ type SqlserverValidationValidationDetail struct { // // Possible values: // "SQLSERVER_VALIDATION_TYPE_UNSPECIFIED" - Unspecified type. - // "OS" - The Sqlserver system named OS - // "DB_LOG_DISK_SEPARATION" - The LOG_DISK_SEPARATION table - // "DB_MAX_PARALLELISM" - The MAX_PARALLELISM table - // "DB_CXPACKET_WAITS" - The CXPACKET_WAITS table - // "DB_TRANSACTION_LOG_HANDLING" - The TRANSACTION_LOG_HANDLING table - // "DB_VIRTUAL_LOG_FILE_COUNT" - The VIRTUAL_LOG_FILE_COUNT table - // "DB_BUFFER_POOL_EXTENSION" - The BUFFER_POOL_EXTENSION table - // "DB_MAX_SERVER_MEMORY" - The MAX_SERVER_MEMORY table + // "OS" - The Sqlserver system named OS. + // "DB_LOG_DISK_SEPARATION" - The LOG_DISK_SEPARATION table. + // "DB_MAX_PARALLELISM" - The MAX_PARALLELISM table. + // "DB_CXPACKET_WAITS" - The CXPACKET_WAITS table. + // "DB_TRANSACTION_LOG_HANDLING" - The TRANSACTION_LOG_HANDLING table. + // "DB_VIRTUAL_LOG_FILE_COUNT" - The VIRTUAL_LOG_FILE_COUNT table. + // "DB_BUFFER_POOL_EXTENSION" - The BUFFER_POOL_EXTENSION table. + // "DB_MAX_SERVER_MEMORY" - The MAX_SERVER_MEMORY table. + // "INSTANCE_METRICS" - The INSTANCE_METRICS table. Type string `json:"type,omitempty"` // ForceSendFields is a list of field names (e.g. "Details") to