From 3944e86684b39e05e27a17e66ed54873433c6ad4 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Wed, 4 Jan 2023 10:08:11 -0800 Subject: [PATCH] feat(all): auto-regenerate discovery clients (#1794) --- alertcenter/v1beta1/alertcenter-api.json | 14 +- alertcenter/v1beta1/alertcenter-gen.go | 4 + api-list.json | 30 + apigee/v1/apigee-api.json | 134 +- apigee/v1/apigee-gen.go | 339 +- blogger/v3/blogger-api.json | 28 +- blogger/v3/blogger-gen.go | 56 + classroom/v1/classroom-api.json | 6 +- classroom/v1/classroom-gen.go | 14 +- cloudidentity/v1/cloudidentity-api.json | 10 +- cloudidentity/v1/cloudidentity-gen.go | 26 +- cloudidentity/v1beta1/cloudidentity-api.json | 88 +- cloudidentity/v1beta1/cloudidentity-gen.go | 328 +- .../v1/contactcenterinsights-api.json | 4 +- .../v1/contactcenterinsights-gen.go | 2 +- contentwarehouse/v1/contentwarehouse-api.json | 397 +- contentwarehouse/v1/contentwarehouse-gen.go | 549 +- dataform/v1beta1/dataform-api.json | 2828 +++++ dataform/v1beta1/dataform-gen.go | 9303 +++++++++++++++++ datapipelines/v1/datapipelines-api.json | 86 +- datapipelines/v1/datapipelines-gen.go | 444 +- drive/v3/drive-api.json | 18 +- drive/v3/drive-gen.go | 32 +- driveactivity/v2/driveactivity-api.json | 4 +- driveactivity/v2/driveactivity-gen.go | 5 +- firebase/v1beta1/firebase-api.json | 32 +- firebase/v1beta1/firebase-gen.go | 113 +- .../v1beta/firebasedatabase-api.json | 4 +- gmail/v1/gmail-api.json | 4 +- gmail/v1/gmail-gen.go | 4 +- integrations/v1alpha/integrations-api.json | 9 +- integrations/v1alpha/integrations-gen.go | 7 +- jobs/v3/jobs-api.json | 10 +- jobs/v3/jobs-gen.go | 18 +- jobs/v3p1beta1/jobs-api.json | 10 +- jobs/v3p1beta1/jobs-gen.go | 18 +- jobs/v4/jobs-api.json | 10 +- jobs/v4/jobs-gen.go | 18 +- notebooks/v1/notebooks-api.json | 11 +- notebooks/v1/notebooks-gen.go | 16 +- osconfig/v1/osconfig-api.json | 6 +- osconfig/v1/osconfig-gen.go | 5 +- osconfig/v1alpha/osconfig-api.json | 6 +- osconfig/v1alpha/osconfig-gen.go | 5 +- .../v1alpha1/prod_tt_sasportal-api.json | 34 +- .../v1alpha1/prod_tt_sasportal-gen.go | 59 +- securitycenter/v1/securitycenter-api.json | 12 +- securitycenter/v1/securitycenter-gen.go | 14 +- .../v1beta1/securitycenter-api.json | 12 +- securitycenter/v1beta1/securitycenter-gen.go | 14 +- .../v1beta2/securitycenter-api.json | 12 +- securitycenter/v1beta2/securitycenter-gen.go | 14 +- .../v1/servicenetworking-api.json | 8 +- servicenetworking/v1/servicenetworking-gen.go | 16 +- sheets/v4/sheets-api.json | 6 +- sheets/v4/sheets-gen.go | 41 +- texttospeech/v1/texttospeech-api.json | 208 +- texttospeech/v1/texttospeech-gen.go | 466 +- texttospeech/v1beta1/texttospeech-api.json | 146 +- texttospeech/v1beta1/texttospeech-gen.go | 510 +- vmmigration/v1/vmmigration-api.json | 8 +- vmmigration/v1/vmmigration-gen.go | 10 +- vmmigration/v1alpha1/vmmigration-api.json | 10 +- vmmigration/v1alpha1/vmmigration-gen.go | 14 +- .../v1/workflowexecutions-api.json | 4 +- .../v1/workflowexecutions-gen.go | 2 +- .../v1beta/workflowexecutions-api.json | 4 +- .../v1beta/workflowexecutions-gen.go | 2 +- workloadmanager/v1/workloadmanager-api.json | 250 +- workloadmanager/v1/workloadmanager-gen.go | 488 +- 70 files changed, 15841 insertions(+), 1578 deletions(-) create mode 100644 dataform/v1beta1/dataform-api.json create mode 100644 dataform/v1beta1/dataform-gen.go diff --git a/alertcenter/v1beta1/alertcenter-api.json b/alertcenter/v1beta1/alertcenter-api.json index e1a77487825..f7aa260332a 100644 --- a/alertcenter/v1beta1/alertcenter-api.json +++ b/alertcenter/v1beta1/alertcenter-api.json @@ -423,7 +423,7 @@ } } }, - "revision": "20221212", + "revision": "20221219", "rootUrl": "https://alertcenter.googleapis.com/", "schemas": { "AbuseDetected": { @@ -1606,7 +1606,8 @@ "DRIVE_WARN_ON_EXTERNAL_SHARING", "ALERT", "RULE_ACTIVATE", - "RULE_DEACTIVATE" + "RULE_DEACTIVATE", + "DELETE_WEBPROTECT_EVIDENCE" ], "enumDescriptions": [ "Action type is unspecified.", @@ -1614,7 +1615,8 @@ "Show a warning message when sharing a file externally.", "Send alert.", "Activate Rule Action", - "Deactivate Rule Action" + "Deactivate Rule Action", + "Chrome actions Delete web protect evidence file" ], "type": "string" }, @@ -1648,7 +1650,8 @@ "DRIVE_WARN_ON_EXTERNAL_SHARING", "ALERT", "RULE_ACTIVATE", - "RULE_DEACTIVATE" + "RULE_DEACTIVATE", + "DELETE_WEBPROTECT_EVIDENCE" ], "enumDescriptions": [ "Action type is unspecified.", @@ -1656,7 +1659,8 @@ "Show a warning message when sharing a file externally.", "Send alert.", "Activate Rule Action", - "Deactivate Rule Action" + "Deactivate Rule Action", + "Chrome actions Delete web protect evidence file" ], "type": "string" }, diff --git a/alertcenter/v1beta1/alertcenter-gen.go b/alertcenter/v1beta1/alertcenter-gen.go index 16ba4ddf476..62c3b8b48c6 100644 --- a/alertcenter/v1beta1/alertcenter-gen.go +++ b/alertcenter/v1beta1/alertcenter-gen.go @@ -2085,6 +2085,8 @@ type RuleViolationInfo struct { // "ALERT" - Send alert. // "RULE_ACTIVATE" - Activate Rule Action // "RULE_DEACTIVATE" - Deactivate Rule Action + // "DELETE_WEBPROTECT_EVIDENCE" - Chrome actions Delete web protect + // evidence file SuppressedActionTypes []string `json:"suppressedActionTypes,omitempty"` // Trigger: Trigger of the rule. @@ -2108,6 +2110,8 @@ type RuleViolationInfo struct { // "ALERT" - Send alert. // "RULE_ACTIVATE" - Activate Rule Action // "RULE_DEACTIVATE" - Deactivate Rule Action + // "DELETE_WEBPROTECT_EVIDENCE" - Chrome actions Delete web protect + // evidence file TriggeredActionTypes []string `json:"triggeredActionTypes,omitempty"` // TriggeringUserEmail: Email of the user who caused the violation. diff --git a/api-list.json b/api-list.json index 8d73b0a0fbb..20b5b8446c7 100644 --- a/api-list.json +++ b/api-list.json @@ -1729,6 +1729,21 @@ "documentationLink": "https://cloud.google.com/apigee/docs/api-platform/connectors/about-connectors", "preferred": true }, + { + "kind": "discovery#directoryItem", + "id": "contactcenteraiplatform:v1alpha1", + "name": "contactcenteraiplatform", + "version": "v1alpha1", + "title": "Contact Center AI Platform API", + "description": "", + "discoveryRestUrl": "https://contactcenteraiplatform.googleapis.com/$discovery/rest?version=v1alpha1", + "icons": { + "x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png", + "x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png" + }, + "documentationLink": "https://cloud.google.com/solutions/contact-center-ai-platform", + "preferred": true + }, { "kind": "discovery#directoryItem", "id": "contactcenterinsights:v1", @@ -1909,6 +1924,21 @@ "documentationLink": "https://cloud.google.com/dataflow", "preferred": true }, + { + "kind": "discovery#directoryItem", + "id": "dataform:v1beta1", + "name": "dataform", + "version": "v1beta1", + "title": "Dataform API", + "description": "", + "discoveryRestUrl": "https://dataform.googleapis.com/$discovery/rest?version=v1beta1", + "icons": { + "x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png", + "x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png" + }, + "documentationLink": "https://cloud.google.com/dataform/docs", + "preferred": true + }, { "kind": "discovery#directoryItem", "id": "datafusion:v1beta1", diff --git a/apigee/v1/apigee-api.json b/apigee/v1/apigee-api.json index ed523746dbd..762f680c7a5 100644 --- a/apigee/v1/apigee-api.json +++ b/apigee/v1/apigee-api.json @@ -3262,6 +3262,46 @@ "https://www.googleapis.com/auth/cloud-platform" ] }, + "getDeployedIngressConfig": { + "description": "Gets the deployed ingress configuration for an environment group.", + "flatPath": "v1/organizations/{organizationsId}/envgroups/{envgroupsId}/deployedIngressConfig", + "httpMethod": "GET", + "id": "apigee.organizations.envgroups.getDeployedIngressConfig", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. Name of the deployed configuration for the environment group in the following format: 'organizations/{org}/envgroups/{envgroup}/deployedIngressConfig'.", + "location": "path", + "pattern": "^organizations/[^/]+/envgroups/[^/]+/deployedIngressConfig$", + "required": true, + "type": "string" + }, + "view": { + "description": "When set to FULL, additional details about the specific deployments receiving traffic will be included in the IngressConfig response's RoutingRules.", + "enum": [ + "INGRESS_CONFIG_VIEW_UNSPECIFIED", + "BASIC", + "FULL" + ], + "enumDescriptions": [ + "The default/unset value. The API will default to the BASIC view.", + "Include all ingress config data necessary for the runtime to configure ingress, but no more. Routing rules will include only basepath and destination environment. This the default value.", + "Include all ingress config data, including internal debug info for each routing rule such as the proxy claiming a particular basepath and when the routing rule first appeared in the env group." + ], + "location": "query", + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "GoogleCloudApigeeV1EnvironmentGroupConfig" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, "list": { "description": "Lists all environment groups.", "flatPath": "v1/organizations/{organizationsId}/envgroups", @@ -8634,7 +8674,7 @@ } } }, - "revision": "20221110", + "revision": "20221213", "rootUrl": "https://apigee.googleapis.com/", "schemas": { "EdgeConfigstoreBundleBadBundle": { @@ -10466,7 +10506,7 @@ "type": "object" }, "GoogleCloudApigeeV1DeploymentConfig": { - "description": "NEXT ID: 9", + "description": "NEXT ID: 11", "id": "GoogleCloudApigeeV1DeploymentConfig", "properties": { "attributes": { @@ -10480,6 +10520,20 @@ "description": "Base path where the application will be hosted. Defaults to \"/\".", "type": "string" }, + "deploymentGroups": { + "description": "The list of deployment groups in which this proxy should be deployed. Not currently populated for shared flows.", + "items": { + "type": "string" + }, + "type": "array" + }, + "endpoints": { + "additionalProperties": { + "type": "string" + }, + "description": "A mapping from basepaths to proxy endpoint names in this proxy. Not populated for shared flows.", + "type": "object" + }, "location": { "description": "Location of the API proxy bundle as a URI.", "type": "string" @@ -10503,6 +10557,26 @@ }, "type": "object" }, + "GoogleCloudApigeeV1DeploymentGroupConfig": { + "description": "DeploymentGroupConfig represents a deployment group that should be present in a particular environment.", + "id": "GoogleCloudApigeeV1DeploymentGroupConfig", + "properties": { + "name": { + "description": "Name of the deployment group in the following format: `organizations/{org}/environments/{env}/deploymentGroups/{group}`.", + "type": "string" + }, + "revisionId": { + "description": "Revision number which can be used by the runtime to detect if the deployment group has changed between two versions.", + "format": "int64", + "type": "string" + }, + "uid": { + "description": "Unique ID. The ID will only change if the deployment group is deleted and recreated.", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudApigeeV1Developer": { "id": "GoogleCloudApigeeV1Developer", "properties": { @@ -10887,6 +10961,24 @@ }, "type": "object" }, + "GoogleCloudApigeeV1EndpointChainingRule": { + "description": "EndpointChainingRule specifies the proxies contained in a particular deployment group, so that other deployment groups can find them in chaining calls.", + "id": "GoogleCloudApigeeV1EndpointChainingRule", + "properties": { + "deploymentGroup": { + "description": "The deployment group to target for cross-shard chaining calls to these proxies.", + "type": "string" + }, + "proxyIds": { + "description": "List of proxy ids which may be found in the given deployment group.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, "GoogleCloudApigeeV1EntityMetadata": { "description": "Metadata common to many entities in this API.", "id": "GoogleCloudApigeeV1EntityMetadata", @@ -11020,6 +11112,13 @@ "$ref": "GoogleCloudApigeeV1DebugMask", "description": "Debug mask that applies to all deployments in the environment." }, + "deploymentGroups": { + "description": "List of deployment groups in the environment.", + "items": { + "$ref": "GoogleCloudApigeeV1DeploymentGroupConfig" + }, + "type": "array" + }, "deployments": { "description": "List of deployments in the environment.", "items": { @@ -11027,6 +11126,11 @@ }, "type": "array" }, + "envScopedRevisionId": { + "description": "Revision ID for environment-scoped resources (e.g. target servers, keystores) in this config. This ID will increment any time a resource not scoped to a deployment group changes.", + "format": "int64", + "type": "string" + }, "featureFlags": { "additionalProperties": { "type": "string" @@ -11189,6 +11293,13 @@ "description": "EnvironmentGroupConfig is a revisioned snapshot of an EnvironmentGroup and its associated routing rules.", "id": "GoogleCloudApigeeV1EnvironmentGroupConfig", "properties": { + "endpointChainingRules": { + "description": "A list of proxies in each deployment group for proxy chaining calls.", + "items": { + "$ref": "GoogleCloudApigeeV1EndpointChainingRule" + }, + "type": "array" + }, "hostnames": { "description": "Host names for the environment group.", "items": { @@ -11196,6 +11307,10 @@ }, "type": "array" }, + "location": { + "description": "When this message appears in the top-level IngressConfig, this field will be populated in lieu of the inlined routing_rules and hostnames fields. Some URL for downloading the full EnvironmentGroupConfig for this group.", + "type": "string" + }, "name": { "description": "Name of the environment group in the following format: `organizations/{org}/envgroups/{envgroup}`.", "type": "string" @@ -13740,15 +13855,26 @@ "description": "URI path prefix used to route to the specified environment. May contain one or more wildcards. For example, path segments consisting of a single `*` character will match any string.", "type": "string" }, + "deploymentGroup": { + "description": "Name of a deployment group in an environment bound to the environment group in the following format: `organizations/{org}/environment/{env}/deploymentGroups/{group}` Only one of environment or deployment_group will be set.", + "type": "string" + }, "envGroupRevision": { "description": "The env group config revision_id when this rule was added or last updated. This value is set when the rule is created and will only update if the the environment_id changes. It is used to determine if the runtime is up to date with respect to this rule. This field is omitted from the IngressConfig unless the GetDeployedIngressConfig API is called with view=FULL.", "format": "int64", "type": "string" }, "environment": { - "description": "Name of an environment bound to the environment group in the following format: `organizations/{org}/environments/{env}`.", + "description": "Name of an environment bound to the environment group in the following format: `organizations/{org}/environments/{env}`. Only one of environment or deployment_group will be set.", "type": "string" }, + "otherTargets": { + "description": "Conflicting targets, which will be resource names specifying either deployment groups or environments.", + "items": { + "type": "string" + }, + "type": "array" + }, "receiver": { "description": "The resource name of the proxy revision that is receiving this basepath in the following format: `organizations/{org}/apis/{api}/revisions/{rev}`. This field is omitted from the IngressConfig unless the GetDeployedIngressConfig API is called with view=FULL.", "type": "string" @@ -14677,7 +14803,7 @@ "type": "object" }, "GoogleCloudApigeeV1TargetServer": { - "description": "TargetServer configuration. TargetServers are used to decouple a proxy's TargetEndpoint HTTPTargetConnections from concrete URLs for backend services.", + "description": "TargetServer configuration. TargetServers are used to decouple a proxy TargetEndpoint HTTPTargetConnections from concrete URLs for backend services.", "id": "GoogleCloudApigeeV1TargetServer", "properties": { "description": { diff --git a/apigee/v1/apigee-gen.go b/apigee/v1/apigee-gen.go index 2667ac43a4b..636080be87d 100644 --- a/apigee/v1/apigee-gen.go +++ b/apigee/v1/apigee-gen.go @@ -3852,7 +3852,7 @@ func (s *GoogleCloudApigeeV1DeploymentChangeReportRoutingDeployment) MarshalJSON return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleCloudApigeeV1DeploymentConfig: NEXT ID: 9 +// GoogleCloudApigeeV1DeploymentConfig: NEXT ID: 11 type GoogleCloudApigeeV1DeploymentConfig struct { // Attributes: Additional key-value metadata for the deployment. Attributes map[string]string `json:"attributes,omitempty"` @@ -3861,6 +3861,14 @@ type GoogleCloudApigeeV1DeploymentConfig struct { // "/". BasePath string `json:"basePath,omitempty"` + // DeploymentGroups: The list of deployment groups in which this proxy + // should be deployed. Not currently populated for shared flows. + DeploymentGroups []string `json:"deploymentGroups,omitempty"` + + // Endpoints: A mapping from basepaths to proxy endpoint names in this + // proxy. Not populated for shared flows. + Endpoints map[string]string `json:"endpoints,omitempty"` + // Location: Location of the API proxy bundle as a URI. Location string `json:"location,omitempty"` @@ -3904,6 +3912,45 @@ func (s *GoogleCloudApigeeV1DeploymentConfig) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudApigeeV1DeploymentGroupConfig: DeploymentGroupConfig +// represents a deployment group that should be present in a particular +// environment. +type GoogleCloudApigeeV1DeploymentGroupConfig struct { + // Name: Name of the deployment group in the following format: + // `organizations/{org}/environments/{env}/deploymentGroups/{group}`. + Name string `json:"name,omitempty"` + + // RevisionId: Revision number which can be used by the runtime to + // detect if the deployment group has changed between two versions. + RevisionId int64 `json:"revisionId,omitempty,string"` + + // Uid: Unique ID. The ID will only change if the deployment group is + // deleted and recreated. + Uid string `json:"uid,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Name") 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. "Name") 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 *GoogleCloudApigeeV1DeploymentGroupConfig) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudApigeeV1DeploymentGroupConfig + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + type GoogleCloudApigeeV1Developer struct { // AccessType: Access type. AccessType string `json:"accessType,omitempty"` @@ -4402,6 +4449,42 @@ func (s *GoogleCloudApigeeV1EndpointAttachment) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudApigeeV1EndpointChainingRule: EndpointChainingRule +// specifies the proxies contained in a particular deployment group, so +// that other deployment groups can find them in chaining calls. +type GoogleCloudApigeeV1EndpointChainingRule struct { + // DeploymentGroup: The deployment group to target for cross-shard + // chaining calls to these proxies. + DeploymentGroup string `json:"deploymentGroup,omitempty"` + + // ProxyIds: List of proxy ids which may be found in the given + // deployment group. + ProxyIds []string `json:"proxyIds,omitempty"` + + // ForceSendFields is a list of field names (e.g. "DeploymentGroup") 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. "DeploymentGroup") 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 *GoogleCloudApigeeV1EndpointChainingRule) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudApigeeV1EndpointChainingRule + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudApigeeV1EntityMetadata: Metadata common to many entities // in this API. type GoogleCloudApigeeV1EntityMetadata struct { @@ -4566,9 +4649,18 @@ type GoogleCloudApigeeV1EnvironmentConfig struct { // environment. DebugMask *GoogleCloudApigeeV1DebugMask `json:"debugMask,omitempty"` + // DeploymentGroups: List of deployment groups in the environment. + DeploymentGroups []*GoogleCloudApigeeV1DeploymentGroupConfig `json:"deploymentGroups,omitempty"` + // Deployments: List of deployments in the environment. Deployments []*GoogleCloudApigeeV1DeploymentConfig `json:"deployments,omitempty"` + // EnvScopedRevisionId: Revision ID for environment-scoped resources + // (e.g. target servers, keystores) in this config. This ID will + // increment any time a resource not scoped to a deployment group + // changes. + EnvScopedRevisionId int64 `json:"envScopedRevisionId,omitempty,string"` + // FeatureFlags: Feature flags inherited from the organization and // environment. FeatureFlags map[string]string `json:"featureFlags,omitempty"` @@ -4758,9 +4850,19 @@ func (s *GoogleCloudApigeeV1EnvironmentGroupAttachment) MarshalJSON() ([]byte, e // a revisioned snapshot of an EnvironmentGroup and its associated // routing rules. type GoogleCloudApigeeV1EnvironmentGroupConfig struct { + // EndpointChainingRules: A list of proxies in each deployment group for + // proxy chaining calls. + EndpointChainingRules []*GoogleCloudApigeeV1EndpointChainingRule `json:"endpointChainingRules,omitempty"` + // Hostnames: Host names for the environment group. Hostnames []string `json:"hostnames,omitempty"` + // Location: When this message appears in the top-level IngressConfig, + // this field will be populated in lieu of the inlined routing_rules and + // hostnames fields. Some URL for downloading the full + // EnvironmentGroupConfig for this group. + Location string `json:"location,omitempty"` + // Name: Name of the environment group in the following format: // `organizations/{org}/envgroups/{envgroup}`. Name string `json:"name,omitempty"` @@ -4779,20 +4881,26 @@ type GoogleCloudApigeeV1EnvironmentGroupConfig struct { // change if the environment group is deleted and recreated. Uid string `json:"uid,omitempty"` - // ForceSendFields is a list of field names (e.g. "Hostnames") 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. + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. + // "EndpointChainingRules") 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. "Hostnames") 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. "EndpointChainingRules") 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:"-"` } @@ -9063,6 +9171,12 @@ type GoogleCloudApigeeV1RoutingRule struct { // consisting of a single `*` character will match any string. Basepath string `json:"basepath,omitempty"` + // DeploymentGroup: Name of a deployment group in an environment bound + // to the environment group in the following format: + // `organizations/{org}/environment/{env}/deploymentGroups/{group}` Only + // one of environment or deployment_group will be set. + DeploymentGroup string `json:"deploymentGroup,omitempty"` + // EnvGroupRevision: The env group config revision_id when this rule was // added or last updated. This value is set when the rule is created and // will only update if the the environment_id changes. It is used to @@ -9072,9 +9186,14 @@ type GoogleCloudApigeeV1RoutingRule struct { EnvGroupRevision int64 `json:"envGroupRevision,omitempty,string"` // Environment: Name of an environment bound to the environment group in - // the following format: `organizations/{org}/environments/{env}`. + // the following format: `organizations/{org}/environments/{env}`. Only + // one of environment or deployment_group will be set. Environment string `json:"environment,omitempty"` + // OtherTargets: Conflicting targets, which will be resource names + // specifying either deployment groups or environments. + OtherTargets []string `json:"otherTargets,omitempty"` + // Receiver: The resource name of the proxy revision that is receiving // this basepath in the following format: // `organizations/{org}/apis/{api}/revisions/{rev}`. This field is @@ -10581,7 +10700,7 @@ func (s *GoogleCloudApigeeV1SyncAuthorization) MarshalJSON() ([]byte, error) { } // GoogleCloudApigeeV1TargetServer: TargetServer configuration. -// TargetServers are used to decouple a proxy's TargetEndpoint +// TargetServers are used to decouple a proxy TargetEndpoint // HTTPTargetConnections from concrete URLs for backend services. type GoogleCloudApigeeV1TargetServer struct { // Description: Optional. A human-readable description of this @@ -28020,6 +28139,196 @@ func (c *OrganizationsEnvgroupsGetCall) Do(opts ...googleapi.CallOption) (*Googl } +// method id "apigee.organizations.envgroups.getDeployedIngressConfig": + +type OrganizationsEnvgroupsGetDeployedIngressConfigCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// GetDeployedIngressConfig: Gets the deployed ingress configuration for +// an environment group. +// +// - name: Name of the deployed configuration for the environment group +// in the following format: +// 'organizations/{org}/envgroups/{envgroup}/deployedIngressConfig'. +func (r *OrganizationsEnvgroupsService) GetDeployedIngressConfig(name string) *OrganizationsEnvgroupsGetDeployedIngressConfigCall { + c := &OrganizationsEnvgroupsGetDeployedIngressConfigCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// View sets the optional parameter "view": When set to FULL, additional +// details about the specific deployments receiving traffic will be +// included in the IngressConfig response's RoutingRules. +// +// Possible values: +// +// "INGRESS_CONFIG_VIEW_UNSPECIFIED" - The default/unset value. The +// +// API will default to the BASIC view. +// +// "BASIC" - Include all ingress config data necessary for the runtime +// +// to configure ingress, but no more. Routing rules will include only +// basepath and destination environment. This the default value. +// +// "FULL" - Include all ingress config data, including internal debug +// +// info for each routing rule such as the proxy claiming a particular +// basepath and when the routing rule first appeared in the env group. +func (c *OrganizationsEnvgroupsGetDeployedIngressConfigCall) View(view string) *OrganizationsEnvgroupsGetDeployedIngressConfigCall { + c.urlParams_.Set("view", view) + 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 *OrganizationsEnvgroupsGetDeployedIngressConfigCall) Fields(s ...googleapi.Field) *OrganizationsEnvgroupsGetDeployedIngressConfigCall { + 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 *OrganizationsEnvgroupsGetDeployedIngressConfigCall) IfNoneMatch(entityTag string) *OrganizationsEnvgroupsGetDeployedIngressConfigCall { + 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 *OrganizationsEnvgroupsGetDeployedIngressConfigCall) Context(ctx context.Context) *OrganizationsEnvgroupsGetDeployedIngressConfigCall { + 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 *OrganizationsEnvgroupsGetDeployedIngressConfigCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *OrganizationsEnvgroupsGetDeployedIngressConfigCall) 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, "v1/{+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 "apigee.organizations.envgroups.getDeployedIngressConfig" call. +// Exactly one of *GoogleCloudApigeeV1EnvironmentGroupConfig or error +// will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudApigeeV1EnvironmentGroupConfig.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 *OrganizationsEnvgroupsGetDeployedIngressConfigCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1EnvironmentGroupConfig, 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 := &GoogleCloudApigeeV1EnvironmentGroupConfig{ + 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": "Gets the deployed ingress configuration for an environment group.", + // "flatPath": "v1/organizations/{organizationsId}/envgroups/{envgroupsId}/deployedIngressConfig", + // "httpMethod": "GET", + // "id": "apigee.organizations.envgroups.getDeployedIngressConfig", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. Name of the deployed configuration for the environment group in the following format: 'organizations/{org}/envgroups/{envgroup}/deployedIngressConfig'.", + // "location": "path", + // "pattern": "^organizations/[^/]+/envgroups/[^/]+/deployedIngressConfig$", + // "required": true, + // "type": "string" + // }, + // "view": { + // "description": "When set to FULL, additional details about the specific deployments receiving traffic will be included in the IngressConfig response's RoutingRules.", + // "enum": [ + // "INGRESS_CONFIG_VIEW_UNSPECIFIED", + // "BASIC", + // "FULL" + // ], + // "enumDescriptions": [ + // "The default/unset value. The API will default to the BASIC view.", + // "Include all ingress config data necessary for the runtime to configure ingress, but no more. Routing rules will include only basepath and destination environment. This the default value.", + // "Include all ingress config data, including internal debug info for each routing rule such as the proxy claiming a particular basepath and when the routing rule first appeared in the env group." + // ], + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1/{+name}", + // "response": { + // "$ref": "GoogleCloudApigeeV1EnvironmentGroupConfig" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + // method id "apigee.organizations.envgroups.list": type OrganizationsEnvgroupsListCall struct { diff --git a/blogger/v3/blogger-api.json b/blogger/v3/blogger-api.json index b0ec5282236..0899b5f0451 100644 --- a/blogger/v3/blogger-api.json +++ b/blogger/v3/blogger-api.json @@ -713,6 +713,11 @@ "location": "path", "required": true, "type": "string" + }, + "useTrash": { + "description": "Move to Trash if possible", + "location": "query", + "type": "boolean" } }, "path": "v3/blogs/{blogId}/pages/{pageId}", @@ -1174,6 +1179,11 @@ "location": "path", "required": true, "type": "string" + }, + "useTrash": { + "description": "Move to Trash if possible", + "location": "query", + "type": "boolean" } }, "path": "v3/blogs/{blogId}/posts/{postId}", @@ -1386,6 +1396,22 @@ "location": "query", "type": "string" }, + "sortOption": { + "default": "DESCENDING", + "description": "Sort direction applied to post list.", + "enum": [ + "SORT_OPTION_UNSPECIFIED", + "DESCENDING", + "ASCENDING" + ], + "enumDescriptions": [ + "The unspecified sort option.", + "The option to sort posts in descending order in time.", + "The option to sort posts in ascending order in time." + ], + "location": "query", + "type": "string" + }, "startDate": { "location": "query", "type": "string" @@ -1684,7 +1710,7 @@ } } }, - "revision": "20220727", + "revision": "20221221", "rootUrl": "https://blogger.googleapis.com/", "schemas": { "Blog": { diff --git a/blogger/v3/blogger-gen.go b/blogger/v3/blogger-gen.go index 09d9f64ea7d..76bd8d37f15 100644 --- a/blogger/v3/blogger-gen.go +++ b/blogger/v3/blogger-gen.go @@ -3916,6 +3916,13 @@ func (r *PagesService) Delete(blogId string, pageId string) *PagesDeleteCall { return c } +// UseTrash sets the optional parameter "useTrash": Move to Trash if +// possible +func (c *PagesDeleteCall) UseTrash(useTrash bool) *PagesDeleteCall { + c.urlParams_.Set("useTrash", fmt.Sprint(useTrash)) + return c +} + // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. @@ -3996,6 +4003,11 @@ func (c *PagesDeleteCall) Do(opts ...googleapi.CallOption) error { // "location": "path", // "required": true, // "type": "string" + // }, + // "useTrash": { + // "description": "Move to Trash if possible", + // "location": "query", + // "type": "boolean" // } // }, // "path": "v3/blogs/{blogId}/pages/{pageId}", @@ -5735,6 +5747,13 @@ func (r *PostsService) Delete(blogId string, postId string) *PostsDeleteCall { return c } +// UseTrash sets the optional parameter "useTrash": Move to Trash if +// possible +func (c *PostsDeleteCall) UseTrash(useTrash bool) *PostsDeleteCall { + c.urlParams_.Set("useTrash", fmt.Sprint(useTrash)) + return c +} + // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. @@ -5815,6 +5834,11 @@ func (c *PostsDeleteCall) Do(opts ...googleapi.CallOption) error { // "location": "path", // "required": true, // "type": "string" + // }, + // "useTrash": { + // "description": "Move to Trash if possible", + // "location": "query", + // "type": "boolean" // } // }, // "path": "v3/blogs/{blogId}/posts/{postId}", @@ -6473,6 +6497,22 @@ func (c *PostsListCall) PageToken(pageToken string) *PostsListCall { return c } +// SortOption sets the optional parameter "sortOption": Sort direction +// applied to post list. +// +// Possible values: +// +// "SORT_OPTION_UNSPECIFIED" - The unspecified sort option. +// "DESCENDING" (default) - The option to sort posts in descending +// +// order in time. +// +// "ASCENDING" - The option to sort posts in ascending order in time. +func (c *PostsListCall) SortOption(sortOption string) *PostsListCall { + c.urlParams_.Set("sortOption", sortOption) + return c +} + // StartDate sets the optional parameter "startDate": func (c *PostsListCall) StartDate(startDate string) *PostsListCall { c.urlParams_.Set("startDate", startDate) @@ -6658,6 +6698,22 @@ func (c *PostsListCall) Do(opts ...googleapi.CallOption) (*PostList, error) { // "location": "query", // "type": "string" // }, + // "sortOption": { + // "default": "DESCENDING", + // "description": "Sort direction applied to post list.", + // "enum": [ + // "SORT_OPTION_UNSPECIFIED", + // "DESCENDING", + // "ASCENDING" + // ], + // "enumDescriptions": [ + // "The unspecified sort option.", + // "The option to sort posts in descending order in time.", + // "The option to sort posts in ascending order in time." + // ], + // "location": "query", + // "type": "string" + // }, // "startDate": { // "location": "query", // "type": "string" diff --git a/classroom/v1/classroom-api.json b/classroom/v1/classroom-api.json index aff4b4e0fd0..bb98886f2d2 100644 --- a/classroom/v1/classroom-api.json +++ b/classroom/v1/classroom-api.json @@ -297,7 +297,7 @@ ] }, "patch": { - "description": "Updates one or more fields in a course. This method returns the following error codes: * `PERMISSION_DENIED` if the requesting user is not permitted to modify the requested course or for access errors. * `NOT_FOUND` if no course exists with the requested ID. * `INVALID_ARGUMENT` if invalid fields are specified in the update mask or if no update mask is supplied. * `FAILED_PRECONDITION` for the following request errors: * CourseNotModifiable * InactiveCourseOwner", + "description": "Updates one or more fields in a course. This method returns the following error codes: * `PERMISSION_DENIED` if the requesting user is not permitted to modify the requested course or for access errors. * `NOT_FOUND` if no course exists with the requested ID. * `INVALID_ARGUMENT` if invalid fields are specified in the update mask or if no update mask is supplied. * `FAILED_PRECONDITION` for the following request errors: * CourseNotModifiable * InactiveCourseOwner * IneligibleOwner", "flatPath": "v1/courses/{id}", "httpMethod": "PATCH", "id": "classroom.courses.patch", @@ -1944,7 +1944,7 @@ ] }, "create": { - "description": "Creates an invitation. Only one invitation for a user and course may exist at a time. Delete and re-create an invitation to make changes. This method returns the following error codes: * `PERMISSION_DENIED` if the requesting user is not permitted to create invitations for this course or for access errors. * `NOT_FOUND` if the course or the user does not exist. * `FAILED_PRECONDITION` if the requested user's account is disabled or if the user already has this role or a role with greater permissions. * `ALREADY_EXISTS` if an invitation for the specified user and course already exists.", + "description": "Creates an invitation. Only one invitation for a user and course may exist at a time. Delete and re-create an invitation to make changes. This method returns the following error codes: * `PERMISSION_DENIED` if the requesting user is not permitted to create invitations for this course or for access errors. * `NOT_FOUND` if the course or the user does not exist. * `FAILED_PRECONDITION`: * if the requested user's account is disabled. * if the user already has this role or a role with greater permissions. * for the following request errors: * IneligibleOwner * `ALREADY_EXISTS` if an invitation for the specified user and course already exists.", "flatPath": "v1/invitations", "httpMethod": "POST", "id": "classroom.invitations.create", @@ -2400,7 +2400,7 @@ } } }, - "revision": "20220323", + "revision": "20221220", "rootUrl": "https://classroom.googleapis.com/", "schemas": { "Announcement": { diff --git a/classroom/v1/classroom-gen.go b/classroom/v1/classroom-gen.go index d100b5b78ad..4c0c1332228 100644 --- a/classroom/v1/classroom-gen.go +++ b/classroom/v1/classroom-gen.go @@ -3949,6 +3949,7 @@ type CoursesPatchCall struct { // `INVALID_ARGUMENT` if invalid fields are specified in the update mask // or if no update mask is supplied. * `FAILED_PRECONDITION` for the // following request errors: * CourseNotModifiable * InactiveCourseOwner +// * IneligibleOwner // // - id: Identifier of the course to update. This identifier can be // either the Classroom-assigned identifier or an alias. @@ -4064,7 +4065,7 @@ func (c *CoursesPatchCall) Do(opts ...googleapi.CallOption) (*Course, error) { } return ret, nil // { - // "description": "Updates one or more fields in a course. This method returns the following error codes: * `PERMISSION_DENIED` if the requesting user is not permitted to modify the requested course or for access errors. * `NOT_FOUND` if no course exists with the requested ID. * `INVALID_ARGUMENT` if invalid fields are specified in the update mask or if no update mask is supplied. * `FAILED_PRECONDITION` for the following request errors: * CourseNotModifiable * InactiveCourseOwner", + // "description": "Updates one or more fields in a course. This method returns the following error codes: * `PERMISSION_DENIED` if the requesting user is not permitted to modify the requested course or for access errors. * `NOT_FOUND` if no course exists with the requested ID. * `INVALID_ARGUMENT` if invalid fields are specified in the update mask or if no update mask is supplied. * `FAILED_PRECONDITION` for the following request errors: * CourseNotModifiable * InactiveCourseOwner * IneligibleOwner", // "flatPath": "v1/courses/{id}", // "httpMethod": "PATCH", // "id": "classroom.courses.patch", @@ -11586,10 +11587,11 @@ type InvitationsCreateCall struct { // make changes. This method returns the following error codes: * // `PERMISSION_DENIED` if the requesting user is not permitted to create // invitations for this course or for access errors. * `NOT_FOUND` if -// the course or the user does not exist. * `FAILED_PRECONDITION` if the -// requested user's account is disabled or if the user already has this -// role or a role with greater permissions. * `ALREADY_EXISTS` if an -// invitation for the specified user and course already exists. +// the course or the user does not exist. * `FAILED_PRECONDITION`: * if +// the requested user's account is disabled. * if the user already has +// this role or a role with greater permissions. * for the following +// request errors: * IneligibleOwner * `ALREADY_EXISTS` if an invitation +// for the specified user and course already exists. func (r *InvitationsService) Create(invitation *Invitation) *InvitationsCreateCall { c := &InvitationsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.invitation = invitation @@ -11684,7 +11686,7 @@ func (c *InvitationsCreateCall) Do(opts ...googleapi.CallOption) (*Invitation, e } return ret, nil // { - // "description": "Creates an invitation. Only one invitation for a user and course may exist at a time. Delete and re-create an invitation to make changes. This method returns the following error codes: * `PERMISSION_DENIED` if the requesting user is not permitted to create invitations for this course or for access errors. * `NOT_FOUND` if the course or the user does not exist. * `FAILED_PRECONDITION` if the requested user's account is disabled or if the user already has this role or a role with greater permissions. * `ALREADY_EXISTS` if an invitation for the specified user and course already exists.", + // "description": "Creates an invitation. Only one invitation for a user and course may exist at a time. Delete and re-create an invitation to make changes. This method returns the following error codes: * `PERMISSION_DENIED` if the requesting user is not permitted to create invitations for this course or for access errors. * `NOT_FOUND` if the course or the user does not exist. * `FAILED_PRECONDITION`: * if the requested user's account is disabled. * if the user already has this role or a role with greater permissions. * for the following request errors: * IneligibleOwner * `ALREADY_EXISTS` if an invitation for the specified user and course already exists.", // "flatPath": "v1/invitations", // "httpMethod": "POST", // "id": "classroom.invitations.create", diff --git a/cloudidentity/v1/cloudidentity-api.json b/cloudidentity/v1/cloudidentity-api.json index 8d8a35393ae..037d6c07f46 100644 --- a/cloudidentity/v1/cloudidentity-api.json +++ b/cloudidentity/v1/cloudidentity-api.json @@ -1014,7 +1014,7 @@ "type": "string" }, "parent": { - "description": "Required. The parent resource under which to list all `Group` resources. Must be of the form `identitysources/{identity_source}` for external- identity-mapped groups or `customers/{customer}` for Google Groups. The `customer` must begin with \"C\" (for example, 'C046psxkn').", + "description": "Required. The parent resource under which to list all `Group` resources. Must be of the form `identitysources/{identity_source}` for external- identity-mapped groups or `customers/{customer_id}` for Google Groups. The `customer_id` must begin with \"C\" (for example, 'C046psxkn'). [Find your customer ID.] (https://support.google.com/cloudidentity/answer/10070793)", "location": "query", "type": "string" }, @@ -1126,7 +1126,7 @@ "type": "string" }, "query": { - "description": "Required. The search query. Must be specified in [Common Expression Language](https://opensource.google/projects/cel). May only contain equality operators on the parent and inclusion operators on labels (e.g., `parent == 'customers/{customer}' \u0026\u0026 'cloudidentity.googleapis.com/groups.discussion_forum' in labels`). The `customer` must begin with \"C\" (for example, 'C046psxkn').", + "description": "Required. The search query. Must be specified in [Common Expression Language](https://opensource.google/projects/cel). May only contain equality operators on the parent and inclusion operators on labels (e.g., `parent == 'customers/{customer_id}' \u0026\u0026 'cloudidentity.googleapis.com/groups.discussion_forum' in labels`). The `customer_id` must begin with \"C\" (for example, 'C046psxkn'). [Find your customer ID.] (https://support.google.com/cloudidentity/answer/10070793)", "location": "query", "type": "string" }, @@ -1546,7 +1546,7 @@ } } }, - "revision": "20220831", + "revision": "20221221", "rootUrl": "https://cloudidentity.googleapis.com/", "schemas": { "CancelUserInvitationRequest": { @@ -2397,7 +2397,7 @@ "id": "GoogleAppsCloudidentityDevicesV1LookupSelfDeviceUsersResponse", "properties": { "customer": { - "description": "The obfuscated customer Id that may be passed back to other Devices API methods such as List, Get, etc.", + "description": "The customer resource name that may be passed back to other Devices API methods such as List, Get, etc.", "type": "string" }, "names": { @@ -2531,7 +2531,7 @@ "type": "string" }, "parent": { - "description": "Required. Immutable. The resource name of the entity under which this `Group` resides in the Cloud Identity resource hierarchy. Must be of the form `identitysources/{identity_source}` for external- identity-mapped groups or `customers/{customer}` for Google Groups. The `customer` must begin with \"C\" (for example, 'C046psxkn').", + "description": "Required. Immutable. The resource name of the entity under which this `Group` resides in the Cloud Identity resource hierarchy. Must be of the form `identitysources/{identity_source}` for external [identity-mapped groups](https://support.google.com/a/answer/9039510) or `customers/{customer_id}` for Google Groups. The `customer_id` must begin with \"C\" (for example, 'C046psxkn'). [Find your customer ID.] (https://support.google.com/cloudidentity/answer/10070793)", "type": "string" }, "updateTime": { diff --git a/cloudidentity/v1/cloudidentity-gen.go b/cloudidentity/v1/cloudidentity-gen.go index e58ca6bebda..5888094412b 100644 --- a/cloudidentity/v1/cloudidentity-gen.go +++ b/cloudidentity/v1/cloudidentity-gen.go @@ -1442,7 +1442,7 @@ type GoogleAppsCloudidentityDevicesV1ListEndpointAppsMetadata struct { // Response containing resource names of the DeviceUsers associated with // the caller's credentials. type GoogleAppsCloudidentityDevicesV1LookupSelfDeviceUsersResponse struct { - // Customer: The obfuscated customer Id that may be passed back to other + // Customer: The customer resource name that may be passed back to other // Devices API methods such as List, Get, etc. Customer string `json:"customer,omitempty"` @@ -1686,9 +1686,11 @@ type Group struct { // Parent: Required. Immutable. The resource name of the entity under // which this `Group` resides in the Cloud Identity resource hierarchy. - // Must be of the form `identitysources/{identity_source}` for external- - // identity-mapped groups or `customers/{customer}` for Google Groups. - // The `customer` must begin with "C" (for example, 'C046psxkn'). + // Must be of the form `identitysources/{identity_source}` for external + // identity-mapped groups (https://support.google.com/a/answer/9039510) + // or `customers/{customer_id}` for Google Groups. The `customer_id` + // must begin with "C" (for example, 'C046psxkn'). [Find your customer + // ID.] (https://support.google.com/cloudidentity/answer/10070793) Parent string `json:"parent,omitempty"` // UpdateTime: Output only. The time when the `Group` was last updated. @@ -7315,8 +7317,10 @@ func (c *GroupsListCall) PageToken(pageToken string) *GroupsListCall { // Parent sets the optional parameter "parent": Required. The parent // resource under which to list all `Group` resources. Must be of the // form `identitysources/{identity_source}` for external- -// identity-mapped groups or `customers/{customer}` for Google Groups. -// The `customer` must begin with "C" (for example, 'C046psxkn'). +// identity-mapped groups or `customers/{customer_id}` for Google +// Groups. The `customer_id` must begin with "C" (for example, +// 'C046psxkn'). [Find your customer ID.] +// (https://support.google.com/cloudidentity/answer/10070793) func (c *GroupsListCall) Parent(parent string) *GroupsListCall { c.urlParams_.Set("parent", parent) return c @@ -7449,7 +7453,7 @@ func (c *GroupsListCall) Do(opts ...googleapi.CallOption) (*ListGroupsResponse, // "type": "string" // }, // "parent": { - // "description": "Required. The parent resource under which to list all `Group` resources. Must be of the form `identitysources/{identity_source}` for external- identity-mapped groups or `customers/{customer}` for Google Groups. The `customer` must begin with \"C\" (for example, 'C046psxkn').", + // "description": "Required. The parent resource under which to list all `Group` resources. Must be of the form `identitysources/{identity_source}` for external- identity-mapped groups or `customers/{customer_id}` for Google Groups. The `customer_id` must begin with \"C\" (for example, 'C046psxkn'). [Find your customer ID.] (https://support.google.com/cloudidentity/answer/10070793)", // "location": "query", // "type": "string" // }, @@ -7869,9 +7873,11 @@ func (c *GroupsSearchCall) PageToken(pageToken string) *GroupsSearchCall { // query. Must be specified in Common Expression Language // (https://opensource.google/projects/cel). May only contain equality // operators on the parent and inclusion operators on labels (e.g., -// `parent == 'customers/{customer}' && +// `parent == 'customers/{customer_id}' && // 'cloudidentity.googleapis.com/groups.discussion_forum' in labels`). -// The `customer` must begin with "C" (for example, 'C046psxkn'). +// The `customer_id` must begin with "C" (for example, 'C046psxkn'). +// [Find your customer ID.] +// (https://support.google.com/cloudidentity/answer/10070793) func (c *GroupsSearchCall) Query(query string) *GroupsSearchCall { c.urlParams_.Set("query", query) return c @@ -8004,7 +8010,7 @@ func (c *GroupsSearchCall) Do(opts ...googleapi.CallOption) (*SearchGroupsRespon // "type": "string" // }, // "query": { - // "description": "Required. The search query. Must be specified in [Common Expression Language](https://opensource.google/projects/cel). May only contain equality operators on the parent and inclusion operators on labels (e.g., `parent == 'customers/{customer}' \u0026\u0026 'cloudidentity.googleapis.com/groups.discussion_forum' in labels`). The `customer` must begin with \"C\" (for example, 'C046psxkn').", + // "description": "Required. The search query. Must be specified in [Common Expression Language](https://opensource.google/projects/cel). May only contain equality operators on the parent and inclusion operators on labels (e.g., `parent == 'customers/{customer_id}' \u0026\u0026 'cloudidentity.googleapis.com/groups.discussion_forum' in labels`). The `customer_id` must begin with \"C\" (for example, 'C046psxkn'). [Find your customer ID.] (https://support.google.com/cloudidentity/answer/10070793)", // "location": "query", // "type": "string" // }, diff --git a/cloudidentity/v1beta1/cloudidentity-api.json b/cloudidentity/v1beta1/cloudidentity-api.json index bf3417eb9e0..fa46bd5b31f 100644 --- a/cloudidentity/v1beta1/cloudidentity-api.json +++ b/cloudidentity/v1beta1/cloudidentity-api.json @@ -322,6 +322,11 @@ "name" ], "parameters": { + "customer": { + "description": "Optional. [Resource name](https://cloud.google.com/apis/design/resource_names) of the customer. If you're using this API for your own organization, use `customers/my_customer` If you're using this API to manage another organization, use `customers/{customer_id}`, where customer_id is the customer to whom the device belongs.", + "location": "query", + "type": "string" + }, "name": { "description": "Required. [Resource name](https://cloud.google.com/apis/design/resource_names) of the Device in format: `devices/{device_id}`, where device_id is the unique ID assigned to the Device.", "location": "path", @@ -347,6 +352,11 @@ "name" ], "parameters": { + "customer": { + "description": "Optional. [Resource name](https://cloud.google.com/apis/design/resource_names) of the Customer in format: `customers/{customer_id}`, where customer_id is the customer to whom the device belongs.", + "location": "query", + "type": "string" + }, "name": { "description": "Required. [Resource name](https://cloud.google.com/apis/design/resource_names) of the Device in format: `devices/{device_id}`, where device_id is the unique ID assigned to the Device.", "location": "path", @@ -371,6 +381,11 @@ "id": "cloudidentity.devices.list", "parameterOrder": [], "parameters": { + "customer": { + "description": "Optional. [Resource name](https://cloud.google.com/apis/design/resource_names) of the customer.", + "location": "query", + "type": "string" + }, "filter": { "description": "Optional. Additional restrictions when fetching list of devices. For a list of search fields, refer to [Mobile device search fields](https://developers.google.com/admin-sdk/directory/v1/search-operators). Multiple search fields are separated by the space character.", "location": "query", @@ -542,6 +557,11 @@ "name" ], "parameters": { + "customer": { + "description": "Optional. [Resource name](https://cloud.google.com/apis/design/resource_names) of the customer. If you're using this API for your own organization, use `customers/my_customer` If you're using this API to manage another organization, use `customers/{customer_id}`, where customer_id is the customer to whom the device belongs.", + "location": "query", + "type": "string" + }, "name": { "description": "Required. [Resource name](https://cloud.google.com/apis/design/resource_names) of the Device in format: `devices/{device_id}/deviceUsers/{device_user_id}`, where device_id is the unique ID assigned to the Device, and device_user_id is the unique ID assigned to the User.", "location": "path", @@ -567,6 +587,11 @@ "name" ], "parameters": { + "customer": { + "description": "Optional. [Resource name](https://cloud.google.com/apis/design/resource_names) of the customer. If you're using this API for your own organization, use `customers/my_customer` If you're using this API to manage another organization, use `customers/{customer_id}`, where customer_id is the customer to whom the device belongs.", + "location": "query", + "type": "string" + }, "name": { "description": "Required. [Resource name](https://cloud.google.com/apis/design/resource_names) of the Device in format: `devices/{device_id}/deviceUsers/{device_user_id}`, where device_id is the unique ID assigned to the Device, and device_user_id is the unique ID assigned to the User.", "location": "path", @@ -593,6 +618,11 @@ "parent" ], "parameters": { + "customer": { + "description": "Optional. [Resource name](https://cloud.google.com/apis/design/resource_names) of the customer. If you're using this API for your own organization, use `customers/my_customer` If you're using this API to manage another organization, use `customers/{customer_id}`, where customer_id is the customer to whom the device belongs.", + "location": "query", + "type": "string" + }, "filter": { "description": "Optional. Additional restrictions when fetching list of devices. For a list of search fields, refer to [Mobile device search fields](https://developers.google.com/admin-sdk/directory/v1/search-operators). Multiple search fields are separated by the space character.", "location": "query", @@ -932,7 +962,7 @@ "type": "string" }, "parent": { - "description": "Required. The parent resource under which to list all `Group` resources. Must be of the form `identitysources/{identity_source_id}` for external- identity-mapped groups or `customers/{customer_id}` for Google Groups. The `customer_id` must begin with \"C\" (for example, 'C046psxkn').", + "description": "Required. The parent resource under which to list all `Group` resources. Must be of the form `identitysources/{identity_source_id}` for external- identity-mapped groups or `customers/{customer_id}` for Google Groups. The `customer_id` must begin with \"C\" (for example, 'C046psxkn'). [Find your customer ID.] (https://support.google.com/cloudidentity/answer/10070793)", "location": "query", "type": "string" }, @@ -1032,6 +1062,11 @@ "id": "cloudidentity.groups.search", "parameterOrder": [], "parameters": { + "orderBy": { + "description": "The ordering of groups for the display name or email in the search groups response. The syntax for this field can be found at https://cloud.google.com/apis/design/design_patterns#sorting_order. Example: Sort by the ascending name: order_by=\"display_name\" Sort by the descending group key email: order_by=\"group_key desc\"", + "location": "query", + "type": "string" + }, "pageSize": { "description": "The maximum number of results to return. Note that the number of results returned may be less than this value even if there are more available results. To fetch all results, clients must continue calling this method repeatedly until the response no longer contains a `next_page_token`. If unspecified, defaults to 200 for `GroupView.BASIC` and to 50 for `GroupView.FULL`. Must not be greater than 1000 for `GroupView.BASIC` or 500 for `GroupView.FULL`.", "format": "int32", @@ -1044,7 +1079,7 @@ "type": "string" }, "query": { - "description": "Required. The search query. Must be specified in [Common Expression Language](https://opensource.google/projects/cel). May only contain equality operators on the parent and inclusion operators on labels (e.g., `parent == 'customers/{customer_id}' \u0026\u0026 'cloudidentity.googleapis.com/groups.discussion_forum' in labels`). The `customer_id` must begin with \"C\" (for example, 'C046psxkn').", + "description": "Required. The search query. * Must be specified in [Common Expression Language](https://opensource.google/projects/cel). * Must contain equality operators on the parent, e.g. `parent == 'customers/{customer_id}'`. The `customer_id` must begin with \"C\" (for example, 'C046psxkn'). [Find your customer ID.] (https://support.google.com/cloudidentity/answer/10070793) * Can contain optional inclusion operators on `labels` such as `cloudidentity.googleapis.com/groups.discussion_forum' in labels`). * Can contain an optional equality operator on `domain_name` or `startsWith/contains/equality` operator on `group_key`, e.g. `domain_name == 'abc.com'`, `group_key.startsWith('dev')`, `group_key.contains('dev'), group_key == 'dev@abc.com'` * Can contain an optional `startsWith/contains/equality` operator on `display_name`, such as `display_name.startsWith('dev')` , `display_name.contains('dev')`, `display_name == 'dev'`", "location": "query", "type": "string" }, @@ -1932,7 +1967,7 @@ } } }, - "revision": "20221101", + "revision": "20221221", "rootUrl": "https://cloudidentity.googleapis.com/", "schemas": { "AddIdpCredentialOperationMetadata": { @@ -1990,7 +2025,12 @@ "ApproveDeviceUserRequest": { "description": "Request message for approving the device to access user data.", "id": "ApproveDeviceUserRequest", - "properties": {}, + "properties": { + "customer": { + "description": "Optional. [Resource name](https://cloud.google.com/apis/design/resource_names) of the customer. If you're using this API for your own organization, use `customers/my_customer` If you're using this API to manage another organization, use `customers/{customer_id}`, where customer_id is the customer to whom the device belongs.", + "type": "string" + } + }, "type": "object" }, "ApproveDeviceUserResponse": { @@ -2007,7 +2047,12 @@ "BlockDeviceUserRequest": { "description": "Request message for blocking account on device.", "id": "BlockDeviceUserRequest", - "properties": {}, + "properties": { + "customer": { + "description": "Optional. [Resource name](https://cloud.google.com/apis/design/resource_names) of the customer. If you're using this API for your own organization, use `customers/my_customer` If you're using this API to manage another organization, use `customers/{customer_id}`, where customer_id is the customer to whom the device belongs.", + "type": "string" + } + }, "type": "object" }, "BlockDeviceUserResponse": { @@ -2030,7 +2075,12 @@ "CancelWipeDeviceRequest": { "description": "Request message for cancelling an unfinished device wipe.", "id": "CancelWipeDeviceRequest", - "properties": {}, + "properties": { + "customer": { + "description": "Optional. [Resource name](https://cloud.google.com/apis/design/resource_names) of the customer. If you're using this API for your own organization, use `customers/my_customer` If you're using this API to manage another organization, use `customers/{customer_id}`, where customer_id is the customer to whom the device belongs.", + "type": "string" + } + }, "type": "object" }, "CancelWipeDeviceResponse": { @@ -2047,7 +2097,12 @@ "CancelWipeDeviceUserRequest": { "description": "Request message for cancelling an unfinished user account wipe.", "id": "CancelWipeDeviceUserRequest", - "properties": {}, + "properties": { + "customer": { + "description": "Optional. [Resource name](https://cloud.google.com/apis/design/resource_names) of the customer. If you're using this API for your own organization, use `customers/my_customer` If you're using this API to manage another organization, use `customers/{customer_id}`, where customer_id is the customer to whom the device belongs.", + "type": "string" + } + }, "type": "object" }, "CancelWipeDeviceUserResponse": { @@ -2265,6 +2320,10 @@ "description": "Request message for creating a Company Owned device.", "id": "CreateDeviceRequest", "properties": { + "customer": { + "description": "Optional. [Resource name](https://cloud.google.com/apis/design/resource_names) of the customer. If you're using this API for your own organization, use `customers/my_customer` If you're using this API to manage another organization, use `customers/{customer_id}`, where customer_id is the customer to whom the device belongs.", + "type": "string" + }, "device": { "$ref": "Device", "description": "Required. The device to be created. The name field within this device is ignored in the create method. A new name is created by the method, and returned within the response. Only the fields `device_type`, `serial_number` and `asset_tag` (if present) are used to create the device. All other fields are ignored. The `device_type` and `serial_number` fields are required." @@ -3488,7 +3547,7 @@ "type": "string" }, "parent": { - "description": "Required. Immutable. The resource name of the entity under which this `Group` resides in the Cloud Identity resource hierarchy. Must be of the form `identitysources/{identity_source_id}` for external- identity-mapped groups or `customers/{customer_id}` for Google Groups. The `customer_id` must begin with \"C\" (for example, 'C046psxkn').", + "description": "Required. Immutable. The resource name of the entity under which this `Group` resides in the Cloud Identity resource hierarchy. Must be of the form `identitysources/{identity_source}` for external [identity-mapped groups](https://support.google.com/a/answer/9039510) or `customers/{customer_id}` for Google Groups. The `customer_id` must begin with \"C\" (for example, 'C046psxkn'). [Find your customer ID.] (https://support.google.com/cloudidentity/answer/10070793)", "type": "string" }, "posixGroups": { @@ -3884,7 +3943,7 @@ "id": "LookupSelfDeviceUsersResponse", "properties": { "customer": { - "description": "The obfuscated customer Id that may be passed back to other Devices API methods such as List, Get, etc.", + "description": "The customer Id that may be passed back to other Devices API methods such as List, Get, etc.", "type": "string" }, "names": { @@ -4524,6 +4583,10 @@ "description": "Request message for wiping all data on the device.", "id": "WipeDeviceRequest", "properties": { + "customer": { + "description": "Optional. [Resource name](https://cloud.google.com/apis/design/resource_names) of the customer. If you're using this API for your own organization, use `customers/my_customer` If you're using this API to manage another organization, use `customers/{customer_id}`, where customer_id is the customer to whom the device belongs.", + "type": "string" + }, "removeResetLock": { "description": "Optional. Specifies if a user is able to factory reset a device after a Device Wipe. On iOS, this is called \"Activation Lock\", while on Android, this is known as \"Factory Reset Protection\". If true, this protection will be removed from the device, so that a user can successfully factory reset. If false, the setting is untouched on the device.", "type": "boolean" @@ -4545,7 +4608,12 @@ "WipeDeviceUserRequest": { "description": "Request message for starting an account wipe on device.", "id": "WipeDeviceUserRequest", - "properties": {}, + "properties": { + "customer": { + "description": "Optional. [Resource name](https://cloud.google.com/apis/design/resource_names) of the customer. If you're using this API for your own organization, use `customers/my_customer` If you're using this API to manage another organization, use `customers/{customer_id}`, where customer_id is the customer to whom the device belongs.", + "type": "string" + } + }, "type": "object" }, "WipeDeviceUserResponse": { diff --git a/cloudidentity/v1beta1/cloudidentity-gen.go b/cloudidentity/v1beta1/cloudidentity-gen.go index 50698e6768d..678c3b5b74d 100644 --- a/cloudidentity/v1beta1/cloudidentity-gen.go +++ b/cloudidentity/v1beta1/cloudidentity-gen.go @@ -398,6 +398,35 @@ func (s *AndroidAttributes) MarshalJSON() ([]byte, error) { // ApproveDeviceUserRequest: Request message for approving the device to // access user data. type ApproveDeviceUserRequest struct { + // Customer: Optional. Resource name + // (https://cloud.google.com/apis/design/resource_names) of the + // customer. If you're using this API for your own organization, use + // `customers/my_customer` If you're using this API to manage another + // organization, use `customers/{customer_id}`, where customer_id is the + // customer to whom the device belongs. + Customer string `json:"customer,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Customer") 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. "Customer") 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 *ApproveDeviceUserRequest) MarshalJSON() ([]byte, error) { + type NoMethod ApproveDeviceUserRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } // ApproveDeviceUserResponse: Response message for approving the device @@ -432,6 +461,35 @@ func (s *ApproveDeviceUserResponse) MarshalJSON() ([]byte, error) { // BlockDeviceUserRequest: Request message for blocking account on // device. type BlockDeviceUserRequest struct { + // Customer: Optional. Resource name + // (https://cloud.google.com/apis/design/resource_names) of the + // customer. If you're using this API for your own organization, use + // `customers/my_customer` If you're using this API to manage another + // organization, use `customers/{customer_id}`, where customer_id is the + // customer to whom the device belongs. + Customer string `json:"customer,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Customer") 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. "Customer") 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 *BlockDeviceUserRequest) MarshalJSON() ([]byte, error) { + type NoMethod BlockDeviceUserRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } // BlockDeviceUserResponse: Response message for blocking the device @@ -471,6 +529,35 @@ type CancelUserInvitationRequest struct { // CancelWipeDeviceRequest: Request message for cancelling an unfinished // device wipe. type CancelWipeDeviceRequest struct { + // Customer: Optional. Resource name + // (https://cloud.google.com/apis/design/resource_names) of the + // customer. If you're using this API for your own organization, use + // `customers/my_customer` If you're using this API to manage another + // organization, use `customers/{customer_id}`, where customer_id is the + // customer to whom the device belongs. + Customer string `json:"customer,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Customer") 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. "Customer") 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 *CancelWipeDeviceRequest) MarshalJSON() ([]byte, error) { + type NoMethod CancelWipeDeviceRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } // CancelWipeDeviceResponse: Response message for cancelling an @@ -506,6 +593,35 @@ func (s *CancelWipeDeviceResponse) MarshalJSON() ([]byte, error) { // CancelWipeDeviceUserRequest: Request message for cancelling an // unfinished user account wipe. type CancelWipeDeviceUserRequest struct { + // Customer: Optional. Resource name + // (https://cloud.google.com/apis/design/resource_names) of the + // customer. If you're using this API for your own organization, use + // `customers/my_customer` If you're using this API to manage another + // organization, use `customers/{customer_id}`, where customer_id is the + // customer to whom the device belongs. + Customer string `json:"customer,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Customer") 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. "Customer") 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 *CancelWipeDeviceUserRequest) MarshalJSON() ([]byte, error) { + type NoMethod CancelWipeDeviceUserRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } // CancelWipeDeviceUserResponse: Response message for cancelling an @@ -778,6 +894,14 @@ func (s *ClientState) MarshalJSON() ([]byte, error) { // CreateDeviceRequest: Request message for creating a Company Owned // device. type CreateDeviceRequest struct { + // Customer: Optional. Resource name + // (https://cloud.google.com/apis/design/resource_names) of the + // customer. If you're using this API for your own organization, use + // `customers/my_customer` If you're using this API to manage another + // organization, use `customers/{customer_id}`, where customer_id is the + // customer to whom the device belongs. + Customer string `json:"customer,omitempty"` + // Device: Required. The device to be created. The name field within // this device is ignored in the create method. A new name is created by // the method, and returned within the response. Only the fields @@ -786,7 +910,7 @@ type CreateDeviceRequest struct { // and `serial_number` fields are required. Device *Device `json:"device,omitempty"` - // ForceSendFields is a list of field names (e.g. "Device") to + // ForceSendFields is a list of field names (e.g. "Customer") 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 @@ -794,8 +918,8 @@ type CreateDeviceRequest struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Device") to include in API - // requests with the JSON null value. By default, fields with empty + // NullFields is a list of field names (e.g. "Customer") 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. @@ -2229,10 +2353,11 @@ type Group struct { // Parent: Required. Immutable. The resource name of the entity under // which this `Group` resides in the Cloud Identity resource hierarchy. - // Must be of the form `identitysources/{identity_source_id}` for - // external- identity-mapped groups or `customers/{customer_id}` for - // Google Groups. The `customer_id` must begin with "C" (for example, - // 'C046psxkn'). + // Must be of the form `identitysources/{identity_source}` for external + // identity-mapped groups (https://support.google.com/a/answer/9039510) + // or `customers/{customer_id}` for Google Groups. The `customer_id` + // must begin with "C" (for example, 'C046psxkn'). [Find your customer + // ID.] (https://support.google.com/cloudidentity/answer/10070793) Parent string `json:"parent,omitempty"` // PosixGroups: Optional. The POSIX groups associated with the `Group`. @@ -2978,8 +3103,8 @@ func (s *LookupMembershipNameResponse) MarshalJSON() ([]byte, error) { // LookupSelfDeviceUsersResponse: Response containing resource names of // the DeviceUsers associated with the caller's credentials. type LookupSelfDeviceUsersResponse struct { - // Customer: The obfuscated customer Id that may be passed back to other - // Devices API methods such as List, Get, etc. + // Customer: The customer Id that may be passed back to other Devices + // API methods such as List, Get, etc. Customer string `json:"customer,omitempty"` // Names: Resource names @@ -4170,6 +4295,14 @@ func (s *UserInvitation) MarshalJSON() ([]byte, error) { // WipeDeviceRequest: Request message for wiping all data on the device. type WipeDeviceRequest struct { + // Customer: Optional. Resource name + // (https://cloud.google.com/apis/design/resource_names) of the + // customer. If you're using this API for your own organization, use + // `customers/my_customer` If you're using this API to manage another + // organization, use `customers/{customer_id}`, where customer_id is the + // customer to whom the device belongs. + Customer string `json:"customer,omitempty"` + // RemoveResetLock: Optional. Specifies if a user is able to factory // reset a device after a Device Wipe. On iOS, this is called // "Activation Lock", while on Android, this is known as "Factory Reset @@ -4178,7 +4311,7 @@ type WipeDeviceRequest struct { // setting is untouched on the device. RemoveResetLock bool `json:"removeResetLock,omitempty"` - // ForceSendFields is a list of field names (e.g. "RemoveResetLock") to + // ForceSendFields is a list of field names (e.g. "Customer") 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 @@ -4186,13 +4319,12 @@ type WipeDeviceRequest struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "RemoveResetLock") 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. "Customer") 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:"-"` } @@ -4235,6 +4367,35 @@ func (s *WipeDeviceResponse) MarshalJSON() ([]byte, error) { // WipeDeviceUserRequest: Request message for starting an account wipe // on device. type WipeDeviceUserRequest struct { + // Customer: Optional. Resource name + // (https://cloud.google.com/apis/design/resource_names) of the + // customer. If you're using this API for your own organization, use + // `customers/my_customer` If you're using this API to manage another + // organization, use `customers/{customer_id}`, where customer_id is the + // customer to whom the device belongs. + Customer string `json:"customer,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Customer") 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. "Customer") 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 *WipeDeviceUserRequest) MarshalJSON() ([]byte, error) { + type NoMethod WipeDeviceUserRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } // WipeDeviceUserResponse: Response message for wiping the user's @@ -5375,6 +5536,17 @@ func (r *DevicesService) Delete(name string) *DevicesDeleteCall { return c } +// Customer sets the optional parameter "customer": Resource name +// (https://cloud.google.com/apis/design/resource_names) of the +// customer. If you're using this API for your own organization, use +// `customers/my_customer` If you're using this API to manage another +// organization, use `customers/{customer_id}`, where customer_id is the +// customer to whom the device belongs. +func (c *DevicesDeleteCall) Customer(customer string) *DevicesDeleteCall { + c.urlParams_.Set("customer", customer) + return c +} + // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. @@ -5469,6 +5641,11 @@ func (c *DevicesDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error) // "name" // ], // "parameters": { + // "customer": { + // "description": "Optional. [Resource name](https://cloud.google.com/apis/design/resource_names) of the customer. If you're using this API for your own organization, use `customers/my_customer` If you're using this API to manage another organization, use `customers/{customer_id}`, where customer_id is the customer to whom the device belongs.", + // "location": "query", + // "type": "string" + // }, // "name": { // "description": "Required. [Resource name](https://cloud.google.com/apis/design/resource_names) of the Device in format: `devices/{device_id}`, where device_id is the unique ID assigned to the Device.", // "location": "path", @@ -5511,6 +5688,15 @@ func (r *DevicesService) Get(name string) *DevicesGetCall { return c } +// Customer sets the optional parameter "customer": Resource name +// (https://cloud.google.com/apis/design/resource_names) of the Customer +// in format: `customers/{customer_id}`, where customer_id is the +// customer to whom the device belongs. +func (c *DevicesGetCall) Customer(customer string) *DevicesGetCall { + c.urlParams_.Set("customer", customer) + return c +} + // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. @@ -5618,6 +5804,11 @@ func (c *DevicesGetCall) Do(opts ...googleapi.CallOption) (*Device, error) { // "name" // ], // "parameters": { + // "customer": { + // "description": "Optional. [Resource name](https://cloud.google.com/apis/design/resource_names) of the Customer in format: `customers/{customer_id}`, where customer_id is the customer to whom the device belongs.", + // "location": "query", + // "type": "string" + // }, // "name": { // "description": "Required. [Resource name](https://cloud.google.com/apis/design/resource_names) of the Device in format: `devices/{device_id}`, where device_id is the unique ID assigned to the Device.", // "location": "path", @@ -5654,6 +5845,14 @@ func (r *DevicesService) List() *DevicesListCall { return c } +// Customer sets the optional parameter "customer": Resource name +// (https://cloud.google.com/apis/design/resource_names) of the +// customer. +func (c *DevicesListCall) Customer(customer string) *DevicesListCall { + c.urlParams_.Set("customer", customer) + return c +} + // Filter sets the optional parameter "filter": Additional restrictions // when fetching list of devices. For a list of search fields, refer to // Mobile device search fields @@ -5816,6 +6015,11 @@ func (c *DevicesListCall) Do(opts ...googleapi.CallOption) (*ListDevicesResponse // "id": "cloudidentity.devices.list", // "parameterOrder": [], // "parameters": { + // "customer": { + // "description": "Optional. [Resource name](https://cloud.google.com/apis/design/resource_names) of the customer.", + // "location": "query", + // "type": "string" + // }, // "filter": { // "description": "Optional. Additional restrictions when fetching list of devices. For a list of search fields, refer to [Mobile device search fields](https://developers.google.com/admin-sdk/directory/v1/search-operators). Multiple search fields are separated by the space character.", // "location": "query", @@ -6496,6 +6700,17 @@ func (r *DevicesDeviceUsersService) Delete(name string) *DevicesDeviceUsersDelet return c } +// Customer sets the optional parameter "customer": Resource name +// (https://cloud.google.com/apis/design/resource_names) of the +// customer. If you're using this API for your own organization, use +// `customers/my_customer` If you're using this API to manage another +// organization, use `customers/{customer_id}`, where customer_id is the +// customer to whom the device belongs. +func (c *DevicesDeviceUsersDeleteCall) Customer(customer string) *DevicesDeviceUsersDeleteCall { + c.urlParams_.Set("customer", customer) + return c +} + // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. @@ -6590,6 +6805,11 @@ func (c *DevicesDeviceUsersDeleteCall) Do(opts ...googleapi.CallOption) (*Operat // "name" // ], // "parameters": { + // "customer": { + // "description": "Optional. [Resource name](https://cloud.google.com/apis/design/resource_names) of the customer. If you're using this API for your own organization, use `customers/my_customer` If you're using this API to manage another organization, use `customers/{customer_id}`, where customer_id is the customer to whom the device belongs.", + // "location": "query", + // "type": "string" + // }, // "name": { // "description": "Required. [Resource name](https://cloud.google.com/apis/design/resource_names) of the Device in format: `devices/{device_id}/deviceUsers/{device_user_id}`, where device_id is the unique ID assigned to the Device, and device_user_id is the unique ID assigned to the User.", // "location": "path", @@ -6633,6 +6853,17 @@ func (r *DevicesDeviceUsersService) Get(name string) *DevicesDeviceUsersGetCall return c } +// Customer sets the optional parameter "customer": Resource name +// (https://cloud.google.com/apis/design/resource_names) of the +// customer. If you're using this API for your own organization, use +// `customers/my_customer` If you're using this API to manage another +// organization, use `customers/{customer_id}`, where customer_id is the +// customer to whom the device belongs. +func (c *DevicesDeviceUsersGetCall) Customer(customer string) *DevicesDeviceUsersGetCall { + c.urlParams_.Set("customer", customer) + return c +} + // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. @@ -6740,6 +6971,11 @@ func (c *DevicesDeviceUsersGetCall) Do(opts ...googleapi.CallOption) (*DeviceUse // "name" // ], // "parameters": { + // "customer": { + // "description": "Optional. [Resource name](https://cloud.google.com/apis/design/resource_names) of the customer. If you're using this API for your own organization, use `customers/my_customer` If you're using this API to manage another organization, use `customers/{customer_id}`, where customer_id is the customer to whom the device belongs.", + // "location": "query", + // "type": "string" + // }, // "name": { // "description": "Required. [Resource name](https://cloud.google.com/apis/design/resource_names) of the Device in format: `devices/{device_id}/deviceUsers/{device_user_id}`, where device_id is the unique ID assigned to the Device, and device_user_id is the unique ID assigned to the User.", // "location": "path", @@ -6782,6 +7018,17 @@ func (r *DevicesDeviceUsersService) List(parent string) *DevicesDeviceUsersListC return c } +// Customer sets the optional parameter "customer": Resource name +// (https://cloud.google.com/apis/design/resource_names) of the +// customer. If you're using this API for your own organization, use +// `customers/my_customer` If you're using this API to manage another +// organization, use `customers/{customer_id}`, where customer_id is the +// customer to whom the device belongs. +func (c *DevicesDeviceUsersListCall) Customer(customer string) *DevicesDeviceUsersListCall { + c.urlParams_.Set("customer", customer) + return c +} + // Filter sets the optional parameter "filter": Additional restrictions // when fetching list of devices. For a list of search fields, refer to // Mobile device search fields @@ -6925,6 +7172,11 @@ func (c *DevicesDeviceUsersListCall) Do(opts ...googleapi.CallOption) (*ListDevi // "parent" // ], // "parameters": { + // "customer": { + // "description": "Optional. [Resource name](https://cloud.google.com/apis/design/resource_names) of the customer. If you're using this API for your own organization, use `customers/my_customer` If you're using this API to manage another organization, use `customers/{customer_id}`, where customer_id is the customer to whom the device belongs.", + // "location": "query", + // "type": "string" + // }, // "filter": { // "description": "Optional. Additional restrictions when fetching list of devices. For a list of search fields, refer to [Mobile device search fields](https://developers.google.com/admin-sdk/directory/v1/search-operators). Multiple search fields are separated by the space character.", // "location": "query", @@ -8396,7 +8648,8 @@ func (c *GroupsListCall) PageToken(pageToken string) *GroupsListCall { // form `identitysources/{identity_source_id}` for external- // identity-mapped groups or `customers/{customer_id}` for Google // Groups. The `customer_id` must begin with "C" (for example, -// 'C046psxkn'). +// 'C046psxkn'). [Find your customer ID.] +// (https://support.google.com/cloudidentity/answer/10070793) func (c *GroupsListCall) Parent(parent string) *GroupsListCall { c.urlParams_.Set("parent", parent) return c @@ -8529,7 +8782,7 @@ func (c *GroupsListCall) Do(opts ...googleapi.CallOption) (*ListGroupsResponse, // "type": "string" // }, // "parent": { - // "description": "Required. The parent resource under which to list all `Group` resources. Must be of the form `identitysources/{identity_source_id}` for external- identity-mapped groups or `customers/{customer_id}` for Google Groups. The `customer_id` must begin with \"C\" (for example, 'C046psxkn').", + // "description": "Required. The parent resource under which to list all `Group` resources. Must be of the form `identitysources/{identity_source_id}` for external- identity-mapped groups or `customers/{customer_id}` for Google Groups. The `customer_id` must begin with \"C\" (for example, 'C046psxkn'). [Find your customer ID.] (https://support.google.com/cloudidentity/answer/10070793)", // "location": "query", // "type": "string" // }, @@ -8925,6 +9178,17 @@ func (r *GroupsService) Search() *GroupsSearchCall { return c } +// OrderBy sets the optional parameter "orderBy": The ordering of groups +// for the display name or email in the search groups response. The +// syntax for this field can be found at +// https://cloud.google.com/apis/design/design_patterns#sorting_order. +// Example: Sort by the ascending name: order_by="display_name" Sort by +// the descending group key email: order_by="group_key desc" +func (c *GroupsSearchCall) OrderBy(orderBy string) *GroupsSearchCall { + c.urlParams_.Set("orderBy", orderBy) + return c +} + // PageSize sets the optional parameter "pageSize": The maximum number // of results to return. Note that the number of results returned may be // less than this value even if there are more available results. To @@ -8947,12 +9211,21 @@ func (c *GroupsSearchCall) PageToken(pageToken string) *GroupsSearchCall { } // Query sets the optional parameter "query": Required. The search -// query. Must be specified in Common Expression Language -// (https://opensource.google/projects/cel). May only contain equality -// operators on the parent and inclusion operators on labels (e.g., -// `parent == 'customers/{customer_id}' && -// 'cloudidentity.googleapis.com/groups.discussion_forum' in labels`). +// query. * Must be specified in Common Expression Language +// (https://opensource.google/projects/cel). * Must contain equality +// operators on the parent, e.g. `parent == 'customers/{customer_id}'`. // The `customer_id` must begin with "C" (for example, 'C046psxkn'). +// [Find your customer ID.] +// (https://support.google.com/cloudidentity/answer/10070793) * Can +// contain optional inclusion operators on `labels` such as +// `cloudidentity.googleapis.com/groups.discussion_forum' in labels`). * +// Can contain an optional equality operator on `domain_name` or +// `startsWith/contains/equality` operator on `group_key`, e.g. +// `domain_name == 'abc.com'`, `group_key.startsWith('dev')`, +// `group_key.contains('dev'), group_key == 'dev@abc.com'` * Can contain +// an optional `startsWith/contains/equality` operator on +// `display_name`, such as `display_name.startsWith('dev')` , +// `display_name.contains('dev')`, `display_name == 'dev'` func (c *GroupsSearchCall) Query(query string) *GroupsSearchCall { c.urlParams_.Set("query", query) return c @@ -9072,6 +9345,11 @@ func (c *GroupsSearchCall) Do(opts ...googleapi.CallOption) (*SearchGroupsRespon // "id": "cloudidentity.groups.search", // "parameterOrder": [], // "parameters": { + // "orderBy": { + // "description": "The ordering of groups for the display name or email in the search groups response. The syntax for this field can be found at https://cloud.google.com/apis/design/design_patterns#sorting_order. Example: Sort by the ascending name: order_by=\"display_name\" Sort by the descending group key email: order_by=\"group_key desc\"", + // "location": "query", + // "type": "string" + // }, // "pageSize": { // "description": "The maximum number of results to return. Note that the number of results returned may be less than this value even if there are more available results. To fetch all results, clients must continue calling this method repeatedly until the response no longer contains a `next_page_token`. If unspecified, defaults to 200 for `GroupView.BASIC` and to 50 for `GroupView.FULL`. Must not be greater than 1000 for `GroupView.BASIC` or 500 for `GroupView.FULL`.", // "format": "int32", @@ -9084,7 +9362,7 @@ func (c *GroupsSearchCall) Do(opts ...googleapi.CallOption) (*SearchGroupsRespon // "type": "string" // }, // "query": { - // "description": "Required. The search query. Must be specified in [Common Expression Language](https://opensource.google/projects/cel). May only contain equality operators on the parent and inclusion operators on labels (e.g., `parent == 'customers/{customer_id}' \u0026\u0026 'cloudidentity.googleapis.com/groups.discussion_forum' in labels`). The `customer_id` must begin with \"C\" (for example, 'C046psxkn').", + // "description": "Required. The search query. * Must be specified in [Common Expression Language](https://opensource.google/projects/cel). * Must contain equality operators on the parent, e.g. `parent == 'customers/{customer_id}'`. The `customer_id` must begin with \"C\" (for example, 'C046psxkn'). [Find your customer ID.] (https://support.google.com/cloudidentity/answer/10070793) * Can contain optional inclusion operators on `labels` such as `cloudidentity.googleapis.com/groups.discussion_forum' in labels`). * Can contain an optional equality operator on `domain_name` or `startsWith/contains/equality` operator on `group_key`, e.g. `domain_name == 'abc.com'`, `group_key.startsWith('dev')`, `group_key.contains('dev'), group_key == 'dev@abc.com'` * Can contain an optional `startsWith/contains/equality` operator on `display_name`, such as `display_name.startsWith('dev')` , `display_name.contains('dev')`, `display_name == 'dev'`", // "location": "query", // "type": "string" // }, diff --git a/contactcenterinsights/v1/contactcenterinsights-api.json b/contactcenterinsights/v1/contactcenterinsights-api.json index fa8814fb4e2..76775306b3d 100644 --- a/contactcenterinsights/v1/contactcenterinsights-api.json +++ b/contactcenterinsights/v1/contactcenterinsights-api.json @@ -1356,7 +1356,7 @@ } } }, - "revision": "20221204", + "revision": "20221219", "rootUrl": "https://contactcenterinsights.googleapis.com/", "schemas": { "GoogleCloudContactcenterinsightsV1Analysis": { @@ -3422,7 +3422,7 @@ "type": "string" }, "value": { - "description": "String with specific view properties.", + "description": "String with specific view properties, must be non-empty.", "type": "string" } }, diff --git a/contactcenterinsights/v1/contactcenterinsights-gen.go b/contactcenterinsights/v1/contactcenterinsights-gen.go index 85b226abf55..23743823ab9 100644 --- a/contactcenterinsights/v1/contactcenterinsights-gen.go +++ b/contactcenterinsights/v1/contactcenterinsights-gen.go @@ -3695,7 +3695,7 @@ type GoogleCloudContactcenterinsightsV1View struct { // updated. UpdateTime string `json:"updateTime,omitempty"` - // Value: String with specific view properties. + // Value: String with specific view properties, must be non-empty. Value string `json:"value,omitempty"` // ServerResponse contains the HTTP response code and headers from the diff --git a/contentwarehouse/v1/contentwarehouse-api.json b/contentwarehouse/v1/contentwarehouse-api.json index ad36d4f86c9..394cb17f33c 100644 --- a/contentwarehouse/v1/contentwarehouse-api.json +++ b/contentwarehouse/v1/contentwarehouse-api.json @@ -1075,7 +1075,7 @@ } } }, - "revision": "20221213", + "revision": "20221219", "rootUrl": "https://contentwarehouse.googleapis.com/", "schemas": { "AbuseiamAbuseType": { @@ -3533,7 +3533,8 @@ "COMMSTAR_AFFINITY", "CDDB_AFFINITY", "DATA_STUDIO_SPACES_AFFINITY", - "SOJI_AFFINITY" + "SOJI_AFFINITY", + "PLAY_MOVIES_ANDROID_AFFINITY" ], "enumDescriptions": [ "", @@ -3773,6 +3774,7 @@ "", "", "", + "", "" ], "type": "string" @@ -4269,6 +4271,32 @@ }, "type": "object" }, + "AppsPeopleOzExternalMergedpeopleapiContactCreateContextInfo": { + "description": "Contact creation timestamps and related metadata. See go/contact-edit-history. This message is a pure wrapper of the shared ContactCreactionContext message so that it can be a top-level person field. No other fields should be added to the message.", + "id": "AppsPeopleOzExternalMergedpeopleapiContactCreateContextInfo", + "properties": { + "contactCreateContext": { + "$ref": "SocialGraphApiProtoContactCreateContext" + }, + "metadata": { + "$ref": "AppsPeopleOzExternalMergedpeopleapiPersonFieldMetadata" + } + }, + "type": "object" + }, + "AppsPeopleOzExternalMergedpeopleapiContactEditContextInfo": { + "description": "Contact edit timestamps and related metadata. See go/contact-edit-history. This message is a pure wrapper of the shared ContactCreactionContext message so that it can be a top-level person field. No other fields should be added to the message.", + "id": "AppsPeopleOzExternalMergedpeopleapiContactEditContextInfo", + "properties": { + "contactEditContext": { + "$ref": "SocialGraphApiProtoContactEditContext" + }, + "metadata": { + "$ref": "AppsPeopleOzExternalMergedpeopleapiPersonFieldMetadata" + } + }, + "type": "object" + }, "AppsPeopleOzExternalMergedpeopleapiContactGroupMembership": { "description": "A membership that the person has. The person can be a member of multiple circles and multiple contact-groups. A circle membership is created by adding a person to a circle by person-id or by email. A contact-group membership is created by adding a contact to a contact-group.", "id": "AppsPeopleOzExternalMergedpeopleapiContactGroupMembership", @@ -6357,6 +6385,18 @@ }, "type": "array" }, + "contactCreateContextInfo": { + "items": { + "$ref": "AppsPeopleOzExternalMergedpeopleapiContactCreateContextInfo" + }, + "type": "array" + }, + "contactEditContextInfo": { + "items": { + "$ref": "AppsPeopleOzExternalMergedpeopleapiContactEditContextInfo" + }, + "type": "array" + }, "contactGroupMembership": { "description": "Contact groups that this person is a member of.", "items": { @@ -9483,6 +9523,7 @@ "SWIPE_FOR_NOTIFICATION", "SWITCH_ACCESS", "SYSTEM_UPDATE", + "SYSTEM_UPDATES", "SYSTEM_NAVIGATION", "TALKBACK_PASSWORDS", "TEXT_TO_SPEECH", @@ -9721,6 +9762,7 @@ "", "", "", + "Deprecated, use SYSTEM_UPDATES instead.", "", "Settings page for configuring how navigation between apps is done. Specifically android has choice between Buttons of Gestures mode.", "", @@ -15278,9 +15320,13 @@ "type": "object" }, "AssistantApiSupportedClientOpSupportedExecution": { - "description": "Additional properties that client can support for executing the client op.", + "description": "Additional properties that client can support for executing the client op. They are surface-specific execution properties and are unrelated to the execution model.", "id": "AssistantApiSupportedClientOpSupportedExecution", "properties": { + "supportsPartialFulfillment": { + "description": "ClientOp execution supports special rendering behavior while the user is in the middle of expressing their query. This behavior includes: 1) New partial output always over-writes prior partial output. 2) Canceling the interaction removes partial fulfilment from any user visible interaction history. If this is true, whether to apply the special rendering behavior will be determined by PartialFulfillmentRenderingParams. More details can be found at go/ma-natcon-pf-api.", + "type": "boolean" + }, "supportsSynchronousExecution": { "description": "Client can support synchronous execution of the client op. For tts.OUTPUT client op it means that client would honor |synchronous_playback_args| argument. Please see more at go/synchronous-sounds-design.", "type": "boolean" @@ -16812,9 +16858,17 @@ "type": "object" }, "AssistantGroundingRankerMediaGroundingProviderFeatures": { - "description": "Features to be passed from Media GP to HGR. Next ID: 2", + "description": "Features to be passed from Media GP to HGR. Next ID: 4", "id": "AssistantGroundingRankerMediaGroundingProviderFeatures", "properties": { + "isSeedRadio": { + "description": "True if the media deeplink has tag SEED_RADIO.", + "type": "boolean" + }, + "isSeedRadioRequest": { + "description": "True if the user requests seed radio.", + "type": "boolean" + }, "mscRate": { "description": "MSC(Media Short Click) rate. MSC rate = total number of MSC events / total number of MSC candidates The event is considered as MSC candidate if the event is a media seeking query(excluding follow-ons) and the media result is successfully fulfilled. The event is MSC event if any of the following is in the following queries within 30 secs: FOLLOWED_BY_DUPLICATE FOLLOWED_BY_ADD_OR_DELETE_MANUAL_REFINEMENT FOLLOWED_BY_SAME_VERTICAL (MEDIA) FOLLOWED_BY_STOP More details: go/media-ranking, go/billboard-navboost, go/magma-music-actions-efrac", "format": "float", @@ -17971,7 +18025,8 @@ "CROSS_STRUCTURE_TARGETING_DISALLOWED", "NO_DEVICE_MEETS_STADIA_GAMING_CAPABILITY", "MEDIA_STATES_MISSING", - "NO_DEVICE_SATISFIES_CAPABILITIES_REQUIREMENT" + "NO_DEVICE_SATISFIES_CAPABILITIES_REQUIREMENT", + "HYBRID_DEVICE_NOT_QUALIFIED" ], "enumDescriptions": [ "Used when the type of error is not known explicitly.", @@ -17996,7 +18051,8 @@ "When user tries to target a device which is in a different structure and is not allowed. For example, if user doesn't own the structure. See go/on-multi-user-access-transitivity for more details.", "When all devices do not qualify for stadia support.", "Used when any critical media state is missing so the selection decision cannot be made. See go/partial-states-in-targeting-library for more details.", - "Error about when no qualified device satisfies the device capability requirement." + "Error about when no qualified device satisfies the device capability requirement.", + "All remote hybrid devices fail the propertries requirement specific (lock/unlock, etc) for hybrid devices (such as Tangor)." ], "type": "string" }, @@ -36850,48 +36906,6 @@ }, "type": "object" }, - "GeostorePriceInfoSourceDetails": { - "id": "GeostorePriceInfoSourceDetails", - "properties": { - "lastUpdateSources": { - "items": { - "$ref": "GeostorePriceInfoSourceDetailsSourceData" - }, - "type": "array" - }, - "sourceData": { - "items": { - "$ref": "GeostorePriceInfoSourceDetailsSourceData" - }, - "type": "array" - } - }, - "type": "object" - }, - "GeostorePriceInfoSourceDetailsSourceData": { - "id": "GeostorePriceInfoSourceDetailsSourceData", - "properties": { - "clientProjectNumber": { - "description": "Project number of the GMB API client. Set only if the source is EXTERNAL_GMB_API.", - "format": "int64", - "type": "string" - }, - "source": { - "enum": [ - "SOURCE_UNSPECIFIED", - "NMX_UI", - "EXTERNAL_GMB_API" - ], - "enumDescriptions": [ - "No source specified.", - "The menu comes from our own UI.", - "The menu comes from a third party." - ], - "type": "string" - } - }, - "type": "object" - }, "GeostorePriceInfoStatus": { "description": "Providers of PriceInfo (e.g. SinglePlatform, YEXT) send verified and unverified listings. PriceInfoStatus is used to encapsulate this information.", "id": "GeostorePriceInfoStatus", @@ -37025,10 +37039,6 @@ }, "type": "array" }, - "sourceDetails": { - "$ref": "GeostorePriceInfoSourceDetails", - "description": "Source of the information retrieved, could be from our own NMX UI or a third party API." - }, "sourceUrl": { "$ref": "GeostoreUrlListProto", "description": "Where this price list comes from. If set, this must also be a member of the price_list_url field, and represents translations of a single URL." @@ -43566,7 +43576,7 @@ "properties": { "cloudAiDocumentOption": { "$ref": "GoogleCloudContentwarehouseV1CloudAIDocumentOption", - "description": "Request Option for processing Cloud AI Document in CW Document." + "description": "Request Option for processing Cloud AI Document in Document Warehouse. This field offers limited support for mapping entities from Cloud AI Document to Warehouse Document. Please consult with product team before using this field and other available options." }, "createMask": { "description": "Field mask for creating Document fields. If mask path is empty, it means all fields are masked. For the `FieldMask` definition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask.", @@ -43579,7 +43589,7 @@ }, "policy": { "$ref": "GoogleIamV1Policy", - "description": "Default document policy during creation. Conditions defined in the policy will be ignored." + "description": "Default document policy during creation. This refers to an Identity and Access (IAM) policy, which specifies access controls for the Document. Conditions defined in the policy will be ignored." }, "requestMetadata": { "$ref": "GoogleCloudContentwarehouseV1RequestMetadata", @@ -43782,10 +43792,6 @@ "description": "The reference ID set by customers. Must be unique per project and location.", "type": "string" }, - "structuredContentUri": { - "description": "A path linked to structured content file.", - "type": "string" - }, "textExtractionDisabled": { "description": "If true, text extraction will not be performed.", "type": "boolean" @@ -44550,7 +44556,7 @@ "type": "boolean" }, "isMetadata": { - "description": "Whether the property is user supplied metadata.", + "description": "Whether the property is user supplied metadata. This out-of-the box placeholder setting can be used to tag derived properties. Its value and interpretation logic should be implemented by API user.", "type": "boolean" }, "isRepeatable": { @@ -44960,7 +44966,7 @@ "properties": { "policy": { "$ref": "GoogleIamV1Policy", - "description": "Required. REQUIRED: The complete policy to be applied to the `resource`. The size of the policy is limited to a few 10s of KB." + "description": "Required. REQUIRED: The complete policy to be applied to the `resource`. The size of the policy is limited to a few 10s of KB. This refers to an Identity and Access (IAM) policy, which specifies access controls for the Document." }, "projectOwner": { "description": "For Set Project ACL only. Authorization check for end user will be ignored when project_owner=true.", @@ -45116,7 +45122,7 @@ "properties": { "cloudAiDocumentOption": { "$ref": "GoogleCloudContentwarehouseV1CloudAIDocumentOption", - "description": "Request Option for processing Cloud AI Document in CW Document." + "description": "Request Option for processing Cloud AI Document in Document Warehouse. This field offers limited support for mapping entities from Cloud AI Document to Warehouse Document. Please consult with product team before using this field and other available options." }, "document": { "$ref": "GoogleCloudContentwarehouseV1Document", @@ -62011,10 +62017,6 @@ "format": "int32", "type": "integer" }, - "iconicPersonBoundingBox": { - "$ref": "PhotosVisionGroundtruthdbNormalizedBoundingBox", - "description": "Normalized bounding box of the most iconic person in the image. The x,y coordinates are in the range [0, 1]. Deprecated to comply with CDS requirements (b/228535076)." - }, "personBoundingBox": { "$ref": "LensDiscoveryStyleBoundingBox", "description": "Bounding box of the most iconic person in the image." @@ -62137,10 +62139,6 @@ "boundingBox": { "$ref": "LensDiscoveryStyleBoundingBox", "description": "Bounding box of the detected person." - }, - "normalizedBoundingBox": { - "$ref": "PhotosVisionGroundtruthdbNormalizedBoundingBox", - "description": "Normalized bounding box of the detected person. The x,y coordinates are in the range [0, 1]. Deprecated to comply with CDS requirements (b/228535076)." } }, "type": "object" @@ -64151,6 +64149,10 @@ "description": "Tidbit token rendered in generating snippet/title.", "id": "MustangSnippetsRenderedToken", "properties": { + "bolded": { + "description": "Is the rendered token bolded (insided )", + "type": "boolean" + }, "byteOffsetBegin": { "description": "Byte offset range in the rendered text that corresponds to this token. [byte_offset_begin, byte_offset_end) inclusive", "format": "int32", @@ -82372,7 +82374,8 @@ "NEW_RELEASE", "IAP_SKU_SALE", "OFFER", - "IAP_SKU_DEALS" + "IAP_SKU_DEALS", + "FEATURED_PRODUCTS" ], "enumDescriptions": [ "", @@ -82387,7 +82390,8 @@ "Events for major new app releases. Auto-generated by the recommendations backend.", "Sale events generated by sku config, rather than a sale event as declared through PDC.", "Offer - see offer types below for the types. go/liveops-config-deals", - "Out-of-app purchasable in-app promotions funded by Play." + "Out-of-app purchasable in-app promotions funded by Play.", + "Out-of-app purchasable in-app products, configured by developers through Play Console. go/store-content-featured_product-prd go/featured-in-app-products-pc-dd, go/featured-products-serving-dd" ], "type": "string" }, @@ -84232,7 +84236,7 @@ "type": "object" }, "QualityNsrNsrData": { - "description": "NOTE: When adding a new field to be propagated to Raffia check if NsrPatternSignalSpec needs to be updated. Next ID: 50", + "description": "NOTE: When adding a new field to be propagated to Raffia check if NsrPatternSignalSpec needs to be updated. Next ID: 51", "id": "QualityNsrNsrData", "properties": { "articleScore": { @@ -84331,6 +84335,10 @@ "format": "float", "type": "number" }, + "nsrEpoch": { + "description": "The epoch from which this NSR value is coming from.", + "type": "string" + }, "nsrOverrideBid": { "description": "This signal is used to unconditionally override NSR as a bid in Q*. Should only be used in case of emergency (see go/nsr-override-bid). To have any effect, the value should be present and greater than 0.001.", "format": "float", @@ -88256,6 +88264,53 @@ }, "type": "object" }, + "QualitySnippetsTruncationSnippetBoldedRange": { + "description": "A bolded range in printed snippet lines.", + "id": "QualitySnippetsTruncationSnippetBoldedRange", + "properties": { + "begin": { + "$ref": "QualitySnippetsTruncationSnippetBoldedRangePosition", + "description": "Bolded range [begin, end)" + }, + "end": { + "$ref": "QualitySnippetsTruncationSnippetBoldedRangePosition" + }, + "text": { + "description": "Only populated for debugging.", + "type": "string" + }, + "type": { + "enum": [ + "TYPE_UNSPECIFIED", + "QUERY_TERM_MATCH", + "RADISH", + "BRAIN" + ], + "enumDescriptions": [ + "", + "", + "", + "" + ], + "type": "string" + } + }, + "type": "object" + }, + "QualitySnippetsTruncationSnippetBoldedRangePosition": { + "id": "QualitySnippetsTruncationSnippetBoldedRangePosition", + "properties": { + "byteOffset": { + "format": "int32", + "type": "integer" + }, + "index": { + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, "QualityTimebasedLastSignificantUpdate": { "id": "QualityTimebasedLastSignificantUpdate", "properties": { @@ -89306,7 +89361,7 @@ "type": "object" }, "RepositoryAnnotationsRdfaRdfaRichSnippetsApplication": { - "description": "This structure holds data for application information for rich snippets Next ID: 52", + "description": "This structure holds data for application information for rich snippets Next ID: 53", "id": "RepositoryAnnotationsRdfaRdfaRichSnippetsApplication", "properties": { "appTypeData": { @@ -89409,6 +89464,9 @@ "$ref": "QualityCalypsoAppsUniversalAuLiveOpsDetailInfo", "description": "Unified proto for android LiveOps and iOS LiveEvents." }, + "localizedTrustedGenome": { + "$ref": "RepositoryAnnotationsRdfaRdfaRichSnippetsApplicationLocalizedTrustedGenome" + }, "marketplace": { "description": "Market Android or itunes", "type": "string" @@ -89582,6 +89640,20 @@ }, "type": "object" }, + "RepositoryAnnotationsRdfaRdfaRichSnippetsApplicationLocalizedTrustedGenome": { + "id": "RepositoryAnnotationsRdfaRdfaRichSnippetsApplicationLocalizedTrustedGenome", + "properties": { + "language": { + "description": "The chosen language", + "type": "string" + }, + "localizedTg": { + "$ref": "VendingConsumerProtoTrustedGenomeAnnotation", + "description": "The TG tags matching the locale of the doc, if available" + } + }, + "type": "object" + }, "RepositoryAnnotationsRdfaRdfaRichSnippetsApplicationRank": { "id": "RepositoryAnnotationsRdfaRdfaRichSnippetsApplicationRank", "properties": { @@ -92155,7 +92227,7 @@ "The range designates an aspect, that is, a modifier of some other range.", "Facets.", "", - "" + "End of facets. This line marks where to generate new values for facets." ], "type": "string" }, @@ -92332,7 +92404,7 @@ "", "Facets.", "", - "" + "End of facets. This line marks where to generate new values for facets." ], "type": "string" } @@ -100613,9 +100685,16 @@ "type": "object" }, "SnippetExtraInfoSnippetCandidateInfo": { - "description": "Next ID: 12", + "description": "Next ID: 13", "id": "SnippetExtraInfoSnippetCandidateInfo", "properties": { + "boldedRanges": { + "description": "Bolded ranges in the printed snippet lines.", + "items": { + "$ref": "QualitySnippetsTruncationSnippetBoldedRange" + }, + "type": "array" + }, "id": { "description": "Candidate identifier number, unique among all snippet candidates under each document in each request. What does this number mean: - Muppet candidates: This equals to the candidate's rank by Muppet snippets scorer. - Superroot candidates: No specific meaning, this number should be larger than that of Muppet candidates. This field is used to: - Verify whether snippet brain chooses a different snippet from Muppet (the one chosen by Muppet is always in id 0). - Print debugging information and sort candidates in debug output.", "format": "int32", @@ -101202,6 +101281,16 @@ }, "type": "object" }, + "SocialGraphApiProtoContactCreateContext": { + "description": "The ContactEditContext message is a wrapper around the generic ContactMutationContext data to represent when and where a contact create was performed.", + "id": "SocialGraphApiProtoContactCreateContext", + "properties": { + "mutationContext": { + "$ref": "SocialGraphApiProtoContactMutationContext" + } + }, + "type": "object" + }, "SocialGraphApiProtoContactDeletionContext": { "description": "The ContactDeletionContext message is a wrapper around the generic ContactMutationContext data, and will include any needed delete specific data. NOTE: Before using this message please review go/people-api-contact-deletion-context", "id": "SocialGraphApiProtoContactDeletionContext", @@ -101213,6 +101302,16 @@ }, "type": "object" }, + "SocialGraphApiProtoContactEditContext": { + "description": "The ContactEditContext message is a wrapper around the generic ContactMutationContext data to represent when and where a contact edit was performed.", + "id": "SocialGraphApiProtoContactEditContext", + "properties": { + "mutationContext": { + "$ref": "SocialGraphApiProtoContactMutationContext" + } + }, + "type": "object" + }, "SocialGraphApiProtoContactMutationContext": { "description": "This message is the generic mutation message which will encapsulate the fields which are shared between the create, update, and delete actions, including source of change, timestamp, and metadata messages passed in from the source for any source specific data (such as phone name/model from FSA).", "id": "SocialGraphApiProtoContactMutationContext", @@ -101602,15 +101701,19 @@ "type": "object" }, "SocialGraphApiProtoPartialNameOptionsParsedDisplayNameSpec": { - "description": "These options use more sophisticated logic from a location-aware name detector to parse the full name of a user into structured parts and operate on those parts. For more information on how names are parsed, see the NameOccurrence proto definition: http://google3/quality/peoplesearch/namedetector/detector/proto/name_occurrence.proto?l=50\u0026rcl=334484707 Next ID: 7", + "description": "These options use more sophisticated logic from a location-aware name detector to parse the full name of a user into structured parts and operate on those parts. For more information on how names are parsed, see the NameOccurrence proto definition: http://google3/quality/peoplesearch/namedetector/detector/proto/name_occurrence.proto?l=50\u0026rcl=334484707 In general, when parsing display names the following rules will apply to *all* specs: - Hyphenated names are broken down: \"Angelina Jollie-Pit\" is pre-processed as \"Angelina Jollie Pitt\"; - Prefixes are ignored: \"Prof. Albus Dumbledore\" is pre-processed as \"Albus Dumbledore\"; - Auxiliaries are ignored: \"Luís de Camões\" is pre-processed as \"Luís Camões\". Next ID: 8", "id": "SocialGraphApiProtoPartialNameOptionsParsedDisplayNameSpec", "properties": { "allInitialsFromParsedName": { - "description": "Extract an initial from each parsed name. For example, \"Niels Henrik David Bohr\" yields \"N. H. D. B.\". Other special cases are treated as follows: - Hyphenated names are broken down: \"Angelina Jollie-Pit\" yields \"A. J. P.\"; - Prefixes are ignored: \"Prof. Albus Dumbledore\" yields \"A. D.\"; - Auxiliaries are ignored: \"Luís de Camões\" yields \"L. C.\".", + "description": "Extract an initial from each parsed name. For example, \"Niels Henrik David Bohr\" yields \"N. H. D. B.\". Other special cases are treated as follows:", + "type": "boolean" + }, + "firstInitialAndFirstLastName": { + "description": "Show the initial of the very first name and the first last name, e.g. \"Hugo Daniel Hernandez Garcia\" yields \"H. Hernandez\".", "type": "boolean" }, "firstInitialAndVeryLastName": { - "description": "Show the initial of the very first name and the very last name, e.g. \"Ana Maria Silva\" yields \"A. Silva\". - Hyphenated names are broken down: \"Angelina Jollie-Pitt\" yields \"A. Pitt\"; - Prefixes are ignored: \"Prof. Albus Dumbledore\" yields \"A. Dumbledore\"; - Auxiliaries are ignored: \"Luís de Camões\" yields \"L. Camões\".", + "description": "Show the initial of the very first name and the very last name, e.g. \"Ana Maria Silva\" yields \"A. Silva\".", "type": "boolean" }, "knowledgeGraphNameShortening": { @@ -101632,11 +101735,11 @@ "type": "string" }, "veryFirstNameAndAllInitials": { - "description": "Show the full very first name and all the other initials, e.g. \"Ana Maria Silva\" yields \"Ana M. S.\". - Hyphenated names are broken down: \"Angelina Jollie-Pit\" yields \"Angelina J. P.\"; - Prefixes are ignored: \"Prof. Albus Dumbledore\" yields \"Albus D.\"; - Auxiliaries are ignored: \"Luís de Camões\" yields \"Luís C.\".", + "description": "Show the full very first name and all the other initials, e.g. \"Ana Maria Silva\" yields \"Ana M. S.\".", "type": "boolean" }, "veryFirstNameOnly": { - "description": "Show the very first name only, e.g. \"Ana Maria Silva\" yields \"Ana\". - Hyphenated names are broken down: \"Mary-Kate Smith\" yields \"Mary\"; - Prefixes are ignored: \"Prof. Albus Dumbledore\" yields \"Albus\";", + "description": "Show the very first name only, e.g. \"Ana Maria Silva\" yields \"Ana\".", "type": "boolean" } }, @@ -103020,12 +103123,12 @@ "id": "StorageGraphBfgPolicyMetadata", "properties": { "availabilityEndTimestamp": { - "description": "Timestamp after which data with this policy cannot be used. This value must be strictly larger/later than availability_start_time, if both are set. WARNING: This field is WIP and please do not populate it without reading go/ke-dg-tape and consulting ke-data-governance@.", + "description": "Timestamp after which data with this policy cannot be used. This value must be strictly larger/later than availability_start_time, if both are set.", "format": "google-datetime", "type": "string" }, "availabilityStartTimestamp": { - "description": "Timestamp before which data with this policy cannot be used. This value must be strictly smaller/earlier than availability_end_time, if both are set. WARNING: This field is WIP and please do not populate it without reading go/ke-dg-tape and consulting ke-data-governance@.", + "description": "Timestamp before which data with this policy cannot be used. This value must be strictly smaller/earlier than availability_end_time, if both are set.", "format": "google-datetime", "type": "string" }, @@ -103284,6 +103387,7 @@ "RIGHTS_MANAGEMENT_102", "DICTIONARY_DATA_OXFORD", "DICTIONARY_DATA_LE_ROBERT", + "ENTITY_TEXT_FEATURES", "AR_ONBOARDING_TEST", "AR_ONBOARDING_TEST_2", "MATERIALIZED_ENRICHER_INTERNAL", @@ -103462,6 +103566,7 @@ "Corresponding to policy id = 102.", "", "", + "Access controls for EntityTextFeatures computed by the Enricher. YOU MUST CONTACT deepkg-infra-dev@ before reading or writing data with this ACL.", "This AccessRequirement is used for testing purpose only. Please do not use it on data.", "", "Data materialized by PQM13n for Enricher. Design proposal: go/enricher-m13n-ar. YOU MUST CONTACT ke-data-platform-access@ before reading or writing data with this acl.", @@ -106528,72 +106633,25 @@ "TC_IN_PSS_CHECK_A", "TC_IN_PSS_CHECK_B", "QUERY_IS_BOOTS_ELIGIBLE", - "ENTERTAINMENT_CLUSTER_SPELLING_CORRECTION", "QUERY_HAS_SELECTED_BOOTS_CHIP", "QUERY_HAS_ONLY_UNSELECTED_BOOTS_CHIPS", "SPONSORED_ADS_CLUSTER", - "SPONSORED_ADS_CLUSTER_ATLEAST_ONE_AD", - "INSPIRED_BY", - "MOVIE_DUPLICATES_WITHIN_3_DOCS", - "MOVIE_DUPLICATES_WITHIN_5_DOCS", - "MOVIE_DUPLICATES_WITHIN_7_DOCS", - "SHOULD_SEE_LIVE_OP_CLUSTER", "BOOKS_QUERY_HAS_LANGUAGE_INTENT", - "REWARD_RIBBON_IMPRESSION", "IRON_THRONE_QUERY", - "FAMILY_LIBRARY_SHARED_DESTINATION", "GUIDED_DISCOVERY", "BOOKS_AUTHOR_QUERY", - "HOME_SPONSORED_ADS_CLUSTER", - "HOME_SPONSORED_ADS_CLUSTER_GAP_OPTOUT", - "FAMILY_FRAUD_CHALLENGE", - "BOOKS_MONETIZABLE_QUERY", - "BOOKS_NONMONETIZABLE_QUERY", - "NON_BOOKS_QUERY", "BOOTS_PROD_V1_QUERY", - "BOOTS_TAG_OVERRIDE_QUERY", - "BOOTS_KG_ANNOTATION_QUERY", - "EDITORIAL_REVIEW_CARD_ELIGIBLE", - "BOOTS_DEST_QUERY_100_INSTALLS_QUERY", - "BOOTS_DEST_QUERY_150_INSTALLS_QUERY", "SHOULD_SEE_LIVE_OP_CLUSTER_CANDIDATES", - "REV_BOOST_V2_TEST_CODE", "ENTERTAINMENT_CLUSTER_TRIGGERING", - "BOOTS_MIN_TAGS_2", "BOOTS_EN_IN", "BOOTS_EN_GB", "BOOTS_EN_PH", "BOOTS_EN_CA", - "BOOTS_EN_AU", - "BOOTS_EN_I18N", - "BOOTS_V2_STAGING", - "OFFLINE_APP_SEARCH", "ENTERTAINMENT_CLUSTER_CONTAINER_SEARCH_ENABLED", - "BEST_SELLER_CART_TAG", - "BOOTS_DEST_QUERY_50_INSTALLS_QUERY", - "BOOTS_SAFT_SPEC2", "SEARCH_NAV_SPONSORED_ADS_CLUSTER", - "BOOTS_ISTA", - "BOOTS_EN_GLOBAL", "TOP_CHART_RANKING_INFO", "CLIENT_TEST_CODE_VERIFICATION", "APPS_PUB_QUERY", - "BOOTS_V2", - "HAS_BOOKS_BIGPOOL_RECS", - "TESTING_BOTH", - "TESTING_EVENT", - "BOOTS_MORE_CHIPS", - "BOOTS_TAG_CONVERSION_BASED_RERANKING", - "BOOTS_KG_FILTERS", - "BOOTS_JP_KR", - "BOOTS_ISTA_V2", - "BOOTS_FILTERS", - "BOOTS_EN_GLOBAL_V2", - "BOOTS_ISTA_V2_WITH_BOOTS_V2", - "BOOTS_ISTA_JP_KR", - "BOOTS_VS_ISTA_JP_KR", - "CHURNED_LIVE_OP_CANDIDATES_EVENT", - "CHURNED_LIVE_OP_EVENT", "ABUSIVE_QUERY_SQUASHING_EVENT", "HOME_SPONSORED_ADS_RE_ENGAGEMENT_CLUSTER_EVENT_LEVEL", "SEARCH_LIVE_OP_QUERY_EVENT", @@ -106792,6 +106850,7 @@ "EDITORS_CHOICE_CLUSTER_SERP_EVENT_LEVEL", "BESTK_CLUSTER_SERP_EVENT_LEVEL", "LIVEOPS_CLUSTER_SERP_EVENT_LEVEL", + "QUICKPICKS_CLUSTER_SERP_EVENT_LEVEL", "INLINE_DETAILS_AQUALITY_CHECK_PASS", "INLINE_DETAILS_AQUALITY_CHECK_FAIL", "INLINE_DETAILS_IS_INLINE_URL_FRONTEND", @@ -106812,6 +106871,12 @@ "DETAILS_PAGE_AQUALITY_PASSED_EVENT_LEVEL", "INLINE_DETAILS_CALLER_AQUALITY_CHECK_PASS", "INLINE_DETAILS_CALLER_AQUALITY_CHECK_FAIL", + "HSDP_AD_NETWORK_CALLER_TABLET_AQUALITY_CHECK_UNKNOWN", + "HSDP_AD_NETWORK_CALLER_TABLET_AQUALITY_CHECK_PASS", + "HSDP_AD_NETWORK_CALLER_TABLET_AQUALITY_CHECK_FAIL", + "HSDP_INDEPENDENT_APP_CALLER_TABLET_AQUALITY_CHECK_UNKNOWN", + "HSDP_INDEPENDENT_APP_CALLER_TABLET_AQUALITY_CHECK_PASS", + "HSDP_INDEPENDENT_APP_CALLER_TABLET_AQUALITY_CHECK_FAIL", "PTP_CLUSTER_SERP_P13N_RANKING_EVENT_LEVEL", "BROAD_INTENT_REWEIGHTING_EVENT_LEVEL", "QUERY_DEPENDENT_SNIPPET_EVENT_LEVEL", @@ -106831,6 +106896,7 @@ "SECOND_PASS_POLARIS_RERANKING_EVENT_LEVEL", "SECOND_PASS_POLARIS_WITH_RANKING_CHANGE_EVENT_LEVEL", "EXPLORATORY_BOOSTING_EVENT_LEVEL", + "GEARHEAD_TOOLTIP_COOLWALK_DASHBOARD_UNAVAILABLE", "EVENT_LEVEL_TEST_CODE_LIMIT", "RESERVED_4", "RESERVED_5", @@ -107565,6 +107631,7 @@ "EDITORS_CHOICE_CLUSTER_SERP_SESSION_LEVEL", "BESTK_CLUSTER_SERP_SESSION_LEVEL", "LIVEOPS_CLUSTER_SERP_SESSION_LEVEL", + "QUICKPICKS_CLUSTER_SERP_SESSION_LEVEL", "WIDE_MEDIA_CLUSTER_INVALID_VIDEO_ASSET_SESSION_LEVEL", "ALTERNATE_DEVICE_PRESENT_SESSION_LEVEL", "MULTIPLE_ALTERNATE_DEVICES_PER_FORM_FACTOR_SESSION_LEVEL", @@ -107580,6 +107647,12 @@ "INLINE_DETAILS_AQUALITY_CHECK_FAIL_SESSION_LEVEL", "INLINE_DETAILS_CALLER_AQUALITY_CHECK_PASS_SESSION_LEVEL", "INLINE_DETAILS_CALLER_AQUALITY_CHECK_FAIL_SESSION_LEVEL", + "HSDP_AD_NETWORK_CALLER_TABLET_AQUALITY_CHECK_UNKNOWN_SESSION_LEVEL", + "HSDP_AD_NETWORK_CALLER_TABLET_AQUALITY_CHECK_PASS_SESSION_LEVEL", + "HSDP_AD_NETWORK_CALLER_TABLET_AQUALITY_CHECK_FAIL_SESSION_LEVEL", + "HSDP_INDEPENDENT_APP_CALLER_TABLET_AQUALITY_CHECK_UNKNOWN_SESSION_LEVEL", + "HSDP_INDEPENDENT_APP_CALLER_TABLET_AQUALITY_CHECK_PASS_SESSION_LEVEL", + "HSDP_INDEPENDENT_APP_CALLER_TABLET_AQUALITY_CHECK_FAIL_SESSION_LEVEL", "INLINE_DETAILS_IS_INLINE_URL_SESSION_LEVEL", "INLINE_DETAILS_IS_INLINE_URL_FRONTEND_SESSION_LEVEL", "INLINE_DETAILS_TQUALITY_CHECK_PASS_FRONTEND_SESSION_LEVEL", @@ -108227,31 +108300,11 @@ "", "", "", - "", - "", - "", - "", - "", - "", - "User should see the live op cluster.", "go/books-language-handling for details", - "", "Create test code for go/it-design experiment", - "", "go/guided-discovery-design for details.", "", "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", "User has live op cluster candidates.", "", "", @@ -108261,36 +108314,9 @@ "", "", "", - "", - "", - "Aqua grammar is used to narrow to offline apps.", - "", - "", - "", - "", - "", - "", - "", - "", "For verify the client test code logging flow.", "", "", - "User has books bigpool recs.", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", "", "", "", @@ -108488,6 +108514,7 @@ "", "", "", + "", "Event level test codes containing result of aQuality lookup during market details url matching. A failed aQuality result suppresses inline details.", "", "Event level test code for Aquality/Tquality filtering in LMD project. This is a duplicated testcode created for logging in frontend.", @@ -108508,6 +108535,12 @@ "", "", "", + "Event level test codes containing results for caller tablet aQaulity checks for HSDP.", + "", + "", + "", + "", + "", "Event level test code for cluster, p13n ranking.", "TestCode for Broad Intent Reweighting Event Level.", "Event level test code for query dependent snippet.", @@ -108527,6 +108560,7 @@ "Second pass polaris reranking event level.", "Second pass polaris with ranking change event level.", "Exploratory boosting event level.", + "Tooltip for unavailable dashboard support for selected navigation app.", "", "", "", @@ -109261,6 +109295,7 @@ "", "", "", + "", "Session level test code logged when the wide media card has invalid video asset in the asset agnostic 3x experiment.", "Session level test code that indicates that the user has at least one alternate form factor device.", "Session level test code that indicates that the user has at more than one alternate form factor devices per form factor.", @@ -109276,6 +109311,12 @@ "", "", "", + "Session level test codes containing results for caller tablet aQaulity checks for HSDP.", + "", + "", + "", + "", + "", "Session level test code indicating external details URL is an inline URL.", "Session level test code for Aquality/Tquality filtering in LMD project. This is a duplicated testcode created for logging in frontend.", "", @@ -126933,7 +126974,7 @@ } }, "servicePath": "", - "title": "contentwarehouse API", + "title": "Document AI Warehouse API", "version": "v1", "version_module": true } \ No newline at end of file diff --git a/contentwarehouse/v1/contentwarehouse-gen.go b/contentwarehouse/v1/contentwarehouse-gen.go index b6f101d0029..2a6c58deb02 100644 --- a/contentwarehouse/v1/contentwarehouse-gen.go +++ b/contentwarehouse/v1/contentwarehouse-gen.go @@ -4,7 +4,7 @@ // Code generated file. DO NOT EDIT. -// Package contentwarehouse provides access to the contentwarehouse API. +// Package contentwarehouse provides access to the Document AI Warehouse API. // // For product documentation, see: https://cloud.google.com/document-warehouse // @@ -3131,6 +3131,7 @@ type AppsPeopleOzExternalMergedpeopleapiAffinity struct { // "CDDB_AFFINITY" // "DATA_STUDIO_SPACES_AFFINITY" // "SOJI_AFFINITY" + // "PLAY_MOVIES_ANDROID_AFFINITY" AffinityType string `json:"affinityType,omitempty"` // ContainerId: The ID of the container @@ -4021,6 +4022,75 @@ func (s *AppsPeopleOzExternalMergedpeopleapiConnectionReminder) MarshalJSON() ([ return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// AppsPeopleOzExternalMergedpeopleapiContactCreateContextInfo: Contact +// creation timestamps and related metadata. See +// go/contact-edit-history. This message is a pure wrapper of the shared +// ContactCreactionContext message so that it can be a top-level person +// field. No other fields should be added to the message. +type AppsPeopleOzExternalMergedpeopleapiContactCreateContextInfo struct { + ContactCreateContext *SocialGraphApiProtoContactCreateContext `json:"contactCreateContext,omitempty"` + + Metadata *AppsPeopleOzExternalMergedpeopleapiPersonFieldMetadata `json:"metadata,omitempty"` + + // ForceSendFields is a list of field names (e.g. + // "ContactCreateContext") 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. "ContactCreateContext") 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 *AppsPeopleOzExternalMergedpeopleapiContactCreateContextInfo) MarshalJSON() ([]byte, error) { + type NoMethod AppsPeopleOzExternalMergedpeopleapiContactCreateContextInfo + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// AppsPeopleOzExternalMergedpeopleapiContactEditContextInfo: Contact +// edit timestamps and related metadata. See go/contact-edit-history. +// This message is a pure wrapper of the shared ContactCreactionContext +// message so that it can be a top-level person field. No other fields +// should be added to the message. +type AppsPeopleOzExternalMergedpeopleapiContactEditContextInfo struct { + ContactEditContext *SocialGraphApiProtoContactEditContext `json:"contactEditContext,omitempty"` + + Metadata *AppsPeopleOzExternalMergedpeopleapiPersonFieldMetadata `json:"metadata,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ContactEditContext") + // 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. "ContactEditContext") 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 *AppsPeopleOzExternalMergedpeopleapiContactEditContextInfo) MarshalJSON() ([]byte, error) { + type NoMethod AppsPeopleOzExternalMergedpeopleapiContactEditContextInfo + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // AppsPeopleOzExternalMergedpeopleapiContactGroupMembership: A // membership that the person has. The person can be a member of // multiple circles and multiple contact-groups. A circle membership is @@ -7186,6 +7256,10 @@ type AppsPeopleOzExternalMergedpeopleapiPerson struct { // container. ConnectionReminder []*AppsPeopleOzExternalMergedpeopleapiConnectionReminder `json:"connectionReminder,omitempty"` + ContactCreateContextInfo []*AppsPeopleOzExternalMergedpeopleapiContactCreateContextInfo `json:"contactCreateContextInfo,omitempty"` + + ContactEditContextInfo []*AppsPeopleOzExternalMergedpeopleapiContactEditContextInfo `json:"contactEditContextInfo,omitempty"` + // ContactGroupMembership: Contact groups that this person is a member // of. ContactGroupMembership []*AppsPeopleOzExternalMergedpeopleapiContactGroupMembership `json:"contactGroupMembership,omitempty"` @@ -11339,7 +11413,8 @@ type AssistantApiClientOpPropertiesDeviceModifySettingClientOpProperty struct { // "STORAGE_USAGE" // "SWIPE_FOR_NOTIFICATION" // "SWITCH_ACCESS" - // "SYSTEM_UPDATE" + // "SYSTEM_UPDATE" - Deprecated, use SYSTEM_UPDATES instead. + // "SYSTEM_UPDATES" // "SYSTEM_NAVIGATION" - Settings page for configuring how navigation // between apps is done. Specifically android has choice between Buttons // of Gestures mode. @@ -19273,8 +19348,20 @@ func (s *AssistantApiSupportedClientOp) MarshalJSON() ([]byte, error) { } // AssistantApiSupportedClientOpSupportedExecution: Additional -// properties that client can support for executing the client op. +// properties that client can support for executing the client op. They +// are surface-specific execution properties and are unrelated to the +// execution model. type AssistantApiSupportedClientOpSupportedExecution struct { + // SupportsPartialFulfillment: ClientOp execution supports special + // rendering behavior while the user is in the middle of expressing + // their query. This behavior includes: 1) New partial output always + // over-writes prior partial output. 2) Canceling the interaction + // removes partial fulfilment from any user visible interaction history. + // If this is true, whether to apply the special rendering behavior will + // be determined by PartialFulfillmentRenderingParams. More details can + // be found at go/ma-natcon-pf-api. + SupportsPartialFulfillment bool `json:"supportsPartialFulfillment,omitempty"` + // SupportsSynchronousExecution: Client can support synchronous // execution of the client op. For tts.OUTPUT client op it means that // client would honor |synchronous_playback_args| argument. Please see @@ -19282,7 +19369,7 @@ type AssistantApiSupportedClientOpSupportedExecution struct { SupportsSynchronousExecution bool `json:"supportsSynchronousExecution,omitempty"` // ForceSendFields is a list of field names (e.g. - // "SupportsSynchronousExecution") to unconditionally include in API + // "SupportsPartialFulfillment") 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 @@ -19291,7 +19378,7 @@ type AssistantApiSupportedClientOpSupportedExecution struct { ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. - // "SupportsSynchronousExecution") to include in API requests with the + // "SupportsPartialFulfillment") 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 @@ -21701,8 +21788,14 @@ func (s *AssistantGroundingRankerGroundingProviderFeatures) MarshalJSON() ([]byt } // AssistantGroundingRankerMediaGroundingProviderFeatures: Features to -// be passed from Media GP to HGR. Next ID: 2 +// be passed from Media GP to HGR. Next ID: 4 type AssistantGroundingRankerMediaGroundingProviderFeatures struct { + // IsSeedRadio: True if the media deeplink has tag SEED_RADIO. + IsSeedRadio bool `json:"isSeedRadio,omitempty"` + + // IsSeedRadioRequest: True if the user requests seed radio. + IsSeedRadioRequest bool `json:"isSeedRadioRequest,omitempty"` + // MscRate: MSC(Media Short Click) rate. MSC rate = total number of MSC // events / total number of MSC candidates The event is considered as // MSC candidate if the event is a media seeking query(excluding @@ -21714,7 +21807,7 @@ type AssistantGroundingRankerMediaGroundingProviderFeatures struct { // go/billboard-navboost, go/magma-music-actions-efrac MscRate float64 `json:"mscRate,omitempty"` - // ForceSendFields is a list of field names (e.g. "MscRate") to + // ForceSendFields is a list of field names (e.g. "IsSeedRadio") 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 @@ -21722,10 +21815,10 @@ type AssistantGroundingRankerMediaGroundingProviderFeatures struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "MscRate") 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 + // NullFields is a list of field names (e.g. "IsSeedRadio") 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:"-"` @@ -23138,6 +23231,9 @@ type AssistantLogsDeviceSelectionResultLog struct { // go/partial-states-in-targeting-library for more details. // "NO_DEVICE_SATISFIES_CAPABILITIES_REQUIREMENT" - Error about when // no qualified device satisfies the device capability requirement. + // "HYBRID_DEVICE_NOT_QUALIFIED" - All remote hybrid devices fail the + // propertries requirement specific (lock/unlock, etc) for hybrid + // devices (such as Tangor). MediaFocusSelectionErrorType string `json:"mediaFocusSelectionErrorType,omitempty"` // ProcessorInfo: The log for each stage of Lumos, showing the number of @@ -45068,70 +45164,6 @@ func (s *GeostorePriceInfoProto) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -type GeostorePriceInfoSourceDetails struct { - LastUpdateSources []*GeostorePriceInfoSourceDetailsSourceData `json:"lastUpdateSources,omitempty"` - - SourceData []*GeostorePriceInfoSourceDetailsSourceData `json:"sourceData,omitempty"` - - // ForceSendFields is a list of field names (e.g. "LastUpdateSources") - // 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. "LastUpdateSources") 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 *GeostorePriceInfoSourceDetails) MarshalJSON() ([]byte, error) { - type NoMethod GeostorePriceInfoSourceDetails - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -type GeostorePriceInfoSourceDetailsSourceData struct { - // ClientProjectNumber: Project number of the GMB API client. Set only - // if the source is EXTERNAL_GMB_API. - ClientProjectNumber int64 `json:"clientProjectNumber,omitempty,string"` - - // Possible values: - // "SOURCE_UNSPECIFIED" - No source specified. - // "NMX_UI" - The menu comes from our own UI. - // "EXTERNAL_GMB_API" - The menu comes from a third party. - Source string `json:"source,omitempty"` - - // ForceSendFields is a list of field names (e.g. "ClientProjectNumber") - // 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. "ClientProjectNumber") 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 *GeostorePriceInfoSourceDetailsSourceData) MarshalJSON() ([]byte, error) { - type NoMethod GeostorePriceInfoSourceDetailsSourceData - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - // GeostorePriceInfoStatus: Providers of PriceInfo (e.g. SinglePlatform, // YEXT) send verified and unverified listings. PriceInfoStatus is used // to encapsulate this information. @@ -45289,10 +45321,6 @@ type GeostorePriceListProto struct { // all sections contain only the same type of items. Section []*GeostorePriceListSectionProto `json:"section,omitempty"` - // SourceDetails: Source of the information retrieved, could be from our - // own NMX UI or a third party API. - SourceDetails *GeostorePriceInfoSourceDetails `json:"sourceDetails,omitempty"` - // SourceUrl: Where this price list comes from. If set, this must also // be a member of the price_list_url field, and represents translations // of a single URL. @@ -53563,7 +53591,10 @@ type GoogleCloudContentwarehouseV1CreateDocumentMetadata struct { // for DocumentService.CreateDocument. type GoogleCloudContentwarehouseV1CreateDocumentRequest struct { // CloudAiDocumentOption: Request Option for processing Cloud AI - // Document in CW Document. + // Document in Document Warehouse. This field offers limited support for + // mapping entities from Cloud AI Document to Warehouse Document. Please + // consult with product team before using this field and other available + // options. CloudAiDocumentOption *GoogleCloudContentwarehouseV1CloudAIDocumentOption `json:"cloudAiDocumentOption,omitempty"` // CreateMask: Field mask for creating Document fields. If mask path is @@ -53575,8 +53606,9 @@ type GoogleCloudContentwarehouseV1CreateDocumentRequest struct { // Document: Required. The document to create. Document *GoogleCloudContentwarehouseV1Document `json:"document,omitempty"` - // Policy: Default document policy during creation. Conditions defined - // in the policy will be ignored. + // Policy: Default document policy during creation. This refers to an + // Identity and Access (IAM) policy, which specifies access controls for + // the Document. Conditions defined in the policy will be ignored. Policy *GoogleIamV1Policy `json:"policy,omitempty"` // RequestMetadata: The meta information collected about the end user, @@ -53917,9 +53949,6 @@ type GoogleCloudContentwarehouseV1Document struct { // project and location. ReferenceId string `json:"referenceId,omitempty"` - // StructuredContentUri: A path linked to structured content file. - StructuredContentUri string `json:"structuredContentUri,omitempty"` - // TextExtractionDisabled: If true, text extraction will not be // performed. TextExtractionDisabled bool `json:"textExtractionDisabled,omitempty"` @@ -55271,7 +55300,10 @@ type GoogleCloudContentwarehouseV1PropertyDefinition struct { // sub-property, all the parent properties must be marked filterable. IsFilterable bool `json:"isFilterable,omitempty"` - // IsMetadata: Whether the property is user supplied metadata. + // IsMetadata: Whether the property is user supplied metadata. This + // out-of-the box placeholder setting can be used to tag derived + // properties. Its value and interpretation logic should be implemented + // by API user. IsMetadata bool `json:"isMetadata,omitempty"` // IsRepeatable: Whether the property can have multiple values. @@ -56055,6 +56087,8 @@ func (s *GoogleCloudContentwarehouseV1SearchDocumentsResponseMatchingDocument) M type GoogleCloudContentwarehouseV1SetAclRequest struct { // Policy: Required. REQUIRED: The complete policy to be applied to the // `resource`. The size of the policy is limited to a few 10s of KB. + // This refers to an Identity and Access (IAM) policy, which specifies + // access controls for the Document. Policy *GoogleIamV1Policy `json:"policy,omitempty"` // ProjectOwner: For Set Project ACL only. Authorization check for end @@ -56347,7 +56381,10 @@ type GoogleCloudContentwarehouseV1UpdateDocumentMetadata struct { // for DocumentService.UpdateDocument. type GoogleCloudContentwarehouseV1UpdateDocumentRequest struct { // CloudAiDocumentOption: Request Option for processing Cloud AI - // Document in CW Document. + // Document in Document Warehouse. This field offers limited support for + // mapping entities from Cloud AI Document to Warehouse Document. Please + // consult with product team before using this field and other available + // options. CloudAiDocumentOption *GoogleCloudContentwarehouseV1CloudAIDocumentOption `json:"cloudAiDocumentOption,omitempty"` // Document: Required. The document to update. @@ -79602,11 +79639,6 @@ type LensDiscoveryStylePersonAttributes struct { // person to the whole image discretized into range [0, 100]. DiscretizedVisualSaliencyScore int64 `json:"discretizedVisualSaliencyScore,omitempty"` - // IconicPersonBoundingBox: Normalized bounding box of the most iconic - // person in the image. The x,y coordinates are in the range [0, 1]. - // Deprecated to comply with CDS requirements (b/228535076). - IconicPersonBoundingBox *PhotosVisionGroundtruthdbNormalizedBoundingBox `json:"iconicPersonBoundingBox,omitempty"` - // PersonBoundingBox: Bounding box of the most iconic person in the // image. PersonBoundingBox *LensDiscoveryStyleBoundingBox `json:"personBoundingBox,omitempty"` @@ -79780,11 +79812,6 @@ type LensDiscoveryStylePersonDetectionSignalsDetectedPerson struct { // BoundingBox: Bounding box of the detected person. BoundingBox *LensDiscoveryStyleBoundingBox `json:"boundingBox,omitempty"` - // NormalizedBoundingBox: Normalized bounding box of the detected - // person. The x,y coordinates are in the range [0, 1]. Deprecated to - // comply with CDS requirements (b/228535076). - NormalizedBoundingBox *PhotosVisionGroundtruthdbNormalizedBoundingBox `json:"normalizedBoundingBox,omitempty"` - // ForceSendFields is a list of field names (e.g. "BoundingBox") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any @@ -82365,6 +82392,9 @@ func (s *MustangReposWwwSnippetsSnippetsRanklabFeatures) UnmarshalJSON(data []by // MustangSnippetsRenderedToken: Tidbit token rendered in generating // snippet/title. type MustangSnippetsRenderedToken struct { + // Bolded: Is the rendered token bolded (insided ) + Bolded bool `json:"bolded,omitempty"` + // ByteOffsetBegin: Byte offset range in the rendered text that // corresponds to this token. [byte_offset_begin, byte_offset_end) // inclusive @@ -82384,7 +82414,7 @@ type MustangSnippetsRenderedToken struct { TokenPos int64 `json:"tokenPos,omitempty,string"` - // ForceSendFields is a list of field names (e.g. "ByteOffsetBegin") to + // ForceSendFields is a list of field names (e.g. "Bolded") 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 @@ -82392,13 +82422,12 @@ type MustangSnippetsRenderedToken struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "ByteOffsetBegin") 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. "Bolded") 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:"-"` } @@ -103773,6 +103802,10 @@ type QualityCalypsoAppsUniversalAuLiveOpDetail struct { // go/liveops-config-deals // "IAP_SKU_DEALS" - Out-of-app purchasable in-app promotions funded // by Play. + // "FEATURED_PRODUCTS" - Out-of-app purchasable in-app products, + // configured by developers through Play Console. + // go/store-content-featured_product-prd + // go/featured-in-app-products-pc-dd, go/featured-products-serving-dd EventType string `json:"eventType,omitempty"` // EventUrl: ios @@ -105873,7 +105906,7 @@ func (s *QualityNsrNSRVersionedData) UnmarshalJSON(data []byte) error { } // QualityNsrNsrData: NOTE: When adding a new field to be propagated to -// Raffia check if NsrPatternSignalSpec needs to be updated. Next ID: 50 +// Raffia check if NsrPatternSignalSpec needs to be updated. Next ID: 51 type QualityNsrNsrData struct { // ArticleScore: Score from article classification of the site. ArticleScore float64 `json:"articleScore,omitempty"` @@ -105942,6 +105975,9 @@ type QualityNsrNsrData struct { Nsr float64 `json:"nsr,omitempty"` + // NsrEpoch: The epoch from which this NSR value is coming from. + NsrEpoch string `json:"nsrEpoch,omitempty"` + // NsrOverrideBid: This signal is used to unconditionally override NSR // as a bid in Q*. Should only be used in case of emergency (see // go/nsr-override-bid). To have any effect, the value should be present @@ -110651,6 +110687,75 @@ func (s *QualitySitemapTwoLevelTarget) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// QualitySnippetsTruncationSnippetBoldedRange: A bolded range in +// printed snippet lines. +type QualitySnippetsTruncationSnippetBoldedRange struct { + // Begin: Bolded range [begin, end) + Begin *QualitySnippetsTruncationSnippetBoldedRangePosition `json:"begin,omitempty"` + + End *QualitySnippetsTruncationSnippetBoldedRangePosition `json:"end,omitempty"` + + // Text: Only populated for debugging. + Text string `json:"text,omitempty"` + + // Possible values: + // "TYPE_UNSPECIFIED" + // "QUERY_TERM_MATCH" + // "RADISH" + // "BRAIN" + Type string `json:"type,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Begin") 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. "Begin") 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 *QualitySnippetsTruncationSnippetBoldedRange) MarshalJSON() ([]byte, error) { + type NoMethod QualitySnippetsTruncationSnippetBoldedRange + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +type QualitySnippetsTruncationSnippetBoldedRangePosition struct { + ByteOffset int64 `json:"byteOffset,omitempty"` + + Index int64 `json:"index,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ByteOffset") 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. "ByteOffset") 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 *QualitySnippetsTruncationSnippetBoldedRangePosition) MarshalJSON() ([]byte, error) { + type NoMethod QualitySnippetsTruncationSnippetBoldedRangePosition + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + type QualityTimebasedLastSignificantUpdate struct { // AdjustmentInfo: This is stored only for debugging purposes. Please // consult dates@ team before making a dependency on this field. @@ -111970,7 +112075,7 @@ func (s *RepositoryAnnotationsRdfaCrumb) MarshalJSON() ([]byte, error) { } // RepositoryAnnotationsRdfaRdfaRichSnippetsApplication: This structure -// holds data for application information for rich snippets Next ID: 52 +// holds data for application information for rich snippets Next ID: 53 type RepositoryAnnotationsRdfaRdfaRichSnippetsApplication struct { AppTypeData *RepositoryAnnotationsRdfaRdfaRichSnippetsApplicationAppTypeData `json:"appTypeData,omitempty"` @@ -112040,6 +112145,8 @@ type RepositoryAnnotationsRdfaRdfaRichSnippetsApplication struct { // LiveOpDetails: Unified proto for android LiveOps and iOS LiveEvents. LiveOpDetails *QualityCalypsoAppsUniversalAuLiveOpsDetailInfo `json:"liveOpDetails,omitempty"` + LocalizedTrustedGenome *RepositoryAnnotationsRdfaRdfaRichSnippetsApplicationLocalizedTrustedGenome `json:"localizedTrustedGenome,omitempty"` + // Marketplace: Market Android or itunes Marketplace string `json:"marketplace,omitempty"` @@ -112227,6 +112334,36 @@ func (s *RepositoryAnnotationsRdfaRdfaRichSnippetsApplicationCountryPrice) Marsh return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +type RepositoryAnnotationsRdfaRdfaRichSnippetsApplicationLocalizedTrustedGenome struct { + // Language: The chosen language + Language string `json:"language,omitempty"` + + // LocalizedTg: The TG tags matching the locale of the doc, if available + LocalizedTg *VendingConsumerProtoTrustedGenomeAnnotation `json:"localizedTg,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Language") 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. "Language") 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 *RepositoryAnnotationsRdfaRdfaRichSnippetsApplicationLocalizedTrustedGenome) MarshalJSON() ([]byte, error) { + type NoMethod RepositoryAnnotationsRdfaRdfaRichSnippetsApplicationLocalizedTrustedGenome + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + type RepositoryAnnotationsRdfaRdfaRichSnippetsApplicationRank struct { AppStoreLink string `json:"appStoreLink,omitempty"` @@ -116092,7 +116229,8 @@ type RepositoryWebrefLexicalRange struct { // some other range. // "TARGET_AUDIENCE" - Facets. // "TARGET_PURPOSE" - // "SETTING_BY_LOCATION" + // "SETTING_BY_LOCATION" - End of facets. This line marks where to + // generate new values for facets. Category string `json:"category,omitempty"` // Direction: Direction defines the relation between the measurable @@ -116296,7 +116434,8 @@ type RepositoryWebrefLightweightTokensMatchedLightweightToken struct { // "SUPERLATIVE" // "FACET_AUDIENCE" - Facets. // "FACET_PURPOSE" - // "FACET_SETTING_BY_LOCATION" + // "FACET_SETTING_BY_LOCATION" - End of facets. This line marks where + // to generate new values for facets. Type string `json:"type,omitempty"` // ForceSendFields is a list of field names (e.g. @@ -127781,8 +127920,11 @@ func (s *SnippetExtraInfo) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// SnippetExtraInfoSnippetCandidateInfo: Next ID: 12 +// SnippetExtraInfoSnippetCandidateInfo: Next ID: 13 type SnippetExtraInfoSnippetCandidateInfo struct { + // BoldedRanges: Bolded ranges in the printed snippet lines. + BoldedRanges []*QualitySnippetsTruncationSnippetBoldedRange `json:"boldedRanges,omitempty"` + // Id: Candidate identifier number, unique among all snippet candidates // under each document in each request. What does this number mean: - // Muppet candidates: This equals to the candidate's rank by Muppet @@ -127839,7 +127981,7 @@ type SnippetExtraInfoSnippetCandidateInfo struct { // "PEREGRINE" - Candidates generated by SnippetFlow in SR. SnippetType string `json:"snippetType,omitempty"` - // ForceSendFields is a list of field names (e.g. "Id") to + // ForceSendFields is a list of field names (e.g. "BoldedRanges") 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 @@ -127847,10 +127989,10 @@ type SnippetExtraInfoSnippetCandidateInfo struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Id") 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 + // NullFields is a list of field names (e.g. "BoldedRanges") 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:"-"` @@ -128728,6 +128870,36 @@ func (s *SocialGraphApiProtoBirthdayDecoration) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// SocialGraphApiProtoContactCreateContext: The ContactEditContext +// message is a wrapper around the generic ContactMutationContext data +// to represent when and where a contact create was performed. +type SocialGraphApiProtoContactCreateContext struct { + MutationContext *SocialGraphApiProtoContactMutationContext `json:"mutationContext,omitempty"` + + // ForceSendFields is a list of field names (e.g. "MutationContext") 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. "MutationContext") 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 *SocialGraphApiProtoContactCreateContext) MarshalJSON() ([]byte, error) { + type NoMethod SocialGraphApiProtoContactCreateContext + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // SocialGraphApiProtoContactDeletionContext: The ContactDeletionContext // message is a wrapper around the generic ContactMutationContext data, // and will include any needed delete specific data. NOTE: Before using @@ -128760,6 +128932,36 @@ func (s *SocialGraphApiProtoContactDeletionContext) MarshalJSON() ([]byte, error return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// SocialGraphApiProtoContactEditContext: The ContactEditContext message +// is a wrapper around the generic ContactMutationContext data to +// represent when and where a contact edit was performed. +type SocialGraphApiProtoContactEditContext struct { + MutationContext *SocialGraphApiProtoContactMutationContext `json:"mutationContext,omitempty"` + + // ForceSendFields is a list of field names (e.g. "MutationContext") 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. "MutationContext") 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 *SocialGraphApiProtoContactEditContext) MarshalJSON() ([]byte, error) { + type NoMethod SocialGraphApiProtoContactEditContext + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // SocialGraphApiProtoContactMutationContext: This message is the // generic mutation message which will encapsulate the fields which are // shared between the create, update, and delete actions, including @@ -129501,22 +129703,25 @@ func (s *SocialGraphApiProtoPartialNameOptionsNamePartSpec) MarshalJSON() ([]byt // operate on those parts. For more information on how names are parsed, // see the NameOccurrence proto definition: // http://google3/quality/peoplesearch/namedetector/detector/proto/name_occurrence.proto?l=50&rcl=334484707 -// Next ID: 7 +// In general, when parsing display names the following rules will apply +// to *all* specs: - Hyphenated names are broken down: "Angelina +// Jollie-Pit" is pre-processed as "Angelina Jollie Pitt"; - Prefixes +// are ignored: "Prof. Albus Dumbledore" is pre-processed as "Albus +// Dumbledore"; - Auxiliaries are ignored: "Luís de Camões" is +// pre-processed as "Luís Camões". Next ID: 8 type SocialGraphApiProtoPartialNameOptionsParsedDisplayNameSpec struct { // AllInitialsFromParsedName: Extract an initial from each parsed name. // For example, "Niels Henrik David Bohr" yields "N. H. D. B.". Other - // special cases are treated as follows: - Hyphenated names are broken - // down: "Angelina Jollie-Pit" yields "A. J. P."; - Prefixes are - // ignored: "Prof. Albus Dumbledore" yields "A. D."; - Auxiliaries are - // ignored: "Luís de Camões" yields "L. C.". + // special cases are treated as follows: AllInitialsFromParsedName bool `json:"allInitialsFromParsedName,omitempty"` + // FirstInitialAndFirstLastName: Show the initial of the very first name + // and the first last name, e.g. "Hugo Daniel Hernandez Garcia" yields + // "H. Hernandez". + FirstInitialAndFirstLastName bool `json:"firstInitialAndFirstLastName,omitempty"` + // FirstInitialAndVeryLastName: Show the initial of the very first name - // and the very last name, e.g. "Ana Maria Silva" yields "A. Silva". - - // Hyphenated names are broken down: "Angelina Jollie-Pitt" yields "A. - // Pitt"; - Prefixes are ignored: "Prof. Albus Dumbledore" yields "A. - // Dumbledore"; - Auxiliaries are ignored: "Luís de Camões" yields "L. - // Camões". + // and the very last name, e.g. "Ana Maria Silva" yields "A. Silva". FirstInitialAndVeryLastName bool `json:"firstInitialAndVeryLastName,omitempty"` // KnowledgeGraphNameShortening: Shorten the display name using the @@ -129537,17 +129742,11 @@ type SocialGraphApiProtoPartialNameOptionsParsedDisplayNameSpec struct { TruncationIndicator string `json:"truncationIndicator,omitempty"` // VeryFirstNameAndAllInitials: Show the full very first name and all - // the other initials, e.g. "Ana Maria Silva" yields "Ana M. S.". - - // Hyphenated names are broken down: "Angelina Jollie-Pit" yields - // "Angelina J. P."; - Prefixes are ignored: "Prof. Albus Dumbledore" - // yields "Albus D."; - Auxiliaries are ignored: "Luís de Camões" - // yields "Luís C.". + // the other initials, e.g. "Ana Maria Silva" yields "Ana M. S.". VeryFirstNameAndAllInitials bool `json:"veryFirstNameAndAllInitials,omitempty"` // VeryFirstNameOnly: Show the very first name only, e.g. "Ana Maria - // Silva" yields "Ana". - Hyphenated names are broken down: "Mary-Kate - // Smith" yields "Mary"; - Prefixes are ignored: "Prof. Albus - // Dumbledore" yields "Albus"; + // Silva" yields "Ana". VeryFirstNameOnly bool `json:"veryFirstNameOnly,omitempty"` // ForceSendFields is a list of field names (e.g. @@ -131776,16 +131975,12 @@ func (s *StorageGraphBfgLmsPolicyMetadata) MarshalJSON() ([]byte, error) { type StorageGraphBfgPolicyMetadata struct { // AvailabilityEndTimestamp: Timestamp after which data with this policy // cannot be used. This value must be strictly larger/later than - // availability_start_time, if both are set. WARNING: This field is WIP - // and please do not populate it without reading go/ke-dg-tape and - // consulting ke-data-governance@. + // availability_start_time, if both are set. AvailabilityEndTimestamp string `json:"availabilityEndTimestamp,omitempty"` // AvailabilityStartTimestamp: Timestamp before which data with this // policy cannot be used. This value must be strictly smaller/earlier - // than availability_end_time, if both are set. WARNING: This field is - // WIP and please do not populate it without reading go/ke-dg-tape and - // consulting ke-data-governance@. + // than availability_end_time, if both are set. AvailabilityStartTimestamp string `json:"availabilityStartTimestamp,omitempty"` // LegalAllowedRegions: List of regions in which the data with this @@ -132465,6 +132660,9 @@ type StorageGraphBfgTripleProvenance struct { // "RIGHTS_MANAGEMENT_102" - Corresponding to policy id = 102. // "DICTIONARY_DATA_OXFORD" // "DICTIONARY_DATA_LE_ROBERT" + // "ENTITY_TEXT_FEATURES" - Access controls for EntityTextFeatures + // computed by the Enricher. YOU MUST CONTACT deepkg-infra-dev@ before + // reading or writing data with this ACL. // "AR_ONBOARDING_TEST" - This AccessRequirement is used for testing // purpose only. Please do not use it on data. // "AR_ONBOARDING_TEST_2" @@ -136303,76 +136501,28 @@ type VendingConsumerProtoTrustedGenomeAnnotation struct { // "TC_IN_PSS_CHECK_A" // "TC_IN_PSS_CHECK_B" // "QUERY_IS_BOOTS_ELIGIBLE" - Query is eligible to show Boots chips - // "ENTERTAINMENT_CLUSTER_SPELLING_CORRECTION" // "QUERY_HAS_SELECTED_BOOTS_CHIP" // "QUERY_HAS_ONLY_UNSELECTED_BOOTS_CHIPS" // "SPONSORED_ADS_CLUSTER" - // "SPONSORED_ADS_CLUSTER_ATLEAST_ONE_AD" - // "INSPIRED_BY" - // "MOVIE_DUPLICATES_WITHIN_3_DOCS" - // "MOVIE_DUPLICATES_WITHIN_5_DOCS" - // "MOVIE_DUPLICATES_WITHIN_7_DOCS" - // "SHOULD_SEE_LIVE_OP_CLUSTER" - User should see the live op cluster. // "BOOKS_QUERY_HAS_LANGUAGE_INTENT" - go/books-language-handling for // details - // "REWARD_RIBBON_IMPRESSION" // "IRON_THRONE_QUERY" - Create test code for go/it-design experiment - // "FAMILY_LIBRARY_SHARED_DESTINATION" // "GUIDED_DISCOVERY" - go/guided-discovery-design for details. // "BOOKS_AUTHOR_QUERY" - // "HOME_SPONSORED_ADS_CLUSTER" - // "HOME_SPONSORED_ADS_CLUSTER_GAP_OPTOUT" - // "FAMILY_FRAUD_CHALLENGE" - // "BOOKS_MONETIZABLE_QUERY" - // "BOOKS_NONMONETIZABLE_QUERY" - // "NON_BOOKS_QUERY" // "BOOTS_PROD_V1_QUERY" - // "BOOTS_TAG_OVERRIDE_QUERY" - // "BOOTS_KG_ANNOTATION_QUERY" - // "EDITORIAL_REVIEW_CARD_ELIGIBLE" - // "BOOTS_DEST_QUERY_100_INSTALLS_QUERY" - // "BOOTS_DEST_QUERY_150_INSTALLS_QUERY" // "SHOULD_SEE_LIVE_OP_CLUSTER_CANDIDATES" - User has live op cluster // candidates. - // "REV_BOOST_V2_TEST_CODE" // "ENTERTAINMENT_CLUSTER_TRIGGERING" - // "BOOTS_MIN_TAGS_2" // "BOOTS_EN_IN" // "BOOTS_EN_GB" // "BOOTS_EN_PH" // "BOOTS_EN_CA" - // "BOOTS_EN_AU" - // "BOOTS_EN_I18N" - // "BOOTS_V2_STAGING" - // "OFFLINE_APP_SEARCH" - Aqua grammar is used to narrow to offline - // apps. // "ENTERTAINMENT_CLUSTER_CONTAINER_SEARCH_ENABLED" - // "BEST_SELLER_CART_TAG" - // "BOOTS_DEST_QUERY_50_INSTALLS_QUERY" - // "BOOTS_SAFT_SPEC2" // "SEARCH_NAV_SPONSORED_ADS_CLUSTER" - // "BOOTS_ISTA" - // "BOOTS_EN_GLOBAL" // "TOP_CHART_RANKING_INFO" // "CLIENT_TEST_CODE_VERIFICATION" - For verify the client test code // logging flow. // "APPS_PUB_QUERY" - // "BOOTS_V2" - // "HAS_BOOKS_BIGPOOL_RECS" - User has books bigpool recs. - // "TESTING_BOTH" - // "TESTING_EVENT" - // "BOOTS_MORE_CHIPS" - // "BOOTS_TAG_CONVERSION_BASED_RERANKING" - // "BOOTS_KG_FILTERS" - // "BOOTS_JP_KR" - // "BOOTS_ISTA_V2" - // "BOOTS_FILTERS" - // "BOOTS_EN_GLOBAL_V2" - // "BOOTS_ISTA_V2_WITH_BOOTS_V2" - // "BOOTS_ISTA_JP_KR" - // "BOOTS_VS_ISTA_JP_KR" - // "CHURNED_LIVE_OP_CANDIDATES_EVENT" - // "CHURNED_LIVE_OP_EVENT" // "ABUSIVE_QUERY_SQUASHING_EVENT" // "HOME_SPONSORED_ADS_RE_ENGAGEMENT_CLUSTER_EVENT_LEVEL" // "SEARCH_LIVE_OP_QUERY_EVENT" @@ -136624,6 +136774,7 @@ type VendingConsumerProtoTrustedGenomeAnnotation struct { // "EDITORS_CHOICE_CLUSTER_SERP_EVENT_LEVEL" // "BESTK_CLUSTER_SERP_EVENT_LEVEL" // "LIVEOPS_CLUSTER_SERP_EVENT_LEVEL" + // "QUICKPICKS_CLUSTER_SERP_EVENT_LEVEL" // "INLINE_DETAILS_AQUALITY_CHECK_PASS" - Event level test codes // containing result of aQuality lookup during market details url // matching. A failed aQuality result suppresses inline details. @@ -136654,6 +136805,14 @@ type VendingConsumerProtoTrustedGenomeAnnotation struct { // "DETAILS_PAGE_AQUALITY_PASSED_EVENT_LEVEL" // "INLINE_DETAILS_CALLER_AQUALITY_CHECK_PASS" // "INLINE_DETAILS_CALLER_AQUALITY_CHECK_FAIL" + // "HSDP_AD_NETWORK_CALLER_TABLET_AQUALITY_CHECK_UNKNOWN" - Event + // level test codes containing results for caller tablet aQaulity checks + // for HSDP. + // "HSDP_AD_NETWORK_CALLER_TABLET_AQUALITY_CHECK_PASS" + // "HSDP_AD_NETWORK_CALLER_TABLET_AQUALITY_CHECK_FAIL" + // "HSDP_INDEPENDENT_APP_CALLER_TABLET_AQUALITY_CHECK_UNKNOWN" + // "HSDP_INDEPENDENT_APP_CALLER_TABLET_AQUALITY_CHECK_PASS" + // "HSDP_INDEPENDENT_APP_CALLER_TABLET_AQUALITY_CHECK_FAIL" // "PTP_CLUSTER_SERP_P13N_RANKING_EVENT_LEVEL" - Event level test code // for cluster, p13n ranking. // "BROAD_INTENT_REWEIGHTING_EVENT_LEVEL" - TestCode for Broad Intent @@ -136687,6 +136846,8 @@ type VendingConsumerProtoTrustedGenomeAnnotation struct { // polaris with ranking change event level. // "EXPLORATORY_BOOSTING_EVENT_LEVEL" - Exploratory boosting event // level. + // "GEARHEAD_TOOLTIP_COOLWALK_DASHBOARD_UNAVAILABLE" - Tooltip for + // unavailable dashboard support for selected navigation app. // "EVENT_LEVEL_TEST_CODE_LIMIT" // "RESERVED_4" // "RESERVED_5" @@ -137593,6 +137754,7 @@ type VendingConsumerProtoTrustedGenomeAnnotation struct { // "EDITORS_CHOICE_CLUSTER_SERP_SESSION_LEVEL" // "BESTK_CLUSTER_SERP_SESSION_LEVEL" // "LIVEOPS_CLUSTER_SERP_SESSION_LEVEL" + // "QUICKPICKS_CLUSTER_SERP_SESSION_LEVEL" // "WIDE_MEDIA_CLUSTER_INVALID_VIDEO_ASSET_SESSION_LEVEL" - Session // level test code logged when the wide media card has invalid video // asset in the asset agnostic 3x experiment. @@ -137630,6 +137792,19 @@ type VendingConsumerProtoTrustedGenomeAnnotation struct { // "INLINE_DETAILS_AQUALITY_CHECK_FAIL_SESSION_LEVEL" // "INLINE_DETAILS_CALLER_AQUALITY_CHECK_PASS_SESSION_LEVEL" // "INLINE_DETAILS_CALLER_AQUALITY_CHECK_FAIL_SESSION_LEVEL" + // + // "HSDP_AD_NETWORK_CALLER_TABLET_AQUALITY_CHECK_UNKNOWN_SESSION_LEVEL" + // - Session level test codes containing results for caller tablet + // aQaulity checks for HSDP. + // "HSDP_AD_NETWORK_CALLER_TABLET_AQUALITY_CHECK_PASS_SESSION_LEVEL" + // "HSDP_AD_NETWORK_CALLER_TABLET_AQUALITY_CHECK_FAIL_SESSION_LEVEL" + // + // "HSDP_INDEPENDENT_APP_CALLER_TABLET_AQUALITY_CHECK_UNKNOWN_SESSION_LEV + // EL" + // + // "HSDP_INDEPENDENT_APP_CALLER_TABLET_AQUALITY_CHECK_PASS_SESSION_LEVEL" + // + // "HSDP_INDEPENDENT_APP_CALLER_TABLET_AQUALITY_CHECK_FAIL_SESSION_LEVEL" // "INLINE_DETAILS_IS_INLINE_URL_SESSION_LEVEL" - Session level test // code indicating external details URL is an inline URL. // "INLINE_DETAILS_IS_INLINE_URL_FRONTEND_SESSION_LEVEL" - Session diff --git a/dataform/v1beta1/dataform-api.json b/dataform/v1beta1/dataform-api.json new file mode 100644 index 00000000000..73f0930237b --- /dev/null +++ b/dataform/v1beta1/dataform-api.json @@ -0,0 +1,2828 @@ +{ + "auth": { + "oauth2": { + "scopes": { + "https://www.googleapis.com/auth/cloud-platform": { + "description": "See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account." + } + } + } + }, + "basePath": "", + "baseUrl": "https://dataform.googleapis.com/", + "batchPath": "batch", + "description": "", + "discoveryVersion": "v1", + "documentationLink": "https://cloud.google.com/dataform/docs", + "fullyEncodeReservedExpansion": true, + "icons": { + "x16": "http://www.google.com/images/icons/product/search-16.gif", + "x32": "http://www.google.com/images/icons/product/search-32.gif" + }, + "id": "dataform:v1beta1", + "kind": "discovery#restDescription", + "mtlsRootUrl": "https://dataform.mtls.googleapis.com/", + "name": "dataform", + "ownerDomain": "google.com", + "ownerName": "Google", + "parameters": { + "$.xgafv": { + "description": "V1 error format.", + "enum": [ + "1", + "2" + ], + "enumDescriptions": [ + "v1 error format", + "v2 error format" + ], + "location": "query", + "type": "string" + }, + "access_token": { + "description": "OAuth access token.", + "location": "query", + "type": "string" + }, + "alt": { + "default": "json", + "description": "Data format for response.", + "enum": [ + "json", + "media", + "proto" + ], + "enumDescriptions": [ + "Responses with Content-Type of application/json", + "Media download with context-dependent Content-Type", + "Responses with Content-Type of application/x-protobuf" + ], + "location": "query", + "type": "string" + }, + "callback": { + "description": "JSONP", + "location": "query", + "type": "string" + }, + "fields": { + "description": "Selector specifying which fields to include in a partial response.", + "location": "query", + "type": "string" + }, + "key": { + "description": "API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.", + "location": "query", + "type": "string" + }, + "oauth_token": { + "description": "OAuth 2.0 token for the current user.", + "location": "query", + "type": "string" + }, + "prettyPrint": { + "default": "true", + "description": "Returns response with indentations and line breaks.", + "location": "query", + "type": "boolean" + }, + "quotaUser": { + "description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.", + "location": "query", + "type": "string" + }, + "uploadType": { + "description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\").", + "location": "query", + "type": "string" + }, + "upload_protocol": { + "description": "Upload protocol for media (e.g. \"raw\", \"multipart\").", + "location": "query", + "type": "string" + } + }, + "protocol": "rest", + "resources": { + "projects": { + "resources": { + "locations": { + "methods": { + "get": { + "description": "Gets information about a location.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}", + "httpMethod": "GET", + "id": "dataform.projects.locations.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Resource name for the location.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+name}", + "response": { + "$ref": "Location" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Lists information about the supported locations for this service.", + "flatPath": "v1beta1/projects/{projectsId}/locations", + "httpMethod": "GET", + "id": "dataform.projects.locations.list", + "parameterOrder": [ + "name" + ], + "parameters": { + "filter": { + "description": "A filter to narrow down results to a preferred subset. The filtering language accepts strings like `\"displayName=tokyo\"`, and is documented in more detail in [AIP-160](https://google.aip.dev/160).", + "location": "query", + "type": "string" + }, + "includeUnrevealedLocations": { + "description": "If true, the returned list will include locations which are not yet revealed.", + "location": "query", + "type": "boolean" + }, + "name": { + "description": "The resource that owns the locations collection, if applicable.", + "location": "path", + "pattern": "^projects/[^/]+$", + "required": true, + "type": "string" + }, + "pageSize": { + "description": "The maximum number of results to return. If not set, the service selects a default.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "A page token received from the `next_page_token` field in the response. Send that page token to receive the subsequent page.", + "location": "query", + "type": "string" + } + }, + "path": "v1beta1/{+name}/locations", + "response": { + "$ref": "ListLocationsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + }, + "resources": { + "repositories": { + "methods": { + "create": { + "description": "Creates a new Repository in a given project and location.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/repositories", + "httpMethod": "POST", + "id": "dataform.projects.locations.repositories.create", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "Required. The location in which to create the repository. Must be in the format `projects/*/locations/*`.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + }, + "repositoryId": { + "description": "Required. The ID to use for the repository, which will become the final component of the repository's resource name.", + "location": "query", + "type": "string" + } + }, + "path": "v1beta1/{+parent}/repositories", + "request": { + "$ref": "Repository" + }, + "response": { + "$ref": "Repository" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "delete": { + "description": "Deletes a single Repository.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}", + "httpMethod": "DELETE", + "id": "dataform.projects.locations.repositories.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "force": { + "description": "If set to true, any child resources of this repository will also be deleted. (Otherwise, the request will only succeed if the repository has no child resources.)", + "location": "query", + "type": "boolean" + }, + "name": { + "description": "Required. The repository's name.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+name}", + "response": { + "$ref": "Empty" + }, + "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", + "httpMethod": "GET", + "id": "dataform.projects.locations.repositories.fetchRemoteBranches", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The repository's name.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+name}:fetchRemoteBranches", + "response": { + "$ref": "FetchRemoteBranchesResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "get": { + "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" + ] + }, + "list": { + "description": "Lists Repositories in a given project and location.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/repositories", + "httpMethod": "GET", + "id": "dataform.projects.locations.repositories.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "filter": { + "description": "Optional. Filter for the returned list.", + "location": "query", + "type": "string" + }, + "orderBy": { + "description": "Optional. This field only supports ordering by `name`. If unspecified, the server will choose the ordering. If specified, the default order is ascending for the `name` field.", + "location": "query", + "type": "string" + }, + "pageSize": { + "description": "Optional. Maximum number of repositories 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 `ListRepositories` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListRepositories` must match the call that provided the page token.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The location in which to list repositories. Must be in the format `projects/*/locations/*`.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+parent}/repositories", + "response": { + "$ref": "ListRepositoriesResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "patch": { + "description": "Updates a single Repository.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}", + "httpMethod": "PATCH", + "id": "dataform.projects.locations.repositories.patch", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Output only. The repository's name.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+$", + "required": true, + "type": "string" + }, + "updateMask": { + "description": "Optional. Specifies the fields to be updated in the repository. If left unset, all fields will be updated.", + "format": "google-fieldmask", + "location": "query", + "type": "string" + } + }, + "path": "v1beta1/{+name}", + "request": { + "$ref": "Repository" + }, + "response": { + "$ref": "Repository" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + }, + "resources": { + "compilationResults": { + "methods": { + "create": { + "description": "Creates a new CompilationResult in a given project and location.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/compilationResults", + "httpMethod": "POST", + "id": "dataform.projects.locations.repositories.compilationResults.create", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "Required. The repository in which to create the compilation result. Must be in the format `projects/*/locations/*/repositories/*`.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+parent}/compilationResults", + "request": { + "$ref": "CompilationResult" + }, + "response": { + "$ref": "CompilationResult" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "get": { + "description": "Fetches a single CompilationResult.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/compilationResults/{compilationResultsId}", + "httpMethod": "GET", + "id": "dataform.projects.locations.repositories.compilationResults.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The compilation result's name.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/compilationResults/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+name}", + "response": { + "$ref": "CompilationResult" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Lists CompilationResults in a given Repository.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/compilationResults", + "httpMethod": "GET", + "id": "dataform.projects.locations.repositories.compilationResults.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "pageSize": { + "description": "Optional. Maximum number of compilation results 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 `ListCompilationResults` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListCompilationResults` must match the call that provided the page token.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The repository in which to list compilation results. Must be in the format `projects/*/locations/*/repositories/*`.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+parent}/compilationResults", + "response": { + "$ref": "ListCompilationResultsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "query": { + "description": "Returns CompilationResultActions in a given CompilationResult.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/compilationResults/{compilationResultsId}:query", + "httpMethod": "GET", + "id": "dataform.projects.locations.repositories.compilationResults.query", + "parameterOrder": [ + "name" + ], + "parameters": { + "filter": { + "description": "Optional. Optional filter for the returned list. Filtering is only currently supported on the `file_path` field.", + "location": "query", + "type": "string" + }, + "name": { + "description": "Required. The compilation result's name.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/compilationResults/[^/]+$", + "required": true, + "type": "string" + }, + "pageSize": { + "description": "Optional. Maximum number of compilation results 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 `QueryCompilationResultActions` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `QueryCompilationResultActions` must match the call that provided the page token.", + "location": "query", + "type": "string" + } + }, + "path": "v1beta1/{+name}:query", + "response": { + "$ref": "QueryCompilationResultActionsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + }, + "releaseConfigs": { + "methods": { + "create": { + "description": "Creates a new ReleaseConfig in a given Repository.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/releaseConfigs", + "httpMethod": "POST", + "id": "dataform.projects.locations.repositories.releaseConfigs.create", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "Required. The repository in which to create the release config. Must be in the format `projects/*/locations/*/repositories/*`.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+$", + "required": true, + "type": "string" + }, + "releaseConfigId": { + "description": "Required. The ID to use for the release config, which will become the final component of the release config's resource name.", + "location": "query", + "type": "string" + } + }, + "path": "v1beta1/{+parent}/releaseConfigs", + "request": { + "$ref": "ReleaseConfig" + }, + "response": { + "$ref": "ReleaseConfig" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "delete": { + "description": "Deletes a single ReleaseConfig.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/releaseConfigs/{releaseConfigsId}", + "httpMethod": "DELETE", + "id": "dataform.projects.locations.repositories.releaseConfigs.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The release config's name.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/releaseConfigs/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+name}", + "response": { + "$ref": "Empty" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "get": { + "description": "Fetches a single ReleaseConfig.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/releaseConfigs/{releaseConfigsId}", + "httpMethod": "GET", + "id": "dataform.projects.locations.repositories.releaseConfigs.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The release config's name.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/releaseConfigs/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+name}", + "response": { + "$ref": "ReleaseConfig" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Lists ReleaseConfigs in a given Repository.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/releaseConfigs", + "httpMethod": "GET", + "id": "dataform.projects.locations.repositories.releaseConfigs.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "pageSize": { + "description": "Optional. Maximum number of release configs 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 `ListReleaseConfigs` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListReleaseConfigs` must match the call that provided the page token.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The repository in which to list release configs. Must be in the format `projects/*/locations/*/repositories/*`.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+parent}/releaseConfigs", + "response": { + "$ref": "ListReleaseConfigsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "patch": { + "description": "Updates a single ReleaseConfig.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/releaseConfigs/{releaseConfigsId}", + "httpMethod": "PATCH", + "id": "dataform.projects.locations.repositories.releaseConfigs.patch", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Output only. The release config's name.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/releaseConfigs/[^/]+$", + "required": true, + "type": "string" + }, + "updateMask": { + "description": "Optional. Specifies the fields to be updated in the release config. If left unset, all fields will be updated.", + "format": "google-fieldmask", + "location": "query", + "type": "string" + } + }, + "path": "v1beta1/{+name}", + "request": { + "$ref": "ReleaseConfig" + }, + "response": { + "$ref": "ReleaseConfig" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + }, + "workflowInvocations": { + "methods": { + "cancel": { + "description": "Requests cancellation of a running WorkflowInvocation.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/workflowInvocations/{workflowInvocationsId}:cancel", + "httpMethod": "POST", + "id": "dataform.projects.locations.repositories.workflowInvocations.cancel", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The workflow invocation resource's name.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workflowInvocations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+name}:cancel", + "request": { + "$ref": "CancelWorkflowInvocationRequest" + }, + "response": { + "$ref": "Empty" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "create": { + "description": "Creates a new WorkflowInvocation in a given Repository.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/workflowInvocations", + "httpMethod": "POST", + "id": "dataform.projects.locations.repositories.workflowInvocations.create", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "Required. The repository in which to create the workflow invocation. Must be in the format `projects/*/locations/*/repositories/*`.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+parent}/workflowInvocations", + "request": { + "$ref": "WorkflowInvocation" + }, + "response": { + "$ref": "WorkflowInvocation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "delete": { + "description": "Deletes a single WorkflowInvocation.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/workflowInvocations/{workflowInvocationsId}", + "httpMethod": "DELETE", + "id": "dataform.projects.locations.repositories.workflowInvocations.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The workflow invocation resource's name.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workflowInvocations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+name}", + "response": { + "$ref": "Empty" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "get": { + "description": "Fetches a single WorkflowInvocation.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/workflowInvocations/{workflowInvocationsId}", + "httpMethod": "GET", + "id": "dataform.projects.locations.repositories.workflowInvocations.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The workflow invocation resource's name.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workflowInvocations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+name}", + "response": { + "$ref": "WorkflowInvocation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Lists WorkflowInvocations in a given Repository.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/workflowInvocations", + "httpMethod": "GET", + "id": "dataform.projects.locations.repositories.workflowInvocations.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "filter": { + "description": "Optional. Filter for the returned list.", + "location": "query", + "type": "string" + }, + "orderBy": { + "description": "Optional. This field only supports ordering by `name`. If unspecified, the server will choose the ordering. If specified, the default order is ascending for the `name` field.", + "location": "query", + "type": "string" + }, + "pageSize": { + "description": "Optional. Maximum number of workflow invocations 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 `ListWorkflowInvocations` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListWorkflowInvocations` must match the call that provided the page token.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The parent resource of the WorkflowInvocation type. Must be in the format `projects/*/locations/*/repositories/*`.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+parent}/workflowInvocations", + "response": { + "$ref": "ListWorkflowInvocationsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "query": { + "description": "Returns WorkflowInvocationActions in a given WorkflowInvocation.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/workflowInvocations/{workflowInvocationsId}:query", + "httpMethod": "GET", + "id": "dataform.projects.locations.repositories.workflowInvocations.query", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The workflow invocation's name.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workflowInvocations/[^/]+$", + "required": true, + "type": "string" + }, + "pageSize": { + "description": "Optional. Maximum number of workflow invocations 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 `QueryWorkflowInvocationActions` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `QueryWorkflowInvocationActions` must match the call that provided the page token.", + "location": "query", + "type": "string" + } + }, + "path": "v1beta1/{+name}:query", + "response": { + "$ref": "QueryWorkflowInvocationActionsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + }, + "workspaces": { + "methods": { + "commit": { + "description": "Applies a Git commit for uncommitted files in a Workspace.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/workspaces/{workspacesId}:commit", + "httpMethod": "POST", + "id": "dataform.projects.locations.repositories.workspaces.commit", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The workspace's name.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+name}:commit", + "request": { + "$ref": "CommitWorkspaceChangesRequest" + }, + "response": { + "$ref": "Empty" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "create": { + "description": "Creates a new Workspace in a given Repository.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/workspaces", + "httpMethod": "POST", + "id": "dataform.projects.locations.repositories.workspaces.create", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "Required. The repository in which to create the workspace. Must be in the format `projects/*/locations/*/repositories/*`.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+$", + "required": true, + "type": "string" + }, + "workspaceId": { + "description": "Required. The ID to use for the workspace, which will become the final component of the workspace's resource name.", + "location": "query", + "type": "string" + } + }, + "path": "v1beta1/{+parent}/workspaces", + "request": { + "$ref": "Workspace" + }, + "response": { + "$ref": "Workspace" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "delete": { + "description": "Deletes a single Workspace.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/workspaces/{workspacesId}", + "httpMethod": "DELETE", + "id": "dataform.projects.locations.repositories.workspaces.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The workspace resource's name.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+name}", + "response": { + "$ref": "Empty" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "fetchFileDiff": { + "description": "Fetches Git diff for an uncommitted file in a Workspace.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/workspaces/{workspacesId}:fetchFileDiff", + "httpMethod": "GET", + "id": "dataform.projects.locations.repositories.workspaces.fetchFileDiff", + "parameterOrder": [ + "workspace" + ], + "parameters": { + "path": { + "description": "Required. The file's full path including filename, relative to the workspace root.", + "location": "query", + "type": "string" + }, + "workspace": { + "description": "Required. The workspace's name.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+workspace}:fetchFileDiff", + "response": { + "$ref": "FetchFileDiffResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "fetchFileGitStatuses": { + "description": "Fetches Git statuses for the files in a Workspace.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/workspaces/{workspacesId}:fetchFileGitStatuses", + "httpMethod": "GET", + "id": "dataform.projects.locations.repositories.workspaces.fetchFileGitStatuses", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The workspace's name.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+name}:fetchFileGitStatuses", + "response": { + "$ref": "FetchFileGitStatusesResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "fetchGitAheadBehind": { + "description": "Fetches Git ahead/behind against a remote branch.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/workspaces/{workspacesId}:fetchGitAheadBehind", + "httpMethod": "GET", + "id": "dataform.projects.locations.repositories.workspaces.fetchGitAheadBehind", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The workspace's name.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+$", + "required": true, + "type": "string" + }, + "remoteBranch": { + "description": "Optional. The name of the branch in the Git remote against which this workspace should be compared. If left unset, the repository's default branch name will be used.", + "location": "query", + "type": "string" + } + }, + "path": "v1beta1/{+name}:fetchGitAheadBehind", + "response": { + "$ref": "FetchGitAheadBehindResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "get": { + "description": "Fetches a single Workspace.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/workspaces/{workspacesId}", + "httpMethod": "GET", + "id": "dataform.projects.locations.repositories.workspaces.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The workspace's name.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+name}", + "response": { + "$ref": "Workspace" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "installNpmPackages": { + "description": "Installs dependency NPM packages (inside a Workspace).", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/workspaces/{workspacesId}:installNpmPackages", + "httpMethod": "POST", + "id": "dataform.projects.locations.repositories.workspaces.installNpmPackages", + "parameterOrder": [ + "workspace" + ], + "parameters": { + "workspace": { + "description": "Required. The workspace's name.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+workspace}:installNpmPackages", + "request": { + "$ref": "InstallNpmPackagesRequest" + }, + "response": { + "$ref": "InstallNpmPackagesResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Lists Workspaces in a given Repository.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/workspaces", + "httpMethod": "GET", + "id": "dataform.projects.locations.repositories.workspaces.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "filter": { + "description": "Optional. Filter for the returned list.", + "location": "query", + "type": "string" + }, + "orderBy": { + "description": "Optional. This field only supports ordering by `name`. If unspecified, the server will choose the ordering. If specified, the default order is ascending for the `name` field.", + "location": "query", + "type": "string" + }, + "pageSize": { + "description": "Optional. Maximum number of workspaces 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 `ListWorkspaces` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListWorkspaces` must match the call that provided the page token.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The repository in which to list workspaces. Must be in the format `projects/*/locations/*/repositories/*`.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+parent}/workspaces", + "response": { + "$ref": "ListWorkspacesResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "makeDirectory": { + "description": "Creates a directory inside a Workspace.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/workspaces/{workspacesId}:makeDirectory", + "httpMethod": "POST", + "id": "dataform.projects.locations.repositories.workspaces.makeDirectory", + "parameterOrder": [ + "workspace" + ], + "parameters": { + "workspace": { + "description": "Required. The workspace's name.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+workspace}:makeDirectory", + "request": { + "$ref": "MakeDirectoryRequest" + }, + "response": { + "$ref": "MakeDirectoryResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "moveDirectory": { + "description": "Moves a directory (inside a Workspace), and all of its contents, to a new location.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/workspaces/{workspacesId}:moveDirectory", + "httpMethod": "POST", + "id": "dataform.projects.locations.repositories.workspaces.moveDirectory", + "parameterOrder": [ + "workspace" + ], + "parameters": { + "workspace": { + "description": "Required. The workspace's name.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+workspace}:moveDirectory", + "request": { + "$ref": "MoveDirectoryRequest" + }, + "response": { + "$ref": "MoveDirectoryResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "moveFile": { + "description": "Moves a file (inside a Workspace) to a new location.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/workspaces/{workspacesId}:moveFile", + "httpMethod": "POST", + "id": "dataform.projects.locations.repositories.workspaces.moveFile", + "parameterOrder": [ + "workspace" + ], + "parameters": { + "workspace": { + "description": "Required. The workspace's name.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+workspace}:moveFile", + "request": { + "$ref": "MoveFileRequest" + }, + "response": { + "$ref": "MoveFileResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "pull": { + "description": "Pulls Git commits from the Repository's remote into a Workspace.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/workspaces/{workspacesId}:pull", + "httpMethod": "POST", + "id": "dataform.projects.locations.repositories.workspaces.pull", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The workspace's name.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+name}:pull", + "request": { + "$ref": "PullGitCommitsRequest" + }, + "response": { + "$ref": "Empty" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "push": { + "description": "Pushes Git commits from a Workspace to the Repository's remote.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/workspaces/{workspacesId}:push", + "httpMethod": "POST", + "id": "dataform.projects.locations.repositories.workspaces.push", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The workspace's name.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+name}:push", + "request": { + "$ref": "PushGitCommitsRequest" + }, + "response": { + "$ref": "Empty" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "queryDirectoryContents": { + "description": "Returns the contents of a given Workspace directory.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/workspaces/{workspacesId}:queryDirectoryContents", + "httpMethod": "GET", + "id": "dataform.projects.locations.repositories.workspaces.queryDirectoryContents", + "parameterOrder": [ + "workspace" + ], + "parameters": { + "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 `QueryDirectoryContents` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `QueryDirectoryContents` 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 the workspace root. If left unset, the workspace root is used.", + "location": "query", + "type": "string" + }, + "workspace": { + "description": "Required. The workspace's name.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+workspace}:queryDirectoryContents", + "response": { + "$ref": "QueryDirectoryContentsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "readFile": { + "description": "Returns the contents of a file (inside a Workspace).", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/workspaces/{workspacesId}:readFile", + "httpMethod": "GET", + "id": "dataform.projects.locations.repositories.workspaces.readFile", + "parameterOrder": [ + "workspace" + ], + "parameters": { + "path": { + "description": "Required. The file's full path including filename, relative to the workspace root.", + "location": "query", + "type": "string" + }, + "workspace": { + "description": "Required. The workspace's name.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+workspace}:readFile", + "response": { + "$ref": "ReadFileResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "removeDirectory": { + "description": "Deletes a directory (inside a Workspace) and all of its contents.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/workspaces/{workspacesId}:removeDirectory", + "httpMethod": "POST", + "id": "dataform.projects.locations.repositories.workspaces.removeDirectory", + "parameterOrder": [ + "workspace" + ], + "parameters": { + "workspace": { + "description": "Required. The workspace's name.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+workspace}:removeDirectory", + "request": { + "$ref": "RemoveDirectoryRequest" + }, + "response": { + "$ref": "Empty" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "removeFile": { + "description": "Deletes a file (inside a Workspace).", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/workspaces/{workspacesId}:removeFile", + "httpMethod": "POST", + "id": "dataform.projects.locations.repositories.workspaces.removeFile", + "parameterOrder": [ + "workspace" + ], + "parameters": { + "workspace": { + "description": "Required. The workspace's name.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+workspace}:removeFile", + "request": { + "$ref": "RemoveFileRequest" + }, + "response": { + "$ref": "Empty" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "reset": { + "description": "Performs a Git reset for uncommitted files in a Workspace.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/workspaces/{workspacesId}:reset", + "httpMethod": "POST", + "id": "dataform.projects.locations.repositories.workspaces.reset", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The workspace's name.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+name}:reset", + "request": { + "$ref": "ResetWorkspaceChangesRequest" + }, + "response": { + "$ref": "Empty" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "writeFile": { + "description": "Writes to a file (inside a Workspace).", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/workspaces/{workspacesId}:writeFile", + "httpMethod": "POST", + "id": "dataform.projects.locations.repositories.workspaces.writeFile", + "parameterOrder": [ + "workspace" + ], + "parameters": { + "workspace": { + "description": "Required. The workspace's name.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+workspace}:writeFile", + "request": { + "$ref": "WriteFileRequest" + }, + "response": { + "$ref": "WriteFileResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + } + } + } + } + } + } + } + }, + "revision": "20221203", + "rootUrl": "https://dataform.googleapis.com/", + "schemas": { + "Assertion": { + "description": "Represents an assertion upon a SQL query which is required return zero rows.", + "id": "Assertion", + "properties": { + "dependencyTargets": { + "description": "A list of actions that this action depends on.", + "items": { + "$ref": "Target" + }, + "type": "array" + }, + "disabled": { + "description": "Whether this action is disabled (i.e. should not be run).", + "type": "boolean" + }, + "parentAction": { + "$ref": "Target", + "description": "The parent action of this assertion. Only set if this assertion was automatically generated." + }, + "relationDescriptor": { + "$ref": "RelationDescriptor", + "description": "Descriptor for the assertion's automatically-generated view and its columns." + }, + "selectQuery": { + "description": "The SELECT query which must return zero rows in order for this assertion to succeed.", + "type": "string" + }, + "tags": { + "description": "Arbitrary, user-defined tags on this action.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, + "BigQueryAction": { + "description": "Represents a workflow action that will run against BigQuery.", + "id": "BigQueryAction", + "properties": { + "sqlScript": { + "description": "Output only. The generated BigQuery SQL script that will be executed.", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, + "CancelWorkflowInvocationRequest": { + "description": "`CancelWorkflowInvocation` request message.", + "id": "CancelWorkflowInvocationRequest", + "properties": {}, + "type": "object" + }, + "CodeCompilationConfig": { + "description": "Configures various aspects of Dataform code compilation.", + "id": "CodeCompilationConfig", + "properties": { + "assertionSchema": { + "description": "Optional. The default schema (BigQuery dataset ID) for assertions.", + "type": "string" + }, + "databaseSuffix": { + "description": "Optional. The suffix that should be appended to all database (Google Cloud project ID) names.", + "type": "string" + }, + "defaultDatabase": { + "description": "Optional. The default database (Google Cloud project ID).", + "type": "string" + }, + "defaultLocation": { + "description": "Optional. The default BigQuery location to use. Defaults to \"US\". See the BigQuery docs for a full list of locations: https://cloud.google.com/bigquery/docs/locations.", + "type": "string" + }, + "defaultSchema": { + "description": "Optional. The default schema (BigQuery dataset ID).", + "type": "string" + }, + "schemaSuffix": { + "description": "Optional. The suffix that should be appended to all schema (BigQuery dataset ID) names.", + "type": "string" + }, + "tablePrefix": { + "description": "Optional. The prefix that should be prepended to all table names.", + "type": "string" + }, + "vars": { + "additionalProperties": { + "type": "string" + }, + "description": "Optional. User-defined variables that are made available to project code during compilation.", + "type": "object" + } + }, + "type": "object" + }, + "ColumnDescriptor": { + "description": "Describes a column.", + "id": "ColumnDescriptor", + "properties": { + "bigqueryPolicyTags": { + "description": "A list of BigQuery policy tags that will be applied to the column.", + "items": { + "type": "string" + }, + "type": "array" + }, + "description": { + "description": "A textual description of the column.", + "type": "string" + }, + "path": { + "description": "The identifier for the column. Each entry in `path` represents one level of nesting.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, + "CommitAuthor": { + "description": "Represents the author of a Git commit.", + "id": "CommitAuthor", + "properties": { + "emailAddress": { + "description": "Required. The commit author's email address.", + "type": "string" + }, + "name": { + "description": "Required. The commit author's name.", + "type": "string" + } + }, + "type": "object" + }, + "CommitWorkspaceChangesRequest": { + "description": "`CommitWorkspaceChanges` request message.", + "id": "CommitWorkspaceChangesRequest", + "properties": { + "author": { + "$ref": "CommitAuthor", + "description": "Required. The commit's author." + }, + "commitMessage": { + "description": "Optional. The commit's message.", + "type": "string" + }, + "paths": { + "description": "Optional. Full file paths to commit including filename, rooted at workspace root. If left empty, all files will be committed.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, + "CompilationError": { + "description": "An error encountered when attempting to compile a Dataform project.", + "id": "CompilationError", + "properties": { + "actionTarget": { + "$ref": "Target", + "description": "Output only. The identifier of the action where this error occurred, if available.", + "readOnly": true + }, + "message": { + "description": "Output only. The error's top level message.", + "readOnly": true, + "type": "string" + }, + "path": { + "description": "Output only. The path of the file where this error occurred, if available, relative to the project root.", + "readOnly": true, + "type": "string" + }, + "stack": { + "description": "Output only. The error's full stack trace.", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, + "CompilationResult": { + "description": "Represents the result of compiling a Dataform project.", + "id": "CompilationResult", + "properties": { + "codeCompilationConfig": { + "$ref": "CodeCompilationConfig", + "description": "Immutable. If set, fields of `code_compilation_config` override the default compilation settings that are specified in dataform.json." + }, + "compilationErrors": { + "description": "Output only. Errors encountered during project compilation.", + "items": { + "$ref": "CompilationError" + }, + "readOnly": true, + "type": "array" + }, + "dataformCoreVersion": { + "description": "Output only. The version of `@dataform/core` that was used for compilation.", + "readOnly": true, + "type": "string" + }, + "gitCommitish": { + "description": "Immutable. Git commit/tag/branch name at which the repository should be compiled. Must exist in the remote repository. Examples: - a commit SHA: `12ade345` - a tag: `tag1` - a branch name: `branch1`", + "type": "string" + }, + "name": { + "description": "Output only. The compilation result's name.", + "readOnly": true, + "type": "string" + }, + "releaseConfig": { + "description": "Immutable. The name of the release config to compile. The release config's 'current_compilation_result' field will be updated to this compilation result. Must be in the format `projects/*/locations/*/repositories/*/releaseConfigs/*`.", + "type": "string" + }, + "resolvedGitCommitSha": { + "description": "Output only. The fully resolved Git commit SHA of the code that was compiled.", + "readOnly": true, + "type": "string" + }, + "workspace": { + "description": "Immutable. The name of the workspace to compile. Must be in the format `projects/*/locations/*/repositories/*/workspaces/*`.", + "type": "string" + } + }, + "type": "object" + }, + "CompilationResultAction": { + "description": "Represents a single Dataform action in a compilation result.", + "id": "CompilationResultAction", + "properties": { + "assertion": { + "$ref": "Assertion", + "description": "The assertion executed by this action." + }, + "canonicalTarget": { + "$ref": "Target", + "description": "The action's identifier if the project had been compiled without any overrides configured. Unique within the compilation result." + }, + "declaration": { + "$ref": "Declaration", + "description": "The declaration declared by this action." + }, + "filePath": { + "description": "The full path including filename in which this action is located, relative to the workspace root.", + "type": "string" + }, + "operations": { + "$ref": "Operations", + "description": "The database operations executed by this action." + }, + "relation": { + "$ref": "Relation", + "description": "The database relation created/updated by this action." + }, + "target": { + "$ref": "Target", + "description": "This action's identifier. Unique within the compilation result." + } + }, + "type": "object" + }, + "Declaration": { + "description": "Represents a relation which is not managed by Dataform but which may be referenced by Dataform actions.", + "id": "Declaration", + "properties": { + "relationDescriptor": { + "$ref": "RelationDescriptor", + "description": "Descriptor for the relation and its columns. Used as documentation only, i.e. values here will result in no changes to the relation's metadata." + } + }, + "type": "object" + }, + "DirectoryEntry": { + "description": "Represents a single entry in a workspace directory.", + "id": "DirectoryEntry", + "properties": { + "directory": { + "description": "A child directory in the directory.", + "type": "string" + }, + "file": { + "description": "A file in the directory.", + "type": "string" + } + }, + "type": "object" + }, + "Empty": { + "description": "A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }", + "id": "Empty", + "properties": {}, + "type": "object" + }, + "FetchFileDiffResponse": { + "description": "`FetchFileDiff` response message.", + "id": "FetchFileDiffResponse", + "properties": { + "formattedDiff": { + "description": "The raw formatted Git diff for the file.", + "type": "string" + } + }, + "type": "object" + }, + "FetchFileGitStatusesResponse": { + "description": "`FetchFileGitStatuses` response message.", + "id": "FetchFileGitStatusesResponse", + "properties": { + "uncommittedFileChanges": { + "description": "A list of all files which have uncommitted Git changes. There will only be a single entry for any given file.", + "items": { + "$ref": "UncommittedFileChange" + }, + "type": "array" + } + }, + "type": "object" + }, + "FetchGitAheadBehindResponse": { + "description": "`FetchGitAheadBehind` response message.", + "id": "FetchGitAheadBehindResponse", + "properties": { + "commitsAhead": { + "description": "The number of commits in the remote branch that are not in the workspace.", + "format": "int32", + "type": "integer" + }, + "commitsBehind": { + "description": "The number of commits in the workspace that are not in the remote branch.", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, + "FetchRemoteBranchesResponse": { + "description": "`FetchRemoteBranches` response message.", + "id": "FetchRemoteBranchesResponse", + "properties": { + "branches": { + "description": "The remote repository's branch names.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "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/*`.", + "type": "string" + }, + "defaultBranch": { + "description": "Required. The Git remote's default branch name.", + "type": "string" + }, + "tokenStatus": { + "description": "Output only. Indicates the status of the Git access token.", + "enum": [ + "TOKEN_STATUS_UNSPECIFIED", + "NOT_FOUND", + "INVALID", + "VALID" + ], + "enumDescriptions": [ + "Default value. This value is unused.", + "The token could not be found in Secret Manager (or the Dataform Service Account did not have permission to access it).", + "The token could not be used to authenticate against the Git remote.", + "The token was used successfully to authenticate against the Git remote." + ], + "readOnly": true, + "type": "string" + }, + "url": { + "description": "Required. The Git remote's URL.", + "type": "string" + } + }, + "type": "object" + }, + "IncrementalTableConfig": { + "description": "Contains settings for relations of type `INCREMENTAL_TABLE`.", + "id": "IncrementalTableConfig", + "properties": { + "incrementalPostOperations": { + "description": "SQL statements to be executed after inserting new rows into the relation.", + "items": { + "type": "string" + }, + "type": "array" + }, + "incrementalPreOperations": { + "description": "SQL statements to be executed before inserting new rows into the relation.", + "items": { + "type": "string" + }, + "type": "array" + }, + "incrementalSelectQuery": { + "description": "The SELECT query which returns rows which should be inserted into the relation if it already exists and is not being refreshed.", + "type": "string" + }, + "refreshDisabled": { + "description": "Whether this table should be protected from being refreshed.", + "type": "boolean" + }, + "uniqueKeyParts": { + "description": "A set of columns or SQL expressions used to define row uniqueness. If any duplicates are discovered (as defined by `unique_key_parts`), only the newly selected rows (as defined by `incremental_select_query`) will be included in the relation.", + "items": { + "type": "string" + }, + "type": "array" + }, + "updatePartitionFilter": { + "description": "A SQL expression conditional used to limit the set of existing rows considered for a merge operation (see `unique_key_parts` for more information).", + "type": "string" + } + }, + "type": "object" + }, + "InstallNpmPackagesRequest": { + "description": "`InstallNpmPackages` request message.", + "id": "InstallNpmPackagesRequest", + "properties": {}, + "type": "object" + }, + "InstallNpmPackagesResponse": { + "description": "`InstallNpmPackages` response message.", + "id": "InstallNpmPackagesResponse", + "properties": {}, + "type": "object" + }, + "Interval": { + "description": "Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive). The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time.", + "id": "Interval", + "properties": { + "endTime": { + "description": "Optional. Exclusive end of the interval. If specified, a Timestamp matching this interval will have to be before the end.", + "format": "google-datetime", + "type": "string" + }, + "startTime": { + "description": "Optional. Inclusive start of the interval. If specified, a Timestamp matching this interval will have to be the same or after the start.", + "format": "google-datetime", + "type": "string" + } + }, + "type": "object" + }, + "InvocationConfig": { + "description": "Includes various configuration options for this workflow invocation. If both `included_targets` and `included_tags` are unset, all actions will be included.", + "id": "InvocationConfig", + "properties": { + "fullyRefreshIncrementalTablesEnabled": { + "description": "Immutable. When set to true, any incremental tables will be fully refreshed.", + "type": "boolean" + }, + "includedTags": { + "description": "Immutable. The set of tags to include.", + "items": { + "type": "string" + }, + "type": "array" + }, + "includedTargets": { + "description": "Immutable. The set of action identifiers to include.", + "items": { + "$ref": "Target" + }, + "type": "array" + }, + "transitiveDependenciesIncluded": { + "description": "Immutable. When set to true, transitive dependencies of included actions will be executed.", + "type": "boolean" + }, + "transitiveDependentsIncluded": { + "description": "Immutable. When set to true, transitive dependents of included actions will be executed.", + "type": "boolean" + } + }, + "type": "object" + }, + "ListCompilationResultsResponse": { + "description": "`ListCompilationResults` response message.", + "id": "ListCompilationResultsResponse", + "properties": { + "compilationResults": { + "description": "List of compilation results.", + "items": { + "$ref": "CompilationResult" + }, + "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" + }, + "unreachable": { + "description": "Locations which could not be reached.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, + "ListLocationsResponse": { + "description": "The response message for Locations.ListLocations.", + "id": "ListLocationsResponse", + "properties": { + "locations": { + "description": "A list of locations that matches the specified filter in the request.", + "items": { + "$ref": "Location" + }, + "type": "array" + }, + "nextPageToken": { + "description": "The standard List next-page token.", + "type": "string" + } + }, + "type": "object" + }, + "ListReleaseConfigsResponse": { + "description": "`ListReleaseConfigs` response message.", + "id": "ListReleaseConfigsResponse", + "properties": { + "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" + }, + "releaseConfigs": { + "description": "List of release configs.", + "items": { + "$ref": "ReleaseConfig" + }, + "type": "array" + }, + "unreachable": { + "description": "Locations which could not be reached.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, + "ListRepositoriesResponse": { + "description": "`ListRepositories` response message.", + "id": "ListRepositoriesResponse", + "properties": { + "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" + }, + "repositories": { + "description": "List of repositories.", + "items": { + "$ref": "Repository" + }, + "type": "array" + }, + "unreachable": { + "description": "Locations which could not be reached.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, + "ListWorkflowInvocationsResponse": { + "description": "`ListWorkflowInvocations` response message.", + "id": "ListWorkflowInvocationsResponse", + "properties": { + "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" + }, + "unreachable": { + "description": "Locations which could not be reached.", + "items": { + "type": "string" + }, + "type": "array" + }, + "workflowInvocations": { + "description": "List of workflow invocations.", + "items": { + "$ref": "WorkflowInvocation" + }, + "type": "array" + } + }, + "type": "object" + }, + "ListWorkspacesResponse": { + "description": "`ListWorkspaces` response message.", + "id": "ListWorkspacesResponse", + "properties": { + "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" + }, + "unreachable": { + "description": "Locations which could not be reached.", + "items": { + "type": "string" + }, + "type": "array" + }, + "workspaces": { + "description": "List of workspaces.", + "items": { + "$ref": "Workspace" + }, + "type": "array" + } + }, + "type": "object" + }, + "Location": { + "description": "A resource that represents Google Cloud Platform location.", + "id": "Location", + "properties": { + "displayName": { + "description": "The friendly name for this location, typically a nearby city name. For example, \"Tokyo\".", + "type": "string" + }, + "labels": { + "additionalProperties": { + "type": "string" + }, + "description": "Cross-service attributes for the location. For example {\"cloud.googleapis.com/region\": \"us-east1\"}", + "type": "object" + }, + "locationId": { + "description": "The canonical id for this location. For example: `\"us-east1\"`.", + "type": "string" + }, + "metadata": { + "additionalProperties": { + "description": "Properties of the object. Contains field @type with type URL.", + "type": "any" + }, + "description": "Service-specific metadata. For example the available capacity at the given location.", + "type": "object" + }, + "name": { + "description": "Resource name for the location, which may vary between implementations. For example: `\"projects/example-project/locations/us-east1\"`", + "type": "string" + } + }, + "type": "object" + }, + "MakeDirectoryRequest": { + "description": "`MakeDirectory` request message.", + "id": "MakeDirectoryRequest", + "properties": { + "path": { + "description": "Required. The directory's full path including directory name, relative to the workspace root.", + "type": "string" + } + }, + "type": "object" + }, + "MakeDirectoryResponse": { + "description": "`MakeDirectory` response message.", + "id": "MakeDirectoryResponse", + "properties": {}, + "type": "object" + }, + "MoveDirectoryRequest": { + "description": "`MoveDirectory` request message.", + "id": "MoveDirectoryRequest", + "properties": { + "newPath": { + "description": "Required. The new path for the directory including directory name, rooted at workspace root.", + "type": "string" + }, + "path": { + "description": "Required. The directory's full path including directory name, relative to the workspace root.", + "type": "string" + } + }, + "type": "object" + }, + "MoveDirectoryResponse": { + "description": "`MoveDirectory` response message.", + "id": "MoveDirectoryResponse", + "properties": {}, + "type": "object" + }, + "MoveFileRequest": { + "description": "`MoveFile` request message.", + "id": "MoveFileRequest", + "properties": { + "newPath": { + "description": "Required. The file's new path including filename, relative to the workspace root.", + "type": "string" + }, + "path": { + "description": "Required. The file's full path including filename, relative to the workspace root.", + "type": "string" + } + }, + "type": "object" + }, + "MoveFileResponse": { + "description": "`MoveFile` response message.", + "id": "MoveFileResponse", + "properties": {}, + "type": "object" + }, + "OperationMetadata": { + "description": "Represents the metadata of the long-running operation.", + "id": "OperationMetadata", + "properties": { + "apiVersion": { + "description": "Output only. API version used to start the operation.", + "readOnly": true, + "type": "string" + }, + "cancelRequested": { + "description": "Output only. Identifies whether the user has requested cancellation of the operation. Operations that have been cancelled successfully have Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.", + "readOnly": true, + "type": "boolean" + }, + "createTime": { + "description": "Output only. The time the operation was created.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "endTime": { + "description": "Output only. The time the operation finished running.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "statusDetail": { + "description": "Output only. Human-readable status of the operation, if any.", + "readOnly": true, + "type": "string" + }, + "target": { + "description": "Output only. Server-defined resource path for the target of the operation.", + "readOnly": true, + "type": "string" + }, + "verb": { + "description": "Output only. Name of the verb executed by the operation.", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, + "Operations": { + "description": "Represents a list of arbitrary database operations.", + "id": "Operations", + "properties": { + "dependencyTargets": { + "description": "A list of actions that this action depends on.", + "items": { + "$ref": "Target" + }, + "type": "array" + }, + "disabled": { + "description": "Whether this action is disabled (i.e. should not be run).", + "type": "boolean" + }, + "hasOutput": { + "description": "Whether these operations produce an output relation.", + "type": "boolean" + }, + "queries": { + "description": "A list of arbitrary SQL statements that will be executed without alteration.", + "items": { + "type": "string" + }, + "type": "array" + }, + "relationDescriptor": { + "$ref": "RelationDescriptor", + "description": "Descriptor for any output relation and its columns. Only set if `has_output` is true." + }, + "tags": { + "description": "Arbitrary, user-defined tags on this action.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, + "PullGitCommitsRequest": { + "description": "`PullGitCommits` request message.", + "id": "PullGitCommitsRequest", + "properties": { + "author": { + "$ref": "CommitAuthor", + "description": "Required. The author of any merge commit which may be created as a result of merging fetched Git commits into this workspace." + }, + "remoteBranch": { + "description": "Optional. The name of the branch in the Git remote from which to pull commits. If left unset, the repository's default branch name will be used.", + "type": "string" + } + }, + "type": "object" + }, + "PushGitCommitsRequest": { + "description": "`PushGitCommits` request message.", + "id": "PushGitCommitsRequest", + "properties": { + "remoteBranch": { + "description": "Optional. The name of the branch in the Git remote to which commits should be pushed. If left unset, the repository's default branch name will be used.", + "type": "string" + } + }, + "type": "object" + }, + "QueryCompilationResultActionsResponse": { + "description": "`QueryCompilationResultActions` response message.", + "id": "QueryCompilationResultActionsResponse", + "properties": { + "compilationResultActions": { + "description": "List of compilation result actions.", + "items": { + "$ref": "CompilationResultAction" + }, + "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" + }, + "QueryDirectoryContentsResponse": { + "description": "`QueryDirectoryContents` response message.", + "id": "QueryDirectoryContentsResponse", + "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", + "properties": { + "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" + }, + "workflowInvocationActions": { + "description": "List of workflow invocation actions.", + "items": { + "$ref": "WorkflowInvocationAction" + }, + "type": "array" + } + }, + "type": "object" + }, + "ReadFileResponse": { + "description": "`ReadFile` response message.", + "id": "ReadFileResponse", + "properties": { + "fileContents": { + "description": "The file's contents.", + "format": "byte", + "type": "string" + } + }, + "type": "object" + }, + "Relation": { + "description": "Represents a database relation.", + "id": "Relation", + "properties": { + "additionalOptions": { + "additionalProperties": { + "type": "string" + }, + "description": "Additional options that will be provided as key/value pairs into the options clause of a create table/view statement. See https://cloud.google.com/bigquery/docs/reference/standard-sql/data-definition-language for more information on which options are supported.", + "type": "object" + }, + "clusterExpressions": { + "description": "A list of columns or SQL expressions used to cluster the table.", + "items": { + "type": "string" + }, + "type": "array" + }, + "dependencyTargets": { + "description": "A list of actions that this action depends on.", + "items": { + "$ref": "Target" + }, + "type": "array" + }, + "disabled": { + "description": "Whether this action is disabled (i.e. should not be run).", + "type": "boolean" + }, + "incrementalTableConfig": { + "$ref": "IncrementalTableConfig", + "description": "Configures `INCREMENTAL_TABLE` settings for this relation. Only set if `relation_type` is `INCREMENTAL_TABLE`." + }, + "partitionExpirationDays": { + "description": "Sets the partition expiration in days.", + "format": "int32", + "type": "integer" + }, + "partitionExpression": { + "description": "The SQL expression used to partition the relation.", + "type": "string" + }, + "postOperations": { + "description": "SQL statements to be executed after creating the relation.", + "items": { + "type": "string" + }, + "type": "array" + }, + "preOperations": { + "description": "SQL statements to be executed before creating the relation.", + "items": { + "type": "string" + }, + "type": "array" + }, + "relationDescriptor": { + "$ref": "RelationDescriptor", + "description": "Descriptor for the relation and its columns." + }, + "relationType": { + "description": "The type of this relation.", + "enum": [ + "RELATION_TYPE_UNSPECIFIED", + "TABLE", + "VIEW", + "INCREMENTAL_TABLE", + "MATERIALIZED_VIEW" + ], + "enumDescriptions": [ + "Default value. This value is unused.", + "The relation is a table.", + "The relation is a view.", + "The relation is an incrementalized table.", + "The relation is a materialized view." + ], + "type": "string" + }, + "requirePartitionFilter": { + "description": "Specifies whether queries on this table must include a predicate filter that filters on the partitioning column.", + "type": "boolean" + }, + "selectQuery": { + "description": "The SELECT query which returns rows which this relation should contain.", + "type": "string" + }, + "tags": { + "description": "Arbitrary, user-defined tags on this action.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, + "RelationDescriptor": { + "description": "Describes a relation and its columns.", + "id": "RelationDescriptor", + "properties": { + "bigqueryLabels": { + "additionalProperties": { + "type": "string" + }, + "description": "A set of BigQuery labels that should be applied to the relation.", + "type": "object" + }, + "columns": { + "description": "A list of descriptions of columns within the relation.", + "items": { + "$ref": "ColumnDescriptor" + }, + "type": "array" + }, + "description": { + "description": "A text description of the relation.", + "type": "string" + } + }, + "type": "object" + }, + "ReleaseConfig": { + "description": "Represents a Dataform release configuration.", + "id": "ReleaseConfig", + "properties": { + "codeCompilationConfig": { + "$ref": "CodeCompilationConfig", + "description": "Immutable. If set, fields of `code_compilation_config` override the default compilation settings that are specified in dataform.json." + }, + "cronSchedule": { + "description": "Optional. Optional schedule (in cron format) for automatic creation of compilation results.", + "type": "string" + }, + "gitCommitish": { + "description": "Required. Git commit/tag/branch name at which the repository should be compiled. Must exist in the remote repository. Examples: - a commit SHA: `12ade345` - a tag: `tag1` - a branch name: `branch1`", + "type": "string" + }, + "name": { + "description": "Output only. The release config's name.", + "readOnly": true, + "type": "string" + }, + "recentScheduledReleaseRecords": { + "description": "Output only. Records of the 10 most recent scheduled release attempts. Updated whenever automatic creation of a compilation result is triggered by cron_schedule.", + "items": { + "$ref": "ScheduledReleaseRecord" + }, + "readOnly": true, + "type": "array" + }, + "releaseCompilationResult": { + "description": "Optional. The name of the currently released compilation result for this release config. This value is updated when a compilation result is created from this release config, or when this resource is updated by API call (perhaps to roll back to an earlier release). The compilation result must have been created using this release config. Must be in the format `projects/*/locations/*/repositories/*/compilationResults/*`.", + "type": "string" + } + }, + "type": "object" + }, + "RemoveDirectoryRequest": { + "description": "`RemoveDirectory` request message.", + "id": "RemoveDirectoryRequest", + "properties": { + "path": { + "description": "Required. The directory's full path including directory name, relative to the workspace root.", + "type": "string" + } + }, + "type": "object" + }, + "RemoveFileRequest": { + "description": "`RemoveFile` request message.", + "id": "RemoveFileRequest", + "properties": { + "path": { + "description": "Required. The file's full path including filename, relative to the workspace root.", + "type": "string" + } + }, + "type": "object" + }, + "Repository": { + "description": "Represents a Dataform Git repository.", + "id": "Repository", + "properties": { + "gitRemoteSettings": { + "$ref": "GitRemoteSettings", + "description": "Optional. If set, configures this repository to be linked to a Git remote." + }, + "name": { + "description": "Output only. The repository's name.", + "readOnly": true, + "type": "string" + }, + "npmrcEnvironmentVariablesSecretVersion": { + "description": "Optional. The name of the Secret Manager secret version to be used to interpolate variables into the .npmrc file for package installation operations. Must be in the format `projects/*/secrets/*/versions/*`. The file itself must be in a JSON format.", + "type": "string" + } + }, + "type": "object" + }, + "ResetWorkspaceChangesRequest": { + "description": "`ResetWorkspaceChanges` request message.", + "id": "ResetWorkspaceChangesRequest", + "properties": { + "clean": { + "description": "Optional. If set to true, untracked files will be deleted.", + "type": "boolean" + }, + "paths": { + "description": "Optional. Full file paths to reset back to their committed state including filename, rooted at workspace root. If left empty, all files will be reset.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, + "ScheduledReleaseRecord": { + "description": "A record of an attempt to create a compilation result for this release config.", + "id": "ScheduledReleaseRecord", + "properties": { + "compilationResult": { + "description": "The name of the created compilation result, if one was successfully created. Must be in the format `projects/*/locations/*/repositories/*/compilationResults/*`.", + "type": "string" + }, + "errorStatus": { + "$ref": "Status", + "description": "The error status encountered upon this attempt to create the compilation result, if the attempt was unsuccessful." + }, + "releaseTime": { + "description": "The timestamp of this release attempt.", + "format": "google-datetime", + "type": "string" + } + }, + "type": "object" + }, + "Status": { + "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": "Status", + "properties": { + "code": { + "description": "The status code, which should be an enum value of google.rpc.Code.", + "format": "int32", + "type": "integer" + }, + "details": { + "description": "A list of messages that carry the error details. There is a common set of message types for APIs to use.", + "items": { + "additionalProperties": { + "description": "Properties of the object. Contains field @type with type URL.", + "type": "any" + }, + "type": "object" + }, + "type": "array" + }, + "message": { + "description": "A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.", + "type": "string" + } + }, + "type": "object" + }, + "Target": { + "description": "Represents an action identifier. If the action writes output, the output will be written to the referenced database object.", + "id": "Target", + "properties": { + "database": { + "description": "The action's database (Google Cloud project ID) .", + "type": "string" + }, + "name": { + "description": "The action's name, within `database` and `schema`.", + "type": "string" + }, + "schema": { + "description": "The action's schema (BigQuery dataset ID), within `database`.", + "type": "string" + } + }, + "type": "object" + }, + "UncommittedFileChange": { + "description": "Represents the Git state of a file with uncommitted changes.", + "id": "UncommittedFileChange", + "properties": { + "path": { + "description": "The file's full path including filename, relative to the workspace root.", + "type": "string" + }, + "state": { + "description": "Indicates the status of the file.", + "enum": [ + "STATE_UNSPECIFIED", + "ADDED", + "DELETED", + "MODIFIED", + "HAS_CONFLICTS" + ], + "enumDescriptions": [ + "Default value. This value is unused.", + "The file has been newly added.", + "The file has been deleted.", + "The file has been modified.", + "The file contains merge conflicts." + ], + "type": "string" + } + }, + "type": "object" + }, + "WorkflowInvocation": { + "description": "Represents a single invocation of a compilation result.", + "id": "WorkflowInvocation", + "properties": { + "compilationResult": { + "description": "Immutable. The name of the compilation result to compile. Must be in the format `projects/*/locations/*/repositories/*/compilationResults/*`.", + "type": "string" + }, + "invocationConfig": { + "$ref": "InvocationConfig", + "description": "Immutable. If left unset, a default InvocationConfig will be used." + }, + "invocationTiming": { + "$ref": "Interval", + "description": "Output only. This workflow invocation's timing details.", + "readOnly": true + }, + "name": { + "description": "Output only. The workflow invocation's name.", + "readOnly": true, + "type": "string" + }, + "state": { + "description": "Output only. This workflow invocation's current state.", + "enum": [ + "STATE_UNSPECIFIED", + "RUNNING", + "SUCCEEDED", + "CANCELLED", + "FAILED", + "CANCELING" + ], + "enumDescriptions": [ + "Default value. This value is unused.", + "The workflow invocation is currently running.", + "The workflow invocation succeeded. A terminal state.", + "The workflow invocation was cancelled. A terminal state.", + "The workflow invocation failed. A terminal state.", + "The workflow invocation is being cancelled, but some actions are still running." + ], + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, + "WorkflowInvocationAction": { + "description": "Represents a single action in a workflow invocation.", + "id": "WorkflowInvocationAction", + "properties": { + "bigqueryAction": { + "$ref": "BigQueryAction", + "description": "Output only. The workflow action's bigquery action details.", + "readOnly": true + }, + "canonicalTarget": { + "$ref": "Target", + "description": "Output only. The action's identifier if the project had been compiled without any overrides configured. Unique within the compilation result.", + "readOnly": true + }, + "failureReason": { + "description": "Output only. If and only if action's state is FAILED a failure reason is set.", + "readOnly": true, + "type": "string" + }, + "invocationTiming": { + "$ref": "Interval", + "description": "Output only. This action's timing details. `start_time` will be set if the action is in [RUNNING, SUCCEEDED, CANCELLED, FAILED] state. `end_time` will be set if the action is in [SUCCEEDED, CANCELLED, FAILED] state.", + "readOnly": true + }, + "state": { + "description": "Output only. This action's current state.", + "enum": [ + "PENDING", + "RUNNING", + "SKIPPED", + "DISABLED", + "SUCCEEDED", + "CANCELLED", + "FAILED" + ], + "enumDescriptions": [ + "The action has not yet been considered for invocation.", + "The action is currently running.", + "Execution of the action was skipped because upstream dependencies did not all complete successfully. A terminal state.", + "Execution of the action was disabled as per the configuration of the corresponding compilation result action. A terminal state.", + "The action succeeded. A terminal state.", + "The action was cancelled. A terminal state.", + "The action failed. A terminal state." + ], + "readOnly": true, + "type": "string" + }, + "target": { + "$ref": "Target", + "description": "Output only. This action's identifier. Unique within the workflow invocation.", + "readOnly": true + } + }, + "type": "object" + }, + "Workspace": { + "description": "Represents a Dataform Git workspace.", + "id": "Workspace", + "properties": { + "name": { + "description": "Output only. The workspace's name.", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, + "WriteFileRequest": { + "description": "`WriteFile` request message.", + "id": "WriteFileRequest", + "properties": { + "contents": { + "description": "Required. The file's contents.", + "format": "byte", + "type": "string" + }, + "path": { + "description": "Required. The file.", + "type": "string" + } + }, + "type": "object" + }, + "WriteFileResponse": { + "description": "`WriteFile` response message.", + "id": "WriteFileResponse", + "properties": {}, + "type": "object" + } + }, + "servicePath": "", + "title": "Dataform API", + "version": "v1beta1", + "version_module": true +} \ No newline at end of file diff --git a/dataform/v1beta1/dataform-gen.go b/dataform/v1beta1/dataform-gen.go new file mode 100644 index 00000000000..a8f829672bb --- /dev/null +++ b/dataform/v1beta1/dataform-gen.go @@ -0,0 +1,9303 @@ +// Copyright 2022 Google LLC. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// Code generated file. DO NOT EDIT. + +// Package dataform provides access to the Dataform API. +// +// For product documentation, see: https://cloud.google.com/dataform/docs +// +// # Creating a client +// +// Usage example: +// +// import "google.golang.org/api/dataform/v1beta1" +// ... +// ctx := context.Background() +// dataformService, err := dataform.NewService(ctx) +// +// In this example, Google Application Default Credentials are used for authentication. +// +// For information on how to create and obtain Application Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. +// +// # Other authentication options +// +// To use an API key for authentication (note: some APIs do not support API keys), use option.WithAPIKey: +// +// dataformService, err := dataform.NewService(ctx, option.WithAPIKey("AIza...")) +// +// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth flow), use option.WithTokenSource: +// +// config := &oauth2.Config{...} +// // ... +// token, err := config.Exchange(ctx, ...) +// dataformService, err := dataform.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token))) +// +// See https://godoc.org/google.golang.org/api/option/ for details on options. +package dataform // import "google.golang.org/api/dataform/v1beta1" + +import ( + "bytes" + "context" + "encoding/json" + "errors" + "fmt" + "io" + "net/http" + "net/url" + "strconv" + "strings" + + googleapi "google.golang.org/api/googleapi" + internal "google.golang.org/api/internal" + gensupport "google.golang.org/api/internal/gensupport" + option "google.golang.org/api/option" + internaloption "google.golang.org/api/option/internaloption" + htransport "google.golang.org/api/transport/http" +) + +// Always reference these packages, just in case the auto-generated code +// below doesn't. +var _ = bytes.NewBuffer +var _ = strconv.Itoa +var _ = fmt.Sprintf +var _ = json.NewDecoder +var _ = io.Copy +var _ = url.Parse +var _ = gensupport.MarshalJSON +var _ = googleapi.Version +var _ = errors.New +var _ = strings.Replace +var _ = context.Canceled +var _ = internaloption.WithDefaultEndpoint + +const apiId = "dataform:v1beta1" +const apiName = "dataform" +const apiVersion = "v1beta1" +const basePath = "https://dataform.googleapis.com/" +const mtlsBasePath = "https://dataform.mtls.googleapis.com/" + +// OAuth2 scopes used by this API. +const ( + // See, edit, configure, and delete your Google Cloud data and see the + // email address for your Google Account. + CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platform" +) + +// NewService creates a new Service. +func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, error) { + scopesOption := internaloption.WithDefaultScopes( + "https://www.googleapis.com/auth/cloud-platform", + ) + // NOTE: prepend, so we don't override user-specified scopes. + opts = append([]option.ClientOption{scopesOption}, opts...) + opts = append(opts, internaloption.WithDefaultEndpoint(basePath)) + opts = append(opts, internaloption.WithDefaultMTLSEndpoint(mtlsBasePath)) + client, endpoint, err := htransport.NewClient(ctx, opts...) + if err != nil { + return nil, err + } + s, err := New(client) + if err != nil { + return nil, err + } + if endpoint != "" { + s.BasePath = endpoint + } + return s, nil +} + +// New creates a new Service. It uses the provided http.Client for requests. +// +// Deprecated: please use NewService instead. +// To provide a custom HTTP client, use option.WithHTTPClient. +// If you are using google.golang.org/api/googleapis/transport.APIKey, use option.WithAPIKey with NewService instead. +func New(client *http.Client) (*Service, error) { + if client == nil { + return nil, errors.New("client is nil") + } + s := &Service{client: client, BasePath: basePath} + s.Projects = NewProjectsService(s) + return s, nil +} + +type Service struct { + client *http.Client + BasePath string // API endpoint base URL + UserAgent string // optional additional User-Agent fragment + + Projects *ProjectsService +} + +func (s *Service) userAgent() string { + if s.UserAgent == "" { + return googleapi.UserAgent + } + return googleapi.UserAgent + " " + s.UserAgent +} + +func NewProjectsService(s *Service) *ProjectsService { + rs := &ProjectsService{s: s} + rs.Locations = NewProjectsLocationsService(s) + return rs +} + +type ProjectsService struct { + s *Service + + Locations *ProjectsLocationsService +} + +func NewProjectsLocationsService(s *Service) *ProjectsLocationsService { + rs := &ProjectsLocationsService{s: s} + rs.Repositories = NewProjectsLocationsRepositoriesService(s) + return rs +} + +type ProjectsLocationsService struct { + s *Service + + Repositories *ProjectsLocationsRepositoriesService +} + +func NewProjectsLocationsRepositoriesService(s *Service) *ProjectsLocationsRepositoriesService { + rs := &ProjectsLocationsRepositoriesService{s: s} + rs.CompilationResults = NewProjectsLocationsRepositoriesCompilationResultsService(s) + rs.ReleaseConfigs = NewProjectsLocationsRepositoriesReleaseConfigsService(s) + rs.WorkflowInvocations = NewProjectsLocationsRepositoriesWorkflowInvocationsService(s) + rs.Workspaces = NewProjectsLocationsRepositoriesWorkspacesService(s) + return rs +} + +type ProjectsLocationsRepositoriesService struct { + s *Service + + CompilationResults *ProjectsLocationsRepositoriesCompilationResultsService + + ReleaseConfigs *ProjectsLocationsRepositoriesReleaseConfigsService + + WorkflowInvocations *ProjectsLocationsRepositoriesWorkflowInvocationsService + + Workspaces *ProjectsLocationsRepositoriesWorkspacesService +} + +func NewProjectsLocationsRepositoriesCompilationResultsService(s *Service) *ProjectsLocationsRepositoriesCompilationResultsService { + rs := &ProjectsLocationsRepositoriesCompilationResultsService{s: s} + return rs +} + +type ProjectsLocationsRepositoriesCompilationResultsService struct { + s *Service +} + +func NewProjectsLocationsRepositoriesReleaseConfigsService(s *Service) *ProjectsLocationsRepositoriesReleaseConfigsService { + rs := &ProjectsLocationsRepositoriesReleaseConfigsService{s: s} + return rs +} + +type ProjectsLocationsRepositoriesReleaseConfigsService struct { + s *Service +} + +func NewProjectsLocationsRepositoriesWorkflowInvocationsService(s *Service) *ProjectsLocationsRepositoriesWorkflowInvocationsService { + rs := &ProjectsLocationsRepositoriesWorkflowInvocationsService{s: s} + return rs +} + +type ProjectsLocationsRepositoriesWorkflowInvocationsService struct { + s *Service +} + +func NewProjectsLocationsRepositoriesWorkspacesService(s *Service) *ProjectsLocationsRepositoriesWorkspacesService { + rs := &ProjectsLocationsRepositoriesWorkspacesService{s: s} + return rs +} + +type ProjectsLocationsRepositoriesWorkspacesService struct { + s *Service +} + +// Assertion: Represents an assertion upon a SQL query which is required +// return zero rows. +type Assertion struct { + // DependencyTargets: A list of actions that this action depends on. + DependencyTargets []*Target `json:"dependencyTargets,omitempty"` + + // Disabled: Whether this action is disabled (i.e. should not be run). + Disabled bool `json:"disabled,omitempty"` + + // ParentAction: The parent action of this assertion. Only set if this + // assertion was automatically generated. + ParentAction *Target `json:"parentAction,omitempty"` + + // RelationDescriptor: Descriptor for the assertion's + // automatically-generated view and its columns. + RelationDescriptor *RelationDescriptor `json:"relationDescriptor,omitempty"` + + // SelectQuery: The SELECT query which must return zero rows in order + // for this assertion to succeed. + SelectQuery string `json:"selectQuery,omitempty"` + + // Tags: Arbitrary, user-defined tags on this action. + Tags []string `json:"tags,omitempty"` + + // ForceSendFields is a list of field names (e.g. "DependencyTargets") + // 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. "DependencyTargets") 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 *Assertion) MarshalJSON() ([]byte, error) { + type NoMethod Assertion + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// BigQueryAction: Represents a workflow action that will run against +// BigQuery. +type BigQueryAction struct { + // SqlScript: Output only. The generated BigQuery SQL script that will + // be executed. + SqlScript string `json:"sqlScript,omitempty"` + + // ForceSendFields is a list of field names (e.g. "SqlScript") 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. "SqlScript") 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 *BigQueryAction) MarshalJSON() ([]byte, error) { + type NoMethod BigQueryAction + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// CancelWorkflowInvocationRequest: `CancelWorkflowInvocation` request +// message. +type CancelWorkflowInvocationRequest struct { +} + +// CodeCompilationConfig: Configures various aspects of Dataform code +// compilation. +type CodeCompilationConfig struct { + // AssertionSchema: Optional. The default schema (BigQuery dataset ID) + // for assertions. + AssertionSchema string `json:"assertionSchema,omitempty"` + + // DatabaseSuffix: Optional. The suffix that should be appended to all + // database (Google Cloud project ID) names. + DatabaseSuffix string `json:"databaseSuffix,omitempty"` + + // DefaultDatabase: Optional. The default database (Google Cloud project + // ID). + DefaultDatabase string `json:"defaultDatabase,omitempty"` + + // DefaultLocation: Optional. The default BigQuery location to use. + // Defaults to "US". See the BigQuery docs for a full list of locations: + // https://cloud.google.com/bigquery/docs/locations. + DefaultLocation string `json:"defaultLocation,omitempty"` + + // DefaultSchema: Optional. The default schema (BigQuery dataset ID). + DefaultSchema string `json:"defaultSchema,omitempty"` + + // SchemaSuffix: Optional. The suffix that should be appended to all + // schema (BigQuery dataset ID) names. + SchemaSuffix string `json:"schemaSuffix,omitempty"` + + // TablePrefix: Optional. The prefix that should be prepended to all + // table names. + TablePrefix string `json:"tablePrefix,omitempty"` + + // Vars: Optional. User-defined variables that are made available to + // project code during compilation. + Vars map[string]string `json:"vars,omitempty"` + + // ForceSendFields is a list of field names (e.g. "AssertionSchema") 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. "AssertionSchema") 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 *CodeCompilationConfig) MarshalJSON() ([]byte, error) { + type NoMethod CodeCompilationConfig + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// ColumnDescriptor: Describes a column. +type ColumnDescriptor struct { + // BigqueryPolicyTags: A list of BigQuery policy tags that will be + // applied to the column. + BigqueryPolicyTags []string `json:"bigqueryPolicyTags,omitempty"` + + // Description: A textual description of the column. + Description string `json:"description,omitempty"` + + // Path: The identifier for the column. Each entry in `path` represents + // one level of nesting. + Path []string `json:"path,omitempty"` + + // ForceSendFields is a list of field names (e.g. "BigqueryPolicyTags") + // 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. "BigqueryPolicyTags") 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 *ColumnDescriptor) MarshalJSON() ([]byte, error) { + type NoMethod ColumnDescriptor + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// CommitAuthor: Represents the author of a Git commit. +type CommitAuthor struct { + // EmailAddress: Required. The commit author's email address. + EmailAddress string `json:"emailAddress,omitempty"` + + // Name: Required. The commit author's name. + Name string `json:"name,omitempty"` + + // ForceSendFields is a list of field names (e.g. "EmailAddress") 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. "EmailAddress") 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 *CommitAuthor) MarshalJSON() ([]byte, error) { + type NoMethod CommitAuthor + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// CommitWorkspaceChangesRequest: `CommitWorkspaceChanges` request +// message. +type CommitWorkspaceChangesRequest struct { + // Author: Required. The commit's author. + Author *CommitAuthor `json:"author,omitempty"` + + // CommitMessage: Optional. The commit's message. + CommitMessage string `json:"commitMessage,omitempty"` + + // Paths: Optional. Full file paths to commit including filename, rooted + // at workspace root. If left empty, all files will be committed. + Paths []string `json:"paths,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 *CommitWorkspaceChangesRequest) MarshalJSON() ([]byte, error) { + type NoMethod CommitWorkspaceChangesRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// CompilationError: An error encountered when attempting to compile a +// Dataform project. +type CompilationError struct { + // ActionTarget: Output only. The identifier of the action where this + // error occurred, if available. + ActionTarget *Target `json:"actionTarget,omitempty"` + + // Message: Output only. The error's top level message. + Message string `json:"message,omitempty"` + + // Path: Output only. The path of the file where this error occurred, if + // available, relative to the project root. + Path string `json:"path,omitempty"` + + // Stack: Output only. The error's full stack trace. + Stack string `json:"stack,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ActionTarget") 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. "ActionTarget") 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 *CompilationError) MarshalJSON() ([]byte, error) { + type NoMethod CompilationError + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// CompilationResult: Represents the result of compiling a Dataform +// project. +type CompilationResult struct { + // CodeCompilationConfig: Immutable. If set, fields of + // `code_compilation_config` override the default compilation settings + // that are specified in dataform.json. + CodeCompilationConfig *CodeCompilationConfig `json:"codeCompilationConfig,omitempty"` + + // CompilationErrors: Output only. Errors encountered during project + // compilation. + CompilationErrors []*CompilationError `json:"compilationErrors,omitempty"` + + // DataformCoreVersion: Output only. The version of `@dataform/core` + // that was used for compilation. + DataformCoreVersion string `json:"dataformCoreVersion,omitempty"` + + // GitCommitish: Immutable. Git commit/tag/branch name at which the + // repository should be compiled. Must exist in the remote repository. + // Examples: - a commit SHA: `12ade345` - a tag: `tag1` - a branch name: + // `branch1` + GitCommitish string `json:"gitCommitish,omitempty"` + + // Name: Output only. The compilation result's name. + Name string `json:"name,omitempty"` + + // ReleaseConfig: Immutable. The name of the release config to compile. + // The release config's 'current_compilation_result' field will be + // updated to this compilation result. Must be in the format + // `projects/*/locations/*/repositories/*/releaseConfigs/*`. + ReleaseConfig string `json:"releaseConfig,omitempty"` + + // ResolvedGitCommitSha: Output only. The fully resolved Git commit SHA + // of the code that was compiled. + ResolvedGitCommitSha string `json:"resolvedGitCommitSha,omitempty"` + + // Workspace: Immutable. The name of the workspace to compile. Must be + // in the format `projects/*/locations/*/repositories/*/workspaces/*`. + Workspace string `json:"workspace,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. + // "CodeCompilationConfig") 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. "CodeCompilationConfig") 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 *CompilationResult) MarshalJSON() ([]byte, error) { + type NoMethod CompilationResult + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// CompilationResultAction: Represents a single Dataform action in a +// compilation result. +type CompilationResultAction struct { + // Assertion: The assertion executed by this action. + Assertion *Assertion `json:"assertion,omitempty"` + + // CanonicalTarget: The action's identifier if the project had been + // compiled without any overrides configured. Unique within the + // compilation result. + CanonicalTarget *Target `json:"canonicalTarget,omitempty"` + + // Declaration: The declaration declared by this action. + Declaration *Declaration `json:"declaration,omitempty"` + + // FilePath: The full path including filename in which this action is + // located, relative to the workspace root. + FilePath string `json:"filePath,omitempty"` + + // Operations: The database operations executed by this action. + Operations *Operations `json:"operations,omitempty"` + + // Relation: The database relation created/updated by this action. + Relation *Relation `json:"relation,omitempty"` + + // Target: This action's identifier. Unique within the compilation + // result. + Target *Target `json:"target,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Assertion") 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. "Assertion") 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 *CompilationResultAction) MarshalJSON() ([]byte, error) { + type NoMethod CompilationResultAction + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// Declaration: Represents a relation which is not managed by Dataform +// but which may be referenced by Dataform actions. +type Declaration struct { + // RelationDescriptor: Descriptor for the relation and its columns. Used + // as documentation only, i.e. values here will result in no changes to + // the relation's metadata. + RelationDescriptor *RelationDescriptor `json:"relationDescriptor,omitempty"` + + // ForceSendFields is a list of field names (e.g. "RelationDescriptor") + // 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. "RelationDescriptor") 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 *Declaration) MarshalJSON() ([]byte, error) { + type NoMethod Declaration + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// DirectoryEntry: Represents a single entry in a workspace directory. +type DirectoryEntry struct { + // Directory: A child directory in the directory. + Directory string `json:"directory,omitempty"` + + // File: A file in the directory. + File string `json:"file,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Directory") 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. "Directory") 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 *DirectoryEntry) MarshalJSON() ([]byte, error) { + type NoMethod DirectoryEntry + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// Empty: A generic empty message that you can re-use to avoid defining +// duplicated empty messages in your APIs. A typical example is to use +// it as the request or the response type of an API method. For +// instance: service Foo { rpc Bar(google.protobuf.Empty) returns +// (google.protobuf.Empty); } +type Empty struct { + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` +} + +// FetchFileDiffResponse: `FetchFileDiff` response message. +type FetchFileDiffResponse struct { + // FormattedDiff: The raw formatted Git diff for the file. + FormattedDiff string `json:"formattedDiff,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "FormattedDiff") 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. "FormattedDiff") 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 *FetchFileDiffResponse) MarshalJSON() ([]byte, error) { + type NoMethod FetchFileDiffResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// FetchFileGitStatusesResponse: `FetchFileGitStatuses` response +// message. +type FetchFileGitStatusesResponse struct { + // UncommittedFileChanges: A list of all files which have uncommitted + // Git changes. There will only be a single entry for any given file. + UncommittedFileChanges []*UncommittedFileChange `json:"uncommittedFileChanges,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. + // "UncommittedFileChanges") 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. "UncommittedFileChanges") + // 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 *FetchFileGitStatusesResponse) MarshalJSON() ([]byte, error) { + type NoMethod FetchFileGitStatusesResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// FetchGitAheadBehindResponse: `FetchGitAheadBehind` response message. +type FetchGitAheadBehindResponse struct { + // CommitsAhead: The number of commits in the remote branch that are not + // in the workspace. + CommitsAhead int64 `json:"commitsAhead,omitempty"` + + // CommitsBehind: The number of commits in the workspace that are not in + // the remote branch. + CommitsBehind int64 `json:"commitsBehind,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "CommitsAhead") 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. "CommitsAhead") 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 *FetchGitAheadBehindResponse) MarshalJSON() ([]byte, error) { + type NoMethod FetchGitAheadBehindResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// FetchRemoteBranchesResponse: `FetchRemoteBranches` response message. +type FetchRemoteBranchesResponse struct { + // Branches: The remote repository's branch names. + Branches []string `json:"branches,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "Branches") 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. "Branches") 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 *FetchRemoteBranchesResponse) MarshalJSON() ([]byte, error) { + type NoMethod FetchRemoteBranchesResponse + 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 + // 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"` + + // DefaultBranch: Required. The Git remote's default branch name. + DefaultBranch string `json:"defaultBranch,omitempty"` + + // TokenStatus: Output only. Indicates the status of the Git access + // token. + // + // Possible values: + // "TOKEN_STATUS_UNSPECIFIED" - Default value. This value is unused. + // "NOT_FOUND" - The token could not be found in Secret Manager (or + // the Dataform Service Account did not have permission to access it). + // "INVALID" - The token could not be used to authenticate against the + // Git remote. + // "VALID" - The token was used successfully to authenticate against + // the Git remote. + TokenStatus string `json:"tokenStatus,omitempty"` + + // Url: Required. The Git remote's URL. + Url string `json:"url,omitempty"` + + // ForceSendFields is a list of field names (e.g. + // "AuthenticationTokenSecretVersion") 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. + // "AuthenticationTokenSecretVersion") 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 *GitRemoteSettings) MarshalJSON() ([]byte, error) { + type NoMethod GitRemoteSettings + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// IncrementalTableConfig: Contains settings for relations of type +// `INCREMENTAL_TABLE`. +type IncrementalTableConfig struct { + // IncrementalPostOperations: SQL statements to be executed after + // inserting new rows into the relation. + IncrementalPostOperations []string `json:"incrementalPostOperations,omitempty"` + + // IncrementalPreOperations: SQL statements to be executed before + // inserting new rows into the relation. + IncrementalPreOperations []string `json:"incrementalPreOperations,omitempty"` + + // IncrementalSelectQuery: The SELECT query which returns rows which + // should be inserted into the relation if it already exists and is not + // being refreshed. + IncrementalSelectQuery string `json:"incrementalSelectQuery,omitempty"` + + // RefreshDisabled: Whether this table should be protected from being + // refreshed. + RefreshDisabled bool `json:"refreshDisabled,omitempty"` + + // UniqueKeyParts: A set of columns or SQL expressions used to define + // row uniqueness. If any duplicates are discovered (as defined by + // `unique_key_parts`), only the newly selected rows (as defined by + // `incremental_select_query`) will be included in the relation. + UniqueKeyParts []string `json:"uniqueKeyParts,omitempty"` + + // UpdatePartitionFilter: A SQL expression conditional used to limit the + // set of existing rows considered for a merge operation (see + // `unique_key_parts` for more information). + UpdatePartitionFilter string `json:"updatePartitionFilter,omitempty"` + + // ForceSendFields is a list of field names (e.g. + // "IncrementalPostOperations") 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. + // "IncrementalPostOperations") 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 *IncrementalTableConfig) MarshalJSON() ([]byte, error) { + type NoMethod IncrementalTableConfig + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// InstallNpmPackagesRequest: `InstallNpmPackages` request message. +type InstallNpmPackagesRequest struct { +} + +// InstallNpmPackagesResponse: `InstallNpmPackages` response message. +type InstallNpmPackagesResponse struct { + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` +} + +// Interval: Represents a time interval, encoded as a Timestamp start +// (inclusive) and a Timestamp end (exclusive). The start must be less +// than or equal to the end. When the start equals the end, the interval +// is empty (matches no time). When both start and end are unspecified, +// the interval matches any time. +type Interval struct { + // EndTime: Optional. Exclusive end of the interval. If specified, a + // Timestamp matching this interval will have to be before the end. + EndTime string `json:"endTime,omitempty"` + + // StartTime: Optional. Inclusive start of the interval. If specified, a + // Timestamp matching this interval will have to be the same or after + // the start. + StartTime string `json:"startTime,omitempty"` + + // ForceSendFields is a list of field names (e.g. "EndTime") 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. "EndTime") 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 *Interval) MarshalJSON() ([]byte, error) { + type NoMethod Interval + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// InvocationConfig: Includes various configuration options for this +// workflow invocation. If both `included_targets` and `included_tags` +// are unset, all actions will be included. +type InvocationConfig struct { + // FullyRefreshIncrementalTablesEnabled: Immutable. When set to true, + // any incremental tables will be fully refreshed. + FullyRefreshIncrementalTablesEnabled bool `json:"fullyRefreshIncrementalTablesEnabled,omitempty"` + + // IncludedTags: Immutable. The set of tags to include. + IncludedTags []string `json:"includedTags,omitempty"` + + // IncludedTargets: Immutable. The set of action identifiers to include. + IncludedTargets []*Target `json:"includedTargets,omitempty"` + + // TransitiveDependenciesIncluded: Immutable. When set to true, + // transitive dependencies of included actions will be executed. + TransitiveDependenciesIncluded bool `json:"transitiveDependenciesIncluded,omitempty"` + + // TransitiveDependentsIncluded: Immutable. When set to true, transitive + // dependents of included actions will be executed. + TransitiveDependentsIncluded bool `json:"transitiveDependentsIncluded,omitempty"` + + // ForceSendFields is a list of field names (e.g. + // "FullyRefreshIncrementalTablesEnabled") 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. + // "FullyRefreshIncrementalTablesEnabled") 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 *InvocationConfig) MarshalJSON() ([]byte, error) { + type NoMethod InvocationConfig + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// ListCompilationResultsResponse: `ListCompilationResults` response +// message. +type ListCompilationResultsResponse struct { + // CompilationResults: List of compilation results. + CompilationResults []*CompilationResult `json:"compilationResults,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"` + + // Unreachable: Locations which could not be reached. + Unreachable []string `json:"unreachable,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "CompilationResults") + // 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. "CompilationResults") 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 *ListCompilationResultsResponse) MarshalJSON() ([]byte, error) { + type NoMethod ListCompilationResultsResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// ListLocationsResponse: The response message for +// Locations.ListLocations. +type ListLocationsResponse struct { + // Locations: A list of locations that matches the specified filter in + // the request. + Locations []*Location `json:"locations,omitempty"` + + // NextPageToken: The standard List next-page token. + 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. "Locations") 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. "Locations") 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 *ListLocationsResponse) MarshalJSON() ([]byte, error) { + type NoMethod ListLocationsResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// ListReleaseConfigsResponse: `ListReleaseConfigs` response message. +type ListReleaseConfigsResponse struct { + // 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"` + + // ReleaseConfigs: List of release configs. + ReleaseConfigs []*ReleaseConfig `json:"releaseConfigs,omitempty"` + + // Unreachable: Locations which could not be reached. + Unreachable []string `json:"unreachable,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "NextPageToken") 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. "NextPageToken") 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 *ListReleaseConfigsResponse) MarshalJSON() ([]byte, error) { + type NoMethod ListReleaseConfigsResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// ListRepositoriesResponse: `ListRepositories` response message. +type ListRepositoriesResponse struct { + // 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"` + + // Repositories: List of repositories. + Repositories []*Repository `json:"repositories,omitempty"` + + // Unreachable: Locations which could not be reached. + Unreachable []string `json:"unreachable,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "NextPageToken") 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. "NextPageToken") 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 *ListRepositoriesResponse) MarshalJSON() ([]byte, error) { + type NoMethod ListRepositoriesResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// ListWorkflowInvocationsResponse: `ListWorkflowInvocations` response +// message. +type ListWorkflowInvocationsResponse struct { + // 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"` + + // Unreachable: Locations which could not be reached. + Unreachable []string `json:"unreachable,omitempty"` + + // WorkflowInvocations: List of workflow invocations. + WorkflowInvocations []*WorkflowInvocation `json:"workflowInvocations,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "NextPageToken") 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. "NextPageToken") 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 *ListWorkflowInvocationsResponse) MarshalJSON() ([]byte, error) { + type NoMethod ListWorkflowInvocationsResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// ListWorkspacesResponse: `ListWorkspaces` response message. +type ListWorkspacesResponse struct { + // 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"` + + // Unreachable: Locations which could not be reached. + Unreachable []string `json:"unreachable,omitempty"` + + // Workspaces: List of workspaces. + Workspaces []*Workspace `json:"workspaces,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "NextPageToken") 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. "NextPageToken") 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 *ListWorkspacesResponse) MarshalJSON() ([]byte, error) { + type NoMethod ListWorkspacesResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// Location: A resource that represents Google Cloud Platform location. +type Location struct { + // DisplayName: The friendly name for this location, typically a nearby + // city name. For example, "Tokyo". + DisplayName string `json:"displayName,omitempty"` + + // Labels: Cross-service attributes for the location. For example + // {"cloud.googleapis.com/region": "us-east1"} + Labels map[string]string `json:"labels,omitempty"` + + // LocationId: The canonical id for this location. For example: + // "us-east1". + LocationId string `json:"locationId,omitempty"` + + // Metadata: Service-specific metadata. For example the available + // capacity at the given location. + Metadata googleapi.RawMessage `json:"metadata,omitempty"` + + // Name: Resource name for the location, which may vary between + // implementations. For example: + // "projects/example-project/locations/us-east1" + Name string `json:"name,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // 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. "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:"-"` +} + +func (s *Location) MarshalJSON() ([]byte, error) { + type NoMethod Location + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// MakeDirectoryRequest: `MakeDirectory` request message. +type MakeDirectoryRequest struct { + // Path: Required. The directory's full path including directory name, + // relative to the workspace root. + Path string `json:"path,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Path") 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. "Path") 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 *MakeDirectoryRequest) MarshalJSON() ([]byte, error) { + type NoMethod MakeDirectoryRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// MakeDirectoryResponse: `MakeDirectory` response message. +type MakeDirectoryResponse struct { + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` +} + +// MoveDirectoryRequest: `MoveDirectory` request message. +type MoveDirectoryRequest struct { + // NewPath: Required. The new path for the directory including directory + // name, rooted at workspace root. + NewPath string `json:"newPath,omitempty"` + + // Path: Required. The directory's full path including directory name, + // relative to the workspace root. + Path string `json:"path,omitempty"` + + // ForceSendFields is a list of field names (e.g. "NewPath") 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. "NewPath") 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 *MoveDirectoryRequest) MarshalJSON() ([]byte, error) { + type NoMethod MoveDirectoryRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// MoveDirectoryResponse: `MoveDirectory` response message. +type MoveDirectoryResponse struct { + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` +} + +// MoveFileRequest: `MoveFile` request message. +type MoveFileRequest struct { + // NewPath: Required. The file's new path including filename, relative + // to the workspace root. + NewPath string `json:"newPath,omitempty"` + + // Path: Required. The file's full path including filename, relative to + // the workspace root. + Path string `json:"path,omitempty"` + + // ForceSendFields is a list of field names (e.g. "NewPath") 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. "NewPath") 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 *MoveFileRequest) MarshalJSON() ([]byte, error) { + type NoMethod MoveFileRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// MoveFileResponse: `MoveFile` response message. +type MoveFileResponse struct { + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` +} + +// OperationMetadata: Represents the metadata of the long-running +// operation. +type OperationMetadata struct { + // ApiVersion: Output only. API version used to start the operation. + ApiVersion string `json:"apiVersion,omitempty"` + + // CancelRequested: Output only. Identifies whether the user has + // requested cancellation of the operation. Operations that have been + // cancelled successfully have Operation.error value with a + // google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`. + CancelRequested bool `json:"cancelRequested,omitempty"` + + // CreateTime: Output only. The time the operation was created. + CreateTime string `json:"createTime,omitempty"` + + // EndTime: Output only. The time the operation finished running. + EndTime string `json:"endTime,omitempty"` + + // StatusDetail: Output only. Human-readable status of the operation, if + // any. + StatusDetail string `json:"statusDetail,omitempty"` + + // Target: Output only. Server-defined resource path for the target of + // the operation. + Target string `json:"target,omitempty"` + + // Verb: Output only. Name of the verb executed by the operation. + Verb string `json:"verb,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ApiVersion") 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. "ApiVersion") 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 *OperationMetadata) MarshalJSON() ([]byte, error) { + type NoMethod OperationMetadata + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// Operations: Represents a list of arbitrary database operations. +type Operations struct { + // DependencyTargets: A list of actions that this action depends on. + DependencyTargets []*Target `json:"dependencyTargets,omitempty"` + + // Disabled: Whether this action is disabled (i.e. should not be run). + Disabled bool `json:"disabled,omitempty"` + + // HasOutput: Whether these operations produce an output relation. + HasOutput bool `json:"hasOutput,omitempty"` + + // Queries: A list of arbitrary SQL statements that will be executed + // without alteration. + Queries []string `json:"queries,omitempty"` + + // RelationDescriptor: Descriptor for any output relation and its + // columns. Only set if `has_output` is true. + RelationDescriptor *RelationDescriptor `json:"relationDescriptor,omitempty"` + + // Tags: Arbitrary, user-defined tags on this action. + Tags []string `json:"tags,omitempty"` + + // ForceSendFields is a list of field names (e.g. "DependencyTargets") + // 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. "DependencyTargets") 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 *Operations) MarshalJSON() ([]byte, error) { + type NoMethod Operations + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// PullGitCommitsRequest: `PullGitCommits` request message. +type PullGitCommitsRequest struct { + // Author: Required. The author of any merge commit which may be created + // as a result of merging fetched Git commits into this workspace. + Author *CommitAuthor `json:"author,omitempty"` + + // RemoteBranch: Optional. The name of the branch in the Git remote from + // which to pull commits. If left unset, the repository's default branch + // name will be used. + RemoteBranch string `json:"remoteBranch,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 *PullGitCommitsRequest) MarshalJSON() ([]byte, error) { + type NoMethod PullGitCommitsRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// PushGitCommitsRequest: `PushGitCommits` request message. +type PushGitCommitsRequest struct { + // RemoteBranch: Optional. The name of the branch in the Git remote to + // which commits should be pushed. If left unset, the repository's + // default branch name will be used. + RemoteBranch string `json:"remoteBranch,omitempty"` + + // ForceSendFields is a list of field names (e.g. "RemoteBranch") 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. "RemoteBranch") 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 *PushGitCommitsRequest) MarshalJSON() ([]byte, error) { + type NoMethod PushGitCommitsRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// QueryCompilationResultActionsResponse: +// `QueryCompilationResultActions` response message. +type QueryCompilationResultActionsResponse struct { + // CompilationResultActions: List of compilation result actions. + CompilationResultActions []*CompilationResultAction `json:"compilationResultActions,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. + // "CompilationResultActions") 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. "CompilationResultActions") + // 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 *QueryCompilationResultActionsResponse) MarshalJSON() ([]byte, error) { + type NoMethod QueryCompilationResultActionsResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// QueryDirectoryContentsResponse: `QueryDirectoryContents` response +// message. +type QueryDirectoryContentsResponse 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 *QueryDirectoryContentsResponse) MarshalJSON() ([]byte, error) { + type NoMethod QueryDirectoryContentsResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// QueryWorkflowInvocationActionsResponse: +// `QueryWorkflowInvocationActions` response message. +type QueryWorkflowInvocationActionsResponse struct { + // 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"` + + // WorkflowInvocationActions: List of workflow invocation actions. + WorkflowInvocationActions []*WorkflowInvocationAction `json:"workflowInvocationActions,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "NextPageToken") 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. "NextPageToken") 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 *QueryWorkflowInvocationActionsResponse) MarshalJSON() ([]byte, error) { + type NoMethod QueryWorkflowInvocationActionsResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// ReadFileResponse: `ReadFile` response message. +type ReadFileResponse struct { + // FileContents: The file's contents. + FileContents string `json:"fileContents,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "FileContents") 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. "FileContents") 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 *ReadFileResponse) MarshalJSON() ([]byte, error) { + type NoMethod ReadFileResponse + 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 + // key/value pairs into the options clause of a create table/view + // statement. See + // https://cloud.google.com/bigquery/docs/reference/standard-sql/data-definition-language + // for more information on which options are supported. + AdditionalOptions map[string]string `json:"additionalOptions,omitempty"` + + // ClusterExpressions: A list of columns or SQL expressions used to + // cluster the table. + ClusterExpressions []string `json:"clusterExpressions,omitempty"` + + // DependencyTargets: A list of actions that this action depends on. + DependencyTargets []*Target `json:"dependencyTargets,omitempty"` + + // Disabled: Whether this action is disabled (i.e. should not be run). + Disabled bool `json:"disabled,omitempty"` + + // IncrementalTableConfig: Configures `INCREMENTAL_TABLE` settings for + // this relation. Only set if `relation_type` is `INCREMENTAL_TABLE`. + IncrementalTableConfig *IncrementalTableConfig `json:"incrementalTableConfig,omitempty"` + + // PartitionExpirationDays: Sets the partition expiration in days. + PartitionExpirationDays int64 `json:"partitionExpirationDays,omitempty"` + + // PartitionExpression: The SQL expression used to partition the + // relation. + PartitionExpression string `json:"partitionExpression,omitempty"` + + // PostOperations: SQL statements to be executed after creating the + // relation. + PostOperations []string `json:"postOperations,omitempty"` + + // PreOperations: SQL statements to be executed before creating the + // relation. + PreOperations []string `json:"preOperations,omitempty"` + + // RelationDescriptor: Descriptor for the relation and its columns. + RelationDescriptor *RelationDescriptor `json:"relationDescriptor,omitempty"` + + // RelationType: The type of this relation. + // + // Possible values: + // "RELATION_TYPE_UNSPECIFIED" - Default value. This value is unused. + // "TABLE" - The relation is a table. + // "VIEW" - The relation is a view. + // "INCREMENTAL_TABLE" - The relation is an incrementalized table. + // "MATERIALIZED_VIEW" - The relation is a materialized view. + RelationType string `json:"relationType,omitempty"` + + // RequirePartitionFilter: Specifies whether queries on this table must + // include a predicate filter that filters on the partitioning column. + RequirePartitionFilter bool `json:"requirePartitionFilter,omitempty"` + + // SelectQuery: The SELECT query which returns rows which this relation + // should contain. + SelectQuery string `json:"selectQuery,omitempty"` + + // Tags: Arbitrary, user-defined tags on this action. + Tags []string `json:"tags,omitempty"` + + // ForceSendFields is a list of field names (e.g. "AdditionalOptions") + // 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. "AdditionalOptions") 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 *Relation) MarshalJSON() ([]byte, error) { + type NoMethod Relation + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// RelationDescriptor: Describes a relation and its columns. +type RelationDescriptor struct { + // BigqueryLabels: A set of BigQuery labels that should be applied to + // the relation. + BigqueryLabels map[string]string `json:"bigqueryLabels,omitempty"` + + // Columns: A list of descriptions of columns within the relation. + Columns []*ColumnDescriptor `json:"columns,omitempty"` + + // Description: A text description of the relation. + Description string `json:"description,omitempty"` + + // ForceSendFields is a list of field names (e.g. "BigqueryLabels") 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. "BigqueryLabels") 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 *RelationDescriptor) MarshalJSON() ([]byte, error) { + type NoMethod RelationDescriptor + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// ReleaseConfig: Represents a Dataform release configuration. +type ReleaseConfig struct { + // CodeCompilationConfig: Immutable. If set, fields of + // `code_compilation_config` override the default compilation settings + // that are specified in dataform.json. + CodeCompilationConfig *CodeCompilationConfig `json:"codeCompilationConfig,omitempty"` + + // CronSchedule: Optional. Optional schedule (in cron format) for + // automatic creation of compilation results. + CronSchedule string `json:"cronSchedule,omitempty"` + + // GitCommitish: Required. Git commit/tag/branch name at which the + // repository should be compiled. Must exist in the remote repository. + // Examples: - a commit SHA: `12ade345` - a tag: `tag1` - a branch name: + // `branch1` + GitCommitish string `json:"gitCommitish,omitempty"` + + // Name: Output only. The release config's name. + Name string `json:"name,omitempty"` + + // RecentScheduledReleaseRecords: Output only. Records of the 10 most + // recent scheduled release attempts. Updated whenever automatic + // creation of a compilation result is triggered by cron_schedule. + RecentScheduledReleaseRecords []*ScheduledReleaseRecord `json:"recentScheduledReleaseRecords,omitempty"` + + // ReleaseCompilationResult: Optional. The name of the currently + // released compilation result for this release config. This value is + // updated when a compilation result is created from this release + // config, or when this resource is updated by API call (perhaps to roll + // back to an earlier release). The compilation result must have been + // created using this release config. Must be in the format + // `projects/*/locations/*/repositories/*/compilationResults/*`. + ReleaseCompilationResult string `json:"releaseCompilationResult,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. + // "CodeCompilationConfig") 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. "CodeCompilationConfig") 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 *ReleaseConfig) MarshalJSON() ([]byte, error) { + type NoMethod ReleaseConfig + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// RemoveDirectoryRequest: `RemoveDirectory` request message. +type RemoveDirectoryRequest struct { + // Path: Required. The directory's full path including directory name, + // relative to the workspace root. + Path string `json:"path,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Path") 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. "Path") 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 *RemoveDirectoryRequest) MarshalJSON() ([]byte, error) { + type NoMethod RemoveDirectoryRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// RemoveFileRequest: `RemoveFile` request message. +type RemoveFileRequest struct { + // Path: Required. The file's full path including filename, relative to + // the workspace root. + Path string `json:"path,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Path") 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. "Path") 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 *RemoveFileRequest) MarshalJSON() ([]byte, error) { + type NoMethod RemoveFileRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// Repository: Represents a Dataform Git repository. +type Repository struct { + // GitRemoteSettings: Optional. If set, configures this repository to be + // linked to a Git remote. + GitRemoteSettings *GitRemoteSettings `json:"gitRemoteSettings,omitempty"` + + // Name: Output only. The repository's name. + Name string `json:"name,omitempty"` + + // NpmrcEnvironmentVariablesSecretVersion: Optional. The name of the + // Secret Manager secret version to be used to interpolate variables + // into the .npmrc file for package installation operations. Must be in + // the format `projects/*/secrets/*/versions/*`. The file itself must be + // in a JSON format. + NpmrcEnvironmentVariablesSecretVersion string `json:"npmrcEnvironmentVariablesSecretVersion,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "GitRemoteSettings") + // 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 []string `json:"-"` +} + +func (s *Repository) MarshalJSON() ([]byte, error) { + type NoMethod Repository + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// ResetWorkspaceChangesRequest: `ResetWorkspaceChanges` request +// message. +type ResetWorkspaceChangesRequest struct { + // Clean: Optional. If set to true, untracked files will be deleted. + Clean bool `json:"clean,omitempty"` + + // Paths: Optional. Full file paths to reset back to their committed + // state including filename, rooted at workspace root. If left empty, + // all files will be reset. + Paths []string `json:"paths,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Clean") 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. "Clean") 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 *ResetWorkspaceChangesRequest) MarshalJSON() ([]byte, error) { + type NoMethod ResetWorkspaceChangesRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// ScheduledReleaseRecord: A record of an attempt to create a +// compilation result for this release config. +type ScheduledReleaseRecord struct { + // CompilationResult: The name of the created compilation result, if one + // was successfully created. Must be in the format + // `projects/*/locations/*/repositories/*/compilationResults/*`. + CompilationResult string `json:"compilationResult,omitempty"` + + // ErrorStatus: The error status encountered upon this attempt to create + // the compilation result, if the attempt was unsuccessful. + ErrorStatus *Status `json:"errorStatus,omitempty"` + + // ReleaseTime: The timestamp of this release attempt. + ReleaseTime string `json:"releaseTime,omitempty"` + + // ForceSendFields is a list of field names (e.g. "CompilationResult") + // 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. "CompilationResult") 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 *ScheduledReleaseRecord) MarshalJSON() ([]byte, error) { + type NoMethod ScheduledReleaseRecord + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// Status: 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). +type Status struct { + // Code: The status code, which should be an enum value of + // google.rpc.Code. + Code int64 `json:"code,omitempty"` + + // Details: A list of messages that carry the error details. There is a + // common set of message types for APIs to use. + Details []googleapi.RawMessage `json:"details,omitempty"` + + // Message: A developer-facing error message, which should be in + // English. Any user-facing error message should be localized and sent + // in the google.rpc.Status.details field, or localized by the client. + Message string `json:"message,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Code") 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. "Code") 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 *Status) MarshalJSON() ([]byte, error) { + type NoMethod Status + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// Target: Represents an action identifier. If the action writes output, +// the output will be written to the referenced database object. +type Target struct { + // Database: The action's database (Google Cloud project ID) . + Database string `json:"database,omitempty"` + + // Name: The action's name, within `database` and `schema`. + Name string `json:"name,omitempty"` + + // Schema: The action's schema (BigQuery dataset ID), within `database`. + Schema string `json:"schema,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Database") 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. "Database") 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 *Target) MarshalJSON() ([]byte, error) { + type NoMethod Target + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// UncommittedFileChange: Represents the Git state of a file with +// uncommitted changes. +type UncommittedFileChange struct { + // Path: The file's full path including filename, relative to the + // workspace root. + Path string `json:"path,omitempty"` + + // State: Indicates the status of the file. + // + // Possible values: + // "STATE_UNSPECIFIED" - Default value. This value is unused. + // "ADDED" - The file has been newly added. + // "DELETED" - The file has been deleted. + // "MODIFIED" - The file has been modified. + // "HAS_CONFLICTS" - The file contains merge conflicts. + State string `json:"state,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Path") 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. "Path") 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 *UncommittedFileChange) MarshalJSON() ([]byte, error) { + type NoMethod UncommittedFileChange + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// WorkflowInvocation: Represents a single invocation of a compilation +// result. +type WorkflowInvocation struct { + // CompilationResult: Immutable. The name of the compilation result to + // compile. Must be in the format + // `projects/*/locations/*/repositories/*/compilationResults/*`. + CompilationResult string `json:"compilationResult,omitempty"` + + // InvocationConfig: Immutable. If left unset, a default + // InvocationConfig will be used. + InvocationConfig *InvocationConfig `json:"invocationConfig,omitempty"` + + // InvocationTiming: Output only. This workflow invocation's timing + // details. + InvocationTiming *Interval `json:"invocationTiming,omitempty"` + + // Name: Output only. The workflow invocation's name. + Name string `json:"name,omitempty"` + + // State: Output only. This workflow invocation's current state. + // + // Possible values: + // "STATE_UNSPECIFIED" - Default value. This value is unused. + // "RUNNING" - The workflow invocation is currently running. + // "SUCCEEDED" - The workflow invocation succeeded. A terminal state. + // "CANCELLED" - The workflow invocation was cancelled. A terminal + // state. + // "FAILED" - The workflow invocation failed. A terminal state. + // "CANCELING" - The workflow invocation is being cancelled, but some + // actions are still running. + State string `json:"state,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "CompilationResult") + // 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. "CompilationResult") 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 *WorkflowInvocation) MarshalJSON() ([]byte, error) { + type NoMethod WorkflowInvocation + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// WorkflowInvocationAction: Represents a single action in a workflow +// invocation. +type WorkflowInvocationAction struct { + // BigqueryAction: Output only. The workflow action's bigquery action + // details. + BigqueryAction *BigQueryAction `json:"bigqueryAction,omitempty"` + + // CanonicalTarget: Output only. The action's identifier if the project + // had been compiled without any overrides configured. Unique within the + // compilation result. + CanonicalTarget *Target `json:"canonicalTarget,omitempty"` + + // FailureReason: Output only. If and only if action's state is FAILED a + // failure reason is set. + FailureReason string `json:"failureReason,omitempty"` + + // InvocationTiming: Output only. This action's timing details. + // `start_time` will be set if the action is in [RUNNING, SUCCEEDED, + // CANCELLED, FAILED] state. `end_time` will be set if the action is in + // [SUCCEEDED, CANCELLED, FAILED] state. + InvocationTiming *Interval `json:"invocationTiming,omitempty"` + + // State: Output only. This action's current state. + // + // Possible values: + // "PENDING" - The action has not yet been considered for invocation. + // "RUNNING" - The action is currently running. + // "SKIPPED" - Execution of the action was skipped because upstream + // dependencies did not all complete successfully. A terminal state. + // "DISABLED" - Execution of the action was disabled as per the + // configuration of the corresponding compilation result action. A + // terminal state. + // "SUCCEEDED" - The action succeeded. A terminal state. + // "CANCELLED" - The action was cancelled. A terminal state. + // "FAILED" - The action failed. A terminal state. + State string `json:"state,omitempty"` + + // Target: Output only. This action's identifier. Unique within the + // workflow invocation. + Target *Target `json:"target,omitempty"` + + // ForceSendFields is a list of field names (e.g. "BigqueryAction") 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. "BigqueryAction") 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 *WorkflowInvocationAction) MarshalJSON() ([]byte, error) { + type NoMethod WorkflowInvocationAction + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// Workspace: Represents a Dataform Git workspace. +type Workspace struct { + // Name: Output only. The workspace's name. + Name string `json:"name,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "Name") 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. "Name") 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 *Workspace) MarshalJSON() ([]byte, error) { + type NoMethod Workspace + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// WriteFileRequest: `WriteFile` request message. +type WriteFileRequest struct { + // Contents: Required. The file's contents. + Contents string `json:"contents,omitempty"` + + // Path: Required. The file. + Path string `json:"path,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 *WriteFileRequest) MarshalJSON() ([]byte, error) { + type NoMethod WriteFileRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// WriteFileResponse: `WriteFile` response message. +type WriteFileResponse struct { + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` +} + +// method id "dataform.projects.locations.get": + +type ProjectsLocationsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Gets information about a location. +// +// - name: Resource name for the location. +func (r *ProjectsLocationsService) Get(name string) *ProjectsLocationsGetCall { + c := &ProjectsLocationsGetCall{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 *ProjectsLocationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsGetCall { + 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 *ProjectsLocationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsGetCall { + 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 *ProjectsLocationsGetCall) Context(ctx context.Context) *ProjectsLocationsGetCall { + 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 *ProjectsLocationsGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsGetCall) 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.get" call. +// Exactly one of *Location or error will be non-nil. Any non-2xx status +// code is an error. Response headers are in either +// *Location.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 *ProjectsLocationsGetCall) Do(opts ...googleapi.CallOption) (*Location, 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 := &Location{ + 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": "Gets information about a location.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}", + // "httpMethod": "GET", + // "id": "dataform.projects.locations.get", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Resource name for the location.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+name}", + // "response": { + // "$ref": "Location" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "dataform.projects.locations.list": + +type ProjectsLocationsListCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists information about the supported locations for this +// service. +// +// - name: The resource that owns the locations collection, if +// applicable. +func (r *ProjectsLocationsService) List(name string) *ProjectsLocationsListCall { + c := &ProjectsLocationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Filter sets the optional parameter "filter": A filter to narrow down +// results to a preferred subset. The filtering language accepts strings +// like "displayName=tokyo", and is documented in more detail in +// AIP-160 (https://google.aip.dev/160). +func (c *ProjectsLocationsListCall) Filter(filter string) *ProjectsLocationsListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// IncludeUnrevealedLocations sets the optional parameter +// "includeUnrevealedLocations": If true, the returned list will include +// locations which are not yet revealed. +func (c *ProjectsLocationsListCall) IncludeUnrevealedLocations(includeUnrevealedLocations bool) *ProjectsLocationsListCall { + c.urlParams_.Set("includeUnrevealedLocations", fmt.Sprint(includeUnrevealedLocations)) + return c +} + +// PageSize sets the optional parameter "pageSize": The maximum number +// of results to return. If not set, the service selects a default. +func (c *ProjectsLocationsListCall) PageSize(pageSize int64) *ProjectsLocationsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": A page token +// received from the `next_page_token` field in the response. Send that +// page token to receive the subsequent page. +func (c *ProjectsLocationsListCall) PageToken(pageToken string) *ProjectsLocationsListCall { + 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 *ProjectsLocationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsListCall { + 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 *ProjectsLocationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsListCall { + 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 *ProjectsLocationsListCall) Context(ctx context.Context) *ProjectsLocationsListCall { + 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 *ProjectsLocationsListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsListCall) 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}/locations") + 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.list" call. +// Exactly one of *ListLocationsResponse or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *ListLocationsResponse.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 *ProjectsLocationsListCall) Do(opts ...googleapi.CallOption) (*ListLocationsResponse, 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 := &ListLocationsResponse{ + 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 information about the supported locations for this service.", + // "flatPath": "v1beta1/projects/{projectsId}/locations", + // "httpMethod": "GET", + // "id": "dataform.projects.locations.list", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "filter": { + // "description": "A filter to narrow down results to a preferred subset. The filtering language accepts strings like `\"displayName=tokyo\"`, and is documented in more detail in [AIP-160](https://google.aip.dev/160).", + // "location": "query", + // "type": "string" + // }, + // "includeUnrevealedLocations": { + // "description": "If true, the returned list will include locations which are not yet revealed.", + // "location": "query", + // "type": "boolean" + // }, + // "name": { + // "description": "The resource that owns the locations collection, if applicable.", + // "location": "path", + // "pattern": "^projects/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "pageSize": { + // "description": "The maximum number of results to return. If not set, the service selects a default.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "A page token received from the `next_page_token` field in the response. Send that page token to receive the subsequent page.", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1beta1/{+name}/locations", + // "response": { + // "$ref": "ListLocationsResponse" + // }, + // "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 *ProjectsLocationsListCall) Pages(ctx context.Context, f func(*ListLocationsResponse) 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.create": + +type ProjectsLocationsRepositoriesCreateCall struct { + s *Service + parent string + repository *Repository + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Create: Creates a new Repository in a given project and location. +// +// - parent: The location in which to create the repository. Must be in +// the format `projects/*/locations/*`. +func (r *ProjectsLocationsRepositoriesService) Create(parent string, repository *Repository) *ProjectsLocationsRepositoriesCreateCall { + c := &ProjectsLocationsRepositoriesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.repository = repository + return c +} + +// RepositoryId sets the optional parameter "repositoryId": Required. +// The ID to use for the repository, which will become the final +// component of the repository's resource name. +func (c *ProjectsLocationsRepositoriesCreateCall) RepositoryId(repositoryId string) *ProjectsLocationsRepositoriesCreateCall { + c.urlParams_.Set("repositoryId", repositoryId) + 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 *ProjectsLocationsRepositoriesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesCreateCall { + 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 *ProjectsLocationsRepositoriesCreateCall) Context(ctx context.Context) *ProjectsLocationsRepositoriesCreateCall { + 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 *ProjectsLocationsRepositoriesCreateCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsRepositoriesCreateCall) 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.repository) + 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/{+parent}/repositories") + 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{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "dataform.projects.locations.repositories.create" 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 *ProjectsLocationsRepositoriesCreateCall) 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": "Creates a new Repository in a given project and location.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/repositories", + // "httpMethod": "POST", + // "id": "dataform.projects.locations.repositories.create", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "parent": { + // "description": "Required. The location in which to create the repository. Must be in the format `projects/*/locations/*`.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "repositoryId": { + // "description": "Required. The ID to use for the repository, which will become the final component of the repository's resource name.", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1beta1/{+parent}/repositories", + // "request": { + // "$ref": "Repository" + // }, + // "response": { + // "$ref": "Repository" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "dataform.projects.locations.repositories.delete": + +type ProjectsLocationsRepositoriesDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Delete: Deletes a single Repository. +// +// - name: The repository's name. +func (r *ProjectsLocationsRepositoriesService) Delete(name string) *ProjectsLocationsRepositoriesDeleteCall { + c := &ProjectsLocationsRepositoriesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Force sets the optional parameter "force": If set to true, any child +// resources of this repository will also be deleted. (Otherwise, the +// request will only succeed if the repository has no child resources.) +func (c *ProjectsLocationsRepositoriesDeleteCall) Force(force bool) *ProjectsLocationsRepositoriesDeleteCall { + c.urlParams_.Set("force", fmt.Sprint(force)) + 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 *ProjectsLocationsRepositoriesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesDeleteCall { + 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 *ProjectsLocationsRepositoriesDeleteCall) Context(ctx context.Context) *ProjectsLocationsRepositoriesDeleteCall { + 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 *ProjectsLocationsRepositoriesDeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsRepositoriesDeleteCall) 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 + 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("DELETE", 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.delete" 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 *ProjectsLocationsRepositoriesDeleteCall) 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": "Deletes a single Repository.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}", + // "httpMethod": "DELETE", + // "id": "dataform.projects.locations.repositories.delete", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "force": { + // "description": "If set to true, any child resources of this repository will also be deleted. (Otherwise, the request will only succeed if the repository has no child resources.)", + // "location": "query", + // "type": "boolean" + // }, + // "name": { + // "description": "Required. The repository's name.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+name}", + // "response": { + // "$ref": "Empty" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "dataform.projects.locations.repositories.fetchRemoteBranches": + +type ProjectsLocationsRepositoriesFetchRemoteBranchesCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// FetchRemoteBranches: Fetches a Repository's remote branches. +// +// - name: The repository's name. +func (r *ProjectsLocationsRepositoriesService) FetchRemoteBranches(name string) *ProjectsLocationsRepositoriesFetchRemoteBranchesCall { + c := &ProjectsLocationsRepositoriesFetchRemoteBranchesCall{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 *ProjectsLocationsRepositoriesFetchRemoteBranchesCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesFetchRemoteBranchesCall { + 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 *ProjectsLocationsRepositoriesFetchRemoteBranchesCall) IfNoneMatch(entityTag string) *ProjectsLocationsRepositoriesFetchRemoteBranchesCall { + 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 *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 *ProjectsLocationsRepositoriesFetchRemoteBranchesCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +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_ { + 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}:fetchRemoteBranches") + 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.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 { + 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 := &FetchRemoteBranchesResponse{ + 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 Repository's remote branches.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}:fetchRemoteBranches", + // "httpMethod": "GET", + // "id": "dataform.projects.locations.repositories.fetchRemoteBranches", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The repository's name.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+name}:fetchRemoteBranches", + // "response": { + // "$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" + // ] + // } + +} + +// method id "dataform.projects.locations.repositories.list": + +type ProjectsLocationsRepositoriesListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists Repositories in a given project and location. +// +// - parent: The location in which to list repositories. Must be in the +// format `projects/*/locations/*`. +func (r *ProjectsLocationsRepositoriesService) List(parent string) *ProjectsLocationsRepositoriesListCall { + c := &ProjectsLocationsRepositoriesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// Filter sets the optional parameter "filter": Filter for the returned +// list. +func (c *ProjectsLocationsRepositoriesListCall) Filter(filter string) *ProjectsLocationsRepositoriesListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// OrderBy sets the optional parameter "orderBy": This field only +// supports ordering by `name`. If unspecified, the server will choose +// the ordering. If specified, the default order is ascending for the +// `name` field. +func (c *ProjectsLocationsRepositoriesListCall) OrderBy(orderBy string) *ProjectsLocationsRepositoriesListCall { + c.urlParams_.Set("orderBy", orderBy) + return c +} + +// PageSize sets the optional parameter "pageSize": Maximum number of +// repositories to return. The server may return fewer items than +// requested. If unspecified, the server will pick an appropriate +// default. +func (c *ProjectsLocationsRepositoriesListCall) PageSize(pageSize int64) *ProjectsLocationsRepositoriesListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": Page token +// received from a previous `ListRepositories` call. Provide this to +// retrieve the subsequent page. When paginating, all other parameters +// provided to `ListRepositories` must match the call that provided the +// page token. +func (c *ProjectsLocationsRepositoriesListCall) PageToken(pageToken string) *ProjectsLocationsRepositoriesListCall { + 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 *ProjectsLocationsRepositoriesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesListCall { + 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 *ProjectsLocationsRepositoriesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsRepositoriesListCall { + 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 *ProjectsLocationsRepositoriesListCall) Context(ctx context.Context) *ProjectsLocationsRepositoriesListCall { + 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 *ProjectsLocationsRepositoriesListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsRepositoriesListCall) 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/{+parent}/repositories") + 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 "dataform.projects.locations.repositories.list" call. +// Exactly one of *ListRepositoriesResponse or error will be non-nil. +// Any non-2xx status code is an error. Response headers are in either +// *ListRepositoriesResponse.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 *ProjectsLocationsRepositoriesListCall) Do(opts ...googleapi.CallOption) (*ListRepositoriesResponse, 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 := &ListRepositoriesResponse{ + 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 Repositories in a given project and location.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/repositories", + // "httpMethod": "GET", + // "id": "dataform.projects.locations.repositories.list", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "filter": { + // "description": "Optional. Filter for the returned list.", + // "location": "query", + // "type": "string" + // }, + // "orderBy": { + // "description": "Optional. This field only supports ordering by `name`. If unspecified, the server will choose the ordering. If specified, the default order is ascending for the `name` field.", + // "location": "query", + // "type": "string" + // }, + // "pageSize": { + // "description": "Optional. Maximum number of repositories 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 `ListRepositories` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListRepositories` must match the call that provided the page token.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "Required. The location in which to list repositories. Must be in the format `projects/*/locations/*`.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+parent}/repositories", + // "response": { + // "$ref": "ListRepositoriesResponse" + // }, + // "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 *ProjectsLocationsRepositoriesListCall) Pages(ctx context.Context, f func(*ListRepositoriesResponse) 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.patch": + +type ProjectsLocationsRepositoriesPatchCall struct { + s *Service + name string + repository *Repository + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Patch: Updates a single Repository. +// +// - name: Output only. The repository's name. +func (r *ProjectsLocationsRepositoriesService) Patch(name string, repository *Repository) *ProjectsLocationsRepositoriesPatchCall { + c := &ProjectsLocationsRepositoriesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.repository = repository + return c +} + +// UpdateMask sets the optional parameter "updateMask": Specifies the +// fields to be updated in the repository. If left unset, all fields +// will be updated. +func (c *ProjectsLocationsRepositoriesPatchCall) UpdateMask(updateMask string) *ProjectsLocationsRepositoriesPatchCall { + c.urlParams_.Set("updateMask", updateMask) + 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 *ProjectsLocationsRepositoriesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesPatchCall { + 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 *ProjectsLocationsRepositoriesPatchCall) Context(ctx context.Context) *ProjectsLocationsRepositoriesPatchCall { + 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 *ProjectsLocationsRepositoriesPatchCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsRepositoriesPatchCall) 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.repository) + 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}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("PATCH", 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.patch" 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 *ProjectsLocationsRepositoriesPatchCall) 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": "Updates a single Repository.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}", + // "httpMethod": "PATCH", + // "id": "dataform.projects.locations.repositories.patch", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Output only. The repository's name.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "updateMask": { + // "description": "Optional. Specifies the fields to be updated in the repository. If left unset, all fields will be updated.", + // "format": "google-fieldmask", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1beta1/{+name}", + // "request": { + // "$ref": "Repository" + // }, + // "response": { + // "$ref": "Repository" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "dataform.projects.locations.repositories.compilationResults.create": + +type ProjectsLocationsRepositoriesCompilationResultsCreateCall struct { + s *Service + parent string + compilationresult *CompilationResult + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Create: Creates a new CompilationResult in a given project and +// location. +// +// - parent: The repository in which to create the compilation result. +// Must be in the format `projects/*/locations/*/repositories/*`. +func (r *ProjectsLocationsRepositoriesCompilationResultsService) Create(parent string, compilationresult *CompilationResult) *ProjectsLocationsRepositoriesCompilationResultsCreateCall { + c := &ProjectsLocationsRepositoriesCompilationResultsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.compilationresult = compilationresult + 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 *ProjectsLocationsRepositoriesCompilationResultsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesCompilationResultsCreateCall { + 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 *ProjectsLocationsRepositoriesCompilationResultsCreateCall) Context(ctx context.Context) *ProjectsLocationsRepositoriesCompilationResultsCreateCall { + 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 *ProjectsLocationsRepositoriesCompilationResultsCreateCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsRepositoriesCompilationResultsCreateCall) 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.compilationresult) + 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/{+parent}/compilationResults") + 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{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "dataform.projects.locations.repositories.compilationResults.create" call. +// Exactly one of *CompilationResult or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *CompilationResult.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 *ProjectsLocationsRepositoriesCompilationResultsCreateCall) Do(opts ...googleapi.CallOption) (*CompilationResult, 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 := &CompilationResult{ + 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": "Creates a new CompilationResult in a given project and location.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/compilationResults", + // "httpMethod": "POST", + // "id": "dataform.projects.locations.repositories.compilationResults.create", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "parent": { + // "description": "Required. The repository in which to create the compilation result. Must be in the format `projects/*/locations/*/repositories/*`.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+parent}/compilationResults", + // "request": { + // "$ref": "CompilationResult" + // }, + // "response": { + // "$ref": "CompilationResult" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "dataform.projects.locations.repositories.compilationResults.get": + +type ProjectsLocationsRepositoriesCompilationResultsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Fetches a single CompilationResult. +// +// - name: The compilation result's name. +func (r *ProjectsLocationsRepositoriesCompilationResultsService) Get(name string) *ProjectsLocationsRepositoriesCompilationResultsGetCall { + c := &ProjectsLocationsRepositoriesCompilationResultsGetCall{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 *ProjectsLocationsRepositoriesCompilationResultsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesCompilationResultsGetCall { + 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 *ProjectsLocationsRepositoriesCompilationResultsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsRepositoriesCompilationResultsGetCall { + 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 *ProjectsLocationsRepositoriesCompilationResultsGetCall) Context(ctx context.Context) *ProjectsLocationsRepositoriesCompilationResultsGetCall { + 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 *ProjectsLocationsRepositoriesCompilationResultsGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsRepositoriesCompilationResultsGetCall) 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.compilationResults.get" call. +// Exactly one of *CompilationResult or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *CompilationResult.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 *ProjectsLocationsRepositoriesCompilationResultsGetCall) Do(opts ...googleapi.CallOption) (*CompilationResult, 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 := &CompilationResult{ + 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 CompilationResult.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/compilationResults/{compilationResultsId}", + // "httpMethod": "GET", + // "id": "dataform.projects.locations.repositories.compilationResults.get", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The compilation result's name.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/compilationResults/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+name}", + // "response": { + // "$ref": "CompilationResult" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "dataform.projects.locations.repositories.compilationResults.list": + +type ProjectsLocationsRepositoriesCompilationResultsListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists CompilationResults in a given Repository. +// +// - parent: The repository in which to list compilation results. Must +// be in the format `projects/*/locations/*/repositories/*`. +func (r *ProjectsLocationsRepositoriesCompilationResultsService) List(parent string) *ProjectsLocationsRepositoriesCompilationResultsListCall { + c := &ProjectsLocationsRepositoriesCompilationResultsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// PageSize sets the optional parameter "pageSize": Maximum number of +// compilation results to return. The server may return fewer items than +// requested. If unspecified, the server will pick an appropriate +// default. +func (c *ProjectsLocationsRepositoriesCompilationResultsListCall) PageSize(pageSize int64) *ProjectsLocationsRepositoriesCompilationResultsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": Page token +// received from a previous `ListCompilationResults` call. Provide this +// to retrieve the subsequent page. When paginating, all other +// parameters provided to `ListCompilationResults` must match the call +// that provided the page token. +func (c *ProjectsLocationsRepositoriesCompilationResultsListCall) PageToken(pageToken string) *ProjectsLocationsRepositoriesCompilationResultsListCall { + 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 *ProjectsLocationsRepositoriesCompilationResultsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesCompilationResultsListCall { + 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 *ProjectsLocationsRepositoriesCompilationResultsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsRepositoriesCompilationResultsListCall { + 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 *ProjectsLocationsRepositoriesCompilationResultsListCall) Context(ctx context.Context) *ProjectsLocationsRepositoriesCompilationResultsListCall { + 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 *ProjectsLocationsRepositoriesCompilationResultsListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsRepositoriesCompilationResultsListCall) 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/{+parent}/compilationResults") + 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 "dataform.projects.locations.repositories.compilationResults.list" call. +// Exactly one of *ListCompilationResultsResponse or error will be +// non-nil. Any non-2xx status code is an error. Response headers are in +// either *ListCompilationResultsResponse.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 *ProjectsLocationsRepositoriesCompilationResultsListCall) Do(opts ...googleapi.CallOption) (*ListCompilationResultsResponse, 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 := &ListCompilationResultsResponse{ + 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 CompilationResults in a given Repository.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/compilationResults", + // "httpMethod": "GET", + // "id": "dataform.projects.locations.repositories.compilationResults.list", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "pageSize": { + // "description": "Optional. Maximum number of compilation results 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 `ListCompilationResults` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListCompilationResults` must match the call that provided the page token.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "Required. The repository in which to list compilation results. Must be in the format `projects/*/locations/*/repositories/*`.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+parent}/compilationResults", + // "response": { + // "$ref": "ListCompilationResultsResponse" + // }, + // "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 *ProjectsLocationsRepositoriesCompilationResultsListCall) Pages(ctx context.Context, f func(*ListCompilationResultsResponse) 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.compilationResults.query": + +type ProjectsLocationsRepositoriesCompilationResultsQueryCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Query: Returns CompilationResultActions in a given CompilationResult. +// +// - name: The compilation result's name. +func (r *ProjectsLocationsRepositoriesCompilationResultsService) Query(name string) *ProjectsLocationsRepositoriesCompilationResultsQueryCall { + c := &ProjectsLocationsRepositoriesCompilationResultsQueryCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Filter sets the optional parameter "filter": Optional filter for the +// returned list. Filtering is only currently supported on the +// `file_path` field. +func (c *ProjectsLocationsRepositoriesCompilationResultsQueryCall) Filter(filter string) *ProjectsLocationsRepositoriesCompilationResultsQueryCall { + c.urlParams_.Set("filter", filter) + return c +} + +// PageSize sets the optional parameter "pageSize": Maximum number of +// compilation results to return. The server may return fewer items than +// requested. If unspecified, the server will pick an appropriate +// default. +func (c *ProjectsLocationsRepositoriesCompilationResultsQueryCall) PageSize(pageSize int64) *ProjectsLocationsRepositoriesCompilationResultsQueryCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": Page token +// received from a previous `QueryCompilationResultActions` call. +// Provide this to retrieve the subsequent page. When paginating, all +// other parameters provided to `QueryCompilationResultActions` must +// match the call that provided the page token. +func (c *ProjectsLocationsRepositoriesCompilationResultsQueryCall) PageToken(pageToken string) *ProjectsLocationsRepositoriesCompilationResultsQueryCall { + 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 *ProjectsLocationsRepositoriesCompilationResultsQueryCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesCompilationResultsQueryCall { + 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 *ProjectsLocationsRepositoriesCompilationResultsQueryCall) IfNoneMatch(entityTag string) *ProjectsLocationsRepositoriesCompilationResultsQueryCall { + 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 *ProjectsLocationsRepositoriesCompilationResultsQueryCall) Context(ctx context.Context) *ProjectsLocationsRepositoriesCompilationResultsQueryCall { + 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 *ProjectsLocationsRepositoriesCompilationResultsQueryCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsRepositoriesCompilationResultsQueryCall) 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}:query") + 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.compilationResults.query" call. +// Exactly one of *QueryCompilationResultActionsResponse or error will +// be non-nil. Any non-2xx status code is an error. Response headers are +// in either +// *QueryCompilationResultActionsResponse.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 *ProjectsLocationsRepositoriesCompilationResultsQueryCall) Do(opts ...googleapi.CallOption) (*QueryCompilationResultActionsResponse, 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 := &QueryCompilationResultActionsResponse{ + 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 CompilationResultActions in a given CompilationResult.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/compilationResults/{compilationResultsId}:query", + // "httpMethod": "GET", + // "id": "dataform.projects.locations.repositories.compilationResults.query", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "filter": { + // "description": "Optional. Optional filter for the returned list. Filtering is only currently supported on the `file_path` field.", + // "location": "query", + // "type": "string" + // }, + // "name": { + // "description": "Required. The compilation result's name.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/compilationResults/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "pageSize": { + // "description": "Optional. Maximum number of compilation results 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 `QueryCompilationResultActions` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `QueryCompilationResultActions` must match the call that provided the page token.", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1beta1/{+name}:query", + // "response": { + // "$ref": "QueryCompilationResultActionsResponse" + // }, + // "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 *ProjectsLocationsRepositoriesCompilationResultsQueryCall) Pages(ctx context.Context, f func(*QueryCompilationResultActionsResponse) 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.releaseConfigs.create": + +type ProjectsLocationsRepositoriesReleaseConfigsCreateCall struct { + s *Service + parent string + releaseconfig *ReleaseConfig + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Create: Creates a new ReleaseConfig in a given Repository. +// +// - parent: The repository in which to create the release config. Must +// be in the format `projects/*/locations/*/repositories/*`. +func (r *ProjectsLocationsRepositoriesReleaseConfigsService) Create(parent string, releaseconfig *ReleaseConfig) *ProjectsLocationsRepositoriesReleaseConfigsCreateCall { + c := &ProjectsLocationsRepositoriesReleaseConfigsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.releaseconfig = releaseconfig + return c +} + +// ReleaseConfigId sets the optional parameter "releaseConfigId": +// Required. The ID to use for the release config, which will become the +// final component of the release config's resource name. +func (c *ProjectsLocationsRepositoriesReleaseConfigsCreateCall) ReleaseConfigId(releaseConfigId string) *ProjectsLocationsRepositoriesReleaseConfigsCreateCall { + c.urlParams_.Set("releaseConfigId", releaseConfigId) + 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 *ProjectsLocationsRepositoriesReleaseConfigsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesReleaseConfigsCreateCall { + 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 *ProjectsLocationsRepositoriesReleaseConfigsCreateCall) Context(ctx context.Context) *ProjectsLocationsRepositoriesReleaseConfigsCreateCall { + 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 *ProjectsLocationsRepositoriesReleaseConfigsCreateCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsRepositoriesReleaseConfigsCreateCall) 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.releaseconfig) + 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/{+parent}/releaseConfigs") + 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{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "dataform.projects.locations.repositories.releaseConfigs.create" call. +// Exactly one of *ReleaseConfig or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *ReleaseConfig.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 *ProjectsLocationsRepositoriesReleaseConfigsCreateCall) Do(opts ...googleapi.CallOption) (*ReleaseConfig, 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 := &ReleaseConfig{ + 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": "Creates a new ReleaseConfig in a given Repository.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/releaseConfigs", + // "httpMethod": "POST", + // "id": "dataform.projects.locations.repositories.releaseConfigs.create", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "parent": { + // "description": "Required. The repository in which to create the release config. Must be in the format `projects/*/locations/*/repositories/*`.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "releaseConfigId": { + // "description": "Required. The ID to use for the release config, which will become the final component of the release config's resource name.", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1beta1/{+parent}/releaseConfigs", + // "request": { + // "$ref": "ReleaseConfig" + // }, + // "response": { + // "$ref": "ReleaseConfig" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "dataform.projects.locations.repositories.releaseConfigs.delete": + +type ProjectsLocationsRepositoriesReleaseConfigsDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Delete: Deletes a single ReleaseConfig. +// +// - name: The release config's name. +func (r *ProjectsLocationsRepositoriesReleaseConfigsService) Delete(name string) *ProjectsLocationsRepositoriesReleaseConfigsDeleteCall { + c := &ProjectsLocationsRepositoriesReleaseConfigsDeleteCall{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 *ProjectsLocationsRepositoriesReleaseConfigsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesReleaseConfigsDeleteCall { + 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 *ProjectsLocationsRepositoriesReleaseConfigsDeleteCall) Context(ctx context.Context) *ProjectsLocationsRepositoriesReleaseConfigsDeleteCall { + 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 *ProjectsLocationsRepositoriesReleaseConfigsDeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsRepositoriesReleaseConfigsDeleteCall) 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 + 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("DELETE", 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.releaseConfigs.delete" 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 *ProjectsLocationsRepositoriesReleaseConfigsDeleteCall) 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": "Deletes a single ReleaseConfig.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/releaseConfigs/{releaseConfigsId}", + // "httpMethod": "DELETE", + // "id": "dataform.projects.locations.repositories.releaseConfigs.delete", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The release config's name.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/releaseConfigs/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+name}", + // "response": { + // "$ref": "Empty" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "dataform.projects.locations.repositories.releaseConfigs.get": + +type ProjectsLocationsRepositoriesReleaseConfigsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Fetches a single ReleaseConfig. +// +// - name: The release config's name. +func (r *ProjectsLocationsRepositoriesReleaseConfigsService) Get(name string) *ProjectsLocationsRepositoriesReleaseConfigsGetCall { + c := &ProjectsLocationsRepositoriesReleaseConfigsGetCall{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 *ProjectsLocationsRepositoriesReleaseConfigsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesReleaseConfigsGetCall { + 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 *ProjectsLocationsRepositoriesReleaseConfigsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsRepositoriesReleaseConfigsGetCall { + 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 *ProjectsLocationsRepositoriesReleaseConfigsGetCall) Context(ctx context.Context) *ProjectsLocationsRepositoriesReleaseConfigsGetCall { + 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 *ProjectsLocationsRepositoriesReleaseConfigsGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsRepositoriesReleaseConfigsGetCall) 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.releaseConfigs.get" call. +// Exactly one of *ReleaseConfig or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *ReleaseConfig.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 *ProjectsLocationsRepositoriesReleaseConfigsGetCall) Do(opts ...googleapi.CallOption) (*ReleaseConfig, 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 := &ReleaseConfig{ + 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 ReleaseConfig.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/releaseConfigs/{releaseConfigsId}", + // "httpMethod": "GET", + // "id": "dataform.projects.locations.repositories.releaseConfigs.get", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The release config's name.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/releaseConfigs/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+name}", + // "response": { + // "$ref": "ReleaseConfig" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "dataform.projects.locations.repositories.releaseConfigs.list": + +type ProjectsLocationsRepositoriesReleaseConfigsListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists ReleaseConfigs in a given Repository. +// +// - parent: The repository in which to list release configs. Must be in +// the format `projects/*/locations/*/repositories/*`. +func (r *ProjectsLocationsRepositoriesReleaseConfigsService) List(parent string) *ProjectsLocationsRepositoriesReleaseConfigsListCall { + c := &ProjectsLocationsRepositoriesReleaseConfigsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// PageSize sets the optional parameter "pageSize": Maximum number of +// release configs to return. The server may return fewer items than +// requested. If unspecified, the server will pick an appropriate +// default. +func (c *ProjectsLocationsRepositoriesReleaseConfigsListCall) PageSize(pageSize int64) *ProjectsLocationsRepositoriesReleaseConfigsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": Page token +// received from a previous `ListReleaseConfigs` call. Provide this to +// retrieve the subsequent page. When paginating, all other parameters +// provided to `ListReleaseConfigs` must match the call that provided +// the page token. +func (c *ProjectsLocationsRepositoriesReleaseConfigsListCall) PageToken(pageToken string) *ProjectsLocationsRepositoriesReleaseConfigsListCall { + 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 *ProjectsLocationsRepositoriesReleaseConfigsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesReleaseConfigsListCall { + 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 *ProjectsLocationsRepositoriesReleaseConfigsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsRepositoriesReleaseConfigsListCall { + 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 *ProjectsLocationsRepositoriesReleaseConfigsListCall) Context(ctx context.Context) *ProjectsLocationsRepositoriesReleaseConfigsListCall { + 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 *ProjectsLocationsRepositoriesReleaseConfigsListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsRepositoriesReleaseConfigsListCall) 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/{+parent}/releaseConfigs") + 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 "dataform.projects.locations.repositories.releaseConfigs.list" call. +// Exactly one of *ListReleaseConfigsResponse or error will be non-nil. +// Any non-2xx status code is an error. Response headers are in either +// *ListReleaseConfigsResponse.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 *ProjectsLocationsRepositoriesReleaseConfigsListCall) Do(opts ...googleapi.CallOption) (*ListReleaseConfigsResponse, 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 := &ListReleaseConfigsResponse{ + 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 ReleaseConfigs in a given Repository.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/releaseConfigs", + // "httpMethod": "GET", + // "id": "dataform.projects.locations.repositories.releaseConfigs.list", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "pageSize": { + // "description": "Optional. Maximum number of release configs 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 `ListReleaseConfigs` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListReleaseConfigs` must match the call that provided the page token.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "Required. The repository in which to list release configs. Must be in the format `projects/*/locations/*/repositories/*`.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+parent}/releaseConfigs", + // "response": { + // "$ref": "ListReleaseConfigsResponse" + // }, + // "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 *ProjectsLocationsRepositoriesReleaseConfigsListCall) Pages(ctx context.Context, f func(*ListReleaseConfigsResponse) 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.releaseConfigs.patch": + +type ProjectsLocationsRepositoriesReleaseConfigsPatchCall struct { + s *Service + name string + releaseconfig *ReleaseConfig + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Patch: Updates a single ReleaseConfig. +// +// - name: Output only. The release config's name. +func (r *ProjectsLocationsRepositoriesReleaseConfigsService) Patch(name string, releaseconfig *ReleaseConfig) *ProjectsLocationsRepositoriesReleaseConfigsPatchCall { + c := &ProjectsLocationsRepositoriesReleaseConfigsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.releaseconfig = releaseconfig + return c +} + +// UpdateMask sets the optional parameter "updateMask": Specifies the +// fields to be updated in the release config. If left unset, all fields +// will be updated. +func (c *ProjectsLocationsRepositoriesReleaseConfigsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsRepositoriesReleaseConfigsPatchCall { + c.urlParams_.Set("updateMask", updateMask) + 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 *ProjectsLocationsRepositoriesReleaseConfigsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesReleaseConfigsPatchCall { + 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 *ProjectsLocationsRepositoriesReleaseConfigsPatchCall) Context(ctx context.Context) *ProjectsLocationsRepositoriesReleaseConfigsPatchCall { + 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 *ProjectsLocationsRepositoriesReleaseConfigsPatchCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsRepositoriesReleaseConfigsPatchCall) 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.releaseconfig) + 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}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("PATCH", 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.releaseConfigs.patch" call. +// Exactly one of *ReleaseConfig or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *ReleaseConfig.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 *ProjectsLocationsRepositoriesReleaseConfigsPatchCall) Do(opts ...googleapi.CallOption) (*ReleaseConfig, 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 := &ReleaseConfig{ + 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": "Updates a single ReleaseConfig.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/releaseConfigs/{releaseConfigsId}", + // "httpMethod": "PATCH", + // "id": "dataform.projects.locations.repositories.releaseConfigs.patch", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Output only. The release config's name.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/releaseConfigs/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "updateMask": { + // "description": "Optional. Specifies the fields to be updated in the release config. If left unset, all fields will be updated.", + // "format": "google-fieldmask", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1beta1/{+name}", + // "request": { + // "$ref": "ReleaseConfig" + // }, + // "response": { + // "$ref": "ReleaseConfig" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "dataform.projects.locations.repositories.workflowInvocations.cancel": + +type ProjectsLocationsRepositoriesWorkflowInvocationsCancelCall struct { + s *Service + name string + cancelworkflowinvocationrequest *CancelWorkflowInvocationRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Cancel: Requests cancellation of a running WorkflowInvocation. +// +// - name: The workflow invocation resource's name. +func (r *ProjectsLocationsRepositoriesWorkflowInvocationsService) Cancel(name string, cancelworkflowinvocationrequest *CancelWorkflowInvocationRequest) *ProjectsLocationsRepositoriesWorkflowInvocationsCancelCall { + c := &ProjectsLocationsRepositoriesWorkflowInvocationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.cancelworkflowinvocationrequest = cancelworkflowinvocationrequest + 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 *ProjectsLocationsRepositoriesWorkflowInvocationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesWorkflowInvocationsCancelCall { + 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 *ProjectsLocationsRepositoriesWorkflowInvocationsCancelCall) Context(ctx context.Context) *ProjectsLocationsRepositoriesWorkflowInvocationsCancelCall { + 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 *ProjectsLocationsRepositoriesWorkflowInvocationsCancelCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsRepositoriesWorkflowInvocationsCancelCall) 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.cancelworkflowinvocationrequest) + 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}:cancel") + 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.workflowInvocations.cancel" 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 *ProjectsLocationsRepositoriesWorkflowInvocationsCancelCall) 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": "Requests cancellation of a running WorkflowInvocation.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/workflowInvocations/{workflowInvocationsId}:cancel", + // "httpMethod": "POST", + // "id": "dataform.projects.locations.repositories.workflowInvocations.cancel", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The workflow invocation resource's name.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workflowInvocations/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+name}:cancel", + // "request": { + // "$ref": "CancelWorkflowInvocationRequest" + // }, + // "response": { + // "$ref": "Empty" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "dataform.projects.locations.repositories.workflowInvocations.create": + +type ProjectsLocationsRepositoriesWorkflowInvocationsCreateCall struct { + s *Service + parent string + workflowinvocation *WorkflowInvocation + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Create: Creates a new WorkflowInvocation in a given Repository. +// +// - parent: The repository in which to create the workflow invocation. +// Must be in the format `projects/*/locations/*/repositories/*`. +func (r *ProjectsLocationsRepositoriesWorkflowInvocationsService) Create(parent string, workflowinvocation *WorkflowInvocation) *ProjectsLocationsRepositoriesWorkflowInvocationsCreateCall { + c := &ProjectsLocationsRepositoriesWorkflowInvocationsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.workflowinvocation = workflowinvocation + 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 *ProjectsLocationsRepositoriesWorkflowInvocationsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesWorkflowInvocationsCreateCall { + 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 *ProjectsLocationsRepositoriesWorkflowInvocationsCreateCall) Context(ctx context.Context) *ProjectsLocationsRepositoriesWorkflowInvocationsCreateCall { + 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 *ProjectsLocationsRepositoriesWorkflowInvocationsCreateCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsRepositoriesWorkflowInvocationsCreateCall) 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.workflowinvocation) + 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/{+parent}/workflowInvocations") + 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{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "dataform.projects.locations.repositories.workflowInvocations.create" call. +// Exactly one of *WorkflowInvocation or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *WorkflowInvocation.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 *ProjectsLocationsRepositoriesWorkflowInvocationsCreateCall) Do(opts ...googleapi.CallOption) (*WorkflowInvocation, 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 := &WorkflowInvocation{ + 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": "Creates a new WorkflowInvocation in a given Repository.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/workflowInvocations", + // "httpMethod": "POST", + // "id": "dataform.projects.locations.repositories.workflowInvocations.create", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "parent": { + // "description": "Required. The repository in which to create the workflow invocation. Must be in the format `projects/*/locations/*/repositories/*`.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+parent}/workflowInvocations", + // "request": { + // "$ref": "WorkflowInvocation" + // }, + // "response": { + // "$ref": "WorkflowInvocation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "dataform.projects.locations.repositories.workflowInvocations.delete": + +type ProjectsLocationsRepositoriesWorkflowInvocationsDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Delete: Deletes a single WorkflowInvocation. +// +// - name: The workflow invocation resource's name. +func (r *ProjectsLocationsRepositoriesWorkflowInvocationsService) Delete(name string) *ProjectsLocationsRepositoriesWorkflowInvocationsDeleteCall { + c := &ProjectsLocationsRepositoriesWorkflowInvocationsDeleteCall{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 *ProjectsLocationsRepositoriesWorkflowInvocationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesWorkflowInvocationsDeleteCall { + 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 *ProjectsLocationsRepositoriesWorkflowInvocationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsRepositoriesWorkflowInvocationsDeleteCall { + 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 *ProjectsLocationsRepositoriesWorkflowInvocationsDeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsRepositoriesWorkflowInvocationsDeleteCall) 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 + 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("DELETE", 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.workflowInvocations.delete" 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 *ProjectsLocationsRepositoriesWorkflowInvocationsDeleteCall) 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": "Deletes a single WorkflowInvocation.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/workflowInvocations/{workflowInvocationsId}", + // "httpMethod": "DELETE", + // "id": "dataform.projects.locations.repositories.workflowInvocations.delete", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The workflow invocation resource's name.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workflowInvocations/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+name}", + // "response": { + // "$ref": "Empty" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "dataform.projects.locations.repositories.workflowInvocations.get": + +type ProjectsLocationsRepositoriesWorkflowInvocationsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Fetches a single WorkflowInvocation. +// +// - name: The workflow invocation resource's name. +func (r *ProjectsLocationsRepositoriesWorkflowInvocationsService) Get(name string) *ProjectsLocationsRepositoriesWorkflowInvocationsGetCall { + c := &ProjectsLocationsRepositoriesWorkflowInvocationsGetCall{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 *ProjectsLocationsRepositoriesWorkflowInvocationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesWorkflowInvocationsGetCall { + 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 *ProjectsLocationsRepositoriesWorkflowInvocationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsRepositoriesWorkflowInvocationsGetCall { + 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 *ProjectsLocationsRepositoriesWorkflowInvocationsGetCall) Context(ctx context.Context) *ProjectsLocationsRepositoriesWorkflowInvocationsGetCall { + 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 *ProjectsLocationsRepositoriesWorkflowInvocationsGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsRepositoriesWorkflowInvocationsGetCall) 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.workflowInvocations.get" call. +// Exactly one of *WorkflowInvocation or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *WorkflowInvocation.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 *ProjectsLocationsRepositoriesWorkflowInvocationsGetCall) Do(opts ...googleapi.CallOption) (*WorkflowInvocation, 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 := &WorkflowInvocation{ + 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 WorkflowInvocation.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/workflowInvocations/{workflowInvocationsId}", + // "httpMethod": "GET", + // "id": "dataform.projects.locations.repositories.workflowInvocations.get", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The workflow invocation resource's name.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workflowInvocations/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+name}", + // "response": { + // "$ref": "WorkflowInvocation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "dataform.projects.locations.repositories.workflowInvocations.list": + +type ProjectsLocationsRepositoriesWorkflowInvocationsListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists WorkflowInvocations in a given Repository. +// +// - parent: The parent resource of the WorkflowInvocation type. Must be +// in the format `projects/*/locations/*/repositories/*`. +func (r *ProjectsLocationsRepositoriesWorkflowInvocationsService) List(parent string) *ProjectsLocationsRepositoriesWorkflowInvocationsListCall { + c := &ProjectsLocationsRepositoriesWorkflowInvocationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// Filter sets the optional parameter "filter": Filter for the returned +// list. +func (c *ProjectsLocationsRepositoriesWorkflowInvocationsListCall) Filter(filter string) *ProjectsLocationsRepositoriesWorkflowInvocationsListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// OrderBy sets the optional parameter "orderBy": This field only +// supports ordering by `name`. If unspecified, the server will choose +// the ordering. If specified, the default order is ascending for the +// `name` field. +func (c *ProjectsLocationsRepositoriesWorkflowInvocationsListCall) OrderBy(orderBy string) *ProjectsLocationsRepositoriesWorkflowInvocationsListCall { + c.urlParams_.Set("orderBy", orderBy) + return c +} + +// PageSize sets the optional parameter "pageSize": Maximum number of +// workflow invocations to return. The server may return fewer items +// than requested. If unspecified, the server will pick an appropriate +// default. +func (c *ProjectsLocationsRepositoriesWorkflowInvocationsListCall) PageSize(pageSize int64) *ProjectsLocationsRepositoriesWorkflowInvocationsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": Page token +// received from a previous `ListWorkflowInvocations` call. Provide this +// to retrieve the subsequent page. When paginating, all other +// parameters provided to `ListWorkflowInvocations` must match the call +// that provided the page token. +func (c *ProjectsLocationsRepositoriesWorkflowInvocationsListCall) PageToken(pageToken string) *ProjectsLocationsRepositoriesWorkflowInvocationsListCall { + 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 *ProjectsLocationsRepositoriesWorkflowInvocationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesWorkflowInvocationsListCall { + 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 *ProjectsLocationsRepositoriesWorkflowInvocationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsRepositoriesWorkflowInvocationsListCall { + 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 *ProjectsLocationsRepositoriesWorkflowInvocationsListCall) Context(ctx context.Context) *ProjectsLocationsRepositoriesWorkflowInvocationsListCall { + 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 *ProjectsLocationsRepositoriesWorkflowInvocationsListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsRepositoriesWorkflowInvocationsListCall) 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/{+parent}/workflowInvocations") + 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 "dataform.projects.locations.repositories.workflowInvocations.list" call. +// Exactly one of *ListWorkflowInvocationsResponse or error will be +// non-nil. Any non-2xx status code is an error. Response headers are in +// either *ListWorkflowInvocationsResponse.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 *ProjectsLocationsRepositoriesWorkflowInvocationsListCall) Do(opts ...googleapi.CallOption) (*ListWorkflowInvocationsResponse, 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 := &ListWorkflowInvocationsResponse{ + 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 WorkflowInvocations in a given Repository.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/workflowInvocations", + // "httpMethod": "GET", + // "id": "dataform.projects.locations.repositories.workflowInvocations.list", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "filter": { + // "description": "Optional. Filter for the returned list.", + // "location": "query", + // "type": "string" + // }, + // "orderBy": { + // "description": "Optional. This field only supports ordering by `name`. If unspecified, the server will choose the ordering. If specified, the default order is ascending for the `name` field.", + // "location": "query", + // "type": "string" + // }, + // "pageSize": { + // "description": "Optional. Maximum number of workflow invocations 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 `ListWorkflowInvocations` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListWorkflowInvocations` must match the call that provided the page token.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "Required. The parent resource of the WorkflowInvocation type. Must be in the format `projects/*/locations/*/repositories/*`.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+parent}/workflowInvocations", + // "response": { + // "$ref": "ListWorkflowInvocationsResponse" + // }, + // "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 *ProjectsLocationsRepositoriesWorkflowInvocationsListCall) Pages(ctx context.Context, f func(*ListWorkflowInvocationsResponse) 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.workflowInvocations.query": + +type ProjectsLocationsRepositoriesWorkflowInvocationsQueryCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Query: Returns WorkflowInvocationActions in a given +// WorkflowInvocation. +// +// - name: The workflow invocation's name. +func (r *ProjectsLocationsRepositoriesWorkflowInvocationsService) Query(name string) *ProjectsLocationsRepositoriesWorkflowInvocationsQueryCall { + c := &ProjectsLocationsRepositoriesWorkflowInvocationsQueryCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// PageSize sets the optional parameter "pageSize": Maximum number of +// workflow invocations to return. The server may return fewer items +// than requested. If unspecified, the server will pick an appropriate +// default. +func (c *ProjectsLocationsRepositoriesWorkflowInvocationsQueryCall) PageSize(pageSize int64) *ProjectsLocationsRepositoriesWorkflowInvocationsQueryCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": Page token +// received from a previous `QueryWorkflowInvocationActions` call. +// Provide this to retrieve the subsequent page. When paginating, all +// other parameters provided to `QueryWorkflowInvocationActions` must +// match the call that provided the page token. +func (c *ProjectsLocationsRepositoriesWorkflowInvocationsQueryCall) PageToken(pageToken string) *ProjectsLocationsRepositoriesWorkflowInvocationsQueryCall { + 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 *ProjectsLocationsRepositoriesWorkflowInvocationsQueryCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesWorkflowInvocationsQueryCall { + 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 *ProjectsLocationsRepositoriesWorkflowInvocationsQueryCall) IfNoneMatch(entityTag string) *ProjectsLocationsRepositoriesWorkflowInvocationsQueryCall { + 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 *ProjectsLocationsRepositoriesWorkflowInvocationsQueryCall) Context(ctx context.Context) *ProjectsLocationsRepositoriesWorkflowInvocationsQueryCall { + 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 *ProjectsLocationsRepositoriesWorkflowInvocationsQueryCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsRepositoriesWorkflowInvocationsQueryCall) 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}:query") + 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.workflowInvocations.query" call. +// Exactly one of *QueryWorkflowInvocationActionsResponse or error will +// be non-nil. Any non-2xx status code is an error. Response headers are +// in either +// *QueryWorkflowInvocationActionsResponse.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 *ProjectsLocationsRepositoriesWorkflowInvocationsQueryCall) Do(opts ...googleapi.CallOption) (*QueryWorkflowInvocationActionsResponse, 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 := &QueryWorkflowInvocationActionsResponse{ + 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 WorkflowInvocationActions in a given WorkflowInvocation.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/workflowInvocations/{workflowInvocationsId}:query", + // "httpMethod": "GET", + // "id": "dataform.projects.locations.repositories.workflowInvocations.query", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The workflow invocation's name.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workflowInvocations/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "pageSize": { + // "description": "Optional. Maximum number of workflow invocations 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 `QueryWorkflowInvocationActions` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `QueryWorkflowInvocationActions` must match the call that provided the page token.", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1beta1/{+name}:query", + // "response": { + // "$ref": "QueryWorkflowInvocationActionsResponse" + // }, + // "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 *ProjectsLocationsRepositoriesWorkflowInvocationsQueryCall) Pages(ctx context.Context, f func(*QueryWorkflowInvocationActionsResponse) 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.workspaces.commit": + +type ProjectsLocationsRepositoriesWorkspacesCommitCall struct { + s *Service + name string + commitworkspacechangesrequest *CommitWorkspaceChangesRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Commit: Applies a Git commit for uncommitted files in a Workspace. +// +// - name: The workspace's name. +func (r *ProjectsLocationsRepositoriesWorkspacesService) Commit(name string, commitworkspacechangesrequest *CommitWorkspaceChangesRequest) *ProjectsLocationsRepositoriesWorkspacesCommitCall { + c := &ProjectsLocationsRepositoriesWorkspacesCommitCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.commitworkspacechangesrequest = commitworkspacechangesrequest + 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 *ProjectsLocationsRepositoriesWorkspacesCommitCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesWorkspacesCommitCall { + 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 *ProjectsLocationsRepositoriesWorkspacesCommitCall) Context(ctx context.Context) *ProjectsLocationsRepositoriesWorkspacesCommitCall { + 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 *ProjectsLocationsRepositoriesWorkspacesCommitCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsRepositoriesWorkspacesCommitCall) 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.commitworkspacechangesrequest) + 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.workspaces.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 *ProjectsLocationsRepositoriesWorkspacesCommitCall) 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 for uncommitted files in a Workspace.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/workspaces/{workspacesId}:commit", + // "httpMethod": "POST", + // "id": "dataform.projects.locations.repositories.workspaces.commit", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The workspace's name.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+name}:commit", + // "request": { + // "$ref": "CommitWorkspaceChangesRequest" + // }, + // "response": { + // "$ref": "Empty" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "dataform.projects.locations.repositories.workspaces.create": + +type ProjectsLocationsRepositoriesWorkspacesCreateCall struct { + s *Service + parent string + workspace *Workspace + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Create: Creates a new Workspace in a given Repository. +// +// - parent: The repository in which to create the workspace. Must be in +// the format `projects/*/locations/*/repositories/*`. +func (r *ProjectsLocationsRepositoriesWorkspacesService) Create(parent string, workspace *Workspace) *ProjectsLocationsRepositoriesWorkspacesCreateCall { + c := &ProjectsLocationsRepositoriesWorkspacesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.workspace = workspace + return c +} + +// WorkspaceId sets the optional parameter "workspaceId": Required. The +// ID to use for the workspace, which will become the final component of +// the workspace's resource name. +func (c *ProjectsLocationsRepositoriesWorkspacesCreateCall) WorkspaceId(workspaceId string) *ProjectsLocationsRepositoriesWorkspacesCreateCall { + c.urlParams_.Set("workspaceId", workspaceId) + 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 *ProjectsLocationsRepositoriesWorkspacesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesWorkspacesCreateCall { + 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 *ProjectsLocationsRepositoriesWorkspacesCreateCall) Context(ctx context.Context) *ProjectsLocationsRepositoriesWorkspacesCreateCall { + 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 *ProjectsLocationsRepositoriesWorkspacesCreateCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsRepositoriesWorkspacesCreateCall) 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.workspace) + 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/{+parent}/workspaces") + 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{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "dataform.projects.locations.repositories.workspaces.create" call. +// Exactly one of *Workspace or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *Workspace.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 *ProjectsLocationsRepositoriesWorkspacesCreateCall) Do(opts ...googleapi.CallOption) (*Workspace, 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 := &Workspace{ + 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": "Creates a new Workspace in a given Repository.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/workspaces", + // "httpMethod": "POST", + // "id": "dataform.projects.locations.repositories.workspaces.create", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "parent": { + // "description": "Required. The repository in which to create the workspace. Must be in the format `projects/*/locations/*/repositories/*`.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "workspaceId": { + // "description": "Required. The ID to use for the workspace, which will become the final component of the workspace's resource name.", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1beta1/{+parent}/workspaces", + // "request": { + // "$ref": "Workspace" + // }, + // "response": { + // "$ref": "Workspace" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "dataform.projects.locations.repositories.workspaces.delete": + +type ProjectsLocationsRepositoriesWorkspacesDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Delete: Deletes a single Workspace. +// +// - name: The workspace resource's name. +func (r *ProjectsLocationsRepositoriesWorkspacesService) Delete(name string) *ProjectsLocationsRepositoriesWorkspacesDeleteCall { + c := &ProjectsLocationsRepositoriesWorkspacesDeleteCall{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 *ProjectsLocationsRepositoriesWorkspacesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesWorkspacesDeleteCall { + 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 *ProjectsLocationsRepositoriesWorkspacesDeleteCall) Context(ctx context.Context) *ProjectsLocationsRepositoriesWorkspacesDeleteCall { + 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 *ProjectsLocationsRepositoriesWorkspacesDeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsRepositoriesWorkspacesDeleteCall) 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 + 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("DELETE", 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.workspaces.delete" 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 *ProjectsLocationsRepositoriesWorkspacesDeleteCall) 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": "Deletes a single Workspace.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/workspaces/{workspacesId}", + // "httpMethod": "DELETE", + // "id": "dataform.projects.locations.repositories.workspaces.delete", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The workspace resource's name.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+name}", + // "response": { + // "$ref": "Empty" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "dataform.projects.locations.repositories.workspaces.fetchFileDiff": + +type ProjectsLocationsRepositoriesWorkspacesFetchFileDiffCall struct { + s *Service + workspace string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// FetchFileDiff: Fetches Git diff for an uncommitted file in a +// Workspace. +// +// - workspace: The workspace's name. +func (r *ProjectsLocationsRepositoriesWorkspacesService) FetchFileDiff(workspace string) *ProjectsLocationsRepositoriesWorkspacesFetchFileDiffCall { + c := &ProjectsLocationsRepositoriesWorkspacesFetchFileDiffCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.workspace = workspace + return c +} + +// Path sets the optional parameter "path": Required. The file's full +// path including filename, relative to the workspace root. +func (c *ProjectsLocationsRepositoriesWorkspacesFetchFileDiffCall) Path(path string) *ProjectsLocationsRepositoriesWorkspacesFetchFileDiffCall { + 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 *ProjectsLocationsRepositoriesWorkspacesFetchFileDiffCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesWorkspacesFetchFileDiffCall { + 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 *ProjectsLocationsRepositoriesWorkspacesFetchFileDiffCall) IfNoneMatch(entityTag string) *ProjectsLocationsRepositoriesWorkspacesFetchFileDiffCall { + 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 *ProjectsLocationsRepositoriesWorkspacesFetchFileDiffCall) Context(ctx context.Context) *ProjectsLocationsRepositoriesWorkspacesFetchFileDiffCall { + 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 *ProjectsLocationsRepositoriesWorkspacesFetchFileDiffCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsRepositoriesWorkspacesFetchFileDiffCall) 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/{+workspace}:fetchFileDiff") + 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{ + "workspace": c.workspace, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "dataform.projects.locations.repositories.workspaces.fetchFileDiff" call. +// Exactly one of *FetchFileDiffResponse or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *FetchFileDiffResponse.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 *ProjectsLocationsRepositoriesWorkspacesFetchFileDiffCall) Do(opts ...googleapi.CallOption) (*FetchFileDiffResponse, 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 := &FetchFileDiffResponse{ + 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 Git diff for an uncommitted file in a Workspace.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/workspaces/{workspacesId}:fetchFileDiff", + // "httpMethod": "GET", + // "id": "dataform.projects.locations.repositories.workspaces.fetchFileDiff", + // "parameterOrder": [ + // "workspace" + // ], + // "parameters": { + // "path": { + // "description": "Required. The file's full path including filename, relative to the workspace root.", + // "location": "query", + // "type": "string" + // }, + // "workspace": { + // "description": "Required. The workspace's name.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+workspace}:fetchFileDiff", + // "response": { + // "$ref": "FetchFileDiffResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "dataform.projects.locations.repositories.workspaces.fetchFileGitStatuses": + +type ProjectsLocationsRepositoriesWorkspacesFetchFileGitStatusesCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// FetchFileGitStatuses: Fetches Git statuses for the files in a +// Workspace. +// +// - name: The workspace's name. +func (r *ProjectsLocationsRepositoriesWorkspacesService) FetchFileGitStatuses(name string) *ProjectsLocationsRepositoriesWorkspacesFetchFileGitStatusesCall { + c := &ProjectsLocationsRepositoriesWorkspacesFetchFileGitStatusesCall{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 *ProjectsLocationsRepositoriesWorkspacesFetchFileGitStatusesCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesWorkspacesFetchFileGitStatusesCall { + 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 *ProjectsLocationsRepositoriesWorkspacesFetchFileGitStatusesCall) IfNoneMatch(entityTag string) *ProjectsLocationsRepositoriesWorkspacesFetchFileGitStatusesCall { + 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 *ProjectsLocationsRepositoriesWorkspacesFetchFileGitStatusesCall) Context(ctx context.Context) *ProjectsLocationsRepositoriesWorkspacesFetchFileGitStatusesCall { + 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 *ProjectsLocationsRepositoriesWorkspacesFetchFileGitStatusesCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsRepositoriesWorkspacesFetchFileGitStatusesCall) 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}:fetchFileGitStatuses") + 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.workspaces.fetchFileGitStatuses" call. +// Exactly one of *FetchFileGitStatusesResponse or error will be +// non-nil. Any non-2xx status code is an error. Response headers are in +// either *FetchFileGitStatusesResponse.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 *ProjectsLocationsRepositoriesWorkspacesFetchFileGitStatusesCall) Do(opts ...googleapi.CallOption) (*FetchFileGitStatusesResponse, 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 := &FetchFileGitStatusesResponse{ + 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 Git statuses for the files in a Workspace.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/workspaces/{workspacesId}:fetchFileGitStatuses", + // "httpMethod": "GET", + // "id": "dataform.projects.locations.repositories.workspaces.fetchFileGitStatuses", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The workspace's name.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+name}:fetchFileGitStatuses", + // "response": { + // "$ref": "FetchFileGitStatusesResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "dataform.projects.locations.repositories.workspaces.fetchGitAheadBehind": + +type ProjectsLocationsRepositoriesWorkspacesFetchGitAheadBehindCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// FetchGitAheadBehind: Fetches Git ahead/behind against a remote +// branch. +// +// - name: The workspace's name. +func (r *ProjectsLocationsRepositoriesWorkspacesService) FetchGitAheadBehind(name string) *ProjectsLocationsRepositoriesWorkspacesFetchGitAheadBehindCall { + c := &ProjectsLocationsRepositoriesWorkspacesFetchGitAheadBehindCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// RemoteBranch sets the optional parameter "remoteBranch": The name of +// the branch in the Git remote against which this workspace should be +// compared. If left unset, the repository's default branch name will be +// used. +func (c *ProjectsLocationsRepositoriesWorkspacesFetchGitAheadBehindCall) RemoteBranch(remoteBranch string) *ProjectsLocationsRepositoriesWorkspacesFetchGitAheadBehindCall { + c.urlParams_.Set("remoteBranch", remoteBranch) + 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 *ProjectsLocationsRepositoriesWorkspacesFetchGitAheadBehindCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesWorkspacesFetchGitAheadBehindCall { + 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 *ProjectsLocationsRepositoriesWorkspacesFetchGitAheadBehindCall) IfNoneMatch(entityTag string) *ProjectsLocationsRepositoriesWorkspacesFetchGitAheadBehindCall { + 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 *ProjectsLocationsRepositoriesWorkspacesFetchGitAheadBehindCall) Context(ctx context.Context) *ProjectsLocationsRepositoriesWorkspacesFetchGitAheadBehindCall { + 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 *ProjectsLocationsRepositoriesWorkspacesFetchGitAheadBehindCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsRepositoriesWorkspacesFetchGitAheadBehindCall) 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}:fetchGitAheadBehind") + 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.workspaces.fetchGitAheadBehind" call. +// Exactly one of *FetchGitAheadBehindResponse or error will be non-nil. +// Any non-2xx status code is an error. Response headers are in either +// *FetchGitAheadBehindResponse.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 *ProjectsLocationsRepositoriesWorkspacesFetchGitAheadBehindCall) Do(opts ...googleapi.CallOption) (*FetchGitAheadBehindResponse, 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 := &FetchGitAheadBehindResponse{ + 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 Git ahead/behind against a remote branch.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/workspaces/{workspacesId}:fetchGitAheadBehind", + // "httpMethod": "GET", + // "id": "dataform.projects.locations.repositories.workspaces.fetchGitAheadBehind", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The workspace's name.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "remoteBranch": { + // "description": "Optional. The name of the branch in the Git remote against which this workspace should be compared. If left unset, the repository's default branch name will be used.", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1beta1/{+name}:fetchGitAheadBehind", + // "response": { + // "$ref": "FetchGitAheadBehindResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "dataform.projects.locations.repositories.workspaces.get": + +type ProjectsLocationsRepositoriesWorkspacesGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Fetches a single Workspace. +// +// - name: The workspace's name. +func (r *ProjectsLocationsRepositoriesWorkspacesService) Get(name string) *ProjectsLocationsRepositoriesWorkspacesGetCall { + c := &ProjectsLocationsRepositoriesWorkspacesGetCall{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 *ProjectsLocationsRepositoriesWorkspacesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesWorkspacesGetCall { + 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 *ProjectsLocationsRepositoriesWorkspacesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsRepositoriesWorkspacesGetCall { + 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 *ProjectsLocationsRepositoriesWorkspacesGetCall) Context(ctx context.Context) *ProjectsLocationsRepositoriesWorkspacesGetCall { + 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 *ProjectsLocationsRepositoriesWorkspacesGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsRepositoriesWorkspacesGetCall) 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.workspaces.get" call. +// Exactly one of *Workspace or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *Workspace.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 *ProjectsLocationsRepositoriesWorkspacesGetCall) Do(opts ...googleapi.CallOption) (*Workspace, 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 := &Workspace{ + 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 Workspace.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/workspaces/{workspacesId}", + // "httpMethod": "GET", + // "id": "dataform.projects.locations.repositories.workspaces.get", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The workspace's name.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+name}", + // "response": { + // "$ref": "Workspace" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "dataform.projects.locations.repositories.workspaces.installNpmPackages": + +type ProjectsLocationsRepositoriesWorkspacesInstallNpmPackagesCall struct { + s *Service + workspace string + installnpmpackagesrequest *InstallNpmPackagesRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// InstallNpmPackages: Installs dependency NPM packages (inside a +// Workspace). +// +// - workspace: The workspace's name. +func (r *ProjectsLocationsRepositoriesWorkspacesService) InstallNpmPackages(workspace string, installnpmpackagesrequest *InstallNpmPackagesRequest) *ProjectsLocationsRepositoriesWorkspacesInstallNpmPackagesCall { + c := &ProjectsLocationsRepositoriesWorkspacesInstallNpmPackagesCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.workspace = workspace + c.installnpmpackagesrequest = installnpmpackagesrequest + 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 *ProjectsLocationsRepositoriesWorkspacesInstallNpmPackagesCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesWorkspacesInstallNpmPackagesCall { + 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 *ProjectsLocationsRepositoriesWorkspacesInstallNpmPackagesCall) Context(ctx context.Context) *ProjectsLocationsRepositoriesWorkspacesInstallNpmPackagesCall { + 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 *ProjectsLocationsRepositoriesWorkspacesInstallNpmPackagesCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsRepositoriesWorkspacesInstallNpmPackagesCall) 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.installnpmpackagesrequest) + 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/{+workspace}:installNpmPackages") + 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{ + "workspace": c.workspace, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "dataform.projects.locations.repositories.workspaces.installNpmPackages" call. +// Exactly one of *InstallNpmPackagesResponse or error will be non-nil. +// Any non-2xx status code is an error. Response headers are in either +// *InstallNpmPackagesResponse.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 *ProjectsLocationsRepositoriesWorkspacesInstallNpmPackagesCall) Do(opts ...googleapi.CallOption) (*InstallNpmPackagesResponse, 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 := &InstallNpmPackagesResponse{ + 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": "Installs dependency NPM packages (inside a Workspace).", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/workspaces/{workspacesId}:installNpmPackages", + // "httpMethod": "POST", + // "id": "dataform.projects.locations.repositories.workspaces.installNpmPackages", + // "parameterOrder": [ + // "workspace" + // ], + // "parameters": { + // "workspace": { + // "description": "Required. The workspace's name.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+workspace}:installNpmPackages", + // "request": { + // "$ref": "InstallNpmPackagesRequest" + // }, + // "response": { + // "$ref": "InstallNpmPackagesResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "dataform.projects.locations.repositories.workspaces.list": + +type ProjectsLocationsRepositoriesWorkspacesListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists Workspaces in a given Repository. +// +// - parent: The repository in which to list workspaces. Must be in the +// format `projects/*/locations/*/repositories/*`. +func (r *ProjectsLocationsRepositoriesWorkspacesService) List(parent string) *ProjectsLocationsRepositoriesWorkspacesListCall { + c := &ProjectsLocationsRepositoriesWorkspacesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// Filter sets the optional parameter "filter": Filter for the returned +// list. +func (c *ProjectsLocationsRepositoriesWorkspacesListCall) Filter(filter string) *ProjectsLocationsRepositoriesWorkspacesListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// OrderBy sets the optional parameter "orderBy": This field only +// supports ordering by `name`. If unspecified, the server will choose +// the ordering. If specified, the default order is ascending for the +// `name` field. +func (c *ProjectsLocationsRepositoriesWorkspacesListCall) OrderBy(orderBy string) *ProjectsLocationsRepositoriesWorkspacesListCall { + c.urlParams_.Set("orderBy", orderBy) + return c +} + +// PageSize sets the optional parameter "pageSize": Maximum number of +// workspaces to return. The server may return fewer items than +// requested. If unspecified, the server will pick an appropriate +// default. +func (c *ProjectsLocationsRepositoriesWorkspacesListCall) PageSize(pageSize int64) *ProjectsLocationsRepositoriesWorkspacesListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": Page token +// received from a previous `ListWorkspaces` call. Provide this to +// retrieve the subsequent page. When paginating, all other parameters +// provided to `ListWorkspaces` must match the call that provided the +// page token. +func (c *ProjectsLocationsRepositoriesWorkspacesListCall) PageToken(pageToken string) *ProjectsLocationsRepositoriesWorkspacesListCall { + 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 *ProjectsLocationsRepositoriesWorkspacesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesWorkspacesListCall { + 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 *ProjectsLocationsRepositoriesWorkspacesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsRepositoriesWorkspacesListCall { + 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 *ProjectsLocationsRepositoriesWorkspacesListCall) Context(ctx context.Context) *ProjectsLocationsRepositoriesWorkspacesListCall { + 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 *ProjectsLocationsRepositoriesWorkspacesListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsRepositoriesWorkspacesListCall) 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/{+parent}/workspaces") + 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 "dataform.projects.locations.repositories.workspaces.list" call. +// Exactly one of *ListWorkspacesResponse or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *ListWorkspacesResponse.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 *ProjectsLocationsRepositoriesWorkspacesListCall) Do(opts ...googleapi.CallOption) (*ListWorkspacesResponse, 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 := &ListWorkspacesResponse{ + 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 Workspaces in a given Repository.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/workspaces", + // "httpMethod": "GET", + // "id": "dataform.projects.locations.repositories.workspaces.list", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "filter": { + // "description": "Optional. Filter for the returned list.", + // "location": "query", + // "type": "string" + // }, + // "orderBy": { + // "description": "Optional. This field only supports ordering by `name`. If unspecified, the server will choose the ordering. If specified, the default order is ascending for the `name` field.", + // "location": "query", + // "type": "string" + // }, + // "pageSize": { + // "description": "Optional. Maximum number of workspaces 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 `ListWorkspaces` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListWorkspaces` must match the call that provided the page token.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "Required. The repository in which to list workspaces. Must be in the format `projects/*/locations/*/repositories/*`.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+parent}/workspaces", + // "response": { + // "$ref": "ListWorkspacesResponse" + // }, + // "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 *ProjectsLocationsRepositoriesWorkspacesListCall) Pages(ctx context.Context, f func(*ListWorkspacesResponse) 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.workspaces.makeDirectory": + +type ProjectsLocationsRepositoriesWorkspacesMakeDirectoryCall struct { + s *Service + workspace string + makedirectoryrequest *MakeDirectoryRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// MakeDirectory: Creates a directory inside a Workspace. +// +// - workspace: The workspace's name. +func (r *ProjectsLocationsRepositoriesWorkspacesService) MakeDirectory(workspace string, makedirectoryrequest *MakeDirectoryRequest) *ProjectsLocationsRepositoriesWorkspacesMakeDirectoryCall { + c := &ProjectsLocationsRepositoriesWorkspacesMakeDirectoryCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.workspace = workspace + c.makedirectoryrequest = makedirectoryrequest + 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 *ProjectsLocationsRepositoriesWorkspacesMakeDirectoryCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesWorkspacesMakeDirectoryCall { + 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 *ProjectsLocationsRepositoriesWorkspacesMakeDirectoryCall) Context(ctx context.Context) *ProjectsLocationsRepositoriesWorkspacesMakeDirectoryCall { + 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 *ProjectsLocationsRepositoriesWorkspacesMakeDirectoryCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsRepositoriesWorkspacesMakeDirectoryCall) 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.makedirectoryrequest) + 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/{+workspace}:makeDirectory") + 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{ + "workspace": c.workspace, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "dataform.projects.locations.repositories.workspaces.makeDirectory" call. +// Exactly one of *MakeDirectoryResponse or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *MakeDirectoryResponse.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 *ProjectsLocationsRepositoriesWorkspacesMakeDirectoryCall) Do(opts ...googleapi.CallOption) (*MakeDirectoryResponse, 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 := &MakeDirectoryResponse{ + 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": "Creates a directory inside a Workspace.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/workspaces/{workspacesId}:makeDirectory", + // "httpMethod": "POST", + // "id": "dataform.projects.locations.repositories.workspaces.makeDirectory", + // "parameterOrder": [ + // "workspace" + // ], + // "parameters": { + // "workspace": { + // "description": "Required. The workspace's name.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+workspace}:makeDirectory", + // "request": { + // "$ref": "MakeDirectoryRequest" + // }, + // "response": { + // "$ref": "MakeDirectoryResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "dataform.projects.locations.repositories.workspaces.moveDirectory": + +type ProjectsLocationsRepositoriesWorkspacesMoveDirectoryCall struct { + s *Service + workspace string + movedirectoryrequest *MoveDirectoryRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// MoveDirectory: Moves a directory (inside a Workspace), and all of its +// contents, to a new location. +// +// - workspace: The workspace's name. +func (r *ProjectsLocationsRepositoriesWorkspacesService) MoveDirectory(workspace string, movedirectoryrequest *MoveDirectoryRequest) *ProjectsLocationsRepositoriesWorkspacesMoveDirectoryCall { + c := &ProjectsLocationsRepositoriesWorkspacesMoveDirectoryCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.workspace = workspace + c.movedirectoryrequest = movedirectoryrequest + 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 *ProjectsLocationsRepositoriesWorkspacesMoveDirectoryCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesWorkspacesMoveDirectoryCall { + 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 *ProjectsLocationsRepositoriesWorkspacesMoveDirectoryCall) Context(ctx context.Context) *ProjectsLocationsRepositoriesWorkspacesMoveDirectoryCall { + 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 *ProjectsLocationsRepositoriesWorkspacesMoveDirectoryCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsRepositoriesWorkspacesMoveDirectoryCall) 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.movedirectoryrequest) + 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/{+workspace}:moveDirectory") + 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{ + "workspace": c.workspace, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "dataform.projects.locations.repositories.workspaces.moveDirectory" call. +// Exactly one of *MoveDirectoryResponse or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *MoveDirectoryResponse.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 *ProjectsLocationsRepositoriesWorkspacesMoveDirectoryCall) Do(opts ...googleapi.CallOption) (*MoveDirectoryResponse, 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 := &MoveDirectoryResponse{ + 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": "Moves a directory (inside a Workspace), and all of its contents, to a new location.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/workspaces/{workspacesId}:moveDirectory", + // "httpMethod": "POST", + // "id": "dataform.projects.locations.repositories.workspaces.moveDirectory", + // "parameterOrder": [ + // "workspace" + // ], + // "parameters": { + // "workspace": { + // "description": "Required. The workspace's name.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+workspace}:moveDirectory", + // "request": { + // "$ref": "MoveDirectoryRequest" + // }, + // "response": { + // "$ref": "MoveDirectoryResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "dataform.projects.locations.repositories.workspaces.moveFile": + +type ProjectsLocationsRepositoriesWorkspacesMoveFileCall struct { + s *Service + workspace string + movefilerequest *MoveFileRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// MoveFile: Moves a file (inside a Workspace) to a new location. +// +// - workspace: The workspace's name. +func (r *ProjectsLocationsRepositoriesWorkspacesService) MoveFile(workspace string, movefilerequest *MoveFileRequest) *ProjectsLocationsRepositoriesWorkspacesMoveFileCall { + c := &ProjectsLocationsRepositoriesWorkspacesMoveFileCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.workspace = workspace + c.movefilerequest = movefilerequest + 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 *ProjectsLocationsRepositoriesWorkspacesMoveFileCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesWorkspacesMoveFileCall { + 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 *ProjectsLocationsRepositoriesWorkspacesMoveFileCall) Context(ctx context.Context) *ProjectsLocationsRepositoriesWorkspacesMoveFileCall { + 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 *ProjectsLocationsRepositoriesWorkspacesMoveFileCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsRepositoriesWorkspacesMoveFileCall) 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.movefilerequest) + 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/{+workspace}:moveFile") + 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{ + "workspace": c.workspace, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "dataform.projects.locations.repositories.workspaces.moveFile" call. +// Exactly one of *MoveFileResponse or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *MoveFileResponse.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 *ProjectsLocationsRepositoriesWorkspacesMoveFileCall) Do(opts ...googleapi.CallOption) (*MoveFileResponse, 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 := &MoveFileResponse{ + 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": "Moves a file (inside a Workspace) to a new location.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/workspaces/{workspacesId}:moveFile", + // "httpMethod": "POST", + // "id": "dataform.projects.locations.repositories.workspaces.moveFile", + // "parameterOrder": [ + // "workspace" + // ], + // "parameters": { + // "workspace": { + // "description": "Required. The workspace's name.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+workspace}:moveFile", + // "request": { + // "$ref": "MoveFileRequest" + // }, + // "response": { + // "$ref": "MoveFileResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "dataform.projects.locations.repositories.workspaces.pull": + +type ProjectsLocationsRepositoriesWorkspacesPullCall struct { + s *Service + name string + pullgitcommitsrequest *PullGitCommitsRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Pull: Pulls Git commits from the Repository's remote into a +// Workspace. +// +// - name: The workspace's name. +func (r *ProjectsLocationsRepositoriesWorkspacesService) Pull(name string, pullgitcommitsrequest *PullGitCommitsRequest) *ProjectsLocationsRepositoriesWorkspacesPullCall { + c := &ProjectsLocationsRepositoriesWorkspacesPullCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.pullgitcommitsrequest = pullgitcommitsrequest + 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 *ProjectsLocationsRepositoriesWorkspacesPullCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesWorkspacesPullCall { + 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 *ProjectsLocationsRepositoriesWorkspacesPullCall) Context(ctx context.Context) *ProjectsLocationsRepositoriesWorkspacesPullCall { + 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 *ProjectsLocationsRepositoriesWorkspacesPullCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsRepositoriesWorkspacesPullCall) 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.pullgitcommitsrequest) + 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}:pull") + 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.workspaces.pull" 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 *ProjectsLocationsRepositoriesWorkspacesPullCall) 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": "Pulls Git commits from the Repository's remote into a Workspace.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/workspaces/{workspacesId}:pull", + // "httpMethod": "POST", + // "id": "dataform.projects.locations.repositories.workspaces.pull", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The workspace's name.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+name}:pull", + // "request": { + // "$ref": "PullGitCommitsRequest" + // }, + // "response": { + // "$ref": "Empty" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "dataform.projects.locations.repositories.workspaces.push": + +type ProjectsLocationsRepositoriesWorkspacesPushCall struct { + s *Service + name string + pushgitcommitsrequest *PushGitCommitsRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Push: Pushes Git commits from a Workspace to the Repository's remote. +// +// - name: The workspace's name. +func (r *ProjectsLocationsRepositoriesWorkspacesService) Push(name string, pushgitcommitsrequest *PushGitCommitsRequest) *ProjectsLocationsRepositoriesWorkspacesPushCall { + c := &ProjectsLocationsRepositoriesWorkspacesPushCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.pushgitcommitsrequest = pushgitcommitsrequest + 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 *ProjectsLocationsRepositoriesWorkspacesPushCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesWorkspacesPushCall { + 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 *ProjectsLocationsRepositoriesWorkspacesPushCall) Context(ctx context.Context) *ProjectsLocationsRepositoriesWorkspacesPushCall { + 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 *ProjectsLocationsRepositoriesWorkspacesPushCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsRepositoriesWorkspacesPushCall) 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.pushgitcommitsrequest) + 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}:push") + 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.workspaces.push" 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 *ProjectsLocationsRepositoriesWorkspacesPushCall) 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": "Pushes Git commits from a Workspace to the Repository's remote.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/workspaces/{workspacesId}:push", + // "httpMethod": "POST", + // "id": "dataform.projects.locations.repositories.workspaces.push", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The workspace's name.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+name}:push", + // "request": { + // "$ref": "PushGitCommitsRequest" + // }, + // "response": { + // "$ref": "Empty" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "dataform.projects.locations.repositories.workspaces.queryDirectoryContents": + +type ProjectsLocationsRepositoriesWorkspacesQueryDirectoryContentsCall struct { + s *Service + workspace string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// QueryDirectoryContents: Returns the contents of a given Workspace +// directory. +// +// - workspace: The workspace's name. +func (r *ProjectsLocationsRepositoriesWorkspacesService) QueryDirectoryContents(workspace string) *ProjectsLocationsRepositoriesWorkspacesQueryDirectoryContentsCall { + c := &ProjectsLocationsRepositoriesWorkspacesQueryDirectoryContentsCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.workspace = workspace + 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 *ProjectsLocationsRepositoriesWorkspacesQueryDirectoryContentsCall) PageSize(pageSize int64) *ProjectsLocationsRepositoriesWorkspacesQueryDirectoryContentsCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": Page token +// received from a previous `QueryDirectoryContents` call. Provide this +// to retrieve the subsequent page. When paginating, all other +// parameters provided to `QueryDirectoryContents` must match the call +// that provided the page token. +func (c *ProjectsLocationsRepositoriesWorkspacesQueryDirectoryContentsCall) PageToken(pageToken string) *ProjectsLocationsRepositoriesWorkspacesQueryDirectoryContentsCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// Path sets the optional parameter "path": The directory's full path +// including directory name, relative to the workspace root. If left +// unset, the workspace root is used. +func (c *ProjectsLocationsRepositoriesWorkspacesQueryDirectoryContentsCall) Path(path string) *ProjectsLocationsRepositoriesWorkspacesQueryDirectoryContentsCall { + 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 *ProjectsLocationsRepositoriesWorkspacesQueryDirectoryContentsCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesWorkspacesQueryDirectoryContentsCall { + 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 *ProjectsLocationsRepositoriesWorkspacesQueryDirectoryContentsCall) IfNoneMatch(entityTag string) *ProjectsLocationsRepositoriesWorkspacesQueryDirectoryContentsCall { + 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 *ProjectsLocationsRepositoriesWorkspacesQueryDirectoryContentsCall) Context(ctx context.Context) *ProjectsLocationsRepositoriesWorkspacesQueryDirectoryContentsCall { + 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 *ProjectsLocationsRepositoriesWorkspacesQueryDirectoryContentsCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsRepositoriesWorkspacesQueryDirectoryContentsCall) 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/{+workspace}: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{ + "workspace": c.workspace, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "dataform.projects.locations.repositories.workspaces.queryDirectoryContents" call. +// Exactly one of *QueryDirectoryContentsResponse or error will be +// non-nil. Any non-2xx status code is an error. Response headers are in +// either *QueryDirectoryContentsResponse.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 *ProjectsLocationsRepositoriesWorkspacesQueryDirectoryContentsCall) Do(opts ...googleapi.CallOption) (*QueryDirectoryContentsResponse, 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 := &QueryDirectoryContentsResponse{ + 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 Workspace directory.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/workspaces/{workspacesId}:queryDirectoryContents", + // "httpMethod": "GET", + // "id": "dataform.projects.locations.repositories.workspaces.queryDirectoryContents", + // "parameterOrder": [ + // "workspace" + // ], + // "parameters": { + // "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 `QueryDirectoryContents` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `QueryDirectoryContents` 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 the workspace root. If left unset, the workspace root is used.", + // "location": "query", + // "type": "string" + // }, + // "workspace": { + // "description": "Required. The workspace's name.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+workspace}:queryDirectoryContents", + // "response": { + // "$ref": "QueryDirectoryContentsResponse" + // }, + // "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 *ProjectsLocationsRepositoriesWorkspacesQueryDirectoryContentsCall) Pages(ctx context.Context, f func(*QueryDirectoryContentsResponse) 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.workspaces.readFile": + +type ProjectsLocationsRepositoriesWorkspacesReadFileCall struct { + s *Service + workspace string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// ReadFile: Returns the contents of a file (inside a Workspace). +// +// - workspace: The workspace's name. +func (r *ProjectsLocationsRepositoriesWorkspacesService) ReadFile(workspace string) *ProjectsLocationsRepositoriesWorkspacesReadFileCall { + c := &ProjectsLocationsRepositoriesWorkspacesReadFileCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.workspace = workspace + return c +} + +// Path sets the optional parameter "path": Required. The file's full +// path including filename, relative to the workspace root. +func (c *ProjectsLocationsRepositoriesWorkspacesReadFileCall) Path(path string) *ProjectsLocationsRepositoriesWorkspacesReadFileCall { + 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 *ProjectsLocationsRepositoriesWorkspacesReadFileCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesWorkspacesReadFileCall { + 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 *ProjectsLocationsRepositoriesWorkspacesReadFileCall) IfNoneMatch(entityTag string) *ProjectsLocationsRepositoriesWorkspacesReadFileCall { + 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 *ProjectsLocationsRepositoriesWorkspacesReadFileCall) Context(ctx context.Context) *ProjectsLocationsRepositoriesWorkspacesReadFileCall { + 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 *ProjectsLocationsRepositoriesWorkspacesReadFileCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsRepositoriesWorkspacesReadFileCall) 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/{+workspace}: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{ + "workspace": c.workspace, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "dataform.projects.locations.repositories.workspaces.readFile" call. +// Exactly one of *ReadFileResponse or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *ReadFileResponse.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 *ProjectsLocationsRepositoriesWorkspacesReadFileCall) Do(opts ...googleapi.CallOption) (*ReadFileResponse, 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 := &ReadFileResponse{ + 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 Workspace).", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/workspaces/{workspacesId}:readFile", + // "httpMethod": "GET", + // "id": "dataform.projects.locations.repositories.workspaces.readFile", + // "parameterOrder": [ + // "workspace" + // ], + // "parameters": { + // "path": { + // "description": "Required. The file's full path including filename, relative to the workspace root.", + // "location": "query", + // "type": "string" + // }, + // "workspace": { + // "description": "Required. The workspace's name.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+workspace}:readFile", + // "response": { + // "$ref": "ReadFileResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "dataform.projects.locations.repositories.workspaces.removeDirectory": + +type ProjectsLocationsRepositoriesWorkspacesRemoveDirectoryCall struct { + s *Service + workspace string + removedirectoryrequest *RemoveDirectoryRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// RemoveDirectory: Deletes a directory (inside a Workspace) and all of +// its contents. +// +// - workspace: The workspace's name. +func (r *ProjectsLocationsRepositoriesWorkspacesService) RemoveDirectory(workspace string, removedirectoryrequest *RemoveDirectoryRequest) *ProjectsLocationsRepositoriesWorkspacesRemoveDirectoryCall { + c := &ProjectsLocationsRepositoriesWorkspacesRemoveDirectoryCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.workspace = workspace + c.removedirectoryrequest = removedirectoryrequest + 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 *ProjectsLocationsRepositoriesWorkspacesRemoveDirectoryCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesWorkspacesRemoveDirectoryCall { + 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 *ProjectsLocationsRepositoriesWorkspacesRemoveDirectoryCall) Context(ctx context.Context) *ProjectsLocationsRepositoriesWorkspacesRemoveDirectoryCall { + 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 *ProjectsLocationsRepositoriesWorkspacesRemoveDirectoryCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsRepositoriesWorkspacesRemoveDirectoryCall) 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.removedirectoryrequest) + 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/{+workspace}:removeDirectory") + 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{ + "workspace": c.workspace, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "dataform.projects.locations.repositories.workspaces.removeDirectory" 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 *ProjectsLocationsRepositoriesWorkspacesRemoveDirectoryCall) 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": "Deletes a directory (inside a Workspace) and all of its contents.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/workspaces/{workspacesId}:removeDirectory", + // "httpMethod": "POST", + // "id": "dataform.projects.locations.repositories.workspaces.removeDirectory", + // "parameterOrder": [ + // "workspace" + // ], + // "parameters": { + // "workspace": { + // "description": "Required. The workspace's name.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+workspace}:removeDirectory", + // "request": { + // "$ref": "RemoveDirectoryRequest" + // }, + // "response": { + // "$ref": "Empty" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "dataform.projects.locations.repositories.workspaces.removeFile": + +type ProjectsLocationsRepositoriesWorkspacesRemoveFileCall struct { + s *Service + workspace string + removefilerequest *RemoveFileRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// RemoveFile: Deletes a file (inside a Workspace). +// +// - workspace: The workspace's name. +func (r *ProjectsLocationsRepositoriesWorkspacesService) RemoveFile(workspace string, removefilerequest *RemoveFileRequest) *ProjectsLocationsRepositoriesWorkspacesRemoveFileCall { + c := &ProjectsLocationsRepositoriesWorkspacesRemoveFileCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.workspace = workspace + c.removefilerequest = removefilerequest + 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 *ProjectsLocationsRepositoriesWorkspacesRemoveFileCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesWorkspacesRemoveFileCall { + 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 *ProjectsLocationsRepositoriesWorkspacesRemoveFileCall) Context(ctx context.Context) *ProjectsLocationsRepositoriesWorkspacesRemoveFileCall { + 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 *ProjectsLocationsRepositoriesWorkspacesRemoveFileCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsRepositoriesWorkspacesRemoveFileCall) 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.removefilerequest) + 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/{+workspace}:removeFile") + 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{ + "workspace": c.workspace, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "dataform.projects.locations.repositories.workspaces.removeFile" 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 *ProjectsLocationsRepositoriesWorkspacesRemoveFileCall) 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": "Deletes a file (inside a Workspace).", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/workspaces/{workspacesId}:removeFile", + // "httpMethod": "POST", + // "id": "dataform.projects.locations.repositories.workspaces.removeFile", + // "parameterOrder": [ + // "workspace" + // ], + // "parameters": { + // "workspace": { + // "description": "Required. The workspace's name.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+workspace}:removeFile", + // "request": { + // "$ref": "RemoveFileRequest" + // }, + // "response": { + // "$ref": "Empty" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "dataform.projects.locations.repositories.workspaces.reset": + +type ProjectsLocationsRepositoriesWorkspacesResetCall struct { + s *Service + name string + resetworkspacechangesrequest *ResetWorkspaceChangesRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Reset: Performs a Git reset for uncommitted files in a Workspace. +// +// - name: The workspace's name. +func (r *ProjectsLocationsRepositoriesWorkspacesService) Reset(name string, resetworkspacechangesrequest *ResetWorkspaceChangesRequest) *ProjectsLocationsRepositoriesWorkspacesResetCall { + c := &ProjectsLocationsRepositoriesWorkspacesResetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.resetworkspacechangesrequest = resetworkspacechangesrequest + 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 *ProjectsLocationsRepositoriesWorkspacesResetCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesWorkspacesResetCall { + 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 *ProjectsLocationsRepositoriesWorkspacesResetCall) Context(ctx context.Context) *ProjectsLocationsRepositoriesWorkspacesResetCall { + 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 *ProjectsLocationsRepositoriesWorkspacesResetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsRepositoriesWorkspacesResetCall) 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.resetworkspacechangesrequest) + 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}:reset") + 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.workspaces.reset" 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 *ProjectsLocationsRepositoriesWorkspacesResetCall) 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": "Performs a Git reset for uncommitted files in a Workspace.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/workspaces/{workspacesId}:reset", + // "httpMethod": "POST", + // "id": "dataform.projects.locations.repositories.workspaces.reset", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The workspace's name.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+name}:reset", + // "request": { + // "$ref": "ResetWorkspaceChangesRequest" + // }, + // "response": { + // "$ref": "Empty" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "dataform.projects.locations.repositories.workspaces.writeFile": + +type ProjectsLocationsRepositoriesWorkspacesWriteFileCall struct { + s *Service + workspace string + writefilerequest *WriteFileRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// WriteFile: Writes to a file (inside a Workspace). +// +// - workspace: The workspace's name. +func (r *ProjectsLocationsRepositoriesWorkspacesService) WriteFile(workspace string, writefilerequest *WriteFileRequest) *ProjectsLocationsRepositoriesWorkspacesWriteFileCall { + c := &ProjectsLocationsRepositoriesWorkspacesWriteFileCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.workspace = workspace + c.writefilerequest = writefilerequest + 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 *ProjectsLocationsRepositoriesWorkspacesWriteFileCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesWorkspacesWriteFileCall { + 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 *ProjectsLocationsRepositoriesWorkspacesWriteFileCall) Context(ctx context.Context) *ProjectsLocationsRepositoriesWorkspacesWriteFileCall { + 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 *ProjectsLocationsRepositoriesWorkspacesWriteFileCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsRepositoriesWorkspacesWriteFileCall) 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.writefilerequest) + 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/{+workspace}:writeFile") + 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{ + "workspace": c.workspace, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "dataform.projects.locations.repositories.workspaces.writeFile" call. +// Exactly one of *WriteFileResponse or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *WriteFileResponse.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 *ProjectsLocationsRepositoriesWorkspacesWriteFileCall) Do(opts ...googleapi.CallOption) (*WriteFileResponse, 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 := &WriteFileResponse{ + 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": "Writes to a file (inside a Workspace).", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/workspaces/{workspacesId}:writeFile", + // "httpMethod": "POST", + // "id": "dataform.projects.locations.repositories.workspaces.writeFile", + // "parameterOrder": [ + // "workspace" + // ], + // "parameters": { + // "workspace": { + // "description": "Required. The workspace's name.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+workspace}:writeFile", + // "request": { + // "$ref": "WriteFileRequest" + // }, + // "response": { + // "$ref": "WriteFileResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} diff --git a/datapipelines/v1/datapipelines-api.json b/datapipelines/v1/datapipelines-api.json index b184b9b3d90..8610f9b2a04 100644 --- a/datapipelines/v1/datapipelines-api.json +++ b/datapipelines/v1/datapipelines-api.json @@ -108,49 +108,6 @@ "projects": { "resources": { "locations": { - "methods": { - "listPipelines": { - "description": "Lists pipelines. Returns a \"FORBIDDEN\" error if the caller doesn't have permission to access it.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}", - "httpMethod": "GET", - "id": "datapipelines.projects.locations.listPipelines", - "parameterOrder": [ - "parent" - ], - "parameters": { - "filter": { - "description": "An expression for filtering the results of the request. If unspecified, all pipelines will be returned. Multiple filters can be applied and must be comma separated. Fields eligible for filtering are: + `type`: The type of the pipeline (streaming or batch). Allowed values are `ALL`, `BATCH`, and `STREAMING`. + `status`: The activity status of the pipeline. Allowed values are `ALL`, `ACTIVE`, `ARCHIVED`, and `PAUSED`. For example, to limit results to active batch processing pipelines: type:BATCH,status:ACTIVE", - "location": "query", - "type": "string" - }, - "pageSize": { - "description": "The maximum number of entities to return. The service may return fewer than this value, even if there are additional pages. If unspecified, the max limit is yet to be determined by the backend implementation.", - "format": "int32", - "location": "query", - "type": "integer" - }, - "pageToken": { - "description": "A page token, received from a previous `ListPipelines` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListPipelines` must match the call that provided the page token.", - "location": "query", - "type": "string" - }, - "parent": { - "description": "Required. The location name. For example: `projects/PROJECT_ID/locations/LOCATION_ID`.", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1/{+parent}", - "response": { - "$ref": "GoogleCloudDatapipelinesV1ListPipelinesResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - } - }, "resources": { "pipelines": { "methods": { @@ -232,6 +189,47 @@ "https://www.googleapis.com/auth/cloud-platform" ] }, + "list": { + "description": "Lists pipelines. Returns a \"FORBIDDEN\" error if the caller doesn't have permission to access it.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/pipelines", + "httpMethod": "GET", + "id": "datapipelines.projects.locations.pipelines.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "filter": { + "description": "An expression for filtering the results of the request. If unspecified, all pipelines will be returned. Multiple filters can be applied and must be comma separated. Fields eligible for filtering are: + `type`: The type of the pipeline (streaming or batch). Allowed values are `ALL`, `BATCH`, and `STREAMING`. + `status`: The activity status of the pipeline. Allowed values are `ALL`, `ACTIVE`, `ARCHIVED`, and `PAUSED`. For example, to limit results to active batch processing pipelines: type:BATCH,status:ACTIVE", + "location": "query", + "type": "string" + }, + "pageSize": { + "description": "The maximum number of entities to return. The service may return fewer than this value, even if there are additional pages. If unspecified, the max limit is yet to be determined by the backend implementation.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "A page token, received from a previous `ListPipelines` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListPipelines` must match the call that provided the page token.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The location name. For example: `projects/PROJECT_ID/locations/LOCATION_ID`.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/pipelines", + "response": { + "$ref": "GoogleCloudDatapipelinesV1ListPipelinesResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, "patch": { "description": "Updates a pipeline. If successful, the updated Pipeline is returned. Returns `NOT_FOUND` if the pipeline doesn't exist. If UpdatePipeline does not return successfully, you can retry the UpdatePipeline request until you receive a successful response.", "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/pipelines/{pipelinesId}", @@ -371,7 +369,7 @@ } } }, - "revision": "20221204", + "revision": "20221210", "rootUrl": "https://datapipelines.googleapis.com/", "schemas": { "GoogleCloudDatapipelinesV1DataflowJobDetails": { diff --git a/datapipelines/v1/datapipelines-gen.go b/datapipelines/v1/datapipelines-gen.go index b9a7bf37ed1..5f8ce087cd6 100644 --- a/datapipelines/v1/datapipelines-gen.go +++ b/datapipelines/v1/datapipelines-gen.go @@ -1127,228 +1127,6 @@ func (s *GoogleRpcStatus) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// method id "datapipelines.projects.locations.listPipelines": - -type ProjectsLocationsListPipelinesCall struct { - s *Service - parent string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} - -// ListPipelines: Lists pipelines. Returns a "FORBIDDEN" error if the -// caller doesn't have permission to access it. -// -// - parent: The location name. For example: -// `projects/PROJECT_ID/locations/LOCATION_ID`. -func (r *ProjectsLocationsService) ListPipelines(parent string) *ProjectsLocationsListPipelinesCall { - c := &ProjectsLocationsListPipelinesCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - return c -} - -// Filter sets the optional parameter "filter": An expression for -// filtering the results of the request. If unspecified, all pipelines -// will be returned. Multiple filters can be applied and must be comma -// separated. Fields eligible for filtering are: + `type`: The type of -// the pipeline (streaming or batch). Allowed values are `ALL`, `BATCH`, -// and `STREAMING`. + `status`: The activity status of the pipeline. -// Allowed values are `ALL`, `ACTIVE`, `ARCHIVED`, and `PAUSED`. For -// example, to limit results to active batch processing pipelines: -// type:BATCH,status:ACTIVE -func (c *ProjectsLocationsListPipelinesCall) Filter(filter string) *ProjectsLocationsListPipelinesCall { - c.urlParams_.Set("filter", filter) - return c -} - -// PageSize sets the optional parameter "pageSize": The maximum number -// of entities to return. The service may return fewer than this value, -// even if there are additional pages. If unspecified, the max limit is -// yet to be determined by the backend implementation. -func (c *ProjectsLocationsListPipelinesCall) PageSize(pageSize int64) *ProjectsLocationsListPipelinesCall { - c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) - return c -} - -// PageToken sets the optional parameter "pageToken": A page token, -// received from a previous `ListPipelines` call. Provide this to -// retrieve the subsequent page. When paginating, all other parameters -// provided to `ListPipelines` must match the call that provided the -// page token. -func (c *ProjectsLocationsListPipelinesCall) PageToken(pageToken string) *ProjectsLocationsListPipelinesCall { - 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 *ProjectsLocationsListPipelinesCall) Fields(s ...googleapi.Field) *ProjectsLocationsListPipelinesCall { - 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 *ProjectsLocationsListPipelinesCall) IfNoneMatch(entityTag string) *ProjectsLocationsListPipelinesCall { - 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 *ProjectsLocationsListPipelinesCall) Context(ctx context.Context) *ProjectsLocationsListPipelinesCall { - 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 *ProjectsLocationsListPipelinesCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *ProjectsLocationsListPipelinesCall) 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, "v1/{+parent}") - 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 "datapipelines.projects.locations.listPipelines" call. -// Exactly one of *GoogleCloudDatapipelinesV1ListPipelinesResponse or -// error will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudDatapipelinesV1ListPipelinesResponse.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 *ProjectsLocationsListPipelinesCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDatapipelinesV1ListPipelinesResponse, 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 := &GoogleCloudDatapipelinesV1ListPipelinesResponse{ - 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 pipelines. Returns a \"FORBIDDEN\" error if the caller doesn't have permission to access it.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}", - // "httpMethod": "GET", - // "id": "datapipelines.projects.locations.listPipelines", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "filter": { - // "description": "An expression for filtering the results of the request. If unspecified, all pipelines will be returned. Multiple filters can be applied and must be comma separated. Fields eligible for filtering are: + `type`: The type of the pipeline (streaming or batch). Allowed values are `ALL`, `BATCH`, and `STREAMING`. + `status`: The activity status of the pipeline. Allowed values are `ALL`, `ACTIVE`, `ARCHIVED`, and `PAUSED`. For example, to limit results to active batch processing pipelines: type:BATCH,status:ACTIVE", - // "location": "query", - // "type": "string" - // }, - // "pageSize": { - // "description": "The maximum number of entities to return. The service may return fewer than this value, even if there are additional pages. If unspecified, the max limit is yet to be determined by the backend implementation.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "A page token, received from a previous `ListPipelines` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListPipelines` must match the call that provided the page token.", - // "location": "query", - // "type": "string" - // }, - // "parent": { - // "description": "Required. The location name. For example: `projects/PROJECT_ID/locations/LOCATION_ID`.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/{+parent}", - // "response": { - // "$ref": "GoogleCloudDatapipelinesV1ListPipelinesResponse" - // }, - // "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 *ProjectsLocationsListPipelinesCall) Pages(ctx context.Context, f func(*GoogleCloudDatapipelinesV1ListPipelinesResponse) 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 "datapipelines.projects.locations.pipelines.create": type ProjectsLocationsPipelinesCreateCall struct { @@ -1781,6 +1559,228 @@ func (c *ProjectsLocationsPipelinesGetCall) Do(opts ...googleapi.CallOption) (*G } +// method id "datapipelines.projects.locations.pipelines.list": + +type ProjectsLocationsPipelinesListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists pipelines. Returns a "FORBIDDEN" error if the caller +// doesn't have permission to access it. +// +// - parent: The location name. For example: +// `projects/PROJECT_ID/locations/LOCATION_ID`. +func (r *ProjectsLocationsPipelinesService) List(parent string) *ProjectsLocationsPipelinesListCall { + c := &ProjectsLocationsPipelinesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// Filter sets the optional parameter "filter": An expression for +// filtering the results of the request. If unspecified, all pipelines +// will be returned. Multiple filters can be applied and must be comma +// separated. Fields eligible for filtering are: + `type`: The type of +// the pipeline (streaming or batch). Allowed values are `ALL`, `BATCH`, +// and `STREAMING`. + `status`: The activity status of the pipeline. +// Allowed values are `ALL`, `ACTIVE`, `ARCHIVED`, and `PAUSED`. For +// example, to limit results to active batch processing pipelines: +// type:BATCH,status:ACTIVE +func (c *ProjectsLocationsPipelinesListCall) Filter(filter string) *ProjectsLocationsPipelinesListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// PageSize sets the optional parameter "pageSize": The maximum number +// of entities to return. The service may return fewer than this value, +// even if there are additional pages. If unspecified, the max limit is +// yet to be determined by the backend implementation. +func (c *ProjectsLocationsPipelinesListCall) PageSize(pageSize int64) *ProjectsLocationsPipelinesListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": A page token, +// received from a previous `ListPipelines` call. Provide this to +// retrieve the subsequent page. When paginating, all other parameters +// provided to `ListPipelines` must match the call that provided the +// page token. +func (c *ProjectsLocationsPipelinesListCall) PageToken(pageToken string) *ProjectsLocationsPipelinesListCall { + 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 *ProjectsLocationsPipelinesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsPipelinesListCall { + 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 *ProjectsLocationsPipelinesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsPipelinesListCall { + 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 *ProjectsLocationsPipelinesListCall) Context(ctx context.Context) *ProjectsLocationsPipelinesListCall { + 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 *ProjectsLocationsPipelinesListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsPipelinesListCall) 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, "v1/{+parent}/pipelines") + 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 "datapipelines.projects.locations.pipelines.list" call. +// Exactly one of *GoogleCloudDatapipelinesV1ListPipelinesResponse or +// error will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudDatapipelinesV1ListPipelinesResponse.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 *ProjectsLocationsPipelinesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDatapipelinesV1ListPipelinesResponse, 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 := &GoogleCloudDatapipelinesV1ListPipelinesResponse{ + 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 pipelines. Returns a \"FORBIDDEN\" error if the caller doesn't have permission to access it.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/pipelines", + // "httpMethod": "GET", + // "id": "datapipelines.projects.locations.pipelines.list", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "filter": { + // "description": "An expression for filtering the results of the request. If unspecified, all pipelines will be returned. Multiple filters can be applied and must be comma separated. Fields eligible for filtering are: + `type`: The type of the pipeline (streaming or batch). Allowed values are `ALL`, `BATCH`, and `STREAMING`. + `status`: The activity status of the pipeline. Allowed values are `ALL`, `ACTIVE`, `ARCHIVED`, and `PAUSED`. For example, to limit results to active batch processing pipelines: type:BATCH,status:ACTIVE", + // "location": "query", + // "type": "string" + // }, + // "pageSize": { + // "description": "The maximum number of entities to return. The service may return fewer than this value, even if there are additional pages. If unspecified, the max limit is yet to be determined by the backend implementation.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "A page token, received from a previous `ListPipelines` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListPipelines` must match the call that provided the page token.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "Required. The location name. For example: `projects/PROJECT_ID/locations/LOCATION_ID`.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+parent}/pipelines", + // "response": { + // "$ref": "GoogleCloudDatapipelinesV1ListPipelinesResponse" + // }, + // "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 *ProjectsLocationsPipelinesListCall) Pages(ctx context.Context, f func(*GoogleCloudDatapipelinesV1ListPipelinesResponse) 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 "datapipelines.projects.locations.pipelines.patch": type ProjectsLocationsPipelinesPatchCall struct { diff --git a/drive/v3/drive-api.json b/drive/v3/drive-api.json index dfe5ce214f3..8b634f2eed5 100644 --- a/drive/v3/drive-api.json +++ b/drive/v3/drive-api.json @@ -35,7 +35,7 @@ "description": "Manages files in Drive including uploading, downloading, searching, detecting changes, and updating sharing permissions.", "discoveryVersion": "v1", "documentationLink": "https://developers.google.com/drive/", - "etag": "\"uWj2hSb4GVjzdDlAnRd2gbM1ZQ8/i6TQ0TGQtceOw3gUFmDQmrB6DWw\"", + "etag": "\"uWj2hSb4GVjzdDlAnRd2gbM1ZQ8/2TMpck7GTrbcyLtBRwI3Q7B24jA\"", "icons": { "x16": "https://ssl.gstatic.com/docs/doclist/images/drive_icon_16.png", "x32": "https://ssl.gstatic.com/docs/doclist/images/drive_icon_32.png" @@ -228,7 +228,7 @@ }, "spaces": { "default": "drive", - "description": "A comma-separated list of spaces to query within the user corpus. Supported values are 'drive', 'appDataFolder' and 'photos'.", + "description": "A comma-separated list of spaces to query within the corpora. Supported values are 'drive' and 'appDataFolder'.", "location": "query", "type": "string" }, @@ -335,7 +335,7 @@ }, "spaces": { "default": "drive", - "description": "A comma-separated list of spaces to query within the user corpus. Supported values are 'drive', 'appDataFolder' and 'photos'.", + "description": "A comma-separated list of spaces to query within the corpora. Supported values are 'drive' and 'appDataFolder'.", "location": "query", "type": "string" }, @@ -404,7 +404,7 @@ "comments": { "methods": { "create": { - "description": "Creates a new comment on a file.", + "description": "Creates a comment on a file.", "httpMethod": "POST", "id": "drive.comments.create", "parameterOrder": [ @@ -585,7 +585,7 @@ "drives": { "methods": { "create": { - "description": "Creates a new shared drive.", + "description": "Creates a shared drive.", "httpMethod": "POST", "id": "drive.drives.create", "parameterOrder": [ @@ -869,7 +869,7 @@ ] }, "create": { - "description": "Creates a new file.", + "description": "Creates a file.", "httpMethod": "POST", "id": "drive.files.create", "mediaUpload": { @@ -1216,7 +1216,7 @@ }, "spaces": { "default": "drive", - "description": "A comma-separated list of spaces to query within the corpus. Supported values are 'drive' and 'appDataFolder'.", + "description": "A comma-separated list of spaces to query within the corpora. Supported values are 'drive' and 'appDataFolder'.", "location": "query", "type": "string" }, @@ -1796,7 +1796,7 @@ "replies": { "methods": { "create": { - "description": "Creates a new reply to a comment.", + "description": "Creates a reply to a comment.", "httpMethod": "POST", "id": "drive.replies.create", "parameterOrder": [ @@ -2312,7 +2312,7 @@ } } }, - "revision": "20221023", + "revision": "20221219", "rootUrl": "https://www.googleapis.com/", "schemas": { "About": { diff --git a/drive/v3/drive-gen.go b/drive/v3/drive-gen.go index 13187f5a66c..6ef6df23c7a 100644 --- a/drive/v3/drive-gen.go +++ b/drive/v3/drive-gen.go @@ -3814,8 +3814,8 @@ func (c *ChangesListCall) RestrictToMyDrive(restrictToMyDrive bool) *ChangesList } // Spaces sets the optional parameter "spaces": A comma-separated list -// of spaces to query within the user corpus. Supported values are -// 'drive', 'appDataFolder' and 'photos'. +// of spaces to query within the corpora. Supported values are 'drive' +// and 'appDataFolder'. func (c *ChangesListCall) Spaces(spaces string) *ChangesListCall { c.urlParams_.Set("spaces", spaces) return c @@ -4008,7 +4008,7 @@ func (c *ChangesListCall) Do(opts ...googleapi.CallOption) (*ChangeList, error) // }, // "spaces": { // "default": "drive", - // "description": "A comma-separated list of spaces to query within the user corpus. Supported values are 'drive', 'appDataFolder' and 'photos'.", + // "description": "A comma-separated list of spaces to query within the corpora. Supported values are 'drive' and 'appDataFolder'.", // "location": "query", // "type": "string" // }, @@ -4149,8 +4149,8 @@ func (c *ChangesWatchCall) RestrictToMyDrive(restrictToMyDrive bool) *ChangesWat } // Spaces sets the optional parameter "spaces": A comma-separated list -// of spaces to query within the user corpus. Supported values are -// 'drive', 'appDataFolder' and 'photos'. +// of spaces to query within the corpora. Supported values are 'drive' +// and 'appDataFolder'. func (c *ChangesWatchCall) Spaces(spaces string) *ChangesWatchCall { c.urlParams_.Set("spaces", spaces) return c @@ -4335,7 +4335,7 @@ func (c *ChangesWatchCall) Do(opts ...googleapi.CallOption) (*Channel, error) { // }, // "spaces": { // "default": "drive", - // "description": "A comma-separated list of spaces to query within the user corpus. Supported values are 'drive', 'appDataFolder' and 'photos'.", + // "description": "A comma-separated list of spaces to query within the corpora. Supported values are 'drive' and 'appDataFolder'.", // "location": "query", // "type": "string" // }, @@ -4491,7 +4491,7 @@ type CommentsCreateCall struct { header_ http.Header } -// Create: Creates a new comment on a file. +// Create: Creates a comment on a file. // // - fileId: The ID of the file. func (r *CommentsService) Create(fileId string, comment *Comment) *CommentsCreateCall { @@ -4592,7 +4592,7 @@ func (c *CommentsCreateCall) Do(opts ...googleapi.CallOption) (*Comment, error) } return ret, nil // { - // "description": "Creates a new comment on a file.", + // "description": "Creates a comment on a file.", // "httpMethod": "POST", // "id": "drive.comments.create", // "parameterOrder": [ @@ -5291,7 +5291,7 @@ type DrivesCreateCall struct { header_ http.Header } -// Create: Creates a new shared drive. +// Create: Creates a shared drive. // // - requestId: An ID, such as a random UUID, which uniquely identifies // this user's request for idempotent creation of a shared drive. A @@ -5394,7 +5394,7 @@ func (c *DrivesCreateCall) Do(opts ...googleapi.CallOption) (*Drive, error) { } return ret, nil // { - // "description": "Creates a new shared drive.", + // "description": "Creates a shared drive.", // "httpMethod": "POST", // "id": "drive.drives.create", // "parameterOrder": [ @@ -6603,7 +6603,7 @@ type FilesCreateCall struct { header_ http.Header } -// Create: Creates a new file. +// Create: Creates a file. func (r *FilesService) Create(file *File) *FilesCreateCall { c := &FilesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.file = file @@ -6841,7 +6841,7 @@ func (c *FilesCreateCall) Do(opts ...googleapi.CallOption) (*File, error) { } return ret, nil // { - // "description": "Creates a new file.", + // "description": "Creates a file.", // "httpMethod": "POST", // "id": "drive.files.create", // "mediaUpload": { @@ -7863,7 +7863,7 @@ func (c *FilesListCall) Q(q string) *FilesListCall { } // Spaces sets the optional parameter "spaces": A comma-separated list -// of spaces to query within the corpus. Supported values are 'drive' +// of spaces to query within the corpora. Supported values are 'drive' // and 'appDataFolder'. func (c *FilesListCall) Spaces(spaces string) *FilesListCall { c.urlParams_.Set("spaces", spaces) @@ -8063,7 +8063,7 @@ func (c *FilesListCall) Do(opts ...googleapi.CallOption) (*FileList, error) { // }, // "spaces": { // "default": "drive", - // "description": "A comma-separated list of spaces to query within the corpus. Supported values are 'drive' and 'appDataFolder'.", + // "description": "A comma-separated list of spaces to query within the corpora. Supported values are 'drive' and 'appDataFolder'.", // "location": "query", // "type": "string" // }, @@ -10186,7 +10186,7 @@ type RepliesCreateCall struct { header_ http.Header } -// Create: Creates a new reply to a comment. +// Create: Creates a reply to a comment. // // - commentId: The ID of the comment. // - fileId: The ID of the file. @@ -10290,7 +10290,7 @@ func (c *RepliesCreateCall) Do(opts ...googleapi.CallOption) (*Reply, error) { } return ret, nil // { - // "description": "Creates a new reply to a comment.", + // "description": "Creates a reply to a comment.", // "httpMethod": "POST", // "id": "drive.replies.create", // "parameterOrder": [ diff --git a/driveactivity/v2/driveactivity-api.json b/driveactivity/v2/driveactivity-api.json index b5a0641e604..24ca0055749 100644 --- a/driveactivity/v2/driveactivity-api.json +++ b/driveactivity/v2/driveactivity-api.json @@ -132,7 +132,7 @@ } } }, - "revision": "20220926", + "revision": "20221220", "rootUrl": "https://driveactivity.googleapis.com/", "schemas": { "Action": { @@ -1264,7 +1264,7 @@ "type": "object" }, "Target": { - "description": "Information about the target of activity.", + "description": "Information about the target of activity. For more information on how activity history is shared with users, see [Activity history visibility](https://developers.google.com/drive/activity/v2#activityhistory).", "id": "Target", "properties": { "drive": { diff --git a/driveactivity/v2/driveactivity-gen.go b/driveactivity/v2/driveactivity-gen.go index acaf70fc220..738e8ec8960 100644 --- a/driveactivity/v2/driveactivity-gen.go +++ b/driveactivity/v2/driveactivity-gen.go @@ -1936,7 +1936,10 @@ func (s *SystemEvent) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// Target: Information about the target of activity. +// Target: Information about the target of activity. For more +// information on how activity history is shared with users, see +// Activity history visibility +// (https://developers.google.com/drive/activity/v2#activityhistory). type Target struct { // Drive: The target is a shared drive. Drive *Drive `json:"drive,omitempty"` diff --git a/firebase/v1beta1/firebase-api.json b/firebase/v1beta1/firebase-api.json index dad52c71400..a6da5029874 100644 --- a/firebase/v1beta1/firebase-api.json +++ b/firebase/v1beta1/firebase-api.json @@ -433,7 +433,7 @@ ], "parameters": { "filter": { - "description": "A query string compatible with Google's [AIP-160](https://google.aip.dev/160) standard. Use any of the following fields in a query: * [`app_id`](../projects.apps#FirebaseAppInfo.FIELDS.app_id) * [`namespace`](../projects.apps#FirebaseAppInfo.FIELDS.namespace) * [`platform`](../projects.apps#FirebaseAppInfo.FIELDS.platform) We also support the following \"virtual\" fields (fields which are not actually part of the returned resource object, but can be queried as if they are pre-populated with specific values): * `sha1_hash` or `sha1_hashes`: This field is considered to be a repeated `string` field, populated with the list of all SHA-1 certificate fingerprints registered with the app. This list is empty if the app is not an Android app. * `sha256_hash` or `sha256_hashes`: This field is considered to be a repeated `string` field, populated with the list of all SHA-256 certificate fingerprints registered with the app. This list is empty if the app is not an Android app. * `app_store_id`: This field is considered to be a singular `string` field, populated with the Apple App Store ID registered with the app. This field is empty if the app is not an iOS app. * `team_id`: This field is considered to be a singular `string` field, populated with the Apple team ID registered with the app. This field is empty if the app is not an iOS app.", + "description": "A query string compatible with Google's [AIP-160 standard](https://google.aip.dev/160). Use any of the following fields in a query: * [`app_id`](../projects/searchApps#FirebaseAppInfo.FIELDS.app_id) * [`namespace`](../projects/searchApps#FirebaseAppInfo.FIELDS.namespace) * [`platform`](../projects/searchApps#FirebaseAppInfo.FIELDS.platform) This query also supports the following \"virtual\" fields. These are fields which are not actually part of the returned resource object, but they can be queried as if they are pre-populated with specific values. * `sha1_hash` or `sha1_hashes`: This field is considered to be a _repeated_ `string` field, populated with the list of all SHA-1 certificate fingerprints registered with the AndroidApp. This list is empty if the App is not an `AndroidApp`. * `sha256_hash` or `sha256_hashes`: This field is considered to be a _repeated_ `string` field, populated with the list of all SHA-256 certificate fingerprints registered with the AndroidApp. This list is empty if the App is not an `AndroidApp`. * `app_store_id`: This field is considered to be a _singular_ `string` field, populated with the Apple App Store ID registered with the IosApp. This field is empty if the App is not an `IosApp`. * `team_id`: This field is considered to be a _singular_ `string` field, populated with the Apple team ID registered with the IosApp. This field is empty if the App is not an `IosApp`.", "location": "query", "type": "string" }, @@ -1320,7 +1320,7 @@ } } }, - "revision": "20221012", + "revision": "20221221", "rootUrl": "https://firebase.googleapis.com/", "schemas": { "AddFirebaseRequest": { @@ -1424,6 +1424,10 @@ "description": "The user-assigned display name for the `AndroidApp`.", "type": "string" }, + "etag": { + "description": "This checksum is computed by the server based on the value of other fields, and it may be sent with update requests to ensure the client has an up-to-date value before proceeding. Learn more about `etag` in Google's [AIP-154 standard](https://google.aip.dev/154#declarative-friendly-resources). This etag is strongly validated.", + "type": "string" + }, "name": { "description": "The resource name of the AndroidApp, in the format: projects/ PROJECT_IDENTIFIER/androidApps/APP_ID * PROJECT_IDENTIFIER: the parent Project's [`ProjectNumber`](../projects#FirebaseProject.FIELDS.project_number) ***(recommended)*** or its [`ProjectId`](../projects#FirebaseProject.FIELDS.project_id). Learn more about using project identifiers in Google's [AIP 2510 standard](https://google.aip.dev/cloud/2510). Note that the value for PROJECT_IDENTIFIER in any response body will be the `ProjectId`. * APP_ID: the globally unique, Firebase-assigned identifier for the App (see [`appId`](../projects.androidApps#AndroidApp.FIELDS.app_id)).", "type": "string" @@ -1596,7 +1600,7 @@ "additionalProperties": { "type": "string" }, - "description": "Set of user-defined annotations for the FirebaseProject as per [AIP-128](https://google.aip.dev/128#annotations). These annotations are intended solely for developers and client-side tools Firebase services will not mutate this annotation set.", + "description": "A set of user-defined annotations for the FirebaseProject. Learn more about annotations in Google's [AIP-128 standard](https://google.aip.dev/128#annotations). These annotations are intended solely for developers and client-side tools. Firebase services will not mutate this annotations set.", "type": "object" }, "displayName": { @@ -1604,7 +1608,7 @@ "type": "string" }, "etag": { - "description": "This checksum is computed by the server based on the value of other fields, and may be sent on update requests to ensure the client has an up-to-date value before proceeding. [AIP-154](https://google.aip.dev/154#declarative-friendly-resources). This etag is strongly validated.", + "description": "This checksum is computed by the server based on the value of other fields, and it may be sent with update requests to ensure the client has an up-to-date value before proceeding. Learn more about `etag` in Google's [AIP-154 standard](https://google.aip.dev/154#declarative-friendly-resources). This etag is strongly validated.", "type": "string" }, "name": { @@ -1670,6 +1674,10 @@ "description": "The user-assigned display name for the `IosApp`.", "type": "string" }, + "etag": { + "description": "This checksum is computed by the server based on the value of other fields, and it may be sent with update requests to ensure the client has an up-to-date value before proceeding. Learn more about `etag` in Google's [AIP-154 standard](https://google.aip.dev/154#declarative-friendly-resources). This etag is strongly validated.", + "type": "string" + }, "name": { "description": "The resource name of the IosApp, in the format: projects/PROJECT_IDENTIFIER /iosApps/APP_ID * PROJECT_IDENTIFIER: the parent Project's [`ProjectNumber`](../projects#FirebaseProject.FIELDS.project_number) ***(recommended)*** or its [`ProjectId`](../projects#FirebaseProject.FIELDS.project_id). Learn more about using project identifiers in Google's [AIP 2510 standard](https://google.aip.dev/cloud/2510). Note that the value for PROJECT_IDENTIFIER in any response body will be the `ProjectId`. * APP_ID: the globally unique, Firebase-assigned identifier for the App (see [`appId`](../projects.iosApps#IosApp.FIELDS.app_id)).", "type": "string" @@ -1954,7 +1962,7 @@ "type": "boolean" }, "etag": { - "description": "Checksum provided in the AndroidApp entity, which if provided ensures the client has an up-to-date value before proceeding.", + "description": "Checksum provided in the AndroidApp resource. If provided, this checksum ensures that the client has an up-to-date value before proceeding.", "type": "string" }, "immediate": { @@ -1976,7 +1984,7 @@ "type": "boolean" }, "etag": { - "description": "Checksum provided in the IosApp entity, which if provided ensures the client has an up-to-date value before proceeding.", + "description": "Checksum provided in the IosApp resource. If provided, this checksum ensures that the client has an up-to-date value before proceeding.", "type": "string" }, "immediate": { @@ -1998,7 +2006,7 @@ "type": "boolean" }, "etag": { - "description": "Checksum provided in the WebApp entity, which if provided ensures the client has an up-to-date value before proceeding.", + "description": "Checksum provided in the WebApp resource. If provided, this checksum ensures that the client has an up-to-date value before proceeding.", "type": "string" }, "immediate": { @@ -2138,7 +2146,7 @@ "id": "UndeleteAndroidAppRequest", "properties": { "etag": { - "description": "Checksum provided in the AndroidApp entity, which if provided ensures the client has an up-to-date value before proceeding.", + "description": "Checksum provided in the AndroidApp resource. If provided, this checksum ensures that the client has an up-to-date value before proceeding.", "type": "string" }, "validateOnly": { @@ -2152,7 +2160,7 @@ "id": "UndeleteIosAppRequest", "properties": { "etag": { - "description": "Checksum provided in the IosApp entity, which if provided ensures the client has an up-to-date value before proceeding.", + "description": "Checksum provided in the IosApp resource. If provided, this checksum ensures that the client has an up-to-date value before proceeding.", "type": "string" }, "validateOnly": { @@ -2166,7 +2174,7 @@ "id": "UndeleteWebAppRequest", "properties": { "etag": { - "description": "Checksum provided in the WebApp entity, which if provided ensures the client has an up-to-date value before proceeding.", + "description": "Checksum provided in the WebApp resource. If provided, this checksum ensures that the client has an up-to-date value before proceeding.", "type": "string" }, "validateOnly": { @@ -2200,6 +2208,10 @@ "description": "The user-assigned display name for the `WebApp`.", "type": "string" }, + "etag": { + "description": "This checksum is computed by the server based on the value of other fields, and it may be sent with update requests to ensure the client has an up-to-date value before proceeding. Learn more about `etag` in Google's [AIP-154 standard](https://google.aip.dev/154#declarative-friendly-resources). This etag is strongly validated.", + "type": "string" + }, "name": { "description": "The resource name of the WebApp, in the format: projects/PROJECT_IDENTIFIER /webApps/APP_ID * PROJECT_IDENTIFIER: the parent Project's [`ProjectNumber`](../projects#FirebaseProject.FIELDS.project_number) ***(recommended)*** or its [`ProjectId`](../projects#FirebaseProject.FIELDS.project_id). Learn more about using project identifiers in Google's [AIP 2510 standard](https://google.aip.dev/cloud/2510). Note that the value for PROJECT_IDENTIFIER in any response body will be the `ProjectId`. * APP_ID: the globally unique, Firebase-assigned identifier for the App (see [`appId`](../projects.webApps#WebApp.FIELDS.app_id)).", "type": "string" diff --git a/firebase/v1beta1/firebase-gen.go b/firebase/v1beta1/firebase-gen.go index 0df12cb90b0..7de35c029e1 100644 --- a/firebase/v1beta1/firebase-gen.go +++ b/firebase/v1beta1/firebase-gen.go @@ -494,6 +494,14 @@ type AndroidApp struct { // DisplayName: The user-assigned display name for the `AndroidApp`. DisplayName string `json:"displayName,omitempty"` + // Etag: This checksum is computed by the server based on the value of + // other fields, and it may be sent with update requests to ensure the + // client has an up-to-date value before proceeding. Learn more about + // `etag` in Google's AIP-154 standard + // (https://google.aip.dev/154#declarative-friendly-resources). This + // etag is strongly validated. + Etag string `json:"etag,omitempty"` + // Name: The resource name of the AndroidApp, in the format: projects/ // PROJECT_IDENTIFIER/androidApps/APP_ID * PROJECT_IDENTIFIER: the // parent Project's `ProjectNumber` @@ -802,18 +810,20 @@ func (s *FirebaseAppInfo) MarshalJSON() ([]byte, error) { // has the same underlying GCP identifiers (`projectNumber` and // `projectId`). This allows for easy interop with Google APIs. type FirebaseProject struct { - // Annotations: Set of user-defined annotations for the FirebaseProject - // as per AIP-128 (https://google.aip.dev/128#annotations). These - // annotations are intended solely for developers and client-side tools - // Firebase services will not mutate this annotation set. + // Annotations: A set of user-defined annotations for the + // FirebaseProject. Learn more about annotations in Google's AIP-128 + // standard (https://google.aip.dev/128#annotations). These annotations + // are intended solely for developers and client-side tools. Firebase + // services will not mutate this annotations set. Annotations map[string]string `json:"annotations,omitempty"` // DisplayName: The user-assigned display name of the Project. DisplayName string `json:"displayName,omitempty"` // Etag: This checksum is computed by the server based on the value of - // other fields, and may be sent on update requests to ensure the client - // has an up-to-date value before proceeding. AIP-154 + // other fields, and it may be sent with update requests to ensure the + // client has an up-to-date value before proceeding. Learn more about + // `etag` in Google's AIP-154 standard // (https://google.aip.dev/154#declarative-friendly-resources). This // etag is strongly validated. Etag string `json:"etag,omitempty"` @@ -916,6 +926,14 @@ type IosApp struct { // DisplayName: The user-assigned display name for the `IosApp`. DisplayName string `json:"displayName,omitempty"` + // Etag: This checksum is computed by the server based on the value of + // other fields, and it may be sent with update requests to ensure the + // client has an up-to-date value before proceeding. Learn more about + // `etag` in Google's AIP-154 standard + // (https://google.aip.dev/154#declarative-friendly-resources). This + // etag is strongly validated. + Etag string `json:"etag,omitempty"` + // Name: The resource name of the IosApp, in the format: // projects/PROJECT_IDENTIFIER /iosApps/APP_ID * PROJECT_IDENTIFIER: the // parent Project's `ProjectNumber` @@ -1499,8 +1517,9 @@ type RemoveAndroidAppRequest struct { // will succeed but no action will be taken on the server. AllowMissing bool `json:"allowMissing,omitempty"` - // Etag: Checksum provided in the AndroidApp entity, which if provided - // ensures the client has an up-to-date value before proceeding. + // Etag: Checksum provided in the AndroidApp resource. If provided, this + // checksum ensures that the client has an up-to-date value before + // proceeding. Etag string `json:"etag,omitempty"` // Immediate: Determines whether to _immediately_ delete the App. If set @@ -1542,8 +1561,9 @@ type RemoveIosAppRequest struct { // will succeed but no action will be taken on the server. AllowMissing bool `json:"allowMissing,omitempty"` - // Etag: Checksum provided in the IosApp entity, which if provided - // ensures the client has an up-to-date value before proceeding. + // Etag: Checksum provided in the IosApp resource. If provided, this + // checksum ensures that the client has an up-to-date value before + // proceeding. Etag string `json:"etag,omitempty"` // Immediate: Determines whether to _immediately_ delete the App. If set @@ -1585,8 +1605,9 @@ type RemoveWebAppRequest struct { // will succeed but no action will be taken on the server. AllowMissing bool `json:"allowMissing,omitempty"` - // Etag: Checksum provided in the WebApp entity, which if provided - // ensures the client has an up-to-date value before proceeding. + // Etag: Checksum provided in the WebApp resource. If provided, this + // checksum ensures that the client has an up-to-date value before + // proceeding. Etag string `json:"etag,omitempty"` // Immediate: Determines whether to _immediately_ delete the App. If set @@ -1857,8 +1878,9 @@ func (s *StreamMapping) MarshalJSON() ([]byte, error) { } type UndeleteAndroidAppRequest struct { - // Etag: Checksum provided in the AndroidApp entity, which if provided - // ensures the client has an up-to-date value before proceeding. + // Etag: Checksum provided in the AndroidApp resource. If provided, this + // checksum ensures that the client has an up-to-date value before + // proceeding. Etag string `json:"etag,omitempty"` // ValidateOnly: If set to true, the request is only validated. The App @@ -1889,8 +1911,9 @@ func (s *UndeleteAndroidAppRequest) MarshalJSON() ([]byte, error) { } type UndeleteIosAppRequest struct { - // Etag: Checksum provided in the IosApp entity, which if provided - // ensures the client has an up-to-date value before proceeding. + // Etag: Checksum provided in the IosApp resource. If provided, this + // checksum ensures that the client has an up-to-date value before + // proceeding. Etag string `json:"etag,omitempty"` // ValidateOnly: If set to true, the request is only validated. The App @@ -1921,8 +1944,9 @@ func (s *UndeleteIosAppRequest) MarshalJSON() ([]byte, error) { } type UndeleteWebAppRequest struct { - // Etag: Checksum provided in the WebApp entity, which if provided - // ensures the client has an up-to-date value before proceeding. + // Etag: Checksum provided in the WebApp resource. If provided, this + // checksum ensures that the client has an up-to-date value before + // proceeding. Etag string `json:"etag,omitempty"` // ValidateOnly: If set to true, the request is only validated. The App @@ -1984,6 +2008,14 @@ type WebApp struct { // DisplayName: The user-assigned display name for the `WebApp`. DisplayName string `json:"displayName,omitempty"` + // Etag: This checksum is computed by the server based on the value of + // other fields, and it may be sent with update requests to ensure the + // client has an up-to-date value before proceeding. Learn more about + // `etag` in Google's AIP-154 standard + // (https://google.aip.dev/154#declarative-friendly-resources). This + // etag is strongly validated. + Etag string `json:"etag,omitempty"` + // Name: The resource name of the WebApp, in the format: // projects/PROJECT_IDENTIFIER /webApps/APP_ID * PROJECT_IDENTIFIER: the // parent Project's `ProjectNumber` @@ -3858,26 +3890,29 @@ func (r *ProjectsService) SearchApps(parent string) *ProjectsSearchAppsCall { } // Filter sets the optional parameter "filter": A query string -// compatible with Google's AIP-160 (https://google.aip.dev/160) -// standard. Use any of the following fields in a query: * `app_id` -// (../projects.apps#FirebaseAppInfo.FIELDS.app_id) * `namespace` -// (../projects.apps#FirebaseAppInfo.FIELDS.namespace) * `platform` -// (../projects.apps#FirebaseAppInfo.FIELDS.platform) We also support -// the following "virtual" fields (fields which are not actually part of -// the returned resource object, but can be queried as if they are -// pre-populated with specific values): * `sha1_hash` or `sha1_hashes`: -// This field is considered to be a repeated `string` field, populated -// with the list of all SHA-1 certificate fingerprints registered with -// the app. This list is empty if the app is not an Android app. * -// `sha256_hash` or `sha256_hashes`: This field is considered to be a -// repeated `string` field, populated with the list of all SHA-256 -// certificate fingerprints registered with the app. This list is empty -// if the app is not an Android app. * `app_store_id`: This field is -// considered to be a singular `string` field, populated with the Apple -// App Store ID registered with the app. This field is empty if the app -// is not an iOS app. * `team_id`: This field is considered to be a -// singular `string` field, populated with the Apple team ID registered -// with the app. This field is empty if the app is not an iOS app. +// compatible with Google's AIP-160 standard +// (https://google.aip.dev/160). Use any of the following fields in a +// query: * `app_id` +// (../projects/searchApps#FirebaseAppInfo.FIELDS.app_id) * `namespace` +// (../projects/searchApps#FirebaseAppInfo.FIELDS.namespace) * +// `platform` (../projects/searchApps#FirebaseAppInfo.FIELDS.platform) +// This query also supports the following "virtual" fields. These are +// fields which are not actually part of the returned resource object, +// but they can be queried as if they are pre-populated with specific +// values. * `sha1_hash` or `sha1_hashes`: This field is considered to +// be a _repeated_ `string` field, populated with the list of all SHA-1 +// certificate fingerprints registered with the AndroidApp. This list is +// empty if the App is not an `AndroidApp`. * `sha256_hash` or +// `sha256_hashes`: This field is considered to be a _repeated_ `string` +// field, populated with the list of all SHA-256 certificate +// fingerprints registered with the AndroidApp. This list is empty if +// the App is not an `AndroidApp`. * `app_store_id`: This field is +// considered to be a _singular_ `string` field, populated with the +// Apple App Store ID registered with the IosApp. This field is empty if +// the App is not an `IosApp`. * `team_id`: This field is considered to +// be a _singular_ `string` field, populated with the Apple team ID +// registered with the IosApp. This field is empty if the App is not an +// `IosApp`. func (c *ProjectsSearchAppsCall) Filter(filter string) *ProjectsSearchAppsCall { c.urlParams_.Set("filter", filter) return c @@ -4017,7 +4052,7 @@ func (c *ProjectsSearchAppsCall) Do(opts ...googleapi.CallOption) (*SearchFireba // ], // "parameters": { // "filter": { - // "description": "A query string compatible with Google's [AIP-160](https://google.aip.dev/160) standard. Use any of the following fields in a query: * [`app_id`](../projects.apps#FirebaseAppInfo.FIELDS.app_id) * [`namespace`](../projects.apps#FirebaseAppInfo.FIELDS.namespace) * [`platform`](../projects.apps#FirebaseAppInfo.FIELDS.platform) We also support the following \"virtual\" fields (fields which are not actually part of the returned resource object, but can be queried as if they are pre-populated with specific values): * `sha1_hash` or `sha1_hashes`: This field is considered to be a repeated `string` field, populated with the list of all SHA-1 certificate fingerprints registered with the app. This list is empty if the app is not an Android app. * `sha256_hash` or `sha256_hashes`: This field is considered to be a repeated `string` field, populated with the list of all SHA-256 certificate fingerprints registered with the app. This list is empty if the app is not an Android app. * `app_store_id`: This field is considered to be a singular `string` field, populated with the Apple App Store ID registered with the app. This field is empty if the app is not an iOS app. * `team_id`: This field is considered to be a singular `string` field, populated with the Apple team ID registered with the app. This field is empty if the app is not an iOS app.", + // "description": "A query string compatible with Google's [AIP-160 standard](https://google.aip.dev/160). Use any of the following fields in a query: * [`app_id`](../projects/searchApps#FirebaseAppInfo.FIELDS.app_id) * [`namespace`](../projects/searchApps#FirebaseAppInfo.FIELDS.namespace) * [`platform`](../projects/searchApps#FirebaseAppInfo.FIELDS.platform) This query also supports the following \"virtual\" fields. These are fields which are not actually part of the returned resource object, but they can be queried as if they are pre-populated with specific values. * `sha1_hash` or `sha1_hashes`: This field is considered to be a _repeated_ `string` field, populated with the list of all SHA-1 certificate fingerprints registered with the AndroidApp. This list is empty if the App is not an `AndroidApp`. * `sha256_hash` or `sha256_hashes`: This field is considered to be a _repeated_ `string` field, populated with the list of all SHA-256 certificate fingerprints registered with the AndroidApp. This list is empty if the App is not an `AndroidApp`. * `app_store_id`: This field is considered to be a _singular_ `string` field, populated with the Apple App Store ID registered with the IosApp. This field is empty if the App is not an `IosApp`. * `team_id`: This field is considered to be a _singular_ `string` field, populated with the Apple team ID registered with the IosApp. This field is empty if the App is not an `IosApp`.", // "location": "query", // "type": "string" // }, diff --git a/firebasedatabase/v1beta/firebasedatabase-api.json b/firebasedatabase/v1beta/firebasedatabase-api.json index a2d87b2c41b..7c48d5afe37 100644 --- a/firebasedatabase/v1beta/firebasedatabase-api.json +++ b/firebasedatabase/v1beta/firebasedatabase-api.json @@ -21,7 +21,7 @@ "baseUrl": "https://firebasedatabase.googleapis.com/", "batchPath": "batch", "canonicalName": "Firebase Realtime Database", - "description": "The Firebase Realtime Database Management API enables programmatic provisioning and management of Realtime Database instances.", + "description": "The Firebase Realtime Database API enables programmatic provisioning and management of Realtime Database instances.", "discoveryVersion": "v1", "documentationLink": "https://firebase.google.com/docs/reference/rest/database/database-management/rest/", "fullyEncodeReservedExpansion": true, @@ -351,7 +351,7 @@ } } }, - "revision": "20221114", + "revision": "20221221", "rootUrl": "https://firebasedatabase.googleapis.com/", "schemas": { "DatabaseInstance": { diff --git a/gmail/v1/gmail-api.json b/gmail/v1/gmail-api.json index 8784e608743..50fae143316 100644 --- a/gmail/v1/gmail-api.json +++ b/gmail/v1/gmail-api.json @@ -1774,7 +1774,7 @@ ] }, "patch": { - "description": "Associates a different key pair with an existing client-side encryption identity. The updated key pair must validate against Google's [S/MIME certificate profiles](https://support.google.com/a/answer/7300887?hl=en). [Beta](https://workspace.google.com/terms/service-terms/index.html).", + "description": "Associates a different key pair with an existing client-side encryption identity. The updated key pair must validate against Google's [S/MIME certificate profiles](https://support.google.com/a/answer/7300887). [Beta](https://workspace.google.com/terms/service-terms/index.html).", "flatPath": "gmail/v1/users/{userId}/settings/cse/identities/{emailAddress}", "httpMethod": "PATCH", "id": "gmail.users.settings.cse.identities.patch", @@ -3077,7 +3077,7 @@ } } }, - "revision": "20221212", + "revision": "20221219", "rootUrl": "https://gmail.googleapis.com/", "schemas": { "AutoForwarding": { diff --git a/gmail/v1/gmail-gen.go b/gmail/v1/gmail-gen.go index 6de3bc5ed22..01decdbc1b6 100644 --- a/gmail/v1/gmail-gen.go +++ b/gmail/v1/gmail-gen.go @@ -9771,7 +9771,7 @@ type UsersSettingsCseIdentitiesPatchCall struct { // Patch: Associates a different key pair with an existing client-side // encryption identity. The updated key pair must validate against // Google's S/MIME certificate profiles -// (https://support.google.com/a/answer/7300887?hl=en). Beta +// (https://support.google.com/a/answer/7300887). Beta // (https://workspace.google.com/terms/service-terms/index.html). // // - emailAddress: The email address of the client-side encryption @@ -9878,7 +9878,7 @@ func (c *UsersSettingsCseIdentitiesPatchCall) Do(opts ...googleapi.CallOption) ( } return ret, nil // { - // "description": "Associates a different key pair with an existing client-side encryption identity. The updated key pair must validate against Google's [S/MIME certificate profiles](https://support.google.com/a/answer/7300887?hl=en). [Beta](https://workspace.google.com/terms/service-terms/index.html).", + // "description": "Associates a different key pair with an existing client-side encryption identity. The updated key pair must validate against Google's [S/MIME certificate profiles](https://support.google.com/a/answer/7300887). [Beta](https://workspace.google.com/terms/service-terms/index.html).", // "flatPath": "gmail/v1/users/{userId}/settings/cse/identities/{emailAddress}", // "httpMethod": "PATCH", // "id": "gmail.users.settings.cse.identities.patch", diff --git a/integrations/v1alpha/integrations-api.json b/integrations/v1alpha/integrations-api.json index ae88e37ab82..4a78532782f 100644 --- a/integrations/v1alpha/integrations-api.json +++ b/integrations/v1alpha/integrations-api.json @@ -3308,7 +3308,7 @@ } } }, - "revision": "20221122", + "revision": "20221220", "rootUrl": "https://integrations.googleapis.com/", "schemas": { "CrmlogErrorCode": { @@ -5810,6 +5810,9 @@ "resolvedBy": { "type": "string" }, + "resolvedByCpi": { + "type": "string" + }, "timestamp": { "format": "google-datetime", "type": "string" @@ -8042,7 +8045,7 @@ }, "nodeConfig": { "$ref": "GoogleCloudConnectorsV1NodeConfig", - "description": "Optional. Configuration for the connection." + "description": "Optional. Node configuration for the connection." }, "serviceAccount": { "description": "Optional. Service account needed for runtime plane to access GCP resources.", @@ -8161,7 +8164,7 @@ "type": "object" }, "GoogleCloudConnectorsV1NodeConfig": { - "description": "Configuration for the connection.", + "description": "Node configuration for the connection.", "id": "GoogleCloudConnectorsV1NodeConfig", "properties": { "maxNodeCount": { diff --git a/integrations/v1alpha/integrations-gen.go b/integrations/v1alpha/integrations-gen.go index 6f7ed31dfa8..faab668f5de 100644 --- a/integrations/v1alpha/integrations-gen.go +++ b/integrations/v1alpha/integrations-gen.go @@ -3929,6 +3929,8 @@ func (s *EnterpriseCrmEventbusProtoSuspensionResolutionInfo) MarshalJSON() ([]by type EnterpriseCrmEventbusProtoSuspensionResolutionInfoAudit struct { ResolvedBy string `json:"resolvedBy,omitempty"` + ResolvedByCpi string `json:"resolvedByCpi,omitempty"` + Timestamp string `json:"timestamp,omitempty"` // ForceSendFields is a list of field names (e.g. "ResolvedBy") to @@ -6712,7 +6714,7 @@ type GoogleCloudConnectorsV1Connection struct { // projects/{project}/locations/{location}/connections/{connection} Name string `json:"name,omitempty"` - // NodeConfig: Optional. Configuration for the connection. + // NodeConfig: Optional. Node configuration for the connection. NodeConfig *GoogleCloudConnectorsV1NodeConfig `json:"nodeConfig,omitempty"` // ServiceAccount: Optional. Service account needed for runtime plane to @@ -6903,7 +6905,8 @@ func (s *GoogleCloudConnectorsV1LockConfig) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleCloudConnectorsV1NodeConfig: Configuration for the connection. +// GoogleCloudConnectorsV1NodeConfig: Node configuration for the +// connection. type GoogleCloudConnectorsV1NodeConfig struct { // MaxNodeCount: Maximum number of nodes in the runtime nodes. MaxNodeCount int64 `json:"maxNodeCount,omitempty"` diff --git a/jobs/v3/jobs-api.json b/jobs/v3/jobs-api.json index 45fa08e9fc2..25ca8380caa 100644 --- a/jobs/v3/jobs-api.json +++ b/jobs/v3/jobs-api.json @@ -651,7 +651,7 @@ } } }, - "revision": "20221024", + "revision": "20221219", "rootUrl": "https://jobs.googleapis.com/", "schemas": { "ApplicationInfo": { @@ -2323,7 +2323,7 @@ "type": "array" }, "disableAutomaticEnrollmentSelection": { - "description": "If true, disable automatic enrollment selection (at all diversion points). Automatic enrollment selection means experiment selection process based on the experiment's automatic enrollment condition. This does not disable selection of forced experiments. Setting this filed to false does not change anything in experiment selection process.", + "description": "If true, disable automatic enrollment selection (at all diversion points). Automatic enrollment selection means experiment selection process based on the experiment's automatic enrollment condition. This does not disable selection of forced experiments. Setting this field to false does not change anything in the experiment selection process.", "type": "boolean" }, "disableExpNames": { @@ -2349,11 +2349,11 @@ "type": "array" }, "disableManualEnrollmentSelection": { - "description": "If true, disable manual enrollment selection (at all diversion points). Manual enrollment selection means experiment selection process based on the request's manual enrollment states (a.k.a. opt-in experiments). This does not disable selection of forced experiments. Setting this filed to false does not change anything in experiment selection process.", + "description": "If true, disable manual enrollment selection (at all diversion points). Manual enrollment selection means experiment selection process based on the request's manual enrollment states (a.k.a. opt-in experiments). This does not disable selection of forced experiments. Setting this field to false does not change anything in the experiment selection process.", "type": "boolean" }, "disableOrganicSelection": { - "description": "If true, disable organic experiment selection (at all diversion points). Organic selection means experiment selection process based on traffic allocation and diversion condition evaluation. This does not disable selection of forced experiments. This is useful in cases when it is not known whether experiment selection behavior is responsible for a error or breakage. Disabling organic selection may help to isolate the cause of a given problem. Setting this filed to false does not change anything in experiment selection process.", + "description": "If true, disable organic experiment selection (at all diversion points). Organic selection means experiment selection process based on traffic allocation and diversion condition evaluation. This does not disable selection of forced experiments. This is useful in cases when it is not known whether experiment selection behavior is responsible for a error or breakage. Disabling organic selection may help to isolate the cause of a given problem. Setting this field to false does not change anything in the experiment selection process.", "type": "boolean" }, "forcedFlags": { @@ -2371,7 +2371,7 @@ "type": "object" }, "testingMode": { - "description": "If set to ALL_OFF, organic selection will be disabled; if set to ALL_ON, organic selection will be disabled, and only select launch experiments will receive traffic. See go/mendel-aoao-runtime-design.", + "description": "Sets different testing modes. See the documentation in the TestingMode message for more information.", "enum": [ "TESTING_MODE_UNSPECIFIED", "TESTING_MODE_ALL_OFF", diff --git a/jobs/v3/jobs-gen.go b/jobs/v3/jobs-gen.go index 7ea961cea1a..cf3295d9497 100644 --- a/jobs/v3/jobs-gen.go +++ b/jobs/v3/jobs-gen.go @@ -2823,8 +2823,8 @@ type NamespacedDebugInput struct { // enrollment selection (at all diversion points). Automatic enrollment // selection means experiment selection process based on the // experiment's automatic enrollment condition. This does not disable - // selection of forced experiments. Setting this filed to false does not - // change anything in experiment selection process. + // selection of forced experiments. Setting this field to false does not + // change anything in the experiment selection process. DisableAutomaticEnrollmentSelection bool `json:"disableAutomaticEnrollmentSelection,omitempty"` // DisableExpNames: Set of experiment names to be disabled. If an @@ -2856,8 +2856,8 @@ type NamespacedDebugInput struct { // selection (at all diversion points). Manual enrollment selection // means experiment selection process based on the request's manual // enrollment states (a.k.a. opt-in experiments). This does not disable - // selection of forced experiments. Setting this filed to false does not - // change anything in experiment selection process. + // selection of forced experiments. Setting this field to false does not + // change anything in the experiment selection process. DisableManualEnrollmentSelection bool `json:"disableManualEnrollmentSelection,omitempty"` // DisableOrganicSelection: If true, disable organic experiment @@ -2867,8 +2867,8 @@ type NamespacedDebugInput struct { // forced experiments. This is useful in cases when it is not known // whether experiment selection behavior is responsible for a error or // breakage. Disabling organic selection may help to isolate the cause - // of a given problem. Setting this filed to false does not change - // anything in experiment selection process. + // of a given problem. Setting this field to false does not change + // anything in the experiment selection process. DisableOrganicSelection bool `json:"disableOrganicSelection,omitempty"` // ForcedFlags: Flags to force in a particular experiment state. Map @@ -2879,10 +2879,8 @@ type NamespacedDebugInput struct { // Map from rollout name to rollout value. ForcedRollouts map[string]bool `json:"forcedRollouts,omitempty"` - // TestingMode: If set to ALL_OFF, organic selection will be disabled; - // if set to ALL_ON, organic selection will be disabled, and only select - // launch experiments will receive traffic. See - // go/mendel-aoao-runtime-design. + // TestingMode: Sets different testing modes. See the documentation in + // the TestingMode message for more information. // // Possible values: // "TESTING_MODE_UNSPECIFIED" diff --git a/jobs/v3p1beta1/jobs-api.json b/jobs/v3p1beta1/jobs-api.json index ba25f1fc057..e6fc7dca174 100644 --- a/jobs/v3p1beta1/jobs-api.json +++ b/jobs/v3p1beta1/jobs-api.json @@ -681,7 +681,7 @@ } } }, - "revision": "20221024", + "revision": "20221219", "rootUrl": "https://jobs.googleapis.com/", "schemas": { "ApplicationInfo": { @@ -2427,7 +2427,7 @@ "type": "array" }, "disableAutomaticEnrollmentSelection": { - "description": "If true, disable automatic enrollment selection (at all diversion points). Automatic enrollment selection means experiment selection process based on the experiment's automatic enrollment condition. This does not disable selection of forced experiments. Setting this filed to false does not change anything in experiment selection process.", + "description": "If true, disable automatic enrollment selection (at all diversion points). Automatic enrollment selection means experiment selection process based on the experiment's automatic enrollment condition. This does not disable selection of forced experiments. Setting this field to false does not change anything in the experiment selection process.", "type": "boolean" }, "disableExpNames": { @@ -2453,11 +2453,11 @@ "type": "array" }, "disableManualEnrollmentSelection": { - "description": "If true, disable manual enrollment selection (at all diversion points). Manual enrollment selection means experiment selection process based on the request's manual enrollment states (a.k.a. opt-in experiments). This does not disable selection of forced experiments. Setting this filed to false does not change anything in experiment selection process.", + "description": "If true, disable manual enrollment selection (at all diversion points). Manual enrollment selection means experiment selection process based on the request's manual enrollment states (a.k.a. opt-in experiments). This does not disable selection of forced experiments. Setting this field to false does not change anything in the experiment selection process.", "type": "boolean" }, "disableOrganicSelection": { - "description": "If true, disable organic experiment selection (at all diversion points). Organic selection means experiment selection process based on traffic allocation and diversion condition evaluation. This does not disable selection of forced experiments. This is useful in cases when it is not known whether experiment selection behavior is responsible for a error or breakage. Disabling organic selection may help to isolate the cause of a given problem. Setting this filed to false does not change anything in experiment selection process.", + "description": "If true, disable organic experiment selection (at all diversion points). Organic selection means experiment selection process based on traffic allocation and diversion condition evaluation. This does not disable selection of forced experiments. This is useful in cases when it is not known whether experiment selection behavior is responsible for a error or breakage. Disabling organic selection may help to isolate the cause of a given problem. Setting this field to false does not change anything in the experiment selection process.", "type": "boolean" }, "forcedFlags": { @@ -2475,7 +2475,7 @@ "type": "object" }, "testingMode": { - "description": "If set to ALL_OFF, organic selection will be disabled; if set to ALL_ON, organic selection will be disabled, and only select launch experiments will receive traffic. See go/mendel-aoao-runtime-design.", + "description": "Sets different testing modes. See the documentation in the TestingMode message for more information.", "enum": [ "TESTING_MODE_UNSPECIFIED", "TESTING_MODE_ALL_OFF", diff --git a/jobs/v3p1beta1/jobs-gen.go b/jobs/v3p1beta1/jobs-gen.go index a8bb445bbc3..051880e6520 100644 --- a/jobs/v3p1beta1/jobs-gen.go +++ b/jobs/v3p1beta1/jobs-gen.go @@ -3045,8 +3045,8 @@ type NamespacedDebugInput struct { // enrollment selection (at all diversion points). Automatic enrollment // selection means experiment selection process based on the // experiment's automatic enrollment condition. This does not disable - // selection of forced experiments. Setting this filed to false does not - // change anything in experiment selection process. + // selection of forced experiments. Setting this field to false does not + // change anything in the experiment selection process. DisableAutomaticEnrollmentSelection bool `json:"disableAutomaticEnrollmentSelection,omitempty"` // DisableExpNames: Set of experiment names to be disabled. If an @@ -3078,8 +3078,8 @@ type NamespacedDebugInput struct { // selection (at all diversion points). Manual enrollment selection // means experiment selection process based on the request's manual // enrollment states (a.k.a. opt-in experiments). This does not disable - // selection of forced experiments. Setting this filed to false does not - // change anything in experiment selection process. + // selection of forced experiments. Setting this field to false does not + // change anything in the experiment selection process. DisableManualEnrollmentSelection bool `json:"disableManualEnrollmentSelection,omitempty"` // DisableOrganicSelection: If true, disable organic experiment @@ -3089,8 +3089,8 @@ type NamespacedDebugInput struct { // forced experiments. This is useful in cases when it is not known // whether experiment selection behavior is responsible for a error or // breakage. Disabling organic selection may help to isolate the cause - // of a given problem. Setting this filed to false does not change - // anything in experiment selection process. + // of a given problem. Setting this field to false does not change + // anything in the experiment selection process. DisableOrganicSelection bool `json:"disableOrganicSelection,omitempty"` // ForcedFlags: Flags to force in a particular experiment state. Map @@ -3101,10 +3101,8 @@ type NamespacedDebugInput struct { // Map from rollout name to rollout value. ForcedRollouts map[string]bool `json:"forcedRollouts,omitempty"` - // TestingMode: If set to ALL_OFF, organic selection will be disabled; - // if set to ALL_ON, organic selection will be disabled, and only select - // launch experiments will receive traffic. See - // go/mendel-aoao-runtime-design. + // TestingMode: Sets different testing modes. See the documentation in + // the TestingMode message for more information. // // Possible values: // "TESTING_MODE_UNSPECIFIED" diff --git a/jobs/v4/jobs-api.json b/jobs/v4/jobs-api.json index b95375cf1b4..7027fc2ccbd 100644 --- a/jobs/v4/jobs-api.json +++ b/jobs/v4/jobs-api.json @@ -903,7 +903,7 @@ } } }, - "revision": "20221024", + "revision": "20221219", "rootUrl": "https://jobs.googleapis.com/", "schemas": { "ApplicationInfo": { @@ -2519,7 +2519,7 @@ "type": "array" }, "disableAutomaticEnrollmentSelection": { - "description": "If true, disable automatic enrollment selection (at all diversion points). Automatic enrollment selection means experiment selection process based on the experiment's automatic enrollment condition. This does not disable selection of forced experiments. Setting this filed to false does not change anything in experiment selection process.", + "description": "If true, disable automatic enrollment selection (at all diversion points). Automatic enrollment selection means experiment selection process based on the experiment's automatic enrollment condition. This does not disable selection of forced experiments. Setting this field to false does not change anything in the experiment selection process.", "type": "boolean" }, "disableExpNames": { @@ -2545,11 +2545,11 @@ "type": "array" }, "disableManualEnrollmentSelection": { - "description": "If true, disable manual enrollment selection (at all diversion points). Manual enrollment selection means experiment selection process based on the request's manual enrollment states (a.k.a. opt-in experiments). This does not disable selection of forced experiments. Setting this filed to false does not change anything in experiment selection process.", + "description": "If true, disable manual enrollment selection (at all diversion points). Manual enrollment selection means experiment selection process based on the request's manual enrollment states (a.k.a. opt-in experiments). This does not disable selection of forced experiments. Setting this field to false does not change anything in the experiment selection process.", "type": "boolean" }, "disableOrganicSelection": { - "description": "If true, disable organic experiment selection (at all diversion points). Organic selection means experiment selection process based on traffic allocation and diversion condition evaluation. This does not disable selection of forced experiments. This is useful in cases when it is not known whether experiment selection behavior is responsible for a error or breakage. Disabling organic selection may help to isolate the cause of a given problem. Setting this filed to false does not change anything in experiment selection process.", + "description": "If true, disable organic experiment selection (at all diversion points). Organic selection means experiment selection process based on traffic allocation and diversion condition evaluation. This does not disable selection of forced experiments. This is useful in cases when it is not known whether experiment selection behavior is responsible for a error or breakage. Disabling organic selection may help to isolate the cause of a given problem. Setting this field to false does not change anything in the experiment selection process.", "type": "boolean" }, "forcedFlags": { @@ -2567,7 +2567,7 @@ "type": "object" }, "testingMode": { - "description": "If set to ALL_OFF, organic selection will be disabled; if set to ALL_ON, organic selection will be disabled, and only select launch experiments will receive traffic. See go/mendel-aoao-runtime-design.", + "description": "Sets different testing modes. See the documentation in the TestingMode message for more information.", "enum": [ "TESTING_MODE_UNSPECIFIED", "TESTING_MODE_ALL_OFF", diff --git a/jobs/v4/jobs-gen.go b/jobs/v4/jobs-gen.go index ae0ee1a6147..95f82d14bb3 100644 --- a/jobs/v4/jobs-gen.go +++ b/jobs/v4/jobs-gen.go @@ -2747,8 +2747,8 @@ type NamespacedDebugInput struct { // enrollment selection (at all diversion points). Automatic enrollment // selection means experiment selection process based on the // experiment's automatic enrollment condition. This does not disable - // selection of forced experiments. Setting this filed to false does not - // change anything in experiment selection process. + // selection of forced experiments. Setting this field to false does not + // change anything in the experiment selection process. DisableAutomaticEnrollmentSelection bool `json:"disableAutomaticEnrollmentSelection,omitempty"` // DisableExpNames: Set of experiment names to be disabled. If an @@ -2780,8 +2780,8 @@ type NamespacedDebugInput struct { // selection (at all diversion points). Manual enrollment selection // means experiment selection process based on the request's manual // enrollment states (a.k.a. opt-in experiments). This does not disable - // selection of forced experiments. Setting this filed to false does not - // change anything in experiment selection process. + // selection of forced experiments. Setting this field to false does not + // change anything in the experiment selection process. DisableManualEnrollmentSelection bool `json:"disableManualEnrollmentSelection,omitempty"` // DisableOrganicSelection: If true, disable organic experiment @@ -2791,8 +2791,8 @@ type NamespacedDebugInput struct { // forced experiments. This is useful in cases when it is not known // whether experiment selection behavior is responsible for a error or // breakage. Disabling organic selection may help to isolate the cause - // of a given problem. Setting this filed to false does not change - // anything in experiment selection process. + // of a given problem. Setting this field to false does not change + // anything in the experiment selection process. DisableOrganicSelection bool `json:"disableOrganicSelection,omitempty"` // ForcedFlags: Flags to force in a particular experiment state. Map @@ -2803,10 +2803,8 @@ type NamespacedDebugInput struct { // Map from rollout name to rollout value. ForcedRollouts map[string]bool `json:"forcedRollouts,omitempty"` - // TestingMode: If set to ALL_OFF, organic selection will be disabled; - // if set to ALL_ON, organic selection will be disabled, and only select - // launch experiments will receive traffic. See - // go/mendel-aoao-runtime-design. + // TestingMode: Sets different testing modes. See the documentation in + // the TestingMode message for more information. // // Possible values: // "TESTING_MODE_UNSPECIFIED" diff --git a/notebooks/v1/notebooks-api.json b/notebooks/v1/notebooks-api.json index 80a1a08d3bc..45a3dd74764 100644 --- a/notebooks/v1/notebooks-api.json +++ b/notebooks/v1/notebooks-api.json @@ -1904,7 +1904,7 @@ } } }, - "revision": "20221017", + "revision": "20221213", "rootUrl": "https://notebooks.googleapis.com/", "schemas": { "AcceleratorConfig": { @@ -2042,7 +2042,7 @@ "type": "boolean" }, "gcsBucket": { - "description": "Required. User Cloud Storage bucket location (REQUIRED) ## Must be formatted with path prefix (gs://$GCS_BUCKET) Permissions: User Managed Notebooks: - storage.buckets.writer: Must be given to the project's service account attached to VM. Google Managed Notebooks: - storage.buckets.writer: Must be given to the project's service account or ## user credentials attached to VM depending on authentication mode. Cloud Storage bucket Log file will be written to gs://$GCS_BUCKET/$RELATIVE_PATH/$VM_DATE_$TIME.tar.gz", + "description": "Required. User Cloud Storage bucket location (REQUIRED). Must be formatted with path prefix (`gs://$GCS_BUCKET`). Permissions: User Managed Notebooks: - storage.buckets.writer: Must be given to the project's service account attached to VM. Google Managed Notebooks: - storage.buckets.writer: Must be given to the project's service account or user credentials attached to VM depending on authentication mode. Cloud Storage bucket Log file will be written to `gs://$GCS_BUCKET/$RELATIVE_PATH/$VM_DATE_$TIME.tar.gz`", "type": "string" }, "packetCaptureFlagEnabled": { @@ -2050,7 +2050,7 @@ "type": "boolean" }, "relativePath": { - "description": "Optional. Defines the relative storage path in the Cloud Storage bucket where the diagnostic logs will be written: Default path will be the root directory of the Cloud Storage bucket (gs://$GCS_BUCKET/$DATE_$TIME.tar.gz) Example of full path where Log file will be written: gs://$GCS_BUCKET/$RELATIVE_PATH/", + "description": "Optional. Defines the relative storage path in the Cloud Storage bucket where the diagnostic logs will be written: Default path will be the root directory of the Cloud Storage bucket (`gs://$GCS_BUCKET/$DATE_$TIME.tar.gz`) Example of full path where Log file will be written: `gs://$GCS_BUCKET/$RELATIVE_PATH/`", "type": "string" }, "repairFlagEnabled": { @@ -3564,6 +3564,11 @@ "description": "Output only. Bool indicating whether an newer image is available in an image family.", "readOnly": true, "type": "boolean" + }, + "version": { + "description": "Output only. version of boot image such as M100, from release label of the image.", + "readOnly": true, + "type": "string" } }, "type": "object" diff --git a/notebooks/v1/notebooks-gen.go b/notebooks/v1/notebooks-gen.go index b122c5442a7..f5bdc8ac342 100644 --- a/notebooks/v1/notebooks-gen.go +++ b/notebooks/v1/notebooks-gen.go @@ -501,14 +501,14 @@ type DiagnosticConfig struct { // `/home/jupyter` folder contents CopyHomeFilesFlagEnabled bool `json:"copyHomeFilesFlagEnabled,omitempty"` - // GcsBucket: Required. User Cloud Storage bucket location (REQUIRED) ## - // Must be formatted with path prefix (gs://$GCS_BUCKET) Permissions: + // GcsBucket: Required. User Cloud Storage bucket location (REQUIRED). + // Must be formatted with path prefix (`gs://$GCS_BUCKET`). Permissions: // User Managed Notebooks: - storage.buckets.writer: Must be given to // the project's service account attached to VM. Google Managed // Notebooks: - storage.buckets.writer: Must be given to the project's - // service account or ## user credentials attached to VM depending on + // service account or user credentials attached to VM depending on // authentication mode. Cloud Storage bucket Log file will be written to - // gs://$GCS_BUCKET/$RELATIVE_PATH/$VM_DATE_$TIME.tar.gz + // `gs://$GCS_BUCKET/$RELATIVE_PATH/$VM_DATE_$TIME.tar.gz` GcsBucket string `json:"gcsBucket,omitempty"` // PacketCaptureFlagEnabled: Optional. Enables flag to capture packets @@ -518,8 +518,8 @@ type DiagnosticConfig struct { // RelativePath: Optional. Defines the relative storage path in the // Cloud Storage bucket where the diagnostic logs will be written: // Default path will be the root directory of the Cloud Storage bucket - // (gs://$GCS_BUCKET/$DATE_$TIME.tar.gz) Example of full path where Log - // file will be written: gs://$GCS_BUCKET/$RELATIVE_PATH/ + // (`gs://$GCS_BUCKET/$DATE_$TIME.tar.gz`) Example of full path where + // Log file will be written: `gs://$GCS_BUCKET/$RELATIVE_PATH/` RelativePath string `json:"relativePath,omitempty"` // RepairFlagEnabled: Optional. Enables flag to repair service for @@ -2801,6 +2801,10 @@ type RuntimeSoftwareConfig struct { // available in an image family. Upgradeable bool `json:"upgradeable,omitempty"` + // Version: Output only. version of boot image such as M100, from + // release label of the image. + Version string `json:"version,omitempty"` + // ForceSendFields is a list of field names (e.g. "CustomGpuDriverPath") // to unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any diff --git a/osconfig/v1/osconfig-api.json b/osconfig/v1/osconfig-api.json index 19737e5fa7a..a18550b750b 100644 --- a/osconfig/v1/osconfig-api.json +++ b/osconfig/v1/osconfig-api.json @@ -1000,7 +1000,7 @@ } } }, - "revision": "20221014", + "revision": "20221218", "rootUrl": "https://osconfig.googleapis.com/", "schemas": { "AptSettings": { @@ -2401,7 +2401,7 @@ "type": "string" }, "script": { - "description": "An inline script. The size of the script is limited to 1024 characters.", + "description": "An inline script. The size of the script is limited to 32KiB.", "type": "string" } }, @@ -2470,7 +2470,7 @@ "id": "OSPolicyResourceFileResource", "properties": { "content": { - "description": "A a file with this content. The size of the content is limited to 1024 characters.", + "description": "A a file with this content. The size of the content is limited to 32KiB.", "type": "string" }, "file": { diff --git a/osconfig/v1/osconfig-gen.go b/osconfig/v1/osconfig-gen.go index b929d01862a..6f859b0bb42 100644 --- a/osconfig/v1/osconfig-gen.go +++ b/osconfig/v1/osconfig-gen.go @@ -2463,8 +2463,7 @@ type OSPolicyResourceExecResourceExec struct { // non-compliant. Output file size is limited to 100K bytes. OutputFilePath string `json:"outputFilePath,omitempty"` - // Script: An inline script. The size of the script is limited to 1024 - // characters. + // Script: An inline script. The size of the script is limited to 32KiB. Script string `json:"script,omitempty"` // ForceSendFields is a list of field names (e.g. "Args") to @@ -2603,7 +2602,7 @@ func (s *OSPolicyResourceFileRemote) MarshalJSON() ([]byte, error) { // file. type OSPolicyResourceFileResource struct { // Content: A a file with this content. The size of the content is - // limited to 1024 characters. + // limited to 32KiB. Content string `json:"content,omitempty"` // File: A remote or local source. diff --git a/osconfig/v1alpha/osconfig-api.json b/osconfig/v1alpha/osconfig-api.json index 035c4e6b770..4ea99998ffc 100644 --- a/osconfig/v1alpha/osconfig-api.json +++ b/osconfig/v1alpha/osconfig-api.json @@ -684,7 +684,7 @@ } } }, - "revision": "20220319", + "revision": "20221218", "rootUrl": "https://osconfig.googleapis.com/", "schemas": { "CVSSv3": { @@ -2100,7 +2100,7 @@ "type": "string" }, "script": { - "description": "An inline script. The size of the script is limited to 1024 characters.", + "description": "An inline script. The size of the script is limited to 32KiB.", "type": "string" } }, @@ -2169,7 +2169,7 @@ "id": "OSPolicyResourceFileResource", "properties": { "content": { - "description": "A a file with this content. The size of the content is limited to 1024 characters.", + "description": "A a file with this content. The size of the content is limited to 32KiB.", "type": "string" }, "file": { diff --git a/osconfig/v1alpha/osconfig-gen.go b/osconfig/v1alpha/osconfig-gen.go index 5271f5516dd..ae9079c1164 100644 --- a/osconfig/v1alpha/osconfig-gen.go +++ b/osconfig/v1alpha/osconfig-gen.go @@ -2421,8 +2421,7 @@ type OSPolicyResourceExecResourceExec struct { // non-compliant. Output file size is limited to 100K bytes. OutputFilePath string `json:"outputFilePath,omitempty"` - // Script: An inline script. The size of the script is limited to 1024 - // characters. + // Script: An inline script. The size of the script is limited to 32KiB. Script string `json:"script,omitempty"` // ForceSendFields is a list of field names (e.g. "Args") to @@ -2561,7 +2560,7 @@ func (s *OSPolicyResourceFileRemote) MarshalJSON() ([]byte, error) { // file. type OSPolicyResourceFileResource struct { // Content: A a file with this content. The size of the content is - // limited to 1024 characters. + // limited to 32KiB. Content string `json:"content,omitempty"` // File: A remote or local source. diff --git a/prod_tt_sasportal/v1alpha1/prod_tt_sasportal-api.json b/prod_tt_sasportal/v1alpha1/prod_tt_sasportal-api.json index 109a8f08a4a..3f04c6054c2 100644 --- a/prod_tt_sasportal/v1alpha1/prod_tt_sasportal-api.json +++ b/prod_tt_sasportal/v1alpha1/prod_tt_sasportal-api.json @@ -2484,7 +2484,7 @@ } } }, - "revision": "20221014", + "revision": "20221221", "rootUrl": "https://prod-tt-sasportal.googleapis.com/", "schemas": { "SasPortalAssignment": { @@ -2514,7 +2514,7 @@ "description": "The frequency range of the channel." }, "score": { - "description": "The channel score, normalized to be in [0,100].", + "description": "The channel score, normalized to be in the range [0,100].", "format": "double", "type": "number" } @@ -2568,7 +2568,7 @@ "type": "string" }, "frns": { - "description": "Output only. The FRNs copied from its direct parent.", + "description": "Output only. The FCC Registration Numbers (FRNs) copied from its direct parent.", "items": { "type": "string" }, @@ -2618,7 +2618,7 @@ "type": "string" }, "grantRangeAllowlists": { - "description": "Only ranges within the allowlists are available for new grants.", + "description": "Only ranges that are within the allowlists are available for new grants.", "items": { "$ref": "SasPortalFrequencyRange" }, @@ -2863,19 +2863,19 @@ "id": "SasPortalDeviceMetadata", "properties": { "antennaModel": { - "description": "If populated, the Antenna Model Pattern to use. Format is: RecordCreatorId:PatternId", + "description": "If populated, the Antenna Model Pattern to use. Format is: `RecordCreatorId:PatternId`", "type": "string" }, "commonChannelGroup": { - "description": "CCG. A group of CBSDs in the same ICG requesting a common primary channel assignment. See CBRSA-TS-2001 V3.0.0 for more details.", + "description": "Common Channel Group (CCG). A group of CBSDs in the same ICG requesting a common primary channel assignment. For more details, see [CBRSA-TS-2001 V3.0.0](https://ongoalliance.org/wp-content/uploads/2020/02/CBRSA-TS-2001-V3.0.0_Approved-for-publication.pdf).", "type": "string" }, "interferenceCoordinationGroup": { - "description": "ICG. A group of CBSDs that manage their own interference with the group. See CBRSA-TS-2001 V3.0.0 for more details.", + "description": "Interference Coordination Group (ICG). A group of CBSDs that manage their own interference with the group. For more details, see [CBRSA-TS-2001 V3.0.0](https://ongoalliance.org/wp-content/uploads/2020/02/CBRSA-TS-2001-V3.0.0_Approved-for-publication.pdf).", "type": "string" }, "nrqzValidated": { - "description": "Output only. Whether a CPI has validated to have coordinated with the National Quiet Zone office.", + "description": "Output only. Set to `true` if a CPI has validated that they have coordinated with the National Quiet Zone office.", "readOnly": true, "type": "boolean" }, @@ -3004,6 +3004,11 @@ "format": "int32", "type": "integer" }, + "antennaGainNewField": { + "description": "As above, but as a DoubleValue.", + "format": "double", + "type": "number" + }, "antennaModel": { "description": "If an external antenna is used, the antenna model is optionally provided in this field. The string has a maximum length of 128 octets.", "type": "string" @@ -3017,6 +3022,11 @@ "format": "int32", "type": "integer" }, + "eirpCapabilityNewField": { + "description": "As above, but as a DoubleValue.", + "format": "double", + "type": "number" + }, "height": { "description": "Device antenna height in meters. When the `heightType` parameter value is \"AGL\", the antenna height should be given relative to ground level. When the `heightType` parameter value is \"AMSL\", it is given with respect to WGS84 datum.", "format": "double", @@ -3195,7 +3205,7 @@ "id": "SasPortalNrqzValidation", "properties": { "caseId": { - "description": "Validation case id.", + "description": "Validation case ID.", "type": "string" }, "cpiId": { @@ -3203,12 +3213,12 @@ "type": "string" }, "latitude": { - "description": "Device latitude associated with the validation.", + "description": "Device latitude that's associated with the validation.", "format": "double", "type": "number" }, "longitude": { - "description": "Device longitude associated with the validation.", + "description": "Device longitude that's associated with the validation.", "format": "double", "type": "number" }, @@ -3288,7 +3298,7 @@ "id": "SasPortalSetPolicyRequest", "properties": { "disableNotification": { - "description": "Optional. Set the field as true when we would like to disable the onboarding notification.", + "description": "Optional. Set the field as `true` to disable the onboarding notification.", "type": "boolean" }, "policy": { diff --git a/prod_tt_sasportal/v1alpha1/prod_tt_sasportal-gen.go b/prod_tt_sasportal/v1alpha1/prod_tt_sasportal-gen.go index 36a8a030888..5b9c8f64016 100644 --- a/prod_tt_sasportal/v1alpha1/prod_tt_sasportal-gen.go +++ b/prod_tt_sasportal/v1alpha1/prod_tt_sasportal-gen.go @@ -413,7 +413,7 @@ type SasPortalChannelWithScore struct { // FrequencyRange: The frequency range of the channel. FrequencyRange *SasPortalFrequencyRange `json:"frequencyRange,omitempty"` - // Score: The channel score, normalized to be in [0,100]. + // Score: The channel score, normalized to be in the range [0,100]. Score float64 `json:"score,omitempty"` // ForceSendFields is a list of field names (e.g. "FrequencyRange") to @@ -532,7 +532,8 @@ type SasPortalDeployment struct { // DisplayName: The deployment's display name. DisplayName string `json:"displayName,omitempty"` - // Frns: Output only. The FRNs copied from its direct parent. + // Frns: Output only. The FCC Registration Numbers (FRNs) copied from + // its direct parent. Frns []string `json:"frns,omitempty"` // Name: Output only. Resource name. @@ -587,8 +588,8 @@ type SasPortalDevice struct { // FccId: The FCC identifier of the device. FccId string `json:"fccId,omitempty"` - // GrantRangeAllowlists: Only ranges within the allowlists are available - // for new grants. + // GrantRangeAllowlists: Only ranges that are within the allowlists are + // available for new grants. GrantRangeAllowlists []*SasPortalFrequencyRange `json:"grantRangeAllowlists,omitempty"` // Grants: Output only. Grants held by the device. @@ -854,21 +855,23 @@ func (s *SasPortalDeviceGrant) UnmarshalJSON(data []byte) error { // and registration requests. type SasPortalDeviceMetadata struct { // AntennaModel: If populated, the Antenna Model Pattern to use. Format - // is: RecordCreatorId:PatternId + // is: `RecordCreatorId:PatternId` AntennaModel string `json:"antennaModel,omitempty"` - // CommonChannelGroup: CCG. A group of CBSDs in the same ICG requesting - // a common primary channel assignment. See CBRSA-TS-2001 V3.0.0 for - // more details. + // CommonChannelGroup: Common Channel Group (CCG). A group of CBSDs in + // the same ICG requesting a common primary channel assignment. For more + // details, see CBRSA-TS-2001 V3.0.0 + // (https://ongoalliance.org/wp-content/uploads/2020/02/CBRSA-TS-2001-V3.0.0_Approved-for-publication.pdf). CommonChannelGroup string `json:"commonChannelGroup,omitempty"` - // InterferenceCoordinationGroup: ICG. A group of CBSDs that manage - // their own interference with the group. See CBRSA-TS-2001 V3.0.0 for - // more details. + // InterferenceCoordinationGroup: Interference Coordination Group (ICG). + // A group of CBSDs that manage their own interference with the group. + // For more details, see CBRSA-TS-2001 V3.0.0 + // (https://ongoalliance.org/wp-content/uploads/2020/02/CBRSA-TS-2001-V3.0.0_Approved-for-publication.pdf). InterferenceCoordinationGroup string `json:"interferenceCoordinationGroup,omitempty"` - // NrqzValidated: Output only. Whether a CPI has validated to have - // coordinated with the National Quiet Zone office. + // NrqzValidated: Output only. Set to `true` if a CPI has validated that + // they have coordinated with the National Quiet Zone office. NrqzValidated bool `json:"nrqzValidated,omitempty"` // NrqzValidation: Output only. National Radio Quiet Zone validation @@ -1124,6 +1127,9 @@ type SasPortalInstallationParams struct { // with a value between -127 and +128 (dBi) inclusive. AntennaGain int64 `json:"antennaGain,omitempty"` + // AntennaGainNewField: As above, but as a DoubleValue. + AntennaGainNewField float64 `json:"antennaGainNewField,omitempty"` + // AntennaModel: If an external antenna is used, the antenna model is // optionally provided in this field. The string has a maximum length of // 128 octets. @@ -1139,6 +1145,9 @@ type SasPortalInstallationParams struct { // allowable EIRP in units of dBm/10MHz for device category. EirpCapability int64 `json:"eirpCapability,omitempty"` + // EirpCapabilityNewField: As above, but as a DoubleValue. + EirpCapabilityNewField float64 `json:"eirpCapabilityNewField,omitempty"` + // Height: Device antenna height in meters. When the `heightType` // parameter value is "AGL", the antenna height should be given relative // to ground level. When the `heightType` parameter value is "AMSL", it @@ -1210,17 +1219,21 @@ func (s *SasPortalInstallationParams) MarshalJSON() ([]byte, error) { func (s *SasPortalInstallationParams) UnmarshalJSON(data []byte) error { type NoMethod SasPortalInstallationParams var s1 struct { - Height gensupport.JSONFloat64 `json:"height"` - HorizontalAccuracy gensupport.JSONFloat64 `json:"horizontalAccuracy"` - Latitude gensupport.JSONFloat64 `json:"latitude"` - Longitude gensupport.JSONFloat64 `json:"longitude"` - VerticalAccuracy gensupport.JSONFloat64 `json:"verticalAccuracy"` + AntennaGainNewField gensupport.JSONFloat64 `json:"antennaGainNewField"` + EirpCapabilityNewField gensupport.JSONFloat64 `json:"eirpCapabilityNewField"` + Height gensupport.JSONFloat64 `json:"height"` + HorizontalAccuracy gensupport.JSONFloat64 `json:"horizontalAccuracy"` + Latitude gensupport.JSONFloat64 `json:"latitude"` + Longitude gensupport.JSONFloat64 `json:"longitude"` + VerticalAccuracy gensupport.JSONFloat64 `json:"verticalAccuracy"` *NoMethod } s1.NoMethod = (*NoMethod)(s) if err := json.Unmarshal(data, &s1); err != nil { return err } + s.AntennaGainNewField = float64(s1.AntennaGainNewField) + s.EirpCapabilityNewField = float64(s1.EirpCapabilityNewField) s.Height = float64(s1.Height) s.HorizontalAccuracy = float64(s1.HorizontalAccuracy) s.Latitude = float64(s1.Latitude) @@ -1506,16 +1519,16 @@ func (s *SasPortalNode) MarshalJSON() ([]byte, error) { // SasPortalNrqzValidation: Information about National Radio Quiet Zone // validation. type SasPortalNrqzValidation struct { - // CaseId: Validation case id. + // CaseId: Validation case ID. CaseId string `json:"caseId,omitempty"` // CpiId: CPI who signed the validation. CpiId string `json:"cpiId,omitempty"` - // Latitude: Device latitude associated with the validation. + // Latitude: Device latitude that's associated with the validation. Latitude float64 `json:"latitude,omitempty"` - // Longitude: Device longitude associated with the validation. + // Longitude: Device longitude that's associated with the validation. Longitude float64 `json:"longitude,omitempty"` // State: State of the NRQZ validation info. @@ -1672,8 +1685,8 @@ func (s *SasPortalPolicy) MarshalJSON() ([]byte, error) { // SasPortalSetPolicyRequest: Request message for `SetPolicy` method. type SasPortalSetPolicyRequest struct { - // DisableNotification: Optional. Set the field as true when we would - // like to disable the onboarding notification. + // DisableNotification: Optional. Set the field as `true` to disable the + // onboarding notification. DisableNotification bool `json:"disableNotification,omitempty"` // Policy: Required. The policy to be applied to the `resource`. diff --git a/securitycenter/v1/securitycenter-api.json b/securitycenter/v1/securitycenter-api.json index 0f699f341dd..0e189f7cc47 100644 --- a/securitycenter/v1/securitycenter-api.json +++ b/securitycenter/v1/securitycenter-api.json @@ -3372,7 +3372,7 @@ } } }, - "revision": "20221208", + "revision": "20221220", "rootUrl": "https://securitycenter.googleapis.com/", "schemas": { "Access": { @@ -4329,7 +4329,7 @@ }, "vulnerability": { "$ref": "Vulnerability", - "description": "Represents vulnerability-specific fields like CVE and CVS scores. CVE stands for Common Vulnerabilities and Exposures (https://cve.mitre.org/about/)" + "description": "Represents vulnerability-specific fields like CVE and CVSS scores. CVE stands for Common Vulnerabilities and Exposures (https://cve.mitre.org/about/)" } }, "type": "object" @@ -4388,7 +4388,7 @@ "id": "GoogleCloudSecuritycenterV1BigQueryExport", "properties": { "createTime": { - "description": "Output only. The time at which the big query export was created. This field is set by the server and will be ignored if provided on export on creation.", + "description": "Output only. The time at which the BigQuery export was created. This field is set by the server and will be ignored if provided on export on creation.", "format": "google-datetime", "readOnly": true, "type": "string" @@ -4406,7 +4406,7 @@ "type": "string" }, "mostRecentEditor": { - "description": "Output only. Email address of the user who last edited the big query export. This field is set by the server and will be ignored if provided on export creation or update.", + "description": "Output only. Email address of the user who last edited the BigQuery export. This field is set by the server and will be ignored if provided on export creation or update.", "readOnly": true, "type": "string" }, @@ -4415,12 +4415,12 @@ "type": "string" }, "principal": { - "description": "Output only. The service account that needs permission to create table, upload data to the big query dataset.", + "description": "Output only. The service account that needs permission to create table and upload data to the BigQuery dataset.", "readOnly": true, "type": "string" }, "updateTime": { - "description": "Output only. The most recent time at which the big export was updated. This field is set by the server and will be ignored if provided on export creation or update.", + "description": "Output only. The most recent time at which the BigQuery export was updated. This field is set by the server and will be ignored if provided on export creation or update.", "format": "google-datetime", "readOnly": true, "type": "string" diff --git a/securitycenter/v1/securitycenter-gen.go b/securitycenter/v1/securitycenter-gen.go index 22a762761d0..7c694613def 100644 --- a/securitycenter/v1/securitycenter-gen.go +++ b/securitycenter/v1/securitycenter-gen.go @@ -1957,7 +1957,7 @@ type Finding struct { State string `json:"state,omitempty"` // Vulnerability: Represents vulnerability-specific fields like CVE and - // CVS scores. CVE stands for Common Vulnerabilities and Exposures + // CVSS scores. CVE stands for Common Vulnerabilities and Exposures // (https://cve.mitre.org/about/) Vulnerability *Vulnerability `json:"vulnerability,omitempty"` @@ -2124,7 +2124,7 @@ func (s *GetPolicyOptions) MarshalJSON() ([]byte, error) { // GoogleCloudSecuritycenterV1BigQueryExport: Configures how to deliver // Findings to BigQuery Instance. type GoogleCloudSecuritycenterV1BigQueryExport struct { - // CreateTime: Output only. The time at which the big query export was + // CreateTime: Output only. The time at which the BigQuery export was // created. This field is set by the server and will be ignored if // provided on export on creation. CreateTime string `json:"createTime,omitempty"` @@ -2152,7 +2152,7 @@ type GoogleCloudSecuritycenterV1BigQueryExport struct { Filter string `json:"filter,omitempty"` // MostRecentEditor: Output only. Email address of the user who last - // edited the big query export. This field is set by the server and will + // edited the BigQuery export. This field is set by the server and will // be ignored if provided on export creation or update. MostRecentEditor string `json:"mostRecentEditor,omitempty"` @@ -2167,12 +2167,12 @@ type GoogleCloudSecuritycenterV1BigQueryExport struct { Name string `json:"name,omitempty"` // Principal: Output only. The service account that needs permission to - // create table, upload data to the big query dataset. + // create table and upload data to the BigQuery dataset. Principal string `json:"principal,omitempty"` - // UpdateTime: Output only. The most recent time at which the big export - // was updated. This field is set by the server and will be ignored if - // provided on export creation or update. + // UpdateTime: Output only. The most recent time at which the BigQuery + // export was updated. This field is set by the server and will be + // ignored if provided on export creation or update. UpdateTime string `json:"updateTime,omitempty"` // ServerResponse contains the HTTP response code and headers from the diff --git a/securitycenter/v1beta1/securitycenter-api.json b/securitycenter/v1beta1/securitycenter-api.json index 731ee5ac981..a52a262a7de 100644 --- a/securitycenter/v1beta1/securitycenter-api.json +++ b/securitycenter/v1beta1/securitycenter-api.json @@ -896,7 +896,7 @@ } } }, - "revision": "20221208", + "revision": "20221220", "rootUrl": "https://securitycenter.googleapis.com/", "schemas": { "Access": { @@ -1829,7 +1829,7 @@ }, "vulnerability": { "$ref": "Vulnerability", - "description": "Represents vulnerability-specific fields like CVE and CVS scores. CVE stands for Common Vulnerabilities and Exposures (https://cve.mitre.org/about/)" + "description": "Represents vulnerability-specific fields like CVE and CVSS scores. CVE stands for Common Vulnerabilities and Exposures (https://cve.mitre.org/about/)" } }, "type": "object" @@ -1888,7 +1888,7 @@ "id": "GoogleCloudSecuritycenterV1BigQueryExport", "properties": { "createTime": { - "description": "Output only. The time at which the big query export was created. This field is set by the server and will be ignored if provided on export on creation.", + "description": "Output only. The time at which the BigQuery export was created. This field is set by the server and will be ignored if provided on export on creation.", "format": "google-datetime", "readOnly": true, "type": "string" @@ -1906,7 +1906,7 @@ "type": "string" }, "mostRecentEditor": { - "description": "Output only. Email address of the user who last edited the big query export. This field is set by the server and will be ignored if provided on export creation or update.", + "description": "Output only. Email address of the user who last edited the BigQuery export. This field is set by the server and will be ignored if provided on export creation or update.", "readOnly": true, "type": "string" }, @@ -1915,12 +1915,12 @@ "type": "string" }, "principal": { - "description": "Output only. The service account that needs permission to create table, upload data to the big query dataset.", + "description": "Output only. The service account that needs permission to create table and upload data to the BigQuery dataset.", "readOnly": true, "type": "string" }, "updateTime": { - "description": "Output only. The most recent time at which the big export was updated. This field is set by the server and will be ignored if provided on export creation or update.", + "description": "Output only. The most recent time at which the BigQuery export was updated. This field is set by the server and will be ignored if provided on export creation or update.", "format": "google-datetime", "readOnly": true, "type": "string" diff --git a/securitycenter/v1beta1/securitycenter-gen.go b/securitycenter/v1beta1/securitycenter-gen.go index 0c1a831a7e1..947044ea8dc 100644 --- a/securitycenter/v1beta1/securitycenter-gen.go +++ b/securitycenter/v1beta1/securitycenter-gen.go @@ -1624,7 +1624,7 @@ type Finding struct { State string `json:"state,omitempty"` // Vulnerability: Represents vulnerability-specific fields like CVE and - // CVS scores. CVE stands for Common Vulnerabilities and Exposures + // CVSS scores. CVE stands for Common Vulnerabilities and Exposures // (https://cve.mitre.org/about/) Vulnerability *Vulnerability `json:"vulnerability,omitempty"` @@ -1787,7 +1787,7 @@ func (s *GetPolicyOptions) MarshalJSON() ([]byte, error) { // GoogleCloudSecuritycenterV1BigQueryExport: Configures how to deliver // Findings to BigQuery Instance. type GoogleCloudSecuritycenterV1BigQueryExport struct { - // CreateTime: Output only. The time at which the big query export was + // CreateTime: Output only. The time at which the BigQuery export was // created. This field is set by the server and will be ignored if // provided on export on creation. CreateTime string `json:"createTime,omitempty"` @@ -1815,7 +1815,7 @@ type GoogleCloudSecuritycenterV1BigQueryExport struct { Filter string `json:"filter,omitempty"` // MostRecentEditor: Output only. Email address of the user who last - // edited the big query export. This field is set by the server and will + // edited the BigQuery export. This field is set by the server and will // be ignored if provided on export creation or update. MostRecentEditor string `json:"mostRecentEditor,omitempty"` @@ -1830,12 +1830,12 @@ type GoogleCloudSecuritycenterV1BigQueryExport struct { Name string `json:"name,omitempty"` // Principal: Output only. The service account that needs permission to - // create table, upload data to the big query dataset. + // create table and upload data to the BigQuery dataset. Principal string `json:"principal,omitempty"` - // UpdateTime: Output only. The most recent time at which the big export - // was updated. This field is set by the server and will be ignored if - // provided on export creation or update. + // UpdateTime: Output only. The most recent time at which the BigQuery + // export was updated. This field is set by the server and will be + // ignored if provided on export creation or update. UpdateTime string `json:"updateTime,omitempty"` // ForceSendFields is a list of field names (e.g. "CreateTime") to diff --git a/securitycenter/v1beta2/securitycenter-api.json b/securitycenter/v1beta2/securitycenter-api.json index a4e1e93aded..0f63b7a3fee 100644 --- a/securitycenter/v1beta2/securitycenter-api.json +++ b/securitycenter/v1beta2/securitycenter-api.json @@ -1981,7 +1981,7 @@ } } }, - "revision": "20221208", + "revision": "20221220", "rootUrl": "https://securitycenter.googleapis.com/", "schemas": { "Access": { @@ -2896,7 +2896,7 @@ }, "vulnerability": { "$ref": "Vulnerability", - "description": "Represents vulnerability-specific fields like CVE and CVS scores. CVE stands for Common Vulnerabilities and Exposures (https://cve.mitre.org/about/)" + "description": "Represents vulnerability-specific fields like CVE and CVSS scores. CVE stands for Common Vulnerabilities and Exposures (https://cve.mitre.org/about/)" } }, "type": "object" @@ -2932,7 +2932,7 @@ "id": "GoogleCloudSecuritycenterV1BigQueryExport", "properties": { "createTime": { - "description": "Output only. The time at which the big query export was created. This field is set by the server and will be ignored if provided on export on creation.", + "description": "Output only. The time at which the BigQuery export was created. This field is set by the server and will be ignored if provided on export on creation.", "format": "google-datetime", "readOnly": true, "type": "string" @@ -2950,7 +2950,7 @@ "type": "string" }, "mostRecentEditor": { - "description": "Output only. Email address of the user who last edited the big query export. This field is set by the server and will be ignored if provided on export creation or update.", + "description": "Output only. Email address of the user who last edited the BigQuery export. This field is set by the server and will be ignored if provided on export creation or update.", "readOnly": true, "type": "string" }, @@ -2959,12 +2959,12 @@ "type": "string" }, "principal": { - "description": "Output only. The service account that needs permission to create table, upload data to the big query dataset.", + "description": "Output only. The service account that needs permission to create table and upload data to the BigQuery dataset.", "readOnly": true, "type": "string" }, "updateTime": { - "description": "Output only. The most recent time at which the big export was updated. This field is set by the server and will be ignored if provided on export creation or update.", + "description": "Output only. The most recent time at which the BigQuery export was updated. This field is set by the server and will be ignored if provided on export creation or update.", "format": "google-datetime", "readOnly": true, "type": "string" diff --git a/securitycenter/v1beta2/securitycenter-gen.go b/securitycenter/v1beta2/securitycenter-gen.go index 19ff39a9f21..a807815b88d 100644 --- a/securitycenter/v1beta2/securitycenter-gen.go +++ b/securitycenter/v1beta2/securitycenter-gen.go @@ -1707,7 +1707,7 @@ type Finding struct { State string `json:"state,omitempty"` // Vulnerability: Represents vulnerability-specific fields like CVE and - // CVS scores. CVE stands for Common Vulnerabilities and Exposures + // CVSS scores. CVE stands for Common Vulnerabilities and Exposures // (https://cve.mitre.org/about/) Vulnerability *Vulnerability `json:"vulnerability,omitempty"` @@ -1800,7 +1800,7 @@ func (s *Geolocation) MarshalJSON() ([]byte, error) { // GoogleCloudSecuritycenterV1BigQueryExport: Configures how to deliver // Findings to BigQuery Instance. type GoogleCloudSecuritycenterV1BigQueryExport struct { - // CreateTime: Output only. The time at which the big query export was + // CreateTime: Output only. The time at which the BigQuery export was // created. This field is set by the server and will be ignored if // provided on export on creation. CreateTime string `json:"createTime,omitempty"` @@ -1828,7 +1828,7 @@ type GoogleCloudSecuritycenterV1BigQueryExport struct { Filter string `json:"filter,omitempty"` // MostRecentEditor: Output only. Email address of the user who last - // edited the big query export. This field is set by the server and will + // edited the BigQuery export. This field is set by the server and will // be ignored if provided on export creation or update. MostRecentEditor string `json:"mostRecentEditor,omitempty"` @@ -1843,12 +1843,12 @@ type GoogleCloudSecuritycenterV1BigQueryExport struct { Name string `json:"name,omitempty"` // Principal: Output only. The service account that needs permission to - // create table, upload data to the big query dataset. + // create table and upload data to the BigQuery dataset. Principal string `json:"principal,omitempty"` - // UpdateTime: Output only. The most recent time at which the big export - // was updated. This field is set by the server and will be ignored if - // provided on export creation or update. + // UpdateTime: Output only. The most recent time at which the BigQuery + // export was updated. This field is set by the server and will be + // ignored if provided on export creation or update. UpdateTime string `json:"updateTime,omitempty"` // ForceSendFields is a list of field names (e.g. "CreateTime") to diff --git a/servicenetworking/v1/servicenetworking-api.json b/servicenetworking/v1/servicenetworking-api.json index 4f60c1f6972..3d688fd055a 100644 --- a/servicenetworking/v1/servicenetworking-api.json +++ b/servicenetworking/v1/servicenetworking-api.json @@ -865,7 +865,7 @@ } } }, - "revision": "20221212", + "revision": "20221218", "rootUrl": "https://servicenetworking.googleapis.com/", "schemas": { "AddDnsRecordSetMetadata": { @@ -1001,7 +1001,7 @@ "type": "string" }, "ipPrefixLength": { - "description": "Required. The prefix length of the subnet's IP address range. Use CIDR range notation, such as `30` to provision a subnet with an `x.x.x.x/30` CIDR range. The IP address range is drawn from a pool of available ranges in the service consumer's allocated range.", + "description": "Required. The prefix length of the subnet's IP address range. Use CIDR range notation, such as `29` to provision a subnet with an `x.x.x.x/29` CIDR range. The IP address range is drawn from a pool of available ranges in the service consumer's allocated range. GCE disallows subnets with prefix_length \u003e 29", "format": "int32", "type": "integer" }, @@ -3050,7 +3050,7 @@ "id": "RangeReservation", "properties": { "ipPrefixLength": { - "description": "Required. The size of the desired subnet. Use usual CIDR range notation. For example, '30' to find unused x.x.x.x/30 CIDR range. The goal is to determine if one of the allocated ranges has enough free space for a subnet of the requested size.", + "description": "Required. The size of the desired subnet. Use usual CIDR range notation. For example, '29' to find unused x.x.x.x/29 CIDR range. The goal is to determine if one of the allocated ranges has enough free space for a subnet of the requested size. GCE disallows subnets with prefix_length \u003e 29", "format": "int32", "type": "integer" }, @@ -3062,7 +3062,7 @@ "type": "array" }, "secondaryRangeIpPrefixLengths": { - "description": "Optional. The size of the desired secondary ranges for the subnet. Use usual CIDR range notation. For example, '30' to find unused x.x.x.x/30 CIDR range. The goal is to determine that the allocated ranges have enough free space for all the requested secondary ranges.", + "description": "Optional. The size of the desired secondary ranges for the subnet. Use usual CIDR range notation. For example, '29' to find unused x.x.x.x/29 CIDR range. The goal is to determine that the allocated ranges have enough free space for all the requested secondary ranges. GCE disallows subnets with prefix_length \u003e 29", "items": { "format": "int32", "type": "integer" diff --git a/servicenetworking/v1/servicenetworking-gen.go b/servicenetworking/v1/servicenetworking-gen.go index ed5c252245f..e89fd909ea1 100644 --- a/servicenetworking/v1/servicenetworking-gen.go +++ b/servicenetworking/v1/servicenetworking-gen.go @@ -511,10 +511,10 @@ type AddSubnetworkRequest struct { Description string `json:"description,omitempty"` // IpPrefixLength: Required. The prefix length of the subnet's IP - // address range. Use CIDR range notation, such as `30` to provision a - // subnet with an `x.x.x.x/30` CIDR range. The IP address range is drawn + // address range. Use CIDR range notation, such as `29` to provision a + // subnet with an `x.x.x.x/29` CIDR range. The IP address range is drawn // from a pool of available ranges in the service consumer's allocated - // range. + // range. GCE disallows subnets with prefix_length > 29 IpPrefixLength int64 `json:"ipPrefixLength,omitempty"` // OutsideAllocationPublicIpRange: Optional. Enable outside allocation @@ -4463,9 +4463,10 @@ func (s *Range) MarshalJSON() ([]byte, error) { // RangeReservation: Represents a range reservation. type RangeReservation struct { // IpPrefixLength: Required. The size of the desired subnet. Use usual - // CIDR range notation. For example, '30' to find unused x.x.x.x/30 CIDR + // CIDR range notation. For example, '29' to find unused x.x.x.x/29 CIDR // range. The goal is to determine if one of the allocated ranges has - // enough free space for a subnet of the requested size. + // enough free space for a subnet of the requested size. GCE disallows + // subnets with prefix_length > 29 IpPrefixLength int64 `json:"ipPrefixLength,omitempty"` // RequestedRanges: Optional. The name of one or more allocated IP @@ -4478,9 +4479,10 @@ type RangeReservation struct { // SecondaryRangeIpPrefixLengths: Optional. The size of the desired // secondary ranges for the subnet. Use usual CIDR range notation. For - // example, '30' to find unused x.x.x.x/30 CIDR range. The goal is to + // example, '29' to find unused x.x.x.x/29 CIDR range. The goal is to // determine that the allocated ranges have enough free space for all - // the requested secondary ranges. + // the requested secondary ranges. GCE disallows subnets with + // prefix_length > 29 SecondaryRangeIpPrefixLengths []int64 `json:"secondaryRangeIpPrefixLengths,omitempty"` // SubnetworkCandidates: Optional. List of subnetwork candidates to diff --git a/sheets/v4/sheets-api.json b/sheets/v4/sheets-api.json index 6b1b36ca14c..c71278ab608 100644 --- a/sheets/v4/sheets-api.json +++ b/sheets/v4/sheets-api.json @@ -169,7 +169,7 @@ ] }, "get": { - "description": "Returns the spreadsheet at the given ID. The caller must specify the spreadsheet ID. By default, data within grids is not returned. You can include grid data in one of 2 ways: * Specify a field mask listing your desired fields using the `fields` URL parameter in HTTP * Set the includeGridData URL parameter to true. If a field mask is set, the `includeGridData` parameter is ignored For large spreadsheets, as a best practice, retrieve only the specific spreadsheet fields that you want. To retrieve only subsets of spreadsheet data, use the ranges URL parameter. Ranges are specified using [A1 notation](/sheets/api/guides/concepts#cell). You can define a single cell (for example, `A1`) or multiple cells (for example, `A1:D5`). You can also get cells from other sheets within the same spreadsheet (for example, `Sheet2!A1:C4`) or retrieve multiple ranges at once (for example, `?ranges=A1:D5\u0026ranges=Sheet2!A1:C4`). Limiting the range returns only the portions of the spreadsheet that intersect the requested ranges.", + "description": "Returns the spreadsheet at the given ID. The caller must specify the spreadsheet ID. By default, data within grids is not returned. You can include grid data in one of 2 ways: * Specify a [field mask](https://developers.google.com/sheets/api/guides/field-masks) listing your desired fields using the `fields` URL parameter in HTTP * Set the includeGridData URL parameter to true. If a field mask is set, the `includeGridData` parameter is ignored For large spreadsheets, as a best practice, retrieve only the specific spreadsheet fields that you want. To retrieve only subsets of spreadsheet data, use the ranges URL parameter. Ranges are specified using [A1 notation](/sheets/api/guides/concepts#cell). You can define a single cell (for example, `A1`) or multiple cells (for example, `A1:D5`). You can also get cells from other sheets within the same spreadsheet (for example, `Sheet2!A1:C4`) or retrieve multiple ranges at once (for example, `?ranges=A1:D5\u0026ranges=Sheet2!A1:C4`). Limiting the range returns only the portions of the spreadsheet that intersect the requested ranges.", "flatPath": "v4/spreadsheets/{spreadsheetId}", "httpMethod": "GET", "id": "sheets.spreadsheets.get", @@ -208,7 +208,7 @@ ] }, "getByDataFilter": { - "description": "Returns the spreadsheet at the given ID. The caller must specify the spreadsheet ID. This method differs from GetSpreadsheet in that it allows selecting which subsets of spreadsheet data to return by specifying a dataFilters parameter. Multiple DataFilters can be specified. Specifying one or more data filters returns the portions of the spreadsheet that intersect ranges matched by any of the filters. By default, data within grids is not returned. You can include grid data one of 2 ways: * Specify a field mask listing your desired fields using the `fields` URL parameter in HTTP * Set the includeGridData parameter to true. If a field mask is set, the `includeGridData` parameter is ignored For large spreadsheets, as a best practice, retrieve only the specific spreadsheet fields that you want.", + "description": "Returns the spreadsheet at the given ID. The caller must specify the spreadsheet ID. This method differs from GetSpreadsheet in that it allows selecting which subsets of spreadsheet data to return by specifying a dataFilters parameter. Multiple DataFilters can be specified. Specifying one or more data filters returns the portions of the spreadsheet that intersect ranges matched by any of the filters. By default, data within grids is not returned. You can include grid data one of 2 ways: * Specify a [field mask](https://developers.google.com/sheets/api/guides/field-masks) listing your desired fields using the `fields` URL parameter in HTTP * Set the includeGridData parameter to true. If a field mask is set, the `includeGridData` parameter is ignored For large spreadsheets, as a best practice, retrieve only the specific spreadsheet fields that you want.", "flatPath": "v4/spreadsheets/{spreadsheetId}:getByDataFilter", "httpMethod": "POST", "id": "sheets.spreadsheets.getByDataFilter", @@ -870,7 +870,7 @@ } } }, - "revision": "20221005", + "revision": "20221219", "rootUrl": "https://sheets.googleapis.com/", "schemas": { "AddBandingRequest": { diff --git a/sheets/v4/sheets-gen.go b/sheets/v4/sheets-gen.go index f46271a840b..2c574a18a7d 100644 --- a/sheets/v4/sheets-gen.go +++ b/sheets/v4/sheets-gen.go @@ -11895,19 +11895,19 @@ type SpreadsheetsGetCall struct { // Get: Returns the spreadsheet at the given ID. The caller must specify // the spreadsheet ID. By default, data within grids is not returned. // You can include grid data in one of 2 ways: * Specify a field mask -// listing your desired fields using the `fields` URL parameter in HTTP -// * Set the includeGridData URL parameter to true. If a field mask is -// set, the `includeGridData` parameter is ignored For large -// spreadsheets, as a best practice, retrieve only the specific -// spreadsheet fields that you want. To retrieve only subsets of -// spreadsheet data, use the ranges URL parameter. Ranges are specified -// using A1 notation (/sheets/api/guides/concepts#cell). You can define -// a single cell (for example, `A1`) or multiple cells (for example, -// `A1:D5`). You can also get cells from other sheets within the same -// spreadsheet (for example, `Sheet2!A1:C4`) or retrieve multiple ranges -// at once (for example, `?ranges=A1:D5&ranges=Sheet2!A1:C4`). Limiting -// the range returns only the portions of the spreadsheet that intersect -// the requested ranges. +// (https://developers.google.com/sheets/api/guides/field-masks) listing +// your desired fields using the `fields` URL parameter in HTTP * Set +// the includeGridData URL parameter to true. If a field mask is set, +// the `includeGridData` parameter is ignored For large spreadsheets, as +// a best practice, retrieve only the specific spreadsheet fields that +// you want. To retrieve only subsets of spreadsheet data, use the +// ranges URL parameter. Ranges are specified using A1 notation +// (/sheets/api/guides/concepts#cell). You can define a single cell (for +// example, `A1`) or multiple cells (for example, `A1:D5`). You can also +// get cells from other sheets within the same spreadsheet (for example, +// `Sheet2!A1:C4`) or retrieve multiple ranges at once (for example, +// `?ranges=A1:D5&ranges=Sheet2!A1:C4`). Limiting the range returns only +// the portions of the spreadsheet that intersect the requested ranges. // // - spreadsheetId: The spreadsheet to request. func (r *SpreadsheetsService) Get(spreadsheetId string) *SpreadsheetsGetCall { @@ -12030,7 +12030,7 @@ func (c *SpreadsheetsGetCall) Do(opts ...googleapi.CallOption) (*Spreadsheet, er } return ret, nil // { - // "description": "Returns the spreadsheet at the given ID. The caller must specify the spreadsheet ID. By default, data within grids is not returned. You can include grid data in one of 2 ways: * Specify a field mask listing your desired fields using the `fields` URL parameter in HTTP * Set the includeGridData URL parameter to true. If a field mask is set, the `includeGridData` parameter is ignored For large spreadsheets, as a best practice, retrieve only the specific spreadsheet fields that you want. To retrieve only subsets of spreadsheet data, use the ranges URL parameter. Ranges are specified using [A1 notation](/sheets/api/guides/concepts#cell). You can define a single cell (for example, `A1`) or multiple cells (for example, `A1:D5`). You can also get cells from other sheets within the same spreadsheet (for example, `Sheet2!A1:C4`) or retrieve multiple ranges at once (for example, `?ranges=A1:D5\u0026ranges=Sheet2!A1:C4`). Limiting the range returns only the portions of the spreadsheet that intersect the requested ranges.", + // "description": "Returns the spreadsheet at the given ID. The caller must specify the spreadsheet ID. By default, data within grids is not returned. You can include grid data in one of 2 ways: * Specify a [field mask](https://developers.google.com/sheets/api/guides/field-masks) listing your desired fields using the `fields` URL parameter in HTTP * Set the includeGridData URL parameter to true. If a field mask is set, the `includeGridData` parameter is ignored For large spreadsheets, as a best practice, retrieve only the specific spreadsheet fields that you want. To retrieve only subsets of spreadsheet data, use the ranges URL parameter. Ranges are specified using [A1 notation](/sheets/api/guides/concepts#cell). You can define a single cell (for example, `A1`) or multiple cells (for example, `A1:D5`). You can also get cells from other sheets within the same spreadsheet (for example, `Sheet2!A1:C4`) or retrieve multiple ranges at once (for example, `?ranges=A1:D5\u0026ranges=Sheet2!A1:C4`). Limiting the range returns only the portions of the spreadsheet that intersect the requested ranges.", // "flatPath": "v4/spreadsheets/{spreadsheetId}", // "httpMethod": "GET", // "id": "sheets.spreadsheets.get", @@ -12090,11 +12090,12 @@ type SpreadsheetsGetByDataFilterCall struct { // filters returns the portions of the spreadsheet that intersect ranges // matched by any of the filters. By default, data within grids is not // returned. You can include grid data one of 2 ways: * Specify a field -// mask listing your desired fields using the `fields` URL parameter in -// HTTP * Set the includeGridData parameter to true. If a field mask is -// set, the `includeGridData` parameter is ignored For large -// spreadsheets, as a best practice, retrieve only the specific -// spreadsheet fields that you want. +// mask (https://developers.google.com/sheets/api/guides/field-masks) +// listing your desired fields using the `fields` URL parameter in HTTP +// * Set the includeGridData parameter to true. If a field mask is set, +// the `includeGridData` parameter is ignored For large spreadsheets, as +// a best practice, retrieve only the specific spreadsheet fields that +// you want. // // - spreadsheetId: The spreadsheet to request. func (r *SpreadsheetsService) GetByDataFilter(spreadsheetId string, getspreadsheetbydatafilterrequest *GetSpreadsheetByDataFilterRequest) *SpreadsheetsGetByDataFilterCall { @@ -12195,7 +12196,7 @@ func (c *SpreadsheetsGetByDataFilterCall) Do(opts ...googleapi.CallOption) (*Spr } return ret, nil // { - // "description": "Returns the spreadsheet at the given ID. The caller must specify the spreadsheet ID. This method differs from GetSpreadsheet in that it allows selecting which subsets of spreadsheet data to return by specifying a dataFilters parameter. Multiple DataFilters can be specified. Specifying one or more data filters returns the portions of the spreadsheet that intersect ranges matched by any of the filters. By default, data within grids is not returned. You can include grid data one of 2 ways: * Specify a field mask listing your desired fields using the `fields` URL parameter in HTTP * Set the includeGridData parameter to true. If a field mask is set, the `includeGridData` parameter is ignored For large spreadsheets, as a best practice, retrieve only the specific spreadsheet fields that you want.", + // "description": "Returns the spreadsheet at the given ID. The caller must specify the spreadsheet ID. This method differs from GetSpreadsheet in that it allows selecting which subsets of spreadsheet data to return by specifying a dataFilters parameter. Multiple DataFilters can be specified. Specifying one or more data filters returns the portions of the spreadsheet that intersect ranges matched by any of the filters. By default, data within grids is not returned. You can include grid data one of 2 ways: * Specify a [field mask](https://developers.google.com/sheets/api/guides/field-masks) listing your desired fields using the `fields` URL parameter in HTTP * Set the includeGridData parameter to true. If a field mask is set, the `includeGridData` parameter is ignored For large spreadsheets, as a best practice, retrieve only the specific spreadsheet fields that you want.", // "flatPath": "v4/spreadsheets/{spreadsheetId}:getByDataFilter", // "httpMethod": "POST", // "id": "sheets.spreadsheets.getByDataFilter", diff --git a/texttospeech/v1/texttospeech-api.json b/texttospeech/v1/texttospeech-api.json index 3ff6482cf99..aa25a1ed9e4 100644 --- a/texttospeech/v1/texttospeech-api.json +++ b/texttospeech/v1/texttospeech-api.json @@ -159,108 +159,110 @@ "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ] - }, - "get": { - "description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.", - "flatPath": "v1/operations/{operationsId}", - "httpMethod": "GET", - "id": "texttospeech.operations.get", - "parameterOrder": [ - "name" - ], - "parameters": { - "name": { - "description": "The name of the operation resource.", - "location": "path", - "pattern": "^operations/.*$", - "required": true, - "type": "string" - } - }, - "path": "v1/{+name}", - "response": { - "$ref": "Operation" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, - "list": { - "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to override the binding to use different resource name schemes, such as `users/*/operations`. To override the binding, API services can add a binding such as `\"/v1/{name=users/*}/operations\"` to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must ensure the name binding is the parent resource, without the operations collection id.", - "flatPath": "v1/operations", - "httpMethod": "GET", - "id": "texttospeech.operations.list", - "parameterOrder": [ - "name" - ], - "parameters": { - "filter": { - "description": "The standard list filter.", - "location": "query", - "type": "string" - }, - "name": { - "description": "The name of the operation's parent resource.", - "location": "path", - "pattern": "^operations$", - "required": true, - "type": "string" - }, - "pageSize": { - "description": "The standard list page size.", - "format": "int32", - "location": "query", - "type": "integer" - }, - "pageToken": { - "description": "The standard list page token.", - "location": "query", - "type": "string" - } - }, - "path": "v1/{+name}", - "response": { - "$ref": "ListOperationsResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] } } }, "projects": { "resources": { "locations": { + "methods": { + "synthesizeLongAudio": { + "description": "Synthesizes long form text asynchronously.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}:synthesizeLongAudio", + "httpMethod": "POST", + "id": "texttospeech.projects.locations.synthesizeLongAudio", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "The resource states of the request in the form of `projects/*/locations/*/voices/*`.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}:synthesizeLongAudio", + "request": { + "$ref": "SynthesizeLongAudioRequest" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + }, "resources": { - "voices": { + "operations": { "methods": { - "synthesizeLongAudio": { - "description": "Synthesizes long form text asynchronously.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/voices/{voicesId}:SynthesizeLongAudio", - "httpMethod": "POST", - "id": "texttospeech.projects.locations.voices.synthesizeLongAudio", + "get": { + "description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}", + "httpMethod": "GET", + "id": "texttospeech.projects.locations.operations.get", "parameterOrder": [ - "parent" + "name" ], "parameters": { - "parent": { - "description": "The resource states of the request in the form of projects/*/locations/*/voices/*.", + "name": { + "description": "The name of the operation resource.", "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/voices/[^/]+$", + "pattern": "^projects/[^/]+/locations/[^/]+/operations/[^/]+$", "required": true, "type": "string" } }, - "path": "v1/{+parent}:SynthesizeLongAudio", - "request": { - "$ref": "SynthesizeLongAudioRequest" - }, + "path": "v1/{+name}", "response": { "$ref": "Operation" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ] + }, + "list": { + "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to override the binding to use different resource name schemes, such as `users/*/operations`. To override the binding, API services can add a binding such as `\"/v1/{name=users/*}/operations\"` to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must ensure the name binding is the parent resource, without the operations collection id.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/operations", + "httpMethod": "GET", + "id": "texttospeech.projects.locations.operations.list", + "parameterOrder": [ + "name" + ], + "parameters": { + "filter": { + "description": "The standard list filter.", + "location": "query", + "type": "string" + }, + "name": { + "description": "The name of the operation's parent resource.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + }, + "pageSize": { + "description": "The standard list page size.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "The standard list page token.", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+name}/operations", + "response": { + "$ref": "ListOperationsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] } } } @@ -316,7 +318,7 @@ } } }, - "revision": "20221213", + "revision": "20221219", "rootUrl": "https://texttospeech.googleapis.com/", "schemas": { "AudioConfig": { @@ -410,28 +412,6 @@ "properties": {}, "type": "object" }, - "GoogleCloudTexttospeechV1SynthesizeLongAudioMetadata": { - "description": "Metadata for response returned by the `SynthesizeLongAudio` method.", - "id": "GoogleCloudTexttospeechV1SynthesizeLongAudioMetadata", - "properties": { - "lastUpdateTime": { - "description": "Time of the most recent processing update.", - "format": "google-datetime", - "type": "string" - }, - "progressPercentage": { - "description": "The progress of the most recent processing update in percentage, ie. 70.0%.", - "format": "double", - "type": "number" - }, - "startTime": { - "description": "Time when the request was received.", - "format": "google-datetime", - "type": "string" - } - }, - "type": "object" - }, "ListOperationsResponse": { "description": "The response message for Operations.ListOperations.", "id": "ListOperationsResponse", @@ -541,28 +521,6 @@ }, "type": "object" }, - "SynthesizeLongAudioMetadata": { - "description": "Metadata for response returned by the `SynthesizeLongAudio` method.", - "id": "SynthesizeLongAudioMetadata", - "properties": { - "lastUpdateTime": { - "description": "Time of the most recent processing update.", - "format": "google-datetime", - "type": "string" - }, - "progressPercentage": { - "description": "The progress of the most recent processing update in percentage, ie. 70.0%.", - "format": "double", - "type": "number" - }, - "startTime": { - "description": "Time when the request was received.", - "format": "google-datetime", - "type": "string" - } - }, - "type": "object" - }, "SynthesizeLongAudioRequest": { "description": "The top-level message sent by the client for the `SynthesizeLongAudio` method.", "id": "SynthesizeLongAudioRequest", diff --git a/texttospeech/v1/texttospeech-gen.go b/texttospeech/v1/texttospeech-gen.go index af257730577..39c526fafe1 100644 --- a/texttospeech/v1/texttospeech-gen.go +++ b/texttospeech/v1/texttospeech-gen.go @@ -171,22 +171,22 @@ type ProjectsService struct { func NewProjectsLocationsService(s *Service) *ProjectsLocationsService { rs := &ProjectsLocationsService{s: s} - rs.Voices = NewProjectsLocationsVoicesService(s) + rs.Operations = NewProjectsLocationsOperationsService(s) return rs } type ProjectsLocationsService struct { s *Service - Voices *ProjectsLocationsVoicesService + Operations *ProjectsLocationsOperationsService } -func NewProjectsLocationsVoicesService(s *Service) *ProjectsLocationsVoicesService { - rs := &ProjectsLocationsVoicesService{s: s} +func NewProjectsLocationsOperationsService(s *Service) *ProjectsLocationsOperationsService { + rs := &ProjectsLocationsOperationsService{s: s} return rs } -type ProjectsLocationsVoicesService struct { +type ProjectsLocationsOperationsService struct { s *Service } @@ -373,57 +373,6 @@ type Empty struct { googleapi.ServerResponse `json:"-"` } -// GoogleCloudTexttospeechV1SynthesizeLongAudioMetadata: Metadata for -// response returned by the `SynthesizeLongAudio` method. -type GoogleCloudTexttospeechV1SynthesizeLongAudioMetadata struct { - // LastUpdateTime: Time of the most recent processing update. - LastUpdateTime string `json:"lastUpdateTime,omitempty"` - - // ProgressPercentage: The progress of the most recent processing update - // in percentage, ie. 70.0%. - ProgressPercentage float64 `json:"progressPercentage,omitempty"` - - // StartTime: Time when the request was received. - StartTime string `json:"startTime,omitempty"` - - // ForceSendFields is a list of field names (e.g. "LastUpdateTime") 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. "LastUpdateTime") 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 *GoogleCloudTexttospeechV1SynthesizeLongAudioMetadata) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudTexttospeechV1SynthesizeLongAudioMetadata - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -func (s *GoogleCloudTexttospeechV1SynthesizeLongAudioMetadata) UnmarshalJSON(data []byte) error { - type NoMethod GoogleCloudTexttospeechV1SynthesizeLongAudioMetadata - var s1 struct { - ProgressPercentage gensupport.JSONFloat64 `json:"progressPercentage"` - *NoMethod - } - s1.NoMethod = (*NoMethod)(s) - if err := json.Unmarshal(data, &s1); err != nil { - return err - } - s.ProgressPercentage = float64(s1.ProgressPercentage) - return nil -} - // ListOperationsResponse: The response message for // Operations.ListOperations. type ListOperationsResponse struct { @@ -637,57 +586,6 @@ func (s *SynthesisInput) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// SynthesizeLongAudioMetadata: Metadata for response returned by the -// `SynthesizeLongAudio` method. -type SynthesizeLongAudioMetadata struct { - // LastUpdateTime: Time of the most recent processing update. - LastUpdateTime string `json:"lastUpdateTime,omitempty"` - - // ProgressPercentage: The progress of the most recent processing update - // in percentage, ie. 70.0%. - ProgressPercentage float64 `json:"progressPercentage,omitempty"` - - // StartTime: Time when the request was received. - StartTime string `json:"startTime,omitempty"` - - // ForceSendFields is a list of field names (e.g. "LastUpdateTime") 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. "LastUpdateTime") 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 *SynthesizeLongAudioMetadata) MarshalJSON() ([]byte, error) { - type NoMethod SynthesizeLongAudioMetadata - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -func (s *SynthesizeLongAudioMetadata) UnmarshalJSON(data []byte) error { - type NoMethod SynthesizeLongAudioMetadata - var s1 struct { - ProgressPercentage gensupport.JSONFloat64 `json:"progressPercentage"` - *NoMethod - } - s1.NoMethod = (*NoMethod)(s) - if err := json.Unmarshal(data, &s1); err != nil { - return err - } - s.ProgressPercentage = float64(s1.ProgressPercentage) - return nil -} - // SynthesizeLongAudioRequest: The top-level message sent by the client // for the `SynthesizeLongAudio` method. type SynthesizeLongAudioRequest struct { @@ -1209,9 +1107,152 @@ func (c *OperationsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) } -// method id "texttospeech.operations.get": +// method id "texttospeech.projects.locations.synthesizeLongAudio": + +type ProjectsLocationsSynthesizeLongAudioCall struct { + s *Service + parent string + synthesizelongaudiorequest *SynthesizeLongAudioRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// SynthesizeLongAudio: Synthesizes long form text asynchronously. +// +// - parent: The resource states of the request in the form of +// `projects/*/locations/*/voices/*`. +func (r *ProjectsLocationsService) SynthesizeLongAudio(parent string, synthesizelongaudiorequest *SynthesizeLongAudioRequest) *ProjectsLocationsSynthesizeLongAudioCall { + c := &ProjectsLocationsSynthesizeLongAudioCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.synthesizelongaudiorequest = synthesizelongaudiorequest + 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 *ProjectsLocationsSynthesizeLongAudioCall) Fields(s ...googleapi.Field) *ProjectsLocationsSynthesizeLongAudioCall { + 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 *ProjectsLocationsSynthesizeLongAudioCall) Context(ctx context.Context) *ProjectsLocationsSynthesizeLongAudioCall { + 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 *ProjectsLocationsSynthesizeLongAudioCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsSynthesizeLongAudioCall) 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.synthesizelongaudiorequest) + 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/{+parent}:synthesizeLongAudio") + 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{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "texttospeech.projects.locations.synthesizeLongAudio" 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 *ProjectsLocationsSynthesizeLongAudioCall) 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": "Synthesizes long form text asynchronously.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}:synthesizeLongAudio", + // "httpMethod": "POST", + // "id": "texttospeech.projects.locations.synthesizeLongAudio", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "parent": { + // "description": "The resource states of the request in the form of `projects/*/locations/*/voices/*`.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+parent}:synthesizeLongAudio", + // "request": { + // "$ref": "SynthesizeLongAudioRequest" + // }, + // "response": { + // "$ref": "Operation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "texttospeech.projects.locations.operations.get": -type OperationsGetCall struct { +type ProjectsLocationsOperationsGetCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -1225,8 +1266,8 @@ type OperationsGetCall struct { // recommended by the API service. // // - name: The name of the operation resource. -func (r *OperationsService) Get(name string) *OperationsGetCall { - c := &OperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ProjectsLocationsOperationsService) Get(name string) *ProjectsLocationsOperationsGetCall { + c := &ProjectsLocationsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -1234,7 +1275,7 @@ func (r *OperationsService) Get(name string) *OperationsGetCall { // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *OperationsGetCall) Fields(s ...googleapi.Field) *OperationsGetCall { +func (c *ProjectsLocationsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -1244,7 +1285,7 @@ func (c *OperationsGetCall) Fields(s ...googleapi.Field) *OperationsGetCall { // 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 *OperationsGetCall) IfNoneMatch(entityTag string) *OperationsGetCall { +func (c *ProjectsLocationsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsOperationsGetCall { c.ifNoneMatch_ = entityTag return c } @@ -1252,21 +1293,21 @@ func (c *OperationsGetCall) IfNoneMatch(entityTag string) *OperationsGetCall { // 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 *OperationsGetCall) Context(ctx context.Context) *OperationsGetCall { +func (c *ProjectsLocationsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsOperationsGetCall { 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 *OperationsGetCall) Header() http.Header { +func (c *ProjectsLocationsOperationsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *OperationsGetCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsOperationsGetCall) 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_ { @@ -1292,14 +1333,14 @@ func (c *OperationsGetCall) doRequest(alt string) (*http.Response, error) { return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "texttospeech.operations.get" call. +// Do executes the "texttospeech.projects.locations.operations.get" 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 *OperationsGetCall) Do(opts ...googleapi.CallOption) (*Operation, error) { +func (c *ProjectsLocationsOperationsGetCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -1331,9 +1372,9 @@ func (c *OperationsGetCall) Do(opts ...googleapi.CallOption) (*Operation, error) return ret, nil // { // "description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.", - // "flatPath": "v1/operations/{operationsId}", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}", // "httpMethod": "GET", - // "id": "texttospeech.operations.get", + // "id": "texttospeech.projects.locations.operations.get", // "parameterOrder": [ // "name" // ], @@ -1341,7 +1382,7 @@ func (c *OperationsGetCall) Do(opts ...googleapi.CallOption) (*Operation, error) // "name": { // "description": "The name of the operation resource.", // "location": "path", - // "pattern": "^operations/.*$", + // "pattern": "^projects/[^/]+/locations/[^/]+/operations/[^/]+$", // "required": true, // "type": "string" // } @@ -1357,9 +1398,9 @@ func (c *OperationsGetCall) Do(opts ...googleapi.CallOption) (*Operation, error) } -// method id "texttospeech.operations.list": +// method id "texttospeech.projects.locations.operations.list": -type OperationsListCall struct { +type ProjectsLocationsOperationsListCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -1380,29 +1421,29 @@ type OperationsListCall struct { // collection id. // // - name: The name of the operation's parent resource. -func (r *OperationsService) List(name string) *OperationsListCall { - c := &OperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ProjectsLocationsOperationsService) List(name string) *ProjectsLocationsOperationsListCall { + c := &ProjectsLocationsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } // Filter sets the optional parameter "filter": The standard list // filter. -func (c *OperationsListCall) Filter(filter string) *OperationsListCall { +func (c *ProjectsLocationsOperationsListCall) Filter(filter string) *ProjectsLocationsOperationsListCall { c.urlParams_.Set("filter", filter) return c } // PageSize sets the optional parameter "pageSize": The standard list // page size. -func (c *OperationsListCall) PageSize(pageSize int64) *OperationsListCall { +func (c *ProjectsLocationsOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsOperationsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } // PageToken sets the optional parameter "pageToken": The standard list // page token. -func (c *OperationsListCall) PageToken(pageToken string) *OperationsListCall { +func (c *ProjectsLocationsOperationsListCall) PageToken(pageToken string) *ProjectsLocationsOperationsListCall { c.urlParams_.Set("pageToken", pageToken) return c } @@ -1410,7 +1451,7 @@ func (c *OperationsListCall) PageToken(pageToken string) *OperationsListCall { // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *OperationsListCall) Fields(s ...googleapi.Field) *OperationsListCall { +func (c *ProjectsLocationsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -1420,7 +1461,7 @@ func (c *OperationsListCall) Fields(s ...googleapi.Field) *OperationsListCall { // 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 *OperationsListCall) IfNoneMatch(entityTag string) *OperationsListCall { +func (c *ProjectsLocationsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsOperationsListCall { c.ifNoneMatch_ = entityTag return c } @@ -1428,21 +1469,21 @@ func (c *OperationsListCall) IfNoneMatch(entityTag string) *OperationsListCall { // 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 *OperationsListCall) Context(ctx context.Context) *OperationsListCall { +func (c *ProjectsLocationsOperationsListCall) Context(ctx context.Context) *ProjectsLocationsOperationsListCall { 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 *OperationsListCall) Header() http.Header { +func (c *ProjectsLocationsOperationsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *OperationsListCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsOperationsListCall) 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_ { @@ -1455,7 +1496,7 @@ func (c *OperationsListCall) doRequest(alt string) (*http.Response, error) { var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/operations") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -1468,14 +1509,14 @@ func (c *OperationsListCall) doRequest(alt string) (*http.Response, error) { return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "texttospeech.operations.list" call. +// Do executes the "texttospeech.projects.locations.operations.list" call. // Exactly one of *ListOperationsResponse or error will be non-nil. Any // non-2xx status code is an error. Response headers are in either // *ListOperationsResponse.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 *OperationsListCall) Do(opts ...googleapi.CallOption) (*ListOperationsResponse, error) { +func (c *ProjectsLocationsOperationsListCall) Do(opts ...googleapi.CallOption) (*ListOperationsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -1507,9 +1548,9 @@ func (c *OperationsListCall) Do(opts ...googleapi.CallOption) (*ListOperationsRe return ret, nil // { // "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to override the binding to use different resource name schemes, such as `users/*/operations`. To override the binding, API services can add a binding such as `\"/v1/{name=users/*}/operations\"` to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must ensure the name binding is the parent resource, without the operations collection id.", - // "flatPath": "v1/operations", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/operations", // "httpMethod": "GET", - // "id": "texttospeech.operations.list", + // "id": "texttospeech.projects.locations.operations.list", // "parameterOrder": [ // "name" // ], @@ -1522,7 +1563,7 @@ func (c *OperationsListCall) Do(opts ...googleapi.CallOption) (*ListOperationsRe // "name": { // "description": "The name of the operation's parent resource.", // "location": "path", - // "pattern": "^operations$", + // "pattern": "^projects/[^/]+/locations/[^/]+$", // "required": true, // "type": "string" // }, @@ -1538,7 +1579,7 @@ func (c *OperationsListCall) Do(opts ...googleapi.CallOption) (*ListOperationsRe // "type": "string" // } // }, - // "path": "v1/{+name}", + // "path": "v1/{+name}/operations", // "response": { // "$ref": "ListOperationsResponse" // }, @@ -1552,7 +1593,7 @@ func (c *OperationsListCall) Do(opts ...googleapi.CallOption) (*ListOperationsRe // 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 *OperationsListCall) Pages(ctx context.Context, f func(*ListOperationsResponse) error) error { +func (c *ProjectsLocationsOperationsListCall) Pages(ctx context.Context, f func(*ListOperationsResponse) error) error { c.ctx_ = ctx defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point for { @@ -1570,149 +1611,6 @@ func (c *OperationsListCall) Pages(ctx context.Context, f func(*ListOperationsRe } } -// method id "texttospeech.projects.locations.voices.synthesizeLongAudio": - -type ProjectsLocationsVoicesSynthesizeLongAudioCall struct { - s *Service - parent string - synthesizelongaudiorequest *SynthesizeLongAudioRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// SynthesizeLongAudio: Synthesizes long form text asynchronously. -// -// - parent: The resource states of the request in the form of -// projects/*/locations/*/voices/*. -func (r *ProjectsLocationsVoicesService) SynthesizeLongAudio(parent string, synthesizelongaudiorequest *SynthesizeLongAudioRequest) *ProjectsLocationsVoicesSynthesizeLongAudioCall { - c := &ProjectsLocationsVoicesSynthesizeLongAudioCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - c.synthesizelongaudiorequest = synthesizelongaudiorequest - 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 *ProjectsLocationsVoicesSynthesizeLongAudioCall) Fields(s ...googleapi.Field) *ProjectsLocationsVoicesSynthesizeLongAudioCall { - 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 *ProjectsLocationsVoicesSynthesizeLongAudioCall) Context(ctx context.Context) *ProjectsLocationsVoicesSynthesizeLongAudioCall { - 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 *ProjectsLocationsVoicesSynthesizeLongAudioCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *ProjectsLocationsVoicesSynthesizeLongAudioCall) 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.synthesizelongaudiorequest) - 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/{+parent}:SynthesizeLongAudio") - 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{ - "parent": c.parent, - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "texttospeech.projects.locations.voices.synthesizeLongAudio" 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 *ProjectsLocationsVoicesSynthesizeLongAudioCall) 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": "Synthesizes long form text asynchronously.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/voices/{voicesId}:SynthesizeLongAudio", - // "httpMethod": "POST", - // "id": "texttospeech.projects.locations.voices.synthesizeLongAudio", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "parent": { - // "description": "The resource states of the request in the form of projects/*/locations/*/voices/*.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/voices/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/{+parent}:SynthesizeLongAudio", - // "request": { - // "$ref": "SynthesizeLongAudioRequest" - // }, - // "response": { - // "$ref": "Operation" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - // method id "texttospeech.text.synthesize": type TextSynthesizeCall struct { diff --git a/texttospeech/v1beta1/texttospeech-api.json b/texttospeech/v1beta1/texttospeech-api.json index 77a1055ec0d..9fcae9bcadd 100644 --- a/texttospeech/v1beta1/texttospeech-api.json +++ b/texttospeech/v1beta1/texttospeech-api.json @@ -108,36 +108,104 @@ "projects": { "resources": { "locations": { + "methods": { + "synthesizeLongAudio": { + "description": "Synthesizes long form text asynchronously.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}:synthesizeLongAudio", + "httpMethod": "POST", + "id": "texttospeech.projects.locations.synthesizeLongAudio", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "The resource states of the request in the form of `projects/*/locations/*/voices/*`.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+parent}:synthesizeLongAudio", + "request": { + "$ref": "SynthesizeLongAudioRequest" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + }, "resources": { - "voices": { + "operations": { "methods": { - "synthesizeLongAudio": { - "description": "Synthesizes long form text asynchronously.", - "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/voices/{voicesId}:SynthesizeLongAudio", - "httpMethod": "POST", - "id": "texttospeech.projects.locations.voices.synthesizeLongAudio", + "get": { + "description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}", + "httpMethod": "GET", + "id": "texttospeech.projects.locations.operations.get", "parameterOrder": [ - "parent" + "name" ], "parameters": { - "parent": { - "description": "The resource states of the request in the form of projects/*/locations/*/voices/*.", + "name": { + "description": "The name of the operation resource.", "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/voices/[^/]+$", + "pattern": "^projects/[^/]+/locations/[^/]+/operations/[^/]+$", "required": true, "type": "string" } }, - "path": "v1beta1/{+parent}:SynthesizeLongAudio", - "request": { - "$ref": "SynthesizeLongAudioRequest" - }, + "path": "v1beta1/{+name}", "response": { "$ref": "Operation" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ] + }, + "list": { + "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to override the binding to use different resource name schemes, such as `users/*/operations`. To override the binding, API services can add a binding such as `\"/v1/{name=users/*}/operations\"` to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must ensure the name binding is the parent resource, without the operations collection id.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/operations", + "httpMethod": "GET", + "id": "texttospeech.projects.locations.operations.list", + "parameterOrder": [ + "name" + ], + "parameters": { + "filter": { + "description": "The standard list filter.", + "location": "query", + "type": "string" + }, + "name": { + "description": "The name of the operation's parent resource.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + }, + "pageSize": { + "description": "The standard list page size.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "The standard list page token.", + "location": "query", + "type": "string" + } + }, + "path": "v1beta1/{+name}/operations", + "response": { + "$ref": "ListOperationsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] } } } @@ -193,7 +261,7 @@ } } }, - "revision": "20221213", + "revision": "20221219", "rootUrl": "https://texttospeech.googleapis.com/", "schemas": { "AudioConfig": { @@ -277,24 +345,20 @@ }, "type": "object" }, - "GoogleCloudTexttospeechV1beta1SynthesizeLongAudioMetadata": { - "description": "Metadata for response returned by the `SynthesizeLongAudio` method.", - "id": "GoogleCloudTexttospeechV1beta1SynthesizeLongAudioMetadata", + "ListOperationsResponse": { + "description": "The response message for Operations.ListOperations.", + "id": "ListOperationsResponse", "properties": { - "lastUpdateTime": { - "description": "Time of the most recent processing update.", - "format": "google-datetime", + "nextPageToken": { + "description": "The standard List next-page token.", "type": "string" }, - "progressPercentage": { - "description": "The progress of the most recent processing update in percentage, ie. 70.0%.", - "format": "double", - "type": "number" - }, - "startTime": { - "description": "Time when the request was received.", - "format": "google-datetime", - "type": "string" + "operations": { + "description": "A list of operations that matches the specified filter in the request.", + "items": { + "$ref": "Operation" + }, + "type": "array" } }, "type": "object" @@ -390,28 +454,6 @@ }, "type": "object" }, - "SynthesizeLongAudioMetadata": { - "description": "Metadata for response returned by the `SynthesizeLongAudio` method.", - "id": "SynthesizeLongAudioMetadata", - "properties": { - "lastUpdateTime": { - "description": "Time of the most recent processing update.", - "format": "google-datetime", - "type": "string" - }, - "progressPercentage": { - "description": "The progress of the most recent processing update in percentage, ie. 70.0%.", - "format": "double", - "type": "number" - }, - "startTime": { - "description": "Time when the request was received.", - "format": "google-datetime", - "type": "string" - } - }, - "type": "object" - }, "SynthesizeLongAudioRequest": { "description": "The top-level message sent by the client for the `SynthesizeLongAudio` method.", "id": "SynthesizeLongAudioRequest", diff --git a/texttospeech/v1beta1/texttospeech-gen.go b/texttospeech/v1beta1/texttospeech-gen.go index 3f2ff9035ea..74dd120bf2f 100644 --- a/texttospeech/v1beta1/texttospeech-gen.go +++ b/texttospeech/v1beta1/texttospeech-gen.go @@ -159,22 +159,22 @@ type ProjectsService struct { func NewProjectsLocationsService(s *Service) *ProjectsLocationsService { rs := &ProjectsLocationsService{s: s} - rs.Voices = NewProjectsLocationsVoicesService(s) + rs.Operations = NewProjectsLocationsOperationsService(s) return rs } type ProjectsLocationsService struct { s *Service - Voices *ProjectsLocationsVoicesService + Operations *ProjectsLocationsOperationsService } -func NewProjectsLocationsVoicesService(s *Service) *ProjectsLocationsVoicesService { - rs := &ProjectsLocationsVoicesService{s: s} +func NewProjectsLocationsOperationsService(s *Service) *ProjectsLocationsOperationsService { + rs := &ProjectsLocationsOperationsService{s: s} return rs } -type ProjectsLocationsVoicesService struct { +type ProjectsLocationsOperationsService struct { s *Service } @@ -346,20 +346,21 @@ func (s *CustomVoiceParams) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleCloudTexttospeechV1beta1SynthesizeLongAudioMetadata: Metadata -// for response returned by the `SynthesizeLongAudio` method. -type GoogleCloudTexttospeechV1beta1SynthesizeLongAudioMetadata struct { - // LastUpdateTime: Time of the most recent processing update. - LastUpdateTime string `json:"lastUpdateTime,omitempty"` +// ListOperationsResponse: The response message for +// Operations.ListOperations. +type ListOperationsResponse struct { + // NextPageToken: The standard List next-page token. + NextPageToken string `json:"nextPageToken,omitempty"` - // ProgressPercentage: The progress of the most recent processing update - // in percentage, ie. 70.0%. - ProgressPercentage float64 `json:"progressPercentage,omitempty"` + // Operations: A list of operations that matches the specified filter in + // the request. + Operations []*Operation `json:"operations,omitempty"` - // StartTime: Time when the request was received. - StartTime string `json:"startTime,omitempty"` + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "LastUpdateTime") to + // ForceSendFields is a list of field names (e.g. "NextPageToken") 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 @@ -367,36 +368,21 @@ type GoogleCloudTexttospeechV1beta1SynthesizeLongAudioMetadata struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "LastUpdateTime") 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. "NextPageToken") 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 *GoogleCloudTexttospeechV1beta1SynthesizeLongAudioMetadata) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudTexttospeechV1beta1SynthesizeLongAudioMetadata +func (s *ListOperationsResponse) MarshalJSON() ([]byte, error) { + type NoMethod ListOperationsResponse raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -func (s *GoogleCloudTexttospeechV1beta1SynthesizeLongAudioMetadata) UnmarshalJSON(data []byte) error { - type NoMethod GoogleCloudTexttospeechV1beta1SynthesizeLongAudioMetadata - var s1 struct { - ProgressPercentage gensupport.JSONFloat64 `json:"progressPercentage"` - *NoMethod - } - s1.NoMethod = (*NoMethod)(s) - if err := json.Unmarshal(data, &s1); err != nil { - return err - } - s.ProgressPercentage = float64(s1.ProgressPercentage) - return nil -} - // ListVoicesResponse: The message returned to the client by the // `ListVoices` method. type ListVoicesResponse struct { @@ -573,57 +559,6 @@ func (s *SynthesisInput) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// SynthesizeLongAudioMetadata: Metadata for response returned by the -// `SynthesizeLongAudio` method. -type SynthesizeLongAudioMetadata struct { - // LastUpdateTime: Time of the most recent processing update. - LastUpdateTime string `json:"lastUpdateTime,omitempty"` - - // ProgressPercentage: The progress of the most recent processing update - // in percentage, ie. 70.0%. - ProgressPercentage float64 `json:"progressPercentage,omitempty"` - - // StartTime: Time when the request was received. - StartTime string `json:"startTime,omitempty"` - - // ForceSendFields is a list of field names (e.g. "LastUpdateTime") 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. "LastUpdateTime") 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 *SynthesizeLongAudioMetadata) MarshalJSON() ([]byte, error) { - type NoMethod SynthesizeLongAudioMetadata - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -func (s *SynthesizeLongAudioMetadata) UnmarshalJSON(data []byte) error { - type NoMethod SynthesizeLongAudioMetadata - var s1 struct { - ProgressPercentage gensupport.JSONFloat64 `json:"progressPercentage"` - *NoMethod - } - s1.NoMethod = (*NoMethod)(s) - if err := json.Unmarshal(data, &s1); err != nil { - return err - } - s.ProgressPercentage = float64(s1.ProgressPercentage) - return nil -} - // SynthesizeLongAudioRequest: The top-level message sent by the client // for the `SynthesizeLongAudio` method. type SynthesizeLongAudioRequest struct { @@ -924,9 +859,9 @@ func (s *VoiceSelectionParams) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// method id "texttospeech.projects.locations.voices.synthesizeLongAudio": +// method id "texttospeech.projects.locations.synthesizeLongAudio": -type ProjectsLocationsVoicesSynthesizeLongAudioCall struct { +type ProjectsLocationsSynthesizeLongAudioCall struct { s *Service parent string synthesizelongaudiorequest *SynthesizeLongAudioRequest @@ -938,9 +873,9 @@ type ProjectsLocationsVoicesSynthesizeLongAudioCall struct { // SynthesizeLongAudio: Synthesizes long form text asynchronously. // // - parent: The resource states of the request in the form of -// projects/*/locations/*/voices/*. -func (r *ProjectsLocationsVoicesService) SynthesizeLongAudio(parent string, synthesizelongaudiorequest *SynthesizeLongAudioRequest) *ProjectsLocationsVoicesSynthesizeLongAudioCall { - c := &ProjectsLocationsVoicesSynthesizeLongAudioCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// `projects/*/locations/*/voices/*`. +func (r *ProjectsLocationsService) SynthesizeLongAudio(parent string, synthesizelongaudiorequest *SynthesizeLongAudioRequest) *ProjectsLocationsSynthesizeLongAudioCall { + c := &ProjectsLocationsSynthesizeLongAudioCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent c.synthesizelongaudiorequest = synthesizelongaudiorequest return c @@ -949,7 +884,7 @@ func (r *ProjectsLocationsVoicesService) SynthesizeLongAudio(parent string, synt // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsVoicesSynthesizeLongAudioCall) Fields(s ...googleapi.Field) *ProjectsLocationsVoicesSynthesizeLongAudioCall { +func (c *ProjectsLocationsSynthesizeLongAudioCall) Fields(s ...googleapi.Field) *ProjectsLocationsSynthesizeLongAudioCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -957,21 +892,21 @@ func (c *ProjectsLocationsVoicesSynthesizeLongAudioCall) Fields(s ...googleapi.F // 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 *ProjectsLocationsVoicesSynthesizeLongAudioCall) Context(ctx context.Context) *ProjectsLocationsVoicesSynthesizeLongAudioCall { +func (c *ProjectsLocationsSynthesizeLongAudioCall) Context(ctx context.Context) *ProjectsLocationsSynthesizeLongAudioCall { 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 *ProjectsLocationsVoicesSynthesizeLongAudioCall) Header() http.Header { +func (c *ProjectsLocationsSynthesizeLongAudioCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsVoicesSynthesizeLongAudioCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsSynthesizeLongAudioCall) 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_ { @@ -986,7 +921,7 @@ func (c *ProjectsLocationsVoicesSynthesizeLongAudioCall) doRequest(alt string) ( reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}:SynthesizeLongAudio") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}:synthesizeLongAudio") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -999,14 +934,14 @@ func (c *ProjectsLocationsVoicesSynthesizeLongAudioCall) doRequest(alt string) ( return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "texttospeech.projects.locations.voices.synthesizeLongAudio" call. +// Do executes the "texttospeech.projects.locations.synthesizeLongAudio" 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 *ProjectsLocationsVoicesSynthesizeLongAudioCall) Do(opts ...googleapi.CallOption) (*Operation, error) { +func (c *ProjectsLocationsSynthesizeLongAudioCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -1038,22 +973,22 @@ func (c *ProjectsLocationsVoicesSynthesizeLongAudioCall) Do(opts ...googleapi.Ca return ret, nil // { // "description": "Synthesizes long form text asynchronously.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/voices/{voicesId}:SynthesizeLongAudio", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}:synthesizeLongAudio", // "httpMethod": "POST", - // "id": "texttospeech.projects.locations.voices.synthesizeLongAudio", + // "id": "texttospeech.projects.locations.synthesizeLongAudio", // "parameterOrder": [ // "parent" // ], // "parameters": { // "parent": { - // "description": "The resource states of the request in the form of projects/*/locations/*/voices/*.", + // "description": "The resource states of the request in the form of `projects/*/locations/*/voices/*`.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/voices/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1beta1/{+parent}:SynthesizeLongAudio", + // "path": "v1beta1/{+parent}:synthesizeLongAudio", // "request": { // "$ref": "SynthesizeLongAudioRequest" // }, @@ -1067,6 +1002,367 @@ func (c *ProjectsLocationsVoicesSynthesizeLongAudioCall) Do(opts ...googleapi.Ca } +// method id "texttospeech.projects.locations.operations.get": + +type ProjectsLocationsOperationsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Gets the latest state of a long-running operation. Clients can +// use this method to poll the operation result at intervals as +// recommended by the API service. +// +// - name: The name of the operation resource. +func (r *ProjectsLocationsOperationsService) Get(name string) *ProjectsLocationsOperationsGetCall { + c := &ProjectsLocationsOperationsGetCall{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 *ProjectsLocationsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsGetCall { + 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 *ProjectsLocationsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsOperationsGetCall { + 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 *ProjectsLocationsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsOperationsGetCall { + 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 *ProjectsLocationsOperationsGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsOperationsGetCall) 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 "texttospeech.projects.locations.operations.get" 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 *ProjectsLocationsOperationsGetCall) 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": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}", + // "httpMethod": "GET", + // "id": "texttospeech.projects.locations.operations.get", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "The name of the operation resource.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/operations/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+name}", + // "response": { + // "$ref": "Operation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "texttospeech.projects.locations.operations.list": + +type ProjectsLocationsOperationsListCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists operations that match the specified filter in the +// request. If the server doesn't support this method, it returns +// `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to +// override the binding to use different resource name schemes, such as +// `users/*/operations`. To override the binding, API services can add a +// binding such as "/v1/{name=users/*}/operations" to their service +// configuration. For backwards compatibility, the default name includes +// the operations collection id, however overriding users must ensure +// the name binding is the parent resource, without the operations +// collection id. +// +// - name: The name of the operation's parent resource. +func (r *ProjectsLocationsOperationsService) List(name string) *ProjectsLocationsOperationsListCall { + c := &ProjectsLocationsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Filter sets the optional parameter "filter": The standard list +// filter. +func (c *ProjectsLocationsOperationsListCall) Filter(filter string) *ProjectsLocationsOperationsListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// PageSize sets the optional parameter "pageSize": The standard list +// page size. +func (c *ProjectsLocationsOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsOperationsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": The standard list +// page token. +func (c *ProjectsLocationsOperationsListCall) PageToken(pageToken string) *ProjectsLocationsOperationsListCall { + 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 *ProjectsLocationsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsListCall { + 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 *ProjectsLocationsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsOperationsListCall { + 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 *ProjectsLocationsOperationsListCall) Context(ctx context.Context) *ProjectsLocationsOperationsListCall { + 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 *ProjectsLocationsOperationsListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsOperationsListCall) 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}/operations") + 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 "texttospeech.projects.locations.operations.list" call. +// Exactly one of *ListOperationsResponse or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *ListOperationsResponse.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 *ProjectsLocationsOperationsListCall) Do(opts ...googleapi.CallOption) (*ListOperationsResponse, 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 := &ListOperationsResponse{ + 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 operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to override the binding to use different resource name schemes, such as `users/*/operations`. To override the binding, API services can add a binding such as `\"/v1/{name=users/*}/operations\"` to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must ensure the name binding is the parent resource, without the operations collection id.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/operations", + // "httpMethod": "GET", + // "id": "texttospeech.projects.locations.operations.list", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "filter": { + // "description": "The standard list filter.", + // "location": "query", + // "type": "string" + // }, + // "name": { + // "description": "The name of the operation's parent resource.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "pageSize": { + // "description": "The standard list page size.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "The standard list page token.", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1beta1/{+name}/operations", + // "response": { + // "$ref": "ListOperationsResponse" + // }, + // "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 *ProjectsLocationsOperationsListCall) Pages(ctx context.Context, f func(*ListOperationsResponse) 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 "texttospeech.text.synthesize": type TextSynthesizeCall struct { diff --git a/vmmigration/v1/vmmigration-api.json b/vmmigration/v1/vmmigration-api.json index 08120f00664..0f9b8299c14 100644 --- a/vmmigration/v1/vmmigration-api.json +++ b/vmmigration/v1/vmmigration-api.json @@ -1972,7 +1972,7 @@ } } }, - "revision": "20221103", + "revision": "20221213", "rootUrl": "https://vmmigration.googleapis.com/", "schemas": { "AdaptingOSStep": { @@ -2409,7 +2409,7 @@ "type": "array" }, "project": { - "description": "The GCP target project ID or project name.", + "description": "The Google Cloud target project ID or project name.", "type": "string" }, "secureBoot": { @@ -2629,7 +2629,7 @@ "type": "object" }, "DatacenterConnector": { - "description": "DatacenterConnector message describes a connector between the Source and GCP, which is installed on a vmware datacenter (an OVA vm installed by the user) to connect the Datacenter to GCP and support vm migration data transfer.", + "description": "DatacenterConnector message describes a connector between the Source and Google Cloud, which is installed on a vmware datacenter (an OVA vm installed by the user) to connect the Datacenter to Google Cloud and support vm migration data transfer.", "id": "DatacenterConnector", "properties": { "applianceInfrastructureVersion": { @@ -2648,7 +2648,7 @@ "readOnly": true }, "bucket": { - "description": "Output only. The communication channel between the datacenter connector and GCP.", + "description": "Output only. The communication channel between the datacenter connector and Google Cloud.", "readOnly": true, "type": "string" }, diff --git a/vmmigration/v1/vmmigration-gen.go b/vmmigration/v1/vmmigration-gen.go index 5f4f8df6752..6c24a582e01 100644 --- a/vmmigration/v1/vmmigration-gen.go +++ b/vmmigration/v1/vmmigration-gen.go @@ -733,7 +733,7 @@ type ComputeEngineTargetDetails struct { // NetworkTags: A map of network tags to associate with the VM. NetworkTags []string `json:"networkTags,omitempty"` - // Project: The GCP target project ID or project name. + // Project: The Google Cloud target project ID or project name. Project string `json:"project,omitempty"` // SecureBoot: Defines whether the instance has Secure Boot enabled. @@ -1006,9 +1006,9 @@ func (s *CycleStep) MarshalJSON() ([]byte, error) { } // DatacenterConnector: DatacenterConnector message describes a -// connector between the Source and GCP, which is installed on a vmware -// datacenter (an OVA vm installed by the user) to connect the -// Datacenter to GCP and support vm migration data transfer. +// connector between the Source and Google Cloud, which is installed on +// a vmware datacenter (an OVA vm installed by the user) to connect the +// Datacenter to Google Cloud and support vm migration data transfer. type DatacenterConnector struct { // ApplianceInfrastructureVersion: Output only. Appliance OVA version. // This is the OVA which is manually installed by the user and contains @@ -1026,7 +1026,7 @@ type DatacenterConnector struct { AvailableVersions *AvailableUpdates `json:"availableVersions,omitempty"` // Bucket: Output only. The communication channel between the datacenter - // connector and GCP. + // connector and Google Cloud. Bucket string `json:"bucket,omitempty"` // CreateTime: Output only. The time the connector was created (as an diff --git a/vmmigration/v1alpha1/vmmigration-api.json b/vmmigration/v1alpha1/vmmigration-api.json index a4ab7ee051f..8d50ff390bc 100644 --- a/vmmigration/v1alpha1/vmmigration-api.json +++ b/vmmigration/v1alpha1/vmmigration-api.json @@ -1972,7 +1972,7 @@ } } }, - "revision": "20221126", + "revision": "20221213", "rootUrl": "https://vmmigration.googleapis.com/", "schemas": { "AccessKeyCredentials": { @@ -2705,7 +2705,7 @@ "type": "array" }, "project": { - "description": "The GCP target project ID or project name.", + "description": "The Google Cloud target project ID or project name.", "type": "string" }, "secureBoot": { @@ -2944,7 +2944,7 @@ "type": "object" }, "DatacenterConnector": { - "description": "DatacenterConnector message describes a connector between the Source and GCP, which is installed on a vmware datacenter (an OVA vm installed by the user) to connect the Datacenter to GCP and support vm migration data transfer.", + "description": "DatacenterConnector message describes a connector between the Source and Google Cloud, which is installed on a vmware datacenter (an OVA vm installed by the user) to connect the Datacenter to Google Cloud and support vm migration data transfer.", "id": "DatacenterConnector", "properties": { "applianceInfrastructureVersion": { @@ -2963,7 +2963,7 @@ "readOnly": true }, "bucket": { - "description": "Output only. The communication channel between the datacenter connector and GCP.", + "description": "Output only. The communication channel between the datacenter connector and Google Cloud.", "readOnly": true, "type": "string" }, @@ -3596,7 +3596,7 @@ }, "targetDefaults": { "$ref": "TargetVMDetails", - "description": "The default configuration of the target VM that will be created in GCP as a result of the migration. Deprecated: Use compute_engine_target_defaults instead." + "description": "The default configuration of the target VM that will be created in Google Cloud as a result of the migration. Deprecated: Use compute_engine_target_defaults instead." }, "updateTime": { "description": "Output only. The last time the migrating VM resource was updated.", diff --git a/vmmigration/v1alpha1/vmmigration-gen.go b/vmmigration/v1alpha1/vmmigration-gen.go index a0ed5f2252f..66ef2cfba33 100644 --- a/vmmigration/v1alpha1/vmmigration-gen.go +++ b/vmmigration/v1alpha1/vmmigration-gen.go @@ -1061,7 +1061,7 @@ type ComputeEngineTargetDetails struct { // NetworkTags: A map of network tags to associate with the VM. NetworkTags []string `json:"networkTags,omitempty"` - // Project: The GCP target project ID or project name. + // Project: The Google Cloud target project ID or project name. Project string `json:"project,omitempty"` // SecureBoot: Defines whether the instance has Secure Boot enabled. @@ -1350,9 +1350,9 @@ func (s *CycleStep) MarshalJSON() ([]byte, error) { } // DatacenterConnector: DatacenterConnector message describes a -// connector between the Source and GCP, which is installed on a vmware -// datacenter (an OVA vm installed by the user) to connect the -// Datacenter to GCP and support vm migration data transfer. +// connector between the Source and Google Cloud, which is installed on +// a vmware datacenter (an OVA vm installed by the user) to connect the +// Datacenter to Google Cloud and support vm migration data transfer. type DatacenterConnector struct { // ApplianceInfrastructureVersion: Output only. Appliance OVA version. // This is the OVA which is manually installed by the user and contains @@ -1370,7 +1370,7 @@ type DatacenterConnector struct { AvailableVersions *AvailableUpdates `json:"availableVersions,omitempty"` // Bucket: Output only. The communication channel between the datacenter - // connector and GCP. + // connector and Google Cloud. Bucket string `json:"bucket,omitempty"` // CreateTime: Output only. The time the connector was created (as an @@ -2233,8 +2233,8 @@ type MigratingVm struct { StateTime string `json:"stateTime,omitempty"` // TargetDefaults: The default configuration of the target VM that will - // be created in GCP as a result of the migration. Deprecated: Use - // compute_engine_target_defaults instead. + // be created in Google Cloud as a result of the migration. Deprecated: + // Use compute_engine_target_defaults instead. TargetDefaults *TargetVMDetails `json:"targetDefaults,omitempty"` // UpdateTime: Output only. The last time the migrating VM resource was diff --git a/workflowexecutions/v1/workflowexecutions-api.json b/workflowexecutions/v1/workflowexecutions-api.json index 2a4c12e8ea2..16975d47833 100644 --- a/workflowexecutions/v1/workflowexecutions-api.json +++ b/workflowexecutions/v1/workflowexecutions-api.json @@ -299,7 +299,7 @@ } } }, - "revision": "20221201", + "revision": "20221206", "rootUrl": "https://workflowexecutions.googleapis.com/", "schemas": { "CancelExecutionRequest": { @@ -343,7 +343,7 @@ "LOG_ERRORS_ONLY" ], "enumDescriptions": [ - "No call logging specified.", + "No call logging level specified.", "Log all call steps within workflows, all call returns, and all exceptions raised.", "Log only exceptions that are raised from call steps within workflows." ], diff --git a/workflowexecutions/v1/workflowexecutions-gen.go b/workflowexecutions/v1/workflowexecutions-gen.go index 6131b1d14a4..50473a6de70 100644 --- a/workflowexecutions/v1/workflowexecutions-gen.go +++ b/workflowexecutions/v1/workflowexecutions-gen.go @@ -235,7 +235,7 @@ type Execution struct { // CallLogLevel: The call logging level associated to this execution. // // Possible values: - // "CALL_LOG_LEVEL_UNSPECIFIED" - No call logging specified. + // "CALL_LOG_LEVEL_UNSPECIFIED" - No call logging level specified. // "LOG_ALL_CALLS" - Log all call steps within workflows, all call // returns, and all exceptions raised. // "LOG_ERRORS_ONLY" - Log only exceptions that are raised from call diff --git a/workflowexecutions/v1beta/workflowexecutions-api.json b/workflowexecutions/v1beta/workflowexecutions-api.json index e5febe3a003..105228604a2 100644 --- a/workflowexecutions/v1beta/workflowexecutions-api.json +++ b/workflowexecutions/v1beta/workflowexecutions-api.json @@ -269,7 +269,7 @@ } } }, - "revision": "20221020", + "revision": "20221206", "rootUrl": "https://workflowexecutions.googleapis.com/", "schemas": { "CancelExecutionRequest": { @@ -313,7 +313,7 @@ "LOG_ERRORS_ONLY" ], "enumDescriptions": [ - "No call logging specified.", + "No call logging level specified.", "Log all call steps within workflows, all call returns, and all exceptions raised.", "Log only exceptions that are raised from call steps within workflows." ], diff --git a/workflowexecutions/v1beta/workflowexecutions-gen.go b/workflowexecutions/v1beta/workflowexecutions-gen.go index a2b891d7673..c91991ce6ae 100644 --- a/workflowexecutions/v1beta/workflowexecutions-gen.go +++ b/workflowexecutions/v1beta/workflowexecutions-gen.go @@ -235,7 +235,7 @@ type Execution struct { // CallLogLevel: The call logging level associated to this execution. // // Possible values: - // "CALL_LOG_LEVEL_UNSPECIFIED" - No call logging specified. + // "CALL_LOG_LEVEL_UNSPECIFIED" - No call logging level specified. // "LOG_ALL_CALLS" - Log all call steps within workflows, all call // returns, and all exceptions raised. // "LOG_ERRORS_ONLY" - Log only exceptions that are raised from call diff --git a/workloadmanager/v1/workloadmanager-api.json b/workloadmanager/v1/workloadmanager-api.json index 681a5b92965..0062e0bc738 100644 --- a/workloadmanager/v1/workloadmanager-api.json +++ b/workloadmanager/v1/workloadmanager-api.json @@ -14,7 +14,7 @@ "canonicalName": "Workload Manager", "description": "", "discoveryVersion": "v1", - "documentationLink": "https://g3doc.corp.google.com/company/teams/compute-fe/index.md?cl=head", + "documentationLink": "https://cloud.google.com/workload-manager/docs", "fullyEncodeReservedExpansion": true, "icons": { "x16": "http://www.google.com/images/icons/product/search-16.gif", @@ -290,6 +290,38 @@ } } }, + "insights": { + "methods": { + "writeInsight": { + "description": "Write the data insights to workload manager data warehouse.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/insights:writeInsight", + "httpMethod": "POST", + "id": "workloadmanager.projects.locations.insights.writeInsight", + "parameterOrder": [ + "location" + ], + "parameters": { + "location": { + "description": "Required. The GCP location. The format is: projects/{project}/locations/{location}.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+location}/insights:writeInsight", + "request": { + "$ref": "WriteInsightRequest" + }, + "response": { + "$ref": "WriteInsightResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + }, "operations": { "methods": { "cancel": { @@ -418,7 +450,7 @@ } } }, - "revision": "20221123", + "revision": "20221213", "rootUrl": "https://workloadmanager.googleapis.com/", "schemas": { "CancelOperationRequest": { @@ -505,6 +537,27 @@ }, "type": "object" }, + "Insight": { + "description": "A presentation of host resource usage where the workload runs.", + "id": "Insight", + "properties": { + "sapDiscovery": { + "$ref": "SapDiscovery", + "description": "The insights data for sap system discovery. This is a copy of SAP System proto and should get updated whenever that one changes." + }, + "sapValidation": { + "$ref": "SapValidation", + "description": "The insights data for the sap workload validation." + }, + "sentTime": { + "description": "Output only. [Output only] Create time stamp", + "format": "google-datetime", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, "ListEvaluationsResponse": { "description": "Message for response to listing Evaluations", "id": "ListEvaluationsResponse", @@ -741,6 +794,178 @@ }, "type": "object" }, + "SapDiscovery": { + "description": "The schema of SAP system discovery data.", + "id": "SapDiscovery", + "properties": { + "applicationLayer": { + "$ref": "SapDiscoveryComponent", + "description": "An SAP system may run without an application layer." + }, + "databaseLayer": { + "$ref": "SapDiscoveryComponent", + "description": "An SAP System must have a database." + }, + "metadata": { + "$ref": "SapDiscoveryMetadata", + "description": "The metadata for SAP system discovery data." + }, + "systemId": { + "description": "A combination of database SID, database instance URI and tenant DB name to make a unique identifier per-system.", + "type": "string" + }, + "updateTime": { + "description": "Unix timestamp this system has been updated last.", + "format": "google-datetime", + "type": "string" + } + }, + "type": "object" + }, + "SapDiscoveryComponent": { + "description": "Message describing the system component.", + "id": "SapDiscoveryComponent", + "properties": { + "applicationType": { + "description": "The component is a SAP application.", + "type": "string" + }, + "databaseType": { + "description": "The component is a SAP database.", + "type": "string" + }, + "hostProject": { + "description": "Pantheon Project in which the resources reside.", + "type": "string" + }, + "resources": { + "description": "The resources in a component.", + "items": { + "$ref": "SapDiscoveryResource" + }, + "type": "array" + }, + "sid": { + "description": "The sap identifier, used by the SAP software and helps differentiate systems for customers.", + "type": "string" + } + }, + "type": "object" + }, + "SapDiscoveryMetadata": { + "description": "Message describing SAP discovery system metadata", + "id": "SapDiscoveryMetadata", + "properties": { + "customerRegion": { + "description": "Customer region string for customer's use. Does not represent GCP region.", + "type": "string" + }, + "definedSystem": { + "description": "Customer defined, something like \"E-commerce pre prod\"", + "type": "string" + }, + "environmentType": { + "description": "Should be \"prod\", \"QA\", \"dev\", \"staging\", etc.", + "type": "string" + }, + "sapProduct": { + "description": "This sap product name", + "type": "string" + } + }, + "type": "object" + }, + "SapDiscoveryResource": { + "description": "Message describing a resource.", + "id": "SapDiscoveryResource", + "properties": { + "relatedResources": { + "description": "A list of resource URIs related to this resource.", + "items": { + "type": "string" + }, + "type": "array" + }, + "resourceKind": { + "description": "ComputeInstance, ComputeDisk, VPC, Bare Metal server, etc.", + "type": "string" + }, + "resourceType": { + "description": "The type of this resource.", + "enum": [ + "RESOURCE_TYPE_UNSPECIFIED", + "COMPUTE", + "STORAGE", + "NETWORK" + ], + "enumDescriptions": [ + "Undefined resource type.", + "This is a compute resource.", + "This a storage resource.", + "This is a network resource." + ], + "type": "string" + }, + "resourceUri": { + "description": "URI of the resource, includes project, location, and name.", + "type": "string" + }, + "updateTime": { + "description": "Unix timestamp of when this resource last had its discovery data updated.", + "format": "google-datetime", + "type": "string" + } + }, + "type": "object" + }, + "SapValidation": { + "description": "A presentation of SAP workload insight. The schema of SAP workloads validation related data.", + "id": "SapValidation", + "properties": { + "validationDetails": { + "description": "A list of SAP validation metrics data.", + "items": { + "$ref": "SapValidationValidationDetail" + }, + "type": "array" + } + }, + "type": "object" + }, + "SapValidationValidationDetail": { + "description": "Message describing the SAP validation metrics.", + "id": "SapValidationValidationDetail", + "properties": { + "details": { + "additionalProperties": { + "type": "string" + }, + "description": "The pairs of metrics data: field name \u0026 field value.", + "type": "object" + }, + "sapValidationType": { + "description": "The SAP system that the validation data is from.", + "enum": [ + "SAP_VALIDATION_TYPE_UNSPECIFIED", + "SYSTEM", + "COROSYNC", + "PACEMAKER", + "HANA", + "NETWEAVER" + ], + "enumDescriptions": [ + "Unspecified type.", + "The SAP system named SYSTEM.", + "The SAP system named COROSYNC.", + "The SAP system named PACEMAKER.", + "The SAP system named HANA.", + "The SAP system named NETWEAVER." + ], + "type": "string" + } + }, + "type": "object" + }, "Status": { "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": "Status", @@ -767,6 +992,27 @@ } }, "type": "object" + }, + "WriteInsightRequest": { + "description": "Request for sending the data insights.", + "id": "WriteInsightRequest", + "properties": { + "insight": { + "$ref": "Insight", + "description": "Required. The metrics data details." + }, + "requestId": { + "description": "Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and t he request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).", + "type": "string" + } + }, + "type": "object" + }, + "WriteInsightResponse": { + "description": "The response for write insights request.", + "id": "WriteInsightResponse", + "properties": {}, + "type": "object" } }, "servicePath": "", diff --git a/workloadmanager/v1/workloadmanager-gen.go b/workloadmanager/v1/workloadmanager-gen.go index d290ef067b8..f2da63ebd74 100644 --- a/workloadmanager/v1/workloadmanager-gen.go +++ b/workloadmanager/v1/workloadmanager-gen.go @@ -6,7 +6,7 @@ // Package workloadmanager provides access to the Workload Manager API. // -// For product documentation, see: https://g3doc.corp.google.com/company/teams/compute-fe/index.md?cl=head +// For product documentation, see: https://cloud.google.com/workload-manager/docs // // # Creating a client // @@ -152,6 +152,7 @@ type ProjectsService struct { func NewProjectsLocationsService(s *Service) *ProjectsLocationsService { rs := &ProjectsLocationsService{s: s} rs.Evaluations = NewProjectsLocationsEvaluationsService(s) + rs.Insights = NewProjectsLocationsInsightsService(s) rs.Operations = NewProjectsLocationsOperationsService(s) return rs } @@ -161,6 +162,8 @@ type ProjectsLocationsService struct { Evaluations *ProjectsLocationsEvaluationsService + Insights *ProjectsLocationsInsightsService + Operations *ProjectsLocationsOperationsService } @@ -173,6 +176,15 @@ type ProjectsLocationsEvaluationsService struct { s *Service } +func NewProjectsLocationsInsightsService(s *Service) *ProjectsLocationsInsightsService { + rs := &ProjectsLocationsInsightsService{s: s} + return rs +} + +type ProjectsLocationsInsightsService struct { + s *Service +} + func NewProjectsLocationsOperationsService(s *Service) *ProjectsLocationsOperationsService { rs := &ProjectsLocationsOperationsService{s: s} return rs @@ -287,6 +299,43 @@ func (s *GceInstanceFilter) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// Insight: A presentation of host resource usage where the workload +// runs. +type Insight struct { + // SapDiscovery: The insights data for sap system discovery. This is a + // copy of SAP System proto and should get updated whenever that one + // changes. + SapDiscovery *SapDiscovery `json:"sapDiscovery,omitempty"` + + // SapValidation: The insights data for the sap workload validation. + SapValidation *SapValidation `json:"sapValidation,omitempty"` + + // SentTime: Output only. [Output only] Create time stamp + SentTime string `json:"sentTime,omitempty"` + + // ForceSendFields is a list of field names (e.g. "SapDiscovery") 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. "SapDiscovery") 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 *Insight) MarshalJSON() ([]byte, error) { + type NoMethod Insight + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // ListEvaluationsResponse: Message for response to listing Evaluations type ListEvaluationsResponse struct { // Evaluations: The list of Evaluation @@ -642,6 +691,250 @@ func (s *ResourceStatus) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// SapDiscovery: The schema of SAP system discovery data. +type SapDiscovery struct { + // ApplicationLayer: An SAP system may run without an application layer. + ApplicationLayer *SapDiscoveryComponent `json:"applicationLayer,omitempty"` + + // DatabaseLayer: An SAP System must have a database. + DatabaseLayer *SapDiscoveryComponent `json:"databaseLayer,omitempty"` + + // Metadata: The metadata for SAP system discovery data. + Metadata *SapDiscoveryMetadata `json:"metadata,omitempty"` + + // SystemId: A combination of database SID, database instance URI and + // tenant DB name to make a unique identifier per-system. + SystemId string `json:"systemId,omitempty"` + + // UpdateTime: Unix timestamp this system has been updated last. + UpdateTime string `json:"updateTime,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ApplicationLayer") 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. "ApplicationLayer") 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 *SapDiscovery) MarshalJSON() ([]byte, error) { + type NoMethod SapDiscovery + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// SapDiscoveryComponent: Message describing the system component. +type SapDiscoveryComponent struct { + // ApplicationType: The component is a SAP application. + ApplicationType string `json:"applicationType,omitempty"` + + // DatabaseType: The component is a SAP database. + DatabaseType string `json:"databaseType,omitempty"` + + // HostProject: Pantheon Project in which the resources reside. + HostProject string `json:"hostProject,omitempty"` + + // Resources: The resources in a component. + Resources []*SapDiscoveryResource `json:"resources,omitempty"` + + // Sid: The sap identifier, used by the SAP software and helps + // differentiate systems for customers. + Sid string `json:"sid,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ApplicationType") 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. "ApplicationType") 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 *SapDiscoveryComponent) MarshalJSON() ([]byte, error) { + type NoMethod SapDiscoveryComponent + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// SapDiscoveryMetadata: Message describing SAP discovery system +// metadata +type SapDiscoveryMetadata struct { + // CustomerRegion: Customer region string for customer's use. Does not + // represent GCP region. + CustomerRegion string `json:"customerRegion,omitempty"` + + // DefinedSystem: Customer defined, something like "E-commerce pre prod" + DefinedSystem string `json:"definedSystem,omitempty"` + + // EnvironmentType: Should be "prod", "QA", "dev", "staging", etc. + EnvironmentType string `json:"environmentType,omitempty"` + + // SapProduct: This sap product name + SapProduct string `json:"sapProduct,omitempty"` + + // ForceSendFields is a list of field names (e.g. "CustomerRegion") 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. "CustomerRegion") 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 *SapDiscoveryMetadata) MarshalJSON() ([]byte, error) { + type NoMethod SapDiscoveryMetadata + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// SapDiscoveryResource: Message describing a resource. +type SapDiscoveryResource struct { + // RelatedResources: A list of resource URIs related to this resource. + RelatedResources []string `json:"relatedResources,omitempty"` + + // ResourceKind: ComputeInstance, ComputeDisk, VPC, Bare Metal server, + // etc. + ResourceKind string `json:"resourceKind,omitempty"` + + // ResourceType: The type of this resource. + // + // Possible values: + // "RESOURCE_TYPE_UNSPECIFIED" - Undefined resource type. + // "COMPUTE" - This is a compute resource. + // "STORAGE" - This a storage resource. + // "NETWORK" - This is a network resource. + ResourceType string `json:"resourceType,omitempty"` + + // ResourceUri: URI of the resource, includes project, location, and + // name. + ResourceUri string `json:"resourceUri,omitempty"` + + // UpdateTime: Unix timestamp of when this resource last had its + // discovery data updated. + UpdateTime string `json:"updateTime,omitempty"` + + // ForceSendFields is a list of field names (e.g. "RelatedResources") 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. "RelatedResources") 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 *SapDiscoveryResource) MarshalJSON() ([]byte, error) { + type NoMethod SapDiscoveryResource + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// SapValidation: A presentation of SAP workload insight. The schema of +// SAP workloads validation related data. +type SapValidation struct { + // ValidationDetails: A list of SAP validation metrics data. + ValidationDetails []*SapValidationValidationDetail `json:"validationDetails,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ValidationDetails") + // 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. "ValidationDetails") 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 *SapValidation) MarshalJSON() ([]byte, error) { + type NoMethod SapValidation + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// SapValidationValidationDetail: Message describing the SAP validation +// metrics. +type SapValidationValidationDetail struct { + // Details: The pairs of metrics data: field name & field value. + Details map[string]string `json:"details,omitempty"` + + // SapValidationType: The SAP system that the validation data is from. + // + // Possible values: + // "SAP_VALIDATION_TYPE_UNSPECIFIED" - Unspecified type. + // "SYSTEM" - The SAP system named SYSTEM. + // "COROSYNC" - The SAP system named COROSYNC. + // "PACEMAKER" - The SAP system named PACEMAKER. + // "HANA" - The SAP system named HANA. + // "NETWEAVER" - The SAP system named NETWEAVER. + SapValidationType string `json:"sapValidationType,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Details") 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. "Details") 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 *SapValidationValidationDetail) MarshalJSON() ([]byte, error) { + type NoMethod SapValidationValidationDetail + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // Status: 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 @@ -686,6 +979,55 @@ func (s *Status) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// WriteInsightRequest: Request for sending the data insights. +type WriteInsightRequest struct { + // Insight: Required. The metrics data details. + Insight *Insight `json:"insight,omitempty"` + + // RequestId: Optional. An optional request ID to identify requests. + // Specify a unique request ID so that if you must retry your request, + // the server will know to ignore the request if it has already been + // completed. The server will guarantee that for at least 60 minutes + // since the first request. For example, consider a situation where you + // make an initial request and t he request times out. If you make the + // request again with the same request ID, the server can check if + // original operation with the same request ID was received, and if so, + // will ignore the second request. This prevents clients from + // accidentally creating duplicate commitments. The request ID must be a + // valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). + RequestId string `json:"requestId,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Insight") 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. "Insight") 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 *WriteInsightRequest) MarshalJSON() ([]byte, error) { + type NoMethod WriteInsightRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// WriteInsightResponse: The response for write insights request. +type WriteInsightResponse struct { + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` +} + // method id "workloadmanager.projects.locations.get": type ProjectsLocationsGetCall struct { @@ -1583,6 +1925,150 @@ func (c *ProjectsLocationsEvaluationsListCall) Pages(ctx context.Context, f func } } +// method id "workloadmanager.projects.locations.insights.writeInsight": + +type ProjectsLocationsInsightsWriteInsightCall struct { + s *Service + location string + writeinsightrequest *WriteInsightRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// WriteInsight: Write the data insights to workload manager data +// warehouse. +// +// - location: The GCP location. The format is: +// projects/{project}/locations/{location}. +func (r *ProjectsLocationsInsightsService) WriteInsight(location string, writeinsightrequest *WriteInsightRequest) *ProjectsLocationsInsightsWriteInsightCall { + c := &ProjectsLocationsInsightsWriteInsightCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.location = location + c.writeinsightrequest = writeinsightrequest + 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 *ProjectsLocationsInsightsWriteInsightCall) Fields(s ...googleapi.Field) *ProjectsLocationsInsightsWriteInsightCall { + 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 *ProjectsLocationsInsightsWriteInsightCall) Context(ctx context.Context) *ProjectsLocationsInsightsWriteInsightCall { + 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 *ProjectsLocationsInsightsWriteInsightCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsInsightsWriteInsightCall) 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.writeinsightrequest) + 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/{+location}/insights:writeInsight") + 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{ + "location": c.location, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "workloadmanager.projects.locations.insights.writeInsight" call. +// Exactly one of *WriteInsightResponse or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *WriteInsightResponse.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 *ProjectsLocationsInsightsWriteInsightCall) Do(opts ...googleapi.CallOption) (*WriteInsightResponse, 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 := &WriteInsightResponse{ + 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": "Write the data insights to workload manager data warehouse.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/insights:writeInsight", + // "httpMethod": "POST", + // "id": "workloadmanager.projects.locations.insights.writeInsight", + // "parameterOrder": [ + // "location" + // ], + // "parameters": { + // "location": { + // "description": "Required. The GCP location. The format is: projects/{project}/locations/{location}.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+location}/insights:writeInsight", + // "request": { + // "$ref": "WriteInsightRequest" + // }, + // "response": { + // "$ref": "WriteInsightResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + // method id "workloadmanager.projects.locations.operations.cancel": type ProjectsLocationsOperationsCancelCall struct {