From 1a78b8c857434d84c0f5c0c3fd83c28eb4a22d6b Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Wed, 17 Aug 2022 07:14:45 +0000 Subject: [PATCH] feat(all): auto-regenerate discovery clients --- androidpublisher/v3/androidpublisher-gen.go | 2 +- api-list.json | 32 +- .../v1/binaryauthorization-api.json | 4 +- .../v1/binaryauthorization-gen.go | 22 +- .../v1beta1/binaryauthorization-api.json | 4 +- .../v1beta1/binaryauthorization-gen.go | 22 +- chromepolicy/v1/chromepolicy-api.json | 12 +- chromepolicy/v1/chromepolicy-gen.go | 7 +- dfareporting/v3.5/dfareporting-api.json | 824 +- dfareporting/v3.5/dfareporting-gen.go | 1228 +- dfareporting/v4/dfareporting-api.json | 852 +- dfareporting/v4/dfareporting-gen.go | 1270 +- displayvideo/v1/displayvideo-api.json | 108 +- displayvideo/v1/displayvideo-gen.go | 93 +- dlp/v2/dlp-api.json | 254 +- dlp/v2/dlp-gen.go | 463 +- firebase/v1beta1/firebase-api.json | 16 +- firebase/v1beta1/firebase-gen.go | 6 - iam/v1/iam-api.json | 4 +- iam/v1/iam-gen.go | 22 +- identitytoolkit/v1/identitytoolkit-api.json | 3631 ++++++ identitytoolkit/v1/identitytoolkit-gen.go | 9908 +++++++++++++++ identitytoolkit/v2/identitytoolkit-api.json | 3040 +++++ identitytoolkit/v2/identitytoolkit-gen.go | 10351 ++++++++++++++++ .../v1/mybusinessverifications-api.json | 4 +- .../v1/mybusinessverifications-gen.go | 5 +- orgpolicy/v2/orgpolicy-api.json | 229 +- orgpolicy/v2/orgpolicy-gen.go | 909 ++ .../v1/recaptchaenterprise-api.json | 16 +- .../v1/recaptchaenterprise-gen.go | 33 +- retail/v2/retail-api.json | 84 +- retail/v2/retail-gen.go | 207 +- retail/v2alpha/retail-api.json | 96 +- retail/v2alpha/retail-gen.go | 235 +- retail/v2beta/retail-api.json | 84 +- retail/v2beta/retail-gen.go | 207 +- tagmanager/v2/tagmanager-api.json | 9 +- tagmanager/v2/tagmanager-gen.go | 3 - 38 files changed, 31534 insertions(+), 2762 deletions(-) create mode 100644 identitytoolkit/v1/identitytoolkit-api.json create mode 100644 identitytoolkit/v1/identitytoolkit-gen.go create mode 100644 identitytoolkit/v2/identitytoolkit-api.json create mode 100644 identitytoolkit/v2/identitytoolkit-gen.go diff --git a/androidpublisher/v3/androidpublisher-gen.go b/androidpublisher/v3/androidpublisher-gen.go index cae76924485..dec80da6d01 100644 --- a/androidpublisher/v3/androidpublisher-gen.go +++ b/androidpublisher/v3/androidpublisher-gen.go @@ -4582,7 +4582,7 @@ type SubscriptionPurchase struct { // are: 0. Payment pending 1. Payment received 2. Free trial 3. Pending // deferred upgrade/downgrade Not present for canceled, expired // subscriptions. - PaymentState int64 `json:"paymentState,omitempty"` + PaymentState *int64 `json:"paymentState,omitempty"` // PriceAmountMicros: Price of the subscription, For tax exclusive // countries, the price doesn't include tax. For tax inclusive diff --git a/api-list.json b/api-list.json index b13cb25ed20..12b97357084 100644 --- a/api-list.json +++ b/api-list.json @@ -3276,6 +3276,36 @@ "documentationLink": "https://console.cloud.google.com/apis/library/ideahub.googleapis.com", "preferred": true }, + { + "kind": "discovery#directoryItem", + "id": "identitytoolkit:v1", + "name": "identitytoolkit", + "version": "v1", + "title": "Identity Toolkit API", + "description": "The Google Identity Toolkit API lets you use open standards to verify a user's identity.", + "discoveryRestUrl": "https://identitytoolkit.googleapis.com/$discovery/rest?version=v1", + "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/identity-platform", + "preferred": false + }, + { + "kind": "discovery#directoryItem", + "id": "identitytoolkit:v2", + "name": "identitytoolkit", + "version": "v2", + "title": "Identity Toolkit API", + "description": "The Google Identity Toolkit API lets you use open standards to verify a user's identity.", + "discoveryRestUrl": "https://identitytoolkit.googleapis.com/$discovery/rest?version=v2", + "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/identity-platform", + "preferred": false + }, { "kind": "discovery#directoryItem", "id": "identitytoolkit:v3", @@ -3288,7 +3318,7 @@ "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://firebase.google.com/docs/auth/", + "documentationLink": "https://cloud.google.com/identity-platform", "preferred": true }, { diff --git a/binaryauthorization/v1/binaryauthorization-api.json b/binaryauthorization/v1/binaryauthorization-api.json index 822f664e326..6561c0cb169 100644 --- a/binaryauthorization/v1/binaryauthorization-api.json +++ b/binaryauthorization/v1/binaryauthorization-api.json @@ -551,7 +551,7 @@ } } }, - "revision": "20220506", + "revision": "20220812", "rootUrl": "https://binaryauthorization.googleapis.com/", "schemas": { "AdmissionRule": { @@ -696,7 +696,7 @@ "description": "The condition that is associated with this binding. If the condition evaluates to `true`, then this binding applies to the current request. If the condition evaluates to `false`, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the principals in this binding. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies)." }, "members": { - "description": "Specifies the principals requesting access for a Google Cloud resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`. ", + "description": "Specifies the principals requesting access for a Google Cloud resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a Google service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An identifier for a [Kubernetes service account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`. ", "items": { "type": "string" }, diff --git a/binaryauthorization/v1/binaryauthorization-gen.go b/binaryauthorization/v1/binaryauthorization-gen.go index f9993389b65..99e5990e69c 100644 --- a/binaryauthorization/v1/binaryauthorization-gen.go +++ b/binaryauthorization/v1/binaryauthorization-gen.go @@ -458,16 +458,20 @@ type Binding struct { // who is authenticated with a Google account or a service account. * // `user:{emailid}`: An email address that represents a specific Google // account. For example, `alice@example.com` . * - // `serviceAccount:{emailid}`: An email address that represents a + // `serviceAccount:{emailid}`: An email address that represents a Google // service account. For example, - // `my-other-app@appspot.gserviceaccount.com`. * `group:{emailid}`: An - // email address that represents a Google group. For example, - // `admins@example.com`. * `deleted:user:{emailid}?uid={uniqueid}`: An - // email address (plus unique identifier) representing a user that has - // been recently deleted. For example, - // `alice@example.com?uid=123456789012345678901`. If the user is - // recovered, this value reverts to `user:{emailid}` and the recovered - // user retains the role in the binding. * + // `my-other-app@appspot.gserviceaccount.com`. * + // `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: + // An identifier for a Kubernetes service account + // (https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). + // For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. + // * `group:{emailid}`: An email address that represents a Google group. + // For example, `admins@example.com`. * + // `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus + // unique identifier) representing a user that has been recently + // deleted. For example, `alice@example.com?uid=123456789012345678901`. + // If the user is recovered, this value reverts to `user:{emailid}` and + // the recovered user retains the role in the binding. * // `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address // (plus unique identifier) representing a service account that has been // recently deleted. For example, diff --git a/binaryauthorization/v1beta1/binaryauthorization-api.json b/binaryauthorization/v1beta1/binaryauthorization-api.json index 76988cc822a..7c39fc6a80d 100644 --- a/binaryauthorization/v1beta1/binaryauthorization-api.json +++ b/binaryauthorization/v1beta1/binaryauthorization-api.json @@ -551,7 +551,7 @@ } } }, - "revision": "20220506", + "revision": "20220812", "rootUrl": "https://binaryauthorization.googleapis.com/", "schemas": { "AdmissionRule": { @@ -696,7 +696,7 @@ "description": "The condition that is associated with this binding. If the condition evaluates to `true`, then this binding applies to the current request. If the condition evaluates to `false`, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the principals in this binding. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies)." }, "members": { - "description": "Specifies the principals requesting access for a Google Cloud resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`. ", + "description": "Specifies the principals requesting access for a Google Cloud resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a Google service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An identifier for a [Kubernetes service account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`. ", "items": { "type": "string" }, diff --git a/binaryauthorization/v1beta1/binaryauthorization-gen.go b/binaryauthorization/v1beta1/binaryauthorization-gen.go index e817a8f0388..ca087acc3a2 100644 --- a/binaryauthorization/v1beta1/binaryauthorization-gen.go +++ b/binaryauthorization/v1beta1/binaryauthorization-gen.go @@ -460,16 +460,20 @@ type Binding struct { // who is authenticated with a Google account or a service account. * // `user:{emailid}`: An email address that represents a specific Google // account. For example, `alice@example.com` . * - // `serviceAccount:{emailid}`: An email address that represents a + // `serviceAccount:{emailid}`: An email address that represents a Google // service account. For example, - // `my-other-app@appspot.gserviceaccount.com`. * `group:{emailid}`: An - // email address that represents a Google group. For example, - // `admins@example.com`. * `deleted:user:{emailid}?uid={uniqueid}`: An - // email address (plus unique identifier) representing a user that has - // been recently deleted. For example, - // `alice@example.com?uid=123456789012345678901`. If the user is - // recovered, this value reverts to `user:{emailid}` and the recovered - // user retains the role in the binding. * + // `my-other-app@appspot.gserviceaccount.com`. * + // `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: + // An identifier for a Kubernetes service account + // (https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). + // For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. + // * `group:{emailid}`: An email address that represents a Google group. + // For example, `admins@example.com`. * + // `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus + // unique identifier) representing a user that has been recently + // deleted. For example, `alice@example.com?uid=123456789012345678901`. + // If the user is recovered, this value reverts to `user:{emailid}` and + // the recovered user retains the role in the binding. * // `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address // (plus unique identifier) representing a service account that has been // recently deleted. For example, diff --git a/chromepolicy/v1/chromepolicy-api.json b/chromepolicy/v1/chromepolicy-api.json index 5e8bdd6ae22..d59b0d818d8 100644 --- a/chromepolicy/v1/chromepolicy-api.json +++ b/chromepolicy/v1/chromepolicy-api.json @@ -441,7 +441,7 @@ } } }, - "revision": "20220809", + "revision": "20220816", "rootUrl": "https://chromepolicy.googleapis.com/", "schemas": { "ChromeCrosDpanelAutosettingsProtoPolicyApiLifecycle": { @@ -676,7 +676,7 @@ "type": "object" }, "GoogleChromePolicyV1PolicySchema": { - "description": "Resource representing a policy schema. Next ID: 12", + "description": "Resource representing a policy schema. Next ID: 13", "id": "GoogleChromePolicyV1PolicySchema", "properties": { "accessRestrictions": { @@ -719,11 +719,15 @@ "readOnly": true, "type": "array" }, - "policyApiLifeycle": { + "policyApiLifecycle": { "$ref": "ChromeCrosDpanelAutosettingsProtoPolicyApiLifecycle", - "description": "Output only. Current life cycle information.", + "description": "Output only. Current lifecycle information.", "readOnly": true }, + "policyApiLifeycle": { + "$ref": "ChromeCrosDpanelAutosettingsProtoPolicyApiLifecycle", + "description": "Deprecated field because of typo." + }, "policyDescription": { "description": "Output only. Description about the policy schema for user consumption.", "readOnly": true, diff --git a/chromepolicy/v1/chromepolicy-gen.go b/chromepolicy/v1/chromepolicy-gen.go index 8198ddb4f47..bd12664319a 100644 --- a/chromepolicy/v1/chromepolicy-gen.go +++ b/chromepolicy/v1/chromepolicy-gen.go @@ -714,7 +714,7 @@ func (s *GoogleChromePolicyV1ModifyOrgUnitPolicyRequest) MarshalJSON() ([]byte, } // GoogleChromePolicyV1PolicySchema: Resource representing a policy -// schema. Next ID: 12 +// schema. Next ID: 13 type GoogleChromePolicyV1PolicySchema struct { // AccessRestrictions: Output only. Specific access restrictions related // to this policy. @@ -741,7 +741,10 @@ type GoogleChromePolicyV1PolicySchema struct { // certain values in certain fields in the schema. Notices []*GoogleChromePolicyV1PolicySchemaNoticeDescription `json:"notices,omitempty"` - // PolicyApiLifeycle: Output only. Current life cycle information. + // PolicyApiLifecycle: Output only. Current lifecycle information. + PolicyApiLifecycle *ChromeCrosDpanelAutosettingsProtoPolicyApiLifecycle `json:"policyApiLifecycle,omitempty"` + + // PolicyApiLifeycle: Deprecated field because of typo. PolicyApiLifeycle *ChromeCrosDpanelAutosettingsProtoPolicyApiLifecycle `json:"policyApiLifeycle,omitempty"` // PolicyDescription: Output only. Description about the policy schema diff --git a/dfareporting/v3.5/dfareporting-api.json b/dfareporting/v3.5/dfareporting-api.json index 331c99038e1..aa4c93baee7 100644 --- a/dfareporting/v3.5/dfareporting-api.json +++ b/dfareporting/v3.5/dfareporting-api.json @@ -14,8 +14,8 @@ } } }, - "basePath": "", - "baseUrl": "https://dfareporting.googleapis.com/", + "basePath": "/dfareporting/v3.5/", + "baseUrl": "https://dfareporting.googleapis.com/dfareporting/v3.5/", "batchPath": "batch", "canonicalName": "Dfareporting", "description": "Build applications to efficiently manage large or complex trafficking, reporting, and attribution workflows for Campaign Manager 360.", @@ -115,7 +115,7 @@ "methods": { "get": { "description": "Gets the account's active ad summary by account ID.", - "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/accountActiveAdSummaries/{summaryAccountId}", + "flatPath": "userprofiles/{profileId}/accountActiveAdSummaries/{summaryAccountId}", "httpMethod": "GET", "id": "dfareporting.accountActiveAdSummaries.get", "parameterOrder": [ @@ -138,7 +138,7 @@ "type": "string" } }, - "path": "dfareporting/v3.5/userprofiles/{profileId}/accountActiveAdSummaries/{summaryAccountId}", + "path": "userprofiles/{profileId}/accountActiveAdSummaries/{summaryAccountId}", "response": { "$ref": "AccountActiveAdSummary" }, @@ -152,7 +152,7 @@ "methods": { "get": { "description": "Gets one account permission group by ID.", - "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/accountPermissionGroups/{id}", + "flatPath": "userprofiles/{profileId}/accountPermissionGroups/{id}", "httpMethod": "GET", "id": "dfareporting.accountPermissionGroups.get", "parameterOrder": [ @@ -175,7 +175,7 @@ "type": "string" } }, - "path": "dfareporting/v3.5/userprofiles/{profileId}/accountPermissionGroups/{id}", + "path": "userprofiles/{profileId}/accountPermissionGroups/{id}", "response": { "$ref": "AccountPermissionGroup" }, @@ -185,7 +185,7 @@ }, "list": { "description": "Retrieves the list of account permission groups.", - "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/accountPermissionGroups", + "flatPath": "userprofiles/{profileId}/accountPermissionGroups", "httpMethod": "GET", "id": "dfareporting.accountPermissionGroups.list", "parameterOrder": [ @@ -200,7 +200,7 @@ "type": "string" } }, - "path": "dfareporting/v3.5/userprofiles/{profileId}/accountPermissionGroups", + "path": "userprofiles/{profileId}/accountPermissionGroups", "response": { "$ref": "AccountPermissionGroupsListResponse" }, @@ -214,7 +214,7 @@ "methods": { "get": { "description": "Gets one account permission by ID.", - "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/accountPermissions/{id}", + "flatPath": "userprofiles/{profileId}/accountPermissions/{id}", "httpMethod": "GET", "id": "dfareporting.accountPermissions.get", "parameterOrder": [ @@ -237,7 +237,7 @@ "type": "string" } }, - "path": "dfareporting/v3.5/userprofiles/{profileId}/accountPermissions/{id}", + "path": "userprofiles/{profileId}/accountPermissions/{id}", "response": { "$ref": "AccountPermission" }, @@ -247,7 +247,7 @@ }, "list": { "description": "Retrieves the list of account permissions.", - "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/accountPermissions", + "flatPath": "userprofiles/{profileId}/accountPermissions", "httpMethod": "GET", "id": "dfareporting.accountPermissions.list", "parameterOrder": [ @@ -262,7 +262,7 @@ "type": "string" } }, - "path": "dfareporting/v3.5/userprofiles/{profileId}/accountPermissions", + "path": "userprofiles/{profileId}/accountPermissions", "response": { "$ref": "AccountPermissionsListResponse" }, @@ -276,7 +276,7 @@ "methods": { "get": { "description": "Gets one account user profile by ID.", - "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/accountUserProfiles/{id}", + "flatPath": "userprofiles/{profileId}/accountUserProfiles/{id}", "httpMethod": "GET", "id": "dfareporting.accountUserProfiles.get", "parameterOrder": [ @@ -299,7 +299,7 @@ "type": "string" } }, - "path": "dfareporting/v3.5/userprofiles/{profileId}/accountUserProfiles/{id}", + "path": "userprofiles/{profileId}/accountUserProfiles/{id}", "response": { "$ref": "AccountUserProfile" }, @@ -309,7 +309,7 @@ }, "insert": { "description": "Inserts a new account user profile.", - "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/accountUserProfiles", + "flatPath": "userprofiles/{profileId}/accountUserProfiles", "httpMethod": "POST", "id": "dfareporting.accountUserProfiles.insert", "parameterOrder": [ @@ -324,7 +324,7 @@ "type": "string" } }, - "path": "dfareporting/v3.5/userprofiles/{profileId}/accountUserProfiles", + "path": "userprofiles/{profileId}/accountUserProfiles", "request": { "$ref": "AccountUserProfile" }, @@ -337,7 +337,7 @@ }, "list": { "description": "Retrieves a list of account user profiles, possibly filtered. This method supports paging.", - "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/accountUserProfiles", + "flatPath": "userprofiles/{profileId}/accountUserProfiles", "httpMethod": "GET", "id": "dfareporting.accountUserProfiles.list", "parameterOrder": [ @@ -423,7 +423,7 @@ "type": "string" } }, - "path": "dfareporting/v3.5/userprofiles/{profileId}/accountUserProfiles", + "path": "userprofiles/{profileId}/accountUserProfiles", "response": { "$ref": "AccountUserProfilesListResponse" }, @@ -433,7 +433,7 @@ }, "patch": { "description": "Updates an existing account user profile. This method supports patch semantics.", - "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/accountUserProfiles", + "flatPath": "userprofiles/{profileId}/accountUserProfiles", "httpMethod": "PATCH", "id": "dfareporting.accountUserProfiles.patch", "parameterOrder": [ @@ -456,7 +456,7 @@ "type": "string" } }, - "path": "dfareporting/v3.5/userprofiles/{profileId}/accountUserProfiles", + "path": "userprofiles/{profileId}/accountUserProfiles", "request": { "$ref": "AccountUserProfile" }, @@ -469,7 +469,7 @@ }, "update": { "description": "Updates an existing account user profile.", - "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/accountUserProfiles", + "flatPath": "userprofiles/{profileId}/accountUserProfiles", "httpMethod": "PUT", "id": "dfareporting.accountUserProfiles.update", "parameterOrder": [ @@ -484,7 +484,7 @@ "type": "string" } }, - "path": "dfareporting/v3.5/userprofiles/{profileId}/accountUserProfiles", + "path": "userprofiles/{profileId}/accountUserProfiles", "request": { "$ref": "AccountUserProfile" }, @@ -501,7 +501,7 @@ "methods": { "get": { "description": "Gets one account by ID.", - "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/accounts/{id}", + "flatPath": "userprofiles/{profileId}/accounts/{id}", "httpMethod": "GET", "id": "dfareporting.accounts.get", "parameterOrder": [ @@ -524,7 +524,7 @@ "type": "string" } }, - "path": "dfareporting/v3.5/userprofiles/{profileId}/accounts/{id}", + "path": "userprofiles/{profileId}/accounts/{id}", "response": { "$ref": "Account" }, @@ -534,7 +534,7 @@ }, "list": { "description": "Retrieves the list of accounts, possibly filtered. This method supports paging.", - "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/accounts", + "flatPath": "userprofiles/{profileId}/accounts", "httpMethod": "GET", "id": "dfareporting.accounts.list", "parameterOrder": [ @@ -608,7 +608,7 @@ "type": "string" } }, - "path": "dfareporting/v3.5/userprofiles/{profileId}/accounts", + "path": "userprofiles/{profileId}/accounts", "response": { "$ref": "AccountsListResponse" }, @@ -618,7 +618,7 @@ }, "patch": { "description": "Updates an existing account. This method supports patch semantics.", - "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/accounts", + "flatPath": "userprofiles/{profileId}/accounts", "httpMethod": "PATCH", "id": "dfareporting.accounts.patch", "parameterOrder": [ @@ -641,7 +641,7 @@ "type": "string" } }, - "path": "dfareporting/v3.5/userprofiles/{profileId}/accounts", + "path": "userprofiles/{profileId}/accounts", "request": { "$ref": "Account" }, @@ -654,7 +654,7 @@ }, "update": { "description": "Updates an existing account.", - "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/accounts", + "flatPath": "userprofiles/{profileId}/accounts", "httpMethod": "PUT", "id": "dfareporting.accounts.update", "parameterOrder": [ @@ -669,7 +669,7 @@ "type": "string" } }, - "path": "dfareporting/v3.5/userprofiles/{profileId}/accounts", + "path": "userprofiles/{profileId}/accounts", "request": { "$ref": "Account" }, @@ -686,7 +686,7 @@ "methods": { "get": { "description": "Gets one ad by ID.", - "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/ads/{id}", + "flatPath": "userprofiles/{profileId}/ads/{id}", "httpMethod": "GET", "id": "dfareporting.ads.get", "parameterOrder": [ @@ -709,7 +709,7 @@ "type": "string" } }, - "path": "dfareporting/v3.5/userprofiles/{profileId}/ads/{id}", + "path": "userprofiles/{profileId}/ads/{id}", "response": { "$ref": "Ad" }, @@ -719,7 +719,7 @@ }, "insert": { "description": "Inserts a new ad.", - "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/ads", + "flatPath": "userprofiles/{profileId}/ads", "httpMethod": "POST", "id": "dfareporting.ads.insert", "parameterOrder": [ @@ -734,7 +734,7 @@ "type": "string" } }, - "path": "dfareporting/v3.5/userprofiles/{profileId}/ads", + "path": "userprofiles/{profileId}/ads", "request": { "$ref": "Ad" }, @@ -747,7 +747,7 @@ }, "list": { "description": "Retrieves a list of ads, possibly filtered. This method supports paging.", - "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/ads", + "flatPath": "userprofiles/{profileId}/ads", "httpMethod": "GET", "id": "dfareporting.ads.list", "parameterOrder": [ @@ -950,7 +950,7 @@ "type": "string" } }, - "path": "dfareporting/v3.5/userprofiles/{profileId}/ads", + "path": "userprofiles/{profileId}/ads", "response": { "$ref": "AdsListResponse" }, @@ -960,7 +960,7 @@ }, "patch": { "description": "Updates an existing ad. This method supports patch semantics.", - "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/ads", + "flatPath": "userprofiles/{profileId}/ads", "httpMethod": "PATCH", "id": "dfareporting.ads.patch", "parameterOrder": [ @@ -983,7 +983,7 @@ "type": "string" } }, - "path": "dfareporting/v3.5/userprofiles/{profileId}/ads", + "path": "userprofiles/{profileId}/ads", "request": { "$ref": "Ad" }, @@ -996,7 +996,7 @@ }, "update": { "description": "Updates an existing ad.", - "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/ads", + "flatPath": "userprofiles/{profileId}/ads", "httpMethod": "PUT", "id": "dfareporting.ads.update", "parameterOrder": [ @@ -1011,7 +1011,7 @@ "type": "string" } }, - "path": "dfareporting/v3.5/userprofiles/{profileId}/ads", + "path": "userprofiles/{profileId}/ads", "request": { "$ref": "Ad" }, @@ -1028,7 +1028,7 @@ "methods": { "delete": { "description": "Deletes an existing advertiser group.", - "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/advertiserGroups/{id}", + "flatPath": "userprofiles/{profileId}/advertiserGroups/{id}", "httpMethod": "DELETE", "id": "dfareporting.advertiserGroups.delete", "parameterOrder": [ @@ -1051,14 +1051,14 @@ "type": "string" } }, - "path": "dfareporting/v3.5/userprofiles/{profileId}/advertiserGroups/{id}", + "path": "userprofiles/{profileId}/advertiserGroups/{id}", "scopes": [ "https://www.googleapis.com/auth/dfatrafficking" ] }, "get": { "description": "Gets one advertiser group by ID.", - "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/advertiserGroups/{id}", + "flatPath": "userprofiles/{profileId}/advertiserGroups/{id}", "httpMethod": "GET", "id": "dfareporting.advertiserGroups.get", "parameterOrder": [ @@ -1081,7 +1081,7 @@ "type": "string" } }, - "path": "dfareporting/v3.5/userprofiles/{profileId}/advertiserGroups/{id}", + "path": "userprofiles/{profileId}/advertiserGroups/{id}", "response": { "$ref": "AdvertiserGroup" }, @@ -1091,7 +1091,7 @@ }, "insert": { "description": "Inserts a new advertiser group.", - "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/advertiserGroups", + "flatPath": "userprofiles/{profileId}/advertiserGroups", "httpMethod": "POST", "id": "dfareporting.advertiserGroups.insert", "parameterOrder": [ @@ -1106,7 +1106,7 @@ "type": "string" } }, - "path": "dfareporting/v3.5/userprofiles/{profileId}/advertiserGroups", + "path": "userprofiles/{profileId}/advertiserGroups", "request": { "$ref": "AdvertiserGroup" }, @@ -1119,7 +1119,7 @@ }, "list": { "description": "Retrieves a list of advertiser groups, possibly filtered. This method supports paging.", - "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/advertiserGroups", + "flatPath": "userprofiles/{profileId}/advertiserGroups", "httpMethod": "GET", "id": "dfareporting.advertiserGroups.list", "parameterOrder": [ @@ -1188,7 +1188,7 @@ "type": "string" } }, - "path": "dfareporting/v3.5/userprofiles/{profileId}/advertiserGroups", + "path": "userprofiles/{profileId}/advertiserGroups", "response": { "$ref": "AdvertiserGroupsListResponse" }, @@ -1198,7 +1198,7 @@ }, "patch": { "description": "Updates an existing advertiser group. This method supports patch semantics.", - "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/advertiserGroups", + "flatPath": "userprofiles/{profileId}/advertiserGroups", "httpMethod": "PATCH", "id": "dfareporting.advertiserGroups.patch", "parameterOrder": [ @@ -1221,7 +1221,7 @@ "type": "string" } }, - "path": "dfareporting/v3.5/userprofiles/{profileId}/advertiserGroups", + "path": "userprofiles/{profileId}/advertiserGroups", "request": { "$ref": "AdvertiserGroup" }, @@ -1234,7 +1234,7 @@ }, "update": { "description": "Updates an existing advertiser group.", - "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/advertiserGroups", + "flatPath": "userprofiles/{profileId}/advertiserGroups", "httpMethod": "PUT", "id": "dfareporting.advertiserGroups.update", "parameterOrder": [ @@ -1249,7 +1249,7 @@ "type": "string" } }, - "path": "dfareporting/v3.5/userprofiles/{profileId}/advertiserGroups", + "path": "userprofiles/{profileId}/advertiserGroups", "request": { "$ref": "AdvertiserGroup" }, @@ -1266,7 +1266,7 @@ "methods": { "get": { "description": "Gets one landing page by ID.", - "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/advertiserLandingPages/{id}", + "flatPath": "userprofiles/{profileId}/advertiserLandingPages/{id}", "httpMethod": "GET", "id": "dfareporting.advertiserLandingPages.get", "parameterOrder": [ @@ -1289,7 +1289,7 @@ "type": "string" } }, - "path": "dfareporting/v3.5/userprofiles/{profileId}/advertiserLandingPages/{id}", + "path": "userprofiles/{profileId}/advertiserLandingPages/{id}", "response": { "$ref": "LandingPage" }, @@ -1299,7 +1299,7 @@ }, "insert": { "description": "Inserts a new landing page.", - "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/advertiserLandingPages", + "flatPath": "userprofiles/{profileId}/advertiserLandingPages", "httpMethod": "POST", "id": "dfareporting.advertiserLandingPages.insert", "parameterOrder": [ @@ -1314,7 +1314,7 @@ "type": "string" } }, - "path": "dfareporting/v3.5/userprofiles/{profileId}/advertiserLandingPages", + "path": "userprofiles/{profileId}/advertiserLandingPages", "request": { "$ref": "LandingPage" }, @@ -1327,7 +1327,7 @@ }, "list": { "description": "Retrieves a list of landing pages.", - "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/advertiserLandingPages", + "flatPath": "userprofiles/{profileId}/advertiserLandingPages", "httpMethod": "GET", "id": "dfareporting.advertiserLandingPages.list", "parameterOrder": [ @@ -1421,7 +1421,7 @@ "type": "string" } }, - "path": "dfareporting/v3.5/userprofiles/{profileId}/advertiserLandingPages", + "path": "userprofiles/{profileId}/advertiserLandingPages", "response": { "$ref": "AdvertiserLandingPagesListResponse" }, @@ -1431,7 +1431,7 @@ }, "patch": { "description": "Updates an existing advertiser landing page. This method supports patch semantics.", - "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/advertiserLandingPages", + "flatPath": "userprofiles/{profileId}/advertiserLandingPages", "httpMethod": "PATCH", "id": "dfareporting.advertiserLandingPages.patch", "parameterOrder": [ @@ -1454,7 +1454,7 @@ "type": "string" } }, - "path": "dfareporting/v3.5/userprofiles/{profileId}/advertiserLandingPages", + "path": "userprofiles/{profileId}/advertiserLandingPages", "request": { "$ref": "LandingPage" }, @@ -1467,7 +1467,7 @@ }, "update": { "description": "Updates an existing landing page.", - "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/advertiserLandingPages", + "flatPath": "userprofiles/{profileId}/advertiserLandingPages", "httpMethod": "PUT", "id": "dfareporting.advertiserLandingPages.update", "parameterOrder": [ @@ -1482,7 +1482,7 @@ "type": "string" } }, - "path": "dfareporting/v3.5/userprofiles/{profileId}/advertiserLandingPages", + "path": "userprofiles/{profileId}/advertiserLandingPages", "request": { "$ref": "LandingPage" }, @@ -1499,7 +1499,7 @@ "methods": { "get": { "description": "Gets one advertiser by ID.", - "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/advertisers/{id}", + "flatPath": "userprofiles/{profileId}/advertisers/{id}", "httpMethod": "GET", "id": "dfareporting.advertisers.get", "parameterOrder": [ @@ -1522,7 +1522,7 @@ "type": "string" } }, - "path": "dfareporting/v3.5/userprofiles/{profileId}/advertisers/{id}", + "path": "userprofiles/{profileId}/advertisers/{id}", "response": { "$ref": "Advertiser" }, @@ -1532,7 +1532,7 @@ }, "insert": { "description": "Inserts a new advertiser.", - "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/advertisers", + "flatPath": "userprofiles/{profileId}/advertisers", "httpMethod": "POST", "id": "dfareporting.advertisers.insert", "parameterOrder": [ @@ -1547,7 +1547,7 @@ "type": "string" } }, - "path": "dfareporting/v3.5/userprofiles/{profileId}/advertisers", + "path": "userprofiles/{profileId}/advertisers", "request": { "$ref": "Advertiser" }, @@ -1560,7 +1560,7 @@ }, "list": { "description": "Retrieves a list of advertisers, possibly filtered. This method supports paging.", - "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/advertisers", + "flatPath": "userprofiles/{profileId}/advertisers", "httpMethod": "GET", "id": "dfareporting.advertisers.list", "parameterOrder": [ @@ -1672,7 +1672,7 @@ "type": "string" } }, - "path": "dfareporting/v3.5/userprofiles/{profileId}/advertisers", + "path": "userprofiles/{profileId}/advertisers", "response": { "$ref": "AdvertisersListResponse" }, @@ -1682,7 +1682,7 @@ }, "patch": { "description": "Updates an existing advertiser. This method supports patch semantics.", - "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/advertisers", + "flatPath": "userprofiles/{profileId}/advertisers", "httpMethod": "PATCH", "id": "dfareporting.advertisers.patch", "parameterOrder": [ @@ -1705,7 +1705,7 @@ "type": "string" } }, - "path": "dfareporting/v3.5/userprofiles/{profileId}/advertisers", + "path": "userprofiles/{profileId}/advertisers", "request": { "$ref": "Advertiser" }, @@ -1718,7 +1718,7 @@ }, "update": { "description": "Updates an existing advertiser.", - "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/advertisers", + "flatPath": "userprofiles/{profileId}/advertisers", "httpMethod": "PUT", "id": "dfareporting.advertisers.update", "parameterOrder": [ @@ -1733,7 +1733,7 @@ "type": "string" } }, - "path": "dfareporting/v3.5/userprofiles/{profileId}/advertisers", + "path": "userprofiles/{profileId}/advertisers", "request": { "$ref": "Advertiser" }, @@ -1750,7 +1750,7 @@ "methods": { "list": { "description": "Retrieves a list of browsers.", - "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/browsers", + "flatPath": "userprofiles/{profileId}/browsers", "httpMethod": "GET", "id": "dfareporting.browsers.list", "parameterOrder": [ @@ -1765,7 +1765,7 @@ "type": "string" } }, - "path": "dfareporting/v3.5/userprofiles/{profileId}/browsers", + "path": "userprofiles/{profileId}/browsers", "response": { "$ref": "BrowsersListResponse" }, @@ -1779,7 +1779,7 @@ "methods": { "insert": { "description": "Associates a creative with the specified campaign. This method creates a default ad with dimensions matching the creative in the campaign if such a default ad does not exist already.", - "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/campaigns/{campaignId}/campaignCreativeAssociations", + "flatPath": "userprofiles/{profileId}/campaigns/{campaignId}/campaignCreativeAssociations", "httpMethod": "POST", "id": "dfareporting.campaignCreativeAssociations.insert", "parameterOrder": [ @@ -1802,7 +1802,7 @@ "type": "string" } }, - "path": "dfareporting/v3.5/userprofiles/{profileId}/campaigns/{campaignId}/campaignCreativeAssociations", + "path": "userprofiles/{profileId}/campaigns/{campaignId}/campaignCreativeAssociations", "request": { "$ref": "CampaignCreativeAssociation" }, @@ -1815,7 +1815,7 @@ }, "list": { "description": "Retrieves the list of creative IDs associated with the specified campaign. This method supports paging.", - "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/campaigns/{campaignId}/campaignCreativeAssociations", + "flatPath": "userprofiles/{profileId}/campaigns/{campaignId}/campaignCreativeAssociations", "httpMethod": "GET", "id": "dfareporting.campaignCreativeAssociations.list", "parameterOrder": [ @@ -1866,7 +1866,7 @@ "type": "string" } }, - "path": "dfareporting/v3.5/userprofiles/{profileId}/campaigns/{campaignId}/campaignCreativeAssociations", + "path": "userprofiles/{profileId}/campaigns/{campaignId}/campaignCreativeAssociations", "response": { "$ref": "CampaignCreativeAssociationsListResponse" }, @@ -1880,7 +1880,7 @@ "methods": { "get": { "description": "Gets one campaign by ID.", - "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/campaigns/{id}", + "flatPath": "userprofiles/{profileId}/campaigns/{id}", "httpMethod": "GET", "id": "dfareporting.campaigns.get", "parameterOrder": [ @@ -1903,7 +1903,7 @@ "type": "string" } }, - "path": "dfareporting/v3.5/userprofiles/{profileId}/campaigns/{id}", + "path": "userprofiles/{profileId}/campaigns/{id}", "response": { "$ref": "Campaign" }, @@ -1913,7 +1913,7 @@ }, "insert": { "description": "Inserts a new campaign.", - "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/campaigns", + "flatPath": "userprofiles/{profileId}/campaigns", "httpMethod": "POST", "id": "dfareporting.campaigns.insert", "parameterOrder": [ @@ -1928,7 +1928,7 @@ "type": "string" } }, - "path": "dfareporting/v3.5/userprofiles/{profileId}/campaigns", + "path": "userprofiles/{profileId}/campaigns", "request": { "$ref": "Campaign" }, @@ -1941,7 +1941,7 @@ }, "list": { "description": "Retrieves a list of campaigns, possibly filtered. This method supports paging.", - "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/campaigns", + "flatPath": "userprofiles/{profileId}/campaigns", "httpMethod": "GET", "id": "dfareporting.campaigns.list", "parameterOrder": [ @@ -2053,7 +2053,7 @@ "type": "string" } }, - "path": "dfareporting/v3.5/userprofiles/{profileId}/campaigns", + "path": "userprofiles/{profileId}/campaigns", "response": { "$ref": "CampaignsListResponse" }, @@ -2063,7 +2063,7 @@ }, "patch": { "description": "Updates an existing campaign. This method supports patch semantics.", - "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/campaigns", + "flatPath": "userprofiles/{profileId}/campaigns", "httpMethod": "PATCH", "id": "dfareporting.campaigns.patch", "parameterOrder": [ @@ -2086,7 +2086,7 @@ "type": "string" } }, - "path": "dfareporting/v3.5/userprofiles/{profileId}/campaigns", + "path": "userprofiles/{profileId}/campaigns", "request": { "$ref": "Campaign" }, @@ -2099,7 +2099,7 @@ }, "update": { "description": "Updates an existing campaign.", - "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/campaigns", + "flatPath": "userprofiles/{profileId}/campaigns", "httpMethod": "PUT", "id": "dfareporting.campaigns.update", "parameterOrder": [ @@ -2114,7 +2114,7 @@ "type": "string" } }, - "path": "dfareporting/v3.5/userprofiles/{profileId}/campaigns", + "path": "userprofiles/{profileId}/campaigns", "request": { "$ref": "Campaign" }, @@ -2131,7 +2131,7 @@ "methods": { "get": { "description": "Gets one change log by ID.", - "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/changeLogs/{id}", + "flatPath": "userprofiles/{profileId}/changeLogs/{id}", "httpMethod": "GET", "id": "dfareporting.changeLogs.get", "parameterOrder": [ @@ -2154,7 +2154,7 @@ "type": "string" } }, - "path": "dfareporting/v3.5/userprofiles/{profileId}/changeLogs/{id}", + "path": "userprofiles/{profileId}/changeLogs/{id}", "response": { "$ref": "ChangeLog" }, @@ -2164,7 +2164,7 @@ }, "list": { "description": "Retrieves a list of change logs. This method supports paging.", - "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/changeLogs", + "flatPath": "userprofiles/{profileId}/changeLogs", "httpMethod": "GET", "id": "dfareporting.changeLogs.list", "parameterOrder": [ @@ -2363,7 +2363,7 @@ "type": "string" } }, - "path": "dfareporting/v3.5/userprofiles/{profileId}/changeLogs", + "path": "userprofiles/{profileId}/changeLogs", "response": { "$ref": "ChangeLogsListResponse" }, @@ -2377,7 +2377,7 @@ "methods": { "list": { "description": "Retrieves a list of cities, possibly filtered.", - "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/cities", + "flatPath": "userprofiles/{profileId}/cities", "httpMethod": "GET", "id": "dfareporting.cities.list", "parameterOrder": [ @@ -2418,7 +2418,7 @@ "type": "string" } }, - "path": "dfareporting/v3.5/userprofiles/{profileId}/cities", + "path": "userprofiles/{profileId}/cities", "response": { "$ref": "CitiesListResponse" }, @@ -2432,7 +2432,7 @@ "methods": { "get": { "description": "Gets one connection type by ID.", - "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/connectionTypes/{id}", + "flatPath": "userprofiles/{profileId}/connectionTypes/{id}", "httpMethod": "GET", "id": "dfareporting.connectionTypes.get", "parameterOrder": [ @@ -2455,7 +2455,7 @@ "type": "string" } }, - "path": "dfareporting/v3.5/userprofiles/{profileId}/connectionTypes/{id}", + "path": "userprofiles/{profileId}/connectionTypes/{id}", "response": { "$ref": "ConnectionType" }, @@ -2465,7 +2465,7 @@ }, "list": { "description": "Retrieves a list of connection types.", - "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/connectionTypes", + "flatPath": "userprofiles/{profileId}/connectionTypes", "httpMethod": "GET", "id": "dfareporting.connectionTypes.list", "parameterOrder": [ @@ -2480,7 +2480,7 @@ "type": "string" } }, - "path": "dfareporting/v3.5/userprofiles/{profileId}/connectionTypes", + "path": "userprofiles/{profileId}/connectionTypes", "response": { "$ref": "ConnectionTypesListResponse" }, @@ -2494,7 +2494,7 @@ "methods": { "delete": { "description": "Deletes an existing content category.", - "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/contentCategories/{id}", + "flatPath": "userprofiles/{profileId}/contentCategories/{id}", "httpMethod": "DELETE", "id": "dfareporting.contentCategories.delete", "parameterOrder": [ @@ -2517,14 +2517,14 @@ "type": "string" } }, - "path": "dfareporting/v3.5/userprofiles/{profileId}/contentCategories/{id}", + "path": "userprofiles/{profileId}/contentCategories/{id}", "scopes": [ "https://www.googleapis.com/auth/dfatrafficking" ] }, "get": { "description": "Gets one content category by ID.", - "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/contentCategories/{id}", + "flatPath": "userprofiles/{profileId}/contentCategories/{id}", "httpMethod": "GET", "id": "dfareporting.contentCategories.get", "parameterOrder": [ @@ -2547,7 +2547,7 @@ "type": "string" } }, - "path": "dfareporting/v3.5/userprofiles/{profileId}/contentCategories/{id}", + "path": "userprofiles/{profileId}/contentCategories/{id}", "response": { "$ref": "ContentCategory" }, @@ -2557,7 +2557,7 @@ }, "insert": { "description": "Inserts a new content category.", - "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/contentCategories", + "flatPath": "userprofiles/{profileId}/contentCategories", "httpMethod": "POST", "id": "dfareporting.contentCategories.insert", "parameterOrder": [ @@ -2572,7 +2572,7 @@ "type": "string" } }, - "path": "dfareporting/v3.5/userprofiles/{profileId}/contentCategories", + "path": "userprofiles/{profileId}/contentCategories", "request": { "$ref": "ContentCategory" }, @@ -2585,7 +2585,7 @@ }, "list": { "description": "Retrieves a list of content categories, possibly filtered. This method supports paging.", - "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/contentCategories", + "flatPath": "userprofiles/{profileId}/contentCategories", "httpMethod": "GET", "id": "dfareporting.contentCategories.list", "parameterOrder": [ @@ -2654,7 +2654,7 @@ "type": "string" } }, - "path": "dfareporting/v3.5/userprofiles/{profileId}/contentCategories", + "path": "userprofiles/{profileId}/contentCategories", "response": { "$ref": "ContentCategoriesListResponse" }, @@ -2664,7 +2664,7 @@ }, "patch": { "description": "Updates an existing content category. This method supports patch semantics.", - "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/contentCategories", + "flatPath": "userprofiles/{profileId}/contentCategories", "httpMethod": "PATCH", "id": "dfareporting.contentCategories.patch", "parameterOrder": [ @@ -2687,7 +2687,7 @@ "type": "string" } }, - "path": "dfareporting/v3.5/userprofiles/{profileId}/contentCategories", + "path": "userprofiles/{profileId}/contentCategories", "request": { "$ref": "ContentCategory" }, @@ -2700,7 +2700,7 @@ }, "update": { "description": "Updates an existing content category.", - "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/contentCategories", + "flatPath": "userprofiles/{profileId}/contentCategories", "httpMethod": "PUT", "id": "dfareporting.contentCategories.update", "parameterOrder": [ @@ -2715,7 +2715,7 @@ "type": "string" } }, - "path": "dfareporting/v3.5/userprofiles/{profileId}/contentCategories", + "path": "userprofiles/{profileId}/contentCategories", "request": { "$ref": "ContentCategory" }, @@ -2732,7 +2732,7 @@ "methods": { "batchinsert": { "description": "Inserts conversions.", - "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/conversions/batchinsert", + "flatPath": "userprofiles/{profileId}/conversions/batchinsert", "httpMethod": "POST", "id": "dfareporting.conversions.batchinsert", "parameterOrder": [ @@ -2747,7 +2747,7 @@ "type": "string" } }, - "path": "dfareporting/v3.5/userprofiles/{profileId}/conversions/batchinsert", + "path": "userprofiles/{profileId}/conversions/batchinsert", "request": { "$ref": "ConversionsBatchInsertRequest" }, @@ -2760,7 +2760,7 @@ }, "batchupdate": { "description": "Updates existing conversions.", - "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/conversions/batchupdate", + "flatPath": "userprofiles/{profileId}/conversions/batchupdate", "httpMethod": "POST", "id": "dfareporting.conversions.batchupdate", "parameterOrder": [ @@ -2775,7 +2775,7 @@ "type": "string" } }, - "path": "dfareporting/v3.5/userprofiles/{profileId}/conversions/batchupdate", + "path": "userprofiles/{profileId}/conversions/batchupdate", "request": { "$ref": "ConversionsBatchUpdateRequest" }, @@ -2792,7 +2792,7 @@ "methods": { "get": { "description": "Gets one country by ID.", - "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/countries/{dartId}", + "flatPath": "userprofiles/{profileId}/countries/{dartId}", "httpMethod": "GET", "id": "dfareporting.countries.get", "parameterOrder": [ @@ -2815,7 +2815,7 @@ "type": "string" } }, - "path": "dfareporting/v3.5/userprofiles/{profileId}/countries/{dartId}", + "path": "userprofiles/{profileId}/countries/{dartId}", "response": { "$ref": "Country" }, @@ -2825,7 +2825,7 @@ }, "list": { "description": "Retrieves a list of countries.", - "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/countries", + "flatPath": "userprofiles/{profileId}/countries", "httpMethod": "GET", "id": "dfareporting.countries.list", "parameterOrder": [ @@ -2840,7 +2840,7 @@ "type": "string" } }, - "path": "dfareporting/v3.5/userprofiles/{profileId}/countries", + "path": "userprofiles/{profileId}/countries", "response": { "$ref": "CountriesListResponse" }, @@ -2854,7 +2854,7 @@ "methods": { "insert": { "description": "Inserts a new creative asset.", - "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/creativeAssets/{advertiserId}/creativeAssets", + "flatPath": "userprofiles/{profileId}/creativeAssets/{advertiserId}/creativeAssets", "httpMethod": "POST", "id": "dfareporting.creativeAssets.insert", "mediaUpload": { @@ -2889,7 +2889,7 @@ "type": "string" } }, - "path": "dfareporting/v3.5/userprofiles/{profileId}/creativeAssets/{advertiserId}/creativeAssets", + "path": "userprofiles/{profileId}/creativeAssets/{advertiserId}/creativeAssets", "request": { "$ref": "CreativeAssetMetadata" }, @@ -2907,7 +2907,7 @@ "methods": { "delete": { "description": "Deletes an existing creative field value.", - "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues/{id}", + "flatPath": "userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues/{id}", "httpMethod": "DELETE", "id": "dfareporting.creativeFieldValues.delete", "parameterOrder": [ @@ -2938,14 +2938,14 @@ "type": "string" } }, - "path": "dfareporting/v3.5/userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues/{id}", + "path": "userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues/{id}", "scopes": [ "https://www.googleapis.com/auth/dfatrafficking" ] }, "get": { "description": "Gets one creative field value by ID.", - "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues/{id}", + "flatPath": "userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues/{id}", "httpMethod": "GET", "id": "dfareporting.creativeFieldValues.get", "parameterOrder": [ @@ -2976,7 +2976,7 @@ "type": "string" } }, - "path": "dfareporting/v3.5/userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues/{id}", + "path": "userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues/{id}", "response": { "$ref": "CreativeFieldValue" }, @@ -2986,7 +2986,7 @@ }, "insert": { "description": "Inserts a new creative field value.", - "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues", + "flatPath": "userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues", "httpMethod": "POST", "id": "dfareporting.creativeFieldValues.insert", "parameterOrder": [ @@ -3009,7 +3009,7 @@ "type": "string" } }, - "path": "dfareporting/v3.5/userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues", + "path": "userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues", "request": { "$ref": "CreativeFieldValue" }, @@ -3022,7 +3022,7 @@ }, "list": { "description": "Retrieves a list of creative field values, possibly filtered. This method supports paging.", - "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues", + "flatPath": "userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues", "httpMethod": "GET", "id": "dfareporting.creativeFieldValues.list", "parameterOrder": [ @@ -3099,7 +3099,7 @@ "type": "string" } }, - "path": "dfareporting/v3.5/userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues", + "path": "userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues", "response": { "$ref": "CreativeFieldValuesListResponse" }, @@ -3109,7 +3109,7 @@ }, "patch": { "description": "Updates an existing creative field value. This method supports patch semantics.", - "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues", + "flatPath": "userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues", "httpMethod": "PATCH", "id": "dfareporting.creativeFieldValues.patch", "parameterOrder": [ @@ -3140,7 +3140,7 @@ "type": "string" } }, - "path": "dfareporting/v3.5/userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues", + "path": "userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues", "request": { "$ref": "CreativeFieldValue" }, @@ -3153,7 +3153,7 @@ }, "update": { "description": "Updates an existing creative field value.", - "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues", + "flatPath": "userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues", "httpMethod": "PUT", "id": "dfareporting.creativeFieldValues.update", "parameterOrder": [ @@ -3176,7 +3176,7 @@ "type": "string" } }, - "path": "dfareporting/v3.5/userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues", + "path": "userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues", "request": { "$ref": "CreativeFieldValue" }, @@ -3193,7 +3193,7 @@ "methods": { "delete": { "description": "Deletes an existing creative field.", - "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/creativeFields/{id}", + "flatPath": "userprofiles/{profileId}/creativeFields/{id}", "httpMethod": "DELETE", "id": "dfareporting.creativeFields.delete", "parameterOrder": [ @@ -3216,14 +3216,14 @@ "type": "string" } }, - "path": "dfareporting/v3.5/userprofiles/{profileId}/creativeFields/{id}", + "path": "userprofiles/{profileId}/creativeFields/{id}", "scopes": [ "https://www.googleapis.com/auth/dfatrafficking" ] }, "get": { "description": "Gets one creative field by ID.", - "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/creativeFields/{id}", + "flatPath": "userprofiles/{profileId}/creativeFields/{id}", "httpMethod": "GET", "id": "dfareporting.creativeFields.get", "parameterOrder": [ @@ -3246,7 +3246,7 @@ "type": "string" } }, - "path": "dfareporting/v3.5/userprofiles/{profileId}/creativeFields/{id}", + "path": "userprofiles/{profileId}/creativeFields/{id}", "response": { "$ref": "CreativeField" }, @@ -3256,7 +3256,7 @@ }, "insert": { "description": "Inserts a new creative field.", - "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/creativeFields", + "flatPath": "userprofiles/{profileId}/creativeFields", "httpMethod": "POST", "id": "dfareporting.creativeFields.insert", "parameterOrder": [ @@ -3271,7 +3271,7 @@ "type": "string" } }, - "path": "dfareporting/v3.5/userprofiles/{profileId}/creativeFields", + "path": "userprofiles/{profileId}/creativeFields", "request": { "$ref": "CreativeField" }, @@ -3284,7 +3284,7 @@ }, "list": { "description": "Retrieves a list of creative fields, possibly filtered. This method supports paging.", - "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/creativeFields", + "flatPath": "userprofiles/{profileId}/creativeFields", "httpMethod": "GET", "id": "dfareporting.creativeFields.list", "parameterOrder": [ @@ -3360,7 +3360,7 @@ "type": "string" } }, - "path": "dfareporting/v3.5/userprofiles/{profileId}/creativeFields", + "path": "userprofiles/{profileId}/creativeFields", "response": { "$ref": "CreativeFieldsListResponse" }, @@ -3370,7 +3370,7 @@ }, "patch": { "description": "Updates an existing creative field. This method supports patch semantics.", - "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/creativeFields", + "flatPath": "userprofiles/{profileId}/creativeFields", "httpMethod": "PATCH", "id": "dfareporting.creativeFields.patch", "parameterOrder": [ @@ -3393,7 +3393,7 @@ "type": "string" } }, - "path": "dfareporting/v3.5/userprofiles/{profileId}/creativeFields", + "path": "userprofiles/{profileId}/creativeFields", "request": { "$ref": "CreativeField" }, @@ -3406,7 +3406,7 @@ }, "update": { "description": "Updates an existing creative field.", - "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/creativeFields", + "flatPath": "userprofiles/{profileId}/creativeFields", "httpMethod": "PUT", "id": "dfareporting.creativeFields.update", "parameterOrder": [ @@ -3421,7 +3421,7 @@ "type": "string" } }, - "path": "dfareporting/v3.5/userprofiles/{profileId}/creativeFields", + "path": "userprofiles/{profileId}/creativeFields", "request": { "$ref": "CreativeField" }, @@ -3438,7 +3438,7 @@ "methods": { "get": { "description": "Gets one creative group by ID.", - "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/creativeGroups/{id}", + "flatPath": "userprofiles/{profileId}/creativeGroups/{id}", "httpMethod": "GET", "id": "dfareporting.creativeGroups.get", "parameterOrder": [ @@ -3461,7 +3461,7 @@ "type": "string" } }, - "path": "dfareporting/v3.5/userprofiles/{profileId}/creativeGroups/{id}", + "path": "userprofiles/{profileId}/creativeGroups/{id}", "response": { "$ref": "CreativeGroup" }, @@ -3471,7 +3471,7 @@ }, "insert": { "description": "Inserts a new creative group.", - "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/creativeGroups", + "flatPath": "userprofiles/{profileId}/creativeGroups", "httpMethod": "POST", "id": "dfareporting.creativeGroups.insert", "parameterOrder": [ @@ -3486,7 +3486,7 @@ "type": "string" } }, - "path": "dfareporting/v3.5/userprofiles/{profileId}/creativeGroups", + "path": "userprofiles/{profileId}/creativeGroups", "request": { "$ref": "CreativeGroup" }, @@ -3499,7 +3499,7 @@ }, "list": { "description": "Retrieves a list of creative groups, possibly filtered. This method supports paging.", - "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/creativeGroups", + "flatPath": "userprofiles/{profileId}/creativeGroups", "httpMethod": "GET", "id": "dfareporting.creativeGroups.list", "parameterOrder": [ @@ -3583,7 +3583,7 @@ "type": "string" } }, - "path": "dfareporting/v3.5/userprofiles/{profileId}/creativeGroups", + "path": "userprofiles/{profileId}/creativeGroups", "response": { "$ref": "CreativeGroupsListResponse" }, @@ -3593,7 +3593,7 @@ }, "patch": { "description": "Updates an existing creative group. This method supports patch semantics.", - "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/creativeGroups", + "flatPath": "userprofiles/{profileId}/creativeGroups", "httpMethod": "PATCH", "id": "dfareporting.creativeGroups.patch", "parameterOrder": [ @@ -3616,7 +3616,7 @@ "type": "string" } }, - "path": "dfareporting/v3.5/userprofiles/{profileId}/creativeGroups", + "path": "userprofiles/{profileId}/creativeGroups", "request": { "$ref": "CreativeGroup" }, @@ -3629,7 +3629,7 @@ }, "update": { "description": "Updates an existing creative group.", - "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/creativeGroups", + "flatPath": "userprofiles/{profileId}/creativeGroups", "httpMethod": "PUT", "id": "dfareporting.creativeGroups.update", "parameterOrder": [ @@ -3644,7 +3644,7 @@ "type": "string" } }, - "path": "dfareporting/v3.5/userprofiles/{profileId}/creativeGroups", + "path": "userprofiles/{profileId}/creativeGroups", "request": { "$ref": "CreativeGroup" }, @@ -3661,7 +3661,7 @@ "methods": { "get": { "description": "Gets one creative by ID.", - "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/creatives/{id}", + "flatPath": "userprofiles/{profileId}/creatives/{id}", "httpMethod": "GET", "id": "dfareporting.creatives.get", "parameterOrder": [ @@ -3684,7 +3684,7 @@ "type": "string" } }, - "path": "dfareporting/v3.5/userprofiles/{profileId}/creatives/{id}", + "path": "userprofiles/{profileId}/creatives/{id}", "response": { "$ref": "Creative" }, @@ -3694,7 +3694,7 @@ }, "insert": { "description": "Inserts a new creative.", - "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/creatives", + "flatPath": "userprofiles/{profileId}/creatives", "httpMethod": "POST", "id": "dfareporting.creatives.insert", "parameterOrder": [ @@ -3709,7 +3709,7 @@ "type": "string" } }, - "path": "dfareporting/v3.5/userprofiles/{profileId}/creatives", + "path": "userprofiles/{profileId}/creatives", "request": { "$ref": "Creative" }, @@ -3722,7 +3722,7 @@ }, "list": { "description": "Retrieves a list of creatives, possibly filtered. This method supports paging.", - "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/creatives", + "flatPath": "userprofiles/{profileId}/creatives", "httpMethod": "GET", "id": "dfareporting.creatives.list", "parameterOrder": [ @@ -3907,7 +3907,7 @@ "type": "string" } }, - "path": "dfareporting/v3.5/userprofiles/{profileId}/creatives", + "path": "userprofiles/{profileId}/creatives", "response": { "$ref": "CreativesListResponse" }, @@ -3917,7 +3917,7 @@ }, "patch": { "description": "Updates an existing creative. This method supports patch semantics.", - "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/creatives", + "flatPath": "userprofiles/{profileId}/creatives", "httpMethod": "PATCH", "id": "dfareporting.creatives.patch", "parameterOrder": [ @@ -3940,7 +3940,7 @@ "type": "string" } }, - "path": "dfareporting/v3.5/userprofiles/{profileId}/creatives", + "path": "userprofiles/{profileId}/creatives", "request": { "$ref": "Creative" }, @@ -3953,7 +3953,7 @@ }, "update": { "description": "Updates an existing creative.", - "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/creatives", + "flatPath": "userprofiles/{profileId}/creatives", "httpMethod": "PUT", "id": "dfareporting.creatives.update", "parameterOrder": [ @@ -3968,7 +3968,7 @@ "type": "string" } }, - "path": "dfareporting/v3.5/userprofiles/{profileId}/creatives", + "path": "userprofiles/{profileId}/creatives", "request": { "$ref": "Creative" }, @@ -3985,7 +3985,7 @@ "methods": { "query": { "description": "Retrieves list of report dimension values for a list of filters.", - "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/dimensionvalues/query", + "flatPath": "userprofiles/{profileId}/dimensionvalues/query", "httpMethod": "POST", "id": "dfareporting.dimensionValues.query", "parameterOrder": [ @@ -4014,7 +4014,7 @@ "type": "string" } }, - "path": "dfareporting/v3.5/userprofiles/{profileId}/dimensionvalues/query", + "path": "userprofiles/{profileId}/dimensionvalues/query", "request": { "$ref": "DimensionValueRequest" }, @@ -4031,7 +4031,7 @@ "methods": { "get": { "description": "Gets one directory site by ID.", - "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/directorySites/{id}", + "flatPath": "userprofiles/{profileId}/directorySites/{id}", "httpMethod": "GET", "id": "dfareporting.directorySites.get", "parameterOrder": [ @@ -4054,7 +4054,7 @@ "type": "string" } }, - "path": "dfareporting/v3.5/userprofiles/{profileId}/directorySites/{id}", + "path": "userprofiles/{profileId}/directorySites/{id}", "response": { "$ref": "DirectorySite" }, @@ -4064,7 +4064,7 @@ }, "insert": { "description": "Inserts a new directory site.", - "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/directorySites", + "flatPath": "userprofiles/{profileId}/directorySites", "httpMethod": "POST", "id": "dfareporting.directorySites.insert", "parameterOrder": [ @@ -4079,7 +4079,7 @@ "type": "string" } }, - "path": "dfareporting/v3.5/userprofiles/{profileId}/directorySites", + "path": "userprofiles/{profileId}/directorySites", "request": { "$ref": "DirectorySite" }, @@ -4092,7 +4092,7 @@ }, "list": { "description": "Retrieves a list of directory sites, possibly filtered. This method supports paging.", - "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/directorySites", + "flatPath": "userprofiles/{profileId}/directorySites", "httpMethod": "GET", "id": "dfareporting.directorySites.list", "parameterOrder": [ @@ -4186,7 +4186,7 @@ "type": "string" } }, - "path": "dfareporting/v3.5/userprofiles/{profileId}/directorySites", + "path": "userprofiles/{profileId}/directorySites", "response": { "$ref": "DirectorySitesListResponse" }, @@ -4200,7 +4200,7 @@ "methods": { "delete": { "description": "Deletes an existing dynamic targeting key.", - "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/dynamicTargetingKeys/{objectId}", + "flatPath": "userprofiles/{profileId}/dynamicTargetingKeys/{objectId}", "httpMethod": "DELETE", "id": "dfareporting.dynamicTargetingKeys.delete", "parameterOrder": [ @@ -4249,14 +4249,14 @@ "type": "string" } }, - "path": "dfareporting/v3.5/userprofiles/{profileId}/dynamicTargetingKeys/{objectId}", + "path": "userprofiles/{profileId}/dynamicTargetingKeys/{objectId}", "scopes": [ "https://www.googleapis.com/auth/dfatrafficking" ] }, "insert": { "description": "Inserts a new dynamic targeting key. Keys must be created at the advertiser level before being assigned to the advertiser's ads, creatives, or placements. There is a maximum of 1000 keys per advertiser, out of which a maximum of 20 keys can be assigned per ad, creative, or placement.", - "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/dynamicTargetingKeys", + "flatPath": "userprofiles/{profileId}/dynamicTargetingKeys", "httpMethod": "POST", "id": "dfareporting.dynamicTargetingKeys.insert", "parameterOrder": [ @@ -4271,7 +4271,7 @@ "type": "string" } }, - "path": "dfareporting/v3.5/userprofiles/{profileId}/dynamicTargetingKeys", + "path": "userprofiles/{profileId}/dynamicTargetingKeys", "request": { "$ref": "DynamicTargetingKey" }, @@ -4284,7 +4284,7 @@ }, "list": { "description": "Retrieves a list of dynamic targeting keys.", - "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/dynamicTargetingKeys", + "flatPath": "userprofiles/{profileId}/dynamicTargetingKeys", "httpMethod": "GET", "id": "dfareporting.dynamicTargetingKeys.list", "parameterOrder": [ @@ -4334,7 +4334,7 @@ "type": "string" } }, - "path": "dfareporting/v3.5/userprofiles/{profileId}/dynamicTargetingKeys", + "path": "userprofiles/{profileId}/dynamicTargetingKeys", "response": { "$ref": "DynamicTargetingKeysListResponse" }, @@ -4348,7 +4348,7 @@ "methods": { "delete": { "description": "Deletes an existing event tag.", - "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/eventTags/{id}", + "flatPath": "userprofiles/{profileId}/eventTags/{id}", "httpMethod": "DELETE", "id": "dfareporting.eventTags.delete", "parameterOrder": [ @@ -4371,14 +4371,14 @@ "type": "string" } }, - "path": "dfareporting/v3.5/userprofiles/{profileId}/eventTags/{id}", + "path": "userprofiles/{profileId}/eventTags/{id}", "scopes": [ "https://www.googleapis.com/auth/dfatrafficking" ] }, "get": { "description": "Gets one event tag by ID.", - "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/eventTags/{id}", + "flatPath": "userprofiles/{profileId}/eventTags/{id}", "httpMethod": "GET", "id": "dfareporting.eventTags.get", "parameterOrder": [ @@ -4401,7 +4401,7 @@ "type": "string" } }, - "path": "dfareporting/v3.5/userprofiles/{profileId}/eventTags/{id}", + "path": "userprofiles/{profileId}/eventTags/{id}", "response": { "$ref": "EventTag" }, @@ -4411,7 +4411,7 @@ }, "insert": { "description": "Inserts a new event tag.", - "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/eventTags", + "flatPath": "userprofiles/{profileId}/eventTags", "httpMethod": "POST", "id": "dfareporting.eventTags.insert", "parameterOrder": [ @@ -4426,7 +4426,7 @@ "type": "string" } }, - "path": "dfareporting/v3.5/userprofiles/{profileId}/eventTags", + "path": "userprofiles/{profileId}/eventTags", "request": { "$ref": "EventTag" }, @@ -4439,7 +4439,7 @@ }, "list": { "description": "Retrieves a list of event tags, possibly filtered.", - "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/eventTags", + "flatPath": "userprofiles/{profileId}/eventTags", "httpMethod": "GET", "id": "dfareporting.eventTags.list", "parameterOrder": [ @@ -4538,7 +4538,7 @@ "type": "string" } }, - "path": "dfareporting/v3.5/userprofiles/{profileId}/eventTags", + "path": "userprofiles/{profileId}/eventTags", "response": { "$ref": "EventTagsListResponse" }, @@ -4548,7 +4548,7 @@ }, "patch": { "description": "Updates an existing event tag. This method supports patch semantics.", - "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/eventTags", + "flatPath": "userprofiles/{profileId}/eventTags", "httpMethod": "PATCH", "id": "dfareporting.eventTags.patch", "parameterOrder": [ @@ -4571,7 +4571,7 @@ "type": "string" } }, - "path": "dfareporting/v3.5/userprofiles/{profileId}/eventTags", + "path": "userprofiles/{profileId}/eventTags", "request": { "$ref": "EventTag" }, @@ -4584,7 +4584,7 @@ }, "update": { "description": "Updates an existing event tag.", - "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/eventTags", + "flatPath": "userprofiles/{profileId}/eventTags", "httpMethod": "PUT", "id": "dfareporting.eventTags.update", "parameterOrder": [ @@ -4599,7 +4599,7 @@ "type": "string" } }, - "path": "dfareporting/v3.5/userprofiles/{profileId}/eventTags", + "path": "userprofiles/{profileId}/eventTags", "request": { "$ref": "EventTag" }, @@ -4616,7 +4616,7 @@ "methods": { "get": { "description": "Retrieves a report file by its report ID and file ID. This method supports media download.", - "flatPath": "dfareporting/v3.5/reports/{reportId}/files/{fileId}", + "flatPath": "reports/{reportId}/files/{fileId}", "httpMethod": "GET", "id": "dfareporting.files.get", "parameterOrder": [ @@ -4639,7 +4639,7 @@ "type": "string" } }, - "path": "dfareporting/v3.5/reports/{reportId}/files/{fileId}", + "path": "reports/{reportId}/files/{fileId}", "response": { "$ref": "File" }, @@ -4650,7 +4650,7 @@ }, "list": { "description": "Lists files for a user profile.", - "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/files", + "flatPath": "userprofiles/{profileId}/files", "httpMethod": "GET", "id": "dfareporting.files.list", "parameterOrder": [ @@ -4723,7 +4723,7 @@ "type": "string" } }, - "path": "dfareporting/v3.5/userprofiles/{profileId}/files", + "path": "userprofiles/{profileId}/files", "response": { "$ref": "FileList" }, @@ -4737,7 +4737,7 @@ "methods": { "delete": { "description": "Deletes an existing floodlight activity.", - "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/floodlightActivities/{id}", + "flatPath": "userprofiles/{profileId}/floodlightActivities/{id}", "httpMethod": "DELETE", "id": "dfareporting.floodlightActivities.delete", "parameterOrder": [ @@ -4760,14 +4760,14 @@ "type": "string" } }, - "path": "dfareporting/v3.5/userprofiles/{profileId}/floodlightActivities/{id}", + "path": "userprofiles/{profileId}/floodlightActivities/{id}", "scopes": [ "https://www.googleapis.com/auth/dfatrafficking" ] }, "generatetag": { "description": "Generates a tag for a floodlight activity.", - "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/floodlightActivities/generatetag", + "flatPath": "userprofiles/{profileId}/floodlightActivities/generatetag", "httpMethod": "POST", "id": "dfareporting.floodlightActivities.generatetag", "parameterOrder": [ @@ -4788,7 +4788,7 @@ "type": "string" } }, - "path": "dfareporting/v3.5/userprofiles/{profileId}/floodlightActivities/generatetag", + "path": "userprofiles/{profileId}/floodlightActivities/generatetag", "response": { "$ref": "FloodlightActivitiesGenerateTagResponse" }, @@ -4798,7 +4798,7 @@ }, "get": { "description": "Gets one floodlight activity by ID.", - "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/floodlightActivities/{id}", + "flatPath": "userprofiles/{profileId}/floodlightActivities/{id}", "httpMethod": "GET", "id": "dfareporting.floodlightActivities.get", "parameterOrder": [ @@ -4821,7 +4821,7 @@ "type": "string" } }, - "path": "dfareporting/v3.5/userprofiles/{profileId}/floodlightActivities/{id}", + "path": "userprofiles/{profileId}/floodlightActivities/{id}", "response": { "$ref": "FloodlightActivity" }, @@ -4831,7 +4831,7 @@ }, "insert": { "description": "Inserts a new floodlight activity.", - "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/floodlightActivities", + "flatPath": "userprofiles/{profileId}/floodlightActivities", "httpMethod": "POST", "id": "dfareporting.floodlightActivities.insert", "parameterOrder": [ @@ -4846,7 +4846,7 @@ "type": "string" } }, - "path": "dfareporting/v3.5/userprofiles/{profileId}/floodlightActivities", + "path": "userprofiles/{profileId}/floodlightActivities", "request": { "$ref": "FloodlightActivity" }, @@ -4859,7 +4859,7 @@ }, "list": { "description": "Retrieves a list of floodlight activities, possibly filtered. This method supports paging.", - "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/floodlightActivities", + "flatPath": "userprofiles/{profileId}/floodlightActivities", "httpMethod": "GET", "id": "dfareporting.floodlightActivities.list", "parameterOrder": [ @@ -4975,7 +4975,7 @@ "type": "string" } }, - "path": "dfareporting/v3.5/userprofiles/{profileId}/floodlightActivities", + "path": "userprofiles/{profileId}/floodlightActivities", "response": { "$ref": "FloodlightActivitiesListResponse" }, @@ -4985,7 +4985,7 @@ }, "patch": { "description": "Updates an existing floodlight activity. This method supports patch semantics.", - "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/floodlightActivities", + "flatPath": "userprofiles/{profileId}/floodlightActivities", "httpMethod": "PATCH", "id": "dfareporting.floodlightActivities.patch", "parameterOrder": [ @@ -5008,7 +5008,7 @@ "type": "string" } }, - "path": "dfareporting/v3.5/userprofiles/{profileId}/floodlightActivities", + "path": "userprofiles/{profileId}/floodlightActivities", "request": { "$ref": "FloodlightActivity" }, @@ -5021,7 +5021,7 @@ }, "update": { "description": "Updates an existing floodlight activity.", - "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/floodlightActivities", + "flatPath": "userprofiles/{profileId}/floodlightActivities", "httpMethod": "PUT", "id": "dfareporting.floodlightActivities.update", "parameterOrder": [ @@ -5036,7 +5036,7 @@ "type": "string" } }, - "path": "dfareporting/v3.5/userprofiles/{profileId}/floodlightActivities", + "path": "userprofiles/{profileId}/floodlightActivities", "request": { "$ref": "FloodlightActivity" }, @@ -5053,7 +5053,7 @@ "methods": { "get": { "description": "Gets one floodlight activity group by ID.", - "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/floodlightActivityGroups/{id}", + "flatPath": "userprofiles/{profileId}/floodlightActivityGroups/{id}", "httpMethod": "GET", "id": "dfareporting.floodlightActivityGroups.get", "parameterOrder": [ @@ -5076,7 +5076,7 @@ "type": "string" } }, - "path": "dfareporting/v3.5/userprofiles/{profileId}/floodlightActivityGroups/{id}", + "path": "userprofiles/{profileId}/floodlightActivityGroups/{id}", "response": { "$ref": "FloodlightActivityGroup" }, @@ -5086,7 +5086,7 @@ }, "insert": { "description": "Inserts a new floodlight activity group.", - "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/floodlightActivityGroups", + "flatPath": "userprofiles/{profileId}/floodlightActivityGroups", "httpMethod": "POST", "id": "dfareporting.floodlightActivityGroups.insert", "parameterOrder": [ @@ -5101,7 +5101,7 @@ "type": "string" } }, - "path": "dfareporting/v3.5/userprofiles/{profileId}/floodlightActivityGroups", + "path": "userprofiles/{profileId}/floodlightActivityGroups", "request": { "$ref": "FloodlightActivityGroup" }, @@ -5114,7 +5114,7 @@ }, "list": { "description": "Retrieves a list of floodlight activity groups, possibly filtered. This method supports paging.", - "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/floodlightActivityGroups", + "flatPath": "userprofiles/{profileId}/floodlightActivityGroups", "httpMethod": "GET", "id": "dfareporting.floodlightActivityGroups.list", "parameterOrder": [ @@ -5208,7 +5208,7 @@ "type": "string" } }, - "path": "dfareporting/v3.5/userprofiles/{profileId}/floodlightActivityGroups", + "path": "userprofiles/{profileId}/floodlightActivityGroups", "response": { "$ref": "FloodlightActivityGroupsListResponse" }, @@ -5218,7 +5218,7 @@ }, "patch": { "description": "Updates an existing floodlight activity group. This method supports patch semantics.", - "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/floodlightActivityGroups", + "flatPath": "userprofiles/{profileId}/floodlightActivityGroups", "httpMethod": "PATCH", "id": "dfareporting.floodlightActivityGroups.patch", "parameterOrder": [ @@ -5241,7 +5241,7 @@ "type": "string" } }, - "path": "dfareporting/v3.5/userprofiles/{profileId}/floodlightActivityGroups", + "path": "userprofiles/{profileId}/floodlightActivityGroups", "request": { "$ref": "FloodlightActivityGroup" }, @@ -5254,7 +5254,7 @@ }, "update": { "description": "Updates an existing floodlight activity group.", - "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/floodlightActivityGroups", + "flatPath": "userprofiles/{profileId}/floodlightActivityGroups", "httpMethod": "PUT", "id": "dfareporting.floodlightActivityGroups.update", "parameterOrder": [ @@ -5269,7 +5269,7 @@ "type": "string" } }, - "path": "dfareporting/v3.5/userprofiles/{profileId}/floodlightActivityGroups", + "path": "userprofiles/{profileId}/floodlightActivityGroups", "request": { "$ref": "FloodlightActivityGroup" }, @@ -5286,7 +5286,7 @@ "methods": { "get": { "description": "Gets one floodlight configuration by ID.", - "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/floodlightConfigurations/{id}", + "flatPath": "userprofiles/{profileId}/floodlightConfigurations/{id}", "httpMethod": "GET", "id": "dfareporting.floodlightConfigurations.get", "parameterOrder": [ @@ -5309,7 +5309,7 @@ "type": "string" } }, - "path": "dfareporting/v3.5/userprofiles/{profileId}/floodlightConfigurations/{id}", + "path": "userprofiles/{profileId}/floodlightConfigurations/{id}", "response": { "$ref": "FloodlightConfiguration" }, @@ -5319,7 +5319,7 @@ }, "list": { "description": "Retrieves a list of floodlight configurations, possibly filtered.", - "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/floodlightConfigurations", + "flatPath": "userprofiles/{profileId}/floodlightConfigurations", "httpMethod": "GET", "id": "dfareporting.floodlightConfigurations.list", "parameterOrder": [ @@ -5341,7 +5341,7 @@ "type": "string" } }, - "path": "dfareporting/v3.5/userprofiles/{profileId}/floodlightConfigurations", + "path": "userprofiles/{profileId}/floodlightConfigurations", "response": { "$ref": "FloodlightConfigurationsListResponse" }, @@ -5351,7 +5351,7 @@ }, "patch": { "description": "Updates an existing floodlight configuration. This method supports patch semantics.", - "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/floodlightConfigurations", + "flatPath": "userprofiles/{profileId}/floodlightConfigurations", "httpMethod": "PATCH", "id": "dfareporting.floodlightConfigurations.patch", "parameterOrder": [ @@ -5374,7 +5374,7 @@ "type": "string" } }, - "path": "dfareporting/v3.5/userprofiles/{profileId}/floodlightConfigurations", + "path": "userprofiles/{profileId}/floodlightConfigurations", "request": { "$ref": "FloodlightConfiguration" }, @@ -5387,7 +5387,7 @@ }, "update": { "description": "Updates an existing floodlight configuration.", - "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/floodlightConfigurations", + "flatPath": "userprofiles/{profileId}/floodlightConfigurations", "httpMethod": "PUT", "id": "dfareporting.floodlightConfigurations.update", "parameterOrder": [ @@ -5402,7 +5402,7 @@ "type": "string" } }, - "path": "dfareporting/v3.5/userprofiles/{profileId}/floodlightConfigurations", + "path": "userprofiles/{profileId}/floodlightConfigurations", "request": { "$ref": "FloodlightConfiguration" }, @@ -5419,7 +5419,7 @@ "methods": { "get": { "description": "Gets one inventory item by ID.", - "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/projects/{projectId}/inventoryItems/{id}", + "flatPath": "userprofiles/{profileId}/projects/{projectId}/inventoryItems/{id}", "httpMethod": "GET", "id": "dfareporting.inventoryItems.get", "parameterOrder": [ @@ -5450,7 +5450,7 @@ "type": "string" } }, - "path": "dfareporting/v3.5/userprofiles/{profileId}/projects/{projectId}/inventoryItems/{id}", + "path": "userprofiles/{profileId}/projects/{projectId}/inventoryItems/{id}", "response": { "$ref": "InventoryItem" }, @@ -5460,7 +5460,7 @@ }, "list": { "description": "Retrieves a list of inventory items, possibly filtered. This method supports paging.", - "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/projects/{projectId}/inventoryItems", + "flatPath": "userprofiles/{profileId}/projects/{projectId}/inventoryItems", "httpMethod": "GET", "id": "dfareporting.inventoryItems.list", "parameterOrder": [ @@ -5564,7 +5564,7 @@ "type": "string" } }, - "path": "dfareporting/v3.5/userprofiles/{profileId}/projects/{projectId}/inventoryItems", + "path": "userprofiles/{profileId}/projects/{projectId}/inventoryItems", "response": { "$ref": "InventoryItemsListResponse" }, @@ -5578,7 +5578,7 @@ "methods": { "list": { "description": "Retrieves a list of languages.", - "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/languages", + "flatPath": "userprofiles/{profileId}/languages", "httpMethod": "GET", "id": "dfareporting.languages.list", "parameterOrder": [ @@ -5593,7 +5593,7 @@ "type": "string" } }, - "path": "dfareporting/v3.5/userprofiles/{profileId}/languages", + "path": "userprofiles/{profileId}/languages", "response": { "$ref": "LanguagesListResponse" }, @@ -5607,7 +5607,7 @@ "methods": { "list": { "description": "Retrieves a list of metros.", - "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/metros", + "flatPath": "userprofiles/{profileId}/metros", "httpMethod": "GET", "id": "dfareporting.metros.list", "parameterOrder": [ @@ -5622,7 +5622,7 @@ "type": "string" } }, - "path": "dfareporting/v3.5/userprofiles/{profileId}/metros", + "path": "userprofiles/{profileId}/metros", "response": { "$ref": "MetrosListResponse" }, @@ -5636,7 +5636,7 @@ "methods": { "get": { "description": "Gets one mobile app by ID.", - "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/mobileApps/{id}", + "flatPath": "userprofiles/{profileId}/mobileApps/{id}", "httpMethod": "GET", "id": "dfareporting.mobileApps.get", "parameterOrder": [ @@ -5658,7 +5658,7 @@ "type": "string" } }, - "path": "dfareporting/v3.5/userprofiles/{profileId}/mobileApps/{id}", + "path": "userprofiles/{profileId}/mobileApps/{id}", "response": { "$ref": "MobileApp" }, @@ -5668,7 +5668,7 @@ }, "list": { "description": "Retrieves list of available mobile apps.", - "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/mobileApps", + "flatPath": "userprofiles/{profileId}/mobileApps", "httpMethod": "GET", "id": "dfareporting.mobileApps.list", "parameterOrder": [ @@ -5740,7 +5740,7 @@ "type": "string" } }, - "path": "dfareporting/v3.5/userprofiles/{profileId}/mobileApps", + "path": "userprofiles/{profileId}/mobileApps", "response": { "$ref": "MobileAppsListResponse" }, @@ -5754,7 +5754,7 @@ "methods": { "get": { "description": "Gets one mobile carrier by ID.", - "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/mobileCarriers/{id}", + "flatPath": "userprofiles/{profileId}/mobileCarriers/{id}", "httpMethod": "GET", "id": "dfareporting.mobileCarriers.get", "parameterOrder": [ @@ -5777,7 +5777,7 @@ "type": "string" } }, - "path": "dfareporting/v3.5/userprofiles/{profileId}/mobileCarriers/{id}", + "path": "userprofiles/{profileId}/mobileCarriers/{id}", "response": { "$ref": "MobileCarrier" }, @@ -5787,7 +5787,7 @@ }, "list": { "description": "Retrieves a list of mobile carriers.", - "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/mobileCarriers", + "flatPath": "userprofiles/{profileId}/mobileCarriers", "httpMethod": "GET", "id": "dfareporting.mobileCarriers.list", "parameterOrder": [ @@ -5802,7 +5802,7 @@ "type": "string" } }, - "path": "dfareporting/v3.5/userprofiles/{profileId}/mobileCarriers", + "path": "userprofiles/{profileId}/mobileCarriers", "response": { "$ref": "MobileCarriersListResponse" }, @@ -5816,7 +5816,7 @@ "methods": { "get": { "description": "Gets one operating system version by ID.", - "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/operatingSystemVersions/{id}", + "flatPath": "userprofiles/{profileId}/operatingSystemVersions/{id}", "httpMethod": "GET", "id": "dfareporting.operatingSystemVersions.get", "parameterOrder": [ @@ -5839,7 +5839,7 @@ "type": "string" } }, - "path": "dfareporting/v3.5/userprofiles/{profileId}/operatingSystemVersions/{id}", + "path": "userprofiles/{profileId}/operatingSystemVersions/{id}", "response": { "$ref": "OperatingSystemVersion" }, @@ -5849,7 +5849,7 @@ }, "list": { "description": "Retrieves a list of operating system versions.", - "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/operatingSystemVersions", + "flatPath": "userprofiles/{profileId}/operatingSystemVersions", "httpMethod": "GET", "id": "dfareporting.operatingSystemVersions.list", "parameterOrder": [ @@ -5864,7 +5864,7 @@ "type": "string" } }, - "path": "dfareporting/v3.5/userprofiles/{profileId}/operatingSystemVersions", + "path": "userprofiles/{profileId}/operatingSystemVersions", "response": { "$ref": "OperatingSystemVersionsListResponse" }, @@ -5878,7 +5878,7 @@ "methods": { "get": { "description": "Gets one operating system by DART ID.", - "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/operatingSystems/{dartId}", + "flatPath": "userprofiles/{profileId}/operatingSystems/{dartId}", "httpMethod": "GET", "id": "dfareporting.operatingSystems.get", "parameterOrder": [ @@ -5901,7 +5901,7 @@ "type": "string" } }, - "path": "dfareporting/v3.5/userprofiles/{profileId}/operatingSystems/{dartId}", + "path": "userprofiles/{profileId}/operatingSystems/{dartId}", "response": { "$ref": "OperatingSystem" }, @@ -5911,7 +5911,7 @@ }, "list": { "description": "Retrieves a list of operating systems.", - "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/operatingSystems", + "flatPath": "userprofiles/{profileId}/operatingSystems", "httpMethod": "GET", "id": "dfareporting.operatingSystems.list", "parameterOrder": [ @@ -5926,7 +5926,7 @@ "type": "string" } }, - "path": "dfareporting/v3.5/userprofiles/{profileId}/operatingSystems", + "path": "userprofiles/{profileId}/operatingSystems", "response": { "$ref": "OperatingSystemsListResponse" }, @@ -5940,7 +5940,7 @@ "methods": { "get": { "description": "Gets one order document by ID.", - "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/projects/{projectId}/orderDocuments/{id}", + "flatPath": "userprofiles/{profileId}/projects/{projectId}/orderDocuments/{id}", "httpMethod": "GET", "id": "dfareporting.orderDocuments.get", "parameterOrder": [ @@ -5971,7 +5971,7 @@ "type": "string" } }, - "path": "dfareporting/v3.5/userprofiles/{profileId}/projects/{projectId}/orderDocuments/{id}", + "path": "userprofiles/{profileId}/projects/{projectId}/orderDocuments/{id}", "response": { "$ref": "OrderDocument" }, @@ -5981,7 +5981,7 @@ }, "list": { "description": "Retrieves a list of order documents, possibly filtered. This method supports paging.", - "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/projects/{projectId}/orderDocuments", + "flatPath": "userprofiles/{profileId}/projects/{projectId}/orderDocuments", "httpMethod": "GET", "id": "dfareporting.orderDocuments.list", "parameterOrder": [ @@ -6077,7 +6077,7 @@ "type": "string" } }, - "path": "dfareporting/v3.5/userprofiles/{profileId}/projects/{projectId}/orderDocuments", + "path": "userprofiles/{profileId}/projects/{projectId}/orderDocuments", "response": { "$ref": "OrderDocumentsListResponse" }, @@ -6091,7 +6091,7 @@ "methods": { "get": { "description": "Gets one order by ID.", - "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/projects/{projectId}/orders/{id}", + "flatPath": "userprofiles/{profileId}/projects/{projectId}/orders/{id}", "httpMethod": "GET", "id": "dfareporting.orders.get", "parameterOrder": [ @@ -6122,7 +6122,7 @@ "type": "string" } }, - "path": "dfareporting/v3.5/userprofiles/{profileId}/projects/{projectId}/orders/{id}", + "path": "userprofiles/{profileId}/projects/{projectId}/orders/{id}", "response": { "$ref": "Order" }, @@ -6132,7 +6132,7 @@ }, "list": { "description": "Retrieves a list of orders, possibly filtered. This method supports paging.", - "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/projects/{projectId}/orders", + "flatPath": "userprofiles/{profileId}/projects/{projectId}/orders", "httpMethod": "GET", "id": "dfareporting.orders.list", "parameterOrder": [ @@ -6216,7 +6216,7 @@ "type": "string" } }, - "path": "dfareporting/v3.5/userprofiles/{profileId}/projects/{projectId}/orders", + "path": "userprofiles/{profileId}/projects/{projectId}/orders", "response": { "$ref": "OrdersListResponse" }, @@ -6230,7 +6230,7 @@ "methods": { "get": { "description": "Gets one placement group by ID.", - "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/placementGroups/{id}", + "flatPath": "userprofiles/{profileId}/placementGroups/{id}", "httpMethod": "GET", "id": "dfareporting.placementGroups.get", "parameterOrder": [ @@ -6253,7 +6253,7 @@ "type": "string" } }, - "path": "dfareporting/v3.5/userprofiles/{profileId}/placementGroups/{id}", + "path": "userprofiles/{profileId}/placementGroups/{id}", "response": { "$ref": "PlacementGroup" }, @@ -6263,7 +6263,7 @@ }, "insert": { "description": "Inserts a new placement group.", - "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/placementGroups", + "flatPath": "userprofiles/{profileId}/placementGroups", "httpMethod": "POST", "id": "dfareporting.placementGroups.insert", "parameterOrder": [ @@ -6278,7 +6278,7 @@ "type": "string" } }, - "path": "dfareporting/v3.5/userprofiles/{profileId}/placementGroups", + "path": "userprofiles/{profileId}/placementGroups", "request": { "$ref": "PlacementGroup" }, @@ -6291,7 +6291,7 @@ }, "list": { "description": "Retrieves a list of placement groups, possibly filtered. This method supports paging.", - "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/placementGroups", + "flatPath": "userprofiles/{profileId}/placementGroups", "httpMethod": "GET", "id": "dfareporting.placementGroups.list", "parameterOrder": [ @@ -6462,7 +6462,7 @@ "type": "string" } }, - "path": "dfareporting/v3.5/userprofiles/{profileId}/placementGroups", + "path": "userprofiles/{profileId}/placementGroups", "response": { "$ref": "PlacementGroupsListResponse" }, @@ -6472,7 +6472,7 @@ }, "patch": { "description": "Updates an existing placement group. This method supports patch semantics.", - "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/placementGroups", + "flatPath": "userprofiles/{profileId}/placementGroups", "httpMethod": "PATCH", "id": "dfareporting.placementGroups.patch", "parameterOrder": [ @@ -6495,7 +6495,7 @@ "type": "string" } }, - "path": "dfareporting/v3.5/userprofiles/{profileId}/placementGroups", + "path": "userprofiles/{profileId}/placementGroups", "request": { "$ref": "PlacementGroup" }, @@ -6508,7 +6508,7 @@ }, "update": { "description": "Updates an existing placement group.", - "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/placementGroups", + "flatPath": "userprofiles/{profileId}/placementGroups", "httpMethod": "PUT", "id": "dfareporting.placementGroups.update", "parameterOrder": [ @@ -6523,7 +6523,7 @@ "type": "string" } }, - "path": "dfareporting/v3.5/userprofiles/{profileId}/placementGroups", + "path": "userprofiles/{profileId}/placementGroups", "request": { "$ref": "PlacementGroup" }, @@ -6540,7 +6540,7 @@ "methods": { "delete": { "description": "Deletes an existing placement strategy.", - "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/placementStrategies/{id}", + "flatPath": "userprofiles/{profileId}/placementStrategies/{id}", "httpMethod": "DELETE", "id": "dfareporting.placementStrategies.delete", "parameterOrder": [ @@ -6563,14 +6563,14 @@ "type": "string" } }, - "path": "dfareporting/v3.5/userprofiles/{profileId}/placementStrategies/{id}", + "path": "userprofiles/{profileId}/placementStrategies/{id}", "scopes": [ "https://www.googleapis.com/auth/dfatrafficking" ] }, "get": { "description": "Gets one placement strategy by ID.", - "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/placementStrategies/{id}", + "flatPath": "userprofiles/{profileId}/placementStrategies/{id}", "httpMethod": "GET", "id": "dfareporting.placementStrategies.get", "parameterOrder": [ @@ -6593,7 +6593,7 @@ "type": "string" } }, - "path": "dfareporting/v3.5/userprofiles/{profileId}/placementStrategies/{id}", + "path": "userprofiles/{profileId}/placementStrategies/{id}", "response": { "$ref": "PlacementStrategy" }, @@ -6603,7 +6603,7 @@ }, "insert": { "description": "Inserts a new placement strategy.", - "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/placementStrategies", + "flatPath": "userprofiles/{profileId}/placementStrategies", "httpMethod": "POST", "id": "dfareporting.placementStrategies.insert", "parameterOrder": [ @@ -6618,7 +6618,7 @@ "type": "string" } }, - "path": "dfareporting/v3.5/userprofiles/{profileId}/placementStrategies", + "path": "userprofiles/{profileId}/placementStrategies", "request": { "$ref": "PlacementStrategy" }, @@ -6631,7 +6631,7 @@ }, "list": { "description": "Retrieves a list of placement strategies, possibly filtered. This method supports paging.", - "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/placementStrategies", + "flatPath": "userprofiles/{profileId}/placementStrategies", "httpMethod": "GET", "id": "dfareporting.placementStrategies.list", "parameterOrder": [ @@ -6700,7 +6700,7 @@ "type": "string" } }, - "path": "dfareporting/v3.5/userprofiles/{profileId}/placementStrategies", + "path": "userprofiles/{profileId}/placementStrategies", "response": { "$ref": "PlacementStrategiesListResponse" }, @@ -6710,7 +6710,7 @@ }, "patch": { "description": "Updates an existing placement strategy. This method supports patch semantics.", - "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/placementStrategies", + "flatPath": "userprofiles/{profileId}/placementStrategies", "httpMethod": "PATCH", "id": "dfareporting.placementStrategies.patch", "parameterOrder": [ @@ -6733,7 +6733,7 @@ "type": "string" } }, - "path": "dfareporting/v3.5/userprofiles/{profileId}/placementStrategies", + "path": "userprofiles/{profileId}/placementStrategies", "request": { "$ref": "PlacementStrategy" }, @@ -6746,7 +6746,7 @@ }, "update": { "description": "Updates an existing placement strategy.", - "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/placementStrategies", + "flatPath": "userprofiles/{profileId}/placementStrategies", "httpMethod": "PUT", "id": "dfareporting.placementStrategies.update", "parameterOrder": [ @@ -6761,7 +6761,7 @@ "type": "string" } }, - "path": "dfareporting/v3.5/userprofiles/{profileId}/placementStrategies", + "path": "userprofiles/{profileId}/placementStrategies", "request": { "$ref": "PlacementStrategy" }, @@ -6778,7 +6778,7 @@ "methods": { "generatetags": { "description": "Generates tags for a placement.", - "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/placements/generatetags", + "flatPath": "userprofiles/{profileId}/placements/generatetags", "httpMethod": "POST", "id": "dfareporting.placements.generatetags", "parameterOrder": [ @@ -6856,7 +6856,7 @@ "type": "string" } }, - "path": "dfareporting/v3.5/userprofiles/{profileId}/placements/generatetags", + "path": "userprofiles/{profileId}/placements/generatetags", "response": { "$ref": "PlacementsGenerateTagsResponse" }, @@ -6866,7 +6866,7 @@ }, "get": { "description": "Gets one placement by ID.", - "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/placements/{id}", + "flatPath": "userprofiles/{profileId}/placements/{id}", "httpMethod": "GET", "id": "dfareporting.placements.get", "parameterOrder": [ @@ -6889,7 +6889,7 @@ "type": "string" } }, - "path": "dfareporting/v3.5/userprofiles/{profileId}/placements/{id}", + "path": "userprofiles/{profileId}/placements/{id}", "response": { "$ref": "Placement" }, @@ -6899,7 +6899,7 @@ }, "insert": { "description": "Inserts a new placement.", - "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/placements", + "flatPath": "userprofiles/{profileId}/placements", "httpMethod": "POST", "id": "dfareporting.placements.insert", "parameterOrder": [ @@ -6914,7 +6914,7 @@ "type": "string" } }, - "path": "dfareporting/v3.5/userprofiles/{profileId}/placements", + "path": "userprofiles/{profileId}/placements", "request": { "$ref": "Placement" }, @@ -6927,7 +6927,7 @@ }, "list": { "description": "Retrieves a list of placements, possibly filtered. This method supports paging.", - "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/placements", + "flatPath": "userprofiles/{profileId}/placements", "httpMethod": "GET", "id": "dfareporting.placements.list", "parameterOrder": [ @@ -7134,7 +7134,7 @@ "type": "string" } }, - "path": "dfareporting/v3.5/userprofiles/{profileId}/placements", + "path": "userprofiles/{profileId}/placements", "response": { "$ref": "PlacementsListResponse" }, @@ -7144,7 +7144,7 @@ }, "patch": { "description": "Updates an existing placement. This method supports patch semantics.", - "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/placements", + "flatPath": "userprofiles/{profileId}/placements", "httpMethod": "PATCH", "id": "dfareporting.placements.patch", "parameterOrder": [ @@ -7167,7 +7167,7 @@ "type": "string" } }, - "path": "dfareporting/v3.5/userprofiles/{profileId}/placements", + "path": "userprofiles/{profileId}/placements", "request": { "$ref": "Placement" }, @@ -7180,7 +7180,7 @@ }, "update": { "description": "Updates an existing placement.", - "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/placements", + "flatPath": "userprofiles/{profileId}/placements", "httpMethod": "PUT", "id": "dfareporting.placements.update", "parameterOrder": [ @@ -7195,7 +7195,7 @@ "type": "string" } }, - "path": "dfareporting/v3.5/userprofiles/{profileId}/placements", + "path": "userprofiles/{profileId}/placements", "request": { "$ref": "Placement" }, @@ -7212,7 +7212,7 @@ "methods": { "get": { "description": "Gets one platform type by ID.", - "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/platformTypes/{id}", + "flatPath": "userprofiles/{profileId}/platformTypes/{id}", "httpMethod": "GET", "id": "dfareporting.platformTypes.get", "parameterOrder": [ @@ -7235,7 +7235,7 @@ "type": "string" } }, - "path": "dfareporting/v3.5/userprofiles/{profileId}/platformTypes/{id}", + "path": "userprofiles/{profileId}/platformTypes/{id}", "response": { "$ref": "PlatformType" }, @@ -7245,7 +7245,7 @@ }, "list": { "description": "Retrieves a list of platform types.", - "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/platformTypes", + "flatPath": "userprofiles/{profileId}/platformTypes", "httpMethod": "GET", "id": "dfareporting.platformTypes.list", "parameterOrder": [ @@ -7260,7 +7260,7 @@ "type": "string" } }, - "path": "dfareporting/v3.5/userprofiles/{profileId}/platformTypes", + "path": "userprofiles/{profileId}/platformTypes", "response": { "$ref": "PlatformTypesListResponse" }, @@ -7274,7 +7274,7 @@ "methods": { "get": { "description": "Gets one postal code by ID.", - "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/postalCodes/{code}", + "flatPath": "userprofiles/{profileId}/postalCodes/{code}", "httpMethod": "GET", "id": "dfareporting.postalCodes.get", "parameterOrder": [ @@ -7296,7 +7296,7 @@ "type": "string" } }, - "path": "dfareporting/v3.5/userprofiles/{profileId}/postalCodes/{code}", + "path": "userprofiles/{profileId}/postalCodes/{code}", "response": { "$ref": "PostalCode" }, @@ -7306,7 +7306,7 @@ }, "list": { "description": "Retrieves a list of postal codes.", - "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/postalCodes", + "flatPath": "userprofiles/{profileId}/postalCodes", "httpMethod": "GET", "id": "dfareporting.postalCodes.list", "parameterOrder": [ @@ -7321,7 +7321,7 @@ "type": "string" } }, - "path": "dfareporting/v3.5/userprofiles/{profileId}/postalCodes", + "path": "userprofiles/{profileId}/postalCodes", "response": { "$ref": "PostalCodesListResponse" }, @@ -7335,7 +7335,7 @@ "methods": { "get": { "description": "Gets one project by ID.", - "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/projects/{id}", + "flatPath": "userprofiles/{profileId}/projects/{id}", "httpMethod": "GET", "id": "dfareporting.projects.get", "parameterOrder": [ @@ -7358,7 +7358,7 @@ "type": "string" } }, - "path": "dfareporting/v3.5/userprofiles/{profileId}/projects/{id}", + "path": "userprofiles/{profileId}/projects/{id}", "response": { "$ref": "Project" }, @@ -7368,7 +7368,7 @@ }, "list": { "description": "Retrieves a list of projects, possibly filtered. This method supports paging .", - "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/projects", + "flatPath": "userprofiles/{profileId}/projects", "httpMethod": "GET", "id": "dfareporting.projects.list", "parameterOrder": [ @@ -7444,7 +7444,7 @@ "type": "string" } }, - "path": "dfareporting/v3.5/userprofiles/{profileId}/projects", + "path": "userprofiles/{profileId}/projects", "response": { "$ref": "ProjectsListResponse" }, @@ -7458,7 +7458,7 @@ "methods": { "list": { "description": "Retrieves a list of regions.", - "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/regions", + "flatPath": "userprofiles/{profileId}/regions", "httpMethod": "GET", "id": "dfareporting.regions.list", "parameterOrder": [ @@ -7473,7 +7473,7 @@ "type": "string" } }, - "path": "dfareporting/v3.5/userprofiles/{profileId}/regions", + "path": "userprofiles/{profileId}/regions", "response": { "$ref": "RegionsListResponse" }, @@ -7487,7 +7487,7 @@ "methods": { "get": { "description": "Gets one remarketing list share by remarketing list ID.", - "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/remarketingListShares/{remarketingListId}", + "flatPath": "userprofiles/{profileId}/remarketingListShares/{remarketingListId}", "httpMethod": "GET", "id": "dfareporting.remarketingListShares.get", "parameterOrder": [ @@ -7510,7 +7510,7 @@ "type": "string" } }, - "path": "dfareporting/v3.5/userprofiles/{profileId}/remarketingListShares/{remarketingListId}", + "path": "userprofiles/{profileId}/remarketingListShares/{remarketingListId}", "response": { "$ref": "RemarketingListShare" }, @@ -7520,7 +7520,7 @@ }, "patch": { "description": "Updates an existing remarketing list share. This method supports patch semantics.", - "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/remarketingListShares", + "flatPath": "userprofiles/{profileId}/remarketingListShares", "httpMethod": "PATCH", "id": "dfareporting.remarketingListShares.patch", "parameterOrder": [ @@ -7543,7 +7543,7 @@ "type": "string" } }, - "path": "dfareporting/v3.5/userprofiles/{profileId}/remarketingListShares", + "path": "userprofiles/{profileId}/remarketingListShares", "request": { "$ref": "RemarketingListShare" }, @@ -7556,7 +7556,7 @@ }, "update": { "description": "Updates an existing remarketing list share.", - "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/remarketingListShares", + "flatPath": "userprofiles/{profileId}/remarketingListShares", "httpMethod": "PUT", "id": "dfareporting.remarketingListShares.update", "parameterOrder": [ @@ -7571,7 +7571,7 @@ "type": "string" } }, - "path": "dfareporting/v3.5/userprofiles/{profileId}/remarketingListShares", + "path": "userprofiles/{profileId}/remarketingListShares", "request": { "$ref": "RemarketingListShare" }, @@ -7588,7 +7588,7 @@ "methods": { "get": { "description": "Gets one remarketing list by ID.", - "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/remarketingLists/{id}", + "flatPath": "userprofiles/{profileId}/remarketingLists/{id}", "httpMethod": "GET", "id": "dfareporting.remarketingLists.get", "parameterOrder": [ @@ -7611,7 +7611,7 @@ "type": "string" } }, - "path": "dfareporting/v3.5/userprofiles/{profileId}/remarketingLists/{id}", + "path": "userprofiles/{profileId}/remarketingLists/{id}", "response": { "$ref": "RemarketingList" }, @@ -7621,7 +7621,7 @@ }, "insert": { "description": "Inserts a new remarketing list.", - "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/remarketingLists", + "flatPath": "userprofiles/{profileId}/remarketingLists", "httpMethod": "POST", "id": "dfareporting.remarketingLists.insert", "parameterOrder": [ @@ -7636,7 +7636,7 @@ "type": "string" } }, - "path": "dfareporting/v3.5/userprofiles/{profileId}/remarketingLists", + "path": "userprofiles/{profileId}/remarketingLists", "request": { "$ref": "RemarketingList" }, @@ -7649,7 +7649,7 @@ }, "list": { "description": "Retrieves a list of remarketing lists, possibly filtered. This method supports paging.", - "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/remarketingLists", + "flatPath": "userprofiles/{profileId}/remarketingLists", "httpMethod": "GET", "id": "dfareporting.remarketingLists.list", "parameterOrder": [ @@ -7730,7 +7730,7 @@ "type": "string" } }, - "path": "dfareporting/v3.5/userprofiles/{profileId}/remarketingLists", + "path": "userprofiles/{profileId}/remarketingLists", "response": { "$ref": "RemarketingListsListResponse" }, @@ -7740,7 +7740,7 @@ }, "patch": { "description": "Updates an existing remarketing list. This method supports patch semantics.", - "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/remarketingLists", + "flatPath": "userprofiles/{profileId}/remarketingLists", "httpMethod": "PATCH", "id": "dfareporting.remarketingLists.patch", "parameterOrder": [ @@ -7763,7 +7763,7 @@ "type": "string" } }, - "path": "dfareporting/v3.5/userprofiles/{profileId}/remarketingLists", + "path": "userprofiles/{profileId}/remarketingLists", "request": { "$ref": "RemarketingList" }, @@ -7776,7 +7776,7 @@ }, "update": { "description": "Updates an existing remarketing list.", - "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/remarketingLists", + "flatPath": "userprofiles/{profileId}/remarketingLists", "httpMethod": "PUT", "id": "dfareporting.remarketingLists.update", "parameterOrder": [ @@ -7791,7 +7791,7 @@ "type": "string" } }, - "path": "dfareporting/v3.5/userprofiles/{profileId}/remarketingLists", + "path": "userprofiles/{profileId}/remarketingLists", "request": { "$ref": "RemarketingList" }, @@ -7808,7 +7808,7 @@ "methods": { "delete": { "description": "Deletes a report by its ID.", - "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/reports/{reportId}", + "flatPath": "userprofiles/{profileId}/reports/{reportId}", "httpMethod": "DELETE", "id": "dfareporting.reports.delete", "parameterOrder": [ @@ -7831,14 +7831,14 @@ "type": "string" } }, - "path": "dfareporting/v3.5/userprofiles/{profileId}/reports/{reportId}", + "path": "userprofiles/{profileId}/reports/{reportId}", "scopes": [ "https://www.googleapis.com/auth/dfareporting" ] }, "get": { "description": "Retrieves a report by its ID.", - "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/reports/{reportId}", + "flatPath": "userprofiles/{profileId}/reports/{reportId}", "httpMethod": "GET", "id": "dfareporting.reports.get", "parameterOrder": [ @@ -7861,7 +7861,7 @@ "type": "string" } }, - "path": "dfareporting/v3.5/userprofiles/{profileId}/reports/{reportId}", + "path": "userprofiles/{profileId}/reports/{reportId}", "response": { "$ref": "Report" }, @@ -7871,7 +7871,7 @@ }, "insert": { "description": "Creates a report.", - "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/reports", + "flatPath": "userprofiles/{profileId}/reports", "httpMethod": "POST", "id": "dfareporting.reports.insert", "parameterOrder": [ @@ -7886,7 +7886,7 @@ "type": "string" } }, - "path": "dfareporting/v3.5/userprofiles/{profileId}/reports", + "path": "userprofiles/{profileId}/reports", "request": { "$ref": "Report" }, @@ -7899,7 +7899,7 @@ }, "list": { "description": "Retrieves list of reports.", - "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/reports", + "flatPath": "userprofiles/{profileId}/reports", "httpMethod": "GET", "id": "dfareporting.reports.list", "parameterOrder": [ @@ -7972,7 +7972,7 @@ "type": "string" } }, - "path": "dfareporting/v3.5/userprofiles/{profileId}/reports", + "path": "userprofiles/{profileId}/reports", "response": { "$ref": "ReportList" }, @@ -7982,7 +7982,7 @@ }, "patch": { "description": "Updates an existing report. This method supports patch semantics.", - "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/reports/{reportId}", + "flatPath": "userprofiles/{profileId}/reports/{reportId}", "httpMethod": "PATCH", "id": "dfareporting.reports.patch", "parameterOrder": [ @@ -8005,7 +8005,7 @@ "type": "string" } }, - "path": "dfareporting/v3.5/userprofiles/{profileId}/reports/{reportId}", + "path": "userprofiles/{profileId}/reports/{reportId}", "request": { "$ref": "Report" }, @@ -8018,7 +8018,7 @@ }, "run": { "description": "Runs a report.", - "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/reports/{reportId}/run", + "flatPath": "userprofiles/{profileId}/reports/{reportId}/run", "httpMethod": "POST", "id": "dfareporting.reports.run", "parameterOrder": [ @@ -8047,7 +8047,7 @@ "type": "boolean" } }, - "path": "dfareporting/v3.5/userprofiles/{profileId}/reports/{reportId}/run", + "path": "userprofiles/{profileId}/reports/{reportId}/run", "response": { "$ref": "File" }, @@ -8057,7 +8057,7 @@ }, "update": { "description": "Updates a report.", - "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/reports/{reportId}", + "flatPath": "userprofiles/{profileId}/reports/{reportId}", "httpMethod": "PUT", "id": "dfareporting.reports.update", "parameterOrder": [ @@ -8080,7 +8080,7 @@ "type": "string" } }, - "path": "dfareporting/v3.5/userprofiles/{profileId}/reports/{reportId}", + "path": "userprofiles/{profileId}/reports/{reportId}", "request": { "$ref": "Report" }, @@ -8097,7 +8097,7 @@ "methods": { "query": { "description": "Returns the fields that are compatible to be selected in the respective sections of a report criteria, given the fields already selected in the input report and user permissions.", - "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/reports/compatiblefields/query", + "flatPath": "userprofiles/{profileId}/reports/compatiblefields/query", "httpMethod": "POST", "id": "dfareporting.reports.compatibleFields.query", "parameterOrder": [ @@ -8112,7 +8112,7 @@ "type": "string" } }, - "path": "dfareporting/v3.5/userprofiles/{profileId}/reports/compatiblefields/query", + "path": "userprofiles/{profileId}/reports/compatiblefields/query", "request": { "$ref": "Report" }, @@ -8129,7 +8129,7 @@ "methods": { "get": { "description": "Retrieves a report file by its report ID and file ID. This method supports media download.", - "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/reports/{reportId}/files/{fileId}", + "flatPath": "userprofiles/{profileId}/reports/{reportId}/files/{fileId}", "httpMethod": "GET", "id": "dfareporting.reports.files.get", "parameterOrder": [ @@ -8160,7 +8160,7 @@ "type": "string" } }, - "path": "dfareporting/v3.5/userprofiles/{profileId}/reports/{reportId}/files/{fileId}", + "path": "userprofiles/{profileId}/reports/{reportId}/files/{fileId}", "response": { "$ref": "File" }, @@ -8171,7 +8171,7 @@ }, "list": { "description": "Lists files for a report.", - "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/reports/{reportId}/files", + "flatPath": "userprofiles/{profileId}/reports/{reportId}/files", "httpMethod": "GET", "id": "dfareporting.reports.files.list", "parameterOrder": [ @@ -8236,7 +8236,7 @@ "type": "string" } }, - "path": "dfareporting/v3.5/userprofiles/{profileId}/reports/{reportId}/files", + "path": "userprofiles/{profileId}/reports/{reportId}/files", "response": { "$ref": "FileList" }, @@ -8252,7 +8252,7 @@ "methods": { "get": { "description": "Gets one site by ID.", - "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/sites/{id}", + "flatPath": "userprofiles/{profileId}/sites/{id}", "httpMethod": "GET", "id": "dfareporting.sites.get", "parameterOrder": [ @@ -8275,7 +8275,7 @@ "type": "string" } }, - "path": "dfareporting/v3.5/userprofiles/{profileId}/sites/{id}", + "path": "userprofiles/{profileId}/sites/{id}", "response": { "$ref": "Site" }, @@ -8285,7 +8285,7 @@ }, "insert": { "description": "Inserts a new site.", - "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/sites", + "flatPath": "userprofiles/{profileId}/sites", "httpMethod": "POST", "id": "dfareporting.sites.insert", "parameterOrder": [ @@ -8300,7 +8300,7 @@ "type": "string" } }, - "path": "dfareporting/v3.5/userprofiles/{profileId}/sites", + "path": "userprofiles/{profileId}/sites", "request": { "$ref": "Site" }, @@ -8313,7 +8313,7 @@ }, "list": { "description": "Retrieves a list of sites, possibly filtered. This method supports paging.", - "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/sites", + "flatPath": "userprofiles/{profileId}/sites", "httpMethod": "GET", "id": "dfareporting.sites.list", "parameterOrder": [ @@ -8432,7 +8432,7 @@ "type": "boolean" } }, - "path": "dfareporting/v3.5/userprofiles/{profileId}/sites", + "path": "userprofiles/{profileId}/sites", "response": { "$ref": "SitesListResponse" }, @@ -8442,7 +8442,7 @@ }, "patch": { "description": "Updates an existing site. This method supports patch semantics.", - "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/sites", + "flatPath": "userprofiles/{profileId}/sites", "httpMethod": "PATCH", "id": "dfareporting.sites.patch", "parameterOrder": [ @@ -8465,7 +8465,7 @@ "type": "string" } }, - "path": "dfareporting/v3.5/userprofiles/{profileId}/sites", + "path": "userprofiles/{profileId}/sites", "request": { "$ref": "Site" }, @@ -8478,7 +8478,7 @@ }, "update": { "description": "Updates an existing site.", - "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/sites", + "flatPath": "userprofiles/{profileId}/sites", "httpMethod": "PUT", "id": "dfareporting.sites.update", "parameterOrder": [ @@ -8493,7 +8493,7 @@ "type": "string" } }, - "path": "dfareporting/v3.5/userprofiles/{profileId}/sites", + "path": "userprofiles/{profileId}/sites", "request": { "$ref": "Site" }, @@ -8510,7 +8510,7 @@ "methods": { "get": { "description": "Gets one size by ID.", - "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/sizes/{id}", + "flatPath": "userprofiles/{profileId}/sizes/{id}", "httpMethod": "GET", "id": "dfareporting.sizes.get", "parameterOrder": [ @@ -8533,7 +8533,7 @@ "type": "string" } }, - "path": "dfareporting/v3.5/userprofiles/{profileId}/sizes/{id}", + "path": "userprofiles/{profileId}/sizes/{id}", "response": { "$ref": "Size" }, @@ -8543,7 +8543,7 @@ }, "insert": { "description": "Inserts a new size.", - "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/sizes", + "flatPath": "userprofiles/{profileId}/sizes", "httpMethod": "POST", "id": "dfareporting.sizes.insert", "parameterOrder": [ @@ -8558,7 +8558,7 @@ "type": "string" } }, - "path": "dfareporting/v3.5/userprofiles/{profileId}/sizes", + "path": "userprofiles/{profileId}/sizes", "request": { "$ref": "Size" }, @@ -8571,7 +8571,7 @@ }, "list": { "description": "Retrieves a list of sizes, possibly filtered. Retrieved sizes are globally unique and may include values not currently in use by your account. Due to this, the list of sizes returned by this method may differ from the list seen in the Trafficking UI.", - "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/sizes", + "flatPath": "userprofiles/{profileId}/sizes", "httpMethod": "GET", "id": "dfareporting.sizes.list", "parameterOrder": [ @@ -8614,7 +8614,7 @@ "type": "integer" } }, - "path": "dfareporting/v3.5/userprofiles/{profileId}/sizes", + "path": "userprofiles/{profileId}/sizes", "response": { "$ref": "SizesListResponse" }, @@ -8628,7 +8628,7 @@ "methods": { "get": { "description": "Gets one subaccount by ID.", - "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/subaccounts/{id}", + "flatPath": "userprofiles/{profileId}/subaccounts/{id}", "httpMethod": "GET", "id": "dfareporting.subaccounts.get", "parameterOrder": [ @@ -8651,7 +8651,7 @@ "type": "string" } }, - "path": "dfareporting/v3.5/userprofiles/{profileId}/subaccounts/{id}", + "path": "userprofiles/{profileId}/subaccounts/{id}", "response": { "$ref": "Subaccount" }, @@ -8661,7 +8661,7 @@ }, "insert": { "description": "Inserts a new subaccount.", - "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/subaccounts", + "flatPath": "userprofiles/{profileId}/subaccounts", "httpMethod": "POST", "id": "dfareporting.subaccounts.insert", "parameterOrder": [ @@ -8676,7 +8676,7 @@ "type": "string" } }, - "path": "dfareporting/v3.5/userprofiles/{profileId}/subaccounts", + "path": "userprofiles/{profileId}/subaccounts", "request": { "$ref": "Subaccount" }, @@ -8689,7 +8689,7 @@ }, "list": { "description": "Gets a list of subaccounts, possibly filtered. This method supports paging.", - "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/subaccounts", + "flatPath": "userprofiles/{profileId}/subaccounts", "httpMethod": "GET", "id": "dfareporting.subaccounts.list", "parameterOrder": [ @@ -8758,7 +8758,7 @@ "type": "string" } }, - "path": "dfareporting/v3.5/userprofiles/{profileId}/subaccounts", + "path": "userprofiles/{profileId}/subaccounts", "response": { "$ref": "SubaccountsListResponse" }, @@ -8768,7 +8768,7 @@ }, "patch": { "description": "Updates an existing subaccount. This method supports patch semantics.", - "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/subaccounts", + "flatPath": "userprofiles/{profileId}/subaccounts", "httpMethod": "PATCH", "id": "dfareporting.subaccounts.patch", "parameterOrder": [ @@ -8791,7 +8791,7 @@ "type": "string" } }, - "path": "dfareporting/v3.5/userprofiles/{profileId}/subaccounts", + "path": "userprofiles/{profileId}/subaccounts", "request": { "$ref": "Subaccount" }, @@ -8804,7 +8804,7 @@ }, "update": { "description": "Updates an existing subaccount.", - "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/subaccounts", + "flatPath": "userprofiles/{profileId}/subaccounts", "httpMethod": "PUT", "id": "dfareporting.subaccounts.update", "parameterOrder": [ @@ -8819,7 +8819,7 @@ "type": "string" } }, - "path": "dfareporting/v3.5/userprofiles/{profileId}/subaccounts", + "path": "userprofiles/{profileId}/subaccounts", "request": { "$ref": "Subaccount" }, @@ -8836,7 +8836,7 @@ "methods": { "get": { "description": "Gets one remarketing list by ID.", - "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/targetableRemarketingLists/{id}", + "flatPath": "userprofiles/{profileId}/targetableRemarketingLists/{id}", "httpMethod": "GET", "id": "dfareporting.targetableRemarketingLists.get", "parameterOrder": [ @@ -8859,7 +8859,7 @@ "type": "string" } }, - "path": "dfareporting/v3.5/userprofiles/{profileId}/targetableRemarketingLists/{id}", + "path": "userprofiles/{profileId}/targetableRemarketingLists/{id}", "response": { "$ref": "TargetableRemarketingList" }, @@ -8869,7 +8869,7 @@ }, "list": { "description": "Retrieves a list of targetable remarketing lists, possibly filtered. This method supports paging.", - "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/targetableRemarketingLists", + "flatPath": "userprofiles/{profileId}/targetableRemarketingLists", "httpMethod": "GET", "id": "dfareporting.targetableRemarketingLists.list", "parameterOrder": [ @@ -8944,7 +8944,7 @@ "type": "string" } }, - "path": "dfareporting/v3.5/userprofiles/{profileId}/targetableRemarketingLists", + "path": "userprofiles/{profileId}/targetableRemarketingLists", "response": { "$ref": "TargetableRemarketingListsListResponse" }, @@ -8958,7 +8958,7 @@ "methods": { "get": { "description": "Gets one targeting template by ID.", - "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/targetingTemplates/{id}", + "flatPath": "userprofiles/{profileId}/targetingTemplates/{id}", "httpMethod": "GET", "id": "dfareporting.targetingTemplates.get", "parameterOrder": [ @@ -8981,7 +8981,7 @@ "type": "string" } }, - "path": "dfareporting/v3.5/userprofiles/{profileId}/targetingTemplates/{id}", + "path": "userprofiles/{profileId}/targetingTemplates/{id}", "response": { "$ref": "TargetingTemplate" }, @@ -8991,7 +8991,7 @@ }, "insert": { "description": "Inserts a new targeting template.", - "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/targetingTemplates", + "flatPath": "userprofiles/{profileId}/targetingTemplates", "httpMethod": "POST", "id": "dfareporting.targetingTemplates.insert", "parameterOrder": [ @@ -9006,7 +9006,7 @@ "type": "string" } }, - "path": "dfareporting/v3.5/userprofiles/{profileId}/targetingTemplates", + "path": "userprofiles/{profileId}/targetingTemplates", "request": { "$ref": "TargetingTemplate" }, @@ -9019,7 +9019,7 @@ }, "list": { "description": "Retrieves a list of targeting templates, optionally filtered. This method supports paging.", - "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/targetingTemplates", + "flatPath": "userprofiles/{profileId}/targetingTemplates", "httpMethod": "GET", "id": "dfareporting.targetingTemplates.list", "parameterOrder": [ @@ -9094,7 +9094,7 @@ "type": "string" } }, - "path": "dfareporting/v3.5/userprofiles/{profileId}/targetingTemplates", + "path": "userprofiles/{profileId}/targetingTemplates", "response": { "$ref": "TargetingTemplatesListResponse" }, @@ -9104,7 +9104,7 @@ }, "patch": { "description": "Updates an existing targeting template. This method supports patch semantics.", - "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/targetingTemplates", + "flatPath": "userprofiles/{profileId}/targetingTemplates", "httpMethod": "PATCH", "id": "dfareporting.targetingTemplates.patch", "parameterOrder": [ @@ -9127,7 +9127,7 @@ "type": "string" } }, - "path": "dfareporting/v3.5/userprofiles/{profileId}/targetingTemplates", + "path": "userprofiles/{profileId}/targetingTemplates", "request": { "$ref": "TargetingTemplate" }, @@ -9140,7 +9140,7 @@ }, "update": { "description": "Updates an existing targeting template.", - "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/targetingTemplates", + "flatPath": "userprofiles/{profileId}/targetingTemplates", "httpMethod": "PUT", "id": "dfareporting.targetingTemplates.update", "parameterOrder": [ @@ -9155,7 +9155,7 @@ "type": "string" } }, - "path": "dfareporting/v3.5/userprofiles/{profileId}/targetingTemplates", + "path": "userprofiles/{profileId}/targetingTemplates", "request": { "$ref": "TargetingTemplate" }, @@ -9172,7 +9172,7 @@ "methods": { "get": { "description": "Gets one user profile by ID.", - "flatPath": "dfareporting/v3.5/userprofiles/{profileId}", + "flatPath": "userprofiles/{profileId}", "httpMethod": "GET", "id": "dfareporting.userProfiles.get", "parameterOrder": [ @@ -9187,7 +9187,7 @@ "type": "string" } }, - "path": "dfareporting/v3.5/userprofiles/{profileId}", + "path": "userprofiles/{profileId}", "response": { "$ref": "UserProfile" }, @@ -9199,12 +9199,12 @@ }, "list": { "description": "Retrieves list of user profiles for a user.", - "flatPath": "dfareporting/v3.5/userprofiles", + "flatPath": "userprofiles", "httpMethod": "GET", "id": "dfareporting.userProfiles.list", "parameterOrder": [], "parameters": {}, - "path": "dfareporting/v3.5/userprofiles", + "path": "userprofiles", "response": { "$ref": "UserProfileList" }, @@ -9220,7 +9220,7 @@ "methods": { "get": { "description": "Gets one user role permission group by ID.", - "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/userRolePermissionGroups/{id}", + "flatPath": "userprofiles/{profileId}/userRolePermissionGroups/{id}", "httpMethod": "GET", "id": "dfareporting.userRolePermissionGroups.get", "parameterOrder": [ @@ -9243,7 +9243,7 @@ "type": "string" } }, - "path": "dfareporting/v3.5/userprofiles/{profileId}/userRolePermissionGroups/{id}", + "path": "userprofiles/{profileId}/userRolePermissionGroups/{id}", "response": { "$ref": "UserRolePermissionGroup" }, @@ -9253,7 +9253,7 @@ }, "list": { "description": "Gets a list of all supported user role permission groups.", - "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/userRolePermissionGroups", + "flatPath": "userprofiles/{profileId}/userRolePermissionGroups", "httpMethod": "GET", "id": "dfareporting.userRolePermissionGroups.list", "parameterOrder": [ @@ -9268,7 +9268,7 @@ "type": "string" } }, - "path": "dfareporting/v3.5/userprofiles/{profileId}/userRolePermissionGroups", + "path": "userprofiles/{profileId}/userRolePermissionGroups", "response": { "$ref": "UserRolePermissionGroupsListResponse" }, @@ -9282,7 +9282,7 @@ "methods": { "get": { "description": "Gets one user role permission by ID.", - "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/userRolePermissions/{id}", + "flatPath": "userprofiles/{profileId}/userRolePermissions/{id}", "httpMethod": "GET", "id": "dfareporting.userRolePermissions.get", "parameterOrder": [ @@ -9305,7 +9305,7 @@ "type": "string" } }, - "path": "dfareporting/v3.5/userprofiles/{profileId}/userRolePermissions/{id}", + "path": "userprofiles/{profileId}/userRolePermissions/{id}", "response": { "$ref": "UserRolePermission" }, @@ -9315,7 +9315,7 @@ }, "list": { "description": "Gets a list of user role permissions, possibly filtered.", - "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/userRolePermissions", + "flatPath": "userprofiles/{profileId}/userRolePermissions", "httpMethod": "GET", "id": "dfareporting.userRolePermissions.list", "parameterOrder": [ @@ -9337,7 +9337,7 @@ "type": "string" } }, - "path": "dfareporting/v3.5/userprofiles/{profileId}/userRolePermissions", + "path": "userprofiles/{profileId}/userRolePermissions", "response": { "$ref": "UserRolePermissionsListResponse" }, @@ -9351,7 +9351,7 @@ "methods": { "delete": { "description": "Deletes an existing user role.", - "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/userRoles/{id}", + "flatPath": "userprofiles/{profileId}/userRoles/{id}", "httpMethod": "DELETE", "id": "dfareporting.userRoles.delete", "parameterOrder": [ @@ -9374,14 +9374,14 @@ "type": "string" } }, - "path": "dfareporting/v3.5/userprofiles/{profileId}/userRoles/{id}", + "path": "userprofiles/{profileId}/userRoles/{id}", "scopes": [ "https://www.googleapis.com/auth/dfatrafficking" ] }, "get": { "description": "Gets one user role by ID.", - "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/userRoles/{id}", + "flatPath": "userprofiles/{profileId}/userRoles/{id}", "httpMethod": "GET", "id": "dfareporting.userRoles.get", "parameterOrder": [ @@ -9404,7 +9404,7 @@ "type": "string" } }, - "path": "dfareporting/v3.5/userprofiles/{profileId}/userRoles/{id}", + "path": "userprofiles/{profileId}/userRoles/{id}", "response": { "$ref": "UserRole" }, @@ -9414,7 +9414,7 @@ }, "insert": { "description": "Inserts a new user role.", - "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/userRoles", + "flatPath": "userprofiles/{profileId}/userRoles", "httpMethod": "POST", "id": "dfareporting.userRoles.insert", "parameterOrder": [ @@ -9429,7 +9429,7 @@ "type": "string" } }, - "path": "dfareporting/v3.5/userprofiles/{profileId}/userRoles", + "path": "userprofiles/{profileId}/userRoles", "request": { "$ref": "UserRole" }, @@ -9442,7 +9442,7 @@ }, "list": { "description": "Retrieves a list of user roles, possibly filtered. This method supports paging.", - "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/userRoles", + "flatPath": "userprofiles/{profileId}/userRoles", "httpMethod": "GET", "id": "dfareporting.userRoles.list", "parameterOrder": [ @@ -9522,7 +9522,7 @@ "type": "string" } }, - "path": "dfareporting/v3.5/userprofiles/{profileId}/userRoles", + "path": "userprofiles/{profileId}/userRoles", "response": { "$ref": "UserRolesListResponse" }, @@ -9532,7 +9532,7 @@ }, "patch": { "description": "Updates an existing user role. This method supports patch semantics.", - "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/userRoles", + "flatPath": "userprofiles/{profileId}/userRoles", "httpMethod": "PATCH", "id": "dfareporting.userRoles.patch", "parameterOrder": [ @@ -9555,7 +9555,7 @@ "type": "string" } }, - "path": "dfareporting/v3.5/userprofiles/{profileId}/userRoles", + "path": "userprofiles/{profileId}/userRoles", "request": { "$ref": "UserRole" }, @@ -9568,7 +9568,7 @@ }, "update": { "description": "Updates an existing user role.", - "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/userRoles", + "flatPath": "userprofiles/{profileId}/userRoles", "httpMethod": "PUT", "id": "dfareporting.userRoles.update", "parameterOrder": [ @@ -9583,7 +9583,7 @@ "type": "string" } }, - "path": "dfareporting/v3.5/userprofiles/{profileId}/userRoles", + "path": "userprofiles/{profileId}/userRoles", "request": { "$ref": "UserRole" }, @@ -9600,7 +9600,7 @@ "methods": { "get": { "description": "Gets one video format by ID.", - "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/videoFormats/{id}", + "flatPath": "userprofiles/{profileId}/videoFormats/{id}", "httpMethod": "GET", "id": "dfareporting.videoFormats.get", "parameterOrder": [ @@ -9623,7 +9623,7 @@ "type": "string" } }, - "path": "dfareporting/v3.5/userprofiles/{profileId}/videoFormats/{id}", + "path": "userprofiles/{profileId}/videoFormats/{id}", "response": { "$ref": "VideoFormat" }, @@ -9633,7 +9633,7 @@ }, "list": { "description": "Lists available video formats.", - "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/videoFormats", + "flatPath": "userprofiles/{profileId}/videoFormats", "httpMethod": "GET", "id": "dfareporting.videoFormats.list", "parameterOrder": [ @@ -9648,7 +9648,7 @@ "type": "string" } }, - "path": "dfareporting/v3.5/userprofiles/{profileId}/videoFormats", + "path": "userprofiles/{profileId}/videoFormats", "response": { "$ref": "VideoFormatsListResponse" }, @@ -9659,7 +9659,7 @@ } } }, - "revision": "20220611", + "revision": "20220815", "rootUrl": "https://dfareporting.googleapis.com/", "schemas": { "Account": { @@ -20598,7 +20598,7 @@ "type": "object" } }, - "servicePath": "", + "servicePath": "dfareporting/v3.5/", "title": "Campaign Manager 360 API", "version": "v3.5" } \ No newline at end of file diff --git a/dfareporting/v3.5/dfareporting-gen.go b/dfareporting/v3.5/dfareporting-gen.go index a3d7fcfd1a5..fc46de83259 100644 --- a/dfareporting/v3.5/dfareporting-gen.go +++ b/dfareporting/v3.5/dfareporting-gen.go @@ -79,8 +79,8 @@ var _ = internaloption.WithDefaultEndpoint const apiId = "dfareporting:v3.5" const apiName = "dfareporting" const apiVersion = "v3.5" -const basePath = "https://dfareporting.googleapis.com/" -const mtlsBasePath = "https://dfareporting.mtls.googleapis.com/" +const basePath = "https://dfareporting.googleapis.com/dfareporting/v3.5/" +const mtlsBasePath = "https://dfareporting.mtls.googleapis.com/dfareporting/v3.5/" // OAuth2 scopes used by this API. const ( @@ -14799,7 +14799,7 @@ func (c *AccountActiveAdSummariesGetCall) doRequest(alt string) (*http.Response, var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v3.5/userprofiles/{profileId}/accountActiveAdSummaries/{summaryAccountId}") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/accountActiveAdSummaries/{summaryAccountId}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -14852,7 +14852,7 @@ func (c *AccountActiveAdSummariesGetCall) Do(opts ...googleapi.CallOption) (*Acc return ret, nil // { // "description": "Gets the account's active ad summary by account ID.", - // "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/accountActiveAdSummaries/{summaryAccountId}", + // "flatPath": "userprofiles/{profileId}/accountActiveAdSummaries/{summaryAccountId}", // "httpMethod": "GET", // "id": "dfareporting.accountActiveAdSummaries.get", // "parameterOrder": [ @@ -14875,7 +14875,7 @@ func (c *AccountActiveAdSummariesGetCall) Do(opts ...googleapi.CallOption) (*Acc // "type": "string" // } // }, - // "path": "dfareporting/v3.5/userprofiles/{profileId}/accountActiveAdSummaries/{summaryAccountId}", + // "path": "userprofiles/{profileId}/accountActiveAdSummaries/{summaryAccountId}", // "response": { // "$ref": "AccountActiveAdSummary" // }, @@ -14957,7 +14957,7 @@ func (c *AccountPermissionGroupsGetCall) doRequest(alt string) (*http.Response, var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v3.5/userprofiles/{profileId}/accountPermissionGroups/{id}") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/accountPermissionGroups/{id}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -15010,7 +15010,7 @@ func (c *AccountPermissionGroupsGetCall) Do(opts ...googleapi.CallOption) (*Acco return ret, nil // { // "description": "Gets one account permission group by ID.", - // "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/accountPermissionGroups/{id}", + // "flatPath": "userprofiles/{profileId}/accountPermissionGroups/{id}", // "httpMethod": "GET", // "id": "dfareporting.accountPermissionGroups.get", // "parameterOrder": [ @@ -15033,7 +15033,7 @@ func (c *AccountPermissionGroupsGetCall) Do(opts ...googleapi.CallOption) (*Acco // "type": "string" // } // }, - // "path": "dfareporting/v3.5/userprofiles/{profileId}/accountPermissionGroups/{id}", + // "path": "userprofiles/{profileId}/accountPermissionGroups/{id}", // "response": { // "$ref": "AccountPermissionGroup" // }, @@ -15112,7 +15112,7 @@ func (c *AccountPermissionGroupsListCall) doRequest(alt string) (*http.Response, var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v3.5/userprofiles/{profileId}/accountPermissionGroups") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/accountPermissionGroups") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -15165,7 +15165,7 @@ func (c *AccountPermissionGroupsListCall) Do(opts ...googleapi.CallOption) (*Acc return ret, nil // { // "description": "Retrieves the list of account permission groups.", - // "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/accountPermissionGroups", + // "flatPath": "userprofiles/{profileId}/accountPermissionGroups", // "httpMethod": "GET", // "id": "dfareporting.accountPermissionGroups.list", // "parameterOrder": [ @@ -15180,7 +15180,7 @@ func (c *AccountPermissionGroupsListCall) Do(opts ...googleapi.CallOption) (*Acc // "type": "string" // } // }, - // "path": "dfareporting/v3.5/userprofiles/{profileId}/accountPermissionGroups", + // "path": "userprofiles/{profileId}/accountPermissionGroups", // "response": { // "$ref": "AccountPermissionGroupsListResponse" // }, @@ -15262,7 +15262,7 @@ func (c *AccountPermissionsGetCall) 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, "dfareporting/v3.5/userprofiles/{profileId}/accountPermissions/{id}") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/accountPermissions/{id}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -15315,7 +15315,7 @@ func (c *AccountPermissionsGetCall) Do(opts ...googleapi.CallOption) (*AccountPe return ret, nil // { // "description": "Gets one account permission by ID.", - // "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/accountPermissions/{id}", + // "flatPath": "userprofiles/{profileId}/accountPermissions/{id}", // "httpMethod": "GET", // "id": "dfareporting.accountPermissions.get", // "parameterOrder": [ @@ -15338,7 +15338,7 @@ func (c *AccountPermissionsGetCall) Do(opts ...googleapi.CallOption) (*AccountPe // "type": "string" // } // }, - // "path": "dfareporting/v3.5/userprofiles/{profileId}/accountPermissions/{id}", + // "path": "userprofiles/{profileId}/accountPermissions/{id}", // "response": { // "$ref": "AccountPermission" // }, @@ -15417,7 +15417,7 @@ func (c *AccountPermissionsListCall) doRequest(alt string) (*http.Response, erro var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v3.5/userprofiles/{profileId}/accountPermissions") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/accountPermissions") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -15469,7 +15469,7 @@ func (c *AccountPermissionsListCall) Do(opts ...googleapi.CallOption) (*AccountP return ret, nil // { // "description": "Retrieves the list of account permissions.", - // "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/accountPermissions", + // "flatPath": "userprofiles/{profileId}/accountPermissions", // "httpMethod": "GET", // "id": "dfareporting.accountPermissions.list", // "parameterOrder": [ @@ -15484,7 +15484,7 @@ func (c *AccountPermissionsListCall) Do(opts ...googleapi.CallOption) (*AccountP // "type": "string" // } // }, - // "path": "dfareporting/v3.5/userprofiles/{profileId}/accountPermissions", + // "path": "userprofiles/{profileId}/accountPermissions", // "response": { // "$ref": "AccountPermissionsListResponse" // }, @@ -15566,7 +15566,7 @@ func (c *AccountUserProfilesGetCall) doRequest(alt string) (*http.Response, erro var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v3.5/userprofiles/{profileId}/accountUserProfiles/{id}") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/accountUserProfiles/{id}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -15619,7 +15619,7 @@ func (c *AccountUserProfilesGetCall) Do(opts ...googleapi.CallOption) (*AccountU return ret, nil // { // "description": "Gets one account user profile by ID.", - // "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/accountUserProfiles/{id}", + // "flatPath": "userprofiles/{profileId}/accountUserProfiles/{id}", // "httpMethod": "GET", // "id": "dfareporting.accountUserProfiles.get", // "parameterOrder": [ @@ -15642,7 +15642,7 @@ func (c *AccountUserProfilesGetCall) Do(opts ...googleapi.CallOption) (*AccountU // "type": "string" // } // }, - // "path": "dfareporting/v3.5/userprofiles/{profileId}/accountUserProfiles/{id}", + // "path": "userprofiles/{profileId}/accountUserProfiles/{id}", // "response": { // "$ref": "AccountUserProfile" // }, @@ -15714,7 +15714,7 @@ func (c *AccountUserProfilesInsertCall) doRequest(alt string) (*http.Response, e reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v3.5/userprofiles/{profileId}/accountUserProfiles") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/accountUserProfiles") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -15766,7 +15766,7 @@ func (c *AccountUserProfilesInsertCall) Do(opts ...googleapi.CallOption) (*Accou return ret, nil // { // "description": "Inserts a new account user profile.", - // "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/accountUserProfiles", + // "flatPath": "userprofiles/{profileId}/accountUserProfiles", // "httpMethod": "POST", // "id": "dfareporting.accountUserProfiles.insert", // "parameterOrder": [ @@ -15781,7 +15781,7 @@ func (c *AccountUserProfilesInsertCall) Do(opts ...googleapi.CallOption) (*Accou // "type": "string" // } // }, - // "path": "dfareporting/v3.5/userprofiles/{profileId}/accountUserProfiles", + // "path": "userprofiles/{profileId}/accountUserProfiles", // "request": { // "$ref": "AccountUserProfile" // }, @@ -15948,7 +15948,7 @@ func (c *AccountUserProfilesListCall) doRequest(alt string) (*http.Response, err var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v3.5/userprofiles/{profileId}/accountUserProfiles") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/accountUserProfiles") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -16000,7 +16000,7 @@ func (c *AccountUserProfilesListCall) Do(opts ...googleapi.CallOption) (*Account return ret, nil // { // "description": "Retrieves a list of account user profiles, possibly filtered. This method supports paging.", - // "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/accountUserProfiles", + // "flatPath": "userprofiles/{profileId}/accountUserProfiles", // "httpMethod": "GET", // "id": "dfareporting.accountUserProfiles.list", // "parameterOrder": [ @@ -16086,7 +16086,7 @@ func (c *AccountUserProfilesListCall) Do(opts ...googleapi.CallOption) (*Account // "type": "string" // } // }, - // "path": "dfareporting/v3.5/userprofiles/{profileId}/accountUserProfiles", + // "path": "userprofiles/{profileId}/accountUserProfiles", // "response": { // "$ref": "AccountUserProfilesListResponse" // }, @@ -16182,7 +16182,7 @@ func (c *AccountUserProfilesPatchCall) doRequest(alt string) (*http.Response, er reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v3.5/userprofiles/{profileId}/accountUserProfiles") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/accountUserProfiles") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("PATCH", urls, body) if err != nil { @@ -16234,7 +16234,7 @@ func (c *AccountUserProfilesPatchCall) Do(opts ...googleapi.CallOption) (*Accoun return ret, nil // { // "description": "Updates an existing account user profile. This method supports patch semantics.", - // "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/accountUserProfiles", + // "flatPath": "userprofiles/{profileId}/accountUserProfiles", // "httpMethod": "PATCH", // "id": "dfareporting.accountUserProfiles.patch", // "parameterOrder": [ @@ -16257,7 +16257,7 @@ func (c *AccountUserProfilesPatchCall) Do(opts ...googleapi.CallOption) (*Accoun // "type": "string" // } // }, - // "path": "dfareporting/v3.5/userprofiles/{profileId}/accountUserProfiles", + // "path": "userprofiles/{profileId}/accountUserProfiles", // "request": { // "$ref": "AccountUserProfile" // }, @@ -16332,7 +16332,7 @@ func (c *AccountUserProfilesUpdateCall) doRequest(alt string) (*http.Response, e reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v3.5/userprofiles/{profileId}/accountUserProfiles") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/accountUserProfiles") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("PUT", urls, body) if err != nil { @@ -16384,7 +16384,7 @@ func (c *AccountUserProfilesUpdateCall) Do(opts ...googleapi.CallOption) (*Accou return ret, nil // { // "description": "Updates an existing account user profile.", - // "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/accountUserProfiles", + // "flatPath": "userprofiles/{profileId}/accountUserProfiles", // "httpMethod": "PUT", // "id": "dfareporting.accountUserProfiles.update", // "parameterOrder": [ @@ -16399,7 +16399,7 @@ func (c *AccountUserProfilesUpdateCall) Do(opts ...googleapi.CallOption) (*Accou // "type": "string" // } // }, - // "path": "dfareporting/v3.5/userprofiles/{profileId}/accountUserProfiles", + // "path": "userprofiles/{profileId}/accountUserProfiles", // "request": { // "$ref": "AccountUserProfile" // }, @@ -16484,7 +16484,7 @@ func (c *AccountsGetCall) 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, "dfareporting/v3.5/userprofiles/{profileId}/accounts/{id}") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/accounts/{id}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -16537,7 +16537,7 @@ func (c *AccountsGetCall) Do(opts ...googleapi.CallOption) (*Account, error) { return ret, nil // { // "description": "Gets one account by ID.", - // "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/accounts/{id}", + // "flatPath": "userprofiles/{profileId}/accounts/{id}", // "httpMethod": "GET", // "id": "dfareporting.accounts.get", // "parameterOrder": [ @@ -16560,7 +16560,7 @@ func (c *AccountsGetCall) Do(opts ...googleapi.CallOption) (*Account, error) { // "type": "string" // } // }, - // "path": "dfareporting/v3.5/userprofiles/{profileId}/accounts/{id}", + // "path": "userprofiles/{profileId}/accounts/{id}", // "response": { // "$ref": "Account" // }, @@ -16710,7 +16710,7 @@ func (c *AccountsListCall) 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, "dfareporting/v3.5/userprofiles/{profileId}/accounts") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/accounts") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -16762,7 +16762,7 @@ func (c *AccountsListCall) Do(opts ...googleapi.CallOption) (*AccountsListRespon return ret, nil // { // "description": "Retrieves the list of accounts, possibly filtered. This method supports paging.", - // "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/accounts", + // "flatPath": "userprofiles/{profileId}/accounts", // "httpMethod": "GET", // "id": "dfareporting.accounts.list", // "parameterOrder": [ @@ -16836,7 +16836,7 @@ func (c *AccountsListCall) Do(opts ...googleapi.CallOption) (*AccountsListRespon // "type": "string" // } // }, - // "path": "dfareporting/v3.5/userprofiles/{profileId}/accounts", + // "path": "userprofiles/{profileId}/accounts", // "response": { // "$ref": "AccountsListResponse" // }, @@ -16932,7 +16932,7 @@ func (c *AccountsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v3.5/userprofiles/{profileId}/accounts") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/accounts") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("PATCH", urls, body) if err != nil { @@ -16984,7 +16984,7 @@ func (c *AccountsPatchCall) Do(opts ...googleapi.CallOption) (*Account, error) { return ret, nil // { // "description": "Updates an existing account. This method supports patch semantics.", - // "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/accounts", + // "flatPath": "userprofiles/{profileId}/accounts", // "httpMethod": "PATCH", // "id": "dfareporting.accounts.patch", // "parameterOrder": [ @@ -17007,7 +17007,7 @@ func (c *AccountsPatchCall) Do(opts ...googleapi.CallOption) (*Account, error) { // "type": "string" // } // }, - // "path": "dfareporting/v3.5/userprofiles/{profileId}/accounts", + // "path": "userprofiles/{profileId}/accounts", // "request": { // "$ref": "Account" // }, @@ -17082,7 +17082,7 @@ func (c *AccountsUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v3.5/userprofiles/{profileId}/accounts") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/accounts") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("PUT", urls, body) if err != nil { @@ -17134,7 +17134,7 @@ func (c *AccountsUpdateCall) Do(opts ...googleapi.CallOption) (*Account, error) return ret, nil // { // "description": "Updates an existing account.", - // "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/accounts", + // "flatPath": "userprofiles/{profileId}/accounts", // "httpMethod": "PUT", // "id": "dfareporting.accounts.update", // "parameterOrder": [ @@ -17149,7 +17149,7 @@ func (c *AccountsUpdateCall) Do(opts ...googleapi.CallOption) (*Account, error) // "type": "string" // } // }, - // "path": "dfareporting/v3.5/userprofiles/{profileId}/accounts", + // "path": "userprofiles/{profileId}/accounts", // "request": { // "$ref": "Account" // }, @@ -17234,7 +17234,7 @@ func (c *AdsGetCall) 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, "dfareporting/v3.5/userprofiles/{profileId}/ads/{id}") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/ads/{id}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -17287,7 +17287,7 @@ func (c *AdsGetCall) Do(opts ...googleapi.CallOption) (*Ad, error) { return ret, nil // { // "description": "Gets one ad by ID.", - // "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/ads/{id}", + // "flatPath": "userprofiles/{profileId}/ads/{id}", // "httpMethod": "GET", // "id": "dfareporting.ads.get", // "parameterOrder": [ @@ -17310,7 +17310,7 @@ func (c *AdsGetCall) Do(opts ...googleapi.CallOption) (*Ad, error) { // "type": "string" // } // }, - // "path": "dfareporting/v3.5/userprofiles/{profileId}/ads/{id}", + // "path": "userprofiles/{profileId}/ads/{id}", // "response": { // "$ref": "Ad" // }, @@ -17382,7 +17382,7 @@ func (c *AdsInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v3.5/userprofiles/{profileId}/ads") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/ads") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -17434,7 +17434,7 @@ func (c *AdsInsertCall) Do(opts ...googleapi.CallOption) (*Ad, error) { return ret, nil // { // "description": "Inserts a new ad.", - // "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/ads", + // "flatPath": "userprofiles/{profileId}/ads", // "httpMethod": "POST", // "id": "dfareporting.ads.insert", // "parameterOrder": [ @@ -17449,7 +17449,7 @@ func (c *AdsInsertCall) Do(opts ...googleapi.CallOption) (*Ad, error) { // "type": "string" // } // }, - // "path": "dfareporting/v3.5/userprofiles/{profileId}/ads", + // "path": "userprofiles/{profileId}/ads", // "request": { // "$ref": "Ad" // }, @@ -17771,7 +17771,7 @@ func (c *AdsListCall) 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, "dfareporting/v3.5/userprofiles/{profileId}/ads") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/ads") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -17823,7 +17823,7 @@ func (c *AdsListCall) Do(opts ...googleapi.CallOption) (*AdsListResponse, error) return ret, nil // { // "description": "Retrieves a list of ads, possibly filtered. This method supports paging.", - // "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/ads", + // "flatPath": "userprofiles/{profileId}/ads", // "httpMethod": "GET", // "id": "dfareporting.ads.list", // "parameterOrder": [ @@ -18026,7 +18026,7 @@ func (c *AdsListCall) Do(opts ...googleapi.CallOption) (*AdsListResponse, error) // "type": "string" // } // }, - // "path": "dfareporting/v3.5/userprofiles/{profileId}/ads", + // "path": "userprofiles/{profileId}/ads", // "response": { // "$ref": "AdsListResponse" // }, @@ -18121,7 +18121,7 @@ func (c *AdsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v3.5/userprofiles/{profileId}/ads") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/ads") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("PATCH", urls, body) if err != nil { @@ -18173,7 +18173,7 @@ func (c *AdsPatchCall) Do(opts ...googleapi.CallOption) (*Ad, error) { return ret, nil // { // "description": "Updates an existing ad. This method supports patch semantics.", - // "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/ads", + // "flatPath": "userprofiles/{profileId}/ads", // "httpMethod": "PATCH", // "id": "dfareporting.ads.patch", // "parameterOrder": [ @@ -18196,7 +18196,7 @@ func (c *AdsPatchCall) Do(opts ...googleapi.CallOption) (*Ad, error) { // "type": "string" // } // }, - // "path": "dfareporting/v3.5/userprofiles/{profileId}/ads", + // "path": "userprofiles/{profileId}/ads", // "request": { // "$ref": "Ad" // }, @@ -18271,7 +18271,7 @@ func (c *AdsUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v3.5/userprofiles/{profileId}/ads") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/ads") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("PUT", urls, body) if err != nil { @@ -18323,7 +18323,7 @@ func (c *AdsUpdateCall) Do(opts ...googleapi.CallOption) (*Ad, error) { return ret, nil // { // "description": "Updates an existing ad.", - // "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/ads", + // "flatPath": "userprofiles/{profileId}/ads", // "httpMethod": "PUT", // "id": "dfareporting.ads.update", // "parameterOrder": [ @@ -18338,7 +18338,7 @@ func (c *AdsUpdateCall) Do(opts ...googleapi.CallOption) (*Ad, error) { // "type": "string" // } // }, - // "path": "dfareporting/v3.5/userprofiles/{profileId}/ads", + // "path": "userprofiles/{profileId}/ads", // "request": { // "$ref": "Ad" // }, @@ -18409,7 +18409,7 @@ func (c *AdvertiserGroupsDeleteCall) doRequest(alt string) (*http.Response, erro var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v3.5/userprofiles/{profileId}/advertiserGroups/{id}") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/advertiserGroups/{id}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("DELETE", urls, body) if err != nil { @@ -18437,7 +18437,7 @@ func (c *AdvertiserGroupsDeleteCall) Do(opts ...googleapi.CallOption) error { return nil // { // "description": "Deletes an existing advertiser group.", - // "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/advertiserGroups/{id}", + // "flatPath": "userprofiles/{profileId}/advertiserGroups/{id}", // "httpMethod": "DELETE", // "id": "dfareporting.advertiserGroups.delete", // "parameterOrder": [ @@ -18460,7 +18460,7 @@ func (c *AdvertiserGroupsDeleteCall) Do(opts ...googleapi.CallOption) error { // "type": "string" // } // }, - // "path": "dfareporting/v3.5/userprofiles/{profileId}/advertiserGroups/{id}", + // "path": "userprofiles/{profileId}/advertiserGroups/{id}", // "scopes": [ // "https://www.googleapis.com/auth/dfatrafficking" // ] @@ -18539,7 +18539,7 @@ func (c *AdvertiserGroupsGetCall) 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, "dfareporting/v3.5/userprofiles/{profileId}/advertiserGroups/{id}") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/advertiserGroups/{id}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -18592,7 +18592,7 @@ func (c *AdvertiserGroupsGetCall) Do(opts ...googleapi.CallOption) (*AdvertiserG return ret, nil // { // "description": "Gets one advertiser group by ID.", - // "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/advertiserGroups/{id}", + // "flatPath": "userprofiles/{profileId}/advertiserGroups/{id}", // "httpMethod": "GET", // "id": "dfareporting.advertiserGroups.get", // "parameterOrder": [ @@ -18615,7 +18615,7 @@ func (c *AdvertiserGroupsGetCall) Do(opts ...googleapi.CallOption) (*AdvertiserG // "type": "string" // } // }, - // "path": "dfareporting/v3.5/userprofiles/{profileId}/advertiserGroups/{id}", + // "path": "userprofiles/{profileId}/advertiserGroups/{id}", // "response": { // "$ref": "AdvertiserGroup" // }, @@ -18687,7 +18687,7 @@ func (c *AdvertiserGroupsInsertCall) doRequest(alt string) (*http.Response, erro reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v3.5/userprofiles/{profileId}/advertiserGroups") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/advertiserGroups") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -18739,7 +18739,7 @@ func (c *AdvertiserGroupsInsertCall) Do(opts ...googleapi.CallOption) (*Advertis return ret, nil // { // "description": "Inserts a new advertiser group.", - // "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/advertiserGroups", + // "flatPath": "userprofiles/{profileId}/advertiserGroups", // "httpMethod": "POST", // "id": "dfareporting.advertiserGroups.insert", // "parameterOrder": [ @@ -18754,7 +18754,7 @@ func (c *AdvertiserGroupsInsertCall) Do(opts ...googleapi.CallOption) (*Advertis // "type": "string" // } // }, - // "path": "dfareporting/v3.5/userprofiles/{profileId}/advertiserGroups", + // "path": "userprofiles/{profileId}/advertiserGroups", // "request": { // "$ref": "AdvertiserGroup" // }, @@ -18900,7 +18900,7 @@ func (c *AdvertiserGroupsListCall) 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, "dfareporting/v3.5/userprofiles/{profileId}/advertiserGroups") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/advertiserGroups") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -18952,7 +18952,7 @@ func (c *AdvertiserGroupsListCall) Do(opts ...googleapi.CallOption) (*Advertiser return ret, nil // { // "description": "Retrieves a list of advertiser groups, possibly filtered. This method supports paging.", - // "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/advertiserGroups", + // "flatPath": "userprofiles/{profileId}/advertiserGroups", // "httpMethod": "GET", // "id": "dfareporting.advertiserGroups.list", // "parameterOrder": [ @@ -19021,7 +19021,7 @@ func (c *AdvertiserGroupsListCall) Do(opts ...googleapi.CallOption) (*Advertiser // "type": "string" // } // }, - // "path": "dfareporting/v3.5/userprofiles/{profileId}/advertiserGroups", + // "path": "userprofiles/{profileId}/advertiserGroups", // "response": { // "$ref": "AdvertiserGroupsListResponse" // }, @@ -19117,7 +19117,7 @@ func (c *AdvertiserGroupsPatchCall) doRequest(alt string) (*http.Response, error reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v3.5/userprofiles/{profileId}/advertiserGroups") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/advertiserGroups") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("PATCH", urls, body) if err != nil { @@ -19169,7 +19169,7 @@ func (c *AdvertiserGroupsPatchCall) Do(opts ...googleapi.CallOption) (*Advertise return ret, nil // { // "description": "Updates an existing advertiser group. This method supports patch semantics.", - // "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/advertiserGroups", + // "flatPath": "userprofiles/{profileId}/advertiserGroups", // "httpMethod": "PATCH", // "id": "dfareporting.advertiserGroups.patch", // "parameterOrder": [ @@ -19192,7 +19192,7 @@ func (c *AdvertiserGroupsPatchCall) Do(opts ...googleapi.CallOption) (*Advertise // "type": "string" // } // }, - // "path": "dfareporting/v3.5/userprofiles/{profileId}/advertiserGroups", + // "path": "userprofiles/{profileId}/advertiserGroups", // "request": { // "$ref": "AdvertiserGroup" // }, @@ -19267,7 +19267,7 @@ func (c *AdvertiserGroupsUpdateCall) doRequest(alt string) (*http.Response, erro reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v3.5/userprofiles/{profileId}/advertiserGroups") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/advertiserGroups") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("PUT", urls, body) if err != nil { @@ -19319,7 +19319,7 @@ func (c *AdvertiserGroupsUpdateCall) Do(opts ...googleapi.CallOption) (*Advertis return ret, nil // { // "description": "Updates an existing advertiser group.", - // "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/advertiserGroups", + // "flatPath": "userprofiles/{profileId}/advertiserGroups", // "httpMethod": "PUT", // "id": "dfareporting.advertiserGroups.update", // "parameterOrder": [ @@ -19334,7 +19334,7 @@ func (c *AdvertiserGroupsUpdateCall) Do(opts ...googleapi.CallOption) (*Advertis // "type": "string" // } // }, - // "path": "dfareporting/v3.5/userprofiles/{profileId}/advertiserGroups", + // "path": "userprofiles/{profileId}/advertiserGroups", // "request": { // "$ref": "AdvertiserGroup" // }, @@ -19419,7 +19419,7 @@ func (c *AdvertiserLandingPagesGetCall) doRequest(alt string) (*http.Response, e var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v3.5/userprofiles/{profileId}/advertiserLandingPages/{id}") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/advertiserLandingPages/{id}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -19472,7 +19472,7 @@ func (c *AdvertiserLandingPagesGetCall) Do(opts ...googleapi.CallOption) (*Landi return ret, nil // { // "description": "Gets one landing page by ID.", - // "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/advertiserLandingPages/{id}", + // "flatPath": "userprofiles/{profileId}/advertiserLandingPages/{id}", // "httpMethod": "GET", // "id": "dfareporting.advertiserLandingPages.get", // "parameterOrder": [ @@ -19495,7 +19495,7 @@ func (c *AdvertiserLandingPagesGetCall) Do(opts ...googleapi.CallOption) (*Landi // "type": "string" // } // }, - // "path": "dfareporting/v3.5/userprofiles/{profileId}/advertiserLandingPages/{id}", + // "path": "userprofiles/{profileId}/advertiserLandingPages/{id}", // "response": { // "$ref": "LandingPage" // }, @@ -19567,7 +19567,7 @@ func (c *AdvertiserLandingPagesInsertCall) doRequest(alt string) (*http.Response reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v3.5/userprofiles/{profileId}/advertiserLandingPages") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/advertiserLandingPages") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -19619,7 +19619,7 @@ func (c *AdvertiserLandingPagesInsertCall) Do(opts ...googleapi.CallOption) (*La return ret, nil // { // "description": "Inserts a new landing page.", - // "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/advertiserLandingPages", + // "flatPath": "userprofiles/{profileId}/advertiserLandingPages", // "httpMethod": "POST", // "id": "dfareporting.advertiserLandingPages.insert", // "parameterOrder": [ @@ -19634,7 +19634,7 @@ func (c *AdvertiserLandingPagesInsertCall) Do(opts ...googleapi.CallOption) (*La // "type": "string" // } // }, - // "path": "dfareporting/v3.5/userprofiles/{profileId}/advertiserLandingPages", + // "path": "userprofiles/{profileId}/advertiserLandingPages", // "request": { // "$ref": "LandingPage" // }, @@ -19815,7 +19815,7 @@ func (c *AdvertiserLandingPagesListCall) doRequest(alt string) (*http.Response, var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v3.5/userprofiles/{profileId}/advertiserLandingPages") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/advertiserLandingPages") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -19868,7 +19868,7 @@ func (c *AdvertiserLandingPagesListCall) Do(opts ...googleapi.CallOption) (*Adve return ret, nil // { // "description": "Retrieves a list of landing pages.", - // "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/advertiserLandingPages", + // "flatPath": "userprofiles/{profileId}/advertiserLandingPages", // "httpMethod": "GET", // "id": "dfareporting.advertiserLandingPages.list", // "parameterOrder": [ @@ -19962,7 +19962,7 @@ func (c *AdvertiserLandingPagesListCall) Do(opts ...googleapi.CallOption) (*Adve // "type": "string" // } // }, - // "path": "dfareporting/v3.5/userprofiles/{profileId}/advertiserLandingPages", + // "path": "userprofiles/{profileId}/advertiserLandingPages", // "response": { // "$ref": "AdvertiserLandingPagesListResponse" // }, @@ -20058,7 +20058,7 @@ func (c *AdvertiserLandingPagesPatchCall) doRequest(alt string) (*http.Response, reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v3.5/userprofiles/{profileId}/advertiserLandingPages") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/advertiserLandingPages") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("PATCH", urls, body) if err != nil { @@ -20110,7 +20110,7 @@ func (c *AdvertiserLandingPagesPatchCall) Do(opts ...googleapi.CallOption) (*Lan return ret, nil // { // "description": "Updates an existing advertiser landing page. This method supports patch semantics.", - // "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/advertiserLandingPages", + // "flatPath": "userprofiles/{profileId}/advertiserLandingPages", // "httpMethod": "PATCH", // "id": "dfareporting.advertiserLandingPages.patch", // "parameterOrder": [ @@ -20133,7 +20133,7 @@ func (c *AdvertiserLandingPagesPatchCall) Do(opts ...googleapi.CallOption) (*Lan // "type": "string" // } // }, - // "path": "dfareporting/v3.5/userprofiles/{profileId}/advertiserLandingPages", + // "path": "userprofiles/{profileId}/advertiserLandingPages", // "request": { // "$ref": "LandingPage" // }, @@ -20208,7 +20208,7 @@ func (c *AdvertiserLandingPagesUpdateCall) doRequest(alt string) (*http.Response reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v3.5/userprofiles/{profileId}/advertiserLandingPages") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/advertiserLandingPages") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("PUT", urls, body) if err != nil { @@ -20260,7 +20260,7 @@ func (c *AdvertiserLandingPagesUpdateCall) Do(opts ...googleapi.CallOption) (*La return ret, nil // { // "description": "Updates an existing landing page.", - // "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/advertiserLandingPages", + // "flatPath": "userprofiles/{profileId}/advertiserLandingPages", // "httpMethod": "PUT", // "id": "dfareporting.advertiserLandingPages.update", // "parameterOrder": [ @@ -20275,7 +20275,7 @@ func (c *AdvertiserLandingPagesUpdateCall) Do(opts ...googleapi.CallOption) (*La // "type": "string" // } // }, - // "path": "dfareporting/v3.5/userprofiles/{profileId}/advertiserLandingPages", + // "path": "userprofiles/{profileId}/advertiserLandingPages", // "request": { // "$ref": "LandingPage" // }, @@ -20360,7 +20360,7 @@ func (c *AdvertisersGetCall) 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, "dfareporting/v3.5/userprofiles/{profileId}/advertisers/{id}") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/advertisers/{id}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -20413,7 +20413,7 @@ func (c *AdvertisersGetCall) Do(opts ...googleapi.CallOption) (*Advertiser, erro return ret, nil // { // "description": "Gets one advertiser by ID.", - // "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/advertisers/{id}", + // "flatPath": "userprofiles/{profileId}/advertisers/{id}", // "httpMethod": "GET", // "id": "dfareporting.advertisers.get", // "parameterOrder": [ @@ -20436,7 +20436,7 @@ func (c *AdvertisersGetCall) Do(opts ...googleapi.CallOption) (*Advertiser, erro // "type": "string" // } // }, - // "path": "dfareporting/v3.5/userprofiles/{profileId}/advertisers/{id}", + // "path": "userprofiles/{profileId}/advertisers/{id}", // "response": { // "$ref": "Advertiser" // }, @@ -20508,7 +20508,7 @@ func (c *AdvertisersInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v3.5/userprofiles/{profileId}/advertisers") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/advertisers") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -20560,7 +20560,7 @@ func (c *AdvertisersInsertCall) Do(opts ...googleapi.CallOption) (*Advertiser, e return ret, nil // { // "description": "Inserts a new advertiser.", - // "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/advertisers", + // "flatPath": "userprofiles/{profileId}/advertisers", // "httpMethod": "POST", // "id": "dfareporting.advertisers.insert", // "parameterOrder": [ @@ -20575,7 +20575,7 @@ func (c *AdvertisersInsertCall) Do(opts ...googleapi.CallOption) (*Advertiser, e // "type": "string" // } // }, - // "path": "dfareporting/v3.5/userprofiles/{profileId}/advertisers", + // "path": "userprofiles/{profileId}/advertisers", // "request": { // "$ref": "Advertiser" // }, @@ -20777,7 +20777,7 @@ func (c *AdvertisersListCall) 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, "dfareporting/v3.5/userprofiles/{profileId}/advertisers") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/advertisers") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -20829,7 +20829,7 @@ func (c *AdvertisersListCall) Do(opts ...googleapi.CallOption) (*AdvertisersList return ret, nil // { // "description": "Retrieves a list of advertisers, possibly filtered. This method supports paging.", - // "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/advertisers", + // "flatPath": "userprofiles/{profileId}/advertisers", // "httpMethod": "GET", // "id": "dfareporting.advertisers.list", // "parameterOrder": [ @@ -20941,7 +20941,7 @@ func (c *AdvertisersListCall) Do(opts ...googleapi.CallOption) (*AdvertisersList // "type": "string" // } // }, - // "path": "dfareporting/v3.5/userprofiles/{profileId}/advertisers", + // "path": "userprofiles/{profileId}/advertisers", // "response": { // "$ref": "AdvertisersListResponse" // }, @@ -21037,7 +21037,7 @@ func (c *AdvertisersPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v3.5/userprofiles/{profileId}/advertisers") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/advertisers") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("PATCH", urls, body) if err != nil { @@ -21089,7 +21089,7 @@ func (c *AdvertisersPatchCall) Do(opts ...googleapi.CallOption) (*Advertiser, er return ret, nil // { // "description": "Updates an existing advertiser. This method supports patch semantics.", - // "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/advertisers", + // "flatPath": "userprofiles/{profileId}/advertisers", // "httpMethod": "PATCH", // "id": "dfareporting.advertisers.patch", // "parameterOrder": [ @@ -21112,7 +21112,7 @@ func (c *AdvertisersPatchCall) Do(opts ...googleapi.CallOption) (*Advertiser, er // "type": "string" // } // }, - // "path": "dfareporting/v3.5/userprofiles/{profileId}/advertisers", + // "path": "userprofiles/{profileId}/advertisers", // "request": { // "$ref": "Advertiser" // }, @@ -21187,7 +21187,7 @@ func (c *AdvertisersUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v3.5/userprofiles/{profileId}/advertisers") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/advertisers") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("PUT", urls, body) if err != nil { @@ -21239,7 +21239,7 @@ func (c *AdvertisersUpdateCall) Do(opts ...googleapi.CallOption) (*Advertiser, e return ret, nil // { // "description": "Updates an existing advertiser.", - // "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/advertisers", + // "flatPath": "userprofiles/{profileId}/advertisers", // "httpMethod": "PUT", // "id": "dfareporting.advertisers.update", // "parameterOrder": [ @@ -21254,7 +21254,7 @@ func (c *AdvertisersUpdateCall) Do(opts ...googleapi.CallOption) (*Advertiser, e // "type": "string" // } // }, - // "path": "dfareporting/v3.5/userprofiles/{profileId}/advertisers", + // "path": "userprofiles/{profileId}/advertisers", // "request": { // "$ref": "Advertiser" // }, @@ -21336,7 +21336,7 @@ func (c *BrowsersListCall) 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, "dfareporting/v3.5/userprofiles/{profileId}/browsers") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/browsers") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -21388,7 +21388,7 @@ func (c *BrowsersListCall) Do(opts ...googleapi.CallOption) (*BrowsersListRespon return ret, nil // { // "description": "Retrieves a list of browsers.", - // "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/browsers", + // "flatPath": "userprofiles/{profileId}/browsers", // "httpMethod": "GET", // "id": "dfareporting.browsers.list", // "parameterOrder": [ @@ -21403,7 +21403,7 @@ func (c *BrowsersListCall) Do(opts ...googleapi.CallOption) (*BrowsersListRespon // "type": "string" // } // }, - // "path": "dfareporting/v3.5/userprofiles/{profileId}/browsers", + // "path": "userprofiles/{profileId}/browsers", // "response": { // "$ref": "BrowsersListResponse" // }, @@ -21480,7 +21480,7 @@ func (c *CampaignCreativeAssociationsInsertCall) doRequest(alt string) (*http.Re reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v3.5/userprofiles/{profileId}/campaigns/{campaignId}/campaignCreativeAssociations") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/campaigns/{campaignId}/campaignCreativeAssociations") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -21533,7 +21533,7 @@ func (c *CampaignCreativeAssociationsInsertCall) Do(opts ...googleapi.CallOption return ret, nil // { // "description": "Associates a creative with the specified campaign. This method creates a default ad with dimensions matching the creative in the campaign if such a default ad does not exist already.", - // "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/campaigns/{campaignId}/campaignCreativeAssociations", + // "flatPath": "userprofiles/{profileId}/campaigns/{campaignId}/campaignCreativeAssociations", // "httpMethod": "POST", // "id": "dfareporting.campaignCreativeAssociations.insert", // "parameterOrder": [ @@ -21556,7 +21556,7 @@ func (c *CampaignCreativeAssociationsInsertCall) Do(opts ...googleapi.CallOption // "type": "string" // } // }, - // "path": "dfareporting/v3.5/userprofiles/{profileId}/campaigns/{campaignId}/campaignCreativeAssociations", + // "path": "userprofiles/{profileId}/campaigns/{campaignId}/campaignCreativeAssociations", // "request": { // "$ref": "CampaignCreativeAssociation" // }, @@ -21668,7 +21668,7 @@ func (c *CampaignCreativeAssociationsListCall) doRequest(alt string) (*http.Resp var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v3.5/userprofiles/{profileId}/campaigns/{campaignId}/campaignCreativeAssociations") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/campaigns/{campaignId}/campaignCreativeAssociations") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -21723,7 +21723,7 @@ func (c *CampaignCreativeAssociationsListCall) Do(opts ...googleapi.CallOption) return ret, nil // { // "description": "Retrieves the list of creative IDs associated with the specified campaign. This method supports paging.", - // "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/campaigns/{campaignId}/campaignCreativeAssociations", + // "flatPath": "userprofiles/{profileId}/campaigns/{campaignId}/campaignCreativeAssociations", // "httpMethod": "GET", // "id": "dfareporting.campaignCreativeAssociations.list", // "parameterOrder": [ @@ -21774,7 +21774,7 @@ func (c *CampaignCreativeAssociationsListCall) Do(opts ...googleapi.CallOption) // "type": "string" // } // }, - // "path": "dfareporting/v3.5/userprofiles/{profileId}/campaigns/{campaignId}/campaignCreativeAssociations", + // "path": "userprofiles/{profileId}/campaigns/{campaignId}/campaignCreativeAssociations", // "response": { // "$ref": "CampaignCreativeAssociationsListResponse" // }, @@ -21877,7 +21877,7 @@ func (c *CampaignsGetCall) 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, "dfareporting/v3.5/userprofiles/{profileId}/campaigns/{id}") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/campaigns/{id}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -21930,7 +21930,7 @@ func (c *CampaignsGetCall) Do(opts ...googleapi.CallOption) (*Campaign, error) { return ret, nil // { // "description": "Gets one campaign by ID.", - // "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/campaigns/{id}", + // "flatPath": "userprofiles/{profileId}/campaigns/{id}", // "httpMethod": "GET", // "id": "dfareporting.campaigns.get", // "parameterOrder": [ @@ -21953,7 +21953,7 @@ func (c *CampaignsGetCall) Do(opts ...googleapi.CallOption) (*Campaign, error) { // "type": "string" // } // }, - // "path": "dfareporting/v3.5/userprofiles/{profileId}/campaigns/{id}", + // "path": "userprofiles/{profileId}/campaigns/{id}", // "response": { // "$ref": "Campaign" // }, @@ -22025,7 +22025,7 @@ func (c *CampaignsInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v3.5/userprofiles/{profileId}/campaigns") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/campaigns") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -22077,7 +22077,7 @@ func (c *CampaignsInsertCall) Do(opts ...googleapi.CallOption) (*Campaign, error return ret, nil // { // "description": "Inserts a new campaign.", - // "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/campaigns", + // "flatPath": "userprofiles/{profileId}/campaigns", // "httpMethod": "POST", // "id": "dfareporting.campaigns.insert", // "parameterOrder": [ @@ -22092,7 +22092,7 @@ func (c *CampaignsInsertCall) Do(opts ...googleapi.CallOption) (*Campaign, error // "type": "string" // } // }, - // "path": "dfareporting/v3.5/userprofiles/{profileId}/campaigns", + // "path": "userprofiles/{profileId}/campaigns", // "request": { // "$ref": "Campaign" // }, @@ -22302,7 +22302,7 @@ func (c *CampaignsListCall) 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, "dfareporting/v3.5/userprofiles/{profileId}/campaigns") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/campaigns") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -22354,7 +22354,7 @@ func (c *CampaignsListCall) Do(opts ...googleapi.CallOption) (*CampaignsListResp return ret, nil // { // "description": "Retrieves a list of campaigns, possibly filtered. This method supports paging.", - // "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/campaigns", + // "flatPath": "userprofiles/{profileId}/campaigns", // "httpMethod": "GET", // "id": "dfareporting.campaigns.list", // "parameterOrder": [ @@ -22466,7 +22466,7 @@ func (c *CampaignsListCall) Do(opts ...googleapi.CallOption) (*CampaignsListResp // "type": "string" // } // }, - // "path": "dfareporting/v3.5/userprofiles/{profileId}/campaigns", + // "path": "userprofiles/{profileId}/campaigns", // "response": { // "$ref": "CampaignsListResponse" // }, @@ -22562,7 +22562,7 @@ func (c *CampaignsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v3.5/userprofiles/{profileId}/campaigns") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/campaigns") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("PATCH", urls, body) if err != nil { @@ -22614,7 +22614,7 @@ func (c *CampaignsPatchCall) Do(opts ...googleapi.CallOption) (*Campaign, error) return ret, nil // { // "description": "Updates an existing campaign. This method supports patch semantics.", - // "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/campaigns", + // "flatPath": "userprofiles/{profileId}/campaigns", // "httpMethod": "PATCH", // "id": "dfareporting.campaigns.patch", // "parameterOrder": [ @@ -22637,7 +22637,7 @@ func (c *CampaignsPatchCall) Do(opts ...googleapi.CallOption) (*Campaign, error) // "type": "string" // } // }, - // "path": "dfareporting/v3.5/userprofiles/{profileId}/campaigns", + // "path": "userprofiles/{profileId}/campaigns", // "request": { // "$ref": "Campaign" // }, @@ -22712,7 +22712,7 @@ func (c *CampaignsUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v3.5/userprofiles/{profileId}/campaigns") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/campaigns") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("PUT", urls, body) if err != nil { @@ -22764,7 +22764,7 @@ func (c *CampaignsUpdateCall) Do(opts ...googleapi.CallOption) (*Campaign, error return ret, nil // { // "description": "Updates an existing campaign.", - // "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/campaigns", + // "flatPath": "userprofiles/{profileId}/campaigns", // "httpMethod": "PUT", // "id": "dfareporting.campaigns.update", // "parameterOrder": [ @@ -22779,7 +22779,7 @@ func (c *CampaignsUpdateCall) Do(opts ...googleapi.CallOption) (*Campaign, error // "type": "string" // } // }, - // "path": "dfareporting/v3.5/userprofiles/{profileId}/campaigns", + // "path": "userprofiles/{profileId}/campaigns", // "request": { // "$ref": "Campaign" // }, @@ -22864,7 +22864,7 @@ func (c *ChangeLogsGetCall) 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, "dfareporting/v3.5/userprofiles/{profileId}/changeLogs/{id}") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/changeLogs/{id}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -22917,7 +22917,7 @@ func (c *ChangeLogsGetCall) Do(opts ...googleapi.CallOption) (*ChangeLog, error) return ret, nil // { // "description": "Gets one change log by ID.", - // "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/changeLogs/{id}", + // "flatPath": "userprofiles/{profileId}/changeLogs/{id}", // "httpMethod": "GET", // "id": "dfareporting.changeLogs.get", // "parameterOrder": [ @@ -22940,7 +22940,7 @@ func (c *ChangeLogsGetCall) Do(opts ...googleapi.CallOption) (*ChangeLog, error) // "type": "string" // } // }, - // "path": "dfareporting/v3.5/userprofiles/{profileId}/changeLogs/{id}", + // "path": "userprofiles/{profileId}/changeLogs/{id}", // "response": { // "$ref": "ChangeLog" // }, @@ -23178,7 +23178,7 @@ func (c *ChangeLogsListCall) 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, "dfareporting/v3.5/userprofiles/{profileId}/changeLogs") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/changeLogs") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -23230,7 +23230,7 @@ func (c *ChangeLogsListCall) Do(opts ...googleapi.CallOption) (*ChangeLogsListRe return ret, nil // { // "description": "Retrieves a list of change logs. This method supports paging.", - // "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/changeLogs", + // "flatPath": "userprofiles/{profileId}/changeLogs", // "httpMethod": "GET", // "id": "dfareporting.changeLogs.list", // "parameterOrder": [ @@ -23429,7 +23429,7 @@ func (c *ChangeLogsListCall) Do(opts ...googleapi.CallOption) (*ChangeLogsListRe // "type": "string" // } // }, - // "path": "dfareporting/v3.5/userprofiles/{profileId}/changeLogs", + // "path": "userprofiles/{profileId}/changeLogs", // "response": { // "$ref": "ChangeLogsListResponse" // }, @@ -23569,7 +23569,7 @@ func (c *CitiesListCall) 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, "dfareporting/v3.5/userprofiles/{profileId}/cities") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/cities") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -23621,7 +23621,7 @@ func (c *CitiesListCall) Do(opts ...googleapi.CallOption) (*CitiesListResponse, return ret, nil // { // "description": "Retrieves a list of cities, possibly filtered.", - // "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/cities", + // "flatPath": "userprofiles/{profileId}/cities", // "httpMethod": "GET", // "id": "dfareporting.cities.list", // "parameterOrder": [ @@ -23662,7 +23662,7 @@ func (c *CitiesListCall) Do(opts ...googleapi.CallOption) (*CitiesListResponse, // "type": "string" // } // }, - // "path": "dfareporting/v3.5/userprofiles/{profileId}/cities", + // "path": "userprofiles/{profileId}/cities", // "response": { // "$ref": "CitiesListResponse" // }, @@ -23744,7 +23744,7 @@ func (c *ConnectionTypesGetCall) 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, "dfareporting/v3.5/userprofiles/{profileId}/connectionTypes/{id}") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/connectionTypes/{id}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -23797,7 +23797,7 @@ func (c *ConnectionTypesGetCall) Do(opts ...googleapi.CallOption) (*ConnectionTy return ret, nil // { // "description": "Gets one connection type by ID.", - // "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/connectionTypes/{id}", + // "flatPath": "userprofiles/{profileId}/connectionTypes/{id}", // "httpMethod": "GET", // "id": "dfareporting.connectionTypes.get", // "parameterOrder": [ @@ -23820,7 +23820,7 @@ func (c *ConnectionTypesGetCall) Do(opts ...googleapi.CallOption) (*ConnectionTy // "type": "string" // } // }, - // "path": "dfareporting/v3.5/userprofiles/{profileId}/connectionTypes/{id}", + // "path": "userprofiles/{profileId}/connectionTypes/{id}", // "response": { // "$ref": "ConnectionType" // }, @@ -23899,7 +23899,7 @@ func (c *ConnectionTypesListCall) 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, "dfareporting/v3.5/userprofiles/{profileId}/connectionTypes") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/connectionTypes") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -23951,7 +23951,7 @@ func (c *ConnectionTypesListCall) Do(opts ...googleapi.CallOption) (*ConnectionT return ret, nil // { // "description": "Retrieves a list of connection types.", - // "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/connectionTypes", + // "flatPath": "userprofiles/{profileId}/connectionTypes", // "httpMethod": "GET", // "id": "dfareporting.connectionTypes.list", // "parameterOrder": [ @@ -23966,7 +23966,7 @@ func (c *ConnectionTypesListCall) Do(opts ...googleapi.CallOption) (*ConnectionT // "type": "string" // } // }, - // "path": "dfareporting/v3.5/userprofiles/{profileId}/connectionTypes", + // "path": "userprofiles/{profileId}/connectionTypes", // "response": { // "$ref": "ConnectionTypesListResponse" // }, @@ -24034,7 +24034,7 @@ func (c *ContentCategoriesDeleteCall) doRequest(alt string) (*http.Response, err var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v3.5/userprofiles/{profileId}/contentCategories/{id}") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/contentCategories/{id}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("DELETE", urls, body) if err != nil { @@ -24062,7 +24062,7 @@ func (c *ContentCategoriesDeleteCall) Do(opts ...googleapi.CallOption) error { return nil // { // "description": "Deletes an existing content category.", - // "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/contentCategories/{id}", + // "flatPath": "userprofiles/{profileId}/contentCategories/{id}", // "httpMethod": "DELETE", // "id": "dfareporting.contentCategories.delete", // "parameterOrder": [ @@ -24085,7 +24085,7 @@ func (c *ContentCategoriesDeleteCall) Do(opts ...googleapi.CallOption) error { // "type": "string" // } // }, - // "path": "dfareporting/v3.5/userprofiles/{profileId}/contentCategories/{id}", + // "path": "userprofiles/{profileId}/contentCategories/{id}", // "scopes": [ // "https://www.googleapis.com/auth/dfatrafficking" // ] @@ -24164,7 +24164,7 @@ func (c *ContentCategoriesGetCall) 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, "dfareporting/v3.5/userprofiles/{profileId}/contentCategories/{id}") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/contentCategories/{id}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -24217,7 +24217,7 @@ func (c *ContentCategoriesGetCall) Do(opts ...googleapi.CallOption) (*ContentCat return ret, nil // { // "description": "Gets one content category by ID.", - // "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/contentCategories/{id}", + // "flatPath": "userprofiles/{profileId}/contentCategories/{id}", // "httpMethod": "GET", // "id": "dfareporting.contentCategories.get", // "parameterOrder": [ @@ -24240,7 +24240,7 @@ func (c *ContentCategoriesGetCall) Do(opts ...googleapi.CallOption) (*ContentCat // "type": "string" // } // }, - // "path": "dfareporting/v3.5/userprofiles/{profileId}/contentCategories/{id}", + // "path": "userprofiles/{profileId}/contentCategories/{id}", // "response": { // "$ref": "ContentCategory" // }, @@ -24312,7 +24312,7 @@ func (c *ContentCategoriesInsertCall) doRequest(alt string) (*http.Response, err reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v3.5/userprofiles/{profileId}/contentCategories") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/contentCategories") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -24364,7 +24364,7 @@ func (c *ContentCategoriesInsertCall) Do(opts ...googleapi.CallOption) (*Content return ret, nil // { // "description": "Inserts a new content category.", - // "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/contentCategories", + // "flatPath": "userprofiles/{profileId}/contentCategories", // "httpMethod": "POST", // "id": "dfareporting.contentCategories.insert", // "parameterOrder": [ @@ -24379,7 +24379,7 @@ func (c *ContentCategoriesInsertCall) Do(opts ...googleapi.CallOption) (*Content // "type": "string" // } // }, - // "path": "dfareporting/v3.5/userprofiles/{profileId}/contentCategories", + // "path": "userprofiles/{profileId}/contentCategories", // "request": { // "$ref": "ContentCategory" // }, @@ -24525,7 +24525,7 @@ func (c *ContentCategoriesListCall) 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, "dfareporting/v3.5/userprofiles/{profileId}/contentCategories") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/contentCategories") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -24577,7 +24577,7 @@ func (c *ContentCategoriesListCall) Do(opts ...googleapi.CallOption) (*ContentCa return ret, nil // { // "description": "Retrieves a list of content categories, possibly filtered. This method supports paging.", - // "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/contentCategories", + // "flatPath": "userprofiles/{profileId}/contentCategories", // "httpMethod": "GET", // "id": "dfareporting.contentCategories.list", // "parameterOrder": [ @@ -24646,7 +24646,7 @@ func (c *ContentCategoriesListCall) Do(opts ...googleapi.CallOption) (*ContentCa // "type": "string" // } // }, - // "path": "dfareporting/v3.5/userprofiles/{profileId}/contentCategories", + // "path": "userprofiles/{profileId}/contentCategories", // "response": { // "$ref": "ContentCategoriesListResponse" // }, @@ -24742,7 +24742,7 @@ func (c *ContentCategoriesPatchCall) doRequest(alt string) (*http.Response, erro reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v3.5/userprofiles/{profileId}/contentCategories") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/contentCategories") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("PATCH", urls, body) if err != nil { @@ -24794,7 +24794,7 @@ func (c *ContentCategoriesPatchCall) Do(opts ...googleapi.CallOption) (*ContentC return ret, nil // { // "description": "Updates an existing content category. This method supports patch semantics.", - // "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/contentCategories", + // "flatPath": "userprofiles/{profileId}/contentCategories", // "httpMethod": "PATCH", // "id": "dfareporting.contentCategories.patch", // "parameterOrder": [ @@ -24817,7 +24817,7 @@ func (c *ContentCategoriesPatchCall) Do(opts ...googleapi.CallOption) (*ContentC // "type": "string" // } // }, - // "path": "dfareporting/v3.5/userprofiles/{profileId}/contentCategories", + // "path": "userprofiles/{profileId}/contentCategories", // "request": { // "$ref": "ContentCategory" // }, @@ -24892,7 +24892,7 @@ func (c *ContentCategoriesUpdateCall) doRequest(alt string) (*http.Response, err reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v3.5/userprofiles/{profileId}/contentCategories") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/contentCategories") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("PUT", urls, body) if err != nil { @@ -24944,7 +24944,7 @@ func (c *ContentCategoriesUpdateCall) Do(opts ...googleapi.CallOption) (*Content return ret, nil // { // "description": "Updates an existing content category.", - // "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/contentCategories", + // "flatPath": "userprofiles/{profileId}/contentCategories", // "httpMethod": "PUT", // "id": "dfareporting.contentCategories.update", // "parameterOrder": [ @@ -24959,7 +24959,7 @@ func (c *ContentCategoriesUpdateCall) Do(opts ...googleapi.CallOption) (*Content // "type": "string" // } // }, - // "path": "dfareporting/v3.5/userprofiles/{profileId}/contentCategories", + // "path": "userprofiles/{profileId}/contentCategories", // "request": { // "$ref": "ContentCategory" // }, @@ -25034,7 +25034,7 @@ func (c *ConversionsBatchinsertCall) doRequest(alt string) (*http.Response, erro reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v3.5/userprofiles/{profileId}/conversions/batchinsert") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/conversions/batchinsert") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -25086,7 +25086,7 @@ func (c *ConversionsBatchinsertCall) Do(opts ...googleapi.CallOption) (*Conversi return ret, nil // { // "description": "Inserts conversions.", - // "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/conversions/batchinsert", + // "flatPath": "userprofiles/{profileId}/conversions/batchinsert", // "httpMethod": "POST", // "id": "dfareporting.conversions.batchinsert", // "parameterOrder": [ @@ -25101,7 +25101,7 @@ func (c *ConversionsBatchinsertCall) Do(opts ...googleapi.CallOption) (*Conversi // "type": "string" // } // }, - // "path": "dfareporting/v3.5/userprofiles/{profileId}/conversions/batchinsert", + // "path": "userprofiles/{profileId}/conversions/batchinsert", // "request": { // "$ref": "ConversionsBatchInsertRequest" // }, @@ -25176,7 +25176,7 @@ func (c *ConversionsBatchupdateCall) doRequest(alt string) (*http.Response, erro reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v3.5/userprofiles/{profileId}/conversions/batchupdate") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/conversions/batchupdate") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -25228,7 +25228,7 @@ func (c *ConversionsBatchupdateCall) Do(opts ...googleapi.CallOption) (*Conversi return ret, nil // { // "description": "Updates existing conversions.", - // "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/conversions/batchupdate", + // "flatPath": "userprofiles/{profileId}/conversions/batchupdate", // "httpMethod": "POST", // "id": "dfareporting.conversions.batchupdate", // "parameterOrder": [ @@ -25243,7 +25243,7 @@ func (c *ConversionsBatchupdateCall) Do(opts ...googleapi.CallOption) (*Conversi // "type": "string" // } // }, - // "path": "dfareporting/v3.5/userprofiles/{profileId}/conversions/batchupdate", + // "path": "userprofiles/{profileId}/conversions/batchupdate", // "request": { // "$ref": "ConversionsBatchUpdateRequest" // }, @@ -25328,7 +25328,7 @@ func (c *CountriesGetCall) 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, "dfareporting/v3.5/userprofiles/{profileId}/countries/{dartId}") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/countries/{dartId}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -25381,7 +25381,7 @@ func (c *CountriesGetCall) Do(opts ...googleapi.CallOption) (*Country, error) { return ret, nil // { // "description": "Gets one country by ID.", - // "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/countries/{dartId}", + // "flatPath": "userprofiles/{profileId}/countries/{dartId}", // "httpMethod": "GET", // "id": "dfareporting.countries.get", // "parameterOrder": [ @@ -25404,7 +25404,7 @@ func (c *CountriesGetCall) Do(opts ...googleapi.CallOption) (*Country, error) { // "type": "string" // } // }, - // "path": "dfareporting/v3.5/userprofiles/{profileId}/countries/{dartId}", + // "path": "userprofiles/{profileId}/countries/{dartId}", // "response": { // "$ref": "Country" // }, @@ -25483,7 +25483,7 @@ func (c *CountriesListCall) 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, "dfareporting/v3.5/userprofiles/{profileId}/countries") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/countries") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -25535,7 +25535,7 @@ func (c *CountriesListCall) Do(opts ...googleapi.CallOption) (*CountriesListResp return ret, nil // { // "description": "Retrieves a list of countries.", - // "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/countries", + // "flatPath": "userprofiles/{profileId}/countries", // "httpMethod": "GET", // "id": "dfareporting.countries.list", // "parameterOrder": [ @@ -25550,7 +25550,7 @@ func (c *CountriesListCall) Do(opts ...googleapi.CallOption) (*CountriesListResp // "type": "string" // } // }, - // "path": "dfareporting/v3.5/userprofiles/{profileId}/countries", + // "path": "userprofiles/{profileId}/countries", // "response": { // "$ref": "CountriesListResponse" // }, @@ -25666,7 +25666,7 @@ func (c *CreativeAssetsInsertCall) doRequest(alt string) (*http.Response, error) reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v3.5/userprofiles/{profileId}/creativeAssets/{advertiserId}/creativeAssets") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/creativeAssets/{advertiserId}/creativeAssets") if c.mediaInfo_ != nil { urls = googleapi.ResolveRelative(c.s.BasePath, "/upload/dfareporting/v3.5/userprofiles/{profileId}/creativeAssets/{advertiserId}/creativeAssets") c.urlParams_.Set("uploadType", c.mediaInfo_.UploadType()) @@ -25747,7 +25747,7 @@ func (c *CreativeAssetsInsertCall) Do(opts ...googleapi.CallOption) (*CreativeAs return ret, nil // { // "description": "Inserts a new creative asset.", - // "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/creativeAssets/{advertiserId}/creativeAssets", + // "flatPath": "userprofiles/{profileId}/creativeAssets/{advertiserId}/creativeAssets", // "httpMethod": "POST", // "id": "dfareporting.creativeAssets.insert", // "mediaUpload": { @@ -25782,7 +25782,7 @@ func (c *CreativeAssetsInsertCall) Do(opts ...googleapi.CallOption) (*CreativeAs // "type": "string" // } // }, - // "path": "dfareporting/v3.5/userprofiles/{profileId}/creativeAssets/{advertiserId}/creativeAssets", + // "path": "userprofiles/{profileId}/creativeAssets/{advertiserId}/creativeAssets", // "request": { // "$ref": "CreativeAssetMetadata" // }, @@ -25857,7 +25857,7 @@ func (c *CreativeFieldValuesDeleteCall) doRequest(alt string) (*http.Response, e var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v3.5/userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues/{id}") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues/{id}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("DELETE", urls, body) if err != nil { @@ -25886,7 +25886,7 @@ func (c *CreativeFieldValuesDeleteCall) Do(opts ...googleapi.CallOption) error { return nil // { // "description": "Deletes an existing creative field value.", - // "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues/{id}", + // "flatPath": "userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues/{id}", // "httpMethod": "DELETE", // "id": "dfareporting.creativeFieldValues.delete", // "parameterOrder": [ @@ -25917,7 +25917,7 @@ func (c *CreativeFieldValuesDeleteCall) Do(opts ...googleapi.CallOption) error { // "type": "string" // } // }, - // "path": "dfareporting/v3.5/userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues/{id}", + // "path": "userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues/{id}", // "scopes": [ // "https://www.googleapis.com/auth/dfatrafficking" // ] @@ -25999,7 +25999,7 @@ func (c *CreativeFieldValuesGetCall) doRequest(alt string) (*http.Response, erro var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v3.5/userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues/{id}") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues/{id}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -26053,7 +26053,7 @@ func (c *CreativeFieldValuesGetCall) Do(opts ...googleapi.CallOption) (*Creative return ret, nil // { // "description": "Gets one creative field value by ID.", - // "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues/{id}", + // "flatPath": "userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues/{id}", // "httpMethod": "GET", // "id": "dfareporting.creativeFieldValues.get", // "parameterOrder": [ @@ -26084,7 +26084,7 @@ func (c *CreativeFieldValuesGetCall) Do(opts ...googleapi.CallOption) (*Creative // "type": "string" // } // }, - // "path": "dfareporting/v3.5/userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues/{id}", + // "path": "userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues/{id}", // "response": { // "$ref": "CreativeFieldValue" // }, @@ -26159,7 +26159,7 @@ func (c *CreativeFieldValuesInsertCall) doRequest(alt string) (*http.Response, e reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v3.5/userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -26212,7 +26212,7 @@ func (c *CreativeFieldValuesInsertCall) Do(opts ...googleapi.CallOption) (*Creat return ret, nil // { // "description": "Inserts a new creative field value.", - // "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues", + // "flatPath": "userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues", // "httpMethod": "POST", // "id": "dfareporting.creativeFieldValues.insert", // "parameterOrder": [ @@ -26235,7 +26235,7 @@ func (c *CreativeFieldValuesInsertCall) Do(opts ...googleapi.CallOption) (*Creat // "type": "string" // } // }, - // "path": "dfareporting/v3.5/userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues", + // "path": "userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues", // "request": { // "$ref": "CreativeFieldValue" // }, @@ -26378,7 +26378,7 @@ func (c *CreativeFieldValuesListCall) doRequest(alt string) (*http.Response, err var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v3.5/userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -26431,7 +26431,7 @@ func (c *CreativeFieldValuesListCall) Do(opts ...googleapi.CallOption) (*Creativ return ret, nil // { // "description": "Retrieves a list of creative field values, possibly filtered. This method supports paging.", - // "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues", + // "flatPath": "userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues", // "httpMethod": "GET", // "id": "dfareporting.creativeFieldValues.list", // "parameterOrder": [ @@ -26508,7 +26508,7 @@ func (c *CreativeFieldValuesListCall) Do(opts ...googleapi.CallOption) (*Creativ // "type": "string" // } // }, - // "path": "dfareporting/v3.5/userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues", + // "path": "userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues", // "response": { // "$ref": "CreativeFieldValuesListResponse" // }, @@ -26607,7 +26607,7 @@ func (c *CreativeFieldValuesPatchCall) doRequest(alt string) (*http.Response, er reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v3.5/userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("PATCH", urls, body) if err != nil { @@ -26660,7 +26660,7 @@ func (c *CreativeFieldValuesPatchCall) Do(opts ...googleapi.CallOption) (*Creati return ret, nil // { // "description": "Updates an existing creative field value. This method supports patch semantics.", - // "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues", + // "flatPath": "userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues", // "httpMethod": "PATCH", // "id": "dfareporting.creativeFieldValues.patch", // "parameterOrder": [ @@ -26691,7 +26691,7 @@ func (c *CreativeFieldValuesPatchCall) Do(opts ...googleapi.CallOption) (*Creati // "type": "string" // } // }, - // "path": "dfareporting/v3.5/userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues", + // "path": "userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues", // "request": { // "$ref": "CreativeFieldValue" // }, @@ -26769,7 +26769,7 @@ func (c *CreativeFieldValuesUpdateCall) doRequest(alt string) (*http.Response, e reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v3.5/userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("PUT", urls, body) if err != nil { @@ -26822,7 +26822,7 @@ func (c *CreativeFieldValuesUpdateCall) Do(opts ...googleapi.CallOption) (*Creat return ret, nil // { // "description": "Updates an existing creative field value.", - // "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues", + // "flatPath": "userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues", // "httpMethod": "PUT", // "id": "dfareporting.creativeFieldValues.update", // "parameterOrder": [ @@ -26845,7 +26845,7 @@ func (c *CreativeFieldValuesUpdateCall) Do(opts ...googleapi.CallOption) (*Creat // "type": "string" // } // }, - // "path": "dfareporting/v3.5/userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues", + // "path": "userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues", // "request": { // "$ref": "CreativeFieldValue" // }, @@ -26916,7 +26916,7 @@ func (c *CreativeFieldsDeleteCall) 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, "dfareporting/v3.5/userprofiles/{profileId}/creativeFields/{id}") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/creativeFields/{id}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("DELETE", urls, body) if err != nil { @@ -26944,7 +26944,7 @@ func (c *CreativeFieldsDeleteCall) Do(opts ...googleapi.CallOption) error { return nil // { // "description": "Deletes an existing creative field.", - // "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/creativeFields/{id}", + // "flatPath": "userprofiles/{profileId}/creativeFields/{id}", // "httpMethod": "DELETE", // "id": "dfareporting.creativeFields.delete", // "parameterOrder": [ @@ -26967,7 +26967,7 @@ func (c *CreativeFieldsDeleteCall) Do(opts ...googleapi.CallOption) error { // "type": "string" // } // }, - // "path": "dfareporting/v3.5/userprofiles/{profileId}/creativeFields/{id}", + // "path": "userprofiles/{profileId}/creativeFields/{id}", // "scopes": [ // "https://www.googleapis.com/auth/dfatrafficking" // ] @@ -27046,7 +27046,7 @@ func (c *CreativeFieldsGetCall) 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, "dfareporting/v3.5/userprofiles/{profileId}/creativeFields/{id}") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/creativeFields/{id}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -27099,7 +27099,7 @@ func (c *CreativeFieldsGetCall) Do(opts ...googleapi.CallOption) (*CreativeField return ret, nil // { // "description": "Gets one creative field by ID.", - // "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/creativeFields/{id}", + // "flatPath": "userprofiles/{profileId}/creativeFields/{id}", // "httpMethod": "GET", // "id": "dfareporting.creativeFields.get", // "parameterOrder": [ @@ -27122,7 +27122,7 @@ func (c *CreativeFieldsGetCall) Do(opts ...googleapi.CallOption) (*CreativeField // "type": "string" // } // }, - // "path": "dfareporting/v3.5/userprofiles/{profileId}/creativeFields/{id}", + // "path": "userprofiles/{profileId}/creativeFields/{id}", // "response": { // "$ref": "CreativeField" // }, @@ -27194,7 +27194,7 @@ func (c *CreativeFieldsInsertCall) doRequest(alt string) (*http.Response, error) reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v3.5/userprofiles/{profileId}/creativeFields") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/creativeFields") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -27246,7 +27246,7 @@ func (c *CreativeFieldsInsertCall) Do(opts ...googleapi.CallOption) (*CreativeFi return ret, nil // { // "description": "Inserts a new creative field.", - // "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/creativeFields", + // "flatPath": "userprofiles/{profileId}/creativeFields", // "httpMethod": "POST", // "id": "dfareporting.creativeFields.insert", // "parameterOrder": [ @@ -27261,7 +27261,7 @@ func (c *CreativeFieldsInsertCall) Do(opts ...googleapi.CallOption) (*CreativeFi // "type": "string" // } // }, - // "path": "dfareporting/v3.5/userprofiles/{profileId}/creativeFields", + // "path": "userprofiles/{profileId}/creativeFields", // "request": { // "$ref": "CreativeField" // }, @@ -27418,7 +27418,7 @@ func (c *CreativeFieldsListCall) 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, "dfareporting/v3.5/userprofiles/{profileId}/creativeFields") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/creativeFields") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -27470,7 +27470,7 @@ func (c *CreativeFieldsListCall) Do(opts ...googleapi.CallOption) (*CreativeFiel return ret, nil // { // "description": "Retrieves a list of creative fields, possibly filtered. This method supports paging.", - // "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/creativeFields", + // "flatPath": "userprofiles/{profileId}/creativeFields", // "httpMethod": "GET", // "id": "dfareporting.creativeFields.list", // "parameterOrder": [ @@ -27546,7 +27546,7 @@ func (c *CreativeFieldsListCall) Do(opts ...googleapi.CallOption) (*CreativeFiel // "type": "string" // } // }, - // "path": "dfareporting/v3.5/userprofiles/{profileId}/creativeFields", + // "path": "userprofiles/{profileId}/creativeFields", // "response": { // "$ref": "CreativeFieldsListResponse" // }, @@ -27642,7 +27642,7 @@ func (c *CreativeFieldsPatchCall) doRequest(alt string) (*http.Response, error) reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v3.5/userprofiles/{profileId}/creativeFields") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/creativeFields") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("PATCH", urls, body) if err != nil { @@ -27694,7 +27694,7 @@ func (c *CreativeFieldsPatchCall) Do(opts ...googleapi.CallOption) (*CreativeFie return ret, nil // { // "description": "Updates an existing creative field. This method supports patch semantics.", - // "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/creativeFields", + // "flatPath": "userprofiles/{profileId}/creativeFields", // "httpMethod": "PATCH", // "id": "dfareporting.creativeFields.patch", // "parameterOrder": [ @@ -27717,7 +27717,7 @@ func (c *CreativeFieldsPatchCall) Do(opts ...googleapi.CallOption) (*CreativeFie // "type": "string" // } // }, - // "path": "dfareporting/v3.5/userprofiles/{profileId}/creativeFields", + // "path": "userprofiles/{profileId}/creativeFields", // "request": { // "$ref": "CreativeField" // }, @@ -27792,7 +27792,7 @@ func (c *CreativeFieldsUpdateCall) doRequest(alt string) (*http.Response, error) reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v3.5/userprofiles/{profileId}/creativeFields") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/creativeFields") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("PUT", urls, body) if err != nil { @@ -27844,7 +27844,7 @@ func (c *CreativeFieldsUpdateCall) Do(opts ...googleapi.CallOption) (*CreativeFi return ret, nil // { // "description": "Updates an existing creative field.", - // "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/creativeFields", + // "flatPath": "userprofiles/{profileId}/creativeFields", // "httpMethod": "PUT", // "id": "dfareporting.creativeFields.update", // "parameterOrder": [ @@ -27859,7 +27859,7 @@ func (c *CreativeFieldsUpdateCall) Do(opts ...googleapi.CallOption) (*CreativeFi // "type": "string" // } // }, - // "path": "dfareporting/v3.5/userprofiles/{profileId}/creativeFields", + // "path": "userprofiles/{profileId}/creativeFields", // "request": { // "$ref": "CreativeField" // }, @@ -27944,7 +27944,7 @@ func (c *CreativeGroupsGetCall) 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, "dfareporting/v3.5/userprofiles/{profileId}/creativeGroups/{id}") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/creativeGroups/{id}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -27997,7 +27997,7 @@ func (c *CreativeGroupsGetCall) Do(opts ...googleapi.CallOption) (*CreativeGroup return ret, nil // { // "description": "Gets one creative group by ID.", - // "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/creativeGroups/{id}", + // "flatPath": "userprofiles/{profileId}/creativeGroups/{id}", // "httpMethod": "GET", // "id": "dfareporting.creativeGroups.get", // "parameterOrder": [ @@ -28020,7 +28020,7 @@ func (c *CreativeGroupsGetCall) Do(opts ...googleapi.CallOption) (*CreativeGroup // "type": "string" // } // }, - // "path": "dfareporting/v3.5/userprofiles/{profileId}/creativeGroups/{id}", + // "path": "userprofiles/{profileId}/creativeGroups/{id}", // "response": { // "$ref": "CreativeGroup" // }, @@ -28092,7 +28092,7 @@ func (c *CreativeGroupsInsertCall) doRequest(alt string) (*http.Response, error) reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v3.5/userprofiles/{profileId}/creativeGroups") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/creativeGroups") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -28144,7 +28144,7 @@ func (c *CreativeGroupsInsertCall) Do(opts ...googleapi.CallOption) (*CreativeGr return ret, nil // { // "description": "Inserts a new creative group.", - // "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/creativeGroups", + // "flatPath": "userprofiles/{profileId}/creativeGroups", // "httpMethod": "POST", // "id": "dfareporting.creativeGroups.insert", // "parameterOrder": [ @@ -28159,7 +28159,7 @@ func (c *CreativeGroupsInsertCall) Do(opts ...googleapi.CallOption) (*CreativeGr // "type": "string" // } // }, - // "path": "dfareporting/v3.5/userprofiles/{profileId}/creativeGroups", + // "path": "userprofiles/{profileId}/creativeGroups", // "request": { // "$ref": "CreativeGroup" // }, @@ -28323,7 +28323,7 @@ func (c *CreativeGroupsListCall) 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, "dfareporting/v3.5/userprofiles/{profileId}/creativeGroups") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/creativeGroups") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -28375,7 +28375,7 @@ func (c *CreativeGroupsListCall) Do(opts ...googleapi.CallOption) (*CreativeGrou return ret, nil // { // "description": "Retrieves a list of creative groups, possibly filtered. This method supports paging.", - // "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/creativeGroups", + // "flatPath": "userprofiles/{profileId}/creativeGroups", // "httpMethod": "GET", // "id": "dfareporting.creativeGroups.list", // "parameterOrder": [ @@ -28459,7 +28459,7 @@ func (c *CreativeGroupsListCall) Do(opts ...googleapi.CallOption) (*CreativeGrou // "type": "string" // } // }, - // "path": "dfareporting/v3.5/userprofiles/{profileId}/creativeGroups", + // "path": "userprofiles/{profileId}/creativeGroups", // "response": { // "$ref": "CreativeGroupsListResponse" // }, @@ -28555,7 +28555,7 @@ func (c *CreativeGroupsPatchCall) doRequest(alt string) (*http.Response, error) reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v3.5/userprofiles/{profileId}/creativeGroups") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/creativeGroups") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("PATCH", urls, body) if err != nil { @@ -28607,7 +28607,7 @@ func (c *CreativeGroupsPatchCall) Do(opts ...googleapi.CallOption) (*CreativeGro return ret, nil // { // "description": "Updates an existing creative group. This method supports patch semantics.", - // "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/creativeGroups", + // "flatPath": "userprofiles/{profileId}/creativeGroups", // "httpMethod": "PATCH", // "id": "dfareporting.creativeGroups.patch", // "parameterOrder": [ @@ -28630,7 +28630,7 @@ func (c *CreativeGroupsPatchCall) Do(opts ...googleapi.CallOption) (*CreativeGro // "type": "string" // } // }, - // "path": "dfareporting/v3.5/userprofiles/{profileId}/creativeGroups", + // "path": "userprofiles/{profileId}/creativeGroups", // "request": { // "$ref": "CreativeGroup" // }, @@ -28705,7 +28705,7 @@ func (c *CreativeGroupsUpdateCall) doRequest(alt string) (*http.Response, error) reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v3.5/userprofiles/{profileId}/creativeGroups") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/creativeGroups") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("PUT", urls, body) if err != nil { @@ -28757,7 +28757,7 @@ func (c *CreativeGroupsUpdateCall) Do(opts ...googleapi.CallOption) (*CreativeGr return ret, nil // { // "description": "Updates an existing creative group.", - // "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/creativeGroups", + // "flatPath": "userprofiles/{profileId}/creativeGroups", // "httpMethod": "PUT", // "id": "dfareporting.creativeGroups.update", // "parameterOrder": [ @@ -28772,7 +28772,7 @@ func (c *CreativeGroupsUpdateCall) Do(opts ...googleapi.CallOption) (*CreativeGr // "type": "string" // } // }, - // "path": "dfareporting/v3.5/userprofiles/{profileId}/creativeGroups", + // "path": "userprofiles/{profileId}/creativeGroups", // "request": { // "$ref": "CreativeGroup" // }, @@ -28857,7 +28857,7 @@ func (c *CreativesGetCall) 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, "dfareporting/v3.5/userprofiles/{profileId}/creatives/{id}") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/creatives/{id}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -28910,7 +28910,7 @@ func (c *CreativesGetCall) Do(opts ...googleapi.CallOption) (*Creative, error) { return ret, nil // { // "description": "Gets one creative by ID.", - // "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/creatives/{id}", + // "flatPath": "userprofiles/{profileId}/creatives/{id}", // "httpMethod": "GET", // "id": "dfareporting.creatives.get", // "parameterOrder": [ @@ -28933,7 +28933,7 @@ func (c *CreativesGetCall) Do(opts ...googleapi.CallOption) (*Creative, error) { // "type": "string" // } // }, - // "path": "dfareporting/v3.5/userprofiles/{profileId}/creatives/{id}", + // "path": "userprofiles/{profileId}/creatives/{id}", // "response": { // "$ref": "Creative" // }, @@ -29005,7 +29005,7 @@ func (c *CreativesInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v3.5/userprofiles/{profileId}/creatives") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/creatives") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -29057,7 +29057,7 @@ func (c *CreativesInsertCall) Do(opts ...googleapi.CallOption) (*Creative, error return ret, nil // { // "description": "Inserts a new creative.", - // "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/creatives", + // "flatPath": "userprofiles/{profileId}/creatives", // "httpMethod": "POST", // "id": "dfareporting.creatives.insert", // "parameterOrder": [ @@ -29072,7 +29072,7 @@ func (c *CreativesInsertCall) Do(opts ...googleapi.CallOption) (*Creative, error // "type": "string" // } // }, - // "path": "dfareporting/v3.5/userprofiles/{profileId}/creatives", + // "path": "userprofiles/{profileId}/creatives", // "request": { // "$ref": "Creative" // }, @@ -29332,7 +29332,7 @@ func (c *CreativesListCall) 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, "dfareporting/v3.5/userprofiles/{profileId}/creatives") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/creatives") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -29384,7 +29384,7 @@ func (c *CreativesListCall) Do(opts ...googleapi.CallOption) (*CreativesListResp return ret, nil // { // "description": "Retrieves a list of creatives, possibly filtered. This method supports paging.", - // "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/creatives", + // "flatPath": "userprofiles/{profileId}/creatives", // "httpMethod": "GET", // "id": "dfareporting.creatives.list", // "parameterOrder": [ @@ -29569,7 +29569,7 @@ func (c *CreativesListCall) Do(opts ...googleapi.CallOption) (*CreativesListResp // "type": "string" // } // }, - // "path": "dfareporting/v3.5/userprofiles/{profileId}/creatives", + // "path": "userprofiles/{profileId}/creatives", // "response": { // "$ref": "CreativesListResponse" // }, @@ -29665,7 +29665,7 @@ func (c *CreativesPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v3.5/userprofiles/{profileId}/creatives") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/creatives") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("PATCH", urls, body) if err != nil { @@ -29717,7 +29717,7 @@ func (c *CreativesPatchCall) Do(opts ...googleapi.CallOption) (*Creative, error) return ret, nil // { // "description": "Updates an existing creative. This method supports patch semantics.", - // "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/creatives", + // "flatPath": "userprofiles/{profileId}/creatives", // "httpMethod": "PATCH", // "id": "dfareporting.creatives.patch", // "parameterOrder": [ @@ -29740,7 +29740,7 @@ func (c *CreativesPatchCall) Do(opts ...googleapi.CallOption) (*Creative, error) // "type": "string" // } // }, - // "path": "dfareporting/v3.5/userprofiles/{profileId}/creatives", + // "path": "userprofiles/{profileId}/creatives", // "request": { // "$ref": "Creative" // }, @@ -29815,7 +29815,7 @@ func (c *CreativesUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v3.5/userprofiles/{profileId}/creatives") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/creatives") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("PUT", urls, body) if err != nil { @@ -29867,7 +29867,7 @@ func (c *CreativesUpdateCall) Do(opts ...googleapi.CallOption) (*Creative, error return ret, nil // { // "description": "Updates an existing creative.", - // "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/creatives", + // "flatPath": "userprofiles/{profileId}/creatives", // "httpMethod": "PUT", // "id": "dfareporting.creatives.update", // "parameterOrder": [ @@ -29882,7 +29882,7 @@ func (c *CreativesUpdateCall) Do(opts ...googleapi.CallOption) (*Creative, error // "type": "string" // } // }, - // "path": "dfareporting/v3.5/userprofiles/{profileId}/creatives", + // "path": "userprofiles/{profileId}/creatives", // "request": { // "$ref": "Creative" // }, @@ -29972,7 +29972,7 @@ func (c *DimensionValuesQueryCall) doRequest(alt string) (*http.Response, error) reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v3.5/userprofiles/{profileId}/dimensionvalues/query") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/dimensionvalues/query") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -30024,7 +30024,7 @@ func (c *DimensionValuesQueryCall) Do(opts ...googleapi.CallOption) (*DimensionV return ret, nil // { // "description": "Retrieves list of report dimension values for a list of filters.", - // "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/dimensionvalues/query", + // "flatPath": "userprofiles/{profileId}/dimensionvalues/query", // "httpMethod": "POST", // "id": "dfareporting.dimensionValues.query", // "parameterOrder": [ @@ -30053,7 +30053,7 @@ func (c *DimensionValuesQueryCall) Do(opts ...googleapi.CallOption) (*DimensionV // "type": "string" // } // }, - // "path": "dfareporting/v3.5/userprofiles/{profileId}/dimensionvalues/query", + // "path": "userprofiles/{profileId}/dimensionvalues/query", // "request": { // "$ref": "DimensionValueRequest" // }, @@ -30159,7 +30159,7 @@ func (c *DirectorySitesGetCall) 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, "dfareporting/v3.5/userprofiles/{profileId}/directorySites/{id}") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/directorySites/{id}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -30212,7 +30212,7 @@ func (c *DirectorySitesGetCall) Do(opts ...googleapi.CallOption) (*DirectorySite return ret, nil // { // "description": "Gets one directory site by ID.", - // "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/directorySites/{id}", + // "flatPath": "userprofiles/{profileId}/directorySites/{id}", // "httpMethod": "GET", // "id": "dfareporting.directorySites.get", // "parameterOrder": [ @@ -30235,7 +30235,7 @@ func (c *DirectorySitesGetCall) Do(opts ...googleapi.CallOption) (*DirectorySite // "type": "string" // } // }, - // "path": "dfareporting/v3.5/userprofiles/{profileId}/directorySites/{id}", + // "path": "userprofiles/{profileId}/directorySites/{id}", // "response": { // "$ref": "DirectorySite" // }, @@ -30307,7 +30307,7 @@ func (c *DirectorySitesInsertCall) doRequest(alt string) (*http.Response, error) reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v3.5/userprofiles/{profileId}/directorySites") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/directorySites") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -30359,7 +30359,7 @@ func (c *DirectorySitesInsertCall) Do(opts ...googleapi.CallOption) (*DirectoryS return ret, nil // { // "description": "Inserts a new directory site.", - // "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/directorySites", + // "flatPath": "userprofiles/{profileId}/directorySites", // "httpMethod": "POST", // "id": "dfareporting.directorySites.insert", // "parameterOrder": [ @@ -30374,7 +30374,7 @@ func (c *DirectorySitesInsertCall) Do(opts ...googleapi.CallOption) (*DirectoryS // "type": "string" // } // }, - // "path": "dfareporting/v3.5/userprofiles/{profileId}/directorySites", + // "path": "userprofiles/{profileId}/directorySites", // "request": { // "$ref": "DirectorySite" // }, @@ -30559,7 +30559,7 @@ func (c *DirectorySitesListCall) 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, "dfareporting/v3.5/userprofiles/{profileId}/directorySites") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/directorySites") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -30611,7 +30611,7 @@ func (c *DirectorySitesListCall) Do(opts ...googleapi.CallOption) (*DirectorySit return ret, nil // { // "description": "Retrieves a list of directory sites, possibly filtered. This method supports paging.", - // "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/directorySites", + // "flatPath": "userprofiles/{profileId}/directorySites", // "httpMethod": "GET", // "id": "dfareporting.directorySites.list", // "parameterOrder": [ @@ -30705,7 +30705,7 @@ func (c *DirectorySitesListCall) Do(opts ...googleapi.CallOption) (*DirectorySit // "type": "string" // } // }, - // "path": "dfareporting/v3.5/userprofiles/{profileId}/directorySites", + // "path": "userprofiles/{profileId}/directorySites", // "response": { // "$ref": "DirectorySitesListResponse" // }, @@ -30802,7 +30802,7 @@ func (c *DynamicTargetingKeysDeleteCall) doRequest(alt string) (*http.Response, var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v3.5/userprofiles/{profileId}/dynamicTargetingKeys/{objectId}") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/dynamicTargetingKeys/{objectId}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("DELETE", urls, body) if err != nil { @@ -30830,7 +30830,7 @@ func (c *DynamicTargetingKeysDeleteCall) Do(opts ...googleapi.CallOption) error return nil // { // "description": "Deletes an existing dynamic targeting key.", - // "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/dynamicTargetingKeys/{objectId}", + // "flatPath": "userprofiles/{profileId}/dynamicTargetingKeys/{objectId}", // "httpMethod": "DELETE", // "id": "dfareporting.dynamicTargetingKeys.delete", // "parameterOrder": [ @@ -30879,7 +30879,7 @@ func (c *DynamicTargetingKeysDeleteCall) Do(opts ...googleapi.CallOption) error // "type": "string" // } // }, - // "path": "dfareporting/v3.5/userprofiles/{profileId}/dynamicTargetingKeys/{objectId}", + // "path": "userprofiles/{profileId}/dynamicTargetingKeys/{objectId}", // "scopes": [ // "https://www.googleapis.com/auth/dfatrafficking" // ] @@ -30952,7 +30952,7 @@ func (c *DynamicTargetingKeysInsertCall) doRequest(alt string) (*http.Response, reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v3.5/userprofiles/{profileId}/dynamicTargetingKeys") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/dynamicTargetingKeys") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -31004,7 +31004,7 @@ func (c *DynamicTargetingKeysInsertCall) Do(opts ...googleapi.CallOption) (*Dyna return ret, nil // { // "description": "Inserts a new dynamic targeting key. Keys must be created at the advertiser level before being assigned to the advertiser's ads, creatives, or placements. There is a maximum of 1000 keys per advertiser, out of which a maximum of 20 keys can be assigned per ad, creative, or placement.", - // "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/dynamicTargetingKeys", + // "flatPath": "userprofiles/{profileId}/dynamicTargetingKeys", // "httpMethod": "POST", // "id": "dfareporting.dynamicTargetingKeys.insert", // "parameterOrder": [ @@ -31019,7 +31019,7 @@ func (c *DynamicTargetingKeysInsertCall) Do(opts ...googleapi.CallOption) (*Dyna // "type": "string" // } // }, - // "path": "dfareporting/v3.5/userprofiles/{profileId}/dynamicTargetingKeys", + // "path": "userprofiles/{profileId}/dynamicTargetingKeys", // "request": { // "$ref": "DynamicTargetingKey" // }, @@ -31136,7 +31136,7 @@ func (c *DynamicTargetingKeysListCall) doRequest(alt string) (*http.Response, er var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v3.5/userprofiles/{profileId}/dynamicTargetingKeys") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/dynamicTargetingKeys") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -31188,7 +31188,7 @@ func (c *DynamicTargetingKeysListCall) Do(opts ...googleapi.CallOption) (*Dynami return ret, nil // { // "description": "Retrieves a list of dynamic targeting keys.", - // "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/dynamicTargetingKeys", + // "flatPath": "userprofiles/{profileId}/dynamicTargetingKeys", // "httpMethod": "GET", // "id": "dfareporting.dynamicTargetingKeys.list", // "parameterOrder": [ @@ -31238,7 +31238,7 @@ func (c *DynamicTargetingKeysListCall) Do(opts ...googleapi.CallOption) (*Dynami // "type": "string" // } // }, - // "path": "dfareporting/v3.5/userprofiles/{profileId}/dynamicTargetingKeys", + // "path": "userprofiles/{profileId}/dynamicTargetingKeys", // "response": { // "$ref": "DynamicTargetingKeysListResponse" // }, @@ -31306,7 +31306,7 @@ func (c *EventTagsDeleteCall) 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, "dfareporting/v3.5/userprofiles/{profileId}/eventTags/{id}") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/eventTags/{id}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("DELETE", urls, body) if err != nil { @@ -31334,7 +31334,7 @@ func (c *EventTagsDeleteCall) Do(opts ...googleapi.CallOption) error { return nil // { // "description": "Deletes an existing event tag.", - // "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/eventTags/{id}", + // "flatPath": "userprofiles/{profileId}/eventTags/{id}", // "httpMethod": "DELETE", // "id": "dfareporting.eventTags.delete", // "parameterOrder": [ @@ -31357,7 +31357,7 @@ func (c *EventTagsDeleteCall) Do(opts ...googleapi.CallOption) error { // "type": "string" // } // }, - // "path": "dfareporting/v3.5/userprofiles/{profileId}/eventTags/{id}", + // "path": "userprofiles/{profileId}/eventTags/{id}", // "scopes": [ // "https://www.googleapis.com/auth/dfatrafficking" // ] @@ -31436,7 +31436,7 @@ func (c *EventTagsGetCall) 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, "dfareporting/v3.5/userprofiles/{profileId}/eventTags/{id}") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/eventTags/{id}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -31489,7 +31489,7 @@ func (c *EventTagsGetCall) Do(opts ...googleapi.CallOption) (*EventTag, error) { return ret, nil // { // "description": "Gets one event tag by ID.", - // "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/eventTags/{id}", + // "flatPath": "userprofiles/{profileId}/eventTags/{id}", // "httpMethod": "GET", // "id": "dfareporting.eventTags.get", // "parameterOrder": [ @@ -31512,7 +31512,7 @@ func (c *EventTagsGetCall) Do(opts ...googleapi.CallOption) (*EventTag, error) { // "type": "string" // } // }, - // "path": "dfareporting/v3.5/userprofiles/{profileId}/eventTags/{id}", + // "path": "userprofiles/{profileId}/eventTags/{id}", // "response": { // "$ref": "EventTag" // }, @@ -31584,7 +31584,7 @@ func (c *EventTagsInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v3.5/userprofiles/{profileId}/eventTags") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/eventTags") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -31636,7 +31636,7 @@ func (c *EventTagsInsertCall) Do(opts ...googleapi.CallOption) (*EventTag, error return ret, nil // { // "description": "Inserts a new event tag.", - // "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/eventTags", + // "flatPath": "userprofiles/{profileId}/eventTags", // "httpMethod": "POST", // "id": "dfareporting.eventTags.insert", // "parameterOrder": [ @@ -31651,7 +31651,7 @@ func (c *EventTagsInsertCall) Do(opts ...googleapi.CallOption) (*EventTag, error // "type": "string" // } // }, - // "path": "dfareporting/v3.5/userprofiles/{profileId}/eventTags", + // "path": "userprofiles/{profileId}/eventTags", // "request": { // "$ref": "EventTag" // }, @@ -31844,7 +31844,7 @@ func (c *EventTagsListCall) 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, "dfareporting/v3.5/userprofiles/{profileId}/eventTags") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/eventTags") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -31896,7 +31896,7 @@ func (c *EventTagsListCall) Do(opts ...googleapi.CallOption) (*EventTagsListResp return ret, nil // { // "description": "Retrieves a list of event tags, possibly filtered.", - // "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/eventTags", + // "flatPath": "userprofiles/{profileId}/eventTags", // "httpMethod": "GET", // "id": "dfareporting.eventTags.list", // "parameterOrder": [ @@ -31995,7 +31995,7 @@ func (c *EventTagsListCall) Do(opts ...googleapi.CallOption) (*EventTagsListResp // "type": "string" // } // }, - // "path": "dfareporting/v3.5/userprofiles/{profileId}/eventTags", + // "path": "userprofiles/{profileId}/eventTags", // "response": { // "$ref": "EventTagsListResponse" // }, @@ -32070,7 +32070,7 @@ func (c *EventTagsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v3.5/userprofiles/{profileId}/eventTags") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/eventTags") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("PATCH", urls, body) if err != nil { @@ -32122,7 +32122,7 @@ func (c *EventTagsPatchCall) Do(opts ...googleapi.CallOption) (*EventTag, error) return ret, nil // { // "description": "Updates an existing event tag. This method supports patch semantics.", - // "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/eventTags", + // "flatPath": "userprofiles/{profileId}/eventTags", // "httpMethod": "PATCH", // "id": "dfareporting.eventTags.patch", // "parameterOrder": [ @@ -32145,7 +32145,7 @@ func (c *EventTagsPatchCall) Do(opts ...googleapi.CallOption) (*EventTag, error) // "type": "string" // } // }, - // "path": "dfareporting/v3.5/userprofiles/{profileId}/eventTags", + // "path": "userprofiles/{profileId}/eventTags", // "request": { // "$ref": "EventTag" // }, @@ -32220,7 +32220,7 @@ func (c *EventTagsUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v3.5/userprofiles/{profileId}/eventTags") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/eventTags") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("PUT", urls, body) if err != nil { @@ -32272,7 +32272,7 @@ func (c *EventTagsUpdateCall) Do(opts ...googleapi.CallOption) (*EventTag, error return ret, nil // { // "description": "Updates an existing event tag.", - // "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/eventTags", + // "flatPath": "userprofiles/{profileId}/eventTags", // "httpMethod": "PUT", // "id": "dfareporting.eventTags.update", // "parameterOrder": [ @@ -32287,7 +32287,7 @@ func (c *EventTagsUpdateCall) Do(opts ...googleapi.CallOption) (*EventTag, error // "type": "string" // } // }, - // "path": "dfareporting/v3.5/userprofiles/{profileId}/eventTags", + // "path": "userprofiles/{profileId}/eventTags", // "request": { // "$ref": "EventTag" // }, @@ -32373,7 +32373,7 @@ func (c *FilesGetCall) 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, "dfareporting/v3.5/reports/{reportId}/files/{fileId}") + urls := googleapi.ResolveRelative(c.s.BasePath, "reports/{reportId}/files/{fileId}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -32442,7 +32442,7 @@ func (c *FilesGetCall) Do(opts ...googleapi.CallOption) (*File, error) { return ret, nil // { // "description": "Retrieves a report file by its report ID and file ID. This method supports media download.", - // "flatPath": "dfareporting/v3.5/reports/{reportId}/files/{fileId}", + // "flatPath": "reports/{reportId}/files/{fileId}", // "httpMethod": "GET", // "id": "dfareporting.files.get", // "parameterOrder": [ @@ -32465,7 +32465,7 @@ func (c *FilesGetCall) Do(opts ...googleapi.CallOption) (*File, error) { // "type": "string" // } // }, - // "path": "dfareporting/v3.5/reports/{reportId}/files/{fileId}", + // "path": "reports/{reportId}/files/{fileId}", // "response": { // "$ref": "File" // }, @@ -32596,7 +32596,7 @@ func (c *FilesListCall) 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, "dfareporting/v3.5/userprofiles/{profileId}/files") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/files") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -32648,7 +32648,7 @@ func (c *FilesListCall) Do(opts ...googleapi.CallOption) (*FileList, error) { return ret, nil // { // "description": "Lists files for a user profile.", - // "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/files", + // "flatPath": "userprofiles/{profileId}/files", // "httpMethod": "GET", // "id": "dfareporting.files.list", // "parameterOrder": [ @@ -32721,7 +32721,7 @@ func (c *FilesListCall) Do(opts ...googleapi.CallOption) (*FileList, error) { // "type": "string" // } // }, - // "path": "dfareporting/v3.5/userprofiles/{profileId}/files", + // "path": "userprofiles/{profileId}/files", // "response": { // "$ref": "FileList" // }, @@ -32810,7 +32810,7 @@ func (c *FloodlightActivitiesDeleteCall) doRequest(alt string) (*http.Response, var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v3.5/userprofiles/{profileId}/floodlightActivities/{id}") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/floodlightActivities/{id}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("DELETE", urls, body) if err != nil { @@ -32838,7 +32838,7 @@ func (c *FloodlightActivitiesDeleteCall) Do(opts ...googleapi.CallOption) error return nil // { // "description": "Deletes an existing floodlight activity.", - // "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/floodlightActivities/{id}", + // "flatPath": "userprofiles/{profileId}/floodlightActivities/{id}", // "httpMethod": "DELETE", // "id": "dfareporting.floodlightActivities.delete", // "parameterOrder": [ @@ -32861,7 +32861,7 @@ func (c *FloodlightActivitiesDeleteCall) Do(opts ...googleapi.CallOption) error // "type": "string" // } // }, - // "path": "dfareporting/v3.5/userprofiles/{profileId}/floodlightActivities/{id}", + // "path": "userprofiles/{profileId}/floodlightActivities/{id}", // "scopes": [ // "https://www.googleapis.com/auth/dfatrafficking" // ] @@ -32931,7 +32931,7 @@ func (c *FloodlightActivitiesGeneratetagCall) doRequest(alt string) (*http.Respo var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v3.5/userprofiles/{profileId}/floodlightActivities/generatetag") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/floodlightActivities/generatetag") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -32984,7 +32984,7 @@ func (c *FloodlightActivitiesGeneratetagCall) Do(opts ...googleapi.CallOption) ( return ret, nil // { // "description": "Generates a tag for a floodlight activity.", - // "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/floodlightActivities/generatetag", + // "flatPath": "userprofiles/{profileId}/floodlightActivities/generatetag", // "httpMethod": "POST", // "id": "dfareporting.floodlightActivities.generatetag", // "parameterOrder": [ @@ -33005,7 +33005,7 @@ func (c *FloodlightActivitiesGeneratetagCall) Do(opts ...googleapi.CallOption) ( // "type": "string" // } // }, - // "path": "dfareporting/v3.5/userprofiles/{profileId}/floodlightActivities/generatetag", + // "path": "userprofiles/{profileId}/floodlightActivities/generatetag", // "response": { // "$ref": "FloodlightActivitiesGenerateTagResponse" // }, @@ -33087,7 +33087,7 @@ func (c *FloodlightActivitiesGetCall) doRequest(alt string) (*http.Response, err var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v3.5/userprofiles/{profileId}/floodlightActivities/{id}") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/floodlightActivities/{id}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -33140,7 +33140,7 @@ func (c *FloodlightActivitiesGetCall) Do(opts ...googleapi.CallOption) (*Floodli return ret, nil // { // "description": "Gets one floodlight activity by ID.", - // "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/floodlightActivities/{id}", + // "flatPath": "userprofiles/{profileId}/floodlightActivities/{id}", // "httpMethod": "GET", // "id": "dfareporting.floodlightActivities.get", // "parameterOrder": [ @@ -33163,7 +33163,7 @@ func (c *FloodlightActivitiesGetCall) Do(opts ...googleapi.CallOption) (*Floodli // "type": "string" // } // }, - // "path": "dfareporting/v3.5/userprofiles/{profileId}/floodlightActivities/{id}", + // "path": "userprofiles/{profileId}/floodlightActivities/{id}", // "response": { // "$ref": "FloodlightActivity" // }, @@ -33235,7 +33235,7 @@ func (c *FloodlightActivitiesInsertCall) doRequest(alt string) (*http.Response, reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v3.5/userprofiles/{profileId}/floodlightActivities") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/floodlightActivities") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -33287,7 +33287,7 @@ func (c *FloodlightActivitiesInsertCall) Do(opts ...googleapi.CallOption) (*Floo return ret, nil // { // "description": "Inserts a new floodlight activity.", - // "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/floodlightActivities", + // "flatPath": "userprofiles/{profileId}/floodlightActivities", // "httpMethod": "POST", // "id": "dfareporting.floodlightActivities.insert", // "parameterOrder": [ @@ -33302,7 +33302,7 @@ func (c *FloodlightActivitiesInsertCall) Do(opts ...googleapi.CallOption) (*Floo // "type": "string" // } // }, - // "path": "dfareporting/v3.5/userprofiles/{profileId}/floodlightActivities", + // "path": "userprofiles/{profileId}/floodlightActivities", // "request": { // "$ref": "FloodlightActivity" // }, @@ -33515,7 +33515,7 @@ func (c *FloodlightActivitiesListCall) doRequest(alt string) (*http.Response, er var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v3.5/userprofiles/{profileId}/floodlightActivities") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/floodlightActivities") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -33567,7 +33567,7 @@ func (c *FloodlightActivitiesListCall) Do(opts ...googleapi.CallOption) (*Floodl return ret, nil // { // "description": "Retrieves a list of floodlight activities, possibly filtered. This method supports paging.", - // "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/floodlightActivities", + // "flatPath": "userprofiles/{profileId}/floodlightActivities", // "httpMethod": "GET", // "id": "dfareporting.floodlightActivities.list", // "parameterOrder": [ @@ -33683,7 +33683,7 @@ func (c *FloodlightActivitiesListCall) Do(opts ...googleapi.CallOption) (*Floodl // "type": "string" // } // }, - // "path": "dfareporting/v3.5/userprofiles/{profileId}/floodlightActivities", + // "path": "userprofiles/{profileId}/floodlightActivities", // "response": { // "$ref": "FloodlightActivitiesListResponse" // }, @@ -33779,7 +33779,7 @@ func (c *FloodlightActivitiesPatchCall) doRequest(alt string) (*http.Response, e reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v3.5/userprofiles/{profileId}/floodlightActivities") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/floodlightActivities") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("PATCH", urls, body) if err != nil { @@ -33831,7 +33831,7 @@ func (c *FloodlightActivitiesPatchCall) Do(opts ...googleapi.CallOption) (*Flood return ret, nil // { // "description": "Updates an existing floodlight activity. This method supports patch semantics.", - // "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/floodlightActivities", + // "flatPath": "userprofiles/{profileId}/floodlightActivities", // "httpMethod": "PATCH", // "id": "dfareporting.floodlightActivities.patch", // "parameterOrder": [ @@ -33854,7 +33854,7 @@ func (c *FloodlightActivitiesPatchCall) Do(opts ...googleapi.CallOption) (*Flood // "type": "string" // } // }, - // "path": "dfareporting/v3.5/userprofiles/{profileId}/floodlightActivities", + // "path": "userprofiles/{profileId}/floodlightActivities", // "request": { // "$ref": "FloodlightActivity" // }, @@ -33929,7 +33929,7 @@ func (c *FloodlightActivitiesUpdateCall) doRequest(alt string) (*http.Response, reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v3.5/userprofiles/{profileId}/floodlightActivities") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/floodlightActivities") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("PUT", urls, body) if err != nil { @@ -33981,7 +33981,7 @@ func (c *FloodlightActivitiesUpdateCall) Do(opts ...googleapi.CallOption) (*Floo return ret, nil // { // "description": "Updates an existing floodlight activity.", - // "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/floodlightActivities", + // "flatPath": "userprofiles/{profileId}/floodlightActivities", // "httpMethod": "PUT", // "id": "dfareporting.floodlightActivities.update", // "parameterOrder": [ @@ -33996,7 +33996,7 @@ func (c *FloodlightActivitiesUpdateCall) Do(opts ...googleapi.CallOption) (*Floo // "type": "string" // } // }, - // "path": "dfareporting/v3.5/userprofiles/{profileId}/floodlightActivities", + // "path": "userprofiles/{profileId}/floodlightActivities", // "request": { // "$ref": "FloodlightActivity" // }, @@ -34081,7 +34081,7 @@ func (c *FloodlightActivityGroupsGetCall) doRequest(alt string) (*http.Response, var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v3.5/userprofiles/{profileId}/floodlightActivityGroups/{id}") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/floodlightActivityGroups/{id}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -34134,7 +34134,7 @@ func (c *FloodlightActivityGroupsGetCall) Do(opts ...googleapi.CallOption) (*Flo return ret, nil // { // "description": "Gets one floodlight activity group by ID.", - // "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/floodlightActivityGroups/{id}", + // "flatPath": "userprofiles/{profileId}/floodlightActivityGroups/{id}", // "httpMethod": "GET", // "id": "dfareporting.floodlightActivityGroups.get", // "parameterOrder": [ @@ -34157,7 +34157,7 @@ func (c *FloodlightActivityGroupsGetCall) Do(opts ...googleapi.CallOption) (*Flo // "type": "string" // } // }, - // "path": "dfareporting/v3.5/userprofiles/{profileId}/floodlightActivityGroups/{id}", + // "path": "userprofiles/{profileId}/floodlightActivityGroups/{id}", // "response": { // "$ref": "FloodlightActivityGroup" // }, @@ -34229,7 +34229,7 @@ func (c *FloodlightActivityGroupsInsertCall) doRequest(alt string) (*http.Respon reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v3.5/userprofiles/{profileId}/floodlightActivityGroups") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/floodlightActivityGroups") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -34281,7 +34281,7 @@ func (c *FloodlightActivityGroupsInsertCall) Do(opts ...googleapi.CallOption) (* return ret, nil // { // "description": "Inserts a new floodlight activity group.", - // "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/floodlightActivityGroups", + // "flatPath": "userprofiles/{profileId}/floodlightActivityGroups", // "httpMethod": "POST", // "id": "dfareporting.floodlightActivityGroups.insert", // "parameterOrder": [ @@ -34296,7 +34296,7 @@ func (c *FloodlightActivityGroupsInsertCall) Do(opts ...googleapi.CallOption) (* // "type": "string" // } // }, - // "path": "dfareporting/v3.5/userprofiles/{profileId}/floodlightActivityGroups", + // "path": "userprofiles/{profileId}/floodlightActivityGroups", // "request": { // "$ref": "FloodlightActivityGroup" // }, @@ -34474,7 +34474,7 @@ func (c *FloodlightActivityGroupsListCall) doRequest(alt string) (*http.Response var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v3.5/userprofiles/{profileId}/floodlightActivityGroups") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/floodlightActivityGroups") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -34527,7 +34527,7 @@ func (c *FloodlightActivityGroupsListCall) Do(opts ...googleapi.CallOption) (*Fl return ret, nil // { // "description": "Retrieves a list of floodlight activity groups, possibly filtered. This method supports paging.", - // "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/floodlightActivityGroups", + // "flatPath": "userprofiles/{profileId}/floodlightActivityGroups", // "httpMethod": "GET", // "id": "dfareporting.floodlightActivityGroups.list", // "parameterOrder": [ @@ -34621,7 +34621,7 @@ func (c *FloodlightActivityGroupsListCall) Do(opts ...googleapi.CallOption) (*Fl // "type": "string" // } // }, - // "path": "dfareporting/v3.5/userprofiles/{profileId}/floodlightActivityGroups", + // "path": "userprofiles/{profileId}/floodlightActivityGroups", // "response": { // "$ref": "FloodlightActivityGroupsListResponse" // }, @@ -34717,7 +34717,7 @@ func (c *FloodlightActivityGroupsPatchCall) doRequest(alt string) (*http.Respons reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v3.5/userprofiles/{profileId}/floodlightActivityGroups") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/floodlightActivityGroups") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("PATCH", urls, body) if err != nil { @@ -34769,7 +34769,7 @@ func (c *FloodlightActivityGroupsPatchCall) Do(opts ...googleapi.CallOption) (*F return ret, nil // { // "description": "Updates an existing floodlight activity group. This method supports patch semantics.", - // "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/floodlightActivityGroups", + // "flatPath": "userprofiles/{profileId}/floodlightActivityGroups", // "httpMethod": "PATCH", // "id": "dfareporting.floodlightActivityGroups.patch", // "parameterOrder": [ @@ -34792,7 +34792,7 @@ func (c *FloodlightActivityGroupsPatchCall) Do(opts ...googleapi.CallOption) (*F // "type": "string" // } // }, - // "path": "dfareporting/v3.5/userprofiles/{profileId}/floodlightActivityGroups", + // "path": "userprofiles/{profileId}/floodlightActivityGroups", // "request": { // "$ref": "FloodlightActivityGroup" // }, @@ -34867,7 +34867,7 @@ func (c *FloodlightActivityGroupsUpdateCall) doRequest(alt string) (*http.Respon reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v3.5/userprofiles/{profileId}/floodlightActivityGroups") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/floodlightActivityGroups") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("PUT", urls, body) if err != nil { @@ -34919,7 +34919,7 @@ func (c *FloodlightActivityGroupsUpdateCall) Do(opts ...googleapi.CallOption) (* return ret, nil // { // "description": "Updates an existing floodlight activity group.", - // "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/floodlightActivityGroups", + // "flatPath": "userprofiles/{profileId}/floodlightActivityGroups", // "httpMethod": "PUT", // "id": "dfareporting.floodlightActivityGroups.update", // "parameterOrder": [ @@ -34934,7 +34934,7 @@ func (c *FloodlightActivityGroupsUpdateCall) Do(opts ...googleapi.CallOption) (* // "type": "string" // } // }, - // "path": "dfareporting/v3.5/userprofiles/{profileId}/floodlightActivityGroups", + // "path": "userprofiles/{profileId}/floodlightActivityGroups", // "request": { // "$ref": "FloodlightActivityGroup" // }, @@ -35019,7 +35019,7 @@ func (c *FloodlightConfigurationsGetCall) doRequest(alt string) (*http.Response, var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v3.5/userprofiles/{profileId}/floodlightConfigurations/{id}") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/floodlightConfigurations/{id}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -35072,7 +35072,7 @@ func (c *FloodlightConfigurationsGetCall) Do(opts ...googleapi.CallOption) (*Flo return ret, nil // { // "description": "Gets one floodlight configuration by ID.", - // "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/floodlightConfigurations/{id}", + // "flatPath": "userprofiles/{profileId}/floodlightConfigurations/{id}", // "httpMethod": "GET", // "id": "dfareporting.floodlightConfigurations.get", // "parameterOrder": [ @@ -35095,7 +35095,7 @@ func (c *FloodlightConfigurationsGetCall) Do(opts ...googleapi.CallOption) (*Flo // "type": "string" // } // }, - // "path": "dfareporting/v3.5/userprofiles/{profileId}/floodlightConfigurations/{id}", + // "path": "userprofiles/{profileId}/floodlightConfigurations/{id}", // "response": { // "$ref": "FloodlightConfiguration" // }, @@ -35187,7 +35187,7 @@ func (c *FloodlightConfigurationsListCall) doRequest(alt string) (*http.Response var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v3.5/userprofiles/{profileId}/floodlightConfigurations") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/floodlightConfigurations") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -35240,7 +35240,7 @@ func (c *FloodlightConfigurationsListCall) Do(opts ...googleapi.CallOption) (*Fl return ret, nil // { // "description": "Retrieves a list of floodlight configurations, possibly filtered.", - // "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/floodlightConfigurations", + // "flatPath": "userprofiles/{profileId}/floodlightConfigurations", // "httpMethod": "GET", // "id": "dfareporting.floodlightConfigurations.list", // "parameterOrder": [ @@ -35262,7 +35262,7 @@ func (c *FloodlightConfigurationsListCall) Do(opts ...googleapi.CallOption) (*Fl // "type": "string" // } // }, - // "path": "dfareporting/v3.5/userprofiles/{profileId}/floodlightConfigurations", + // "path": "userprofiles/{profileId}/floodlightConfigurations", // "response": { // "$ref": "FloodlightConfigurationsListResponse" // }, @@ -35337,7 +35337,7 @@ func (c *FloodlightConfigurationsPatchCall) doRequest(alt string) (*http.Respons reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v3.5/userprofiles/{profileId}/floodlightConfigurations") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/floodlightConfigurations") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("PATCH", urls, body) if err != nil { @@ -35389,7 +35389,7 @@ func (c *FloodlightConfigurationsPatchCall) Do(opts ...googleapi.CallOption) (*F return ret, nil // { // "description": "Updates an existing floodlight configuration. This method supports patch semantics.", - // "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/floodlightConfigurations", + // "flatPath": "userprofiles/{profileId}/floodlightConfigurations", // "httpMethod": "PATCH", // "id": "dfareporting.floodlightConfigurations.patch", // "parameterOrder": [ @@ -35412,7 +35412,7 @@ func (c *FloodlightConfigurationsPatchCall) Do(opts ...googleapi.CallOption) (*F // "type": "string" // } // }, - // "path": "dfareporting/v3.5/userprofiles/{profileId}/floodlightConfigurations", + // "path": "userprofiles/{profileId}/floodlightConfigurations", // "request": { // "$ref": "FloodlightConfiguration" // }, @@ -35487,7 +35487,7 @@ func (c *FloodlightConfigurationsUpdateCall) doRequest(alt string) (*http.Respon reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v3.5/userprofiles/{profileId}/floodlightConfigurations") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/floodlightConfigurations") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("PUT", urls, body) if err != nil { @@ -35539,7 +35539,7 @@ func (c *FloodlightConfigurationsUpdateCall) Do(opts ...googleapi.CallOption) (* return ret, nil // { // "description": "Updates an existing floodlight configuration.", - // "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/floodlightConfigurations", + // "flatPath": "userprofiles/{profileId}/floodlightConfigurations", // "httpMethod": "PUT", // "id": "dfareporting.floodlightConfigurations.update", // "parameterOrder": [ @@ -35554,7 +35554,7 @@ func (c *FloodlightConfigurationsUpdateCall) Do(opts ...googleapi.CallOption) (* // "type": "string" // } // }, - // "path": "dfareporting/v3.5/userprofiles/{profileId}/floodlightConfigurations", + // "path": "userprofiles/{profileId}/floodlightConfigurations", // "request": { // "$ref": "FloodlightConfiguration" // }, @@ -35642,7 +35642,7 @@ func (c *InventoryItemsGetCall) 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, "dfareporting/v3.5/userprofiles/{profileId}/projects/{projectId}/inventoryItems/{id}") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/projects/{projectId}/inventoryItems/{id}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -35696,7 +35696,7 @@ func (c *InventoryItemsGetCall) Do(opts ...googleapi.CallOption) (*InventoryItem return ret, nil // { // "description": "Gets one inventory item by ID.", - // "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/projects/{projectId}/inventoryItems/{id}", + // "flatPath": "userprofiles/{profileId}/projects/{projectId}/inventoryItems/{id}", // "httpMethod": "GET", // "id": "dfareporting.inventoryItems.get", // "parameterOrder": [ @@ -35727,7 +35727,7 @@ func (c *InventoryItemsGetCall) Do(opts ...googleapi.CallOption) (*InventoryItem // "type": "string" // } // }, - // "path": "dfareporting/v3.5/userprofiles/{profileId}/projects/{projectId}/inventoryItems/{id}", + // "path": "userprofiles/{profileId}/projects/{projectId}/inventoryItems/{id}", // "response": { // "$ref": "InventoryItem" // }, @@ -35900,7 +35900,7 @@ func (c *InventoryItemsListCall) 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, "dfareporting/v3.5/userprofiles/{profileId}/projects/{projectId}/inventoryItems") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/projects/{projectId}/inventoryItems") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -35953,7 +35953,7 @@ func (c *InventoryItemsListCall) Do(opts ...googleapi.CallOption) (*InventoryIte return ret, nil // { // "description": "Retrieves a list of inventory items, possibly filtered. This method supports paging.", - // "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/projects/{projectId}/inventoryItems", + // "flatPath": "userprofiles/{profileId}/projects/{projectId}/inventoryItems", // "httpMethod": "GET", // "id": "dfareporting.inventoryItems.list", // "parameterOrder": [ @@ -36057,7 +36057,7 @@ func (c *InventoryItemsListCall) Do(opts ...googleapi.CallOption) (*InventoryIte // "type": "string" // } // }, - // "path": "dfareporting/v3.5/userprofiles/{profileId}/projects/{projectId}/inventoryItems", + // "path": "userprofiles/{profileId}/projects/{projectId}/inventoryItems", // "response": { // "$ref": "InventoryItemsListResponse" // }, @@ -36157,7 +36157,7 @@ func (c *LanguagesListCall) 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, "dfareporting/v3.5/userprofiles/{profileId}/languages") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/languages") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -36209,7 +36209,7 @@ func (c *LanguagesListCall) Do(opts ...googleapi.CallOption) (*LanguagesListResp return ret, nil // { // "description": "Retrieves a list of languages.", - // "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/languages", + // "flatPath": "userprofiles/{profileId}/languages", // "httpMethod": "GET", // "id": "dfareporting.languages.list", // "parameterOrder": [ @@ -36224,7 +36224,7 @@ func (c *LanguagesListCall) Do(opts ...googleapi.CallOption) (*LanguagesListResp // "type": "string" // } // }, - // "path": "dfareporting/v3.5/userprofiles/{profileId}/languages", + // "path": "userprofiles/{profileId}/languages", // "response": { // "$ref": "LanguagesListResponse" // }, @@ -36303,7 +36303,7 @@ func (c *MetrosListCall) 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, "dfareporting/v3.5/userprofiles/{profileId}/metros") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/metros") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -36355,7 +36355,7 @@ func (c *MetrosListCall) Do(opts ...googleapi.CallOption) (*MetrosListResponse, return ret, nil // { // "description": "Retrieves a list of metros.", - // "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/metros", + // "flatPath": "userprofiles/{profileId}/metros", // "httpMethod": "GET", // "id": "dfareporting.metros.list", // "parameterOrder": [ @@ -36370,7 +36370,7 @@ func (c *MetrosListCall) Do(opts ...googleapi.CallOption) (*MetrosListResponse, // "type": "string" // } // }, - // "path": "dfareporting/v3.5/userprofiles/{profileId}/metros", + // "path": "userprofiles/{profileId}/metros", // "response": { // "$ref": "MetrosListResponse" // }, @@ -36452,7 +36452,7 @@ func (c *MobileAppsGetCall) 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, "dfareporting/v3.5/userprofiles/{profileId}/mobileApps/{id}") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/mobileApps/{id}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -36505,7 +36505,7 @@ func (c *MobileAppsGetCall) Do(opts ...googleapi.CallOption) (*MobileApp, error) return ret, nil // { // "description": "Gets one mobile app by ID.", - // "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/mobileApps/{id}", + // "flatPath": "userprofiles/{profileId}/mobileApps/{id}", // "httpMethod": "GET", // "id": "dfareporting.mobileApps.get", // "parameterOrder": [ @@ -36527,7 +36527,7 @@ func (c *MobileAppsGetCall) Do(opts ...googleapi.CallOption) (*MobileApp, error) // "type": "string" // } // }, - // "path": "dfareporting/v3.5/userprofiles/{profileId}/mobileApps/{id}", + // "path": "userprofiles/{profileId}/mobileApps/{id}", // "response": { // "$ref": "MobileApp" // }, @@ -36660,7 +36660,7 @@ func (c *MobileAppsListCall) 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, "dfareporting/v3.5/userprofiles/{profileId}/mobileApps") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/mobileApps") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -36712,7 +36712,7 @@ func (c *MobileAppsListCall) Do(opts ...googleapi.CallOption) (*MobileAppsListRe return ret, nil // { // "description": "Retrieves list of available mobile apps.", - // "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/mobileApps", + // "flatPath": "userprofiles/{profileId}/mobileApps", // "httpMethod": "GET", // "id": "dfareporting.mobileApps.list", // "parameterOrder": [ @@ -36784,7 +36784,7 @@ func (c *MobileAppsListCall) Do(opts ...googleapi.CallOption) (*MobileAppsListRe // "type": "string" // } // }, - // "path": "dfareporting/v3.5/userprofiles/{profileId}/mobileApps", + // "path": "userprofiles/{profileId}/mobileApps", // "response": { // "$ref": "MobileAppsListResponse" // }, @@ -36887,7 +36887,7 @@ func (c *MobileCarriersGetCall) 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, "dfareporting/v3.5/userprofiles/{profileId}/mobileCarriers/{id}") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/mobileCarriers/{id}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -36940,7 +36940,7 @@ func (c *MobileCarriersGetCall) Do(opts ...googleapi.CallOption) (*MobileCarrier return ret, nil // { // "description": "Gets one mobile carrier by ID.", - // "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/mobileCarriers/{id}", + // "flatPath": "userprofiles/{profileId}/mobileCarriers/{id}", // "httpMethod": "GET", // "id": "dfareporting.mobileCarriers.get", // "parameterOrder": [ @@ -36963,7 +36963,7 @@ func (c *MobileCarriersGetCall) Do(opts ...googleapi.CallOption) (*MobileCarrier // "type": "string" // } // }, - // "path": "dfareporting/v3.5/userprofiles/{profileId}/mobileCarriers/{id}", + // "path": "userprofiles/{profileId}/mobileCarriers/{id}", // "response": { // "$ref": "MobileCarrier" // }, @@ -37042,7 +37042,7 @@ func (c *MobileCarriersListCall) 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, "dfareporting/v3.5/userprofiles/{profileId}/mobileCarriers") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/mobileCarriers") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -37094,7 +37094,7 @@ func (c *MobileCarriersListCall) Do(opts ...googleapi.CallOption) (*MobileCarrie return ret, nil // { // "description": "Retrieves a list of mobile carriers.", - // "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/mobileCarriers", + // "flatPath": "userprofiles/{profileId}/mobileCarriers", // "httpMethod": "GET", // "id": "dfareporting.mobileCarriers.list", // "parameterOrder": [ @@ -37109,7 +37109,7 @@ func (c *MobileCarriersListCall) Do(opts ...googleapi.CallOption) (*MobileCarrie // "type": "string" // } // }, - // "path": "dfareporting/v3.5/userprofiles/{profileId}/mobileCarriers", + // "path": "userprofiles/{profileId}/mobileCarriers", // "response": { // "$ref": "MobileCarriersListResponse" // }, @@ -37191,7 +37191,7 @@ func (c *OperatingSystemVersionsGetCall) doRequest(alt string) (*http.Response, var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v3.5/userprofiles/{profileId}/operatingSystemVersions/{id}") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/operatingSystemVersions/{id}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -37244,7 +37244,7 @@ func (c *OperatingSystemVersionsGetCall) Do(opts ...googleapi.CallOption) (*Oper return ret, nil // { // "description": "Gets one operating system version by ID.", - // "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/operatingSystemVersions/{id}", + // "flatPath": "userprofiles/{profileId}/operatingSystemVersions/{id}", // "httpMethod": "GET", // "id": "dfareporting.operatingSystemVersions.get", // "parameterOrder": [ @@ -37267,7 +37267,7 @@ func (c *OperatingSystemVersionsGetCall) Do(opts ...googleapi.CallOption) (*Oper // "type": "string" // } // }, - // "path": "dfareporting/v3.5/userprofiles/{profileId}/operatingSystemVersions/{id}", + // "path": "userprofiles/{profileId}/operatingSystemVersions/{id}", // "response": { // "$ref": "OperatingSystemVersion" // }, @@ -37346,7 +37346,7 @@ func (c *OperatingSystemVersionsListCall) doRequest(alt string) (*http.Response, var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v3.5/userprofiles/{profileId}/operatingSystemVersions") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/operatingSystemVersions") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -37399,7 +37399,7 @@ func (c *OperatingSystemVersionsListCall) Do(opts ...googleapi.CallOption) (*Ope return ret, nil // { // "description": "Retrieves a list of operating system versions.", - // "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/operatingSystemVersions", + // "flatPath": "userprofiles/{profileId}/operatingSystemVersions", // "httpMethod": "GET", // "id": "dfareporting.operatingSystemVersions.list", // "parameterOrder": [ @@ -37414,7 +37414,7 @@ func (c *OperatingSystemVersionsListCall) Do(opts ...googleapi.CallOption) (*Ope // "type": "string" // } // }, - // "path": "dfareporting/v3.5/userprofiles/{profileId}/operatingSystemVersions", + // "path": "userprofiles/{profileId}/operatingSystemVersions", // "response": { // "$ref": "OperatingSystemVersionsListResponse" // }, @@ -37496,7 +37496,7 @@ func (c *OperatingSystemsGetCall) 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, "dfareporting/v3.5/userprofiles/{profileId}/operatingSystems/{dartId}") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/operatingSystems/{dartId}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -37549,7 +37549,7 @@ func (c *OperatingSystemsGetCall) Do(opts ...googleapi.CallOption) (*OperatingSy return ret, nil // { // "description": "Gets one operating system by DART ID.", - // "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/operatingSystems/{dartId}", + // "flatPath": "userprofiles/{profileId}/operatingSystems/{dartId}", // "httpMethod": "GET", // "id": "dfareporting.operatingSystems.get", // "parameterOrder": [ @@ -37572,7 +37572,7 @@ func (c *OperatingSystemsGetCall) Do(opts ...googleapi.CallOption) (*OperatingSy // "type": "string" // } // }, - // "path": "dfareporting/v3.5/userprofiles/{profileId}/operatingSystems/{dartId}", + // "path": "userprofiles/{profileId}/operatingSystems/{dartId}", // "response": { // "$ref": "OperatingSystem" // }, @@ -37651,7 +37651,7 @@ func (c *OperatingSystemsListCall) 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, "dfareporting/v3.5/userprofiles/{profileId}/operatingSystems") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/operatingSystems") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -37703,7 +37703,7 @@ func (c *OperatingSystemsListCall) Do(opts ...googleapi.CallOption) (*OperatingS return ret, nil // { // "description": "Retrieves a list of operating systems.", - // "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/operatingSystems", + // "flatPath": "userprofiles/{profileId}/operatingSystems", // "httpMethod": "GET", // "id": "dfareporting.operatingSystems.list", // "parameterOrder": [ @@ -37718,7 +37718,7 @@ func (c *OperatingSystemsListCall) Do(opts ...googleapi.CallOption) (*OperatingS // "type": "string" // } // }, - // "path": "dfareporting/v3.5/userprofiles/{profileId}/operatingSystems", + // "path": "userprofiles/{profileId}/operatingSystems", // "response": { // "$ref": "OperatingSystemsListResponse" // }, @@ -37803,7 +37803,7 @@ func (c *OrderDocumentsGetCall) 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, "dfareporting/v3.5/userprofiles/{profileId}/projects/{projectId}/orderDocuments/{id}") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/projects/{projectId}/orderDocuments/{id}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -37857,7 +37857,7 @@ func (c *OrderDocumentsGetCall) Do(opts ...googleapi.CallOption) (*OrderDocument return ret, nil // { // "description": "Gets one order document by ID.", - // "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/projects/{projectId}/orderDocuments/{id}", + // "flatPath": "userprofiles/{profileId}/projects/{projectId}/orderDocuments/{id}", // "httpMethod": "GET", // "id": "dfareporting.orderDocuments.get", // "parameterOrder": [ @@ -37888,7 +37888,7 @@ func (c *OrderDocumentsGetCall) Do(opts ...googleapi.CallOption) (*OrderDocument // "type": "string" // } // }, - // "path": "dfareporting/v3.5/userprofiles/{profileId}/projects/{projectId}/orderDocuments/{id}", + // "path": "userprofiles/{profileId}/projects/{projectId}/orderDocuments/{id}", // "response": { // "$ref": "OrderDocument" // }, @@ -38063,7 +38063,7 @@ func (c *OrderDocumentsListCall) 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, "dfareporting/v3.5/userprofiles/{profileId}/projects/{projectId}/orderDocuments") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/projects/{projectId}/orderDocuments") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -38116,7 +38116,7 @@ func (c *OrderDocumentsListCall) Do(opts ...googleapi.CallOption) (*OrderDocumen return ret, nil // { // "description": "Retrieves a list of order documents, possibly filtered. This method supports paging.", - // "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/projects/{projectId}/orderDocuments", + // "flatPath": "userprofiles/{profileId}/projects/{projectId}/orderDocuments", // "httpMethod": "GET", // "id": "dfareporting.orderDocuments.list", // "parameterOrder": [ @@ -38212,7 +38212,7 @@ func (c *OrderDocumentsListCall) Do(opts ...googleapi.CallOption) (*OrderDocumen // "type": "string" // } // }, - // "path": "dfareporting/v3.5/userprofiles/{profileId}/projects/{projectId}/orderDocuments", + // "path": "userprofiles/{profileId}/projects/{projectId}/orderDocuments", // "response": { // "$ref": "OrderDocumentsListResponse" // }, @@ -38318,7 +38318,7 @@ func (c *OrdersGetCall) 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, "dfareporting/v3.5/userprofiles/{profileId}/projects/{projectId}/orders/{id}") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/projects/{projectId}/orders/{id}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -38372,7 +38372,7 @@ func (c *OrdersGetCall) Do(opts ...googleapi.CallOption) (*Order, error) { return ret, nil // { // "description": "Gets one order by ID.", - // "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/projects/{projectId}/orders/{id}", + // "flatPath": "userprofiles/{profileId}/projects/{projectId}/orders/{id}", // "httpMethod": "GET", // "id": "dfareporting.orders.get", // "parameterOrder": [ @@ -38403,7 +38403,7 @@ func (c *OrdersGetCall) Do(opts ...googleapi.CallOption) (*Order, error) { // "type": "string" // } // }, - // "path": "dfareporting/v3.5/userprofiles/{profileId}/projects/{projectId}/orders/{id}", + // "path": "userprofiles/{profileId}/projects/{projectId}/orders/{id}", // "response": { // "$ref": "Order" // }, @@ -38558,7 +38558,7 @@ func (c *OrdersListCall) 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, "dfareporting/v3.5/userprofiles/{profileId}/projects/{projectId}/orders") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/projects/{projectId}/orders") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -38611,7 +38611,7 @@ func (c *OrdersListCall) Do(opts ...googleapi.CallOption) (*OrdersListResponse, return ret, nil // { // "description": "Retrieves a list of orders, possibly filtered. This method supports paging.", - // "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/projects/{projectId}/orders", + // "flatPath": "userprofiles/{profileId}/projects/{projectId}/orders", // "httpMethod": "GET", // "id": "dfareporting.orders.list", // "parameterOrder": [ @@ -38695,7 +38695,7 @@ func (c *OrdersListCall) Do(opts ...googleapi.CallOption) (*OrdersListResponse, // "type": "string" // } // }, - // "path": "dfareporting/v3.5/userprofiles/{profileId}/projects/{projectId}/orders", + // "path": "userprofiles/{profileId}/projects/{projectId}/orders", // "response": { // "$ref": "OrdersListResponse" // }, @@ -38798,7 +38798,7 @@ func (c *PlacementGroupsGetCall) 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, "dfareporting/v3.5/userprofiles/{profileId}/placementGroups/{id}") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/placementGroups/{id}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -38851,7 +38851,7 @@ func (c *PlacementGroupsGetCall) Do(opts ...googleapi.CallOption) (*PlacementGro return ret, nil // { // "description": "Gets one placement group by ID.", - // "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/placementGroups/{id}", + // "flatPath": "userprofiles/{profileId}/placementGroups/{id}", // "httpMethod": "GET", // "id": "dfareporting.placementGroups.get", // "parameterOrder": [ @@ -38874,7 +38874,7 @@ func (c *PlacementGroupsGetCall) Do(opts ...googleapi.CallOption) (*PlacementGro // "type": "string" // } // }, - // "path": "dfareporting/v3.5/userprofiles/{profileId}/placementGroups/{id}", + // "path": "userprofiles/{profileId}/placementGroups/{id}", // "response": { // "$ref": "PlacementGroup" // }, @@ -38946,7 +38946,7 @@ func (c *PlacementGroupsInsertCall) doRequest(alt string) (*http.Response, error reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v3.5/userprofiles/{profileId}/placementGroups") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/placementGroups") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -38998,7 +38998,7 @@ func (c *PlacementGroupsInsertCall) Do(opts ...googleapi.CallOption) (*Placement return ret, nil // { // "description": "Inserts a new placement group.", - // "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/placementGroups", + // "flatPath": "userprofiles/{profileId}/placementGroups", // "httpMethod": "POST", // "id": "dfareporting.placementGroups.insert", // "parameterOrder": [ @@ -39013,7 +39013,7 @@ func (c *PlacementGroupsInsertCall) Do(opts ...googleapi.CallOption) (*Placement // "type": "string" // } // }, - // "path": "dfareporting/v3.5/userprofiles/{profileId}/placementGroups", + // "path": "userprofiles/{profileId}/placementGroups", // "request": { // "$ref": "PlacementGroup" // }, @@ -39301,7 +39301,7 @@ func (c *PlacementGroupsListCall) 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, "dfareporting/v3.5/userprofiles/{profileId}/placementGroups") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/placementGroups") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -39353,7 +39353,7 @@ func (c *PlacementGroupsListCall) Do(opts ...googleapi.CallOption) (*PlacementGr return ret, nil // { // "description": "Retrieves a list of placement groups, possibly filtered. This method supports paging.", - // "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/placementGroups", + // "flatPath": "userprofiles/{profileId}/placementGroups", // "httpMethod": "GET", // "id": "dfareporting.placementGroups.list", // "parameterOrder": [ @@ -39524,7 +39524,7 @@ func (c *PlacementGroupsListCall) Do(opts ...googleapi.CallOption) (*PlacementGr // "type": "string" // } // }, - // "path": "dfareporting/v3.5/userprofiles/{profileId}/placementGroups", + // "path": "userprofiles/{profileId}/placementGroups", // "response": { // "$ref": "PlacementGroupsListResponse" // }, @@ -39620,7 +39620,7 @@ func (c *PlacementGroupsPatchCall) doRequest(alt string) (*http.Response, error) reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v3.5/userprofiles/{profileId}/placementGroups") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/placementGroups") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("PATCH", urls, body) if err != nil { @@ -39672,7 +39672,7 @@ func (c *PlacementGroupsPatchCall) Do(opts ...googleapi.CallOption) (*PlacementG return ret, nil // { // "description": "Updates an existing placement group. This method supports patch semantics.", - // "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/placementGroups", + // "flatPath": "userprofiles/{profileId}/placementGroups", // "httpMethod": "PATCH", // "id": "dfareporting.placementGroups.patch", // "parameterOrder": [ @@ -39695,7 +39695,7 @@ func (c *PlacementGroupsPatchCall) Do(opts ...googleapi.CallOption) (*PlacementG // "type": "string" // } // }, - // "path": "dfareporting/v3.5/userprofiles/{profileId}/placementGroups", + // "path": "userprofiles/{profileId}/placementGroups", // "request": { // "$ref": "PlacementGroup" // }, @@ -39770,7 +39770,7 @@ func (c *PlacementGroupsUpdateCall) doRequest(alt string) (*http.Response, error reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v3.5/userprofiles/{profileId}/placementGroups") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/placementGroups") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("PUT", urls, body) if err != nil { @@ -39822,7 +39822,7 @@ func (c *PlacementGroupsUpdateCall) Do(opts ...googleapi.CallOption) (*Placement return ret, nil // { // "description": "Updates an existing placement group.", - // "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/placementGroups", + // "flatPath": "userprofiles/{profileId}/placementGroups", // "httpMethod": "PUT", // "id": "dfareporting.placementGroups.update", // "parameterOrder": [ @@ -39837,7 +39837,7 @@ func (c *PlacementGroupsUpdateCall) Do(opts ...googleapi.CallOption) (*Placement // "type": "string" // } // }, - // "path": "dfareporting/v3.5/userprofiles/{profileId}/placementGroups", + // "path": "userprofiles/{profileId}/placementGroups", // "request": { // "$ref": "PlacementGroup" // }, @@ -39908,7 +39908,7 @@ func (c *PlacementStrategiesDeleteCall) doRequest(alt string) (*http.Response, e var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v3.5/userprofiles/{profileId}/placementStrategies/{id}") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/placementStrategies/{id}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("DELETE", urls, body) if err != nil { @@ -39936,7 +39936,7 @@ func (c *PlacementStrategiesDeleteCall) Do(opts ...googleapi.CallOption) error { return nil // { // "description": "Deletes an existing placement strategy.", - // "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/placementStrategies/{id}", + // "flatPath": "userprofiles/{profileId}/placementStrategies/{id}", // "httpMethod": "DELETE", // "id": "dfareporting.placementStrategies.delete", // "parameterOrder": [ @@ -39959,7 +39959,7 @@ func (c *PlacementStrategiesDeleteCall) Do(opts ...googleapi.CallOption) error { // "type": "string" // } // }, - // "path": "dfareporting/v3.5/userprofiles/{profileId}/placementStrategies/{id}", + // "path": "userprofiles/{profileId}/placementStrategies/{id}", // "scopes": [ // "https://www.googleapis.com/auth/dfatrafficking" // ] @@ -40038,7 +40038,7 @@ func (c *PlacementStrategiesGetCall) doRequest(alt string) (*http.Response, erro var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v3.5/userprofiles/{profileId}/placementStrategies/{id}") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/placementStrategies/{id}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -40091,7 +40091,7 @@ func (c *PlacementStrategiesGetCall) Do(opts ...googleapi.CallOption) (*Placemen return ret, nil // { // "description": "Gets one placement strategy by ID.", - // "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/placementStrategies/{id}", + // "flatPath": "userprofiles/{profileId}/placementStrategies/{id}", // "httpMethod": "GET", // "id": "dfareporting.placementStrategies.get", // "parameterOrder": [ @@ -40114,7 +40114,7 @@ func (c *PlacementStrategiesGetCall) Do(opts ...googleapi.CallOption) (*Placemen // "type": "string" // } // }, - // "path": "dfareporting/v3.5/userprofiles/{profileId}/placementStrategies/{id}", + // "path": "userprofiles/{profileId}/placementStrategies/{id}", // "response": { // "$ref": "PlacementStrategy" // }, @@ -40186,7 +40186,7 @@ func (c *PlacementStrategiesInsertCall) doRequest(alt string) (*http.Response, e reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v3.5/userprofiles/{profileId}/placementStrategies") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/placementStrategies") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -40238,7 +40238,7 @@ func (c *PlacementStrategiesInsertCall) Do(opts ...googleapi.CallOption) (*Place return ret, nil // { // "description": "Inserts a new placement strategy.", - // "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/placementStrategies", + // "flatPath": "userprofiles/{profileId}/placementStrategies", // "httpMethod": "POST", // "id": "dfareporting.placementStrategies.insert", // "parameterOrder": [ @@ -40253,7 +40253,7 @@ func (c *PlacementStrategiesInsertCall) Do(opts ...googleapi.CallOption) (*Place // "type": "string" // } // }, - // "path": "dfareporting/v3.5/userprofiles/{profileId}/placementStrategies", + // "path": "userprofiles/{profileId}/placementStrategies", // "request": { // "$ref": "PlacementStrategy" // }, @@ -40399,7 +40399,7 @@ func (c *PlacementStrategiesListCall) doRequest(alt string) (*http.Response, err var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v3.5/userprofiles/{profileId}/placementStrategies") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/placementStrategies") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -40451,7 +40451,7 @@ func (c *PlacementStrategiesListCall) Do(opts ...googleapi.CallOption) (*Placeme return ret, nil // { // "description": "Retrieves a list of placement strategies, possibly filtered. This method supports paging.", - // "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/placementStrategies", + // "flatPath": "userprofiles/{profileId}/placementStrategies", // "httpMethod": "GET", // "id": "dfareporting.placementStrategies.list", // "parameterOrder": [ @@ -40520,7 +40520,7 @@ func (c *PlacementStrategiesListCall) Do(opts ...googleapi.CallOption) (*Placeme // "type": "string" // } // }, - // "path": "dfareporting/v3.5/userprofiles/{profileId}/placementStrategies", + // "path": "userprofiles/{profileId}/placementStrategies", // "response": { // "$ref": "PlacementStrategiesListResponse" // }, @@ -40616,7 +40616,7 @@ func (c *PlacementStrategiesPatchCall) doRequest(alt string) (*http.Response, er reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v3.5/userprofiles/{profileId}/placementStrategies") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/placementStrategies") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("PATCH", urls, body) if err != nil { @@ -40668,7 +40668,7 @@ func (c *PlacementStrategiesPatchCall) Do(opts ...googleapi.CallOption) (*Placem return ret, nil // { // "description": "Updates an existing placement strategy. This method supports patch semantics.", - // "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/placementStrategies", + // "flatPath": "userprofiles/{profileId}/placementStrategies", // "httpMethod": "PATCH", // "id": "dfareporting.placementStrategies.patch", // "parameterOrder": [ @@ -40691,7 +40691,7 @@ func (c *PlacementStrategiesPatchCall) Do(opts ...googleapi.CallOption) (*Placem // "type": "string" // } // }, - // "path": "dfareporting/v3.5/userprofiles/{profileId}/placementStrategies", + // "path": "userprofiles/{profileId}/placementStrategies", // "request": { // "$ref": "PlacementStrategy" // }, @@ -40766,7 +40766,7 @@ func (c *PlacementStrategiesUpdateCall) doRequest(alt string) (*http.Response, e reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v3.5/userprofiles/{profileId}/placementStrategies") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/placementStrategies") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("PUT", urls, body) if err != nil { @@ -40818,7 +40818,7 @@ func (c *PlacementStrategiesUpdateCall) Do(opts ...googleapi.CallOption) (*Place return ret, nil // { // "description": "Updates an existing placement strategy.", - // "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/placementStrategies", + // "flatPath": "userprofiles/{profileId}/placementStrategies", // "httpMethod": "PUT", // "id": "dfareporting.placementStrategies.update", // "parameterOrder": [ @@ -40833,7 +40833,7 @@ func (c *PlacementStrategiesUpdateCall) Do(opts ...googleapi.CallOption) (*Place // "type": "string" // } // }, - // "path": "dfareporting/v3.5/userprofiles/{profileId}/placementStrategies", + // "path": "userprofiles/{profileId}/placementStrategies", // "request": { // "$ref": "PlacementStrategy" // }, @@ -40950,7 +40950,7 @@ func (c *PlacementsGeneratetagsCall) doRequest(alt string) (*http.Response, erro var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v3.5/userprofiles/{profileId}/placements/generatetags") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/placements/generatetags") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -41002,7 +41002,7 @@ func (c *PlacementsGeneratetagsCall) Do(opts ...googleapi.CallOption) (*Placemen return ret, nil // { // "description": "Generates tags for a placement.", - // "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/placements/generatetags", + // "flatPath": "userprofiles/{profileId}/placements/generatetags", // "httpMethod": "POST", // "id": "dfareporting.placements.generatetags", // "parameterOrder": [ @@ -41080,7 +41080,7 @@ func (c *PlacementsGeneratetagsCall) Do(opts ...googleapi.CallOption) (*Placemen // "type": "string" // } // }, - // "path": "dfareporting/v3.5/userprofiles/{profileId}/placements/generatetags", + // "path": "userprofiles/{profileId}/placements/generatetags", // "response": { // "$ref": "PlacementsGenerateTagsResponse" // }, @@ -41162,7 +41162,7 @@ func (c *PlacementsGetCall) 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, "dfareporting/v3.5/userprofiles/{profileId}/placements/{id}") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/placements/{id}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -41215,7 +41215,7 @@ func (c *PlacementsGetCall) Do(opts ...googleapi.CallOption) (*Placement, error) return ret, nil // { // "description": "Gets one placement by ID.", - // "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/placements/{id}", + // "flatPath": "userprofiles/{profileId}/placements/{id}", // "httpMethod": "GET", // "id": "dfareporting.placements.get", // "parameterOrder": [ @@ -41238,7 +41238,7 @@ func (c *PlacementsGetCall) Do(opts ...googleapi.CallOption) (*Placement, error) // "type": "string" // } // }, - // "path": "dfareporting/v3.5/userprofiles/{profileId}/placements/{id}", + // "path": "userprofiles/{profileId}/placements/{id}", // "response": { // "$ref": "Placement" // }, @@ -41310,7 +41310,7 @@ func (c *PlacementsInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v3.5/userprofiles/{profileId}/placements") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/placements") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -41362,7 +41362,7 @@ func (c *PlacementsInsertCall) Do(opts ...googleapi.CallOption) (*Placement, err return ret, nil // { // "description": "Inserts a new placement.", - // "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/placements", + // "flatPath": "userprofiles/{profileId}/placements", // "httpMethod": "POST", // "id": "dfareporting.placements.insert", // "parameterOrder": [ @@ -41377,7 +41377,7 @@ func (c *PlacementsInsertCall) Do(opts ...googleapi.CallOption) (*Placement, err // "type": "string" // } // }, - // "path": "dfareporting/v3.5/userprofiles/{profileId}/placements", + // "path": "userprofiles/{profileId}/placements", // "request": { // "$ref": "Placement" // }, @@ -41702,7 +41702,7 @@ func (c *PlacementsListCall) 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, "dfareporting/v3.5/userprofiles/{profileId}/placements") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/placements") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -41754,7 +41754,7 @@ func (c *PlacementsListCall) Do(opts ...googleapi.CallOption) (*PlacementsListRe return ret, nil // { // "description": "Retrieves a list of placements, possibly filtered. This method supports paging.", - // "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/placements", + // "flatPath": "userprofiles/{profileId}/placements", // "httpMethod": "GET", // "id": "dfareporting.placements.list", // "parameterOrder": [ @@ -41961,7 +41961,7 @@ func (c *PlacementsListCall) Do(opts ...googleapi.CallOption) (*PlacementsListRe // "type": "string" // } // }, - // "path": "dfareporting/v3.5/userprofiles/{profileId}/placements", + // "path": "userprofiles/{profileId}/placements", // "response": { // "$ref": "PlacementsListResponse" // }, @@ -42057,7 +42057,7 @@ func (c *PlacementsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v3.5/userprofiles/{profileId}/placements") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/placements") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("PATCH", urls, body) if err != nil { @@ -42109,7 +42109,7 @@ func (c *PlacementsPatchCall) Do(opts ...googleapi.CallOption) (*Placement, erro return ret, nil // { // "description": "Updates an existing placement. This method supports patch semantics.", - // "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/placements", + // "flatPath": "userprofiles/{profileId}/placements", // "httpMethod": "PATCH", // "id": "dfareporting.placements.patch", // "parameterOrder": [ @@ -42132,7 +42132,7 @@ func (c *PlacementsPatchCall) Do(opts ...googleapi.CallOption) (*Placement, erro // "type": "string" // } // }, - // "path": "dfareporting/v3.5/userprofiles/{profileId}/placements", + // "path": "userprofiles/{profileId}/placements", // "request": { // "$ref": "Placement" // }, @@ -42207,7 +42207,7 @@ func (c *PlacementsUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v3.5/userprofiles/{profileId}/placements") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/placements") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("PUT", urls, body) if err != nil { @@ -42259,7 +42259,7 @@ func (c *PlacementsUpdateCall) Do(opts ...googleapi.CallOption) (*Placement, err return ret, nil // { // "description": "Updates an existing placement.", - // "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/placements", + // "flatPath": "userprofiles/{profileId}/placements", // "httpMethod": "PUT", // "id": "dfareporting.placements.update", // "parameterOrder": [ @@ -42274,7 +42274,7 @@ func (c *PlacementsUpdateCall) Do(opts ...googleapi.CallOption) (*Placement, err // "type": "string" // } // }, - // "path": "dfareporting/v3.5/userprofiles/{profileId}/placements", + // "path": "userprofiles/{profileId}/placements", // "request": { // "$ref": "Placement" // }, @@ -42359,7 +42359,7 @@ func (c *PlatformTypesGetCall) 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, "dfareporting/v3.5/userprofiles/{profileId}/platformTypes/{id}") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/platformTypes/{id}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -42412,7 +42412,7 @@ func (c *PlatformTypesGetCall) Do(opts ...googleapi.CallOption) (*PlatformType, return ret, nil // { // "description": "Gets one platform type by ID.", - // "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/platformTypes/{id}", + // "flatPath": "userprofiles/{profileId}/platformTypes/{id}", // "httpMethod": "GET", // "id": "dfareporting.platformTypes.get", // "parameterOrder": [ @@ -42435,7 +42435,7 @@ func (c *PlatformTypesGetCall) Do(opts ...googleapi.CallOption) (*PlatformType, // "type": "string" // } // }, - // "path": "dfareporting/v3.5/userprofiles/{profileId}/platformTypes/{id}", + // "path": "userprofiles/{profileId}/platformTypes/{id}", // "response": { // "$ref": "PlatformType" // }, @@ -42514,7 +42514,7 @@ func (c *PlatformTypesListCall) 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, "dfareporting/v3.5/userprofiles/{profileId}/platformTypes") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/platformTypes") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -42566,7 +42566,7 @@ func (c *PlatformTypesListCall) Do(opts ...googleapi.CallOption) (*PlatformTypes return ret, nil // { // "description": "Retrieves a list of platform types.", - // "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/platformTypes", + // "flatPath": "userprofiles/{profileId}/platformTypes", // "httpMethod": "GET", // "id": "dfareporting.platformTypes.list", // "parameterOrder": [ @@ -42581,7 +42581,7 @@ func (c *PlatformTypesListCall) Do(opts ...googleapi.CallOption) (*PlatformTypes // "type": "string" // } // }, - // "path": "dfareporting/v3.5/userprofiles/{profileId}/platformTypes", + // "path": "userprofiles/{profileId}/platformTypes", // "response": { // "$ref": "PlatformTypesListResponse" // }, @@ -42663,7 +42663,7 @@ func (c *PostalCodesGetCall) 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, "dfareporting/v3.5/userprofiles/{profileId}/postalCodes/{code}") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/postalCodes/{code}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -42716,7 +42716,7 @@ func (c *PostalCodesGetCall) Do(opts ...googleapi.CallOption) (*PostalCode, erro return ret, nil // { // "description": "Gets one postal code by ID.", - // "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/postalCodes/{code}", + // "flatPath": "userprofiles/{profileId}/postalCodes/{code}", // "httpMethod": "GET", // "id": "dfareporting.postalCodes.get", // "parameterOrder": [ @@ -42738,7 +42738,7 @@ func (c *PostalCodesGetCall) Do(opts ...googleapi.CallOption) (*PostalCode, erro // "type": "string" // } // }, - // "path": "dfareporting/v3.5/userprofiles/{profileId}/postalCodes/{code}", + // "path": "userprofiles/{profileId}/postalCodes/{code}", // "response": { // "$ref": "PostalCode" // }, @@ -42817,7 +42817,7 @@ func (c *PostalCodesListCall) 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, "dfareporting/v3.5/userprofiles/{profileId}/postalCodes") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/postalCodes") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -42869,7 +42869,7 @@ func (c *PostalCodesListCall) Do(opts ...googleapi.CallOption) (*PostalCodesList return ret, nil // { // "description": "Retrieves a list of postal codes.", - // "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/postalCodes", + // "flatPath": "userprofiles/{profileId}/postalCodes", // "httpMethod": "GET", // "id": "dfareporting.postalCodes.list", // "parameterOrder": [ @@ -42884,7 +42884,7 @@ func (c *PostalCodesListCall) Do(opts ...googleapi.CallOption) (*PostalCodesList // "type": "string" // } // }, - // "path": "dfareporting/v3.5/userprofiles/{profileId}/postalCodes", + // "path": "userprofiles/{profileId}/postalCodes", // "response": { // "$ref": "PostalCodesListResponse" // }, @@ -42966,7 +42966,7 @@ func (c *ProjectsGetCall) 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, "dfareporting/v3.5/userprofiles/{profileId}/projects/{id}") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/projects/{id}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -43019,7 +43019,7 @@ func (c *ProjectsGetCall) Do(opts ...googleapi.CallOption) (*Project, error) { return ret, nil // { // "description": "Gets one project by ID.", - // "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/projects/{id}", + // "flatPath": "userprofiles/{profileId}/projects/{id}", // "httpMethod": "GET", // "id": "dfareporting.projects.get", // "parameterOrder": [ @@ -43042,7 +43042,7 @@ func (c *ProjectsGetCall) Do(opts ...googleapi.CallOption) (*Project, error) { // "type": "string" // } // }, - // "path": "dfareporting/v3.5/userprofiles/{profileId}/projects/{id}", + // "path": "userprofiles/{profileId}/projects/{id}", // "response": { // "$ref": "Project" // }, @@ -43195,7 +43195,7 @@ func (c *ProjectsListCall) 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, "dfareporting/v3.5/userprofiles/{profileId}/projects") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/projects") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -43247,7 +43247,7 @@ func (c *ProjectsListCall) Do(opts ...googleapi.CallOption) (*ProjectsListRespon return ret, nil // { // "description": "Retrieves a list of projects, possibly filtered. This method supports paging .", - // "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/projects", + // "flatPath": "userprofiles/{profileId}/projects", // "httpMethod": "GET", // "id": "dfareporting.projects.list", // "parameterOrder": [ @@ -43323,7 +43323,7 @@ func (c *ProjectsListCall) Do(opts ...googleapi.CallOption) (*ProjectsListRespon // "type": "string" // } // }, - // "path": "dfareporting/v3.5/userprofiles/{profileId}/projects", + // "path": "userprofiles/{profileId}/projects", // "response": { // "$ref": "ProjectsListResponse" // }, @@ -43423,7 +43423,7 @@ func (c *RegionsListCall) 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, "dfareporting/v3.5/userprofiles/{profileId}/regions") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/regions") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -43475,7 +43475,7 @@ func (c *RegionsListCall) Do(opts ...googleapi.CallOption) (*RegionsListResponse return ret, nil // { // "description": "Retrieves a list of regions.", - // "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/regions", + // "flatPath": "userprofiles/{profileId}/regions", // "httpMethod": "GET", // "id": "dfareporting.regions.list", // "parameterOrder": [ @@ -43490,7 +43490,7 @@ func (c *RegionsListCall) Do(opts ...googleapi.CallOption) (*RegionsListResponse // "type": "string" // } // }, - // "path": "dfareporting/v3.5/userprofiles/{profileId}/regions", + // "path": "userprofiles/{profileId}/regions", // "response": { // "$ref": "RegionsListResponse" // }, @@ -43572,7 +43572,7 @@ func (c *RemarketingListSharesGetCall) doRequest(alt string) (*http.Response, er var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v3.5/userprofiles/{profileId}/remarketingListShares/{remarketingListId}") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/remarketingListShares/{remarketingListId}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -43625,7 +43625,7 @@ func (c *RemarketingListSharesGetCall) Do(opts ...googleapi.CallOption) (*Remark return ret, nil // { // "description": "Gets one remarketing list share by remarketing list ID.", - // "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/remarketingListShares/{remarketingListId}", + // "flatPath": "userprofiles/{profileId}/remarketingListShares/{remarketingListId}", // "httpMethod": "GET", // "id": "dfareporting.remarketingListShares.get", // "parameterOrder": [ @@ -43648,7 +43648,7 @@ func (c *RemarketingListSharesGetCall) Do(opts ...googleapi.CallOption) (*Remark // "type": "string" // } // }, - // "path": "dfareporting/v3.5/userprofiles/{profileId}/remarketingListShares/{remarketingListId}", + // "path": "userprofiles/{profileId}/remarketingListShares/{remarketingListId}", // "response": { // "$ref": "RemarketingListShare" // }, @@ -43723,7 +43723,7 @@ func (c *RemarketingListSharesPatchCall) doRequest(alt string) (*http.Response, reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v3.5/userprofiles/{profileId}/remarketingListShares") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/remarketingListShares") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("PATCH", urls, body) if err != nil { @@ -43775,7 +43775,7 @@ func (c *RemarketingListSharesPatchCall) Do(opts ...googleapi.CallOption) (*Rema return ret, nil // { // "description": "Updates an existing remarketing list share. This method supports patch semantics.", - // "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/remarketingListShares", + // "flatPath": "userprofiles/{profileId}/remarketingListShares", // "httpMethod": "PATCH", // "id": "dfareporting.remarketingListShares.patch", // "parameterOrder": [ @@ -43798,7 +43798,7 @@ func (c *RemarketingListSharesPatchCall) Do(opts ...googleapi.CallOption) (*Rema // "type": "string" // } // }, - // "path": "dfareporting/v3.5/userprofiles/{profileId}/remarketingListShares", + // "path": "userprofiles/{profileId}/remarketingListShares", // "request": { // "$ref": "RemarketingListShare" // }, @@ -43873,7 +43873,7 @@ func (c *RemarketingListSharesUpdateCall) doRequest(alt string) (*http.Response, reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v3.5/userprofiles/{profileId}/remarketingListShares") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/remarketingListShares") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("PUT", urls, body) if err != nil { @@ -43925,7 +43925,7 @@ func (c *RemarketingListSharesUpdateCall) Do(opts ...googleapi.CallOption) (*Rem return ret, nil // { // "description": "Updates an existing remarketing list share.", - // "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/remarketingListShares", + // "flatPath": "userprofiles/{profileId}/remarketingListShares", // "httpMethod": "PUT", // "id": "dfareporting.remarketingListShares.update", // "parameterOrder": [ @@ -43940,7 +43940,7 @@ func (c *RemarketingListSharesUpdateCall) Do(opts ...googleapi.CallOption) (*Rem // "type": "string" // } // }, - // "path": "dfareporting/v3.5/userprofiles/{profileId}/remarketingListShares", + // "path": "userprofiles/{profileId}/remarketingListShares", // "request": { // "$ref": "RemarketingListShare" // }, @@ -44025,7 +44025,7 @@ func (c *RemarketingListsGetCall) 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, "dfareporting/v3.5/userprofiles/{profileId}/remarketingLists/{id}") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/remarketingLists/{id}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -44078,7 +44078,7 @@ func (c *RemarketingListsGetCall) Do(opts ...googleapi.CallOption) (*Remarketing return ret, nil // { // "description": "Gets one remarketing list by ID.", - // "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/remarketingLists/{id}", + // "flatPath": "userprofiles/{profileId}/remarketingLists/{id}", // "httpMethod": "GET", // "id": "dfareporting.remarketingLists.get", // "parameterOrder": [ @@ -44101,7 +44101,7 @@ func (c *RemarketingListsGetCall) Do(opts ...googleapi.CallOption) (*Remarketing // "type": "string" // } // }, - // "path": "dfareporting/v3.5/userprofiles/{profileId}/remarketingLists/{id}", + // "path": "userprofiles/{profileId}/remarketingLists/{id}", // "response": { // "$ref": "RemarketingList" // }, @@ -44173,7 +44173,7 @@ func (c *RemarketingListsInsertCall) doRequest(alt string) (*http.Response, erro reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v3.5/userprofiles/{profileId}/remarketingLists") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/remarketingLists") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -44225,7 +44225,7 @@ func (c *RemarketingListsInsertCall) Do(opts ...googleapi.CallOption) (*Remarket return ret, nil // { // "description": "Inserts a new remarketing list.", - // "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/remarketingLists", + // "flatPath": "userprofiles/{profileId}/remarketingLists", // "httpMethod": "POST", // "id": "dfareporting.remarketingLists.insert", // "parameterOrder": [ @@ -44240,7 +44240,7 @@ func (c *RemarketingListsInsertCall) Do(opts ...googleapi.CallOption) (*Remarket // "type": "string" // } // }, - // "path": "dfareporting/v3.5/userprofiles/{profileId}/remarketingLists", + // "path": "userprofiles/{profileId}/remarketingLists", // "request": { // "$ref": "RemarketingList" // }, @@ -44392,7 +44392,7 @@ func (c *RemarketingListsListCall) 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, "dfareporting/v3.5/userprofiles/{profileId}/remarketingLists") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/remarketingLists") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -44444,7 +44444,7 @@ func (c *RemarketingListsListCall) Do(opts ...googleapi.CallOption) (*Remarketin return ret, nil // { // "description": "Retrieves a list of remarketing lists, possibly filtered. This method supports paging.", - // "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/remarketingLists", + // "flatPath": "userprofiles/{profileId}/remarketingLists", // "httpMethod": "GET", // "id": "dfareporting.remarketingLists.list", // "parameterOrder": [ @@ -44525,7 +44525,7 @@ func (c *RemarketingListsListCall) Do(opts ...googleapi.CallOption) (*Remarketin // "type": "string" // } // }, - // "path": "dfareporting/v3.5/userprofiles/{profileId}/remarketingLists", + // "path": "userprofiles/{profileId}/remarketingLists", // "response": { // "$ref": "RemarketingListsListResponse" // }, @@ -44621,7 +44621,7 @@ func (c *RemarketingListsPatchCall) doRequest(alt string) (*http.Response, error reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v3.5/userprofiles/{profileId}/remarketingLists") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/remarketingLists") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("PATCH", urls, body) if err != nil { @@ -44673,7 +44673,7 @@ func (c *RemarketingListsPatchCall) Do(opts ...googleapi.CallOption) (*Remarketi return ret, nil // { // "description": "Updates an existing remarketing list. This method supports patch semantics.", - // "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/remarketingLists", + // "flatPath": "userprofiles/{profileId}/remarketingLists", // "httpMethod": "PATCH", // "id": "dfareporting.remarketingLists.patch", // "parameterOrder": [ @@ -44696,7 +44696,7 @@ func (c *RemarketingListsPatchCall) Do(opts ...googleapi.CallOption) (*Remarketi // "type": "string" // } // }, - // "path": "dfareporting/v3.5/userprofiles/{profileId}/remarketingLists", + // "path": "userprofiles/{profileId}/remarketingLists", // "request": { // "$ref": "RemarketingList" // }, @@ -44771,7 +44771,7 @@ func (c *RemarketingListsUpdateCall) doRequest(alt string) (*http.Response, erro reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v3.5/userprofiles/{profileId}/remarketingLists") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/remarketingLists") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("PUT", urls, body) if err != nil { @@ -44823,7 +44823,7 @@ func (c *RemarketingListsUpdateCall) Do(opts ...googleapi.CallOption) (*Remarket return ret, nil // { // "description": "Updates an existing remarketing list.", - // "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/remarketingLists", + // "flatPath": "userprofiles/{profileId}/remarketingLists", // "httpMethod": "PUT", // "id": "dfareporting.remarketingLists.update", // "parameterOrder": [ @@ -44838,7 +44838,7 @@ func (c *RemarketingListsUpdateCall) Do(opts ...googleapi.CallOption) (*Remarket // "type": "string" // } // }, - // "path": "dfareporting/v3.5/userprofiles/{profileId}/remarketingLists", + // "path": "userprofiles/{profileId}/remarketingLists", // "request": { // "$ref": "RemarketingList" // }, @@ -44909,7 +44909,7 @@ func (c *ReportsDeleteCall) 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, "dfareporting/v3.5/userprofiles/{profileId}/reports/{reportId}") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/reports/{reportId}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("DELETE", urls, body) if err != nil { @@ -44937,7 +44937,7 @@ func (c *ReportsDeleteCall) Do(opts ...googleapi.CallOption) error { return nil // { // "description": "Deletes a report by its ID.", - // "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/reports/{reportId}", + // "flatPath": "userprofiles/{profileId}/reports/{reportId}", // "httpMethod": "DELETE", // "id": "dfareporting.reports.delete", // "parameterOrder": [ @@ -44960,7 +44960,7 @@ func (c *ReportsDeleteCall) Do(opts ...googleapi.CallOption) error { // "type": "string" // } // }, - // "path": "dfareporting/v3.5/userprofiles/{profileId}/reports/{reportId}", + // "path": "userprofiles/{profileId}/reports/{reportId}", // "scopes": [ // "https://www.googleapis.com/auth/dfareporting" // ] @@ -45039,7 +45039,7 @@ func (c *ReportsGetCall) 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, "dfareporting/v3.5/userprofiles/{profileId}/reports/{reportId}") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/reports/{reportId}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -45092,7 +45092,7 @@ func (c *ReportsGetCall) Do(opts ...googleapi.CallOption) (*Report, error) { return ret, nil // { // "description": "Retrieves a report by its ID.", - // "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/reports/{reportId}", + // "flatPath": "userprofiles/{profileId}/reports/{reportId}", // "httpMethod": "GET", // "id": "dfareporting.reports.get", // "parameterOrder": [ @@ -45115,7 +45115,7 @@ func (c *ReportsGetCall) Do(opts ...googleapi.CallOption) (*Report, error) { // "type": "string" // } // }, - // "path": "dfareporting/v3.5/userprofiles/{profileId}/reports/{reportId}", + // "path": "userprofiles/{profileId}/reports/{reportId}", // "response": { // "$ref": "Report" // }, @@ -45187,7 +45187,7 @@ func (c *ReportsInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v3.5/userprofiles/{profileId}/reports") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/reports") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -45239,7 +45239,7 @@ func (c *ReportsInsertCall) Do(opts ...googleapi.CallOption) (*Report, error) { return ret, nil // { // "description": "Creates a report.", - // "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/reports", + // "flatPath": "userprofiles/{profileId}/reports", // "httpMethod": "POST", // "id": "dfareporting.reports.insert", // "parameterOrder": [ @@ -45254,7 +45254,7 @@ func (c *ReportsInsertCall) Do(opts ...googleapi.CallOption) (*Report, error) { // "type": "string" // } // }, - // "path": "dfareporting/v3.5/userprofiles/{profileId}/reports", + // "path": "userprofiles/{profileId}/reports", // "request": { // "$ref": "Report" // }, @@ -45387,7 +45387,7 @@ func (c *ReportsListCall) 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, "dfareporting/v3.5/userprofiles/{profileId}/reports") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/reports") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -45439,7 +45439,7 @@ func (c *ReportsListCall) Do(opts ...googleapi.CallOption) (*ReportList, error) return ret, nil // { // "description": "Retrieves list of reports.", - // "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/reports", + // "flatPath": "userprofiles/{profileId}/reports", // "httpMethod": "GET", // "id": "dfareporting.reports.list", // "parameterOrder": [ @@ -45512,7 +45512,7 @@ func (c *ReportsListCall) Do(opts ...googleapi.CallOption) (*ReportList, error) // "type": "string" // } // }, - // "path": "dfareporting/v3.5/userprofiles/{profileId}/reports", + // "path": "userprofiles/{profileId}/reports", // "response": { // "$ref": "ReportList" // }, @@ -45609,7 +45609,7 @@ func (c *ReportsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v3.5/userprofiles/{profileId}/reports/{reportId}") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/reports/{reportId}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("PATCH", urls, body) if err != nil { @@ -45662,7 +45662,7 @@ func (c *ReportsPatchCall) Do(opts ...googleapi.CallOption) (*Report, error) { return ret, nil // { // "description": "Updates an existing report. This method supports patch semantics.", - // "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/reports/{reportId}", + // "flatPath": "userprofiles/{profileId}/reports/{reportId}", // "httpMethod": "PATCH", // "id": "dfareporting.reports.patch", // "parameterOrder": [ @@ -45685,7 +45685,7 @@ func (c *ReportsPatchCall) Do(opts ...googleapi.CallOption) (*Report, error) { // "type": "string" // } // }, - // "path": "dfareporting/v3.5/userprofiles/{profileId}/reports/{reportId}", + // "path": "userprofiles/{profileId}/reports/{reportId}", // "request": { // "$ref": "Report" // }, @@ -45763,7 +45763,7 @@ func (c *ReportsRunCall) 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, "dfareporting/v3.5/userprofiles/{profileId}/reports/{reportId}/run") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/reports/{reportId}/run") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -45816,7 +45816,7 @@ func (c *ReportsRunCall) Do(opts ...googleapi.CallOption) (*File, error) { return ret, nil // { // "description": "Runs a report.", - // "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/reports/{reportId}/run", + // "flatPath": "userprofiles/{profileId}/reports/{reportId}/run", // "httpMethod": "POST", // "id": "dfareporting.reports.run", // "parameterOrder": [ @@ -45845,7 +45845,7 @@ func (c *ReportsRunCall) Do(opts ...googleapi.CallOption) (*File, error) { // "type": "boolean" // } // }, - // "path": "dfareporting/v3.5/userprofiles/{profileId}/reports/{reportId}/run", + // "path": "userprofiles/{profileId}/reports/{reportId}/run", // "response": { // "$ref": "File" // }, @@ -45920,7 +45920,7 @@ func (c *ReportsUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v3.5/userprofiles/{profileId}/reports/{reportId}") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/reports/{reportId}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("PUT", urls, body) if err != nil { @@ -45973,7 +45973,7 @@ func (c *ReportsUpdateCall) Do(opts ...googleapi.CallOption) (*Report, error) { return ret, nil // { // "description": "Updates a report.", - // "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/reports/{reportId}", + // "flatPath": "userprofiles/{profileId}/reports/{reportId}", // "httpMethod": "PUT", // "id": "dfareporting.reports.update", // "parameterOrder": [ @@ -45996,7 +45996,7 @@ func (c *ReportsUpdateCall) Do(opts ...googleapi.CallOption) (*Report, error) { // "type": "string" // } // }, - // "path": "dfareporting/v3.5/userprofiles/{profileId}/reports/{reportId}", + // "path": "userprofiles/{profileId}/reports/{reportId}", // "request": { // "$ref": "Report" // }, @@ -46073,7 +46073,7 @@ func (c *ReportsCompatibleFieldsQueryCall) doRequest(alt string) (*http.Response reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v3.5/userprofiles/{profileId}/reports/compatiblefields/query") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/reports/compatiblefields/query") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -46125,7 +46125,7 @@ func (c *ReportsCompatibleFieldsQueryCall) Do(opts ...googleapi.CallOption) (*Co return ret, nil // { // "description": "Returns the fields that are compatible to be selected in the respective sections of a report criteria, given the fields already selected in the input report and user permissions.", - // "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/reports/compatiblefields/query", + // "flatPath": "userprofiles/{profileId}/reports/compatiblefields/query", // "httpMethod": "POST", // "id": "dfareporting.reports.compatibleFields.query", // "parameterOrder": [ @@ -46140,7 +46140,7 @@ func (c *ReportsCompatibleFieldsQueryCall) Do(opts ...googleapi.CallOption) (*Co // "type": "string" // } // }, - // "path": "dfareporting/v3.5/userprofiles/{profileId}/reports/compatiblefields/query", + // "path": "userprofiles/{profileId}/reports/compatiblefields/query", // "request": { // "$ref": "Report" // }, @@ -46229,7 +46229,7 @@ func (c *ReportsFilesGetCall) 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, "dfareporting/v3.5/userprofiles/{profileId}/reports/{reportId}/files/{fileId}") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/reports/{reportId}/files/{fileId}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -46299,7 +46299,7 @@ func (c *ReportsFilesGetCall) Do(opts ...googleapi.CallOption) (*File, error) { return ret, nil // { // "description": "Retrieves a report file by its report ID and file ID. This method supports media download.", - // "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/reports/{reportId}/files/{fileId}", + // "flatPath": "userprofiles/{profileId}/reports/{reportId}/files/{fileId}", // "httpMethod": "GET", // "id": "dfareporting.reports.files.get", // "parameterOrder": [ @@ -46330,7 +46330,7 @@ func (c *ReportsFilesGetCall) Do(opts ...googleapi.CallOption) (*File, error) { // "type": "string" // } // }, - // "path": "dfareporting/v3.5/userprofiles/{profileId}/reports/{reportId}/files/{fileId}", + // "path": "userprofiles/{profileId}/reports/{reportId}/files/{fileId}", // "response": { // "$ref": "File" // }, @@ -46451,7 +46451,7 @@ func (c *ReportsFilesListCall) 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, "dfareporting/v3.5/userprofiles/{profileId}/reports/{reportId}/files") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/reports/{reportId}/files") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -46504,7 +46504,7 @@ func (c *ReportsFilesListCall) Do(opts ...googleapi.CallOption) (*FileList, erro return ret, nil // { // "description": "Lists files for a report.", - // "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/reports/{reportId}/files", + // "flatPath": "userprofiles/{profileId}/reports/{reportId}/files", // "httpMethod": "GET", // "id": "dfareporting.reports.files.list", // "parameterOrder": [ @@ -46569,7 +46569,7 @@ func (c *ReportsFilesListCall) Do(opts ...googleapi.CallOption) (*FileList, erro // "type": "string" // } // }, - // "path": "dfareporting/v3.5/userprofiles/{profileId}/reports/{reportId}/files", + // "path": "userprofiles/{profileId}/reports/{reportId}/files", // "response": { // "$ref": "FileList" // }, @@ -46672,7 +46672,7 @@ func (c *SitesGetCall) 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, "dfareporting/v3.5/userprofiles/{profileId}/sites/{id}") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/sites/{id}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -46725,7 +46725,7 @@ func (c *SitesGetCall) Do(opts ...googleapi.CallOption) (*Site, error) { return ret, nil // { // "description": "Gets one site by ID.", - // "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/sites/{id}", + // "flatPath": "userprofiles/{profileId}/sites/{id}", // "httpMethod": "GET", // "id": "dfareporting.sites.get", // "parameterOrder": [ @@ -46748,7 +46748,7 @@ func (c *SitesGetCall) Do(opts ...googleapi.CallOption) (*Site, error) { // "type": "string" // } // }, - // "path": "dfareporting/v3.5/userprofiles/{profileId}/sites/{id}", + // "path": "userprofiles/{profileId}/sites/{id}", // "response": { // "$ref": "Site" // }, @@ -46820,7 +46820,7 @@ func (c *SitesInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v3.5/userprofiles/{profileId}/sites") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/sites") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -46872,7 +46872,7 @@ func (c *SitesInsertCall) Do(opts ...googleapi.CallOption) (*Site, error) { return ret, nil // { // "description": "Inserts a new site.", - // "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/sites", + // "flatPath": "userprofiles/{profileId}/sites", // "httpMethod": "POST", // "id": "dfareporting.sites.insert", // "parameterOrder": [ @@ -46887,7 +46887,7 @@ func (c *SitesInsertCall) Do(opts ...googleapi.CallOption) (*Site, error) { // "type": "string" // } // }, - // "path": "dfareporting/v3.5/userprofiles/{profileId}/sites", + // "path": "userprofiles/{profileId}/sites", // "request": { // "$ref": "Site" // }, @@ -47105,7 +47105,7 @@ func (c *SitesListCall) 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, "dfareporting/v3.5/userprofiles/{profileId}/sites") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/sites") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -47157,7 +47157,7 @@ func (c *SitesListCall) Do(opts ...googleapi.CallOption) (*SitesListResponse, er return ret, nil // { // "description": "Retrieves a list of sites, possibly filtered. This method supports paging.", - // "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/sites", + // "flatPath": "userprofiles/{profileId}/sites", // "httpMethod": "GET", // "id": "dfareporting.sites.list", // "parameterOrder": [ @@ -47276,7 +47276,7 @@ func (c *SitesListCall) Do(opts ...googleapi.CallOption) (*SitesListResponse, er // "type": "boolean" // } // }, - // "path": "dfareporting/v3.5/userprofiles/{profileId}/sites", + // "path": "userprofiles/{profileId}/sites", // "response": { // "$ref": "SitesListResponse" // }, @@ -47372,7 +47372,7 @@ func (c *SitesPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v3.5/userprofiles/{profileId}/sites") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/sites") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("PATCH", urls, body) if err != nil { @@ -47424,7 +47424,7 @@ func (c *SitesPatchCall) Do(opts ...googleapi.CallOption) (*Site, error) { return ret, nil // { // "description": "Updates an existing site. This method supports patch semantics.", - // "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/sites", + // "flatPath": "userprofiles/{profileId}/sites", // "httpMethod": "PATCH", // "id": "dfareporting.sites.patch", // "parameterOrder": [ @@ -47447,7 +47447,7 @@ func (c *SitesPatchCall) Do(opts ...googleapi.CallOption) (*Site, error) { // "type": "string" // } // }, - // "path": "dfareporting/v3.5/userprofiles/{profileId}/sites", + // "path": "userprofiles/{profileId}/sites", // "request": { // "$ref": "Site" // }, @@ -47522,7 +47522,7 @@ func (c *SitesUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v3.5/userprofiles/{profileId}/sites") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/sites") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("PUT", urls, body) if err != nil { @@ -47574,7 +47574,7 @@ func (c *SitesUpdateCall) Do(opts ...googleapi.CallOption) (*Site, error) { return ret, nil // { // "description": "Updates an existing site.", - // "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/sites", + // "flatPath": "userprofiles/{profileId}/sites", // "httpMethod": "PUT", // "id": "dfareporting.sites.update", // "parameterOrder": [ @@ -47589,7 +47589,7 @@ func (c *SitesUpdateCall) Do(opts ...googleapi.CallOption) (*Site, error) { // "type": "string" // } // }, - // "path": "dfareporting/v3.5/userprofiles/{profileId}/sites", + // "path": "userprofiles/{profileId}/sites", // "request": { // "$ref": "Site" // }, @@ -47674,7 +47674,7 @@ func (c *SizesGetCall) 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, "dfareporting/v3.5/userprofiles/{profileId}/sizes/{id}") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/sizes/{id}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -47727,7 +47727,7 @@ func (c *SizesGetCall) Do(opts ...googleapi.CallOption) (*Size, error) { return ret, nil // { // "description": "Gets one size by ID.", - // "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/sizes/{id}", + // "flatPath": "userprofiles/{profileId}/sizes/{id}", // "httpMethod": "GET", // "id": "dfareporting.sizes.get", // "parameterOrder": [ @@ -47750,7 +47750,7 @@ func (c *SizesGetCall) Do(opts ...googleapi.CallOption) (*Size, error) { // "type": "string" // } // }, - // "path": "dfareporting/v3.5/userprofiles/{profileId}/sizes/{id}", + // "path": "userprofiles/{profileId}/sizes/{id}", // "response": { // "$ref": "Size" // }, @@ -47822,7 +47822,7 @@ func (c *SizesInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v3.5/userprofiles/{profileId}/sizes") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/sizes") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -47874,7 +47874,7 @@ func (c *SizesInsertCall) Do(opts ...googleapi.CallOption) (*Size, error) { return ret, nil // { // "description": "Inserts a new size.", - // "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/sizes", + // "flatPath": "userprofiles/{profileId}/sizes", // "httpMethod": "POST", // "id": "dfareporting.sizes.insert", // "parameterOrder": [ @@ -47889,7 +47889,7 @@ func (c *SizesInsertCall) Do(opts ...googleapi.CallOption) (*Size, error) { // "type": "string" // } // }, - // "path": "dfareporting/v3.5/userprofiles/{profileId}/sizes", + // "path": "userprofiles/{profileId}/sizes", // "request": { // "$ref": "Size" // }, @@ -48006,7 +48006,7 @@ func (c *SizesListCall) 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, "dfareporting/v3.5/userprofiles/{profileId}/sizes") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/sizes") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -48058,7 +48058,7 @@ func (c *SizesListCall) Do(opts ...googleapi.CallOption) (*SizesListResponse, er return ret, nil // { // "description": "Retrieves a list of sizes, possibly filtered. Retrieved sizes are globally unique and may include values not currently in use by your account. Due to this, the list of sizes returned by this method may differ from the list seen in the Trafficking UI.", - // "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/sizes", + // "flatPath": "userprofiles/{profileId}/sizes", // "httpMethod": "GET", // "id": "dfareporting.sizes.list", // "parameterOrder": [ @@ -48101,7 +48101,7 @@ func (c *SizesListCall) Do(opts ...googleapi.CallOption) (*SizesListResponse, er // "type": "integer" // } // }, - // "path": "dfareporting/v3.5/userprofiles/{profileId}/sizes", + // "path": "userprofiles/{profileId}/sizes", // "response": { // "$ref": "SizesListResponse" // }, @@ -48183,7 +48183,7 @@ func (c *SubaccountsGetCall) 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, "dfareporting/v3.5/userprofiles/{profileId}/subaccounts/{id}") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/subaccounts/{id}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -48236,7 +48236,7 @@ func (c *SubaccountsGetCall) Do(opts ...googleapi.CallOption) (*Subaccount, erro return ret, nil // { // "description": "Gets one subaccount by ID.", - // "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/subaccounts/{id}", + // "flatPath": "userprofiles/{profileId}/subaccounts/{id}", // "httpMethod": "GET", // "id": "dfareporting.subaccounts.get", // "parameterOrder": [ @@ -48259,7 +48259,7 @@ func (c *SubaccountsGetCall) Do(opts ...googleapi.CallOption) (*Subaccount, erro // "type": "string" // } // }, - // "path": "dfareporting/v3.5/userprofiles/{profileId}/subaccounts/{id}", + // "path": "userprofiles/{profileId}/subaccounts/{id}", // "response": { // "$ref": "Subaccount" // }, @@ -48331,7 +48331,7 @@ func (c *SubaccountsInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v3.5/userprofiles/{profileId}/subaccounts") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/subaccounts") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -48383,7 +48383,7 @@ func (c *SubaccountsInsertCall) Do(opts ...googleapi.CallOption) (*Subaccount, e return ret, nil // { // "description": "Inserts a new subaccount.", - // "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/subaccounts", + // "flatPath": "userprofiles/{profileId}/subaccounts", // "httpMethod": "POST", // "id": "dfareporting.subaccounts.insert", // "parameterOrder": [ @@ -48398,7 +48398,7 @@ func (c *SubaccountsInsertCall) Do(opts ...googleapi.CallOption) (*Subaccount, e // "type": "string" // } // }, - // "path": "dfareporting/v3.5/userprofiles/{profileId}/subaccounts", + // "path": "userprofiles/{profileId}/subaccounts", // "request": { // "$ref": "Subaccount" // }, @@ -48543,7 +48543,7 @@ func (c *SubaccountsListCall) 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, "dfareporting/v3.5/userprofiles/{profileId}/subaccounts") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/subaccounts") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -48595,7 +48595,7 @@ func (c *SubaccountsListCall) Do(opts ...googleapi.CallOption) (*SubaccountsList return ret, nil // { // "description": "Gets a list of subaccounts, possibly filtered. This method supports paging.", - // "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/subaccounts", + // "flatPath": "userprofiles/{profileId}/subaccounts", // "httpMethod": "GET", // "id": "dfareporting.subaccounts.list", // "parameterOrder": [ @@ -48664,7 +48664,7 @@ func (c *SubaccountsListCall) Do(opts ...googleapi.CallOption) (*SubaccountsList // "type": "string" // } // }, - // "path": "dfareporting/v3.5/userprofiles/{profileId}/subaccounts", + // "path": "userprofiles/{profileId}/subaccounts", // "response": { // "$ref": "SubaccountsListResponse" // }, @@ -48760,7 +48760,7 @@ func (c *SubaccountsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v3.5/userprofiles/{profileId}/subaccounts") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/subaccounts") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("PATCH", urls, body) if err != nil { @@ -48812,7 +48812,7 @@ func (c *SubaccountsPatchCall) Do(opts ...googleapi.CallOption) (*Subaccount, er return ret, nil // { // "description": "Updates an existing subaccount. This method supports patch semantics.", - // "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/subaccounts", + // "flatPath": "userprofiles/{profileId}/subaccounts", // "httpMethod": "PATCH", // "id": "dfareporting.subaccounts.patch", // "parameterOrder": [ @@ -48835,7 +48835,7 @@ func (c *SubaccountsPatchCall) Do(opts ...googleapi.CallOption) (*Subaccount, er // "type": "string" // } // }, - // "path": "dfareporting/v3.5/userprofiles/{profileId}/subaccounts", + // "path": "userprofiles/{profileId}/subaccounts", // "request": { // "$ref": "Subaccount" // }, @@ -48910,7 +48910,7 @@ func (c *SubaccountsUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v3.5/userprofiles/{profileId}/subaccounts") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/subaccounts") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("PUT", urls, body) if err != nil { @@ -48962,7 +48962,7 @@ func (c *SubaccountsUpdateCall) Do(opts ...googleapi.CallOption) (*Subaccount, e return ret, nil // { // "description": "Updates an existing subaccount.", - // "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/subaccounts", + // "flatPath": "userprofiles/{profileId}/subaccounts", // "httpMethod": "PUT", // "id": "dfareporting.subaccounts.update", // "parameterOrder": [ @@ -48977,7 +48977,7 @@ func (c *SubaccountsUpdateCall) Do(opts ...googleapi.CallOption) (*Subaccount, e // "type": "string" // } // }, - // "path": "dfareporting/v3.5/userprofiles/{profileId}/subaccounts", + // "path": "userprofiles/{profileId}/subaccounts", // "request": { // "$ref": "Subaccount" // }, @@ -49062,7 +49062,7 @@ func (c *TargetableRemarketingListsGetCall) doRequest(alt string) (*http.Respons var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v3.5/userprofiles/{profileId}/targetableRemarketingLists/{id}") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/targetableRemarketingLists/{id}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -49115,7 +49115,7 @@ func (c *TargetableRemarketingListsGetCall) Do(opts ...googleapi.CallOption) (*T return ret, nil // { // "description": "Gets one remarketing list by ID.", - // "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/targetableRemarketingLists/{id}", + // "flatPath": "userprofiles/{profileId}/targetableRemarketingLists/{id}", // "httpMethod": "GET", // "id": "dfareporting.targetableRemarketingLists.get", // "parameterOrder": [ @@ -49138,7 +49138,7 @@ func (c *TargetableRemarketingListsGetCall) Do(opts ...googleapi.CallOption) (*T // "type": "string" // } // }, - // "path": "dfareporting/v3.5/userprofiles/{profileId}/targetableRemarketingLists/{id}", + // "path": "userprofiles/{profileId}/targetableRemarketingLists/{id}", // "response": { // "$ref": "TargetableRemarketingList" // }, @@ -49279,7 +49279,7 @@ func (c *TargetableRemarketingListsListCall) doRequest(alt string) (*http.Respon var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v3.5/userprofiles/{profileId}/targetableRemarketingLists") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/targetableRemarketingLists") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -49332,7 +49332,7 @@ func (c *TargetableRemarketingListsListCall) Do(opts ...googleapi.CallOption) (* return ret, nil // { // "description": "Retrieves a list of targetable remarketing lists, possibly filtered. This method supports paging.", - // "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/targetableRemarketingLists", + // "flatPath": "userprofiles/{profileId}/targetableRemarketingLists", // "httpMethod": "GET", // "id": "dfareporting.targetableRemarketingLists.list", // "parameterOrder": [ @@ -49407,7 +49407,7 @@ func (c *TargetableRemarketingListsListCall) Do(opts ...googleapi.CallOption) (* // "type": "string" // } // }, - // "path": "dfareporting/v3.5/userprofiles/{profileId}/targetableRemarketingLists", + // "path": "userprofiles/{profileId}/targetableRemarketingLists", // "response": { // "$ref": "TargetableRemarketingListsListResponse" // }, @@ -49510,7 +49510,7 @@ func (c *TargetingTemplatesGetCall) 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, "dfareporting/v3.5/userprofiles/{profileId}/targetingTemplates/{id}") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/targetingTemplates/{id}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -49563,7 +49563,7 @@ func (c *TargetingTemplatesGetCall) Do(opts ...googleapi.CallOption) (*Targeting return ret, nil // { // "description": "Gets one targeting template by ID.", - // "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/targetingTemplates/{id}", + // "flatPath": "userprofiles/{profileId}/targetingTemplates/{id}", // "httpMethod": "GET", // "id": "dfareporting.targetingTemplates.get", // "parameterOrder": [ @@ -49586,7 +49586,7 @@ func (c *TargetingTemplatesGetCall) Do(opts ...googleapi.CallOption) (*Targeting // "type": "string" // } // }, - // "path": "dfareporting/v3.5/userprofiles/{profileId}/targetingTemplates/{id}", + // "path": "userprofiles/{profileId}/targetingTemplates/{id}", // "response": { // "$ref": "TargetingTemplate" // }, @@ -49658,7 +49658,7 @@ func (c *TargetingTemplatesInsertCall) doRequest(alt string) (*http.Response, er reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v3.5/userprofiles/{profileId}/targetingTemplates") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/targetingTemplates") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -49710,7 +49710,7 @@ func (c *TargetingTemplatesInsertCall) Do(opts ...googleapi.CallOption) (*Target return ret, nil // { // "description": "Inserts a new targeting template.", - // "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/targetingTemplates", + // "flatPath": "userprofiles/{profileId}/targetingTemplates", // "httpMethod": "POST", // "id": "dfareporting.targetingTemplates.insert", // "parameterOrder": [ @@ -49725,7 +49725,7 @@ func (c *TargetingTemplatesInsertCall) Do(opts ...googleapi.CallOption) (*Target // "type": "string" // } // }, - // "path": "dfareporting/v3.5/userprofiles/{profileId}/targetingTemplates", + // "path": "userprofiles/{profileId}/targetingTemplates", // "request": { // "$ref": "TargetingTemplate" // }, @@ -49877,7 +49877,7 @@ func (c *TargetingTemplatesListCall) doRequest(alt string) (*http.Response, erro var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v3.5/userprofiles/{profileId}/targetingTemplates") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/targetingTemplates") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -49929,7 +49929,7 @@ func (c *TargetingTemplatesListCall) Do(opts ...googleapi.CallOption) (*Targetin return ret, nil // { // "description": "Retrieves a list of targeting templates, optionally filtered. This method supports paging.", - // "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/targetingTemplates", + // "flatPath": "userprofiles/{profileId}/targetingTemplates", // "httpMethod": "GET", // "id": "dfareporting.targetingTemplates.list", // "parameterOrder": [ @@ -50004,7 +50004,7 @@ func (c *TargetingTemplatesListCall) Do(opts ...googleapi.CallOption) (*Targetin // "type": "string" // } // }, - // "path": "dfareporting/v3.5/userprofiles/{profileId}/targetingTemplates", + // "path": "userprofiles/{profileId}/targetingTemplates", // "response": { // "$ref": "TargetingTemplatesListResponse" // }, @@ -50100,7 +50100,7 @@ func (c *TargetingTemplatesPatchCall) doRequest(alt string) (*http.Response, err reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v3.5/userprofiles/{profileId}/targetingTemplates") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/targetingTemplates") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("PATCH", urls, body) if err != nil { @@ -50152,7 +50152,7 @@ func (c *TargetingTemplatesPatchCall) Do(opts ...googleapi.CallOption) (*Targeti return ret, nil // { // "description": "Updates an existing targeting template. This method supports patch semantics.", - // "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/targetingTemplates", + // "flatPath": "userprofiles/{profileId}/targetingTemplates", // "httpMethod": "PATCH", // "id": "dfareporting.targetingTemplates.patch", // "parameterOrder": [ @@ -50175,7 +50175,7 @@ func (c *TargetingTemplatesPatchCall) Do(opts ...googleapi.CallOption) (*Targeti // "type": "string" // } // }, - // "path": "dfareporting/v3.5/userprofiles/{profileId}/targetingTemplates", + // "path": "userprofiles/{profileId}/targetingTemplates", // "request": { // "$ref": "TargetingTemplate" // }, @@ -50250,7 +50250,7 @@ func (c *TargetingTemplatesUpdateCall) doRequest(alt string) (*http.Response, er reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v3.5/userprofiles/{profileId}/targetingTemplates") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/targetingTemplates") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("PUT", urls, body) if err != nil { @@ -50302,7 +50302,7 @@ func (c *TargetingTemplatesUpdateCall) Do(opts ...googleapi.CallOption) (*Target return ret, nil // { // "description": "Updates an existing targeting template.", - // "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/targetingTemplates", + // "flatPath": "userprofiles/{profileId}/targetingTemplates", // "httpMethod": "PUT", // "id": "dfareporting.targetingTemplates.update", // "parameterOrder": [ @@ -50317,7 +50317,7 @@ func (c *TargetingTemplatesUpdateCall) Do(opts ...googleapi.CallOption) (*Target // "type": "string" // } // }, - // "path": "dfareporting/v3.5/userprofiles/{profileId}/targetingTemplates", + // "path": "userprofiles/{profileId}/targetingTemplates", // "request": { // "$ref": "TargetingTemplate" // }, @@ -50399,7 +50399,7 @@ func (c *UserProfilesGetCall) 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, "dfareporting/v3.5/userprofiles/{profileId}") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -50451,7 +50451,7 @@ func (c *UserProfilesGetCall) Do(opts ...googleapi.CallOption) (*UserProfile, er return ret, nil // { // "description": "Gets one user profile by ID.", - // "flatPath": "dfareporting/v3.5/userprofiles/{profileId}", + // "flatPath": "userprofiles/{profileId}", // "httpMethod": "GET", // "id": "dfareporting.userProfiles.get", // "parameterOrder": [ @@ -50466,7 +50466,7 @@ func (c *UserProfilesGetCall) Do(opts ...googleapi.CallOption) (*UserProfile, er // "type": "string" // } // }, - // "path": "dfareporting/v3.5/userprofiles/{profileId}", + // "path": "userprofiles/{profileId}", // "response": { // "$ref": "UserProfile" // }, @@ -50543,7 +50543,7 @@ func (c *UserProfilesListCall) 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, "dfareporting/v3.5/userprofiles") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -50592,12 +50592,12 @@ func (c *UserProfilesListCall) Do(opts ...googleapi.CallOption) (*UserProfileLis return ret, nil // { // "description": "Retrieves list of user profiles for a user.", - // "flatPath": "dfareporting/v3.5/userprofiles", + // "flatPath": "userprofiles", // "httpMethod": "GET", // "id": "dfareporting.userProfiles.list", // "parameterOrder": [], // "parameters": {}, - // "path": "dfareporting/v3.5/userprofiles", + // "path": "userprofiles", // "response": { // "$ref": "UserProfileList" // }, @@ -50681,7 +50681,7 @@ func (c *UserRolePermissionGroupsGetCall) doRequest(alt string) (*http.Response, var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v3.5/userprofiles/{profileId}/userRolePermissionGroups/{id}") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/userRolePermissionGroups/{id}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -50734,7 +50734,7 @@ func (c *UserRolePermissionGroupsGetCall) Do(opts ...googleapi.CallOption) (*Use return ret, nil // { // "description": "Gets one user role permission group by ID.", - // "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/userRolePermissionGroups/{id}", + // "flatPath": "userprofiles/{profileId}/userRolePermissionGroups/{id}", // "httpMethod": "GET", // "id": "dfareporting.userRolePermissionGroups.get", // "parameterOrder": [ @@ -50757,7 +50757,7 @@ func (c *UserRolePermissionGroupsGetCall) Do(opts ...googleapi.CallOption) (*Use // "type": "string" // } // }, - // "path": "dfareporting/v3.5/userprofiles/{profileId}/userRolePermissionGroups/{id}", + // "path": "userprofiles/{profileId}/userRolePermissionGroups/{id}", // "response": { // "$ref": "UserRolePermissionGroup" // }, @@ -50836,7 +50836,7 @@ func (c *UserRolePermissionGroupsListCall) doRequest(alt string) (*http.Response var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v3.5/userprofiles/{profileId}/userRolePermissionGroups") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/userRolePermissionGroups") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -50889,7 +50889,7 @@ func (c *UserRolePermissionGroupsListCall) Do(opts ...googleapi.CallOption) (*Us return ret, nil // { // "description": "Gets a list of all supported user role permission groups.", - // "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/userRolePermissionGroups", + // "flatPath": "userprofiles/{profileId}/userRolePermissionGroups", // "httpMethod": "GET", // "id": "dfareporting.userRolePermissionGroups.list", // "parameterOrder": [ @@ -50904,7 +50904,7 @@ func (c *UserRolePermissionGroupsListCall) Do(opts ...googleapi.CallOption) (*Us // "type": "string" // } // }, - // "path": "dfareporting/v3.5/userprofiles/{profileId}/userRolePermissionGroups", + // "path": "userprofiles/{profileId}/userRolePermissionGroups", // "response": { // "$ref": "UserRolePermissionGroupsListResponse" // }, @@ -50986,7 +50986,7 @@ func (c *UserRolePermissionsGetCall) doRequest(alt string) (*http.Response, erro var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v3.5/userprofiles/{profileId}/userRolePermissions/{id}") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/userRolePermissions/{id}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -51039,7 +51039,7 @@ func (c *UserRolePermissionsGetCall) Do(opts ...googleapi.CallOption) (*UserRole return ret, nil // { // "description": "Gets one user role permission by ID.", - // "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/userRolePermissions/{id}", + // "flatPath": "userprofiles/{profileId}/userRolePermissions/{id}", // "httpMethod": "GET", // "id": "dfareporting.userRolePermissions.get", // "parameterOrder": [ @@ -51062,7 +51062,7 @@ func (c *UserRolePermissionsGetCall) Do(opts ...googleapi.CallOption) (*UserRole // "type": "string" // } // }, - // "path": "dfareporting/v3.5/userprofiles/{profileId}/userRolePermissions/{id}", + // "path": "userprofiles/{profileId}/userRolePermissions/{id}", // "response": { // "$ref": "UserRolePermission" // }, @@ -51152,7 +51152,7 @@ func (c *UserRolePermissionsListCall) doRequest(alt string) (*http.Response, err var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v3.5/userprofiles/{profileId}/userRolePermissions") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/userRolePermissions") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -51204,7 +51204,7 @@ func (c *UserRolePermissionsListCall) Do(opts ...googleapi.CallOption) (*UserRol return ret, nil // { // "description": "Gets a list of user role permissions, possibly filtered.", - // "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/userRolePermissions", + // "flatPath": "userprofiles/{profileId}/userRolePermissions", // "httpMethod": "GET", // "id": "dfareporting.userRolePermissions.list", // "parameterOrder": [ @@ -51226,7 +51226,7 @@ func (c *UserRolePermissionsListCall) Do(opts ...googleapi.CallOption) (*UserRol // "type": "string" // } // }, - // "path": "dfareporting/v3.5/userprofiles/{profileId}/userRolePermissions", + // "path": "userprofiles/{profileId}/userRolePermissions", // "response": { // "$ref": "UserRolePermissionsListResponse" // }, @@ -51294,7 +51294,7 @@ func (c *UserRolesDeleteCall) 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, "dfareporting/v3.5/userprofiles/{profileId}/userRoles/{id}") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/userRoles/{id}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("DELETE", urls, body) if err != nil { @@ -51322,7 +51322,7 @@ func (c *UserRolesDeleteCall) Do(opts ...googleapi.CallOption) error { return nil // { // "description": "Deletes an existing user role.", - // "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/userRoles/{id}", + // "flatPath": "userprofiles/{profileId}/userRoles/{id}", // "httpMethod": "DELETE", // "id": "dfareporting.userRoles.delete", // "parameterOrder": [ @@ -51345,7 +51345,7 @@ func (c *UserRolesDeleteCall) Do(opts ...googleapi.CallOption) error { // "type": "string" // } // }, - // "path": "dfareporting/v3.5/userprofiles/{profileId}/userRoles/{id}", + // "path": "userprofiles/{profileId}/userRoles/{id}", // "scopes": [ // "https://www.googleapis.com/auth/dfatrafficking" // ] @@ -51424,7 +51424,7 @@ func (c *UserRolesGetCall) 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, "dfareporting/v3.5/userprofiles/{profileId}/userRoles/{id}") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/userRoles/{id}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -51477,7 +51477,7 @@ func (c *UserRolesGetCall) Do(opts ...googleapi.CallOption) (*UserRole, error) { return ret, nil // { // "description": "Gets one user role by ID.", - // "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/userRoles/{id}", + // "flatPath": "userprofiles/{profileId}/userRoles/{id}", // "httpMethod": "GET", // "id": "dfareporting.userRoles.get", // "parameterOrder": [ @@ -51500,7 +51500,7 @@ func (c *UserRolesGetCall) Do(opts ...googleapi.CallOption) (*UserRole, error) { // "type": "string" // } // }, - // "path": "dfareporting/v3.5/userprofiles/{profileId}/userRoles/{id}", + // "path": "userprofiles/{profileId}/userRoles/{id}", // "response": { // "$ref": "UserRole" // }, @@ -51572,7 +51572,7 @@ func (c *UserRolesInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v3.5/userprofiles/{profileId}/userRoles") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/userRoles") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -51624,7 +51624,7 @@ func (c *UserRolesInsertCall) Do(opts ...googleapi.CallOption) (*UserRole, error return ret, nil // { // "description": "Inserts a new user role.", - // "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/userRoles", + // "flatPath": "userprofiles/{profileId}/userRoles", // "httpMethod": "POST", // "id": "dfareporting.userRoles.insert", // "parameterOrder": [ @@ -51639,7 +51639,7 @@ func (c *UserRolesInsertCall) Do(opts ...googleapi.CallOption) (*UserRole, error // "type": "string" // } // }, - // "path": "dfareporting/v3.5/userprofiles/{profileId}/userRoles", + // "path": "userprofiles/{profileId}/userRoles", // "request": { // "$ref": "UserRole" // }, @@ -51799,7 +51799,7 @@ func (c *UserRolesListCall) 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, "dfareporting/v3.5/userprofiles/{profileId}/userRoles") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/userRoles") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -51851,7 +51851,7 @@ func (c *UserRolesListCall) Do(opts ...googleapi.CallOption) (*UserRolesListResp return ret, nil // { // "description": "Retrieves a list of user roles, possibly filtered. This method supports paging.", - // "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/userRoles", + // "flatPath": "userprofiles/{profileId}/userRoles", // "httpMethod": "GET", // "id": "dfareporting.userRoles.list", // "parameterOrder": [ @@ -51931,7 +51931,7 @@ func (c *UserRolesListCall) Do(opts ...googleapi.CallOption) (*UserRolesListResp // "type": "string" // } // }, - // "path": "dfareporting/v3.5/userprofiles/{profileId}/userRoles", + // "path": "userprofiles/{profileId}/userRoles", // "response": { // "$ref": "UserRolesListResponse" // }, @@ -52027,7 +52027,7 @@ func (c *UserRolesPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v3.5/userprofiles/{profileId}/userRoles") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/userRoles") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("PATCH", urls, body) if err != nil { @@ -52079,7 +52079,7 @@ func (c *UserRolesPatchCall) Do(opts ...googleapi.CallOption) (*UserRole, error) return ret, nil // { // "description": "Updates an existing user role. This method supports patch semantics.", - // "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/userRoles", + // "flatPath": "userprofiles/{profileId}/userRoles", // "httpMethod": "PATCH", // "id": "dfareporting.userRoles.patch", // "parameterOrder": [ @@ -52102,7 +52102,7 @@ func (c *UserRolesPatchCall) Do(opts ...googleapi.CallOption) (*UserRole, error) // "type": "string" // } // }, - // "path": "dfareporting/v3.5/userprofiles/{profileId}/userRoles", + // "path": "userprofiles/{profileId}/userRoles", // "request": { // "$ref": "UserRole" // }, @@ -52177,7 +52177,7 @@ func (c *UserRolesUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v3.5/userprofiles/{profileId}/userRoles") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/userRoles") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("PUT", urls, body) if err != nil { @@ -52229,7 +52229,7 @@ func (c *UserRolesUpdateCall) Do(opts ...googleapi.CallOption) (*UserRole, error return ret, nil // { // "description": "Updates an existing user role.", - // "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/userRoles", + // "flatPath": "userprofiles/{profileId}/userRoles", // "httpMethod": "PUT", // "id": "dfareporting.userRoles.update", // "parameterOrder": [ @@ -52244,7 +52244,7 @@ func (c *UserRolesUpdateCall) Do(opts ...googleapi.CallOption) (*UserRole, error // "type": "string" // } // }, - // "path": "dfareporting/v3.5/userprofiles/{profileId}/userRoles", + // "path": "userprofiles/{profileId}/userRoles", // "request": { // "$ref": "UserRole" // }, @@ -52329,7 +52329,7 @@ func (c *VideoFormatsGetCall) 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, "dfareporting/v3.5/userprofiles/{profileId}/videoFormats/{id}") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/videoFormats/{id}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -52382,7 +52382,7 @@ func (c *VideoFormatsGetCall) Do(opts ...googleapi.CallOption) (*VideoFormat, er return ret, nil // { // "description": "Gets one video format by ID.", - // "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/videoFormats/{id}", + // "flatPath": "userprofiles/{profileId}/videoFormats/{id}", // "httpMethod": "GET", // "id": "dfareporting.videoFormats.get", // "parameterOrder": [ @@ -52405,7 +52405,7 @@ func (c *VideoFormatsGetCall) Do(opts ...googleapi.CallOption) (*VideoFormat, er // "type": "string" // } // }, - // "path": "dfareporting/v3.5/userprofiles/{profileId}/videoFormats/{id}", + // "path": "userprofiles/{profileId}/videoFormats/{id}", // "response": { // "$ref": "VideoFormat" // }, @@ -52484,7 +52484,7 @@ func (c *VideoFormatsListCall) 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, "dfareporting/v3.5/userprofiles/{profileId}/videoFormats") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/videoFormats") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -52536,7 +52536,7 @@ func (c *VideoFormatsListCall) Do(opts ...googleapi.CallOption) (*VideoFormatsLi return ret, nil // { // "description": "Lists available video formats.", - // "flatPath": "dfareporting/v3.5/userprofiles/{profileId}/videoFormats", + // "flatPath": "userprofiles/{profileId}/videoFormats", // "httpMethod": "GET", // "id": "dfareporting.videoFormats.list", // "parameterOrder": [ @@ -52551,7 +52551,7 @@ func (c *VideoFormatsListCall) Do(opts ...googleapi.CallOption) (*VideoFormatsLi // "type": "string" // } // }, - // "path": "dfareporting/v3.5/userprofiles/{profileId}/videoFormats", + // "path": "userprofiles/{profileId}/videoFormats", // "response": { // "$ref": "VideoFormatsListResponse" // }, diff --git a/dfareporting/v4/dfareporting-api.json b/dfareporting/v4/dfareporting-api.json index fd07fe6aa3f..a654e02faab 100644 --- a/dfareporting/v4/dfareporting-api.json +++ b/dfareporting/v4/dfareporting-api.json @@ -14,8 +14,8 @@ } } }, - "basePath": "", - "baseUrl": "https://dfareporting.googleapis.com/", + "basePath": "/dfareporting/v4/", + "baseUrl": "https://dfareporting.googleapis.com/dfareporting/v4/", "batchPath": "batch", "canonicalName": "Dfareporting", "description": "Build applications to efficiently manage large or complex trafficking, reporting, and attribution workflows for Campaign Manager 360.", @@ -115,7 +115,7 @@ "methods": { "get": { "description": "Gets the account's active ad summary by account ID.", - "flatPath": "dfareporting/v4/userprofiles/{profileId}/accountActiveAdSummaries/{summaryAccountId}", + "flatPath": "userprofiles/{profileId}/accountActiveAdSummaries/{summaryAccountId}", "httpMethod": "GET", "id": "dfareporting.accountActiveAdSummaries.get", "parameterOrder": [ @@ -138,7 +138,7 @@ "type": "string" } }, - "path": "dfareporting/v4/userprofiles/{profileId}/accountActiveAdSummaries/{summaryAccountId}", + "path": "userprofiles/{profileId}/accountActiveAdSummaries/{summaryAccountId}", "response": { "$ref": "AccountActiveAdSummary" }, @@ -152,7 +152,7 @@ "methods": { "get": { "description": "Gets one account permission group by ID.", - "flatPath": "dfareporting/v4/userprofiles/{profileId}/accountPermissionGroups/{id}", + "flatPath": "userprofiles/{profileId}/accountPermissionGroups/{id}", "httpMethod": "GET", "id": "dfareporting.accountPermissionGroups.get", "parameterOrder": [ @@ -175,7 +175,7 @@ "type": "string" } }, - "path": "dfareporting/v4/userprofiles/{profileId}/accountPermissionGroups/{id}", + "path": "userprofiles/{profileId}/accountPermissionGroups/{id}", "response": { "$ref": "AccountPermissionGroup" }, @@ -185,7 +185,7 @@ }, "list": { "description": "Retrieves the list of account permission groups.", - "flatPath": "dfareporting/v4/userprofiles/{profileId}/accountPermissionGroups", + "flatPath": "userprofiles/{profileId}/accountPermissionGroups", "httpMethod": "GET", "id": "dfareporting.accountPermissionGroups.list", "parameterOrder": [ @@ -200,7 +200,7 @@ "type": "string" } }, - "path": "dfareporting/v4/userprofiles/{profileId}/accountPermissionGroups", + "path": "userprofiles/{profileId}/accountPermissionGroups", "response": { "$ref": "AccountPermissionGroupsListResponse" }, @@ -214,7 +214,7 @@ "methods": { "get": { "description": "Gets one account permission by ID.", - "flatPath": "dfareporting/v4/userprofiles/{profileId}/accountPermissions/{id}", + "flatPath": "userprofiles/{profileId}/accountPermissions/{id}", "httpMethod": "GET", "id": "dfareporting.accountPermissions.get", "parameterOrder": [ @@ -237,7 +237,7 @@ "type": "string" } }, - "path": "dfareporting/v4/userprofiles/{profileId}/accountPermissions/{id}", + "path": "userprofiles/{profileId}/accountPermissions/{id}", "response": { "$ref": "AccountPermission" }, @@ -247,7 +247,7 @@ }, "list": { "description": "Retrieves the list of account permissions.", - "flatPath": "dfareporting/v4/userprofiles/{profileId}/accountPermissions", + "flatPath": "userprofiles/{profileId}/accountPermissions", "httpMethod": "GET", "id": "dfareporting.accountPermissions.list", "parameterOrder": [ @@ -262,7 +262,7 @@ "type": "string" } }, - "path": "dfareporting/v4/userprofiles/{profileId}/accountPermissions", + "path": "userprofiles/{profileId}/accountPermissions", "response": { "$ref": "AccountPermissionsListResponse" }, @@ -276,7 +276,7 @@ "methods": { "get": { "description": "Gets one account user profile by ID.", - "flatPath": "dfareporting/v4/userprofiles/{profileId}/accountUserProfiles/{id}", + "flatPath": "userprofiles/{profileId}/accountUserProfiles/{id}", "httpMethod": "GET", "id": "dfareporting.accountUserProfiles.get", "parameterOrder": [ @@ -299,7 +299,7 @@ "type": "string" } }, - "path": "dfareporting/v4/userprofiles/{profileId}/accountUserProfiles/{id}", + "path": "userprofiles/{profileId}/accountUserProfiles/{id}", "response": { "$ref": "AccountUserProfile" }, @@ -309,7 +309,7 @@ }, "insert": { "description": "Inserts a new account user profile.", - "flatPath": "dfareporting/v4/userprofiles/{profileId}/accountUserProfiles", + "flatPath": "userprofiles/{profileId}/accountUserProfiles", "httpMethod": "POST", "id": "dfareporting.accountUserProfiles.insert", "parameterOrder": [ @@ -324,7 +324,7 @@ "type": "string" } }, - "path": "dfareporting/v4/userprofiles/{profileId}/accountUserProfiles", + "path": "userprofiles/{profileId}/accountUserProfiles", "request": { "$ref": "AccountUserProfile" }, @@ -337,7 +337,7 @@ }, "list": { "description": "Retrieves a list of account user profiles, possibly filtered. This method supports paging.", - "flatPath": "dfareporting/v4/userprofiles/{profileId}/accountUserProfiles", + "flatPath": "userprofiles/{profileId}/accountUserProfiles", "httpMethod": "GET", "id": "dfareporting.accountUserProfiles.list", "parameterOrder": [ @@ -423,7 +423,7 @@ "type": "string" } }, - "path": "dfareporting/v4/userprofiles/{profileId}/accountUserProfiles", + "path": "userprofiles/{profileId}/accountUserProfiles", "response": { "$ref": "AccountUserProfilesListResponse" }, @@ -433,7 +433,7 @@ }, "patch": { "description": "Updates an existing account user profile. This method supports patch semantics.", - "flatPath": "dfareporting/v4/userprofiles/{profileId}/accountUserProfiles", + "flatPath": "userprofiles/{profileId}/accountUserProfiles", "httpMethod": "PATCH", "id": "dfareporting.accountUserProfiles.patch", "parameterOrder": [ @@ -456,7 +456,7 @@ "type": "string" } }, - "path": "dfareporting/v4/userprofiles/{profileId}/accountUserProfiles", + "path": "userprofiles/{profileId}/accountUserProfiles", "request": { "$ref": "AccountUserProfile" }, @@ -469,7 +469,7 @@ }, "update": { "description": "Updates an existing account user profile.", - "flatPath": "dfareporting/v4/userprofiles/{profileId}/accountUserProfiles", + "flatPath": "userprofiles/{profileId}/accountUserProfiles", "httpMethod": "PUT", "id": "dfareporting.accountUserProfiles.update", "parameterOrder": [ @@ -484,7 +484,7 @@ "type": "string" } }, - "path": "dfareporting/v4/userprofiles/{profileId}/accountUserProfiles", + "path": "userprofiles/{profileId}/accountUserProfiles", "request": { "$ref": "AccountUserProfile" }, @@ -501,7 +501,7 @@ "methods": { "get": { "description": "Gets one account by ID.", - "flatPath": "dfareporting/v4/userprofiles/{profileId}/accounts/{id}", + "flatPath": "userprofiles/{profileId}/accounts/{id}", "httpMethod": "GET", "id": "dfareporting.accounts.get", "parameterOrder": [ @@ -524,7 +524,7 @@ "type": "string" } }, - "path": "dfareporting/v4/userprofiles/{profileId}/accounts/{id}", + "path": "userprofiles/{profileId}/accounts/{id}", "response": { "$ref": "Account" }, @@ -534,7 +534,7 @@ }, "list": { "description": "Retrieves the list of accounts, possibly filtered. This method supports paging.", - "flatPath": "dfareporting/v4/userprofiles/{profileId}/accounts", + "flatPath": "userprofiles/{profileId}/accounts", "httpMethod": "GET", "id": "dfareporting.accounts.list", "parameterOrder": [ @@ -608,7 +608,7 @@ "type": "string" } }, - "path": "dfareporting/v4/userprofiles/{profileId}/accounts", + "path": "userprofiles/{profileId}/accounts", "response": { "$ref": "AccountsListResponse" }, @@ -618,7 +618,7 @@ }, "patch": { "description": "Updates an existing account. This method supports patch semantics.", - "flatPath": "dfareporting/v4/userprofiles/{profileId}/accounts", + "flatPath": "userprofiles/{profileId}/accounts", "httpMethod": "PATCH", "id": "dfareporting.accounts.patch", "parameterOrder": [ @@ -641,7 +641,7 @@ "type": "string" } }, - "path": "dfareporting/v4/userprofiles/{profileId}/accounts", + "path": "userprofiles/{profileId}/accounts", "request": { "$ref": "Account" }, @@ -654,7 +654,7 @@ }, "update": { "description": "Updates an existing account.", - "flatPath": "dfareporting/v4/userprofiles/{profileId}/accounts", + "flatPath": "userprofiles/{profileId}/accounts", "httpMethod": "PUT", "id": "dfareporting.accounts.update", "parameterOrder": [ @@ -669,7 +669,7 @@ "type": "string" } }, - "path": "dfareporting/v4/userprofiles/{profileId}/accounts", + "path": "userprofiles/{profileId}/accounts", "request": { "$ref": "Account" }, @@ -686,7 +686,7 @@ "methods": { "get": { "description": "Gets one ad by ID.", - "flatPath": "dfareporting/v4/userprofiles/{profileId}/ads/{id}", + "flatPath": "userprofiles/{profileId}/ads/{id}", "httpMethod": "GET", "id": "dfareporting.ads.get", "parameterOrder": [ @@ -709,7 +709,7 @@ "type": "string" } }, - "path": "dfareporting/v4/userprofiles/{profileId}/ads/{id}", + "path": "userprofiles/{profileId}/ads/{id}", "response": { "$ref": "Ad" }, @@ -719,7 +719,7 @@ }, "insert": { "description": "Inserts a new ad.", - "flatPath": "dfareporting/v4/userprofiles/{profileId}/ads", + "flatPath": "userprofiles/{profileId}/ads", "httpMethod": "POST", "id": "dfareporting.ads.insert", "parameterOrder": [ @@ -734,7 +734,7 @@ "type": "string" } }, - "path": "dfareporting/v4/userprofiles/{profileId}/ads", + "path": "userprofiles/{profileId}/ads", "request": { "$ref": "Ad" }, @@ -747,7 +747,7 @@ }, "list": { "description": "Retrieves a list of ads, possibly filtered. This method supports paging.", - "flatPath": "dfareporting/v4/userprofiles/{profileId}/ads", + "flatPath": "userprofiles/{profileId}/ads", "httpMethod": "GET", "id": "dfareporting.ads.list", "parameterOrder": [ @@ -950,7 +950,7 @@ "type": "string" } }, - "path": "dfareporting/v4/userprofiles/{profileId}/ads", + "path": "userprofiles/{profileId}/ads", "response": { "$ref": "AdsListResponse" }, @@ -960,7 +960,7 @@ }, "patch": { "description": "Updates an existing ad. This method supports patch semantics.", - "flatPath": "dfareporting/v4/userprofiles/{profileId}/ads", + "flatPath": "userprofiles/{profileId}/ads", "httpMethod": "PATCH", "id": "dfareporting.ads.patch", "parameterOrder": [ @@ -983,7 +983,7 @@ "type": "string" } }, - "path": "dfareporting/v4/userprofiles/{profileId}/ads", + "path": "userprofiles/{profileId}/ads", "request": { "$ref": "Ad" }, @@ -996,7 +996,7 @@ }, "update": { "description": "Updates an existing ad.", - "flatPath": "dfareporting/v4/userprofiles/{profileId}/ads", + "flatPath": "userprofiles/{profileId}/ads", "httpMethod": "PUT", "id": "dfareporting.ads.update", "parameterOrder": [ @@ -1011,7 +1011,7 @@ "type": "string" } }, - "path": "dfareporting/v4/userprofiles/{profileId}/ads", + "path": "userprofiles/{profileId}/ads", "request": { "$ref": "Ad" }, @@ -1028,7 +1028,7 @@ "methods": { "delete": { "description": "Deletes an existing advertiser group.", - "flatPath": "dfareporting/v4/userprofiles/{profileId}/advertiserGroups/{id}", + "flatPath": "userprofiles/{profileId}/advertiserGroups/{id}", "httpMethod": "DELETE", "id": "dfareporting.advertiserGroups.delete", "parameterOrder": [ @@ -1051,14 +1051,14 @@ "type": "string" } }, - "path": "dfareporting/v4/userprofiles/{profileId}/advertiserGroups/{id}", + "path": "userprofiles/{profileId}/advertiserGroups/{id}", "scopes": [ "https://www.googleapis.com/auth/dfatrafficking" ] }, "get": { "description": "Gets one advertiser group by ID.", - "flatPath": "dfareporting/v4/userprofiles/{profileId}/advertiserGroups/{id}", + "flatPath": "userprofiles/{profileId}/advertiserGroups/{id}", "httpMethod": "GET", "id": "dfareporting.advertiserGroups.get", "parameterOrder": [ @@ -1081,7 +1081,7 @@ "type": "string" } }, - "path": "dfareporting/v4/userprofiles/{profileId}/advertiserGroups/{id}", + "path": "userprofiles/{profileId}/advertiserGroups/{id}", "response": { "$ref": "AdvertiserGroup" }, @@ -1091,7 +1091,7 @@ }, "insert": { "description": "Inserts a new advertiser group.", - "flatPath": "dfareporting/v4/userprofiles/{profileId}/advertiserGroups", + "flatPath": "userprofiles/{profileId}/advertiserGroups", "httpMethod": "POST", "id": "dfareporting.advertiserGroups.insert", "parameterOrder": [ @@ -1106,7 +1106,7 @@ "type": "string" } }, - "path": "dfareporting/v4/userprofiles/{profileId}/advertiserGroups", + "path": "userprofiles/{profileId}/advertiserGroups", "request": { "$ref": "AdvertiserGroup" }, @@ -1119,7 +1119,7 @@ }, "list": { "description": "Retrieves a list of advertiser groups, possibly filtered. This method supports paging.", - "flatPath": "dfareporting/v4/userprofiles/{profileId}/advertiserGroups", + "flatPath": "userprofiles/{profileId}/advertiserGroups", "httpMethod": "GET", "id": "dfareporting.advertiserGroups.list", "parameterOrder": [ @@ -1188,7 +1188,7 @@ "type": "string" } }, - "path": "dfareporting/v4/userprofiles/{profileId}/advertiserGroups", + "path": "userprofiles/{profileId}/advertiserGroups", "response": { "$ref": "AdvertiserGroupsListResponse" }, @@ -1198,7 +1198,7 @@ }, "patch": { "description": "Updates an existing advertiser group. This method supports patch semantics.", - "flatPath": "dfareporting/v4/userprofiles/{profileId}/advertiserGroups", + "flatPath": "userprofiles/{profileId}/advertiserGroups", "httpMethod": "PATCH", "id": "dfareporting.advertiserGroups.patch", "parameterOrder": [ @@ -1221,7 +1221,7 @@ "type": "string" } }, - "path": "dfareporting/v4/userprofiles/{profileId}/advertiserGroups", + "path": "userprofiles/{profileId}/advertiserGroups", "request": { "$ref": "AdvertiserGroup" }, @@ -1234,7 +1234,7 @@ }, "update": { "description": "Updates an existing advertiser group.", - "flatPath": "dfareporting/v4/userprofiles/{profileId}/advertiserGroups", + "flatPath": "userprofiles/{profileId}/advertiserGroups", "httpMethod": "PUT", "id": "dfareporting.advertiserGroups.update", "parameterOrder": [ @@ -1249,7 +1249,7 @@ "type": "string" } }, - "path": "dfareporting/v4/userprofiles/{profileId}/advertiserGroups", + "path": "userprofiles/{profileId}/advertiserGroups", "request": { "$ref": "AdvertiserGroup" }, @@ -1266,7 +1266,7 @@ "methods": { "list": { "description": "Retrieves a list of invoices for a particular issue month. The api only works if the billing profile invoice level is set to either advertiser or campaign non-consolidated invoice level.", - "flatPath": "dfareporting/v4/userprofiles/{profileId}/advertisers/{advertiserId}/invoices", + "flatPath": "userprofiles/{profileId}/advertisers/{advertiserId}/invoices", "httpMethod": "GET", "id": "dfareporting.advertiserInvoices.list", "parameterOrder": [ @@ -1308,7 +1308,7 @@ "type": "string" } }, - "path": "dfareporting/v4/userprofiles/{profileId}/advertisers/{advertiserId}/invoices", + "path": "userprofiles/{profileId}/advertisers/{advertiserId}/invoices", "response": { "$ref": "AdvertiserInvoicesListResponse" }, @@ -1322,7 +1322,7 @@ "methods": { "get": { "description": "Gets one landing page by ID.", - "flatPath": "dfareporting/v4/userprofiles/{profileId}/advertiserLandingPages/{id}", + "flatPath": "userprofiles/{profileId}/advertiserLandingPages/{id}", "httpMethod": "GET", "id": "dfareporting.advertiserLandingPages.get", "parameterOrder": [ @@ -1345,7 +1345,7 @@ "type": "string" } }, - "path": "dfareporting/v4/userprofiles/{profileId}/advertiserLandingPages/{id}", + "path": "userprofiles/{profileId}/advertiserLandingPages/{id}", "response": { "$ref": "LandingPage" }, @@ -1355,7 +1355,7 @@ }, "insert": { "description": "Inserts a new landing page.", - "flatPath": "dfareporting/v4/userprofiles/{profileId}/advertiserLandingPages", + "flatPath": "userprofiles/{profileId}/advertiserLandingPages", "httpMethod": "POST", "id": "dfareporting.advertiserLandingPages.insert", "parameterOrder": [ @@ -1370,7 +1370,7 @@ "type": "string" } }, - "path": "dfareporting/v4/userprofiles/{profileId}/advertiserLandingPages", + "path": "userprofiles/{profileId}/advertiserLandingPages", "request": { "$ref": "LandingPage" }, @@ -1383,7 +1383,7 @@ }, "list": { "description": "Retrieves a list of landing pages.", - "flatPath": "dfareporting/v4/userprofiles/{profileId}/advertiserLandingPages", + "flatPath": "userprofiles/{profileId}/advertiserLandingPages", "httpMethod": "GET", "id": "dfareporting.advertiserLandingPages.list", "parameterOrder": [ @@ -1477,7 +1477,7 @@ "type": "string" } }, - "path": "dfareporting/v4/userprofiles/{profileId}/advertiserLandingPages", + "path": "userprofiles/{profileId}/advertiserLandingPages", "response": { "$ref": "AdvertiserLandingPagesListResponse" }, @@ -1487,7 +1487,7 @@ }, "patch": { "description": "Updates an existing advertiser landing page. This method supports patch semantics.", - "flatPath": "dfareporting/v4/userprofiles/{profileId}/advertiserLandingPages", + "flatPath": "userprofiles/{profileId}/advertiserLandingPages", "httpMethod": "PATCH", "id": "dfareporting.advertiserLandingPages.patch", "parameterOrder": [ @@ -1510,7 +1510,7 @@ "type": "string" } }, - "path": "dfareporting/v4/userprofiles/{profileId}/advertiserLandingPages", + "path": "userprofiles/{profileId}/advertiserLandingPages", "request": { "$ref": "LandingPage" }, @@ -1523,7 +1523,7 @@ }, "update": { "description": "Updates an existing landing page.", - "flatPath": "dfareporting/v4/userprofiles/{profileId}/advertiserLandingPages", + "flatPath": "userprofiles/{profileId}/advertiserLandingPages", "httpMethod": "PUT", "id": "dfareporting.advertiserLandingPages.update", "parameterOrder": [ @@ -1538,7 +1538,7 @@ "type": "string" } }, - "path": "dfareporting/v4/userprofiles/{profileId}/advertiserLandingPages", + "path": "userprofiles/{profileId}/advertiserLandingPages", "request": { "$ref": "LandingPage" }, @@ -1555,7 +1555,7 @@ "methods": { "get": { "description": "Gets one advertiser by ID.", - "flatPath": "dfareporting/v4/userprofiles/{profileId}/advertisers/{id}", + "flatPath": "userprofiles/{profileId}/advertisers/{id}", "httpMethod": "GET", "id": "dfareporting.advertisers.get", "parameterOrder": [ @@ -1578,7 +1578,7 @@ "type": "string" } }, - "path": "dfareporting/v4/userprofiles/{profileId}/advertisers/{id}", + "path": "userprofiles/{profileId}/advertisers/{id}", "response": { "$ref": "Advertiser" }, @@ -1588,7 +1588,7 @@ }, "insert": { "description": "Inserts a new advertiser.", - "flatPath": "dfareporting/v4/userprofiles/{profileId}/advertisers", + "flatPath": "userprofiles/{profileId}/advertisers", "httpMethod": "POST", "id": "dfareporting.advertisers.insert", "parameterOrder": [ @@ -1603,7 +1603,7 @@ "type": "string" } }, - "path": "dfareporting/v4/userprofiles/{profileId}/advertisers", + "path": "userprofiles/{profileId}/advertisers", "request": { "$ref": "Advertiser" }, @@ -1616,7 +1616,7 @@ }, "list": { "description": "Retrieves a list of advertisers, possibly filtered. This method supports paging.", - "flatPath": "dfareporting/v4/userprofiles/{profileId}/advertisers", + "flatPath": "userprofiles/{profileId}/advertisers", "httpMethod": "GET", "id": "dfareporting.advertisers.list", "parameterOrder": [ @@ -1728,7 +1728,7 @@ "type": "string" } }, - "path": "dfareporting/v4/userprofiles/{profileId}/advertisers", + "path": "userprofiles/{profileId}/advertisers", "response": { "$ref": "AdvertisersListResponse" }, @@ -1738,7 +1738,7 @@ }, "patch": { "description": "Updates an existing advertiser. This method supports patch semantics.", - "flatPath": "dfareporting/v4/userprofiles/{profileId}/advertisers", + "flatPath": "userprofiles/{profileId}/advertisers", "httpMethod": "PATCH", "id": "dfareporting.advertisers.patch", "parameterOrder": [ @@ -1761,7 +1761,7 @@ "type": "string" } }, - "path": "dfareporting/v4/userprofiles/{profileId}/advertisers", + "path": "userprofiles/{profileId}/advertisers", "request": { "$ref": "Advertiser" }, @@ -1774,7 +1774,7 @@ }, "update": { "description": "Updates an existing advertiser.", - "flatPath": "dfareporting/v4/userprofiles/{profileId}/advertisers", + "flatPath": "userprofiles/{profileId}/advertisers", "httpMethod": "PUT", "id": "dfareporting.advertisers.update", "parameterOrder": [ @@ -1789,7 +1789,7 @@ "type": "string" } }, - "path": "dfareporting/v4/userprofiles/{profileId}/advertisers", + "path": "userprofiles/{profileId}/advertisers", "request": { "$ref": "Advertiser" }, @@ -1806,7 +1806,7 @@ "methods": { "insert": { "description": "Inserts a new billing assignment and returns the new assignment. Only one of advertiser_id or campaign_id is support per request. If the new assignment has no effect (assigning a campaign to the parent advertiser billing profile or assigning an advertiser to the account billing profile), no assignment will be returned.", - "flatPath": "dfareporting/v4/userprofiles/{profileId}/billingProfiles/{billingProfileId}/billingAssignments", + "flatPath": "userprofiles/{profileId}/billingProfiles/{billingProfileId}/billingAssignments", "httpMethod": "POST", "id": "dfareporting.billingAssignments.insert", "parameterOrder": [ @@ -1829,7 +1829,7 @@ "type": "string" } }, - "path": "dfareporting/v4/userprofiles/{profileId}/billingProfiles/{billingProfileId}/billingAssignments", + "path": "userprofiles/{profileId}/billingProfiles/{billingProfileId}/billingAssignments", "request": { "$ref": "BillingAssignment" }, @@ -1842,7 +1842,7 @@ }, "list": { "description": "Retrieves a list of billing assignments.", - "flatPath": "dfareporting/v4/userprofiles/{profileId}/billingProfiles/{billingProfileId}/billingAssignments", + "flatPath": "userprofiles/{profileId}/billingProfiles/{billingProfileId}/billingAssignments", "httpMethod": "GET", "id": "dfareporting.billingAssignments.list", "parameterOrder": [ @@ -1865,7 +1865,7 @@ "type": "string" } }, - "path": "dfareporting/v4/userprofiles/{profileId}/billingProfiles/{billingProfileId}/billingAssignments", + "path": "userprofiles/{profileId}/billingProfiles/{billingProfileId}/billingAssignments", "response": { "$ref": "BillingAssignmentsListResponse" }, @@ -1879,7 +1879,7 @@ "methods": { "get": { "description": "Gets one billing profile by ID.", - "flatPath": "dfareporting/v4/userprofiles/{profileId}/billingProfiles/{id}", + "flatPath": "userprofiles/{profileId}/billingProfiles/{id}", "httpMethod": "GET", "id": "dfareporting.billingProfiles.get", "parameterOrder": [ @@ -1902,7 +1902,7 @@ "type": "string" } }, - "path": "dfareporting/v4/userprofiles/{profileId}/billingProfiles/{id}", + "path": "userprofiles/{profileId}/billingProfiles/{id}", "response": { "$ref": "BillingProfile" }, @@ -1912,7 +1912,7 @@ }, "list": { "description": "Retrieves a list of billing profiles, possibly filtered. This method supports paging.", - "flatPath": "dfareporting/v4/userprofiles/{profileId}/billingProfiles", + "flatPath": "userprofiles/{profileId}/billingProfiles", "httpMethod": "GET", "id": "dfareporting.billingProfiles.list", "parameterOrder": [ @@ -2014,7 +2014,7 @@ "type": "string" } }, - "path": "dfareporting/v4/userprofiles/{profileId}/billingProfiles", + "path": "userprofiles/{profileId}/billingProfiles", "response": { "$ref": "BillingProfilesListResponse" }, @@ -2024,7 +2024,7 @@ }, "update": { "description": "Updates an existing billing profile.", - "flatPath": "dfareporting/v4/userprofiles/{profileId}/billingProfiles", + "flatPath": "userprofiles/{profileId}/billingProfiles", "httpMethod": "PUT", "id": "dfareporting.billingProfiles.update", "parameterOrder": [ @@ -2039,7 +2039,7 @@ "type": "string" } }, - "path": "dfareporting/v4/userprofiles/{profileId}/billingProfiles", + "path": "userprofiles/{profileId}/billingProfiles", "request": { "$ref": "BillingProfile" }, @@ -2056,7 +2056,7 @@ "methods": { "list": { "description": "Retrieves a list of billing rates. This method supports paging.", - "flatPath": "dfareporting/v4/userprofiles/{profileId}/billingProfiles/{billingProfileId}/billingRates", + "flatPath": "userprofiles/{profileId}/billingProfiles/{billingProfileId}/billingRates", "httpMethod": "GET", "id": "dfareporting.billingRates.list", "parameterOrder": [ @@ -2079,7 +2079,7 @@ "type": "string" } }, - "path": "dfareporting/v4/userprofiles/{profileId}/billingProfiles/{billingProfileId}/billingRates", + "path": "userprofiles/{profileId}/billingProfiles/{billingProfileId}/billingRates", "response": { "$ref": "BillingRatesListResponse" }, @@ -2093,7 +2093,7 @@ "methods": { "list": { "description": "Retrieves a list of browsers.", - "flatPath": "dfareporting/v4/userprofiles/{profileId}/browsers", + "flatPath": "userprofiles/{profileId}/browsers", "httpMethod": "GET", "id": "dfareporting.browsers.list", "parameterOrder": [ @@ -2108,7 +2108,7 @@ "type": "string" } }, - "path": "dfareporting/v4/userprofiles/{profileId}/browsers", + "path": "userprofiles/{profileId}/browsers", "response": { "$ref": "BrowsersListResponse" }, @@ -2122,7 +2122,7 @@ "methods": { "insert": { "description": "Associates a creative with the specified campaign. This method creates a default ad with dimensions matching the creative in the campaign if such a default ad does not exist already.", - "flatPath": "dfareporting/v4/userprofiles/{profileId}/campaigns/{campaignId}/campaignCreativeAssociations", + "flatPath": "userprofiles/{profileId}/campaigns/{campaignId}/campaignCreativeAssociations", "httpMethod": "POST", "id": "dfareporting.campaignCreativeAssociations.insert", "parameterOrder": [ @@ -2145,7 +2145,7 @@ "type": "string" } }, - "path": "dfareporting/v4/userprofiles/{profileId}/campaigns/{campaignId}/campaignCreativeAssociations", + "path": "userprofiles/{profileId}/campaigns/{campaignId}/campaignCreativeAssociations", "request": { "$ref": "CampaignCreativeAssociation" }, @@ -2158,7 +2158,7 @@ }, "list": { "description": "Retrieves the list of creative IDs associated with the specified campaign. This method supports paging.", - "flatPath": "dfareporting/v4/userprofiles/{profileId}/campaigns/{campaignId}/campaignCreativeAssociations", + "flatPath": "userprofiles/{profileId}/campaigns/{campaignId}/campaignCreativeAssociations", "httpMethod": "GET", "id": "dfareporting.campaignCreativeAssociations.list", "parameterOrder": [ @@ -2209,7 +2209,7 @@ "type": "string" } }, - "path": "dfareporting/v4/userprofiles/{profileId}/campaigns/{campaignId}/campaignCreativeAssociations", + "path": "userprofiles/{profileId}/campaigns/{campaignId}/campaignCreativeAssociations", "response": { "$ref": "CampaignCreativeAssociationsListResponse" }, @@ -2223,7 +2223,7 @@ "methods": { "get": { "description": "Gets one campaign by ID.", - "flatPath": "dfareporting/v4/userprofiles/{profileId}/campaigns/{id}", + "flatPath": "userprofiles/{profileId}/campaigns/{id}", "httpMethod": "GET", "id": "dfareporting.campaigns.get", "parameterOrder": [ @@ -2246,7 +2246,7 @@ "type": "string" } }, - "path": "dfareporting/v4/userprofiles/{profileId}/campaigns/{id}", + "path": "userprofiles/{profileId}/campaigns/{id}", "response": { "$ref": "Campaign" }, @@ -2256,7 +2256,7 @@ }, "insert": { "description": "Inserts a new campaign.", - "flatPath": "dfareporting/v4/userprofiles/{profileId}/campaigns", + "flatPath": "userprofiles/{profileId}/campaigns", "httpMethod": "POST", "id": "dfareporting.campaigns.insert", "parameterOrder": [ @@ -2271,7 +2271,7 @@ "type": "string" } }, - "path": "dfareporting/v4/userprofiles/{profileId}/campaigns", + "path": "userprofiles/{profileId}/campaigns", "request": { "$ref": "Campaign" }, @@ -2284,7 +2284,7 @@ }, "list": { "description": "Retrieves a list of campaigns, possibly filtered. This method supports paging.", - "flatPath": "dfareporting/v4/userprofiles/{profileId}/campaigns", + "flatPath": "userprofiles/{profileId}/campaigns", "httpMethod": "GET", "id": "dfareporting.campaigns.list", "parameterOrder": [ @@ -2396,7 +2396,7 @@ "type": "string" } }, - "path": "dfareporting/v4/userprofiles/{profileId}/campaigns", + "path": "userprofiles/{profileId}/campaigns", "response": { "$ref": "CampaignsListResponse" }, @@ -2406,7 +2406,7 @@ }, "patch": { "description": "Updates an existing campaign. This method supports patch semantics.", - "flatPath": "dfareporting/v4/userprofiles/{profileId}/campaigns", + "flatPath": "userprofiles/{profileId}/campaigns", "httpMethod": "PATCH", "id": "dfareporting.campaigns.patch", "parameterOrder": [ @@ -2429,7 +2429,7 @@ "type": "string" } }, - "path": "dfareporting/v4/userprofiles/{profileId}/campaigns", + "path": "userprofiles/{profileId}/campaigns", "request": { "$ref": "Campaign" }, @@ -2442,7 +2442,7 @@ }, "update": { "description": "Updates an existing campaign.", - "flatPath": "dfareporting/v4/userprofiles/{profileId}/campaigns", + "flatPath": "userprofiles/{profileId}/campaigns", "httpMethod": "PUT", "id": "dfareporting.campaigns.update", "parameterOrder": [ @@ -2457,7 +2457,7 @@ "type": "string" } }, - "path": "dfareporting/v4/userprofiles/{profileId}/campaigns", + "path": "userprofiles/{profileId}/campaigns", "request": { "$ref": "Campaign" }, @@ -2474,7 +2474,7 @@ "methods": { "get": { "description": "Gets one change log by ID.", - "flatPath": "dfareporting/v4/userprofiles/{profileId}/changeLogs/{id}", + "flatPath": "userprofiles/{profileId}/changeLogs/{id}", "httpMethod": "GET", "id": "dfareporting.changeLogs.get", "parameterOrder": [ @@ -2497,7 +2497,7 @@ "type": "string" } }, - "path": "dfareporting/v4/userprofiles/{profileId}/changeLogs/{id}", + "path": "userprofiles/{profileId}/changeLogs/{id}", "response": { "$ref": "ChangeLog" }, @@ -2507,7 +2507,7 @@ }, "list": { "description": "Retrieves a list of change logs. This method supports paging.", - "flatPath": "dfareporting/v4/userprofiles/{profileId}/changeLogs", + "flatPath": "userprofiles/{profileId}/changeLogs", "httpMethod": "GET", "id": "dfareporting.changeLogs.list", "parameterOrder": [ @@ -2706,7 +2706,7 @@ "type": "string" } }, - "path": "dfareporting/v4/userprofiles/{profileId}/changeLogs", + "path": "userprofiles/{profileId}/changeLogs", "response": { "$ref": "ChangeLogsListResponse" }, @@ -2720,7 +2720,7 @@ "methods": { "list": { "description": "Retrieves a list of cities, possibly filtered.", - "flatPath": "dfareporting/v4/userprofiles/{profileId}/cities", + "flatPath": "userprofiles/{profileId}/cities", "httpMethod": "GET", "id": "dfareporting.cities.list", "parameterOrder": [ @@ -2761,7 +2761,7 @@ "type": "string" } }, - "path": "dfareporting/v4/userprofiles/{profileId}/cities", + "path": "userprofiles/{profileId}/cities", "response": { "$ref": "CitiesListResponse" }, @@ -2775,7 +2775,7 @@ "methods": { "get": { "description": "Gets one connection type by ID.", - "flatPath": "dfareporting/v4/userprofiles/{profileId}/connectionTypes/{id}", + "flatPath": "userprofiles/{profileId}/connectionTypes/{id}", "httpMethod": "GET", "id": "dfareporting.connectionTypes.get", "parameterOrder": [ @@ -2798,7 +2798,7 @@ "type": "string" } }, - "path": "dfareporting/v4/userprofiles/{profileId}/connectionTypes/{id}", + "path": "userprofiles/{profileId}/connectionTypes/{id}", "response": { "$ref": "ConnectionType" }, @@ -2808,7 +2808,7 @@ }, "list": { "description": "Retrieves a list of connection types.", - "flatPath": "dfareporting/v4/userprofiles/{profileId}/connectionTypes", + "flatPath": "userprofiles/{profileId}/connectionTypes", "httpMethod": "GET", "id": "dfareporting.connectionTypes.list", "parameterOrder": [ @@ -2823,7 +2823,7 @@ "type": "string" } }, - "path": "dfareporting/v4/userprofiles/{profileId}/connectionTypes", + "path": "userprofiles/{profileId}/connectionTypes", "response": { "$ref": "ConnectionTypesListResponse" }, @@ -2837,7 +2837,7 @@ "methods": { "delete": { "description": "Deletes an existing content category.", - "flatPath": "dfareporting/v4/userprofiles/{profileId}/contentCategories/{id}", + "flatPath": "userprofiles/{profileId}/contentCategories/{id}", "httpMethod": "DELETE", "id": "dfareporting.contentCategories.delete", "parameterOrder": [ @@ -2860,14 +2860,14 @@ "type": "string" } }, - "path": "dfareporting/v4/userprofiles/{profileId}/contentCategories/{id}", + "path": "userprofiles/{profileId}/contentCategories/{id}", "scopes": [ "https://www.googleapis.com/auth/dfatrafficking" ] }, "get": { "description": "Gets one content category by ID.", - "flatPath": "dfareporting/v4/userprofiles/{profileId}/contentCategories/{id}", + "flatPath": "userprofiles/{profileId}/contentCategories/{id}", "httpMethod": "GET", "id": "dfareporting.contentCategories.get", "parameterOrder": [ @@ -2890,7 +2890,7 @@ "type": "string" } }, - "path": "dfareporting/v4/userprofiles/{profileId}/contentCategories/{id}", + "path": "userprofiles/{profileId}/contentCategories/{id}", "response": { "$ref": "ContentCategory" }, @@ -2900,7 +2900,7 @@ }, "insert": { "description": "Inserts a new content category.", - "flatPath": "dfareporting/v4/userprofiles/{profileId}/contentCategories", + "flatPath": "userprofiles/{profileId}/contentCategories", "httpMethod": "POST", "id": "dfareporting.contentCategories.insert", "parameterOrder": [ @@ -2915,7 +2915,7 @@ "type": "string" } }, - "path": "dfareporting/v4/userprofiles/{profileId}/contentCategories", + "path": "userprofiles/{profileId}/contentCategories", "request": { "$ref": "ContentCategory" }, @@ -2928,7 +2928,7 @@ }, "list": { "description": "Retrieves a list of content categories, possibly filtered. This method supports paging.", - "flatPath": "dfareporting/v4/userprofiles/{profileId}/contentCategories", + "flatPath": "userprofiles/{profileId}/contentCategories", "httpMethod": "GET", "id": "dfareporting.contentCategories.list", "parameterOrder": [ @@ -2997,7 +2997,7 @@ "type": "string" } }, - "path": "dfareporting/v4/userprofiles/{profileId}/contentCategories", + "path": "userprofiles/{profileId}/contentCategories", "response": { "$ref": "ContentCategoriesListResponse" }, @@ -3007,7 +3007,7 @@ }, "patch": { "description": "Updates an existing content category. This method supports patch semantics.", - "flatPath": "dfareporting/v4/userprofiles/{profileId}/contentCategories", + "flatPath": "userprofiles/{profileId}/contentCategories", "httpMethod": "PATCH", "id": "dfareporting.contentCategories.patch", "parameterOrder": [ @@ -3030,7 +3030,7 @@ "type": "string" } }, - "path": "dfareporting/v4/userprofiles/{profileId}/contentCategories", + "path": "userprofiles/{profileId}/contentCategories", "request": { "$ref": "ContentCategory" }, @@ -3043,7 +3043,7 @@ }, "update": { "description": "Updates an existing content category.", - "flatPath": "dfareporting/v4/userprofiles/{profileId}/contentCategories", + "flatPath": "userprofiles/{profileId}/contentCategories", "httpMethod": "PUT", "id": "dfareporting.contentCategories.update", "parameterOrder": [ @@ -3058,7 +3058,7 @@ "type": "string" } }, - "path": "dfareporting/v4/userprofiles/{profileId}/contentCategories", + "path": "userprofiles/{profileId}/contentCategories", "request": { "$ref": "ContentCategory" }, @@ -3075,7 +3075,7 @@ "methods": { "batchinsert": { "description": "Inserts conversions.", - "flatPath": "dfareporting/v4/userprofiles/{profileId}/conversions/batchinsert", + "flatPath": "userprofiles/{profileId}/conversions/batchinsert", "httpMethod": "POST", "id": "dfareporting.conversions.batchinsert", "parameterOrder": [ @@ -3090,7 +3090,7 @@ "type": "string" } }, - "path": "dfareporting/v4/userprofiles/{profileId}/conversions/batchinsert", + "path": "userprofiles/{profileId}/conversions/batchinsert", "request": { "$ref": "ConversionsBatchInsertRequest" }, @@ -3103,7 +3103,7 @@ }, "batchupdate": { "description": "Updates existing conversions.", - "flatPath": "dfareporting/v4/userprofiles/{profileId}/conversions/batchupdate", + "flatPath": "userprofiles/{profileId}/conversions/batchupdate", "httpMethod": "POST", "id": "dfareporting.conversions.batchupdate", "parameterOrder": [ @@ -3118,7 +3118,7 @@ "type": "string" } }, - "path": "dfareporting/v4/userprofiles/{profileId}/conversions/batchupdate", + "path": "userprofiles/{profileId}/conversions/batchupdate", "request": { "$ref": "ConversionsBatchUpdateRequest" }, @@ -3135,7 +3135,7 @@ "methods": { "get": { "description": "Gets one country by ID.", - "flatPath": "dfareporting/v4/userprofiles/{profileId}/countries/{dartId}", + "flatPath": "userprofiles/{profileId}/countries/{dartId}", "httpMethod": "GET", "id": "dfareporting.countries.get", "parameterOrder": [ @@ -3158,7 +3158,7 @@ "type": "string" } }, - "path": "dfareporting/v4/userprofiles/{profileId}/countries/{dartId}", + "path": "userprofiles/{profileId}/countries/{dartId}", "response": { "$ref": "Country" }, @@ -3168,7 +3168,7 @@ }, "list": { "description": "Retrieves a list of countries.", - "flatPath": "dfareporting/v4/userprofiles/{profileId}/countries", + "flatPath": "userprofiles/{profileId}/countries", "httpMethod": "GET", "id": "dfareporting.countries.list", "parameterOrder": [ @@ -3183,7 +3183,7 @@ "type": "string" } }, - "path": "dfareporting/v4/userprofiles/{profileId}/countries", + "path": "userprofiles/{profileId}/countries", "response": { "$ref": "CountriesListResponse" }, @@ -3197,7 +3197,7 @@ "methods": { "insert": { "description": "Inserts a new creative asset.", - "flatPath": "dfareporting/v4/userprofiles/{profileId}/creativeAssets/{advertiserId}/creativeAssets", + "flatPath": "userprofiles/{profileId}/creativeAssets/{advertiserId}/creativeAssets", "httpMethod": "POST", "id": "dfareporting.creativeAssets.insert", "mediaUpload": { @@ -3232,7 +3232,7 @@ "type": "string" } }, - "path": "dfareporting/v4/userprofiles/{profileId}/creativeAssets/{advertiserId}/creativeAssets", + "path": "userprofiles/{profileId}/creativeAssets/{advertiserId}/creativeAssets", "request": { "$ref": "CreativeAssetMetadata" }, @@ -3250,7 +3250,7 @@ "methods": { "delete": { "description": "Deletes an existing creative field value.", - "flatPath": "dfareporting/v4/userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues/{id}", + "flatPath": "userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues/{id}", "httpMethod": "DELETE", "id": "dfareporting.creativeFieldValues.delete", "parameterOrder": [ @@ -3281,14 +3281,14 @@ "type": "string" } }, - "path": "dfareporting/v4/userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues/{id}", + "path": "userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues/{id}", "scopes": [ "https://www.googleapis.com/auth/dfatrafficking" ] }, "get": { "description": "Gets one creative field value by ID.", - "flatPath": "dfareporting/v4/userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues/{id}", + "flatPath": "userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues/{id}", "httpMethod": "GET", "id": "dfareporting.creativeFieldValues.get", "parameterOrder": [ @@ -3319,7 +3319,7 @@ "type": "string" } }, - "path": "dfareporting/v4/userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues/{id}", + "path": "userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues/{id}", "response": { "$ref": "CreativeFieldValue" }, @@ -3329,7 +3329,7 @@ }, "insert": { "description": "Inserts a new creative field value.", - "flatPath": "dfareporting/v4/userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues", + "flatPath": "userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues", "httpMethod": "POST", "id": "dfareporting.creativeFieldValues.insert", "parameterOrder": [ @@ -3352,7 +3352,7 @@ "type": "string" } }, - "path": "dfareporting/v4/userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues", + "path": "userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues", "request": { "$ref": "CreativeFieldValue" }, @@ -3365,7 +3365,7 @@ }, "list": { "description": "Retrieves a list of creative field values, possibly filtered. This method supports paging.", - "flatPath": "dfareporting/v4/userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues", + "flatPath": "userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues", "httpMethod": "GET", "id": "dfareporting.creativeFieldValues.list", "parameterOrder": [ @@ -3442,7 +3442,7 @@ "type": "string" } }, - "path": "dfareporting/v4/userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues", + "path": "userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues", "response": { "$ref": "CreativeFieldValuesListResponse" }, @@ -3452,7 +3452,7 @@ }, "patch": { "description": "Updates an existing creative field value. This method supports patch semantics.", - "flatPath": "dfareporting/v4/userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues", + "flatPath": "userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues", "httpMethod": "PATCH", "id": "dfareporting.creativeFieldValues.patch", "parameterOrder": [ @@ -3483,7 +3483,7 @@ "type": "string" } }, - "path": "dfareporting/v4/userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues", + "path": "userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues", "request": { "$ref": "CreativeFieldValue" }, @@ -3496,7 +3496,7 @@ }, "update": { "description": "Updates an existing creative field value.", - "flatPath": "dfareporting/v4/userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues", + "flatPath": "userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues", "httpMethod": "PUT", "id": "dfareporting.creativeFieldValues.update", "parameterOrder": [ @@ -3519,7 +3519,7 @@ "type": "string" } }, - "path": "dfareporting/v4/userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues", + "path": "userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues", "request": { "$ref": "CreativeFieldValue" }, @@ -3536,7 +3536,7 @@ "methods": { "delete": { "description": "Deletes an existing creative field.", - "flatPath": "dfareporting/v4/userprofiles/{profileId}/creativeFields/{id}", + "flatPath": "userprofiles/{profileId}/creativeFields/{id}", "httpMethod": "DELETE", "id": "dfareporting.creativeFields.delete", "parameterOrder": [ @@ -3559,14 +3559,14 @@ "type": "string" } }, - "path": "dfareporting/v4/userprofiles/{profileId}/creativeFields/{id}", + "path": "userprofiles/{profileId}/creativeFields/{id}", "scopes": [ "https://www.googleapis.com/auth/dfatrafficking" ] }, "get": { "description": "Gets one creative field by ID.", - "flatPath": "dfareporting/v4/userprofiles/{profileId}/creativeFields/{id}", + "flatPath": "userprofiles/{profileId}/creativeFields/{id}", "httpMethod": "GET", "id": "dfareporting.creativeFields.get", "parameterOrder": [ @@ -3589,7 +3589,7 @@ "type": "string" } }, - "path": "dfareporting/v4/userprofiles/{profileId}/creativeFields/{id}", + "path": "userprofiles/{profileId}/creativeFields/{id}", "response": { "$ref": "CreativeField" }, @@ -3599,7 +3599,7 @@ }, "insert": { "description": "Inserts a new creative field.", - "flatPath": "dfareporting/v4/userprofiles/{profileId}/creativeFields", + "flatPath": "userprofiles/{profileId}/creativeFields", "httpMethod": "POST", "id": "dfareporting.creativeFields.insert", "parameterOrder": [ @@ -3614,7 +3614,7 @@ "type": "string" } }, - "path": "dfareporting/v4/userprofiles/{profileId}/creativeFields", + "path": "userprofiles/{profileId}/creativeFields", "request": { "$ref": "CreativeField" }, @@ -3627,7 +3627,7 @@ }, "list": { "description": "Retrieves a list of creative fields, possibly filtered. This method supports paging.", - "flatPath": "dfareporting/v4/userprofiles/{profileId}/creativeFields", + "flatPath": "userprofiles/{profileId}/creativeFields", "httpMethod": "GET", "id": "dfareporting.creativeFields.list", "parameterOrder": [ @@ -3703,7 +3703,7 @@ "type": "string" } }, - "path": "dfareporting/v4/userprofiles/{profileId}/creativeFields", + "path": "userprofiles/{profileId}/creativeFields", "response": { "$ref": "CreativeFieldsListResponse" }, @@ -3713,7 +3713,7 @@ }, "patch": { "description": "Updates an existing creative field. This method supports patch semantics.", - "flatPath": "dfareporting/v4/userprofiles/{profileId}/creativeFields", + "flatPath": "userprofiles/{profileId}/creativeFields", "httpMethod": "PATCH", "id": "dfareporting.creativeFields.patch", "parameterOrder": [ @@ -3736,7 +3736,7 @@ "type": "string" } }, - "path": "dfareporting/v4/userprofiles/{profileId}/creativeFields", + "path": "userprofiles/{profileId}/creativeFields", "request": { "$ref": "CreativeField" }, @@ -3749,7 +3749,7 @@ }, "update": { "description": "Updates an existing creative field.", - "flatPath": "dfareporting/v4/userprofiles/{profileId}/creativeFields", + "flatPath": "userprofiles/{profileId}/creativeFields", "httpMethod": "PUT", "id": "dfareporting.creativeFields.update", "parameterOrder": [ @@ -3764,7 +3764,7 @@ "type": "string" } }, - "path": "dfareporting/v4/userprofiles/{profileId}/creativeFields", + "path": "userprofiles/{profileId}/creativeFields", "request": { "$ref": "CreativeField" }, @@ -3781,7 +3781,7 @@ "methods": { "get": { "description": "Gets one creative group by ID.", - "flatPath": "dfareporting/v4/userprofiles/{profileId}/creativeGroups/{id}", + "flatPath": "userprofiles/{profileId}/creativeGroups/{id}", "httpMethod": "GET", "id": "dfareporting.creativeGroups.get", "parameterOrder": [ @@ -3804,7 +3804,7 @@ "type": "string" } }, - "path": "dfareporting/v4/userprofiles/{profileId}/creativeGroups/{id}", + "path": "userprofiles/{profileId}/creativeGroups/{id}", "response": { "$ref": "CreativeGroup" }, @@ -3814,7 +3814,7 @@ }, "insert": { "description": "Inserts a new creative group.", - "flatPath": "dfareporting/v4/userprofiles/{profileId}/creativeGroups", + "flatPath": "userprofiles/{profileId}/creativeGroups", "httpMethod": "POST", "id": "dfareporting.creativeGroups.insert", "parameterOrder": [ @@ -3829,7 +3829,7 @@ "type": "string" } }, - "path": "dfareporting/v4/userprofiles/{profileId}/creativeGroups", + "path": "userprofiles/{profileId}/creativeGroups", "request": { "$ref": "CreativeGroup" }, @@ -3842,7 +3842,7 @@ }, "list": { "description": "Retrieves a list of creative groups, possibly filtered. This method supports paging.", - "flatPath": "dfareporting/v4/userprofiles/{profileId}/creativeGroups", + "flatPath": "userprofiles/{profileId}/creativeGroups", "httpMethod": "GET", "id": "dfareporting.creativeGroups.list", "parameterOrder": [ @@ -3926,7 +3926,7 @@ "type": "string" } }, - "path": "dfareporting/v4/userprofiles/{profileId}/creativeGroups", + "path": "userprofiles/{profileId}/creativeGroups", "response": { "$ref": "CreativeGroupsListResponse" }, @@ -3936,7 +3936,7 @@ }, "patch": { "description": "Updates an existing creative group. This method supports patch semantics.", - "flatPath": "dfareporting/v4/userprofiles/{profileId}/creativeGroups", + "flatPath": "userprofiles/{profileId}/creativeGroups", "httpMethod": "PATCH", "id": "dfareporting.creativeGroups.patch", "parameterOrder": [ @@ -3959,7 +3959,7 @@ "type": "string" } }, - "path": "dfareporting/v4/userprofiles/{profileId}/creativeGroups", + "path": "userprofiles/{profileId}/creativeGroups", "request": { "$ref": "CreativeGroup" }, @@ -3972,7 +3972,7 @@ }, "update": { "description": "Updates an existing creative group.", - "flatPath": "dfareporting/v4/userprofiles/{profileId}/creativeGroups", + "flatPath": "userprofiles/{profileId}/creativeGroups", "httpMethod": "PUT", "id": "dfareporting.creativeGroups.update", "parameterOrder": [ @@ -3987,7 +3987,7 @@ "type": "string" } }, - "path": "dfareporting/v4/userprofiles/{profileId}/creativeGroups", + "path": "userprofiles/{profileId}/creativeGroups", "request": { "$ref": "CreativeGroup" }, @@ -4004,7 +4004,7 @@ "methods": { "get": { "description": "Gets one creative by ID.", - "flatPath": "dfareporting/v4/userprofiles/{profileId}/creatives/{id}", + "flatPath": "userprofiles/{profileId}/creatives/{id}", "httpMethod": "GET", "id": "dfareporting.creatives.get", "parameterOrder": [ @@ -4027,7 +4027,7 @@ "type": "string" } }, - "path": "dfareporting/v4/userprofiles/{profileId}/creatives/{id}", + "path": "userprofiles/{profileId}/creatives/{id}", "response": { "$ref": "Creative" }, @@ -4037,7 +4037,7 @@ }, "insert": { "description": "Inserts a new creative.", - "flatPath": "dfareporting/v4/userprofiles/{profileId}/creatives", + "flatPath": "userprofiles/{profileId}/creatives", "httpMethod": "POST", "id": "dfareporting.creatives.insert", "parameterOrder": [ @@ -4052,7 +4052,7 @@ "type": "string" } }, - "path": "dfareporting/v4/userprofiles/{profileId}/creatives", + "path": "userprofiles/{profileId}/creatives", "request": { "$ref": "Creative" }, @@ -4065,7 +4065,7 @@ }, "list": { "description": "Retrieves a list of creatives, possibly filtered. This method supports paging.", - "flatPath": "dfareporting/v4/userprofiles/{profileId}/creatives", + "flatPath": "userprofiles/{profileId}/creatives", "httpMethod": "GET", "id": "dfareporting.creatives.list", "parameterOrder": [ @@ -4250,7 +4250,7 @@ "type": "string" } }, - "path": "dfareporting/v4/userprofiles/{profileId}/creatives", + "path": "userprofiles/{profileId}/creatives", "response": { "$ref": "CreativesListResponse" }, @@ -4260,7 +4260,7 @@ }, "patch": { "description": "Updates an existing creative. This method supports patch semantics.", - "flatPath": "dfareporting/v4/userprofiles/{profileId}/creatives", + "flatPath": "userprofiles/{profileId}/creatives", "httpMethod": "PATCH", "id": "dfareporting.creatives.patch", "parameterOrder": [ @@ -4283,7 +4283,7 @@ "type": "string" } }, - "path": "dfareporting/v4/userprofiles/{profileId}/creatives", + "path": "userprofiles/{profileId}/creatives", "request": { "$ref": "Creative" }, @@ -4296,7 +4296,7 @@ }, "update": { "description": "Updates an existing creative.", - "flatPath": "dfareporting/v4/userprofiles/{profileId}/creatives", + "flatPath": "userprofiles/{profileId}/creatives", "httpMethod": "PUT", "id": "dfareporting.creatives.update", "parameterOrder": [ @@ -4311,7 +4311,7 @@ "type": "string" } }, - "path": "dfareporting/v4/userprofiles/{profileId}/creatives", + "path": "userprofiles/{profileId}/creatives", "request": { "$ref": "Creative" }, @@ -4328,7 +4328,7 @@ "methods": { "query": { "description": "Retrieves list of report dimension values for a list of filters.", - "flatPath": "dfareporting/v4/userprofiles/{profileId}/dimensionvalues/query", + "flatPath": "userprofiles/{profileId}/dimensionvalues/query", "httpMethod": "POST", "id": "dfareporting.dimensionValues.query", "parameterOrder": [ @@ -4357,7 +4357,7 @@ "type": "string" } }, - "path": "dfareporting/v4/userprofiles/{profileId}/dimensionvalues/query", + "path": "userprofiles/{profileId}/dimensionvalues/query", "request": { "$ref": "DimensionValueRequest" }, @@ -4374,7 +4374,7 @@ "methods": { "get": { "description": "Gets one directory site by ID.", - "flatPath": "dfareporting/v4/userprofiles/{profileId}/directorySites/{id}", + "flatPath": "userprofiles/{profileId}/directorySites/{id}", "httpMethod": "GET", "id": "dfareporting.directorySites.get", "parameterOrder": [ @@ -4397,7 +4397,7 @@ "type": "string" } }, - "path": "dfareporting/v4/userprofiles/{profileId}/directorySites/{id}", + "path": "userprofiles/{profileId}/directorySites/{id}", "response": { "$ref": "DirectorySite" }, @@ -4407,7 +4407,7 @@ }, "insert": { "description": "Inserts a new directory site.", - "flatPath": "dfareporting/v4/userprofiles/{profileId}/directorySites", + "flatPath": "userprofiles/{profileId}/directorySites", "httpMethod": "POST", "id": "dfareporting.directorySites.insert", "parameterOrder": [ @@ -4422,7 +4422,7 @@ "type": "string" } }, - "path": "dfareporting/v4/userprofiles/{profileId}/directorySites", + "path": "userprofiles/{profileId}/directorySites", "request": { "$ref": "DirectorySite" }, @@ -4435,7 +4435,7 @@ }, "list": { "description": "Retrieves a list of directory sites, possibly filtered. This method supports paging.", - "flatPath": "dfareporting/v4/userprofiles/{profileId}/directorySites", + "flatPath": "userprofiles/{profileId}/directorySites", "httpMethod": "GET", "id": "dfareporting.directorySites.list", "parameterOrder": [ @@ -4529,7 +4529,7 @@ "type": "string" } }, - "path": "dfareporting/v4/userprofiles/{profileId}/directorySites", + "path": "userprofiles/{profileId}/directorySites", "response": { "$ref": "DirectorySitesListResponse" }, @@ -4543,7 +4543,7 @@ "methods": { "delete": { "description": "Deletes an existing dynamic targeting key.", - "flatPath": "dfareporting/v4/userprofiles/{profileId}/dynamicTargetingKeys/{objectId}", + "flatPath": "userprofiles/{profileId}/dynamicTargetingKeys/{objectId}", "httpMethod": "DELETE", "id": "dfareporting.dynamicTargetingKeys.delete", "parameterOrder": [ @@ -4592,14 +4592,14 @@ "type": "string" } }, - "path": "dfareporting/v4/userprofiles/{profileId}/dynamicTargetingKeys/{objectId}", + "path": "userprofiles/{profileId}/dynamicTargetingKeys/{objectId}", "scopes": [ "https://www.googleapis.com/auth/dfatrafficking" ] }, "insert": { "description": "Inserts a new dynamic targeting key. Keys must be created at the advertiser level before being assigned to the advertiser's ads, creatives, or placements. There is a maximum of 1000 keys per advertiser, out of which a maximum of 20 keys can be assigned per ad, creative, or placement.", - "flatPath": "dfareporting/v4/userprofiles/{profileId}/dynamicTargetingKeys", + "flatPath": "userprofiles/{profileId}/dynamicTargetingKeys", "httpMethod": "POST", "id": "dfareporting.dynamicTargetingKeys.insert", "parameterOrder": [ @@ -4614,7 +4614,7 @@ "type": "string" } }, - "path": "dfareporting/v4/userprofiles/{profileId}/dynamicTargetingKeys", + "path": "userprofiles/{profileId}/dynamicTargetingKeys", "request": { "$ref": "DynamicTargetingKey" }, @@ -4627,7 +4627,7 @@ }, "list": { "description": "Retrieves a list of dynamic targeting keys.", - "flatPath": "dfareporting/v4/userprofiles/{profileId}/dynamicTargetingKeys", + "flatPath": "userprofiles/{profileId}/dynamicTargetingKeys", "httpMethod": "GET", "id": "dfareporting.dynamicTargetingKeys.list", "parameterOrder": [ @@ -4677,7 +4677,7 @@ "type": "string" } }, - "path": "dfareporting/v4/userprofiles/{profileId}/dynamicTargetingKeys", + "path": "userprofiles/{profileId}/dynamicTargetingKeys", "response": { "$ref": "DynamicTargetingKeysListResponse" }, @@ -4691,7 +4691,7 @@ "methods": { "delete": { "description": "Deletes an existing event tag.", - "flatPath": "dfareporting/v4/userprofiles/{profileId}/eventTags/{id}", + "flatPath": "userprofiles/{profileId}/eventTags/{id}", "httpMethod": "DELETE", "id": "dfareporting.eventTags.delete", "parameterOrder": [ @@ -4714,14 +4714,14 @@ "type": "string" } }, - "path": "dfareporting/v4/userprofiles/{profileId}/eventTags/{id}", + "path": "userprofiles/{profileId}/eventTags/{id}", "scopes": [ "https://www.googleapis.com/auth/dfatrafficking" ] }, "get": { "description": "Gets one event tag by ID.", - "flatPath": "dfareporting/v4/userprofiles/{profileId}/eventTags/{id}", + "flatPath": "userprofiles/{profileId}/eventTags/{id}", "httpMethod": "GET", "id": "dfareporting.eventTags.get", "parameterOrder": [ @@ -4744,7 +4744,7 @@ "type": "string" } }, - "path": "dfareporting/v4/userprofiles/{profileId}/eventTags/{id}", + "path": "userprofiles/{profileId}/eventTags/{id}", "response": { "$ref": "EventTag" }, @@ -4754,7 +4754,7 @@ }, "insert": { "description": "Inserts a new event tag.", - "flatPath": "dfareporting/v4/userprofiles/{profileId}/eventTags", + "flatPath": "userprofiles/{profileId}/eventTags", "httpMethod": "POST", "id": "dfareporting.eventTags.insert", "parameterOrder": [ @@ -4769,7 +4769,7 @@ "type": "string" } }, - "path": "dfareporting/v4/userprofiles/{profileId}/eventTags", + "path": "userprofiles/{profileId}/eventTags", "request": { "$ref": "EventTag" }, @@ -4782,7 +4782,7 @@ }, "list": { "description": "Retrieves a list of event tags, possibly filtered.", - "flatPath": "dfareporting/v4/userprofiles/{profileId}/eventTags", + "flatPath": "userprofiles/{profileId}/eventTags", "httpMethod": "GET", "id": "dfareporting.eventTags.list", "parameterOrder": [ @@ -4881,7 +4881,7 @@ "type": "string" } }, - "path": "dfareporting/v4/userprofiles/{profileId}/eventTags", + "path": "userprofiles/{profileId}/eventTags", "response": { "$ref": "EventTagsListResponse" }, @@ -4891,7 +4891,7 @@ }, "patch": { "description": "Updates an existing event tag. This method supports patch semantics.", - "flatPath": "dfareporting/v4/userprofiles/{profileId}/eventTags", + "flatPath": "userprofiles/{profileId}/eventTags", "httpMethod": "PATCH", "id": "dfareporting.eventTags.patch", "parameterOrder": [ @@ -4914,7 +4914,7 @@ "type": "string" } }, - "path": "dfareporting/v4/userprofiles/{profileId}/eventTags", + "path": "userprofiles/{profileId}/eventTags", "request": { "$ref": "EventTag" }, @@ -4927,7 +4927,7 @@ }, "update": { "description": "Updates an existing event tag.", - "flatPath": "dfareporting/v4/userprofiles/{profileId}/eventTags", + "flatPath": "userprofiles/{profileId}/eventTags", "httpMethod": "PUT", "id": "dfareporting.eventTags.update", "parameterOrder": [ @@ -4942,7 +4942,7 @@ "type": "string" } }, - "path": "dfareporting/v4/userprofiles/{profileId}/eventTags", + "path": "userprofiles/{profileId}/eventTags", "request": { "$ref": "EventTag" }, @@ -4959,7 +4959,7 @@ "methods": { "get": { "description": "Retrieves a report file by its report ID and file ID. This method supports media download.", - "flatPath": "dfareporting/v4/reports/{reportId}/files/{fileId}", + "flatPath": "reports/{reportId}/files/{fileId}", "httpMethod": "GET", "id": "dfareporting.files.get", "parameterOrder": [ @@ -4982,7 +4982,7 @@ "type": "string" } }, - "path": "dfareporting/v4/reports/{reportId}/files/{fileId}", + "path": "reports/{reportId}/files/{fileId}", "response": { "$ref": "File" }, @@ -4993,7 +4993,7 @@ }, "list": { "description": "Lists files for a user profile.", - "flatPath": "dfareporting/v4/userprofiles/{profileId}/files", + "flatPath": "userprofiles/{profileId}/files", "httpMethod": "GET", "id": "dfareporting.files.list", "parameterOrder": [ @@ -5066,7 +5066,7 @@ "type": "string" } }, - "path": "dfareporting/v4/userprofiles/{profileId}/files", + "path": "userprofiles/{profileId}/files", "response": { "$ref": "FileList" }, @@ -5080,7 +5080,7 @@ "methods": { "delete": { "description": "Deletes an existing floodlight activity.", - "flatPath": "dfareporting/v4/userprofiles/{profileId}/floodlightActivities/{id}", + "flatPath": "userprofiles/{profileId}/floodlightActivities/{id}", "httpMethod": "DELETE", "id": "dfareporting.floodlightActivities.delete", "parameterOrder": [ @@ -5103,14 +5103,14 @@ "type": "string" } }, - "path": "dfareporting/v4/userprofiles/{profileId}/floodlightActivities/{id}", + "path": "userprofiles/{profileId}/floodlightActivities/{id}", "scopes": [ "https://www.googleapis.com/auth/dfatrafficking" ] }, "generatetag": { "description": "Generates a tag for a floodlight activity.", - "flatPath": "dfareporting/v4/userprofiles/{profileId}/floodlightActivities/generatetag", + "flatPath": "userprofiles/{profileId}/floodlightActivities/generatetag", "httpMethod": "POST", "id": "dfareporting.floodlightActivities.generatetag", "parameterOrder": [ @@ -5131,7 +5131,7 @@ "type": "string" } }, - "path": "dfareporting/v4/userprofiles/{profileId}/floodlightActivities/generatetag", + "path": "userprofiles/{profileId}/floodlightActivities/generatetag", "response": { "$ref": "FloodlightActivitiesGenerateTagResponse" }, @@ -5141,7 +5141,7 @@ }, "get": { "description": "Gets one floodlight activity by ID.", - "flatPath": "dfareporting/v4/userprofiles/{profileId}/floodlightActivities/{id}", + "flatPath": "userprofiles/{profileId}/floodlightActivities/{id}", "httpMethod": "GET", "id": "dfareporting.floodlightActivities.get", "parameterOrder": [ @@ -5164,7 +5164,7 @@ "type": "string" } }, - "path": "dfareporting/v4/userprofiles/{profileId}/floodlightActivities/{id}", + "path": "userprofiles/{profileId}/floodlightActivities/{id}", "response": { "$ref": "FloodlightActivity" }, @@ -5174,7 +5174,7 @@ }, "insert": { "description": "Inserts a new floodlight activity.", - "flatPath": "dfareporting/v4/userprofiles/{profileId}/floodlightActivities", + "flatPath": "userprofiles/{profileId}/floodlightActivities", "httpMethod": "POST", "id": "dfareporting.floodlightActivities.insert", "parameterOrder": [ @@ -5189,7 +5189,7 @@ "type": "string" } }, - "path": "dfareporting/v4/userprofiles/{profileId}/floodlightActivities", + "path": "userprofiles/{profileId}/floodlightActivities", "request": { "$ref": "FloodlightActivity" }, @@ -5202,7 +5202,7 @@ }, "list": { "description": "Retrieves a list of floodlight activities, possibly filtered. This method supports paging.", - "flatPath": "dfareporting/v4/userprofiles/{profileId}/floodlightActivities", + "flatPath": "userprofiles/{profileId}/floodlightActivities", "httpMethod": "GET", "id": "dfareporting.floodlightActivities.list", "parameterOrder": [ @@ -5318,7 +5318,7 @@ "type": "string" } }, - "path": "dfareporting/v4/userprofiles/{profileId}/floodlightActivities", + "path": "userprofiles/{profileId}/floodlightActivities", "response": { "$ref": "FloodlightActivitiesListResponse" }, @@ -5328,7 +5328,7 @@ }, "patch": { "description": "Updates an existing floodlight activity. This method supports patch semantics.", - "flatPath": "dfareporting/v4/userprofiles/{profileId}/floodlightActivities", + "flatPath": "userprofiles/{profileId}/floodlightActivities", "httpMethod": "PATCH", "id": "dfareporting.floodlightActivities.patch", "parameterOrder": [ @@ -5351,7 +5351,7 @@ "type": "string" } }, - "path": "dfareporting/v4/userprofiles/{profileId}/floodlightActivities", + "path": "userprofiles/{profileId}/floodlightActivities", "request": { "$ref": "FloodlightActivity" }, @@ -5364,7 +5364,7 @@ }, "update": { "description": "Updates an existing floodlight activity.", - "flatPath": "dfareporting/v4/userprofiles/{profileId}/floodlightActivities", + "flatPath": "userprofiles/{profileId}/floodlightActivities", "httpMethod": "PUT", "id": "dfareporting.floodlightActivities.update", "parameterOrder": [ @@ -5379,7 +5379,7 @@ "type": "string" } }, - "path": "dfareporting/v4/userprofiles/{profileId}/floodlightActivities", + "path": "userprofiles/{profileId}/floodlightActivities", "request": { "$ref": "FloodlightActivity" }, @@ -5396,7 +5396,7 @@ "methods": { "get": { "description": "Gets one floodlight activity group by ID.", - "flatPath": "dfareporting/v4/userprofiles/{profileId}/floodlightActivityGroups/{id}", + "flatPath": "userprofiles/{profileId}/floodlightActivityGroups/{id}", "httpMethod": "GET", "id": "dfareporting.floodlightActivityGroups.get", "parameterOrder": [ @@ -5419,7 +5419,7 @@ "type": "string" } }, - "path": "dfareporting/v4/userprofiles/{profileId}/floodlightActivityGroups/{id}", + "path": "userprofiles/{profileId}/floodlightActivityGroups/{id}", "response": { "$ref": "FloodlightActivityGroup" }, @@ -5429,7 +5429,7 @@ }, "insert": { "description": "Inserts a new floodlight activity group.", - "flatPath": "dfareporting/v4/userprofiles/{profileId}/floodlightActivityGroups", + "flatPath": "userprofiles/{profileId}/floodlightActivityGroups", "httpMethod": "POST", "id": "dfareporting.floodlightActivityGroups.insert", "parameterOrder": [ @@ -5444,7 +5444,7 @@ "type": "string" } }, - "path": "dfareporting/v4/userprofiles/{profileId}/floodlightActivityGroups", + "path": "userprofiles/{profileId}/floodlightActivityGroups", "request": { "$ref": "FloodlightActivityGroup" }, @@ -5457,7 +5457,7 @@ }, "list": { "description": "Retrieves a list of floodlight activity groups, possibly filtered. This method supports paging.", - "flatPath": "dfareporting/v4/userprofiles/{profileId}/floodlightActivityGroups", + "flatPath": "userprofiles/{profileId}/floodlightActivityGroups", "httpMethod": "GET", "id": "dfareporting.floodlightActivityGroups.list", "parameterOrder": [ @@ -5551,7 +5551,7 @@ "type": "string" } }, - "path": "dfareporting/v4/userprofiles/{profileId}/floodlightActivityGroups", + "path": "userprofiles/{profileId}/floodlightActivityGroups", "response": { "$ref": "FloodlightActivityGroupsListResponse" }, @@ -5561,7 +5561,7 @@ }, "patch": { "description": "Updates an existing floodlight activity group. This method supports patch semantics.", - "flatPath": "dfareporting/v4/userprofiles/{profileId}/floodlightActivityGroups", + "flatPath": "userprofiles/{profileId}/floodlightActivityGroups", "httpMethod": "PATCH", "id": "dfareporting.floodlightActivityGroups.patch", "parameterOrder": [ @@ -5584,7 +5584,7 @@ "type": "string" } }, - "path": "dfareporting/v4/userprofiles/{profileId}/floodlightActivityGroups", + "path": "userprofiles/{profileId}/floodlightActivityGroups", "request": { "$ref": "FloodlightActivityGroup" }, @@ -5597,7 +5597,7 @@ }, "update": { "description": "Updates an existing floodlight activity group.", - "flatPath": "dfareporting/v4/userprofiles/{profileId}/floodlightActivityGroups", + "flatPath": "userprofiles/{profileId}/floodlightActivityGroups", "httpMethod": "PUT", "id": "dfareporting.floodlightActivityGroups.update", "parameterOrder": [ @@ -5612,7 +5612,7 @@ "type": "string" } }, - "path": "dfareporting/v4/userprofiles/{profileId}/floodlightActivityGroups", + "path": "userprofiles/{profileId}/floodlightActivityGroups", "request": { "$ref": "FloodlightActivityGroup" }, @@ -5629,7 +5629,7 @@ "methods": { "get": { "description": "Gets one floodlight configuration by ID.", - "flatPath": "dfareporting/v4/userprofiles/{profileId}/floodlightConfigurations/{id}", + "flatPath": "userprofiles/{profileId}/floodlightConfigurations/{id}", "httpMethod": "GET", "id": "dfareporting.floodlightConfigurations.get", "parameterOrder": [ @@ -5652,7 +5652,7 @@ "type": "string" } }, - "path": "dfareporting/v4/userprofiles/{profileId}/floodlightConfigurations/{id}", + "path": "userprofiles/{profileId}/floodlightConfigurations/{id}", "response": { "$ref": "FloodlightConfiguration" }, @@ -5662,7 +5662,7 @@ }, "list": { "description": "Retrieves a list of floodlight configurations, possibly filtered.", - "flatPath": "dfareporting/v4/userprofiles/{profileId}/floodlightConfigurations", + "flatPath": "userprofiles/{profileId}/floodlightConfigurations", "httpMethod": "GET", "id": "dfareporting.floodlightConfigurations.list", "parameterOrder": [ @@ -5684,7 +5684,7 @@ "type": "string" } }, - "path": "dfareporting/v4/userprofiles/{profileId}/floodlightConfigurations", + "path": "userprofiles/{profileId}/floodlightConfigurations", "response": { "$ref": "FloodlightConfigurationsListResponse" }, @@ -5694,7 +5694,7 @@ }, "patch": { "description": "Updates an existing floodlight configuration. This method supports patch semantics.", - "flatPath": "dfareporting/v4/userprofiles/{profileId}/floodlightConfigurations", + "flatPath": "userprofiles/{profileId}/floodlightConfigurations", "httpMethod": "PATCH", "id": "dfareporting.floodlightConfigurations.patch", "parameterOrder": [ @@ -5717,7 +5717,7 @@ "type": "string" } }, - "path": "dfareporting/v4/userprofiles/{profileId}/floodlightConfigurations", + "path": "userprofiles/{profileId}/floodlightConfigurations", "request": { "$ref": "FloodlightConfiguration" }, @@ -5730,7 +5730,7 @@ }, "update": { "description": "Updates an existing floodlight configuration.", - "flatPath": "dfareporting/v4/userprofiles/{profileId}/floodlightConfigurations", + "flatPath": "userprofiles/{profileId}/floodlightConfigurations", "httpMethod": "PUT", "id": "dfareporting.floodlightConfigurations.update", "parameterOrder": [ @@ -5745,7 +5745,7 @@ "type": "string" } }, - "path": "dfareporting/v4/userprofiles/{profileId}/floodlightConfigurations", + "path": "userprofiles/{profileId}/floodlightConfigurations", "request": { "$ref": "FloodlightConfiguration" }, @@ -5762,7 +5762,7 @@ "methods": { "get": { "description": "Gets one inventory item by ID.", - "flatPath": "dfareporting/v4/userprofiles/{profileId}/projects/{projectId}/inventoryItems/{id}", + "flatPath": "userprofiles/{profileId}/projects/{projectId}/inventoryItems/{id}", "httpMethod": "GET", "id": "dfareporting.inventoryItems.get", "parameterOrder": [ @@ -5793,7 +5793,7 @@ "type": "string" } }, - "path": "dfareporting/v4/userprofiles/{profileId}/projects/{projectId}/inventoryItems/{id}", + "path": "userprofiles/{profileId}/projects/{projectId}/inventoryItems/{id}", "response": { "$ref": "InventoryItem" }, @@ -5803,7 +5803,7 @@ }, "list": { "description": "Retrieves a list of inventory items, possibly filtered. This method supports paging.", - "flatPath": "dfareporting/v4/userprofiles/{profileId}/projects/{projectId}/inventoryItems", + "flatPath": "userprofiles/{profileId}/projects/{projectId}/inventoryItems", "httpMethod": "GET", "id": "dfareporting.inventoryItems.list", "parameterOrder": [ @@ -5907,7 +5907,7 @@ "type": "string" } }, - "path": "dfareporting/v4/userprofiles/{profileId}/projects/{projectId}/inventoryItems", + "path": "userprofiles/{profileId}/projects/{projectId}/inventoryItems", "response": { "$ref": "InventoryItemsListResponse" }, @@ -5921,7 +5921,7 @@ "methods": { "list": { "description": "Retrieves a list of languages.", - "flatPath": "dfareporting/v4/userprofiles/{profileId}/languages", + "flatPath": "userprofiles/{profileId}/languages", "httpMethod": "GET", "id": "dfareporting.languages.list", "parameterOrder": [ @@ -5936,7 +5936,7 @@ "type": "string" } }, - "path": "dfareporting/v4/userprofiles/{profileId}/languages", + "path": "userprofiles/{profileId}/languages", "response": { "$ref": "LanguagesListResponse" }, @@ -5950,7 +5950,7 @@ "methods": { "list": { "description": "Retrieves a list of metros.", - "flatPath": "dfareporting/v4/userprofiles/{profileId}/metros", + "flatPath": "userprofiles/{profileId}/metros", "httpMethod": "GET", "id": "dfareporting.metros.list", "parameterOrder": [ @@ -5965,7 +5965,7 @@ "type": "string" } }, - "path": "dfareporting/v4/userprofiles/{profileId}/metros", + "path": "userprofiles/{profileId}/metros", "response": { "$ref": "MetrosListResponse" }, @@ -5979,7 +5979,7 @@ "methods": { "get": { "description": "Gets one mobile app by ID.", - "flatPath": "dfareporting/v4/userprofiles/{profileId}/mobileApps/{id}", + "flatPath": "userprofiles/{profileId}/mobileApps/{id}", "httpMethod": "GET", "id": "dfareporting.mobileApps.get", "parameterOrder": [ @@ -6001,7 +6001,7 @@ "type": "string" } }, - "path": "dfareporting/v4/userprofiles/{profileId}/mobileApps/{id}", + "path": "userprofiles/{profileId}/mobileApps/{id}", "response": { "$ref": "MobileApp" }, @@ -6011,7 +6011,7 @@ }, "list": { "description": "Retrieves list of available mobile apps.", - "flatPath": "dfareporting/v4/userprofiles/{profileId}/mobileApps", + "flatPath": "userprofiles/{profileId}/mobileApps", "httpMethod": "GET", "id": "dfareporting.mobileApps.list", "parameterOrder": [ @@ -6083,7 +6083,7 @@ "type": "string" } }, - "path": "dfareporting/v4/userprofiles/{profileId}/mobileApps", + "path": "userprofiles/{profileId}/mobileApps", "response": { "$ref": "MobileAppsListResponse" }, @@ -6097,7 +6097,7 @@ "methods": { "get": { "description": "Gets one mobile carrier by ID.", - "flatPath": "dfareporting/v4/userprofiles/{profileId}/mobileCarriers/{id}", + "flatPath": "userprofiles/{profileId}/mobileCarriers/{id}", "httpMethod": "GET", "id": "dfareporting.mobileCarriers.get", "parameterOrder": [ @@ -6120,7 +6120,7 @@ "type": "string" } }, - "path": "dfareporting/v4/userprofiles/{profileId}/mobileCarriers/{id}", + "path": "userprofiles/{profileId}/mobileCarriers/{id}", "response": { "$ref": "MobileCarrier" }, @@ -6130,7 +6130,7 @@ }, "list": { "description": "Retrieves a list of mobile carriers.", - "flatPath": "dfareporting/v4/userprofiles/{profileId}/mobileCarriers", + "flatPath": "userprofiles/{profileId}/mobileCarriers", "httpMethod": "GET", "id": "dfareporting.mobileCarriers.list", "parameterOrder": [ @@ -6145,7 +6145,7 @@ "type": "string" } }, - "path": "dfareporting/v4/userprofiles/{profileId}/mobileCarriers", + "path": "userprofiles/{profileId}/mobileCarriers", "response": { "$ref": "MobileCarriersListResponse" }, @@ -6159,7 +6159,7 @@ "methods": { "get": { "description": "Gets one operating system version by ID.", - "flatPath": "dfareporting/v4/userprofiles/{profileId}/operatingSystemVersions/{id}", + "flatPath": "userprofiles/{profileId}/operatingSystemVersions/{id}", "httpMethod": "GET", "id": "dfareporting.operatingSystemVersions.get", "parameterOrder": [ @@ -6182,7 +6182,7 @@ "type": "string" } }, - "path": "dfareporting/v4/userprofiles/{profileId}/operatingSystemVersions/{id}", + "path": "userprofiles/{profileId}/operatingSystemVersions/{id}", "response": { "$ref": "OperatingSystemVersion" }, @@ -6192,7 +6192,7 @@ }, "list": { "description": "Retrieves a list of operating system versions.", - "flatPath": "dfareporting/v4/userprofiles/{profileId}/operatingSystemVersions", + "flatPath": "userprofiles/{profileId}/operatingSystemVersions", "httpMethod": "GET", "id": "dfareporting.operatingSystemVersions.list", "parameterOrder": [ @@ -6207,7 +6207,7 @@ "type": "string" } }, - "path": "dfareporting/v4/userprofiles/{profileId}/operatingSystemVersions", + "path": "userprofiles/{profileId}/operatingSystemVersions", "response": { "$ref": "OperatingSystemVersionsListResponse" }, @@ -6221,7 +6221,7 @@ "methods": { "get": { "description": "Gets one operating system by DART ID.", - "flatPath": "dfareporting/v4/userprofiles/{profileId}/operatingSystems/{dartId}", + "flatPath": "userprofiles/{profileId}/operatingSystems/{dartId}", "httpMethod": "GET", "id": "dfareporting.operatingSystems.get", "parameterOrder": [ @@ -6244,7 +6244,7 @@ "type": "string" } }, - "path": "dfareporting/v4/userprofiles/{profileId}/operatingSystems/{dartId}", + "path": "userprofiles/{profileId}/operatingSystems/{dartId}", "response": { "$ref": "OperatingSystem" }, @@ -6254,7 +6254,7 @@ }, "list": { "description": "Retrieves a list of operating systems.", - "flatPath": "dfareporting/v4/userprofiles/{profileId}/operatingSystems", + "flatPath": "userprofiles/{profileId}/operatingSystems", "httpMethod": "GET", "id": "dfareporting.operatingSystems.list", "parameterOrder": [ @@ -6269,7 +6269,7 @@ "type": "string" } }, - "path": "dfareporting/v4/userprofiles/{profileId}/operatingSystems", + "path": "userprofiles/{profileId}/operatingSystems", "response": { "$ref": "OperatingSystemsListResponse" }, @@ -6283,7 +6283,7 @@ "methods": { "get": { "description": "Gets one order document by ID.", - "flatPath": "dfareporting/v4/userprofiles/{profileId}/projects/{projectId}/orderDocuments/{id}", + "flatPath": "userprofiles/{profileId}/projects/{projectId}/orderDocuments/{id}", "httpMethod": "GET", "id": "dfareporting.orderDocuments.get", "parameterOrder": [ @@ -6314,7 +6314,7 @@ "type": "string" } }, - "path": "dfareporting/v4/userprofiles/{profileId}/projects/{projectId}/orderDocuments/{id}", + "path": "userprofiles/{profileId}/projects/{projectId}/orderDocuments/{id}", "response": { "$ref": "OrderDocument" }, @@ -6324,7 +6324,7 @@ }, "list": { "description": "Retrieves a list of order documents, possibly filtered. This method supports paging.", - "flatPath": "dfareporting/v4/userprofiles/{profileId}/projects/{projectId}/orderDocuments", + "flatPath": "userprofiles/{profileId}/projects/{projectId}/orderDocuments", "httpMethod": "GET", "id": "dfareporting.orderDocuments.list", "parameterOrder": [ @@ -6420,7 +6420,7 @@ "type": "string" } }, - "path": "dfareporting/v4/userprofiles/{profileId}/projects/{projectId}/orderDocuments", + "path": "userprofiles/{profileId}/projects/{projectId}/orderDocuments", "response": { "$ref": "OrderDocumentsListResponse" }, @@ -6434,7 +6434,7 @@ "methods": { "get": { "description": "Gets one order by ID.", - "flatPath": "dfareporting/v4/userprofiles/{profileId}/projects/{projectId}/orders/{id}", + "flatPath": "userprofiles/{profileId}/projects/{projectId}/orders/{id}", "httpMethod": "GET", "id": "dfareporting.orders.get", "parameterOrder": [ @@ -6465,7 +6465,7 @@ "type": "string" } }, - "path": "dfareporting/v4/userprofiles/{profileId}/projects/{projectId}/orders/{id}", + "path": "userprofiles/{profileId}/projects/{projectId}/orders/{id}", "response": { "$ref": "Order" }, @@ -6475,7 +6475,7 @@ }, "list": { "description": "Retrieves a list of orders, possibly filtered. This method supports paging.", - "flatPath": "dfareporting/v4/userprofiles/{profileId}/projects/{projectId}/orders", + "flatPath": "userprofiles/{profileId}/projects/{projectId}/orders", "httpMethod": "GET", "id": "dfareporting.orders.list", "parameterOrder": [ @@ -6559,7 +6559,7 @@ "type": "string" } }, - "path": "dfareporting/v4/userprofiles/{profileId}/projects/{projectId}/orders", + "path": "userprofiles/{profileId}/projects/{projectId}/orders", "response": { "$ref": "OrdersListResponse" }, @@ -6573,7 +6573,7 @@ "methods": { "get": { "description": "Gets one placement group by ID.", - "flatPath": "dfareporting/v4/userprofiles/{profileId}/placementGroups/{id}", + "flatPath": "userprofiles/{profileId}/placementGroups/{id}", "httpMethod": "GET", "id": "dfareporting.placementGroups.get", "parameterOrder": [ @@ -6596,7 +6596,7 @@ "type": "string" } }, - "path": "dfareporting/v4/userprofiles/{profileId}/placementGroups/{id}", + "path": "userprofiles/{profileId}/placementGroups/{id}", "response": { "$ref": "PlacementGroup" }, @@ -6606,7 +6606,7 @@ }, "insert": { "description": "Inserts a new placement group.", - "flatPath": "dfareporting/v4/userprofiles/{profileId}/placementGroups", + "flatPath": "userprofiles/{profileId}/placementGroups", "httpMethod": "POST", "id": "dfareporting.placementGroups.insert", "parameterOrder": [ @@ -6621,7 +6621,7 @@ "type": "string" } }, - "path": "dfareporting/v4/userprofiles/{profileId}/placementGroups", + "path": "userprofiles/{profileId}/placementGroups", "request": { "$ref": "PlacementGroup" }, @@ -6634,7 +6634,7 @@ }, "list": { "description": "Retrieves a list of placement groups, possibly filtered. This method supports paging.", - "flatPath": "dfareporting/v4/userprofiles/{profileId}/placementGroups", + "flatPath": "userprofiles/{profileId}/placementGroups", "httpMethod": "GET", "id": "dfareporting.placementGroups.list", "parameterOrder": [ @@ -6820,7 +6820,7 @@ "type": "string" } }, - "path": "dfareporting/v4/userprofiles/{profileId}/placementGroups", + "path": "userprofiles/{profileId}/placementGroups", "response": { "$ref": "PlacementGroupsListResponse" }, @@ -6830,7 +6830,7 @@ }, "patch": { "description": "Updates an existing placement group. This method supports patch semantics.", - "flatPath": "dfareporting/v4/userprofiles/{profileId}/placementGroups", + "flatPath": "userprofiles/{profileId}/placementGroups", "httpMethod": "PATCH", "id": "dfareporting.placementGroups.patch", "parameterOrder": [ @@ -6853,7 +6853,7 @@ "type": "string" } }, - "path": "dfareporting/v4/userprofiles/{profileId}/placementGroups", + "path": "userprofiles/{profileId}/placementGroups", "request": { "$ref": "PlacementGroup" }, @@ -6866,7 +6866,7 @@ }, "update": { "description": "Updates an existing placement group.", - "flatPath": "dfareporting/v4/userprofiles/{profileId}/placementGroups", + "flatPath": "userprofiles/{profileId}/placementGroups", "httpMethod": "PUT", "id": "dfareporting.placementGroups.update", "parameterOrder": [ @@ -6881,7 +6881,7 @@ "type": "string" } }, - "path": "dfareporting/v4/userprofiles/{profileId}/placementGroups", + "path": "userprofiles/{profileId}/placementGroups", "request": { "$ref": "PlacementGroup" }, @@ -6898,7 +6898,7 @@ "methods": { "delete": { "description": "Deletes an existing placement strategy.", - "flatPath": "dfareporting/v4/userprofiles/{profileId}/placementStrategies/{id}", + "flatPath": "userprofiles/{profileId}/placementStrategies/{id}", "httpMethod": "DELETE", "id": "dfareporting.placementStrategies.delete", "parameterOrder": [ @@ -6921,14 +6921,14 @@ "type": "string" } }, - "path": "dfareporting/v4/userprofiles/{profileId}/placementStrategies/{id}", + "path": "userprofiles/{profileId}/placementStrategies/{id}", "scopes": [ "https://www.googleapis.com/auth/dfatrafficking" ] }, "get": { "description": "Gets one placement strategy by ID.", - "flatPath": "dfareporting/v4/userprofiles/{profileId}/placementStrategies/{id}", + "flatPath": "userprofiles/{profileId}/placementStrategies/{id}", "httpMethod": "GET", "id": "dfareporting.placementStrategies.get", "parameterOrder": [ @@ -6951,7 +6951,7 @@ "type": "string" } }, - "path": "dfareporting/v4/userprofiles/{profileId}/placementStrategies/{id}", + "path": "userprofiles/{profileId}/placementStrategies/{id}", "response": { "$ref": "PlacementStrategy" }, @@ -6961,7 +6961,7 @@ }, "insert": { "description": "Inserts a new placement strategy.", - "flatPath": "dfareporting/v4/userprofiles/{profileId}/placementStrategies", + "flatPath": "userprofiles/{profileId}/placementStrategies", "httpMethod": "POST", "id": "dfareporting.placementStrategies.insert", "parameterOrder": [ @@ -6976,7 +6976,7 @@ "type": "string" } }, - "path": "dfareporting/v4/userprofiles/{profileId}/placementStrategies", + "path": "userprofiles/{profileId}/placementStrategies", "request": { "$ref": "PlacementStrategy" }, @@ -6989,7 +6989,7 @@ }, "list": { "description": "Retrieves a list of placement strategies, possibly filtered. This method supports paging.", - "flatPath": "dfareporting/v4/userprofiles/{profileId}/placementStrategies", + "flatPath": "userprofiles/{profileId}/placementStrategies", "httpMethod": "GET", "id": "dfareporting.placementStrategies.list", "parameterOrder": [ @@ -7058,7 +7058,7 @@ "type": "string" } }, - "path": "dfareporting/v4/userprofiles/{profileId}/placementStrategies", + "path": "userprofiles/{profileId}/placementStrategies", "response": { "$ref": "PlacementStrategiesListResponse" }, @@ -7068,7 +7068,7 @@ }, "patch": { "description": "Updates an existing placement strategy. This method supports patch semantics.", - "flatPath": "dfareporting/v4/userprofiles/{profileId}/placementStrategies", + "flatPath": "userprofiles/{profileId}/placementStrategies", "httpMethod": "PATCH", "id": "dfareporting.placementStrategies.patch", "parameterOrder": [ @@ -7091,7 +7091,7 @@ "type": "string" } }, - "path": "dfareporting/v4/userprofiles/{profileId}/placementStrategies", + "path": "userprofiles/{profileId}/placementStrategies", "request": { "$ref": "PlacementStrategy" }, @@ -7104,7 +7104,7 @@ }, "update": { "description": "Updates an existing placement strategy.", - "flatPath": "dfareporting/v4/userprofiles/{profileId}/placementStrategies", + "flatPath": "userprofiles/{profileId}/placementStrategies", "httpMethod": "PUT", "id": "dfareporting.placementStrategies.update", "parameterOrder": [ @@ -7119,7 +7119,7 @@ "type": "string" } }, - "path": "dfareporting/v4/userprofiles/{profileId}/placementStrategies", + "path": "userprofiles/{profileId}/placementStrategies", "request": { "$ref": "PlacementStrategy" }, @@ -7136,7 +7136,7 @@ "methods": { "generatetags": { "description": "Generates tags for a placement.", - "flatPath": "dfareporting/v4/userprofiles/{profileId}/placements/generatetags", + "flatPath": "userprofiles/{profileId}/placements/generatetags", "httpMethod": "POST", "id": "dfareporting.placements.generatetags", "parameterOrder": [ @@ -7214,7 +7214,7 @@ "type": "string" } }, - "path": "dfareporting/v4/userprofiles/{profileId}/placements/generatetags", + "path": "userprofiles/{profileId}/placements/generatetags", "response": { "$ref": "PlacementsGenerateTagsResponse" }, @@ -7224,7 +7224,7 @@ }, "get": { "description": "Gets one placement by ID.", - "flatPath": "dfareporting/v4/userprofiles/{profileId}/placements/{id}", + "flatPath": "userprofiles/{profileId}/placements/{id}", "httpMethod": "GET", "id": "dfareporting.placements.get", "parameterOrder": [ @@ -7247,7 +7247,7 @@ "type": "string" } }, - "path": "dfareporting/v4/userprofiles/{profileId}/placements/{id}", + "path": "userprofiles/{profileId}/placements/{id}", "response": { "$ref": "Placement" }, @@ -7257,7 +7257,7 @@ }, "insert": { "description": "Inserts a new placement.", - "flatPath": "dfareporting/v4/userprofiles/{profileId}/placements", + "flatPath": "userprofiles/{profileId}/placements", "httpMethod": "POST", "id": "dfareporting.placements.insert", "parameterOrder": [ @@ -7272,7 +7272,7 @@ "type": "string" } }, - "path": "dfareporting/v4/userprofiles/{profileId}/placements", + "path": "userprofiles/{profileId}/placements", "request": { "$ref": "Placement" }, @@ -7285,7 +7285,7 @@ }, "list": { "description": "Retrieves a list of placements, possibly filtered. This method supports paging.", - "flatPath": "dfareporting/v4/userprofiles/{profileId}/placements", + "flatPath": "userprofiles/{profileId}/placements", "httpMethod": "GET", "id": "dfareporting.placements.list", "parameterOrder": [ @@ -7507,7 +7507,7 @@ "type": "string" } }, - "path": "dfareporting/v4/userprofiles/{profileId}/placements", + "path": "userprofiles/{profileId}/placements", "response": { "$ref": "PlacementsListResponse" }, @@ -7517,7 +7517,7 @@ }, "patch": { "description": "Updates an existing placement. This method supports patch semantics.", - "flatPath": "dfareporting/v4/userprofiles/{profileId}/placements", + "flatPath": "userprofiles/{profileId}/placements", "httpMethod": "PATCH", "id": "dfareporting.placements.patch", "parameterOrder": [ @@ -7540,7 +7540,7 @@ "type": "string" } }, - "path": "dfareporting/v4/userprofiles/{profileId}/placements", + "path": "userprofiles/{profileId}/placements", "request": { "$ref": "Placement" }, @@ -7553,7 +7553,7 @@ }, "update": { "description": "Updates an existing placement.", - "flatPath": "dfareporting/v4/userprofiles/{profileId}/placements", + "flatPath": "userprofiles/{profileId}/placements", "httpMethod": "PUT", "id": "dfareporting.placements.update", "parameterOrder": [ @@ -7568,7 +7568,7 @@ "type": "string" } }, - "path": "dfareporting/v4/userprofiles/{profileId}/placements", + "path": "userprofiles/{profileId}/placements", "request": { "$ref": "Placement" }, @@ -7585,7 +7585,7 @@ "methods": { "get": { "description": "Gets one platform type by ID.", - "flatPath": "dfareporting/v4/userprofiles/{profileId}/platformTypes/{id}", + "flatPath": "userprofiles/{profileId}/platformTypes/{id}", "httpMethod": "GET", "id": "dfareporting.platformTypes.get", "parameterOrder": [ @@ -7608,7 +7608,7 @@ "type": "string" } }, - "path": "dfareporting/v4/userprofiles/{profileId}/platformTypes/{id}", + "path": "userprofiles/{profileId}/platformTypes/{id}", "response": { "$ref": "PlatformType" }, @@ -7618,7 +7618,7 @@ }, "list": { "description": "Retrieves a list of platform types.", - "flatPath": "dfareporting/v4/userprofiles/{profileId}/platformTypes", + "flatPath": "userprofiles/{profileId}/platformTypes", "httpMethod": "GET", "id": "dfareporting.platformTypes.list", "parameterOrder": [ @@ -7633,7 +7633,7 @@ "type": "string" } }, - "path": "dfareporting/v4/userprofiles/{profileId}/platformTypes", + "path": "userprofiles/{profileId}/platformTypes", "response": { "$ref": "PlatformTypesListResponse" }, @@ -7647,7 +7647,7 @@ "methods": { "get": { "description": "Gets one postal code by ID.", - "flatPath": "dfareporting/v4/userprofiles/{profileId}/postalCodes/{code}", + "flatPath": "userprofiles/{profileId}/postalCodes/{code}", "httpMethod": "GET", "id": "dfareporting.postalCodes.get", "parameterOrder": [ @@ -7669,7 +7669,7 @@ "type": "string" } }, - "path": "dfareporting/v4/userprofiles/{profileId}/postalCodes/{code}", + "path": "userprofiles/{profileId}/postalCodes/{code}", "response": { "$ref": "PostalCode" }, @@ -7679,7 +7679,7 @@ }, "list": { "description": "Retrieves a list of postal codes.", - "flatPath": "dfareporting/v4/userprofiles/{profileId}/postalCodes", + "flatPath": "userprofiles/{profileId}/postalCodes", "httpMethod": "GET", "id": "dfareporting.postalCodes.list", "parameterOrder": [ @@ -7694,7 +7694,7 @@ "type": "string" } }, - "path": "dfareporting/v4/userprofiles/{profileId}/postalCodes", + "path": "userprofiles/{profileId}/postalCodes", "response": { "$ref": "PostalCodesListResponse" }, @@ -7708,7 +7708,7 @@ "methods": { "get": { "description": "Gets one project by ID.", - "flatPath": "dfareporting/v4/userprofiles/{profileId}/projects/{id}", + "flatPath": "userprofiles/{profileId}/projects/{id}", "httpMethod": "GET", "id": "dfareporting.projects.get", "parameterOrder": [ @@ -7731,7 +7731,7 @@ "type": "string" } }, - "path": "dfareporting/v4/userprofiles/{profileId}/projects/{id}", + "path": "userprofiles/{profileId}/projects/{id}", "response": { "$ref": "Project" }, @@ -7741,7 +7741,7 @@ }, "list": { "description": "Retrieves a list of projects, possibly filtered. This method supports paging .", - "flatPath": "dfareporting/v4/userprofiles/{profileId}/projects", + "flatPath": "userprofiles/{profileId}/projects", "httpMethod": "GET", "id": "dfareporting.projects.list", "parameterOrder": [ @@ -7817,7 +7817,7 @@ "type": "string" } }, - "path": "dfareporting/v4/userprofiles/{profileId}/projects", + "path": "userprofiles/{profileId}/projects", "response": { "$ref": "ProjectsListResponse" }, @@ -7831,7 +7831,7 @@ "methods": { "list": { "description": "Retrieves a list of regions.", - "flatPath": "dfareporting/v4/userprofiles/{profileId}/regions", + "flatPath": "userprofiles/{profileId}/regions", "httpMethod": "GET", "id": "dfareporting.regions.list", "parameterOrder": [ @@ -7846,7 +7846,7 @@ "type": "string" } }, - "path": "dfareporting/v4/userprofiles/{profileId}/regions", + "path": "userprofiles/{profileId}/regions", "response": { "$ref": "RegionsListResponse" }, @@ -7860,7 +7860,7 @@ "methods": { "get": { "description": "Gets one remarketing list share by remarketing list ID.", - "flatPath": "dfareporting/v4/userprofiles/{profileId}/remarketingListShares/{remarketingListId}", + "flatPath": "userprofiles/{profileId}/remarketingListShares/{remarketingListId}", "httpMethod": "GET", "id": "dfareporting.remarketingListShares.get", "parameterOrder": [ @@ -7883,7 +7883,7 @@ "type": "string" } }, - "path": "dfareporting/v4/userprofiles/{profileId}/remarketingListShares/{remarketingListId}", + "path": "userprofiles/{profileId}/remarketingListShares/{remarketingListId}", "response": { "$ref": "RemarketingListShare" }, @@ -7893,7 +7893,7 @@ }, "patch": { "description": "Updates an existing remarketing list share. This method supports patch semantics.", - "flatPath": "dfareporting/v4/userprofiles/{profileId}/remarketingListShares", + "flatPath": "userprofiles/{profileId}/remarketingListShares", "httpMethod": "PATCH", "id": "dfareporting.remarketingListShares.patch", "parameterOrder": [ @@ -7916,7 +7916,7 @@ "type": "string" } }, - "path": "dfareporting/v4/userprofiles/{profileId}/remarketingListShares", + "path": "userprofiles/{profileId}/remarketingListShares", "request": { "$ref": "RemarketingListShare" }, @@ -7929,7 +7929,7 @@ }, "update": { "description": "Updates an existing remarketing list share.", - "flatPath": "dfareporting/v4/userprofiles/{profileId}/remarketingListShares", + "flatPath": "userprofiles/{profileId}/remarketingListShares", "httpMethod": "PUT", "id": "dfareporting.remarketingListShares.update", "parameterOrder": [ @@ -7944,7 +7944,7 @@ "type": "string" } }, - "path": "dfareporting/v4/userprofiles/{profileId}/remarketingListShares", + "path": "userprofiles/{profileId}/remarketingListShares", "request": { "$ref": "RemarketingListShare" }, @@ -7961,7 +7961,7 @@ "methods": { "get": { "description": "Gets one remarketing list by ID.", - "flatPath": "dfareporting/v4/userprofiles/{profileId}/remarketingLists/{id}", + "flatPath": "userprofiles/{profileId}/remarketingLists/{id}", "httpMethod": "GET", "id": "dfareporting.remarketingLists.get", "parameterOrder": [ @@ -7984,7 +7984,7 @@ "type": "string" } }, - "path": "dfareporting/v4/userprofiles/{profileId}/remarketingLists/{id}", + "path": "userprofiles/{profileId}/remarketingLists/{id}", "response": { "$ref": "RemarketingList" }, @@ -7994,7 +7994,7 @@ }, "insert": { "description": "Inserts a new remarketing list.", - "flatPath": "dfareporting/v4/userprofiles/{profileId}/remarketingLists", + "flatPath": "userprofiles/{profileId}/remarketingLists", "httpMethod": "POST", "id": "dfareporting.remarketingLists.insert", "parameterOrder": [ @@ -8009,7 +8009,7 @@ "type": "string" } }, - "path": "dfareporting/v4/userprofiles/{profileId}/remarketingLists", + "path": "userprofiles/{profileId}/remarketingLists", "request": { "$ref": "RemarketingList" }, @@ -8022,7 +8022,7 @@ }, "list": { "description": "Retrieves a list of remarketing lists, possibly filtered. This method supports paging.", - "flatPath": "dfareporting/v4/userprofiles/{profileId}/remarketingLists", + "flatPath": "userprofiles/{profileId}/remarketingLists", "httpMethod": "GET", "id": "dfareporting.remarketingLists.list", "parameterOrder": [ @@ -8103,7 +8103,7 @@ "type": "string" } }, - "path": "dfareporting/v4/userprofiles/{profileId}/remarketingLists", + "path": "userprofiles/{profileId}/remarketingLists", "response": { "$ref": "RemarketingListsListResponse" }, @@ -8113,7 +8113,7 @@ }, "patch": { "description": "Updates an existing remarketing list. This method supports patch semantics.", - "flatPath": "dfareporting/v4/userprofiles/{profileId}/remarketingLists", + "flatPath": "userprofiles/{profileId}/remarketingLists", "httpMethod": "PATCH", "id": "dfareporting.remarketingLists.patch", "parameterOrder": [ @@ -8136,7 +8136,7 @@ "type": "string" } }, - "path": "dfareporting/v4/userprofiles/{profileId}/remarketingLists", + "path": "userprofiles/{profileId}/remarketingLists", "request": { "$ref": "RemarketingList" }, @@ -8149,7 +8149,7 @@ }, "update": { "description": "Updates an existing remarketing list.", - "flatPath": "dfareporting/v4/userprofiles/{profileId}/remarketingLists", + "flatPath": "userprofiles/{profileId}/remarketingLists", "httpMethod": "PUT", "id": "dfareporting.remarketingLists.update", "parameterOrder": [ @@ -8164,7 +8164,7 @@ "type": "string" } }, - "path": "dfareporting/v4/userprofiles/{profileId}/remarketingLists", + "path": "userprofiles/{profileId}/remarketingLists", "request": { "$ref": "RemarketingList" }, @@ -8181,7 +8181,7 @@ "methods": { "delete": { "description": "Deletes a report by its ID.", - "flatPath": "dfareporting/v4/userprofiles/{profileId}/reports/{reportId}", + "flatPath": "userprofiles/{profileId}/reports/{reportId}", "httpMethod": "DELETE", "id": "dfareporting.reports.delete", "parameterOrder": [ @@ -8204,14 +8204,14 @@ "type": "string" } }, - "path": "dfareporting/v4/userprofiles/{profileId}/reports/{reportId}", + "path": "userprofiles/{profileId}/reports/{reportId}", "scopes": [ "https://www.googleapis.com/auth/dfareporting" ] }, "get": { "description": "Retrieves a report by its ID.", - "flatPath": "dfareporting/v4/userprofiles/{profileId}/reports/{reportId}", + "flatPath": "userprofiles/{profileId}/reports/{reportId}", "httpMethod": "GET", "id": "dfareporting.reports.get", "parameterOrder": [ @@ -8234,7 +8234,7 @@ "type": "string" } }, - "path": "dfareporting/v4/userprofiles/{profileId}/reports/{reportId}", + "path": "userprofiles/{profileId}/reports/{reportId}", "response": { "$ref": "Report" }, @@ -8244,7 +8244,7 @@ }, "insert": { "description": "Creates a report.", - "flatPath": "dfareporting/v4/userprofiles/{profileId}/reports", + "flatPath": "userprofiles/{profileId}/reports", "httpMethod": "POST", "id": "dfareporting.reports.insert", "parameterOrder": [ @@ -8259,7 +8259,7 @@ "type": "string" } }, - "path": "dfareporting/v4/userprofiles/{profileId}/reports", + "path": "userprofiles/{profileId}/reports", "request": { "$ref": "Report" }, @@ -8272,7 +8272,7 @@ }, "list": { "description": "Retrieves list of reports.", - "flatPath": "dfareporting/v4/userprofiles/{profileId}/reports", + "flatPath": "userprofiles/{profileId}/reports", "httpMethod": "GET", "id": "dfareporting.reports.list", "parameterOrder": [ @@ -8345,7 +8345,7 @@ "type": "string" } }, - "path": "dfareporting/v4/userprofiles/{profileId}/reports", + "path": "userprofiles/{profileId}/reports", "response": { "$ref": "ReportList" }, @@ -8355,7 +8355,7 @@ }, "patch": { "description": "Updates an existing report. This method supports patch semantics.", - "flatPath": "dfareporting/v4/userprofiles/{profileId}/reports/{reportId}", + "flatPath": "userprofiles/{profileId}/reports/{reportId}", "httpMethod": "PATCH", "id": "dfareporting.reports.patch", "parameterOrder": [ @@ -8378,7 +8378,7 @@ "type": "string" } }, - "path": "dfareporting/v4/userprofiles/{profileId}/reports/{reportId}", + "path": "userprofiles/{profileId}/reports/{reportId}", "request": { "$ref": "Report" }, @@ -8391,7 +8391,7 @@ }, "run": { "description": "Runs a report.", - "flatPath": "dfareporting/v4/userprofiles/{profileId}/reports/{reportId}/run", + "flatPath": "userprofiles/{profileId}/reports/{reportId}/run", "httpMethod": "POST", "id": "dfareporting.reports.run", "parameterOrder": [ @@ -8420,7 +8420,7 @@ "type": "boolean" } }, - "path": "dfareporting/v4/userprofiles/{profileId}/reports/{reportId}/run", + "path": "userprofiles/{profileId}/reports/{reportId}/run", "response": { "$ref": "File" }, @@ -8430,7 +8430,7 @@ }, "update": { "description": "Updates a report.", - "flatPath": "dfareporting/v4/userprofiles/{profileId}/reports/{reportId}", + "flatPath": "userprofiles/{profileId}/reports/{reportId}", "httpMethod": "PUT", "id": "dfareporting.reports.update", "parameterOrder": [ @@ -8453,7 +8453,7 @@ "type": "string" } }, - "path": "dfareporting/v4/userprofiles/{profileId}/reports/{reportId}", + "path": "userprofiles/{profileId}/reports/{reportId}", "request": { "$ref": "Report" }, @@ -8470,7 +8470,7 @@ "methods": { "query": { "description": "Returns the fields that are compatible to be selected in the respective sections of a report criteria, given the fields already selected in the input report and user permissions.", - "flatPath": "dfareporting/v4/userprofiles/{profileId}/reports/compatiblefields/query", + "flatPath": "userprofiles/{profileId}/reports/compatiblefields/query", "httpMethod": "POST", "id": "dfareporting.reports.compatibleFields.query", "parameterOrder": [ @@ -8485,7 +8485,7 @@ "type": "string" } }, - "path": "dfareporting/v4/userprofiles/{profileId}/reports/compatiblefields/query", + "path": "userprofiles/{profileId}/reports/compatiblefields/query", "request": { "$ref": "Report" }, @@ -8502,7 +8502,7 @@ "methods": { "get": { "description": "Retrieves a report file by its report ID and file ID. This method supports media download.", - "flatPath": "dfareporting/v4/userprofiles/{profileId}/reports/{reportId}/files/{fileId}", + "flatPath": "userprofiles/{profileId}/reports/{reportId}/files/{fileId}", "httpMethod": "GET", "id": "dfareporting.reports.files.get", "parameterOrder": [ @@ -8533,7 +8533,7 @@ "type": "string" } }, - "path": "dfareporting/v4/userprofiles/{profileId}/reports/{reportId}/files/{fileId}", + "path": "userprofiles/{profileId}/reports/{reportId}/files/{fileId}", "response": { "$ref": "File" }, @@ -8544,7 +8544,7 @@ }, "list": { "description": "Lists files for a report.", - "flatPath": "dfareporting/v4/userprofiles/{profileId}/reports/{reportId}/files", + "flatPath": "userprofiles/{profileId}/reports/{reportId}/files", "httpMethod": "GET", "id": "dfareporting.reports.files.list", "parameterOrder": [ @@ -8609,7 +8609,7 @@ "type": "string" } }, - "path": "dfareporting/v4/userprofiles/{profileId}/reports/{reportId}/files", + "path": "userprofiles/{profileId}/reports/{reportId}/files", "response": { "$ref": "FileList" }, @@ -8625,7 +8625,7 @@ "methods": { "get": { "description": "Gets one site by ID.", - "flatPath": "dfareporting/v4/userprofiles/{profileId}/sites/{id}", + "flatPath": "userprofiles/{profileId}/sites/{id}", "httpMethod": "GET", "id": "dfareporting.sites.get", "parameterOrder": [ @@ -8648,7 +8648,7 @@ "type": "string" } }, - "path": "dfareporting/v4/userprofiles/{profileId}/sites/{id}", + "path": "userprofiles/{profileId}/sites/{id}", "response": { "$ref": "Site" }, @@ -8658,7 +8658,7 @@ }, "insert": { "description": "Inserts a new site.", - "flatPath": "dfareporting/v4/userprofiles/{profileId}/sites", + "flatPath": "userprofiles/{profileId}/sites", "httpMethod": "POST", "id": "dfareporting.sites.insert", "parameterOrder": [ @@ -8673,7 +8673,7 @@ "type": "string" } }, - "path": "dfareporting/v4/userprofiles/{profileId}/sites", + "path": "userprofiles/{profileId}/sites", "request": { "$ref": "Site" }, @@ -8686,7 +8686,7 @@ }, "list": { "description": "Retrieves a list of sites, possibly filtered. This method supports paging.", - "flatPath": "dfareporting/v4/userprofiles/{profileId}/sites", + "flatPath": "userprofiles/{profileId}/sites", "httpMethod": "GET", "id": "dfareporting.sites.list", "parameterOrder": [ @@ -8805,7 +8805,7 @@ "type": "boolean" } }, - "path": "dfareporting/v4/userprofiles/{profileId}/sites", + "path": "userprofiles/{profileId}/sites", "response": { "$ref": "SitesListResponse" }, @@ -8815,7 +8815,7 @@ }, "patch": { "description": "Updates an existing site. This method supports patch semantics.", - "flatPath": "dfareporting/v4/userprofiles/{profileId}/sites", + "flatPath": "userprofiles/{profileId}/sites", "httpMethod": "PATCH", "id": "dfareporting.sites.patch", "parameterOrder": [ @@ -8838,7 +8838,7 @@ "type": "string" } }, - "path": "dfareporting/v4/userprofiles/{profileId}/sites", + "path": "userprofiles/{profileId}/sites", "request": { "$ref": "Site" }, @@ -8851,7 +8851,7 @@ }, "update": { "description": "Updates an existing site.", - "flatPath": "dfareporting/v4/userprofiles/{profileId}/sites", + "flatPath": "userprofiles/{profileId}/sites", "httpMethod": "PUT", "id": "dfareporting.sites.update", "parameterOrder": [ @@ -8866,7 +8866,7 @@ "type": "string" } }, - "path": "dfareporting/v4/userprofiles/{profileId}/sites", + "path": "userprofiles/{profileId}/sites", "request": { "$ref": "Site" }, @@ -8883,7 +8883,7 @@ "methods": { "get": { "description": "Gets one size by ID.", - "flatPath": "dfareporting/v4/userprofiles/{profileId}/sizes/{id}", + "flatPath": "userprofiles/{profileId}/sizes/{id}", "httpMethod": "GET", "id": "dfareporting.sizes.get", "parameterOrder": [ @@ -8906,7 +8906,7 @@ "type": "string" } }, - "path": "dfareporting/v4/userprofiles/{profileId}/sizes/{id}", + "path": "userprofiles/{profileId}/sizes/{id}", "response": { "$ref": "Size" }, @@ -8916,7 +8916,7 @@ }, "insert": { "description": "Inserts a new size.", - "flatPath": "dfareporting/v4/userprofiles/{profileId}/sizes", + "flatPath": "userprofiles/{profileId}/sizes", "httpMethod": "POST", "id": "dfareporting.sizes.insert", "parameterOrder": [ @@ -8931,7 +8931,7 @@ "type": "string" } }, - "path": "dfareporting/v4/userprofiles/{profileId}/sizes", + "path": "userprofiles/{profileId}/sizes", "request": { "$ref": "Size" }, @@ -8944,7 +8944,7 @@ }, "list": { "description": "Retrieves a list of sizes, possibly filtered. Retrieved sizes are globally unique and may include values not currently in use by your account. Due to this, the list of sizes returned by this method may differ from the list seen in the Trafficking UI.", - "flatPath": "dfareporting/v4/userprofiles/{profileId}/sizes", + "flatPath": "userprofiles/{profileId}/sizes", "httpMethod": "GET", "id": "dfareporting.sizes.list", "parameterOrder": [ @@ -8987,7 +8987,7 @@ "type": "integer" } }, - "path": "dfareporting/v4/userprofiles/{profileId}/sizes", + "path": "userprofiles/{profileId}/sizes", "response": { "$ref": "SizesListResponse" }, @@ -9001,7 +9001,7 @@ "methods": { "get": { "description": "Gets one subaccount by ID.", - "flatPath": "dfareporting/v4/userprofiles/{profileId}/subaccounts/{id}", + "flatPath": "userprofiles/{profileId}/subaccounts/{id}", "httpMethod": "GET", "id": "dfareporting.subaccounts.get", "parameterOrder": [ @@ -9024,7 +9024,7 @@ "type": "string" } }, - "path": "dfareporting/v4/userprofiles/{profileId}/subaccounts/{id}", + "path": "userprofiles/{profileId}/subaccounts/{id}", "response": { "$ref": "Subaccount" }, @@ -9034,7 +9034,7 @@ }, "insert": { "description": "Inserts a new subaccount.", - "flatPath": "dfareporting/v4/userprofiles/{profileId}/subaccounts", + "flatPath": "userprofiles/{profileId}/subaccounts", "httpMethod": "POST", "id": "dfareporting.subaccounts.insert", "parameterOrder": [ @@ -9049,7 +9049,7 @@ "type": "string" } }, - "path": "dfareporting/v4/userprofiles/{profileId}/subaccounts", + "path": "userprofiles/{profileId}/subaccounts", "request": { "$ref": "Subaccount" }, @@ -9062,7 +9062,7 @@ }, "list": { "description": "Gets a list of subaccounts, possibly filtered. This method supports paging.", - "flatPath": "dfareporting/v4/userprofiles/{profileId}/subaccounts", + "flatPath": "userprofiles/{profileId}/subaccounts", "httpMethod": "GET", "id": "dfareporting.subaccounts.list", "parameterOrder": [ @@ -9131,7 +9131,7 @@ "type": "string" } }, - "path": "dfareporting/v4/userprofiles/{profileId}/subaccounts", + "path": "userprofiles/{profileId}/subaccounts", "response": { "$ref": "SubaccountsListResponse" }, @@ -9141,7 +9141,7 @@ }, "patch": { "description": "Updates an existing subaccount. This method supports patch semantics.", - "flatPath": "dfareporting/v4/userprofiles/{profileId}/subaccounts", + "flatPath": "userprofiles/{profileId}/subaccounts", "httpMethod": "PATCH", "id": "dfareporting.subaccounts.patch", "parameterOrder": [ @@ -9164,7 +9164,7 @@ "type": "string" } }, - "path": "dfareporting/v4/userprofiles/{profileId}/subaccounts", + "path": "userprofiles/{profileId}/subaccounts", "request": { "$ref": "Subaccount" }, @@ -9177,7 +9177,7 @@ }, "update": { "description": "Updates an existing subaccount.", - "flatPath": "dfareporting/v4/userprofiles/{profileId}/subaccounts", + "flatPath": "userprofiles/{profileId}/subaccounts", "httpMethod": "PUT", "id": "dfareporting.subaccounts.update", "parameterOrder": [ @@ -9192,7 +9192,7 @@ "type": "string" } }, - "path": "dfareporting/v4/userprofiles/{profileId}/subaccounts", + "path": "userprofiles/{profileId}/subaccounts", "request": { "$ref": "Subaccount" }, @@ -9209,7 +9209,7 @@ "methods": { "get": { "description": "Gets one remarketing list by ID.", - "flatPath": "dfareporting/v4/userprofiles/{profileId}/targetableRemarketingLists/{id}", + "flatPath": "userprofiles/{profileId}/targetableRemarketingLists/{id}", "httpMethod": "GET", "id": "dfareporting.targetableRemarketingLists.get", "parameterOrder": [ @@ -9232,7 +9232,7 @@ "type": "string" } }, - "path": "dfareporting/v4/userprofiles/{profileId}/targetableRemarketingLists/{id}", + "path": "userprofiles/{profileId}/targetableRemarketingLists/{id}", "response": { "$ref": "TargetableRemarketingList" }, @@ -9242,7 +9242,7 @@ }, "list": { "description": "Retrieves a list of targetable remarketing lists, possibly filtered. This method supports paging.", - "flatPath": "dfareporting/v4/userprofiles/{profileId}/targetableRemarketingLists", + "flatPath": "userprofiles/{profileId}/targetableRemarketingLists", "httpMethod": "GET", "id": "dfareporting.targetableRemarketingLists.list", "parameterOrder": [ @@ -9317,7 +9317,7 @@ "type": "string" } }, - "path": "dfareporting/v4/userprofiles/{profileId}/targetableRemarketingLists", + "path": "userprofiles/{profileId}/targetableRemarketingLists", "response": { "$ref": "TargetableRemarketingListsListResponse" }, @@ -9331,7 +9331,7 @@ "methods": { "get": { "description": "Gets one targeting template by ID.", - "flatPath": "dfareporting/v4/userprofiles/{profileId}/targetingTemplates/{id}", + "flatPath": "userprofiles/{profileId}/targetingTemplates/{id}", "httpMethod": "GET", "id": "dfareporting.targetingTemplates.get", "parameterOrder": [ @@ -9354,7 +9354,7 @@ "type": "string" } }, - "path": "dfareporting/v4/userprofiles/{profileId}/targetingTemplates/{id}", + "path": "userprofiles/{profileId}/targetingTemplates/{id}", "response": { "$ref": "TargetingTemplate" }, @@ -9364,7 +9364,7 @@ }, "insert": { "description": "Inserts a new targeting template.", - "flatPath": "dfareporting/v4/userprofiles/{profileId}/targetingTemplates", + "flatPath": "userprofiles/{profileId}/targetingTemplates", "httpMethod": "POST", "id": "dfareporting.targetingTemplates.insert", "parameterOrder": [ @@ -9379,7 +9379,7 @@ "type": "string" } }, - "path": "dfareporting/v4/userprofiles/{profileId}/targetingTemplates", + "path": "userprofiles/{profileId}/targetingTemplates", "request": { "$ref": "TargetingTemplate" }, @@ -9392,7 +9392,7 @@ }, "list": { "description": "Retrieves a list of targeting templates, optionally filtered. This method supports paging.", - "flatPath": "dfareporting/v4/userprofiles/{profileId}/targetingTemplates", + "flatPath": "userprofiles/{profileId}/targetingTemplates", "httpMethod": "GET", "id": "dfareporting.targetingTemplates.list", "parameterOrder": [ @@ -9467,7 +9467,7 @@ "type": "string" } }, - "path": "dfareporting/v4/userprofiles/{profileId}/targetingTemplates", + "path": "userprofiles/{profileId}/targetingTemplates", "response": { "$ref": "TargetingTemplatesListResponse" }, @@ -9477,7 +9477,7 @@ }, "patch": { "description": "Updates an existing targeting template. This method supports patch semantics.", - "flatPath": "dfareporting/v4/userprofiles/{profileId}/targetingTemplates", + "flatPath": "userprofiles/{profileId}/targetingTemplates", "httpMethod": "PATCH", "id": "dfareporting.targetingTemplates.patch", "parameterOrder": [ @@ -9500,7 +9500,7 @@ "type": "string" } }, - "path": "dfareporting/v4/userprofiles/{profileId}/targetingTemplates", + "path": "userprofiles/{profileId}/targetingTemplates", "request": { "$ref": "TargetingTemplate" }, @@ -9513,7 +9513,7 @@ }, "update": { "description": "Updates an existing targeting template.", - "flatPath": "dfareporting/v4/userprofiles/{profileId}/targetingTemplates", + "flatPath": "userprofiles/{profileId}/targetingTemplates", "httpMethod": "PUT", "id": "dfareporting.targetingTemplates.update", "parameterOrder": [ @@ -9528,7 +9528,7 @@ "type": "string" } }, - "path": "dfareporting/v4/userprofiles/{profileId}/targetingTemplates", + "path": "userprofiles/{profileId}/targetingTemplates", "request": { "$ref": "TargetingTemplate" }, @@ -9545,7 +9545,7 @@ "methods": { "get": { "description": "Gets one user profile by ID.", - "flatPath": "dfareporting/v4/userprofiles/{profileId}", + "flatPath": "userprofiles/{profileId}", "httpMethod": "GET", "id": "dfareporting.userProfiles.get", "parameterOrder": [ @@ -9560,7 +9560,7 @@ "type": "string" } }, - "path": "dfareporting/v4/userprofiles/{profileId}", + "path": "userprofiles/{profileId}", "response": { "$ref": "UserProfile" }, @@ -9572,12 +9572,12 @@ }, "list": { "description": "Retrieves list of user profiles for a user.", - "flatPath": "dfareporting/v4/userprofiles", + "flatPath": "userprofiles", "httpMethod": "GET", "id": "dfareporting.userProfiles.list", "parameterOrder": [], "parameters": {}, - "path": "dfareporting/v4/userprofiles", + "path": "userprofiles", "response": { "$ref": "UserProfileList" }, @@ -9593,7 +9593,7 @@ "methods": { "get": { "description": "Gets one user role permission group by ID.", - "flatPath": "dfareporting/v4/userprofiles/{profileId}/userRolePermissionGroups/{id}", + "flatPath": "userprofiles/{profileId}/userRolePermissionGroups/{id}", "httpMethod": "GET", "id": "dfareporting.userRolePermissionGroups.get", "parameterOrder": [ @@ -9616,7 +9616,7 @@ "type": "string" } }, - "path": "dfareporting/v4/userprofiles/{profileId}/userRolePermissionGroups/{id}", + "path": "userprofiles/{profileId}/userRolePermissionGroups/{id}", "response": { "$ref": "UserRolePermissionGroup" }, @@ -9626,7 +9626,7 @@ }, "list": { "description": "Gets a list of all supported user role permission groups.", - "flatPath": "dfareporting/v4/userprofiles/{profileId}/userRolePermissionGroups", + "flatPath": "userprofiles/{profileId}/userRolePermissionGroups", "httpMethod": "GET", "id": "dfareporting.userRolePermissionGroups.list", "parameterOrder": [ @@ -9641,7 +9641,7 @@ "type": "string" } }, - "path": "dfareporting/v4/userprofiles/{profileId}/userRolePermissionGroups", + "path": "userprofiles/{profileId}/userRolePermissionGroups", "response": { "$ref": "UserRolePermissionGroupsListResponse" }, @@ -9655,7 +9655,7 @@ "methods": { "get": { "description": "Gets one user role permission by ID.", - "flatPath": "dfareporting/v4/userprofiles/{profileId}/userRolePermissions/{id}", + "flatPath": "userprofiles/{profileId}/userRolePermissions/{id}", "httpMethod": "GET", "id": "dfareporting.userRolePermissions.get", "parameterOrder": [ @@ -9678,7 +9678,7 @@ "type": "string" } }, - "path": "dfareporting/v4/userprofiles/{profileId}/userRolePermissions/{id}", + "path": "userprofiles/{profileId}/userRolePermissions/{id}", "response": { "$ref": "UserRolePermission" }, @@ -9688,7 +9688,7 @@ }, "list": { "description": "Gets a list of user role permissions, possibly filtered.", - "flatPath": "dfareporting/v4/userprofiles/{profileId}/userRolePermissions", + "flatPath": "userprofiles/{profileId}/userRolePermissions", "httpMethod": "GET", "id": "dfareporting.userRolePermissions.list", "parameterOrder": [ @@ -9710,7 +9710,7 @@ "type": "string" } }, - "path": "dfareporting/v4/userprofiles/{profileId}/userRolePermissions", + "path": "userprofiles/{profileId}/userRolePermissions", "response": { "$ref": "UserRolePermissionsListResponse" }, @@ -9724,7 +9724,7 @@ "methods": { "delete": { "description": "Deletes an existing user role.", - "flatPath": "dfareporting/v4/userprofiles/{profileId}/userRoles/{id}", + "flatPath": "userprofiles/{profileId}/userRoles/{id}", "httpMethod": "DELETE", "id": "dfareporting.userRoles.delete", "parameterOrder": [ @@ -9747,14 +9747,14 @@ "type": "string" } }, - "path": "dfareporting/v4/userprofiles/{profileId}/userRoles/{id}", + "path": "userprofiles/{profileId}/userRoles/{id}", "scopes": [ "https://www.googleapis.com/auth/dfatrafficking" ] }, "get": { "description": "Gets one user role by ID.", - "flatPath": "dfareporting/v4/userprofiles/{profileId}/userRoles/{id}", + "flatPath": "userprofiles/{profileId}/userRoles/{id}", "httpMethod": "GET", "id": "dfareporting.userRoles.get", "parameterOrder": [ @@ -9777,7 +9777,7 @@ "type": "string" } }, - "path": "dfareporting/v4/userprofiles/{profileId}/userRoles/{id}", + "path": "userprofiles/{profileId}/userRoles/{id}", "response": { "$ref": "UserRole" }, @@ -9787,7 +9787,7 @@ }, "insert": { "description": "Inserts a new user role.", - "flatPath": "dfareporting/v4/userprofiles/{profileId}/userRoles", + "flatPath": "userprofiles/{profileId}/userRoles", "httpMethod": "POST", "id": "dfareporting.userRoles.insert", "parameterOrder": [ @@ -9802,7 +9802,7 @@ "type": "string" } }, - "path": "dfareporting/v4/userprofiles/{profileId}/userRoles", + "path": "userprofiles/{profileId}/userRoles", "request": { "$ref": "UserRole" }, @@ -9815,7 +9815,7 @@ }, "list": { "description": "Retrieves a list of user roles, possibly filtered. This method supports paging.", - "flatPath": "dfareporting/v4/userprofiles/{profileId}/userRoles", + "flatPath": "userprofiles/{profileId}/userRoles", "httpMethod": "GET", "id": "dfareporting.userRoles.list", "parameterOrder": [ @@ -9895,7 +9895,7 @@ "type": "string" } }, - "path": "dfareporting/v4/userprofiles/{profileId}/userRoles", + "path": "userprofiles/{profileId}/userRoles", "response": { "$ref": "UserRolesListResponse" }, @@ -9905,7 +9905,7 @@ }, "patch": { "description": "Updates an existing user role. This method supports patch semantics.", - "flatPath": "dfareporting/v4/userprofiles/{profileId}/userRoles", + "flatPath": "userprofiles/{profileId}/userRoles", "httpMethod": "PATCH", "id": "dfareporting.userRoles.patch", "parameterOrder": [ @@ -9928,7 +9928,7 @@ "type": "string" } }, - "path": "dfareporting/v4/userprofiles/{profileId}/userRoles", + "path": "userprofiles/{profileId}/userRoles", "request": { "$ref": "UserRole" }, @@ -9941,7 +9941,7 @@ }, "update": { "description": "Updates an existing user role.", - "flatPath": "dfareporting/v4/userprofiles/{profileId}/userRoles", + "flatPath": "userprofiles/{profileId}/userRoles", "httpMethod": "PUT", "id": "dfareporting.userRoles.update", "parameterOrder": [ @@ -9956,7 +9956,7 @@ "type": "string" } }, - "path": "dfareporting/v4/userprofiles/{profileId}/userRoles", + "path": "userprofiles/{profileId}/userRoles", "request": { "$ref": "UserRole" }, @@ -9973,7 +9973,7 @@ "methods": { "get": { "description": "Gets one video format by ID.", - "flatPath": "dfareporting/v4/userprofiles/{profileId}/videoFormats/{id}", + "flatPath": "userprofiles/{profileId}/videoFormats/{id}", "httpMethod": "GET", "id": "dfareporting.videoFormats.get", "parameterOrder": [ @@ -9996,7 +9996,7 @@ "type": "string" } }, - "path": "dfareporting/v4/userprofiles/{profileId}/videoFormats/{id}", + "path": "userprofiles/{profileId}/videoFormats/{id}", "response": { "$ref": "VideoFormat" }, @@ -10006,7 +10006,7 @@ }, "list": { "description": "Lists available video formats.", - "flatPath": "dfareporting/v4/userprofiles/{profileId}/videoFormats", + "flatPath": "userprofiles/{profileId}/videoFormats", "httpMethod": "GET", "id": "dfareporting.videoFormats.list", "parameterOrder": [ @@ -10021,7 +10021,7 @@ "type": "string" } }, - "path": "dfareporting/v4/userprofiles/{profileId}/videoFormats", + "path": "userprofiles/{profileId}/videoFormats", "response": { "$ref": "VideoFormatsListResponse" }, @@ -10032,7 +10032,7 @@ } } }, - "revision": "20220611", + "revision": "20220815", "rootUrl": "https://dfareporting.googleapis.com/", "schemas": { "Account": { @@ -21472,7 +21472,7 @@ "type": "object" } }, - "servicePath": "", + "servicePath": "dfareporting/v4/", "title": "Campaign Manager 360 API", "version": "v4" } \ No newline at end of file diff --git a/dfareporting/v4/dfareporting-gen.go b/dfareporting/v4/dfareporting-gen.go index f4c961e4d36..49fbf0c6dbc 100644 --- a/dfareporting/v4/dfareporting-gen.go +++ b/dfareporting/v4/dfareporting-gen.go @@ -79,8 +79,8 @@ var _ = internaloption.WithDefaultEndpoint const apiId = "dfareporting:v4" const apiName = "dfareporting" const apiVersion = "v4" -const basePath = "https://dfareporting.googleapis.com/" -const mtlsBasePath = "https://dfareporting.mtls.googleapis.com/" +const basePath = "https://dfareporting.googleapis.com/dfareporting/v4/" +const mtlsBasePath = "https://dfareporting.mtls.googleapis.com/dfareporting/v4/" // OAuth2 scopes used by this API. const ( @@ -15458,7 +15458,7 @@ func (c *AccountActiveAdSummariesGetCall) doRequest(alt string) (*http.Response, var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v4/userprofiles/{profileId}/accountActiveAdSummaries/{summaryAccountId}") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/accountActiveAdSummaries/{summaryAccountId}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -15511,7 +15511,7 @@ func (c *AccountActiveAdSummariesGetCall) Do(opts ...googleapi.CallOption) (*Acc return ret, nil // { // "description": "Gets the account's active ad summary by account ID.", - // "flatPath": "dfareporting/v4/userprofiles/{profileId}/accountActiveAdSummaries/{summaryAccountId}", + // "flatPath": "userprofiles/{profileId}/accountActiveAdSummaries/{summaryAccountId}", // "httpMethod": "GET", // "id": "dfareporting.accountActiveAdSummaries.get", // "parameterOrder": [ @@ -15534,7 +15534,7 @@ func (c *AccountActiveAdSummariesGetCall) Do(opts ...googleapi.CallOption) (*Acc // "type": "string" // } // }, - // "path": "dfareporting/v4/userprofiles/{profileId}/accountActiveAdSummaries/{summaryAccountId}", + // "path": "userprofiles/{profileId}/accountActiveAdSummaries/{summaryAccountId}", // "response": { // "$ref": "AccountActiveAdSummary" // }, @@ -15616,7 +15616,7 @@ func (c *AccountPermissionGroupsGetCall) doRequest(alt string) (*http.Response, var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v4/userprofiles/{profileId}/accountPermissionGroups/{id}") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/accountPermissionGroups/{id}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -15669,7 +15669,7 @@ func (c *AccountPermissionGroupsGetCall) Do(opts ...googleapi.CallOption) (*Acco return ret, nil // { // "description": "Gets one account permission group by ID.", - // "flatPath": "dfareporting/v4/userprofiles/{profileId}/accountPermissionGroups/{id}", + // "flatPath": "userprofiles/{profileId}/accountPermissionGroups/{id}", // "httpMethod": "GET", // "id": "dfareporting.accountPermissionGroups.get", // "parameterOrder": [ @@ -15692,7 +15692,7 @@ func (c *AccountPermissionGroupsGetCall) Do(opts ...googleapi.CallOption) (*Acco // "type": "string" // } // }, - // "path": "dfareporting/v4/userprofiles/{profileId}/accountPermissionGroups/{id}", + // "path": "userprofiles/{profileId}/accountPermissionGroups/{id}", // "response": { // "$ref": "AccountPermissionGroup" // }, @@ -15771,7 +15771,7 @@ func (c *AccountPermissionGroupsListCall) doRequest(alt string) (*http.Response, var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v4/userprofiles/{profileId}/accountPermissionGroups") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/accountPermissionGroups") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -15824,7 +15824,7 @@ func (c *AccountPermissionGroupsListCall) Do(opts ...googleapi.CallOption) (*Acc return ret, nil // { // "description": "Retrieves the list of account permission groups.", - // "flatPath": "dfareporting/v4/userprofiles/{profileId}/accountPermissionGroups", + // "flatPath": "userprofiles/{profileId}/accountPermissionGroups", // "httpMethod": "GET", // "id": "dfareporting.accountPermissionGroups.list", // "parameterOrder": [ @@ -15839,7 +15839,7 @@ func (c *AccountPermissionGroupsListCall) Do(opts ...googleapi.CallOption) (*Acc // "type": "string" // } // }, - // "path": "dfareporting/v4/userprofiles/{profileId}/accountPermissionGroups", + // "path": "userprofiles/{profileId}/accountPermissionGroups", // "response": { // "$ref": "AccountPermissionGroupsListResponse" // }, @@ -15921,7 +15921,7 @@ func (c *AccountPermissionsGetCall) 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, "dfareporting/v4/userprofiles/{profileId}/accountPermissions/{id}") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/accountPermissions/{id}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -15974,7 +15974,7 @@ func (c *AccountPermissionsGetCall) Do(opts ...googleapi.CallOption) (*AccountPe return ret, nil // { // "description": "Gets one account permission by ID.", - // "flatPath": "dfareporting/v4/userprofiles/{profileId}/accountPermissions/{id}", + // "flatPath": "userprofiles/{profileId}/accountPermissions/{id}", // "httpMethod": "GET", // "id": "dfareporting.accountPermissions.get", // "parameterOrder": [ @@ -15997,7 +15997,7 @@ func (c *AccountPermissionsGetCall) Do(opts ...googleapi.CallOption) (*AccountPe // "type": "string" // } // }, - // "path": "dfareporting/v4/userprofiles/{profileId}/accountPermissions/{id}", + // "path": "userprofiles/{profileId}/accountPermissions/{id}", // "response": { // "$ref": "AccountPermission" // }, @@ -16076,7 +16076,7 @@ func (c *AccountPermissionsListCall) doRequest(alt string) (*http.Response, erro var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v4/userprofiles/{profileId}/accountPermissions") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/accountPermissions") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -16128,7 +16128,7 @@ func (c *AccountPermissionsListCall) Do(opts ...googleapi.CallOption) (*AccountP return ret, nil // { // "description": "Retrieves the list of account permissions.", - // "flatPath": "dfareporting/v4/userprofiles/{profileId}/accountPermissions", + // "flatPath": "userprofiles/{profileId}/accountPermissions", // "httpMethod": "GET", // "id": "dfareporting.accountPermissions.list", // "parameterOrder": [ @@ -16143,7 +16143,7 @@ func (c *AccountPermissionsListCall) Do(opts ...googleapi.CallOption) (*AccountP // "type": "string" // } // }, - // "path": "dfareporting/v4/userprofiles/{profileId}/accountPermissions", + // "path": "userprofiles/{profileId}/accountPermissions", // "response": { // "$ref": "AccountPermissionsListResponse" // }, @@ -16225,7 +16225,7 @@ func (c *AccountUserProfilesGetCall) doRequest(alt string) (*http.Response, erro var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v4/userprofiles/{profileId}/accountUserProfiles/{id}") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/accountUserProfiles/{id}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -16278,7 +16278,7 @@ func (c *AccountUserProfilesGetCall) Do(opts ...googleapi.CallOption) (*AccountU return ret, nil // { // "description": "Gets one account user profile by ID.", - // "flatPath": "dfareporting/v4/userprofiles/{profileId}/accountUserProfiles/{id}", + // "flatPath": "userprofiles/{profileId}/accountUserProfiles/{id}", // "httpMethod": "GET", // "id": "dfareporting.accountUserProfiles.get", // "parameterOrder": [ @@ -16301,7 +16301,7 @@ func (c *AccountUserProfilesGetCall) Do(opts ...googleapi.CallOption) (*AccountU // "type": "string" // } // }, - // "path": "dfareporting/v4/userprofiles/{profileId}/accountUserProfiles/{id}", + // "path": "userprofiles/{profileId}/accountUserProfiles/{id}", // "response": { // "$ref": "AccountUserProfile" // }, @@ -16373,7 +16373,7 @@ func (c *AccountUserProfilesInsertCall) doRequest(alt string) (*http.Response, e reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v4/userprofiles/{profileId}/accountUserProfiles") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/accountUserProfiles") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -16425,7 +16425,7 @@ func (c *AccountUserProfilesInsertCall) Do(opts ...googleapi.CallOption) (*Accou return ret, nil // { // "description": "Inserts a new account user profile.", - // "flatPath": "dfareporting/v4/userprofiles/{profileId}/accountUserProfiles", + // "flatPath": "userprofiles/{profileId}/accountUserProfiles", // "httpMethod": "POST", // "id": "dfareporting.accountUserProfiles.insert", // "parameterOrder": [ @@ -16440,7 +16440,7 @@ func (c *AccountUserProfilesInsertCall) Do(opts ...googleapi.CallOption) (*Accou // "type": "string" // } // }, - // "path": "dfareporting/v4/userprofiles/{profileId}/accountUserProfiles", + // "path": "userprofiles/{profileId}/accountUserProfiles", // "request": { // "$ref": "AccountUserProfile" // }, @@ -16607,7 +16607,7 @@ func (c *AccountUserProfilesListCall) doRequest(alt string) (*http.Response, err var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v4/userprofiles/{profileId}/accountUserProfiles") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/accountUserProfiles") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -16659,7 +16659,7 @@ func (c *AccountUserProfilesListCall) Do(opts ...googleapi.CallOption) (*Account return ret, nil // { // "description": "Retrieves a list of account user profiles, possibly filtered. This method supports paging.", - // "flatPath": "dfareporting/v4/userprofiles/{profileId}/accountUserProfiles", + // "flatPath": "userprofiles/{profileId}/accountUserProfiles", // "httpMethod": "GET", // "id": "dfareporting.accountUserProfiles.list", // "parameterOrder": [ @@ -16745,7 +16745,7 @@ func (c *AccountUserProfilesListCall) Do(opts ...googleapi.CallOption) (*Account // "type": "string" // } // }, - // "path": "dfareporting/v4/userprofiles/{profileId}/accountUserProfiles", + // "path": "userprofiles/{profileId}/accountUserProfiles", // "response": { // "$ref": "AccountUserProfilesListResponse" // }, @@ -16841,7 +16841,7 @@ func (c *AccountUserProfilesPatchCall) doRequest(alt string) (*http.Response, er reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v4/userprofiles/{profileId}/accountUserProfiles") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/accountUserProfiles") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("PATCH", urls, body) if err != nil { @@ -16893,7 +16893,7 @@ func (c *AccountUserProfilesPatchCall) Do(opts ...googleapi.CallOption) (*Accoun return ret, nil // { // "description": "Updates an existing account user profile. This method supports patch semantics.", - // "flatPath": "dfareporting/v4/userprofiles/{profileId}/accountUserProfiles", + // "flatPath": "userprofiles/{profileId}/accountUserProfiles", // "httpMethod": "PATCH", // "id": "dfareporting.accountUserProfiles.patch", // "parameterOrder": [ @@ -16916,7 +16916,7 @@ func (c *AccountUserProfilesPatchCall) Do(opts ...googleapi.CallOption) (*Accoun // "type": "string" // } // }, - // "path": "dfareporting/v4/userprofiles/{profileId}/accountUserProfiles", + // "path": "userprofiles/{profileId}/accountUserProfiles", // "request": { // "$ref": "AccountUserProfile" // }, @@ -16991,7 +16991,7 @@ func (c *AccountUserProfilesUpdateCall) doRequest(alt string) (*http.Response, e reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v4/userprofiles/{profileId}/accountUserProfiles") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/accountUserProfiles") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("PUT", urls, body) if err != nil { @@ -17043,7 +17043,7 @@ func (c *AccountUserProfilesUpdateCall) Do(opts ...googleapi.CallOption) (*Accou return ret, nil // { // "description": "Updates an existing account user profile.", - // "flatPath": "dfareporting/v4/userprofiles/{profileId}/accountUserProfiles", + // "flatPath": "userprofiles/{profileId}/accountUserProfiles", // "httpMethod": "PUT", // "id": "dfareporting.accountUserProfiles.update", // "parameterOrder": [ @@ -17058,7 +17058,7 @@ func (c *AccountUserProfilesUpdateCall) Do(opts ...googleapi.CallOption) (*Accou // "type": "string" // } // }, - // "path": "dfareporting/v4/userprofiles/{profileId}/accountUserProfiles", + // "path": "userprofiles/{profileId}/accountUserProfiles", // "request": { // "$ref": "AccountUserProfile" // }, @@ -17143,7 +17143,7 @@ func (c *AccountsGetCall) 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, "dfareporting/v4/userprofiles/{profileId}/accounts/{id}") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/accounts/{id}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -17196,7 +17196,7 @@ func (c *AccountsGetCall) Do(opts ...googleapi.CallOption) (*Account, error) { return ret, nil // { // "description": "Gets one account by ID.", - // "flatPath": "dfareporting/v4/userprofiles/{profileId}/accounts/{id}", + // "flatPath": "userprofiles/{profileId}/accounts/{id}", // "httpMethod": "GET", // "id": "dfareporting.accounts.get", // "parameterOrder": [ @@ -17219,7 +17219,7 @@ func (c *AccountsGetCall) Do(opts ...googleapi.CallOption) (*Account, error) { // "type": "string" // } // }, - // "path": "dfareporting/v4/userprofiles/{profileId}/accounts/{id}", + // "path": "userprofiles/{profileId}/accounts/{id}", // "response": { // "$ref": "Account" // }, @@ -17369,7 +17369,7 @@ func (c *AccountsListCall) 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, "dfareporting/v4/userprofiles/{profileId}/accounts") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/accounts") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -17421,7 +17421,7 @@ func (c *AccountsListCall) Do(opts ...googleapi.CallOption) (*AccountsListRespon return ret, nil // { // "description": "Retrieves the list of accounts, possibly filtered. This method supports paging.", - // "flatPath": "dfareporting/v4/userprofiles/{profileId}/accounts", + // "flatPath": "userprofiles/{profileId}/accounts", // "httpMethod": "GET", // "id": "dfareporting.accounts.list", // "parameterOrder": [ @@ -17495,7 +17495,7 @@ func (c *AccountsListCall) Do(opts ...googleapi.CallOption) (*AccountsListRespon // "type": "string" // } // }, - // "path": "dfareporting/v4/userprofiles/{profileId}/accounts", + // "path": "userprofiles/{profileId}/accounts", // "response": { // "$ref": "AccountsListResponse" // }, @@ -17591,7 +17591,7 @@ func (c *AccountsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v4/userprofiles/{profileId}/accounts") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/accounts") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("PATCH", urls, body) if err != nil { @@ -17643,7 +17643,7 @@ func (c *AccountsPatchCall) Do(opts ...googleapi.CallOption) (*Account, error) { return ret, nil // { // "description": "Updates an existing account. This method supports patch semantics.", - // "flatPath": "dfareporting/v4/userprofiles/{profileId}/accounts", + // "flatPath": "userprofiles/{profileId}/accounts", // "httpMethod": "PATCH", // "id": "dfareporting.accounts.patch", // "parameterOrder": [ @@ -17666,7 +17666,7 @@ func (c *AccountsPatchCall) Do(opts ...googleapi.CallOption) (*Account, error) { // "type": "string" // } // }, - // "path": "dfareporting/v4/userprofiles/{profileId}/accounts", + // "path": "userprofiles/{profileId}/accounts", // "request": { // "$ref": "Account" // }, @@ -17741,7 +17741,7 @@ func (c *AccountsUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v4/userprofiles/{profileId}/accounts") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/accounts") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("PUT", urls, body) if err != nil { @@ -17793,7 +17793,7 @@ func (c *AccountsUpdateCall) Do(opts ...googleapi.CallOption) (*Account, error) return ret, nil // { // "description": "Updates an existing account.", - // "flatPath": "dfareporting/v4/userprofiles/{profileId}/accounts", + // "flatPath": "userprofiles/{profileId}/accounts", // "httpMethod": "PUT", // "id": "dfareporting.accounts.update", // "parameterOrder": [ @@ -17808,7 +17808,7 @@ func (c *AccountsUpdateCall) Do(opts ...googleapi.CallOption) (*Account, error) // "type": "string" // } // }, - // "path": "dfareporting/v4/userprofiles/{profileId}/accounts", + // "path": "userprofiles/{profileId}/accounts", // "request": { // "$ref": "Account" // }, @@ -17893,7 +17893,7 @@ func (c *AdsGetCall) 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, "dfareporting/v4/userprofiles/{profileId}/ads/{id}") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/ads/{id}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -17946,7 +17946,7 @@ func (c *AdsGetCall) Do(opts ...googleapi.CallOption) (*Ad, error) { return ret, nil // { // "description": "Gets one ad by ID.", - // "flatPath": "dfareporting/v4/userprofiles/{profileId}/ads/{id}", + // "flatPath": "userprofiles/{profileId}/ads/{id}", // "httpMethod": "GET", // "id": "dfareporting.ads.get", // "parameterOrder": [ @@ -17969,7 +17969,7 @@ func (c *AdsGetCall) Do(opts ...googleapi.CallOption) (*Ad, error) { // "type": "string" // } // }, - // "path": "dfareporting/v4/userprofiles/{profileId}/ads/{id}", + // "path": "userprofiles/{profileId}/ads/{id}", // "response": { // "$ref": "Ad" // }, @@ -18041,7 +18041,7 @@ func (c *AdsInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v4/userprofiles/{profileId}/ads") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/ads") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -18093,7 +18093,7 @@ func (c *AdsInsertCall) Do(opts ...googleapi.CallOption) (*Ad, error) { return ret, nil // { // "description": "Inserts a new ad.", - // "flatPath": "dfareporting/v4/userprofiles/{profileId}/ads", + // "flatPath": "userprofiles/{profileId}/ads", // "httpMethod": "POST", // "id": "dfareporting.ads.insert", // "parameterOrder": [ @@ -18108,7 +18108,7 @@ func (c *AdsInsertCall) Do(opts ...googleapi.CallOption) (*Ad, error) { // "type": "string" // } // }, - // "path": "dfareporting/v4/userprofiles/{profileId}/ads", + // "path": "userprofiles/{profileId}/ads", // "request": { // "$ref": "Ad" // }, @@ -18430,7 +18430,7 @@ func (c *AdsListCall) 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, "dfareporting/v4/userprofiles/{profileId}/ads") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/ads") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -18482,7 +18482,7 @@ func (c *AdsListCall) Do(opts ...googleapi.CallOption) (*AdsListResponse, error) return ret, nil // { // "description": "Retrieves a list of ads, possibly filtered. This method supports paging.", - // "flatPath": "dfareporting/v4/userprofiles/{profileId}/ads", + // "flatPath": "userprofiles/{profileId}/ads", // "httpMethod": "GET", // "id": "dfareporting.ads.list", // "parameterOrder": [ @@ -18685,7 +18685,7 @@ func (c *AdsListCall) Do(opts ...googleapi.CallOption) (*AdsListResponse, error) // "type": "string" // } // }, - // "path": "dfareporting/v4/userprofiles/{profileId}/ads", + // "path": "userprofiles/{profileId}/ads", // "response": { // "$ref": "AdsListResponse" // }, @@ -18780,7 +18780,7 @@ func (c *AdsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v4/userprofiles/{profileId}/ads") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/ads") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("PATCH", urls, body) if err != nil { @@ -18832,7 +18832,7 @@ func (c *AdsPatchCall) Do(opts ...googleapi.CallOption) (*Ad, error) { return ret, nil // { // "description": "Updates an existing ad. This method supports patch semantics.", - // "flatPath": "dfareporting/v4/userprofiles/{profileId}/ads", + // "flatPath": "userprofiles/{profileId}/ads", // "httpMethod": "PATCH", // "id": "dfareporting.ads.patch", // "parameterOrder": [ @@ -18855,7 +18855,7 @@ func (c *AdsPatchCall) Do(opts ...googleapi.CallOption) (*Ad, error) { // "type": "string" // } // }, - // "path": "dfareporting/v4/userprofiles/{profileId}/ads", + // "path": "userprofiles/{profileId}/ads", // "request": { // "$ref": "Ad" // }, @@ -18930,7 +18930,7 @@ func (c *AdsUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v4/userprofiles/{profileId}/ads") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/ads") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("PUT", urls, body) if err != nil { @@ -18982,7 +18982,7 @@ func (c *AdsUpdateCall) Do(opts ...googleapi.CallOption) (*Ad, error) { return ret, nil // { // "description": "Updates an existing ad.", - // "flatPath": "dfareporting/v4/userprofiles/{profileId}/ads", + // "flatPath": "userprofiles/{profileId}/ads", // "httpMethod": "PUT", // "id": "dfareporting.ads.update", // "parameterOrder": [ @@ -18997,7 +18997,7 @@ func (c *AdsUpdateCall) Do(opts ...googleapi.CallOption) (*Ad, error) { // "type": "string" // } // }, - // "path": "dfareporting/v4/userprofiles/{profileId}/ads", + // "path": "userprofiles/{profileId}/ads", // "request": { // "$ref": "Ad" // }, @@ -19068,7 +19068,7 @@ func (c *AdvertiserGroupsDeleteCall) doRequest(alt string) (*http.Response, erro var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v4/userprofiles/{profileId}/advertiserGroups/{id}") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/advertiserGroups/{id}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("DELETE", urls, body) if err != nil { @@ -19096,7 +19096,7 @@ func (c *AdvertiserGroupsDeleteCall) Do(opts ...googleapi.CallOption) error { return nil // { // "description": "Deletes an existing advertiser group.", - // "flatPath": "dfareporting/v4/userprofiles/{profileId}/advertiserGroups/{id}", + // "flatPath": "userprofiles/{profileId}/advertiserGroups/{id}", // "httpMethod": "DELETE", // "id": "dfareporting.advertiserGroups.delete", // "parameterOrder": [ @@ -19119,7 +19119,7 @@ func (c *AdvertiserGroupsDeleteCall) Do(opts ...googleapi.CallOption) error { // "type": "string" // } // }, - // "path": "dfareporting/v4/userprofiles/{profileId}/advertiserGroups/{id}", + // "path": "userprofiles/{profileId}/advertiserGroups/{id}", // "scopes": [ // "https://www.googleapis.com/auth/dfatrafficking" // ] @@ -19198,7 +19198,7 @@ func (c *AdvertiserGroupsGetCall) 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, "dfareporting/v4/userprofiles/{profileId}/advertiserGroups/{id}") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/advertiserGroups/{id}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -19251,7 +19251,7 @@ func (c *AdvertiserGroupsGetCall) Do(opts ...googleapi.CallOption) (*AdvertiserG return ret, nil // { // "description": "Gets one advertiser group by ID.", - // "flatPath": "dfareporting/v4/userprofiles/{profileId}/advertiserGroups/{id}", + // "flatPath": "userprofiles/{profileId}/advertiserGroups/{id}", // "httpMethod": "GET", // "id": "dfareporting.advertiserGroups.get", // "parameterOrder": [ @@ -19274,7 +19274,7 @@ func (c *AdvertiserGroupsGetCall) Do(opts ...googleapi.CallOption) (*AdvertiserG // "type": "string" // } // }, - // "path": "dfareporting/v4/userprofiles/{profileId}/advertiserGroups/{id}", + // "path": "userprofiles/{profileId}/advertiserGroups/{id}", // "response": { // "$ref": "AdvertiserGroup" // }, @@ -19346,7 +19346,7 @@ func (c *AdvertiserGroupsInsertCall) doRequest(alt string) (*http.Response, erro reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v4/userprofiles/{profileId}/advertiserGroups") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/advertiserGroups") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -19398,7 +19398,7 @@ func (c *AdvertiserGroupsInsertCall) Do(opts ...googleapi.CallOption) (*Advertis return ret, nil // { // "description": "Inserts a new advertiser group.", - // "flatPath": "dfareporting/v4/userprofiles/{profileId}/advertiserGroups", + // "flatPath": "userprofiles/{profileId}/advertiserGroups", // "httpMethod": "POST", // "id": "dfareporting.advertiserGroups.insert", // "parameterOrder": [ @@ -19413,7 +19413,7 @@ func (c *AdvertiserGroupsInsertCall) Do(opts ...googleapi.CallOption) (*Advertis // "type": "string" // } // }, - // "path": "dfareporting/v4/userprofiles/{profileId}/advertiserGroups", + // "path": "userprofiles/{profileId}/advertiserGroups", // "request": { // "$ref": "AdvertiserGroup" // }, @@ -19559,7 +19559,7 @@ func (c *AdvertiserGroupsListCall) 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, "dfareporting/v4/userprofiles/{profileId}/advertiserGroups") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/advertiserGroups") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -19611,7 +19611,7 @@ func (c *AdvertiserGroupsListCall) Do(opts ...googleapi.CallOption) (*Advertiser return ret, nil // { // "description": "Retrieves a list of advertiser groups, possibly filtered. This method supports paging.", - // "flatPath": "dfareporting/v4/userprofiles/{profileId}/advertiserGroups", + // "flatPath": "userprofiles/{profileId}/advertiserGroups", // "httpMethod": "GET", // "id": "dfareporting.advertiserGroups.list", // "parameterOrder": [ @@ -19680,7 +19680,7 @@ func (c *AdvertiserGroupsListCall) Do(opts ...googleapi.CallOption) (*Advertiser // "type": "string" // } // }, - // "path": "dfareporting/v4/userprofiles/{profileId}/advertiserGroups", + // "path": "userprofiles/{profileId}/advertiserGroups", // "response": { // "$ref": "AdvertiserGroupsListResponse" // }, @@ -19776,7 +19776,7 @@ func (c *AdvertiserGroupsPatchCall) doRequest(alt string) (*http.Response, error reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v4/userprofiles/{profileId}/advertiserGroups") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/advertiserGroups") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("PATCH", urls, body) if err != nil { @@ -19828,7 +19828,7 @@ func (c *AdvertiserGroupsPatchCall) Do(opts ...googleapi.CallOption) (*Advertise return ret, nil // { // "description": "Updates an existing advertiser group. This method supports patch semantics.", - // "flatPath": "dfareporting/v4/userprofiles/{profileId}/advertiserGroups", + // "flatPath": "userprofiles/{profileId}/advertiserGroups", // "httpMethod": "PATCH", // "id": "dfareporting.advertiserGroups.patch", // "parameterOrder": [ @@ -19851,7 +19851,7 @@ func (c *AdvertiserGroupsPatchCall) Do(opts ...googleapi.CallOption) (*Advertise // "type": "string" // } // }, - // "path": "dfareporting/v4/userprofiles/{profileId}/advertiserGroups", + // "path": "userprofiles/{profileId}/advertiserGroups", // "request": { // "$ref": "AdvertiserGroup" // }, @@ -19926,7 +19926,7 @@ func (c *AdvertiserGroupsUpdateCall) doRequest(alt string) (*http.Response, erro reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v4/userprofiles/{profileId}/advertiserGroups") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/advertiserGroups") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("PUT", urls, body) if err != nil { @@ -19978,7 +19978,7 @@ func (c *AdvertiserGroupsUpdateCall) Do(opts ...googleapi.CallOption) (*Advertis return ret, nil // { // "description": "Updates an existing advertiser group.", - // "flatPath": "dfareporting/v4/userprofiles/{profileId}/advertiserGroups", + // "flatPath": "userprofiles/{profileId}/advertiserGroups", // "httpMethod": "PUT", // "id": "dfareporting.advertiserGroups.update", // "parameterOrder": [ @@ -19993,7 +19993,7 @@ func (c *AdvertiserGroupsUpdateCall) Do(opts ...googleapi.CallOption) (*Advertis // "type": "string" // } // }, - // "path": "dfareporting/v4/userprofiles/{profileId}/advertiserGroups", + // "path": "userprofiles/{profileId}/advertiserGroups", // "request": { // "$ref": "AdvertiserGroup" // }, @@ -20101,7 +20101,7 @@ func (c *AdvertiserInvoicesListCall) doRequest(alt string) (*http.Response, erro var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v4/userprofiles/{profileId}/advertisers/{advertiserId}/invoices") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/advertisers/{advertiserId}/invoices") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -20154,7 +20154,7 @@ func (c *AdvertiserInvoicesListCall) Do(opts ...googleapi.CallOption) (*Advertis return ret, nil // { // "description": "Retrieves a list of invoices for a particular issue month. The api only works if the billing profile invoice level is set to either advertiser or campaign non-consolidated invoice level.", - // "flatPath": "dfareporting/v4/userprofiles/{profileId}/advertisers/{advertiserId}/invoices", + // "flatPath": "userprofiles/{profileId}/advertisers/{advertiserId}/invoices", // "httpMethod": "GET", // "id": "dfareporting.advertiserInvoices.list", // "parameterOrder": [ @@ -20196,7 +20196,7 @@ func (c *AdvertiserInvoicesListCall) Do(opts ...googleapi.CallOption) (*Advertis // "type": "string" // } // }, - // "path": "dfareporting/v4/userprofiles/{profileId}/advertisers/{advertiserId}/invoices", + // "path": "userprofiles/{profileId}/advertisers/{advertiserId}/invoices", // "response": { // "$ref": "AdvertiserInvoicesListResponse" // }, @@ -20299,7 +20299,7 @@ func (c *AdvertiserLandingPagesGetCall) doRequest(alt string) (*http.Response, e var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v4/userprofiles/{profileId}/advertiserLandingPages/{id}") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/advertiserLandingPages/{id}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -20352,7 +20352,7 @@ func (c *AdvertiserLandingPagesGetCall) Do(opts ...googleapi.CallOption) (*Landi return ret, nil // { // "description": "Gets one landing page by ID.", - // "flatPath": "dfareporting/v4/userprofiles/{profileId}/advertiserLandingPages/{id}", + // "flatPath": "userprofiles/{profileId}/advertiserLandingPages/{id}", // "httpMethod": "GET", // "id": "dfareporting.advertiserLandingPages.get", // "parameterOrder": [ @@ -20375,7 +20375,7 @@ func (c *AdvertiserLandingPagesGetCall) Do(opts ...googleapi.CallOption) (*Landi // "type": "string" // } // }, - // "path": "dfareporting/v4/userprofiles/{profileId}/advertiserLandingPages/{id}", + // "path": "userprofiles/{profileId}/advertiserLandingPages/{id}", // "response": { // "$ref": "LandingPage" // }, @@ -20447,7 +20447,7 @@ func (c *AdvertiserLandingPagesInsertCall) doRequest(alt string) (*http.Response reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v4/userprofiles/{profileId}/advertiserLandingPages") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/advertiserLandingPages") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -20499,7 +20499,7 @@ func (c *AdvertiserLandingPagesInsertCall) Do(opts ...googleapi.CallOption) (*La return ret, nil // { // "description": "Inserts a new landing page.", - // "flatPath": "dfareporting/v4/userprofiles/{profileId}/advertiserLandingPages", + // "flatPath": "userprofiles/{profileId}/advertiserLandingPages", // "httpMethod": "POST", // "id": "dfareporting.advertiserLandingPages.insert", // "parameterOrder": [ @@ -20514,7 +20514,7 @@ func (c *AdvertiserLandingPagesInsertCall) Do(opts ...googleapi.CallOption) (*La // "type": "string" // } // }, - // "path": "dfareporting/v4/userprofiles/{profileId}/advertiserLandingPages", + // "path": "userprofiles/{profileId}/advertiserLandingPages", // "request": { // "$ref": "LandingPage" // }, @@ -20695,7 +20695,7 @@ func (c *AdvertiserLandingPagesListCall) doRequest(alt string) (*http.Response, var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v4/userprofiles/{profileId}/advertiserLandingPages") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/advertiserLandingPages") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -20748,7 +20748,7 @@ func (c *AdvertiserLandingPagesListCall) Do(opts ...googleapi.CallOption) (*Adve return ret, nil // { // "description": "Retrieves a list of landing pages.", - // "flatPath": "dfareporting/v4/userprofiles/{profileId}/advertiserLandingPages", + // "flatPath": "userprofiles/{profileId}/advertiserLandingPages", // "httpMethod": "GET", // "id": "dfareporting.advertiserLandingPages.list", // "parameterOrder": [ @@ -20842,7 +20842,7 @@ func (c *AdvertiserLandingPagesListCall) Do(opts ...googleapi.CallOption) (*Adve // "type": "string" // } // }, - // "path": "dfareporting/v4/userprofiles/{profileId}/advertiserLandingPages", + // "path": "userprofiles/{profileId}/advertiserLandingPages", // "response": { // "$ref": "AdvertiserLandingPagesListResponse" // }, @@ -20938,7 +20938,7 @@ func (c *AdvertiserLandingPagesPatchCall) doRequest(alt string) (*http.Response, reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v4/userprofiles/{profileId}/advertiserLandingPages") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/advertiserLandingPages") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("PATCH", urls, body) if err != nil { @@ -20990,7 +20990,7 @@ func (c *AdvertiserLandingPagesPatchCall) Do(opts ...googleapi.CallOption) (*Lan return ret, nil // { // "description": "Updates an existing advertiser landing page. This method supports patch semantics.", - // "flatPath": "dfareporting/v4/userprofiles/{profileId}/advertiserLandingPages", + // "flatPath": "userprofiles/{profileId}/advertiserLandingPages", // "httpMethod": "PATCH", // "id": "dfareporting.advertiserLandingPages.patch", // "parameterOrder": [ @@ -21013,7 +21013,7 @@ func (c *AdvertiserLandingPagesPatchCall) Do(opts ...googleapi.CallOption) (*Lan // "type": "string" // } // }, - // "path": "dfareporting/v4/userprofiles/{profileId}/advertiserLandingPages", + // "path": "userprofiles/{profileId}/advertiserLandingPages", // "request": { // "$ref": "LandingPage" // }, @@ -21088,7 +21088,7 @@ func (c *AdvertiserLandingPagesUpdateCall) doRequest(alt string) (*http.Response reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v4/userprofiles/{profileId}/advertiserLandingPages") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/advertiserLandingPages") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("PUT", urls, body) if err != nil { @@ -21140,7 +21140,7 @@ func (c *AdvertiserLandingPagesUpdateCall) Do(opts ...googleapi.CallOption) (*La return ret, nil // { // "description": "Updates an existing landing page.", - // "flatPath": "dfareporting/v4/userprofiles/{profileId}/advertiserLandingPages", + // "flatPath": "userprofiles/{profileId}/advertiserLandingPages", // "httpMethod": "PUT", // "id": "dfareporting.advertiserLandingPages.update", // "parameterOrder": [ @@ -21155,7 +21155,7 @@ func (c *AdvertiserLandingPagesUpdateCall) Do(opts ...googleapi.CallOption) (*La // "type": "string" // } // }, - // "path": "dfareporting/v4/userprofiles/{profileId}/advertiserLandingPages", + // "path": "userprofiles/{profileId}/advertiserLandingPages", // "request": { // "$ref": "LandingPage" // }, @@ -21240,7 +21240,7 @@ func (c *AdvertisersGetCall) 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, "dfareporting/v4/userprofiles/{profileId}/advertisers/{id}") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/advertisers/{id}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -21293,7 +21293,7 @@ func (c *AdvertisersGetCall) Do(opts ...googleapi.CallOption) (*Advertiser, erro return ret, nil // { // "description": "Gets one advertiser by ID.", - // "flatPath": "dfareporting/v4/userprofiles/{profileId}/advertisers/{id}", + // "flatPath": "userprofiles/{profileId}/advertisers/{id}", // "httpMethod": "GET", // "id": "dfareporting.advertisers.get", // "parameterOrder": [ @@ -21316,7 +21316,7 @@ func (c *AdvertisersGetCall) Do(opts ...googleapi.CallOption) (*Advertiser, erro // "type": "string" // } // }, - // "path": "dfareporting/v4/userprofiles/{profileId}/advertisers/{id}", + // "path": "userprofiles/{profileId}/advertisers/{id}", // "response": { // "$ref": "Advertiser" // }, @@ -21388,7 +21388,7 @@ func (c *AdvertisersInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v4/userprofiles/{profileId}/advertisers") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/advertisers") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -21440,7 +21440,7 @@ func (c *AdvertisersInsertCall) Do(opts ...googleapi.CallOption) (*Advertiser, e return ret, nil // { // "description": "Inserts a new advertiser.", - // "flatPath": "dfareporting/v4/userprofiles/{profileId}/advertisers", + // "flatPath": "userprofiles/{profileId}/advertisers", // "httpMethod": "POST", // "id": "dfareporting.advertisers.insert", // "parameterOrder": [ @@ -21455,7 +21455,7 @@ func (c *AdvertisersInsertCall) Do(opts ...googleapi.CallOption) (*Advertiser, e // "type": "string" // } // }, - // "path": "dfareporting/v4/userprofiles/{profileId}/advertisers", + // "path": "userprofiles/{profileId}/advertisers", // "request": { // "$ref": "Advertiser" // }, @@ -21657,7 +21657,7 @@ func (c *AdvertisersListCall) 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, "dfareporting/v4/userprofiles/{profileId}/advertisers") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/advertisers") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -21709,7 +21709,7 @@ func (c *AdvertisersListCall) Do(opts ...googleapi.CallOption) (*AdvertisersList return ret, nil // { // "description": "Retrieves a list of advertisers, possibly filtered. This method supports paging.", - // "flatPath": "dfareporting/v4/userprofiles/{profileId}/advertisers", + // "flatPath": "userprofiles/{profileId}/advertisers", // "httpMethod": "GET", // "id": "dfareporting.advertisers.list", // "parameterOrder": [ @@ -21821,7 +21821,7 @@ func (c *AdvertisersListCall) Do(opts ...googleapi.CallOption) (*AdvertisersList // "type": "string" // } // }, - // "path": "dfareporting/v4/userprofiles/{profileId}/advertisers", + // "path": "userprofiles/{profileId}/advertisers", // "response": { // "$ref": "AdvertisersListResponse" // }, @@ -21917,7 +21917,7 @@ func (c *AdvertisersPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v4/userprofiles/{profileId}/advertisers") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/advertisers") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("PATCH", urls, body) if err != nil { @@ -21969,7 +21969,7 @@ func (c *AdvertisersPatchCall) Do(opts ...googleapi.CallOption) (*Advertiser, er return ret, nil // { // "description": "Updates an existing advertiser. This method supports patch semantics.", - // "flatPath": "dfareporting/v4/userprofiles/{profileId}/advertisers", + // "flatPath": "userprofiles/{profileId}/advertisers", // "httpMethod": "PATCH", // "id": "dfareporting.advertisers.patch", // "parameterOrder": [ @@ -21992,7 +21992,7 @@ func (c *AdvertisersPatchCall) Do(opts ...googleapi.CallOption) (*Advertiser, er // "type": "string" // } // }, - // "path": "dfareporting/v4/userprofiles/{profileId}/advertisers", + // "path": "userprofiles/{profileId}/advertisers", // "request": { // "$ref": "Advertiser" // }, @@ -22067,7 +22067,7 @@ func (c *AdvertisersUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v4/userprofiles/{profileId}/advertisers") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/advertisers") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("PUT", urls, body) if err != nil { @@ -22119,7 +22119,7 @@ func (c *AdvertisersUpdateCall) Do(opts ...googleapi.CallOption) (*Advertiser, e return ret, nil // { // "description": "Updates an existing advertiser.", - // "flatPath": "dfareporting/v4/userprofiles/{profileId}/advertisers", + // "flatPath": "userprofiles/{profileId}/advertisers", // "httpMethod": "PUT", // "id": "dfareporting.advertisers.update", // "parameterOrder": [ @@ -22134,7 +22134,7 @@ func (c *AdvertisersUpdateCall) Do(opts ...googleapi.CallOption) (*Advertiser, e // "type": "string" // } // }, - // "path": "dfareporting/v4/userprofiles/{profileId}/advertisers", + // "path": "userprofiles/{profileId}/advertisers", // "request": { // "$ref": "Advertiser" // }, @@ -22216,7 +22216,7 @@ func (c *BillingAssignmentsInsertCall) doRequest(alt string) (*http.Response, er reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v4/userprofiles/{profileId}/billingProfiles/{billingProfileId}/billingAssignments") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/billingProfiles/{billingProfileId}/billingAssignments") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -22269,7 +22269,7 @@ func (c *BillingAssignmentsInsertCall) Do(opts ...googleapi.CallOption) (*Billin return ret, nil // { // "description": "Inserts a new billing assignment and returns the new assignment. Only one of advertiser_id or campaign_id is support per request. If the new assignment has no effect (assigning a campaign to the parent advertiser billing profile or assigning an advertiser to the account billing profile), no assignment will be returned.", - // "flatPath": "dfareporting/v4/userprofiles/{profileId}/billingProfiles/{billingProfileId}/billingAssignments", + // "flatPath": "userprofiles/{profileId}/billingProfiles/{billingProfileId}/billingAssignments", // "httpMethod": "POST", // "id": "dfareporting.billingAssignments.insert", // "parameterOrder": [ @@ -22292,7 +22292,7 @@ func (c *BillingAssignmentsInsertCall) Do(opts ...googleapi.CallOption) (*Billin // "type": "string" // } // }, - // "path": "dfareporting/v4/userprofiles/{profileId}/billingProfiles/{billingProfileId}/billingAssignments", + // "path": "userprofiles/{profileId}/billingProfiles/{billingProfileId}/billingAssignments", // "request": { // "$ref": "BillingAssignment" // }, @@ -22377,7 +22377,7 @@ func (c *BillingAssignmentsListCall) doRequest(alt string) (*http.Response, erro var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v4/userprofiles/{profileId}/billingProfiles/{billingProfileId}/billingAssignments") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/billingProfiles/{billingProfileId}/billingAssignments") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -22430,7 +22430,7 @@ func (c *BillingAssignmentsListCall) Do(opts ...googleapi.CallOption) (*BillingA return ret, nil // { // "description": "Retrieves a list of billing assignments.", - // "flatPath": "dfareporting/v4/userprofiles/{profileId}/billingProfiles/{billingProfileId}/billingAssignments", + // "flatPath": "userprofiles/{profileId}/billingProfiles/{billingProfileId}/billingAssignments", // "httpMethod": "GET", // "id": "dfareporting.billingAssignments.list", // "parameterOrder": [ @@ -22453,7 +22453,7 @@ func (c *BillingAssignmentsListCall) Do(opts ...googleapi.CallOption) (*BillingA // "type": "string" // } // }, - // "path": "dfareporting/v4/userprofiles/{profileId}/billingProfiles/{billingProfileId}/billingAssignments", + // "path": "userprofiles/{profileId}/billingProfiles/{billingProfileId}/billingAssignments", // "response": { // "$ref": "BillingAssignmentsListResponse" // }, @@ -22535,7 +22535,7 @@ func (c *BillingProfilesGetCall) 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, "dfareporting/v4/userprofiles/{profileId}/billingProfiles/{id}") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/billingProfiles/{id}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -22588,7 +22588,7 @@ func (c *BillingProfilesGetCall) Do(opts ...googleapi.CallOption) (*BillingProfi return ret, nil // { // "description": "Gets one billing profile by ID.", - // "flatPath": "dfareporting/v4/userprofiles/{profileId}/billingProfiles/{id}", + // "flatPath": "userprofiles/{profileId}/billingProfiles/{id}", // "httpMethod": "GET", // "id": "dfareporting.billingProfiles.get", // "parameterOrder": [ @@ -22611,7 +22611,7 @@ func (c *BillingProfilesGetCall) Do(opts ...googleapi.CallOption) (*BillingProfi // "type": "string" // } // }, - // "path": "dfareporting/v4/userprofiles/{profileId}/billingProfiles/{id}", + // "path": "userprofiles/{profileId}/billingProfiles/{id}", // "response": { // "$ref": "BillingProfile" // }, @@ -22793,7 +22793,7 @@ func (c *BillingProfilesListCall) 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, "dfareporting/v4/userprofiles/{profileId}/billingProfiles") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/billingProfiles") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -22845,7 +22845,7 @@ func (c *BillingProfilesListCall) Do(opts ...googleapi.CallOption) (*BillingProf return ret, nil // { // "description": "Retrieves a list of billing profiles, possibly filtered. This method supports paging.", - // "flatPath": "dfareporting/v4/userprofiles/{profileId}/billingProfiles", + // "flatPath": "userprofiles/{profileId}/billingProfiles", // "httpMethod": "GET", // "id": "dfareporting.billingProfiles.list", // "parameterOrder": [ @@ -22947,7 +22947,7 @@ func (c *BillingProfilesListCall) Do(opts ...googleapi.CallOption) (*BillingProf // "type": "string" // } // }, - // "path": "dfareporting/v4/userprofiles/{profileId}/billingProfiles", + // "path": "userprofiles/{profileId}/billingProfiles", // "response": { // "$ref": "BillingProfilesListResponse" // }, @@ -23040,7 +23040,7 @@ func (c *BillingProfilesUpdateCall) doRequest(alt string) (*http.Response, error reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v4/userprofiles/{profileId}/billingProfiles") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/billingProfiles") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("PUT", urls, body) if err != nil { @@ -23092,7 +23092,7 @@ func (c *BillingProfilesUpdateCall) Do(opts ...googleapi.CallOption) (*BillingPr return ret, nil // { // "description": "Updates an existing billing profile.", - // "flatPath": "dfareporting/v4/userprofiles/{profileId}/billingProfiles", + // "flatPath": "userprofiles/{profileId}/billingProfiles", // "httpMethod": "PUT", // "id": "dfareporting.billingProfiles.update", // "parameterOrder": [ @@ -23107,7 +23107,7 @@ func (c *BillingProfilesUpdateCall) Do(opts ...googleapi.CallOption) (*BillingPr // "type": "string" // } // }, - // "path": "dfareporting/v4/userprofiles/{profileId}/billingProfiles", + // "path": "userprofiles/{profileId}/billingProfiles", // "request": { // "$ref": "BillingProfile" // }, @@ -23192,7 +23192,7 @@ func (c *BillingRatesListCall) 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, "dfareporting/v4/userprofiles/{profileId}/billingProfiles/{billingProfileId}/billingRates") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/billingProfiles/{billingProfileId}/billingRates") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -23245,7 +23245,7 @@ func (c *BillingRatesListCall) Do(opts ...googleapi.CallOption) (*BillingRatesLi return ret, nil // { // "description": "Retrieves a list of billing rates. This method supports paging.", - // "flatPath": "dfareporting/v4/userprofiles/{profileId}/billingProfiles/{billingProfileId}/billingRates", + // "flatPath": "userprofiles/{profileId}/billingProfiles/{billingProfileId}/billingRates", // "httpMethod": "GET", // "id": "dfareporting.billingRates.list", // "parameterOrder": [ @@ -23268,7 +23268,7 @@ func (c *BillingRatesListCall) Do(opts ...googleapi.CallOption) (*BillingRatesLi // "type": "string" // } // }, - // "path": "dfareporting/v4/userprofiles/{profileId}/billingProfiles/{billingProfileId}/billingRates", + // "path": "userprofiles/{profileId}/billingProfiles/{billingProfileId}/billingRates", // "response": { // "$ref": "BillingRatesListResponse" // }, @@ -23347,7 +23347,7 @@ func (c *BrowsersListCall) 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, "dfareporting/v4/userprofiles/{profileId}/browsers") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/browsers") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -23399,7 +23399,7 @@ func (c *BrowsersListCall) Do(opts ...googleapi.CallOption) (*BrowsersListRespon return ret, nil // { // "description": "Retrieves a list of browsers.", - // "flatPath": "dfareporting/v4/userprofiles/{profileId}/browsers", + // "flatPath": "userprofiles/{profileId}/browsers", // "httpMethod": "GET", // "id": "dfareporting.browsers.list", // "parameterOrder": [ @@ -23414,7 +23414,7 @@ func (c *BrowsersListCall) Do(opts ...googleapi.CallOption) (*BrowsersListRespon // "type": "string" // } // }, - // "path": "dfareporting/v4/userprofiles/{profileId}/browsers", + // "path": "userprofiles/{profileId}/browsers", // "response": { // "$ref": "BrowsersListResponse" // }, @@ -23491,7 +23491,7 @@ func (c *CampaignCreativeAssociationsInsertCall) doRequest(alt string) (*http.Re reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v4/userprofiles/{profileId}/campaigns/{campaignId}/campaignCreativeAssociations") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/campaigns/{campaignId}/campaignCreativeAssociations") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -23544,7 +23544,7 @@ func (c *CampaignCreativeAssociationsInsertCall) Do(opts ...googleapi.CallOption return ret, nil // { // "description": "Associates a creative with the specified campaign. This method creates a default ad with dimensions matching the creative in the campaign if such a default ad does not exist already.", - // "flatPath": "dfareporting/v4/userprofiles/{profileId}/campaigns/{campaignId}/campaignCreativeAssociations", + // "flatPath": "userprofiles/{profileId}/campaigns/{campaignId}/campaignCreativeAssociations", // "httpMethod": "POST", // "id": "dfareporting.campaignCreativeAssociations.insert", // "parameterOrder": [ @@ -23567,7 +23567,7 @@ func (c *CampaignCreativeAssociationsInsertCall) Do(opts ...googleapi.CallOption // "type": "string" // } // }, - // "path": "dfareporting/v4/userprofiles/{profileId}/campaigns/{campaignId}/campaignCreativeAssociations", + // "path": "userprofiles/{profileId}/campaigns/{campaignId}/campaignCreativeAssociations", // "request": { // "$ref": "CampaignCreativeAssociation" // }, @@ -23679,7 +23679,7 @@ func (c *CampaignCreativeAssociationsListCall) doRequest(alt string) (*http.Resp var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v4/userprofiles/{profileId}/campaigns/{campaignId}/campaignCreativeAssociations") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/campaigns/{campaignId}/campaignCreativeAssociations") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -23734,7 +23734,7 @@ func (c *CampaignCreativeAssociationsListCall) Do(opts ...googleapi.CallOption) return ret, nil // { // "description": "Retrieves the list of creative IDs associated with the specified campaign. This method supports paging.", - // "flatPath": "dfareporting/v4/userprofiles/{profileId}/campaigns/{campaignId}/campaignCreativeAssociations", + // "flatPath": "userprofiles/{profileId}/campaigns/{campaignId}/campaignCreativeAssociations", // "httpMethod": "GET", // "id": "dfareporting.campaignCreativeAssociations.list", // "parameterOrder": [ @@ -23785,7 +23785,7 @@ func (c *CampaignCreativeAssociationsListCall) Do(opts ...googleapi.CallOption) // "type": "string" // } // }, - // "path": "dfareporting/v4/userprofiles/{profileId}/campaigns/{campaignId}/campaignCreativeAssociations", + // "path": "userprofiles/{profileId}/campaigns/{campaignId}/campaignCreativeAssociations", // "response": { // "$ref": "CampaignCreativeAssociationsListResponse" // }, @@ -23888,7 +23888,7 @@ func (c *CampaignsGetCall) 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, "dfareporting/v4/userprofiles/{profileId}/campaigns/{id}") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/campaigns/{id}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -23941,7 +23941,7 @@ func (c *CampaignsGetCall) Do(opts ...googleapi.CallOption) (*Campaign, error) { return ret, nil // { // "description": "Gets one campaign by ID.", - // "flatPath": "dfareporting/v4/userprofiles/{profileId}/campaigns/{id}", + // "flatPath": "userprofiles/{profileId}/campaigns/{id}", // "httpMethod": "GET", // "id": "dfareporting.campaigns.get", // "parameterOrder": [ @@ -23964,7 +23964,7 @@ func (c *CampaignsGetCall) Do(opts ...googleapi.CallOption) (*Campaign, error) { // "type": "string" // } // }, - // "path": "dfareporting/v4/userprofiles/{profileId}/campaigns/{id}", + // "path": "userprofiles/{profileId}/campaigns/{id}", // "response": { // "$ref": "Campaign" // }, @@ -24036,7 +24036,7 @@ func (c *CampaignsInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v4/userprofiles/{profileId}/campaigns") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/campaigns") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -24088,7 +24088,7 @@ func (c *CampaignsInsertCall) Do(opts ...googleapi.CallOption) (*Campaign, error return ret, nil // { // "description": "Inserts a new campaign.", - // "flatPath": "dfareporting/v4/userprofiles/{profileId}/campaigns", + // "flatPath": "userprofiles/{profileId}/campaigns", // "httpMethod": "POST", // "id": "dfareporting.campaigns.insert", // "parameterOrder": [ @@ -24103,7 +24103,7 @@ func (c *CampaignsInsertCall) Do(opts ...googleapi.CallOption) (*Campaign, error // "type": "string" // } // }, - // "path": "dfareporting/v4/userprofiles/{profileId}/campaigns", + // "path": "userprofiles/{profileId}/campaigns", // "request": { // "$ref": "Campaign" // }, @@ -24313,7 +24313,7 @@ func (c *CampaignsListCall) 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, "dfareporting/v4/userprofiles/{profileId}/campaigns") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/campaigns") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -24365,7 +24365,7 @@ func (c *CampaignsListCall) Do(opts ...googleapi.CallOption) (*CampaignsListResp return ret, nil // { // "description": "Retrieves a list of campaigns, possibly filtered. This method supports paging.", - // "flatPath": "dfareporting/v4/userprofiles/{profileId}/campaigns", + // "flatPath": "userprofiles/{profileId}/campaigns", // "httpMethod": "GET", // "id": "dfareporting.campaigns.list", // "parameterOrder": [ @@ -24477,7 +24477,7 @@ func (c *CampaignsListCall) Do(opts ...googleapi.CallOption) (*CampaignsListResp // "type": "string" // } // }, - // "path": "dfareporting/v4/userprofiles/{profileId}/campaigns", + // "path": "userprofiles/{profileId}/campaigns", // "response": { // "$ref": "CampaignsListResponse" // }, @@ -24573,7 +24573,7 @@ func (c *CampaignsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v4/userprofiles/{profileId}/campaigns") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/campaigns") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("PATCH", urls, body) if err != nil { @@ -24625,7 +24625,7 @@ func (c *CampaignsPatchCall) Do(opts ...googleapi.CallOption) (*Campaign, error) return ret, nil // { // "description": "Updates an existing campaign. This method supports patch semantics.", - // "flatPath": "dfareporting/v4/userprofiles/{profileId}/campaigns", + // "flatPath": "userprofiles/{profileId}/campaigns", // "httpMethod": "PATCH", // "id": "dfareporting.campaigns.patch", // "parameterOrder": [ @@ -24648,7 +24648,7 @@ func (c *CampaignsPatchCall) Do(opts ...googleapi.CallOption) (*Campaign, error) // "type": "string" // } // }, - // "path": "dfareporting/v4/userprofiles/{profileId}/campaigns", + // "path": "userprofiles/{profileId}/campaigns", // "request": { // "$ref": "Campaign" // }, @@ -24723,7 +24723,7 @@ func (c *CampaignsUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v4/userprofiles/{profileId}/campaigns") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/campaigns") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("PUT", urls, body) if err != nil { @@ -24775,7 +24775,7 @@ func (c *CampaignsUpdateCall) Do(opts ...googleapi.CallOption) (*Campaign, error return ret, nil // { // "description": "Updates an existing campaign.", - // "flatPath": "dfareporting/v4/userprofiles/{profileId}/campaigns", + // "flatPath": "userprofiles/{profileId}/campaigns", // "httpMethod": "PUT", // "id": "dfareporting.campaigns.update", // "parameterOrder": [ @@ -24790,7 +24790,7 @@ func (c *CampaignsUpdateCall) Do(opts ...googleapi.CallOption) (*Campaign, error // "type": "string" // } // }, - // "path": "dfareporting/v4/userprofiles/{profileId}/campaigns", + // "path": "userprofiles/{profileId}/campaigns", // "request": { // "$ref": "Campaign" // }, @@ -24875,7 +24875,7 @@ func (c *ChangeLogsGetCall) 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, "dfareporting/v4/userprofiles/{profileId}/changeLogs/{id}") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/changeLogs/{id}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -24928,7 +24928,7 @@ func (c *ChangeLogsGetCall) Do(opts ...googleapi.CallOption) (*ChangeLog, error) return ret, nil // { // "description": "Gets one change log by ID.", - // "flatPath": "dfareporting/v4/userprofiles/{profileId}/changeLogs/{id}", + // "flatPath": "userprofiles/{profileId}/changeLogs/{id}", // "httpMethod": "GET", // "id": "dfareporting.changeLogs.get", // "parameterOrder": [ @@ -24951,7 +24951,7 @@ func (c *ChangeLogsGetCall) Do(opts ...googleapi.CallOption) (*ChangeLog, error) // "type": "string" // } // }, - // "path": "dfareporting/v4/userprofiles/{profileId}/changeLogs/{id}", + // "path": "userprofiles/{profileId}/changeLogs/{id}", // "response": { // "$ref": "ChangeLog" // }, @@ -25189,7 +25189,7 @@ func (c *ChangeLogsListCall) 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, "dfareporting/v4/userprofiles/{profileId}/changeLogs") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/changeLogs") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -25241,7 +25241,7 @@ func (c *ChangeLogsListCall) Do(opts ...googleapi.CallOption) (*ChangeLogsListRe return ret, nil // { // "description": "Retrieves a list of change logs. This method supports paging.", - // "flatPath": "dfareporting/v4/userprofiles/{profileId}/changeLogs", + // "flatPath": "userprofiles/{profileId}/changeLogs", // "httpMethod": "GET", // "id": "dfareporting.changeLogs.list", // "parameterOrder": [ @@ -25440,7 +25440,7 @@ func (c *ChangeLogsListCall) Do(opts ...googleapi.CallOption) (*ChangeLogsListRe // "type": "string" // } // }, - // "path": "dfareporting/v4/userprofiles/{profileId}/changeLogs", + // "path": "userprofiles/{profileId}/changeLogs", // "response": { // "$ref": "ChangeLogsListResponse" // }, @@ -25580,7 +25580,7 @@ func (c *CitiesListCall) 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, "dfareporting/v4/userprofiles/{profileId}/cities") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/cities") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -25632,7 +25632,7 @@ func (c *CitiesListCall) Do(opts ...googleapi.CallOption) (*CitiesListResponse, return ret, nil // { // "description": "Retrieves a list of cities, possibly filtered.", - // "flatPath": "dfareporting/v4/userprofiles/{profileId}/cities", + // "flatPath": "userprofiles/{profileId}/cities", // "httpMethod": "GET", // "id": "dfareporting.cities.list", // "parameterOrder": [ @@ -25673,7 +25673,7 @@ func (c *CitiesListCall) Do(opts ...googleapi.CallOption) (*CitiesListResponse, // "type": "string" // } // }, - // "path": "dfareporting/v4/userprofiles/{profileId}/cities", + // "path": "userprofiles/{profileId}/cities", // "response": { // "$ref": "CitiesListResponse" // }, @@ -25755,7 +25755,7 @@ func (c *ConnectionTypesGetCall) 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, "dfareporting/v4/userprofiles/{profileId}/connectionTypes/{id}") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/connectionTypes/{id}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -25808,7 +25808,7 @@ func (c *ConnectionTypesGetCall) Do(opts ...googleapi.CallOption) (*ConnectionTy return ret, nil // { // "description": "Gets one connection type by ID.", - // "flatPath": "dfareporting/v4/userprofiles/{profileId}/connectionTypes/{id}", + // "flatPath": "userprofiles/{profileId}/connectionTypes/{id}", // "httpMethod": "GET", // "id": "dfareporting.connectionTypes.get", // "parameterOrder": [ @@ -25831,7 +25831,7 @@ func (c *ConnectionTypesGetCall) Do(opts ...googleapi.CallOption) (*ConnectionTy // "type": "string" // } // }, - // "path": "dfareporting/v4/userprofiles/{profileId}/connectionTypes/{id}", + // "path": "userprofiles/{profileId}/connectionTypes/{id}", // "response": { // "$ref": "ConnectionType" // }, @@ -25910,7 +25910,7 @@ func (c *ConnectionTypesListCall) 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, "dfareporting/v4/userprofiles/{profileId}/connectionTypes") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/connectionTypes") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -25962,7 +25962,7 @@ func (c *ConnectionTypesListCall) Do(opts ...googleapi.CallOption) (*ConnectionT return ret, nil // { // "description": "Retrieves a list of connection types.", - // "flatPath": "dfareporting/v4/userprofiles/{profileId}/connectionTypes", + // "flatPath": "userprofiles/{profileId}/connectionTypes", // "httpMethod": "GET", // "id": "dfareporting.connectionTypes.list", // "parameterOrder": [ @@ -25977,7 +25977,7 @@ func (c *ConnectionTypesListCall) Do(opts ...googleapi.CallOption) (*ConnectionT // "type": "string" // } // }, - // "path": "dfareporting/v4/userprofiles/{profileId}/connectionTypes", + // "path": "userprofiles/{profileId}/connectionTypes", // "response": { // "$ref": "ConnectionTypesListResponse" // }, @@ -26045,7 +26045,7 @@ func (c *ContentCategoriesDeleteCall) doRequest(alt string) (*http.Response, err var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v4/userprofiles/{profileId}/contentCategories/{id}") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/contentCategories/{id}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("DELETE", urls, body) if err != nil { @@ -26073,7 +26073,7 @@ func (c *ContentCategoriesDeleteCall) Do(opts ...googleapi.CallOption) error { return nil // { // "description": "Deletes an existing content category.", - // "flatPath": "dfareporting/v4/userprofiles/{profileId}/contentCategories/{id}", + // "flatPath": "userprofiles/{profileId}/contentCategories/{id}", // "httpMethod": "DELETE", // "id": "dfareporting.contentCategories.delete", // "parameterOrder": [ @@ -26096,7 +26096,7 @@ func (c *ContentCategoriesDeleteCall) Do(opts ...googleapi.CallOption) error { // "type": "string" // } // }, - // "path": "dfareporting/v4/userprofiles/{profileId}/contentCategories/{id}", + // "path": "userprofiles/{profileId}/contentCategories/{id}", // "scopes": [ // "https://www.googleapis.com/auth/dfatrafficking" // ] @@ -26175,7 +26175,7 @@ func (c *ContentCategoriesGetCall) 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, "dfareporting/v4/userprofiles/{profileId}/contentCategories/{id}") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/contentCategories/{id}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -26228,7 +26228,7 @@ func (c *ContentCategoriesGetCall) Do(opts ...googleapi.CallOption) (*ContentCat return ret, nil // { // "description": "Gets one content category by ID.", - // "flatPath": "dfareporting/v4/userprofiles/{profileId}/contentCategories/{id}", + // "flatPath": "userprofiles/{profileId}/contentCategories/{id}", // "httpMethod": "GET", // "id": "dfareporting.contentCategories.get", // "parameterOrder": [ @@ -26251,7 +26251,7 @@ func (c *ContentCategoriesGetCall) Do(opts ...googleapi.CallOption) (*ContentCat // "type": "string" // } // }, - // "path": "dfareporting/v4/userprofiles/{profileId}/contentCategories/{id}", + // "path": "userprofiles/{profileId}/contentCategories/{id}", // "response": { // "$ref": "ContentCategory" // }, @@ -26323,7 +26323,7 @@ func (c *ContentCategoriesInsertCall) doRequest(alt string) (*http.Response, err reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v4/userprofiles/{profileId}/contentCategories") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/contentCategories") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -26375,7 +26375,7 @@ func (c *ContentCategoriesInsertCall) Do(opts ...googleapi.CallOption) (*Content return ret, nil // { // "description": "Inserts a new content category.", - // "flatPath": "dfareporting/v4/userprofiles/{profileId}/contentCategories", + // "flatPath": "userprofiles/{profileId}/contentCategories", // "httpMethod": "POST", // "id": "dfareporting.contentCategories.insert", // "parameterOrder": [ @@ -26390,7 +26390,7 @@ func (c *ContentCategoriesInsertCall) Do(opts ...googleapi.CallOption) (*Content // "type": "string" // } // }, - // "path": "dfareporting/v4/userprofiles/{profileId}/contentCategories", + // "path": "userprofiles/{profileId}/contentCategories", // "request": { // "$ref": "ContentCategory" // }, @@ -26536,7 +26536,7 @@ func (c *ContentCategoriesListCall) 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, "dfareporting/v4/userprofiles/{profileId}/contentCategories") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/contentCategories") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -26588,7 +26588,7 @@ func (c *ContentCategoriesListCall) Do(opts ...googleapi.CallOption) (*ContentCa return ret, nil // { // "description": "Retrieves a list of content categories, possibly filtered. This method supports paging.", - // "flatPath": "dfareporting/v4/userprofiles/{profileId}/contentCategories", + // "flatPath": "userprofiles/{profileId}/contentCategories", // "httpMethod": "GET", // "id": "dfareporting.contentCategories.list", // "parameterOrder": [ @@ -26657,7 +26657,7 @@ func (c *ContentCategoriesListCall) Do(opts ...googleapi.CallOption) (*ContentCa // "type": "string" // } // }, - // "path": "dfareporting/v4/userprofiles/{profileId}/contentCategories", + // "path": "userprofiles/{profileId}/contentCategories", // "response": { // "$ref": "ContentCategoriesListResponse" // }, @@ -26753,7 +26753,7 @@ func (c *ContentCategoriesPatchCall) doRequest(alt string) (*http.Response, erro reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v4/userprofiles/{profileId}/contentCategories") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/contentCategories") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("PATCH", urls, body) if err != nil { @@ -26805,7 +26805,7 @@ func (c *ContentCategoriesPatchCall) Do(opts ...googleapi.CallOption) (*ContentC return ret, nil // { // "description": "Updates an existing content category. This method supports patch semantics.", - // "flatPath": "dfareporting/v4/userprofiles/{profileId}/contentCategories", + // "flatPath": "userprofiles/{profileId}/contentCategories", // "httpMethod": "PATCH", // "id": "dfareporting.contentCategories.patch", // "parameterOrder": [ @@ -26828,7 +26828,7 @@ func (c *ContentCategoriesPatchCall) Do(opts ...googleapi.CallOption) (*ContentC // "type": "string" // } // }, - // "path": "dfareporting/v4/userprofiles/{profileId}/contentCategories", + // "path": "userprofiles/{profileId}/contentCategories", // "request": { // "$ref": "ContentCategory" // }, @@ -26903,7 +26903,7 @@ func (c *ContentCategoriesUpdateCall) doRequest(alt string) (*http.Response, err reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v4/userprofiles/{profileId}/contentCategories") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/contentCategories") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("PUT", urls, body) if err != nil { @@ -26955,7 +26955,7 @@ func (c *ContentCategoriesUpdateCall) Do(opts ...googleapi.CallOption) (*Content return ret, nil // { // "description": "Updates an existing content category.", - // "flatPath": "dfareporting/v4/userprofiles/{profileId}/contentCategories", + // "flatPath": "userprofiles/{profileId}/contentCategories", // "httpMethod": "PUT", // "id": "dfareporting.contentCategories.update", // "parameterOrder": [ @@ -26970,7 +26970,7 @@ func (c *ContentCategoriesUpdateCall) Do(opts ...googleapi.CallOption) (*Content // "type": "string" // } // }, - // "path": "dfareporting/v4/userprofiles/{profileId}/contentCategories", + // "path": "userprofiles/{profileId}/contentCategories", // "request": { // "$ref": "ContentCategory" // }, @@ -27045,7 +27045,7 @@ func (c *ConversionsBatchinsertCall) doRequest(alt string) (*http.Response, erro reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v4/userprofiles/{profileId}/conversions/batchinsert") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/conversions/batchinsert") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -27097,7 +27097,7 @@ func (c *ConversionsBatchinsertCall) Do(opts ...googleapi.CallOption) (*Conversi return ret, nil // { // "description": "Inserts conversions.", - // "flatPath": "dfareporting/v4/userprofiles/{profileId}/conversions/batchinsert", + // "flatPath": "userprofiles/{profileId}/conversions/batchinsert", // "httpMethod": "POST", // "id": "dfareporting.conversions.batchinsert", // "parameterOrder": [ @@ -27112,7 +27112,7 @@ func (c *ConversionsBatchinsertCall) Do(opts ...googleapi.CallOption) (*Conversi // "type": "string" // } // }, - // "path": "dfareporting/v4/userprofiles/{profileId}/conversions/batchinsert", + // "path": "userprofiles/{profileId}/conversions/batchinsert", // "request": { // "$ref": "ConversionsBatchInsertRequest" // }, @@ -27187,7 +27187,7 @@ func (c *ConversionsBatchupdateCall) doRequest(alt string) (*http.Response, erro reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v4/userprofiles/{profileId}/conversions/batchupdate") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/conversions/batchupdate") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -27239,7 +27239,7 @@ func (c *ConversionsBatchupdateCall) Do(opts ...googleapi.CallOption) (*Conversi return ret, nil // { // "description": "Updates existing conversions.", - // "flatPath": "dfareporting/v4/userprofiles/{profileId}/conversions/batchupdate", + // "flatPath": "userprofiles/{profileId}/conversions/batchupdate", // "httpMethod": "POST", // "id": "dfareporting.conversions.batchupdate", // "parameterOrder": [ @@ -27254,7 +27254,7 @@ func (c *ConversionsBatchupdateCall) Do(opts ...googleapi.CallOption) (*Conversi // "type": "string" // } // }, - // "path": "dfareporting/v4/userprofiles/{profileId}/conversions/batchupdate", + // "path": "userprofiles/{profileId}/conversions/batchupdate", // "request": { // "$ref": "ConversionsBatchUpdateRequest" // }, @@ -27339,7 +27339,7 @@ func (c *CountriesGetCall) 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, "dfareporting/v4/userprofiles/{profileId}/countries/{dartId}") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/countries/{dartId}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -27392,7 +27392,7 @@ func (c *CountriesGetCall) Do(opts ...googleapi.CallOption) (*Country, error) { return ret, nil // { // "description": "Gets one country by ID.", - // "flatPath": "dfareporting/v4/userprofiles/{profileId}/countries/{dartId}", + // "flatPath": "userprofiles/{profileId}/countries/{dartId}", // "httpMethod": "GET", // "id": "dfareporting.countries.get", // "parameterOrder": [ @@ -27415,7 +27415,7 @@ func (c *CountriesGetCall) Do(opts ...googleapi.CallOption) (*Country, error) { // "type": "string" // } // }, - // "path": "dfareporting/v4/userprofiles/{profileId}/countries/{dartId}", + // "path": "userprofiles/{profileId}/countries/{dartId}", // "response": { // "$ref": "Country" // }, @@ -27494,7 +27494,7 @@ func (c *CountriesListCall) 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, "dfareporting/v4/userprofiles/{profileId}/countries") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/countries") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -27546,7 +27546,7 @@ func (c *CountriesListCall) Do(opts ...googleapi.CallOption) (*CountriesListResp return ret, nil // { // "description": "Retrieves a list of countries.", - // "flatPath": "dfareporting/v4/userprofiles/{profileId}/countries", + // "flatPath": "userprofiles/{profileId}/countries", // "httpMethod": "GET", // "id": "dfareporting.countries.list", // "parameterOrder": [ @@ -27561,7 +27561,7 @@ func (c *CountriesListCall) Do(opts ...googleapi.CallOption) (*CountriesListResp // "type": "string" // } // }, - // "path": "dfareporting/v4/userprofiles/{profileId}/countries", + // "path": "userprofiles/{profileId}/countries", // "response": { // "$ref": "CountriesListResponse" // }, @@ -27677,7 +27677,7 @@ func (c *CreativeAssetsInsertCall) doRequest(alt string) (*http.Response, error) reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v4/userprofiles/{profileId}/creativeAssets/{advertiserId}/creativeAssets") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/creativeAssets/{advertiserId}/creativeAssets") if c.mediaInfo_ != nil { urls = googleapi.ResolveRelative(c.s.BasePath, "/upload/dfareporting/v4/userprofiles/{profileId}/creativeAssets/{advertiserId}/creativeAssets") c.urlParams_.Set("uploadType", c.mediaInfo_.UploadType()) @@ -27758,7 +27758,7 @@ func (c *CreativeAssetsInsertCall) Do(opts ...googleapi.CallOption) (*CreativeAs return ret, nil // { // "description": "Inserts a new creative asset.", - // "flatPath": "dfareporting/v4/userprofiles/{profileId}/creativeAssets/{advertiserId}/creativeAssets", + // "flatPath": "userprofiles/{profileId}/creativeAssets/{advertiserId}/creativeAssets", // "httpMethod": "POST", // "id": "dfareporting.creativeAssets.insert", // "mediaUpload": { @@ -27793,7 +27793,7 @@ func (c *CreativeAssetsInsertCall) Do(opts ...googleapi.CallOption) (*CreativeAs // "type": "string" // } // }, - // "path": "dfareporting/v4/userprofiles/{profileId}/creativeAssets/{advertiserId}/creativeAssets", + // "path": "userprofiles/{profileId}/creativeAssets/{advertiserId}/creativeAssets", // "request": { // "$ref": "CreativeAssetMetadata" // }, @@ -27868,7 +27868,7 @@ func (c *CreativeFieldValuesDeleteCall) doRequest(alt string) (*http.Response, e var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v4/userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues/{id}") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues/{id}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("DELETE", urls, body) if err != nil { @@ -27897,7 +27897,7 @@ func (c *CreativeFieldValuesDeleteCall) Do(opts ...googleapi.CallOption) error { return nil // { // "description": "Deletes an existing creative field value.", - // "flatPath": "dfareporting/v4/userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues/{id}", + // "flatPath": "userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues/{id}", // "httpMethod": "DELETE", // "id": "dfareporting.creativeFieldValues.delete", // "parameterOrder": [ @@ -27928,7 +27928,7 @@ func (c *CreativeFieldValuesDeleteCall) Do(opts ...googleapi.CallOption) error { // "type": "string" // } // }, - // "path": "dfareporting/v4/userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues/{id}", + // "path": "userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues/{id}", // "scopes": [ // "https://www.googleapis.com/auth/dfatrafficking" // ] @@ -28010,7 +28010,7 @@ func (c *CreativeFieldValuesGetCall) doRequest(alt string) (*http.Response, erro var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v4/userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues/{id}") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues/{id}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -28064,7 +28064,7 @@ func (c *CreativeFieldValuesGetCall) Do(opts ...googleapi.CallOption) (*Creative return ret, nil // { // "description": "Gets one creative field value by ID.", - // "flatPath": "dfareporting/v4/userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues/{id}", + // "flatPath": "userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues/{id}", // "httpMethod": "GET", // "id": "dfareporting.creativeFieldValues.get", // "parameterOrder": [ @@ -28095,7 +28095,7 @@ func (c *CreativeFieldValuesGetCall) Do(opts ...googleapi.CallOption) (*Creative // "type": "string" // } // }, - // "path": "dfareporting/v4/userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues/{id}", + // "path": "userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues/{id}", // "response": { // "$ref": "CreativeFieldValue" // }, @@ -28170,7 +28170,7 @@ func (c *CreativeFieldValuesInsertCall) doRequest(alt string) (*http.Response, e reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v4/userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -28223,7 +28223,7 @@ func (c *CreativeFieldValuesInsertCall) Do(opts ...googleapi.CallOption) (*Creat return ret, nil // { // "description": "Inserts a new creative field value.", - // "flatPath": "dfareporting/v4/userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues", + // "flatPath": "userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues", // "httpMethod": "POST", // "id": "dfareporting.creativeFieldValues.insert", // "parameterOrder": [ @@ -28246,7 +28246,7 @@ func (c *CreativeFieldValuesInsertCall) Do(opts ...googleapi.CallOption) (*Creat // "type": "string" // } // }, - // "path": "dfareporting/v4/userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues", + // "path": "userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues", // "request": { // "$ref": "CreativeFieldValue" // }, @@ -28389,7 +28389,7 @@ func (c *CreativeFieldValuesListCall) doRequest(alt string) (*http.Response, err var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v4/userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -28442,7 +28442,7 @@ func (c *CreativeFieldValuesListCall) Do(opts ...googleapi.CallOption) (*Creativ return ret, nil // { // "description": "Retrieves a list of creative field values, possibly filtered. This method supports paging.", - // "flatPath": "dfareporting/v4/userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues", + // "flatPath": "userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues", // "httpMethod": "GET", // "id": "dfareporting.creativeFieldValues.list", // "parameterOrder": [ @@ -28519,7 +28519,7 @@ func (c *CreativeFieldValuesListCall) Do(opts ...googleapi.CallOption) (*Creativ // "type": "string" // } // }, - // "path": "dfareporting/v4/userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues", + // "path": "userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues", // "response": { // "$ref": "CreativeFieldValuesListResponse" // }, @@ -28618,7 +28618,7 @@ func (c *CreativeFieldValuesPatchCall) doRequest(alt string) (*http.Response, er reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v4/userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("PATCH", urls, body) if err != nil { @@ -28671,7 +28671,7 @@ func (c *CreativeFieldValuesPatchCall) Do(opts ...googleapi.CallOption) (*Creati return ret, nil // { // "description": "Updates an existing creative field value. This method supports patch semantics.", - // "flatPath": "dfareporting/v4/userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues", + // "flatPath": "userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues", // "httpMethod": "PATCH", // "id": "dfareporting.creativeFieldValues.patch", // "parameterOrder": [ @@ -28702,7 +28702,7 @@ func (c *CreativeFieldValuesPatchCall) Do(opts ...googleapi.CallOption) (*Creati // "type": "string" // } // }, - // "path": "dfareporting/v4/userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues", + // "path": "userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues", // "request": { // "$ref": "CreativeFieldValue" // }, @@ -28780,7 +28780,7 @@ func (c *CreativeFieldValuesUpdateCall) doRequest(alt string) (*http.Response, e reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v4/userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("PUT", urls, body) if err != nil { @@ -28833,7 +28833,7 @@ func (c *CreativeFieldValuesUpdateCall) Do(opts ...googleapi.CallOption) (*Creat return ret, nil // { // "description": "Updates an existing creative field value.", - // "flatPath": "dfareporting/v4/userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues", + // "flatPath": "userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues", // "httpMethod": "PUT", // "id": "dfareporting.creativeFieldValues.update", // "parameterOrder": [ @@ -28856,7 +28856,7 @@ func (c *CreativeFieldValuesUpdateCall) Do(opts ...googleapi.CallOption) (*Creat // "type": "string" // } // }, - // "path": "dfareporting/v4/userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues", + // "path": "userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues", // "request": { // "$ref": "CreativeFieldValue" // }, @@ -28927,7 +28927,7 @@ func (c *CreativeFieldsDeleteCall) 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, "dfareporting/v4/userprofiles/{profileId}/creativeFields/{id}") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/creativeFields/{id}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("DELETE", urls, body) if err != nil { @@ -28955,7 +28955,7 @@ func (c *CreativeFieldsDeleteCall) Do(opts ...googleapi.CallOption) error { return nil // { // "description": "Deletes an existing creative field.", - // "flatPath": "dfareporting/v4/userprofiles/{profileId}/creativeFields/{id}", + // "flatPath": "userprofiles/{profileId}/creativeFields/{id}", // "httpMethod": "DELETE", // "id": "dfareporting.creativeFields.delete", // "parameterOrder": [ @@ -28978,7 +28978,7 @@ func (c *CreativeFieldsDeleteCall) Do(opts ...googleapi.CallOption) error { // "type": "string" // } // }, - // "path": "dfareporting/v4/userprofiles/{profileId}/creativeFields/{id}", + // "path": "userprofiles/{profileId}/creativeFields/{id}", // "scopes": [ // "https://www.googleapis.com/auth/dfatrafficking" // ] @@ -29057,7 +29057,7 @@ func (c *CreativeFieldsGetCall) 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, "dfareporting/v4/userprofiles/{profileId}/creativeFields/{id}") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/creativeFields/{id}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -29110,7 +29110,7 @@ func (c *CreativeFieldsGetCall) Do(opts ...googleapi.CallOption) (*CreativeField return ret, nil // { // "description": "Gets one creative field by ID.", - // "flatPath": "dfareporting/v4/userprofiles/{profileId}/creativeFields/{id}", + // "flatPath": "userprofiles/{profileId}/creativeFields/{id}", // "httpMethod": "GET", // "id": "dfareporting.creativeFields.get", // "parameterOrder": [ @@ -29133,7 +29133,7 @@ func (c *CreativeFieldsGetCall) Do(opts ...googleapi.CallOption) (*CreativeField // "type": "string" // } // }, - // "path": "dfareporting/v4/userprofiles/{profileId}/creativeFields/{id}", + // "path": "userprofiles/{profileId}/creativeFields/{id}", // "response": { // "$ref": "CreativeField" // }, @@ -29205,7 +29205,7 @@ func (c *CreativeFieldsInsertCall) doRequest(alt string) (*http.Response, error) reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v4/userprofiles/{profileId}/creativeFields") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/creativeFields") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -29257,7 +29257,7 @@ func (c *CreativeFieldsInsertCall) Do(opts ...googleapi.CallOption) (*CreativeFi return ret, nil // { // "description": "Inserts a new creative field.", - // "flatPath": "dfareporting/v4/userprofiles/{profileId}/creativeFields", + // "flatPath": "userprofiles/{profileId}/creativeFields", // "httpMethod": "POST", // "id": "dfareporting.creativeFields.insert", // "parameterOrder": [ @@ -29272,7 +29272,7 @@ func (c *CreativeFieldsInsertCall) Do(opts ...googleapi.CallOption) (*CreativeFi // "type": "string" // } // }, - // "path": "dfareporting/v4/userprofiles/{profileId}/creativeFields", + // "path": "userprofiles/{profileId}/creativeFields", // "request": { // "$ref": "CreativeField" // }, @@ -29429,7 +29429,7 @@ func (c *CreativeFieldsListCall) 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, "dfareporting/v4/userprofiles/{profileId}/creativeFields") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/creativeFields") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -29481,7 +29481,7 @@ func (c *CreativeFieldsListCall) Do(opts ...googleapi.CallOption) (*CreativeFiel return ret, nil // { // "description": "Retrieves a list of creative fields, possibly filtered. This method supports paging.", - // "flatPath": "dfareporting/v4/userprofiles/{profileId}/creativeFields", + // "flatPath": "userprofiles/{profileId}/creativeFields", // "httpMethod": "GET", // "id": "dfareporting.creativeFields.list", // "parameterOrder": [ @@ -29557,7 +29557,7 @@ func (c *CreativeFieldsListCall) Do(opts ...googleapi.CallOption) (*CreativeFiel // "type": "string" // } // }, - // "path": "dfareporting/v4/userprofiles/{profileId}/creativeFields", + // "path": "userprofiles/{profileId}/creativeFields", // "response": { // "$ref": "CreativeFieldsListResponse" // }, @@ -29653,7 +29653,7 @@ func (c *CreativeFieldsPatchCall) doRequest(alt string) (*http.Response, error) reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v4/userprofiles/{profileId}/creativeFields") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/creativeFields") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("PATCH", urls, body) if err != nil { @@ -29705,7 +29705,7 @@ func (c *CreativeFieldsPatchCall) Do(opts ...googleapi.CallOption) (*CreativeFie return ret, nil // { // "description": "Updates an existing creative field. This method supports patch semantics.", - // "flatPath": "dfareporting/v4/userprofiles/{profileId}/creativeFields", + // "flatPath": "userprofiles/{profileId}/creativeFields", // "httpMethod": "PATCH", // "id": "dfareporting.creativeFields.patch", // "parameterOrder": [ @@ -29728,7 +29728,7 @@ func (c *CreativeFieldsPatchCall) Do(opts ...googleapi.CallOption) (*CreativeFie // "type": "string" // } // }, - // "path": "dfareporting/v4/userprofiles/{profileId}/creativeFields", + // "path": "userprofiles/{profileId}/creativeFields", // "request": { // "$ref": "CreativeField" // }, @@ -29803,7 +29803,7 @@ func (c *CreativeFieldsUpdateCall) doRequest(alt string) (*http.Response, error) reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v4/userprofiles/{profileId}/creativeFields") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/creativeFields") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("PUT", urls, body) if err != nil { @@ -29855,7 +29855,7 @@ func (c *CreativeFieldsUpdateCall) Do(opts ...googleapi.CallOption) (*CreativeFi return ret, nil // { // "description": "Updates an existing creative field.", - // "flatPath": "dfareporting/v4/userprofiles/{profileId}/creativeFields", + // "flatPath": "userprofiles/{profileId}/creativeFields", // "httpMethod": "PUT", // "id": "dfareporting.creativeFields.update", // "parameterOrder": [ @@ -29870,7 +29870,7 @@ func (c *CreativeFieldsUpdateCall) Do(opts ...googleapi.CallOption) (*CreativeFi // "type": "string" // } // }, - // "path": "dfareporting/v4/userprofiles/{profileId}/creativeFields", + // "path": "userprofiles/{profileId}/creativeFields", // "request": { // "$ref": "CreativeField" // }, @@ -29955,7 +29955,7 @@ func (c *CreativeGroupsGetCall) 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, "dfareporting/v4/userprofiles/{profileId}/creativeGroups/{id}") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/creativeGroups/{id}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -30008,7 +30008,7 @@ func (c *CreativeGroupsGetCall) Do(opts ...googleapi.CallOption) (*CreativeGroup return ret, nil // { // "description": "Gets one creative group by ID.", - // "flatPath": "dfareporting/v4/userprofiles/{profileId}/creativeGroups/{id}", + // "flatPath": "userprofiles/{profileId}/creativeGroups/{id}", // "httpMethod": "GET", // "id": "dfareporting.creativeGroups.get", // "parameterOrder": [ @@ -30031,7 +30031,7 @@ func (c *CreativeGroupsGetCall) Do(opts ...googleapi.CallOption) (*CreativeGroup // "type": "string" // } // }, - // "path": "dfareporting/v4/userprofiles/{profileId}/creativeGroups/{id}", + // "path": "userprofiles/{profileId}/creativeGroups/{id}", // "response": { // "$ref": "CreativeGroup" // }, @@ -30103,7 +30103,7 @@ func (c *CreativeGroupsInsertCall) doRequest(alt string) (*http.Response, error) reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v4/userprofiles/{profileId}/creativeGroups") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/creativeGroups") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -30155,7 +30155,7 @@ func (c *CreativeGroupsInsertCall) Do(opts ...googleapi.CallOption) (*CreativeGr return ret, nil // { // "description": "Inserts a new creative group.", - // "flatPath": "dfareporting/v4/userprofiles/{profileId}/creativeGroups", + // "flatPath": "userprofiles/{profileId}/creativeGroups", // "httpMethod": "POST", // "id": "dfareporting.creativeGroups.insert", // "parameterOrder": [ @@ -30170,7 +30170,7 @@ func (c *CreativeGroupsInsertCall) Do(opts ...googleapi.CallOption) (*CreativeGr // "type": "string" // } // }, - // "path": "dfareporting/v4/userprofiles/{profileId}/creativeGroups", + // "path": "userprofiles/{profileId}/creativeGroups", // "request": { // "$ref": "CreativeGroup" // }, @@ -30334,7 +30334,7 @@ func (c *CreativeGroupsListCall) 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, "dfareporting/v4/userprofiles/{profileId}/creativeGroups") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/creativeGroups") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -30386,7 +30386,7 @@ func (c *CreativeGroupsListCall) Do(opts ...googleapi.CallOption) (*CreativeGrou return ret, nil // { // "description": "Retrieves a list of creative groups, possibly filtered. This method supports paging.", - // "flatPath": "dfareporting/v4/userprofiles/{profileId}/creativeGroups", + // "flatPath": "userprofiles/{profileId}/creativeGroups", // "httpMethod": "GET", // "id": "dfareporting.creativeGroups.list", // "parameterOrder": [ @@ -30470,7 +30470,7 @@ func (c *CreativeGroupsListCall) Do(opts ...googleapi.CallOption) (*CreativeGrou // "type": "string" // } // }, - // "path": "dfareporting/v4/userprofiles/{profileId}/creativeGroups", + // "path": "userprofiles/{profileId}/creativeGroups", // "response": { // "$ref": "CreativeGroupsListResponse" // }, @@ -30566,7 +30566,7 @@ func (c *CreativeGroupsPatchCall) doRequest(alt string) (*http.Response, error) reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v4/userprofiles/{profileId}/creativeGroups") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/creativeGroups") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("PATCH", urls, body) if err != nil { @@ -30618,7 +30618,7 @@ func (c *CreativeGroupsPatchCall) Do(opts ...googleapi.CallOption) (*CreativeGro return ret, nil // { // "description": "Updates an existing creative group. This method supports patch semantics.", - // "flatPath": "dfareporting/v4/userprofiles/{profileId}/creativeGroups", + // "flatPath": "userprofiles/{profileId}/creativeGroups", // "httpMethod": "PATCH", // "id": "dfareporting.creativeGroups.patch", // "parameterOrder": [ @@ -30641,7 +30641,7 @@ func (c *CreativeGroupsPatchCall) Do(opts ...googleapi.CallOption) (*CreativeGro // "type": "string" // } // }, - // "path": "dfareporting/v4/userprofiles/{profileId}/creativeGroups", + // "path": "userprofiles/{profileId}/creativeGroups", // "request": { // "$ref": "CreativeGroup" // }, @@ -30716,7 +30716,7 @@ func (c *CreativeGroupsUpdateCall) doRequest(alt string) (*http.Response, error) reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v4/userprofiles/{profileId}/creativeGroups") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/creativeGroups") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("PUT", urls, body) if err != nil { @@ -30768,7 +30768,7 @@ func (c *CreativeGroupsUpdateCall) Do(opts ...googleapi.CallOption) (*CreativeGr return ret, nil // { // "description": "Updates an existing creative group.", - // "flatPath": "dfareporting/v4/userprofiles/{profileId}/creativeGroups", + // "flatPath": "userprofiles/{profileId}/creativeGroups", // "httpMethod": "PUT", // "id": "dfareporting.creativeGroups.update", // "parameterOrder": [ @@ -30783,7 +30783,7 @@ func (c *CreativeGroupsUpdateCall) Do(opts ...googleapi.CallOption) (*CreativeGr // "type": "string" // } // }, - // "path": "dfareporting/v4/userprofiles/{profileId}/creativeGroups", + // "path": "userprofiles/{profileId}/creativeGroups", // "request": { // "$ref": "CreativeGroup" // }, @@ -30868,7 +30868,7 @@ func (c *CreativesGetCall) 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, "dfareporting/v4/userprofiles/{profileId}/creatives/{id}") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/creatives/{id}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -30921,7 +30921,7 @@ func (c *CreativesGetCall) Do(opts ...googleapi.CallOption) (*Creative, error) { return ret, nil // { // "description": "Gets one creative by ID.", - // "flatPath": "dfareporting/v4/userprofiles/{profileId}/creatives/{id}", + // "flatPath": "userprofiles/{profileId}/creatives/{id}", // "httpMethod": "GET", // "id": "dfareporting.creatives.get", // "parameterOrder": [ @@ -30944,7 +30944,7 @@ func (c *CreativesGetCall) Do(opts ...googleapi.CallOption) (*Creative, error) { // "type": "string" // } // }, - // "path": "dfareporting/v4/userprofiles/{profileId}/creatives/{id}", + // "path": "userprofiles/{profileId}/creatives/{id}", // "response": { // "$ref": "Creative" // }, @@ -31016,7 +31016,7 @@ func (c *CreativesInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v4/userprofiles/{profileId}/creatives") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/creatives") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -31068,7 +31068,7 @@ func (c *CreativesInsertCall) Do(opts ...googleapi.CallOption) (*Creative, error return ret, nil // { // "description": "Inserts a new creative.", - // "flatPath": "dfareporting/v4/userprofiles/{profileId}/creatives", + // "flatPath": "userprofiles/{profileId}/creatives", // "httpMethod": "POST", // "id": "dfareporting.creatives.insert", // "parameterOrder": [ @@ -31083,7 +31083,7 @@ func (c *CreativesInsertCall) Do(opts ...googleapi.CallOption) (*Creative, error // "type": "string" // } // }, - // "path": "dfareporting/v4/userprofiles/{profileId}/creatives", + // "path": "userprofiles/{profileId}/creatives", // "request": { // "$ref": "Creative" // }, @@ -31343,7 +31343,7 @@ func (c *CreativesListCall) 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, "dfareporting/v4/userprofiles/{profileId}/creatives") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/creatives") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -31395,7 +31395,7 @@ func (c *CreativesListCall) Do(opts ...googleapi.CallOption) (*CreativesListResp return ret, nil // { // "description": "Retrieves a list of creatives, possibly filtered. This method supports paging.", - // "flatPath": "dfareporting/v4/userprofiles/{profileId}/creatives", + // "flatPath": "userprofiles/{profileId}/creatives", // "httpMethod": "GET", // "id": "dfareporting.creatives.list", // "parameterOrder": [ @@ -31580,7 +31580,7 @@ func (c *CreativesListCall) Do(opts ...googleapi.CallOption) (*CreativesListResp // "type": "string" // } // }, - // "path": "dfareporting/v4/userprofiles/{profileId}/creatives", + // "path": "userprofiles/{profileId}/creatives", // "response": { // "$ref": "CreativesListResponse" // }, @@ -31676,7 +31676,7 @@ func (c *CreativesPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v4/userprofiles/{profileId}/creatives") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/creatives") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("PATCH", urls, body) if err != nil { @@ -31728,7 +31728,7 @@ func (c *CreativesPatchCall) Do(opts ...googleapi.CallOption) (*Creative, error) return ret, nil // { // "description": "Updates an existing creative. This method supports patch semantics.", - // "flatPath": "dfareporting/v4/userprofiles/{profileId}/creatives", + // "flatPath": "userprofiles/{profileId}/creatives", // "httpMethod": "PATCH", // "id": "dfareporting.creatives.patch", // "parameterOrder": [ @@ -31751,7 +31751,7 @@ func (c *CreativesPatchCall) Do(opts ...googleapi.CallOption) (*Creative, error) // "type": "string" // } // }, - // "path": "dfareporting/v4/userprofiles/{profileId}/creatives", + // "path": "userprofiles/{profileId}/creatives", // "request": { // "$ref": "Creative" // }, @@ -31826,7 +31826,7 @@ func (c *CreativesUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v4/userprofiles/{profileId}/creatives") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/creatives") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("PUT", urls, body) if err != nil { @@ -31878,7 +31878,7 @@ func (c *CreativesUpdateCall) Do(opts ...googleapi.CallOption) (*Creative, error return ret, nil // { // "description": "Updates an existing creative.", - // "flatPath": "dfareporting/v4/userprofiles/{profileId}/creatives", + // "flatPath": "userprofiles/{profileId}/creatives", // "httpMethod": "PUT", // "id": "dfareporting.creatives.update", // "parameterOrder": [ @@ -31893,7 +31893,7 @@ func (c *CreativesUpdateCall) Do(opts ...googleapi.CallOption) (*Creative, error // "type": "string" // } // }, - // "path": "dfareporting/v4/userprofiles/{profileId}/creatives", + // "path": "userprofiles/{profileId}/creatives", // "request": { // "$ref": "Creative" // }, @@ -31983,7 +31983,7 @@ func (c *DimensionValuesQueryCall) doRequest(alt string) (*http.Response, error) reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v4/userprofiles/{profileId}/dimensionvalues/query") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/dimensionvalues/query") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -32035,7 +32035,7 @@ func (c *DimensionValuesQueryCall) Do(opts ...googleapi.CallOption) (*DimensionV return ret, nil // { // "description": "Retrieves list of report dimension values for a list of filters.", - // "flatPath": "dfareporting/v4/userprofiles/{profileId}/dimensionvalues/query", + // "flatPath": "userprofiles/{profileId}/dimensionvalues/query", // "httpMethod": "POST", // "id": "dfareporting.dimensionValues.query", // "parameterOrder": [ @@ -32064,7 +32064,7 @@ func (c *DimensionValuesQueryCall) Do(opts ...googleapi.CallOption) (*DimensionV // "type": "string" // } // }, - // "path": "dfareporting/v4/userprofiles/{profileId}/dimensionvalues/query", + // "path": "userprofiles/{profileId}/dimensionvalues/query", // "request": { // "$ref": "DimensionValueRequest" // }, @@ -32170,7 +32170,7 @@ func (c *DirectorySitesGetCall) 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, "dfareporting/v4/userprofiles/{profileId}/directorySites/{id}") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/directorySites/{id}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -32223,7 +32223,7 @@ func (c *DirectorySitesGetCall) Do(opts ...googleapi.CallOption) (*DirectorySite return ret, nil // { // "description": "Gets one directory site by ID.", - // "flatPath": "dfareporting/v4/userprofiles/{profileId}/directorySites/{id}", + // "flatPath": "userprofiles/{profileId}/directorySites/{id}", // "httpMethod": "GET", // "id": "dfareporting.directorySites.get", // "parameterOrder": [ @@ -32246,7 +32246,7 @@ func (c *DirectorySitesGetCall) Do(opts ...googleapi.CallOption) (*DirectorySite // "type": "string" // } // }, - // "path": "dfareporting/v4/userprofiles/{profileId}/directorySites/{id}", + // "path": "userprofiles/{profileId}/directorySites/{id}", // "response": { // "$ref": "DirectorySite" // }, @@ -32318,7 +32318,7 @@ func (c *DirectorySitesInsertCall) doRequest(alt string) (*http.Response, error) reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v4/userprofiles/{profileId}/directorySites") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/directorySites") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -32370,7 +32370,7 @@ func (c *DirectorySitesInsertCall) Do(opts ...googleapi.CallOption) (*DirectoryS return ret, nil // { // "description": "Inserts a new directory site.", - // "flatPath": "dfareporting/v4/userprofiles/{profileId}/directorySites", + // "flatPath": "userprofiles/{profileId}/directorySites", // "httpMethod": "POST", // "id": "dfareporting.directorySites.insert", // "parameterOrder": [ @@ -32385,7 +32385,7 @@ func (c *DirectorySitesInsertCall) Do(opts ...googleapi.CallOption) (*DirectoryS // "type": "string" // } // }, - // "path": "dfareporting/v4/userprofiles/{profileId}/directorySites", + // "path": "userprofiles/{profileId}/directorySites", // "request": { // "$ref": "DirectorySite" // }, @@ -32570,7 +32570,7 @@ func (c *DirectorySitesListCall) 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, "dfareporting/v4/userprofiles/{profileId}/directorySites") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/directorySites") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -32622,7 +32622,7 @@ func (c *DirectorySitesListCall) Do(opts ...googleapi.CallOption) (*DirectorySit return ret, nil // { // "description": "Retrieves a list of directory sites, possibly filtered. This method supports paging.", - // "flatPath": "dfareporting/v4/userprofiles/{profileId}/directorySites", + // "flatPath": "userprofiles/{profileId}/directorySites", // "httpMethod": "GET", // "id": "dfareporting.directorySites.list", // "parameterOrder": [ @@ -32716,7 +32716,7 @@ func (c *DirectorySitesListCall) Do(opts ...googleapi.CallOption) (*DirectorySit // "type": "string" // } // }, - // "path": "dfareporting/v4/userprofiles/{profileId}/directorySites", + // "path": "userprofiles/{profileId}/directorySites", // "response": { // "$ref": "DirectorySitesListResponse" // }, @@ -32813,7 +32813,7 @@ func (c *DynamicTargetingKeysDeleteCall) doRequest(alt string) (*http.Response, var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v4/userprofiles/{profileId}/dynamicTargetingKeys/{objectId}") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/dynamicTargetingKeys/{objectId}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("DELETE", urls, body) if err != nil { @@ -32841,7 +32841,7 @@ func (c *DynamicTargetingKeysDeleteCall) Do(opts ...googleapi.CallOption) error return nil // { // "description": "Deletes an existing dynamic targeting key.", - // "flatPath": "dfareporting/v4/userprofiles/{profileId}/dynamicTargetingKeys/{objectId}", + // "flatPath": "userprofiles/{profileId}/dynamicTargetingKeys/{objectId}", // "httpMethod": "DELETE", // "id": "dfareporting.dynamicTargetingKeys.delete", // "parameterOrder": [ @@ -32890,7 +32890,7 @@ func (c *DynamicTargetingKeysDeleteCall) Do(opts ...googleapi.CallOption) error // "type": "string" // } // }, - // "path": "dfareporting/v4/userprofiles/{profileId}/dynamicTargetingKeys/{objectId}", + // "path": "userprofiles/{profileId}/dynamicTargetingKeys/{objectId}", // "scopes": [ // "https://www.googleapis.com/auth/dfatrafficking" // ] @@ -32963,7 +32963,7 @@ func (c *DynamicTargetingKeysInsertCall) doRequest(alt string) (*http.Response, reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v4/userprofiles/{profileId}/dynamicTargetingKeys") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/dynamicTargetingKeys") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -33015,7 +33015,7 @@ func (c *DynamicTargetingKeysInsertCall) Do(opts ...googleapi.CallOption) (*Dyna return ret, nil // { // "description": "Inserts a new dynamic targeting key. Keys must be created at the advertiser level before being assigned to the advertiser's ads, creatives, or placements. There is a maximum of 1000 keys per advertiser, out of which a maximum of 20 keys can be assigned per ad, creative, or placement.", - // "flatPath": "dfareporting/v4/userprofiles/{profileId}/dynamicTargetingKeys", + // "flatPath": "userprofiles/{profileId}/dynamicTargetingKeys", // "httpMethod": "POST", // "id": "dfareporting.dynamicTargetingKeys.insert", // "parameterOrder": [ @@ -33030,7 +33030,7 @@ func (c *DynamicTargetingKeysInsertCall) Do(opts ...googleapi.CallOption) (*Dyna // "type": "string" // } // }, - // "path": "dfareporting/v4/userprofiles/{profileId}/dynamicTargetingKeys", + // "path": "userprofiles/{profileId}/dynamicTargetingKeys", // "request": { // "$ref": "DynamicTargetingKey" // }, @@ -33147,7 +33147,7 @@ func (c *DynamicTargetingKeysListCall) doRequest(alt string) (*http.Response, er var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v4/userprofiles/{profileId}/dynamicTargetingKeys") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/dynamicTargetingKeys") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -33199,7 +33199,7 @@ func (c *DynamicTargetingKeysListCall) Do(opts ...googleapi.CallOption) (*Dynami return ret, nil // { // "description": "Retrieves a list of dynamic targeting keys.", - // "flatPath": "dfareporting/v4/userprofiles/{profileId}/dynamicTargetingKeys", + // "flatPath": "userprofiles/{profileId}/dynamicTargetingKeys", // "httpMethod": "GET", // "id": "dfareporting.dynamicTargetingKeys.list", // "parameterOrder": [ @@ -33249,7 +33249,7 @@ func (c *DynamicTargetingKeysListCall) Do(opts ...googleapi.CallOption) (*Dynami // "type": "string" // } // }, - // "path": "dfareporting/v4/userprofiles/{profileId}/dynamicTargetingKeys", + // "path": "userprofiles/{profileId}/dynamicTargetingKeys", // "response": { // "$ref": "DynamicTargetingKeysListResponse" // }, @@ -33317,7 +33317,7 @@ func (c *EventTagsDeleteCall) 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, "dfareporting/v4/userprofiles/{profileId}/eventTags/{id}") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/eventTags/{id}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("DELETE", urls, body) if err != nil { @@ -33345,7 +33345,7 @@ func (c *EventTagsDeleteCall) Do(opts ...googleapi.CallOption) error { return nil // { // "description": "Deletes an existing event tag.", - // "flatPath": "dfareporting/v4/userprofiles/{profileId}/eventTags/{id}", + // "flatPath": "userprofiles/{profileId}/eventTags/{id}", // "httpMethod": "DELETE", // "id": "dfareporting.eventTags.delete", // "parameterOrder": [ @@ -33368,7 +33368,7 @@ func (c *EventTagsDeleteCall) Do(opts ...googleapi.CallOption) error { // "type": "string" // } // }, - // "path": "dfareporting/v4/userprofiles/{profileId}/eventTags/{id}", + // "path": "userprofiles/{profileId}/eventTags/{id}", // "scopes": [ // "https://www.googleapis.com/auth/dfatrafficking" // ] @@ -33447,7 +33447,7 @@ func (c *EventTagsGetCall) 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, "dfareporting/v4/userprofiles/{profileId}/eventTags/{id}") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/eventTags/{id}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -33500,7 +33500,7 @@ func (c *EventTagsGetCall) Do(opts ...googleapi.CallOption) (*EventTag, error) { return ret, nil // { // "description": "Gets one event tag by ID.", - // "flatPath": "dfareporting/v4/userprofiles/{profileId}/eventTags/{id}", + // "flatPath": "userprofiles/{profileId}/eventTags/{id}", // "httpMethod": "GET", // "id": "dfareporting.eventTags.get", // "parameterOrder": [ @@ -33523,7 +33523,7 @@ func (c *EventTagsGetCall) Do(opts ...googleapi.CallOption) (*EventTag, error) { // "type": "string" // } // }, - // "path": "dfareporting/v4/userprofiles/{profileId}/eventTags/{id}", + // "path": "userprofiles/{profileId}/eventTags/{id}", // "response": { // "$ref": "EventTag" // }, @@ -33595,7 +33595,7 @@ func (c *EventTagsInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v4/userprofiles/{profileId}/eventTags") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/eventTags") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -33647,7 +33647,7 @@ func (c *EventTagsInsertCall) Do(opts ...googleapi.CallOption) (*EventTag, error return ret, nil // { // "description": "Inserts a new event tag.", - // "flatPath": "dfareporting/v4/userprofiles/{profileId}/eventTags", + // "flatPath": "userprofiles/{profileId}/eventTags", // "httpMethod": "POST", // "id": "dfareporting.eventTags.insert", // "parameterOrder": [ @@ -33662,7 +33662,7 @@ func (c *EventTagsInsertCall) Do(opts ...googleapi.CallOption) (*EventTag, error // "type": "string" // } // }, - // "path": "dfareporting/v4/userprofiles/{profileId}/eventTags", + // "path": "userprofiles/{profileId}/eventTags", // "request": { // "$ref": "EventTag" // }, @@ -33855,7 +33855,7 @@ func (c *EventTagsListCall) 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, "dfareporting/v4/userprofiles/{profileId}/eventTags") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/eventTags") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -33907,7 +33907,7 @@ func (c *EventTagsListCall) Do(opts ...googleapi.CallOption) (*EventTagsListResp return ret, nil // { // "description": "Retrieves a list of event tags, possibly filtered.", - // "flatPath": "dfareporting/v4/userprofiles/{profileId}/eventTags", + // "flatPath": "userprofiles/{profileId}/eventTags", // "httpMethod": "GET", // "id": "dfareporting.eventTags.list", // "parameterOrder": [ @@ -34006,7 +34006,7 @@ func (c *EventTagsListCall) Do(opts ...googleapi.CallOption) (*EventTagsListResp // "type": "string" // } // }, - // "path": "dfareporting/v4/userprofiles/{profileId}/eventTags", + // "path": "userprofiles/{profileId}/eventTags", // "response": { // "$ref": "EventTagsListResponse" // }, @@ -34081,7 +34081,7 @@ func (c *EventTagsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v4/userprofiles/{profileId}/eventTags") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/eventTags") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("PATCH", urls, body) if err != nil { @@ -34133,7 +34133,7 @@ func (c *EventTagsPatchCall) Do(opts ...googleapi.CallOption) (*EventTag, error) return ret, nil // { // "description": "Updates an existing event tag. This method supports patch semantics.", - // "flatPath": "dfareporting/v4/userprofiles/{profileId}/eventTags", + // "flatPath": "userprofiles/{profileId}/eventTags", // "httpMethod": "PATCH", // "id": "dfareporting.eventTags.patch", // "parameterOrder": [ @@ -34156,7 +34156,7 @@ func (c *EventTagsPatchCall) Do(opts ...googleapi.CallOption) (*EventTag, error) // "type": "string" // } // }, - // "path": "dfareporting/v4/userprofiles/{profileId}/eventTags", + // "path": "userprofiles/{profileId}/eventTags", // "request": { // "$ref": "EventTag" // }, @@ -34231,7 +34231,7 @@ func (c *EventTagsUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v4/userprofiles/{profileId}/eventTags") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/eventTags") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("PUT", urls, body) if err != nil { @@ -34283,7 +34283,7 @@ func (c *EventTagsUpdateCall) Do(opts ...googleapi.CallOption) (*EventTag, error return ret, nil // { // "description": "Updates an existing event tag.", - // "flatPath": "dfareporting/v4/userprofiles/{profileId}/eventTags", + // "flatPath": "userprofiles/{profileId}/eventTags", // "httpMethod": "PUT", // "id": "dfareporting.eventTags.update", // "parameterOrder": [ @@ -34298,7 +34298,7 @@ func (c *EventTagsUpdateCall) Do(opts ...googleapi.CallOption) (*EventTag, error // "type": "string" // } // }, - // "path": "dfareporting/v4/userprofiles/{profileId}/eventTags", + // "path": "userprofiles/{profileId}/eventTags", // "request": { // "$ref": "EventTag" // }, @@ -34384,7 +34384,7 @@ func (c *FilesGetCall) 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, "dfareporting/v4/reports/{reportId}/files/{fileId}") + urls := googleapi.ResolveRelative(c.s.BasePath, "reports/{reportId}/files/{fileId}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -34453,7 +34453,7 @@ func (c *FilesGetCall) Do(opts ...googleapi.CallOption) (*File, error) { return ret, nil // { // "description": "Retrieves a report file by its report ID and file ID. This method supports media download.", - // "flatPath": "dfareporting/v4/reports/{reportId}/files/{fileId}", + // "flatPath": "reports/{reportId}/files/{fileId}", // "httpMethod": "GET", // "id": "dfareporting.files.get", // "parameterOrder": [ @@ -34476,7 +34476,7 @@ func (c *FilesGetCall) Do(opts ...googleapi.CallOption) (*File, error) { // "type": "string" // } // }, - // "path": "dfareporting/v4/reports/{reportId}/files/{fileId}", + // "path": "reports/{reportId}/files/{fileId}", // "response": { // "$ref": "File" // }, @@ -34607,7 +34607,7 @@ func (c *FilesListCall) 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, "dfareporting/v4/userprofiles/{profileId}/files") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/files") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -34659,7 +34659,7 @@ func (c *FilesListCall) Do(opts ...googleapi.CallOption) (*FileList, error) { return ret, nil // { // "description": "Lists files for a user profile.", - // "flatPath": "dfareporting/v4/userprofiles/{profileId}/files", + // "flatPath": "userprofiles/{profileId}/files", // "httpMethod": "GET", // "id": "dfareporting.files.list", // "parameterOrder": [ @@ -34732,7 +34732,7 @@ func (c *FilesListCall) Do(opts ...googleapi.CallOption) (*FileList, error) { // "type": "string" // } // }, - // "path": "dfareporting/v4/userprofiles/{profileId}/files", + // "path": "userprofiles/{profileId}/files", // "response": { // "$ref": "FileList" // }, @@ -34821,7 +34821,7 @@ func (c *FloodlightActivitiesDeleteCall) doRequest(alt string) (*http.Response, var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v4/userprofiles/{profileId}/floodlightActivities/{id}") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/floodlightActivities/{id}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("DELETE", urls, body) if err != nil { @@ -34849,7 +34849,7 @@ func (c *FloodlightActivitiesDeleteCall) Do(opts ...googleapi.CallOption) error return nil // { // "description": "Deletes an existing floodlight activity.", - // "flatPath": "dfareporting/v4/userprofiles/{profileId}/floodlightActivities/{id}", + // "flatPath": "userprofiles/{profileId}/floodlightActivities/{id}", // "httpMethod": "DELETE", // "id": "dfareporting.floodlightActivities.delete", // "parameterOrder": [ @@ -34872,7 +34872,7 @@ func (c *FloodlightActivitiesDeleteCall) Do(opts ...googleapi.CallOption) error // "type": "string" // } // }, - // "path": "dfareporting/v4/userprofiles/{profileId}/floodlightActivities/{id}", + // "path": "userprofiles/{profileId}/floodlightActivities/{id}", // "scopes": [ // "https://www.googleapis.com/auth/dfatrafficking" // ] @@ -34942,7 +34942,7 @@ func (c *FloodlightActivitiesGeneratetagCall) doRequest(alt string) (*http.Respo var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v4/userprofiles/{profileId}/floodlightActivities/generatetag") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/floodlightActivities/generatetag") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -34995,7 +34995,7 @@ func (c *FloodlightActivitiesGeneratetagCall) Do(opts ...googleapi.CallOption) ( return ret, nil // { // "description": "Generates a tag for a floodlight activity.", - // "flatPath": "dfareporting/v4/userprofiles/{profileId}/floodlightActivities/generatetag", + // "flatPath": "userprofiles/{profileId}/floodlightActivities/generatetag", // "httpMethod": "POST", // "id": "dfareporting.floodlightActivities.generatetag", // "parameterOrder": [ @@ -35016,7 +35016,7 @@ func (c *FloodlightActivitiesGeneratetagCall) Do(opts ...googleapi.CallOption) ( // "type": "string" // } // }, - // "path": "dfareporting/v4/userprofiles/{profileId}/floodlightActivities/generatetag", + // "path": "userprofiles/{profileId}/floodlightActivities/generatetag", // "response": { // "$ref": "FloodlightActivitiesGenerateTagResponse" // }, @@ -35098,7 +35098,7 @@ func (c *FloodlightActivitiesGetCall) doRequest(alt string) (*http.Response, err var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v4/userprofiles/{profileId}/floodlightActivities/{id}") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/floodlightActivities/{id}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -35151,7 +35151,7 @@ func (c *FloodlightActivitiesGetCall) Do(opts ...googleapi.CallOption) (*Floodli return ret, nil // { // "description": "Gets one floodlight activity by ID.", - // "flatPath": "dfareporting/v4/userprofiles/{profileId}/floodlightActivities/{id}", + // "flatPath": "userprofiles/{profileId}/floodlightActivities/{id}", // "httpMethod": "GET", // "id": "dfareporting.floodlightActivities.get", // "parameterOrder": [ @@ -35174,7 +35174,7 @@ func (c *FloodlightActivitiesGetCall) Do(opts ...googleapi.CallOption) (*Floodli // "type": "string" // } // }, - // "path": "dfareporting/v4/userprofiles/{profileId}/floodlightActivities/{id}", + // "path": "userprofiles/{profileId}/floodlightActivities/{id}", // "response": { // "$ref": "FloodlightActivity" // }, @@ -35246,7 +35246,7 @@ func (c *FloodlightActivitiesInsertCall) doRequest(alt string) (*http.Response, reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v4/userprofiles/{profileId}/floodlightActivities") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/floodlightActivities") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -35298,7 +35298,7 @@ func (c *FloodlightActivitiesInsertCall) Do(opts ...googleapi.CallOption) (*Floo return ret, nil // { // "description": "Inserts a new floodlight activity.", - // "flatPath": "dfareporting/v4/userprofiles/{profileId}/floodlightActivities", + // "flatPath": "userprofiles/{profileId}/floodlightActivities", // "httpMethod": "POST", // "id": "dfareporting.floodlightActivities.insert", // "parameterOrder": [ @@ -35313,7 +35313,7 @@ func (c *FloodlightActivitiesInsertCall) Do(opts ...googleapi.CallOption) (*Floo // "type": "string" // } // }, - // "path": "dfareporting/v4/userprofiles/{profileId}/floodlightActivities", + // "path": "userprofiles/{profileId}/floodlightActivities", // "request": { // "$ref": "FloodlightActivity" // }, @@ -35526,7 +35526,7 @@ func (c *FloodlightActivitiesListCall) doRequest(alt string) (*http.Response, er var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v4/userprofiles/{profileId}/floodlightActivities") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/floodlightActivities") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -35578,7 +35578,7 @@ func (c *FloodlightActivitiesListCall) Do(opts ...googleapi.CallOption) (*Floodl return ret, nil // { // "description": "Retrieves a list of floodlight activities, possibly filtered. This method supports paging.", - // "flatPath": "dfareporting/v4/userprofiles/{profileId}/floodlightActivities", + // "flatPath": "userprofiles/{profileId}/floodlightActivities", // "httpMethod": "GET", // "id": "dfareporting.floodlightActivities.list", // "parameterOrder": [ @@ -35694,7 +35694,7 @@ func (c *FloodlightActivitiesListCall) Do(opts ...googleapi.CallOption) (*Floodl // "type": "string" // } // }, - // "path": "dfareporting/v4/userprofiles/{profileId}/floodlightActivities", + // "path": "userprofiles/{profileId}/floodlightActivities", // "response": { // "$ref": "FloodlightActivitiesListResponse" // }, @@ -35790,7 +35790,7 @@ func (c *FloodlightActivitiesPatchCall) doRequest(alt string) (*http.Response, e reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v4/userprofiles/{profileId}/floodlightActivities") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/floodlightActivities") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("PATCH", urls, body) if err != nil { @@ -35842,7 +35842,7 @@ func (c *FloodlightActivitiesPatchCall) Do(opts ...googleapi.CallOption) (*Flood return ret, nil // { // "description": "Updates an existing floodlight activity. This method supports patch semantics.", - // "flatPath": "dfareporting/v4/userprofiles/{profileId}/floodlightActivities", + // "flatPath": "userprofiles/{profileId}/floodlightActivities", // "httpMethod": "PATCH", // "id": "dfareporting.floodlightActivities.patch", // "parameterOrder": [ @@ -35865,7 +35865,7 @@ func (c *FloodlightActivitiesPatchCall) Do(opts ...googleapi.CallOption) (*Flood // "type": "string" // } // }, - // "path": "dfareporting/v4/userprofiles/{profileId}/floodlightActivities", + // "path": "userprofiles/{profileId}/floodlightActivities", // "request": { // "$ref": "FloodlightActivity" // }, @@ -35940,7 +35940,7 @@ func (c *FloodlightActivitiesUpdateCall) doRequest(alt string) (*http.Response, reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v4/userprofiles/{profileId}/floodlightActivities") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/floodlightActivities") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("PUT", urls, body) if err != nil { @@ -35992,7 +35992,7 @@ func (c *FloodlightActivitiesUpdateCall) Do(opts ...googleapi.CallOption) (*Floo return ret, nil // { // "description": "Updates an existing floodlight activity.", - // "flatPath": "dfareporting/v4/userprofiles/{profileId}/floodlightActivities", + // "flatPath": "userprofiles/{profileId}/floodlightActivities", // "httpMethod": "PUT", // "id": "dfareporting.floodlightActivities.update", // "parameterOrder": [ @@ -36007,7 +36007,7 @@ func (c *FloodlightActivitiesUpdateCall) Do(opts ...googleapi.CallOption) (*Floo // "type": "string" // } // }, - // "path": "dfareporting/v4/userprofiles/{profileId}/floodlightActivities", + // "path": "userprofiles/{profileId}/floodlightActivities", // "request": { // "$ref": "FloodlightActivity" // }, @@ -36092,7 +36092,7 @@ func (c *FloodlightActivityGroupsGetCall) doRequest(alt string) (*http.Response, var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v4/userprofiles/{profileId}/floodlightActivityGroups/{id}") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/floodlightActivityGroups/{id}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -36145,7 +36145,7 @@ func (c *FloodlightActivityGroupsGetCall) Do(opts ...googleapi.CallOption) (*Flo return ret, nil // { // "description": "Gets one floodlight activity group by ID.", - // "flatPath": "dfareporting/v4/userprofiles/{profileId}/floodlightActivityGroups/{id}", + // "flatPath": "userprofiles/{profileId}/floodlightActivityGroups/{id}", // "httpMethod": "GET", // "id": "dfareporting.floodlightActivityGroups.get", // "parameterOrder": [ @@ -36168,7 +36168,7 @@ func (c *FloodlightActivityGroupsGetCall) Do(opts ...googleapi.CallOption) (*Flo // "type": "string" // } // }, - // "path": "dfareporting/v4/userprofiles/{profileId}/floodlightActivityGroups/{id}", + // "path": "userprofiles/{profileId}/floodlightActivityGroups/{id}", // "response": { // "$ref": "FloodlightActivityGroup" // }, @@ -36240,7 +36240,7 @@ func (c *FloodlightActivityGroupsInsertCall) doRequest(alt string) (*http.Respon reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v4/userprofiles/{profileId}/floodlightActivityGroups") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/floodlightActivityGroups") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -36292,7 +36292,7 @@ func (c *FloodlightActivityGroupsInsertCall) Do(opts ...googleapi.CallOption) (* return ret, nil // { // "description": "Inserts a new floodlight activity group.", - // "flatPath": "dfareporting/v4/userprofiles/{profileId}/floodlightActivityGroups", + // "flatPath": "userprofiles/{profileId}/floodlightActivityGroups", // "httpMethod": "POST", // "id": "dfareporting.floodlightActivityGroups.insert", // "parameterOrder": [ @@ -36307,7 +36307,7 @@ func (c *FloodlightActivityGroupsInsertCall) Do(opts ...googleapi.CallOption) (* // "type": "string" // } // }, - // "path": "dfareporting/v4/userprofiles/{profileId}/floodlightActivityGroups", + // "path": "userprofiles/{profileId}/floodlightActivityGroups", // "request": { // "$ref": "FloodlightActivityGroup" // }, @@ -36485,7 +36485,7 @@ func (c *FloodlightActivityGroupsListCall) doRequest(alt string) (*http.Response var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v4/userprofiles/{profileId}/floodlightActivityGroups") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/floodlightActivityGroups") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -36538,7 +36538,7 @@ func (c *FloodlightActivityGroupsListCall) Do(opts ...googleapi.CallOption) (*Fl return ret, nil // { // "description": "Retrieves a list of floodlight activity groups, possibly filtered. This method supports paging.", - // "flatPath": "dfareporting/v4/userprofiles/{profileId}/floodlightActivityGroups", + // "flatPath": "userprofiles/{profileId}/floodlightActivityGroups", // "httpMethod": "GET", // "id": "dfareporting.floodlightActivityGroups.list", // "parameterOrder": [ @@ -36632,7 +36632,7 @@ func (c *FloodlightActivityGroupsListCall) Do(opts ...googleapi.CallOption) (*Fl // "type": "string" // } // }, - // "path": "dfareporting/v4/userprofiles/{profileId}/floodlightActivityGroups", + // "path": "userprofiles/{profileId}/floodlightActivityGroups", // "response": { // "$ref": "FloodlightActivityGroupsListResponse" // }, @@ -36728,7 +36728,7 @@ func (c *FloodlightActivityGroupsPatchCall) doRequest(alt string) (*http.Respons reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v4/userprofiles/{profileId}/floodlightActivityGroups") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/floodlightActivityGroups") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("PATCH", urls, body) if err != nil { @@ -36780,7 +36780,7 @@ func (c *FloodlightActivityGroupsPatchCall) Do(opts ...googleapi.CallOption) (*F return ret, nil // { // "description": "Updates an existing floodlight activity group. This method supports patch semantics.", - // "flatPath": "dfareporting/v4/userprofiles/{profileId}/floodlightActivityGroups", + // "flatPath": "userprofiles/{profileId}/floodlightActivityGroups", // "httpMethod": "PATCH", // "id": "dfareporting.floodlightActivityGroups.patch", // "parameterOrder": [ @@ -36803,7 +36803,7 @@ func (c *FloodlightActivityGroupsPatchCall) Do(opts ...googleapi.CallOption) (*F // "type": "string" // } // }, - // "path": "dfareporting/v4/userprofiles/{profileId}/floodlightActivityGroups", + // "path": "userprofiles/{profileId}/floodlightActivityGroups", // "request": { // "$ref": "FloodlightActivityGroup" // }, @@ -36878,7 +36878,7 @@ func (c *FloodlightActivityGroupsUpdateCall) doRequest(alt string) (*http.Respon reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v4/userprofiles/{profileId}/floodlightActivityGroups") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/floodlightActivityGroups") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("PUT", urls, body) if err != nil { @@ -36930,7 +36930,7 @@ func (c *FloodlightActivityGroupsUpdateCall) Do(opts ...googleapi.CallOption) (* return ret, nil // { // "description": "Updates an existing floodlight activity group.", - // "flatPath": "dfareporting/v4/userprofiles/{profileId}/floodlightActivityGroups", + // "flatPath": "userprofiles/{profileId}/floodlightActivityGroups", // "httpMethod": "PUT", // "id": "dfareporting.floodlightActivityGroups.update", // "parameterOrder": [ @@ -36945,7 +36945,7 @@ func (c *FloodlightActivityGroupsUpdateCall) Do(opts ...googleapi.CallOption) (* // "type": "string" // } // }, - // "path": "dfareporting/v4/userprofiles/{profileId}/floodlightActivityGroups", + // "path": "userprofiles/{profileId}/floodlightActivityGroups", // "request": { // "$ref": "FloodlightActivityGroup" // }, @@ -37030,7 +37030,7 @@ func (c *FloodlightConfigurationsGetCall) doRequest(alt string) (*http.Response, var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v4/userprofiles/{profileId}/floodlightConfigurations/{id}") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/floodlightConfigurations/{id}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -37083,7 +37083,7 @@ func (c *FloodlightConfigurationsGetCall) Do(opts ...googleapi.CallOption) (*Flo return ret, nil // { // "description": "Gets one floodlight configuration by ID.", - // "flatPath": "dfareporting/v4/userprofiles/{profileId}/floodlightConfigurations/{id}", + // "flatPath": "userprofiles/{profileId}/floodlightConfigurations/{id}", // "httpMethod": "GET", // "id": "dfareporting.floodlightConfigurations.get", // "parameterOrder": [ @@ -37106,7 +37106,7 @@ func (c *FloodlightConfigurationsGetCall) Do(opts ...googleapi.CallOption) (*Flo // "type": "string" // } // }, - // "path": "dfareporting/v4/userprofiles/{profileId}/floodlightConfigurations/{id}", + // "path": "userprofiles/{profileId}/floodlightConfigurations/{id}", // "response": { // "$ref": "FloodlightConfiguration" // }, @@ -37198,7 +37198,7 @@ func (c *FloodlightConfigurationsListCall) doRequest(alt string) (*http.Response var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v4/userprofiles/{profileId}/floodlightConfigurations") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/floodlightConfigurations") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -37251,7 +37251,7 @@ func (c *FloodlightConfigurationsListCall) Do(opts ...googleapi.CallOption) (*Fl return ret, nil // { // "description": "Retrieves a list of floodlight configurations, possibly filtered.", - // "flatPath": "dfareporting/v4/userprofiles/{profileId}/floodlightConfigurations", + // "flatPath": "userprofiles/{profileId}/floodlightConfigurations", // "httpMethod": "GET", // "id": "dfareporting.floodlightConfigurations.list", // "parameterOrder": [ @@ -37273,7 +37273,7 @@ func (c *FloodlightConfigurationsListCall) Do(opts ...googleapi.CallOption) (*Fl // "type": "string" // } // }, - // "path": "dfareporting/v4/userprofiles/{profileId}/floodlightConfigurations", + // "path": "userprofiles/{profileId}/floodlightConfigurations", // "response": { // "$ref": "FloodlightConfigurationsListResponse" // }, @@ -37348,7 +37348,7 @@ func (c *FloodlightConfigurationsPatchCall) doRequest(alt string) (*http.Respons reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v4/userprofiles/{profileId}/floodlightConfigurations") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/floodlightConfigurations") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("PATCH", urls, body) if err != nil { @@ -37400,7 +37400,7 @@ func (c *FloodlightConfigurationsPatchCall) Do(opts ...googleapi.CallOption) (*F return ret, nil // { // "description": "Updates an existing floodlight configuration. This method supports patch semantics.", - // "flatPath": "dfareporting/v4/userprofiles/{profileId}/floodlightConfigurations", + // "flatPath": "userprofiles/{profileId}/floodlightConfigurations", // "httpMethod": "PATCH", // "id": "dfareporting.floodlightConfigurations.patch", // "parameterOrder": [ @@ -37423,7 +37423,7 @@ func (c *FloodlightConfigurationsPatchCall) Do(opts ...googleapi.CallOption) (*F // "type": "string" // } // }, - // "path": "dfareporting/v4/userprofiles/{profileId}/floodlightConfigurations", + // "path": "userprofiles/{profileId}/floodlightConfigurations", // "request": { // "$ref": "FloodlightConfiguration" // }, @@ -37498,7 +37498,7 @@ func (c *FloodlightConfigurationsUpdateCall) doRequest(alt string) (*http.Respon reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v4/userprofiles/{profileId}/floodlightConfigurations") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/floodlightConfigurations") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("PUT", urls, body) if err != nil { @@ -37550,7 +37550,7 @@ func (c *FloodlightConfigurationsUpdateCall) Do(opts ...googleapi.CallOption) (* return ret, nil // { // "description": "Updates an existing floodlight configuration.", - // "flatPath": "dfareporting/v4/userprofiles/{profileId}/floodlightConfigurations", + // "flatPath": "userprofiles/{profileId}/floodlightConfigurations", // "httpMethod": "PUT", // "id": "dfareporting.floodlightConfigurations.update", // "parameterOrder": [ @@ -37565,7 +37565,7 @@ func (c *FloodlightConfigurationsUpdateCall) Do(opts ...googleapi.CallOption) (* // "type": "string" // } // }, - // "path": "dfareporting/v4/userprofiles/{profileId}/floodlightConfigurations", + // "path": "userprofiles/{profileId}/floodlightConfigurations", // "request": { // "$ref": "FloodlightConfiguration" // }, @@ -37653,7 +37653,7 @@ func (c *InventoryItemsGetCall) 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, "dfareporting/v4/userprofiles/{profileId}/projects/{projectId}/inventoryItems/{id}") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/projects/{projectId}/inventoryItems/{id}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -37707,7 +37707,7 @@ func (c *InventoryItemsGetCall) Do(opts ...googleapi.CallOption) (*InventoryItem return ret, nil // { // "description": "Gets one inventory item by ID.", - // "flatPath": "dfareporting/v4/userprofiles/{profileId}/projects/{projectId}/inventoryItems/{id}", + // "flatPath": "userprofiles/{profileId}/projects/{projectId}/inventoryItems/{id}", // "httpMethod": "GET", // "id": "dfareporting.inventoryItems.get", // "parameterOrder": [ @@ -37738,7 +37738,7 @@ func (c *InventoryItemsGetCall) Do(opts ...googleapi.CallOption) (*InventoryItem // "type": "string" // } // }, - // "path": "dfareporting/v4/userprofiles/{profileId}/projects/{projectId}/inventoryItems/{id}", + // "path": "userprofiles/{profileId}/projects/{projectId}/inventoryItems/{id}", // "response": { // "$ref": "InventoryItem" // }, @@ -37911,7 +37911,7 @@ func (c *InventoryItemsListCall) 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, "dfareporting/v4/userprofiles/{profileId}/projects/{projectId}/inventoryItems") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/projects/{projectId}/inventoryItems") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -37964,7 +37964,7 @@ func (c *InventoryItemsListCall) Do(opts ...googleapi.CallOption) (*InventoryIte return ret, nil // { // "description": "Retrieves a list of inventory items, possibly filtered. This method supports paging.", - // "flatPath": "dfareporting/v4/userprofiles/{profileId}/projects/{projectId}/inventoryItems", + // "flatPath": "userprofiles/{profileId}/projects/{projectId}/inventoryItems", // "httpMethod": "GET", // "id": "dfareporting.inventoryItems.list", // "parameterOrder": [ @@ -38068,7 +38068,7 @@ func (c *InventoryItemsListCall) Do(opts ...googleapi.CallOption) (*InventoryIte // "type": "string" // } // }, - // "path": "dfareporting/v4/userprofiles/{profileId}/projects/{projectId}/inventoryItems", + // "path": "userprofiles/{profileId}/projects/{projectId}/inventoryItems", // "response": { // "$ref": "InventoryItemsListResponse" // }, @@ -38168,7 +38168,7 @@ func (c *LanguagesListCall) 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, "dfareporting/v4/userprofiles/{profileId}/languages") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/languages") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -38220,7 +38220,7 @@ func (c *LanguagesListCall) Do(opts ...googleapi.CallOption) (*LanguagesListResp return ret, nil // { // "description": "Retrieves a list of languages.", - // "flatPath": "dfareporting/v4/userprofiles/{profileId}/languages", + // "flatPath": "userprofiles/{profileId}/languages", // "httpMethod": "GET", // "id": "dfareporting.languages.list", // "parameterOrder": [ @@ -38235,7 +38235,7 @@ func (c *LanguagesListCall) Do(opts ...googleapi.CallOption) (*LanguagesListResp // "type": "string" // } // }, - // "path": "dfareporting/v4/userprofiles/{profileId}/languages", + // "path": "userprofiles/{profileId}/languages", // "response": { // "$ref": "LanguagesListResponse" // }, @@ -38314,7 +38314,7 @@ func (c *MetrosListCall) 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, "dfareporting/v4/userprofiles/{profileId}/metros") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/metros") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -38366,7 +38366,7 @@ func (c *MetrosListCall) Do(opts ...googleapi.CallOption) (*MetrosListResponse, return ret, nil // { // "description": "Retrieves a list of metros.", - // "flatPath": "dfareporting/v4/userprofiles/{profileId}/metros", + // "flatPath": "userprofiles/{profileId}/metros", // "httpMethod": "GET", // "id": "dfareporting.metros.list", // "parameterOrder": [ @@ -38381,7 +38381,7 @@ func (c *MetrosListCall) Do(opts ...googleapi.CallOption) (*MetrosListResponse, // "type": "string" // } // }, - // "path": "dfareporting/v4/userprofiles/{profileId}/metros", + // "path": "userprofiles/{profileId}/metros", // "response": { // "$ref": "MetrosListResponse" // }, @@ -38463,7 +38463,7 @@ func (c *MobileAppsGetCall) 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, "dfareporting/v4/userprofiles/{profileId}/mobileApps/{id}") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/mobileApps/{id}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -38516,7 +38516,7 @@ func (c *MobileAppsGetCall) Do(opts ...googleapi.CallOption) (*MobileApp, error) return ret, nil // { // "description": "Gets one mobile app by ID.", - // "flatPath": "dfareporting/v4/userprofiles/{profileId}/mobileApps/{id}", + // "flatPath": "userprofiles/{profileId}/mobileApps/{id}", // "httpMethod": "GET", // "id": "dfareporting.mobileApps.get", // "parameterOrder": [ @@ -38538,7 +38538,7 @@ func (c *MobileAppsGetCall) Do(opts ...googleapi.CallOption) (*MobileApp, error) // "type": "string" // } // }, - // "path": "dfareporting/v4/userprofiles/{profileId}/mobileApps/{id}", + // "path": "userprofiles/{profileId}/mobileApps/{id}", // "response": { // "$ref": "MobileApp" // }, @@ -38671,7 +38671,7 @@ func (c *MobileAppsListCall) 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, "dfareporting/v4/userprofiles/{profileId}/mobileApps") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/mobileApps") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -38723,7 +38723,7 @@ func (c *MobileAppsListCall) Do(opts ...googleapi.CallOption) (*MobileAppsListRe return ret, nil // { // "description": "Retrieves list of available mobile apps.", - // "flatPath": "dfareporting/v4/userprofiles/{profileId}/mobileApps", + // "flatPath": "userprofiles/{profileId}/mobileApps", // "httpMethod": "GET", // "id": "dfareporting.mobileApps.list", // "parameterOrder": [ @@ -38795,7 +38795,7 @@ func (c *MobileAppsListCall) Do(opts ...googleapi.CallOption) (*MobileAppsListRe // "type": "string" // } // }, - // "path": "dfareporting/v4/userprofiles/{profileId}/mobileApps", + // "path": "userprofiles/{profileId}/mobileApps", // "response": { // "$ref": "MobileAppsListResponse" // }, @@ -38898,7 +38898,7 @@ func (c *MobileCarriersGetCall) 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, "dfareporting/v4/userprofiles/{profileId}/mobileCarriers/{id}") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/mobileCarriers/{id}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -38951,7 +38951,7 @@ func (c *MobileCarriersGetCall) Do(opts ...googleapi.CallOption) (*MobileCarrier return ret, nil // { // "description": "Gets one mobile carrier by ID.", - // "flatPath": "dfareporting/v4/userprofiles/{profileId}/mobileCarriers/{id}", + // "flatPath": "userprofiles/{profileId}/mobileCarriers/{id}", // "httpMethod": "GET", // "id": "dfareporting.mobileCarriers.get", // "parameterOrder": [ @@ -38974,7 +38974,7 @@ func (c *MobileCarriersGetCall) Do(opts ...googleapi.CallOption) (*MobileCarrier // "type": "string" // } // }, - // "path": "dfareporting/v4/userprofiles/{profileId}/mobileCarriers/{id}", + // "path": "userprofiles/{profileId}/mobileCarriers/{id}", // "response": { // "$ref": "MobileCarrier" // }, @@ -39053,7 +39053,7 @@ func (c *MobileCarriersListCall) 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, "dfareporting/v4/userprofiles/{profileId}/mobileCarriers") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/mobileCarriers") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -39105,7 +39105,7 @@ func (c *MobileCarriersListCall) Do(opts ...googleapi.CallOption) (*MobileCarrie return ret, nil // { // "description": "Retrieves a list of mobile carriers.", - // "flatPath": "dfareporting/v4/userprofiles/{profileId}/mobileCarriers", + // "flatPath": "userprofiles/{profileId}/mobileCarriers", // "httpMethod": "GET", // "id": "dfareporting.mobileCarriers.list", // "parameterOrder": [ @@ -39120,7 +39120,7 @@ func (c *MobileCarriersListCall) Do(opts ...googleapi.CallOption) (*MobileCarrie // "type": "string" // } // }, - // "path": "dfareporting/v4/userprofiles/{profileId}/mobileCarriers", + // "path": "userprofiles/{profileId}/mobileCarriers", // "response": { // "$ref": "MobileCarriersListResponse" // }, @@ -39202,7 +39202,7 @@ func (c *OperatingSystemVersionsGetCall) doRequest(alt string) (*http.Response, var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v4/userprofiles/{profileId}/operatingSystemVersions/{id}") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/operatingSystemVersions/{id}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -39255,7 +39255,7 @@ func (c *OperatingSystemVersionsGetCall) Do(opts ...googleapi.CallOption) (*Oper return ret, nil // { // "description": "Gets one operating system version by ID.", - // "flatPath": "dfareporting/v4/userprofiles/{profileId}/operatingSystemVersions/{id}", + // "flatPath": "userprofiles/{profileId}/operatingSystemVersions/{id}", // "httpMethod": "GET", // "id": "dfareporting.operatingSystemVersions.get", // "parameterOrder": [ @@ -39278,7 +39278,7 @@ func (c *OperatingSystemVersionsGetCall) Do(opts ...googleapi.CallOption) (*Oper // "type": "string" // } // }, - // "path": "dfareporting/v4/userprofiles/{profileId}/operatingSystemVersions/{id}", + // "path": "userprofiles/{profileId}/operatingSystemVersions/{id}", // "response": { // "$ref": "OperatingSystemVersion" // }, @@ -39357,7 +39357,7 @@ func (c *OperatingSystemVersionsListCall) doRequest(alt string) (*http.Response, var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v4/userprofiles/{profileId}/operatingSystemVersions") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/operatingSystemVersions") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -39410,7 +39410,7 @@ func (c *OperatingSystemVersionsListCall) Do(opts ...googleapi.CallOption) (*Ope return ret, nil // { // "description": "Retrieves a list of operating system versions.", - // "flatPath": "dfareporting/v4/userprofiles/{profileId}/operatingSystemVersions", + // "flatPath": "userprofiles/{profileId}/operatingSystemVersions", // "httpMethod": "GET", // "id": "dfareporting.operatingSystemVersions.list", // "parameterOrder": [ @@ -39425,7 +39425,7 @@ func (c *OperatingSystemVersionsListCall) Do(opts ...googleapi.CallOption) (*Ope // "type": "string" // } // }, - // "path": "dfareporting/v4/userprofiles/{profileId}/operatingSystemVersions", + // "path": "userprofiles/{profileId}/operatingSystemVersions", // "response": { // "$ref": "OperatingSystemVersionsListResponse" // }, @@ -39507,7 +39507,7 @@ func (c *OperatingSystemsGetCall) 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, "dfareporting/v4/userprofiles/{profileId}/operatingSystems/{dartId}") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/operatingSystems/{dartId}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -39560,7 +39560,7 @@ func (c *OperatingSystemsGetCall) Do(opts ...googleapi.CallOption) (*OperatingSy return ret, nil // { // "description": "Gets one operating system by DART ID.", - // "flatPath": "dfareporting/v4/userprofiles/{profileId}/operatingSystems/{dartId}", + // "flatPath": "userprofiles/{profileId}/operatingSystems/{dartId}", // "httpMethod": "GET", // "id": "dfareporting.operatingSystems.get", // "parameterOrder": [ @@ -39583,7 +39583,7 @@ func (c *OperatingSystemsGetCall) Do(opts ...googleapi.CallOption) (*OperatingSy // "type": "string" // } // }, - // "path": "dfareporting/v4/userprofiles/{profileId}/operatingSystems/{dartId}", + // "path": "userprofiles/{profileId}/operatingSystems/{dartId}", // "response": { // "$ref": "OperatingSystem" // }, @@ -39662,7 +39662,7 @@ func (c *OperatingSystemsListCall) 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, "dfareporting/v4/userprofiles/{profileId}/operatingSystems") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/operatingSystems") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -39714,7 +39714,7 @@ func (c *OperatingSystemsListCall) Do(opts ...googleapi.CallOption) (*OperatingS return ret, nil // { // "description": "Retrieves a list of operating systems.", - // "flatPath": "dfareporting/v4/userprofiles/{profileId}/operatingSystems", + // "flatPath": "userprofiles/{profileId}/operatingSystems", // "httpMethod": "GET", // "id": "dfareporting.operatingSystems.list", // "parameterOrder": [ @@ -39729,7 +39729,7 @@ func (c *OperatingSystemsListCall) Do(opts ...googleapi.CallOption) (*OperatingS // "type": "string" // } // }, - // "path": "dfareporting/v4/userprofiles/{profileId}/operatingSystems", + // "path": "userprofiles/{profileId}/operatingSystems", // "response": { // "$ref": "OperatingSystemsListResponse" // }, @@ -39814,7 +39814,7 @@ func (c *OrderDocumentsGetCall) 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, "dfareporting/v4/userprofiles/{profileId}/projects/{projectId}/orderDocuments/{id}") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/projects/{projectId}/orderDocuments/{id}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -39868,7 +39868,7 @@ func (c *OrderDocumentsGetCall) Do(opts ...googleapi.CallOption) (*OrderDocument return ret, nil // { // "description": "Gets one order document by ID.", - // "flatPath": "dfareporting/v4/userprofiles/{profileId}/projects/{projectId}/orderDocuments/{id}", + // "flatPath": "userprofiles/{profileId}/projects/{projectId}/orderDocuments/{id}", // "httpMethod": "GET", // "id": "dfareporting.orderDocuments.get", // "parameterOrder": [ @@ -39899,7 +39899,7 @@ func (c *OrderDocumentsGetCall) Do(opts ...googleapi.CallOption) (*OrderDocument // "type": "string" // } // }, - // "path": "dfareporting/v4/userprofiles/{profileId}/projects/{projectId}/orderDocuments/{id}", + // "path": "userprofiles/{profileId}/projects/{projectId}/orderDocuments/{id}", // "response": { // "$ref": "OrderDocument" // }, @@ -40074,7 +40074,7 @@ func (c *OrderDocumentsListCall) 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, "dfareporting/v4/userprofiles/{profileId}/projects/{projectId}/orderDocuments") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/projects/{projectId}/orderDocuments") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -40127,7 +40127,7 @@ func (c *OrderDocumentsListCall) Do(opts ...googleapi.CallOption) (*OrderDocumen return ret, nil // { // "description": "Retrieves a list of order documents, possibly filtered. This method supports paging.", - // "flatPath": "dfareporting/v4/userprofiles/{profileId}/projects/{projectId}/orderDocuments", + // "flatPath": "userprofiles/{profileId}/projects/{projectId}/orderDocuments", // "httpMethod": "GET", // "id": "dfareporting.orderDocuments.list", // "parameterOrder": [ @@ -40223,7 +40223,7 @@ func (c *OrderDocumentsListCall) Do(opts ...googleapi.CallOption) (*OrderDocumen // "type": "string" // } // }, - // "path": "dfareporting/v4/userprofiles/{profileId}/projects/{projectId}/orderDocuments", + // "path": "userprofiles/{profileId}/projects/{projectId}/orderDocuments", // "response": { // "$ref": "OrderDocumentsListResponse" // }, @@ -40329,7 +40329,7 @@ func (c *OrdersGetCall) 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, "dfareporting/v4/userprofiles/{profileId}/projects/{projectId}/orders/{id}") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/projects/{projectId}/orders/{id}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -40383,7 +40383,7 @@ func (c *OrdersGetCall) Do(opts ...googleapi.CallOption) (*Order, error) { return ret, nil // { // "description": "Gets one order by ID.", - // "flatPath": "dfareporting/v4/userprofiles/{profileId}/projects/{projectId}/orders/{id}", + // "flatPath": "userprofiles/{profileId}/projects/{projectId}/orders/{id}", // "httpMethod": "GET", // "id": "dfareporting.orders.get", // "parameterOrder": [ @@ -40414,7 +40414,7 @@ func (c *OrdersGetCall) Do(opts ...googleapi.CallOption) (*Order, error) { // "type": "string" // } // }, - // "path": "dfareporting/v4/userprofiles/{profileId}/projects/{projectId}/orders/{id}", + // "path": "userprofiles/{profileId}/projects/{projectId}/orders/{id}", // "response": { // "$ref": "Order" // }, @@ -40569,7 +40569,7 @@ func (c *OrdersListCall) 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, "dfareporting/v4/userprofiles/{profileId}/projects/{projectId}/orders") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/projects/{projectId}/orders") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -40622,7 +40622,7 @@ func (c *OrdersListCall) Do(opts ...googleapi.CallOption) (*OrdersListResponse, return ret, nil // { // "description": "Retrieves a list of orders, possibly filtered. This method supports paging.", - // "flatPath": "dfareporting/v4/userprofiles/{profileId}/projects/{projectId}/orders", + // "flatPath": "userprofiles/{profileId}/projects/{projectId}/orders", // "httpMethod": "GET", // "id": "dfareporting.orders.list", // "parameterOrder": [ @@ -40706,7 +40706,7 @@ func (c *OrdersListCall) Do(opts ...googleapi.CallOption) (*OrdersListResponse, // "type": "string" // } // }, - // "path": "dfareporting/v4/userprofiles/{profileId}/projects/{projectId}/orders", + // "path": "userprofiles/{profileId}/projects/{projectId}/orders", // "response": { // "$ref": "OrdersListResponse" // }, @@ -40809,7 +40809,7 @@ func (c *PlacementGroupsGetCall) 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, "dfareporting/v4/userprofiles/{profileId}/placementGroups/{id}") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/placementGroups/{id}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -40862,7 +40862,7 @@ func (c *PlacementGroupsGetCall) Do(opts ...googleapi.CallOption) (*PlacementGro return ret, nil // { // "description": "Gets one placement group by ID.", - // "flatPath": "dfareporting/v4/userprofiles/{profileId}/placementGroups/{id}", + // "flatPath": "userprofiles/{profileId}/placementGroups/{id}", // "httpMethod": "GET", // "id": "dfareporting.placementGroups.get", // "parameterOrder": [ @@ -40885,7 +40885,7 @@ func (c *PlacementGroupsGetCall) Do(opts ...googleapi.CallOption) (*PlacementGro // "type": "string" // } // }, - // "path": "dfareporting/v4/userprofiles/{profileId}/placementGroups/{id}", + // "path": "userprofiles/{profileId}/placementGroups/{id}", // "response": { // "$ref": "PlacementGroup" // }, @@ -40957,7 +40957,7 @@ func (c *PlacementGroupsInsertCall) doRequest(alt string) (*http.Response, error reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v4/userprofiles/{profileId}/placementGroups") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/placementGroups") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -41009,7 +41009,7 @@ func (c *PlacementGroupsInsertCall) Do(opts ...googleapi.CallOption) (*Placement return ret, nil // { // "description": "Inserts a new placement group.", - // "flatPath": "dfareporting/v4/userprofiles/{profileId}/placementGroups", + // "flatPath": "userprofiles/{profileId}/placementGroups", // "httpMethod": "POST", // "id": "dfareporting.placementGroups.insert", // "parameterOrder": [ @@ -41024,7 +41024,7 @@ func (c *PlacementGroupsInsertCall) Do(opts ...googleapi.CallOption) (*Placement // "type": "string" // } // }, - // "path": "dfareporting/v4/userprofiles/{profileId}/placementGroups", + // "path": "userprofiles/{profileId}/placementGroups", // "request": { // "$ref": "PlacementGroup" // }, @@ -41319,7 +41319,7 @@ func (c *PlacementGroupsListCall) 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, "dfareporting/v4/userprofiles/{profileId}/placementGroups") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/placementGroups") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -41371,7 +41371,7 @@ func (c *PlacementGroupsListCall) Do(opts ...googleapi.CallOption) (*PlacementGr return ret, nil // { // "description": "Retrieves a list of placement groups, possibly filtered. This method supports paging.", - // "flatPath": "dfareporting/v4/userprofiles/{profileId}/placementGroups", + // "flatPath": "userprofiles/{profileId}/placementGroups", // "httpMethod": "GET", // "id": "dfareporting.placementGroups.list", // "parameterOrder": [ @@ -41557,7 +41557,7 @@ func (c *PlacementGroupsListCall) Do(opts ...googleapi.CallOption) (*PlacementGr // "type": "string" // } // }, - // "path": "dfareporting/v4/userprofiles/{profileId}/placementGroups", + // "path": "userprofiles/{profileId}/placementGroups", // "response": { // "$ref": "PlacementGroupsListResponse" // }, @@ -41653,7 +41653,7 @@ func (c *PlacementGroupsPatchCall) doRequest(alt string) (*http.Response, error) reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v4/userprofiles/{profileId}/placementGroups") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/placementGroups") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("PATCH", urls, body) if err != nil { @@ -41705,7 +41705,7 @@ func (c *PlacementGroupsPatchCall) Do(opts ...googleapi.CallOption) (*PlacementG return ret, nil // { // "description": "Updates an existing placement group. This method supports patch semantics.", - // "flatPath": "dfareporting/v4/userprofiles/{profileId}/placementGroups", + // "flatPath": "userprofiles/{profileId}/placementGroups", // "httpMethod": "PATCH", // "id": "dfareporting.placementGroups.patch", // "parameterOrder": [ @@ -41728,7 +41728,7 @@ func (c *PlacementGroupsPatchCall) Do(opts ...googleapi.CallOption) (*PlacementG // "type": "string" // } // }, - // "path": "dfareporting/v4/userprofiles/{profileId}/placementGroups", + // "path": "userprofiles/{profileId}/placementGroups", // "request": { // "$ref": "PlacementGroup" // }, @@ -41803,7 +41803,7 @@ func (c *PlacementGroupsUpdateCall) doRequest(alt string) (*http.Response, error reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v4/userprofiles/{profileId}/placementGroups") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/placementGroups") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("PUT", urls, body) if err != nil { @@ -41855,7 +41855,7 @@ func (c *PlacementGroupsUpdateCall) Do(opts ...googleapi.CallOption) (*Placement return ret, nil // { // "description": "Updates an existing placement group.", - // "flatPath": "dfareporting/v4/userprofiles/{profileId}/placementGroups", + // "flatPath": "userprofiles/{profileId}/placementGroups", // "httpMethod": "PUT", // "id": "dfareporting.placementGroups.update", // "parameterOrder": [ @@ -41870,7 +41870,7 @@ func (c *PlacementGroupsUpdateCall) Do(opts ...googleapi.CallOption) (*Placement // "type": "string" // } // }, - // "path": "dfareporting/v4/userprofiles/{profileId}/placementGroups", + // "path": "userprofiles/{profileId}/placementGroups", // "request": { // "$ref": "PlacementGroup" // }, @@ -41941,7 +41941,7 @@ func (c *PlacementStrategiesDeleteCall) doRequest(alt string) (*http.Response, e var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v4/userprofiles/{profileId}/placementStrategies/{id}") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/placementStrategies/{id}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("DELETE", urls, body) if err != nil { @@ -41969,7 +41969,7 @@ func (c *PlacementStrategiesDeleteCall) Do(opts ...googleapi.CallOption) error { return nil // { // "description": "Deletes an existing placement strategy.", - // "flatPath": "dfareporting/v4/userprofiles/{profileId}/placementStrategies/{id}", + // "flatPath": "userprofiles/{profileId}/placementStrategies/{id}", // "httpMethod": "DELETE", // "id": "dfareporting.placementStrategies.delete", // "parameterOrder": [ @@ -41992,7 +41992,7 @@ func (c *PlacementStrategiesDeleteCall) Do(opts ...googleapi.CallOption) error { // "type": "string" // } // }, - // "path": "dfareporting/v4/userprofiles/{profileId}/placementStrategies/{id}", + // "path": "userprofiles/{profileId}/placementStrategies/{id}", // "scopes": [ // "https://www.googleapis.com/auth/dfatrafficking" // ] @@ -42071,7 +42071,7 @@ func (c *PlacementStrategiesGetCall) doRequest(alt string) (*http.Response, erro var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v4/userprofiles/{profileId}/placementStrategies/{id}") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/placementStrategies/{id}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -42124,7 +42124,7 @@ func (c *PlacementStrategiesGetCall) Do(opts ...googleapi.CallOption) (*Placemen return ret, nil // { // "description": "Gets one placement strategy by ID.", - // "flatPath": "dfareporting/v4/userprofiles/{profileId}/placementStrategies/{id}", + // "flatPath": "userprofiles/{profileId}/placementStrategies/{id}", // "httpMethod": "GET", // "id": "dfareporting.placementStrategies.get", // "parameterOrder": [ @@ -42147,7 +42147,7 @@ func (c *PlacementStrategiesGetCall) Do(opts ...googleapi.CallOption) (*Placemen // "type": "string" // } // }, - // "path": "dfareporting/v4/userprofiles/{profileId}/placementStrategies/{id}", + // "path": "userprofiles/{profileId}/placementStrategies/{id}", // "response": { // "$ref": "PlacementStrategy" // }, @@ -42219,7 +42219,7 @@ func (c *PlacementStrategiesInsertCall) doRequest(alt string) (*http.Response, e reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v4/userprofiles/{profileId}/placementStrategies") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/placementStrategies") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -42271,7 +42271,7 @@ func (c *PlacementStrategiesInsertCall) Do(opts ...googleapi.CallOption) (*Place return ret, nil // { // "description": "Inserts a new placement strategy.", - // "flatPath": "dfareporting/v4/userprofiles/{profileId}/placementStrategies", + // "flatPath": "userprofiles/{profileId}/placementStrategies", // "httpMethod": "POST", // "id": "dfareporting.placementStrategies.insert", // "parameterOrder": [ @@ -42286,7 +42286,7 @@ func (c *PlacementStrategiesInsertCall) Do(opts ...googleapi.CallOption) (*Place // "type": "string" // } // }, - // "path": "dfareporting/v4/userprofiles/{profileId}/placementStrategies", + // "path": "userprofiles/{profileId}/placementStrategies", // "request": { // "$ref": "PlacementStrategy" // }, @@ -42432,7 +42432,7 @@ func (c *PlacementStrategiesListCall) doRequest(alt string) (*http.Response, err var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v4/userprofiles/{profileId}/placementStrategies") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/placementStrategies") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -42484,7 +42484,7 @@ func (c *PlacementStrategiesListCall) Do(opts ...googleapi.CallOption) (*Placeme return ret, nil // { // "description": "Retrieves a list of placement strategies, possibly filtered. This method supports paging.", - // "flatPath": "dfareporting/v4/userprofiles/{profileId}/placementStrategies", + // "flatPath": "userprofiles/{profileId}/placementStrategies", // "httpMethod": "GET", // "id": "dfareporting.placementStrategies.list", // "parameterOrder": [ @@ -42553,7 +42553,7 @@ func (c *PlacementStrategiesListCall) Do(opts ...googleapi.CallOption) (*Placeme // "type": "string" // } // }, - // "path": "dfareporting/v4/userprofiles/{profileId}/placementStrategies", + // "path": "userprofiles/{profileId}/placementStrategies", // "response": { // "$ref": "PlacementStrategiesListResponse" // }, @@ -42649,7 +42649,7 @@ func (c *PlacementStrategiesPatchCall) doRequest(alt string) (*http.Response, er reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v4/userprofiles/{profileId}/placementStrategies") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/placementStrategies") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("PATCH", urls, body) if err != nil { @@ -42701,7 +42701,7 @@ func (c *PlacementStrategiesPatchCall) Do(opts ...googleapi.CallOption) (*Placem return ret, nil // { // "description": "Updates an existing placement strategy. This method supports patch semantics.", - // "flatPath": "dfareporting/v4/userprofiles/{profileId}/placementStrategies", + // "flatPath": "userprofiles/{profileId}/placementStrategies", // "httpMethod": "PATCH", // "id": "dfareporting.placementStrategies.patch", // "parameterOrder": [ @@ -42724,7 +42724,7 @@ func (c *PlacementStrategiesPatchCall) Do(opts ...googleapi.CallOption) (*Placem // "type": "string" // } // }, - // "path": "dfareporting/v4/userprofiles/{profileId}/placementStrategies", + // "path": "userprofiles/{profileId}/placementStrategies", // "request": { // "$ref": "PlacementStrategy" // }, @@ -42799,7 +42799,7 @@ func (c *PlacementStrategiesUpdateCall) doRequest(alt string) (*http.Response, e reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v4/userprofiles/{profileId}/placementStrategies") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/placementStrategies") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("PUT", urls, body) if err != nil { @@ -42851,7 +42851,7 @@ func (c *PlacementStrategiesUpdateCall) Do(opts ...googleapi.CallOption) (*Place return ret, nil // { // "description": "Updates an existing placement strategy.", - // "flatPath": "dfareporting/v4/userprofiles/{profileId}/placementStrategies", + // "flatPath": "userprofiles/{profileId}/placementStrategies", // "httpMethod": "PUT", // "id": "dfareporting.placementStrategies.update", // "parameterOrder": [ @@ -42866,7 +42866,7 @@ func (c *PlacementStrategiesUpdateCall) Do(opts ...googleapi.CallOption) (*Place // "type": "string" // } // }, - // "path": "dfareporting/v4/userprofiles/{profileId}/placementStrategies", + // "path": "userprofiles/{profileId}/placementStrategies", // "request": { // "$ref": "PlacementStrategy" // }, @@ -42983,7 +42983,7 @@ func (c *PlacementsGeneratetagsCall) doRequest(alt string) (*http.Response, erro var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v4/userprofiles/{profileId}/placements/generatetags") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/placements/generatetags") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -43035,7 +43035,7 @@ func (c *PlacementsGeneratetagsCall) Do(opts ...googleapi.CallOption) (*Placemen return ret, nil // { // "description": "Generates tags for a placement.", - // "flatPath": "dfareporting/v4/userprofiles/{profileId}/placements/generatetags", + // "flatPath": "userprofiles/{profileId}/placements/generatetags", // "httpMethod": "POST", // "id": "dfareporting.placements.generatetags", // "parameterOrder": [ @@ -43113,7 +43113,7 @@ func (c *PlacementsGeneratetagsCall) Do(opts ...googleapi.CallOption) (*Placemen // "type": "string" // } // }, - // "path": "dfareporting/v4/userprofiles/{profileId}/placements/generatetags", + // "path": "userprofiles/{profileId}/placements/generatetags", // "response": { // "$ref": "PlacementsGenerateTagsResponse" // }, @@ -43195,7 +43195,7 @@ func (c *PlacementsGetCall) 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, "dfareporting/v4/userprofiles/{profileId}/placements/{id}") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/placements/{id}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -43248,7 +43248,7 @@ func (c *PlacementsGetCall) Do(opts ...googleapi.CallOption) (*Placement, error) return ret, nil // { // "description": "Gets one placement by ID.", - // "flatPath": "dfareporting/v4/userprofiles/{profileId}/placements/{id}", + // "flatPath": "userprofiles/{profileId}/placements/{id}", // "httpMethod": "GET", // "id": "dfareporting.placements.get", // "parameterOrder": [ @@ -43271,7 +43271,7 @@ func (c *PlacementsGetCall) Do(opts ...googleapi.CallOption) (*Placement, error) // "type": "string" // } // }, - // "path": "dfareporting/v4/userprofiles/{profileId}/placements/{id}", + // "path": "userprofiles/{profileId}/placements/{id}", // "response": { // "$ref": "Placement" // }, @@ -43343,7 +43343,7 @@ func (c *PlacementsInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v4/userprofiles/{profileId}/placements") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/placements") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -43395,7 +43395,7 @@ func (c *PlacementsInsertCall) Do(opts ...googleapi.CallOption) (*Placement, err return ret, nil // { // "description": "Inserts a new placement.", - // "flatPath": "dfareporting/v4/userprofiles/{profileId}/placements", + // "flatPath": "userprofiles/{profileId}/placements", // "httpMethod": "POST", // "id": "dfareporting.placements.insert", // "parameterOrder": [ @@ -43410,7 +43410,7 @@ func (c *PlacementsInsertCall) Do(opts ...googleapi.CallOption) (*Placement, err // "type": "string" // } // }, - // "path": "dfareporting/v4/userprofiles/{profileId}/placements", + // "path": "userprofiles/{profileId}/placements", // "request": { // "$ref": "Placement" // }, @@ -43742,7 +43742,7 @@ func (c *PlacementsListCall) 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, "dfareporting/v4/userprofiles/{profileId}/placements") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/placements") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -43794,7 +43794,7 @@ func (c *PlacementsListCall) Do(opts ...googleapi.CallOption) (*PlacementsListRe return ret, nil // { // "description": "Retrieves a list of placements, possibly filtered. This method supports paging.", - // "flatPath": "dfareporting/v4/userprofiles/{profileId}/placements", + // "flatPath": "userprofiles/{profileId}/placements", // "httpMethod": "GET", // "id": "dfareporting.placements.list", // "parameterOrder": [ @@ -44016,7 +44016,7 @@ func (c *PlacementsListCall) Do(opts ...googleapi.CallOption) (*PlacementsListRe // "type": "string" // } // }, - // "path": "dfareporting/v4/userprofiles/{profileId}/placements", + // "path": "userprofiles/{profileId}/placements", // "response": { // "$ref": "PlacementsListResponse" // }, @@ -44112,7 +44112,7 @@ func (c *PlacementsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v4/userprofiles/{profileId}/placements") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/placements") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("PATCH", urls, body) if err != nil { @@ -44164,7 +44164,7 @@ func (c *PlacementsPatchCall) Do(opts ...googleapi.CallOption) (*Placement, erro return ret, nil // { // "description": "Updates an existing placement. This method supports patch semantics.", - // "flatPath": "dfareporting/v4/userprofiles/{profileId}/placements", + // "flatPath": "userprofiles/{profileId}/placements", // "httpMethod": "PATCH", // "id": "dfareporting.placements.patch", // "parameterOrder": [ @@ -44187,7 +44187,7 @@ func (c *PlacementsPatchCall) Do(opts ...googleapi.CallOption) (*Placement, erro // "type": "string" // } // }, - // "path": "dfareporting/v4/userprofiles/{profileId}/placements", + // "path": "userprofiles/{profileId}/placements", // "request": { // "$ref": "Placement" // }, @@ -44262,7 +44262,7 @@ func (c *PlacementsUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v4/userprofiles/{profileId}/placements") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/placements") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("PUT", urls, body) if err != nil { @@ -44314,7 +44314,7 @@ func (c *PlacementsUpdateCall) Do(opts ...googleapi.CallOption) (*Placement, err return ret, nil // { // "description": "Updates an existing placement.", - // "flatPath": "dfareporting/v4/userprofiles/{profileId}/placements", + // "flatPath": "userprofiles/{profileId}/placements", // "httpMethod": "PUT", // "id": "dfareporting.placements.update", // "parameterOrder": [ @@ -44329,7 +44329,7 @@ func (c *PlacementsUpdateCall) Do(opts ...googleapi.CallOption) (*Placement, err // "type": "string" // } // }, - // "path": "dfareporting/v4/userprofiles/{profileId}/placements", + // "path": "userprofiles/{profileId}/placements", // "request": { // "$ref": "Placement" // }, @@ -44414,7 +44414,7 @@ func (c *PlatformTypesGetCall) 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, "dfareporting/v4/userprofiles/{profileId}/platformTypes/{id}") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/platformTypes/{id}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -44467,7 +44467,7 @@ func (c *PlatformTypesGetCall) Do(opts ...googleapi.CallOption) (*PlatformType, return ret, nil // { // "description": "Gets one platform type by ID.", - // "flatPath": "dfareporting/v4/userprofiles/{profileId}/platformTypes/{id}", + // "flatPath": "userprofiles/{profileId}/platformTypes/{id}", // "httpMethod": "GET", // "id": "dfareporting.platformTypes.get", // "parameterOrder": [ @@ -44490,7 +44490,7 @@ func (c *PlatformTypesGetCall) Do(opts ...googleapi.CallOption) (*PlatformType, // "type": "string" // } // }, - // "path": "dfareporting/v4/userprofiles/{profileId}/platformTypes/{id}", + // "path": "userprofiles/{profileId}/platformTypes/{id}", // "response": { // "$ref": "PlatformType" // }, @@ -44569,7 +44569,7 @@ func (c *PlatformTypesListCall) 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, "dfareporting/v4/userprofiles/{profileId}/platformTypes") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/platformTypes") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -44621,7 +44621,7 @@ func (c *PlatformTypesListCall) Do(opts ...googleapi.CallOption) (*PlatformTypes return ret, nil // { // "description": "Retrieves a list of platform types.", - // "flatPath": "dfareporting/v4/userprofiles/{profileId}/platformTypes", + // "flatPath": "userprofiles/{profileId}/platformTypes", // "httpMethod": "GET", // "id": "dfareporting.platformTypes.list", // "parameterOrder": [ @@ -44636,7 +44636,7 @@ func (c *PlatformTypesListCall) Do(opts ...googleapi.CallOption) (*PlatformTypes // "type": "string" // } // }, - // "path": "dfareporting/v4/userprofiles/{profileId}/platformTypes", + // "path": "userprofiles/{profileId}/platformTypes", // "response": { // "$ref": "PlatformTypesListResponse" // }, @@ -44718,7 +44718,7 @@ func (c *PostalCodesGetCall) 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, "dfareporting/v4/userprofiles/{profileId}/postalCodes/{code}") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/postalCodes/{code}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -44771,7 +44771,7 @@ func (c *PostalCodesGetCall) Do(opts ...googleapi.CallOption) (*PostalCode, erro return ret, nil // { // "description": "Gets one postal code by ID.", - // "flatPath": "dfareporting/v4/userprofiles/{profileId}/postalCodes/{code}", + // "flatPath": "userprofiles/{profileId}/postalCodes/{code}", // "httpMethod": "GET", // "id": "dfareporting.postalCodes.get", // "parameterOrder": [ @@ -44793,7 +44793,7 @@ func (c *PostalCodesGetCall) Do(opts ...googleapi.CallOption) (*PostalCode, erro // "type": "string" // } // }, - // "path": "dfareporting/v4/userprofiles/{profileId}/postalCodes/{code}", + // "path": "userprofiles/{profileId}/postalCodes/{code}", // "response": { // "$ref": "PostalCode" // }, @@ -44872,7 +44872,7 @@ func (c *PostalCodesListCall) 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, "dfareporting/v4/userprofiles/{profileId}/postalCodes") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/postalCodes") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -44924,7 +44924,7 @@ func (c *PostalCodesListCall) Do(opts ...googleapi.CallOption) (*PostalCodesList return ret, nil // { // "description": "Retrieves a list of postal codes.", - // "flatPath": "dfareporting/v4/userprofiles/{profileId}/postalCodes", + // "flatPath": "userprofiles/{profileId}/postalCodes", // "httpMethod": "GET", // "id": "dfareporting.postalCodes.list", // "parameterOrder": [ @@ -44939,7 +44939,7 @@ func (c *PostalCodesListCall) Do(opts ...googleapi.CallOption) (*PostalCodesList // "type": "string" // } // }, - // "path": "dfareporting/v4/userprofiles/{profileId}/postalCodes", + // "path": "userprofiles/{profileId}/postalCodes", // "response": { // "$ref": "PostalCodesListResponse" // }, @@ -45021,7 +45021,7 @@ func (c *ProjectsGetCall) 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, "dfareporting/v4/userprofiles/{profileId}/projects/{id}") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/projects/{id}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -45074,7 +45074,7 @@ func (c *ProjectsGetCall) Do(opts ...googleapi.CallOption) (*Project, error) { return ret, nil // { // "description": "Gets one project by ID.", - // "flatPath": "dfareporting/v4/userprofiles/{profileId}/projects/{id}", + // "flatPath": "userprofiles/{profileId}/projects/{id}", // "httpMethod": "GET", // "id": "dfareporting.projects.get", // "parameterOrder": [ @@ -45097,7 +45097,7 @@ func (c *ProjectsGetCall) Do(opts ...googleapi.CallOption) (*Project, error) { // "type": "string" // } // }, - // "path": "dfareporting/v4/userprofiles/{profileId}/projects/{id}", + // "path": "userprofiles/{profileId}/projects/{id}", // "response": { // "$ref": "Project" // }, @@ -45250,7 +45250,7 @@ func (c *ProjectsListCall) 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, "dfareporting/v4/userprofiles/{profileId}/projects") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/projects") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -45302,7 +45302,7 @@ func (c *ProjectsListCall) Do(opts ...googleapi.CallOption) (*ProjectsListRespon return ret, nil // { // "description": "Retrieves a list of projects, possibly filtered. This method supports paging .", - // "flatPath": "dfareporting/v4/userprofiles/{profileId}/projects", + // "flatPath": "userprofiles/{profileId}/projects", // "httpMethod": "GET", // "id": "dfareporting.projects.list", // "parameterOrder": [ @@ -45378,7 +45378,7 @@ func (c *ProjectsListCall) Do(opts ...googleapi.CallOption) (*ProjectsListRespon // "type": "string" // } // }, - // "path": "dfareporting/v4/userprofiles/{profileId}/projects", + // "path": "userprofiles/{profileId}/projects", // "response": { // "$ref": "ProjectsListResponse" // }, @@ -45478,7 +45478,7 @@ func (c *RegionsListCall) 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, "dfareporting/v4/userprofiles/{profileId}/regions") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/regions") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -45530,7 +45530,7 @@ func (c *RegionsListCall) Do(opts ...googleapi.CallOption) (*RegionsListResponse return ret, nil // { // "description": "Retrieves a list of regions.", - // "flatPath": "dfareporting/v4/userprofiles/{profileId}/regions", + // "flatPath": "userprofiles/{profileId}/regions", // "httpMethod": "GET", // "id": "dfareporting.regions.list", // "parameterOrder": [ @@ -45545,7 +45545,7 @@ func (c *RegionsListCall) Do(opts ...googleapi.CallOption) (*RegionsListResponse // "type": "string" // } // }, - // "path": "dfareporting/v4/userprofiles/{profileId}/regions", + // "path": "userprofiles/{profileId}/regions", // "response": { // "$ref": "RegionsListResponse" // }, @@ -45627,7 +45627,7 @@ func (c *RemarketingListSharesGetCall) doRequest(alt string) (*http.Response, er var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v4/userprofiles/{profileId}/remarketingListShares/{remarketingListId}") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/remarketingListShares/{remarketingListId}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -45680,7 +45680,7 @@ func (c *RemarketingListSharesGetCall) Do(opts ...googleapi.CallOption) (*Remark return ret, nil // { // "description": "Gets one remarketing list share by remarketing list ID.", - // "flatPath": "dfareporting/v4/userprofiles/{profileId}/remarketingListShares/{remarketingListId}", + // "flatPath": "userprofiles/{profileId}/remarketingListShares/{remarketingListId}", // "httpMethod": "GET", // "id": "dfareporting.remarketingListShares.get", // "parameterOrder": [ @@ -45703,7 +45703,7 @@ func (c *RemarketingListSharesGetCall) Do(opts ...googleapi.CallOption) (*Remark // "type": "string" // } // }, - // "path": "dfareporting/v4/userprofiles/{profileId}/remarketingListShares/{remarketingListId}", + // "path": "userprofiles/{profileId}/remarketingListShares/{remarketingListId}", // "response": { // "$ref": "RemarketingListShare" // }, @@ -45778,7 +45778,7 @@ func (c *RemarketingListSharesPatchCall) doRequest(alt string) (*http.Response, reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v4/userprofiles/{profileId}/remarketingListShares") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/remarketingListShares") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("PATCH", urls, body) if err != nil { @@ -45830,7 +45830,7 @@ func (c *RemarketingListSharesPatchCall) Do(opts ...googleapi.CallOption) (*Rema return ret, nil // { // "description": "Updates an existing remarketing list share. This method supports patch semantics.", - // "flatPath": "dfareporting/v4/userprofiles/{profileId}/remarketingListShares", + // "flatPath": "userprofiles/{profileId}/remarketingListShares", // "httpMethod": "PATCH", // "id": "dfareporting.remarketingListShares.patch", // "parameterOrder": [ @@ -45853,7 +45853,7 @@ func (c *RemarketingListSharesPatchCall) Do(opts ...googleapi.CallOption) (*Rema // "type": "string" // } // }, - // "path": "dfareporting/v4/userprofiles/{profileId}/remarketingListShares", + // "path": "userprofiles/{profileId}/remarketingListShares", // "request": { // "$ref": "RemarketingListShare" // }, @@ -45928,7 +45928,7 @@ func (c *RemarketingListSharesUpdateCall) doRequest(alt string) (*http.Response, reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v4/userprofiles/{profileId}/remarketingListShares") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/remarketingListShares") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("PUT", urls, body) if err != nil { @@ -45980,7 +45980,7 @@ func (c *RemarketingListSharesUpdateCall) Do(opts ...googleapi.CallOption) (*Rem return ret, nil // { // "description": "Updates an existing remarketing list share.", - // "flatPath": "dfareporting/v4/userprofiles/{profileId}/remarketingListShares", + // "flatPath": "userprofiles/{profileId}/remarketingListShares", // "httpMethod": "PUT", // "id": "dfareporting.remarketingListShares.update", // "parameterOrder": [ @@ -45995,7 +45995,7 @@ func (c *RemarketingListSharesUpdateCall) Do(opts ...googleapi.CallOption) (*Rem // "type": "string" // } // }, - // "path": "dfareporting/v4/userprofiles/{profileId}/remarketingListShares", + // "path": "userprofiles/{profileId}/remarketingListShares", // "request": { // "$ref": "RemarketingListShare" // }, @@ -46080,7 +46080,7 @@ func (c *RemarketingListsGetCall) 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, "dfareporting/v4/userprofiles/{profileId}/remarketingLists/{id}") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/remarketingLists/{id}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -46133,7 +46133,7 @@ func (c *RemarketingListsGetCall) Do(opts ...googleapi.CallOption) (*Remarketing return ret, nil // { // "description": "Gets one remarketing list by ID.", - // "flatPath": "dfareporting/v4/userprofiles/{profileId}/remarketingLists/{id}", + // "flatPath": "userprofiles/{profileId}/remarketingLists/{id}", // "httpMethod": "GET", // "id": "dfareporting.remarketingLists.get", // "parameterOrder": [ @@ -46156,7 +46156,7 @@ func (c *RemarketingListsGetCall) Do(opts ...googleapi.CallOption) (*Remarketing // "type": "string" // } // }, - // "path": "dfareporting/v4/userprofiles/{profileId}/remarketingLists/{id}", + // "path": "userprofiles/{profileId}/remarketingLists/{id}", // "response": { // "$ref": "RemarketingList" // }, @@ -46228,7 +46228,7 @@ func (c *RemarketingListsInsertCall) doRequest(alt string) (*http.Response, erro reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v4/userprofiles/{profileId}/remarketingLists") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/remarketingLists") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -46280,7 +46280,7 @@ func (c *RemarketingListsInsertCall) Do(opts ...googleapi.CallOption) (*Remarket return ret, nil // { // "description": "Inserts a new remarketing list.", - // "flatPath": "dfareporting/v4/userprofiles/{profileId}/remarketingLists", + // "flatPath": "userprofiles/{profileId}/remarketingLists", // "httpMethod": "POST", // "id": "dfareporting.remarketingLists.insert", // "parameterOrder": [ @@ -46295,7 +46295,7 @@ func (c *RemarketingListsInsertCall) Do(opts ...googleapi.CallOption) (*Remarket // "type": "string" // } // }, - // "path": "dfareporting/v4/userprofiles/{profileId}/remarketingLists", + // "path": "userprofiles/{profileId}/remarketingLists", // "request": { // "$ref": "RemarketingList" // }, @@ -46447,7 +46447,7 @@ func (c *RemarketingListsListCall) 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, "dfareporting/v4/userprofiles/{profileId}/remarketingLists") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/remarketingLists") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -46499,7 +46499,7 @@ func (c *RemarketingListsListCall) Do(opts ...googleapi.CallOption) (*Remarketin return ret, nil // { // "description": "Retrieves a list of remarketing lists, possibly filtered. This method supports paging.", - // "flatPath": "dfareporting/v4/userprofiles/{profileId}/remarketingLists", + // "flatPath": "userprofiles/{profileId}/remarketingLists", // "httpMethod": "GET", // "id": "dfareporting.remarketingLists.list", // "parameterOrder": [ @@ -46580,7 +46580,7 @@ func (c *RemarketingListsListCall) Do(opts ...googleapi.CallOption) (*Remarketin // "type": "string" // } // }, - // "path": "dfareporting/v4/userprofiles/{profileId}/remarketingLists", + // "path": "userprofiles/{profileId}/remarketingLists", // "response": { // "$ref": "RemarketingListsListResponse" // }, @@ -46676,7 +46676,7 @@ func (c *RemarketingListsPatchCall) doRequest(alt string) (*http.Response, error reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v4/userprofiles/{profileId}/remarketingLists") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/remarketingLists") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("PATCH", urls, body) if err != nil { @@ -46728,7 +46728,7 @@ func (c *RemarketingListsPatchCall) Do(opts ...googleapi.CallOption) (*Remarketi return ret, nil // { // "description": "Updates an existing remarketing list. This method supports patch semantics.", - // "flatPath": "dfareporting/v4/userprofiles/{profileId}/remarketingLists", + // "flatPath": "userprofiles/{profileId}/remarketingLists", // "httpMethod": "PATCH", // "id": "dfareporting.remarketingLists.patch", // "parameterOrder": [ @@ -46751,7 +46751,7 @@ func (c *RemarketingListsPatchCall) Do(opts ...googleapi.CallOption) (*Remarketi // "type": "string" // } // }, - // "path": "dfareporting/v4/userprofiles/{profileId}/remarketingLists", + // "path": "userprofiles/{profileId}/remarketingLists", // "request": { // "$ref": "RemarketingList" // }, @@ -46826,7 +46826,7 @@ func (c *RemarketingListsUpdateCall) doRequest(alt string) (*http.Response, erro reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v4/userprofiles/{profileId}/remarketingLists") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/remarketingLists") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("PUT", urls, body) if err != nil { @@ -46878,7 +46878,7 @@ func (c *RemarketingListsUpdateCall) Do(opts ...googleapi.CallOption) (*Remarket return ret, nil // { // "description": "Updates an existing remarketing list.", - // "flatPath": "dfareporting/v4/userprofiles/{profileId}/remarketingLists", + // "flatPath": "userprofiles/{profileId}/remarketingLists", // "httpMethod": "PUT", // "id": "dfareporting.remarketingLists.update", // "parameterOrder": [ @@ -46893,7 +46893,7 @@ func (c *RemarketingListsUpdateCall) Do(opts ...googleapi.CallOption) (*Remarket // "type": "string" // } // }, - // "path": "dfareporting/v4/userprofiles/{profileId}/remarketingLists", + // "path": "userprofiles/{profileId}/remarketingLists", // "request": { // "$ref": "RemarketingList" // }, @@ -46964,7 +46964,7 @@ func (c *ReportsDeleteCall) 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, "dfareporting/v4/userprofiles/{profileId}/reports/{reportId}") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/reports/{reportId}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("DELETE", urls, body) if err != nil { @@ -46992,7 +46992,7 @@ func (c *ReportsDeleteCall) Do(opts ...googleapi.CallOption) error { return nil // { // "description": "Deletes a report by its ID.", - // "flatPath": "dfareporting/v4/userprofiles/{profileId}/reports/{reportId}", + // "flatPath": "userprofiles/{profileId}/reports/{reportId}", // "httpMethod": "DELETE", // "id": "dfareporting.reports.delete", // "parameterOrder": [ @@ -47015,7 +47015,7 @@ func (c *ReportsDeleteCall) Do(opts ...googleapi.CallOption) error { // "type": "string" // } // }, - // "path": "dfareporting/v4/userprofiles/{profileId}/reports/{reportId}", + // "path": "userprofiles/{profileId}/reports/{reportId}", // "scopes": [ // "https://www.googleapis.com/auth/dfareporting" // ] @@ -47094,7 +47094,7 @@ func (c *ReportsGetCall) 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, "dfareporting/v4/userprofiles/{profileId}/reports/{reportId}") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/reports/{reportId}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -47147,7 +47147,7 @@ func (c *ReportsGetCall) Do(opts ...googleapi.CallOption) (*Report, error) { return ret, nil // { // "description": "Retrieves a report by its ID.", - // "flatPath": "dfareporting/v4/userprofiles/{profileId}/reports/{reportId}", + // "flatPath": "userprofiles/{profileId}/reports/{reportId}", // "httpMethod": "GET", // "id": "dfareporting.reports.get", // "parameterOrder": [ @@ -47170,7 +47170,7 @@ func (c *ReportsGetCall) Do(opts ...googleapi.CallOption) (*Report, error) { // "type": "string" // } // }, - // "path": "dfareporting/v4/userprofiles/{profileId}/reports/{reportId}", + // "path": "userprofiles/{profileId}/reports/{reportId}", // "response": { // "$ref": "Report" // }, @@ -47242,7 +47242,7 @@ func (c *ReportsInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v4/userprofiles/{profileId}/reports") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/reports") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -47294,7 +47294,7 @@ func (c *ReportsInsertCall) Do(opts ...googleapi.CallOption) (*Report, error) { return ret, nil // { // "description": "Creates a report.", - // "flatPath": "dfareporting/v4/userprofiles/{profileId}/reports", + // "flatPath": "userprofiles/{profileId}/reports", // "httpMethod": "POST", // "id": "dfareporting.reports.insert", // "parameterOrder": [ @@ -47309,7 +47309,7 @@ func (c *ReportsInsertCall) Do(opts ...googleapi.CallOption) (*Report, error) { // "type": "string" // } // }, - // "path": "dfareporting/v4/userprofiles/{profileId}/reports", + // "path": "userprofiles/{profileId}/reports", // "request": { // "$ref": "Report" // }, @@ -47442,7 +47442,7 @@ func (c *ReportsListCall) 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, "dfareporting/v4/userprofiles/{profileId}/reports") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/reports") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -47494,7 +47494,7 @@ func (c *ReportsListCall) Do(opts ...googleapi.CallOption) (*ReportList, error) return ret, nil // { // "description": "Retrieves list of reports.", - // "flatPath": "dfareporting/v4/userprofiles/{profileId}/reports", + // "flatPath": "userprofiles/{profileId}/reports", // "httpMethod": "GET", // "id": "dfareporting.reports.list", // "parameterOrder": [ @@ -47567,7 +47567,7 @@ func (c *ReportsListCall) Do(opts ...googleapi.CallOption) (*ReportList, error) // "type": "string" // } // }, - // "path": "dfareporting/v4/userprofiles/{profileId}/reports", + // "path": "userprofiles/{profileId}/reports", // "response": { // "$ref": "ReportList" // }, @@ -47664,7 +47664,7 @@ func (c *ReportsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v4/userprofiles/{profileId}/reports/{reportId}") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/reports/{reportId}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("PATCH", urls, body) if err != nil { @@ -47717,7 +47717,7 @@ func (c *ReportsPatchCall) Do(opts ...googleapi.CallOption) (*Report, error) { return ret, nil // { // "description": "Updates an existing report. This method supports patch semantics.", - // "flatPath": "dfareporting/v4/userprofiles/{profileId}/reports/{reportId}", + // "flatPath": "userprofiles/{profileId}/reports/{reportId}", // "httpMethod": "PATCH", // "id": "dfareporting.reports.patch", // "parameterOrder": [ @@ -47740,7 +47740,7 @@ func (c *ReportsPatchCall) Do(opts ...googleapi.CallOption) (*Report, error) { // "type": "string" // } // }, - // "path": "dfareporting/v4/userprofiles/{profileId}/reports/{reportId}", + // "path": "userprofiles/{profileId}/reports/{reportId}", // "request": { // "$ref": "Report" // }, @@ -47818,7 +47818,7 @@ func (c *ReportsRunCall) 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, "dfareporting/v4/userprofiles/{profileId}/reports/{reportId}/run") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/reports/{reportId}/run") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -47871,7 +47871,7 @@ func (c *ReportsRunCall) Do(opts ...googleapi.CallOption) (*File, error) { return ret, nil // { // "description": "Runs a report.", - // "flatPath": "dfareporting/v4/userprofiles/{profileId}/reports/{reportId}/run", + // "flatPath": "userprofiles/{profileId}/reports/{reportId}/run", // "httpMethod": "POST", // "id": "dfareporting.reports.run", // "parameterOrder": [ @@ -47900,7 +47900,7 @@ func (c *ReportsRunCall) Do(opts ...googleapi.CallOption) (*File, error) { // "type": "boolean" // } // }, - // "path": "dfareporting/v4/userprofiles/{profileId}/reports/{reportId}/run", + // "path": "userprofiles/{profileId}/reports/{reportId}/run", // "response": { // "$ref": "File" // }, @@ -47975,7 +47975,7 @@ func (c *ReportsUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v4/userprofiles/{profileId}/reports/{reportId}") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/reports/{reportId}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("PUT", urls, body) if err != nil { @@ -48028,7 +48028,7 @@ func (c *ReportsUpdateCall) Do(opts ...googleapi.CallOption) (*Report, error) { return ret, nil // { // "description": "Updates a report.", - // "flatPath": "dfareporting/v4/userprofiles/{profileId}/reports/{reportId}", + // "flatPath": "userprofiles/{profileId}/reports/{reportId}", // "httpMethod": "PUT", // "id": "dfareporting.reports.update", // "parameterOrder": [ @@ -48051,7 +48051,7 @@ func (c *ReportsUpdateCall) Do(opts ...googleapi.CallOption) (*Report, error) { // "type": "string" // } // }, - // "path": "dfareporting/v4/userprofiles/{profileId}/reports/{reportId}", + // "path": "userprofiles/{profileId}/reports/{reportId}", // "request": { // "$ref": "Report" // }, @@ -48128,7 +48128,7 @@ func (c *ReportsCompatibleFieldsQueryCall) doRequest(alt string) (*http.Response reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v4/userprofiles/{profileId}/reports/compatiblefields/query") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/reports/compatiblefields/query") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -48180,7 +48180,7 @@ func (c *ReportsCompatibleFieldsQueryCall) Do(opts ...googleapi.CallOption) (*Co return ret, nil // { // "description": "Returns the fields that are compatible to be selected in the respective sections of a report criteria, given the fields already selected in the input report and user permissions.", - // "flatPath": "dfareporting/v4/userprofiles/{profileId}/reports/compatiblefields/query", + // "flatPath": "userprofiles/{profileId}/reports/compatiblefields/query", // "httpMethod": "POST", // "id": "dfareporting.reports.compatibleFields.query", // "parameterOrder": [ @@ -48195,7 +48195,7 @@ func (c *ReportsCompatibleFieldsQueryCall) Do(opts ...googleapi.CallOption) (*Co // "type": "string" // } // }, - // "path": "dfareporting/v4/userprofiles/{profileId}/reports/compatiblefields/query", + // "path": "userprofiles/{profileId}/reports/compatiblefields/query", // "request": { // "$ref": "Report" // }, @@ -48284,7 +48284,7 @@ func (c *ReportsFilesGetCall) 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, "dfareporting/v4/userprofiles/{profileId}/reports/{reportId}/files/{fileId}") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/reports/{reportId}/files/{fileId}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -48354,7 +48354,7 @@ func (c *ReportsFilesGetCall) Do(opts ...googleapi.CallOption) (*File, error) { return ret, nil // { // "description": "Retrieves a report file by its report ID and file ID. This method supports media download.", - // "flatPath": "dfareporting/v4/userprofiles/{profileId}/reports/{reportId}/files/{fileId}", + // "flatPath": "userprofiles/{profileId}/reports/{reportId}/files/{fileId}", // "httpMethod": "GET", // "id": "dfareporting.reports.files.get", // "parameterOrder": [ @@ -48385,7 +48385,7 @@ func (c *ReportsFilesGetCall) Do(opts ...googleapi.CallOption) (*File, error) { // "type": "string" // } // }, - // "path": "dfareporting/v4/userprofiles/{profileId}/reports/{reportId}/files/{fileId}", + // "path": "userprofiles/{profileId}/reports/{reportId}/files/{fileId}", // "response": { // "$ref": "File" // }, @@ -48506,7 +48506,7 @@ func (c *ReportsFilesListCall) 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, "dfareporting/v4/userprofiles/{profileId}/reports/{reportId}/files") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/reports/{reportId}/files") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -48559,7 +48559,7 @@ func (c *ReportsFilesListCall) Do(opts ...googleapi.CallOption) (*FileList, erro return ret, nil // { // "description": "Lists files for a report.", - // "flatPath": "dfareporting/v4/userprofiles/{profileId}/reports/{reportId}/files", + // "flatPath": "userprofiles/{profileId}/reports/{reportId}/files", // "httpMethod": "GET", // "id": "dfareporting.reports.files.list", // "parameterOrder": [ @@ -48624,7 +48624,7 @@ func (c *ReportsFilesListCall) Do(opts ...googleapi.CallOption) (*FileList, erro // "type": "string" // } // }, - // "path": "dfareporting/v4/userprofiles/{profileId}/reports/{reportId}/files", + // "path": "userprofiles/{profileId}/reports/{reportId}/files", // "response": { // "$ref": "FileList" // }, @@ -48727,7 +48727,7 @@ func (c *SitesGetCall) 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, "dfareporting/v4/userprofiles/{profileId}/sites/{id}") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/sites/{id}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -48780,7 +48780,7 @@ func (c *SitesGetCall) Do(opts ...googleapi.CallOption) (*Site, error) { return ret, nil // { // "description": "Gets one site by ID.", - // "flatPath": "dfareporting/v4/userprofiles/{profileId}/sites/{id}", + // "flatPath": "userprofiles/{profileId}/sites/{id}", // "httpMethod": "GET", // "id": "dfareporting.sites.get", // "parameterOrder": [ @@ -48803,7 +48803,7 @@ func (c *SitesGetCall) Do(opts ...googleapi.CallOption) (*Site, error) { // "type": "string" // } // }, - // "path": "dfareporting/v4/userprofiles/{profileId}/sites/{id}", + // "path": "userprofiles/{profileId}/sites/{id}", // "response": { // "$ref": "Site" // }, @@ -48875,7 +48875,7 @@ func (c *SitesInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v4/userprofiles/{profileId}/sites") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/sites") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -48927,7 +48927,7 @@ func (c *SitesInsertCall) Do(opts ...googleapi.CallOption) (*Site, error) { return ret, nil // { // "description": "Inserts a new site.", - // "flatPath": "dfareporting/v4/userprofiles/{profileId}/sites", + // "flatPath": "userprofiles/{profileId}/sites", // "httpMethod": "POST", // "id": "dfareporting.sites.insert", // "parameterOrder": [ @@ -48942,7 +48942,7 @@ func (c *SitesInsertCall) Do(opts ...googleapi.CallOption) (*Site, error) { // "type": "string" // } // }, - // "path": "dfareporting/v4/userprofiles/{profileId}/sites", + // "path": "userprofiles/{profileId}/sites", // "request": { // "$ref": "Site" // }, @@ -49160,7 +49160,7 @@ func (c *SitesListCall) 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, "dfareporting/v4/userprofiles/{profileId}/sites") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/sites") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -49212,7 +49212,7 @@ func (c *SitesListCall) Do(opts ...googleapi.CallOption) (*SitesListResponse, er return ret, nil // { // "description": "Retrieves a list of sites, possibly filtered. This method supports paging.", - // "flatPath": "dfareporting/v4/userprofiles/{profileId}/sites", + // "flatPath": "userprofiles/{profileId}/sites", // "httpMethod": "GET", // "id": "dfareporting.sites.list", // "parameterOrder": [ @@ -49331,7 +49331,7 @@ func (c *SitesListCall) Do(opts ...googleapi.CallOption) (*SitesListResponse, er // "type": "boolean" // } // }, - // "path": "dfareporting/v4/userprofiles/{profileId}/sites", + // "path": "userprofiles/{profileId}/sites", // "response": { // "$ref": "SitesListResponse" // }, @@ -49427,7 +49427,7 @@ func (c *SitesPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v4/userprofiles/{profileId}/sites") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/sites") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("PATCH", urls, body) if err != nil { @@ -49479,7 +49479,7 @@ func (c *SitesPatchCall) Do(opts ...googleapi.CallOption) (*Site, error) { return ret, nil // { // "description": "Updates an existing site. This method supports patch semantics.", - // "flatPath": "dfareporting/v4/userprofiles/{profileId}/sites", + // "flatPath": "userprofiles/{profileId}/sites", // "httpMethod": "PATCH", // "id": "dfareporting.sites.patch", // "parameterOrder": [ @@ -49502,7 +49502,7 @@ func (c *SitesPatchCall) Do(opts ...googleapi.CallOption) (*Site, error) { // "type": "string" // } // }, - // "path": "dfareporting/v4/userprofiles/{profileId}/sites", + // "path": "userprofiles/{profileId}/sites", // "request": { // "$ref": "Site" // }, @@ -49577,7 +49577,7 @@ func (c *SitesUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v4/userprofiles/{profileId}/sites") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/sites") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("PUT", urls, body) if err != nil { @@ -49629,7 +49629,7 @@ func (c *SitesUpdateCall) Do(opts ...googleapi.CallOption) (*Site, error) { return ret, nil // { // "description": "Updates an existing site.", - // "flatPath": "dfareporting/v4/userprofiles/{profileId}/sites", + // "flatPath": "userprofiles/{profileId}/sites", // "httpMethod": "PUT", // "id": "dfareporting.sites.update", // "parameterOrder": [ @@ -49644,7 +49644,7 @@ func (c *SitesUpdateCall) Do(opts ...googleapi.CallOption) (*Site, error) { // "type": "string" // } // }, - // "path": "dfareporting/v4/userprofiles/{profileId}/sites", + // "path": "userprofiles/{profileId}/sites", // "request": { // "$ref": "Site" // }, @@ -49729,7 +49729,7 @@ func (c *SizesGetCall) 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, "dfareporting/v4/userprofiles/{profileId}/sizes/{id}") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/sizes/{id}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -49782,7 +49782,7 @@ func (c *SizesGetCall) Do(opts ...googleapi.CallOption) (*Size, error) { return ret, nil // { // "description": "Gets one size by ID.", - // "flatPath": "dfareporting/v4/userprofiles/{profileId}/sizes/{id}", + // "flatPath": "userprofiles/{profileId}/sizes/{id}", // "httpMethod": "GET", // "id": "dfareporting.sizes.get", // "parameterOrder": [ @@ -49805,7 +49805,7 @@ func (c *SizesGetCall) Do(opts ...googleapi.CallOption) (*Size, error) { // "type": "string" // } // }, - // "path": "dfareporting/v4/userprofiles/{profileId}/sizes/{id}", + // "path": "userprofiles/{profileId}/sizes/{id}", // "response": { // "$ref": "Size" // }, @@ -49877,7 +49877,7 @@ func (c *SizesInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v4/userprofiles/{profileId}/sizes") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/sizes") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -49929,7 +49929,7 @@ func (c *SizesInsertCall) Do(opts ...googleapi.CallOption) (*Size, error) { return ret, nil // { // "description": "Inserts a new size.", - // "flatPath": "dfareporting/v4/userprofiles/{profileId}/sizes", + // "flatPath": "userprofiles/{profileId}/sizes", // "httpMethod": "POST", // "id": "dfareporting.sizes.insert", // "parameterOrder": [ @@ -49944,7 +49944,7 @@ func (c *SizesInsertCall) Do(opts ...googleapi.CallOption) (*Size, error) { // "type": "string" // } // }, - // "path": "dfareporting/v4/userprofiles/{profileId}/sizes", + // "path": "userprofiles/{profileId}/sizes", // "request": { // "$ref": "Size" // }, @@ -50061,7 +50061,7 @@ func (c *SizesListCall) 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, "dfareporting/v4/userprofiles/{profileId}/sizes") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/sizes") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -50113,7 +50113,7 @@ func (c *SizesListCall) Do(opts ...googleapi.CallOption) (*SizesListResponse, er return ret, nil // { // "description": "Retrieves a list of sizes, possibly filtered. Retrieved sizes are globally unique and may include values not currently in use by your account. Due to this, the list of sizes returned by this method may differ from the list seen in the Trafficking UI.", - // "flatPath": "dfareporting/v4/userprofiles/{profileId}/sizes", + // "flatPath": "userprofiles/{profileId}/sizes", // "httpMethod": "GET", // "id": "dfareporting.sizes.list", // "parameterOrder": [ @@ -50156,7 +50156,7 @@ func (c *SizesListCall) Do(opts ...googleapi.CallOption) (*SizesListResponse, er // "type": "integer" // } // }, - // "path": "dfareporting/v4/userprofiles/{profileId}/sizes", + // "path": "userprofiles/{profileId}/sizes", // "response": { // "$ref": "SizesListResponse" // }, @@ -50238,7 +50238,7 @@ func (c *SubaccountsGetCall) 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, "dfareporting/v4/userprofiles/{profileId}/subaccounts/{id}") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/subaccounts/{id}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -50291,7 +50291,7 @@ func (c *SubaccountsGetCall) Do(opts ...googleapi.CallOption) (*Subaccount, erro return ret, nil // { // "description": "Gets one subaccount by ID.", - // "flatPath": "dfareporting/v4/userprofiles/{profileId}/subaccounts/{id}", + // "flatPath": "userprofiles/{profileId}/subaccounts/{id}", // "httpMethod": "GET", // "id": "dfareporting.subaccounts.get", // "parameterOrder": [ @@ -50314,7 +50314,7 @@ func (c *SubaccountsGetCall) Do(opts ...googleapi.CallOption) (*Subaccount, erro // "type": "string" // } // }, - // "path": "dfareporting/v4/userprofiles/{profileId}/subaccounts/{id}", + // "path": "userprofiles/{profileId}/subaccounts/{id}", // "response": { // "$ref": "Subaccount" // }, @@ -50386,7 +50386,7 @@ func (c *SubaccountsInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v4/userprofiles/{profileId}/subaccounts") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/subaccounts") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -50438,7 +50438,7 @@ func (c *SubaccountsInsertCall) Do(opts ...googleapi.CallOption) (*Subaccount, e return ret, nil // { // "description": "Inserts a new subaccount.", - // "flatPath": "dfareporting/v4/userprofiles/{profileId}/subaccounts", + // "flatPath": "userprofiles/{profileId}/subaccounts", // "httpMethod": "POST", // "id": "dfareporting.subaccounts.insert", // "parameterOrder": [ @@ -50453,7 +50453,7 @@ func (c *SubaccountsInsertCall) Do(opts ...googleapi.CallOption) (*Subaccount, e // "type": "string" // } // }, - // "path": "dfareporting/v4/userprofiles/{profileId}/subaccounts", + // "path": "userprofiles/{profileId}/subaccounts", // "request": { // "$ref": "Subaccount" // }, @@ -50598,7 +50598,7 @@ func (c *SubaccountsListCall) 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, "dfareporting/v4/userprofiles/{profileId}/subaccounts") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/subaccounts") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -50650,7 +50650,7 @@ func (c *SubaccountsListCall) Do(opts ...googleapi.CallOption) (*SubaccountsList return ret, nil // { // "description": "Gets a list of subaccounts, possibly filtered. This method supports paging.", - // "flatPath": "dfareporting/v4/userprofiles/{profileId}/subaccounts", + // "flatPath": "userprofiles/{profileId}/subaccounts", // "httpMethod": "GET", // "id": "dfareporting.subaccounts.list", // "parameterOrder": [ @@ -50719,7 +50719,7 @@ func (c *SubaccountsListCall) Do(opts ...googleapi.CallOption) (*SubaccountsList // "type": "string" // } // }, - // "path": "dfareporting/v4/userprofiles/{profileId}/subaccounts", + // "path": "userprofiles/{profileId}/subaccounts", // "response": { // "$ref": "SubaccountsListResponse" // }, @@ -50815,7 +50815,7 @@ func (c *SubaccountsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v4/userprofiles/{profileId}/subaccounts") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/subaccounts") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("PATCH", urls, body) if err != nil { @@ -50867,7 +50867,7 @@ func (c *SubaccountsPatchCall) Do(opts ...googleapi.CallOption) (*Subaccount, er return ret, nil // { // "description": "Updates an existing subaccount. This method supports patch semantics.", - // "flatPath": "dfareporting/v4/userprofiles/{profileId}/subaccounts", + // "flatPath": "userprofiles/{profileId}/subaccounts", // "httpMethod": "PATCH", // "id": "dfareporting.subaccounts.patch", // "parameterOrder": [ @@ -50890,7 +50890,7 @@ func (c *SubaccountsPatchCall) Do(opts ...googleapi.CallOption) (*Subaccount, er // "type": "string" // } // }, - // "path": "dfareporting/v4/userprofiles/{profileId}/subaccounts", + // "path": "userprofiles/{profileId}/subaccounts", // "request": { // "$ref": "Subaccount" // }, @@ -50965,7 +50965,7 @@ func (c *SubaccountsUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v4/userprofiles/{profileId}/subaccounts") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/subaccounts") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("PUT", urls, body) if err != nil { @@ -51017,7 +51017,7 @@ func (c *SubaccountsUpdateCall) Do(opts ...googleapi.CallOption) (*Subaccount, e return ret, nil // { // "description": "Updates an existing subaccount.", - // "flatPath": "dfareporting/v4/userprofiles/{profileId}/subaccounts", + // "flatPath": "userprofiles/{profileId}/subaccounts", // "httpMethod": "PUT", // "id": "dfareporting.subaccounts.update", // "parameterOrder": [ @@ -51032,7 +51032,7 @@ func (c *SubaccountsUpdateCall) Do(opts ...googleapi.CallOption) (*Subaccount, e // "type": "string" // } // }, - // "path": "dfareporting/v4/userprofiles/{profileId}/subaccounts", + // "path": "userprofiles/{profileId}/subaccounts", // "request": { // "$ref": "Subaccount" // }, @@ -51117,7 +51117,7 @@ func (c *TargetableRemarketingListsGetCall) doRequest(alt string) (*http.Respons var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v4/userprofiles/{profileId}/targetableRemarketingLists/{id}") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/targetableRemarketingLists/{id}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -51170,7 +51170,7 @@ func (c *TargetableRemarketingListsGetCall) Do(opts ...googleapi.CallOption) (*T return ret, nil // { // "description": "Gets one remarketing list by ID.", - // "flatPath": "dfareporting/v4/userprofiles/{profileId}/targetableRemarketingLists/{id}", + // "flatPath": "userprofiles/{profileId}/targetableRemarketingLists/{id}", // "httpMethod": "GET", // "id": "dfareporting.targetableRemarketingLists.get", // "parameterOrder": [ @@ -51193,7 +51193,7 @@ func (c *TargetableRemarketingListsGetCall) Do(opts ...googleapi.CallOption) (*T // "type": "string" // } // }, - // "path": "dfareporting/v4/userprofiles/{profileId}/targetableRemarketingLists/{id}", + // "path": "userprofiles/{profileId}/targetableRemarketingLists/{id}", // "response": { // "$ref": "TargetableRemarketingList" // }, @@ -51334,7 +51334,7 @@ func (c *TargetableRemarketingListsListCall) doRequest(alt string) (*http.Respon var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v4/userprofiles/{profileId}/targetableRemarketingLists") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/targetableRemarketingLists") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -51387,7 +51387,7 @@ func (c *TargetableRemarketingListsListCall) Do(opts ...googleapi.CallOption) (* return ret, nil // { // "description": "Retrieves a list of targetable remarketing lists, possibly filtered. This method supports paging.", - // "flatPath": "dfareporting/v4/userprofiles/{profileId}/targetableRemarketingLists", + // "flatPath": "userprofiles/{profileId}/targetableRemarketingLists", // "httpMethod": "GET", // "id": "dfareporting.targetableRemarketingLists.list", // "parameterOrder": [ @@ -51462,7 +51462,7 @@ func (c *TargetableRemarketingListsListCall) Do(opts ...googleapi.CallOption) (* // "type": "string" // } // }, - // "path": "dfareporting/v4/userprofiles/{profileId}/targetableRemarketingLists", + // "path": "userprofiles/{profileId}/targetableRemarketingLists", // "response": { // "$ref": "TargetableRemarketingListsListResponse" // }, @@ -51565,7 +51565,7 @@ func (c *TargetingTemplatesGetCall) 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, "dfareporting/v4/userprofiles/{profileId}/targetingTemplates/{id}") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/targetingTemplates/{id}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -51618,7 +51618,7 @@ func (c *TargetingTemplatesGetCall) Do(opts ...googleapi.CallOption) (*Targeting return ret, nil // { // "description": "Gets one targeting template by ID.", - // "flatPath": "dfareporting/v4/userprofiles/{profileId}/targetingTemplates/{id}", + // "flatPath": "userprofiles/{profileId}/targetingTemplates/{id}", // "httpMethod": "GET", // "id": "dfareporting.targetingTemplates.get", // "parameterOrder": [ @@ -51641,7 +51641,7 @@ func (c *TargetingTemplatesGetCall) Do(opts ...googleapi.CallOption) (*Targeting // "type": "string" // } // }, - // "path": "dfareporting/v4/userprofiles/{profileId}/targetingTemplates/{id}", + // "path": "userprofiles/{profileId}/targetingTemplates/{id}", // "response": { // "$ref": "TargetingTemplate" // }, @@ -51713,7 +51713,7 @@ func (c *TargetingTemplatesInsertCall) doRequest(alt string) (*http.Response, er reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v4/userprofiles/{profileId}/targetingTemplates") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/targetingTemplates") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -51765,7 +51765,7 @@ func (c *TargetingTemplatesInsertCall) Do(opts ...googleapi.CallOption) (*Target return ret, nil // { // "description": "Inserts a new targeting template.", - // "flatPath": "dfareporting/v4/userprofiles/{profileId}/targetingTemplates", + // "flatPath": "userprofiles/{profileId}/targetingTemplates", // "httpMethod": "POST", // "id": "dfareporting.targetingTemplates.insert", // "parameterOrder": [ @@ -51780,7 +51780,7 @@ func (c *TargetingTemplatesInsertCall) Do(opts ...googleapi.CallOption) (*Target // "type": "string" // } // }, - // "path": "dfareporting/v4/userprofiles/{profileId}/targetingTemplates", + // "path": "userprofiles/{profileId}/targetingTemplates", // "request": { // "$ref": "TargetingTemplate" // }, @@ -51932,7 +51932,7 @@ func (c *TargetingTemplatesListCall) doRequest(alt string) (*http.Response, erro var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v4/userprofiles/{profileId}/targetingTemplates") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/targetingTemplates") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -51984,7 +51984,7 @@ func (c *TargetingTemplatesListCall) Do(opts ...googleapi.CallOption) (*Targetin return ret, nil // { // "description": "Retrieves a list of targeting templates, optionally filtered. This method supports paging.", - // "flatPath": "dfareporting/v4/userprofiles/{profileId}/targetingTemplates", + // "flatPath": "userprofiles/{profileId}/targetingTemplates", // "httpMethod": "GET", // "id": "dfareporting.targetingTemplates.list", // "parameterOrder": [ @@ -52059,7 +52059,7 @@ func (c *TargetingTemplatesListCall) Do(opts ...googleapi.CallOption) (*Targetin // "type": "string" // } // }, - // "path": "dfareporting/v4/userprofiles/{profileId}/targetingTemplates", + // "path": "userprofiles/{profileId}/targetingTemplates", // "response": { // "$ref": "TargetingTemplatesListResponse" // }, @@ -52155,7 +52155,7 @@ func (c *TargetingTemplatesPatchCall) doRequest(alt string) (*http.Response, err reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v4/userprofiles/{profileId}/targetingTemplates") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/targetingTemplates") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("PATCH", urls, body) if err != nil { @@ -52207,7 +52207,7 @@ func (c *TargetingTemplatesPatchCall) Do(opts ...googleapi.CallOption) (*Targeti return ret, nil // { // "description": "Updates an existing targeting template. This method supports patch semantics.", - // "flatPath": "dfareporting/v4/userprofiles/{profileId}/targetingTemplates", + // "flatPath": "userprofiles/{profileId}/targetingTemplates", // "httpMethod": "PATCH", // "id": "dfareporting.targetingTemplates.patch", // "parameterOrder": [ @@ -52230,7 +52230,7 @@ func (c *TargetingTemplatesPatchCall) Do(opts ...googleapi.CallOption) (*Targeti // "type": "string" // } // }, - // "path": "dfareporting/v4/userprofiles/{profileId}/targetingTemplates", + // "path": "userprofiles/{profileId}/targetingTemplates", // "request": { // "$ref": "TargetingTemplate" // }, @@ -52305,7 +52305,7 @@ func (c *TargetingTemplatesUpdateCall) doRequest(alt string) (*http.Response, er reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v4/userprofiles/{profileId}/targetingTemplates") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/targetingTemplates") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("PUT", urls, body) if err != nil { @@ -52357,7 +52357,7 @@ func (c *TargetingTemplatesUpdateCall) Do(opts ...googleapi.CallOption) (*Target return ret, nil // { // "description": "Updates an existing targeting template.", - // "flatPath": "dfareporting/v4/userprofiles/{profileId}/targetingTemplates", + // "flatPath": "userprofiles/{profileId}/targetingTemplates", // "httpMethod": "PUT", // "id": "dfareporting.targetingTemplates.update", // "parameterOrder": [ @@ -52372,7 +52372,7 @@ func (c *TargetingTemplatesUpdateCall) Do(opts ...googleapi.CallOption) (*Target // "type": "string" // } // }, - // "path": "dfareporting/v4/userprofiles/{profileId}/targetingTemplates", + // "path": "userprofiles/{profileId}/targetingTemplates", // "request": { // "$ref": "TargetingTemplate" // }, @@ -52454,7 +52454,7 @@ func (c *UserProfilesGetCall) 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, "dfareporting/v4/userprofiles/{profileId}") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -52506,7 +52506,7 @@ func (c *UserProfilesGetCall) Do(opts ...googleapi.CallOption) (*UserProfile, er return ret, nil // { // "description": "Gets one user profile by ID.", - // "flatPath": "dfareporting/v4/userprofiles/{profileId}", + // "flatPath": "userprofiles/{profileId}", // "httpMethod": "GET", // "id": "dfareporting.userProfiles.get", // "parameterOrder": [ @@ -52521,7 +52521,7 @@ func (c *UserProfilesGetCall) Do(opts ...googleapi.CallOption) (*UserProfile, er // "type": "string" // } // }, - // "path": "dfareporting/v4/userprofiles/{profileId}", + // "path": "userprofiles/{profileId}", // "response": { // "$ref": "UserProfile" // }, @@ -52598,7 +52598,7 @@ func (c *UserProfilesListCall) 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, "dfareporting/v4/userprofiles") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -52647,12 +52647,12 @@ func (c *UserProfilesListCall) Do(opts ...googleapi.CallOption) (*UserProfileLis return ret, nil // { // "description": "Retrieves list of user profiles for a user.", - // "flatPath": "dfareporting/v4/userprofiles", + // "flatPath": "userprofiles", // "httpMethod": "GET", // "id": "dfareporting.userProfiles.list", // "parameterOrder": [], // "parameters": {}, - // "path": "dfareporting/v4/userprofiles", + // "path": "userprofiles", // "response": { // "$ref": "UserProfileList" // }, @@ -52736,7 +52736,7 @@ func (c *UserRolePermissionGroupsGetCall) doRequest(alt string) (*http.Response, var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v4/userprofiles/{profileId}/userRolePermissionGroups/{id}") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/userRolePermissionGroups/{id}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -52789,7 +52789,7 @@ func (c *UserRolePermissionGroupsGetCall) Do(opts ...googleapi.CallOption) (*Use return ret, nil // { // "description": "Gets one user role permission group by ID.", - // "flatPath": "dfareporting/v4/userprofiles/{profileId}/userRolePermissionGroups/{id}", + // "flatPath": "userprofiles/{profileId}/userRolePermissionGroups/{id}", // "httpMethod": "GET", // "id": "dfareporting.userRolePermissionGroups.get", // "parameterOrder": [ @@ -52812,7 +52812,7 @@ func (c *UserRolePermissionGroupsGetCall) Do(opts ...googleapi.CallOption) (*Use // "type": "string" // } // }, - // "path": "dfareporting/v4/userprofiles/{profileId}/userRolePermissionGroups/{id}", + // "path": "userprofiles/{profileId}/userRolePermissionGroups/{id}", // "response": { // "$ref": "UserRolePermissionGroup" // }, @@ -52891,7 +52891,7 @@ func (c *UserRolePermissionGroupsListCall) doRequest(alt string) (*http.Response var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v4/userprofiles/{profileId}/userRolePermissionGroups") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/userRolePermissionGroups") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -52944,7 +52944,7 @@ func (c *UserRolePermissionGroupsListCall) Do(opts ...googleapi.CallOption) (*Us return ret, nil // { // "description": "Gets a list of all supported user role permission groups.", - // "flatPath": "dfareporting/v4/userprofiles/{profileId}/userRolePermissionGroups", + // "flatPath": "userprofiles/{profileId}/userRolePermissionGroups", // "httpMethod": "GET", // "id": "dfareporting.userRolePermissionGroups.list", // "parameterOrder": [ @@ -52959,7 +52959,7 @@ func (c *UserRolePermissionGroupsListCall) Do(opts ...googleapi.CallOption) (*Us // "type": "string" // } // }, - // "path": "dfareporting/v4/userprofiles/{profileId}/userRolePermissionGroups", + // "path": "userprofiles/{profileId}/userRolePermissionGroups", // "response": { // "$ref": "UserRolePermissionGroupsListResponse" // }, @@ -53041,7 +53041,7 @@ func (c *UserRolePermissionsGetCall) doRequest(alt string) (*http.Response, erro var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v4/userprofiles/{profileId}/userRolePermissions/{id}") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/userRolePermissions/{id}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -53094,7 +53094,7 @@ func (c *UserRolePermissionsGetCall) Do(opts ...googleapi.CallOption) (*UserRole return ret, nil // { // "description": "Gets one user role permission by ID.", - // "flatPath": "dfareporting/v4/userprofiles/{profileId}/userRolePermissions/{id}", + // "flatPath": "userprofiles/{profileId}/userRolePermissions/{id}", // "httpMethod": "GET", // "id": "dfareporting.userRolePermissions.get", // "parameterOrder": [ @@ -53117,7 +53117,7 @@ func (c *UserRolePermissionsGetCall) Do(opts ...googleapi.CallOption) (*UserRole // "type": "string" // } // }, - // "path": "dfareporting/v4/userprofiles/{profileId}/userRolePermissions/{id}", + // "path": "userprofiles/{profileId}/userRolePermissions/{id}", // "response": { // "$ref": "UserRolePermission" // }, @@ -53207,7 +53207,7 @@ func (c *UserRolePermissionsListCall) doRequest(alt string) (*http.Response, err var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v4/userprofiles/{profileId}/userRolePermissions") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/userRolePermissions") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -53259,7 +53259,7 @@ func (c *UserRolePermissionsListCall) Do(opts ...googleapi.CallOption) (*UserRol return ret, nil // { // "description": "Gets a list of user role permissions, possibly filtered.", - // "flatPath": "dfareporting/v4/userprofiles/{profileId}/userRolePermissions", + // "flatPath": "userprofiles/{profileId}/userRolePermissions", // "httpMethod": "GET", // "id": "dfareporting.userRolePermissions.list", // "parameterOrder": [ @@ -53281,7 +53281,7 @@ func (c *UserRolePermissionsListCall) Do(opts ...googleapi.CallOption) (*UserRol // "type": "string" // } // }, - // "path": "dfareporting/v4/userprofiles/{profileId}/userRolePermissions", + // "path": "userprofiles/{profileId}/userRolePermissions", // "response": { // "$ref": "UserRolePermissionsListResponse" // }, @@ -53349,7 +53349,7 @@ func (c *UserRolesDeleteCall) 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, "dfareporting/v4/userprofiles/{profileId}/userRoles/{id}") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/userRoles/{id}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("DELETE", urls, body) if err != nil { @@ -53377,7 +53377,7 @@ func (c *UserRolesDeleteCall) Do(opts ...googleapi.CallOption) error { return nil // { // "description": "Deletes an existing user role.", - // "flatPath": "dfareporting/v4/userprofiles/{profileId}/userRoles/{id}", + // "flatPath": "userprofiles/{profileId}/userRoles/{id}", // "httpMethod": "DELETE", // "id": "dfareporting.userRoles.delete", // "parameterOrder": [ @@ -53400,7 +53400,7 @@ func (c *UserRolesDeleteCall) Do(opts ...googleapi.CallOption) error { // "type": "string" // } // }, - // "path": "dfareporting/v4/userprofiles/{profileId}/userRoles/{id}", + // "path": "userprofiles/{profileId}/userRoles/{id}", // "scopes": [ // "https://www.googleapis.com/auth/dfatrafficking" // ] @@ -53479,7 +53479,7 @@ func (c *UserRolesGetCall) 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, "dfareporting/v4/userprofiles/{profileId}/userRoles/{id}") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/userRoles/{id}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -53532,7 +53532,7 @@ func (c *UserRolesGetCall) Do(opts ...googleapi.CallOption) (*UserRole, error) { return ret, nil // { // "description": "Gets one user role by ID.", - // "flatPath": "dfareporting/v4/userprofiles/{profileId}/userRoles/{id}", + // "flatPath": "userprofiles/{profileId}/userRoles/{id}", // "httpMethod": "GET", // "id": "dfareporting.userRoles.get", // "parameterOrder": [ @@ -53555,7 +53555,7 @@ func (c *UserRolesGetCall) Do(opts ...googleapi.CallOption) (*UserRole, error) { // "type": "string" // } // }, - // "path": "dfareporting/v4/userprofiles/{profileId}/userRoles/{id}", + // "path": "userprofiles/{profileId}/userRoles/{id}", // "response": { // "$ref": "UserRole" // }, @@ -53627,7 +53627,7 @@ func (c *UserRolesInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v4/userprofiles/{profileId}/userRoles") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/userRoles") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -53679,7 +53679,7 @@ func (c *UserRolesInsertCall) Do(opts ...googleapi.CallOption) (*UserRole, error return ret, nil // { // "description": "Inserts a new user role.", - // "flatPath": "dfareporting/v4/userprofiles/{profileId}/userRoles", + // "flatPath": "userprofiles/{profileId}/userRoles", // "httpMethod": "POST", // "id": "dfareporting.userRoles.insert", // "parameterOrder": [ @@ -53694,7 +53694,7 @@ func (c *UserRolesInsertCall) Do(opts ...googleapi.CallOption) (*UserRole, error // "type": "string" // } // }, - // "path": "dfareporting/v4/userprofiles/{profileId}/userRoles", + // "path": "userprofiles/{profileId}/userRoles", // "request": { // "$ref": "UserRole" // }, @@ -53854,7 +53854,7 @@ func (c *UserRolesListCall) 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, "dfareporting/v4/userprofiles/{profileId}/userRoles") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/userRoles") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -53906,7 +53906,7 @@ func (c *UserRolesListCall) Do(opts ...googleapi.CallOption) (*UserRolesListResp return ret, nil // { // "description": "Retrieves a list of user roles, possibly filtered. This method supports paging.", - // "flatPath": "dfareporting/v4/userprofiles/{profileId}/userRoles", + // "flatPath": "userprofiles/{profileId}/userRoles", // "httpMethod": "GET", // "id": "dfareporting.userRoles.list", // "parameterOrder": [ @@ -53986,7 +53986,7 @@ func (c *UserRolesListCall) Do(opts ...googleapi.CallOption) (*UserRolesListResp // "type": "string" // } // }, - // "path": "dfareporting/v4/userprofiles/{profileId}/userRoles", + // "path": "userprofiles/{profileId}/userRoles", // "response": { // "$ref": "UserRolesListResponse" // }, @@ -54082,7 +54082,7 @@ func (c *UserRolesPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v4/userprofiles/{profileId}/userRoles") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/userRoles") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("PATCH", urls, body) if err != nil { @@ -54134,7 +54134,7 @@ func (c *UserRolesPatchCall) Do(opts ...googleapi.CallOption) (*UserRole, error) return ret, nil // { // "description": "Updates an existing user role. This method supports patch semantics.", - // "flatPath": "dfareporting/v4/userprofiles/{profileId}/userRoles", + // "flatPath": "userprofiles/{profileId}/userRoles", // "httpMethod": "PATCH", // "id": "dfareporting.userRoles.patch", // "parameterOrder": [ @@ -54157,7 +54157,7 @@ func (c *UserRolesPatchCall) Do(opts ...googleapi.CallOption) (*UserRole, error) // "type": "string" // } // }, - // "path": "dfareporting/v4/userprofiles/{profileId}/userRoles", + // "path": "userprofiles/{profileId}/userRoles", // "request": { // "$ref": "UserRole" // }, @@ -54232,7 +54232,7 @@ func (c *UserRolesUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "dfareporting/v4/userprofiles/{profileId}/userRoles") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/userRoles") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("PUT", urls, body) if err != nil { @@ -54284,7 +54284,7 @@ func (c *UserRolesUpdateCall) Do(opts ...googleapi.CallOption) (*UserRole, error return ret, nil // { // "description": "Updates an existing user role.", - // "flatPath": "dfareporting/v4/userprofiles/{profileId}/userRoles", + // "flatPath": "userprofiles/{profileId}/userRoles", // "httpMethod": "PUT", // "id": "dfareporting.userRoles.update", // "parameterOrder": [ @@ -54299,7 +54299,7 @@ func (c *UserRolesUpdateCall) Do(opts ...googleapi.CallOption) (*UserRole, error // "type": "string" // } // }, - // "path": "dfareporting/v4/userprofiles/{profileId}/userRoles", + // "path": "userprofiles/{profileId}/userRoles", // "request": { // "$ref": "UserRole" // }, @@ -54384,7 +54384,7 @@ func (c *VideoFormatsGetCall) 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, "dfareporting/v4/userprofiles/{profileId}/videoFormats/{id}") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/videoFormats/{id}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -54437,7 +54437,7 @@ func (c *VideoFormatsGetCall) Do(opts ...googleapi.CallOption) (*VideoFormat, er return ret, nil // { // "description": "Gets one video format by ID.", - // "flatPath": "dfareporting/v4/userprofiles/{profileId}/videoFormats/{id}", + // "flatPath": "userprofiles/{profileId}/videoFormats/{id}", // "httpMethod": "GET", // "id": "dfareporting.videoFormats.get", // "parameterOrder": [ @@ -54460,7 +54460,7 @@ func (c *VideoFormatsGetCall) Do(opts ...googleapi.CallOption) (*VideoFormat, er // "type": "string" // } // }, - // "path": "dfareporting/v4/userprofiles/{profileId}/videoFormats/{id}", + // "path": "userprofiles/{profileId}/videoFormats/{id}", // "response": { // "$ref": "VideoFormat" // }, @@ -54539,7 +54539,7 @@ func (c *VideoFormatsListCall) 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, "dfareporting/v4/userprofiles/{profileId}/videoFormats") + urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/videoFormats") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -54591,7 +54591,7 @@ func (c *VideoFormatsListCall) Do(opts ...googleapi.CallOption) (*VideoFormatsLi return ret, nil // { // "description": "Lists available video formats.", - // "flatPath": "dfareporting/v4/userprofiles/{profileId}/videoFormats", + // "flatPath": "userprofiles/{profileId}/videoFormats", // "httpMethod": "GET", // "id": "dfareporting.videoFormats.list", // "parameterOrder": [ @@ -54606,7 +54606,7 @@ func (c *VideoFormatsListCall) Do(opts ...googleapi.CallOption) (*VideoFormatsLi // "type": "string" // } // }, - // "path": "dfareporting/v4/userprofiles/{profileId}/videoFormats", + // "path": "userprofiles/{profileId}/videoFormats", // "response": { // "$ref": "VideoFormatsListResponse" // }, diff --git a/displayvideo/v1/displayvideo-api.json b/displayvideo/v1/displayvideo-api.json index 6663d03ac61..5809aa1fc62 100644 --- a/displayvideo/v1/displayvideo-api.json +++ b/displayvideo/v1/displayvideo-api.json @@ -1706,7 +1706,7 @@ "type": "string" }, "insertionOrderId": { - "description": "The ID of the insertion order we need to delete.", + "description": "The ID of the insertion order to delete.", "format": "int64", "location": "path", "pattern": "^[^/]+$", @@ -2405,7 +2405,7 @@ "type": "string" }, "lineItemId": { - "description": "The ID of the line item we need to fetch.", + "description": "The ID of the line item to delete.", "format": "int64", "location": "path", "pattern": "^[^/]+$", @@ -4452,7 +4452,7 @@ "type": "string" }, "targetingType": { - "description": "Required. Identifies the type of this assigned targeting option. Supported targeting types: * `TARGETING_TYPE_CHANNEL` * `TARGETING_TYPE_DIGITAL_CONTENT_LABEL_EXCLUSION` * `TARGETING_TYPE_OMID` * `TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION`", + "description": "Required. Identifies the type of this assigned targeting option. Supported targeting types: * `TARGETING_TYPE_CHANNEL` * `TARGETING_TYPE_DIGITAL_CONTENT_LABEL_EXCLUSION` * `TARGETING_TYPE_OMID` * `TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION` * `TARGETING_TYPE_YOUTUBE_VIDEO` * `TARGETING_TYPE_YOUTUBE_CHANNEL`", "enum": [ "TARGETING_TYPE_UNSPECIFIED", "TARGETING_TYPE_CHANNEL", @@ -4603,7 +4603,7 @@ "type": "string" }, "targetingType": { - "description": "Required. Identifies the type of assigned targeting options to list. Supported targeting types: * `TARGETING_TYPE_CHANNEL` * `TARGETING_TYPE_DIGITAL_CONTENT_LABEL_EXCLUSION` * `TARGETING_TYPE_OMID` * `TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION`", + "description": "Required. Identifies the type of assigned targeting options to list. Supported targeting types: * `TARGETING_TYPE_CHANNEL` * `TARGETING_TYPE_DIGITAL_CONTENT_LABEL_EXCLUSION` * `TARGETING_TYPE_OMID` * `TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION` * `TARGETING_TYPE_YOUTUBE_VIDEO` * `TARGETING_TYPE_YOUTUBE_CHANNEL`", "enum": [ "TARGETING_TYPE_UNSPECIFIED", "TARGETING_TYPE_CHANNEL", @@ -8146,7 +8146,7 @@ } } }, - "revision": "20220802", + "revision": "20220815", "rootUrl": "https://displayvideo.googleapis.com/", "schemas": { "ActivateManualTriggerRequest": { @@ -8497,7 +8497,17 @@ "AGE_RANGE_45_54", "AGE_RANGE_55_64", "AGE_RANGE_65_PLUS", - "AGE_RANGE_UNKNOWN" + "AGE_RANGE_UNKNOWN", + "AGE_RANGE_18_20", + "AGE_RANGE_21_24", + "AGE_RANGE_25_29", + "AGE_RANGE_30_34", + "AGE_RANGE_35_39", + "AGE_RANGE_40_44", + "AGE_RANGE_45_49", + "AGE_RANGE_50_54", + "AGE_RANGE_55_59", + "AGE_RANGE_60_64" ], "enumDescriptions": [ "Default value when age range is not specified in this version. This enum is a placeholder for default value and does not represent a real age range option.", @@ -8507,7 +8517,17 @@ "The age range of the audience is 45 to 54.", "The age range of the audience is 55 to 64.", "The age range of the audience is 65 and up.", - "The age range of the audience is unknown." + "The age range of the audience is unknown.", + "The age range of the audience is 18 to 20, only supported for the AdGroup of YouTube Programmatic Reservation line item.", + "The age range of the audience is 21 to 24, only supported for the AdGroup of YouTube Programmatic Reservation line item.", + "The age range of the audience is 25 to 29, only supported for the AdGroup of YouTube Programmatic Reservation line item.", + "The age range of the audience is 30 to 34, only supported for the AdGroup of YouTube Programmatic Reservation line item.", + "The age range of the audience is 35 to 39, only supported for the AdGroup of YouTube Programmatic Reservation line item.", + "The age range of the audience is 40 to 44, only supported for the AdGroup of YouTube Programmatic Reservation line item.", + "The age range of the audience is 45 to 49, only supported for the AdGroup of YouTube Programmatic Reservation line item.", + "The age range of the audience is 50 to 54, only supported for the AdGroup of YouTube Programmatic Reservation line item.", + "The age range of the audience is 55 to 59, only supported for the AdGroup of YouTube Programmatic Reservation line item.", + "The age range of the audience is 60 to 64, only supported for the AdGroup of YouTube Programmatic Reservation line item." ], "type": "string" }, @@ -8532,7 +8552,17 @@ "AGE_RANGE_45_54", "AGE_RANGE_55_64", "AGE_RANGE_65_PLUS", - "AGE_RANGE_UNKNOWN" + "AGE_RANGE_UNKNOWN", + "AGE_RANGE_18_20", + "AGE_RANGE_21_24", + "AGE_RANGE_25_29", + "AGE_RANGE_30_34", + "AGE_RANGE_35_39", + "AGE_RANGE_40_44", + "AGE_RANGE_45_49", + "AGE_RANGE_50_54", + "AGE_RANGE_55_59", + "AGE_RANGE_60_64" ], "enumDescriptions": [ "Default value when age range is not specified in this version. This enum is a placeholder for default value and does not represent a real age range option.", @@ -8542,7 +8572,17 @@ "The age range of the audience is 45 to 54.", "The age range of the audience is 55 to 64.", "The age range of the audience is 65 and up.", - "The age range of the audience is unknown." + "The age range of the audience is unknown.", + "The age range of the audience is 18 to 20, only supported for the AdGroup of YouTube Programmatic Reservation line item.", + "The age range of the audience is 21 to 24, only supported for the AdGroup of YouTube Programmatic Reservation line item.", + "The age range of the audience is 25 to 29, only supported for the AdGroup of YouTube Programmatic Reservation line item.", + "The age range of the audience is 30 to 34, only supported for the AdGroup of YouTube Programmatic Reservation line item.", + "The age range of the audience is 35 to 39, only supported for the AdGroup of YouTube Programmatic Reservation line item.", + "The age range of the audience is 40 to 44, only supported for the AdGroup of YouTube Programmatic Reservation line item.", + "The age range of the audience is 45 to 49, only supported for the AdGroup of YouTube Programmatic Reservation line item.", + "The age range of the audience is 50 to 54, only supported for the AdGroup of YouTube Programmatic Reservation line item.", + "The age range of the audience is 55 to 59, only supported for the AdGroup of YouTube Programmatic Reservation line item.", + "The age range of the audience is 60 to 64, only supported for the AdGroup of YouTube Programmatic Reservation line item." ], "readOnly": true, "type": "string" @@ -12572,9 +12612,12 @@ "EXCHANGE_WAZE", "EXCHANGE_SOUNDCAST", "EXCHANGE_SHARETHROUGH", + "EXCHANGE_FYBER", "EXCHANGE_RED_FOR_PUBLISHERS", "EXCHANGE_MEDIANET", - "EXCHANGE_TAPJOY" + "EXCHANGE_TAPJOY", + "EXCHANGE_VISTAR", + "EXCHANGE_DAX" ], "enumDescriptions": [ "Exchange is not specified or is unknown in this version.", @@ -12640,9 +12683,12 @@ "Waze.", "SoundCast.", "Sharethrough.", + "Fyber.", "Red For Publishers.", "Media.net.", - "Tapjoy." + "Tapjoy.", + "Vistar.", + "DAX." ], "type": "string" }, @@ -12734,9 +12780,12 @@ "EXCHANGE_WAZE", "EXCHANGE_SOUNDCAST", "EXCHANGE_SHARETHROUGH", + "EXCHANGE_FYBER", "EXCHANGE_RED_FOR_PUBLISHERS", "EXCHANGE_MEDIANET", - "EXCHANGE_TAPJOY" + "EXCHANGE_TAPJOY", + "EXCHANGE_VISTAR", + "EXCHANGE_DAX" ], "enumDescriptions": [ "Exchange is not specified or is unknown in this version.", @@ -12802,9 +12851,12 @@ "Waze.", "SoundCast.", "Sharethrough.", + "Fyber.", "Red For Publishers.", "Media.net.", - "Tapjoy." + "Tapjoy.", + "Vistar.", + "DAX." ], "type": "string" }, @@ -12897,9 +12949,12 @@ "EXCHANGE_WAZE", "EXCHANGE_SOUNDCAST", "EXCHANGE_SHARETHROUGH", + "EXCHANGE_FYBER", "EXCHANGE_RED_FOR_PUBLISHERS", "EXCHANGE_MEDIANET", - "EXCHANGE_TAPJOY" + "EXCHANGE_TAPJOY", + "EXCHANGE_VISTAR", + "EXCHANGE_DAX" ], "enumDescriptions": [ "Exchange is not specified or is unknown in this version.", @@ -12965,9 +13020,12 @@ "Waze.", "SoundCast.", "Sharethrough.", + "Fyber.", "Red For Publishers.", "Media.net.", - "Tapjoy." + "Tapjoy.", + "Vistar.", + "DAX." ], "readOnly": true, "type": "string" @@ -13801,9 +13859,12 @@ "EXCHANGE_WAZE", "EXCHANGE_SOUNDCAST", "EXCHANGE_SHARETHROUGH", + "EXCHANGE_FYBER", "EXCHANGE_RED_FOR_PUBLISHERS", "EXCHANGE_MEDIANET", - "EXCHANGE_TAPJOY" + "EXCHANGE_TAPJOY", + "EXCHANGE_VISTAR", + "EXCHANGE_DAX" ], "enumDescriptions": [ "Exchange is not specified or is unknown in this version.", @@ -13869,9 +13930,12 @@ "Waze.", "SoundCast.", "Sharethrough.", + "Fyber.", "Red For Publishers.", "Media.net.", - "Tapjoy." + "Tapjoy.", + "Vistar.", + "DAX." ], "type": "string" }, @@ -14636,9 +14700,12 @@ "EXCHANGE_WAZE", "EXCHANGE_SOUNDCAST", "EXCHANGE_SHARETHROUGH", + "EXCHANGE_FYBER", "EXCHANGE_RED_FOR_PUBLISHERS", "EXCHANGE_MEDIANET", - "EXCHANGE_TAPJOY" + "EXCHANGE_TAPJOY", + "EXCHANGE_VISTAR", + "EXCHANGE_DAX" ], "enumDescriptions": [ "Exchange is not specified or is unknown in this version.", @@ -14704,9 +14771,12 @@ "Waze.", "SoundCast.", "Sharethrough.", + "Fyber.", "Red For Publishers.", "Media.net.", - "Tapjoy." + "Tapjoy.", + "Vistar.", + "DAX." ], "type": "string" }, diff --git a/displayvideo/v1/displayvideo-gen.go b/displayvideo/v1/displayvideo-gen.go index 489f15ff91b..bf1dd617959 100644 --- a/displayvideo/v1/displayvideo-gen.go +++ b/displayvideo/v1/displayvideo-gen.go @@ -1202,6 +1202,36 @@ type AgeRangeAssignedTargetingOptionDetails struct { // "AGE_RANGE_55_64" - The age range of the audience is 55 to 64. // "AGE_RANGE_65_PLUS" - The age range of the audience is 65 and up. // "AGE_RANGE_UNKNOWN" - The age range of the audience is unknown. + // "AGE_RANGE_18_20" - The age range of the audience is 18 to 20, only + // supported for the AdGroup of YouTube Programmatic Reservation line + // item. + // "AGE_RANGE_21_24" - The age range of the audience is 21 to 24, only + // supported for the AdGroup of YouTube Programmatic Reservation line + // item. + // "AGE_RANGE_25_29" - The age range of the audience is 25 to 29, only + // supported for the AdGroup of YouTube Programmatic Reservation line + // item. + // "AGE_RANGE_30_34" - The age range of the audience is 30 to 34, only + // supported for the AdGroup of YouTube Programmatic Reservation line + // item. + // "AGE_RANGE_35_39" - The age range of the audience is 35 to 39, only + // supported for the AdGroup of YouTube Programmatic Reservation line + // item. + // "AGE_RANGE_40_44" - The age range of the audience is 40 to 44, only + // supported for the AdGroup of YouTube Programmatic Reservation line + // item. + // "AGE_RANGE_45_49" - The age range of the audience is 45 to 49, only + // supported for the AdGroup of YouTube Programmatic Reservation line + // item. + // "AGE_RANGE_50_54" - The age range of the audience is 50 to 54, only + // supported for the AdGroup of YouTube Programmatic Reservation line + // item. + // "AGE_RANGE_55_59" - The age range of the audience is 55 to 59, only + // supported for the AdGroup of YouTube Programmatic Reservation line + // item. + // "AGE_RANGE_60_64" - The age range of the audience is 60 to 64, only + // supported for the AdGroup of YouTube Programmatic Reservation line + // item. AgeRange string `json:"ageRange,omitempty"` // TargetingOptionId: Required. The targeting_option_id of a @@ -1248,6 +1278,36 @@ type AgeRangeTargetingOptionDetails struct { // "AGE_RANGE_55_64" - The age range of the audience is 55 to 64. // "AGE_RANGE_65_PLUS" - The age range of the audience is 65 and up. // "AGE_RANGE_UNKNOWN" - The age range of the audience is unknown. + // "AGE_RANGE_18_20" - The age range of the audience is 18 to 20, only + // supported for the AdGroup of YouTube Programmatic Reservation line + // item. + // "AGE_RANGE_21_24" - The age range of the audience is 21 to 24, only + // supported for the AdGroup of YouTube Programmatic Reservation line + // item. + // "AGE_RANGE_25_29" - The age range of the audience is 25 to 29, only + // supported for the AdGroup of YouTube Programmatic Reservation line + // item. + // "AGE_RANGE_30_34" - The age range of the audience is 30 to 34, only + // supported for the AdGroup of YouTube Programmatic Reservation line + // item. + // "AGE_RANGE_35_39" - The age range of the audience is 35 to 39, only + // supported for the AdGroup of YouTube Programmatic Reservation line + // item. + // "AGE_RANGE_40_44" - The age range of the audience is 40 to 44, only + // supported for the AdGroup of YouTube Programmatic Reservation line + // item. + // "AGE_RANGE_45_49" - The age range of the audience is 45 to 49, only + // supported for the AdGroup of YouTube Programmatic Reservation line + // item. + // "AGE_RANGE_50_54" - The age range of the audience is 50 to 54, only + // supported for the AdGroup of YouTube Programmatic Reservation line + // item. + // "AGE_RANGE_55_59" - The age range of the audience is 55 to 59, only + // supported for the AdGroup of YouTube Programmatic Reservation line + // item. + // "AGE_RANGE_60_64" - The age range of the audience is 60 to 64, only + // supported for the AdGroup of YouTube Programmatic Reservation line + // item. AgeRange string `json:"ageRange,omitempty"` // ForceSendFields is a list of field names (e.g. "AgeRange") to @@ -7582,9 +7642,12 @@ type ExchangeConfigEnabledExchange struct { // "EXCHANGE_WAZE" - Waze. // "EXCHANGE_SOUNDCAST" - SoundCast. // "EXCHANGE_SHARETHROUGH" - Sharethrough. + // "EXCHANGE_FYBER" - Fyber. // "EXCHANGE_RED_FOR_PUBLISHERS" - Red For Publishers. // "EXCHANGE_MEDIANET" - Media.net. // "EXCHANGE_TAPJOY" - Tapjoy. + // "EXCHANGE_VISTAR" - Vistar. + // "EXCHANGE_DAX" - DAX. Exchange string `json:"exchange,omitempty"` // GoogleAdManagerAgencyId: Output only. Agency ID of Google Ad Manager. @@ -7693,9 +7756,12 @@ type ExchangeReviewStatus struct { // "EXCHANGE_WAZE" - Waze. // "EXCHANGE_SOUNDCAST" - SoundCast. // "EXCHANGE_SHARETHROUGH" - Sharethrough. + // "EXCHANGE_FYBER" - Fyber. // "EXCHANGE_RED_FOR_PUBLISHERS" - Red For Publishers. // "EXCHANGE_MEDIANET" - Media.net. // "EXCHANGE_TAPJOY" - Tapjoy. + // "EXCHANGE_VISTAR" - Vistar. + // "EXCHANGE_DAX" - DAX. Exchange string `json:"exchange,omitempty"` // Status: Status of the exchange review. @@ -7803,9 +7869,12 @@ type ExchangeTargetingOptionDetails struct { // "EXCHANGE_WAZE" - Waze. // "EXCHANGE_SOUNDCAST" - SoundCast. // "EXCHANGE_SHARETHROUGH" - Sharethrough. + // "EXCHANGE_FYBER" - Fyber. // "EXCHANGE_RED_FOR_PUBLISHERS" - Red For Publishers. // "EXCHANGE_MEDIANET" - Media.net. // "EXCHANGE_TAPJOY" - Tapjoy. + // "EXCHANGE_VISTAR" - Vistar. + // "EXCHANGE_DAX" - DAX. Exchange string `json:"exchange,omitempty"` // ForceSendFields is a list of field names (e.g. "Exchange") to @@ -8915,9 +8984,12 @@ type GuaranteedOrder struct { // "EXCHANGE_WAZE" - Waze. // "EXCHANGE_SOUNDCAST" - SoundCast. // "EXCHANGE_SHARETHROUGH" - Sharethrough. + // "EXCHANGE_FYBER" - Fyber. // "EXCHANGE_RED_FOR_PUBLISHERS" - Red For Publishers. // "EXCHANGE_MEDIANET" - Media.net. // "EXCHANGE_TAPJOY" - Tapjoy. + // "EXCHANGE_VISTAR" - Vistar. + // "EXCHANGE_DAX" - DAX. Exchange string `json:"exchange,omitempty"` // GuaranteedOrderId: Output only. The unique identifier of the @@ -9784,9 +9856,12 @@ type InventorySource struct { // "EXCHANGE_WAZE" - Waze. // "EXCHANGE_SOUNDCAST" - SoundCast. // "EXCHANGE_SHARETHROUGH" - Sharethrough. + // "EXCHANGE_FYBER" - Fyber. // "EXCHANGE_RED_FOR_PUBLISHERS" - Red For Publishers. // "EXCHANGE_MEDIANET" - Media.net. // "EXCHANGE_TAPJOY" - Tapjoy. + // "EXCHANGE_VISTAR" - Vistar. + // "EXCHANGE_DAX" - DAX. Exchange string `json:"exchange,omitempty"` // GuaranteedOrderId: Immutable. The ID of the guaranteed order that @@ -22544,7 +22619,7 @@ type AdvertisersInsertionOrdersDeleteCall struct { // // - advertiserId: The ID of the advertiser this insertion order belongs // to. -// - insertionOrderId: The ID of the insertion order we need to delete. +// - insertionOrderId: The ID of the insertion order to delete. func (r *AdvertisersInsertionOrdersService) Delete(advertiserId int64, insertionOrderId int64) *AdvertisersInsertionOrdersDeleteCall { c := &AdvertisersInsertionOrdersDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.advertiserId = advertiserId @@ -22657,7 +22732,7 @@ func (c *AdvertisersInsertionOrdersDeleteCall) Do(opts ...googleapi.CallOption) // "type": "string" // }, // "insertionOrderId": { - // "description": "The ID of the insertion order we need to delete.", + // "description": "The ID of the insertion order to delete.", // "format": "int64", // "location": "path", // "pattern": "^[^/]+$", @@ -24900,7 +24975,7 @@ type AdvertisersLineItemsDeleteCall struct { // delete it. // // - advertiserId: The ID of the advertiser this line item belongs to. -// - lineItemId: The ID of the line item we need to fetch. +// - lineItemId: The ID of the line item to delete. func (r *AdvertisersLineItemsService) Delete(advertiserId int64, lineItemId int64) *AdvertisersLineItemsDeleteCall { c := &AdvertisersLineItemsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.advertiserId = advertiserId @@ -25013,7 +25088,7 @@ func (c *AdvertisersLineItemsDeleteCall) Do(opts ...googleapi.CallOption) (*Empt // "type": "string" // }, // "lineItemId": { - // "description": "The ID of the line item we need to fetch.", + // "description": "The ID of the line item to delete.", // "format": "int64", // "location": "path", // "pattern": "^[^/]+$", @@ -31669,7 +31744,8 @@ type AdvertisersTargetingTypesAssignedTargetingOptionsGetCall struct { // option. Supported targeting types: * `TARGETING_TYPE_CHANNEL` * // `TARGETING_TYPE_DIGITAL_CONTENT_LABEL_EXCLUSION` * // `TARGETING_TYPE_OMID` * -// `TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION`. +// `TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION` * +// `TARGETING_TYPE_YOUTUBE_VIDEO` * `TARGETING_TYPE_YOUTUBE_CHANNEL`. func (r *AdvertisersTargetingTypesAssignedTargetingOptionsService) Get(advertiserId int64, targetingType string, assignedTargetingOptionId string) *AdvertisersTargetingTypesAssignedTargetingOptionsGetCall { c := &AdvertisersTargetingTypesAssignedTargetingOptionsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.advertiserId = advertiserId @@ -31805,7 +31881,7 @@ func (c *AdvertisersTargetingTypesAssignedTargetingOptionsGetCall) Do(opts ...go // "type": "string" // }, // "targetingType": { - // "description": "Required. Identifies the type of this assigned targeting option. Supported targeting types: * `TARGETING_TYPE_CHANNEL` * `TARGETING_TYPE_DIGITAL_CONTENT_LABEL_EXCLUSION` * `TARGETING_TYPE_OMID` * `TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION`", + // "description": "Required. Identifies the type of this assigned targeting option. Supported targeting types: * `TARGETING_TYPE_CHANNEL` * `TARGETING_TYPE_DIGITAL_CONTENT_LABEL_EXCLUSION` * `TARGETING_TYPE_OMID` * `TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION` * `TARGETING_TYPE_YOUTUBE_VIDEO` * `TARGETING_TYPE_YOUTUBE_CHANNEL`", // "enum": [ // "TARGETING_TYPE_UNSPECIFIED", // "TARGETING_TYPE_CHANNEL", @@ -31938,7 +32014,8 @@ type AdvertisersTargetingTypesAssignedTargetingOptionsListCall struct { // list. Supported targeting types: * `TARGETING_TYPE_CHANNEL` * // `TARGETING_TYPE_DIGITAL_CONTENT_LABEL_EXCLUSION` * // `TARGETING_TYPE_OMID` * -// `TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION`. +// `TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION` * +// `TARGETING_TYPE_YOUTUBE_VIDEO` * `TARGETING_TYPE_YOUTUBE_CHANNEL`. func (r *AdvertisersTargetingTypesAssignedTargetingOptionsService) List(advertiserId int64, targetingType string) *AdvertisersTargetingTypesAssignedTargetingOptionsListCall { c := &AdvertisersTargetingTypesAssignedTargetingOptionsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.advertiserId = advertiserId @@ -32130,7 +32207,7 @@ func (c *AdvertisersTargetingTypesAssignedTargetingOptionsListCall) Do(opts ...g // "type": "string" // }, // "targetingType": { - // "description": "Required. Identifies the type of assigned targeting options to list. Supported targeting types: * `TARGETING_TYPE_CHANNEL` * `TARGETING_TYPE_DIGITAL_CONTENT_LABEL_EXCLUSION` * `TARGETING_TYPE_OMID` * `TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION`", + // "description": "Required. Identifies the type of assigned targeting options to list. Supported targeting types: * `TARGETING_TYPE_CHANNEL` * `TARGETING_TYPE_DIGITAL_CONTENT_LABEL_EXCLUSION` * `TARGETING_TYPE_OMID` * `TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION` * `TARGETING_TYPE_YOUTUBE_VIDEO` * `TARGETING_TYPE_YOUTUBE_CHANNEL`", // "enum": [ // "TARGETING_TYPE_UNSPECIFIED", // "TARGETING_TYPE_CHANNEL", diff --git a/dlp/v2/dlp-api.json b/dlp/v2/dlp-api.json index 09d9d5b27f0..4ee5c8e094b 100644 --- a/dlp/v2/dlp-api.json +++ b/dlp/v2/dlp-api.json @@ -1178,7 +1178,7 @@ "type": "string" }, "parent": { - "description": "Required. Parent resource name. The format of this value varies depending on the scope of the request (project or organization) and whether you have [specified a processing location](https://cloud.google.com/dlp/docs/specifying-location): + Projects scope, location specified: `projects/`PROJECT_ID`/locations/`LOCATION_ID + Projects scope, no location specified (defaults to global): `projects/`PROJECT_ID + Organizations scope, location specified: `organizations/`ORG_ID`/locations/`LOCATION_ID + Organizations scope, no location specified (defaults to global): `organizations/`ORG_ID The following example `parent` string specifies a parent project with the identifier `example-project`, and specifies the `europe-west3` location for processing data: parent=projects/example-project/locations/europe-west3", + "description": "Required. Parent resource name. The format of this value varies depending on the scope of the request (project or organization) and whether you have [specified a processing location](https://cloud.google.com/dlp/docs/specifying-location): + Projects scope, location specified: `projects/`PROJECT_ID`/locations/`LOCATION_ID + Projects scope, no location specified (defaults to global): `projects/`PROJECT_ID The following example `parent` string specifies a parent project with the identifier `example-project`, and specifies the `europe-west3` location for processing data: parent=projects/example-project/locations/europe-west3", "location": "path", "pattern": "^organizations/[^/]+/locations/[^/]+$", "required": true, @@ -1336,7 +1336,7 @@ "type": "string" }, "parent": { - "description": "Required. Parent resource name. The format of this value varies depending on the scope of the request (project or organization) and whether you have [specified a processing location](https://cloud.google.com/dlp/docs/specifying-location): + Projects scope, location specified: `projects/`PROJECT_ID`/locations/`LOCATION_ID + Projects scope, no location specified (defaults to global): `projects/`PROJECT_ID + Organizations scope, location specified: `organizations/`ORG_ID`/locations/`LOCATION_ID + Organizations scope, no location specified (defaults to global): `organizations/`ORG_ID The following example `parent` string specifies a parent project with the identifier `example-project`, and specifies the `europe-west3` location for processing data: parent=projects/example-project/locations/europe-west3", + "description": "Required. Parent resource name. The format of this value varies depending on the scope of the request (project or organization) and whether you have [specified a processing location](https://cloud.google.com/dlp/docs/specifying-location): + Projects scope, location specified: `projects/`PROJECT_ID`/locations/`LOCATION_ID + Projects scope, no location specified (defaults to global): `projects/`PROJECT_ID The following example `parent` string specifies a parent project with the identifier `example-project`, and specifies the `europe-west3` location for processing data: parent=projects/example-project/locations/europe-west3", "location": "path", "pattern": "^organizations/[^/]+$", "required": true, @@ -3206,7 +3206,7 @@ "type": "string" }, "parent": { - "description": "Required. Parent resource name. The format of this value varies depending on the scope of the request (project or organization) and whether you have [specified a processing location](https://cloud.google.com/dlp/docs/specifying-location): + Projects scope, location specified: `projects/`PROJECT_ID`/locations/`LOCATION_ID + Projects scope, no location specified (defaults to global): `projects/`PROJECT_ID + Organizations scope, location specified: `organizations/`ORG_ID`/locations/`LOCATION_ID + Organizations scope, no location specified (defaults to global): `organizations/`ORG_ID The following example `parent` string specifies a parent project with the identifier `example-project`, and specifies the `europe-west3` location for processing data: parent=projects/example-project/locations/europe-west3", + "description": "Required. Parent resource name. The format of this value varies depending on the scope of the request (project or organization) and whether you have [specified a processing location](https://cloud.google.com/dlp/docs/specifying-location): + Projects scope, location specified: `projects/`PROJECT_ID`/locations/`LOCATION_ID + Projects scope, no location specified (defaults to global): `projects/`PROJECT_ID The following example `parent` string specifies a parent project with the identifier `example-project`, and specifies the `europe-west3` location for processing data: parent=projects/example-project/locations/europe-west3", "location": "path", "pattern": "^projects/[^/]+/locations/[^/]+$", "required": true, @@ -3364,7 +3364,7 @@ "type": "string" }, "parent": { - "description": "Required. Parent resource name. The format of this value varies depending on the scope of the request (project or organization) and whether you have [specified a processing location](https://cloud.google.com/dlp/docs/specifying-location): + Projects scope, location specified: `projects/`PROJECT_ID`/locations/`LOCATION_ID + Projects scope, no location specified (defaults to global): `projects/`PROJECT_ID + Organizations scope, location specified: `organizations/`ORG_ID`/locations/`LOCATION_ID + Organizations scope, no location specified (defaults to global): `organizations/`ORG_ID The following example `parent` string specifies a parent project with the identifier `example-project`, and specifies the `europe-west3` location for processing data: parent=projects/example-project/locations/europe-west3", + "description": "Required. Parent resource name. The format of this value varies depending on the scope of the request (project or organization) and whether you have [specified a processing location](https://cloud.google.com/dlp/docs/specifying-location): + Projects scope, location specified: `projects/`PROJECT_ID`/locations/`LOCATION_ID + Projects scope, no location specified (defaults to global): `projects/`PROJECT_ID The following example `parent` string specifies a parent project with the identifier `example-project`, and specifies the `europe-west3` location for processing data: parent=projects/example-project/locations/europe-west3", "location": "path", "pattern": "^projects/[^/]+$", "required": true, @@ -3412,7 +3412,7 @@ } } }, - "revision": "20220806", + "revision": "20220812", "rootUrl": "https://dlp.googleapis.com/", "schemas": { "GooglePrivacyDlpV2Action": { @@ -3421,7 +3421,7 @@ "properties": { "deidentify": { "$ref": "GooglePrivacyDlpV2Deidentify", - "description": "Create a de-identified copy of the input data. Applicable for non-image data only. The de-identified copy is in the same location as the original data." + "description": "Create a de-identified copy of the input data." }, "jobNotificationEmails": { "$ref": "GooglePrivacyDlpV2JobNotificationEmails", @@ -3456,6 +3456,18 @@ "properties": {}, "type": "object" }, + "GooglePrivacyDlpV2AllInfoTypes": { + "description": "Apply transformation to all findings.", + "id": "GooglePrivacyDlpV2AllInfoTypes", + "properties": {}, + "type": "object" + }, + "GooglePrivacyDlpV2AllText": { + "description": "Apply to all text.", + "id": "GooglePrivacyDlpV2AllText", + "properties": {}, + "type": "object" + }, "GooglePrivacyDlpV2AnalyzeDataSourceRiskDetails": { "description": "Result of a risk analysis operation request.", "id": "GooglePrivacyDlpV2AnalyzeDataSourceRiskDetails", @@ -4636,11 +4648,11 @@ "type": "object" }, "GooglePrivacyDlpV2Deidentify": { - "description": "Create a de-identified copy of the requested table or files. . A TransformationDetail will be created for each transformation. If any rows in BigQuery are skipped during de-identification (transformation errors or row size exceeds BigQuery insert API limits) they are placed in the failure output table. If the original row exceeds the BigQuery insert API limit it will be truncated when written to the failure output table. The failure output table can be set in the action.deidentify.output.big_query_output.deidentified_failure_output_table field, if no table is set, a table will be automatically created in the same project and dataset as the original table. Compatible with: Inspect", + "description": "Create a de-identified copy of the requested table or files. A TransformationDetail will be created for each transformation. If any rows in BigQuery are skipped during de-identification (transformation errors or row size exceeds BigQuery insert API limits) they are placed in the failure output table. If the original row exceeds the BigQuery insert API limit it will be truncated when written to the failure output table. The failure output table can be set in the action.deidentify.output.big_query_output.deidentified_failure_output_table field, if no table is set, a table will be automatically created in the same project and dataset as the original table. Compatible with: Inspect", "id": "GooglePrivacyDlpV2Deidentify", "properties": { "cloudStorageOutput": { - "description": "Required. User settable GCS bucket and folders to store de-identified files. This field must be set for cloud storage deidentification. The output GCS bucket must be different from the input bucket. De-identified files will overwrite files in the output path. Form of: gs://bucket/folder/ or gs://bucket", + "description": "Required. User settable Cloud Storage bucket and folders to store de-identified files. This field must be set for cloud storage deidentification. The output Cloud Storage bucket must be different from the input bucket. De-identified files will overwrite files in the output path. Form of: gs://bucket/folder/ or gs://bucket", "type": "string" }, "fileTypesToTransform": { @@ -4691,6 +4703,10 @@ "description": "The configuration that controls how the data will change.", "id": "GooglePrivacyDlpV2DeidentifyConfig", "properties": { + "imageTransformations": { + "$ref": "GooglePrivacyDlpV2ImageTransformations", + "description": "Treat the dataset as an image and redact." + }, "infoTypeTransformations": { "$ref": "GooglePrivacyDlpV2InfoTypeTransformations", "description": "Treat the dataset as free-form text and apply the same free text transformation everywhere." @@ -5472,6 +5488,42 @@ }, "type": "object" }, + "GooglePrivacyDlpV2ImageTransformation": { + "description": "Configuration for determining how redaction of images should occur.", + "id": "GooglePrivacyDlpV2ImageTransformation", + "properties": { + "allInfoTypes": { + "$ref": "GooglePrivacyDlpV2AllInfoTypes", + "description": "Apply transformation to all findings not specified in other ImageTransformation's selected_info_types. Only one instance is allowed within the ImageTransformations message." + }, + "allText": { + "$ref": "GooglePrivacyDlpV2AllText", + "description": "Apply transformation to all text that doesn't match an infoType. Only one instance is allowed within the ImageTransformations message." + }, + "redactionColor": { + "$ref": "GooglePrivacyDlpV2Color", + "description": "The color to use when redacting content from an image. If not specified, the default is black." + }, + "selectedInfoTypes": { + "$ref": "GooglePrivacyDlpV2SelectedInfoTypes", + "description": "Apply transformation to the selected info_types." + } + }, + "type": "object" + }, + "GooglePrivacyDlpV2ImageTransformations": { + "description": "A type of transformation that is applied over images.", + "id": "GooglePrivacyDlpV2ImageTransformations", + "properties": { + "transforms": { + "items": { + "$ref": "GooglePrivacyDlpV2ImageTransformation" + }, + "type": "array" + } + }, + "type": "object" + }, "GooglePrivacyDlpV2InfoType": { "description": "Type of information detected by the API.", "id": "GooglePrivacyDlpV2InfoType", @@ -5997,7 +6049,7 @@ "type": "object" }, "GooglePrivacyDlpV2JobNotificationEmails": { - "description": "Enable email notification to project owners and editors on jobs's completion/failure.", + "description": "Sends an email when the job completes. The email goes to IAM project owners and technical [Essential Contacts](https://cloud.google.com/resource-manager/docs/managing-notification-contacts).", "id": "GooglePrivacyDlpV2JobNotificationEmails", "properties": {}, "type": "object" @@ -7135,6 +7187,25 @@ }, "type": "object" }, + "GooglePrivacyDlpV2RecordTransformation": { + "id": "GooglePrivacyDlpV2RecordTransformation", + "properties": { + "containerTimestamp": { + "description": "Findings container modification timestamp, if applicable.", + "format": "google-datetime", + "type": "string" + }, + "containerVersion": { + "description": "Container version, if available (\"generation\" for Cloud Storage).", + "type": "string" + }, + "fieldId": { + "$ref": "GooglePrivacyDlpV2FieldId", + "description": "For record transformations, provide a field." + } + }, + "type": "object" + }, "GooglePrivacyDlpV2RecordTransformations": { "description": "A type of transformation that is applied over structured data such as a table.", "id": "GooglePrivacyDlpV2RecordTransformations", @@ -7418,6 +7489,20 @@ }, "type": "object" }, + "GooglePrivacyDlpV2SelectedInfoTypes": { + "description": "Apply transformation to the selected info_types.", + "id": "GooglePrivacyDlpV2SelectedInfoTypes", + "properties": { + "infoTypes": { + "description": "Required. InfoTypes to apply the transformation to. Required. Provided InfoType must be unique within the ImageTransformations message.", + "items": { + "$ref": "GooglePrivacyDlpV2InfoType" + }, + "type": "array" + } + }, + "type": "object" + }, "GooglePrivacyDlpV2SensitivityScore": { "description": "Score is a summary of all elements in the data profile. A higher number means more sensitive.", "id": "GooglePrivacyDlpV2SensitivityScore", @@ -7971,6 +8056,98 @@ }, "type": "object" }, + "GooglePrivacyDlpV2TransformationDescription": { + "description": "A flattened description of a `PrimitiveTransformation` or `RecordSuppression`.", + "id": "GooglePrivacyDlpV2TransformationDescription", + "properties": { + "condition": { + "description": "A human-readable string representation of the `RecordCondition` corresponding to this transformation. Set if a `RecordCondition` was used to determine whether or not to apply this transformation. Examples: * (age_field \u003e 85) * (age_field \u003c= 18) * (zip_field exists) * (zip_field == 01234) \u0026\u0026 (city_field != \"Springville\") * (zip_field == 01234) \u0026\u0026 (age_field \u003c= 18) \u0026\u0026 (city_field exists)", + "type": "string" + }, + "description": { + "description": "A description of the transformation. This is empty for a RECORD_SUPPRESSION, or is the output of calling toString() on the `PrimitiveTransformation` protocol buffer message for any other type of transformation.", + "type": "string" + }, + "infoType": { + "$ref": "GooglePrivacyDlpV2InfoType", + "description": "Set if the transformation was limited to a specific `InfoType`." + }, + "type": { + "description": "The transformation type.", + "enum": [ + "TRANSFORMATION_TYPE_UNSPECIFIED", + "RECORD_SUPPRESSION", + "REPLACE_VALUE", + "REPLACE_DICTIONARY", + "REDACT", + "CHARACTER_MASK", + "CRYPTO_REPLACE_FFX_FPE", + "FIXED_SIZE_BUCKETING", + "BUCKETING", + "REPLACE_WITH_INFO_TYPE", + "TIME_PART", + "CRYPTO_HASH", + "DATE_SHIFT", + "CRYPTO_DETERMINISTIC_CONFIG", + "REDACT_IMAGE" + ], + "enumDescriptions": [ + "Unused", + "Record suppression", + "Replace value", + "Replace value using a dictionary.", + "Redact", + "Character mask", + "FFX-FPE", + "Fixed size bucketing", + "Bucketing", + "Replace with info type", + "Time part", + "Crypto hash", + "Date shift", + "Deterministic crypto", + "Redact image" + ], + "type": "string" + } + }, + "type": "object" + }, + "GooglePrivacyDlpV2TransformationDetails": { + "description": "Details about a single transformation. This object contains a description of the transformation, information about whether the transformation was successfully applied, and the precise location where the transformation occurred. These details are stored in a user-specified BigQuery table.", + "id": "GooglePrivacyDlpV2TransformationDetails", + "properties": { + "containerName": { + "description": "The top level name of the container where the transformation is located (this will be the source file name or table name).", + "type": "string" + }, + "resourceName": { + "description": "The name of the job that completed the transformation.", + "type": "string" + }, + "statusDetails": { + "$ref": "GooglePrivacyDlpV2TransformationResultStatus", + "description": "Status of the transformation, if transformation was not successful, this will specify what caused it to fail, otherwise it will show that the transformation was successful." + }, + "transformation": { + "description": "Description of transformation. This would only contain more than one element if there were multiple matching transformations and which one to apply was ambiguous. Not set for states that contain no transformation, currently only state that contains no transformation is TransformationResultStateType.METADATA_UNRETRIEVABLE.", + "items": { + "$ref": "GooglePrivacyDlpV2TransformationDescription" + }, + "type": "array" + }, + "transformationLocation": { + "$ref": "GooglePrivacyDlpV2TransformationLocation", + "description": "The precise location of the transformed content in the original container." + }, + "transformedBytes": { + "description": "The number of bytes that were transformed. If transformation was unsuccessful or did not take place because there was no content to transform, this will be zero.", + "format": "int64", + "type": "string" + } + }, + "type": "object" + }, "GooglePrivacyDlpV2TransformationDetailsStorageConfig": { "description": "Config for storing transformation details.", "id": "GooglePrivacyDlpV2TransformationDetailsStorageConfig", @@ -7997,6 +8174,37 @@ }, "type": "object" }, + "GooglePrivacyDlpV2TransformationLocation": { + "description": "Specifies the location of a transformation.", + "id": "GooglePrivacyDlpV2TransformationLocation", + "properties": { + "containerType": { + "description": "Information about the functionality of the container where this finding occurred, if available.", + "enum": [ + "TRANSFORM_UNKNOWN_CONTAINER", + "TRANSFORM_BODY", + "TRANSFORM_METADATA", + "TRANSFORM_TABLE" + ], + "enumDescriptions": [ + "", + "", + "", + "" + ], + "type": "string" + }, + "findingId": { + "description": "For infotype transformations, link to the corresponding findings ID so that location information does not need to be duplicated. Each findings ID correlates to an entry in the findings output table, this table only gets created when users specify to save findings (add the save findings action to the request).", + "type": "string" + }, + "recordTransformation": { + "$ref": "GooglePrivacyDlpV2RecordTransformation", + "description": "For record transformations, provide a field and container information." + } + }, + "type": "object" + }, "GooglePrivacyDlpV2TransformationOverview": { "description": "Overview of the modifications that occurred.", "id": "GooglePrivacyDlpV2TransformationOverview", @@ -8016,6 +8224,34 @@ }, "type": "object" }, + "GooglePrivacyDlpV2TransformationResultStatus": { + "id": "GooglePrivacyDlpV2TransformationResultStatus", + "properties": { + "details": { + "$ref": "GoogleRpcStatus", + "description": "Detailed error codes and messages" + }, + "resultStatusType": { + "description": "Transformation result status type, this will be either SUCCESS, or it will be the reason for why the transformation was not completely successful.", + "enum": [ + "STATE_TYPE_UNSPECIFIED", + "INVALID_TRANSFORM", + "BIGQUERY_MAX_ROW_SIZE_EXCEEDED", + "METADATA_UNRETRIEVABLE", + "SUCCESS" + ], + "enumDescriptions": [ + "", + "This will be set when a finding could not be transformed (i.e. outside user set bucket range).", + "This will be set when a BigQuery transformation was successful but could not be stored back in BigQuery because the transformed row exceeds BigQuery's max row size.", + "This will be set when there is a finding in the custom metadata of a file, but at the write time of the transformed file, this key / value pair is unretrievable.", + "This will be set when the transformation and storing of it is successful." + ], + "type": "string" + } + }, + "type": "object" + }, "GooglePrivacyDlpV2TransformationSummary": { "description": "Summary of a single transformation. Only one of 'transformation', 'field_transformation', or 'record_suppress' will be set.", "id": "GooglePrivacyDlpV2TransformationSummary", diff --git a/dlp/v2/dlp-gen.go b/dlp/v2/dlp-gen.go index 4718ae148f9..6a61a422e39 100644 --- a/dlp/v2/dlp-gen.go +++ b/dlp/v2/dlp-gen.go @@ -488,9 +488,7 @@ type ProjectsStoredInfoTypesService struct { // job. See https://cloud.google.com/dlp/docs/concepts-actions to learn // more. type GooglePrivacyDlpV2Action struct { - // Deidentify: Create a de-identified copy of the input data. Applicable - // for non-image data only. The de-identified copy is in the same - // location as the original data. + // Deidentify: Create a de-identified copy of the input data. Deidentify *GooglePrivacyDlpV2Deidentify `json:"deidentify,omitempty"` // JobNotificationEmails: Enable email notification for project owners @@ -542,6 +540,14 @@ func (s *GooglePrivacyDlpV2Action) MarshalJSON() ([]byte, error) { type GooglePrivacyDlpV2ActivateJobTriggerRequest struct { } +// GooglePrivacyDlpV2AllInfoTypes: Apply transformation to all findings. +type GooglePrivacyDlpV2AllInfoTypes struct { +} + +// GooglePrivacyDlpV2AllText: Apply to all text. +type GooglePrivacyDlpV2AllText struct { +} + // GooglePrivacyDlpV2AnalyzeDataSourceRiskDetails: Result of a risk // analysis operation request. type GooglePrivacyDlpV2AnalyzeDataSourceRiskDetails struct { @@ -2691,8 +2697,8 @@ func (s *GooglePrivacyDlpV2DateTime) MarshalJSON() ([]byte, error) { } // GooglePrivacyDlpV2Deidentify: Create a de-identified copy of the -// requested table or files. . A TransformationDetail will be created -// for each transformation. If any rows in BigQuery are skipped during +// requested table or files. A TransformationDetail will be created for +// each transformation. If any rows in BigQuery are skipped during // de-identification (transformation errors or row size exceeds BigQuery // insert API limits) they are placed in the failure output table. If // the original row exceeds the BigQuery insert API limit it will be @@ -2703,11 +2709,12 @@ func (s *GooglePrivacyDlpV2DateTime) MarshalJSON() ([]byte, error) { // created in the same project and dataset as the original table. // Compatible with: Inspect type GooglePrivacyDlpV2Deidentify struct { - // CloudStorageOutput: Required. User settable GCS bucket and folders to - // store de-identified files. This field must be set for cloud storage - // deidentification. The output GCS bucket must be different from the - // input bucket. De-identified files will overwrite files in the output - // path. Form of: gs://bucket/folder/ or gs://bucket + // CloudStorageOutput: Required. User settable Cloud Storage bucket and + // folders to store de-identified files. This field must be set for + // cloud storage deidentification. The output Cloud Storage bucket must + // be different from the input bucket. De-identified files will + // overwrite files in the output path. Form of: gs://bucket/folder/ or + // gs://bucket CloudStorageOutput string `json:"cloudStorageOutput,omitempty"` // FileTypesToTransform: List of user-specified file type groups to @@ -2788,6 +2795,9 @@ func (s *GooglePrivacyDlpV2Deidentify) MarshalJSON() ([]byte, error) { // GooglePrivacyDlpV2DeidentifyConfig: The configuration that controls // how the data will change. type GooglePrivacyDlpV2DeidentifyConfig struct { + // ImageTransformations: Treat the dataset as an image and redact. + ImageTransformations *GooglePrivacyDlpV2ImageTransformations `json:"imageTransformations,omitempty"` + // InfoTypeTransformations: Treat the dataset as free-form text and // apply the same free text transformation everywhere. InfoTypeTransformations *GooglePrivacyDlpV2InfoTypeTransformations `json:"infoTypeTransformations,omitempty"` @@ -2803,18 +2813,18 @@ type GooglePrivacyDlpV2DeidentifyConfig struct { TransformationErrorHandling *GooglePrivacyDlpV2TransformationErrorHandling `json:"transformationErrorHandling,omitempty"` // ForceSendFields is a list of field names (e.g. - // "InfoTypeTransformations") 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. + // "ImageTransformations") 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. "InfoTypeTransformations") - // 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 + // NullFields is a list of field names (e.g. "ImageTransformations") 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. @@ -4300,6 +4310,77 @@ func (s *GooglePrivacyDlpV2ImageRedactionConfig) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GooglePrivacyDlpV2ImageTransformation: Configuration for determining +// how redaction of images should occur. +type GooglePrivacyDlpV2ImageTransformation struct { + // AllInfoTypes: Apply transformation to all findings not specified in + // other ImageTransformation's selected_info_types. Only one instance is + // allowed within the ImageTransformations message. + AllInfoTypes *GooglePrivacyDlpV2AllInfoTypes `json:"allInfoTypes,omitempty"` + + // AllText: Apply transformation to all text that doesn't match an + // infoType. Only one instance is allowed within the + // ImageTransformations message. + AllText *GooglePrivacyDlpV2AllText `json:"allText,omitempty"` + + // RedactionColor: The color to use when redacting content from an + // image. If not specified, the default is black. + RedactionColor *GooglePrivacyDlpV2Color `json:"redactionColor,omitempty"` + + // SelectedInfoTypes: Apply transformation to the selected info_types. + SelectedInfoTypes *GooglePrivacyDlpV2SelectedInfoTypes `json:"selectedInfoTypes,omitempty"` + + // ForceSendFields is a list of field names (e.g. "AllInfoTypes") 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. "AllInfoTypes") 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 *GooglePrivacyDlpV2ImageTransformation) MarshalJSON() ([]byte, error) { + type NoMethod GooglePrivacyDlpV2ImageTransformation + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GooglePrivacyDlpV2ImageTransformations: A type of transformation that +// is applied over images. +type GooglePrivacyDlpV2ImageTransformations struct { + Transforms []*GooglePrivacyDlpV2ImageTransformation `json:"transforms,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Transforms") 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. "Transforms") 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 *GooglePrivacyDlpV2ImageTransformations) MarshalJSON() ([]byte, error) { + type NoMethod GooglePrivacyDlpV2ImageTransformations + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GooglePrivacyDlpV2InfoType: Type of information detected by the API. type GooglePrivacyDlpV2InfoType struct { // Name: Name of the information type. Either a name of your choosing @@ -5064,8 +5145,10 @@ func (s *GooglePrivacyDlpV2InspectionRuleSet) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GooglePrivacyDlpV2JobNotificationEmails: Enable email notification to -// project owners and editors on jobs's completion/failure. +// GooglePrivacyDlpV2JobNotificationEmails: Sends an email when the job +// completes. The email goes to IAM project owners and technical +// Essential Contacts +// (https://cloud.google.com/resource-manager/docs/managing-notification-contacts). type GooglePrivacyDlpV2JobNotificationEmails struct { } @@ -7118,6 +7201,42 @@ func (s *GooglePrivacyDlpV2RecordSuppression) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +type GooglePrivacyDlpV2RecordTransformation struct { + // ContainerTimestamp: Findings container modification timestamp, if + // applicable. + ContainerTimestamp string `json:"containerTimestamp,omitempty"` + + // ContainerVersion: Container version, if available ("generation" for + // Cloud Storage). + ContainerVersion string `json:"containerVersion,omitempty"` + + // FieldId: For record transformations, provide a field. + FieldId *GooglePrivacyDlpV2FieldId `json:"fieldId,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ContainerTimestamp") + // 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. "ContainerTimestamp") 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 *GooglePrivacyDlpV2RecordTransformation) MarshalJSON() ([]byte, error) { + type NoMethod GooglePrivacyDlpV2RecordTransformation + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GooglePrivacyDlpV2RecordTransformations: A type of transformation // that is applied over structured data such as a table. type GooglePrivacyDlpV2RecordTransformations struct { @@ -7680,6 +7799,37 @@ func (s *GooglePrivacyDlpV2Schedule) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GooglePrivacyDlpV2SelectedInfoTypes: Apply transformation to the +// selected info_types. +type GooglePrivacyDlpV2SelectedInfoTypes struct { + // InfoTypes: Required. InfoTypes to apply the transformation to. + // Required. Provided InfoType must be unique within the + // ImageTransformations message. + InfoTypes []*GooglePrivacyDlpV2InfoType `json:"infoTypes,omitempty"` + + // ForceSendFields is a list of field names (e.g. "InfoTypes") 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. "InfoTypes") 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 *GooglePrivacyDlpV2SelectedInfoTypes) MarshalJSON() ([]byte, error) { + type NoMethod GooglePrivacyDlpV2SelectedInfoTypes + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GooglePrivacyDlpV2SensitivityScore: Score is a summary of all // elements in the data profile. A higher number means more sensitive. type GooglePrivacyDlpV2SensitivityScore struct { @@ -8568,6 +8718,131 @@ func (s *GooglePrivacyDlpV2TransformationConfig) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GooglePrivacyDlpV2TransformationDescription: A flattened description +// of a `PrimitiveTransformation` or `RecordSuppression`. +type GooglePrivacyDlpV2TransformationDescription struct { + // Condition: A human-readable string representation of the + // `RecordCondition` corresponding to this transformation. Set if a + // `RecordCondition` was used to determine whether or not to apply this + // transformation. Examples: * (age_field > 85) * (age_field <= 18) * + // (zip_field exists) * (zip_field == 01234) && (city_field != + // "Springville") * (zip_field == 01234) && (age_field <= 18) && + // (city_field exists) + Condition string `json:"condition,omitempty"` + + // Description: A description of the transformation. This is empty for a + // RECORD_SUPPRESSION, or is the output of calling toString() on the + // `PrimitiveTransformation` protocol buffer message for any other type + // of transformation. + Description string `json:"description,omitempty"` + + // InfoType: Set if the transformation was limited to a specific + // `InfoType`. + InfoType *GooglePrivacyDlpV2InfoType `json:"infoType,omitempty"` + + // Type: The transformation type. + // + // Possible values: + // "TRANSFORMATION_TYPE_UNSPECIFIED" - Unused + // "RECORD_SUPPRESSION" - Record suppression + // "REPLACE_VALUE" - Replace value + // "REPLACE_DICTIONARY" - Replace value using a dictionary. + // "REDACT" - Redact + // "CHARACTER_MASK" - Character mask + // "CRYPTO_REPLACE_FFX_FPE" - FFX-FPE + // "FIXED_SIZE_BUCKETING" - Fixed size bucketing + // "BUCKETING" - Bucketing + // "REPLACE_WITH_INFO_TYPE" - Replace with info type + // "TIME_PART" - Time part + // "CRYPTO_HASH" - Crypto hash + // "DATE_SHIFT" - Date shift + // "CRYPTO_DETERMINISTIC_CONFIG" - Deterministic crypto + // "REDACT_IMAGE" - Redact image + Type string `json:"type,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Condition") 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. "Condition") 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 *GooglePrivacyDlpV2TransformationDescription) MarshalJSON() ([]byte, error) { + type NoMethod GooglePrivacyDlpV2TransformationDescription + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GooglePrivacyDlpV2TransformationDetails: Details about a single +// transformation. This object contains a description of the +// transformation, information about whether the transformation was +// successfully applied, and the precise location where the +// transformation occurred. These details are stored in a user-specified +// BigQuery table. +type GooglePrivacyDlpV2TransformationDetails struct { + // ContainerName: The top level name of the container where the + // transformation is located (this will be the source file name or table + // name). + ContainerName string `json:"containerName,omitempty"` + + // ResourceName: The name of the job that completed the transformation. + ResourceName string `json:"resourceName,omitempty"` + + // StatusDetails: Status of the transformation, if transformation was + // not successful, this will specify what caused it to fail, otherwise + // it will show that the transformation was successful. + StatusDetails *GooglePrivacyDlpV2TransformationResultStatus `json:"statusDetails,omitempty"` + + // Transformation: Description of transformation. This would only + // contain more than one element if there were multiple matching + // transformations and which one to apply was ambiguous. Not set for + // states that contain no transformation, currently only state that + // contains no transformation is + // TransformationResultStateType.METADATA_UNRETRIEVABLE. + Transformation []*GooglePrivacyDlpV2TransformationDescription `json:"transformation,omitempty"` + + // TransformationLocation: The precise location of the transformed + // content in the original container. + TransformationLocation *GooglePrivacyDlpV2TransformationLocation `json:"transformationLocation,omitempty"` + + // TransformedBytes: The number of bytes that were transformed. If + // transformation was unsuccessful or did not take place because there + // was no content to transform, this will be zero. + TransformedBytes int64 `json:"transformedBytes,omitempty,string"` + + // ForceSendFields is a list of field names (e.g. "ContainerName") 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. "ContainerName") 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 *GooglePrivacyDlpV2TransformationDetails) MarshalJSON() ([]byte, error) { + type NoMethod GooglePrivacyDlpV2TransformationDetails + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GooglePrivacyDlpV2TransformationDetailsStorageConfig: Config for // storing transformation details. type GooglePrivacyDlpV2TransformationDetailsStorageConfig struct { @@ -8641,6 +8916,53 @@ func (s *GooglePrivacyDlpV2TransformationErrorHandling) MarshalJSON() ([]byte, e return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GooglePrivacyDlpV2TransformationLocation: Specifies the location of a +// transformation. +type GooglePrivacyDlpV2TransformationLocation struct { + // ContainerType: Information about the functionality of the container + // where this finding occurred, if available. + // + // Possible values: + // "TRANSFORM_UNKNOWN_CONTAINER" + // "TRANSFORM_BODY" + // "TRANSFORM_METADATA" + // "TRANSFORM_TABLE" + ContainerType string `json:"containerType,omitempty"` + + // FindingId: For infotype transformations, link to the corresponding + // findings ID so that location information does not need to be + // duplicated. Each findings ID correlates to an entry in the findings + // output table, this table only gets created when users specify to save + // findings (add the save findings action to the request). + FindingId string `json:"findingId,omitempty"` + + // RecordTransformation: For record transformations, provide a field and + // container information. + RecordTransformation *GooglePrivacyDlpV2RecordTransformation `json:"recordTransformation,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ContainerType") 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. "ContainerType") 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 *GooglePrivacyDlpV2TransformationLocation) MarshalJSON() ([]byte, error) { + type NoMethod GooglePrivacyDlpV2TransformationLocation + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GooglePrivacyDlpV2TransformationOverview: Overview of the // modifications that occurred. type GooglePrivacyDlpV2TransformationOverview struct { @@ -8676,6 +8998,51 @@ func (s *GooglePrivacyDlpV2TransformationOverview) MarshalJSON() ([]byte, error) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +type GooglePrivacyDlpV2TransformationResultStatus struct { + // Details: Detailed error codes and messages + Details *GoogleRpcStatus `json:"details,omitempty"` + + // ResultStatusType: Transformation result status type, this will be + // either SUCCESS, or it will be the reason for why the transformation + // was not completely successful. + // + // Possible values: + // "STATE_TYPE_UNSPECIFIED" + // "INVALID_TRANSFORM" - This will be set when a finding could not be + // transformed (i.e. outside user set bucket range). + // "BIGQUERY_MAX_ROW_SIZE_EXCEEDED" - This will be set when a BigQuery + // transformation was successful but could not be stored back in + // BigQuery because the transformed row exceeds BigQuery's max row size. + // "METADATA_UNRETRIEVABLE" - This will be set when there is a finding + // in the custom metadata of a file, but at the write time of the + // transformed file, this key / value pair is unretrievable. + // "SUCCESS" - This will be set when the transformation and storing of + // it is successful. + ResultStatusType string `json:"resultStatusType,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 *GooglePrivacyDlpV2TransformationResultStatus) MarshalJSON() ([]byte, error) { + type NoMethod GooglePrivacyDlpV2TransformationResultStatus + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GooglePrivacyDlpV2TransformationSummary: Summary of a single // transformation. Only one of 'transformation', 'field_transformation', // or 'record_suppress' will be set. @@ -14630,13 +14997,10 @@ type OrganizationsLocationsStoredInfoTypesListCall struct { // (https://cloud.google.com/dlp/docs/specifying-location): + Projects // scope, location specified: // `projects/`PROJECT_ID`/locations/`LOCATION_ID + Projects scope, no -// location specified (defaults to global): `projects/`PROJECT_ID + -// Organizations scope, location specified: -// `organizations/`ORG_ID`/locations/`LOCATION_ID + Organizations -// scope, no location specified (defaults to global): -// `organizations/`ORG_ID The following example `parent` string -// specifies a parent project with the identifier `example-project`, -// and specifies the `europe-west3` location for processing data: +// location specified (defaults to global): `projects/`PROJECT_ID The +// following example `parent` string specifies a parent project with +// the identifier `example-project`, and specifies the `europe-west3` +// location for processing data: // parent=projects/example-project/locations/europe-west3. func (r *OrganizationsLocationsStoredInfoTypesService) List(parentid string) *OrganizationsLocationsStoredInfoTypesListCall { c := &OrganizationsLocationsStoredInfoTypesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} @@ -14812,7 +15176,7 @@ func (c *OrganizationsLocationsStoredInfoTypesListCall) Do(opts ...googleapi.Cal // "type": "string" // }, // "parent": { - // "description": "Required. Parent resource name. The format of this value varies depending on the scope of the request (project or organization) and whether you have [specified a processing location](https://cloud.google.com/dlp/docs/specifying-location): + Projects scope, location specified: `projects/`PROJECT_ID`/locations/`LOCATION_ID + Projects scope, no location specified (defaults to global): `projects/`PROJECT_ID + Organizations scope, location specified: `organizations/`ORG_ID`/locations/`LOCATION_ID + Organizations scope, no location specified (defaults to global): `organizations/`ORG_ID The following example `parent` string specifies a parent project with the identifier `example-project`, and specifies the `europe-west3` location for processing data: parent=projects/example-project/locations/europe-west3", + // "description": "Required. Parent resource name. The format of this value varies depending on the scope of the request (project or organization) and whether you have [specified a processing location](https://cloud.google.com/dlp/docs/specifying-location): + Projects scope, location specified: `projects/`PROJECT_ID`/locations/`LOCATION_ID + Projects scope, no location specified (defaults to global): `projects/`PROJECT_ID The following example `parent` string specifies a parent project with the identifier `example-project`, and specifies the `europe-west3` location for processing data: parent=projects/example-project/locations/europe-west3", // "location": "path", // "pattern": "^organizations/[^/]+/locations/[^/]+$", // "required": true, @@ -15467,13 +15831,10 @@ type OrganizationsStoredInfoTypesListCall struct { // (https://cloud.google.com/dlp/docs/specifying-location): + Projects // scope, location specified: // `projects/`PROJECT_ID`/locations/`LOCATION_ID + Projects scope, no -// location specified (defaults to global): `projects/`PROJECT_ID + -// Organizations scope, location specified: -// `organizations/`ORG_ID`/locations/`LOCATION_ID + Organizations -// scope, no location specified (defaults to global): -// `organizations/`ORG_ID The following example `parent` string -// specifies a parent project with the identifier `example-project`, -// and specifies the `europe-west3` location for processing data: +// location specified (defaults to global): `projects/`PROJECT_ID The +// following example `parent` string specifies a parent project with +// the identifier `example-project`, and specifies the `europe-west3` +// location for processing data: // parent=projects/example-project/locations/europe-west3. func (r *OrganizationsStoredInfoTypesService) List(parentid string) *OrganizationsStoredInfoTypesListCall { c := &OrganizationsStoredInfoTypesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} @@ -15649,7 +16010,7 @@ func (c *OrganizationsStoredInfoTypesListCall) Do(opts ...googleapi.CallOption) // "type": "string" // }, // "parent": { - // "description": "Required. Parent resource name. The format of this value varies depending on the scope of the request (project or organization) and whether you have [specified a processing location](https://cloud.google.com/dlp/docs/specifying-location): + Projects scope, location specified: `projects/`PROJECT_ID`/locations/`LOCATION_ID + Projects scope, no location specified (defaults to global): `projects/`PROJECT_ID + Organizations scope, location specified: `organizations/`ORG_ID`/locations/`LOCATION_ID + Organizations scope, no location specified (defaults to global): `organizations/`ORG_ID The following example `parent` string specifies a parent project with the identifier `example-project`, and specifies the `europe-west3` location for processing data: parent=projects/example-project/locations/europe-west3", + // "description": "Required. Parent resource name. The format of this value varies depending on the scope of the request (project or organization) and whether you have [specified a processing location](https://cloud.google.com/dlp/docs/specifying-location): + Projects scope, location specified: `projects/`PROJECT_ID`/locations/`LOCATION_ID + Projects scope, no location specified (defaults to global): `projects/`PROJECT_ID The following example `parent` string specifies a parent project with the identifier `example-project`, and specifies the `europe-west3` location for processing data: parent=projects/example-project/locations/europe-west3", // "location": "path", // "pattern": "^organizations/[^/]+$", // "required": true, @@ -25151,13 +25512,10 @@ type ProjectsLocationsStoredInfoTypesListCall struct { // (https://cloud.google.com/dlp/docs/specifying-location): + Projects // scope, location specified: // `projects/`PROJECT_ID`/locations/`LOCATION_ID + Projects scope, no -// location specified (defaults to global): `projects/`PROJECT_ID + -// Organizations scope, location specified: -// `organizations/`ORG_ID`/locations/`LOCATION_ID + Organizations -// scope, no location specified (defaults to global): -// `organizations/`ORG_ID The following example `parent` string -// specifies a parent project with the identifier `example-project`, -// and specifies the `europe-west3` location for processing data: +// location specified (defaults to global): `projects/`PROJECT_ID The +// following example `parent` string specifies a parent project with +// the identifier `example-project`, and specifies the `europe-west3` +// location for processing data: // parent=projects/example-project/locations/europe-west3. func (r *ProjectsLocationsStoredInfoTypesService) List(parentid string) *ProjectsLocationsStoredInfoTypesListCall { c := &ProjectsLocationsStoredInfoTypesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} @@ -25333,7 +25691,7 @@ func (c *ProjectsLocationsStoredInfoTypesListCall) Do(opts ...googleapi.CallOpti // "type": "string" // }, // "parent": { - // "description": "Required. Parent resource name. The format of this value varies depending on the scope of the request (project or organization) and whether you have [specified a processing location](https://cloud.google.com/dlp/docs/specifying-location): + Projects scope, location specified: `projects/`PROJECT_ID`/locations/`LOCATION_ID + Projects scope, no location specified (defaults to global): `projects/`PROJECT_ID + Organizations scope, location specified: `organizations/`ORG_ID`/locations/`LOCATION_ID + Organizations scope, no location specified (defaults to global): `organizations/`ORG_ID The following example `parent` string specifies a parent project with the identifier `example-project`, and specifies the `europe-west3` location for processing data: parent=projects/example-project/locations/europe-west3", + // "description": "Required. Parent resource name. The format of this value varies depending on the scope of the request (project or organization) and whether you have [specified a processing location](https://cloud.google.com/dlp/docs/specifying-location): + Projects scope, location specified: `projects/`PROJECT_ID`/locations/`LOCATION_ID + Projects scope, no location specified (defaults to global): `projects/`PROJECT_ID The following example `parent` string specifies a parent project with the identifier `example-project`, and specifies the `europe-west3` location for processing data: parent=projects/example-project/locations/europe-west3", // "location": "path", // "pattern": "^projects/[^/]+/locations/[^/]+$", // "required": true, @@ -25988,13 +26346,10 @@ type ProjectsStoredInfoTypesListCall struct { // (https://cloud.google.com/dlp/docs/specifying-location): + Projects // scope, location specified: // `projects/`PROJECT_ID`/locations/`LOCATION_ID + Projects scope, no -// location specified (defaults to global): `projects/`PROJECT_ID + -// Organizations scope, location specified: -// `organizations/`ORG_ID`/locations/`LOCATION_ID + Organizations -// scope, no location specified (defaults to global): -// `organizations/`ORG_ID The following example `parent` string -// specifies a parent project with the identifier `example-project`, -// and specifies the `europe-west3` location for processing data: +// location specified (defaults to global): `projects/`PROJECT_ID The +// following example `parent` string specifies a parent project with +// the identifier `example-project`, and specifies the `europe-west3` +// location for processing data: // parent=projects/example-project/locations/europe-west3. func (r *ProjectsStoredInfoTypesService) List(parentid string) *ProjectsStoredInfoTypesListCall { c := &ProjectsStoredInfoTypesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} @@ -26170,7 +26525,7 @@ func (c *ProjectsStoredInfoTypesListCall) Do(opts ...googleapi.CallOption) (*Goo // "type": "string" // }, // "parent": { - // "description": "Required. Parent resource name. The format of this value varies depending on the scope of the request (project or organization) and whether you have [specified a processing location](https://cloud.google.com/dlp/docs/specifying-location): + Projects scope, location specified: `projects/`PROJECT_ID`/locations/`LOCATION_ID + Projects scope, no location specified (defaults to global): `projects/`PROJECT_ID + Organizations scope, location specified: `organizations/`ORG_ID`/locations/`LOCATION_ID + Organizations scope, no location specified (defaults to global): `organizations/`ORG_ID The following example `parent` string specifies a parent project with the identifier `example-project`, and specifies the `europe-west3` location for processing data: parent=projects/example-project/locations/europe-west3", + // "description": "Required. Parent resource name. The format of this value varies depending on the scope of the request (project or organization) and whether you have [specified a processing location](https://cloud.google.com/dlp/docs/specifying-location): + Projects scope, location specified: `projects/`PROJECT_ID`/locations/`LOCATION_ID + Projects scope, no location specified (defaults to global): `projects/`PROJECT_ID The following example `parent` string specifies a parent project with the identifier `example-project`, and specifies the `europe-west3` location for processing data: parent=projects/example-project/locations/europe-west3", // "location": "path", // "pattern": "^projects/[^/]+$", // "required": true, diff --git a/firebase/v1beta1/firebase-api.json b/firebase/v1beta1/firebase-api.json index ce439c394e0..a7ef314df55 100644 --- a/firebase/v1beta1/firebase-api.json +++ b/firebase/v1beta1/firebase-api.json @@ -1225,7 +1225,7 @@ } } }, - "revision": "20220808", + "revision": "20220813", "rootUrl": "https://firebase.googleapis.com/", "schemas": { "AddFirebaseRequest": { @@ -1342,20 +1342,6 @@ "readOnly": true, "type": "string" }, - "sha1Hashes": { - "description": "The SHA1 certificate hashes for the AndroidApp.", - "items": { - "type": "string" - }, - "type": "array" - }, - "sha256Hashes": { - "description": "The SHA256 certificate hashes for the AndroidApp.", - "items": { - "type": "string" - }, - "type": "array" - }, "state": { "description": "Output only. The lifecycle state of the App.", "enum": [ diff --git a/firebase/v1beta1/firebase-gen.go b/firebase/v1beta1/firebase-gen.go index 5081e4fa338..7344b88226d 100644 --- a/firebase/v1beta1/firebase-gen.go +++ b/firebase/v1beta1/firebase-gen.go @@ -515,12 +515,6 @@ type AndroidApp struct { // of the parent FirebaseProject for the `AndroidApp`. ProjectId string `json:"projectId,omitempty"` - // Sha1Hashes: The SHA1 certificate hashes for the AndroidApp. - Sha1Hashes []string `json:"sha1Hashes,omitempty"` - - // Sha256Hashes: The SHA256 certificate hashes for the AndroidApp. - Sha256Hashes []string `json:"sha256Hashes,omitempty"` - // State: Output only. The lifecycle state of the App. // // Possible values: diff --git a/iam/v1/iam-api.json b/iam/v1/iam-api.json index f42540199e9..d6dabdce35a 100644 --- a/iam/v1/iam-api.json +++ b/iam/v1/iam-api.json @@ -1921,7 +1921,7 @@ } } }, - "revision": "20220526", + "revision": "20220811", "rootUrl": "https://iam.googleapis.com/", "schemas": { "AdminAuditData": { @@ -2025,7 +2025,7 @@ "description": "The condition that is associated with this binding. If the condition evaluates to `true`, then this binding applies to the current request. If the condition evaluates to `false`, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the principals in this binding. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies)." }, "members": { - "description": "Specifies the principals requesting access for a Google Cloud resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`. ", + "description": "Specifies the principals requesting access for a Google Cloud resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a Google service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An identifier for a [Kubernetes service account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`. ", "items": { "type": "string" }, diff --git a/iam/v1/iam-gen.go b/iam/v1/iam-gen.go index 3a30c6ae687..b39bdecad3b 100644 --- a/iam/v1/iam-gen.go +++ b/iam/v1/iam-gen.go @@ -671,16 +671,20 @@ type Binding struct { // who is authenticated with a Google account or a service account. * // `user:{emailid}`: An email address that represents a specific Google // account. For example, `alice@example.com` . * - // `serviceAccount:{emailid}`: An email address that represents a + // `serviceAccount:{emailid}`: An email address that represents a Google // service account. For example, - // `my-other-app@appspot.gserviceaccount.com`. * `group:{emailid}`: An - // email address that represents a Google group. For example, - // `admins@example.com`. * `deleted:user:{emailid}?uid={uniqueid}`: An - // email address (plus unique identifier) representing a user that has - // been recently deleted. For example, - // `alice@example.com?uid=123456789012345678901`. If the user is - // recovered, this value reverts to `user:{emailid}` and the recovered - // user retains the role in the binding. * + // `my-other-app@appspot.gserviceaccount.com`. * + // `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: + // An identifier for a Kubernetes service account + // (https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). + // For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. + // * `group:{emailid}`: An email address that represents a Google group. + // For example, `admins@example.com`. * + // `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus + // unique identifier) representing a user that has been recently + // deleted. For example, `alice@example.com?uid=123456789012345678901`. + // If the user is recovered, this value reverts to `user:{emailid}` and + // the recovered user retains the role in the binding. * // `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address // (plus unique identifier) representing a service account that has been // recently deleted. For example, diff --git a/identitytoolkit/v1/identitytoolkit-api.json b/identitytoolkit/v1/identitytoolkit-api.json new file mode 100644 index 00000000000..101b4c200cc --- /dev/null +++ b/identitytoolkit/v1/identitytoolkit-api.json @@ -0,0 +1,3631 @@ +{ + "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." + }, + "https://www.googleapis.com/auth/firebase": { + "description": "View and administer all your Firebase data and settings" + } + } + } + }, + "basePath": "", + "baseUrl": "https://identitytoolkit.googleapis.com/", + "batchPath": "batch", + "canonicalName": "Identity Toolkit", + "description": "The Google Identity Toolkit API lets you use open standards to verify a user's identity.", + "discoveryVersion": "v1", + "documentationLink": "https://cloud.google.com/identity-platform", + "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": "identitytoolkit:v1", + "kind": "discovery#restDescription", + "mtlsRootUrl": "https://identitytoolkit.mtls.googleapis.com/", + "name": "identitytoolkit", + "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": { + "accounts": { + "methods": { + "createAuthUri": { + "description": "If an email identifier is specified, checks and returns if any user account is registered with the email. If there is a registered account, fetches all providers associated with the account's email. If the provider ID of an Identity Provider (IdP) is specified, creates an authorization URI for the IdP. The user can be directed to this URI to sign in with the IdP. An [API key](https://cloud.google.com/docs/authentication/api-keys) is required in the request in order to identify the Google Cloud project.", + "flatPath": "v1/accounts:createAuthUri", + "httpMethod": "POST", + "id": "identitytoolkit.accounts.createAuthUri", + "parameterOrder": [], + "parameters": {}, + "path": "v1/accounts:createAuthUri", + "request": { + "$ref": "GoogleCloudIdentitytoolkitV1CreateAuthUriRequest" + }, + "response": { + "$ref": "GoogleCloudIdentitytoolkitV1CreateAuthUriResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "delete": { + "description": "Deletes a user's account.", + "flatPath": "v1/accounts:delete", + "httpMethod": "POST", + "id": "identitytoolkit.accounts.delete", + "parameterOrder": [], + "parameters": {}, + "path": "v1/accounts:delete", + "request": { + "$ref": "GoogleCloudIdentitytoolkitV1DeleteAccountRequest" + }, + "response": { + "$ref": "GoogleCloudIdentitytoolkitV1DeleteAccountResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "issueSamlResponse": { + "description": "Experimental", + "flatPath": "v1/accounts:issueSamlResponse", + "httpMethod": "POST", + "id": "identitytoolkit.accounts.issueSamlResponse", + "parameterOrder": [], + "parameters": {}, + "path": "v1/accounts:issueSamlResponse", + "request": { + "$ref": "GoogleCloudIdentitytoolkitV1IssueSamlResponseRequest" + }, + "response": { + "$ref": "GoogleCloudIdentitytoolkitV1IssueSamlResponseResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "lookup": { + "description": "Gets account information for all matched accounts. For an end user request, retrieves the account of the end user. For an admin request with Google OAuth 2.0 credential, retrieves one or multiple account(s) with matching criteria.", + "flatPath": "v1/accounts:lookup", + "httpMethod": "POST", + "id": "identitytoolkit.accounts.lookup", + "parameterOrder": [], + "parameters": {}, + "path": "v1/accounts:lookup", + "request": { + "$ref": "GoogleCloudIdentitytoolkitV1GetAccountInfoRequest" + }, + "response": { + "$ref": "GoogleCloudIdentitytoolkitV1GetAccountInfoResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "resetPassword": { + "description": "Resets the password of an account either using an out-of-band code generated by sendOobCode or by specifying the email and password of the account to be modified. Can also check the purpose of an out-of-band code without consuming it.", + "flatPath": "v1/accounts:resetPassword", + "httpMethod": "POST", + "id": "identitytoolkit.accounts.resetPassword", + "parameterOrder": [], + "parameters": {}, + "path": "v1/accounts:resetPassword", + "request": { + "$ref": "GoogleCloudIdentitytoolkitV1ResetPasswordRequest" + }, + "response": { + "$ref": "GoogleCloudIdentitytoolkitV1ResetPasswordResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "sendOobCode": { + "description": "Sends an out-of-band confirmation code for an account. Requests from a authenticated request can optionally return a link including the OOB code instead of sending it.", + "flatPath": "v1/accounts:sendOobCode", + "httpMethod": "POST", + "id": "identitytoolkit.accounts.sendOobCode", + "parameterOrder": [], + "parameters": {}, + "path": "v1/accounts:sendOobCode", + "request": { + "$ref": "GoogleCloudIdentitytoolkitV1GetOobCodeRequest" + }, + "response": { + "$ref": "GoogleCloudIdentitytoolkitV1GetOobCodeResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "sendVerificationCode": { + "description": "Sends a SMS verification code for phone number sign-in. An [API key](https://cloud.google.com/docs/authentication/api-keys) is required in the request in order to identify the Google Cloud project.", + "flatPath": "v1/accounts:sendVerificationCode", + "httpMethod": "POST", + "id": "identitytoolkit.accounts.sendVerificationCode", + "parameterOrder": [], + "parameters": {}, + "path": "v1/accounts:sendVerificationCode", + "request": { + "$ref": "GoogleCloudIdentitytoolkitV1SendVerificationCodeRequest" + }, + "response": { + "$ref": "GoogleCloudIdentitytoolkitV1SendVerificationCodeResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "signInWithCustomToken": { + "description": "Signs in or signs up a user by exchanging a custom Auth token. Upon a successful sign-in or sign-up, a new Identity Platform ID token and refresh token are issued for the user. An [API key](https://cloud.google.com/docs/authentication/api-keys) is required in the request in order to identify the Google Cloud project.", + "flatPath": "v1/accounts:signInWithCustomToken", + "httpMethod": "POST", + "id": "identitytoolkit.accounts.signInWithCustomToken", + "parameterOrder": [], + "parameters": {}, + "path": "v1/accounts:signInWithCustomToken", + "request": { + "$ref": "GoogleCloudIdentitytoolkitV1SignInWithCustomTokenRequest" + }, + "response": { + "$ref": "GoogleCloudIdentitytoolkitV1SignInWithCustomTokenResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "signInWithEmailLink": { + "description": "Signs in or signs up a user with a out-of-band code from an email link. If a user does not exist with the given email address, a user record will be created. If the sign-in succeeds, an Identity Platform ID and refresh token are issued for the authenticated user. An [API key](https://cloud.google.com/docs/authentication/api-keys) is required in the request in order to identify the Google Cloud project.", + "flatPath": "v1/accounts:signInWithEmailLink", + "httpMethod": "POST", + "id": "identitytoolkit.accounts.signInWithEmailLink", + "parameterOrder": [], + "parameters": {}, + "path": "v1/accounts:signInWithEmailLink", + "request": { + "$ref": "GoogleCloudIdentitytoolkitV1SignInWithEmailLinkRequest" + }, + "response": { + "$ref": "GoogleCloudIdentitytoolkitV1SignInWithEmailLinkResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "signInWithGameCenter": { + "description": "Signs in or signs up a user with iOS Game Center credentials. If the sign-in succeeds, a new Identity Platform ID token and refresh token are issued for the authenticated user. The bundle ID is required in the request header as `x-ios-bundle-identifier`. An [API key](https://cloud.google.com/docs/authentication/api-keys) is required in the request in order to identify the Google Cloud project.", + "flatPath": "v1/accounts:signInWithGameCenter", + "httpMethod": "POST", + "id": "identitytoolkit.accounts.signInWithGameCenter", + "parameterOrder": [], + "parameters": {}, + "path": "v1/accounts:signInWithGameCenter", + "request": { + "$ref": "GoogleCloudIdentitytoolkitV1SignInWithGameCenterRequest" + }, + "response": { + "$ref": "GoogleCloudIdentitytoolkitV1SignInWithGameCenterResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "signInWithIdp": { + "description": "Signs in or signs up a user using credentials from an Identity Provider (IdP). This is done by manually providing an IdP credential, or by providing the authorization response obtained via the authorization request from CreateAuthUri. If the sign-in succeeds, a new Identity Platform ID token and refresh token are issued for the authenticated user. A new Identity Platform user account will be created if the user has not previously signed in to the IdP with the same account. In addition, when the \"One account per email address\" setting is enabled, there should not be an existing Identity Platform user account with the same email address for a new user account to be created. An [API key](https://cloud.google.com/docs/authentication/api-keys) is required in the request in order to identify the Google Cloud project.", + "flatPath": "v1/accounts:signInWithIdp", + "httpMethod": "POST", + "id": "identitytoolkit.accounts.signInWithIdp", + "parameterOrder": [], + "parameters": {}, + "path": "v1/accounts:signInWithIdp", + "request": { + "$ref": "GoogleCloudIdentitytoolkitV1SignInWithIdpRequest" + }, + "response": { + "$ref": "GoogleCloudIdentitytoolkitV1SignInWithIdpResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "signInWithPassword": { + "description": "Signs in a user with email and password. If the sign-in succeeds, a new Identity Platform ID token and refresh token are issued for the authenticated user. An [API key](https://cloud.google.com/docs/authentication/api-keys) is required in the request in order to identify the Google Cloud project.", + "flatPath": "v1/accounts:signInWithPassword", + "httpMethod": "POST", + "id": "identitytoolkit.accounts.signInWithPassword", + "parameterOrder": [], + "parameters": {}, + "path": "v1/accounts:signInWithPassword", + "request": { + "$ref": "GoogleCloudIdentitytoolkitV1SignInWithPasswordRequest" + }, + "response": { + "$ref": "GoogleCloudIdentitytoolkitV1SignInWithPasswordResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "signInWithPhoneNumber": { + "description": "Completes a phone number authentication attempt. If a user already exists with the given phone number, an ID token is minted for that user. Otherwise, a new user is created and associated with the phone number. This method may also be used to link a phone number to an existing user. An [API key](https://cloud.google.com/docs/authentication/api-keys) is required in the request in order to identify the Google Cloud project.", + "flatPath": "v1/accounts:signInWithPhoneNumber", + "httpMethod": "POST", + "id": "identitytoolkit.accounts.signInWithPhoneNumber", + "parameterOrder": [], + "parameters": {}, + "path": "v1/accounts:signInWithPhoneNumber", + "request": { + "$ref": "GoogleCloudIdentitytoolkitV1SignInWithPhoneNumberRequest" + }, + "response": { + "$ref": "GoogleCloudIdentitytoolkitV1SignInWithPhoneNumberResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "signUp": { + "description": "Signs up a new email and password user or anonymous user, or upgrades an anonymous user to email and password. For an admin request with a Google OAuth 2.0 credential with the proper [permissions](https://cloud.google.com/identity-platform/docs/access-control), creates a new anonymous, email and password, or phone number user. An [API key](https://cloud.google.com/docs/authentication/api-keys) is required in the request in order to identify the Google Cloud project.", + "flatPath": "v1/accounts:signUp", + "httpMethod": "POST", + "id": "identitytoolkit.accounts.signUp", + "parameterOrder": [], + "parameters": {}, + "path": "v1/accounts:signUp", + "request": { + "$ref": "GoogleCloudIdentitytoolkitV1SignUpRequest" + }, + "response": { + "$ref": "GoogleCloudIdentitytoolkitV1SignUpResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "update": { + "description": "Updates account-related information for the specified user by setting specific fields or applying action codes. Requests from administrators and end users are supported.", + "flatPath": "v1/accounts:update", + "httpMethod": "POST", + "id": "identitytoolkit.accounts.update", + "parameterOrder": [], + "parameters": {}, + "path": "v1/accounts:update", + "request": { + "$ref": "GoogleCloudIdentitytoolkitV1SetAccountInfoRequest" + }, + "response": { + "$ref": "GoogleCloudIdentitytoolkitV1SetAccountInfoResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "verifyIosClient": { + "description": "Verifies an iOS client is a real iOS device. If the request is valid, a reciept will be sent in the response and a secret will be sent via Apple Push Notification Service. The client should send both of them back to certain Identity Platform APIs in a later call (for example, /accounts:sendVerificationCode), in order to verify the client. The bundle ID is required in the request header as `x-ios-bundle-identifier`. An [API key](https://cloud.google.com/docs/authentication/api-keys) is required in the request in order to identify the Google Cloud project.", + "flatPath": "v1/accounts:verifyIosClient", + "httpMethod": "POST", + "id": "identitytoolkit.accounts.verifyIosClient", + "parameterOrder": [], + "parameters": {}, + "path": "v1/accounts:verifyIosClient", + "request": { + "$ref": "GoogleCloudIdentitytoolkitV1VerifyIosClientRequest" + }, + "response": { + "$ref": "GoogleCloudIdentitytoolkitV1VerifyIosClientResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + }, + "projects": { + "methods": { + "accounts": { + "description": "Signs up a new email and password user or anonymous user, or upgrades an anonymous user to email and password. For an admin request with a Google OAuth 2.0 credential with the proper [permissions](https://cloud.google.com/identity-platform/docs/access-control), creates a new anonymous, email and password, or phone number user. An [API key](https://cloud.google.com/docs/authentication/api-keys) is required in the request in order to identify the Google Cloud project.", + "flatPath": "v1/projects/{projectsId}/accounts", + "httpMethod": "POST", + "id": "identitytoolkit.projects.accounts", + "parameterOrder": [ + "targetProjectId" + ], + "parameters": { + "targetProjectId": { + "description": "The project ID of the project which the user should belong to. Specifying this field requires a Google OAuth 2.0 credential with the proper [permissions](https://cloud.google.com/identity-platform/docs/access-control). If this is not set, the target project is inferred from the scope associated to the Bearer access token.", + "location": "path", + "pattern": "^[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/projects/{+targetProjectId}/accounts", + "request": { + "$ref": "GoogleCloudIdentitytoolkitV1SignUpRequest" + }, + "response": { + "$ref": "GoogleCloudIdentitytoolkitV1SignUpResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "createSessionCookie": { + "description": "Creates a session cookie for the given Identity Platform ID token. The session cookie is used by the client to preserve the user's login state.", + "flatPath": "v1/projects/{projectsId}:createSessionCookie", + "httpMethod": "POST", + "id": "identitytoolkit.projects.createSessionCookie", + "parameterOrder": [ + "targetProjectId" + ], + "parameters": { + "targetProjectId": { + "description": "The ID of the project that the account belongs to.", + "location": "path", + "pattern": "^[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/projects/{+targetProjectId}:createSessionCookie", + "request": { + "$ref": "GoogleCloudIdentitytoolkitV1CreateSessionCookieRequest" + }, + "response": { + "$ref": "GoogleCloudIdentitytoolkitV1CreateSessionCookieResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "queryAccounts": { + "description": "Looks up user accounts within a project or a tenant based on conditions in the request.", + "flatPath": "v1/projects/{projectsId}:queryAccounts", + "httpMethod": "POST", + "id": "identitytoolkit.projects.queryAccounts", + "parameterOrder": [ + "targetProjectId" + ], + "parameters": { + "targetProjectId": { + "description": "The ID of the project to which the result is scoped.", + "location": "path", + "pattern": "^[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/projects/{+targetProjectId}:queryAccounts", + "request": { + "$ref": "GoogleCloudIdentitytoolkitV1QueryUserInfoRequest" + }, + "response": { + "$ref": "GoogleCloudIdentitytoolkitV1QueryUserInfoResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/firebase" + ] + } + }, + "resources": { + "accounts": { + "methods": { + "batchCreate": { + "description": "Uploads multiple accounts into the Google Cloud project. If there is a problem uploading one or more of the accounts, the rest will be uploaded, and a list of the errors will be returned. To use this method requires a Google OAuth 2.0 credential with proper [permissions](https://cloud.google.com/identity-platform/docs/access-control).", + "flatPath": "v1/projects/{projectsId}/accounts:batchCreate", + "httpMethod": "POST", + "id": "identitytoolkit.projects.accounts.batchCreate", + "parameterOrder": [ + "targetProjectId" + ], + "parameters": { + "targetProjectId": { + "description": "The Project ID of the Identity Platform project which the account belongs to.", + "location": "path", + "pattern": "^[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/projects/{+targetProjectId}/accounts:batchCreate", + "request": { + "$ref": "GoogleCloudIdentitytoolkitV1UploadAccountRequest" + }, + "response": { + "$ref": "GoogleCloudIdentitytoolkitV1UploadAccountResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/firebase" + ] + }, + "batchDelete": { + "description": "Batch deletes multiple accounts. For accounts that fail to be deleted, error info is contained in the response. The method ignores accounts that do not exist or are duplicated in the request. This method requires a Google OAuth 2.0 credential with proper permissions. (https://cloud.google.com/identity-platform/docs/access-control)", + "flatPath": "v1/projects/{projectsId}/accounts:batchDelete", + "httpMethod": "POST", + "id": "identitytoolkit.projects.accounts.batchDelete", + "parameterOrder": [ + "targetProjectId" + ], + "parameters": { + "targetProjectId": { + "description": "If `tenant_id` is specified, the ID of the Google Cloud project that the Identity Platform tenant belongs to. Otherwise, the ID of the Google Cloud project that accounts belong to.", + "location": "path", + "pattern": "^[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/projects/{+targetProjectId}/accounts:batchDelete", + "request": { + "$ref": "GoogleCloudIdentitytoolkitV1BatchDeleteAccountsRequest" + }, + "response": { + "$ref": "GoogleCloudIdentitytoolkitV1BatchDeleteAccountsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/firebase" + ] + }, + "batchGet": { + "description": "Download account information for all accounts on the project in a paginated manner. To use this method requires a Google OAuth 2.0 credential with proper [permissions](https://cloud.google.com/identity-platform/docs/access-control).. Furthermore, additional permissions are needed to get password hash, password salt, and password version from accounts; otherwise these fields are redacted.", + "flatPath": "v1/projects/{projectsId}/accounts:batchGet", + "httpMethod": "GET", + "id": "identitytoolkit.projects.accounts.batchGet", + "parameterOrder": [ + "targetProjectId" + ], + "parameters": { + "delegatedProjectNumber": { + "format": "int64", + "location": "query", + "type": "string" + }, + "maxResults": { + "description": "The maximum number of results to return. Must be at least 1 and no greater than 1000. By default, it is 20.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "nextPageToken": { + "description": "The pagination token from the response of a previous request.", + "location": "query", + "type": "string" + }, + "targetProjectId": { + "description": "If `tenant_id` is specified, the ID of the Google Cloud project that the Identity Platform tenant belongs to. Otherwise, the ID of the Google Cloud project that the accounts belong to.", + "location": "path", + "pattern": "^[^/]+$", + "required": true, + "type": "string" + }, + "tenantId": { + "description": "The ID of the Identity Platform tenant the accounts belongs to. If not specified, accounts on the Identity Platform project are returned.", + "location": "query", + "type": "string" + } + }, + "path": "v1/projects/{+targetProjectId}/accounts:batchGet", + "response": { + "$ref": "GoogleCloudIdentitytoolkitV1DownloadAccountResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/firebase" + ] + }, + "delete": { + "description": "Deletes a user's account.", + "flatPath": "v1/projects/{projectsId}/accounts:delete", + "httpMethod": "POST", + "id": "identitytoolkit.projects.accounts.delete", + "parameterOrder": [ + "targetProjectId" + ], + "parameters": { + "targetProjectId": { + "description": "The ID of the project which the account belongs to. Should only be specified in authenticated requests that specify local_id of an account.", + "location": "path", + "pattern": "^[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/projects/{+targetProjectId}/accounts:delete", + "request": { + "$ref": "GoogleCloudIdentitytoolkitV1DeleteAccountRequest" + }, + "response": { + "$ref": "GoogleCloudIdentitytoolkitV1DeleteAccountResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "lookup": { + "description": "Gets account information for all matched accounts. For an end user request, retrieves the account of the end user. For an admin request with Google OAuth 2.0 credential, retrieves one or multiple account(s) with matching criteria.", + "flatPath": "v1/projects/{projectsId}/accounts:lookup", + "httpMethod": "POST", + "id": "identitytoolkit.projects.accounts.lookup", + "parameterOrder": [ + "targetProjectId" + ], + "parameters": { + "targetProjectId": { + "description": "The ID of the Google Cloud project that the account or the Identity Platform tenant specified by `tenant_id` belongs to. Should only be specified by authenticated requests bearing a Google OAuth 2.0 credential with proper [permissions](https://cloud.google.com/identity-platform/docs/access-control).", + "location": "path", + "pattern": "^[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/projects/{+targetProjectId}/accounts:lookup", + "request": { + "$ref": "GoogleCloudIdentitytoolkitV1GetAccountInfoRequest" + }, + "response": { + "$ref": "GoogleCloudIdentitytoolkitV1GetAccountInfoResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "query": { + "description": "Looks up user accounts within a project or a tenant based on conditions in the request.", + "flatPath": "v1/projects/{projectsId}/accounts:query", + "httpMethod": "POST", + "id": "identitytoolkit.projects.accounts.query", + "parameterOrder": [ + "targetProjectId" + ], + "parameters": { + "targetProjectId": { + "description": "The ID of the project to which the result is scoped.", + "location": "path", + "pattern": "^[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/projects/{+targetProjectId}/accounts:query", + "request": { + "$ref": "GoogleCloudIdentitytoolkitV1QueryUserInfoRequest" + }, + "response": { + "$ref": "GoogleCloudIdentitytoolkitV1QueryUserInfoResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/firebase" + ] + }, + "sendOobCode": { + "description": "Sends an out-of-band confirmation code for an account. Requests from a authenticated request can optionally return a link including the OOB code instead of sending it.", + "flatPath": "v1/projects/{projectsId}/accounts:sendOobCode", + "httpMethod": "POST", + "id": "identitytoolkit.projects.accounts.sendOobCode", + "parameterOrder": [ + "targetProjectId" + ], + "parameters": { + "targetProjectId": { + "description": "The Project ID of the Identity Platform project which the account belongs to. To specify this field, it requires a Google OAuth 2.0 credential with proper [permissions](https://cloud.google.com/identity-platform/docs/access-control).", + "location": "path", + "pattern": "^[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/projects/{+targetProjectId}/accounts:sendOobCode", + "request": { + "$ref": "GoogleCloudIdentitytoolkitV1GetOobCodeRequest" + }, + "response": { + "$ref": "GoogleCloudIdentitytoolkitV1GetOobCodeResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "update": { + "description": "Updates account-related information for the specified user by setting specific fields or applying action codes. Requests from administrators and end users are supported.", + "flatPath": "v1/projects/{projectsId}/accounts:update", + "httpMethod": "POST", + "id": "identitytoolkit.projects.accounts.update", + "parameterOrder": [ + "targetProjectId" + ], + "parameters": { + "targetProjectId": { + "description": "The project ID for the project that the account belongs to. Specifying this field requires Google OAuth 2.0 credential with proper permissions (https://cloud.google.com/identity-platform/docs/access-control). Requests from end users should pass an Identity Platform ID token instead.", + "location": "path", + "pattern": "^[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/projects/{+targetProjectId}/accounts:update", + "request": { + "$ref": "GoogleCloudIdentitytoolkitV1SetAccountInfoRequest" + }, + "response": { + "$ref": "GoogleCloudIdentitytoolkitV1SetAccountInfoResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + }, + "tenants": { + "methods": { + "accounts": { + "description": "Signs up a new email and password user or anonymous user, or upgrades an anonymous user to email and password. For an admin request with a Google OAuth 2.0 credential with the proper [permissions](https://cloud.google.com/identity-platform/docs/access-control), creates a new anonymous, email and password, or phone number user. An [API key](https://cloud.google.com/docs/authentication/api-keys) is required in the request in order to identify the Google Cloud project.", + "flatPath": "v1/projects/{projectsId}/tenants/{tenantsId}/accounts", + "httpMethod": "POST", + "id": "identitytoolkit.projects.tenants.accounts", + "parameterOrder": [ + "targetProjectId", + "tenantId" + ], + "parameters": { + "targetProjectId": { + "description": "The project ID of the project which the user should belong to. Specifying this field requires a Google OAuth 2.0 credential with the proper [permissions](https://cloud.google.com/identity-platform/docs/access-control). If this is not set, the target project is inferred from the scope associated to the Bearer access token.", + "location": "path", + "pattern": "^[^/]+$", + "required": true, + "type": "string" + }, + "tenantId": { + "description": "The ID of the Identity Platform tenant to create a user under. If not set, the user will be created under the default Identity Platform project.", + "location": "path", + "pattern": "^[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/projects/{+targetProjectId}/tenants/{+tenantId}/accounts", + "request": { + "$ref": "GoogleCloudIdentitytoolkitV1SignUpRequest" + }, + "response": { + "$ref": "GoogleCloudIdentitytoolkitV1SignUpResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "createSessionCookie": { + "description": "Creates a session cookie for the given Identity Platform ID token. The session cookie is used by the client to preserve the user's login state.", + "flatPath": "v1/projects/{projectsId}/tenants/{tenantsId}:createSessionCookie", + "httpMethod": "POST", + "id": "identitytoolkit.projects.tenants.createSessionCookie", + "parameterOrder": [ + "targetProjectId", + "tenantId" + ], + "parameters": { + "targetProjectId": { + "description": "The ID of the project that the account belongs to.", + "location": "path", + "pattern": "^[^/]+$", + "required": true, + "type": "string" + }, + "tenantId": { + "description": "The tenant ID of the Identity Platform tenant the account belongs to.", + "location": "path", + "pattern": "^[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/projects/{+targetProjectId}/tenants/{+tenantId}:createSessionCookie", + "request": { + "$ref": "GoogleCloudIdentitytoolkitV1CreateSessionCookieRequest" + }, + "response": { + "$ref": "GoogleCloudIdentitytoolkitV1CreateSessionCookieResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + }, + "resources": { + "accounts": { + "methods": { + "batchCreate": { + "description": "Uploads multiple accounts into the Google Cloud project. If there is a problem uploading one or more of the accounts, the rest will be uploaded, and a list of the errors will be returned. To use this method requires a Google OAuth 2.0 credential with proper [permissions](https://cloud.google.com/identity-platform/docs/access-control).", + "flatPath": "v1/projects/{projectsId}/tenants/{tenantsId}/accounts:batchCreate", + "httpMethod": "POST", + "id": "identitytoolkit.projects.tenants.accounts.batchCreate", + "parameterOrder": [ + "targetProjectId", + "tenantId" + ], + "parameters": { + "targetProjectId": { + "description": "The Project ID of the Identity Platform project which the account belongs to.", + "location": "path", + "pattern": "^[^/]+$", + "required": true, + "type": "string" + }, + "tenantId": { + "description": "The ID of the Identity Platform tenant the account belongs to.", + "location": "path", + "pattern": "^[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/projects/{+targetProjectId}/tenants/{+tenantId}/accounts:batchCreate", + "request": { + "$ref": "GoogleCloudIdentitytoolkitV1UploadAccountRequest" + }, + "response": { + "$ref": "GoogleCloudIdentitytoolkitV1UploadAccountResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/firebase" + ] + }, + "batchDelete": { + "description": "Batch deletes multiple accounts. For accounts that fail to be deleted, error info is contained in the response. The method ignores accounts that do not exist or are duplicated in the request. This method requires a Google OAuth 2.0 credential with proper permissions. (https://cloud.google.com/identity-platform/docs/access-control)", + "flatPath": "v1/projects/{projectsId}/tenants/{tenantsId}/accounts:batchDelete", + "httpMethod": "POST", + "id": "identitytoolkit.projects.tenants.accounts.batchDelete", + "parameterOrder": [ + "targetProjectId", + "tenantId" + ], + "parameters": { + "targetProjectId": { + "description": "If `tenant_id` is specified, the ID of the Google Cloud project that the Identity Platform tenant belongs to. Otherwise, the ID of the Google Cloud project that accounts belong to.", + "location": "path", + "pattern": "^[^/]+$", + "required": true, + "type": "string" + }, + "tenantId": { + "description": "If the accounts belong to an Identity Platform tenant, the ID of the tenant. If the accounts belong to an default Identity Platform project, the field is not needed.", + "location": "path", + "pattern": "^[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/projects/{+targetProjectId}/tenants/{+tenantId}/accounts:batchDelete", + "request": { + "$ref": "GoogleCloudIdentitytoolkitV1BatchDeleteAccountsRequest" + }, + "response": { + "$ref": "GoogleCloudIdentitytoolkitV1BatchDeleteAccountsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/firebase" + ] + }, + "batchGet": { + "description": "Download account information for all accounts on the project in a paginated manner. To use this method requires a Google OAuth 2.0 credential with proper [permissions](https://cloud.google.com/identity-platform/docs/access-control).. Furthermore, additional permissions are needed to get password hash, password salt, and password version from accounts; otherwise these fields are redacted.", + "flatPath": "v1/projects/{projectsId}/tenants/{tenantsId}/accounts:batchGet", + "httpMethod": "GET", + "id": "identitytoolkit.projects.tenants.accounts.batchGet", + "parameterOrder": [ + "targetProjectId", + "tenantId" + ], + "parameters": { + "delegatedProjectNumber": { + "format": "int64", + "location": "query", + "type": "string" + }, + "maxResults": { + "description": "The maximum number of results to return. Must be at least 1 and no greater than 1000. By default, it is 20.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "nextPageToken": { + "description": "The pagination token from the response of a previous request.", + "location": "query", + "type": "string" + }, + "targetProjectId": { + "description": "If `tenant_id` is specified, the ID of the Google Cloud project that the Identity Platform tenant belongs to. Otherwise, the ID of the Google Cloud project that the accounts belong to.", + "location": "path", + "pattern": "^[^/]+$", + "required": true, + "type": "string" + }, + "tenantId": { + "description": "The ID of the Identity Platform tenant the accounts belongs to. If not specified, accounts on the Identity Platform project are returned.", + "location": "path", + "pattern": "^[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/projects/{+targetProjectId}/tenants/{+tenantId}/accounts:batchGet", + "response": { + "$ref": "GoogleCloudIdentitytoolkitV1DownloadAccountResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/firebase" + ] + }, + "delete": { + "description": "Deletes a user's account.", + "flatPath": "v1/projects/{projectsId}/tenants/{tenantsId}/accounts:delete", + "httpMethod": "POST", + "id": "identitytoolkit.projects.tenants.accounts.delete", + "parameterOrder": [ + "targetProjectId", + "tenantId" + ], + "parameters": { + "targetProjectId": { + "description": "The ID of the project which the account belongs to. Should only be specified in authenticated requests that specify local_id of an account.", + "location": "path", + "pattern": "^[^/]+$", + "required": true, + "type": "string" + }, + "tenantId": { + "description": "The ID of the tenant that the account belongs to, if applicable. Only require to be specified for authenticated requests bearing a Google OAuth 2.0 credential that specify local_id of an account that belongs to an Identity Platform tenant.", + "location": "path", + "pattern": "^[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/projects/{+targetProjectId}/tenants/{+tenantId}/accounts:delete", + "request": { + "$ref": "GoogleCloudIdentitytoolkitV1DeleteAccountRequest" + }, + "response": { + "$ref": "GoogleCloudIdentitytoolkitV1DeleteAccountResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "lookup": { + "description": "Gets account information for all matched accounts. For an end user request, retrieves the account of the end user. For an admin request with Google OAuth 2.0 credential, retrieves one or multiple account(s) with matching criteria.", + "flatPath": "v1/projects/{projectsId}/tenants/{tenantsId}/accounts:lookup", + "httpMethod": "POST", + "id": "identitytoolkit.projects.tenants.accounts.lookup", + "parameterOrder": [ + "targetProjectId", + "tenantId" + ], + "parameters": { + "targetProjectId": { + "description": "The ID of the Google Cloud project that the account or the Identity Platform tenant specified by `tenant_id` belongs to. Should only be specified by authenticated requests bearing a Google OAuth 2.0 credential with proper [permissions](https://cloud.google.com/identity-platform/docs/access-control).", + "location": "path", + "pattern": "^[^/]+$", + "required": true, + "type": "string" + }, + "tenantId": { + "description": "The ID of the tenant that the account belongs to. Should only be specified by authenticated requests from a developer.", + "location": "path", + "pattern": "^[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/projects/{+targetProjectId}/tenants/{+tenantId}/accounts:lookup", + "request": { + "$ref": "GoogleCloudIdentitytoolkitV1GetAccountInfoRequest" + }, + "response": { + "$ref": "GoogleCloudIdentitytoolkitV1GetAccountInfoResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "query": { + "description": "Looks up user accounts within a project or a tenant based on conditions in the request.", + "flatPath": "v1/projects/{projectsId}/tenants/{tenantsId}/accounts:query", + "httpMethod": "POST", + "id": "identitytoolkit.projects.tenants.accounts.query", + "parameterOrder": [ + "targetProjectId", + "tenantId" + ], + "parameters": { + "targetProjectId": { + "description": "The ID of the project to which the result is scoped.", + "location": "path", + "pattern": "^[^/]+$", + "required": true, + "type": "string" + }, + "tenantId": { + "description": "The ID of the tenant to which the result is scoped.", + "location": "path", + "pattern": "^[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/projects/{+targetProjectId}/tenants/{+tenantId}/accounts:query", + "request": { + "$ref": "GoogleCloudIdentitytoolkitV1QueryUserInfoRequest" + }, + "response": { + "$ref": "GoogleCloudIdentitytoolkitV1QueryUserInfoResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/firebase" + ] + }, + "sendOobCode": { + "description": "Sends an out-of-band confirmation code for an account. Requests from a authenticated request can optionally return a link including the OOB code instead of sending it.", + "flatPath": "v1/projects/{projectsId}/tenants/{tenantsId}/accounts:sendOobCode", + "httpMethod": "POST", + "id": "identitytoolkit.projects.tenants.accounts.sendOobCode", + "parameterOrder": [ + "targetProjectId", + "tenantId" + ], + "parameters": { + "targetProjectId": { + "description": "The Project ID of the Identity Platform project which the account belongs to. To specify this field, it requires a Google OAuth 2.0 credential with proper [permissions](https://cloud.google.com/identity-platform/docs/access-control).", + "location": "path", + "pattern": "^[^/]+$", + "required": true, + "type": "string" + }, + "tenantId": { + "description": "The tenant ID of the Identity Platform tenant the account belongs to.", + "location": "path", + "pattern": "^[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/projects/{+targetProjectId}/tenants/{+tenantId}/accounts:sendOobCode", + "request": { + "$ref": "GoogleCloudIdentitytoolkitV1GetOobCodeRequest" + }, + "response": { + "$ref": "GoogleCloudIdentitytoolkitV1GetOobCodeResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "update": { + "description": "Updates account-related information for the specified user by setting specific fields or applying action codes. Requests from administrators and end users are supported.", + "flatPath": "v1/projects/{projectsId}/tenants/{tenantsId}/accounts:update", + "httpMethod": "POST", + "id": "identitytoolkit.projects.tenants.accounts.update", + "parameterOrder": [ + "targetProjectId", + "tenantId" + ], + "parameters": { + "targetProjectId": { + "description": "The project ID for the project that the account belongs to. Specifying this field requires Google OAuth 2.0 credential with proper permissions (https://cloud.google.com/identity-platform/docs/access-control). Requests from end users should pass an Identity Platform ID token instead.", + "location": "path", + "pattern": "^[^/]+$", + "required": true, + "type": "string" + }, + "tenantId": { + "description": "The tenant ID of the Identity Platform tenant that the account belongs to. Requests from end users should pass an Identity Platform ID token rather than setting this field.", + "location": "path", + "pattern": "^[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/projects/{+targetProjectId}/tenants/{+tenantId}/accounts:update", + "request": { + "$ref": "GoogleCloudIdentitytoolkitV1SetAccountInfoRequest" + }, + "response": { + "$ref": "GoogleCloudIdentitytoolkitV1SetAccountInfoResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + } + } + } + } + }, + "v1": { + "methods": { + "getProjects": { + "description": "Gets a project's public Identity Toolkit configuration. (Legacy) This method also supports authenticated calls from a developer to retrieve non-public configuration.", + "flatPath": "v1/projects", + "httpMethod": "GET", + "id": "identitytoolkit.getProjects", + "parameterOrder": [], + "parameters": { + "androidPackageName": { + "description": "Android package name to check against the real android package name. If this field is provided, and sha1_cert_hash is not provided, the action will throw an error if this does not match the real android package name.", + "location": "query", + "type": "string" + }, + "clientId": { + "description": "The RP OAuth client ID. If set, a check will be performed to ensure that the OAuth client is valid for the retrieved project and the request rejected with a client error if not valid.", + "location": "query", + "type": "string" + }, + "delegatedProjectNumber": { + "description": "Project Number of the delegated project request. This field should only be used as part of the Firebase V1 migration.", + "format": "int64", + "location": "query", + "type": "string" + }, + "firebaseAppId": { + "description": "The Firebase app ID, for applications that use Firebase. This can be found in the Firebase console for your project. If set, a check will be performed to ensure that the app ID is valid for the retrieved project. If not valid, the request will be rejected with a client error.", + "location": "query", + "type": "string" + }, + "iosBundleId": { + "description": "iOS bundle id to check against the real ios bundle id. If this field is provided, the action will throw an error if this does not match the real iOS bundle id.", + "location": "query", + "type": "string" + }, + "projectNumber": { + "description": "Project number of the configuration to retrieve. This field is deprecated and should not be used by new integrations.", + "format": "int64", + "location": "query", + "type": "string" + }, + "returnDynamicLink": { + "description": "Whether dynamic link should be returned.", + "location": "query", + "type": "boolean" + }, + "sha1Cert": { + "description": "SHA-1 Android application cert hash. If set, a check will be performed to ensure that the cert hash is valid for the retrieved project and android_package_name.", + "location": "query", + "type": "string" + } + }, + "path": "v1/projects", + "response": { + "$ref": "GoogleCloudIdentitytoolkitV1GetProjectConfigResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "getPublicKeys": { + "description": "Retrieves public keys of the legacy Identity Toolkit token signer to enable third parties to verify the legacy ID token. For now the X509 pem cert is the only format supported.", + "flatPath": "v1/publicKeys", + "httpMethod": "GET", + "id": "identitytoolkit.getPublicKeys", + "parameterOrder": [], + "parameters": {}, + "path": "v1/publicKeys", + "response": { + "additionalProperties": { + "description": "Properties of the object.", + "type": "any" + }, + "type": "object" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "getRecaptchaParams": { + "description": "Gets parameters needed for generating a reCAPTCHA challenge.", + "flatPath": "v1/recaptchaParams", + "httpMethod": "GET", + "id": "identitytoolkit.getRecaptchaParams", + "parameterOrder": [], + "parameters": {}, + "path": "v1/recaptchaParams", + "response": { + "$ref": "GoogleCloudIdentitytoolkitV1GetRecaptchaParamResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "getSessionCookiePublicKeys": { + "description": "Retrieves the set of public keys of the session cookie JSON Web Token (JWT) signer that can be used to validate the session cookie created through createSessionCookie.", + "flatPath": "v1/sessionCookiePublicKeys", + "httpMethod": "GET", + "id": "identitytoolkit.getSessionCookiePublicKeys", + "parameterOrder": [], + "parameters": {}, + "path": "v1/sessionCookiePublicKeys", + "response": { + "$ref": "GoogleCloudIdentitytoolkitV1GetSessionCookiePublicKeysResponse" + } + } + } + } + }, + "revision": "20220815", + "rootUrl": "https://identitytoolkit.googleapis.com/", + "schemas": { + "GoogleCloudIdentitytoolkitV1Argon2Parameters": { + "description": "The parameters for Argon2 hashing algorithm.", + "id": "GoogleCloudIdentitytoolkitV1Argon2Parameters", + "properties": { + "associatedData": { + "description": "The additional associated data, if provided, is appended to the hash value to provide an additional layer of security. A base64-encoded string if specified via JSON.", + "format": "byte", + "type": "string" + }, + "hashLengthBytes": { + "description": "Required. The desired hash length in bytes. Minimum is 4 and maximum is 1024.", + "format": "int32", + "type": "integer" + }, + "hashType": { + "description": "Required. Must not be HASH_TYPE_UNSPECIFIED.", + "enum": [ + "HASH_TYPE_UNSPECIFIED", + "ARGON2_D", + "ARGON2_ID", + "ARGON2_I" + ], + "enumDescriptions": [ + "The hash type is not specified.", + "An Argon2 variant, Argon2d.", + "An Argon2 variant, Argonid. Recommended.", + "An Argon2 variant, Argon2i." + ], + "type": "string" + }, + "iterations": { + "description": "Required. The number of iterations to perform. Minimum is 1, maximum is 16.", + "format": "int32", + "type": "integer" + }, + "memoryCostKib": { + "description": "Required. The memory cost in kibibytes. Maximum is 32768.", + "format": "int32", + "type": "integer" + }, + "parallelism": { + "description": "Required. The degree of parallelism, also called threads or lanes. Minimum is 1, maximum is 16.", + "format": "int32", + "type": "integer" + }, + "version": { + "description": "The version of the Argon2 algorithm. This defaults to VERSION_13 if not specified.", + "enum": [ + "VERSION_UNSPECIFIED", + "VERSION_10", + "VERSION_13" + ], + "enumDescriptions": [ + "The version is not specified.", + "The previous version, 0x10.", + "The current version, 0x13. The default value for version." + ], + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudIdentitytoolkitV1AutoRetrievalInfo": { + "description": "The information required to auto-retrieve an SMS.", + "id": "GoogleCloudIdentitytoolkitV1AutoRetrievalInfo", + "properties": { + "appSignatureHash": { + "description": "The Android app's signature hash for Google Play Service's SMS Retriever API.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudIdentitytoolkitV1BatchDeleteAccountsRequest": { + "description": "Request message for BatchDeleteAccounts.", + "id": "GoogleCloudIdentitytoolkitV1BatchDeleteAccountsRequest", + "properties": { + "force": { + "description": "Whether to force deleting accounts that are not in disabled state. If false, only disabled accounts will be deleted, and accounts that are not disabled will be added to the `errors`.", + "type": "boolean" + }, + "localIds": { + "description": "Required. List of user IDs to be deleted.", + "items": { + "type": "string" + }, + "type": "array" + }, + "tenantId": { + "description": "If the accounts belong to an Identity Platform tenant, the ID of the tenant. If the accounts belong to an default Identity Platform project, the field is not needed.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudIdentitytoolkitV1BatchDeleteAccountsResponse": { + "description": "Response message to BatchDeleteAccounts.", + "id": "GoogleCloudIdentitytoolkitV1BatchDeleteAccountsResponse", + "properties": { + "errors": { + "description": "Detailed error info for accounts that cannot be deleted.", + "items": { + "$ref": "GoogleCloudIdentitytoolkitV1BatchDeleteErrorInfo" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleCloudIdentitytoolkitV1BatchDeleteErrorInfo": { + "description": "Error info for account failed to be deleted.", + "id": "GoogleCloudIdentitytoolkitV1BatchDeleteErrorInfo", + "properties": { + "index": { + "description": "The index of the errored item in the original local_ids field.", + "format": "int32", + "type": "integer" + }, + "localId": { + "description": "The corresponding user ID.", + "type": "string" + }, + "message": { + "description": "Detailed error message.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudIdentitytoolkitV1CreateAuthUriRequest": { + "description": "Request message for CreateAuthUri.", + "id": "GoogleCloudIdentitytoolkitV1CreateAuthUriRequest", + "properties": { + "appId": { + "type": "string" + }, + "authFlowType": { + "description": "Used for the Google provider. The type of the authentication flow to be used. If present, this should be `CODE_FLOW` to specify the authorization code flow. Otherwise, the default ID Token flow will be used.", + "type": "string" + }, + "context": { + "description": "An opaque string used to maintain contextual information between the authentication request and the callback from the IdP.", + "type": "string" + }, + "continueUri": { + "description": "A valid URL for the IdP to redirect the user back to. The URL cannot contain fragments or the reserved `state` query parameter.", + "type": "string" + }, + "customParameter": { + "additionalProperties": { + "type": "string" + }, + "description": "Additional customized query parameters to be added to the authorization URI. The following parameters are reserved and cannot be added: `client_id`, `response_type`, `scope`, `redirect_uri`, `state`. For the Microsoft provider, the Azure AD tenant to sign-in to can be specified in the `tenant` custom parameter.", + "type": "object" + }, + "hostedDomain": { + "description": "Used for the Google provider. The G Suite hosted domain of the user in order to restrict sign-in to users at that domain.", + "type": "string" + }, + "identifier": { + "description": "The email identifier of the user account to fetch associated providers for. At least one of the fields `identifier` and `provider_id` must be set. The length of the email address should be less than 256 characters and in the format of `name@domain.tld`. The email address should also match the [RFC 822](https://tools.ietf.org/html/rfc822) addr-spec production.", + "type": "string" + }, + "oauthConsumerKey": { + "type": "string" + }, + "oauthScope": { + "description": "Additional space-delimited OAuth 2.0 scopes specifying the scope of the authentication request with the IdP. Used for OAuth 2.0 IdPs. For the Google provider, the authorization code flow will be used if this field is set.", + "type": "string" + }, + "openidRealm": { + "type": "string" + }, + "otaApp": { + "type": "string" + }, + "providerId": { + "description": "The provider ID of the IdP for the user to sign in with. This should be a provider ID enabled for sign-in, which is either from the list of [default supported IdPs](https://cloud.google.com/identity-platform/docs/reference/rest/v2/defaultSupportedIdps/list), or of the format `oidc.*` or `saml.*`. Some examples are `google.com`, `facebook.com`, `oidc.testapp`, and `saml.testapp`. At least one of the fields `identifier` and `provider_id` must be set.", + "type": "string" + }, + "sessionId": { + "description": "A session ID that can be verified against in SignInWithIdp to prevent session fixation attacks. If absent, a random string will be generated and returned as the session ID.", + "type": "string" + }, + "tenantId": { + "description": "The ID of the Identity Platform tenant to create an authorization URI or lookup an email identifier for. If not set, the operation will be performed in the default Identity Platform instance in the project.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudIdentitytoolkitV1CreateAuthUriResponse": { + "description": "Response message for CreateAuthUri.", + "id": "GoogleCloudIdentitytoolkitV1CreateAuthUriResponse", + "properties": { + "allProviders": { + "items": { + "type": "string" + }, + "type": "array" + }, + "authUri": { + "description": "The authorization URI for the requested provider. Present only when a provider ID is set in the request.", + "type": "string" + }, + "captchaRequired": { + "description": "Whether a CAPTCHA is needed because there have been too many failed login attempts by the user. Present only when a registered email identifier is set in the request.", + "type": "boolean" + }, + "forExistingProvider": { + "description": "Whether the user has previously signed in with the provider ID in the request. Present only when a registered email identifier is set in the request.", + "type": "boolean" + }, + "kind": { + "type": "string" + }, + "providerId": { + "description": "The provider ID from the request, if provided.", + "type": "string" + }, + "registered": { + "description": "Whether the email identifier represents an existing account. Present only when an email identifier is set in the request.", + "type": "boolean" + }, + "sessionId": { + "description": "The session ID from the request, or a random string generated by CreateAuthUri if absent. It is used to prevent session fixation attacks.", + "type": "string" + }, + "signinMethods": { + "description": "The list of sign-in methods that the user has previously used. Each element is one of `password`, `emailLink`, or the provider ID of an IdP. Present only when a registered email identifier is set in the request.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleCloudIdentitytoolkitV1CreateSessionCookieRequest": { + "description": "Request message for CreateSessionCookie.", + "id": "GoogleCloudIdentitytoolkitV1CreateSessionCookieRequest", + "properties": { + "idToken": { + "description": "Required. A valid Identity Platform ID token.", + "type": "string" + }, + "tenantId": { + "description": "The tenant ID of the Identity Platform tenant the account belongs to.", + "type": "string" + }, + "validDuration": { + "description": "The number of seconds until the session cookie expires. Specify a duration in seconds, between five minutes and fourteen days, inclusively.", + "format": "int64", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudIdentitytoolkitV1CreateSessionCookieResponse": { + "description": "Response message for CreateSessionCookie.", + "id": "GoogleCloudIdentitytoolkitV1CreateSessionCookieResponse", + "properties": { + "sessionCookie": { + "description": "The session cookie that has been created from the Identity Platform ID token specified in the request. It is in the form of a JSON Web Token (JWT). Always present.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudIdentitytoolkitV1DeleteAccountRequest": { + "description": "Request message for DeleteAccount.", + "id": "GoogleCloudIdentitytoolkitV1DeleteAccountRequest", + "properties": { + "delegatedProjectNumber": { + "format": "int64", + "type": "string" + }, + "idToken": { + "description": "The Identity Platform ID token of the account to delete. Require to be specified for requests from end users that lack Google OAuth 2.0 credential. Authenticated requests bearing a Google OAuth2 credential with proper permissions may pass local_id to specify the account to delete alternatively.", + "type": "string" + }, + "localId": { + "description": "The ID of user account to delete. Specifying this field requires a Google OAuth 2.0 credential with proper [permissions](https://cloud.google.com/identity-platform/docs/access-control). Requests from users lacking the credential should pass an ID token instead.", + "type": "string" + }, + "targetProjectId": { + "description": "The ID of the project which the account belongs to. Should only be specified in authenticated requests that specify local_id of an account.", + "type": "string" + }, + "tenantId": { + "description": "The ID of the tenant that the account belongs to, if applicable. Only require to be specified for authenticated requests bearing a Google OAuth 2.0 credential that specify local_id of an account that belongs to an Identity Platform tenant.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudIdentitytoolkitV1DeleteAccountResponse": { + "description": "Response message for DeleteAccount.", + "id": "GoogleCloudIdentitytoolkitV1DeleteAccountResponse", + "properties": { + "kind": { + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudIdentitytoolkitV1DownloadAccountResponse": { + "description": "Response message for DownloadAccount.", + "id": "GoogleCloudIdentitytoolkitV1DownloadAccountResponse", + "properties": { + "kind": { + "type": "string" + }, + "nextPageToken": { + "description": "If there are more accounts to be downloaded, a token that can be passed back to DownloadAccount to get more accounts. Otherwise, this is blank.", + "type": "string" + }, + "users": { + "description": "All accounts belonging to the project/tenant limited by max_results in the request.", + "items": { + "$ref": "GoogleCloudIdentitytoolkitV1UserInfo" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleCloudIdentitytoolkitV1EmailTemplate": { + "description": "Email template", + "id": "GoogleCloudIdentitytoolkitV1EmailTemplate", + "properties": { + "body": { + "description": "Email body", + "type": "string" + }, + "customized": { + "description": "Whether the body or subject of the email is customized.", + "type": "boolean" + }, + "disabled": { + "description": "Whether the template is disabled. If true, a default template will be used.", + "type": "boolean" + }, + "format": { + "description": "Email body format", + "enum": [ + "EMAIL_BODY_FORMAT_UNSPECIFIED", + "PLAINTEXT", + "HTML" + ], + "enumDescriptions": [ + "Default value. Do not use.", + "Email body is in plain text format.", + "Email body is in HTML format." + ], + "type": "string" + }, + "from": { + "description": "From address of the email", + "type": "string" + }, + "fromDisplayName": { + "description": "From display name", + "type": "string" + }, + "fromLocalPart": { + "description": "Local part of From address", + "type": "string" + }, + "locale": { + "description": "Value is in III language code format (e.g. \"zh-CN\", \"es\"). Both '-' and '_' separators are accepted.", + "type": "string" + }, + "replyTo": { + "description": "Reply-to address", + "type": "string" + }, + "subject": { + "description": "Subject of the email", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudIdentitytoolkitV1ErrorInfo": { + "description": "Error information explaining why an account cannot be uploaded. batch upload.", + "id": "GoogleCloudIdentitytoolkitV1ErrorInfo", + "properties": { + "index": { + "description": "The index of the item, range is [0, request.size - 1]", + "format": "int32", + "type": "integer" + }, + "message": { + "description": "Detailed error message", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudIdentitytoolkitV1FederatedUserIdentifier": { + "description": "Federated user identifier at an Identity Provider.", + "id": "GoogleCloudIdentitytoolkitV1FederatedUserIdentifier", + "properties": { + "providerId": { + "description": "The ID of supported identity providers. This should be a provider ID enabled for sign-in, which is either from the list of [default supported IdPs](https://cloud.google.com/identity-platform/docs/reference/rest/v2/defaultSupportedIdps/list), or of the format `oidc.*` or `saml.*`. Some examples are `google.com`, `facebook.com`, `oidc.testapp`, and `saml.testapp`.", + "type": "string" + }, + "rawId": { + "description": "The user ID of the account at the third-party Identity Provider specified by `provider_id`.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudIdentitytoolkitV1GetAccountInfoRequest": { + "description": "Request message for GetAccountInfo.", + "id": "GoogleCloudIdentitytoolkitV1GetAccountInfoRequest", + "properties": { + "delegatedProjectNumber": { + "format": "int64", + "type": "string" + }, + "email": { + "description": "The email address of one or more accounts to fetch. The length of email should be less than 256 characters and in the format of `name@domain.tld`. The email should also match the [RFC 822](https://tools.ietf.org/html/rfc822) addr-spec production. Should only be specified by authenticated requests from a developer.", + "items": { + "type": "string" + }, + "type": "array" + }, + "federatedUserId": { + "description": "The federated user identifier of one or more accounts to fetch. Should only be specified by authenticated requests bearing a Google OAuth 2.0 credential with proper [permissions](https://cloud.google.com/identity-platform/docs/access-control).", + "items": { + "$ref": "GoogleCloudIdentitytoolkitV1FederatedUserIdentifier" + }, + "type": "array" + }, + "idToken": { + "description": "The Identity Platform ID token of the account to fetch. Require to be specified for requests from end users.", + "type": "string" + }, + "initialEmail": { + "description": "The initial email of one or more accounts to fetch. The length of email should be less than 256 characters and in the format of `name@domain.tld`. The email should also match the [RFC 822](https://tools.ietf.org/html/rfc822) addr-spec production. Should only be specified by authenticated requests from a developer.", + "items": { + "type": "string" + }, + "type": "array" + }, + "localId": { + "description": "The ID of one or more accounts to fetch. Should only be specified by authenticated requests bearing a Google OAuth 2.0 credential with proper [permissions](https://cloud.google.com/identity-platform/docs/access-control).", + "items": { + "type": "string" + }, + "type": "array" + }, + "phoneNumber": { + "description": "The phone number of one or more accounts to fetch. Should only be specified by authenticated requests from a developer and should be in E.164 format, for example, +15555555555.", + "items": { + "type": "string" + }, + "type": "array" + }, + "targetProjectId": { + "description": "The ID of the Google Cloud project that the account or the Identity Platform tenant specified by `tenant_id` belongs to. Should only be specified by authenticated requests bearing a Google OAuth 2.0 credential with proper [permissions](https://cloud.google.com/identity-platform/docs/access-control).", + "type": "string" + }, + "tenantId": { + "description": "The ID of the tenant that the account belongs to. Should only be specified by authenticated requests from a developer.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudIdentitytoolkitV1GetAccountInfoResponse": { + "description": "Response message for GetAccountInfo.", + "id": "GoogleCloudIdentitytoolkitV1GetAccountInfoResponse", + "properties": { + "kind": { + "type": "string" + }, + "users": { + "description": "The information of specific user account(s) matching the parameters in the request.", + "items": { + "$ref": "GoogleCloudIdentitytoolkitV1UserInfo" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleCloudIdentitytoolkitV1GetOobCodeRequest": { + "description": "Request message for GetOobCode.", + "id": "GoogleCloudIdentitytoolkitV1GetOobCodeRequest", + "properties": { + "androidInstallApp": { + "description": "If an associated android app can handle the OOB code, whether or not to install the android app on the device where the link is opened if the app is not already installed.", + "type": "boolean" + }, + "androidMinimumVersion": { + "description": "If an associated android app can handle the OOB code, the minimum version of the app. If the version on the device is lower than this version then the user is taken to Google Play Store to upgrade the app.", + "type": "string" + }, + "androidPackageName": { + "description": "If an associated android app can handle the OOB code, the Android package name of the android app that will handle the callback when this OOB code is used. This will allow the correct app to open if it is already installed, or allow Google Play Store to open to the correct app if it is not yet installed.", + "type": "string" + }, + "canHandleCodeInApp": { + "description": "When set to true, the OOB code link will be be sent as a Universal Link or an Android App Link and will be opened by the corresponding app if installed. If not set, or set to false, the OOB code will be sent to the web widget first and then on continue will redirect to the app if installed.", + "type": "boolean" + }, + "captchaResp": { + "description": "For a PASSWORD_RESET request, a reCaptcha response is required when the system detects possible abuse activity. In those cases, this is the response from the reCaptcha challenge used to verify the caller.", + "type": "string" + }, + "challenge": { + "type": "string" + }, + "continueUrl": { + "description": "The Url to continue after user clicks the link sent in email. This is the url that will allow the web widget to handle the OOB code.", + "type": "string" + }, + "dynamicLinkDomain": { + "description": "In order to ensure that the url used can be easily opened up in iOS or android, we create a [Firebase Dynamic Link](https://firebase.google.com/docs/dynamic-links). Most Identity Platform projects will only have one Dynamic Link domain enabled, and can leave this field blank. This field contains a specified Dynamic Link domain for projects that have multiple enabled.", + "type": "string" + }, + "email": { + "description": "The account's email address to send the OOB code to, and generally the email address of the account that needs to be updated. Required for PASSWORD_RESET, EMAIL_SIGNIN, and VERIFY_EMAIL. Only required for VERIFY_AND_CHANGE_EMAIL requests when return_oob_link is set to true. In this case, it is the original email of the user.", + "type": "string" + }, + "iOSAppStoreId": { + "description": "If an associated iOS app can handle the OOB code, the App Store id of this app. This will allow App Store to open to the correct app if the app is not yet installed.", + "type": "string" + }, + "iOSBundleId": { + "description": "If an associated iOS app can handle the OOB code, the iOS bundle id of this app. This will allow the correct app to open if it is already installed.", + "type": "string" + }, + "idToken": { + "description": "An ID token for the account. It is required for VERIFY_AND_CHANGE_EMAIL and VERIFY_EMAIL requests unless return_oob_link is set to true.", + "type": "string" + }, + "newEmail": { + "description": "The email address the account is being updated to. Required only for VERIFY_AND_CHANGE_EMAIL requests.", + "type": "string" + }, + "requestType": { + "description": "Required. The type of out-of-band (OOB) code to send. Depending on this value, other fields in this request will be required and/or have different meanings. There are 4 different OOB codes that can be sent: * PASSWORD_RESET * EMAIL_SIGNIN * VERIFY_EMAIL * VERIFY_AND_CHANGE_EMAIL", + "enum": [ + "OOB_REQ_TYPE_UNSPECIFIED", + "PASSWORD_RESET", + "OLD_EMAIL_AGREE", + "NEW_EMAIL_ACCEPT", + "VERIFY_EMAIL", + "RECOVER_EMAIL", + "EMAIL_SIGNIN", + "VERIFY_AND_CHANGE_EMAIL", + "REVERT_SECOND_FACTOR_ADDITION" + ], + "enumDescriptions": [ + "Oob code type is not specified.", + "reset password", + "", + "", + "verify the account's email address by sending an email", + "", + "sign in with email only", + "This flow sends an email to the specified new email, and when applied by clicking the link in the email changes the account's email to the new email. Used when the account must have verified email at all times, such as MFA accounts.", + "" + ], + "type": "string" + }, + "returnOobLink": { + "description": "Whether the confirmation link containing the OOB code should be returned in the response (no email is sent). Used when a developer wants to construct the email template and send it on their own. By default this is false; to specify this field, and to set it to true, it requires a Google OAuth 2.0 credential with proper [permissions](https://cloud.google.com/identity-platform/docs/access-control)", + "type": "boolean" + }, + "targetProjectId": { + "description": "The Project ID of the Identity Platform project which the account belongs to. To specify this field, it requires a Google OAuth 2.0 credential with proper [permissions](https://cloud.google.com/identity-platform/docs/access-control).", + "type": "string" + }, + "tenantId": { + "description": "The tenant ID of the Identity Platform tenant the account belongs to.", + "type": "string" + }, + "userIp": { + "description": "The IP address of the caller. Required only for PASSWORD_RESET requests.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudIdentitytoolkitV1GetOobCodeResponse": { + "description": "Response message for GetOobCode.", + "id": "GoogleCloudIdentitytoolkitV1GetOobCodeResponse", + "properties": { + "email": { + "description": "If return_oob_link is false in the request, the email address the verification was sent to.", + "type": "string" + }, + "kind": { + "type": "string" + }, + "oobCode": { + "description": "If return_oob_link is true in the request, the OOB code to send.", + "type": "string" + }, + "oobLink": { + "description": "If return_oob_link is true in the request, the OOB link to be sent to the user. This returns the constructed link including [Firebase Dynamic Link](https://firebase.google.com/docs/dynamic-links) related parameters.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudIdentitytoolkitV1GetProjectConfigResponse": { + "description": "Response message for GetProjectConfig.", + "id": "GoogleCloudIdentitytoolkitV1GetProjectConfigResponse", + "properties": { + "allowPasswordUser": { + "description": "Whether to allow password account sign up. This field is only returned for authenticated calls from a developer.", + "type": "boolean" + }, + "apiKey": { + "description": "Google Cloud API key. This field is only returned for authenticated calls from a developer.", + "type": "string" + }, + "authorizedDomains": { + "description": "Authorized domains for widget redirect.", + "items": { + "type": "string" + }, + "type": "array" + }, + "changeEmailTemplate": { + "$ref": "GoogleCloudIdentitytoolkitV1EmailTemplate", + "description": "Email template for change email. This field is only returned for authenticated calls from a developer." + }, + "dynamicLinksDomain": { + "description": "The Firebase Dynamic Links domain used to construct links for redirects to native apps.", + "type": "string" + }, + "enableAnonymousUser": { + "description": "Whether anonymous user is enabled. This field is only returned for authenticated calls from a developer.", + "type": "boolean" + }, + "idpConfig": { + "description": "OAuth2 provider config. This field is only returned for authenticated calls from a developer.", + "items": { + "$ref": "GoogleCloudIdentitytoolkitV1IdpConfig" + }, + "type": "array" + }, + "legacyResetPasswordTemplate": { + "$ref": "GoogleCloudIdentitytoolkitV1EmailTemplate", + "description": "Reset password email template for legacy Firebase V1 app. This field is only returned for authenticated calls from a developer." + }, + "projectId": { + "description": "The project id of the retrieved configuration.", + "type": "string" + }, + "resetPasswordTemplate": { + "$ref": "GoogleCloudIdentitytoolkitV1EmailTemplate", + "description": "Email template for reset password. This field is only returned for authenticated calls from a developer." + }, + "revertSecondFactorAdditionTemplate": { + "$ref": "GoogleCloudIdentitytoolkitV1EmailTemplate", + "description": "Email template for reverting second factor additions. This field is only returned for authenticated calls from a developer." + }, + "useEmailSending": { + "description": "Whether to use email sending. This field is only returned for authenticated calls from a developer.", + "type": "boolean" + }, + "verifyEmailTemplate": { + "$ref": "GoogleCloudIdentitytoolkitV1EmailTemplate", + "description": "Email template for verify email. This field is only returned for authenticated calls from a developer." + } + }, + "type": "object" + }, + "GoogleCloudIdentitytoolkitV1GetRecaptchaParamResponse": { + "description": "Response message for GetRecaptchaParam.", + "id": "GoogleCloudIdentitytoolkitV1GetRecaptchaParamResponse", + "properties": { + "kind": { + "type": "string" + }, + "recaptchaSiteKey": { + "description": "The reCAPTCHA v2 site key used to invoke the reCAPTCHA service. Always present.", + "type": "string" + }, + "recaptchaStoken": { + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudIdentitytoolkitV1GetSessionCookiePublicKeysResponse": { + "description": "Response message for GetSessionCookiePublicKeys.", + "id": "GoogleCloudIdentitytoolkitV1GetSessionCookiePublicKeysResponse", + "properties": { + "keys": { + "description": "Public keys of the session cookie signer, formatted as [JSON Web Keys (JWK)](https://tools.ietf.org/html/rfc7517).", + "items": { + "$ref": "GoogleCloudIdentitytoolkitV1OpenIdConnectKey" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleCloudIdentitytoolkitV1IdpConfig": { + "description": "Config of an identity provider.", + "id": "GoogleCloudIdentitytoolkitV1IdpConfig", + "properties": { + "clientId": { + "description": "OAuth2 client ID.", + "type": "string" + }, + "enabled": { + "description": "True if allows the user to sign in with the provider.", + "type": "boolean" + }, + "experimentPercent": { + "description": "Percent of users who will be prompted/redirected federated login for this IdP", + "format": "int32", + "type": "integer" + }, + "provider": { + "description": "Name of the identity provider.", + "enum": [ + "PROVIDER_UNSPECIFIED", + "MSLIVE", + "GOOGLE", + "FACEBOOK", + "PAYPAL", + "TWITTER", + "YAHOO", + "AOL", + "GITHUB", + "GOOGLE_PLAY_GAMES", + "LINKEDIN", + "IOS_GAME_CENTER" + ], + "enumDescriptions": [ + "", + "Microsoft Live as identity provider.", + "Google as identity provider.", + "Facebook as identity provider.", + "PayPal as identity provider.", + "Twitter as identity provider.", + "Yahoo as identity provider.", + "AOL as identity provider.", + "GitHub as identity provider.", + "Google Play Games as identity provider.", + "LinkedIn as identity provider.", + "iOS Game Center as identity provider." + ], + "type": "string" + }, + "secret": { + "description": "OAuth2 client secret.", + "type": "string" + }, + "whitelistedAudiences": { + "description": "Whitelisted client IDs for audience check.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleCloudIdentitytoolkitV1IssueSamlResponseRequest": { + "description": "Request message for IssueSamlResponse.", + "id": "GoogleCloudIdentitytoolkitV1IssueSamlResponseRequest", + "properties": { + "idToken": { + "description": "The Identity Platform ID token. It will be verified and then converted to a new SAMLResponse.", + "type": "string" + }, + "rpId": { + "description": "Relying Party identifier, which is the audience of issued SAMLResponse.", + "type": "string" + }, + "samlAppEntityId": { + "description": "SAML app entity id specified in Google Admin Console for each app. If developers want to redirect to a third-party app rather than a G Suite app, they'll probably they need this. When it's used, we'll return a RelayState. This includes a SAMLRequest, which can be used to trigger a SP-initiated SAML flow to redirect to the real app.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudIdentitytoolkitV1IssueSamlResponseResponse": { + "description": "Response for IssueSamlResponse request.", + "id": "GoogleCloudIdentitytoolkitV1IssueSamlResponseResponse", + "properties": { + "acsEndpoint": { + "description": "The ACS endpoint which consumes the returned SAMLResponse.", + "type": "string" + }, + "email": { + "description": "Email of the user.", + "type": "string" + }, + "firstName": { + "description": "First name of the user.", + "type": "string" + }, + "isNewUser": { + "description": "Whether the logged in user was created by this request.", + "type": "boolean" + }, + "lastName": { + "description": "Last name of the user.", + "type": "string" + }, + "relayState": { + "description": "Generated RelayState.", + "type": "string" + }, + "samlResponse": { + "description": "Signed SAMLResponse created for the Relying Party.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudIdentitytoolkitV1MfaEnrollment": { + "description": "Information on which multi-factor authentication (MFA) providers are enabled for an account.", + "id": "GoogleCloudIdentitytoolkitV1MfaEnrollment", + "properties": { + "displayName": { + "description": "Display name for this mfa option e.g. \"corp cell phone\".", + "type": "string" + }, + "enrolledAt": { + "description": "Timestamp when the account enrolled this second factor.", + "format": "google-datetime", + "type": "string" + }, + "mfaEnrollmentId": { + "description": "ID of this MFA option.", + "type": "string" + }, + "phoneInfo": { + "description": "Normally this will show the phone number associated with this enrollment. In some situations, such as after a first factor sign in, it will only show the obfuscated version of the associated phone number.", + "type": "string" + }, + "unobfuscatedPhoneInfo": { + "description": "Output only. Unobfuscated phone_info.", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudIdentitytoolkitV1MfaFactor": { + "id": "GoogleCloudIdentitytoolkitV1MfaFactor", + "properties": { + "displayName": { + "description": "Display name for this mfa option e.g. \"corp cell phone\".", + "type": "string" + }, + "phoneInfo": { + "description": "Phone number to receive OTP for MFA.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudIdentitytoolkitV1MfaInfo": { + "description": "Multi-factor authentication related information.", + "id": "GoogleCloudIdentitytoolkitV1MfaInfo", + "properties": { + "enrollments": { + "description": "The second factors the user has enrolled.", + "items": { + "$ref": "GoogleCloudIdentitytoolkitV1MfaEnrollment" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleCloudIdentitytoolkitV1OpenIdConnectKey": { + "description": "Represents a public key of the session cookie signer, formatted as a [JSON Web Key (JWK)](https://tools.ietf.org/html/rfc7517).", + "id": "GoogleCloudIdentitytoolkitV1OpenIdConnectKey", + "properties": { + "alg": { + "description": "Signature algorithm.", + "type": "string" + }, + "e": { + "description": "Exponent for the RSA public key, it is represented as the base64url encoding of the value's big endian representation.", + "type": "string" + }, + "kid": { + "description": "Unique string to identify this key.", + "type": "string" + }, + "kty": { + "description": "Key type.", + "type": "string" + }, + "n": { + "description": "Modulus for the RSA public key, it is represented as the base64url encoding of the value's big endian representation.", + "type": "string" + }, + "use": { + "description": "Key use.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudIdentitytoolkitV1ProviderUserInfo": { + "description": "Information about the user as provided by various Identity Providers.", + "id": "GoogleCloudIdentitytoolkitV1ProviderUserInfo", + "properties": { + "displayName": { + "description": "The user's display name at the Identity Provider.", + "type": "string" + }, + "email": { + "description": "The user's email address at the Identity Provider.", + "type": "string" + }, + "federatedId": { + "description": "The user's identifier at the Identity Provider.", + "type": "string" + }, + "phoneNumber": { + "description": "The user's phone number at the Identity Provider.", + "type": "string" + }, + "photoUrl": { + "description": "The user's profile photo URL at the Identity Provider.", + "type": "string" + }, + "providerId": { + "description": "The ID of the Identity Provider.", + "type": "string" + }, + "rawId": { + "description": "The user's raw identifier directly returned from Identity Provider.", + "type": "string" + }, + "screenName": { + "description": "The user's screen_name at Twitter or login name at GitHub.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudIdentitytoolkitV1QueryUserInfoRequest": { + "description": "Request message for QueryUserInfo.", + "id": "GoogleCloudIdentitytoolkitV1QueryUserInfoRequest", + "properties": { + "expression": { + "description": "Query conditions used to filter results. If more than one is passed, only the first SqlExpression is evaluated.", + "items": { + "$ref": "GoogleCloudIdentitytoolkitV1SqlExpression" + }, + "type": "array" + }, + "limit": { + "description": "The maximum number of accounts to return with an upper limit of __500__. Defaults to _500_. Only valid when `return_user_info` is set to `true`.", + "format": "int64", + "type": "string" + }, + "offset": { + "description": "The number of accounts to skip from the beginning of matching records. Only valid when `return_user_info` is set to `true`.", + "format": "int64", + "type": "string" + }, + "order": { + "description": "The order for sorting query result. Defaults to __ascending__ order. Only valid when `return_user_info` is set to `true`.", + "enum": [ + "ORDER_UNSPECIFIED", + "ASC", + "DESC" + ], + "enumDescriptions": [ + "Order is not specified.", + "Sort on ascending order.", + "Sort on descending order." + ], + "type": "string" + }, + "returnUserInfo": { + "description": "If `true`, this request will return the accounts matching the query. If `false`, only the __count__ of accounts matching the query will be returned. Defaults to `true`.", + "type": "boolean" + }, + "sortBy": { + "description": "The field to use for sorting user accounts. Defaults to `USER_ID`. Note: when `phone_number` is specified in `expression`, the result ignores the sorting. Only valid when `return_user_info` is set to `true`.", + "enum": [ + "SORT_BY_FIELD_UNSPECIFIED", + "USER_ID", + "NAME", + "CREATED_AT", + "LAST_LOGIN_AT", + "USER_EMAIL" + ], + "enumDescriptions": [ + "Sort field is not specified.", + "Sort result by userId.", + "Sort result by name.", + "Sort result by createdAt.", + "Sort result by lastLoginAt.", + "Sort result by userEmail." + ], + "type": "string" + }, + "tenantId": { + "description": "The ID of the tenant to which the result is scoped.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudIdentitytoolkitV1QueryUserInfoResponse": { + "description": "Response message for QueryUserInfo.", + "id": "GoogleCloudIdentitytoolkitV1QueryUserInfoResponse", + "properties": { + "recordsCount": { + "description": "If `return_user_info` in the request is true, this is the number of returned accounts in this message. Otherwise, this is the total number of accounts matching the query.", + "format": "int64", + "type": "string" + }, + "userInfo": { + "description": "If `return_user_info` in the request is true, this is the accounts matching the query.", + "items": { + "$ref": "GoogleCloudIdentitytoolkitV1UserInfo" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleCloudIdentitytoolkitV1ResetPasswordRequest": { + "description": "Request message for ResetPassword.", + "id": "GoogleCloudIdentitytoolkitV1ResetPasswordRequest", + "properties": { + "email": { + "description": "The email of the account to be modified. Specify this and the old password in order to change an account's password without using an out-of-band code.", + "type": "string" + }, + "newPassword": { + "description": "The new password to be set for this account. Specifying this field will result in a change to the account and consume the out-of-band code if one was specified and it was of type PASSWORD_RESET.", + "type": "string" + }, + "oldPassword": { + "description": "The current password of the account to be modified. Specify this and email to change an account's password without using an out-of-band code.", + "type": "string" + }, + "oobCode": { + "description": "An out-of-band (OOB) code generated by GetOobCode request. Specify only this parameter (or only this parameter and a tenant ID) to get the out-of-band code's type in the response without mutating the account's state. Only a PASSWORD_RESET out-of-band code can be consumed via this method.", + "type": "string" + }, + "tenantId": { + "description": "The tenant ID of the Identity Platform tenant the account belongs to.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudIdentitytoolkitV1ResetPasswordResponse": { + "description": "Response message for ResetPassword.", + "id": "GoogleCloudIdentitytoolkitV1ResetPasswordResponse", + "properties": { + "email": { + "description": "The email associated with the out-of-band code that was used.", + "type": "string" + }, + "kind": { + "type": "string" + }, + "mfaInfo": { + "$ref": "GoogleCloudIdentitytoolkitV1MfaEnrollment" + }, + "newEmail": { + "type": "string" + }, + "requestType": { + "enum": [ + "OOB_REQ_TYPE_UNSPECIFIED", + "PASSWORD_RESET", + "OLD_EMAIL_AGREE", + "NEW_EMAIL_ACCEPT", + "VERIFY_EMAIL", + "RECOVER_EMAIL", + "EMAIL_SIGNIN", + "VERIFY_AND_CHANGE_EMAIL", + "REVERT_SECOND_FACTOR_ADDITION" + ], + "enumDescriptions": [ + "Oob code type is not specified.", + "reset password", + "", + "", + "verify the account's email address by sending an email", + "", + "sign in with email only", + "This flow sends an email to the specified new email, and when applied by clicking the link in the email changes the account's email to the new email. Used when the account must have verified email at all times, such as MFA accounts.", + "" + ], + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudIdentitytoolkitV1SendVerificationCodeRequest": { + "description": "Request message for SendVerificationCode. At least one of (`ios_receipt` and `ios_secret`), `recaptcha_token`, or `safety_net_token` must be specified to verify the verification code is being sent on behalf of a real app and not an emulator.", + "id": "GoogleCloudIdentitytoolkitV1SendVerificationCodeRequest", + "properties": { + "autoRetrievalInfo": { + "$ref": "GoogleCloudIdentitytoolkitV1AutoRetrievalInfo", + "description": "Android only. Used by Google Play Services to identify the app for auto-retrieval." + }, + "iosReceipt": { + "description": "Receipt of successful iOS app token validation. At least one of (`ios_receipt` and `ios_secret`), `recaptcha_token`, or `safety_net_token` must be specified to verify the verification code is being sent on behalf of a real app and not an emulator. This should come from the response of verifyIosClient. If present, the caller should also provide the `ios_secret`, as well as a bundle ID in the `x-ios-bundle-identifier` header, which must match the bundle ID from the verifyIosClient request.", + "type": "string" + }, + "iosSecret": { + "description": "Secret delivered to iOS app as a push notification. Should be passed with an `ios_receipt` as well as the `x-ios-bundle-identifier` header.", + "type": "string" + }, + "phoneNumber": { + "description": "The phone number to send the verification code to in E.164 format.", + "type": "string" + }, + "recaptchaToken": { + "description": "Recaptcha token for app verification. At least one of (`ios_receipt` and `ios_secret`), `recaptcha_token`, or `safety_net_token` must be specified to verify the verification code is being sent on behalf of a real app and not an emulator. The recaptcha should be generated by calling getRecaptchaParams and the recaptcha token will be generated on user completion of the recaptcha challenge.", + "type": "string" + }, + "safetyNetToken": { + "description": "Android only. Used to assert application identity in place of a recaptcha token. At least one of (`ios_receipt` and `ios_secret`), `recaptcha_token`, or `safety_net_token` must be specified to verify the verification code is being sent on behalf of a real app and not an emulator. A SafetyNet Token can be generated via the [SafetyNet Android Attestation API](https://developer.android.com/training/safetynet/attestation.html), with the Base64 encoding of the `phone_number` field as the nonce.", + "type": "string" + }, + "tenantId": { + "description": "Tenant ID of the Identity Platform tenant the user is signing in to.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudIdentitytoolkitV1SendVerificationCodeResponse": { + "description": "Response message for SendVerificationCode.", + "id": "GoogleCloudIdentitytoolkitV1SendVerificationCodeResponse", + "properties": { + "sessionInfo": { + "description": "Encrypted session information. This can be used in signInWithPhoneNumber to authenticate the phone number.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudIdentitytoolkitV1SetAccountInfoRequest": { + "description": "Request message for SetAccountInfo.", + "id": "GoogleCloudIdentitytoolkitV1SetAccountInfoRequest", + "properties": { + "captchaChallenge": { + "type": "string" + }, + "captchaResponse": { + "description": "The response from reCaptcha challenge. This is required when the system detects possible abuse activities.", + "type": "string" + }, + "createdAt": { + "description": "The timestamp in milliseconds when the account was created.", + "format": "int64", + "type": "string" + }, + "customAttributes": { + "description": "JSON formatted custom attributes to be stored in the Identity Platform ID token. Specifying this field requires a Google OAuth 2.0 credential with proper permissions (https://cloud.google.com/identity-platform/docs/access-control).", + "type": "string" + }, + "delegatedProjectNumber": { + "format": "int64", + "type": "string" + }, + "deleteAttribute": { + "description": "The account's attributes to be deleted.", + "items": { + "enum": [ + "USER_ATTRIBUTE_NAME_UNSPECIFIED", + "EMAIL", + "DISPLAY_NAME", + "PROVIDER", + "PHOTO_URL", + "PASSWORD", + "RAW_USER_INFO" + ], + "enumDescriptions": [ + "User attribute name is not specified.", + "User attribute key name is email.", + "User attribute key name is displayName.", + "User attribute key name is provider.", + "User attribute key name is photoURL.", + "User attribute key name is password.", + "User attribute key name is rawUserInfo." + ], + "type": "string" + }, + "type": "array" + }, + "deleteProvider": { + "description": "The Identity Providers to unlink from the user's account.", + "items": { + "type": "string" + }, + "type": "array" + }, + "disableUser": { + "description": "If true, marks the account as disabled, meaning the user will no longer be able to sign-in.", + "type": "boolean" + }, + "displayName": { + "description": "The user's new display name to be updated in the account's attributes. The length of the display name must be less than or equal to 256 characters.", + "type": "string" + }, + "email": { + "description": "The user's new email to be updated in the account's attributes. The length of email should be less than 256 characters and in the format of `name@domain.tld`. The email should also match the [RFC 822](https://tools.ietf.org/html/rfc822) addr-spec production.", + "type": "string" + }, + "emailVerified": { + "description": "Whether the user's email has been verified. Specifying this field requires a Google OAuth 2.0 credential with proper permissions (https://cloud.google.com/identity-platform/docs/access-control).", + "type": "boolean" + }, + "idToken": { + "description": "A valid Identity Platform ID token. Required when attempting to change user-related information.", + "type": "string" + }, + "instanceId": { + "type": "string" + }, + "lastLoginAt": { + "description": "The timestamp in milliseconds when the account last logged in.", + "format": "int64", + "type": "string" + }, + "linkProviderUserInfo": { + "$ref": "GoogleCloudIdentitytoolkitV1ProviderUserInfo", + "description": "The provider to be linked to the user's account. Specifying this field requires a Google OAuth 2.0 credential with proper permissions (https://cloud.google.com/identity-platform/docs/access-control)." + }, + "localId": { + "description": "The ID of the user. Specifying this field requires a Google OAuth 2.0 credential with proper permissions (https://cloud.google.com/identity-platform/docs/access-control). For requests from end-users, an ID token should be passed instead.", + "type": "string" + }, + "mfa": { + "$ref": "GoogleCloudIdentitytoolkitV1MfaInfo", + "description": "The multi-factor authentication related information to be set on the user's account. This will overwrite any previous multi-factor related information on the account. Specifying this field requires a Google OAuth 2.0 credential with proper permissions (https://cloud.google.com/identity-platform/docs/access-control)." + }, + "oobCode": { + "description": "The out-of-band code to be applied on the user's account. The following out-of-band code types are supported: * VERIFY_EMAIL * RECOVER_EMAIL * REVERT_SECOND_FACTOR_ADDITION * VERIFY_AND_CHANGE_EMAIL", + "type": "string" + }, + "password": { + "description": "The user's new password to be updated in the account's attributes. The password must be at least 6 characters long.", + "type": "string" + }, + "phoneNumber": { + "description": "The phone number to be updated in the account's attributes.", + "type": "string" + }, + "photoUrl": { + "description": "The user's new photo URL for the account's profile photo to be updated in the account's attributes. The length of the URL must be less than or equal to 2048 characters.", + "type": "string" + }, + "provider": { + "description": "The Identity Providers that the account should be associated with.", + "items": { + "type": "string" + }, + "type": "array" + }, + "returnSecureToken": { + "description": "Whether or not to return an ID and refresh token. Should always be true.", + "type": "boolean" + }, + "targetProjectId": { + "description": "The project ID for the project that the account belongs to. Specifying this field requires Google OAuth 2.0 credential with proper permissions (https://cloud.google.com/identity-platform/docs/access-control). Requests from end users should pass an Identity Platform ID token instead.", + "type": "string" + }, + "tenantId": { + "description": "The tenant ID of the Identity Platform tenant that the account belongs to. Requests from end users should pass an Identity Platform ID token rather than setting this field.", + "type": "string" + }, + "upgradeToFederatedLogin": { + "description": "Whether the account should be restricted to only using federated login.", + "type": "boolean" + }, + "validSince": { + "description": "Specifies the minimum timestamp in seconds for an Identity Platform ID token to be considered valid.", + "format": "int64", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudIdentitytoolkitV1SetAccountInfoResponse": { + "description": "Response message for SetAccountInfo", + "id": "GoogleCloudIdentitytoolkitV1SetAccountInfoResponse", + "properties": { + "displayName": { + "description": "The account's display name.", + "type": "string" + }, + "email": { + "description": "The account's email address.", + "type": "string" + }, + "emailVerified": { + "description": "Whether the account's email has been verified.", + "type": "boolean" + }, + "expiresIn": { + "description": "The number of seconds until the Identity Platform ID token expires.", + "format": "int64", + "type": "string" + }, + "idToken": { + "description": "An Identity Platform ID token for the account. This is used for legacy user sign up.", + "type": "string" + }, + "kind": { + "type": "string" + }, + "localId": { + "description": "The ID of the authenticated user.", + "type": "string" + }, + "newEmail": { + "description": "The new email that has been set on the user's account attributes.", + "type": "string" + }, + "passwordHash": { + "description": "Deprecated. No actual password hash is currently returned.", + "type": "string" + }, + "photoUrl": { + "description": "The user's photo URL for the account's profile photo.", + "type": "string" + }, + "providerUserInfo": { + "description": "The linked Identity Providers on the account.", + "items": { + "$ref": "GoogleCloudIdentitytoolkitV1ProviderUserInfo" + }, + "type": "array" + }, + "refreshToken": { + "description": "A refresh token for the account. This is used for legacy user sign up.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudIdentitytoolkitV1SignInWithCustomTokenRequest": { + "description": "Request message for SignInWithCustomToken.", + "id": "GoogleCloudIdentitytoolkitV1SignInWithCustomTokenRequest", + "properties": { + "delegatedProjectNumber": { + "format": "int64", + "type": "string" + }, + "instanceId": { + "type": "string" + }, + "returnSecureToken": { + "description": "Should always be true.", + "type": "boolean" + }, + "tenantId": { + "description": "The ID of the Identity Platform tenant the user is signing in to. If present, the ID should match the tenant_id in the token.", + "type": "string" + }, + "token": { + "description": "Required. The custom Auth token asserted by the developer. The token should be a [JSON Web Token (JWT)](https://tools.ietf.org/html/rfc7519) that includes the claims listed in the [API reference](https://cloud.google.com/identity-platform/docs/reference/rest/client/) under the \"Custom Token Claims\" section.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudIdentitytoolkitV1SignInWithCustomTokenResponse": { + "description": "Response message for SignInWithCustomToken.", + "id": "GoogleCloudIdentitytoolkitV1SignInWithCustomTokenResponse", + "properties": { + "expiresIn": { + "description": "The number of seconds until the ID token expires.", + "format": "int64", + "type": "string" + }, + "idToken": { + "description": "An Identity Platform ID token for the authenticated user.", + "type": "string" + }, + "isNewUser": { + "description": "Whether the authenticated user was created by this request.", + "type": "boolean" + }, + "kind": { + "type": "string" + }, + "refreshToken": { + "description": "An Identity Platform refresh token for the authenticated user.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudIdentitytoolkitV1SignInWithEmailLinkRequest": { + "description": "Request message for SignInWithEmailLink", + "id": "GoogleCloudIdentitytoolkitV1SignInWithEmailLinkRequest", + "properties": { + "email": { + "description": "Required. The email address the sign-in link was sent to. The length of email should be less than 256 characters and in the format of `name@domain.tld`. The email should also match the [RFC 822](https://tools.ietf.org/html/rfc822) addr-spec production.", + "type": "string" + }, + "idToken": { + "description": "A valid ID token for an Identity Platform account. If passed, this request will link the email address to the user represented by this ID token and enable sign-in with email link on the account for the future.", + "type": "string" + }, + "oobCode": { + "description": "Required. The out-of-band code from the email link.", + "type": "string" + }, + "tenantId": { + "description": "The ID of the Identity Platform tenant the user is signing in to. If not set, the user will sign in to the default Identity Platform project.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudIdentitytoolkitV1SignInWithEmailLinkResponse": { + "description": "Response message for SignInWithEmailLink.", + "id": "GoogleCloudIdentitytoolkitV1SignInWithEmailLinkResponse", + "properties": { + "email": { + "description": "The email the user signed in with. Always present in the response.", + "type": "string" + }, + "expiresIn": { + "description": "The number of seconds until the ID token expires.", + "format": "int64", + "type": "string" + }, + "idToken": { + "description": "An Identity Platform ID token for the authenticated user.", + "type": "string" + }, + "isNewUser": { + "description": "Whether the authenticated user was created by this request.", + "type": "boolean" + }, + "kind": { + "type": "string" + }, + "localId": { + "description": "The ID of the authenticated user. Always present in the response.", + "type": "string" + }, + "mfaInfo": { + "description": "Info on which multi-factor authentication providers are enabled. Present if the user needs to complete the sign-in using multi-factor authentication.", + "items": { + "$ref": "GoogleCloudIdentitytoolkitV1MfaEnrollment" + }, + "type": "array" + }, + "mfaPendingCredential": { + "description": "An opaque string that functions as proof that the user has successfully passed the first factor check.", + "type": "string" + }, + "refreshToken": { + "description": "Refresh token for the authenticated user.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudIdentitytoolkitV1SignInWithGameCenterRequest": { + "description": "Request message for SignInWithGameCenter", + "id": "GoogleCloudIdentitytoolkitV1SignInWithGameCenterRequest", + "properties": { + "displayName": { + "description": "The user's Game Center display name.", + "type": "string" + }, + "idToken": { + "description": "A valid ID token for an Identity Platform account. If present, this request will link the Game Center player ID to the account represented by this ID token.", + "type": "string" + }, + "playerId": { + "description": "Required. The user's Game Center player ID.", + "type": "string" + }, + "publicKeyUrl": { + "description": "Required. The URL to fetch the Apple public key in order to verify the given signature is signed by Apple.", + "type": "string" + }, + "salt": { + "description": "Required. A random string used to generate the given signature.", + "type": "string" + }, + "signature": { + "description": "Required. The verification signature data generated by Apple.", + "type": "string" + }, + "tenantId": { + "description": "The ID of the Identity Platform tenant the user is signing in to.", + "type": "string" + }, + "timestamp": { + "description": "Required. The time when the signature was created by Apple, in milliseconds since the epoch.", + "format": "int64", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudIdentitytoolkitV1SignInWithGameCenterResponse": { + "description": "Response message for SignInWithGameCenter", + "id": "GoogleCloudIdentitytoolkitV1SignInWithGameCenterResponse", + "properties": { + "displayName": { + "description": "Display name of the authenticated user.", + "type": "string" + }, + "expiresIn": { + "description": "The number of seconds until the ID token expires.", + "format": "int64", + "type": "string" + }, + "idToken": { + "description": "An Identity Platform ID token for the authenticated user.", + "type": "string" + }, + "isNewUser": { + "description": "Whether the logged in user was created by this request.", + "type": "boolean" + }, + "localId": { + "description": "The ID of the authenticated user. Always present in the response.", + "type": "string" + }, + "playerId": { + "description": "The user's Game Center player ID.", + "type": "string" + }, + "refreshToken": { + "description": "An Identity Platform refresh token for the authenticated user.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudIdentitytoolkitV1SignInWithIdpRequest": { + "description": "Request message for SignInWithIdp.", + "id": "GoogleCloudIdentitytoolkitV1SignInWithIdpRequest", + "properties": { + "autoCreate": { + "type": "boolean" + }, + "delegatedProjectNumber": { + "format": "int64", + "type": "string" + }, + "idToken": { + "description": "A valid Identity Platform ID token. If passed, the user's account at the IdP will be linked to the account represented by this ID token.", + "type": "string" + }, + "pendingIdToken": { + "type": "string" + }, + "pendingToken": { + "description": "An opaque string from a previous SignInWithIdp response. If set, it can be used to repeat the sign-in operation from the previous SignInWithIdp operation.", + "type": "string" + }, + "postBody": { + "description": "If the user is signing in with an authorization response obtained via a previous CreateAuthUri authorization request, this is the body of the HTTP POST callback from the IdP, if present. Otherwise, if the user is signing in with a manually provided IdP credential, this should be a URL-encoded form that contains the credential (e.g. an ID token or access token for OAuth 2.0 IdPs) and the provider ID of the IdP that issued the credential. For example, if the user is signing in to the Google provider using a Google ID token, this should be set to `id_token=[GOOGLE_ID_TOKEN]\u0026providerId=google.com`, where `[GOOGLE_ID_TOKEN]` should be replaced with the Google ID token. If the user is signing in to the Facebook provider using a Facebook authentication token, this should be set to `id_token=[FACEBOOK_AUTHENTICATION_TOKEN]\u0026providerId=facebook.com\u0026nonce= [NONCE]`, where `[FACEBOOK_AUTHENTICATION_TOKEN]` should be replaced with the Facebook authentication token. Nonce is required for validating the token. The request will fail if no nonce is provided. If the user is signing in to the Facebook provider using a Facebook access token, this should be set to `access_token=[FACEBOOK_ACCESS_TOKEN]\u0026providerId=facebook.com`, where `[FACEBOOK_ACCESS_TOKEN]` should be replaced with the Facebook access token. If the user is signing in to the Twitter provider using a Twitter OAuth 1.0 credential, this should be set to `access_token=[TWITTER_ACCESS_TOKEN]\u0026oauth_token_secret=[TWITTER_TOKEN_SECRET]\u0026providerId=twitter.com`, where `[TWITTER_ACCESS_TOKEN]` and `[TWITTER_TOKEN_SECRET]` should be replaced with the Twitter OAuth access token and Twitter OAuth token secret respectively.", + "type": "string" + }, + "requestUri": { + "description": "Required. The URL to which the IdP redirects the user back. This can be set to `http://localhost` if the user is signing in with a manually provided IdP credential.", + "type": "string" + }, + "returnIdpCredential": { + "description": "Whether or not to return OAuth credentials from the IdP on the following errors: `FEDERATED_USER_ID_ALREADY_LINKED` and `EMAIL_EXISTS`.", + "type": "boolean" + }, + "returnRefreshToken": { + "description": "Whether or not to return the OAuth refresh token from the IdP, if available.", + "type": "boolean" + }, + "returnSecureToken": { + "description": "Should always be true.", + "type": "boolean" + }, + "sessionId": { + "description": "The session ID returned from a previous CreateAuthUri call. This field is verified against that session ID to prevent session fixation attacks. Required if the user is signing in with an authorization response from a previous CreateAuthUri authorization request.", + "type": "string" + }, + "tenantId": { + "description": "The ID of the Identity Platform tenant the user is signing in to. If not set, the user will sign in to the default Identity Platform project.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudIdentitytoolkitV1SignInWithIdpResponse": { + "description": "Response message for SignInWithIdp.", + "id": "GoogleCloudIdentitytoolkitV1SignInWithIdpResponse", + "properties": { + "context": { + "description": "The opaque string set in CreateAuthUri that is used to maintain contextual information between the authentication request and the callback from the IdP.", + "type": "string" + }, + "dateOfBirth": { + "description": "The date of birth for the user's account at the IdP.", + "type": "string" + }, + "displayName": { + "description": "The display name for the user's account at the IdP.", + "type": "string" + }, + "email": { + "description": "The email address of the user's account at the IdP.", + "type": "string" + }, + "emailRecycled": { + "description": "Whether or not there is an existing Identity Platform user account with the same email address but linked to a different account at the same IdP. Only present if the \"One account per email address\" setting is enabled and the email address at the IdP is verified.", + "type": "boolean" + }, + "emailVerified": { + "description": "Whether the user account's email address is verified.", + "type": "boolean" + }, + "errorMessage": { + "description": "The error message returned if `return_idp_credential` is set to `true` and either the `FEDERATED_USER_ID_ALREADY_LINKED` or `EMAIL_EXISTS` error is encountered. This field's value is either `FEDERATED_USER_ID_ALREADY_LINKED` or `EMAIL_EXISTS`.", + "type": "string" + }, + "expiresIn": { + "description": "The number of seconds until the Identity Platform ID token expires.", + "format": "int64", + "type": "string" + }, + "federatedId": { + "description": "The user's account ID at the IdP. Always present in the response.", + "type": "string" + }, + "firstName": { + "description": "The first name for the user's account at the IdP.", + "type": "string" + }, + "fullName": { + "description": "The full name for the user's account at the IdP.", + "type": "string" + }, + "idToken": { + "description": "An Identity Platform ID token for the authenticated user.", + "type": "string" + }, + "inputEmail": { + "type": "string" + }, + "isNewUser": { + "description": "Whether or not a new Identity Platform account was created for the authenticated user.", + "type": "boolean" + }, + "kind": { + "type": "string" + }, + "language": { + "description": "The language preference for the user's account at the IdP.", + "type": "string" + }, + "lastName": { + "description": "The last name for the user's account at the IdP.", + "type": "string" + }, + "localId": { + "description": "The ID of the authenticated Identity Platform user. Always present in the response.", + "type": "string" + }, + "mfaInfo": { + "description": "Info on which multi-factor authentication providers are enabled for the account. Present if the user needs to complete the sign-in using multi-factor authentication.", + "items": { + "$ref": "GoogleCloudIdentitytoolkitV1MfaEnrollment" + }, + "type": "array" + }, + "mfaPendingCredential": { + "description": "An opaque string that functions as proof that the user has successfully passed the first factor authentication.", + "type": "string" + }, + "needConfirmation": { + "description": "Whether or not there is an existing Identity Platform user account with the same email address as the current account signed in at the IdP, and the account's email addresss is not verified at the IdP. The user will need to sign in to the existing Identity Platform account and then link the current credential from the IdP to it. Only present if the \"One account per email address\" setting is enabled.", + "type": "boolean" + }, + "needEmail": { + "type": "boolean" + }, + "nickName": { + "description": "The nickname for the user's account at the IdP.", + "type": "string" + }, + "oauthAccessToken": { + "description": "The OAuth access token from the IdP, if available.", + "type": "string" + }, + "oauthAuthorizationCode": { + "description": "The OAuth 2.0 authorization code, if available. Only present for the Google provider.", + "type": "string" + }, + "oauthExpireIn": { + "description": "The number of seconds until the OAuth access token from the IdP expires.", + "format": "int32", + "type": "integer" + }, + "oauthIdToken": { + "description": "The OpenID Connect ID token from the IdP, if available.", + "type": "string" + }, + "oauthRefreshToken": { + "description": "The OAuth 2.0 refresh token from the IdP, if available and `return_refresh_token` is set to `true`.", + "type": "string" + }, + "oauthTokenSecret": { + "description": "The OAuth 1.0 token secret from the IdP, if available. Only present for the Twitter provider.", + "type": "string" + }, + "originalEmail": { + "description": "The main (top-level) email address of the user's Identity Platform account, if different from the email address at the IdP. Only present if the \"One account per email address\" setting is enabled.", + "type": "string" + }, + "pendingToken": { + "description": "An opaque string that can be used as a credential from the IdP the user is signing into. The pending token obtained here can be set in a future SignInWithIdp request to sign the same user in with the IdP again.", + "type": "string" + }, + "photoUrl": { + "description": "The URL of the user's profile picture at the IdP.", + "type": "string" + }, + "providerId": { + "description": "The provider ID of the IdP that the user is signing in to. Always present in the response.", + "type": "string" + }, + "rawUserInfo": { + "description": "The stringified JSON response containing all the data corresponding to the user's account at the IdP.", + "type": "string" + }, + "refreshToken": { + "description": "An Identity Platform refresh token for the authenticated user.", + "type": "string" + }, + "screenName": { + "description": "The screen name for the user's account at the Twitter IdP or the login name for the user's account at the GitHub IdP.", + "type": "string" + }, + "tenantId": { + "description": "The value of the `tenant_id` field in the request.", + "type": "string" + }, + "timeZone": { + "description": "The time zone for the user's account at the IdP.", + "type": "string" + }, + "verifiedProvider": { + "description": "A list of provider IDs that the user can sign in to in order to resolve a `need_confirmation` error. Only present if `need_confirmation` is set to `true`.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleCloudIdentitytoolkitV1SignInWithPasswordRequest": { + "description": "Request message for SignInWithPassword.", + "id": "GoogleCloudIdentitytoolkitV1SignInWithPasswordRequest", + "properties": { + "captchaChallenge": { + "type": "string" + }, + "captchaResponse": { + "description": "The reCAPTCHA token provided by the reCAPTCHA client-side integration. reCAPTCHA Enterprise uses it for risk assessment. Required when reCAPTCHA Enterprise is enabled.", + "type": "string" + }, + "delegatedProjectNumber": { + "format": "int64", + "type": "string" + }, + "email": { + "description": "Required. The email the user is signing in with. The length of email should be less than 256 characters and in the format of `name@domain.tld`. The email should also match the [RFC 822](https://tools.ietf.org/html/rfc822) addr-spec production.", + "type": "string" + }, + "idToken": { + "type": "string" + }, + "instanceId": { + "type": "string" + }, + "password": { + "description": "Required. The password the user provides to sign in to the account.", + "type": "string" + }, + "pendingIdToken": { + "type": "string" + }, + "returnSecureToken": { + "description": "Should always be true.", + "type": "boolean" + }, + "tenantId": { + "description": "The ID of the Identity Platform tenant the user is signing in to. If not set, the user will sign in to the default Identity Platform instance in the project.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudIdentitytoolkitV1SignInWithPasswordResponse": { + "description": "Response message for SignInWithPassword.", + "id": "GoogleCloudIdentitytoolkitV1SignInWithPasswordResponse", + "properties": { + "displayName": { + "description": "The user's display name stored in the account's attributes.", + "type": "string" + }, + "email": { + "description": "The email of the authenticated user. Always present in the response.", + "type": "string" + }, + "expiresIn": { + "description": "The number of seconds until the Identity Platform ID token expires.", + "format": "int64", + "type": "string" + }, + "idToken": { + "description": "An Identity Platform ID token for the authenticated user.", + "type": "string" + }, + "kind": { + "type": "string" + }, + "localId": { + "description": "The ID of the authenticated user. Always present in the response.", + "type": "string" + }, + "mfaInfo": { + "description": "Info on which multi-factor authentication providers are enabled for the account. Present if the user needs to complete the sign-in using multi-factor authentication.", + "items": { + "$ref": "GoogleCloudIdentitytoolkitV1MfaEnrollment" + }, + "type": "array" + }, + "mfaPendingCredential": { + "description": "An opaque string that functions as proof that the user has successfully passed the first factor authentication.", + "type": "string" + }, + "oauthAccessToken": { + "description": "The OAuth2 access token.", + "type": "string" + }, + "oauthAuthorizationCode": { + "type": "string" + }, + "oauthExpireIn": { + "description": "The access token expiration time in seconds.", + "format": "int32", + "type": "integer" + }, + "profilePicture": { + "description": "The user's profile picture stored in the account's attributes.", + "type": "string" + }, + "refreshToken": { + "description": "An Identity Platform refresh token for the authenticated user.", + "type": "string" + }, + "registered": { + "description": "Whether the email is for an existing account. Always true.", + "type": "boolean" + } + }, + "type": "object" + }, + "GoogleCloudIdentitytoolkitV1SignInWithPhoneNumberRequest": { + "description": "Request message for SignInWithPhoneNumber.", + "id": "GoogleCloudIdentitytoolkitV1SignInWithPhoneNumberRequest", + "properties": { + "code": { + "description": "User-entered verification code from an SMS sent to the user's phone.", + "type": "string" + }, + "idToken": { + "description": "A valid ID token for an Identity Platform account. If passed, this request will link the phone number to the user represented by this ID token if the phone number is not in use, or will reauthenticate the user if the phone number is already linked to the user.", + "type": "string" + }, + "operation": { + "enum": [ + "VERIFY_OP_UNSPECIFIED", + "SIGN_UP_OR_IN", + "REAUTH", + "UPDATE", + "LINK" + ], + "enumDescriptions": [ + "Operation is not specified.", + "Verify operation is to sign up/sign in.", + "Verify operation is to reauth.", + "Verify operation is to update.", + "Verify operation is to link." + ], + "type": "string" + }, + "phoneNumber": { + "description": "The user's phone number to sign in with. This is necessary in the case of uing a temporary proof, in which case it must match the phone number that was authenticated in the request that generated the temporary proof. This field is ignored if a session info is passed.", + "type": "string" + }, + "sessionInfo": { + "description": "Encrypted session information from the response of sendVerificationCode. In the case of authenticating with an SMS code this must be specified, but in the case of using a temporary proof it can be unspecified.", + "type": "string" + }, + "temporaryProof": { + "description": "A proof of the phone number verification, provided from a previous signInWithPhoneNumber request. If this is passed, the caller must also pass in the phone_number field the phone number that was verified in the previous request.", + "type": "string" + }, + "tenantId": { + "description": "The ID of the Identity Platform tenant the user is signing in to. If not set, the user will sign in to the default Identity Platform project.", + "type": "string" + }, + "verificationProof": { + "description": "Do not use.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudIdentitytoolkitV1SignInWithPhoneNumberResponse": { + "description": "Response message for SignInWithPhoneNumber.", + "id": "GoogleCloudIdentitytoolkitV1SignInWithPhoneNumberResponse", + "properties": { + "expiresIn": { + "description": "The number of seconds until the ID token expires.", + "format": "int64", + "type": "string" + }, + "idToken": { + "description": "Identity Platform ID token for the authenticated user.", + "type": "string" + }, + "isNewUser": { + "description": "Whether the authenticated user was created by this request.", + "type": "boolean" + }, + "localId": { + "description": "The id of the authenticated user. Present in the case of a successful authentication. In the case when the phone could be verified but the account operation could not be performed, a temporary proof will be returned instead.", + "type": "string" + }, + "phoneNumber": { + "description": "Phone number of the authenticated user. Always present in the response.", + "type": "string" + }, + "refreshToken": { + "description": "Refresh token for the authenticated user.", + "type": "string" + }, + "temporaryProof": { + "description": "A proof of the phone number verification, provided if a phone authentication is successful but the user operation fails. This happens when the request tries to link a phone number to a user with an ID token or reauthenticate with an ID token but the phone number is linked to a different user.", + "type": "string" + }, + "temporaryProofExpiresIn": { + "description": "The number of seconds until the temporary proof expires.", + "format": "int64", + "type": "string" + }, + "verificationProof": { + "description": "Do not use.", + "type": "string" + }, + "verificationProofExpiresIn": { + "description": "Do not use.", + "format": "int64", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudIdentitytoolkitV1SignUpRequest": { + "description": "Request message for SignUp.", + "id": "GoogleCloudIdentitytoolkitV1SignUpRequest", + "properties": { + "captchaChallenge": { + "type": "string" + }, + "captchaResponse": { + "description": "The reCAPTCHA token provided by the reCAPTCHA client-side integration. reCAPTCHA Enterprise uses it for assessment. Required when reCAPTCHA enterprise is enabled.", + "type": "string" + }, + "disabled": { + "description": "Whether the user will be disabled upon creation. Disabled accounts are inaccessible except for requests bearing a Google OAuth2 credential with proper [permissions](https://cloud.google.com/identity-platform/docs/access-control).", + "type": "boolean" + }, + "displayName": { + "description": "The display name of the user to be created.", + "type": "string" + }, + "email": { + "description": "The email to assign to the created user. The length of the email should be less than 256 characters and in the format of `name@domain.tld`. The email should also match the [RFC 822](https://tools.ietf.org/html/rfc822) addr-spec production. An anonymous user will be created if not provided.", + "type": "string" + }, + "emailVerified": { + "description": "Whether the user's email is verified. Specifying this field requires a Google OAuth 2.0 credential with the proper [permissions](https://cloud.google.com/identity-platform/docs/access-control).", + "type": "boolean" + }, + "idToken": { + "description": "A valid ID token for an Identity Platform user. If set, this request will link the authentication credential to the user represented by this ID token. For a non-admin request, both the `email` and `password` fields must be set. For an admin request, `local_id` must not be set.", + "type": "string" + }, + "instanceId": { + "type": "string" + }, + "localId": { + "description": "The ID of the user to create. The ID must be unique within the project that the user is being created under. Specifying this field requires a Google OAuth 2.0 credential with the proper [permissions](https://cloud.google.com/identity-platform/docs/access-control).", + "type": "string" + }, + "mfaInfo": { + "description": "The multi-factor authentication providers for the user to create.", + "items": { + "$ref": "GoogleCloudIdentitytoolkitV1MfaFactor" + }, + "type": "array" + }, + "password": { + "description": "The password to assign to the created user. The password must be be at least 6 characters long. If set, the `email` field must also be set.", + "type": "string" + }, + "phoneNumber": { + "description": "The phone number of the user to create. Specifying this field requires a Google OAuth 2.0 credential with the proper [permissions](https://cloud.google.com/identity-platform/docs/access-control).", + "type": "string" + }, + "photoUrl": { + "description": "The profile photo url of the user to create.", + "type": "string" + }, + "targetProjectId": { + "description": "The project ID of the project which the user should belong to. Specifying this field requires a Google OAuth 2.0 credential with the proper [permissions](https://cloud.google.com/identity-platform/docs/access-control). If this is not set, the target project is inferred from the scope associated to the Bearer access token.", + "type": "string" + }, + "tenantId": { + "description": "The ID of the Identity Platform tenant to create a user under. If not set, the user will be created under the default Identity Platform project.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudIdentitytoolkitV1SignUpResponse": { + "description": "Response message for SignUp.", + "id": "GoogleCloudIdentitytoolkitV1SignUpResponse", + "properties": { + "displayName": { + "description": "The created user's display name.", + "type": "string" + }, + "email": { + "description": "The created user's email.", + "type": "string" + }, + "expiresIn": { + "description": "The number of seconds until the ID token expires.", + "format": "int64", + "type": "string" + }, + "idToken": { + "description": "An Identity Platform ID token for the created user. This field is only set for non-admin requests.", + "type": "string" + }, + "kind": { + "type": "string" + }, + "localId": { + "description": "The ID of the created user. Always present in the response.", + "type": "string" + }, + "refreshToken": { + "description": "An Identity Platform refresh token for the created user. This field is only set for non-admin requests.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudIdentitytoolkitV1SqlExpression": { + "description": "Query conditions used to filter results.", + "id": "GoogleCloudIdentitytoolkitV1SqlExpression", + "properties": { + "email": { + "description": "A case insensitive string that the account's email should match. Only one of `email`, `phone_number`, or `user_id` should be specified in a SqlExpression. If more than one is specified, only the first (in that order) will be applied.", + "type": "string" + }, + "phoneNumber": { + "description": "A string that the account's phone number should match. Only one of `email`, `phone_number`, or `user_id` should be specified in a SqlExpression. If more than one is specified, only the first (in that order) will be applied.", + "type": "string" + }, + "userId": { + "description": "A string that the account's local ID should match. Only one of `email`, `phone_number`, or `user_id` should be specified in a SqlExpression If more than one is specified, only the first (in that order) will be applied.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudIdentitytoolkitV1UploadAccountRequest": { + "description": "Request message for UploadAccount.", + "id": "GoogleCloudIdentitytoolkitV1UploadAccountRequest", + "properties": { + "allowOverwrite": { + "description": "Whether to overwrite an existing account in Identity Platform with a matching `local_id` in the request. If true, the existing account will be overwritten. If false, an error will be returned.", + "type": "boolean" + }, + "argon2Parameters": { + "$ref": "GoogleCloudIdentitytoolkitV1Argon2Parameters", + "description": "The parameters for Argon2 hashing algorithm." + }, + "blockSize": { + "description": "The block size parameter used by the STANDARD_SCRYPT hashing function. This parameter, along with parallelization and cpu_mem_cost help tune the resources needed to hash a password, and should be tuned as processor speeds and memory technologies advance.", + "format": "int32", + "type": "integer" + }, + "cpuMemCost": { + "description": "The CPU memory cost parameter to be used by the STANDARD_SCRYPT hashing function. This parameter, along with block_size and cpu_mem_cost help tune the resources needed to hash a password, and should be tuned as processor speeds and memory technologies advance.", + "format": "int32", + "type": "integer" + }, + "delegatedProjectNumber": { + "format": "int64", + "type": "string" + }, + "dkLen": { + "description": "The desired key length for the STANDARD_SCRYPT hashing function. Must be at least 1.", + "format": "int32", + "type": "integer" + }, + "hashAlgorithm": { + "description": "Required. The hashing function used to hash the account passwords. Must be one of the following: * HMAC_SHA256 * HMAC_SHA1 * HMAC_MD5 * SCRYPT * PBKDF_SHA1 * MD5 * HMAC_SHA512 * SHA1 * BCRYPT * PBKDF2_SHA256 * SHA256 * SHA512 * STANDARD_SCRYPT * ARGON2", + "type": "string" + }, + "memoryCost": { + "description": "Memory cost for hash calculation. Only required when the hashing function is SCRYPT.", + "format": "int32", + "type": "integer" + }, + "parallelization": { + "description": "The parallelization cost parameter to be used by the STANDARD_SCRYPT hashing function. This parameter, along with block_size and cpu_mem_cost help tune the resources needed to hash a password, and should be tuned as processor speeds and memory technologies advance.", + "format": "int32", + "type": "integer" + }, + "passwordHashOrder": { + "description": "Password and salt order when verify password.", + "enum": [ + "UNSPECIFIED_ORDER", + "SALT_AND_PASSWORD", + "PASSWORD_AND_SALT" + ], + "enumDescriptions": [ + "The order is not specified.", + "The order is salt first, and then password.", + "The order is password first, and then salt." + ], + "type": "string" + }, + "rounds": { + "description": "The number of rounds used for hash calculation. Only required for the following hashing functions: * MD5 * SHA1 * SHA256 * SHA512 * PBKDF_SHA1 * PBKDF2_SHA256 * SCRYPT", + "format": "int32", + "type": "integer" + }, + "saltSeparator": { + "description": "One or more bytes to be inserted between the salt and plain text password. For stronger security, this should be a single non-printable character.", + "format": "byte", + "type": "string" + }, + "sanityCheck": { + "description": "If true, the service will do the following list of checks before an account is uploaded: * Duplicate emails * Duplicate federated IDs * Federated ID provider validation If the duplication exists within the list of accounts to be uploaded, it will prevent the entire list from being uploaded. If the email or federated ID is a duplicate of a user already within the project/tenant, the account will not be uploaded, but the rest of the accounts will be unaffected. If false, these checks will be skipped.", + "type": "boolean" + }, + "signerKey": { + "description": "The signer key used to hash the password. Required for the following hashing functions: * SCRYPT, * HMAC_MD5, * HMAC_SHA1, * HMAC_SHA256, * HMAC_SHA512", + "format": "byte", + "type": "string" + }, + "tenantId": { + "description": "The ID of the Identity Platform tenant the account belongs to.", + "type": "string" + }, + "users": { + "description": "A list of accounts to upload. `local_id` is required for each user; everything else is optional.", + "items": { + "$ref": "GoogleCloudIdentitytoolkitV1UserInfo" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleCloudIdentitytoolkitV1UploadAccountResponse": { + "description": "Response message for UploadAccount.", + "id": "GoogleCloudIdentitytoolkitV1UploadAccountResponse", + "properties": { + "error": { + "description": "Detailed error info for accounts that cannot be uploaded.", + "items": { + "$ref": "GoogleCloudIdentitytoolkitV1ErrorInfo" + }, + "type": "array" + }, + "kind": { + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudIdentitytoolkitV1UserInfo": { + "description": "An Identity Platform account's information.", + "id": "GoogleCloudIdentitytoolkitV1UserInfo", + "properties": { + "createdAt": { + "description": "The time, in milliseconds from epoch, when the account was created.", + "format": "int64", + "type": "string" + }, + "customAttributes": { + "description": "Custom claims to be added to any ID tokens minted for the account. Should be at most 1,000 characters in length and in valid JSON format.", + "type": "string" + }, + "customAuth": { + "description": "Output only. Whether this account has been authenticated using SignInWithCustomToken.", + "readOnly": true, + "type": "boolean" + }, + "dateOfBirth": { + "description": "Output only. The date of birth set for the account. This account attribute is not used by Identity Platform. It is available for informational purposes only.", + "readOnly": true, + "type": "string" + }, + "disabled": { + "description": "Whether the account is disabled. Disabled accounts are inaccessible except for requests bearing a Google OAuth2 credential with proper permissions.", + "type": "boolean" + }, + "displayName": { + "description": "The display name of the account. This account attribute is not used by Identity Platform. It is available for informational purposes only.", + "type": "string" + }, + "email": { + "description": "The account's email address. The length of the email should be less than 256 characters and in the format of `name@domain.tld`. The email should also match the [RFC 822](https://tools.ietf.org/html/rfc822) addr-spec.", + "type": "string" + }, + "emailLinkSignin": { + "description": "Output only. Whether the account can authenticate with email link.", + "readOnly": true, + "type": "boolean" + }, + "emailVerified": { + "description": "Whether the account's email address has been verified.", + "type": "boolean" + }, + "initialEmail": { + "description": "The first email address associated with this account. The account's initial email cannot be changed once set and is used to recover access to this account if lost via the RECOVER_EMAIL flow in GetOobCode. Should match the [RFC 822](https://tools.ietf.org/html/rfc822) addr-spec.", + "type": "string" + }, + "language": { + "description": "Output only. The language preference of the account. This account attribute is not used by Identity Platform. It is available for informational purposes only.", + "readOnly": true, + "type": "string" + }, + "lastLoginAt": { + "description": "The last time, in milliseconds from epoch, this account was logged into.", + "format": "int64", + "type": "string" + }, + "lastRefreshAt": { + "description": "Timestamp when an ID token was last minted for this account.", + "format": "google-datetime", + "type": "string" + }, + "localId": { + "description": "Immutable. The unique ID of the account.", + "type": "string" + }, + "mfaInfo": { + "description": "Information on which multi-factor authentication providers are enabled for this account.", + "items": { + "$ref": "GoogleCloudIdentitytoolkitV1MfaEnrollment" + }, + "type": "array" + }, + "passwordHash": { + "description": "The account's hashed password. Only accessible by requests bearing a Google OAuth2 credential with proper [permissions](https://cloud.google.com/identity-platform/docs/access-control).", + "format": "byte", + "type": "string" + }, + "passwordUpdatedAt": { + "description": "The timestamp, in milliseconds from the epoch of 1970-01-01T00:00:00Z, when the account's password was last updated.", + "format": "double", + "type": "number" + }, + "phoneNumber": { + "description": "The account's phone number.", + "type": "string" + }, + "photoUrl": { + "description": "The URL of the account's profile photo. This account attribute is not used by Identity Platform. It is available for informational purposes only.", + "type": "string" + }, + "providerUserInfo": { + "description": "Information about the user as provided by various Identity Providers.", + "items": { + "$ref": "GoogleCloudIdentitytoolkitV1ProviderUserInfo" + }, + "type": "array" + }, + "rawPassword": { + "description": "Input only. Plain text password used to update a account's password. This field is only ever used as input in a request. Identity Platform uses cryptographically secure hashing when managing passwords and will never store or transmit a user's password in plain text.", + "type": "string" + }, + "salt": { + "description": "The account's password salt. Only accessible by requests bearing a Google OAuth2 credential with proper permissions.", + "format": "byte", + "type": "string" + }, + "screenName": { + "description": "Output only. This account's screen name at Twitter or login name at GitHub.", + "readOnly": true, + "type": "string" + }, + "tenantId": { + "description": "ID of the tenant this account belongs to. Only set if this account belongs to a tenant.", + "type": "string" + }, + "timeZone": { + "description": "Output only. The time zone preference of the account. This account attribute is not used by Identity Platform. It is available for informational purposes only.", + "readOnly": true, + "type": "string" + }, + "validSince": { + "description": "Oldest timestamp, in seconds since epoch, that an ID token should be considered valid. All ID tokens issued before this time are considered invalid.", + "format": "int64", + "type": "string" + }, + "version": { + "description": "The version of the account's password. Only accessible by requests bearing a Google OAuth2 credential with proper permissions.", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, + "GoogleCloudIdentitytoolkitV1VerifyIosClientRequest": { + "description": "Request message for VerifyIosClient", + "id": "GoogleCloudIdentitytoolkitV1VerifyIosClientRequest", + "properties": { + "appToken": { + "description": "A device token that the iOS client gets after registering to APNs (Apple Push Notification service).", + "type": "string" + }, + "isSandbox": { + "description": "Whether the app token is in the iOS sandbox. If false, the app token is in the production environment.", + "type": "boolean" + } + }, + "type": "object" + }, + "GoogleCloudIdentitytoolkitV1VerifyIosClientResponse": { + "description": "Response message for VerifyIosClient.", + "id": "GoogleCloudIdentitytoolkitV1VerifyIosClientResponse", + "properties": { + "receipt": { + "description": "Receipt of successful app token validation.", + "type": "string" + }, + "suggestedTimeout": { + "description": "Suggested time that the client should wait in seconds for delivery of the push notification.", + "format": "int64", + "type": "string" + } + }, + "type": "object" + } + }, + "servicePath": "", + "title": "Identity Toolkit API", + "version": "v1", + "version_module": true +} \ No newline at end of file diff --git a/identitytoolkit/v1/identitytoolkit-gen.go b/identitytoolkit/v1/identitytoolkit-gen.go new file mode 100644 index 00000000000..11a9b2d664f --- /dev/null +++ b/identitytoolkit/v1/identitytoolkit-gen.go @@ -0,0 +1,9908 @@ +// 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 identitytoolkit provides access to the Identity Toolkit API. +// +// For product documentation, see: https://cloud.google.com/identity-platform +// +// # Creating a client +// +// Usage example: +// +// import "google.golang.org/api/identitytoolkit/v1" +// ... +// ctx := context.Background() +// identitytoolkitService, err := identitytoolkit.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 +// +// By default, all available scopes (see "Constants") are used to authenticate. To restrict scopes, use option.WithScopes: +// +// identitytoolkitService, err := identitytoolkit.NewService(ctx, option.WithScopes(identitytoolkit.FirebaseScope)) +// +// To use an API key for authentication (note: some APIs do not support API keys), use option.WithAPIKey: +// +// identitytoolkitService, err := identitytoolkit.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, ...) +// identitytoolkitService, err := identitytoolkit.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token))) +// +// See https://godoc.org/google.golang.org/api/option/ for details on options. +package identitytoolkit // import "google.golang.org/api/identitytoolkit/v1" + +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 = "identitytoolkit:v1" +const apiName = "identitytoolkit" +const apiVersion = "v1" +const basePath = "https://identitytoolkit.googleapis.com/" +const mtlsBasePath = "https://identitytoolkit.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" + + // View and administer all your Firebase data and settings + FirebaseScope = "https://www.googleapis.com/auth/firebase" +) + +// 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", + "https://www.googleapis.com/auth/firebase", + ) + // 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.Accounts = NewAccountsService(s) + s.Projects = NewProjectsService(s) + s.V1 = NewV1Service(s) + return s, nil +} + +type Service struct { + client *http.Client + BasePath string // API endpoint base URL + UserAgent string // optional additional User-Agent fragment + + Accounts *AccountsService + + Projects *ProjectsService + + V1 *V1Service +} + +func (s *Service) userAgent() string { + if s.UserAgent == "" { + return googleapi.UserAgent + } + return googleapi.UserAgent + " " + s.UserAgent +} + +func NewAccountsService(s *Service) *AccountsService { + rs := &AccountsService{s: s} + return rs +} + +type AccountsService struct { + s *Service +} + +func NewProjectsService(s *Service) *ProjectsService { + rs := &ProjectsService{s: s} + rs.Accounts_ = NewProjectsAccountsService(s) + rs.Tenants = NewProjectsTenantsService(s) + return rs +} + +type ProjectsService struct { + s *Service + + Accounts_ *ProjectsAccountsService + + Tenants *ProjectsTenantsService +} + +func NewProjectsAccountsService(s *Service) *ProjectsAccountsService { + rs := &ProjectsAccountsService{s: s} + return rs +} + +type ProjectsAccountsService struct { + s *Service +} + +func NewProjectsTenantsService(s *Service) *ProjectsTenantsService { + rs := &ProjectsTenantsService{s: s} + rs.Accounts_ = NewProjectsTenantsAccountsService(s) + return rs +} + +type ProjectsTenantsService struct { + s *Service + + Accounts_ *ProjectsTenantsAccountsService +} + +func NewProjectsTenantsAccountsService(s *Service) *ProjectsTenantsAccountsService { + rs := &ProjectsTenantsAccountsService{s: s} + return rs +} + +type ProjectsTenantsAccountsService struct { + s *Service +} + +func NewV1Service(s *Service) *V1Service { + rs := &V1Service{s: s} + return rs +} + +type V1Service struct { + s *Service +} + +// GoogleCloudIdentitytoolkitV1Argon2Parameters: The parameters for +// Argon2 hashing algorithm. +type GoogleCloudIdentitytoolkitV1Argon2Parameters struct { + // AssociatedData: The additional associated data, if provided, is + // appended to the hash value to provide an additional layer of + // security. A base64-encoded string if specified via JSON. + AssociatedData string `json:"associatedData,omitempty"` + + // HashLengthBytes: Required. The desired hash length in bytes. Minimum + // is 4 and maximum is 1024. + HashLengthBytes int64 `json:"hashLengthBytes,omitempty"` + + // HashType: Required. Must not be HASH_TYPE_UNSPECIFIED. + // + // Possible values: + // "HASH_TYPE_UNSPECIFIED" - The hash type is not specified. + // "ARGON2_D" - An Argon2 variant, Argon2d. + // "ARGON2_ID" - An Argon2 variant, Argonid. Recommended. + // "ARGON2_I" - An Argon2 variant, Argon2i. + HashType string `json:"hashType,omitempty"` + + // Iterations: Required. The number of iterations to perform. Minimum is + // 1, maximum is 16. + Iterations int64 `json:"iterations,omitempty"` + + // MemoryCostKib: Required. The memory cost in kibibytes. Maximum is + // 32768. + MemoryCostKib int64 `json:"memoryCostKib,omitempty"` + + // Parallelism: Required. The degree of parallelism, also called threads + // or lanes. Minimum is 1, maximum is 16. + Parallelism int64 `json:"parallelism,omitempty"` + + // Version: The version of the Argon2 algorithm. This defaults to + // VERSION_13 if not specified. + // + // Possible values: + // "VERSION_UNSPECIFIED" - The version is not specified. + // "VERSION_10" - The previous version, 0x10. + // "VERSION_13" - The current version, 0x13. The default value for + // version. + Version string `json:"version,omitempty"` + + // ForceSendFields is a list of field names (e.g. "AssociatedData") 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. "AssociatedData") 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 *GoogleCloudIdentitytoolkitV1Argon2Parameters) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudIdentitytoolkitV1Argon2Parameters + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudIdentitytoolkitV1AutoRetrievalInfo: The information +// required to auto-retrieve an SMS. +type GoogleCloudIdentitytoolkitV1AutoRetrievalInfo struct { + // AppSignatureHash: The Android app's signature hash for Google Play + // Service's SMS Retriever API. + AppSignatureHash string `json:"appSignatureHash,omitempty"` + + // ForceSendFields is a list of field names (e.g. "AppSignatureHash") 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. "AppSignatureHash") 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 *GoogleCloudIdentitytoolkitV1AutoRetrievalInfo) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudIdentitytoolkitV1AutoRetrievalInfo + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudIdentitytoolkitV1BatchDeleteAccountsRequest: Request +// message for BatchDeleteAccounts. +type GoogleCloudIdentitytoolkitV1BatchDeleteAccountsRequest struct { + // Force: Whether to force deleting accounts that are not in disabled + // state. If false, only disabled accounts will be deleted, and accounts + // that are not disabled will be added to the `errors`. + Force bool `json:"force,omitempty"` + + // LocalIds: Required. List of user IDs to be deleted. + LocalIds []string `json:"localIds,omitempty"` + + // TenantId: If the accounts belong to an Identity Platform tenant, the + // ID of the tenant. If the accounts belong to an default Identity + // Platform project, the field is not needed. + TenantId string `json:"tenantId,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Force") 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. "Force") 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 *GoogleCloudIdentitytoolkitV1BatchDeleteAccountsRequest) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudIdentitytoolkitV1BatchDeleteAccountsRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudIdentitytoolkitV1BatchDeleteAccountsResponse: Response +// message to BatchDeleteAccounts. +type GoogleCloudIdentitytoolkitV1BatchDeleteAccountsResponse struct { + // Errors: Detailed error info for accounts that cannot be deleted. + Errors []*GoogleCloudIdentitytoolkitV1BatchDeleteErrorInfo `json:"errors,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "Errors") 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. "Errors") 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 *GoogleCloudIdentitytoolkitV1BatchDeleteAccountsResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudIdentitytoolkitV1BatchDeleteAccountsResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudIdentitytoolkitV1BatchDeleteErrorInfo: Error info for +// account failed to be deleted. +type GoogleCloudIdentitytoolkitV1BatchDeleteErrorInfo struct { + // Index: The index of the errored item in the original local_ids field. + Index int64 `json:"index,omitempty"` + + // LocalId: The corresponding user ID. + LocalId string `json:"localId,omitempty"` + + // Message: Detailed error message. + Message string `json:"message,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Index") 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. "Index") 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 *GoogleCloudIdentitytoolkitV1BatchDeleteErrorInfo) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudIdentitytoolkitV1BatchDeleteErrorInfo + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudIdentitytoolkitV1CreateAuthUriRequest: Request message for +// CreateAuthUri. +type GoogleCloudIdentitytoolkitV1CreateAuthUriRequest struct { + AppId string `json:"appId,omitempty"` + + // AuthFlowType: Used for the Google provider. The type of the + // authentication flow to be used. If present, this should be + // `CODE_FLOW` to specify the authorization code flow. Otherwise, the + // default ID Token flow will be used. + AuthFlowType string `json:"authFlowType,omitempty"` + + // Context: An opaque string used to maintain contextual information + // between the authentication request and the callback from the IdP. + Context string `json:"context,omitempty"` + + // ContinueUri: A valid URL for the IdP to redirect the user back to. + // The URL cannot contain fragments or the reserved `state` query + // parameter. + ContinueUri string `json:"continueUri,omitempty"` + + // CustomParameter: Additional customized query parameters to be added + // to the authorization URI. The following parameters are reserved and + // cannot be added: `client_id`, `response_type`, `scope`, + // `redirect_uri`, `state`. For the Microsoft provider, the Azure AD + // tenant to sign-in to can be specified in the `tenant` custom + // parameter. + CustomParameter map[string]string `json:"customParameter,omitempty"` + + // HostedDomain: Used for the Google provider. The G Suite hosted domain + // of the user in order to restrict sign-in to users at that domain. + HostedDomain string `json:"hostedDomain,omitempty"` + + // Identifier: The email identifier of the user account to fetch + // associated providers for. At least one of the fields `identifier` and + // `provider_id` must be set. The length of the email address should be + // less than 256 characters and in the format of `name@domain.tld`. The + // email address should also match the RFC 822 + // (https://tools.ietf.org/html/rfc822) addr-spec production. + Identifier string `json:"identifier,omitempty"` + + OauthConsumerKey string `json:"oauthConsumerKey,omitempty"` + + // OauthScope: Additional space-delimited OAuth 2.0 scopes specifying + // the scope of the authentication request with the IdP. Used for OAuth + // 2.0 IdPs. For the Google provider, the authorization code flow will + // be used if this field is set. + OauthScope string `json:"oauthScope,omitempty"` + + OpenidRealm string `json:"openidRealm,omitempty"` + + OtaApp string `json:"otaApp,omitempty"` + + // ProviderId: The provider ID of the IdP for the user to sign in with. + // This should be a provider ID enabled for sign-in, which is either + // from the list of default supported IdPs + // (https://cloud.google.com/identity-platform/docs/reference/rest/v2/defaultSupportedIdps/list), + // or of the format `oidc.*` or `saml.*`. Some examples are + // `google.com`, `facebook.com`, `oidc.testapp`, and `saml.testapp`. At + // least one of the fields `identifier` and `provider_id` must be set. + ProviderId string `json:"providerId,omitempty"` + + // SessionId: A session ID that can be verified against in SignInWithIdp + // to prevent session fixation attacks. If absent, a random string will + // be generated and returned as the session ID. + SessionId string `json:"sessionId,omitempty"` + + // TenantId: The ID of the Identity Platform tenant to create an + // authorization URI or lookup an email identifier for. If not set, the + // operation will be performed in the default Identity Platform instance + // in the project. + TenantId string `json:"tenantId,omitempty"` + + // ForceSendFields is a list of field names (e.g. "AppId") 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. "AppId") 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 *GoogleCloudIdentitytoolkitV1CreateAuthUriRequest) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudIdentitytoolkitV1CreateAuthUriRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudIdentitytoolkitV1CreateAuthUriResponse: Response message +// for CreateAuthUri. +type GoogleCloudIdentitytoolkitV1CreateAuthUriResponse struct { + AllProviders []string `json:"allProviders,omitempty"` + + // AuthUri: The authorization URI for the requested provider. Present + // only when a provider ID is set in the request. + AuthUri string `json:"authUri,omitempty"` + + // CaptchaRequired: Whether a CAPTCHA is needed because there have been + // too many failed login attempts by the user. Present only when a + // registered email identifier is set in the request. + CaptchaRequired bool `json:"captchaRequired,omitempty"` + + // ForExistingProvider: Whether the user has previously signed in with + // the provider ID in the request. Present only when a registered email + // identifier is set in the request. + ForExistingProvider bool `json:"forExistingProvider,omitempty"` + + Kind string `json:"kind,omitempty"` + + // ProviderId: The provider ID from the request, if provided. + ProviderId string `json:"providerId,omitempty"` + + // Registered: Whether the email identifier represents an existing + // account. Present only when an email identifier is set in the request. + Registered bool `json:"registered,omitempty"` + + // SessionId: The session ID from the request, or a random string + // generated by CreateAuthUri if absent. It is used to prevent session + // fixation attacks. + SessionId string `json:"sessionId,omitempty"` + + // SigninMethods: The list of sign-in methods that the user has + // previously used. Each element is one of `password`, `emailLink`, or + // the provider ID of an IdP. Present only when a registered email + // identifier is set in the request. + SigninMethods []string `json:"signinMethods,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "AllProviders") 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. "AllProviders") 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 *GoogleCloudIdentitytoolkitV1CreateAuthUriResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudIdentitytoolkitV1CreateAuthUriResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudIdentitytoolkitV1CreateSessionCookieRequest: Request +// message for CreateSessionCookie. +type GoogleCloudIdentitytoolkitV1CreateSessionCookieRequest struct { + // IdToken: Required. A valid Identity Platform ID token. + IdToken string `json:"idToken,omitempty"` + + // TenantId: The tenant ID of the Identity Platform tenant the account + // belongs to. + TenantId string `json:"tenantId,omitempty"` + + // ValidDuration: The number of seconds until the session cookie + // expires. Specify a duration in seconds, between five minutes and + // fourteen days, inclusively. + ValidDuration int64 `json:"validDuration,omitempty,string"` + + // ForceSendFields is a list of field names (e.g. "IdToken") 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. "IdToken") 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 *GoogleCloudIdentitytoolkitV1CreateSessionCookieRequest) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudIdentitytoolkitV1CreateSessionCookieRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudIdentitytoolkitV1CreateSessionCookieResponse: Response +// message for CreateSessionCookie. +type GoogleCloudIdentitytoolkitV1CreateSessionCookieResponse struct { + // SessionCookie: The session cookie that has been created from the + // Identity Platform ID token specified in the request. It is in the + // form of a JSON Web Token (JWT). Always present. + SessionCookie string `json:"sessionCookie,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "SessionCookie") 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. "SessionCookie") 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 *GoogleCloudIdentitytoolkitV1CreateSessionCookieResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudIdentitytoolkitV1CreateSessionCookieResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudIdentitytoolkitV1DeleteAccountRequest: Request message for +// DeleteAccount. +type GoogleCloudIdentitytoolkitV1DeleteAccountRequest struct { + DelegatedProjectNumber int64 `json:"delegatedProjectNumber,omitempty,string"` + + // IdToken: The Identity Platform ID token of the account to delete. + // Require to be specified for requests from end users that lack Google + // OAuth 2.0 credential. Authenticated requests bearing a Google OAuth2 + // credential with proper permissions may pass local_id to specify the + // account to delete alternatively. + IdToken string `json:"idToken,omitempty"` + + // LocalId: The ID of user account to delete. Specifying this field + // requires a Google OAuth 2.0 credential with proper permissions + // (https://cloud.google.com/identity-platform/docs/access-control). + // Requests from users lacking the credential should pass an ID token + // instead. + LocalId string `json:"localId,omitempty"` + + // TargetProjectId: The ID of the project which the account belongs to. + // Should only be specified in authenticated requests that specify + // local_id of an account. + TargetProjectId string `json:"targetProjectId,omitempty"` + + // TenantId: The ID of the tenant that the account belongs to, if + // applicable. Only require to be specified for authenticated requests + // bearing a Google OAuth 2.0 credential that specify local_id of an + // account that belongs to an Identity Platform tenant. + TenantId string `json:"tenantId,omitempty"` + + // ForceSendFields is a list of field names (e.g. + // "DelegatedProjectNumber") 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. "DelegatedProjectNumber") + // 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 *GoogleCloudIdentitytoolkitV1DeleteAccountRequest) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudIdentitytoolkitV1DeleteAccountRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudIdentitytoolkitV1DeleteAccountResponse: Response message +// for DeleteAccount. +type GoogleCloudIdentitytoolkitV1DeleteAccountResponse struct { + Kind string `json:"kind,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "Kind") 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. "Kind") 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 *GoogleCloudIdentitytoolkitV1DeleteAccountResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudIdentitytoolkitV1DeleteAccountResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudIdentitytoolkitV1DownloadAccountResponse: Response message +// for DownloadAccount. +type GoogleCloudIdentitytoolkitV1DownloadAccountResponse struct { + Kind string `json:"kind,omitempty"` + + // NextPageToken: If there are more accounts to be downloaded, a token + // that can be passed back to DownloadAccount to get more accounts. + // Otherwise, this is blank. + NextPageToken string `json:"nextPageToken,omitempty"` + + // Users: All accounts belonging to the project/tenant limited by + // max_results in the request. + Users []*GoogleCloudIdentitytoolkitV1UserInfo `json:"users,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "Kind") 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. "Kind") 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 *GoogleCloudIdentitytoolkitV1DownloadAccountResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudIdentitytoolkitV1DownloadAccountResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudIdentitytoolkitV1EmailTemplate: Email template +type GoogleCloudIdentitytoolkitV1EmailTemplate struct { + // Body: Email body + Body string `json:"body,omitempty"` + + // Customized: Whether the body or subject of the email is customized. + Customized bool `json:"customized,omitempty"` + + // Disabled: Whether the template is disabled. If true, a default + // template will be used. + Disabled bool `json:"disabled,omitempty"` + + // Format: Email body format + // + // Possible values: + // "EMAIL_BODY_FORMAT_UNSPECIFIED" - Default value. Do not use. + // "PLAINTEXT" - Email body is in plain text format. + // "HTML" - Email body is in HTML format. + Format string `json:"format,omitempty"` + + // From: From address of the email + From string `json:"from,omitempty"` + + // FromDisplayName: From display name + FromDisplayName string `json:"fromDisplayName,omitempty"` + + // FromLocalPart: Local part of From address + FromLocalPart string `json:"fromLocalPart,omitempty"` + + // Locale: Value is in III language code format (e.g. "zh-CN", "es"). + // Both '-' and '_' separators are accepted. + Locale string `json:"locale,omitempty"` + + // ReplyTo: Reply-to address + ReplyTo string `json:"replyTo,omitempty"` + + // Subject: Subject of the email + Subject string `json:"subject,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Body") 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. "Body") 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 *GoogleCloudIdentitytoolkitV1EmailTemplate) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudIdentitytoolkitV1EmailTemplate + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudIdentitytoolkitV1ErrorInfo: Error information explaining +// why an account cannot be uploaded. batch upload. +type GoogleCloudIdentitytoolkitV1ErrorInfo struct { + // Index: The index of the item, range is [0, request.size - 1] + Index int64 `json:"index,omitempty"` + + // Message: Detailed error message + Message string `json:"message,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Index") 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. "Index") 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 *GoogleCloudIdentitytoolkitV1ErrorInfo) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudIdentitytoolkitV1ErrorInfo + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudIdentitytoolkitV1FederatedUserIdentifier: Federated user +// identifier at an Identity Provider. +type GoogleCloudIdentitytoolkitV1FederatedUserIdentifier struct { + // ProviderId: The ID of supported identity providers. This should be a + // provider ID enabled for sign-in, which is either from the list of + // default supported IdPs + // (https://cloud.google.com/identity-platform/docs/reference/rest/v2/defaultSupportedIdps/list), + // or of the format `oidc.*` or `saml.*`. Some examples are + // `google.com`, `facebook.com`, `oidc.testapp`, and `saml.testapp`. + ProviderId string `json:"providerId,omitempty"` + + // RawId: The user ID of the account at the third-party Identity + // Provider specified by `provider_id`. + RawId string `json:"rawId,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ProviderId") 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. "ProviderId") 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 *GoogleCloudIdentitytoolkitV1FederatedUserIdentifier) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudIdentitytoolkitV1FederatedUserIdentifier + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudIdentitytoolkitV1GetAccountInfoRequest: Request message +// for GetAccountInfo. +type GoogleCloudIdentitytoolkitV1GetAccountInfoRequest struct { + DelegatedProjectNumber int64 `json:"delegatedProjectNumber,omitempty,string"` + + // Email: The email address of one or more accounts to fetch. The length + // of email should be less than 256 characters and in the format of + // `name@domain.tld`. The email should also match the RFC 822 + // (https://tools.ietf.org/html/rfc822) addr-spec production. Should + // only be specified by authenticated requests from a developer. + Email []string `json:"email,omitempty"` + + // FederatedUserId: The federated user identifier of one or more + // accounts to fetch. Should only be specified by authenticated requests + // bearing a Google OAuth 2.0 credential with proper permissions + // (https://cloud.google.com/identity-platform/docs/access-control). + FederatedUserId []*GoogleCloudIdentitytoolkitV1FederatedUserIdentifier `json:"federatedUserId,omitempty"` + + // IdToken: The Identity Platform ID token of the account to fetch. + // Require to be specified for requests from end users. + IdToken string `json:"idToken,omitempty"` + + // InitialEmail: The initial email of one or more accounts to fetch. The + // length of email should be less than 256 characters and in the format + // of `name@domain.tld`. The email should also match the RFC 822 + // (https://tools.ietf.org/html/rfc822) addr-spec production. Should + // only be specified by authenticated requests from a developer. + InitialEmail []string `json:"initialEmail,omitempty"` + + // LocalId: The ID of one or more accounts to fetch. Should only be + // specified by authenticated requests bearing a Google OAuth 2.0 + // credential with proper permissions + // (https://cloud.google.com/identity-platform/docs/access-control). + LocalId []string `json:"localId,omitempty"` + + // PhoneNumber: The phone number of one or more accounts to fetch. + // Should only be specified by authenticated requests from a developer + // and should be in E.164 format, for example, +15555555555. + PhoneNumber []string `json:"phoneNumber,omitempty"` + + // TargetProjectId: The ID of the Google Cloud project that the account + // or the Identity Platform tenant specified by `tenant_id` belongs to. + // Should only be specified by authenticated requests bearing a Google + // OAuth 2.0 credential with proper permissions + // (https://cloud.google.com/identity-platform/docs/access-control). + TargetProjectId string `json:"targetProjectId,omitempty"` + + // TenantId: The ID of the tenant that the account belongs to. Should + // only be specified by authenticated requests from a developer. + TenantId string `json:"tenantId,omitempty"` + + // ForceSendFields is a list of field names (e.g. + // "DelegatedProjectNumber") 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. "DelegatedProjectNumber") + // 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 *GoogleCloudIdentitytoolkitV1GetAccountInfoRequest) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudIdentitytoolkitV1GetAccountInfoRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudIdentitytoolkitV1GetAccountInfoResponse: Response message +// for GetAccountInfo. +type GoogleCloudIdentitytoolkitV1GetAccountInfoResponse struct { + Kind string `json:"kind,omitempty"` + + // Users: The information of specific user account(s) matching the + // parameters in the request. + Users []*GoogleCloudIdentitytoolkitV1UserInfo `json:"users,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "Kind") 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. "Kind") 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 *GoogleCloudIdentitytoolkitV1GetAccountInfoResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudIdentitytoolkitV1GetAccountInfoResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudIdentitytoolkitV1GetOobCodeRequest: Request message for +// GetOobCode. +type GoogleCloudIdentitytoolkitV1GetOobCodeRequest struct { + // AndroidInstallApp: If an associated android app can handle the OOB + // code, whether or not to install the android app on the device where + // the link is opened if the app is not already installed. + AndroidInstallApp bool `json:"androidInstallApp,omitempty"` + + // AndroidMinimumVersion: If an associated android app can handle the + // OOB code, the minimum version of the app. If the version on the + // device is lower than this version then the user is taken to Google + // Play Store to upgrade the app. + AndroidMinimumVersion string `json:"androidMinimumVersion,omitempty"` + + // AndroidPackageName: If an associated android app can handle the OOB + // code, the Android package name of the android app that will handle + // the callback when this OOB code is used. This will allow the correct + // app to open if it is already installed, or allow Google Play Store to + // open to the correct app if it is not yet installed. + AndroidPackageName string `json:"androidPackageName,omitempty"` + + // CanHandleCodeInApp: When set to true, the OOB code link will be be + // sent as a Universal Link or an Android App Link and will be opened by + // the corresponding app if installed. If not set, or set to false, the + // OOB code will be sent to the web widget first and then on continue + // will redirect to the app if installed. + CanHandleCodeInApp bool `json:"canHandleCodeInApp,omitempty"` + + // CaptchaResp: For a PASSWORD_RESET request, a reCaptcha response is + // required when the system detects possible abuse activity. In those + // cases, this is the response from the reCaptcha challenge used to + // verify the caller. + CaptchaResp string `json:"captchaResp,omitempty"` + + Challenge string `json:"challenge,omitempty"` + + // ContinueUrl: The Url to continue after user clicks the link sent in + // email. This is the url that will allow the web widget to handle the + // OOB code. + ContinueUrl string `json:"continueUrl,omitempty"` + + // DynamicLinkDomain: In order to ensure that the url used can be easily + // opened up in iOS or android, we create a Firebase Dynamic Link + // (https://firebase.google.com/docs/dynamic-links). Most Identity + // Platform projects will only have one Dynamic Link domain enabled, and + // can leave this field blank. This field contains a specified Dynamic + // Link domain for projects that have multiple enabled. + DynamicLinkDomain string `json:"dynamicLinkDomain,omitempty"` + + // Email: The account's email address to send the OOB code to, and + // generally the email address of the account that needs to be updated. + // Required for PASSWORD_RESET, EMAIL_SIGNIN, and VERIFY_EMAIL. Only + // required for VERIFY_AND_CHANGE_EMAIL requests when return_oob_link is + // set to true. In this case, it is the original email of the user. + Email string `json:"email,omitempty"` + + // IOSAppStoreId: If an associated iOS app can handle the OOB code, the + // App Store id of this app. This will allow App Store to open to the + // correct app if the app is not yet installed. + IOSAppStoreId string `json:"iOSAppStoreId,omitempty"` + + // IOSBundleId: If an associated iOS app can handle the OOB code, the + // iOS bundle id of this app. This will allow the correct app to open if + // it is already installed. + IOSBundleId string `json:"iOSBundleId,omitempty"` + + // IdToken: An ID token for the account. It is required for + // VERIFY_AND_CHANGE_EMAIL and VERIFY_EMAIL requests unless + // return_oob_link is set to true. + IdToken string `json:"idToken,omitempty"` + + // NewEmail: The email address the account is being updated to. Required + // only for VERIFY_AND_CHANGE_EMAIL requests. + NewEmail string `json:"newEmail,omitempty"` + + // RequestType: Required. The type of out-of-band (OOB) code to send. + // Depending on this value, other fields in this request will be + // required and/or have different meanings. There are 4 different OOB + // codes that can be sent: * PASSWORD_RESET * EMAIL_SIGNIN * + // VERIFY_EMAIL * VERIFY_AND_CHANGE_EMAIL + // + // Possible values: + // "OOB_REQ_TYPE_UNSPECIFIED" - Oob code type is not specified. + // "PASSWORD_RESET" - reset password + // "OLD_EMAIL_AGREE" + // "NEW_EMAIL_ACCEPT" + // "VERIFY_EMAIL" - verify the account's email address by sending an + // email + // "RECOVER_EMAIL" + // "EMAIL_SIGNIN" - sign in with email only + // "VERIFY_AND_CHANGE_EMAIL" - This flow sends an email to the + // specified new email, and when applied by clicking the link in the + // email changes the account's email to the new email. Used when the + // account must have verified email at all times, such as MFA accounts. + // "REVERT_SECOND_FACTOR_ADDITION" + RequestType string `json:"requestType,omitempty"` + + // ReturnOobLink: Whether the confirmation link containing the OOB code + // should be returned in the response (no email is sent). Used when a + // developer wants to construct the email template and send it on their + // own. By default this is false; to specify this field, and to set it + // to true, it requires a Google OAuth 2.0 credential with proper + // permissions + // (https://cloud.google.com/identity-platform/docs/access-control) + ReturnOobLink bool `json:"returnOobLink,omitempty"` + + // TargetProjectId: The Project ID of the Identity Platform project + // which the account belongs to. To specify this field, it requires a + // Google OAuth 2.0 credential with proper permissions + // (https://cloud.google.com/identity-platform/docs/access-control). + TargetProjectId string `json:"targetProjectId,omitempty"` + + // TenantId: The tenant ID of the Identity Platform tenant the account + // belongs to. + TenantId string `json:"tenantId,omitempty"` + + // UserIp: The IP address of the caller. Required only for + // PASSWORD_RESET requests. + UserIp string `json:"userIp,omitempty"` + + // ForceSendFields is a list of field names (e.g. "AndroidInstallApp") + // 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. "AndroidInstallApp") 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 *GoogleCloudIdentitytoolkitV1GetOobCodeRequest) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudIdentitytoolkitV1GetOobCodeRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudIdentitytoolkitV1GetOobCodeResponse: Response message for +// GetOobCode. +type GoogleCloudIdentitytoolkitV1GetOobCodeResponse struct { + // Email: If return_oob_link is false in the request, the email address + // the verification was sent to. + Email string `json:"email,omitempty"` + + Kind string `json:"kind,omitempty"` + + // OobCode: If return_oob_link is true in the request, the OOB code to + // send. + OobCode string `json:"oobCode,omitempty"` + + // OobLink: If return_oob_link is true in the request, the OOB link to + // be sent to the user. This returns the constructed link including + // Firebase Dynamic Link + // (https://firebase.google.com/docs/dynamic-links) related parameters. + OobLink string `json:"oobLink,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "Email") 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. "Email") 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 *GoogleCloudIdentitytoolkitV1GetOobCodeResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudIdentitytoolkitV1GetOobCodeResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudIdentitytoolkitV1GetProjectConfigResponse: Response +// message for GetProjectConfig. +type GoogleCloudIdentitytoolkitV1GetProjectConfigResponse struct { + // AllowPasswordUser: Whether to allow password account sign up. This + // field is only returned for authenticated calls from a developer. + AllowPasswordUser bool `json:"allowPasswordUser,omitempty"` + + // ApiKey: Google Cloud API key. This field is only returned for + // authenticated calls from a developer. + ApiKey string `json:"apiKey,omitempty"` + + // AuthorizedDomains: Authorized domains for widget redirect. + AuthorizedDomains []string `json:"authorizedDomains,omitempty"` + + // ChangeEmailTemplate: Email template for change email. This field is + // only returned for authenticated calls from a developer. + ChangeEmailTemplate *GoogleCloudIdentitytoolkitV1EmailTemplate `json:"changeEmailTemplate,omitempty"` + + // DynamicLinksDomain: The Firebase Dynamic Links domain used to + // construct links for redirects to native apps. + DynamicLinksDomain string `json:"dynamicLinksDomain,omitempty"` + + // EnableAnonymousUser: Whether anonymous user is enabled. This field is + // only returned for authenticated calls from a developer. + EnableAnonymousUser bool `json:"enableAnonymousUser,omitempty"` + + // IdpConfig: OAuth2 provider config. This field is only returned for + // authenticated calls from a developer. + IdpConfig []*GoogleCloudIdentitytoolkitV1IdpConfig `json:"idpConfig,omitempty"` + + // LegacyResetPasswordTemplate: Reset password email template for legacy + // Firebase V1 app. This field is only returned for authenticated calls + // from a developer. + LegacyResetPasswordTemplate *GoogleCloudIdentitytoolkitV1EmailTemplate `json:"legacyResetPasswordTemplate,omitempty"` + + // ProjectId: The project id of the retrieved configuration. + ProjectId string `json:"projectId,omitempty"` + + // ResetPasswordTemplate: Email template for reset password. This field + // is only returned for authenticated calls from a developer. + ResetPasswordTemplate *GoogleCloudIdentitytoolkitV1EmailTemplate `json:"resetPasswordTemplate,omitempty"` + + // RevertSecondFactorAdditionTemplate: Email template for reverting + // second factor additions. This field is only returned for + // authenticated calls from a developer. + RevertSecondFactorAdditionTemplate *GoogleCloudIdentitytoolkitV1EmailTemplate `json:"revertSecondFactorAdditionTemplate,omitempty"` + + // UseEmailSending: Whether to use email sending. This field is only + // returned for authenticated calls from a developer. + UseEmailSending bool `json:"useEmailSending,omitempty"` + + // VerifyEmailTemplate: Email template for verify email. This field is + // only returned for authenticated calls from a developer. + VerifyEmailTemplate *GoogleCloudIdentitytoolkitV1EmailTemplate `json:"verifyEmailTemplate,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "AllowPasswordUser") + // 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. "AllowPasswordUser") 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 *GoogleCloudIdentitytoolkitV1GetProjectConfigResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudIdentitytoolkitV1GetProjectConfigResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudIdentitytoolkitV1GetRecaptchaParamResponse: Response +// message for GetRecaptchaParam. +type GoogleCloudIdentitytoolkitV1GetRecaptchaParamResponse struct { + Kind string `json:"kind,omitempty"` + + // RecaptchaSiteKey: The reCAPTCHA v2 site key used to invoke the + // reCAPTCHA service. Always present. + RecaptchaSiteKey string `json:"recaptchaSiteKey,omitempty"` + + RecaptchaStoken string `json:"recaptchaStoken,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "Kind") 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. "Kind") 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 *GoogleCloudIdentitytoolkitV1GetRecaptchaParamResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudIdentitytoolkitV1GetRecaptchaParamResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudIdentitytoolkitV1GetSessionCookiePublicKeysResponse: +// Response message for GetSessionCookiePublicKeys. +type GoogleCloudIdentitytoolkitV1GetSessionCookiePublicKeysResponse struct { + // Keys: Public keys of the session cookie signer, formatted as JSON Web + // Keys (JWK) (https://tools.ietf.org/html/rfc7517). + Keys []*GoogleCloudIdentitytoolkitV1OpenIdConnectKey `json:"keys,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "Keys") 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. "Keys") 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 *GoogleCloudIdentitytoolkitV1GetSessionCookiePublicKeysResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudIdentitytoolkitV1GetSessionCookiePublicKeysResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudIdentitytoolkitV1IdpConfig: Config of an identity +// provider. +type GoogleCloudIdentitytoolkitV1IdpConfig struct { + // ClientId: OAuth2 client ID. + ClientId string `json:"clientId,omitempty"` + + // Enabled: True if allows the user to sign in with the provider. + Enabled bool `json:"enabled,omitempty"` + + // ExperimentPercent: Percent of users who will be prompted/redirected + // federated login for this IdP + ExperimentPercent int64 `json:"experimentPercent,omitempty"` + + // Provider: Name of the identity provider. + // + // Possible values: + // "PROVIDER_UNSPECIFIED" + // "MSLIVE" - Microsoft Live as identity provider. + // "GOOGLE" - Google as identity provider. + // "FACEBOOK" - Facebook as identity provider. + // "PAYPAL" - PayPal as identity provider. + // "TWITTER" - Twitter as identity provider. + // "YAHOO" - Yahoo as identity provider. + // "AOL" - AOL as identity provider. + // "GITHUB" - GitHub as identity provider. + // "GOOGLE_PLAY_GAMES" - Google Play Games as identity provider. + // "LINKEDIN" - LinkedIn as identity provider. + // "IOS_GAME_CENTER" - iOS Game Center as identity provider. + Provider string `json:"provider,omitempty"` + + // Secret: OAuth2 client secret. + Secret string `json:"secret,omitempty"` + + // WhitelistedAudiences: Whitelisted client IDs for audience check. + WhitelistedAudiences []string `json:"whitelistedAudiences,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ClientId") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // 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. "ClientId") 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 *GoogleCloudIdentitytoolkitV1IdpConfig) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudIdentitytoolkitV1IdpConfig + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudIdentitytoolkitV1IssueSamlResponseRequest: Request message +// for IssueSamlResponse. +type GoogleCloudIdentitytoolkitV1IssueSamlResponseRequest struct { + // IdToken: The Identity Platform ID token. It will be verified and then + // converted to a new SAMLResponse. + IdToken string `json:"idToken,omitempty"` + + // RpId: Relying Party identifier, which is the audience of issued + // SAMLResponse. + RpId string `json:"rpId,omitempty"` + + // SamlAppEntityId: SAML app entity id specified in Google Admin Console + // for each app. If developers want to redirect to a third-party app + // rather than a G Suite app, they'll probably they need this. When it's + // used, we'll return a RelayState. This includes a SAMLRequest, which + // can be used to trigger a SP-initiated SAML flow to redirect to the + // real app. + SamlAppEntityId string `json:"samlAppEntityId,omitempty"` + + // ForceSendFields is a list of field names (e.g. "IdToken") 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. "IdToken") 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 *GoogleCloudIdentitytoolkitV1IssueSamlResponseRequest) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudIdentitytoolkitV1IssueSamlResponseRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudIdentitytoolkitV1IssueSamlResponseResponse: Response for +// IssueSamlResponse request. +type GoogleCloudIdentitytoolkitV1IssueSamlResponseResponse struct { + // AcsEndpoint: The ACS endpoint which consumes the returned + // SAMLResponse. + AcsEndpoint string `json:"acsEndpoint,omitempty"` + + // Email: Email of the user. + Email string `json:"email,omitempty"` + + // FirstName: First name of the user. + FirstName string `json:"firstName,omitempty"` + + // IsNewUser: Whether the logged in user was created by this request. + IsNewUser bool `json:"isNewUser,omitempty"` + + // LastName: Last name of the user. + LastName string `json:"lastName,omitempty"` + + // RelayState: Generated RelayState. + RelayState string `json:"relayState,omitempty"` + + // SamlResponse: Signed SAMLResponse created for the Relying Party. + SamlResponse string `json:"samlResponse,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "AcsEndpoint") 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. "AcsEndpoint") 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 *GoogleCloudIdentitytoolkitV1IssueSamlResponseResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudIdentitytoolkitV1IssueSamlResponseResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudIdentitytoolkitV1MfaEnrollment: Information on which +// multi-factor authentication (MFA) providers are enabled for an +// account. +type GoogleCloudIdentitytoolkitV1MfaEnrollment struct { + // DisplayName: Display name for this mfa option e.g. "corp cell phone". + DisplayName string `json:"displayName,omitempty"` + + // EnrolledAt: Timestamp when the account enrolled this second factor. + EnrolledAt string `json:"enrolledAt,omitempty"` + + // MfaEnrollmentId: ID of this MFA option. + MfaEnrollmentId string `json:"mfaEnrollmentId,omitempty"` + + // PhoneInfo: Normally this will show the phone number associated with + // this enrollment. In some situations, such as after a first factor + // sign in, it will only show the obfuscated version of the associated + // phone number. + PhoneInfo string `json:"phoneInfo,omitempty"` + + // UnobfuscatedPhoneInfo: Output only. Unobfuscated phone_info. + UnobfuscatedPhoneInfo string `json:"unobfuscatedPhoneInfo,omitempty"` + + // 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 *GoogleCloudIdentitytoolkitV1MfaEnrollment) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudIdentitytoolkitV1MfaEnrollment + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +type GoogleCloudIdentitytoolkitV1MfaFactor struct { + // DisplayName: Display name for this mfa option e.g. "corp cell phone". + DisplayName string `json:"displayName,omitempty"` + + // PhoneInfo: Phone number to receive OTP for MFA. + PhoneInfo string `json:"phoneInfo,omitempty"` + + // 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 *GoogleCloudIdentitytoolkitV1MfaFactor) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudIdentitytoolkitV1MfaFactor + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudIdentitytoolkitV1MfaInfo: Multi-factor authentication +// related information. +type GoogleCloudIdentitytoolkitV1MfaInfo struct { + // Enrollments: The second factors the user has enrolled. + Enrollments []*GoogleCloudIdentitytoolkitV1MfaEnrollment `json:"enrollments,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Enrollments") 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. "Enrollments") 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 *GoogleCloudIdentitytoolkitV1MfaInfo) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudIdentitytoolkitV1MfaInfo + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudIdentitytoolkitV1OpenIdConnectKey: Represents a public key +// of the session cookie signer, formatted as a JSON Web Key (JWK) +// (https://tools.ietf.org/html/rfc7517). +type GoogleCloudIdentitytoolkitV1OpenIdConnectKey struct { + // Alg: Signature algorithm. + Alg string `json:"alg,omitempty"` + + // E: Exponent for the RSA public key, it is represented as the + // base64url encoding of the value's big endian representation. + E string `json:"e,omitempty"` + + // Kid: Unique string to identify this key. + Kid string `json:"kid,omitempty"` + + // Kty: Key type. + Kty string `json:"kty,omitempty"` + + // N: Modulus for the RSA public key, it is represented as the base64url + // encoding of the value's big endian representation. + N string `json:"n,omitempty"` + + // Use: Key use. + Use string `json:"use,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Alg") 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. "Alg") 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 *GoogleCloudIdentitytoolkitV1OpenIdConnectKey) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudIdentitytoolkitV1OpenIdConnectKey + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudIdentitytoolkitV1ProviderUserInfo: Information about the +// user as provided by various Identity Providers. +type GoogleCloudIdentitytoolkitV1ProviderUserInfo struct { + // DisplayName: The user's display name at the Identity Provider. + DisplayName string `json:"displayName,omitempty"` + + // Email: The user's email address at the Identity Provider. + Email string `json:"email,omitempty"` + + // FederatedId: The user's identifier at the Identity Provider. + FederatedId string `json:"federatedId,omitempty"` + + // PhoneNumber: The user's phone number at the Identity Provider. + PhoneNumber string `json:"phoneNumber,omitempty"` + + // PhotoUrl: The user's profile photo URL at the Identity Provider. + PhotoUrl string `json:"photoUrl,omitempty"` + + // ProviderId: The ID of the Identity Provider. + ProviderId string `json:"providerId,omitempty"` + + // RawId: The user's raw identifier directly returned from Identity + // Provider. + RawId string `json:"rawId,omitempty"` + + // ScreenName: The user's screen_name at Twitter or login name at + // GitHub. + ScreenName string `json:"screenName,omitempty"` + + // 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 *GoogleCloudIdentitytoolkitV1ProviderUserInfo) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudIdentitytoolkitV1ProviderUserInfo + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudIdentitytoolkitV1QueryUserInfoRequest: Request message for +// QueryUserInfo. +type GoogleCloudIdentitytoolkitV1QueryUserInfoRequest struct { + // Expression: Query conditions used to filter results. If more than one + // is passed, only the first SqlExpression is evaluated. + Expression []*GoogleCloudIdentitytoolkitV1SqlExpression `json:"expression,omitempty"` + + // Limit: The maximum number of accounts to return with an upper limit + // of __500__. Defaults to _500_. Only valid when `return_user_info` is + // set to `true`. + Limit int64 `json:"limit,omitempty,string"` + + // Offset: The number of accounts to skip from the beginning of matching + // records. Only valid when `return_user_info` is set to `true`. + Offset int64 `json:"offset,omitempty,string"` + + // Order: The order for sorting query result. Defaults to __ascending__ + // order. Only valid when `return_user_info` is set to `true`. + // + // Possible values: + // "ORDER_UNSPECIFIED" - Order is not specified. + // "ASC" - Sort on ascending order. + // "DESC" - Sort on descending order. + Order string `json:"order,omitempty"` + + // ReturnUserInfo: If `true`, this request will return the accounts + // matching the query. If `false`, only the __count__ of accounts + // matching the query will be returned. Defaults to `true`. + ReturnUserInfo bool `json:"returnUserInfo,omitempty"` + + // SortBy: The field to use for sorting user accounts. Defaults to + // `USER_ID`. Note: when `phone_number` is specified in `expression`, + // the result ignores the sorting. Only valid when `return_user_info` is + // set to `true`. + // + // Possible values: + // "SORT_BY_FIELD_UNSPECIFIED" - Sort field is not specified. + // "USER_ID" - Sort result by userId. + // "NAME" - Sort result by name. + // "CREATED_AT" - Sort result by createdAt. + // "LAST_LOGIN_AT" - Sort result by lastLoginAt. + // "USER_EMAIL" - Sort result by userEmail. + SortBy string `json:"sortBy,omitempty"` + + // TenantId: The ID of the tenant to which the result is scoped. + TenantId string `json:"tenantId,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Expression") 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. "Expression") 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 *GoogleCloudIdentitytoolkitV1QueryUserInfoRequest) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudIdentitytoolkitV1QueryUserInfoRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudIdentitytoolkitV1QueryUserInfoResponse: Response message +// for QueryUserInfo. +type GoogleCloudIdentitytoolkitV1QueryUserInfoResponse struct { + // RecordsCount: If `return_user_info` in the request is true, this is + // the number of returned accounts in this message. Otherwise, this is + // the total number of accounts matching the query. + RecordsCount int64 `json:"recordsCount,omitempty,string"` + + // UserInfo: If `return_user_info` in the request is true, this is the + // accounts matching the query. + UserInfo []*GoogleCloudIdentitytoolkitV1UserInfo `json:"userInfo,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "RecordsCount") 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. "RecordsCount") 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 *GoogleCloudIdentitytoolkitV1QueryUserInfoResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudIdentitytoolkitV1QueryUserInfoResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudIdentitytoolkitV1ResetPasswordRequest: Request message for +// ResetPassword. +type GoogleCloudIdentitytoolkitV1ResetPasswordRequest struct { + // Email: The email of the account to be modified. Specify this and the + // old password in order to change an account's password without using + // an out-of-band code. + Email string `json:"email,omitempty"` + + // NewPassword: The new password to be set for this account. Specifying + // this field will result in a change to the account and consume the + // out-of-band code if one was specified and it was of type + // PASSWORD_RESET. + NewPassword string `json:"newPassword,omitempty"` + + // OldPassword: The current password of the account to be modified. + // Specify this and email to change an account's password without using + // an out-of-band code. + OldPassword string `json:"oldPassword,omitempty"` + + // OobCode: An out-of-band (OOB) code generated by GetOobCode request. + // Specify only this parameter (or only this parameter and a tenant ID) + // to get the out-of-band code's type in the response without mutating + // the account's state. Only a PASSWORD_RESET out-of-band code can be + // consumed via this method. + OobCode string `json:"oobCode,omitempty"` + + // TenantId: The tenant ID of the Identity Platform tenant the account + // belongs to. + TenantId string `json:"tenantId,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Email") 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. "Email") 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 *GoogleCloudIdentitytoolkitV1ResetPasswordRequest) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudIdentitytoolkitV1ResetPasswordRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudIdentitytoolkitV1ResetPasswordResponse: Response message +// for ResetPassword. +type GoogleCloudIdentitytoolkitV1ResetPasswordResponse struct { + // Email: The email associated with the out-of-band code that was used. + Email string `json:"email,omitempty"` + + Kind string `json:"kind,omitempty"` + + MfaInfo *GoogleCloudIdentitytoolkitV1MfaEnrollment `json:"mfaInfo,omitempty"` + + NewEmail string `json:"newEmail,omitempty"` + + // Possible values: + // "OOB_REQ_TYPE_UNSPECIFIED" - Oob code type is not specified. + // "PASSWORD_RESET" - reset password + // "OLD_EMAIL_AGREE" + // "NEW_EMAIL_ACCEPT" + // "VERIFY_EMAIL" - verify the account's email address by sending an + // email + // "RECOVER_EMAIL" + // "EMAIL_SIGNIN" - sign in with email only + // "VERIFY_AND_CHANGE_EMAIL" - This flow sends an email to the + // specified new email, and when applied by clicking the link in the + // email changes the account's email to the new email. Used when the + // account must have verified email at all times, such as MFA accounts. + // "REVERT_SECOND_FACTOR_ADDITION" + RequestType string `json:"requestType,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "Email") 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. "Email") 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 *GoogleCloudIdentitytoolkitV1ResetPasswordResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudIdentitytoolkitV1ResetPasswordResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudIdentitytoolkitV1SendVerificationCodeRequest: Request +// message for SendVerificationCode. At least one of (`ios_receipt` and +// `ios_secret`), `recaptcha_token`, or `safety_net_token` must be +// specified to verify the verification code is being sent on behalf of +// a real app and not an emulator. +type GoogleCloudIdentitytoolkitV1SendVerificationCodeRequest struct { + // AutoRetrievalInfo: Android only. Used by Google Play Services to + // identify the app for auto-retrieval. + AutoRetrievalInfo *GoogleCloudIdentitytoolkitV1AutoRetrievalInfo `json:"autoRetrievalInfo,omitempty"` + + // IosReceipt: Receipt of successful iOS app token validation. At least + // one of (`ios_receipt` and `ios_secret`), `recaptcha_token`, or + // `safety_net_token` must be specified to verify the verification code + // is being sent on behalf of a real app and not an emulator. This + // should come from the response of verifyIosClient. If present, the + // caller should also provide the `ios_secret`, as well as a bundle ID + // in the `x-ios-bundle-identifier` header, which must match the bundle + // ID from the verifyIosClient request. + IosReceipt string `json:"iosReceipt,omitempty"` + + // IosSecret: Secret delivered to iOS app as a push notification. Should + // be passed with an `ios_receipt` as well as the + // `x-ios-bundle-identifier` header. + IosSecret string `json:"iosSecret,omitempty"` + + // PhoneNumber: The phone number to send the verification code to in + // E.164 format. + PhoneNumber string `json:"phoneNumber,omitempty"` + + // RecaptchaToken: Recaptcha token for app verification. At least one of + // (`ios_receipt` and `ios_secret`), `recaptcha_token`, or + // `safety_net_token` must be specified to verify the verification code + // is being sent on behalf of a real app and not an emulator. The + // recaptcha should be generated by calling getRecaptchaParams and the + // recaptcha token will be generated on user completion of the recaptcha + // challenge. + RecaptchaToken string `json:"recaptchaToken,omitempty"` + + // SafetyNetToken: Android only. Used to assert application identity in + // place of a recaptcha token. At least one of (`ios_receipt` and + // `ios_secret`), `recaptcha_token`, or `safety_net_token` must be + // specified to verify the verification code is being sent on behalf of + // a real app and not an emulator. A SafetyNet Token can be generated + // via the SafetyNet Android Attestation API + // (https://developer.android.com/training/safetynet/attestation.html), + // with the Base64 encoding of the `phone_number` field as the nonce. + SafetyNetToken string `json:"safetyNetToken,omitempty"` + + // TenantId: Tenant ID of the Identity Platform tenant the user is + // signing in to. + TenantId string `json:"tenantId,omitempty"` + + // ForceSendFields is a list of field names (e.g. "AutoRetrievalInfo") + // 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. "AutoRetrievalInfo") 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 *GoogleCloudIdentitytoolkitV1SendVerificationCodeRequest) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudIdentitytoolkitV1SendVerificationCodeRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudIdentitytoolkitV1SendVerificationCodeResponse: Response +// message for SendVerificationCode. +type GoogleCloudIdentitytoolkitV1SendVerificationCodeResponse struct { + // SessionInfo: Encrypted session information. This can be used in + // signInWithPhoneNumber to authenticate the phone number. + SessionInfo string `json:"sessionInfo,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "SessionInfo") 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. "SessionInfo") 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 *GoogleCloudIdentitytoolkitV1SendVerificationCodeResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudIdentitytoolkitV1SendVerificationCodeResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudIdentitytoolkitV1SetAccountInfoRequest: Request message +// for SetAccountInfo. +type GoogleCloudIdentitytoolkitV1SetAccountInfoRequest struct { + CaptchaChallenge string `json:"captchaChallenge,omitempty"` + + // CaptchaResponse: The response from reCaptcha challenge. This is + // required when the system detects possible abuse activities. + CaptchaResponse string `json:"captchaResponse,omitempty"` + + // CreatedAt: The timestamp in milliseconds when the account was + // created. + CreatedAt int64 `json:"createdAt,omitempty,string"` + + // CustomAttributes: JSON formatted custom attributes to be stored in + // the Identity Platform ID token. Specifying this field requires a + // Google OAuth 2.0 credential with proper permissions + // (https://cloud.google.com/identity-platform/docs/access-control). + CustomAttributes string `json:"customAttributes,omitempty"` + + DelegatedProjectNumber int64 `json:"delegatedProjectNumber,omitempty,string"` + + // DeleteAttribute: The account's attributes to be deleted. + // + // Possible values: + // "USER_ATTRIBUTE_NAME_UNSPECIFIED" - User attribute name is not + // specified. + // "EMAIL" - User attribute key name is email. + // "DISPLAY_NAME" - User attribute key name is displayName. + // "PROVIDER" - User attribute key name is provider. + // "PHOTO_URL" - User attribute key name is photoURL. + // "PASSWORD" - User attribute key name is password. + // "RAW_USER_INFO" - User attribute key name is rawUserInfo. + DeleteAttribute []string `json:"deleteAttribute,omitempty"` + + // DeleteProvider: The Identity Providers to unlink from the user's + // account. + DeleteProvider []string `json:"deleteProvider,omitempty"` + + // DisableUser: If true, marks the account as disabled, meaning the user + // will no longer be able to sign-in. + DisableUser bool `json:"disableUser,omitempty"` + + // DisplayName: The user's new display name to be updated in the + // account's attributes. The length of the display name must be less + // than or equal to 256 characters. + DisplayName string `json:"displayName,omitempty"` + + // Email: The user's new email to be updated in the account's + // attributes. The length of email should be less than 256 characters + // and in the format of `name@domain.tld`. The email should also match + // the RFC 822 (https://tools.ietf.org/html/rfc822) addr-spec + // production. + Email string `json:"email,omitempty"` + + // EmailVerified: Whether the user's email has been verified. Specifying + // this field requires a Google OAuth 2.0 credential with proper + // permissions + // (https://cloud.google.com/identity-platform/docs/access-control). + EmailVerified bool `json:"emailVerified,omitempty"` + + // IdToken: A valid Identity Platform ID token. Required when attempting + // to change user-related information. + IdToken string `json:"idToken,omitempty"` + + InstanceId string `json:"instanceId,omitempty"` + + // LastLoginAt: The timestamp in milliseconds when the account last + // logged in. + LastLoginAt int64 `json:"lastLoginAt,omitempty,string"` + + // LinkProviderUserInfo: The provider to be linked to the user's + // account. Specifying this field requires a Google OAuth 2.0 credential + // with proper permissions + // (https://cloud.google.com/identity-platform/docs/access-control). + LinkProviderUserInfo *GoogleCloudIdentitytoolkitV1ProviderUserInfo `json:"linkProviderUserInfo,omitempty"` + + // LocalId: The ID of the user. Specifying this field requires a Google + // OAuth 2.0 credential with proper permissions + // (https://cloud.google.com/identity-platform/docs/access-control). For + // requests from end-users, an ID token should be passed instead. + LocalId string `json:"localId,omitempty"` + + // Mfa: The multi-factor authentication related information to be set on + // the user's account. This will overwrite any previous multi-factor + // related information on the account. Specifying this field requires a + // Google OAuth 2.0 credential with proper permissions + // (https://cloud.google.com/identity-platform/docs/access-control). + Mfa *GoogleCloudIdentitytoolkitV1MfaInfo `json:"mfa,omitempty"` + + // OobCode: The out-of-band code to be applied on the user's account. + // The following out-of-band code types are supported: * VERIFY_EMAIL * + // RECOVER_EMAIL * REVERT_SECOND_FACTOR_ADDITION * + // VERIFY_AND_CHANGE_EMAIL + OobCode string `json:"oobCode,omitempty"` + + // Password: The user's new password to be updated in the account's + // attributes. The password must be at least 6 characters long. + Password string `json:"password,omitempty"` + + // PhoneNumber: The phone number to be updated in the account's + // attributes. + PhoneNumber string `json:"phoneNumber,omitempty"` + + // PhotoUrl: The user's new photo URL for the account's profile photo to + // be updated in the account's attributes. The length of the URL must be + // less than or equal to 2048 characters. + PhotoUrl string `json:"photoUrl,omitempty"` + + // Provider: The Identity Providers that the account should be + // associated with. + Provider []string `json:"provider,omitempty"` + + // ReturnSecureToken: Whether or not to return an ID and refresh token. + // Should always be true. + ReturnSecureToken bool `json:"returnSecureToken,omitempty"` + + // TargetProjectId: The project ID for the project that the account + // belongs to. Specifying this field requires Google OAuth 2.0 + // credential with proper permissions + // (https://cloud.google.com/identity-platform/docs/access-control). + // Requests from end users should pass an Identity Platform ID token + // instead. + TargetProjectId string `json:"targetProjectId,omitempty"` + + // TenantId: The tenant ID of the Identity Platform tenant that the + // account belongs to. Requests from end users should pass an Identity + // Platform ID token rather than setting this field. + TenantId string `json:"tenantId,omitempty"` + + // UpgradeToFederatedLogin: Whether the account should be restricted to + // only using federated login. + UpgradeToFederatedLogin bool `json:"upgradeToFederatedLogin,omitempty"` + + // ValidSince: Specifies the minimum timestamp in seconds for an + // Identity Platform ID token to be considered valid. + ValidSince int64 `json:"validSince,omitempty,string"` + + // ForceSendFields is a list of field names (e.g. "CaptchaChallenge") 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. "CaptchaChallenge") 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 *GoogleCloudIdentitytoolkitV1SetAccountInfoRequest) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudIdentitytoolkitV1SetAccountInfoRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudIdentitytoolkitV1SetAccountInfoResponse: Response message +// for SetAccountInfo +type GoogleCloudIdentitytoolkitV1SetAccountInfoResponse struct { + // DisplayName: The account's display name. + DisplayName string `json:"displayName,omitempty"` + + // Email: The account's email address. + Email string `json:"email,omitempty"` + + // EmailVerified: Whether the account's email has been verified. + EmailVerified bool `json:"emailVerified,omitempty"` + + // ExpiresIn: The number of seconds until the Identity Platform ID token + // expires. + ExpiresIn int64 `json:"expiresIn,omitempty,string"` + + // IdToken: An Identity Platform ID token for the account. This is used + // for legacy user sign up. + IdToken string `json:"idToken,omitempty"` + + Kind string `json:"kind,omitempty"` + + // LocalId: The ID of the authenticated user. + LocalId string `json:"localId,omitempty"` + + // NewEmail: The new email that has been set on the user's account + // attributes. + NewEmail string `json:"newEmail,omitempty"` + + // PasswordHash: Deprecated. No actual password hash is currently + // returned. + PasswordHash string `json:"passwordHash,omitempty"` + + // PhotoUrl: The user's photo URL for the account's profile photo. + PhotoUrl string `json:"photoUrl,omitempty"` + + // ProviderUserInfo: The linked Identity Providers on the account. + ProviderUserInfo []*GoogleCloudIdentitytoolkitV1ProviderUserInfo `json:"providerUserInfo,omitempty"` + + // RefreshToken: A refresh token for the account. This is used for + // legacy user sign up. + RefreshToken string `json:"refreshToken,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 *GoogleCloudIdentitytoolkitV1SetAccountInfoResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudIdentitytoolkitV1SetAccountInfoResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudIdentitytoolkitV1SignInWithCustomTokenRequest: Request +// message for SignInWithCustomToken. +type GoogleCloudIdentitytoolkitV1SignInWithCustomTokenRequest struct { + DelegatedProjectNumber int64 `json:"delegatedProjectNumber,omitempty,string"` + + InstanceId string `json:"instanceId,omitempty"` + + // ReturnSecureToken: Should always be true. + ReturnSecureToken bool `json:"returnSecureToken,omitempty"` + + // TenantId: The ID of the Identity Platform tenant the user is signing + // in to. If present, the ID should match the tenant_id in the token. + TenantId string `json:"tenantId,omitempty"` + + // Token: Required. The custom Auth token asserted by the developer. The + // token should be a JSON Web Token (JWT) + // (https://tools.ietf.org/html/rfc7519) that includes the claims listed + // in the API reference + // (https://cloud.google.com/identity-platform/docs/reference/rest/client/) + // under the "Custom Token Claims" section. + Token string `json:"token,omitempty"` + + // ForceSendFields is a list of field names (e.g. + // "DelegatedProjectNumber") 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. "DelegatedProjectNumber") + // 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 *GoogleCloudIdentitytoolkitV1SignInWithCustomTokenRequest) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudIdentitytoolkitV1SignInWithCustomTokenRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudIdentitytoolkitV1SignInWithCustomTokenResponse: Response +// message for SignInWithCustomToken. +type GoogleCloudIdentitytoolkitV1SignInWithCustomTokenResponse struct { + // ExpiresIn: The number of seconds until the ID token expires. + ExpiresIn int64 `json:"expiresIn,omitempty,string"` + + // IdToken: An Identity Platform ID token for the authenticated user. + IdToken string `json:"idToken,omitempty"` + + // IsNewUser: Whether the authenticated user was created by this + // request. + IsNewUser bool `json:"isNewUser,omitempty"` + + Kind string `json:"kind,omitempty"` + + // RefreshToken: An Identity Platform refresh token for the + // authenticated user. + RefreshToken string `json:"refreshToken,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "ExpiresIn") 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. "ExpiresIn") 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 *GoogleCloudIdentitytoolkitV1SignInWithCustomTokenResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudIdentitytoolkitV1SignInWithCustomTokenResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudIdentitytoolkitV1SignInWithEmailLinkRequest: Request +// message for SignInWithEmailLink +type GoogleCloudIdentitytoolkitV1SignInWithEmailLinkRequest struct { + // Email: Required. The email address the sign-in link was sent to. The + // length of email should be less than 256 characters and in the format + // of `name@domain.tld`. The email should also match the RFC 822 + // (https://tools.ietf.org/html/rfc822) addr-spec production. + Email string `json:"email,omitempty"` + + // IdToken: A valid ID token for an Identity Platform account. If + // passed, this request will link the email address to the user + // represented by this ID token and enable sign-in with email link on + // the account for the future. + IdToken string `json:"idToken,omitempty"` + + // OobCode: Required. The out-of-band code from the email link. + OobCode string `json:"oobCode,omitempty"` + + // TenantId: The ID of the Identity Platform tenant the user is signing + // in to. If not set, the user will sign in to the default Identity + // Platform project. + TenantId string `json:"tenantId,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Email") 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. "Email") 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 *GoogleCloudIdentitytoolkitV1SignInWithEmailLinkRequest) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudIdentitytoolkitV1SignInWithEmailLinkRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudIdentitytoolkitV1SignInWithEmailLinkResponse: Response +// message for SignInWithEmailLink. +type GoogleCloudIdentitytoolkitV1SignInWithEmailLinkResponse struct { + // Email: The email the user signed in with. Always present in the + // response. + Email string `json:"email,omitempty"` + + // ExpiresIn: The number of seconds until the ID token expires. + ExpiresIn int64 `json:"expiresIn,omitempty,string"` + + // IdToken: An Identity Platform ID token for the authenticated user. + IdToken string `json:"idToken,omitempty"` + + // IsNewUser: Whether the authenticated user was created by this + // request. + IsNewUser bool `json:"isNewUser,omitempty"` + + Kind string `json:"kind,omitempty"` + + // LocalId: The ID of the authenticated user. Always present in the + // response. + LocalId string `json:"localId,omitempty"` + + // MfaInfo: Info on which multi-factor authentication providers are + // enabled. Present if the user needs to complete the sign-in using + // multi-factor authentication. + MfaInfo []*GoogleCloudIdentitytoolkitV1MfaEnrollment `json:"mfaInfo,omitempty"` + + // MfaPendingCredential: An opaque string that functions as proof that + // the user has successfully passed the first factor check. + MfaPendingCredential string `json:"mfaPendingCredential,omitempty"` + + // RefreshToken: Refresh token for the authenticated user. + RefreshToken string `json:"refreshToken,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "Email") 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. "Email") 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 *GoogleCloudIdentitytoolkitV1SignInWithEmailLinkResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudIdentitytoolkitV1SignInWithEmailLinkResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudIdentitytoolkitV1SignInWithGameCenterRequest: Request +// message for SignInWithGameCenter +type GoogleCloudIdentitytoolkitV1SignInWithGameCenterRequest struct { + // DisplayName: The user's Game Center display name. + DisplayName string `json:"displayName,omitempty"` + + // IdToken: A valid ID token for an Identity Platform account. If + // present, this request will link the Game Center player ID to the + // account represented by this ID token. + IdToken string `json:"idToken,omitempty"` + + // PlayerId: Required. The user's Game Center player ID. + PlayerId string `json:"playerId,omitempty"` + + // PublicKeyUrl: Required. The URL to fetch the Apple public key in + // order to verify the given signature is signed by Apple. + PublicKeyUrl string `json:"publicKeyUrl,omitempty"` + + // Salt: Required. A random string used to generate the given signature. + Salt string `json:"salt,omitempty"` + + // Signature: Required. The verification signature data generated by + // Apple. + Signature string `json:"signature,omitempty"` + + // TenantId: The ID of the Identity Platform tenant the user is signing + // in to. + TenantId string `json:"tenantId,omitempty"` + + // Timestamp: Required. The time when the signature was created by + // Apple, in milliseconds since the epoch. + Timestamp int64 `json:"timestamp,omitempty,string"` + + // 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 *GoogleCloudIdentitytoolkitV1SignInWithGameCenterRequest) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudIdentitytoolkitV1SignInWithGameCenterRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudIdentitytoolkitV1SignInWithGameCenterResponse: Response +// message for SignInWithGameCenter +type GoogleCloudIdentitytoolkitV1SignInWithGameCenterResponse struct { + // DisplayName: Display name of the authenticated user. + DisplayName string `json:"displayName,omitempty"` + + // ExpiresIn: The number of seconds until the ID token expires. + ExpiresIn int64 `json:"expiresIn,omitempty,string"` + + // IdToken: An Identity Platform ID token for the authenticated user. + IdToken string `json:"idToken,omitempty"` + + // IsNewUser: Whether the logged in user was created by this request. + IsNewUser bool `json:"isNewUser,omitempty"` + + // LocalId: The ID of the authenticated user. Always present in the + // response. + LocalId string `json:"localId,omitempty"` + + // PlayerId: The user's Game Center player ID. + PlayerId string `json:"playerId,omitempty"` + + // RefreshToken: An Identity Platform refresh token for the + // authenticated user. + RefreshToken string `json:"refreshToken,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 *GoogleCloudIdentitytoolkitV1SignInWithGameCenterResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudIdentitytoolkitV1SignInWithGameCenterResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudIdentitytoolkitV1SignInWithIdpRequest: Request message for +// SignInWithIdp. +type GoogleCloudIdentitytoolkitV1SignInWithIdpRequest struct { + AutoCreate bool `json:"autoCreate,omitempty"` + + DelegatedProjectNumber int64 `json:"delegatedProjectNumber,omitempty,string"` + + // IdToken: A valid Identity Platform ID token. If passed, the user's + // account at the IdP will be linked to the account represented by this + // ID token. + IdToken string `json:"idToken,omitempty"` + + PendingIdToken string `json:"pendingIdToken,omitempty"` + + // PendingToken: An opaque string from a previous SignInWithIdp + // response. If set, it can be used to repeat the sign-in operation from + // the previous SignInWithIdp operation. + PendingToken string `json:"pendingToken,omitempty"` + + // PostBody: If the user is signing in with an authorization response + // obtained via a previous CreateAuthUri authorization request, this is + // the body of the HTTP POST callback from the IdP, if present. + // Otherwise, if the user is signing in with a manually provided IdP + // credential, this should be a URL-encoded form that contains the + // credential (e.g. an ID token or access token for OAuth 2.0 IdPs) and + // the provider ID of the IdP that issued the credential. For example, + // if the user is signing in to the Google provider using a Google ID + // token, this should be set to + // `id_token=[GOOGLE_ID_TOKEN]&providerId=google.com`, where + // `[GOOGLE_ID_TOKEN]` should be replaced with the Google ID token. If + // the user is signing in to the Facebook provider using a Facebook + // authentication token, this should be set to + // `id_token=[FACEBOOK_AUTHENTICATION_TOKEN]&providerId=facebook.com&nonc + // e= [NONCE]`, where `[FACEBOOK_AUTHENTICATION_TOKEN]` should be + // replaced with the Facebook authentication token. Nonce is required + // for validating the token. The request will fail if no nonce is + // provided. If the user is signing in to the Facebook provider using a + // Facebook access token, this should be set to + // `access_token=[FACEBOOK_ACCESS_TOKEN]&providerId=facebook.com`, where + // `[FACEBOOK_ACCESS_TOKEN]` should be replaced with the Facebook access + // token. If the user is signing in to the Twitter provider using a + // Twitter OAuth 1.0 credential, this should be set to + // `access_token=[TWITTER_ACCESS_TOKEN]&oauth_token_secret=[TWITTER_TOKEN + // _SECRET]&providerId=twitter.com`, where `[TWITTER_ACCESS_TOKEN]` and + // `[TWITTER_TOKEN_SECRET]` should be replaced with the Twitter OAuth + // access token and Twitter OAuth token secret respectively. + PostBody string `json:"postBody,omitempty"` + + // RequestUri: Required. The URL to which the IdP redirects the user + // back. This can be set to `http://localhost` if the user is signing in + // with a manually provided IdP credential. + RequestUri string `json:"requestUri,omitempty"` + + // ReturnIdpCredential: Whether or not to return OAuth credentials from + // the IdP on the following errors: `FEDERATED_USER_ID_ALREADY_LINKED` + // and `EMAIL_EXISTS`. + ReturnIdpCredential bool `json:"returnIdpCredential,omitempty"` + + // ReturnRefreshToken: Whether or not to return the OAuth refresh token + // from the IdP, if available. + ReturnRefreshToken bool `json:"returnRefreshToken,omitempty"` + + // ReturnSecureToken: Should always be true. + ReturnSecureToken bool `json:"returnSecureToken,omitempty"` + + // SessionId: The session ID returned from a previous CreateAuthUri + // call. This field is verified against that session ID to prevent + // session fixation attacks. Required if the user is signing in with an + // authorization response from a previous CreateAuthUri authorization + // request. + SessionId string `json:"sessionId,omitempty"` + + // TenantId: The ID of the Identity Platform tenant the user is signing + // in to. If not set, the user will sign in to the default Identity + // Platform project. + TenantId string `json:"tenantId,omitempty"` + + // ForceSendFields is a list of field names (e.g. "AutoCreate") 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. "AutoCreate") 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 *GoogleCloudIdentitytoolkitV1SignInWithIdpRequest) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudIdentitytoolkitV1SignInWithIdpRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudIdentitytoolkitV1SignInWithIdpResponse: Response message +// for SignInWithIdp. +type GoogleCloudIdentitytoolkitV1SignInWithIdpResponse struct { + // Context: The opaque string set in CreateAuthUri that is used to + // maintain contextual information between the authentication request + // and the callback from the IdP. + Context string `json:"context,omitempty"` + + // DateOfBirth: The date of birth for the user's account at the IdP. + DateOfBirth string `json:"dateOfBirth,omitempty"` + + // DisplayName: The display name for the user's account at the IdP. + DisplayName string `json:"displayName,omitempty"` + + // Email: The email address of the user's account at the IdP. + Email string `json:"email,omitempty"` + + // EmailRecycled: Whether or not there is an existing Identity Platform + // user account with the same email address but linked to a different + // account at the same IdP. Only present if the "One account per email + // address" setting is enabled and the email address at the IdP is + // verified. + EmailRecycled bool `json:"emailRecycled,omitempty"` + + // EmailVerified: Whether the user account's email address is verified. + EmailVerified bool `json:"emailVerified,omitempty"` + + // ErrorMessage: The error message returned if `return_idp_credential` + // is set to `true` and either the `FEDERATED_USER_ID_ALREADY_LINKED` or + // `EMAIL_EXISTS` error is encountered. This field's value is either + // `FEDERATED_USER_ID_ALREADY_LINKED` or `EMAIL_EXISTS`. + ErrorMessage string `json:"errorMessage,omitempty"` + + // ExpiresIn: The number of seconds until the Identity Platform ID token + // expires. + ExpiresIn int64 `json:"expiresIn,omitempty,string"` + + // FederatedId: The user's account ID at the IdP. Always present in the + // response. + FederatedId string `json:"federatedId,omitempty"` + + // FirstName: The first name for the user's account at the IdP. + FirstName string `json:"firstName,omitempty"` + + // FullName: The full name for the user's account at the IdP. + FullName string `json:"fullName,omitempty"` + + // IdToken: An Identity Platform ID token for the authenticated user. + IdToken string `json:"idToken,omitempty"` + + InputEmail string `json:"inputEmail,omitempty"` + + // IsNewUser: Whether or not a new Identity Platform account was created + // for the authenticated user. + IsNewUser bool `json:"isNewUser,omitempty"` + + Kind string `json:"kind,omitempty"` + + // Language: The language preference for the user's account at the IdP. + Language string `json:"language,omitempty"` + + // LastName: The last name for the user's account at the IdP. + LastName string `json:"lastName,omitempty"` + + // LocalId: The ID of the authenticated Identity Platform user. Always + // present in the response. + LocalId string `json:"localId,omitempty"` + + // MfaInfo: Info on which multi-factor authentication providers are + // enabled for the account. Present if the user needs to complete the + // sign-in using multi-factor authentication. + MfaInfo []*GoogleCloudIdentitytoolkitV1MfaEnrollment `json:"mfaInfo,omitempty"` + + // MfaPendingCredential: An opaque string that functions as proof that + // the user has successfully passed the first factor authentication. + MfaPendingCredential string `json:"mfaPendingCredential,omitempty"` + + // NeedConfirmation: Whether or not there is an existing Identity + // Platform user account with the same email address as the current + // account signed in at the IdP, and the account's email addresss is not + // verified at the IdP. The user will need to sign in to the existing + // Identity Platform account and then link the current credential from + // the IdP to it. Only present if the "One account per email address" + // setting is enabled. + NeedConfirmation bool `json:"needConfirmation,omitempty"` + + NeedEmail bool `json:"needEmail,omitempty"` + + // NickName: The nickname for the user's account at the IdP. + NickName string `json:"nickName,omitempty"` + + // OauthAccessToken: The OAuth access token from the IdP, if available. + OauthAccessToken string `json:"oauthAccessToken,omitempty"` + + // OauthAuthorizationCode: The OAuth 2.0 authorization code, if + // available. Only present for the Google provider. + OauthAuthorizationCode string `json:"oauthAuthorizationCode,omitempty"` + + // OauthExpireIn: The number of seconds until the OAuth access token + // from the IdP expires. + OauthExpireIn int64 `json:"oauthExpireIn,omitempty"` + + // OauthIdToken: The OpenID Connect ID token from the IdP, if available. + OauthIdToken string `json:"oauthIdToken,omitempty"` + + // OauthRefreshToken: The OAuth 2.0 refresh token from the IdP, if + // available and `return_refresh_token` is set to `true`. + OauthRefreshToken string `json:"oauthRefreshToken,omitempty"` + + // OauthTokenSecret: The OAuth 1.0 token secret from the IdP, if + // available. Only present for the Twitter provider. + OauthTokenSecret string `json:"oauthTokenSecret,omitempty"` + + // OriginalEmail: The main (top-level) email address of the user's + // Identity Platform account, if different from the email address at the + // IdP. Only present if the "One account per email address" setting is + // enabled. + OriginalEmail string `json:"originalEmail,omitempty"` + + // PendingToken: An opaque string that can be used as a credential from + // the IdP the user is signing into. The pending token obtained here can + // be set in a future SignInWithIdp request to sign the same user in + // with the IdP again. + PendingToken string `json:"pendingToken,omitempty"` + + // PhotoUrl: The URL of the user's profile picture at the IdP. + PhotoUrl string `json:"photoUrl,omitempty"` + + // ProviderId: The provider ID of the IdP that the user is signing in + // to. Always present in the response. + ProviderId string `json:"providerId,omitempty"` + + // RawUserInfo: The stringified JSON response containing all the data + // corresponding to the user's account at the IdP. + RawUserInfo string `json:"rawUserInfo,omitempty"` + + // RefreshToken: An Identity Platform refresh token for the + // authenticated user. + RefreshToken string `json:"refreshToken,omitempty"` + + // ScreenName: The screen name for the user's account at the Twitter IdP + // or the login name for the user's account at the GitHub IdP. + ScreenName string `json:"screenName,omitempty"` + + // TenantId: The value of the `tenant_id` field in the request. + TenantId string `json:"tenantId,omitempty"` + + // TimeZone: The time zone for the user's account at the IdP. + TimeZone string `json:"timeZone,omitempty"` + + // VerifiedProvider: A list of provider IDs that the user can sign in to + // in order to resolve a `need_confirmation` error. Only present if + // `need_confirmation` is set to `true`. + VerifiedProvider []string `json:"verifiedProvider,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "Context") 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. "Context") 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 *GoogleCloudIdentitytoolkitV1SignInWithIdpResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudIdentitytoolkitV1SignInWithIdpResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudIdentitytoolkitV1SignInWithPasswordRequest: Request +// message for SignInWithPassword. +type GoogleCloudIdentitytoolkitV1SignInWithPasswordRequest struct { + CaptchaChallenge string `json:"captchaChallenge,omitempty"` + + // CaptchaResponse: The reCAPTCHA token provided by the reCAPTCHA + // client-side integration. reCAPTCHA Enterprise uses it for risk + // assessment. Required when reCAPTCHA Enterprise is enabled. + CaptchaResponse string `json:"captchaResponse,omitempty"` + + DelegatedProjectNumber int64 `json:"delegatedProjectNumber,omitempty,string"` + + // Email: Required. The email the user is signing in with. The length of + // email should be less than 256 characters and in the format of + // `name@domain.tld`. The email should also match the RFC 822 + // (https://tools.ietf.org/html/rfc822) addr-spec production. + Email string `json:"email,omitempty"` + + IdToken string `json:"idToken,omitempty"` + + InstanceId string `json:"instanceId,omitempty"` + + // Password: Required. The password the user provides to sign in to the + // account. + Password string `json:"password,omitempty"` + + PendingIdToken string `json:"pendingIdToken,omitempty"` + + // ReturnSecureToken: Should always be true. + ReturnSecureToken bool `json:"returnSecureToken,omitempty"` + + // TenantId: The ID of the Identity Platform tenant the user is signing + // in to. If not set, the user will sign in to the default Identity + // Platform instance in the project. + TenantId string `json:"tenantId,omitempty"` + + // ForceSendFields is a list of field names (e.g. "CaptchaChallenge") 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. "CaptchaChallenge") 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 *GoogleCloudIdentitytoolkitV1SignInWithPasswordRequest) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudIdentitytoolkitV1SignInWithPasswordRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudIdentitytoolkitV1SignInWithPasswordResponse: Response +// message for SignInWithPassword. +type GoogleCloudIdentitytoolkitV1SignInWithPasswordResponse struct { + // DisplayName: The user's display name stored in the account's + // attributes. + DisplayName string `json:"displayName,omitempty"` + + // Email: The email of the authenticated user. Always present in the + // response. + Email string `json:"email,omitempty"` + + // ExpiresIn: The number of seconds until the Identity Platform ID token + // expires. + ExpiresIn int64 `json:"expiresIn,omitempty,string"` + + // IdToken: An Identity Platform ID token for the authenticated user. + IdToken string `json:"idToken,omitempty"` + + Kind string `json:"kind,omitempty"` + + // LocalId: The ID of the authenticated user. Always present in the + // response. + LocalId string `json:"localId,omitempty"` + + // MfaInfo: Info on which multi-factor authentication providers are + // enabled for the account. Present if the user needs to complete the + // sign-in using multi-factor authentication. + MfaInfo []*GoogleCloudIdentitytoolkitV1MfaEnrollment `json:"mfaInfo,omitempty"` + + // MfaPendingCredential: An opaque string that functions as proof that + // the user has successfully passed the first factor authentication. + MfaPendingCredential string `json:"mfaPendingCredential,omitempty"` + + // OauthAccessToken: The OAuth2 access token. + OauthAccessToken string `json:"oauthAccessToken,omitempty"` + + OauthAuthorizationCode string `json:"oauthAuthorizationCode,omitempty"` + + // OauthExpireIn: The access token expiration time in seconds. + OauthExpireIn int64 `json:"oauthExpireIn,omitempty"` + + // ProfilePicture: The user's profile picture stored in the account's + // attributes. + ProfilePicture string `json:"profilePicture,omitempty"` + + // RefreshToken: An Identity Platform refresh token for the + // authenticated user. + RefreshToken string `json:"refreshToken,omitempty"` + + // Registered: Whether the email is for an existing account. Always + // true. + Registered bool `json:"registered,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 *GoogleCloudIdentitytoolkitV1SignInWithPasswordResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudIdentitytoolkitV1SignInWithPasswordResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudIdentitytoolkitV1SignInWithPhoneNumberRequest: Request +// message for SignInWithPhoneNumber. +type GoogleCloudIdentitytoolkitV1SignInWithPhoneNumberRequest struct { + // Code: User-entered verification code from an SMS sent to the user's + // phone. + Code string `json:"code,omitempty"` + + // IdToken: A valid ID token for an Identity Platform account. If + // passed, this request will link the phone number to the user + // represented by this ID token if the phone number is not in use, or + // will reauthenticate the user if the phone number is already linked to + // the user. + IdToken string `json:"idToken,omitempty"` + + // Possible values: + // "VERIFY_OP_UNSPECIFIED" - Operation is not specified. + // "SIGN_UP_OR_IN" - Verify operation is to sign up/sign in. + // "REAUTH" - Verify operation is to reauth. + // "UPDATE" - Verify operation is to update. + // "LINK" - Verify operation is to link. + Operation string `json:"operation,omitempty"` + + // PhoneNumber: The user's phone number to sign in with. This is + // necessary in the case of uing a temporary proof, in which case it + // must match the phone number that was authenticated in the request + // that generated the temporary proof. This field is ignored if a + // session info is passed. + PhoneNumber string `json:"phoneNumber,omitempty"` + + // SessionInfo: Encrypted session information from the response of + // sendVerificationCode. In the case of authenticating with an SMS code + // this must be specified, but in the case of using a temporary proof it + // can be unspecified. + SessionInfo string `json:"sessionInfo,omitempty"` + + // TemporaryProof: A proof of the phone number verification, provided + // from a previous signInWithPhoneNumber request. If this is passed, the + // caller must also pass in the phone_number field the phone number that + // was verified in the previous request. + TemporaryProof string `json:"temporaryProof,omitempty"` + + // TenantId: The ID of the Identity Platform tenant the user is signing + // in to. If not set, the user will sign in to the default Identity + // Platform project. + TenantId string `json:"tenantId,omitempty"` + + // VerificationProof: Do not use. + VerificationProof string `json:"verificationProof,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 *GoogleCloudIdentitytoolkitV1SignInWithPhoneNumberRequest) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudIdentitytoolkitV1SignInWithPhoneNumberRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudIdentitytoolkitV1SignInWithPhoneNumberResponse: Response +// message for SignInWithPhoneNumber. +type GoogleCloudIdentitytoolkitV1SignInWithPhoneNumberResponse struct { + // ExpiresIn: The number of seconds until the ID token expires. + ExpiresIn int64 `json:"expiresIn,omitempty,string"` + + // IdToken: Identity Platform ID token for the authenticated user. + IdToken string `json:"idToken,omitempty"` + + // IsNewUser: Whether the authenticated user was created by this + // request. + IsNewUser bool `json:"isNewUser,omitempty"` + + // LocalId: The id of the authenticated user. Present in the case of a + // successful authentication. In the case when the phone could be + // verified but the account operation could not be performed, a + // temporary proof will be returned instead. + LocalId string `json:"localId,omitempty"` + + // PhoneNumber: Phone number of the authenticated user. Always present + // in the response. + PhoneNumber string `json:"phoneNumber,omitempty"` + + // RefreshToken: Refresh token for the authenticated user. + RefreshToken string `json:"refreshToken,omitempty"` + + // TemporaryProof: A proof of the phone number verification, provided if + // a phone authentication is successful but the user operation fails. + // This happens when the request tries to link a phone number to a user + // with an ID token or reauthenticate with an ID token but the phone + // number is linked to a different user. + TemporaryProof string `json:"temporaryProof,omitempty"` + + // TemporaryProofExpiresIn: The number of seconds until the temporary + // proof expires. + TemporaryProofExpiresIn int64 `json:"temporaryProofExpiresIn,omitempty,string"` + + // VerificationProof: Do not use. + VerificationProof string `json:"verificationProof,omitempty"` + + // VerificationProofExpiresIn: Do not use. + VerificationProofExpiresIn int64 `json:"verificationProofExpiresIn,omitempty,string"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "ExpiresIn") 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. "ExpiresIn") 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 *GoogleCloudIdentitytoolkitV1SignInWithPhoneNumberResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudIdentitytoolkitV1SignInWithPhoneNumberResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudIdentitytoolkitV1SignUpRequest: Request message for +// SignUp. +type GoogleCloudIdentitytoolkitV1SignUpRequest struct { + CaptchaChallenge string `json:"captchaChallenge,omitempty"` + + // CaptchaResponse: The reCAPTCHA token provided by the reCAPTCHA + // client-side integration. reCAPTCHA Enterprise uses it for assessment. + // Required when reCAPTCHA enterprise is enabled. + CaptchaResponse string `json:"captchaResponse,omitempty"` + + // Disabled: Whether the user will be disabled upon creation. Disabled + // accounts are inaccessible except for requests bearing a Google OAuth2 + // credential with proper permissions + // (https://cloud.google.com/identity-platform/docs/access-control). + Disabled bool `json:"disabled,omitempty"` + + // DisplayName: The display name of the user to be created. + DisplayName string `json:"displayName,omitempty"` + + // Email: The email to assign to the created user. The length of the + // email should be less than 256 characters and in the format of + // `name@domain.tld`. The email should also match the RFC 822 + // (https://tools.ietf.org/html/rfc822) addr-spec production. An + // anonymous user will be created if not provided. + Email string `json:"email,omitempty"` + + // EmailVerified: Whether the user's email is verified. Specifying this + // field requires a Google OAuth 2.0 credential with the proper + // permissions + // (https://cloud.google.com/identity-platform/docs/access-control). + EmailVerified bool `json:"emailVerified,omitempty"` + + // IdToken: A valid ID token for an Identity Platform user. If set, this + // request will link the authentication credential to the user + // represented by this ID token. For a non-admin request, both the + // `email` and `password` fields must be set. For an admin request, + // `local_id` must not be set. + IdToken string `json:"idToken,omitempty"` + + InstanceId string `json:"instanceId,omitempty"` + + // LocalId: The ID of the user to create. The ID must be unique within + // the project that the user is being created under. Specifying this + // field requires a Google OAuth 2.0 credential with the proper + // permissions + // (https://cloud.google.com/identity-platform/docs/access-control). + LocalId string `json:"localId,omitempty"` + + // MfaInfo: The multi-factor authentication providers for the user to + // create. + MfaInfo []*GoogleCloudIdentitytoolkitV1MfaFactor `json:"mfaInfo,omitempty"` + + // Password: The password to assign to the created user. The password + // must be be at least 6 characters long. If set, the `email` field must + // also be set. + Password string `json:"password,omitempty"` + + // PhoneNumber: The phone number of the user to create. Specifying this + // field requires a Google OAuth 2.0 credential with the proper + // permissions + // (https://cloud.google.com/identity-platform/docs/access-control). + PhoneNumber string `json:"phoneNumber,omitempty"` + + // PhotoUrl: The profile photo url of the user to create. + PhotoUrl string `json:"photoUrl,omitempty"` + + // TargetProjectId: The project ID of the project which the user should + // belong to. Specifying this field requires a Google OAuth 2.0 + // credential with the proper permissions + // (https://cloud.google.com/identity-platform/docs/access-control). If + // this is not set, the target project is inferred from the scope + // associated to the Bearer access token. + TargetProjectId string `json:"targetProjectId,omitempty"` + + // TenantId: The ID of the Identity Platform tenant to create a user + // under. If not set, the user will be created under the default + // Identity Platform project. + TenantId string `json:"tenantId,omitempty"` + + // ForceSendFields is a list of field names (e.g. "CaptchaChallenge") 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. "CaptchaChallenge") 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 *GoogleCloudIdentitytoolkitV1SignUpRequest) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudIdentitytoolkitV1SignUpRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudIdentitytoolkitV1SignUpResponse: Response message for +// SignUp. +type GoogleCloudIdentitytoolkitV1SignUpResponse struct { + // DisplayName: The created user's display name. + DisplayName string `json:"displayName,omitempty"` + + // Email: The created user's email. + Email string `json:"email,omitempty"` + + // ExpiresIn: The number of seconds until the ID token expires. + ExpiresIn int64 `json:"expiresIn,omitempty,string"` + + // IdToken: An Identity Platform ID token for the created user. This + // field is only set for non-admin requests. + IdToken string `json:"idToken,omitempty"` + + Kind string `json:"kind,omitempty"` + + // LocalId: The ID of the created user. Always present in the response. + LocalId string `json:"localId,omitempty"` + + // RefreshToken: An Identity Platform refresh token for the created + // user. This field is only set for non-admin requests. + RefreshToken string `json:"refreshToken,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 *GoogleCloudIdentitytoolkitV1SignUpResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudIdentitytoolkitV1SignUpResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudIdentitytoolkitV1SqlExpression: Query conditions used to +// filter results. +type GoogleCloudIdentitytoolkitV1SqlExpression struct { + // Email: A case insensitive string that the account's email should + // match. Only one of `email`, `phone_number`, or `user_id` should be + // specified in a SqlExpression. If more than one is specified, only the + // first (in that order) will be applied. + Email string `json:"email,omitempty"` + + // PhoneNumber: A string that the account's phone number should match. + // Only one of `email`, `phone_number`, or `user_id` should be specified + // in a SqlExpression. If more than one is specified, only the first (in + // that order) will be applied. + PhoneNumber string `json:"phoneNumber,omitempty"` + + // UserId: A string that the account's local ID should match. Only one + // of `email`, `phone_number`, or `user_id` should be specified in a + // SqlExpression If more than one is specified, only the first (in that + // order) will be applied. + UserId string `json:"userId,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Email") 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. "Email") 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 *GoogleCloudIdentitytoolkitV1SqlExpression) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudIdentitytoolkitV1SqlExpression + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudIdentitytoolkitV1UploadAccountRequest: Request message for +// UploadAccount. +type GoogleCloudIdentitytoolkitV1UploadAccountRequest struct { + // AllowOverwrite: Whether to overwrite an existing account in Identity + // Platform with a matching `local_id` in the request. If true, the + // existing account will be overwritten. If false, an error will be + // returned. + AllowOverwrite bool `json:"allowOverwrite,omitempty"` + + // Argon2Parameters: The parameters for Argon2 hashing algorithm. + Argon2Parameters *GoogleCloudIdentitytoolkitV1Argon2Parameters `json:"argon2Parameters,omitempty"` + + // BlockSize: The block size parameter used by the STANDARD_SCRYPT + // hashing function. This parameter, along with parallelization and + // cpu_mem_cost help tune the resources needed to hash a password, and + // should be tuned as processor speeds and memory technologies advance. + BlockSize int64 `json:"blockSize,omitempty"` + + // CpuMemCost: The CPU memory cost parameter to be used by the + // STANDARD_SCRYPT hashing function. This parameter, along with + // block_size and cpu_mem_cost help tune the resources needed to hash a + // password, and should be tuned as processor speeds and memory + // technologies advance. + CpuMemCost int64 `json:"cpuMemCost,omitempty"` + + DelegatedProjectNumber int64 `json:"delegatedProjectNumber,omitempty,string"` + + // DkLen: The desired key length for the STANDARD_SCRYPT hashing + // function. Must be at least 1. + DkLen int64 `json:"dkLen,omitempty"` + + // HashAlgorithm: Required. The hashing function used to hash the + // account passwords. Must be one of the following: * HMAC_SHA256 * + // HMAC_SHA1 * HMAC_MD5 * SCRYPT * PBKDF_SHA1 * MD5 * HMAC_SHA512 * SHA1 + // * BCRYPT * PBKDF2_SHA256 * SHA256 * SHA512 * STANDARD_SCRYPT * ARGON2 + HashAlgorithm string `json:"hashAlgorithm,omitempty"` + + // MemoryCost: Memory cost for hash calculation. Only required when the + // hashing function is SCRYPT. + MemoryCost int64 `json:"memoryCost,omitempty"` + + // Parallelization: The parallelization cost parameter to be used by the + // STANDARD_SCRYPT hashing function. This parameter, along with + // block_size and cpu_mem_cost help tune the resources needed to hash a + // password, and should be tuned as processor speeds and memory + // technologies advance. + Parallelization int64 `json:"parallelization,omitempty"` + + // PasswordHashOrder: Password and salt order when verify password. + // + // Possible values: + // "UNSPECIFIED_ORDER" - The order is not specified. + // "SALT_AND_PASSWORD" - The order is salt first, and then password. + // "PASSWORD_AND_SALT" - The order is password first, and then salt. + PasswordHashOrder string `json:"passwordHashOrder,omitempty"` + + // Rounds: The number of rounds used for hash calculation. Only required + // for the following hashing functions: * MD5 * SHA1 * SHA256 * SHA512 * + // PBKDF_SHA1 * PBKDF2_SHA256 * SCRYPT + Rounds int64 `json:"rounds,omitempty"` + + // SaltSeparator: One or more bytes to be inserted between the salt and + // plain text password. For stronger security, this should be a single + // non-printable character. + SaltSeparator string `json:"saltSeparator,omitempty"` + + // SanityCheck: If true, the service will do the following list of + // checks before an account is uploaded: * Duplicate emails * Duplicate + // federated IDs * Federated ID provider validation If the duplication + // exists within the list of accounts to be uploaded, it will prevent + // the entire list from being uploaded. If the email or federated ID is + // a duplicate of a user already within the project/tenant, the account + // will not be uploaded, but the rest of the accounts will be + // unaffected. If false, these checks will be skipped. + SanityCheck bool `json:"sanityCheck,omitempty"` + + // SignerKey: The signer key used to hash the password. Required for the + // following hashing functions: * SCRYPT, * HMAC_MD5, * HMAC_SHA1, * + // HMAC_SHA256, * HMAC_SHA512 + SignerKey string `json:"signerKey,omitempty"` + + // TenantId: The ID of the Identity Platform tenant the account belongs + // to. + TenantId string `json:"tenantId,omitempty"` + + // Users: A list of accounts to upload. `local_id` is required for each + // user; everything else is optional. + Users []*GoogleCloudIdentitytoolkitV1UserInfo `json:"users,omitempty"` + + // ForceSendFields is a list of field names (e.g. "AllowOverwrite") 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. "AllowOverwrite") 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 *GoogleCloudIdentitytoolkitV1UploadAccountRequest) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudIdentitytoolkitV1UploadAccountRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudIdentitytoolkitV1UploadAccountResponse: Response message +// for UploadAccount. +type GoogleCloudIdentitytoolkitV1UploadAccountResponse struct { + // Error: Detailed error info for accounts that cannot be uploaded. + Error []*GoogleCloudIdentitytoolkitV1ErrorInfo `json:"error,omitempty"` + + Kind string `json:"kind,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "Error") 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. "Error") 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 *GoogleCloudIdentitytoolkitV1UploadAccountResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudIdentitytoolkitV1UploadAccountResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudIdentitytoolkitV1UserInfo: An Identity Platform account's +// information. +type GoogleCloudIdentitytoolkitV1UserInfo struct { + // CreatedAt: The time, in milliseconds from epoch, when the account was + // created. + CreatedAt int64 `json:"createdAt,omitempty,string"` + + // CustomAttributes: Custom claims to be added to any ID tokens minted + // for the account. Should be at most 1,000 characters in length and in + // valid JSON format. + CustomAttributes string `json:"customAttributes,omitempty"` + + // CustomAuth: Output only. Whether this account has been authenticated + // using SignInWithCustomToken. + CustomAuth bool `json:"customAuth,omitempty"` + + // DateOfBirth: Output only. The date of birth set for the account. This + // account attribute is not used by Identity Platform. It is available + // for informational purposes only. + DateOfBirth string `json:"dateOfBirth,omitempty"` + + // Disabled: Whether the account is disabled. Disabled accounts are + // inaccessible except for requests bearing a Google OAuth2 credential + // with proper permissions. + Disabled bool `json:"disabled,omitempty"` + + // DisplayName: The display name of the account. This account attribute + // is not used by Identity Platform. It is available for informational + // purposes only. + DisplayName string `json:"displayName,omitempty"` + + // Email: The account's email address. The length of the email should be + // less than 256 characters and in the format of `name@domain.tld`. The + // email should also match the RFC 822 + // (https://tools.ietf.org/html/rfc822) addr-spec. + Email string `json:"email,omitempty"` + + // EmailLinkSignin: Output only. Whether the account can authenticate + // with email link. + EmailLinkSignin bool `json:"emailLinkSignin,omitempty"` + + // EmailVerified: Whether the account's email address has been verified. + EmailVerified bool `json:"emailVerified,omitempty"` + + // InitialEmail: The first email address associated with this account. + // The account's initial email cannot be changed once set and is used to + // recover access to this account if lost via the RECOVER_EMAIL flow in + // GetOobCode. Should match the RFC 822 + // (https://tools.ietf.org/html/rfc822) addr-spec. + InitialEmail string `json:"initialEmail,omitempty"` + + // Language: Output only. The language preference of the account. This + // account attribute is not used by Identity Platform. It is available + // for informational purposes only. + Language string `json:"language,omitempty"` + + // LastLoginAt: The last time, in milliseconds from epoch, this account + // was logged into. + LastLoginAt int64 `json:"lastLoginAt,omitempty,string"` + + // LastRefreshAt: Timestamp when an ID token was last minted for this + // account. + LastRefreshAt string `json:"lastRefreshAt,omitempty"` + + // LocalId: Immutable. The unique ID of the account. + LocalId string `json:"localId,omitempty"` + + // MfaInfo: Information on which multi-factor authentication providers + // are enabled for this account. + MfaInfo []*GoogleCloudIdentitytoolkitV1MfaEnrollment `json:"mfaInfo,omitempty"` + + // PasswordHash: The account's hashed password. Only accessible by + // requests bearing a Google OAuth2 credential with proper permissions + // (https://cloud.google.com/identity-platform/docs/access-control). + PasswordHash string `json:"passwordHash,omitempty"` + + // PasswordUpdatedAt: The timestamp, in milliseconds from the epoch of + // 1970-01-01T00:00:00Z, when the account's password was last updated. + PasswordUpdatedAt float64 `json:"passwordUpdatedAt,omitempty"` + + // PhoneNumber: The account's phone number. + PhoneNumber string `json:"phoneNumber,omitempty"` + + // PhotoUrl: The URL of the account's profile photo. This account + // attribute is not used by Identity Platform. It is available for + // informational purposes only. + PhotoUrl string `json:"photoUrl,omitempty"` + + // ProviderUserInfo: Information about the user as provided by various + // Identity Providers. + ProviderUserInfo []*GoogleCloudIdentitytoolkitV1ProviderUserInfo `json:"providerUserInfo,omitempty"` + + // RawPassword: Input only. Plain text password used to update a + // account's password. This field is only ever used as input in a + // request. Identity Platform uses cryptographically secure hashing when + // managing passwords and will never store or transmit a user's password + // in plain text. + RawPassword string `json:"rawPassword,omitempty"` + + // Salt: The account's password salt. Only accessible by requests + // bearing a Google OAuth2 credential with proper permissions. + Salt string `json:"salt,omitempty"` + + // ScreenName: Output only. This account's screen name at Twitter or + // login name at GitHub. + ScreenName string `json:"screenName,omitempty"` + + // TenantId: ID of the tenant this account belongs to. Only set if this + // account belongs to a tenant. + TenantId string `json:"tenantId,omitempty"` + + // TimeZone: Output only. The time zone preference of the account. This + // account attribute is not used by Identity Platform. It is available + // for informational purposes only. + TimeZone string `json:"timeZone,omitempty"` + + // ValidSince: Oldest timestamp, in seconds since epoch, that an ID + // token should be considered valid. All ID tokens issued before this + // time are considered invalid. + ValidSince int64 `json:"validSince,omitempty,string"` + + // Version: The version of the account's password. Only accessible by + // requests bearing a Google OAuth2 credential with proper permissions. + Version int64 `json:"version,omitempty"` + + // ForceSendFields is a list of field names (e.g. "CreatedAt") 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. "CreatedAt") 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 *GoogleCloudIdentitytoolkitV1UserInfo) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudIdentitytoolkitV1UserInfo + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +func (s *GoogleCloudIdentitytoolkitV1UserInfo) UnmarshalJSON(data []byte) error { + type NoMethod GoogleCloudIdentitytoolkitV1UserInfo + var s1 struct { + PasswordUpdatedAt gensupport.JSONFloat64 `json:"passwordUpdatedAt"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.PasswordUpdatedAt = float64(s1.PasswordUpdatedAt) + return nil +} + +// GoogleCloudIdentitytoolkitV1VerifyIosClientRequest: Request message +// for VerifyIosClient +type GoogleCloudIdentitytoolkitV1VerifyIosClientRequest struct { + // AppToken: A device token that the iOS client gets after registering + // to APNs (Apple Push Notification service). + AppToken string `json:"appToken,omitempty"` + + // IsSandbox: Whether the app token is in the iOS sandbox. If false, the + // app token is in the production environment. + IsSandbox bool `json:"isSandbox,omitempty"` + + // ForceSendFields is a list of field names (e.g. "AppToken") 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. "AppToken") 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 *GoogleCloudIdentitytoolkitV1VerifyIosClientRequest) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudIdentitytoolkitV1VerifyIosClientRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudIdentitytoolkitV1VerifyIosClientResponse: Response message +// for VerifyIosClient. +type GoogleCloudIdentitytoolkitV1VerifyIosClientResponse struct { + // Receipt: Receipt of successful app token validation. + Receipt string `json:"receipt,omitempty"` + + // SuggestedTimeout: Suggested time that the client should wait in + // seconds for delivery of the push notification. + SuggestedTimeout int64 `json:"suggestedTimeout,omitempty,string"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "Receipt") 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. "Receipt") 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 *GoogleCloudIdentitytoolkitV1VerifyIosClientResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudIdentitytoolkitV1VerifyIosClientResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// method id "identitytoolkit.accounts.createAuthUri": + +type AccountsCreateAuthUriCall struct { + s *Service + googlecloudidentitytoolkitv1createauthurirequest *GoogleCloudIdentitytoolkitV1CreateAuthUriRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// CreateAuthUri: If an email identifier is specified, checks and +// returns if any user account is registered with the email. If there is +// a registered account, fetches all providers associated with the +// account's email. If the provider ID of an Identity Provider (IdP) is +// specified, creates an authorization URI for the IdP. The user can be +// directed to this URI to sign in with the IdP. An API key +// (https://cloud.google.com/docs/authentication/api-keys) is required +// in the request in order to identify the Google Cloud project. +func (r *AccountsService) CreateAuthUri(googlecloudidentitytoolkitv1createauthurirequest *GoogleCloudIdentitytoolkitV1CreateAuthUriRequest) *AccountsCreateAuthUriCall { + c := &AccountsCreateAuthUriCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.googlecloudidentitytoolkitv1createauthurirequest = googlecloudidentitytoolkitv1createauthurirequest + 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 *AccountsCreateAuthUriCall) Fields(s ...googleapi.Field) *AccountsCreateAuthUriCall { + 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 *AccountsCreateAuthUriCall) Context(ctx context.Context) *AccountsCreateAuthUriCall { + 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 *AccountsCreateAuthUriCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *AccountsCreateAuthUriCall) 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.googlecloudidentitytoolkitv1createauthurirequest) + 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/accounts:createAuthUri") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "identitytoolkit.accounts.createAuthUri" call. +// Exactly one of *GoogleCloudIdentitytoolkitV1CreateAuthUriResponse or +// error will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudIdentitytoolkitV1CreateAuthUriResponse.ServerResponse.Head +// er or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *AccountsCreateAuthUriCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIdentitytoolkitV1CreateAuthUriResponse, 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, &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, err + } + ret := &GoogleCloudIdentitytoolkitV1CreateAuthUriResponse{ + 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": "If an email identifier is specified, checks and returns if any user account is registered with the email. If there is a registered account, fetches all providers associated with the account's email. If the provider ID of an Identity Provider (IdP) is specified, creates an authorization URI for the IdP. The user can be directed to this URI to sign in with the IdP. An [API key](https://cloud.google.com/docs/authentication/api-keys) is required in the request in order to identify the Google Cloud project.", + // "flatPath": "v1/accounts:createAuthUri", + // "httpMethod": "POST", + // "id": "identitytoolkit.accounts.createAuthUri", + // "parameterOrder": [], + // "parameters": {}, + // "path": "v1/accounts:createAuthUri", + // "request": { + // "$ref": "GoogleCloudIdentitytoolkitV1CreateAuthUriRequest" + // }, + // "response": { + // "$ref": "GoogleCloudIdentitytoolkitV1CreateAuthUriResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "identitytoolkit.accounts.delete": + +type AccountsDeleteCall struct { + s *Service + googlecloudidentitytoolkitv1deleteaccountrequest *GoogleCloudIdentitytoolkitV1DeleteAccountRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Delete: Deletes a user's account. +func (r *AccountsService) Delete(googlecloudidentitytoolkitv1deleteaccountrequest *GoogleCloudIdentitytoolkitV1DeleteAccountRequest) *AccountsDeleteCall { + c := &AccountsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.googlecloudidentitytoolkitv1deleteaccountrequest = googlecloudidentitytoolkitv1deleteaccountrequest + 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 *AccountsDeleteCall) Fields(s ...googleapi.Field) *AccountsDeleteCall { + 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 *AccountsDeleteCall) Context(ctx context.Context) *AccountsDeleteCall { + 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 *AccountsDeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *AccountsDeleteCall) 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.googlecloudidentitytoolkitv1deleteaccountrequest) + 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/accounts:delete") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "identitytoolkit.accounts.delete" call. +// Exactly one of *GoogleCloudIdentitytoolkitV1DeleteAccountResponse or +// error will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudIdentitytoolkitV1DeleteAccountResponse.ServerResponse.Head +// er or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *AccountsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIdentitytoolkitV1DeleteAccountResponse, 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, &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, err + } + ret := &GoogleCloudIdentitytoolkitV1DeleteAccountResponse{ + 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 user's account.", + // "flatPath": "v1/accounts:delete", + // "httpMethod": "POST", + // "id": "identitytoolkit.accounts.delete", + // "parameterOrder": [], + // "parameters": {}, + // "path": "v1/accounts:delete", + // "request": { + // "$ref": "GoogleCloudIdentitytoolkitV1DeleteAccountRequest" + // }, + // "response": { + // "$ref": "GoogleCloudIdentitytoolkitV1DeleteAccountResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "identitytoolkit.accounts.issueSamlResponse": + +type AccountsIssueSamlResponseCall struct { + s *Service + googlecloudidentitytoolkitv1issuesamlresponserequest *GoogleCloudIdentitytoolkitV1IssueSamlResponseRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// IssueSamlResponse: Experimental +func (r *AccountsService) IssueSamlResponse(googlecloudidentitytoolkitv1issuesamlresponserequest *GoogleCloudIdentitytoolkitV1IssueSamlResponseRequest) *AccountsIssueSamlResponseCall { + c := &AccountsIssueSamlResponseCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.googlecloudidentitytoolkitv1issuesamlresponserequest = googlecloudidentitytoolkitv1issuesamlresponserequest + 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 *AccountsIssueSamlResponseCall) Fields(s ...googleapi.Field) *AccountsIssueSamlResponseCall { + 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 *AccountsIssueSamlResponseCall) Context(ctx context.Context) *AccountsIssueSamlResponseCall { + 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 *AccountsIssueSamlResponseCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *AccountsIssueSamlResponseCall) 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.googlecloudidentitytoolkitv1issuesamlresponserequest) + 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/accounts:issueSamlResponse") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "identitytoolkit.accounts.issueSamlResponse" call. +// Exactly one of *GoogleCloudIdentitytoolkitV1IssueSamlResponseResponse +// or error will be non-nil. Any non-2xx status code is an error. +// Response headers are in either +// *GoogleCloudIdentitytoolkitV1IssueSamlResponseResponse.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 *AccountsIssueSamlResponseCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIdentitytoolkitV1IssueSamlResponseResponse, 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, &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, err + } + ret := &GoogleCloudIdentitytoolkitV1IssueSamlResponseResponse{ + 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": "Experimental", + // "flatPath": "v1/accounts:issueSamlResponse", + // "httpMethod": "POST", + // "id": "identitytoolkit.accounts.issueSamlResponse", + // "parameterOrder": [], + // "parameters": {}, + // "path": "v1/accounts:issueSamlResponse", + // "request": { + // "$ref": "GoogleCloudIdentitytoolkitV1IssueSamlResponseRequest" + // }, + // "response": { + // "$ref": "GoogleCloudIdentitytoolkitV1IssueSamlResponseResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "identitytoolkit.accounts.lookup": + +type AccountsLookupCall struct { + s *Service + googlecloudidentitytoolkitv1getaccountinforequest *GoogleCloudIdentitytoolkitV1GetAccountInfoRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Lookup: Gets account information for all matched accounts. For an end +// user request, retrieves the account of the end user. For an admin +// request with Google OAuth 2.0 credential, retrieves one or multiple +// account(s) with matching criteria. +func (r *AccountsService) Lookup(googlecloudidentitytoolkitv1getaccountinforequest *GoogleCloudIdentitytoolkitV1GetAccountInfoRequest) *AccountsLookupCall { + c := &AccountsLookupCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.googlecloudidentitytoolkitv1getaccountinforequest = googlecloudidentitytoolkitv1getaccountinforequest + 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 *AccountsLookupCall) Fields(s ...googleapi.Field) *AccountsLookupCall { + 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 *AccountsLookupCall) Context(ctx context.Context) *AccountsLookupCall { + 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 *AccountsLookupCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *AccountsLookupCall) 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.googlecloudidentitytoolkitv1getaccountinforequest) + 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/accounts:lookup") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "identitytoolkit.accounts.lookup" call. +// Exactly one of *GoogleCloudIdentitytoolkitV1GetAccountInfoResponse or +// error will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudIdentitytoolkitV1GetAccountInfoResponse.ServerResponse.Hea +// der 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 *AccountsLookupCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIdentitytoolkitV1GetAccountInfoResponse, 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, &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, err + } + ret := &GoogleCloudIdentitytoolkitV1GetAccountInfoResponse{ + 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 account information for all matched accounts. For an end user request, retrieves the account of the end user. For an admin request with Google OAuth 2.0 credential, retrieves one or multiple account(s) with matching criteria.", + // "flatPath": "v1/accounts:lookup", + // "httpMethod": "POST", + // "id": "identitytoolkit.accounts.lookup", + // "parameterOrder": [], + // "parameters": {}, + // "path": "v1/accounts:lookup", + // "request": { + // "$ref": "GoogleCloudIdentitytoolkitV1GetAccountInfoRequest" + // }, + // "response": { + // "$ref": "GoogleCloudIdentitytoolkitV1GetAccountInfoResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "identitytoolkit.accounts.resetPassword": + +type AccountsResetPasswordCall struct { + s *Service + googlecloudidentitytoolkitv1resetpasswordrequest *GoogleCloudIdentitytoolkitV1ResetPasswordRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// ResetPassword: Resets the password of an account either using an +// out-of-band code generated by sendOobCode or by specifying the email +// and password of the account to be modified. Can also check the +// purpose of an out-of-band code without consuming it. +func (r *AccountsService) ResetPassword(googlecloudidentitytoolkitv1resetpasswordrequest *GoogleCloudIdentitytoolkitV1ResetPasswordRequest) *AccountsResetPasswordCall { + c := &AccountsResetPasswordCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.googlecloudidentitytoolkitv1resetpasswordrequest = googlecloudidentitytoolkitv1resetpasswordrequest + 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 *AccountsResetPasswordCall) Fields(s ...googleapi.Field) *AccountsResetPasswordCall { + 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 *AccountsResetPasswordCall) Context(ctx context.Context) *AccountsResetPasswordCall { + 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 *AccountsResetPasswordCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *AccountsResetPasswordCall) 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.googlecloudidentitytoolkitv1resetpasswordrequest) + 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/accounts:resetPassword") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "identitytoolkit.accounts.resetPassword" call. +// Exactly one of *GoogleCloudIdentitytoolkitV1ResetPasswordResponse or +// error will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudIdentitytoolkitV1ResetPasswordResponse.ServerResponse.Head +// er or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *AccountsResetPasswordCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIdentitytoolkitV1ResetPasswordResponse, 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, &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, err + } + ret := &GoogleCloudIdentitytoolkitV1ResetPasswordResponse{ + 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": "Resets the password of an account either using an out-of-band code generated by sendOobCode or by specifying the email and password of the account to be modified. Can also check the purpose of an out-of-band code without consuming it.", + // "flatPath": "v1/accounts:resetPassword", + // "httpMethod": "POST", + // "id": "identitytoolkit.accounts.resetPassword", + // "parameterOrder": [], + // "parameters": {}, + // "path": "v1/accounts:resetPassword", + // "request": { + // "$ref": "GoogleCloudIdentitytoolkitV1ResetPasswordRequest" + // }, + // "response": { + // "$ref": "GoogleCloudIdentitytoolkitV1ResetPasswordResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "identitytoolkit.accounts.sendOobCode": + +type AccountsSendOobCodeCall struct { + s *Service + googlecloudidentitytoolkitv1getoobcoderequest *GoogleCloudIdentitytoolkitV1GetOobCodeRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// SendOobCode: Sends an out-of-band confirmation code for an account. +// Requests from a authenticated request can optionally return a link +// including the OOB code instead of sending it. +func (r *AccountsService) SendOobCode(googlecloudidentitytoolkitv1getoobcoderequest *GoogleCloudIdentitytoolkitV1GetOobCodeRequest) *AccountsSendOobCodeCall { + c := &AccountsSendOobCodeCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.googlecloudidentitytoolkitv1getoobcoderequest = googlecloudidentitytoolkitv1getoobcoderequest + 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 *AccountsSendOobCodeCall) Fields(s ...googleapi.Field) *AccountsSendOobCodeCall { + 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 *AccountsSendOobCodeCall) Context(ctx context.Context) *AccountsSendOobCodeCall { + 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 *AccountsSendOobCodeCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *AccountsSendOobCodeCall) 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.googlecloudidentitytoolkitv1getoobcoderequest) + 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/accounts:sendOobCode") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "identitytoolkit.accounts.sendOobCode" call. +// Exactly one of *GoogleCloudIdentitytoolkitV1GetOobCodeResponse or +// error will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudIdentitytoolkitV1GetOobCodeResponse.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 *AccountsSendOobCodeCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIdentitytoolkitV1GetOobCodeResponse, 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, &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, err + } + ret := &GoogleCloudIdentitytoolkitV1GetOobCodeResponse{ + 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": "Sends an out-of-band confirmation code for an account. Requests from a authenticated request can optionally return a link including the OOB code instead of sending it.", + // "flatPath": "v1/accounts:sendOobCode", + // "httpMethod": "POST", + // "id": "identitytoolkit.accounts.sendOobCode", + // "parameterOrder": [], + // "parameters": {}, + // "path": "v1/accounts:sendOobCode", + // "request": { + // "$ref": "GoogleCloudIdentitytoolkitV1GetOobCodeRequest" + // }, + // "response": { + // "$ref": "GoogleCloudIdentitytoolkitV1GetOobCodeResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "identitytoolkit.accounts.sendVerificationCode": + +type AccountsSendVerificationCodeCall struct { + s *Service + googlecloudidentitytoolkitv1sendverificationcoderequest *GoogleCloudIdentitytoolkitV1SendVerificationCodeRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// SendVerificationCode: Sends a SMS verification code for phone number +// sign-in. An API key +// (https://cloud.google.com/docs/authentication/api-keys) is required +// in the request in order to identify the Google Cloud project. +func (r *AccountsService) SendVerificationCode(googlecloudidentitytoolkitv1sendverificationcoderequest *GoogleCloudIdentitytoolkitV1SendVerificationCodeRequest) *AccountsSendVerificationCodeCall { + c := &AccountsSendVerificationCodeCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.googlecloudidentitytoolkitv1sendverificationcoderequest = googlecloudidentitytoolkitv1sendverificationcoderequest + 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 *AccountsSendVerificationCodeCall) Fields(s ...googleapi.Field) *AccountsSendVerificationCodeCall { + 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 *AccountsSendVerificationCodeCall) Context(ctx context.Context) *AccountsSendVerificationCodeCall { + 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 *AccountsSendVerificationCodeCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *AccountsSendVerificationCodeCall) 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.googlecloudidentitytoolkitv1sendverificationcoderequest) + 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/accounts:sendVerificationCode") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "identitytoolkit.accounts.sendVerificationCode" call. +// Exactly one of +// *GoogleCloudIdentitytoolkitV1SendVerificationCodeResponse or error +// will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudIdentitytoolkitV1SendVerificationCodeResponse.ServerRespon +// se.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 *AccountsSendVerificationCodeCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIdentitytoolkitV1SendVerificationCodeResponse, 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, &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, err + } + ret := &GoogleCloudIdentitytoolkitV1SendVerificationCodeResponse{ + 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": "Sends a SMS verification code for phone number sign-in. An [API key](https://cloud.google.com/docs/authentication/api-keys) is required in the request in order to identify the Google Cloud project.", + // "flatPath": "v1/accounts:sendVerificationCode", + // "httpMethod": "POST", + // "id": "identitytoolkit.accounts.sendVerificationCode", + // "parameterOrder": [], + // "parameters": {}, + // "path": "v1/accounts:sendVerificationCode", + // "request": { + // "$ref": "GoogleCloudIdentitytoolkitV1SendVerificationCodeRequest" + // }, + // "response": { + // "$ref": "GoogleCloudIdentitytoolkitV1SendVerificationCodeResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "identitytoolkit.accounts.signInWithCustomToken": + +type AccountsSignInWithCustomTokenCall struct { + s *Service + googlecloudidentitytoolkitv1signinwithcustomtokenrequest *GoogleCloudIdentitytoolkitV1SignInWithCustomTokenRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// SignInWithCustomToken: Signs in or signs up a user by exchanging a +// custom Auth token. Upon a successful sign-in or sign-up, a new +// Identity Platform ID token and refresh token are issued for the user. +// An API key (https://cloud.google.com/docs/authentication/api-keys) is +// required in the request in order to identify the Google Cloud +// project. +func (r *AccountsService) SignInWithCustomToken(googlecloudidentitytoolkitv1signinwithcustomtokenrequest *GoogleCloudIdentitytoolkitV1SignInWithCustomTokenRequest) *AccountsSignInWithCustomTokenCall { + c := &AccountsSignInWithCustomTokenCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.googlecloudidentitytoolkitv1signinwithcustomtokenrequest = googlecloudidentitytoolkitv1signinwithcustomtokenrequest + 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 *AccountsSignInWithCustomTokenCall) Fields(s ...googleapi.Field) *AccountsSignInWithCustomTokenCall { + 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 *AccountsSignInWithCustomTokenCall) Context(ctx context.Context) *AccountsSignInWithCustomTokenCall { + 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 *AccountsSignInWithCustomTokenCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *AccountsSignInWithCustomTokenCall) 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.googlecloudidentitytoolkitv1signinwithcustomtokenrequest) + 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/accounts:signInWithCustomToken") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "identitytoolkit.accounts.signInWithCustomToken" call. +// Exactly one of +// *GoogleCloudIdentitytoolkitV1SignInWithCustomTokenResponse or error +// will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudIdentitytoolkitV1SignInWithCustomTokenResponse.ServerRespo +// nse.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 *AccountsSignInWithCustomTokenCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIdentitytoolkitV1SignInWithCustomTokenResponse, 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, &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, err + } + ret := &GoogleCloudIdentitytoolkitV1SignInWithCustomTokenResponse{ + 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": "Signs in or signs up a user by exchanging a custom Auth token. Upon a successful sign-in or sign-up, a new Identity Platform ID token and refresh token are issued for the user. An [API key](https://cloud.google.com/docs/authentication/api-keys) is required in the request in order to identify the Google Cloud project.", + // "flatPath": "v1/accounts:signInWithCustomToken", + // "httpMethod": "POST", + // "id": "identitytoolkit.accounts.signInWithCustomToken", + // "parameterOrder": [], + // "parameters": {}, + // "path": "v1/accounts:signInWithCustomToken", + // "request": { + // "$ref": "GoogleCloudIdentitytoolkitV1SignInWithCustomTokenRequest" + // }, + // "response": { + // "$ref": "GoogleCloudIdentitytoolkitV1SignInWithCustomTokenResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "identitytoolkit.accounts.signInWithEmailLink": + +type AccountsSignInWithEmailLinkCall struct { + s *Service + googlecloudidentitytoolkitv1signinwithemaillinkrequest *GoogleCloudIdentitytoolkitV1SignInWithEmailLinkRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// SignInWithEmailLink: Signs in or signs up a user with a out-of-band +// code from an email link. If a user does not exist with the given +// email address, a user record will be created. If the sign-in +// succeeds, an Identity Platform ID and refresh token are issued for +// the authenticated user. An API key +// (https://cloud.google.com/docs/authentication/api-keys) is required +// in the request in order to identify the Google Cloud project. +func (r *AccountsService) SignInWithEmailLink(googlecloudidentitytoolkitv1signinwithemaillinkrequest *GoogleCloudIdentitytoolkitV1SignInWithEmailLinkRequest) *AccountsSignInWithEmailLinkCall { + c := &AccountsSignInWithEmailLinkCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.googlecloudidentitytoolkitv1signinwithemaillinkrequest = googlecloudidentitytoolkitv1signinwithemaillinkrequest + 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 *AccountsSignInWithEmailLinkCall) Fields(s ...googleapi.Field) *AccountsSignInWithEmailLinkCall { + 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 *AccountsSignInWithEmailLinkCall) Context(ctx context.Context) *AccountsSignInWithEmailLinkCall { + 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 *AccountsSignInWithEmailLinkCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *AccountsSignInWithEmailLinkCall) 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.googlecloudidentitytoolkitv1signinwithemaillinkrequest) + 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/accounts:signInWithEmailLink") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "identitytoolkit.accounts.signInWithEmailLink" call. +// Exactly one of +// *GoogleCloudIdentitytoolkitV1SignInWithEmailLinkResponse or error +// will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudIdentitytoolkitV1SignInWithEmailLinkResponse.ServerRespons +// e.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 *AccountsSignInWithEmailLinkCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIdentitytoolkitV1SignInWithEmailLinkResponse, 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, &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, err + } + ret := &GoogleCloudIdentitytoolkitV1SignInWithEmailLinkResponse{ + 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": "Signs in or signs up a user with a out-of-band code from an email link. If a user does not exist with the given email address, a user record will be created. If the sign-in succeeds, an Identity Platform ID and refresh token are issued for the authenticated user. An [API key](https://cloud.google.com/docs/authentication/api-keys) is required in the request in order to identify the Google Cloud project.", + // "flatPath": "v1/accounts:signInWithEmailLink", + // "httpMethod": "POST", + // "id": "identitytoolkit.accounts.signInWithEmailLink", + // "parameterOrder": [], + // "parameters": {}, + // "path": "v1/accounts:signInWithEmailLink", + // "request": { + // "$ref": "GoogleCloudIdentitytoolkitV1SignInWithEmailLinkRequest" + // }, + // "response": { + // "$ref": "GoogleCloudIdentitytoolkitV1SignInWithEmailLinkResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "identitytoolkit.accounts.signInWithGameCenter": + +type AccountsSignInWithGameCenterCall struct { + s *Service + googlecloudidentitytoolkitv1signinwithgamecenterrequest *GoogleCloudIdentitytoolkitV1SignInWithGameCenterRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// SignInWithGameCenter: Signs in or signs up a user with iOS Game +// Center credentials. If the sign-in succeeds, a new Identity Platform +// ID token and refresh token are issued for the authenticated user. The +// bundle ID is required in the request header as +// `x-ios-bundle-identifier`. An API key +// (https://cloud.google.com/docs/authentication/api-keys) is required +// in the request in order to identify the Google Cloud project. +func (r *AccountsService) SignInWithGameCenter(googlecloudidentitytoolkitv1signinwithgamecenterrequest *GoogleCloudIdentitytoolkitV1SignInWithGameCenterRequest) *AccountsSignInWithGameCenterCall { + c := &AccountsSignInWithGameCenterCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.googlecloudidentitytoolkitv1signinwithgamecenterrequest = googlecloudidentitytoolkitv1signinwithgamecenterrequest + 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 *AccountsSignInWithGameCenterCall) Fields(s ...googleapi.Field) *AccountsSignInWithGameCenterCall { + 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 *AccountsSignInWithGameCenterCall) Context(ctx context.Context) *AccountsSignInWithGameCenterCall { + 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 *AccountsSignInWithGameCenterCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *AccountsSignInWithGameCenterCall) 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.googlecloudidentitytoolkitv1signinwithgamecenterrequest) + 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/accounts:signInWithGameCenter") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "identitytoolkit.accounts.signInWithGameCenter" call. +// Exactly one of +// *GoogleCloudIdentitytoolkitV1SignInWithGameCenterResponse or error +// will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudIdentitytoolkitV1SignInWithGameCenterResponse.ServerRespon +// se.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 *AccountsSignInWithGameCenterCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIdentitytoolkitV1SignInWithGameCenterResponse, 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, &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, err + } + ret := &GoogleCloudIdentitytoolkitV1SignInWithGameCenterResponse{ + 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": "Signs in or signs up a user with iOS Game Center credentials. If the sign-in succeeds, a new Identity Platform ID token and refresh token are issued for the authenticated user. The bundle ID is required in the request header as `x-ios-bundle-identifier`. An [API key](https://cloud.google.com/docs/authentication/api-keys) is required in the request in order to identify the Google Cloud project.", + // "flatPath": "v1/accounts:signInWithGameCenter", + // "httpMethod": "POST", + // "id": "identitytoolkit.accounts.signInWithGameCenter", + // "parameterOrder": [], + // "parameters": {}, + // "path": "v1/accounts:signInWithGameCenter", + // "request": { + // "$ref": "GoogleCloudIdentitytoolkitV1SignInWithGameCenterRequest" + // }, + // "response": { + // "$ref": "GoogleCloudIdentitytoolkitV1SignInWithGameCenterResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "identitytoolkit.accounts.signInWithIdp": + +type AccountsSignInWithIdpCall struct { + s *Service + googlecloudidentitytoolkitv1signinwithidprequest *GoogleCloudIdentitytoolkitV1SignInWithIdpRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// SignInWithIdp: Signs in or signs up a user using credentials from an +// Identity Provider (IdP). This is done by manually providing an IdP +// credential, or by providing the authorization response obtained via +// the authorization request from CreateAuthUri. If the sign-in +// succeeds, a new Identity Platform ID token and refresh token are +// issued for the authenticated user. A new Identity Platform user +// account will be created if the user has not previously signed in to +// the IdP with the same account. In addition, when the "One account per +// email address" setting is enabled, there should not be an existing +// Identity Platform user account with the same email address for a new +// user account to be created. An API key +// (https://cloud.google.com/docs/authentication/api-keys) is required +// in the request in order to identify the Google Cloud project. +func (r *AccountsService) SignInWithIdp(googlecloudidentitytoolkitv1signinwithidprequest *GoogleCloudIdentitytoolkitV1SignInWithIdpRequest) *AccountsSignInWithIdpCall { + c := &AccountsSignInWithIdpCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.googlecloudidentitytoolkitv1signinwithidprequest = googlecloudidentitytoolkitv1signinwithidprequest + 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 *AccountsSignInWithIdpCall) Fields(s ...googleapi.Field) *AccountsSignInWithIdpCall { + 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 *AccountsSignInWithIdpCall) Context(ctx context.Context) *AccountsSignInWithIdpCall { + 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 *AccountsSignInWithIdpCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *AccountsSignInWithIdpCall) 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.googlecloudidentitytoolkitv1signinwithidprequest) + 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/accounts:signInWithIdp") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "identitytoolkit.accounts.signInWithIdp" call. +// Exactly one of *GoogleCloudIdentitytoolkitV1SignInWithIdpResponse or +// error will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudIdentitytoolkitV1SignInWithIdpResponse.ServerResponse.Head +// er or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *AccountsSignInWithIdpCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIdentitytoolkitV1SignInWithIdpResponse, 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, &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, err + } + ret := &GoogleCloudIdentitytoolkitV1SignInWithIdpResponse{ + 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": "Signs in or signs up a user using credentials from an Identity Provider (IdP). This is done by manually providing an IdP credential, or by providing the authorization response obtained via the authorization request from CreateAuthUri. If the sign-in succeeds, a new Identity Platform ID token and refresh token are issued for the authenticated user. A new Identity Platform user account will be created if the user has not previously signed in to the IdP with the same account. In addition, when the \"One account per email address\" setting is enabled, there should not be an existing Identity Platform user account with the same email address for a new user account to be created. An [API key](https://cloud.google.com/docs/authentication/api-keys) is required in the request in order to identify the Google Cloud project.", + // "flatPath": "v1/accounts:signInWithIdp", + // "httpMethod": "POST", + // "id": "identitytoolkit.accounts.signInWithIdp", + // "parameterOrder": [], + // "parameters": {}, + // "path": "v1/accounts:signInWithIdp", + // "request": { + // "$ref": "GoogleCloudIdentitytoolkitV1SignInWithIdpRequest" + // }, + // "response": { + // "$ref": "GoogleCloudIdentitytoolkitV1SignInWithIdpResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "identitytoolkit.accounts.signInWithPassword": + +type AccountsSignInWithPasswordCall struct { + s *Service + googlecloudidentitytoolkitv1signinwithpasswordrequest *GoogleCloudIdentitytoolkitV1SignInWithPasswordRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// SignInWithPassword: Signs in a user with email and password. If the +// sign-in succeeds, a new Identity Platform ID token and refresh token +// are issued for the authenticated user. An API key +// (https://cloud.google.com/docs/authentication/api-keys) is required +// in the request in order to identify the Google Cloud project. +func (r *AccountsService) SignInWithPassword(googlecloudidentitytoolkitv1signinwithpasswordrequest *GoogleCloudIdentitytoolkitV1SignInWithPasswordRequest) *AccountsSignInWithPasswordCall { + c := &AccountsSignInWithPasswordCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.googlecloudidentitytoolkitv1signinwithpasswordrequest = googlecloudidentitytoolkitv1signinwithpasswordrequest + 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 *AccountsSignInWithPasswordCall) Fields(s ...googleapi.Field) *AccountsSignInWithPasswordCall { + 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 *AccountsSignInWithPasswordCall) Context(ctx context.Context) *AccountsSignInWithPasswordCall { + 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 *AccountsSignInWithPasswordCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *AccountsSignInWithPasswordCall) 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.googlecloudidentitytoolkitv1signinwithpasswordrequest) + 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/accounts:signInWithPassword") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "identitytoolkit.accounts.signInWithPassword" call. +// Exactly one of +// *GoogleCloudIdentitytoolkitV1SignInWithPasswordResponse or error will +// be non-nil. Any non-2xx status code is an error. Response headers are +// in either +// *GoogleCloudIdentitytoolkitV1SignInWithPasswordResponse.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 *AccountsSignInWithPasswordCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIdentitytoolkitV1SignInWithPasswordResponse, 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, &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, err + } + ret := &GoogleCloudIdentitytoolkitV1SignInWithPasswordResponse{ + 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": "Signs in a user with email and password. If the sign-in succeeds, a new Identity Platform ID token and refresh token are issued for the authenticated user. An [API key](https://cloud.google.com/docs/authentication/api-keys) is required in the request in order to identify the Google Cloud project.", + // "flatPath": "v1/accounts:signInWithPassword", + // "httpMethod": "POST", + // "id": "identitytoolkit.accounts.signInWithPassword", + // "parameterOrder": [], + // "parameters": {}, + // "path": "v1/accounts:signInWithPassword", + // "request": { + // "$ref": "GoogleCloudIdentitytoolkitV1SignInWithPasswordRequest" + // }, + // "response": { + // "$ref": "GoogleCloudIdentitytoolkitV1SignInWithPasswordResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "identitytoolkit.accounts.signInWithPhoneNumber": + +type AccountsSignInWithPhoneNumberCall struct { + s *Service + googlecloudidentitytoolkitv1signinwithphonenumberrequest *GoogleCloudIdentitytoolkitV1SignInWithPhoneNumberRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// SignInWithPhoneNumber: Completes a phone number authentication +// attempt. If a user already exists with the given phone number, an ID +// token is minted for that user. Otherwise, a new user is created and +// associated with the phone number. This method may also be used to +// link a phone number to an existing user. An API key +// (https://cloud.google.com/docs/authentication/api-keys) is required +// in the request in order to identify the Google Cloud project. +func (r *AccountsService) SignInWithPhoneNumber(googlecloudidentitytoolkitv1signinwithphonenumberrequest *GoogleCloudIdentitytoolkitV1SignInWithPhoneNumberRequest) *AccountsSignInWithPhoneNumberCall { + c := &AccountsSignInWithPhoneNumberCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.googlecloudidentitytoolkitv1signinwithphonenumberrequest = googlecloudidentitytoolkitv1signinwithphonenumberrequest + 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 *AccountsSignInWithPhoneNumberCall) Fields(s ...googleapi.Field) *AccountsSignInWithPhoneNumberCall { + 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 *AccountsSignInWithPhoneNumberCall) Context(ctx context.Context) *AccountsSignInWithPhoneNumberCall { + 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 *AccountsSignInWithPhoneNumberCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *AccountsSignInWithPhoneNumberCall) 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.googlecloudidentitytoolkitv1signinwithphonenumberrequest) + 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/accounts:signInWithPhoneNumber") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "identitytoolkit.accounts.signInWithPhoneNumber" call. +// Exactly one of +// *GoogleCloudIdentitytoolkitV1SignInWithPhoneNumberResponse or error +// will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudIdentitytoolkitV1SignInWithPhoneNumberResponse.ServerRespo +// nse.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 *AccountsSignInWithPhoneNumberCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIdentitytoolkitV1SignInWithPhoneNumberResponse, 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, &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, err + } + ret := &GoogleCloudIdentitytoolkitV1SignInWithPhoneNumberResponse{ + 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": "Completes a phone number authentication attempt. If a user already exists with the given phone number, an ID token is minted for that user. Otherwise, a new user is created and associated with the phone number. This method may also be used to link a phone number to an existing user. An [API key](https://cloud.google.com/docs/authentication/api-keys) is required in the request in order to identify the Google Cloud project.", + // "flatPath": "v1/accounts:signInWithPhoneNumber", + // "httpMethod": "POST", + // "id": "identitytoolkit.accounts.signInWithPhoneNumber", + // "parameterOrder": [], + // "parameters": {}, + // "path": "v1/accounts:signInWithPhoneNumber", + // "request": { + // "$ref": "GoogleCloudIdentitytoolkitV1SignInWithPhoneNumberRequest" + // }, + // "response": { + // "$ref": "GoogleCloudIdentitytoolkitV1SignInWithPhoneNumberResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "identitytoolkit.accounts.signUp": + +type AccountsSignUpCall struct { + s *Service + googlecloudidentitytoolkitv1signuprequest *GoogleCloudIdentitytoolkitV1SignUpRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// SignUp: Signs up a new email and password user or anonymous user, or +// upgrades an anonymous user to email and password. For an admin +// request with a Google OAuth 2.0 credential with the proper +// permissions +// (https://cloud.google.com/identity-platform/docs/access-control), +// creates a new anonymous, email and password, or phone number user. An +// API key (https://cloud.google.com/docs/authentication/api-keys) is +// required in the request in order to identify the Google Cloud +// project. +func (r *AccountsService) SignUp(googlecloudidentitytoolkitv1signuprequest *GoogleCloudIdentitytoolkitV1SignUpRequest) *AccountsSignUpCall { + c := &AccountsSignUpCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.googlecloudidentitytoolkitv1signuprequest = googlecloudidentitytoolkitv1signuprequest + 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 *AccountsSignUpCall) Fields(s ...googleapi.Field) *AccountsSignUpCall { + 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 *AccountsSignUpCall) Context(ctx context.Context) *AccountsSignUpCall { + 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 *AccountsSignUpCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *AccountsSignUpCall) 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.googlecloudidentitytoolkitv1signuprequest) + 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/accounts:signUp") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "identitytoolkit.accounts.signUp" call. +// Exactly one of *GoogleCloudIdentitytoolkitV1SignUpResponse or error +// will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudIdentitytoolkitV1SignUpResponse.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 *AccountsSignUpCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIdentitytoolkitV1SignUpResponse, 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, &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, err + } + ret := &GoogleCloudIdentitytoolkitV1SignUpResponse{ + 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": "Signs up a new email and password user or anonymous user, or upgrades an anonymous user to email and password. For an admin request with a Google OAuth 2.0 credential with the proper [permissions](https://cloud.google.com/identity-platform/docs/access-control), creates a new anonymous, email and password, or phone number user. An [API key](https://cloud.google.com/docs/authentication/api-keys) is required in the request in order to identify the Google Cloud project.", + // "flatPath": "v1/accounts:signUp", + // "httpMethod": "POST", + // "id": "identitytoolkit.accounts.signUp", + // "parameterOrder": [], + // "parameters": {}, + // "path": "v1/accounts:signUp", + // "request": { + // "$ref": "GoogleCloudIdentitytoolkitV1SignUpRequest" + // }, + // "response": { + // "$ref": "GoogleCloudIdentitytoolkitV1SignUpResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "identitytoolkit.accounts.update": + +type AccountsUpdateCall struct { + s *Service + googlecloudidentitytoolkitv1setaccountinforequest *GoogleCloudIdentitytoolkitV1SetAccountInfoRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Update: Updates account-related information for the specified user by +// setting specific fields or applying action codes. Requests from +// administrators and end users are supported. +func (r *AccountsService) Update(googlecloudidentitytoolkitv1setaccountinforequest *GoogleCloudIdentitytoolkitV1SetAccountInfoRequest) *AccountsUpdateCall { + c := &AccountsUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.googlecloudidentitytoolkitv1setaccountinforequest = googlecloudidentitytoolkitv1setaccountinforequest + 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 *AccountsUpdateCall) Fields(s ...googleapi.Field) *AccountsUpdateCall { + 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 *AccountsUpdateCall) Context(ctx context.Context) *AccountsUpdateCall { + 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 *AccountsUpdateCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *AccountsUpdateCall) 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.googlecloudidentitytoolkitv1setaccountinforequest) + 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/accounts:update") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "identitytoolkit.accounts.update" call. +// Exactly one of *GoogleCloudIdentitytoolkitV1SetAccountInfoResponse or +// error will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudIdentitytoolkitV1SetAccountInfoResponse.ServerResponse.Hea +// der 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 *AccountsUpdateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIdentitytoolkitV1SetAccountInfoResponse, 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, &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, err + } + ret := &GoogleCloudIdentitytoolkitV1SetAccountInfoResponse{ + 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 account-related information for the specified user by setting specific fields or applying action codes. Requests from administrators and end users are supported.", + // "flatPath": "v1/accounts:update", + // "httpMethod": "POST", + // "id": "identitytoolkit.accounts.update", + // "parameterOrder": [], + // "parameters": {}, + // "path": "v1/accounts:update", + // "request": { + // "$ref": "GoogleCloudIdentitytoolkitV1SetAccountInfoRequest" + // }, + // "response": { + // "$ref": "GoogleCloudIdentitytoolkitV1SetAccountInfoResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "identitytoolkit.accounts.verifyIosClient": + +type AccountsVerifyIosClientCall struct { + s *Service + googlecloudidentitytoolkitv1verifyiosclientrequest *GoogleCloudIdentitytoolkitV1VerifyIosClientRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// VerifyIosClient: Verifies an iOS client is a real iOS device. If the +// request is valid, a reciept will be sent in the response and a secret +// will be sent via Apple Push Notification Service. The client should +// send both of them back to certain Identity Platform APIs in a later +// call (for example, /accounts:sendVerificationCode), in order to +// verify the client. The bundle ID is required in the request header as +// `x-ios-bundle-identifier`. An API key +// (https://cloud.google.com/docs/authentication/api-keys) is required +// in the request in order to identify the Google Cloud project. +func (r *AccountsService) VerifyIosClient(googlecloudidentitytoolkitv1verifyiosclientrequest *GoogleCloudIdentitytoolkitV1VerifyIosClientRequest) *AccountsVerifyIosClientCall { + c := &AccountsVerifyIosClientCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.googlecloudidentitytoolkitv1verifyiosclientrequest = googlecloudidentitytoolkitv1verifyiosclientrequest + 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 *AccountsVerifyIosClientCall) Fields(s ...googleapi.Field) *AccountsVerifyIosClientCall { + 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 *AccountsVerifyIosClientCall) Context(ctx context.Context) *AccountsVerifyIosClientCall { + 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 *AccountsVerifyIosClientCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *AccountsVerifyIosClientCall) 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.googlecloudidentitytoolkitv1verifyiosclientrequest) + 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/accounts:verifyIosClient") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "identitytoolkit.accounts.verifyIosClient" call. +// Exactly one of *GoogleCloudIdentitytoolkitV1VerifyIosClientResponse +// or error will be non-nil. Any non-2xx status code is an error. +// Response headers are in either +// *GoogleCloudIdentitytoolkitV1VerifyIosClientResponse.ServerResponse.He +// ader 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 *AccountsVerifyIosClientCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIdentitytoolkitV1VerifyIosClientResponse, 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, &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, err + } + ret := &GoogleCloudIdentitytoolkitV1VerifyIosClientResponse{ + 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": "Verifies an iOS client is a real iOS device. If the request is valid, a reciept will be sent in the response and a secret will be sent via Apple Push Notification Service. The client should send both of them back to certain Identity Platform APIs in a later call (for example, /accounts:sendVerificationCode), in order to verify the client. The bundle ID is required in the request header as `x-ios-bundle-identifier`. An [API key](https://cloud.google.com/docs/authentication/api-keys) is required in the request in order to identify the Google Cloud project.", + // "flatPath": "v1/accounts:verifyIosClient", + // "httpMethod": "POST", + // "id": "identitytoolkit.accounts.verifyIosClient", + // "parameterOrder": [], + // "parameters": {}, + // "path": "v1/accounts:verifyIosClient", + // "request": { + // "$ref": "GoogleCloudIdentitytoolkitV1VerifyIosClientRequest" + // }, + // "response": { + // "$ref": "GoogleCloudIdentitytoolkitV1VerifyIosClientResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "identitytoolkit.projects.accounts": + +type ProjectsAccountsCall struct { + s *Service + targetProjectId string + googlecloudidentitytoolkitv1signuprequest *GoogleCloudIdentitytoolkitV1SignUpRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Accounts: Signs up a new email and password user or anonymous user, +// or upgrades an anonymous user to email and password. For an admin +// request with a Google OAuth 2.0 credential with the proper +// permissions +// (https://cloud.google.com/identity-platform/docs/access-control), +// creates a new anonymous, email and password, or phone number user. An +// API key (https://cloud.google.com/docs/authentication/api-keys) is +// required in the request in order to identify the Google Cloud +// project. +// +// - targetProjectId: The project ID of the project which the user +// should belong to. Specifying this field requires a Google OAuth 2.0 +// credential with the proper permissions +// (https://cloud.google.com/identity-platform/docs/access-control). +// If this is not set, the target project is inferred from the scope +// associated to the Bearer access token. +func (r *ProjectsService) Accounts(targetProjectId string, googlecloudidentitytoolkitv1signuprequest *GoogleCloudIdentitytoolkitV1SignUpRequest) *ProjectsAccountsCall { + c := &ProjectsAccountsCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.targetProjectId = targetProjectId + c.googlecloudidentitytoolkitv1signuprequest = googlecloudidentitytoolkitv1signuprequest + 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 *ProjectsAccountsCall) Fields(s ...googleapi.Field) *ProjectsAccountsCall { + 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 *ProjectsAccountsCall) Context(ctx context.Context) *ProjectsAccountsCall { + 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 *ProjectsAccountsCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsAccountsCall) 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.googlecloudidentitytoolkitv1signuprequest) + 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/projects/{+targetProjectId}/accounts") + 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{ + "targetProjectId": c.targetProjectId, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "identitytoolkit.projects.accounts" call. +// Exactly one of *GoogleCloudIdentitytoolkitV1SignUpResponse or error +// will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudIdentitytoolkitV1SignUpResponse.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 *ProjectsAccountsCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIdentitytoolkitV1SignUpResponse, 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, &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, err + } + ret := &GoogleCloudIdentitytoolkitV1SignUpResponse{ + 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": "Signs up a new email and password user or anonymous user, or upgrades an anonymous user to email and password. For an admin request with a Google OAuth 2.0 credential with the proper [permissions](https://cloud.google.com/identity-platform/docs/access-control), creates a new anonymous, email and password, or phone number user. An [API key](https://cloud.google.com/docs/authentication/api-keys) is required in the request in order to identify the Google Cloud project.", + // "flatPath": "v1/projects/{projectsId}/accounts", + // "httpMethod": "POST", + // "id": "identitytoolkit.projects.accounts", + // "parameterOrder": [ + // "targetProjectId" + // ], + // "parameters": { + // "targetProjectId": { + // "description": "The project ID of the project which the user should belong to. Specifying this field requires a Google OAuth 2.0 credential with the proper [permissions](https://cloud.google.com/identity-platform/docs/access-control). If this is not set, the target project is inferred from the scope associated to the Bearer access token.", + // "location": "path", + // "pattern": "^[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/projects/{+targetProjectId}/accounts", + // "request": { + // "$ref": "GoogleCloudIdentitytoolkitV1SignUpRequest" + // }, + // "response": { + // "$ref": "GoogleCloudIdentitytoolkitV1SignUpResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "identitytoolkit.projects.createSessionCookie": + +type ProjectsCreateSessionCookieCall struct { + s *Service + targetProjectId string + googlecloudidentitytoolkitv1createsessioncookierequest *GoogleCloudIdentitytoolkitV1CreateSessionCookieRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// CreateSessionCookie: Creates a session cookie for the given Identity +// Platform ID token. The session cookie is used by the client to +// preserve the user's login state. +// +// - targetProjectId: The ID of the project that the account belongs to. +func (r *ProjectsService) CreateSessionCookie(targetProjectId string, googlecloudidentitytoolkitv1createsessioncookierequest *GoogleCloudIdentitytoolkitV1CreateSessionCookieRequest) *ProjectsCreateSessionCookieCall { + c := &ProjectsCreateSessionCookieCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.targetProjectId = targetProjectId + c.googlecloudidentitytoolkitv1createsessioncookierequest = googlecloudidentitytoolkitv1createsessioncookierequest + 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 *ProjectsCreateSessionCookieCall) Fields(s ...googleapi.Field) *ProjectsCreateSessionCookieCall { + 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 *ProjectsCreateSessionCookieCall) Context(ctx context.Context) *ProjectsCreateSessionCookieCall { + 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 *ProjectsCreateSessionCookieCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsCreateSessionCookieCall) 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.googlecloudidentitytoolkitv1createsessioncookierequest) + 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/projects/{+targetProjectId}:createSessionCookie") + 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{ + "targetProjectId": c.targetProjectId, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "identitytoolkit.projects.createSessionCookie" call. +// Exactly one of +// *GoogleCloudIdentitytoolkitV1CreateSessionCookieResponse or error +// will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudIdentitytoolkitV1CreateSessionCookieResponse.ServerRespons +// e.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 *ProjectsCreateSessionCookieCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIdentitytoolkitV1CreateSessionCookieResponse, 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, &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, err + } + ret := &GoogleCloudIdentitytoolkitV1CreateSessionCookieResponse{ + 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 session cookie for the given Identity Platform ID token. The session cookie is used by the client to preserve the user's login state.", + // "flatPath": "v1/projects/{projectsId}:createSessionCookie", + // "httpMethod": "POST", + // "id": "identitytoolkit.projects.createSessionCookie", + // "parameterOrder": [ + // "targetProjectId" + // ], + // "parameters": { + // "targetProjectId": { + // "description": "The ID of the project that the account belongs to.", + // "location": "path", + // "pattern": "^[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/projects/{+targetProjectId}:createSessionCookie", + // "request": { + // "$ref": "GoogleCloudIdentitytoolkitV1CreateSessionCookieRequest" + // }, + // "response": { + // "$ref": "GoogleCloudIdentitytoolkitV1CreateSessionCookieResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "identitytoolkit.projects.queryAccounts": + +type ProjectsQueryAccountsCall struct { + s *Service + targetProjectId string + googlecloudidentitytoolkitv1queryuserinforequest *GoogleCloudIdentitytoolkitV1QueryUserInfoRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// QueryAccounts: Looks up user accounts within a project or a tenant +// based on conditions in the request. +// +// - targetProjectId: The ID of the project to which the result is +// scoped. +func (r *ProjectsService) QueryAccounts(targetProjectId string, googlecloudidentitytoolkitv1queryuserinforequest *GoogleCloudIdentitytoolkitV1QueryUserInfoRequest) *ProjectsQueryAccountsCall { + c := &ProjectsQueryAccountsCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.targetProjectId = targetProjectId + c.googlecloudidentitytoolkitv1queryuserinforequest = googlecloudidentitytoolkitv1queryuserinforequest + 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 *ProjectsQueryAccountsCall) Fields(s ...googleapi.Field) *ProjectsQueryAccountsCall { + 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 *ProjectsQueryAccountsCall) Context(ctx context.Context) *ProjectsQueryAccountsCall { + 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 *ProjectsQueryAccountsCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsQueryAccountsCall) 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.googlecloudidentitytoolkitv1queryuserinforequest) + 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/projects/{+targetProjectId}:queryAccounts") + 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{ + "targetProjectId": c.targetProjectId, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "identitytoolkit.projects.queryAccounts" call. +// Exactly one of *GoogleCloudIdentitytoolkitV1QueryUserInfoResponse or +// error will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudIdentitytoolkitV1QueryUserInfoResponse.ServerResponse.Head +// er or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsQueryAccountsCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIdentitytoolkitV1QueryUserInfoResponse, 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, &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, err + } + ret := &GoogleCloudIdentitytoolkitV1QueryUserInfoResponse{ + 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": "Looks up user accounts within a project or a tenant based on conditions in the request.", + // "flatPath": "v1/projects/{projectsId}:queryAccounts", + // "httpMethod": "POST", + // "id": "identitytoolkit.projects.queryAccounts", + // "parameterOrder": [ + // "targetProjectId" + // ], + // "parameters": { + // "targetProjectId": { + // "description": "The ID of the project to which the result is scoped.", + // "location": "path", + // "pattern": "^[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/projects/{+targetProjectId}:queryAccounts", + // "request": { + // "$ref": "GoogleCloudIdentitytoolkitV1QueryUserInfoRequest" + // }, + // "response": { + // "$ref": "GoogleCloudIdentitytoolkitV1QueryUserInfoResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/firebase" + // ] + // } + +} + +// method id "identitytoolkit.projects.accounts.batchCreate": + +type ProjectsAccountsBatchCreateCall struct { + s *Service + targetProjectId string + googlecloudidentitytoolkitv1uploadaccountrequest *GoogleCloudIdentitytoolkitV1UploadAccountRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// BatchCreate: Uploads multiple accounts into the Google Cloud project. +// If there is a problem uploading one or more of the accounts, the rest +// will be uploaded, and a list of the errors will be returned. To use +// this method requires a Google OAuth 2.0 credential with proper +// permissions +// (https://cloud.google.com/identity-platform/docs/access-control). +// +// - targetProjectId: The Project ID of the Identity Platform project +// which the account belongs to. +func (r *ProjectsAccountsService) BatchCreate(targetProjectId string, googlecloudidentitytoolkitv1uploadaccountrequest *GoogleCloudIdentitytoolkitV1UploadAccountRequest) *ProjectsAccountsBatchCreateCall { + c := &ProjectsAccountsBatchCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.targetProjectId = targetProjectId + c.googlecloudidentitytoolkitv1uploadaccountrequest = googlecloudidentitytoolkitv1uploadaccountrequest + 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 *ProjectsAccountsBatchCreateCall) Fields(s ...googleapi.Field) *ProjectsAccountsBatchCreateCall { + 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 *ProjectsAccountsBatchCreateCall) Context(ctx context.Context) *ProjectsAccountsBatchCreateCall { + 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 *ProjectsAccountsBatchCreateCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsAccountsBatchCreateCall) 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.googlecloudidentitytoolkitv1uploadaccountrequest) + 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/projects/{+targetProjectId}/accounts:batchCreate") + 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{ + "targetProjectId": c.targetProjectId, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "identitytoolkit.projects.accounts.batchCreate" call. +// Exactly one of *GoogleCloudIdentitytoolkitV1UploadAccountResponse or +// error will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudIdentitytoolkitV1UploadAccountResponse.ServerResponse.Head +// er or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsAccountsBatchCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIdentitytoolkitV1UploadAccountResponse, 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, &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, err + } + ret := &GoogleCloudIdentitytoolkitV1UploadAccountResponse{ + 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": "Uploads multiple accounts into the Google Cloud project. If there is a problem uploading one or more of the accounts, the rest will be uploaded, and a list of the errors will be returned. To use this method requires a Google OAuth 2.0 credential with proper [permissions](https://cloud.google.com/identity-platform/docs/access-control).", + // "flatPath": "v1/projects/{projectsId}/accounts:batchCreate", + // "httpMethod": "POST", + // "id": "identitytoolkit.projects.accounts.batchCreate", + // "parameterOrder": [ + // "targetProjectId" + // ], + // "parameters": { + // "targetProjectId": { + // "description": "The Project ID of the Identity Platform project which the account belongs to.", + // "location": "path", + // "pattern": "^[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/projects/{+targetProjectId}/accounts:batchCreate", + // "request": { + // "$ref": "GoogleCloudIdentitytoolkitV1UploadAccountRequest" + // }, + // "response": { + // "$ref": "GoogleCloudIdentitytoolkitV1UploadAccountResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/firebase" + // ] + // } + +} + +// method id "identitytoolkit.projects.accounts.batchDelete": + +type ProjectsAccountsBatchDeleteCall struct { + s *Service + targetProjectId string + googlecloudidentitytoolkitv1batchdeleteaccountsrequest *GoogleCloudIdentitytoolkitV1BatchDeleteAccountsRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// BatchDelete: Batch deletes multiple accounts. For accounts that fail +// to be deleted, error info is contained in the response. The method +// ignores accounts that do not exist or are duplicated in the request. +// This method requires a Google OAuth 2.0 credential with proper +// permissions. +// (https://cloud.google.com/identity-platform/docs/access-control) +// +// - targetProjectId: If `tenant_id` is specified, the ID of the Google +// Cloud project that the Identity Platform tenant belongs to. +// Otherwise, the ID of the Google Cloud project that accounts belong +// to. +func (r *ProjectsAccountsService) BatchDelete(targetProjectId string, googlecloudidentitytoolkitv1batchdeleteaccountsrequest *GoogleCloudIdentitytoolkitV1BatchDeleteAccountsRequest) *ProjectsAccountsBatchDeleteCall { + c := &ProjectsAccountsBatchDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.targetProjectId = targetProjectId + c.googlecloudidentitytoolkitv1batchdeleteaccountsrequest = googlecloudidentitytoolkitv1batchdeleteaccountsrequest + 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 *ProjectsAccountsBatchDeleteCall) Fields(s ...googleapi.Field) *ProjectsAccountsBatchDeleteCall { + 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 *ProjectsAccountsBatchDeleteCall) Context(ctx context.Context) *ProjectsAccountsBatchDeleteCall { + 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 *ProjectsAccountsBatchDeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsAccountsBatchDeleteCall) 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.googlecloudidentitytoolkitv1batchdeleteaccountsrequest) + 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/projects/{+targetProjectId}/accounts:batchDelete") + 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{ + "targetProjectId": c.targetProjectId, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "identitytoolkit.projects.accounts.batchDelete" call. +// Exactly one of +// *GoogleCloudIdentitytoolkitV1BatchDeleteAccountsResponse or error +// will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudIdentitytoolkitV1BatchDeleteAccountsResponse.ServerRespons +// e.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 *ProjectsAccountsBatchDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIdentitytoolkitV1BatchDeleteAccountsResponse, 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, &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, err + } + ret := &GoogleCloudIdentitytoolkitV1BatchDeleteAccountsResponse{ + 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": "Batch deletes multiple accounts. For accounts that fail to be deleted, error info is contained in the response. The method ignores accounts that do not exist or are duplicated in the request. This method requires a Google OAuth 2.0 credential with proper permissions. (https://cloud.google.com/identity-platform/docs/access-control)", + // "flatPath": "v1/projects/{projectsId}/accounts:batchDelete", + // "httpMethod": "POST", + // "id": "identitytoolkit.projects.accounts.batchDelete", + // "parameterOrder": [ + // "targetProjectId" + // ], + // "parameters": { + // "targetProjectId": { + // "description": "If `tenant_id` is specified, the ID of the Google Cloud project that the Identity Platform tenant belongs to. Otherwise, the ID of the Google Cloud project that accounts belong to.", + // "location": "path", + // "pattern": "^[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/projects/{+targetProjectId}/accounts:batchDelete", + // "request": { + // "$ref": "GoogleCloudIdentitytoolkitV1BatchDeleteAccountsRequest" + // }, + // "response": { + // "$ref": "GoogleCloudIdentitytoolkitV1BatchDeleteAccountsResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/firebase" + // ] + // } + +} + +// method id "identitytoolkit.projects.accounts.batchGet": + +type ProjectsAccountsBatchGetCall struct { + s *Service + targetProjectId string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// BatchGet: Download account information for all accounts on the +// project in a paginated manner. To use this method requires a Google +// OAuth 2.0 credential with proper permissions +// (https://cloud.google.com/identity-platform/docs/access-control).. +// Furthermore, additional permissions are needed to get password hash, +// password salt, and password version from accounts; otherwise these +// fields are redacted. +// +// - targetProjectId: If `tenant_id` is specified, the ID of the Google +// Cloud project that the Identity Platform tenant belongs to. +// Otherwise, the ID of the Google Cloud project that the accounts +// belong to. +func (r *ProjectsAccountsService) BatchGet(targetProjectId string) *ProjectsAccountsBatchGetCall { + c := &ProjectsAccountsBatchGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.targetProjectId = targetProjectId + return c +} + +// DelegatedProjectNumber sets the optional parameter +// "delegatedProjectNumber": +func (c *ProjectsAccountsBatchGetCall) DelegatedProjectNumber(delegatedProjectNumber int64) *ProjectsAccountsBatchGetCall { + c.urlParams_.Set("delegatedProjectNumber", fmt.Sprint(delegatedProjectNumber)) + return c +} + +// MaxResults sets the optional parameter "maxResults": The maximum +// number of results to return. Must be at least 1 and no greater than +// 1000. By default, it is 20. +func (c *ProjectsAccountsBatchGetCall) MaxResults(maxResults int64) *ProjectsAccountsBatchGetCall { + c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) + return c +} + +// NextPageToken sets the optional parameter "nextPageToken": The +// pagination token from the response of a previous request. +func (c *ProjectsAccountsBatchGetCall) NextPageToken(nextPageToken string) *ProjectsAccountsBatchGetCall { + c.urlParams_.Set("nextPageToken", nextPageToken) + return c +} + +// TenantId sets the optional parameter "tenantId": The ID of the +// Identity Platform tenant the accounts belongs to. If not specified, +// accounts on the Identity Platform project are returned. +func (c *ProjectsAccountsBatchGetCall) TenantId(tenantId string) *ProjectsAccountsBatchGetCall { + c.urlParams_.Set("tenantId", tenantId) + 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 *ProjectsAccountsBatchGetCall) Fields(s ...googleapi.Field) *ProjectsAccountsBatchGetCall { + 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 *ProjectsAccountsBatchGetCall) IfNoneMatch(entityTag string) *ProjectsAccountsBatchGetCall { + 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 *ProjectsAccountsBatchGetCall) Context(ctx context.Context) *ProjectsAccountsBatchGetCall { + 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 *ProjectsAccountsBatchGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsAccountsBatchGetCall) 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/projects/{+targetProjectId}/accounts:batchGet") + 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{ + "targetProjectId": c.targetProjectId, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "identitytoolkit.projects.accounts.batchGet" call. +// Exactly one of *GoogleCloudIdentitytoolkitV1DownloadAccountResponse +// or error will be non-nil. Any non-2xx status code is an error. +// Response headers are in either +// *GoogleCloudIdentitytoolkitV1DownloadAccountResponse.ServerResponse.He +// ader 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 *ProjectsAccountsBatchGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIdentitytoolkitV1DownloadAccountResponse, 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, &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, err + } + ret := &GoogleCloudIdentitytoolkitV1DownloadAccountResponse{ + 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": "Download account information for all accounts on the project in a paginated manner. To use this method requires a Google OAuth 2.0 credential with proper [permissions](https://cloud.google.com/identity-platform/docs/access-control).. Furthermore, additional permissions are needed to get password hash, password salt, and password version from accounts; otherwise these fields are redacted.", + // "flatPath": "v1/projects/{projectsId}/accounts:batchGet", + // "httpMethod": "GET", + // "id": "identitytoolkit.projects.accounts.batchGet", + // "parameterOrder": [ + // "targetProjectId" + // ], + // "parameters": { + // "delegatedProjectNumber": { + // "format": "int64", + // "location": "query", + // "type": "string" + // }, + // "maxResults": { + // "description": "The maximum number of results to return. Must be at least 1 and no greater than 1000. By default, it is 20.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "nextPageToken": { + // "description": "The pagination token from the response of a previous request.", + // "location": "query", + // "type": "string" + // }, + // "targetProjectId": { + // "description": "If `tenant_id` is specified, the ID of the Google Cloud project that the Identity Platform tenant belongs to. Otherwise, the ID of the Google Cloud project that the accounts belong to.", + // "location": "path", + // "pattern": "^[^/]+$", + // "required": true, + // "type": "string" + // }, + // "tenantId": { + // "description": "The ID of the Identity Platform tenant the accounts belongs to. If not specified, accounts on the Identity Platform project are returned.", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1/projects/{+targetProjectId}/accounts:batchGet", + // "response": { + // "$ref": "GoogleCloudIdentitytoolkitV1DownloadAccountResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/firebase" + // ] + // } + +} + +// 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 *ProjectsAccountsBatchGetCall) Pages(ctx context.Context, f func(*GoogleCloudIdentitytoolkitV1DownloadAccountResponse) error) error { + c.ctx_ = ctx + defer c.NextPageToken(c.urlParams_.Get("nextPageToken")) // 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.NextPageToken(x.NextPageToken) + } +} + +// method id "identitytoolkit.projects.accounts.delete": + +type ProjectsAccountsDeleteCall struct { + s *Service + targetProjectId string + googlecloudidentitytoolkitv1deleteaccountrequest *GoogleCloudIdentitytoolkitV1DeleteAccountRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Delete: Deletes a user's account. +// +// - targetProjectId: The ID of the project which the account belongs +// to. Should only be specified in authenticated requests that specify +// local_id of an account. +func (r *ProjectsAccountsService) Delete(targetProjectId string, googlecloudidentitytoolkitv1deleteaccountrequest *GoogleCloudIdentitytoolkitV1DeleteAccountRequest) *ProjectsAccountsDeleteCall { + c := &ProjectsAccountsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.targetProjectId = targetProjectId + c.googlecloudidentitytoolkitv1deleteaccountrequest = googlecloudidentitytoolkitv1deleteaccountrequest + 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 *ProjectsAccountsDeleteCall) Fields(s ...googleapi.Field) *ProjectsAccountsDeleteCall { + 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 *ProjectsAccountsDeleteCall) Context(ctx context.Context) *ProjectsAccountsDeleteCall { + 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 *ProjectsAccountsDeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsAccountsDeleteCall) 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.googlecloudidentitytoolkitv1deleteaccountrequest) + 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/projects/{+targetProjectId}/accounts:delete") + 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{ + "targetProjectId": c.targetProjectId, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "identitytoolkit.projects.accounts.delete" call. +// Exactly one of *GoogleCloudIdentitytoolkitV1DeleteAccountResponse or +// error will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudIdentitytoolkitV1DeleteAccountResponse.ServerResponse.Head +// er or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsAccountsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIdentitytoolkitV1DeleteAccountResponse, 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, &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, err + } + ret := &GoogleCloudIdentitytoolkitV1DeleteAccountResponse{ + 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 user's account.", + // "flatPath": "v1/projects/{projectsId}/accounts:delete", + // "httpMethod": "POST", + // "id": "identitytoolkit.projects.accounts.delete", + // "parameterOrder": [ + // "targetProjectId" + // ], + // "parameters": { + // "targetProjectId": { + // "description": "The ID of the project which the account belongs to. Should only be specified in authenticated requests that specify local_id of an account.", + // "location": "path", + // "pattern": "^[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/projects/{+targetProjectId}/accounts:delete", + // "request": { + // "$ref": "GoogleCloudIdentitytoolkitV1DeleteAccountRequest" + // }, + // "response": { + // "$ref": "GoogleCloudIdentitytoolkitV1DeleteAccountResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "identitytoolkit.projects.accounts.lookup": + +type ProjectsAccountsLookupCall struct { + s *Service + targetProjectId string + googlecloudidentitytoolkitv1getaccountinforequest *GoogleCloudIdentitytoolkitV1GetAccountInfoRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Lookup: Gets account information for all matched accounts. For an end +// user request, retrieves the account of the end user. For an admin +// request with Google OAuth 2.0 credential, retrieves one or multiple +// account(s) with matching criteria. +// +// - targetProjectId: The ID of the Google Cloud project that the +// account or the Identity Platform tenant specified by `tenant_id` +// belongs to. Should only be specified by authenticated requests +// bearing a Google OAuth 2.0 credential with proper permissions +// (https://cloud.google.com/identity-platform/docs/access-control). +func (r *ProjectsAccountsService) Lookup(targetProjectId string, googlecloudidentitytoolkitv1getaccountinforequest *GoogleCloudIdentitytoolkitV1GetAccountInfoRequest) *ProjectsAccountsLookupCall { + c := &ProjectsAccountsLookupCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.targetProjectId = targetProjectId + c.googlecloudidentitytoolkitv1getaccountinforequest = googlecloudidentitytoolkitv1getaccountinforequest + 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 *ProjectsAccountsLookupCall) Fields(s ...googleapi.Field) *ProjectsAccountsLookupCall { + 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 *ProjectsAccountsLookupCall) Context(ctx context.Context) *ProjectsAccountsLookupCall { + 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 *ProjectsAccountsLookupCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsAccountsLookupCall) 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.googlecloudidentitytoolkitv1getaccountinforequest) + 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/projects/{+targetProjectId}/accounts:lookup") + 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{ + "targetProjectId": c.targetProjectId, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "identitytoolkit.projects.accounts.lookup" call. +// Exactly one of *GoogleCloudIdentitytoolkitV1GetAccountInfoResponse or +// error will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudIdentitytoolkitV1GetAccountInfoResponse.ServerResponse.Hea +// der 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 *ProjectsAccountsLookupCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIdentitytoolkitV1GetAccountInfoResponse, 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, &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, err + } + ret := &GoogleCloudIdentitytoolkitV1GetAccountInfoResponse{ + 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 account information for all matched accounts. For an end user request, retrieves the account of the end user. For an admin request with Google OAuth 2.0 credential, retrieves one or multiple account(s) with matching criteria.", + // "flatPath": "v1/projects/{projectsId}/accounts:lookup", + // "httpMethod": "POST", + // "id": "identitytoolkit.projects.accounts.lookup", + // "parameterOrder": [ + // "targetProjectId" + // ], + // "parameters": { + // "targetProjectId": { + // "description": "The ID of the Google Cloud project that the account or the Identity Platform tenant specified by `tenant_id` belongs to. Should only be specified by authenticated requests bearing a Google OAuth 2.0 credential with proper [permissions](https://cloud.google.com/identity-platform/docs/access-control).", + // "location": "path", + // "pattern": "^[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/projects/{+targetProjectId}/accounts:lookup", + // "request": { + // "$ref": "GoogleCloudIdentitytoolkitV1GetAccountInfoRequest" + // }, + // "response": { + // "$ref": "GoogleCloudIdentitytoolkitV1GetAccountInfoResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "identitytoolkit.projects.accounts.query": + +type ProjectsAccountsQueryCall struct { + s *Service + targetProjectId string + googlecloudidentitytoolkitv1queryuserinforequest *GoogleCloudIdentitytoolkitV1QueryUserInfoRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Query: Looks up user accounts within a project or a tenant based on +// conditions in the request. +// +// - targetProjectId: The ID of the project to which the result is +// scoped. +func (r *ProjectsAccountsService) Query(targetProjectId string, googlecloudidentitytoolkitv1queryuserinforequest *GoogleCloudIdentitytoolkitV1QueryUserInfoRequest) *ProjectsAccountsQueryCall { + c := &ProjectsAccountsQueryCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.targetProjectId = targetProjectId + c.googlecloudidentitytoolkitv1queryuserinforequest = googlecloudidentitytoolkitv1queryuserinforequest + 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 *ProjectsAccountsQueryCall) Fields(s ...googleapi.Field) *ProjectsAccountsQueryCall { + 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 *ProjectsAccountsQueryCall) Context(ctx context.Context) *ProjectsAccountsQueryCall { + 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 *ProjectsAccountsQueryCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsAccountsQueryCall) 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.googlecloudidentitytoolkitv1queryuserinforequest) + 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/projects/{+targetProjectId}/accounts:query") + 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{ + "targetProjectId": c.targetProjectId, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "identitytoolkit.projects.accounts.query" call. +// Exactly one of *GoogleCloudIdentitytoolkitV1QueryUserInfoResponse or +// error will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudIdentitytoolkitV1QueryUserInfoResponse.ServerResponse.Head +// er or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsAccountsQueryCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIdentitytoolkitV1QueryUserInfoResponse, 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, &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, err + } + ret := &GoogleCloudIdentitytoolkitV1QueryUserInfoResponse{ + 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": "Looks up user accounts within a project or a tenant based on conditions in the request.", + // "flatPath": "v1/projects/{projectsId}/accounts:query", + // "httpMethod": "POST", + // "id": "identitytoolkit.projects.accounts.query", + // "parameterOrder": [ + // "targetProjectId" + // ], + // "parameters": { + // "targetProjectId": { + // "description": "The ID of the project to which the result is scoped.", + // "location": "path", + // "pattern": "^[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/projects/{+targetProjectId}/accounts:query", + // "request": { + // "$ref": "GoogleCloudIdentitytoolkitV1QueryUserInfoRequest" + // }, + // "response": { + // "$ref": "GoogleCloudIdentitytoolkitV1QueryUserInfoResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/firebase" + // ] + // } + +} + +// method id "identitytoolkit.projects.accounts.sendOobCode": + +type ProjectsAccountsSendOobCodeCall struct { + s *Service + targetProjectId string + googlecloudidentitytoolkitv1getoobcoderequest *GoogleCloudIdentitytoolkitV1GetOobCodeRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// SendOobCode: Sends an out-of-band confirmation code for an account. +// Requests from a authenticated request can optionally return a link +// including the OOB code instead of sending it. +// +// - targetProjectId: The Project ID of the Identity Platform project +// which the account belongs to. To specify this field, it requires a +// Google OAuth 2.0 credential with proper permissions +// (https://cloud.google.com/identity-platform/docs/access-control). +func (r *ProjectsAccountsService) SendOobCode(targetProjectId string, googlecloudidentitytoolkitv1getoobcoderequest *GoogleCloudIdentitytoolkitV1GetOobCodeRequest) *ProjectsAccountsSendOobCodeCall { + c := &ProjectsAccountsSendOobCodeCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.targetProjectId = targetProjectId + c.googlecloudidentitytoolkitv1getoobcoderequest = googlecloudidentitytoolkitv1getoobcoderequest + 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 *ProjectsAccountsSendOobCodeCall) Fields(s ...googleapi.Field) *ProjectsAccountsSendOobCodeCall { + 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 *ProjectsAccountsSendOobCodeCall) Context(ctx context.Context) *ProjectsAccountsSendOobCodeCall { + 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 *ProjectsAccountsSendOobCodeCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsAccountsSendOobCodeCall) 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.googlecloudidentitytoolkitv1getoobcoderequest) + 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/projects/{+targetProjectId}/accounts:sendOobCode") + 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{ + "targetProjectId": c.targetProjectId, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "identitytoolkit.projects.accounts.sendOobCode" call. +// Exactly one of *GoogleCloudIdentitytoolkitV1GetOobCodeResponse or +// error will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudIdentitytoolkitV1GetOobCodeResponse.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 *ProjectsAccountsSendOobCodeCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIdentitytoolkitV1GetOobCodeResponse, 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, &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, err + } + ret := &GoogleCloudIdentitytoolkitV1GetOobCodeResponse{ + 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": "Sends an out-of-band confirmation code for an account. Requests from a authenticated request can optionally return a link including the OOB code instead of sending it.", + // "flatPath": "v1/projects/{projectsId}/accounts:sendOobCode", + // "httpMethod": "POST", + // "id": "identitytoolkit.projects.accounts.sendOobCode", + // "parameterOrder": [ + // "targetProjectId" + // ], + // "parameters": { + // "targetProjectId": { + // "description": "The Project ID of the Identity Platform project which the account belongs to. To specify this field, it requires a Google OAuth 2.0 credential with proper [permissions](https://cloud.google.com/identity-platform/docs/access-control).", + // "location": "path", + // "pattern": "^[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/projects/{+targetProjectId}/accounts:sendOobCode", + // "request": { + // "$ref": "GoogleCloudIdentitytoolkitV1GetOobCodeRequest" + // }, + // "response": { + // "$ref": "GoogleCloudIdentitytoolkitV1GetOobCodeResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "identitytoolkit.projects.accounts.update": + +type ProjectsAccountsUpdateCall struct { + s *Service + targetProjectId string + googlecloudidentitytoolkitv1setaccountinforequest *GoogleCloudIdentitytoolkitV1SetAccountInfoRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Update: Updates account-related information for the specified user by +// setting specific fields or applying action codes. Requests from +// administrators and end users are supported. +// +// - targetProjectId: The project ID for the project that the account +// belongs to. Specifying this field requires Google OAuth 2.0 +// credential with proper permissions +// (https://cloud.google.com/identity-platform/docs/access-control). +// Requests from end users should pass an Identity Platform ID token +// instead. +func (r *ProjectsAccountsService) Update(targetProjectId string, googlecloudidentitytoolkitv1setaccountinforequest *GoogleCloudIdentitytoolkitV1SetAccountInfoRequest) *ProjectsAccountsUpdateCall { + c := &ProjectsAccountsUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.targetProjectId = targetProjectId + c.googlecloudidentitytoolkitv1setaccountinforequest = googlecloudidentitytoolkitv1setaccountinforequest + 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 *ProjectsAccountsUpdateCall) Fields(s ...googleapi.Field) *ProjectsAccountsUpdateCall { + 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 *ProjectsAccountsUpdateCall) Context(ctx context.Context) *ProjectsAccountsUpdateCall { + 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 *ProjectsAccountsUpdateCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsAccountsUpdateCall) 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.googlecloudidentitytoolkitv1setaccountinforequest) + 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/projects/{+targetProjectId}/accounts:update") + 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{ + "targetProjectId": c.targetProjectId, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "identitytoolkit.projects.accounts.update" call. +// Exactly one of *GoogleCloudIdentitytoolkitV1SetAccountInfoResponse or +// error will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudIdentitytoolkitV1SetAccountInfoResponse.ServerResponse.Hea +// der 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 *ProjectsAccountsUpdateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIdentitytoolkitV1SetAccountInfoResponse, 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, &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, err + } + ret := &GoogleCloudIdentitytoolkitV1SetAccountInfoResponse{ + 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 account-related information for the specified user by setting specific fields or applying action codes. Requests from administrators and end users are supported.", + // "flatPath": "v1/projects/{projectsId}/accounts:update", + // "httpMethod": "POST", + // "id": "identitytoolkit.projects.accounts.update", + // "parameterOrder": [ + // "targetProjectId" + // ], + // "parameters": { + // "targetProjectId": { + // "description": "The project ID for the project that the account belongs to. Specifying this field requires Google OAuth 2.0 credential with proper permissions (https://cloud.google.com/identity-platform/docs/access-control). Requests from end users should pass an Identity Platform ID token instead.", + // "location": "path", + // "pattern": "^[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/projects/{+targetProjectId}/accounts:update", + // "request": { + // "$ref": "GoogleCloudIdentitytoolkitV1SetAccountInfoRequest" + // }, + // "response": { + // "$ref": "GoogleCloudIdentitytoolkitV1SetAccountInfoResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "identitytoolkit.projects.tenants.accounts": + +type ProjectsTenantsAccountsCall struct { + s *Service + targetProjectId string + tenantId string + googlecloudidentitytoolkitv1signuprequest *GoogleCloudIdentitytoolkitV1SignUpRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Accounts: Signs up a new email and password user or anonymous user, +// or upgrades an anonymous user to email and password. For an admin +// request with a Google OAuth 2.0 credential with the proper +// permissions +// (https://cloud.google.com/identity-platform/docs/access-control), +// creates a new anonymous, email and password, or phone number user. An +// API key (https://cloud.google.com/docs/authentication/api-keys) is +// required in the request in order to identify the Google Cloud +// project. +// +// - targetProjectId: The project ID of the project which the user +// should belong to. Specifying this field requires a Google OAuth 2.0 +// credential with the proper permissions +// (https://cloud.google.com/identity-platform/docs/access-control). +// If this is not set, the target project is inferred from the scope +// associated to the Bearer access token. +// - tenantId: The ID of the Identity Platform tenant to create a user +// under. If not set, the user will be created under the default +// Identity Platform project. +func (r *ProjectsTenantsService) Accounts(targetProjectId string, tenantId string, googlecloudidentitytoolkitv1signuprequest *GoogleCloudIdentitytoolkitV1SignUpRequest) *ProjectsTenantsAccountsCall { + c := &ProjectsTenantsAccountsCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.targetProjectId = targetProjectId + c.tenantId = tenantId + c.googlecloudidentitytoolkitv1signuprequest = googlecloudidentitytoolkitv1signuprequest + 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 *ProjectsTenantsAccountsCall) Fields(s ...googleapi.Field) *ProjectsTenantsAccountsCall { + 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 *ProjectsTenantsAccountsCall) Context(ctx context.Context) *ProjectsTenantsAccountsCall { + 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 *ProjectsTenantsAccountsCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsTenantsAccountsCall) 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.googlecloudidentitytoolkitv1signuprequest) + 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/projects/{+targetProjectId}/tenants/{+tenantId}/accounts") + 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{ + "targetProjectId": c.targetProjectId, + "tenantId": c.tenantId, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "identitytoolkit.projects.tenants.accounts" call. +// Exactly one of *GoogleCloudIdentitytoolkitV1SignUpResponse or error +// will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudIdentitytoolkitV1SignUpResponse.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 *ProjectsTenantsAccountsCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIdentitytoolkitV1SignUpResponse, 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, &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, err + } + ret := &GoogleCloudIdentitytoolkitV1SignUpResponse{ + 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": "Signs up a new email and password user or anonymous user, or upgrades an anonymous user to email and password. For an admin request with a Google OAuth 2.0 credential with the proper [permissions](https://cloud.google.com/identity-platform/docs/access-control), creates a new anonymous, email and password, or phone number user. An [API key](https://cloud.google.com/docs/authentication/api-keys) is required in the request in order to identify the Google Cloud project.", + // "flatPath": "v1/projects/{projectsId}/tenants/{tenantsId}/accounts", + // "httpMethod": "POST", + // "id": "identitytoolkit.projects.tenants.accounts", + // "parameterOrder": [ + // "targetProjectId", + // "tenantId" + // ], + // "parameters": { + // "targetProjectId": { + // "description": "The project ID of the project which the user should belong to. Specifying this field requires a Google OAuth 2.0 credential with the proper [permissions](https://cloud.google.com/identity-platform/docs/access-control). If this is not set, the target project is inferred from the scope associated to the Bearer access token.", + // "location": "path", + // "pattern": "^[^/]+$", + // "required": true, + // "type": "string" + // }, + // "tenantId": { + // "description": "The ID of the Identity Platform tenant to create a user under. If not set, the user will be created under the default Identity Platform project.", + // "location": "path", + // "pattern": "^[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/projects/{+targetProjectId}/tenants/{+tenantId}/accounts", + // "request": { + // "$ref": "GoogleCloudIdentitytoolkitV1SignUpRequest" + // }, + // "response": { + // "$ref": "GoogleCloudIdentitytoolkitV1SignUpResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "identitytoolkit.projects.tenants.createSessionCookie": + +type ProjectsTenantsCreateSessionCookieCall struct { + s *Service + targetProjectId string + tenantId string + googlecloudidentitytoolkitv1createsessioncookierequest *GoogleCloudIdentitytoolkitV1CreateSessionCookieRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// CreateSessionCookie: Creates a session cookie for the given Identity +// Platform ID token. The session cookie is used by the client to +// preserve the user's login state. +// +// - targetProjectId: The ID of the project that the account belongs to. +// - tenantId: The tenant ID of the Identity Platform tenant the account +// belongs to. +func (r *ProjectsTenantsService) CreateSessionCookie(targetProjectId string, tenantId string, googlecloudidentitytoolkitv1createsessioncookierequest *GoogleCloudIdentitytoolkitV1CreateSessionCookieRequest) *ProjectsTenantsCreateSessionCookieCall { + c := &ProjectsTenantsCreateSessionCookieCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.targetProjectId = targetProjectId + c.tenantId = tenantId + c.googlecloudidentitytoolkitv1createsessioncookierequest = googlecloudidentitytoolkitv1createsessioncookierequest + 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 *ProjectsTenantsCreateSessionCookieCall) Fields(s ...googleapi.Field) *ProjectsTenantsCreateSessionCookieCall { + 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 *ProjectsTenantsCreateSessionCookieCall) Context(ctx context.Context) *ProjectsTenantsCreateSessionCookieCall { + 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 *ProjectsTenantsCreateSessionCookieCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsTenantsCreateSessionCookieCall) 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.googlecloudidentitytoolkitv1createsessioncookierequest) + 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/projects/{+targetProjectId}/tenants/{+tenantId}:createSessionCookie") + 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{ + "targetProjectId": c.targetProjectId, + "tenantId": c.tenantId, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "identitytoolkit.projects.tenants.createSessionCookie" call. +// Exactly one of +// *GoogleCloudIdentitytoolkitV1CreateSessionCookieResponse or error +// will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudIdentitytoolkitV1CreateSessionCookieResponse.ServerRespons +// e.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 *ProjectsTenantsCreateSessionCookieCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIdentitytoolkitV1CreateSessionCookieResponse, 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, &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, err + } + ret := &GoogleCloudIdentitytoolkitV1CreateSessionCookieResponse{ + 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 session cookie for the given Identity Platform ID token. The session cookie is used by the client to preserve the user's login state.", + // "flatPath": "v1/projects/{projectsId}/tenants/{tenantsId}:createSessionCookie", + // "httpMethod": "POST", + // "id": "identitytoolkit.projects.tenants.createSessionCookie", + // "parameterOrder": [ + // "targetProjectId", + // "tenantId" + // ], + // "parameters": { + // "targetProjectId": { + // "description": "The ID of the project that the account belongs to.", + // "location": "path", + // "pattern": "^[^/]+$", + // "required": true, + // "type": "string" + // }, + // "tenantId": { + // "description": "The tenant ID of the Identity Platform tenant the account belongs to.", + // "location": "path", + // "pattern": "^[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/projects/{+targetProjectId}/tenants/{+tenantId}:createSessionCookie", + // "request": { + // "$ref": "GoogleCloudIdentitytoolkitV1CreateSessionCookieRequest" + // }, + // "response": { + // "$ref": "GoogleCloudIdentitytoolkitV1CreateSessionCookieResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "identitytoolkit.projects.tenants.accounts.batchCreate": + +type ProjectsTenantsAccountsBatchCreateCall struct { + s *Service + targetProjectId string + tenantId string + googlecloudidentitytoolkitv1uploadaccountrequest *GoogleCloudIdentitytoolkitV1UploadAccountRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// BatchCreate: Uploads multiple accounts into the Google Cloud project. +// If there is a problem uploading one or more of the accounts, the rest +// will be uploaded, and a list of the errors will be returned. To use +// this method requires a Google OAuth 2.0 credential with proper +// permissions +// (https://cloud.google.com/identity-platform/docs/access-control). +// +// - targetProjectId: The Project ID of the Identity Platform project +// which the account belongs to. +// - tenantId: The ID of the Identity Platform tenant the account +// belongs to. +func (r *ProjectsTenantsAccountsService) BatchCreate(targetProjectId string, tenantId string, googlecloudidentitytoolkitv1uploadaccountrequest *GoogleCloudIdentitytoolkitV1UploadAccountRequest) *ProjectsTenantsAccountsBatchCreateCall { + c := &ProjectsTenantsAccountsBatchCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.targetProjectId = targetProjectId + c.tenantId = tenantId + c.googlecloudidentitytoolkitv1uploadaccountrequest = googlecloudidentitytoolkitv1uploadaccountrequest + 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 *ProjectsTenantsAccountsBatchCreateCall) Fields(s ...googleapi.Field) *ProjectsTenantsAccountsBatchCreateCall { + 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 *ProjectsTenantsAccountsBatchCreateCall) Context(ctx context.Context) *ProjectsTenantsAccountsBatchCreateCall { + 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 *ProjectsTenantsAccountsBatchCreateCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsTenantsAccountsBatchCreateCall) 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.googlecloudidentitytoolkitv1uploadaccountrequest) + 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/projects/{+targetProjectId}/tenants/{+tenantId}/accounts:batchCreate") + 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{ + "targetProjectId": c.targetProjectId, + "tenantId": c.tenantId, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "identitytoolkit.projects.tenants.accounts.batchCreate" call. +// Exactly one of *GoogleCloudIdentitytoolkitV1UploadAccountResponse or +// error will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudIdentitytoolkitV1UploadAccountResponse.ServerResponse.Head +// er or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsTenantsAccountsBatchCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIdentitytoolkitV1UploadAccountResponse, 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, &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, err + } + ret := &GoogleCloudIdentitytoolkitV1UploadAccountResponse{ + 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": "Uploads multiple accounts into the Google Cloud project. If there is a problem uploading one or more of the accounts, the rest will be uploaded, and a list of the errors will be returned. To use this method requires a Google OAuth 2.0 credential with proper [permissions](https://cloud.google.com/identity-platform/docs/access-control).", + // "flatPath": "v1/projects/{projectsId}/tenants/{tenantsId}/accounts:batchCreate", + // "httpMethod": "POST", + // "id": "identitytoolkit.projects.tenants.accounts.batchCreate", + // "parameterOrder": [ + // "targetProjectId", + // "tenantId" + // ], + // "parameters": { + // "targetProjectId": { + // "description": "The Project ID of the Identity Platform project which the account belongs to.", + // "location": "path", + // "pattern": "^[^/]+$", + // "required": true, + // "type": "string" + // }, + // "tenantId": { + // "description": "The ID of the Identity Platform tenant the account belongs to.", + // "location": "path", + // "pattern": "^[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/projects/{+targetProjectId}/tenants/{+tenantId}/accounts:batchCreate", + // "request": { + // "$ref": "GoogleCloudIdentitytoolkitV1UploadAccountRequest" + // }, + // "response": { + // "$ref": "GoogleCloudIdentitytoolkitV1UploadAccountResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/firebase" + // ] + // } + +} + +// method id "identitytoolkit.projects.tenants.accounts.batchDelete": + +type ProjectsTenantsAccountsBatchDeleteCall struct { + s *Service + targetProjectId string + tenantId string + googlecloudidentitytoolkitv1batchdeleteaccountsrequest *GoogleCloudIdentitytoolkitV1BatchDeleteAccountsRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// BatchDelete: Batch deletes multiple accounts. For accounts that fail +// to be deleted, error info is contained in the response. The method +// ignores accounts that do not exist or are duplicated in the request. +// This method requires a Google OAuth 2.0 credential with proper +// permissions. +// (https://cloud.google.com/identity-platform/docs/access-control) +// +// - targetProjectId: If `tenant_id` is specified, the ID of the Google +// Cloud project that the Identity Platform tenant belongs to. +// Otherwise, the ID of the Google Cloud project that accounts belong +// to. +// - tenantId: If the accounts belong to an Identity Platform tenant, +// the ID of the tenant. If the accounts belong to an default Identity +// Platform project, the field is not needed. +func (r *ProjectsTenantsAccountsService) BatchDelete(targetProjectId string, tenantId string, googlecloudidentitytoolkitv1batchdeleteaccountsrequest *GoogleCloudIdentitytoolkitV1BatchDeleteAccountsRequest) *ProjectsTenantsAccountsBatchDeleteCall { + c := &ProjectsTenantsAccountsBatchDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.targetProjectId = targetProjectId + c.tenantId = tenantId + c.googlecloudidentitytoolkitv1batchdeleteaccountsrequest = googlecloudidentitytoolkitv1batchdeleteaccountsrequest + 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 *ProjectsTenantsAccountsBatchDeleteCall) Fields(s ...googleapi.Field) *ProjectsTenantsAccountsBatchDeleteCall { + 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 *ProjectsTenantsAccountsBatchDeleteCall) Context(ctx context.Context) *ProjectsTenantsAccountsBatchDeleteCall { + 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 *ProjectsTenantsAccountsBatchDeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsTenantsAccountsBatchDeleteCall) 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.googlecloudidentitytoolkitv1batchdeleteaccountsrequest) + 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/projects/{+targetProjectId}/tenants/{+tenantId}/accounts:batchDelete") + 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{ + "targetProjectId": c.targetProjectId, + "tenantId": c.tenantId, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "identitytoolkit.projects.tenants.accounts.batchDelete" call. +// Exactly one of +// *GoogleCloudIdentitytoolkitV1BatchDeleteAccountsResponse or error +// will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudIdentitytoolkitV1BatchDeleteAccountsResponse.ServerRespons +// e.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 *ProjectsTenantsAccountsBatchDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIdentitytoolkitV1BatchDeleteAccountsResponse, 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, &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, err + } + ret := &GoogleCloudIdentitytoolkitV1BatchDeleteAccountsResponse{ + 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": "Batch deletes multiple accounts. For accounts that fail to be deleted, error info is contained in the response. The method ignores accounts that do not exist or are duplicated in the request. This method requires a Google OAuth 2.0 credential with proper permissions. (https://cloud.google.com/identity-platform/docs/access-control)", + // "flatPath": "v1/projects/{projectsId}/tenants/{tenantsId}/accounts:batchDelete", + // "httpMethod": "POST", + // "id": "identitytoolkit.projects.tenants.accounts.batchDelete", + // "parameterOrder": [ + // "targetProjectId", + // "tenantId" + // ], + // "parameters": { + // "targetProjectId": { + // "description": "If `tenant_id` is specified, the ID of the Google Cloud project that the Identity Platform tenant belongs to. Otherwise, the ID of the Google Cloud project that accounts belong to.", + // "location": "path", + // "pattern": "^[^/]+$", + // "required": true, + // "type": "string" + // }, + // "tenantId": { + // "description": "If the accounts belong to an Identity Platform tenant, the ID of the tenant. If the accounts belong to an default Identity Platform project, the field is not needed.", + // "location": "path", + // "pattern": "^[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/projects/{+targetProjectId}/tenants/{+tenantId}/accounts:batchDelete", + // "request": { + // "$ref": "GoogleCloudIdentitytoolkitV1BatchDeleteAccountsRequest" + // }, + // "response": { + // "$ref": "GoogleCloudIdentitytoolkitV1BatchDeleteAccountsResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/firebase" + // ] + // } + +} + +// method id "identitytoolkit.projects.tenants.accounts.batchGet": + +type ProjectsTenantsAccountsBatchGetCall struct { + s *Service + targetProjectId string + tenantId string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// BatchGet: Download account information for all accounts on the +// project in a paginated manner. To use this method requires a Google +// OAuth 2.0 credential with proper permissions +// (https://cloud.google.com/identity-platform/docs/access-control).. +// Furthermore, additional permissions are needed to get password hash, +// password salt, and password version from accounts; otherwise these +// fields are redacted. +// +// - targetProjectId: If `tenant_id` is specified, the ID of the Google +// Cloud project that the Identity Platform tenant belongs to. +// Otherwise, the ID of the Google Cloud project that the accounts +// belong to. +// - tenantId: The ID of the Identity Platform tenant the accounts +// belongs to. If not specified, accounts on the Identity Platform +// project are returned. +func (r *ProjectsTenantsAccountsService) BatchGet(targetProjectId string, tenantId string) *ProjectsTenantsAccountsBatchGetCall { + c := &ProjectsTenantsAccountsBatchGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.targetProjectId = targetProjectId + c.tenantId = tenantId + return c +} + +// DelegatedProjectNumber sets the optional parameter +// "delegatedProjectNumber": +func (c *ProjectsTenantsAccountsBatchGetCall) DelegatedProjectNumber(delegatedProjectNumber int64) *ProjectsTenantsAccountsBatchGetCall { + c.urlParams_.Set("delegatedProjectNumber", fmt.Sprint(delegatedProjectNumber)) + return c +} + +// MaxResults sets the optional parameter "maxResults": The maximum +// number of results to return. Must be at least 1 and no greater than +// 1000. By default, it is 20. +func (c *ProjectsTenantsAccountsBatchGetCall) MaxResults(maxResults int64) *ProjectsTenantsAccountsBatchGetCall { + c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) + return c +} + +// NextPageToken sets the optional parameter "nextPageToken": The +// pagination token from the response of a previous request. +func (c *ProjectsTenantsAccountsBatchGetCall) NextPageToken(nextPageToken string) *ProjectsTenantsAccountsBatchGetCall { + c.urlParams_.Set("nextPageToken", nextPageToken) + 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 *ProjectsTenantsAccountsBatchGetCall) Fields(s ...googleapi.Field) *ProjectsTenantsAccountsBatchGetCall { + 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 *ProjectsTenantsAccountsBatchGetCall) IfNoneMatch(entityTag string) *ProjectsTenantsAccountsBatchGetCall { + 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 *ProjectsTenantsAccountsBatchGetCall) Context(ctx context.Context) *ProjectsTenantsAccountsBatchGetCall { + 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 *ProjectsTenantsAccountsBatchGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsTenantsAccountsBatchGetCall) 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/projects/{+targetProjectId}/tenants/{+tenantId}/accounts:batchGet") + 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{ + "targetProjectId": c.targetProjectId, + "tenantId": c.tenantId, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "identitytoolkit.projects.tenants.accounts.batchGet" call. +// Exactly one of *GoogleCloudIdentitytoolkitV1DownloadAccountResponse +// or error will be non-nil. Any non-2xx status code is an error. +// Response headers are in either +// *GoogleCloudIdentitytoolkitV1DownloadAccountResponse.ServerResponse.He +// ader 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 *ProjectsTenantsAccountsBatchGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIdentitytoolkitV1DownloadAccountResponse, 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, &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, err + } + ret := &GoogleCloudIdentitytoolkitV1DownloadAccountResponse{ + 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": "Download account information for all accounts on the project in a paginated manner. To use this method requires a Google OAuth 2.0 credential with proper [permissions](https://cloud.google.com/identity-platform/docs/access-control).. Furthermore, additional permissions are needed to get password hash, password salt, and password version from accounts; otherwise these fields are redacted.", + // "flatPath": "v1/projects/{projectsId}/tenants/{tenantsId}/accounts:batchGet", + // "httpMethod": "GET", + // "id": "identitytoolkit.projects.tenants.accounts.batchGet", + // "parameterOrder": [ + // "targetProjectId", + // "tenantId" + // ], + // "parameters": { + // "delegatedProjectNumber": { + // "format": "int64", + // "location": "query", + // "type": "string" + // }, + // "maxResults": { + // "description": "The maximum number of results to return. Must be at least 1 and no greater than 1000. By default, it is 20.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "nextPageToken": { + // "description": "The pagination token from the response of a previous request.", + // "location": "query", + // "type": "string" + // }, + // "targetProjectId": { + // "description": "If `tenant_id` is specified, the ID of the Google Cloud project that the Identity Platform tenant belongs to. Otherwise, the ID of the Google Cloud project that the accounts belong to.", + // "location": "path", + // "pattern": "^[^/]+$", + // "required": true, + // "type": "string" + // }, + // "tenantId": { + // "description": "The ID of the Identity Platform tenant the accounts belongs to. If not specified, accounts on the Identity Platform project are returned.", + // "location": "path", + // "pattern": "^[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/projects/{+targetProjectId}/tenants/{+tenantId}/accounts:batchGet", + // "response": { + // "$ref": "GoogleCloudIdentitytoolkitV1DownloadAccountResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/firebase" + // ] + // } + +} + +// 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 *ProjectsTenantsAccountsBatchGetCall) Pages(ctx context.Context, f func(*GoogleCloudIdentitytoolkitV1DownloadAccountResponse) error) error { + c.ctx_ = ctx + defer c.NextPageToken(c.urlParams_.Get("nextPageToken")) // 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.NextPageToken(x.NextPageToken) + } +} + +// method id "identitytoolkit.projects.tenants.accounts.delete": + +type ProjectsTenantsAccountsDeleteCall struct { + s *Service + targetProjectId string + tenantId string + googlecloudidentitytoolkitv1deleteaccountrequest *GoogleCloudIdentitytoolkitV1DeleteAccountRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Delete: Deletes a user's account. +// +// - targetProjectId: The ID of the project which the account belongs +// to. Should only be specified in authenticated requests that specify +// local_id of an account. +// - tenantId: The ID of the tenant that the account belongs to, if +// applicable. Only require to be specified for authenticated requests +// bearing a Google OAuth 2.0 credential that specify local_id of an +// account that belongs to an Identity Platform tenant. +func (r *ProjectsTenantsAccountsService) Delete(targetProjectId string, tenantId string, googlecloudidentitytoolkitv1deleteaccountrequest *GoogleCloudIdentitytoolkitV1DeleteAccountRequest) *ProjectsTenantsAccountsDeleteCall { + c := &ProjectsTenantsAccountsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.targetProjectId = targetProjectId + c.tenantId = tenantId + c.googlecloudidentitytoolkitv1deleteaccountrequest = googlecloudidentitytoolkitv1deleteaccountrequest + 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 *ProjectsTenantsAccountsDeleteCall) Fields(s ...googleapi.Field) *ProjectsTenantsAccountsDeleteCall { + 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 *ProjectsTenantsAccountsDeleteCall) Context(ctx context.Context) *ProjectsTenantsAccountsDeleteCall { + 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 *ProjectsTenantsAccountsDeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsTenantsAccountsDeleteCall) 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.googlecloudidentitytoolkitv1deleteaccountrequest) + 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/projects/{+targetProjectId}/tenants/{+tenantId}/accounts:delete") + 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{ + "targetProjectId": c.targetProjectId, + "tenantId": c.tenantId, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "identitytoolkit.projects.tenants.accounts.delete" call. +// Exactly one of *GoogleCloudIdentitytoolkitV1DeleteAccountResponse or +// error will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudIdentitytoolkitV1DeleteAccountResponse.ServerResponse.Head +// er or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsTenantsAccountsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIdentitytoolkitV1DeleteAccountResponse, 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, &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, err + } + ret := &GoogleCloudIdentitytoolkitV1DeleteAccountResponse{ + 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 user's account.", + // "flatPath": "v1/projects/{projectsId}/tenants/{tenantsId}/accounts:delete", + // "httpMethod": "POST", + // "id": "identitytoolkit.projects.tenants.accounts.delete", + // "parameterOrder": [ + // "targetProjectId", + // "tenantId" + // ], + // "parameters": { + // "targetProjectId": { + // "description": "The ID of the project which the account belongs to. Should only be specified in authenticated requests that specify local_id of an account.", + // "location": "path", + // "pattern": "^[^/]+$", + // "required": true, + // "type": "string" + // }, + // "tenantId": { + // "description": "The ID of the tenant that the account belongs to, if applicable. Only require to be specified for authenticated requests bearing a Google OAuth 2.0 credential that specify local_id of an account that belongs to an Identity Platform tenant.", + // "location": "path", + // "pattern": "^[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/projects/{+targetProjectId}/tenants/{+tenantId}/accounts:delete", + // "request": { + // "$ref": "GoogleCloudIdentitytoolkitV1DeleteAccountRequest" + // }, + // "response": { + // "$ref": "GoogleCloudIdentitytoolkitV1DeleteAccountResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "identitytoolkit.projects.tenants.accounts.lookup": + +type ProjectsTenantsAccountsLookupCall struct { + s *Service + targetProjectId string + tenantId string + googlecloudidentitytoolkitv1getaccountinforequest *GoogleCloudIdentitytoolkitV1GetAccountInfoRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Lookup: Gets account information for all matched accounts. For an end +// user request, retrieves the account of the end user. For an admin +// request with Google OAuth 2.0 credential, retrieves one or multiple +// account(s) with matching criteria. +// +// - targetProjectId: The ID of the Google Cloud project that the +// account or the Identity Platform tenant specified by `tenant_id` +// belongs to. Should only be specified by authenticated requests +// bearing a Google OAuth 2.0 credential with proper permissions +// (https://cloud.google.com/identity-platform/docs/access-control). +// - tenantId: The ID of the tenant that the account belongs to. Should +// only be specified by authenticated requests from a developer. +func (r *ProjectsTenantsAccountsService) Lookup(targetProjectId string, tenantId string, googlecloudidentitytoolkitv1getaccountinforequest *GoogleCloudIdentitytoolkitV1GetAccountInfoRequest) *ProjectsTenantsAccountsLookupCall { + c := &ProjectsTenantsAccountsLookupCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.targetProjectId = targetProjectId + c.tenantId = tenantId + c.googlecloudidentitytoolkitv1getaccountinforequest = googlecloudidentitytoolkitv1getaccountinforequest + 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 *ProjectsTenantsAccountsLookupCall) Fields(s ...googleapi.Field) *ProjectsTenantsAccountsLookupCall { + 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 *ProjectsTenantsAccountsLookupCall) Context(ctx context.Context) *ProjectsTenantsAccountsLookupCall { + 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 *ProjectsTenantsAccountsLookupCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsTenantsAccountsLookupCall) 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.googlecloudidentitytoolkitv1getaccountinforequest) + 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/projects/{+targetProjectId}/tenants/{+tenantId}/accounts:lookup") + 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{ + "targetProjectId": c.targetProjectId, + "tenantId": c.tenantId, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "identitytoolkit.projects.tenants.accounts.lookup" call. +// Exactly one of *GoogleCloudIdentitytoolkitV1GetAccountInfoResponse or +// error will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudIdentitytoolkitV1GetAccountInfoResponse.ServerResponse.Hea +// der 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 *ProjectsTenantsAccountsLookupCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIdentitytoolkitV1GetAccountInfoResponse, 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, &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, err + } + ret := &GoogleCloudIdentitytoolkitV1GetAccountInfoResponse{ + 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 account information for all matched accounts. For an end user request, retrieves the account of the end user. For an admin request with Google OAuth 2.0 credential, retrieves one or multiple account(s) with matching criteria.", + // "flatPath": "v1/projects/{projectsId}/tenants/{tenantsId}/accounts:lookup", + // "httpMethod": "POST", + // "id": "identitytoolkit.projects.tenants.accounts.lookup", + // "parameterOrder": [ + // "targetProjectId", + // "tenantId" + // ], + // "parameters": { + // "targetProjectId": { + // "description": "The ID of the Google Cloud project that the account or the Identity Platform tenant specified by `tenant_id` belongs to. Should only be specified by authenticated requests bearing a Google OAuth 2.0 credential with proper [permissions](https://cloud.google.com/identity-platform/docs/access-control).", + // "location": "path", + // "pattern": "^[^/]+$", + // "required": true, + // "type": "string" + // }, + // "tenantId": { + // "description": "The ID of the tenant that the account belongs to. Should only be specified by authenticated requests from a developer.", + // "location": "path", + // "pattern": "^[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/projects/{+targetProjectId}/tenants/{+tenantId}/accounts:lookup", + // "request": { + // "$ref": "GoogleCloudIdentitytoolkitV1GetAccountInfoRequest" + // }, + // "response": { + // "$ref": "GoogleCloudIdentitytoolkitV1GetAccountInfoResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "identitytoolkit.projects.tenants.accounts.query": + +type ProjectsTenantsAccountsQueryCall struct { + s *Service + targetProjectId string + tenantId string + googlecloudidentitytoolkitv1queryuserinforequest *GoogleCloudIdentitytoolkitV1QueryUserInfoRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Query: Looks up user accounts within a project or a tenant based on +// conditions in the request. +// +// - targetProjectId: The ID of the project to which the result is +// scoped. +// - tenantId: The ID of the tenant to which the result is scoped. +func (r *ProjectsTenantsAccountsService) Query(targetProjectId string, tenantId string, googlecloudidentitytoolkitv1queryuserinforequest *GoogleCloudIdentitytoolkitV1QueryUserInfoRequest) *ProjectsTenantsAccountsQueryCall { + c := &ProjectsTenantsAccountsQueryCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.targetProjectId = targetProjectId + c.tenantId = tenantId + c.googlecloudidentitytoolkitv1queryuserinforequest = googlecloudidentitytoolkitv1queryuserinforequest + 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 *ProjectsTenantsAccountsQueryCall) Fields(s ...googleapi.Field) *ProjectsTenantsAccountsQueryCall { + 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 *ProjectsTenantsAccountsQueryCall) Context(ctx context.Context) *ProjectsTenantsAccountsQueryCall { + 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 *ProjectsTenantsAccountsQueryCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsTenantsAccountsQueryCall) 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.googlecloudidentitytoolkitv1queryuserinforequest) + 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/projects/{+targetProjectId}/tenants/{+tenantId}/accounts:query") + 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{ + "targetProjectId": c.targetProjectId, + "tenantId": c.tenantId, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "identitytoolkit.projects.tenants.accounts.query" call. +// Exactly one of *GoogleCloudIdentitytoolkitV1QueryUserInfoResponse or +// error will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudIdentitytoolkitV1QueryUserInfoResponse.ServerResponse.Head +// er or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsTenantsAccountsQueryCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIdentitytoolkitV1QueryUserInfoResponse, 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, &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, err + } + ret := &GoogleCloudIdentitytoolkitV1QueryUserInfoResponse{ + 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": "Looks up user accounts within a project or a tenant based on conditions in the request.", + // "flatPath": "v1/projects/{projectsId}/tenants/{tenantsId}/accounts:query", + // "httpMethod": "POST", + // "id": "identitytoolkit.projects.tenants.accounts.query", + // "parameterOrder": [ + // "targetProjectId", + // "tenantId" + // ], + // "parameters": { + // "targetProjectId": { + // "description": "The ID of the project to which the result is scoped.", + // "location": "path", + // "pattern": "^[^/]+$", + // "required": true, + // "type": "string" + // }, + // "tenantId": { + // "description": "The ID of the tenant to which the result is scoped.", + // "location": "path", + // "pattern": "^[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/projects/{+targetProjectId}/tenants/{+tenantId}/accounts:query", + // "request": { + // "$ref": "GoogleCloudIdentitytoolkitV1QueryUserInfoRequest" + // }, + // "response": { + // "$ref": "GoogleCloudIdentitytoolkitV1QueryUserInfoResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/firebase" + // ] + // } + +} + +// method id "identitytoolkit.projects.tenants.accounts.sendOobCode": + +type ProjectsTenantsAccountsSendOobCodeCall struct { + s *Service + targetProjectId string + tenantId string + googlecloudidentitytoolkitv1getoobcoderequest *GoogleCloudIdentitytoolkitV1GetOobCodeRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// SendOobCode: Sends an out-of-band confirmation code for an account. +// Requests from a authenticated request can optionally return a link +// including the OOB code instead of sending it. +// +// - targetProjectId: The Project ID of the Identity Platform project +// which the account belongs to. To specify this field, it requires a +// Google OAuth 2.0 credential with proper permissions +// (https://cloud.google.com/identity-platform/docs/access-control). +// - tenantId: The tenant ID of the Identity Platform tenant the account +// belongs to. +func (r *ProjectsTenantsAccountsService) SendOobCode(targetProjectId string, tenantId string, googlecloudidentitytoolkitv1getoobcoderequest *GoogleCloudIdentitytoolkitV1GetOobCodeRequest) *ProjectsTenantsAccountsSendOobCodeCall { + c := &ProjectsTenantsAccountsSendOobCodeCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.targetProjectId = targetProjectId + c.tenantId = tenantId + c.googlecloudidentitytoolkitv1getoobcoderequest = googlecloudidentitytoolkitv1getoobcoderequest + 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 *ProjectsTenantsAccountsSendOobCodeCall) Fields(s ...googleapi.Field) *ProjectsTenantsAccountsSendOobCodeCall { + 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 *ProjectsTenantsAccountsSendOobCodeCall) Context(ctx context.Context) *ProjectsTenantsAccountsSendOobCodeCall { + 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 *ProjectsTenantsAccountsSendOobCodeCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsTenantsAccountsSendOobCodeCall) 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.googlecloudidentitytoolkitv1getoobcoderequest) + 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/projects/{+targetProjectId}/tenants/{+tenantId}/accounts:sendOobCode") + 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{ + "targetProjectId": c.targetProjectId, + "tenantId": c.tenantId, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "identitytoolkit.projects.tenants.accounts.sendOobCode" call. +// Exactly one of *GoogleCloudIdentitytoolkitV1GetOobCodeResponse or +// error will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudIdentitytoolkitV1GetOobCodeResponse.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 *ProjectsTenantsAccountsSendOobCodeCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIdentitytoolkitV1GetOobCodeResponse, 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, &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, err + } + ret := &GoogleCloudIdentitytoolkitV1GetOobCodeResponse{ + 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": "Sends an out-of-band confirmation code for an account. Requests from a authenticated request can optionally return a link including the OOB code instead of sending it.", + // "flatPath": "v1/projects/{projectsId}/tenants/{tenantsId}/accounts:sendOobCode", + // "httpMethod": "POST", + // "id": "identitytoolkit.projects.tenants.accounts.sendOobCode", + // "parameterOrder": [ + // "targetProjectId", + // "tenantId" + // ], + // "parameters": { + // "targetProjectId": { + // "description": "The Project ID of the Identity Platform project which the account belongs to. To specify this field, it requires a Google OAuth 2.0 credential with proper [permissions](https://cloud.google.com/identity-platform/docs/access-control).", + // "location": "path", + // "pattern": "^[^/]+$", + // "required": true, + // "type": "string" + // }, + // "tenantId": { + // "description": "The tenant ID of the Identity Platform tenant the account belongs to.", + // "location": "path", + // "pattern": "^[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/projects/{+targetProjectId}/tenants/{+tenantId}/accounts:sendOobCode", + // "request": { + // "$ref": "GoogleCloudIdentitytoolkitV1GetOobCodeRequest" + // }, + // "response": { + // "$ref": "GoogleCloudIdentitytoolkitV1GetOobCodeResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "identitytoolkit.projects.tenants.accounts.update": + +type ProjectsTenantsAccountsUpdateCall struct { + s *Service + targetProjectId string + tenantId string + googlecloudidentitytoolkitv1setaccountinforequest *GoogleCloudIdentitytoolkitV1SetAccountInfoRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Update: Updates account-related information for the specified user by +// setting specific fields or applying action codes. Requests from +// administrators and end users are supported. +// +// - targetProjectId: The project ID for the project that the account +// belongs to. Specifying this field requires Google OAuth 2.0 +// credential with proper permissions +// (https://cloud.google.com/identity-platform/docs/access-control). +// Requests from end users should pass an Identity Platform ID token +// instead. +// - tenantId: The tenant ID of the Identity Platform tenant that the +// account belongs to. Requests from end users should pass an Identity +// Platform ID token rather than setting this field. +func (r *ProjectsTenantsAccountsService) Update(targetProjectId string, tenantId string, googlecloudidentitytoolkitv1setaccountinforequest *GoogleCloudIdentitytoolkitV1SetAccountInfoRequest) *ProjectsTenantsAccountsUpdateCall { + c := &ProjectsTenantsAccountsUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.targetProjectId = targetProjectId + c.tenantId = tenantId + c.googlecloudidentitytoolkitv1setaccountinforequest = googlecloudidentitytoolkitv1setaccountinforequest + 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 *ProjectsTenantsAccountsUpdateCall) Fields(s ...googleapi.Field) *ProjectsTenantsAccountsUpdateCall { + 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 *ProjectsTenantsAccountsUpdateCall) Context(ctx context.Context) *ProjectsTenantsAccountsUpdateCall { + 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 *ProjectsTenantsAccountsUpdateCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsTenantsAccountsUpdateCall) 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.googlecloudidentitytoolkitv1setaccountinforequest) + 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/projects/{+targetProjectId}/tenants/{+tenantId}/accounts:update") + 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{ + "targetProjectId": c.targetProjectId, + "tenantId": c.tenantId, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "identitytoolkit.projects.tenants.accounts.update" call. +// Exactly one of *GoogleCloudIdentitytoolkitV1SetAccountInfoResponse or +// error will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudIdentitytoolkitV1SetAccountInfoResponse.ServerResponse.Hea +// der 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 *ProjectsTenantsAccountsUpdateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIdentitytoolkitV1SetAccountInfoResponse, 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, &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, err + } + ret := &GoogleCloudIdentitytoolkitV1SetAccountInfoResponse{ + 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 account-related information for the specified user by setting specific fields or applying action codes. Requests from administrators and end users are supported.", + // "flatPath": "v1/projects/{projectsId}/tenants/{tenantsId}/accounts:update", + // "httpMethod": "POST", + // "id": "identitytoolkit.projects.tenants.accounts.update", + // "parameterOrder": [ + // "targetProjectId", + // "tenantId" + // ], + // "parameters": { + // "targetProjectId": { + // "description": "The project ID for the project that the account belongs to. Specifying this field requires Google OAuth 2.0 credential with proper permissions (https://cloud.google.com/identity-platform/docs/access-control). Requests from end users should pass an Identity Platform ID token instead.", + // "location": "path", + // "pattern": "^[^/]+$", + // "required": true, + // "type": "string" + // }, + // "tenantId": { + // "description": "The tenant ID of the Identity Platform tenant that the account belongs to. Requests from end users should pass an Identity Platform ID token rather than setting this field.", + // "location": "path", + // "pattern": "^[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/projects/{+targetProjectId}/tenants/{+tenantId}/accounts:update", + // "request": { + // "$ref": "GoogleCloudIdentitytoolkitV1SetAccountInfoRequest" + // }, + // "response": { + // "$ref": "GoogleCloudIdentitytoolkitV1SetAccountInfoResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "identitytoolkit.getProjects": + +type V1GetProjectsCall struct { + s *Service + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// GetProjects: Gets a project's public Identity Toolkit configuration. +// (Legacy) This method also supports authenticated calls from a +// developer to retrieve non-public configuration. +func (r *V1Service) GetProjects() *V1GetProjectsCall { + c := &V1GetProjectsCall{s: r.s, urlParams_: make(gensupport.URLParams)} + return c +} + +// AndroidPackageName sets the optional parameter "androidPackageName": +// Android package name to check against the real android package name. +// If this field is provided, and sha1_cert_hash is not provided, the +// action will throw an error if this does not match the real android +// package name. +func (c *V1GetProjectsCall) AndroidPackageName(androidPackageName string) *V1GetProjectsCall { + c.urlParams_.Set("androidPackageName", androidPackageName) + return c +} + +// ClientId sets the optional parameter "clientId": The RP OAuth client +// ID. If set, a check will be performed to ensure that the OAuth client +// is valid for the retrieved project and the request rejected with a +// client error if not valid. +func (c *V1GetProjectsCall) ClientId(clientId string) *V1GetProjectsCall { + c.urlParams_.Set("clientId", clientId) + return c +} + +// DelegatedProjectNumber sets the optional parameter +// "delegatedProjectNumber": Project Number of the delegated project +// request. This field should only be used as part of the Firebase V1 +// migration. +func (c *V1GetProjectsCall) DelegatedProjectNumber(delegatedProjectNumber int64) *V1GetProjectsCall { + c.urlParams_.Set("delegatedProjectNumber", fmt.Sprint(delegatedProjectNumber)) + return c +} + +// FirebaseAppId sets the optional parameter "firebaseAppId": The +// Firebase app ID, for applications that use Firebase. This can be +// found in the Firebase console for your project. If set, a check will +// be performed to ensure that the app ID is valid for the retrieved +// project. If not valid, the request will be rejected with a client +// error. +func (c *V1GetProjectsCall) FirebaseAppId(firebaseAppId string) *V1GetProjectsCall { + c.urlParams_.Set("firebaseAppId", firebaseAppId) + return c +} + +// IosBundleId sets the optional parameter "iosBundleId": iOS bundle id +// to check against the real ios bundle id. If this field is provided, +// the action will throw an error if this does not match the real iOS +// bundle id. +func (c *V1GetProjectsCall) IosBundleId(iosBundleId string) *V1GetProjectsCall { + c.urlParams_.Set("iosBundleId", iosBundleId) + return c +} + +// ProjectNumber sets the optional parameter "projectNumber": Project +// number of the configuration to retrieve. This field is deprecated and +// should not be used by new integrations. +func (c *V1GetProjectsCall) ProjectNumber(projectNumber int64) *V1GetProjectsCall { + c.urlParams_.Set("projectNumber", fmt.Sprint(projectNumber)) + return c +} + +// ReturnDynamicLink sets the optional parameter "returnDynamicLink": +// Whether dynamic link should be returned. +func (c *V1GetProjectsCall) ReturnDynamicLink(returnDynamicLink bool) *V1GetProjectsCall { + c.urlParams_.Set("returnDynamicLink", fmt.Sprint(returnDynamicLink)) + return c +} + +// Sha1Cert sets the optional parameter "sha1Cert": SHA-1 Android +// application cert hash. If set, a check will be performed to ensure +// that the cert hash is valid for the retrieved project and +// android_package_name. +func (c *V1GetProjectsCall) Sha1Cert(sha1Cert string) *V1GetProjectsCall { + c.urlParams_.Set("sha1Cert", sha1Cert) + 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 *V1GetProjectsCall) Fields(s ...googleapi.Field) *V1GetProjectsCall { + 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 *V1GetProjectsCall) IfNoneMatch(entityTag string) *V1GetProjectsCall { + 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 *V1GetProjectsCall) Context(ctx context.Context) *V1GetProjectsCall { + 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 *V1GetProjectsCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *V1GetProjectsCall) 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/projects") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "identitytoolkit.getProjects" call. +// Exactly one of *GoogleCloudIdentitytoolkitV1GetProjectConfigResponse +// or error will be non-nil. Any non-2xx status code is an error. +// Response headers are in either +// *GoogleCloudIdentitytoolkitV1GetProjectConfigResponse.ServerResponse.H +// eader 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 *V1GetProjectsCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIdentitytoolkitV1GetProjectConfigResponse, 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, &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, err + } + ret := &GoogleCloudIdentitytoolkitV1GetProjectConfigResponse{ + 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 a project's public Identity Toolkit configuration. (Legacy) This method also supports authenticated calls from a developer to retrieve non-public configuration.", + // "flatPath": "v1/projects", + // "httpMethod": "GET", + // "id": "identitytoolkit.getProjects", + // "parameterOrder": [], + // "parameters": { + // "androidPackageName": { + // "description": "Android package name to check against the real android package name. If this field is provided, and sha1_cert_hash is not provided, the action will throw an error if this does not match the real android package name.", + // "location": "query", + // "type": "string" + // }, + // "clientId": { + // "description": "The RP OAuth client ID. If set, a check will be performed to ensure that the OAuth client is valid for the retrieved project and the request rejected with a client error if not valid.", + // "location": "query", + // "type": "string" + // }, + // "delegatedProjectNumber": { + // "description": "Project Number of the delegated project request. This field should only be used as part of the Firebase V1 migration.", + // "format": "int64", + // "location": "query", + // "type": "string" + // }, + // "firebaseAppId": { + // "description": "The Firebase app ID, for applications that use Firebase. This can be found in the Firebase console for your project. If set, a check will be performed to ensure that the app ID is valid for the retrieved project. If not valid, the request will be rejected with a client error.", + // "location": "query", + // "type": "string" + // }, + // "iosBundleId": { + // "description": "iOS bundle id to check against the real ios bundle id. If this field is provided, the action will throw an error if this does not match the real iOS bundle id.", + // "location": "query", + // "type": "string" + // }, + // "projectNumber": { + // "description": "Project number of the configuration to retrieve. This field is deprecated and should not be used by new integrations.", + // "format": "int64", + // "location": "query", + // "type": "string" + // }, + // "returnDynamicLink": { + // "description": "Whether dynamic link should be returned.", + // "location": "query", + // "type": "boolean" + // }, + // "sha1Cert": { + // "description": "SHA-1 Android application cert hash. If set, a check will be performed to ensure that the cert hash is valid for the retrieved project and android_package_name.", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1/projects", + // "response": { + // "$ref": "GoogleCloudIdentitytoolkitV1GetProjectConfigResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "identitytoolkit.getPublicKeys": + +type V1GetPublicKeysCall struct { + s *Service + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// GetPublicKeys: Retrieves public keys of the legacy Identity Toolkit +// token signer to enable third parties to verify the legacy ID token. +// For now the X509 pem cert is the only format supported. +func (r *V1Service) GetPublicKeys() *V1GetPublicKeysCall { + c := &V1GetPublicKeysCall{s: r.s, urlParams_: make(gensupport.URLParams)} + 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 *V1GetPublicKeysCall) Fields(s ...googleapi.Field) *V1GetPublicKeysCall { + 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 *V1GetPublicKeysCall) IfNoneMatch(entityTag string) *V1GetPublicKeysCall { + 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 *V1GetPublicKeysCall) Context(ctx context.Context) *V1GetPublicKeysCall { + 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 *V1GetPublicKeysCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *V1GetPublicKeysCall) 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/publicKeys") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "identitytoolkit.getPublicKeys" call. +func (c *V1GetPublicKeysCall) Do(opts ...googleapi.CallOption) error { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if err != nil { + return err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return err + } + return nil + // { + // "description": "Retrieves public keys of the legacy Identity Toolkit token signer to enable third parties to verify the legacy ID token. For now the X509 pem cert is the only format supported.", + // "flatPath": "v1/publicKeys", + // "httpMethod": "GET", + // "id": "identitytoolkit.getPublicKeys", + // "parameterOrder": [], + // "parameters": {}, + // "path": "v1/publicKeys", + // "response": { + // "additionalProperties": { + // "description": "Properties of the object.", + // "type": "any" + // }, + // "type": "object" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "identitytoolkit.getRecaptchaParams": + +type V1GetRecaptchaParamsCall struct { + s *Service + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// GetRecaptchaParams: Gets parameters needed for generating a reCAPTCHA +// challenge. +func (r *V1Service) GetRecaptchaParams() *V1GetRecaptchaParamsCall { + c := &V1GetRecaptchaParamsCall{s: r.s, urlParams_: make(gensupport.URLParams)} + 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 *V1GetRecaptchaParamsCall) Fields(s ...googleapi.Field) *V1GetRecaptchaParamsCall { + 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 *V1GetRecaptchaParamsCall) IfNoneMatch(entityTag string) *V1GetRecaptchaParamsCall { + 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 *V1GetRecaptchaParamsCall) Context(ctx context.Context) *V1GetRecaptchaParamsCall { + 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 *V1GetRecaptchaParamsCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *V1GetRecaptchaParamsCall) 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/recaptchaParams") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "identitytoolkit.getRecaptchaParams" call. +// Exactly one of *GoogleCloudIdentitytoolkitV1GetRecaptchaParamResponse +// or error will be non-nil. Any non-2xx status code is an error. +// Response headers are in either +// *GoogleCloudIdentitytoolkitV1GetRecaptchaParamResponse.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 *V1GetRecaptchaParamsCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIdentitytoolkitV1GetRecaptchaParamResponse, 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, &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, err + } + ret := &GoogleCloudIdentitytoolkitV1GetRecaptchaParamResponse{ + 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 parameters needed for generating a reCAPTCHA challenge.", + // "flatPath": "v1/recaptchaParams", + // "httpMethod": "GET", + // "id": "identitytoolkit.getRecaptchaParams", + // "parameterOrder": [], + // "parameters": {}, + // "path": "v1/recaptchaParams", + // "response": { + // "$ref": "GoogleCloudIdentitytoolkitV1GetRecaptchaParamResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "identitytoolkit.getSessionCookiePublicKeys": + +type V1GetSessionCookiePublicKeysCall struct { + s *Service + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// GetSessionCookiePublicKeys: Retrieves the set of public keys of the +// session cookie JSON Web Token (JWT) signer that can be used to +// validate the session cookie created through createSessionCookie. +func (r *V1Service) GetSessionCookiePublicKeys() *V1GetSessionCookiePublicKeysCall { + c := &V1GetSessionCookiePublicKeysCall{s: r.s, urlParams_: make(gensupport.URLParams)} + 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 *V1GetSessionCookiePublicKeysCall) Fields(s ...googleapi.Field) *V1GetSessionCookiePublicKeysCall { + 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 *V1GetSessionCookiePublicKeysCall) IfNoneMatch(entityTag string) *V1GetSessionCookiePublicKeysCall { + 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 *V1GetSessionCookiePublicKeysCall) Context(ctx context.Context) *V1GetSessionCookiePublicKeysCall { + 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 *V1GetSessionCookiePublicKeysCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *V1GetSessionCookiePublicKeysCall) 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/sessionCookiePublicKeys") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "identitytoolkit.getSessionCookiePublicKeys" call. +// Exactly one of +// *GoogleCloudIdentitytoolkitV1GetSessionCookiePublicKeysResponse or +// error will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudIdentitytoolkitV1GetSessionCookiePublicKeysResponse.Server +// Response.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 *V1GetSessionCookiePublicKeysCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIdentitytoolkitV1GetSessionCookiePublicKeysResponse, 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, &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, err + } + ret := &GoogleCloudIdentitytoolkitV1GetSessionCookiePublicKeysResponse{ + 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": "Retrieves the set of public keys of the session cookie JSON Web Token (JWT) signer that can be used to validate the session cookie created through createSessionCookie.", + // "flatPath": "v1/sessionCookiePublicKeys", + // "httpMethod": "GET", + // "id": "identitytoolkit.getSessionCookiePublicKeys", + // "parameterOrder": [], + // "parameters": {}, + // "path": "v1/sessionCookiePublicKeys", + // "response": { + // "$ref": "GoogleCloudIdentitytoolkitV1GetSessionCookiePublicKeysResponse" + // } + // } + +} diff --git a/identitytoolkit/v2/identitytoolkit-api.json b/identitytoolkit/v2/identitytoolkit-api.json new file mode 100644 index 00000000000..0e8939e7d6d --- /dev/null +++ b/identitytoolkit/v2/identitytoolkit-api.json @@ -0,0 +1,3040 @@ +{ + "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." + }, + "https://www.googleapis.com/auth/firebase": { + "description": "View and administer all your Firebase data and settings" + } + } + } + }, + "basePath": "", + "baseUrl": "https://identitytoolkit.googleapis.com/", + "batchPath": "batch", + "canonicalName": "Identity Toolkit", + "description": "The Google Identity Toolkit API lets you use open standards to verify a user's identity.", + "discoveryVersion": "v1", + "documentationLink": "https://firebase.google.com/docs/auth/", + "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": "identitytoolkit:v2", + "kind": "discovery#restDescription", + "mtlsRootUrl": "https://identitytoolkit.mtls.googleapis.com/", + "name": "identitytoolkit", + "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": { + "accounts": { + "resources": { + "mfaEnrollment": { + "methods": { + "finalize": { + "description": "Finishes enrolling a second factor for the user.", + "flatPath": "v2/accounts/mfaEnrollment:finalize", + "httpMethod": "POST", + "id": "identitytoolkit.accounts.mfaEnrollment.finalize", + "parameterOrder": [], + "parameters": {}, + "path": "v2/accounts/mfaEnrollment:finalize", + "request": { + "$ref": "GoogleCloudIdentitytoolkitV2FinalizeMfaEnrollmentRequest" + }, + "response": { + "$ref": "GoogleCloudIdentitytoolkitV2FinalizeMfaEnrollmentResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "start": { + "description": "Step one of the MFA enrollment process. In SMS case, this sends an SMS verification code to the user.", + "flatPath": "v2/accounts/mfaEnrollment:start", + "httpMethod": "POST", + "id": "identitytoolkit.accounts.mfaEnrollment.start", + "parameterOrder": [], + "parameters": {}, + "path": "v2/accounts/mfaEnrollment:start", + "request": { + "$ref": "GoogleCloudIdentitytoolkitV2StartMfaEnrollmentRequest" + }, + "response": { + "$ref": "GoogleCloudIdentitytoolkitV2StartMfaEnrollmentResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "withdraw": { + "description": "Revokes one second factor from the enrolled second factors for an account.", + "flatPath": "v2/accounts/mfaEnrollment:withdraw", + "httpMethod": "POST", + "id": "identitytoolkit.accounts.mfaEnrollment.withdraw", + "parameterOrder": [], + "parameters": {}, + "path": "v2/accounts/mfaEnrollment:withdraw", + "request": { + "$ref": "GoogleCloudIdentitytoolkitV2WithdrawMfaRequest" + }, + "response": { + "$ref": "GoogleCloudIdentitytoolkitV2WithdrawMfaResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + }, + "mfaSignIn": { + "methods": { + "finalize": { + "description": "Verifies the MFA challenge and performs sign-in", + "flatPath": "v2/accounts/mfaSignIn:finalize", + "httpMethod": "POST", + "id": "identitytoolkit.accounts.mfaSignIn.finalize", + "parameterOrder": [], + "parameters": {}, + "path": "v2/accounts/mfaSignIn:finalize", + "request": { + "$ref": "GoogleCloudIdentitytoolkitV2FinalizeMfaSignInRequest" + }, + "response": { + "$ref": "GoogleCloudIdentitytoolkitV2FinalizeMfaSignInResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "start": { + "description": "Sends the MFA challenge", + "flatPath": "v2/accounts/mfaSignIn:start", + "httpMethod": "POST", + "id": "identitytoolkit.accounts.mfaSignIn.start", + "parameterOrder": [], + "parameters": {}, + "path": "v2/accounts/mfaSignIn:start", + "request": { + "$ref": "GoogleCloudIdentitytoolkitV2StartMfaSignInRequest" + }, + "response": { + "$ref": "GoogleCloudIdentitytoolkitV2StartMfaSignInResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + } + } + }, + "defaultSupportedIdps": { + "methods": { + "list": { + "description": "List all default supported Idps.", + "flatPath": "v2/defaultSupportedIdps", + "httpMethod": "GET", + "id": "identitytoolkit.defaultSupportedIdps.list", + "parameterOrder": [], + "parameters": { + "pageSize": { + "description": "The maximum number of items to return.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "The next_page_token value returned from a previous List request, if any.", + "location": "query", + "type": "string" + } + }, + "path": "v2/defaultSupportedIdps", + "response": { + "$ref": "GoogleCloudIdentitytoolkitAdminV2ListDefaultSupportedIdpsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/firebase" + ] + } + } + }, + "projects": { + "methods": { + "getConfig": { + "description": "Retrieve an Identity Toolkit project configuration.", + "flatPath": "v2/projects/{projectsId}/config", + "httpMethod": "GET", + "id": "identitytoolkit.projects.getConfig", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The resource name of the config, for example: \"projects/my-awesome-project/config\"", + "location": "path", + "pattern": "^projects/[^/]+/config$", + "required": true, + "type": "string" + } + }, + "path": "v2/{+name}", + "response": { + "$ref": "GoogleCloudIdentitytoolkitAdminV2Config" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "updateConfig": { + "description": "Update an Identity Toolkit project configuration.", + "flatPath": "v2/projects/{projectsId}/config", + "httpMethod": "PATCH", + "id": "identitytoolkit.projects.updateConfig", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Output only. The name of the Config resource. Example: \"projects/my-awesome-project/config\"", + "location": "path", + "pattern": "^projects/[^/]+/config$", + "required": true, + "type": "string" + }, + "updateMask": { + "description": "The update mask applies to the resource. Fields set in the config but not included in this update mask will be ignored. For the `FieldMask` definition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask", + "format": "google-fieldmask", + "location": "query", + "type": "string" + } + }, + "path": "v2/{+name}", + "request": { + "$ref": "GoogleCloudIdentitytoolkitAdminV2Config" + }, + "response": { + "$ref": "GoogleCloudIdentitytoolkitAdminV2Config" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/firebase" + ] + } + }, + "resources": { + "defaultSupportedIdpConfigs": { + "methods": { + "create": { + "description": "Create a default supported Idp configuration for an Identity Toolkit project.", + "flatPath": "v2/projects/{projectsId}/defaultSupportedIdpConfigs", + "httpMethod": "POST", + "id": "identitytoolkit.projects.defaultSupportedIdpConfigs.create", + "parameterOrder": [ + "parent" + ], + "parameters": { + "idpId": { + "description": "The id of the Idp to create a config for. Call ListDefaultSupportedIdps for list of all default supported Idps.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "The parent resource name where the config to be created, for example: \"projects/my-awesome-project\"", + "location": "path", + "pattern": "^projects/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v2/{+parent}/defaultSupportedIdpConfigs", + "request": { + "$ref": "GoogleCloudIdentitytoolkitAdminV2DefaultSupportedIdpConfig" + }, + "response": { + "$ref": "GoogleCloudIdentitytoolkitAdminV2DefaultSupportedIdpConfig" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/firebase" + ] + }, + "delete": { + "description": "Delete a default supported Idp configuration for an Identity Toolkit project.", + "flatPath": "v2/projects/{projectsId}/defaultSupportedIdpConfigs/{defaultSupportedIdpConfigsId}", + "httpMethod": "DELETE", + "id": "identitytoolkit.projects.defaultSupportedIdpConfigs.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The resource name of the config, for example: \"projects/my-awesome-project/defaultSupportedIdpConfigs/google.com\"", + "location": "path", + "pattern": "^projects/[^/]+/defaultSupportedIdpConfigs/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v2/{+name}", + "response": { + "$ref": "GoogleProtobufEmpty" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/firebase" + ] + }, + "get": { + "description": "Retrieve a default supported Idp configuration for an Identity Toolkit project.", + "flatPath": "v2/projects/{projectsId}/defaultSupportedIdpConfigs/{defaultSupportedIdpConfigsId}", + "httpMethod": "GET", + "id": "identitytoolkit.projects.defaultSupportedIdpConfigs.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The resource name of the config, for example: \"projects/my-awesome-project/defaultSupportedIdpConfigs/google.com\"", + "location": "path", + "pattern": "^projects/[^/]+/defaultSupportedIdpConfigs/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v2/{+name}", + "response": { + "$ref": "GoogleCloudIdentitytoolkitAdminV2DefaultSupportedIdpConfig" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/firebase" + ] + }, + "list": { + "description": "List all default supported Idp configurations for an Identity Toolkit project.", + "flatPath": "v2/projects/{projectsId}/defaultSupportedIdpConfigs", + "httpMethod": "GET", + "id": "identitytoolkit.projects.defaultSupportedIdpConfigs.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "pageSize": { + "description": "The maximum number of items to return.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "The next_page_token value returned from a previous List request, if any.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "The parent resource name, for example, \"projects/my-awesome-project\".", + "location": "path", + "pattern": "^projects/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v2/{+parent}/defaultSupportedIdpConfigs", + "response": { + "$ref": "GoogleCloudIdentitytoolkitAdminV2ListDefaultSupportedIdpConfigsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/firebase" + ] + }, + "patch": { + "description": "Update a default supported Idp configuration for an Identity Toolkit project.", + "flatPath": "v2/projects/{projectsId}/defaultSupportedIdpConfigs/{defaultSupportedIdpConfigsId}", + "httpMethod": "PATCH", + "id": "identitytoolkit.projects.defaultSupportedIdpConfigs.patch", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the DefaultSupportedIdpConfig resource, for example: \"projects/my-awesome-project/defaultSupportedIdpConfigs/google.com\"", + "location": "path", + "pattern": "^projects/[^/]+/defaultSupportedIdpConfigs/[^/]+$", + "required": true, + "type": "string" + }, + "updateMask": { + "description": "The update mask applies to the resource. For the `FieldMask` definition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask", + "format": "google-fieldmask", + "location": "query", + "type": "string" + } + }, + "path": "v2/{+name}", + "request": { + "$ref": "GoogleCloudIdentitytoolkitAdminV2DefaultSupportedIdpConfig" + }, + "response": { + "$ref": "GoogleCloudIdentitytoolkitAdminV2DefaultSupportedIdpConfig" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/firebase" + ] + } + } + }, + "inboundSamlConfigs": { + "methods": { + "create": { + "description": "Create an inbound SAML configuration for an Identity Toolkit project.", + "flatPath": "v2/projects/{projectsId}/inboundSamlConfigs", + "httpMethod": "POST", + "id": "identitytoolkit.projects.inboundSamlConfigs.create", + "parameterOrder": [ + "parent" + ], + "parameters": { + "inboundSamlConfigId": { + "description": "The id to use for this config.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "The parent resource name where the config to be created, for example: \"projects/my-awesome-project\"", + "location": "path", + "pattern": "^projects/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v2/{+parent}/inboundSamlConfigs", + "request": { + "$ref": "GoogleCloudIdentitytoolkitAdminV2InboundSamlConfig" + }, + "response": { + "$ref": "GoogleCloudIdentitytoolkitAdminV2InboundSamlConfig" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/firebase" + ] + }, + "delete": { + "description": "Delete an inbound SAML configuration for an Identity Toolkit project.", + "flatPath": "v2/projects/{projectsId}/inboundSamlConfigs/{inboundSamlConfigsId}", + "httpMethod": "DELETE", + "id": "identitytoolkit.projects.inboundSamlConfigs.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The resource name of the config to be deleted, for example: 'projects/my-awesome-project/inboundSamlConfigs/my-config-id'.", + "location": "path", + "pattern": "^projects/[^/]+/inboundSamlConfigs/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v2/{+name}", + "response": { + "$ref": "GoogleProtobufEmpty" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/firebase" + ] + }, + "get": { + "description": "Retrieve an inbound SAML configuration for an Identity Toolkit project.", + "flatPath": "v2/projects/{projectsId}/inboundSamlConfigs/{inboundSamlConfigsId}", + "httpMethod": "GET", + "id": "identitytoolkit.projects.inboundSamlConfigs.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The resource name of the config, for example: 'projects/my-awesome-project/inboundSamlConfigs/my-config-id'.", + "location": "path", + "pattern": "^projects/[^/]+/inboundSamlConfigs/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v2/{+name}", + "response": { + "$ref": "GoogleCloudIdentitytoolkitAdminV2InboundSamlConfig" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/firebase" + ] + }, + "list": { + "description": "List all inbound SAML configurations for an Identity Toolkit project.", + "flatPath": "v2/projects/{projectsId}/inboundSamlConfigs", + "httpMethod": "GET", + "id": "identitytoolkit.projects.inboundSamlConfigs.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "pageSize": { + "description": "The maximum number of items to return.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "The next_page_token value returned from a previous List request, if any.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "The parent resource name, for example, \"projects/my-awesome-project\".", + "location": "path", + "pattern": "^projects/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v2/{+parent}/inboundSamlConfigs", + "response": { + "$ref": "GoogleCloudIdentitytoolkitAdminV2ListInboundSamlConfigsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/firebase" + ] + }, + "patch": { + "description": "Update an inbound SAML configuration for an Identity Toolkit project.", + "flatPath": "v2/projects/{projectsId}/inboundSamlConfigs/{inboundSamlConfigsId}", + "httpMethod": "PATCH", + "id": "identitytoolkit.projects.inboundSamlConfigs.patch", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the InboundSamlConfig resource, for example: 'projects/my-awesome-project/inboundSamlConfigs/my-config-id'. Ignored during create requests.", + "location": "path", + "pattern": "^projects/[^/]+/inboundSamlConfigs/[^/]+$", + "required": true, + "type": "string" + }, + "updateMask": { + "description": "The update mask applies to the resource. Empty update mask will result in updating nothing. For the `FieldMask` definition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask", + "format": "google-fieldmask", + "location": "query", + "type": "string" + } + }, + "path": "v2/{+name}", + "request": { + "$ref": "GoogleCloudIdentitytoolkitAdminV2InboundSamlConfig" + }, + "response": { + "$ref": "GoogleCloudIdentitytoolkitAdminV2InboundSamlConfig" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/firebase" + ] + } + } + }, + "oauthIdpConfigs": { + "methods": { + "create": { + "description": "Create an Oidc Idp configuration for an Identity Toolkit project.", + "flatPath": "v2/projects/{projectsId}/oauthIdpConfigs", + "httpMethod": "POST", + "id": "identitytoolkit.projects.oauthIdpConfigs.create", + "parameterOrder": [ + "parent" + ], + "parameters": { + "oauthIdpConfigId": { + "description": "The id to use for this config.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "The parent resource name where the config to be created, for example: \"projects/my-awesome-project\"", + "location": "path", + "pattern": "^projects/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v2/{+parent}/oauthIdpConfigs", + "request": { + "$ref": "GoogleCloudIdentitytoolkitAdminV2OAuthIdpConfig" + }, + "response": { + "$ref": "GoogleCloudIdentitytoolkitAdminV2OAuthIdpConfig" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/firebase" + ] + }, + "delete": { + "description": "Delete an Oidc Idp configuration for an Identity Toolkit project.", + "flatPath": "v2/projects/{projectsId}/oauthIdpConfigs/{oauthIdpConfigsId}", + "httpMethod": "DELETE", + "id": "identitytoolkit.projects.oauthIdpConfigs.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The resource name of the config to be deleted, for example: 'projects/my-awesome-project/oauthIdpConfigs/oauth-config-id'.", + "location": "path", + "pattern": "^projects/[^/]+/oauthIdpConfigs/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v2/{+name}", + "response": { + "$ref": "GoogleProtobufEmpty" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/firebase" + ] + }, + "get": { + "description": "Retrieve an Oidc Idp configuration for an Identity Toolkit project.", + "flatPath": "v2/projects/{projectsId}/oauthIdpConfigs/{oauthIdpConfigsId}", + "httpMethod": "GET", + "id": "identitytoolkit.projects.oauthIdpConfigs.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The resource name of the config, for example: 'projects/my-awesome-project/oauthIdpConfigs/oauth-config-id'.", + "location": "path", + "pattern": "^projects/[^/]+/oauthIdpConfigs/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v2/{+name}", + "response": { + "$ref": "GoogleCloudIdentitytoolkitAdminV2OAuthIdpConfig" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/firebase" + ] + }, + "list": { + "description": "List all Oidc Idp configurations for an Identity Toolkit project.", + "flatPath": "v2/projects/{projectsId}/oauthIdpConfigs", + "httpMethod": "GET", + "id": "identitytoolkit.projects.oauthIdpConfigs.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "pageSize": { + "description": "The maximum number of items to return.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "The next_page_token value returned from a previous List request, if any.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "The parent resource name, for example, \"projects/my-awesome-project\".", + "location": "path", + "pattern": "^projects/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v2/{+parent}/oauthIdpConfigs", + "response": { + "$ref": "GoogleCloudIdentitytoolkitAdminV2ListOAuthIdpConfigsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/firebase" + ] + }, + "patch": { + "description": "Update an Oidc Idp configuration for an Identity Toolkit project.", + "flatPath": "v2/projects/{projectsId}/oauthIdpConfigs/{oauthIdpConfigsId}", + "httpMethod": "PATCH", + "id": "identitytoolkit.projects.oauthIdpConfigs.patch", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the OAuthIdpConfig resource, for example: 'projects/my-awesome-project/oauthIdpConfigs/oauth-config-id'. Ignored during create requests.", + "location": "path", + "pattern": "^projects/[^/]+/oauthIdpConfigs/[^/]+$", + "required": true, + "type": "string" + }, + "updateMask": { + "description": "The update mask applies to the resource. Empty update mask will result in updating nothing. For the `FieldMask` definition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask", + "format": "google-fieldmask", + "location": "query", + "type": "string" + } + }, + "path": "v2/{+name}", + "request": { + "$ref": "GoogleCloudIdentitytoolkitAdminV2OAuthIdpConfig" + }, + "response": { + "$ref": "GoogleCloudIdentitytoolkitAdminV2OAuthIdpConfig" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/firebase" + ] + } + } + }, + "tenants": { + "methods": { + "create": { + "description": "Create a tenant. Requires write permission on the Agent project.", + "flatPath": "v2/projects/{projectsId}/tenants", + "httpMethod": "POST", + "id": "identitytoolkit.projects.tenants.create", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "The parent resource name where the tenant will be created. For example, \"projects/project1\".", + "location": "path", + "pattern": "^projects/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v2/{+parent}/tenants", + "request": { + "$ref": "GoogleCloudIdentitytoolkitAdminV2Tenant" + }, + "response": { + "$ref": "GoogleCloudIdentitytoolkitAdminV2Tenant" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/firebase" + ] + }, + "delete": { + "description": "Delete a tenant. Requires write permission on the Agent project.", + "flatPath": "v2/projects/{projectsId}/tenants/{tenantsId}", + "httpMethod": "DELETE", + "id": "identitytoolkit.projects.tenants.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Resource name of the tenant to delete.", + "location": "path", + "pattern": "^projects/[^/]+/tenants/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v2/{+name}", + "response": { + "$ref": "GoogleProtobufEmpty" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/firebase" + ] + }, + "get": { + "description": "Get a tenant. Requires read permission on the Tenant resource.", + "flatPath": "v2/projects/{projectsId}/tenants/{tenantsId}", + "httpMethod": "GET", + "id": "identitytoolkit.projects.tenants.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Resource name of the tenant to retrieve.", + "location": "path", + "pattern": "^projects/[^/]+/tenants/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v2/{+name}", + "response": { + "$ref": "GoogleCloudIdentitytoolkitAdminV2Tenant" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/firebase" + ] + }, + "getIamPolicy": { + "description": "Gets the access control policy for a resource. An error is returned if the resource does not exist. An empty policy is returned if the resource exists but does not have a policy set on it. Caller must have the right Google IAM permission on the resource.", + "flatPath": "v2/projects/{projectsId}/tenants/{tenantsId}:getIamPolicy", + "httpMethod": "POST", + "id": "identitytoolkit.projects.tenants.getIamPolicy", + "parameterOrder": [ + "resource" + ], + "parameters": { + "resource": { + "description": "REQUIRED: The resource for which the policy is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", + "location": "path", + "pattern": "^projects/[^/]+/tenants/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v2/{+resource}:getIamPolicy", + "request": { + "$ref": "GoogleIamV1GetIamPolicyRequest" + }, + "response": { + "$ref": "GoogleIamV1Policy" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/firebase" + ] + }, + "list": { + "description": "List tenants under the given agent project. Requires read permission on the Agent project.", + "flatPath": "v2/projects/{projectsId}/tenants", + "httpMethod": "GET", + "id": "identitytoolkit.projects.tenants.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "pageSize": { + "description": "The maximum number of results to return, capped at 1000. If not specified, the default value is 20.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "The pagination token from the response of a previous request.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The parent resource name to list tenants for.", + "location": "path", + "pattern": "^projects/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v2/{+parent}/tenants", + "response": { + "$ref": "GoogleCloudIdentitytoolkitAdminV2ListTenantsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/firebase" + ] + }, + "patch": { + "description": "Update a tenant. Requires write permission on the Tenant resource.", + "flatPath": "v2/projects/{projectsId}/tenants/{tenantsId}", + "httpMethod": "PATCH", + "id": "identitytoolkit.projects.tenants.patch", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Output only. Resource name of a tenant. For example: \"projects/{project-id}/tenants/{tenant-id}\"", + "location": "path", + "pattern": "^projects/[^/]+/tenants/[^/]+$", + "required": true, + "type": "string" + }, + "updateMask": { + "description": "If provided, only update fields set in the update mask. Otherwise, all settable fields will be updated. For the `FieldMask` definition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask", + "format": "google-fieldmask", + "location": "query", + "type": "string" + } + }, + "path": "v2/{+name}", + "request": { + "$ref": "GoogleCloudIdentitytoolkitAdminV2Tenant" + }, + "response": { + "$ref": "GoogleCloudIdentitytoolkitAdminV2Tenant" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/firebase" + ] + }, + "setIamPolicy": { + "description": "Sets the access control policy for a resource. If the policy exists, it is replaced. Caller must have the right Google IAM permission on the resource.", + "flatPath": "v2/projects/{projectsId}/tenants/{tenantsId}:setIamPolicy", + "httpMethod": "POST", + "id": "identitytoolkit.projects.tenants.setIamPolicy", + "parameterOrder": [ + "resource" + ], + "parameters": { + "resource": { + "description": "REQUIRED: The resource for which the policy is being specified. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", + "location": "path", + "pattern": "^projects/[^/]+/tenants/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v2/{+resource}:setIamPolicy", + "request": { + "$ref": "GoogleIamV1SetIamPolicyRequest" + }, + "response": { + "$ref": "GoogleIamV1Policy" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/firebase" + ] + }, + "testIamPermissions": { + "description": "Returns the caller's permissions on a resource. An error is returned if the resource does not exist. A caller is not required to have Google IAM permission to make this request.", + "flatPath": "v2/projects/{projectsId}/tenants/{tenantsId}:testIamPermissions", + "httpMethod": "POST", + "id": "identitytoolkit.projects.tenants.testIamPermissions", + "parameterOrder": [ + "resource" + ], + "parameters": { + "resource": { + "description": "REQUIRED: The resource for which the policy detail is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", + "location": "path", + "pattern": "^projects/[^/]+/tenants/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v2/{+resource}:testIamPermissions", + "request": { + "$ref": "GoogleIamV1TestIamPermissionsRequest" + }, + "response": { + "$ref": "GoogleIamV1TestIamPermissionsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/firebase" + ] + } + }, + "resources": { + "defaultSupportedIdpConfigs": { + "methods": { + "create": { + "description": "Create a default supported Idp configuration for an Identity Toolkit project.", + "flatPath": "v2/projects/{projectsId}/tenants/{tenantsId}/defaultSupportedIdpConfigs", + "httpMethod": "POST", + "id": "identitytoolkit.projects.tenants.defaultSupportedIdpConfigs.create", + "parameterOrder": [ + "parent" + ], + "parameters": { + "idpId": { + "description": "The id of the Idp to create a config for. Call ListDefaultSupportedIdps for list of all default supported Idps.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "The parent resource name where the config to be created, for example: \"projects/my-awesome-project\"", + "location": "path", + "pattern": "^projects/[^/]+/tenants/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v2/{+parent}/defaultSupportedIdpConfigs", + "request": { + "$ref": "GoogleCloudIdentitytoolkitAdminV2DefaultSupportedIdpConfig" + }, + "response": { + "$ref": "GoogleCloudIdentitytoolkitAdminV2DefaultSupportedIdpConfig" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/firebase" + ] + }, + "delete": { + "description": "Delete a default supported Idp configuration for an Identity Toolkit project.", + "flatPath": "v2/projects/{projectsId}/tenants/{tenantsId}/defaultSupportedIdpConfigs/{defaultSupportedIdpConfigsId}", + "httpMethod": "DELETE", + "id": "identitytoolkit.projects.tenants.defaultSupportedIdpConfigs.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The resource name of the config, for example: \"projects/my-awesome-project/defaultSupportedIdpConfigs/google.com\"", + "location": "path", + "pattern": "^projects/[^/]+/tenants/[^/]+/defaultSupportedIdpConfigs/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v2/{+name}", + "response": { + "$ref": "GoogleProtobufEmpty" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/firebase" + ] + }, + "get": { + "description": "Retrieve a default supported Idp configuration for an Identity Toolkit project.", + "flatPath": "v2/projects/{projectsId}/tenants/{tenantsId}/defaultSupportedIdpConfigs/{defaultSupportedIdpConfigsId}", + "httpMethod": "GET", + "id": "identitytoolkit.projects.tenants.defaultSupportedIdpConfigs.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The resource name of the config, for example: \"projects/my-awesome-project/defaultSupportedIdpConfigs/google.com\"", + "location": "path", + "pattern": "^projects/[^/]+/tenants/[^/]+/defaultSupportedIdpConfigs/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v2/{+name}", + "response": { + "$ref": "GoogleCloudIdentitytoolkitAdminV2DefaultSupportedIdpConfig" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/firebase" + ] + }, + "list": { + "description": "List all default supported Idp configurations for an Identity Toolkit project.", + "flatPath": "v2/projects/{projectsId}/tenants/{tenantsId}/defaultSupportedIdpConfigs", + "httpMethod": "GET", + "id": "identitytoolkit.projects.tenants.defaultSupportedIdpConfigs.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "pageSize": { + "description": "The maximum number of items to return.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "The next_page_token value returned from a previous List request, if any.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "The parent resource name, for example, \"projects/my-awesome-project\".", + "location": "path", + "pattern": "^projects/[^/]+/tenants/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v2/{+parent}/defaultSupportedIdpConfigs", + "response": { + "$ref": "GoogleCloudIdentitytoolkitAdminV2ListDefaultSupportedIdpConfigsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/firebase" + ] + }, + "patch": { + "description": "Update a default supported Idp configuration for an Identity Toolkit project.", + "flatPath": "v2/projects/{projectsId}/tenants/{tenantsId}/defaultSupportedIdpConfigs/{defaultSupportedIdpConfigsId}", + "httpMethod": "PATCH", + "id": "identitytoolkit.projects.tenants.defaultSupportedIdpConfigs.patch", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the DefaultSupportedIdpConfig resource, for example: \"projects/my-awesome-project/defaultSupportedIdpConfigs/google.com\"", + "location": "path", + "pattern": "^projects/[^/]+/tenants/[^/]+/defaultSupportedIdpConfigs/[^/]+$", + "required": true, + "type": "string" + }, + "updateMask": { + "description": "The update mask applies to the resource. For the `FieldMask` definition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask", + "format": "google-fieldmask", + "location": "query", + "type": "string" + } + }, + "path": "v2/{+name}", + "request": { + "$ref": "GoogleCloudIdentitytoolkitAdminV2DefaultSupportedIdpConfig" + }, + "response": { + "$ref": "GoogleCloudIdentitytoolkitAdminV2DefaultSupportedIdpConfig" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/firebase" + ] + } + } + }, + "inboundSamlConfigs": { + "methods": { + "create": { + "description": "Create an inbound SAML configuration for an Identity Toolkit project.", + "flatPath": "v2/projects/{projectsId}/tenants/{tenantsId}/inboundSamlConfigs", + "httpMethod": "POST", + "id": "identitytoolkit.projects.tenants.inboundSamlConfigs.create", + "parameterOrder": [ + "parent" + ], + "parameters": { + "inboundSamlConfigId": { + "description": "The id to use for this config.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "The parent resource name where the config to be created, for example: \"projects/my-awesome-project\"", + "location": "path", + "pattern": "^projects/[^/]+/tenants/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v2/{+parent}/inboundSamlConfigs", + "request": { + "$ref": "GoogleCloudIdentitytoolkitAdminV2InboundSamlConfig" + }, + "response": { + "$ref": "GoogleCloudIdentitytoolkitAdminV2InboundSamlConfig" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/firebase" + ] + }, + "delete": { + "description": "Delete an inbound SAML configuration for an Identity Toolkit project.", + "flatPath": "v2/projects/{projectsId}/tenants/{tenantsId}/inboundSamlConfigs/{inboundSamlConfigsId}", + "httpMethod": "DELETE", + "id": "identitytoolkit.projects.tenants.inboundSamlConfigs.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The resource name of the config to be deleted, for example: 'projects/my-awesome-project/inboundSamlConfigs/my-config-id'.", + "location": "path", + "pattern": "^projects/[^/]+/tenants/[^/]+/inboundSamlConfigs/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v2/{+name}", + "response": { + "$ref": "GoogleProtobufEmpty" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/firebase" + ] + }, + "get": { + "description": "Retrieve an inbound SAML configuration for an Identity Toolkit project.", + "flatPath": "v2/projects/{projectsId}/tenants/{tenantsId}/inboundSamlConfigs/{inboundSamlConfigsId}", + "httpMethod": "GET", + "id": "identitytoolkit.projects.tenants.inboundSamlConfigs.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The resource name of the config, for example: 'projects/my-awesome-project/inboundSamlConfigs/my-config-id'.", + "location": "path", + "pattern": "^projects/[^/]+/tenants/[^/]+/inboundSamlConfigs/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v2/{+name}", + "response": { + "$ref": "GoogleCloudIdentitytoolkitAdminV2InboundSamlConfig" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/firebase" + ] + }, + "list": { + "description": "List all inbound SAML configurations for an Identity Toolkit project.", + "flatPath": "v2/projects/{projectsId}/tenants/{tenantsId}/inboundSamlConfigs", + "httpMethod": "GET", + "id": "identitytoolkit.projects.tenants.inboundSamlConfigs.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "pageSize": { + "description": "The maximum number of items to return.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "The next_page_token value returned from a previous List request, if any.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "The parent resource name, for example, \"projects/my-awesome-project\".", + "location": "path", + "pattern": "^projects/[^/]+/tenants/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v2/{+parent}/inboundSamlConfigs", + "response": { + "$ref": "GoogleCloudIdentitytoolkitAdminV2ListInboundSamlConfigsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/firebase" + ] + }, + "patch": { + "description": "Update an inbound SAML configuration for an Identity Toolkit project.", + "flatPath": "v2/projects/{projectsId}/tenants/{tenantsId}/inboundSamlConfigs/{inboundSamlConfigsId}", + "httpMethod": "PATCH", + "id": "identitytoolkit.projects.tenants.inboundSamlConfigs.patch", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the InboundSamlConfig resource, for example: 'projects/my-awesome-project/inboundSamlConfigs/my-config-id'. Ignored during create requests.", + "location": "path", + "pattern": "^projects/[^/]+/tenants/[^/]+/inboundSamlConfigs/[^/]+$", + "required": true, + "type": "string" + }, + "updateMask": { + "description": "The update mask applies to the resource. Empty update mask will result in updating nothing. For the `FieldMask` definition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask", + "format": "google-fieldmask", + "location": "query", + "type": "string" + } + }, + "path": "v2/{+name}", + "request": { + "$ref": "GoogleCloudIdentitytoolkitAdminV2InboundSamlConfig" + }, + "response": { + "$ref": "GoogleCloudIdentitytoolkitAdminV2InboundSamlConfig" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/firebase" + ] + } + } + }, + "oauthIdpConfigs": { + "methods": { + "create": { + "description": "Create an Oidc Idp configuration for an Identity Toolkit project.", + "flatPath": "v2/projects/{projectsId}/tenants/{tenantsId}/oauthIdpConfigs", + "httpMethod": "POST", + "id": "identitytoolkit.projects.tenants.oauthIdpConfigs.create", + "parameterOrder": [ + "parent" + ], + "parameters": { + "oauthIdpConfigId": { + "description": "The id to use for this config.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "The parent resource name where the config to be created, for example: \"projects/my-awesome-project\"", + "location": "path", + "pattern": "^projects/[^/]+/tenants/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v2/{+parent}/oauthIdpConfigs", + "request": { + "$ref": "GoogleCloudIdentitytoolkitAdminV2OAuthIdpConfig" + }, + "response": { + "$ref": "GoogleCloudIdentitytoolkitAdminV2OAuthIdpConfig" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/firebase" + ] + }, + "delete": { + "description": "Delete an Oidc Idp configuration for an Identity Toolkit project.", + "flatPath": "v2/projects/{projectsId}/tenants/{tenantsId}/oauthIdpConfigs/{oauthIdpConfigsId}", + "httpMethod": "DELETE", + "id": "identitytoolkit.projects.tenants.oauthIdpConfigs.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The resource name of the config to be deleted, for example: 'projects/my-awesome-project/oauthIdpConfigs/oauth-config-id'.", + "location": "path", + "pattern": "^projects/[^/]+/tenants/[^/]+/oauthIdpConfigs/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v2/{+name}", + "response": { + "$ref": "GoogleProtobufEmpty" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/firebase" + ] + }, + "get": { + "description": "Retrieve an Oidc Idp configuration for an Identity Toolkit project.", + "flatPath": "v2/projects/{projectsId}/tenants/{tenantsId}/oauthIdpConfigs/{oauthIdpConfigsId}", + "httpMethod": "GET", + "id": "identitytoolkit.projects.tenants.oauthIdpConfigs.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The resource name of the config, for example: 'projects/my-awesome-project/oauthIdpConfigs/oauth-config-id'.", + "location": "path", + "pattern": "^projects/[^/]+/tenants/[^/]+/oauthIdpConfigs/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v2/{+name}", + "response": { + "$ref": "GoogleCloudIdentitytoolkitAdminV2OAuthIdpConfig" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/firebase" + ] + }, + "list": { + "description": "List all Oidc Idp configurations for an Identity Toolkit project.", + "flatPath": "v2/projects/{projectsId}/tenants/{tenantsId}/oauthIdpConfigs", + "httpMethod": "GET", + "id": "identitytoolkit.projects.tenants.oauthIdpConfigs.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "pageSize": { + "description": "The maximum number of items to return.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "The next_page_token value returned from a previous List request, if any.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "The parent resource name, for example, \"projects/my-awesome-project\".", + "location": "path", + "pattern": "^projects/[^/]+/tenants/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v2/{+parent}/oauthIdpConfigs", + "response": { + "$ref": "GoogleCloudIdentitytoolkitAdminV2ListOAuthIdpConfigsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/firebase" + ] + }, + "patch": { + "description": "Update an Oidc Idp configuration for an Identity Toolkit project.", + "flatPath": "v2/projects/{projectsId}/tenants/{tenantsId}/oauthIdpConfigs/{oauthIdpConfigsId}", + "httpMethod": "PATCH", + "id": "identitytoolkit.projects.tenants.oauthIdpConfigs.patch", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the OAuthIdpConfig resource, for example: 'projects/my-awesome-project/oauthIdpConfigs/oauth-config-id'. Ignored during create requests.", + "location": "path", + "pattern": "^projects/[^/]+/tenants/[^/]+/oauthIdpConfigs/[^/]+$", + "required": true, + "type": "string" + }, + "updateMask": { + "description": "The update mask applies to the resource. Empty update mask will result in updating nothing. For the `FieldMask` definition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask", + "format": "google-fieldmask", + "location": "query", + "type": "string" + } + }, + "path": "v2/{+name}", + "request": { + "$ref": "GoogleCloudIdentitytoolkitAdminV2OAuthIdpConfig" + }, + "response": { + "$ref": "GoogleCloudIdentitytoolkitAdminV2OAuthIdpConfig" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/firebase" + ] + } + } + } + } + } + } + } + }, + "revision": "20220806", + "rootUrl": "https://identitytoolkit.googleapis.com/", + "schemas": { + "GoogleCloudIdentitytoolkitAdminV2Anonymous": { + "description": "Configuration options related to authenticating an anonymous user.", + "id": "GoogleCloudIdentitytoolkitAdminV2Anonymous", + "properties": { + "enabled": { + "description": "Whether anonymous user auth is enabled for the project or not.", + "type": "boolean" + } + }, + "type": "object" + }, + "GoogleCloudIdentitytoolkitAdminV2AppleSignInConfig": { + "description": "Additional config for SignInWithApple.", + "id": "GoogleCloudIdentitytoolkitAdminV2AppleSignInConfig", + "properties": { + "bundleIds": { + "description": "A list of Bundle ID's usable by this project", + "items": { + "type": "string" + }, + "type": "array" + }, + "codeFlowConfig": { + "$ref": "GoogleCloudIdentitytoolkitAdminV2CodeFlowConfig" + } + }, + "type": "object" + }, + "GoogleCloudIdentitytoolkitAdminV2BlockingFunctionsConfig": { + "description": "Configuration related to Blocking Functions.", + "id": "GoogleCloudIdentitytoolkitAdminV2BlockingFunctionsConfig", + "properties": { + "forwardInboundCredentials": { + "$ref": "GoogleCloudIdentitytoolkitAdminV2ForwardInboundCredentials", + "description": "The user credentials to include in the JWT payload that is sent to the registered Blocking Functions." + }, + "triggers": { + "additionalProperties": { + "$ref": "GoogleCloudIdentitytoolkitAdminV2Trigger" + }, + "description": "Map of Trigger to event type. Key should be one of the supported event types: \"beforeCreate\", \"beforeSignIn\"", + "type": "object" + } + }, + "type": "object" + }, + "GoogleCloudIdentitytoolkitAdminV2ClientConfig": { + "description": "Options related to how clients making requests on behalf of a project should be configured.", + "id": "GoogleCloudIdentitytoolkitAdminV2ClientConfig", + "properties": { + "apiKey": { + "description": "Output only. API key that can be used when making requests for this project.", + "readOnly": true, + "type": "string" + }, + "firebaseSubdomain": { + "description": "Output only. Firebase subdomain.", + "readOnly": true, + "type": "string" + }, + "permissions": { + "$ref": "GoogleCloudIdentitytoolkitAdminV2Permissions", + "description": "Configuration related to restricting a user's ability to affect their account." + } + }, + "type": "object" + }, + "GoogleCloudIdentitytoolkitAdminV2CodeFlowConfig": { + "description": "Additional config for Apple for code flow.", + "id": "GoogleCloudIdentitytoolkitAdminV2CodeFlowConfig", + "properties": { + "keyId": { + "description": "Key ID for the private key.", + "type": "string" + }, + "privateKey": { + "description": "Private key used for signing the client secret JWT.", + "type": "string" + }, + "teamId": { + "description": "Apple Developer Team ID.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudIdentitytoolkitAdminV2Config": { + "description": "Represents an Identity Toolkit project.", + "id": "GoogleCloudIdentitytoolkitAdminV2Config", + "properties": { + "authorizedDomains": { + "description": "List of domains authorized for OAuth redirects", + "items": { + "type": "string" + }, + "type": "array" + }, + "autodeleteAnonymousUsers": { + "description": "Whether anonymous users will be auto-deleted after a period of 30 days.", + "type": "boolean" + }, + "blockingFunctions": { + "$ref": "GoogleCloudIdentitytoolkitAdminV2BlockingFunctionsConfig", + "description": "Configuration related to blocking functions." + }, + "client": { + "$ref": "GoogleCloudIdentitytoolkitAdminV2ClientConfig", + "description": "Options related to how clients making requests on behalf of a project should be configured." + }, + "mfa": { + "$ref": "GoogleCloudIdentitytoolkitAdminV2MultiFactorAuthConfig", + "description": "Configuration for this project's multi-factor authentication, including whether it is active and what factors can be used for the second factor" + }, + "monitoring": { + "$ref": "GoogleCloudIdentitytoolkitAdminV2MonitoringConfig", + "description": "Configuration related to monitoring project activity." + }, + "multiTenant": { + "$ref": "GoogleCloudIdentitytoolkitAdminV2MultiTenantConfig", + "description": "Configuration related to multi-tenant functionality." + }, + "name": { + "description": "Output only. The name of the Config resource. Example: \"projects/my-awesome-project/config\"", + "readOnly": true, + "type": "string" + }, + "notification": { + "$ref": "GoogleCloudIdentitytoolkitAdminV2NotificationConfig", + "description": "Configuration related to sending notifications to users." + }, + "quota": { + "$ref": "GoogleCloudIdentitytoolkitAdminV2QuotaConfig", + "description": "Configuration related to quotas." + }, + "signIn": { + "$ref": "GoogleCloudIdentitytoolkitAdminV2SignInConfig", + "description": "Configuration related to local sign in methods." + }, + "subtype": { + "description": "Output only. The subtype of this config.", + "enum": [ + "SUBTYPE_UNSPECIFIED", + "IDENTITY_PLATFORM", + "FIREBASE_AUTH" + ], + "enumDescriptions": [ + "Default value. Do not use.", + "An Identity Platform project.", + "A Firebase Authentication project." + ], + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudIdentitytoolkitAdminV2DefaultSupportedIdp": { + "description": "Standard Identity Toolkit-trusted IDPs.", + "id": "GoogleCloudIdentitytoolkitAdminV2DefaultSupportedIdp", + "properties": { + "description": { + "description": "Description of the Idp", + "type": "string" + }, + "idpId": { + "description": "Id the of Idp", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudIdentitytoolkitAdminV2DefaultSupportedIdpConfig": { + "description": "Configurations options for authenticating with a the standard set of Identity Toolkit-trusted IDPs.", + "id": "GoogleCloudIdentitytoolkitAdminV2DefaultSupportedIdpConfig", + "properties": { + "appleSignInConfig": { + "$ref": "GoogleCloudIdentitytoolkitAdminV2AppleSignInConfig", + "description": "Additional config for Apple-based projects." + }, + "clientId": { + "description": "OAuth client ID.", + "type": "string" + }, + "clientSecret": { + "description": "OAuth client secret.", + "type": "string" + }, + "enabled": { + "description": "True if allows the user to sign in with the provider.", + "type": "boolean" + }, + "name": { + "description": "The name of the DefaultSupportedIdpConfig resource, for example: \"projects/my-awesome-project/defaultSupportedIdpConfigs/google.com\"", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudIdentitytoolkitAdminV2DnsInfo": { + "description": "Information of custom domain DNS verification. By default, default_domain will be used. A custom domain can be configured using VerifyCustomDomain.", + "id": "GoogleCloudIdentitytoolkitAdminV2DnsInfo", + "properties": { + "customDomain": { + "description": "Output only. The applied verified custom domain.", + "readOnly": true, + "type": "string" + }, + "customDomainState": { + "description": "Output only. The current verification state of the custom domain. The custom domain will only be used once the domain verification is successful.", + "enum": [ + "VERIFICATION_STATE_UNSPECIFIED", + "NOT_STARTED", + "IN_PROGRESS", + "FAILED", + "SUCCEEDED" + ], + "enumDescriptions": [ + "Default value. Do not use.", + "The verification has not started.", + "The verification is in progress.", + "The verification failed.", + "The verification succeeded and is ready to be applied." + ], + "readOnly": true, + "type": "string" + }, + "domainVerificationRequestTime": { + "description": "Output only. The timestamp of initial request for the current domain verification.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "pendingCustomDomain": { + "description": "Output only. The custom domain that's to be verified.", + "readOnly": true, + "type": "string" + }, + "useCustomDomain": { + "description": "Whether to use custom domain.", + "type": "boolean" + } + }, + "type": "object" + }, + "GoogleCloudIdentitytoolkitAdminV2Email": { + "description": "Configuration options related to authenticating a user by their email address.", + "id": "GoogleCloudIdentitytoolkitAdminV2Email", + "properties": { + "enabled": { + "description": "Whether email auth is enabled for the project or not.", + "type": "boolean" + }, + "passwordRequired": { + "description": "Whether a password is required for email auth or not. If true, both an email and password must be provided to sign in. If false, a user may sign in via either email/password or email link.", + "type": "boolean" + } + }, + "type": "object" + }, + "GoogleCloudIdentitytoolkitAdminV2EmailTemplate": { + "description": "Email template. The subject and body fields can contain the following placeholders which will be replaced with the appropriate values: %LINK% - The link to use to redeem the send OOB code. %EMAIL% - The email where the email is being sent. %NEW_EMAIL% - The new email being set for the account (when applicable). %APP_NAME% - The GCP project's display name. %DISPLAY_NAME% - The user's display name.", + "id": "GoogleCloudIdentitytoolkitAdminV2EmailTemplate", + "properties": { + "body": { + "description": "Email body", + "type": "string" + }, + "bodyFormat": { + "description": "Email body format", + "enum": [ + "BODY_FORMAT_UNSPECIFIED", + "PLAIN_TEXT", + "HTML" + ], + "enumDescriptions": [ + "Default value. Do not use.", + "Plain text", + "HTML" + ], + "type": "string" + }, + "customized": { + "description": "Output only. Whether the body or subject of the email is customized.", + "readOnly": true, + "type": "boolean" + }, + "replyTo": { + "description": "Reply-to address", + "type": "string" + }, + "senderDisplayName": { + "description": "Sender display name", + "type": "string" + }, + "senderLocalPart": { + "description": "Local part of From address", + "type": "string" + }, + "subject": { + "description": "Subject of the email", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudIdentitytoolkitAdminV2ForwardInboundCredentials": { + "description": "Indicates which credentials to pass to the registered Blocking Functions.", + "id": "GoogleCloudIdentitytoolkitAdminV2ForwardInboundCredentials", + "properties": { + "accessToken": { + "description": "Whether to pass the user's OAuth identity provider's access token.", + "type": "boolean" + }, + "idToken": { + "description": "Whether to pass the user's OIDC identity provider's ID token.", + "type": "boolean" + }, + "refreshToken": { + "description": "Whether to pass the user's OAuth identity provider's refresh token.", + "type": "boolean" + } + }, + "type": "object" + }, + "GoogleCloudIdentitytoolkitAdminV2HashConfig": { + "description": "History information of the hash algorithm and key. Different accounts' passwords may be generated by different version.", + "id": "GoogleCloudIdentitytoolkitAdminV2HashConfig", + "properties": { + "algorithm": { + "description": "Output only. Different password hash algorithms used in Identity Toolkit.", + "enum": [ + "HASH_ALGORITHM_UNSPECIFIED", + "HMAC_SHA256", + "HMAC_SHA1", + "HMAC_MD5", + "SCRYPT", + "PBKDF_SHA1", + "MD5", + "HMAC_SHA512", + "SHA1", + "BCRYPT", + "PBKDF2_SHA256", + "SHA256", + "SHA512", + "STANDARD_SCRYPT" + ], + "enumDescriptions": [ + "Default value. Do not use.", + "HMAC_SHA256", + "HMAC_SHA1", + "HMAC_MD5", + "SCRYPT", + "PBKDF_SHA1", + "MD5", + "HMAC_SHA512", + "SHA1", + "BCRYPT", + "PBKDF2_SHA256", + "SHA256", + "SHA512", + "STANDARD_SCRYPT" + ], + "readOnly": true, + "type": "string" + }, + "memoryCost": { + "description": "Output only. Memory cost for hash calculation. Used by scrypt and other similar password derivation algorithms. See https://tools.ietf.org/html/rfc7914 for explanation of field.", + "format": "int32", + "readOnly": true, + "type": "integer" + }, + "rounds": { + "description": "Output only. How many rounds for hash calculation. Used by scrypt and other similar password derivation algorithms.", + "format": "int32", + "readOnly": true, + "type": "integer" + }, + "saltSeparator": { + "description": "Output only. Non-printable character to be inserted between the salt and plain text password in base64.", + "readOnly": true, + "type": "string" + }, + "signerKey": { + "description": "Output only. Signer key in base64.", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudIdentitytoolkitAdminV2IdpCertificate": { + "description": "The IDP's certificate data to verify the signature in the SAMLResponse issued by the IDP.", + "id": "GoogleCloudIdentitytoolkitAdminV2IdpCertificate", + "properties": { + "x509Certificate": { + "description": "The x509 certificate", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudIdentitytoolkitAdminV2IdpConfig": { + "description": "The SAML IdP (Identity Provider) configuration when the project acts as the relying party.", + "id": "GoogleCloudIdentitytoolkitAdminV2IdpConfig", + "properties": { + "idpCertificates": { + "description": "IDP's public keys for verifying signature in the assertions.", + "items": { + "$ref": "GoogleCloudIdentitytoolkitAdminV2IdpCertificate" + }, + "type": "array" + }, + "idpEntityId": { + "description": "Unique identifier for all SAML entities.", + "type": "string" + }, + "signRequest": { + "description": "Indicates if outbounding SAMLRequest should be signed.", + "type": "boolean" + }, + "ssoUrl": { + "description": "URL to send Authentication request to.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudIdentitytoolkitAdminV2InboundSamlConfig": { + "description": "A pair of SAML RP-IDP configurations when the project acts as the relying party.", + "id": "GoogleCloudIdentitytoolkitAdminV2InboundSamlConfig", + "properties": { + "displayName": { + "description": "The config's display name set by developers.", + "type": "string" + }, + "enabled": { + "description": "True if allows the user to sign in with the provider.", + "type": "boolean" + }, + "idpConfig": { + "$ref": "GoogleCloudIdentitytoolkitAdminV2IdpConfig", + "description": "The SAML IdP (Identity Provider) configuration when the project acts as the relying party." + }, + "name": { + "description": "The name of the InboundSamlConfig resource, for example: 'projects/my-awesome-project/inboundSamlConfigs/my-config-id'. Ignored during create requests.", + "type": "string" + }, + "spConfig": { + "$ref": "GoogleCloudIdentitytoolkitAdminV2SpConfig", + "description": "The SAML SP (Service Provider) configuration when the project acts as the relying party to receive and accept an authentication assertion issued by a SAML identity provider." + } + }, + "type": "object" + }, + "GoogleCloudIdentitytoolkitAdminV2Inheritance": { + "description": "Settings that the tenants will inherit from project level.", + "id": "GoogleCloudIdentitytoolkitAdminV2Inheritance", + "properties": { + "emailSendingConfig": { + "description": "Whether to allow the tenant to inherit custom domains, email templates, and custom SMTP settings. If true, email sent from tenant will follow the project level email sending configurations. If false (by default), emails will go with the default settings with no customizations.", + "type": "boolean" + } + }, + "type": "object" + }, + "GoogleCloudIdentitytoolkitAdminV2ListDefaultSupportedIdpConfigsResponse": { + "description": "Response for DefaultSupportedIdpConfigs", + "id": "GoogleCloudIdentitytoolkitAdminV2ListDefaultSupportedIdpConfigsResponse", + "properties": { + "defaultSupportedIdpConfigs": { + "description": "The set of configs.", + "items": { + "$ref": "GoogleCloudIdentitytoolkitAdminV2DefaultSupportedIdpConfig" + }, + "type": "array" + }, + "nextPageToken": { + "description": "Token to retrieve the next page of results, or empty if there are no more results in the list.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudIdentitytoolkitAdminV2ListDefaultSupportedIdpsResponse": { + "description": "Response for ListDefaultSupportedIdps", + "id": "GoogleCloudIdentitytoolkitAdminV2ListDefaultSupportedIdpsResponse", + "properties": { + "defaultSupportedIdps": { + "description": "The set of configs.", + "items": { + "$ref": "GoogleCloudIdentitytoolkitAdminV2DefaultSupportedIdp" + }, + "type": "array" + }, + "nextPageToken": { + "description": "Token to retrieve the next page of results, or empty if there are no more results in the list.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudIdentitytoolkitAdminV2ListInboundSamlConfigsResponse": { + "description": "Response for ListInboundSamlConfigs", + "id": "GoogleCloudIdentitytoolkitAdminV2ListInboundSamlConfigsResponse", + "properties": { + "inboundSamlConfigs": { + "description": "The set of configs.", + "items": { + "$ref": "GoogleCloudIdentitytoolkitAdminV2InboundSamlConfig" + }, + "type": "array" + }, + "nextPageToken": { + "description": "Token to retrieve the next page of results, or empty if there are no more results in the list.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudIdentitytoolkitAdminV2ListOAuthIdpConfigsResponse": { + "description": "Response for ListOAuthIdpConfigs", + "id": "GoogleCloudIdentitytoolkitAdminV2ListOAuthIdpConfigsResponse", + "properties": { + "nextPageToken": { + "description": "Token to retrieve the next page of results, or empty if there are no more results in the list.", + "type": "string" + }, + "oauthIdpConfigs": { + "description": "The set of configs.", + "items": { + "$ref": "GoogleCloudIdentitytoolkitAdminV2OAuthIdpConfig" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleCloudIdentitytoolkitAdminV2ListTenantsResponse": { + "description": "Response message for ListTenants.", + "id": "GoogleCloudIdentitytoolkitAdminV2ListTenantsResponse", + "properties": { + "nextPageToken": { + "description": "The token to get the next page of results.", + "type": "string" + }, + "tenants": { + "description": "A list of tenants under the given agent project.", + "items": { + "$ref": "GoogleCloudIdentitytoolkitAdminV2Tenant" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleCloudIdentitytoolkitAdminV2MonitoringConfig": { + "description": "Configuration related to monitoring project activity.", + "id": "GoogleCloudIdentitytoolkitAdminV2MonitoringConfig", + "properties": { + "requestLogging": { + "$ref": "GoogleCloudIdentitytoolkitAdminV2RequestLogging", + "description": "Configuration for logging requests made to this project to Stackdriver Logging" + } + }, + "type": "object" + }, + "GoogleCloudIdentitytoolkitAdminV2MultiFactorAuthConfig": { + "description": "Options related to MultiFactor Authentication for the project.", + "id": "GoogleCloudIdentitytoolkitAdminV2MultiFactorAuthConfig", + "properties": { + "enabledProviders": { + "description": "A list of usable second factors for this project.", + "items": { + "enum": [ + "PROVIDER_UNSPECIFIED", + "PHONE_SMS" + ], + "enumDescriptions": [ + "Illegal Provider, should not be used", + "SMS is enabled as a second factor for this project." + ], + "type": "string" + }, + "type": "array" + }, + "state": { + "description": "Whether MultiFactor Authentication has been enabled for this project.", + "enum": [ + "STATE_UNSPECIFIED", + "DISABLED", + "ENABLED", + "MANDATORY" + ], + "enumDescriptions": [ + "Illegal State, should not be used.", + "Multi-factor authentication cannot be used for this project", + "Multi-factor authentication can be used for this project", + "Multi-factor authentication is required for this project. Users from this project must authenticate with the second factor." + ], + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudIdentitytoolkitAdminV2MultiTenantConfig": { + "description": "Configuration related to multi-tenant functionality.", + "id": "GoogleCloudIdentitytoolkitAdminV2MultiTenantConfig", + "properties": { + "allowTenants": { + "description": "Whether this project can have tenants or not.", + "type": "boolean" + }, + "defaultTenantLocation": { + "description": "The default cloud parent org or folder that the tenant project should be created under. The parent resource name should be in the format of \"/\", such as \"folders/123\" or \"organizations/456\". If the value is not set, the tenant will be created under the same organization or folder as the agent project.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudIdentitytoolkitAdminV2NotificationConfig": { + "description": "Configuration related to sending notifications to users.", + "id": "GoogleCloudIdentitytoolkitAdminV2NotificationConfig", + "properties": { + "defaultLocale": { + "description": "Default locale used for email and SMS in IETF BCP 47 format.", + "type": "string" + }, + "sendEmail": { + "$ref": "GoogleCloudIdentitytoolkitAdminV2SendEmail", + "description": "Options for email sending." + }, + "sendSms": { + "$ref": "GoogleCloudIdentitytoolkitAdminV2SendSms", + "description": "Options for SMS sending." + } + }, + "type": "object" + }, + "GoogleCloudIdentitytoolkitAdminV2OAuthIdpConfig": { + "description": "Configuration options for authenticating with an OAuth IDP.", + "id": "GoogleCloudIdentitytoolkitAdminV2OAuthIdpConfig", + "properties": { + "clientId": { + "description": "The client id of an OAuth client.", + "type": "string" + }, + "clientSecret": { + "description": "The client secret of the OAuth client, to enable OIDC code flow.", + "type": "string" + }, + "displayName": { + "description": "The config's display name set by developers.", + "type": "string" + }, + "enabled": { + "description": "True if allows the user to sign in with the provider.", + "type": "boolean" + }, + "issuer": { + "description": "For OIDC Idps, the issuer identifier.", + "type": "string" + }, + "name": { + "description": "The name of the OAuthIdpConfig resource, for example: 'projects/my-awesome-project/oauthIdpConfigs/oauth-config-id'. Ignored during create requests.", + "type": "string" + }, + "responseType": { + "$ref": "GoogleCloudIdentitytoolkitAdminV2OAuthResponseType", + "description": "The response type to request for in the OAuth authorization flow. You can set either `id_token` or `code` to true, but not both. Setting both types to be simultaneously true (`{code: true, id_token: true}`) is not yet supported." + } + }, + "type": "object" + }, + "GoogleCloudIdentitytoolkitAdminV2OAuthResponseType": { + "description": "The response type to request for in the OAuth authorization flow. You can set either `id_token` or `code` to true, but not both. Setting both types to be simultaneously true (`{code: true, id_token: true}`) is not yet supported. See https://openid.net/specs/openid-connect-core-1_0.html#Authentication for a mapping of response type to OAuth 2.0 flow.", + "id": "GoogleCloudIdentitytoolkitAdminV2OAuthResponseType", + "properties": { + "code": { + "description": "If true, authorization code is returned from IdP's authorization endpoint.", + "type": "boolean" + }, + "idToken": { + "description": "If true, ID token is returned from IdP's authorization endpoint.", + "type": "boolean" + }, + "token": { + "description": "Do not use. The `token` response type is not supported at the moment.", + "type": "boolean" + } + }, + "type": "object" + }, + "GoogleCloudIdentitytoolkitAdminV2Permissions": { + "description": "Configuration related to restricting a user's ability to affect their account.", + "id": "GoogleCloudIdentitytoolkitAdminV2Permissions", + "properties": { + "disabledUserDeletion": { + "description": "When true, end users cannot delete their account on the associated project through any of our API methods", + "type": "boolean" + }, + "disabledUserSignup": { + "description": "When true, end users cannot sign up for a new account on the associated project through any of our API methods", + "type": "boolean" + } + }, + "type": "object" + }, + "GoogleCloudIdentitytoolkitAdminV2PhoneNumber": { + "description": "Configuration options related to authenticated a user by their phone number.", + "id": "GoogleCloudIdentitytoolkitAdminV2PhoneNumber", + "properties": { + "enabled": { + "description": "Whether phone number auth is enabled for the project or not.", + "type": "boolean" + }, + "testPhoneNumbers": { + "additionalProperties": { + "type": "string" + }, + "description": "A map of that can be used for phone auth testing.", + "type": "object" + } + }, + "type": "object" + }, + "GoogleCloudIdentitytoolkitAdminV2QuotaConfig": { + "description": "Configuration related to quotas.", + "id": "GoogleCloudIdentitytoolkitAdminV2QuotaConfig", + "properties": { + "signUpQuotaConfig": { + "$ref": "GoogleCloudIdentitytoolkitAdminV2TemporaryQuota", + "description": "Quota for the Signup endpoint, if overwritten. Signup quota is measured in sign ups per project per hour per IP." + } + }, + "type": "object" + }, + "GoogleCloudIdentitytoolkitAdminV2RequestLogging": { + "description": "Configuration for logging requests made to this project to Stackdriver Logging", + "id": "GoogleCloudIdentitytoolkitAdminV2RequestLogging", + "properties": { + "enabled": { + "description": "Whether logging is enabled for this project or not.", + "type": "boolean" + } + }, + "type": "object" + }, + "GoogleCloudIdentitytoolkitAdminV2SendEmail": { + "description": "Options for email sending.", + "id": "GoogleCloudIdentitytoolkitAdminV2SendEmail", + "properties": { + "callbackUri": { + "description": "action url in email template.", + "type": "string" + }, + "changeEmailTemplate": { + "$ref": "GoogleCloudIdentitytoolkitAdminV2EmailTemplate", + "description": "Email template for change email" + }, + "dnsInfo": { + "$ref": "GoogleCloudIdentitytoolkitAdminV2DnsInfo", + "description": "Information of custom domain DNS verification." + }, + "legacyResetPasswordTemplate": { + "$ref": "GoogleCloudIdentitytoolkitAdminV2EmailTemplate", + "description": "Reset password email template for legacy Firebase V1 app." + }, + "method": { + "description": "The method used for sending an email.", + "enum": [ + "METHOD_UNSPECIFIED", + "DEFAULT", + "CUSTOM_SMTP" + ], + "enumDescriptions": [ + "Email method unspecified.", + "Sending email on behalf of developer.", + "Sending email using SMTP configuration provided by developers." + ], + "type": "string" + }, + "resetPasswordTemplate": { + "$ref": "GoogleCloudIdentitytoolkitAdminV2EmailTemplate", + "description": "Email template for reset password" + }, + "revertSecondFactorAdditionTemplate": { + "$ref": "GoogleCloudIdentitytoolkitAdminV2EmailTemplate", + "description": "Email template for reverting second factor addition emails" + }, + "smtp": { + "$ref": "GoogleCloudIdentitytoolkitAdminV2Smtp", + "description": "Use a custom SMTP relay" + }, + "verifyEmailTemplate": { + "$ref": "GoogleCloudIdentitytoolkitAdminV2EmailTemplate", + "description": "Email template for verify email" + } + }, + "type": "object" + }, + "GoogleCloudIdentitytoolkitAdminV2SendSms": { + "description": "Options for SMS sending.", + "id": "GoogleCloudIdentitytoolkitAdminV2SendSms", + "properties": { + "smsTemplate": { + "$ref": "GoogleCloudIdentitytoolkitAdminV2SmsTemplate", + "description": "Output only. The template to use when sending an SMS.", + "readOnly": true + }, + "useDeviceLocale": { + "description": "Whether to use the accept_language header for SMS.", + "type": "boolean" + } + }, + "type": "object" + }, + "GoogleCloudIdentitytoolkitAdminV2SignInConfig": { + "description": "Configuration related to local sign in methods.", + "id": "GoogleCloudIdentitytoolkitAdminV2SignInConfig", + "properties": { + "allowDuplicateEmails": { + "description": "Whether to allow more than one account to have the same email.", + "type": "boolean" + }, + "anonymous": { + "$ref": "GoogleCloudIdentitytoolkitAdminV2Anonymous", + "description": "Configuration options related to authenticating an anonymous user." + }, + "email": { + "$ref": "GoogleCloudIdentitytoolkitAdminV2Email", + "description": "Configuration options related to authenticating a user by their email address." + }, + "hashConfig": { + "$ref": "GoogleCloudIdentitytoolkitAdminV2HashConfig", + "description": "Output only. Hash config information.", + "readOnly": true + }, + "phoneNumber": { + "$ref": "GoogleCloudIdentitytoolkitAdminV2PhoneNumber", + "description": "Configuration options related to authenticated a user by their phone number." + } + }, + "type": "object" + }, + "GoogleCloudIdentitytoolkitAdminV2SmsTemplate": { + "description": "The template to use when sending an SMS.", + "id": "GoogleCloudIdentitytoolkitAdminV2SmsTemplate", + "properties": { + "content": { + "description": "Output only. The SMS's content. Can contain the following placeholders which will be replaced with the appropriate values: %APP_NAME% - For Android or iOS apps, the app's display name. For web apps, the domain hosting the application. %LOGIN_CODE% - The OOB code being sent in the SMS.", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudIdentitytoolkitAdminV2Smtp": { + "description": "Configuration for SMTP relay", + "id": "GoogleCloudIdentitytoolkitAdminV2Smtp", + "properties": { + "host": { + "description": "SMTP relay host", + "type": "string" + }, + "password": { + "description": "SMTP relay password", + "type": "string" + }, + "port": { + "description": "SMTP relay port", + "format": "int32", + "type": "integer" + }, + "securityMode": { + "description": "SMTP security mode.", + "enum": [ + "SECURITY_MODE_UNSPECIFIED", + "SSL", + "START_TLS" + ], + "enumDescriptions": [ + "Default value. Do not use.", + "SSL mode", + "START_TLS mode" + ], + "type": "string" + }, + "senderEmail": { + "description": "Sender email for the SMTP relay", + "type": "string" + }, + "username": { + "description": "SMTP relay username", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudIdentitytoolkitAdminV2SpCertificate": { + "description": "The SP's certificate data for IDP to verify the SAMLRequest generated by the SP.", + "id": "GoogleCloudIdentitytoolkitAdminV2SpCertificate", + "properties": { + "expiresAt": { + "description": "Timestamp of the cert expiration instance.", + "format": "google-datetime", + "type": "string" + }, + "x509Certificate": { + "description": "Self-signed public certificate.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudIdentitytoolkitAdminV2SpConfig": { + "description": "The SAML SP (Service Provider) configuration when the project acts as the relying party to receive and accept an authentication assertion issued by a SAML identity provider.", + "id": "GoogleCloudIdentitytoolkitAdminV2SpConfig", + "properties": { + "callbackUri": { + "description": "Callback URI where responses from IDP are handled.", + "type": "string" + }, + "spCertificates": { + "description": "Output only. Public certificates generated by the server to verify the signature in SAMLRequest in the SP-initiated flow.", + "items": { + "$ref": "GoogleCloudIdentitytoolkitAdminV2SpCertificate" + }, + "readOnly": true, + "type": "array" + }, + "spEntityId": { + "description": "Unique identifier for all SAML entities.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudIdentitytoolkitAdminV2TemporaryQuota": { + "description": "Temporary quota increase / decrease", + "id": "GoogleCloudIdentitytoolkitAdminV2TemporaryQuota", + "properties": { + "quota": { + "description": "Corresponds to the 'refill_token_count' field in QuotaServer config", + "format": "int64", + "type": "string" + }, + "quotaDuration": { + "description": "How long this quota will be active for", + "format": "google-duration", + "type": "string" + }, + "startTime": { + "description": "When this quota will take affect", + "format": "google-datetime", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudIdentitytoolkitAdminV2Tenant": { + "description": "A Tenant contains configuration for the tenant in a multi-tenant project.", + "id": "GoogleCloudIdentitytoolkitAdminV2Tenant", + "properties": { + "allowPasswordSignup": { + "description": "Whether to allow email/password user authentication.", + "type": "boolean" + }, + "autodeleteAnonymousUsers": { + "description": "Whether anonymous users will be auto-deleted after a period of 30 days.", + "type": "boolean" + }, + "disableAuth": { + "description": "Whether authentication is disabled for the tenant. If true, the users under the disabled tenant are not allowed to sign-in. Admins of the disabled tenant are not able to manage its users.", + "type": "boolean" + }, + "displayName": { + "description": "Display name of the tenant.", + "type": "string" + }, + "enableAnonymousUser": { + "description": "Whether to enable anonymous user authentication.", + "type": "boolean" + }, + "enableEmailLinkSignin": { + "description": "Whether to enable email link user authentication.", + "type": "boolean" + }, + "hashConfig": { + "$ref": "GoogleCloudIdentitytoolkitAdminV2HashConfig", + "description": "Output only. Hash config information of a tenant for display on Pantheon. This can only be displayed on Pantheon to avoid the sensitive information to get accidentally leaked. Only returned in GetTenant response to restrict reading of this information. Requires firebaseauth.configs.getHashConfig permission on the agent project for returning this field.", + "readOnly": true + }, + "inheritance": { + "$ref": "GoogleCloudIdentitytoolkitAdminV2Inheritance", + "description": "Specify the settings that the tenant could inherit." + }, + "mfaConfig": { + "$ref": "GoogleCloudIdentitytoolkitAdminV2MultiFactorAuthConfig", + "description": "The tenant-level configuration of MFA options." + }, + "name": { + "description": "Output only. Resource name of a tenant. For example: \"projects/{project-id}/tenants/{tenant-id}\"", + "readOnly": true, + "type": "string" + }, + "testPhoneNumbers": { + "additionalProperties": { + "type": "string" + }, + "description": "A map of pairs that can be used for MFA. The phone number should be in E.164 format (https://www.itu.int/rec/T-REC-E.164/) and a maximum of 10 pairs can be added (error will be thrown once exceeded).", + "type": "object" + } + }, + "type": "object" + }, + "GoogleCloudIdentitytoolkitAdminV2Trigger": { + "description": "Synchronous Cloud Function with HTTP Trigger", + "id": "GoogleCloudIdentitytoolkitAdminV2Trigger", + "properties": { + "functionUri": { + "description": "HTTP URI trigger for the Cloud Function.", + "type": "string" + }, + "updateTime": { + "description": "When the trigger was changed.", + "format": "google-datetime", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudIdentitytoolkitV2AutoRetrievalInfo": { + "description": "The information required to auto-retrieve an SMS.", + "id": "GoogleCloudIdentitytoolkitV2AutoRetrievalInfo", + "properties": { + "appSignatureHash": { + "description": "The Android app's signature hash for Google Play Service's SMS Retriever API.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudIdentitytoolkitV2FinalizeMfaEnrollmentRequest": { + "description": "Finishes enrolling a second factor for the user.", + "id": "GoogleCloudIdentitytoolkitV2FinalizeMfaEnrollmentRequest", + "properties": { + "displayName": { + "description": "Display name which is entered by users to distinguish between different second factors with same type or different type.", + "type": "string" + }, + "idToken": { + "description": "Required. ID token.", + "type": "string" + }, + "phoneVerificationInfo": { + "$ref": "GoogleCloudIdentitytoolkitV2FinalizeMfaPhoneRequestInfo", + "description": "Verification info to authorize sending an SMS for phone verification." + }, + "tenantId": { + "description": "The ID of the Identity Platform tenant that the user enrolling MFA belongs to. If not set, the user belongs to the default Identity Platform project.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudIdentitytoolkitV2FinalizeMfaEnrollmentResponse": { + "description": "FinalizeMfaEnrollment response.", + "id": "GoogleCloudIdentitytoolkitV2FinalizeMfaEnrollmentResponse", + "properties": { + "idToken": { + "description": "ID token updated to reflect MFA enrollment.", + "type": "string" + }, + "phoneAuthInfo": { + "$ref": "GoogleCloudIdentitytoolkitV2FinalizeMfaPhoneResponseInfo", + "description": "Auxiliary auth info specific to phone auth." + }, + "refreshToken": { + "description": "Refresh token updated to reflect MFA enrollment.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudIdentitytoolkitV2FinalizeMfaPhoneRequestInfo": { + "description": "Phone Verification info for a FinalizeMfa request.", + "id": "GoogleCloudIdentitytoolkitV2FinalizeMfaPhoneRequestInfo", + "properties": { + "androidVerificationProof": { + "description": "Android only. Uses for \"instant\" phone number verification though GmsCore.", + "type": "string" + }, + "code": { + "description": "User-entered verification code.", + "type": "string" + }, + "phoneNumber": { + "description": "Required if Android verification proof is presented.", + "type": "string" + }, + "sessionInfo": { + "description": "An opaque string that represents the enrollment session.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudIdentitytoolkitV2FinalizeMfaPhoneResponseInfo": { + "description": "Phone Verification info for a FinalizeMfa response.", + "id": "GoogleCloudIdentitytoolkitV2FinalizeMfaPhoneResponseInfo", + "properties": { + "androidVerificationProof": { + "description": "Android only. Long-lived replacement for valid code tied to android device.", + "type": "string" + }, + "androidVerificationProofExpireTime": { + "description": "Android only. Expiration time of verification proof in seconds.", + "format": "google-datetime", + "type": "string" + }, + "phoneNumber": { + "description": "For Android verification proof.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudIdentitytoolkitV2FinalizeMfaSignInRequest": { + "description": "Finalizes sign-in by verifying MFA challenge.", + "id": "GoogleCloudIdentitytoolkitV2FinalizeMfaSignInRequest", + "properties": { + "mfaPendingCredential": { + "description": "Required. Pending credential from first factor sign-in.", + "type": "string" + }, + "phoneVerificationInfo": { + "$ref": "GoogleCloudIdentitytoolkitV2FinalizeMfaPhoneRequestInfo", + "description": "Proof of completion of the SMS based MFA challenge." + }, + "tenantId": { + "description": "The ID of the Identity Platform tenant the user is signing in to. If not set, the user will sign in to the default Identity Platform project.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudIdentitytoolkitV2FinalizeMfaSignInResponse": { + "description": "FinalizeMfaSignIn response.", + "id": "GoogleCloudIdentitytoolkitV2FinalizeMfaSignInResponse", + "properties": { + "idToken": { + "description": "ID token for the authenticated user.", + "type": "string" + }, + "phoneAuthInfo": { + "$ref": "GoogleCloudIdentitytoolkitV2FinalizeMfaPhoneResponseInfo", + "description": "Extra phone auth info, including android verification proof." + }, + "refreshToken": { + "description": "Refresh token for the authenticated user.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudIdentitytoolkitV2StartMfaEnrollmentRequest": { + "description": "Sends MFA enrollment verification SMS for a user.", + "id": "GoogleCloudIdentitytoolkitV2StartMfaEnrollmentRequest", + "properties": { + "idToken": { + "description": "Required. User's ID token.", + "type": "string" + }, + "phoneEnrollmentInfo": { + "$ref": "GoogleCloudIdentitytoolkitV2StartMfaPhoneRequestInfo", + "description": "Verification info to authorize sending an SMS for phone verification." + }, + "tenantId": { + "description": "The ID of the Identity Platform tenant that the user enrolling MFA belongs to. If not set, the user belongs to the default Identity Platform project.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudIdentitytoolkitV2StartMfaEnrollmentResponse": { + "description": "StartMfaEnrollment response.", + "id": "GoogleCloudIdentitytoolkitV2StartMfaEnrollmentResponse", + "properties": { + "phoneSessionInfo": { + "$ref": "GoogleCloudIdentitytoolkitV2StartMfaPhoneResponseInfo", + "description": "Verification info to authorize sending an SMS for phone verification." + } + }, + "type": "object" + }, + "GoogleCloudIdentitytoolkitV2StartMfaPhoneRequestInfo": { + "description": "App Verification info for a StartMfa request.", + "id": "GoogleCloudIdentitytoolkitV2StartMfaPhoneRequestInfo", + "properties": { + "autoRetrievalInfo": { + "$ref": "GoogleCloudIdentitytoolkitV2AutoRetrievalInfo", + "description": "Android only. Used by Google Play Services to identify the app for auto-retrieval." + }, + "iosReceipt": { + "description": "iOS only. Receipt of successful app token validation with APNS.", + "type": "string" + }, + "iosSecret": { + "description": "iOS only. Secret delivered to iOS app via APNS.", + "type": "string" + }, + "phoneNumber": { + "description": "Required for enrollment. Phone number to be enrolled as MFA.", + "type": "string" + }, + "recaptchaToken": { + "description": "Web only. Recaptcha solution.", + "type": "string" + }, + "safetyNetToken": { + "description": "Android only. Used to assert application identity in place of a recaptcha token. A SafetyNet Token can be generated via the [SafetyNet Android Attestation API](https://developer.android.com/training/safetynet/attestation.html), with the Base64 encoding of the `phone_number` field as the nonce.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudIdentitytoolkitV2StartMfaPhoneResponseInfo": { + "description": "Phone Verification info for a StartMfa response.", + "id": "GoogleCloudIdentitytoolkitV2StartMfaPhoneResponseInfo", + "properties": { + "sessionInfo": { + "description": "An opaque string that represents the enrollment session.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudIdentitytoolkitV2StartMfaSignInRequest": { + "description": "Starts multi-factor sign-in by sending the multi-factor auth challenge.", + "id": "GoogleCloudIdentitytoolkitV2StartMfaSignInRequest", + "properties": { + "mfaEnrollmentId": { + "description": "Required. MFA enrollment id from the user's list of current MFA enrollments.", + "type": "string" + }, + "mfaPendingCredential": { + "description": "Required. Pending credential from first factor sign-in.", + "type": "string" + }, + "phoneSignInInfo": { + "$ref": "GoogleCloudIdentitytoolkitV2StartMfaPhoneRequestInfo", + "description": "Verification info to authorize sending an SMS for phone verification." + }, + "tenantId": { + "description": "The ID of the Identity Platform tenant the user is signing in to. If not set, the user will sign in to the default Identity Platform project.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudIdentitytoolkitV2StartMfaSignInResponse": { + "description": "StartMfaSignIn response.", + "id": "GoogleCloudIdentitytoolkitV2StartMfaSignInResponse", + "properties": { + "phoneResponseInfo": { + "$ref": "GoogleCloudIdentitytoolkitV2StartMfaPhoneResponseInfo", + "description": "MultiFactor sign-in session information specific to SMS-type second factors. Along with the one-time code retrieved from the sent SMS, the contents of this session information should be passed to FinalizeMfaSignIn to complete the sign in." + } + }, + "type": "object" + }, + "GoogleCloudIdentitytoolkitV2WithdrawMfaRequest": { + "description": "Withdraws MFA.", + "id": "GoogleCloudIdentitytoolkitV2WithdrawMfaRequest", + "properties": { + "idToken": { + "description": "Required. User's ID token.", + "type": "string" + }, + "mfaEnrollmentId": { + "description": "Required. MFA enrollment id from a current MFA enrollment.", + "type": "string" + }, + "tenantId": { + "description": "The ID of the Identity Platform tenant that the user unenrolling MFA belongs to. If not set, the user belongs to the default Identity Platform project.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudIdentitytoolkitV2WithdrawMfaResponse": { + "description": "Withdraws MultiFactorAuth response.", + "id": "GoogleCloudIdentitytoolkitV2WithdrawMfaResponse", + "properties": { + "idToken": { + "description": "ID token updated to reflect removal of the second factor.", + "type": "string" + }, + "refreshToken": { + "description": "Refresh token updated to reflect removal of the second factor.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleIamV1AuditConfig": { + "description": "Specifies the audit configuration for a service. The configuration determines which permission types are logged, and what identities, if any, are exempted from logging. An AuditConfig must have one or more AuditLogConfigs. If there are AuditConfigs for both `allServices` and a specific service, the union of the two AuditConfigs is used for that service: the log_types specified in each AuditConfig are enabled, and the exempted_members in each AuditLogConfig are exempted. Example Policy with multiple AuditConfigs: { \"audit_configs\": [ { \"service\": \"allServices\", \"audit_log_configs\": [ { \"log_type\": \"DATA_READ\", \"exempted_members\": [ \"user:jose@example.com\" ] }, { \"log_type\": \"DATA_WRITE\" }, { \"log_type\": \"ADMIN_READ\" } ] }, { \"service\": \"sampleservice.googleapis.com\", \"audit_log_configs\": [ { \"log_type\": \"DATA_READ\" }, { \"log_type\": \"DATA_WRITE\", \"exempted_members\": [ \"user:aliya@example.com\" ] } ] } ] } For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ logging. It also exempts `jose@example.com` from DATA_READ logging, and `aliya@example.com` from DATA_WRITE logging.", + "id": "GoogleIamV1AuditConfig", + "properties": { + "auditLogConfigs": { + "description": "The configuration for logging of each type of permission.", + "items": { + "$ref": "GoogleIamV1AuditLogConfig" + }, + "type": "array" + }, + "service": { + "description": "Specifies a service that will be enabled for audit logging. For example, `storage.googleapis.com`, `cloudsql.googleapis.com`. `allServices` is a special value that covers all services.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleIamV1AuditLogConfig": { + "description": "Provides the configuration for logging a type of permissions. Example: { \"audit_log_configs\": [ { \"log_type\": \"DATA_READ\", \"exempted_members\": [ \"user:jose@example.com\" ] }, { \"log_type\": \"DATA_WRITE\" } ] } This enables 'DATA_READ' and 'DATA_WRITE' logging, while exempting jose@example.com from DATA_READ logging.", + "id": "GoogleIamV1AuditLogConfig", + "properties": { + "exemptedMembers": { + "description": "Specifies the identities that do not cause logging for this type of permission. Follows the same format of Binding.members.", + "items": { + "type": "string" + }, + "type": "array" + }, + "logType": { + "description": "The log type that this config enables.", + "enum": [ + "LOG_TYPE_UNSPECIFIED", + "ADMIN_READ", + "DATA_WRITE", + "DATA_READ" + ], + "enumDescriptions": [ + "Default case. Should never be this.", + "Admin reads. Example: CloudIAM getIamPolicy", + "Data writes. Example: CloudSQL Users create", + "Data reads. Example: CloudSQL Users list" + ], + "type": "string" + } + }, + "type": "object" + }, + "GoogleIamV1Binding": { + "description": "Associates `members`, or principals, with a `role`.", + "id": "GoogleIamV1Binding", + "properties": { + "condition": { + "$ref": "GoogleTypeExpr", + "description": "The condition that is associated with this binding. If the condition evaluates to `true`, then this binding applies to the current request. If the condition evaluates to `false`, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the principals in this binding. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies)." + }, + "members": { + "description": "Specifies the principals requesting access for a Google Cloud resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a Google service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An identifier for a [Kubernetes service account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`. ", + "items": { + "type": "string" + }, + "type": "array" + }, + "role": { + "description": "Role that is assigned to the list of `members`, or principals. For example, `roles/viewer`, `roles/editor`, or `roles/owner`.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleIamV1GetIamPolicyRequest": { + "description": "Request message for `GetIamPolicy` method.", + "id": "GoogleIamV1GetIamPolicyRequest", + "properties": { + "options": { + "$ref": "GoogleIamV1GetPolicyOptions", + "description": "OPTIONAL: A `GetPolicyOptions` object for specifying options to `GetIamPolicy`." + } + }, + "type": "object" + }, + "GoogleIamV1GetPolicyOptions": { + "description": "Encapsulates settings provided to GetIamPolicy.", + "id": "GoogleIamV1GetPolicyOptions", + "properties": { + "requestedPolicyVersion": { + "description": "Optional. The maximum policy version that will be used to format the policy. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests for policies with any conditional role bindings must specify version 3. Policies with no conditional role bindings may specify any valid value or leave the field unset. The policy in the response might use the policy version that you specified, or it might use a lower policy version. For example, if you specify version 3, but the policy has no conditional role bindings, the response uses version 1. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, + "GoogleIamV1Policy": { + "description": "An Identity and Access Management (IAM) policy, which specifies access controls for Google Cloud resources. A `Policy` is a collection of `bindings`. A `binding` binds one or more `members`, or principals, to a single `role`. Principals can be user accounts, service accounts, Google groups, and domains (such as G Suite). A `role` is a named list of permissions; each `role` can be an IAM predefined role or a user-created custom role. For some types of Google Cloud resources, a `binding` can also specify a `condition`, which is a logical expression that allows access to a resource only if the expression evaluates to `true`. A condition can add constraints based on attributes of the request, the resource, or both. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). **JSON example:** { \"bindings\": [ { \"role\": \"roles/resourcemanager.organizationAdmin\", \"members\": [ \"user:mike@example.com\", \"group:admins@example.com\", \"domain:google.com\", \"serviceAccount:my-project-id@appspot.gserviceaccount.com\" ] }, { \"role\": \"roles/resourcemanager.organizationViewer\", \"members\": [ \"user:eve@example.com\" ], \"condition\": { \"title\": \"expirable access\", \"description\": \"Does not grant access after Sep 2020\", \"expression\": \"request.time \u003c timestamp('2020-10-01T00:00:00.000Z')\", } } ], \"etag\": \"BwWWja0YfJA=\", \"version\": 3 } **YAML example:** bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time \u003c timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 For a description of IAM and its features, see the [IAM documentation](https://cloud.google.com/iam/docs/).", + "id": "GoogleIamV1Policy", + "properties": { + "auditConfigs": { + "description": "Specifies cloud audit logging configuration for this policy.", + "items": { + "$ref": "GoogleIamV1AuditConfig" + }, + "type": "array" + }, + "bindings": { + "description": "Associates a list of `members`, or principals, with a `role`. Optionally, may specify a `condition` that determines how and when the `bindings` are applied. Each of the `bindings` must contain at least one principal. The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250 of these principals can be Google groups. Each occurrence of a principal counts towards these limits. For example, if the `bindings` grant 50 different roles to `user:alice@example.com`, and not to any other principal, then you can add another 1,450 principals to the `bindings` in the `Policy`.", + "items": { + "$ref": "GoogleIamV1Binding" + }, + "type": "array" + }, + "etag": { + "description": "`etag` is used for optimistic concurrency control as a way to help prevent simultaneous updates of a policy from overwriting each other. It is strongly suggested that systems make use of the `etag` in the read-modify-write cycle to perform policy updates in order to avoid race conditions: An `etag` is returned in the response to `getIamPolicy`, and systems are expected to put that etag in the request to `setIamPolicy` to ensure that their change will be applied to the same version of the policy. **Important:** If you use IAM Conditions, you must include the `etag` field whenever you call `setIamPolicy`. If you omit this field, then IAM allows you to overwrite a version `3` policy with a version `1` policy, and all of the conditions in the version `3` policy are lost.", + "format": "byte", + "type": "string" + }, + "version": { + "description": "Specifies the format of the policy. Valid values are `0`, `1`, and `3`. Requests that specify an invalid value are rejected. Any operation that affects conditional role bindings must specify version `3`. This requirement applies to the following operations: * Getting a policy that includes a conditional role binding * Adding a conditional role binding to a policy * Changing a conditional role binding in a policy * Removing any role binding, with or without a condition, from a policy that includes conditions **Important:** If you use IAM Conditions, you must include the `etag` field whenever you call `setIamPolicy`. If you omit this field, then IAM allows you to overwrite a version `3` policy with a version `1` policy, and all of the conditions in the version `3` policy are lost. If a policy does not include any conditions, operations on that policy may specify any valid version or leave the field unset. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, + "GoogleIamV1SetIamPolicyRequest": { + "description": "Request message for `SetIamPolicy` method.", + "id": "GoogleIamV1SetIamPolicyRequest", + "properties": { + "policy": { + "$ref": "GoogleIamV1Policy", + "description": "REQUIRED: The complete policy to be applied to the `resource`. The size of the policy is limited to a few 10s of KB. An empty policy is a valid policy but certain Google Cloud services (such as Projects) might reject them." + }, + "updateMask": { + "description": "OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only the fields in the mask will be modified. If no mask is provided, the following default mask is used: `paths: \"bindings, etag\"`", + "format": "google-fieldmask", + "type": "string" + } + }, + "type": "object" + }, + "GoogleIamV1TestIamPermissionsRequest": { + "description": "Request message for `TestIamPermissions` method.", + "id": "GoogleIamV1TestIamPermissionsRequest", + "properties": { + "permissions": { + "description": "The set of permissions to check for the `resource`. Permissions with wildcards (such as `*` or `storage.*`) are not allowed. For more information see [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions).", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleIamV1TestIamPermissionsResponse": { + "description": "Response message for `TestIamPermissions` method.", + "id": "GoogleIamV1TestIamPermissionsResponse", + "properties": { + "permissions": { + "description": "A subset of `TestPermissionsRequest.permissions` that the caller is allowed.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleProtobufEmpty": { + "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": "GoogleProtobufEmpty", + "properties": {}, + "type": "object" + }, + "GoogleTypeExpr": { + "description": "Represents a textual expression in the Common Expression Language (CEL) syntax. CEL is a C-like expression language. The syntax and semantics of CEL are documented at https://github.com/google/cel-spec. Example (Comparison): title: \"Summary size limit\" description: \"Determines if a summary is less than 100 chars\" expression: \"document.summary.size() \u003c 100\" Example (Equality): title: \"Requestor is owner\" description: \"Determines if requestor is the document owner\" expression: \"document.owner == request.auth.claims.email\" Example (Logic): title: \"Public documents\" description: \"Determine whether the document should be publicly visible\" expression: \"document.type != 'private' \u0026\u0026 document.type != 'internal'\" Example (Data Manipulation): title: \"Notification string\" description: \"Create a notification string with a timestamp.\" expression: \"'New message received at ' + string(document.create_time)\" The exact variables and functions that may be referenced within an expression are determined by the service that evaluates it. See the service documentation for additional information.", + "id": "GoogleTypeExpr", + "properties": { + "description": { + "description": "Optional. Description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI.", + "type": "string" + }, + "expression": { + "description": "Textual representation of an expression in Common Expression Language syntax.", + "type": "string" + }, + "location": { + "description": "Optional. String indicating the location of the expression for error reporting, e.g. a file name and a position in the file.", + "type": "string" + }, + "title": { + "description": "Optional. Title for the expression, i.e. a short string describing its purpose. This can be used e.g. in UIs which allow to enter the expression.", + "type": "string" + } + }, + "type": "object" + } + }, + "servicePath": "", + "title": "Identity Toolkit API", + "version": "v2", + "version_module": true +} \ No newline at end of file diff --git a/identitytoolkit/v2/identitytoolkit-gen.go b/identitytoolkit/v2/identitytoolkit-gen.go new file mode 100644 index 00000000000..03c3ab5a543 --- /dev/null +++ b/identitytoolkit/v2/identitytoolkit-gen.go @@ -0,0 +1,10351 @@ +// 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 identitytoolkit provides access to the Identity Toolkit API. +// +// For product documentation, see: https://firebase.google.com/docs/auth/ +// +// # Creating a client +// +// Usage example: +// +// import "google.golang.org/api/identitytoolkit/v2" +// ... +// ctx := context.Background() +// identitytoolkitService, err := identitytoolkit.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 +// +// By default, all available scopes (see "Constants") are used to authenticate. To restrict scopes, use option.WithScopes: +// +// identitytoolkitService, err := identitytoolkit.NewService(ctx, option.WithScopes(identitytoolkit.FirebaseScope)) +// +// To use an API key for authentication (note: some APIs do not support API keys), use option.WithAPIKey: +// +// identitytoolkitService, err := identitytoolkit.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, ...) +// identitytoolkitService, err := identitytoolkit.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token))) +// +// See https://godoc.org/google.golang.org/api/option/ for details on options. +package identitytoolkit // import "google.golang.org/api/identitytoolkit/v2" + +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 = "identitytoolkit:v2" +const apiName = "identitytoolkit" +const apiVersion = "v2" +const basePath = "https://identitytoolkit.googleapis.com/" +const mtlsBasePath = "https://identitytoolkit.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" + + // View and administer all your Firebase data and settings + FirebaseScope = "https://www.googleapis.com/auth/firebase" +) + +// 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", + "https://www.googleapis.com/auth/firebase", + ) + // 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.Accounts = NewAccountsService(s) + s.DefaultSupportedIdps = NewDefaultSupportedIdpsService(s) + 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 + + Accounts *AccountsService + + DefaultSupportedIdps *DefaultSupportedIdpsService + + Projects *ProjectsService +} + +func (s *Service) userAgent() string { + if s.UserAgent == "" { + return googleapi.UserAgent + } + return googleapi.UserAgent + " " + s.UserAgent +} + +func NewAccountsService(s *Service) *AccountsService { + rs := &AccountsService{s: s} + rs.MfaEnrollment = NewAccountsMfaEnrollmentService(s) + rs.MfaSignIn = NewAccountsMfaSignInService(s) + return rs +} + +type AccountsService struct { + s *Service + + MfaEnrollment *AccountsMfaEnrollmentService + + MfaSignIn *AccountsMfaSignInService +} + +func NewAccountsMfaEnrollmentService(s *Service) *AccountsMfaEnrollmentService { + rs := &AccountsMfaEnrollmentService{s: s} + return rs +} + +type AccountsMfaEnrollmentService struct { + s *Service +} + +func NewAccountsMfaSignInService(s *Service) *AccountsMfaSignInService { + rs := &AccountsMfaSignInService{s: s} + return rs +} + +type AccountsMfaSignInService struct { + s *Service +} + +func NewDefaultSupportedIdpsService(s *Service) *DefaultSupportedIdpsService { + rs := &DefaultSupportedIdpsService{s: s} + return rs +} + +type DefaultSupportedIdpsService struct { + s *Service +} + +func NewProjectsService(s *Service) *ProjectsService { + rs := &ProjectsService{s: s} + rs.DefaultSupportedIdpConfigs = NewProjectsDefaultSupportedIdpConfigsService(s) + rs.InboundSamlConfigs = NewProjectsInboundSamlConfigsService(s) + rs.OauthIdpConfigs = NewProjectsOauthIdpConfigsService(s) + rs.Tenants = NewProjectsTenantsService(s) + return rs +} + +type ProjectsService struct { + s *Service + + DefaultSupportedIdpConfigs *ProjectsDefaultSupportedIdpConfigsService + + InboundSamlConfigs *ProjectsInboundSamlConfigsService + + OauthIdpConfigs *ProjectsOauthIdpConfigsService + + Tenants *ProjectsTenantsService +} + +func NewProjectsDefaultSupportedIdpConfigsService(s *Service) *ProjectsDefaultSupportedIdpConfigsService { + rs := &ProjectsDefaultSupportedIdpConfigsService{s: s} + return rs +} + +type ProjectsDefaultSupportedIdpConfigsService struct { + s *Service +} + +func NewProjectsInboundSamlConfigsService(s *Service) *ProjectsInboundSamlConfigsService { + rs := &ProjectsInboundSamlConfigsService{s: s} + return rs +} + +type ProjectsInboundSamlConfigsService struct { + s *Service +} + +func NewProjectsOauthIdpConfigsService(s *Service) *ProjectsOauthIdpConfigsService { + rs := &ProjectsOauthIdpConfigsService{s: s} + return rs +} + +type ProjectsOauthIdpConfigsService struct { + s *Service +} + +func NewProjectsTenantsService(s *Service) *ProjectsTenantsService { + rs := &ProjectsTenantsService{s: s} + rs.DefaultSupportedIdpConfigs = NewProjectsTenantsDefaultSupportedIdpConfigsService(s) + rs.InboundSamlConfigs = NewProjectsTenantsInboundSamlConfigsService(s) + rs.OauthIdpConfigs = NewProjectsTenantsOauthIdpConfigsService(s) + return rs +} + +type ProjectsTenantsService struct { + s *Service + + DefaultSupportedIdpConfigs *ProjectsTenantsDefaultSupportedIdpConfigsService + + InboundSamlConfigs *ProjectsTenantsInboundSamlConfigsService + + OauthIdpConfigs *ProjectsTenantsOauthIdpConfigsService +} + +func NewProjectsTenantsDefaultSupportedIdpConfigsService(s *Service) *ProjectsTenantsDefaultSupportedIdpConfigsService { + rs := &ProjectsTenantsDefaultSupportedIdpConfigsService{s: s} + return rs +} + +type ProjectsTenantsDefaultSupportedIdpConfigsService struct { + s *Service +} + +func NewProjectsTenantsInboundSamlConfigsService(s *Service) *ProjectsTenantsInboundSamlConfigsService { + rs := &ProjectsTenantsInboundSamlConfigsService{s: s} + return rs +} + +type ProjectsTenantsInboundSamlConfigsService struct { + s *Service +} + +func NewProjectsTenantsOauthIdpConfigsService(s *Service) *ProjectsTenantsOauthIdpConfigsService { + rs := &ProjectsTenantsOauthIdpConfigsService{s: s} + return rs +} + +type ProjectsTenantsOauthIdpConfigsService struct { + s *Service +} + +// GoogleCloudIdentitytoolkitAdminV2Anonymous: Configuration options +// related to authenticating an anonymous user. +type GoogleCloudIdentitytoolkitAdminV2Anonymous struct { + // Enabled: Whether anonymous user auth is enabled for the project or + // not. + Enabled bool `json:"enabled,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Enabled") 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. "Enabled") 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 *GoogleCloudIdentitytoolkitAdminV2Anonymous) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudIdentitytoolkitAdminV2Anonymous + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudIdentitytoolkitAdminV2AppleSignInConfig: Additional config +// for SignInWithApple. +type GoogleCloudIdentitytoolkitAdminV2AppleSignInConfig struct { + // BundleIds: A list of Bundle ID's usable by this project + BundleIds []string `json:"bundleIds,omitempty"` + + CodeFlowConfig *GoogleCloudIdentitytoolkitAdminV2CodeFlowConfig `json:"codeFlowConfig,omitempty"` + + // ForceSendFields is a list of field names (e.g. "BundleIds") 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. "BundleIds") 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 *GoogleCloudIdentitytoolkitAdminV2AppleSignInConfig) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudIdentitytoolkitAdminV2AppleSignInConfig + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudIdentitytoolkitAdminV2BlockingFunctionsConfig: +// Configuration related to Blocking Functions. +type GoogleCloudIdentitytoolkitAdminV2BlockingFunctionsConfig struct { + // ForwardInboundCredentials: The user credentials to include in the JWT + // payload that is sent to the registered Blocking Functions. + ForwardInboundCredentials *GoogleCloudIdentitytoolkitAdminV2ForwardInboundCredentials `json:"forwardInboundCredentials,omitempty"` + + // Triggers: Map of Trigger to event type. Key should be one of the + // supported event types: "beforeCreate", "beforeSignIn" + Triggers map[string]GoogleCloudIdentitytoolkitAdminV2Trigger `json:"triggers,omitempty"` + + // ForceSendFields is a list of field names (e.g. + // "ForwardInboundCredentials") 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. + // "ForwardInboundCredentials") 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 *GoogleCloudIdentitytoolkitAdminV2BlockingFunctionsConfig) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudIdentitytoolkitAdminV2BlockingFunctionsConfig + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudIdentitytoolkitAdminV2ClientConfig: Options related to how +// clients making requests on behalf of a project should be configured. +type GoogleCloudIdentitytoolkitAdminV2ClientConfig struct { + // ApiKey: Output only. API key that can be used when making requests + // for this project. + ApiKey string `json:"apiKey,omitempty"` + + // FirebaseSubdomain: Output only. Firebase subdomain. + FirebaseSubdomain string `json:"firebaseSubdomain,omitempty"` + + // Permissions: Configuration related to restricting a user's ability to + // affect their account. + Permissions *GoogleCloudIdentitytoolkitAdminV2Permissions `json:"permissions,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ApiKey") 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. "ApiKey") 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 *GoogleCloudIdentitytoolkitAdminV2ClientConfig) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudIdentitytoolkitAdminV2ClientConfig + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudIdentitytoolkitAdminV2CodeFlowConfig: Additional config +// for Apple for code flow. +type GoogleCloudIdentitytoolkitAdminV2CodeFlowConfig struct { + // KeyId: Key ID for the private key. + KeyId string `json:"keyId,omitempty"` + + // PrivateKey: Private key used for signing the client secret JWT. + PrivateKey string `json:"privateKey,omitempty"` + + // TeamId: Apple Developer Team ID. + TeamId string `json:"teamId,omitempty"` + + // ForceSendFields is a list of field names (e.g. "KeyId") 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. "KeyId") 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 *GoogleCloudIdentitytoolkitAdminV2CodeFlowConfig) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudIdentitytoolkitAdminV2CodeFlowConfig + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudIdentitytoolkitAdminV2Config: Represents an Identity +// Toolkit project. +type GoogleCloudIdentitytoolkitAdminV2Config struct { + // AuthorizedDomains: List of domains authorized for OAuth redirects + AuthorizedDomains []string `json:"authorizedDomains,omitempty"` + + // AutodeleteAnonymousUsers: Whether anonymous users will be + // auto-deleted after a period of 30 days. + AutodeleteAnonymousUsers bool `json:"autodeleteAnonymousUsers,omitempty"` + + // BlockingFunctions: Configuration related to blocking functions. + BlockingFunctions *GoogleCloudIdentitytoolkitAdminV2BlockingFunctionsConfig `json:"blockingFunctions,omitempty"` + + // Client: Options related to how clients making requests on behalf of a + // project should be configured. + Client *GoogleCloudIdentitytoolkitAdminV2ClientConfig `json:"client,omitempty"` + + // Mfa: Configuration for this project's multi-factor authentication, + // including whether it is active and what factors can be used for the + // second factor + Mfa *GoogleCloudIdentitytoolkitAdminV2MultiFactorAuthConfig `json:"mfa,omitempty"` + + // Monitoring: Configuration related to monitoring project activity. + Monitoring *GoogleCloudIdentitytoolkitAdminV2MonitoringConfig `json:"monitoring,omitempty"` + + // MultiTenant: Configuration related to multi-tenant functionality. + MultiTenant *GoogleCloudIdentitytoolkitAdminV2MultiTenantConfig `json:"multiTenant,omitempty"` + + // Name: Output only. The name of the Config resource. Example: + // "projects/my-awesome-project/config" + Name string `json:"name,omitempty"` + + // Notification: Configuration related to sending notifications to + // users. + Notification *GoogleCloudIdentitytoolkitAdminV2NotificationConfig `json:"notification,omitempty"` + + // Quota: Configuration related to quotas. + Quota *GoogleCloudIdentitytoolkitAdminV2QuotaConfig `json:"quota,omitempty"` + + // SignIn: Configuration related to local sign in methods. + SignIn *GoogleCloudIdentitytoolkitAdminV2SignInConfig `json:"signIn,omitempty"` + + // Subtype: Output only. The subtype of this config. + // + // Possible values: + // "SUBTYPE_UNSPECIFIED" - Default value. Do not use. + // "IDENTITY_PLATFORM" - An Identity Platform project. + // "FIREBASE_AUTH" - A Firebase Authentication project. + Subtype string `json:"subtype,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "AuthorizedDomains") + // 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. "AuthorizedDomains") 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 *GoogleCloudIdentitytoolkitAdminV2Config) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudIdentitytoolkitAdminV2Config + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudIdentitytoolkitAdminV2DefaultSupportedIdp: Standard +// Identity Toolkit-trusted IDPs. +type GoogleCloudIdentitytoolkitAdminV2DefaultSupportedIdp struct { + // Description: Description of the Idp + Description string `json:"description,omitempty"` + + // IdpId: Id the of Idp + IdpId string `json:"idpId,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Description") 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. "Description") 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 *GoogleCloudIdentitytoolkitAdminV2DefaultSupportedIdp) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudIdentitytoolkitAdminV2DefaultSupportedIdp + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudIdentitytoolkitAdminV2DefaultSupportedIdpConfig: +// Configurations options for authenticating with a the standard set of +// Identity Toolkit-trusted IDPs. +type GoogleCloudIdentitytoolkitAdminV2DefaultSupportedIdpConfig struct { + // AppleSignInConfig: Additional config for Apple-based projects. + AppleSignInConfig *GoogleCloudIdentitytoolkitAdminV2AppleSignInConfig `json:"appleSignInConfig,omitempty"` + + // ClientId: OAuth client ID. + ClientId string `json:"clientId,omitempty"` + + // ClientSecret: OAuth client secret. + ClientSecret string `json:"clientSecret,omitempty"` + + // Enabled: True if allows the user to sign in with the provider. + Enabled bool `json:"enabled,omitempty"` + + // Name: The name of the DefaultSupportedIdpConfig resource, for + // example: + // "projects/my-awesome-project/defaultSupportedIdpConfigs/google.com" + 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. "AppleSignInConfig") + // 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. "AppleSignInConfig") 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 *GoogleCloudIdentitytoolkitAdminV2DefaultSupportedIdpConfig) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudIdentitytoolkitAdminV2DefaultSupportedIdpConfig + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudIdentitytoolkitAdminV2DnsInfo: Information of custom +// domain DNS verification. By default, default_domain will be used. A +// custom domain can be configured using VerifyCustomDomain. +type GoogleCloudIdentitytoolkitAdminV2DnsInfo struct { + // CustomDomain: Output only. The applied verified custom domain. + CustomDomain string `json:"customDomain,omitempty"` + + // CustomDomainState: Output only. The current verification state of the + // custom domain. The custom domain will only be used once the domain + // verification is successful. + // + // Possible values: + // "VERIFICATION_STATE_UNSPECIFIED" - Default value. Do not use. + // "NOT_STARTED" - The verification has not started. + // "IN_PROGRESS" - The verification is in progress. + // "FAILED" - The verification failed. + // "SUCCEEDED" - The verification succeeded and is ready to be + // applied. + CustomDomainState string `json:"customDomainState,omitempty"` + + // DomainVerificationRequestTime: Output only. The timestamp of initial + // request for the current domain verification. + DomainVerificationRequestTime string `json:"domainVerificationRequestTime,omitempty"` + + // PendingCustomDomain: Output only. The custom domain that's to be + // verified. + PendingCustomDomain string `json:"pendingCustomDomain,omitempty"` + + // UseCustomDomain: Whether to use custom domain. + UseCustomDomain bool `json:"useCustomDomain,omitempty"` + + // ForceSendFields is a list of field names (e.g. "CustomDomain") 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. "CustomDomain") 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 *GoogleCloudIdentitytoolkitAdminV2DnsInfo) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudIdentitytoolkitAdminV2DnsInfo + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudIdentitytoolkitAdminV2Email: Configuration options related +// to authenticating a user by their email address. +type GoogleCloudIdentitytoolkitAdminV2Email struct { + // Enabled: Whether email auth is enabled for the project or not. + Enabled bool `json:"enabled,omitempty"` + + // PasswordRequired: Whether a password is required for email auth or + // not. If true, both an email and password must be provided to sign in. + // If false, a user may sign in via either email/password or email link. + PasswordRequired bool `json:"passwordRequired,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Enabled") 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. "Enabled") 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 *GoogleCloudIdentitytoolkitAdminV2Email) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudIdentitytoolkitAdminV2Email + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudIdentitytoolkitAdminV2EmailTemplate: Email template. The +// subject and body fields can contain the following placeholders which +// will be replaced with the appropriate values: %LINK% - The link to +// use to redeem the send OOB code. %EMAIL% - The email where the email +// is being sent. %NEW_EMAIL% - The new email being set for the account +// (when applicable). %APP_NAME% - The GCP project's display name. +// %DISPLAY_NAME% - The user's display name. +type GoogleCloudIdentitytoolkitAdminV2EmailTemplate struct { + // Body: Email body + Body string `json:"body,omitempty"` + + // BodyFormat: Email body format + // + // Possible values: + // "BODY_FORMAT_UNSPECIFIED" - Default value. Do not use. + // "PLAIN_TEXT" - Plain text + // "HTML" - HTML + BodyFormat string `json:"bodyFormat,omitempty"` + + // Customized: Output only. Whether the body or subject of the email is + // customized. + Customized bool `json:"customized,omitempty"` + + // ReplyTo: Reply-to address + ReplyTo string `json:"replyTo,omitempty"` + + // SenderDisplayName: Sender display name + SenderDisplayName string `json:"senderDisplayName,omitempty"` + + // SenderLocalPart: Local part of From address + SenderLocalPart string `json:"senderLocalPart,omitempty"` + + // Subject: Subject of the email + Subject string `json:"subject,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Body") 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. "Body") 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 *GoogleCloudIdentitytoolkitAdminV2EmailTemplate) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudIdentitytoolkitAdminV2EmailTemplate + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudIdentitytoolkitAdminV2ForwardInboundCredentials: Indicates +// which credentials to pass to the registered Blocking Functions. +type GoogleCloudIdentitytoolkitAdminV2ForwardInboundCredentials struct { + // AccessToken: Whether to pass the user's OAuth identity provider's + // access token. + AccessToken bool `json:"accessToken,omitempty"` + + // IdToken: Whether to pass the user's OIDC identity provider's ID + // token. + IdToken bool `json:"idToken,omitempty"` + + // RefreshToken: Whether to pass the user's OAuth identity provider's + // refresh token. + RefreshToken bool `json:"refreshToken,omitempty"` + + // ForceSendFields is a list of field names (e.g. "AccessToken") 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. "AccessToken") 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 *GoogleCloudIdentitytoolkitAdminV2ForwardInboundCredentials) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudIdentitytoolkitAdminV2ForwardInboundCredentials + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudIdentitytoolkitAdminV2HashConfig: History information of +// the hash algorithm and key. Different accounts' passwords may be +// generated by different version. +type GoogleCloudIdentitytoolkitAdminV2HashConfig struct { + // Algorithm: Output only. Different password hash algorithms used in + // Identity Toolkit. + // + // Possible values: + // "HASH_ALGORITHM_UNSPECIFIED" - Default value. Do not use. + // "HMAC_SHA256" - HMAC_SHA256 + // "HMAC_SHA1" - HMAC_SHA1 + // "HMAC_MD5" - HMAC_MD5 + // "SCRYPT" - SCRYPT + // "PBKDF_SHA1" - PBKDF_SHA1 + // "MD5" - MD5 + // "HMAC_SHA512" - HMAC_SHA512 + // "SHA1" - SHA1 + // "BCRYPT" - BCRYPT + // "PBKDF2_SHA256" - PBKDF2_SHA256 + // "SHA256" - SHA256 + // "SHA512" - SHA512 + // "STANDARD_SCRYPT" - STANDARD_SCRYPT + Algorithm string `json:"algorithm,omitempty"` + + // MemoryCost: Output only. Memory cost for hash calculation. Used by + // scrypt and other similar password derivation algorithms. See + // https://tools.ietf.org/html/rfc7914 for explanation of field. + MemoryCost int64 `json:"memoryCost,omitempty"` + + // Rounds: Output only. How many rounds for hash calculation. Used by + // scrypt and other similar password derivation algorithms. + Rounds int64 `json:"rounds,omitempty"` + + // SaltSeparator: Output only. Non-printable character to be inserted + // between the salt and plain text password in base64. + SaltSeparator string `json:"saltSeparator,omitempty"` + + // SignerKey: Output only. Signer key in base64. + SignerKey string `json:"signerKey,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Algorithm") 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. "Algorithm") 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 *GoogleCloudIdentitytoolkitAdminV2HashConfig) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudIdentitytoolkitAdminV2HashConfig + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudIdentitytoolkitAdminV2IdpCertificate: The IDP's +// certificate data to verify the signature in the SAMLResponse issued +// by the IDP. +type GoogleCloudIdentitytoolkitAdminV2IdpCertificate struct { + // X509Certificate: The x509 certificate + X509Certificate string `json:"x509Certificate,omitempty"` + + // ForceSendFields is a list of field names (e.g. "X509Certificate") 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. "X509Certificate") 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 *GoogleCloudIdentitytoolkitAdminV2IdpCertificate) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudIdentitytoolkitAdminV2IdpCertificate + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudIdentitytoolkitAdminV2IdpConfig: The SAML IdP (Identity +// Provider) configuration when the project acts as the relying party. +type GoogleCloudIdentitytoolkitAdminV2IdpConfig struct { + // IdpCertificates: IDP's public keys for verifying signature in the + // assertions. + IdpCertificates []*GoogleCloudIdentitytoolkitAdminV2IdpCertificate `json:"idpCertificates,omitempty"` + + // IdpEntityId: Unique identifier for all SAML entities. + IdpEntityId string `json:"idpEntityId,omitempty"` + + // SignRequest: Indicates if outbounding SAMLRequest should be signed. + SignRequest bool `json:"signRequest,omitempty"` + + // SsoUrl: URL to send Authentication request to. + SsoUrl string `json:"ssoUrl,omitempty"` + + // ForceSendFields is a list of field names (e.g. "IdpCertificates") 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. "IdpCertificates") 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 *GoogleCloudIdentitytoolkitAdminV2IdpConfig) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudIdentitytoolkitAdminV2IdpConfig + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudIdentitytoolkitAdminV2InboundSamlConfig: A pair of SAML +// RP-IDP configurations when the project acts as the relying party. +type GoogleCloudIdentitytoolkitAdminV2InboundSamlConfig struct { + // DisplayName: The config's display name set by developers. + DisplayName string `json:"displayName,omitempty"` + + // Enabled: True if allows the user to sign in with the provider. + Enabled bool `json:"enabled,omitempty"` + + // IdpConfig: The SAML IdP (Identity Provider) configuration when the + // project acts as the relying party. + IdpConfig *GoogleCloudIdentitytoolkitAdminV2IdpConfig `json:"idpConfig,omitempty"` + + // Name: The name of the InboundSamlConfig resource, for example: + // 'projects/my-awesome-project/inboundSamlConfigs/my-config-id'. + // Ignored during create requests. + Name string `json:"name,omitempty"` + + // SpConfig: The SAML SP (Service Provider) configuration when the + // project acts as the relying party to receive and accept an + // authentication assertion issued by a SAML identity provider. + SpConfig *GoogleCloudIdentitytoolkitAdminV2SpConfig `json:"spConfig,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 *GoogleCloudIdentitytoolkitAdminV2InboundSamlConfig) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudIdentitytoolkitAdminV2InboundSamlConfig + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudIdentitytoolkitAdminV2Inheritance: Settings that the +// tenants will inherit from project level. +type GoogleCloudIdentitytoolkitAdminV2Inheritance struct { + // EmailSendingConfig: Whether to allow the tenant to inherit custom + // domains, email templates, and custom SMTP settings. If true, email + // sent from tenant will follow the project level email sending + // configurations. If false (by default), emails will go with the + // default settings with no customizations. + EmailSendingConfig bool `json:"emailSendingConfig,omitempty"` + + // ForceSendFields is a list of field names (e.g. "EmailSendingConfig") + // 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. "EmailSendingConfig") 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 *GoogleCloudIdentitytoolkitAdminV2Inheritance) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudIdentitytoolkitAdminV2Inheritance + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudIdentitytoolkitAdminV2ListDefaultSupportedIdpConfigsRespons +// e: Response for DefaultSupportedIdpConfigs +type GoogleCloudIdentitytoolkitAdminV2ListDefaultSupportedIdpConfigsResponse struct { + // DefaultSupportedIdpConfigs: The set of configs. + DefaultSupportedIdpConfigs []*GoogleCloudIdentitytoolkitAdminV2DefaultSupportedIdpConfig `json:"defaultSupportedIdpConfigs,omitempty"` + + // NextPageToken: Token to retrieve the next page of results, or empty + // if there are no more results in the list. + 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. + // "DefaultSupportedIdpConfigs") 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. + // "DefaultSupportedIdpConfigs") 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 *GoogleCloudIdentitytoolkitAdminV2ListDefaultSupportedIdpConfigsResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudIdentitytoolkitAdminV2ListDefaultSupportedIdpConfigsResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudIdentitytoolkitAdminV2ListDefaultSupportedIdpsResponse: +// Response for ListDefaultSupportedIdps +type GoogleCloudIdentitytoolkitAdminV2ListDefaultSupportedIdpsResponse struct { + // DefaultSupportedIdps: The set of configs. + DefaultSupportedIdps []*GoogleCloudIdentitytoolkitAdminV2DefaultSupportedIdp `json:"defaultSupportedIdps,omitempty"` + + // NextPageToken: Token to retrieve the next page of results, or empty + // if there are no more results in the list. + 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. + // "DefaultSupportedIdps") 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. "DefaultSupportedIdps") 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 *GoogleCloudIdentitytoolkitAdminV2ListDefaultSupportedIdpsResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudIdentitytoolkitAdminV2ListDefaultSupportedIdpsResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudIdentitytoolkitAdminV2ListInboundSamlConfigsResponse: +// Response for ListInboundSamlConfigs +type GoogleCloudIdentitytoolkitAdminV2ListInboundSamlConfigsResponse struct { + // InboundSamlConfigs: The set of configs. + InboundSamlConfigs []*GoogleCloudIdentitytoolkitAdminV2InboundSamlConfig `json:"inboundSamlConfigs,omitempty"` + + // NextPageToken: Token to retrieve the next page of results, or empty + // if there are no more results in the list. + 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. "InboundSamlConfigs") + // 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. "InboundSamlConfigs") 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 *GoogleCloudIdentitytoolkitAdminV2ListInboundSamlConfigsResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudIdentitytoolkitAdminV2ListInboundSamlConfigsResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudIdentitytoolkitAdminV2ListOAuthIdpConfigsResponse: +// Response for ListOAuthIdpConfigs +type GoogleCloudIdentitytoolkitAdminV2ListOAuthIdpConfigsResponse struct { + // NextPageToken: Token to retrieve the next page of results, or empty + // if there are no more results in the list. + NextPageToken string `json:"nextPageToken,omitempty"` + + // OauthIdpConfigs: The set of configs. + OauthIdpConfigs []*GoogleCloudIdentitytoolkitAdminV2OAuthIdpConfig `json:"oauthIdpConfigs,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 *GoogleCloudIdentitytoolkitAdminV2ListOAuthIdpConfigsResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudIdentitytoolkitAdminV2ListOAuthIdpConfigsResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudIdentitytoolkitAdminV2ListTenantsResponse: Response +// message for ListTenants. +type GoogleCloudIdentitytoolkitAdminV2ListTenantsResponse struct { + // NextPageToken: The token to get the next page of results. + NextPageToken string `json:"nextPageToken,omitempty"` + + // Tenants: A list of tenants under the given agent project. + Tenants []*GoogleCloudIdentitytoolkitAdminV2Tenant `json:"tenants,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 *GoogleCloudIdentitytoolkitAdminV2ListTenantsResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudIdentitytoolkitAdminV2ListTenantsResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudIdentitytoolkitAdminV2MonitoringConfig: Configuration +// related to monitoring project activity. +type GoogleCloudIdentitytoolkitAdminV2MonitoringConfig struct { + // RequestLogging: Configuration for logging requests made to this + // project to Stackdriver Logging + RequestLogging *GoogleCloudIdentitytoolkitAdminV2RequestLogging `json:"requestLogging,omitempty"` + + // ForceSendFields is a list of field names (e.g. "RequestLogging") 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. "RequestLogging") 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 *GoogleCloudIdentitytoolkitAdminV2MonitoringConfig) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudIdentitytoolkitAdminV2MonitoringConfig + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudIdentitytoolkitAdminV2MultiFactorAuthConfig: Options +// related to MultiFactor Authentication for the project. +type GoogleCloudIdentitytoolkitAdminV2MultiFactorAuthConfig struct { + // EnabledProviders: A list of usable second factors for this project. + // + // Possible values: + // "PROVIDER_UNSPECIFIED" - Illegal Provider, should not be used + // "PHONE_SMS" - SMS is enabled as a second factor for this project. + EnabledProviders []string `json:"enabledProviders,omitempty"` + + // State: Whether MultiFactor Authentication has been enabled for this + // project. + // + // Possible values: + // "STATE_UNSPECIFIED" - Illegal State, should not be used. + // "DISABLED" - Multi-factor authentication cannot be used for this + // project + // "ENABLED" - Multi-factor authentication can be used for this + // project + // "MANDATORY" - Multi-factor authentication is required for this + // project. Users from this project must authenticate with the second + // factor. + State string `json:"state,omitempty"` + + // ForceSendFields is a list of field names (e.g. "EnabledProviders") 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. "EnabledProviders") 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 *GoogleCloudIdentitytoolkitAdminV2MultiFactorAuthConfig) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudIdentitytoolkitAdminV2MultiFactorAuthConfig + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudIdentitytoolkitAdminV2MultiTenantConfig: Configuration +// related to multi-tenant functionality. +type GoogleCloudIdentitytoolkitAdminV2MultiTenantConfig struct { + // AllowTenants: Whether this project can have tenants or not. + AllowTenants bool `json:"allowTenants,omitempty"` + + // DefaultTenantLocation: The default cloud parent org or folder that + // the tenant project should be created under. The parent resource name + // should be in the format of "/", such as "folders/123" or + // "organizations/456". If the value is not set, the tenant will be + // created under the same organization or folder as the agent project. + DefaultTenantLocation string `json:"defaultTenantLocation,omitempty"` + + // ForceSendFields is a list of field names (e.g. "AllowTenants") 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. "AllowTenants") 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 *GoogleCloudIdentitytoolkitAdminV2MultiTenantConfig) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudIdentitytoolkitAdminV2MultiTenantConfig + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudIdentitytoolkitAdminV2NotificationConfig: Configuration +// related to sending notifications to users. +type GoogleCloudIdentitytoolkitAdminV2NotificationConfig struct { + // DefaultLocale: Default locale used for email and SMS in IETF BCP 47 + // format. + DefaultLocale string `json:"defaultLocale,omitempty"` + + // SendEmail: Options for email sending. + SendEmail *GoogleCloudIdentitytoolkitAdminV2SendEmail `json:"sendEmail,omitempty"` + + // SendSms: Options for SMS sending. + SendSms *GoogleCloudIdentitytoolkitAdminV2SendSms `json:"sendSms,omitempty"` + + // ForceSendFields is a list of field names (e.g. "DefaultLocale") 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. "DefaultLocale") 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 *GoogleCloudIdentitytoolkitAdminV2NotificationConfig) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudIdentitytoolkitAdminV2NotificationConfig + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudIdentitytoolkitAdminV2OAuthIdpConfig: Configuration +// options for authenticating with an OAuth IDP. +type GoogleCloudIdentitytoolkitAdminV2OAuthIdpConfig struct { + // ClientId: The client id of an OAuth client. + ClientId string `json:"clientId,omitempty"` + + // ClientSecret: The client secret of the OAuth client, to enable OIDC + // code flow. + ClientSecret string `json:"clientSecret,omitempty"` + + // DisplayName: The config's display name set by developers. + DisplayName string `json:"displayName,omitempty"` + + // Enabled: True if allows the user to sign in with the provider. + Enabled bool `json:"enabled,omitempty"` + + // Issuer: For OIDC Idps, the issuer identifier. + Issuer string `json:"issuer,omitempty"` + + // Name: The name of the OAuthIdpConfig resource, for example: + // 'projects/my-awesome-project/oauthIdpConfigs/oauth-config-id'. + // Ignored during create requests. + Name string `json:"name,omitempty"` + + // ResponseType: The response type to request for in the OAuth + // authorization flow. You can set either `id_token` or `code` to true, + // but not both. Setting both types to be simultaneously true (`{code: + // true, id_token: true}`) is not yet supported. + ResponseType *GoogleCloudIdentitytoolkitAdminV2OAuthResponseType `json:"responseType,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "ClientId") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // 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. "ClientId") 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 *GoogleCloudIdentitytoolkitAdminV2OAuthIdpConfig) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudIdentitytoolkitAdminV2OAuthIdpConfig + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudIdentitytoolkitAdminV2OAuthResponseType: The response type +// to request for in the OAuth authorization flow. You can set either +// `id_token` or `code` to true, but not both. Setting both types to be +// simultaneously true (`{code: true, id_token: true}`) is not yet +// supported. See +// https://openid.net/specs/openid-connect-core-1_0.html#Authentication +// for a mapping of response type to OAuth 2.0 flow. +type GoogleCloudIdentitytoolkitAdminV2OAuthResponseType struct { + // Code: If true, authorization code is returned from IdP's + // authorization endpoint. + Code bool `json:"code,omitempty"` + + // IdToken: If true, ID token is returned from IdP's authorization + // endpoint. + IdToken bool `json:"idToken,omitempty"` + + // Token: Do not use. The `token` response type is not supported at the + // moment. + Token bool `json:"token,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 *GoogleCloudIdentitytoolkitAdminV2OAuthResponseType) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudIdentitytoolkitAdminV2OAuthResponseType + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudIdentitytoolkitAdminV2Permissions: Configuration related +// to restricting a user's ability to affect their account. +type GoogleCloudIdentitytoolkitAdminV2Permissions struct { + // DisabledUserDeletion: When true, end users cannot delete their + // account on the associated project through any of our API methods + DisabledUserDeletion bool `json:"disabledUserDeletion,omitempty"` + + // DisabledUserSignup: When true, end users cannot sign up for a new + // account on the associated project through any of our API methods + DisabledUserSignup bool `json:"disabledUserSignup,omitempty"` + + // ForceSendFields is a list of field names (e.g. + // "DisabledUserDeletion") 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. "DisabledUserDeletion") 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 *GoogleCloudIdentitytoolkitAdminV2Permissions) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudIdentitytoolkitAdminV2Permissions + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudIdentitytoolkitAdminV2PhoneNumber: Configuration options +// related to authenticated a user by their phone number. +type GoogleCloudIdentitytoolkitAdminV2PhoneNumber struct { + // Enabled: Whether phone number auth is enabled for the project or not. + Enabled bool `json:"enabled,omitempty"` + + // TestPhoneNumbers: A map of that can be used for phone auth testing. + TestPhoneNumbers map[string]string `json:"testPhoneNumbers,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Enabled") 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. "Enabled") 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 *GoogleCloudIdentitytoolkitAdminV2PhoneNumber) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudIdentitytoolkitAdminV2PhoneNumber + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudIdentitytoolkitAdminV2QuotaConfig: Configuration related +// to quotas. +type GoogleCloudIdentitytoolkitAdminV2QuotaConfig struct { + // SignUpQuotaConfig: Quota for the Signup endpoint, if overwritten. + // Signup quota is measured in sign ups per project per hour per IP. + SignUpQuotaConfig *GoogleCloudIdentitytoolkitAdminV2TemporaryQuota `json:"signUpQuotaConfig,omitempty"` + + // ForceSendFields is a list of field names (e.g. "SignUpQuotaConfig") + // 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. "SignUpQuotaConfig") 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 *GoogleCloudIdentitytoolkitAdminV2QuotaConfig) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudIdentitytoolkitAdminV2QuotaConfig + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudIdentitytoolkitAdminV2RequestLogging: Configuration for +// logging requests made to this project to Stackdriver Logging +type GoogleCloudIdentitytoolkitAdminV2RequestLogging struct { + // Enabled: Whether logging is enabled for this project or not. + Enabled bool `json:"enabled,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Enabled") 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. "Enabled") 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 *GoogleCloudIdentitytoolkitAdminV2RequestLogging) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudIdentitytoolkitAdminV2RequestLogging + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudIdentitytoolkitAdminV2SendEmail: Options for email +// sending. +type GoogleCloudIdentitytoolkitAdminV2SendEmail struct { + // CallbackUri: action url in email template. + CallbackUri string `json:"callbackUri,omitempty"` + + // ChangeEmailTemplate: Email template for change email + ChangeEmailTemplate *GoogleCloudIdentitytoolkitAdminV2EmailTemplate `json:"changeEmailTemplate,omitempty"` + + // DnsInfo: Information of custom domain DNS verification. + DnsInfo *GoogleCloudIdentitytoolkitAdminV2DnsInfo `json:"dnsInfo,omitempty"` + + // LegacyResetPasswordTemplate: Reset password email template for legacy + // Firebase V1 app. + LegacyResetPasswordTemplate *GoogleCloudIdentitytoolkitAdminV2EmailTemplate `json:"legacyResetPasswordTemplate,omitempty"` + + // Method: The method used for sending an email. + // + // Possible values: + // "METHOD_UNSPECIFIED" - Email method unspecified. + // "DEFAULT" - Sending email on behalf of developer. + // "CUSTOM_SMTP" - Sending email using SMTP configuration provided by + // developers. + Method string `json:"method,omitempty"` + + // ResetPasswordTemplate: Email template for reset password + ResetPasswordTemplate *GoogleCloudIdentitytoolkitAdminV2EmailTemplate `json:"resetPasswordTemplate,omitempty"` + + // RevertSecondFactorAdditionTemplate: Email template for reverting + // second factor addition emails + RevertSecondFactorAdditionTemplate *GoogleCloudIdentitytoolkitAdminV2EmailTemplate `json:"revertSecondFactorAdditionTemplate,omitempty"` + + // Smtp: Use a custom SMTP relay + Smtp *GoogleCloudIdentitytoolkitAdminV2Smtp `json:"smtp,omitempty"` + + // VerifyEmailTemplate: Email template for verify email + VerifyEmailTemplate *GoogleCloudIdentitytoolkitAdminV2EmailTemplate `json:"verifyEmailTemplate,omitempty"` + + // ForceSendFields is a list of field names (e.g. "CallbackUri") 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. "CallbackUri") 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 *GoogleCloudIdentitytoolkitAdminV2SendEmail) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudIdentitytoolkitAdminV2SendEmail + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudIdentitytoolkitAdminV2SendSms: Options for SMS sending. +type GoogleCloudIdentitytoolkitAdminV2SendSms struct { + // SmsTemplate: Output only. The template to use when sending an SMS. + SmsTemplate *GoogleCloudIdentitytoolkitAdminV2SmsTemplate `json:"smsTemplate,omitempty"` + + // UseDeviceLocale: Whether to use the accept_language header for SMS. + UseDeviceLocale bool `json:"useDeviceLocale,omitempty"` + + // ForceSendFields is a list of field names (e.g. "SmsTemplate") 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. "SmsTemplate") 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 *GoogleCloudIdentitytoolkitAdminV2SendSms) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudIdentitytoolkitAdminV2SendSms + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudIdentitytoolkitAdminV2SignInConfig: Configuration related +// to local sign in methods. +type GoogleCloudIdentitytoolkitAdminV2SignInConfig struct { + // AllowDuplicateEmails: Whether to allow more than one account to have + // the same email. + AllowDuplicateEmails bool `json:"allowDuplicateEmails,omitempty"` + + // Anonymous: Configuration options related to authenticating an + // anonymous user. + Anonymous *GoogleCloudIdentitytoolkitAdminV2Anonymous `json:"anonymous,omitempty"` + + // Email: Configuration options related to authenticating a user by + // their email address. + Email *GoogleCloudIdentitytoolkitAdminV2Email `json:"email,omitempty"` + + // HashConfig: Output only. Hash config information. + HashConfig *GoogleCloudIdentitytoolkitAdminV2HashConfig `json:"hashConfig,omitempty"` + + // PhoneNumber: Configuration options related to authenticated a user by + // their phone number. + PhoneNumber *GoogleCloudIdentitytoolkitAdminV2PhoneNumber `json:"phoneNumber,omitempty"` + + // ForceSendFields is a list of field names (e.g. + // "AllowDuplicateEmails") 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. "AllowDuplicateEmails") 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 *GoogleCloudIdentitytoolkitAdminV2SignInConfig) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudIdentitytoolkitAdminV2SignInConfig + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudIdentitytoolkitAdminV2SmsTemplate: The template to use +// when sending an SMS. +type GoogleCloudIdentitytoolkitAdminV2SmsTemplate struct { + // Content: Output only. The SMS's content. Can contain the following + // placeholders which will be replaced with the appropriate values: + // %APP_NAME% - For Android or iOS apps, the app's display name. For web + // apps, the domain hosting the application. %LOGIN_CODE% - The OOB code + // being sent in the SMS. + Content string `json:"content,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Content") 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. "Content") 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 *GoogleCloudIdentitytoolkitAdminV2SmsTemplate) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudIdentitytoolkitAdminV2SmsTemplate + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudIdentitytoolkitAdminV2Smtp: Configuration for SMTP relay +type GoogleCloudIdentitytoolkitAdminV2Smtp struct { + // Host: SMTP relay host + Host string `json:"host,omitempty"` + + // Password: SMTP relay password + Password string `json:"password,omitempty"` + + // Port: SMTP relay port + Port int64 `json:"port,omitempty"` + + // SecurityMode: SMTP security mode. + // + // Possible values: + // "SECURITY_MODE_UNSPECIFIED" - Default value. Do not use. + // "SSL" - SSL mode + // "START_TLS" - START_TLS mode + SecurityMode string `json:"securityMode,omitempty"` + + // SenderEmail: Sender email for the SMTP relay + SenderEmail string `json:"senderEmail,omitempty"` + + // Username: SMTP relay username + Username string `json:"username,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Host") 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. "Host") 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 *GoogleCloudIdentitytoolkitAdminV2Smtp) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudIdentitytoolkitAdminV2Smtp + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudIdentitytoolkitAdminV2SpCertificate: The SP's certificate +// data for IDP to verify the SAMLRequest generated by the SP. +type GoogleCloudIdentitytoolkitAdminV2SpCertificate struct { + // ExpiresAt: Timestamp of the cert expiration instance. + ExpiresAt string `json:"expiresAt,omitempty"` + + // X509Certificate: Self-signed public certificate. + X509Certificate string `json:"x509Certificate,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ExpiresAt") 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. "ExpiresAt") 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 *GoogleCloudIdentitytoolkitAdminV2SpCertificate) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudIdentitytoolkitAdminV2SpCertificate + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudIdentitytoolkitAdminV2SpConfig: The SAML SP (Service +// Provider) configuration when the project acts as the relying party to +// receive and accept an authentication assertion issued by a SAML +// identity provider. +type GoogleCloudIdentitytoolkitAdminV2SpConfig struct { + // CallbackUri: Callback URI where responses from IDP are handled. + CallbackUri string `json:"callbackUri,omitempty"` + + // SpCertificates: Output only. Public certificates generated by the + // server to verify the signature in SAMLRequest in the SP-initiated + // flow. + SpCertificates []*GoogleCloudIdentitytoolkitAdminV2SpCertificate `json:"spCertificates,omitempty"` + + // SpEntityId: Unique identifier for all SAML entities. + SpEntityId string `json:"spEntityId,omitempty"` + + // ForceSendFields is a list of field names (e.g. "CallbackUri") 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. "CallbackUri") 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 *GoogleCloudIdentitytoolkitAdminV2SpConfig) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudIdentitytoolkitAdminV2SpConfig + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudIdentitytoolkitAdminV2TemporaryQuota: Temporary quota +// increase / decrease +type GoogleCloudIdentitytoolkitAdminV2TemporaryQuota struct { + // Quota: Corresponds to the 'refill_token_count' field in QuotaServer + // config + Quota int64 `json:"quota,omitempty,string"` + + // QuotaDuration: How long this quota will be active for + QuotaDuration string `json:"quotaDuration,omitempty"` + + // StartTime: When this quota will take affect + StartTime string `json:"startTime,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Quota") 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. "Quota") 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 *GoogleCloudIdentitytoolkitAdminV2TemporaryQuota) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudIdentitytoolkitAdminV2TemporaryQuota + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudIdentitytoolkitAdminV2Tenant: A Tenant contains +// configuration for the tenant in a multi-tenant project. +type GoogleCloudIdentitytoolkitAdminV2Tenant struct { + // AllowPasswordSignup: Whether to allow email/password user + // authentication. + AllowPasswordSignup bool `json:"allowPasswordSignup,omitempty"` + + // AutodeleteAnonymousUsers: Whether anonymous users will be + // auto-deleted after a period of 30 days. + AutodeleteAnonymousUsers bool `json:"autodeleteAnonymousUsers,omitempty"` + + // DisableAuth: Whether authentication is disabled for the tenant. If + // true, the users under the disabled tenant are not allowed to sign-in. + // Admins of the disabled tenant are not able to manage its users. + DisableAuth bool `json:"disableAuth,omitempty"` + + // DisplayName: Display name of the tenant. + DisplayName string `json:"displayName,omitempty"` + + // EnableAnonymousUser: Whether to enable anonymous user authentication. + EnableAnonymousUser bool `json:"enableAnonymousUser,omitempty"` + + // EnableEmailLinkSignin: Whether to enable email link user + // authentication. + EnableEmailLinkSignin bool `json:"enableEmailLinkSignin,omitempty"` + + // HashConfig: Output only. Hash config information of a tenant for + // display on Pantheon. This can only be displayed on Pantheon to avoid + // the sensitive information to get accidentally leaked. Only returned + // in GetTenant response to restrict reading of this information. + // Requires firebaseauth.configs.getHashConfig permission on the agent + // project for returning this field. + HashConfig *GoogleCloudIdentitytoolkitAdminV2HashConfig `json:"hashConfig,omitempty"` + + // Inheritance: Specify the settings that the tenant could inherit. + Inheritance *GoogleCloudIdentitytoolkitAdminV2Inheritance `json:"inheritance,omitempty"` + + // MfaConfig: The tenant-level configuration of MFA options. + MfaConfig *GoogleCloudIdentitytoolkitAdminV2MultiFactorAuthConfig `json:"mfaConfig,omitempty"` + + // Name: Output only. Resource name of a tenant. For example: + // "projects/{project-id}/tenants/{tenant-id}" + Name string `json:"name,omitempty"` + + // TestPhoneNumbers: A map of pairs that can be used for MFA. The phone + // number should be in E.164 format + // (https://www.itu.int/rec/T-REC-E.164/) and a maximum of 10 pairs can + // be added (error will be thrown once exceeded). + TestPhoneNumbers map[string]string `json:"testPhoneNumbers,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "AllowPasswordSignup") + // 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. "AllowPasswordSignup") 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 *GoogleCloudIdentitytoolkitAdminV2Tenant) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudIdentitytoolkitAdminV2Tenant + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudIdentitytoolkitAdminV2Trigger: Synchronous Cloud Function +// with HTTP Trigger +type GoogleCloudIdentitytoolkitAdminV2Trigger struct { + // FunctionUri: HTTP URI trigger for the Cloud Function. + FunctionUri string `json:"functionUri,omitempty"` + + // UpdateTime: When the trigger was changed. + UpdateTime string `json:"updateTime,omitempty"` + + // ForceSendFields is a list of field names (e.g. "FunctionUri") 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. "FunctionUri") 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 *GoogleCloudIdentitytoolkitAdminV2Trigger) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudIdentitytoolkitAdminV2Trigger + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudIdentitytoolkitV2AutoRetrievalInfo: The information +// required to auto-retrieve an SMS. +type GoogleCloudIdentitytoolkitV2AutoRetrievalInfo struct { + // AppSignatureHash: The Android app's signature hash for Google Play + // Service's SMS Retriever API. + AppSignatureHash string `json:"appSignatureHash,omitempty"` + + // ForceSendFields is a list of field names (e.g. "AppSignatureHash") 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. "AppSignatureHash") 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 *GoogleCloudIdentitytoolkitV2AutoRetrievalInfo) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudIdentitytoolkitV2AutoRetrievalInfo + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudIdentitytoolkitV2FinalizeMfaEnrollmentRequest: Finishes +// enrolling a second factor for the user. +type GoogleCloudIdentitytoolkitV2FinalizeMfaEnrollmentRequest struct { + // DisplayName: Display name which is entered by users to distinguish + // between different second factors with same type or different type. + DisplayName string `json:"displayName,omitempty"` + + // IdToken: Required. ID token. + IdToken string `json:"idToken,omitempty"` + + // PhoneVerificationInfo: Verification info to authorize sending an SMS + // for phone verification. + PhoneVerificationInfo *GoogleCloudIdentitytoolkitV2FinalizeMfaPhoneRequestInfo `json:"phoneVerificationInfo,omitempty"` + + // TenantId: The ID of the Identity Platform tenant that the user + // enrolling MFA belongs to. If not set, the user belongs to the default + // Identity Platform project. + TenantId string `json:"tenantId,omitempty"` + + // 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 *GoogleCloudIdentitytoolkitV2FinalizeMfaEnrollmentRequest) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudIdentitytoolkitV2FinalizeMfaEnrollmentRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudIdentitytoolkitV2FinalizeMfaEnrollmentResponse: +// FinalizeMfaEnrollment response. +type GoogleCloudIdentitytoolkitV2FinalizeMfaEnrollmentResponse struct { + // IdToken: ID token updated to reflect MFA enrollment. + IdToken string `json:"idToken,omitempty"` + + // PhoneAuthInfo: Auxiliary auth info specific to phone auth. + PhoneAuthInfo *GoogleCloudIdentitytoolkitV2FinalizeMfaPhoneResponseInfo `json:"phoneAuthInfo,omitempty"` + + // RefreshToken: Refresh token updated to reflect MFA enrollment. + RefreshToken string `json:"refreshToken,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "IdToken") 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. "IdToken") 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 *GoogleCloudIdentitytoolkitV2FinalizeMfaEnrollmentResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudIdentitytoolkitV2FinalizeMfaEnrollmentResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudIdentitytoolkitV2FinalizeMfaPhoneRequestInfo: Phone +// Verification info for a FinalizeMfa request. +type GoogleCloudIdentitytoolkitV2FinalizeMfaPhoneRequestInfo struct { + // AndroidVerificationProof: Android only. Uses for "instant" phone + // number verification though GmsCore. + AndroidVerificationProof string `json:"androidVerificationProof,omitempty"` + + // Code: User-entered verification code. + Code string `json:"code,omitempty"` + + // PhoneNumber: Required if Android verification proof is presented. + PhoneNumber string `json:"phoneNumber,omitempty"` + + // SessionInfo: An opaque string that represents the enrollment session. + SessionInfo string `json:"sessionInfo,omitempty"` + + // ForceSendFields is a list of field names (e.g. + // "AndroidVerificationProof") 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. "AndroidVerificationProof") + // 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 *GoogleCloudIdentitytoolkitV2FinalizeMfaPhoneRequestInfo) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudIdentitytoolkitV2FinalizeMfaPhoneRequestInfo + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudIdentitytoolkitV2FinalizeMfaPhoneResponseInfo: Phone +// Verification info for a FinalizeMfa response. +type GoogleCloudIdentitytoolkitV2FinalizeMfaPhoneResponseInfo struct { + // AndroidVerificationProof: Android only. Long-lived replacement for + // valid code tied to android device. + AndroidVerificationProof string `json:"androidVerificationProof,omitempty"` + + // AndroidVerificationProofExpireTime: Android only. Expiration time of + // verification proof in seconds. + AndroidVerificationProofExpireTime string `json:"androidVerificationProofExpireTime,omitempty"` + + // PhoneNumber: For Android verification proof. + PhoneNumber string `json:"phoneNumber,omitempty"` + + // ForceSendFields is a list of field names (e.g. + // "AndroidVerificationProof") 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. "AndroidVerificationProof") + // 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 *GoogleCloudIdentitytoolkitV2FinalizeMfaPhoneResponseInfo) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudIdentitytoolkitV2FinalizeMfaPhoneResponseInfo + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudIdentitytoolkitV2FinalizeMfaSignInRequest: Finalizes +// sign-in by verifying MFA challenge. +type GoogleCloudIdentitytoolkitV2FinalizeMfaSignInRequest struct { + // MfaPendingCredential: Required. Pending credential from first factor + // sign-in. + MfaPendingCredential string `json:"mfaPendingCredential,omitempty"` + + // PhoneVerificationInfo: Proof of completion of the SMS based MFA + // challenge. + PhoneVerificationInfo *GoogleCloudIdentitytoolkitV2FinalizeMfaPhoneRequestInfo `json:"phoneVerificationInfo,omitempty"` + + // TenantId: The ID of the Identity Platform tenant the user is signing + // in to. If not set, the user will sign in to the default Identity + // Platform project. + TenantId string `json:"tenantId,omitempty"` + + // ForceSendFields is a list of field names (e.g. + // "MfaPendingCredential") 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. "MfaPendingCredential") 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 *GoogleCloudIdentitytoolkitV2FinalizeMfaSignInRequest) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudIdentitytoolkitV2FinalizeMfaSignInRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudIdentitytoolkitV2FinalizeMfaSignInResponse: +// FinalizeMfaSignIn response. +type GoogleCloudIdentitytoolkitV2FinalizeMfaSignInResponse struct { + // IdToken: ID token for the authenticated user. + IdToken string `json:"idToken,omitempty"` + + // PhoneAuthInfo: Extra phone auth info, including android verification + // proof. + PhoneAuthInfo *GoogleCloudIdentitytoolkitV2FinalizeMfaPhoneResponseInfo `json:"phoneAuthInfo,omitempty"` + + // RefreshToken: Refresh token for the authenticated user. + RefreshToken string `json:"refreshToken,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "IdToken") 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. "IdToken") 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 *GoogleCloudIdentitytoolkitV2FinalizeMfaSignInResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudIdentitytoolkitV2FinalizeMfaSignInResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudIdentitytoolkitV2StartMfaEnrollmentRequest: Sends MFA +// enrollment verification SMS for a user. +type GoogleCloudIdentitytoolkitV2StartMfaEnrollmentRequest struct { + // IdToken: Required. User's ID token. + IdToken string `json:"idToken,omitempty"` + + // PhoneEnrollmentInfo: Verification info to authorize sending an SMS + // for phone verification. + PhoneEnrollmentInfo *GoogleCloudIdentitytoolkitV2StartMfaPhoneRequestInfo `json:"phoneEnrollmentInfo,omitempty"` + + // TenantId: The ID of the Identity Platform tenant that the user + // enrolling MFA belongs to. If not set, the user belongs to the default + // Identity Platform project. + TenantId string `json:"tenantId,omitempty"` + + // ForceSendFields is a list of field names (e.g. "IdToken") 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. "IdToken") 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 *GoogleCloudIdentitytoolkitV2StartMfaEnrollmentRequest) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudIdentitytoolkitV2StartMfaEnrollmentRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudIdentitytoolkitV2StartMfaEnrollmentResponse: +// StartMfaEnrollment response. +type GoogleCloudIdentitytoolkitV2StartMfaEnrollmentResponse struct { + // PhoneSessionInfo: Verification info to authorize sending an SMS for + // phone verification. + PhoneSessionInfo *GoogleCloudIdentitytoolkitV2StartMfaPhoneResponseInfo `json:"phoneSessionInfo,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "PhoneSessionInfo") 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. "PhoneSessionInfo") 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 *GoogleCloudIdentitytoolkitV2StartMfaEnrollmentResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudIdentitytoolkitV2StartMfaEnrollmentResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudIdentitytoolkitV2StartMfaPhoneRequestInfo: App +// Verification info for a StartMfa request. +type GoogleCloudIdentitytoolkitV2StartMfaPhoneRequestInfo struct { + // AutoRetrievalInfo: Android only. Used by Google Play Services to + // identify the app for auto-retrieval. + AutoRetrievalInfo *GoogleCloudIdentitytoolkitV2AutoRetrievalInfo `json:"autoRetrievalInfo,omitempty"` + + // IosReceipt: iOS only. Receipt of successful app token validation with + // APNS. + IosReceipt string `json:"iosReceipt,omitempty"` + + // IosSecret: iOS only. Secret delivered to iOS app via APNS. + IosSecret string `json:"iosSecret,omitempty"` + + // PhoneNumber: Required for enrollment. Phone number to be enrolled as + // MFA. + PhoneNumber string `json:"phoneNumber,omitempty"` + + // RecaptchaToken: Web only. Recaptcha solution. + RecaptchaToken string `json:"recaptchaToken,omitempty"` + + // SafetyNetToken: Android only. Used to assert application identity in + // place of a recaptcha token. A SafetyNet Token can be generated via + // the SafetyNet Android Attestation API + // (https://developer.android.com/training/safetynet/attestation.html), + // with the Base64 encoding of the `phone_number` field as the nonce. + SafetyNetToken string `json:"safetyNetToken,omitempty"` + + // ForceSendFields is a list of field names (e.g. "AutoRetrievalInfo") + // 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. "AutoRetrievalInfo") 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 *GoogleCloudIdentitytoolkitV2StartMfaPhoneRequestInfo) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudIdentitytoolkitV2StartMfaPhoneRequestInfo + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudIdentitytoolkitV2StartMfaPhoneResponseInfo: Phone +// Verification info for a StartMfa response. +type GoogleCloudIdentitytoolkitV2StartMfaPhoneResponseInfo struct { + // SessionInfo: An opaque string that represents the enrollment session. + SessionInfo string `json:"sessionInfo,omitempty"` + + // ForceSendFields is a list of field names (e.g. "SessionInfo") 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. "SessionInfo") 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 *GoogleCloudIdentitytoolkitV2StartMfaPhoneResponseInfo) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudIdentitytoolkitV2StartMfaPhoneResponseInfo + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudIdentitytoolkitV2StartMfaSignInRequest: Starts +// multi-factor sign-in by sending the multi-factor auth challenge. +type GoogleCloudIdentitytoolkitV2StartMfaSignInRequest struct { + // MfaEnrollmentId: Required. MFA enrollment id from the user's list of + // current MFA enrollments. + MfaEnrollmentId string `json:"mfaEnrollmentId,omitempty"` + + // MfaPendingCredential: Required. Pending credential from first factor + // sign-in. + MfaPendingCredential string `json:"mfaPendingCredential,omitempty"` + + // PhoneSignInInfo: Verification info to authorize sending an SMS for + // phone verification. + PhoneSignInInfo *GoogleCloudIdentitytoolkitV2StartMfaPhoneRequestInfo `json:"phoneSignInInfo,omitempty"` + + // TenantId: The ID of the Identity Platform tenant the user is signing + // in to. If not set, the user will sign in to the default Identity + // Platform project. + TenantId string `json:"tenantId,omitempty"` + + // ForceSendFields is a list of field names (e.g. "MfaEnrollmentId") 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. "MfaEnrollmentId") 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 *GoogleCloudIdentitytoolkitV2StartMfaSignInRequest) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudIdentitytoolkitV2StartMfaSignInRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudIdentitytoolkitV2StartMfaSignInResponse: StartMfaSignIn +// response. +type GoogleCloudIdentitytoolkitV2StartMfaSignInResponse struct { + // PhoneResponseInfo: MultiFactor sign-in session information specific + // to SMS-type second factors. Along with the one-time code retrieved + // from the sent SMS, the contents of this session information should be + // passed to FinalizeMfaSignIn to complete the sign in. + PhoneResponseInfo *GoogleCloudIdentitytoolkitV2StartMfaPhoneResponseInfo `json:"phoneResponseInfo,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "PhoneResponseInfo") + // 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. "PhoneResponseInfo") 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 *GoogleCloudIdentitytoolkitV2StartMfaSignInResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudIdentitytoolkitV2StartMfaSignInResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudIdentitytoolkitV2WithdrawMfaRequest: Withdraws MFA. +type GoogleCloudIdentitytoolkitV2WithdrawMfaRequest struct { + // IdToken: Required. User's ID token. + IdToken string `json:"idToken,omitempty"` + + // MfaEnrollmentId: Required. MFA enrollment id from a current MFA + // enrollment. + MfaEnrollmentId string `json:"mfaEnrollmentId,omitempty"` + + // TenantId: The ID of the Identity Platform tenant that the user + // unenrolling MFA belongs to. If not set, the user belongs to the + // default Identity Platform project. + TenantId string `json:"tenantId,omitempty"` + + // ForceSendFields is a list of field names (e.g. "IdToken") 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. "IdToken") 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 *GoogleCloudIdentitytoolkitV2WithdrawMfaRequest) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudIdentitytoolkitV2WithdrawMfaRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudIdentitytoolkitV2WithdrawMfaResponse: Withdraws +// MultiFactorAuth response. +type GoogleCloudIdentitytoolkitV2WithdrawMfaResponse struct { + // IdToken: ID token updated to reflect removal of the second factor. + IdToken string `json:"idToken,omitempty"` + + // RefreshToken: Refresh token updated to reflect removal of the second + // factor. + RefreshToken string `json:"refreshToken,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "IdToken") 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. "IdToken") 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 *GoogleCloudIdentitytoolkitV2WithdrawMfaResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudIdentitytoolkitV2WithdrawMfaResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleIamV1AuditConfig: Specifies the audit configuration for a +// service. The configuration determines which permission types are +// logged, and what identities, if any, are exempted from logging. An +// AuditConfig must have one or more AuditLogConfigs. If there are +// AuditConfigs for both `allServices` and a specific service, the union +// of the two AuditConfigs is used for that service: the log_types +// specified in each AuditConfig are enabled, and the exempted_members +// in each AuditLogConfig are exempted. Example Policy with multiple +// AuditConfigs: { "audit_configs": [ { "service": "allServices", +// "audit_log_configs": [ { "log_type": "DATA_READ", "exempted_members": +// [ "user:jose@example.com" ] }, { "log_type": "DATA_WRITE" }, { +// "log_type": "ADMIN_READ" } ] }, { "service": +// "sampleservice.googleapis.com", "audit_log_configs": [ { "log_type": +// "DATA_READ" }, { "log_type": "DATA_WRITE", "exempted_members": [ +// "user:aliya@example.com" ] } ] } ] } For sampleservice, this policy +// enables DATA_READ, DATA_WRITE and ADMIN_READ logging. It also exempts +// `jose@example.com` from DATA_READ logging, and `aliya@example.com` +// from DATA_WRITE logging. +type GoogleIamV1AuditConfig struct { + // AuditLogConfigs: The configuration for logging of each type of + // permission. + AuditLogConfigs []*GoogleIamV1AuditLogConfig `json:"auditLogConfigs,omitempty"` + + // Service: Specifies a service that will be enabled for audit logging. + // For example, `storage.googleapis.com`, `cloudsql.googleapis.com`. + // `allServices` is a special value that covers all services. + Service string `json:"service,omitempty"` + + // ForceSendFields is a list of field names (e.g. "AuditLogConfigs") 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. "AuditLogConfigs") 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 *GoogleIamV1AuditConfig) MarshalJSON() ([]byte, error) { + type NoMethod GoogleIamV1AuditConfig + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleIamV1AuditLogConfig: Provides the configuration for logging a +// type of permissions. Example: { "audit_log_configs": [ { "log_type": +// "DATA_READ", "exempted_members": [ "user:jose@example.com" ] }, { +// "log_type": "DATA_WRITE" } ] } This enables 'DATA_READ' and +// 'DATA_WRITE' logging, while exempting jose@example.com from DATA_READ +// logging. +type GoogleIamV1AuditLogConfig struct { + // ExemptedMembers: Specifies the identities that do not cause logging + // for this type of permission. Follows the same format of + // Binding.members. + ExemptedMembers []string `json:"exemptedMembers,omitempty"` + + // LogType: The log type that this config enables. + // + // Possible values: + // "LOG_TYPE_UNSPECIFIED" - Default case. Should never be this. + // "ADMIN_READ" - Admin reads. Example: CloudIAM getIamPolicy + // "DATA_WRITE" - Data writes. Example: CloudSQL Users create + // "DATA_READ" - Data reads. Example: CloudSQL Users list + LogType string `json:"logType,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ExemptedMembers") 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. "ExemptedMembers") 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 *GoogleIamV1AuditLogConfig) MarshalJSON() ([]byte, error) { + type NoMethod GoogleIamV1AuditLogConfig + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleIamV1Binding: Associates `members`, or principals, with a +// `role`. +type GoogleIamV1Binding struct { + // Condition: The condition that is associated with this binding. If the + // condition evaluates to `true`, then this binding applies to the + // current request. If the condition evaluates to `false`, then this + // binding does not apply to the current request. However, a different + // role binding might grant the same role to one or more of the + // principals in this binding. To learn which resources support + // conditions in their IAM policies, see the IAM documentation + // (https://cloud.google.com/iam/help/conditions/resource-policies). + Condition *GoogleTypeExpr `json:"condition,omitempty"` + + // Members: Specifies the principals requesting access for a Google + // Cloud resource. `members` can have the following values: * + // `allUsers`: A special identifier that represents anyone who is on the + // internet; with or without a Google account. * + // `allAuthenticatedUsers`: A special identifier that represents anyone + // who is authenticated with a Google account or a service account. * + // `user:{emailid}`: An email address that represents a specific Google + // account. For example, `alice@example.com` . * + // `serviceAccount:{emailid}`: An email address that represents a Google + // service account. For example, + // `my-other-app@appspot.gserviceaccount.com`. * + // `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: + // An identifier for a Kubernetes service account + // (https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). + // For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. + // * `group:{emailid}`: An email address that represents a Google group. + // For example, `admins@example.com`. * + // `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus + // unique identifier) representing a user that has been recently + // deleted. For example, `alice@example.com?uid=123456789012345678901`. + // If the user is recovered, this value reverts to `user:{emailid}` and + // the recovered user retains the role in the binding. * + // `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address + // (plus unique identifier) representing a service account that has been + // recently deleted. For example, + // `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. + // If the service account is undeleted, this value reverts to + // `serviceAccount:{emailid}` and the undeleted service account retains + // the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: + // An email address (plus unique identifier) representing a Google group + // that has been recently deleted. For example, + // `admins@example.com?uid=123456789012345678901`. If the group is + // recovered, this value reverts to `group:{emailid}` and the recovered + // group retains the role in the binding. * `domain:{domain}`: The G + // Suite domain (primary) that represents all the users of that domain. + // For example, `google.com` or `example.com`. + Members []string `json:"members,omitempty"` + + // Role: Role that is assigned to the list of `members`, or principals. + // For example, `roles/viewer`, `roles/editor`, or `roles/owner`. + Role string `json:"role,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Condition") 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. "Condition") 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 *GoogleIamV1Binding) MarshalJSON() ([]byte, error) { + type NoMethod GoogleIamV1Binding + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleIamV1GetIamPolicyRequest: Request message for `GetIamPolicy` +// method. +type GoogleIamV1GetIamPolicyRequest struct { + // Options: OPTIONAL: A `GetPolicyOptions` object for specifying options + // to `GetIamPolicy`. + Options *GoogleIamV1GetPolicyOptions `json:"options,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Options") 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. "Options") 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 *GoogleIamV1GetIamPolicyRequest) MarshalJSON() ([]byte, error) { + type NoMethod GoogleIamV1GetIamPolicyRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleIamV1GetPolicyOptions: Encapsulates settings provided to +// GetIamPolicy. +type GoogleIamV1GetPolicyOptions struct { + // RequestedPolicyVersion: Optional. The maximum policy version that + // will be used to format the policy. Valid values are 0, 1, and 3. + // Requests specifying an invalid value will be rejected. Requests for + // policies with any conditional role bindings must specify version 3. + // Policies with no conditional role bindings may specify any valid + // value or leave the field unset. The policy in the response might use + // the policy version that you specified, or it might use a lower policy + // version. For example, if you specify version 3, but the policy has no + // conditional role bindings, the response uses version 1. To learn + // which resources support conditions in their IAM policies, see the IAM + // documentation + // (https://cloud.google.com/iam/help/conditions/resource-policies). + RequestedPolicyVersion int64 `json:"requestedPolicyVersion,omitempty"` + + // ForceSendFields is a list of field names (e.g. + // "RequestedPolicyVersion") 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. "RequestedPolicyVersion") + // 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 *GoogleIamV1GetPolicyOptions) MarshalJSON() ([]byte, error) { + type NoMethod GoogleIamV1GetPolicyOptions + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleIamV1Policy: An Identity and Access Management (IAM) policy, +// which specifies access controls for Google Cloud resources. A +// `Policy` is a collection of `bindings`. A `binding` binds one or more +// `members`, or principals, to a single `role`. Principals can be user +// accounts, service accounts, Google groups, and domains (such as G +// Suite). A `role` is a named list of permissions; each `role` can be +// an IAM predefined role or a user-created custom role. For some types +// of Google Cloud resources, a `binding` can also specify a +// `condition`, which is a logical expression that allows access to a +// resource only if the expression evaluates to `true`. A condition can +// add constraints based on attributes of the request, the resource, or +// both. To learn which resources support conditions in their IAM +// policies, see the IAM documentation +// (https://cloud.google.com/iam/help/conditions/resource-policies). +// **JSON example:** { "bindings": [ { "role": +// "roles/resourcemanager.organizationAdmin", "members": [ +// "user:mike@example.com", "group:admins@example.com", +// "domain:google.com", +// "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { +// "role": "roles/resourcemanager.organizationViewer", "members": [ +// "user:eve@example.com" ], "condition": { "title": "expirable access", +// "description": "Does not grant access after Sep 2020", "expression": +// "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], +// "etag": "BwWWja0YfJA=", "version": 3 } **YAML example:** bindings: - +// members: - user:mike@example.com - group:admins@example.com - +// domain:google.com - +// serviceAccount:my-project-id@appspot.gserviceaccount.com role: +// roles/resourcemanager.organizationAdmin - members: - +// user:eve@example.com role: roles/resourcemanager.organizationViewer +// condition: title: expirable access description: Does not grant access +// after Sep 2020 expression: request.time < +// timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 +// For a description of IAM and its features, see the IAM documentation +// (https://cloud.google.com/iam/docs/). +type GoogleIamV1Policy struct { + // AuditConfigs: Specifies cloud audit logging configuration for this + // policy. + AuditConfigs []*GoogleIamV1AuditConfig `json:"auditConfigs,omitempty"` + + // Bindings: Associates a list of `members`, or principals, with a + // `role`. Optionally, may specify a `condition` that determines how and + // when the `bindings` are applied. Each of the `bindings` must contain + // at least one principal. The `bindings` in a `Policy` can refer to up + // to 1,500 principals; up to 250 of these principals can be Google + // groups. Each occurrence of a principal counts towards these limits. + // For example, if the `bindings` grant 50 different roles to + // `user:alice@example.com`, and not to any other principal, then you + // can add another 1,450 principals to the `bindings` in the `Policy`. + Bindings []*GoogleIamV1Binding `json:"bindings,omitempty"` + + // Etag: `etag` is used for optimistic concurrency control as a way to + // help prevent simultaneous updates of a policy from overwriting each + // other. It is strongly suggested that systems make use of the `etag` + // in the read-modify-write cycle to perform policy updates in order to + // avoid race conditions: An `etag` is returned in the response to + // `getIamPolicy`, and systems are expected to put that etag in the + // request to `setIamPolicy` to ensure that their change will be applied + // to the same version of the policy. **Important:** If you use IAM + // Conditions, you must include the `etag` field whenever you call + // `setIamPolicy`. If you omit this field, then IAM allows you to + // overwrite a version `3` policy with a version `1` policy, and all of + // the conditions in the version `3` policy are lost. + Etag string `json:"etag,omitempty"` + + // Version: Specifies the format of the policy. Valid values are `0`, + // `1`, and `3`. Requests that specify an invalid value are rejected. + // Any operation that affects conditional role bindings must specify + // version `3`. This requirement applies to the following operations: * + // Getting a policy that includes a conditional role binding * Adding a + // conditional role binding to a policy * Changing a conditional role + // binding in a policy * Removing any role binding, with or without a + // condition, from a policy that includes conditions **Important:** If + // you use IAM Conditions, you must include the `etag` field whenever + // you call `setIamPolicy`. If you omit this field, then IAM allows you + // to overwrite a version `3` policy with a version `1` policy, and all + // of the conditions in the version `3` policy are lost. If a policy + // does not include any conditions, operations on that policy may + // specify any valid version or leave the field unset. To learn which + // resources support conditions in their IAM policies, see the IAM + // documentation + // (https://cloud.google.com/iam/help/conditions/resource-policies). + Version int64 `json:"version,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "AuditConfigs") 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. "AuditConfigs") 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 *GoogleIamV1Policy) MarshalJSON() ([]byte, error) { + type NoMethod GoogleIamV1Policy + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleIamV1SetIamPolicyRequest: Request message for `SetIamPolicy` +// method. +type GoogleIamV1SetIamPolicyRequest struct { + // Policy: REQUIRED: The complete policy to be applied to the + // `resource`. The size of the policy is limited to a few 10s of KB. An + // empty policy is a valid policy but certain Google Cloud services + // (such as Projects) might reject them. + Policy *GoogleIamV1Policy `json:"policy,omitempty"` + + // UpdateMask: OPTIONAL: A FieldMask specifying which fields of the + // policy to modify. Only the fields in the mask will be modified. If no + // mask is provided, the following default mask is used: `paths: + // "bindings, etag" + UpdateMask string `json:"updateMask,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Policy") 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. "Policy") 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 *GoogleIamV1SetIamPolicyRequest) MarshalJSON() ([]byte, error) { + type NoMethod GoogleIamV1SetIamPolicyRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleIamV1TestIamPermissionsRequest: Request message for +// `TestIamPermissions` method. +type GoogleIamV1TestIamPermissionsRequest struct { + // Permissions: The set of permissions to check for the `resource`. + // Permissions with wildcards (such as `*` or `storage.*`) are not + // allowed. For more information see IAM Overview + // (https://cloud.google.com/iam/docs/overview#permissions). + Permissions []string `json:"permissions,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Permissions") 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. "Permissions") 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 *GoogleIamV1TestIamPermissionsRequest) MarshalJSON() ([]byte, error) { + type NoMethod GoogleIamV1TestIamPermissionsRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleIamV1TestIamPermissionsResponse: Response message for +// `TestIamPermissions` method. +type GoogleIamV1TestIamPermissionsResponse struct { + // Permissions: A subset of `TestPermissionsRequest.permissions` that + // the caller is allowed. + Permissions []string `json:"permissions,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "Permissions") 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. "Permissions") 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 *GoogleIamV1TestIamPermissionsResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleIamV1TestIamPermissionsResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleProtobufEmpty: 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 GoogleProtobufEmpty struct { + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` +} + +// GoogleTypeExpr: Represents a textual expression in the Common +// Expression Language (CEL) syntax. CEL is a C-like expression +// language. The syntax and semantics of CEL are documented at +// https://github.com/google/cel-spec. Example (Comparison): title: +// "Summary size limit" description: "Determines if a summary is less +// than 100 chars" expression: "document.summary.size() < 100" Example +// (Equality): title: "Requestor is owner" description: "Determines if +// requestor is the document owner" expression: "document.owner == +// request.auth.claims.email" Example (Logic): title: "Public documents" +// description: "Determine whether the document should be publicly +// visible" expression: "document.type != 'private' && document.type != +// 'internal'" Example (Data Manipulation): title: "Notification string" +// description: "Create a notification string with a timestamp." +// expression: "'New message received at ' + +// string(document.create_time)" The exact variables and functions that +// may be referenced within an expression are determined by the service +// that evaluates it. See the service documentation for additional +// information. +type GoogleTypeExpr struct { + // Description: Optional. Description of the expression. This is a + // longer text which describes the expression, e.g. when hovered over it + // in a UI. + Description string `json:"description,omitempty"` + + // Expression: Textual representation of an expression in Common + // Expression Language syntax. + Expression string `json:"expression,omitempty"` + + // Location: Optional. String indicating the location of the expression + // for error reporting, e.g. a file name and a position in the file. + Location string `json:"location,omitempty"` + + // Title: Optional. Title for the expression, i.e. a short string + // describing its purpose. This can be used e.g. in UIs which allow to + // enter the expression. + Title string `json:"title,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Description") 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. "Description") 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 *GoogleTypeExpr) MarshalJSON() ([]byte, error) { + type NoMethod GoogleTypeExpr + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// method id "identitytoolkit.accounts.mfaEnrollment.finalize": + +type AccountsMfaEnrollmentFinalizeCall struct { + s *Service + googlecloudidentitytoolkitv2finalizemfaenrollmentrequest *GoogleCloudIdentitytoolkitV2FinalizeMfaEnrollmentRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Finalize: Finishes enrolling a second factor for the user. +func (r *AccountsMfaEnrollmentService) Finalize(googlecloudidentitytoolkitv2finalizemfaenrollmentrequest *GoogleCloudIdentitytoolkitV2FinalizeMfaEnrollmentRequest) *AccountsMfaEnrollmentFinalizeCall { + c := &AccountsMfaEnrollmentFinalizeCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.googlecloudidentitytoolkitv2finalizemfaenrollmentrequest = googlecloudidentitytoolkitv2finalizemfaenrollmentrequest + 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 *AccountsMfaEnrollmentFinalizeCall) Fields(s ...googleapi.Field) *AccountsMfaEnrollmentFinalizeCall { + 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 *AccountsMfaEnrollmentFinalizeCall) Context(ctx context.Context) *AccountsMfaEnrollmentFinalizeCall { + 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 *AccountsMfaEnrollmentFinalizeCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *AccountsMfaEnrollmentFinalizeCall) 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.googlecloudidentitytoolkitv2finalizemfaenrollmentrequest) + 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, "v2/accounts/mfaEnrollment:finalize") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "identitytoolkit.accounts.mfaEnrollment.finalize" call. +// Exactly one of +// *GoogleCloudIdentitytoolkitV2FinalizeMfaEnrollmentResponse or error +// will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudIdentitytoolkitV2FinalizeMfaEnrollmentResponse.ServerRespo +// nse.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 *AccountsMfaEnrollmentFinalizeCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIdentitytoolkitV2FinalizeMfaEnrollmentResponse, 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, &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, err + } + ret := &GoogleCloudIdentitytoolkitV2FinalizeMfaEnrollmentResponse{ + 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": "Finishes enrolling a second factor for the user.", + // "flatPath": "v2/accounts/mfaEnrollment:finalize", + // "httpMethod": "POST", + // "id": "identitytoolkit.accounts.mfaEnrollment.finalize", + // "parameterOrder": [], + // "parameters": {}, + // "path": "v2/accounts/mfaEnrollment:finalize", + // "request": { + // "$ref": "GoogleCloudIdentitytoolkitV2FinalizeMfaEnrollmentRequest" + // }, + // "response": { + // "$ref": "GoogleCloudIdentitytoolkitV2FinalizeMfaEnrollmentResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "identitytoolkit.accounts.mfaEnrollment.start": + +type AccountsMfaEnrollmentStartCall struct { + s *Service + googlecloudidentitytoolkitv2startmfaenrollmentrequest *GoogleCloudIdentitytoolkitV2StartMfaEnrollmentRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Start: Step one of the MFA enrollment process. In SMS case, this +// sends an SMS verification code to the user. +func (r *AccountsMfaEnrollmentService) Start(googlecloudidentitytoolkitv2startmfaenrollmentrequest *GoogleCloudIdentitytoolkitV2StartMfaEnrollmentRequest) *AccountsMfaEnrollmentStartCall { + c := &AccountsMfaEnrollmentStartCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.googlecloudidentitytoolkitv2startmfaenrollmentrequest = googlecloudidentitytoolkitv2startmfaenrollmentrequest + 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 *AccountsMfaEnrollmentStartCall) Fields(s ...googleapi.Field) *AccountsMfaEnrollmentStartCall { + 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 *AccountsMfaEnrollmentStartCall) Context(ctx context.Context) *AccountsMfaEnrollmentStartCall { + 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 *AccountsMfaEnrollmentStartCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *AccountsMfaEnrollmentStartCall) 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.googlecloudidentitytoolkitv2startmfaenrollmentrequest) + 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, "v2/accounts/mfaEnrollment:start") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "identitytoolkit.accounts.mfaEnrollment.start" call. +// Exactly one of +// *GoogleCloudIdentitytoolkitV2StartMfaEnrollmentResponse or error will +// be non-nil. Any non-2xx status code is an error. Response headers are +// in either +// *GoogleCloudIdentitytoolkitV2StartMfaEnrollmentResponse.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 *AccountsMfaEnrollmentStartCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIdentitytoolkitV2StartMfaEnrollmentResponse, 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, &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, err + } + ret := &GoogleCloudIdentitytoolkitV2StartMfaEnrollmentResponse{ + 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": "Step one of the MFA enrollment process. In SMS case, this sends an SMS verification code to the user.", + // "flatPath": "v2/accounts/mfaEnrollment:start", + // "httpMethod": "POST", + // "id": "identitytoolkit.accounts.mfaEnrollment.start", + // "parameterOrder": [], + // "parameters": {}, + // "path": "v2/accounts/mfaEnrollment:start", + // "request": { + // "$ref": "GoogleCloudIdentitytoolkitV2StartMfaEnrollmentRequest" + // }, + // "response": { + // "$ref": "GoogleCloudIdentitytoolkitV2StartMfaEnrollmentResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "identitytoolkit.accounts.mfaEnrollment.withdraw": + +type AccountsMfaEnrollmentWithdrawCall struct { + s *Service + googlecloudidentitytoolkitv2withdrawmfarequest *GoogleCloudIdentitytoolkitV2WithdrawMfaRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Withdraw: Revokes one second factor from the enrolled second factors +// for an account. +func (r *AccountsMfaEnrollmentService) Withdraw(googlecloudidentitytoolkitv2withdrawmfarequest *GoogleCloudIdentitytoolkitV2WithdrawMfaRequest) *AccountsMfaEnrollmentWithdrawCall { + c := &AccountsMfaEnrollmentWithdrawCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.googlecloudidentitytoolkitv2withdrawmfarequest = googlecloudidentitytoolkitv2withdrawmfarequest + 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 *AccountsMfaEnrollmentWithdrawCall) Fields(s ...googleapi.Field) *AccountsMfaEnrollmentWithdrawCall { + 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 *AccountsMfaEnrollmentWithdrawCall) Context(ctx context.Context) *AccountsMfaEnrollmentWithdrawCall { + 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 *AccountsMfaEnrollmentWithdrawCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *AccountsMfaEnrollmentWithdrawCall) 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.googlecloudidentitytoolkitv2withdrawmfarequest) + 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, "v2/accounts/mfaEnrollment:withdraw") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "identitytoolkit.accounts.mfaEnrollment.withdraw" call. +// Exactly one of *GoogleCloudIdentitytoolkitV2WithdrawMfaResponse or +// error will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudIdentitytoolkitV2WithdrawMfaResponse.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 *AccountsMfaEnrollmentWithdrawCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIdentitytoolkitV2WithdrawMfaResponse, 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, &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, err + } + ret := &GoogleCloudIdentitytoolkitV2WithdrawMfaResponse{ + 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": "Revokes one second factor from the enrolled second factors for an account.", + // "flatPath": "v2/accounts/mfaEnrollment:withdraw", + // "httpMethod": "POST", + // "id": "identitytoolkit.accounts.mfaEnrollment.withdraw", + // "parameterOrder": [], + // "parameters": {}, + // "path": "v2/accounts/mfaEnrollment:withdraw", + // "request": { + // "$ref": "GoogleCloudIdentitytoolkitV2WithdrawMfaRequest" + // }, + // "response": { + // "$ref": "GoogleCloudIdentitytoolkitV2WithdrawMfaResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "identitytoolkit.accounts.mfaSignIn.finalize": + +type AccountsMfaSignInFinalizeCall struct { + s *Service + googlecloudidentitytoolkitv2finalizemfasigninrequest *GoogleCloudIdentitytoolkitV2FinalizeMfaSignInRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Finalize: Verifies the MFA challenge and performs sign-in +func (r *AccountsMfaSignInService) Finalize(googlecloudidentitytoolkitv2finalizemfasigninrequest *GoogleCloudIdentitytoolkitV2FinalizeMfaSignInRequest) *AccountsMfaSignInFinalizeCall { + c := &AccountsMfaSignInFinalizeCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.googlecloudidentitytoolkitv2finalizemfasigninrequest = googlecloudidentitytoolkitv2finalizemfasigninrequest + 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 *AccountsMfaSignInFinalizeCall) Fields(s ...googleapi.Field) *AccountsMfaSignInFinalizeCall { + 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 *AccountsMfaSignInFinalizeCall) Context(ctx context.Context) *AccountsMfaSignInFinalizeCall { + 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 *AccountsMfaSignInFinalizeCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *AccountsMfaSignInFinalizeCall) 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.googlecloudidentitytoolkitv2finalizemfasigninrequest) + 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, "v2/accounts/mfaSignIn:finalize") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "identitytoolkit.accounts.mfaSignIn.finalize" call. +// Exactly one of *GoogleCloudIdentitytoolkitV2FinalizeMfaSignInResponse +// or error will be non-nil. Any non-2xx status code is an error. +// Response headers are in either +// *GoogleCloudIdentitytoolkitV2FinalizeMfaSignInResponse.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 *AccountsMfaSignInFinalizeCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIdentitytoolkitV2FinalizeMfaSignInResponse, 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, &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, err + } + ret := &GoogleCloudIdentitytoolkitV2FinalizeMfaSignInResponse{ + 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": "Verifies the MFA challenge and performs sign-in", + // "flatPath": "v2/accounts/mfaSignIn:finalize", + // "httpMethod": "POST", + // "id": "identitytoolkit.accounts.mfaSignIn.finalize", + // "parameterOrder": [], + // "parameters": {}, + // "path": "v2/accounts/mfaSignIn:finalize", + // "request": { + // "$ref": "GoogleCloudIdentitytoolkitV2FinalizeMfaSignInRequest" + // }, + // "response": { + // "$ref": "GoogleCloudIdentitytoolkitV2FinalizeMfaSignInResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "identitytoolkit.accounts.mfaSignIn.start": + +type AccountsMfaSignInStartCall struct { + s *Service + googlecloudidentitytoolkitv2startmfasigninrequest *GoogleCloudIdentitytoolkitV2StartMfaSignInRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Start: Sends the MFA challenge +func (r *AccountsMfaSignInService) Start(googlecloudidentitytoolkitv2startmfasigninrequest *GoogleCloudIdentitytoolkitV2StartMfaSignInRequest) *AccountsMfaSignInStartCall { + c := &AccountsMfaSignInStartCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.googlecloudidentitytoolkitv2startmfasigninrequest = googlecloudidentitytoolkitv2startmfasigninrequest + 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 *AccountsMfaSignInStartCall) Fields(s ...googleapi.Field) *AccountsMfaSignInStartCall { + 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 *AccountsMfaSignInStartCall) Context(ctx context.Context) *AccountsMfaSignInStartCall { + 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 *AccountsMfaSignInStartCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *AccountsMfaSignInStartCall) 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.googlecloudidentitytoolkitv2startmfasigninrequest) + 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, "v2/accounts/mfaSignIn:start") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "identitytoolkit.accounts.mfaSignIn.start" call. +// Exactly one of *GoogleCloudIdentitytoolkitV2StartMfaSignInResponse or +// error will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudIdentitytoolkitV2StartMfaSignInResponse.ServerResponse.Hea +// der 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 *AccountsMfaSignInStartCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIdentitytoolkitV2StartMfaSignInResponse, 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, &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, err + } + ret := &GoogleCloudIdentitytoolkitV2StartMfaSignInResponse{ + 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": "Sends the MFA challenge", + // "flatPath": "v2/accounts/mfaSignIn:start", + // "httpMethod": "POST", + // "id": "identitytoolkit.accounts.mfaSignIn.start", + // "parameterOrder": [], + // "parameters": {}, + // "path": "v2/accounts/mfaSignIn:start", + // "request": { + // "$ref": "GoogleCloudIdentitytoolkitV2StartMfaSignInRequest" + // }, + // "response": { + // "$ref": "GoogleCloudIdentitytoolkitV2StartMfaSignInResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "identitytoolkit.defaultSupportedIdps.list": + +type DefaultSupportedIdpsListCall struct { + s *Service + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: List all default supported Idps. +func (r *DefaultSupportedIdpsService) List() *DefaultSupportedIdpsListCall { + c := &DefaultSupportedIdpsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + return c +} + +// PageSize sets the optional parameter "pageSize": The maximum number +// of items to return. +func (c *DefaultSupportedIdpsListCall) PageSize(pageSize int64) *DefaultSupportedIdpsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": The +// next_page_token value returned from a previous List request, if any. +func (c *DefaultSupportedIdpsListCall) PageToken(pageToken string) *DefaultSupportedIdpsListCall { + 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 *DefaultSupportedIdpsListCall) Fields(s ...googleapi.Field) *DefaultSupportedIdpsListCall { + 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 *DefaultSupportedIdpsListCall) IfNoneMatch(entityTag string) *DefaultSupportedIdpsListCall { + 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 *DefaultSupportedIdpsListCall) Context(ctx context.Context) *DefaultSupportedIdpsListCall { + 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 *DefaultSupportedIdpsListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *DefaultSupportedIdpsListCall) 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, "v2/defaultSupportedIdps") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "identitytoolkit.defaultSupportedIdps.list" call. +// Exactly one of +// *GoogleCloudIdentitytoolkitAdminV2ListDefaultSupportedIdpsResponse or +// error will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudIdentitytoolkitAdminV2ListDefaultSupportedIdpsResponse.Ser +// verResponse.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 *DefaultSupportedIdpsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIdentitytoolkitAdminV2ListDefaultSupportedIdpsResponse, 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, &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, err + } + ret := &GoogleCloudIdentitytoolkitAdminV2ListDefaultSupportedIdpsResponse{ + 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": "List all default supported Idps.", + // "flatPath": "v2/defaultSupportedIdps", + // "httpMethod": "GET", + // "id": "identitytoolkit.defaultSupportedIdps.list", + // "parameterOrder": [], + // "parameters": { + // "pageSize": { + // "description": "The maximum number of items to return.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "The next_page_token value returned from a previous List request, if any.", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v2/defaultSupportedIdps", + // "response": { + // "$ref": "GoogleCloudIdentitytoolkitAdminV2ListDefaultSupportedIdpsResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/firebase" + // ] + // } + +} + +// 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 *DefaultSupportedIdpsListCall) Pages(ctx context.Context, f func(*GoogleCloudIdentitytoolkitAdminV2ListDefaultSupportedIdpsResponse) 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 "identitytoolkit.projects.getConfig": + +type ProjectsGetConfigCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// GetConfig: Retrieve an Identity Toolkit project configuration. +// +// - name: The resource name of the config, for example: +// "projects/my-awesome-project/config". +func (r *ProjectsService) GetConfig(name string) *ProjectsGetConfigCall { + c := &ProjectsGetConfigCall{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 *ProjectsGetConfigCall) Fields(s ...googleapi.Field) *ProjectsGetConfigCall { + 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 *ProjectsGetConfigCall) IfNoneMatch(entityTag string) *ProjectsGetConfigCall { + 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 *ProjectsGetConfigCall) Context(ctx context.Context) *ProjectsGetConfigCall { + 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 *ProjectsGetConfigCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsGetConfigCall) 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, "v2/{+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 "identitytoolkit.projects.getConfig" call. +// Exactly one of *GoogleCloudIdentitytoolkitAdminV2Config or error will +// be non-nil. Any non-2xx status code is an error. Response headers are +// in either +// *GoogleCloudIdentitytoolkitAdminV2Config.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 *ProjectsGetConfigCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIdentitytoolkitAdminV2Config, 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, &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, err + } + ret := &GoogleCloudIdentitytoolkitAdminV2Config{ + 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": "Retrieve an Identity Toolkit project configuration.", + // "flatPath": "v2/projects/{projectsId}/config", + // "httpMethod": "GET", + // "id": "identitytoolkit.projects.getConfig", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "The resource name of the config, for example: \"projects/my-awesome-project/config\"", + // "location": "path", + // "pattern": "^projects/[^/]+/config$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v2/{+name}", + // "response": { + // "$ref": "GoogleCloudIdentitytoolkitAdminV2Config" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "identitytoolkit.projects.updateConfig": + +type ProjectsUpdateConfigCall struct { + s *Service + name string + googlecloudidentitytoolkitadminv2config *GoogleCloudIdentitytoolkitAdminV2Config + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// UpdateConfig: Update an Identity Toolkit project configuration. +// +// - name: Output only. The name of the Config resource. Example: +// "projects/my-awesome-project/config". +func (r *ProjectsService) UpdateConfig(name string, googlecloudidentitytoolkitadminv2config *GoogleCloudIdentitytoolkitAdminV2Config) *ProjectsUpdateConfigCall { + c := &ProjectsUpdateConfigCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.googlecloudidentitytoolkitadminv2config = googlecloudidentitytoolkitadminv2config + return c +} + +// UpdateMask sets the optional parameter "updateMask": The update mask +// applies to the resource. Fields set in the config but not included in +// this update mask will be ignored. For the `FieldMask` definition, see +// https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask +func (c *ProjectsUpdateConfigCall) UpdateMask(updateMask string) *ProjectsUpdateConfigCall { + 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 *ProjectsUpdateConfigCall) Fields(s ...googleapi.Field) *ProjectsUpdateConfigCall { + 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 *ProjectsUpdateConfigCall) Context(ctx context.Context) *ProjectsUpdateConfigCall { + 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 *ProjectsUpdateConfigCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsUpdateConfigCall) 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.googlecloudidentitytoolkitadminv2config) + 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, "v2/{+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 "identitytoolkit.projects.updateConfig" call. +// Exactly one of *GoogleCloudIdentitytoolkitAdminV2Config or error will +// be non-nil. Any non-2xx status code is an error. Response headers are +// in either +// *GoogleCloudIdentitytoolkitAdminV2Config.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 *ProjectsUpdateConfigCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIdentitytoolkitAdminV2Config, 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, &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, err + } + ret := &GoogleCloudIdentitytoolkitAdminV2Config{ + 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": "Update an Identity Toolkit project configuration.", + // "flatPath": "v2/projects/{projectsId}/config", + // "httpMethod": "PATCH", + // "id": "identitytoolkit.projects.updateConfig", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Output only. The name of the Config resource. Example: \"projects/my-awesome-project/config\"", + // "location": "path", + // "pattern": "^projects/[^/]+/config$", + // "required": true, + // "type": "string" + // }, + // "updateMask": { + // "description": "The update mask applies to the resource. Fields set in the config but not included in this update mask will be ignored. For the `FieldMask` definition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask", + // "format": "google-fieldmask", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v2/{+name}", + // "request": { + // "$ref": "GoogleCloudIdentitytoolkitAdminV2Config" + // }, + // "response": { + // "$ref": "GoogleCloudIdentitytoolkitAdminV2Config" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/firebase" + // ] + // } + +} + +// method id "identitytoolkit.projects.defaultSupportedIdpConfigs.create": + +type ProjectsDefaultSupportedIdpConfigsCreateCall struct { + s *Service + parent string + googlecloudidentitytoolkitadminv2defaultsupportedidpconfig *GoogleCloudIdentitytoolkitAdminV2DefaultSupportedIdpConfig + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Create: Create a default supported Idp configuration for an Identity +// Toolkit project. +// +// - parent: The parent resource name where the config to be created, +// for example: "projects/my-awesome-project". +func (r *ProjectsDefaultSupportedIdpConfigsService) Create(parent string, googlecloudidentitytoolkitadminv2defaultsupportedidpconfig *GoogleCloudIdentitytoolkitAdminV2DefaultSupportedIdpConfig) *ProjectsDefaultSupportedIdpConfigsCreateCall { + c := &ProjectsDefaultSupportedIdpConfigsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.googlecloudidentitytoolkitadminv2defaultsupportedidpconfig = googlecloudidentitytoolkitadminv2defaultsupportedidpconfig + return c +} + +// IdpId sets the optional parameter "idpId": The id of the Idp to +// create a config for. Call ListDefaultSupportedIdps for list of all +// default supported Idps. +func (c *ProjectsDefaultSupportedIdpConfigsCreateCall) IdpId(idpId string) *ProjectsDefaultSupportedIdpConfigsCreateCall { + c.urlParams_.Set("idpId", idpId) + 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 *ProjectsDefaultSupportedIdpConfigsCreateCall) Fields(s ...googleapi.Field) *ProjectsDefaultSupportedIdpConfigsCreateCall { + 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 *ProjectsDefaultSupportedIdpConfigsCreateCall) Context(ctx context.Context) *ProjectsDefaultSupportedIdpConfigsCreateCall { + 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 *ProjectsDefaultSupportedIdpConfigsCreateCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsDefaultSupportedIdpConfigsCreateCall) 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.googlecloudidentitytoolkitadminv2defaultsupportedidpconfig) + 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, "v2/{+parent}/defaultSupportedIdpConfigs") + 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 "identitytoolkit.projects.defaultSupportedIdpConfigs.create" call. +// Exactly one of +// *GoogleCloudIdentitytoolkitAdminV2DefaultSupportedIdpConfig or error +// will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudIdentitytoolkitAdminV2DefaultSupportedIdpConfig.ServerResp +// onse.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 *ProjectsDefaultSupportedIdpConfigsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIdentitytoolkitAdminV2DefaultSupportedIdpConfig, 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, &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, err + } + ret := &GoogleCloudIdentitytoolkitAdminV2DefaultSupportedIdpConfig{ + 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": "Create a default supported Idp configuration for an Identity Toolkit project.", + // "flatPath": "v2/projects/{projectsId}/defaultSupportedIdpConfigs", + // "httpMethod": "POST", + // "id": "identitytoolkit.projects.defaultSupportedIdpConfigs.create", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "idpId": { + // "description": "The id of the Idp to create a config for. Call ListDefaultSupportedIdps for list of all default supported Idps.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "The parent resource name where the config to be created, for example: \"projects/my-awesome-project\"", + // "location": "path", + // "pattern": "^projects/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v2/{+parent}/defaultSupportedIdpConfigs", + // "request": { + // "$ref": "GoogleCloudIdentitytoolkitAdminV2DefaultSupportedIdpConfig" + // }, + // "response": { + // "$ref": "GoogleCloudIdentitytoolkitAdminV2DefaultSupportedIdpConfig" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/firebase" + // ] + // } + +} + +// method id "identitytoolkit.projects.defaultSupportedIdpConfigs.delete": + +type ProjectsDefaultSupportedIdpConfigsDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Delete: Delete a default supported Idp configuration for an Identity +// Toolkit project. +// +// - name: The resource name of the config, for example: +// "projects/my-awesome-project/defaultSupportedIdpConfigs/google.com". +func (r *ProjectsDefaultSupportedIdpConfigsService) Delete(name string) *ProjectsDefaultSupportedIdpConfigsDeleteCall { + c := &ProjectsDefaultSupportedIdpConfigsDeleteCall{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 *ProjectsDefaultSupportedIdpConfigsDeleteCall) Fields(s ...googleapi.Field) *ProjectsDefaultSupportedIdpConfigsDeleteCall { + 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 *ProjectsDefaultSupportedIdpConfigsDeleteCall) Context(ctx context.Context) *ProjectsDefaultSupportedIdpConfigsDeleteCall { + 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 *ProjectsDefaultSupportedIdpConfigsDeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsDefaultSupportedIdpConfigsDeleteCall) 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, "v2/{+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 "identitytoolkit.projects.defaultSupportedIdpConfigs.delete" call. +// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *GoogleProtobufEmpty.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 *ProjectsDefaultSupportedIdpConfigsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, 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, &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, err + } + ret := &GoogleProtobufEmpty{ + 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": "Delete a default supported Idp configuration for an Identity Toolkit project.", + // "flatPath": "v2/projects/{projectsId}/defaultSupportedIdpConfigs/{defaultSupportedIdpConfigsId}", + // "httpMethod": "DELETE", + // "id": "identitytoolkit.projects.defaultSupportedIdpConfigs.delete", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "The resource name of the config, for example: \"projects/my-awesome-project/defaultSupportedIdpConfigs/google.com\"", + // "location": "path", + // "pattern": "^projects/[^/]+/defaultSupportedIdpConfigs/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v2/{+name}", + // "response": { + // "$ref": "GoogleProtobufEmpty" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/firebase" + // ] + // } + +} + +// method id "identitytoolkit.projects.defaultSupportedIdpConfigs.get": + +type ProjectsDefaultSupportedIdpConfigsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Retrieve a default supported Idp configuration for an Identity +// Toolkit project. +// +// - name: The resource name of the config, for example: +// "projects/my-awesome-project/defaultSupportedIdpConfigs/google.com". +func (r *ProjectsDefaultSupportedIdpConfigsService) Get(name string) *ProjectsDefaultSupportedIdpConfigsGetCall { + c := &ProjectsDefaultSupportedIdpConfigsGetCall{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 *ProjectsDefaultSupportedIdpConfigsGetCall) Fields(s ...googleapi.Field) *ProjectsDefaultSupportedIdpConfigsGetCall { + 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 *ProjectsDefaultSupportedIdpConfigsGetCall) IfNoneMatch(entityTag string) *ProjectsDefaultSupportedIdpConfigsGetCall { + 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 *ProjectsDefaultSupportedIdpConfigsGetCall) Context(ctx context.Context) *ProjectsDefaultSupportedIdpConfigsGetCall { + 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 *ProjectsDefaultSupportedIdpConfigsGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsDefaultSupportedIdpConfigsGetCall) 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, "v2/{+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 "identitytoolkit.projects.defaultSupportedIdpConfigs.get" call. +// Exactly one of +// *GoogleCloudIdentitytoolkitAdminV2DefaultSupportedIdpConfig or error +// will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudIdentitytoolkitAdminV2DefaultSupportedIdpConfig.ServerResp +// onse.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 *ProjectsDefaultSupportedIdpConfigsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIdentitytoolkitAdminV2DefaultSupportedIdpConfig, 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, &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, err + } + ret := &GoogleCloudIdentitytoolkitAdminV2DefaultSupportedIdpConfig{ + 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": "Retrieve a default supported Idp configuration for an Identity Toolkit project.", + // "flatPath": "v2/projects/{projectsId}/defaultSupportedIdpConfigs/{defaultSupportedIdpConfigsId}", + // "httpMethod": "GET", + // "id": "identitytoolkit.projects.defaultSupportedIdpConfigs.get", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "The resource name of the config, for example: \"projects/my-awesome-project/defaultSupportedIdpConfigs/google.com\"", + // "location": "path", + // "pattern": "^projects/[^/]+/defaultSupportedIdpConfigs/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v2/{+name}", + // "response": { + // "$ref": "GoogleCloudIdentitytoolkitAdminV2DefaultSupportedIdpConfig" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/firebase" + // ] + // } + +} + +// method id "identitytoolkit.projects.defaultSupportedIdpConfigs.list": + +type ProjectsDefaultSupportedIdpConfigsListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: List all default supported Idp configurations for an Identity +// Toolkit project. +// +// - parent: The parent resource name, for example, +// "projects/my-awesome-project". +func (r *ProjectsDefaultSupportedIdpConfigsService) List(parent string) *ProjectsDefaultSupportedIdpConfigsListCall { + c := &ProjectsDefaultSupportedIdpConfigsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// PageSize sets the optional parameter "pageSize": The maximum number +// of items to return. +func (c *ProjectsDefaultSupportedIdpConfigsListCall) PageSize(pageSize int64) *ProjectsDefaultSupportedIdpConfigsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": The +// next_page_token value returned from a previous List request, if any. +func (c *ProjectsDefaultSupportedIdpConfigsListCall) PageToken(pageToken string) *ProjectsDefaultSupportedIdpConfigsListCall { + 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 *ProjectsDefaultSupportedIdpConfigsListCall) Fields(s ...googleapi.Field) *ProjectsDefaultSupportedIdpConfigsListCall { + 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 *ProjectsDefaultSupportedIdpConfigsListCall) IfNoneMatch(entityTag string) *ProjectsDefaultSupportedIdpConfigsListCall { + 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 *ProjectsDefaultSupportedIdpConfigsListCall) Context(ctx context.Context) *ProjectsDefaultSupportedIdpConfigsListCall { + 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 *ProjectsDefaultSupportedIdpConfigsListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsDefaultSupportedIdpConfigsListCall) 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, "v2/{+parent}/defaultSupportedIdpConfigs") + 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 "identitytoolkit.projects.defaultSupportedIdpConfigs.list" call. +// Exactly one of +// *GoogleCloudIdentitytoolkitAdminV2ListDefaultSupportedIdpConfigsRespon +// se or error will be non-nil. Any non-2xx status code is an error. +// Response headers are in either +// *GoogleCloudIdentitytoolkitAdminV2ListDefaultSupportedIdpConfigsRespon +// se.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 *ProjectsDefaultSupportedIdpConfigsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIdentitytoolkitAdminV2ListDefaultSupportedIdpConfigsResponse, 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, &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, err + } + ret := &GoogleCloudIdentitytoolkitAdminV2ListDefaultSupportedIdpConfigsResponse{ + 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": "List all default supported Idp configurations for an Identity Toolkit project.", + // "flatPath": "v2/projects/{projectsId}/defaultSupportedIdpConfigs", + // "httpMethod": "GET", + // "id": "identitytoolkit.projects.defaultSupportedIdpConfigs.list", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "pageSize": { + // "description": "The maximum number of items to return.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "The next_page_token value returned from a previous List request, if any.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "The parent resource name, for example, \"projects/my-awesome-project\".", + // "location": "path", + // "pattern": "^projects/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v2/{+parent}/defaultSupportedIdpConfigs", + // "response": { + // "$ref": "GoogleCloudIdentitytoolkitAdminV2ListDefaultSupportedIdpConfigsResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/firebase" + // ] + // } + +} + +// 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 *ProjectsDefaultSupportedIdpConfigsListCall) Pages(ctx context.Context, f func(*GoogleCloudIdentitytoolkitAdminV2ListDefaultSupportedIdpConfigsResponse) 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 "identitytoolkit.projects.defaultSupportedIdpConfigs.patch": + +type ProjectsDefaultSupportedIdpConfigsPatchCall struct { + s *Service + name string + googlecloudidentitytoolkitadminv2defaultsupportedidpconfig *GoogleCloudIdentitytoolkitAdminV2DefaultSupportedIdpConfig + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Patch: Update a default supported Idp configuration for an Identity +// Toolkit project. +// +// - name: The name of the DefaultSupportedIdpConfig resource, for +// example: +// "projects/my-awesome-project/defaultSupportedIdpConfigs/google.com". +func (r *ProjectsDefaultSupportedIdpConfigsService) Patch(name string, googlecloudidentitytoolkitadminv2defaultsupportedidpconfig *GoogleCloudIdentitytoolkitAdminV2DefaultSupportedIdpConfig) *ProjectsDefaultSupportedIdpConfigsPatchCall { + c := &ProjectsDefaultSupportedIdpConfigsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.googlecloudidentitytoolkitadminv2defaultsupportedidpconfig = googlecloudidentitytoolkitadminv2defaultsupportedidpconfig + return c +} + +// UpdateMask sets the optional parameter "updateMask": The update mask +// applies to the resource. For the `FieldMask` definition, see +// https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask +func (c *ProjectsDefaultSupportedIdpConfigsPatchCall) UpdateMask(updateMask string) *ProjectsDefaultSupportedIdpConfigsPatchCall { + 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 *ProjectsDefaultSupportedIdpConfigsPatchCall) Fields(s ...googleapi.Field) *ProjectsDefaultSupportedIdpConfigsPatchCall { + 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 *ProjectsDefaultSupportedIdpConfigsPatchCall) Context(ctx context.Context) *ProjectsDefaultSupportedIdpConfigsPatchCall { + 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 *ProjectsDefaultSupportedIdpConfigsPatchCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsDefaultSupportedIdpConfigsPatchCall) 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.googlecloudidentitytoolkitadminv2defaultsupportedidpconfig) + 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, "v2/{+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 "identitytoolkit.projects.defaultSupportedIdpConfigs.patch" call. +// Exactly one of +// *GoogleCloudIdentitytoolkitAdminV2DefaultSupportedIdpConfig or error +// will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudIdentitytoolkitAdminV2DefaultSupportedIdpConfig.ServerResp +// onse.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 *ProjectsDefaultSupportedIdpConfigsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIdentitytoolkitAdminV2DefaultSupportedIdpConfig, 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, &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, err + } + ret := &GoogleCloudIdentitytoolkitAdminV2DefaultSupportedIdpConfig{ + 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": "Update a default supported Idp configuration for an Identity Toolkit project.", + // "flatPath": "v2/projects/{projectsId}/defaultSupportedIdpConfigs/{defaultSupportedIdpConfigsId}", + // "httpMethod": "PATCH", + // "id": "identitytoolkit.projects.defaultSupportedIdpConfigs.patch", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "The name of the DefaultSupportedIdpConfig resource, for example: \"projects/my-awesome-project/defaultSupportedIdpConfigs/google.com\"", + // "location": "path", + // "pattern": "^projects/[^/]+/defaultSupportedIdpConfigs/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "updateMask": { + // "description": "The update mask applies to the resource. For the `FieldMask` definition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask", + // "format": "google-fieldmask", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v2/{+name}", + // "request": { + // "$ref": "GoogleCloudIdentitytoolkitAdminV2DefaultSupportedIdpConfig" + // }, + // "response": { + // "$ref": "GoogleCloudIdentitytoolkitAdminV2DefaultSupportedIdpConfig" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/firebase" + // ] + // } + +} + +// method id "identitytoolkit.projects.inboundSamlConfigs.create": + +type ProjectsInboundSamlConfigsCreateCall struct { + s *Service + parent string + googlecloudidentitytoolkitadminv2inboundsamlconfig *GoogleCloudIdentitytoolkitAdminV2InboundSamlConfig + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Create: Create an inbound SAML configuration for an Identity Toolkit +// project. +// +// - parent: The parent resource name where the config to be created, +// for example: "projects/my-awesome-project". +func (r *ProjectsInboundSamlConfigsService) Create(parent string, googlecloudidentitytoolkitadminv2inboundsamlconfig *GoogleCloudIdentitytoolkitAdminV2InboundSamlConfig) *ProjectsInboundSamlConfigsCreateCall { + c := &ProjectsInboundSamlConfigsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.googlecloudidentitytoolkitadminv2inboundsamlconfig = googlecloudidentitytoolkitadminv2inboundsamlconfig + return c +} + +// InboundSamlConfigId sets the optional parameter +// "inboundSamlConfigId": The id to use for this config. +func (c *ProjectsInboundSamlConfigsCreateCall) InboundSamlConfigId(inboundSamlConfigId string) *ProjectsInboundSamlConfigsCreateCall { + c.urlParams_.Set("inboundSamlConfigId", inboundSamlConfigId) + 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 *ProjectsInboundSamlConfigsCreateCall) Fields(s ...googleapi.Field) *ProjectsInboundSamlConfigsCreateCall { + 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 *ProjectsInboundSamlConfigsCreateCall) Context(ctx context.Context) *ProjectsInboundSamlConfigsCreateCall { + 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 *ProjectsInboundSamlConfigsCreateCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsInboundSamlConfigsCreateCall) 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.googlecloudidentitytoolkitadminv2inboundsamlconfig) + 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, "v2/{+parent}/inboundSamlConfigs") + 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 "identitytoolkit.projects.inboundSamlConfigs.create" call. +// Exactly one of *GoogleCloudIdentitytoolkitAdminV2InboundSamlConfig or +// error will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudIdentitytoolkitAdminV2InboundSamlConfig.ServerResponse.Hea +// der 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 *ProjectsInboundSamlConfigsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIdentitytoolkitAdminV2InboundSamlConfig, 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, &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, err + } + ret := &GoogleCloudIdentitytoolkitAdminV2InboundSamlConfig{ + 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": "Create an inbound SAML configuration for an Identity Toolkit project.", + // "flatPath": "v2/projects/{projectsId}/inboundSamlConfigs", + // "httpMethod": "POST", + // "id": "identitytoolkit.projects.inboundSamlConfigs.create", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "inboundSamlConfigId": { + // "description": "The id to use for this config.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "The parent resource name where the config to be created, for example: \"projects/my-awesome-project\"", + // "location": "path", + // "pattern": "^projects/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v2/{+parent}/inboundSamlConfigs", + // "request": { + // "$ref": "GoogleCloudIdentitytoolkitAdminV2InboundSamlConfig" + // }, + // "response": { + // "$ref": "GoogleCloudIdentitytoolkitAdminV2InboundSamlConfig" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/firebase" + // ] + // } + +} + +// method id "identitytoolkit.projects.inboundSamlConfigs.delete": + +type ProjectsInboundSamlConfigsDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Delete: Delete an inbound SAML configuration for an Identity Toolkit +// project. +// +// - name: The resource name of the config to be deleted, for example: +// 'projects/my-awesome-project/inboundSamlConfigs/my-config-id'. +func (r *ProjectsInboundSamlConfigsService) Delete(name string) *ProjectsInboundSamlConfigsDeleteCall { + c := &ProjectsInboundSamlConfigsDeleteCall{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 *ProjectsInboundSamlConfigsDeleteCall) Fields(s ...googleapi.Field) *ProjectsInboundSamlConfigsDeleteCall { + 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 *ProjectsInboundSamlConfigsDeleteCall) Context(ctx context.Context) *ProjectsInboundSamlConfigsDeleteCall { + 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 *ProjectsInboundSamlConfigsDeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsInboundSamlConfigsDeleteCall) 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, "v2/{+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 "identitytoolkit.projects.inboundSamlConfigs.delete" call. +// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *GoogleProtobufEmpty.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 *ProjectsInboundSamlConfigsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, 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, &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, err + } + ret := &GoogleProtobufEmpty{ + 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": "Delete an inbound SAML configuration for an Identity Toolkit project.", + // "flatPath": "v2/projects/{projectsId}/inboundSamlConfigs/{inboundSamlConfigsId}", + // "httpMethod": "DELETE", + // "id": "identitytoolkit.projects.inboundSamlConfigs.delete", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "The resource name of the config to be deleted, for example: 'projects/my-awesome-project/inboundSamlConfigs/my-config-id'.", + // "location": "path", + // "pattern": "^projects/[^/]+/inboundSamlConfigs/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v2/{+name}", + // "response": { + // "$ref": "GoogleProtobufEmpty" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/firebase" + // ] + // } + +} + +// method id "identitytoolkit.projects.inboundSamlConfigs.get": + +type ProjectsInboundSamlConfigsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Retrieve an inbound SAML configuration for an Identity Toolkit +// project. +// +// - name: The resource name of the config, for example: +// 'projects/my-awesome-project/inboundSamlConfigs/my-config-id'. +func (r *ProjectsInboundSamlConfigsService) Get(name string) *ProjectsInboundSamlConfigsGetCall { + c := &ProjectsInboundSamlConfigsGetCall{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 *ProjectsInboundSamlConfigsGetCall) Fields(s ...googleapi.Field) *ProjectsInboundSamlConfigsGetCall { + 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 *ProjectsInboundSamlConfigsGetCall) IfNoneMatch(entityTag string) *ProjectsInboundSamlConfigsGetCall { + 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 *ProjectsInboundSamlConfigsGetCall) Context(ctx context.Context) *ProjectsInboundSamlConfigsGetCall { + 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 *ProjectsInboundSamlConfigsGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsInboundSamlConfigsGetCall) 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, "v2/{+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 "identitytoolkit.projects.inboundSamlConfigs.get" call. +// Exactly one of *GoogleCloudIdentitytoolkitAdminV2InboundSamlConfig or +// error will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudIdentitytoolkitAdminV2InboundSamlConfig.ServerResponse.Hea +// der 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 *ProjectsInboundSamlConfigsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIdentitytoolkitAdminV2InboundSamlConfig, 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, &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, err + } + ret := &GoogleCloudIdentitytoolkitAdminV2InboundSamlConfig{ + 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": "Retrieve an inbound SAML configuration for an Identity Toolkit project.", + // "flatPath": "v2/projects/{projectsId}/inboundSamlConfigs/{inboundSamlConfigsId}", + // "httpMethod": "GET", + // "id": "identitytoolkit.projects.inboundSamlConfigs.get", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "The resource name of the config, for example: 'projects/my-awesome-project/inboundSamlConfigs/my-config-id'.", + // "location": "path", + // "pattern": "^projects/[^/]+/inboundSamlConfigs/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v2/{+name}", + // "response": { + // "$ref": "GoogleCloudIdentitytoolkitAdminV2InboundSamlConfig" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/firebase" + // ] + // } + +} + +// method id "identitytoolkit.projects.inboundSamlConfigs.list": + +type ProjectsInboundSamlConfigsListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: List all inbound SAML configurations for an Identity Toolkit +// project. +// +// - parent: The parent resource name, for example, +// "projects/my-awesome-project". +func (r *ProjectsInboundSamlConfigsService) List(parent string) *ProjectsInboundSamlConfigsListCall { + c := &ProjectsInboundSamlConfigsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// PageSize sets the optional parameter "pageSize": The maximum number +// of items to return. +func (c *ProjectsInboundSamlConfigsListCall) PageSize(pageSize int64) *ProjectsInboundSamlConfigsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": The +// next_page_token value returned from a previous List request, if any. +func (c *ProjectsInboundSamlConfigsListCall) PageToken(pageToken string) *ProjectsInboundSamlConfigsListCall { + 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 *ProjectsInboundSamlConfigsListCall) Fields(s ...googleapi.Field) *ProjectsInboundSamlConfigsListCall { + 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 *ProjectsInboundSamlConfigsListCall) IfNoneMatch(entityTag string) *ProjectsInboundSamlConfigsListCall { + 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 *ProjectsInboundSamlConfigsListCall) Context(ctx context.Context) *ProjectsInboundSamlConfigsListCall { + 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 *ProjectsInboundSamlConfigsListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsInboundSamlConfigsListCall) 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, "v2/{+parent}/inboundSamlConfigs") + 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 "identitytoolkit.projects.inboundSamlConfigs.list" call. +// Exactly one of +// *GoogleCloudIdentitytoolkitAdminV2ListInboundSamlConfigsResponse or +// error will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudIdentitytoolkitAdminV2ListInboundSamlConfigsResponse.Serve +// rResponse.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 *ProjectsInboundSamlConfigsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIdentitytoolkitAdminV2ListInboundSamlConfigsResponse, 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, &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, err + } + ret := &GoogleCloudIdentitytoolkitAdminV2ListInboundSamlConfigsResponse{ + 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": "List all inbound SAML configurations for an Identity Toolkit project.", + // "flatPath": "v2/projects/{projectsId}/inboundSamlConfigs", + // "httpMethod": "GET", + // "id": "identitytoolkit.projects.inboundSamlConfigs.list", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "pageSize": { + // "description": "The maximum number of items to return.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "The next_page_token value returned from a previous List request, if any.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "The parent resource name, for example, \"projects/my-awesome-project\".", + // "location": "path", + // "pattern": "^projects/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v2/{+parent}/inboundSamlConfigs", + // "response": { + // "$ref": "GoogleCloudIdentitytoolkitAdminV2ListInboundSamlConfigsResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/firebase" + // ] + // } + +} + +// 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 *ProjectsInboundSamlConfigsListCall) Pages(ctx context.Context, f func(*GoogleCloudIdentitytoolkitAdminV2ListInboundSamlConfigsResponse) 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 "identitytoolkit.projects.inboundSamlConfigs.patch": + +type ProjectsInboundSamlConfigsPatchCall struct { + s *Service + name string + googlecloudidentitytoolkitadminv2inboundsamlconfig *GoogleCloudIdentitytoolkitAdminV2InboundSamlConfig + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Patch: Update an inbound SAML configuration for an Identity Toolkit +// project. +// +// - name: The name of the InboundSamlConfig resource, for example: +// 'projects/my-awesome-project/inboundSamlConfigs/my-config-id'. +// Ignored during create requests. +func (r *ProjectsInboundSamlConfigsService) Patch(name string, googlecloudidentitytoolkitadminv2inboundsamlconfig *GoogleCloudIdentitytoolkitAdminV2InboundSamlConfig) *ProjectsInboundSamlConfigsPatchCall { + c := &ProjectsInboundSamlConfigsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.googlecloudidentitytoolkitadminv2inboundsamlconfig = googlecloudidentitytoolkitadminv2inboundsamlconfig + return c +} + +// UpdateMask sets the optional parameter "updateMask": The update mask +// applies to the resource. Empty update mask will result in updating +// nothing. For the `FieldMask` definition, see +// https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask +func (c *ProjectsInboundSamlConfigsPatchCall) UpdateMask(updateMask string) *ProjectsInboundSamlConfigsPatchCall { + 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 *ProjectsInboundSamlConfigsPatchCall) Fields(s ...googleapi.Field) *ProjectsInboundSamlConfigsPatchCall { + 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 *ProjectsInboundSamlConfigsPatchCall) Context(ctx context.Context) *ProjectsInboundSamlConfigsPatchCall { + 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 *ProjectsInboundSamlConfigsPatchCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsInboundSamlConfigsPatchCall) 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.googlecloudidentitytoolkitadminv2inboundsamlconfig) + 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, "v2/{+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 "identitytoolkit.projects.inboundSamlConfigs.patch" call. +// Exactly one of *GoogleCloudIdentitytoolkitAdminV2InboundSamlConfig or +// error will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudIdentitytoolkitAdminV2InboundSamlConfig.ServerResponse.Hea +// der 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 *ProjectsInboundSamlConfigsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIdentitytoolkitAdminV2InboundSamlConfig, 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, &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, err + } + ret := &GoogleCloudIdentitytoolkitAdminV2InboundSamlConfig{ + 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": "Update an inbound SAML configuration for an Identity Toolkit project.", + // "flatPath": "v2/projects/{projectsId}/inboundSamlConfigs/{inboundSamlConfigsId}", + // "httpMethod": "PATCH", + // "id": "identitytoolkit.projects.inboundSamlConfigs.patch", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "The name of the InboundSamlConfig resource, for example: 'projects/my-awesome-project/inboundSamlConfigs/my-config-id'. Ignored during create requests.", + // "location": "path", + // "pattern": "^projects/[^/]+/inboundSamlConfigs/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "updateMask": { + // "description": "The update mask applies to the resource. Empty update mask will result in updating nothing. For the `FieldMask` definition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask", + // "format": "google-fieldmask", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v2/{+name}", + // "request": { + // "$ref": "GoogleCloudIdentitytoolkitAdminV2InboundSamlConfig" + // }, + // "response": { + // "$ref": "GoogleCloudIdentitytoolkitAdminV2InboundSamlConfig" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/firebase" + // ] + // } + +} + +// method id "identitytoolkit.projects.oauthIdpConfigs.create": + +type ProjectsOauthIdpConfigsCreateCall struct { + s *Service + parent string + googlecloudidentitytoolkitadminv2oauthidpconfig *GoogleCloudIdentitytoolkitAdminV2OAuthIdpConfig + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Create: Create an Oidc Idp configuration for an Identity Toolkit +// project. +// +// - parent: The parent resource name where the config to be created, +// for example: "projects/my-awesome-project". +func (r *ProjectsOauthIdpConfigsService) Create(parent string, googlecloudidentitytoolkitadminv2oauthidpconfig *GoogleCloudIdentitytoolkitAdminV2OAuthIdpConfig) *ProjectsOauthIdpConfigsCreateCall { + c := &ProjectsOauthIdpConfigsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.googlecloudidentitytoolkitadminv2oauthidpconfig = googlecloudidentitytoolkitadminv2oauthidpconfig + return c +} + +// OauthIdpConfigId sets the optional parameter "oauthIdpConfigId": The +// id to use for this config. +func (c *ProjectsOauthIdpConfigsCreateCall) OauthIdpConfigId(oauthIdpConfigId string) *ProjectsOauthIdpConfigsCreateCall { + c.urlParams_.Set("oauthIdpConfigId", oauthIdpConfigId) + 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 *ProjectsOauthIdpConfigsCreateCall) Fields(s ...googleapi.Field) *ProjectsOauthIdpConfigsCreateCall { + 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 *ProjectsOauthIdpConfigsCreateCall) Context(ctx context.Context) *ProjectsOauthIdpConfigsCreateCall { + 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 *ProjectsOauthIdpConfigsCreateCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsOauthIdpConfigsCreateCall) 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.googlecloudidentitytoolkitadminv2oauthidpconfig) + 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, "v2/{+parent}/oauthIdpConfigs") + 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 "identitytoolkit.projects.oauthIdpConfigs.create" call. +// Exactly one of *GoogleCloudIdentitytoolkitAdminV2OAuthIdpConfig or +// error will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudIdentitytoolkitAdminV2OAuthIdpConfig.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 *ProjectsOauthIdpConfigsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIdentitytoolkitAdminV2OAuthIdpConfig, 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, &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, err + } + ret := &GoogleCloudIdentitytoolkitAdminV2OAuthIdpConfig{ + 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": "Create an Oidc Idp configuration for an Identity Toolkit project.", + // "flatPath": "v2/projects/{projectsId}/oauthIdpConfigs", + // "httpMethod": "POST", + // "id": "identitytoolkit.projects.oauthIdpConfigs.create", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "oauthIdpConfigId": { + // "description": "The id to use for this config.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "The parent resource name where the config to be created, for example: \"projects/my-awesome-project\"", + // "location": "path", + // "pattern": "^projects/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v2/{+parent}/oauthIdpConfigs", + // "request": { + // "$ref": "GoogleCloudIdentitytoolkitAdminV2OAuthIdpConfig" + // }, + // "response": { + // "$ref": "GoogleCloudIdentitytoolkitAdminV2OAuthIdpConfig" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/firebase" + // ] + // } + +} + +// method id "identitytoolkit.projects.oauthIdpConfigs.delete": + +type ProjectsOauthIdpConfigsDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Delete: Delete an Oidc Idp configuration for an Identity Toolkit +// project. +// +// - name: The resource name of the config to be deleted, for example: +// 'projects/my-awesome-project/oauthIdpConfigs/oauth-config-id'. +func (r *ProjectsOauthIdpConfigsService) Delete(name string) *ProjectsOauthIdpConfigsDeleteCall { + c := &ProjectsOauthIdpConfigsDeleteCall{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 *ProjectsOauthIdpConfigsDeleteCall) Fields(s ...googleapi.Field) *ProjectsOauthIdpConfigsDeleteCall { + 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 *ProjectsOauthIdpConfigsDeleteCall) Context(ctx context.Context) *ProjectsOauthIdpConfigsDeleteCall { + 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 *ProjectsOauthIdpConfigsDeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsOauthIdpConfigsDeleteCall) 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, "v2/{+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 "identitytoolkit.projects.oauthIdpConfigs.delete" call. +// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *GoogleProtobufEmpty.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 *ProjectsOauthIdpConfigsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, 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, &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, err + } + ret := &GoogleProtobufEmpty{ + 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": "Delete an Oidc Idp configuration for an Identity Toolkit project.", + // "flatPath": "v2/projects/{projectsId}/oauthIdpConfigs/{oauthIdpConfigsId}", + // "httpMethod": "DELETE", + // "id": "identitytoolkit.projects.oauthIdpConfigs.delete", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "The resource name of the config to be deleted, for example: 'projects/my-awesome-project/oauthIdpConfigs/oauth-config-id'.", + // "location": "path", + // "pattern": "^projects/[^/]+/oauthIdpConfigs/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v2/{+name}", + // "response": { + // "$ref": "GoogleProtobufEmpty" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/firebase" + // ] + // } + +} + +// method id "identitytoolkit.projects.oauthIdpConfigs.get": + +type ProjectsOauthIdpConfigsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Retrieve an Oidc Idp configuration for an Identity Toolkit +// project. +// +// - name: The resource name of the config, for example: +// 'projects/my-awesome-project/oauthIdpConfigs/oauth-config-id'. +func (r *ProjectsOauthIdpConfigsService) Get(name string) *ProjectsOauthIdpConfigsGetCall { + c := &ProjectsOauthIdpConfigsGetCall{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 *ProjectsOauthIdpConfigsGetCall) Fields(s ...googleapi.Field) *ProjectsOauthIdpConfigsGetCall { + 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 *ProjectsOauthIdpConfigsGetCall) IfNoneMatch(entityTag string) *ProjectsOauthIdpConfigsGetCall { + 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 *ProjectsOauthIdpConfigsGetCall) Context(ctx context.Context) *ProjectsOauthIdpConfigsGetCall { + 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 *ProjectsOauthIdpConfigsGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsOauthIdpConfigsGetCall) 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, "v2/{+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 "identitytoolkit.projects.oauthIdpConfigs.get" call. +// Exactly one of *GoogleCloudIdentitytoolkitAdminV2OAuthIdpConfig or +// error will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudIdentitytoolkitAdminV2OAuthIdpConfig.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 *ProjectsOauthIdpConfigsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIdentitytoolkitAdminV2OAuthIdpConfig, 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, &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, err + } + ret := &GoogleCloudIdentitytoolkitAdminV2OAuthIdpConfig{ + 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": "Retrieve an Oidc Idp configuration for an Identity Toolkit project.", + // "flatPath": "v2/projects/{projectsId}/oauthIdpConfigs/{oauthIdpConfigsId}", + // "httpMethod": "GET", + // "id": "identitytoolkit.projects.oauthIdpConfigs.get", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "The resource name of the config, for example: 'projects/my-awesome-project/oauthIdpConfigs/oauth-config-id'.", + // "location": "path", + // "pattern": "^projects/[^/]+/oauthIdpConfigs/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v2/{+name}", + // "response": { + // "$ref": "GoogleCloudIdentitytoolkitAdminV2OAuthIdpConfig" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/firebase" + // ] + // } + +} + +// method id "identitytoolkit.projects.oauthIdpConfigs.list": + +type ProjectsOauthIdpConfigsListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: List all Oidc Idp configurations for an Identity Toolkit +// project. +// +// - parent: The parent resource name, for example, +// "projects/my-awesome-project". +func (r *ProjectsOauthIdpConfigsService) List(parent string) *ProjectsOauthIdpConfigsListCall { + c := &ProjectsOauthIdpConfigsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// PageSize sets the optional parameter "pageSize": The maximum number +// of items to return. +func (c *ProjectsOauthIdpConfigsListCall) PageSize(pageSize int64) *ProjectsOauthIdpConfigsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": The +// next_page_token value returned from a previous List request, if any. +func (c *ProjectsOauthIdpConfigsListCall) PageToken(pageToken string) *ProjectsOauthIdpConfigsListCall { + 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 *ProjectsOauthIdpConfigsListCall) Fields(s ...googleapi.Field) *ProjectsOauthIdpConfigsListCall { + 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 *ProjectsOauthIdpConfigsListCall) IfNoneMatch(entityTag string) *ProjectsOauthIdpConfigsListCall { + 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 *ProjectsOauthIdpConfigsListCall) Context(ctx context.Context) *ProjectsOauthIdpConfigsListCall { + 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 *ProjectsOauthIdpConfigsListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsOauthIdpConfigsListCall) 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, "v2/{+parent}/oauthIdpConfigs") + 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 "identitytoolkit.projects.oauthIdpConfigs.list" call. +// Exactly one of +// *GoogleCloudIdentitytoolkitAdminV2ListOAuthIdpConfigsResponse or +// error will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudIdentitytoolkitAdminV2ListOAuthIdpConfigsResponse.ServerRe +// sponse.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 *ProjectsOauthIdpConfigsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIdentitytoolkitAdminV2ListOAuthIdpConfigsResponse, 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, &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, err + } + ret := &GoogleCloudIdentitytoolkitAdminV2ListOAuthIdpConfigsResponse{ + 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": "List all Oidc Idp configurations for an Identity Toolkit project.", + // "flatPath": "v2/projects/{projectsId}/oauthIdpConfigs", + // "httpMethod": "GET", + // "id": "identitytoolkit.projects.oauthIdpConfigs.list", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "pageSize": { + // "description": "The maximum number of items to return.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "The next_page_token value returned from a previous List request, if any.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "The parent resource name, for example, \"projects/my-awesome-project\".", + // "location": "path", + // "pattern": "^projects/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v2/{+parent}/oauthIdpConfigs", + // "response": { + // "$ref": "GoogleCloudIdentitytoolkitAdminV2ListOAuthIdpConfigsResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/firebase" + // ] + // } + +} + +// 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 *ProjectsOauthIdpConfigsListCall) Pages(ctx context.Context, f func(*GoogleCloudIdentitytoolkitAdminV2ListOAuthIdpConfigsResponse) 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 "identitytoolkit.projects.oauthIdpConfigs.patch": + +type ProjectsOauthIdpConfigsPatchCall struct { + s *Service + name string + googlecloudidentitytoolkitadminv2oauthidpconfig *GoogleCloudIdentitytoolkitAdminV2OAuthIdpConfig + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Patch: Update an Oidc Idp configuration for an Identity Toolkit +// project. +// +// - name: The name of the OAuthIdpConfig resource, for example: +// 'projects/my-awesome-project/oauthIdpConfigs/oauth-config-id'. +// Ignored during create requests. +func (r *ProjectsOauthIdpConfigsService) Patch(name string, googlecloudidentitytoolkitadminv2oauthidpconfig *GoogleCloudIdentitytoolkitAdminV2OAuthIdpConfig) *ProjectsOauthIdpConfigsPatchCall { + c := &ProjectsOauthIdpConfigsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.googlecloudidentitytoolkitadminv2oauthidpconfig = googlecloudidentitytoolkitadminv2oauthidpconfig + return c +} + +// UpdateMask sets the optional parameter "updateMask": The update mask +// applies to the resource. Empty update mask will result in updating +// nothing. For the `FieldMask` definition, see +// https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask +func (c *ProjectsOauthIdpConfigsPatchCall) UpdateMask(updateMask string) *ProjectsOauthIdpConfigsPatchCall { + 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 *ProjectsOauthIdpConfigsPatchCall) Fields(s ...googleapi.Field) *ProjectsOauthIdpConfigsPatchCall { + 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 *ProjectsOauthIdpConfigsPatchCall) Context(ctx context.Context) *ProjectsOauthIdpConfigsPatchCall { + 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 *ProjectsOauthIdpConfigsPatchCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsOauthIdpConfigsPatchCall) 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.googlecloudidentitytoolkitadminv2oauthidpconfig) + 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, "v2/{+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 "identitytoolkit.projects.oauthIdpConfigs.patch" call. +// Exactly one of *GoogleCloudIdentitytoolkitAdminV2OAuthIdpConfig or +// error will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudIdentitytoolkitAdminV2OAuthIdpConfig.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 *ProjectsOauthIdpConfigsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIdentitytoolkitAdminV2OAuthIdpConfig, 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, &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, err + } + ret := &GoogleCloudIdentitytoolkitAdminV2OAuthIdpConfig{ + 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": "Update an Oidc Idp configuration for an Identity Toolkit project.", + // "flatPath": "v2/projects/{projectsId}/oauthIdpConfigs/{oauthIdpConfigsId}", + // "httpMethod": "PATCH", + // "id": "identitytoolkit.projects.oauthIdpConfigs.patch", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "The name of the OAuthIdpConfig resource, for example: 'projects/my-awesome-project/oauthIdpConfigs/oauth-config-id'. Ignored during create requests.", + // "location": "path", + // "pattern": "^projects/[^/]+/oauthIdpConfigs/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "updateMask": { + // "description": "The update mask applies to the resource. Empty update mask will result in updating nothing. For the `FieldMask` definition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask", + // "format": "google-fieldmask", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v2/{+name}", + // "request": { + // "$ref": "GoogleCloudIdentitytoolkitAdminV2OAuthIdpConfig" + // }, + // "response": { + // "$ref": "GoogleCloudIdentitytoolkitAdminV2OAuthIdpConfig" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/firebase" + // ] + // } + +} + +// method id "identitytoolkit.projects.tenants.create": + +type ProjectsTenantsCreateCall struct { + s *Service + parent string + googlecloudidentitytoolkitadminv2tenant *GoogleCloudIdentitytoolkitAdminV2Tenant + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Create: Create a tenant. Requires write permission on the Agent +// project. +// +// - parent: The parent resource name where the tenant will be created. +// For example, "projects/project1". +func (r *ProjectsTenantsService) Create(parent string, googlecloudidentitytoolkitadminv2tenant *GoogleCloudIdentitytoolkitAdminV2Tenant) *ProjectsTenantsCreateCall { + c := &ProjectsTenantsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.googlecloudidentitytoolkitadminv2tenant = googlecloudidentitytoolkitadminv2tenant + 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 *ProjectsTenantsCreateCall) Fields(s ...googleapi.Field) *ProjectsTenantsCreateCall { + 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 *ProjectsTenantsCreateCall) Context(ctx context.Context) *ProjectsTenantsCreateCall { + 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 *ProjectsTenantsCreateCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsTenantsCreateCall) 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.googlecloudidentitytoolkitadminv2tenant) + 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, "v2/{+parent}/tenants") + 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 "identitytoolkit.projects.tenants.create" call. +// Exactly one of *GoogleCloudIdentitytoolkitAdminV2Tenant or error will +// be non-nil. Any non-2xx status code is an error. Response headers are +// in either +// *GoogleCloudIdentitytoolkitAdminV2Tenant.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 *ProjectsTenantsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIdentitytoolkitAdminV2Tenant, 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, &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, err + } + ret := &GoogleCloudIdentitytoolkitAdminV2Tenant{ + 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": "Create a tenant. Requires write permission on the Agent project.", + // "flatPath": "v2/projects/{projectsId}/tenants", + // "httpMethod": "POST", + // "id": "identitytoolkit.projects.tenants.create", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "parent": { + // "description": "The parent resource name where the tenant will be created. For example, \"projects/project1\".", + // "location": "path", + // "pattern": "^projects/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v2/{+parent}/tenants", + // "request": { + // "$ref": "GoogleCloudIdentitytoolkitAdminV2Tenant" + // }, + // "response": { + // "$ref": "GoogleCloudIdentitytoolkitAdminV2Tenant" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/firebase" + // ] + // } + +} + +// method id "identitytoolkit.projects.tenants.delete": + +type ProjectsTenantsDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Delete: Delete a tenant. Requires write permission on the Agent +// project. +// +// - name: Resource name of the tenant to delete. +func (r *ProjectsTenantsService) Delete(name string) *ProjectsTenantsDeleteCall { + c := &ProjectsTenantsDeleteCall{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 *ProjectsTenantsDeleteCall) Fields(s ...googleapi.Field) *ProjectsTenantsDeleteCall { + 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 *ProjectsTenantsDeleteCall) Context(ctx context.Context) *ProjectsTenantsDeleteCall { + 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 *ProjectsTenantsDeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsTenantsDeleteCall) 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, "v2/{+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 "identitytoolkit.projects.tenants.delete" call. +// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *GoogleProtobufEmpty.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 *ProjectsTenantsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, 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, &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, err + } + ret := &GoogleProtobufEmpty{ + 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": "Delete a tenant. Requires write permission on the Agent project.", + // "flatPath": "v2/projects/{projectsId}/tenants/{tenantsId}", + // "httpMethod": "DELETE", + // "id": "identitytoolkit.projects.tenants.delete", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Resource name of the tenant to delete.", + // "location": "path", + // "pattern": "^projects/[^/]+/tenants/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v2/{+name}", + // "response": { + // "$ref": "GoogleProtobufEmpty" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/firebase" + // ] + // } + +} + +// method id "identitytoolkit.projects.tenants.get": + +type ProjectsTenantsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Get a tenant. Requires read permission on the Tenant resource. +// +// - name: Resource name of the tenant to retrieve. +func (r *ProjectsTenantsService) Get(name string) *ProjectsTenantsGetCall { + c := &ProjectsTenantsGetCall{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 *ProjectsTenantsGetCall) Fields(s ...googleapi.Field) *ProjectsTenantsGetCall { + 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 *ProjectsTenantsGetCall) IfNoneMatch(entityTag string) *ProjectsTenantsGetCall { + 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 *ProjectsTenantsGetCall) Context(ctx context.Context) *ProjectsTenantsGetCall { + 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 *ProjectsTenantsGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsTenantsGetCall) 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, "v2/{+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 "identitytoolkit.projects.tenants.get" call. +// Exactly one of *GoogleCloudIdentitytoolkitAdminV2Tenant or error will +// be non-nil. Any non-2xx status code is an error. Response headers are +// in either +// *GoogleCloudIdentitytoolkitAdminV2Tenant.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 *ProjectsTenantsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIdentitytoolkitAdminV2Tenant, 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, &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, err + } + ret := &GoogleCloudIdentitytoolkitAdminV2Tenant{ + 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": "Get a tenant. Requires read permission on the Tenant resource.", + // "flatPath": "v2/projects/{projectsId}/tenants/{tenantsId}", + // "httpMethod": "GET", + // "id": "identitytoolkit.projects.tenants.get", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Resource name of the tenant to retrieve.", + // "location": "path", + // "pattern": "^projects/[^/]+/tenants/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v2/{+name}", + // "response": { + // "$ref": "GoogleCloudIdentitytoolkitAdminV2Tenant" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/firebase" + // ] + // } + +} + +// method id "identitytoolkit.projects.tenants.getIamPolicy": + +type ProjectsTenantsGetIamPolicyCall struct { + s *Service + resource string + googleiamv1getiampolicyrequest *GoogleIamV1GetIamPolicyRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// GetIamPolicy: Gets the access control policy for a resource. An error +// is returned if the resource does not exist. An empty policy is +// returned if the resource exists but does not have a policy set on it. +// Caller must have the right Google IAM permission on the resource. +// +// - resource: REQUIRED: The resource for which the policy is being +// requested. See Resource names +// (https://cloud.google.com/apis/design/resource_names) for the +// appropriate value for this field. +func (r *ProjectsTenantsService) GetIamPolicy(resource string, googleiamv1getiampolicyrequest *GoogleIamV1GetIamPolicyRequest) *ProjectsTenantsGetIamPolicyCall { + c := &ProjectsTenantsGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.resource = resource + c.googleiamv1getiampolicyrequest = googleiamv1getiampolicyrequest + 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 *ProjectsTenantsGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsTenantsGetIamPolicyCall { + 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 *ProjectsTenantsGetIamPolicyCall) Context(ctx context.Context) *ProjectsTenantsGetIamPolicyCall { + 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 *ProjectsTenantsGetIamPolicyCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsTenantsGetIamPolicyCall) 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.googleiamv1getiampolicyrequest) + 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, "v2/{+resource}:getIamPolicy") + 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{ + "resource": c.resource, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "identitytoolkit.projects.tenants.getIamPolicy" call. +// Exactly one of *GoogleIamV1Policy or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *GoogleIamV1Policy.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 *ProjectsTenantsGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1Policy, 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, &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, err + } + ret := &GoogleIamV1Policy{ + 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 access control policy for a resource. An error is returned if the resource does not exist. An empty policy is returned if the resource exists but does not have a policy set on it. Caller must have the right Google IAM permission on the resource.", + // "flatPath": "v2/projects/{projectsId}/tenants/{tenantsId}:getIamPolicy", + // "httpMethod": "POST", + // "id": "identitytoolkit.projects.tenants.getIamPolicy", + // "parameterOrder": [ + // "resource" + // ], + // "parameters": { + // "resource": { + // "description": "REQUIRED: The resource for which the policy is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", + // "location": "path", + // "pattern": "^projects/[^/]+/tenants/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v2/{+resource}:getIamPolicy", + // "request": { + // "$ref": "GoogleIamV1GetIamPolicyRequest" + // }, + // "response": { + // "$ref": "GoogleIamV1Policy" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/firebase" + // ] + // } + +} + +// method id "identitytoolkit.projects.tenants.list": + +type ProjectsTenantsListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: List tenants under the given agent project. Requires read +// permission on the Agent project. +// +// - parent: The parent resource name to list tenants for. +func (r *ProjectsTenantsService) List(parent string) *ProjectsTenantsListCall { + c := &ProjectsTenantsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// PageSize sets the optional parameter "pageSize": The maximum number +// of results to return, capped at 1000. If not specified, the default +// value is 20. +func (c *ProjectsTenantsListCall) PageSize(pageSize int64) *ProjectsTenantsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": The pagination +// token from the response of a previous request. +func (c *ProjectsTenantsListCall) PageToken(pageToken string) *ProjectsTenantsListCall { + 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 *ProjectsTenantsListCall) Fields(s ...googleapi.Field) *ProjectsTenantsListCall { + 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 *ProjectsTenantsListCall) IfNoneMatch(entityTag string) *ProjectsTenantsListCall { + 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 *ProjectsTenantsListCall) Context(ctx context.Context) *ProjectsTenantsListCall { + 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 *ProjectsTenantsListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsTenantsListCall) 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, "v2/{+parent}/tenants") + 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 "identitytoolkit.projects.tenants.list" call. +// Exactly one of *GoogleCloudIdentitytoolkitAdminV2ListTenantsResponse +// or error will be non-nil. Any non-2xx status code is an error. +// Response headers are in either +// *GoogleCloudIdentitytoolkitAdminV2ListTenantsResponse.ServerResponse.H +// eader 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 *ProjectsTenantsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIdentitytoolkitAdminV2ListTenantsResponse, 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, &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, err + } + ret := &GoogleCloudIdentitytoolkitAdminV2ListTenantsResponse{ + 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": "List tenants under the given agent project. Requires read permission on the Agent project.", + // "flatPath": "v2/projects/{projectsId}/tenants", + // "httpMethod": "GET", + // "id": "identitytoolkit.projects.tenants.list", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "pageSize": { + // "description": "The maximum number of results to return, capped at 1000. If not specified, the default value is 20.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "The pagination token from the response of a previous request.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "Required. The parent resource name to list tenants for.", + // "location": "path", + // "pattern": "^projects/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v2/{+parent}/tenants", + // "response": { + // "$ref": "GoogleCloudIdentitytoolkitAdminV2ListTenantsResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/firebase" + // ] + // } + +} + +// 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 *ProjectsTenantsListCall) Pages(ctx context.Context, f func(*GoogleCloudIdentitytoolkitAdminV2ListTenantsResponse) 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 "identitytoolkit.projects.tenants.patch": + +type ProjectsTenantsPatchCall struct { + s *Service + name string + googlecloudidentitytoolkitadminv2tenant *GoogleCloudIdentitytoolkitAdminV2Tenant + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Patch: Update a tenant. Requires write permission on the Tenant +// resource. +// +// - name: Output only. Resource name of a tenant. For example: +// "projects/{project-id}/tenants/{tenant-id}". +func (r *ProjectsTenantsService) Patch(name string, googlecloudidentitytoolkitadminv2tenant *GoogleCloudIdentitytoolkitAdminV2Tenant) *ProjectsTenantsPatchCall { + c := &ProjectsTenantsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.googlecloudidentitytoolkitadminv2tenant = googlecloudidentitytoolkitadminv2tenant + return c +} + +// UpdateMask sets the optional parameter "updateMask": If provided, +// only update fields set in the update mask. Otherwise, all settable +// fields will be updated. For the `FieldMask` definition, see +// https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask +func (c *ProjectsTenantsPatchCall) UpdateMask(updateMask string) *ProjectsTenantsPatchCall { + 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 *ProjectsTenantsPatchCall) Fields(s ...googleapi.Field) *ProjectsTenantsPatchCall { + 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 *ProjectsTenantsPatchCall) Context(ctx context.Context) *ProjectsTenantsPatchCall { + 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 *ProjectsTenantsPatchCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsTenantsPatchCall) 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.googlecloudidentitytoolkitadminv2tenant) + 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, "v2/{+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 "identitytoolkit.projects.tenants.patch" call. +// Exactly one of *GoogleCloudIdentitytoolkitAdminV2Tenant or error will +// be non-nil. Any non-2xx status code is an error. Response headers are +// in either +// *GoogleCloudIdentitytoolkitAdminV2Tenant.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 *ProjectsTenantsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIdentitytoolkitAdminV2Tenant, 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, &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, err + } + ret := &GoogleCloudIdentitytoolkitAdminV2Tenant{ + 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": "Update a tenant. Requires write permission on the Tenant resource.", + // "flatPath": "v2/projects/{projectsId}/tenants/{tenantsId}", + // "httpMethod": "PATCH", + // "id": "identitytoolkit.projects.tenants.patch", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Output only. Resource name of a tenant. For example: \"projects/{project-id}/tenants/{tenant-id}\"", + // "location": "path", + // "pattern": "^projects/[^/]+/tenants/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "updateMask": { + // "description": "If provided, only update fields set in the update mask. Otherwise, all settable fields will be updated. For the `FieldMask` definition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask", + // "format": "google-fieldmask", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v2/{+name}", + // "request": { + // "$ref": "GoogleCloudIdentitytoolkitAdminV2Tenant" + // }, + // "response": { + // "$ref": "GoogleCloudIdentitytoolkitAdminV2Tenant" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/firebase" + // ] + // } + +} + +// method id "identitytoolkit.projects.tenants.setIamPolicy": + +type ProjectsTenantsSetIamPolicyCall struct { + s *Service + resource string + googleiamv1setiampolicyrequest *GoogleIamV1SetIamPolicyRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// SetIamPolicy: Sets the access control policy for a resource. If the +// policy exists, it is replaced. Caller must have the right Google IAM +// permission on the resource. +// +// - resource: REQUIRED: The resource for which the policy is being +// specified. See Resource names +// (https://cloud.google.com/apis/design/resource_names) for the +// appropriate value for this field. +func (r *ProjectsTenantsService) SetIamPolicy(resource string, googleiamv1setiampolicyrequest *GoogleIamV1SetIamPolicyRequest) *ProjectsTenantsSetIamPolicyCall { + c := &ProjectsTenantsSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.resource = resource + c.googleiamv1setiampolicyrequest = googleiamv1setiampolicyrequest + 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 *ProjectsTenantsSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsTenantsSetIamPolicyCall { + 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 *ProjectsTenantsSetIamPolicyCall) Context(ctx context.Context) *ProjectsTenantsSetIamPolicyCall { + 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 *ProjectsTenantsSetIamPolicyCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsTenantsSetIamPolicyCall) 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.googleiamv1setiampolicyrequest) + 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, "v2/{+resource}:setIamPolicy") + 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{ + "resource": c.resource, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "identitytoolkit.projects.tenants.setIamPolicy" call. +// Exactly one of *GoogleIamV1Policy or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *GoogleIamV1Policy.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 *ProjectsTenantsSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1Policy, 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, &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, err + } + ret := &GoogleIamV1Policy{ + 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": "Sets the access control policy for a resource. If the policy exists, it is replaced. Caller must have the right Google IAM permission on the resource.", + // "flatPath": "v2/projects/{projectsId}/tenants/{tenantsId}:setIamPolicy", + // "httpMethod": "POST", + // "id": "identitytoolkit.projects.tenants.setIamPolicy", + // "parameterOrder": [ + // "resource" + // ], + // "parameters": { + // "resource": { + // "description": "REQUIRED: The resource for which the policy is being specified. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", + // "location": "path", + // "pattern": "^projects/[^/]+/tenants/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v2/{+resource}:setIamPolicy", + // "request": { + // "$ref": "GoogleIamV1SetIamPolicyRequest" + // }, + // "response": { + // "$ref": "GoogleIamV1Policy" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/firebase" + // ] + // } + +} + +// method id "identitytoolkit.projects.tenants.testIamPermissions": + +type ProjectsTenantsTestIamPermissionsCall struct { + s *Service + resource string + googleiamv1testiampermissionsrequest *GoogleIamV1TestIamPermissionsRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// TestIamPermissions: Returns the caller's permissions on a resource. +// An error is returned if the resource does not exist. A caller is not +// required to have Google IAM permission to make this request. +// +// - resource: REQUIRED: The resource for which the policy detail is +// being requested. See Resource names +// (https://cloud.google.com/apis/design/resource_names) for the +// appropriate value for this field. +func (r *ProjectsTenantsService) TestIamPermissions(resource string, googleiamv1testiampermissionsrequest *GoogleIamV1TestIamPermissionsRequest) *ProjectsTenantsTestIamPermissionsCall { + c := &ProjectsTenantsTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.resource = resource + c.googleiamv1testiampermissionsrequest = googleiamv1testiampermissionsrequest + 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 *ProjectsTenantsTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsTenantsTestIamPermissionsCall { + 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 *ProjectsTenantsTestIamPermissionsCall) Context(ctx context.Context) *ProjectsTenantsTestIamPermissionsCall { + 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 *ProjectsTenantsTestIamPermissionsCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsTenantsTestIamPermissionsCall) 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.googleiamv1testiampermissionsrequest) + 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, "v2/{+resource}:testIamPermissions") + 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{ + "resource": c.resource, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "identitytoolkit.projects.tenants.testIamPermissions" call. +// Exactly one of *GoogleIamV1TestIamPermissionsResponse or error will +// be non-nil. Any non-2xx status code is an error. Response headers are +// in either +// *GoogleIamV1TestIamPermissionsResponse.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 *ProjectsTenantsTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1TestIamPermissionsResponse, 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, &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, err + } + ret := &GoogleIamV1TestIamPermissionsResponse{ + 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 caller's permissions on a resource. An error is returned if the resource does not exist. A caller is not required to have Google IAM permission to make this request.", + // "flatPath": "v2/projects/{projectsId}/tenants/{tenantsId}:testIamPermissions", + // "httpMethod": "POST", + // "id": "identitytoolkit.projects.tenants.testIamPermissions", + // "parameterOrder": [ + // "resource" + // ], + // "parameters": { + // "resource": { + // "description": "REQUIRED: The resource for which the policy detail is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", + // "location": "path", + // "pattern": "^projects/[^/]+/tenants/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v2/{+resource}:testIamPermissions", + // "request": { + // "$ref": "GoogleIamV1TestIamPermissionsRequest" + // }, + // "response": { + // "$ref": "GoogleIamV1TestIamPermissionsResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/firebase" + // ] + // } + +} + +// method id "identitytoolkit.projects.tenants.defaultSupportedIdpConfigs.create": + +type ProjectsTenantsDefaultSupportedIdpConfigsCreateCall struct { + s *Service + parent string + googlecloudidentitytoolkitadminv2defaultsupportedidpconfig *GoogleCloudIdentitytoolkitAdminV2DefaultSupportedIdpConfig + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Create: Create a default supported Idp configuration for an Identity +// Toolkit project. +// +// - parent: The parent resource name where the config to be created, +// for example: "projects/my-awesome-project". +func (r *ProjectsTenantsDefaultSupportedIdpConfigsService) Create(parent string, googlecloudidentitytoolkitadminv2defaultsupportedidpconfig *GoogleCloudIdentitytoolkitAdminV2DefaultSupportedIdpConfig) *ProjectsTenantsDefaultSupportedIdpConfigsCreateCall { + c := &ProjectsTenantsDefaultSupportedIdpConfigsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.googlecloudidentitytoolkitadminv2defaultsupportedidpconfig = googlecloudidentitytoolkitadminv2defaultsupportedidpconfig + return c +} + +// IdpId sets the optional parameter "idpId": The id of the Idp to +// create a config for. Call ListDefaultSupportedIdps for list of all +// default supported Idps. +func (c *ProjectsTenantsDefaultSupportedIdpConfigsCreateCall) IdpId(idpId string) *ProjectsTenantsDefaultSupportedIdpConfigsCreateCall { + c.urlParams_.Set("idpId", idpId) + 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 *ProjectsTenantsDefaultSupportedIdpConfigsCreateCall) Fields(s ...googleapi.Field) *ProjectsTenantsDefaultSupportedIdpConfigsCreateCall { + 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 *ProjectsTenantsDefaultSupportedIdpConfigsCreateCall) Context(ctx context.Context) *ProjectsTenantsDefaultSupportedIdpConfigsCreateCall { + 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 *ProjectsTenantsDefaultSupportedIdpConfigsCreateCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsTenantsDefaultSupportedIdpConfigsCreateCall) 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.googlecloudidentitytoolkitadminv2defaultsupportedidpconfig) + 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, "v2/{+parent}/defaultSupportedIdpConfigs") + 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 "identitytoolkit.projects.tenants.defaultSupportedIdpConfigs.create" call. +// Exactly one of +// *GoogleCloudIdentitytoolkitAdminV2DefaultSupportedIdpConfig or error +// will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudIdentitytoolkitAdminV2DefaultSupportedIdpConfig.ServerResp +// onse.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 *ProjectsTenantsDefaultSupportedIdpConfigsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIdentitytoolkitAdminV2DefaultSupportedIdpConfig, 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, &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, err + } + ret := &GoogleCloudIdentitytoolkitAdminV2DefaultSupportedIdpConfig{ + 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": "Create a default supported Idp configuration for an Identity Toolkit project.", + // "flatPath": "v2/projects/{projectsId}/tenants/{tenantsId}/defaultSupportedIdpConfigs", + // "httpMethod": "POST", + // "id": "identitytoolkit.projects.tenants.defaultSupportedIdpConfigs.create", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "idpId": { + // "description": "The id of the Idp to create a config for. Call ListDefaultSupportedIdps for list of all default supported Idps.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "The parent resource name where the config to be created, for example: \"projects/my-awesome-project\"", + // "location": "path", + // "pattern": "^projects/[^/]+/tenants/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v2/{+parent}/defaultSupportedIdpConfigs", + // "request": { + // "$ref": "GoogleCloudIdentitytoolkitAdminV2DefaultSupportedIdpConfig" + // }, + // "response": { + // "$ref": "GoogleCloudIdentitytoolkitAdminV2DefaultSupportedIdpConfig" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/firebase" + // ] + // } + +} + +// method id "identitytoolkit.projects.tenants.defaultSupportedIdpConfigs.delete": + +type ProjectsTenantsDefaultSupportedIdpConfigsDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Delete: Delete a default supported Idp configuration for an Identity +// Toolkit project. +// +// - name: The resource name of the config, for example: +// "projects/my-awesome-project/defaultSupportedIdpConfigs/google.com". +func (r *ProjectsTenantsDefaultSupportedIdpConfigsService) Delete(name string) *ProjectsTenantsDefaultSupportedIdpConfigsDeleteCall { + c := &ProjectsTenantsDefaultSupportedIdpConfigsDeleteCall{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 *ProjectsTenantsDefaultSupportedIdpConfigsDeleteCall) Fields(s ...googleapi.Field) *ProjectsTenantsDefaultSupportedIdpConfigsDeleteCall { + 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 *ProjectsTenantsDefaultSupportedIdpConfigsDeleteCall) Context(ctx context.Context) *ProjectsTenantsDefaultSupportedIdpConfigsDeleteCall { + 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 *ProjectsTenantsDefaultSupportedIdpConfigsDeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsTenantsDefaultSupportedIdpConfigsDeleteCall) 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, "v2/{+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 "identitytoolkit.projects.tenants.defaultSupportedIdpConfigs.delete" call. +// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *GoogleProtobufEmpty.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 *ProjectsTenantsDefaultSupportedIdpConfigsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, 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, &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, err + } + ret := &GoogleProtobufEmpty{ + 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": "Delete a default supported Idp configuration for an Identity Toolkit project.", + // "flatPath": "v2/projects/{projectsId}/tenants/{tenantsId}/defaultSupportedIdpConfigs/{defaultSupportedIdpConfigsId}", + // "httpMethod": "DELETE", + // "id": "identitytoolkit.projects.tenants.defaultSupportedIdpConfigs.delete", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "The resource name of the config, for example: \"projects/my-awesome-project/defaultSupportedIdpConfigs/google.com\"", + // "location": "path", + // "pattern": "^projects/[^/]+/tenants/[^/]+/defaultSupportedIdpConfigs/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v2/{+name}", + // "response": { + // "$ref": "GoogleProtobufEmpty" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/firebase" + // ] + // } + +} + +// method id "identitytoolkit.projects.tenants.defaultSupportedIdpConfigs.get": + +type ProjectsTenantsDefaultSupportedIdpConfigsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Retrieve a default supported Idp configuration for an Identity +// Toolkit project. +// +// - name: The resource name of the config, for example: +// "projects/my-awesome-project/defaultSupportedIdpConfigs/google.com". +func (r *ProjectsTenantsDefaultSupportedIdpConfigsService) Get(name string) *ProjectsTenantsDefaultSupportedIdpConfigsGetCall { + c := &ProjectsTenantsDefaultSupportedIdpConfigsGetCall{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 *ProjectsTenantsDefaultSupportedIdpConfigsGetCall) Fields(s ...googleapi.Field) *ProjectsTenantsDefaultSupportedIdpConfigsGetCall { + 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 *ProjectsTenantsDefaultSupportedIdpConfigsGetCall) IfNoneMatch(entityTag string) *ProjectsTenantsDefaultSupportedIdpConfigsGetCall { + 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 *ProjectsTenantsDefaultSupportedIdpConfigsGetCall) Context(ctx context.Context) *ProjectsTenantsDefaultSupportedIdpConfigsGetCall { + 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 *ProjectsTenantsDefaultSupportedIdpConfigsGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsTenantsDefaultSupportedIdpConfigsGetCall) 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, "v2/{+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 "identitytoolkit.projects.tenants.defaultSupportedIdpConfigs.get" call. +// Exactly one of +// *GoogleCloudIdentitytoolkitAdminV2DefaultSupportedIdpConfig or error +// will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudIdentitytoolkitAdminV2DefaultSupportedIdpConfig.ServerResp +// onse.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 *ProjectsTenantsDefaultSupportedIdpConfigsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIdentitytoolkitAdminV2DefaultSupportedIdpConfig, 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, &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, err + } + ret := &GoogleCloudIdentitytoolkitAdminV2DefaultSupportedIdpConfig{ + 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": "Retrieve a default supported Idp configuration for an Identity Toolkit project.", + // "flatPath": "v2/projects/{projectsId}/tenants/{tenantsId}/defaultSupportedIdpConfigs/{defaultSupportedIdpConfigsId}", + // "httpMethod": "GET", + // "id": "identitytoolkit.projects.tenants.defaultSupportedIdpConfigs.get", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "The resource name of the config, for example: \"projects/my-awesome-project/defaultSupportedIdpConfigs/google.com\"", + // "location": "path", + // "pattern": "^projects/[^/]+/tenants/[^/]+/defaultSupportedIdpConfigs/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v2/{+name}", + // "response": { + // "$ref": "GoogleCloudIdentitytoolkitAdminV2DefaultSupportedIdpConfig" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/firebase" + // ] + // } + +} + +// method id "identitytoolkit.projects.tenants.defaultSupportedIdpConfigs.list": + +type ProjectsTenantsDefaultSupportedIdpConfigsListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: List all default supported Idp configurations for an Identity +// Toolkit project. +// +// - parent: The parent resource name, for example, +// "projects/my-awesome-project". +func (r *ProjectsTenantsDefaultSupportedIdpConfigsService) List(parent string) *ProjectsTenantsDefaultSupportedIdpConfigsListCall { + c := &ProjectsTenantsDefaultSupportedIdpConfigsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// PageSize sets the optional parameter "pageSize": The maximum number +// of items to return. +func (c *ProjectsTenantsDefaultSupportedIdpConfigsListCall) PageSize(pageSize int64) *ProjectsTenantsDefaultSupportedIdpConfigsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": The +// next_page_token value returned from a previous List request, if any. +func (c *ProjectsTenantsDefaultSupportedIdpConfigsListCall) PageToken(pageToken string) *ProjectsTenantsDefaultSupportedIdpConfigsListCall { + 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 *ProjectsTenantsDefaultSupportedIdpConfigsListCall) Fields(s ...googleapi.Field) *ProjectsTenantsDefaultSupportedIdpConfigsListCall { + 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 *ProjectsTenantsDefaultSupportedIdpConfigsListCall) IfNoneMatch(entityTag string) *ProjectsTenantsDefaultSupportedIdpConfigsListCall { + 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 *ProjectsTenantsDefaultSupportedIdpConfigsListCall) Context(ctx context.Context) *ProjectsTenantsDefaultSupportedIdpConfigsListCall { + 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 *ProjectsTenantsDefaultSupportedIdpConfigsListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsTenantsDefaultSupportedIdpConfigsListCall) 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, "v2/{+parent}/defaultSupportedIdpConfigs") + 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 "identitytoolkit.projects.tenants.defaultSupportedIdpConfigs.list" call. +// Exactly one of +// *GoogleCloudIdentitytoolkitAdminV2ListDefaultSupportedIdpConfigsRespon +// se or error will be non-nil. Any non-2xx status code is an error. +// Response headers are in either +// *GoogleCloudIdentitytoolkitAdminV2ListDefaultSupportedIdpConfigsRespon +// se.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 *ProjectsTenantsDefaultSupportedIdpConfigsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIdentitytoolkitAdminV2ListDefaultSupportedIdpConfigsResponse, 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, &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, err + } + ret := &GoogleCloudIdentitytoolkitAdminV2ListDefaultSupportedIdpConfigsResponse{ + 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": "List all default supported Idp configurations for an Identity Toolkit project.", + // "flatPath": "v2/projects/{projectsId}/tenants/{tenantsId}/defaultSupportedIdpConfigs", + // "httpMethod": "GET", + // "id": "identitytoolkit.projects.tenants.defaultSupportedIdpConfigs.list", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "pageSize": { + // "description": "The maximum number of items to return.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "The next_page_token value returned from a previous List request, if any.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "The parent resource name, for example, \"projects/my-awesome-project\".", + // "location": "path", + // "pattern": "^projects/[^/]+/tenants/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v2/{+parent}/defaultSupportedIdpConfigs", + // "response": { + // "$ref": "GoogleCloudIdentitytoolkitAdminV2ListDefaultSupportedIdpConfigsResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/firebase" + // ] + // } + +} + +// 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 *ProjectsTenantsDefaultSupportedIdpConfigsListCall) Pages(ctx context.Context, f func(*GoogleCloudIdentitytoolkitAdminV2ListDefaultSupportedIdpConfigsResponse) 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 "identitytoolkit.projects.tenants.defaultSupportedIdpConfigs.patch": + +type ProjectsTenantsDefaultSupportedIdpConfigsPatchCall struct { + s *Service + name string + googlecloudidentitytoolkitadminv2defaultsupportedidpconfig *GoogleCloudIdentitytoolkitAdminV2DefaultSupportedIdpConfig + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Patch: Update a default supported Idp configuration for an Identity +// Toolkit project. +// +// - name: The name of the DefaultSupportedIdpConfig resource, for +// example: +// "projects/my-awesome-project/defaultSupportedIdpConfigs/google.com". +func (r *ProjectsTenantsDefaultSupportedIdpConfigsService) Patch(name string, googlecloudidentitytoolkitadminv2defaultsupportedidpconfig *GoogleCloudIdentitytoolkitAdminV2DefaultSupportedIdpConfig) *ProjectsTenantsDefaultSupportedIdpConfigsPatchCall { + c := &ProjectsTenantsDefaultSupportedIdpConfigsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.googlecloudidentitytoolkitadminv2defaultsupportedidpconfig = googlecloudidentitytoolkitadminv2defaultsupportedidpconfig + return c +} + +// UpdateMask sets the optional parameter "updateMask": The update mask +// applies to the resource. For the `FieldMask` definition, see +// https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask +func (c *ProjectsTenantsDefaultSupportedIdpConfigsPatchCall) UpdateMask(updateMask string) *ProjectsTenantsDefaultSupportedIdpConfigsPatchCall { + 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 *ProjectsTenantsDefaultSupportedIdpConfigsPatchCall) Fields(s ...googleapi.Field) *ProjectsTenantsDefaultSupportedIdpConfigsPatchCall { + 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 *ProjectsTenantsDefaultSupportedIdpConfigsPatchCall) Context(ctx context.Context) *ProjectsTenantsDefaultSupportedIdpConfigsPatchCall { + 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 *ProjectsTenantsDefaultSupportedIdpConfigsPatchCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsTenantsDefaultSupportedIdpConfigsPatchCall) 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.googlecloudidentitytoolkitadminv2defaultsupportedidpconfig) + 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, "v2/{+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 "identitytoolkit.projects.tenants.defaultSupportedIdpConfigs.patch" call. +// Exactly one of +// *GoogleCloudIdentitytoolkitAdminV2DefaultSupportedIdpConfig or error +// will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudIdentitytoolkitAdminV2DefaultSupportedIdpConfig.ServerResp +// onse.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 *ProjectsTenantsDefaultSupportedIdpConfigsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIdentitytoolkitAdminV2DefaultSupportedIdpConfig, 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, &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, err + } + ret := &GoogleCloudIdentitytoolkitAdminV2DefaultSupportedIdpConfig{ + 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": "Update a default supported Idp configuration for an Identity Toolkit project.", + // "flatPath": "v2/projects/{projectsId}/tenants/{tenantsId}/defaultSupportedIdpConfigs/{defaultSupportedIdpConfigsId}", + // "httpMethod": "PATCH", + // "id": "identitytoolkit.projects.tenants.defaultSupportedIdpConfigs.patch", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "The name of the DefaultSupportedIdpConfig resource, for example: \"projects/my-awesome-project/defaultSupportedIdpConfigs/google.com\"", + // "location": "path", + // "pattern": "^projects/[^/]+/tenants/[^/]+/defaultSupportedIdpConfigs/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "updateMask": { + // "description": "The update mask applies to the resource. For the `FieldMask` definition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask", + // "format": "google-fieldmask", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v2/{+name}", + // "request": { + // "$ref": "GoogleCloudIdentitytoolkitAdminV2DefaultSupportedIdpConfig" + // }, + // "response": { + // "$ref": "GoogleCloudIdentitytoolkitAdminV2DefaultSupportedIdpConfig" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/firebase" + // ] + // } + +} + +// method id "identitytoolkit.projects.tenants.inboundSamlConfigs.create": + +type ProjectsTenantsInboundSamlConfigsCreateCall struct { + s *Service + parent string + googlecloudidentitytoolkitadminv2inboundsamlconfig *GoogleCloudIdentitytoolkitAdminV2InboundSamlConfig + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Create: Create an inbound SAML configuration for an Identity Toolkit +// project. +// +// - parent: The parent resource name where the config to be created, +// for example: "projects/my-awesome-project". +func (r *ProjectsTenantsInboundSamlConfigsService) Create(parent string, googlecloudidentitytoolkitadminv2inboundsamlconfig *GoogleCloudIdentitytoolkitAdminV2InboundSamlConfig) *ProjectsTenantsInboundSamlConfigsCreateCall { + c := &ProjectsTenantsInboundSamlConfigsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.googlecloudidentitytoolkitadminv2inboundsamlconfig = googlecloudidentitytoolkitadminv2inboundsamlconfig + return c +} + +// InboundSamlConfigId sets the optional parameter +// "inboundSamlConfigId": The id to use for this config. +func (c *ProjectsTenantsInboundSamlConfigsCreateCall) InboundSamlConfigId(inboundSamlConfigId string) *ProjectsTenantsInboundSamlConfigsCreateCall { + c.urlParams_.Set("inboundSamlConfigId", inboundSamlConfigId) + 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 *ProjectsTenantsInboundSamlConfigsCreateCall) Fields(s ...googleapi.Field) *ProjectsTenantsInboundSamlConfigsCreateCall { + 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 *ProjectsTenantsInboundSamlConfigsCreateCall) Context(ctx context.Context) *ProjectsTenantsInboundSamlConfigsCreateCall { + 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 *ProjectsTenantsInboundSamlConfigsCreateCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsTenantsInboundSamlConfigsCreateCall) 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.googlecloudidentitytoolkitadminv2inboundsamlconfig) + 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, "v2/{+parent}/inboundSamlConfigs") + 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 "identitytoolkit.projects.tenants.inboundSamlConfigs.create" call. +// Exactly one of *GoogleCloudIdentitytoolkitAdminV2InboundSamlConfig or +// error will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudIdentitytoolkitAdminV2InboundSamlConfig.ServerResponse.Hea +// der 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 *ProjectsTenantsInboundSamlConfigsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIdentitytoolkitAdminV2InboundSamlConfig, 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, &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, err + } + ret := &GoogleCloudIdentitytoolkitAdminV2InboundSamlConfig{ + 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": "Create an inbound SAML configuration for an Identity Toolkit project.", + // "flatPath": "v2/projects/{projectsId}/tenants/{tenantsId}/inboundSamlConfigs", + // "httpMethod": "POST", + // "id": "identitytoolkit.projects.tenants.inboundSamlConfigs.create", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "inboundSamlConfigId": { + // "description": "The id to use for this config.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "The parent resource name where the config to be created, for example: \"projects/my-awesome-project\"", + // "location": "path", + // "pattern": "^projects/[^/]+/tenants/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v2/{+parent}/inboundSamlConfigs", + // "request": { + // "$ref": "GoogleCloudIdentitytoolkitAdminV2InboundSamlConfig" + // }, + // "response": { + // "$ref": "GoogleCloudIdentitytoolkitAdminV2InboundSamlConfig" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/firebase" + // ] + // } + +} + +// method id "identitytoolkit.projects.tenants.inboundSamlConfigs.delete": + +type ProjectsTenantsInboundSamlConfigsDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Delete: Delete an inbound SAML configuration for an Identity Toolkit +// project. +// +// - name: The resource name of the config to be deleted, for example: +// 'projects/my-awesome-project/inboundSamlConfigs/my-config-id'. +func (r *ProjectsTenantsInboundSamlConfigsService) Delete(name string) *ProjectsTenantsInboundSamlConfigsDeleteCall { + c := &ProjectsTenantsInboundSamlConfigsDeleteCall{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 *ProjectsTenantsInboundSamlConfigsDeleteCall) Fields(s ...googleapi.Field) *ProjectsTenantsInboundSamlConfigsDeleteCall { + 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 *ProjectsTenantsInboundSamlConfigsDeleteCall) Context(ctx context.Context) *ProjectsTenantsInboundSamlConfigsDeleteCall { + 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 *ProjectsTenantsInboundSamlConfigsDeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsTenantsInboundSamlConfigsDeleteCall) 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, "v2/{+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 "identitytoolkit.projects.tenants.inboundSamlConfigs.delete" call. +// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *GoogleProtobufEmpty.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 *ProjectsTenantsInboundSamlConfigsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, 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, &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, err + } + ret := &GoogleProtobufEmpty{ + 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": "Delete an inbound SAML configuration for an Identity Toolkit project.", + // "flatPath": "v2/projects/{projectsId}/tenants/{tenantsId}/inboundSamlConfigs/{inboundSamlConfigsId}", + // "httpMethod": "DELETE", + // "id": "identitytoolkit.projects.tenants.inboundSamlConfigs.delete", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "The resource name of the config to be deleted, for example: 'projects/my-awesome-project/inboundSamlConfigs/my-config-id'.", + // "location": "path", + // "pattern": "^projects/[^/]+/tenants/[^/]+/inboundSamlConfigs/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v2/{+name}", + // "response": { + // "$ref": "GoogleProtobufEmpty" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/firebase" + // ] + // } + +} + +// method id "identitytoolkit.projects.tenants.inboundSamlConfigs.get": + +type ProjectsTenantsInboundSamlConfigsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Retrieve an inbound SAML configuration for an Identity Toolkit +// project. +// +// - name: The resource name of the config, for example: +// 'projects/my-awesome-project/inboundSamlConfigs/my-config-id'. +func (r *ProjectsTenantsInboundSamlConfigsService) Get(name string) *ProjectsTenantsInboundSamlConfigsGetCall { + c := &ProjectsTenantsInboundSamlConfigsGetCall{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 *ProjectsTenantsInboundSamlConfigsGetCall) Fields(s ...googleapi.Field) *ProjectsTenantsInboundSamlConfigsGetCall { + 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 *ProjectsTenantsInboundSamlConfigsGetCall) IfNoneMatch(entityTag string) *ProjectsTenantsInboundSamlConfigsGetCall { + 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 *ProjectsTenantsInboundSamlConfigsGetCall) Context(ctx context.Context) *ProjectsTenantsInboundSamlConfigsGetCall { + 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 *ProjectsTenantsInboundSamlConfigsGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsTenantsInboundSamlConfigsGetCall) 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, "v2/{+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 "identitytoolkit.projects.tenants.inboundSamlConfigs.get" call. +// Exactly one of *GoogleCloudIdentitytoolkitAdminV2InboundSamlConfig or +// error will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudIdentitytoolkitAdminV2InboundSamlConfig.ServerResponse.Hea +// der 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 *ProjectsTenantsInboundSamlConfigsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIdentitytoolkitAdminV2InboundSamlConfig, 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, &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, err + } + ret := &GoogleCloudIdentitytoolkitAdminV2InboundSamlConfig{ + 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": "Retrieve an inbound SAML configuration for an Identity Toolkit project.", + // "flatPath": "v2/projects/{projectsId}/tenants/{tenantsId}/inboundSamlConfigs/{inboundSamlConfigsId}", + // "httpMethod": "GET", + // "id": "identitytoolkit.projects.tenants.inboundSamlConfigs.get", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "The resource name of the config, for example: 'projects/my-awesome-project/inboundSamlConfigs/my-config-id'.", + // "location": "path", + // "pattern": "^projects/[^/]+/tenants/[^/]+/inboundSamlConfigs/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v2/{+name}", + // "response": { + // "$ref": "GoogleCloudIdentitytoolkitAdminV2InboundSamlConfig" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/firebase" + // ] + // } + +} + +// method id "identitytoolkit.projects.tenants.inboundSamlConfigs.list": + +type ProjectsTenantsInboundSamlConfigsListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: List all inbound SAML configurations for an Identity Toolkit +// project. +// +// - parent: The parent resource name, for example, +// "projects/my-awesome-project". +func (r *ProjectsTenantsInboundSamlConfigsService) List(parent string) *ProjectsTenantsInboundSamlConfigsListCall { + c := &ProjectsTenantsInboundSamlConfigsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// PageSize sets the optional parameter "pageSize": The maximum number +// of items to return. +func (c *ProjectsTenantsInboundSamlConfigsListCall) PageSize(pageSize int64) *ProjectsTenantsInboundSamlConfigsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": The +// next_page_token value returned from a previous List request, if any. +func (c *ProjectsTenantsInboundSamlConfigsListCall) PageToken(pageToken string) *ProjectsTenantsInboundSamlConfigsListCall { + 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 *ProjectsTenantsInboundSamlConfigsListCall) Fields(s ...googleapi.Field) *ProjectsTenantsInboundSamlConfigsListCall { + 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 *ProjectsTenantsInboundSamlConfigsListCall) IfNoneMatch(entityTag string) *ProjectsTenantsInboundSamlConfigsListCall { + 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 *ProjectsTenantsInboundSamlConfigsListCall) Context(ctx context.Context) *ProjectsTenantsInboundSamlConfigsListCall { + 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 *ProjectsTenantsInboundSamlConfigsListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsTenantsInboundSamlConfigsListCall) 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, "v2/{+parent}/inboundSamlConfigs") + 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 "identitytoolkit.projects.tenants.inboundSamlConfigs.list" call. +// Exactly one of +// *GoogleCloudIdentitytoolkitAdminV2ListInboundSamlConfigsResponse or +// error will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudIdentitytoolkitAdminV2ListInboundSamlConfigsResponse.Serve +// rResponse.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 *ProjectsTenantsInboundSamlConfigsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIdentitytoolkitAdminV2ListInboundSamlConfigsResponse, 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, &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, err + } + ret := &GoogleCloudIdentitytoolkitAdminV2ListInboundSamlConfigsResponse{ + 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": "List all inbound SAML configurations for an Identity Toolkit project.", + // "flatPath": "v2/projects/{projectsId}/tenants/{tenantsId}/inboundSamlConfigs", + // "httpMethod": "GET", + // "id": "identitytoolkit.projects.tenants.inboundSamlConfigs.list", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "pageSize": { + // "description": "The maximum number of items to return.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "The next_page_token value returned from a previous List request, if any.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "The parent resource name, for example, \"projects/my-awesome-project\".", + // "location": "path", + // "pattern": "^projects/[^/]+/tenants/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v2/{+parent}/inboundSamlConfigs", + // "response": { + // "$ref": "GoogleCloudIdentitytoolkitAdminV2ListInboundSamlConfigsResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/firebase" + // ] + // } + +} + +// 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 *ProjectsTenantsInboundSamlConfigsListCall) Pages(ctx context.Context, f func(*GoogleCloudIdentitytoolkitAdminV2ListInboundSamlConfigsResponse) 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 "identitytoolkit.projects.tenants.inboundSamlConfigs.patch": + +type ProjectsTenantsInboundSamlConfigsPatchCall struct { + s *Service + name string + googlecloudidentitytoolkitadminv2inboundsamlconfig *GoogleCloudIdentitytoolkitAdminV2InboundSamlConfig + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Patch: Update an inbound SAML configuration for an Identity Toolkit +// project. +// +// - name: The name of the InboundSamlConfig resource, for example: +// 'projects/my-awesome-project/inboundSamlConfigs/my-config-id'. +// Ignored during create requests. +func (r *ProjectsTenantsInboundSamlConfigsService) Patch(name string, googlecloudidentitytoolkitadminv2inboundsamlconfig *GoogleCloudIdentitytoolkitAdminV2InboundSamlConfig) *ProjectsTenantsInboundSamlConfigsPatchCall { + c := &ProjectsTenantsInboundSamlConfigsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.googlecloudidentitytoolkitadminv2inboundsamlconfig = googlecloudidentitytoolkitadminv2inboundsamlconfig + return c +} + +// UpdateMask sets the optional parameter "updateMask": The update mask +// applies to the resource. Empty update mask will result in updating +// nothing. For the `FieldMask` definition, see +// https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask +func (c *ProjectsTenantsInboundSamlConfigsPatchCall) UpdateMask(updateMask string) *ProjectsTenantsInboundSamlConfigsPatchCall { + 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 *ProjectsTenantsInboundSamlConfigsPatchCall) Fields(s ...googleapi.Field) *ProjectsTenantsInboundSamlConfigsPatchCall { + 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 *ProjectsTenantsInboundSamlConfigsPatchCall) Context(ctx context.Context) *ProjectsTenantsInboundSamlConfigsPatchCall { + 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 *ProjectsTenantsInboundSamlConfigsPatchCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsTenantsInboundSamlConfigsPatchCall) 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.googlecloudidentitytoolkitadminv2inboundsamlconfig) + 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, "v2/{+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 "identitytoolkit.projects.tenants.inboundSamlConfigs.patch" call. +// Exactly one of *GoogleCloudIdentitytoolkitAdminV2InboundSamlConfig or +// error will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudIdentitytoolkitAdminV2InboundSamlConfig.ServerResponse.Hea +// der 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 *ProjectsTenantsInboundSamlConfigsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIdentitytoolkitAdminV2InboundSamlConfig, 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, &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, err + } + ret := &GoogleCloudIdentitytoolkitAdminV2InboundSamlConfig{ + 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": "Update an inbound SAML configuration for an Identity Toolkit project.", + // "flatPath": "v2/projects/{projectsId}/tenants/{tenantsId}/inboundSamlConfigs/{inboundSamlConfigsId}", + // "httpMethod": "PATCH", + // "id": "identitytoolkit.projects.tenants.inboundSamlConfigs.patch", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "The name of the InboundSamlConfig resource, for example: 'projects/my-awesome-project/inboundSamlConfigs/my-config-id'. Ignored during create requests.", + // "location": "path", + // "pattern": "^projects/[^/]+/tenants/[^/]+/inboundSamlConfigs/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "updateMask": { + // "description": "The update mask applies to the resource. Empty update mask will result in updating nothing. For the `FieldMask` definition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask", + // "format": "google-fieldmask", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v2/{+name}", + // "request": { + // "$ref": "GoogleCloudIdentitytoolkitAdminV2InboundSamlConfig" + // }, + // "response": { + // "$ref": "GoogleCloudIdentitytoolkitAdminV2InboundSamlConfig" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/firebase" + // ] + // } + +} + +// method id "identitytoolkit.projects.tenants.oauthIdpConfigs.create": + +type ProjectsTenantsOauthIdpConfigsCreateCall struct { + s *Service + parent string + googlecloudidentitytoolkitadminv2oauthidpconfig *GoogleCloudIdentitytoolkitAdminV2OAuthIdpConfig + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Create: Create an Oidc Idp configuration for an Identity Toolkit +// project. +// +// - parent: The parent resource name where the config to be created, +// for example: "projects/my-awesome-project". +func (r *ProjectsTenantsOauthIdpConfigsService) Create(parent string, googlecloudidentitytoolkitadminv2oauthidpconfig *GoogleCloudIdentitytoolkitAdminV2OAuthIdpConfig) *ProjectsTenantsOauthIdpConfigsCreateCall { + c := &ProjectsTenantsOauthIdpConfigsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.googlecloudidentitytoolkitadminv2oauthidpconfig = googlecloudidentitytoolkitadminv2oauthidpconfig + return c +} + +// OauthIdpConfigId sets the optional parameter "oauthIdpConfigId": The +// id to use for this config. +func (c *ProjectsTenantsOauthIdpConfigsCreateCall) OauthIdpConfigId(oauthIdpConfigId string) *ProjectsTenantsOauthIdpConfigsCreateCall { + c.urlParams_.Set("oauthIdpConfigId", oauthIdpConfigId) + 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 *ProjectsTenantsOauthIdpConfigsCreateCall) Fields(s ...googleapi.Field) *ProjectsTenantsOauthIdpConfigsCreateCall { + 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 *ProjectsTenantsOauthIdpConfigsCreateCall) Context(ctx context.Context) *ProjectsTenantsOauthIdpConfigsCreateCall { + 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 *ProjectsTenantsOauthIdpConfigsCreateCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsTenantsOauthIdpConfigsCreateCall) 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.googlecloudidentitytoolkitadminv2oauthidpconfig) + 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, "v2/{+parent}/oauthIdpConfigs") + 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 "identitytoolkit.projects.tenants.oauthIdpConfigs.create" call. +// Exactly one of *GoogleCloudIdentitytoolkitAdminV2OAuthIdpConfig or +// error will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudIdentitytoolkitAdminV2OAuthIdpConfig.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 *ProjectsTenantsOauthIdpConfigsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIdentitytoolkitAdminV2OAuthIdpConfig, 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, &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, err + } + ret := &GoogleCloudIdentitytoolkitAdminV2OAuthIdpConfig{ + 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": "Create an Oidc Idp configuration for an Identity Toolkit project.", + // "flatPath": "v2/projects/{projectsId}/tenants/{tenantsId}/oauthIdpConfigs", + // "httpMethod": "POST", + // "id": "identitytoolkit.projects.tenants.oauthIdpConfigs.create", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "oauthIdpConfigId": { + // "description": "The id to use for this config.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "The parent resource name where the config to be created, for example: \"projects/my-awesome-project\"", + // "location": "path", + // "pattern": "^projects/[^/]+/tenants/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v2/{+parent}/oauthIdpConfigs", + // "request": { + // "$ref": "GoogleCloudIdentitytoolkitAdminV2OAuthIdpConfig" + // }, + // "response": { + // "$ref": "GoogleCloudIdentitytoolkitAdminV2OAuthIdpConfig" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/firebase" + // ] + // } + +} + +// method id "identitytoolkit.projects.tenants.oauthIdpConfigs.delete": + +type ProjectsTenantsOauthIdpConfigsDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Delete: Delete an Oidc Idp configuration for an Identity Toolkit +// project. +// +// - name: The resource name of the config to be deleted, for example: +// 'projects/my-awesome-project/oauthIdpConfigs/oauth-config-id'. +func (r *ProjectsTenantsOauthIdpConfigsService) Delete(name string) *ProjectsTenantsOauthIdpConfigsDeleteCall { + c := &ProjectsTenantsOauthIdpConfigsDeleteCall{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 *ProjectsTenantsOauthIdpConfigsDeleteCall) Fields(s ...googleapi.Field) *ProjectsTenantsOauthIdpConfigsDeleteCall { + 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 *ProjectsTenantsOauthIdpConfigsDeleteCall) Context(ctx context.Context) *ProjectsTenantsOauthIdpConfigsDeleteCall { + 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 *ProjectsTenantsOauthIdpConfigsDeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsTenantsOauthIdpConfigsDeleteCall) 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, "v2/{+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 "identitytoolkit.projects.tenants.oauthIdpConfigs.delete" call. +// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *GoogleProtobufEmpty.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 *ProjectsTenantsOauthIdpConfigsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, 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, &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, err + } + ret := &GoogleProtobufEmpty{ + 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": "Delete an Oidc Idp configuration for an Identity Toolkit project.", + // "flatPath": "v2/projects/{projectsId}/tenants/{tenantsId}/oauthIdpConfigs/{oauthIdpConfigsId}", + // "httpMethod": "DELETE", + // "id": "identitytoolkit.projects.tenants.oauthIdpConfigs.delete", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "The resource name of the config to be deleted, for example: 'projects/my-awesome-project/oauthIdpConfigs/oauth-config-id'.", + // "location": "path", + // "pattern": "^projects/[^/]+/tenants/[^/]+/oauthIdpConfigs/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v2/{+name}", + // "response": { + // "$ref": "GoogleProtobufEmpty" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/firebase" + // ] + // } + +} + +// method id "identitytoolkit.projects.tenants.oauthIdpConfigs.get": + +type ProjectsTenantsOauthIdpConfigsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Retrieve an Oidc Idp configuration for an Identity Toolkit +// project. +// +// - name: The resource name of the config, for example: +// 'projects/my-awesome-project/oauthIdpConfigs/oauth-config-id'. +func (r *ProjectsTenantsOauthIdpConfigsService) Get(name string) *ProjectsTenantsOauthIdpConfigsGetCall { + c := &ProjectsTenantsOauthIdpConfigsGetCall{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 *ProjectsTenantsOauthIdpConfigsGetCall) Fields(s ...googleapi.Field) *ProjectsTenantsOauthIdpConfigsGetCall { + 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 *ProjectsTenantsOauthIdpConfigsGetCall) IfNoneMatch(entityTag string) *ProjectsTenantsOauthIdpConfigsGetCall { + 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 *ProjectsTenantsOauthIdpConfigsGetCall) Context(ctx context.Context) *ProjectsTenantsOauthIdpConfigsGetCall { + 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 *ProjectsTenantsOauthIdpConfigsGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsTenantsOauthIdpConfigsGetCall) 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, "v2/{+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 "identitytoolkit.projects.tenants.oauthIdpConfigs.get" call. +// Exactly one of *GoogleCloudIdentitytoolkitAdminV2OAuthIdpConfig or +// error will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudIdentitytoolkitAdminV2OAuthIdpConfig.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 *ProjectsTenantsOauthIdpConfigsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIdentitytoolkitAdminV2OAuthIdpConfig, 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, &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, err + } + ret := &GoogleCloudIdentitytoolkitAdminV2OAuthIdpConfig{ + 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": "Retrieve an Oidc Idp configuration for an Identity Toolkit project.", + // "flatPath": "v2/projects/{projectsId}/tenants/{tenantsId}/oauthIdpConfigs/{oauthIdpConfigsId}", + // "httpMethod": "GET", + // "id": "identitytoolkit.projects.tenants.oauthIdpConfigs.get", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "The resource name of the config, for example: 'projects/my-awesome-project/oauthIdpConfigs/oauth-config-id'.", + // "location": "path", + // "pattern": "^projects/[^/]+/tenants/[^/]+/oauthIdpConfigs/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v2/{+name}", + // "response": { + // "$ref": "GoogleCloudIdentitytoolkitAdminV2OAuthIdpConfig" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/firebase" + // ] + // } + +} + +// method id "identitytoolkit.projects.tenants.oauthIdpConfigs.list": + +type ProjectsTenantsOauthIdpConfigsListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: List all Oidc Idp configurations for an Identity Toolkit +// project. +// +// - parent: The parent resource name, for example, +// "projects/my-awesome-project". +func (r *ProjectsTenantsOauthIdpConfigsService) List(parent string) *ProjectsTenantsOauthIdpConfigsListCall { + c := &ProjectsTenantsOauthIdpConfigsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// PageSize sets the optional parameter "pageSize": The maximum number +// of items to return. +func (c *ProjectsTenantsOauthIdpConfigsListCall) PageSize(pageSize int64) *ProjectsTenantsOauthIdpConfigsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": The +// next_page_token value returned from a previous List request, if any. +func (c *ProjectsTenantsOauthIdpConfigsListCall) PageToken(pageToken string) *ProjectsTenantsOauthIdpConfigsListCall { + 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 *ProjectsTenantsOauthIdpConfigsListCall) Fields(s ...googleapi.Field) *ProjectsTenantsOauthIdpConfigsListCall { + 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 *ProjectsTenantsOauthIdpConfigsListCall) IfNoneMatch(entityTag string) *ProjectsTenantsOauthIdpConfigsListCall { + 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 *ProjectsTenantsOauthIdpConfigsListCall) Context(ctx context.Context) *ProjectsTenantsOauthIdpConfigsListCall { + 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 *ProjectsTenantsOauthIdpConfigsListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsTenantsOauthIdpConfigsListCall) 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, "v2/{+parent}/oauthIdpConfigs") + 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 "identitytoolkit.projects.tenants.oauthIdpConfigs.list" call. +// Exactly one of +// *GoogleCloudIdentitytoolkitAdminV2ListOAuthIdpConfigsResponse or +// error will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudIdentitytoolkitAdminV2ListOAuthIdpConfigsResponse.ServerRe +// sponse.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 *ProjectsTenantsOauthIdpConfigsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIdentitytoolkitAdminV2ListOAuthIdpConfigsResponse, 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, &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, err + } + ret := &GoogleCloudIdentitytoolkitAdminV2ListOAuthIdpConfigsResponse{ + 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": "List all Oidc Idp configurations for an Identity Toolkit project.", + // "flatPath": "v2/projects/{projectsId}/tenants/{tenantsId}/oauthIdpConfigs", + // "httpMethod": "GET", + // "id": "identitytoolkit.projects.tenants.oauthIdpConfigs.list", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "pageSize": { + // "description": "The maximum number of items to return.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "The next_page_token value returned from a previous List request, if any.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "The parent resource name, for example, \"projects/my-awesome-project\".", + // "location": "path", + // "pattern": "^projects/[^/]+/tenants/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v2/{+parent}/oauthIdpConfigs", + // "response": { + // "$ref": "GoogleCloudIdentitytoolkitAdminV2ListOAuthIdpConfigsResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/firebase" + // ] + // } + +} + +// 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 *ProjectsTenantsOauthIdpConfigsListCall) Pages(ctx context.Context, f func(*GoogleCloudIdentitytoolkitAdminV2ListOAuthIdpConfigsResponse) 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 "identitytoolkit.projects.tenants.oauthIdpConfigs.patch": + +type ProjectsTenantsOauthIdpConfigsPatchCall struct { + s *Service + name string + googlecloudidentitytoolkitadminv2oauthidpconfig *GoogleCloudIdentitytoolkitAdminV2OAuthIdpConfig + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Patch: Update an Oidc Idp configuration for an Identity Toolkit +// project. +// +// - name: The name of the OAuthIdpConfig resource, for example: +// 'projects/my-awesome-project/oauthIdpConfigs/oauth-config-id'. +// Ignored during create requests. +func (r *ProjectsTenantsOauthIdpConfigsService) Patch(name string, googlecloudidentitytoolkitadminv2oauthidpconfig *GoogleCloudIdentitytoolkitAdminV2OAuthIdpConfig) *ProjectsTenantsOauthIdpConfigsPatchCall { + c := &ProjectsTenantsOauthIdpConfigsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.googlecloudidentitytoolkitadminv2oauthidpconfig = googlecloudidentitytoolkitadminv2oauthidpconfig + return c +} + +// UpdateMask sets the optional parameter "updateMask": The update mask +// applies to the resource. Empty update mask will result in updating +// nothing. For the `FieldMask` definition, see +// https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask +func (c *ProjectsTenantsOauthIdpConfigsPatchCall) UpdateMask(updateMask string) *ProjectsTenantsOauthIdpConfigsPatchCall { + 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 *ProjectsTenantsOauthIdpConfigsPatchCall) Fields(s ...googleapi.Field) *ProjectsTenantsOauthIdpConfigsPatchCall { + 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 *ProjectsTenantsOauthIdpConfigsPatchCall) Context(ctx context.Context) *ProjectsTenantsOauthIdpConfigsPatchCall { + 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 *ProjectsTenantsOauthIdpConfigsPatchCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsTenantsOauthIdpConfigsPatchCall) 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.googlecloudidentitytoolkitadminv2oauthidpconfig) + 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, "v2/{+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 "identitytoolkit.projects.tenants.oauthIdpConfigs.patch" call. +// Exactly one of *GoogleCloudIdentitytoolkitAdminV2OAuthIdpConfig or +// error will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudIdentitytoolkitAdminV2OAuthIdpConfig.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 *ProjectsTenantsOauthIdpConfigsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIdentitytoolkitAdminV2OAuthIdpConfig, 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, &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, err + } + ret := &GoogleCloudIdentitytoolkitAdminV2OAuthIdpConfig{ + 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": "Update an Oidc Idp configuration for an Identity Toolkit project.", + // "flatPath": "v2/projects/{projectsId}/tenants/{tenantsId}/oauthIdpConfigs/{oauthIdpConfigsId}", + // "httpMethod": "PATCH", + // "id": "identitytoolkit.projects.tenants.oauthIdpConfigs.patch", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "The name of the OAuthIdpConfig resource, for example: 'projects/my-awesome-project/oauthIdpConfigs/oauth-config-id'. Ignored during create requests.", + // "location": "path", + // "pattern": "^projects/[^/]+/tenants/[^/]+/oauthIdpConfigs/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "updateMask": { + // "description": "The update mask applies to the resource. Empty update mask will result in updating nothing. For the `FieldMask` definition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask", + // "format": "google-fieldmask", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v2/{+name}", + // "request": { + // "$ref": "GoogleCloudIdentitytoolkitAdminV2OAuthIdpConfig" + // }, + // "response": { + // "$ref": "GoogleCloudIdentitytoolkitAdminV2OAuthIdpConfig" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/firebase" + // ] + // } + +} diff --git a/mybusinessverifications/v1/mybusinessverifications-api.json b/mybusinessverifications/v1/mybusinessverifications-api.json index 37af0d00a55..dd3b282373c 100644 --- a/mybusinessverifications/v1/mybusinessverifications-api.json +++ b/mybusinessverifications/v1/mybusinessverifications-api.json @@ -256,7 +256,7 @@ } } }, - "revision": "20220625", + "revision": "20220815", "rootUrl": "https://mybusinessverifications.googleapis.com/", "schemas": { "AddressVerificationData": { @@ -376,7 +376,7 @@ "properties": { "location": { "$ref": "Location", - "description": "Required. The target location." + "description": "Required. The target location. Note: The location information should exactly match the target Location, otherwise the generated verification token won't be able to verify the target Location." } }, "type": "object" diff --git a/mybusinessverifications/v1/mybusinessverifications-gen.go b/mybusinessverifications/v1/mybusinessverifications-gen.go index 6bf02a088ae..4fa320a5af8 100644 --- a/mybusinessverifications/v1/mybusinessverifications-gen.go +++ b/mybusinessverifications/v1/mybusinessverifications-gen.go @@ -409,7 +409,10 @@ func (s *FetchVerificationOptionsResponse) MarshalJSON() ([]byte, error) { // GenerateVerificationTokenRequest: Request message for // Verifications.GenerateVerificationToken. type GenerateVerificationTokenRequest struct { - // Location: Required. The target location. + // Location: Required. The target location. Note: The location + // information should exactly match the target Location, otherwise the + // generated verification token won't be able to verify the target + // Location. Location *Location `json:"location,omitempty"` // ForceSendFields is a list of field names (e.g. "Location") to diff --git a/orgpolicy/v2/orgpolicy-api.json b/orgpolicy/v2/orgpolicy-api.json index 7ed994f55ad..dc094ae814f 100644 --- a/orgpolicy/v2/orgpolicy-api.json +++ b/orgpolicy/v2/orgpolicy-api.json @@ -362,6 +362,152 @@ } } }, + "customConstraints": { + "methods": { + "create": { + "description": "Creates a CustomConstraint. Returns a `google.rpc.Status` with `google.rpc.Code.NOT_FOUND` if the organization does not exist. Returns a `google.rpc.Status` with `google.rpc.Code.ALREADY_EXISTS` if the constraint already exists on the given organization.", + "flatPath": "v2/organizations/{organizationsId}/customConstraints", + "httpMethod": "POST", + "id": "orgpolicy.organizations.customConstraints.create", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "Required. Must be in the following form: * `organizations/{organization_id}`", + "location": "path", + "pattern": "^organizations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v2/{+parent}/customConstraints", + "request": { + "$ref": "GoogleCloudOrgpolicyV2CustomConstraint" + }, + "response": { + "$ref": "GoogleCloudOrgpolicyV2CustomConstraint" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "delete": { + "description": "Deletes a Custom Constraint. Returns a `google.rpc.Status` with `google.rpc.Code.NOT_FOUND` if the constraint does not exist.", + "flatPath": "v2/organizations/{organizationsId}/customConstraints/{customConstraintsId}", + "httpMethod": "DELETE", + "id": "orgpolicy.organizations.customConstraints.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. Name of the custom constraint to delete. See `CustomConstraint` for naming rules.", + "location": "path", + "pattern": "^organizations/[^/]+/customConstraints/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v2/{+name}", + "response": { + "$ref": "GoogleProtobufEmpty" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "get": { + "description": "Gets a CustomConstraint. Returns a `google.rpc.Status` with `google.rpc.Code.NOT_FOUND` if the CustomConstraint does not exist.", + "flatPath": "v2/organizations/{organizationsId}/customConstraints/{customConstraintsId}", + "httpMethod": "GET", + "id": "orgpolicy.organizations.customConstraints.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. Resource name of the custom constraint. See `CustomConstraint` for naming requirements.", + "location": "path", + "pattern": "^organizations/[^/]+/customConstraints/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v2/{+name}", + "response": { + "$ref": "GoogleCloudOrgpolicyV2CustomConstraint" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Retrieves all of the `CustomConstraints` that exist on a particular organization resource.", + "flatPath": "v2/organizations/{organizationsId}/customConstraints", + "httpMethod": "GET", + "id": "orgpolicy.organizations.customConstraints.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "pageSize": { + "description": "Size of the pages to be returned. This is currently unsupported and will be ignored. The server may at any point start using this field to limit page size.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "Page token used to retrieve the next page. This is currently unsupported and will be ignored. The server may at any point start using this field.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The target Cloud resource that parents the set of custom constraints that will be returned from this call. Must be in one of the following forms: * `organizations/{organization_id}`", + "location": "path", + "pattern": "^organizations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v2/{+parent}/customConstraints", + "response": { + "$ref": "GoogleCloudOrgpolicyV2ListCustomConstraintsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "patch": { + "description": "Updates a Custom Constraint. Returns a `google.rpc.Status` with `google.rpc.Code.NOT_FOUND` if the constraint does not exist. Note: the supplied policy will perform a full overwrite of all fields.", + "flatPath": "v2/organizations/{organizationsId}/customConstraints/{customConstraintsId}", + "httpMethod": "PATCH", + "id": "orgpolicy.organizations.customConstraints.patch", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Immutable. Name of the constraint. This is unique within the organization. Format of the name should be * `organizations/{organization_id}/customConstraints/{custom_constraint_id}` Example : \"organizations/123/customConstraints/custom.createOnlyE2TypeVms\"", + "location": "path", + "pattern": "^organizations/[^/]+/customConstraints/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v2/{+name}", + "request": { + "$ref": "GoogleCloudOrgpolicyV2CustomConstraint" + }, + "response": { + "$ref": "GoogleCloudOrgpolicyV2CustomConstraint" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + }, "policies": { "methods": { "create": { @@ -751,7 +897,7 @@ } } }, - "revision": "20220321", + "revision": "20220812", "rootUrl": "https://orgpolicy.googleapis.com/", "schemas": { "GoogleCloudOrgpolicyV2AlternatePolicySpec": { @@ -831,6 +977,69 @@ }, "type": "object" }, + "GoogleCloudOrgpolicyV2CustomConstraint": { + "description": "A custom constraint defined by customers which can *only* be applied to the given resource types and organization. By creating a custom constraint, customers can applied policies of this custom constraint. *Creating a custom constraint itself does NOT apply any policy enforcement*.", + "id": "GoogleCloudOrgpolicyV2CustomConstraint", + "properties": { + "actionType": { + "description": "Allow or deny type.", + "enum": [ + "ACTION_TYPE_UNSPECIFIED", + "ALLOW", + "DENY" + ], + "enumDescriptions": [ + "Unspecified. Will results in user error.", + "Allowed action type.", + "Deny action type." + ], + "type": "string" + }, + "condition": { + "description": "Org policy condition/expression. For example: `resource.instanceName.matches(\"[production|test]_.*_(\\d)+\")'` or, `resource.management.auto_upgrade == true`", + "type": "string" + }, + "description": { + "description": "Detailed information about this custom policy constraint.", + "type": "string" + }, + "displayName": { + "description": "One line display name for the UI.", + "type": "string" + }, + "methodTypes": { + "description": "All the operations being applied for this constraint.", + "items": { + "enum": [ + "METHOD_TYPE_UNSPECIFIED", + "CREATE", + "UPDATE", + "DELETE" + ], + "enumDescriptions": [ + "Unspecified. Will results in user error.", + "Constraint applied when creating the resource.", + "Constraint applied when updating the resource.", + "Constraint applied when deleting the resource." + ], + "type": "string" + }, + "type": "array" + }, + "name": { + "description": "Immutable. Name of the constraint. This is unique within the organization. Format of the name should be * `organizations/{organization_id}/customConstraints/{custom_constraint_id}` Example : \"organizations/123/customConstraints/custom.createOnlyE2TypeVms\"", + "type": "string" + }, + "resourceTypes": { + "description": "Immutable. The Resource Instance type on which this policy applies to. Format will be of the form : \"/\" Example: * `compute.googleapis.com/Instance`.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, "GoogleCloudOrgpolicyV2ListConstraintsResponse": { "description": "The response returned from the ListConstraints method.", "id": "GoogleCloudOrgpolicyV2ListConstraintsResponse", @@ -849,6 +1058,24 @@ }, "type": "object" }, + "GoogleCloudOrgpolicyV2ListCustomConstraintsResponse": { + "description": "The response returned from the ListCustomConstraints method. It will be empty if no `CustomConstraints` are set on the organization resource.", + "id": "GoogleCloudOrgpolicyV2ListCustomConstraintsResponse", + "properties": { + "customConstraints": { + "description": "All `CustomConstraints` that exist on the organization resource. It will be empty if no `CustomConstraints` are set.", + "items": { + "$ref": "GoogleCloudOrgpolicyV2CustomConstraint" + }, + "type": "array" + }, + "nextPageToken": { + "description": "Page token used to retrieve the next page. This is currently not used, but the server may at any point start supplying a valid token.", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudOrgpolicyV2ListPoliciesResponse": { "description": "The response returned from the ListPolicies method. It will be empty if no `Policies` are set on the resource.", "id": "GoogleCloudOrgpolicyV2ListPoliciesResponse", diff --git a/orgpolicy/v2/orgpolicy-gen.go b/orgpolicy/v2/orgpolicy-gen.go index a26baf60793..bc33cde7126 100644 --- a/orgpolicy/v2/orgpolicy-gen.go +++ b/orgpolicy/v2/orgpolicy-gen.go @@ -179,6 +179,7 @@ type FoldersPoliciesService struct { func NewOrganizationsService(s *Service) *OrganizationsService { rs := &OrganizationsService{s: s} rs.Constraints = NewOrganizationsConstraintsService(s) + rs.CustomConstraints = NewOrganizationsCustomConstraintsService(s) rs.Policies = NewOrganizationsPoliciesService(s) return rs } @@ -188,6 +189,8 @@ type OrganizationsService struct { Constraints *OrganizationsConstraintsService + CustomConstraints *OrganizationsCustomConstraintsService + Policies *OrganizationsPoliciesService } @@ -200,6 +203,15 @@ type OrganizationsConstraintsService struct { s *Service } +func NewOrganizationsCustomConstraintsService(s *Service) *OrganizationsCustomConstraintsService { + rs := &OrganizationsCustomConstraintsService{s: s} + return rs +} + +type OrganizationsCustomConstraintsService struct { + s *Service +} + func NewOrganizationsPoliciesService(s *Service) *OrganizationsPoliciesService { rs := &OrganizationsPoliciesService{s: s} return rs @@ -398,6 +410,82 @@ func (s *GoogleCloudOrgpolicyV2ConstraintListConstraint) MarshalJSON() ([]byte, return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudOrgpolicyV2CustomConstraint: A custom constraint defined +// by customers which can *only* be applied to the given resource types +// and organization. By creating a custom constraint, customers can +// applied policies of this custom constraint. *Creating a custom +// constraint itself does NOT apply any policy enforcement*. +type GoogleCloudOrgpolicyV2CustomConstraint struct { + // ActionType: Allow or deny type. + // + // Possible values: + // "ACTION_TYPE_UNSPECIFIED" - Unspecified. Will results in user + // error. + // "ALLOW" - Allowed action type. + // "DENY" - Deny action type. + ActionType string `json:"actionType,omitempty"` + + // Condition: Org policy condition/expression. For example: + // `resource.instanceName.matches("[production|test]_.*_(\d)+")'` or, + // `resource.management.auto_upgrade == true` + Condition string `json:"condition,omitempty"` + + // Description: Detailed information about this custom policy + // constraint. + Description string `json:"description,omitempty"` + + // DisplayName: One line display name for the UI. + DisplayName string `json:"displayName,omitempty"` + + // MethodTypes: All the operations being applied for this constraint. + // + // Possible values: + // "METHOD_TYPE_UNSPECIFIED" - Unspecified. Will results in user + // error. + // "CREATE" - Constraint applied when creating the resource. + // "UPDATE" - Constraint applied when updating the resource. + // "DELETE" - Constraint applied when deleting the resource. + MethodTypes []string `json:"methodTypes,omitempty"` + + // Name: Immutable. Name of the constraint. This is unique within the + // organization. Format of the name should be * + // `organizations/{organization_id}/customConstraints/{custom_constraint_ + // id}` Example : + // "organizations/123/customConstraints/custom.createOnlyE2TypeVms" + Name string `json:"name,omitempty"` + + // ResourceTypes: Immutable. The Resource Instance type on which this + // policy applies to. Format will be of the form : "/" Example: * + // `compute.googleapis.com/Instance`. + ResourceTypes []string `json:"resourceTypes,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "ActionType") 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. "ActionType") 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 *GoogleCloudOrgpolicyV2CustomConstraint) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudOrgpolicyV2CustomConstraint + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudOrgpolicyV2ListConstraintsResponse: The response returned // from the ListConstraints method. type GoogleCloudOrgpolicyV2ListConstraintsResponse struct { @@ -436,6 +524,48 @@ func (s *GoogleCloudOrgpolicyV2ListConstraintsResponse) MarshalJSON() ([]byte, e return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudOrgpolicyV2ListCustomConstraintsResponse: The response +// returned from the ListCustomConstraints method. It will be empty if +// no `CustomConstraints` are set on the organization resource. +type GoogleCloudOrgpolicyV2ListCustomConstraintsResponse struct { + // CustomConstraints: All `CustomConstraints` that exist on the + // organization resource. It will be empty if no `CustomConstraints` are + // set. + CustomConstraints []*GoogleCloudOrgpolicyV2CustomConstraint `json:"customConstraints,omitempty"` + + // NextPageToken: Page token used to retrieve the next page. This is + // currently not used, but the server may at any point start supplying a + // valid 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. "CustomConstraints") + // 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. "CustomConstraints") 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 *GoogleCloudOrgpolicyV2ListCustomConstraintsResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudOrgpolicyV2ListCustomConstraintsResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudOrgpolicyV2ListPoliciesResponse: The response returned // from the ListPolicies method. It will be empty if no `Policies` are // set on the resource. @@ -2100,6 +2230,785 @@ func (c *OrganizationsConstraintsListCall) Pages(ctx context.Context, f func(*Go } } +// method id "orgpolicy.organizations.customConstraints.create": + +type OrganizationsCustomConstraintsCreateCall struct { + s *Service + parent string + googlecloudorgpolicyv2customconstraint *GoogleCloudOrgpolicyV2CustomConstraint + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Create: Creates a CustomConstraint. Returns a `google.rpc.Status` +// with `google.rpc.Code.NOT_FOUND` if the organization does not exist. +// Returns a `google.rpc.Status` with `google.rpc.Code.ALREADY_EXISTS` +// if the constraint already exists on the given organization. +// +// - parent: Must be in the following form: * +// `organizations/{organization_id}`. +func (r *OrganizationsCustomConstraintsService) Create(parent string, googlecloudorgpolicyv2customconstraint *GoogleCloudOrgpolicyV2CustomConstraint) *OrganizationsCustomConstraintsCreateCall { + c := &OrganizationsCustomConstraintsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.googlecloudorgpolicyv2customconstraint = googlecloudorgpolicyv2customconstraint + 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 *OrganizationsCustomConstraintsCreateCall) Fields(s ...googleapi.Field) *OrganizationsCustomConstraintsCreateCall { + 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 *OrganizationsCustomConstraintsCreateCall) Context(ctx context.Context) *OrganizationsCustomConstraintsCreateCall { + 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 *OrganizationsCustomConstraintsCreateCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *OrganizationsCustomConstraintsCreateCall) 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.googlecloudorgpolicyv2customconstraint) + 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, "v2/{+parent}/customConstraints") + 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 "orgpolicy.organizations.customConstraints.create" call. +// Exactly one of *GoogleCloudOrgpolicyV2CustomConstraint or error will +// be non-nil. Any non-2xx status code is an error. Response headers are +// in either +// *GoogleCloudOrgpolicyV2CustomConstraint.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 *OrganizationsCustomConstraintsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudOrgpolicyV2CustomConstraint, 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, &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, err + } + ret := &GoogleCloudOrgpolicyV2CustomConstraint{ + 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 CustomConstraint. Returns a `google.rpc.Status` with `google.rpc.Code.NOT_FOUND` if the organization does not exist. Returns a `google.rpc.Status` with `google.rpc.Code.ALREADY_EXISTS` if the constraint already exists on the given organization.", + // "flatPath": "v2/organizations/{organizationsId}/customConstraints", + // "httpMethod": "POST", + // "id": "orgpolicy.organizations.customConstraints.create", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "parent": { + // "description": "Required. Must be in the following form: * `organizations/{organization_id}`", + // "location": "path", + // "pattern": "^organizations/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v2/{+parent}/customConstraints", + // "request": { + // "$ref": "GoogleCloudOrgpolicyV2CustomConstraint" + // }, + // "response": { + // "$ref": "GoogleCloudOrgpolicyV2CustomConstraint" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "orgpolicy.organizations.customConstraints.delete": + +type OrganizationsCustomConstraintsDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Delete: Deletes a Custom Constraint. Returns a `google.rpc.Status` +// with `google.rpc.Code.NOT_FOUND` if the constraint does not exist. +// +// - name: Name of the custom constraint to delete. See +// `CustomConstraint` for naming rules. +func (r *OrganizationsCustomConstraintsService) Delete(name string) *OrganizationsCustomConstraintsDeleteCall { + c := &OrganizationsCustomConstraintsDeleteCall{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 *OrganizationsCustomConstraintsDeleteCall) Fields(s ...googleapi.Field) *OrganizationsCustomConstraintsDeleteCall { + 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 *OrganizationsCustomConstraintsDeleteCall) Context(ctx context.Context) *OrganizationsCustomConstraintsDeleteCall { + 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 *OrganizationsCustomConstraintsDeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *OrganizationsCustomConstraintsDeleteCall) 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, "v2/{+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 "orgpolicy.organizations.customConstraints.delete" call. +// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *GoogleProtobufEmpty.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 *OrganizationsCustomConstraintsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, 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, &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, err + } + ret := &GoogleProtobufEmpty{ + 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 Custom Constraint. Returns a `google.rpc.Status` with `google.rpc.Code.NOT_FOUND` if the constraint does not exist.", + // "flatPath": "v2/organizations/{organizationsId}/customConstraints/{customConstraintsId}", + // "httpMethod": "DELETE", + // "id": "orgpolicy.organizations.customConstraints.delete", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. Name of the custom constraint to delete. See `CustomConstraint` for naming rules.", + // "location": "path", + // "pattern": "^organizations/[^/]+/customConstraints/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v2/{+name}", + // "response": { + // "$ref": "GoogleProtobufEmpty" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "orgpolicy.organizations.customConstraints.get": + +type OrganizationsCustomConstraintsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Gets a CustomConstraint. Returns a `google.rpc.Status` with +// `google.rpc.Code.NOT_FOUND` if the CustomConstraint does not exist. +// +// - name: Resource name of the custom constraint. See +// `CustomConstraint` for naming requirements. +func (r *OrganizationsCustomConstraintsService) Get(name string) *OrganizationsCustomConstraintsGetCall { + c := &OrganizationsCustomConstraintsGetCall{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 *OrganizationsCustomConstraintsGetCall) Fields(s ...googleapi.Field) *OrganizationsCustomConstraintsGetCall { + 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 *OrganizationsCustomConstraintsGetCall) IfNoneMatch(entityTag string) *OrganizationsCustomConstraintsGetCall { + 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 *OrganizationsCustomConstraintsGetCall) Context(ctx context.Context) *OrganizationsCustomConstraintsGetCall { + 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 *OrganizationsCustomConstraintsGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *OrganizationsCustomConstraintsGetCall) 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, "v2/{+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 "orgpolicy.organizations.customConstraints.get" call. +// Exactly one of *GoogleCloudOrgpolicyV2CustomConstraint or error will +// be non-nil. Any non-2xx status code is an error. Response headers are +// in either +// *GoogleCloudOrgpolicyV2CustomConstraint.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 *OrganizationsCustomConstraintsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudOrgpolicyV2CustomConstraint, 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, &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, err + } + ret := &GoogleCloudOrgpolicyV2CustomConstraint{ + 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 a CustomConstraint. Returns a `google.rpc.Status` with `google.rpc.Code.NOT_FOUND` if the CustomConstraint does not exist.", + // "flatPath": "v2/organizations/{organizationsId}/customConstraints/{customConstraintsId}", + // "httpMethod": "GET", + // "id": "orgpolicy.organizations.customConstraints.get", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. Resource name of the custom constraint. See `CustomConstraint` for naming requirements.", + // "location": "path", + // "pattern": "^organizations/[^/]+/customConstraints/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v2/{+name}", + // "response": { + // "$ref": "GoogleCloudOrgpolicyV2CustomConstraint" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "orgpolicy.organizations.customConstraints.list": + +type OrganizationsCustomConstraintsListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Retrieves all of the `CustomConstraints` that exist on a +// particular organization resource. +// +// - parent: The target Cloud resource that parents the set of custom +// constraints that will be returned from this call. Must be in one of +// the following forms: * `organizations/{organization_id}`. +func (r *OrganizationsCustomConstraintsService) List(parent string) *OrganizationsCustomConstraintsListCall { + c := &OrganizationsCustomConstraintsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// PageSize sets the optional parameter "pageSize": Size of the pages to +// be returned. This is currently unsupported and will be ignored. The +// server may at any point start using this field to limit page size. +func (c *OrganizationsCustomConstraintsListCall) PageSize(pageSize int64) *OrganizationsCustomConstraintsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": Page token used to +// retrieve the next page. This is currently unsupported and will be +// ignored. The server may at any point start using this field. +func (c *OrganizationsCustomConstraintsListCall) PageToken(pageToken string) *OrganizationsCustomConstraintsListCall { + 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 *OrganizationsCustomConstraintsListCall) Fields(s ...googleapi.Field) *OrganizationsCustomConstraintsListCall { + 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 *OrganizationsCustomConstraintsListCall) IfNoneMatch(entityTag string) *OrganizationsCustomConstraintsListCall { + 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 *OrganizationsCustomConstraintsListCall) Context(ctx context.Context) *OrganizationsCustomConstraintsListCall { + 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 *OrganizationsCustomConstraintsListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *OrganizationsCustomConstraintsListCall) 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, "v2/{+parent}/customConstraints") + 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 "orgpolicy.organizations.customConstraints.list" call. +// Exactly one of *GoogleCloudOrgpolicyV2ListCustomConstraintsResponse +// or error will be non-nil. Any non-2xx status code is an error. +// Response headers are in either +// *GoogleCloudOrgpolicyV2ListCustomConstraintsResponse.ServerResponse.He +// ader 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 *OrganizationsCustomConstraintsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudOrgpolicyV2ListCustomConstraintsResponse, 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, &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, err + } + ret := &GoogleCloudOrgpolicyV2ListCustomConstraintsResponse{ + 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": "Retrieves all of the `CustomConstraints` that exist on a particular organization resource.", + // "flatPath": "v2/organizations/{organizationsId}/customConstraints", + // "httpMethod": "GET", + // "id": "orgpolicy.organizations.customConstraints.list", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "pageSize": { + // "description": "Size of the pages to be returned. This is currently unsupported and will be ignored. The server may at any point start using this field to limit page size.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "Page token used to retrieve the next page. This is currently unsupported and will be ignored. The server may at any point start using this field.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "Required. The target Cloud resource that parents the set of custom constraints that will be returned from this call. Must be in one of the following forms: * `organizations/{organization_id}`", + // "location": "path", + // "pattern": "^organizations/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v2/{+parent}/customConstraints", + // "response": { + // "$ref": "GoogleCloudOrgpolicyV2ListCustomConstraintsResponse" + // }, + // "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 *OrganizationsCustomConstraintsListCall) Pages(ctx context.Context, f func(*GoogleCloudOrgpolicyV2ListCustomConstraintsResponse) 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 "orgpolicy.organizations.customConstraints.patch": + +type OrganizationsCustomConstraintsPatchCall struct { + s *Service + name string + googlecloudorgpolicyv2customconstraint *GoogleCloudOrgpolicyV2CustomConstraint + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Patch: Updates a Custom Constraint. Returns a `google.rpc.Status` +// with `google.rpc.Code.NOT_FOUND` if the constraint does not exist. +// Note: the supplied policy will perform a full overwrite of all +// fields. +// +// - name: Immutable. Name of the constraint. This is unique within the +// organization. Format of the name should be * +// `organizations/{organization_id}/customConstraints/{custom_constrain +// t_id}` Example : +// "organizations/123/customConstraints/custom.createOnlyE2TypeVms". +func (r *OrganizationsCustomConstraintsService) Patch(name string, googlecloudorgpolicyv2customconstraint *GoogleCloudOrgpolicyV2CustomConstraint) *OrganizationsCustomConstraintsPatchCall { + c := &OrganizationsCustomConstraintsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.googlecloudorgpolicyv2customconstraint = googlecloudorgpolicyv2customconstraint + 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 *OrganizationsCustomConstraintsPatchCall) Fields(s ...googleapi.Field) *OrganizationsCustomConstraintsPatchCall { + 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 *OrganizationsCustomConstraintsPatchCall) Context(ctx context.Context) *OrganizationsCustomConstraintsPatchCall { + 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 *OrganizationsCustomConstraintsPatchCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *OrganizationsCustomConstraintsPatchCall) 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.googlecloudorgpolicyv2customconstraint) + 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, "v2/{+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 "orgpolicy.organizations.customConstraints.patch" call. +// Exactly one of *GoogleCloudOrgpolicyV2CustomConstraint or error will +// be non-nil. Any non-2xx status code is an error. Response headers are +// in either +// *GoogleCloudOrgpolicyV2CustomConstraint.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 *OrganizationsCustomConstraintsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudOrgpolicyV2CustomConstraint, 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, &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, err + } + ret := &GoogleCloudOrgpolicyV2CustomConstraint{ + 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 Custom Constraint. Returns a `google.rpc.Status` with `google.rpc.Code.NOT_FOUND` if the constraint does not exist. Note: the supplied policy will perform a full overwrite of all fields.", + // "flatPath": "v2/organizations/{organizationsId}/customConstraints/{customConstraintsId}", + // "httpMethod": "PATCH", + // "id": "orgpolicy.organizations.customConstraints.patch", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Immutable. Name of the constraint. This is unique within the organization. Format of the name should be * `organizations/{organization_id}/customConstraints/{custom_constraint_id}` Example : \"organizations/123/customConstraints/custom.createOnlyE2TypeVms\"", + // "location": "path", + // "pattern": "^organizations/[^/]+/customConstraints/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v2/{+name}", + // "request": { + // "$ref": "GoogleCloudOrgpolicyV2CustomConstraint" + // }, + // "response": { + // "$ref": "GoogleCloudOrgpolicyV2CustomConstraint" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + // method id "orgpolicy.organizations.policies.create": type OrganizationsPoliciesCreateCall struct { diff --git a/recaptchaenterprise/v1/recaptchaenterprise-api.json b/recaptchaenterprise/v1/recaptchaenterprise-api.json index f3f1770ac32..f1000aa699b 100644 --- a/recaptchaenterprise/v1/recaptchaenterprise-api.json +++ b/recaptchaenterprise/v1/recaptchaenterprise-api.json @@ -514,7 +514,7 @@ } } }, - "revision": "20220730", + "revision": "20220812", "rootUrl": "https://recaptchaenterprise.googleapis.com/", "schemas": { "GoogleCloudRecaptchaenterpriseV1AccountDefenderAssessment": { @@ -600,6 +600,8 @@ "CHARGEBACK_DISPUTE", "REFUND", "REFUND_FRAUD", + "TRANSACTION_ACCEPTED", + "TRANSACTION_DECLINED", "PAYMENT_HEURISTICS", "INITIATED_TWO_FACTOR", "PASSED_TWO_FACTOR", @@ -609,11 +611,13 @@ ], "enumDescriptions": [ "Default unspecified reason.", - "Indicates a chargeback issued for a transaction with no other details. When possible, specify the type by using CHARGEBACK_FRAUD or CHARGEBACK_DISPUTE instead.", - "Indicates a chargeback related to an alleged unauthorized transaction from the cardholder's perspective (for example, the card number was stolen).", - "Indicates a chargeback related to the cardholder having provided their card details but allegedly not being satisfied with the purchase (for example, misrepresentation, attempted cancellation).", - "Indicates a refund of the complete payment by the seller.", - "Indicates that a complete payment transaction was determined to be fraudulent by the seller, and was cancelled and refunded as a result.", + "Indicates that the transaction had a chargeback issued with no other details. When possible, specify the type by using CHARGEBACK_FRAUD or CHARGEBACK_DISPUTE instead.", + "Indicates that the transaction had a chargeback issued related to an alleged unauthorized transaction from the cardholder's perspective (for example, the card number was stolen).", + "Indicates that the transaction had a chargeback issued related to the cardholder having provided their card details but allegedly not being satisfied with the purchase (for example, misrepresentation, attempted cancellation).", + "Indicates that the completed payment transaction was refunded by the seller.", + "Indicates that the completed payment transaction was determined to be fraudulent by the seller, and was cancelled and refunded as a result.", + "Indicates that the payment transaction was accepted, and the user was charged.", + "Indicates that the payment transaction was declined, for example due to invalid card details.", "Indicates the transaction associated with the assessment is suspected of being fraudulent based on the payment method, billing details, shipping address or other transaction information.", "Indicates that the user was served a 2FA challenge. An old assessment with `ENUM_VALUES.INITIATED_TWO_FACTOR` reason that has not been overwritten with `PASSED_TWO_FACTOR` is treated as an abandoned 2FA flow. This is equivalent to `FAILED_TWO_FACTOR`.", "Indicates that the user passed a 2FA challenge.", diff --git a/recaptchaenterprise/v1/recaptchaenterprise-gen.go b/recaptchaenterprise/v1/recaptchaenterprise-gen.go index 04a79873125..3cd2247e3bf 100644 --- a/recaptchaenterprise/v1/recaptchaenterprise-gen.go +++ b/recaptchaenterprise/v1/recaptchaenterprise-gen.go @@ -321,21 +321,26 @@ type GoogleCloudRecaptchaenterpriseV1AnnotateAssessmentRequest struct { // // Possible values: // "REASON_UNSPECIFIED" - Default unspecified reason. - // "CHARGEBACK" - Indicates a chargeback issued for a transaction with - // no other details. When possible, specify the type by using - // CHARGEBACK_FRAUD or CHARGEBACK_DISPUTE instead. - // "CHARGEBACK_FRAUD" - Indicates a chargeback related to an alleged - // unauthorized transaction from the cardholder's perspective (for - // example, the card number was stolen). - // "CHARGEBACK_DISPUTE" - Indicates a chargeback related to the - // cardholder having provided their card details but allegedly not being - // satisfied with the purchase (for example, misrepresentation, - // attempted cancellation). - // "REFUND" - Indicates a refund of the complete payment by the - // seller. - // "REFUND_FRAUD" - Indicates that a complete payment transaction was - // determined to be fraudulent by the seller, and was cancelled and + // "CHARGEBACK" - Indicates that the transaction had a chargeback + // issued with no other details. When possible, specify the type by + // using CHARGEBACK_FRAUD or CHARGEBACK_DISPUTE instead. + // "CHARGEBACK_FRAUD" - Indicates that the transaction had a + // chargeback issued related to an alleged unauthorized transaction from + // the cardholder's perspective (for example, the card number was + // stolen). + // "CHARGEBACK_DISPUTE" - Indicates that the transaction had a + // chargeback issued related to the cardholder having provided their + // card details but allegedly not being satisfied with the purchase (for + // example, misrepresentation, attempted cancellation). + // "REFUND" - Indicates that the completed payment transaction was + // refunded by the seller. + // "REFUND_FRAUD" - Indicates that the completed payment transaction + // was determined to be fraudulent by the seller, and was cancelled and // refunded as a result. + // "TRANSACTION_ACCEPTED" - Indicates that the payment transaction was + // accepted, and the user was charged. + // "TRANSACTION_DECLINED" - Indicates that the payment transaction was + // declined, for example due to invalid card details. // "PAYMENT_HEURISTICS" - Indicates the transaction associated with // the assessment is suspected of being fraudulent based on the payment // method, billing details, shipping address or other transaction diff --git a/retail/v2/retail-api.json b/retail/v2/retail-api.json index bfc3b484a08..f7dacc0450d 100644 --- a/retail/v2/retail-api.json +++ b/retail/v2/retail-api.json @@ -505,7 +505,7 @@ "products": { "methods": { "addFulfillmentPlaces": { - "description": "Incrementally adds place IDs to Product.fulfillment_info.place_ids. This process is asynchronous and does not require the Product to exist before updating fulfillment information. If the request is valid, the update will be enqueued and processed downstream. As a consequence, when a response is returned, the added place IDs are not immediately manifested in the Product queried by ProductService.GetProduct or ProductService.ListProducts. The returned Operations will be obsolete after 1 day, and GetOperation API will return NOT_FOUND afterwards. If conflicting updates are issued, the Operations associated with the stale updates will not be marked as done until being obsolete. This feature is only available for users who have Retail Search enabled. Please enable Retail Search on Cloud Console before using this feature.", + "description": "Incrementally adds place IDs to Product.fulfillment_info.place_ids. This process is asynchronous and does not require the Product to exist before updating fulfillment information. If the request is valid, the update will be enqueued and processed downstream. As a consequence, when a response is returned, the added place IDs are not immediately manifested in the Product queried by ProductService.GetProduct or ProductService.ListProducts. This feature is only available for users who have Retail Search enabled. Please enable Retail Search on Cloud Console before using this feature.", "flatPath": "v2/projects/{projectsId}/locations/{locationsId}/catalogs/{catalogsId}/branches/{branchesId}/products/{productsId}:addFulfillmentPlaces", "httpMethod": "POST", "id": "retail.projects.locations.catalogs.branches.products.addFulfillmentPlaces", @@ -533,7 +533,7 @@ ] }, "addLocalInventories": { - "description": "Updates local inventory information for a Product at a list of places, while respecting the last update timestamps of each inventory field. This process is asynchronous and does not require the Product to exist before updating inventory information. If the request is valid, the update will be enqueued and processed downstream. As a consequence, when a response is returned, updates are not immediately manifested in the Product queried by ProductService.GetProduct or ProductService.ListProducts. Local inventory information can only be modified using this method. ProductService.CreateProduct and ProductService.UpdateProduct has no effect on local inventories. The returned Operations will be obsolete after 1 day, and GetOperation API will return NOT_FOUND afterwards. If conflicting updates are issued, the Operations associated with the stale updates will not be marked as done until being obsolete. This feature is only available for users who have Retail Search enabled. Please enable Retail Search on Cloud Console before using this feature.", + "description": "Updates local inventory information for a Product at a list of places, while respecting the last update timestamps of each inventory field. This process is asynchronous and does not require the Product to exist before updating inventory information. If the request is valid, the update will be enqueued and processed downstream. As a consequence, when a response is returned, updates are not immediately manifested in the Product queried by ProductService.GetProduct or ProductService.ListProducts. Local inventory information can only be modified using this method. ProductService.CreateProduct and ProductService.UpdateProduct has no effect on local inventories. This feature is only available for users who have Retail Search enabled. Please enable Retail Search on Cloud Console before using this feature.", "flatPath": "v2/projects/{projectsId}/locations/{locationsId}/catalogs/{catalogsId}/branches/{branchesId}/products/{productsId}:addLocalInventories", "httpMethod": "POST", "id": "retail.projects.locations.catalogs.branches.products.addLocalInventories", @@ -758,7 +758,7 @@ ] }, "removeFulfillmentPlaces": { - "description": "Incrementally removes place IDs from a Product.fulfillment_info.place_ids. This process is asynchronous and does not require the Product to exist before updating fulfillment information. If the request is valid, the update will be enqueued and processed downstream. As a consequence, when a response is returned, the removed place IDs are not immediately manifested in the Product queried by ProductService.GetProduct or ProductService.ListProducts. The returned Operations will be obsolete after 1 day, and GetOperation API will return NOT_FOUND afterwards. If conflicting updates are issued, the Operations associated with the stale updates will not be marked as done until being obsolete. This feature is only available for users who have Retail Search enabled. Please enable Retail Search on Cloud Console before using this feature.", + "description": "Incrementally removes place IDs from a Product.fulfillment_info.place_ids. This process is asynchronous and does not require the Product to exist before updating fulfillment information. If the request is valid, the update will be enqueued and processed downstream. As a consequence, when a response is returned, the removed place IDs are not immediately manifested in the Product queried by ProductService.GetProduct or ProductService.ListProducts. This feature is only available for users who have Retail Search enabled. Please enable Retail Search on Cloud Console before using this feature.", "flatPath": "v2/projects/{projectsId}/locations/{locationsId}/catalogs/{catalogsId}/branches/{branchesId}/products/{productsId}:removeFulfillmentPlaces", "httpMethod": "POST", "id": "retail.projects.locations.catalogs.branches.products.removeFulfillmentPlaces", @@ -786,7 +786,7 @@ ] }, "removeLocalInventories": { - "description": "Remove local inventory information for a Product at a list of places at a removal timestamp. This process is asynchronous. If the request is valid, the removal will be enqueued and processed downstream. As a consequence, when a response is returned, removals are not immediately manifested in the Product queried by ProductService.GetProduct or ProductService.ListProducts. Local inventory information can only be removed using this method. ProductService.CreateProduct and ProductService.UpdateProduct has no effect on local inventories. The returned Operations will be obsolete after 1 day, and GetOperation API will return NOT_FOUND afterwards. If conflicting updates are issued, the Operations associated with the stale updates will not be marked as done until being obsolete. This feature is only available for users who have Retail Search enabled. Please enable Retail Search on Cloud Console before using this feature.", + "description": "Remove local inventory information for a Product at a list of places at a removal timestamp. This process is asynchronous. If the request is valid, the removal will be enqueued and processed downstream. As a consequence, when a response is returned, removals are not immediately manifested in the Product queried by ProductService.GetProduct or ProductService.ListProducts. Local inventory information can only be removed using this method. ProductService.CreateProduct and ProductService.UpdateProduct has no effect on local inventories. This feature is only available for users who have Retail Search enabled. Please enable Retail Search on Cloud Console before using this feature.", "flatPath": "v2/projects/{projectsId}/locations/{locationsId}/catalogs/{catalogsId}/branches/{branchesId}/products/{productsId}:removeLocalInventories", "httpMethod": "POST", "id": "retail.projects.locations.catalogs.branches.products.removeLocalInventories", @@ -814,7 +814,7 @@ ] }, "setInventory": { - "description": "Updates inventory information for a Product while respecting the last update timestamps of each inventory field. This process is asynchronous and does not require the Product to exist before updating fulfillment information. If the request is valid, the update will be enqueued and processed downstream. As a consequence, when a response is returned, updates are not immediately manifested in the Product queried by ProductService.GetProduct or ProductService.ListProducts. When inventory is updated with ProductService.CreateProduct and ProductService.UpdateProduct, the specified inventory field value(s) will overwrite any existing value(s) while ignoring the last update time for this field. Furthermore, the last update time for the specified inventory fields will be overwritten to the time of the ProductService.CreateProduct or ProductService.UpdateProduct request. If no inventory fields are set in CreateProductRequest.product, then any pre-existing inventory information for this product will be used. If no inventory fields are set in SetInventoryRequest.set_mask, then any existing inventory information will be preserved. Pre-existing inventory information can only be updated with ProductService.SetInventory, ProductService.AddFulfillmentPlaces, and ProductService.RemoveFulfillmentPlaces. The returned Operations will be obsolete after 1 day, and GetOperation API will return NOT_FOUND afterwards. If conflicting updates are issued, the Operations associated with the stale updates will not be marked as done until being obsolete. This feature is only available for users who have Retail Search enabled. Please enable Retail Search on Cloud Console before using this feature.", + "description": "Updates inventory information for a Product while respecting the last update timestamps of each inventory field. This process is asynchronous and does not require the Product to exist before updating fulfillment information. If the request is valid, the update will be enqueued and processed downstream. As a consequence, when a response is returned, updates are not immediately manifested in the Product queried by ProductService.GetProduct or ProductService.ListProducts. When inventory is updated with ProductService.CreateProduct and ProductService.UpdateProduct, the specified inventory field value(s) will overwrite any existing value(s) while ignoring the last update time for this field. Furthermore, the last update time for the specified inventory fields will be overwritten to the time of the ProductService.CreateProduct or ProductService.UpdateProduct request. If no inventory fields are set in CreateProductRequest.product, then any pre-existing inventory information for this product will be used. If no inventory fields are set in SetInventoryRequest.set_mask, then any existing inventory information will be preserved. Pre-existing inventory information can only be updated with ProductService.SetInventory, ProductService.AddFulfillmentPlaces, and ProductService.RemoveFulfillmentPlaces. This feature is only available for users who have Retail Search enabled. Please enable Retail Search on Cloud Console before using this feature.", "flatPath": "v2/projects/{projectsId}/locations/{locationsId}/catalogs/{catalogsId}/branches/{branchesId}/products/{productsId}:setInventory", "httpMethod": "POST", "id": "retail.projects.locations.catalogs.branches.products.setInventory", @@ -1111,7 +1111,7 @@ ] }, "import": { - "description": "Bulk import of User events. Request processing might be synchronous. Events that already exist are skipped. Use this method for backfilling historical user events. `Operation.response` is of type `ImportResponse`. Note that it is possible for a subset of the items to be successfully inserted. `Operation.metadata` is of type `ImportMetadata`.", + "description": "Bulk import of User events. Request processing might be synchronous. Events that already exist are skipped. Use this method for backfilling historical user events. Operation.response is of type ImportResponse. Note that it is possible for a subset of the items to be successfully inserted. Operation.metadata is of type ImportMetadata.", "flatPath": "v2/projects/{projectsId}/locations/{locationsId}/catalogs/{catalogsId}/userEvents:import", "httpMethod": "POST", "id": "retail.projects.locations.catalogs.userEvents.import", @@ -2005,11 +2005,11 @@ "type": "object" }, "GoogleCloudRetailV2GcsSource": { - "description": "Google Cloud Storage location for input content.", + "description": "Google Cloud Storage location for input content. format.", "id": "GoogleCloudRetailV2GcsSource", "properties": { "dataSchema": { - "description": "The schema to use when parsing the data from the source. Supported values for product imports: * `product` (default): One JSON Product per line. Each product must have a valid Product.id. * `product_merchant_center`: See [Importing catalog data from Merchant Center](https://cloud.google.com/retail/recommendations-ai/docs/upload-catalog#mc). Supported values for user events imports: * `user_event` (default): One JSON UserEvent per line. * `user_event_ga360`: Using https://support.google.com/analytics/answer/3437719. Supported values for control imports: * `control` (default): One JSON Control per line. Supported values for catalog attribute imports: * `catalog_attribute` (default): One CSV CatalogAttribute per line.", + "description": "The schema to use when parsing the data from the source. Supported values for product imports: * `product` (default): One JSON Product per line. Each product must have a valid Product.id. * `product_merchant_center`: See [Importing catalog data from Merchant Center](https://cloud.google.com/retail/recommendations-ai/docs/upload-catalog#mc). Supported values for user events imports: * `user_event` (default): One JSON UserEvent per line. * `user_event_ga360`: Using https://support.google.com/analytics/answer/3437719. Supported values for control imports: * 'control' (default): One JSON Control per line. Supported values for catalog attribute imports: * 'catalog_attribute' (default): One CSV CatalogAttribute per line.", "type": "string" }, "inputUris": { @@ -2072,7 +2072,7 @@ "description": "Required. The desired input location of the data." }, "notificationPubsubTopic": { - "description": "Pub/Sub topic for receiving notification. If this field is set, when the import is finished, a notification is sent to specified Pub/Sub topic. The message data is JSON string of a Operation. Format of the Pub/Sub topic is `projects/{project}/topics/{topic}`.", + "description": "Pub/Sub topic for receiving notification. If this field is set, when the import is finished, a notification will be sent to specified Pub/Sub topic. The message data will be JSON string of a Operation. Format of the Pub/Sub topic is `projects/{project}/topics/{topic}`.", "type": "string" } }, @@ -2097,14 +2097,14 @@ "id": "GoogleCloudRetailV2ImportErrorsConfig", "properties": { "gcsPrefix": { - "description": "Google Cloud Storage prefix for import errors. This must be an empty, existing Cloud Storage directory. Import errors are written to sharded files in this directory, one per line, as a JSON-encoded `google.rpc.Status` message.", + "description": "Google Cloud Storage prefix for import errors. This must be an empty, existing Cloud Storage directory. Import errors will be written to sharded files in this directory, one per line, as a JSON-encoded `google.rpc.Status` message.", "type": "string" } }, "type": "object" }, "GoogleCloudRetailV2ImportMetadata": { - "description": "Metadata related to the progress of the Import operation. This is returned by the google.longrunning.Operation.metadata field.", + "description": "Metadata related to the progress of the Import operation. This will be returned by the google.longrunning.Operation.metadata field.", "id": "GoogleCloudRetailV2ImportMetadata", "properties": { "createTime": { @@ -2118,7 +2118,7 @@ "type": "string" }, "notificationPubsubTopic": { - "description": "Pub/Sub topic for receiving notification. If this field is set, when the import is finished, a notification is sent to specified Pub/Sub topic. The message data is JSON string of a Operation. Format of the Pub/Sub topic is `projects/{project}/topics/{topic}`.", + "description": "Pub/Sub topic for receiving notification. If this field is set, when the import is finished, a notification will be sent to specified Pub/Sub topic. The message data will be JSON string of a Operation. Format of the Pub/Sub topic is `projects/{project}/topics/{topic}`.", "type": "string" }, "requestId": { @@ -2151,7 +2151,7 @@ "description": "Required. The desired input location of the data." }, "notificationPubsubTopic": { - "description": "Full Pub/Sub topic name for receiving notification. If this field is set, when the import is finished, a notification is sent to specified Pub/Sub topic. The message data is JSON string of a Operation. Format of the Pub/Sub topic is `projects/{project}/topics/{topic}`. It has to be within the same project as ImportProductsRequest.parent. Make sure that `service-@gcp-sa-retail.iam.gserviceaccount.com` has the `pubsub.topics.publish` IAM permission on the topic.", + "description": "Full Pub/Sub topic name for receiving notification. If this field is set, when the import is finished, a notification will be sent to specified Pub/Sub topic. The message data will be JSON string of a Operation. Format of the Pub/Sub topic is `projects/{project}/topics/{topic}`. It has to be within the same project as ImportProductsRequest.parent. Make sure that `service-@gcp-sa-retail.iam.gserviceaccount.com` has the `pubsub.topics.publish` IAM permission on the topic.", "type": "string" }, "reconciliationMode": { @@ -2173,7 +2173,7 @@ "type": "string" }, "updateMask": { - "description": "Indicates which fields in the provided imported `products` to update. If not set, all fields are updated.", + "description": "Indicates which fields in the provided imported 'products' to update. If not set, will by default update all fields.", "format": "google-fieldmask", "type": "string" } @@ -3826,14 +3826,14 @@ "id": "GoogleCloudRetailV2alphaImportErrorsConfig", "properties": { "gcsPrefix": { - "description": "Google Cloud Storage prefix for import errors. This must be an empty, existing Cloud Storage directory. Import errors are written to sharded files in this directory, one per line, as a JSON-encoded `google.rpc.Status` message.", + "description": "Google Cloud Storage prefix for import errors. This must be an empty, existing Cloud Storage directory. Import errors will be written to sharded files in this directory, one per line, as a JSON-encoded `google.rpc.Status` message.", "type": "string" } }, "type": "object" }, "GoogleCloudRetailV2alphaImportMetadata": { - "description": "Metadata related to the progress of the Import operation. This is returned by the google.longrunning.Operation.metadata field.", + "description": "Metadata related to the progress of the Import operation. This will be returned by the google.longrunning.Operation.metadata field.", "id": "GoogleCloudRetailV2alphaImportMetadata", "properties": { "createTime": { @@ -3847,7 +3847,7 @@ "type": "string" }, "notificationPubsubTopic": { - "description": "Pub/Sub topic for receiving notification. If this field is set, when the import is finished, a notification is sent to specified Pub/Sub topic. The message data is JSON string of a Operation. Format of the Pub/Sub topic is `projects/{project}/topics/{topic}`.", + "description": "Pub/Sub topic for receiving notification. If this field is set, when the import is finished, a notification will be sent to specified Pub/Sub topic. The message data will be JSON string of a Operation. Format of the Pub/Sub topic is `projects/{project}/topics/{topic}`.", "type": "string" }, "requestId": { @@ -3912,7 +3912,7 @@ "type": "object" }, "GoogleCloudRetailV2alphaModel": { - "description": "Metadata that describes the training and serving parameters of a Model. A Model can be associated with a ServingConfig and then queried through the Predict API.", + "description": "Metadata that describes the training and serving parameters of a Model. A Model can be associated with a ServingConfig and then queried through the Predict api.", "id": "GoogleCloudRetailV2alphaModel", "properties": { "createTime": { @@ -3922,14 +3922,14 @@ "type": "string" }, "dataState": { - "description": "Output only. The state of data requirements for this model: `DATA_OK` and `DATA_ERROR`. Recommendation model cannot be trained if the data is in `DATA_ERROR` state. Recommendation model can have `DATA_ERROR` state even if serving state is `ACTIVE`: models were trained successfully before, but cannot be refreshed because model no longer has sufficient data for training.", + "description": "Output only. The state of data requirements for this model: DATA_OK and DATA_ERROR. Recommendation model cannot be trained if the data is in DATA_ERROR state. Recommendation model can have DATA_ERROR state even if serving state is ACTIVE: models were trained successfully before, but cannot be refreshed because model no longer has sufficient data for training.", "enum": [ "DATA_STATE_UNSPECIFIED", "DATA_OK", "DATA_ERROR" ], "enumDescriptions": [ - "Unspecified default value, should never be explicitly set.", + "Unspecified default value - should never be explicitly set.", "The model has sufficient training data.", "The model does not have sufficient training data. Error messages can be queried via Stackdriver." ], @@ -3937,11 +3937,11 @@ "type": "string" }, "displayName": { - "description": "Required. The display name of the model. Should be human readable, used to display Recommendation Models in the Retail Cloud Console Dashboard. UTF-8 encoded string with limit of 1024 characters.", + "description": "Required. The display name of the model. Should be human readable, used to display Recommendation Models in the Retail Cloud Cosole Dashboard. UTF-8 encoded string with limit of 1024 characters.", "type": "string" }, "filteringOption": { - "description": "Optional. If `RECOMMENDATIONS_FILTERING_ENABLED`, recommendation filtering by attributes is enabled for the model.", + "description": "Optional. If RECOMMENDATIONS_FILTERING_ENABLED, recommendation filtering by attributes is enabled for the model.", "enum": [ "RECOMMENDATIONS_FILTERING_OPTION_UNSPECIFIED", "RECOMMENDATIONS_FILTERING_DISABLED", @@ -3961,7 +3961,7 @@ "type": "string" }, "name": { - "description": "Required. The fully qualified resource name of the model. Format: `projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}/models/{model_id}` catalog_id has char limit of 50. recommendation_model_id has char limit of 40.", + "description": "Required. The fully qualified resource name of the model. Format: projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}/models/{model_id} catalog_id has char limit of 50. recommendation_model_id has char limit of 40.", "type": "string" }, "optimizationObjective": { @@ -3973,7 +3973,7 @@ "description": "Optional. The page optimization config." }, "periodicTuningState": { - "description": "Optional. The state of periodic tuning. The period we use is 3 months - to do a one-off tune earlier use the `TuneModel` method. Default value is `PERIODIC_TUNING_ENABLED`.", + "description": "Optional. The state of periodic tuning. The period we use is 3 months - to do a one-off tune earlier use the TuneModel method. Default value is PERIODIC_TUNING_ENABLED.", "enum": [ "PERIODIC_TUNING_STATE_UNSPECIFIED", "PERIODIC_TUNING_DISABLED", @@ -3981,10 +3981,10 @@ "PERIODIC_TUNING_ENABLED" ], "enumDescriptions": [ - "Unspecified default value, should never be explicitly set.", - "The model has periodic tuning disabled. Tuning can be reenabled by calling the `EnableModelPeriodicTuning` method or by calling the `TuneModel` method.", - "The model cannot be tuned with periodic tuning OR the `TuneModel` method. Hide the options in customer UI and reject any requests through the backend self serve API.", - "The model has periodic tuning enabled. Tuning can be disabled by calling the `DisableModelPeriodicTuning` method." + "Unspecified default value - should never be explicitly set.", + "The model has periodic tuning disabled. Tuning can be reenabled by calling the EnableModelPeriodicTuning method or by calling the TuneModel method.", + "The model cannot be tuned with periodic tuning OR the TuneModel method. Hide the options in customer UI and reject any requests through the backend self serve API.", + "The model has periodic tuning enabled. Tuning can be disabled by calling the DisableModelPeriodicTuning method." ], "type": "string" }, @@ -3997,7 +3997,7 @@ "type": "array" }, "servingState": { - "description": "Output only. The serving state of the model: `ACTIVE`, `NOT_ACTIVE`.", + "description": "Output only. The serving state of the model: ACTIVE, NOT_ACTIVE.", "enum": [ "SERVING_STATE_UNSPECIFIED", "INACTIVE", @@ -4008,13 +4008,13 @@ "Unspecified serving state.", "The model is not serving.", "The model is serving and can be queried.", - "The model is trained on tuned hyperparameters and can be queried." + "The model is trained on tuned hyperparameters, and can be queried." ], "readOnly": true, "type": "string" }, "trainingState": { - "description": "Optional. The training state that the model is in (e.g. `TRAINING` or `PAUSED`). Since part of the cost of running the service is frequency of training - this can be used to determine when to train model in order to control cost. If not specified: the default value for `CreateModel` method is `TRAINING`. The default value for `UpdateModel` method is to keep the state the same as before.", + "description": "Optional. The training state that the model is in (e.g. TRAINING or PAUSED). Since part of the cost of running the service is frequency of training - this can be used to determine when to train model in order to control cost. If not specified: the default value for CreateModel method is TRAINING. the default value for UpdateModel method is to keep the state the same as before.", "enum": [ "TRAINING_STATE_UNSPECIFIED", "PAUSED", @@ -4033,7 +4033,7 @@ "type": "string" }, "type": { - "description": "Required. The type of model e.g. `home-page`. Currently supported values: `recommended-for-you`, `others-you-may-like`, `frequently-bought-together`, `page-optimization`, `similar-items`, `buy-it-again`, and `recently-viewed`(readonly value).", + "description": "Required. The type of model e.g. `home-page`. Currently supported values: `recommended-for-you`, `others-you-may-like`, `frequently-bought-together`, `page-optimization`, 'similar-items', 'buy-it-again', `recently-viewed`(readonly value).", "type": "string" }, "updateTime": { @@ -4072,9 +4072,9 @@ "enumDescriptions": [ "Unspecified value for restriction.", "Allow any ServingConfig to be show on any number of panels. Example: `Panel1 candidates`: pdp_ctr, pdp_cvr, home_page_ctr_no_diversity `Panel2 candidates`: home_page_ctr_no_diversity, home_page_ctr_diversity, pdp_cvr_no_diversity `Restriction` = NO_RESTRICTION `Valid combinations`: * * (pdp_ctr, home_page_ctr_no_diversity) * (pdp_ctr, home_page_ctr_diversity) * (pdp_ctr, pdp_cvr_no_diversity) * (pdp_cvr, home_page_ctr_no_diversity) * (pdp_cvr, home_page_ctr_diversity) * (pdp_cvr, pdp_cvr_no_diversity) * (home_page_ctr_no_diversity, home_page_ctr_no_diversity) * (home_page_ctr_no_diversity, home_page_ctr_diversity) * (home_page_ctr_no_diversity, pdp_cvr_no_diversity) * `Invalid combinations`: []", - "Do not allow the same ServingConfig.name to be shown on multiple panels. Example: `Panel1 candidates`: * pdp_ctr, pdp_cvr, home_page_ctr_no_diversity * `Panel2 candidates`: * home_page_ctr_no_diversity, home_page_ctr_diversity_low, pdp_cvr_no_diversity * `Restriction` = `UNIQUE_SERVING_CONFIG_RESTRICTION` `Valid combinations`: * * (pdp_ctr, home_page_ctr_no_diversity) * (pdp_ctr, home_page_ctr_diversity_low) * (pdp_ctr, pdp_cvr_no_diversity) * (pdp_ctr, pdp_cvr_no_diversity) * (pdp_cvr, home_page_ctr_no_diversity) * (pdp_cvr, home_page_ctr_diversity_low) * (pdp_cvr, pdp_cvr_no_diversity) * (home_page_ctr_no_diversity, home_page_ctr_diversity_low) * (home_page_ctr_no_diversity, pdp_cvr_no_diversity) * `Invalid combinations`: * * (home_page_ctr_no_diversity, home_page_ctr_no_diversity) *", - "Do not allow multiple ServingConfigs with same Model.name to be show on on different panels. Example: `Panel1 candidates`: * pdp_ctr, pdp_cvr, home_page_ctr_no_diversity * `Panel2 candidates`: * home_page_ctr_no_diversity, home_page_ctr_diversity_low, pdp_cvr_no_diversity * `Restriction` = `UNIQUE_MODEL_RESTRICTION` `Valid combinations`: * * (pdp_ctr, home_page_ctr_no_diversity) * (pdp_ctr, home_page_ctr_diversity) * (pdp_ctr, pdp_cvr_no_diversity) * (pdp_ctr, pdp_cvr_no_diversity) * (pdp_cvr, home_page_ctr_no_diversity) * (pdp_cvr, home_page_ctr_diversity_low) * (home_page_ctr_no_diversity, pdp_cvr_no_diversity) * `Invalid combinations`: * * (home_page_ctr_no_diversity, home_page_ctr_no_diversity) * (pdp_cvr, pdp_cvr_no_diversity) *", - "Do not allow multiple ServingConfigs with same Model.type to be shown on different panels. Example: `Panel1 candidates`: * pdp_ctr, pdp_cvr, home_page_ctr_no_diversity * `Panel2 candidates`: * home_page_ctr_no_diversity, home_page_ctr_diversity_low, pdp_cvr_no_diversity * `Restriction` = `UNIQUE_MODEL_RESTRICTION` `Valid combinations`: * * (pdp_ctr, home_page_ctr_no_diversity) * (pdp_ctr, home_page_ctr_diversity) * (pdp_cvr, home_page_ctr_no_diversity) * (pdp_cvr, home_page_ctr_diversity_low) * (home_page_ctr_no_diversity, pdp_cvr_no_diversity) * `Invalid combinations`: * * (pdp_ctr, pdp_cvr_no_diversity) * (pdp_ctr, pdp_cvr_no_diversity) * (pdp_cvr, pdp_cvr_no_diversity) * (home_page_ctr_no_diversity, home_page_ctr_no_diversity) * (home_page_ctr_no_diversity, home_page_ctr_diversity) *" + "Do not allow the same ServingConfig.name to be shown on multiple panels. Example: `Panel1 candidates`: * pdp_ctr, pdp_cvr, home_page_ctr_no_diversity * `Panel2 candidates`: * home_page_ctr_no_diversity, home_page_ctr_diversity_low, pdp_cvr_no_diversity * `Restriction` = UNIQUE_SERVING_CONFIG_RESTRICTION `Valid combinations`: * * (pdp_ctr, home_page_ctr_no_diversity) * (pdp_ctr, home_page_ctr_diversity_low) * (pdp_ctr, pdp_cvr_no_diversity) * (pdp_ctr, pdp_cvr_no_diversity) * (pdp_cvr, home_page_ctr_no_diversity) * (pdp_cvr, home_page_ctr_diversity_low) * (pdp_cvr, pdp_cvr_no_diversity) * (home_page_ctr_no_diversity, home_page_ctr_diversity_low) * (home_page_ctr_no_diversity, pdp_cvr_no_diversity) * `Invalid combinations`: * * (home_page_ctr_no_diversity, home_page_ctr_no_diversity) *", + "Do not allow multiple ServingConfigs with same Model.name to be show on on different panels. Example: `Panel1 candidates`: * pdp_ctr, pdp_cvr, home_page_ctr_no_diversity * `Panel2 candidates`: * home_page_ctr_no_diversity, home_page_ctr_diversity_low, pdp_cvr_no_diversity * `Restriction` = UNIQUE_MODEL_RESTRICTION `Valid combinations`: * * (pdp_ctr, home_page_ctr_no_diversity) * (pdp_ctr, home_page_ctr_diversity) * (pdp_ctr, pdp_cvr_no_diversity) * (pdp_ctr, pdp_cvr_no_diversity) * (pdp_cvr, home_page_ctr_no_diversity) * (pdp_cvr, home_page_ctr_diversity_low) * (home_page_ctr_no_diversity, pdp_cvr_no_diversity) * `Invalid combinations`: * * (home_page_ctr_no_diversity, home_page_ctr_no_diversity) * (pdp_cvr, pdp_cvr_no_diversity) *", + "Do not allow multiple ServingConfigs with same Model.type to be shown on different panels. Example: `Panel1 candidates`: * pdp_ctr, pdp_cvr, home_page_ctr_no_diversity * `Panel2 candidates`: * home_page_ctr_no_diversity, home_page_ctr_diversity_low, pdp_cvr_no_diversity * `Restriction` = UNIQUE_MODEL_RESTRICTION `Valid combinations`: * * (pdp_ctr, home_page_ctr_no_diversity) * (pdp_ctr, home_page_ctr_diversity) * (pdp_cvr, home_page_ctr_no_diversity) * (pdp_cvr, home_page_ctr_diversity_low) * (home_page_ctr_no_diversity, pdp_cvr_no_diversity) * `Invalid combinations`: * * (pdp_ctr, pdp_cvr_no_diversity) * (pdp_ctr, pdp_cvr_no_diversity) * (pdp_cvr, pdp_cvr_no_diversity) * (home_page_ctr_no_diversity, home_page_ctr_no_diversity) * (home_page_ctr_no_diversity, home_page_ctr_diversity) *" ], "type": "string" } @@ -4086,7 +4086,7 @@ "id": "GoogleCloudRetailV2alphaModelPageOptimizationConfigCandidate", "properties": { "servingConfigId": { - "description": "This has to be a valid ServingConfig identifier. For example, for a ServingConfig with full name: `projects/*/locations/global/catalogs/default_catalog/servingConfigs/my_candidate_config`, this would be `my_candidate_config`.", + "description": "This has to be a valid ServingConfig identifier. e.g. for a ServingConfig with full name: `projects/*/locations/global/catalogs/default_catalog/servingConfigs/my_candidate_config` this would be 'my_candidate_config'", "type": "string" } }, @@ -4105,7 +4105,7 @@ }, "defaultCandidate": { "$ref": "GoogleCloudRetailV2alphaModelPageOptimizationConfigCandidate", - "description": "Required. The default candidate. If the model fails at serving time, we fall back to the default." + "description": "Required. The default candidate (in case the model fails at serving time, we can fall back to the default)." }, "displayName": { "description": "Optional. The name to display for the panel.", @@ -4115,11 +4115,11 @@ "type": "object" }, "GoogleCloudRetailV2alphaModelServingConfigList": { - "description": "Represents an ordered combination of valid serving configs, which can be used for `PAGE_OPTIMIZATION` recommendations.", + "description": "Represents an ordered combination of valid serving configs, which / may be used for PAGE_OPTIMIZATION recommendations.", "id": "GoogleCloudRetailV2alphaModelServingConfigList", "properties": { "servingConfigIds": { - "description": "Optional. A set of valid serving configs that may be used for `PAGE_OPTIMIZATION`.", + "description": "Optional. A set of valid serving configs that may be used for PAGE_OPTIMIZATION.", "items": { "type": "string" }, @@ -4441,14 +4441,14 @@ "id": "GoogleCloudRetailV2betaImportErrorsConfig", "properties": { "gcsPrefix": { - "description": "Google Cloud Storage prefix for import errors. This must be an empty, existing Cloud Storage directory. Import errors are written to sharded files in this directory, one per line, as a JSON-encoded `google.rpc.Status` message.", + "description": "Google Cloud Storage prefix for import errors. This must be an empty, existing Cloud Storage directory. Import errors will be written to sharded files in this directory, one per line, as a JSON-encoded `google.rpc.Status` message.", "type": "string" } }, "type": "object" }, "GoogleCloudRetailV2betaImportMetadata": { - "description": "Metadata related to the progress of the Import operation. This is returned by the google.longrunning.Operation.metadata field.", + "description": "Metadata related to the progress of the Import operation. This will be returned by the google.longrunning.Operation.metadata field.", "id": "GoogleCloudRetailV2betaImportMetadata", "properties": { "createTime": { @@ -4462,7 +4462,7 @@ "type": "string" }, "notificationPubsubTopic": { - "description": "Pub/Sub topic for receiving notification. If this field is set, when the import is finished, a notification is sent to specified Pub/Sub topic. The message data is JSON string of a Operation. Format of the Pub/Sub topic is `projects/{project}/topics/{topic}`.", + "description": "Pub/Sub topic for receiving notification. If this field is set, when the import is finished, a notification will be sent to specified Pub/Sub topic. The message data will be JSON string of a Operation. Format of the Pub/Sub topic is `projects/{project}/topics/{topic}`.", "type": "string" }, "requestId": { diff --git a/retail/v2/retail-gen.go b/retail/v2/retail-gen.go index 4694093ef57..3b5acadf44d 100644 --- a/retail/v2/retail-gen.go +++ b/retail/v2/retail-gen.go @@ -1515,7 +1515,7 @@ func (s *GoogleCloudRetailV2FulfillmentInfo) MarshalJSON() ([]byte, error) { } // GoogleCloudRetailV2GcsSource: Google Cloud Storage location for input -// content. +// content. format. type GoogleCloudRetailV2GcsSource struct { // DataSchema: The schema to use when parsing the data from the source. // Supported values for product imports: * `product` (default): One JSON @@ -1526,9 +1526,9 @@ type GoogleCloudRetailV2GcsSource struct { // Supported values for user events imports: * `user_event` (default): // One JSON UserEvent per line. * `user_event_ga360`: Using // https://support.google.com/analytics/answer/3437719. Supported values - // for control imports: * `control` (default): One JSON Control per + // for control imports: * 'control' (default): One JSON Control per // line. Supported values for catalog attribute imports: * - // `catalog_attribute` (default): One CSV CatalogAttribute per line. + // 'catalog_attribute' (default): One CSV CatalogAttribute per line. DataSchema string `json:"dataSchema,omitempty"` // InputUris: Required. Google Cloud Storage URIs to input files. URI @@ -1655,9 +1655,9 @@ type GoogleCloudRetailV2ImportCompletionDataRequest struct { InputConfig *GoogleCloudRetailV2CompletionDataInputConfig `json:"inputConfig,omitempty"` // NotificationPubsubTopic: Pub/Sub topic for receiving notification. If - // this field is set, when the import is finished, a notification is - // sent to specified Pub/Sub topic. The message data is JSON string of a - // Operation. Format of the Pub/Sub topic is + // this field is set, when the import is finished, a notification will + // be sent to specified Pub/Sub topic. The message data will be JSON + // string of a Operation. Format of the Pub/Sub topic is // `projects/{project}/topics/{topic}`. NotificationPubsubTopic string `json:"notificationPubsubTopic,omitempty"` @@ -1721,7 +1721,7 @@ func (s *GoogleCloudRetailV2ImportCompletionDataResponse) MarshalJSON() ([]byte, // for Import related errors. type GoogleCloudRetailV2ImportErrorsConfig struct { // GcsPrefix: Google Cloud Storage prefix for import errors. This must - // be an empty, existing Cloud Storage directory. Import errors are + // be an empty, existing Cloud Storage directory. Import errors will be // written to sharded files in this directory, one per line, as a // JSON-encoded `google.rpc.Status` message. GcsPrefix string `json:"gcsPrefix,omitempty"` @@ -1750,7 +1750,7 @@ func (s *GoogleCloudRetailV2ImportErrorsConfig) MarshalJSON() ([]byte, error) { } // GoogleCloudRetailV2ImportMetadata: Metadata related to the progress -// of the Import operation. This is returned by the +// of the Import operation. This will be returned by the // google.longrunning.Operation.metadata field. type GoogleCloudRetailV2ImportMetadata struct { // CreateTime: Operation create time. @@ -1761,9 +1761,9 @@ type GoogleCloudRetailV2ImportMetadata struct { FailureCount int64 `json:"failureCount,omitempty,string"` // NotificationPubsubTopic: Pub/Sub topic for receiving notification. If - // this field is set, when the import is finished, a notification is - // sent to specified Pub/Sub topic. The message data is JSON string of a - // Operation. Format of the Pub/Sub topic is + // this field is set, when the import is finished, a notification will + // be sent to specified Pub/Sub topic. The message data will be JSON + // string of a Operation. Format of the Pub/Sub topic is // `projects/{project}/topics/{topic}`. NotificationPubsubTopic string `json:"notificationPubsubTopic,omitempty"` @@ -1812,9 +1812,9 @@ type GoogleCloudRetailV2ImportProductsRequest struct { // NotificationPubsubTopic: Full Pub/Sub topic name for receiving // notification. If this field is set, when the import is finished, a - // notification is sent to specified Pub/Sub topic. The message data is - // JSON string of a Operation. Format of the Pub/Sub topic is - // `projects/{project}/topics/{topic}`. It has to be within the same + // notification will be sent to specified Pub/Sub topic. The message + // data will be JSON string of a Operation. Format of the Pub/Sub topic + // is `projects/{project}/topics/{topic}`. It has to be within the same // project as ImportProductsRequest.parent. Make sure that // `service-@gcp-sa-retail.iam.gserviceaccount.com` has the // `pubsub.topics.publish` IAM permission on the topic. @@ -1836,7 +1836,7 @@ type GoogleCloudRetailV2ImportProductsRequest struct { RequestId string `json:"requestId,omitempty"` // UpdateMask: Indicates which fields in the provided imported - // `products` to update. If not set, all fields are updated. + // 'products' to update. If not set, will by default update all fields. UpdateMask string `json:"updateMask,omitempty"` // ForceSendFields is a list of field names (e.g. "ErrorsConfig") to @@ -5196,7 +5196,7 @@ func (s *GoogleCloudRetailV2alphaImportCompletionDataResponse) MarshalJSON() ([] // destination for Import related errors. type GoogleCloudRetailV2alphaImportErrorsConfig struct { // GcsPrefix: Google Cloud Storage prefix for import errors. This must - // be an empty, existing Cloud Storage directory. Import errors are + // be an empty, existing Cloud Storage directory. Import errors will be // written to sharded files in this directory, one per line, as a // JSON-encoded `google.rpc.Status` message. GcsPrefix string `json:"gcsPrefix,omitempty"` @@ -5225,7 +5225,7 @@ func (s *GoogleCloudRetailV2alphaImportErrorsConfig) MarshalJSON() ([]byte, erro } // GoogleCloudRetailV2alphaImportMetadata: Metadata related to the -// progress of the Import operation. This is returned by the +// progress of the Import operation. This will be returned by the // google.longrunning.Operation.metadata field. type GoogleCloudRetailV2alphaImportMetadata struct { // CreateTime: Operation create time. @@ -5236,9 +5236,9 @@ type GoogleCloudRetailV2alphaImportMetadata struct { FailureCount int64 `json:"failureCount,omitempty,string"` // NotificationPubsubTopic: Pub/Sub topic for receiving notification. If - // this field is set, when the import is finished, a notification is - // sent to specified Pub/Sub topic. The message data is JSON string of a - // Operation. Format of the Pub/Sub topic is + // this field is set, when the import is finished, a notification will + // be sent to specified Pub/Sub topic. The message data will be JSON + // string of a Operation. Format of the Pub/Sub topic is // `projects/{project}/topics/{topic}`. NotificationPubsubTopic string `json:"notificationPubsubTopic,omitempty"` @@ -5358,21 +5358,21 @@ func (s *GoogleCloudRetailV2alphaImportUserEventsResponse) MarshalJSON() ([]byte // GoogleCloudRetailV2alphaModel: Metadata that describes the training // and serving parameters of a Model. A Model can be associated with a -// ServingConfig and then queried through the Predict API. +// ServingConfig and then queried through the Predict api. type GoogleCloudRetailV2alphaModel struct { // CreateTime: Output only. Timestamp the Recommendation Model was // created at. CreateTime string `json:"createTime,omitempty"` // DataState: Output only. The state of data requirements for this - // model: `DATA_OK` and `DATA_ERROR`. Recommendation model cannot be - // trained if the data is in `DATA_ERROR` state. Recommendation model - // can have `DATA_ERROR` state even if serving state is `ACTIVE`: models - // were trained successfully before, but cannot be refreshed because - // model no longer has sufficient data for training. + // model: DATA_OK and DATA_ERROR. Recommendation model cannot be trained + // if the data is in DATA_ERROR state. Recommendation model can have + // DATA_ERROR state even if serving state is ACTIVE: models were trained + // successfully before, but cannot be refreshed because model no longer + // has sufficient data for training. // // Possible values: - // "DATA_STATE_UNSPECIFIED" - Unspecified default value, should never + // "DATA_STATE_UNSPECIFIED" - Unspecified default value - should never // be explicitly set. // "DATA_OK" - The model has sufficient training data. // "DATA_ERROR" - The model does not have sufficient training data. @@ -5381,11 +5381,10 @@ type GoogleCloudRetailV2alphaModel struct { // DisplayName: Required. The display name of the model. Should be human // readable, used to display Recommendation Models in the Retail Cloud - // Console Dashboard. UTF-8 encoded string with limit of 1024 - // characters. + // Cosole Dashboard. UTF-8 encoded string with limit of 1024 characters. DisplayName string `json:"displayName,omitempty"` - // FilteringOption: Optional. If `RECOMMENDATIONS_FILTERING_ENABLED`, + // FilteringOption: Optional. If RECOMMENDATIONS_FILTERING_ENABLED, // recommendation filtering by attributes is enabled for the model. // // Possible values: @@ -5404,8 +5403,8 @@ type GoogleCloudRetailV2alphaModel struct { // Name: Required. The fully qualified resource name of the model. // Format: - // `projects/{project_number}/locations/{location_id}/catalogs/{catalog_i - // d}/models/{model_id}` catalog_id has char limit of 50. + // projects/{project_number}/locations/{location_id}/catalogs/{catalog_id + // }/models/{model_id} catalog_id has char limit of 50. // recommendation_model_id has char limit of 40. Name string `json:"name,omitempty"` @@ -5422,20 +5421,19 @@ type GoogleCloudRetailV2alphaModel struct { // PeriodicTuningState: Optional. The state of periodic tuning. The // period we use is 3 months - to do a one-off tune earlier use the - // `TuneModel` method. Default value is `PERIODIC_TUNING_ENABLED`. + // TuneModel method. Default value is PERIODIC_TUNING_ENABLED. // // Possible values: - // "PERIODIC_TUNING_STATE_UNSPECIFIED" - Unspecified default value, + // "PERIODIC_TUNING_STATE_UNSPECIFIED" - Unspecified default value - // should never be explicitly set. // "PERIODIC_TUNING_DISABLED" - The model has periodic tuning // disabled. Tuning can be reenabled by calling the - // `EnableModelPeriodicTuning` method or by calling the `TuneModel` - // method. + // EnableModelPeriodicTuning method or by calling the TuneModel method. // "ALL_TUNING_DISABLED" - The model cannot be tuned with periodic - // tuning OR the `TuneModel` method. Hide the options in customer UI and + // tuning OR the TuneModel method. Hide the options in customer UI and // reject any requests through the backend self serve API. // "PERIODIC_TUNING_ENABLED" - The model has periodic tuning enabled. - // Tuning can be disabled by calling the `DisableModelPeriodicTuning` + // Tuning can be disabled by calling the DisableModelPeriodicTuning // method. PeriodicTuningState string `json:"periodicTuningState,omitempty"` @@ -5443,24 +5441,23 @@ type GoogleCloudRetailV2alphaModel struct { // associated with the PageOptimizationConfig. ServingConfigLists []*GoogleCloudRetailV2alphaModelServingConfigList `json:"servingConfigLists,omitempty"` - // ServingState: Output only. The serving state of the model: `ACTIVE`, - // `NOT_ACTIVE`. + // ServingState: Output only. The serving state of the model: ACTIVE, + // NOT_ACTIVE. // // Possible values: // "SERVING_STATE_UNSPECIFIED" - Unspecified serving state. // "INACTIVE" - The model is not serving. // "ACTIVE" - The model is serving and can be queried. - // "TUNED" - The model is trained on tuned hyperparameters and can be + // "TUNED" - The model is trained on tuned hyperparameters, and can be // queried. ServingState string `json:"servingState,omitempty"` // TrainingState: Optional. The training state that the model is in - // (e.g. `TRAINING` or `PAUSED`). Since part of the cost of running the + // (e.g. TRAINING or PAUSED). Since part of the cost of running the // service is frequency of training - this can be used to determine when // to train model in order to control cost. If not specified: the - // default value for `CreateModel` method is `TRAINING`. The default - // value for `UpdateModel` method is to keep the state the same as - // before. + // default value for CreateModel method is TRAINING. the default value + // for UpdateModel method is to keep the state the same as before. // // Possible values: // "TRAINING_STATE_UNSPECIFIED" - Unspecified training state. @@ -5475,8 +5472,8 @@ type GoogleCloudRetailV2alphaModel struct { // Type: Required. The type of model e.g. `home-page`. Currently // supported values: `recommended-for-you`, `others-you-may-like`, - // `frequently-bought-together`, `page-optimization`, `similar-items`, - // `buy-it-again`, and `recently-viewed`(readonly value). + // `frequently-bought-together`, `page-optimization`, 'similar-items', + // 'buy-it-again', `recently-viewed`(readonly value). Type string `json:"type,omitempty"` // UpdateTime: Output only. Timestamp the Recommendation Model was last @@ -5553,21 +5550,21 @@ type GoogleCloudRetailV2alphaModelPageOptimizationConfig struct { // candidates`: * pdp_ctr, pdp_cvr, home_page_ctr_no_diversity * `Panel2 // candidates`: * home_page_ctr_no_diversity, // home_page_ctr_diversity_low, pdp_cvr_no_diversity * `Restriction` = - // `UNIQUE_SERVING_CONFIG_RESTRICTION` `Valid combinations`: * * - // (pdp_ctr, home_page_ctr_no_diversity) * (pdp_ctr, - // home_page_ctr_diversity_low) * (pdp_ctr, pdp_cvr_no_diversity) * - // (pdp_ctr, pdp_cvr_no_diversity) * (pdp_cvr, - // home_page_ctr_no_diversity) * (pdp_cvr, home_page_ctr_diversity_low) - // * (pdp_cvr, pdp_cvr_no_diversity) * (home_page_ctr_no_diversity, - // home_page_ctr_diversity_low) * (home_page_ctr_no_diversity, - // pdp_cvr_no_diversity) * `Invalid combinations`: * * - // (home_page_ctr_no_diversity, home_page_ctr_no_diversity) * + // UNIQUE_SERVING_CONFIG_RESTRICTION `Valid combinations`: * * (pdp_ctr, + // home_page_ctr_no_diversity) * (pdp_ctr, home_page_ctr_diversity_low) + // * (pdp_ctr, pdp_cvr_no_diversity) * (pdp_ctr, pdp_cvr_no_diversity) * + // (pdp_cvr, home_page_ctr_no_diversity) * (pdp_cvr, + // home_page_ctr_diversity_low) * (pdp_cvr, pdp_cvr_no_diversity) * + // (home_page_ctr_no_diversity, home_page_ctr_diversity_low) * + // (home_page_ctr_no_diversity, pdp_cvr_no_diversity) * `Invalid + // combinations`: * * (home_page_ctr_no_diversity, + // home_page_ctr_no_diversity) * // "UNIQUE_MODEL_RESTRICTION" - Do not allow multiple ServingConfigs // with same Model.name to be show on on different panels. Example: // `Panel1 candidates`: * pdp_ctr, pdp_cvr, home_page_ctr_no_diversity * // `Panel2 candidates`: * home_page_ctr_no_diversity, // home_page_ctr_diversity_low, pdp_cvr_no_diversity * `Restriction` = - // `UNIQUE_MODEL_RESTRICTION` `Valid combinations`: * * (pdp_ctr, + // UNIQUE_MODEL_RESTRICTION `Valid combinations`: * * (pdp_ctr, // home_page_ctr_no_diversity) * (pdp_ctr, home_page_ctr_diversity) * // (pdp_ctr, pdp_cvr_no_diversity) * (pdp_ctr, pdp_cvr_no_diversity) * // (pdp_cvr, home_page_ctr_no_diversity) * (pdp_cvr, @@ -5580,7 +5577,7 @@ type GoogleCloudRetailV2alphaModelPageOptimizationConfig struct { // Example: `Panel1 candidates`: * pdp_ctr, pdp_cvr, // home_page_ctr_no_diversity * `Panel2 candidates`: * // home_page_ctr_no_diversity, home_page_ctr_diversity_low, - // pdp_cvr_no_diversity * `Restriction` = `UNIQUE_MODEL_RESTRICTION` + // pdp_cvr_no_diversity * `Restriction` = UNIQUE_MODEL_RESTRICTION // `Valid combinations`: * * (pdp_ctr, home_page_ctr_no_diversity) * // (pdp_ctr, home_page_ctr_diversity) * (pdp_cvr, // home_page_ctr_no_diversity) * (pdp_cvr, home_page_ctr_diversity_low) @@ -5620,10 +5617,10 @@ func (s *GoogleCloudRetailV2alphaModelPageOptimizationConfig) MarshalJSON() ([]b // candidate to consider for a given panel. Currently only ServingConfig // are valid candidates. type GoogleCloudRetailV2alphaModelPageOptimizationConfigCandidate struct { - // ServingConfigId: This has to be a valid ServingConfig identifier. For - // example, for a ServingConfig with full name: + // ServingConfigId: This has to be a valid ServingConfig identifier. + // e.g. for a ServingConfig with full name: // `projects/*/locations/global/catalogs/default_catalog/servingConfigs/m - // y_candidate_config`, this would be `my_candidate_config`. + // y_candidate_config` this would be 'my_candidate_config' ServingConfigId string `json:"servingConfigId,omitempty"` // ForceSendFields is a list of field names (e.g. "ServingConfigId") to @@ -5657,8 +5654,8 @@ type GoogleCloudRetailV2alphaModelPageOptimizationConfigPanel struct { // = 10. Candidates []*GoogleCloudRetailV2alphaModelPageOptimizationConfigCandidate `json:"candidates,omitempty"` - // DefaultCandidate: Required. The default candidate. If the model fails - // at serving time, we fall back to the default. + // DefaultCandidate: Required. The default candidate (in case the model + // fails at serving time, we can fall back to the default). DefaultCandidate *GoogleCloudRetailV2alphaModelPageOptimizationConfigCandidate `json:"defaultCandidate,omitempty"` // DisplayName: Optional. The name to display for the panel. @@ -5688,11 +5685,11 @@ func (s *GoogleCloudRetailV2alphaModelPageOptimizationConfigPanel) MarshalJSON() } // GoogleCloudRetailV2alphaModelServingConfigList: Represents an ordered -// combination of valid serving configs, which can be used for -// `PAGE_OPTIMIZATION` recommendations. +// combination of valid serving configs, which / may be used for +// PAGE_OPTIMIZATION recommendations. type GoogleCloudRetailV2alphaModelServingConfigList struct { // ServingConfigIds: Optional. A set of valid serving configs that may - // be used for `PAGE_OPTIMIZATION`. + // be used for PAGE_OPTIMIZATION. ServingConfigIds []string `json:"servingConfigIds,omitempty"` // ForceSendFields is a list of field names (e.g. "ServingConfigIds") to @@ -6295,7 +6292,7 @@ func (s *GoogleCloudRetailV2betaImportCompletionDataResponse) MarshalJSON() ([]b // destination for Import related errors. type GoogleCloudRetailV2betaImportErrorsConfig struct { // GcsPrefix: Google Cloud Storage prefix for import errors. This must - // be an empty, existing Cloud Storage directory. Import errors are + // be an empty, existing Cloud Storage directory. Import errors will be // written to sharded files in this directory, one per line, as a // JSON-encoded `google.rpc.Status` message. GcsPrefix string `json:"gcsPrefix,omitempty"` @@ -6324,7 +6321,7 @@ func (s *GoogleCloudRetailV2betaImportErrorsConfig) MarshalJSON() ([]byte, error } // GoogleCloudRetailV2betaImportMetadata: Metadata related to the -// progress of the Import operation. This is returned by the +// progress of the Import operation. This will be returned by the // google.longrunning.Operation.metadata field. type GoogleCloudRetailV2betaImportMetadata struct { // CreateTime: Operation create time. @@ -6335,9 +6332,9 @@ type GoogleCloudRetailV2betaImportMetadata struct { FailureCount int64 `json:"failureCount,omitempty,string"` // NotificationPubsubTopic: Pub/Sub topic for receiving notification. If - // this field is set, when the import is finished, a notification is - // sent to specified Pub/Sub topic. The message data is JSON string of a - // Operation. Format of the Pub/Sub topic is + // this field is set, when the import is finished, a notification will + // be sent to specified Pub/Sub topic. The message data will be JSON + // string of a Operation. Format of the Pub/Sub topic is // `projects/{project}/topics/{topic}`. NotificationPubsubTopic string `json:"notificationPubsubTopic,omitempty"` @@ -8846,12 +8843,9 @@ type ProjectsLocationsCatalogsBranchesProductsAddFulfillmentPlacesCall struct { // processed downstream. As a consequence, when a response is returned, // the added place IDs are not immediately manifested in the Product // queried by ProductService.GetProduct or ProductService.ListProducts. -// The returned Operations will be obsolete after 1 day, and -// GetOperation API will return NOT_FOUND afterwards. If conflicting -// updates are issued, the Operations associated with the stale updates -// will not be marked as done until being obsolete. This feature is only -// available for users who have Retail Search enabled. Please enable -// Retail Search on Cloud Console before using this feature. +// This feature is only available for users who have Retail Search +// enabled. Please enable Retail Search on Cloud Console before using +// this feature. // // - product: Full resource name of Product, such as // `projects/*/locations/global/catalogs/default_catalog/branches/defau @@ -8956,7 +8950,7 @@ func (c *ProjectsLocationsCatalogsBranchesProductsAddFulfillmentPlacesCall) Do(o } return ret, nil // { - // "description": "Incrementally adds place IDs to Product.fulfillment_info.place_ids. This process is asynchronous and does not require the Product to exist before updating fulfillment information. If the request is valid, the update will be enqueued and processed downstream. As a consequence, when a response is returned, the added place IDs are not immediately manifested in the Product queried by ProductService.GetProduct or ProductService.ListProducts. The returned Operations will be obsolete after 1 day, and GetOperation API will return NOT_FOUND afterwards. If conflicting updates are issued, the Operations associated with the stale updates will not be marked as done until being obsolete. This feature is only available for users who have Retail Search enabled. Please enable Retail Search on Cloud Console before using this feature.", + // "description": "Incrementally adds place IDs to Product.fulfillment_info.place_ids. This process is asynchronous and does not require the Product to exist before updating fulfillment information. If the request is valid, the update will be enqueued and processed downstream. As a consequence, when a response is returned, the added place IDs are not immediately manifested in the Product queried by ProductService.GetProduct or ProductService.ListProducts. This feature is only available for users who have Retail Search enabled. Please enable Retail Search on Cloud Console before using this feature.", // "flatPath": "v2/projects/{projectsId}/locations/{locationsId}/catalogs/{catalogsId}/branches/{branchesId}/products/{productsId}:addFulfillmentPlaces", // "httpMethod": "POST", // "id": "retail.projects.locations.catalogs.branches.products.addFulfillmentPlaces", @@ -9007,13 +9001,9 @@ type ProjectsLocationsCatalogsBranchesProductsAddLocalInventoriesCall struct { // ProductService.GetProduct or ProductService.ListProducts. Local // inventory information can only be modified using this method. // ProductService.CreateProduct and ProductService.UpdateProduct has no -// effect on local inventories. The returned Operations will be obsolete -// after 1 day, and GetOperation API will return NOT_FOUND afterwards. -// If conflicting updates are issued, the Operations associated with the -// stale updates will not be marked as done until being obsolete. This -// feature is only available for users who have Retail Search enabled. -// Please enable Retail Search on Cloud Console before using this -// feature. +// effect on local inventories. This feature is only available for users +// who have Retail Search enabled. Please enable Retail Search on Cloud +// Console before using this feature. // // - product: Full resource name of Product, such as // `projects/*/locations/global/catalogs/default_catalog/branches/defau @@ -9118,7 +9108,7 @@ func (c *ProjectsLocationsCatalogsBranchesProductsAddLocalInventoriesCall) Do(op } return ret, nil // { - // "description": "Updates local inventory information for a Product at a list of places, while respecting the last update timestamps of each inventory field. This process is asynchronous and does not require the Product to exist before updating inventory information. If the request is valid, the update will be enqueued and processed downstream. As a consequence, when a response is returned, updates are not immediately manifested in the Product queried by ProductService.GetProduct or ProductService.ListProducts. Local inventory information can only be modified using this method. ProductService.CreateProduct and ProductService.UpdateProduct has no effect on local inventories. The returned Operations will be obsolete after 1 day, and GetOperation API will return NOT_FOUND afterwards. If conflicting updates are issued, the Operations associated with the stale updates will not be marked as done until being obsolete. This feature is only available for users who have Retail Search enabled. Please enable Retail Search on Cloud Console before using this feature.", + // "description": "Updates local inventory information for a Product at a list of places, while respecting the last update timestamps of each inventory field. This process is asynchronous and does not require the Product to exist before updating inventory information. If the request is valid, the update will be enqueued and processed downstream. As a consequence, when a response is returned, updates are not immediately manifested in the Product queried by ProductService.GetProduct or ProductService.ListProducts. Local inventory information can only be modified using this method. ProductService.CreateProduct and ProductService.UpdateProduct has no effect on local inventories. This feature is only available for users who have Retail Search enabled. Please enable Retail Search on Cloud Console before using this feature.", // "flatPath": "v2/projects/{projectsId}/locations/{locationsId}/catalogs/{catalogsId}/branches/{branchesId}/products/{productsId}:addLocalInventories", // "httpMethod": "POST", // "id": "retail.projects.locations.catalogs.branches.products.addLocalInventories", @@ -10190,12 +10180,9 @@ type ProjectsLocationsCatalogsBranchesProductsRemoveFulfillmentPlacesCall struct // processed downstream. As a consequence, when a response is returned, // the removed place IDs are not immediately manifested in the Product // queried by ProductService.GetProduct or ProductService.ListProducts. -// The returned Operations will be obsolete after 1 day, and -// GetOperation API will return NOT_FOUND afterwards. If conflicting -// updates are issued, the Operations associated with the stale updates -// will not be marked as done until being obsolete. This feature is only -// available for users who have Retail Search enabled. Please enable -// Retail Search on Cloud Console before using this feature. +// This feature is only available for users who have Retail Search +// enabled. Please enable Retail Search on Cloud Console before using +// this feature. // // - product: Full resource name of Product, such as // `projects/*/locations/global/catalogs/default_catalog/branches/defau @@ -10300,7 +10287,7 @@ func (c *ProjectsLocationsCatalogsBranchesProductsRemoveFulfillmentPlacesCall) D } return ret, nil // { - // "description": "Incrementally removes place IDs from a Product.fulfillment_info.place_ids. This process is asynchronous and does not require the Product to exist before updating fulfillment information. If the request is valid, the update will be enqueued and processed downstream. As a consequence, when a response is returned, the removed place IDs are not immediately manifested in the Product queried by ProductService.GetProduct or ProductService.ListProducts. The returned Operations will be obsolete after 1 day, and GetOperation API will return NOT_FOUND afterwards. If conflicting updates are issued, the Operations associated with the stale updates will not be marked as done until being obsolete. This feature is only available for users who have Retail Search enabled. Please enable Retail Search on Cloud Console before using this feature.", + // "description": "Incrementally removes place IDs from a Product.fulfillment_info.place_ids. This process is asynchronous and does not require the Product to exist before updating fulfillment information. If the request is valid, the update will be enqueued and processed downstream. As a consequence, when a response is returned, the removed place IDs are not immediately manifested in the Product queried by ProductService.GetProduct or ProductService.ListProducts. This feature is only available for users who have Retail Search enabled. Please enable Retail Search on Cloud Console before using this feature.", // "flatPath": "v2/projects/{projectsId}/locations/{locationsId}/catalogs/{catalogsId}/branches/{branchesId}/products/{productsId}:removeFulfillmentPlaces", // "httpMethod": "POST", // "id": "retail.projects.locations.catalogs.branches.products.removeFulfillmentPlaces", @@ -10349,13 +10336,9 @@ type ProjectsLocationsCatalogsBranchesProductsRemoveLocalInventoriesCall struct // queried by ProductService.GetProduct or ProductService.ListProducts. // Local inventory information can only be removed using this method. // ProductService.CreateProduct and ProductService.UpdateProduct has no -// effect on local inventories. The returned Operations will be obsolete -// after 1 day, and GetOperation API will return NOT_FOUND afterwards. -// If conflicting updates are issued, the Operations associated with the -// stale updates will not be marked as done until being obsolete. This -// feature is only available for users who have Retail Search enabled. -// Please enable Retail Search on Cloud Console before using this -// feature. +// effect on local inventories. This feature is only available for users +// who have Retail Search enabled. Please enable Retail Search on Cloud +// Console before using this feature. // // - product: Full resource name of Product, such as // `projects/*/locations/global/catalogs/default_catalog/branches/defau @@ -10460,7 +10443,7 @@ func (c *ProjectsLocationsCatalogsBranchesProductsRemoveLocalInventoriesCall) Do } return ret, nil // { - // "description": "Remove local inventory information for a Product at a list of places at a removal timestamp. This process is asynchronous. If the request is valid, the removal will be enqueued and processed downstream. As a consequence, when a response is returned, removals are not immediately manifested in the Product queried by ProductService.GetProduct or ProductService.ListProducts. Local inventory information can only be removed using this method. ProductService.CreateProduct and ProductService.UpdateProduct has no effect on local inventories. The returned Operations will be obsolete after 1 day, and GetOperation API will return NOT_FOUND afterwards. If conflicting updates are issued, the Operations associated with the stale updates will not be marked as done until being obsolete. This feature is only available for users who have Retail Search enabled. Please enable Retail Search on Cloud Console before using this feature.", + // "description": "Remove local inventory information for a Product at a list of places at a removal timestamp. This process is asynchronous. If the request is valid, the removal will be enqueued and processed downstream. As a consequence, when a response is returned, removals are not immediately manifested in the Product queried by ProductService.GetProduct or ProductService.ListProducts. Local inventory information can only be removed using this method. ProductService.CreateProduct and ProductService.UpdateProduct has no effect on local inventories. This feature is only available for users who have Retail Search enabled. Please enable Retail Search on Cloud Console before using this feature.", // "flatPath": "v2/projects/{projectsId}/locations/{locationsId}/catalogs/{catalogsId}/branches/{branchesId}/products/{productsId}:removeLocalInventories", // "httpMethod": "POST", // "id": "retail.projects.locations.catalogs.branches.products.removeLocalInventories", @@ -10521,13 +10504,9 @@ type ProjectsLocationsCatalogsBranchesProductsSetInventoryCall struct { // information will be preserved. Pre-existing inventory information can // only be updated with ProductService.SetInventory, // ProductService.AddFulfillmentPlaces, and -// ProductService.RemoveFulfillmentPlaces. The returned Operations will -// be obsolete after 1 day, and GetOperation API will return NOT_FOUND -// afterwards. If conflicting updates are issued, the Operations -// associated with the stale updates will not be marked as done until -// being obsolete. This feature is only available for users who have -// Retail Search enabled. Please enable Retail Search on Cloud Console -// before using this feature. +// ProductService.RemoveFulfillmentPlaces. This feature is only +// available for users who have Retail Search enabled. Please enable +// Retail Search on Cloud Console before using this feature. // // - name: Immutable. Full resource name of the product, such as // `projects/*/locations/global/catalogs/default_catalog/branches/defau @@ -10630,7 +10609,7 @@ func (c *ProjectsLocationsCatalogsBranchesProductsSetInventoryCall) Do(opts ...g } return ret, nil // { - // "description": "Updates inventory information for a Product while respecting the last update timestamps of each inventory field. This process is asynchronous and does not require the Product to exist before updating fulfillment information. If the request is valid, the update will be enqueued and processed downstream. As a consequence, when a response is returned, updates are not immediately manifested in the Product queried by ProductService.GetProduct or ProductService.ListProducts. When inventory is updated with ProductService.CreateProduct and ProductService.UpdateProduct, the specified inventory field value(s) will overwrite any existing value(s) while ignoring the last update time for this field. Furthermore, the last update time for the specified inventory fields will be overwritten to the time of the ProductService.CreateProduct or ProductService.UpdateProduct request. If no inventory fields are set in CreateProductRequest.product, then any pre-existing inventory information for this product will be used. If no inventory fields are set in SetInventoryRequest.set_mask, then any existing inventory information will be preserved. Pre-existing inventory information can only be updated with ProductService.SetInventory, ProductService.AddFulfillmentPlaces, and ProductService.RemoveFulfillmentPlaces. The returned Operations will be obsolete after 1 day, and GetOperation API will return NOT_FOUND afterwards. If conflicting updates are issued, the Operations associated with the stale updates will not be marked as done until being obsolete. This feature is only available for users who have Retail Search enabled. Please enable Retail Search on Cloud Console before using this feature.", + // "description": "Updates inventory information for a Product while respecting the last update timestamps of each inventory field. This process is asynchronous and does not require the Product to exist before updating fulfillment information. If the request is valid, the update will be enqueued and processed downstream. As a consequence, when a response is returned, updates are not immediately manifested in the Product queried by ProductService.GetProduct or ProductService.ListProducts. When inventory is updated with ProductService.CreateProduct and ProductService.UpdateProduct, the specified inventory field value(s) will overwrite any existing value(s) while ignoring the last update time for this field. Furthermore, the last update time for the specified inventory fields will be overwritten to the time of the ProductService.CreateProduct or ProductService.UpdateProduct request. If no inventory fields are set in CreateProductRequest.product, then any pre-existing inventory information for this product will be used. If no inventory fields are set in SetInventoryRequest.set_mask, then any existing inventory information will be preserved. Pre-existing inventory information can only be updated with ProductService.SetInventory, ProductService.AddFulfillmentPlaces, and ProductService.RemoveFulfillmentPlaces. This feature is only available for users who have Retail Search enabled. Please enable Retail Search on Cloud Console before using this feature.", // "flatPath": "v2/projects/{projectsId}/locations/{locationsId}/catalogs/{catalogsId}/branches/{branchesId}/products/{productsId}:setInventory", // "httpMethod": "POST", // "id": "retail.projects.locations.catalogs.branches.products.setInventory", @@ -12032,10 +12011,10 @@ type ProjectsLocationsCatalogsUserEventsImportCall struct { // Import: Bulk import of User events. Request processing might be // synchronous. Events that already exist are skipped. Use this method -// for backfilling historical user events. `Operation.response` is of -// type `ImportResponse`. Note that it is possible for a subset of the -// items to be successfully inserted. `Operation.metadata` is of type -// `ImportMetadata`. +// for backfilling historical user events. Operation.response is of type +// ImportResponse. Note that it is possible for a subset of the items to +// be successfully inserted. Operation.metadata is of type +// ImportMetadata. // // - parent: `projects/1234/locations/global/catalogs/default_catalog`. func (r *ProjectsLocationsCatalogsUserEventsService) Import(parent string, googlecloudretailv2importusereventsrequest *GoogleCloudRetailV2ImportUserEventsRequest) *ProjectsLocationsCatalogsUserEventsImportCall { @@ -12136,7 +12115,7 @@ func (c *ProjectsLocationsCatalogsUserEventsImportCall) Do(opts ...googleapi.Cal } return ret, nil // { - // "description": "Bulk import of User events. Request processing might be synchronous. Events that already exist are skipped. Use this method for backfilling historical user events. `Operation.response` is of type `ImportResponse`. Note that it is possible for a subset of the items to be successfully inserted. `Operation.metadata` is of type `ImportMetadata`.", + // "description": "Bulk import of User events. Request processing might be synchronous. Events that already exist are skipped. Use this method for backfilling historical user events. Operation.response is of type ImportResponse. Note that it is possible for a subset of the items to be successfully inserted. Operation.metadata is of type ImportMetadata.", // "flatPath": "v2/projects/{projectsId}/locations/{locationsId}/catalogs/{catalogsId}/userEvents:import", // "httpMethod": "POST", // "id": "retail.projects.locations.catalogs.userEvents.import", diff --git a/retail/v2alpha/retail-api.json b/retail/v2alpha/retail-api.json index 9c90b683b2c..e62736a783d 100644 --- a/retail/v2alpha/retail-api.json +++ b/retail/v2alpha/retail-api.json @@ -561,7 +561,7 @@ "products": { "methods": { "addFulfillmentPlaces": { - "description": "Incrementally adds place IDs to Product.fulfillment_info.place_ids. This process is asynchronous and does not require the Product to exist before updating fulfillment information. If the request is valid, the update will be enqueued and processed downstream. As a consequence, when a response is returned, the added place IDs are not immediately manifested in the Product queried by ProductService.GetProduct or ProductService.ListProducts. The returned Operations will be obsolete after 1 day, and GetOperation API will return NOT_FOUND afterwards. If conflicting updates are issued, the Operations associated with the stale updates will not be marked as done until being obsolete. This feature is only available for users who have Retail Search enabled. Please enable Retail Search on Cloud Console before using this feature.", + "description": "Incrementally adds place IDs to Product.fulfillment_info.place_ids. This process is asynchronous and does not require the Product to exist before updating fulfillment information. If the request is valid, the update will be enqueued and processed downstream. As a consequence, when a response is returned, the added place IDs are not immediately manifested in the Product queried by ProductService.GetProduct or ProductService.ListProducts. This feature is only available for users who have Retail Search enabled. Please enable Retail Search on Cloud Console before using this feature.", "flatPath": "v2alpha/projects/{projectsId}/locations/{locationsId}/catalogs/{catalogsId}/branches/{branchesId}/products/{productsId}:addFulfillmentPlaces", "httpMethod": "POST", "id": "retail.projects.locations.catalogs.branches.products.addFulfillmentPlaces", @@ -589,7 +589,7 @@ ] }, "addLocalInventories": { - "description": "Updates local inventory information for a Product at a list of places, while respecting the last update timestamps of each inventory field. This process is asynchronous and does not require the Product to exist before updating inventory information. If the request is valid, the update will be enqueued and processed downstream. As a consequence, when a response is returned, updates are not immediately manifested in the Product queried by ProductService.GetProduct or ProductService.ListProducts. Local inventory information can only be modified using this method. ProductService.CreateProduct and ProductService.UpdateProduct has no effect on local inventories. The returned Operations will be obsolete after 1 day, and GetOperation API will return NOT_FOUND afterwards. If conflicting updates are issued, the Operations associated with the stale updates will not be marked as done until being obsolete. This feature is only available for users who have Retail Search enabled. Please enable Retail Search on Cloud Console before using this feature.", + "description": "Updates local inventory information for a Product at a list of places, while respecting the last update timestamps of each inventory field. This process is asynchronous and does not require the Product to exist before updating inventory information. If the request is valid, the update will be enqueued and processed downstream. As a consequence, when a response is returned, updates are not immediately manifested in the Product queried by ProductService.GetProduct or ProductService.ListProducts. Local inventory information can only be modified using this method. ProductService.CreateProduct and ProductService.UpdateProduct has no effect on local inventories. This feature is only available for users who have Retail Search enabled. Please enable Retail Search on Cloud Console before using this feature.", "flatPath": "v2alpha/projects/{projectsId}/locations/{locationsId}/catalogs/{catalogsId}/branches/{branchesId}/products/{productsId}:addLocalInventories", "httpMethod": "POST", "id": "retail.projects.locations.catalogs.branches.products.addLocalInventories", @@ -847,7 +847,7 @@ ] }, "removeFulfillmentPlaces": { - "description": "Incrementally removes place IDs from a Product.fulfillment_info.place_ids. This process is asynchronous and does not require the Product to exist before updating fulfillment information. If the request is valid, the update will be enqueued and processed downstream. As a consequence, when a response is returned, the removed place IDs are not immediately manifested in the Product queried by ProductService.GetProduct or ProductService.ListProducts. The returned Operations will be obsolete after 1 day, and GetOperation API will return NOT_FOUND afterwards. If conflicting updates are issued, the Operations associated with the stale updates will not be marked as done until being obsolete. This feature is only available for users who have Retail Search enabled. Please enable Retail Search on Cloud Console before using this feature.", + "description": "Incrementally removes place IDs from a Product.fulfillment_info.place_ids. This process is asynchronous and does not require the Product to exist before updating fulfillment information. If the request is valid, the update will be enqueued and processed downstream. As a consequence, when a response is returned, the removed place IDs are not immediately manifested in the Product queried by ProductService.GetProduct or ProductService.ListProducts. This feature is only available for users who have Retail Search enabled. Please enable Retail Search on Cloud Console before using this feature.", "flatPath": "v2alpha/projects/{projectsId}/locations/{locationsId}/catalogs/{catalogsId}/branches/{branchesId}/products/{productsId}:removeFulfillmentPlaces", "httpMethod": "POST", "id": "retail.projects.locations.catalogs.branches.products.removeFulfillmentPlaces", @@ -875,7 +875,7 @@ ] }, "removeLocalInventories": { - "description": "Remove local inventory information for a Product at a list of places at a removal timestamp. This process is asynchronous. If the request is valid, the removal will be enqueued and processed downstream. As a consequence, when a response is returned, removals are not immediately manifested in the Product queried by ProductService.GetProduct or ProductService.ListProducts. Local inventory information can only be removed using this method. ProductService.CreateProduct and ProductService.UpdateProduct has no effect on local inventories. The returned Operations will be obsolete after 1 day, and GetOperation API will return NOT_FOUND afterwards. If conflicting updates are issued, the Operations associated with the stale updates will not be marked as done until being obsolete. This feature is only available for users who have Retail Search enabled. Please enable Retail Search on Cloud Console before using this feature.", + "description": "Remove local inventory information for a Product at a list of places at a removal timestamp. This process is asynchronous. If the request is valid, the removal will be enqueued and processed downstream. As a consequence, when a response is returned, removals are not immediately manifested in the Product queried by ProductService.GetProduct or ProductService.ListProducts. Local inventory information can only be removed using this method. ProductService.CreateProduct and ProductService.UpdateProduct has no effect on local inventories. This feature is only available for users who have Retail Search enabled. Please enable Retail Search on Cloud Console before using this feature.", "flatPath": "v2alpha/projects/{projectsId}/locations/{locationsId}/catalogs/{catalogsId}/branches/{branchesId}/products/{productsId}:removeLocalInventories", "httpMethod": "POST", "id": "retail.projects.locations.catalogs.branches.products.removeLocalInventories", @@ -903,7 +903,7 @@ ] }, "setInventory": { - "description": "Updates inventory information for a Product while respecting the last update timestamps of each inventory field. This process is asynchronous and does not require the Product to exist before updating fulfillment information. If the request is valid, the update will be enqueued and processed downstream. As a consequence, when a response is returned, updates are not immediately manifested in the Product queried by ProductService.GetProduct or ProductService.ListProducts. When inventory is updated with ProductService.CreateProduct and ProductService.UpdateProduct, the specified inventory field value(s) will overwrite any existing value(s) while ignoring the last update time for this field. Furthermore, the last update time for the specified inventory fields will be overwritten to the time of the ProductService.CreateProduct or ProductService.UpdateProduct request. If no inventory fields are set in CreateProductRequest.product, then any pre-existing inventory information for this product will be used. If no inventory fields are set in SetInventoryRequest.set_mask, then any existing inventory information will be preserved. Pre-existing inventory information can only be updated with ProductService.SetInventory, ProductService.AddFulfillmentPlaces, and ProductService.RemoveFulfillmentPlaces. The returned Operations will be obsolete after 1 day, and GetOperation API will return NOT_FOUND afterwards. If conflicting updates are issued, the Operations associated with the stale updates will not be marked as done until being obsolete. This feature is only available for users who have Retail Search enabled. Please enable Retail Search on Cloud Console before using this feature.", + "description": "Updates inventory information for a Product while respecting the last update timestamps of each inventory field. This process is asynchronous and does not require the Product to exist before updating fulfillment information. If the request is valid, the update will be enqueued and processed downstream. As a consequence, when a response is returned, updates are not immediately manifested in the Product queried by ProductService.GetProduct or ProductService.ListProducts. When inventory is updated with ProductService.CreateProduct and ProductService.UpdateProduct, the specified inventory field value(s) will overwrite any existing value(s) while ignoring the last update time for this field. Furthermore, the last update time for the specified inventory fields will be overwritten to the time of the ProductService.CreateProduct or ProductService.UpdateProduct request. If no inventory fields are set in CreateProductRequest.product, then any pre-existing inventory information for this product will be used. If no inventory fields are set in SetInventoryRequest.set_mask, then any existing inventory information will be preserved. Pre-existing inventory information can only be updated with ProductService.SetInventory, ProductService.AddFulfillmentPlaces, and ProductService.RemoveFulfillmentPlaces. This feature is only available for users who have Retail Search enabled. Please enable Retail Search on Cloud Console before using this feature.", "flatPath": "v2alpha/projects/{projectsId}/locations/{locationsId}/catalogs/{catalogsId}/branches/{branchesId}/products/{productsId}:setInventory", "httpMethod": "POST", "id": "retail.projects.locations.catalogs.branches.products.setInventory", @@ -1140,7 +1140,7 @@ ], "parameters": { "dryRun": { - "description": "Optional. Whether to run a dry run to validate the request (without actually creating the model).", + "description": "Optional. Whether to run a dry_run to validate the request (without actually creating the model).", "location": "query", "type": "boolean" }, @@ -1173,7 +1173,7 @@ ], "parameters": { "name": { - "description": "Required. The resource name of the Model to delete. Format: projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}/models/{model_id}", + "description": "Required. The resource name of the [Model] to delete. Format: projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}/models/{model_id}", "location": "path", "pattern": "^projects/[^/]+/locations/[^/]+/catalogs/[^/]+/models/[^/]+$", "required": true, @@ -1225,7 +1225,7 @@ ] }, "patch": { - "description": "Update of model metadata. Only fields that currently can be updated are: `filtering_option` and `periodic_tuning_state`. If other values are provided, this API method ignores them.", + "description": "Update of model metadata. Only fields that currently can be updated are: filtering_option, periodic_tuning_state. If other values are provided, this API method will ignore them.", "flatPath": "v2alpha/projects/{projectsId}/locations/{locationsId}/catalogs/{catalogsId}/models/{modelsId}", "httpMethod": "PATCH", "id": "retail.projects.locations.catalogs.models.patch", @@ -1234,14 +1234,14 @@ ], "parameters": { "name": { - "description": "Required. The fully qualified resource name of the model. Format: `projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}/models/{model_id}` catalog_id has char limit of 50. recommendation_model_id has char limit of 40.", + "description": "Required. The fully qualified resource name of the model. Format: projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}/models/{model_id} catalog_id has char limit of 50. recommendation_model_id has char limit of 40.", "location": "path", "pattern": "^projects/[^/]+/locations/[^/]+/catalogs/[^/]+/models/[^/]+$", "required": true, "type": "string" }, "updateMask": { - "description": "Optional. Indicates which fields in the provided 'model' to update. If not set, by default updates all fields.", + "description": "Optional. Indicates which fields in the provided 'model' to update. If not set, will by default update all fields.", "format": "google-fieldmask", "location": "query", "type": "string" @@ -1787,7 +1787,7 @@ ] }, "import": { - "description": "Bulk import of User events. Request processing might be synchronous. Events that already exist are skipped. Use this method for backfilling historical user events. `Operation.response` is of type `ImportResponse`. Note that it is possible for a subset of the items to be successfully inserted. `Operation.metadata` is of type `ImportMetadata`.", + "description": "Bulk import of User events. Request processing might be synchronous. Events that already exist are skipped. Use this method for backfilling historical user events. Operation.response is of type ImportResponse. Note that it is possible for a subset of the items to be successfully inserted. Operation.metadata is of type ImportMetadata.", "flatPath": "v2alpha/projects/{projectsId}/locations/{locationsId}/catalogs/{catalogsId}/userEvents:import", "httpMethod": "POST", "id": "retail.projects.locations.catalogs.userEvents.import", @@ -2243,14 +2243,14 @@ "id": "GoogleCloudRetailV2ImportErrorsConfig", "properties": { "gcsPrefix": { - "description": "Google Cloud Storage prefix for import errors. This must be an empty, existing Cloud Storage directory. Import errors are written to sharded files in this directory, one per line, as a JSON-encoded `google.rpc.Status` message.", + "description": "Google Cloud Storage prefix for import errors. This must be an empty, existing Cloud Storage directory. Import errors will be written to sharded files in this directory, one per line, as a JSON-encoded `google.rpc.Status` message.", "type": "string" } }, "type": "object" }, "GoogleCloudRetailV2ImportMetadata": { - "description": "Metadata related to the progress of the Import operation. This is returned by the google.longrunning.Operation.metadata field.", + "description": "Metadata related to the progress of the Import operation. This will be returned by the google.longrunning.Operation.metadata field.", "id": "GoogleCloudRetailV2ImportMetadata", "properties": { "createTime": { @@ -2264,7 +2264,7 @@ "type": "string" }, "notificationPubsubTopic": { - "description": "Pub/Sub topic for receiving notification. If this field is set, when the import is finished, a notification is sent to specified Pub/Sub topic. The message data is JSON string of a Operation. Format of the Pub/Sub topic is `projects/{project}/topics/{topic}`.", + "description": "Pub/Sub topic for receiving notification. If this field is set, when the import is finished, a notification will be sent to specified Pub/Sub topic. The message data will be JSON string of a Operation. Format of the Pub/Sub topic is `projects/{project}/topics/{topic}`.", "type": "string" }, "requestId": { @@ -3171,11 +3171,11 @@ "type": "object" }, "GoogleCloudRetailV2alphaGcsSource": { - "description": "Google Cloud Storage location for input content.", + "description": "Google Cloud Storage location for input content. format.", "id": "GoogleCloudRetailV2alphaGcsSource", "properties": { "dataSchema": { - "description": "The schema to use when parsing the data from the source. Supported values for product imports: * `product` (default): One JSON Product per line. Each product must have a valid Product.id. * `product_merchant_center`: See [Importing catalog data from Merchant Center](https://cloud.google.com/retail/recommendations-ai/docs/upload-catalog#mc). Supported values for user events imports: * `user_event` (default): One JSON UserEvent per line. * `user_event_ga360`: Using https://support.google.com/analytics/answer/3437719. Supported values for control imports: * `control` (default): One JSON Control per line. Supported values for catalog attribute imports: * `catalog_attribute` (default): One CSV CatalogAttribute per line.", + "description": "The schema to use when parsing the data from the source. Supported values for product imports: * `product` (default): One JSON Product per line. Each product must have a valid Product.id. * `product_merchant_center`: See [Importing catalog data from Merchant Center](https://cloud.google.com/retail/recommendations-ai/docs/upload-catalog#mc). Supported values for user events imports: * `user_event` (default): One JSON UserEvent per line. * `user_event_ga360`: Using https://support.google.com/analytics/answer/3437719. Supported values for control imports: * 'control' (default): One JSON Control per line. Supported values for catalog attribute imports: * 'catalog_attribute' (default): One CSV CatalogAttribute per line.", "type": "string" }, "inputUris": { @@ -3238,7 +3238,7 @@ "description": "Required. The desired input location of the data." }, "notificationPubsubTopic": { - "description": "Pub/Sub topic for receiving notification. If this field is set, when the import is finished, a notification is sent to specified Pub/Sub topic. The message data is JSON string of a Operation. Format of the Pub/Sub topic is `projects/{project}/topics/{topic}`.", + "description": "Pub/Sub topic for receiving notification. If this field is set, when the import is finished, a notification will be sent to specified Pub/Sub topic. The message data will be JSON string of a Operation. Format of the Pub/Sub topic is `projects/{project}/topics/{topic}`.", "type": "string" } }, @@ -3263,14 +3263,14 @@ "id": "GoogleCloudRetailV2alphaImportErrorsConfig", "properties": { "gcsPrefix": { - "description": "Google Cloud Storage prefix for import errors. This must be an empty, existing Cloud Storage directory. Import errors are written to sharded files in this directory, one per line, as a JSON-encoded `google.rpc.Status` message.", + "description": "Google Cloud Storage prefix for import errors. This must be an empty, existing Cloud Storage directory. Import errors will be written to sharded files in this directory, one per line, as a JSON-encoded `google.rpc.Status` message.", "type": "string" } }, "type": "object" }, "GoogleCloudRetailV2alphaImportMetadata": { - "description": "Metadata related to the progress of the Import operation. This is returned by the google.longrunning.Operation.metadata field.", + "description": "Metadata related to the progress of the Import operation. This will be returned by the google.longrunning.Operation.metadata field.", "id": "GoogleCloudRetailV2alphaImportMetadata", "properties": { "createTime": { @@ -3284,7 +3284,7 @@ "type": "string" }, "notificationPubsubTopic": { - "description": "Pub/Sub topic for receiving notification. If this field is set, when the import is finished, a notification is sent to specified Pub/Sub topic. The message data is JSON string of a Operation. Format of the Pub/Sub topic is `projects/{project}/topics/{topic}`.", + "description": "Pub/Sub topic for receiving notification. If this field is set, when the import is finished, a notification will be sent to specified Pub/Sub topic. The message data will be JSON string of a Operation. Format of the Pub/Sub topic is `projects/{project}/topics/{topic}`.", "type": "string" }, "requestId": { @@ -3321,7 +3321,7 @@ "description": "Required. The desired input location of the data." }, "notificationPubsubTopic": { - "description": "Full Pub/Sub topic name for receiving notification. If this field is set, when the import is finished, a notification is sent to specified Pub/Sub topic. The message data is JSON string of a Operation. Format of the Pub/Sub topic is `projects/{project}/topics/{topic}`. It has to be within the same project as ImportProductsRequest.parent. Make sure that `service-@gcp-sa-retail.iam.gserviceaccount.com` has the `pubsub.topics.publish` IAM permission on the topic.", + "description": "Full Pub/Sub topic name for receiving notification. If this field is set, when the import is finished, a notification will be sent to specified Pub/Sub topic. The message data will be JSON string of a Operation. Format of the Pub/Sub topic is `projects/{project}/topics/{topic}`. It has to be within the same project as ImportProductsRequest.parent. Make sure that `service-@gcp-sa-retail.iam.gserviceaccount.com` has the `pubsub.topics.publish` IAM permission on the topic.", "type": "string" }, "reconciliationMode": { @@ -3343,11 +3343,11 @@ "type": "string" }, "skipDefaultBranchProtection": { - "description": "If true, this performs the FULL import even if it would delete a large proportion of the products in the default branch, which could potentially cause outages if you have live predict/search traffic. Only supported when ImportProductsRequest.reconciliation_mode is set to `FULL`.", + "description": "If true, will perform the FULL import even if it would delete a large proportion of the products in the default branch, which could potentially cause outages if you have live predict/search traffic. Only supported when ImportProductsRequest.reconciliation_mode is set to `FULL`.", "type": "boolean" }, "updateMask": { - "description": "Indicates which fields in the provided imported `products` to update. If not set, all fields are updated.", + "description": "Indicates which fields in the provided imported 'products' to update. If not set, will by default update all fields.", "format": "google-fieldmask", "type": "string" } @@ -3606,7 +3606,7 @@ "type": "object" }, "GoogleCloudRetailV2alphaModel": { - "description": "Metadata that describes the training and serving parameters of a Model. A Model can be associated with a ServingConfig and then queried through the Predict API.", + "description": "Metadata that describes the training and serving parameters of a Model. A Model can be associated with a ServingConfig and then queried through the Predict api.", "id": "GoogleCloudRetailV2alphaModel", "properties": { "createTime": { @@ -3616,14 +3616,14 @@ "type": "string" }, "dataState": { - "description": "Output only. The state of data requirements for this model: `DATA_OK` and `DATA_ERROR`. Recommendation model cannot be trained if the data is in `DATA_ERROR` state. Recommendation model can have `DATA_ERROR` state even if serving state is `ACTIVE`: models were trained successfully before, but cannot be refreshed because model no longer has sufficient data for training.", + "description": "Output only. The state of data requirements for this model: DATA_OK and DATA_ERROR. Recommendation model cannot be trained if the data is in DATA_ERROR state. Recommendation model can have DATA_ERROR state even if serving state is ACTIVE: models were trained successfully before, but cannot be refreshed because model no longer has sufficient data for training.", "enum": [ "DATA_STATE_UNSPECIFIED", "DATA_OK", "DATA_ERROR" ], "enumDescriptions": [ - "Unspecified default value, should never be explicitly set.", + "Unspecified default value - should never be explicitly set.", "The model has sufficient training data.", "The model does not have sufficient training data. Error messages can be queried via Stackdriver." ], @@ -3631,11 +3631,11 @@ "type": "string" }, "displayName": { - "description": "Required. The display name of the model. Should be human readable, used to display Recommendation Models in the Retail Cloud Console Dashboard. UTF-8 encoded string with limit of 1024 characters.", + "description": "Required. The display name of the model. Should be human readable, used to display Recommendation Models in the Retail Cloud Cosole Dashboard. UTF-8 encoded string with limit of 1024 characters.", "type": "string" }, "filteringOption": { - "description": "Optional. If `RECOMMENDATIONS_FILTERING_ENABLED`, recommendation filtering by attributes is enabled for the model.", + "description": "Optional. If RECOMMENDATIONS_FILTERING_ENABLED, recommendation filtering by attributes is enabled for the model.", "enum": [ "RECOMMENDATIONS_FILTERING_OPTION_UNSPECIFIED", "RECOMMENDATIONS_FILTERING_DISABLED", @@ -3655,7 +3655,7 @@ "type": "string" }, "name": { - "description": "Required. The fully qualified resource name of the model. Format: `projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}/models/{model_id}` catalog_id has char limit of 50. recommendation_model_id has char limit of 40.", + "description": "Required. The fully qualified resource name of the model. Format: projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}/models/{model_id} catalog_id has char limit of 50. recommendation_model_id has char limit of 40.", "type": "string" }, "optimizationObjective": { @@ -3667,7 +3667,7 @@ "description": "Optional. The page optimization config." }, "periodicTuningState": { - "description": "Optional. The state of periodic tuning. The period we use is 3 months - to do a one-off tune earlier use the `TuneModel` method. Default value is `PERIODIC_TUNING_ENABLED`.", + "description": "Optional. The state of periodic tuning. The period we use is 3 months - to do a one-off tune earlier use the TuneModel method. Default value is PERIODIC_TUNING_ENABLED.", "enum": [ "PERIODIC_TUNING_STATE_UNSPECIFIED", "PERIODIC_TUNING_DISABLED", @@ -3675,10 +3675,10 @@ "PERIODIC_TUNING_ENABLED" ], "enumDescriptions": [ - "Unspecified default value, should never be explicitly set.", - "The model has periodic tuning disabled. Tuning can be reenabled by calling the `EnableModelPeriodicTuning` method or by calling the `TuneModel` method.", - "The model cannot be tuned with periodic tuning OR the `TuneModel` method. Hide the options in customer UI and reject any requests through the backend self serve API.", - "The model has periodic tuning enabled. Tuning can be disabled by calling the `DisableModelPeriodicTuning` method." + "Unspecified default value - should never be explicitly set.", + "The model has periodic tuning disabled. Tuning can be reenabled by calling the EnableModelPeriodicTuning method or by calling the TuneModel method.", + "The model cannot be tuned with periodic tuning OR the TuneModel method. Hide the options in customer UI and reject any requests through the backend self serve API.", + "The model has periodic tuning enabled. Tuning can be disabled by calling the DisableModelPeriodicTuning method." ], "type": "string" }, @@ -3691,7 +3691,7 @@ "type": "array" }, "servingState": { - "description": "Output only. The serving state of the model: `ACTIVE`, `NOT_ACTIVE`.", + "description": "Output only. The serving state of the model: ACTIVE, NOT_ACTIVE.", "enum": [ "SERVING_STATE_UNSPECIFIED", "INACTIVE", @@ -3702,13 +3702,13 @@ "Unspecified serving state.", "The model is not serving.", "The model is serving and can be queried.", - "The model is trained on tuned hyperparameters and can be queried." + "The model is trained on tuned hyperparameters, and can be queried." ], "readOnly": true, "type": "string" }, "trainingState": { - "description": "Optional. The training state that the model is in (e.g. `TRAINING` or `PAUSED`). Since part of the cost of running the service is frequency of training - this can be used to determine when to train model in order to control cost. If not specified: the default value for `CreateModel` method is `TRAINING`. The default value for `UpdateModel` method is to keep the state the same as before.", + "description": "Optional. The training state that the model is in (e.g. TRAINING or PAUSED). Since part of the cost of running the service is frequency of training - this can be used to determine when to train model in order to control cost. If not specified: the default value for CreateModel method is TRAINING. the default value for UpdateModel method is to keep the state the same as before.", "enum": [ "TRAINING_STATE_UNSPECIFIED", "PAUSED", @@ -3727,7 +3727,7 @@ "type": "string" }, "type": { - "description": "Required. The type of model e.g. `home-page`. Currently supported values: `recommended-for-you`, `others-you-may-like`, `frequently-bought-together`, `page-optimization`, `similar-items`, `buy-it-again`, and `recently-viewed`(readonly value).", + "description": "Required. The type of model e.g. `home-page`. Currently supported values: `recommended-for-you`, `others-you-may-like`, `frequently-bought-together`, `page-optimization`, 'similar-items', 'buy-it-again', `recently-viewed`(readonly value).", "type": "string" }, "updateTime": { @@ -3766,9 +3766,9 @@ "enumDescriptions": [ "Unspecified value for restriction.", "Allow any ServingConfig to be show on any number of panels. Example: `Panel1 candidates`: pdp_ctr, pdp_cvr, home_page_ctr_no_diversity `Panel2 candidates`: home_page_ctr_no_diversity, home_page_ctr_diversity, pdp_cvr_no_diversity `Restriction` = NO_RESTRICTION `Valid combinations`: * * (pdp_ctr, home_page_ctr_no_diversity) * (pdp_ctr, home_page_ctr_diversity) * (pdp_ctr, pdp_cvr_no_diversity) * (pdp_cvr, home_page_ctr_no_diversity) * (pdp_cvr, home_page_ctr_diversity) * (pdp_cvr, pdp_cvr_no_diversity) * (home_page_ctr_no_diversity, home_page_ctr_no_diversity) * (home_page_ctr_no_diversity, home_page_ctr_diversity) * (home_page_ctr_no_diversity, pdp_cvr_no_diversity) * `Invalid combinations`: []", - "Do not allow the same ServingConfig.name to be shown on multiple panels. Example: `Panel1 candidates`: * pdp_ctr, pdp_cvr, home_page_ctr_no_diversity * `Panel2 candidates`: * home_page_ctr_no_diversity, home_page_ctr_diversity_low, pdp_cvr_no_diversity * `Restriction` = `UNIQUE_SERVING_CONFIG_RESTRICTION` `Valid combinations`: * * (pdp_ctr, home_page_ctr_no_diversity) * (pdp_ctr, home_page_ctr_diversity_low) * (pdp_ctr, pdp_cvr_no_diversity) * (pdp_ctr, pdp_cvr_no_diversity) * (pdp_cvr, home_page_ctr_no_diversity) * (pdp_cvr, home_page_ctr_diversity_low) * (pdp_cvr, pdp_cvr_no_diversity) * (home_page_ctr_no_diversity, home_page_ctr_diversity_low) * (home_page_ctr_no_diversity, pdp_cvr_no_diversity) * `Invalid combinations`: * * (home_page_ctr_no_diversity, home_page_ctr_no_diversity) *", - "Do not allow multiple ServingConfigs with same Model.name to be show on on different panels. Example: `Panel1 candidates`: * pdp_ctr, pdp_cvr, home_page_ctr_no_diversity * `Panel2 candidates`: * home_page_ctr_no_diversity, home_page_ctr_diversity_low, pdp_cvr_no_diversity * `Restriction` = `UNIQUE_MODEL_RESTRICTION` `Valid combinations`: * * (pdp_ctr, home_page_ctr_no_diversity) * (pdp_ctr, home_page_ctr_diversity) * (pdp_ctr, pdp_cvr_no_diversity) * (pdp_ctr, pdp_cvr_no_diversity) * (pdp_cvr, home_page_ctr_no_diversity) * (pdp_cvr, home_page_ctr_diversity_low) * (home_page_ctr_no_diversity, pdp_cvr_no_diversity) * `Invalid combinations`: * * (home_page_ctr_no_diversity, home_page_ctr_no_diversity) * (pdp_cvr, pdp_cvr_no_diversity) *", - "Do not allow multiple ServingConfigs with same Model.type to be shown on different panels. Example: `Panel1 candidates`: * pdp_ctr, pdp_cvr, home_page_ctr_no_diversity * `Panel2 candidates`: * home_page_ctr_no_diversity, home_page_ctr_diversity_low, pdp_cvr_no_diversity * `Restriction` = `UNIQUE_MODEL_RESTRICTION` `Valid combinations`: * * (pdp_ctr, home_page_ctr_no_diversity) * (pdp_ctr, home_page_ctr_diversity) * (pdp_cvr, home_page_ctr_no_diversity) * (pdp_cvr, home_page_ctr_diversity_low) * (home_page_ctr_no_diversity, pdp_cvr_no_diversity) * `Invalid combinations`: * * (pdp_ctr, pdp_cvr_no_diversity) * (pdp_ctr, pdp_cvr_no_diversity) * (pdp_cvr, pdp_cvr_no_diversity) * (home_page_ctr_no_diversity, home_page_ctr_no_diversity) * (home_page_ctr_no_diversity, home_page_ctr_diversity) *" + "Do not allow the same ServingConfig.name to be shown on multiple panels. Example: `Panel1 candidates`: * pdp_ctr, pdp_cvr, home_page_ctr_no_diversity * `Panel2 candidates`: * home_page_ctr_no_diversity, home_page_ctr_diversity_low, pdp_cvr_no_diversity * `Restriction` = UNIQUE_SERVING_CONFIG_RESTRICTION `Valid combinations`: * * (pdp_ctr, home_page_ctr_no_diversity) * (pdp_ctr, home_page_ctr_diversity_low) * (pdp_ctr, pdp_cvr_no_diversity) * (pdp_ctr, pdp_cvr_no_diversity) * (pdp_cvr, home_page_ctr_no_diversity) * (pdp_cvr, home_page_ctr_diversity_low) * (pdp_cvr, pdp_cvr_no_diversity) * (home_page_ctr_no_diversity, home_page_ctr_diversity_low) * (home_page_ctr_no_diversity, pdp_cvr_no_diversity) * `Invalid combinations`: * * (home_page_ctr_no_diversity, home_page_ctr_no_diversity) *", + "Do not allow multiple ServingConfigs with same Model.name to be show on on different panels. Example: `Panel1 candidates`: * pdp_ctr, pdp_cvr, home_page_ctr_no_diversity * `Panel2 candidates`: * home_page_ctr_no_diversity, home_page_ctr_diversity_low, pdp_cvr_no_diversity * `Restriction` = UNIQUE_MODEL_RESTRICTION `Valid combinations`: * * (pdp_ctr, home_page_ctr_no_diversity) * (pdp_ctr, home_page_ctr_diversity) * (pdp_ctr, pdp_cvr_no_diversity) * (pdp_ctr, pdp_cvr_no_diversity) * (pdp_cvr, home_page_ctr_no_diversity) * (pdp_cvr, home_page_ctr_diversity_low) * (home_page_ctr_no_diversity, pdp_cvr_no_diversity) * `Invalid combinations`: * * (home_page_ctr_no_diversity, home_page_ctr_no_diversity) * (pdp_cvr, pdp_cvr_no_diversity) *", + "Do not allow multiple ServingConfigs with same Model.type to be shown on different panels. Example: `Panel1 candidates`: * pdp_ctr, pdp_cvr, home_page_ctr_no_diversity * `Panel2 candidates`: * home_page_ctr_no_diversity, home_page_ctr_diversity_low, pdp_cvr_no_diversity * `Restriction` = UNIQUE_MODEL_RESTRICTION `Valid combinations`: * * (pdp_ctr, home_page_ctr_no_diversity) * (pdp_ctr, home_page_ctr_diversity) * (pdp_cvr, home_page_ctr_no_diversity) * (pdp_cvr, home_page_ctr_diversity_low) * (home_page_ctr_no_diversity, pdp_cvr_no_diversity) * `Invalid combinations`: * * (pdp_ctr, pdp_cvr_no_diversity) * (pdp_ctr, pdp_cvr_no_diversity) * (pdp_cvr, pdp_cvr_no_diversity) * (home_page_ctr_no_diversity, home_page_ctr_no_diversity) * (home_page_ctr_no_diversity, home_page_ctr_diversity) *" ], "type": "string" } @@ -3780,7 +3780,7 @@ "id": "GoogleCloudRetailV2alphaModelPageOptimizationConfigCandidate", "properties": { "servingConfigId": { - "description": "This has to be a valid ServingConfig identifier. For example, for a ServingConfig with full name: `projects/*/locations/global/catalogs/default_catalog/servingConfigs/my_candidate_config`, this would be `my_candidate_config`.", + "description": "This has to be a valid ServingConfig identifier. e.g. for a ServingConfig with full name: `projects/*/locations/global/catalogs/default_catalog/servingConfigs/my_candidate_config` this would be 'my_candidate_config'", "type": "string" } }, @@ -3799,7 +3799,7 @@ }, "defaultCandidate": { "$ref": "GoogleCloudRetailV2alphaModelPageOptimizationConfigCandidate", - "description": "Required. The default candidate. If the model fails at serving time, we fall back to the default." + "description": "Required. The default candidate (in case the model fails at serving time, we can fall back to the default)." }, "displayName": { "description": "Optional. The name to display for the panel.", @@ -3809,11 +3809,11 @@ "type": "object" }, "GoogleCloudRetailV2alphaModelServingConfigList": { - "description": "Represents an ordered combination of valid serving configs, which can be used for `PAGE_OPTIMIZATION` recommendations.", + "description": "Represents an ordered combination of valid serving configs, which / may be used for PAGE_OPTIMIZATION recommendations.", "id": "GoogleCloudRetailV2alphaModelServingConfigList", "properties": { "servingConfigIds": { - "description": "Optional. A set of valid serving configs that may be used for `PAGE_OPTIMIZATION`.", + "description": "Optional. A set of valid serving configs that may be used for PAGE_OPTIMIZATION.", "items": { "type": "string" }, @@ -5784,14 +5784,14 @@ "id": "GoogleCloudRetailV2betaImportErrorsConfig", "properties": { "gcsPrefix": { - "description": "Google Cloud Storage prefix for import errors. This must be an empty, existing Cloud Storage directory. Import errors are written to sharded files in this directory, one per line, as a JSON-encoded `google.rpc.Status` message.", + "description": "Google Cloud Storage prefix for import errors. This must be an empty, existing Cloud Storage directory. Import errors will be written to sharded files in this directory, one per line, as a JSON-encoded `google.rpc.Status` message.", "type": "string" } }, "type": "object" }, "GoogleCloudRetailV2betaImportMetadata": { - "description": "Metadata related to the progress of the Import operation. This is returned by the google.longrunning.Operation.metadata field.", + "description": "Metadata related to the progress of the Import operation. This will be returned by the google.longrunning.Operation.metadata field.", "id": "GoogleCloudRetailV2betaImportMetadata", "properties": { "createTime": { @@ -5805,7 +5805,7 @@ "type": "string" }, "notificationPubsubTopic": { - "description": "Pub/Sub topic for receiving notification. If this field is set, when the import is finished, a notification is sent to specified Pub/Sub topic. The message data is JSON string of a Operation. Format of the Pub/Sub topic is `projects/{project}/topics/{topic}`.", + "description": "Pub/Sub topic for receiving notification. If this field is set, when the import is finished, a notification will be sent to specified Pub/Sub topic. The message data will be JSON string of a Operation. Format of the Pub/Sub topic is `projects/{project}/topics/{topic}`.", "type": "string" }, "requestId": { diff --git a/retail/v2alpha/retail-gen.go b/retail/v2alpha/retail-gen.go index 7bf91d811a9..6a790d1682a 100644 --- a/retail/v2alpha/retail-gen.go +++ b/retail/v2alpha/retail-gen.go @@ -683,7 +683,7 @@ func (s *GoogleCloudRetailV2ImportCompletionDataResponse) MarshalJSON() ([]byte, // for Import related errors. type GoogleCloudRetailV2ImportErrorsConfig struct { // GcsPrefix: Google Cloud Storage prefix for import errors. This must - // be an empty, existing Cloud Storage directory. Import errors are + // be an empty, existing Cloud Storage directory. Import errors will be // written to sharded files in this directory, one per line, as a // JSON-encoded `google.rpc.Status` message. GcsPrefix string `json:"gcsPrefix,omitempty"` @@ -712,7 +712,7 @@ func (s *GoogleCloudRetailV2ImportErrorsConfig) MarshalJSON() ([]byte, error) { } // GoogleCloudRetailV2ImportMetadata: Metadata related to the progress -// of the Import operation. This is returned by the +// of the Import operation. This will be returned by the // google.longrunning.Operation.metadata field. type GoogleCloudRetailV2ImportMetadata struct { // CreateTime: Operation create time. @@ -723,9 +723,9 @@ type GoogleCloudRetailV2ImportMetadata struct { FailureCount int64 `json:"failureCount,omitempty,string"` // NotificationPubsubTopic: Pub/Sub topic for receiving notification. If - // this field is set, when the import is finished, a notification is - // sent to specified Pub/Sub topic. The message data is JSON string of a - // Operation. Format of the Pub/Sub topic is + // this field is set, when the import is finished, a notification will + // be sent to specified Pub/Sub topic. The message data will be JSON + // string of a Operation. Format of the Pub/Sub topic is // `projects/{project}/topics/{topic}`. NotificationPubsubTopic string `json:"notificationPubsubTopic,omitempty"` @@ -2448,7 +2448,7 @@ func (s *GoogleCloudRetailV2alphaFulfillmentInfo) MarshalJSON() ([]byte, error) } // GoogleCloudRetailV2alphaGcsSource: Google Cloud Storage location for -// input content. +// input content. format. type GoogleCloudRetailV2alphaGcsSource struct { // DataSchema: The schema to use when parsing the data from the source. // Supported values for product imports: * `product` (default): One JSON @@ -2459,9 +2459,9 @@ type GoogleCloudRetailV2alphaGcsSource struct { // Supported values for user events imports: * `user_event` (default): // One JSON UserEvent per line. * `user_event_ga360`: Using // https://support.google.com/analytics/answer/3437719. Supported values - // for control imports: * `control` (default): One JSON Control per + // for control imports: * 'control' (default): One JSON Control per // line. Supported values for catalog attribute imports: * - // `catalog_attribute` (default): One CSV CatalogAttribute per line. + // 'catalog_attribute' (default): One CSV CatalogAttribute per line. DataSchema string `json:"dataSchema,omitempty"` // InputUris: Required. Google Cloud Storage URIs to input files. URI @@ -2588,9 +2588,9 @@ type GoogleCloudRetailV2alphaImportCompletionDataRequest struct { InputConfig *GoogleCloudRetailV2alphaCompletionDataInputConfig `json:"inputConfig,omitempty"` // NotificationPubsubTopic: Pub/Sub topic for receiving notification. If - // this field is set, when the import is finished, a notification is - // sent to specified Pub/Sub topic. The message data is JSON string of a - // Operation. Format of the Pub/Sub topic is + // this field is set, when the import is finished, a notification will + // be sent to specified Pub/Sub topic. The message data will be JSON + // string of a Operation. Format of the Pub/Sub topic is // `projects/{project}/topics/{topic}`. NotificationPubsubTopic string `json:"notificationPubsubTopic,omitempty"` @@ -2654,7 +2654,7 @@ func (s *GoogleCloudRetailV2alphaImportCompletionDataResponse) MarshalJSON() ([] // destination for Import related errors. type GoogleCloudRetailV2alphaImportErrorsConfig struct { // GcsPrefix: Google Cloud Storage prefix for import errors. This must - // be an empty, existing Cloud Storage directory. Import errors are + // be an empty, existing Cloud Storage directory. Import errors will be // written to sharded files in this directory, one per line, as a // JSON-encoded `google.rpc.Status` message. GcsPrefix string `json:"gcsPrefix,omitempty"` @@ -2683,7 +2683,7 @@ func (s *GoogleCloudRetailV2alphaImportErrorsConfig) MarshalJSON() ([]byte, erro } // GoogleCloudRetailV2alphaImportMetadata: Metadata related to the -// progress of the Import operation. This is returned by the +// progress of the Import operation. This will be returned by the // google.longrunning.Operation.metadata field. type GoogleCloudRetailV2alphaImportMetadata struct { // CreateTime: Operation create time. @@ -2694,9 +2694,9 @@ type GoogleCloudRetailV2alphaImportMetadata struct { FailureCount int64 `json:"failureCount,omitempty,string"` // NotificationPubsubTopic: Pub/Sub topic for receiving notification. If - // this field is set, when the import is finished, a notification is - // sent to specified Pub/Sub topic. The message data is JSON string of a - // Operation. Format of the Pub/Sub topic is + // this field is set, when the import is finished, a notification will + // be sent to specified Pub/Sub topic. The message data will be JSON + // string of a Operation. Format of the Pub/Sub topic is // `projects/{project}/topics/{topic}`. NotificationPubsubTopic string `json:"notificationPubsubTopic,omitempty"` @@ -2749,9 +2749,9 @@ type GoogleCloudRetailV2alphaImportProductsRequest struct { // NotificationPubsubTopic: Full Pub/Sub topic name for receiving // notification. If this field is set, when the import is finished, a - // notification is sent to specified Pub/Sub topic. The message data is - // JSON string of a Operation. Format of the Pub/Sub topic is - // `projects/{project}/topics/{topic}`. It has to be within the same + // notification will be sent to specified Pub/Sub topic. The message + // data will be JSON string of a Operation. Format of the Pub/Sub topic + // is `projects/{project}/topics/{topic}`. It has to be within the same // project as ImportProductsRequest.parent. Make sure that // `service-@gcp-sa-retail.iam.gserviceaccount.com` has the // `pubsub.topics.publish` IAM permission on the topic. @@ -2772,7 +2772,7 @@ type GoogleCloudRetailV2alphaImportProductsRequest struct { // RequestId: Deprecated. This field has no effect. RequestId string `json:"requestId,omitempty"` - // SkipDefaultBranchProtection: If true, this performs the FULL import + // SkipDefaultBranchProtection: If true, will perform the FULL import // even if it would delete a large proportion of the products in the // default branch, which could potentially cause outages if you have // live predict/search traffic. Only supported when @@ -2780,7 +2780,7 @@ type GoogleCloudRetailV2alphaImportProductsRequest struct { SkipDefaultBranchProtection bool `json:"skipDefaultBranchProtection,omitempty"` // UpdateMask: Indicates which fields in the provided imported - // `products` to update. If not set, all fields are updated. + // 'products' to update. If not set, will by default update all fields. UpdateMask string `json:"updateMask,omitempty"` // ForceSendFields is a list of field names (e.g. "ErrorsConfig") to @@ -3325,21 +3325,21 @@ func (s *GoogleCloudRetailV2alphaMerchantCenterLinkingConfig) MarshalJSON() ([]b // GoogleCloudRetailV2alphaModel: Metadata that describes the training // and serving parameters of a Model. A Model can be associated with a -// ServingConfig and then queried through the Predict API. +// ServingConfig and then queried through the Predict api. type GoogleCloudRetailV2alphaModel struct { // CreateTime: Output only. Timestamp the Recommendation Model was // created at. CreateTime string `json:"createTime,omitempty"` // DataState: Output only. The state of data requirements for this - // model: `DATA_OK` and `DATA_ERROR`. Recommendation model cannot be - // trained if the data is in `DATA_ERROR` state. Recommendation model - // can have `DATA_ERROR` state even if serving state is `ACTIVE`: models - // were trained successfully before, but cannot be refreshed because - // model no longer has sufficient data for training. + // model: DATA_OK and DATA_ERROR. Recommendation model cannot be trained + // if the data is in DATA_ERROR state. Recommendation model can have + // DATA_ERROR state even if serving state is ACTIVE: models were trained + // successfully before, but cannot be refreshed because model no longer + // has sufficient data for training. // // Possible values: - // "DATA_STATE_UNSPECIFIED" - Unspecified default value, should never + // "DATA_STATE_UNSPECIFIED" - Unspecified default value - should never // be explicitly set. // "DATA_OK" - The model has sufficient training data. // "DATA_ERROR" - The model does not have sufficient training data. @@ -3348,11 +3348,10 @@ type GoogleCloudRetailV2alphaModel struct { // DisplayName: Required. The display name of the model. Should be human // readable, used to display Recommendation Models in the Retail Cloud - // Console Dashboard. UTF-8 encoded string with limit of 1024 - // characters. + // Cosole Dashboard. UTF-8 encoded string with limit of 1024 characters. DisplayName string `json:"displayName,omitempty"` - // FilteringOption: Optional. If `RECOMMENDATIONS_FILTERING_ENABLED`, + // FilteringOption: Optional. If RECOMMENDATIONS_FILTERING_ENABLED, // recommendation filtering by attributes is enabled for the model. // // Possible values: @@ -3371,8 +3370,8 @@ type GoogleCloudRetailV2alphaModel struct { // Name: Required. The fully qualified resource name of the model. // Format: - // `projects/{project_number}/locations/{location_id}/catalogs/{catalog_i - // d}/models/{model_id}` catalog_id has char limit of 50. + // projects/{project_number}/locations/{location_id}/catalogs/{catalog_id + // }/models/{model_id} catalog_id has char limit of 50. // recommendation_model_id has char limit of 40. Name string `json:"name,omitempty"` @@ -3389,20 +3388,19 @@ type GoogleCloudRetailV2alphaModel struct { // PeriodicTuningState: Optional. The state of periodic tuning. The // period we use is 3 months - to do a one-off tune earlier use the - // `TuneModel` method. Default value is `PERIODIC_TUNING_ENABLED`. + // TuneModel method. Default value is PERIODIC_TUNING_ENABLED. // // Possible values: - // "PERIODIC_TUNING_STATE_UNSPECIFIED" - Unspecified default value, + // "PERIODIC_TUNING_STATE_UNSPECIFIED" - Unspecified default value - // should never be explicitly set. // "PERIODIC_TUNING_DISABLED" - The model has periodic tuning // disabled. Tuning can be reenabled by calling the - // `EnableModelPeriodicTuning` method or by calling the `TuneModel` - // method. + // EnableModelPeriodicTuning method or by calling the TuneModel method. // "ALL_TUNING_DISABLED" - The model cannot be tuned with periodic - // tuning OR the `TuneModel` method. Hide the options in customer UI and + // tuning OR the TuneModel method. Hide the options in customer UI and // reject any requests through the backend self serve API. // "PERIODIC_TUNING_ENABLED" - The model has periodic tuning enabled. - // Tuning can be disabled by calling the `DisableModelPeriodicTuning` + // Tuning can be disabled by calling the DisableModelPeriodicTuning // method. PeriodicTuningState string `json:"periodicTuningState,omitempty"` @@ -3410,24 +3408,23 @@ type GoogleCloudRetailV2alphaModel struct { // associated with the PageOptimizationConfig. ServingConfigLists []*GoogleCloudRetailV2alphaModelServingConfigList `json:"servingConfigLists,omitempty"` - // ServingState: Output only. The serving state of the model: `ACTIVE`, - // `NOT_ACTIVE`. + // ServingState: Output only. The serving state of the model: ACTIVE, + // NOT_ACTIVE. // // Possible values: // "SERVING_STATE_UNSPECIFIED" - Unspecified serving state. // "INACTIVE" - The model is not serving. // "ACTIVE" - The model is serving and can be queried. - // "TUNED" - The model is trained on tuned hyperparameters and can be + // "TUNED" - The model is trained on tuned hyperparameters, and can be // queried. ServingState string `json:"servingState,omitempty"` // TrainingState: Optional. The training state that the model is in - // (e.g. `TRAINING` or `PAUSED`). Since part of the cost of running the + // (e.g. TRAINING or PAUSED). Since part of the cost of running the // service is frequency of training - this can be used to determine when // to train model in order to control cost. If not specified: the - // default value for `CreateModel` method is `TRAINING`. The default - // value for `UpdateModel` method is to keep the state the same as - // before. + // default value for CreateModel method is TRAINING. the default value + // for UpdateModel method is to keep the state the same as before. // // Possible values: // "TRAINING_STATE_UNSPECIFIED" - Unspecified training state. @@ -3442,8 +3439,8 @@ type GoogleCloudRetailV2alphaModel struct { // Type: Required. The type of model e.g. `home-page`. Currently // supported values: `recommended-for-you`, `others-you-may-like`, - // `frequently-bought-together`, `page-optimization`, `similar-items`, - // `buy-it-again`, and `recently-viewed`(readonly value). + // `frequently-bought-together`, `page-optimization`, 'similar-items', + // 'buy-it-again', `recently-viewed`(readonly value). Type string `json:"type,omitempty"` // UpdateTime: Output only. Timestamp the Recommendation Model was last @@ -3524,21 +3521,21 @@ type GoogleCloudRetailV2alphaModelPageOptimizationConfig struct { // candidates`: * pdp_ctr, pdp_cvr, home_page_ctr_no_diversity * `Panel2 // candidates`: * home_page_ctr_no_diversity, // home_page_ctr_diversity_low, pdp_cvr_no_diversity * `Restriction` = - // `UNIQUE_SERVING_CONFIG_RESTRICTION` `Valid combinations`: * * - // (pdp_ctr, home_page_ctr_no_diversity) * (pdp_ctr, - // home_page_ctr_diversity_low) * (pdp_ctr, pdp_cvr_no_diversity) * - // (pdp_ctr, pdp_cvr_no_diversity) * (pdp_cvr, - // home_page_ctr_no_diversity) * (pdp_cvr, home_page_ctr_diversity_low) - // * (pdp_cvr, pdp_cvr_no_diversity) * (home_page_ctr_no_diversity, - // home_page_ctr_diversity_low) * (home_page_ctr_no_diversity, - // pdp_cvr_no_diversity) * `Invalid combinations`: * * - // (home_page_ctr_no_diversity, home_page_ctr_no_diversity) * + // UNIQUE_SERVING_CONFIG_RESTRICTION `Valid combinations`: * * (pdp_ctr, + // home_page_ctr_no_diversity) * (pdp_ctr, home_page_ctr_diversity_low) + // * (pdp_ctr, pdp_cvr_no_diversity) * (pdp_ctr, pdp_cvr_no_diversity) * + // (pdp_cvr, home_page_ctr_no_diversity) * (pdp_cvr, + // home_page_ctr_diversity_low) * (pdp_cvr, pdp_cvr_no_diversity) * + // (home_page_ctr_no_diversity, home_page_ctr_diversity_low) * + // (home_page_ctr_no_diversity, pdp_cvr_no_diversity) * `Invalid + // combinations`: * * (home_page_ctr_no_diversity, + // home_page_ctr_no_diversity) * // "UNIQUE_MODEL_RESTRICTION" - Do not allow multiple ServingConfigs // with same Model.name to be show on on different panels. Example: // `Panel1 candidates`: * pdp_ctr, pdp_cvr, home_page_ctr_no_diversity * // `Panel2 candidates`: * home_page_ctr_no_diversity, // home_page_ctr_diversity_low, pdp_cvr_no_diversity * `Restriction` = - // `UNIQUE_MODEL_RESTRICTION` `Valid combinations`: * * (pdp_ctr, + // UNIQUE_MODEL_RESTRICTION `Valid combinations`: * * (pdp_ctr, // home_page_ctr_no_diversity) * (pdp_ctr, home_page_ctr_diversity) * // (pdp_ctr, pdp_cvr_no_diversity) * (pdp_ctr, pdp_cvr_no_diversity) * // (pdp_cvr, home_page_ctr_no_diversity) * (pdp_cvr, @@ -3551,7 +3548,7 @@ type GoogleCloudRetailV2alphaModelPageOptimizationConfig struct { // Example: `Panel1 candidates`: * pdp_ctr, pdp_cvr, // home_page_ctr_no_diversity * `Panel2 candidates`: * // home_page_ctr_no_diversity, home_page_ctr_diversity_low, - // pdp_cvr_no_diversity * `Restriction` = `UNIQUE_MODEL_RESTRICTION` + // pdp_cvr_no_diversity * `Restriction` = UNIQUE_MODEL_RESTRICTION // `Valid combinations`: * * (pdp_ctr, home_page_ctr_no_diversity) * // (pdp_ctr, home_page_ctr_diversity) * (pdp_cvr, // home_page_ctr_no_diversity) * (pdp_cvr, home_page_ctr_diversity_low) @@ -3591,10 +3588,10 @@ func (s *GoogleCloudRetailV2alphaModelPageOptimizationConfig) MarshalJSON() ([]b // candidate to consider for a given panel. Currently only ServingConfig // are valid candidates. type GoogleCloudRetailV2alphaModelPageOptimizationConfigCandidate struct { - // ServingConfigId: This has to be a valid ServingConfig identifier. For - // example, for a ServingConfig with full name: + // ServingConfigId: This has to be a valid ServingConfig identifier. + // e.g. for a ServingConfig with full name: // `projects/*/locations/global/catalogs/default_catalog/servingConfigs/m - // y_candidate_config`, this would be `my_candidate_config`. + // y_candidate_config` this would be 'my_candidate_config' ServingConfigId string `json:"servingConfigId,omitempty"` // ForceSendFields is a list of field names (e.g. "ServingConfigId") to @@ -3628,8 +3625,8 @@ type GoogleCloudRetailV2alphaModelPageOptimizationConfigPanel struct { // = 10. Candidates []*GoogleCloudRetailV2alphaModelPageOptimizationConfigCandidate `json:"candidates,omitempty"` - // DefaultCandidate: Required. The default candidate. If the model fails - // at serving time, we fall back to the default. + // DefaultCandidate: Required. The default candidate (in case the model + // fails at serving time, we can fall back to the default). DefaultCandidate *GoogleCloudRetailV2alphaModelPageOptimizationConfigCandidate `json:"defaultCandidate,omitempty"` // DisplayName: Optional. The name to display for the panel. @@ -3659,11 +3656,11 @@ func (s *GoogleCloudRetailV2alphaModelPageOptimizationConfigPanel) MarshalJSON() } // GoogleCloudRetailV2alphaModelServingConfigList: Represents an ordered -// combination of valid serving configs, which can be used for -// `PAGE_OPTIMIZATION` recommendations. +// combination of valid serving configs, which / may be used for +// PAGE_OPTIMIZATION recommendations. type GoogleCloudRetailV2alphaModelServingConfigList struct { // ServingConfigIds: Optional. A set of valid serving configs that may - // be used for `PAGE_OPTIMIZATION`. + // be used for PAGE_OPTIMIZATION. ServingConfigIds []string `json:"servingConfigIds,omitempty"` // ForceSendFields is a list of field names (e.g. "ServingConfigIds") to @@ -7559,7 +7556,7 @@ func (s *GoogleCloudRetailV2betaImportCompletionDataResponse) MarshalJSON() ([]b // destination for Import related errors. type GoogleCloudRetailV2betaImportErrorsConfig struct { // GcsPrefix: Google Cloud Storage prefix for import errors. This must - // be an empty, existing Cloud Storage directory. Import errors are + // be an empty, existing Cloud Storage directory. Import errors will be // written to sharded files in this directory, one per line, as a // JSON-encoded `google.rpc.Status` message. GcsPrefix string `json:"gcsPrefix,omitempty"` @@ -7588,7 +7585,7 @@ func (s *GoogleCloudRetailV2betaImportErrorsConfig) MarshalJSON() ([]byte, error } // GoogleCloudRetailV2betaImportMetadata: Metadata related to the -// progress of the Import operation. This is returned by the +// progress of the Import operation. This will be returned by the // google.longrunning.Operation.metadata field. type GoogleCloudRetailV2betaImportMetadata struct { // CreateTime: Operation create time. @@ -7599,9 +7596,9 @@ type GoogleCloudRetailV2betaImportMetadata struct { FailureCount int64 `json:"failureCount,omitempty,string"` // NotificationPubsubTopic: Pub/Sub topic for receiving notification. If - // this field is set, when the import is finished, a notification is - // sent to specified Pub/Sub topic. The message data is JSON string of a - // Operation. Format of the Pub/Sub topic is + // this field is set, when the import is finished, a notification will + // be sent to specified Pub/Sub topic. The message data will be JSON + // string of a Operation. Format of the Pub/Sub topic is // `projects/{project}/topics/{topic}`. NotificationPubsubTopic string `json:"notificationPubsubTopic,omitempty"` @@ -10415,12 +10412,9 @@ type ProjectsLocationsCatalogsBranchesProductsAddFulfillmentPlacesCall struct { // processed downstream. As a consequence, when a response is returned, // the added place IDs are not immediately manifested in the Product // queried by ProductService.GetProduct or ProductService.ListProducts. -// The returned Operations will be obsolete after 1 day, and -// GetOperation API will return NOT_FOUND afterwards. If conflicting -// updates are issued, the Operations associated with the stale updates -// will not be marked as done until being obsolete. This feature is only -// available for users who have Retail Search enabled. Please enable -// Retail Search on Cloud Console before using this feature. +// This feature is only available for users who have Retail Search +// enabled. Please enable Retail Search on Cloud Console before using +// this feature. // // - product: Full resource name of Product, such as // `projects/*/locations/global/catalogs/default_catalog/branches/defau @@ -10525,7 +10519,7 @@ func (c *ProjectsLocationsCatalogsBranchesProductsAddFulfillmentPlacesCall) Do(o } return ret, nil // { - // "description": "Incrementally adds place IDs to Product.fulfillment_info.place_ids. This process is asynchronous and does not require the Product to exist before updating fulfillment information. If the request is valid, the update will be enqueued and processed downstream. As a consequence, when a response is returned, the added place IDs are not immediately manifested in the Product queried by ProductService.GetProduct or ProductService.ListProducts. The returned Operations will be obsolete after 1 day, and GetOperation API will return NOT_FOUND afterwards. If conflicting updates are issued, the Operations associated with the stale updates will not be marked as done until being obsolete. This feature is only available for users who have Retail Search enabled. Please enable Retail Search on Cloud Console before using this feature.", + // "description": "Incrementally adds place IDs to Product.fulfillment_info.place_ids. This process is asynchronous and does not require the Product to exist before updating fulfillment information. If the request is valid, the update will be enqueued and processed downstream. As a consequence, when a response is returned, the added place IDs are not immediately manifested in the Product queried by ProductService.GetProduct or ProductService.ListProducts. This feature is only available for users who have Retail Search enabled. Please enable Retail Search on Cloud Console before using this feature.", // "flatPath": "v2alpha/projects/{projectsId}/locations/{locationsId}/catalogs/{catalogsId}/branches/{branchesId}/products/{productsId}:addFulfillmentPlaces", // "httpMethod": "POST", // "id": "retail.projects.locations.catalogs.branches.products.addFulfillmentPlaces", @@ -10576,13 +10570,9 @@ type ProjectsLocationsCatalogsBranchesProductsAddLocalInventoriesCall struct { // ProductService.GetProduct or ProductService.ListProducts. Local // inventory information can only be modified using this method. // ProductService.CreateProduct and ProductService.UpdateProduct has no -// effect on local inventories. The returned Operations will be obsolete -// after 1 day, and GetOperation API will return NOT_FOUND afterwards. -// If conflicting updates are issued, the Operations associated with the -// stale updates will not be marked as done until being obsolete. This -// feature is only available for users who have Retail Search enabled. -// Please enable Retail Search on Cloud Console before using this -// feature. +// effect on local inventories. This feature is only available for users +// who have Retail Search enabled. Please enable Retail Search on Cloud +// Console before using this feature. // // - product: Full resource name of Product, such as // `projects/*/locations/global/catalogs/default_catalog/branches/defau @@ -10687,7 +10677,7 @@ func (c *ProjectsLocationsCatalogsBranchesProductsAddLocalInventoriesCall) Do(op } return ret, nil // { - // "description": "Updates local inventory information for a Product at a list of places, while respecting the last update timestamps of each inventory field. This process is asynchronous and does not require the Product to exist before updating inventory information. If the request is valid, the update will be enqueued and processed downstream. As a consequence, when a response is returned, updates are not immediately manifested in the Product queried by ProductService.GetProduct or ProductService.ListProducts. Local inventory information can only be modified using this method. ProductService.CreateProduct and ProductService.UpdateProduct has no effect on local inventories. The returned Operations will be obsolete after 1 day, and GetOperation API will return NOT_FOUND afterwards. If conflicting updates are issued, the Operations associated with the stale updates will not be marked as done until being obsolete. This feature is only available for users who have Retail Search enabled. Please enable Retail Search on Cloud Console before using this feature.", + // "description": "Updates local inventory information for a Product at a list of places, while respecting the last update timestamps of each inventory field. This process is asynchronous and does not require the Product to exist before updating inventory information. If the request is valid, the update will be enqueued and processed downstream. As a consequence, when a response is returned, updates are not immediately manifested in the Product queried by ProductService.GetProduct or ProductService.ListProducts. Local inventory information can only be modified using this method. ProductService.CreateProduct and ProductService.UpdateProduct has no effect on local inventories. This feature is only available for users who have Retail Search enabled. Please enable Retail Search on Cloud Console before using this feature.", // "flatPath": "v2alpha/projects/{projectsId}/locations/{locationsId}/catalogs/{catalogsId}/branches/{branchesId}/products/{productsId}:addLocalInventories", // "httpMethod": "POST", // "id": "retail.projects.locations.catalogs.branches.products.addLocalInventories", @@ -11927,12 +11917,9 @@ type ProjectsLocationsCatalogsBranchesProductsRemoveFulfillmentPlacesCall struct // processed downstream. As a consequence, when a response is returned, // the removed place IDs are not immediately manifested in the Product // queried by ProductService.GetProduct or ProductService.ListProducts. -// The returned Operations will be obsolete after 1 day, and -// GetOperation API will return NOT_FOUND afterwards. If conflicting -// updates are issued, the Operations associated with the stale updates -// will not be marked as done until being obsolete. This feature is only -// available for users who have Retail Search enabled. Please enable -// Retail Search on Cloud Console before using this feature. +// This feature is only available for users who have Retail Search +// enabled. Please enable Retail Search on Cloud Console before using +// this feature. // // - product: Full resource name of Product, such as // `projects/*/locations/global/catalogs/default_catalog/branches/defau @@ -12037,7 +12024,7 @@ func (c *ProjectsLocationsCatalogsBranchesProductsRemoveFulfillmentPlacesCall) D } return ret, nil // { - // "description": "Incrementally removes place IDs from a Product.fulfillment_info.place_ids. This process is asynchronous and does not require the Product to exist before updating fulfillment information. If the request is valid, the update will be enqueued and processed downstream. As a consequence, when a response is returned, the removed place IDs are not immediately manifested in the Product queried by ProductService.GetProduct or ProductService.ListProducts. The returned Operations will be obsolete after 1 day, and GetOperation API will return NOT_FOUND afterwards. If conflicting updates are issued, the Operations associated with the stale updates will not be marked as done until being obsolete. This feature is only available for users who have Retail Search enabled. Please enable Retail Search on Cloud Console before using this feature.", + // "description": "Incrementally removes place IDs from a Product.fulfillment_info.place_ids. This process is asynchronous and does not require the Product to exist before updating fulfillment information. If the request is valid, the update will be enqueued and processed downstream. As a consequence, when a response is returned, the removed place IDs are not immediately manifested in the Product queried by ProductService.GetProduct or ProductService.ListProducts. This feature is only available for users who have Retail Search enabled. Please enable Retail Search on Cloud Console before using this feature.", // "flatPath": "v2alpha/projects/{projectsId}/locations/{locationsId}/catalogs/{catalogsId}/branches/{branchesId}/products/{productsId}:removeFulfillmentPlaces", // "httpMethod": "POST", // "id": "retail.projects.locations.catalogs.branches.products.removeFulfillmentPlaces", @@ -12086,13 +12073,9 @@ type ProjectsLocationsCatalogsBranchesProductsRemoveLocalInventoriesCall struct // queried by ProductService.GetProduct or ProductService.ListProducts. // Local inventory information can only be removed using this method. // ProductService.CreateProduct and ProductService.UpdateProduct has no -// effect on local inventories. The returned Operations will be obsolete -// after 1 day, and GetOperation API will return NOT_FOUND afterwards. -// If conflicting updates are issued, the Operations associated with the -// stale updates will not be marked as done until being obsolete. This -// feature is only available for users who have Retail Search enabled. -// Please enable Retail Search on Cloud Console before using this -// feature. +// effect on local inventories. This feature is only available for users +// who have Retail Search enabled. Please enable Retail Search on Cloud +// Console before using this feature. // // - product: Full resource name of Product, such as // `projects/*/locations/global/catalogs/default_catalog/branches/defau @@ -12197,7 +12180,7 @@ func (c *ProjectsLocationsCatalogsBranchesProductsRemoveLocalInventoriesCall) Do } return ret, nil // { - // "description": "Remove local inventory information for a Product at a list of places at a removal timestamp. This process is asynchronous. If the request is valid, the removal will be enqueued and processed downstream. As a consequence, when a response is returned, removals are not immediately manifested in the Product queried by ProductService.GetProduct or ProductService.ListProducts. Local inventory information can only be removed using this method. ProductService.CreateProduct and ProductService.UpdateProduct has no effect on local inventories. The returned Operations will be obsolete after 1 day, and GetOperation API will return NOT_FOUND afterwards. If conflicting updates are issued, the Operations associated with the stale updates will not be marked as done until being obsolete. This feature is only available for users who have Retail Search enabled. Please enable Retail Search on Cloud Console before using this feature.", + // "description": "Remove local inventory information for a Product at a list of places at a removal timestamp. This process is asynchronous. If the request is valid, the removal will be enqueued and processed downstream. As a consequence, when a response is returned, removals are not immediately manifested in the Product queried by ProductService.GetProduct or ProductService.ListProducts. Local inventory information can only be removed using this method. ProductService.CreateProduct and ProductService.UpdateProduct has no effect on local inventories. This feature is only available for users who have Retail Search enabled. Please enable Retail Search on Cloud Console before using this feature.", // "flatPath": "v2alpha/projects/{projectsId}/locations/{locationsId}/catalogs/{catalogsId}/branches/{branchesId}/products/{productsId}:removeLocalInventories", // "httpMethod": "POST", // "id": "retail.projects.locations.catalogs.branches.products.removeLocalInventories", @@ -12258,13 +12241,9 @@ type ProjectsLocationsCatalogsBranchesProductsSetInventoryCall struct { // information will be preserved. Pre-existing inventory information can // only be updated with ProductService.SetInventory, // ProductService.AddFulfillmentPlaces, and -// ProductService.RemoveFulfillmentPlaces. The returned Operations will -// be obsolete after 1 day, and GetOperation API will return NOT_FOUND -// afterwards. If conflicting updates are issued, the Operations -// associated with the stale updates will not be marked as done until -// being obsolete. This feature is only available for users who have -// Retail Search enabled. Please enable Retail Search on Cloud Console -// before using this feature. +// ProductService.RemoveFulfillmentPlaces. This feature is only +// available for users who have Retail Search enabled. Please enable +// Retail Search on Cloud Console before using this feature. // // - name: Immutable. Full resource name of the product, such as // `projects/*/locations/global/catalogs/default_catalog/branches/defau @@ -12367,7 +12346,7 @@ func (c *ProjectsLocationsCatalogsBranchesProductsSetInventoryCall) Do(opts ...g } return ret, nil // { - // "description": "Updates inventory information for a Product while respecting the last update timestamps of each inventory field. This process is asynchronous and does not require the Product to exist before updating fulfillment information. If the request is valid, the update will be enqueued and processed downstream. As a consequence, when a response is returned, updates are not immediately manifested in the Product queried by ProductService.GetProduct or ProductService.ListProducts. When inventory is updated with ProductService.CreateProduct and ProductService.UpdateProduct, the specified inventory field value(s) will overwrite any existing value(s) while ignoring the last update time for this field. Furthermore, the last update time for the specified inventory fields will be overwritten to the time of the ProductService.CreateProduct or ProductService.UpdateProduct request. If no inventory fields are set in CreateProductRequest.product, then any pre-existing inventory information for this product will be used. If no inventory fields are set in SetInventoryRequest.set_mask, then any existing inventory information will be preserved. Pre-existing inventory information can only be updated with ProductService.SetInventory, ProductService.AddFulfillmentPlaces, and ProductService.RemoveFulfillmentPlaces. The returned Operations will be obsolete after 1 day, and GetOperation API will return NOT_FOUND afterwards. If conflicting updates are issued, the Operations associated with the stale updates will not be marked as done until being obsolete. This feature is only available for users who have Retail Search enabled. Please enable Retail Search on Cloud Console before using this feature.", + // "description": "Updates inventory information for a Product while respecting the last update timestamps of each inventory field. This process is asynchronous and does not require the Product to exist before updating fulfillment information. If the request is valid, the update will be enqueued and processed downstream. As a consequence, when a response is returned, updates are not immediately manifested in the Product queried by ProductService.GetProduct or ProductService.ListProducts. When inventory is updated with ProductService.CreateProduct and ProductService.UpdateProduct, the specified inventory field value(s) will overwrite any existing value(s) while ignoring the last update time for this field. Furthermore, the last update time for the specified inventory fields will be overwritten to the time of the ProductService.CreateProduct or ProductService.UpdateProduct request. If no inventory fields are set in CreateProductRequest.product, then any pre-existing inventory information for this product will be used. If no inventory fields are set in SetInventoryRequest.set_mask, then any existing inventory information will be preserved. Pre-existing inventory information can only be updated with ProductService.SetInventory, ProductService.AddFulfillmentPlaces, and ProductService.RemoveFulfillmentPlaces. This feature is only available for users who have Retail Search enabled. Please enable Retail Search on Cloud Console before using this feature.", // "flatPath": "v2alpha/projects/{projectsId}/locations/{locationsId}/catalogs/{catalogsId}/branches/{branchesId}/products/{productsId}:setInventory", // "httpMethod": "POST", // "id": "retail.projects.locations.catalogs.branches.products.setInventory", @@ -13384,7 +13363,7 @@ func (r *ProjectsLocationsCatalogsModelsService) Create(parent string, googleclo return c } -// DryRun sets the optional parameter "dryRun": Whether to run a dry run +// DryRun sets the optional parameter "dryRun": Whether to run a dry_run // to validate the request (without actually creating the model). func (c *ProjectsLocationsCatalogsModelsCreateCall) DryRun(dryRun bool) *ProjectsLocationsCatalogsModelsCreateCall { c.urlParams_.Set("dryRun", fmt.Sprint(dryRun)) @@ -13491,7 +13470,7 @@ func (c *ProjectsLocationsCatalogsModelsCreateCall) Do(opts ...googleapi.CallOpt // ], // "parameters": { // "dryRun": { - // "description": "Optional. Whether to run a dry run to validate the request (without actually creating the model).", + // "description": "Optional. Whether to run a dry_run to validate the request (without actually creating the model).", // "location": "query", // "type": "boolean" // }, @@ -13529,7 +13508,7 @@ type ProjectsLocationsCatalogsModelsDeleteCall struct { // Delete: Deletes an existing model. // -// - name: The resource name of the Model to delete. Format: +// - name: The resource name of the [Model] to delete. Format: // projects/{project_number}/locations/{location_id}/catalogs/{catalog_ // id}/models/{model_id}. func (r *ProjectsLocationsCatalogsModelsService) Delete(name string) *ProjectsLocationsCatalogsModelsDeleteCall { @@ -13633,7 +13612,7 @@ func (c *ProjectsLocationsCatalogsModelsDeleteCall) Do(opts ...googleapi.CallOpt // ], // "parameters": { // "name": { - // "description": "Required. The resource name of the Model to delete. Format: projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}/models/{model_id}", + // "description": "Required. The resource name of the [Model] to delete. Format: projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}/models/{model_id}", // "location": "path", // "pattern": "^projects/[^/]+/locations/[^/]+/catalogs/[^/]+/models/[^/]+$", // "required": true, @@ -13861,12 +13840,12 @@ type ProjectsLocationsCatalogsModelsPatchCall struct { } // Patch: Update of model metadata. Only fields that currently can be -// updated are: `filtering_option` and `periodic_tuning_state`. If other -// values are provided, this API method ignores them. +// updated are: filtering_option, periodic_tuning_state. If other values +// are provided, this API method will ignore them. // // - name: The fully qualified resource name of the model. Format: -// `projects/{project_number}/locations/{location_id}/catalogs/{catalog -// _id}/models/{model_id}` catalog_id has char limit of 50. +// projects/{project_number}/locations/{location_id}/catalogs/{catalog_ +// id}/models/{model_id} catalog_id has char limit of 50. // recommendation_model_id has char limit of 40. func (r *ProjectsLocationsCatalogsModelsService) Patch(name string, googlecloudretailv2alphamodel *GoogleCloudRetailV2alphaModel) *ProjectsLocationsCatalogsModelsPatchCall { c := &ProjectsLocationsCatalogsModelsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} @@ -13876,8 +13855,8 @@ func (r *ProjectsLocationsCatalogsModelsService) Patch(name string, googlecloudr } // UpdateMask sets the optional parameter "updateMask": Indicates which -// fields in the provided 'model' to update. If not set, by default -// updates all fields. +// fields in the provided 'model' to update. If not set, will by default +// update all fields. func (c *ProjectsLocationsCatalogsModelsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsCatalogsModelsPatchCall { c.urlParams_.Set("updateMask", updateMask) return c @@ -13974,7 +13953,7 @@ func (c *ProjectsLocationsCatalogsModelsPatchCall) Do(opts ...googleapi.CallOpti } return ret, nil // { - // "description": "Update of model metadata. Only fields that currently can be updated are: `filtering_option` and `periodic_tuning_state`. If other values are provided, this API method ignores them.", + // "description": "Update of model metadata. Only fields that currently can be updated are: filtering_option, periodic_tuning_state. If other values are provided, this API method will ignore them.", // "flatPath": "v2alpha/projects/{projectsId}/locations/{locationsId}/catalogs/{catalogsId}/models/{modelsId}", // "httpMethod": "PATCH", // "id": "retail.projects.locations.catalogs.models.patch", @@ -13983,14 +13962,14 @@ func (c *ProjectsLocationsCatalogsModelsPatchCall) Do(opts ...googleapi.CallOpti // ], // "parameters": { // "name": { - // "description": "Required. The fully qualified resource name of the model. Format: `projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}/models/{model_id}` catalog_id has char limit of 50. recommendation_model_id has char limit of 40.", + // "description": "Required. The fully qualified resource name of the model. Format: projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}/models/{model_id} catalog_id has char limit of 50. recommendation_model_id has char limit of 40.", // "location": "path", // "pattern": "^projects/[^/]+/locations/[^/]+/catalogs/[^/]+/models/[^/]+$", // "required": true, // "type": "string" // }, // "updateMask": { - // "description": "Optional. Indicates which fields in the provided 'model' to update. If not set, by default updates all fields.", + // "description": "Optional. Indicates which fields in the provided 'model' to update. If not set, will by default update all fields.", // "format": "google-fieldmask", // "location": "query", // "type": "string" @@ -16766,10 +16745,10 @@ type ProjectsLocationsCatalogsUserEventsImportCall struct { // Import: Bulk import of User events. Request processing might be // synchronous. Events that already exist are skipped. Use this method -// for backfilling historical user events. `Operation.response` is of -// type `ImportResponse`. Note that it is possible for a subset of the -// items to be successfully inserted. `Operation.metadata` is of type -// `ImportMetadata`. +// for backfilling historical user events. Operation.response is of type +// ImportResponse. Note that it is possible for a subset of the items to +// be successfully inserted. Operation.metadata is of type +// ImportMetadata. // // - parent: `projects/1234/locations/global/catalogs/default_catalog`. func (r *ProjectsLocationsCatalogsUserEventsService) Import(parent string, googlecloudretailv2alphaimportusereventsrequest *GoogleCloudRetailV2alphaImportUserEventsRequest) *ProjectsLocationsCatalogsUserEventsImportCall { @@ -16870,7 +16849,7 @@ func (c *ProjectsLocationsCatalogsUserEventsImportCall) Do(opts ...googleapi.Cal } return ret, nil // { - // "description": "Bulk import of User events. Request processing might be synchronous. Events that already exist are skipped. Use this method for backfilling historical user events. `Operation.response` is of type `ImportResponse`. Note that it is possible for a subset of the items to be successfully inserted. `Operation.metadata` is of type `ImportMetadata`.", + // "description": "Bulk import of User events. Request processing might be synchronous. Events that already exist are skipped. Use this method for backfilling historical user events. Operation.response is of type ImportResponse. Note that it is possible for a subset of the items to be successfully inserted. Operation.metadata is of type ImportMetadata.", // "flatPath": "v2alpha/projects/{projectsId}/locations/{locationsId}/catalogs/{catalogsId}/userEvents:import", // "httpMethod": "POST", // "id": "retail.projects.locations.catalogs.userEvents.import", diff --git a/retail/v2beta/retail-api.json b/retail/v2beta/retail-api.json index 94fd3424619..887dba5742e 100644 --- a/retail/v2beta/retail-api.json +++ b/retail/v2beta/retail-api.json @@ -561,7 +561,7 @@ "products": { "methods": { "addFulfillmentPlaces": { - "description": "Incrementally adds place IDs to Product.fulfillment_info.place_ids. This process is asynchronous and does not require the Product to exist before updating fulfillment information. If the request is valid, the update will be enqueued and processed downstream. As a consequence, when a response is returned, the added place IDs are not immediately manifested in the Product queried by ProductService.GetProduct or ProductService.ListProducts. The returned Operations will be obsolete after 1 day, and GetOperation API will return NOT_FOUND afterwards. If conflicting updates are issued, the Operations associated with the stale updates will not be marked as done until being obsolete. This feature is only available for users who have Retail Search enabled. Please enable Retail Search on Cloud Console before using this feature.", + "description": "Incrementally adds place IDs to Product.fulfillment_info.place_ids. This process is asynchronous and does not require the Product to exist before updating fulfillment information. If the request is valid, the update will be enqueued and processed downstream. As a consequence, when a response is returned, the added place IDs are not immediately manifested in the Product queried by ProductService.GetProduct or ProductService.ListProducts. This feature is only available for users who have Retail Search enabled. Please enable Retail Search on Cloud Console before using this feature.", "flatPath": "v2beta/projects/{projectsId}/locations/{locationsId}/catalogs/{catalogsId}/branches/{branchesId}/products/{productsId}:addFulfillmentPlaces", "httpMethod": "POST", "id": "retail.projects.locations.catalogs.branches.products.addFulfillmentPlaces", @@ -589,7 +589,7 @@ ] }, "addLocalInventories": { - "description": "Updates local inventory information for a Product at a list of places, while respecting the last update timestamps of each inventory field. This process is asynchronous and does not require the Product to exist before updating inventory information. If the request is valid, the update will be enqueued and processed downstream. As a consequence, when a response is returned, updates are not immediately manifested in the Product queried by ProductService.GetProduct or ProductService.ListProducts. Local inventory information can only be modified using this method. ProductService.CreateProduct and ProductService.UpdateProduct has no effect on local inventories. The returned Operations will be obsolete after 1 day, and GetOperation API will return NOT_FOUND afterwards. If conflicting updates are issued, the Operations associated with the stale updates will not be marked as done until being obsolete. This feature is only available for users who have Retail Search enabled. Please enable Retail Search on Cloud Console before using this feature.", + "description": "Updates local inventory information for a Product at a list of places, while respecting the last update timestamps of each inventory field. This process is asynchronous and does not require the Product to exist before updating inventory information. If the request is valid, the update will be enqueued and processed downstream. As a consequence, when a response is returned, updates are not immediately manifested in the Product queried by ProductService.GetProduct or ProductService.ListProducts. Local inventory information can only be modified using this method. ProductService.CreateProduct and ProductService.UpdateProduct has no effect on local inventories. This feature is only available for users who have Retail Search enabled. Please enable Retail Search on Cloud Console before using this feature.", "flatPath": "v2beta/projects/{projectsId}/locations/{locationsId}/catalogs/{catalogsId}/branches/{branchesId}/products/{productsId}:addLocalInventories", "httpMethod": "POST", "id": "retail.projects.locations.catalogs.branches.products.addLocalInventories", @@ -814,7 +814,7 @@ ] }, "removeFulfillmentPlaces": { - "description": "Incrementally removes place IDs from a Product.fulfillment_info.place_ids. This process is asynchronous and does not require the Product to exist before updating fulfillment information. If the request is valid, the update will be enqueued and processed downstream. As a consequence, when a response is returned, the removed place IDs are not immediately manifested in the Product queried by ProductService.GetProduct or ProductService.ListProducts. The returned Operations will be obsolete after 1 day, and GetOperation API will return NOT_FOUND afterwards. If conflicting updates are issued, the Operations associated with the stale updates will not be marked as done until being obsolete. This feature is only available for users who have Retail Search enabled. Please enable Retail Search on Cloud Console before using this feature.", + "description": "Incrementally removes place IDs from a Product.fulfillment_info.place_ids. This process is asynchronous and does not require the Product to exist before updating fulfillment information. If the request is valid, the update will be enqueued and processed downstream. As a consequence, when a response is returned, the removed place IDs are not immediately manifested in the Product queried by ProductService.GetProduct or ProductService.ListProducts. This feature is only available for users who have Retail Search enabled. Please enable Retail Search on Cloud Console before using this feature.", "flatPath": "v2beta/projects/{projectsId}/locations/{locationsId}/catalogs/{catalogsId}/branches/{branchesId}/products/{productsId}:removeFulfillmentPlaces", "httpMethod": "POST", "id": "retail.projects.locations.catalogs.branches.products.removeFulfillmentPlaces", @@ -842,7 +842,7 @@ ] }, "removeLocalInventories": { - "description": "Remove local inventory information for a Product at a list of places at a removal timestamp. This process is asynchronous. If the request is valid, the removal will be enqueued and processed downstream. As a consequence, when a response is returned, removals are not immediately manifested in the Product queried by ProductService.GetProduct or ProductService.ListProducts. Local inventory information can only be removed using this method. ProductService.CreateProduct and ProductService.UpdateProduct has no effect on local inventories. The returned Operations will be obsolete after 1 day, and GetOperation API will return NOT_FOUND afterwards. If conflicting updates are issued, the Operations associated with the stale updates will not be marked as done until being obsolete. This feature is only available for users who have Retail Search enabled. Please enable Retail Search on Cloud Console before using this feature.", + "description": "Remove local inventory information for a Product at a list of places at a removal timestamp. This process is asynchronous. If the request is valid, the removal will be enqueued and processed downstream. As a consequence, when a response is returned, removals are not immediately manifested in the Product queried by ProductService.GetProduct or ProductService.ListProducts. Local inventory information can only be removed using this method. ProductService.CreateProduct and ProductService.UpdateProduct has no effect on local inventories. This feature is only available for users who have Retail Search enabled. Please enable Retail Search on Cloud Console before using this feature.", "flatPath": "v2beta/projects/{projectsId}/locations/{locationsId}/catalogs/{catalogsId}/branches/{branchesId}/products/{productsId}:removeLocalInventories", "httpMethod": "POST", "id": "retail.projects.locations.catalogs.branches.products.removeLocalInventories", @@ -870,7 +870,7 @@ ] }, "setInventory": { - "description": "Updates inventory information for a Product while respecting the last update timestamps of each inventory field. This process is asynchronous and does not require the Product to exist before updating fulfillment information. If the request is valid, the update will be enqueued and processed downstream. As a consequence, when a response is returned, updates are not immediately manifested in the Product queried by ProductService.GetProduct or ProductService.ListProducts. When inventory is updated with ProductService.CreateProduct and ProductService.UpdateProduct, the specified inventory field value(s) will overwrite any existing value(s) while ignoring the last update time for this field. Furthermore, the last update time for the specified inventory fields will be overwritten to the time of the ProductService.CreateProduct or ProductService.UpdateProduct request. If no inventory fields are set in CreateProductRequest.product, then any pre-existing inventory information for this product will be used. If no inventory fields are set in SetInventoryRequest.set_mask, then any existing inventory information will be preserved. Pre-existing inventory information can only be updated with ProductService.SetInventory, ProductService.AddFulfillmentPlaces, and ProductService.RemoveFulfillmentPlaces. The returned Operations will be obsolete after 1 day, and GetOperation API will return NOT_FOUND afterwards. If conflicting updates are issued, the Operations associated with the stale updates will not be marked as done until being obsolete. This feature is only available for users who have Retail Search enabled. Please enable Retail Search on Cloud Console before using this feature.", + "description": "Updates inventory information for a Product while respecting the last update timestamps of each inventory field. This process is asynchronous and does not require the Product to exist before updating fulfillment information. If the request is valid, the update will be enqueued and processed downstream. As a consequence, when a response is returned, updates are not immediately manifested in the Product queried by ProductService.GetProduct or ProductService.ListProducts. When inventory is updated with ProductService.CreateProduct and ProductService.UpdateProduct, the specified inventory field value(s) will overwrite any existing value(s) while ignoring the last update time for this field. Furthermore, the last update time for the specified inventory fields will be overwritten to the time of the ProductService.CreateProduct or ProductService.UpdateProduct request. If no inventory fields are set in CreateProductRequest.product, then any pre-existing inventory information for this product will be used. If no inventory fields are set in SetInventoryRequest.set_mask, then any existing inventory information will be preserved. Pre-existing inventory information can only be updated with ProductService.SetInventory, ProductService.AddFulfillmentPlaces, and ProductService.RemoveFulfillmentPlaces. This feature is only available for users who have Retail Search enabled. Please enable Retail Search on Cloud Console before using this feature.", "flatPath": "v2beta/projects/{projectsId}/locations/{locationsId}/catalogs/{catalogsId}/branches/{branchesId}/products/{productsId}:setInventory", "httpMethod": "POST", "id": "retail.projects.locations.catalogs.branches.products.setInventory", @@ -1538,7 +1538,7 @@ ] }, "import": { - "description": "Bulk import of User events. Request processing might be synchronous. Events that already exist are skipped. Use this method for backfilling historical user events. `Operation.response` is of type `ImportResponse`. Note that it is possible for a subset of the items to be successfully inserted. `Operation.metadata` is of type `ImportMetadata`.", + "description": "Bulk import of User events. Request processing might be synchronous. Events that already exist are skipped. Use this method for backfilling historical user events. Operation.response is of type ImportResponse. Note that it is possible for a subset of the items to be successfully inserted. Operation.metadata is of type ImportMetadata.", "flatPath": "v2beta/projects/{projectsId}/locations/{locationsId}/catalogs/{catalogsId}/userEvents:import", "httpMethod": "POST", "id": "retail.projects.locations.catalogs.userEvents.import", @@ -1994,14 +1994,14 @@ "id": "GoogleCloudRetailV2ImportErrorsConfig", "properties": { "gcsPrefix": { - "description": "Google Cloud Storage prefix for import errors. This must be an empty, existing Cloud Storage directory. Import errors are written to sharded files in this directory, one per line, as a JSON-encoded `google.rpc.Status` message.", + "description": "Google Cloud Storage prefix for import errors. This must be an empty, existing Cloud Storage directory. Import errors will be written to sharded files in this directory, one per line, as a JSON-encoded `google.rpc.Status` message.", "type": "string" } }, "type": "object" }, "GoogleCloudRetailV2ImportMetadata": { - "description": "Metadata related to the progress of the Import operation. This is returned by the google.longrunning.Operation.metadata field.", + "description": "Metadata related to the progress of the Import operation. This will be returned by the google.longrunning.Operation.metadata field.", "id": "GoogleCloudRetailV2ImportMetadata", "properties": { "createTime": { @@ -2015,7 +2015,7 @@ "type": "string" }, "notificationPubsubTopic": { - "description": "Pub/Sub topic for receiving notification. If this field is set, when the import is finished, a notification is sent to specified Pub/Sub topic. The message data is JSON string of a Operation. Format of the Pub/Sub topic is `projects/{project}/topics/{topic}`.", + "description": "Pub/Sub topic for receiving notification. If this field is set, when the import is finished, a notification will be sent to specified Pub/Sub topic. The message data will be JSON string of a Operation. Format of the Pub/Sub topic is `projects/{project}/topics/{topic}`.", "type": "string" }, "requestId": { @@ -2305,14 +2305,14 @@ "id": "GoogleCloudRetailV2alphaImportErrorsConfig", "properties": { "gcsPrefix": { - "description": "Google Cloud Storage prefix for import errors. This must be an empty, existing Cloud Storage directory. Import errors are written to sharded files in this directory, one per line, as a JSON-encoded `google.rpc.Status` message.", + "description": "Google Cloud Storage prefix for import errors. This must be an empty, existing Cloud Storage directory. Import errors will be written to sharded files in this directory, one per line, as a JSON-encoded `google.rpc.Status` message.", "type": "string" } }, "type": "object" }, "GoogleCloudRetailV2alphaImportMetadata": { - "description": "Metadata related to the progress of the Import operation. This is returned by the google.longrunning.Operation.metadata field.", + "description": "Metadata related to the progress of the Import operation. This will be returned by the google.longrunning.Operation.metadata field.", "id": "GoogleCloudRetailV2alphaImportMetadata", "properties": { "createTime": { @@ -2326,7 +2326,7 @@ "type": "string" }, "notificationPubsubTopic": { - "description": "Pub/Sub topic for receiving notification. If this field is set, when the import is finished, a notification is sent to specified Pub/Sub topic. The message data is JSON string of a Operation. Format of the Pub/Sub topic is `projects/{project}/topics/{topic}`.", + "description": "Pub/Sub topic for receiving notification. If this field is set, when the import is finished, a notification will be sent to specified Pub/Sub topic. The message data will be JSON string of a Operation. Format of the Pub/Sub topic is `projects/{project}/topics/{topic}`.", "type": "string" }, "requestId": { @@ -2391,7 +2391,7 @@ "type": "object" }, "GoogleCloudRetailV2alphaModel": { - "description": "Metadata that describes the training and serving parameters of a Model. A Model can be associated with a ServingConfig and then queried through the Predict API.", + "description": "Metadata that describes the training and serving parameters of a Model. A Model can be associated with a ServingConfig and then queried through the Predict api.", "id": "GoogleCloudRetailV2alphaModel", "properties": { "createTime": { @@ -2401,14 +2401,14 @@ "type": "string" }, "dataState": { - "description": "Output only. The state of data requirements for this model: `DATA_OK` and `DATA_ERROR`. Recommendation model cannot be trained if the data is in `DATA_ERROR` state. Recommendation model can have `DATA_ERROR` state even if serving state is `ACTIVE`: models were trained successfully before, but cannot be refreshed because model no longer has sufficient data for training.", + "description": "Output only. The state of data requirements for this model: DATA_OK and DATA_ERROR. Recommendation model cannot be trained if the data is in DATA_ERROR state. Recommendation model can have DATA_ERROR state even if serving state is ACTIVE: models were trained successfully before, but cannot be refreshed because model no longer has sufficient data for training.", "enum": [ "DATA_STATE_UNSPECIFIED", "DATA_OK", "DATA_ERROR" ], "enumDescriptions": [ - "Unspecified default value, should never be explicitly set.", + "Unspecified default value - should never be explicitly set.", "The model has sufficient training data.", "The model does not have sufficient training data. Error messages can be queried via Stackdriver." ], @@ -2416,11 +2416,11 @@ "type": "string" }, "displayName": { - "description": "Required. The display name of the model. Should be human readable, used to display Recommendation Models in the Retail Cloud Console Dashboard. UTF-8 encoded string with limit of 1024 characters.", + "description": "Required. The display name of the model. Should be human readable, used to display Recommendation Models in the Retail Cloud Cosole Dashboard. UTF-8 encoded string with limit of 1024 characters.", "type": "string" }, "filteringOption": { - "description": "Optional. If `RECOMMENDATIONS_FILTERING_ENABLED`, recommendation filtering by attributes is enabled for the model.", + "description": "Optional. If RECOMMENDATIONS_FILTERING_ENABLED, recommendation filtering by attributes is enabled for the model.", "enum": [ "RECOMMENDATIONS_FILTERING_OPTION_UNSPECIFIED", "RECOMMENDATIONS_FILTERING_DISABLED", @@ -2440,7 +2440,7 @@ "type": "string" }, "name": { - "description": "Required. The fully qualified resource name of the model. Format: `projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}/models/{model_id}` catalog_id has char limit of 50. recommendation_model_id has char limit of 40.", + "description": "Required. The fully qualified resource name of the model. Format: projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}/models/{model_id} catalog_id has char limit of 50. recommendation_model_id has char limit of 40.", "type": "string" }, "optimizationObjective": { @@ -2452,7 +2452,7 @@ "description": "Optional. The page optimization config." }, "periodicTuningState": { - "description": "Optional. The state of periodic tuning. The period we use is 3 months - to do a one-off tune earlier use the `TuneModel` method. Default value is `PERIODIC_TUNING_ENABLED`.", + "description": "Optional. The state of periodic tuning. The period we use is 3 months - to do a one-off tune earlier use the TuneModel method. Default value is PERIODIC_TUNING_ENABLED.", "enum": [ "PERIODIC_TUNING_STATE_UNSPECIFIED", "PERIODIC_TUNING_DISABLED", @@ -2460,10 +2460,10 @@ "PERIODIC_TUNING_ENABLED" ], "enumDescriptions": [ - "Unspecified default value, should never be explicitly set.", - "The model has periodic tuning disabled. Tuning can be reenabled by calling the `EnableModelPeriodicTuning` method or by calling the `TuneModel` method.", - "The model cannot be tuned with periodic tuning OR the `TuneModel` method. Hide the options in customer UI and reject any requests through the backend self serve API.", - "The model has periodic tuning enabled. Tuning can be disabled by calling the `DisableModelPeriodicTuning` method." + "Unspecified default value - should never be explicitly set.", + "The model has periodic tuning disabled. Tuning can be reenabled by calling the EnableModelPeriodicTuning method or by calling the TuneModel method.", + "The model cannot be tuned with periodic tuning OR the TuneModel method. Hide the options in customer UI and reject any requests through the backend self serve API.", + "The model has periodic tuning enabled. Tuning can be disabled by calling the DisableModelPeriodicTuning method." ], "type": "string" }, @@ -2476,7 +2476,7 @@ "type": "array" }, "servingState": { - "description": "Output only. The serving state of the model: `ACTIVE`, `NOT_ACTIVE`.", + "description": "Output only. The serving state of the model: ACTIVE, NOT_ACTIVE.", "enum": [ "SERVING_STATE_UNSPECIFIED", "INACTIVE", @@ -2487,13 +2487,13 @@ "Unspecified serving state.", "The model is not serving.", "The model is serving and can be queried.", - "The model is trained on tuned hyperparameters and can be queried." + "The model is trained on tuned hyperparameters, and can be queried." ], "readOnly": true, "type": "string" }, "trainingState": { - "description": "Optional. The training state that the model is in (e.g. `TRAINING` or `PAUSED`). Since part of the cost of running the service is frequency of training - this can be used to determine when to train model in order to control cost. If not specified: the default value for `CreateModel` method is `TRAINING`. The default value for `UpdateModel` method is to keep the state the same as before.", + "description": "Optional. The training state that the model is in (e.g. TRAINING or PAUSED). Since part of the cost of running the service is frequency of training - this can be used to determine when to train model in order to control cost. If not specified: the default value for CreateModel method is TRAINING. the default value for UpdateModel method is to keep the state the same as before.", "enum": [ "TRAINING_STATE_UNSPECIFIED", "PAUSED", @@ -2512,7 +2512,7 @@ "type": "string" }, "type": { - "description": "Required. The type of model e.g. `home-page`. Currently supported values: `recommended-for-you`, `others-you-may-like`, `frequently-bought-together`, `page-optimization`, `similar-items`, `buy-it-again`, and `recently-viewed`(readonly value).", + "description": "Required. The type of model e.g. `home-page`. Currently supported values: `recommended-for-you`, `others-you-may-like`, `frequently-bought-together`, `page-optimization`, 'similar-items', 'buy-it-again', `recently-viewed`(readonly value).", "type": "string" }, "updateTime": { @@ -2551,9 +2551,9 @@ "enumDescriptions": [ "Unspecified value for restriction.", "Allow any ServingConfig to be show on any number of panels. Example: `Panel1 candidates`: pdp_ctr, pdp_cvr, home_page_ctr_no_diversity `Panel2 candidates`: home_page_ctr_no_diversity, home_page_ctr_diversity, pdp_cvr_no_diversity `Restriction` = NO_RESTRICTION `Valid combinations`: * * (pdp_ctr, home_page_ctr_no_diversity) * (pdp_ctr, home_page_ctr_diversity) * (pdp_ctr, pdp_cvr_no_diversity) * (pdp_cvr, home_page_ctr_no_diversity) * (pdp_cvr, home_page_ctr_diversity) * (pdp_cvr, pdp_cvr_no_diversity) * (home_page_ctr_no_diversity, home_page_ctr_no_diversity) * (home_page_ctr_no_diversity, home_page_ctr_diversity) * (home_page_ctr_no_diversity, pdp_cvr_no_diversity) * `Invalid combinations`: []", - "Do not allow the same ServingConfig.name to be shown on multiple panels. Example: `Panel1 candidates`: * pdp_ctr, pdp_cvr, home_page_ctr_no_diversity * `Panel2 candidates`: * home_page_ctr_no_diversity, home_page_ctr_diversity_low, pdp_cvr_no_diversity * `Restriction` = `UNIQUE_SERVING_CONFIG_RESTRICTION` `Valid combinations`: * * (pdp_ctr, home_page_ctr_no_diversity) * (pdp_ctr, home_page_ctr_diversity_low) * (pdp_ctr, pdp_cvr_no_diversity) * (pdp_ctr, pdp_cvr_no_diversity) * (pdp_cvr, home_page_ctr_no_diversity) * (pdp_cvr, home_page_ctr_diversity_low) * (pdp_cvr, pdp_cvr_no_diversity) * (home_page_ctr_no_diversity, home_page_ctr_diversity_low) * (home_page_ctr_no_diversity, pdp_cvr_no_diversity) * `Invalid combinations`: * * (home_page_ctr_no_diversity, home_page_ctr_no_diversity) *", - "Do not allow multiple ServingConfigs with same Model.name to be show on on different panels. Example: `Panel1 candidates`: * pdp_ctr, pdp_cvr, home_page_ctr_no_diversity * `Panel2 candidates`: * home_page_ctr_no_diversity, home_page_ctr_diversity_low, pdp_cvr_no_diversity * `Restriction` = `UNIQUE_MODEL_RESTRICTION` `Valid combinations`: * * (pdp_ctr, home_page_ctr_no_diversity) * (pdp_ctr, home_page_ctr_diversity) * (pdp_ctr, pdp_cvr_no_diversity) * (pdp_ctr, pdp_cvr_no_diversity) * (pdp_cvr, home_page_ctr_no_diversity) * (pdp_cvr, home_page_ctr_diversity_low) * (home_page_ctr_no_diversity, pdp_cvr_no_diversity) * `Invalid combinations`: * * (home_page_ctr_no_diversity, home_page_ctr_no_diversity) * (pdp_cvr, pdp_cvr_no_diversity) *", - "Do not allow multiple ServingConfigs with same Model.type to be shown on different panels. Example: `Panel1 candidates`: * pdp_ctr, pdp_cvr, home_page_ctr_no_diversity * `Panel2 candidates`: * home_page_ctr_no_diversity, home_page_ctr_diversity_low, pdp_cvr_no_diversity * `Restriction` = `UNIQUE_MODEL_RESTRICTION` `Valid combinations`: * * (pdp_ctr, home_page_ctr_no_diversity) * (pdp_ctr, home_page_ctr_diversity) * (pdp_cvr, home_page_ctr_no_diversity) * (pdp_cvr, home_page_ctr_diversity_low) * (home_page_ctr_no_diversity, pdp_cvr_no_diversity) * `Invalid combinations`: * * (pdp_ctr, pdp_cvr_no_diversity) * (pdp_ctr, pdp_cvr_no_diversity) * (pdp_cvr, pdp_cvr_no_diversity) * (home_page_ctr_no_diversity, home_page_ctr_no_diversity) * (home_page_ctr_no_diversity, home_page_ctr_diversity) *" + "Do not allow the same ServingConfig.name to be shown on multiple panels. Example: `Panel1 candidates`: * pdp_ctr, pdp_cvr, home_page_ctr_no_diversity * `Panel2 candidates`: * home_page_ctr_no_diversity, home_page_ctr_diversity_low, pdp_cvr_no_diversity * `Restriction` = UNIQUE_SERVING_CONFIG_RESTRICTION `Valid combinations`: * * (pdp_ctr, home_page_ctr_no_diversity) * (pdp_ctr, home_page_ctr_diversity_low) * (pdp_ctr, pdp_cvr_no_diversity) * (pdp_ctr, pdp_cvr_no_diversity) * (pdp_cvr, home_page_ctr_no_diversity) * (pdp_cvr, home_page_ctr_diversity_low) * (pdp_cvr, pdp_cvr_no_diversity) * (home_page_ctr_no_diversity, home_page_ctr_diversity_low) * (home_page_ctr_no_diversity, pdp_cvr_no_diversity) * `Invalid combinations`: * * (home_page_ctr_no_diversity, home_page_ctr_no_diversity) *", + "Do not allow multiple ServingConfigs with same Model.name to be show on on different panels. Example: `Panel1 candidates`: * pdp_ctr, pdp_cvr, home_page_ctr_no_diversity * `Panel2 candidates`: * home_page_ctr_no_diversity, home_page_ctr_diversity_low, pdp_cvr_no_diversity * `Restriction` = UNIQUE_MODEL_RESTRICTION `Valid combinations`: * * (pdp_ctr, home_page_ctr_no_diversity) * (pdp_ctr, home_page_ctr_diversity) * (pdp_ctr, pdp_cvr_no_diversity) * (pdp_ctr, pdp_cvr_no_diversity) * (pdp_cvr, home_page_ctr_no_diversity) * (pdp_cvr, home_page_ctr_diversity_low) * (home_page_ctr_no_diversity, pdp_cvr_no_diversity) * `Invalid combinations`: * * (home_page_ctr_no_diversity, home_page_ctr_no_diversity) * (pdp_cvr, pdp_cvr_no_diversity) *", + "Do not allow multiple ServingConfigs with same Model.type to be shown on different panels. Example: `Panel1 candidates`: * pdp_ctr, pdp_cvr, home_page_ctr_no_diversity * `Panel2 candidates`: * home_page_ctr_no_diversity, home_page_ctr_diversity_low, pdp_cvr_no_diversity * `Restriction` = UNIQUE_MODEL_RESTRICTION `Valid combinations`: * * (pdp_ctr, home_page_ctr_no_diversity) * (pdp_ctr, home_page_ctr_diversity) * (pdp_cvr, home_page_ctr_no_diversity) * (pdp_cvr, home_page_ctr_diversity_low) * (home_page_ctr_no_diversity, pdp_cvr_no_diversity) * `Invalid combinations`: * * (pdp_ctr, pdp_cvr_no_diversity) * (pdp_ctr, pdp_cvr_no_diversity) * (pdp_cvr, pdp_cvr_no_diversity) * (home_page_ctr_no_diversity, home_page_ctr_no_diversity) * (home_page_ctr_no_diversity, home_page_ctr_diversity) *" ], "type": "string" } @@ -2565,7 +2565,7 @@ "id": "GoogleCloudRetailV2alphaModelPageOptimizationConfigCandidate", "properties": { "servingConfigId": { - "description": "This has to be a valid ServingConfig identifier. For example, for a ServingConfig with full name: `projects/*/locations/global/catalogs/default_catalog/servingConfigs/my_candidate_config`, this would be `my_candidate_config`.", + "description": "This has to be a valid ServingConfig identifier. e.g. for a ServingConfig with full name: `projects/*/locations/global/catalogs/default_catalog/servingConfigs/my_candidate_config` this would be 'my_candidate_config'", "type": "string" } }, @@ -2584,7 +2584,7 @@ }, "defaultCandidate": { "$ref": "GoogleCloudRetailV2alphaModelPageOptimizationConfigCandidate", - "description": "Required. The default candidate. If the model fails at serving time, we fall back to the default." + "description": "Required. The default candidate (in case the model fails at serving time, we can fall back to the default)." }, "displayName": { "description": "Optional. The name to display for the panel.", @@ -2594,11 +2594,11 @@ "type": "object" }, "GoogleCloudRetailV2alphaModelServingConfigList": { - "description": "Represents an ordered combination of valid serving configs, which can be used for `PAGE_OPTIMIZATION` recommendations.", + "description": "Represents an ordered combination of valid serving configs, which / may be used for PAGE_OPTIMIZATION recommendations.", "id": "GoogleCloudRetailV2alphaModelServingConfigList", "properties": { "servingConfigIds": { - "description": "Optional. A set of valid serving configs that may be used for `PAGE_OPTIMIZATION`.", + "description": "Optional. A set of valid serving configs that may be used for PAGE_OPTIMIZATION.", "items": { "type": "string" }, @@ -3537,11 +3537,11 @@ "type": "object" }, "GoogleCloudRetailV2betaGcsSource": { - "description": "Google Cloud Storage location for input content.", + "description": "Google Cloud Storage location for input content. format.", "id": "GoogleCloudRetailV2betaGcsSource", "properties": { "dataSchema": { - "description": "The schema to use when parsing the data from the source. Supported values for product imports: * `product` (default): One JSON Product per line. Each product must have a valid Product.id. * `product_merchant_center`: See [Importing catalog data from Merchant Center](https://cloud.google.com/retail/recommendations-ai/docs/upload-catalog#mc). Supported values for user events imports: * `user_event` (default): One JSON UserEvent per line. * `user_event_ga360`: Using https://support.google.com/analytics/answer/3437719. Supported values for control imports: * `control` (default): One JSON Control per line. Supported values for catalog attribute imports: * `catalog_attribute` (default): One CSV CatalogAttribute per line.", + "description": "The schema to use when parsing the data from the source. Supported values for product imports: * `product` (default): One JSON Product per line. Each product must have a valid Product.id. * `product_merchant_center`: See [Importing catalog data from Merchant Center](https://cloud.google.com/retail/recommendations-ai/docs/upload-catalog#mc). Supported values for user events imports: * `user_event` (default): One JSON UserEvent per line. * `user_event_ga360`: Using https://support.google.com/analytics/answer/3437719. Supported values for control imports: * 'control' (default): One JSON Control per line. Supported values for catalog attribute imports: * 'catalog_attribute' (default): One CSV CatalogAttribute per line.", "type": "string" }, "inputUris": { @@ -3604,7 +3604,7 @@ "description": "Required. The desired input location of the data." }, "notificationPubsubTopic": { - "description": "Pub/Sub topic for receiving notification. If this field is set, when the import is finished, a notification is sent to specified Pub/Sub topic. The message data is JSON string of a Operation. Format of the Pub/Sub topic is `projects/{project}/topics/{topic}`.", + "description": "Pub/Sub topic for receiving notification. If this field is set, when the import is finished, a notification will be sent to specified Pub/Sub topic. The message data will be JSON string of a Operation. Format of the Pub/Sub topic is `projects/{project}/topics/{topic}`.", "type": "string" } }, @@ -3629,14 +3629,14 @@ "id": "GoogleCloudRetailV2betaImportErrorsConfig", "properties": { "gcsPrefix": { - "description": "Google Cloud Storage prefix for import errors. This must be an empty, existing Cloud Storage directory. Import errors are written to sharded files in this directory, one per line, as a JSON-encoded `google.rpc.Status` message.", + "description": "Google Cloud Storage prefix for import errors. This must be an empty, existing Cloud Storage directory. Import errors will be written to sharded files in this directory, one per line, as a JSON-encoded `google.rpc.Status` message.", "type": "string" } }, "type": "object" }, "GoogleCloudRetailV2betaImportMetadata": { - "description": "Metadata related to the progress of the Import operation. This is returned by the google.longrunning.Operation.metadata field.", + "description": "Metadata related to the progress of the Import operation. This will be returned by the google.longrunning.Operation.metadata field.", "id": "GoogleCloudRetailV2betaImportMetadata", "properties": { "createTime": { @@ -3650,7 +3650,7 @@ "type": "string" }, "notificationPubsubTopic": { - "description": "Pub/Sub topic for receiving notification. If this field is set, when the import is finished, a notification is sent to specified Pub/Sub topic. The message data is JSON string of a Operation. Format of the Pub/Sub topic is `projects/{project}/topics/{topic}`.", + "description": "Pub/Sub topic for receiving notification. If this field is set, when the import is finished, a notification will be sent to specified Pub/Sub topic. The message data will be JSON string of a Operation. Format of the Pub/Sub topic is `projects/{project}/topics/{topic}`.", "type": "string" }, "requestId": { @@ -3683,7 +3683,7 @@ "description": "Required. The desired input location of the data." }, "notificationPubsubTopic": { - "description": "Full Pub/Sub topic name for receiving notification. If this field is set, when the import is finished, a notification is sent to specified Pub/Sub topic. The message data is JSON string of a Operation. Format of the Pub/Sub topic is `projects/{project}/topics/{topic}`. It has to be within the same project as ImportProductsRequest.parent. Make sure that `service-@gcp-sa-retail.iam.gserviceaccount.com` has the `pubsub.topics.publish` IAM permission on the topic.", + "description": "Full Pub/Sub topic name for receiving notification. If this field is set, when the import is finished, a notification will be sent to specified Pub/Sub topic. The message data will be JSON string of a Operation. Format of the Pub/Sub topic is `projects/{project}/topics/{topic}`. It has to be within the same project as ImportProductsRequest.parent. Make sure that `service-@gcp-sa-retail.iam.gserviceaccount.com` has the `pubsub.topics.publish` IAM permission on the topic.", "type": "string" }, "reconciliationMode": { @@ -3705,7 +3705,7 @@ "type": "string" }, "updateMask": { - "description": "Indicates which fields in the provided imported `products` to update. If not set, all fields are updated.", + "description": "Indicates which fields in the provided imported 'products' to update. If not set, will by default update all fields.", "format": "google-fieldmask", "type": "string" } diff --git a/retail/v2beta/retail-gen.go b/retail/v2beta/retail-gen.go index 9169317a0a6..b6aa09deb17 100644 --- a/retail/v2beta/retail-gen.go +++ b/retail/v2beta/retail-gen.go @@ -671,7 +671,7 @@ func (s *GoogleCloudRetailV2ImportCompletionDataResponse) MarshalJSON() ([]byte, // for Import related errors. type GoogleCloudRetailV2ImportErrorsConfig struct { // GcsPrefix: Google Cloud Storage prefix for import errors. This must - // be an empty, existing Cloud Storage directory. Import errors are + // be an empty, existing Cloud Storage directory. Import errors will be // written to sharded files in this directory, one per line, as a // JSON-encoded `google.rpc.Status` message. GcsPrefix string `json:"gcsPrefix,omitempty"` @@ -700,7 +700,7 @@ func (s *GoogleCloudRetailV2ImportErrorsConfig) MarshalJSON() ([]byte, error) { } // GoogleCloudRetailV2ImportMetadata: Metadata related to the progress -// of the Import operation. This is returned by the +// of the Import operation. This will be returned by the // google.longrunning.Operation.metadata field. type GoogleCloudRetailV2ImportMetadata struct { // CreateTime: Operation create time. @@ -711,9 +711,9 @@ type GoogleCloudRetailV2ImportMetadata struct { FailureCount int64 `json:"failureCount,omitempty,string"` // NotificationPubsubTopic: Pub/Sub topic for receiving notification. If - // this field is set, when the import is finished, a notification is - // sent to specified Pub/Sub topic. The message data is JSON string of a - // Operation. Format of the Pub/Sub topic is + // this field is set, when the import is finished, a notification will + // be sent to specified Pub/Sub topic. The message data will be JSON + // string of a Operation. Format of the Pub/Sub topic is // `projects/{project}/topics/{topic}`. NotificationPubsubTopic string `json:"notificationPubsubTopic,omitempty"` @@ -1255,7 +1255,7 @@ func (s *GoogleCloudRetailV2alphaImportCompletionDataResponse) MarshalJSON() ([] // destination for Import related errors. type GoogleCloudRetailV2alphaImportErrorsConfig struct { // GcsPrefix: Google Cloud Storage prefix for import errors. This must - // be an empty, existing Cloud Storage directory. Import errors are + // be an empty, existing Cloud Storage directory. Import errors will be // written to sharded files in this directory, one per line, as a // JSON-encoded `google.rpc.Status` message. GcsPrefix string `json:"gcsPrefix,omitempty"` @@ -1284,7 +1284,7 @@ func (s *GoogleCloudRetailV2alphaImportErrorsConfig) MarshalJSON() ([]byte, erro } // GoogleCloudRetailV2alphaImportMetadata: Metadata related to the -// progress of the Import operation. This is returned by the +// progress of the Import operation. This will be returned by the // google.longrunning.Operation.metadata field. type GoogleCloudRetailV2alphaImportMetadata struct { // CreateTime: Operation create time. @@ -1295,9 +1295,9 @@ type GoogleCloudRetailV2alphaImportMetadata struct { FailureCount int64 `json:"failureCount,omitempty,string"` // NotificationPubsubTopic: Pub/Sub topic for receiving notification. If - // this field is set, when the import is finished, a notification is - // sent to specified Pub/Sub topic. The message data is JSON string of a - // Operation. Format of the Pub/Sub topic is + // this field is set, when the import is finished, a notification will + // be sent to specified Pub/Sub topic. The message data will be JSON + // string of a Operation. Format of the Pub/Sub topic is // `projects/{project}/topics/{topic}`. NotificationPubsubTopic string `json:"notificationPubsubTopic,omitempty"` @@ -1417,21 +1417,21 @@ func (s *GoogleCloudRetailV2alphaImportUserEventsResponse) MarshalJSON() ([]byte // GoogleCloudRetailV2alphaModel: Metadata that describes the training // and serving parameters of a Model. A Model can be associated with a -// ServingConfig and then queried through the Predict API. +// ServingConfig and then queried through the Predict api. type GoogleCloudRetailV2alphaModel struct { // CreateTime: Output only. Timestamp the Recommendation Model was // created at. CreateTime string `json:"createTime,omitempty"` // DataState: Output only. The state of data requirements for this - // model: `DATA_OK` and `DATA_ERROR`. Recommendation model cannot be - // trained if the data is in `DATA_ERROR` state. Recommendation model - // can have `DATA_ERROR` state even if serving state is `ACTIVE`: models - // were trained successfully before, but cannot be refreshed because - // model no longer has sufficient data for training. + // model: DATA_OK and DATA_ERROR. Recommendation model cannot be trained + // if the data is in DATA_ERROR state. Recommendation model can have + // DATA_ERROR state even if serving state is ACTIVE: models were trained + // successfully before, but cannot be refreshed because model no longer + // has sufficient data for training. // // Possible values: - // "DATA_STATE_UNSPECIFIED" - Unspecified default value, should never + // "DATA_STATE_UNSPECIFIED" - Unspecified default value - should never // be explicitly set. // "DATA_OK" - The model has sufficient training data. // "DATA_ERROR" - The model does not have sufficient training data. @@ -1440,11 +1440,10 @@ type GoogleCloudRetailV2alphaModel struct { // DisplayName: Required. The display name of the model. Should be human // readable, used to display Recommendation Models in the Retail Cloud - // Console Dashboard. UTF-8 encoded string with limit of 1024 - // characters. + // Cosole Dashboard. UTF-8 encoded string with limit of 1024 characters. DisplayName string `json:"displayName,omitempty"` - // FilteringOption: Optional. If `RECOMMENDATIONS_FILTERING_ENABLED`, + // FilteringOption: Optional. If RECOMMENDATIONS_FILTERING_ENABLED, // recommendation filtering by attributes is enabled for the model. // // Possible values: @@ -1463,8 +1462,8 @@ type GoogleCloudRetailV2alphaModel struct { // Name: Required. The fully qualified resource name of the model. // Format: - // `projects/{project_number}/locations/{location_id}/catalogs/{catalog_i - // d}/models/{model_id}` catalog_id has char limit of 50. + // projects/{project_number}/locations/{location_id}/catalogs/{catalog_id + // }/models/{model_id} catalog_id has char limit of 50. // recommendation_model_id has char limit of 40. Name string `json:"name,omitempty"` @@ -1481,20 +1480,19 @@ type GoogleCloudRetailV2alphaModel struct { // PeriodicTuningState: Optional. The state of periodic tuning. The // period we use is 3 months - to do a one-off tune earlier use the - // `TuneModel` method. Default value is `PERIODIC_TUNING_ENABLED`. + // TuneModel method. Default value is PERIODIC_TUNING_ENABLED. // // Possible values: - // "PERIODIC_TUNING_STATE_UNSPECIFIED" - Unspecified default value, + // "PERIODIC_TUNING_STATE_UNSPECIFIED" - Unspecified default value - // should never be explicitly set. // "PERIODIC_TUNING_DISABLED" - The model has periodic tuning // disabled. Tuning can be reenabled by calling the - // `EnableModelPeriodicTuning` method or by calling the `TuneModel` - // method. + // EnableModelPeriodicTuning method or by calling the TuneModel method. // "ALL_TUNING_DISABLED" - The model cannot be tuned with periodic - // tuning OR the `TuneModel` method. Hide the options in customer UI and + // tuning OR the TuneModel method. Hide the options in customer UI and // reject any requests through the backend self serve API. // "PERIODIC_TUNING_ENABLED" - The model has periodic tuning enabled. - // Tuning can be disabled by calling the `DisableModelPeriodicTuning` + // Tuning can be disabled by calling the DisableModelPeriodicTuning // method. PeriodicTuningState string `json:"periodicTuningState,omitempty"` @@ -1502,24 +1500,23 @@ type GoogleCloudRetailV2alphaModel struct { // associated with the PageOptimizationConfig. ServingConfigLists []*GoogleCloudRetailV2alphaModelServingConfigList `json:"servingConfigLists,omitempty"` - // ServingState: Output only. The serving state of the model: `ACTIVE`, - // `NOT_ACTIVE`. + // ServingState: Output only. The serving state of the model: ACTIVE, + // NOT_ACTIVE. // // Possible values: // "SERVING_STATE_UNSPECIFIED" - Unspecified serving state. // "INACTIVE" - The model is not serving. // "ACTIVE" - The model is serving and can be queried. - // "TUNED" - The model is trained on tuned hyperparameters and can be + // "TUNED" - The model is trained on tuned hyperparameters, and can be // queried. ServingState string `json:"servingState,omitempty"` // TrainingState: Optional. The training state that the model is in - // (e.g. `TRAINING` or `PAUSED`). Since part of the cost of running the + // (e.g. TRAINING or PAUSED). Since part of the cost of running the // service is frequency of training - this can be used to determine when // to train model in order to control cost. If not specified: the - // default value for `CreateModel` method is `TRAINING`. The default - // value for `UpdateModel` method is to keep the state the same as - // before. + // default value for CreateModel method is TRAINING. the default value + // for UpdateModel method is to keep the state the same as before. // // Possible values: // "TRAINING_STATE_UNSPECIFIED" - Unspecified training state. @@ -1534,8 +1531,8 @@ type GoogleCloudRetailV2alphaModel struct { // Type: Required. The type of model e.g. `home-page`. Currently // supported values: `recommended-for-you`, `others-you-may-like`, - // `frequently-bought-together`, `page-optimization`, `similar-items`, - // `buy-it-again`, and `recently-viewed`(readonly value). + // `frequently-bought-together`, `page-optimization`, 'similar-items', + // 'buy-it-again', `recently-viewed`(readonly value). Type string `json:"type,omitempty"` // UpdateTime: Output only. Timestamp the Recommendation Model was last @@ -1612,21 +1609,21 @@ type GoogleCloudRetailV2alphaModelPageOptimizationConfig struct { // candidates`: * pdp_ctr, pdp_cvr, home_page_ctr_no_diversity * `Panel2 // candidates`: * home_page_ctr_no_diversity, // home_page_ctr_diversity_low, pdp_cvr_no_diversity * `Restriction` = - // `UNIQUE_SERVING_CONFIG_RESTRICTION` `Valid combinations`: * * - // (pdp_ctr, home_page_ctr_no_diversity) * (pdp_ctr, - // home_page_ctr_diversity_low) * (pdp_ctr, pdp_cvr_no_diversity) * - // (pdp_ctr, pdp_cvr_no_diversity) * (pdp_cvr, - // home_page_ctr_no_diversity) * (pdp_cvr, home_page_ctr_diversity_low) - // * (pdp_cvr, pdp_cvr_no_diversity) * (home_page_ctr_no_diversity, - // home_page_ctr_diversity_low) * (home_page_ctr_no_diversity, - // pdp_cvr_no_diversity) * `Invalid combinations`: * * - // (home_page_ctr_no_diversity, home_page_ctr_no_diversity) * + // UNIQUE_SERVING_CONFIG_RESTRICTION `Valid combinations`: * * (pdp_ctr, + // home_page_ctr_no_diversity) * (pdp_ctr, home_page_ctr_diversity_low) + // * (pdp_ctr, pdp_cvr_no_diversity) * (pdp_ctr, pdp_cvr_no_diversity) * + // (pdp_cvr, home_page_ctr_no_diversity) * (pdp_cvr, + // home_page_ctr_diversity_low) * (pdp_cvr, pdp_cvr_no_diversity) * + // (home_page_ctr_no_diversity, home_page_ctr_diversity_low) * + // (home_page_ctr_no_diversity, pdp_cvr_no_diversity) * `Invalid + // combinations`: * * (home_page_ctr_no_diversity, + // home_page_ctr_no_diversity) * // "UNIQUE_MODEL_RESTRICTION" - Do not allow multiple ServingConfigs // with same Model.name to be show on on different panels. Example: // `Panel1 candidates`: * pdp_ctr, pdp_cvr, home_page_ctr_no_diversity * // `Panel2 candidates`: * home_page_ctr_no_diversity, // home_page_ctr_diversity_low, pdp_cvr_no_diversity * `Restriction` = - // `UNIQUE_MODEL_RESTRICTION` `Valid combinations`: * * (pdp_ctr, + // UNIQUE_MODEL_RESTRICTION `Valid combinations`: * * (pdp_ctr, // home_page_ctr_no_diversity) * (pdp_ctr, home_page_ctr_diversity) * // (pdp_ctr, pdp_cvr_no_diversity) * (pdp_ctr, pdp_cvr_no_diversity) * // (pdp_cvr, home_page_ctr_no_diversity) * (pdp_cvr, @@ -1639,7 +1636,7 @@ type GoogleCloudRetailV2alphaModelPageOptimizationConfig struct { // Example: `Panel1 candidates`: * pdp_ctr, pdp_cvr, // home_page_ctr_no_diversity * `Panel2 candidates`: * // home_page_ctr_no_diversity, home_page_ctr_diversity_low, - // pdp_cvr_no_diversity * `Restriction` = `UNIQUE_MODEL_RESTRICTION` + // pdp_cvr_no_diversity * `Restriction` = UNIQUE_MODEL_RESTRICTION // `Valid combinations`: * * (pdp_ctr, home_page_ctr_no_diversity) * // (pdp_ctr, home_page_ctr_diversity) * (pdp_cvr, // home_page_ctr_no_diversity) * (pdp_cvr, home_page_ctr_diversity_low) @@ -1679,10 +1676,10 @@ func (s *GoogleCloudRetailV2alphaModelPageOptimizationConfig) MarshalJSON() ([]b // candidate to consider for a given panel. Currently only ServingConfig // are valid candidates. type GoogleCloudRetailV2alphaModelPageOptimizationConfigCandidate struct { - // ServingConfigId: This has to be a valid ServingConfig identifier. For - // example, for a ServingConfig with full name: + // ServingConfigId: This has to be a valid ServingConfig identifier. + // e.g. for a ServingConfig with full name: // `projects/*/locations/global/catalogs/default_catalog/servingConfigs/m - // y_candidate_config`, this would be `my_candidate_config`. + // y_candidate_config` this would be 'my_candidate_config' ServingConfigId string `json:"servingConfigId,omitempty"` // ForceSendFields is a list of field names (e.g. "ServingConfigId") to @@ -1716,8 +1713,8 @@ type GoogleCloudRetailV2alphaModelPageOptimizationConfigPanel struct { // = 10. Candidates []*GoogleCloudRetailV2alphaModelPageOptimizationConfigCandidate `json:"candidates,omitempty"` - // DefaultCandidate: Required. The default candidate. If the model fails - // at serving time, we fall back to the default. + // DefaultCandidate: Required. The default candidate (in case the model + // fails at serving time, we can fall back to the default). DefaultCandidate *GoogleCloudRetailV2alphaModelPageOptimizationConfigCandidate `json:"defaultCandidate,omitempty"` // DisplayName: Optional. The name to display for the panel. @@ -1747,11 +1744,11 @@ func (s *GoogleCloudRetailV2alphaModelPageOptimizationConfigPanel) MarshalJSON() } // GoogleCloudRetailV2alphaModelServingConfigList: Represents an ordered -// combination of valid serving configs, which can be used for -// `PAGE_OPTIMIZATION` recommendations. +// combination of valid serving configs, which / may be used for +// PAGE_OPTIMIZATION recommendations. type GoogleCloudRetailV2alphaModelServingConfigList struct { // ServingConfigIds: Optional. A set of valid serving configs that may - // be used for `PAGE_OPTIMIZATION`. + // be used for PAGE_OPTIMIZATION. ServingConfigIds []string `json:"servingConfigIds,omitempty"` // ForceSendFields is a list of field names (e.g. "ServingConfigIds") to @@ -3534,7 +3531,7 @@ func (s *GoogleCloudRetailV2betaFulfillmentInfo) MarshalJSON() ([]byte, error) { } // GoogleCloudRetailV2betaGcsSource: Google Cloud Storage location for -// input content. +// input content. format. type GoogleCloudRetailV2betaGcsSource struct { // DataSchema: The schema to use when parsing the data from the source. // Supported values for product imports: * `product` (default): One JSON @@ -3545,9 +3542,9 @@ type GoogleCloudRetailV2betaGcsSource struct { // Supported values for user events imports: * `user_event` (default): // One JSON UserEvent per line. * `user_event_ga360`: Using // https://support.google.com/analytics/answer/3437719. Supported values - // for control imports: * `control` (default): One JSON Control per + // for control imports: * 'control' (default): One JSON Control per // line. Supported values for catalog attribute imports: * - // `catalog_attribute` (default): One CSV CatalogAttribute per line. + // 'catalog_attribute' (default): One CSV CatalogAttribute per line. DataSchema string `json:"dataSchema,omitempty"` // InputUris: Required. Google Cloud Storage URIs to input files. URI @@ -3674,9 +3671,9 @@ type GoogleCloudRetailV2betaImportCompletionDataRequest struct { InputConfig *GoogleCloudRetailV2betaCompletionDataInputConfig `json:"inputConfig,omitempty"` // NotificationPubsubTopic: Pub/Sub topic for receiving notification. If - // this field is set, when the import is finished, a notification is - // sent to specified Pub/Sub topic. The message data is JSON string of a - // Operation. Format of the Pub/Sub topic is + // this field is set, when the import is finished, a notification will + // be sent to specified Pub/Sub topic. The message data will be JSON + // string of a Operation. Format of the Pub/Sub topic is // `projects/{project}/topics/{topic}`. NotificationPubsubTopic string `json:"notificationPubsubTopic,omitempty"` @@ -3740,7 +3737,7 @@ func (s *GoogleCloudRetailV2betaImportCompletionDataResponse) MarshalJSON() ([]b // destination for Import related errors. type GoogleCloudRetailV2betaImportErrorsConfig struct { // GcsPrefix: Google Cloud Storage prefix for import errors. This must - // be an empty, existing Cloud Storage directory. Import errors are + // be an empty, existing Cloud Storage directory. Import errors will be // written to sharded files in this directory, one per line, as a // JSON-encoded `google.rpc.Status` message. GcsPrefix string `json:"gcsPrefix,omitempty"` @@ -3769,7 +3766,7 @@ func (s *GoogleCloudRetailV2betaImportErrorsConfig) MarshalJSON() ([]byte, error } // GoogleCloudRetailV2betaImportMetadata: Metadata related to the -// progress of the Import operation. This is returned by the +// progress of the Import operation. This will be returned by the // google.longrunning.Operation.metadata field. type GoogleCloudRetailV2betaImportMetadata struct { // CreateTime: Operation create time. @@ -3780,9 +3777,9 @@ type GoogleCloudRetailV2betaImportMetadata struct { FailureCount int64 `json:"failureCount,omitempty,string"` // NotificationPubsubTopic: Pub/Sub topic for receiving notification. If - // this field is set, when the import is finished, a notification is - // sent to specified Pub/Sub topic. The message data is JSON string of a - // Operation. Format of the Pub/Sub topic is + // this field is set, when the import is finished, a notification will + // be sent to specified Pub/Sub topic. The message data will be JSON + // string of a Operation. Format of the Pub/Sub topic is // `projects/{project}/topics/{topic}`. NotificationPubsubTopic string `json:"notificationPubsubTopic,omitempty"` @@ -3831,9 +3828,9 @@ type GoogleCloudRetailV2betaImportProductsRequest struct { // NotificationPubsubTopic: Full Pub/Sub topic name for receiving // notification. If this field is set, when the import is finished, a - // notification is sent to specified Pub/Sub topic. The message data is - // JSON string of a Operation. Format of the Pub/Sub topic is - // `projects/{project}/topics/{topic}`. It has to be within the same + // notification will be sent to specified Pub/Sub topic. The message + // data will be JSON string of a Operation. Format of the Pub/Sub topic + // is `projects/{project}/topics/{topic}`. It has to be within the same // project as ImportProductsRequest.parent. Make sure that // `service-@gcp-sa-retail.iam.gserviceaccount.com` has the // `pubsub.topics.publish` IAM permission on the topic. @@ -3855,7 +3852,7 @@ type GoogleCloudRetailV2betaImportProductsRequest struct { RequestId string `json:"requestId,omitempty"` // UpdateMask: Indicates which fields in the provided imported - // `products` to update. If not set, all fields are updated. + // 'products' to update. If not set, will by default update all fields. UpdateMask string `json:"updateMask,omitempty"` // ForceSendFields is a list of field names (e.g. "ErrorsConfig") to @@ -10259,12 +10256,9 @@ type ProjectsLocationsCatalogsBranchesProductsAddFulfillmentPlacesCall struct { // processed downstream. As a consequence, when a response is returned, // the added place IDs are not immediately manifested in the Product // queried by ProductService.GetProduct or ProductService.ListProducts. -// The returned Operations will be obsolete after 1 day, and -// GetOperation API will return NOT_FOUND afterwards. If conflicting -// updates are issued, the Operations associated with the stale updates -// will not be marked as done until being obsolete. This feature is only -// available for users who have Retail Search enabled. Please enable -// Retail Search on Cloud Console before using this feature. +// This feature is only available for users who have Retail Search +// enabled. Please enable Retail Search on Cloud Console before using +// this feature. // // - product: Full resource name of Product, such as // `projects/*/locations/global/catalogs/default_catalog/branches/defau @@ -10369,7 +10363,7 @@ func (c *ProjectsLocationsCatalogsBranchesProductsAddFulfillmentPlacesCall) Do(o } return ret, nil // { - // "description": "Incrementally adds place IDs to Product.fulfillment_info.place_ids. This process is asynchronous and does not require the Product to exist before updating fulfillment information. If the request is valid, the update will be enqueued and processed downstream. As a consequence, when a response is returned, the added place IDs are not immediately manifested in the Product queried by ProductService.GetProduct or ProductService.ListProducts. The returned Operations will be obsolete after 1 day, and GetOperation API will return NOT_FOUND afterwards. If conflicting updates are issued, the Operations associated with the stale updates will not be marked as done until being obsolete. This feature is only available for users who have Retail Search enabled. Please enable Retail Search on Cloud Console before using this feature.", + // "description": "Incrementally adds place IDs to Product.fulfillment_info.place_ids. This process is asynchronous and does not require the Product to exist before updating fulfillment information. If the request is valid, the update will be enqueued and processed downstream. As a consequence, when a response is returned, the added place IDs are not immediately manifested in the Product queried by ProductService.GetProduct or ProductService.ListProducts. This feature is only available for users who have Retail Search enabled. Please enable Retail Search on Cloud Console before using this feature.", // "flatPath": "v2beta/projects/{projectsId}/locations/{locationsId}/catalogs/{catalogsId}/branches/{branchesId}/products/{productsId}:addFulfillmentPlaces", // "httpMethod": "POST", // "id": "retail.projects.locations.catalogs.branches.products.addFulfillmentPlaces", @@ -10420,13 +10414,9 @@ type ProjectsLocationsCatalogsBranchesProductsAddLocalInventoriesCall struct { // ProductService.GetProduct or ProductService.ListProducts. Local // inventory information can only be modified using this method. // ProductService.CreateProduct and ProductService.UpdateProduct has no -// effect on local inventories. The returned Operations will be obsolete -// after 1 day, and GetOperation API will return NOT_FOUND afterwards. -// If conflicting updates are issued, the Operations associated with the -// stale updates will not be marked as done until being obsolete. This -// feature is only available for users who have Retail Search enabled. -// Please enable Retail Search on Cloud Console before using this -// feature. +// effect on local inventories. This feature is only available for users +// who have Retail Search enabled. Please enable Retail Search on Cloud +// Console before using this feature. // // - product: Full resource name of Product, such as // `projects/*/locations/global/catalogs/default_catalog/branches/defau @@ -10531,7 +10521,7 @@ func (c *ProjectsLocationsCatalogsBranchesProductsAddLocalInventoriesCall) Do(op } return ret, nil // { - // "description": "Updates local inventory information for a Product at a list of places, while respecting the last update timestamps of each inventory field. This process is asynchronous and does not require the Product to exist before updating inventory information. If the request is valid, the update will be enqueued and processed downstream. As a consequence, when a response is returned, updates are not immediately manifested in the Product queried by ProductService.GetProduct or ProductService.ListProducts. Local inventory information can only be modified using this method. ProductService.CreateProduct and ProductService.UpdateProduct has no effect on local inventories. The returned Operations will be obsolete after 1 day, and GetOperation API will return NOT_FOUND afterwards. If conflicting updates are issued, the Operations associated with the stale updates will not be marked as done until being obsolete. This feature is only available for users who have Retail Search enabled. Please enable Retail Search on Cloud Console before using this feature.", + // "description": "Updates local inventory information for a Product at a list of places, while respecting the last update timestamps of each inventory field. This process is asynchronous and does not require the Product to exist before updating inventory information. If the request is valid, the update will be enqueued and processed downstream. As a consequence, when a response is returned, updates are not immediately manifested in the Product queried by ProductService.GetProduct or ProductService.ListProducts. Local inventory information can only be modified using this method. ProductService.CreateProduct and ProductService.UpdateProduct has no effect on local inventories. This feature is only available for users who have Retail Search enabled. Please enable Retail Search on Cloud Console before using this feature.", // "flatPath": "v2beta/projects/{projectsId}/locations/{locationsId}/catalogs/{catalogsId}/branches/{branchesId}/products/{productsId}:addLocalInventories", // "httpMethod": "POST", // "id": "retail.projects.locations.catalogs.branches.products.addLocalInventories", @@ -11604,12 +11594,9 @@ type ProjectsLocationsCatalogsBranchesProductsRemoveFulfillmentPlacesCall struct // processed downstream. As a consequence, when a response is returned, // the removed place IDs are not immediately manifested in the Product // queried by ProductService.GetProduct or ProductService.ListProducts. -// The returned Operations will be obsolete after 1 day, and -// GetOperation API will return NOT_FOUND afterwards. If conflicting -// updates are issued, the Operations associated with the stale updates -// will not be marked as done until being obsolete. This feature is only -// available for users who have Retail Search enabled. Please enable -// Retail Search on Cloud Console before using this feature. +// This feature is only available for users who have Retail Search +// enabled. Please enable Retail Search on Cloud Console before using +// this feature. // // - product: Full resource name of Product, such as // `projects/*/locations/global/catalogs/default_catalog/branches/defau @@ -11714,7 +11701,7 @@ func (c *ProjectsLocationsCatalogsBranchesProductsRemoveFulfillmentPlacesCall) D } return ret, nil // { - // "description": "Incrementally removes place IDs from a Product.fulfillment_info.place_ids. This process is asynchronous and does not require the Product to exist before updating fulfillment information. If the request is valid, the update will be enqueued and processed downstream. As a consequence, when a response is returned, the removed place IDs are not immediately manifested in the Product queried by ProductService.GetProduct or ProductService.ListProducts. The returned Operations will be obsolete after 1 day, and GetOperation API will return NOT_FOUND afterwards. If conflicting updates are issued, the Operations associated with the stale updates will not be marked as done until being obsolete. This feature is only available for users who have Retail Search enabled. Please enable Retail Search on Cloud Console before using this feature.", + // "description": "Incrementally removes place IDs from a Product.fulfillment_info.place_ids. This process is asynchronous and does not require the Product to exist before updating fulfillment information. If the request is valid, the update will be enqueued and processed downstream. As a consequence, when a response is returned, the removed place IDs are not immediately manifested in the Product queried by ProductService.GetProduct or ProductService.ListProducts. This feature is only available for users who have Retail Search enabled. Please enable Retail Search on Cloud Console before using this feature.", // "flatPath": "v2beta/projects/{projectsId}/locations/{locationsId}/catalogs/{catalogsId}/branches/{branchesId}/products/{productsId}:removeFulfillmentPlaces", // "httpMethod": "POST", // "id": "retail.projects.locations.catalogs.branches.products.removeFulfillmentPlaces", @@ -11763,13 +11750,9 @@ type ProjectsLocationsCatalogsBranchesProductsRemoveLocalInventoriesCall struct // queried by ProductService.GetProduct or ProductService.ListProducts. // Local inventory information can only be removed using this method. // ProductService.CreateProduct and ProductService.UpdateProduct has no -// effect on local inventories. The returned Operations will be obsolete -// after 1 day, and GetOperation API will return NOT_FOUND afterwards. -// If conflicting updates are issued, the Operations associated with the -// stale updates will not be marked as done until being obsolete. This -// feature is only available for users who have Retail Search enabled. -// Please enable Retail Search on Cloud Console before using this -// feature. +// effect on local inventories. This feature is only available for users +// who have Retail Search enabled. Please enable Retail Search on Cloud +// Console before using this feature. // // - product: Full resource name of Product, such as // `projects/*/locations/global/catalogs/default_catalog/branches/defau @@ -11874,7 +11857,7 @@ func (c *ProjectsLocationsCatalogsBranchesProductsRemoveLocalInventoriesCall) Do } return ret, nil // { - // "description": "Remove local inventory information for a Product at a list of places at a removal timestamp. This process is asynchronous. If the request is valid, the removal will be enqueued and processed downstream. As a consequence, when a response is returned, removals are not immediately manifested in the Product queried by ProductService.GetProduct or ProductService.ListProducts. Local inventory information can only be removed using this method. ProductService.CreateProduct and ProductService.UpdateProduct has no effect on local inventories. The returned Operations will be obsolete after 1 day, and GetOperation API will return NOT_FOUND afterwards. If conflicting updates are issued, the Operations associated with the stale updates will not be marked as done until being obsolete. This feature is only available for users who have Retail Search enabled. Please enable Retail Search on Cloud Console before using this feature.", + // "description": "Remove local inventory information for a Product at a list of places at a removal timestamp. This process is asynchronous. If the request is valid, the removal will be enqueued and processed downstream. As a consequence, when a response is returned, removals are not immediately manifested in the Product queried by ProductService.GetProduct or ProductService.ListProducts. Local inventory information can only be removed using this method. ProductService.CreateProduct and ProductService.UpdateProduct has no effect on local inventories. This feature is only available for users who have Retail Search enabled. Please enable Retail Search on Cloud Console before using this feature.", // "flatPath": "v2beta/projects/{projectsId}/locations/{locationsId}/catalogs/{catalogsId}/branches/{branchesId}/products/{productsId}:removeLocalInventories", // "httpMethod": "POST", // "id": "retail.projects.locations.catalogs.branches.products.removeLocalInventories", @@ -11935,13 +11918,9 @@ type ProjectsLocationsCatalogsBranchesProductsSetInventoryCall struct { // information will be preserved. Pre-existing inventory information can // only be updated with ProductService.SetInventory, // ProductService.AddFulfillmentPlaces, and -// ProductService.RemoveFulfillmentPlaces. The returned Operations will -// be obsolete after 1 day, and GetOperation API will return NOT_FOUND -// afterwards. If conflicting updates are issued, the Operations -// associated with the stale updates will not be marked as done until -// being obsolete. This feature is only available for users who have -// Retail Search enabled. Please enable Retail Search on Cloud Console -// before using this feature. +// ProductService.RemoveFulfillmentPlaces. This feature is only +// available for users who have Retail Search enabled. Please enable +// Retail Search on Cloud Console before using this feature. // // - name: Immutable. Full resource name of the product, such as // `projects/*/locations/global/catalogs/default_catalog/branches/defau @@ -12044,7 +12023,7 @@ func (c *ProjectsLocationsCatalogsBranchesProductsSetInventoryCall) Do(opts ...g } return ret, nil // { - // "description": "Updates inventory information for a Product while respecting the last update timestamps of each inventory field. This process is asynchronous and does not require the Product to exist before updating fulfillment information. If the request is valid, the update will be enqueued and processed downstream. As a consequence, when a response is returned, updates are not immediately manifested in the Product queried by ProductService.GetProduct or ProductService.ListProducts. When inventory is updated with ProductService.CreateProduct and ProductService.UpdateProduct, the specified inventory field value(s) will overwrite any existing value(s) while ignoring the last update time for this field. Furthermore, the last update time for the specified inventory fields will be overwritten to the time of the ProductService.CreateProduct or ProductService.UpdateProduct request. If no inventory fields are set in CreateProductRequest.product, then any pre-existing inventory information for this product will be used. If no inventory fields are set in SetInventoryRequest.set_mask, then any existing inventory information will be preserved. Pre-existing inventory information can only be updated with ProductService.SetInventory, ProductService.AddFulfillmentPlaces, and ProductService.RemoveFulfillmentPlaces. The returned Operations will be obsolete after 1 day, and GetOperation API will return NOT_FOUND afterwards. If conflicting updates are issued, the Operations associated with the stale updates will not be marked as done until being obsolete. This feature is only available for users who have Retail Search enabled. Please enable Retail Search on Cloud Console before using this feature.", + // "description": "Updates inventory information for a Product while respecting the last update timestamps of each inventory field. This process is asynchronous and does not require the Product to exist before updating fulfillment information. If the request is valid, the update will be enqueued and processed downstream. As a consequence, when a response is returned, updates are not immediately manifested in the Product queried by ProductService.GetProduct or ProductService.ListProducts. When inventory is updated with ProductService.CreateProduct and ProductService.UpdateProduct, the specified inventory field value(s) will overwrite any existing value(s) while ignoring the last update time for this field. Furthermore, the last update time for the specified inventory fields will be overwritten to the time of the ProductService.CreateProduct or ProductService.UpdateProduct request. If no inventory fields are set in CreateProductRequest.product, then any pre-existing inventory information for this product will be used. If no inventory fields are set in SetInventoryRequest.set_mask, then any existing inventory information will be preserved. Pre-existing inventory information can only be updated with ProductService.SetInventory, ProductService.AddFulfillmentPlaces, and ProductService.RemoveFulfillmentPlaces. This feature is only available for users who have Retail Search enabled. Please enable Retail Search on Cloud Console before using this feature.", // "flatPath": "v2beta/projects/{projectsId}/locations/{locationsId}/catalogs/{catalogsId}/branches/{branchesId}/products/{productsId}:setInventory", // "httpMethod": "POST", // "id": "retail.projects.locations.catalogs.branches.products.setInventory", @@ -15361,10 +15340,10 @@ type ProjectsLocationsCatalogsUserEventsImportCall struct { // Import: Bulk import of User events. Request processing might be // synchronous. Events that already exist are skipped. Use this method -// for backfilling historical user events. `Operation.response` is of -// type `ImportResponse`. Note that it is possible for a subset of the -// items to be successfully inserted. `Operation.metadata` is of type -// `ImportMetadata`. +// for backfilling historical user events. Operation.response is of type +// ImportResponse. Note that it is possible for a subset of the items to +// be successfully inserted. Operation.metadata is of type +// ImportMetadata. // // - parent: `projects/1234/locations/global/catalogs/default_catalog`. func (r *ProjectsLocationsCatalogsUserEventsService) Import(parent string, googlecloudretailv2betaimportusereventsrequest *GoogleCloudRetailV2betaImportUserEventsRequest) *ProjectsLocationsCatalogsUserEventsImportCall { @@ -15465,7 +15444,7 @@ func (c *ProjectsLocationsCatalogsUserEventsImportCall) Do(opts ...googleapi.Cal } return ret, nil // { - // "description": "Bulk import of User events. Request processing might be synchronous. Events that already exist are skipped. Use this method for backfilling historical user events. `Operation.response` is of type `ImportResponse`. Note that it is possible for a subset of the items to be successfully inserted. `Operation.metadata` is of type `ImportMetadata`.", + // "description": "Bulk import of User events. Request processing might be synchronous. Events that already exist are skipped. Use this method for backfilling historical user events. Operation.response is of type ImportResponse. Note that it is possible for a subset of the items to be successfully inserted. Operation.metadata is of type ImportMetadata.", // "flatPath": "v2beta/projects/{projectsId}/locations/{locationsId}/catalogs/{catalogsId}/userEvents:import", // "httpMethod": "POST", // "id": "retail.projects.locations.catalogs.userEvents.import", diff --git a/tagmanager/v2/tagmanager-api.json b/tagmanager/v2/tagmanager-api.json index 147a5d2dec4..5c4e8e27d1f 100644 --- a/tagmanager/v2/tagmanager-api.json +++ b/tagmanager/v2/tagmanager-api.json @@ -3317,7 +3317,7 @@ } } }, - "revision": "20211027", + "revision": "20220813", "rootUrl": "https://tagmanager.googleapis.com/", "schemas": { "Account": { @@ -5584,13 +5584,6 @@ "description": "User notes on how to apply this zone in the container.", "type": "string" }, - "parameter": { - "description": "Additional parameters.", - "items": { - "$ref": "Parameter" - }, - "type": "array" - }, "path": { "description": "GTM Zone's API relative path.", "type": "string" diff --git a/tagmanager/v2/tagmanager-gen.go b/tagmanager/v2/tagmanager-gen.go index e15bea7c007..df0f4c85d49 100644 --- a/tagmanager/v2/tagmanager-gen.go +++ b/tagmanager/v2/tagmanager-gen.go @@ -3412,9 +3412,6 @@ type Zone struct { // Notes: User notes on how to apply this zone in the container. Notes string `json:"notes,omitempty"` - // Parameter: Additional parameters. - Parameter []*Parameter `json:"parameter,omitempty"` - // Path: GTM Zone's API relative path. Path string `json:"path,omitempty"`