From 922fc6a38962d441b49d8592d62b5b4c70354b7a Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Fri, 16 Jun 2023 00:24:12 -0700 Subject: [PATCH 01/11] feat(all): auto-regenerate discovery clients (#2028) --- .../v1alpha/analyticsadmin-api.json | 10 ++-- analyticsadmin/v1alpha/analyticsadmin-gen.go | 34 +++++++++--- androidpublisher/v3/androidpublisher-api.json | 14 ++--- androidpublisher/v3/androidpublisher-gen.go | 42 ++++++++++---- civicinfo/v2/civicinfo-api.json | 19 ++++++- civicinfo/v2/civicinfo-gen.go | 33 ++++++++++- cloudfunctions/v1/cloudfunctions-api.json | 10 ++-- cloudfunctions/v1/cloudfunctions-gen.go | 19 +++---- cloudfunctions/v2/cloudfunctions-api.json | 8 +-- cloudfunctions/v2/cloudfunctions-gen.go | 12 ++-- .../v2alpha/cloudfunctions-api.json | 8 +-- cloudfunctions/v2alpha/cloudfunctions-gen.go | 12 ++-- cloudfunctions/v2beta/cloudfunctions-api.json | 8 +-- cloudfunctions/v2beta/cloudfunctions-gen.go | 12 ++-- cloudsupport/v2beta/cloudsupport-api.json | 6 +- cloudsupport/v2beta/cloudsupport-gen.go | 17 ++++-- compute/v1/compute-api.json | 30 +++++++++- compute/v1/compute-gen.go | 55 ++++++++++++++++++- datamigration/v1/datamigration-api.json | 8 ++- datamigration/v1/datamigration-gen.go | 1 + displayvideo/v1/displayvideo-api.json | 18 +++--- displayvideo/v1/displayvideo-gen.go | 54 ++---------------- displayvideo/v2/displayvideo-api.json | 18 +++--- displayvideo/v2/displayvideo-gen.go | 54 ++---------------- firestore/v1/firestore-api.json | 4 +- firestore/v1/firestore-gen.go | 3 +- firestore/v1beta1/firestore-api.json | 4 +- firestore/v1beta1/firestore-gen.go | 3 +- .../v1/paymentsresellersubscription-api.json | 6 +- .../v1/paymentsresellersubscription-gen.go | 2 + run/v1/run-api.json | 12 ++-- run/v1/run-gen.go | 15 +++-- run/v2/run-api.json | 4 +- run/v2/run-gen.go | 2 +- tagmanager/v2/tagmanager-api.json | 22 ++++++-- tagmanager/v2/tagmanager-gen.go | 20 +++++-- 36 files changed, 360 insertions(+), 239 deletions(-) diff --git a/analyticsadmin/v1alpha/analyticsadmin-api.json b/analyticsadmin/v1alpha/analyticsadmin-api.json index 69e8a0e1716..86b23e73e9a 100644 --- a/analyticsadmin/v1alpha/analyticsadmin-api.json +++ b/analyticsadmin/v1alpha/analyticsadmin-api.json @@ -4322,7 +4322,7 @@ } } }, - "revision": "20230612", + "revision": "20230615", "rootUrl": "https://analyticsadmin.googleapis.com/", "schemas": { "GoogleAnalyticsAdminV1alphaAccessBetweenFilter": { @@ -4902,10 +4902,10 @@ "Reporting attribution model unspecified.", "Data-driven attribution distributes credit for the conversion based on data for each conversion event. Each Data-driven model is specific to each advertiser and each conversion event.", "Ignores direct traffic and attributes 100% of the conversion value to the last channel that the customer clicked through (or engaged view through for YouTube) before converting.", - "Gives all credit for the conversion to the first channel that a customer clicked (or engaged view through for YouTube) before converting.", - "Distributes the credit for the conversion equally across all the channels a customer clicked (or engaged view through for YouTube) before converting.", - "Attributes 40% credit to the first and last interaction, and the remaining 20% credit is distributed evenly to the middle interactions.", - "Gives more credit to the touchpoints that happened closer in time to the conversion.", + "Starting in June 2023, new properties can no longer use this model. See [Analytics Help](https://support.google.com/analytics/answer/9164320?hl=en#040623) for more details. Starting in September 2023, we will sunset this model for all properties. Gives all credit for the conversion to the first channel that a customer clicked (or engaged view through for YouTube) before converting.", + "Starting in June 2023, new properties can no longer use this model. See [Analytics Help](https://support.google.com/analytics/answer/9164320?hl=en#040623) for more details. Starting in September 2023, we will sunset this model for all properties. Distributes the credit for the conversion equally across all the channels a customer clicked (or engaged view through for YouTube) before converting.", + "Starting in June 2023, new properties can no longer use this model. See [Analytics Help](https://support.google.com/analytics/answer/9164320?hl=en#040623) for more details. Starting in September 2023, we will sunset this model for all properties. Attributes 40% credit to the first and last interaction, and the remaining 20% credit is distributed evenly to the middle interactions.", + "Starting in June 2023, new properties can no longer use this model. See [Analytics Help](https://support.google.com/analytics/answer/9164320?hl=en#040623) for more details. Starting in September 2023, we will sunset this model for all properties. Gives more credit to the touchpoints that happened closer in time to the conversion.", "Attributes 100% of the conversion value to the last Google Ads channel that the customer clicked through before converting." ], "type": "string" diff --git a/analyticsadmin/v1alpha/analyticsadmin-gen.go b/analyticsadmin/v1alpha/analyticsadmin-gen.go index ce306821191..5d3394af61d 100644 --- a/analyticsadmin/v1alpha/analyticsadmin-gen.go +++ b/analyticsadmin/v1alpha/analyticsadmin-gen.go @@ -1487,17 +1487,33 @@ type GoogleAnalyticsAdminV1alphaAttributionSettings struct { // 100% of the conversion value to the last channel that the customer // clicked through (or engaged view through for YouTube) before // converting. - // "CROSS_CHANNEL_FIRST_CLICK" - Gives all credit for the conversion - // to the first channel that a customer clicked (or engaged view through - // for YouTube) before converting. - // "CROSS_CHANNEL_LINEAR" - Distributes the credit for the conversion + // "CROSS_CHANNEL_FIRST_CLICK" - Starting in June 2023, new properties + // can no longer use this model. See [Analytics + // Help](https://support.google.com/analytics/answer/9164320?hl=en#040623 + // ) for more details. Starting in September 2023, we will sunset this + // model for all properties. Gives all credit for the conversion to the + // first channel that a customer clicked (or engaged view through for + // YouTube) before converting. + // "CROSS_CHANNEL_LINEAR" - Starting in June 2023, new properties can + // no longer use this model. See [Analytics + // Help](https://support.google.com/analytics/answer/9164320?hl=en#040623 + // ) for more details. Starting in September 2023, we will sunset this + // model for all properties. Distributes the credit for the conversion // equally across all the channels a customer clicked (or engaged view // through for YouTube) before converting. - // "CROSS_CHANNEL_POSITION_BASED" - Attributes 40% credit to the first - // and last interaction, and the remaining 20% credit is distributed - // evenly to the middle interactions. - // "CROSS_CHANNEL_TIME_DECAY" - Gives more credit to the touchpoints - // that happened closer in time to the conversion. + // "CROSS_CHANNEL_POSITION_BASED" - Starting in June 2023, new + // properties can no longer use this model. See [Analytics + // Help](https://support.google.com/analytics/answer/9164320?hl=en#040623 + // ) for more details. Starting in September 2023, we will sunset this + // model for all properties. Attributes 40% credit to the first and last + // interaction, and the remaining 20% credit is distributed evenly to + // the middle interactions. + // "CROSS_CHANNEL_TIME_DECAY" - Starting in June 2023, new properties + // can no longer use this model. See [Analytics + // Help](https://support.google.com/analytics/answer/9164320?hl=en#040623 + // ) for more details. Starting in September 2023, we will sunset this + // model for all properties. Gives more credit to the touchpoints that + // happened closer in time to the conversion. // "ADS_PREFERRED_LAST_CLICK" - Attributes 100% of the conversion // value to the last Google Ads channel that the customer clicked // through before converting. diff --git a/androidpublisher/v3/androidpublisher-api.json b/androidpublisher/v3/androidpublisher-api.json index 0b5029fbbf7..0598f27f822 100644 --- a/androidpublisher/v3/androidpublisher-api.json +++ b/androidpublisher/v3/androidpublisher-api.json @@ -2099,7 +2099,7 @@ "inappproducts": { "methods": { "delete": { - "description": "Deletes an in-app product (i.e. a managed product or a subscription).", + "description": "Deletes an in-app product (i.e. a managed product or a subscription). This method should no longer be used to delete subscriptions. See [this article](https://android-developers.googleblog.com/2023/06/changes-to-google-play-developer-api-june-2023.html) for more information.", "flatPath": "androidpublisher/v3/applications/{packageName}/inappproducts/{sku}", "httpMethod": "DELETE", "id": "androidpublisher.inappproducts.delete", @@ -2127,7 +2127,7 @@ ] }, "get": { - "description": "Gets an in-app product, which can be a managed product or a subscription.", + "description": "Gets an in-app product, which can be a managed product or a subscription. This method should no longer be used to retrieve subscriptions. See [this article](https://android-developers.googleblog.com/2023/06/changes-to-google-play-developer-api-june-2023.html) for more information.", "flatPath": "androidpublisher/v3/applications/{packageName}/inappproducts/{sku}", "httpMethod": "GET", "id": "androidpublisher.inappproducts.get", @@ -2158,7 +2158,7 @@ ] }, "insert": { - "description": "Creates an in-app product (i.e. a managed product or a subscription).", + "description": "Creates an in-app product (i.e. a managed product or a subscription). This method should no longer be used to create subscriptions. See [this article](https://android-developers.googleblog.com/2023/06/changes-to-google-play-developer-api-june-2023.html) for more information.", "flatPath": "androidpublisher/v3/applications/{packageName}/inappproducts", "httpMethod": "POST", "id": "androidpublisher.inappproducts.insert", @@ -2190,7 +2190,7 @@ ] }, "list": { - "description": "Lists all in-app products - both managed products and subscriptions. If an app has a large number of in-app products, the response may be paginated. In this case the response field `tokenPagination.nextPageToken` will be set and the caller should provide its value as a `token` request parameter to retrieve the next page.", + "description": "Lists all in-app products - both managed products and subscriptions. If an app has a large number of in-app products, the response may be paginated. In this case the response field `tokenPagination.nextPageToken` will be set and the caller should provide its value as a `token` request parameter to retrieve the next page. This method should no longer be used to retrieve subscriptions. See [this article](https://android-developers.googleblog.com/2023/06/changes-to-google-play-developer-api-june-2023.html) for more information.", "flatPath": "androidpublisher/v3/applications/{packageName}/inappproducts", "httpMethod": "GET", "id": "androidpublisher.inappproducts.list", @@ -2233,7 +2233,7 @@ ] }, "patch": { - "description": "Patches an in-app product (i.e. a managed product or a subscription).", + "description": "Patches an in-app product (i.e. a managed product or a subscription). This method should no longer be used to update subscriptions. See [this article](https://android-developers.googleblog.com/2023/06/changes-to-google-play-developer-api-june-2023.html) for more information.", "flatPath": "androidpublisher/v3/applications/{packageName}/inappproducts/{sku}", "httpMethod": "PATCH", "id": "androidpublisher.inappproducts.patch", @@ -2272,7 +2272,7 @@ ] }, "update": { - "description": "Updates an in-app product (i.e. a managed product or a subscription).", + "description": "Updates an in-app product (i.e. a managed product or a subscription). This method should no longer be used to update subscriptions. See [this article](https://android-developers.googleblog.com/2023/06/changes-to-google-play-developer-api-june-2023.html) for more information.", "flatPath": "androidpublisher/v3/applications/{packageName}/inappproducts/{sku}", "httpMethod": "PUT", "id": "androidpublisher.inappproducts.update", @@ -4047,7 +4047,7 @@ } } }, - "revision": "20230612", + "revision": "20230615", "rootUrl": "https://androidpublisher.googleapis.com/", "schemas": { "AcquisitionTargetingRule": { diff --git a/androidpublisher/v3/androidpublisher-gen.go b/androidpublisher/v3/androidpublisher-gen.go index 22ef03e25d3..8da46323144 100644 --- a/androidpublisher/v3/androidpublisher-gen.go +++ b/androidpublisher/v3/androidpublisher-gen.go @@ -14349,7 +14349,10 @@ type InappproductsDeleteCall struct { } // Delete: Deletes an in-app product (i.e. a managed product or a -// subscription). +// subscription). This method should no longer be used to delete +// subscriptions. See this article +// (https://android-developers.googleblog.com/2023/06/changes-to-google-play-developer-api-june-2023.html) +// for more information. // // - packageName: Package name of the app. // - sku: Unique identifier for the in-app product. @@ -14422,7 +14425,7 @@ func (c *InappproductsDeleteCall) Do(opts ...googleapi.CallOption) error { } return nil // { - // "description": "Deletes an in-app product (i.e. a managed product or a subscription).", + // "description": "Deletes an in-app product (i.e. a managed product or a subscription). This method should no longer be used to delete subscriptions. See [this article](https://android-developers.googleblog.com/2023/06/changes-to-google-play-developer-api-june-2023.html) for more information.", // "flatPath": "androidpublisher/v3/applications/{packageName}/inappproducts/{sku}", // "httpMethod": "DELETE", // "id": "androidpublisher.inappproducts.delete", @@ -14465,7 +14468,10 @@ type InappproductsGetCall struct { } // Get: Gets an in-app product, which can be a managed product or a -// subscription. +// subscription. This method should no longer be used to retrieve +// subscriptions. See this article +// (https://android-developers.googleblog.com/2023/06/changes-to-google-play-developer-api-june-2023.html) +// for more information. // // - packageName: Package name of the app. // - sku: Unique identifier for the in-app product. @@ -14576,7 +14582,7 @@ func (c *InappproductsGetCall) Do(opts ...googleapi.CallOption) (*InAppProduct, } return ret, nil // { - // "description": "Gets an in-app product, which can be a managed product or a subscription.", + // "description": "Gets an in-app product, which can be a managed product or a subscription. This method should no longer be used to retrieve subscriptions. See [this article](https://android-developers.googleblog.com/2023/06/changes-to-google-play-developer-api-june-2023.html) for more information.", // "flatPath": "androidpublisher/v3/applications/{packageName}/inappproducts/{sku}", // "httpMethod": "GET", // "id": "androidpublisher.inappproducts.get", @@ -14621,7 +14627,10 @@ type InappproductsInsertCall struct { } // Insert: Creates an in-app product (i.e. a managed product or a -// subscription). +// subscription). This method should no longer be used to create +// subscriptions. See this article +// (https://android-developers.googleblog.com/2023/06/changes-to-google-play-developer-api-june-2023.html) +// for more information. // // - packageName: Package name of the app. func (r *InappproductsService) Insert(packageName string, inappproduct *InAppProduct) *InappproductsInsertCall { @@ -14732,7 +14741,7 @@ func (c *InappproductsInsertCall) Do(opts ...googleapi.CallOption) (*InAppProduc } return ret, nil // { - // "description": "Creates an in-app product (i.e. a managed product or a subscription).", + // "description": "Creates an in-app product (i.e. a managed product or a subscription). This method should no longer be used to create subscriptions. See [this article](https://android-developers.googleblog.com/2023/06/changes-to-google-play-developer-api-june-2023.html) for more information.", // "flatPath": "androidpublisher/v3/applications/{packageName}/inappproducts", // "httpMethod": "POST", // "id": "androidpublisher.inappproducts.insert", @@ -14782,7 +14791,10 @@ type InappproductsListCall struct { // response may be paginated. In this case the response field // `tokenPagination.nextPageToken` will be set and the caller should // provide its value as a `token` request parameter to retrieve the next -// page. +// page. This method should no longer be used to retrieve subscriptions. +// See this article +// (https://android-developers.googleblog.com/2023/06/changes-to-google-play-developer-api-june-2023.html) +// for more information. // // - packageName: Package name of the app. func (r *InappproductsService) List(packageName string) *InappproductsListCall { @@ -14911,7 +14923,7 @@ func (c *InappproductsListCall) Do(opts ...googleapi.CallOption) (*Inappproducts } return ret, nil // { - // "description": "Lists all in-app products - both managed products and subscriptions. If an app has a large number of in-app products, the response may be paginated. In this case the response field `tokenPagination.nextPageToken` will be set and the caller should provide its value as a `token` request parameter to retrieve the next page.", + // "description": "Lists all in-app products - both managed products and subscriptions. If an app has a large number of in-app products, the response may be paginated. In this case the response field `tokenPagination.nextPageToken` will be set and the caller should provide its value as a `token` request parameter to retrieve the next page. This method should no longer be used to retrieve subscriptions. See [this article](https://android-developers.googleblog.com/2023/06/changes-to-google-play-developer-api-june-2023.html) for more information.", // "flatPath": "androidpublisher/v3/applications/{packageName}/inappproducts", // "httpMethod": "GET", // "id": "androidpublisher.inappproducts.list", @@ -14969,7 +14981,10 @@ type InappproductsPatchCall struct { } // Patch: Patches an in-app product (i.e. a managed product or a -// subscription). +// subscription). This method should no longer be used to update +// subscriptions. See this article +// (https://android-developers.googleblog.com/2023/06/changes-to-google-play-developer-api-june-2023.html) +// for more information. // // - packageName: Package name of the app. // - sku: Unique identifier for the in-app product. @@ -15083,7 +15098,7 @@ func (c *InappproductsPatchCall) Do(opts ...googleapi.CallOption) (*InAppProduct } return ret, nil // { - // "description": "Patches an in-app product (i.e. a managed product or a subscription).", + // "description": "Patches an in-app product (i.e. a managed product or a subscription). This method should no longer be used to update subscriptions. See [this article](https://android-developers.googleblog.com/2023/06/changes-to-google-play-developer-api-june-2023.html) for more information.", // "flatPath": "androidpublisher/v3/applications/{packageName}/inappproducts/{sku}", // "httpMethod": "PATCH", // "id": "androidpublisher.inappproducts.patch", @@ -15137,7 +15152,10 @@ type InappproductsUpdateCall struct { } // Update: Updates an in-app product (i.e. a managed product or a -// subscription). +// subscription). This method should no longer be used to update +// subscriptions. See this article +// (https://android-developers.googleblog.com/2023/06/changes-to-google-play-developer-api-june-2023.html) +// for more information. // // - packageName: Package name of the app. // - sku: Unique identifier for the in-app product. @@ -15259,7 +15277,7 @@ func (c *InappproductsUpdateCall) Do(opts ...googleapi.CallOption) (*InAppProduc } return ret, nil // { - // "description": "Updates an in-app product (i.e. a managed product or a subscription).", + // "description": "Updates an in-app product (i.e. a managed product or a subscription). This method should no longer be used to update subscriptions. See [this article](https://android-developers.googleblog.com/2023/06/changes-to-google-play-developer-api-june-2023.html) for more information.", // "flatPath": "androidpublisher/v3/applications/{packageName}/inappproducts/{sku}", // "httpMethod": "PUT", // "id": "androidpublisher.inappproducts.update", diff --git a/civicinfo/v2/civicinfo-api.json b/civicinfo/v2/civicinfo-api.json index 90e82443f0e..baf5491307a 100644 --- a/civicinfo/v2/civicinfo-api.json +++ b/civicinfo/v2/civicinfo-api.json @@ -125,7 +125,14 @@ "httpMethod": "GET", "id": "civicinfo.elections.electionQuery", "parameterOrder": [], - "parameters": {}, + "parameters": { + "productionDataOnly": { + "default": "true", + "description": "Whether to include data that has not been allowlisted yet", + "location": "query", + "type": "boolean" + } + }, "path": "civicinfo/v2/elections", "response": { "$ref": "ElectionsQueryResponse" @@ -159,6 +166,12 @@ "location": "query", "type": "boolean" }, + "productionDataOnly": { + "default": "true", + "description": "Whether to include data that has not been vetted yet. Should only be made available to internal IPs or trusted partners. This is a non-discoverable parameter in the One Platform API config.", + "location": "query", + "type": "boolean" + }, "returnAllAvailableData": { "default": "false", "description": "If set to true, the query will return the success code and include any partial information when it is unable to determine a matching address or unable to determine the election for electionId=0 queries.", @@ -352,7 +365,7 @@ } } }, - "revision": "20230606", + "revision": "20230613", "rootUrl": "https://civicinfo.googleapis.com/", "schemas": { "AdministrationRegion": { @@ -1341,7 +1354,7 @@ "type": "string" }, "precincts": { - "description": "The precincts that match this voter's address. Will only be returned for project IDs which have been whitelisted as \"partner projects\".", + "description": "The precincts that match this voter's address. Will only be returned for project IDs which have been allowlisted as \"partner projects\".", "items": { "$ref": "Precinct" }, diff --git a/civicinfo/v2/civicinfo-gen.go b/civicinfo/v2/civicinfo-gen.go index 29a09501295..1496e13aa90 100644 --- a/civicinfo/v2/civicinfo-gen.go +++ b/civicinfo/v2/civicinfo-gen.go @@ -1341,7 +1341,7 @@ type VoterInfoResponse struct { PrecinctId string `json:"precinctId,omitempty"` // Precincts: The precincts that match this voter's address. Will only - // be returned for project IDs which have been whitelisted as "partner + // be returned for project IDs which have been allowlisted as "partner // projects". Precincts []*Precinct `json:"precincts,omitempty"` @@ -1536,6 +1536,13 @@ func (r *ElectionsService) ElectionQuery() *ElectionsElectionQueryCall { return c } +// ProductionDataOnly sets the optional parameter "productionDataOnly": +// Whether to include data that has not been allowlisted yet +func (c *ElectionsElectionQueryCall) ProductionDataOnly(productionDataOnly bool) *ElectionsElectionQueryCall { + c.urlParams_.Set("productionDataOnly", fmt.Sprint(productionDataOnly)) + return c +} + // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. @@ -1637,7 +1644,14 @@ func (c *ElectionsElectionQueryCall) Do(opts ...googleapi.CallOption) (*Election // "httpMethod": "GET", // "id": "civicinfo.elections.electionQuery", // "parameterOrder": [], - // "parameters": {}, + // "parameters": { + // "productionDataOnly": { + // "default": "true", + // "description": "Whether to include data that has not been allowlisted yet", + // "location": "query", + // "type": "boolean" + // } + // }, // "path": "civicinfo/v2/elections", // "response": { // "$ref": "ElectionsQueryResponse" @@ -1684,6 +1698,15 @@ func (c *ElectionsVoterInfoQueryCall) OfficialOnly(officialOnly bool) *Elections return c } +// ProductionDataOnly sets the optional parameter "productionDataOnly": +// Whether to include data that has not been vetted yet. Should only be +// made available to internal IPs or trusted partners. This is a +// non-discoverable parameter in the One Platform API config. +func (c *ElectionsVoterInfoQueryCall) ProductionDataOnly(productionDataOnly bool) *ElectionsVoterInfoQueryCall { + c.urlParams_.Set("productionDataOnly", fmt.Sprint(productionDataOnly)) + return c +} + // ReturnAllAvailableData sets the optional parameter // "returnAllAvailableData": If set to true, the query will return the // success code and include any partial information when it is unable to @@ -1817,6 +1840,12 @@ func (c *ElectionsVoterInfoQueryCall) Do(opts ...googleapi.CallOption) (*VoterIn // "location": "query", // "type": "boolean" // }, + // "productionDataOnly": { + // "default": "true", + // "description": "Whether to include data that has not been vetted yet. Should only be made available to internal IPs or trusted partners. This is a non-discoverable parameter in the One Platform API config.", + // "location": "query", + // "type": "boolean" + // }, // "returnAllAvailableData": { // "default": "false", // "description": "If set to true, the query will return the success code and include any partial information when it is unable to determine a matching address or unable to determine the election for electionId=0 queries.", diff --git a/cloudfunctions/v1/cloudfunctions-api.json b/cloudfunctions/v1/cloudfunctions-api.json index ae809131bdc..2e184fa0ebe 100644 --- a/cloudfunctions/v1/cloudfunctions-api.json +++ b/cloudfunctions/v1/cloudfunctions-api.json @@ -546,7 +546,7 @@ } } }, - "revision": "20230515", + "revision": "20230608", "rootUrl": "https://cloudfunctions.googleapis.com/", "schemas": { "AuditConfig": { @@ -702,7 +702,7 @@ "type": "string" }, "entryPoint": { - "description": "The name of the function (as defined in source code) that will be executed. Defaults to the resource name suffix, if not specified. For backward compatibility, if function with given name is not found, then the system will try to use function named \"function\". For Node.js this is name of a function exported by the module specified in `source_location`.", + "description": "The name of the function (as defined in source code) that will be executed. Defaults to the resource name suffix (ID of the function), if not specified.", "type": "string" }, "environmentVariables": { @@ -997,7 +997,7 @@ "type": "string" }, "cancelRequested": { - "description": "Identifies whether the user has requested cancellation of the operation. Operations that have successfully been cancelled have Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.", + "description": "Identifies whether the user has requested cancellation of the operation. Operations that have successfully been cancelled have google.longrunning.Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.", "type": "boolean" }, "createTime": { @@ -1168,7 +1168,7 @@ "type": "string" }, "cancelRequested": { - "description": "Identifies whether the user has requested cancellation of the operation. Operations that have successfully been cancelled have Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.", + "description": "Identifies whether the user has requested cancellation of the operation. Operations that have successfully been cancelled have google.longrunning.Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.", "type": "boolean" }, "createTime": { @@ -1339,7 +1339,7 @@ "type": "string" }, "cancelRequested": { - "description": "Identifies whether the user has requested cancellation of the operation. Operations that have successfully been cancelled have Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.", + "description": "Identifies whether the user has requested cancellation of the operation. Operations that have successfully been cancelled have google.longrunning.Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.", "type": "boolean" }, "createTime": { diff --git a/cloudfunctions/v1/cloudfunctions-gen.go b/cloudfunctions/v1/cloudfunctions-gen.go index b766be00d27..a5b2c153c9d 100644 --- a/cloudfunctions/v1/cloudfunctions-gen.go +++ b/cloudfunctions/v1/cloudfunctions-gen.go @@ -492,11 +492,8 @@ type CloudFunction struct { DockerRepository string `json:"dockerRepository,omitempty"` // EntryPoint: The name of the function (as defined in source code) that - // will be executed. Defaults to the resource name suffix, if not - // specified. For backward compatibility, if function with given name is - // not found, then the system will try to use function named "function". - // For Node.js this is name of a function exported by the module - // specified in `source_location`. + // will be executed. Defaults to the resource name suffix (ID of the + // function), if not specified. EntryPoint string `json:"entryPoint,omitempty"` // EnvironmentVariables: Environment variables that shall be available @@ -1034,8 +1031,8 @@ type GoogleCloudFunctionsV2OperationMetadata struct { // CancelRequested: Identifies whether the user has requested // cancellation of the operation. Operations that have successfully been - // cancelled have Operation.error value with a google.rpc.Status.code of - // 1, corresponding to `Code.CANCELLED`. + // cancelled have google.longrunning.Operation.error value with a + // google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`. CancelRequested bool `json:"cancelRequested,omitempty"` // CreateTime: The time the operation was created. @@ -1223,8 +1220,8 @@ type GoogleCloudFunctionsV2alphaOperationMetadata struct { // CancelRequested: Identifies whether the user has requested // cancellation of the operation. Operations that have successfully been - // cancelled have Operation.error value with a google.rpc.Status.code of - // 1, corresponding to `Code.CANCELLED`. + // cancelled have google.longrunning.Operation.error value with a + // google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`. CancelRequested bool `json:"cancelRequested,omitempty"` // CreateTime: The time the operation was created. @@ -1413,8 +1410,8 @@ type GoogleCloudFunctionsV2betaOperationMetadata struct { // CancelRequested: Identifies whether the user has requested // cancellation of the operation. Operations that have successfully been - // cancelled have Operation.error value with a google.rpc.Status.code of - // 1, corresponding to `Code.CANCELLED`. + // cancelled have google.longrunning.Operation.error value with a + // google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`. CancelRequested bool `json:"cancelRequested,omitempty"` // CreateTime: The time the operation was created. diff --git a/cloudfunctions/v2/cloudfunctions-api.json b/cloudfunctions/v2/cloudfunctions-api.json index 497a0f363b0..b2ab8ad74f9 100644 --- a/cloudfunctions/v2/cloudfunctions-api.json +++ b/cloudfunctions/v2/cloudfunctions-api.json @@ -571,7 +571,7 @@ } } }, - "revision": "20230601", + "revision": "20230608", "rootUrl": "https://cloudfunctions.googleapis.com/", "schemas": { "AuditConfig": { @@ -965,7 +965,7 @@ "type": "string" }, "cancelRequested": { - "description": "Identifies whether the user has requested cancellation of the operation. Operations that have successfully been cancelled have Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.", + "description": "Identifies whether the user has requested cancellation of the operation. Operations that have successfully been cancelled have google.longrunning.Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.", "type": "boolean" }, "createTime": { @@ -1136,7 +1136,7 @@ "type": "string" }, "cancelRequested": { - "description": "Identifies whether the user has requested cancellation of the operation. Operations that have successfully been cancelled have Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.", + "description": "Identifies whether the user has requested cancellation of the operation. Operations that have successfully been cancelled have google.longrunning.Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.", "type": "boolean" }, "createTime": { @@ -1307,7 +1307,7 @@ "type": "string" }, "cancelRequested": { - "description": "Identifies whether the user has requested cancellation of the operation. Operations that have successfully been cancelled have Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.", + "description": "Identifies whether the user has requested cancellation of the operation. Operations that have successfully been cancelled have google.longrunning.Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.", "type": "boolean" }, "createTime": { diff --git a/cloudfunctions/v2/cloudfunctions-gen.go b/cloudfunctions/v2/cloudfunctions-gen.go index 4afc87298fb..f31baaedbd7 100644 --- a/cloudfunctions/v2/cloudfunctions-gen.go +++ b/cloudfunctions/v2/cloudfunctions-gen.go @@ -901,8 +901,8 @@ type GoogleCloudFunctionsV2OperationMetadata struct { // CancelRequested: Identifies whether the user has requested // cancellation of the operation. Operations that have successfully been - // cancelled have Operation.error value with a google.rpc.Status.code of - // 1, corresponding to `Code.CANCELLED`. + // cancelled have google.longrunning.Operation.error value with a + // google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`. CancelRequested bool `json:"cancelRequested,omitempty"` // CreateTime: The time the operation was created. @@ -1090,8 +1090,8 @@ type GoogleCloudFunctionsV2alphaOperationMetadata struct { // CancelRequested: Identifies whether the user has requested // cancellation of the operation. Operations that have successfully been - // cancelled have Operation.error value with a google.rpc.Status.code of - // 1, corresponding to `Code.CANCELLED`. + // cancelled have google.longrunning.Operation.error value with a + // google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`. CancelRequested bool `json:"cancelRequested,omitempty"` // CreateTime: The time the operation was created. @@ -1280,8 +1280,8 @@ type GoogleCloudFunctionsV2betaOperationMetadata struct { // CancelRequested: Identifies whether the user has requested // cancellation of the operation. Operations that have successfully been - // cancelled have Operation.error value with a google.rpc.Status.code of - // 1, corresponding to `Code.CANCELLED`. + // cancelled have google.longrunning.Operation.error value with a + // google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`. CancelRequested bool `json:"cancelRequested,omitempty"` // CreateTime: The time the operation was created. diff --git a/cloudfunctions/v2alpha/cloudfunctions-api.json b/cloudfunctions/v2alpha/cloudfunctions-api.json index 84d7e3efc5b..c2501a21ca9 100644 --- a/cloudfunctions/v2alpha/cloudfunctions-api.json +++ b/cloudfunctions/v2alpha/cloudfunctions-api.json @@ -571,7 +571,7 @@ } } }, - "revision": "20230601", + "revision": "20230608", "rootUrl": "https://cloudfunctions.googleapis.com/", "schemas": { "AuditConfig": { @@ -965,7 +965,7 @@ "type": "string" }, "cancelRequested": { - "description": "Identifies whether the user has requested cancellation of the operation. Operations that have successfully been cancelled have Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.", + "description": "Identifies whether the user has requested cancellation of the operation. Operations that have successfully been cancelled have google.longrunning.Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.", "type": "boolean" }, "createTime": { @@ -1136,7 +1136,7 @@ "type": "string" }, "cancelRequested": { - "description": "Identifies whether the user has requested cancellation of the operation. Operations that have successfully been cancelled have Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.", + "description": "Identifies whether the user has requested cancellation of the operation. Operations that have successfully been cancelled have google.longrunning.Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.", "type": "boolean" }, "createTime": { @@ -1307,7 +1307,7 @@ "type": "string" }, "cancelRequested": { - "description": "Identifies whether the user has requested cancellation of the operation. Operations that have successfully been cancelled have Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.", + "description": "Identifies whether the user has requested cancellation of the operation. Operations that have successfully been cancelled have google.longrunning.Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.", "type": "boolean" }, "createTime": { diff --git a/cloudfunctions/v2alpha/cloudfunctions-gen.go b/cloudfunctions/v2alpha/cloudfunctions-gen.go index 07623f188b1..fab42866486 100644 --- a/cloudfunctions/v2alpha/cloudfunctions-gen.go +++ b/cloudfunctions/v2alpha/cloudfunctions-gen.go @@ -901,8 +901,8 @@ type GoogleCloudFunctionsV2OperationMetadata struct { // CancelRequested: Identifies whether the user has requested // cancellation of the operation. Operations that have successfully been - // cancelled have Operation.error value with a google.rpc.Status.code of - // 1, corresponding to `Code.CANCELLED`. + // cancelled have google.longrunning.Operation.error value with a + // google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`. CancelRequested bool `json:"cancelRequested,omitempty"` // CreateTime: The time the operation was created. @@ -1090,8 +1090,8 @@ type GoogleCloudFunctionsV2alphaOperationMetadata struct { // CancelRequested: Identifies whether the user has requested // cancellation of the operation. Operations that have successfully been - // cancelled have Operation.error value with a google.rpc.Status.code of - // 1, corresponding to `Code.CANCELLED`. + // cancelled have google.longrunning.Operation.error value with a + // google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`. CancelRequested bool `json:"cancelRequested,omitempty"` // CreateTime: The time the operation was created. @@ -1280,8 +1280,8 @@ type GoogleCloudFunctionsV2betaOperationMetadata struct { // CancelRequested: Identifies whether the user has requested // cancellation of the operation. Operations that have successfully been - // cancelled have Operation.error value with a google.rpc.Status.code of - // 1, corresponding to `Code.CANCELLED`. + // cancelled have google.longrunning.Operation.error value with a + // google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`. CancelRequested bool `json:"cancelRequested,omitempty"` // CreateTime: The time the operation was created. diff --git a/cloudfunctions/v2beta/cloudfunctions-api.json b/cloudfunctions/v2beta/cloudfunctions-api.json index a966d4d8d56..f1253c858d0 100644 --- a/cloudfunctions/v2beta/cloudfunctions-api.json +++ b/cloudfunctions/v2beta/cloudfunctions-api.json @@ -571,7 +571,7 @@ } } }, - "revision": "20230601", + "revision": "20230608", "rootUrl": "https://cloudfunctions.googleapis.com/", "schemas": { "AuditConfig": { @@ -965,7 +965,7 @@ "type": "string" }, "cancelRequested": { - "description": "Identifies whether the user has requested cancellation of the operation. Operations that have successfully been cancelled have Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.", + "description": "Identifies whether the user has requested cancellation of the operation. Operations that have successfully been cancelled have google.longrunning.Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.", "type": "boolean" }, "createTime": { @@ -1136,7 +1136,7 @@ "type": "string" }, "cancelRequested": { - "description": "Identifies whether the user has requested cancellation of the operation. Operations that have successfully been cancelled have Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.", + "description": "Identifies whether the user has requested cancellation of the operation. Operations that have successfully been cancelled have google.longrunning.Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.", "type": "boolean" }, "createTime": { @@ -1307,7 +1307,7 @@ "type": "string" }, "cancelRequested": { - "description": "Identifies whether the user has requested cancellation of the operation. Operations that have successfully been cancelled have Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.", + "description": "Identifies whether the user has requested cancellation of the operation. Operations that have successfully been cancelled have google.longrunning.Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.", "type": "boolean" }, "createTime": { diff --git a/cloudfunctions/v2beta/cloudfunctions-gen.go b/cloudfunctions/v2beta/cloudfunctions-gen.go index cdf536fcc3d..7c1c37fa4aa 100644 --- a/cloudfunctions/v2beta/cloudfunctions-gen.go +++ b/cloudfunctions/v2beta/cloudfunctions-gen.go @@ -901,8 +901,8 @@ type GoogleCloudFunctionsV2OperationMetadata struct { // CancelRequested: Identifies whether the user has requested // cancellation of the operation. Operations that have successfully been - // cancelled have Operation.error value with a google.rpc.Status.code of - // 1, corresponding to `Code.CANCELLED`. + // cancelled have google.longrunning.Operation.error value with a + // google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`. CancelRequested bool `json:"cancelRequested,omitempty"` // CreateTime: The time the operation was created. @@ -1090,8 +1090,8 @@ type GoogleCloudFunctionsV2alphaOperationMetadata struct { // CancelRequested: Identifies whether the user has requested // cancellation of the operation. Operations that have successfully been - // cancelled have Operation.error value with a google.rpc.Status.code of - // 1, corresponding to `Code.CANCELLED`. + // cancelled have google.longrunning.Operation.error value with a + // google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`. CancelRequested bool `json:"cancelRequested,omitempty"` // CreateTime: The time the operation was created. @@ -1280,8 +1280,8 @@ type GoogleCloudFunctionsV2betaOperationMetadata struct { // CancelRequested: Identifies whether the user has requested // cancellation of the operation. Operations that have successfully been - // cancelled have Operation.error value with a google.rpc.Status.code of - // 1, corresponding to `Code.CANCELLED`. + // cancelled have google.longrunning.Operation.error value with a + // google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`. CancelRequested bool `json:"cancelRequested,omitempty"` // CreateTime: The time the operation was created. diff --git a/cloudsupport/v2beta/cloudsupport-api.json b/cloudsupport/v2beta/cloudsupport-api.json index 7c24fb3df00..83aa95955af 100644 --- a/cloudsupport/v2beta/cloudsupport-api.json +++ b/cloudsupport/v2beta/cloudsupport-api.json @@ -108,7 +108,7 @@ "caseClassifications": { "methods": { "search": { - "description": "Retrieve valid classifications to be used when creating a support case. The classications are hierarchical, with each classification containing all levels of the hierarchy, separated by \" \u003e \". For example \"Technical Issue \u003e Compute \u003e Compute Engine\".", + "description": "Retrieve valid classifications to be used when creating a support case. The classications are hierarchical, with each classification containing all levels of the hierarchy, separated by `\" \u003e \"`. For example `\"Technical Issue \u003e Compute \u003e Compute Engine\"`. Classification IDs returned by `caseClassifications.search` are guaranteed to be valid for at least 6 months. If a given classification is deactiveated, it will immediately stop being returned. After 6 months, `case.create` requests using the classification ID will fail.", "flatPath": "v2beta/caseClassifications:search", "httpMethod": "GET", "id": "cloudsupport.caseClassifications.search", @@ -543,7 +543,7 @@ } } }, - "revision": "20230607", + "revision": "20230614", "rootUrl": "https://cloudsupport.googleapis.com/", "schemas": { "Actor": { @@ -770,7 +770,7 @@ "type": "string" }, "id": { - "description": "The unique ID for a classification. Must be specified for case creation. To retrieve valid classification IDs for case creation, use `caseClassifications.search`.", + "description": "The unique ID for a classification. Must be specified for case creation. To retrieve valid classification IDs for case creation, use `caseClassifications.search`. Classification IDs returned by `caseClassifications.search` are guaranteed to be valid for at least 6 months. If a given classification is deactiveated, it will immediately stop being returned. After 6 months, `case.create` requests using the classification ID will fail.", "type": "string" } }, diff --git a/cloudsupport/v2beta/cloudsupport-gen.go b/cloudsupport/v2beta/cloudsupport-gen.go index 0ef1290c6d7..478e9fd9581 100644 --- a/cloudsupport/v2beta/cloudsupport-gen.go +++ b/cloudsupport/v2beta/cloudsupport-gen.go @@ -475,7 +475,11 @@ type CaseClassification struct { // Id: The unique ID for a classification. Must be specified for case // creation. To retrieve valid classification IDs for case creation, use - // `caseClassifications.search`. + // `caseClassifications.search`. Classification IDs returned by + // `caseClassifications.search` are guaranteed to be valid for at least + // 6 months. If a given classification is deactiveated, it will + // immediately stop being returned. After 6 months, `case.create` + // requests using the classification ID will fail. Id string `json:"id,omitempty"` // ForceSendFields is a list of field names (e.g. "DisplayName") to @@ -1429,8 +1433,13 @@ type CaseClassificationsSearchCall struct { // Search: Retrieve valid classifications to be used when creating a // support case. The classications are hierarchical, with each -// classification containing all levels of the hierarchy, separated by " -// > ". For example "Technical Issue > Compute > Compute Engine". +// classification containing all levels of the hierarchy, separated by +// " > ". For example "Technical Issue > Compute > Compute Engine". +// Classification IDs returned by `caseClassifications.search` are +// guaranteed to be valid for at least 6 months. If a given +// classification is deactiveated, it will immediately stop being +// returned. After 6 months, `case.create` requests using the +// classification ID will fail. func (r *CaseClassificationsService) Search() *CaseClassificationsSearchCall { c := &CaseClassificationsSearchCall{s: r.s, urlParams_: make(gensupport.URLParams)} return c @@ -1557,7 +1566,7 @@ func (c *CaseClassificationsSearchCall) Do(opts ...googleapi.CallOption) (*Searc } return ret, nil // { - // "description": "Retrieve valid classifications to be used when creating a support case. The classications are hierarchical, with each classification containing all levels of the hierarchy, separated by \" \u003e \". For example \"Technical Issue \u003e Compute \u003e Compute Engine\".", + // "description": "Retrieve valid classifications to be used when creating a support case. The classications are hierarchical, with each classification containing all levels of the hierarchy, separated by `\" \u003e \"`. For example `\"Technical Issue \u003e Compute \u003e Compute Engine\"`. Classification IDs returned by `caseClassifications.search` are guaranteed to be valid for at least 6 months. If a given classification is deactiveated, it will immediately stop being returned. After 6 months, `case.create` requests using the classification ID will fail.", // "flatPath": "v2beta/caseClassifications:search", // "httpMethod": "GET", // "id": "cloudsupport.caseClassifications.search", diff --git a/compute/v1/compute-api.json b/compute/v1/compute-api.json index df957d008ee..936fba5c129 100644 --- a/compute/v1/compute-api.json +++ b/compute/v1/compute-api.json @@ -33731,7 +33731,7 @@ } } }, - "revision": "20230530", + "revision": "20230606", "rootUrl": "https://compute.googleapis.com/", "schemas": { "AcceleratorConfig": { @@ -38404,7 +38404,7 @@ "id": "CustomerEncryptionKey", "properties": { "kmsKeyName": { - "description": "The name of the encryption key that is stored in Google Cloud KMS. For example: \"kmsKeyName\": \"projects/kms_project_id/locations/region/keyRings/ key_region/cryptoKeys/key ", + "description": "The name of the encryption key that is stored in Google Cloud KMS. For example: \"kmsKeyName\": \"projects/kms_project_id/locations/region/keyRings/ key_region/cryptoKeys/key The fully-qualifed key name may be returned for resource GET requests. For example: \"kmsKeyName\": \"projects/kms_project_id/locations/region/keyRings/ key_region/cryptoKeys/key /cryptoKeyVersions/1 ", "type": "string" }, "kmsKeyServiceAccount": { @@ -43994,6 +43994,10 @@ "format": "uint64", "type": "string" }, + "instanceEncryptionKey": { + "$ref": "CustomerEncryptionKey", + "description": "Encrypts suspended data for an instance with a customer-managed encryption key. If you are creating a new instance, this field will encrypt the local SSD and in-memory contents of the instance during the suspend operation. If you do not provide an encryption key when creating the instance, then the local SSD and in-memory contents will be encrypted using an automatically generated key during the suspend operation." + }, "keyRevocationActionType": { "description": "KeyRevocationActionType of the instance. Supported options are \"STOP\" and \"NONE\". The default value is \"NONE\" if it is not specified.", "enum": [ @@ -60598,6 +60602,18 @@ "$ref": "RouterBgpPeerBfd", "description": "BFD configuration for the BGP peering." }, + "customLearnedIpRanges": { + "description": "A list of user-defined custom learned route IP address ranges for a BGP session.", + "items": { + "$ref": "RouterBgpPeerCustomLearnedIpRange" + }, + "type": "array" + }, + "customLearnedRoutePriority": { + "description": "The user-defined custom learned route priority for a BGP session. This value is applied to all custom learned route ranges for the session. You can choose a value from `0` to `65335`. If you don't provide a value, Google Cloud assigns a priority of `100` to the ranges.", + "format": "int32", + "type": "integer" + }, "enable": { "description": "The status of the BGP peer connection. If set to FALSE, any active session with the peer is terminated and all associated routing information is removed. If set to TRUE, the peer connection can be established with routing information. The default is TRUE.", "enum": [ @@ -60712,6 +60728,16 @@ }, "type": "object" }, + "RouterBgpPeerCustomLearnedIpRange": { + "id": "RouterBgpPeerCustomLearnedIpRange", + "properties": { + "range": { + "description": "The custom learned route IP address range. Must be a valid CIDR-formatted prefix. If an IP address is provided without a subnet mask, it is interpreted as, for IPv4, a `/32` singular IP address range, and, for IPv6, `/128`.", + "type": "string" + } + }, + "type": "object" + }, "RouterInterface": { "id": "RouterInterface", "properties": { diff --git a/compute/v1/compute-gen.go b/compute/v1/compute-gen.go index f21126ef2f1..6fd50ab707a 100644 --- a/compute/v1/compute-gen.go +++ b/compute/v1/compute-gen.go @@ -8748,7 +8748,10 @@ type CustomerEncryptionKey struct { // KmsKeyName: The name of the encryption key that is stored in Google // Cloud KMS. For example: "kmsKeyName": // "projects/kms_project_id/locations/region/keyRings/ - // key_region/cryptoKeys/key + // key_region/cryptoKeys/key The fully-qualifed key name may be returned + // for resource GET requests. For example: "kmsKeyName": + // "projects/kms_project_id/locations/region/keyRings/ + // key_region/cryptoKeys/key /cryptoKeyVersions/1 KmsKeyName string `json:"kmsKeyName,omitempty"` // KmsKeyServiceAccount: The service account being used for the @@ -17910,6 +17913,15 @@ type Instance struct { // identifier is defined by the server. Id uint64 `json:"id,omitempty,string"` + // InstanceEncryptionKey: Encrypts suspended data for an instance with a + // customer-managed encryption key. If you are creating a new instance, + // this field will encrypt the local SSD and in-memory contents of the + // instance during the suspend operation. If you do not provide an + // encryption key when creating the instance, then the local SSD and + // in-memory contents will be encrypted using an automatically generated + // key during the suspend operation. + InstanceEncryptionKey *CustomerEncryptionKey `json:"instanceEncryptionKey,omitempty"` + // KeyRevocationActionType: KeyRevocationActionType of the instance. // Supported options are "STOP" and "NONE". The default value is "NONE" // if it is not specified. @@ -43703,6 +43715,17 @@ type RouterBgpPeer struct { // Bfd: BFD configuration for the BGP peering. Bfd *RouterBgpPeerBfd `json:"bfd,omitempty"` + // CustomLearnedIpRanges: A list of user-defined custom learned route IP + // address ranges for a BGP session. + CustomLearnedIpRanges []*RouterBgpPeerCustomLearnedIpRange `json:"customLearnedIpRanges,omitempty"` + + // CustomLearnedRoutePriority: The user-defined custom learned route + // priority for a BGP session. This value is applied to all custom + // learned route ranges for the session. You can choose a value from `0` + // to `65335`. If you don't provide a value, Google Cloud assigns a + // priority of `100` to the ranges. + CustomLearnedRoutePriority int64 `json:"customLearnedRoutePriority,omitempty"` + // Enable: The status of the BGP peer connection. If set to FALSE, any // active session with the peer is terminated and all associated routing // information is removed. If set to TRUE, the peer connection can be @@ -43863,6 +43886,36 @@ func (s *RouterBgpPeerBfd) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +type RouterBgpPeerCustomLearnedIpRange struct { + // Range: The custom learned route IP address range. Must be a valid + // CIDR-formatted prefix. If an IP address is provided without a subnet + // mask, it is interpreted as, for IPv4, a `/32` singular IP address + // range, and, for IPv6, `/128`. + Range string `json:"range,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Range") 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. "Range") 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 *RouterBgpPeerCustomLearnedIpRange) MarshalJSON() ([]byte, error) { + type NoMethod RouterBgpPeerCustomLearnedIpRange + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + type RouterInterface struct { // IpRange: IP address and range of the interface. The IP range must be // in the RFC3927 link-local IP address space. The value must be a diff --git a/datamigration/v1/datamigration-api.json b/datamigration/v1/datamigration-api.json index 283e441b429..2051c67dd93 100644 --- a/datamigration/v1/datamigration-api.json +++ b/datamigration/v1/datamigration-api.json @@ -1918,7 +1918,7 @@ } } }, - "revision": "20230531", + "revision": "20230610", "rootUrl": "https://datamigration.googleapis.com/", "schemas": { "AlloyDbConnectionProfile": { @@ -2261,7 +2261,8 @@ "MYSQL_8_0", "POSTGRES_12", "POSTGRES_13", - "POSTGRES_14" + "POSTGRES_14", + "POSTGRES_15" ], "enumDescriptions": [ "Unspecified version.", @@ -2273,7 +2274,8 @@ "MySQL 8.0.", "PostgreSQL 12.", "PostgreSQL 13.", - "PostgreSQL 14." + "PostgreSQL 14.", + "PostgreSQL 15." ], "type": "string" }, diff --git a/datamigration/v1/datamigration-gen.go b/datamigration/v1/datamigration-gen.go index 2177117f0ad..a0b4d26ebb8 100644 --- a/datamigration/v1/datamigration-gen.go +++ b/datamigration/v1/datamigration-gen.go @@ -764,6 +764,7 @@ type CloudSqlSettings struct { // "POSTGRES_12" - PostgreSQL 12. // "POSTGRES_13" - PostgreSQL 13. // "POSTGRES_14" - PostgreSQL 14. + // "POSTGRES_15" - PostgreSQL 15. DatabaseVersion string `json:"databaseVersion,omitempty"` // IpConfig: The settings for IP Management. This allows to enable or diff --git a/displayvideo/v1/displayvideo-api.json b/displayvideo/v1/displayvideo-api.json index ca5f107445a..0dfbb356132 100644 --- a/displayvideo/v1/displayvideo-api.json +++ b/displayvideo/v1/displayvideo-api.json @@ -8146,7 +8146,7 @@ } } }, - "revision": "20230608", + "revision": "20230615", "rootUrl": "https://displayvideo.googleapis.com/", "schemas": { "ActivateManualTriggerRequest": { @@ -9120,11 +9120,11 @@ "properties": { "excludedFirstAndThirdPartyAudienceGroup": { "$ref": "FirstAndThirdPartyAudienceGroup", - "description": "The first and third party audience ids and recencies of the excluded first and third party audience group. Used for negative targeting. The COMPLEMENT of the UNION of this group and other excluded audience groups is used as an INTERSECTION to any positive audience targeting. All items are logically ‘OR’ of each other. **Warning:** `ACTIVITY_BASED` and `FREQUENCY_CAP` audience types will be deprecated on **May 20, 2023**. After this date, these audiences will not be able to be added to resource targeting. Read our [feature deprecation announcement](/display-video/api/deprecations#features.first_and_third_party_audience_types) for more information." + "description": "The first and third party audience ids and recencies of the excluded first and third party audience group. Used for negative targeting. The COMPLEMENT of the UNION of this group and other excluded audience groups is used as an INTERSECTION to any positive audience targeting. All items are logically ‘OR’ of each other." }, "excludedGoogleAudienceGroup": { "$ref": "GoogleAudienceGroup", - "description": "The Google audience ids of the excluded Google audience group. Used for negative targeting. The COMPLEMENT of the UNION of this group and other excluded audience groups is used as an INTERSECTION to any positive audience targeting. Only contains Affinity, In-market and Installed-apps type Google audiences. All items are logically ‘OR’ of each other. **Warning:** `GOOGLE_AUDIENCE_TYPE_INSTALLED_APPS` and `GOOGLE_AUDIENCE_TYPE_NEW_MOBILE_DEVICES` audience types will be deprecated on **May 20, 2023**. After this date, these audiences will not be able to be added to resource targeting. Read our [feature deprecation announcement](/display-video/api/deprecations#features.google_audience_types) for more information." + "description": "The Google audience ids of the excluded Google audience group. Used for negative targeting. The COMPLEMENT of the UNION of this group and other excluded audience groups is used as an INTERSECTION to any positive audience targeting. Only contains Affinity, In-market and Installed-apps type Google audiences. All items are logically ‘OR’ of each other." }, "includedCombinedAudienceGroup": { "$ref": "CombinedAudienceGroup", @@ -9135,7 +9135,7 @@ "description": "The custom list ids of the included custom list group. Contains custom list ids only." }, "includedFirstAndThirdPartyAudienceGroups": { - "description": "The first and third party audience ids and recencies of included first and third party audience groups. Each first and third party audience group contains first and third party audience ids only. The relation between each first and third party audience group is INTERSECTION, and the result is UNION'ed with other audience groups. Repeated groups with same settings will be ignored. **Warning:** `ACTIVITY_BASED` and `FREQUENCY_CAP` audience types will be deprecated on **May 20, 2023**. After this date, these audiences will not be able to be added to resource targeting. Read our [feature deprecation announcement](/display-video/api/deprecations#features.first_and_third_party_audience_types) for more information.", + "description": "The first and third party audience ids and recencies of included first and third party audience groups. Each first and third party audience group contains first and third party audience ids only. The relation between each first and third party audience group is INTERSECTION, and the result is UNION'ed with other audience groups. Repeated groups with same settings will be ignored.", "items": { "$ref": "FirstAndThirdPartyAudienceGroup" }, @@ -9143,7 +9143,7 @@ }, "includedGoogleAudienceGroup": { "$ref": "GoogleAudienceGroup", - "description": "The Google audience ids of the included Google audience group. Contains Google audience ids only. **Warning:** `GOOGLE_AUDIENCE_TYPE_INSTALLED_APPS` and `GOOGLE_AUDIENCE_TYPE_NEW_MOBILE_DEVICES` audience types will be deprecated on **May 20, 2023**. After this date, these audiences will not be able to be added to resource targeting. Read our [feature deprecation announcement](/display-video/api/deprecations#features.google_audience_types) for more information." + "description": "The Google audience ids of the included Google audience group. Contains Google audience ids only." } }, "type": "object" @@ -13119,8 +13119,8 @@ "Audience was generated through matching customers to known contact information.", "Audience was generated through matching customers to known Mobile device IDs.", "Audience was generated through matching customers to known User IDs.", - "Audience was created based on campaign activity. **Warning:** This audience type will be deprecated on **May 20, 2023**. After this date, these audiences will not be able to be added to resource targeting. Read our [feature deprecation announcement](/display-video/api/deprecations#features.first_and_third_party_audience_types) for more information.", - "Audience was created based on excluding the number of impressions they were served. **Warning:** This audience type will be deprecated on **May 20, 2023**. After this date, these audiences will not be able to be added to resource targeting. Read our [feature deprecation announcement](/display-video/api/deprecations#features.first_and_third_party_audience_types) for more information.", + "Audience was created based on campaign activity.", + "Audience was created based on excluding the number of impressions they were served.", "Audience was created based on custom variables attached to pixel.", "Audience was created based on past interactions with videos, YouTube ads, or YouTube channel.", "Subtype of third party audience type." @@ -13719,8 +13719,8 @@ "Default value when type is not specified or is unknown.", "Affinity type Google audience.", "In-Market type Google audience.", - "Installed-Apps type Google audience. **Warning:** This audience type will be deprecated on **May 20, 2023**. After this date, these audiences will not be able to be added to resource targeting. Read our [feature deprecation announcement](/display-video/api/deprecations#features.google_audience_types) for more information.", - "New-Mobile-Devices type Google audience. **Warning:** This audience type will be deprecated on **May 20, 2023**. After this date, these audiences will not be able to be added to resource targeting. Read our [feature deprecation announcement](/display-video/api/deprecations#features.google_audience_types) for more information.", + "Installed-Apps type Google audience.", + "New-Mobile-Devices type Google audience.", "Life-Event type Google audience.", "Extended-Demographic type Google audience." ], diff --git a/displayvideo/v1/displayvideo-gen.go b/displayvideo/v1/displayvideo-gen.go index 4d827902142..26b20abbc36 100644 --- a/displayvideo/v1/displayvideo-gen.go +++ b/displayvideo/v1/displayvideo-gen.go @@ -2120,12 +2120,7 @@ type AudienceGroupAssignedTargetingOptionDetails struct { // audience group. Used for negative targeting. The COMPLEMENT of the // UNION of this group and other excluded audience groups is used as an // INTERSECTION to any positive audience targeting. All items are - // logically ‘OR’ of each other. **Warning:** `ACTIVITY_BASED` and - // `FREQUENCY_CAP` audience types will be deprecated on **May 20, - // 2023**. After this date, these audiences will not be able to be added - // to resource targeting. Read our feature deprecation announcement - // (/display-video/api/deprecations#features.first_and_third_party_audien - // ce_types) for more information. + // logically ‘OR’ of each other. ExcludedFirstAndThirdPartyAudienceGroup *FirstAndThirdPartyAudienceGroup `json:"excludedFirstAndThirdPartyAudienceGroup,omitempty"` // ExcludedGoogleAudienceGroup: The Google audience ids of the excluded @@ -2133,14 +2128,7 @@ type AudienceGroupAssignedTargetingOptionDetails struct { // the UNION of this group and other excluded audience groups is used as // an INTERSECTION to any positive audience targeting. Only contains // Affinity, In-market and Installed-apps type Google audiences. All - // items are logically ‘OR’ of each other. **Warning:** - // `GOOGLE_AUDIENCE_TYPE_INSTALLED_APPS` and - // `GOOGLE_AUDIENCE_TYPE_NEW_MOBILE_DEVICES` audience types will be - // deprecated on **May 20, 2023**. After this date, these audiences will - // not be able to be added to resource targeting. Read our feature - // deprecation announcement - // (/display-video/api/deprecations#features.google_audience_types) for - // more information. + // items are logically ‘OR’ of each other. ExcludedGoogleAudienceGroup *GoogleAudienceGroup `json:"excludedGoogleAudienceGroup,omitempty"` // IncludedCombinedAudienceGroup: The combined audience ids of the @@ -2158,23 +2146,11 @@ type AudienceGroupAssignedTargetingOptionDetails struct { // third party audience ids only. The relation between each first and // third party audience group is INTERSECTION, and the result is // UNION'ed with other audience groups. Repeated groups with same - // settings will be ignored. **Warning:** `ACTIVITY_BASED` and - // `FREQUENCY_CAP` audience types will be deprecated on **May 20, - // 2023**. After this date, these audiences will not be able to be added - // to resource targeting. Read our feature deprecation announcement - // (/display-video/api/deprecations#features.first_and_third_party_audien - // ce_types) for more information. + // settings will be ignored. IncludedFirstAndThirdPartyAudienceGroups []*FirstAndThirdPartyAudienceGroup `json:"includedFirstAndThirdPartyAudienceGroups,omitempty"` // IncludedGoogleAudienceGroup: The Google audience ids of the included // Google audience group. Contains Google audience ids only. - // **Warning:** `GOOGLE_AUDIENCE_TYPE_INSTALLED_APPS` and - // `GOOGLE_AUDIENCE_TYPE_NEW_MOBILE_DEVICES` audience types will be - // deprecated on **May 20, 2023**. After this date, these audiences will - // not be able to be added to resource targeting. Read our feature - // deprecation announcement - // (/display-video/api/deprecations#features.google_audience_types) for - // more information. IncludedGoogleAudienceGroup *GoogleAudienceGroup `json:"includedGoogleAudienceGroup,omitempty"` // ForceSendFields is a list of field names (e.g. @@ -7945,18 +7921,8 @@ type FirstAndThirdPartyAudience struct { // "CUSTOMER_MATCH_USER_ID" - Audience was generated through matching // customers to known User IDs. // "ACTIVITY_BASED" - Audience was created based on campaign activity. - // **Warning:** This audience type will be deprecated on **May 20, - // 2023**. After this date, these audiences will not be able to be added - // to resource targeting. Read our [feature deprecation - // announcement](/display-video/api/deprecations#features.first_and_third - // _party_audience_types) for more information. // "FREQUENCY_CAP" - Audience was created based on excluding the - // number of impressions they were served. **Warning:** This audience - // type will be deprecated on **May 20, 2023**. After this date, these - // audiences will not be able to be added to resource targeting. Read - // our [feature deprecation - // announcement](/display-video/api/deprecations#features.first_and_third - // _party_audience_types) for more information. + // number of impressions they were served. // "TAG_BASED" - Audience was created based on custom variables // attached to pixel. // "YOUTUBE_USERS" - Audience was created based on past interactions @@ -8726,17 +8692,9 @@ type GoogleAudience struct { // "GOOGLE_AUDIENCE_TYPE_AFFINITY" - Affinity type Google audience. // "GOOGLE_AUDIENCE_TYPE_IN_MARKET" - In-Market type Google audience. // "GOOGLE_AUDIENCE_TYPE_INSTALLED_APPS" - Installed-Apps type Google - // audience. **Warning:** This audience type will be deprecated on **May - // 20, 2023**. After this date, these audiences will not be able to be - // added to resource targeting. Read our [feature deprecation - // announcement](/display-video/api/deprecations#features.google_audience - // _types) for more information. + // audience. // "GOOGLE_AUDIENCE_TYPE_NEW_MOBILE_DEVICES" - New-Mobile-Devices type - // Google audience. **Warning:** This audience type will be deprecated - // on **May 20, 2023**. After this date, these audiences will not be - // able to be added to resource targeting. Read our [feature deprecation - // announcement](/display-video/api/deprecations#features.google_audience - // _types) for more information. + // Google audience. // "GOOGLE_AUDIENCE_TYPE_LIFE_EVENT" - Life-Event type Google // audience. // "GOOGLE_AUDIENCE_TYPE_EXTENDED_DEMOGRAPHIC" - Extended-Demographic diff --git a/displayvideo/v2/displayvideo-api.json b/displayvideo/v2/displayvideo-api.json index 65387a9f397..ba121919d69 100644 --- a/displayvideo/v2/displayvideo-api.json +++ b/displayvideo/v2/displayvideo-api.json @@ -9172,7 +9172,7 @@ } } }, - "revision": "20230608", + "revision": "20230615", "rootUrl": "https://displayvideo.googleapis.com/", "schemas": { "ActivateManualTriggerRequest": { @@ -10250,11 +10250,11 @@ "properties": { "excludedFirstAndThirdPartyAudienceGroup": { "$ref": "FirstAndThirdPartyAudienceGroup", - "description": "The first and third party audience ids and recencies of the excluded first and third party audience group. Used for negative targeting. The COMPLEMENT of the UNION of this group and other excluded audience groups is used as an INTERSECTION to any positive audience targeting. All items are logically ‘OR’ of each other. **Warning:** `ACTIVITY_BASED` and `FREQUENCY_CAP` audience types will be deprecated on **May 20, 2023**. After this date, these audiences will not be able to be added to resource targeting. Read our [feature deprecation announcement](/display-video/api/deprecations#features.first_and_third_party_audience_types) for more information." + "description": "The first and third party audience ids and recencies of the excluded first and third party audience group. Used for negative targeting. The COMPLEMENT of the UNION of this group and other excluded audience groups is used as an INTERSECTION to any positive audience targeting. All items are logically ‘OR’ of each other." }, "excludedGoogleAudienceGroup": { "$ref": "GoogleAudienceGroup", - "description": "The Google audience ids of the excluded Google audience group. Used for negative targeting. The COMPLEMENT of the UNION of this group and other excluded audience groups is used as an INTERSECTION to any positive audience targeting. Only contains Affinity, In-market and Installed-apps type Google audiences. All items are logically ‘OR’ of each other. **Warning:** `GOOGLE_AUDIENCE_TYPE_INSTALLED_APPS` and `GOOGLE_AUDIENCE_TYPE_NEW_MOBILE_DEVICES` audience types will be deprecated on **May 20, 2023**. After this date, these audiences will not be able to be added to resource targeting. Read our [feature deprecation announcement](/display-video/api/deprecations#features.google_audience_types) for more information." + "description": "The Google audience ids of the excluded Google audience group. Used for negative targeting. The COMPLEMENT of the UNION of this group and other excluded audience groups is used as an INTERSECTION to any positive audience targeting. Only contains Affinity, In-market and Installed-apps type Google audiences. All items are logically ‘OR’ of each other." }, "includedCombinedAudienceGroup": { "$ref": "CombinedAudienceGroup", @@ -10265,7 +10265,7 @@ "description": "The custom list ids of the included custom list group. Contains custom list ids only." }, "includedFirstAndThirdPartyAudienceGroups": { - "description": "The first and third party audience ids and recencies of included first and third party audience groups. Each first and third party audience group contains first and third party audience ids only. The relation between each first and third party audience group is INTERSECTION, and the result is UNION'ed with other audience groups. Repeated groups with same settings will be ignored. **Warning:** `ACTIVITY_BASED` and `FREQUENCY_CAP` audience types will be deprecated on **May 20, 2023**. After this date, these audiences will not be able to be added to resource targeting. Read our [feature deprecation announcement](/display-video/api/deprecations#features.first_and_third_party_audience_types) for more information.", + "description": "The first and third party audience ids and recencies of included first and third party audience groups. Each first and third party audience group contains first and third party audience ids only. The relation between each first and third party audience group is INTERSECTION, and the result is UNION'ed with other audience groups. Repeated groups with same settings will be ignored.", "items": { "$ref": "FirstAndThirdPartyAudienceGroup" }, @@ -10273,7 +10273,7 @@ }, "includedGoogleAudienceGroup": { "$ref": "GoogleAudienceGroup", - "description": "The Google audience ids of the included Google audience group. Contains Google audience ids only. **Warning:** `GOOGLE_AUDIENCE_TYPE_INSTALLED_APPS` and `GOOGLE_AUDIENCE_TYPE_NEW_MOBILE_DEVICES` audience types will be deprecated on **May 20, 2023**. After this date, these audiences will not be able to be added to resource targeting. Read our [feature deprecation announcement](/display-video/api/deprecations#features.google_audience_types) for more information." + "description": "The Google audience ids of the included Google audience group. Contains Google audience ids only." } }, "type": "object" @@ -14639,8 +14639,8 @@ "Audience was generated through matching customers to known contact information.", "Audience was generated through matching customers to known Mobile device IDs.", "Audience was generated through matching customers to known User IDs.", - "Audience was created based on campaign activity. **Warning:** This audience type will be deprecated on **May 20, 2023**. After this date, these audiences will not be able to be added to resource targeting. Read our [feature deprecation announcement](/display-video/api/deprecations#features.first_and_third_party_audience_types) for more information.", - "Audience was created based on excluding the number of impressions they were served. **Warning:** This audience type will be deprecated on **May 20, 2023**. After this date, these audiences will not be able to be added to resource targeting. Read our [feature deprecation announcement](/display-video/api/deprecations#features.first_and_third_party_audience_types) for more information.", + "Audience was created based on campaign activity.", + "Audience was created based on excluding the number of impressions they were served.", "Audience was created based on custom variables attached to pixel.", "Audience was created based on past interactions with videos, YouTube ads, or YouTube channel.", "Subtype of third party audience type." @@ -15260,8 +15260,8 @@ "Default value when type is not specified or is unknown.", "Affinity type Google audience.", "In-Market type Google audience.", - "Installed-Apps type Google audience. **Warning:** This audience type will be deprecated on **May 20, 2023**. After this date, these audiences will not be able to be added to resource targeting. Read our [feature deprecation announcement](/display-video/api/deprecations#features.google_audience_types) for more information.", - "New-Mobile-Devices type Google audience. **Warning:** This audience type will be deprecated on **May 20, 2023**. After this date, these audiences will not be able to be added to resource targeting. Read our [feature deprecation announcement](/display-video/api/deprecations#features.google_audience_types) for more information.", + "Installed-Apps type Google audience.", + "New-Mobile-Devices type Google audience.", "Life-Event type Google audience.", "Extended-Demographic type Google audience." ], diff --git a/displayvideo/v2/displayvideo-gen.go b/displayvideo/v2/displayvideo-gen.go index adbb8efe390..d1434ca532a 100644 --- a/displayvideo/v2/displayvideo-gen.go +++ b/displayvideo/v2/displayvideo-gen.go @@ -2346,12 +2346,7 @@ type AudienceGroupAssignedTargetingOptionDetails struct { // audience group. Used for negative targeting. The COMPLEMENT of the // UNION of this group and other excluded audience groups is used as an // INTERSECTION to any positive audience targeting. All items are - // logically ‘OR’ of each other. **Warning:** `ACTIVITY_BASED` and - // `FREQUENCY_CAP` audience types will be deprecated on **May 20, - // 2023**. After this date, these audiences will not be able to be added - // to resource targeting. Read our feature deprecation announcement - // (/display-video/api/deprecations#features.first_and_third_party_audien - // ce_types) for more information. + // logically ‘OR’ of each other. ExcludedFirstAndThirdPartyAudienceGroup *FirstAndThirdPartyAudienceGroup `json:"excludedFirstAndThirdPartyAudienceGroup,omitempty"` // ExcludedGoogleAudienceGroup: The Google audience ids of the excluded @@ -2359,14 +2354,7 @@ type AudienceGroupAssignedTargetingOptionDetails struct { // the UNION of this group and other excluded audience groups is used as // an INTERSECTION to any positive audience targeting. Only contains // Affinity, In-market and Installed-apps type Google audiences. All - // items are logically ‘OR’ of each other. **Warning:** - // `GOOGLE_AUDIENCE_TYPE_INSTALLED_APPS` and - // `GOOGLE_AUDIENCE_TYPE_NEW_MOBILE_DEVICES` audience types will be - // deprecated on **May 20, 2023**. After this date, these audiences will - // not be able to be added to resource targeting. Read our feature - // deprecation announcement - // (/display-video/api/deprecations#features.google_audience_types) for - // more information. + // items are logically ‘OR’ of each other. ExcludedGoogleAudienceGroup *GoogleAudienceGroup `json:"excludedGoogleAudienceGroup,omitempty"` // IncludedCombinedAudienceGroup: The combined audience ids of the @@ -2384,23 +2372,11 @@ type AudienceGroupAssignedTargetingOptionDetails struct { // third party audience ids only. The relation between each first and // third party audience group is INTERSECTION, and the result is // UNION'ed with other audience groups. Repeated groups with same - // settings will be ignored. **Warning:** `ACTIVITY_BASED` and - // `FREQUENCY_CAP` audience types will be deprecated on **May 20, - // 2023**. After this date, these audiences will not be able to be added - // to resource targeting. Read our feature deprecation announcement - // (/display-video/api/deprecations#features.first_and_third_party_audien - // ce_types) for more information. + // settings will be ignored. IncludedFirstAndThirdPartyAudienceGroups []*FirstAndThirdPartyAudienceGroup `json:"includedFirstAndThirdPartyAudienceGroups,omitempty"` // IncludedGoogleAudienceGroup: The Google audience ids of the included // Google audience group. Contains Google audience ids only. - // **Warning:** `GOOGLE_AUDIENCE_TYPE_INSTALLED_APPS` and - // `GOOGLE_AUDIENCE_TYPE_NEW_MOBILE_DEVICES` audience types will be - // deprecated on **May 20, 2023**. After this date, these audiences will - // not be able to be added to resource targeting. Read our feature - // deprecation announcement - // (/display-video/api/deprecations#features.google_audience_types) for - // more information. IncludedGoogleAudienceGroup *GoogleAudienceGroup `json:"includedGoogleAudienceGroup,omitempty"` // ForceSendFields is a list of field names (e.g. @@ -8719,18 +8695,8 @@ type FirstAndThirdPartyAudience struct { // "CUSTOMER_MATCH_USER_ID" - Audience was generated through matching // customers to known User IDs. // "ACTIVITY_BASED" - Audience was created based on campaign activity. - // **Warning:** This audience type will be deprecated on **May 20, - // 2023**. After this date, these audiences will not be able to be added - // to resource targeting. Read our [feature deprecation - // announcement](/display-video/api/deprecations#features.first_and_third - // _party_audience_types) for more information. // "FREQUENCY_CAP" - Audience was created based on excluding the - // number of impressions they were served. **Warning:** This audience - // type will be deprecated on **May 20, 2023**. After this date, these - // audiences will not be able to be added to resource targeting. Read - // our [feature deprecation - // announcement](/display-video/api/deprecations#features.first_and_third - // _party_audience_types) for more information. + // number of impressions they were served. // "TAG_BASED" - Audience was created based on custom variables // attached to pixel. // "YOUTUBE_USERS" - Audience was created based on past interactions @@ -9542,17 +9508,9 @@ type GoogleAudience struct { // "GOOGLE_AUDIENCE_TYPE_AFFINITY" - Affinity type Google audience. // "GOOGLE_AUDIENCE_TYPE_IN_MARKET" - In-Market type Google audience. // "GOOGLE_AUDIENCE_TYPE_INSTALLED_APPS" - Installed-Apps type Google - // audience. **Warning:** This audience type will be deprecated on **May - // 20, 2023**. After this date, these audiences will not be able to be - // added to resource targeting. Read our [feature deprecation - // announcement](/display-video/api/deprecations#features.google_audience - // _types) for more information. + // audience. // "GOOGLE_AUDIENCE_TYPE_NEW_MOBILE_DEVICES" - New-Mobile-Devices type - // Google audience. **Warning:** This audience type will be deprecated - // on **May 20, 2023**. After this date, these audiences will not be - // able to be added to resource targeting. Read our [feature deprecation - // announcement](/display-video/api/deprecations#features.google_audience - // _types) for more information. + // Google audience. // "GOOGLE_AUDIENCE_TYPE_LIFE_EVENT" - Life-Event type Google // audience. // "GOOGLE_AUDIENCE_TYPE_EXTENDED_DEMOGRAPHIC" - Extended-Demographic diff --git a/firestore/v1/firestore-api.json b/firestore/v1/firestore-api.json index e10e7657566..289f3d1811a 100644 --- a/firestore/v1/firestore-api.json +++ b/firestore/v1/firestore-api.json @@ -1682,7 +1682,7 @@ } } }, - "revision": "20230605", + "revision": "20230611", "rootUrl": "https://firestore.googleapis.com/", "schemas": { "Aggregation": { @@ -2154,7 +2154,7 @@ "id": "ExistenceFilter", "properties": { "count": { - "description": "The total count of documents that match target_id. If different from the count of documents in the client that match, the client must manually determine which documents no longer match the target.", + "description": "The total count of documents that match target_id. If different from the count of documents in the client that match, the client must manually determine which documents no longer match the target. The client can use the `unchanged_names` bloom filter to assist with this determination.", "format": "int32", "type": "integer" }, diff --git a/firestore/v1/firestore-gen.go b/firestore/v1/firestore-gen.go index 7f4cda568eb..5e588c4818a 100644 --- a/firestore/v1/firestore-gen.go +++ b/firestore/v1/firestore-gen.go @@ -1196,7 +1196,8 @@ type ExistenceFilter struct { // Count: The total count of documents that match target_id. If // different from the count of documents in the client that match, the // client must manually determine which documents no longer match the - // target. + // target. The client can use the `unchanged_names` bloom filter to + // assist with this determination. Count int64 `json:"count,omitempty"` // TargetId: The target ID to which this filter applies. diff --git a/firestore/v1beta1/firestore-api.json b/firestore/v1beta1/firestore-api.json index d93997f6d08..8eb01640981 100644 --- a/firestore/v1beta1/firestore-api.json +++ b/firestore/v1beta1/firestore-api.json @@ -950,7 +950,7 @@ } } }, - "revision": "20230508", + "revision": "20230611", "rootUrl": "https://firestore.googleapis.com/", "schemas": { "Aggregation": { @@ -1422,7 +1422,7 @@ "id": "ExistenceFilter", "properties": { "count": { - "description": "The total count of documents that match target_id. If different from the count of documents in the client that match, the client must manually determine which documents no longer match the target.", + "description": "The total count of documents that match target_id. If different from the count of documents in the client that match, the client must manually determine which documents no longer match the target. The client can use the `unchanged_names` bloom filter to assist with this determination.", "format": "int32", "type": "integer" }, diff --git a/firestore/v1beta1/firestore-gen.go b/firestore/v1beta1/firestore-gen.go index 9cb293a3c85..c1f1d87cb2b 100644 --- a/firestore/v1beta1/firestore-gen.go +++ b/firestore/v1beta1/firestore-gen.go @@ -1124,7 +1124,8 @@ type ExistenceFilter struct { // Count: The total count of documents that match target_id. If // different from the count of documents in the client that match, the // client must manually determine which documents no longer match the - // target. + // target. The client can use the `unchanged_names` bloom filter to + // assist with this determination. Count int64 `json:"count,omitempty"` // TargetId: The target ID to which this filter applies. diff --git a/paymentsresellersubscription/v1/paymentsresellersubscription-api.json b/paymentsresellersubscription/v1/paymentsresellersubscription-api.json index c7e3375f584..3f3c2603604 100644 --- a/paymentsresellersubscription/v1/paymentsresellersubscription-api.json +++ b/paymentsresellersubscription/v1/paymentsresellersubscription-api.json @@ -396,7 +396,7 @@ } } }, - "revision": "20230607", + "revision": "20230614", "rootUrl": "https://paymentsresellersubscription.googleapis.com/", "schemas": { "GoogleCloudPaymentsResellerSubscriptionV1Amount": { @@ -434,6 +434,7 @@ "CANCELLATION_REASON_UPGRADE_DOWNGRADE", "CANCELLATION_REASON_USER_DELINQUENCY", "CANCELLATION_REASON_SYSTEM_ERROR", + "CANCELLATION_REASON_SYSTEM_CANCEL", "CANCELLATION_REASON_OTHER" ], "enumDescriptions": [ @@ -446,6 +447,7 @@ "Used for notification only, do not use in Cancel API. Cancellation due to upgrade or downgrade.", "Cancellation due to user delinquency", "Cancellation due to an unrecoverable system error.", + "Cancellation by a system.", "Other reason." ], "type": "string" @@ -1049,6 +1051,7 @@ "CANCELLATION_REASON_UPGRADE_DOWNGRADE", "CANCELLATION_REASON_USER_DELINQUENCY", "CANCELLATION_REASON_SYSTEM_ERROR", + "CANCELLATION_REASON_SYSTEM_CANCEL", "CANCELLATION_REASON_OTHER" ], "enumDescriptions": [ @@ -1061,6 +1064,7 @@ "Used for notification only, do not use in Cancel API. Cancellation due to upgrade or downgrade.", "Cancellation due to user delinquency", "Cancellation due to an unrecoverable system error.", + "Cancellation by a system.", "Other reason." ], "type": "string" diff --git a/paymentsresellersubscription/v1/paymentsresellersubscription-gen.go b/paymentsresellersubscription/v1/paymentsresellersubscription-gen.go index 8227c6806e8..f7dd35311cf 100644 --- a/paymentsresellersubscription/v1/paymentsresellersubscription-gen.go +++ b/paymentsresellersubscription/v1/paymentsresellersubscription-gen.go @@ -230,6 +230,7 @@ type GoogleCloudPaymentsResellerSubscriptionV1CancelSubscriptionRequest struct { // delinquency // "CANCELLATION_REASON_SYSTEM_ERROR" - Cancellation due to an // unrecoverable system error. + // "CANCELLATION_REASON_SYSTEM_CANCEL" - Cancellation by a system. // "CANCELLATION_REASON_OTHER" - Other reason. CancellationReason string `json:"cancellationReason,omitempty"` @@ -1203,6 +1204,7 @@ type GoogleCloudPaymentsResellerSubscriptionV1SubscriptionCancellationDetails st // delinquency // "CANCELLATION_REASON_SYSTEM_ERROR" - Cancellation due to an // unrecoverable system error. + // "CANCELLATION_REASON_SYSTEM_CANCEL" - Cancellation by a system. // "CANCELLATION_REASON_OTHER" - Other reason. Reason string `json:"reason,omitempty"` diff --git a/run/v1/run-api.json b/run/v1/run-api.json index 28665321953..a8887eff6a9 100644 --- a/run/v1/run-api.json +++ b/run/v1/run-api.json @@ -2289,7 +2289,7 @@ } } }, - "revision": "20230604", + "revision": "20230611", "rootUrl": "https://run.googleapis.com/", "schemas": { "Addressable": { @@ -2625,12 +2625,16 @@ "id": "ContainerOverride", "properties": { "args": { - "description": "Arguments to the entrypoint. Will replace existing args for override.", + "description": "Arguments to the entrypoint. Will replace existing args for override if present. Must be empty if `clear_args` is set to true.", "items": { "type": "string" }, "type": "array" }, + "clearArgs": { + "description": "Optional. True if the intention is to clear out existing args list.", + "type": "boolean" + }, "env": { "description": "List of environment variables to set in the container. Will be merged with existing env for override.", "items": { @@ -2764,7 +2768,7 @@ "type": "string" }, "sizeLimit": { - "description": "Limit on the storage usable by this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers in a pod. This field's values are of the 'Quantity' k8s type: https://kubernetes.io/docs/reference/kubernetes-api/common-definitions/quantity/. The default is nil which means that the limit is undefined. More info: http://kubernetes.io/docs/user-guide/volumes#emptydir +optional", + "description": "Limit on the storage usable by this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers in a pod. This field's values are of the 'Quantity' k8s type: https://kubernetes.io/docs/reference/kubernetes-api/common-definitions/quantity/. The default is nil which means that the limit is undefined. More info: https://kubernetes.io/docs/concepts/storage/volumes/#emptydir", "type": "string" } }, @@ -4043,7 +4047,7 @@ "properties": { "overrides": { "$ref": "Overrides", - "description": "Optional. Overrides specification for a given execution of a job. If provided, overrides will be applied to update the execution or task spec." + "description": "Optional. Private preview feature. Currently only available by invitation. Overrides specification for a given execution of a job. If provided, overrides will be applied to update the execution or task spec." } }, "type": "object" diff --git a/run/v1/run-gen.go b/run/v1/run-gen.go index 7f42b931c03..66c7fe7cea8 100644 --- a/run/v1/run-gen.go +++ b/run/v1/run-gen.go @@ -1005,9 +1005,13 @@ func (s *Container) MarshalJSON() ([]byte, error) { // ContainerOverride: Per container override specification. type ContainerOverride struct { // Args: Arguments to the entrypoint. Will replace existing args for - // override. + // override if present. Must be empty if `clear_args` is set to true. Args []string `json:"args,omitempty"` + // ClearArgs: Optional. True if the intention is to clear out existing + // args list. + ClearArgs bool `json:"clearArgs,omitempty"` + // Env: List of environment variables to set in the container. Will be // merged with existing env for override. Env []*EnvVar `json:"env,omitempty"` @@ -1238,7 +1242,7 @@ type EmptyDirVolumeSource struct { // type: // https://kubernetes.io/docs/reference/kubernetes-api/common-definitions/quantity/. // The default is nil which means that the limit is undefined. More - // info: http://kubernetes.io/docs/user-guide/volumes#emptydir +optional + // info: https://kubernetes.io/docs/concepts/storage/volumes/#emptydir SizeLimit string `json:"sizeLimit,omitempty"` // ForceSendFields is a list of field names (e.g. "Medium") to @@ -3474,9 +3478,10 @@ func (s *RouteStatus) MarshalJSON() ([]byte, error) { // RunJobRequest: Request message for creating a new execution of a job. type RunJobRequest struct { - // Overrides: Optional. Overrides specification for a given execution of - // a job. If provided, overrides will be applied to update the execution - // or task spec. + // Overrides: Optional. Private preview feature. Currently only + // available by invitation. Overrides specification for a given + // execution of a job. If provided, overrides will be applied to update + // the execution or task spec. Overrides *Overrides `json:"overrides,omitempty"` // ForceSendFields is a list of field names (e.g. "Overrides") to diff --git a/run/v2/run-api.json b/run/v2/run-api.json index 85e82f89dba..8fc96437bd4 100644 --- a/run/v2/run-api.json +++ b/run/v2/run-api.json @@ -1087,7 +1087,7 @@ } } }, - "revision": "20230604", + "revision": "20230611", "rootUrl": "https://run.googleapis.com/", "schemas": { "GoogleCloudRunV2BinaryAuthorization": { @@ -1369,7 +1369,7 @@ "type": "string" }, "sizeLimit": { - "description": "Limit on the storage usable by this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers in a pod. This field's values are of the 'Quantity' k8s type: https://kubernetes.io/docs/reference/kubernetes-api/common-definitions/quantity/. The default is nil which means that the limit is undefined. More info: http://kubernetes.io/docs/user-guide/volumes#emptydir +optional", + "description": "Limit on the storage usable by this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers in a pod. This field's values are of the 'Quantity' k8s type: https://kubernetes.io/docs/reference/kubernetes-api/common-definitions/quantity/. The default is nil which means that the limit is undefined. More info: https://kubernetes.io/docs/concepts/storage/volumes/#emptydir", "type": "string" } }, diff --git a/run/v2/run-gen.go b/run/v2/run-gen.go index 08b2c27db8d..ea7b7853454 100644 --- a/run/v2/run-gen.go +++ b/run/v2/run-gen.go @@ -578,7 +578,7 @@ type GoogleCloudRunV2EmptyDirVolumeSource struct { // type: // https://kubernetes.io/docs/reference/kubernetes-api/common-definitions/quantity/. // The default is nil which means that the limit is undefined. More - // info: http://kubernetes.io/docs/user-guide/volumes#emptydir +optional + // info: https://kubernetes.io/docs/concepts/storage/volumes/#emptydir SizeLimit string `json:"sizeLimit,omitempty"` // ForceSendFields is a list of field names (e.g. "Medium") to diff --git a/tagmanager/v2/tagmanager-api.json b/tagmanager/v2/tagmanager-api.json index afbe8796b9c..efc724a4e63 100644 --- a/tagmanager/v2/tagmanager-api.json +++ b/tagmanager/v2/tagmanager-api.json @@ -3890,7 +3890,7 @@ } } }, - "revision": "20230612", + "revision": "20230614", "rootUrl": "https://tagmanager.googleapis.com/", "schemas": { "Account": { @@ -5982,15 +5982,21 @@ "type": "string" }, "name": { - "description": "Transformation display name.", + "annotations": { + "required": [ + "tagmanager.accounts.containers.workspaces.transformations.create", + "tagmanager.accounts.containers.workspaces.transformations.update" + ] + }, + "description": "Transformation display name. @mutable tagmanager.accounts.containers.workspaces.transformations.create @mutable tagmanager.accounts.containers.workspaces.transformations.update", "type": "string" }, "notes": { - "description": "User notes on how to apply this transformation in the container.", + "description": "User notes on how to apply this transformation in the container. @mutable tagmanager.accounts.containers.workspaces.transformations.create @mutable tagmanager.accounts.containers.workspaces.transformations.update", "type": "string" }, "parameter": { - "description": "The transformation's parameters.", + "description": "The transformation's parameters. @mutable tagmanager.accounts.containers.workspaces.transformations.create @mutable tagmanager.accounts.containers.workspaces.transformations.update", "items": { "$ref": "Parameter" }, @@ -6013,7 +6019,13 @@ "type": "string" }, "type": { - "description": "Transformation type.", + "annotations": { + "required": [ + "tagmanager.accounts.containers.workspaces.transformations.create", + "tagmanager.accounts.containers.workspaces.transformations.update" + ] + }, + "description": "Transformation type. @mutable tagmanager.accounts.containers.workspaces.transformations.create @mutable tagmanager.accounts.containers.workspaces.transformations.update", "type": "string" }, "workspaceId": { diff --git a/tagmanager/v2/tagmanager-gen.go b/tagmanager/v2/tagmanager-gen.go index cb01c0c41a8..f307c4aa2f5 100644 --- a/tagmanager/v2/tagmanager-gen.go +++ b/tagmanager/v2/tagmanager-gen.go @@ -3366,14 +3366,23 @@ type Transformation struct { // modified. Fingerprint string `json:"fingerprint,omitempty"` - // Name: Transformation display name. + // Name: Transformation display name. @mutable + // tagmanager.accounts.containers.workspaces.transformations.create + // @mutable + // tagmanager.accounts.containers.workspaces.transformations.update Name string `json:"name,omitempty"` // Notes: User notes on how to apply this transformation in the - // container. + // container. @mutable + // tagmanager.accounts.containers.workspaces.transformations.create + // @mutable + // tagmanager.accounts.containers.workspaces.transformations.update Notes string `json:"notes,omitempty"` - // Parameter: The transformation's parameters. + // Parameter: The transformation's parameters. @mutable + // tagmanager.accounts.containers.workspaces.transformations.create + // @mutable + // tagmanager.accounts.containers.workspaces.transformations.update Parameter []*Parameter `json:"parameter,omitempty"` // ParentFolderId: Parent folder id. @@ -3389,7 +3398,10 @@ type Transformation struct { // transformation. TransformationId string `json:"transformationId,omitempty"` - // Type: Transformation type. + // Type: Transformation type. @mutable + // tagmanager.accounts.containers.workspaces.transformations.create + // @mutable + // tagmanager.accounts.containers.workspaces.transformations.update Type string `json:"type,omitempty"` // WorkspaceId: GTM Workspace ID. From 3eb845f12832f5a8943983d54b4a23da38e6f0ba Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Sat, 17 Jun 2023 00:24:12 -0700 Subject: [PATCH 02/11] feat(all): auto-regenerate discovery clients (#2030) --- api-list.json | 15 + batch/v1/batch-api.json | 157 +- batch/v1/batch-gen.go | 274 ++- cloudbilling/v1/cloudbilling-api.json | 11 +- cloudbilling/v1/cloudbilling-gen.go | 27 +- clouddeploy/v1/clouddeploy-api.json | 44 +- clouddeploy/v1/clouddeploy-gen.go | 62 +- dataplex/v1/dataplex-api.json | 8 +- dataplex/v1/dataplex-gen.go | 14 +- dialogflow/v2/dialogflow-api.json | 10 +- dialogflow/v2/dialogflow-gen.go | 12 +- dialogflow/v2beta1/dialogflow-api.json | 10 +- dialogflow/v2beta1/dialogflow-gen.go | 12 +- dialogflow/v3/dialogflow-api.json | 6 +- dialogflow/v3/dialogflow-gen.go | 4 + dialogflow/v3beta1/dialogflow-api.json | 6 +- dialogflow/v3beta1/dialogflow-gen.go | 4 + gkebackup/v1/gkebackup-api.json | 184 +- gkebackup/v1/gkebackup-gen.go | 280 ++- gkehub/v1/gkehub-api.json | 335 +++- gkehub/v1/gkehub-gen.go | 1585 +++++++++++++++-- gkehub/v1alpha/gkehub-api.json | 17 +- gkehub/v1alpha/gkehub-gen.go | 18 +- gkehub/v1beta/gkehub-api.json | 17 +- gkehub/v1beta/gkehub-gen.go | 18 +- spanner/v1/spanner-api.json | 33 +- spanner/v1/spanner-gen.go | 74 +- transcoder/v1/transcoder-api.json | 27 +- transcoder/v1/transcoder-gen.go | 47 +- .../v1/workflowexecutions-api.json | 7 +- .../v1/workflowexecutions-gen.go | 6 + workloadmanager/v1/workloadmanager-api.json | 16 +- workloadmanager/v1/workloadmanager-gen.go | 27 +- 33 files changed, 3097 insertions(+), 270 deletions(-) diff --git a/api-list.json b/api-list.json index f359beebd0e..2f2180db980 100644 --- a/api-list.json +++ b/api-list.json @@ -2479,6 +2479,21 @@ "documentationLink": "https://developers.google.com/domains/rdap/", "preferred": true }, + { + "kind": "discovery#directoryItem", + "id": "doubleclickbidmanager:v1.1", + "name": "doubleclickbidmanager", + "version": "v1.1", + "title": "DoubleClick Bid Manager API", + "description": "DoubleClick Bid Manager API allows users to manage and create campaigns and reports.", + "discoveryRestUrl": "https://doubleclickbidmanager.googleapis.com/$discovery/rest?version=v1.1", + "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://developers.google.com/bid-manager/", + "preferred": false + }, { "kind": "discovery#directoryItem", "id": "doubleclickbidmanager:v2", diff --git a/batch/v1/batch-api.json b/batch/v1/batch-api.json index 9b1e2c5a100..6653ffedfe4 100644 --- a/batch/v1/batch-api.json +++ b/batch/v1/batch-api.json @@ -556,7 +556,7 @@ } } }, - "revision": "20230518", + "revision": "20230607", "rootUrl": "https://batch.googleapis.com/", "schemas": { "Accelerator": { @@ -594,6 +594,64 @@ }, "type": "object" }, + "AgentContainer": { + "description": "Container runnable representation on the agent side.", + "id": "AgentContainer", + "properties": { + "commands": { + "description": "Overrides the `CMD` specified in the container. If there is an ENTRYPOINT (either in the container image or with the entrypoint field below) then commands are appended as arguments to the ENTRYPOINT.", + "items": { + "type": "string" + }, + "type": "array" + }, + "entrypoint": { + "description": "Overrides the `ENTRYPOINT` specified in the container.", + "type": "string" + }, + "imageUri": { + "description": "The URI to pull the container image from.", + "type": "string" + }, + "options": { + "description": "Arbitrary additional options to include in the \"docker run\" command when running this container, e.g. \"--network host\".", + "type": "string" + }, + "volumes": { + "description": "Volumes to mount (bind mount) from the host machine files or directories into the container, formatted to match docker run's --volume option, e.g. /foo:/bar, or /foo:/bar:ro", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, + "AgentEnvironment": { + "description": "AgentEnvironment is the Environment representation between Agent and CLH communication. The environment is used in both task level and agent level.", + "id": "AgentEnvironment", + "properties": { + "encryptedVariables": { + "$ref": "AgentKMSEnvMap", + "description": "An encrypted JSON dictionary where the key/value pairs correspond to environment variable names and their values." + }, + "secretVariables": { + "additionalProperties": { + "type": "string" + }, + "description": "A map of environment variable names to Secret Manager secret names. The VM will access the named secrets to set the value of each environment variable.", + "type": "object" + }, + "variables": { + "additionalProperties": { + "type": "string" + }, + "description": "A map of environment variable names to values.", + "type": "object" + } + }, + "type": "object" + }, "AgentInfo": { "description": "VM Agent Info.", "id": "AgentInfo", @@ -637,6 +695,21 @@ }, "type": "object" }, + "AgentKMSEnvMap": { + "description": "AgentKMSEnvMap contains the encrypted key/value pair to be used in the environment on the Agent side.", + "id": "AgentKMSEnvMap", + "properties": { + "cipherText": { + "description": "The value of the cipherText response from the `encrypt` method.", + "type": "string" + }, + "keyName": { + "description": "The name of the KMS key that will be used to decrypt the cipher text.", + "type": "string" + } + }, + "type": "object" + }, "AgentMetadata": { "description": "VM Agent Metadata.", "id": "AgentMetadata", @@ -685,10 +758,29 @@ }, "type": "object" }, + "AgentScript": { + "description": "Script runnable representation on the agent side.", + "id": "AgentScript", + "properties": { + "path": { + "description": "Script file path on the host VM. To specify an interpreter, please add a `#!`(also known as [shebang line](https://en.wikipedia.org/wiki/Shebang_(Unix))) as the first line of the file.(For example, to execute the script using bash, `#!/bin/bash` should be the first line of the file. To execute the script using`Python3`, `#!/usr/bin/env python3` should be the first line of the file.) Otherwise, the file will by default be excuted by `/bin/sh`.", + "type": "string" + }, + "text": { + "description": "Shell script text. To specify an interpreter, please add a `#!\\n` at the beginning of the text.(For example, to execute the script using bash, `#!/bin/bash\\n` should be added. To execute the script using`Python3`, `#!/usr/bin/env python3\\n` should be added.) Otherwise, the script will by default be excuted by `/bin/sh`.", + "type": "string" + } + }, + "type": "object" + }, "AgentTask": { "description": "TODO(b/182501497) The message needs to be redefined when the Agent API server updates data in storage per the backend design.", "id": "AgentTask", "properties": { + "agentTaskSpec": { + "$ref": "AgentTaskSpec", + "description": "AgentTaskSpec is the taskSpec representation between Agent and CLH communication. This field will replace the TaskSpec field above in future to have a better separation between user-facaing API and internal API." + }, "intendedState": { "description": "The intended state of the task.", "enum": [ @@ -712,7 +804,7 @@ }, "spec": { "$ref": "TaskSpec", - "description": "Task Spec." + "description": "Task Spec. This field will be replaced by agent_task_spec below in future." }, "status": { "$ref": "TaskStatus", @@ -759,6 +851,65 @@ }, "type": "object" }, + "AgentTaskRunnable": { + "description": "AgentTaskRunnable is the Runnable representation between Agent and CLH communication.", + "id": "AgentTaskRunnable", + "properties": { + "alwaysRun": { + "description": "By default, after a Runnable fails, no further Runnable are executed. This flag indicates that this Runnable must be run even if the Task has already failed. This is useful for Runnables that copy output files off of the VM or for debugging. The always_run flag does not override the Task's overall max_run_duration. If the max_run_duration has expired then no further Runnables will execute, not even always_run Runnables.", + "type": "boolean" + }, + "background": { + "description": "This flag allows a Runnable to continue running in the background while the Task executes subsequent Runnables. This is useful to provide services to other Runnables (or to provide debugging support tools like SSH servers).", + "type": "boolean" + }, + "container": { + "$ref": "AgentContainer", + "description": "Container runnable." + }, + "environment": { + "$ref": "AgentEnvironment", + "description": "Environment variables for this Runnable (overrides variables set for the whole Task or TaskGroup)." + }, + "ignoreExitStatus": { + "description": "Normally, a non-zero exit status causes the Task to fail. This flag allows execution of other Runnables to continue instead.", + "type": "boolean" + }, + "script": { + "$ref": "AgentScript", + "description": "Script runnable." + }, + "timeout": { + "description": "Timeout for this Runnable.", + "format": "google-duration", + "type": "string" + } + }, + "type": "object" + }, + "AgentTaskSpec": { + "description": "AgentTaskSpec is the user's TaskSpec representation between Agent and CLH communication.", + "id": "AgentTaskSpec", + "properties": { + "environment": { + "$ref": "AgentEnvironment", + "description": "Environment variables to set before running the Task." + }, + "maxRunDuration": { + "description": "Maximum duration the task should run. The task will be killed and marked as FAILED if over this limit.", + "format": "google-duration", + "type": "string" + }, + "runnables": { + "description": "AgentTaskRunnable is runanbles that will be executed on the agent.", + "items": { + "$ref": "AgentTaskRunnable" + }, + "type": "array" + } + }, + "type": "object" + }, "AgentTimingInfo": { "description": "VM timing information", "id": "AgentTimingInfo", @@ -929,7 +1080,7 @@ "type": "string" }, "image": { - "description": "Name of a public or custom image used as the data source. For example, the following are all valid URLs: * Specify the image by its family name: projects/{project}/global/images/family/{image_family} * Specify the image version: projects/{project}/global/images/{image_version} You can also use Batch customized image in short names. The following image values are supported for a boot disk: * \"batch-debian\": use Batch Debian images. * \"batch-centos\": use Batch CentOS images. * \"batch-cos\": use Batch Container-Optimized images.", + "description": "Name of a public or custom image used as the data source. For example, the following are all valid URLs: * Specify the image by its family name: projects/{project}/global/images/family/{image_family} * Specify the image version: projects/{project}/global/images/{image_version} You can also use Batch customized image in short names. The following image values are supported for a boot disk: * \"batch-debian\": use Batch Debian images. * \"batch-centos\": use Batch CentOS images. * \"batch-cos\": use Batch Container-Optimized images. * \"batch-hpc-centos\": use Batch HPC CentOS images.", "type": "string" }, "sizeGb": { diff --git a/batch/v1/batch-gen.go b/batch/v1/batch-gen.go index 5ae3f93b6c0..a11ef841a91 100644 --- a/batch/v1/batch-gen.go +++ b/batch/v1/batch-gen.go @@ -286,6 +286,92 @@ func (s *ActionCondition) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// AgentContainer: Container runnable representation on the agent side. +type AgentContainer struct { + // Commands: Overrides the `CMD` specified in the container. If there is + // an ENTRYPOINT (either in the container image or with the entrypoint + // field below) then commands are appended as arguments to the + // ENTRYPOINT. + Commands []string `json:"commands,omitempty"` + + // Entrypoint: Overrides the `ENTRYPOINT` specified in the container. + Entrypoint string `json:"entrypoint,omitempty"` + + // ImageUri: The URI to pull the container image from. + ImageUri string `json:"imageUri,omitempty"` + + // Options: Arbitrary additional options to include in the "docker run" + // command when running this container, e.g. "--network host". + Options string `json:"options,omitempty"` + + // Volumes: Volumes to mount (bind mount) from the host machine files or + // directories into the container, formatted to match docker run's + // --volume option, e.g. /foo:/bar, or /foo:/bar:ro + Volumes []string `json:"volumes,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Commands") 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. "Commands") 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 *AgentContainer) MarshalJSON() ([]byte, error) { + type NoMethod AgentContainer + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// AgentEnvironment: AgentEnvironment is the Environment representation +// between Agent and CLH communication. The environment is used in both +// task level and agent level. +type AgentEnvironment struct { + // EncryptedVariables: An encrypted JSON dictionary where the key/value + // pairs correspond to environment variable names and their values. + EncryptedVariables *AgentKMSEnvMap `json:"encryptedVariables,omitempty"` + + // SecretVariables: A map of environment variable names to Secret + // Manager secret names. The VM will access the named secrets to set the + // value of each environment variable. + SecretVariables map[string]string `json:"secretVariables,omitempty"` + + // Variables: A map of environment variable names to values. + Variables map[string]string `json:"variables,omitempty"` + + // ForceSendFields is a list of field names (e.g. "EncryptedVariables") + // 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. "EncryptedVariables") 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 *AgentEnvironment) MarshalJSON() ([]byte, error) { + type NoMethod AgentEnvironment + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // AgentInfo: VM Agent Info. type AgentInfo struct { // JobId: The assigned Job ID @@ -334,6 +420,40 @@ func (s *AgentInfo) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// AgentKMSEnvMap: AgentKMSEnvMap contains the encrypted key/value pair +// to be used in the environment on the Agent side. +type AgentKMSEnvMap struct { + // CipherText: The value of the cipherText response from the `encrypt` + // method. + CipherText string `json:"cipherText,omitempty"` + + // KeyName: The name of the KMS key that will be used to decrypt the + // cipher text. + KeyName string `json:"keyName,omitempty"` + + // ForceSendFields is a list of field names (e.g. "CipherText") 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. "CipherText") 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 *AgentKMSEnvMap) MarshalJSON() ([]byte, error) { + type NoMethod AgentKMSEnvMap + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // AgentMetadata: VM Agent Metadata. type AgentMetadata struct { // CreationTime: When the VM agent started. Use agent_startup_time @@ -392,9 +512,57 @@ func (s *AgentMetadata) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// AgentScript: Script runnable representation on the agent side. +type AgentScript struct { + // Path: Script file path on the host VM. To specify an interpreter, + // please add a `#!`(also known as shebang line + // (https://en.wikipedia.org/wiki/Shebang_(Unix))) as the first line of + // the file.(For example, to execute the script using bash, + // `#!/bin/bash` should be the first line of the file. To execute the + // script using`Python3`, `#!/usr/bin/env python3` should be the first + // line of the file.) Otherwise, the file will by default be excuted by + // `/bin/sh`. + Path string `json:"path,omitempty"` + + // Text: Shell script text. To specify an interpreter, please add a + // `#!\n` at the beginning of the text.(For example, to execute the + // script using bash, `#!/bin/bash\n` should be added. To execute the + // script using`Python3`, `#!/usr/bin/env python3\n` should be added.) + // Otherwise, the script will by default be excuted by `/bin/sh`. + Text string `json:"text,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Path") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Path") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *AgentScript) MarshalJSON() ([]byte, error) { + type NoMethod AgentScript + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // AgentTask: TODO(b/182501497) The message needs to be redefined when // the Agent API server updates data in storage per the backend design. type AgentTask struct { + // AgentTaskSpec: AgentTaskSpec is the taskSpec representation between + // Agent and CLH communication. This field will replace the TaskSpec + // field above in future to have a better separation between + // user-facaing API and internal API. + AgentTaskSpec *AgentTaskSpec `json:"agentTaskSpec,omitempty"` + // IntendedState: The intended state of the task. // // Possible values: @@ -409,7 +577,8 @@ type AgentTask struct { // task's TaskGroup. ReachedBarrier int64 `json:"reachedBarrier,omitempty,string"` - // Spec: Task Spec. + // Spec: Task Spec. This field will be replaced by agent_task_spec below + // in future. Spec *TaskSpec `json:"spec,omitempty"` // Status: Task status. @@ -431,7 +600,7 @@ type AgentTask struct { // with "batch_task_logs" log name. TaskSource string `json:"taskSource,omitempty"` - // ForceSendFields is a list of field names (e.g. "IntendedState") to + // ForceSendFields is a list of field names (e.g. "AgentTaskSpec") 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 @@ -439,7 +608,7 @@ type AgentTask struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "IntendedState") to include + // NullFields is a list of field names (e.g. "AgentTaskSpec") 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 @@ -491,6 +660,102 @@ func (s *AgentTaskInfo) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// AgentTaskRunnable: AgentTaskRunnable is the Runnable representation +// between Agent and CLH communication. +type AgentTaskRunnable struct { + // AlwaysRun: By default, after a Runnable fails, no further Runnable + // are executed. This flag indicates that this Runnable must be run even + // if the Task has already failed. This is useful for Runnables that + // copy output files off of the VM or for debugging. The always_run flag + // does not override the Task's overall max_run_duration. If the + // max_run_duration has expired then no further Runnables will execute, + // not even always_run Runnables. + AlwaysRun bool `json:"alwaysRun,omitempty"` + + // Background: This flag allows a Runnable to continue running in the + // background while the Task executes subsequent Runnables. This is + // useful to provide services to other Runnables (or to provide + // debugging support tools like SSH servers). + Background bool `json:"background,omitempty"` + + // Container: Container runnable. + Container *AgentContainer `json:"container,omitempty"` + + // Environment: Environment variables for this Runnable (overrides + // variables set for the whole Task or TaskGroup). + Environment *AgentEnvironment `json:"environment,omitempty"` + + // IgnoreExitStatus: Normally, a non-zero exit status causes the Task to + // fail. This flag allows execution of other Runnables to continue + // instead. + IgnoreExitStatus bool `json:"ignoreExitStatus,omitempty"` + + // Script: Script runnable. + Script *AgentScript `json:"script,omitempty"` + + // Timeout: Timeout for this Runnable. + Timeout string `json:"timeout,omitempty"` + + // ForceSendFields is a list of field names (e.g. "AlwaysRun") 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. "AlwaysRun") 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 *AgentTaskRunnable) MarshalJSON() ([]byte, error) { + type NoMethod AgentTaskRunnable + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// AgentTaskSpec: AgentTaskSpec is the user's TaskSpec representation +// between Agent and CLH communication. +type AgentTaskSpec struct { + // Environment: Environment variables to set before running the Task. + Environment *AgentEnvironment `json:"environment,omitempty"` + + // MaxRunDuration: Maximum duration the task should run. The task will + // be killed and marked as FAILED if over this limit. + MaxRunDuration string `json:"maxRunDuration,omitempty"` + + // Runnables: AgentTaskRunnable is runanbles that will be executed on + // the agent. + Runnables []*AgentTaskRunnable `json:"runnables,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Environment") 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. "Environment") 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 *AgentTaskSpec) MarshalJSON() ([]byte, error) { + type NoMethod AgentTaskSpec + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // AgentTimingInfo: VM timing information type AgentTimingInfo struct { // AgentStartupTime: Agent startup time @@ -765,7 +1030,8 @@ type Disk struct { // Batch customized image in short names. The following image values are // supported for a boot disk: * "batch-debian": use Batch Debian images. // * "batch-centos": use Batch CentOS images. * "batch-cos": use Batch - // Container-Optimized images. + // Container-Optimized images. * "batch-hpc-centos": use Batch HPC + // CentOS images. Image string `json:"image,omitempty"` // SizeGb: Disk size in GB. For persistent disk, this field is ignored diff --git a/cloudbilling/v1/cloudbilling-api.json b/cloudbilling/v1/cloudbilling-api.json index 61102cd62af..649616efdf2 100644 --- a/cloudbilling/v1/cloudbilling-api.json +++ b/cloudbilling/v1/cloudbilling-api.json @@ -521,7 +521,7 @@ } } }, - "revision": "20230130", + "revision": "20230616", "rootUrl": "https://cloudbilling.googleapis.com/", "schemas": { "AggregationInfo": { @@ -935,15 +935,18 @@ "type": "string" }, "billingEnabled": { - "description": "True if the project is associated with an open billing account, to which usage on the project is charged. False if the project is associated with a closed billing account, or no billing account at all, and therefore cannot use paid services. This field is read-only.", + "description": "Output only. True if the project is associated with an open billing account, to which usage on the project is charged. False if the project is associated with a closed billing account, or no billing account at all, and therefore cannot use paid services. This field is read-only.", + "readOnly": true, "type": "boolean" }, "name": { - "description": "The resource name for the `ProjectBillingInfo`; has the form `projects/{project_id}/billingInfo`. For example, the resource name for the billing information for project `tokyo-rain-123` would be `projects/tokyo-rain-123/billingInfo`. This field is read-only.", + "description": "Output only. The resource name for the `ProjectBillingInfo`; has the form `projects/{project_id}/billingInfo`. For example, the resource name for the billing information for project `tokyo-rain-123` would be `projects/tokyo-rain-123/billingInfo`. This field is read-only.", + "readOnly": true, "type": "string" }, "projectId": { - "description": "The ID of the project that this `ProjectBillingInfo` represents, such as `tokyo-rain-123`. This is a convenience field so that you don't need to parse the `name` field to obtain a project ID. This field is read-only.", + "description": "Output only. The ID of the project that this `ProjectBillingInfo` represents, such as `tokyo-rain-123`. This is a convenience field so that you don't need to parse the `name` field to obtain a project ID. This field is read-only.", + "readOnly": true, "type": "string" } }, diff --git a/cloudbilling/v1/cloudbilling-gen.go b/cloudbilling/v1/cloudbilling-gen.go index b988ef256d7..f6b6766981b 100644 --- a/cloudbilling/v1/cloudbilling-gen.go +++ b/cloudbilling/v1/cloudbilling-gen.go @@ -1092,23 +1092,24 @@ type ProjectBillingInfo struct { // `billingAccounts/012345-567890-ABCDEF`. BillingAccountName string `json:"billingAccountName,omitempty"` - // BillingEnabled: True if the project is associated with an open - // billing account, to which usage on the project is charged. False if - // the project is associated with a closed billing account, or no - // billing account at all, and therefore cannot use paid services. This - // field is read-only. + // BillingEnabled: Output only. True if the project is associated with + // an open billing account, to which usage on the project is charged. + // False if the project is associated with a closed billing account, or + // no billing account at all, and therefore cannot use paid services. + // This field is read-only. BillingEnabled bool `json:"billingEnabled,omitempty"` - // Name: The resource name for the `ProjectBillingInfo`; has the form - // `projects/{project_id}/billingInfo`. For example, the resource name - // for the billing information for project `tokyo-rain-123` would be - // `projects/tokyo-rain-123/billingInfo`. This field is read-only. + // Name: Output only. The resource name for the `ProjectBillingInfo`; + // has the form `projects/{project_id}/billingInfo`. For example, the + // resource name for the billing information for project + // `tokyo-rain-123` would be `projects/tokyo-rain-123/billingInfo`. This + // field is read-only. Name string `json:"name,omitempty"` - // ProjectId: The ID of the project that this `ProjectBillingInfo` - // represents, such as `tokyo-rain-123`. This is a convenience field so - // that you don't need to parse the `name` field to obtain a project ID. - // This field is read-only. + // ProjectId: Output only. The ID of the project that this + // `ProjectBillingInfo` represents, such as `tokyo-rain-123`. This is a + // convenience field so that you don't need to parse the `name` field to + // obtain a project ID. This field is read-only. ProjectId string `json:"projectId,omitempty"` // ServerResponse contains the HTTP response code and headers from the diff --git a/clouddeploy/v1/clouddeploy-api.json b/clouddeploy/v1/clouddeploy-api.json index 4f7517f1706..7c6be680e5a 100644 --- a/clouddeploy/v1/clouddeploy-api.json +++ b/clouddeploy/v1/clouddeploy-api.json @@ -1451,7 +1451,7 @@ } } }, - "revision": "20230602", + "revision": "20230609", "rootUrl": "https://clouddeploy.googleapis.com/", "schemas": { "AbandonReleaseRequest": { @@ -2035,6 +2035,27 @@ }, "type": "object" }, + "DeployParameters": { + "description": "DeployParameters contains deploy parameters information.", + "id": "DeployParameters", + "properties": { + "matchTargetLabels": { + "additionalProperties": { + "type": "string" + }, + "description": "Optional. Deploy parameters are applied to targets with match labels. If unspecified, deploy parameters are applied to all targets (including child targets of a multi-target).", + "type": "object" + }, + "values": { + "additionalProperties": { + "type": "string" + }, + "description": "Required. Values are deploy parameters in key-value pairs.", + "type": "object" + } + }, + "type": "object" + }, "DeploymentJobs": { "description": "Deployment job composition.", "id": "DeploymentJobs", @@ -2933,6 +2954,13 @@ "description": "Output only. Snapshot of the parent pipeline taken at release creation time.", "readOnly": true }, + "deployParameters": { + "additionalProperties": { + "type": "string" + }, + "description": "Optional. The deploy parameters to use for all targets in this release.", + "type": "object" + }, "description": { "description": "Description of the `Release`. Max length is 255 characters.", "type": "string" @@ -3482,6 +3510,13 @@ "description": "Stage specifies a location to which to deploy.", "id": "Stage", "properties": { + "deployParameters": { + "description": "Optional. The deploy parameters to use for the target in this stage.", + "items": { + "$ref": "DeployParameters" + }, + "type": "array" + }, "profiles": { "description": "Skaffold profiles to use when rendering the manifest for this stage's `Target`.", "items": { @@ -3574,6 +3609,13 @@ "readOnly": true, "type": "string" }, + "deployParameters": { + "additionalProperties": { + "type": "string" + }, + "description": "Optional. The deploy parameters to use for this target.", + "type": "object" + }, "description": { "description": "Optional. Description of the `Target`. Max length is 255 characters.", "type": "string" diff --git a/clouddeploy/v1/clouddeploy-gen.go b/clouddeploy/v1/clouddeploy-gen.go index 8c7a24a6547..94aabce87ee 100644 --- a/clouddeploy/v1/clouddeploy-gen.go +++ b/clouddeploy/v1/clouddeploy-gen.go @@ -1303,6 +1303,41 @@ func (s *DeployJobRunMetadata) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// DeployParameters: DeployParameters contains deploy parameters +// information. +type DeployParameters struct { + // MatchTargetLabels: Optional. Deploy parameters are applied to targets + // with match labels. If unspecified, deploy parameters are applied to + // all targets (including child targets of a multi-target). + MatchTargetLabels map[string]string `json:"matchTargetLabels,omitempty"` + + // Values: Required. Values are deploy parameters in key-value pairs. + Values map[string]string `json:"values,omitempty"` + + // ForceSendFields is a list of field names (e.g. "MatchTargetLabels") + // 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. "MatchTargetLabels") 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 *DeployParameters) MarshalJSON() ([]byte, error) { + type NoMethod DeployParameters + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // DeploymentJobs: Deployment job composition. type DeploymentJobs struct { // DeployJob: Output only. The deploy Job. This is the deploy job in the @@ -2722,6 +2757,10 @@ type Release struct { // pipeline taken at release creation time. DeliveryPipelineSnapshot *DeliveryPipeline `json:"deliveryPipelineSnapshot,omitempty"` + // DeployParameters: Optional. The deploy parameters to use for all + // targets in this release. + DeployParameters map[string]string `json:"deployParameters,omitempty"` + // Description: Description of the `Release`. Max length is 255 // characters. Description string `json:"description,omitempty"` @@ -3484,6 +3523,10 @@ func (s *SkaffoldVersion) MarshalJSON() ([]byte, error) { // Stage: Stage specifies a location to which to deploy. type Stage struct { + // DeployParameters: Optional. The deploy parameters to use for the + // target in this stage. + DeployParameters []*DeployParameters `json:"deployParameters,omitempty"` + // Profiles: Skaffold profiles to use when rendering the manifest for // this stage's `Target`. Profiles []string `json:"profiles,omitempty"` @@ -3500,7 +3543,7 @@ type Stage struct { // of the `DeliveryPipeline` that contains this `Stage`. TargetId string `json:"targetId,omitempty"` - // ForceSendFields is a list of field names (e.g. "Profiles") to + // ForceSendFields is a list of field names (e.g. "DeployParameters") 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 @@ -3508,12 +3551,13 @@ type Stage struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Profiles") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "DeployParameters") 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:"-"` } @@ -3644,6 +3688,10 @@ type Target struct { // CreateTime: Output only. Time at which the `Target` was created. CreateTime string `json:"createTime,omitempty"` + // DeployParameters: Optional. The deploy parameters to use for this + // target. + DeployParameters map[string]string `json:"deployParameters,omitempty"` + // Description: Optional. Description of the `Target`. Max length is 255 // characters. Description string `json:"description,omitempty"` diff --git a/dataplex/v1/dataplex-api.json b/dataplex/v1/dataplex-api.json index f95dcfe1939..ae272602cb4 100644 --- a/dataplex/v1/dataplex-api.json +++ b/dataplex/v1/dataplex-api.json @@ -4269,7 +4269,7 @@ } } }, - "revision": "20230530", + "revision": "20230607", "rootUrl": "https://dataplex.googleapis.com/", "schemas": { "Empty": { @@ -5264,7 +5264,7 @@ "type": "string" }, "quartiles": { - "description": "A quartile divides the number of data points into four parts, or quarters, of more-or-less equal size. Three main quartiles used are: The first quartile (Q1) splits off the lowest 25% of data from the highest 75%. It is also known as the lower or 25th empirical quartile, as 25% of the data is below this point. The second quartile (Q2) is the median of a data set. So, 50% of the data lies below this point. The third quartile (Q3) splits off the highest 25% of data from the lowest 75%. It is known as the upper or 75th empirical quartile, as 75% of the data lies below this point. Here, the quartiles is provided as an ordered list of quartile values for the scanned data, occurring in order Q1, median, Q3.", + "description": "A quartile divides the number of data points into four parts, or quarters, of more-or-less equal size. Three main quartiles used are: The first quartile (Q1) splits off the lowest 25% of data from the highest 75%. It is also known as the lower or 25th empirical quartile, as 25% of the data is below this point. The second quartile (Q2) is the median of a data set. So, 50% of the data lies below this point. The third quartile (Q3) splits off the highest 25% of data from the lowest 75%. It is known as the upper or 75th empirical quartile, as 75% of the data lies below this point. Here, the quartiles is provided as an ordered list of approximate quartile values for the scanned data, occurring in order Q1, median, Q3.", "items": { "format": "int64", "type": "string" @@ -5861,6 +5861,10 @@ "description": "Applied configs for data profile type data scan job.", "id": "GoogleCloudDataplexV1DataScanEventDataProfileAppliedConfigs", "properties": { + "columnFilterApplied": { + "description": "Boolean indicating whether a column filter was applied in the DataScan job.", + "type": "boolean" + }, "rowFilterApplied": { "description": "Boolean indicating whether a row filter was applied in the DataScan job.", "type": "boolean" diff --git a/dataplex/v1/dataplex-gen.go b/dataplex/v1/dataplex-gen.go index 1d44d8f7f77..3c34acd8b5c 100644 --- a/dataplex/v1/dataplex-gen.go +++ b/dataplex/v1/dataplex-gen.go @@ -1898,8 +1898,8 @@ type GoogleCloudDataplexV1DataProfileResultProfileFieldProfileInfoIntegerFieldIn // point. The third quartile (Q3) splits off the highest 25% of data // from the lowest 75%. It is known as the upper or 75th empirical // quartile, as 75% of the data lies below this point. Here, the - // quartiles is provided as an ordered list of quartile values for the - // scanned data, occurring in order Q1, median, Q3. + // quartiles is provided as an ordered list of approximate quartile + // values for the scanned data, occurring in order Q1, median, Q3. Quartiles googleapi.Int64s `json:"quartiles,omitempty"` // StandardDeviation: Standard deviation of non-null values in the @@ -2844,6 +2844,10 @@ func (s *GoogleCloudDataplexV1DataScanEvent) MarshalJSON() ([]byte, error) { // GoogleCloudDataplexV1DataScanEventDataProfileAppliedConfigs: Applied // configs for data profile type data scan job. type GoogleCloudDataplexV1DataScanEventDataProfileAppliedConfigs struct { + // ColumnFilterApplied: Boolean indicating whether a column filter was + // applied in the DataScan job. + ColumnFilterApplied bool `json:"columnFilterApplied,omitempty"` + // RowFilterApplied: Boolean indicating whether a row filter was applied // in the DataScan job. RowFilterApplied bool `json:"rowFilterApplied,omitempty"` @@ -2853,15 +2857,15 @@ type GoogleCloudDataplexV1DataScanEventDataProfileAppliedConfigs struct { // or 100.0 imply that sampling was not applied. SamplingPercent float64 `json:"samplingPercent,omitempty"` - // ForceSendFields is a list of field names (e.g. "RowFilterApplied") to - // unconditionally include in API requests. By default, fields with + // ForceSendFields is a list of field names (e.g. "ColumnFilterApplied") + // 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. "RowFilterApplied") to + // NullFields is a list of field names (e.g. "ColumnFilterApplied") 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 diff --git a/dialogflow/v2/dialogflow-api.json b/dialogflow/v2/dialogflow-api.json index 895d2b8711c..e1463b051ff 100644 --- a/dialogflow/v2/dialogflow-api.json +++ b/dialogflow/v2/dialogflow-api.json @@ -8211,7 +8211,7 @@ } } }, - "revision": "20230605", + "revision": "20230612", "rootUrl": "https://dialogflow.googleapis.com/", "schemas": { "GoogleCloudDialogflowCxV3AudioInput": { @@ -13375,7 +13375,7 @@ "type": "string" }, "enableAutoReload": { - "description": "Optional. If true, we try to automatically reload the document every day (at a time picked by the system). If false or unspecified, we don't try to automatically reload the document. Currently you can only enable automatic reload for documents sourced from a public url, see `source` field for the source types. Reload status can be tracked in `latest_reload_status`. If a reload fails, we will keep the document unchanged. If a reload fails with internal errors, the system will try to reload the document on the next day. If a reload fails with non-retriable errors (e.g. PERMISION_DENIED), the system will not try to reload the document anymore. You need to manually reload the document successfully by calling `ReloadDocument` and clear the errors.", + "description": "Optional. If true, we try to automatically reload the document every day (at a time picked by the system). If false or unspecified, we don't try to automatically reload the document. Currently you can only enable automatic reload for documents sourced from a public url, see `source` field for the source types. Reload status can be tracked in `latest_reload_status`. If a reload fails, we will keep the document unchanged. If a reload fails with internal errors, the system will try to reload the document on the next day. If a reload fails with non-retriable errors (e.g. PERMISSION_DENIED), the system will not try to reload the document anymore. You need to manually reload the document successfully by calling `ReloadDocument` and clear the errors.", "type": "boolean" }, "knowledgeTypes": { @@ -14412,7 +14412,7 @@ }, "gcsSource": { "$ref": "GoogleCloudDialogflowV2GcsSources", - "description": "The Google Cloud Storage location for the documents. The path can include a wildcard. These URIs may have the forms `gs:///`. `gs:////*.`." + "description": "Optional. The Google Cloud Storage location for the documents. The path can include a wildcard. These URIs may have the forms `gs:///`. `gs:////*.`." }, "importGcsCustomMetadata": { "description": "Whether to import custom metadata from Google Cloud Storage. Only valid when the document source is Google Cloud Storage URI.", @@ -19245,6 +19245,10 @@ "$ref": "GoogleCloudDialogflowV2beta1SuggestDialogflowAssistsResponse", "description": "SuggestDialogflowAssistsResponse if request is for DIALOGFLOW_ASSIST." }, + "suggestEntityExtractionResponse": { + "$ref": "GoogleCloudDialogflowV2beta1SuggestDialogflowAssistsResponse", + "description": "SuggestDialogflowAssistsResponse if request is for ENTITY_EXTRACTION." + }, "suggestFaqAnswersResponse": { "$ref": "GoogleCloudDialogflowV2beta1SuggestFaqAnswersResponse", "description": "SuggestFaqAnswersResponse if request is for FAQ_ANSWER." diff --git a/dialogflow/v2/dialogflow-gen.go b/dialogflow/v2/dialogflow-gen.go index 9af3f925e2a..576601bb958 100644 --- a/dialogflow/v2/dialogflow-gen.go +++ b/dialogflow/v2/dialogflow-gen.go @@ -10209,7 +10209,7 @@ type GoogleCloudDialogflowV2Document struct { // status can be tracked in `latest_reload_status`. If a reload fails, // we will keep the document unchanged. If a reload fails with internal // errors, the system will try to reload the document on the next day. - // If a reload fails with non-retriable errors (e.g. PERMISION_DENIED), + // If a reload fails with non-retriable errors (e.g. PERMISSION_DENIED), // the system will not try to reload the document anymore. You need to // manually reload the document successfully by calling `ReloadDocument` // and clear the errors. @@ -12264,9 +12264,9 @@ type GoogleCloudDialogflowV2ImportDocumentsRequest struct { // the documents. DocumentTemplate *GoogleCloudDialogflowV2ImportDocumentTemplate `json:"documentTemplate,omitempty"` - // GcsSource: The Google Cloud Storage location for the documents. The - // path can include a wildcard. These URIs may have the forms `gs:///`. - // `gs:////*.`. + // GcsSource: Optional. The Google Cloud Storage location for the + // documents. The path can include a wildcard. These URIs may have the + // forms `gs:///`. `gs:////*.`. GcsSource *GoogleCloudDialogflowV2GcsSources `json:"gcsSource,omitempty"` // ImportGcsCustomMetadata: Whether to import custom metadata from @@ -20812,6 +20812,10 @@ type GoogleCloudDialogflowV2beta1SuggestionResult struct { // request is for DIALOGFLOW_ASSIST. SuggestDialogflowAssistsResponse *GoogleCloudDialogflowV2beta1SuggestDialogflowAssistsResponse `json:"suggestDialogflowAssistsResponse,omitempty"` + // SuggestEntityExtractionResponse: SuggestDialogflowAssistsResponse if + // request is for ENTITY_EXTRACTION. + SuggestEntityExtractionResponse *GoogleCloudDialogflowV2beta1SuggestDialogflowAssistsResponse `json:"suggestEntityExtractionResponse,omitempty"` + // SuggestFaqAnswersResponse: SuggestFaqAnswersResponse if request is // for FAQ_ANSWER. SuggestFaqAnswersResponse *GoogleCloudDialogflowV2beta1SuggestFaqAnswersResponse `json:"suggestFaqAnswersResponse,omitempty"` diff --git a/dialogflow/v2beta1/dialogflow-api.json b/dialogflow/v2beta1/dialogflow-api.json index d464259357d..e44998ec27e 100644 --- a/dialogflow/v2beta1/dialogflow-api.json +++ b/dialogflow/v2beta1/dialogflow-api.json @@ -7579,7 +7579,7 @@ } } }, - "revision": "20230605", + "revision": "20230612", "rootUrl": "https://dialogflow.googleapis.com/", "schemas": { "GoogleCloudDialogflowCxV3AudioInput": { @@ -14116,7 +14116,7 @@ "id": "GoogleCloudDialogflowV2beta1BatchCreateMessagesRequest", "properties": { "requests": { - "description": "Required. A maximum of 1000 Messages can be created in a batch. CreateMessageRequest.message.send_time is required. All created messages will have identical Message.create_time.", + "description": "Required. A maximum of 300 messages can be created in a batch. CreateMessageRequest.message.send_time is required. All created messages will have identical Message.create_time.", "items": { "$ref": "GoogleCloudDialogflowV2beta1CreateMessageRequest" }, @@ -15700,7 +15700,7 @@ }, "gcsSource": { "$ref": "GoogleCloudDialogflowV2beta1GcsSources", - "description": "The Google Cloud Storage location for the documents. The path can include a wildcard. These URIs may have the forms `gs:///`. `gs:////*.`." + "description": "Optional. The Google Cloud Storage location for the documents. The path can include a wildcard. These URIs may have the forms `gs:///`. `gs:////*.`." }, "importGcsCustomMetadata": { "description": "Whether to import custom metadata from Google Cloud Storage. Only valid when the document source is Google Cloud Storage URI.", @@ -18622,6 +18622,10 @@ "$ref": "GoogleCloudDialogflowV2beta1SuggestDialogflowAssistsResponse", "description": "SuggestDialogflowAssistsResponse if request is for DIALOGFLOW_ASSIST." }, + "suggestEntityExtractionResponse": { + "$ref": "GoogleCloudDialogflowV2beta1SuggestDialogflowAssistsResponse", + "description": "SuggestDialogflowAssistsResponse if request is for ENTITY_EXTRACTION." + }, "suggestFaqAnswersResponse": { "$ref": "GoogleCloudDialogflowV2beta1SuggestFaqAnswersResponse", "description": "SuggestFaqAnswersResponse if request is for FAQ_ANSWER." diff --git a/dialogflow/v2beta1/dialogflow-gen.go b/dialogflow/v2beta1/dialogflow-gen.go index d55655d49d1..745da26c449 100644 --- a/dialogflow/v2beta1/dialogflow-gen.go +++ b/dialogflow/v2beta1/dialogflow-gen.go @@ -12457,7 +12457,7 @@ func (s *GoogleCloudDialogflowV2beta1BatchCreateEntitiesRequest) MarshalJSON() ( // GoogleCloudDialogflowV2beta1BatchCreateMessagesRequest: The request // message for Conversations.BatchCreateMessagesRequest. type GoogleCloudDialogflowV2beta1BatchCreateMessagesRequest struct { - // Requests: Required. A maximum of 1000 Messages can be created in a + // Requests: Required. A maximum of 300 messages can be created in a // batch. CreateMessageRequest.message.send_time is required. All // created messages will have identical Message.create_time. Requests []*GoogleCloudDialogflowV2beta1CreateMessageRequest `json:"requests,omitempty"` @@ -15462,9 +15462,9 @@ type GoogleCloudDialogflowV2beta1ImportDocumentsRequest struct { // the documents. DocumentTemplate *GoogleCloudDialogflowV2beta1ImportDocumentTemplate `json:"documentTemplate,omitempty"` - // GcsSource: The Google Cloud Storage location for the documents. The - // path can include a wildcard. These URIs may have the forms `gs:///`. - // `gs:////*.`. + // GcsSource: Optional. The Google Cloud Storage location for the + // documents. The path can include a wildcard. These URIs may have the + // forms `gs:///`. `gs:////*.`. GcsSource *GoogleCloudDialogflowV2beta1GcsSources `json:"gcsSource,omitempty"` // ImportGcsCustomMetadata: Whether to import custom metadata from @@ -20722,6 +20722,10 @@ type GoogleCloudDialogflowV2beta1SuggestionResult struct { // request is for DIALOGFLOW_ASSIST. SuggestDialogflowAssistsResponse *GoogleCloudDialogflowV2beta1SuggestDialogflowAssistsResponse `json:"suggestDialogflowAssistsResponse,omitempty"` + // SuggestEntityExtractionResponse: SuggestDialogflowAssistsResponse if + // request is for ENTITY_EXTRACTION. + SuggestEntityExtractionResponse *GoogleCloudDialogflowV2beta1SuggestDialogflowAssistsResponse `json:"suggestEntityExtractionResponse,omitempty"` + // SuggestFaqAnswersResponse: SuggestFaqAnswersResponse if request is // for FAQ_ANSWER. SuggestFaqAnswersResponse *GoogleCloudDialogflowV2beta1SuggestFaqAnswersResponse `json:"suggestFaqAnswersResponse,omitempty"` diff --git a/dialogflow/v3/dialogflow-api.json b/dialogflow/v3/dialogflow-api.json index df28804fc6a..48e3d5e8888 100644 --- a/dialogflow/v3/dialogflow-api.json +++ b/dialogflow/v3/dialogflow-api.json @@ -3820,7 +3820,7 @@ } } }, - "revision": "20230605", + "revision": "20230612", "rootUrl": "https://dialogflow.googleapis.com/", "schemas": { "GoogleCloudDialogflowCxV3AdvancedSettings": { @@ -14368,6 +14368,10 @@ "$ref": "GoogleCloudDialogflowV2beta1SuggestDialogflowAssistsResponse", "description": "SuggestDialogflowAssistsResponse if request is for DIALOGFLOW_ASSIST." }, + "suggestEntityExtractionResponse": { + "$ref": "GoogleCloudDialogflowV2beta1SuggestDialogflowAssistsResponse", + "description": "SuggestDialogflowAssistsResponse if request is for ENTITY_EXTRACTION." + }, "suggestFaqAnswersResponse": { "$ref": "GoogleCloudDialogflowV2beta1SuggestFaqAnswersResponse", "description": "SuggestFaqAnswersResponse if request is for FAQ_ANSWER." diff --git a/dialogflow/v3/dialogflow-gen.go b/dialogflow/v3/dialogflow-gen.go index 6615a090c24..8e263046ac5 100644 --- a/dialogflow/v3/dialogflow-gen.go +++ b/dialogflow/v3/dialogflow-gen.go @@ -19304,6 +19304,10 @@ type GoogleCloudDialogflowV2beta1SuggestionResult struct { // request is for DIALOGFLOW_ASSIST. SuggestDialogflowAssistsResponse *GoogleCloudDialogflowV2beta1SuggestDialogflowAssistsResponse `json:"suggestDialogflowAssistsResponse,omitempty"` + // SuggestEntityExtractionResponse: SuggestDialogflowAssistsResponse if + // request is for ENTITY_EXTRACTION. + SuggestEntityExtractionResponse *GoogleCloudDialogflowV2beta1SuggestDialogflowAssistsResponse `json:"suggestEntityExtractionResponse,omitempty"` + // SuggestFaqAnswersResponse: SuggestFaqAnswersResponse if request is // for FAQ_ANSWER. SuggestFaqAnswersResponse *GoogleCloudDialogflowV2beta1SuggestFaqAnswersResponse `json:"suggestFaqAnswersResponse,omitempty"` diff --git a/dialogflow/v3beta1/dialogflow-api.json b/dialogflow/v3beta1/dialogflow-api.json index 18da4c1a211..cf0b6d9c3dc 100644 --- a/dialogflow/v3beta1/dialogflow-api.json +++ b/dialogflow/v3beta1/dialogflow-api.json @@ -3820,7 +3820,7 @@ } } }, - "revision": "20230605", + "revision": "20230612", "rootUrl": "https://dialogflow.googleapis.com/", "schemas": { "GoogleCloudDialogflowCxV3AudioInput": { @@ -14368,6 +14368,10 @@ "$ref": "GoogleCloudDialogflowV2beta1SuggestDialogflowAssistsResponse", "description": "SuggestDialogflowAssistsResponse if request is for DIALOGFLOW_ASSIST." }, + "suggestEntityExtractionResponse": { + "$ref": "GoogleCloudDialogflowV2beta1SuggestDialogflowAssistsResponse", + "description": "SuggestDialogflowAssistsResponse if request is for ENTITY_EXTRACTION." + }, "suggestFaqAnswersResponse": { "$ref": "GoogleCloudDialogflowV2beta1SuggestFaqAnswersResponse", "description": "SuggestFaqAnswersResponse if request is for FAQ_ANSWER." diff --git a/dialogflow/v3beta1/dialogflow-gen.go b/dialogflow/v3beta1/dialogflow-gen.go index 17160971405..8641a37265b 100644 --- a/dialogflow/v3beta1/dialogflow-gen.go +++ b/dialogflow/v3beta1/dialogflow-gen.go @@ -19311,6 +19311,10 @@ type GoogleCloudDialogflowV2beta1SuggestionResult struct { // request is for DIALOGFLOW_ASSIST. SuggestDialogflowAssistsResponse *GoogleCloudDialogflowV2beta1SuggestDialogflowAssistsResponse `json:"suggestDialogflowAssistsResponse,omitempty"` + // SuggestEntityExtractionResponse: SuggestDialogflowAssistsResponse if + // request is for ENTITY_EXTRACTION. + SuggestEntityExtractionResponse *GoogleCloudDialogflowV2beta1SuggestDialogflowAssistsResponse `json:"suggestEntityExtractionResponse,omitempty"` + // SuggestFaqAnswersResponse: SuggestFaqAnswersResponse if request is // for FAQ_ANSWER. SuggestFaqAnswersResponse *GoogleCloudDialogflowV2beta1SuggestFaqAnswersResponse `json:"suggestFaqAnswersResponse,omitempty"` diff --git a/gkebackup/v1/gkebackup-api.json b/gkebackup/v1/gkebackup-api.json index 6c361110242..f904d92c252 100644 --- a/gkebackup/v1/gkebackup-api.json +++ b/gkebackup/v1/gkebackup-api.json @@ -1688,7 +1688,7 @@ } } }, - "revision": "20230503", + "revision": "20230609", "rootUrl": "https://gkebackup.googleapis.com/", "schemas": { "AuditConfig": { @@ -1996,6 +1996,34 @@ "$ref": "RetentionPolicy", "description": "RetentionPolicy governs lifecycle of Backups created under this plan." }, + "state": { + "description": "Output only. State of the BackupPlan. This State field reflects the various stages a BackupPlan can be in during the Create operation. It will be set to \"DEACTIVATED\" if the BackupPlan is deactivated on an Update", + "enum": [ + "STATE_UNSPECIFIED", + "CLUSTER_PENDING", + "PROVISIONING", + "READY", + "FAILED", + "DEACTIVATED", + "DELETING" + ], + "enumDescriptions": [ + "Default first value for Enums.", + "Waiting for cluster state to be RUNNING.", + "The BackupPlan is in the process of being created.", + "The BackupPlan has successfully been created and is ready for Backups.", + "BackupPlan creation has failed.", + "The BackupPlan has been deactivated.", + "The BackupPlan is in the process of being deleted." + ], + "readOnly": true, + "type": "string" + }, + "stateReason": { + "description": "Output only. Human-readable description of why BackupPlan is in the current `state`", + "readOnly": true, + "type": "string" + }, "uid": { "description": "Output only. Server generated global unique identifier of [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier) format.", "readOnly": true, @@ -2066,6 +2094,21 @@ "description": "Defines the scope of cluster-scoped resources to restore. Some group kinds are not reasonable choices for a restore, and will cause an error if selected here. Any scope selection that would restore \"all valid\" resources automatically excludes these group kinds. - gkebackup.gke.io/BackupJob - gkebackup.gke.io/RestoreJob - metrics.k8s.io/NodeMetrics - migration.k8s.io/StorageState - migration.k8s.io/StorageVersionMigration - Node - snapshot.storage.k8s.io/VolumeSnapshotContent - storage.k8s.io/CSINode Some group kinds are driven by restore configuration elsewhere, and will cause an error if selected here. - Namespace - PersistentVolume", "id": "ClusterResourceRestoreScope", "properties": { + "allGroupKinds": { + "description": "If True, all valid cluster-scoped resources will be restored. Mutually exclusive to any other field in the message.", + "type": "boolean" + }, + "excludedGroupKinds": { + "description": "A list of cluster-scoped resource group kinds to NOT restore from the backup. If specified, all valid cluster-scoped resources will be restored except for those specified in the list. Mutually exclusive to any other field in the message.", + "items": { + "$ref": "GroupKind" + }, + "type": "array" + }, + "noGroupKinds": { + "description": "If True, no cluster-scoped resources will be restored. This has the same restore scope as if the message is not defined. Mutually exclusive to any other field in the message.", + "type": "boolean" + }, "selectedGroupKinds": { "description": "A list of cluster-scoped resource group kinds to restore from the backup. If specified, only the selected resources will be restored. Mutually exclusive to any other field in the message.", "items": { @@ -2516,6 +2559,31 @@ }, "type": "object" }, + "ResourceFilter": { + "description": "ResourceFilter specifies matching criteria to limit the scope of a change to a specific set of kubernetes resources that are selected for restoration from a backup.", + "id": "ResourceFilter", + "properties": { + "groupKinds": { + "description": "(Filtering parameter) Any resource subject to transformation must belong to one of the listed \"types\". If this field is not provided, no type filtering will be performed (all resources of all types matching previous filtering parameters will be candidates for transformation).", + "items": { + "$ref": "GroupKind" + }, + "type": "array" + }, + "jsonPath": { + "description": "This is a [JSONPath] (https://github.com/json-path/JsonPath/blob/master/README.md) expression that matches specific fields of candidate resources and it operates as a filtering parameter (resources that are not matched with this expression will not be candidates for transformation).", + "type": "string" + }, + "namespaces": { + "description": "(Filtering parameter) Any resource subject to transformation must be contained within one of the listed Kubernetes Namespace in the Backup. If this field is not provided, no namespace filtering will be performed (all resources in all Namespaces, including all cluster-scoped resources, will be candidates for transformation). To mix cluster-scoped and namespaced resources in the same rule, use an empty string (\"\") as one of the target namespaces.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, "Restore": { "description": "Represents both a request to Restore some portion of a Backup into a target GKE cluster and a record of the restore operation itself. Next id: 18", "id": "Restore", @@ -2649,7 +2717,7 @@ "enumDescriptions": [ "Unspecified. Only allowed if no cluster-scoped resources will be restored.", "Do not attempt to restore the conflicting resource.", - "Delete the existing version before re-creating it from the Backup. Note that this is a dangerous option which could cause unintentional data loss if used inappropriately - for example, deleting a CRD will cause Kubernetes to delete all CRs of that type." + "Delete the existing version before re-creating it from the Backup. This is a dangerous option which could cause unintentional data loss if used inappropriately. For example, deleting a CRD will cause Kubernetes to delete all CRs of that type." ], "type": "string" }, @@ -2657,6 +2725,10 @@ "$ref": "ClusterResourceRestoreScope", "description": "Identifies the cluster-scoped resources to restore from the Backup. Not specifying it means NO cluster resource will be restored." }, + "excludedNamespaces": { + "$ref": "Namespaces", + "description": "A list of selected namespaces excluded from restoration. All namespaces except those in this list will be restored." + }, "namespacedResourceRestoreMode": { "description": "Defines the behavior for handling the situation where sets of namespaced resources being restored already exist in the target cluster. This MUST be set to a value other than NAMESPACED_RESOURCE_RESTORE_MODE_UNSPECIFIED.", "enum": [ @@ -2671,6 +2743,10 @@ ], "type": "string" }, + "noNamespaces": { + "description": "Do not restore any namespaced resources if set to \"True\". Specifying this field to \"False\" is not allowed.", + "type": "boolean" + }, "selectedApplications": { "$ref": "NamespacedNames", "description": "A list of selected ProtectedApplications to restore. The listed ProtectedApplications and all the resources to which they refer will be restored." @@ -2686,6 +2762,13 @@ }, "type": "array" }, + "transformationRules": { + "description": "A list of transformation rules to be applied against Kubernetes resources as they are selected for restoration from a Backup. Rules are executed in order defined - this order matters, as changes made by a rule may impact the filtering logic of subsequent rules. An empty list means no transformation will occur.", + "items": { + "$ref": "TransformationRule" + }, + "type": "array" + }, "volumeDataRestorePolicy": { "description": "Specifies the mechanism to be used to restore volume data. Default: VOLUME_DATA_RESTORE_POLICY_UNSPECIFIED (will be treated as NO_VOLUME_DATA_RESTORATION).", "enum": [ @@ -2696,9 +2779,9 @@ ], "enumDescriptions": [ "Unspecified (illegal).", - "For each PVC to be restored, will create a new underlying volume (and PV) from the corresponding VolumeBackup contained within the Backup.", - "For each PVC to be restored, attempt to reuse the original PV contained in the Backup (with its original underlying volume). Note that option is likely only usable when restoring a workload to its original cluster.", - "For each PVC to be restored, PVCs will be created without any particular action to restore data. In this case, the normal Kubernetes provisioning logic would kick in, and this would likely result in either dynamically provisioning blank PVs or binding to statically provisioned PVs." + "For each PVC to be restored, create a new underlying volume and PV from the corresponding VolumeBackup contained within the Backup.", + "For each PVC to be restored, attempt to reuse the original PV contained in the Backup (with its original underlying volume). This option is likely only usable when restoring a workload to its original cluster.", + "For each PVC to be restored, create PVC without any particular action to restore data. In this case, the normal Kubernetes provisioning logic would kick in, and this would likely result in either dynamically provisioning blank PVs or binding to statically provisioned PVs." ], "type": "string" } @@ -2748,6 +2831,30 @@ "$ref": "RestoreConfig", "description": "Required. Configuration of Restores created via this RestorePlan." }, + "state": { + "description": "Output only. State of the RestorePlan. This State field reflects the various stages a RestorePlan can be in during the Create operation.", + "enum": [ + "STATE_UNSPECIFIED", + "CLUSTER_PENDING", + "READY", + "FAILED", + "DELETING" + ], + "enumDescriptions": [ + "Default first value for Enums.", + "Waiting for cluster state to be RUNNING.", + "The RestorePlan has successfully been created and is ready for Restores.", + "RestorePlan creation has failed.", + "The RestorePlan is in the process of being deleted." + ], + "readOnly": true, + "type": "string" + }, + "stateReason": { + "description": "Output only. Human-readable description of why RestorePlan is in the current `state`", + "readOnly": true, + "type": "string" + }, "uid": { "description": "Output only. Server generated global unique identifier of [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier) format.", "readOnly": true, @@ -2784,11 +2891,11 @@ "type": "object" }, "Schedule": { - "description": "Schedule defines scheduling parameters for automatically creating Backups via this BackupPlan.", + "description": "Defines scheduling parameters for automatically creating Backups via this BackupPlan.", "id": "Schedule", "properties": { "cronSchedule": { - "description": "A standard [cron](https://wikipedia.com/wiki/cron) string that defines a repeating schedule for creating Backups via this BackupPlan. If this is defined, then backup_retain_days must also be defined. Default (empty): no automatic backup creation will occur.", + "description": "A standard [cron](https://wikipedia.com/wiki/cron) string that defines a repeating schedule for creating Backups via this BackupPlan. This is mutually exclusive with the rpo_config field since at most one schedule can be defined for a BackupPlan. If this is defined, then backup_retain_days must also be defined. Default (empty): no automatic backup creation will occur.", "type": "string" }, "paused": { @@ -2875,6 +2982,69 @@ }, "type": "object" }, + "TransformationRule": { + "description": "A transformation rule to be applied against Kubernetes resources as they are selected for restoration from a Backup. A rule contains both filtering logic (which resources are subject to transform) and transformation logic.", + "id": "TransformationRule", + "properties": { + "description": { + "description": "The description is a user specified string description of the transformation rule.", + "type": "string" + }, + "fieldActions": { + "description": "Required. A list of transformation rule actions to take against candidate resources. Actions are executed in order defined - this order matters, as they could potentially interfere with each other and the first operation could affect the outcome of the second operation.", + "items": { + "$ref": "TransformationRuleAction" + }, + "type": "array" + }, + "resourceFilter": { + "$ref": "ResourceFilter", + "description": "This field is used to specify a set of fields that should be used to determine which resources in backup should be acted upon by the supplied transformation rule actions, and this will ensure that only specific resources are affected by transformation rule actions." + } + }, + "type": "object" + }, + "TransformationRuleAction": { + "description": "TransformationRuleAction defines a TransformationRule action based on the JSON Patch RFC (https://www.rfc-editor.org/rfc/rfc6902)", + "id": "TransformationRuleAction", + "properties": { + "fromPath": { + "description": "A string containing a JSON Pointer value that references the location in the target document to move the value from.", + "type": "string" + }, + "op": { + "description": "Required. op specifies the operation to perform.", + "enum": [ + "OP_UNSPECIFIED", + "REMOVE", + "MOVE", + "COPY", + "ADD", + "TEST", + "REPLACE" + ], + "enumDescriptions": [ + "Unspecified operation", + "The \"remove\" operation removes the value at the target location.", + "The \"move\" operation removes the value at a specified location and adds it to the target location.", + "The \"copy\" operation copies the value at a specified location to the target location.", + "The \"add\" operation performs one of the following functions, depending upon what the target location references: 1. If the target location specifies an array index, a new value is inserted into the array at the specified index. 2. If the target location specifies an object member that does not already exist, a new member is added to the object. 3. If the target location specifies an object member that does exist, that member's value is replaced.", + "The \"test\" operation tests that a value at the target location is equal to a specified value.", + "The \"replace\" operation replaces the value at the target location with a new value. The operation object MUST contain a \"value\" member whose content specifies the replacement value." + ], + "type": "string" + }, + "path": { + "description": "A string containing a JSON-Pointer value that references a location within the target document where the operation is performed.", + "type": "string" + }, + "value": { + "description": "A string that specifies the desired value in string format to use for transformation.", + "type": "string" + } + }, + "type": "object" + }, "VolumeBackup": { "description": "Represents the backup of a specific persistent volume as a component of a Backup - both the record of the operation and a pointer to the underlying storage-specific artifacts. Next id: 14", "id": "VolumeBackup", diff --git a/gkebackup/v1/gkebackup-gen.go b/gkebackup/v1/gkebackup-gen.go index 39f874c60ef..1465b620995 100644 --- a/gkebackup/v1/gkebackup-gen.go +++ b/gkebackup/v1/gkebackup-gen.go @@ -621,6 +621,26 @@ type BackupPlan struct { // under this plan. RetentionPolicy *RetentionPolicy `json:"retentionPolicy,omitempty"` + // State: Output only. State of the BackupPlan. This State field + // reflects the various stages a BackupPlan can be in during the Create + // operation. It will be set to "DEACTIVATED" if the BackupPlan is + // deactivated on an Update + // + // Possible values: + // "STATE_UNSPECIFIED" - Default first value for Enums. + // "CLUSTER_PENDING" - Waiting for cluster state to be RUNNING. + // "PROVISIONING" - The BackupPlan is in the process of being created. + // "READY" - The BackupPlan has successfully been created and is ready + // for Backups. + // "FAILED" - BackupPlan creation has failed. + // "DEACTIVATED" - The BackupPlan has been deactivated. + // "DELETING" - The BackupPlan is in the process of being deleted. + State string `json:"state,omitempty"` + + // StateReason: Output only. Human-readable description of why + // BackupPlan is in the current `state` + StateReason string `json:"stateReason,omitempty"` + // Uid: Output only. Server generated global unique identifier of UUID // (https://en.wikipedia.org/wiki/Universally_unique_identifier) format. Uid string `json:"uid,omitempty"` @@ -792,27 +812,41 @@ func (s *ClusterMetadata) MarshalJSON() ([]byte, error) { // configuration elsewhere, and will cause an error if selected here. - // Namespace - PersistentVolume type ClusterResourceRestoreScope struct { + // AllGroupKinds: If True, all valid cluster-scoped resources will be + // restored. Mutually exclusive to any other field in the message. + AllGroupKinds bool `json:"allGroupKinds,omitempty"` + + // ExcludedGroupKinds: A list of cluster-scoped resource group kinds to + // NOT restore from the backup. If specified, all valid cluster-scoped + // resources will be restored except for those specified in the list. + // Mutually exclusive to any other field in the message. + ExcludedGroupKinds []*GroupKind `json:"excludedGroupKinds,omitempty"` + + // NoGroupKinds: If True, no cluster-scoped resources will be restored. + // This has the same restore scope as if the message is not defined. + // Mutually exclusive to any other field in the message. + NoGroupKinds bool `json:"noGroupKinds,omitempty"` + // SelectedGroupKinds: A list of cluster-scoped resource group kinds to // restore from the backup. If specified, only the selected resources // will be restored. Mutually exclusive to any other field in the // message. SelectedGroupKinds []*GroupKind `json:"selectedGroupKinds,omitempty"` - // ForceSendFields is a list of field names (e.g. "SelectedGroupKinds") - // to unconditionally include in API requests. By default, fields with + // ForceSendFields is a list of field names (e.g. "AllGroupKinds") 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. "SelectedGroupKinds") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "AllGroupKinds") 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:"-"` } @@ -1684,6 +1718,57 @@ func (s *Policy) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// ResourceFilter: ResourceFilter specifies matching criteria to limit +// the scope of a change to a specific set of kubernetes resources that +// are selected for restoration from a backup. +type ResourceFilter struct { + // GroupKinds: (Filtering parameter) Any resource subject to + // transformation must belong to one of the listed "types". If this + // field is not provided, no type filtering will be performed (all + // resources of all types matching previous filtering parameters will be + // candidates for transformation). + GroupKinds []*GroupKind `json:"groupKinds,omitempty"` + + // JsonPath: This is a [JSONPath] + // (https://github.com/json-path/JsonPath/blob/master/README.md) + // expression that matches specific fields of candidate resources and it + // operates as a filtering parameter (resources that are not matched + // with this expression will not be candidates for transformation). + JsonPath string `json:"jsonPath,omitempty"` + + // Namespaces: (Filtering parameter) Any resource subject to + // transformation must be contained within one of the listed Kubernetes + // Namespace in the Backup. If this field is not provided, no namespace + // filtering will be performed (all resources in all Namespaces, + // including all cluster-scoped resources, will be candidates for + // transformation). To mix cluster-scoped and namespaced resources in + // the same rule, use an empty string ("") as one of the target + // namespaces. + Namespaces []string `json:"namespaces,omitempty"` + + // ForceSendFields is a list of field names (e.g. "GroupKinds") 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. "GroupKinds") 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 *ResourceFilter) MarshalJSON() ([]byte, error) { + type NoMethod ResourceFilter + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // Restore: Represents both a request to Restore some portion of a // Backup into a target GKE cluster and a record of the restore // operation itself. Next id: 18 @@ -1823,10 +1908,10 @@ type RestoreConfig struct { // "USE_EXISTING_VERSION" - Do not attempt to restore the conflicting // resource. // "USE_BACKUP_VERSION" - Delete the existing version before - // re-creating it from the Backup. Note that this is a dangerous option - // which could cause unintentional data loss if used inappropriately - - // for example, deleting a CRD will cause Kubernetes to delete all CRs - // of that type. + // re-creating it from the Backup. This is a dangerous option which + // could cause unintentional data loss if used inappropriately. For + // example, deleting a CRD will cause Kubernetes to delete all CRs of + // that type. ClusterResourceConflictPolicy string `json:"clusterResourceConflictPolicy,omitempty"` // ClusterResourceRestoreScope: Identifies the cluster-scoped resources @@ -1834,6 +1919,11 @@ type RestoreConfig struct { // resource will be restored. ClusterResourceRestoreScope *ClusterResourceRestoreScope `json:"clusterResourceRestoreScope,omitempty"` + // ExcludedNamespaces: A list of selected namespaces excluded from + // restoration. All namespaces except those in this list will be + // restored. + ExcludedNamespaces *Namespaces `json:"excludedNamespaces,omitempty"` + // NamespacedResourceRestoreMode: Defines the behavior for handling the // situation where sets of namespaced resources being restored already // exist in the target cluster. This MUST be set to a value other than @@ -1858,6 +1948,10 @@ type RestoreConfig struct { // conflict will be reported. NamespacedResourceRestoreMode string `json:"namespacedResourceRestoreMode,omitempty"` + // NoNamespaces: Do not restore any namespaced resources if set to + // "True". Specifying this field to "False" is not allowed. + NoNamespaces bool `json:"noNamespaces,omitempty"` + // SelectedApplications: A list of selected ProtectedApplications to // restore. The listed ProtectedApplications and all the resources to // which they refer will be restored. @@ -1875,6 +1969,13 @@ type RestoreConfig struct { // subsequent rules. An empty list means no substitution will occur. SubstitutionRules []*SubstitutionRule `json:"substitutionRules,omitempty"` + // TransformationRules: A list of transformation rules to be applied + // against Kubernetes resources as they are selected for restoration + // from a Backup. Rules are executed in order defined - this order + // matters, as changes made by a rule may impact the filtering logic of + // subsequent rules. An empty list means no transformation will occur. + TransformationRules []*TransformationRule `json:"transformationRules,omitempty"` + // VolumeDataRestorePolicy: Specifies the mechanism to be used to // restore volume data. Default: VOLUME_DATA_RESTORE_POLICY_UNSPECIFIED // (will be treated as NO_VOLUME_DATA_RESTORATION). @@ -1882,17 +1983,17 @@ type RestoreConfig struct { // Possible values: // "VOLUME_DATA_RESTORE_POLICY_UNSPECIFIED" - Unspecified (illegal). // "RESTORE_VOLUME_DATA_FROM_BACKUP" - For each PVC to be restored, - // will create a new underlying volume (and PV) from the corresponding + // create a new underlying volume and PV from the corresponding // VolumeBackup contained within the Backup. // "REUSE_VOLUME_HANDLE_FROM_BACKUP" - For each PVC to be restored, // attempt to reuse the original PV contained in the Backup (with its - // original underlying volume). Note that option is likely only usable - // when restoring a workload to its original cluster. - // "NO_VOLUME_DATA_RESTORATION" - For each PVC to be restored, PVCs - // will be created without any particular action to restore data. In - // this case, the normal Kubernetes provisioning logic would kick in, - // and this would likely result in either dynamically provisioning blank - // PVs or binding to statically provisioned PVs. + // original underlying volume). This option is likely only usable when + // restoring a workload to its original cluster. + // "NO_VOLUME_DATA_RESTORATION" - For each PVC to be restored, create + // PVC without any particular action to restore data. In this case, the + // normal Kubernetes provisioning logic would kick in, and this would + // likely result in either dynamically provisioning blank PVs or binding + // to statically provisioned PVs. VolumeDataRestorePolicy string `json:"volumeDataRestorePolicy,omitempty"` // ForceSendFields is a list of field names (e.g. "AllNamespaces") to @@ -1962,6 +2063,23 @@ type RestorePlan struct { // RestorePlan. RestoreConfig *RestoreConfig `json:"restoreConfig,omitempty"` + // State: Output only. State of the RestorePlan. This State field + // reflects the various stages a RestorePlan can be in during the Create + // operation. + // + // Possible values: + // "STATE_UNSPECIFIED" - Default first value for Enums. + // "CLUSTER_PENDING" - Waiting for cluster state to be RUNNING. + // "READY" - The RestorePlan has successfully been created and is + // ready for Restores. + // "FAILED" - RestorePlan creation has failed. + // "DELETING" - The RestorePlan is in the process of being deleted. + State string `json:"state,omitempty"` + + // StateReason: Output only. Human-readable description of why + // RestorePlan is in the current `state` + StateReason string `json:"stateReason,omitempty"` + // Uid: Output only. Server generated global unique identifier of UUID // (https://en.wikipedia.org/wiki/Universally_unique_identifier) format. Uid string `json:"uid,omitempty"` @@ -2053,14 +2171,15 @@ func (s *RetentionPolicy) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// Schedule: Schedule defines scheduling parameters for automatically -// creating Backups via this BackupPlan. +// Schedule: Defines scheduling parameters for automatically creating +// Backups via this BackupPlan. type Schedule struct { // CronSchedule: A standard cron (https://wikipedia.com/wiki/cron) // string that defines a repeating schedule for creating Backups via - // this BackupPlan. If this is defined, then backup_retain_days must - // also be defined. Default (empty): no automatic backup creation will - // occur. + // this BackupPlan. This is mutually exclusive with the rpo_config field + // since at most one schedule can be defined for a BackupPlan. If this + // is defined, then backup_retain_days must also be defined. Default + // (empty): no automatic backup creation will occur. CronSchedule string `json:"cronSchedule,omitempty"` // Paused: This flag denotes whether automatic Backup creation is paused @@ -2263,6 +2382,115 @@ func (s *TestIamPermissionsResponse) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// TransformationRule: A transformation rule to be applied against +// Kubernetes resources as they are selected for restoration from a +// Backup. A rule contains both filtering logic (which resources are +// subject to transform) and transformation logic. +type TransformationRule struct { + // Description: The description is a user specified string description + // of the transformation rule. + Description string `json:"description,omitempty"` + + // FieldActions: Required. A list of transformation rule actions to take + // against candidate resources. Actions are executed in order defined - + // this order matters, as they could potentially interfere with each + // other and the first operation could affect the outcome of the second + // operation. + FieldActions []*TransformationRuleAction `json:"fieldActions,omitempty"` + + // ResourceFilter: This field is used to specify a set of fields that + // should be used to determine which resources in backup should be acted + // upon by the supplied transformation rule actions, and this will + // ensure that only specific resources are affected by transformation + // rule actions. + ResourceFilter *ResourceFilter `json:"resourceFilter,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 *TransformationRule) MarshalJSON() ([]byte, error) { + type NoMethod TransformationRule + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// TransformationRuleAction: TransformationRuleAction defines a +// TransformationRule action based on the JSON Patch RFC +// (https://www.rfc-editor.org/rfc/rfc6902) +type TransformationRuleAction struct { + // FromPath: A string containing a JSON Pointer value that references + // the location in the target document to move the value from. + FromPath string `json:"fromPath,omitempty"` + + // Op: Required. op specifies the operation to perform. + // + // Possible values: + // "OP_UNSPECIFIED" - Unspecified operation + // "REMOVE" - The "remove" operation removes the value at the target + // location. + // "MOVE" - The "move" operation removes the value at a specified + // location and adds it to the target location. + // "COPY" - The "copy" operation copies the value at a specified + // location to the target location. + // "ADD" - The "add" operation performs one of the following + // functions, depending upon what the target location references: 1. If + // the target location specifies an array index, a new value is inserted + // into the array at the specified index. 2. If the target location + // specifies an object member that does not already exist, a new member + // is added to the object. 3. If the target location specifies an object + // member that does exist, that member's value is replaced. + // "TEST" - The "test" operation tests that a value at the target + // location is equal to a specified value. + // "REPLACE" - The "replace" operation replaces the value at the + // target location with a new value. The operation object MUST contain a + // "value" member whose content specifies the replacement value. + Op string `json:"op,omitempty"` + + // Path: A string containing a JSON-Pointer value that references a + // location within the target document where the operation is performed. + Path string `json:"path,omitempty"` + + // Value: A string that specifies the desired value in string format to + // use for transformation. + Value string `json:"value,omitempty"` + + // ForceSendFields is a list of field names (e.g. "FromPath") 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. "FromPath") 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 *TransformationRuleAction) MarshalJSON() ([]byte, error) { + type NoMethod TransformationRuleAction + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // VolumeBackup: Represents the backup of a specific persistent volume // as a component of a Backup - both the record of the operation and a // pointer to the underlying storage-specific artifacts. Next id: 14 diff --git a/gkehub/v1/gkehub-api.json b/gkehub/v1/gkehub-api.json index c7fda81570a..2efc9061da0 100644 --- a/gkehub/v1/gkehub-api.json +++ b/gkehub/v1/gkehub-api.json @@ -105,6 +105,54 @@ }, "protocol": "rest", "resources": { + "organizations": { + "resources": { + "locations": { + "resources": { + "fleets": { + "methods": { + "list": { + "description": "Returns all fleets within an organization or a project that the caller has access to.", + "flatPath": "v1/organizations/{organizationsId}/locations/{locationsId}/fleets", + "httpMethod": "GET", + "id": "gkehub.organizations.locations.fleets.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "pageSize": { + "description": "Optional. The maximum number of fleets to return. The service may return fewer than this value. If unspecified, at most 200 fleets will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "Optional. A page token, received from a previous `ListFleets` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListFleets` must match the call that provided the page token.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The organization or project to list for Fleets under, in the format `organizations/*/locations/*` or `projects/*/locations/*`.", + "location": "path", + "pattern": "^organizations/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/fleets", + "response": { + "$ref": "ListFleetsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + } + } + } + } + }, "projects": { "resources": { "locations": { @@ -451,6 +499,158 @@ } } }, + "fleets": { + "methods": { + "create": { + "description": "Creates a fleet.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/fleets", + "httpMethod": "POST", + "id": "gkehub.projects.locations.fleets.create", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "Required. The parent (project and location) where the Fleet will be created. Specified in the format `projects/*/locations/*`.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/fleets", + "request": { + "$ref": "Fleet" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "delete": { + "description": "Removes a Fleet. There must be no memberships remaining in the Fleet.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/fleets/{fleetsId}", + "httpMethod": "DELETE", + "id": "gkehub.projects.locations.fleets.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The Fleet resource name in the format `projects/*/locations/*/fleets/*`.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/fleets/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "get": { + "description": "Returns the details of a fleet.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/fleets/{fleetsId}", + "httpMethod": "GET", + "id": "gkehub.projects.locations.fleets.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The Fleet resource name in the format `projects/*/locations/*/fleets/*`.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/fleets/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "Fleet" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Returns all fleets within an organization or a project that the caller has access to.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/fleets", + "httpMethod": "GET", + "id": "gkehub.projects.locations.fleets.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "pageSize": { + "description": "Optional. The maximum number of fleets to return. The service may return fewer than this value. If unspecified, at most 200 fleets will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "Optional. A page token, received from a previous `ListFleets` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListFleets` must match the call that provided the page token.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The organization or project to list for Fleets under, in the format `organizations/*/locations/*` or `projects/*/locations/*`.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/fleets", + "response": { + "$ref": "ListFleetsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "patch": { + "description": "Updates a fleet.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/fleets/{fleetsId}", + "httpMethod": "PATCH", + "id": "gkehub.projects.locations.fleets.patch", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Output only. The full, unique resource name of this fleet in the format of `projects/{project}/locations/{location}/fleets/{fleet}`. Each Google Cloud project can have at most one fleet resource, named \"default\".", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/fleets/[^/]+$", + "required": true, + "type": "string" + }, + "updateMask": { + "description": "Required. The fields to be updated;", + "format": "google-fieldmask", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+name}", + "request": { + "$ref": "Fleet" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + }, "memberships": { "methods": { "create": { @@ -1221,6 +1421,40 @@ "https://www.googleapis.com/auth/cloud-platform" ] }, + "patch": { + "description": "Updates a scopes.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/scopes/{scopesId}", + "httpMethod": "PATCH", + "id": "gkehub.projects.locations.scopes.patch", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The resource name for the scope `projects/{project}/locations/{location}/scopes/{scope}`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/scopes/[^/]+$", + "required": true, + "type": "string" + }, + "updateMask": { + "description": "Required. The fields to be updated.", + "format": "google-fieldmask", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+name}", + "request": { + "$ref": "Scope" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, "setIamPolicy": { "description": "Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.", "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/scopes/{scopesId}:setIamPolicy", @@ -1284,7 +1518,7 @@ } } }, - "revision": "20230606", + "revision": "20230609", "rootUrl": "https://gkehub.googleapis.com/", "schemas": { "AppDevExperienceFeatureSpec": { @@ -2102,6 +2336,12 @@ "templateLibraryInstalled": { "description": "Installs the default template library along with Policy Controller.", "type": "boolean" + }, + "updateTime": { + "description": "Output only. Last time this membership spec was updated.", + "format": "google-datetime", + "readOnly": true, + "type": "string" } }, "type": "object" @@ -2110,6 +2350,11 @@ "description": "State for the migration of PolicyController from ACM -\u003e PoCo Hub.", "id": "ConfigManagementPolicyControllerMigration", "properties": { + "copyTime": { + "description": "Last time this membership spec was copied to PoCo feature.", + "format": "google-datetime", + "type": "string" + }, "stage": { "description": "Stage of the migration.", "enum": [ @@ -2461,6 +2706,76 @@ }, "type": "object" }, + "Fleet": { + "description": "Fleet contains the Fleet-wide metadata and configuration.", + "id": "Fleet", + "properties": { + "createTime": { + "description": "Output only. When the Fleet was created.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "deleteTime": { + "description": "Output only. When the Fleet was deleted.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "displayName": { + "description": "Optional. A user-assigned display name of the Fleet. When present, it must be between 4 to 30 characters. Allowed characters are: lowercase and uppercase letters, numbers, hyphen, single-quote, double-quote, space, and exclamation point. Example: `Production Fleet`", + "type": "string" + }, + "name": { + "description": "Output only. The full, unique resource name of this fleet in the format of `projects/{project}/locations/{location}/fleets/{fleet}`. Each Google Cloud project can have at most one fleet resource, named \"default\".", + "readOnly": true, + "type": "string" + }, + "state": { + "$ref": "FleetLifecycleState", + "description": "Output only. State of the namespace resource.", + "readOnly": true + }, + "uid": { + "description": "Output only. Google-generated UUID for this resource. This is unique across all Fleet resources. If a Fleet resource is deleted and another resource with the same name is created, it gets a different uid.", + "readOnly": true, + "type": "string" + }, + "updateTime": { + "description": "Output only. When the Fleet was last updated.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, + "FleetLifecycleState": { + "description": "FleetLifecycleState describes the state of a Fleet resource.", + "id": "FleetLifecycleState", + "properties": { + "code": { + "description": "Output only. The current state of the Fleet resource.", + "enum": [ + "CODE_UNSPECIFIED", + "CREATING", + "READY", + "DELETING", + "UPDATING" + ], + "enumDescriptions": [ + "The code is not set.", + "The fleet is being created.", + "The fleet active.", + "The fleet is being deleted.", + "The fleet is being updated." + ], + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, "FleetObservabilityFeatureSpec": { "description": "**Fleet Observability**: The Hub-wide input for the FleetObservability feature.", "id": "FleetObservabilityFeatureSpec", @@ -2811,6 +3126,24 @@ }, "type": "object" }, + "ListFleetsResponse": { + "description": "Response message for the `GkeHub.ListFleetsResponse` method.", + "id": "ListFleetsResponse", + "properties": { + "fleets": { + "description": "The list of matching fleets.", + "items": { + "$ref": "Fleet" + }, + "type": "array" + }, + "nextPageToken": { + "description": "A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. The token is only valid for 1h.", + "type": "string" + } + }, + "type": "object" + }, "ListLocationsResponse": { "description": "The response message for Locations.ListLocations.", "id": "ListLocationsResponse", diff --git a/gkehub/v1/gkehub-gen.go b/gkehub/v1/gkehub-gen.go index 86bfe3cf1f9..e7600e78bb4 100644 --- a/gkehub/v1/gkehub-gen.go +++ b/gkehub/v1/gkehub-gen.go @@ -119,6 +119,7 @@ func New(client *http.Client) (*Service, error) { return nil, errors.New("client is nil") } s := &Service{client: client, BasePath: basePath} + s.Organizations = NewOrganizationsService(s) s.Projects = NewProjectsService(s) return s, nil } @@ -128,6 +129,8 @@ type Service struct { BasePath string // API endpoint base URL UserAgent string // optional additional User-Agent fragment + Organizations *OrganizationsService + Projects *ProjectsService } @@ -138,6 +141,39 @@ func (s *Service) userAgent() string { return googleapi.UserAgent + " " + s.UserAgent } +func NewOrganizationsService(s *Service) *OrganizationsService { + rs := &OrganizationsService{s: s} + rs.Locations = NewOrganizationsLocationsService(s) + return rs +} + +type OrganizationsService struct { + s *Service + + Locations *OrganizationsLocationsService +} + +func NewOrganizationsLocationsService(s *Service) *OrganizationsLocationsService { + rs := &OrganizationsLocationsService{s: s} + rs.Fleets = NewOrganizationsLocationsFleetsService(s) + return rs +} + +type OrganizationsLocationsService struct { + s *Service + + Fleets *OrganizationsLocationsFleetsService +} + +func NewOrganizationsLocationsFleetsService(s *Service) *OrganizationsLocationsFleetsService { + rs := &OrganizationsLocationsFleetsService{s: s} + return rs +} + +type OrganizationsLocationsFleetsService struct { + s *Service +} + func NewProjectsService(s *Service) *ProjectsService { rs := &ProjectsService{s: s} rs.Locations = NewProjectsLocationsService(s) @@ -153,6 +189,7 @@ type ProjectsService struct { func NewProjectsLocationsService(s *Service) *ProjectsLocationsService { rs := &ProjectsLocationsService{s: s} rs.Features = NewProjectsLocationsFeaturesService(s) + rs.Fleets = NewProjectsLocationsFleetsService(s) rs.Memberships = NewProjectsLocationsMembershipsService(s) rs.Operations = NewProjectsLocationsOperationsService(s) rs.Scopes = NewProjectsLocationsScopesService(s) @@ -164,6 +201,8 @@ type ProjectsLocationsService struct { Features *ProjectsLocationsFeaturesService + Fleets *ProjectsLocationsFleetsService + Memberships *ProjectsLocationsMembershipsService Operations *ProjectsLocationsOperationsService @@ -180,6 +219,15 @@ type ProjectsLocationsFeaturesService struct { s *Service } +func NewProjectsLocationsFleetsService(s *Service) *ProjectsLocationsFleetsService { + rs := &ProjectsLocationsFleetsService{s: s} + return rs +} + +type ProjectsLocationsFleetsService struct { + s *Service +} + func NewProjectsLocationsMembershipsService(s *Service) *ProjectsLocationsMembershipsService { rs := &ProjectsLocationsMembershipsService{s: s} rs.Bindings = NewProjectsLocationsMembershipsBindingsService(s) @@ -1515,6 +1563,9 @@ type ConfigManagementPolicyController struct { // with Policy Controller. TemplateLibraryInstalled bool `json:"templateLibraryInstalled,omitempty"` + // UpdateTime: Output only. Last time this membership spec was updated. + UpdateTime string `json:"updateTime,omitempty"` + // ForceSendFields is a list of field names (e.g. // "AuditIntervalSeconds") to unconditionally include in API requests. // By default, fields with empty or default values are omitted from API @@ -1543,6 +1594,9 @@ func (s *ConfigManagementPolicyController) MarshalJSON() ([]byte, error) { // ConfigManagementPolicyControllerMigration: State for the migration of // PolicyController from ACM -> PoCo Hub. type ConfigManagementPolicyControllerMigration struct { + // CopyTime: Last time this membership spec was copied to PoCo feature. + CopyTime string `json:"copyTime,omitempty"` + // Stage: Stage of the migration. // // Possible values: @@ -1553,7 +1607,7 @@ type ConfigManagementPolicyControllerMigration struct { // manages policycontroller. Stage string `json:"stage,omitempty"` - // ForceSendFields is a list of field names (e.g. "Stage") to + // ForceSendFields is a list of field names (e.g. "CopyTime") 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 @@ -1561,8 +1615,8 @@ type ConfigManagementPolicyControllerMigration struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Stage") to include in API - // requests with the JSON null value. By default, fields with empty + // NullFields is a list of field names (e.g. "CopyTime") 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. @@ -2115,6 +2169,102 @@ func (s *FeatureState) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// Fleet: Fleet contains the Fleet-wide metadata and configuration. +type Fleet struct { + // CreateTime: Output only. When the Fleet was created. + CreateTime string `json:"createTime,omitempty"` + + // DeleteTime: Output only. When the Fleet was deleted. + DeleteTime string `json:"deleteTime,omitempty"` + + // DisplayName: Optional. A user-assigned display name of the Fleet. + // When present, it must be between 4 to 30 characters. Allowed + // characters are: lowercase and uppercase letters, numbers, hyphen, + // single-quote, double-quote, space, and exclamation point. Example: + // `Production Fleet` + DisplayName string `json:"displayName,omitempty"` + + // Name: Output only. The full, unique resource name of this fleet in + // the format of + // `projects/{project}/locations/{location}/fleets/{fleet}`. Each Google + // Cloud project can have at most one fleet resource, named "default". + Name string `json:"name,omitempty"` + + // State: Output only. State of the namespace resource. + State *FleetLifecycleState `json:"state,omitempty"` + + // Uid: Output only. Google-generated UUID for this resource. This is + // unique across all Fleet resources. If a Fleet resource is deleted and + // another resource with the same name is created, it gets a different + // uid. + Uid string `json:"uid,omitempty"` + + // UpdateTime: Output only. When the Fleet was last updated. + UpdateTime string `json:"updateTime,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "CreateTime") 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. "CreateTime") 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 *Fleet) MarshalJSON() ([]byte, error) { + type NoMethod Fleet + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// FleetLifecycleState: FleetLifecycleState describes the state of a +// Fleet resource. +type FleetLifecycleState struct { + // Code: Output only. The current state of the Fleet resource. + // + // Possible values: + // "CODE_UNSPECIFIED" - The code is not set. + // "CREATING" - The fleet is being created. + // "READY" - The fleet active. + // "DELETING" - The fleet is being deleted. + // "UPDATING" - The fleet is being updated. + Code string `json:"code,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 *FleetLifecycleState) MarshalJSON() ([]byte, error) { + type NoMethod FleetLifecycleState + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // FleetObservabilityFeatureSpec: **Fleet Observability**: The Hub-wide // input for the FleetObservability feature. type FleetObservabilityFeatureSpec struct { @@ -2669,6 +2819,44 @@ func (s *ListFeaturesResponse) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// ListFleetsResponse: Response message for the +// `GkeHub.ListFleetsResponse` method. +type ListFleetsResponse struct { + // Fleets: The list of matching fleets. + Fleets []*Fleet `json:"fleets,omitempty"` + + // NextPageToken: A token, which can be sent as `page_token` to retrieve + // the next page. If this field is omitted, there are no subsequent + // pages. The token is only valid for 1h. + 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. "Fleets") 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. "Fleets") 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 *ListFleetsResponse) MarshalJSON() ([]byte, error) { + type NoMethod ListFleetsResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // ListLocationsResponse: The response message for // Locations.ListLocations. type ListLocationsResponse struct { @@ -4290,30 +4478,51 @@ func (s *TypeMeta) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// method id "gkehub.projects.locations.get": +// method id "gkehub.organizations.locations.fleets.list": -type ProjectsLocationsGetCall struct { +type OrganizationsLocationsFleetsListCall struct { s *Service - name string + parent string urlParams_ gensupport.URLParams ifNoneMatch_ string ctx_ context.Context header_ http.Header } -// Get: Gets information about a location. +// List: Returns all fleets within an organization or a project that the +// caller has access to. // -// - name: Resource name for the location. -func (r *ProjectsLocationsService) Get(name string) *ProjectsLocationsGetCall { - c := &ProjectsLocationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name +// - parent: The organization or project to list for Fleets under, in +// the format `organizations/*/locations/*` or +// `projects/*/locations/*`. +func (r *OrganizationsLocationsFleetsService) List(parent string) *OrganizationsLocationsFleetsListCall { + c := &OrganizationsLocationsFleetsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// PageSize sets the optional parameter "pageSize": The maximum number +// of fleets to return. The service may return fewer than this value. If +// unspecified, at most 200 fleets will be returned. The maximum value +// is 1000; values above 1000 will be coerced to 1000. +func (c *OrganizationsLocationsFleetsListCall) PageSize(pageSize int64) *OrganizationsLocationsFleetsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": A page token, +// received from a previous `ListFleets` call. Provide this to retrieve +// the subsequent page. When paginating, all other parameters provided +// to `ListFleets` must match the call that provided the page token. +func (c *OrganizationsLocationsFleetsListCall) PageToken(pageToken string) *OrganizationsLocationsFleetsListCall { + 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 *ProjectsLocationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsGetCall { +func (c *OrganizationsLocationsFleetsListCall) Fields(s ...googleapi.Field) *OrganizationsLocationsFleetsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -4323,7 +4532,7 @@ func (c *ProjectsLocationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocatio // getting updates only after the object has changed since the last // request. Use googleapi.IsNotModified to check whether the response // error from Do is the result of In-None-Match. -func (c *ProjectsLocationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsGetCall { +func (c *OrganizationsLocationsFleetsListCall) IfNoneMatch(entityTag string) *OrganizationsLocationsFleetsListCall { c.ifNoneMatch_ = entityTag return c } @@ -4331,21 +4540,21 @@ func (c *ProjectsLocationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocati // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ProjectsLocationsGetCall) Context(ctx context.Context) *ProjectsLocationsGetCall { +func (c *OrganizationsLocationsFleetsListCall) Context(ctx context.Context) *OrganizationsLocationsFleetsListCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *ProjectsLocationsGetCall) Header() http.Header { +func (c *OrganizationsLocationsFleetsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) { +func (c *OrganizationsLocationsFleetsListCall) 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_ { @@ -4358,7 +4567,7 @@ func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/fleets") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -4366,19 +4575,19 @@ func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "name": c.name, + "parent": c.parent, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "gkehub.projects.locations.get" call. -// Exactly one of *Location or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Location.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. -func (c *ProjectsLocationsGetCall) Do(opts ...googleapi.CallOption) (*Location, error) { +// Do executes the "gkehub.organizations.locations.fleets.list" call. +// Exactly one of *ListFleetsResponse or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *ListFleetsResponse.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 *OrganizationsLocationsFleetsListCall) Do(opts ...googleapi.CallOption) (*ListFleetsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -4397,7 +4606,7 @@ func (c *ProjectsLocationsGetCall) Do(opts ...googleapi.CallOption) (*Location, if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &Location{ + ret := &ListFleetsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -4409,25 +4618,36 @@ func (c *ProjectsLocationsGetCall) Do(opts ...googleapi.CallOption) (*Location, } return ret, nil // { - // "description": "Gets information about a location.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}", + // "description": "Returns all fleets within an organization or a project that the caller has access to.", + // "flatPath": "v1/organizations/{organizationsId}/locations/{locationsId}/fleets", // "httpMethod": "GET", - // "id": "gkehub.projects.locations.get", + // "id": "gkehub.organizations.locations.fleets.list", // "parameterOrder": [ - // "name" + // "parent" // ], // "parameters": { - // "name": { - // "description": "Resource name for the location.", + // "pageSize": { + // "description": "Optional. The maximum number of fleets to return. The service may return fewer than this value. If unspecified, at most 200 fleets will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "Optional. A page token, received from a previous `ListFleets` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListFleets` must match the call that provided the page token.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "Required. The organization or project to list for Fleets under, in the format `organizations/*/locations/*` or `projects/*/locations/*`.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+$", + // "pattern": "^organizations/[^/]+/locations/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1/{+name}", + // "path": "v1/{+parent}/fleets", // "response": { - // "$ref": "Location" + // "$ref": "ListFleetsResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -4436,9 +4656,30 @@ func (c *ProjectsLocationsGetCall) Do(opts ...googleapi.CallOption) (*Location, } -// method id "gkehub.projects.locations.list": +// 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 *OrganizationsLocationsFleetsListCall) Pages(ctx context.Context, f func(*ListFleetsResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} -type ProjectsLocationsListCall struct { +// method id "gkehub.projects.locations.get": + +type ProjectsLocationsGetCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -4447,45 +4688,19 @@ type ProjectsLocationsListCall struct { header_ http.Header } -// List: Lists information about the supported locations for this -// service. +// Get: Gets information about a location. // -// - name: The resource that owns the locations collection, if -// applicable. -func (r *ProjectsLocationsService) List(name string) *ProjectsLocationsListCall { - c := &ProjectsLocationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: Resource name for the location. +func (r *ProjectsLocationsService) Get(name string) *ProjectsLocationsGetCall { + c := &ProjectsLocationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } -// Filter sets the optional parameter "filter": A filter to narrow down -// results to a preferred subset. The filtering language accepts strings -// like "displayName=tokyo", and is documented in more detail in -// AIP-160 (https://google.aip.dev/160). -func (c *ProjectsLocationsListCall) Filter(filter string) *ProjectsLocationsListCall { - c.urlParams_.Set("filter", filter) - return c -} - -// PageSize sets the optional parameter "pageSize": The maximum number -// of results to return. If not set, the service selects a default. -func (c *ProjectsLocationsListCall) PageSize(pageSize int64) *ProjectsLocationsListCall { - c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) - return c -} - -// PageToken sets the optional parameter "pageToken": A page token -// received from the `next_page_token` field in the response. Send that -// page token to receive the subsequent page. -func (c *ProjectsLocationsListCall) PageToken(pageToken string) *ProjectsLocationsListCall { - c.urlParams_.Set("pageToken", pageToken) - return c -} - // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsListCall { +func (c *ProjectsLocationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -4495,7 +4710,7 @@ func (c *ProjectsLocationsListCall) Fields(s ...googleapi.Field) *ProjectsLocati // getting updates only after the object has changed since the last // request. Use googleapi.IsNotModified to check whether the response // error from Do is the result of In-None-Match. -func (c *ProjectsLocationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsListCall { +func (c *ProjectsLocationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsGetCall { c.ifNoneMatch_ = entityTag return c } @@ -4503,21 +4718,21 @@ func (c *ProjectsLocationsListCall) IfNoneMatch(entityTag string) *ProjectsLocat // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ProjectsLocationsListCall) Context(ctx context.Context) *ProjectsLocationsListCall { +func (c *ProjectsLocationsGetCall) Context(ctx context.Context) *ProjectsLocationsGetCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *ProjectsLocationsListCall) Header() http.Header { +func (c *ProjectsLocationsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { @@ -4530,7 +4745,179 @@ func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/locations") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "gkehub.projects.locations.get" call. +// Exactly one of *Location or error will be non-nil. Any non-2xx status +// code is an error. Response headers are in either +// *Location.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified +// to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsGetCall) Do(opts ...googleapi.CallOption) (*Location, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &Location{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Gets information about a location.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}", + // "httpMethod": "GET", + // "id": "gkehub.projects.locations.get", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Resource name for the location.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}", + // "response": { + // "$ref": "Location" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "gkehub.projects.locations.list": + +type ProjectsLocationsListCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists information about the supported locations for this +// service. +// +// - name: The resource that owns the locations collection, if +// applicable. +func (r *ProjectsLocationsService) List(name string) *ProjectsLocationsListCall { + c := &ProjectsLocationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Filter sets the optional parameter "filter": A filter to narrow down +// results to a preferred subset. The filtering language accepts strings +// like "displayName=tokyo", and is documented in more detail in +// AIP-160 (https://google.aip.dev/160). +func (c *ProjectsLocationsListCall) Filter(filter string) *ProjectsLocationsListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// PageSize sets the optional parameter "pageSize": The maximum number +// of results to return. If not set, the service selects a default. +func (c *ProjectsLocationsListCall) PageSize(pageSize int64) *ProjectsLocationsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": A page token +// received from the `next_page_token` field in the response. Send that +// page token to receive the subsequent page. +func (c *ProjectsLocationsListCall) PageToken(pageToken string) *ProjectsLocationsListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsListCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsListCall) Context(ctx context.Context) *ProjectsLocationsListCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/locations") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -5844,17 +6231,769 @@ func (c *ProjectsLocationsFeaturesSetIamPolicyCall) Do(opts ...googleapi.CallOpt // "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/[^/]+/locations/[^/]+/features/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/features/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+resource}:setIamPolicy", + // "request": { + // "$ref": "SetIamPolicyRequest" + // }, + // "response": { + // "$ref": "Policy" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "gkehub.projects.locations.features.testIamPermissions": + +type ProjectsLocationsFeaturesTestIamPermissionsCall struct { + s *Service + resource string + testiampermissionsrequest *TestIamPermissionsRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// TestIamPermissions: Returns permissions that a caller has on the +// specified resource. If the resource does not exist, this will return +// an empty set of permissions, not a `NOT_FOUND` error. Note: This +// operation is designed to be used for building permission-aware UIs +// and command-line tools, not for authorization checking. This +// operation may "fail open" without warning. +// +// - 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 *ProjectsLocationsFeaturesService) TestIamPermissions(resource string, testiampermissionsrequest *TestIamPermissionsRequest) *ProjectsLocationsFeaturesTestIamPermissionsCall { + c := &ProjectsLocationsFeaturesTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.resource = resource + c.testiampermissionsrequest = testiampermissionsrequest + 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 *ProjectsLocationsFeaturesTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeaturesTestIamPermissionsCall { + 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 *ProjectsLocationsFeaturesTestIamPermissionsCall) Context(ctx context.Context) *ProjectsLocationsFeaturesTestIamPermissionsCall { + 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 *ProjectsLocationsFeaturesTestIamPermissionsCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsFeaturesTestIamPermissionsCall) 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.testiampermissionsrequest) + 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/{+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 "gkehub.projects.locations.features.testIamPermissions" call. +// Exactly one of *TestIamPermissionsResponse or error will be non-nil. +// Any non-2xx status code is an error. Response headers are in either +// *TestIamPermissionsResponse.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 *ProjectsLocationsFeaturesTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestIamPermissionsResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &TestIamPermissionsResponse{ + 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 permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a `NOT_FOUND` error. Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may \"fail open\" without warning.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/features/{featuresId}:testIamPermissions", + // "httpMethod": "POST", + // "id": "gkehub.projects.locations.features.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/[^/]+/locations/[^/]+/features/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+resource}:testIamPermissions", + // "request": { + // "$ref": "TestIamPermissionsRequest" + // }, + // "response": { + // "$ref": "TestIamPermissionsResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "gkehub.projects.locations.fleets.create": + +type ProjectsLocationsFleetsCreateCall struct { + s *Service + parent string + fleet *Fleet + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Create: Creates a fleet. +// +// - parent: The parent (project and location) where the Fleet will be +// created. Specified in the format `projects/*/locations/*`. +func (r *ProjectsLocationsFleetsService) Create(parent string, fleet *Fleet) *ProjectsLocationsFleetsCreateCall { + c := &ProjectsLocationsFleetsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.fleet = fleet + 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 *ProjectsLocationsFleetsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsFleetsCreateCall { + 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 *ProjectsLocationsFleetsCreateCall) Context(ctx context.Context) *ProjectsLocationsFleetsCreateCall { + 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 *ProjectsLocationsFleetsCreateCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsFleetsCreateCall) 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.fleet) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/fleets") + 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 "gkehub.projects.locations.fleets.create" call. +// Exactly one of *Operation or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified +// to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsFleetsCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &Operation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Creates a fleet.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/fleets", + // "httpMethod": "POST", + // "id": "gkehub.projects.locations.fleets.create", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "parent": { + // "description": "Required. The parent (project and location) where the Fleet will be created. Specified in the format `projects/*/locations/*`.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+parent}/fleets", + // "request": { + // "$ref": "Fleet" + // }, + // "response": { + // "$ref": "Operation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "gkehub.projects.locations.fleets.delete": + +type ProjectsLocationsFleetsDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Delete: Removes a Fleet. There must be no memberships remaining in +// the Fleet. +// +// - name: The Fleet resource name in the format +// `projects/*/locations/*/fleets/*`. +func (r *ProjectsLocationsFleetsService) Delete(name string) *ProjectsLocationsFleetsDeleteCall { + c := &ProjectsLocationsFleetsDeleteCall{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 *ProjectsLocationsFleetsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsFleetsDeleteCall { + 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 *ProjectsLocationsFleetsDeleteCall) Context(ctx context.Context) *ProjectsLocationsFleetsDeleteCall { + 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 *ProjectsLocationsFleetsDeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsFleetsDeleteCall) 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, "v1/{+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 "gkehub.projects.locations.fleets.delete" call. +// Exactly one of *Operation or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified +// to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsFleetsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &Operation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Removes a Fleet. There must be no memberships remaining in the Fleet.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/fleets/{fleetsId}", + // "httpMethod": "DELETE", + // "id": "gkehub.projects.locations.fleets.delete", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The Fleet resource name in the format `projects/*/locations/*/fleets/*`.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/fleets/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}", + // "response": { + // "$ref": "Operation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "gkehub.projects.locations.fleets.get": + +type ProjectsLocationsFleetsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Returns the details of a fleet. +// +// - name: The Fleet resource name in the format +// `projects/*/locations/*/fleets/*`. +func (r *ProjectsLocationsFleetsService) Get(name string) *ProjectsLocationsFleetsGetCall { + c := &ProjectsLocationsFleetsGetCall{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 *ProjectsLocationsFleetsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsFleetsGetCall { + 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 *ProjectsLocationsFleetsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsFleetsGetCall { + 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 *ProjectsLocationsFleetsGetCall) Context(ctx context.Context) *ProjectsLocationsFleetsGetCall { + 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 *ProjectsLocationsFleetsGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsFleetsGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "gkehub.projects.locations.fleets.get" call. +// Exactly one of *Fleet or error will be non-nil. Any non-2xx status +// code is an error. Response headers are in either +// *Fleet.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 *ProjectsLocationsFleetsGetCall) Do(opts ...googleapi.CallOption) (*Fleet, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &Fleet{ + 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 details of a fleet.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/fleets/{fleetsId}", + // "httpMethod": "GET", + // "id": "gkehub.projects.locations.fleets.get", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The Fleet resource name in the format `projects/*/locations/*/fleets/*`.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/fleets/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}", + // "response": { + // "$ref": "Fleet" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "gkehub.projects.locations.fleets.list": + +type ProjectsLocationsFleetsListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Returns all fleets within an organization or a project that the +// caller has access to. +// +// - parent: The organization or project to list for Fleets under, in +// the format `organizations/*/locations/*` or +// `projects/*/locations/*`. +func (r *ProjectsLocationsFleetsService) List(parent string) *ProjectsLocationsFleetsListCall { + c := &ProjectsLocationsFleetsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// PageSize sets the optional parameter "pageSize": The maximum number +// of fleets to return. The service may return fewer than this value. If +// unspecified, at most 200 fleets will be returned. The maximum value +// is 1000; values above 1000 will be coerced to 1000. +func (c *ProjectsLocationsFleetsListCall) PageSize(pageSize int64) *ProjectsLocationsFleetsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": A page token, +// received from a previous `ListFleets` call. Provide this to retrieve +// the subsequent page. When paginating, all other parameters provided +// to `ListFleets` must match the call that provided the page token. +func (c *ProjectsLocationsFleetsListCall) PageToken(pageToken string) *ProjectsLocationsFleetsListCall { + 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 *ProjectsLocationsFleetsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsFleetsListCall { + 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 *ProjectsLocationsFleetsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsFleetsListCall { + 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 *ProjectsLocationsFleetsListCall) Context(ctx context.Context) *ProjectsLocationsFleetsListCall { + 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 *ProjectsLocationsFleetsListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsFleetsListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/fleets") + 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 "gkehub.projects.locations.fleets.list" call. +// Exactly one of *ListFleetsResponse or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *ListFleetsResponse.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 *ProjectsLocationsFleetsListCall) Do(opts ...googleapi.CallOption) (*ListFleetsResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &ListFleetsResponse{ + 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 all fleets within an organization or a project that the caller has access to.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/fleets", + // "httpMethod": "GET", + // "id": "gkehub.projects.locations.fleets.list", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "pageSize": { + // "description": "Optional. The maximum number of fleets to return. The service may return fewer than this value. If unspecified, at most 200 fleets will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "Optional. A page token, received from a previous `ListFleets` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListFleets` must match the call that provided the page token.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "Required. The organization or project to list for Fleets under, in the format `organizations/*/locations/*` or `projects/*/locations/*`.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1/{+resource}:setIamPolicy", - // "request": { - // "$ref": "SetIamPolicyRequest" - // }, + // "path": "v1/{+parent}/fleets", // "response": { - // "$ref": "Policy" + // "$ref": "ListFleetsResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -5863,39 +7002,63 @@ func (c *ProjectsLocationsFeaturesSetIamPolicyCall) Do(opts ...googleapi.CallOpt } -// method id "gkehub.projects.locations.features.testIamPermissions": +// 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 *ProjectsLocationsFleetsListCall) Pages(ctx context.Context, f func(*ListFleetsResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} -type ProjectsLocationsFeaturesTestIamPermissionsCall struct { - s *Service - resource string - testiampermissionsrequest *TestIamPermissionsRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +// method id "gkehub.projects.locations.fleets.patch": + +type ProjectsLocationsFleetsPatchCall struct { + s *Service + name string + fleet *Fleet + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// TestIamPermissions: Returns permissions that a caller has on the -// specified resource. If the resource does not exist, this will return -// an empty set of permissions, not a `NOT_FOUND` error. Note: This -// operation is designed to be used for building permission-aware UIs -// and command-line tools, not for authorization checking. This -// operation may "fail open" without warning. +// Patch: Updates a fleet. // -// - 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 *ProjectsLocationsFeaturesService) TestIamPermissions(resource string, testiampermissionsrequest *TestIamPermissionsRequest) *ProjectsLocationsFeaturesTestIamPermissionsCall { - c := &ProjectsLocationsFeaturesTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.resource = resource - c.testiampermissionsrequest = testiampermissionsrequest +// - name: Output only. The full, unique resource name of this fleet in +// the format of +// `projects/{project}/locations/{location}/fleets/{fleet}`. Each +// Google Cloud project can have at most one fleet resource, named +// "default". +func (r *ProjectsLocationsFleetsService) Patch(name string, fleet *Fleet) *ProjectsLocationsFleetsPatchCall { + c := &ProjectsLocationsFleetsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.fleet = fleet + return c +} + +// UpdateMask sets the optional parameter "updateMask": Required. The +// fields to be updated; +func (c *ProjectsLocationsFleetsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsFleetsPatchCall { + 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 *ProjectsLocationsFeaturesTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeaturesTestIamPermissionsCall { +func (c *ProjectsLocationsFleetsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsFleetsPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -5903,21 +7066,21 @@ func (c *ProjectsLocationsFeaturesTestIamPermissionsCall) Fields(s ...googleapi. // 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 *ProjectsLocationsFeaturesTestIamPermissionsCall) Context(ctx context.Context) *ProjectsLocationsFeaturesTestIamPermissionsCall { +func (c *ProjectsLocationsFleetsPatchCall) Context(ctx context.Context) *ProjectsLocationsFleetsPatchCall { 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 *ProjectsLocationsFeaturesTestIamPermissionsCall) Header() http.Header { +func (c *ProjectsLocationsFleetsPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsFeaturesTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsFleetsPatchCall) 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_ { @@ -5925,34 +7088,34 @@ func (c *ProjectsLocationsFeaturesTestIamPermissionsCall) doRequest(alt string) } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.testiampermissionsrequest) + body, err := googleapi.WithoutDataWrapper.JSONReader(c.fleet) 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/{+resource}:testIamPermissions") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("PATCH", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "resource": c.resource, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "gkehub.projects.locations.features.testIamPermissions" call. -// Exactly one of *TestIamPermissionsResponse or error will be non-nil. -// Any non-2xx status code is an error. Response headers are in either -// *TestIamPermissionsResponse.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 *ProjectsLocationsFeaturesTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestIamPermissionsResponse, error) { +// Do executes the "gkehub.projects.locations.fleets.patch" call. +// Exactly one of *Operation or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified +// to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsFleetsPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -5971,7 +7134,7 @@ func (c *ProjectsLocationsFeaturesTestIamPermissionsCall) Do(opts ...googleapi.C if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &TestIamPermissionsResponse{ + ret := &Operation{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -5983,28 +7146,34 @@ func (c *ProjectsLocationsFeaturesTestIamPermissionsCall) Do(opts ...googleapi.C } return ret, nil // { - // "description": "Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a `NOT_FOUND` error. Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may \"fail open\" without warning.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/features/{featuresId}:testIamPermissions", - // "httpMethod": "POST", - // "id": "gkehub.projects.locations.features.testIamPermissions", + // "description": "Updates a fleet.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/fleets/{fleetsId}", + // "httpMethod": "PATCH", + // "id": "gkehub.projects.locations.fleets.patch", // "parameterOrder": [ - // "resource" + // "name" // ], // "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.", + // "name": { + // "description": "Output only. The full, unique resource name of this fleet in the format of `projects/{project}/locations/{location}/fleets/{fleet}`. Each Google Cloud project can have at most one fleet resource, named \"default\".", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/features/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/fleets/[^/]+$", // "required": true, // "type": "string" + // }, + // "updateMask": { + // "description": "Required. The fields to be updated;", + // "format": "google-fieldmask", + // "location": "query", + // "type": "string" // } // }, - // "path": "v1/{+resource}:testIamPermissions", + // "path": "v1/{+name}", // "request": { - // "$ref": "TestIamPermissionsRequest" + // "$ref": "Fleet" // }, // "response": { - // "$ref": "TestIamPermissionsResponse" + // "$ref": "Operation" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -9874,6 +11043,162 @@ func (c *ProjectsLocationsScopesListCall) Pages(ctx context.Context, f func(*Lis } } +// method id "gkehub.projects.locations.scopes.patch": + +type ProjectsLocationsScopesPatchCall struct { + s *Service + name string + scope *Scope + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Patch: Updates a scopes. +// +// - name: The resource name for the scope +// `projects/{project}/locations/{location}/scopes/{scope}`. +func (r *ProjectsLocationsScopesService) Patch(name string, scope *Scope) *ProjectsLocationsScopesPatchCall { + c := &ProjectsLocationsScopesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.scope = scope + return c +} + +// UpdateMask sets the optional parameter "updateMask": Required. The +// fields to be updated. +func (c *ProjectsLocationsScopesPatchCall) UpdateMask(updateMask string) *ProjectsLocationsScopesPatchCall { + 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 *ProjectsLocationsScopesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsScopesPatchCall { + 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 *ProjectsLocationsScopesPatchCall) Context(ctx context.Context) *ProjectsLocationsScopesPatchCall { + 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 *ProjectsLocationsScopesPatchCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsScopesPatchCall) 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.scope) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + 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 "gkehub.projects.locations.scopes.patch" call. +// Exactly one of *Operation or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified +// to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsScopesPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &Operation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Updates a scopes.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/scopes/{scopesId}", + // "httpMethod": "PATCH", + // "id": "gkehub.projects.locations.scopes.patch", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "The resource name for the scope `projects/{project}/locations/{location}/scopes/{scope}`", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/scopes/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "updateMask": { + // "description": "Required. The fields to be updated.", + // "format": "google-fieldmask", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1/{+name}", + // "request": { + // "$ref": "Scope" + // }, + // "response": { + // "$ref": "Operation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + // method id "gkehub.projects.locations.scopes.setIamPolicy": type ProjectsLocationsScopesSetIamPolicyCall struct { diff --git a/gkehub/v1alpha/gkehub-api.json b/gkehub/v1alpha/gkehub-api.json index 6a935b72fbe..5013be190bf 100644 --- a/gkehub/v1alpha/gkehub-api.json +++ b/gkehub/v1alpha/gkehub-api.json @@ -1908,7 +1908,7 @@ } } }, - "revision": "20230606", + "revision": "20230609", "rootUrl": "https://gkehub.googleapis.com/", "schemas": { "AnthosObservabilityFeatureSpec": { @@ -3127,6 +3127,12 @@ "templateLibraryInstalled": { "description": "Installs the default template library along with Policy Controller.", "type": "boolean" + }, + "updateTime": { + "description": "Output only. Last time this membership spec was updated.", + "format": "google-datetime", + "readOnly": true, + "type": "string" } }, "type": "object" @@ -3135,6 +3141,11 @@ "description": "State for the migration of PolicyController from ACM -\u003e PoCo Hub.", "id": "ConfigManagementPolicyControllerMigration", "properties": { + "copyTime": { + "description": "Last time this membership spec was copied to PoCo feature.", + "format": "google-datetime", + "type": "string" + }, "stage": { "description": "Stage of the migration.", "enum": [ @@ -5064,6 +5075,10 @@ "description": "The state of the any bundles included in the chosen version of the manifest", "type": "object" }, + "referentialSyncConfigState": { + "$ref": "PolicyControllerOnClusterState", + "description": "The state of the referential data sync configuration. This could represent the state of either the syncSet object(s) or the config object, depending on the version of PoCo configured by the user." + }, "templateLibraryState": { "$ref": "PolicyControllerOnClusterState", "description": "The state of the template library" diff --git a/gkehub/v1alpha/gkehub-gen.go b/gkehub/v1alpha/gkehub-gen.go index 47479552cb1..fd417431bf5 100644 --- a/gkehub/v1alpha/gkehub-gen.go +++ b/gkehub/v1alpha/gkehub-gen.go @@ -2320,6 +2320,9 @@ type ConfigManagementPolicyController struct { // with Policy Controller. TemplateLibraryInstalled bool `json:"templateLibraryInstalled,omitempty"` + // UpdateTime: Output only. Last time this membership spec was updated. + UpdateTime string `json:"updateTime,omitempty"` + // ForceSendFields is a list of field names (e.g. // "AuditIntervalSeconds") to unconditionally include in API requests. // By default, fields with empty or default values are omitted from API @@ -2348,6 +2351,9 @@ func (s *ConfigManagementPolicyController) MarshalJSON() ([]byte, error) { // ConfigManagementPolicyControllerMigration: State for the migration of // PolicyController from ACM -> PoCo Hub. type ConfigManagementPolicyControllerMigration struct { + // CopyTime: Last time this membership spec was copied to PoCo feature. + CopyTime string `json:"copyTime,omitempty"` + // Stage: Stage of the migration. // // Possible values: @@ -2358,7 +2364,7 @@ type ConfigManagementPolicyControllerMigration struct { // manages policycontroller. Stage string `json:"stage,omitempty"` - // ForceSendFields is a list of field names (e.g. "Stage") to + // ForceSendFields is a list of field names (e.g. "CopyTime") 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 @@ -2366,8 +2372,8 @@ type ConfigManagementPolicyControllerMigration struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Stage") to include in API - // requests with the JSON null value. By default, fields with empty + // NullFields is a list of field names (e.g. "CopyTime") 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. @@ -5488,6 +5494,12 @@ type PolicyControllerPolicyContentState struct { // version of the manifest BundleStates map[string]PolicyControllerOnClusterState `json:"bundleStates,omitempty"` + // ReferentialSyncConfigState: The state of the referential data sync + // configuration. This could represent the state of either the syncSet + // object(s) or the config object, depending on the version of PoCo + // configured by the user. + ReferentialSyncConfigState *PolicyControllerOnClusterState `json:"referentialSyncConfigState,omitempty"` + // TemplateLibraryState: The state of the template library TemplateLibraryState *PolicyControllerOnClusterState `json:"templateLibraryState,omitempty"` diff --git a/gkehub/v1beta/gkehub-api.json b/gkehub/v1beta/gkehub-api.json index d8df5522792..9dd35df068e 100644 --- a/gkehub/v1beta/gkehub-api.json +++ b/gkehub/v1beta/gkehub-api.json @@ -1594,7 +1594,7 @@ } } }, - "revision": "20230606", + "revision": "20230609", "rootUrl": "https://gkehub.googleapis.com/", "schemas": { "AnthosObservabilityFeatureSpec": { @@ -2471,6 +2471,12 @@ "templateLibraryInstalled": { "description": "Installs the default template library along with Policy Controller.", "type": "boolean" + }, + "updateTime": { + "description": "Output only. Last time this membership spec was updated.", + "format": "google-datetime", + "readOnly": true, + "type": "string" } }, "type": "object" @@ -2479,6 +2485,11 @@ "description": "State for the migration of PolicyController from ACM -\u003e PoCo Hub.", "id": "ConfigManagementPolicyControllerMigration", "properties": { + "copyTime": { + "description": "Last time this membership spec was copied to PoCo feature.", + "format": "google-datetime", + "type": "string" + }, "stage": { "description": "Stage of the migration.", "enum": [ @@ -3973,6 +3984,10 @@ "description": "The state of the any bundles included in the chosen version of the manifest", "type": "object" }, + "referentialSyncConfigState": { + "$ref": "PolicyControllerOnClusterState", + "description": "The state of the referential data sync configuration. This could represent the state of either the syncSet object(s) or the config object, depending on the version of PoCo configured by the user." + }, "templateLibraryState": { "$ref": "PolicyControllerOnClusterState", "description": "The state of the template library" diff --git a/gkehub/v1beta/gkehub-gen.go b/gkehub/v1beta/gkehub-gen.go index 6c3a54e9d7d..c837792351d 100644 --- a/gkehub/v1beta/gkehub-gen.go +++ b/gkehub/v1beta/gkehub-gen.go @@ -1697,6 +1697,9 @@ type ConfigManagementPolicyController struct { // with Policy Controller. TemplateLibraryInstalled bool `json:"templateLibraryInstalled,omitempty"` + // UpdateTime: Output only. Last time this membership spec was updated. + UpdateTime string `json:"updateTime,omitempty"` + // ForceSendFields is a list of field names (e.g. // "AuditIntervalSeconds") to unconditionally include in API requests. // By default, fields with empty or default values are omitted from API @@ -1725,6 +1728,9 @@ func (s *ConfigManagementPolicyController) MarshalJSON() ([]byte, error) { // ConfigManagementPolicyControllerMigration: State for the migration of // PolicyController from ACM -> PoCo Hub. type ConfigManagementPolicyControllerMigration struct { + // CopyTime: Last time this membership spec was copied to PoCo feature. + CopyTime string `json:"copyTime,omitempty"` + // Stage: Stage of the migration. // // Possible values: @@ -1735,7 +1741,7 @@ type ConfigManagementPolicyControllerMigration struct { // manages policycontroller. Stage string `json:"stage,omitempty"` - // ForceSendFields is a list of field names (e.g. "Stage") to + // ForceSendFields is a list of field names (e.g. "CopyTime") 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 @@ -1743,8 +1749,8 @@ type ConfigManagementPolicyControllerMigration struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Stage") to include in API - // requests with the JSON null value. By default, fields with empty + // NullFields is a list of field names (e.g. "CopyTime") 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. @@ -4137,6 +4143,12 @@ type PolicyControllerPolicyContentState struct { // version of the manifest BundleStates map[string]PolicyControllerOnClusterState `json:"bundleStates,omitempty"` + // ReferentialSyncConfigState: The state of the referential data sync + // configuration. This could represent the state of either the syncSet + // object(s) or the config object, depending on the version of PoCo + // configured by the user. + ReferentialSyncConfigState *PolicyControllerOnClusterState `json:"referentialSyncConfigState,omitempty"` + // TemplateLibraryState: The state of the template library TemplateLibraryState *PolicyControllerOnClusterState `json:"templateLibraryState,omitempty"` diff --git a/spanner/v1/spanner-api.json b/spanner/v1/spanner-api.json index 04e00a28b84..aecb4cfc6e8 100644 --- a/spanner/v1/spanner-api.json +++ b/spanner/v1/spanner-api.json @@ -2565,7 +2565,7 @@ } } }, - "revision": "20230508", + "revision": "20230614", "rootUrl": "https://spanner.googleapis.com/", "schemas": { "Backup": { @@ -3216,6 +3216,28 @@ }, "type": "object" }, + "DdlStatementActionInfo": { + "description": "Action information extracted from a DDL statement. This proto is used to display the brief info of the DDL statement for the operation UpdateDatabaseDdl.", + "id": "DdlStatementActionInfo", + "properties": { + "action": { + "description": "The action for the DDL statement, e.g. CREATE, ALTER, DROP, GRANT, etc. This field is a non-empty string.", + "type": "string" + }, + "entityNames": { + "description": "The entity name(s) being operated on the DDL statement. E.g. 1. For statement \"CREATE TABLE t1(...)\", `entity_names` = [\"t1\"]. 2. For statement \"GRANT ROLE r1, r2 ...\", `entity_names` = [\"r1\", \"r2\"]. 3. For statement \"ANALYZE\", `entity_names` = [].", + "items": { + "type": "string" + }, + "type": "array" + }, + "entityType": { + "description": "The entity type for the DDL statement, e.g. TABLE, INDEX, VIEW, etc. This field can be empty string for some DDL statement, e.g. for statement \"ANALYZE\", `entity_type` = \"\".", + "type": "string" + } + }, + "type": "object" + }, "Delete": { "description": "Arguments to delete operations.", "id": "Delete", @@ -5370,6 +5392,13 @@ "description": "Metadata type for the operation returned by UpdateDatabaseDdl.", "id": "UpdateDatabaseDdlMetadata", "properties": { + "actions": { + "description": "The brief action info for the DDL statements. `actions[i]` is the brief info for `statements[i]`.", + "items": { + "$ref": "DdlStatementActionInfo" + }, + "type": "array" + }, "commitTimestamps": { "description": "Reports the commit timestamps of all statements that have succeeded so far, where `commit_timestamps[i]` is the commit timestamp for the statement `statements[i]`.", "items": { @@ -5383,7 +5412,7 @@ "type": "string" }, "progress": { - "description": "The progress of the UpdateDatabaseDdl operations. Currently, only index creation statements will have a continuously updating progress. For non-index creation statements, `progress[i]` will have start time and end time populated with commit timestamp of operation, as well as a progress of 100% once the operation has completed. `progress[i]` is the operation progress for `statements[i]`.", + "description": "The progress of the UpdateDatabaseDdl operations. All DDL statements will have continuously updating progress, and `progress[i]` is the operation progress for `statements[i]`. Also, `progress[i]` will have start time and end time populated with commit timestamp of operation, as well as a progress of 100% once the operation has completed.", "items": { "$ref": "OperationProgress" }, diff --git a/spanner/v1/spanner-gen.go b/spanner/v1/spanner-gen.go index bff2542de67..e7a9cc4eccc 100644 --- a/spanner/v1/spanner-gen.go +++ b/spanner/v1/spanner-gen.go @@ -1532,6 +1532,48 @@ func (s *DatabaseRole) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// DdlStatementActionInfo: Action information extracted from a DDL +// statement. This proto is used to display the brief info of the DDL +// statement for the operation UpdateDatabaseDdl. +type DdlStatementActionInfo struct { + // Action: The action for the DDL statement, e.g. CREATE, ALTER, DROP, + // GRANT, etc. This field is a non-empty string. + Action string `json:"action,omitempty"` + + // EntityNames: The entity name(s) being operated on the DDL statement. + // E.g. 1. For statement "CREATE TABLE t1(...)", `entity_names` = + // ["t1"]. 2. For statement "GRANT ROLE r1, r2 ...", `entity_names` = + // ["r1", "r2"]. 3. For statement "ANALYZE", `entity_names` = []. + EntityNames []string `json:"entityNames,omitempty"` + + // EntityType: The entity type for the DDL statement, e.g. TABLE, INDEX, + // VIEW, etc. This field can be empty string for some DDL statement, + // e.g. for statement "ANALYZE", `entity_type` = "". + EntityType string `json:"entityType,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Action") 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. "Action") 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 *DdlStatementActionInfo) MarshalJSON() ([]byte, error) { + type NoMethod DdlStatementActionInfo + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // Delete: Arguments to delete operations. type Delete struct { // KeySet: Required. The primary keys of the rows within table to @@ -5774,6 +5816,10 @@ func (s *Type) MarshalJSON() ([]byte, error) { // UpdateDatabaseDdlMetadata: Metadata type for the operation returned // by UpdateDatabaseDdl. type UpdateDatabaseDdlMetadata struct { + // Actions: The brief action info for the DDL statements. `actions[i]` + // is the brief info for `statements[i]`. + Actions []*DdlStatementActionInfo `json:"actions,omitempty"` + // CommitTimestamps: Reports the commit timestamps of all statements // that have succeeded so far, where `commit_timestamps[i]` is the // commit timestamp for the statement `statements[i]`. @@ -5782,13 +5828,12 @@ type UpdateDatabaseDdlMetadata struct { // Database: The database being modified. Database string `json:"database,omitempty"` - // Progress: The progress of the UpdateDatabaseDdl operations. - // Currently, only index creation statements will have a continuously - // updating progress. For non-index creation statements, `progress[i]` - // will have start time and end time populated with commit timestamp of - // operation, as well as a progress of 100% once the operation has - // completed. `progress[i]` is the operation progress for - // `statements[i]`. + // Progress: The progress of the UpdateDatabaseDdl operations. All DDL + // statements will have continuously updating progress, and + // `progress[i]` is the operation progress for `statements[i]`. Also, + // `progress[i]` will have start time and end time populated with commit + // timestamp of operation, as well as a progress of 100% once the + // operation has completed. Progress []*OperationProgress `json:"progress,omitempty"` // Statements: For an update this list contains all the statements. For @@ -5801,7 +5846,7 @@ type UpdateDatabaseDdlMetadata struct { // again. Throttled bool `json:"throttled,omitempty"` - // ForceSendFields is a list of field names (e.g. "CommitTimestamps") to + // ForceSendFields is a list of field names (e.g. "Actions") 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 @@ -5809,13 +5854,12 @@ type UpdateDatabaseDdlMetadata struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "CommitTimestamps") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "Actions") 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:"-"` } diff --git a/transcoder/v1/transcoder-api.json b/transcoder/v1/transcoder-api.json index f9288e57eda..25b201bee32 100644 --- a/transcoder/v1/transcoder-api.json +++ b/transcoder/v1/transcoder-api.json @@ -385,7 +385,7 @@ } } }, - "revision": "20230426", + "revision": "20230607", "rootUrl": "https://transcoder.googleapis.com/", "schemas": { "AdBreak": { @@ -653,6 +653,27 @@ }, "type": "object" }, + "DashConfig": { + "description": "`DASH` manifest configuration.", + "id": "DashConfig", + "properties": { + "segmentReferenceScheme": { + "description": "The segment reference scheme for a `DASH` manifest. The default is `SEGMENT_LIST`", + "enum": [ + "SEGMENT_REFERENCE_SCHEME_UNSPECIFIED", + "SEGMENT_LIST", + "SEGMENT_TEMPLATE_NUMBER" + ], + "enumDescriptions": [ + "The segment reference scheme is not specified.", + "Lists the URLs of media files for each segment.", + "Lists each segment from a template with $Number$ variable." + ], + "type": "string" + } + }, + "type": "object" + }, "Deblock": { "description": "Deblock preprocessing configuration. **Note:** This configuration is not supported.", "id": "Deblock", @@ -1230,6 +1251,10 @@ "description": "Manifest configuration.", "id": "Manifest", "properties": { + "dash": { + "$ref": "DashConfig", + "description": "`DASH` manifest configuration." + }, "fileName": { "description": "The name of the generated file. The default is `manifest` with the extension suffix corresponding to the `Manifest.type`.", "type": "string" diff --git a/transcoder/v1/transcoder-gen.go b/transcoder/v1/transcoder-gen.go index d4d171bbe02..f07d7e9e244 100644 --- a/transcoder/v1/transcoder-gen.go +++ b/transcoder/v1/transcoder-gen.go @@ -691,6 +691,44 @@ func (s *Crop) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// DashConfig: `DASH` manifest configuration. +type DashConfig struct { + // SegmentReferenceScheme: The segment reference scheme for a `DASH` + // manifest. The default is `SEGMENT_LIST` + // + // Possible values: + // "SEGMENT_REFERENCE_SCHEME_UNSPECIFIED" - The segment reference + // scheme is not specified. + // "SEGMENT_LIST" - Lists the URLs of media files for each segment. + // "SEGMENT_TEMPLATE_NUMBER" - Lists each segment from a template with + // $Number$ variable. + SegmentReferenceScheme string `json:"segmentReferenceScheme,omitempty"` + + // ForceSendFields is a list of field names (e.g. + // "SegmentReferenceScheme") 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. "SegmentReferenceScheme") + // 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 *DashConfig) MarshalJSON() ([]byte, error) { + type NoMethod DashConfig + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // Deblock: Deblock preprocessing configuration. **Note:** This // configuration is not supported. type Deblock struct { @@ -1613,6 +1651,9 @@ func (s *ListJobsResponse) MarshalJSON() ([]byte, error) { // Manifest: Manifest configuration. type Manifest struct { + // Dash: `DASH` manifest configuration. + Dash *DashConfig `json:"dash,omitempty"` + // FileName: The name of the generated file. The default is `manifest` // with the extension suffix corresponding to the `Manifest.type`. FileName string `json:"fileName,omitempty"` @@ -1633,7 +1674,7 @@ type Manifest struct { // extension is `.mpd`. Type string `json:"type,omitempty"` - // ForceSendFields is a list of field names (e.g. "FileName") to + // ForceSendFields is a list of field names (e.g. "Dash") 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 @@ -1641,8 +1682,8 @@ type Manifest struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "FileName") to include in - // API requests with the JSON null value. By default, fields with empty + // NullFields is a list of field names (e.g. "Dash") 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. diff --git a/workflowexecutions/v1/workflowexecutions-api.json b/workflowexecutions/v1/workflowexecutions-api.json index 3d1e4b325f7..a9547534c2b 100644 --- a/workflowexecutions/v1/workflowexecutions-api.json +++ b/workflowexecutions/v1/workflowexecutions-api.json @@ -309,7 +309,7 @@ } } }, - "revision": "20230516", + "revision": "20230607", "rootUrl": "https://workflowexecutions.googleapis.com/", "schemas": { "CancelExecutionRequest": { @@ -605,6 +605,11 @@ "description": "Required. LINT: LEGACY_NAMES The query parameter value for __GCP_CloudEventsMode, set by the Eventarc service when configuring triggers.", "type": "string" }, + "deliveryAttempt": { + "description": "The number of attempts that have been made to deliver this message. This is set by Pub/Sub for subscriptions that have the \"dead letter\" feature enabled, and hence provided here for compatibility, but is ignored by Workflows.", + "format": "int32", + "type": "integer" + }, "message": { "$ref": "PubsubMessage", "description": "Required. The message of the Pub/Sub push notification." diff --git a/workflowexecutions/v1/workflowexecutions-gen.go b/workflowexecutions/v1/workflowexecutions-gen.go index 9335196d7e5..cc2eaed21f4 100644 --- a/workflowexecutions/v1/workflowexecutions-gen.go +++ b/workflowexecutions/v1/workflowexecutions-gen.go @@ -642,6 +642,12 @@ type TriggerPubsubExecutionRequest struct { // configuring triggers. GCPCloudEventsMode string `json:"GCPCloudEventsMode,omitempty"` + // DeliveryAttempt: The number of attempts that have been made to + // deliver this message. This is set by Pub/Sub for subscriptions that + // have the "dead letter" feature enabled, and hence provided here for + // compatibility, but is ignored by Workflows. + DeliveryAttempt int64 `json:"deliveryAttempt,omitempty"` + // Message: Required. The message of the Pub/Sub push notification. Message *PubsubMessage `json:"message,omitempty"` diff --git a/workloadmanager/v1/workloadmanager-api.json b/workloadmanager/v1/workloadmanager-api.json index 5da97a30ff5..ecf11875356 100644 --- a/workloadmanager/v1/workloadmanager-api.json +++ b/workloadmanager/v1/workloadmanager-api.json @@ -707,7 +707,7 @@ } } }, - "revision": "20230524", + "revision": "20230605", "rootUrl": "https://workloadmanager.googleapis.com/", "schemas": { "CancelOperationRequest": { @@ -723,7 +723,7 @@ "type": "object" }, "Evaluation": { - "description": "Message describing Evaluation object", + "description": "LINT.IfChange Message describing Evaluation object", "id": "Evaluation", "properties": { "createTime": { @@ -776,7 +776,7 @@ "type": "array" }, "schedule": { - "description": "crontab format schedule for scheduled evaluation, example: 0 */3 * * *", + "description": "crontab format schedule for scheduled evaluation, currently only support the following schedule: \"0 */1 * * *\", \"0 */6 * * *\", \"0 */12 * * *\", \"0 0 */1 * *\", \"0 0 */7 * *\",", "type": "string" }, "updateTime": { @@ -909,6 +909,10 @@ "description": "A presentation of host resource usage where the workload runs.", "id": "Insight", "properties": { + "instanceId": { + "description": "Required. The instance id where the insight is generated from", + "type": "string" + }, "sapDiscovery": { "$ref": "SapDiscovery", "description": "The insights data for sap system discovery. This is a copy of SAP System proto and should get updated whenever that one changes." @@ -1332,7 +1336,7 @@ "type": "object" }, "SapDiscovery": { - "description": "The schema of SAP system discovery data.", + "description": "LINT.IfChange The schema of SAP system discovery data.", "id": "SapDiscovery", "properties": { "applicationLayer": { @@ -1629,10 +1633,6 @@ "$ref": "Insight", "description": "Required. The metrics data details." }, - "instanceId": { - "description": "Optional. The instance id where the insight is generated from", - "type": "string" - }, "requestId": { "description": "Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).", "type": "string" diff --git a/workloadmanager/v1/workloadmanager-gen.go b/workloadmanager/v1/workloadmanager-gen.go index d2581df6f5b..a5cfcd0ebd0 100644 --- a/workloadmanager/v1/workloadmanager-gen.go +++ b/workloadmanager/v1/workloadmanager-gen.go @@ -259,7 +259,7 @@ type Empty struct { googleapi.ServerResponse `json:"-"` } -// Evaluation: Message describing Evaluation object +// Evaluation: LINT.IfChange Message describing Evaluation object type Evaluation struct { // CreateTime: Output only. [Output only] Create time stamp CreateTime string `json:"createTime,omitempty"` @@ -292,8 +292,9 @@ type Evaluation struct { // exist. RuleVersions []string `json:"ruleVersions,omitempty"` - // Schedule: crontab format schedule for scheduled evaluation, example: - // 0 */3 * * * + // Schedule: crontab format schedule for scheduled evaluation, currently + // only support the following schedule: "0 */1 * * *", "0 */6 * * *", "0 + // */12 * * *", "0 0 */1 * *", "0 0 */7 * *", Schedule string `json:"schedule,omitempty"` // UpdateTime: Output only. [Output only] Update time stamp @@ -469,6 +470,10 @@ func (s *GceInstanceFilter) MarshalJSON() ([]byte, error) { // Insight: A presentation of host resource usage where the workload // runs. type Insight struct { + // InstanceId: Required. The instance id where the insight is generated + // from + InstanceId string `json:"instanceId,omitempty"` + // SapDiscovery: The insights data for sap system discovery. This is a // copy of SAP System proto and should get updated whenever that one // changes. @@ -484,7 +489,7 @@ type Insight struct { // validation. SqlserverValidation *SqlserverValidation `json:"sqlserverValidation,omitempty"` - // ForceSendFields is a list of field names (e.g. "SapDiscovery") to + // ForceSendFields is a list of field names (e.g. "InstanceId") 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 @@ -492,10 +497,10 @@ type Insight struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "SapDiscovery") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as + // NullFields is a list of field names (e.g. "InstanceId") 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:"-"` @@ -1151,7 +1156,7 @@ func (s *RunEvaluationRequest) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// SapDiscovery: The schema of SAP system discovery data. +// SapDiscovery: LINT.IfChange The schema of SAP system discovery data. type SapDiscovery struct { // ApplicationLayer: An SAP system may run without an application layer. ApplicationLayer *SapDiscoveryComponent `json:"applicationLayer,omitempty"` @@ -1582,10 +1587,6 @@ type WriteInsightRequest struct { // Insight: Required. The metrics data details. Insight *Insight `json:"insight,omitempty"` - // InstanceId: Optional. The instance id where the insight is generated - // from - InstanceId string `json:"instanceId,omitempty"` - // RequestId: Optional. An optional request ID to identify requests. // Specify a unique request ID so that if you must retry your request, // the server will know to ignore the request if it has already been From 247ad09c5eaa9c06208a1acd99ccbf3b41b5e8f4 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Mon, 19 Jun 2023 00:22:12 -0700 Subject: [PATCH 03/11] feat(all): auto-regenerate discovery clients (#2032) --- api-list.json | 15 - beyondcorp/v1alpha/beyondcorp-api.json | 175 +++- beyondcorp/v1alpha/beyondcorp-gen.go | 822 +++++++++++++++--- ids/v1/ids-api.json | 4 +- ids/v1/ids-gen.go | 2 +- .../v1alpha1/migrationcenter-api.json | 247 +++++- .../v1alpha1/migrationcenter-gen.go | 395 ++++++++- 7 files changed, 1502 insertions(+), 158 deletions(-) diff --git a/api-list.json b/api-list.json index 2f2180db980..f359beebd0e 100644 --- a/api-list.json +++ b/api-list.json @@ -2479,21 +2479,6 @@ "documentationLink": "https://developers.google.com/domains/rdap/", "preferred": true }, - { - "kind": "discovery#directoryItem", - "id": "doubleclickbidmanager:v1.1", - "name": "doubleclickbidmanager", - "version": "v1.1", - "title": "DoubleClick Bid Manager API", - "description": "DoubleClick Bid Manager API allows users to manage and create campaigns and reports.", - "discoveryRestUrl": "https://doubleclickbidmanager.googleapis.com/$discovery/rest?version=v1.1", - "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://developers.google.com/bid-manager/", - "preferred": false - }, { "kind": "discovery#directoryItem", "id": "doubleclickbidmanager:v2", diff --git a/beyondcorp/v1alpha/beyondcorp-api.json b/beyondcorp/v1alpha/beyondcorp-api.json index a32aa1db85d..5ce19502cda 100644 --- a/beyondcorp/v1alpha/beyondcorp-api.json +++ b/beyondcorp/v1alpha/beyondcorp-api.json @@ -241,27 +241,6 @@ "parent" ], "parameters": { - "filter": { - "description": "Optional. Filter partnerTenants to be returned. See [List Sub-Collections] (https://cloud.google.com/apis/design/design_patterns#list_sub-collections) for more details. All fields can be used in the filter. Usage: field_filter=\"fieldName1=fieldVal1 AND fieldName2=fieldVal2\". NOTE: Only `AND` conditions are allowed.", - "location": "query", - "type": "string" - }, - "orderBy": { - "description": "Optional. Specifies the ordering of results. Currently, only ordering by the \"name\" and \"create_time\" fields are supported. See [Sorting order](https://cloud.google.com/apis/design/design_patterns#sorting_order) for more information.", - "location": "query", - "type": "string" - }, - "pageSize": { - "description": "Optional. The maximum number of items to return. The service may return fewer than this value. If unspecified, at most 50 items will be returned. The maximum value is 1000; values above 1000 are coerced to 1000. Regardless of the page_size value, the response may include a partial list and a caller should only rely on response's next_page_token to determine if there are more instances left to be queried.", - "format": "int32", - "location": "query", - "type": "integer" - }, - "pageToken": { - "description": "Optional. A token identifying a page of results the server should return.", - "location": "query", - "type": "string" - }, "parent": { "description": "Required. The parent organization to which the PartnerTenants belong. Format: `organizations/{organization_id}/locations/global`", "location": "path", @@ -410,6 +389,36 @@ "https://www.googleapis.com/auth/cloud-platform" ] }, + "delete": { + "description": "Deletes an existing BrowserDlpRule.", + "flatPath": "v1alpha/organizations/{organizationsId}/locations/global/partnerTenants/{partnerTenantsId}/browserDlpRules/{browserDlpRulesId}", + "httpMethod": "DELETE", + "id": "beyondcorp.organizations.locations.global.partnerTenants.browserDlpRules.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The resource name of the BrowserDlpRule using the form: `organizations/{organization_id}/locations/global/partnerTenants/{partner_tenant_id}/browserDlpRules/{browser_dlp_rule_id}`", + "location": "path", + "pattern": "^organizations/[^/]+/locations/global/partnerTenants/[^/]+/browserDlpRules/[^/]+$", + "required": true, + "type": "string" + }, + "requestId": { + "description": "Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes after the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).", + "location": "query", + "type": "string" + } + }, + "path": "v1alpha/{+name}", + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, "get": { "description": "Gets details of a single BrowserDlpRule.", "flatPath": "v1alpha/organizations/{organizationsId}/locations/global/partnerTenants/{partnerTenantsId}/browserDlpRules/{browserDlpRulesId}", @@ -466,6 +475,45 @@ "https://www.googleapis.com/auth/cloud-platform" ] }, + "patch": { + "description": "Update an existing BrowserDlpRule in a given organization and PartnerTenant.", + "flatPath": "v1alpha/organizations/{organizationsId}/locations/global/partnerTenants/{partnerTenantsId}/browserDlpRules/{browserDlpRulesId}", + "httpMethod": "PATCH", + "id": "beyondcorp.organizations.locations.global.partnerTenants.browserDlpRules.patch", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Output only. Unique resource name. The name is ignored when creating BrowserDlpRule.", + "location": "path", + "pattern": "^organizations/[^/]+/locations/global/partnerTenants/[^/]+/browserDlpRules/[^/]+$", + "required": true, + "type": "string" + }, + "requestId": { + "description": "Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).", + "location": "query", + "type": "string" + }, + "updateMask": { + "description": "Required. Supported fields include: rule_setting.value.*, group.id/group.email.", + "format": "google-fieldmask", + "location": "query", + "type": "string" + } + }, + "path": "v1alpha/{+name}", + "request": { + "$ref": "GoogleCloudBeyondcorpPartnerservicesV1alphaBrowserDlpRule" + }, + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, "setIamPolicy": { "description": "Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.", "flatPath": "v1alpha/organizations/{organizationsId}/locations/global/partnerTenants/{partnerTenantsId}/browserDlpRules/{browserDlpRulesId}:setIamPolicy", @@ -645,6 +693,70 @@ "https://www.googleapis.com/auth/cloud-platform" ] }, + "list": { + "description": "Lists ProxyConfigs for PartnerTenant in a given organization.", + "flatPath": "v1alpha/organizations/{organizationsId}/locations/global/partnerTenants/{partnerTenantsId}/proxyConfigs", + "httpMethod": "GET", + "id": "beyondcorp.organizations.locations.global.partnerTenants.proxyConfigs.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "Required. The parent organization to which the ProxyConfigs belong. Format: `organizations/{organization_id}/locations/global/partnerTenants/{partner_tenant_id}`", + "location": "path", + "pattern": "^organizations/[^/]+/locations/global/partnerTenants/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1alpha/{+parent}/proxyConfigs", + "response": { + "$ref": "GoogleCloudBeyondcorpPartnerservicesV1alphaListProxyConfigsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "patch": { + "description": "Updates a single proxy config.", + "flatPath": "v1alpha/organizations/{organizationsId}/locations/global/partnerTenants/{partnerTenantsId}/proxyConfigs/{proxyConfigsId}", + "httpMethod": "PATCH", + "id": "beyondcorp.organizations.locations.global.partnerTenants.proxyConfigs.patch", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Output only. ProxyConfig resource name.", + "location": "path", + "pattern": "^organizations/[^/]+/locations/global/partnerTenants/[^/]+/proxyConfigs/[^/]+$", + "required": true, + "type": "string" + }, + "requestId": { + "description": "Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes after the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).", + "location": "query", + "type": "string" + }, + "updateMask": { + "description": "Required. Mutable fields include: display_name, proxy_uri, routing_info, transport_info, encryption_info.", + "format": "google-fieldmask", + "location": "query", + "type": "string" + } + }, + "path": "v1alpha/{+name}", + "request": { + "$ref": "GoogleCloudBeyondcorpPartnerservicesV1alphaProxyConfig" + }, + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, "setIamPolicy": { "description": "Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.", "flatPath": "v1alpha/organizations/{organizationsId}/locations/global/partnerTenants/{partnerTenantsId}/proxyConfigs/{proxyConfigsId}:setIamPolicy", @@ -3856,7 +3968,7 @@ } } }, - "revision": "20230531", + "revision": "20230613", "rootUrl": "https://beyondcorp.googleapis.com/", "schemas": { "AllocatedConnection": { @@ -5539,21 +5651,24 @@ "description": "Message for response to listing PartnerTenants.", "id": "GoogleCloudBeyondcorpPartnerservicesV1alphaListPartnerTenantsResponse", "properties": { - "nextPageToken": { - "description": "A token which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.", - "type": "string" - }, "partnerTenants": { "description": "The list of PartnerTenant objects.", "items": { "$ref": "GoogleCloudBeyondcorpPartnerservicesV1alphaPartnerTenant" }, "type": "array" - }, - "unreachable": { - "description": "Locations that could not be reached.", + } + }, + "type": "object" + }, + "GoogleCloudBeyondcorpPartnerservicesV1alphaListProxyConfigsResponse": { + "description": "Message for response to listing ProxyConfigs.", + "id": "GoogleCloudBeyondcorpPartnerservicesV1alphaListProxyConfigsResponse", + "properties": { + "proxyConfigs": { + "description": "The list of ProxyConfig objects.", "items": { - "type": "string" + "$ref": "GoogleCloudBeyondcorpPartnerservicesV1alphaProxyConfig" }, "type": "array" } diff --git a/beyondcorp/v1alpha/beyondcorp-gen.go b/beyondcorp/v1alpha/beyondcorp-gen.go index 9d755915a2a..5e0c9e0a551 100644 --- a/beyondcorp/v1alpha/beyondcorp-gen.go +++ b/beyondcorp/v1alpha/beyondcorp-gen.go @@ -2768,22 +2768,48 @@ func (s *GoogleCloudBeyondcorpPartnerservicesV1alphaGroup) MarshalJSON() ([]byte // // Message for response to listing PartnerTenants. type GoogleCloudBeyondcorpPartnerservicesV1alphaListPartnerTenantsResponse struct { - // NextPageToken: A token which can be sent as `page_token` to retrieve - // the next page. If this field is omitted, there are no subsequent - // pages. - NextPageToken string `json:"nextPageToken,omitempty"` - // PartnerTenants: The list of PartnerTenant objects. PartnerTenants []*GoogleCloudBeyondcorpPartnerservicesV1alphaPartnerTenant `json:"partnerTenants,omitempty"` - // Unreachable: Locations that could not be reached. - Unreachable []string `json:"unreachable,omitempty"` + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "PartnerTenants") 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. "PartnerTenants") 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 *GoogleCloudBeyondcorpPartnerservicesV1alphaListPartnerTenantsResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudBeyondcorpPartnerservicesV1alphaListPartnerTenantsResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudBeyondcorpPartnerservicesV1alphaListProxyConfigsResponse: +// Message for response to listing ProxyConfigs. +type GoogleCloudBeyondcorpPartnerservicesV1alphaListProxyConfigsResponse struct { + // ProxyConfigs: The list of ProxyConfig objects. + ProxyConfigs []*GoogleCloudBeyondcorpPartnerservicesV1alphaProxyConfig `json:"proxyConfigs,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 + // ForceSendFields is a list of field names (e.g. "ProxyConfigs") 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 @@ -2791,7 +2817,7 @@ type GoogleCloudBeyondcorpPartnerservicesV1alphaListPartnerTenantsResponse struc // 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 + // NullFields is a list of field names (e.g. "ProxyConfigs") 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 @@ -2800,8 +2826,8 @@ type GoogleCloudBeyondcorpPartnerservicesV1alphaListPartnerTenantsResponse struc NullFields []string `json:"-"` } -func (s *GoogleCloudBeyondcorpPartnerservicesV1alphaListPartnerTenantsResponse) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudBeyondcorpPartnerservicesV1alphaListPartnerTenantsResponse +func (s *GoogleCloudBeyondcorpPartnerservicesV1alphaListProxyConfigsResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudBeyondcorpPartnerservicesV1alphaListProxyConfigsResponse raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } @@ -5725,46 +5751,6 @@ func (r *OrganizationsLocationsGlobalPartnerTenantsService) List(parent string) return c } -// Filter sets the optional parameter "filter": Filter partnerTenants to -// be returned. See [List Sub-Collections] -// (https://cloud.google.com/apis/design/design_patterns#list_sub-collections) -// for more details. All fields can be used in the filter. Usage: -// field_filter="fieldName1=fieldVal1 AND fieldName2=fieldVal2". NOTE: -// Only `AND` conditions are allowed. -func (c *OrganizationsLocationsGlobalPartnerTenantsListCall) Filter(filter string) *OrganizationsLocationsGlobalPartnerTenantsListCall { - c.urlParams_.Set("filter", filter) - return c -} - -// OrderBy sets the optional parameter "orderBy": Specifies the ordering -// of results. Currently, only ordering by the "name" and "create_time" -// fields are supported. See Sorting order -// (https://cloud.google.com/apis/design/design_patterns#sorting_order) -// for more information. -func (c *OrganizationsLocationsGlobalPartnerTenantsListCall) OrderBy(orderBy string) *OrganizationsLocationsGlobalPartnerTenantsListCall { - c.urlParams_.Set("orderBy", orderBy) - return c -} - -// PageSize sets the optional parameter "pageSize": The maximum number -// of items to return. The service may return fewer than this value. If -// unspecified, at most 50 items will be returned. The maximum value is -// 1000; values above 1000 are coerced to 1000. Regardless of the -// page_size value, the response may include a partial list and a caller -// should only rely on response's next_page_token to determine if there -// are more instances left to be queried. -func (c *OrganizationsLocationsGlobalPartnerTenantsListCall) PageSize(pageSize int64) *OrganizationsLocationsGlobalPartnerTenantsListCall { - c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) - return c -} - -// PageToken sets the optional parameter "pageToken": A token -// identifying a page of results the server should return. -func (c *OrganizationsLocationsGlobalPartnerTenantsListCall) PageToken(pageToken string) *OrganizationsLocationsGlobalPartnerTenantsListCall { - 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. @@ -5877,27 +5863,6 @@ func (c *OrganizationsLocationsGlobalPartnerTenantsListCall) Do(opts ...googleap // "parent" // ], // "parameters": { - // "filter": { - // "description": "Optional. Filter partnerTenants to be returned. See [List Sub-Collections] (https://cloud.google.com/apis/design/design_patterns#list_sub-collections) for more details. All fields can be used in the filter. Usage: field_filter=\"fieldName1=fieldVal1 AND fieldName2=fieldVal2\". NOTE: Only `AND` conditions are allowed.", - // "location": "query", - // "type": "string" - // }, - // "orderBy": { - // "description": "Optional. Specifies the ordering of results. Currently, only ordering by the \"name\" and \"create_time\" fields are supported. See [Sorting order](https://cloud.google.com/apis/design/design_patterns#sorting_order) for more information.", - // "location": "query", - // "type": "string" - // }, - // "pageSize": { - // "description": "Optional. The maximum number of items to return. The service may return fewer than this value. If unspecified, at most 50 items will be returned. The maximum value is 1000; values above 1000 are coerced to 1000. Regardless of the page_size value, the response may include a partial list and a caller should only rely on response's next_page_token to determine if there are more instances left to be queried.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Optional. A token identifying a page of results the server should return.", - // "location": "query", - // "type": "string" - // }, // "parent": { // "description": "Required. The parent organization to which the PartnerTenants belong. Format: `organizations/{organization_id}/locations/global`", // "location": "path", @@ -5917,27 +5882,6 @@ func (c *OrganizationsLocationsGlobalPartnerTenantsListCall) Do(opts ...googleap } -// 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 *OrganizationsLocationsGlobalPartnerTenantsListCall) Pages(ctx context.Context, f func(*GoogleCloudBeyondcorpPartnerservicesV1alphaListPartnerTenantsResponse) 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 "beyondcorp.organizations.locations.global.partnerTenants.patch": type OrganizationsLocationsGlobalPartnerTenantsPatchCall struct { @@ -6588,6 +6532,163 @@ func (c *OrganizationsLocationsGlobalPartnerTenantsBrowserDlpRulesCreateCall) Do } +// method id "beyondcorp.organizations.locations.global.partnerTenants.browserDlpRules.delete": + +type OrganizationsLocationsGlobalPartnerTenantsBrowserDlpRulesDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Delete: Deletes an existing BrowserDlpRule. +// +// - name: The resource name of the BrowserDlpRule using the form: +// `organizations/{organization_id}/locations/global/partnerTenants/{pa +// rtner_tenant_id}/browserDlpRules/{browser_dlp_rule_id}`. +func (r *OrganizationsLocationsGlobalPartnerTenantsBrowserDlpRulesService) Delete(name string) *OrganizationsLocationsGlobalPartnerTenantsBrowserDlpRulesDeleteCall { + c := &OrganizationsLocationsGlobalPartnerTenantsBrowserDlpRulesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// RequestId sets the optional parameter "requestId": An optional +// request ID to identify requests. Specify a unique request ID so that +// if you must retry your request, the server will know to ignore the +// request if it has already been completed. The server will guarantee +// that for at least 60 minutes after the first request. For example, +// consider a situation where you make an initial request and the +// request times out. If you make the request again with the same +// request ID, the server can check if original operation with the same +// request ID was received, and if so, will ignore the second request. +// This prevents clients from accidentally creating duplicate +// commitments. The request ID must be a valid UUID with the exception +// that zero UUID is not supported +// (00000000-0000-0000-0000-000000000000). +func (c *OrganizationsLocationsGlobalPartnerTenantsBrowserDlpRulesDeleteCall) RequestId(requestId string) *OrganizationsLocationsGlobalPartnerTenantsBrowserDlpRulesDeleteCall { + c.urlParams_.Set("requestId", requestId) + 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 *OrganizationsLocationsGlobalPartnerTenantsBrowserDlpRulesDeleteCall) Fields(s ...googleapi.Field) *OrganizationsLocationsGlobalPartnerTenantsBrowserDlpRulesDeleteCall { + 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 *OrganizationsLocationsGlobalPartnerTenantsBrowserDlpRulesDeleteCall) Context(ctx context.Context) *OrganizationsLocationsGlobalPartnerTenantsBrowserDlpRulesDeleteCall { + 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 *OrganizationsLocationsGlobalPartnerTenantsBrowserDlpRulesDeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *OrganizationsLocationsGlobalPartnerTenantsBrowserDlpRulesDeleteCall) 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, "v1alpha/{+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 "beyondcorp.organizations.locations.global.partnerTenants.browserDlpRules.delete" call. +// Exactly one of *GoogleLongrunningOperation or error will be non-nil. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleLongrunningOperation.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 *OrganizationsLocationsGlobalPartnerTenantsBrowserDlpRulesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleLongrunningOperation{ + 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 an existing BrowserDlpRule.", + // "flatPath": "v1alpha/organizations/{organizationsId}/locations/global/partnerTenants/{partnerTenantsId}/browserDlpRules/{browserDlpRulesId}", + // "httpMethod": "DELETE", + // "id": "beyondcorp.organizations.locations.global.partnerTenants.browserDlpRules.delete", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The resource name of the BrowserDlpRule using the form: `organizations/{organization_id}/locations/global/partnerTenants/{partner_tenant_id}/browserDlpRules/{browser_dlp_rule_id}`", + // "location": "path", + // "pattern": "^organizations/[^/]+/locations/global/partnerTenants/[^/]+/browserDlpRules/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "requestId": { + // "description": "Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes after the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1alpha/{+name}", + // "response": { + // "$ref": "GoogleLongrunningOperation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + // method id "beyondcorp.organizations.locations.global.partnerTenants.browserDlpRules.get": type OrganizationsLocationsGlobalPartnerTenantsBrowserDlpRulesGetCall struct { @@ -6914,22 +7015,202 @@ func (c *OrganizationsLocationsGlobalPartnerTenantsBrowserDlpRulesGetIamPolicyCa } -// method id "beyondcorp.organizations.locations.global.partnerTenants.browserDlpRules.setIamPolicy": +// method id "beyondcorp.organizations.locations.global.partnerTenants.browserDlpRules.patch": -type OrganizationsLocationsGlobalPartnerTenantsBrowserDlpRulesSetIamPolicyCall struct { - s *Service - resource string - googleiamv1setiampolicyrequest *GoogleIamV1SetIamPolicyRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type OrganizationsLocationsGlobalPartnerTenantsBrowserDlpRulesPatchCall struct { + s *Service + name string + googlecloudbeyondcorppartnerservicesv1alphabrowserdlprule *GoogleCloudBeyondcorpPartnerservicesV1alphaBrowserDlpRule + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// SetIamPolicy: Sets the access control policy on the specified -// resource. Replaces any existing policy. Can return `NOT_FOUND`, -// `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. +// Patch: Update an existing BrowserDlpRule in a given organization and +// PartnerTenant. // -// - resource: REQUIRED: The resource for which the policy is being +// - name: Output only. Unique resource name. The name is ignored when +// creating BrowserDlpRule. +func (r *OrganizationsLocationsGlobalPartnerTenantsBrowserDlpRulesService) Patch(name string, googlecloudbeyondcorppartnerservicesv1alphabrowserdlprule *GoogleCloudBeyondcorpPartnerservicesV1alphaBrowserDlpRule) *OrganizationsLocationsGlobalPartnerTenantsBrowserDlpRulesPatchCall { + c := &OrganizationsLocationsGlobalPartnerTenantsBrowserDlpRulesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.googlecloudbeyondcorppartnerservicesv1alphabrowserdlprule = googlecloudbeyondcorppartnerservicesv1alphabrowserdlprule + return c +} + +// RequestId sets the optional parameter "requestId": An optional +// request ID to identify requests. Specify a unique request ID so that +// if you must retry your request, the server will know to ignore the +// request if it has already been completed. The server will guarantee +// that for at least 60 minutes since the first request. For example, +// consider a situation where you make an initial request and the +// request times out. If you make the request again with the same +// request ID, the server can check if original operation with the same +// request ID was received, and if so, will ignore the second request. +// This prevents clients from accidentally creating duplicate +// commitments. The request ID must be a valid UUID with the exception +// that zero UUID is not supported +// (00000000-0000-0000-0000-000000000000). +func (c *OrganizationsLocationsGlobalPartnerTenantsBrowserDlpRulesPatchCall) RequestId(requestId string) *OrganizationsLocationsGlobalPartnerTenantsBrowserDlpRulesPatchCall { + c.urlParams_.Set("requestId", requestId) + return c +} + +// UpdateMask sets the optional parameter "updateMask": Required. +// Supported fields include: rule_setting.value.*, group.id/group.email. +func (c *OrganizationsLocationsGlobalPartnerTenantsBrowserDlpRulesPatchCall) UpdateMask(updateMask string) *OrganizationsLocationsGlobalPartnerTenantsBrowserDlpRulesPatchCall { + 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 *OrganizationsLocationsGlobalPartnerTenantsBrowserDlpRulesPatchCall) Fields(s ...googleapi.Field) *OrganizationsLocationsGlobalPartnerTenantsBrowserDlpRulesPatchCall { + 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 *OrganizationsLocationsGlobalPartnerTenantsBrowserDlpRulesPatchCall) Context(ctx context.Context) *OrganizationsLocationsGlobalPartnerTenantsBrowserDlpRulesPatchCall { + 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 *OrganizationsLocationsGlobalPartnerTenantsBrowserDlpRulesPatchCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *OrganizationsLocationsGlobalPartnerTenantsBrowserDlpRulesPatchCall) 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.googlecloudbeyondcorppartnerservicesv1alphabrowserdlprule) + 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, "v1alpha/{+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 "beyondcorp.organizations.locations.global.partnerTenants.browserDlpRules.patch" call. +// Exactly one of *GoogleLongrunningOperation or error will be non-nil. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleLongrunningOperation.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 *OrganizationsLocationsGlobalPartnerTenantsBrowserDlpRulesPatchCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleLongrunningOperation{ + 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 existing BrowserDlpRule in a given organization and PartnerTenant.", + // "flatPath": "v1alpha/organizations/{organizationsId}/locations/global/partnerTenants/{partnerTenantsId}/browserDlpRules/{browserDlpRulesId}", + // "httpMethod": "PATCH", + // "id": "beyondcorp.organizations.locations.global.partnerTenants.browserDlpRules.patch", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Output only. Unique resource name. The name is ignored when creating BrowserDlpRule.", + // "location": "path", + // "pattern": "^organizations/[^/]+/locations/global/partnerTenants/[^/]+/browserDlpRules/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "requestId": { + // "description": "Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).", + // "location": "query", + // "type": "string" + // }, + // "updateMask": { + // "description": "Required. Supported fields include: rule_setting.value.*, group.id/group.email.", + // "format": "google-fieldmask", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1alpha/{+name}", + // "request": { + // "$ref": "GoogleCloudBeyondcorpPartnerservicesV1alphaBrowserDlpRule" + // }, + // "response": { + // "$ref": "GoogleLongrunningOperation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "beyondcorp.organizations.locations.global.partnerTenants.browserDlpRules.setIamPolicy": + +type OrganizationsLocationsGlobalPartnerTenantsBrowserDlpRulesSetIamPolicyCall struct { + s *Service + resource string + googleiamv1setiampolicyrequest *GoogleIamV1SetIamPolicyRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// SetIamPolicy: Sets the access control policy on the specified +// resource. Replaces any existing policy. Can return `NOT_FOUND`, +// `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. +// +// - 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. @@ -7862,6 +8143,337 @@ func (c *OrganizationsLocationsGlobalPartnerTenantsProxyConfigsGetIamPolicyCall) } +// method id "beyondcorp.organizations.locations.global.partnerTenants.proxyConfigs.list": + +type OrganizationsLocationsGlobalPartnerTenantsProxyConfigsListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists ProxyConfigs for PartnerTenant in a given organization. +// +// - parent: The parent organization to which the ProxyConfigs belong. +// Format: +// `organizations/{organization_id}/locations/global/partnerTenants/{pa +// rtner_tenant_id}`. +func (r *OrganizationsLocationsGlobalPartnerTenantsProxyConfigsService) List(parent string) *OrganizationsLocationsGlobalPartnerTenantsProxyConfigsListCall { + c := &OrganizationsLocationsGlobalPartnerTenantsProxyConfigsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *OrganizationsLocationsGlobalPartnerTenantsProxyConfigsListCall) Fields(s ...googleapi.Field) *OrganizationsLocationsGlobalPartnerTenantsProxyConfigsListCall { + 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 *OrganizationsLocationsGlobalPartnerTenantsProxyConfigsListCall) IfNoneMatch(entityTag string) *OrganizationsLocationsGlobalPartnerTenantsProxyConfigsListCall { + 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 *OrganizationsLocationsGlobalPartnerTenantsProxyConfigsListCall) Context(ctx context.Context) *OrganizationsLocationsGlobalPartnerTenantsProxyConfigsListCall { + 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 *OrganizationsLocationsGlobalPartnerTenantsProxyConfigsListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *OrganizationsLocationsGlobalPartnerTenantsProxyConfigsListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/proxyConfigs") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "beyondcorp.organizations.locations.global.partnerTenants.proxyConfigs.list" call. +// Exactly one of +// *GoogleCloudBeyondcorpPartnerservicesV1alphaListProxyConfigsResponse +// or error will be non-nil. Any non-2xx status code is an error. +// Response headers are in either +// *GoogleCloudBeyondcorpPartnerservicesV1alphaListProxyConfigsResponse.S +// erverResponse.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 *OrganizationsLocationsGlobalPartnerTenantsProxyConfigsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudBeyondcorpPartnerservicesV1alphaListProxyConfigsResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleCloudBeyondcorpPartnerservicesV1alphaListProxyConfigsResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Lists ProxyConfigs for PartnerTenant in a given organization.", + // "flatPath": "v1alpha/organizations/{organizationsId}/locations/global/partnerTenants/{partnerTenantsId}/proxyConfigs", + // "httpMethod": "GET", + // "id": "beyondcorp.organizations.locations.global.partnerTenants.proxyConfigs.list", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "parent": { + // "description": "Required. The parent organization to which the ProxyConfigs belong. Format: `organizations/{organization_id}/locations/global/partnerTenants/{partner_tenant_id}`", + // "location": "path", + // "pattern": "^organizations/[^/]+/locations/global/partnerTenants/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1alpha/{+parent}/proxyConfigs", + // "response": { + // "$ref": "GoogleCloudBeyondcorpPartnerservicesV1alphaListProxyConfigsResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "beyondcorp.organizations.locations.global.partnerTenants.proxyConfigs.patch": + +type OrganizationsLocationsGlobalPartnerTenantsProxyConfigsPatchCall struct { + s *Service + name string + googlecloudbeyondcorppartnerservicesv1alphaproxyconfig *GoogleCloudBeyondcorpPartnerservicesV1alphaProxyConfig + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Patch: Updates a single proxy config. +// +// - name: Output only. ProxyConfig resource name. +func (r *OrganizationsLocationsGlobalPartnerTenantsProxyConfigsService) Patch(name string, googlecloudbeyondcorppartnerservicesv1alphaproxyconfig *GoogleCloudBeyondcorpPartnerservicesV1alphaProxyConfig) *OrganizationsLocationsGlobalPartnerTenantsProxyConfigsPatchCall { + c := &OrganizationsLocationsGlobalPartnerTenantsProxyConfigsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.googlecloudbeyondcorppartnerservicesv1alphaproxyconfig = googlecloudbeyondcorppartnerservicesv1alphaproxyconfig + return c +} + +// RequestId sets the optional parameter "requestId": An optional +// request ID to identify requests. Specify a unique request ID so that +// if you must retry your request, the server will know to ignore the +// request if it has already been completed. The server will guarantee +// that for at least 60 minutes after the first request. For example, +// consider a situation where you make an initial request and the +// request times out. If you make the request again with the same +// request ID, the server can check if original operation with the same +// request ID was received, and if so, will ignore the second request. +// This prevents clients from accidentally creating duplicate +// commitments. The request ID must be a valid UUID with the exception +// that zero UUID is not supported +// (00000000-0000-0000-0000-000000000000). +func (c *OrganizationsLocationsGlobalPartnerTenantsProxyConfigsPatchCall) RequestId(requestId string) *OrganizationsLocationsGlobalPartnerTenantsProxyConfigsPatchCall { + c.urlParams_.Set("requestId", requestId) + return c +} + +// UpdateMask sets the optional parameter "updateMask": Required. +// Mutable fields include: display_name, proxy_uri, routing_info, +// transport_info, encryption_info. +func (c *OrganizationsLocationsGlobalPartnerTenantsProxyConfigsPatchCall) UpdateMask(updateMask string) *OrganizationsLocationsGlobalPartnerTenantsProxyConfigsPatchCall { + 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 *OrganizationsLocationsGlobalPartnerTenantsProxyConfigsPatchCall) Fields(s ...googleapi.Field) *OrganizationsLocationsGlobalPartnerTenantsProxyConfigsPatchCall { + 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 *OrganizationsLocationsGlobalPartnerTenantsProxyConfigsPatchCall) Context(ctx context.Context) *OrganizationsLocationsGlobalPartnerTenantsProxyConfigsPatchCall { + 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 *OrganizationsLocationsGlobalPartnerTenantsProxyConfigsPatchCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *OrganizationsLocationsGlobalPartnerTenantsProxyConfigsPatchCall) 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.googlecloudbeyondcorppartnerservicesv1alphaproxyconfig) + 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, "v1alpha/{+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 "beyondcorp.organizations.locations.global.partnerTenants.proxyConfigs.patch" call. +// Exactly one of *GoogleLongrunningOperation or error will be non-nil. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleLongrunningOperation.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 *OrganizationsLocationsGlobalPartnerTenantsProxyConfigsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleLongrunningOperation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Updates a single proxy config.", + // "flatPath": "v1alpha/organizations/{organizationsId}/locations/global/partnerTenants/{partnerTenantsId}/proxyConfigs/{proxyConfigsId}", + // "httpMethod": "PATCH", + // "id": "beyondcorp.organizations.locations.global.partnerTenants.proxyConfigs.patch", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Output only. ProxyConfig resource name.", + // "location": "path", + // "pattern": "^organizations/[^/]+/locations/global/partnerTenants/[^/]+/proxyConfigs/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "requestId": { + // "description": "Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes after the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).", + // "location": "query", + // "type": "string" + // }, + // "updateMask": { + // "description": "Required. Mutable fields include: display_name, proxy_uri, routing_info, transport_info, encryption_info.", + // "format": "google-fieldmask", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1alpha/{+name}", + // "request": { + // "$ref": "GoogleCloudBeyondcorpPartnerservicesV1alphaProxyConfig" + // }, + // "response": { + // "$ref": "GoogleLongrunningOperation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + // method id "beyondcorp.organizations.locations.global.partnerTenants.proxyConfigs.setIamPolicy": type OrganizationsLocationsGlobalPartnerTenantsProxyConfigsSetIamPolicyCall struct { diff --git a/ids/v1/ids-api.json b/ids/v1/ids-api.json index fab5f38d4fe..483e9650bf6 100644 --- a/ids/v1/ids-api.json +++ b/ids/v1/ids-api.json @@ -574,7 +574,7 @@ } } }, - "revision": "20230404", + "revision": "20230612", "rootUrl": "https://ids.googleapis.com/", "schemas": { "AuditConfig": { @@ -842,7 +842,7 @@ "type": "object" }, "Location": { - "description": "A resource that represents Google Cloud Platform location.", + "description": "A resource that represents a Google Cloud location.", "id": "Location", "properties": { "displayName": { diff --git a/ids/v1/ids-gen.go b/ids/v1/ids-gen.go index 964fda1d651..80110eb2ccc 100644 --- a/ids/v1/ids-gen.go +++ b/ids/v1/ids-gen.go @@ -633,7 +633,7 @@ func (s *ListOperationsResponse) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// Location: A resource that represents Google Cloud Platform location. +// Location: A resource that represents a Google Cloud location. type Location struct { // DisplayName: The friendly name for this location, typically a nearby // city name. For example, "Tokyo". diff --git a/migrationcenter/v1alpha1/migrationcenter-api.json b/migrationcenter/v1alpha1/migrationcenter-api.json index 9e1ba86b900..dc972013b30 100644 --- a/migrationcenter/v1alpha1/migrationcenter-api.json +++ b/migrationcenter/v1alpha1/migrationcenter-api.json @@ -2102,7 +2102,7 @@ } } }, - "revision": "20230602", + "revision": "20230613", "rootUrl": "https://migrationcenter.googleapis.com/", "schemas": { "AddAssetsToGroupRequest": { @@ -2398,7 +2398,7 @@ "type": "object" }, "performanceSamples": { - "description": "Asset performance data samples.", + "description": "Asset performance data samples. Samples that are older than 40 days are ignored.", "items": { "$ref": "PerformanceSample" }, @@ -4383,7 +4383,7 @@ "description": "Network usage sample." }, "sampleTime": { - "description": "Time the sample was collected.", + "description": "Required. Time the sample was collected.", "format": "google-datetime", "type": "string" } @@ -4816,9 +4816,17 @@ "description": "Text describing the pricing track specified for this Preference Set", "type": "string" }, + "soleTenantFinding": { + "$ref": "ReportSummarySoleTenantFinding", + "description": "A set of findings that applies to Stole-Tenant machines in the input." + }, "topPriority": { "description": "Text describing the business priority specified for this Preference Set", "type": "string" + }, + "vmwareEngineFinding": { + "$ref": "ReportSummaryVMWareEngineFinding", + "description": "A set of findings that applies to VMWare machines in the input." } }, "type": "object" @@ -4920,6 +4928,53 @@ }, "type": "object" }, + "ReportSummarySoleTenantFinding": { + "description": "A set of findings that applies to assets destined for Sole-Tenant nodes.", + "id": "ReportSummarySoleTenantFinding", + "properties": { + "allocatedAssetCount": { + "description": "Count of assets which are allocated", + "format": "int64", + "type": "string" + }, + "allocatedRegions": { + "description": "Set of regions in which the assets are allocated", + "items": { + "type": "string" + }, + "type": "array" + }, + "nodeAllocations": { + "description": "Set of per-nodetype allocation records", + "items": { + "$ref": "ReportSummarySoleTenantNodeAllocation" + }, + "type": "array" + } + }, + "type": "object" + }, + "ReportSummarySoleTenantNodeAllocation": { + "description": "Represents the assets allocated to a specific Sole-Tenant node type.", + "id": "ReportSummarySoleTenantNodeAllocation", + "properties": { + "allocatedAssetCount": { + "description": "Count of assets allocated to these nodes", + "format": "int64", + "type": "string" + }, + "node": { + "$ref": "SoleTenantNodeType", + "description": "Sole Tenant node type, e.g. \"m3-node-128-3904\"" + }, + "nodeCount": { + "description": "Count of this node type to be provisioned", + "format": "int64", + "type": "string" + } + }, + "type": "object" + }, "ReportSummaryUtilizationChartData": { "description": "Utilization Chart is a specific type of visualization which displays a metric classified into \"Used\" and \"Free\" buckets.", "id": "ReportSummaryUtilizationChartData", @@ -4937,6 +4992,64 @@ }, "type": "object" }, + "ReportSummaryVMWareEngineFinding": { + "description": "A set of findings that applies to assets destined for VMWare Engine.", + "id": "ReportSummaryVMWareEngineFinding", + "properties": { + "allocatedAssetCount": { + "description": "Count of assets which are allocated", + "format": "int64", + "type": "string" + }, + "allocatedRegions": { + "description": "Set of regions in which the assets were allocated", + "items": { + "type": "string" + }, + "type": "array" + }, + "nodeAllocations": { + "description": "Set of per-nodetype allocation records", + "items": { + "$ref": "ReportSummaryVMWareNodeAllocation" + }, + "type": "array" + } + }, + "type": "object" + }, + "ReportSummaryVMWareNode": { + "description": "A VMWare Engine Node", + "id": "ReportSummaryVMWareNode", + "properties": { + "code": { + "description": "Code to identify VMware Engine node series, e.g. \"ve1-standard-72\". Based on the displayName of cloud.google.com/vmware-engine/docs/reference/rest/v1/projects.locations.nodeTypes", + "type": "string" + } + }, + "type": "object" + }, + "ReportSummaryVMWareNodeAllocation": { + "description": "Represents assets allocated to a specific VMWare Node type.", + "id": "ReportSummaryVMWareNodeAllocation", + "properties": { + "allocatedAssetCount": { + "description": "Count of assets allocated to these nodes", + "format": "int64", + "type": "string" + }, + "nodeCount": { + "description": "Count of this node type to be provisioned", + "format": "int64", + "type": "string" + }, + "vmwareNode": { + "$ref": "ReportSummaryVMWareNode", + "description": "VMWare node type, e.g. \"ve1-standard-72\"" + } + }, + "type": "object" + }, "RunImportJobRequest": { "description": "A request to run an import job.", "id": "RunImportJobRequest", @@ -5093,6 +5206,68 @@ }, "type": "object" }, + "SoleTenancyPreferences": { + "description": "Preferences concerning Sole Tenancy nodes and VMs.", + "id": "SoleTenancyPreferences", + "properties": { + "commitmentPlan": { + "description": "Commitment plan to consider when calculating costs for virtual machine insights and recommendations. If you are unsure which value to set, a 3 year commitment plan is often a good value to start with.", + "enum": [ + "COMMITMENT_PLAN_UNSPECIFIED", + "ON_DEMAND", + "COMMITMENT_1_YEAR", + "COMMITMENT_3_YEAR" + ], + "enumDescriptions": [ + "Unspecified commitment plan.", + "No commitment plan (on-demand usage).", + "1 year commitment.", + "3 years commitment." + ], + "type": "string" + }, + "cpuOvercommitRatio": { + "description": "CPU overcommit ratio. Acceptable values are between 1.0 and 2.0 inclusive.", + "format": "double", + "type": "number" + }, + "hostMaintenancePolicy": { + "description": "Sole Tenancy nodes maintenance policy.", + "enum": [ + "HOST_MAINTENANCE_POLICY_UNSPECIFIED", + "HOST_MAINTENANCE_POLICY_DEFAULT", + "HOST_MAINTENANCE_POLICY_RESTART_IN_PLACE", + "HOST_MAINTENANCE_POLICY_MIGRATE_WITHIN_NODE_GROUP" + ], + "enumDescriptions": [ + "Unspecified host maintenance policy.", + "Default host maintenance policy.", + "Restart in place host maintenance policy.", + "Migrate within node group host maintenance policy." + ], + "type": "string" + }, + "nodeTypes": { + "description": "A list of sole tenant node types. An empty list means that all possible node types will be considered.", + "items": { + "$ref": "SoleTenantNodeType" + }, + "type": "array" + } + }, + "type": "object" + }, + "SoleTenantNodeType": { + "description": "A Sole Tenant node type.", + "id": "SoleTenantNodeType", + "properties": { + "nodeName": { + "description": "Name of the Sole Tenant node. Consult https://cloud.google.com/compute/docs/nodes/sole-tenant-nodes", + "type": "string" + } + }, + "type": "object" + }, "Source": { "description": "Source represents an object from which asset information is streamed to Migration Center.", "id": "Source", @@ -5541,6 +5716,30 @@ "Virtual machine sizing will match the reported usage, with little slack. Using this option can help reduce costs." ], "type": "string" + }, + "soleTenancyPreferences": { + "$ref": "SoleTenancyPreferences", + "description": "Preferences concerning Sole Tenant nodes and virtual machines." + }, + "targetProduct": { + "description": "Target product for assets using this preference set. Specify either target product or business goal, but not both.", + "enum": [ + "COMPUTE_MIGRATION_TARGET_PRODUCT_UNSPECIFIED", + "COMPUTE_MIGRATION_TARGET_PRODUCT_COMPUTE_ENGINE", + "COMPUTE_MIGRATION_TARGET_PRODUCT_VMWARE_ENGINE", + "COMPUTE_MIGRATION_TARGET_PRODUCT_SOLE_TENANCY" + ], + "enumDescriptions": [ + "Unspecified (default value).", + "Prefer to migrate to Google Cloud Compute Engine.", + "Prefer to migrate to Google Cloud VMware Engine.", + "Prefer to migrate to Google Cloud Sole Tenant Nodes." + ], + "type": "string" + }, + "vmwareEnginePreferences": { + "$ref": "VmwareEnginePreferences", + "description": "Preferences concerning insights and recommendations for Google Cloud VMware Engine." } }, "type": "object" @@ -5596,6 +5795,48 @@ "properties": {}, "type": "object" }, + "VmwareEnginePreferences": { + "description": "The user preferences relating to Google Cloud VMware Engine target platform.", + "id": "VmwareEnginePreferences", + "properties": { + "commitmentPlan": { + "description": "Commitment plan to consider when calculating costs for virtual machine insights and recommendations. If you are unsure which value to set, a 3 year commitment plan is often a good value to start with.", + "enum": [ + "COMMITMENT_PLAN_UNSPECIFIED", + "ON_DEMAND", + "COMMITMENT_1_YEAR_MONTHLY_PAYMENTS", + "COMMITMENT_3_YEAR_MONTHLY_PAYMENTS", + "COMMITMENT_1_YEAR_UPFRONT_PAYMENT", + "COMMITMENT_3_YEAR_UPFRONT_PAYMENT" + ], + "enumDescriptions": [ + "Unspecified commitment plan.", + "No commitment plan (on-demand usage).", + "1 year commitment (monthly payments).", + "3 year commitment (monthly payments).", + "1 year commitment (upfront payment).", + "3 years commitment (upfront payment)." + ], + "type": "string" + }, + "cpuOvercommitRatio": { + "description": "CPU overcommit ratio. Acceptable values are between 1.0 and 8.0, with 0.1 increment.", + "format": "double", + "type": "number" + }, + "memoryOvercommitRatio": { + "description": "Memory overcommit ratio. Acceptable values are 1.0, 1.25, 1.5, 1.75 and 2.0.", + "format": "double", + "type": "number" + }, + "storageDeduplicationCompressionRatio": { + "description": "The Deduplication and Compression ratio is based on the logical (Used Before) space required to store data before applying deduplication and compression, in relation to the physical (Used After) space required after applying deduplication and compression. Specifically, the ratio is the Used Before space divided by the Used After space. For example, if the Used Before space is 3 GB, but the physical Used After space is 1 GB, the deduplication and compression ratio is 3x. Acceptable values are between 1.0 and 4.0.", + "format": "double", + "type": "number" + } + }, + "type": "object" + }, "VmwarePlatformDetails": { "description": "VMware specific details.", "id": "VmwarePlatformDetails", diff --git a/migrationcenter/v1alpha1/migrationcenter-gen.go b/migrationcenter/v1alpha1/migrationcenter-gen.go index decb54c81cc..bb1341228e3 100644 --- a/migrationcenter/v1alpha1/migrationcenter-gen.go +++ b/migrationcenter/v1alpha1/migrationcenter-gen.go @@ -794,7 +794,8 @@ type AssetFrame struct { // Labels: Labels as key value pairs. Labels map[string]string `json:"labels,omitempty"` - // PerformanceSamples: Asset performance data samples. + // PerformanceSamples: Asset performance data samples. Samples that are + // older than 40 days are ignored. PerformanceSamples []*PerformanceSample `json:"performanceSamples,omitempty"` // ReportTime: The time the data was reported. @@ -4040,7 +4041,7 @@ type PerformanceSample struct { // Network: Network usage sample. Network *NetworkUsageSample `json:"network,omitempty"` - // SampleTime: Time the sample was collected. + // SampleTime: Required. Time the sample was collected. SampleTime string `json:"sampleTime,omitempty"` // ForceSendFields is a list of field names (e.g. "Cpu") to @@ -4699,10 +4700,18 @@ type ReportSummaryGroupPreferenceSetFinding struct { // Preference Set PricingTrack string `json:"pricingTrack,omitempty"` + // SoleTenantFinding: A set of findings that applies to Stole-Tenant + // machines in the input. + SoleTenantFinding *ReportSummarySoleTenantFinding `json:"soleTenantFinding,omitempty"` + // TopPriority: Text describing the business priority specified for this // Preference Set TopPriority string `json:"topPriority,omitempty"` + // VmwareEngineFinding: A set of findings that applies to VMWare + // machines in the input. + VmwareEngineFinding *ReportSummaryVMWareEngineFinding `json:"vmwareEngineFinding,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 @@ -4880,6 +4889,78 @@ func (s *ReportSummaryMachineSeriesAllocation) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// ReportSummarySoleTenantFinding: A set of findings that applies to +// assets destined for Sole-Tenant nodes. +type ReportSummarySoleTenantFinding struct { + // AllocatedAssetCount: Count of assets which are allocated + AllocatedAssetCount int64 `json:"allocatedAssetCount,omitempty,string"` + + // AllocatedRegions: Set of regions in which the assets are allocated + AllocatedRegions []string `json:"allocatedRegions,omitempty"` + + // NodeAllocations: Set of per-nodetype allocation records + NodeAllocations []*ReportSummarySoleTenantNodeAllocation `json:"nodeAllocations,omitempty"` + + // ForceSendFields is a list of field names (e.g. "AllocatedAssetCount") + // 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. "AllocatedAssetCount") 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 *ReportSummarySoleTenantFinding) MarshalJSON() ([]byte, error) { + type NoMethod ReportSummarySoleTenantFinding + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// ReportSummarySoleTenantNodeAllocation: Represents the assets +// allocated to a specific Sole-Tenant node type. +type ReportSummarySoleTenantNodeAllocation struct { + // AllocatedAssetCount: Count of assets allocated to these nodes + AllocatedAssetCount int64 `json:"allocatedAssetCount,omitempty,string"` + + // Node: Sole Tenant node type, e.g. "m3-node-128-3904" + Node *SoleTenantNodeType `json:"node,omitempty"` + + // NodeCount: Count of this node type to be provisioned + NodeCount int64 `json:"nodeCount,omitempty,string"` + + // ForceSendFields is a list of field names (e.g. "AllocatedAssetCount") + // 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. "AllocatedAssetCount") 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 *ReportSummarySoleTenantNodeAllocation) MarshalJSON() ([]byte, error) { + type NoMethod ReportSummarySoleTenantNodeAllocation + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // ReportSummaryUtilizationChartData: Utilization Chart is a specific // type of visualization which displays a metric classified into "Used" // and "Free" buckets. @@ -4913,6 +4994,109 @@ func (s *ReportSummaryUtilizationChartData) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// ReportSummaryVMWareEngineFinding: A set of findings that applies to +// assets destined for VMWare Engine. +type ReportSummaryVMWareEngineFinding struct { + // AllocatedAssetCount: Count of assets which are allocated + AllocatedAssetCount int64 `json:"allocatedAssetCount,omitempty,string"` + + // AllocatedRegions: Set of regions in which the assets were allocated + AllocatedRegions []string `json:"allocatedRegions,omitempty"` + + // NodeAllocations: Set of per-nodetype allocation records + NodeAllocations []*ReportSummaryVMWareNodeAllocation `json:"nodeAllocations,omitempty"` + + // ForceSendFields is a list of field names (e.g. "AllocatedAssetCount") + // 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. "AllocatedAssetCount") 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 *ReportSummaryVMWareEngineFinding) MarshalJSON() ([]byte, error) { + type NoMethod ReportSummaryVMWareEngineFinding + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// ReportSummaryVMWareNode: A VMWare Engine Node +type ReportSummaryVMWareNode struct { + // Code: Code to identify VMware Engine node series, e.g. + // "ve1-standard-72". Based on the displayName of + // cloud.google.com/vmware-engine/docs/reference/rest/v1/projects.locatio + // ns.nodeTypes + Code string `json:"code,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 *ReportSummaryVMWareNode) MarshalJSON() ([]byte, error) { + type NoMethod ReportSummaryVMWareNode + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// ReportSummaryVMWareNodeAllocation: Represents assets allocated to a +// specific VMWare Node type. +type ReportSummaryVMWareNodeAllocation struct { + // AllocatedAssetCount: Count of assets allocated to these nodes + AllocatedAssetCount int64 `json:"allocatedAssetCount,omitempty,string"` + + // NodeCount: Count of this node type to be provisioned + NodeCount int64 `json:"nodeCount,omitempty,string"` + + // VmwareNode: VMWare node type, e.g. "ve1-standard-72" + VmwareNode *ReportSummaryVMWareNode `json:"vmwareNode,omitempty"` + + // ForceSendFields is a list of field names (e.g. "AllocatedAssetCount") + // 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. "AllocatedAssetCount") 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 *ReportSummaryVMWareNodeAllocation) MarshalJSON() ([]byte, error) { + type NoMethod ReportSummaryVMWareNodeAllocation + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // RunImportJobRequest: A request to run an import job. type RunImportJobRequest struct { // RequestId: Optional. An optional request ID to identify requests. @@ -5195,6 +5379,109 @@ func (s *Settings) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// SoleTenancyPreferences: Preferences concerning Sole Tenancy nodes and +// VMs. +type SoleTenancyPreferences struct { + // CommitmentPlan: Commitment plan to consider when calculating costs + // for virtual machine insights and recommendations. If you are unsure + // which value to set, a 3 year commitment plan is often a good value to + // start with. + // + // Possible values: + // "COMMITMENT_PLAN_UNSPECIFIED" - Unspecified commitment plan. + // "ON_DEMAND" - No commitment plan (on-demand usage). + // "COMMITMENT_1_YEAR" - 1 year commitment. + // "COMMITMENT_3_YEAR" - 3 years commitment. + CommitmentPlan string `json:"commitmentPlan,omitempty"` + + // CpuOvercommitRatio: CPU overcommit ratio. Acceptable values are + // between 1.0 and 2.0 inclusive. + CpuOvercommitRatio float64 `json:"cpuOvercommitRatio,omitempty"` + + // HostMaintenancePolicy: Sole Tenancy nodes maintenance policy. + // + // Possible values: + // "HOST_MAINTENANCE_POLICY_UNSPECIFIED" - Unspecified host + // maintenance policy. + // "HOST_MAINTENANCE_POLICY_DEFAULT" - Default host maintenance + // policy. + // "HOST_MAINTENANCE_POLICY_RESTART_IN_PLACE" - Restart in place host + // maintenance policy. + // "HOST_MAINTENANCE_POLICY_MIGRATE_WITHIN_NODE_GROUP" - Migrate + // within node group host maintenance policy. + HostMaintenancePolicy string `json:"hostMaintenancePolicy,omitempty"` + + // NodeTypes: A list of sole tenant node types. An empty list means that + // all possible node types will be considered. + NodeTypes []*SoleTenantNodeType `json:"nodeTypes,omitempty"` + + // ForceSendFields is a list of field names (e.g. "CommitmentPlan") 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. "CommitmentPlan") 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 *SoleTenancyPreferences) MarshalJSON() ([]byte, error) { + type NoMethod SoleTenancyPreferences + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +func (s *SoleTenancyPreferences) UnmarshalJSON(data []byte) error { + type NoMethod SoleTenancyPreferences + var s1 struct { + CpuOvercommitRatio gensupport.JSONFloat64 `json:"cpuOvercommitRatio"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.CpuOvercommitRatio = float64(s1.CpuOvercommitRatio) + return nil +} + +// SoleTenantNodeType: A Sole Tenant node type. +type SoleTenantNodeType struct { + // NodeName: Name of the Sole Tenant node. Consult + // https://cloud.google.com/compute/docs/nodes/sole-tenant-nodes + NodeName string `json:"nodeName,omitempty"` + + // ForceSendFields is a list of field names (e.g. "NodeName") 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. "NodeName") 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 *SoleTenantNodeType) MarshalJSON() ([]byte, error) { + type NoMethod SoleTenantNodeType + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // Source: Source represents an object from which asset information is // streamed to Migration Center. type Source struct { @@ -5780,6 +6067,28 @@ type VirtualMachinePreferences struct { // can help reduce costs. SizingOptimizationStrategy string `json:"sizingOptimizationStrategy,omitempty"` + // SoleTenancyPreferences: Preferences concerning Sole Tenant nodes and + // virtual machines. + SoleTenancyPreferences *SoleTenancyPreferences `json:"soleTenancyPreferences,omitempty"` + + // TargetProduct: Target product for assets using this preference set. + // Specify either target product or business goal, but not both. + // + // Possible values: + // "COMPUTE_MIGRATION_TARGET_PRODUCT_UNSPECIFIED" - Unspecified + // (default value). + // "COMPUTE_MIGRATION_TARGET_PRODUCT_COMPUTE_ENGINE" - Prefer to + // migrate to Google Cloud Compute Engine. + // "COMPUTE_MIGRATION_TARGET_PRODUCT_VMWARE_ENGINE" - Prefer to + // migrate to Google Cloud VMware Engine. + // "COMPUTE_MIGRATION_TARGET_PRODUCT_SOLE_TENANCY" - Prefer to migrate + // to Google Cloud Sole Tenant Nodes. + TargetProduct string `json:"targetProduct,omitempty"` + + // VmwareEnginePreferences: Preferences concerning insights and + // recommendations for Google Cloud VMware Engine. + VmwareEnginePreferences *VmwareEnginePreferences `json:"vmwareEnginePreferences,omitempty"` + // ForceSendFields is a list of field names (e.g. "CommitmentPlan") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any @@ -5858,6 +6167,88 @@ func (s *VmwareDiskConfig) MarshalJSON() ([]byte, error) { type VmwareEngineMigrationTarget struct { } +// VmwareEnginePreferences: The user preferences relating to Google +// Cloud VMware Engine target platform. +type VmwareEnginePreferences struct { + // CommitmentPlan: Commitment plan to consider when calculating costs + // for virtual machine insights and recommendations. If you are unsure + // which value to set, a 3 year commitment plan is often a good value to + // start with. + // + // Possible values: + // "COMMITMENT_PLAN_UNSPECIFIED" - Unspecified commitment plan. + // "ON_DEMAND" - No commitment plan (on-demand usage). + // "COMMITMENT_1_YEAR_MONTHLY_PAYMENTS" - 1 year commitment (monthly + // payments). + // "COMMITMENT_3_YEAR_MONTHLY_PAYMENTS" - 3 year commitment (monthly + // payments). + // "COMMITMENT_1_YEAR_UPFRONT_PAYMENT" - 1 year commitment (upfront + // payment). + // "COMMITMENT_3_YEAR_UPFRONT_PAYMENT" - 3 years commitment (upfront + // payment). + CommitmentPlan string `json:"commitmentPlan,omitempty"` + + // CpuOvercommitRatio: CPU overcommit ratio. Acceptable values are + // between 1.0 and 8.0, with 0.1 increment. + CpuOvercommitRatio float64 `json:"cpuOvercommitRatio,omitempty"` + + // MemoryOvercommitRatio: Memory overcommit ratio. Acceptable values are + // 1.0, 1.25, 1.5, 1.75 and 2.0. + MemoryOvercommitRatio float64 `json:"memoryOvercommitRatio,omitempty"` + + // StorageDeduplicationCompressionRatio: The Deduplication and + // Compression ratio is based on the logical (Used Before) space + // required to store data before applying deduplication and compression, + // in relation to the physical (Used After) space required after + // applying deduplication and compression. Specifically, the ratio is + // the Used Before space divided by the Used After space. For example, + // if the Used Before space is 3 GB, but the physical Used After space + // is 1 GB, the deduplication and compression ratio is 3x. Acceptable + // values are between 1.0 and 4.0. + StorageDeduplicationCompressionRatio float64 `json:"storageDeduplicationCompressionRatio,omitempty"` + + // ForceSendFields is a list of field names (e.g. "CommitmentPlan") 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. "CommitmentPlan") 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 *VmwareEnginePreferences) MarshalJSON() ([]byte, error) { + type NoMethod VmwareEnginePreferences + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +func (s *VmwareEnginePreferences) UnmarshalJSON(data []byte) error { + type NoMethod VmwareEnginePreferences + var s1 struct { + CpuOvercommitRatio gensupport.JSONFloat64 `json:"cpuOvercommitRatio"` + MemoryOvercommitRatio gensupport.JSONFloat64 `json:"memoryOvercommitRatio"` + StorageDeduplicationCompressionRatio gensupport.JSONFloat64 `json:"storageDeduplicationCompressionRatio"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.CpuOvercommitRatio = float64(s1.CpuOvercommitRatio) + s.MemoryOvercommitRatio = float64(s1.MemoryOvercommitRatio) + s.StorageDeduplicationCompressionRatio = float64(s1.StorageDeduplicationCompressionRatio) + return nil +} + // VmwarePlatformDetails: VMware specific details. type VmwarePlatformDetails struct { // EsxVersion: ESX version. From cc73573e605b04cdaabb4bdfbc355d79c6fba8ba Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Tue, 20 Jun 2023 00:24:12 -0700 Subject: [PATCH 04/11] feat(all): auto-regenerate discovery clients (#2033) --- cloudfunctions/v2/cloudfunctions-api.json | 7 +- cloudfunctions/v2/cloudfunctions-gen.go | 3 + .../v2alpha/cloudfunctions-api.json | 7 +- cloudfunctions/v2alpha/cloudfunctions-gen.go | 3 + cloudfunctions/v2beta/cloudfunctions-api.json | 7 +- cloudfunctions/v2beta/cloudfunctions-gen.go | 3 + cloudsearch/v1/cloudsearch-api.json | 19178 +++-------- cloudsearch/v1/cloudsearch-gen.go | 27646 ++++------------ compute/v0.alpha/compute-api.json | 96 +- compute/v0.alpha/compute-gen.go | 228 +- contentwarehouse/v1/contentwarehouse-api.json | 2551 +- contentwarehouse/v1/contentwarehouse-gen.go | 1388 +- .../v1/essentialcontacts-api.json | 116 +- essentialcontacts/v1/essentialcontacts-gen.go | 117 +- firebaseappcheck/v1/firebaseappcheck-api.json | 6 +- firebaseappcheck/v1/firebaseappcheck-gen.go | 13 +- .../v1beta/firebaseappcheck-api.json | 14 +- .../v1beta/firebaseappcheck-gen.go | 35 +- osconfig/v1/osconfig-api.json | 6 +- osconfig/v1/osconfig-gen.go | 8 +- osconfig/v1alpha/osconfig-api.json | 6 +- osconfig/v1alpha/osconfig-gen.go | 8 +- storage/v1/storage-api.json | 42 +- storage/v1/storage-gen.go | 92 +- .../v1/streetviewpublish-api.json | 4 +- streetviewpublish/v1/streetviewpublish-gen.go | 10 +- 26 files changed, 13727 insertions(+), 37867 deletions(-) diff --git a/cloudfunctions/v2/cloudfunctions-api.json b/cloudfunctions/v2/cloudfunctions-api.json index b2ab8ad74f9..bf202834cee 100644 --- a/cloudfunctions/v2/cloudfunctions-api.json +++ b/cloudfunctions/v2/cloudfunctions-api.json @@ -571,7 +571,7 @@ } } }, - "revision": "20230608", + "revision": "20230619", "rootUrl": "https://cloudfunctions.googleapis.com/", "schemas": { "AuditConfig": { @@ -842,6 +842,11 @@ "description": "A user-defined name of the function. Function names must be unique globally and match pattern `projects/*/locations/*/functions/*`", "type": "string" }, + "satisfiesPzs": { + "description": "Output only. Reserved for future use.", + "readOnly": true, + "type": "boolean" + }, "serviceConfig": { "$ref": "ServiceConfig", "description": "Describes the Service being deployed. Currently deploys services to Cloud Run (fully managed)." diff --git a/cloudfunctions/v2/cloudfunctions-gen.go b/cloudfunctions/v2/cloudfunctions-gen.go index f31baaedbd7..c1c2625991a 100644 --- a/cloudfunctions/v2/cloudfunctions-gen.go +++ b/cloudfunctions/v2/cloudfunctions-gen.go @@ -682,6 +682,9 @@ type Function struct { // `projects/*/locations/*/functions/*` Name string `json:"name,omitempty"` + // SatisfiesPzs: Output only. Reserved for future use. + SatisfiesPzs bool `json:"satisfiesPzs,omitempty"` + // ServiceConfig: Describes the Service being deployed. Currently // deploys services to Cloud Run (fully managed). ServiceConfig *ServiceConfig `json:"serviceConfig,omitempty"` diff --git a/cloudfunctions/v2alpha/cloudfunctions-api.json b/cloudfunctions/v2alpha/cloudfunctions-api.json index c2501a21ca9..7fef33f5cd3 100644 --- a/cloudfunctions/v2alpha/cloudfunctions-api.json +++ b/cloudfunctions/v2alpha/cloudfunctions-api.json @@ -571,7 +571,7 @@ } } }, - "revision": "20230608", + "revision": "20230619", "rootUrl": "https://cloudfunctions.googleapis.com/", "schemas": { "AuditConfig": { @@ -842,6 +842,11 @@ "description": "A user-defined name of the function. Function names must be unique globally and match pattern `projects/*/locations/*/functions/*`", "type": "string" }, + "satisfiesPzs": { + "description": "Output only. Reserved for future use.", + "readOnly": true, + "type": "boolean" + }, "serviceConfig": { "$ref": "ServiceConfig", "description": "Describes the Service being deployed. Currently deploys services to Cloud Run (fully managed)." diff --git a/cloudfunctions/v2alpha/cloudfunctions-gen.go b/cloudfunctions/v2alpha/cloudfunctions-gen.go index fab42866486..168e09ee44d 100644 --- a/cloudfunctions/v2alpha/cloudfunctions-gen.go +++ b/cloudfunctions/v2alpha/cloudfunctions-gen.go @@ -682,6 +682,9 @@ type Function struct { // `projects/*/locations/*/functions/*` Name string `json:"name,omitempty"` + // SatisfiesPzs: Output only. Reserved for future use. + SatisfiesPzs bool `json:"satisfiesPzs,omitempty"` + // ServiceConfig: Describes the Service being deployed. Currently // deploys services to Cloud Run (fully managed). ServiceConfig *ServiceConfig `json:"serviceConfig,omitempty"` diff --git a/cloudfunctions/v2beta/cloudfunctions-api.json b/cloudfunctions/v2beta/cloudfunctions-api.json index f1253c858d0..9a4b32fbb1c 100644 --- a/cloudfunctions/v2beta/cloudfunctions-api.json +++ b/cloudfunctions/v2beta/cloudfunctions-api.json @@ -571,7 +571,7 @@ } } }, - "revision": "20230608", + "revision": "20230619", "rootUrl": "https://cloudfunctions.googleapis.com/", "schemas": { "AuditConfig": { @@ -842,6 +842,11 @@ "description": "A user-defined name of the function. Function names must be unique globally and match pattern `projects/*/locations/*/functions/*`", "type": "string" }, + "satisfiesPzs": { + "description": "Output only. Reserved for future use.", + "readOnly": true, + "type": "boolean" + }, "serviceConfig": { "$ref": "ServiceConfig", "description": "Describes the Service being deployed. Currently deploys services to Cloud Run (fully managed)." diff --git a/cloudfunctions/v2beta/cloudfunctions-gen.go b/cloudfunctions/v2beta/cloudfunctions-gen.go index 7c1c37fa4aa..23c728d8018 100644 --- a/cloudfunctions/v2beta/cloudfunctions-gen.go +++ b/cloudfunctions/v2beta/cloudfunctions-gen.go @@ -682,6 +682,9 @@ type Function struct { // `projects/*/locations/*/functions/*` Name string `json:"name,omitempty"` + // SatisfiesPzs: Output only. Reserved for future use. + SatisfiesPzs bool `json:"satisfiesPzs,omitempty"` + // ServiceConfig: Describes the Service being deployed. Currently // deploys services to Cloud Run (fully managed). ServiceConfig *ServiceConfig `json:"serviceConfig,omitempty"` diff --git a/cloudsearch/v1/cloudsearch-api.json b/cloudsearch/v1/cloudsearch-api.json index 13d13ebb48c..bc09c11abd9 100644 --- a/cloudsearch/v1/cloudsearch-api.json +++ b/cloudsearch/v1/cloudsearch-api.json @@ -2096,116 +2096,9 @@ } } }, - "revision": "20230531", + "revision": "20230614", "rootUrl": "https://cloudsearch.googleapis.com/", "schemas": { - "AbuseReportingConfig": { - "description": "Abuse reporting configuration outlining what is supported in this conference.", - "id": "AbuseReportingConfig", - "properties": { - "recordingAllowed": { - "description": "Whether the current call may include video recordings in its abuse reports.", - "type": "boolean" - }, - "writtenUgcAllowed": { - "description": "Whether the current call may include user generated content (chat, polls, Q\u0026A...) in its abuse reports.", - "type": "boolean" - } - }, - "type": "object" - }, - "AckInfo": { - "description": "Information about how devices in a meeting have acked for a session/operation.", - "id": "AckInfo", - "properties": { - "unackedDeviceCount": { - "description": "Output only. Number of meeting devices that have not acked yet.", - "format": "int32", - "readOnly": true, - "type": "integer" - }, - "unackedDeviceIds": { - "description": "Output only. IDs of meeting devices (at most ten are provided) that have not acked yet.", - "items": { - "type": "string" - }, - "readOnly": true, - "type": "array" - } - }, - "type": "object" - }, - "AclFixRequest": { - "description": "The request set by clients to instruct Backend how the user intend to fix the ACL. Technically it's not a request to ACL Fixer, because Backend uses /DriveService.Share to modify Drive ACLs.", - "id": "AclFixRequest", - "properties": { - "recipientEmails": { - "description": "For Spaces messages: This field is ignored. For DMs messages: The list of email addresses that should be added to the Drive item's ACL. In general, the list should not be empty when the boolean \"should_fix\" field is set; otherwise, the list should be empty. During transition - when clients do not specify this field but the \"should_fix\" is true, we follow the legacy behavior: share to all users in the DM regardless of emails. This behavior is being phased out.", - "items": { - "type": "string" - }, - "type": "array" - }, - "role": { - "enum": [ - "UNKNOWN", - "READER", - "COMMENTER", - "WRITER" - ], - "enumDescriptions": [ - "", - "", - "", - "" - ], - "type": "string" - }, - "shouldFix": { - "description": "Whether to attempt to fix the ACL by adding the room or DM members to the Drive file's ACL.", - "type": "boolean" - } - }, - "type": "object" - }, - "AclFixStatus": { - "description": "The message reconstructed based on information in the response of /PermissionFixOptionsService.Query (or the Apiary API that wraps it). Indicates the ability of the requester to change the access to the Drive file for the room roster or the DM members. Used in GetMessagePreviewMetadataResponse only.", - "id": "AclFixStatus", - "properties": { - "fixability": { - "enum": [ - "UNKNOWN", - "ALREADY_ACCESSIBLE", - "CAN_FIX", - "CANNOT_FIX", - "ACL_FIXER_ERROR" - ], - "enumDescriptions": [ - "", - "", - "", - "", - "" - ], - "type": "string" - }, - "fixableEmailAddress": { - "description": "List of recipient email addresses for which access can be granted. This field contains the same email addresses from the GetMessagePreviewMetadata request if all recipients can be successfully added to the ACL as determined by Drive ACL Fixer. For now, the field is non-empty if and only if the \"fixability\" value is \"CAN_FIX\".", - "items": { - "type": "string" - }, - "type": "array" - }, - "outOfDomainWarningEmailAddress": { - "description": "List of recipient email addresses for which an out-of-domain-sharing warning must be shown, stating that these email addresses are not in the Google Apps organization that the requested item belong to. Empty if all recipients are in the same Google Apps organization.", - "items": { - "type": "string" - }, - "type": "array" - } - }, - "type": "object" - }, "AclInfo": { "description": "Next tag: 4", "id": "AclInfo", @@ -2243,4737 +2136,4314 @@ }, "type": "object" }, - "ActionParameter": { - "description": "List of string parameters that developers can specify when the above action method (in apps script) is invoked. An example use case is for 3 snooze buttons: snooze now, snooze 1 day, snooze next week. Developers can have action method = snooze() and pass the snooze type and snooze time in list of string parameters.", - "id": "ActionParameter", + "Action": { + "id": "Action", "properties": { - "key": { + "title": { + "description": "[Required] Title of the action.", "type": "string" }, - "value": { + "url": { + "description": "[Optional] Url of the action.", "type": "string" } }, "type": "object" }, - "AddOnFrameStartingState": { - "description": "Starting state for an individual add-on frame.", - "id": "AddOnFrameStartingState", + "AuditLoggingSettings": { + "description": "Represents the settings for Cloud audit logging", + "id": "AuditLoggingSettings", "properties": { - "additionalData": { - "description": "Additional data internal to the add-on that can be used to initialize itself.", - "type": "string" + "logAdminReadActions": { + "description": "Indicates whether audit logging is on/off for admin activity read APIs i.e. Get/List DataSources, Get/List SearchApplications etc.", + "type": "boolean" }, - "uri": { - "description": "The uri of the artifact being used for an add-on co-activity.", + "logDataReadActions": { + "description": "Indicates whether audit logging is on/off for data access read APIs i.e. ListItems, GetItem etc.", + "type": "boolean" + }, + "logDataWriteActions": { + "description": "Indicates whether audit logging is on/off for data access write APIs i.e. IndexItem etc.", + "type": "boolean" + }, + "project": { + "description": "The resource name of the GCP Project to store audit logs. Cloud audit logging will be enabled after project_name has been updated through CustomerService. Format: projects/{project_id}", "type": "string" } }, "type": "object" }, - "AddOnStartingState": { - "description": "Starting state properties for add-on co-activity.", - "id": "AddOnStartingState", - "properties": { - "addOnFrameStartingStates": { - "additionalProperties": { - "$ref": "AddOnFrameStartingState" - }, - "description": "List of starting state frames for the add-on co-activity. Keys for this map are the values of the AddOnFrameType enum.", - "type": "object" - } - }, - "type": "object" - }, - "AddonComposeUiActionMarkup": { - "id": "AddonComposeUiActionMarkup", + "BackgroundColoredText": { + "id": "BackgroundColoredText", "properties": { - "type": { + "backgroundColor": { + "description": "[Optional] Color of the background. The text color can change depending on the selected background color, and the client does not have control over this. If missing, the background will be WHITE.", "enum": [ - "UNSPECIFIED", - "DISMISS" + "UNKNOWN_COLOR", + "WHITE", + "YELLOW", + "ORANGE", + "GREEN", + "BLUE", + "GREY" ], "enumDescriptions": [ - "Default. When unspecified, no action is taken.", - "Dismisses the add-on compose UI." + "", + "", + "", + "", + "", + "", + "" ], "type": "string" + }, + "text": { + "description": "[Required] The text to display.", + "type": "string" } }, "type": "object" }, - "AffectedMembership": { - "description": "Earlier we used to populate just the affected_members list and inferred the new membership state (roles didn't exist back then) from the Type. go/dynamite-finra required backend to know the previous membership state to reconstruct membership history. The proper solution involved cleaning up up Type enum, but it was used in many, many places. This was added as a stop-gap solution to unblock FINRA without breaking everything. Later role update and target audience update started relying on this to communicate information to clients about what transition happened. So this is now required to be populated and should be in sync with affected_members for new messages.", - "id": "AffectedMembership", + "BooleanOperatorOptions": { + "description": "Used to provide a search operator for boolean properties. This is optional. Search operators let users restrict the query to specific fields relevant to the type of item being searched.", + "id": "BooleanOperatorOptions", "properties": { - "affectedMember": { - "$ref": "MemberId" - }, - "priorMembershipRole": { - "enum": [ - "ROLE_UNKNOWN", - "ROLE_NONE", - "ROLE_INVITEE", - "ROLE_MEMBER", - "ROLE_OWNER" - ], - "enumDescriptions": [ - "", - "This role is used when a user is forcibly removed from a room by another user. They will no longer be able to search for the room, but their history will be retained.", - "This role is used for two purposes. 1. A group is invited to a room, making it discoverable for its members. 2. A user was part of a room, but willingly left the room.", - "--- Following roles are for joined members of a roster. --- Default role for any joined user. Has basic capabilities within a room.", - "Role assigned to room creators and explicitly promoted members. Has broad powers to manage the room." - ], - "type": "string" - }, - "priorMembershipState": { - "enum": [ - "MEMBER_UNKNOWN", - "MEMBER_INVITED", - "MEMBER_JOINED", - "MEMBER_NOT_A_MEMBER", - "MEMBER_FAILED" - ], - "enumDescriptions": [ - "Default state, do not use", - "An invitation to the space has been sent", - "User has joined the space", - "User is not a member", - "This state should never be stored in Spanner. It is a state for responses to the clients to indicate that membership mutations have failed and the member is in its previous state." - ], - "type": "string" - }, - "targetMembershipRole": { - "enum": [ - "ROLE_UNKNOWN", - "ROLE_NONE", - "ROLE_INVITEE", - "ROLE_MEMBER", - "ROLE_OWNER" - ], - "enumDescriptions": [ - "", - "This role is used when a user is forcibly removed from a room by another user. They will no longer be able to search for the room, but their history will be retained.", - "This role is used for two purposes. 1. A group is invited to a room, making it discoverable for its members. 2. A user was part of a room, but willingly left the room.", - "--- Following roles are for joined members of a roster. --- Default role for any joined user. Has basic capabilities within a room.", - "Role assigned to room creators and explicitly promoted members. Has broad powers to manage the room." - ], + "operatorName": { + "description": "Indicates the operator name required in the query in order to isolate the boolean property. For example, if operatorName is *closed* and the property's name is *isClosed*, then queries like *closed:\u003cvalue\u003e* show results only where the value of the property named *isClosed* matches *\u003cvalue\u003e*. By contrast, a search that uses the same *\u003cvalue\u003e* without an operator returns all items where *\u003cvalue\u003e* matches the value of any String properties or text within the content field for the item. The operator name can only contain lowercase letters (a-z). The maximum length is 32 characters.", "type": "string" } }, "type": "object" }, - "AllAuthenticatedUsersProto": { - "description": "Represents a principal who has authenticated as any kind of user which the application understands. This is typically used for \"wiki-like\" security, where anyone is allowed access so long as they can be held accountable for that access. Since the purpose is knowing whom to blame, it is up to the application to decide what kinds of users it knows how to blame. For example, an application might choose to include GAIA users in \"all authenticated users\", but not include MDB users. Nothing here.", - "id": "AllAuthenticatedUsersProto", - "properties": {}, + "BooleanPropertyOptions": { + "description": "The options for boolean properties.", + "id": "BooleanPropertyOptions", + "properties": { + "operatorOptions": { + "$ref": "BooleanOperatorOptions", + "description": "If set, describes how the boolean should be used as a search operator." + } + }, "type": "object" }, - "Annotation": { - "description": "NOTE WHEN ADDING NEW PROTO FIELDS: Be sure to add datapol annotations to new fields with potential PII, so they get scrubbed when logging protos for errors. NEXT TAG: 32", - "id": "Annotation", + "CheckAccessResponse": { + "id": "CheckAccessResponse", "properties": { - "babelPlaceholderMetadata": { - "$ref": "BabelPlaceholderMetadata" - }, - "cardCapabilityMetadata": { - "$ref": "CardCapabilityMetadata", - "description": "LINT.ThenChange(//depot/google3/java/com/google/apps/dynamite/v1/backend/action/common/SystemMessageHelper.java)" - }, - "chipRenderType": { - "description": "Whether the annotation should be rendered as a preview chip. If this is missing or unspecified, fallback to should_not_render on the metadata.", - "enum": [ - "CHIP_RENDER_TYPE_UNSPECIFIED", - "RENDER", - "RENDER_IF_POSSIBLE", - "DO_NOT_RENDER" - ], - "enumDescriptions": [ - "", - "Clients must render the annotation as a preview chip, and if they cannot render this many Annotations, show a fallback card.", - "Client can render the annotation if it has room to render it.", - "Client should not render the annotation as a preview chip." - ], - "type": "string" - }, - "componentSearchInfo": { - "$ref": "AppsDynamiteSharedMessageComponentSearchInfo", - "description": "Contains additional metadata that further enhances the annotation when it is returned as part of search response. For example, this can be used to define how the annotation matches the search. Information can be used to highlight in rendering search results. The following are the different annotation text fields that can be highlighted by this field: 1. DriveMetadata.title 2. UploadMetadata.content_name 3. GsuiteIntegrationMetadata.TasksMessageIntegrationRenderData.title 4. GsuiteIntegrationMetadata.CalendarEventAnnotationData.title" - }, - "consentedAppUnfurlMetadata": { - "$ref": "ConsentedAppUnfurlMetadata" - }, - "customEmojiMetadata": { - "$ref": "CustomEmojiMetadata" - }, - "dataLossPreventionMetadata": { - "$ref": "DataLossPreventionMetadata" - }, - "driveMetadata": { - "$ref": "DriveMetadata", - "description": "Chip annotations" - }, - "formatMetadata": { - "$ref": "FormatMetadata" - }, - "groupRetentionSettingsUpdated": { - "$ref": "GroupRetentionSettingsUpdatedMetaData" - }, - "gsuiteIntegrationMetadata": { - "$ref": "GsuiteIntegrationMetadata", - "description": "Metadata for 1P integrations like tasks, calendar. These are supported only through integration server as 1P integrations use the integration API (which in turn uses backend API with special permissions) to post messages. Clients should never set this. LINT.IfChange" - }, - "incomingWebhookChangedMetadata": { - "$ref": "IncomingWebhookChangedMetadata" - }, - "inlineRenderFormat": { - "description": "The inline render format of this annotation. go/drive-smart-chips-chat-v2.", - "enum": [ - "INLINE_RENDER_FORMAT_UNSPECIFIED", - "SMART_CHIP" - ], - "enumDescriptions": [ - "", - "" - ], - "type": "string" - }, - "integrationConfigUpdated": { - "$ref": "IntegrationConfigUpdatedMetadata", - "description": "LINT.ThenChange(//depot/google3/java/com/google/apps/dynamite/v1/backend/action/common/SystemMessageHelper.java)" - }, - "interactionData": { - "$ref": "InteractionData", - "description": "Additional interaction data for this annotation." - }, - "length": { - "description": "Length of the text_body substring beginning from start_index the Annotation corresponds to.", - "format": "int32", - "type": "integer" - }, - "localId": { - "description": "* A client-assigned ID for this annotation. This is helpful in matching the back-filled annotations to the original annotations on client side, without having to re-parse the message. There is no guarantee an annotation has a local_id, it's a purely client used and controlled field with no guarantee of uniqueness.", - "type": "string" - }, - "membershipChanged": { - "$ref": "MembershipChangedMetadata", - "description": "Metadata for system messages. Clients should never set this. LINT.IfChange" - }, - "readReceiptsSettingsMetadata": { - "$ref": "ReadReceiptsSettingsUpdatedMetadata" - }, - "requiredMessageFeaturesMetadata": { - "$ref": "RequiredMessageFeaturesMetadata", - "description": "Metadata that defines all of the required features that must be rendered in the message. Clients can use this to see whether they support the entire message, or show a fallback chip otherwise. See go/message-quoting-client-to-server for details. LINT.ThenChange( //depot/google3/java/com/google/apps/dynamite/v1/allshared/parser/AnnotationSanitizer.java, //depot/google3/java/com/google/apps/dynamite/v1/backend/action/common/SystemMessageHelper.java, //depot/google3/java/com/google/caribou/eli/mediation/chat/AnnotationConverter.java )" - }, - "roomUpdated": { - "$ref": "RoomUpdatedMetadata" - }, - "serverInvalidated": { - "description": "Whether or not the annotation is invalidated by the server. Example of situations for invalidation include: when the URL is malformed, or when Drive item ID is rejected by Drive Service.", + "hasAccess": { + "description": "Returns true if principal has access. Returns false otherwise.", "type": "boolean" - }, - "slashCommandMetadata": { - "$ref": "SlashCommandMetadata" - }, - "startIndex": { - "description": "Start index (0-indexed) of the Message text the Annotation corresponds to, inclusive.", - "format": "int32", - "type": "integer" - }, - "type": { - "description": "Type of the Annotation.", + } + }, + "type": "object" + }, + "CompositeFilter": { + "id": "CompositeFilter", + "properties": { + "logicOperator": { + "description": "The logic operator of the sub filter.", "enum": [ - "TYPE_UNSPECIFIED", - "URL", - "DRIVE_FILE", - "DRIVE_DOC", - "DRIVE_SHEET", - "DRIVE_SLIDE", - "DRIVE_FORM", - "USER_MENTION", - "SLASH_COMMAND", - "CONSENTED_APP_UNFURL", - "VIDEO", - "FORMAT_DATA", - "IMAGE", - "PDF", - "VIDEO_CALL", - "UPLOAD_METADATA", - "GSUITE_INTEGRATION", - "CUSTOM_EMOJI", - "CARD_CAPABILITY", - "DATA_LOSS_PREVENTION", - "REQUIRED_MESSAGE_FEATURES_METADATA", - "MEMBERSHIP_CHANGED", - "ROOM_UPDATED", - "GROUP_RETENTION_SETTINGS_UPDATED", - "BABEL_PLACEHOLDER", - "READ_RECEIPTS_SETTINGS_UPDATED", - "INCOMING_WEBHOOK_CHANGED", - "INTEGRATION_CONFIG_UPDATED", - "INVITATION" + "AND", + "OR", + "NOT" ], "enumDescriptions": [ - "Default value for the enum. DO NOT USE.", - "These can have overlaps, i.e. same message can have multiple of these. For example a Drive link to a PDF can have URL, DRIVE_FILE and PDF all set Links", - "Any drive file", - "", - "", - "", - "", - "", - "", - "", - "Any video, not just youtube, the url decides how to play", - "UI should not be concerned with FORMAT_DATA", - "", - "", - "For Thor integration", - "Blobstore uploads", - "Generic annotation for gsuite integrations", - "", - "Card capability for in-stream widgets.", - "", - "Clients can use this to see whether they support the entire message, or show a fallback chip otherwise.", - "Annotation types for system messages. Clients should never set this.", - "", - "", - "", - "", - "", + "Logical operators, which can only be applied to sub filters.", "", - "Message-level annotations. First message of an invite. Should not be set by clients." + "NOT can only be applied on a single sub filter." ], "type": "string" }, - "uniqueId": { - "description": "* A unique server-assigned ID for this annotation. This is helpful in matching annotation objects when fetched from service. All uploads should have a unique_id after the message they are attached to is successfully sent. Url annotations that originally were uploads (i.e. policy violations) will have a unique_id after the message they are attached to is successfully sent. No other url annotations should have a unique_id. All drive annotations should have a unique_id after the message they are attached to is successfully sent.", - "type": "string" - }, - "uploadMetadata": { - "$ref": "UploadMetadata" - }, - "urlMetadata": { - "$ref": "UrlMetadata" - }, - "userMentionMetadata": { - "$ref": "UserMentionMetadata", - "description": "Metadata that clients can set for annotations. LINT.IfChange In-text annotations" - }, - "videoCallMetadata": { - "$ref": "VideoCallMetadata" - }, - "youtubeMetadata": { - "$ref": "YoutubeMetadata" + "subFilters": { + "description": "Sub filters.", + "items": { + "$ref": "Filter" + }, + "type": "array" } }, "type": "object" }, - "AnnotationInfo": { - "description": "Information about the screen annotation session.", - "id": "AnnotationInfo", + "Content": { + "id": "Content", "properties": { - "coannotatorDeviceIds": { - "description": "The device resource names of other devices which can annotate the screen.", + "actions": { + "description": "[Optional] Actions for this card.", "items": { - "type": "string" + "$ref": "Action" }, "type": "array" }, - "isActive": { - "description": "Whether the annotation is active.", - "type": "boolean" + "description": { + "$ref": "SafeHtmlProto", + "description": "[Optional] Description of the card." + }, + "subtitle": { + "$ref": "BackgroundColoredText", + "description": "[Optional] Subtitle of the card." + }, + "title": { + "$ref": "BackgroundColoredText", + "description": "[Optional] Title of the card." } }, "type": "object" }, - "AppId": { - "description": "Identifier of an App.", - "id": "AppId", + "Context": { + "id": "Context", "properties": { - "appType": { - "description": "Enum indicating the type of App this is.", - "enum": [ - "APP_TYPE_UNSPECIFIED", - "APP", - "GSUITE_APP", - "INCOMING_WEBHOOK" - ], - "enumDescriptions": [ - "", - "3P APP eg. external Bots(Asana Bot), 1P Bots(Drive Bot).", - "1P APP eg. Tasks, Meet, Docs, Calendar..", - "Asynchronous messages via an incoming webhook." - ], - "type": "string" - }, - "gsuiteAppType": { - "description": "Enum indicating which 1P App this is when app_type is GSUITE_APP. Determined \u0026 set by the 1P API as a convenience for all users of this identifier(Eg. clients, chime, backend etc.) to map to 1P properties.", - "enum": [ - "GSUITE_APP_TYPE_UNSPECIFIED", - "TASKS_APP", - "CALENDAR_APP", - "DOCS_APP", - "SHEETS_APP", - "SLIDES_APP", - "MEET_APP", - "ASSISTIVE_SUGGESTION_APP", - "CONTACTS_APP", - "ACTIVITY_FEED_APP", - "DRIVE_APP", - "CHAT_IN_MEET_APP", - "SHORTCUT_APP" - ], - "enumDescriptions": [ - "", - "", - "", - "", - "", - "", - "", - "Powered by Bullseye", - "", - "", - "", - "", - "" - ], - "type": "string" + "app": { + "description": "[Optional] App where the card should be shown. If missing, the card will be shown in TOPAZ.", + "items": { + "enum": [ + "UNKNOWN_APP", + "TOPAZ", + "MOMA" + ], + "enumDescriptions": [ + "", + "", + "" + ], + "type": "string" + }, + "type": "array" + }, + "dayOfWeek": { + "description": "[Optional] Day of week when the card should be shown, where 0 is Monday.", + "items": { + "format": "int32", + "type": "integer" + }, + "type": "array" }, - "id": { - "description": "Numeric identifier of the App. Set to Project number for 1/3P Apps. For Webhook, this is WebhookId. Determined \u0026 set by the 1P API from App credentials on the side channel.", + "endDateSec": { + "description": "[Optional] Date (in seconds since epoch) when the card should stop being shown. If missing, end_date_sec will be set to Jan 1st, 2100.", "format": "int64", "type": "string" - } - }, - "type": "object" - }, - "AppsDynamiteSharedActivityFeedAnnotationData": { - "description": "Next Id: 7", - "id": "AppsDynamiteSharedActivityFeedAnnotationData", - "properties": { - "activityFeedMessageCreateTime": { - "description": "Timestamp of when the Activity Feed message that contains this annotation was created. This is roughly when the activity happened, such as when a reaction happened, but will have at least some small delay, since the Activity Feed message is created asynchronously after. This timestamp should only be used for display when the activity create time is not available in the Chat UI, like the time of a reaction.", - "format": "google-datetime", + }, + "endDayOffsetSec": { + "description": "[Optional] End time in seconds, within a day, when the card should stop being shown if it's within [start_date_sec, end_date_sec]. If missing, this is set to 86400 (24 hours x 3600 sec/hour), i.e., midnight next day.", + "format": "int64", "type": "string" }, - "activityFeedMessageId": { - "$ref": "MessageId", - "description": "Unique id of the Activity Feed message used by clients to implement click-to-source. This is the same messageId as the top-level id field for the Activity Feed item." + "locale": { + "description": "[Optional] The locales for which the card should be triggered (e.g., en_US and en_CA). If missing, the card is going to show to clients regardless of their locale.", + "items": { + "type": "string" + }, + "type": "array" }, - "chatItem": { - "$ref": "AppsDynamiteSharedChatItem" + "location": { + "description": "[Optional] Text-free locations where the card should be shown. This is expected to match the user's location in focus. If no location is specified, the card will be shown for any location.", + "items": { + "type": "string" + }, + "type": "array" }, - "sharedUserInfo": { - "$ref": "UserInfo", - "description": "Only populated on read path and should not be persisted in storage." + "query": { + "description": "[Required only for Answer and RHS cards - will be ignored for Homepage] cards. It's the exact case-insensitive queries that will trigger the Answer or RHS card.", + "items": { + "type": "string" + }, + "type": "array" }, - "userInfo": { - "$ref": "AppsDynamiteSharedActivityFeedAnnotationDataUserInfo", - "description": "Use shared_user_info instead." - } - }, - "type": "object" - }, - "AppsDynamiteSharedActivityFeedAnnotationDataUserInfo": { - "description": "UserId of the AF item updater to show and the updater count to show.", - "id": "AppsDynamiteSharedActivityFeedAnnotationDataUserInfo", - "properties": { - "updaterCountDisplayType": { - "description": "Describes how updater_count_to_show should be used.", - "enum": [ - "UPDATER_COUNT_DISPLAY_TYPE_UNSPECIFIED", - "EXACT_COUNT", - "NONZERO_COUNT" - ], - "enumDescriptions": [ - "", - "A precise updater count is known and the value set in updater_count_to_show should be used.", - "A precise updater count could not be calculated, but there is at least one. Any value set in updater_count_to_show should NOT be used." - ], + "startDateSec": { + "description": "[Optional] Date (in seconds since epoch) when the card should start being shown. If missing, start_date_sec will be Jan 1st, 1970 UTC.", + "format": "int64", "type": "string" }, - "updaterCountToShow": { - "description": "The number of updaters for clients to show, currently set to the total number of updaters minus the one set in updater_to_show.", - "format": "int32", - "type": "integer" - }, - "updaterToShow": { - "$ref": "UserId", - "description": "The updater for clients to show." - } - }, - "type": "object" - }, - "AppsDynamiteSharedAppProfile": { - "description": "Optional field for apps overriding display info", - "id": "AppsDynamiteSharedAppProfile", - "properties": { - "avatarEmoji": { - "description": "Displayed user avatar emoji.", + "startDayOffsetSec": { + "description": "[Optional] Start time in seconds, within a day, when the card should be shown if it's within [start_date_sec, end_date_sec]. If 0, the card will be shown from 12:00am on.", + "format": "int64", "type": "string" }, - "avatarUrl": { - "description": "Displayed user avatar url.", - "type": "string" + "surface": { + "description": "[Optional] Surface where the card should be shown in. If missing, the card will be shown in any surface.", + "items": { + "enum": [ + "UNKNOWN_SURFACE", + "DESKTOP", + "ANDROID", + "IOS", + "MOBILE", + "ANY" + ], + "enumDescriptions": [ + "", + "", + "", + "", + "Any mobile device.", + "" + ], + "type": "string" + }, + "type": "array" }, - "name": { - "description": "Displayed user name.", - "type": "string" + "type": { + "description": "[Required] Type of the card (homepage, Answer or RHS).", + "items": { + "enum": [ + "UNKNOWN_CARD_TYPE", + "HOMEPAGE_CARD", + "ANSWER_CARD", + "RHS_CARD" + ], + "enumDescriptions": [ + "", + "", + "", + "" + ], + "type": "string" + }, + "type": "array" } }, "type": "object" }, - "AppsDynamiteSharedAssistantAnnotationData": { - "description": "This is the internal version of the API proto at google3/google/chat/v1/gsuite_message_integration.proto Data used to render Assistant suggestions. See go/bullseye-rendering.", - "id": "AppsDynamiteSharedAssistantAnnotationData", + "ContextAttribute": { + "description": "A named attribute associated with an item which can be used for influencing the ranking of the item based on the context in the request.", + "id": "ContextAttribute", "properties": { - "suggestion": { - "$ref": "AppsDynamiteSharedAssistantSuggestion", - "description": "The suggestion to render in the card." + "name": { + "description": "The name of the attribute. It should not be empty. The maximum length is 32 characters. The name must start with a letter and can only contain letters (A-Z, a-z) or numbers (0-9). The name will be normalized (lower-cased) before being matched.", + "type": "string" }, - "unfulfillable": { - "$ref": "AppsDynamiteSharedAssistantUnfulfillableRequest", - "description": "Set when the initial query was unfulfillable. Only an on-demand unfulfillable query will result in a response (not a proactive query). 1. On-demand: user explicitly invokes the bot 2. Proactive: bot makes proactive suggestion (when available) by listening to all user messages." + "values": { + "description": "Text values of the attribute. The maximum number of elements is 10. The maximum length of an element in the array is 32 characters. The value will be normalized (lower-cased) before being matched.", + "items": { + "type": "string" + }, + "type": "array" } }, "type": "object" }, - "AppsDynamiteSharedAssistantDebugContext": { - "description": "Represents info regarding suggestion debug information.", - "id": "AppsDynamiteSharedAssistantDebugContext", + "CustomerIndexStats": { + "description": "Aggregation of items by status code as of the specified date.", + "id": "CustomerIndexStats", "properties": { - "query": { - "description": "The query that triggered the resulting suggestion.", - "type": "string" + "date": { + "$ref": "Date", + "description": "The date for which statistics were calculated." + }, + "itemCountByStatus": { + "description": "Number of items aggregrated by status code.", + "items": { + "$ref": "ItemCountByStatus" + }, + "type": "array" } }, "type": "object" }, - "AppsDynamiteSharedAssistantFeedbackContext": { - "description": "Data needed to render feedback on the Assistant card", - "id": "AppsDynamiteSharedAssistantFeedbackContext", + "CustomerQueryStats": { + "id": "CustomerQueryStats", "properties": { - "feedbackChips": { - "description": "Specifies a list of feedback chips to show", + "date": { + "$ref": "Date", + "description": "The date for which query stats were calculated. Stats calculated on the next day close to midnight are returned." + }, + "queryCountByStatus": { "items": { - "$ref": "AppsDynamiteSharedAssistantFeedbackContextFeedbackChip" + "$ref": "QueryCountByStatus" }, "type": "array" - }, - "thumbsFeedback": { - "description": "Whether the thumbs feedback is provided", - "enum": [ - "THUMBS_FEEDBACK_UNSPECIFIED", - "NONE_SELECTED", - "UP", - "DOWN" - ], - "enumDescriptions": [ - "Unspecified thumbs state", - "Thumbs are not selected", - "Thumbs up selected", - "Thumbs down selected" - ], - "type": "string" } }, "type": "object" }, - "AppsDynamiteSharedAssistantFeedbackContextFeedbackChip": { - "description": "Suggestion chips for users to indicate positive or negative feedback", - "id": "AppsDynamiteSharedAssistantFeedbackContextFeedbackChip", + "CustomerSearchApplicationStats": { + "description": "Search application stats for a customer for the given date.", + "id": "CustomerSearchApplicationStats", "properties": { - "feedbackChipType": { - "description": "What type of chip to display", - "enum": [ - "FEEDBACK_CHIP_TYPE_UNSPECIFIED", - "WRONG_TRIGGER", - "WRONG_FILE", - "CORRECT_TRIGGER", - "CORRECT_FILE", - "DISRUPTIVE", - "OTHER" - ], - "enumDescriptions": [ - "Unspecified type of feedback chip", - "Bad/noisy triggering", - "Incorrect files were presented", - "The Assistant card triggered appropriately", - "The correct files were presented", - "The feature is disruptive", - "Other reason" - ], + "count": { + "description": "The count of search applications for the date.", + "format": "int64", "type": "string" }, - "state": { - "description": "Whether the chip has been selected", - "enum": [ - "FEEDBACK_CHIP_STATE_UNSPECIFIED", - "SELECTED", - "UNSELECTED" - ], - "enumDescriptions": [ - "Unspecified selection state", - "Chip is selected", - "Chip is not selected" - ], - "type": "string" + "date": { + "$ref": "Date", + "description": "The date for which search application stats were calculated." } }, "type": "object" }, - "AppsDynamiteSharedAssistantSessionContext": { - "description": "Session context specific for Assistant suggestions.", - "id": "AppsDynamiteSharedAssistantSessionContext", + "CustomerSessionStats": { + "id": "CustomerSessionStats", "properties": { - "contextualSessionId": { - "description": "Unique identifier populated by the contextual request handler for each vertical (Ex: File Suggestions, Smart Scheduling, etc.) that can be used to track sessions end-to-end. May span multiple users (sender-specific).", + "date": { + "$ref": "Date", + "description": "The date for which session stats were calculated. Stats are calculated on the following day, close to midnight PST, and then returned." + }, + "searchSessionsCount": { + "description": "The count of search sessions on the day", + "format": "int64", "type": "string" } }, "type": "object" }, - "AppsDynamiteSharedAssistantSuggestion": { - "description": "Data for an Assistant suggestion.", - "id": "AppsDynamiteSharedAssistantSuggestion", + "CustomerSettings": { + "description": "Represents settings at a customer level.", + "id": "CustomerSettings", "properties": { - "debugContext": { - "$ref": "AppsDynamiteSharedAssistantDebugContext", - "description": "Info regarding suggestion debug information." - }, - "feedbackContext": { - "$ref": "AppsDynamiteSharedAssistantFeedbackContext", - "description": "Data for rendering feedback." - }, - "findDocumentSuggestion": { - "$ref": "AppsDynamiteSharedFindDocumentSuggestion", - "description": "Suggestion type that suggests documents (docs, slides, sheets)." - }, - "serializedSuggestions": { - "description": "String representation of the suggestions provided.", - "type": "string" + "auditLoggingSettings": { + "$ref": "AuditLoggingSettings", + "description": "Audit Logging settings for the customer. If update_mask is empty then this field will be updated based on UpdateCustomerSettings request." }, - "sessionContext": { - "$ref": "AppsDynamiteSharedAssistantSessionContext", - "description": "Session context specific to the Assistant suggestion." + "vpcSettings": { + "$ref": "VPCSettings", + "description": "VPC SC settings for the customer. If update_mask is empty then this field will be updated based on UpdateCustomerSettings request." } }, "type": "object" }, - "AppsDynamiteSharedAssistantUnfulfillableRequest": { - "description": "Data for a response to an unfulfillable request.", - "id": "AppsDynamiteSharedAssistantUnfulfillableRequest", - "properties": {}, - "type": "object" - }, - "AppsDynamiteSharedAvatarInfo": { - "id": "AppsDynamiteSharedAvatarInfo", + "CustomerUserStats": { + "id": "CustomerUserStats", "properties": { - "emoji": { - "$ref": "AppsDynamiteSharedEmoji" + "date": { + "$ref": "Date", + "description": "The date for which session stats were calculated. Stats calculated on the next day close to midnight are returned." + }, + "oneDayActiveUsersCount": { + "description": "The count of unique active users in the past one day", + "format": "int64", + "type": "string" + }, + "sevenDaysActiveUsersCount": { + "description": "The count of unique active users in the past seven days", + "format": "int64", + "type": "string" + }, + "thirtyDaysActiveUsersCount": { + "description": "The count of unique active users in the past thirty days", + "format": "int64", + "type": "string" } }, "type": "object" }, - "AppsDynamiteSharedBackendUploadMetadata": { - "description": "Metadata used only in Dynamite backend for uploaded attachments. NEXT ID: 20", - "id": "AppsDynamiteSharedBackendUploadMetadata", + "DataSource": { + "description": "Datasource is a logical namespace for items to be indexed. All items must belong to a datasource. This is the prerequisite before items can be indexed into Cloud Search.", + "id": "DataSource", "properties": { - "blobPath": { - "description": "Blobstore path for the uploaded attachment", - "type": "string" + "disableModifications": { + "description": "If true, sets the datasource to read-only mode. In read-only mode, the Indexing API rejects any requests to index or delete items in this source. Enabling read-only mode does not stop the processing of previously accepted data.", + "type": "boolean" }, - "contentName": { - "description": "The original file name for the content, not the full path.", - "type": "string" + "disableServing": { + "description": "Disable serving any search or assist results.", + "type": "boolean" }, - "contentSize": { - "description": "Scotty reported content size by default. http://google3/uploader/agent/scotty_agent.proto?l=101\u0026rcl=140889785", - "format": "int64", + "displayName": { + "description": "Required. Display name of the datasource The maximum length is 300 characters.", "type": "string" }, - "contentType": { - "description": "Type is from Scotty's best_guess by default: http://google3/uploader/agent/scotty_agent.proto?l=51\u0026rcl=140889785", - "type": "string" + "indexingServiceAccounts": { + "description": "List of service accounts that have indexing access.", + "items": { + "type": "string" + }, + "type": "array" }, - "dlpScanOutcome": { - "description": "The results of the Data Loss Prevention (DLP) scan of the attachment. DEPRECATED: use dlp_scan_summary instead.", - "enum": [ - "SCAN_UNKNOWN_OUTCOME", - "SCAN_SUCCEEDED_NO_VIOLATION", - "SCAN_SUCCEEDED_BLOCK", - "SCAN_SUCCEEDED_WARN", - "SCAN_SUCCEEDED_AUDIT_ONLY", - "SCAN_FAILURE_EXCEPTION", - "SCAN_FAILURE_RULE_FETCH_FAILED", - "SCAN_FAILURE_TIMEOUT", - "SCAN_FAILURE_ALL_RULES_FAILED", - "SCAN_FAILURE_ILLEGAL_STATE_FOR_ATTACHMENTS", - "SCAN_SKIPPED_EXPERIMENT_DISABLED", - "SCAN_SKIPPED_CONSUMER", - "SCAN_SKIPPED_NON_HUMAN_USER", - "SCAN_SKIPPED_NO_MESSAGE", - "SCAN_SKIPPED_USER_ACKNOWLEDGED_WARNING", - "SCAN_SKIPPED_MESSAGE_FROM_UNSUPPORTED_ORIGIN", - "SCAN_SKIPPED_MESSAGE_SENT_DURING_SPACE_MIGRATION", - "SCAN_RULE_EVALUATION_SKIPPED_NO_RULES_FOUND", - "SCAN_RULE_EVALUATION_SKIPPED_NO_APPLICABLE_RULES_FOR_ACTION_PARAMS", - "SCAN_RULE_EVALUATION_SKIPPED_NO_APPLICABLE_RULES_FOR_TRIGGER", - "SCAN_RULE_EVALUATION_SKIPPED_NO_APPLICABLE_RULES", - "SCAN_RULE_EVALUATION_SKIPPED_CHANGELING_PERMANENT_ERROR", - "SCAN_RULE_EVALUATION_SKIPPED_CHANGELING_EMPTY_RESPONSE", - "SCAN_RULE_EVALUATION_SKIPPED_UNSUPPORTED_FILE_TYPE", - "SCAN_SUCCEEDED_WITH_FAILURES_NO_VIOLATION", - "SCAN_SUCCEEDED_WITH_FAILURES_BLOCK", - "SCAN_SUCCEEDED_WITH_FAILURES_WARN", - "SCAN_SUCCEEDED_WITH_FAILURES_AUDIT_ONLY" - ], - "enumDescriptions": [ - "", - "This means no violation is detected on the given message/attachment.", - "Violation is detected. The message/attachment will be blocked (or deleted if this happens in failure recovery), the user will be warned, and the violation will be logged to BIP.", - "Violation is detected. The user will be warned, and the violation will be logged to BIP.", - "Violation is detected and will be logged to BIP (no user-facing action performed).", - "Rule fetch and evaluation were attempted but an exception occurred.", - "Rule fetch was attempted but failed, so rule evaluation could not be performed.", - "Rule fetch and evaluation were attempted but the scanning timed out.", - "Rule fetch completed and evaluation were attempted, but all of the rules failed to be evaluated.", - "An IllegalStateException is thrown when executing DLP on attachments. This could happen if the space row is missing.", - "Rule fetch and evaluation is skipped because DLP is not enabled for the user.", - "Rule fetch and evaluation are skipped because the user sending message is consumer.", - "Rule fetch and evaluation are skipped because the user sending message is a non-human user (i.e. a bot).", - "Rule fetch and evaluation are skipped because there is no message to scan. Deprecated: this should not happen since there must be message or attachment for DLP scan.", - "Rule fetch and evaluation are skipped because the user has acknowledged the warning on the message that triggered the Warn violation and sent the message anyway.", - "Scanning was skipped because the message originated from Interop or Babel.", - "Scanning was skipped because the message was sent while the space is in migration mode. See go/migration-mode for details.", - "Rule fetch happened, but rule evaluation is skipped because no rules were found.", - "Rule fetch happened, but rule evaluation is skipped because none of the rules are applicable to the given action params. Deprecated. Use SCAN_RULE_EVALUATION_SKIPPED_NO_APPLICABLE_RULES", - "Rule fetch happened, but rule evaluation is skipped because none of the rules are applicable to the given trigger. Deprecated. Use SCAN_RULE_EVALUATION_SKIPPED_NO_APPLICABLE_RULES", - "Rule fetch happened, but rule evaluation is skipped because none of the rules are applicable.", - "Rule fetch happened, but rule evaluation is skipped because Changeling returned permanent failure while converting the attachment to text.", - "Rule fetch happened, but rule evaluation is skipped because Changeling returned an empty response while converting the attachment to text.", - "Rule fetch happened, but rule evaluation is skipped because file type is unsupported.", - "Rules were fetched but some evaluations failed. No violation was found in the rules that were successfully evaluated.", - "Rules were fetched but some evaluations failed. A blocking violation was found in the rules that were successfully evaluated. The message/attachment will be blocked, the user will be notified, and the violation will be logged to BIP. A blocking violation takes precedence over all other violation types.", - "Rules were fetched but some evaluations failed. A warn violation was found in the rules that were successfully evaluated. The user will be warned, and the violation will be logged to BIP.", - "Rules were fetched but some evaluations failed. An audit-only violation was found in the rules that were successfully evaluated. The violation will be logged to BIP (no user-facing action performed)." - ], - "type": "string" + "itemsVisibility": { + "description": "This field restricts visibility to items at the datasource level. Items within the datasource are restricted to the union of users and groups included in this field. Note that, this does not ensure access to a specific item, as users need to have ACL permissions on the contained items. This ensures a high level access on the entire datasource, and that the individual items are not shared outside this visibility.", + "items": { + "$ref": "GSuitePrincipal" + }, + "type": "array" }, - "dlpScanSummary": { - "$ref": "DlpScanSummary", - "description": "Summary of a Data Loss Prevention (DLP) scan of the attachment. Attachments are evaluated in the backend when they are uploaded." + "name": { + "description": "The name of the datasource resource. Format: datasources/{source_id}. The name is ignored when creating a datasource.", + "type": "string" }, - "experiment": { - "description": "The list of experiments this video is enabled for", + "operationIds": { + "description": "IDs of the Long Running Operations (LROs) currently running for this schema.", "items": { - "enum": [ - "UNKNOWN_EXPERIMENT", - "KRONOS_FAST_FORMAT" - ], - "enumDescriptions": [ - "", - "" - ], "type": "string" }, "type": "array" }, - "groupId": { - "$ref": "GroupId", - "description": "GroupId to which this attachment is uploaded." - }, - "isClientSideTranscodedVideo": { - "description": "If the uploaded file is a video that has been transcoded on the client side", + "returnThumbnailUrls": { + "description": "Can a user request to get thumbnail URI for Items indexed in this data source.", "type": "boolean" }, - "migratedFromHangoutsMetadata": { - "$ref": "AppsDynamiteSharedBackendUploadMetadataMigratedFromHangoutsMetadata" - }, - "originalDimension": { - "$ref": "AppsDynamiteSharedDimension", - "description": "Original dimension of the content. Only set for image attachments." - }, - "quoteReplyMessageId": { - "$ref": "MessageId", - "description": "The message id of a quote reply referencing this attachment. When present, this attachment has been quoted in a reply message. Normally, the attachment is fetched through the message id in the blob_path, but in the case of a quote reply, the blob_path would contain the quoted message id. Thus this message id field is needed to fetch the quote reply message instead. This field is conditionally populated at read time for quotes and never persisted in storage. See go/message-quoting-attachments for more context." - }, - "sha256": { - "description": "The SHA256 hash of the attachment bytes.", - "format": "byte", - "type": "string" - }, - "uploadIp": { - "description": "User IP address at upload time. Ex. \"123.1.2.3\". Used by Ares abuse scanning.", - "type": "string" - }, - "uploadTimestampUsec": { - "description": "Timestamp of when user finished uploading the content.", - "format": "int64", - "type": "string" - }, - "videoId": { - "description": "VideoID of the video attachments. This ID shall meets the Youtube ID format of 16 hex characters. For example, '4c14b8825af6059b' is a valid ID.", - "type": "string" - }, - "videoThumbnailBlobId": { - "description": "Full Blobstore ID for the video thumbnail.", - "type": "string" - }, - "virusScanResult": { - "description": "Result for a virus scan.", - "enum": [ - "UNKNOWN_VIRUS_SCAN_RESULT", - "CLEAN", - "INFECTED", - "ERROR", - "POLICY_VIOLATION" - ], - "enumDescriptions": [ - "", - "", - "", - "", - "The document violates Google's policy for executables and archives." - ], + "shortName": { + "description": "A short name or alias for the source. This value will be used to match the 'source' operator. For example, if the short name is *\u003cvalue\u003e* then queries like *source:\u003cvalue\u003e* will only return results for this source. The value must be unique across all datasources. The value must only contain alphanumeric characters (a-zA-Z0-9). The value cannot start with 'google' and cannot be one of the following: mail, gmail, docs, drive, groups, sites, calendar, hangouts, gplus, keep, people, teams. Its maximum length is 32 characters.", "type": "string" } }, "type": "object" }, - "AppsDynamiteSharedBackendUploadMetadataMigratedFromHangoutsMetadata": { - "description": "Metadata for attachments migrated from Hangouts", - "id": "AppsDynamiteSharedBackendUploadMetadataMigratedFromHangoutsMetadata", + "DataSourceIndexStats": { + "description": "Aggregation of items by status code as of the specified date.", + "id": "DataSourceIndexStats", "properties": { - "photoId": { - "$ref": "AppsDynamiteSharedBackendUploadMetadataMigratedFromHangoutsMetadataPhotoId" + "date": { + "$ref": "Date", + "description": "The date for which index stats were calculated. If the date of request is not the current date then stats calculated on the next day are returned. Stats are calculated close to mid night in this case. If date of request is current date, then real time stats are returned." }, - "updateTimestampUsec": { - "format": "int64", - "type": "string" + "itemCountByStatus": { + "description": "Number of items aggregrated by status code.", + "items": { + "$ref": "ItemCountByStatus" + }, + "type": "array" } }, "type": "object" }, - "AppsDynamiteSharedBackendUploadMetadataMigratedFromHangoutsMetadataPhotoId": { - "id": "AppsDynamiteSharedBackendUploadMetadataMigratedFromHangoutsMetadataPhotoId", + "DataSourceRestriction": { + "description": "Restriction on Datasource.", + "id": "DataSourceRestriction", "properties": { - "photoId": { - "format": "int64", - "type": "string" + "filterOptions": { + "description": "Filter options restricting the results. If multiple filters are present, they are grouped by object type before joining. Filters with the same object type are joined conjunctively, then the resulting expressions are joined disjunctively. The maximum number of elements is 20. NOTE: Suggest API supports only few filters at the moment: \"objecttype\", \"type\" and \"mimetype\". For now, schema specific filters cannot be used to filter suggestions.", + "items": { + "$ref": "FilterOptions" + }, + "type": "array" }, - "userId": { - "format": "int64", - "type": "string" + "source": { + "$ref": "Source", + "description": "The source of restriction." } }, "type": "object" }, - "AppsDynamiteSharedCalendarEventAnnotationData": { - "id": "AppsDynamiteSharedCalendarEventAnnotationData", + "Date": { + "description": "Represents a whole calendar date, for example a date of birth. The time of day and time zone are either specified elsewhere or are not significant. The date is relative to the [Proleptic Gregorian Calendar](https://en.wikipedia.org/wiki/Proleptic_Gregorian_calendar). The date must be a valid calendar date between the year 1 and 9999.", + "id": "Date", "properties": { - "calendarEvent": { - "$ref": "AppsDynamiteSharedCalendarEventAnnotationDataCalendarEvent" + "day": { + "description": "Day of month. Must be from 1 to 31 and valid for the year and month.", + "format": "int32", + "type": "integer" + }, + "month": { + "description": "Month of date. Must be from 1 to 12.", + "format": "int32", + "type": "integer" }, - "eventCreation": { - "$ref": "AppsDynamiteSharedCalendarEventAnnotationDataEventCreation", - "description": "Notification about the creation of an event." + "year": { + "description": "Year of date. Must be from 1 to 9999.", + "format": "int32", + "type": "integer" } }, "type": "object" }, - "AppsDynamiteSharedCalendarEventAnnotationDataCalendarEvent": { - "id": "AppsDynamiteSharedCalendarEventAnnotationDataCalendarEvent", + "DateOperatorOptions": { + "description": "Optional. Provides a search operator for date properties. Search operators let users restrict the query to specific fields relevant to the type of item being searched.", + "id": "DateOperatorOptions", "properties": { - "endTime": { - "$ref": "AppsDynamiteSharedCalendarEventAnnotationDataCalendarEventTime", - "description": "The end time of the event." - }, - "eventId": { - "description": "ID of the event.", + "greaterThanOperatorName": { + "description": "Indicates the operator name required in the query in order to isolate the date property using the greater-than operator. For example, if greaterThanOperatorName is *closedafter* and the property's name is *closeDate*, then queries like *closedafter:\u003cvalue\u003e* show results only where the value of the property named *closeDate* is later than *\u003cvalue\u003e*. The operator name can only contain lowercase letters (a-z). The maximum length is 32 characters.", "type": "string" }, - "startTime": { - "$ref": "AppsDynamiteSharedCalendarEventAnnotationDataCalendarEventTime", - "description": "The start time of the event." + "lessThanOperatorName": { + "description": "Indicates the operator name required in the query in order to isolate the date property using the less-than operator. For example, if lessThanOperatorName is *closedbefore* and the property's name is *closeDate*, then queries like *closedbefore:\u003cvalue\u003e* show results only where the value of the property named *closeDate* is earlier than *\u003cvalue\u003e*. The operator name can only contain lowercase letters (a-z). The maximum length is 32 characters.", + "type": "string" }, - "title": { - "description": "Title of the event (at the time the message was generated).", + "operatorName": { + "description": "Indicates the actual string required in the query in order to isolate the date property. For example, suppose an issue tracking schema object has a property named *closeDate* that specifies an operator with an operatorName of *closedon*. For searches on that data, queries like *closedon:\u003cvalue\u003e* show results only where the value of the *closeDate* property matches *\u003cvalue\u003e*. By contrast, a search that uses the same *\u003cvalue\u003e* without an operator returns all items where *\u003cvalue\u003e* matches the value of any String properties or text within the content field for the indexed datasource. The operator name can only contain lowercase letters (a-z). The maximum length is 32 characters.", "type": "string" } }, "type": "object" }, - "AppsDynamiteSharedCalendarEventAnnotationDataCalendarEventTime": { - "id": "AppsDynamiteSharedCalendarEventAnnotationDataCalendarEventTime", + "DatePropertyOptions": { + "description": "The options for date properties.", + "id": "DatePropertyOptions", "properties": { - "allDay": { - "$ref": "Date", - "description": "All day event." - }, - "timed": { - "description": "Non all day event.", - "format": "google-datetime", - "type": "string" + "operatorOptions": { + "$ref": "DateOperatorOptions", + "description": "If set, describes how the date should be used as a search operator." } }, "type": "object" }, - "AppsDynamiteSharedCalendarEventAnnotationDataEventCreation": { - "description": "Creation of an event (no extra data for now).", - "id": "AppsDynamiteSharedCalendarEventAnnotationDataEventCreation", - "properties": {}, + "DateValues": { + "description": "List of date values.", + "id": "DateValues", + "properties": { + "values": { + "items": { + "$ref": "Date" + }, + "type": "array" + } + }, "type": "object" }, - "AppsDynamiteSharedCallAnnotationData": { - "description": "Data used to render Meet or Google Voice chips in Chat. See go/dynamite-calling-artifacts-in-chat.", - "id": "AppsDynamiteSharedCallAnnotationData", + "DebugOptions": { + "description": "Shared request debug options for all cloudsearch RPC methods.", + "id": "DebugOptions", "properties": { - "callEndedTimestamp": { - "description": "Timestamp when the call ended. Used to render the call ended system message.", - "format": "google-datetime", + "enableDebugging": { + "description": "If you are asked by Google to help with debugging, set this field. Otherwise, ignore this field.", + "type": "boolean" + } + }, + "type": "object" + }, + "DeleteQueueItemsRequest": { + "id": "DeleteQueueItemsRequest", + "properties": { + "connectorName": { + "description": "The name of connector making this call. Format: datasources/{source_id}/connectors/{ID}", "type": "string" }, - "callMetadata": { - "$ref": "AppsDynamiteSharedCallMetadata", - "description": "Required. Call metadata required to create the call artifacts. For now, the metadata contains only the call id to identify the call. This field allows additional data (e.g. voice call type) to be added if needed in the future." + "debugOptions": { + "$ref": "DebugOptions", + "description": "Common debug options." }, - "callStatus": { - "description": "Required. Indicates the call status for the space. Used to determine the chip's state.", - "enum": [ - "CALL_STATUS_UNSPECIFIED", - "CALL_STARTED", - "CALL_MISSED", - "CALL_ENDED" - ], - "enumDescriptions": [ - "Default value for the enum. DO NOT USE.", - "Indicates that the call has started.", - "Indicates that the call is missed.", - "Indicates that the call has ended." - ], + "queue": { + "description": "The name of a queue to delete items from.", "type": "string" } }, "type": "object" }, - "AppsDynamiteSharedCallMetadata": { - "description": "Metadata required to generate call artifacts. This can either be the metadata for a Meet or, in the future, Google Voice call.", - "id": "AppsDynamiteSharedCallMetadata", + "DisplayedProperty": { + "description": "A reference to a top-level property within the object that should be displayed in search results. The values of the chosen properties is displayed in the search results along with the display label for that property if one is specified. If a display label is not specified, only the values is shown.", + "id": "DisplayedProperty", "properties": { - "meetMetadata": { - "$ref": "AppsDynamiteSharedMeetMetadata", - "description": "Metadata specific for the Meet call." + "propertyName": { + "description": "The name of the top-level property as defined in a property definition for the object. If the name is not a defined property in the schema, an error is given when attempting to update the schema.", + "type": "string" } }, "type": "object" }, - "AppsDynamiteSharedCardClickSuggestion": { - "description": "Card click which identifies one suggestion provided by the app/bot.", - "id": "AppsDynamiteSharedCardClickSuggestion", + "DoubleOperatorOptions": { + "description": "Used to provide a search operator for double properties. This is optional. Search operators let users restrict the query to specific fields relevant to the type of item being searched.", + "id": "DoubleOperatorOptions", "properties": { - "actionId": { - "description": "Identify the button/action that created the suggestion. A simple example would be a card button within the stream, or the id which can identify a specific suggestion.", + "operatorName": { + "description": "Indicates the operator name required in the query in order to use the double property in sorting or as a facet. The operator name can only contain lowercase letters (a-z). The maximum length is 32 characters.", "type": "string" - }, - "suggestionMessageId": { - "$ref": "MessageId", - "description": "The message_id for the message that was posted by the app/bot." } }, "type": "object" }, - "AppsDynamiteSharedChatItem": { - "description": "Next Id: 5", - "id": "AppsDynamiteSharedChatItem", + "DoublePropertyOptions": { + "description": "The options for double properties.", + "id": "DoublePropertyOptions", "properties": { - "activityInfo": { - "description": "Information needed to render the specific type of feed item.", - "items": { - "$ref": "AppsDynamiteSharedChatItemActivityInfo" - }, - "type": "array" - }, - "groupInfo": { - "$ref": "AppsDynamiteSharedChatItemGroupInfo", - "description": "Only populated on read path and should not be persisted in storage." - }, - "messageInfo": { - "$ref": "AppsDynamiteSharedMessageInfo", - "description": "Additional information about the original chat message that isn't captured in the top-level message proto." + "operatorOptions": { + "$ref": "DoubleOperatorOptions", + "description": "If set, describes how the double should be used as a search operator." } }, "type": "object" }, - "AppsDynamiteSharedChatItemActivityInfo": { - "id": "AppsDynamiteSharedChatItemActivityInfo", + "DoubleValues": { + "description": "List of double values.", + "id": "DoubleValues", "properties": { - "feedItemNudge": { - "$ref": "AppsDynamiteSharedChatItemActivityInfoFeedItemNudge" - }, - "feedItemReactions": { - "$ref": "AppsDynamiteSharedChatItemActivityInfoFeedItemReactions" - }, - "feedItemThreadReply": { - "$ref": "AppsDynamiteSharedChatItemActivityInfoFeedItemThreadReply" - }, - "feedItemUserMention": { - "$ref": "AppsDynamiteSharedChatItemActivityInfoFeedItemUserMention" + "values": { + "items": { + "format": "double", + "type": "number" + }, + "type": "array" } }, "type": "object" }, - "AppsDynamiteSharedChatItemActivityInfoFeedItemNudge": { - "description": "Existence of this attribute indicates that the AF item is for a message nudge item.", - "id": "AppsDynamiteSharedChatItemActivityInfoFeedItemNudge", + "DriveFollowUpRestrict": { + "description": "Drive follow-up search restricts (e.g. \"followup:suggestions\").", + "id": "DriveFollowUpRestrict", "properties": { - "nudgeType": { - "description": "Nudge type of the nudge feed item.", + "type": { "enum": [ - "UNDEFINED", - "REPLY", - "FOLLOW_UP" + "UNSPECIFIED", + "FOLLOWUP_SUGGESTIONS", + "FOLLOWUP_ACTION_ITEMS" ], "enumDescriptions": [ "", - "The message receiver is nudged since the message may require a reply.", - "The message creator is nudged since the message may require a follow-up." + "", + "" ], "type": "string" } }, "type": "object" }, - "AppsDynamiteSharedChatItemActivityInfoFeedItemReactions": { - "description": "Existence of this attribute indicates that the AF item is for message reactions, but it is intentionally left empty since the list of reactions can be found in the top-level Message.Reactions.", - "id": "AppsDynamiteSharedChatItemActivityInfoFeedItemReactions", - "properties": {}, - "type": "object" - }, - "AppsDynamiteSharedChatItemActivityInfoFeedItemThreadReply": { - "description": "Existence of this attribute indicates that the AF item is for thread reply.", - "id": "AppsDynamiteSharedChatItemActivityInfoFeedItemThreadReply", + "DriveLocationRestrict": { + "description": "Drive location search restricts (e.g. \"is:starred\").", + "id": "DriveLocationRestrict", "properties": { - "replyType": { - "description": "Reply type of the thread reply feed item. The field is not persisted in storage. It's populated when constructing Activity Feed payload.", + "type": { "enum": [ "UNSPECIFIED", - "ROOT", - "FOLLOWER" + "TRASHED", + "STARRED" ], "enumDescriptions": [ "", - "The thread reply feed item is for the root message poster.", - "The thread reply feed item is for a thread follower who's not the root message poster." + "", + "" ], "type": "string" } }, "type": "object" }, - "AppsDynamiteSharedChatItemActivityInfoFeedItemUserMention": { - "description": "Existence of this attribute indicates that the AF item is for a user mention item.", - "id": "AppsDynamiteSharedChatItemActivityInfoFeedItemUserMention", + "DriveMimeTypeRestrict": { + "description": "Drive mime-type search restricts (e.g. \"type:pdf\").", + "id": "DriveMimeTypeRestrict", "properties": { "type": { - "description": "User mention type", "enum": [ - "TYPE_UNSPECIFIED", - "DIRECT", - "ALL" + "UNSPECIFIED", + "PDF", + "DOCUMENT", + "PRESENTATION", + "SPREADSHEET", + "FORM", + "DRAWING", + "SCRIPT", + "MAP", + "IMAGE", + "AUDIO", + "VIDEO", + "FOLDER", + "ARCHIVE", + "SITE" ], "enumDescriptions": [ - "Mention type not specified.", - "Mentioned directly by name.", - "Mentioned by @all." + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "" ], "type": "string" } }, "type": "object" }, - "AppsDynamiteSharedChatItemGroupInfo": { - "description": "Information about the space that the item originated from. This will be used to display Activity Feed items from rooms, and only contain the necessary information, such as the space name and group attributes. NEXT TAG: 6", - "id": "AppsDynamiteSharedChatItemGroupInfo", + "DriveTimeSpanRestrict": { + "description": "The time span search restrict (e.g. \"after:2017-09-11 before:2017-09-12\").", + "id": "DriveTimeSpanRestrict", "properties": { - "attributeCheckerGroupType": { - "description": "This is needed to determine what type of group the source message came from to support click-to-source.", + "type": { "enum": [ - "ATTRIBUTE_CHECKER_GROUP_TYPE_UNSPECIFIED", - "ONE_TO_ONE_HUMAN_DM", - "ONE_TO_ONE_BOT_DM", - "IMMUTABLE_MEMBERSHIP_GROUP_DM", - "FLAT_ROOM", - "THREADED_ROOM", - "IMMUTABLE_MEMBERSHIP_HUMAN_DM", - "ACTIVITY_FEED", - "SHORTCUT" + "UNSPECIFIED", + "TODAY", + "YESTERDAY", + "LAST_7_DAYS", + "LAST_30_DAYS", + "LAST_90_DAYS" ], "enumDescriptions": [ - "LINT.IfChange", - "A 1:1 DM that has two human users. Deprecated. Use IMMUTABLE_MEMBERSHIP_HUMAN_DM instead.", - "A 1:1 DM between a human user and a bot.", - "A group DM that has multiple human users with immutable group membership. Deprecated. Use IMMUTABLE_MEMBERSHIP_HUMAN_DM instead.", - "A flat room that contains a single thread.", - "A threaded room. Topics in this room are threaded, and users can reply to any topic.", - "A DM with immutable group membership. It can be a 1:1 DM or a group DM with multiple human users.", - "Represents an Activity Feed space. These groups are modeled like flat rooms and contain items for users to catch up on important things. Each user should only have one group of this type. See go/activity-feed. Deprecated: The go/activity-feed project is cancelled and this should no longer be used.", - "Represents a shortcut space. These groups are modeled like flat rooms and contain items for users to catch up on important things such as user mentioned messages and starred messages. LINT.ThenChange(//depot/google3/logs/proto/apps_dynamite/dynamite_visual_element_entry.proto:LoggingGroupType,//depot/google3/java/com/google/apps/dynamite/v1/web/ui/group/groups.js:LoggingGroupType)" + "", + "", + "", + "", + "Not Enabled", + "Not Enabled" ], "type": "string" - }, - "groupName": { - "type": "string" - }, - "groupReadTimeUsec": { - "description": "Timestamp of when the group containing the message has been read by the user.", - "format": "int64", - "type": "string" - }, - "inlineThreadingEnabled": { - "description": "Indicates whether the group has inline replies enabled. If enabled, clients will render the space with inline replies.", - "type": "boolean" } }, "type": "object" }, - "AppsDynamiteSharedContentReportType": { - "description": "Denotes a type of content report a user can send.", - "id": "AppsDynamiteSharedContentReportType", + "EmailAddress": { + "description": "A person's email address.", + "id": "EmailAddress", "properties": { - "systemViolation": { - "description": "Required. Google-defined system violation, covering the most common violations.", - "enum": [ - "VIOLATION_UNSPECIFIED", - "HARASSMENT", - "DISCRIMINATION", - "EXPLICIT_CONTENT", - "SPAM", - "CONFIDENTIAL_INFORMATION", - "SENSITIVE_INFORMATION", - "FRAUD", - "MALWARE", - "ILLEGAL_ACTIVITIES", - "OTHER" - ], - "enumDescriptions": [ - "Default value if unset. Do not use directly. This value should not appear as a selectable violation during content reporting.", - "\"Harassment, offensive, or rude behavior\"", - "\"Discrimination or harmful stereotypes against anyone, including protected groups\"", - "\"Explicit content that's graphic, violent, or otherwise inappropriate\"", - "\"Spam\"", - "\"Confidential information\"", - "\"Sensitive information\"", - "Phishing, impersonation/misrepresentation, or deceiving other users into sharing information under false pretenses.", - "Malware, viruses, Trojan horses, corrupted files, destructive code, etc.", - "Promoting, organizing, or engaging in illegal activities.", - "\"Something else\"" - ], - "type": "string" - } - }, - "type": "object" - }, - "AppsDynamiteSharedCustomEmoji": { - "description": "Proto representation of a custom emoji. May be used in both APIs and in Spanner, but certain fields should be restricted to one or the other. See the per-field documentation for details. NEXT_TAG: 14", - "id": "AppsDynamiteSharedCustomEmoji", - "properties": { - "blobId": { - "description": "ID for the underlying image data in Blobstore. This field should *only* be present in Spanner or within the server, but should not be exposed in public APIs.", - "type": "string" - }, - "contentType": { - "description": "Content type of the file used to upload the emoji. Used for takeout. Written to Spanner when the emoji is created.", - "type": "string" - }, - "createTimeMicros": { - "description": "Time when the Emoji was created, in microseconds. This field may be present in Spanner, within the server, or in public APIs.", - "format": "int64", - "type": "string" - }, - "creatorUserId": { - "$ref": "UserId", - "description": "This field should *never* be persisted to Spanner." - }, - "deleteTimeMicros": { - "description": "Time when the emoji was deleted, in microseconds. This field may be present in Spanner, within the server, or in public APIs. Only present if the emoji has been deleted.", - "format": "int64", - "type": "string" - }, - "ephemeralUrl": { - "description": "Output only. A short-lived URL clients can use for directly accessing a custom emoji image. This field is intended for API consumption, and should *never* be persisted to Spanner.", - "readOnly": true, - "type": "string" - }, - "ownerCustomerId": { - "$ref": "CustomerId", - "description": "This field should *never* be persisted to Spanner." - }, - "readToken": { - "description": "Opaque token that clients use to construct the URL for accessing the custom emoji’s image data. This field is intended for API consumption, and should *never* be persisted to Spanner.", + "customType": { + "description": "If the value of type is custom, this property contains the custom type string.", "type": "string" }, - "shortcode": { - "description": "User-provided, human-readable ID for the custom emoji. Users are expected to observe this field in the UI instead of the UUID. This shortcode should be unique within an organization, but has no global uniqueness guarantees, unlike the UUID. This field should *never* be persisted to Spanner.", + "emailAddress": { + "description": "The email address.", "type": "string" }, - "state": { - "description": "Snapshot of the current state of the emoji, which may differ from the source-of-truth in the CustomEmojis table. This field should *never* be persisted to Spanner.", - "enum": [ - "EMOJI_STATE_UNSPECIFIED", - "EMOJI_ENABLED", - "EMOJI_SYSTEM_DISABLED", - "EMOJI_HIDDEN", - "EMOJI_DELETED" - ], - "enumDescriptions": [ - "", - "Emoji is visible and available to be used, subject to access control requirements.", - "Emoji can no longer be used (e.g. due to a shortcode conflict), but is not removed from existing embeddings.", - "Emoji is hidden from pickers, so new usages are not allowed, but is not removed from existing embeddings.", - "Emoji is removed everywhere and is not available to end-users." - ], + "emailUrl": { + "description": "The URL to send email.", "type": "string" }, - "updateTimeMicros": { - "format": "int64", - "type": "string" + "primary": { + "description": "Indicates if this is the user's primary email. Only one entry can be marked as primary.", + "type": "boolean" }, - "uuid": { - "description": "Unique key for a custom emoji resource. Required. This field is *always* populated.", + "type": { + "description": "The type of the email account. Acceptable values are: \"custom\", \"home\", \"other\", \"work\".", "type": "string" } }, "type": "object" }, - "AppsDynamiteSharedDimension": { - "description": "Dimension for the uploaded attachments.", - "id": "AppsDynamiteSharedDimension", + "EnterpriseTopazFrontendTeamsLink": { + "id": "EnterpriseTopazFrontendTeamsLink", "properties": { - "height": { - "format": "int32", - "type": "integer" + "type": { + "description": "The identifying link type", + "type": "string" }, - "width": { - "format": "int32", - "type": "integer" + "url": { + "$ref": "SafeUrlProto" } }, "type": "object" }, - "AppsDynamiteSharedDlpMetricsMetadata": { - "description": "LINT.IfChange", - "id": "AppsDynamiteSharedDlpMetricsMetadata", + "EnterpriseTopazFrontendTeamsPersonCorePhoneNumber": { + "id": "EnterpriseTopazFrontendTeamsPersonCorePhoneNumber", "properties": { - "dlpStatus": { - "description": "[required] Describes the DLP status of message send and attachment upload events.", + "phoneNumber": { + "description": "Phone number in no particular format (as comes from the Focus profile).", + "type": "string" + }, + "phoneUrl": { + "$ref": "SafeUrlProto", + "description": "Phone number URL" + }, + "type": { "enum": [ - "DLP_STATUS_UNKNOWN", - "DLP_DISABLED", - "DLP_ENABLED_NO_RULE_FETCH", - "DLP_ENABLED_RULES_FETCHED_NO_RULES", - "DLP_ENABLED_RULES_FETCHED_NO_APPLICABLE_RULES", - "DLP_ENABLED_RULES_FETCHED_AND_EVALUATED", - "DLP_ENABLED_SCAN_TIMEOUT", - "DLP_ENABLED_SCAN_FAILED" + "UNKNOWN", + "MOBILE", + "OFFICE", + "OTHER" ], "enumDescriptions": [ "", - "Rule fetch and evaluation are skipped because DLP experiment is not enabled.", - "Rule fetch and evaluation are skipped because there is no rule to be fetched (e.g. message is sent from a consumer, or there is no message.)", - "Rule fetch happened, but rule evalution is skipped because the fetch returned no rules.", - "Rule fetch happened, but rule evaluation is skipped because none of the rules are applicable.", - "Rule fetch and evaluation were performed and completed successfully.", - "DLP scan was attempted but timed out.", - "Generic DLP failure. This case covers any other errors/exceptions in the Chat backend that caused the DLP scan to fail." + "", + "", + "" ], "type": "string" } }, "type": "object" }, - "AppsDynamiteSharedDocument": { - "description": "Data for rendering a document.", - "id": "AppsDynamiteSharedDocument", + "EnterpriseTopazSidekickAgendaEntry": { + "description": "An AgendaEntry, e.g., a Calendar Event.", + "id": "EnterpriseTopazSidekickAgendaEntry", "properties": { - "fileId": { - "description": "Unique file ID.", + "agendaItemUrl": { + "description": "URL of the agenda item.", "type": "string" }, - "justification": { - "$ref": "AppsDynamiteSharedJustification", - "description": "Justification to explain why this document is being suggested." + "chronology": { + "description": "The chronology from the present.", + "enum": [ + "STALE", + "ALL_DAY", + "PAST", + "RECENTLY_PAST", + "PRESENT", + "NEAR_FUTURE", + "FUTURE" + ], + "enumDescriptions": [ + "Stale.", + "All day.", + "Past.", + "Recently past.", + "Present.", + "Near future.", + "Future." + ], + "type": "string" }, - "lastModifiedTime": { - "description": "Time the document was last modified.", - "format": "google-datetime", + "creator": { + "$ref": "EnterpriseTopazSidekickPerson", + "description": "Person who created the event." + }, + "currentUserAttendingStatus": { + "description": "Attendance status for the current user making the request. This is a convenience data member in order to avoid figuring out the same by iterating the invitee list above on the caller side.", + "enum": [ + "AWAITING", + "YES", + "NO", + "MAYBE" + ], + "enumDescriptions": [ + "Awaiting for the user to set the status.", + "Attending.", + "Not attending.", + "Tentatively attending." + ], "type": "string" }, - "mimeType": { - "description": "Used to determine which icon to render (e.g. docs, slides, sheets)", + "description": { + "description": "Description of the agenda item (i.e., typically, summary in calendar event).", "type": "string" }, - "title": { - "description": "Title of the document.", + "document": { + "description": "Items related to the current AgendaEntry. E.g., related drive/mail/groups documents.", + "items": { + "$ref": "EnterpriseTopazSidekickCommonDocument" + }, + "type": "array" + }, + "endDate": { + "description": "End date \"Friday, August 26\" in the user's timezone.", "type": "string" }, - "url": { - "description": "URL of the document.", + "endTime": { + "description": "End time (HH:mm) in the user's timezone.", "type": "string" - } - }, - "type": "object" - }, - "AppsDynamiteSharedEmoji": { - "id": "AppsDynamiteSharedEmoji", - "properties": { - "customEmoji": { - "$ref": "AppsDynamiteSharedCustomEmoji", - "description": "A custom emoji." }, - "unicode": { - "description": "A basic emoji represented by a unicode string.", + "endTimeMs": { + "description": "End time in milliseconds", + "format": "int64", "type": "string" - } - }, - "type": "object" - }, - "AppsDynamiteSharedFindDocumentSuggestion": { - "description": "Data for a FindDocument suggestion type.", - "id": "AppsDynamiteSharedFindDocumentSuggestion", - "properties": { - "documentSuggestions": { - "description": "List of documents to render as suggestions.", + }, + "eventId": { + "description": "Event id provided by Calendar API.", + "type": "string" + }, + "guestsCanInviteOthers": { + "description": "Whether the guests can invite other guests.", + "type": "boolean" + }, + "guestsCanModify": { + "description": "Whether the guests can modify the event.", + "type": "boolean" + }, + "guestsCanSeeGuests": { + "description": "Whether the guests of the event can be seen. If false, the user is going to be reported as the only attendee to the meeting, even though there may be more attendees.", + "type": "boolean" + }, + "hangoutId": { + "description": "Hangout meeting identifier.", + "type": "string" + }, + "hangoutUrl": { + "description": "Absolute URL for the Hangout meeting.", + "type": "string" + }, + "invitee": { + "description": "People attending the meeting.", "items": { - "$ref": "AppsDynamiteSharedDocument" + "$ref": "EnterpriseTopazSidekickPerson" }, "type": "array" }, - "showActionButtons": { - "description": "Whether to show the action buttons in the card for the suggestions.", + "isAllDay": { + "description": "Whether the entry lasts all day.", "type": "boolean" - } - }, - "type": "object" - }, - "AppsDynamiteSharedGroupDetails": { - "description": "NEXT TAG: 3 A GroupDetails proto will store the information pertaining to single Group.", - "id": "AppsDynamiteSharedGroupDetails", - "properties": { - "description": { - "description": "A simple text that describes the purpose of a single Group, the general theme of the topics to be posted and/or the denominator of the Group participants.", + }, + "lastModificationTimeMs": { + "description": "Last time the event was modified.", + "format": "int64", "type": "string" }, - "guidelines": { - "description": "A simple text describing the rules and expectations from members when participating in conversation.", + "location": { + "description": "Agenda item location.", "type": "string" - } - }, - "type": "object" - }, - "AppsDynamiteSharedGroupVisibility": { - "id": "AppsDynamiteSharedGroupVisibility", - "properties": { - "state": { - "enum": [ - "UNKNOWN", - "PRIVATE", - "PUBLIC" - ], - "enumDescriptions": [ - "Do not use.", - "Explicitly invited users may join the room.", - "Anyone in the domain may join the room." - ], + }, + "notifyToUser": { + "description": "Whether this should be notified to the user.", + "type": "boolean" + }, + "otherAttendeesExcluded": { + "description": "Whether guest list is not returned because number of attendees is too large.", + "type": "boolean" + }, + "requesterIsOwner": { + "description": "Whether the requester is the owner of the agenda entry.", + "type": "boolean" + }, + "showFullEventDetailsToUse": { + "description": "Whether the details of this entry should be displayed to the user.", + "type": "boolean" + }, + "startDate": { + "description": "Start date \"Friday, August 26\" in the user's timezone.", "type": "string" - } - }, - "type": "object" - }, - "AppsDynamiteSharedJustification": { - "description": "Data for rendering a justification for a document.", - "id": "AppsDynamiteSharedJustification", - "properties": { - "actionTime": { - "description": "Time the action took place.", - "format": "google-datetime", + }, + "startTime": { + "description": "Start time (HH:mm) in the user's timezone.", "type": "string" }, - "actionType": { - "description": "Type of action performed on the document.", - "enum": [ - "ACTION_TYPE_UNSPECIFIED", - "COMMENTED", - "CREATED", - "EDITED", - "PRESENTED", - "SHARED", - "VIEWED", - "COMMENT_RESOLVED", - "SENT" - ], - "enumDescriptions": [ - "Unspecified action.", - "Commented on document.", - "Created document.", - "Edited document.", - "Presented document.", - "Shared document.", - "Viewed document.", - "Resolved comment on document.", - "Sent document over chat/email." - ], + "startTimeMs": { + "description": "Start time in milliseconds.", + "format": "int64", "type": "string" }, - "documentOwner": { - "$ref": "AppsDynamiteSharedJustificationPerson", - "description": "Owner of the document." + "timeZone": { + "description": "User's calendar timezone;", + "type": "string" }, - "topics": { - "description": "Words or phrases from the user's query that describes the document content. (Ex: Users query is \"Can you share the document about Bullseye?\" the extracted topic would be \"Bullseye\").", - "items": { - "type": "string" - }, - "type": "array" + "title": { + "description": "Title of the agenda item.", + "type": "string" } }, "type": "object" }, - "AppsDynamiteSharedJustificationPerson": { - "description": "Data for rendering a person associated with a document.", - "id": "AppsDynamiteSharedJustificationPerson", + "EnterpriseTopazSidekickAgendaGroupCardProto": { + "id": "EnterpriseTopazSidekickAgendaGroupCardProto", "properties": { - "isRecipient": { - "description": "Whether the person is the recipient of the suggestions.", - "type": "boolean" + "agendaItem": { + "items": { + "$ref": "EnterpriseTopazSidekickAgendaItem" + }, + "type": "array" }, - "user": { - "$ref": "UserId", - "description": "Obfuscated user ID." + "context": { + "$ref": "EnterpriseTopazSidekickAgendaGroupCardProtoContext" + }, + "currentAgendaItem": { + "$ref": "EnterpriseTopazSidekickAgendaItem" } }, "type": "object" }, - "AppsDynamiteSharedMeetMetadata": { - "description": "Metadata specific for a Meet call that are required to generate call artifacts.", - "id": "AppsDynamiteSharedMeetMetadata", + "EnterpriseTopazSidekickAgendaGroupCardProtoContext": { + "description": "The context that resulted in the generation of the card.", + "id": "EnterpriseTopazSidekickAgendaGroupCardProtoContext", "properties": { - "meetingCode": { - "description": "Required. A globally unique code (e.g. \"cxv-zbgj-wzw\") that points to a meeting space. Note: Meeting codes may be regenerated, which will cause old meeting codes to become invalid.", + "context": { + "description": "User friendly free text that describes the context of the card (e.g. \"Next meeting with Bob\"). This is largely only applicable when the card is generated from a query.", + "type": "string" + }, + "date": { + "description": "Localized free text that describes the dates represented by the card. Currently, the card will only represent a single day.", "type": "string" }, - "meetingType": { - "description": "Required. Type of the meeting. This controls the chat client UX.", + "eventsRestrict": { + "description": "Represents restrictions applied to the events requested in the user's query.", "enum": [ - "MEETING_TYPE_UNSPECIFIED", - "HUDDLE", - "CALL" + "NONE", + "NEXT_MEETING" ], "enumDescriptions": [ - "", - "", - "" + "No specific event was requested.", + "The next meeting was requested." ], "type": "string" - }, - "meetingUrl": { - "description": "Required. A URL, in the format \"https://meet.google.com/*\" (e.g. https://meet.google.com/cxv-zbgj-wzw), to identify and access the meeting space.", - "type": "string" } }, "type": "object" }, - "AppsDynamiteSharedMessageComponentSearchInfo": { - "description": "Metadata used to describe search information in a specific component of a chat message, for example an annotation or an attachment.", - "id": "AppsDynamiteSharedMessageComponentSearchInfo", + "EnterpriseTopazSidekickAgendaItem": { + "id": "EnterpriseTopazSidekickAgendaItem", "properties": { - "matchedSearch": { - "description": "Whether the whole component matched the search.", - "type": "boolean" + "conflictedGroup": { + "$ref": "EnterpriseTopazSidekickConflictingEventsCardProto" }, - "titleTextWithDescription": { - "$ref": "AppsDynamiteSharedTextWithDescription", - "description": "Backend should always set TextWithDescription.text_body based on the title (or its snippet) of the annotation or attachment." + "gapBefore": { + "$ref": "EnterpriseTopazSidekickGap" + }, + "meeting": { + "$ref": "EnterpriseTopazSidekickAgendaEntry" } }, "type": "object" }, - "AppsDynamiteSharedMessageInfo": { - "description": "Information that references a Dynamite chat message. This is only used for Activity Feed messages.", - "id": "AppsDynamiteSharedMessageInfo", + "EnterpriseTopazSidekickAnswerAnswerList": { + "description": "A list of answers represented as free text.", + "id": "EnterpriseTopazSidekickAnswerAnswerList", "properties": { - "messageId": { - "$ref": "MessageId", - "description": "Id of the source chat message. This is kept here because the top-level message ID to refers the AF message ID." + "labeledAnswer": { + "description": "Answers that have a corresponding label.", + "items": { + "$ref": "EnterpriseTopazSidekickAnswerAnswerListLabeledAnswer" + }, + "type": "array" }, - "messageType": { - "description": "The type of the source chat message.", + "type": { + "description": "Answer type.", "enum": [ - "MESSAGE_TYPE_UNSPECIFIED", - "INLINE_REPLY" + "UNKNOWN", + "PERSON_ADDRESS", + "PERSON_BIRTHDAY", + "PERSON_DEPARTMENT", + "PERSON_DESK_LOCATION", + "PERSON_EMAIL", + "PERSON_JOB_TITLE", + "PERSON_PHONE" ], "enumDescriptions": [ - "Default value where type is not specified.", - "The source chat message is a threaded reply to another message." + "", + "", + "", + "", + "", + "", + "", + "" ], "type": "string" - }, - "topicReadTimeUsec": { - "description": "Timestamp of when the topic containing the message has been read by the user. This is populated if the message references an inline reply, in which case the space may be marked as read but the topic still has unread messages.", - "format": "int64", - "type": "string" } }, "type": "object" }, - "AppsDynamiteSharedMessageIntegrationPayload": { - "description": "The payload(restricted to 1P applications) to be stored with a specific message.", - "id": "AppsDynamiteSharedMessageIntegrationPayload", + "EnterpriseTopazSidekickAnswerAnswerListLabeledAnswer": { + "description": "An answer with a corresponding label.", + "id": "EnterpriseTopazSidekickAnswerAnswerListLabeledAnswer", "properties": { - "projectNumber": { - "description": "Pantheon project number used to identify the calling app.", - "format": "int64", + "answer": { + "description": "The free text answer.", "type": "string" }, - "tasksMessageIntegrationPayload": { - "$ref": "AppsDynamiteSharedTasksMessageIntegrationPayload" - }, - "type": { - "description": "An enum indicating which 1P application's payload this is. This field is required to add 1P payload.", - "enum": [ - "PAYLOAD_TYPE_UNSPECIFIED", - "TASKS" - ], - "enumDescriptions": [ - "", - "" - ], + "label": { + "description": "A localized label for the answer (e.g. \"Cell phone\" vs \"Desk phone\").", "type": "string" } }, "type": "object" }, - "AppsDynamiteSharedMessageSearchInfo": { - "description": "Metadata used to describe how to render a message in search results page, e.g., highlighting and snipetting. In future, we can use this proto to return more search specific data attached to a message.", - "id": "AppsDynamiteSharedMessageSearchInfo", + "EnterpriseTopazSidekickAnswerSuggestedQueryAnswerCard": { + "description": "Contains a list of suggested queries. Allows the user to determine what natural language queries they can ask Cloud Search (e.g. \"what can I search for?\").", + "id": "EnterpriseTopazSidekickAnswerSuggestedQueryAnswerCard", "properties": { - "matchedSegmentsInTextBody": { - "description": "Current usage: - DescriptionType=KEYWORD_MATCH is populated in this field to return metadata for keyword matches, which clients can use to highlight matched segments in a message's text_body. - DescriptionType=SNIPPET can be used to return metadata describing how a message's text_body can be broken up to provide a snippet.", + "suggestedQueryCategory": { + "description": "A list of queries to suggest.", "items": { - "$ref": "AppsDynamiteSharedTextSegmentsWithDescription" + "$ref": "EnterpriseTopazSidekickAnswerSuggestedQueryCategory" }, "type": "array" } }, "type": "object" }, - "AppsDynamiteSharedOrganizationInfo": { - "description": "Contains info about the entity that something is, or is owned by.", - "id": "AppsDynamiteSharedOrganizationInfo", + "EnterpriseTopazSidekickAnswerSuggestedQueryCategory": { + "description": "Contains a list of suggested queries for a single category.", + "id": "EnterpriseTopazSidekickAnswerSuggestedQueryCategory", "properties": { - "consumerInfo": { - "$ref": "AppsDynamiteSharedOrganizationInfoConsumerInfo" + "category": { + "description": "The query list category.", + "enum": [ + "UNKNOWN", + "CALENDAR", + "DOCUMENT", + "PEOPLE" + ], + "enumDescriptions": [ + "Unknown.", + "Calendar based queries (e.g. \"my agenda for tomorrow\").", + "Document based queries (e.g. \"files shared with me\").", + "People based queries (e.g. \"what is x's email address?\")." + ], + "type": "string" }, - "customerInfo": { - "$ref": "AppsDynamiteSharedOrganizationInfoCustomerInfo" - } - }, - "type": "object" - }, - "AppsDynamiteSharedOrganizationInfoConsumerInfo": { - "description": "Intentionally empty. Used to disambiguate consumer and customer use cases in oneof below.", - "id": "AppsDynamiteSharedOrganizationInfoConsumerInfo", - "properties": {}, - "type": "object" - }, - "AppsDynamiteSharedOrganizationInfoCustomerInfo": { - "id": "AppsDynamiteSharedOrganizationInfoCustomerInfo", - "properties": { - "customerId": { - "$ref": "CustomerId" + "isEnabled": { + "description": "Whether this category is enabled.", + "type": "boolean" + }, + "query": { + "description": "List of suggested queries to show the user.", + "items": { + "type": "string" + }, + "type": "array" } }, "type": "object" }, - "AppsDynamiteSharedOriginAppSuggestion": { - "description": "Stores the suggestion provided by apps/bots.", - "id": "AppsDynamiteSharedOriginAppSuggestion", - "properties": { - "appId": { - "$ref": "AppId" + "EnterpriseTopazSidekickAssistCardProto": { + "description": "Wrapper proto for the Assist cards.", + "id": "EnterpriseTopazSidekickAssistCardProto", + "properties": { + "agendaGroupCardProto": { + "$ref": "EnterpriseTopazSidekickAgendaGroupCardProto", + "description": "Agenda group card." + }, + "cardMetadata": { + "$ref": "EnterpriseTopazSidekickCardMetadata", + "description": "Card metadata such as chronology and render mode of the card." + }, + "cardType": { + "description": "Card type.", + "enum": [ + "UNKNOWN_TYPE", + "AGENDA", + "CHANGELISTS", + "CONFLICTING_MEETINGS", + "CREATE_NOTES_FOR_MEETING", + "CREATE_NOTES_FOR_MEETING_REQUEST", + "CUSTOMER_NEWS", + "FIND_MEETING_TIME", + "NEXT_MEETING", + "PERSONALIZED_DOCS", + "TRENDING_DOCS", + "UPCOMING_TRIP", + "SUMMARY", + "MEETINGS", + "HOMEPAGE", + "SHARE_MEETING_DOCS", + "DISCOVER_PEOPLE", + "HOMEPAGE_V3", + "AGENDA_GROUP", + "WORK_IN_PROGRESS", + "GET_AND_KEEP_AHEAD", + "GENERIC_ANSWER_CARD", + "THIRD_PARTY_ANSWER_CARD", + "DOMAIN_TRENDING_DOCS", + "TEAM_TRENDING_DOCS", + "DOCUMENT_LIST_ANSWER_CARD", + "SUGGESTED_QUERY_ANSWER_CARD", + "PERSON_ANSWER_CARD", + "RELATED_PEOPLE_ANSWER_CARD", + "PERSON_KNOWLEDGE_CARD", + "PEOPLE_SEARCH_PROMOTION_CARD" + ], + "enumDescriptions": [ + "The default type, an unknown card type.", + "The user's agenda for the day.", + "Changelists.", + "Any group of meetings for the day that are overlapping.", + "Create notes for a meeting specified in the request.", + "Create notes for meeting query.", + "News about your SFDC customers.", + "Find a time for two people to meet.", + "The user's next non-declined meeting.", + "Important documents for you since you have viewed them in the last month and there's some action going on.", + "Documents that are trending in your company. A TRENDING_DOCS card can be of two types: TRENDING_IN_COLLABORATORS (i.e., Stay in the Loop) and TRENDING_IN_DOMAIN (i.e., Popular Content). Use DOMAIN_TRENDING_DOCS/TEAM_TRENDING_DOCS instead.", + "An upcoming trip with all trip information along with calendar events in the destination timezone.", + "The Morning/Evening Summary Card for the next working day.", + "A meeting. When requesting meetings, the service will return a MEETING card for each meeting the user has in his agenda.", + "All cards related to the homepage (agenda, conflicting-meetings, summary, etc...). This type should no longer be used. Use HOMEPAGE_V3 instead.", + "A card to with specifics to share meeting documents with all attendees.", + "Represents a set of users that the requesting user has low affinity with.", + "All cards related to the homepage-v3 (agenda-group, WIP, etc...)", + "A group of agenda-events (meeting, conflicts)", + "The documents that you were recently working on.", + "(v3) The \"get and keep ahead\" card for today and tomorrow", + "Generic answer card.", + "Third party answer card.", + "Documents that are trending in your company/domain (i.e., Popular Content).", + "Documents that are trending in your team (i.e., Stay in the Loop).", + "Documents that match the user's query (e.g. sheets shared with me).", + "A help card that provides examples of queries the user can ask.", + "Answer card for a single person (e.g. what is x's phone number).", + "Answer card for a list of people related to the person that is the subject of the query (e.g. who reports to x).", + "Knowledge card for a single person and their related people.", + "People Search promotion card." + ], + "type": "string" + }, + "conflictingMeetingsCard": { + "$ref": "EnterpriseTopazSidekickConflictingEventsCardProto", + "description": "Conflicting events card." + }, + "documentListCard": { + "$ref": "EnterpriseTopazSidekickDocumentPerCategoryList", + "description": "Answer card for documents that are applicable to the current query." + }, + "documentsWithMentions": { + "$ref": "EnterpriseTopazSidekickDocumentPerCategoryList", + "description": "Documents with mentions." + }, + "findMeetingTimeCard": { + "$ref": "EnterpriseTopazSidekickFindMeetingTimeCardProto", + "description": "Find meeting time card." + }, + "genericAnswerCard": { + "$ref": "EnterpriseTopazSidekickGenericAnswerCard", + "description": "Generic answer card." + }, + "getAndKeepAheadCard": { + "$ref": "EnterpriseTopazSidekickGetAndKeepAheadCardProto", + "description": "Get and keep ahead card." + }, + "meeting": { + "$ref": "EnterpriseTopazSidekickAgendaEntry", + "description": "Meeting card." + }, + "meetingNotesCard": { + "$ref": "EnterpriseTopazSidekickMeetingNotesCardProto", + "description": "Meeting notes card." + }, + "meetingNotesCardRequest": { + "$ref": "EnterpriseTopazSidekickMeetingNotesCardRequest", + "description": "Request for meeting notes card." + }, + "peopleDisambiguationCard": { + "$ref": "EnterpriseTopazSidekickPeopleDisambiguationCard", + "description": "The people disambiguation card." + }, + "peoplePromotionCard": { + "$ref": "PeoplePromotionCard", + "description": "People Search promotion card." + }, + "personAnswerCard": { + "$ref": "EnterpriseTopazSidekickPeopleAnswerPersonAnswerCard", + "description": "Answer card that represents a single person." + }, + "personProfileCard": { + "$ref": "EnterpriseTopazSidekickPersonProfileCard", + "description": "Full profile card." + }, + "personalizedDocsCard": { + "$ref": "EnterpriseTopazSidekickPersonalizedDocsCardProto", + "description": "Card with recommended documents for the user." + }, + "relatedPeopleAnswerCard": { + "$ref": "EnterpriseTopazSidekickPeopleAnswerRelatedPeopleAnswerCard", + "description": "Answer card that represents a list of people related to a person." + }, + "shareMeetingDocsCard": { + "$ref": "EnterpriseTopazSidekickShareMeetingDocsCardProto", + "description": "Sahre meeting docs card." + }, + "sharedDocuments": { + "$ref": "EnterpriseTopazSidekickDocumentPerCategoryList", + "description": "Shared documents." + }, + "suggestedQueryAnswerCard": { + "$ref": "EnterpriseTopazSidekickAnswerSuggestedQueryAnswerCard", + "description": "Answer card for what natural language queries the user can ask." + }, + "thirdPartyAnswerCard": { + "$ref": "ThirdPartyGenericCard", + "description": "Third party answer cards." }, - "cardClickSuggestion": { - "$ref": "AppsDynamiteSharedCardClickSuggestion" + "workInProgressCardProto": { + "$ref": "EnterpriseTopazSidekickRecentDocumentsCardProto", + "description": "Work In Progress card." } }, "type": "object" }, - "AppsDynamiteSharedPhoneNumber": { - "id": "AppsDynamiteSharedPhoneNumber", + "EnterpriseTopazSidekickCardMetadata": { + "description": "Card metadata.", + "id": "EnterpriseTopazSidekickCardMetadata", "properties": { - "type": { - "description": "The phone number type, e.g., work, mobile, etc.", + "cardCategory": { + "description": "Declares a preference for how this card should be packed in MSCR. All cards in a response must correspond to a single category. As a result, cards may be dropped from the response if this field is set. Any card that does not match the category of the card with the highest priority in the response will be dropped.", + "enum": [ + "DEFAULT", + "ANSWER", + "KNOWLEDGE", + "HOMEPAGE" + ], + "enumDescriptions": [ + "Let MSCR decide how this card should be packed. Most cards should choose this type. This type should largely be considered equivalent to ANSWER. However, this is not guaranteed to be the case as the request to MSCR may override the static configuration.", + "This card should be rendered as an answer card.", + "This card should be rendered as a knowledge card (a non-organic result).", + "This card should be rendered in the Homepage." + ], "type": "string" }, - "value": { - "description": "The actual phone number.", + "cardId": { + "description": "An ID to identify the card and match actions to it. Be thoughtful of new card IDs since actions will be associated to that ID. E.g., if two card IDs collide, the system will think that the actions have been applied to the same card. Similarly, if EAS can return multiple cards of the same type (e.g., Meetings), ensure that the card_id identifies a given instance of the card so that, e.g., dismissals only affect the dismissed card as opposed to affecting all meeting cards.", "type": "string" - } - }, - "type": "object" - }, - "AppsDynamiteSharedReaction": { - "id": "AppsDynamiteSharedReaction", - "properties": { - "count": { - "description": "The total number of users who have reacted.", - "format": "int32", - "type": "integer" }, - "createTimestamp": { - "description": "When the first emoji of this type was added.", - "format": "int64", + "chronology": { + "description": "Chronology.", + "enum": [ + "UNKNOWN", + "PAST", + "RECENTLY_PAST", + "PRESENT", + "NEAR_FUTURE", + "FUTURE" + ], + "enumDescriptions": [ + "Unknown chronology (default).", + "Past.", + "Recently past.", + "Present.", + "Near future.", + "Future." + ], "type": "string" }, - "currentUserParticipated": { - "description": "Whether the current user reacted using this emoji. Note: Unlike most properties of messages, this is different per-user.", - "type": "boolean" - }, - "emoji": { - "$ref": "AppsDynamiteSharedEmoji" - } - }, - "type": "object" - }, - "AppsDynamiteSharedRetentionSettings": { - "description": "The settings of retention period of a message or topic.", - "id": "AppsDynamiteSharedRetentionSettings", - "properties": { - "expiryTimestamp": { - "description": "The timestamp after which the message/topic should be removed, in microseconds since the epoch, when state == EPHEMERAL_ONE_DAY. The value should not be set in other cases.", - "format": "int64", + "debugInfo": { + "description": "Debug info (only reported if request's debug_level \u003e 0).", "type": "string" }, - "state": { - "description": "The retention state.", + "nlpMetadata": { + "$ref": "EnterpriseTopazSidekickNlpMetadata", + "description": "Information about the NLP done to get the card." + }, + "rankingParams": { + "$ref": "EnterpriseTopazSidekickRankingParams", + "description": "Ranking params." + }, + "renderMode": { + "description": "Render mode.", "enum": [ - "UNKNOWN_RETENTION_STATE", - "PERMANENT", - "EPHEMERAL_ONE_DAY" + "UNKNOWN_RENDER", + "COLLAPSED", + "EXPANDED" ], "enumDescriptions": [ - "", - "The message/topic should be kept permanently.", - "The message/topic should be kept with a 24-hour TTL." + "Unknown mode (default).", + "Collapsed.", + "Expanded." ], "type": "string" } }, "type": "object" }, - "AppsDynamiteSharedSegmentedMembershipCount": { - "description": "Contains info on membership count for member types: HUMAN_USER, APP_USER \u0026 ROSTER_MEMBER different states: INVITED, JOINED", - "id": "AppsDynamiteSharedSegmentedMembershipCount", + "EnterpriseTopazSidekickCommonDebugInfo": { + "description": "Container of debugging information in all object levels. Extend as needed.", + "id": "EnterpriseTopazSidekickCommonDebugInfo", "properties": { - "memberType": { - "enum": [ - "MEMBER_TYPE_UNSPECIFIED", - "HUMAN_USER", - "ROSTER_MEMBER" + "message": { + "description": "Debug message.", + "type": "string" + } + }, + "type": "object" + }, + "EnterpriseTopazSidekickCommonDocument": { + "description": "Representation of a document. NEXT_TAG: 15", + "id": "EnterpriseTopazSidekickCommonDocument", + "properties": { + "accessType": { + "description": "Access type, i.e., whether the user has access to the document or not.", + "enum": [ + "UNKNOWN_ACCESS", + "ALLOWED", + "NOT_ALLOWED" ], "enumDescriptions": [ - "default value", - "member is a human user", - "member is a roster" + "Unknown access type.", + "Access allowed.", + "Access not allowed." ], "type": "string" }, - "membershipCount": { - "description": "count of members with given type and state", - "format": "int32", - "type": "integer" + "debugInfo": { + "$ref": "EnterpriseTopazSidekickCommonDebugInfo", + "description": "Information for debugging." + }, + "documentId": { + "description": "Document id.", + "type": "string" + }, + "driveDocumentMetadata": { + "$ref": "EnterpriseTopazSidekickCommonDocumentDriveDocumentMetadata", + "description": "Drive document metadata." }, - "membershipState": { + "genericUrl": { + "description": "Generic Drive-based url in the format of drive.google.com/open to be used for deeplink", + "type": "string" + }, + "justification": { + "$ref": "EnterpriseTopazSidekickCommonDocumentJustification", + "description": "Justification on why the document is selected." + }, + "mimeType": { + "description": "MIME type", + "type": "string" + }, + "provenance": { + "description": "Document provenance.", "enum": [ - "MEMBER_UNKNOWN", - "MEMBER_INVITED", - "MEMBER_JOINED", - "MEMBER_NOT_A_MEMBER", - "MEMBER_FAILED" + "UNKNOWN_PROVENANCE", + "CALENDAR_DESCRIPTION", + "CALENDAR_ATTACHMENT", + "MINED", + "CALENDAR_ASSIST_ATTACHMENT" ], "enumDescriptions": [ - "Default state, do not use", - "An invitation to the space has been sent", - "User has joined the space", - "User is not a member", - "This state should never be stored in Spanner. It is a state for responses to the clients to indicate that membership mutations have failed and the member is in its previous state." + "Unknown provenance.", + "Calendar event description.", + "Calendar event attachment.", + "Mined (extracted by some offline/online analysis).", + "Attachment created by enterprise assist." ], "type": "string" - } - }, - "type": "object" - }, - "AppsDynamiteSharedSegmentedMembershipCounts": { - "id": "AppsDynamiteSharedSegmentedMembershipCounts", - "properties": { - "value": { - "items": { - "$ref": "AppsDynamiteSharedSegmentedMembershipCount" - }, - "type": "array" - } - }, - "type": "object" - }, - "AppsDynamiteSharedSpaceInfo": { - "description": "Defines the representation of a single matching space.", - "id": "AppsDynamiteSharedSpaceInfo", - "properties": { - "avatarInfo": { - "$ref": "AppsDynamiteSharedAvatarInfo" }, - "avatarUrl": { + "reason": { + "description": "Justification of why this document is being returned.", + "enum": [ + "UNKNOWN", + "TRENDING_IN_COLLABORATORS", + "TRENDING_IN_DOMAIN", + "FREQUENTLY_VIEWED", + "FREQUENTLY_EDITED", + "NEW_UPDATES", + "NEW_COMMENTS", + "EVENT_DESCRIPTION", + "EVENT_ATTACHMENT", + "EVENT_METADATA_ATTACHMENT", + "MINED_DOCUMENT", + "NEW_MENTIONS", + "NEW_SHARES" + ], + "enumDescriptions": [ + "Unknown justification.", + "Popular documents within collaborators.", + "Popular documents within the domain.", + "Documents being reviewed frequently by the current user .", + "Documents being edited frequently by the current user .", + "Documents updated since user's last visit.", + "Documents that receive comments since user's last visit.", + "Documents in the calendar event description.", + "Documents in the calendar event attachments section.", + "Documents attached in calendar event metadata instead of the attachment section. Event metadata is not visible to the final user. Enterprise assist uses this metadata to store auto-generated documents such as meeting notes.", + "Documents mined, and so, probably related to the request context. For example, this category includes documents related to a meeting.", + "Documents that contains mentions of the user.", + "Documents that are shared with the user." + ], "type": "string" }, - "description": { + "snippet": { + "description": "A sampling of the text from the document.", "type": "string" }, - "groupId": { - "$ref": "GroupId" - }, - "inviterEmail": { - "description": "The email address of the user that invited the calling user to the room, if available. This field will only be populated for direct invites, it will be empty if the user was indirectly invited to the group.", + "thumbnailUrl": { + "description": "Thumbnail URL.", "type": "string" }, - "isExternal": { - "description": "Whether this is a space that enables guest access", - "type": "boolean" - }, - "name": { + "title": { + "description": "Title of the document.", "type": "string" }, - "numMembers": { - "description": "Deprecated. Use segmented_membership_counts instead which also includes other counts such as rosters.", - "format": "int32", - "type": "integer" - }, - "segmentedMembershipCounts": { - "$ref": "AppsDynamiteSharedSegmentedMembershipCounts", - "description": "Member counts object with types of members and their respective counts." - }, - "userMembershipState": { - "description": "searching user's membership state in this space", + "type": { + "description": "Type of the document.", "enum": [ - "MEMBER_UNKNOWN", - "MEMBER_INVITED", - "MEMBER_JOINED", - "MEMBER_NOT_A_MEMBER", - "MEMBER_FAILED" + "UNKNOWN", + "DOCUMENT", + "PRESENTATION", + "SPREADSHEET", + "PDF", + "IMAGE", + "BINARY_BLOB", + "FUSION_TABLE", + "FOLDER", + "DRAWING", + "VIDEO", + "FORM", + "LINK_URL", + "LINK_GO", + "LINK_GOO_GL", + "LINK_BIT_LY", + "LINK_GMAIL", + "LINK_MAILTO", + "VIDEO_YOUTUBE", + "VIDEO_LIVE", + "GROUPS", + "NEWS", + "SITES", + "HANGOUT", + "AUDIO", + "MS_WORD", + "MS_POWERPOINT", + "MS_EXCEL", + "MS_OUTLOOK" ], "enumDescriptions": [ - "Default state, do not use", - "An invitation to the space has been sent", - "User has joined the space", - "User is not a member", - "This state should never be stored in Spanner. It is a state for responses to the clients to indicate that membership mutations have failed and the member is in its previous state." + "If the type is unknown or not represented in this enum.", + "Drive document types Writely, Word, etc.", + "Presently, PowerPoint, etc.", + "Trix, Excel, etc.", + "File types for Gdrive objects are below. PDF.", + "Image.", + "Fall-back for unknown Gdrive types.", + "Fusion table.", + "Folder.", + "Drawing.", + "Video.", + "Form.", + "Link formats uncategorized URL links", + "meaningful links that should be renderred specifically", + "Link to goo.gl.", + "Link to bit_ly.", + "Link to Gmail.", + "Mailto link.", + "Videos Youtube videos.", + "Live streams (e.g., liveplayer.googleplex.com)", + "Other types. Google Groups.", + "Google News.", + "Google Sites.", + "Google Hangout.", + "Audio files.", + "Microsoft-specific file types.", + "", + "", + "" ], "type": "string" + }, + "url": { + "description": "Absolute URL of the document.", + "type": "string" } }, "type": "object" }, - "AppsDynamiteSharedTasksAnnotationData": { - "description": "This is the internal version of the API proto at google3/google/chat/v1/gsuite_message_integration.proto", - "id": "AppsDynamiteSharedTasksAnnotationData", + "EnterpriseTopazSidekickCommonDocumentDriveDocumentMetadata": { + "description": "Meta data for drive documents.", + "id": "EnterpriseTopazSidekickCommonDocumentDriveDocumentMetadata", "properties": { - "assigneeChange": { - "$ref": "AppsDynamiteSharedTasksAnnotationDataAssigneeChange" + "documentId": { + "description": "The drive document cosmo id. Client could use the id to build a URL to open a document. Please use Document.document_id.", + "type": "string" }, - "completionChange": { - "$ref": "AppsDynamiteSharedTasksAnnotationDataCompletionChange" + "isPrivate": { + "description": "Additional field to identify whether a document is private since scope set to LIMITED can mean both that the doc is private or that it's shared with others. is_private indicates whether the doc is not shared with anyone except for the owner.", + "type": "boolean" + }, + "lastCommentTimeMs": { + "description": "Timestamp of the most recent comment added to the document in milliseconds since epoch.", + "format": "uint64", + "type": "string" }, - "creation": { - "$ref": "AppsDynamiteSharedTasksAnnotationDataCreation" + "lastEditTimeMs": { + "description": "Timestamp of the most recent edit from the current user in milliseconds since epoch.", + "format": "uint64", + "type": "string" + }, + "lastModificationTimeMillis": { + "description": "Last modification time of the document (independent of the user that modified it).", + "format": "int64", + "type": "string" }, - "deletionChange": { - "$ref": "AppsDynamiteSharedTasksAnnotationDataDeletionChange" + "lastUpdatedTimeMs": { + "description": "Timestamp of the last updated time of the document in milliseconds since epoch.", + "format": "uint64", + "type": "string" }, - "taskId": { - "description": "ID of task. Will be used to create deep links to Tasks.", + "lastViewTimeMs": { + "description": "Timestamp of the most recent view from the current user in milliseconds since epoch.", + "format": "uint64", "type": "string" }, - "taskProperties": { - "$ref": "AppsDynamiteSharedTasksAnnotationDataTaskProperties", - "description": "Task properties after the update has been applied." + "owner": { + "$ref": "EnterpriseTopazSidekickCommonPerson", + "description": "The owner of the document." }, - "userDefinedMessage": { - "$ref": "AppsDynamiteSharedTasksAnnotationDataUserDefinedMessage" + "scope": { + "description": "ACL scope of the document which identifies the sharing status of the doc (e.g., limited, shared with link, team drive, ...).", + "enum": [ + "UNKNOWN_DOCUMENT_SCOPE", + "LIMITED", + "DASHER_DOMAIN_WITH_LINK", + "DASHER_DOMAIN", + "PUBLIC_WITH_LINK", + "PUBLIC", + "TEAM_DRIVE" + ], + "enumDescriptions": [ + "", + "", + "", + "", + "", + "", + "" + ], + "type": "string" } }, "type": "object" }, - "AppsDynamiteSharedTasksAnnotationDataAssigneeChange": { - "id": "AppsDynamiteSharedTasksAnnotationDataAssigneeChange", + "EnterpriseTopazSidekickCommonDocumentJustification": { + "description": "Justification of why we are reporting the document.", + "id": "EnterpriseTopazSidekickCommonDocumentJustification", "properties": { - "oldAssignee": { - "$ref": "UserId", - "description": "Obfuscated user ID of previous assignee. Not set if the task was originally not assigned." + "justification": { + "description": "A locale aware message that explains why this document was selected.", + "type": "string" + }, + "reason": { + "description": "Reason on why the document is selected. Populate for trending documents.", + "enum": [ + "UNKNOWN", + "TRENDING_IN_COLLABORATORS", + "TRENDING_IN_DOMAIN", + "FREQUENTLY_VIEWED", + "FREQUENTLY_EDITED", + "NEW_UPDATES", + "NEW_COMMENTS", + "EVENT_DESCRIPTION", + "EVENT_ATTACHMENT", + "EVENT_METADATA_ATTACHMENT", + "MINED_DOCUMENT", + "NEW_MENTIONS", + "NEW_SHARES" + ], + "enumDescriptions": [ + "Unknown justification.", + "Popular documents within collaborators.", + "Popular documents within the domain.", + "Documents being reviewed frequently by the current user .", + "Documents being edited frequently by the current user .", + "Documents updated since user's last visit.", + "Documents that receive comments since user's last visit.", + "Documents in the calendar event description.", + "Documents in the calendar event attachments section.", + "Documents attached in calendar event metadata instead of the attachment section. Event metadata is not visible to the final user. Enterprise assist uses this metadata to store auto-generated documents such as meeting notes.", + "Documents mined, and so, probably related to the request context. For example, this category includes documents related to a meeting.", + "Documents that contains mentions of the user.", + "Documents that are shared with the user." + ], + "type": "string" } }, "type": "object" }, - "AppsDynamiteSharedTasksAnnotationDataCompletionChange": { - "id": "AppsDynamiteSharedTasksAnnotationDataCompletionChange", - "properties": {}, - "type": "object" - }, - "AppsDynamiteSharedTasksAnnotationDataCreation": { - "id": "AppsDynamiteSharedTasksAnnotationDataCreation", - "properties": {}, - "type": "object" - }, - "AppsDynamiteSharedTasksAnnotationDataDeletionChange": { - "id": "AppsDynamiteSharedTasksAnnotationDataDeletionChange", - "properties": {}, - "type": "object" - }, - "AppsDynamiteSharedTasksAnnotationDataTaskProperties": { - "description": "All relevant task properties for a Chat message.", - "id": "AppsDynamiteSharedTasksAnnotationDataTaskProperties", + "EnterpriseTopazSidekickCommonPerson": { + "description": "Common representation of a person.", + "id": "EnterpriseTopazSidekickCommonPerson", "properties": { - "assignee": { - "$ref": "UserId", - "description": "Obfuscated user ID of new assignee. Not set if the task doesn't have an assignee." + "birthday": { + "$ref": "EnterpriseTopazSidekickCommonPersonBirthday", + "description": "The birthday." }, - "completed": { - "description": "Whether the task is marked as completed.", - "type": "boolean" + "cellPhone": { + "description": "Cell phone number.", + "type": "string" }, - "deleted": { - "description": "Whether the task is marked as deleted.", - "type": "boolean" + "department": { + "description": "The department the person works in (e.g. Engineering).", + "type": "string" }, - "description": { - "description": "The description of the task. If Task original description's length is greater than 1024, then Task BE sends the truncated description to Dynamite Integration Server.", + "deskLocation": { + "description": "Desk location (e.g. US-MTV-PR55-5-5B1I).", "type": "string" }, - "startDate": { - "$ref": "Date", - "description": "Set if the task has a date but no time. Source of truth in Tasks BE: http://shortn/_wyT7eB4Ixv" + "deskPhone": { + "description": "Work desk phone number.", + "type": "string" }, - "startTime": { - "description": "Set if the task has both a date and a time. Source of truth in Tasks BE: http://shortn/_u6cr0F5ttE", - "format": "google-datetime", + "displayName": { + "description": "The full name.", "type": "string" }, - "title": { - "description": "The title of the task.", + "email": { + "description": "Email.", + "type": "string" + }, + "familyName": { + "description": "The last name.", + "type": "string" + }, + "fullAddress": { + "description": "The fully formatted address (e.g. 1255 Pear Avenue, Mountain View 94043, United States).", + "type": "string" + }, + "gaiaId": { + "description": "This field is deprecated. The obfuscated_id should be used instead.", + "format": "int64", + "type": "string" + }, + "givenName": { + "description": "The first name.", + "type": "string" + }, + "jobTitle": { + "description": "The person's job title (e.g. Software Engineer).", + "type": "string" + }, + "manager": { + "$ref": "EnterpriseTopazSidekickCommonPerson", + "description": "The manager." + }, + "obfuscatedId": { + "description": "The obfuscated GAIA ID.", + "type": "string" + }, + "photoUrl": { + "description": "The URL for the Focus profile picture.", + "type": "string" + }, + "streetAddress": { + "description": "The street address (e.g. 1255 Pear Avenue).", "type": "string" } }, "type": "object" }, - "AppsDynamiteSharedTasksAnnotationDataUserDefinedMessage": { - "description": "Used for task card attachments on custom user messages that should be kept as is without generating an i18n event message, e.g. the user starts a conversation from an existing task. IMPORTANT: please don't populate this field yet as it could break existing flows until it's implemented. See code at http://shortn/_CM74CdENMx used by http://shortn/_5o85POJY8Q.", - "id": "AppsDynamiteSharedTasksAnnotationDataUserDefinedMessage", - "properties": {}, - "type": "object" - }, - "AppsDynamiteSharedTasksMessageIntegrationPayload": { - "description": "A payload containing Tasks metadata for rendering a live card. Currently not used by the Tasks integration.", - "id": "AppsDynamiteSharedTasksMessageIntegrationPayload", - "properties": {}, + "EnterpriseTopazSidekickCommonPersonBirthday": { + "id": "EnterpriseTopazSidekickCommonPersonBirthday", + "properties": { + "value": { + "description": "Unstructured birthday.", + "type": "string" + } + }, "type": "object" }, - "AppsDynamiteSharedTextSegment": { - "description": "Defines a segment in a text.", - "id": "AppsDynamiteSharedTextSegment", + "EnterpriseTopazSidekickConflictingEventsCardProto": { + "description": "Conflicting meetings card proto.", + "id": "EnterpriseTopazSidekickConflictingEventsCardProto", "properties": { - "length": { - "description": "Length of the segment in the text.", - "format": "int32", - "type": "integer" + "conflictingEvent": { + "description": "All the events that conflict with main_event.", + "items": { + "$ref": "EnterpriseTopazSidekickAgendaEntry" + }, + "type": "array" }, - "startIndex": { - "description": "Start index (0-indexed and inclusive) of the segment in the text.", - "format": "int32", - "type": "integer" + "mainEvent": { + "$ref": "EnterpriseTopazSidekickAgendaEntry", + "description": "The event identified as being the most important." } }, "type": "object" }, - "AppsDynamiteSharedTextSegmentsWithDescription": { - "description": "Defines text segments with description type associated.", - "id": "AppsDynamiteSharedTextSegmentsWithDescription", + "EnterpriseTopazSidekickDocumentGroup": { + "description": "Represents a mapping between a document type and its corresponding documents. Use for Work in Progress card in v1 homepage.", + "id": "EnterpriseTopazSidekickDocumentGroup", "properties": { - "descriptionType": { + "groupType": { + "description": "Document group type", "enum": [ - "DESCRIPTION_TYPE_UNSPECIFIED", - "KEYWORD_MATCH", - "SNIPPET" + "UNKNOWN_TYPE", + "ALL" ], "enumDescriptions": [ - "", - "Indicates the text segments contain matched keywords. Client can highlight them in search results page.", - "Indicates the text segments represent parts of the snippeted text. Clients can display just these in SRP as shortened message. Multiple TextSegments with this DescriptionType are returned to denote disjointed snippets i.e. \"a long test message\" -\u003e \"a ... message\"" + "Unknown type.", + "A mix of all the document types." ], "type": "string" }, - "textSegment": { + "personalizedDocument": { + "description": "The list of corresponding documents.", "items": { - "$ref": "AppsDynamiteSharedTextSegment" + "$ref": "EnterpriseTopazSidekickCommonDocument" }, "type": "array" } }, "type": "object" }, - "AppsDynamiteSharedTextWithDescription": { - "description": "Defines a text with descriptive text segments associated.", - "id": "AppsDynamiteSharedTextWithDescription", + "EnterpriseTopazSidekickDocumentPerCategoryList": { + "id": "EnterpriseTopazSidekickDocumentPerCategoryList", "properties": { - "textBody": { - "type": "string" - }, - "textSegmentsWithDescription": { + "documents": { "items": { - "$ref": "AppsDynamiteSharedTextSegmentsWithDescription" + "$ref": "EnterpriseTopazSidekickDocumentPerCategoryListDocumentPerCategoryListEntry" }, "type": "array" - } - }, - "type": "object" - }, - "AppsDynamiteSharedUserBlockRelationship": { - "description": "User-block relationship", - "id": "AppsDynamiteSharedUserBlockRelationship", - "properties": { - "hasBlockedRequester": { - "type": "boolean" }, - "isBlockedByRequester": { - "type": "boolean" + "helpMessage": { + "description": "Localized message explaining how the documents were derived (e.g. from the last 30 days activity). This field is optional.", + "type": "string" + }, + "listType": { + "enum": [ + "UNKNOWN_LIST_TYPE", + "MENTIONS", + "SHARES", + "NEEDS_ATTENTION", + "VIEWS", + "EDITS" + ], + "enumDescriptions": [ + "", + "All documents in the list correspond to one of the mention categories.", + "All documents in the list correspond to one of the share categories.", + "A mixture of document categories that correspond to documents that need the users attention (e.g. documents that have been explicitly shared with the user but have not been viewed and documents where the user was mentioned but has not replied).", + "All documents in the list correspond to one of the view categories.", + "All documents in the list correspond to one of the edit categories." + ], + "type": "string" + }, + "listTypeDescription": { + "description": "Description of the types of documents present in the list.", + "type": "string" + }, + "responseMessage": { + "description": "Response message in case no documents are present in the card.", + "type": "string" } }, "type": "object" }, - "AppsDynamiteSharedVideoReference": { - "description": "Reference to a transcoded video attachment.", - "id": "AppsDynamiteSharedVideoReference", + "EnterpriseTopazSidekickDocumentPerCategoryListDocumentPerCategoryListEntry": { + "id": "EnterpriseTopazSidekickDocumentPerCategoryListDocumentPerCategoryListEntry", "properties": { - "format": { - "description": "Available transcode format. Value is defined in video/storage/proto/content_header.proto", - "items": { - "format": "int32", - "type": "integer" - }, - "type": "array" - }, - "status": { - "description": "Transcode status", + "category": { "enum": [ - "UNKNOWN_STATUS", - "SUCCESS", - "ERROR", - "NOT_APPLICABLE", - "THUMBNAIL_SUCCESS", - "GO_LIVE_SUCCESS" + "UNKNOWN_DOCUMENT", + "ACTIONABLE", + "VIEWED", + "REPLIED", + "MENTION_VIEWED", + "MENTION_REPLIED", + "MENTION_NOT_VIEWED", + "SHARED_AND_VIEWED", + "SHARED_NOT_VIEWED", + "EDITED" ], "enumDescriptions": [ "", "", "", "", - "", - "" + "Mention categories. The mention has been viewed by the user, but the user has not replied.", + "The user has replied to the mention.", + "The mention has not been viewed by the user.", + "Share categories. Consists of documents that have been explicitly shared with the user. Document has been viewed.", + "Document has not been viewed.", + "Document has been edited." ], "type": "string" + }, + "document": { + "$ref": "EnterpriseTopazSidekickCommonDocument" + }, + "rationale": { + "description": "Reason this document was selected.", + "type": "string" } }, "type": "object" }, - "AppsDynamiteStorageAction": { - "description": "An action that describes the behavior when the form is submitted. For example, an Apps Script can be invoked to handle the form.", - "id": "AppsDynamiteStorageAction", + "EnterpriseTopazSidekickFindMeetingTimeCardProto": { + "description": "Response to find meeting time among a set of people.", + "id": "EnterpriseTopazSidekickFindMeetingTimeCardProto", "properties": { - "function": { - "description": "Apps Script function to invoke when the containing element is clicked/activated.", - "type": "string" + "commonAvailableTimeSlots": { + "description": "Slots when all attendees have availability.", + "items": { + "$ref": "EnterpriseTopazSidekickTimeSlot" + }, + "type": "array" }, - "interaction": { - "enum": [ - "INTERACTION_UNSPECIFIED", - "OPEN_DIALOG" - ], - "enumDescriptions": [ - "Default value if interaction is not specified.", - "A dialog opens by clicking the button." - ], - "type": "string" + "invitees": { + "description": "Invitees to the event.", + "items": { + "$ref": "EnterpriseTopazSidekickPerson" + }, + "type": "array" }, - "loadIndicator": { - "enum": [ - "SPINNER", - "NONE" - ], - "enumDescriptions": [ - "Displays a spinner to indicate that content is loading.", - "Nothing is displayed." - ], - "type": "string" + "requester": { + "$ref": "EnterpriseTopazSidekickPerson", + "description": "Requester." + }, + "scheduledMeeting": { + "$ref": "EnterpriseTopazSidekickScheduledMeeting", + "description": "Details about the scheduled meeting, if one exists." }, - "parameters": { - "description": "List of action parameters.", + "skippedInvitees": { + "description": "Invitees that have been skipped in the computation, most likely because they are groups.", "items": { - "$ref": "AppsDynamiteStorageActionActionParameter" + "$ref": "EnterpriseTopazSidekickPerson" }, "type": "array" }, - "persistValues": { - "description": "Indicates whether form values persist after the action. The default value is `false`. If `true`, form values remain after the action is triggered. When using [LoadIndicator.NONE](workspace/add-ons/reference/rpc/google.apps.card.v1#loadindicator) for actions, `persist_values` = `true`is recommended, as it ensures that any changes made by the user after form or on change actions are sent to the server are not overwritten by the response. If `false`, the form values are cleared when the action is triggered. When `persist_values` is set to `false`, it is strongly recommended that the card use [LoadIndicator.SPINNER](workspace/add-ons/reference/rpc/google.apps.card.v1#loadindicator) for all actions, as this locks the UI to ensure no changes are made by the user while the action is being processed.", - "type": "boolean" + "timeBoundaries": { + "$ref": "EnterpriseTopazSidekickTimeSlot", + "description": "Min and max timestamp used to find a common available timeslot." + }, + "timezoneId": { + "description": "Timezone ID.", + "type": "string" } }, "type": "object" }, - "AppsDynamiteStorageActionActionParameter": { - "description": "List of string parameters to supply when the action method is invoked. For example, consider three snooze buttons: snooze now, snooze 1 day, snooze next week. You might use action method = snooze(), passing the snooze type and snooze time in the list of string parameters.", - "id": "AppsDynamiteStorageActionActionParameter", + "EnterpriseTopazSidekickGap": { + "id": "EnterpriseTopazSidekickGap", "properties": { - "key": { - "description": "The name of the parameter for the action script.", + "displayRemainingTime": { + "description": "Localized time string in the format: 1 hour 15 minutes", "type": "string" }, - "value": { - "description": "The value of the parameter.", + "endTime": { + "description": "Localized time string in the format:(Locale CZ) 8:30 odp.", + "type": "string" + }, + "endTimeMs": { + "format": "uint64", + "type": "string" + }, + "remainingTime": { + "format": "google-duration", + "type": "string" + }, + "startTime": { + "description": "Localized time string in the format:(Locale CZ) 8:30 odp.", + "type": "string" + }, + "startTimeMs": { + "format": "uint64", "type": "string" } }, "type": "object" }, - "AppsDynamiteStorageBorderStyle": { - "description": "The style options for the border of a card or widget, including the border type and color.", - "id": "AppsDynamiteStorageBorderStyle", + "EnterpriseTopazSidekickGenericAnswerCard": { + "id": "EnterpriseTopazSidekickGenericAnswerCard", "properties": { - "cornerRadius": { - "description": "The corner radius for the border.", - "format": "int32", - "type": "integer" + "answer": { + "description": "The answer.", + "type": "string" + }, + "title": { + "description": "Title or header of the card.", + "type": "string" + } + }, + "type": "object" + }, + "EnterpriseTopazSidekickGetAndKeepAheadCardProto": { + "description": "Get and keep ahead card", + "id": "EnterpriseTopazSidekickGetAndKeepAheadCardProto", + "properties": { + "declinedEvents": { + "$ref": "EnterpriseTopazSidekickGetAndKeepAheadCardProtoDeclinedEvents" }, - "strokeColor": { - "$ref": "Color", - "description": "The colors to use when the type is `BORDER_TYPE_STROKE`." + "mentionedDocuments": { + "$ref": "EnterpriseTopazSidekickDocumentPerCategoryList" }, - "type": { - "description": "The border type.", + "sharedDocuments": { + "$ref": "EnterpriseTopazSidekickDocumentPerCategoryList" + } + }, + "type": "object" + }, + "EnterpriseTopazSidekickGetAndKeepAheadCardProtoDeclinedEvents": { + "description": "A list of events where all guests declined.", + "id": "EnterpriseTopazSidekickGetAndKeepAheadCardProtoDeclinedEvents", + "properties": { + "events": { + "items": { + "$ref": "EnterpriseTopazSidekickAgendaEntry" + }, + "type": "array" + } + }, + "type": "object" + }, + "EnterpriseTopazSidekickMeetingNotesCardError": { + "description": "Errors in the creation of meeting notes.", + "id": "EnterpriseTopazSidekickMeetingNotesCardError", + "properties": { + "description": { + "description": "The description of the reason why create-meeting-notes failed.", + "type": "string" + }, + "event": { + "$ref": "EnterpriseTopazSidekickAgendaEntry", + "description": "The event to request meeting notes creation" + }, + "reason": { + "description": "The reason why create-meeting-notes failed.", "enum": [ - "BORDER_TYPE_UNSPECIFIED", - "NO_BORDER", - "STROKE" + "NONE", + "NOT_OWNER", + "UNKNOWN" ], "enumDescriptions": [ - "No value specified.", - "No border.", - "Outline." + "No reason (default value).", + "The user is not an owner.", + "Unknown reason." ], "type": "string" } }, "type": "object" }, - "AppsDynamiteStorageButton": { - "description": "A button. Can be a text button or an image button.", - "id": "AppsDynamiteStorageButton", + "EnterpriseTopazSidekickMeetingNotesCardProto": { + "description": "Information about the meeting notes created.", + "id": "EnterpriseTopazSidekickMeetingNotesCardProto", "properties": { - "altText": { - "description": "The alternative text used for accessibility. Has no effect when an icon is set; use `icon.alt_text` instead.", - "type": "string" - }, - "color": { - "$ref": "Color", - "description": "If set, the button is filled with a solid background." - }, - "disabled": { - "description": "If true, the button is displayed in a disabled state and doesn't respond to user actions.", - "type": "boolean" + "event": { + "$ref": "EnterpriseTopazSidekickAgendaEntry", + "description": "The event to request meeting notes creation." }, - "icon": { - "$ref": "AppsDynamiteStorageIcon", - "description": "The icon image." + "fileId": { + "description": "Google Drive ID (a.k.a. resource ID) of the file.", + "type": "string" }, - "onClick": { - "$ref": "AppsDynamiteStorageOnClick", - "description": "The action to perform when the button is clicked." + "title": { + "description": "Title we want to show for meeting notes in the answer card", + "type": "string" }, - "text": { - "description": "The text of the button.", + "url": { + "description": "New URL.", "type": "string" } }, "type": "object" }, - "AppsDynamiteStorageButtonList": { - "description": "A list of buttons layed out horizontally.", - "id": "AppsDynamiteStorageButtonList", + "EnterpriseTopazSidekickMeetingNotesCardRequest": { + "description": "Meeting notes card request.", + "id": "EnterpriseTopazSidekickMeetingNotesCardRequest", "properties": { - "buttons": { + "canCreateFor": { + "description": "Who are the meeting notes created for.", "items": { - "$ref": "AppsDynamiteStorageButton" + "enum": [ + "UNKNOWN", + "MYSELF", + "ALL_ATTENDEES" + ], + "enumDescriptions": [ + "Unknown (default).", + "For the requester.", + "For all the meeting attendees." + ], + "type": "string" }, "type": "array" + }, + "error": { + "$ref": "EnterpriseTopazSidekickMeetingNotesCardError", + "description": "The error and reason if known error occured." + }, + "event": { + "$ref": "EnterpriseTopazSidekickAgendaEntry", + "description": "The event to request meeting notes creation" + } + }, + "type": "object" + }, + "EnterpriseTopazSidekickNlpMetadata": { + "description": "Metadata about the NLP interpretation of the query.", + "id": "EnterpriseTopazSidekickNlpMetadata", + "properties": { + "confidence": { + "description": "Confidence of the interpretation that generated this card.", + "format": "float", + "type": "number" } }, "type": "object" }, - "AppsDynamiteStorageCard": { - "description": "A card is a UI element that can contain UI widgets such as text and images. For more information, see Cards . For example, the following JSON creates a card that has a header with the name, position, icons, and link for a contact, followed by a section with contact information like email and phone number. ``` { \"header\": { \"title\": \"Heba Salam\", \"subtitle\": \"Software Engineer\", \"imageStyle\": \"ImageStyle.AVATAR\", \"imageUrl\": \"https://example.com/heba_salam.png\", \"imageAltText\": \"Avatar for Heba Salam\" }, \"sections\" : [ { \"header\": \"Contact Info\", \"widgets\": [ { \"decorated_text\": { \"icon\": { \"knownIcon\": \"EMAIL\" }, \"content\": \"heba.salam@example.com\" } }, { \"decoratedText\": { \"icon\": { \"knownIcon\": \"PERSON\" }, \"content\": \"Online\" } }, { \"decoratedText\": { \"icon\": { \"knownIcon\": \"PHONE\" }, \"content\": \"+1 (555) 555-1234\" } }, { \"buttons\": [ { \"textButton\": { \"text\": \"Share\", }, \"onClick\": { \"openLink\": { \"url\": \"https://example.com/share\" } } }, { \"textButton\": { \"text\": \"Edit\", }, \"onClick\": { \"action\": { \"function\": \"goToView\", \"parameters\": [ { \"key\": \"viewType\", \"value\": \"EDIT\" } ], \"loadIndicator\": \"LoadIndicator.SPINNER\" } } } ] } ], \"collapsible\": true, \"uncollapsibleWidgetsCount\": 3 } ], \"cardActions\": [ { \"actionLabel\": \"Send Feedback\", \"onClick\": { \"openLink\": { \"url\": \"https://example.com/feedback\" } } } ], \"name\": \"contact-card-K3wB6arF2H9L\" } ```", - "id": "AppsDynamiteStorageCard", + "EnterpriseTopazSidekickPeopleAnswerDisambiguationInfo": { + "description": "Metadata for disambiguation.", + "id": "EnterpriseTopazSidekickPeopleAnswerDisambiguationInfo", "properties": { - "cardActions": { - "description": "The actions of this card. They are added to a card's generated toolbar menu. For example, the following JSON constructs a card action menu with Settings and Send Feedback options: ``` \"card_actions\": [ { \"actionLabel\": \"Setting\", \"onClick\": { \"action\": { \"functionName\": \"goToView\", \"parameters\": [ { \"key\": \"viewType\", \"value\": \"SETTING\" } ], \"loadIndicator\": \"LoadIndicator.SPINNER\" } } }, { \"actionLabel\": \"Send Feedback\", \"onClick\": { \"openLink\": { \"url\": \"https://example.com/feedback\" } } } ] ```", + "disambiguation": { + "description": "A list of people that also matched the query. This list is not complete.", "items": { - "$ref": "AppsDynamiteStorageCardCardAction" + "$ref": "EnterpriseTopazSidekickPeopleAnswerDisambiguationInfoDisambiguationPerson" }, "type": "array" }, - "header": { - "$ref": "AppsDynamiteStorageCardCardHeader", - "description": "The header of the card. A header usually contains a title and an image." - }, "name": { - "description": "Name of the card, which is used as a identifier for the card in card navigation.", + "description": "The name that was extracted from the query. This may be in the form of the given name, last name, full name, LDAP, or email address. This name can be considered suitable for displaying to the user and can largely be considered to be normalized (e.g. \"Bob's\" -\u003e \"Bob\").", "type": "string" - }, - "sections": { - "description": "Sections are separated by a line divider.", - "items": { - "$ref": "AppsDynamiteStorageCardSection" - }, - "type": "array" } }, "type": "object" }, - "AppsDynamiteStorageCardCardAction": { - "description": "A card action is the action associated with the card. For example, an invoice card might include actions such as delete invoice, email invoice, or open the invoice in a browser.", - "id": "AppsDynamiteStorageCardCardAction", + "EnterpriseTopazSidekickPeopleAnswerDisambiguationInfoDisambiguationPerson": { + "description": "A person that also matches the query, but was not selected due to a lower affinity with the requesting user.", + "id": "EnterpriseTopazSidekickPeopleAnswerDisambiguationInfoDisambiguationPerson", "properties": { - "actionLabel": { - "description": "The label that displays as the action menu item.", - "type": "string" + "person": { + "$ref": "EnterpriseTopazSidekickCommonPerson", + "description": "The profile of this person." }, - "onClick": { - "$ref": "AppsDynamiteStorageOnClick", - "description": "The onclick action for this action item." + "query": { + "description": "The query that can be used to produce an answer card with the same attribute, but for this person.", + "type": "string" } }, "type": "object" }, - "AppsDynamiteStorageCardCardHeader": { - "id": "AppsDynamiteStorageCardCardHeader", + "EnterpriseTopazSidekickPeopleAnswerPeopleAnswerCardHeader": { + "description": "Recommended header to display for the card.", + "id": "EnterpriseTopazSidekickPeopleAnswerPeopleAnswerCardHeader", "properties": { - "imageAltText": { - "description": "The alternative text of this image which is used for accessibility.", + "title": { + "description": "The suggested title to display. This defaults to the user's query.", "type": "string" + } + }, + "type": "object" + }, + "EnterpriseTopazSidekickPeopleAnswerPersonAnswerCard": { + "description": "An answer card for a single person.", + "id": "EnterpriseTopazSidekickPeopleAnswerPersonAnswerCard", + "properties": { + "answer": { + "description": "List of answers.", + "items": { + "$ref": "SafeHtmlProto" + }, + "type": "array" + }, + "answerText": { + "$ref": "EnterpriseTopazSidekickAnswerAnswerList", + "description": "List of answers." + }, + "disambiguationInfo": { + "$ref": "EnterpriseTopazSidekickPeopleAnswerDisambiguationInfo", + "description": "Disambiguation information." }, - "imageType": { - "description": "The image's type.", + "header": { + "$ref": "EnterpriseTopazSidekickPeopleAnswerPeopleAnswerCardHeader", + "description": "The header to display for the card." + }, + "responseStatus": { + "description": "The response status.", "enum": [ - "SQUARE", - "CIRCLE" + "UNKNOWN", + "SUCCESS", + "MISSING_PERSON", + "MISSING_DATA" ], "enumDescriptions": [ - "Applies no cropping to the image.", - "Applies a circular mask to the image." + "Unknown.", + "Success.", + "No such person was found in the user's domain.", + "A person was found to match the query, but an answer could not be obtained." ], "type": "string" }, - "imageUrl": { - "description": "The URL of the image in the card header.", - "type": "string" - }, - "subtitle": { - "description": "The subtitle of the card header.", + "statusMessage": { + "description": "Localized user friendly message to display to the user in the case of missing data or an error.", "type": "string" }, - "title": { - "description": "The title of the card header. The title must be specified. The header has a fixed height: if both a title and subtitle are specified, each takes up one line. If only the title is specified, it takes up both lines.", - "type": "string" + "subject": { + "$ref": "EnterpriseTopazSidekickCommonPerson", + "description": "The profile of the person that was the subject of the query." } }, "type": "object" }, - "AppsDynamiteStorageCardSection": { - "description": "A section contains a collection of widgets that are rendered vertically in the order that they are specified. Across all platforms, cards have a narrow fixed width, so there is currently no need for layout properties, for example, float.", - "id": "AppsDynamiteStorageCardSection", + "EnterpriseTopazSidekickPeopleAnswerRelatedPeopleAnswerCard": { + "description": "An answer card for a list of people that are related to the subject of the query.", + "id": "EnterpriseTopazSidekickPeopleAnswerRelatedPeopleAnswerCard", "properties": { - "collapsible": { - "description": "Indicates whether this section is collapsible. If a section is collapsible, the description must be given.", - "type": "boolean" + "disambiguationInfo": { + "$ref": "EnterpriseTopazSidekickPeopleAnswerDisambiguationInfo", + "description": "Disambiguation information." }, "header": { - "description": "The header of the section. Formatted text is supported.", - "type": "string" - }, - "uncollapsibleWidgetsCount": { - "description": "The number of uncollapsible widgets. For example, when a section contains five widgets and the `numUncollapsibleWidget` is set to `2`, the first two widgets are always shown and the last three are collapsed as default. The `numUncollapsibleWidget` is taken into account only when collapsible is set to `true`.", - "format": "int32", - "type": "integer" + "$ref": "EnterpriseTopazSidekickPeopleAnswerPeopleAnswerCardHeader", + "description": "The header to display for the card." }, - "widgets": { - "description": "A section must contain at least 1 widget.", + "relatedPeople": { + "description": "A list of people that are related to the query subject.", "items": { - "$ref": "AppsDynamiteStorageWidget" + "$ref": "EnterpriseTopazSidekickCommonPerson" }, "type": "array" - } - }, - "type": "object" - }, - "AppsDynamiteStorageColumns": { - "description": "Represents a Columns widget that displays a single row of columns.", - "id": "AppsDynamiteStorageColumns", - "properties": { - "columnItems": { - "description": "Each card supports up to 2 columns. If the user's screen width is less than or equal to 480 pixels, the second column wraps below the first column.", - "items": { - "$ref": "AppsDynamiteStorageColumnsColumn" - }, - "type": "array" - } - }, - "type": "object" - }, - "AppsDynamiteStorageColumnsColumn": { - "description": "Represents a Column that consists of widgets stacked vertically.", - "id": "AppsDynamiteStorageColumnsColumn", - "properties": { - "horizontalAlignment": { - "description": "The horizontal alignment of the column.", + }, + "relationType": { + "description": "Defines the type of relation the list of people have with the subject of the card.", "enum": [ - "HORIZONTAL_ALIGNMENT_UNSPECIFIED", - "START", - "CENTER", - "END" + "UNKNOWN", + "DIRECT_REPORTS", + "MANAGER", + "PEERS" ], "enumDescriptions": [ - "Unspecified alignment.", - "Alignment to the start position.", - "Alignment to the center position.", - "Alignment to the end position." + "Unknown.", + "Direct reports.", + "The manager.", + "The teammates/peers of the subject." ], "type": "string" }, - "horizontalSizeStyle": { - "description": "Specifies how the column content is sized horizontally.", + "responseStatus": { + "description": "The response status.", "enum": [ - "HORIZONTAL_SIZE_STYLE_UNSPECIFIED", - "FILL_AVAILABLE_SPACE", - "FILL_MINIMUM_SPACE" + "UNKNOWN", + "SUCCESS", + "MISSING_PERSON", + "MISSING_DATA" ], "enumDescriptions": [ - "Unspecified.", - "Fills up the available horizontal width. Default value if unspecified.", - "Fills up the minimum horizontal width." + "Unknown.", + "Success.", + "No such person was found in the user's domain.", + "A person was found to match the query, but an answer could not be obtained." ], "type": "string" }, - "verticalAlignment": { - "description": "The vertical alignment of the column.", - "enum": [ - "VERTICAL_ALIGNMENT_UNSPECIFIED", - "CENTER", - "TOP", - "BOTTOM" - ], - "enumDescriptions": [ - "Unspecified.", - "Aligns the widget in the center of the column. Default value if unspecified.", - "Aligns the widget at the top of the column.", - "Aligns the widget at the bottom of the column." - ], + "statusMessage": { + "description": "Localized user friendly message to display to the user in the case of missing data or an error.", "type": "string" }, - "widgets": { - "description": "LINT.ThenChange(//depot/google3/google/apps/card/v1/card.proto) Array of widgets included in the column.", - "items": { - "$ref": "AppsDynamiteStorageColumnsColumnWidgets" - }, - "type": "array" + "subject": { + "$ref": "EnterpriseTopazSidekickCommonPerson", + "description": "The profile of the person that was the subject of the query." } }, "type": "object" }, - "AppsDynamiteStorageColumnsColumnWidgets": { - "description": "LINT.IfChange The `column` widget can contain these widgets.", - "id": "AppsDynamiteStorageColumnsColumnWidgets", + "EnterpriseTopazSidekickPeopleDisambiguationCard": { + "id": "EnterpriseTopazSidekickPeopleDisambiguationCard", "properties": { - "buttonList": { - "$ref": "AppsDynamiteStorageButtonList", - "description": "ButtonList widget." - }, - "dateTimePicker": { - "$ref": "AppsDynamiteStorageDateTimePicker", - "description": "DateTimePicker widget." - }, - "decoratedText": { - "$ref": "AppsDynamiteStorageDecoratedText", - "description": "DecoratedText widget." - }, - "image": { - "$ref": "AppsDynamiteStorageImage", - "description": "Image widget." - }, - "selectionInput": { - "$ref": "AppsDynamiteStorageSelectionInput", - "description": "SelectionInput widget." - }, - "textInput": { - "$ref": "AppsDynamiteStorageTextInput", - "description": "TextInput widget." - }, - "textParagraph": { - "$ref": "AppsDynamiteStorageTextParagraph", - "description": "Text paragraph widget." + "person": { + "description": "Candidate persons for the query.", + "items": { + "$ref": "EnterpriseTopazSidekickCommonPerson" + }, + "type": "array" } }, "type": "object" }, - "AppsDynamiteStorageDateTimePicker": { - "description": "The widget that lets users to specify a date and time.", - "id": "AppsDynamiteStorageDateTimePicker", + "EnterpriseTopazSidekickPerson": { + "description": "Person.", + "id": "EnterpriseTopazSidekickPerson", "properties": { - "label": { - "description": "The label for the field that displays to the user.", - "type": "string" - }, - "name": { - "description": "The name of the text input that's used in formInput, and uniquely identifies this input.", + "affinityLevel": { + "description": "The level of affinity this person has with the requesting user.", + "enum": [ + "UNKNOWN", + "LOW", + "MEDIUM", + "HIGH" + ], + "enumDescriptions": [ + "", + "", + "", + "" + ], "type": "string" }, - "onChangeAction": { - "$ref": "AppsDynamiteStorageAction", - "description": "Triggered when the user clicks Save or Clear from the date/time picker dialog. This is only triggered if the value changed as a result of the Save/Clear operation." - }, - "timezoneOffsetDate": { - "description": "The number representing the time zone offset from UTC, in minutes. If set, the `value_ms_epoch` is displayed in the specified time zone. If not set, it uses the user's time zone setting on the client side.", - "format": "int32", - "type": "integer" - }, - "type": { - "description": "The type of the date/time picker.", + "attendingStatus": { + "description": "Attendance status of the person when included in a meeting event.", "enum": [ - "DATE_AND_TIME", - "DATE_ONLY", - "TIME_ONLY" + "AWAITING", + "YES", + "NO", + "MAYBE" ], "enumDescriptions": [ - "The user can select a date and time.", - "The user can only select a date.", - "The user can only select a time." + "Awaiting for the user to set the status.", + "Attending.", + "Not attending.", + "Tentatively attending." ], "type": "string" }, - "valueMsEpoch": { - "description": "The value to display as the default value before user input or previous user input. It is represented in milliseconds (Epoch time). For `DATE_AND_TIME` type, the full epoch value is used. For `DATE_ONLY` type, only date of the epoch time is used. For `TIME_ONLY` type, only time of the epoch time is used. For example, you can set epoch time to `3 * 60 * 60 * 1000` to represent 3am.", - "format": "int64", - "type": "string" - } - }, - "type": "object" - }, - "AppsDynamiteStorageDecoratedText": { - "description": "A widget that displays text with optional decorations such as a label above or below the text, an icon in front of the text, a selection widget or a button after the text.", - "id": "AppsDynamiteStorageDecoratedText", - "properties": { - "bottomLabel": { - "description": "The formatted text label that shows below the main text.", + "email": { + "description": "Email.", "type": "string" }, - "button": { - "$ref": "AppsDynamiteStorageButton", - "description": "A button that can be clicked to trigger an action." - }, - "endIcon": { - "$ref": "AppsDynamiteStorageIcon", - "description": "An icon displayed after the text." - }, - "icon": { - "$ref": "AppsDynamiteStorageIcon", - "description": "Deprecated in favor of start_icon." - }, - "onClick": { - "$ref": "AppsDynamiteStorageOnClick", - "description": "Only the top and bottom label and content region are clickable." + "gaiaId": { + "description": "Gaia id.", + "format": "int64", + "type": "string" }, - "startIcon": { - "$ref": "AppsDynamiteStorageIcon", - "description": "The icon displayed in front of the text." + "isGroup": { + "description": "Whether the invitee is a group.", + "type": "boolean" }, - "switchControl": { - "$ref": "AppsDynamiteStorageDecoratedTextSwitchControl", - "description": "A switch widget can be clicked to change its state or trigger an action." + "name": { + "description": "Name.", + "type": "string" }, - "text": { - "description": "Required. The main widget formatted text. See Text formatting for details.", + "obfuscatedGaiaId": { + "description": "Obfuscated Gaia id.", "type": "string" }, - "topLabel": { - "description": "The formatted text label that shows above the main text.", + "photoUrl": { + "description": "Absolute URL to the profile photo of the person.", "type": "string" + } + }, + "type": "object" + }, + "EnterpriseTopazSidekickPersonProfileCard": { + "id": "EnterpriseTopazSidekickPersonProfileCard", + "properties": { + "relatedPeople": { + "items": { + "$ref": "EnterpriseTopazSidekickPersonProfileCardRelatedPeople" + }, + "type": "array" }, - "wrapText": { - "description": "The wrap text setting. If `true`, the text is wrapped and displayed in multiline. Otherwise, the text is truncated.", - "type": "boolean" + "subject": { + "$ref": "EnterpriseTopazSidekickCommonPerson", + "description": "The subject of the card." } }, "type": "object" }, - "AppsDynamiteStorageDecoratedTextSwitchControl": { - "id": "AppsDynamiteStorageDecoratedTextSwitchControl", + "EnterpriseTopazSidekickPersonProfileCardRelatedPeople": { + "id": "EnterpriseTopazSidekickPersonProfileCardRelatedPeople", "properties": { - "controlType": { - "description": "The control type, either switch or checkbox.", + "relatedPerson": { + "description": "Related people.", + "items": { + "$ref": "EnterpriseTopazSidekickCommonPerson" + }, + "type": "array" + }, + "relation": { + "description": "Relation type.", "enum": [ - "SWITCH", - "CHECKBOX", - "CHECK_BOX" + "UNKNOWN", + "MANAGER", + "DIRECT_REPORT" ], "enumDescriptions": [ "", - "Deprecated in favor of `CHECK_BOX`.", + "", "" ], "type": "string" - }, - "name": { - "description": "The name of the switch widget that's used in formInput.", - "type": "string" - }, - "onChangeAction": { - "$ref": "AppsDynamiteStorageAction", - "description": "The action when the switch state is changed." - }, - "selected": { - "description": "If the switch is selected.", - "type": "boolean" - }, - "value": { - "description": "The value is what is passed back in the callback.", - "type": "string" } }, "type": "object" }, - "AppsDynamiteStorageDivider": { - "description": "A divider that appears in between widgets.", - "id": "AppsDynamiteStorageDivider", - "properties": {}, - "type": "object" - }, - "AppsDynamiteStorageGrid": { - "description": "Represents a Grid widget that displays items in a configurable grid layout.", - "id": "AppsDynamiteStorageGrid", + "EnterpriseTopazSidekickPersonalizedDocsCardProto": { + "description": "Personalized docs card proto.", + "id": "EnterpriseTopazSidekickPersonalizedDocsCardProto", "properties": { - "borderStyle": { - "$ref": "AppsDynamiteStorageBorderStyle", - "description": "The border style to apply to each grid item." - }, - "columnCount": { - "description": "The number of columns to display in the grid. A default value is used if this field isn't specified, and that default value is different depending on where the grid is shown (dialog versus companion).", - "format": "int32", - "type": "integer" - }, - "items": { - "description": "The items to display in the grid.", + "documentGroup": { + "description": "Document group.", "items": { - "$ref": "AppsDynamiteStorageGridGridItem" + "$ref": "EnterpriseTopazSidekickDocumentGroup" }, "type": "array" - }, - "onClick": { - "$ref": "AppsDynamiteStorageOnClick", - "description": "This callback is reused by each individual grid item, but with the item's identifier and index in the items list added to the callback's parameters." - }, - "title": { - "description": "The text that displays in the grid header.", - "type": "string" } }, "type": "object" }, - "AppsDynamiteStorageGridGridItem": { - "description": "Represents a single item in the grid layout.", - "id": "AppsDynamiteStorageGridGridItem", + "EnterpriseTopazSidekickRankingParams": { + "description": "Ranking params.", + "id": "EnterpriseTopazSidekickRankingParams", "properties": { - "id": { - "description": "A user-specified identifier for this grid item. This identifier is returned in the parent Grid's onClick callback parameters.", + "endTimeMs": { + "description": "The end-time that this object will expect to occur. If the type is marked as FIXED, then this end-time will persist after bidding. If the type is marked as FLEXIBLE, this field is NOT expected to be filled and will be filled in after it has won a bid. Expected to be set when type is set to FIXED.", + "format": "uint64", "type": "string" }, - "image": { - "$ref": "AppsDynamiteStorageImageComponent", - "description": "The image that displays in the grid item." - }, - "layout": { - "description": "The layout to use for the grid item.", + "priority": { + "description": "The priority to determine between objects that have the same start_time_ms The lower-value of priority == ranked higher. Max-priority = 0. Expected to be set for all types.", "enum": [ - "GRID_ITEM_LAYOUT_UNSPECIFIED", - "TEXT_BELOW", - "TEXT_ABOVE" + "UNKNOWN", + "CRITICAL", + "IMPORTANT", + "HIGH", + "NORMAL", + "BEST_EFFORT" ], "enumDescriptions": [ - "No layout specified.", - "The title and subtitle are shown below the grid item's image.", - "The title and subtitle are shown above the grid item's image." + "Unknown (default).", + "Critical.", + "Important.", + "High.", + "Normal.", + "Best effort." ], "type": "string" }, - "subtitle": { - "description": "The grid item's subtitle.", - "type": "string" - }, - "textAlignment": { - "description": "The horizontal alignment of the grid item's text.", - "enum": [ - "HORIZONTAL_ALIGNMENT_UNSPECIFIED", - "START", - "CENTER", - "END" - ], - "enumDescriptions": [ - "Unspecified alignment.", - "Alignment to the start position.", - "Alignment to the center position.", - "Alignment to the end position." - ], - "type": "string" + "score": { + "description": "The score of the card to be used to break priority-ties", + "format": "float", + "type": "number" }, - "title": { - "description": "The grid item's title.", - "type": "string" - } - }, - "type": "object" - }, - "AppsDynamiteStorageIcon": { - "id": "AppsDynamiteStorageIcon", - "properties": { - "altText": { - "description": "The description of the icon, used for accessibility. The default value is provided if you don't specify one.", + "spanMs": { + "description": "The span that this card will take in the stream Expected to be set when type is set to FLEXIBLE.", + "format": "uint64", "type": "string" }, - "iconUrl": { - "description": "The icon specified by a URL.", + "startTimeMs": { + "description": "The start-time that this object will bid-for If the type is marked as FIXED, then this start-time will persist after bidding. If the type is marked as FLEXIBLE, then it will occur at the given time or sometime after the requested time. Expected to be set for all types.", + "format": "uint64", "type": "string" }, - "imageType": { - "description": "The crop style applied to the image. In some cases, applying a `CIRCLE` crop causes the image to be drawn larger than a standard icon.", + "type": { + "description": "The packing type of this object.", "enum": [ - "SQUARE", - "CIRCLE" + "FIXED", + "FLEXIBLE" ], "enumDescriptions": [ - "Applies no cropping to the image.", - "Applies a circular mask to the image." + "Fixed, i.e., the card is time sensitive.", + "Flexible, i.e., the card is not time sensitive." ], "type": "string" - }, - "knownIcon": { - "description": "The icon specified by the string name of a list of known icons", - "type": "string" - }, - "materialIcon": { - "$ref": "AppsDynamiteStorageMaterialIcon", - "description": "Display one of the [Google Material Icons](https://fonts.google.com/icons). For example, to display a [check box icon](https://fonts.google.com/icons?selected=Material%20Symbols%20Outlined%3Acheck_box%3AFILL%400%3Bwght%40400%3BGRAD%400%3Bopsz%4048), use \"material_icon\": { \"name\": \"check_box\" }" } }, "type": "object" }, - "AppsDynamiteStorageImage": { - "description": "An image that is specified by a URL and can have an onClick action.", - "id": "AppsDynamiteStorageImage", + "EnterpriseTopazSidekickRecentDocumentsCardProto": { + "id": "EnterpriseTopazSidekickRecentDocumentsCardProto", "properties": { - "altText": { - "description": "The alternative text of this image, used for accessibility.", - "type": "string" - }, - "imageUrl": { - "description": "An image URL.", - "type": "string" - }, - "onClick": { - "$ref": "AppsDynamiteStorageOnClick" + "document": { + "items": { + "$ref": "EnterpriseTopazSidekickCommonDocument" + }, + "type": "array" } }, "type": "object" }, - "AppsDynamiteStorageImageComponent": { - "id": "AppsDynamiteStorageImageComponent", + "EnterpriseTopazSidekickScheduledMeeting": { + "description": "Details about scheduled meetings.", + "id": "EnterpriseTopazSidekickScheduledMeeting", "properties": { - "altText": { - "description": "The accessibility label for the image.", + "meetingLocation": { + "description": "The meeting location.", "type": "string" }, - "borderStyle": { - "$ref": "AppsDynamiteStorageBorderStyle", - "description": "The border style to apply to the image." - }, - "cropStyle": { - "$ref": "AppsDynamiteStorageImageCropStyle", - "description": "The crop style to apply to the image." + "meetingTime": { + "$ref": "EnterpriseTopazSidekickTimeSlot", + "description": "The meeting time slot." }, - "imageUri": { - "description": "The image URL.", + "meetingTitle": { + "description": "The meeting title.", "type": "string" } }, "type": "object" }, - "AppsDynamiteStorageImageCropStyle": { - "description": "Represents the crop style applied to an image.", - "id": "AppsDynamiteStorageImageCropStyle", + "EnterpriseTopazSidekickShareMeetingDocsCardProto": { + "description": "Share meeting docs card proto.", + "id": "EnterpriseTopazSidekickShareMeetingDocsCardProto", "properties": { - "aspectRatio": { - "description": "The aspect ratio to use if the crop type is `RECTANGLE_CUSTOM`.", - "format": "double", - "type": "number" + "document": { + "description": "Documents to share for the given meeting.", + "items": { + "$ref": "EnterpriseTopazSidekickCommonDocument" + }, + "type": "array" }, - "type": { - "description": "The crop type.", - "enum": [ - "IMAGE_CROP_TYPE_UNSPECIFIED", - "SQUARE", - "CIRCLE", - "RECTANGLE_CUSTOM", - "RECTANGLE_4_3" - ], - "enumDescriptions": [ - "No value specified.", - "Applies a square crop.", - "Applies a circular crop.", - "Applies a rectangular crop with a custom aspect ratio.", - "Applies a rectangular crop with a 4:3 aspect ratio." - ], - "type": "string" + "event": { + "$ref": "EnterpriseTopazSidekickAgendaEntry", + "description": "Event." } }, "type": "object" }, - "AppsDynamiteStorageMaterialIcon": { - "description": "A [Google Font Icon](https://fonts.google.com/icons), which includes over 2500+ options. For example, to display a [check box icon](https://fonts.google.com/icons?selected=Material%20Symbols%20Outlined%3Acheck_box%3AFILL%400%3Bwght%40400%3BGRAD%400%3Bopsz%4048) with customized weight and grade, write { \"name\": \"check_box\", \"fill\": true, \"weight\": 300, \"grade\": -25 }", - "id": "AppsDynamiteStorageMaterialIcon", + "EnterpriseTopazSidekickTimeSlot": { + "description": "Slot of time.", + "id": "EnterpriseTopazSidekickTimeSlot", "properties": { - "fill": { - "description": "Whether it renders a filled icon. Default value is false. See Customization in [Google Font Icon](https://fonts.google.com/icons) for details.", - "type": "boolean" + "endTimeDay": { + "description": "Day end time at the user's timezone.", + "type": "string" }, - "grade": { - "description": "Weight and grade affect a symbol’s thickness. Adjustments to grade are more granular than adjustments to weight and have a small impact on the size of the symbol. Choose from {-25, 0, 200}. If absent, default value is 0. If any other value is specified, a broken image icon will be displayed. See Customization in [Google Font Icon](https://fonts.google.com/icons) for details.", - "format": "int32", - "type": "integer" + "endTimeHourAndMinute": { + "description": "Hour and minute of the end time at the user's timezone.", + "type": "string" }, - "name": { - "description": "The icon name defined in the [Google Material Icon](https://fonts.google.com/icons) in snake_case. e.g. \"check_box\". Any invalid name will be trimmed as empty string result in the icon falied to render.", + "endTimeInMillis": { + "description": "End time in milliseconds.", + "format": "int64", "type": "string" }, - "weight": { - "description": "The stroke weight of the icon. Choose from {100, 200, 300, 400, 500, 600, 700}. If absent, default value is 400. If any other value is specified, a broken image icon will be displayed. See Customization in [Google Font Icon](https://fonts.google.com/icons) for details.", - "format": "int32", - "type": "integer" + "startTimeDay": { + "description": "Day start time at user's timezone.", + "type": "string" + }, + "startTimeHourAndMinute": { + "description": "Hour and minute of the start time at the user's timezone.", + "type": "string" + }, + "startTimeInMillis": { + "description": "Start time in milliseconds.", + "format": "int64", + "type": "string" } }, "type": "object" }, - "AppsDynamiteStorageOnClick": { - "id": "AppsDynamiteStorageOnClick", + "EnumOperatorOptions": { + "description": "Used to provide a search operator for enum properties. This is optional. Search operators let users restrict the query to specific fields relevant to the type of item being searched. For example, if you provide no operator for a *priority* enum property with possible values *p0* and *p1*, a query that contains the term *p0* returns items that have *p0* as the value of the *priority* property, as well as any items that contain the string *p0* in other fields. If you provide an operator name for the enum, such as *priority*, then search users can use that operator to refine results to only items that have *p0* as this property's value, with the query *priority:p0*.", + "id": "EnumOperatorOptions", "properties": { - "action": { - "$ref": "AppsDynamiteStorageAction", - "description": "If specified, an action is triggered by this onClick." - }, - "hostAppAction": { - "$ref": "HostAppActionMarkup", - "description": "Triggers host app action on click directly without invoking form actions. This is currently not available to end-users and is used internal only." - }, - "openDynamicLinkAction": { - "$ref": "AppsDynamiteStorageAction", - "description": "An add-on triggers this action when the action needs to open a link. This differs from the open_link above in that this needs to talk to server to get the link. Thus some preparation work is required for web client to do before the open link action response comes back." - }, - "openLink": { - "$ref": "AppsDynamiteStorageOpenLink", - "description": "If specified, this onClick triggers an open link action." + "operatorName": { + "description": "Indicates the operator name required in the query in order to isolate the enum property. For example, if operatorName is *priority* and the property's name is *priorityVal*, then queries like *priority:\u003cvalue\u003e* show results only where the value of the property named *priorityVal* matches *\u003cvalue\u003e*. By contrast, a search that uses the same *\u003cvalue\u003e* without an operator returns all items where *\u003cvalue\u003e* matches the value of any String properties or text within the content field for the item. The operator name can only contain lowercase letters (a-z). The maximum length is 32 characters.", + "type": "string" } }, "type": "object" }, - "AppsDynamiteStorageOpenLink": { - "id": "AppsDynamiteStorageOpenLink", + "EnumPropertyOptions": { + "description": "The options for enum properties, which allow you to define a restricted set of strings to match user queries, set rankings for those string values, and define an operator name to be paired with those strings so that users can narrow results to only items with a specific value. For example, for items in a request tracking system with priority information, you could define *p0* as an allowable enum value and tie this enum to the operator name *priority* so that search users could add *priority:p0* to their query to restrict the set of results to only those items indexed with the value *p0*.", + "id": "EnumPropertyOptions", "properties": { - "appUri": { - "$ref": "AppsDynamiteStorageOpenLinkAppUri", - "description": "Represents the platform specific uri/intent to open on each client. For example: A companion_url will open in a companion window on the web. An iOS URL and android intent will open in the corresponding hosting apps. If these platform specific URLs can't be handled correctly, i.e. if the companion isn't supported on web and the hosting apps aren't available on the mobile platforms then the `uri` will open in a new browser window on all the platforms." - }, - "onClose": { - "enum": [ - "NOTHING", - "RELOAD" - ], - "enumDescriptions": [ - "Doesn’t reload the card after the child window closes. Reloads the card after the child window closes. If used in conjunction with [OpenAs.OVERLAY](/workspace/add-ons/reference/rpc/google.apps.card.v1#openas), the child window acts as a modal dialog and the main card is blocked until the child window closes.", - "" - ], - "type": "string" + "operatorOptions": { + "$ref": "EnumOperatorOptions", + "description": "If set, describes how the enum should be used as a search operator." }, - "openAs": { + "orderedRanking": { + "description": "Used to specify the ordered ranking for the enumeration that determines how the integer values provided in the possible EnumValuePairs are used to rank results. If specified, integer values must be provided for all possible EnumValuePair values given for this property. Can only be used if isRepeatable is false.", "enum": [ - "FULL_SIZE", - "OVERLAY" + "NO_ORDER", + "ASCENDING", + "DESCENDING" ], "enumDescriptions": [ - "The link opens as a full size window (if that's the frame used by the client.", - "The link opens as an overlay, such as a pop-up." + "There is no ranking order for the property. Results aren't adjusted by this property's value.", + "This property is ranked in ascending order. Lower values indicate lower ranking.", + "This property is ranked in descending order. Lower values indicate higher ranking." ], "type": "string" }, - "url": { - "description": "The URL to open.", - "type": "string" + "possibleValues": { + "description": "The list of possible values for the enumeration property. All EnumValuePairs must provide a string value. If you specify an integer value for one EnumValuePair, then all possible EnumValuePairs must provide an integer value. Both the string value and integer value must be unique over all possible values. Once set, possible values cannot be removed or modified. If you supply an ordered ranking and think you might insert additional enum values in the future, leave gaps in the initial integer values to allow adding a value in between previously registered values. The maximum number of elements is 100.", + "items": { + "$ref": "EnumValuePair" + }, + "type": "array" } }, "type": "object" }, - "AppsDynamiteStorageOpenLinkAppUri": { - "description": "Represents the platform specific uri/intent to open for each client.", - "id": "AppsDynamiteStorageOpenLinkAppUri", + "EnumValuePair": { + "description": "The enumeration value pair defines two things: a required string value and an optional integer value. The string value defines the necessary query term required to retrieve that item, such as *p0* for a priority item. The integer value determines the ranking of that string value relative to other enumerated values for the same property. For example, you might associate *p0* with *0* and define another enum pair such as *p1* and *1*. You must use the integer value in combination with ordered ranking to set the ranking of a given value relative to other enumerated values for the same property name. Here, a ranking order of DESCENDING for *priority* properties results in a ranking boost for items indexed with a value of *p0* compared to items indexed with a value of *p1*. Without a specified ranking order, the integer value has no effect on item ranking.", + "id": "EnumValuePair", "properties": { - "androidIntent": { - "$ref": "AppsDynamiteStorageOpenLinkAppUriIntent", - "description": "An intent object to be opened in the corresponding android hosting app." - }, - "companionUri": { - "description": "A companion uri string to be opened in the chat companion window. on the web.", - "type": "string" + "integerValue": { + "description": "The integer value of the EnumValuePair which must be non-negative. Optional.", + "format": "int32", + "type": "integer" }, - "iosUri": { - "description": "A uri string to be opened in the corresponding iOS hosting app.", + "stringValue": { + "description": "The string value of the EnumValuePair. The maximum length is 32 characters.", "type": "string" } }, "type": "object" }, - "AppsDynamiteStorageOpenLinkAppUriIntent": { - "description": "Android intent.", - "id": "AppsDynamiteStorageOpenLinkAppUriIntent", + "EnumValues": { + "description": "List of enum values.", + "id": "EnumValues", + "properties": { + "values": { + "description": "The maximum allowable length for string values is 32 characters.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, + "ErrorInfo": { + "description": "Error information about the response.", + "id": "ErrorInfo", "properties": { - "extraData": { - "description": "A list of extra data for the android intent. For example, for a calendar event edit intent, the event title information can be passed as extra data.", + "errorMessages": { "items": { - "$ref": "AppsDynamiteStorageOpenLinkAppUriIntentExtraData" + "$ref": "ErrorMessage" }, "type": "array" - }, - "intentAction": { - "description": "An android intent action string for the {@link android.content.Intent} object. For example: for the view intent action type, a valid value will be android.content.Intent.ACTION_VIEW.", - "type": "string" } }, "type": "object" }, - "AppsDynamiteStorageOpenLinkAppUriIntentExtraData": { - "description": "Extra data for an android intent. Valid keys are defined in the hosting app contract.", - "id": "AppsDynamiteStorageOpenLinkAppUriIntentExtraData", + "ErrorMessage": { + "description": "Error message per source response.", + "id": "ErrorMessage", "properties": { - "key": { - "description": "A key for the intent extra data.", + "errorMessage": { "type": "string" }, - "value": { - "description": "Value for the given extra data key.", - "type": "string" + "source": { + "$ref": "Source" } }, "type": "object" }, - "AppsDynamiteStorageSelectionInput": { - "description": "A widget that creates a UI item (for example, a drop-down list) with options for users to select.", - "id": "AppsDynamiteStorageSelectionInput", + "FacetBucket": { + "description": "A bucket in a facet is the basic unit of operation. A bucket can comprise either a single value OR a contiguous range of values, depending on the type of the field bucketed. FacetBucket is currently used only for returning the response object.", + "id": "FacetBucket", "properties": { - "items": { - "items": { - "$ref": "AppsDynamiteStorageSelectionInputSelectionItem" - }, - "type": "array" - }, - "label": { - "description": "The label displayed ahead of the switch control.", - "type": "string" + "count": { + "description": "Number of results that match the bucket value. Counts are only returned for searches when count accuracy is ensured. Cloud Search does not guarantee facet counts for any query and facet counts might be present only intermittently, even for identical queries. Do not build dependencies on facet count existence; instead use facet ount percentages which are always returned.", + "format": "int32", + "type": "integer" }, - "name": { - "description": "The name of the text input which is used in formInput.", - "type": "string" + "filter": { + "$ref": "Filter", + "description": "Filter to be passed in the search request if the corresponding bucket is selected." }, - "onChangeAction": { - "$ref": "AppsDynamiteStorageAction", - "description": "If specified, the form is submitted when the selection changes. If not specified, you must specify a separate button." + "percentage": { + "description": "Percent of results that match the bucket value. The returned value is between (0-100], and is rounded down to an integer if fractional. If the value is not explicitly returned, it represents a percentage value that rounds to 0. Percentages are returned for all searches, but are an estimate. Because percentages are always returned, you should render percentages instead of counts.", + "format": "int32", + "type": "integer" }, - "type": { - "enum": [ - "CHECK_BOX", - "RADIO_BUTTON", - "SWITCH", - "DROPDOWN", - "MULTI_SELECT" - ], - "enumDescriptions": [ - "The selection type is a checkbox.", - "The selection type is a radio button.", - "The selection type is a switch.", - "The selection type is a dropdown.", - "The selection type is multi-select" - ], - "type": "string" + "value": { + "$ref": "Value" } }, "type": "object" }, - "AppsDynamiteStorageSelectionInputSelectionItem": { - "description": "The item in the switch control. A radio button, at most one of the items is selected.", - "id": "AppsDynamiteStorageSelectionInputSelectionItem", + "FacetOptions": { + "description": "Specifies operators to return facet results for. There will be one FacetResult for every source_name/object_type/operator_name combination.", + "id": "FacetOptions", "properties": { - "selected": { - "description": "If more than one item is selected for `RADIO_BUTTON` and `DROPDOWN`, the first selected item is treated as selected and the ones after are ignored.", - "type": "boolean" + "integerFacetingOptions": { + "$ref": "IntegerFacetingOptions", + "description": "If set, describes integer faceting options for the given integer property. The corresponding integer property in the schema should be marked isFacetable. The number of buckets returned would be minimum of this and num_facet_buckets." }, - "text": { - "description": "The text to be displayed.", + "numFacetBuckets": { + "description": "Maximum number of facet buckets that should be returned for this facet. Defaults to 10. Maximum value is 100.", + "format": "int32", + "type": "integer" + }, + "objectType": { + "description": "If object_type is set, only those objects of that type will be used to compute facets. If empty, then all objects will be used to compute facets.", "type": "string" }, - "value": { - "description": "The value associated with this item. The client should use this as a form input value.", + "operatorName": { + "description": "The name of the operator chosen for faceting. @see cloudsearch.SchemaPropertyOptions", + "type": "string" + }, + "sourceName": { + "description": "Source name to facet on. Format: datasources/{source_id} If empty, all data sources will be used.", "type": "string" } }, "type": "object" }, - "AppsDynamiteStorageSuggestions": { - "description": "A container wrapping elements necessary for showing suggestion items used in text input autocomplete.", - "id": "AppsDynamiteStorageSuggestions", + "FacetResult": { + "description": "Source specific facet response", + "id": "FacetResult", "properties": { - "items": { - "description": "A list of suggestions items which will be used in are used in autocomplete.", + "buckets": { + "description": "FacetBuckets for values in response containing at least a single result with the corresponding filter.", "items": { - "$ref": "AppsDynamiteStorageSuggestionsSuggestionItem" + "$ref": "FacetBucket" }, "type": "array" - } - }, - "type": "object" - }, - "AppsDynamiteStorageSuggestionsSuggestionItem": { - "description": "A suggestion item. Only supports text for now.", - "id": "AppsDynamiteStorageSuggestionsSuggestionItem", - "properties": { - "text": { - "type": "string" - } - }, - "type": "object" - }, - "AppsDynamiteStorageTextInput": { - "description": "A text input is a UI item where users can input text. A text input can also have an onChange action and suggestions.", - "id": "AppsDynamiteStorageTextInput", - "properties": { - "autoCompleteAction": { - "$ref": "AppsDynamiteStorageAction", - "description": "The refresh function that returns suggestions based on the user's input text. If the callback is not specified, autocomplete is done in client side based on the initial suggestion items." }, - "hintText": { - "description": "The hint text.", + "objectType": { + "description": "Object type for which facet results are returned. Can be empty.", "type": "string" }, - "initialSuggestions": { - "$ref": "AppsDynamiteStorageSuggestions", - "description": "The initial suggestions made before any user input." - }, - "label": { - "description": "At least one of label and hintText must be specified.", + "operatorName": { + "description": "The name of the operator chosen for faceting. @see cloudsearch.SchemaPropertyOptions", "type": "string" }, - "name": { - "description": "The name of the text input which is used in formInput.", + "sourceName": { + "description": "Source name for which facet results are returned. Will not be empty.", "type": "string" - }, - "onChangeAction": { - "$ref": "AppsDynamiteStorageAction", - "description": "The onChange action, for example, invoke a function." - }, - "type": { - "description": "The style of the text, for example, a single line or multiple lines.", - "enum": [ - "SINGLE_LINE", - "MULTIPLE_LINE" - ], - "enumDescriptions": [ - "The text is put into a single line.", - "The text is put into multiple lines." - ], + } + }, + "type": "object" + }, + "FieldViolation": { + "id": "FieldViolation", + "properties": { + "description": { + "description": "The description of the error.", "type": "string" }, - "value": { - "description": "The default value when there is no input from the user.", + "field": { + "description": "Path of field with violation.", "type": "string" } }, "type": "object" }, - "AppsDynamiteStorageTextParagraph": { - "description": "A paragraph of text that supports formatting. See [Text formatting](workspace/add-ons/concepts/widgets#text_formatting\") for details.", - "id": "AppsDynamiteStorageTextParagraph", + "Filter": { + "description": "A generic way of expressing filters in a query, which supports two approaches: **1. Setting a ValueFilter.** The name must match an operator_name defined in the schema for your data source. **2. Setting a CompositeFilter.** The filters are evaluated using the logical operator. The top-level operators can only be either an AND or a NOT. AND can appear only at the top-most level. OR can appear only under a top-level AND.", + "id": "Filter", "properties": { - "text": { - "description": "The text that's shown in the widget.", - "type": "string" + "compositeFilter": { + "$ref": "CompositeFilter" + }, + "valueFilter": { + "$ref": "ValueFilter" } }, "type": "object" }, - "AppsDynamiteStorageWidget": { - "description": "A widget is a UI element that presents texts, images, etc.", - "id": "AppsDynamiteStorageWidget", + "FilterOptions": { + "description": "Filter options to be applied on query.", + "id": "FilterOptions", "properties": { - "buttonList": { - "$ref": "AppsDynamiteStorageButtonList", - "description": "A list of buttons. For example, the following JSON creates two buttons. The first is a filled text button and the second is an image button that opens a link: ``` \"buttonList\": { \"buttons\": [ \"button\": { \"text\": \"Edit\", \"Color\": { \"Red\": 255 \"Green\": 255 \"Blue\": 255 } \"disabled\": true }, \"button\": { \"icon\": { \"knownIcon\": \"INVITE\" \"altText\": \"check calendar\" }, \"onClick\": { \"openLink\": { \"url\": \"https://example.com/calendar\" } } }, ] } ```" - }, - "columns": { - "$ref": "AppsDynamiteStorageColumns", - "description": "Displays a single row of columns with widgets stacked vertically in each column. For example, the following JSON creates a 2 column widget each containing a single item. ``` \"columns\": { \"wrapStyle\": \"WRAP\", \"columnItems\": [ { \"horizontalSizeStyle\": \"FILL_AVAILABLE_SPACE\", \"horizontalAlignment\": \"CENTER\", \"verticalAlignment\" : \"CENTER\", \"widgets\": [ { \"textParagraph\": { \"text\": \"First column text paragraph\", } } ] }, { \"horizontalSizeStyle\": \"FILL_AVAILABLE_SPACE\", \"horizontalAlignment\": \"CENTER\", \"verticalAlignment\" : \"CENTER\", \"widgets\": [ { \"textParagraph\": { \"text\": \"Second column text paragraph\", } } ] }, ] } } ```" - }, - "dateTimePicker": { - "$ref": "AppsDynamiteStorageDateTimePicker", - "description": "Displays a selection/input widget for date/time. For example, the following JSON creates a date/time picker for an appointment time: ``` \"date_time_picker\": { \"name\": \"appointment_time\", \"label\": \"Book your appointment at:\", \"type\": \"DateTimePickerType.DATE_AND_TIME\", \"valueMsEpoch\": \"796435200000\" } ```" - }, - "decoratedText": { - "$ref": "AppsDynamiteStorageDecoratedText", - "description": "Displays a decorated text item in this widget. For example, the following JSON creates a decorated text widget showing email address: ``` \"decoratedText\": { \"icon\": { \"knownIcon\": \"EMAIL\" }, \"topLabel\": \"Email Address\", \"content\": \"heba.salam@example.com\", \"bottomLabel\": \"This is a new Email address!\", \"switchWidget\": { \"name\": \"has_send_welcome_email_to_heba_salam\", \"selected\": false, \"controlType\": \"ControlType.CHECKBOX\" } } ```" - }, - "divider": { - "$ref": "AppsDynamiteStorageDivider", - "description": "Displays a divider. For example, the following JSON creates a divider: ``` \"divider\": { } ```" - }, - "grid": { - "$ref": "AppsDynamiteStorageGrid", - "description": "Displays a grid with a collection of items. For example, the following JSON creates a 2 column grid with a single item: ``` \"grid\": { \"title\": \"A fine collection of items\", \"numColumns\": 2, \"borderStyle\": { \"type\": \"STROKE\", \"cornerRadius\": 4.0 }, \"items\": [ \"image\": { \"imageUri\": \"https://www.example.com/image.png\", \"cropStyle\": { \"type\": \"SQUARE\" }, \"borderStyle\": { \"type\": \"STROKE\" } }, \"title\": \"An item\", \"textAlignment\": \"CENTER\" ], \"onClick\": { \"openLink\": { \"url\":\"https://www.example.com\" } } } ```" + "filter": { + "$ref": "Filter", + "description": "Generic filter to restrict the search, such as `lang:en`, `site:xyz`." }, - "horizontalAlignment": { - "description": "The horizontal alignment of this widget.", - "enum": [ - "HORIZONTAL_ALIGNMENT_UNSPECIFIED", - "START", - "CENTER", - "END" - ], - "enumDescriptions": [ - "Unspecified alignment.", - "Alignment to the start position.", - "Alignment to the center position.", - "Alignment to the end position." - ], + "objectType": { + "description": "If object_type is set, only objects of that type are returned. This should correspond to the name of the object that was registered within the definition of schema. The maximum length is 256 characters.", "type": "string" - }, - "image": { - "$ref": "AppsDynamiteStorageImage", - "description": "Displays an image in this widget. For example, the following JSON creates an image with alternative text: ``` \"image\": { \"imageUrl\": \"https://example.com/heba_salam.png\" \"altText\": \"Avatar for Heba Salam\" } ```" - }, - "selectionInput": { - "$ref": "AppsDynamiteStorageSelectionInput", - "description": "Displays a switch control in this widget. For example, the following JSON creates a dropdown selection for size: ``` \"switchControl\": { \"name\": \"size\", \"label\": \"Size\" \"type\": \"SelectionType.DROPDOWN\", \"items\": [ { \"text\": \"S\", \"value\": \"small\", \"selected\": false }, { \"text\": \"M\", \"value\": \"medium\", \"selected\": true }, { \"text\": \"L\", \"value\": \"large\", \"selected\": false }, { \"text\": \"XL\", \"value\": \"extra_large\", \"selected\": false } ] } ```" - }, - "textInput": { - "$ref": "AppsDynamiteStorageTextInput", - "description": "Displays a text input in this widget. For example, the following JSON creates a text input for mail address: ``` \"textInput\": { \"name\": \"mailing_address\", \"label\": \"Mailing Address\" } ``` As another example, the following JSON creates a text input for programming language with static suggestions: ``` \"textInput\": { \"name\": \"preferred_programing_language\", \"label\": \"Preferred Language\", \"initialSuggestions\": { \"items\": [ { \"text\": \"C++\" }, { \"text\": \"Java\" }, { \"text\": \"JavaScript\" }, { \"text\": \"Python\" } ] } } ```" - }, - "textParagraph": { - "$ref": "AppsDynamiteStorageTextParagraph", - "description": "Displays a text paragraph in this widget. For example, the following JSON creates a bolded text: ``` \"textParagraph\": { \"text\": \" *bold text*\" } ```" } }, "type": "object" }, - "AppsDynamiteV1ApiCompatV1Action": { - "description": "Interactive objects inside a message. Documentation: - https://api.slack.com/docs/message-buttons", - "id": "AppsDynamiteV1ApiCompatV1Action", + "FreshnessOptions": { + "description": "Indicates which freshness property to use when adjusting search ranking for an item. Fresher, more recent dates indicate higher quality. Use the freshness option property that best works with your data. For fileshare documents, last modified time is most relevant. For calendar event data, the time when the event occurs is a more relevant freshness indicator. In this way, calendar events that occur closer to the time of the search query are considered higher quality and ranked accordingly.", + "id": "FreshnessOptions", "properties": { - "confirm": { - "$ref": "AppsDynamiteV1ApiCompatV1ActionConfirm", - "description": "Confirmation dialog config." - }, - "name": { - "description": "Unique identifier for this action.", - "type": "string" - }, - "style": { - "description": "Button style (\"default\", \"primary\", or \"danger\").", - "type": "string" - }, - "text": { - "description": "User-facing label for the action.", - "type": "string" - }, - "type": { - "description": "Action type - currently only \"button\".", + "freshnessDuration": { + "description": "The duration after which an object should be considered stale. The default value is 180 days (in seconds).", + "format": "google-duration", "type": "string" }, - "value": { - "description": "Payload for this action. Will be sent to the action handler along with name.", + "freshnessProperty": { + "description": "This property indicates the freshness level of the object in the index. If set, this property must be a top-level property within the property definitions and it must be a timestamp type or date type. Otherwise, the Indexing API uses updateTime as the freshness indicator. The maximum length is 256 characters. When a property is used to calculate freshness, the value defaults to 2 years from the current time.", "type": "string" } }, "type": "object" }, - "AppsDynamiteV1ApiCompatV1ActionConfirm": { - "description": "Confirmation dialog config.", - "id": "AppsDynamiteV1ApiCompatV1ActionConfirm", + "GSuitePrincipal": { + "id": "GSuitePrincipal", "properties": { - "dismiss_text": { - "description": "\"Cancel\" button label.", - "type": "string" - }, - "ok_text": { - "description": "\"OK\" button label.", - "type": "string" + "gsuiteDomain": { + "description": "This principal represents all users of the Google Workspace domain of the customer.", + "type": "boolean" }, - "text": { - "description": "Confirmation dialog body text.", + "gsuiteGroupEmail": { + "description": "This principal references a Google Workspace group name.", "type": "string" }, - "title": { - "description": "Confirmation dialog title.", + "gsuiteUserEmail": { + "description": "This principal references a Google Workspace user account.", "type": "string" } }, "type": "object" }, - "AppsDynamiteV1ApiCompatV1Attachment": { - "description": "Richly formatted attachments. Documentation: - https://api.slack.com/docs/message-attachments", - "id": "AppsDynamiteV1ApiCompatV1Attachment", - "properties": { - "actions": { - "description": "Array of actions (currently only buttons).", - "items": { - "$ref": "AppsDynamiteV1ApiCompatV1Action" - }, - "type": "array" - }, - "attachment_type": { - "description": "Undocumented - used in interactive button examples. The only valid value appears to be \"default\".", - "type": "string" - }, - "author_icon": { - "description": "Avatar URL for the user.", - "type": "string" - }, - "author_link": { - "description": "URL that the user name should link to.", - "type": "string" - }, - "author_name": { - "description": "User name to display as the author of the message.", - "type": "string" - }, - "callback_id": { - "description": "Unique identifier for the collection of buttons within this attachment. Will be sent back to the action handler URL when a button is clicked.", - "type": "string" - }, - "color": { - "description": "A color \"bar\" to display to the left of the attachment.", - "type": "string" - }, - "fallback": { - "description": "Fallback plain-text string for clients that don't support attachments.", - "type": "string" - }, - "fields": { - "description": "Columns of text inside the attachment body.", - "items": { - "$ref": "AppsDynamiteV1ApiCompatV1Field" - }, - "type": "array" - }, - "footer": { - "description": "A string displayed at the bottom of the attachment.", - "type": "string" - }, - "footer_icon": { - "description": "Avatar URL displayed to the left of the footer.", - "type": "string" - }, - "image_url": { - "description": "URL of an image to display in an image chip.", + "GetCustomerIndexStatsResponse": { + "id": "GetCustomerIndexStatsResponse", + "properties": { + "averageIndexedItemCount": { + "description": "Average item count for the given date range for which billing is done.", + "format": "int64", "type": "string" }, - "mrkdwn_in": { - "description": "List of fields to apply formatting to.", + "stats": { + "description": "Summary of indexed item counts, one for each day in the requested range.", "items": { - "type": "string" + "$ref": "CustomerIndexStats" }, "type": "array" - }, - "pretext": { - "description": "A string to show above the attachment.", - "type": "string" - }, - "text": { - "description": "Main text.", - "type": "string" - }, - "thumb_url": { - "description": "URL of a thumbnail image to display to the right of the attachment body.", - "type": "string" - }, - "title": { - "description": "Title string of this attachment.", - "type": "string" - }, - "title_link": { - "description": "URL that the title string should link to.", - "type": "string" - }, - "ts": { - "description": "UNIX timestamp of the attachment.", - "format": "int32", - "type": "integer" - } - }, - "type": "object" - }, - "AppsDynamiteV1ApiCompatV1Field": { - "description": "A column of text in an attachment. Documentation: - https://api.slack.com/docs/message-attachments", - "id": "AppsDynamiteV1ApiCompatV1Field", - "properties": { - "short": { - "description": "Whether the field can be shown side-by-side with another field.", - "type": "boolean" - }, - "title": { - "description": "The heading text, shown in bold.", - "type": "string" - }, - "value": { - "description": "The text value of the field.", - "type": "string" } }, "type": "object" }, - "AppsExtensionsMarkupCalendarClientActionMarkupAddAttachmentsActionMarkup": { - "id": "AppsExtensionsMarkupCalendarClientActionMarkupAddAttachmentsActionMarkup", + "GetCustomerQueryStatsResponse": { + "id": "GetCustomerQueryStatsResponse", "properties": { - "addonAttachments": { + "stats": { "items": { - "$ref": "AppsExtensionsMarkupCalendarClientActionMarkupAddAttachmentsActionMarkupAddonAttachment" + "$ref": "CustomerQueryStats" }, "type": "array" - } - }, - "type": "object" - }, - "AppsExtensionsMarkupCalendarClientActionMarkupAddAttachmentsActionMarkupAddonAttachment": { - "id": "AppsExtensionsMarkupCalendarClientActionMarkupAddAttachmentsActionMarkupAddonAttachment", - "properties": { - "iconUrl": { - "description": "Link to the resource's icon.", - "type": "string" - }, - "mimeType": { - "description": "MIME type of the content in resource_url.", - "type": "string" - }, - "resourceUrl": { - "type": "string" }, - "title": { - "description": "Title of the attachment.", + "totalQueryCount": { + "description": "Total successful query count (status code 200) for the given date range.", + "format": "int64", "type": "string" } }, "type": "object" }, - "AppsExtensionsMarkupCalendarClientActionMarkupConferenceDataMarkup": { - "description": "Markup that defines conference data associated to a Google Calendar event.", - "id": "AppsExtensionsMarkupCalendarClientActionMarkupConferenceDataMarkup", + "GetCustomerSearchApplicationStatsResponse": { + "description": "Response format for search application stats for a customer.", + "id": "GetCustomerSearchApplicationStatsResponse", "properties": { - "conferenceId": { - "description": "Unique identifier for this conference data. Maximum 512 characters long.", - "type": "string" - }, - "conferenceSolutionId": { - "description": "An identifier of the conferencing solution. Must match a value from the deployment's `calendar.conferenceSolution.id` field.", - "type": "string" - }, - "entryPoints": { - "description": "Entry points to the conference. Maximum 300 entry points are allowed.", - "items": { - "$ref": "AppsExtensionsMarkupCalendarClientActionMarkupConferenceDataMarkupEntryPointMarkup" - }, - "type": "array" - }, - "error": { - "$ref": "AppsExtensionsMarkupCalendarClientActionMarkupConferenceDataMarkupError", - "description": "If set, it means an error occurred during conference creation." - }, - "note": { - "description": "Additional notes (such as instructions from the administrator, legal notices) to display to the user. Can contain HTML. Max length 2048 characters.", + "averageSearchApplicationCount": { + "description": "Average search application count for the given date range.", + "format": "int64", "type": "string" }, - "parameters": { - "description": "Additional add-on parameters. Maximum 300 parameters are allowed.", + "stats": { + "description": "Search application stats by date.", "items": { - "$ref": "AppsExtensionsMarkupCalendarClientActionMarkupConferenceDataMarkupParameter" + "$ref": "CustomerSearchApplicationStats" }, "type": "array" } }, "type": "object" }, - "AppsExtensionsMarkupCalendarClientActionMarkupConferenceDataMarkupEntryPointMarkup": { - "description": "A way to join the conference.", - "id": "AppsExtensionsMarkupCalendarClientActionMarkupConferenceDataMarkupEntryPointMarkup", + "GetCustomerSessionStatsResponse": { + "id": "GetCustomerSessionStatsResponse", "properties": { - "accessCode": { - "description": "An access code for accessing the conference. Maximum 128 characters long.", - "type": "string" - }, - "features": { - "description": "Features of the entry point, such as being toll or toll-free. One entry point can have multiple features.", + "stats": { "items": { - "enum": [ - "UNKNOWN_FEATURE", - "TOLL", - "TOLL_FREE" - ], - "enumDescriptions": [ - "Unknown feature.", - "Applies to `PHONE` entry point. A call to a toll number is charged to the calling party. A number can't be toll and toll-free at the same time.", - "Applies to `PHONE` entry point. For the calling party, a call to a toll-free number is free of charge. A number can't be toll and toll-free at the same time." - ], - "type": "string" + "$ref": "CustomerSessionStats" }, "type": "array" - }, - "label": { - "description": "The label of the entry point to display to the user. Maximum 512 characters long.", - "type": "string" - }, - "meetingCode": { - "description": "A meeting code for accessing the conference. Maximum 128 characters long.", - "type": "string" - }, - "passcode": { - "description": "A passcode for accessing the conference. Maximum 128 characters long.", - "type": "string" - }, - "password": { - "description": "A password for accessing the conference. Maximum 128 characters long.", - "type": "string" - }, - "pin": { - "description": "A PIN for accessing the conference. Maximum 128 characters long.", - "type": "string" - }, - "regionCode": { - "description": "The CLDR/ISO 3166 region code for the country associated with this entry point. Applicable only to `Type.PHONE`.", - "type": "string" - }, - "type": { - "description": "The type of the entry point. Required.", - "enum": [ - "UNKNOWN", - "VIDEO", - "PHONE", - "MORE", - "SIP" - ], - "enumDescriptions": [ - "Unknown conference type.", - "A video conference.", - "A phone conference.", - "Used to provide a link to further conference joining information.", - "A conference using [Session Initiation Protocol](https://en.wikipedia.org/wiki/Session_Initiation_Protocol)" - ], - "type": "string" - }, - "uri": { - "description": "A URI for joining the conference. Supports tel: and http(s): and should be at most 1300 characters long. Required.", - "type": "string" - } - }, - "type": "object" - }, - "AppsExtensionsMarkupCalendarClientActionMarkupConferenceDataMarkupError": { - "description": "Represents an error that occurred during conference creation.", - "id": "AppsExtensionsMarkupCalendarClientActionMarkupConferenceDataMarkupError", - "properties": { - "authenticationUrl": { - "description": "If the error type is `AUTHENTICATION`, the add-on can provide a URL allowing users to log in. Maximum 1300 characters long.", - "type": "string" - }, - "type": { - "description": "The type of error. Required.", - "enum": [ - "UNKNOWN", - "AUTHENTICATION", - "TEMPORARY", - "PERMANENT", - "PERMISSION_DENIED", - "CONFERENCE_SOLUTION_FORBIDDEN" - ], - "enumDescriptions": [ - "Unknown error.", - "An authentication error.", - "A temporary error.", - "A permanent error.", - "The user isn't allowed to perform some action in the third-party conferencing system.", - "The user isn't allowed to use the selected conference solution (but might be allowed to use other solutions offered by the add-on)." - ], - "type": "string" - } - }, - "type": "object" - }, - "AppsExtensionsMarkupCalendarClientActionMarkupConferenceDataMarkupParameter": { - "description": "Solution-specific parameters that are persisted with the event data and, if an update or delete is needed, are passed to the add-on. For example: `[{key: 'sessionKey', value: '123'}, {key: 'meetingId', value: '456'}]`", - "id": "AppsExtensionsMarkupCalendarClientActionMarkupConferenceDataMarkupParameter", - "properties": { - "key": { - "description": "The key of the parameter. Maximum 50 characters long. Required.", - "type": "string" - }, - "value": { - "description": "The value of the parameter. Maximum 1024 characters long. Required.", - "type": "string" } }, "type": "object" }, - "AppsExtensionsMarkupCalendarClientActionMarkupEditAttendeesActionMarkup": { - "id": "AppsExtensionsMarkupCalendarClientActionMarkupEditAttendeesActionMarkup", + "GetCustomerUserStatsResponse": { + "id": "GetCustomerUserStatsResponse", "properties": { - "addAttendeeEmails": { - "description": "A list of attendees to add to the Google Calendar event.", + "stats": { "items": { - "type": "string" + "$ref": "CustomerUserStats" }, "type": "array" } }, "type": "object" }, - "AppsExtensionsMarkupCalendarClientActionMarkupEditConferenceDataActionMarkup": { - "id": "AppsExtensionsMarkupCalendarClientActionMarkupEditConferenceDataActionMarkup", - "properties": { - "conferenceData": { - "$ref": "AppsExtensionsMarkupCalendarClientActionMarkupConferenceDataMarkup", - "description": "The conference data to add to the Google Calendar event." - } - }, - "type": "object" - }, - "Attachment": { - "description": "Attachments that follow the message text.", - "id": "Attachment", - "properties": { - "addOnData": { - "$ref": "GoogleChatV1ContextualAddOnMarkup", - "description": "Revised version of Gmail AddOn attachment approved by API design review." - }, - "appId": { - "$ref": "UserId", - "description": "The userId for the bot/app that created this data, to be used for attribution of attachments when the attachment was not created by the message sender." - }, - "attachmentId": { - "description": "To identify an attachment within repeated in a message", - "type": "string" - }, - "cardAddOnData": { - "$ref": "AppsDynamiteStorageCard", - "description": "Card AddOn attachment with the possibility for specifying editable widgets." - }, - "componentSearchInfo": { - "$ref": "AppsDynamiteSharedMessageComponentSearchInfo", - "description": "Contains additional metadata that further enhance the annotation when it is returned as part of search response. For example, this can be used to define how the attachment matches the search. Information can be used to highlight in rendering search results. The following are the different attachment text fields that are covered by this field: 1. ContextualAddOn.Card.CardHeader.title 2. CardItem.CardItemHeader.title" - }, - "deprecatedAddOnData": { - "$ref": "ContextualAddOnMarkup", - "description": "Deprecated version of Gmail AddOn attachment." - }, - "slackData": { - "$ref": "AppsDynamiteV1ApiCompatV1Attachment", - "description": "Slack attachment." - }, - "slackDataImageUrlHeight": { - "description": "The height of image url as fetched by fife. This field is asynchronously filled.", - "format": "int32", - "type": "integer" - } - }, - "type": "object" - }, - "Attribute": { - "description": "An Attribute is a piece of data attached an Item. Attributes are opaque to the Starbox and have no effect on, nor are they effected by, message storage, indexing, or search. ", - "id": "Attribute", - "properties": { - "name": { - "description": "The name of the attribute. Required - If a write is attempted with an empty string, the server will return an error.", - "type": "string" - }, - "value": { - "$ref": "CaribouAttributeValue" - } - }, - "type": "object" - }, - "AttributeRemoved": { - "description": "An attribute was deleted from some (subset of the) messages in this thread.", - "id": "AttributeRemoved", + "GetDataSourceIndexStatsResponse": { + "id": "GetDataSourceIndexStatsResponse", "properties": { - "attributeId": { + "averageIndexedItemCount": { + "description": "Average item count for the given date range for which billing is done.", + "format": "int64", "type": "string" }, - "messageKeys": { + "stats": { + "description": "Summary of indexed item counts, one for each day in the requested range.", "items": { - "$ref": "MultiKey" + "$ref": "DataSourceIndexStats" }, "type": "array" } }, "type": "object" }, - "AttributeSet": { - "description": "An attribute was added to some (subset of the) messages in this thread.", - "id": "AttributeSet", + "GetSearchApplicationQueryStatsResponse": { + "description": "Response format for getting query stats for a search application between given dates.", + "id": "GetSearchApplicationQueryStatsResponse", "properties": { - "attributeId": { - "type": "string" - }, - "attributeValue": { - "description": "The serialized attribute_value as persisted in the storage layer. The application is responsible for deserializing it to an Attribute.Value if appropriate.", - "format": "byte", - "type": "string" - }, - "messageKeys": { + "stats": { + "description": "Query stats per date for a search application.", "items": { - "$ref": "MultiKey" + "$ref": "SearchApplicationQueryStats" }, "type": "array" + }, + "totalQueryCount": { + "description": "Total successful query count (status code 200) for the given date range.", + "format": "int64", + "type": "string" } }, "type": "object" }, - "Attributes": { - "id": "Attributes", + "GetSearchApplicationSessionStatsResponse": { + "id": "GetSearchApplicationSessionStatsResponse", "properties": { - "attribute": { + "stats": { "items": { - "$ref": "Attribute" + "$ref": "SearchApplicationSessionStats" }, "type": "array" } }, "type": "object" }, - "AuditLoggingSettings": { - "description": "Represents the settings for Cloud audit logging", - "id": "AuditLoggingSettings", + "GetSearchApplicationUserStatsResponse": { + "id": "GetSearchApplicationUserStatsResponse", "properties": { - "logAdminReadActions": { - "description": "Indicates whether audit logging is on/off for admin activity read APIs i.e. Get/List DataSources, Get/List SearchApplications etc.", - "type": "boolean" - }, - "logDataReadActions": { - "description": "Indicates whether audit logging is on/off for data access read APIs i.e. ListItems, GetItem etc.", - "type": "boolean" - }, - "logDataWriteActions": { - "description": "Indicates whether audit logging is on/off for data access write APIs i.e. IndexItem etc.", - "type": "boolean" - }, - "project": { - "description": "The resource name of the GCP Project to store audit logs. Cloud audit logging will be enabled after project_name has been updated through CustomerService. Format: projects/{project_id}", - "type": "string" + "stats": { + "items": { + "$ref": "SearchApplicationUserStats" + }, + "type": "array" } }, "type": "object" }, - "AuthorizedItemId": { - "description": "A combination of an identifier for a Drive resource (e.g. file, folder, or drive) and any secrets needed to access it. The secrets should never be logged, and this proto annotates those secret fields to ensure that they are not. Clients are encouraged to use this proto rather than defining their own, to ensure that secrets are correctly annotated.", - "id": "AuthorizedItemId", + "GoogleDocsMetadata": { + "description": "The corpus specific metadata for office-type documents, from Google Docs and other sources. This message is passed to the scorer and beyond. Next tag: 9", + "id": "GoogleDocsMetadata", "properties": { - "id": { - "description": "Serialized ID of the Drive resource", - "type": "string" + "aclInfo": { + "$ref": "AclInfo", + "description": "Contains number of users and groups which can access the document." }, - "resourceKey": { - "description": "Resource key of the Drive item. This field should be unset if, depending on the context, the item does not have a resource key, or if none was specified. This must never be logged.", + "documentType": { + "description": "The conceptual type (presentation, document, etc.) of this document.", + "enum": [ + "UNKNOWN", + "DOCUMENT", + "PRESENTATION", + "SPREADSHEET", + "PDF", + "IMAGE", + "BINARY_BLOB", + "FUSION_TABLE", + "FOLDER", + "DRAWING", + "VIDEO", + "FORM", + "DRAFT_SITE", + "DRAFT_SITE_PAGE", + "JAM", + "SHORTCUT", + "SCRIPT" + ], + "enumDescriptions": [ + "If the type is unknown or not represented in this enum.", + "Writely, Word, etc.", + "Presently, PowerPoint, etc.", + "Trix, Excel, etc.", + "File types for Gdrive objects are below.", + "", + "Fall-back for unknown Gdrive types.", + "", + "", + "", + "", + "", + "For Atari page and site drafts", + "", + "Jamboard Jams (go/jam)", + "Drive Shortcuts (go/shortcuts)", + "" + ], + "type": "string" + }, + "fileExtension": { + "description": "The file extension of the document. NOTE: As of October 2018 this field is not backfilled for old documents.", + "type": "string" + }, + "lastContentModifiedTimestamp": { + "description": "The last time this document was modified, in seconds since epoch. Only counts content modifications.", + "format": "int64", "type": "string" + }, + "numSubscribers": { + "description": "Contains number of subscribers for the document.", + "format": "int32", + "type": "integer" + }, + "numViewers": { + "description": "Size of untruncated viewers list.", + "format": "int32", + "type": "integer" + }, + "resultInfo": { + "$ref": "GoogleDocsResultInfo", + "description": "Additional per-result information, akin to Gmail's SingleThreadResponse. Note: GWS no longer seems to use this field, but there's still one reference to it for Scribe, so we can't remove it." + }, + "typeInfo": { + "$ref": "TypeInfo", + "description": "Contains additional information about the document depending on its type." } }, "type": "object" }, - "AutoComplete": { - "id": "AutoComplete", + "GoogleDocsResultInfo": { + "description": "A message containing information about a specific result. This information is passed to the scorer and beyond; in particular, GWS relies on it to format the result in the UI. Split from GoogleDocsMetadata in case we later want to reuse the message.", + "id": "GoogleDocsResultInfo", "properties": { - "items": { - "items": { - "$ref": "AutoCompleteItem" - }, - "type": "array" + "attachmentSha1": { + "description": "The SHA1 hash of the object in Drive, if any.", + "type": "string" + }, + "cosmoId": { + "$ref": "Id", + "description": "The storage identifier for the object in Cosmo. This field is intended to used by Stratus/Moonshine integration only. It should not be exposed externally (please refer to encrypted_id for that purpose)." + }, + "cosmoNameSpace": { + "description": "For Cosmo objects, the Cosmo namespace the object was in. This allows downstream clients to identify whether a document was created in Writely or Kix, Presently or Punch, or whether it was uploaded from GDrive. See storage_cosmo.Id.NAME_SPACE for a list of all Cosmo name spaces.", + "format": "int32", + "type": "integer" + }, + "encryptedId": { + "description": "The encrypted (user-visible) id of this object. Knowing the id is sufficient to create a canonical URL for this document.", + "type": "string" + }, + "mimeType": { + "description": "The mimetype of the document.", + "type": "string" + }, + "shareScope": { + "$ref": "ShareScope", + "description": "The visibility indicator in the UI will be based upon this." } }, "type": "object" }, - "AutoCompleteItem": { - "id": "AutoCompleteItem", + "HtmlOperatorOptions": { + "description": "Used to provide a search operator for html properties. This is optional. Search operators let users restrict the query to specific fields relevant to the type of item being searched.", + "id": "HtmlOperatorOptions", "properties": { - "text": { + "operatorName": { + "description": "Indicates the operator name required in the query in order to isolate the html property. For example, if operatorName is *subject* and the property's name is *subjectLine*, then queries like *subject:\u003cvalue\u003e* show results only where the value of the property named *subjectLine* matches *\u003cvalue\u003e*. By contrast, a search that uses the same *\u003cvalue\u003e* without an operator return all items where *\u003cvalue\u003e* matches the value of any html properties or text within the content field for the item. The operator name can only contain lowercase letters (a-z). The maximum length is 32 characters.", "type": "string" } }, "type": "object" }, - "BabelMessageProps": { - "description": "Container for Babel (Hangouts Classic) only message properties. The properties here will not be consumed by Dynamite clients. They are relevant only for Hangouts Classic.", - "id": "BabelMessageProps", + "HtmlPropertyOptions": { + "description": "The options for html properties.", + "id": "HtmlPropertyOptions", "properties": { - "clientGeneratedId": { - "description": "Babel clients locally generate this ID to dedupe against the async fanout.", - "format": "int64", - "type": "string" - }, - "contentExtension": { - "$ref": "ChatContentExtension", - "description": "Stores additional Babel-specific properties (such as event metadata)." - }, - "deliveryMedium": { - "$ref": "DeliveryMedium", - "description": "Stores the delivery source of messages (such as phone number for SMS)." - }, - "eventId": { - "description": "Primary identifier used by Hangouts Classic for its events (messages).", - "type": "string" - }, - "messageContent": { - "$ref": "ChatConserverMessageContent", - "description": "Stores message segments (text content) and attachments (media URLs)." + "operatorOptions": { + "$ref": "HtmlOperatorOptions", + "description": "If set, describes how the property should be used as a search operator." }, - "wasUpdatedByBackfill": { - "description": "Whether or not these message properties were backfilled by go/dinnertrain.", - "type": "boolean" + "retrievalImportance": { + "$ref": "RetrievalImportance", + "description": "Indicates the search quality importance of the tokens within the field when used for retrieval. Can only be set to DEFAULT or NONE." } }, "type": "object" }, - "BabelPlaceholderMetadata": { - "description": "Annotation metadata for Babel-only items that signals which type of placeholder message should be displayed in Babel clients.", - "id": "BabelPlaceholderMetadata", + "HtmlValues": { + "description": "List of html values.", + "id": "HtmlValues", "properties": { - "deleteMetadata": { - "$ref": "DeleteMetadata" - }, - "editMetadata": { - "$ref": "EditMetadata" - }, - "hangoutVideoMetadata": { - "$ref": "HangoutVideoEventMetadata" + "values": { + "description": "The maximum allowable length for html values is 2048 characters.", + "items": { + "type": "string" + }, + "type": "array" } }, "type": "object" }, - "BooleanOperatorOptions": { - "description": "Used to provide a search operator for boolean properties. This is optional. Search operators let users restrict the query to specific fields relevant to the type of item being searched.", - "id": "BooleanOperatorOptions", + "Id": { + "description": "Identifies a particular object, including both Users and DirEntries. This Id is unique across the entire server instance, such as the production or qa instance.", + "id": "Id", "properties": { - "operatorName": { - "description": "Indicates the operator name required in the query in order to isolate the boolean property. For example, if operatorName is *closed* and the property's name is *isClosed*, then queries like *closed:\u003cvalue\u003e* show results only where the value of the property named *isClosed* matches *\u003cvalue\u003e*. By contrast, a search that uses the same *\u003cvalue\u003e* without an operator returns all items where *\u003cvalue\u003e* matches the value of any String properties or text within the content field for the item. The operator name can only contain lowercase letters (a-z). The maximum length is 32 characters.", + "creatorUserId": { + "description": "The User account in which the DirEntry was originally created. If name_space==GAIA, then it's the gaia_id of the user this id is referring to. This field should really be called the \"bucket ID\", not the creator ID. In some circumstances, such as copying a Google Docs file, a user can create an item in a different user's bucket, so it should not be relied upon for anything other than bucket location. To look up the requesting user who initially created item, use the `creator_id` DirEntry field instead.", + "format": "uint64", "type": "string" + }, + "localId": { + "description": "The local identifier for the DirEntry (local to the creator's account). local_id + app_name is guaranteed to be unique within the creator account, but not across all User accounts. The string is case sensitive. Ignore if name_space==GAIA. NB For name_space==COSMO, all local_id's should be defined in google3/java/com/google/storage/cosmo/server/api/SpecialObjectIds.java as they have a special predefined meaning. See cosmo.client.CosmoIdFactory.createObjectId(long,String) for IMPORTANT recommendations when generating IDs.", + "type": "string" + }, + "nameSpace": { + "description": "The name space in which this id is unique (typically the application that created it). Values should be drawn from the above enum, but for experimentation, use values greater than 1000.", + "format": "int32", + "type": "integer" } }, "type": "object" }, - "BooleanPropertyOptions": { - "description": "The options for boolean properties.", - "id": "BooleanPropertyOptions", + "IndexItemOptions": { + "id": "IndexItemOptions", "properties": { - "operatorOptions": { - "$ref": "BooleanOperatorOptions", - "description": "If set, describes how the boolean should be used as a search operator." + "allowUnknownGsuitePrincipals": { + "description": "Specifies if the index request should allow Google Workspace principals that do not exist or are deleted.", + "type": "boolean" } }, "type": "object" }, - "BorderStyle": { - "description": "Represents a complete border style that can be applied to widgets.", - "id": "BorderStyle", + "IndexItemRequest": { + "id": "IndexItemRequest", "properties": { - "cornerRadius": { - "description": "The corner radius for the border.", - "format": "int32", - "type": "integer" - }, - "strokeColor": { - "description": "The colors to use when the type is STROKE.", + "connectorName": { + "description": "The name of connector making this call. Format: datasources/{source_id}/connectors/{ID}", "type": "string" }, - "type": { - "description": "The border type.", + "debugOptions": { + "$ref": "DebugOptions", + "description": "Common debug options." + }, + "indexItemOptions": { + "$ref": "IndexItemOptions" + }, + "item": { + "$ref": "Item", + "description": "The name of the item. Format: datasources/{source_id}/items/{item_id}" + }, + "mode": { + "description": "Required. The RequestMode for this request.", "enum": [ - "BORDER_TYPE_NOT_SET", - "NO_BORDER", - "STROKE" + "UNSPECIFIED", + "SYNCHRONOUS", + "ASYNCHRONOUS" ], "enumDescriptions": [ - "No value specified.", - "No border.", - "Outline." + "The priority is not specified in the update request. Leaving priority unspecified results in an update failure.", + "For real-time updates.", + "For changes that are executed after the response is sent back to the caller." ], "type": "string" } }, "type": "object" }, - "BotInfo": { - "description": "Bot-specific profile information.", - "id": "BotInfo", + "InitializeCustomerRequest": { + "description": "Request message for `InitializeCustomer` method.", + "id": "InitializeCustomerRequest", + "properties": {}, + "type": "object" + }, + "IntegerFacetingOptions": { + "description": "Used to specify integer faceting options.", + "id": "IntegerFacetingOptions", + "properties": { + "integerBuckets": { + "description": "Buckets for given integer values should be in strictly ascending order. For example, if values supplied are (1,5,10,100), the following facet buckets will be formed {\u003c1, [1,5), [5-10), [10-100), \u003e=100}.", + "items": { + "format": "int64", + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, + "IntegerOperatorOptions": { + "description": "Used to provide a search operator for integer properties. This is optional. Search operators let users restrict the query to specific fields relevant to the type of item being searched.", + "id": "IntegerOperatorOptions", "properties": { - "appAllowlistStatus": { - "enum": [ - "UNSPECIFIED_STATUS", - "ALLOWED", - "ALL_APPS_DISABLED_BY_ADMIN", - "APP_NOT_ALLOWLISTED_BY_ADMIN" - ], - "enumDescriptions": [ - "", - "", - "For both ALL_APPS_DISABLED_BY_ADMIN and APP_NOT_ALLOWLISTED_BY_ADMIN, the app should still be visible in the catalog, but usage of the app will be disabled. Indicates that all apps have been disabled by the dasher admin.", - "Indicates that the customer is using allowlisting, but that the bot is not allowlisted." - ], + "greaterThanOperatorName": { + "description": "Indicates the operator name required in the query in order to isolate the integer property using the greater-than operator. For example, if greaterThanOperatorName is *priorityabove* and the property's name is *priorityVal*, then queries like *priorityabove:\u003cvalue\u003e* show results only where the value of the property named *priorityVal* is greater than *\u003cvalue\u003e*. The operator name can only contain lowercase letters (a-z). The maximum length is 32 characters.", "type": "string" }, - "appId": { - "$ref": "AppId", - "description": "Identifier of the application associated with the bot." - }, - "botAvatarUrl": { - "description": "URL for the avatar picture of the User in dynamite. This field should be populated if the request is FetchBotCategories/ListBotCatalogEntries", + "lessThanOperatorName": { + "description": "Indicates the operator name required in the query in order to isolate the integer property using the less-than operator. For example, if lessThanOperatorName is *prioritybelow* and the property's name is *priorityVal*, then queries like *prioritybelow:\u003cvalue\u003e* show results only where the value of the property named *priorityVal* is less than *\u003cvalue\u003e*. The operator name can only contain lowercase letters (a-z). The maximum length is 32 characters.", "type": "string" }, - "botName": { - "description": "Non-unique, user-defined display name of the Bot. This field should be populated if the request is FetchBotCategories/ListBotCatalogEntries.", + "operatorName": { + "description": "Indicates the operator name required in the query in order to isolate the integer property. For example, if operatorName is *priority* and the property's name is *priorityVal*, then queries like *priority:\u003cvalue\u003e* show results only where the value of the property named *priorityVal* matches *\u003cvalue\u003e*. By contrast, a search that uses the same *\u003cvalue\u003e* without an operator returns all items where *\u003cvalue\u003e* matches the value of any String properties or text within the content field for the item. The operator name can only contain lowercase letters (a-z). The maximum length is 32 characters.", "type": "string" + } + }, + "type": "object" + }, + "IntegerPropertyOptions": { + "description": "The options for integer properties.", + "id": "IntegerPropertyOptions", + "properties": { + "integerFacetingOptions": { + "$ref": "IntegerFacetingOptions", + "description": "If set, describes integer faceting options for the given integer property. The corresponding integer property should be marked isFacetable." }, - "description": { - "description": "Short description for the bot.", + "maximumValue": { + "description": "The maximum value of the property. The minimum and maximum values for the property are used to rank results according to the ordered ranking. Indexing requests with values greater than the maximum are accepted and ranked with the same weight as items indexed with the maximum value.", + "format": "int64", "type": "string" }, - "developerName": { - "description": "Name of bot developer.", + "minimumValue": { + "description": "The minimum value of the property. The minimum and maximum values for the property are used to rank results according to the ordered ranking. Indexing requests with values less than the minimum are accepted and ranked with the same weight as items indexed with the minimum value.", + "format": "int64", "type": "string" }, - "marketPlaceBannerUrl": { - "description": "URL for the banner image in GSuite Market Place. The banner will be 220x140.", - "type": "string" + "operatorOptions": { + "$ref": "IntegerOperatorOptions", + "description": "If set, describes how the integer should be used as a search operator." }, - "status": { - "description": "Indicates whether bot is enabled/disabled.", + "orderedRanking": { + "description": "Used to specify the ordered ranking for the integer. Can only be used if isRepeatable is false.", "enum": [ - "UNKNOWN_STATUS", - "ENABLED", - "DISABLED_BY_DEVELOPER" - ], - "enumDescriptions": [ - "", - "", - "Bot has been disabled by the bot developer. No one can @mention or interact with the bot." + "NO_ORDER", + "ASCENDING", + "DESCENDING" + ], + "enumDescriptions": [ + "There is no ranking order for the property. Results are not adjusted by this property's value.", + "This property is ranked in ascending order. Lower values indicate lower ranking.", + "This property is ranked in descending order. Lower values indicate higher ranking." ], "type": "string" - }, - "supportHomeScreen": { - "description": "If the app supports a home screen.", - "type": "boolean" - }, - "supportUrls": { - "$ref": "SupportUrls", - "description": "Urls with additional information related to the bot. This field should always be set even if all the fields within it are empty, so that it is convenient for clients to work with this field in javascript." - }, - "supportedUses": { - "description": "The supported uses are limited according to the user that made the request. If the user does not have permission to use the bot, the list will be empty. This could occur for non whitelisted bots in the catalog.", + } + }, + "type": "object" + }, + "IntegerValues": { + "description": "List of integer values.", + "id": "IntegerValues", + "properties": { + "values": { "items": { - "enum": [ - "UNKNOWN", - "CAN_ADD_TO_DM", - "CAN_ADD_TO_ROOM", - "CAN_ADD_TO_HUMAN_DM" - ], - "enumDescriptions": [ - "", - "", - "", - "" - ], + "format": "int64", "type": "string" }, "type": "array" + } + }, + "type": "object" + }, + "Interaction": { + "description": "Represents an interaction between a user and an item.", + "id": "Interaction", + "properties": { + "interactionTime": { + "description": "The time when the user acted on the item. If multiple actions of the same type exist for a single user, only the most recent action is recorded.", + "format": "google-datetime", + "type": "string" + }, + "principal": { + "$ref": "Principal", + "description": "The user that acted on the item." }, - "uninstallCapability": { - "description": "Determine how uninstall is permitted for this app.", + "type": { "enum": [ - "UNSPECIFIED_UNINSTALL_CAPABILITY", - "ALWAYS_ALLOWED", - "NEVER_ALLOWED" + "UNSPECIFIED", + "VIEW", + "EDIT" ], "enumDescriptions": [ - "Defaults to ALWAYS_ALLOWED.", - "", - "" + "Invalid value.", + "This interaction indicates the user viewed the item.", + "This interaction indicates the user edited the item." ], "type": "string" } }, "type": "object" }, - "BotResponse": { - "description": "Information about a bot response, branched from shared/bot_response.proto without frontend User proto as we never store it.", - "id": "BotResponse", + "Item": { + "description": "Represents a single object that is an item in the search index, such as a file, folder, or a database record.", + "id": "Item", "properties": { - "botId": { - "$ref": "UserId" + "acl": { + "$ref": "ItemAcl", + "description": "Access control list for this item." }, - "requiredAction": { + "content": { + "$ref": "ItemContent", + "description": "Item content to be indexed and made text searchable." + }, + "itemType": { + "description": "The type for this item.", "enum": [ - "UNKNOWN_SETUP_TYPE", - "CONFIGURATION", - "AUTHENTICATION" + "UNSPECIFIED", + "CONTENT_ITEM", + "CONTAINER_ITEM", + "VIRTUAL_CONTAINER_ITEM" ], "enumDescriptions": [ "", - "Bot requires configuration.", - "Bot requires authentication." + "An item that is indexed for the only purpose of serving information. These items cannot be referred in containerName or inheritAclFrom fields.", + "An item that gets indexed and whose purpose is to supply other items with ACLs and/or contain other items.", + "An item that does not get indexed, but otherwise has the same purpose as CONTAINER_ITEM." ], "type": "string" }, - "responseType": { - "enum": [ - "UNKNOWN_RESPONSE_TYPE", - "ERROR", - "SETUP_REQUIRED", - "DISABLED_BY_ADMIN", - "DISABLED_BY_DEVELOPER", - "PRIVATE", - "APP_SUGGESTION" - ], - "enumDescriptions": [ - "", - "Bot fails to respond because of deadline_exceeded or failing to parse bot message.", - "Bot requires auth or config", - "Bot fails to respond because it is disabled by domain admin", - "Bot fails to respond because it is disabled by the bot's developer", - "Message to bot should be permanently private.", - "A suggestion to promote an app." - ], + "metadata": { + "$ref": "ItemMetadata", + "description": "The metadata information." + }, + "name": { + "description": "The name of the Item. Format: datasources/{source_id}/items/{item_id} This is a required field. The maximum length is 1536 characters.", + "type": "string" + }, + "payload": { + "description": "Additional state connector can store for this item. The maximum length is 10000 bytes.", + "format": "byte", + "type": "string" + }, + "queue": { + "description": "Queue this item belongs to. The maximum length is 100 characters.", "type": "string" }, - "setupUrl": { - "description": "URL for setting up bot.", + "status": { + "$ref": "ItemStatus", + "description": "Status of the item. Output only field." + }, + "structuredData": { + "$ref": "ItemStructuredData", + "description": "The structured data for the item that should conform to a registered object definition in the schema for the data source." + }, + "version": { + "description": "Required. The indexing system stores the version from the datasource as a byte string and compares the Item version in the index to the version of the queued Item using lexical ordering. Cloud Search Indexing won't index or delete any queued item with a version value that is less than or equal to the version of the currently indexed item. The maximum length for this field is 1024 bytes. For information on how item version affects the deletion process, refer to [Handle revisions after manual deletes](https://developers.google.com/cloud-search/docs/guides/operations).", + "format": "byte", "type": "string" } }, "type": "object" }, - "BroadcastAccess": { - "description": "Broadcast access information of a meeting space.", - "id": "BroadcastAccess", + "ItemAcl": { + "description": "Access control list information for the item. For more information see [Map ACLs](https://developers.google.com/cloud-search/docs/guides/acls).", + "id": "ItemAcl", "properties": { - "accessPolicy": { - "description": "The policy that controls the broadcast's viewer access.", + "aclInheritanceType": { + "description": "Sets the type of access rules to apply when an item inherits its ACL from a parent. This should always be set in tandem with the inheritAclFrom field. Also, when the inheritAclFrom field is set, this field should be set to a valid AclInheritanceType.", "enum": [ - "BROADCASTING_ACCESS_POLICY_UNSPECIFIED", - "ORGANIZATION", - "PUBLIC" + "NOT_APPLICABLE", + "CHILD_OVERRIDE", + "PARENT_OVERRIDE", + "BOTH_PERMIT" ], "enumDescriptions": [ - "Used only when broadcast is not enabled, or an unknown enum value is used.", - "Only authenticated Google accounts belonging to the same organization as the meeting organizer can access the broadcast.", - "Anyone with the broadcast view URL can access the broadcast." + "The default value when this item does not inherit an ACL. Use NOT_APPLICABLE when inheritAclFrom is empty. An item without ACL inheritance can still have ACLs supplied by its own readers and deniedReaders fields.", + "During an authorization conflict, the ACL of the child item determines its read access.", + "During an authorization conflict, the ACL of the parent item specified in the inheritAclFrom field determines read access.", + "Access is granted only if this item and the parent item specified in the inheritAclFrom field both permit read access." ], "type": "string" }, - "viewUrl": { - "description": "A URL that can be used to access the broadcast of the meeting. This field will be empty if broadcast is not enabled. It will be populated by the backend. Clients cannot modify the value.", + "deniedReaders": { + "description": "List of principals who are explicitly denied access to the item in search results. While principals are denied access by default, use denied readers to handle exceptions and override the list allowed readers. The maximum number of elements is 100.", + "items": { + "$ref": "Principal" + }, + "type": "array" + }, + "inheritAclFrom": { + "description": "The name of the item to inherit the Access Permission List (ACL) from. Note: ACL inheritance *only* provides access permissions to child items and does not define structural relationships, nor does it provide convenient ways to delete large groups of items. Deleting an ACL parent from the index only alters the access permissions of child items that reference the parent in the inheritAclFrom field. The item is still in the index, but may not visible in search results. By contrast, deletion of a container item also deletes all items that reference the container via the containerName field. The maximum length for this field is 1536 characters.", "type": "string" + }, + "owners": { + "description": "Optional. List of owners for the item. This field has no bearing on document access permissions. It does, however, offer a slight ranking boosts items where the querying user is an owner. The maximum number of elements is 5.", + "items": { + "$ref": "Principal" + }, + "type": "array" + }, + "readers": { + "description": "List of principals who are allowed to see the item in search results. Optional if inheriting permissions from another item or if the item is not intended to be visible, such as virtual containers. The maximum number of elements is 1000.", + "items": { + "$ref": "Principal" + }, + "type": "array" } }, "type": "object" }, - "BroadcastSessionInfo": { - "description": "Information about a broadcast session.", - "id": "BroadcastSessionInfo", + "ItemContent": { + "description": "Content of an item to be indexed and surfaced by Cloud Search. Only UTF-8 encoded strings are allowed as inlineContent. If the content is uploaded and not binary, it must be UTF-8 encoded.", + "id": "ItemContent", "properties": { - "broadcastSessionId": { - "description": "A unique server-generated ID for the broadcast session.", - "type": "string" + "contentDataRef": { + "$ref": "UploadItemRef", + "description": "Upload reference ID of a previously uploaded content via write method." }, - "broadcastStats": { - "$ref": "BroadcastStats", - "description": "Output only. Current broadcast session's statistics.", - "readOnly": true + "contentFormat": { + "enum": [ + "UNSPECIFIED", + "HTML", + "TEXT", + "RAW" + ], + "enumDescriptions": [ + "Invalid value.", + "contentFormat is HTML.", + "contentFormat is free text.", + "contentFormat is raw bytes." + ], + "type": "string" }, - "ingestionId": { - "description": "Input only. Deprecated field, should not be used.", + "hash": { + "description": "Hashing info calculated and provided by the API client for content. Can be used with the items.push method to calculate modified state. The maximum length is 2048 characters.", "type": "string" }, - "sessionStateInfo": { - "$ref": "SessionStateInfo", - "description": "Broadcast session's state information." + "inlineContent": { + "description": "Content that is supplied inlined within the update method. The maximum length is 102400 bytes (100 KiB).", + "format": "byte", + "type": "string" } }, "type": "object" }, - "BroadcastStats": { - "description": "Statistics of the broadcast session.", - "id": "BroadcastStats", + "ItemCountByStatus": { + "id": "ItemCountByStatus", "properties": { - "estimatedViewerCount": { - "description": "Estimated concurrent viewer count.", + "count": { + "description": "Number of items matching the status code.", "format": "int64", "type": "string" - } - }, - "type": "object" - }, - "Button": { - "id": "Button", - "properties": { - "imageButton": { - "$ref": "ImageButton" }, - "textButton": { - "$ref": "TextButton" - } - }, - "type": "object" - }, - "CalendarClientActionMarkup": { - "id": "CalendarClientActionMarkup", - "properties": { - "addAttachmentsActionMarkup": { - "$ref": "AppsExtensionsMarkupCalendarClientActionMarkupAddAttachmentsActionMarkup", - "description": "An action that adds attachments to the Google Calendar event." - }, - "editAttendeesActionMarkup": { - "$ref": "AppsExtensionsMarkupCalendarClientActionMarkupEditAttendeesActionMarkup", - "description": "An action that adds attendees to the Google Calendar event." + "indexedItemsCount": { + "description": "Number of items matching the status code for which billing is done. This excludes virtual container items from the total count. This count would not be applicable for items with ERROR or NEW_ITEM status code.", + "format": "int64", + "type": "string" }, - "editConferenceDataActionMarkup": { - "$ref": "AppsExtensionsMarkupCalendarClientActionMarkupEditConferenceDataActionMarkup", - "description": "An action that adds conference data to the Google Calendar event." + "statusCode": { + "description": "Status of the items.", + "enum": [ + "CODE_UNSPECIFIED", + "ERROR", + "MODIFIED", + "NEW_ITEM", + "ACCEPTED" + ], + "enumDescriptions": [ + "Input-only value. Used with Items.list to list all items in the queue, regardless of status.", + "Error encountered by Cloud Search while processing this item. Details of the error are in repositoryError.", + "Item has been modified in the repository, and is out of date with the version previously accepted into Cloud Search.", + "Item is known to exist in the repository, but is not yet accepted by Cloud Search. An item can be in this state when Items.push has been called for an item of this name that did not exist previously.", + "API has accepted the up-to-date data of this item." + ], + "type": "string" } }, "type": "object" }, - "CallInfo": { - "description": "Contains information regarding an ongoing conference (aka call) for a meeting space.", - "id": "CallInfo", + "ItemMetadata": { + "description": "Available metadata fields for the item.", + "id": "ItemMetadata", "properties": { - "abuseReportingConfig": { - "$ref": "AbuseReportingConfig", - "description": "Abuse reporting configuration for the ongoing conference." + "containerName": { + "description": "The name of the container for this item. Deletion of the container item leads to automatic deletion of this item. Note: ACLs are not inherited from a container item. To provide ACL inheritance for an item, use the inheritAclFrom field. The maximum length is 1536 characters.", + "type": "string" }, - "artifactOwner": { - "$ref": "UserDisplayInfo", - "description": "Output only. Display name of the owner of artifacts generated in this conference. The expected use of this in clients is to present info like \"This recording will be sent to John Doe's Drive\". This field can be empty if preferred display name determination fails for any reason.", - "readOnly": true + "contentLanguage": { + "description": "The BCP-47 language code for the item, such as \"en-US\" or \"sr-Latn\". For more information, see http://www.unicode.org/reports/tr35/#Unicode_locale_identifier. The maximum length is 32 characters.", + "type": "string" }, - "attachedDocuments": { - "description": "Output only. Documents attached to an ongoing conference.", + "contextAttributes": { + "description": "A set of named attributes associated with the item. This can be used for influencing the ranking of the item based on the context in the request. The maximum number of elements is 10.", "items": { - "$ref": "DocumentInfo" + "$ref": "ContextAttribute" }, - "readOnly": true, "type": "array" }, - "availableAccessTypes": { - "description": "List of available access types of the conference.", - "items": { - "enum": [ - "ACCESS_TYPE_UNSPECIFIED", - "ACCESS_TYPE_OPEN", - "ACCESS_TYPE_TRUSTED", - "ACCESS_TYPE_RESTRICTED", - "ACCESS_TYPE_CLOSED" - ], - "enumDescriptions": [ - "Default value. This value is unused.", - "Anyone with meeting join information (url, phone access...) can join, no knocking required. (Subject to organization policies)", - "Members of the Host's organization, invited external users, and dial-in users can join without knocking, everyone else must knock. (Subject to organization policies)", - "Only participants invited by a host can automatically join, everyone else must knock and be admitted. (Subject to organization policies) Participants cannot dial out from the meeting. And only hosts can accept knocks.", - "Only participants invited by a host can join. Knocking is not allowed, dial in and dial out are also disabled." - ], - "type": "string" - }, - "type": "array" + "createTime": { + "description": "The time when the item was created in the source repository.", + "format": "google-datetime", + "type": "string" + }, + "hash": { + "description": "Hashing value provided by the API caller. This can be used with the items.push method to calculate modified state. The maximum length is 2048 characters.", + "type": "string" }, - "availableAnnotationToolTypes": { - "description": "Available screen annotation tool types.", + "interactions": { + "description": "A list of interactions for the item. Interactions are used to improve Search quality, but are not exposed to end users. The maximum number of elements is 1000.", "items": { - "enum": [ - "ANNOTATION_TOOL_TYPE_UNSPECIFIED", - "ANNOTATION_TOOL_CLEAR_ALL", - "ANNOTATION_TOOL_LINE", - "ANNOTATION_TOOL_MAGIC_ERASER", - "ANNOTATION_TOOL_PEN", - "ANNOTATION_TOOL_SHAPE", - "ANNOTATION_TOOL_TEXT_BOX" - ], - "enumDescriptions": [ - "Annotation tool type unspecified.", - "Clears all annotations.", - "Draws vector lines.", - "Deletes elements that are touched.", - "Draws freeform strokes.", - "Draws simple vector shapes (such as rectangles or ellipses).", - "Allows adding/editing text at this location." - ], - "type": "string" + "$ref": "Interaction" }, "type": "array" }, - "availableReactions": { - "description": "Output only. The set of reactions that clients are allowed to send and can expect to receive. Note that a device in the conference should have the MAY_SEND_REACTIONS privilege to be able to send reactions.", + "keywords": { + "description": "Additional keywords or phrases that should match the item. Used internally for user generated content. The maximum number of elements is 100. The maximum length is 8192 characters.", "items": { - "$ref": "ReactionInfo" + "type": "string" }, - "readOnly": true, "type": "array" }, - "broadcastSessionInfo": { - "$ref": "BroadcastSessionInfo", - "description": "Information about active broadcast session in the ongoing conference." - }, - "calendarEventId": { - "description": "Output only. The calendar event ID of a Google Calendar event that the meeting space is associated with. If the meeting space is not associated with an event in Google Calendar, this field is empty. For recurring events, it refers to the recurring instance associated with the current call, as determined by the server.", - "readOnly": true, + "mimeType": { + "description": "The original mime-type of ItemContent.content in the source repository. The maximum length is 256 characters.", "type": "string" }, - "coActivity": { - "$ref": "CoActivity", - "description": "The current co-activity session, or unset if there is none in progress. A co-activity session can be initiated by devices in JOINED state . Initiator of the co-activity is expected to populate this field to start the session. Once clients detect that the co-activity has finished, any JOINED device can clear this field to end the co-activity session. In the case of switching activities, the initiator of the new activity merely needs to override this with the new co-activity data, and all connected clients are expected to handle the transition gracefully." - }, - "collaboration": { - "$ref": "Collaboration", - "description": "The current collaboration session, or unset if no collaboration is in progress." - }, - "cseInfo": { - "$ref": "CseInfo", - "description": "CSE information for the ongoing conference." - }, - "maxJoinedDevices": { - "description": "Output only. The maximum number of devices that may be in the joined state simultaneously in this conference. This can be used by clients to guess whether it will be possible to join, but the only way to know is to try to join. It can also be used to inform users about the limit that is in effect. This limit is normally set when the conference is created and not changed during the lifetime of the conference. But there are some cases where it may change, so clients should be aware that the information may be stale.", - "format": "int32", - "readOnly": true, - "type": "integer" - }, - "organizationName": { - "description": "Output only. The name or description of the organization or domain that the organizer belongs to. The expected use of this in clients is to present messages like \"John Doe (outside of Google.com) is trying to join this call\", where \"Google.com\" is the organization name. The field will be empty if the organization name could not be determined, possibly because of a backend error.", - "readOnly": true, + "objectType": { + "description": "The type of the item. This should correspond to the name of an object definition in the schema registered for the data source. For example, if the schema for the data source contains an object definition with name 'document', then item indexing requests for objects of that type should set objectType to 'document'. The maximum length is 256 characters.", "type": "string" }, - "paygateInfo": { - "$ref": "PaygateInfo", - "description": "Paygate information to clients." - }, - "presenter": { - "$ref": "Presenter", - "description": "The current presenter in the call, or unset if there is no current presenter. Clients can set this to change the presenter." + "searchQualityMetadata": { + "$ref": "SearchQualityMetadata", + "description": "Additional search quality metadata of the item" }, - "recordingInfo": { - "$ref": "RecordingInfo", - "description": "Deprecated, use RecordingSessionInfo instead. Info about recording for this conference. This will always be set in server responses, with a valid recording status. This is superseded by streaming_sessions field, which contains the same information about this recording as well as additional information about other application type at the same time. This will be deprecated and removed at some point." + "sourceRepositoryUrl": { + "description": "Link to the source repository serving the data. Seach results apply this link to the title. Whitespace or special characters may cause Cloud Seach result links to trigger a redirect notice; to avoid this, encode the URL. The maximum length is 2048 characters.", + "type": "string" }, - "recordingSessionInfo": { - "$ref": "RecordingSessionInfo", - "description": "Information about active recording session in the ongoing conference." + "title": { + "description": "The title of the item. If given, this will be the displayed title of the Search result. The maximum length is 2048 characters.", + "type": "string" }, - "settings": { - "$ref": "CallSettings", - "description": "Settings of the ongoing conference." + "updateTime": { + "description": "The time when the item was last modified in the source repository.", + "format": "google-datetime", + "type": "string" + } + }, + "type": "object" + }, + "ItemStatus": { + "description": "This contains item's status and any errors.", + "id": "ItemStatus", + "properties": { + "code": { + "description": "Status code.", + "enum": [ + "CODE_UNSPECIFIED", + "ERROR", + "MODIFIED", + "NEW_ITEM", + "ACCEPTED" + ], + "enumDescriptions": [ + "Input-only value. Used with Items.list to list all items in the queue, regardless of status.", + "Error encountered by Cloud Search while processing this item. Details of the error are in repositoryError.", + "Item has been modified in the repository, and is out of date with the version previously accepted into Cloud Search.", + "Item is known to exist in the repository, but is not yet accepted by Cloud Search. An item can be in this state when Items.push has been called for an item of this name that did not exist previously.", + "API has accepted the up-to-date data of this item." + ], + "type": "string" }, - "streamingSessions": { - "description": "Output only. Info about streaming sessions (recording or broadcast) for this conference. This should contain all active sessions. Currently, it's guaranteed to have at most one recording and at most one broadcast (at most two sessions in total). For each application type (recording or broadcast), latest inactive session is included if there's no active one.", + "processingErrors": { + "description": "Error details in case the item is in ERROR state.", "items": { - "$ref": "StreamingSessionInfo" + "$ref": "ProcessingError" }, - "readOnly": true, "type": "array" }, - "transcriptionSessionInfo": { - "$ref": "TranscriptionSessionInfo", - "description": "Information about active transcription session in the ongoing conference." - }, - "viewerCount": { - "description": "The number of devices viewing the conference - MeetingDevices that are in VIEWER role and JOINED state in the conference.", - "format": "int32", - "type": "integer" - }, - "youTubeBroadcastSessionInfos": { - "description": "Information about active YouTube broadcast sessions in the ongoing conference.", + "repositoryErrors": { + "description": "Repository error reported by connector.", "items": { - "$ref": "YouTubeBroadcastSessionInfo" + "$ref": "RepositoryError" }, "type": "array" } }, "type": "object" }, - "CallSettings": { - "description": "Effective settings of the ongoing conference.", - "id": "CallSettings", + "ItemStructuredData": { + "description": "Available structured data fields for the item.", + "id": "ItemStructuredData", "properties": { - "accessLock": { - "description": "Indicates whether the access lock is currently on or off.", - "type": "boolean" - }, - "accessType": { - "description": "The current access type of the conference.", - "enum": [ - "ACCESS_TYPE_UNSPECIFIED", - "ACCESS_TYPE_OPEN", - "ACCESS_TYPE_TRUSTED", - "ACCESS_TYPE_RESTRICTED", - "ACCESS_TYPE_CLOSED" - ], - "enumDescriptions": [ - "Default value. This value is unused.", - "Anyone with meeting join information (url, phone access...) can join, no knocking required. (Subject to organization policies)", - "Members of the Host's organization, invited external users, and dial-in users can join without knocking, everyone else must knock. (Subject to organization policies)", - "Only participants invited by a host can automatically join, everyone else must knock and be admitted. (Subject to organization policies) Participants cannot dial out from the meeting. And only hosts can accept knocks.", - "Only participants invited by a host can join. Knocking is not allowed, dial in and dial out are also disabled." - ], + "hash": { + "description": "Hashing value provided by the API caller. This can be used with the items.push method to calculate modified state. The maximum length is 2048 characters.", "type": "string" }, - "allowJoiningBeforeHost": { - "description": "Whether users can join this conference before a host (Host or Cohost).", - "type": "boolean" - }, - "attendanceReportEnabled": { - "description": "Indicates whether the attendance report is currently enabled or disabled.", - "type": "boolean" - }, - "audioLock": { - "description": "Indicates whether the audio lock is currently on or off.", - "type": "boolean" - }, - "chatLock": { - "description": "Indicates whether the chat lock is currently on or off.", - "type": "boolean" - }, - "coActivityLock": { - "description": "Indicates whether the co-activity lock is currently on or off.", - "type": "boolean" - }, - "cseEnabled": { - "description": "Whether Client-side Encryption is enabled for this conference.", - "type": "boolean" - }, - "moderationEnabled": { - "description": "Indicates whether moderation is currently on or off.", - "type": "boolean" - }, - "presentLock": { - "description": "Indicates whether the present lock is currently on or off.", - "type": "boolean" - }, - "reactionsLock": { - "description": "Indicates whether the reactions lock is currently on or off.", - "type": "boolean" - }, - "videoLock": { - "description": "Indicates whether the video lock is currently on or off.", - "type": "boolean" + "object": { + "$ref": "StructuredDataObject", + "description": "The structured data object that should conform to a registered object definition in the schema for the data source." } }, "type": "object" }, - "CapTokenHolderProto": { - "description": "Represents a principal which possesses a particular secret string whose cryptographic hash is specified here. CapTokens (\"Capability Tokens\") are used in ACLProto. It's expected that ACLs with CapTokenHolders will strongly enforce them by Keystore-wrapping crypto keys for the corresponding CapTokens.", - "id": "CapTokenHolderProto", + "ListDataSourceResponse": { + "id": "ListDataSourceResponse", "properties": { - "tokenHmacSha1Prefix": { - "description": "The hash of the corresponding capability token. The value is defined to be identical to the one in acl.proto's CapTokenMetadata: 10-byte prefix of HMAC-SHA1 of the token. The HMAC key is the following fixed (non-secret) 512-bit value: 79b1c8f4 82baf523 b8a9ab4a e960f438 c45be041 11f1f222 e8a3f64d aeb05e3d c3576acc ec649194 aede422c 4e48e0d1 ff21234a a6ed6b49 a7fa592e efd7bba3", - "format": "byte", + "nextPageToken": { + "description": "Token to retrieve the next page of results, or empty if there are no more results in the list.", "type": "string" + }, + "sources": { + "items": { + "$ref": "DataSource" + }, + "type": "array" } }, "type": "object" }, - "Card": { - "id": "Card", + "ListItemNamesForUnmappedIdentityResponse": { + "id": "ListItemNamesForUnmappedIdentityResponse", "properties": { - "cardActions": { + "itemNames": { "items": { - "$ref": "CardAction" + "type": "string" }, "type": "array" }, - "displayStyle": { - "enum": [ - "DISPLAY_STYLE_UNSPECIFIED", - "PEEK", - "REPLACE" - ], - "enumDescriptions": [ - "", - "", - "" - ], + "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" + }, + "ListItemsResponse": { + "id": "ListItemsResponse", + "properties": { + "items": { + "items": { + "$ref": "Item" + }, + "type": "array" }, - "fixedFooter": { - "$ref": "FixedFooter" - }, - "header": { - "$ref": "CardHeader" - }, - "name": { - "description": "Name of the card used in CardNavigation.pop_to_card_name.", + "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" + }, + "ListOperationsResponse": { + "description": "The response message for Operations.ListOperations.", + "id": "ListOperationsResponse", + "properties": { + "nextPageToken": { + "description": "The standard List next-page token.", "type": "string" }, - "peekCardHeader": { - "$ref": "CardHeader", - "description": "When displaying contextual content, the peek card header acts as a placeholder so that the user can navigate forward between the homepage cards and the contextual cards." - }, - "sections": { + "operations": { + "description": "A list of operations that matches the specified filter in the request.", "items": { - "$ref": "Section" + "$ref": "Operation" }, "type": "array" } }, "type": "object" }, - "CardAction": { - "description": "When an AddOn Card is shown in detailed view, a card action is the action associated with the card. For an invoice card, a typical action would be: delete invoice, email invoice or open the invoice in browser.", - "id": "CardAction", + "ListQuerySourcesResponse": { + "description": "List sources response.", + "id": "ListQuerySourcesResponse", "properties": { - "actionLabel": { - "description": "The label used to be displayed in the action menu item.", + "nextPageToken": { "type": "string" }, - "onClick": { - "$ref": "OnClick" + "sources": { + "items": { + "$ref": "QuerySource" + }, + "type": "array" } }, "type": "object" }, - "CardCapabilityMetadata": { - "id": "CardCapabilityMetadata", + "ListSearchApplicationsResponse": { + "id": "ListSearchApplicationsResponse", "properties": { - "requiredCapabilities": { - "description": "NEXT TAG : 2", + "nextPageToken": { + "description": "Token to retrieve the next page of results, or empty if there are no more results in the list.", + "type": "string" + }, + "searchApplications": { "items": { - "enum": [ - "UNKNOWN", - "SUPPORTS_BASE_CARDS" - ], - "enumDescriptions": [ - "", - "NEXT TAG : 2" - ], - "type": "string" + "$ref": "SearchApplication" }, "type": "array" } }, "type": "object" }, - "CardHeader": { - "id": "CardHeader", + "ListUnmappedIdentitiesResponse": { + "id": "ListUnmappedIdentitiesResponse", "properties": { - "imageAltText": { - "description": "The alternative text of this image which will be used for accessibility.", - "type": "string" - }, - "imageStyle": { - "enum": [ - "CROP_TYPE_NOT_SET", - "SQUARE", - "CIRCLE", - "RECTANGLE_CUSTOM", - "RECTANGLE_4_3" - ], - "enumDescriptions": [ - "No value specified.", - "Applies a square crop.", - "Applies a circular crop.", - "Applies a rectangular crop with a custom aspect ratio.", - "Applies a rectangular crop with a 4:3 aspect ratio." - ], - "type": "string" - }, - "imageUrl": { - "type": "string" - }, - "subtitle": { + "nextPageToken": { + "description": "Token to retrieve the next page of results, or empty if there are no more results in the list.", "type": "string" }, - "title": { - "description": "The title must be specified. The header has a fixed height: if both a title and subtitle is specified, each will take up 1 line. If only the title is specified, it will take up both lines. The header is rendered in collapsed and detailed view.", - "type": "string" + "unmappedIdentities": { + "items": { + "$ref": "UnmappedIdentity" + }, + "type": "array" } }, "type": "object" }, - "CaribouAttributeValue": { - "id": "CaribouAttributeValue", + "MapInfo": { + "description": "Geo information used for rendering a map that shows the user's work location.", + "id": "MapInfo", "properties": { - "booleanValue": { - "description": "Tags 1 through 15 are reserved for the most commonly used fields.", - "type": "boolean" + "lat": { + "description": "Latitude in degrees", + "format": "double", + "type": "number" }, - "intValue": { - "format": "int32", - "type": "integer" + "locationUrl": { + "$ref": "SafeUrlProto", + "description": "URL to a view of a map centered on the user's work location in Campus Maps (for google.com) or Google Maps (external)." }, - "longValue": { - "format": "int64", - "type": "string" + "long": { + "description": "Longitude in degrees", + "format": "double", + "type": "number" }, - "rawByteValue": { - "description": "Generally, applications should avoid storing raw bytes and instead store structured data as protocol buffer extensions. This both reduces the amount of ad-hoc attribute parsing code as well as eliminates an intermediate copy of the data when deserializing the value. The rawByteValue field is mainly provided for compatibility with attributes stored before the introduction of the Attribute.Value.", - "format": "byte", - "type": "string" + "mapTile": { + "description": "MapTiles for the area around a user's work location", + "items": { + "$ref": "MapTile" + }, + "type": "array" }, - "stringValue": { - "type": "string" + "zoom": { + "description": "The zoom level of the map. A constant zoom value of 18 is used for now to match the zoom of the map shown on a Moma Teams Profile page", + "format": "int32", + "type": "integer" } }, "type": "object" }, - "ChatClientActionMarkup": { - "description": "Actions handled by Chat Clients.", - "id": "ChatClientActionMarkup", - "properties": {}, - "type": "object" - }, - "ChatConserverDynamitePlaceholderMetadata": { - "description": "Metadata used as inputs to the localization that is performed on Dynamite-originated messages that are incompatible with Hangouts clients. See go/localization-of-system-messages for more details.", - "id": "ChatConserverDynamitePlaceholderMetadata", + "MapTile": { + "description": "Information used to render a map tile image in the proper location on a map.", + "id": "MapTile", "properties": { - "attachmentMetadata": { - "$ref": "ChatConserverDynamitePlaceholderMetadataAttachmentMetadata" - }, - "botMessageMetadata": { - "$ref": "ChatConserverDynamitePlaceholderMetadataBotMessageMetadata" - }, - "calendarEventMetadata": { - "$ref": "ChatConserverDynamitePlaceholderMetadataCalendarEventMetadata" - }, - "deleteMetadata": { - "$ref": "ChatConserverDynamitePlaceholderMetadataDeleteMetadata" - }, - "editMetadata": { - "$ref": "ChatConserverDynamitePlaceholderMetadataEditMetadata" + "imageUrl": { + "$ref": "SafeUrlProto", + "description": "URL to an image file containing an office layout of the user's location for their organization, if one is available. For google.com, this image is from Corp Campus Maps." }, - "spaceUrl": { - "description": "The space URL embedded in the localized string.", - "type": "string" + "tileX": { + "description": "Map tile x coordinate", + "format": "double", + "type": "number" }, - "tasksMetadata": { - "$ref": "ChatConserverDynamitePlaceholderMetadataTasksMetadata" + "tileY": { + "description": "Map tile y coordinate", + "format": "double", + "type": "number" + } + }, + "type": "object" + }, + "MatchRange": { + "description": "Matched range of a snippet [start, end).", + "id": "MatchRange", + "properties": { + "end": { + "description": "End of the match in the snippet.", + "format": "int32", + "type": "integer" }, - "videoCallMetadata": { - "$ref": "ChatConserverDynamitePlaceholderMetadataVideoCallMetadata" + "start": { + "description": "Starting position of the match in the snippet.", + "format": "int32", + "type": "integer" } }, "type": "object" }, - "ChatConserverDynamitePlaceholderMetadataAttachmentMetadata": { - "description": "An attachment uploaded in Dynamite and its filename.", - "id": "ChatConserverDynamitePlaceholderMetadataAttachmentMetadata", + "Media": { + "description": "Media resource.", + "id": "Media", "properties": { - "filename": { + "resourceName": { + "description": "Name of the media resource.", "type": "string" } }, "type": "object" }, - "ChatConserverDynamitePlaceholderMetadataBotMessageMetadata": { - "description": "A bot sent a message in Dynamite.", - "id": "ChatConserverDynamitePlaceholderMetadataBotMessageMetadata", - "properties": {}, - "type": "object" - }, - "ChatConserverDynamitePlaceholderMetadataCalendarEventMetadata": { - "description": "A Calendar event message in Dynamite.", - "id": "ChatConserverDynamitePlaceholderMetadataCalendarEventMetadata", - "properties": {}, - "type": "object" - }, - "ChatConserverDynamitePlaceholderMetadataDeleteMetadata": { - "description": "A message was deleted in Dynamite.", - "id": "ChatConserverDynamitePlaceholderMetadataDeleteMetadata", - "properties": {}, - "type": "object" - }, - "ChatConserverDynamitePlaceholderMetadataEditMetadata": { - "description": "An edit was made in Dynamite.", - "id": "ChatConserverDynamitePlaceholderMetadataEditMetadata", - "properties": {}, - "type": "object" - }, - "ChatConserverDynamitePlaceholderMetadataTasksMetadata": { - "description": "A Tasks message in Dynamite.", - "id": "ChatConserverDynamitePlaceholderMetadataTasksMetadata", - "properties": {}, - "type": "object" - }, - "ChatConserverDynamitePlaceholderMetadataVideoCallMetadata": { - "description": "A Meet initiated in Dynamite and its URL.", - "id": "ChatConserverDynamitePlaceholderMetadataVideoCallMetadata", + "Metadata": { + "description": "Metadata of a matched search result.", + "id": "Metadata", "properties": { - "meetingUrl": { + "createTime": { + "description": "The creation time for this document or object in the search result.", + "format": "google-datetime", + "type": "string" + }, + "displayOptions": { + "$ref": "ResultDisplayMetadata", + "description": "Options that specify how to display a structured data search result." + }, + "fields": { + "description": "Indexed fields in structured data, returned as a generic named property.", + "items": { + "$ref": "NamedProperty" + }, + "type": "array" + }, + "mimeType": { + "description": "Mime type of the search result.", + "type": "string" + }, + "objectType": { + "description": "Object type of the search result.", + "type": "string" + }, + "owner": { + "$ref": "Person", + "description": "Owner (usually creator) of the document or object of the search result." + }, + "source": { + "$ref": "Source", + "description": "The named source for the result, such as Gmail." + }, + "thumbnailUrl": { + "description": "The thumbnail URL of the result.", + "type": "string" + }, + "updateTime": { + "description": "The last modified date for the object in the search result. If not set in the item, the value returned here is empty. When `updateTime` is used for calculating freshness and is not set, this value defaults to 2 years from the current time.", + "format": "google-datetime", "type": "string" } }, "type": "object" }, - "ChatConserverMessageContent": { - "description": "The content of a chat message, which includes 0 or more segments along with 0 or more embeds, which represent various attachment types (like photos).", - "id": "ChatConserverMessageContent", + "Metaline": { + "description": "A metaline is a list of properties that are displayed along with the search result to provide context.", + "id": "Metaline", "properties": { - "attachment": { - "description": "Items attached to this message, such as photos. This should *NOT* be set by clients. It will be automatically set from media uploaded along with this request and using the information provided in existing_media.", - "items": { - "$ref": "SocialCommonAttachmentAttachment" - }, - "type": "array" - }, - "segment": { - "description": "The text part of the message content. Segments are concatenated together to yield the full message. A message can have zero or more segments.", + "properties": { + "description": "The list of displayed properties for the metaline. The maximum number of properties is 5.", "items": { - "$ref": "Segment" + "$ref": "DisplayedProperty" }, "type": "array" } }, "type": "object" }, - "ChatContentExtension": { - "description": "NEXT ID: 12", - "id": "ChatContentExtension", + "Name": { + "description": "A person's name.", + "id": "Name", "properties": { - "annotation": { - "description": "Annotations to decorate this event.", - "items": { - "$ref": "EventAnnotation" - }, - "type": "array" + "displayName": { + "description": "The read-only display name formatted according to the locale specified by the viewer's account or the `Accept-Language` HTTP header.", + "type": "string" + } + }, + "type": "object" + }, + "NamedProperty": { + "description": "A typed name-value pair for structured data. The type of the value should be the same as the registered type for the `name` property in the object definition of `objectType`.", + "id": "NamedProperty", + "properties": { + "booleanValue": { + "type": "boolean" }, - "dynamitePlaceholderMetadata": { - "$ref": "ChatConserverDynamitePlaceholderMetadata", - "description": "This metadata informs how the placeholder string will be localized dynamically in Hangouts. See go/localization-of-system-messages. This is only used as part of REGULAR_CHAT_MESSAGE events." + "dateValues": { + "$ref": "DateValues" }, - "eventOtrStatus": { - "description": "Is this event OnTR or OffTR? Since some events can be ON_THE_RECORD and have an expiration_timestamp (for example enterprise retention users) we need to store the otr status.", - "enum": [ - "OFF_THE_RECORD", - "ON_THE_RECORD" - ], - "enumDescriptions": [ - "The conversation is completely off the record.", - "The conversation is completely on the record." - ], - "type": "string" + "doubleValues": { + "$ref": "DoubleValues" }, - "groupLinkSharingModificationEvent": { - "$ref": "GroupLinkSharingModificationEvent", - "description": "Group-link sharing toggle event." + "enumValues": { + "$ref": "EnumValues" }, - "hangoutEvent": { - "$ref": "HangoutEvent", - "description": "Audio/video Hangout event." + "htmlValues": { + "$ref": "HtmlValues" }, - "inviteAcceptedEvent": { - "$ref": "InviteAcceptedEvent", - "description": "Invite accepted events. Note: this is only used ephemerally to sync to Gmail. No actual cent is stored in Papyrus." + "integerValues": { + "$ref": "IntegerValues" }, - "membershipChangeEvent": { - "$ref": "MembershipChangeEvent", - "description": "Join/leave events." + "name": { + "description": "The name of the property. This name should correspond to the name of the property that was registered for object definition in the schema. The maximum allowable length for this property is 256 characters.", + "type": "string" }, - "otrChatMessageEvent": { - "$ref": "OtrChatMessageEvent", - "description": "Metadata for off-the-record message." + "objectValues": { + "$ref": "ObjectValues" }, - "otrModificationEvent": { - "$ref": "OtrModificationEvent" + "textValues": { + "$ref": "TextValues" }, - "renameEvent": { - "$ref": "RenameEvent" + "timestampValues": { + "$ref": "TimestampValues" } }, "type": "object" }, - "ChatProto": { - "description": "Represents the invitees or other users associated with a Babel Chat (see http://goto/babel). Corresponds to GroupType CHAT in //social/graph/storage/proto/data.proto.", - "id": "ChatProto", + "ObjectDefinition": { + "description": "The definition for an object within a data source.", + "id": "ObjectDefinition", "properties": { - "chatId": { - "description": "Chat IDs consist of alphanumeric characters and colons. Currently required.", + "name": { + "description": "The name for the object, which then defines its type. Item indexing requests should set the objectType field equal to this value. For example, if *name* is *Document*, then indexing requests for items of type Document should set objectType equal to *Document*. Each object definition must be uniquely named within a schema. The name must start with a letter and can only contain letters (A-Z, a-z) or numbers (0-9). The maximum length is 256 characters.", "type": "string" }, - "memberType": { - "description": "The type of Chat members to consider, e.g. \"all members\" vs. \"invitee\" These are defined by legacy_relation_id values in social.graph.storage.EdgeTypeEnum.EdgeType enum options in social/graph/storage/proto/id.proto. See chat.pb (defined in production/config/cdd/socialgraph/mixer_config/prod/node_type_config) for all valid edge types associated with chat. Currently required.", - "format": "int32", - "type": "integer" - } - }, - "type": "object" - }, - "CheckAccessResponse": { - "id": "CheckAccessResponse", - "properties": { - "hasAccess": { - "description": "Returns true if principal has access. Returns false otherwise.", - "type": "boolean" + "options": { + "$ref": "ObjectOptions", + "description": "The optional object-specific options." + }, + "propertyDefinitions": { + "description": "The property definitions for the object. The maximum number of elements is 1000.", + "items": { + "$ref": "PropertyDefinition" + }, + "type": "array" } }, "type": "object" }, - "CircleProto": { - "description": "Represents a Google+ Circle. Currently (12/2011), a Circle is identical to the ContactGroup with matching parameters, but Circle must only be used for true Circles and not other Focus groups, and should be preferred over ContactGroup where applicable. Soon it may become more efficient to check membership in a Circle than in a ContactGroup (see http://go/superglue). Support for this principal type is currently (12/2011) incomplete -- e.g., Keystore does not support it yet (see b/5703421).", - "id": "CircleProto", + "ObjectDisplayOptions": { + "description": "The display options for an object.", + "id": "ObjectDisplayOptions", "properties": { - "circleId": { - "description": "Circle ID is unique only relative to the owner's Gaia ID. Currently required.", - "format": "int64", - "type": "string" - }, - "ownerGaiaId": { - "description": "The owner of the circle. Currently required.", - "format": "int64", - "type": "string" + "metalines": { + "description": "Defines the properties that are displayed in the metalines of the search results. The property values are displayed in the order given here. If a property holds multiple values, all of the values are displayed before the next properties. For this reason, it is a good practice to specify singular properties before repeated properties in this list. All of the properties must set is_returnable to true. The maximum number of metalines is 3.", + "items": { + "$ref": "Metaline" + }, + "type": "array" }, - "requiredConsistencyTimestampUsec": { - "description": "If present, then tests for membership in this circle must use data known to be at least as fresh as the given (FBS-assigned) timestamp. See http://go/fbs-consistent-read-after-important-write Before using this, be sure that any service checking authorization against this circle supports checking consistency timestamps. For example, as of 12/2011, Keystore only supports this for the Moonshine configuration, and in others authorization checks will fail if the timestamp is present.", - "format": "int64", + "objectDisplayLabel": { + "description": "The user friendly label to display in the search result to indicate the type of the item. This is OPTIONAL; if not provided, an object label isn't displayed on the context line of the search results. The maximum length is 64 characters.", "type": "string" } }, "type": "object" }, - "ClientContext": { - "description": "Represents the context of the client on behalf of which a HistoryRecord is produced. The ClientContext message can be used to hold context about the service client (e.g. the internal server making fusebox requests) or the user client (e.g. the IP address of the end user).", - "id": "ClientContext", + "ObjectOptions": { + "description": "The options for an object.", + "id": "ObjectOptions", "properties": { - "clientOperationId": { - "description": "The client operation to which this history record belongs. The notion of a client operation is provided to keep track of client operations which might span multiple transactions in the lower level.", - "type": "string" - }, - "clientType": { - "description": "E.g. \"pinto\", \"imap\", \"bigtop\", \"upload\"", - "type": "string" + "displayOptions": { + "$ref": "ObjectDisplayOptions", + "description": "The options that determine how the object is displayed in the Cloud Search results page." }, - "sessionContext": { - "$ref": "SessionContext", - "description": "Contains information about the session which created this history record. This will be empty if the history record was generated by an internal request." + "freshnessOptions": { + "$ref": "FreshnessOptions", + "description": "The freshness options for an object." }, - "userIp": { - "description": "Textual representation of the user's IP address, if available.", - "type": "string" + "suggestionFilteringOperators": { + "description": "Operators that can be used to filter suggestions. For Suggest API, only operators mentioned here will be honored in the FilterOptions. Only TEXT and ENUM operators are supported. NOTE: \"objecttype\", \"type\" and \"mimetype\" are already supported. This property is to configure schema specific operators. Even though this is an array, only one operator can be specified. This is an array for future extensibility. Operators mapping to multiple properties within the same object are not supported. If the operator spans across different object types, this option has to be set once for each object definition.", + "items": { + "type": "string" + }, + "type": "array" } }, "type": "object" }, - "CloudPrincipalProto": { - "description": "Principal associated with a Cloud Principal representing third party user.", - "id": "CloudPrincipalProto", + "ObjectPropertyOptions": { + "description": "The options for object properties.", + "id": "ObjectPropertyOptions", "properties": { - "id": { - "description": "Format: \"{identity-pool}:{subject}#\" Details: go/cloud-principal-identifiers", - "type": "string" + "subobjectProperties": { + "description": "The properties of the sub-object. These properties represent a nested object. For example, if this property represents a postal address, the subobjectProperties might be named *street*, *city*, and *state*. The maximum number of elements is 1000.", + "items": { + "$ref": "PropertyDefinition" + }, + "type": "array" } }, "type": "object" }, - "ClusterInfo": { - "description": "ClusterInfo contains clustering related information for a particular thread that would be sent as part of the conversation view. Today, this information would be used by iOS notification server to identify whether the thread belongs to a cluster. If the thread belongs to a grouped cluster, it would identify whether the cluster is throttled.", - "id": "ClusterInfo", + "ObjectValues": { + "description": "List of object values.", + "id": "ObjectValues", "properties": { - "clusterId": { - "description": "IDs of the highest priority clusters to which the thread belongs to. If this field is not present, the thread does not belong to any cluster and would be shown in the inbox, unclustered.", + "values": { "items": { - "type": "string" + "$ref": "StructuredDataObject" }, "type": "array" - }, - "throttled": { - "description": "If the thread belongs to a grouped cluster and all of those clusters are throttled, then this field is set to true.", - "type": "boolean" } }, "type": "object" }, - "CoActivity": { - "description": "Metadata about a co-activity session.", - "id": "CoActivity", + "Operation": { + "description": "This resource represents a long-running operation that is the result of a network API call.", + "id": "Operation", "properties": { - "activityTitle": { - "description": "The title of the activity in this co-activity session. For example, this might be the title of the video being co-watched, or the name of the round of a game being co-played.", - "type": "string" - }, - "addOnId": { - "description": "The add-on id of the current add-on being used for co-activity.", - "type": "string" - }, - "addOnStartingState": { - "$ref": "AddOnStartingState", - "description": "The starting state of the add-on frames for co-activity." + "done": { + "description": "If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.", + "type": "boolean" }, - "coActivityApp": { - "description": "Identifies the app handling this co-activity.", - "enum": [ - "CO_ACTIVITY_APP_UNSPECIFIED", - "CO_ACTIVITY_APP_YOU_TUBE_MAIN", - "CO_ACTIVITY_APP_SPOTIFY", - "CO_ACTIVITY_APP_UNO", - "CO_ACTIVITY_APP_HEADSUP", - "CO_ACTIVITY_APP_KAHOOT", - "CO_ACTIVITY_APP_GQUEUES", - "CO_ACTIVITY_APP_YOU_TUBE_MUSIC", - "CO_ACTIVITY_APP_SAMSUNG_NOTES", - "CO_ACTIVITY_APP_HAPPY_AARDVARK" - ], - "enumDescriptions": [ - "Should never be used.", - "Main YouTube app, for watching videos.", - "Spotify music.", - "Uno game.", - "HeadsUp game.", - "Kahoot! educational software.", - "GQueues task manager.", - "YouTube Music", - "Samsung Notes", - "." - ], - "type": "string" + "error": { + "$ref": "Status", + "description": "The error result of the operation in case of failure or cancellation." }, - "initiatorDeviceId": { - "description": "The resource name of the device that initiated the co-activity.", - "type": "string" + "metadata": { + "additionalProperties": { + "description": "Properties of the object. Contains field @type with type URL.", + "type": "any" + }, + "description": "Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.", + "type": "object" }, - "presentationDeviceId": { - "description": "The resource name of the device that is presenting the add-on.", + "name": { + "description": "The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.", "type": "string" }, - "projectNumber": { - "description": "The project number of the add-on to determine version.", - "format": "int64", - "type": "string" + "response": { + "additionalProperties": { + "description": "Properties of the object. Contains field @type with type URL.", + "type": "any" + }, + "description": "The normal response of the operation in case of success. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.", + "type": "object" } }, "type": "object" }, - "Collaboration": { - "description": "Information about a collaboration session.", - "id": "Collaboration", + "PeoplePromotionCard": { + "id": "PeoplePromotionCard", "properties": { - "attachmentId": { - "description": "The attachment being collaborated on.", - "type": "string" - }, - "initiator": { - "$ref": "UserDisplayInfo", - "description": "Display info of the user who initiated the collaboration session." - }, - "uri": { - "description": "The uri of the artifact being collaborated on.", - "type": "string" + "people": { + "items": { + "$ref": "PersonCore" + }, + "type": "array" } }, "type": "object" }, - "Color": { - "description": "Represents a color in the RGBA color space. This representation is designed for simplicity of conversion to and from color representations in various languages over compactness. For example, the fields of this representation can be trivially provided to the constructor of `java.awt.Color` in Java; it can also be trivially provided to UIColor's `+colorWithRed:green:blue:alpha` method in iOS; and, with just a little work, it can be easily formatted into a CSS `rgba()` string in JavaScript. This reference page does not have information about the absolute color space that should be used to interpret the RGB value—for example, sRGB, Adobe RGB, DCI-P3, and BT.2020. By default, applications should assume the sRGB color space. When color equality needs to be decided, implementations, unless documented otherwise, treat two colors as equal if all their red, green, blue, and alpha values each differ by at most `1e-5`. Example (Java): import com.google.type.Color; // ... public static java.awt.Color fromProto(Color protocolor) { float alpha = protocolor.hasAlpha() ? protocolor.getAlpha().getValue() : 1.0; return new java.awt.Color( protocolor.getRed(), protocolor.getGreen(), protocolor.getBlue(), alpha); } public static Color toProto(java.awt.Color color) { float red = (float) color.getRed(); float green = (float) color.getGreen(); float blue = (float) color.getBlue(); float denominator = 255.0; Color.Builder resultBuilder = Color .newBuilder() .setRed(red / denominator) .setGreen(green / denominator) .setBlue(blue / denominator); int alpha = color.getAlpha(); if (alpha != 255) { result.setAlpha( FloatValue .newBuilder() .setValue(((float) alpha) / denominator) .build()); } return resultBuilder.build(); } // ... Example (iOS / Obj-C): // ... static UIColor* fromProto(Color* protocolor) { float red = [protocolor red]; float green = [protocolor green]; float blue = [protocolor blue]; FloatValue* alpha_wrapper = [protocolor alpha]; float alpha = 1.0; if (alpha_wrapper != nil) { alpha = [alpha_wrapper value]; } return [UIColor colorWithRed:red green:green blue:blue alpha:alpha]; } static Color* toProto(UIColor* color) { CGFloat red, green, blue, alpha; if (![color getRed:\u0026red green:\u0026green blue:\u0026blue alpha:\u0026alpha]) { return nil; } Color* result = [[Color alloc] init]; [result setRed:red]; [result setGreen:green]; [result setBlue:blue]; if (alpha \u003c= 0.9999) { [result setAlpha:floatWrapperWithValue(alpha)]; } [result autorelease]; return result; } // ... Example (JavaScript): // ... var protoToCssColor = function(rgb_color) { var redFrac = rgb_color.red || 0.0; var greenFrac = rgb_color.green || 0.0; var blueFrac = rgb_color.blue || 0.0; var red = Math.floor(redFrac * 255); var green = Math.floor(greenFrac * 255); var blue = Math.floor(blueFrac * 255); if (!('alpha' in rgb_color)) { return rgbToCssColor(red, green, blue); } var alphaFrac = rgb_color.alpha.value || 0.0; var rgbParams = [red, green, blue].join(','); return ['rgba(', rgbParams, ',', alphaFrac, ')'].join(''); }; var rgbToCssColor = function(red, green, blue) { var rgbNumber = new Number((red \u003c\u003c 16) | (green \u003c\u003c 8) | blue); var hexString = rgbNumber.toString(16); var missingZeros = 6 - hexString.length; var resultBuilder = ['#']; for (var i = 0; i \u003c missingZeros; i++) { resultBuilder.push('0'); } resultBuilder.push(hexString); return resultBuilder.join(''); }; // ...", - "id": "Color", + "PeopleSuggestion": { + "description": "This field contains information about the person being suggested.", + "id": "PeopleSuggestion", "properties": { - "alpha": { - "description": "The fraction of this color that should be applied to the pixel. That is, the final pixel color is defined by the equation: `pixel color = alpha * (this color) + (1.0 - alpha) * (background color)` This means that a value of 1.0 corresponds to a solid color, whereas a value of 0.0 corresponds to a completely transparent color. This uses a wrapper message rather than a simple float scalar so that it is possible to distinguish between a default value and the value being unset. If omitted, this color object is rendered as a solid color (as if the alpha value had been explicitly given a value of 1.0).", - "format": "float", - "type": "number" - }, - "blue": { - "description": "The amount of blue in the color as a value in the interval [0, 1].", - "format": "float", - "type": "number" - }, - "green": { - "description": "The amount of green in the color as a value in the interval [0, 1].", - "format": "float", - "type": "number" - }, - "red": { - "description": "The amount of red in the color as a value in the interval [0, 1].", - "format": "float", - "type": "number" + "person": { + "$ref": "Person", + "description": "Suggested person. All fields of the person object might not be populated." } }, "type": "object" }, - "CommunalLabelTag": { - "description": "An individual instance (or \"tag\") of a label configured as a communal type that's associated with a message.", - "id": "CommunalLabelTag", + "Person": { + "description": "Object to represent a person.", + "id": "Person", "properties": { - "creatorUserId": { - "description": "Gaia ID of the user who added the tag, if any. Not present for any tags automatically created by server-side processing.", - "format": "int64", - "type": "string" + "emailAddresses": { + "description": "The person's email addresses", + "items": { + "$ref": "EmailAddress" + }, + "type": "array" + }, + "name": { + "description": "The resource name of the person to provide information about. See [`People.get`](https://developers.google.com/people/api/rest/v1/people/get) from the Google People API.", + "type": "string" }, - "labelId": { - "description": "A string ID representing the label. Possible ID values are documented at go/chat-labels-howto:ids. Example: \"^*t_p\" for \"Pinned\".", + "obfuscatedId": { + "description": "Obfuscated ID of a person.", "type": "string" + }, + "personNames": { + "description": "The person's name", + "items": { + "$ref": "Name" + }, + "type": "array" + }, + "phoneNumbers": { + "description": "The person's phone numbers", + "items": { + "$ref": "PhoneNumber" + }, + "type": "array" + }, + "photos": { + "description": "A person's read-only photo. A picture shown next to the person's name to help others recognize the person in search results.", + "items": { + "$ref": "Photo" + }, + "type": "array" } }, "type": "object" }, - "CompositeFilter": { - "id": "CompositeFilter", + "PersonCore": { + "description": "Information for rendering a person. NEXT ID: 37", + "id": "PersonCore", "properties": { - "logicOperator": { - "description": "The logic operator of the sub filter.", + "addressMeAs": { + "description": "Instructions for how to address this person (e.g. custom pronouns). For google.com this is a set of pronouns from a defined list of options.", + "type": "string" + }, + "adminTo": { + "description": "People the profile owner is an admin to. Note that not all fields of these PersonCores will be set, in particular, relationships will be empty.", + "items": { + "$ref": "PersonCore" + }, + "type": "array" + }, + "admins": { + "description": "The profile owner's admins in no particular order. Note that not all fields of these PersonCores will be set, in particular, relationships will be empty.", + "items": { + "$ref": "PersonCore" + }, + "type": "array" + }, + "availabilityStatus": { "enum": [ - "AND", - "OR", - "NOT" + "UNKNOWN", + "OUT_OF_OFFICE", + "OUTSIDE_WORKING_HOURS", + "AVAILABLE" ], "enumDescriptions": [ - "Logical operators, which can only be applied to sub filters.", "", - "NOT can only be applied on a single sub filter." + "", + "", + "" ], "type": "string" }, - "subFilters": { - "description": "Sub filters.", + "birthday": { + "$ref": "Date", + "description": "Person birthday." + }, + "calendarUrl": { + "$ref": "SafeUrlProto", + "description": "The URL to open the profile owner's primary calendar." + }, + "chatUrl": { + "$ref": "SafeUrlProto", + "description": "The URL to start a chat conversation with the profile owner. For google.com this is a Hangouts URL." + }, + "costCenter": { + "description": "Person's cost center as a string, e.g. \"926: Googler Apps\".", + "type": "string" + }, + "department": { + "description": "The person's Organization department, e.g. \"People Operations\". For google.com this is usually called \"area\".", + "type": "string" + }, + "directReports": { + "description": "A subset of the profile owner's direct reports. The number of entities here may be less than total_direct_reports_count, because typically ProfileResponse does not include all the person's reports, if there are too many to retrieve efficiently. Note that not all fields of these PersonCores will be set, in particular, relationships will be empty.", "items": { - "$ref": "Filter" + "$ref": "PersonCore" }, "type": "array" - } - }, - "type": "object" - }, - "ConsentedAppUnfurlMetadata": { - "description": "Annotation metadata app unfurl consent.", - "id": "ConsentedAppUnfurlMetadata", - "properties": { - "clientSpecifiedAppId": { - "$ref": "UserId", - "description": "Client specified AppId, which will not be sanitized and is untrusted." - } - }, - "type": "object" - }, - "ContactGroupProto": { - "description": "A group of contacts for a given user, as described in http://cs/p#google3/focus/backend/proto/backend.proto Historically (and in still-existing ACLs), this was used to represent Google+ circles as well as contact groups, but this use is now deprecated. New code should use the CIRCLE principal type to represent Google+ circles.", - "id": "ContactGroupProto", - "properties": { - "groupId": { - "description": "Group ID is unique only relative to the owner's Gaia ID.", - "format": "int64", + }, + "dottedLineManagers": { + "description": "The profile owner's direct dotted line managers in no particular order. Note that not all fields of these PersonCores will be set, in particular, relationships will be empty.", + "items": { + "$ref": "PersonCore" + }, + "type": "array" + }, + "dottedLineReports": { + "description": "A subset of the profile owner's dotted-line reports. The number of entities here may be less than total_dlr_count. Note that not all fields of these PersonCores will be set, in particular, relationships will be empty.", + "items": { + "$ref": "PersonCore" + }, + "type": "array" + }, + "emails": { + "description": "E-mail addresses of the person. The primary or preferred email should be first.", + "items": { + "type": "string" + }, + "type": "array" + }, + "employeeId": { + "description": "Person's employee number (external ID of type \"organization\") For google.com this is the badge number (e.g. 2 for Larry Page).", "type": "string" }, - "ownerGaiaId": { - "format": "int64", + "fingerprint": { + "description": "A fingerprint used by PAPI to reliably determine if a resource has changed Externally it is used as part of the etag.", "type": "string" }, - "requiredConsistencyTimestampUsec": { - "description": "If present, then tests for membership in this ContactGroup must use data known to be at least as fresh as the given (FBS-assigned) timestamp. See http://go/fbs-consistent-read-after-important-write Before using this, be sure that any service checking authorization against this group supports checking consistency timestamps. For example, as of 12/2011, Keystore only supports this for the Moonshine configuration, and in others authorization checks will fail if the timestamp is present.", + "ftePermille": { + "description": "Full-time equivalent (in ‰) (e.g. 800 for a person who's working 80%).", "format": "int64", "type": "string" - } - }, - "type": "object" - }, - "ContentReport": { - "id": "ContentReport", - "properties": { - "reportCreateTimestamp": { - "description": "The time at which the report is generated. Always populated when it is in a response.", - "format": "google-datetime", + }, + "geoLocation": { + "$ref": "MapInfo" + }, + "gmailUrl": { + "type": "string" + }, + "jobTitle": { + "description": "Profile owner's job title (e.g. \"Software Engineer\"). For google.com this is the Workday preferred job title.", + "type": "string" + }, + "keywordTypes": { + "description": "List of keys to use from the map 'keywords'.", + "items": { + "type": "string" + }, + "type": "array" + }, + "keywords": { + "additionalProperties": { + "type": "string" + }, + "description": "Custom keywords the domain admin has added.", + "type": "object" + }, + "links": { + "description": "Custom links the profile owner has added.", + "items": { + "$ref": "EnterpriseTopazFrontendTeamsLink" + }, + "type": "array" + }, + "location": { + "description": "Detailed desk location within the company. For google.com this is the desk location code (e.g. \"DE-MUC-ARP-6T2-6T2C0C\") if the person has a desk.", + "type": "string" + }, + "managers": { + "description": "The profile owner's management chain from top to bottom, where managers[0] is the CEO, manager[N-2] is the person's manager's manager and managers[N-1] is the person's direct manager. Note that not all fields of these PersonCores will be set, in particular, relationships will be empty.", + "items": { + "$ref": "PersonCore" + }, + "type": "array" + }, + "mission": { + "description": "Custom mission statement the profile owner has added.", "type": "string" }, - "reportJustification": { - "$ref": "ContentReportJustification", - "description": "Additional user-provided justification on the report. Optional." + "name": { + "description": "Human-readable Unicode display name.", + "type": "string" + }, + "officeLocation": { + "description": "Office/building identifier within the company. For google.com this is the office code (e.g. \"DE-MUC-ARP\").", + "type": "string" + }, + "personId": { + "description": "The person's obfuscated Gaia ID.", + "type": "string" + }, + "phoneNumbers": { + "items": { + "$ref": "EnterpriseTopazFrontendTeamsPersonCorePhoneNumber" + }, + "type": "array" + }, + "photoUrl": { + "$ref": "SafeUrlProto", + "description": "Person photo." + }, + "postalAddress": { + "description": "Postal address of office/building.", + "type": "string" + }, + "totalDirectReportsCount": { + "description": "Total count of the profile owner's direct reports.", + "format": "int32", + "type": "integer" + }, + "totalDlrCount": { + "description": "Total count of the profile owner's dotted-line reports.", + "format": "int32", + "type": "integer" }, - "reportType": { - "$ref": "AppsDynamiteSharedContentReportType", - "description": "Type of the report. Always populated when it is in a response." + "totalFteCount": { + "description": "The sum of all profile owner's reports and their own full-time-equivalents in ‰ (e.g. 1800 if one report is working 80% and profile owner 100%).", + "format": "int64", + "type": "string" }, - "reporterUserId": { - "$ref": "UserId", - "description": "User ID of the reporter. Always populated when it is in a response." + "username": { + "description": "External ID of type \"login_id\" for the profile. For google.com this is the username/LDAP.", + "type": "string" }, - "revisionCreateTimestamp": { - "description": "Create timestamp of the revisions of the message when it's reported. Always populated when it is in a response.", + "waldoComeBackTime": { "format": "google-datetime", "type": "string" } }, "type": "object" }, - "ContentReportJustification": { - "id": "ContentReportJustification", + "PhoneNumber": { + "description": "A person's Phone Number", + "id": "PhoneNumber", "properties": { - "userJustification": { - "description": "Optional. User-generated free-text justification for the content report.", + "phoneNumber": { + "description": "The phone number of the person.", + "type": "string" + }, + "type": { + "enum": [ + "OTHER", + "MOBILE", + "OFFICE" + ], + "enumDescriptions": [ + "", + "", + "" + ], "type": "string" } }, "type": "object" }, - "ContentReportSummary": { - "description": "Summarized info of content reports. Usually less expensive to fetch than to fetch all detailed reports. Set only when the request asks for it.", - "id": "ContentReportSummary", + "Photo": { + "description": "A person's photo.", + "id": "Photo", "properties": { - "numberReports": { - "description": "Total number of reports attached to this (revision of) message.", - "format": "int32", - "type": "integer" - }, - "numberReportsAllRevisions": { - "description": "Totoal number of reports attached to all revisions of this message (i.e. since creation). Set only when the request asks for it.", - "format": "int32", - "type": "integer" + "url": { + "description": "The URL of the photo.", + "type": "string" } }, "type": "object" }, - "ContextAttribute": { - "description": "A named attribute associated with an item which can be used for influencing the ranking of the item based on the context in the request.", - "id": "ContextAttribute", + "PollItemsRequest": { + "id": "PollItemsRequest", "properties": { - "name": { - "description": "The name of the attribute. It should not be empty. The maximum length is 32 characters. The name must start with a letter and can only contain letters (A-Z, a-z) or numbers (0-9). The name will be normalized (lower-cased) before being matched.", + "connectorName": { + "description": "The name of connector making this call. Format: datasources/{source_id}/connectors/{ID}", "type": "string" }, - "values": { - "description": "Text values of the attribute. The maximum number of elements is 10. The maximum length of an element in the array is 32 characters. The value will be normalized (lower-cased) before being matched.", + "debugOptions": { + "$ref": "DebugOptions", + "description": "Common debug options." + }, + "limit": { + "description": "Maximum number of items to return. The maximum value is 100 and the default value is 20.", + "format": "int32", + "type": "integer" + }, + "queue": { + "description": "Queue name to fetch items from. If unspecified, PollItems will fetch from 'default' queue. The maximum length is 100 characters.", + "type": "string" + }, + "statusCodes": { + "description": "Limit the items polled to the ones with these statuses.", "items": { + "enum": [ + "CODE_UNSPECIFIED", + "ERROR", + "MODIFIED", + "NEW_ITEM", + "ACCEPTED" + ], + "enumDescriptions": [ + "Input-only value. Used with Items.list to list all items in the queue, regardless of status.", + "Error encountered by Cloud Search while processing this item. Details of the error are in repositoryError.", + "Item has been modified in the repository, and is out of date with the version previously accepted into Cloud Search.", + "Item is known to exist in the repository, but is not yet accepted by Cloud Search. An item can be in this state when Items.push has been called for an item of this name that did not exist previously.", + "API has accepted the up-to-date data of this item." + ], "type": "string" }, "type": "array" @@ -6981,10046 +6451,202 @@ }, "type": "object" }, - "ContextualAddOnMarkup": { - "description": "The markup for developers to specify the contents of a contextual AddOn. A contextual AddOn is triggered in context of an email. For that email, there can be N items that are associated with the email (e.g. contacts, sales lead, meeting information). Each item is represented as a \"card\". A card has two views, collapsed and detailed. If there are more than 1 card, the cards are show as a list of collapsed views. The end user can expand into the detailed view for each of those cards. In the detailed view, developers have the freedom to use a variety of \"widgets\" to construct it. The model here is to restrict (make consistent for end users) the navigation of the N cards but providing developers the freedom to build the detailed view that can best represent their use case/content. Go http://go/aoig-widgets1 to see the mocks. Post v1, we plan to support new AddOn use cases that will require different and separate 'templates'. For example, a compose triggered AddOn which will support a new set of use cases with different user interaction patterns. As a result, we will likely need a very different template than this one.", - "id": "ContextualAddOnMarkup", + "PollItemsResponse": { + "id": "PollItemsResponse", "properties": { - "cards": { - "description": "A card must contain a header and at least 1 section.", + "items": { + "description": "Set of items from the queue available for connector to process. These items have the following subset of fields populated: version metadata.hash structured_data.hash content.hash payload status queue", "items": { - "$ref": "Card" + "$ref": "Item" }, "type": "array" - }, - "toolbar": { - "$ref": "Toolbar", - "description": "Deprecated." } }, "type": "object" }, - "CseInfo": { - "description": "Information needed for Client-side Encryption.", - "id": "CseInfo", + "Principal": { + "description": "Reference to a user, group, or domain.", + "id": "Principal", "properties": { - "cseDomain": { - "description": "CSE domain name claimed by the meeting owner's company. This field is expected to be used for display purposes only, i.e., \"Extra encryption added by $cse_domain\". It can differ from the `cse_domain` as defined elsewhere on the User, in the case of cross-domain meetings.", + "groupResourceName": { + "description": "This principal is a group identified using an external identity. The name field must specify the group resource name with this format: identitysources/{source_id}/groups/{ID}", "type": "string" }, - "wrappedKey": { - "description": "The wrapped CSE key used by this conference.", - "format": "byte", - "type": "string" - } - }, - "type": "object" - }, - "CustomEmojiMetadata": { - "id": "CustomEmojiMetadata", - "properties": { - "customEmoji": { - "$ref": "AppsDynamiteSharedCustomEmoji" - } - }, - "type": "object" - }, - "CustomFunctionReturnValueMarkup": { - "description": "The result of a user running a custom function.", - "id": "CustomFunctionReturnValueMarkup", - "properties": { - "errorMessage": { - "description": "The error message to show to the user if something went wrong.", - "type": "string" + "gsuitePrincipal": { + "$ref": "GSuitePrincipal", + "description": "This principal is a Google Workspace user, group or domain." }, - "value": { - "description": "The value that resulted from running the custom function.", - "type": "any" + "userResourceName": { + "description": "This principal is a user identified using an external identity. The name field must specify the user resource name with this format: identitysources/{source_id}/users/{ID}", + "type": "string" } }, "type": "object" }, - "CustomerId": { - "description": "Represents a GSuite customer ID. Obfuscated with CustomerIdObfuscator.", - "id": "CustomerId", + "ProcessingError": { + "id": "ProcessingError", "properties": { - "customerId": { - "type": "string" - } - }, - "type": "object" - }, - "CustomerIndexStats": { - "description": "Aggregation of items by status code as of the specified date.", - "id": "CustomerIndexStats", - "properties": { - "date": { - "$ref": "Date", - "description": "The date for which statistics were calculated." - }, - "itemCountByStatus": { - "description": "Number of items aggregrated by status code.", - "items": { - "$ref": "ItemCountByStatus" - }, - "type": "array" - } - }, - "type": "object" - }, - "CustomerQueryStats": { - "id": "CustomerQueryStats", - "properties": { - "date": { - "$ref": "Date", - "description": "The date for which query stats were calculated. Stats calculated on the next day close to midnight are returned." - }, - "queryCountByStatus": { - "items": { - "$ref": "QueryCountByStatus" - }, - "type": "array" - } - }, - "type": "object" - }, - "CustomerSearchApplicationStats": { - "description": "Search application stats for a customer for the given date.", - "id": "CustomerSearchApplicationStats", - "properties": { - "count": { - "description": "The count of search applications for the date.", - "format": "int64", - "type": "string" - }, - "date": { - "$ref": "Date", - "description": "The date for which search application stats were calculated." - } - }, - "type": "object" - }, - "CustomerSessionStats": { - "id": "CustomerSessionStats", - "properties": { - "date": { - "$ref": "Date", - "description": "The date for which session stats were calculated. Stats are calculated on the following day, close to midnight PST, and then returned." - }, - "searchSessionsCount": { - "description": "The count of search sessions on the day", - "format": "int64", - "type": "string" - } - }, - "type": "object" - }, - "CustomerSettings": { - "description": "Represents settings at a customer level.", - "id": "CustomerSettings", - "properties": { - "auditLoggingSettings": { - "$ref": "AuditLoggingSettings", - "description": "Audit Logging settings for the customer. If update_mask is empty then this field will be updated based on UpdateCustomerSettings request." - }, - "vpcSettings": { - "$ref": "VPCSettings", - "description": "VPC SC settings for the customer. If update_mask is empty then this field will be updated based on UpdateCustomerSettings request." - } - }, - "type": "object" - }, - "CustomerUserStats": { - "id": "CustomerUserStats", - "properties": { - "date": { - "$ref": "Date", - "description": "The date for which session stats were calculated. Stats calculated on the next day close to midnight are returned." - }, - "oneDayActiveUsersCount": { - "description": "The count of unique active users in the past one day", - "format": "int64", - "type": "string" - }, - "sevenDaysActiveUsersCount": { - "description": "The count of unique active users in the past seven days", - "format": "int64", - "type": "string" - }, - "thirtyDaysActiveUsersCount": { - "description": "The count of unique active users in the past thirty days", - "format": "int64", - "type": "string" - } - }, - "type": "object" - }, - "DataLossPreventionMetadata": { - "description": "Annotation metadata for Data Loss Prevention that pertains to DLP violation on message send or edit events. It is used for client -\u003e BE communication and other downstream process in BE (e.g. storage and audit logging), and it should never be returned to the client.", - "id": "DataLossPreventionMetadata", - "properties": { - "dlpMessageScanRecord": { - "$ref": "DlpMessageScanRecord", - "description": "The scan record contains the action taken on the message send as well as scan the summary for the message contents and the attachment, if applicable." - }, - "dlpScanSummary": { - "$ref": "DlpScanSummary", - "description": "Deprecated. To be replaced by DLP scan record. The DLP scan summary that should only be set after the message is scanned in the Chat backend." - }, - "warnAcknowledged": { - "description": "Flag set by client on message resend to bypass WARN violation.", - "type": "boolean" - } - }, - "type": "object" - }, - "DataSource": { - "description": "Datasource is a logical namespace for items to be indexed. All items must belong to a datasource. This is the prerequisite before items can be indexed into Cloud Search.", - "id": "DataSource", - "properties": { - "disableModifications": { - "description": "If true, sets the datasource to read-only mode. In read-only mode, the Indexing API rejects any requests to index or delete items in this source. Enabling read-only mode does not stop the processing of previously accepted data.", - "type": "boolean" - }, - "disableServing": { - "description": "Disable serving any search or assist results.", - "type": "boolean" - }, - "displayName": { - "description": "Required. Display name of the datasource The maximum length is 300 characters.", - "type": "string" - }, - "indexingServiceAccounts": { - "description": "List of service accounts that have indexing access.", - "items": { - "type": "string" - }, - "type": "array" - }, - "itemsVisibility": { - "description": "This field restricts visibility to items at the datasource level. Items within the datasource are restricted to the union of users and groups included in this field. Note that, this does not ensure access to a specific item, as users need to have ACL permissions on the contained items. This ensures a high level access on the entire datasource, and that the individual items are not shared outside this visibility.", - "items": { - "$ref": "GSuitePrincipal" - }, - "type": "array" - }, - "name": { - "description": "The name of the datasource resource. Format: datasources/{source_id}. The name is ignored when creating a datasource.", - "type": "string" - }, - "operationIds": { - "description": "IDs of the Long Running Operations (LROs) currently running for this schema.", - "items": { - "type": "string" - }, - "type": "array" - }, - "returnThumbnailUrls": { - "description": "Can a user request to get thumbnail URI for Items indexed in this data source.", - "type": "boolean" - }, - "shortName": { - "description": "A short name or alias for the source. This value will be used to match the 'source' operator. For example, if the short name is *\u003cvalue\u003e* then queries like *source:\u003cvalue\u003e* will only return results for this source. The value must be unique across all datasources. The value must only contain alphanumeric characters (a-zA-Z0-9). The value cannot start with 'google' and cannot be one of the following: mail, gmail, docs, drive, groups, sites, calendar, hangouts, gplus, keep, people, teams. Its maximum length is 32 characters.", - "type": "string" - } - }, - "type": "object" - }, - "DataSourceIndexStats": { - "description": "Aggregation of items by status code as of the specified date.", - "id": "DataSourceIndexStats", - "properties": { - "date": { - "$ref": "Date", - "description": "The date for which index stats were calculated. If the date of request is not the current date then stats calculated on the next day are returned. Stats are calculated close to mid night in this case. If date of request is current date, then real time stats are returned." - }, - "itemCountByStatus": { - "description": "Number of items aggregrated by status code.", - "items": { - "$ref": "ItemCountByStatus" - }, - "type": "array" - } - }, - "type": "object" - }, - "DataSourceRestriction": { - "description": "Restriction on Datasource.", - "id": "DataSourceRestriction", - "properties": { - "filterOptions": { - "description": "Filter options restricting the results. If multiple filters are present, they are grouped by object type before joining. Filters with the same object type are joined conjunctively, then the resulting expressions are joined disjunctively. The maximum number of elements is 20. NOTE: Suggest API supports only few filters at the moment: \"objecttype\", \"type\" and \"mimetype\". For now, schema specific filters cannot be used to filter suggestions.", - "items": { - "$ref": "FilterOptions" - }, - "type": "array" - }, - "source": { - "$ref": "Source", - "description": "The source of restriction." - } - }, - "type": "object" - }, - "Date": { - "description": "Represents a whole calendar date, for example a date of birth. The time of day and time zone are either specified elsewhere or are not significant. The date is relative to the [Proleptic Gregorian Calendar](https://en.wikipedia.org/wiki/Proleptic_Gregorian_calendar). The date must be a valid calendar date between the year 1 and 9999.", - "id": "Date", - "properties": { - "day": { - "description": "Day of month. Must be from 1 to 31 and valid for the year and month.", - "format": "int32", - "type": "integer" - }, - "month": { - "description": "Month of date. Must be from 1 to 12.", - "format": "int32", - "type": "integer" - }, - "year": { - "description": "Year of date. Must be from 1 to 9999.", - "format": "int32", - "type": "integer" - } - }, - "type": "object" - }, - "DateOperatorOptions": { - "description": "Optional. Provides a search operator for date properties. Search operators let users restrict the query to specific fields relevant to the type of item being searched.", - "id": "DateOperatorOptions", - "properties": { - "greaterThanOperatorName": { - "description": "Indicates the operator name required in the query in order to isolate the date property using the greater-than operator. For example, if greaterThanOperatorName is *closedafter* and the property's name is *closeDate*, then queries like *closedafter:\u003cvalue\u003e* show results only where the value of the property named *closeDate* is later than *\u003cvalue\u003e*. The operator name can only contain lowercase letters (a-z). The maximum length is 32 characters.", - "type": "string" - }, - "lessThanOperatorName": { - "description": "Indicates the operator name required in the query in order to isolate the date property using the less-than operator. For example, if lessThanOperatorName is *closedbefore* and the property's name is *closeDate*, then queries like *closedbefore:\u003cvalue\u003e* show results only where the value of the property named *closeDate* is earlier than *\u003cvalue\u003e*. The operator name can only contain lowercase letters (a-z). The maximum length is 32 characters.", - "type": "string" - }, - "operatorName": { - "description": "Indicates the actual string required in the query in order to isolate the date property. For example, suppose an issue tracking schema object has a property named *closeDate* that specifies an operator with an operatorName of *closedon*. For searches on that data, queries like *closedon:\u003cvalue\u003e* show results only where the value of the *closeDate* property matches *\u003cvalue\u003e*. By contrast, a search that uses the same *\u003cvalue\u003e* without an operator returns all items where *\u003cvalue\u003e* matches the value of any String properties or text within the content field for the indexed datasource. The operator name can only contain lowercase letters (a-z). The maximum length is 32 characters.", - "type": "string" - } - }, - "type": "object" - }, - "DatePropertyOptions": { - "description": "The options for date properties.", - "id": "DatePropertyOptions", - "properties": { - "operatorOptions": { - "$ref": "DateOperatorOptions", - "description": "If set, describes how the date should be used as a search operator." - } - }, - "type": "object" - }, - "DateTimePicker": { - "id": "DateTimePicker", - "properties": { - "label": { - "description": "The label for the field, which is displayed to the user.", - "type": "string" - }, - "name": { - "description": "The name of the text field which is used in FormInput, and uniquely identifies this input.", - "type": "string" - }, - "onChange": { - "$ref": "FormAction", - "description": "Triggered when the user clicks on the Save, or Clear button from the date / time picker dialog. Will only be triggered if the value changed as a result of the Save / Clear operation." - }, - "timezoneOffsetDate": { - "description": "The number representing the time-zone offset from UTC, in minutes. If set, the value_ms_epoch will be displayed in the specified time zone. If not set, it will use the user's timezone setting in client side.", - "format": "int32", - "type": "integer" - }, - "type": { - "description": "The type of the DateTimePicker.", - "enum": [ - "UNSPECIFIED_TYPE", - "DATE_AND_TIME", - "DATE_ONLY", - "TIME_ONLY" - ], - "enumDescriptions": [ - "", - "", - "", - "" - ], - "type": "string" - }, - "valueMsEpoch": { - "description": "The value to display which can be the default value before user input or previous user input. It is represented in milliseconds (Epoch time). - For DATE_AND_TIME type, the full epoch value is used. - For DATE_ONLY type, only date of the epoch time is used. - For TIME_ONLY type, only time of the epoch time is used. For example, you can set epoch time to 3 * 60 * 60 * 1000 to represent 3am.", - "format": "int64", - "type": "string" - } - }, - "type": "object" - }, - "DateValues": { - "description": "List of date values.", - "id": "DateValues", - "properties": { - "values": { - "items": { - "$ref": "Date" - }, - "type": "array" - } - }, - "type": "object" - }, - "DebugOptions": { - "description": "Shared request debug options for all cloudsearch RPC methods.", - "id": "DebugOptions", - "properties": { - "enableDebugging": { - "description": "If you are asked by Google to help with debugging, set this field. Otherwise, ignore this field.", - "type": "boolean" - } - }, - "type": "object" - }, - "DeepLinkData": { - "description": "Deep-linking data is used to construct a deep-link URI for an activity or frame's embed, such that on click, the user is taken to the right place in a mobile app. If the app is not installed, the user is taken to the app store. If not on mobile, an analogous web uri is used.", - "id": "DeepLinkData", - "properties": { - "appId": { - "description": "Application ID (or project ID) from Google API Console.", - "format": "int64", - "type": "string" - }, - "client": { - "description": "The data for a Google API Console client is entered by a developer during client registration and is stored in PackagingService.", - "items": { - "$ref": "PackagingServiceClient" - }, - "type": "array" - }, - "deepLinkId": { - "description": "The ID for non-URL content. Embeds may either have no analogous web presence or prefer a native mobile experience if supported. In the case of no web presence, instead of setting the \"url\" field of an embed, such developers will set this field and other content fields, e.g. thumbnail, title, description. If set, this field is used to construct the deep-link URI. Note that the native experience is preferred over the web link and the web link is used as a fallback.", - "type": "string" - }, - "url": { - "description": "Analogous web presence. Used as desktop fallback or when no native link data is present.", - "type": "string" - } - }, - "type": "object" - }, - "DeleteMetadata": { - "description": "A message delete in Dynamite inserts a Babel-only item containing this field. This is only inserted for messages before the source-of-truth flip. See go/hsc-message-deletions for more details.", - "id": "DeleteMetadata", - "properties": {}, - "type": "object" - }, - "DeleteQueueItemsRequest": { - "id": "DeleteQueueItemsRequest", - "properties": { - "connectorName": { - "description": "The name of connector making this call. Format: datasources/{source_id}/connectors/{ID}", - "type": "string" - }, - "debugOptions": { - "$ref": "DebugOptions", - "description": "Common debug options." - }, - "queue": { - "description": "The name of a queue to delete items from.", - "type": "string" - } - }, - "type": "object" - }, - "DeliveryMedium": { - "id": "DeliveryMedium", - "properties": { - "mediumType": { - "description": "Describes the medium the cent was sent/received. For example, if I receive an SMS via GV, the medium_type will be GV.", - "enum": [ - "UNKNOWN_MEDIUM", - "BABEL_MEDIUM", - "GOOGLE_VOICE_MEDIUM", - "LOCAL_SMS_MEDIUM" - ], - "enumDescriptions": [ - "", - "", - "", - "" - ], - "type": "string" - }, - "selfPhone": { - "$ref": "VoicePhoneNumber", - "description": "In the case of multiple GV/native numbers, this defines the exact number to send from. It is used to differentiate mediums that have the same type, but different addresses (e.g. two android phones)." - } - }, - "type": "object" - }, - "DisplayedProperty": { - "description": "A reference to a top-level property within the object that should be displayed in search results. The values of the chosen properties is displayed in the search results along with the display label for that property if one is specified. If a display label is not specified, only the values is shown.", - "id": "DisplayedProperty", - "properties": { - "propertyName": { - "description": "The name of the top-level property as defined in a property definition for the object. If the name is not a defined property in the schema, an error is given when attempting to update the schema.", - "type": "string" - } - }, - "type": "object" - }, - "Divider": { - "id": "Divider", - "properties": {}, - "type": "object" - }, - "DlpAction": { - "id": "DlpAction", - "properties": { - "actionType": { - "enum": [ - "NO_ACTION", - "BLOCK", - "AUDIT_ONLY", - "WARN" - ], - "enumDescriptions": [ - "LINT.IfChange", - "", - "", - "LINT.ThenChange(//depot/google3/java/com/google/apps/dynamite/v1/external/dlp/ApplicableDlpActionEvaluator.java)" - ], - "type": "string" - }, - "unsafeHtmlMessageBody": { - "description": "The custom error message defined by the customer administrator.", - "type": "string" - } - }, - "type": "object" - }, - "DlpMessageScanRecord": { - "description": "A summary of a DLP scan. This is a combination summary that contains both scan on message and scan on attachments if any.", - "id": "DlpMessageScanRecord", - "properties": { - "attachmentScanSummary": { - "$ref": "DlpScanSummary", - "description": "Summaries of the attachment scan if any." - }, - "dlpAction": { - "$ref": "DlpAction", - "description": "The applied action." - }, - "messageScanSummary": { - "$ref": "DlpScanSummary", - "description": "Summaries of the message scan." - }, - "scanOutcome": { - "description": "The DLP scan outcome for the message.", - "enum": [ - "SCAN_UNKNOWN_OUTCOME", - "SCAN_SUCCEEDED_NO_VIOLATION", - "SCAN_SUCCEEDED_BLOCK", - "SCAN_SUCCEEDED_WARN", - "SCAN_SUCCEEDED_AUDIT_ONLY", - "SCAN_FAILURE_EXCEPTION", - "SCAN_FAILURE_RULE_FETCH_FAILED", - "SCAN_FAILURE_TIMEOUT", - "SCAN_FAILURE_ALL_RULES_FAILED", - "SCAN_FAILURE_ILLEGAL_STATE_FOR_ATTACHMENTS", - "SCAN_SKIPPED_EXPERIMENT_DISABLED", - "SCAN_SKIPPED_CONSUMER", - "SCAN_SKIPPED_NON_HUMAN_USER", - "SCAN_SKIPPED_NO_MESSAGE", - "SCAN_SKIPPED_USER_ACKNOWLEDGED_WARNING", - "SCAN_SKIPPED_MESSAGE_FROM_UNSUPPORTED_ORIGIN", - "SCAN_SKIPPED_MESSAGE_SENT_DURING_SPACE_MIGRATION", - "SCAN_RULE_EVALUATION_SKIPPED_NO_RULES_FOUND", - "SCAN_RULE_EVALUATION_SKIPPED_NO_APPLICABLE_RULES_FOR_ACTION_PARAMS", - "SCAN_RULE_EVALUATION_SKIPPED_NO_APPLICABLE_RULES_FOR_TRIGGER", - "SCAN_RULE_EVALUATION_SKIPPED_NO_APPLICABLE_RULES", - "SCAN_RULE_EVALUATION_SKIPPED_CHANGELING_PERMANENT_ERROR", - "SCAN_RULE_EVALUATION_SKIPPED_CHANGELING_EMPTY_RESPONSE", - "SCAN_RULE_EVALUATION_SKIPPED_UNSUPPORTED_FILE_TYPE", - "SCAN_SUCCEEDED_WITH_FAILURES_NO_VIOLATION", - "SCAN_SUCCEEDED_WITH_FAILURES_BLOCK", - "SCAN_SUCCEEDED_WITH_FAILURES_WARN", - "SCAN_SUCCEEDED_WITH_FAILURES_AUDIT_ONLY" - ], - "enumDescriptions": [ - "", - "This means no violation is detected on the given message/attachment.", - "Violation is detected. The message/attachment will be blocked (or deleted if this happens in failure recovery), the user will be warned, and the violation will be logged to BIP.", - "Violation is detected. The user will be warned, and the violation will be logged to BIP.", - "Violation is detected and will be logged to BIP (no user-facing action performed).", - "Rule fetch and evaluation were attempted but an exception occurred.", - "Rule fetch was attempted but failed, so rule evaluation could not be performed.", - "Rule fetch and evaluation were attempted but the scanning timed out.", - "Rule fetch completed and evaluation were attempted, but all of the rules failed to be evaluated.", - "An IllegalStateException is thrown when executing DLP on attachments. This could happen if the space row is missing.", - "Rule fetch and evaluation is skipped because DLP is not enabled for the user.", - "Rule fetch and evaluation are skipped because the user sending message is consumer.", - "Rule fetch and evaluation are skipped because the user sending message is a non-human user (i.e. a bot).", - "Rule fetch and evaluation are skipped because there is no message to scan. Deprecated: this should not happen since there must be message or attachment for DLP scan.", - "Rule fetch and evaluation are skipped because the user has acknowledged the warning on the message that triggered the Warn violation and sent the message anyway.", - "Scanning was skipped because the message originated from Interop or Babel.", - "Scanning was skipped because the message was sent while the space is in migration mode. See go/migration-mode for details.", - "Rule fetch happened, but rule evaluation is skipped because no rules were found.", - "Rule fetch happened, but rule evaluation is skipped because none of the rules are applicable to the given action params. Deprecated. Use SCAN_RULE_EVALUATION_SKIPPED_NO_APPLICABLE_RULES", - "Rule fetch happened, but rule evaluation is skipped because none of the rules are applicable to the given trigger. Deprecated. Use SCAN_RULE_EVALUATION_SKIPPED_NO_APPLICABLE_RULES", - "Rule fetch happened, but rule evaluation is skipped because none of the rules are applicable.", - "Rule fetch happened, but rule evaluation is skipped because Changeling returned permanent failure while converting the attachment to text.", - "Rule fetch happened, but rule evaluation is skipped because Changeling returned an empty response while converting the attachment to text.", - "Rule fetch happened, but rule evaluation is skipped because file type is unsupported.", - "Rules were fetched but some evaluations failed. No violation was found in the rules that were successfully evaluated.", - "Rules were fetched but some evaluations failed. A blocking violation was found in the rules that were successfully evaluated. The message/attachment will be blocked, the user will be notified, and the violation will be logged to BIP. A blocking violation takes precedence over all other violation types.", - "Rules were fetched but some evaluations failed. A warn violation was found in the rules that were successfully evaluated. The user will be warned, and the violation will be logged to BIP.", - "Rules were fetched but some evaluations failed. An audit-only violation was found in the rules that were successfully evaluated. The violation will be logged to BIP (no user-facing action performed)." - ], - "type": "string" - } - }, - "type": "object" - }, - "DlpScanSummary": { - "description": "A summary of a DLP scan event. This is a summary and should contain the minimum amount of data required to identify and process DLP scans. It is written to Starcast and encoded \u0026 returned to the client on attachment upload.", - "id": "DlpScanSummary", - "properties": { - "dlpAction": { - "$ref": "DlpAction" - }, - "scanId": { - "description": "The scan ID of the corresponding {@link DlpViolationScanRecord} in the {@link EphemeralDlpScans} Spanner table. This can be used to fetch additional details about the scan, e.g. for audit logging.", - "type": "string" - }, - "scanNotApplicableForContext": { - "description": "Indicates that was no attempt to scan a message or attachment because it was not applicable in the given context (e.g. atomic mutuate). If this is true, scan_outcome should not be set. This flag is used to identify messages that DLP did not attempt to scan for monitoring scan coverage. Contents that DLP attempted to scan but skipped can be identified by DlpScanOutcome.SCAN_SKIPPED_* reasons. DEPRECATED: The prober can determine this from the context.", - "type": "boolean" - }, - "scanOutcome": { - "description": "The outcome of a DLP Scan. If this is set, scan_not_applicable_for_context should not be true.", - "enum": [ - "SCAN_UNKNOWN_OUTCOME", - "SCAN_SUCCEEDED_NO_VIOLATION", - "SCAN_SUCCEEDED_BLOCK", - "SCAN_SUCCEEDED_WARN", - "SCAN_SUCCEEDED_AUDIT_ONLY", - "SCAN_FAILURE_EXCEPTION", - "SCAN_FAILURE_RULE_FETCH_FAILED", - "SCAN_FAILURE_TIMEOUT", - "SCAN_FAILURE_ALL_RULES_FAILED", - "SCAN_FAILURE_ILLEGAL_STATE_FOR_ATTACHMENTS", - "SCAN_SKIPPED_EXPERIMENT_DISABLED", - "SCAN_SKIPPED_CONSUMER", - "SCAN_SKIPPED_NON_HUMAN_USER", - "SCAN_SKIPPED_NO_MESSAGE", - "SCAN_SKIPPED_USER_ACKNOWLEDGED_WARNING", - "SCAN_SKIPPED_MESSAGE_FROM_UNSUPPORTED_ORIGIN", - "SCAN_SKIPPED_MESSAGE_SENT_DURING_SPACE_MIGRATION", - "SCAN_RULE_EVALUATION_SKIPPED_NO_RULES_FOUND", - "SCAN_RULE_EVALUATION_SKIPPED_NO_APPLICABLE_RULES_FOR_ACTION_PARAMS", - "SCAN_RULE_EVALUATION_SKIPPED_NO_APPLICABLE_RULES_FOR_TRIGGER", - "SCAN_RULE_EVALUATION_SKIPPED_NO_APPLICABLE_RULES", - "SCAN_RULE_EVALUATION_SKIPPED_CHANGELING_PERMANENT_ERROR", - "SCAN_RULE_EVALUATION_SKIPPED_CHANGELING_EMPTY_RESPONSE", - "SCAN_RULE_EVALUATION_SKIPPED_UNSUPPORTED_FILE_TYPE", - "SCAN_SUCCEEDED_WITH_FAILURES_NO_VIOLATION", - "SCAN_SUCCEEDED_WITH_FAILURES_BLOCK", - "SCAN_SUCCEEDED_WITH_FAILURES_WARN", - "SCAN_SUCCEEDED_WITH_FAILURES_AUDIT_ONLY" - ], - "enumDescriptions": [ - "", - "This means no violation is detected on the given message/attachment.", - "Violation is detected. The message/attachment will be blocked (or deleted if this happens in failure recovery), the user will be warned, and the violation will be logged to BIP.", - "Violation is detected. The user will be warned, and the violation will be logged to BIP.", - "Violation is detected and will be logged to BIP (no user-facing action performed).", - "Rule fetch and evaluation were attempted but an exception occurred.", - "Rule fetch was attempted but failed, so rule evaluation could not be performed.", - "Rule fetch and evaluation were attempted but the scanning timed out.", - "Rule fetch completed and evaluation were attempted, but all of the rules failed to be evaluated.", - "An IllegalStateException is thrown when executing DLP on attachments. This could happen if the space row is missing.", - "Rule fetch and evaluation is skipped because DLP is not enabled for the user.", - "Rule fetch and evaluation are skipped because the user sending message is consumer.", - "Rule fetch and evaluation are skipped because the user sending message is a non-human user (i.e. a bot).", - "Rule fetch and evaluation are skipped because there is no message to scan. Deprecated: this should not happen since there must be message or attachment for DLP scan.", - "Rule fetch and evaluation are skipped because the user has acknowledged the warning on the message that triggered the Warn violation and sent the message anyway.", - "Scanning was skipped because the message originated from Interop or Babel.", - "Scanning was skipped because the message was sent while the space is in migration mode. See go/migration-mode for details.", - "Rule fetch happened, but rule evaluation is skipped because no rules were found.", - "Rule fetch happened, but rule evaluation is skipped because none of the rules are applicable to the given action params. Deprecated. Use SCAN_RULE_EVALUATION_SKIPPED_NO_APPLICABLE_RULES", - "Rule fetch happened, but rule evaluation is skipped because none of the rules are applicable to the given trigger. Deprecated. Use SCAN_RULE_EVALUATION_SKIPPED_NO_APPLICABLE_RULES", - "Rule fetch happened, but rule evaluation is skipped because none of the rules are applicable.", - "Rule fetch happened, but rule evaluation is skipped because Changeling returned permanent failure while converting the attachment to text.", - "Rule fetch happened, but rule evaluation is skipped because Changeling returned an empty response while converting the attachment to text.", - "Rule fetch happened, but rule evaluation is skipped because file type is unsupported.", - "Rules were fetched but some evaluations failed. No violation was found in the rules that were successfully evaluated.", - "Rules were fetched but some evaluations failed. A blocking violation was found in the rules that were successfully evaluated. The message/attachment will be blocked, the user will be notified, and the violation will be logged to BIP. A blocking violation takes precedence over all other violation types.", - "Rules were fetched but some evaluations failed. A warn violation was found in the rules that were successfully evaluated. The user will be warned, and the violation will be logged to BIP.", - "Rules were fetched but some evaluations failed. An audit-only violation was found in the rules that were successfully evaluated. The violation will be logged to BIP (no user-facing action performed)." - ], - "type": "string" - }, - "scanTrigger": { - "description": "The event that triggered the scan. This corresponds to the rule trigger configured in admin console and maps to the different things that can be scanned.", - "enum": [ - "UNKNOWN_TRIGGER_TYPE", - "MESSAGE_SENT", - "ATTACHMENT_UPLOADED" - ], - "enumDescriptions": [ - "LINT.IfChange", - "", - "LINT.ThenChange(//depot/google3/java/com/google/apps/dynamite/v1/external/dlp/DlpTriggerInfo.java)" - ], - "type": "string" - } - }, - "type": "object" - }, - "DmId": { - "id": "DmId", - "properties": { - "dmId": { - "description": "Unique server assigned Id, per Direct Message Space.", - "type": "string" - } - }, - "type": "object" - }, - "DocumentInfo": { - "description": "Information on a document attached to an active conference.", - "id": "DocumentInfo", - "properties": { - "whiteboardInfo": { - "$ref": "WhiteboardInfo", - "description": "A whiteboard document." - } - }, - "type": "object" - }, - "DoubleOperatorOptions": { - "description": "Used to provide a search operator for double properties. This is optional. Search operators let users restrict the query to specific fields relevant to the type of item being searched.", - "id": "DoubleOperatorOptions", - "properties": { - "operatorName": { - "description": "Indicates the operator name required in the query in order to use the double property in sorting or as a facet. The operator name can only contain lowercase letters (a-z). The maximum length is 32 characters.", - "type": "string" - } - }, - "type": "object" - }, - "DoublePropertyOptions": { - "description": "The options for double properties.", - "id": "DoublePropertyOptions", - "properties": { - "operatorOptions": { - "$ref": "DoubleOperatorOptions", - "description": "If set, describes how the double should be used as a search operator." - } - }, - "type": "object" - }, - "DoubleValues": { - "description": "List of double values.", - "id": "DoubleValues", - "properties": { - "values": { - "items": { - "format": "double", - "type": "number" - }, - "type": "array" - } - }, - "type": "object" - }, - "DriveClientActionMarkup": { - "id": "DriveClientActionMarkup", - "properties": { - "requestFileScope": { - "$ref": "RequestFileScope" - } - }, - "type": "object" - }, - "DriveFollowUpRestrict": { - "description": "Drive follow-up search restricts (e.g. \"followup:suggestions\").", - "id": "DriveFollowUpRestrict", - "properties": { - "type": { - "enum": [ - "UNSPECIFIED", - "FOLLOWUP_SUGGESTIONS", - "FOLLOWUP_ACTION_ITEMS" - ], - "enumDescriptions": [ - "", - "", - "" - ], - "type": "string" - } - }, - "type": "object" - }, - "DriveLocationRestrict": { - "description": "Drive location search restricts (e.g. \"is:starred\").", - "id": "DriveLocationRestrict", - "properties": { - "type": { - "enum": [ - "UNSPECIFIED", - "TRASHED", - "STARRED" - ], - "enumDescriptions": [ - "", - "", - "" - ], - "type": "string" - } - }, - "type": "object" - }, - "DriveMetadata": { - "description": "Annotation metadata for Drive artifacts.", - "id": "DriveMetadata", - "properties": { - "aclFixRequest": { - "$ref": "AclFixRequest" - }, - "aclFixStatus": { - "$ref": "AclFixStatus" - }, - "canEdit": { - "description": "Can the current user edit this resource", - "type": "boolean" - }, - "canShare": { - "description": "Can the current user share this resource", - "type": "boolean" - }, - "canView": { - "description": "Can the current user view this resource", - "type": "boolean" - }, - "driveAction": { - "description": "DriveAction for organizing this file in Drive. If the user does not have access to the Drive file, the value will be DriveAction.DRIVE_ACTION_UNSPECIFIED. This field is only set when part of a FileResult in a ListFilesResponse.", - "enum": [ - "DRIVE_ACTION_UNSPECIFIED", - "ADD_TO_DRIVE", - "ORGANIZE", - "ADD_SHORTCUT", - "ADD_ANOTHER_SHORTCUT" - ], - "enumDescriptions": [ - "No organize action should be shown.", - "Show \"Add to Drive\" button, for adding file that doesn't exist in Drive to Drive. Note that deleted Drive files that still exist (i.e. in your Trash) will still be ORGANIZE (this is consistent with Gmail Drive attachments).", - "Show \"Move\" button, for organizing a Drive file the user has permission to move.", - "Show \"Add shortcut\" button, for adding a shortcut to a Drive file the user does not have permission to move.", - "Show \"Add another shortcut\" button, for Drive files the user has already created a shortcut to." - ], - "type": "string" - }, - "driveState": { - "enum": [ - "DRIVE_STATE_UNSPECIFIED", - "IN_MY_DRIVE", - "IN_TEAM_DRIVE", - "SHARED_IN_DRIVE", - "NOT_IN_DRIVE" - ], - "enumDescriptions": [ - "Default value", - "File in My Drive", - "File in Team Drive", - "File in someone else's Drive, but is shared with the current user", - "File not in drive" - ], - "type": "string" - }, - "embedUrl": { - "$ref": "TrustedResourceUrlProto", - "description": "Output only. Trusted Resource URL for drive file embedding.", - "readOnly": true - }, - "encryptedDocId": { - "description": "Indicates whether the Drive link contains an encrypted doc ID. If true, Dynamite should not attempt to query the doc ID in Drive Service. See go/docid-encryption for details.", - "type": "boolean" - }, - "encryptedResourceKey": { - "description": "This is deprecated and unneeded. TODO (b/182479059): Remove this.", - "type": "string" - }, - "externalMimetype": { - "description": "External mimetype of the Drive Resource (Useful for creating Drive URL) See: http://b/35219462", - "type": "string" - }, - "id": { - "description": "Drive resource ID of the artifact.", - "type": "string" - }, - "isDownloadRestricted": { - "description": "Deprecated. Whether the setting to restrict downloads is enabled for this file. This was previously used to determine whether to hide the download and print buttons in the UI, but is no longer used by clients, because Projector now independently queries Drive to ensure that we have the most up-to-date value.", - "type": "boolean" - }, - "isOwner": { - "description": "If the current user is the Drive file's owner. The field is currently only set for Annotations for the ListFiles action (as opposed to fetching Topics/Messages with Drive annotations).", - "type": "boolean" - }, - "legacyUploadMetadata": { - "$ref": "LegacyUploadMetadata", - "description": "Only present if this DriveMetadata is converted from an UploadMetadata." - }, - "mimetype": { - "description": "Mimetype of the Drive Resource", - "type": "string" - }, - "organizationDisplayName": { - "description": "The display name of the organization owning the Drive item.", - "type": "string" - }, - "shortcutAuthorizedItemId": { - "$ref": "AuthorizedItemId", - "description": "Shortcut ID of this drive file in the shared drive, which is associated with a named room this file was shared in. Shortcuts will not be created for DMs or unnamed rooms. This is populated after the DriveMetadata is migrated to shared drive. go/chat-shared-drive-uploads." - }, - "shouldNotRender": { - "description": "If this field is set to true, server should still contact external backends to get metadata for search but clients should not render this chip.", - "type": "boolean" - }, - "thumbnailHeight": { - "description": "Thumbnail image of the Drive Resource", - "format": "int32", - "type": "integer" - }, - "thumbnailUrl": { - "description": "Thumbnail image of the Drive Resource", - "type": "string" - }, - "thumbnailWidth": { - "description": "Thumbnail image of the Drive Resource", - "format": "int32", - "type": "integer" - }, - "title": { - "description": "Title of the Drive Resource", - "type": "string" - }, - "urlFragment": { - "description": "Url string fragment that generally indicates the specific location in the linked file. Example: #header=h.123abc456. If the fragment is not present this will not be present and therefore default to an empty string. The \"#\" will not be included.", - "type": "string" - }, - "wrappedResourceKey": { - "$ref": "WrappedResourceKey", - "description": "This is considered SPII and should not be logged." - } - }, - "type": "object" - }, - "DriveMimeTypeRestrict": { - "description": "Drive mime-type search restricts (e.g. \"type:pdf\").", - "id": "DriveMimeTypeRestrict", - "properties": { - "type": { - "enum": [ - "UNSPECIFIED", - "PDF", - "DOCUMENT", - "PRESENTATION", - "SPREADSHEET", - "FORM", - "DRAWING", - "SCRIPT", - "MAP", - "IMAGE", - "AUDIO", - "VIDEO", - "FOLDER", - "ARCHIVE", - "SITE" - ], - "enumDescriptions": [ - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "" - ], - "type": "string" - } - }, - "type": "object" - }, - "DriveTimeSpanRestrict": { - "description": "The time span search restrict (e.g. \"after:2017-09-11 before:2017-09-12\").", - "id": "DriveTimeSpanRestrict", - "properties": { - "type": { - "enum": [ - "UNSPECIFIED", - "TODAY", - "YESTERDAY", - "LAST_7_DAYS", - "LAST_30_DAYS", - "LAST_90_DAYS" - ], - "enumDescriptions": [ - "", - "", - "", - "", - "Not Enabled", - "Not Enabled" - ], - "type": "string" - } - }, - "type": "object" - }, - "DynamiteMessagesScoringInfo": { - "description": "This is the proto for holding message level scoring information. This data is used for logging in query-api server and for testing purposes.", - "id": "DynamiteMessagesScoringInfo", - "properties": { - "commonContactCount": { - "format": "int64", - "type": "string" - }, - "commonCountToContactListCountRatio": { - "format": "double", - "type": "number" - }, - "commonCountToMembershipCountRatio": { - "format": "double", - "type": "number" - }, - "creatorGaiaId": { - "format": "int64", - "type": "string" - }, - "creatorInSearcherContactList": { - "type": "boolean" - }, - "crowdingMultiplier": { - "format": "double", - "type": "number" - }, - "dasContactCount": { - "format": "int64", - "type": "string" - }, - "finalScore": { - "format": "double", - "type": "number" - }, - "freshnessScore": { - "format": "double", - "type": "number" - }, - "joinedSpaceAffinityScore": { - "format": "double", - "type": "number" - }, - "lastReadTimestampAgeInDays": { - "format": "double", - "type": "number" - }, - "messageAgeInDays": { - "format": "double", - "type": "number" - }, - "messageSenderAffinityScore": { - "format": "double", - "type": "number" - }, - "spaceId": { - "format": "int64", - "type": "string" - }, - "spaceMembershipCount": { - "format": "int64", - "type": "string" - }, - "topicalityScore": { - "format": "double", - "type": "number" - }, - "unjoinedSpaceAffinityScore": { - "format": "double", - "type": "number" - } - }, - "type": "object" - }, - "DynamiteSpacesScoringInfo": { - "description": "This is the proto for holding space level scoring information. This data is used for logging in query-api server and for testing purposes.", - "id": "DynamiteSpacesScoringInfo", - "properties": { - "affinityScore": { - "format": "double", - "type": "number" - }, - "commonContactCountAffinityScore": { - "format": "double", - "type": "number" - }, - "contactsIntersectionCount": { - "format": "double", - "type": "number" - }, - "finalScore": { - "format": "double", - "type": "number" - }, - "freshnessScore": { - "format": "double", - "type": "number" - }, - "joinedSpacesAffinityScore": { - "format": "double", - "type": "number" - }, - "lastMessagePostedTimestampSecs": { - "format": "int64", - "type": "string" - }, - "lastReadTimestampSecs": { - "format": "int64", - "type": "string" - }, - "memberCountScore": { - "format": "double", - "type": "number" - }, - "memberMetadataCount": { - "format": "double", - "type": "number" - }, - "messageScore": { - "format": "double", - "type": "number" - }, - "numAucContacts": { - "format": "int64", - "type": "string" - }, - "smallContactListAffinityScore": { - "format": "double", - "type": "number" - }, - "smallUnjoinedSpacesAffinityScore": { - "format": "double", - "type": "number" - }, - "spaceAgeInDays": { - "format": "double", - "type": "number" - }, - "spaceCreationTimestampSecs": { - "format": "int64", - "type": "string" - }, - "topicalityScore": { - "format": "double", - "type": "number" - } - }, - "type": "object" - }, - "EditMetadata": { - "description": "A message edit in Dynamite inserts a Babel-only item containing this field.", - "id": "EditMetadata", - "properties": {}, - "type": "object" - }, - "EditorClientActionMarkup": { - "id": "EditorClientActionMarkup", - "properties": { - "requestFileScopeForActiveDocument": { - "$ref": "RequestFileScopeForActiveDocument" - } - }, - "type": "object" - }, - "EmailAddress": { - "description": "A person's email address.", - "id": "EmailAddress", - "properties": { - "customType": { - "description": "If the value of type is custom, this property contains the custom type string.", - "type": "string" - }, - "emailAddress": { - "description": "The email address.", - "type": "string" - }, - "emailUrl": { - "description": "The URL to send email.", - "type": "string" - }, - "primary": { - "description": "Indicates if this is the user's primary email. Only one entry can be marked as primary.", - "type": "boolean" - }, - "type": { - "description": "The type of the email account. Acceptable values are: \"custom\", \"home\", \"other\", \"work\".", - "type": "string" - } - }, - "type": "object" - }, - "EmailOwnerProto": { - "description": "Represents a verified owner of the given email address. Note that a single address may have many owners, and a single user may own many addresses. (All lower-case, in display form -- see com.google.gaia.client.GaiaEmail)", - "id": "EmailOwnerProto", - "properties": { - "email": { - "type": "string" - } - }, - "type": "object" - }, - "EmbedClientItem": { - "description": "Represents an embedded object in an update. This is a wrapper class that can contain a single specific item proto in an extension field. Think of it as a base class like `Message` in Java. Each item proto must declare that it extends this proto: message ExampleObject { option (item_type) = EXAMPLE_OBJECT; extend EmbedClientItem { optional ExampleObject example_object = ; } } See go/es-embeds for details.", - "id": "EmbedClientItem", - "properties": { - "canonicalId": { - "description": "The canonical ID of the embed. If absent, the canonical ID is equal to the ID; if present, then the canonical ID represents an \"equivalence class\" of embeds which really refer to the same object. (For example, the URLs http://www.foo.com/ and http://foo.com/ refer to the same object) This field may be updated periodically by background processes.", - "type": "string" - }, - "deepLinkData": { - "$ref": "DeepLinkData", - "description": "Deep-linking data to take the user to the right place in a mobile app. This is only used for preview and attribution. Links that are specific to a given embed type should live on that specific embed's proto by using Link. See http://goto.google.com/mariana-design." - }, - "id": { - "description": "The ID of the embed. This corresponds to the schema.org ID, as represented in the ItemScope.id field.", - "type": "string" - }, - "provenance": { - "$ref": "Provenance", - "description": "The provenance of the embed, populated when the embed originated from a web fetch. The provenance captures information about the web page the embed had originated, like the URL that was retrieved and the retrieved URL's canonical form. This is useful in the case where the URL shared by the URL redirects (e.g., in the case of a shortened URL)." - }, - "renderId": { - "description": "The ID used to identify the embed during rendering. This field will match ID, if set, otherwise it will be the ID of the parent activity. This field is only populated on the server for client use and is not persisted to storage.", - "type": "string" - }, - "signature": { - "description": "Signature of the embed, used for verification.", - "type": "string" - }, - "transientData": { - "$ref": "TransientData", - "description": "Transient generic data that will not be saved on the server." - }, - "type": { - "description": "The first value in `type` determines which extension field will be set. When creating an EmbedClientItem, you only need to set the first (primary) type in this field. When the server receives the item, it will populate the full type list using the parent annotations in the ItemType enum.", - "items": { - "enum": [ - "UNKNOWN", - "ACTION_V2", - "ADD_ACTION_V2", - "AGGREGATE_RATING_V2", - "ARTICLE_V2", - "ASSESS_ACTION_V2", - "AUDIO_OBJECT_V2", - "BASIC_INTERACTION_V2", - "BLOG_POSTING_V2", - "BLOG_V2", - "BOOK_V2", - "BUY_ACTION_V2", - "CHECK_IN_ACTION_V2", - "CHECKIN_V2", - "COLLEXION_V2", - "COMMENT_ACTION_V2", - "COMMENT_V2", - "COMMUNICATE_ACTION_V2", - "CONSUME_ACTION_V2", - "CREATE_ACTION_V2", - "CREATIVE_WORK_V2", - "DISCOVER_ACTION_V2", - "DOCUMENT_OBJECT_V2", - "DRAWING_OBJECT_V2", - "DRIVE_OBJECT_V2", - "EMOTISHARE_V2", - "ENTRY_POINT_V2", - "EVENT_TIME_V2", - "EVENT_V2", - "FILE_OBJECT_V2", - "FIND_ACTION_V2", - "FINANCIAL_QUOTE_V2", - "FORM_OBJECT_V2", - "GEO_COORDINATES_V2", - "GOOGLE_OFFER_V2", - "HANGOUT_CHAT_MESSAGE", - "HANGOUT_QUOTE", - "HANGOUT_V2", - "HOA_PLUS_EVENT_V2", - "IMAGE_OBJECT_V2", - "INTERACT_ACTION_V2", - "INTERACTION_V2", - "LISTEN_ACTION_V2", - "LOCAL_BUSINESS_V2", - "LOCAL_PLUS_PHOTO_ALBUM_V2", - "MAGAZINE_V2", - "MEDIA_OBJECT_V2", - "MOBILE_APPLICATION_V2", - "MOVIE_V2", - "MUSIC_ALBUM_V2", - "MUSIC_GROUP_V2", - "MUSIC_PLAYLIST_V2", - "MUSIC_RECORDING_V2", - "NEWS_ARTICLE_V2", - "OFFER_V2", - "ORGANIZATION_V2", - "ORGANIZE_ACTION_V2", - "PERSON_V2", - "PLACE_REVIEW_V2", - "PLACE_V2", - "PLAN_ACTION_V2", - "PLAY_MUSIC_ALBUM_V2", - "PLAY_MUSIC_TRACK_V2", - "PLAY_OBJECT_V2", - "PLUS_AUDIO_V2", - "PLUS_EVENT_V2", - "PLUS_MEDIA_COLLECTION_V2", - "PLUS_MEDIA_OBJECT_V2", - "PLUS_PAGE_V2", - "PLUS_PHOTOS_ADDED_TO_COLLECTION_V2", - "PLUS_PHOTO_ALBUM_V2", - "PLUS_PHOTO_COLLECTION_V2", - "PLUS_PHOTO_V2", - "PLUS_POST_V2", - "PLUS_RESHARE_V2", - "PLUS_SOFTWARE_APPLICATION_V2", - "POLL_OPTION_V2", - "POLL_V2", - "POSTAL_ADDRESS_V2", - "PRESENTATION_OBJECT_V2", - "PRODUCT_REVIEW_V2", - "RATING_V2", - "REACT_ACTION_V2", - "RESERVATION_V2", - "RESERVE_ACTION_V2", - "REVIEW_V2", - "REVIEW_ACTION_V2", - "SOFTWARE_APPLICATION_V2", - "SPREADSHEET_OBJECT_V2", - "SQUARE_INVITE_V2", - "SQUARE_V2", - "STICKER_V2", - "STORY_V2", - "THING_V2", - "TRADE_ACTION_V2", - "DEPRECATED_TOUR_OBJECT_V2", - "TV_EPISODE_V2", - "TV_SERIES_V2", - "UPDATE_ACTION_V2", - "VIEW_ACTION_V2", - "VIDEO_OBJECT_V2", - "VIDEO_GALLERY_V2", - "WANT_ACTION_V2", - "WEB_PAGE_V2", - "WRITE_ACTION_V2", - "YOUTUBE_CHANNEL_V2", - "GOOGLE_USER_PHOTO_V2", - "GOOGLE_USER_PHOTO_ALBUM", - "GOOGLE_PHOTO_RECIPE", - "THING", - "CREATIVE_WORK", - "EVENT", - "INTANGIBLE", - "ORGANIZATION", - "PERSON", - "PLACE", - "PRODUCT", - "ARTICLE", - "BLOG_POSTING", - "NEWS_ARTICLE", - "SCHOLARLY_ARTICLE", - "BLOG", - "BOOK", - "COMMENT", - "ITEM_LIST", - "MAP", - "MEDIA_OBJECT", - "AUDIO_OBJECT", - "IMAGE_OBJECT", - "MUSIC_VIDEO_OBJECT", - "VIDEO_OBJECT", - "MOVIE", - "MUSIC_PLAYLIST", - "MUSIC_ALBUM", - "MUSIC_RECORDING", - "PAINTING", - "PHOTOGRAPH", - "RECIPE", - "REVIEW", - "SCULPTURE", - "SOFTWARE_APPLICATION", - "MOBILE_APPLICATION", - "WEB_APPLICATION", - "TV_EPISODE", - "TV_SEASON", - "TV_SERIES", - "WEB_PAGE", - "ABOUT_PAGE", - "CHECKOUT_PAGE", - "COLLECTION_PAGE", - "IMAGE_GALLERY", - "VIDEO_GALLERY", - "CONTACT_PAGE", - "ITEM_PAGE", - "PROFILE_PAGE", - "SEARCH_RESULTS_PAGE", - "WEB_PAGE_ELEMENT", - "SITE_NAVIGATION_ELEMENT", - "TABLE", - "WP_AD_BLOCK", - "WP_FOOTER", - "WP_HEADER", - "WP_SIDEBAR", - "APP_INVITE", - "EMOTISHARE", - "BUSINESS_EVENT", - "CHILDRENS_EVENT", - "COMEDY_EVENT", - "DANCE_EVENT", - "EDUCATION_EVENT", - "FESTIVAL", - "FOOD_EVENT", - "LITERARY_EVENT", - "MUSIC_EVENT", - "SALE_EVENT", - "SOCIAL_EVENT", - "SPORTS_EVENT", - "THEATER_EVENT", - "VISUAL_ARTS_EVENT", - "RESERVATION", - "TRAVEL_EVENT", - "CORPORATION", - "EDUCATIONAL_ORGANIZATION", - "COLLEGE_OR_UNIVERSITY", - "ELEMENTARY_SCHOOL", - "HIGH_SCHOOL", - "MIDDLE_SCHOOL", - "PRESCHOOL", - "SCHOOL", - "GOVERNMENT_ORGANIZATION", - "LOCAL_BUSINESS", - "ANIMAL_SHELTER", - "AUTOMOTIVE_BUSINESS", - "AUTO_BODY_SHOP", - "AUTO_DEALER", - "AUTO_PARTS_STORE", - "AUTO_RENTAL", - "AUTO_REPAIR", - "AUTO_WASH", - "GAS_STATION", - "MOTORCYCLE_DEALER", - "MOTORCYCLE_REPAIR", - "CHILD_CARE", - "DRY_CLEANING_OR_LAUNDRY", - "EMERGENCY_SERVICE", - "FIRE_STATION", - "HOSPITAL", - "POLICE_STATION", - "EMPLOYMENT_AGENGY", - "ENTERTAINMENT_BUSINESS", - "ADULT_ENTERTAINMENT", - "AMUSEMENT_PARK", - "ART_GALLERY", - "CASINO", - "COMEDY_CLUB", - "MOVIE_THEATER", - "NIGHT_CLUB", - "FINANCIAL_SERVICE", - "ACCOUNTING_SERVICE", - "AUTOMATED_TELLER", - "BANK_OR_CREDIT_UNION", - "INSURANCE_AGENCY", - "FOOD_ESTABLISHMENT", - "BAKERY", - "BAR_OR_PUB", - "BREWERY", - "CAFE_OR_COFFEE_SHOP", - "FAST_FOOD_RESTAURANT", - "ICE_CREAM_SHOP", - "RESTAURANT", - "WINERY", - "GOVERNMENT_OFFICE", - "POST_OFFICE", - "HEALTH_AND_BEAUTY_BUSINESS", - "BEAUTY_SALON", - "DAY_SPA", - "HAIR_SALON", - "HEALTH_CLUB", - "NAIL_SALON", - "TATTOO_PARLOR", - "HOME_AND_CONSTRUCTION_BUSINESS", - "ELECTRICIAN", - "GENERAL_CONTRACTOR", - "HVAC_BUSINESS", - "HOUSE_PAINTER", - "LOCKSMITH", - "MOVING_COMPANY", - "PLUMBER", - "ROOFING_CONTRACTOR", - "INTERNET_CAFE", - "LIBRARY", - "LODGING_BUSINESS", - "BED_AND_BREAKFAST", - "HOSTEL", - "HOTEL", - "MOTEL", - "MEDICAL_ORGANIZATION", - "DENTIST", - "MEDICAL_CLINIC", - "OPTICIAN", - "PHARMACY", - "PHYSICIAN", - "VETERINARY_CARE", - "PROFESSIONAL_SERVICE", - "ATTORNEY", - "NOTARY", - "RADIO_STATION", - "REAL_ESTATE_AGENT", - "RECYCLING_CENTER", - "SELF_STORAGE", - "SHOPPING_CENTER", - "SPORTS_ACTIVITY_LOCATION", - "BOWLING_ALLEY", - "EXERCISE_GYM", - "GOLF_COURSE", - "PUBLIC_SWIMMING_POOL", - "SKI_RESORT", - "SPORTS_CLUB", - "STADIUM_OR_ARENA", - "TENNIS_COMPLEX", - "STORE", - "BIKE_STORE", - "BOOK_STORE", - "CLOTHING_STORE", - "COMPUTER_STORE", - "CONVENIENCE_STORE", - "DEPARTMENT_STORE", - "ELECTRONICS_STORE", - "FLORIST", - "FURNITURE_STORE", - "GARDEN_STORE", - "GROCERY_STORE", - "HARDWARE_STORE", - "HOBBY_SHOP", - "HOME_GOODS_STORE", - "JEWELRY_STORE", - "LIQUOR_STORE", - "MENS_CLOTHING_STORE", - "MOBILE_PHONE_STORE", - "MOVIE_RENTAL_STORE", - "MUSIC_STORE", - "OFFICE_EQUIPMENT_STORE", - "OUTLET_STORE", - "PAWN_SHOP", - "PET_STORE", - "SHOE_STORE", - "SPORTING_GOODS_STORE", - "TIRE_SHOP", - "TOY_STORE", - "WHOLESALE_STORE", - "TELEVISION_STATION", - "TOURIST_INFORMATION_CENTER", - "TRAVEL_AGENCY", - "PERFORMING_GROUP", - "MUSIC_GROUP", - "ADMINISTRATIVE_AREA", - "CITY", - "COUNTRY", - "STATE", - "CIVIC_STRUCTURE", - "AIRPORT", - "AQUARIUM", - "BEACH", - "BUS_STATION", - "BUS_STOP", - "CAMPGROUND", - "CEMETERY", - "CREMATORIUM", - "EVENT_VENUE", - "GOVERNMENT_BUILDING", - "CITY_HALL", - "COURTHOUSE", - "DEFENCE_ESTABLISHMENT", - "EMBASSY", - "LEGISLATIVE_BUILDING", - "MUSEUM", - "MUSIC_VENUE", - "PARK", - "PARKING_FACILITY", - "PERFORMING_ARTS_THEATER", - "PLACE_OF_WORSHIP", - "BUDDHIST_TEMPLE", - "CATHOLIC_CHURCH", - "CHURCH", - "HINDU_TEMPLE", - "MOSQUE", - "SYNAGOGUE", - "PLAYGROUND", - "R_V_PARK", - "RESIDENCE", - "APARTMENT_COMPLEX", - "GATED_RESIDENCE_COMMUNITY", - "SINGLE_FAMILY_RESIDENCE", - "TOURIST_ATTRACTION", - "SUBWAY_STATION", - "TAXI_STAND", - "TRAIN_STATION", - "ZOO", - "LANDFORM", - "BODY_OF_WATER", - "CANAL", - "LAKE_BODY_OF_WATER", - "OCEAN_BODY_OF_WATER", - "POND", - "RESERVOIR", - "RIVER_BODY_OF_WATER", - "SEA_BODY_OF_WATER", - "WATERFALL", - "CONTINENT", - "MOUNTAIN", - "VOLCANO", - "LANDMARKS_OR_HISTORICAL_BUILDINGS", - "USER_INTERACTION", - "USER_PLUS_ONES", - "ENUMERATION", - "BOOK_FORMAT_TYPE", - "ITEM_AVAILABILITY", - "OFFER_ITEM_CONDITION", - "JOB_POSTING", - "LANGUAGE", - "OFFER", - "QUANTITY", - "DISTANCE", - "DURATION", - "ENERGY", - "MASS", - "RATING", - "AGGREGATE_RATING", - "STRUCTURED_VALUE", - "CONTACT_POINT", - "POSTAL_ADDRESS", - "GEO_COORDINATES", - "GEO_SHAPE", - "NUTRITION_INFORMATION", - "PRESENTATION_OBJECT", - "DOCUMENT_OBJECT", - "SPREADSHEET_OBJECT", - "FORM_OBJECT", - "DRAWING_OBJECT", - "PLACE_REVIEW", - "FILE_OBJECT", - "PLAY_MUSIC_TRACK", - "PLAY_MUSIC_ALBUM", - "MAGAZINE", - "CAROUSEL_FRAME", - "PLUS_EVENT", - "HANGOUT", - "HANGOUT_BROADCAST", - "HANGOUT_CONSUMER", - "CHECKIN", - "EXAMPLE_OBJECT", - "SQUARE", - "SQUARE_INVITE", - "PLUS_PHOTO", - "PLUS_PHOTO_ALBUM", - "LOCAL_PLUS_PHOTO_ALBUM", - "PRODUCT_REVIEW", - "FINANCIAL_QUOTE", - "DEPRECATED_TOUR_OBJECT", - "PLUS_PAGE", - "GOOGLE_CHART", - "PLUS_PHOTOS_ADDED_TO_COLLECTION", - "RECOMMENDED_PEOPLE", - "PLUS_POST", - "DATE", - "DRIVE_OBJECT_COLLECTION", - "NEWS_MEDIA_ORGANIZATION", - "DYNAMITE_ATTACHMENT_METADATA", - "DYNAMITE_MESSAGE_METADATA" - ], - "enumDescriptions": [ - "Largely deprecated, effectively an error condition and should not be in storage.", - "Embeds V2 types", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "The action of checking in, as opposed to a \"check-in\".", - "", - "", - "The act of commenting, which might result in a comment.", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "Boswell story (see goto/boswell)", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "A photo stored in photo service owned by a Google account user. This is distinct from PlusPhoto as it isn't tied to GPlus, but is instead intended to be a more general photo tied to a google user.", - "A photo album in photo service owned by a Google account user. This is distinct from PlusPhotoAlbum as it isn't tied to GPlus, but is instead intended to be a general photo album tied to a google user.", - "An embed used to create a single photo in photo service. This type is never stored but is used to create a GOOGLE_USER_PHOTO_V2 or PLUS_PHOTO_V2 embed.", - "Embeds V1 types", - "", - "", - "", - "", - "", - "", - "", - "CREATIVE_WORK subtypes", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "EVENT subtypes", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "ORGANIZATION subtypes", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "PLACE subtypes", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "NOTE(jpanzer): This is a badly designed hierarchy and we should avoid depending on Event properties inside UserInteractions as much as possible IMHO.", - "", - "Intangibles, primarily used as sub-objects of other types", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "CREATIVE_WORK extensions", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "Single frame for http://goto/carousel.", - "EVENT extensions", - "No declared proto. Used only as a base type for now.", - "", - "", - "", - "", - "NOTE(melchang): These correspond to http://schema.org/WebPage/Community and http://schema.org/WebPage/CommunityInvite. See b/7653610 for why these are \"SQUARE\" and not \"COMMUNITY\".", - "", - "", - "", - "", - "", - "", - "", - "", - "Data visualizations. See http://code.google.com/apis/chart/index.html", - "", - "A collection of people that have been recommended to a user.", - "A Google+ post.", - "An http://schema.org/Date unstructured ISO-8859 timestamp string.", - "Embed representing a collection of multiple Drive objects.", - "https://schema.org/NewsMediaOrganization", - "Deprecated in favor of DYNAMITE_MESSAGE_METADATA", - "Used for Dynamite message metadata in Hangouts" - ], - "type": "string" - }, - "type": "array" - } - }, - "type": "object" - }, - "EnumOperatorOptions": { - "description": "Used to provide a search operator for enum properties. This is optional. Search operators let users restrict the query to specific fields relevant to the type of item being searched. For example, if you provide no operator for a *priority* enum property with possible values *p0* and *p1*, a query that contains the term *p0* returns items that have *p0* as the value of the *priority* property, as well as any items that contain the string *p0* in other fields. If you provide an operator name for the enum, such as *priority*, then search users can use that operator to refine results to only items that have *p0* as this property's value, with the query *priority:p0*.", - "id": "EnumOperatorOptions", - "properties": { - "operatorName": { - "description": "Indicates the operator name required in the query in order to isolate the enum property. For example, if operatorName is *priority* and the property's name is *priorityVal*, then queries like *priority:\u003cvalue\u003e* show results only where the value of the property named *priorityVal* matches *\u003cvalue\u003e*. By contrast, a search that uses the same *\u003cvalue\u003e* without an operator returns all items where *\u003cvalue\u003e* matches the value of any String properties or text within the content field for the item. The operator name can only contain lowercase letters (a-z). The maximum length is 32 characters.", - "type": "string" - } - }, - "type": "object" - }, - "EnumPropertyOptions": { - "description": "The options for enum properties, which allow you to define a restricted set of strings to match user queries, set rankings for those string values, and define an operator name to be paired with those strings so that users can narrow results to only items with a specific value. For example, for items in a request tracking system with priority information, you could define *p0* as an allowable enum value and tie this enum to the operator name *priority* so that search users could add *priority:p0* to their query to restrict the set of results to only those items indexed with the value *p0*.", - "id": "EnumPropertyOptions", - "properties": { - "operatorOptions": { - "$ref": "EnumOperatorOptions", - "description": "If set, describes how the enum should be used as a search operator." - }, - "orderedRanking": { - "description": "Used to specify the ordered ranking for the enumeration that determines how the integer values provided in the possible EnumValuePairs are used to rank results. If specified, integer values must be provided for all possible EnumValuePair values given for this property. Can only be used if isRepeatable is false.", - "enum": [ - "NO_ORDER", - "ASCENDING", - "DESCENDING" - ], - "enumDescriptions": [ - "There is no ranking order for the property. Results aren't adjusted by this property's value.", - "This property is ranked in ascending order. Lower values indicate lower ranking.", - "This property is ranked in descending order. Lower values indicate higher ranking." - ], - "type": "string" - }, - "possibleValues": { - "description": "The list of possible values for the enumeration property. All EnumValuePairs must provide a string value. If you specify an integer value for one EnumValuePair, then all possible EnumValuePairs must provide an integer value. Both the string value and integer value must be unique over all possible values. Once set, possible values cannot be removed or modified. If you supply an ordered ranking and think you might insert additional enum values in the future, leave gaps in the initial integer values to allow adding a value in between previously registered values. The maximum number of elements is 100.", - "items": { - "$ref": "EnumValuePair" - }, - "type": "array" - } - }, - "type": "object" - }, - "EnumValuePair": { - "description": "The enumeration value pair defines two things: a required string value and an optional integer value. The string value defines the necessary query term required to retrieve that item, such as *p0* for a priority item. The integer value determines the ranking of that string value relative to other enumerated values for the same property. For example, you might associate *p0* with *0* and define another enum pair such as *p1* and *1*. You must use the integer value in combination with ordered ranking to set the ranking of a given value relative to other enumerated values for the same property name. Here, a ranking order of DESCENDING for *priority* properties results in a ranking boost for items indexed with a value of *p0* compared to items indexed with a value of *p1*. Without a specified ranking order, the integer value has no effect on item ranking.", - "id": "EnumValuePair", - "properties": { - "integerValue": { - "description": "The integer value of the EnumValuePair which must be non-negative. Optional.", - "format": "int32", - "type": "integer" - }, - "stringValue": { - "description": "The string value of the EnumValuePair. The maximum length is 32 characters.", - "type": "string" - } - }, - "type": "object" - }, - "EnumValues": { - "description": "List of enum values.", - "id": "EnumValues", - "properties": { - "values": { - "description": "The maximum allowable length for string values is 32 characters.", - "items": { - "type": "string" - }, - "type": "array" - } - }, - "type": "object" - }, - "ErrorInfo": { - "description": "Error information about the response.", - "id": "ErrorInfo", - "properties": { - "errorMessages": { - "items": { - "$ref": "ErrorMessage" - }, - "type": "array" - } - }, - "type": "object" - }, - "ErrorMessage": { - "description": "Error message per source response.", - "id": "ErrorMessage", - "properties": { - "errorMessage": { - "type": "string" - }, - "source": { - "$ref": "Source" - } - }, - "type": "object" - }, - "EventAnnotation": { - "id": "EventAnnotation", - "properties": { - "type": { - "format": "int32", - "type": "integer" - }, - "value": { - "type": "string" - } - }, - "type": "object" - }, - "EventProto": { - "description": "Represents the invitees or other users associated with a Google+ Event (see http://goto/events-backend-design).", - "id": "EventProto", - "properties": { - "eventId": { - "description": "Event IDs consist of alphanumeric characters and colons. Currently required.", - "type": "string" - }, - "memberType": { - "description": "The type of Event members to consider, e.g. \"all members\" vs. \"owners\" vs. \"admins\". These are defined by legacy_relation_id values in social.graph.storage.EdgeTypeEnum.EdgeType enum options in social/graph/storage/proto/id.proto. See event.pb (defined in production/config/cdd/socialgraph/mixer_config/prod/node_type_config) for all valid edge types associated with event. Currently required.", - "format": "int32", - "type": "integer" - } - }, - "type": "object" - }, - "FacetBucket": { - "description": "A bucket in a facet is the basic unit of operation. A bucket can comprise either a single value OR a contiguous range of values, depending on the type of the field bucketed. FacetBucket is currently used only for returning the response object.", - "id": "FacetBucket", - "properties": { - "count": { - "description": "Number of results that match the bucket value. Counts are only returned for searches when count accuracy is ensured. Cloud Search does not guarantee facet counts for any query and facet counts might be present only intermittently, even for identical queries. Do not build dependencies on facet count existence; instead use facet ount percentages which are always returned.", - "format": "int32", - "type": "integer" - }, - "filter": { - "$ref": "Filter", - "description": "Filter to be passed in the search request if the corresponding bucket is selected." - }, - "percentage": { - "description": "Percent of results that match the bucket value. The returned value is between (0-100], and is rounded down to an integer if fractional. If the value is not explicitly returned, it represents a percentage value that rounds to 0. Percentages are returned for all searches, but are an estimate. Because percentages are always returned, you should render percentages instead of counts.", - "format": "int32", - "type": "integer" - }, - "value": { - "$ref": "Value" - } - }, - "type": "object" - }, - "FacetOptions": { - "description": "Specifies operators to return facet results for. There will be one FacetResult for every source_name/object_type/operator_name combination.", - "id": "FacetOptions", - "properties": { - "integerFacetingOptions": { - "$ref": "IntegerFacetingOptions", - "description": "If set, describes integer faceting options for the given integer property. The corresponding integer property in the schema should be marked isFacetable. The number of buckets returned would be minimum of this and num_facet_buckets." - }, - "numFacetBuckets": { - "description": "Maximum number of facet buckets that should be returned for this facet. Defaults to 10. Maximum value is 100.", - "format": "int32", - "type": "integer" - }, - "objectType": { - "description": "If object_type is set, only those objects of that type will be used to compute facets. If empty, then all objects will be used to compute facets.", - "type": "string" - }, - "operatorName": { - "description": "The name of the operator chosen for faceting. @see cloudsearch.SchemaPropertyOptions", - "type": "string" - }, - "sourceName": { - "description": "Source name to facet on. Format: datasources/{source_id} If empty, all data sources will be used.", - "type": "string" - } - }, - "type": "object" - }, - "FacetResult": { - "description": "Source specific facet response", - "id": "FacetResult", - "properties": { - "buckets": { - "description": "FacetBuckets for values in response containing at least a single result with the corresponding filter.", - "items": { - "$ref": "FacetBucket" - }, - "type": "array" - }, - "objectType": { - "description": "Object type for which facet results are returned. Can be empty.", - "type": "string" - }, - "operatorName": { - "description": "The name of the operator chosen for faceting. @see cloudsearch.SchemaPropertyOptions", - "type": "string" - }, - "sourceName": { - "description": "Source name for which facet results are returned. Will not be empty.", - "type": "string" - } - }, - "type": "object" - }, - "FieldViolation": { - "id": "FieldViolation", - "properties": { - "description": { - "description": "The description of the error.", - "type": "string" - }, - "field": { - "description": "Path of field with violation.", - "type": "string" - } - }, - "type": "object" - }, - "Filter": { - "description": "A generic way of expressing filters in a query, which supports two approaches: **1. Setting a ValueFilter.** The name must match an operator_name defined in the schema for your data source. **2. Setting a CompositeFilter.** The filters are evaluated using the logical operator. The top-level operators can only be either an AND or a NOT. AND can appear only at the top-most level. OR can appear only under a top-level AND.", - "id": "Filter", - "properties": { - "compositeFilter": { - "$ref": "CompositeFilter" - }, - "valueFilter": { - "$ref": "ValueFilter" - } - }, - "type": "object" - }, - "FilterCreated": { - "description": "A filter was created.", - "id": "FilterCreated", - "properties": {}, - "type": "object" - }, - "FilterDeleted": { - "description": "A filter was deleted.", - "id": "FilterDeleted", - "properties": {}, - "type": "object" - }, - "FilterOptions": { - "description": "Filter options to be applied on query.", - "id": "FilterOptions", - "properties": { - "filter": { - "$ref": "Filter", - "description": "Generic filter to restrict the search, such as `lang:en`, `site:xyz`." - }, - "objectType": { - "description": "If object_type is set, only objects of that type are returned. This should correspond to the name of the object that was registered within the definition of schema. The maximum length is 256 characters.", - "type": "string" - } - }, - "type": "object" - }, - "FilterUpdate": { - "description": "HistoryRecord for changes associated with a filter, namely: FILTER_CREATED FILTER_DELETED", - "id": "FilterUpdate", - "properties": { - "filterCreated": { - "$ref": "FilterCreated" - }, - "filterDeleted": { - "$ref": "FilterDeleted" - }, - "filterId": { - "type": "string" - } - }, - "type": "object" - }, - "FixedFooter": { - "description": "A persistent (sticky) footer that is added to the bottom of the card.", - "id": "FixedFooter", - "properties": { - "buttons": { - "items": { - "$ref": "Button" - }, - "type": "array" - }, - "primaryButton": { - "$ref": "TextButton" - }, - "secondaryButton": { - "$ref": "TextButton" - } - }, - "type": "object" - }, - "Folder": { - "id": "Folder", - "properties": { - "id": { - "description": "Folder mapping id.", - "format": "uint64", - "type": "string" - }, - "message": { - "description": "One for each copy of the message in the IMAP folder.", - "items": { - "$ref": "ImapsyncFolderAttributeFolderMessage" - }, - "type": "array" - } - }, - "type": "object" - }, - "FolderAttribute": { - "description": "This is the content of //imapsync/folder attribute.", - "id": "FolderAttribute", - "properties": { - "folder": { - "description": "List of all IMAP folders where the message presents.", - "items": { - "$ref": "Folder" - }, - "type": "array" - } - }, - "type": "object" - }, - "FormAction": { - "id": "FormAction", - "properties": { - "actionMethodName": { - "description": "Apps script function that should be invoked in the developer's apps script when the containing element is clicked/activated.", - "type": "string" - }, - "loadIndicator": { - "enum": [ - "SPINNER", - "NONE" - ], - "enumDescriptions": [ - "", - "" - ], - "type": "string" - }, - "parameters": { - "items": { - "$ref": "ActionParameter" - }, - "type": "array" - }, - "persistValues": { - "description": "Indicates whether form values persist after the action. When false, the Apps Script is responsible for persisting values, by setting any form field values using the formInputs in the event. Disabling this behavior can be used if the add-on needs the ability to clear form fields, for example, as with persistent values, there is no means for clearing existing values. When disabling persistent values, it is strongly recommended that the add-on use LoadIndicator.SPINNER for all events, as this locks the UI to ensure no changes are made by the user while the action is being processed. When using LoadIndicator.NONE for any of the actions, persistent values are recommended, as it ensures that any changes made by the user after form / on change actions are sent to the server are not overwritten by the response. Persistent values disabled by default. While we recommend persistent values be used in the typical use case, we do not enable by default, as doing so would change the current behavior of existing add-ons in prod.", - "type": "boolean" - } - }, - "type": "object" - }, - "FormatMetadata": { - "description": "Annotation metadata for markup formatting", - "id": "FormatMetadata", - "properties": { - "fontColor": { - "description": "Font color is set if and only if format_type is FONT_COLOR. The components are stored as (alpha \u003c\u003c 24) | (red \u003c\u003c 16) | (green \u003c\u003c 8) | blue. Clients should always set the alpha component to 0xFF. NEXT TAG: 3", - "format": "uint32", - "type": "integer" - }, - "formatType": { - "description": "LINT.ThenChange(//depot/google3/apps/dynamite/v1/web/datakeys/annotated_span.proto)", - "enum": [ - "TYPE_UNSPECIFIED", - "BOLD", - "ITALIC", - "STRIKE", - "SOURCE_CODE", - "MONOSPACE", - "HIDDEN", - "MONOSPACE_BLOCK", - "UNDERLINE", - "FONT_COLOR", - "BULLETED_LIST", - "BULLETED_LIST_ITEM", - "CLIENT_HIDDEN" - ], - "enumDescriptions": [ - "Default value for the enum.", - "", - "", - "", - "", - "Inline monospace.", - "", - "Multi-line monospace block.", - "", - "", - "Encloses BULLETED_LIST_ITEM annotations.", - "Must cover the whole line including the newline", - "character at the end. Not used anymore." - ], - "type": "string" - } - }, - "type": "object" - }, - "Formatting": { - "description": "Formatting information for a segment.", - "id": "Formatting", - "properties": { - "bold": { - "type": "boolean" - }, - "highlight": { - "description": "This indicates that the segment should be rendered as highlighted or visually emphasized.", - "type": "boolean" - }, - "italics": { - "type": "boolean" - }, - "strikethrough": { - "type": "boolean" - }, - "style": { - "description": "If set, this indicates that the segment should be rendered with the specified style. The absence of an explicit style represents \"no style\", i.e. the segment can be rendered with the default style chosen by the application.", - "enum": [ - "UNKNOWN_STYLE", - "HEADING_1", - "HEADING_2", - "HEADING_3", - "HEADING_4" - ], - "enumDescriptions": [ - "This represents a style that is unknown (e.g. a new style was introduced but not supported by older mobile app versions) and should generally not be used as a value in a proto. If the segment does not need to be rendered with a special style, the 'style' field should simply be left unset. A reasonable fallback for an unknown style is to render the segment in the default style.", - "The most important heading to the least important heading.", - "", - "", - "" - ], - "type": "string" - }, - "underline": { - "type": "boolean" - } - }, - "type": "object" - }, - "FreshnessOptions": { - "description": "Indicates which freshness property to use when adjusting search ranking for an item. Fresher, more recent dates indicate higher quality. Use the freshness option property that best works with your data. For fileshare documents, last modified time is most relevant. For calendar event data, the time when the event occurs is a more relevant freshness indicator. In this way, calendar events that occur closer to the time of the search query are considered higher quality and ranked accordingly.", - "id": "FreshnessOptions", - "properties": { - "freshnessDuration": { - "description": "The duration after which an object should be considered stale. The default value is 180 days (in seconds).", - "format": "google-duration", - "type": "string" - }, - "freshnessProperty": { - "description": "This property indicates the freshness level of the object in the index. If set, this property must be a top-level property within the property definitions and it must be a timestamp type or date type. Otherwise, the Indexing API uses updateTime as the freshness indicator. The maximum length is 256 characters. When a property is used to calculate freshness, the value defaults to 2 years from the current time.", - "type": "string" - } - }, - "type": "object" - }, - "FuseboxItem": { - "description": "The Item message is the read interface for user data (traditionally referred to as a \"message\", such as a mail message or a chat message, but generalized to encompass other types such as tasks) and stored in Tingle. Each Item is associated with a single Thread. An Item contains three classes of data. (1): Item \"fields\" are common to items of all message types (e.g. mail, chat, task, etc.) and are identified by the ItemFieldSpec.FetchType enum when fetching Items. (2): Item \"attributes\" represent data associated with an Item that is stored on behalf of the client but to which the fusebox and storage layers are otherwise agnostic. (3): Item \"parts\" are application-defined protocol buffers that affect how the Item is indexed. Item parts are referenced as extensions to the ItemParts message. By default the application specifies the index terms associated with an Item part. For performance sensitive applications, the storage layer can be modified to understand and index data types natively.", - "id": "FuseboxItem", - "properties": { - "attributes": { - "$ref": "Attributes" - }, - "creationTimeMicroseconds": { - "description": "The creation time of the Item in micro seconds.", - "format": "uint64", - "type": "string" - }, - "history": { - "$ref": "History" - }, - "itemKey": { - "$ref": "MultiKey", - "description": "The key is used to refer to an item. Note that every field of the MultiKey is unique to the Item, and thus the Item can be looked up by any of the fields." - }, - "labels": { - "$ref": "Labels" - }, - "lastModificationTimeUs": { - "description": "The modification time of the Item in micro seconds. Modifications to the message include label addition, deletion, etc.", - "format": "uint64", - "type": "string" - }, - "lockerReferences": { - "$ref": "References", - "description": "go/lockpicker Locker counterpart of references." - }, - "matchInfo": { - "$ref": "MatchInfo" - }, - "parts": { - "$ref": "ItemParts", - "description": "Type-specific data are represented as extensions to the ItemParts message." - }, - "readTs": { - "description": "The read timestamp at which this item was read. This is a temporary field used to check if two items streamed during dual reading were read at the same timestamp. This will be populated by Fusebox RPCs. \"DO NOT USE UNLESS YOU TALK TO FUSEBOX TEAM (gmail-fusebox@)\".", - "format": "int64", - "type": "string" - }, - "references": { - "$ref": "References", - "description": "References to attachments, video attachments in Youtube and Hangout messages." - }, - "snippet": { - "description": "The snippet is a brief bit of text describing this item.", - "type": "string" - }, - "threadKey": { - "$ref": "MultiKey", - "description": "The key of the Thread with which this Item is associated." - }, - "threadLocator": { - "description": "A base64 encoded and encrypted string generated from the Gaia Id and the thread id. Used to generate the permalink for this thread, exposed from Gmail API.", - "type": "string" - }, - "triggers": { - "$ref": "Triggers" - }, - "version": { - "description": "The latest history operation id that resulted in a mutation of the item.", - "format": "uint64", - "type": "string" - } - }, - "type": "object" - }, - "FuseboxItemThreadMatchInfo": { - "description": "In the context of a search, the MatchInfo contains information about which Items matched the query.", - "id": "FuseboxItemThreadMatchInfo", - "properties": { - "clusterId": { - "description": "If SearchQuery.Options.Clustering is present, the query will be treated as a cluster query, and this field may be populated with the cluster ID of the cluster to which this thread belongs, if any. The cluster ID will be a label on the message.", - "type": "string" - }, - "lastMatchingItemId": { - "description": "The server id of the last item that matched the query. This is always set, regardless of the compute_matching_items_per_thread option. This is the value by which search results are sorted, in descending (i.e. newest first) order.", - "format": "uint64", - "type": "string" - }, - "lastMatchingItemKey": { - "$ref": "MultiKey", - "description": "The MultiKey of the last item that matched the query. This is always set, regardless of the compute_matching_items_per_thread option. This is the value by which search results are sorted, in descending (i.e. newest first) order." - }, - "matchingItemKey": { - "description": "If SearchQuery.Options.compute_matching_items_per_thread, this field will contain the keys of all items that matched the query, in ascending order. Note that this option requires extra computation.", - "items": { - "$ref": "MultiKey" - }, - "type": "array" - }, - "rank": { - "$ref": "Rank", - "description": "The rank of this ItemThread in the result set of the query. This rank may be used to sort ItemThreads in proper order. Ranks are specific to a query, and stable for a given query at a specific time." - } - }, - "type": "object" - }, - "FuseboxPrefUpdatePreState": { - "description": "If the Value field is not set this means the pref did not exist.", - "id": "FuseboxPrefUpdatePreState", - "properties": { - "value": { - "format": "byte", - "type": "string" - } - }, - "type": "object" - }, - "GSuitePrincipal": { - "id": "GSuitePrincipal", - "properties": { - "gsuiteDomain": { - "description": "This principal represents all users of the Google Workspace domain of the customer.", - "type": "boolean" - }, - "gsuiteGroupEmail": { - "description": "This principal references a Google Workspace group name.", - "type": "string" - }, - "gsuiteUserEmail": { - "description": "This principal references a Google Workspace user account.", - "type": "string" - } - }, - "type": "object" - }, - "GaiaGroupProto": { - "id": "GaiaGroupProto", - "properties": { - "groupId": { - "format": "int64", - "type": "string" - } - }, - "type": "object" - }, - "GaiaUserProto": { - "description": "A Gaia account, which may represent a user, device, service account, etc. For prod (@prod.google.com) accounts, use MdbUserProto instead.", - "id": "GaiaUserProto", - "properties": { - "userId": { - "format": "int64", - "type": "string" - } - }, - "type": "object" - }, - "GatewayAccess": { - "description": "Details on the third-party interoperability settings for the meeting space.", - "id": "GatewayAccess", - "properties": { - "enabled": { - "description": "Whether third-party gateway accesses are enabled for this meeting space. If enabled, the actual access code can be retrieved by calling the GetGatewayAccess RPC method.", - "type": "boolean" - } - }, - "type": "object" - }, - "GatewaySipAccess": { - "description": "Details how to join the conference via a SIP gateway.", - "id": "GatewaySipAccess", - "properties": { - "sipAccessCode": { - "description": "Permanent numeric code for manual entry on specially configured devices, currently the same as the PSTN \"Universal pin\".", - "type": "string" - }, - "uri": { - "description": "The SIP URI the conference can be reached through. The string is on one of the formats: \"sip:@\" \"sips:@\" where currently is the 13-digit universal pin (with the future option to support using a Meet meeting code as well), and is a valid address to be resolved using a DNS SRV lookup, or a dotted quad.", - "type": "string" - } - }, - "type": "object" - }, - "GetCustomerIndexStatsResponse": { - "id": "GetCustomerIndexStatsResponse", - "properties": { - "averageIndexedItemCount": { - "description": "Average item count for the given date range for which billing is done.", - "format": "int64", - "type": "string" - }, - "stats": { - "description": "Summary of indexed item counts, one for each day in the requested range.", - "items": { - "$ref": "CustomerIndexStats" - }, - "type": "array" - } - }, - "type": "object" - }, - "GetCustomerQueryStatsResponse": { - "id": "GetCustomerQueryStatsResponse", - "properties": { - "stats": { - "items": { - "$ref": "CustomerQueryStats" - }, - "type": "array" - }, - "totalQueryCount": { - "description": "Total successful query count (status code 200) for the given date range.", - "format": "int64", - "type": "string" - } - }, - "type": "object" - }, - "GetCustomerSearchApplicationStatsResponse": { - "description": "Response format for search application stats for a customer.", - "id": "GetCustomerSearchApplicationStatsResponse", - "properties": { - "averageSearchApplicationCount": { - "description": "Average search application count for the given date range.", - "format": "int64", - "type": "string" - }, - "stats": { - "description": "Search application stats by date.", - "items": { - "$ref": "CustomerSearchApplicationStats" - }, - "type": "array" - } - }, - "type": "object" - }, - "GetCustomerSessionStatsResponse": { - "id": "GetCustomerSessionStatsResponse", - "properties": { - "stats": { - "items": { - "$ref": "CustomerSessionStats" - }, - "type": "array" - } - }, - "type": "object" - }, - "GetCustomerUserStatsResponse": { - "id": "GetCustomerUserStatsResponse", - "properties": { - "stats": { - "items": { - "$ref": "CustomerUserStats" - }, - "type": "array" - } - }, - "type": "object" - }, - "GetDataSourceIndexStatsResponse": { - "id": "GetDataSourceIndexStatsResponse", - "properties": { - "averageIndexedItemCount": { - "description": "Average item count for the given date range for which billing is done.", - "format": "int64", - "type": "string" - }, - "stats": { - "description": "Summary of indexed item counts, one for each day in the requested range.", - "items": { - "$ref": "DataSourceIndexStats" - }, - "type": "array" - } - }, - "type": "object" - }, - "GetSearchApplicationQueryStatsResponse": { - "description": "Response format for getting query stats for a search application between given dates.", - "id": "GetSearchApplicationQueryStatsResponse", - "properties": { - "stats": { - "description": "Query stats per date for a search application.", - "items": { - "$ref": "SearchApplicationQueryStats" - }, - "type": "array" - }, - "totalQueryCount": { - "description": "Total successful query count (status code 200) for the given date range.", - "format": "int64", - "type": "string" - } - }, - "type": "object" - }, - "GetSearchApplicationSessionStatsResponse": { - "id": "GetSearchApplicationSessionStatsResponse", - "properties": { - "stats": { - "items": { - "$ref": "SearchApplicationSessionStats" - }, - "type": "array" - } - }, - "type": "object" - }, - "GetSearchApplicationUserStatsResponse": { - "id": "GetSearchApplicationUserStatsResponse", - "properties": { - "stats": { - "items": { - "$ref": "SearchApplicationUserStats" - }, - "type": "array" - } - }, - "type": "object" - }, - "GmailClientActionMarkup": { - "id": "GmailClientActionMarkup", - "properties": { - "addonComposeUiActionMarkup": { - "$ref": "AddonComposeUiActionMarkup" - }, - "openCreatedDraftActionMarkup": { - "$ref": "OpenCreatedDraftActionMarkup" - }, - "taskAction": { - "$ref": "TaskActionMarkup" - }, - "updateDraftActionMarkup": { - "$ref": "UpdateDraftActionMarkup" - } - }, - "type": "object" - }, - "GoogleChatV1ContextualAddOnMarkup": { - "description": "The markup for developers to specify the contents of a contextual AddOn.", - "id": "GoogleChatV1ContextualAddOnMarkup", - "properties": { - "cards": { - "description": "A list of cards. A card must contain a header and at least 1 section.", - "items": { - "$ref": "GoogleChatV1ContextualAddOnMarkupCard" - }, - "type": "array" - } - }, - "type": "object" - }, - "GoogleChatV1ContextualAddOnMarkupCard": { - "description": "A card is a UI element that can contain UI widgets such as text and images.", - "id": "GoogleChatV1ContextualAddOnMarkupCard", - "properties": { - "cardActions": { - "description": "The actions of this card.", - "items": { - "$ref": "GoogleChatV1ContextualAddOnMarkupCardCardAction" - }, - "type": "array" - }, - "header": { - "$ref": "GoogleChatV1ContextualAddOnMarkupCardCardHeader", - "description": "The header of the card. A header usually contains a title and an image." - }, - "name": { - "description": "Name of the card.", - "type": "string" - }, - "sections": { - "description": "Sections are separated by a line divider.", - "items": { - "$ref": "GoogleChatV1ContextualAddOnMarkupCardSection" - }, - "type": "array" - } - }, - "type": "object" - }, - "GoogleChatV1ContextualAddOnMarkupCardCardAction": { - "description": "A card action is the action associated with the card. For an invoice card, a typical action would be: delete invoice, email invoice or open the invoice in browser. Not supported by Google Chat apps.", - "id": "GoogleChatV1ContextualAddOnMarkupCardCardAction", - "properties": { - "actionLabel": { - "description": "The label used to be displayed in the action menu item.", - "type": "string" - }, - "onClick": { - "$ref": "GoogleChatV1WidgetMarkupOnClick", - "description": "The onclick action for this action item." - } - }, - "type": "object" - }, - "GoogleChatV1ContextualAddOnMarkupCardCardHeader": { - "id": "GoogleChatV1ContextualAddOnMarkupCardCardHeader", - "properties": { - "imageStyle": { - "description": "The image's type (for example, square border or circular border).", - "enum": [ - "IMAGE_STYLE_UNSPECIFIED", - "IMAGE", - "AVATAR" - ], - "enumDescriptions": [ - "", - "Square border.", - "Circular border." - ], - "type": "string" - }, - "imageUrl": { - "description": "The URL of the image in the card header.", - "type": "string" - }, - "subtitle": { - "description": "The subtitle of the card header.", - "type": "string" - }, - "title": { - "description": "The title must be specified. The header has a fixed height: if both a title and subtitle is specified, each takes up one line. If only the title is specified, it takes up both lines.", - "type": "string" - } - }, - "type": "object" - }, - "GoogleChatV1ContextualAddOnMarkupCardSection": { - "description": "A section contains a collection of widgets that are rendered (vertically) in the order that they are specified. Across all platforms, cards have a narrow fixed width, so there's currently no need for layout properties (for example, float).", - "id": "GoogleChatV1ContextualAddOnMarkupCardSection", - "properties": { - "header": { - "description": "The header of the section. Formatted text is supported. For more information about formatting text, see [Formatting text in Google Chat apps](https://developers.google.com/chat/api/guides/message-formats/cards#card_text_formatting) and [Formatting text in Google Workspace Add-ons](https://developers.google.com/apps-script/add-ons/concepts/widgets#text_formatting).", - "type": "string" - }, - "widgets": { - "description": "A section must contain at least one widget.", - "items": { - "$ref": "GoogleChatV1WidgetMarkup" - }, - "type": "array" - } - }, - "type": "object" - }, - "GoogleChatV1WidgetMarkup": { - "description": "A widget is a UI element that presents text and images.", - "id": "GoogleChatV1WidgetMarkup", - "properties": { - "buttons": { - "description": "A list of buttons. Buttons is also `oneof data` and only one of these fields should be set.", - "items": { - "$ref": "GoogleChatV1WidgetMarkupButton" - }, - "type": "array" - }, - "image": { - "$ref": "GoogleChatV1WidgetMarkupImage", - "description": "Display an image in this widget." - }, - "keyValue": { - "$ref": "GoogleChatV1WidgetMarkupKeyValue", - "description": "Display a key value item in this widget." - }, - "textParagraph": { - "$ref": "GoogleChatV1WidgetMarkupTextParagraph", - "description": "Display a text paragraph in this widget." - } - }, - "type": "object" - }, - "GoogleChatV1WidgetMarkupButton": { - "description": "A button. Can be a text button or an image button.", - "id": "GoogleChatV1WidgetMarkupButton", - "properties": { - "imageButton": { - "$ref": "GoogleChatV1WidgetMarkupImageButton", - "description": "A button with image and `onclick` action." - }, - "textButton": { - "$ref": "GoogleChatV1WidgetMarkupTextButton", - "description": "A button with text and `onclick` action." - } - }, - "type": "object" - }, - "GoogleChatV1WidgetMarkupFormAction": { - "description": "A form action describes the behavior when the form is submitted. For example, you can invoke Apps Script to handle the form.", - "id": "GoogleChatV1WidgetMarkupFormAction", - "properties": { - "actionMethodName": { - "description": "The method name is used to identify which part of the form triggered the form submission. This information is echoed back to the Chat app as part of the card click event. You can use the same method name for several elements that trigger a common behavior.", - "type": "string" - }, - "parameters": { - "description": "List of action parameters.", - "items": { - "$ref": "GoogleChatV1WidgetMarkupFormActionActionParameter" - }, - "type": "array" - } - }, - "type": "object" - }, - "GoogleChatV1WidgetMarkupFormActionActionParameter": { - "description": "List of string parameters to supply when the action method is invoked. For example, consider three snooze buttons: snooze now, snooze one day, snooze next week. You might use `action method = snooze()`, passing the snooze type and snooze time in the list of string parameters.", - "id": "GoogleChatV1WidgetMarkupFormActionActionParameter", - "properties": { - "key": { - "description": "The name of the parameter for the action script.", - "type": "string" - }, - "value": { - "description": "The value of the parameter.", - "type": "string" - } - }, - "type": "object" - }, - "GoogleChatV1WidgetMarkupImage": { - "description": "An image that's specified by a URL and can have an `onclick` action.", - "id": "GoogleChatV1WidgetMarkupImage", - "properties": { - "aspectRatio": { - "description": "The aspect ratio of this image (width and height). This field lets you reserve the right height for the image while waiting for it to load. It's not meant to override the built-in aspect ratio of the image. If unset, the server fills it by prefetching the image.", - "format": "double", - "type": "number" - }, - "imageUrl": { - "description": "The URL of the image.", - "type": "string" - }, - "onClick": { - "$ref": "GoogleChatV1WidgetMarkupOnClick", - "description": "The `onclick` action." - } - }, - "type": "object" - }, - "GoogleChatV1WidgetMarkupImageButton": { - "description": "An image button with an `onclick` action.", - "id": "GoogleChatV1WidgetMarkupImageButton", - "properties": { - "icon": { - "description": "The icon specified by an `enum` that indices to an icon provided by Chat API.", - "enum": [ - "ICON_UNSPECIFIED", - "AIRPLANE", - "BOOKMARK", - "BUS", - "CAR", - "CLOCK", - "CONFIRMATION_NUMBER_ICON", - "DOLLAR", - "DESCRIPTION", - "EMAIL", - "EVENT_PERFORMER", - "EVENT_SEAT", - "FLIGHT_ARRIVAL", - "FLIGHT_DEPARTURE", - "HOTEL", - "HOTEL_ROOM_TYPE", - "INVITE", - "MAP_PIN", - "MEMBERSHIP", - "MULTIPLE_PEOPLE", - "OFFER", - "PERSON", - "PHONE", - "RESTAURANT_ICON", - "SHOPPING_CART", - "STAR", - "STORE", - "TICKET", - "TRAIN", - "VIDEO_CAMERA", - "VIDEO_PLAY" - ], - "enumDescriptions": [ - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "" - ], - "type": "string" - }, - "iconUrl": { - "description": "The icon specified by a URL.", - "type": "string" - }, - "name": { - "description": "The name of this `image_button` that's used for accessibility. Default value is provided if this name isn't specified.", - "type": "string" - }, - "onClick": { - "$ref": "GoogleChatV1WidgetMarkupOnClick", - "description": "The `onclick` action." - } - }, - "type": "object" - }, - "GoogleChatV1WidgetMarkupKeyValue": { - "description": "A UI element contains a key (label) and a value (content). This element can also contain some actions such as `onclick` button.", - "id": "GoogleChatV1WidgetMarkupKeyValue", - "properties": { - "bottomLabel": { - "description": "The text of the bottom label. Formatted text supported. For more information about formatting text, see [Formatting text in Google Chat apps](https://developers.google.com/chat/api/guides/message-formats/cards#card_text_formatting) and [Formatting text in Google Workspace Add-ons](https://developers.google.com/apps-script/add-ons/concepts/widgets#text_formatting).", - "type": "string" - }, - "button": { - "$ref": "GoogleChatV1WidgetMarkupButton", - "description": "A button that can be clicked to trigger an action." - }, - "content": { - "description": "The text of the content. Formatted text supported and always required. For more information about formatting text, see [Formatting text in Google Chat apps](https://developers.google.com/chat/api/guides/message-formats/cards#card_text_formatting) and [Formatting text in Google Workspace Add-ons](https://developers.google.com/apps-script/add-ons/concepts/widgets#text_formatting).", - "type": "string" - }, - "contentMultiline": { - "description": "If the content should be multiline.", - "type": "boolean" - }, - "icon": { - "description": "An enum value that's replaced by the Chat API with the corresponding icon image.", - "enum": [ - "ICON_UNSPECIFIED", - "AIRPLANE", - "BOOKMARK", - "BUS", - "CAR", - "CLOCK", - "CONFIRMATION_NUMBER_ICON", - "DOLLAR", - "DESCRIPTION", - "EMAIL", - "EVENT_PERFORMER", - "EVENT_SEAT", - "FLIGHT_ARRIVAL", - "FLIGHT_DEPARTURE", - "HOTEL", - "HOTEL_ROOM_TYPE", - "INVITE", - "MAP_PIN", - "MEMBERSHIP", - "MULTIPLE_PEOPLE", - "OFFER", - "PERSON", - "PHONE", - "RESTAURANT_ICON", - "SHOPPING_CART", - "STAR", - "STORE", - "TICKET", - "TRAIN", - "VIDEO_CAMERA", - "VIDEO_PLAY" - ], - "enumDescriptions": [ - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "" - ], - "type": "string" - }, - "iconUrl": { - "description": "The icon specified by a URL.", - "type": "string" - }, - "onClick": { - "$ref": "GoogleChatV1WidgetMarkupOnClick", - "description": "The `onclick` action. Only the top label, bottom label, and content region are clickable." - }, - "topLabel": { - "description": "The text of the top label. Formatted text supported. For more information about formatting text, see [Formatting text in Google Chat apps](https://developers.google.com/chat/api/guides/message-formats/cards#card_text_formatting) and [Formatting text in Google Workspace Add-ons](https://developers.google.com/apps-script/add-ons/concepts/widgets#text_formatting).", - "type": "string" - } - }, - "type": "object" - }, - "GoogleChatV1WidgetMarkupOnClick": { - "description": "An `onclick` action (for example, open a link).", - "id": "GoogleChatV1WidgetMarkupOnClick", - "properties": { - "action": { - "$ref": "GoogleChatV1WidgetMarkupFormAction", - "description": "A form action is triggered by this `onclick` action if specified." - }, - "openLink": { - "$ref": "GoogleChatV1WidgetMarkupOpenLink", - "description": "This `onclick` action triggers an open link action if specified." - } - }, - "type": "object" - }, - "GoogleChatV1WidgetMarkupOpenLink": { - "description": "A link that opens a new window.", - "id": "GoogleChatV1WidgetMarkupOpenLink", - "properties": { - "url": { - "description": "The URL to open.", - "type": "string" - } - }, - "type": "object" - }, - "GoogleChatV1WidgetMarkupTextButton": { - "description": "A button with text and `onclick` action.", - "id": "GoogleChatV1WidgetMarkupTextButton", - "properties": { - "onClick": { - "$ref": "GoogleChatV1WidgetMarkupOnClick", - "description": "The `onclick` action of the button." - }, - "text": { - "description": "The text of the button.", - "type": "string" - } - }, - "type": "object" - }, - "GoogleChatV1WidgetMarkupTextParagraph": { - "description": "A paragraph of text. Formatted text supported. For more information about formatting text, see [Formatting text in Google Chat apps](https://developers.google.com/chat/api/guides/message-formats/cards#card_text_formatting) and [Formatting text in Google Workspace Add-ons](https://developers.google.com/apps-script/add-ons/concepts/widgets#text_formatting).", - "id": "GoogleChatV1WidgetMarkupTextParagraph", - "properties": { - "text": { - "type": "string" - } - }, - "type": "object" - }, - "GoogleDocsMetadata": { - "description": "The corpus specific metadata for office-type documents, from Google Docs and other sources. This message is passed to the scorer and beyond. Next tag: 9", - "id": "GoogleDocsMetadata", - "properties": { - "aclInfo": { - "$ref": "AclInfo", - "description": "Contains number of users and groups which can access the document." - }, - "documentType": { - "description": "The conceptual type (presentation, document, etc.) of this document.", - "enum": [ - "UNKNOWN", - "DOCUMENT", - "PRESENTATION", - "SPREADSHEET", - "PDF", - "IMAGE", - "BINARY_BLOB", - "FUSION_TABLE", - "FOLDER", - "DRAWING", - "VIDEO", - "FORM", - "DRAFT_SITE", - "DRAFT_SITE_PAGE", - "JAM", - "SHORTCUT", - "SCRIPT" - ], - "enumDescriptions": [ - "If the type is unknown or not represented in this enum.", - "Writely, Word, etc.", - "Presently, PowerPoint, etc.", - "Trix, Excel, etc.", - "File types for Gdrive objects are below.", - "", - "Fall-back for unknown Gdrive types.", - "", - "", - "", - "", - "", - "For Atari page and site drafts", - "", - "Jamboard Jams (go/jam)", - "Drive Shortcuts (go/shortcuts)", - "" - ], - "type": "string" - }, - "fileExtension": { - "description": "The file extension of the document. NOTE: As of October 2018 this field is not backfilled for old documents.", - "type": "string" - }, - "lastContentModifiedTimestamp": { - "description": "The last time this document was modified, in seconds since epoch. Only counts content modifications.", - "format": "int64", - "type": "string" - }, - "numSubscribers": { - "description": "Contains number of subscribers for the document.", - "format": "int32", - "type": "integer" - }, - "numViewers": { - "description": "Size of untruncated viewers list.", - "format": "int32", - "type": "integer" - }, - "resultInfo": { - "$ref": "GoogleDocsResultInfo", - "description": "Additional per-result information, akin to Gmail's SingleThreadResponse. Note: GWS no longer seems to use this field, but there's still one reference to it for Scribe, so we can't remove it." - }, - "typeInfo": { - "$ref": "TypeInfo", - "description": "Contains additional information about the document depending on its type." - } - }, - "type": "object" - }, - "GoogleDocsResultInfo": { - "description": "A message containing information about a specific result. This information is passed to the scorer and beyond; in particular, GWS relies on it to format the result in the UI. Split from GoogleDocsMetadata in case we later want to reuse the message.", - "id": "GoogleDocsResultInfo", - "properties": { - "attachmentSha1": { - "description": "The SHA1 hash of the object in Drive, if any.", - "type": "string" - }, - "cosmoId": { - "$ref": "Id", - "description": "The storage identifier for the object in Cosmo. This field is intended to used by Stratus/Moonshine integration only. It should not be exposed externally (please refer to encrypted_id for that purpose)." - }, - "cosmoNameSpace": { - "description": "For Cosmo objects, the Cosmo namespace the object was in. This allows downstream clients to identify whether a document was created in Writely or Kix, Presently or Punch, or whether it was uploaded from GDrive. See storage_cosmo.Id.NAME_SPACE for a list of all Cosmo name spaces.", - "format": "int32", - "type": "integer" - }, - "encryptedId": { - "description": "The encrypted (user-visible) id of this object. Knowing the id is sufficient to create a canonical URL for this document.", - "type": "string" - }, - "mimeType": { - "description": "The mimetype of the document.", - "type": "string" - }, - "shareScope": { - "$ref": "ShareScope", - "description": "The visibility indicator in the UI will be based upon this." - } - }, - "type": "object" - }, - "Grid": { - "id": "Grid", - "properties": { - "borderStyle": { - "$ref": "BorderStyle", - "description": "The border style to apply to each grid item." - }, - "items": { - "description": "The items to display in the grid.", - "items": { - "$ref": "GridItem" - }, - "type": "array" - }, - "numColumns": { - "description": "The number of columns to display in the grid. Note that a default value will be used if this field is not specified, and that default value will be different depending on where the grid is shown (dialog vs companion).", - "format": "int32", - "type": "integer" - }, - "onClick": { - "$ref": "OnClick", - "description": "This callback will be reused by each individual GridItem, but with the item's identifier and index in the items list added to the callback's parameters." - }, - "title": { - "description": "The text to display in the grid header.", - "type": "string" - } - }, - "type": "object" - }, - "GridItem": { - "id": "GridItem", - "properties": { - "identifier": { - "description": "A user-specified identifier for this grid item. This identifier will be returned in the parent Grid's on_click callback's parameters.", - "type": "string" - }, - "image": { - "$ref": "ImageComponent" - }, - "layout": { - "enum": [ - "NOT_SET", - "TEXT_BELOW", - "TEXT_ABOVE" - ], - "enumDescriptions": [ - "", - "The title and subtitle are shown below the grid item's image.", - "The title and subtitle are shown above the grid item's image." - ], - "type": "string" - }, - "subtitle": { - "type": "string" - }, - "textAlignment": { - "enum": [ - "HORIZONTAL_ALIGNMENT_UNSPECIFIED", - "START", - "CENTER", - "END" - ], - "enumDescriptions": [ - "", - "", - "", - "" - ], - "type": "string" - }, - "title": { - "description": "Text properties.", - "type": "string" - } - }, - "type": "object" - }, - "GroupDetailsUpdatedMetadata": { - "id": "GroupDetailsUpdatedMetadata", - "properties": { - "newGroupDetails": { - "$ref": "AppsDynamiteSharedGroupDetails" - }, - "prevGroupDetails": { - "$ref": "AppsDynamiteSharedGroupDetails" - } - }, - "type": "object" - }, - "GroupId": { - "description": "Id representing a group that could be a space, a chat, or a direct message space. Which ID is set here will determine which group", - "id": "GroupId", - "properties": { - "dmId": { - "$ref": "DmId", - "description": "Unique, immutable ID of the Direct Message Space" - }, - "spaceId": { - "$ref": "SpaceId", - "description": "Unique, immutable ID of the Space" - } - }, - "type": "object" - }, - "GroupLinkSharingModificationEvent": { - "id": "GroupLinkSharingModificationEvent", - "properties": { - "newStatus": { - "enum": [ - "UNKNOWN_LINK_SHARING_STATUS", - "LINK_SHARING_ON", - "LINK_SHARING_OFF", - "NOT_AVAILABLE" - ], - "enumDescriptions": [ - "", - "Link sharing is turned on.", - "Link sharing is turned off.", - "Link sharing is not available for the conversation." - ], - "type": "string" - } - }, - "type": "object" - }, - "GroupRetentionSettingsUpdatedMetaData": { - "id": "GroupRetentionSettingsUpdatedMetaData", - "properties": { - "initiator": { - "$ref": "UserId", - "description": "The user who triggered the retention settings update" - }, - "retentionSettings": { - "$ref": "AppsDynamiteSharedRetentionSettings", - "description": "The updated space retention settings" - } - }, - "type": "object" - }, - "GsuiteIntegrationMetadata": { - "description": "Annotation metadata for a GsuiteIntegration artifact.", - "id": "GsuiteIntegrationMetadata", - "properties": { - "activityFeedData": { - "$ref": "AppsDynamiteSharedActivityFeedAnnotationData" - }, - "assistantData": { - "$ref": "AppsDynamiteSharedAssistantAnnotationData" - }, - "calendarEventData": { - "$ref": "AppsDynamiteSharedCalendarEventAnnotationData" - }, - "callData": { - "$ref": "AppsDynamiteSharedCallAnnotationData", - "description": "Data used to render call artifacts." - }, - "clientType": { - "enum": [ - "UNKNOWN_CLIENT_TYPE", - "MEET", - "TASKS", - "CALENDAR_EVENT", - "ASSISTANT", - "ACTIVITY_FEED_SERVICE" - ], - "enumDescriptions": [ - "", - "", - "", - "", - "", - "" - ], - "type": "string" - }, - "indexableTexts": { - "description": "A list of all strings that are to be indexed for this 1P chip. Each string in this list would be the contents of a single string field in the 1P chip. Eg. For Tasks[title = “hello world”, description = “good bye”]. If we want to index only the title, this would be set to [“hello world”]. If both title and description, then this would be [“hello world”, “good bye”]. Please make sure that the contents of this field is a subset of strings that are rendered as part of the 1P Chip.", - "items": { - "type": "string" - }, - "type": "array" - }, - "tasksData": { - "$ref": "AppsDynamiteSharedTasksAnnotationData" - } - }, - "type": "object" - }, - "HangoutEvent": { - "id": "HangoutEvent", - "properties": { - "hangoutDurationSecs": { - "format": "int64", - "type": "string" - }, - "mediaType": { - "enum": [ - "AUDIO_VIDEO", - "AUDIO_ONLY", - "PUSH_TO_TALK" - ], - "enumDescriptions": [ - "", - "", - "A user has started a PTT broadcast. When receiving a notification with this HangoutMediaType, other users in the conversation will take different actions depending on their active clients: a) If there is a recent \"reasonable\" active client, the user will join hangout and play audio. b) If there is no \"reasonable\" active client an invite will be displayed on all clients." - ], - "type": "string" - }, - "participantId": { - "items": { - "$ref": "StoredParticipantId" - }, - "type": "array" - }, - "type": { - "enum": [ - "START_HANGOUT", - "JOIN_HANGOUT", - "LEAVE_HANGOUT", - "END_HANGOUT", - "HANGOUT_COMING_SOON", - "ONGOING_HANGOUT" - ], - "enumDescriptions": [ - "", - "", - "", - "", - "", - "" - ], - "type": "string" - } - }, - "type": "object" - }, - "HangoutVideoEventMetadata": { - "description": "A message representing the Hangout video start/end events in Babel", - "id": "HangoutVideoEventMetadata", - "properties": { - "hangoutVideoType": { - "enum": [ - "UNKNOWN_HANGOUT_VIDEO_EVENT_TYPE", - "VIDEO_START", - "VIDEO_END" - ], - "enumDescriptions": [ - "", - "", - "" - ], - "type": "string" - } - }, - "type": "object" - }, - "HashtagData": { - "description": "Hashtag metadata, for HASHTAG segments. For a hashtag, the \"text\" field should contain the display text, and the search_text field should represent the topic being referenced, without the hash symbol; for example, we might have: text = \"#Google\" hashtag_data.search_text = \"Google\" Another example: text = \"#pikachu\" hashtag_data.search_text = \"Pokemon\" Both strings should be considered part of the searchable text. In go/sbe, both are indexed and searchable.", - "id": "HashtagData", - "properties": { - "searchText": { - "type": "string" - } - }, - "type": "object" - }, - "History": { - "description": "The most recent history records associated with the item.", - "id": "History", - "properties": { - "record": { - "items": { - "$ref": "HistoryRecord" - }, - "type": "array" - } - }, - "type": "object" - }, - "HistoryRecord": { - "id": "HistoryRecord", - "properties": { - "clientContext": { - "$ref": "ClientContext", - "description": "This will almost always be set, but there are corner cases in which the information is not available, and thus applications must handle its absence appropriately." - }, - "filterUpdate": { - "$ref": "FilterUpdate" - }, - "imapUpdate": { - "$ref": "ImapUpdate" - }, - "labelUpdate": { - "$ref": "LabelUpdate" - }, - "prefUpdate": { - "$ref": "PrefUpdate" - }, - "recordId": { - "description": "Each HistoryRecord has a unique id. Ids are monotonically increasing, and not necessarily contiguous.", - "format": "uint64", - "type": "string" - }, - "threadUpdate": { - "$ref": "ThreadUpdate" - }, - "transactionContext": { - "$ref": "TransactionContext", - "description": "This will almost always be set, but there are corner cases in which the information is not available, and thus applications must handle its absence appropriately." - }, - "txnDebugInfo": { - "$ref": "TransactionDebugInfo" - }, - "type": { - "enum": [ - "UNKNOWN", - "INTERNAL", - "MESSAGE_ADDED", - "MESSAGE_DELETED", - "LABEL_ADDED", - "LABEL_REMOVED", - "ATTRIBUTE_SET", - "ATTRIBUTE_REMOVED", - "THREAD_KEY_SET", - "LABEL_CREATED", - "LABEL_DELETED", - "LABEL_RENAMED", - "LABEL_UPDATED", - "PREF_WRITTEN", - "PREF_DELETED", - "FILTER_CREATED", - "FILTER_DELETED", - "IMAP_UIDS_REASSIGN", - "TOPIC_STATE_UPDATED", - "TXN_DEBUG_INFO" - ], - "enumDescriptions": [ - "Represents a type that is deprecated or not known by the executing code. Even if Fusebox sends a HistoryRecord with Type not UNKNOWN, it may send Type values that are not yet defined on the client-side, in which case they will be appear as Type.UNKNOWN on the client.", - "Represents a change internal to the Fusebox. HistoryRecords for Fusebox internal changes contribute to the user's version, which is defined as the latest HistoryRecord's record_id. INTERNAL HistoryRecords exist to allow a client to update its notion of the latest record_id it has processed, but do not necessarily contain any other information.", - "ThreadUpdate:", - "", - "", - "", - "", - "", - "", - "LabelUpdate:", - "", - "", - "", - "PrefUpdate:", - "", - "FilterUpdate:", - "", - "IMAP", - "EAI", - "TXN_DEBUG_INFO" - ], - "type": "string" - } - }, - "type": "object" - }, - "HostAppActionMarkup": { - "description": "Actions handled by individual host apps.", - "id": "HostAppActionMarkup", - "properties": { - "calendarAction": { - "$ref": "CalendarClientActionMarkup", - "description": "Actions handled by Calendar." - }, - "chatAction": { - "$ref": "ChatClientActionMarkup", - "description": "Actions handled by Chat." - }, - "driveAction": { - "$ref": "DriveClientActionMarkup", - "description": "Actions handled by Drive." - }, - "editorAction": { - "$ref": "EditorClientActionMarkup", - "description": "Actions handled by Docs, Sheets, or Slides." - }, - "gmailAction": { - "$ref": "GmailClientActionMarkup", - "description": "Actions handled by Gmail." - }, - "sheetsAction": { - "$ref": "SheetsClientActionMarkup", - "description": "Actions handled by Sheets." - } - }, - "type": "object" - }, - "HostProto": { - "description": "Represents a single host. Optionally, the MDB owner of the host can be specified.", - "id": "HostProto", - "properties": { - "hostName": { - "description": "Lower-case, fully qualified hostname.", - "type": "string" - }, - "hostOwner": { - "description": "If present, then any checks that compare this Principal to LOAS peer info must confirm the peer's machine owner is equal to 'host_owner'. If absent, then any peer machine owner is acceptable.", - "type": "string" - } - }, - "type": "object" - }, - "HtmlOperatorOptions": { - "description": "Used to provide a search operator for html properties. This is optional. Search operators let users restrict the query to specific fields relevant to the type of item being searched.", - "id": "HtmlOperatorOptions", - "properties": { - "operatorName": { - "description": "Indicates the operator name required in the query in order to isolate the html property. For example, if operatorName is *subject* and the property's name is *subjectLine*, then queries like *subject:\u003cvalue\u003e* show results only where the value of the property named *subjectLine* matches *\u003cvalue\u003e*. By contrast, a search that uses the same *\u003cvalue\u003e* without an operator return all items where *\u003cvalue\u003e* matches the value of any html properties or text within the content field for the item. The operator name can only contain lowercase letters (a-z). The maximum length is 32 characters.", - "type": "string" - } - }, - "type": "object" - }, - "HtmlPropertyOptions": { - "description": "The options for html properties.", - "id": "HtmlPropertyOptions", - "properties": { - "operatorOptions": { - "$ref": "HtmlOperatorOptions", - "description": "If set, describes how the property should be used as a search operator." - }, - "retrievalImportance": { - "$ref": "RetrievalImportance", - "description": "Indicates the search quality importance of the tokens within the field when used for retrieval. Can only be set to DEFAULT or NONE." - } - }, - "type": "object" - }, - "HtmlValues": { - "description": "List of html values.", - "id": "HtmlValues", - "properties": { - "values": { - "description": "The maximum allowable length for html values is 2048 characters.", - "items": { - "type": "string" - }, - "type": "array" - } - }, - "type": "object" - }, - "IconImage": { - "id": "IconImage", - "properties": { - "altText": { - "description": "The alternative text of this icon_url which will be used for accessibility.", - "type": "string" - }, - "icon": { - "enum": [ - "NONE", - "AIRPLANE", - "BOOKMARK", - "BUS", - "CAR", - "CLOCK", - "CONFIRMATION_NUMBER_ICON", - "DOLLAR", - "DESCRIPTION", - "EDIT", - "EDIT_NOTE", - "EMAIL", - "EVENT_PERFORMER", - "EVENT_SEAT", - "FLIGHT_ARRIVAL", - "FLIGHT_DEPARTURE", - "HOTEL", - "HOTEL_ROOM_TYPE", - "INVITE", - "MAP_PIN", - "MEMBERSHIP", - "MULTIPLE_PEOPLE", - "OFFER", - "OPEN_IN_NEW", - "PERSON", - "PHONE", - "RESTAURANT_ICON", - "SHOPPING_CART", - "STAR", - "STORE", - "TICKET", - "TRAIN", - "VIDEO_CAMERA", - "VIDEO_PLAY" - ], - "enumDescriptions": [ - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "Add new items in alphabetical order. Next Available ID: 34" - ], - "type": "string" - }, - "iconUrl": { - "type": "string" - }, - "imageStyle": { - "description": "The image cropping style. Note that icons with a CIRCLE style are rendered larger than the default icon size.", - "enum": [ - "CROP_TYPE_NOT_SET", - "SQUARE", - "CIRCLE", - "RECTANGLE_CUSTOM", - "RECTANGLE_4_3" - ], - "enumDescriptions": [ - "No value specified.", - "Applies a square crop.", - "Applies a circular crop.", - "Applies a rectangular crop with a custom aspect ratio.", - "Applies a rectangular crop with a 4:3 aspect ratio." - ], - "type": "string" - } - }, - "type": "object" - }, - "Id": { - "description": "Identifies a particular object, including both Users and DirEntries. This Id is unique across the entire server instance, such as the production or qa instance.", - "id": "Id", - "properties": { - "creatorUserId": { - "description": "The User account in which the DirEntry was originally created. If name_space==GAIA, then it's the gaia_id of the user this id is referring to. This field should really be called the \"bucket ID\", not the creator ID. In some circumstances, such as copying a Google Docs file, a user can create an item in a different user's bucket, so it should not be relied upon for anything other than bucket location. To look up the requesting user who initially created item, use the `creator_id` DirEntry field instead.", - "format": "uint64", - "type": "string" - }, - "localId": { - "description": "The local identifier for the DirEntry (local to the creator's account). local_id + app_name is guaranteed to be unique within the creator account, but not across all User accounts. The string is case sensitive. Ignore if name_space==GAIA. NB For name_space==COSMO, all local_id's should be defined in google3/java/com/google/storage/cosmo/server/api/SpecialObjectIds.java as they have a special predefined meaning. See cosmo.client.CosmoIdFactory.createObjectId(long,String) for IMPORTANT recommendations when generating IDs.", - "type": "string" - }, - "nameSpace": { - "description": "The name space in which this id is unique (typically the application that created it). Values should be drawn from the above enum, but for experimentation, use values greater than 1000.", - "format": "int32", - "type": "integer" - } - }, - "type": "object" - }, - "Image": { - "id": "Image", - "properties": { - "altText": { - "description": "The alternative text of this image which will be used for accessibility.", - "type": "string" - }, - "aspectRatio": { - "description": "The aspect ratio of this image (width/height).", - "format": "double", - "type": "number" - }, - "imageUrl": { - "description": "Image url specified by developers. Server side, we will wrap with FIFE so client apps can configure size/cropping/etc.", - "type": "string" - }, - "onClick": { - "$ref": "OnClick" - } - }, - "type": "object" - }, - "ImageButton": { - "id": "ImageButton", - "properties": { - "icon": { - "enum": [ - "NONE", - "AIRPLANE", - "BOOKMARK", - "BUS", - "CAR", - "CLOCK", - "CONFIRMATION_NUMBER_ICON", - "DOLLAR", - "DESCRIPTION", - "EDIT", - "EDIT_NOTE", - "EMAIL", - "EVENT_PERFORMER", - "EVENT_SEAT", - "FLIGHT_ARRIVAL", - "FLIGHT_DEPARTURE", - "HOTEL", - "HOTEL_ROOM_TYPE", - "INVITE", - "MAP_PIN", - "MEMBERSHIP", - "MULTIPLE_PEOPLE", - "OFFER", - "OPEN_IN_NEW", - "PERSON", - "PHONE", - "RESTAURANT_ICON", - "SHOPPING_CART", - "STAR", - "STORE", - "TICKET", - "TRAIN", - "VIDEO_CAMERA", - "VIDEO_PLAY" - ], - "enumDescriptions": [ - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "Add new items in alphabetical order. Next Available ID: 34" - ], - "type": "string" - }, - "iconUrl": { - "type": "string" - }, - "name": { - "type": "string" - }, - "onClick": { - "$ref": "OnClick" - } - }, - "type": "object" - }, - "ImageComponent": { - "description": "NOTE: Through future refactoring work, this image component will eventually be used in the Image widget, and will likely replace the Icon proto as well.", - "id": "ImageComponent", - "properties": { - "altText": { - "type": "string" - }, - "borderStyle": { - "$ref": "BorderStyle" - }, - "cropStyle": { - "$ref": "ImageCropStyle" - }, - "imageUrl": { - "type": "string" - } - }, - "type": "object" - }, - "ImageCropStyle": { - "description": "Represents a crop style that can be applied to an image.", - "id": "ImageCropStyle", - "properties": { - "aspectRatio": { - "description": "The aspect ratio to use if the crop type is RECTANGLE_CUSTOM.", - "format": "double", - "type": "number" - }, - "type": { - "description": "The crop type.", - "enum": [ - "CROP_TYPE_NOT_SET", - "SQUARE", - "CIRCLE", - "RECTANGLE_CUSTOM", - "RECTANGLE_4_3" - ], - "enumDescriptions": [ - "No value specified.", - "Applies a square crop.", - "Applies a circular crop.", - "Applies a rectangular crop with a custom aspect ratio.", - "Applies a rectangular crop with a 4:3 aspect ratio." - ], - "type": "string" - } - }, - "type": "object" - }, - "ImageKeyValue": { - "description": "This is deprecated and please use KeyValue.", - "id": "ImageKeyValue", - "properties": { - "icon": { - "enum": [ - "NONE", - "AIRPLANE", - "BOOKMARK", - "BUS", - "CAR", - "CLOCK", - "CONFIRMATION_NUMBER_ICON", - "DOLLAR", - "DESCRIPTION", - "EDIT", - "EDIT_NOTE", - "EMAIL", - "EVENT_PERFORMER", - "EVENT_SEAT", - "FLIGHT_ARRIVAL", - "FLIGHT_DEPARTURE", - "HOTEL", - "HOTEL_ROOM_TYPE", - "INVITE", - "MAP_PIN", - "MEMBERSHIP", - "MULTIPLE_PEOPLE", - "OFFER", - "OPEN_IN_NEW", - "PERSON", - "PHONE", - "RESTAURANT_ICON", - "SHOPPING_CART", - "STAR", - "STORE", - "TICKET", - "TRAIN", - "VIDEO_CAMERA", - "VIDEO_PLAY" - ], - "enumDescriptions": [ - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "Add new items in alphabetical order. Next Available ID: 34" - ], - "type": "string" - }, - "iconUrl": { - "type": "string" - }, - "onClick": { - "$ref": "OnClick" - }, - "text": { - "type": "string" - } - }, - "type": "object" - }, - "ImapSessionContext": { - "id": "ImapSessionContext", - "properties": { - "app": { - "enum": [ - "OTHER_APP", - "CHROME", - "FIREFOX", - "MSIE", - "SAFARI", - "OPERA", - "EDGE", - "MSIE_COMPATIBILITY", - "OTHER_BROWSER", - "SAMSUNG_BROWSER", - "UC_BROWSER", - "ANDROID_BROWSER", - "YANDEX_BROWSER", - "SILK_BROWSER", - "COC_COC_BROWSER", - "HEADLESS_CHROME", - "MAX_BROWSER_APP_VALUE", - "GMAIL_APP", - "GMAIL_INBOX_APP", - "ANDROID_EMAIL_APP", - "SAMSUNG_MAIL_APP", - "MOTO_EMAIL_APP", - "BOXER_APP", - "LIMILABS_MAIL_DLL", - "BIS_APP", - "OUTLOOK_MAIL_APP", - "APPLE_NATIVE_APP", - "CHROME_WEBVIEW_APP", - "SAFARI_WEBVIEW_APP", - "CHROME_SYNC_APP", - "GSA_APP", - "GMM_APP", - "CALENDAR_APP", - "PLUS_APP", - "HANGOUTS_APP", - "HANGOUTS_MEET_APP", - "JAMBOARD_APP", - "VOICE_APP", - "PHOTOS_APP", - "DRIVE_SYNC_APP", - "DRIVE_APP", - "DOCS_APP", - "SHEETS_APP", - "SLIDES_APP", - "KEEP_APP", - "WHATS_APP_IN_DRIVE_APP", - "TRANSLATE_APP", - "YOUTUBE_APP", - "YOUTUBE_MUSIC_APP", - "YOUTUBE_GAMING_APP", - "YOUTUBE_KIDS_APP", - "YOUTUBE_CAPTURE_APP", - "YOUTUBE_CREATOR_APP", - "YOUTUBE_GO_APP", - "YOUTUBE_TV_APP", - "YOUTUBE_VR_APP", - "PLAY_APP", - "PLAY_MUSIC_APP", - "PLAY_BOOKS_APP", - "PLAY_MOVIES_APP", - "PLAY_NEWSSTAND_APP", - "PLAY_GAMES_APP", - "POKEMON_GO_APP", - "ALLO_APP", - "DUO_APP", - "CLASSROOM_APP", - "TRIPS_APP", - "GOOGLE_PAY_APP", - "WAZE_APP", - "ASSISTANT_APP", - "GBOARD_APP", - "NEWS_APP", - "HOME_APP", - "EARTH_APP", - "STREET_VIEW_APP", - "TEZ_APP", - "GOOGLE_ANALYTICS_APP", - "ADSENSE_APP", - "ADWORDS_APP", - "EXPRESS_APP", - "WEAR_APP", - "GOOGLE_MY_BUSINESS_APP", - "FAMILY_LINK_APP", - "OPINION_REWARDS_APP", - "WALLET_APP", - "ARTS_AND_CULTURE_APP", - "ANDROID_DEVICE_MANAGER_APP", - "GOOGLE_GO_APP", - "FILES_GO_APP", - "DATALLY_APP", - "WIFI_APP", - "STADIA_APP", - "BATTLESTAR_APP", - "SMART_LOCK_APP", - "LOGDOG_APP", - "DEPRECATED_MAC_OSX_MAIL_APP", - "DEPRECATED_IOS_MAIL_APP" - ], - "enumDescriptions": [ - "Unknown", - "Browsers Google Chrome", - "Mozilla Firefox", - "Microsoft Internet Explorer", - "Apple Safari", - "Opera", - "Tag #7 used to be CHROME_WEBVIEW, which was deprecated and replaced by CHROME_WEBVIEW_APP. When adding a new browser, skip #7 for safety. Microsoft Edge", - "MSIE in Compatibility View. See b/22467241.", - "Browser not otherwise specified", - "Samsung browser on Android", - "UC Browser", - "Android's legacy default AOSP browser (distinct", - "from customized OEM flavours). Yandex Browser", - "Amazon Silk browser", - "Popoular browser in Vietnam", - "Headless version of Chrome", - "Tag for the maximum enum value that represents a browser. Enum values (strictly) between OTHER_APP and this value represent browsers. This should never appear in real data.", - "Email apps Gmail", - "Inbox by Gmail", - "Native Android email app", - "(replaced by Gmail in Lollipop) Samsung mail", - "Motorola email app", - "Boxer", - "Mail.dll by Limilabs", - "BlackBerry Internet Service", - "Microsoft Outlook", - "Apple apps (mail, contacts \u0026 calendar)", - "Chrome Webview", - "Safari Webview", - "Chrome Sync", - "Includes both Now and Search on GSA.", - "Maps", - "Calendar", - "Google+", - "Hangouts Classic", - "Hangouts Meet", - "Jamboard app (go/jamboard)", - "Google Voice", - "Photos", - "Drive Sync", - "Drive", - "Docs", - "Sheets", - "Slides", - "Keep", - "WhatsApp in Drive", - "Translate", - "YouTube", - "YouTube Music", - "YouTube Gaming", - "YouTube Kids", - "YouTube Capture", - "YouTube Creator Studio", - "YouTube Go", - "YouTube TV", - "YouTube VR", - "Google Play", - "Google Play Music", - "Google Play Books", - "Google Play Movies \u0026 TV", - "Google Play Newsstand", - "Google Play Games", - "Pokemon GO (uses Google to sign in)", - "Allo", - "Duo", - "Google Classroom", - "Google Trips", - "Google Pay (formerly Android Pay)", - "Waze", - "Google Assistant standalone app. iOS only,", - "since on Android OPA is integrated in GSA. Gboard - the Google Keyboard", - "Google News \u0026 Weather", - "Google Home app (rebranded from Chromecast app)", - "Google Earth", - "Google Street View", - "Tez payment app for India (go/paisa)", - "Google Analytics", - "AdSense", - "AdWords", - "Google Express (formerly Shopping Express)", - "Android Wear companion app", - "Google My Business", - "Google Family Link", - "Google Opinion Rewards", - "Google Wallet", - "Google Arts \u0026 Culture", - "Android Device Manager", - "Google Go", - "Files Go", - "Datally", - "Google Wifi (incl. OnHub)", - "Stadia (go/stadia)", - "Battlestar (go/battlestar)", - "SmartLock", - "Non-browser, non-mail, non-first-party apps LogDog (https://getlogdog.com/)", - "Do not remove this fields - remvoing them caused issues in the past (see cl/180425348 for reference).", - "" - ], - "type": "string" - }, - "deviceType": { - "description": "User agent information", - "enum": [ - "UNKNOWN", - "PC", - "MOBILE", - "TABLET", - "PORTABLE_MEDIA_PLAYER", - "TV", - "GAME_CONSOLE", - "MEDIA_PLAYER", - "SMART_SPEAKER", - "SMART_DISPLAY", - "CONNECTED_HOME_OTHER", - "WEARABLE", - "GLASS", - "CAR", - "VR_HEADSET" - ], - "enumDescriptions": [ - "Unknown device type.", - "PCs (incl. Macs). Desktops, laptops and various niche form factors that typically run desktop-class OSes (all-in-ones, HTPCs etc.).", - "Primarily used for phones, but also set as default for OSes that are predominantly for phones (Android, iOS etc.) when we can't determine otherwise.", - "Tablets.", - "Mobile devices which are not phones, but are capable of storing and playing digital media such as audio, images, and video files. Example: iPod.", - "Smart TVs which interact with Google products without an external additional device. Includes TV sets which run Android TV directly. Refers to actual TV screens, rather than connected boxes or dongles.", - "Devices whose primary purpose is playing games. Examples: Xbox, Playstation.", - "Add-on devices (i.e. devices which require connecting to another device, such as screens/TVs/speakers) whose primary purpose is media consumption (excludes physical TV screens). Examples: Chromecast, Roku, Apple TV, Nexus Player.", - "Examples: Google Home, Amazon Echo.", - "Examples: Google Home Display (Quartz/Manhattan/Jasper/Dragonglass), Amazon Echo Spot, Amazon Echo Show.", - "Other connected home devices which do not fit in any of the above categories; that is, neither media- or gaming-focused, nor primarily a voice-enabled speaker.", - "Wearable devices such as smartwatches.", - "Google Glass.", - "Examples: Android Auto (Embedded mode, not mirrored from phone).", - "Standalone VR headsets, such as the Lenovo Mirage Solo. Does not include phone-based VR (such as Daydream View or Gear VR) or PC/Console-based such as Oculus Rift, HTC Vive and PSVR; in such cases, the form factor may be PHONE, PC or GAME_CONSOLE as applicable." - ], - "type": "string" - }, - "guidFingerprint": { - "description": "As agreed with Bond team, this holds the fingerprint of any \"aguid\" or \"guid\" provided by the ID command. The fingerprint should be calculated by fingerprint2011. Note that not all clients will provide aguid or guid through ID command.", - "format": "uint64", - "type": "string" - }, - "os": { - "enum": [ - "UNKNOWN_OS", - "ANDROID_OS", - "IOS_OS", - "BLACKBERRY_OS", - "WIN_PHONE_OS", - "FIRE_OS", - "MAX_MOBILE_OS_VALUE", - "WINDOWS_OS", - "LINUX_OS", - "MAC_OS", - "CHROME_OS", - "PLAYSTATION_OS", - "XBOX_OS", - "TIZEN_OS", - "APPLE_TV_OS", - "KAI_OS", - "ANDROID_THINGS_OS", - "CAST_OS", - "STADIA_OS" - ], - "enumDescriptions": [ - "", - "Mobile operating systems (1-99).", - "", - "", - "", - "Amazon Fire OS (for Kindle Fire devices or Fire TV).", - "Tag for the maximum enum value that represents a mobile OS. Enum values (strictly) between UNKNOWN_OS and this value represent mobile OSes. This should never appear in real data.", - "PC operating systems.", - "", - "", - "", - "The OS powering Playstation consoles. Ignores OS changes across console generations.", - "The Windows-derived OS used on Xbox consoles.", - "Tizen OS, popular in Samsung TVs, watches and more.", - "Apple tvOS (powering the Apple TV).", - "KaiOS, a fork from Firefox OS that is between a full smartphone and a feature phone. Notably, it supports the Google Assistant. go/kaiosama", - "Android optimized for IoT devices. go/things", - "Cast family devices, including Chromecast, Google Home, and third-party speaker with integrated Assistant.", - "Stadia on Cast devices. This is not truly an OS, but it's a temporary setting since Stadia uses a different sign-in flow (and is revoked differently) from Cast. See http://go/stadia-in-google-account. Do not use without discussing with id-devices-eng@." - ], - "type": "string" - }, - "osVersion": { - "$ref": "OsVersion" - }, - "possiblyTrimmedModel": { - "$ref": "PossiblyTrimmedModel" - } - }, - "type": "object" - }, - "ImapSyncDelete": { - "description": "Message delete history record extension that exports //imapsync/folder attribute of deleted messages which have ^is label.", - "id": "ImapSyncDelete", - "properties": { - "mappings": { - "$ref": "FolderAttribute", - "description": "Contains the value of //imapsync/folder attribute of deleted message." - }, - "msgId": { - "format": "uint64", - "type": "string" - } - }, - "type": "object" - }, - "ImapUidsReassign": { - "id": "ImapUidsReassign", - "properties": { - "labelId": { - "description": "Label", - "type": "string" - }, - "messageId": { - "description": "The message Ids", - "items": { - "format": "uint64", - "type": "string" - }, - "type": "array" - } - }, - "type": "object" - }, - "ImapUpdate": { - "description": "HistoryRecord for changes associated with IMAP, namely: IMAP_UIDS_REASSIGN", - "id": "ImapUpdate", - "properties": { - "imapUidsReassign": { - "$ref": "ImapUidsReassign" - } - }, - "type": "object" - }, - "ImapsyncFolderAttributeFolderMessage": { - "id": "ImapsyncFolderAttributeFolderMessage", - "properties": { - "flags": { - "$ref": "ImapsyncFolderAttributeFolderMessageFlags", - "description": "Flags of the message. Represents unseen and flagged state." - }, - "uid": { - "description": "UID of the message.", - "format": "uint64", - "type": "string" - } - }, - "type": "object" - }, - "ImapsyncFolderAttributeFolderMessageFlags": { - "id": "ImapsyncFolderAttributeFolderMessageFlags", - "properties": { - "flagged": { - "description": "Flagged state of the message.", - "type": "boolean" - }, - "seen": { - "description": "Seen state of the message.", - "type": "boolean" - } - }, - "type": "object" - }, - "IncomingWebhookChangedMetadata": { - "description": "Annotation metadata to display system messages for incoming webhook events. Next Tag: 7", - "id": "IncomingWebhookChangedMetadata", - "properties": { - "incomingWebhookName": { - "description": "The webhook name at the time of the change. Used in Spanner storage, BE API responses and FE API responses.", - "type": "string" - }, - "initiatorId": { - "$ref": "UserId", - "description": "The user id of the user whose action triggered this system message. Used in Spanner storage, BE API responses and FE API responses." - }, - "initiatorProfile": { - "$ref": "User", - "description": "Complete profile when ListTopicsRequest FetchOptions.USER is set. Otherwise, only the id will be filled in. Used in FE API responses." - }, - "obfuscatedIncomingWebhookId": { - "description": "The webhook id of the incoming webhook in question. This field should not be used to load webhook information dynamically and is only present for debugging purposes. Used in Spanner storage, BE API responses and FE API responses.", - "type": "string" - }, - "oldIncomingWebhookName": { - "description": "Only populated for UPDATED_NAME and UPDATED_NAME_AND_AVATAR events, where the webhook name was changed. Used in Spanner storage, BE API responses and FE API responses.", - "type": "string" - }, - "type": { - "description": "Used in Spanner storage, BE API responses and FE API responses.", - "enum": [ - "UNSPECIFIED", - "ADDED", - "UPDATED", - "REMOVED", - "UPDATED_NAME", - "UPDATED_AVATAR", - "UPDATED_NAME_AND_AVATAR" - ], - "enumDescriptions": [ - "", - "", - "TODO (b/154857280): remove UPDATED field.", - "", - "", - "", - "" - ], - "type": "string" - } - }, - "type": "object" - }, - "IndexItemOptions": { - "id": "IndexItemOptions", - "properties": { - "allowUnknownGsuitePrincipals": { - "description": "Specifies if the index request should allow Google Workspace principals that do not exist or are deleted.", - "type": "boolean" - } - }, - "type": "object" - }, - "IndexItemRequest": { - "id": "IndexItemRequest", - "properties": { - "connectorName": { - "description": "The name of connector making this call. Format: datasources/{source_id}/connectors/{ID}", - "type": "string" - }, - "debugOptions": { - "$ref": "DebugOptions", - "description": "Common debug options." - }, - "indexItemOptions": { - "$ref": "IndexItemOptions" - }, - "item": { - "$ref": "Item", - "description": "The name of the item. Format: datasources/{source_id}/items/{item_id}" - }, - "mode": { - "description": "Required. The RequestMode for this request.", - "enum": [ - "UNSPECIFIED", - "SYNCHRONOUS", - "ASYNCHRONOUS" - ], - "enumDescriptions": [ - "The priority is not specified in the update request. Leaving priority unspecified results in an update failure.", - "For real-time updates.", - "For changes that are executed after the response is sent back to the caller." - ], - "type": "string" - } - }, - "type": "object" - }, - "InitializeCustomerRequest": { - "description": "Request message for `InitializeCustomer` method.", - "id": "InitializeCustomerRequest", - "properties": {}, - "type": "object" - }, - "InsertContent": { - "id": "InsertContent", - "properties": { - "content": { - "description": "The content to be inserted.", - "type": "string" - }, - "contentType": { - "description": "The type of inserted content.", - "enum": [ - "UNSPECIFIED_CONTENT_TYPE", - "TEXT", - "MUTABLE_HTML", - "IMMUTABLE_HTML" - ], - "enumDescriptions": [ - "Default value when nothing is set for ContentType.", - "Specifies that the content is in plain text.", - "Specifies that the content is in HTML and is mutable (can be edited).", - "Specifies that the content is in HTML and is immutable (cannot be edited)." - ], - "type": "string" - }, - "mimeType": { - "enum": [ - "UNSPECIFIED_EMAIL_MIME_TYPE", - "PLAIN_TEXT", - "HTML" - ], - "enumDescriptions": [ - "Default value when nothing is set for EmailMimeType.", - "Specifies that the inserted content is in plain text.", - "Specifies that the inserted content is in HTML." - ], - "type": "string" - } - }, - "type": "object" - }, - "IntegerFacetingOptions": { - "description": "Used to specify integer faceting options.", - "id": "IntegerFacetingOptions", - "properties": { - "integerBuckets": { - "description": "Buckets for given integer values should be in strictly ascending order. For example, if values supplied are (1,5,10,100), the following facet buckets will be formed {\u003c1, [1,5), [5-10), [10-100), \u003e=100}.", - "items": { - "format": "int64", - "type": "string" - }, - "type": "array" - } - }, - "type": "object" - }, - "IntegerOperatorOptions": { - "description": "Used to provide a search operator for integer properties. This is optional. Search operators let users restrict the query to specific fields relevant to the type of item being searched.", - "id": "IntegerOperatorOptions", - "properties": { - "greaterThanOperatorName": { - "description": "Indicates the operator name required in the query in order to isolate the integer property using the greater-than operator. For example, if greaterThanOperatorName is *priorityabove* and the property's name is *priorityVal*, then queries like *priorityabove:\u003cvalue\u003e* show results only where the value of the property named *priorityVal* is greater than *\u003cvalue\u003e*. The operator name can only contain lowercase letters (a-z). The maximum length is 32 characters.", - "type": "string" - }, - "lessThanOperatorName": { - "description": "Indicates the operator name required in the query in order to isolate the integer property using the less-than operator. For example, if lessThanOperatorName is *prioritybelow* and the property's name is *priorityVal*, then queries like *prioritybelow:\u003cvalue\u003e* show results only where the value of the property named *priorityVal* is less than *\u003cvalue\u003e*. The operator name can only contain lowercase letters (a-z). The maximum length is 32 characters.", - "type": "string" - }, - "operatorName": { - "description": "Indicates the operator name required in the query in order to isolate the integer property. For example, if operatorName is *priority* and the property's name is *priorityVal*, then queries like *priority:\u003cvalue\u003e* show results only where the value of the property named *priorityVal* matches *\u003cvalue\u003e*. By contrast, a search that uses the same *\u003cvalue\u003e* without an operator returns all items where *\u003cvalue\u003e* matches the value of any String properties or text within the content field for the item. The operator name can only contain lowercase letters (a-z). The maximum length is 32 characters.", - "type": "string" - } - }, - "type": "object" - }, - "IntegerPropertyOptions": { - "description": "The options for integer properties.", - "id": "IntegerPropertyOptions", - "properties": { - "integerFacetingOptions": { - "$ref": "IntegerFacetingOptions", - "description": "If set, describes integer faceting options for the given integer property. The corresponding integer property should be marked isFacetable." - }, - "maximumValue": { - "description": "The maximum value of the property. The minimum and maximum values for the property are used to rank results according to the ordered ranking. Indexing requests with values greater than the maximum are accepted and ranked with the same weight as items indexed with the maximum value.", - "format": "int64", - "type": "string" - }, - "minimumValue": { - "description": "The minimum value of the property. The minimum and maximum values for the property are used to rank results according to the ordered ranking. Indexing requests with values less than the minimum are accepted and ranked with the same weight as items indexed with the minimum value.", - "format": "int64", - "type": "string" - }, - "operatorOptions": { - "$ref": "IntegerOperatorOptions", - "description": "If set, describes how the integer should be used as a search operator." - }, - "orderedRanking": { - "description": "Used to specify the ordered ranking for the integer. Can only be used if isRepeatable is false.", - "enum": [ - "NO_ORDER", - "ASCENDING", - "DESCENDING" - ], - "enumDescriptions": [ - "There is no ranking order for the property. Results are not adjusted by this property's value.", - "This property is ranked in ascending order. Lower values indicate lower ranking.", - "This property is ranked in descending order. Lower values indicate higher ranking." - ], - "type": "string" - } - }, - "type": "object" - }, - "IntegerValues": { - "description": "List of integer values.", - "id": "IntegerValues", - "properties": { - "values": { - "items": { - "format": "int64", - "type": "string" - }, - "type": "array" - } - }, - "type": "object" - }, - "IntegrationConfigMutation": { - "id": "IntegrationConfigMutation", - "properties": { - "addApp": { - "$ref": "AppId", - "description": "Add an app using its identifier." - }, - "addPinnedItem": { - "$ref": "PinnedItemId", - "description": "Add a pinned tab using its identifier." - }, - "removeApp": { - "$ref": "AppId", - "description": "Remove an active app using its identifier." - }, - "removePinnedItem": { - "$ref": "PinnedItemId", - "description": "Remove an active pinned tab using its identifier." - } - }, - "type": "object" - }, - "IntegrationConfigUpdatedMetadata": { - "description": "Annotation metadata to display system message for integration config updated event. This metadata is stored in spanner, and can be dispatched to clients without any field modification or transformation.", - "id": "IntegrationConfigUpdatedMetadata", - "properties": { - "initiatorId": { - "$ref": "UserId", - "description": "The user whose action triggered this system message." - }, - "mutations": { - "description": "A list of updates applied on the integration config.", - "items": { - "$ref": "IntegrationConfigMutation" - }, - "type": "array" - } - }, - "type": "object" - }, - "Interaction": { - "description": "Represents an interaction between a user and an item.", - "id": "Interaction", - "properties": { - "interactionTime": { - "description": "The time when the user acted on the item. If multiple actions of the same type exist for a single user, only the most recent action is recorded.", - "format": "google-datetime", - "type": "string" - }, - "principal": { - "$ref": "Principal", - "description": "The user that acted on the item." - }, - "type": { - "enum": [ - "UNSPECIFIED", - "VIEW", - "EDIT" - ], - "enumDescriptions": [ - "Invalid value.", - "This interaction indicates the user viewed the item.", - "This interaction indicates the user edited the item." - ], - "type": "string" - } - }, - "type": "object" - }, - "InteractionData": { - "description": "Interaction data for an annotation, which may be supplemental to the metadata oneof. For example, this will contain the fully built navigation target for smart chips. NEXT TAG: 2", - "id": "InteractionData", - "properties": { - "url": { - "$ref": "SafeUrlProto", - "description": "A general navigation target associated with the annotation this message is contained in. For smart chips, this will be the destination of the tap/click target and will be returned by the server. For scenarios where the chip originated from a user-provided url, this value will be provided by clients; otherwise it will be built by the corresponding metadata parts." - } - }, - "type": "object" - }, - "InviteAcceptedEvent": { - "id": "InviteAcceptedEvent", - "properties": { - "participantId": { - "items": { - "$ref": "StoredParticipantId" - }, - "type": "array" - } - }, - "type": "object" - }, - "InviteeInfo": { - "description": "Invitee information from a Dynamite invitation. See go/dynamite-invitee-mgmt.", - "id": "InviteeInfo", - "properties": { - "email": { - "description": "Email as typed by the user when invited to Room or DM. This value will be canonicalized and hashed before retained in storage.", - "type": "string" - }, - "userId": { - "$ref": "UserId", - "description": "Unique, immutable ID of the User." - } - }, - "type": "object" - }, - "Item": { - "description": "Represents a single object that is an item in the search index, such as a file, folder, or a database record.", - "id": "Item", - "properties": { - "acl": { - "$ref": "ItemAcl", - "description": "Access control list for this item." - }, - "content": { - "$ref": "ItemContent", - "description": "Item content to be indexed and made text searchable." - }, - "itemType": { - "description": "The type for this item.", - "enum": [ - "UNSPECIFIED", - "CONTENT_ITEM", - "CONTAINER_ITEM", - "VIRTUAL_CONTAINER_ITEM" - ], - "enumDescriptions": [ - "", - "An item that is indexed for the only purpose of serving information. These items cannot be referred in containerName or inheritAclFrom fields.", - "An item that gets indexed and whose purpose is to supply other items with ACLs and/or contain other items.", - "An item that does not get indexed, but otherwise has the same purpose as CONTAINER_ITEM." - ], - "type": "string" - }, - "metadata": { - "$ref": "ItemMetadata", - "description": "The metadata information." - }, - "name": { - "description": "The name of the Item. Format: datasources/{source_id}/items/{item_id} This is a required field. The maximum length is 1536 characters.", - "type": "string" - }, - "payload": { - "description": "Additional state connector can store for this item. The maximum length is 10000 bytes.", - "format": "byte", - "type": "string" - }, - "queue": { - "description": "Queue this item belongs to. The maximum length is 100 characters.", - "type": "string" - }, - "status": { - "$ref": "ItemStatus", - "description": "Status of the item. Output only field." - }, - "structuredData": { - "$ref": "ItemStructuredData", - "description": "The structured data for the item that should conform to a registered object definition in the schema for the data source." - }, - "version": { - "description": "Required. The indexing system stores the version from the datasource as a byte string and compares the Item version in the index to the version of the queued Item using lexical ordering. Cloud Search Indexing won't index or delete any queued item with a version value that is less than or equal to the version of the currently indexed item. The maximum length for this field is 1024 bytes. For information on how item version affects the deletion process, refer to [Handle revisions after manual deletes](https://developers.google.com/cloud-search/docs/guides/operations).", - "format": "byte", - "type": "string" - } - }, - "type": "object" - }, - "ItemAcl": { - "description": "Access control list information for the item. For more information see [Map ACLs](https://developers.google.com/cloud-search/docs/guides/acls).", - "id": "ItemAcl", - "properties": { - "aclInheritanceType": { - "description": "Sets the type of access rules to apply when an item inherits its ACL from a parent. This should always be set in tandem with the inheritAclFrom field. Also, when the inheritAclFrom field is set, this field should be set to a valid AclInheritanceType.", - "enum": [ - "NOT_APPLICABLE", - "CHILD_OVERRIDE", - "PARENT_OVERRIDE", - "BOTH_PERMIT" - ], - "enumDescriptions": [ - "The default value when this item does not inherit an ACL. Use NOT_APPLICABLE when inheritAclFrom is empty. An item without ACL inheritance can still have ACLs supplied by its own readers and deniedReaders fields.", - "During an authorization conflict, the ACL of the child item determines its read access.", - "During an authorization conflict, the ACL of the parent item specified in the inheritAclFrom field determines read access.", - "Access is granted only if this item and the parent item specified in the inheritAclFrom field both permit read access." - ], - "type": "string" - }, - "deniedReaders": { - "description": "List of principals who are explicitly denied access to the item in search results. While principals are denied access by default, use denied readers to handle exceptions and override the list allowed readers. The maximum number of elements is 100.", - "items": { - "$ref": "Principal" - }, - "type": "array" - }, - "inheritAclFrom": { - "description": "The name of the item to inherit the Access Permission List (ACL) from. Note: ACL inheritance *only* provides access permissions to child items and does not define structural relationships, nor does it provide convenient ways to delete large groups of items. Deleting an ACL parent from the index only alters the access permissions of child items that reference the parent in the inheritAclFrom field. The item is still in the index, but may not visible in search results. By contrast, deletion of a container item also deletes all items that reference the container via the containerName field. The maximum length for this field is 1536 characters.", - "type": "string" - }, - "owners": { - "description": "Optional. List of owners for the item. This field has no bearing on document access permissions. It does, however, offer a slight ranking boosts items where the querying user is an owner. The maximum number of elements is 5.", - "items": { - "$ref": "Principal" - }, - "type": "array" - }, - "readers": { - "description": "List of principals who are allowed to see the item in search results. Optional if inheriting permissions from another item or if the item is not intended to be visible, such as virtual containers. The maximum number of elements is 1000.", - "items": { - "$ref": "Principal" - }, - "type": "array" - } - }, - "type": "object" - }, - "ItemContent": { - "description": "Content of an item to be indexed and surfaced by Cloud Search. Only UTF-8 encoded strings are allowed as inlineContent. If the content is uploaded and not binary, it must be UTF-8 encoded.", - "id": "ItemContent", - "properties": { - "contentDataRef": { - "$ref": "UploadItemRef", - "description": "Upload reference ID of a previously uploaded content via write method." - }, - "contentFormat": { - "enum": [ - "UNSPECIFIED", - "HTML", - "TEXT", - "RAW" - ], - "enumDescriptions": [ - "Invalid value.", - "contentFormat is HTML.", - "contentFormat is free text.", - "contentFormat is raw bytes." - ], - "type": "string" - }, - "hash": { - "description": "Hashing info calculated and provided by the API client for content. Can be used with the items.push method to calculate modified state. The maximum length is 2048 characters.", - "type": "string" - }, - "inlineContent": { - "description": "Content that is supplied inlined within the update method. The maximum length is 102400 bytes (100 KiB).", - "format": "byte", - "type": "string" - } - }, - "type": "object" - }, - "ItemCountByStatus": { - "id": "ItemCountByStatus", - "properties": { - "count": { - "description": "Number of items matching the status code.", - "format": "int64", - "type": "string" - }, - "indexedItemsCount": { - "description": "Number of items matching the status code for which billing is done. This excludes virtual container items from the total count. This count would not be applicable for items with ERROR or NEW_ITEM status code.", - "format": "int64", - "type": "string" - }, - "statusCode": { - "description": "Status of the items.", - "enum": [ - "CODE_UNSPECIFIED", - "ERROR", - "MODIFIED", - "NEW_ITEM", - "ACCEPTED" - ], - "enumDescriptions": [ - "Input-only value. Used with Items.list to list all items in the queue, regardless of status.", - "Error encountered by Cloud Search while processing this item. Details of the error are in repositoryError.", - "Item has been modified in the repository, and is out of date with the version previously accepted into Cloud Search.", - "Item is known to exist in the repository, but is not yet accepted by Cloud Search. An item can be in this state when Items.push has been called for an item of this name that did not exist previously.", - "API has accepted the up-to-date data of this item." - ], - "type": "string" - } - }, - "type": "object" - }, - "ItemMetadata": { - "description": "Available metadata fields for the item.", - "id": "ItemMetadata", - "properties": { - "containerName": { - "description": "The name of the container for this item. Deletion of the container item leads to automatic deletion of this item. Note: ACLs are not inherited from a container item. To provide ACL inheritance for an item, use the inheritAclFrom field. The maximum length is 1536 characters.", - "type": "string" - }, - "contentLanguage": { - "description": "The BCP-47 language code for the item, such as \"en-US\" or \"sr-Latn\". For more information, see http://www.unicode.org/reports/tr35/#Unicode_locale_identifier. The maximum length is 32 characters.", - "type": "string" - }, - "contextAttributes": { - "description": "A set of named attributes associated with the item. This can be used for influencing the ranking of the item based on the context in the request. The maximum number of elements is 10.", - "items": { - "$ref": "ContextAttribute" - }, - "type": "array" - }, - "createTime": { - "description": "The time when the item was created in the source repository.", - "format": "google-datetime", - "type": "string" - }, - "hash": { - "description": "Hashing value provided by the API caller. This can be used with the items.push method to calculate modified state. The maximum length is 2048 characters.", - "type": "string" - }, - "interactions": { - "description": "A list of interactions for the item. Interactions are used to improve Search quality, but are not exposed to end users. The maximum number of elements is 1000.", - "items": { - "$ref": "Interaction" - }, - "type": "array" - }, - "keywords": { - "description": "Additional keywords or phrases that should match the item. Used internally for user generated content. The maximum number of elements is 100. The maximum length is 8192 characters.", - "items": { - "type": "string" - }, - "type": "array" - }, - "mimeType": { - "description": "The original mime-type of ItemContent.content in the source repository. The maximum length is 256 characters.", - "type": "string" - }, - "objectType": { - "description": "The type of the item. This should correspond to the name of an object definition in the schema registered for the data source. For example, if the schema for the data source contains an object definition with name 'document', then item indexing requests for objects of that type should set objectType to 'document'. The maximum length is 256 characters.", - "type": "string" - }, - "searchQualityMetadata": { - "$ref": "SearchQualityMetadata", - "description": "Additional search quality metadata of the item" - }, - "sourceRepositoryUrl": { - "description": "Link to the source repository serving the data. Seach results apply this link to the title. Whitespace or special characters may cause Cloud Seach result links to trigger a redirect notice; to avoid this, encode the URL. The maximum length is 2048 characters.", - "type": "string" - }, - "title": { - "description": "The title of the item. If given, this will be the displayed title of the Search result. The maximum length is 2048 characters.", - "type": "string" - }, - "updateTime": { - "description": "The time when the item was last modified in the source repository.", - "format": "google-datetime", - "type": "string" - } - }, - "type": "object" - }, - "ItemParts": { - "description": "Container for type-specific extensions of an Item. This protobuf is defined in a separate file to allow types to reference/extend the message without depending on other fusebox protobufs. See items.proto.", - "id": "ItemParts", - "properties": {}, - "type": "object" - }, - "ItemStatus": { - "description": "This contains item's status and any errors.", - "id": "ItemStatus", - "properties": { - "code": { - "description": "Status code.", - "enum": [ - "CODE_UNSPECIFIED", - "ERROR", - "MODIFIED", - "NEW_ITEM", - "ACCEPTED" - ], - "enumDescriptions": [ - "Input-only value. Used with Items.list to list all items in the queue, regardless of status.", - "Error encountered by Cloud Search while processing this item. Details of the error are in repositoryError.", - "Item has been modified in the repository, and is out of date with the version previously accepted into Cloud Search.", - "Item is known to exist in the repository, but is not yet accepted by Cloud Search. An item can be in this state when Items.push has been called for an item of this name that did not exist previously.", - "API has accepted the up-to-date data of this item." - ], - "type": "string" - }, - "processingErrors": { - "description": "Error details in case the item is in ERROR state.", - "items": { - "$ref": "ProcessingError" - }, - "type": "array" - }, - "repositoryErrors": { - "description": "Repository error reported by connector.", - "items": { - "$ref": "RepositoryError" - }, - "type": "array" - } - }, - "type": "object" - }, - "ItemStructuredData": { - "description": "Available structured data fields for the item.", - "id": "ItemStructuredData", - "properties": { - "hash": { - "description": "Hashing value provided by the API caller. This can be used with the items.push method to calculate modified state. The maximum length is 2048 characters.", - "type": "string" - }, - "object": { - "$ref": "StructuredDataObject", - "description": "The structured data object that should conform to a registered object definition in the schema for the data source." - } - }, - "type": "object" - }, - "ItemThread": { - "description": "An ItemThread is an ordered list of Items. An ItemThread corresponds to a \"conversation\" in the context of mail. An Item belongs to exactly one ItemThread.", - "id": "ItemThread", - "properties": { - "clusterInfo": { - "$ref": "ClusterInfo" - }, - "item": { - "description": "The Items in the ItemThread. In the context of a search, the list of Items may be a subset of those that logically belong to the ItemThread. The details of which items are included are available in the ItemThreadView returned in the overall rpc response.", - "items": { - "$ref": "FuseboxItem" - }, - "type": "array" - }, - "lastItemId": { - "description": "The server id of the last item returned in the ItemThread. This can be deduced from the [item] list but is provided for convenience. When manually constructing an ItemThreadViewSpec to perform operations on the ItemThread, this value can be used as the [high_item_id_watermark].", - "format": "uint64", - "type": "string" - }, - "matchInfo": { - "$ref": "FuseboxItemThreadMatchInfo" - }, - "snippet": { - "description": "A snippet summarizing the thread. This field is only populated for searches.", - "type": "string" - }, - "threadKey": { - "$ref": "MultiKey", - "description": "The MultiKey that identifies this thread. This value never changes, i.e. remains constant across modifications to the thread, including addition, relabeling, or deletion of contained Items. As such, the thread key may not necessarily correspond to the key of an contained Item. Legacy note: The \"server_id\" of the thread key is equivalent to the notion of the \"original thread id\" in the CSS API." - }, - "threadLocator": { - "description": "A base64 encoded and encrypted string generated from the Gaia Id and the thread id. Used to generate the permalink for this thread, exposed from Gmail API.", - "type": "string" - }, - "topicState": { - "$ref": "TopicState", - "description": "Next available id : 10" - }, - "version": { - "description": "The latest history operation id that resulted in a mutation of any item in the thread.", - "format": "uint64", - "type": "string" - } - }, - "type": "object" - }, - "JobsettedServerSpec": { - "description": "Identifies a jobsetted server as a target for Trigger dispatch.", - "id": "JobsettedServerSpec", - "properties": { - "portName": { - "description": "E.g. \"gateway\", \"stubby\" etc. Leave unset to use the default unnamed port.", - "type": "string" - }, - "serverName": { - "description": "E.g. \"satellite-server\", \"bigtop-sync\", etc.", - "type": "string" - } - }, - "type": "object" - }, - "KeyValue": { - "id": "KeyValue", - "properties": { - "bottomLabel": { - "description": "Formatted text supported.", - "type": "string" - }, - "button": { - "$ref": "Button" - }, - "content": { - "description": "Formatted text supported and always required.", - "type": "string" - }, - "contentMultiline": { - "type": "boolean" - }, - "endIcon": { - "$ref": "IconImage" - }, - "icon": { - "enum": [ - "NONE", - "AIRPLANE", - "BOOKMARK", - "BUS", - "CAR", - "CLOCK", - "CONFIRMATION_NUMBER_ICON", - "DOLLAR", - "DESCRIPTION", - "EDIT", - "EDIT_NOTE", - "EMAIL", - "EVENT_PERFORMER", - "EVENT_SEAT", - "FLIGHT_ARRIVAL", - "FLIGHT_DEPARTURE", - "HOTEL", - "HOTEL_ROOM_TYPE", - "INVITE", - "MAP_PIN", - "MEMBERSHIP", - "MULTIPLE_PEOPLE", - "OFFER", - "OPEN_IN_NEW", - "PERSON", - "PHONE", - "RESTAURANT_ICON", - "SHOPPING_CART", - "STAR", - "STORE", - "TICKET", - "TRAIN", - "VIDEO_CAMERA", - "VIDEO_PLAY" - ], - "enumDescriptions": [ - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "Add new items in alphabetical order. Next Available ID: 34" - ], - "type": "string" - }, - "iconAltText": { - "description": "The alternative text of this icon_url which will be used for accessibility.", - "type": "string" - }, - "iconUrl": { - "type": "string" - }, - "imageStyle": { - "enum": [ - "CROP_TYPE_NOT_SET", - "SQUARE", - "CIRCLE", - "RECTANGLE_CUSTOM", - "RECTANGLE_4_3" - ], - "enumDescriptions": [ - "No value specified.", - "Applies a square crop.", - "Applies a circular crop.", - "Applies a rectangular crop with a custom aspect ratio.", - "Applies a rectangular crop with a 4:3 aspect ratio." - ], - "type": "string" - }, - "onClick": { - "$ref": "OnClick", - "description": "Only the top/bottom label + content region is clickable." - }, - "startIcon": { - "$ref": "IconImage", - "description": "The optional icon to display before the text content." - }, - "switchWidget": { - "$ref": "SwitchWidget" - }, - "topLabel": { - "description": "Formatted text supported.", - "type": "string" - } - }, - "type": "object" - }, - "LabelAdded": { - "description": "A label was added to some (subset of the) messages in this thread.", - "id": "LabelAdded", - "properties": { - "labelId": { - "type": "string" - }, - "labelName": { - "type": "string" - }, - "messageKeys": { - "items": { - "$ref": "MultiKey" - }, - "type": "array" - }, - "syncId": { - "format": "uint32", - "type": "integer" - } - }, - "type": "object" - }, - "LabelCreated": { - "description": "A label was created.", - "id": "LabelCreated", - "properties": {}, - "type": "object" - }, - "LabelDeleted": { - "description": "A label was deleted.", - "id": "LabelDeleted", - "properties": {}, - "type": "object" - }, - "LabelRemoved": { - "description": "A label was removed from some (subset of the) messages in this thread.", - "id": "LabelRemoved", - "properties": { - "labelId": { - "type": "string" - }, - "labelName": { - "type": "string" - }, - "messageKeys": { - "items": { - "$ref": "MultiKey" - }, - "type": "array" - }, - "syncId": { - "format": "uint32", - "type": "integer" - } - }, - "type": "object" - }, - "LabelRenamed": { - "description": "A label was renamed.", - "id": "LabelRenamed", - "properties": { - "oldCanonicalName": { - "type": "string" - } - }, - "type": "object" - }, - "LabelUpdate": { - "description": "HistoryRecord for changes associated with a label, namely: LABEL_CREATED LABEL_DELETED LABEL_RENAMED LABEL_UPDATED", - "id": "LabelUpdate", - "properties": { - "canonicalName": { - "type": "string" - }, - "labelCreated": { - "$ref": "LabelCreated" - }, - "labelDeleted": { - "$ref": "LabelDeleted" - }, - "labelId": { - "type": "string" - }, - "labelRenamed": { - "$ref": "LabelRenamed" - }, - "labelUpdated": { - "$ref": "LabelUpdated" - }, - "syncId": { - "format": "uint32", - "type": "integer" - } - }, - "type": "object" - }, - "LabelUpdated": { - "description": "A label pref was updated outside of a rename, create, or delete.", - "id": "LabelUpdated", - "properties": {}, - "type": "object" - }, - "Labels": { - "id": "Labels", - "properties": { - "displayName": { - "description": "The display name of the labels. This is populated (instead of the id) when the request fetch_spec has LABEL_DISPLAY_NAMES.", - "items": { - "type": "string" - }, - "type": "array" - }, - "id": { - "description": "The ids of the labels attached to the Item, e.g. \"^i\", \"^x_1\"", - "items": { - "type": "string" - }, - "type": "array" - } - }, - "type": "object" - }, - "LanguageConfig": { - "description": "The language configuration for the session.", - "id": "LanguageConfig", - "properties": { - "spokenLanguages": { - "description": "The spoken language(s) in BCP47 language code.", - "items": { - "type": "string" - }, - "type": "array" - } - }, - "type": "object" - }, - "LdapGroupProto": { - "id": "LdapGroupProto", - "properties": { - "groupName": { - "type": "string" - } - }, - "type": "object" - }, - "LdapUserProto": { - "id": "LdapUserProto", - "properties": { - "userName": { - "type": "string" - } - }, - "type": "object" - }, - "LegacyUploadMetadata": { - "description": "The original UploadMetadata that this DriveMetadata was converted from.", - "id": "LegacyUploadMetadata", - "properties": { - "legacyUniqueId": { - "description": "A unique ID generated from legacy UploadMetadata. This is used for interopping URLs after uploading blob to shared drive. Links in Classic might break without this. go/drive-file-attachment-interop-from-dynamite.", - "type": "string" - }, - "uploadMetadata": { - "$ref": "UploadMetadata", - "description": "The blob in this UploadMetadata has been uploaded to shared drive. This UploadMetadata is no longer attached to a message. go/shared-drive-data-migration." - } - }, - "type": "object" - }, - "LinkData": { - "description": "Link metadata, for LINK segments. Anchor text should be stored in the \"text\" field of the Segment, which can also serve as a fallback.", - "id": "LinkData", - "properties": { - "attachment": { - "$ref": "SocialCommonAttachmentAttachment", - "description": "An Attachment represents the structured entity to which we are linking. It contains an Embed (apps/tacotown/proto/embeds/embed_client.proto) with fields specific to the appropriate type of linked entity. For example, if we are linking to a photo album, the Embed may include the album ID and gaia ID of the creator. Clients that understand the Embed type within the Attachment may construct and/or decorate their link appropriately e.g. to make use of type-specific functionality or first-party integrations. The link_target and (if appropriate) display_url fields must still be set even when an Attachment is present, so that clients who do not know how to interpret the Attachment can fall back to those fields, and render the Segment as an ordinary web link. N.B. Even when an Attachment is present, the intention of a \"LINK\" Segment is for the Segment to be presented inline with the rest of the text of a post or comment, with a clickable link or other UI suitable for inlining (though the client may modify the UI based on Attachment data, e.g. to add appropriate hovers, icons, etc.). When an entity is intended to be rendered separately from the main body of the post/comment, a separate Attachment proto can be added outside the set of Segments. N.B. Within the Attachment, fields of EmbedClientItem have their own visibility annotations, which should be enforced separately from Segment visibility annotations. See: apps/tacotown/proto/embeds/embed_annotations.proto" - }, - "attachmentRenderHint": { - "description": "The hint to use when rendering the associated attachment. Ignored if there is no associated attachment.", - "enum": [ - "ATTACHMENT_RENDER_HINT_UNKNOWN", - "ATTACHMENT_RENDER_HINT_AFTER", - "ATTACHMENT_RENDER_HINT_INTERLEAVED" - ], - "enumDescriptions": [ - "No rendering hint; should not be used (equivalent to having no hint)", - "Render any associated attachment at the end of the block, after all sibling Segments. Leave the link in place in the text and render it normally as well.", - "Render any associated attachment inline in the text in place of the link text, forcing a line break before and after the attachment so the text and the attachment are \"interleaved\". If this is not possible, render as if AFTER." - ], - "type": "string" - }, - "displayUrl": { - "description": "If we wish to show the user a different (e.g. shortened) version of the URL for display purposes, then that version should be set here. If this field isn't set, link_target will be used for both purposes.", - "type": "string" - }, - "linkTarget": { - "description": "link_target is the URL to navigate to when clicked. This could be the original URL, or a URL signed by the GWS URL signing service.", - "type": "string" - }, - "linkType": { - "description": "LinkType is an optional field that provides additional information regarding link target. For example, link type can be identified as the SELF_LINK when the request was executed from the same link as the link target.", - "enum": [ - "UNKNOWN_LINK_TYPE", - "SELF_LINK" - ], - "enumDescriptions": [ - "No link type specified.", - "This indicates that the link target points to the same object related to this segment. Example: A YouTube link with text=\"0.07\" and link_target: \"https://www.youtube.com/watch?v=leHVmSqd4_w\u0026t=0m07s\" points to the same YouTube video where this segment appears. See http://go/ignore-badwords-filtering-for-selflink for adding link_type design document." - ], - "type": "string" - }, - "title": { - "description": "Title is an optional field that provides a short string that describes the link or its destination. User interfaces often use title as a tooltip or for accessibility purposes. However, they are of course free to present this data in any form. This field is plain text.", - "type": "string" - } - }, - "type": "object" - }, - "ListDataSourceResponse": { - "id": "ListDataSourceResponse", - "properties": { - "nextPageToken": { - "description": "Token to retrieve the next page of results, or empty if there are no more results in the list.", - "type": "string" - }, - "sources": { - "items": { - "$ref": "DataSource" - }, - "type": "array" - } - }, - "type": "object" - }, - "ListItemNamesForUnmappedIdentityResponse": { - "id": "ListItemNamesForUnmappedIdentityResponse", - "properties": { - "itemNames": { - "items": { - "type": "string" - }, - "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" - }, - "ListItemsResponse": { - "id": "ListItemsResponse", - "properties": { - "items": { - "items": { - "$ref": "Item" - }, - "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" - }, - "ListOperationsResponse": { - "description": "The response message for Operations.ListOperations.", - "id": "ListOperationsResponse", - "properties": { - "nextPageToken": { - "description": "The standard List next-page token.", - "type": "string" - }, - "operations": { - "description": "A list of operations that matches the specified filter in the request.", - "items": { - "$ref": "Operation" - }, - "type": "array" - } - }, - "type": "object" - }, - "ListQuerySourcesResponse": { - "description": "List sources response.", - "id": "ListQuerySourcesResponse", - "properties": { - "nextPageToken": { - "type": "string" - }, - "sources": { - "items": { - "$ref": "QuerySource" - }, - "type": "array" - } - }, - "type": "object" - }, - "ListSearchApplicationsResponse": { - "id": "ListSearchApplicationsResponse", - "properties": { - "nextPageToken": { - "description": "Token to retrieve the next page of results, or empty if there are no more results in the list.", - "type": "string" - }, - "searchApplications": { - "items": { - "$ref": "SearchApplication" - }, - "type": "array" - } - }, - "type": "object" - }, - "ListUnmappedIdentitiesResponse": { - "id": "ListUnmappedIdentitiesResponse", - "properties": { - "nextPageToken": { - "description": "Token to retrieve the next page of results, or empty if there are no more results in the list.", - "type": "string" - }, - "unmappedIdentities": { - "items": { - "$ref": "UnmappedIdentity" - }, - "type": "array" - } - }, - "type": "object" - }, - "MatchInfo": { - "id": "MatchInfo", - "properties": { - "matchingImageReferenceKey": { - "description": "Reference keys for image attachments that matches search query.", - "items": { - "type": "string" - }, - "type": "array" - } - }, - "type": "object" - }, - "MatchRange": { - "description": "Matched range of a snippet [start, end).", - "id": "MatchRange", - "properties": { - "end": { - "description": "End of the match in the snippet.", - "format": "int32", - "type": "integer" - }, - "start": { - "description": "Starting position of the match in the snippet.", - "format": "int32", - "type": "integer" - } - }, - "type": "object" - }, - "MdbGroupProto": { - "description": "An entity from the MDB namespace that is to be interpreted as a group. If using this for authorization, you should do an exact match of the peer role against group_name or any of the names in the Chubby expansion of the MDB group named group_name.", - "id": "MdbGroupProto", - "properties": { - "groupName": { - "type": "string" - } - }, - "type": "object" - }, - "MdbUserProto": { - "description": "An entity from the MDB namespace that is to be interpreted as a user. If using this for authorization, you should only do an exact match on the peer role against user_name.", - "id": "MdbUserProto", - "properties": { - "gaiaId": { - "description": "Do not set this field. Contact credentials-eng@ if you believe you absolutely need to use it. This is the @prod.google.com Gaia ID that corresponds to the MDB user, see go/authn-merge for details. This field may always be safely ignored when performing an authorization check.", - "format": "int64", - "type": "string" - }, - "userName": { - "type": "string" - } - }, - "type": "object" - }, - "Media": { - "description": "Media resource.", - "id": "Media", - "properties": { - "resourceName": { - "description": "Name of the media resource.", - "type": "string" - } - }, - "type": "object" - }, - "MeetingSpace": { - "description": " A meeting space is a persistent object that is the context for one or more calls. The meeting space is what makes users find each other when they want to meet and to find shared resources. With two exceptions, all the fields in the meeting space resource are visible publicly to any client, even anonymous users. The exceptions are that * The call_info field is only visible to clients that have a device (as indicated by the meeting token) in the JOINED or HIDDEN state. * The meeting_alias field will only be set for users who are in the same domain as the meeting space. The meeting space resource (outside call_info) should only contain information necessary to join a call in the meeting space, and not any other metadata about the meeting space, such as what organization it belongs to or things related to ongoing calls.", - "id": "MeetingSpace", - "properties": { - "acceptedNumberClass": { - "description": "Which number classes are accepted by this meeting at the moment? When there is no ongoing conference, this field may change independent of the version number of the MeetingSpace. When a conference starts, this field will be locked to the value at that time, and then will be unlocked again at the end of the conference.", - "items": { - "enum": [ - "NUMBER_CLASS_UNSPECIFIED", - "LOW_COST", - "HIGH_COST", - "LEGACY" - ], - "enumDescriptions": [ - "No number class has been specified.", - "The number has a low cost to receive calls on.", - "The number has a high cost to receive calls on.", - "Class for legacy numbers." - ], - "type": "string" - }, - "type": "array" - }, - "broadcastAccess": { - "$ref": "BroadcastAccess", - "description": "Broadcast access information for this meeting space." - }, - "callInfo": { - "$ref": "CallInfo", - "description": "Information relevant to an ongoing conference. This field will be set in responses if the client requesting the meeting space has a device in one of the JOINED, HIDDEN, or MISSING_PREREQUISITES states. The field will also be set without a created device if the client requesting the meeting space is eligible to directly create a device in the JOINED state without knocking, eg a same-domain joiner. Can also only be updated by clients with a device in the JOINED state." - }, - "gatewayAccess": { - "$ref": "GatewayAccess", - "description": "The interop gateway access information for the meeting space. A gateway access can be used when joining conferences from non-Google equipment through an interop gateway." - }, - "gatewaySipAccess": { - "description": "The SIP based access methods that can be used to join the conference.", - "items": { - "$ref": "GatewaySipAccess" - }, - "type": "array" - }, - "meetingAlias": { - "description": "An optional alias for the meeting space. The alias can in some cases be resolved to the meeting space, similar to the meeting code. The limitation is that the user needs to be in the same meeting domain as the meeting space.", - "type": "string" - }, - "meetingCode": { - "description": "A meeting code is a globally unique code which points to a meeting space. Note: Meeting codes may be regenerated, which will cause old meeting codes to become invalid.", - "type": "string" - }, - "meetingSpaceId": { - "description": "A unique server-generated ID for the meeting space. This is the resource name of the meeting space resource and has the form `spaces/`, where is a sequence of characters in the [base64url set](https://tools.ietf.org/html/rfc4648#section-5), without any `=` characters.", - "type": "string" - }, - "meetingUrl": { - "description": "A URL to identify and access the meeting space. Output only.", - "type": "string" - }, - "moreJoinUrl": { - "description": "Output only. A URL that clients (e.g. Calendar) can use to show the web page with all join methods available for this meeting space. This link is also used in iOS universal links and Android intents, used for opening the \"More ways to join\" view in the Meet mobile apps. Example: https://tel.meet/mee-ting-cod?pin=1234567891011 Here, \"pin\" is the universal phone PIN. We include it explicitly to better support the offline case on the mobile. This is set when the meeting space has either a universal PIN or an interop PIN and clients who can show a \"more ways to join\" button should show it whenever this field is set.", - "readOnly": true, - "type": "string" - }, - "phoneAccess": { - "description": "All regional phone access methods for this meeting space. Can be empty.", - "items": { - "$ref": "PhoneAccess" - }, - "type": "array" - }, - "settings": { - "$ref": "Settings", - "description": "Settings of the meeting space." - }, - "universalPhoneAccess": { - "$ref": "UniversalPhoneAccess", - "description": "A universal phone access method for this meeting space. Can be unset." - } - }, - "type": "object" - }, - "Member": { - "id": "Member", - "properties": { - "roster": { - "$ref": "Roster" - }, - "user": { - "$ref": "User" - } - }, - "type": "object" - }, - "MemberId": { - "description": "Eventually this can be updated to a oneOf User, Space (for nested spaces), Bots or Service, as and when these use cases come up.", - "id": "MemberId", - "properties": { - "rosterId": { - "$ref": "RosterId", - "description": "Unique, immutable ID of the Roster." - }, - "userId": { - "$ref": "UserId", - "description": "Unique, immutable ID of the User." - } - }, - "type": "object" - }, - "MembershipChangeEvent": { - "id": "MembershipChangeEvent", - "properties": { - "leaveReason": { - "description": "This should only be set when MembershipChange type is LEAVE.", - "enum": [ - "LEAVE_REASON_UNKNOWN", - "FORCE_HISTORY_POLICY_CHANGE", - "USER_INITIATED" - ], - "enumDescriptions": [ - "", - "", - "" - ], - "type": "string" - }, - "participantId": { - "items": { - "$ref": "StoredParticipantId" - }, - "type": "array" - }, - "type": { - "enum": [ - "JOIN", - "LEAVE" - ], - "enumDescriptions": [ - "", - "" - ], - "type": "string" - } - }, - "type": "object" - }, - "MembershipChangedMetadata": { - "description": "Annotation metadata to display system messages for membership changes. Next Tag: 13", - "id": "MembershipChangedMetadata", - "properties": { - "affectedMemberProfiles": { - "items": { - "$ref": "Member" - }, - "type": "array" - }, - "affectedMembers": { - "description": "List of users and rosters whose membership status changed.", - "items": { - "$ref": "MemberId" - }, - "type": "array" - }, - "affectedMemberships": { - "items": { - "$ref": "AffectedMembership" - }, - "type": "array" - }, - "initiator": { - "$ref": "UserId", - "description": "The user whose action triggered this system message." - }, - "initiatorProfile": { - "$ref": "User", - "description": "Complete member profiles, when ListTopicsRequest FetchOptions.USER is set. Otherwise, only the id will be filled in." - }, - "initiatorType": { - "description": "The type of the user who initiated this membership change.", - "enum": [ - "INITIATOR_TYPE_UNSPECIFIED", - "INITIATOR_TYPE_END_USER", - "INITIATOR_TYPE_ADMIN" - ], - "enumDescriptions": [ - "", - "", - "" - ], - "type": "string" - }, - "type": { - "enum": [ - "TYPE_UNSPECIFIED", - "INVITED", - "JOINED", - "ADDED", - "REMOVED", - "LEFT", - "BOT_ADDED", - "BOT_REMOVED", - "KICKED_DUE_TO_OTR_CONFLICT", - "ROLE_UPDATED", - "ROLE_TARGET_AUDIENCE_UPDATED", - "SPACE_LIMIT_EXCEEDED", - "HUMAN_MEMBERSHIP_DISPLAY_DISABLED" - ], - "enumDescriptions": [ - "Default value for the enum. DO NOT USE.", - "Non-member -\u003e Can join. Multiple groups and users.", - "Can join -\u003e Member. One user.", - "Non-member -\u003e Member. Multiple users.", - "Member or can join -\u003e Non-member. One group or user.", - "Before April 2023, a user transitioned from joined", - "Bot added to the room.", - "Bot removed from the room.", - "This signifies the user is kicked because the user's OTR policy is conflicted with the room history settings. Joined -\u003e Non-member. One user.", - "MembershipRole changed. Multiple users.", - "The room is now joinable by an", - "Space limit exceeded", - "HUMAN_MEMBERSHIP_DISPLAY_DISABLED indicates that the space has crossed the member size threshold above which human membership change system messages will be muted. This event can only occur once for a space over its lifetime. When this event is received, clients should display a system message stating that human membership changes will no longer be displayed in the space." - ], - "type": "string" - } - }, - "type": "object" - }, - "Menu": { - "description": "This is deprecated and please use SelectionControl by setting type to DROPDOWN.", - "id": "Menu", - "properties": { - "items": { - "items": { - "$ref": "MenuItem" - }, - "type": "array" - }, - "label": { - "description": "Label used to be displayed ahead of the menu. It is optional.", - "type": "string" - }, - "name": { - "description": "The name of the text field which is will be used in FormInput.", - "type": "string" - }, - "onChange": { - "$ref": "FormAction", - "description": "If specified, form is submitted when selection changed. If not specified, developer will need to specify a separate button." - } - }, - "type": "object" - }, - "MenuItem": { - "id": "MenuItem", - "properties": { - "selected": { - "type": "boolean" - }, - "text": { - "description": "The text to be displayed.", - "type": "string" - }, - "value": { - "description": "The value associated with this item which will be sent back to app scripts. Client should use as a form input value.", - "type": "string" - } - }, - "type": "object" - }, - "Message": { - "description": "Message posted to a Space.", - "id": "Message", - "properties": { - "annotations": { - "description": "Annotations parsed and extracted from the text body.", - "items": { - "$ref": "Annotation" - }, - "type": "array" - }, - "appProfile": { - "$ref": "AppsDynamiteSharedAppProfile", - "description": "Custom display profile info for apps. Leave the field empty for real users." - }, - "attachments": { - "description": "Attachments parsed from incoming webhooks", - "items": { - "$ref": "Attachment" - }, - "type": "array" - }, - "attributes": { - "$ref": "MessageAttributes", - "description": "Lightweight message attributes which values are calculated and set in the servers." - }, - "botResponses": { - "description": "Responses from bots indicating if extra auth/config is needed.", - "items": { - "$ref": "BotResponse" - }, - "type": "array" - }, - "communalLabels": { - "description": "Communal labels associated with a message. These exist on the message itself regardless of which user fetches them. Order of entries is arbitrary and will not list duplicates of the same label_id. See go/chat-labels-design for details.", - "items": { - "$ref": "CommunalLabelTag" - }, - "type": "array" - }, - "contentReportSummary": { - "$ref": "ContentReportSummary", - "readOnly": true - }, - "createTime": { - "description": "Time when the Message was posted in microseconds.", - "format": "int64", - "type": "string" - }, - "creatorId": { - "$ref": "UserId", - "description": "ID of the User who posted the Message. This includes information to identify if this was posted by an App on behalf of a user." - }, - "deletableBy": { - "description": "Indicates who can delete the message. This field is set on the read path (e.g. ListTopics) but doesn’t have any effect on the write path (e.g. CreateMessageRequest).", - "enum": [ - "PERMISSION_UNSPECIFIED", - "PERMISSION_NO_ONE", - "PERMISSION_CREATOR", - "PERMISSION_MEMBER" - ], - "enumDescriptions": [ - "Default case, should never be used. If this data is encountered in the DB any request should throw an exception.", - "No one except for the message creator/origin pair can mutate. This permission checks both gaia id and the request origin. Request origin can be Chat API or Chat UI. Mutation is allowed iff both attributes of the request match the original message creation. Use case: this allows historical 1P apps lock down message edit permission i.e. In Chat UI, humans cannot edit their messages created via these 1P apps. Do not use this for additional use cases.", - "The message creator can mutate regardless of request origin. Use case: for messages created by human via Chat UI or Chat API. These messages can be mutated by the same human user via Chat UI or via any app on Chat API.", - "Every human member of a space or the creator can mutate the entity. This excludes app acting on behalf of human via Chat API. Use case: This is to enable humans to delete messages created by apps." - ], - "type": "string" - }, - "deleteTime": { - "description": "Time when the Message was deleted in microseconds. This field is set to nonzero value only for Messages deleted globally.", - "format": "int64", - "type": "string" - }, - "deleteTimeForRequester": { - "description": "Time when the Message was per-user deleted by the message requester in microseconds. This field is set to nonzero value only for Message per-user deleted by the requester.", - "format": "int64", - "type": "string" - }, - "deletedByVault": { - "description": "Was this message deleted by Vault (Only used for Vault support) This is false if message is live or message was deleted by user.", - "type": "boolean" - }, - "dlpScanSummary": { - "$ref": "DlpScanSummary", - "description": "Data Loss Prevention scan information for this message. Messages are evaluated in the backend on create message/topic and edit message actions. DEPRECATED: Use DATA_LOSS_PREVENTION Annotation." - }, - "editableBy": { - "description": "Indicates who can edit the message. This field is set on the read path (e.g. ListTopics) but doesn’t have any effect on the write path (e.g. CreateMessageRequest).", - "enum": [ - "PERMISSION_UNSPECIFIED", - "PERMISSION_NO_ONE", - "PERMISSION_CREATOR", - "PERMISSION_MEMBER" - ], - "enumDescriptions": [ - "Default case, should never be used. If this data is encountered in the DB any request should throw an exception.", - "No one except for the message creator/origin pair can mutate. This permission checks both gaia id and the request origin. Request origin can be Chat API or Chat UI. Mutation is allowed iff both attributes of the request match the original message creation. Use case: this allows historical 1P apps lock down message edit permission i.e. In Chat UI, humans cannot edit their messages created via these 1P apps. Do not use this for additional use cases.", - "The message creator can mutate regardless of request origin. Use case: for messages created by human via Chat UI or Chat API. These messages can be mutated by the same human user via Chat UI or via any app on Chat API.", - "Every human member of a space or the creator can mutate the entity. This excludes app acting on behalf of human via Chat API. Use case: This is to enable humans to delete messages created by apps." - ], - "type": "string" - }, - "fallbackText": { - "description": "A plain-text description of the attachment, used when clients cannot display formatted attachment (e.g. mobile push notifications).", - "type": "string" - }, - "id": { - "$ref": "MessageId", - "description": "ID of the resource." - }, - "isContentPurged": { - "description": "Whether the message is content purged. Content purged messages contain only data required for tombstone (see go/chat-infinite-tombstone). This field is only used by Vault to display tombstone and should only be set to true if the message is a tombstone.", - "type": "boolean" - }, - "isInlineReply": { - "description": "Output only. Indicates if the message is an inline reply. Set to true only if the message's ParentPath is non-NULL. Currently, only inline replies have non-NULL ParentPath. See go/chat-be-inline-reply-indicator.", - "readOnly": true, - "type": "boolean" - }, - "lastEditTime": { - "description": "If the message was edited by a user, timestamp of the last edit, in microseconds.", - "format": "int64", - "type": "string" - }, - "lastUpdateTime": { - "description": "Time when the Message text was last updated in microseconds.", - "format": "int64", - "type": "string" - }, - "localId": { - "description": "A unique id specified on the client side.", - "type": "string" - }, - "messageIntegrationPayload": { - "$ref": "AppsDynamiteSharedMessageIntegrationPayload", - "description": "An optional payload (restricted to 1P applications) that will be stored with this message. This can only be set by the 1P API and should be used to deliver additional data such a 1P sync version, 1P entity ID to the client for more advanced functionality [Eg. inform Group Tasks tab of new version while linking, fetch \u0026 render a live Task/Meet call tile]." - }, - "messageOrigin": { - "description": "Where the message was posted from", - "enum": [ - "ORIGIN_NOT_SET", - "ORIGIN_DYNAMITE", - "ORIGIN_BABEL_INTEROP_LIVE", - "ORIGIN_BABEL_INTEROP_RETRY", - "ORIGIN_BABEL", - "ORIGIN_BABEL_DUAL_WRITE", - "ORIGIN_BABEL_DUAL_WRITE_RETRY", - "ORIGIN_BACKFILL_FROM_PAPYRUS", - "ORIGIN_BACKFILL_FROM_GMAIL_ARCHIVE" - ], - "enumDescriptions": [ - "", - "", - "The message is from Babel (Hangouts Classic) interop.", - "The message is from Babel interop retries from Manifold queue.", - "The message came directly from Babel as source-of-truth", - "The message came directly from Babel during dual-write", - "The message came directly from Babel Manifold queue during dual write", - "The message was backfilled by go/dinnertrain as part of go/storage-consolidation. The backfill origin corresponds to the BackfillState in which the message was created.", - "" - ], - "type": "string" - }, - "messageReference": { - "$ref": "MessageReference", - "description": "Contains reference to another message. It is used in shortcuts which are used to collect messages from different spaces with a certain common property into another space. For example, all @mentions of a user are collected into a mention shortcut space (go/chat-shortcuts-backend-design for more details). Most information from the source message (like text) are copied onto top-level Message fields of shortcut messages by the server. The MessageReference is helpful for clients to enable things like click navigation to source message." - }, - "messageSearchInfo": { - "$ref": "AppsDynamiteSharedMessageSearchInfo", - "description": "Contains additional metadata that further annotates this message when returned as a search response. For example, this field can be used to highlight messages during search results rendering. In this case, clients can use this field to highlight matched segments in the message text_body (defined with tag 6)." - }, - "messageState": { - "description": "State of the message, indicating whether the message is visible to all members in the group or is only visible to the sender only, or the private_message_viewer if it is set.", - "enum": [ - "PUBLIC", - "PRIVATE" - ], - "enumDescriptions": [ - "Default - visible to the room / DM.", - "Private state - only visible to the message creator, and the private_message_viewer if set." - ], - "type": "string" - }, - "numberOfUnicodeEmojis": { - "description": "Indicates the number of unicode emojis in the message.", - "format": "int32", - "type": "integer" - }, - "originAppSuggestions": { - "description": "Indicates if this message contains any suggestions that were provided by any Apps.", - "items": { - "$ref": "AppsDynamiteSharedOriginAppSuggestion" - }, - "type": "array" - }, - "personalLabels": { - "description": "Personal labels associated with a message for the viewing user. Order of entries is arbitrary and will not list duplicates of the same label_id. See go/chat-labels-design for details. NOTE: This will be unpopulated in the case of SpaceChangelog events.", - "items": { - "$ref": "PersonalLabelTag" - }, - "type": "array" - }, - "privateMessageInfos": { - "description": "A list of per-user private information. This is deprecated, because we no longer plan to support partially private messages or private messages for multiple users. The message_state and private_message_viewer fields should be sufficient for this infrastructure.", - "items": { - "$ref": "PrivateMessageInfo" - }, - "type": "array" - }, - "privateMessageViewer": { - "$ref": "UserId", - "description": "Should only be set if the Message State is PRIVATE. If set, the message content is only visible to this user (and any apps associated with the message), as well as the message creator. If unset, a private message is visible to the message creator only." - }, - "props": { - "$ref": "MessageProps", - "description": "Contains additional (currently Hangouts Classic only) properties applicable to this message." - }, - "quotedByState": { - "description": "Output only. Whether this message has been quoted by another message or not. Used by clients to handle message edit flows for messages that have been quoted.", - "enum": [ - "QUOTED_BY_STATE_UNSPECIFIED", - "QUOTED_BY_STATE_HAS_BEEN_QUOTED", - "QUOTED_BY_STATE_HAS_NOT_BEEN_QUOTED" - ], - "enumDescriptions": [ - "Unspecified state for QuotedByState.", - "State to indicate that this message is quoted by another message (excluding purged message).", - "State to indicate that this message are not quoted by another message." - ], - "readOnly": true, - "type": "string" - }, - "quotedMessageMetadata": { - "$ref": "QuotedMessageMetadata", - "description": "Output only. Metadata for a message that is quoted by this message.", - "readOnly": true - }, - "reactions": { - "description": "A list of user reactions to this message. Ordered by the timestamp of the first reaction, ascending (oldest to newest).", - "items": { - "$ref": "AppsDynamiteSharedReaction" - }, - "type": "array" - }, - "reports": { - "description": "Output only. Details of content reports. Set only when the request asks for it.", - "items": { - "$ref": "ContentReport" - }, - "readOnly": true, - "type": "array" - }, - "retentionSettings": { - "$ref": "AppsDynamiteSharedRetentionSettings", - "description": "The retention settings of the message." - }, - "richTextFormattingType": { - "description": "Used by clients to correctly log format type for message creation due to complexity with client side optimistic update (see go/content-metric-post-send-logging for details). Currently, only set by server in the message or topic creation path.", - "enum": [ - "NONE", - "MARKDOWN", - "FORMAT_ANNOTATIONS", - "FORMAT_ANNOTATIONS_IGNORED", - "FORMAT_ANNOTATIONS_IGNORED_WITH_MARKDOWN" - ], - "enumDescriptions": [ - "", - "The formatting was specified as *markdown characters* in message text.", - "The formatting was specified as {@link com.google.apps.dynamite.v1.shared.FormatMetadata} annotations.", - "The client sent the format annotations, but didn't set the accept_format_annotations field to true. This shouldn't happen, but there might be some old clients that end up here.", - "A combination of MARKDOWN and FORMAT_ANNOTATIONS_IGNORED." - ], - "type": "string" - }, - "secondaryMessageKey": { - "description": "A client-specified string that can be used to uniquely identify a message in a space, in lieu of `id.message_id`.", - "type": "string" - }, - "textBody": { - "description": "Plaintext body of the Message.", - "type": "string" - }, - "tombstoneMetadata": { - "$ref": "TombstoneMetadata", - "description": "Information for the stoning of a Message." - }, - "updaterId": { - "$ref": "UserId", - "description": "ID of the User who last updated (created/edited/deleted) the Message. This includes information to identify if this was updated by an App on behalf of a user." - }, - "uploadMetadata": { - "description": "UploadMetadata b/36864213 is an ongoing effort to move UploadMetadata out of annotations field and save it to upload_metadata field only. After the migration, UploadMetadata will only be saved in this field.", - "items": { - "$ref": "UploadMetadata" - }, - "type": "array" - } - }, - "type": "object" - }, - "MessageAdded": { - "description": "A message was added. Specifying id and initial labels.", - "id": "MessageAdded", - "properties": { - "attributeIds": { - "items": { - "type": "string" - }, - "type": "array" - }, - "labelIds": { - "items": { - "type": "string" - }, - "type": "array" - }, - "messageKey": { - "$ref": "MultiKey" - }, - "syncIds": { - "description": "Note that there can be fewer sync ids than label ids.", - "items": { - "format": "uint32", - "type": "integer" - }, - "type": "array" - } - }, - "type": "object" - }, - "MessageAttributes": { - "description": "Stores tombstone message attributes: go/tombstone-message-attributes-overview", - "id": "MessageAttributes", - "properties": { - "isTombstone": { - "description": "If true: message is a tombstone in the client. Default false.", - "type": "boolean" - } - }, - "type": "object" - }, - "MessageDeleted": { - "description": "Some (subset of the) messages in this thread were deleted.", - "id": "MessageDeleted", - "properties": { - "imapSyncMappings": { - "description": "Value of coproc's message delete history record extension that exports /imapsync/folder attribute of deleted messages which have ^is label.", - "items": { - "$ref": "ImapSyncDelete" - }, - "type": "array" - }, - "messageKeys": { - "items": { - "$ref": "MultiKey" - }, - "type": "array" - }, - "wonderCardMappings": { - "description": "Value of coproc's message delete history record extension that exports /wonder/message_mapping/{vertical} attribute of deleted messages which have smartmail label (eg. ^cob_sm_invoice, etc).", - "items": { - "$ref": "WonderCardDelete" - }, - "type": "array" - } - }, - "type": "object" - }, - "MessageId": { - "description": "Primary key for Message resource.", - "id": "MessageId", - "properties": { - "messageId": { - "description": "Opaque, server-assigned ID of the Message. While this ID is guaranteed to be unique within the Space, it's not guaranteed to be globally unique.", - "type": "string" - }, - "parentId": { - "$ref": "MessageParentId", - "description": "ID of the Message's immediate parent." - } - }, - "type": "object" - }, - "MessageInfo": { - "id": "MessageInfo", - "properties": { - "authorUserType": { - "description": "Message author’s user type (human/bot).", - "enum": [ - "HUMAN", - "BOT" - ], - "enumDescriptions": [ - "Notes on HUMAN type: 1) Leaving UserId.UserType field empty will return HUMAN as default value. This is expected because all the existing UserIds are without explicitly setting UserType, most of which are HUMAN Ids. For Bot Ids we will always set BOT in UserType field. 2) DO NOT explicitly set HUMAN as type. This is a proto2 issue, that a UserId with explicitly set default value HUMAN as type is NOT equal to an id without setting the field. aka. UserId id1 = UserId.newBuilder() .setId(\"dummy\").setType(UserType.HUMAN).build(); UserId id2 = UserId.newBuilder().setId(\"dummy\").build(); AssertThat(id1).isNotEqual(id2); AssertThat(id2.getType()).isEqualTo(UserType.HUMAN);", - "" - ], - "type": "string" - }, - "message": { - "$ref": "Message", - "description": "The content of a matching message." - }, - "searcherMembershipState": { - "description": "Searcher's membership state in the space where the message is posted.", - "enum": [ - "MEMBER_UNKNOWN", - "MEMBER_INVITED", - "MEMBER_JOINED", - "MEMBER_NOT_A_MEMBER", - "MEMBER_FAILED" - ], - "enumDescriptions": [ - "Default state, do not use", - "An invitation to the space has been sent", - "User has joined the space", - "User is not a member", - "This state should never be stored in Spanner. It is a state for responses to the clients to indicate that membership mutations have failed and the member is in its previous state." - ], - "type": "string" - } - }, - "type": "object" - }, - "MessageParentId": { - "description": "Primary key identifying Message resource's immediate parent. For top-level Messages, either topic_id or chat_id is populated. For replies, message_id is populated with the topic Message's ID.", - "id": "MessageParentId", - "properties": { - "topicId": { - "$ref": "TopicId", - "description": "ID of the Topic this Message is posted to. NEXT TAG : 5" - } - }, - "type": "object" - }, - "MessageProps": { - "description": "Container for storing properties applicable to messages. For now (until storage consolidation is complete), it will only be used for babel props. In the future it could be used to house Dynamite properties for experimenting/rapid prototyping.", - "id": "MessageProps", - "properties": { - "babelProps": { - "$ref": "BabelMessageProps" - } - }, - "type": "object" - }, - "MessageReference": { - "description": "Contains reference to another message. It is used in shortcuts which are used to collect messages from different spaces with a certain common property into another space. For example, all @mentions of a user are collected into a mention shortcut space (go/chat-shortcuts-backend-design for more details). Clients can use this reference to enable navigation to the source message when the shortcut message is clicked and also to identify a few other details about the source message. Other fields (like text) from the source message are copied on to the top-level fields in the Message proto by the server (More details in go/chat-shortcuts-client-server-design).", - "id": "MessageReference", - "properties": { - "sourceInfo": { - "$ref": "SourceMessageInfo" - } - }, - "type": "object" - }, - "MessageSet": { - "description": "This is proto2's version of MessageSet.", - "id": "MessageSet", - "properties": {}, - "type": "object" - }, - "Metadata": { - "description": "Metadata of a matched search result.", - "id": "Metadata", - "properties": { - "createTime": { - "description": "The creation time for this document or object in the search result.", - "format": "google-datetime", - "type": "string" - }, - "displayOptions": { - "$ref": "ResultDisplayMetadata", - "description": "Options that specify how to display a structured data search result." - }, - "fields": { - "description": "Indexed fields in structured data, returned as a generic named property.", - "items": { - "$ref": "NamedProperty" - }, - "type": "array" - }, - "mimeType": { - "description": "Mime type of the search result.", - "type": "string" - }, - "objectType": { - "description": "Object type of the search result.", - "type": "string" - }, - "owner": { - "$ref": "Person", - "description": "Owner (usually creator) of the document or object of the search result." - }, - "source": { - "$ref": "Source", - "description": "The named source for the result, such as Gmail." - }, - "thumbnailUrl": { - "description": "The thumbnail URL of the result.", - "type": "string" - }, - "updateTime": { - "description": "The last modified date for the object in the search result. If not set in the item, the value returned here is empty. When `updateTime` is used for calculating freshness and is not set, this value defaults to 2 years from the current time.", - "format": "google-datetime", - "type": "string" - } - }, - "type": "object" - }, - "Metaline": { - "description": "A metaline is a list of properties that are displayed along with the search result to provide context.", - "id": "Metaline", - "properties": { - "properties": { - "description": "The list of displayed properties for the metaline. The maximum number of properties is 5.", - "items": { - "$ref": "DisplayedProperty" - }, - "type": "array" - } - }, - "type": "object" - }, - "MultiKey": { - "description": "A union-like type for identifiying an object in storage. MultiKeys contain multiple key fields, each in a separate key space. At least one key field must be set. More than one key field may be set as long as all key values refer to the same object. All objects in storage have unique server_id keys. All MultiKeys returned from storage to storage clients will always have the server_id field set. When creating an object, if a MultiKey without a server_id is supplied to storage, the storage system will auto-assign a server ID to the new object. For all other storage requests (i.e. those not creating new objects), clients may omit server_id (as long as they supply another key). Instead of server ids, clients can specify string based client_assigned_perm_id keys. Mail message drafts are a prime example of these kinds of objects. Each time a user saves a new version of a draft, the storage system needs to create a new object with the updated draft content and needs to delete the object containing the old content. The new object gets a new SERVER_ID but should get the same CLIENT_ASSIGNED_PERM_ID as the now-deleted object containing the old content. Carrying forward the perm ID allows it to be used to consistently refer to the same logical object across revisions. These perm IDs save sync clients from having to deal with changing object IDs. For example, assume there's a mail message in storage with SERVER_ID = 123 and CLIENT_ASSIGNED_PERM_ID = \"foo\". The following are all valid ways of addressing the object using MultiKeys: 1) MultiKey { server_id = 123 } 2) MultiKey { server_id = 123, client_assigned_perm_id = \"foo\" } 3) MultiKey { client_assigned_perm_id = \"foo\" } Multikeys are never serialized in the storage. The individual keys are extracted and processed separately. Both the integer ids as well as string ids are indexed for efficient retrieval using the same fields in the backend. See go/tingle-multikeys for more information on background and motivation.", - "id": "MultiKey", - "properties": { - "clientAssignedPermId": { - "description": "A client-assigned string based key.", - "type": "string" - }, - "serverId": { - "description": "A server-assigned ID. This ID must be used only by Gmail and is constructed using millesecond ts \u003c\u003c 20 + randomness. The ID affects the sort order of the index.", - "format": "uint64", - "type": "string" - } - }, - "type": "object" - }, - "Name": { - "description": "A person's name.", - "id": "Name", - "properties": { - "displayName": { - "description": "The read-only display name formatted according to the locale specified by the viewer's account or the `Accept-Language` HTTP header.", - "type": "string" - } - }, - "type": "object" - }, - "NamedProperty": { - "description": "A typed name-value pair for structured data. The type of the value should be the same as the registered type for the `name` property in the object definition of `objectType`.", - "id": "NamedProperty", - "properties": { - "booleanValue": { - "type": "boolean" - }, - "dateValues": { - "$ref": "DateValues" - }, - "doubleValues": { - "$ref": "DoubleValues" - }, - "enumValues": { - "$ref": "EnumValues" - }, - "htmlValues": { - "$ref": "HtmlValues" - }, - "integerValues": { - "$ref": "IntegerValues" - }, - "name": { - "description": "The name of the property. This name should correspond to the name of the property that was registered for object definition in the schema. The maximum allowable length for this property is 256 characters.", - "type": "string" - }, - "objectValues": { - "$ref": "ObjectValues" - }, - "textValues": { - "$ref": "TextValues" - }, - "timestampValues": { - "$ref": "TimestampValues" - } - }, - "type": "object" - }, - "OAuthConsumerProto": { - "description": "Represents an OAuth consumer, a/k/a AuthSub target. These principals are identified by domain name (e.g., example.com). Historically, Dasher domain GAIA group IDs have been used instead, but that doesn't work: http://go/tricky-gaia-ids", - "id": "OAuthConsumerProto", - "properties": { - "domain": { - "type": "string" - } - }, - "type": "object" - }, - "ObjectDefinition": { - "description": "The definition for an object within a data source.", - "id": "ObjectDefinition", - "properties": { - "name": { - "description": "The name for the object, which then defines its type. Item indexing requests should set the objectType field equal to this value. For example, if *name* is *Document*, then indexing requests for items of type Document should set objectType equal to *Document*. Each object definition must be uniquely named within a schema. The name must start with a letter and can only contain letters (A-Z, a-z) or numbers (0-9). The maximum length is 256 characters.", - "type": "string" - }, - "options": { - "$ref": "ObjectOptions", - "description": "The optional object-specific options." - }, - "propertyDefinitions": { - "description": "The property definitions for the object. The maximum number of elements is 1000.", - "items": { - "$ref": "PropertyDefinition" - }, - "type": "array" - } - }, - "type": "object" - }, - "ObjectDisplayOptions": { - "description": "The display options for an object.", - "id": "ObjectDisplayOptions", - "properties": { - "metalines": { - "description": "Defines the properties that are displayed in the metalines of the search results. The property values are displayed in the order given here. If a property holds multiple values, all of the values are displayed before the next properties. For this reason, it is a good practice to specify singular properties before repeated properties in this list. All of the properties must set is_returnable to true. The maximum number of metalines is 3.", - "items": { - "$ref": "Metaline" - }, - "type": "array" - }, - "objectDisplayLabel": { - "description": "The user friendly label to display in the search result to indicate the type of the item. This is OPTIONAL; if not provided, an object label isn't displayed on the context line of the search results. The maximum length is 64 characters.", - "type": "string" - } - }, - "type": "object" - }, - "ObjectOptions": { - "description": "The options for an object.", - "id": "ObjectOptions", - "properties": { - "displayOptions": { - "$ref": "ObjectDisplayOptions", - "description": "The options that determine how the object is displayed in the Cloud Search results page." - }, - "freshnessOptions": { - "$ref": "FreshnessOptions", - "description": "The freshness options for an object." - }, - "suggestionFilteringOperators": { - "description": "Operators that can be used to filter suggestions. For Suggest API, only operators mentioned here will be honored in the FilterOptions. Only TEXT and ENUM operators are supported. NOTE: \"objecttype\", \"type\" and \"mimetype\" are already supported. This property is to configure schema specific operators. Even though this is an array, only one operator can be specified. This is an array for future extensibility. Operators mapping to multiple properties within the same object are not supported. If the operator spans across different object types, this option has to be set once for each object definition.", - "items": { - "type": "string" - }, - "type": "array" - } - }, - "type": "object" - }, - "ObjectPropertyOptions": { - "description": "The options for object properties.", - "id": "ObjectPropertyOptions", - "properties": { - "subobjectProperties": { - "description": "The properties of the sub-object. These properties represent a nested object. For example, if this property represents a postal address, the subobjectProperties might be named *street*, *city*, and *state*. The maximum number of elements is 1000.", - "items": { - "$ref": "PropertyDefinition" - }, - "type": "array" - } - }, - "type": "object" - }, - "ObjectValues": { - "description": "List of object values.", - "id": "ObjectValues", - "properties": { - "values": { - "items": { - "$ref": "StructuredDataObject" - }, - "type": "array" - } - }, - "type": "object" - }, - "OnClick": { - "id": "OnClick", - "properties": { - "action": { - "$ref": "FormAction" - }, - "link": { - "description": "This can be used as a short form for OpenLink with the default OpenAs and OnClose. It may be undeprecated if this proves to be handy for developers.", - "type": "string" - }, - "openLink": { - "$ref": "OpenLink" - }, - "openLinkAction": { - "$ref": "FormAction", - "description": "An add-on triggers this action when the form action needs to open a link. This differs from the open_link above in that this needs to talk to server to get the link. Thus some preparation work is required for web client to do before the open link action response comes back." - } - }, - "type": "object" - }, - "OpenCreatedDraftActionMarkup": { - "id": "OpenCreatedDraftActionMarkup", - "properties": { - "draftId": { - "description": "The ID of the newly created draft in the form \"r123\".", - "type": "string" - }, - "draftStorageId": { - "description": "The server storage ID in hex format, for example,\"15e9fa622ce1029d\".", - "type": "string" - }, - "draftThreadId": { - "description": "The ID of the thread containing the newly created draft, for example, \"15e9fa622ce1029d\".", - "type": "string" - }, - "draftThreadServerPermId": { - "description": "The server permanent ID for the draft's thread. This field isn't set anywhere, and it's ignored when processing OpenCreatedDraftActionMarkup. Supply and use draftThreadStorageId instead.", - "type": "string" - } - }, - "type": "object" - }, - "OpenLink": { - "id": "OpenLink", - "properties": { - "loadIndicator": { - "description": "Next available ID: 5", - "enum": [ - "NONE", - "SPINNER" - ], - "enumDescriptions": [ - "", - "" - ], - "type": "string" - }, - "onClose": { - "enum": [ - "NOTHING", - "RELOAD_ADD_ON" - ], - "enumDescriptions": [ - "", - "" - ], - "type": "string" - }, - "openAs": { - "enum": [ - "FULL_SIZE", - "OVERLAY" - ], - "enumDescriptions": [ - "", - "" - ], - "type": "string" - }, - "url": { - "type": "string" - } - }, - "type": "object" - }, - "Operation": { - "description": "This resource represents a long-running operation that is the result of a network API call.", - "id": "Operation", - "properties": { - "done": { - "description": "If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.", - "type": "boolean" - }, - "error": { - "$ref": "Status", - "description": "The error result of the operation in case of failure or cancellation." - }, - "metadata": { - "additionalProperties": { - "description": "Properties of the object. Contains field @type with type URL.", - "type": "any" - }, - "description": "Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.", - "type": "object" - }, - "name": { - "description": "The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.", - "type": "string" - }, - "response": { - "additionalProperties": { - "description": "Properties of the object. Contains field @type with type URL.", - "type": "any" - }, - "description": "The normal response of the operation in case of success. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.", - "type": "object" - } - }, - "type": "object" - }, - "OsVersion": { - "id": "OsVersion", - "properties": { - "majorVersion": { - "format": "int32", - "type": "integer" - }, - "minorVersion": { - "format": "int32", - "type": "integer" - }, - "tertiaryVersion": { - "format": "int32", - "type": "integer" - } - }, - "type": "object" - }, - "OtrChatMessageEvent": { - "id": "OtrChatMessageEvent", - "properties": { - "expirationTimestampUsec": { - "format": "int64", - "type": "string" - }, - "kansasRowId": { - "type": "string" - }, - "kansasVersionInfo": { - "type": "string" - }, - "messageOtrStatus": { - "enum": [ - "OFF_THE_RECORD", - "ON_THE_RECORD" - ], - "enumDescriptions": [ - "The conversation is completely off the record.", - "The conversation is completely on the record." - ], - "type": "string" - } - }, - "type": "object" - }, - "OtrModificationEvent": { - "id": "OtrModificationEvent", - "properties": { - "newOtrStatus": { - "enum": [ - "OFF_THE_RECORD", - "ON_THE_RECORD" - ], - "enumDescriptions": [ - "The conversation is completely off the record.", - "The conversation is completely on the record." - ], - "type": "string" - }, - "newOtrToggle": { - "enum": [ - "ENABLED", - "DISABLED" - ], - "enumDescriptions": [ - "The conversation can be toggled", - "The conversation cannot be toggled" - ], - "type": "string" - }, - "oldOtrStatus": { - "enum": [ - "OFF_THE_RECORD", - "ON_THE_RECORD" - ], - "enumDescriptions": [ - "The conversation is completely off the record.", - "The conversation is completely on the record." - ], - "type": "string" - }, - "oldOtrToggle": { - "enum": [ - "ENABLED", - "DISABLED" - ], - "enumDescriptions": [ - "The conversation can be toggled", - "The conversation cannot be toggled" - ], - "type": "string" - } - }, - "type": "object" - }, - "PackagingServiceClient": { - "description": "Developers register a client in Google API Console to get the deep-linking feature on Google+ posts or frames about their apps. The client data is stored in this proto.", - "id": "PackagingServiceClient", - "properties": { - "androidPackageName": { - "description": "Android app's package name to generate the deep-link URI.", - "type": "string" - }, - "iosAppStoreId": { - "description": "iOS app's App Store ID to generate the App Store URL when app is not installed on device.", - "type": "string" - }, - "iosBundleId": { - "description": "iOS app's bundle ID to generate the deep-link URI.", - "type": "string" - }, - "type": { - "description": "Type of Google API Console client.", - "enum": [ - "ANDROID", - "IOS" - ], - "enumDescriptions": [ - "Client for Android app.", - "Client for iOS app." - ], - "type": "string" - } - }, - "type": "object" - }, - "PaygateInfo": { - "description": "Information provided to clients so that they can show upgrade promos and warnings on call ending early (for non-paying users).", - "id": "PaygateInfo", - "properties": { - "callEndingSoonWarningTime": { - "description": "Time when client should show message that the call is ending soon.", - "format": "google-datetime", - "type": "string" - }, - "callEndingTime": { - "description": "Time when the call will end if the user does not upgrade (after in-call upgrade support check has been implemented).", - "format": "google-datetime", - "type": "string" - }, - "showUpgradePromos": { - "description": "This boolean is used by clients to decide whether the user should be shown promos to upgrade.", - "type": "boolean" - } - }, - "type": "object" - }, - "PeopleSuggestion": { - "description": "This field contains information about the person being suggested.", - "id": "PeopleSuggestion", - "properties": { - "person": { - "$ref": "Person", - "description": "Suggested person. All fields of the person object might not be populated." - } - }, - "type": "object" - }, - "Person": { - "description": "Object to represent a person.", - "id": "Person", - "properties": { - "emailAddresses": { - "description": "The person's email addresses", - "items": { - "$ref": "EmailAddress" - }, - "type": "array" - }, - "name": { - "description": "The resource name of the person to provide information about. See [`People.get`](https://developers.google.com/people/api/rest/v1/people/get) from the Google People API.", - "type": "string" - }, - "obfuscatedId": { - "description": "Obfuscated ID of a person.", - "type": "string" - }, - "personNames": { - "description": "The person's name", - "items": { - "$ref": "Name" - }, - "type": "array" - }, - "phoneNumbers": { - "description": "The person's phone numbers", - "items": { - "$ref": "PhoneNumber" - }, - "type": "array" - }, - "photos": { - "description": "A person's read-only photo. A picture shown next to the person's name to help others recognize the person in search results.", - "items": { - "$ref": "Photo" - }, - "type": "array" - } - }, - "type": "object" - }, - "PersonalLabelTag": { - "description": "An individual instance (or \"tag\") of a label configured as a personal type that's associated with a message.", - "id": "PersonalLabelTag", - "properties": { - "labelId": { - "description": "A string ID representing the label. Possible ID values are documented at go/chat-labels-howto:ids. Examples: \"^t\" for \"Starred\", \"^nu\" for \"Nudged\".", - "type": "string" - } - }, - "type": "object" - }, - "PhoneAccess": { - "description": "Phone access contains information required to dial into a conference using a regional phone number and a PIN that is specific to that phone number.", - "id": "PhoneAccess", - "properties": { - "formattedPhoneNumber": { - "description": "The phone number to dial for this meeting space in INTERNATIONAL format. Full phone number with a leading '+' character and whitespace separations.", - "type": "string" - }, - "languageCode": { - "description": "The BCP 47/LDML language code for the language associated with this phone access. To be parsed by the i18n LanguageCode utility. Examples: \"es-419\" for Latin American Spanish, \"fr-CA\" for Canadian French.", - "type": "string" - }, - "phoneNumber": { - "description": "The phone number to dial for this meeting space in E.164 format. Full phone number with a leading '+' character.", - "type": "string" - }, - "pin": { - "description": "The PIN that users must enter after dialing the given number. The PIN consists of only decimal digits and the length may vary.", - "type": "string" - }, - "regionCode": { - "description": "The CLDR/ISO 3166 region code for the country associated with this phone access. To be parsed by the i18n RegionCode utility. Example: \"SE\" for Sweden.", - "type": "string" - } - }, - "type": "object" - }, - "PhoneNumber": { - "description": "A person's Phone Number", - "id": "PhoneNumber", - "properties": { - "phoneNumber": { - "description": "The phone number of the person.", - "type": "string" - }, - "type": { - "enum": [ - "OTHER", - "MOBILE", - "OFFICE" - ], - "enumDescriptions": [ - "", - "", - "" - ], - "type": "string" - } - }, - "type": "object" - }, - "Photo": { - "description": "A person's photo.", - "id": "Photo", - "properties": { - "url": { - "description": "The URL of the photo.", - "type": "string" - } - }, - "type": "object" - }, - "PinnedItemId": { - "id": "PinnedItemId", - "properties": { - "driveId": { - "description": "Identifier for a Drive file (e.g. Docs, Sheets, Slides).", - "type": "string" - } - }, - "type": "object" - }, - "PollItemsRequest": { - "id": "PollItemsRequest", - "properties": { - "connectorName": { - "description": "The name of connector making this call. Format: datasources/{source_id}/connectors/{ID}", - "type": "string" - }, - "debugOptions": { - "$ref": "DebugOptions", - "description": "Common debug options." - }, - "limit": { - "description": "Maximum number of items to return. The maximum value is 100 and the default value is 20.", - "format": "int32", - "type": "integer" - }, - "queue": { - "description": "Queue name to fetch items from. If unspecified, PollItems will fetch from 'default' queue. The maximum length is 100 characters.", - "type": "string" - }, - "statusCodes": { - "description": "Limit the items polled to the ones with these statuses.", - "items": { - "enum": [ - "CODE_UNSPECIFIED", - "ERROR", - "MODIFIED", - "NEW_ITEM", - "ACCEPTED" - ], - "enumDescriptions": [ - "Input-only value. Used with Items.list to list all items in the queue, regardless of status.", - "Error encountered by Cloud Search while processing this item. Details of the error are in repositoryError.", - "Item has been modified in the repository, and is out of date with the version previously accepted into Cloud Search.", - "Item is known to exist in the repository, but is not yet accepted by Cloud Search. An item can be in this state when Items.push has been called for an item of this name that did not exist previously.", - "API has accepted the up-to-date data of this item." - ], - "type": "string" - }, - "type": "array" - } - }, - "type": "object" - }, - "PollItemsResponse": { - "id": "PollItemsResponse", - "properties": { - "items": { - "description": "Set of items from the queue available for connector to process. These items have the following subset of fields populated: version metadata.hash structured_data.hash content.hash payload status queue", - "items": { - "$ref": "Item" - }, - "type": "array" - } - }, - "type": "object" - }, - "PossiblyTrimmedModel": { - "description": "This message contains either the device model, or a prefix of the device model (AKA a trimmed device model). The \"is_trimmed\" field indicates which one it is.", - "id": "PossiblyTrimmedModel", - "properties": { - "isTrimmed": { - "type": "boolean" - }, - "model": { - "type": "string" - } - }, - "type": "object" - }, - "PostiniUserProto": { - "description": "See http://s/?fileprint=//depot/google3/security/authentication/postini/auth_token.proto", - "id": "PostiniUserProto", - "properties": { - "postiniUserId": { - "format": "int64", - "type": "string" - } - }, - "type": "object" - }, - "PreState": { - "description": "State of the thread previous to the update. This really just describes the label state of all messages before the update.", - "id": "PreState", - "properties": { - "labelIds": { - "items": { - "type": "string" - }, - "type": "array" - }, - "messageKey": { - "$ref": "MultiKey" - }, - "syncIds": { - "description": "Note that there can be fewer sync ids than label ids.", - "items": { - "format": "uint32", - "type": "integer" - }, - "type": "array" - }, - "threadKey": { - "$ref": "MultiKey" - } - }, - "type": "object" - }, - "PrefDeleted": { - "description": "PREF_DELETED", - "id": "PrefDeleted", - "properties": {}, - "type": "object" - }, - "PrefUpdate": { - "description": "HistoryRecord for changes associated with prefs, namely: PREF_WRITTEN PREF_DELETED", - "id": "PrefUpdate", - "properties": { - "name": { - "description": "Name of the affected preference.", - "type": "string" - }, - "preState": { - "$ref": "FuseboxPrefUpdatePreState" - }, - "prefDeleted": { - "$ref": "PrefDeleted" - }, - "prefWritten": { - "$ref": "PrefWritten" - } - }, - "type": "object" - }, - "PrefWritten": { - "description": "PREF_WRITTEN", - "id": "PrefWritten", - "properties": { - "value": { - "format": "byte", - "type": "string" - } - }, - "type": "object" - }, - "Presenter": { - "description": "Presenter contains information about which device is currently presenting as well as which device requested the presenter to be set.", - "id": "Presenter", - "properties": { - "annotationInfo": { - "$ref": "AnnotationInfo", - "description": "Screen annotation information associated with this presentation session." - }, - "byDeviceId": { - "description": "The device resource name of the device which requested the current presenter to be set. This field can not be modified by clients.", - "type": "string" - }, - "copresenterDeviceIds": { - "description": "The device resource names of other devices which can control the current presentation.", - "items": { - "type": "string" - }, - "type": "array" - }, - "presenterDeviceId": { - "description": "The device resource name of the currently presenting device.", - "type": "string" - } - }, - "type": "object" - }, - "Principal": { - "description": "Reference to a user, group, or domain.", - "id": "Principal", - "properties": { - "groupResourceName": { - "description": "This principal is a group identified using an external identity. The name field must specify the group resource name with this format: identitysources/{source_id}/groups/{ID}", - "type": "string" - }, - "gsuitePrincipal": { - "$ref": "GSuitePrincipal", - "description": "This principal is a Google Workspace user, group or domain." - }, - "userResourceName": { - "description": "This principal is a user identified using an external identity. The name field must specify the user resource name with this format: identitysources/{source_id}/users/{ID}", - "type": "string" - } - }, - "type": "object" - }, - "PrincipalProto": { - "description": "A Principal represents something to which permissions are assigned, often but not always a user or group of some kind. It is most appropriate for use in ACLs and authorization checks. Callers should prefer to use the wrapper classes in google3/security/credentials/public/principal.h google3/java/com/google/security/credentials/Principal.java google3/security/credentials/go/principal.go unless direct proto access is essential. If you update this protocol buffer, please update the wrapper classes as well. LINT.IfChange", - "id": "PrincipalProto", - "properties": { - "allAuthenticatedUsers": { - "$ref": "AllAuthenticatedUsersProto", - "description": "scope = ALL_AUTHENTICATED_USERS" - }, - "capTokenHolder": { - "$ref": "CapTokenHolderProto", - "description": "scope = CAP_TOKEN_HOLDER" - }, - "chat": { - "$ref": "ChatProto", - "description": "scope = CHAT" - }, - "circle": { - "$ref": "CircleProto", - "description": "scope = CIRCLE" - }, - "cloudPrincipal": { - "$ref": "CloudPrincipalProto", - "description": "scope = CLOUD_PRINCIPAL" - }, - "contactGroup": { - "$ref": "ContactGroupProto", - "description": "scope = CONTACT_GROUP" - }, - "emailOwner": { - "$ref": "EmailOwnerProto", - "description": "scope = EMAIL_OWNER" - }, - "event": { - "$ref": "EventProto", - "description": "scope = EVENT" - }, - "gaiaGroup": { - "$ref": "GaiaGroupProto", - "description": "scope = GAIA_GROUP" - }, - "gaiaUser": { - "$ref": "GaiaUserProto", - "description": "scope = GAIA_USER" - }, - "host": { - "$ref": "HostProto", - "description": "scope = HOST" - }, - "ldapGroup": { - "$ref": "LdapGroupProto", - "description": "scope = LDAP_GROUP" - }, - "ldapUser": { - "$ref": "LdapUserProto", - "description": "scope = LDAP_USER" - }, - "mdbGroup": { - "$ref": "MdbGroupProto", - "description": "scope = MDB_GROUP" - }, - "mdbUser": { - "$ref": "MdbUserProto", - "description": "scope = MDB_USER" - }, - "oauthConsumer": { - "$ref": "OAuthConsumerProto", - "description": "scope = OAUTH_CONSUMER;" - }, - "postiniUser": { - "$ref": "PostiniUserProto", - "description": "scope = POSTINI_USER" - }, - "rbacRole": { - "$ref": "RbacRoleProto", - "description": "scope = RBAC_ROLE" - }, - "rbacSubject": { - "$ref": "RbacSubjectProto", - "description": "scope = RBAC_SUBJECT" - }, - "resourceRole": { - "$ref": "ResourceRoleProto", - "description": "scope = RESOURCE_ROLE" - }, - "scope": { - "description": "This is only optional because required enums cannot be extended. Currently required.", - "enum": [ - "INVALID", - "GAIA_USER", - "GAIA_GROUP", - "LDAP_USER", - "LDAP_GROUP", - "MDB_USER", - "MDB_GROUP", - "POSTINI_USER", - "CONTACT_GROUP", - "SIMPLE_SECRET_HOLDER", - "SIGNING_KEY_POSSESSOR", - "ALL_AUTHENTICATED_USERS", - "OAUTH_CONSUMER", - "HOST", - "SOCIAL_GRAPH_NODE", - "EMAIL_OWNER", - "CAP_TOKEN_HOLDER", - "CIRCLE", - "SQUARE", - "EVENT", - "RESOURCE_ROLE", - "CHAT", - "YOUTUBE_USER", - "UNUSED_ZWIEBACK_SESSION", - "ZWIEBACK_SESSION", - "RBAC_ROLE", - "RBAC_SUBJECT", - "CLOUD_PRINCIPAL" - ], - "enumDescriptions": [ - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "next tag: 29" - ], - "type": "string" - }, - "signingKeyPossessor": { - "$ref": "SigningKeyPossessorProto", - "description": "scope = SIGNING_KEY_POSSESSOR" - }, - "simpleSecretHolder": { - "$ref": "SimpleSecretHolderProto", - "description": "scope = SIMPLE_SECRET_HOLDER" - }, - "socialGraphNode": { - "$ref": "SocialGraphNodeProto", - "description": "scope = SOCIAL_GRAPH_NODE" - }, - "square": { - "$ref": "SquareProto", - "description": "scope = SQUARE" - }, - "youtubeUser": { - "$ref": "YoutubeUserProto", - "description": "scope = YOUTUBE_USER" - }, - "zwiebackSession": { - "$ref": "ZwiebackSessionProto", - "description": "scope = ZWIEBACK_SESSION" - } - }, - "type": "object" - }, - "PrivateMessageInfo": { - "description": "Private message information specific to a given user. DEPRECATED: Use the privateMessageViewer field in CreateMessageInfo instead.", - "id": "PrivateMessageInfo", - "properties": { - "annotations": { - "description": "Annotations private to {@code userId}.", - "items": { - "$ref": "Annotation" - }, - "type": "array" - }, - "attachments": { - "description": "Attachments private to {@code userId}.", - "items": { - "$ref": "Attachment" - }, - "type": "array" - }, - "contextualAddOnMarkup": { - "items": { - "$ref": "GoogleChatV1ContextualAddOnMarkup" - }, - "type": "array" - }, - "gsuiteIntegrationMetadata": { - "items": { - "$ref": "GsuiteIntegrationMetadata" - }, - "type": "array" - }, - "text": { - "description": "Text private to {@code user_id}. Initial restriction: Only one of public text or private text is rendered on the client. So if public text is set, private text is ignored.", - "type": "string" - }, - "userId": { - "$ref": "UserId", - "description": "Required. The elements in this struct are visible to this user." - } - }, - "type": "object" - }, - "ProcessingError": { - "id": "ProcessingError", - "properties": { - "code": { - "description": "Error code indicating the nature of the error.", - "enum": [ - "PROCESSING_ERROR_CODE_UNSPECIFIED", - "MALFORMED_REQUEST", - "UNSUPPORTED_CONTENT_FORMAT", - "INDIRECT_BROKEN_ACL", - "ACL_CYCLE" - ], - "enumDescriptions": [ - "Input only value. Use this value in Items.", - "Item's ACL, metadata, or content is malformed or in invalid state. FieldViolations contains more details on where the problem is.", - "Countent format is unsupported.", - "Items with incomplete ACL information due to inheriting other items with broken ACL or having groups with unmapped descendants.", - "ACL inheritance graph formed a cycle." - ], - "type": "string" - }, - "errorMessage": { - "description": "The description of the error.", - "type": "string" - }, - "fieldViolations": { - "description": "In case the item fields are invalid, this field contains the details about the validation errors.", - "items": { - "$ref": "FieldViolation" - }, - "type": "array" - } - }, - "type": "object" - }, - "PropertyDefinition": { - "description": "The definition of a property within an object.", - "id": "PropertyDefinition", - "properties": { - "booleanPropertyOptions": { - "$ref": "BooleanPropertyOptions" - }, - "datePropertyOptions": { - "$ref": "DatePropertyOptions" - }, - "displayOptions": { - "$ref": "PropertyDisplayOptions", - "description": "The options that determine how the property is displayed in the Cloud Search results page if it's specified to be displayed in the object's display options." - }, - "doublePropertyOptions": { - "$ref": "DoublePropertyOptions" - }, - "enumPropertyOptions": { - "$ref": "EnumPropertyOptions" - }, - "htmlPropertyOptions": { - "$ref": "HtmlPropertyOptions" - }, - "integerPropertyOptions": { - "$ref": "IntegerPropertyOptions" - }, - "isFacetable": { - "description": "Indicates that the property can be used for generating facets. Cannot be true for properties whose type is object. IsReturnable must be true to set this option. Only supported for boolean, enum, integer, and text properties.", - "type": "boolean" - }, - "isRepeatable": { - "description": "Indicates that multiple values are allowed for the property. For example, a document only has one description but can have multiple comments. Cannot be true for properties whose type is a boolean. If set to false, properties that contain more than one value cause the indexing request for that item to be rejected.", - "type": "boolean" - }, - "isReturnable": { - "description": "Indicates that the property identifies data that should be returned in search results via the Query API. If set to *true*, indicates that Query API users can use matching property fields in results. However, storing fields requires more space allocation and uses more bandwidth for search queries, which impacts performance over large datasets. Set to *true* here only if the field is needed for search results. Cannot be true for properties whose type is an object.", - "type": "boolean" - }, - "isSortable": { - "description": "Indicates that the property can be used for sorting. Cannot be true for properties that are repeatable. Cannot be true for properties whose type is object. IsReturnable must be true to set this option. Only supported for boolean, date, double, integer, and timestamp properties.", - "type": "boolean" - }, - "isSuggestable": { - "description": "Indicates that the property can be used for generating query suggestions.", - "type": "boolean" - }, - "isWildcardSearchable": { - "description": "Indicates that users can perform wildcard search for this property. Only supported for Text properties. IsReturnable must be true to set this option. In a given datasource maximum of 5 properties can be marked as is_wildcard_searchable. For more details, see [Define object properties](https://developers.google.com/cloud-search/docs/guides/schema-guide#properties)", - "type": "boolean" - }, - "name": { - "description": "The name of the property. Item indexing requests sent to the Indexing API should set the property name equal to this value. For example, if name is *subject_line*, then indexing requests for document items with subject fields should set the name for that field equal to *subject_line*. Use the name as the identifier for the object property. Once registered as a property for an object, you cannot re-use this name for another property within that object. The name must start with a letter and can only contain letters (A-Z, a-z) or numbers (0-9). The maximum length is 256 characters.", - "type": "string" - }, - "objectPropertyOptions": { - "$ref": "ObjectPropertyOptions" - }, - "textPropertyOptions": { - "$ref": "TextPropertyOptions" - }, - "timestampPropertyOptions": { - "$ref": "TimestampPropertyOptions" - } - }, - "type": "object" - }, - "PropertyDisplayOptions": { - "description": "The display options for a property.", - "id": "PropertyDisplayOptions", - "properties": { - "displayLabel": { - "description": "The user friendly label for the property that is used if the property is specified to be displayed in ObjectDisplayOptions. If provided, the display label is shown in front of the property values when the property is part of the object display options. For example, if the property value is '1', the value by itself may not be useful context for the user. If the display name given was 'priority', then the user sees 'priority : 1' in the search results which provides clear context to search users. This is OPTIONAL; if not given, only the property values are displayed. The maximum length is 64 characters.", - "type": "string" - } - }, - "type": "object" - }, - "Provenance": { - "description": "This field records where the ItemScope was retrieved, if it was created via a web fetch.", - "id": "Provenance", - "properties": { - "annotationBlob": { - "description": "Annotation blob from Annotation Service.", - "format": "byte", - "type": "string" - }, - "canonicalUrl": { - "description": "Canonical url of the retrieved_url, if one was resolved during retrieval, for example, if a rel=\"canonical\" link tag was provided in the retrieved web page.", - "type": "string" - }, - "inputUrl": { - "description": "The url originally passed in the PRS request, which should be used to re-discover the content. Note that this URL may be a forwarding service or link shortener (bit.ly), so it should not be assumed to be canonical, but should be used for navigation back to the original source of the itemscope.", - "type": "string" - }, - "itemtype": { - "description": "Contains exact types as parsed, whether or not we recognized that type at parse time. If an itemscope is created by merging SchemaOrg markup and open graph markup then the first itemtype would be schemaorg type, the second would be open graph and so on. example: http://schema.org/VideoObject, og:video.movie Plain text; usually a URL", - "items": { - "type": "string" - }, - "type": "array" - }, - "retrievedTimestampMsec": { - "description": "The server retrieved timestamp (in msec).", - "format": "uint64", - "type": "string" - }, - "retrievedUrl": { - "description": "The final URL that was the actual source of the itemscope, after any redirects.", - "type": "string" - } - }, - "type": "object" - }, - "PushItem": { - "description": "Represents an item to be pushed to the indexing queue.", - "id": "PushItem", - "properties": { - "contentHash": { - "description": "Content hash of the item according to the repository. If specified, this is used to determine how to modify this item's status. Setting this field and the type field results in argument error. The maximum length is 2048 characters.", - "type": "string" - }, - "metadataHash": { - "description": "The metadata hash of the item according to the repository. If specified, this is used to determine how to modify this item's status. Setting this field and the type field results in argument error. The maximum length is 2048 characters.", - "type": "string" - }, - "payload": { - "description": "Provides additional document state information for the connector, such as an alternate repository ID and other metadata. The maximum length is 8192 bytes.", - "format": "byte", - "type": "string" - }, - "queue": { - "description": "Queue to which this item belongs. The `default` queue is chosen if this field is not specified. The maximum length is 512 characters.", - "type": "string" - }, - "repositoryError": { - "$ref": "RepositoryError", - "description": "Populate this field to store Connector or repository error details. This information is displayed in the Admin Console. This field may only be populated when the Type is REPOSITORY_ERROR." - }, - "structuredDataHash": { - "description": "Structured data hash of the item according to the repository. If specified, this is used to determine how to modify this item's status. Setting this field and the type field results in argument error. The maximum length is 2048 characters.", - "type": "string" - }, - "type": { - "description": "The type of the push operation that defines the push behavior.", - "enum": [ - "UNSPECIFIED", - "MODIFIED", - "NOT_MODIFIED", - "REPOSITORY_ERROR", - "REQUEUE" - ], - "enumDescriptions": [ - "Default UNSPECIFIED. Specifies that the push operation should not modify ItemStatus", - "Indicates that the repository document has been modified or updated since the previous update call. This changes status to MODIFIED state for an existing item. If this is called on a non existing item, the status is changed to NEW_ITEM.", - "Item in the repository has not been modified since the last update call. This push operation will set status to ACCEPTED state.", - "Connector is facing a repository error regarding this item. Change status to REPOSITORY_ERROR state. Item is unreserved and rescheduled at a future time determined by exponential backoff.", - "Call push with REQUEUE only for items that have been reserved. This action unreserves the item and resets its available time to the wall clock time." - ], - "type": "string" - } - }, - "type": "object" - }, - "PushItemRequest": { - "id": "PushItemRequest", - "properties": { - "connectorName": { - "description": "The name of connector making this call. Format: datasources/{source_id}/connectors/{ID}", - "type": "string" - }, - "debugOptions": { - "$ref": "DebugOptions", - "description": "Common debug options." - }, - "item": { - "$ref": "PushItem", - "description": "Item to push onto the queue." - } - }, - "type": "object" - }, - "QueryActivity": { - "description": "Details about a user's query activity.", - "id": "QueryActivity", - "properties": { - "query": { - "description": "User input query to be logged/removed.", - "type": "string" - } - }, - "type": "object" - }, - "QueryCountByStatus": { - "id": "QueryCountByStatus", - "properties": { - "count": { - "format": "int64", - "type": "string" - }, - "statusCode": { - "description": "This represents the http status code.", - "format": "int32", - "type": "integer" - } - }, - "type": "object" - }, - "QueryInterpretation": { - "id": "QueryInterpretation", - "properties": { - "interpretationType": { - "enum": [ - "NONE", - "BLEND", - "REPLACE" - ], - "enumDescriptions": [ - "Neither the natural language interpretation, nor a broader version of the query is used to fetch the search results.", - "The results from original query are blended with other results. The reason for blending these other results with the results from original query is populated in the 'Reason' field below.", - "The results from original query are replaced. The reason for replacing the results from original query is populated in the 'Reason' field below." - ], - "type": "string" - }, - "interpretedQuery": { - "description": "The interpretation of the query used in search. For example, queries with natural language intent like \"email from john\" will be interpreted as \"from:john source:mail\". This field will not be filled when the reason is NOT_ENOUGH_RESULTS_FOUND_FOR_USER_QUERY.", - "type": "string" - }, - "reason": { - "description": "The reason for interpretation of the query. This field will not be UNSPECIFIED if the interpretation type is not NONE.", - "enum": [ - "UNSPECIFIED", - "QUERY_HAS_NATURAL_LANGUAGE_INTENT", - "NOT_ENOUGH_RESULTS_FOUND_FOR_USER_QUERY" - ], - "enumDescriptions": [ - "", - "Natural language interpretation of the query is used to fetch the search results.", - "Query and document terms similarity is used to selectively broaden the query to retrieve additional search results since enough results were not found for the user query. Interpreted query will be empty for this case." - ], - "type": "string" - } - }, - "type": "object" - }, - "QueryInterpretationConfig": { - "description": "Default options to interpret user query.", - "id": "QueryInterpretationConfig", - "properties": { - "forceDisableSupplementalResults": { - "description": "Set this flag to disable supplemental results retrieval, setting a flag here will not retrieve supplemental results for queries associated with a given search application. If this flag is set to True, it will take precedence over the option set at Query level. For the default value of False, query level flag will set the correct interpretation for supplemental results.", - "type": "boolean" - }, - "forceVerbatimMode": { - "description": "Enable this flag to turn off all internal optimizations like natural language (NL) interpretation of queries, supplemental results retrieval, and usage of synonyms including custom ones. If this flag is set to True, it will take precedence over the option set at Query level. For the default value of False, query level flag will set the correct interpretation for verbatim mode.", - "type": "boolean" - } - }, - "type": "object" - }, - "QueryInterpretationOptions": { - "description": "Options to interpret user query.", - "id": "QueryInterpretationOptions", - "properties": { - "disableNlInterpretation": { - "description": "Flag to disable natural language (NL) interpretation of queries. Default is false, Set to true to disable natural language interpretation. NL interpretation only applies to predefined datasources.", - "type": "boolean" - }, - "disableSupplementalResults": { - "description": "Use this flag to disable supplemental results for a query. Supplemental results setting chosen at SearchApplication level will take precedence if set to True.", - "type": "boolean" - }, - "enableVerbatimMode": { - "description": "Enable this flag to turn off all internal optimizations like natural language (NL) interpretation of queries, supplemental result retrieval, and usage of synonyms including custom ones. Nl interpretation will be disabled if either one of the two flags is true.", - "type": "boolean" - } - }, - "type": "object" - }, - "QueryItem": { - "description": "Information relevant only to a query entry.", - "id": "QueryItem", - "properties": { - "isSynthetic": { - "description": "True if the text was generated by means other than a previous user search.", - "type": "boolean" - } - }, - "type": "object" - }, - "QueryOperator": { - "description": "The definition of a operator that can be used in a Search/Suggest request.", - "id": "QueryOperator", - "properties": { - "displayName": { - "description": "Display name of the operator", - "type": "string" - }, - "enumValues": { - "description": "Potential list of values for the opeatror field. This field is only filled when we can safely enumerate all the possible values of this operator.", - "items": { - "type": "string" - }, - "type": "array" - }, - "greaterThanOperatorName": { - "description": "Indicates the operator name that can be used to isolate the property using the greater-than operator.", - "type": "string" - }, - "isFacetable": { - "description": "Can this operator be used to get facets.", - "type": "boolean" - }, - "isRepeatable": { - "description": "Indicates if multiple values can be set for this property.", - "type": "boolean" - }, - "isReturnable": { - "description": "Will the property associated with this facet be returned as part of search results.", - "type": "boolean" - }, - "isSortable": { - "description": "Can this operator be used to sort results.", - "type": "boolean" - }, - "isSuggestable": { - "description": "Can get suggestions for this field.", - "type": "boolean" - }, - "lessThanOperatorName": { - "description": "Indicates the operator name that can be used to isolate the property using the less-than operator.", - "type": "string" - }, - "objectType": { - "description": "The name of the object corresponding to the operator. This field is only filled for schema-specific operators, and is unset for common operators.", - "type": "string" - }, - "operatorName": { - "description": "The name of the operator.", - "type": "string" - }, - "type": { - "description": "The type of the operator.", - "enum": [ - "UNKNOWN", - "INTEGER", - "DOUBLE", - "TIMESTAMP", - "BOOLEAN", - "ENUM", - "DATE", - "TEXT", - "HTML" - ], - "enumDescriptions": [ - "Invalid value.", - "", - "", - "", - "", - "", - "", - "", - "" - ], - "type": "string" - } - }, - "type": "object" - }, - "QuerySource": { - "description": "List of sources that the user can search using the query API.", - "id": "QuerySource", - "properties": { - "displayName": { - "description": "Display name of the data source.", - "type": "string" - }, - "operators": { - "description": "List of all operators applicable for this source.", - "items": { - "$ref": "QueryOperator" - }, - "type": "array" - }, - "shortName": { - "description": "A short name or alias for the source. This value can be used with the 'source' operator.", - "type": "string" - }, - "source": { - "$ref": "Source", - "description": "The name of the source" - } - }, - "type": "object" - }, - "QuerySuggestion": { - "description": "This field does not contain anything as of now and is just used as an indicator that the suggest result was a phrase completion.", - "id": "QuerySuggestion", - "properties": {}, - "type": "object" - }, - "QuotedMessageMetadata": { - "description": "Quote metadata: go/message-quoting-be-dd-v2. This proto is only used on the read path. For the request proto, refer to `QuotedMessagePayload`. Fields are either derived from storage directly from the Item this metadata belongs to, or is hydrated at read time from another Item read. Note: QuotedMessageMetadata proto is similar to Message proto with less field. Reasons to differtiate QuotedMessageMetadata from Message are: 1. Not all fields for original message is applicable for quoted message. (E.g. reactions, is_inline_reply, etc.), thus separting out for confusion. 2. We don't support nested message quoting. For more detailed discussion, please see http://shortn/_VsSXQb2C7P. For future reference: if your new feature/field will be supported in message quoting feature (go/chat-quoting-prd), you will need to add that field within QuotedMessageMetadata", - "id": "QuotedMessageMetadata", - "properties": { - "annotations": { - "description": "Output only. Snapshot of the annotations of the quoted message.", - "items": { - "$ref": "Annotation" - }, - "readOnly": true, - "type": "array" - }, - "appProfile": { - "$ref": "AppsDynamiteSharedAppProfile", - "description": "Output only. Custom display profile info for apps. Will be empty for real users.", - "readOnly": true - }, - "botAttachmentState": { - "description": "Output only. The bot attachment state of the quoted message. Used by clients to display a bot attachment indicator in the UI.", - "enum": [ - "BOT_ATTACHMENT_STATE_UNSPECIFIED", - "BOT_ATTACHMENT_STATE_HAS_BOT_ATTACHMENT", - "BOT_ATTACHMENT_STATE_NO_BOT_ATTACHMENT" - ], - "enumDescriptions": [ - "", - "", - "" - ], - "readOnly": true, - "type": "string" - }, - "createTimeMicros": { - "description": "Output only. Time when the quoted message was posted in microseconds.", - "format": "int64", - "readOnly": true, - "type": "string" - }, - "creatorId": { - "$ref": "UserId", - "description": "Output only. ID of the User who posted the quoted message. This includes information to identify if the quoted message was posted by an App on behalf of a user.", - "readOnly": true - }, - "lastEditTimeMicros": { - "description": "Output only. Time when the quoted message was last edited by a user at the time when quoting action happens. Time is in microseconds.", - "format": "int64", - "readOnly": true, - "type": "string" - }, - "lastUpdateTimeWhenQuotedMicros": { - "description": "The `last_update_time` of the original message when the client initiated the quote creation. This is derived from the request payload passed from clients. Used to fetch the quoted message contents at a specific time on the read path. This field is populated from storage directly.", - "format": "int64", - "type": "string" - }, - "messageId": { - "$ref": "MessageId", - "description": "MessageId of the original message that is being quoted. This is derived from the request payload passed from clients. This field is populated from storage directly." - }, - "messageState": { - "description": "Output only. The state of the quoted message. Used by clients to display tombstones for quotes that reference a deleted message.", - "enum": [ - "MESSAGE_STATE_UNSPECIFIED", - "MESSAGE_STATE_ACTIVE", - "MESSAGE_STATE_DELETED", - "MESSAGE_STATE_OTR_EDITED" - ], - "enumDescriptions": [ - "", - "The original message is present in storage and not deleted; the message contents can be hydrated.", - "The original message has been deleted; the message contents cannot be hydrated.", - "The OTR original message was edited and therefore no longer retrievable from storage; the message contents cannot be hydrated. See go/message-quoting-otr-edits for more context." - ], - "readOnly": true, - "type": "string" - }, - "retentionSettings": { - "$ref": "AppsDynamiteSharedRetentionSettings", - "description": "Output only. The retention (OTR) settings of the quoted message.", - "readOnly": true - }, - "textBody": { - "description": "Output only. Snapshot of the text body of the quoted message.", - "readOnly": true, - "type": "string" - }, - "updaterId": { - "$ref": "UserId", - "description": "Output only. ID of the User who last updated (created/edited/deleted) the quoted message at the time when quoting action happens. This includes information to identify if the quoted message was posted by an App on behalf of a user.", - "readOnly": true - }, - "uploadMetadata": { - "description": "Output only. Upload metadata of the quoted message.", - "items": { - "$ref": "UploadMetadata" - }, - "readOnly": true, - "type": "array" - } - }, - "type": "object" - }, - "Rank": { - "description": "The rank contains a tuple of numbers which may be used as a general sort order. The rank should be treated as an ordered set of numbers, where the ordering is done in descending order of the most significant rank member. For example, given the following ranks described as (primary, secondary): (1,1), (1,2), (2,2) (2,1) The descending rank-order is: (2,2) \u003e (2,1) \u003e (1,2) \u003e (1,1)", - "id": "Rank", - "properties": { - "primary": { - "description": "The primary rank is the most significant rank member. This rank element should always be present. Items with higher primary rank are always considered of higher rank than those of lower primary rank.", - "format": "int64", - "type": "string" - }, - "secondary": { - "description": "The secondary rank may be used to rank items of identical primary rank. This rank element should always be present.", - "format": "int64", - "type": "string" - } - }, - "type": "object" - }, - "RbacRoleProto": { - "description": "Principal associated with a given RBAC role. This principal is used by Sphinx Provisioning Service for RBAC provisionable (go/sphinx-rbacz).", - "id": "RbacRoleProto", - "properties": { - "name": { - "type": "string" - }, - "objectId": { - "type": "string" - }, - "rbacNamespace": { - "description": "DEPRECATED as of 01.11.2019", - "type": "string" - }, - "rbacRoleName": { - "description": "Format: \"role/z?\" - \"role\" is the Sphinx globally unique name of the Sphinx role that provisions the RBAC role. - \"/z?\" suffix indicates which Zanzibar environment stores the role membership data (\"/zd\": dev, \"/zs\": staging, \"/zp\": prod, \"/zt\": local test instance). Example: \"mysystem_myrole/zp\"", - "type": "string" - } - }, - "type": "object" - }, - "RbacSubjectProto": { - "description": "Principal associated with a given RBAC subject. This principal is used by Sphinx Provisioning Service for RBAC provisionable (go/sphinx-rbacz).", - "id": "RbacSubjectProto", - "properties": { - "username": { - "description": "Format \"username\" without \"@domain\", e.g., \"bogdand\".", - "type": "string" - } - }, - "type": "object" - }, - "ReactionInfo": { - "description": "Contains information about an emoji reaction.", - "id": "ReactionInfo", - "properties": { - "emoji": { - "description": "Unicode string representing a single emoji.", - "type": "string" - } - }, - "type": "object" - }, - "ReadReceiptsSettingsUpdatedMetadata": { - "id": "ReadReceiptsSettingsUpdatedMetadata", - "properties": { - "readReceiptsEnabled": { - "description": "The new read receipts state.", - "type": "boolean" - } - }, - "type": "object" - }, - "Recipient": { - "id": "Recipient", - "properties": { - "email": { - "type": "string" - } - }, - "type": "object" - }, - "RecordingEvent": { - "description": "A recording event is something that happens to the recording in a conference.", - "id": "RecordingEvent", - "properties": { - "deviceId": { - "description": "The initiator of the latest event of the recording. It will be set for all user events (`type` is 100-199) and unset for all server events (`type` is 200-299).", - "type": "string" - }, - "type": { - "description": "The type of event.", - "enum": [ - "RECORDING_EVENT_UNSPECIFIED", - "USER_ACTION", - "STARTED_BY_USER", - "STOPPED_BY_USER", - "CANCELLED_BY_USER", - "CANCELLED_INITIALIZATION_FAILED", - "CANCELLED_INITIATOR_LEFT", - "ACTIVE_ABOUT_TO_STOP_TOO_LONG", - "STOPPED_TOO_LONG", - "STOPPED_ALL_DEVICES_LEFT", - "STOPPED_INTERNAL_FAILURES" - ], - "enumDescriptions": [ - "This is never used.", - "Deprecated, use detailed user actions instead.", - "Recording was started or is being started by a user.", - "Recording was stopped by a user.", - "Recording was cancelled by a user.", - "Recording was cancelled by the server because of a failure during recording initialization.", - "Recording was cancelled by the server because the recording initiator left the conference during initialization. When the initiator leaves after the recording is started, no event is triggered.", - "Recording is about to be stopped by the server because the recording is about to reach the maximum duration.", - "Recording was stopped because the recording reached the maximum duration.", - "Recording was stopped because there were no devices left in the conference.", - "Recording was stopped because of an internal error." - ], - "type": "string" - } - }, - "type": "object" - }, - "RecordingInfo": { - "description": "This message is deprecated, please use RecordingSessionInfo instead. Information about recording in the current conference.", - "id": "RecordingInfo", - "properties": { - "latestRecordingEvent": { - "$ref": "RecordingEvent", - "description": "The latest recording event. This can be used by clients to help explain what is going on, why recording stopped, etc. This will always be set if there is or was an active recording, which means there can be latest event when recording is INACTIVE." - }, - "ownerDisplayName": { - "description": "The display name of the owner of the recording output. Email notifications about uploaded recordings will also be sent to this owner.", - "type": "string" - }, - "producerDeviceId": { - "description": "The device resource name of the producer device for the currently active recording. Note that, after the producer drops/leaves the conference, this field will be cleaned up by the server after a delay.", - "type": "string" - }, - "recordingApplicationType": { - "description": "The application type of the current active recording. `RECORDING_APPLICATION_TYPE_UNSPECIFIED` if `recording_status` is inactive.", - "enum": [ - "RECORDING_APPLICATION_TYPE_UNSPECIFIED", - "RECORDING", - "GLIVE_STREAM", - "BROADCAST" - ], - "enumDescriptions": [ - "This is never used.", - "A meeting recording saved to a video file in Google Drive.", - "A *Google Live* managed stream.", - "A meeting broadcast." - ], - "type": "string" - }, - "recordingId": { - "description": "An identifier for the current recording, if any. This is returned whenever recording_status is either `RECORDING_STARTING` or `RECORDING_STARTED`.", - "type": "string" - }, - "recordingStatus": { - "description": "The current status of the recording. This can be used by clients to show a recording dot or similar to indicated to the user that a recording is taking place.", - "enum": [ - "RECORDING_UNSPECIFIED", - "RECORDING_INACTIVE", - "RECORDING_STARTING", - "RECORDING_STARTED" - ], - "enumDescriptions": [ - "This value is never used.", - "The conference is not being recorded. This can mean either that no recording has been started, or that a previous recording has stopped.", - "Recording is about to begin. The status will be updated to RECORDING_STARTED when the recording actually starts, which happens when all the backend plumbing is set up.", - "The recording is started. Any media sent to the conference may be included in the resulting recording." - ], - "type": "string" - } - }, - "type": "object" - }, - "RecordingSessionInfo": { - "description": "Information about a recording session.", - "id": "RecordingSessionInfo", - "properties": { - "ownerEmail": { - "description": "Input only. Deprecated field, should not be used.", - "type": "string" - }, - "recordingSessionId": { - "description": "A unique server-generated ID for the recording session.", - "type": "string" - }, - "sessionStateInfo": { - "$ref": "SessionStateInfo", - "description": "Recording session's state information." - } - }, - "type": "object" - }, - "Reference": { - "description": "All fields in this proto are now columns in spanner see google3/storage/slice/production/gmail/user_data_tables.pi for documentation.", - "id": "Reference", - "properties": { - "blobId": { - "type": "string" - }, - "contentType": { - "type": "string" - }, - "hash": { - "type": "string" - }, - "key": { - "description": "LINT.IfChange", - "type": "string" - }, - "name": { - "description": "LINT.ThenChange(//depot/google3/storage/slice/production/gmail/ user_data_tables.pi)", - "type": "string" - }, - "size": { - "format": "int64", - "type": "string" - } - }, - "type": "object" - }, - "References": { - "id": "References", - "properties": { - "references": { - "items": { - "$ref": "Reference" - }, - "type": "array" - } - }, - "type": "object" - }, - "RemoveActivityRequest": { - "description": "Remove Logged Activity Request.", - "id": "RemoveActivityRequest", - "properties": { - "requestOptions": { - "$ref": "RequestOptions", - "description": "Request options, such as the search application and clientId." - }, - "userActivity": { - "$ref": "UserActivity", - "description": "User Activity containing the data to be deleted." - } - }, - "type": "object" - }, - "RemoveActivityResponse": { - "description": "Remove Logged Activity Response. will return an empty response for now. Will be revisited in later phases.", - "id": "RemoveActivityResponse", - "properties": {}, - "type": "object" - }, - "RenameEvent": { - "id": "RenameEvent", - "properties": { - "newName": { - "type": "string" - }, - "originalName": { - "type": "string" - } - }, - "type": "object" - }, - "RepositoryError": { - "description": "Errors when the connector is communicating to the source repository.", - "id": "RepositoryError", - "properties": { - "errorMessage": { - "description": "Message that describes the error. The maximum allowable length of the message is 8192 characters.", - "type": "string" - }, - "httpStatusCode": { - "description": "Error codes. Matches the definition of HTTP status codes.", - "format": "int32", - "type": "integer" - }, - "type": { - "description": "The type of error.", - "enum": [ - "UNKNOWN", - "NETWORK_ERROR", - "DNS_ERROR", - "CONNECTION_ERROR", - "AUTHENTICATION_ERROR", - "AUTHORIZATION_ERROR", - "SERVER_ERROR", - "QUOTA_EXCEEDED", - "SERVICE_UNAVAILABLE", - "CLIENT_ERROR" - ], - "enumDescriptions": [ - "Unknown error.", - "Unknown or unreachable host.", - "DNS problem, such as the DNS server is not responding.", - "Cannot connect to the repository server.", - "Failed authentication due to incorrect credentials.", - "Service account is not authorized for the repository.", - "Repository server error.", - "Quota exceeded.", - "Server temporarily unavailable.", - "Client-related error, such as an invalid request from the connector to the repository server." - ], - "type": "string" - } - }, - "type": "object" - }, - "RequestFileScope": { - "id": "RequestFileScope", - "properties": { - "itemId": { - "type": "string" - } - }, - "type": "object" - }, - "RequestFileScopeForActiveDocument": { - "id": "RequestFileScopeForActiveDocument", - "properties": {}, - "type": "object" - }, - "RequestOptions": { - "description": "Shared request options for all RPC methods.", - "id": "RequestOptions", - "properties": { - "debugOptions": { - "$ref": "DebugOptions", - "description": "Debug options of the request" - }, - "languageCode": { - "description": "The BCP-47 language code, such as \"en-US\" or \"sr-Latn\". For more information, see http://www.unicode.org/reports/tr35/#Unicode_locale_identifier. For translations. Set this field using the language set in browser or for the page. In the event that the user's language preference is known, set this field to the known user language. When specified, the documents in search results are biased towards the specified language. From Suggest API perspective, for 3p suggest this is used as a hint while making predictions to add language boosting.", - "type": "string" - }, - "searchApplicationId": { - "description": "The ID generated when you create a search application using the [admin console](https://support.google.com/a/answer/9043922).", - "type": "string" - }, - "timeZone": { - "description": "Current user's time zone id, such as \"America/Los_Angeles\" or \"Australia/Sydney\". These IDs are defined by [Unicode Common Locale Data Repository (CLDR)](http://cldr.unicode.org/) project, and currently available in the file [timezone.xml](http://unicode.org/repos/cldr/trunk/common/bcp47/timezone.xml). This field is used to correctly interpret date and time queries. If this field is not specified, the default time zone (UTC) is used.", - "type": "string" - } - }, - "type": "object" - }, - "RequiredMessageFeaturesMetadata": { - "description": "A list of capabilities that are used in this message.", - "id": "RequiredMessageFeaturesMetadata", - "properties": { - "requiredFeatures": { - "items": { - "enum": [ - "REQUIRED_FEATURE_UNSPECIFIED", - "REQUIRED_FEATURE_MESSAGE_QUOTING", - "REQUIRED_FEATURE_TOMBSTONES_IN_DMS_AND_UFRS", - "REQUIRED_FEATURE_CUSTOM_HYPERLINK", - "REQUIRED_FEATURE_DRIVE_SMART_CHIP", - "REQUIRED_FEATURE_LEGACY_TOPIC_START" - ], - "enumDescriptions": [ - "", - "", - "", - "", - "", - "" - ], - "type": "string" - }, - "type": "array" - } - }, - "type": "object" - }, - "ResetSearchApplicationRequest": { - "id": "ResetSearchApplicationRequest", - "properties": { - "debugOptions": { - "$ref": "DebugOptions", - "description": "Common debug options." - } - }, - "type": "object" - }, - "ResourceRoleProto": { - "description": "A type of sharing target that points to some resource's ACL. Used to refer to the set of Principals that have the given privilege ('role_id') for the given resource ('application_id', 'object_id', 'object_part'). The meaning of 'role_id' is interpreted only by implementations of AclRpcService and is usually dependent on 'application_id' All fields except object_part are required. If present, object_part must be non-empty.", - "id": "ResourceRoleProto", - "properties": { - "applicationId": { - "type": "string" - }, - "objectId": { - "type": "string" - }, - "objectPart": { - "type": "string" - }, - "roleId": { - "format": "int32", - "type": "integer" - } - }, - "type": "object" - }, - "ResponseDebugInfo": { - "description": "Debugging information about the response.", - "id": "ResponseDebugInfo", - "properties": { - "formattedDebugInfo": { - "description": "General debug info formatted for display.", - "type": "string" - } - }, - "type": "object" - }, - "RestrictItem": { - "description": "Information relevant only to a restrict entry. NextId: 12", - "id": "RestrictItem", - "properties": { - "driveFollowUpRestrict": { - "$ref": "DriveFollowUpRestrict" - }, - "driveLocationRestrict": { - "$ref": "DriveLocationRestrict" - }, - "driveMimeTypeRestrict": { - "$ref": "DriveMimeTypeRestrict", - "description": "Drive Types." - }, - "driveTimeSpanRestrict": { - "$ref": "DriveTimeSpanRestrict" - }, - "searchOperator": { - "description": "The search restrict (e.g. \"after:2017-09-11 before:2017-09-12\").", - "type": "string" - } - }, - "type": "object" - }, - "ResultCounts": { - "description": "Result count information", - "id": "ResultCounts", - "properties": { - "sourceResultCounts": { - "description": "Result count information for each source with results.", - "items": { - "$ref": "SourceResultCount" - }, - "type": "array" - } - }, - "type": "object" - }, - "ResultDebugInfo": { - "description": "Debugging information about the result.", - "id": "ResultDebugInfo", - "properties": { - "formattedDebugInfo": { - "description": "General debug info formatted for display.", - "type": "string" - } - }, - "type": "object" - }, - "ResultDisplayField": { - "description": "Display Fields for Search Results", - "id": "ResultDisplayField", - "properties": { - "label": { - "description": "The display label for the property.", - "type": "string" - }, - "operatorName": { - "description": "The operator name of the property.", - "type": "string" - }, - "property": { - "$ref": "NamedProperty", - "description": "The name value pair for the property." - } - }, - "type": "object" - }, - "ResultDisplayLine": { - "description": "The collection of fields that make up a displayed line", - "id": "ResultDisplayLine", - "properties": { - "fields": { - "items": { - "$ref": "ResultDisplayField" - }, - "type": "array" - } - }, - "type": "object" - }, - "ResultDisplayMetadata": { - "id": "ResultDisplayMetadata", - "properties": { - "metalines": { - "description": "The metalines content to be displayed with the result.", - "items": { - "$ref": "ResultDisplayLine" - }, - "type": "array" - }, - "objectTypeLabel": { - "description": "The display label for the object.", - "type": "string" - } - }, - "type": "object" - }, - "RetrievalImportance": { - "id": "RetrievalImportance", - "properties": { - "importance": { - "description": "Indicates the ranking importance given to property when it is matched during retrieval. Once set, the token importance of a property cannot be changed.", - "enum": [ - "DEFAULT", - "HIGHEST", - "HIGH", - "LOW", - "NONE" - ], - "enumDescriptions": [ - "Treat the match like a body text match.", - "Treat the match like a match against title of the item.", - "Treat the match with higher importance than body text.", - "Treat the match with lower importance than body text.", - "Do not match against this field during retrieval. The property can still be used for operator matching, faceting, and suggest if desired." - ], - "type": "string" - } - }, - "type": "object" - }, - "RoomRenameMetadata": { - "id": "RoomRenameMetadata", - "properties": { - "newName": { - "type": "string" - }, - "prevName": { - "description": "NEXT_TAG: 3", - "type": "string" - } - }, - "type": "object" - }, - "RoomUpdatedMetadata": { - "id": "RoomUpdatedMetadata", - "properties": { - "groupDetailsMetadata": { - "$ref": "GroupDetailsUpdatedMetadata" - }, - "groupLinkSharingEnabled": { - "type": "boolean" - }, - "initiator": { - "$ref": "User", - "description": "The user who initiated this room update. Complete member profiles, when ListTopicsRequest FetchOptions.USER is set. Otherwise, only the id will be filled in." - }, - "initiatorType": { - "description": "The type of the user who initiated this room update.", - "enum": [ - "INITIATOR_TYPE_UNSPECIFIED", - "INITIATOR_TYPE_END_USER", - "INITIATOR_TYPE_ADMIN" - ], - "enumDescriptions": [ - "", - "", - "" - ], - "type": "string" - }, - "name": { - "description": "What was updated in the room.", - "type": "string" - }, - "renameMetadata": { - "$ref": "RoomRenameMetadata" - }, - "visibility": { - "$ref": "AppsDynamiteSharedGroupVisibility", - "description": "DEPRECATED: See GroupVisibility proto definition." - } - }, - "type": "object" - }, - "Roster": { - "description": "Roster profile information.", - "id": "Roster", - "properties": { - "avatarUrl": { - "type": "string" - }, - "id": { - "$ref": "RosterId" - }, - "isMembershipVisibleToCaller": { - "description": "Whether caller has visibility into members of the roster.", - "type": "boolean" - }, - "membershipCount": { - "format": "int32", - "type": "integer" - }, - "name": { - "type": "string" - }, - "rosterGaiaKey": { - "description": "Roster gaia key, usually an email address. Set in looking up rosters response.", - "type": "string" - }, - "rosterState": { - "description": "Roster deletion state - considered active unless set to deleted", - "enum": [ - "ROSTER_STATE_UNKNOWN", - "ROSTER_ACTIVE", - "ROSTER_DELETED" - ], - "enumDescriptions": [ - "", - "Roster is active", - "Roster deleted" - ], - "type": "string" - }, - "segmentedMembershipCounts": { - "$ref": "AppsDynamiteSharedSegmentedMembershipCounts", - "description": "Roster membership count. May contain counts based on member type and membership state." - } - }, - "type": "object" - }, - "RosterId": { - "description": "Primary key for Roster resource.", - "id": "RosterId", - "properties": { - "id": { - "description": "Opaque, server-assigned ID of the Roster.", - "type": "string" - } - }, - "type": "object" - }, - "RpcOptions": { - "description": "Options for Triggers dispatched via RPC.", - "id": "RpcOptions", - "properties": { - "requestExtensions": { - "$ref": "MessageSet", - "description": "The RPC's request extensions (i.e. RPC::request_extensions(), a.k.a. the Stubby side channel) will be merged with the specified [request_extensions]. When Triggers are batched, the RPC's request extensions will be merged with all of the [request_extensions] of the Triggers in the batch. Note that merging of request extensions follows standard protocol buffer semantics; values of singular fields override previous values, and values of repeated fields are appended (In the case of Triggers, Triggers with later fire times will be merged after Triggers with earlier fire times in the same batch). It is not advised to specify extensions with repeated fields on batchable Triggers." - } - }, - "type": "object" - }, - "SafeHtmlProto": { - "description": "IMPORTANT: It is unsafe to accept this message from an untrusted source, since it's trivial for an attacker to forge serialized messages that don't fulfill the type's safety contract -- for example, it could contain attacker controlled script. A system which receives a SafeHtmlProto implicitly trusts the producer of the SafeHtmlProto. So, it's generally safe to return this message in RPC responses, but generally unsafe to accept it in RPC requests.", - "id": "SafeHtmlProto", - "properties": { - "privateDoNotAccessOrElseSafeHtmlWrappedValue": { - "description": "IMPORTANT: Never set or read this field, even from tests, it is private. See documentation at the top of .proto file for programming language packages with which to create or read this message.", - "type": "string" - } - }, - "type": "object" - }, - "SafeUrlProto": { - "description": "Message containing a string that is safe to use in URL contexts in DOM APIs and HTML documents, where the URL context does not refer to a resource that loads code.", - "id": "SafeUrlProto", - "properties": { - "privateDoNotAccessOrElseSafeUrlWrappedValue": { - "description": "IMPORTANT: Never set or read this field, even from tests, it is private. See documentation at the top of .proto file for programming language packages with which to create or read this message.", - "type": "string" - } - }, - "type": "object" - }, - "Schema": { - "description": "The schema definition for a data source.", - "id": "Schema", - "properties": { - "objectDefinitions": { - "description": "The list of top-level objects for the data source. The maximum number of elements is 10.", - "items": { - "$ref": "ObjectDefinition" - }, - "type": "array" - }, - "operationIds": { - "description": "IDs of the Long Running Operations (LROs) currently running for this schema. After modifying the schema, wait for operations to complete before indexing additional content.", - "items": { - "type": "string" - }, - "type": "array" - } - }, - "type": "object" - }, - "ScoringConfig": { - "description": "Scoring configurations for a source while processing a Search or Suggest request.", - "id": "ScoringConfig", - "properties": { - "disableFreshness": { - "description": "Whether to use freshness as a ranking signal. By default, freshness is used as a ranking signal. Note that this setting is not available in the Admin UI.", - "type": "boolean" - }, - "disablePersonalization": { - "description": "Whether to personalize the results. By default, personal signals will be used to boost results.", - "type": "boolean" - } - }, - "type": "object" - }, - "SearchApplication": { - "description": "SearchApplication", - "id": "SearchApplication", - "properties": { - "dataSourceRestrictions": { - "description": "Retrictions applied to the configurations. The maximum number of elements is 10.", - "items": { - "$ref": "DataSourceRestriction" - }, - "type": "array" - }, - "defaultFacetOptions": { - "description": "The default fields for returning facet results. The sources specified here also have been included in data_source_restrictions above.", - "items": { - "$ref": "FacetOptions" - }, - "type": "array" - }, - "defaultSortOptions": { - "$ref": "SortOptions", - "description": "The default options for sorting the search results" - }, - "displayName": { - "description": "Display name of the Search Application. The maximum length is 300 characters.", - "type": "string" - }, - "enableAuditLog": { - "description": "Indicates whether audit logging is on/off for requests made for the search application in query APIs.", - "type": "boolean" - }, - "name": { - "description": "The name of the Search Application. Format: searchapplications/{application_id}.", - "type": "string" - }, - "operationIds": { - "description": "Output only. IDs of the Long Running Operations (LROs) currently running for this schema. Output only field.", - "items": { - "type": "string" - }, - "readOnly": true, - "type": "array" - }, - "queryInterpretationConfig": { - "$ref": "QueryInterpretationConfig", - "description": "The default options for query interpretation" - }, - "returnResultThumbnailUrls": { - "description": "With each result we should return the URI for its thumbnail (when applicable)", - "type": "boolean" - }, - "scoringConfig": { - "$ref": "ScoringConfig", - "description": "Configuration for ranking results." - }, - "sourceConfig": { - "description": "Configuration for a sources specified in data_source_restrictions.", - "items": { - "$ref": "SourceConfig" - }, - "type": "array" - } - }, - "type": "object" - }, - "SearchApplicationQueryStats": { - "description": "Search application level query stats per date", - "id": "SearchApplicationQueryStats", - "properties": { - "date": { - "$ref": "Date", - "description": "The date for which query stats were calculated. Stats calculated on the next day close to midnight are returned." - }, - "queryCountByStatus": { - "items": { - "$ref": "QueryCountByStatus" - }, - "type": "array" - } - }, - "type": "object" - }, - "SearchApplicationSessionStats": { - "id": "SearchApplicationSessionStats", - "properties": { - "date": { - "$ref": "Date", - "description": "The date for which session stats were calculated. Stats are calculated on the following day, close to midnight PST, and then returned." - }, - "searchSessionsCount": { - "description": "The count of search sessions on the day", - "format": "int64", - "type": "string" - } - }, - "type": "object" - }, - "SearchApplicationUserStats": { - "id": "SearchApplicationUserStats", - "properties": { - "date": { - "$ref": "Date", - "description": "The date for which session stats were calculated. Stats calculated on the next day close to midnight are returned." - }, - "oneDayActiveUsersCount": { - "description": "The count of unique active users in the past one day", - "format": "int64", - "type": "string" - }, - "sevenDaysActiveUsersCount": { - "description": "The count of unique active users in the past seven days", - "format": "int64", - "type": "string" - }, - "thirtyDaysActiveUsersCount": { - "description": "The count of unique active users in the past thirty days", - "format": "int64", - "type": "string" - } - }, - "type": "object" - }, - "SearchItemsByViewUrlRequest": { - "id": "SearchItemsByViewUrlRequest", - "properties": { - "debugOptions": { - "$ref": "DebugOptions", - "description": "Common debug options." - }, - "pageToken": { - "description": "The next_page_token value returned from a previous request, if any.", - "type": "string" - }, - "viewUrl": { - "description": "Specify the full view URL to find the corresponding item. The maximum length is 2048 characters.", - "type": "string" - } - }, - "type": "object" - }, - "SearchItemsByViewUrlResponse": { - "id": "SearchItemsByViewUrlResponse", - "properties": { - "items": { - "items": { - "$ref": "Item" - }, - "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" - }, - "SearchLinkData": { - "description": "SearchLink metadata, for SEARCH_LINK segments. For a search link, the \"text\" field should contain the display text. This is currently not indexed.", - "id": "SearchLinkData", - "properties": { - "kgEntityConfidence": { - "description": "For lightweight scoring in serving time.", - "format": "float", - "type": "number" - }, - "mid": { - "description": "MID of the KG entity being linked.", - "type": "string" - }, - "queryBroadnessScore": { - "format": "float", - "type": "number" - } - }, - "type": "object" - }, - "SearchQualityMetadata": { - "description": "Additional search quality metadata of the item.", - "id": "SearchQualityMetadata", - "properties": { - "quality": { - "description": "An indication of the quality of the item, used to influence search quality. Value should be between 0.0 (lowest quality) and 1.0 (highest quality). The default value is 0.0.", - "format": "double", - "type": "number" - } - }, - "type": "object" - }, - "SearchRequest": { - "description": "The search API request.", - "id": "SearchRequest", - "properties": { - "contextAttributes": { - "description": "Context attributes for the request which will be used to adjust ranking of search results. The maximum number of elements is 10.", - "items": { - "$ref": "ContextAttribute" - }, - "type": "array" - }, - "dataSourceRestrictions": { - "description": "The sources to use for querying. If not specified, all data sources from the current search application are used.", - "items": { - "$ref": "DataSourceRestriction" - }, - "type": "array" - }, - "facetOptions": { - "items": { - "$ref": "FacetOptions" - }, - "type": "array" - }, - "pageSize": { - "description": "Maximum number of search results to return in one page. Valid values are between 1 and 100, inclusive. Default value is 10. Minimum value is 50 when results beyond 2000 are requested.", - "format": "int32", - "type": "integer" - }, - "query": { - "description": "The raw query string. See supported search operators in the [Narrow your search with operators](https://support.google.com/cloudsearch/answer/6172299)", - "type": "string" - }, - "queryInterpretationOptions": { - "$ref": "QueryInterpretationOptions", - "description": "Options to interpret the user query." - }, - "requestOptions": { - "$ref": "RequestOptions", - "description": "Request options, such as the search application and user timezone." - }, - "sortOptions": { - "$ref": "SortOptions", - "description": "The options for sorting the search results" - }, - "start": { - "description": "Starting index of the results.", - "format": "int32", - "type": "integer" - } - }, - "type": "object" - }, - "SearchResponse": { - "description": "The search API response.", - "id": "SearchResponse", - "properties": { - "debugInfo": { - "$ref": "ResponseDebugInfo", - "description": "Debugging information about the response." - }, - "errorInfo": { - "$ref": "ErrorInfo", - "description": "Error information about the response." - }, - "facetResults": { - "description": "Repeated facet results.", - "items": { - "$ref": "FacetResult" - }, - "type": "array" - }, - "hasMoreResults": { - "description": "Whether there are more search results matching the query.", - "type": "boolean" - }, - "queryInterpretation": { - "$ref": "QueryInterpretation", - "description": "Query interpretation result for user query. Empty if query interpretation is disabled." - }, - "resultCountEstimate": { - "description": "The estimated result count for this query.", - "format": "int64", - "type": "string" - }, - "resultCountExact": { - "description": "The exact result count for this query.", - "format": "int64", - "type": "string" - }, - "resultCounts": { - "$ref": "ResultCounts", - "description": "Expanded result count information." - }, - "results": { - "description": "Results from a search query.", - "items": { - "$ref": "SearchResult" - }, - "type": "array" - }, - "spellResults": { - "description": "Suggested spelling for the query.", - "items": { - "$ref": "SpellResult" - }, - "type": "array" - }, - "structuredResults": { - "description": "Structured results for the user query. These results are not counted against the page_size.", - "items": { - "$ref": "StructuredResult" - }, - "type": "array" - } - }, - "type": "object" - }, - "SearchResult": { - "description": "Results containing indexed information for a document.", - "id": "SearchResult", - "properties": { - "clusteredResults": { - "description": "If source is clustered, provide list of clustered results. There will only be one level of clustered results. If current source is not enabled for clustering, this field will be empty.", - "items": { - "$ref": "SearchResult" - }, - "type": "array" - }, - "debugInfo": { - "$ref": "ResultDebugInfo", - "description": "Debugging information about this search result." - }, - "metadata": { - "$ref": "Metadata", - "description": "Metadata of the search result." - }, - "snippet": { - "$ref": "Snippet", - "description": "The concatenation of all snippets (summaries) available for this result." - }, - "title": { - "description": "Title of the search result.", - "type": "string" - }, - "url": { - "description": "The URL of the search result. The URL contains a Google redirect to the actual item. This URL is signed and shouldn't be changed.", - "type": "string" - } - }, - "type": "object" - }, - "Section": { - "description": "Sections are separated by a line divider. They contain a collection of widgets that are rendered (vertically) in the order that they are specified. Across all platforms, AddOns have a narrow fixed width, so there is currently no need for layout properties (e.g. float).", - "id": "Section", - "properties": { - "collapsable": { - "description": "Indicating whether this section is collapsable. If a section is collapsable, the description must be given.", - "type": "boolean" - }, - "description": { - "description": "The header of the section, text formatted supported.", - "type": "string" - }, - "numUncollapsableWidgets": { - "description": "The number of uncollapsable widgets. For example, when a section contains 5 widgets and the num_uncollapsable_widget are set to be 2, The first 2 widgets will always shown and the last 3 is collapsed as default. Only when collapsable is set to be true, the num_uncollapsable_widget will be taken into account.", - "format": "int32", - "type": "integer" - }, - "widgets": { - "description": "A section must contain at least 1 widget.", - "items": { - "$ref": "WidgetMarkup" - }, - "type": "array" - } - }, - "type": "object" - }, - "Segment": { - "id": "Segment", - "properties": { - "formatting": { - "$ref": "Formatting", - "description": "Formatting to be applied when rendering the Segment. For all segment types, this is the standard way of representing that the Segment should be rendered in bold, italics, etc." - }, - "hashtagData": { - "$ref": "HashtagData", - "description": "For HASHTAG type:" - }, - "linkData": { - "$ref": "LinkData", - "description": "Type-specific metadata. At most one of these should be populated, and the one that is populated should correspond to the type of the Segment. For LINK type:" - }, - "searchLinkData": { - "$ref": "SearchLinkData", - "description": "For SEARCH_LINK type:" - }, - "text": { - "description": "Text content of the Segment. As a general rule, this field should contain the actual text that should be rendered in the UI. Thus, for a hashtag, it should be \"#Foo\", and for a link, it should be the display text. Clients that do not understand a particular segment type may use this text, along with the Formatting info below, as a fallback for display. The field is not required -- if all relevant information is carried in other metadata fields and there is no need for a fallback, or it is not practical for a fallback to be provided for any other reason, the field may be left blank. A standard example would be a user reference being transmitted between server layers, where a gaia-ID representation may be sufficient and there is no need for a textual fallback. In such a case, it would be valid and useful - though not required - for servers to compute and populate a fallback on the serving path.", - "type": "string" - }, - "type": { - "description": "Type of Segment.", - "enum": [ - "TEXT", - "LINE_BREAK", - "LINK", - "USER_MENTION", - "ALL_USER_MENTION", - "HASHTAG", - "SEARCH_LINK" - ], - "enumDescriptions": [ - "A TEXT segment represents plain-text subject to particular formatting constraints (as represented in the \"formatting\" field of the Segment).", - "A LINE_BREAK segment is simply a placeholder to represent a line break between other segments. The \"text\" variable may be set to a newline as a fallback, but clients that understand this segment type should simply insert a line break without needing to reference any fields.", - "A LINK segment represents a link to a web entity. The \"text\" field should be used for anchor text. Additional link data should be put in the link_data protobuf.", - "A USER_MENTION segment represents a reference to a (possibly non-Gaia, possibly off-network) user. The \"text\" field may be populated as a fallback, but information identifying the user should be contained in the user_mention_data protobuf. (The set of fields that are populated in user_mention_data may differ depending on the context in which the segment is viewed, but the interpretation of the fields is uniform. See comments over UserMentionData).", - "An ALL_USER_MENTION segment represents a reference to all users in the context, that is, the conversation, discussion, or other context containing the segment. For example, an ALL_USER_MENTION segment (\"@all\") can be useful to ping all participants in a conversation if the notification setting of the conversation is not set to ping on normal messages. An ALL_USER_MENTION should be treated as a USER_MENTION for all users who receives the segment.", - "A HASHTAG segment represents a structured reference to a topic. The \"text\" field should represent display text (e.g. \"#Google\"), and additional metadata should be put in the Segment's hashtag_data field.", - "A SEARCH_LINK segment respresents a link to search results for a KG entity. The \"text\" field should represent the part of the comment where the KG entity is extracted from, and additional metadata of the entity should be put in the Segment's search_link_data field." - ], - "type": "string" - }, - "userMentionData": { - "$ref": "UserMentionData", - "description": "For USER_MENTION type:" - } - }, - "type": "object" - }, - "SelectionControl": { - "id": "SelectionControl", - "properties": { - "items": { - "description": "For radio button, at most one of the items will be selected.", - "items": { - "$ref": "SelectionItem" - }, - "type": "array" - }, - "label": { - "description": "Label used to be displayed ahead of the selection control. It is optional.", - "type": "string" - }, - "name": { - "description": "The name of the text field which is will be used in FormInput.", - "type": "string" - }, - "onChange": { - "$ref": "FormAction", - "description": "If specified, form is submitted when selection changed. If not specified, developer will need to specify a separate button." - }, - "type": { - "enum": [ - "CHECK_BOX", - "RADIO_BUTTON", - "SWITCH", - "DROPDOWN" - ], - "enumDescriptions": [ - "", - "", - "", - "" - ], - "type": "string" - } - }, - "type": "object" - }, - "SelectionItem": { - "id": "SelectionItem", - "properties": { - "selected": { - "description": "If more than one items are selected for RADIO_BUTTON and DROPDOWN, the first selected item is treated as sElected and the after ones are all ignored.", - "type": "boolean" - }, - "text": { - "description": "The text to be displayed.", - "type": "string" - }, - "value": { - "description": "The value associated with this item which will be sent back to app scripts. Client should use as a form input value.", - "type": "string" - } - }, - "type": "object" - }, - "SessionContext": { - "id": "SessionContext", - "properties": { - "authTime": { - "description": "Time at which this activity's session was authenticated, in seconds since the epoch.", - "format": "int64", - "type": "string" - }, - "delegateUserId": { - "description": "Gaia ID of the authenticated user when delegate access is active. In such sessions the main gaia ID is that of the delegator, i.e. the account being accessed.", - "format": "int64", - "type": "string" - }, - "dusi": { - "description": "Device User Session ID, see go/dusi.", - "type": "string" - }, - "imapSessionContext": { - "$ref": "ImapSessionContext", - "description": "Imap session context for Bond/Gmail integration" - }, - "oauthLoginId": { - "description": "OAuth login ID.", - "format": "int32", - "type": "integer" - }, - "oauthProjectId": { - "description": "The devconsole project ID of the developer who authenticated with OAuth.", - "format": "int64", - "type": "string" - } - }, - "type": "object" - }, - "SessionEvent": { - "description": "A session event is something that happens to the streaming session in a conference.", - "id": "SessionEvent", - "properties": { - "deviceId": { - "description": "The initiator of the latest event of the streaming session. It will be set for all user events (`type` is 100-199) and unset for all server events(`type` is 200-299).", - "type": "string" - }, - "type": { - "description": "The type of event.", - "enum": [ - "EVENT_UNSPECIFIED", - "STARTED_BY_USER", - "STOPPED_BY_USER", - "CANCELLED_BY_USER", - "CANCELLED_INITIALIZATION_FAILED", - "CANCELLED_INITIATOR_LEFT", - "ACTIVE_ABOUT_TO_STOP_TOO_LONG", - "STOPPED_TOO_LONG", - "STOPPED_ALL_DEVICES_LEFT", - "STOPPED_INTERNAL_FAILURES" - ], - "enumDescriptions": [ - "This is never used.", - "Streaming session was started or is being started by a user.", - "Streaming session was stopped by a user.", - "Streaming session was cancelled by a user.", - "Streaming session was cancelled by the server because of a failure during session initialization.", - "Streaming session was cancelled by the server because the session initiator left the conference during initialization. When the initiator leaves after the session is started, no event is triggered.", - "Streaming session is about to be stopped by the server because the session is about to reach the maximum duration.", - "Streaming session was stopped because the session reached the maximum duration.", - "Streaming session was stopped because there were no devices left in the conference.", - "Streaming session was stopped because of an internal error." - ], - "type": "string" - } - }, - "type": "object" - }, - "SessionStateInfo": { - "description": "Information about the state of a (recording, broadcast, transcription...) session in a conference.", - "id": "SessionStateInfo", - "properties": { - "ackInfo": { - "$ref": "AckInfo", - "description": "Output only. The ack info of the session.", - "readOnly": true - }, - "languageConfig": { - "$ref": "LanguageConfig", - "description": "Immutable. The language configuration used by this session. When empty, captions will be disabled. It's a required field for transcription sessions." - }, - "lastActorDeviceId": { - "description": "Output only. The device id of the actor is set if the current state is a result of a user action, is empty otherwise.", - "readOnly": true, - "type": "string" - }, - "maxEndTime": { - "description": "Output only. The max end time of the session, at this time the session will be force stopped/terminated. Clients are expected to use this timestamp to warn users about the force stop.", - "format": "google-datetime", - "readOnly": true, - "type": "string" - }, - "sessionState": { - "description": "State of the session.", - "enum": [ - "SESSION_STATE_UNSPECIFIED", - "STARTING", - "ACTIVE", - "STOPPED" - ], - "enumDescriptions": [ - "Unspecified session state.", - "The session is starting.", - "The session is active/ongoing.", - "The session has stopped." - ], - "type": "string" - }, - "sessionStopReason": { - "description": "Output only. The reason the session was transitioned to STOPPED state.", - "enum": [ - "SESSION_STOP_REASON_UNSPECIFIED", - "USER_ACTION", - "STOPPED_INITIALIZATION_FAILED", - "STOPPED_TOO_LONG", - "STOPPED_ALL_DEVICES_LEFT", - "STOPPED_INTERNAL_FAILURES", - "STOPPED_YOU_TUBE_LIVE_EVENT_ENDED" - ], - "enumDescriptions": [ - "Session stop reason unspecified.", - "Stopped by user action.", - "Stopped by the server because of an initialization failure.", - "Stopped because the session reached the maximum duration.", - "Stopped because there were no devices left in the conference.", - "Stopped because of an internal error.", - "Stopped because the broadcast event ended on YouTube." - ], - "readOnly": true, - "type": "string" - } - }, - "type": "object" - }, - "Settings": { - "description": "Settings of a meeting space that can be edited by users with corresponding manage privilege. These settings are always populated in responses.", - "id": "Settings", - "properties": { - "accessLock": { - "description": "The access lock of the meeting space that lets hosts control who can join the meeting.", - "type": "boolean" - }, - "accessType": { - "description": "The access type of the meeting space.", - "enum": [ - "ACCESS_TYPE_UNSPECIFIED", - "ACCESS_TYPE_OPEN", - "ACCESS_TYPE_TRUSTED", - "ACCESS_TYPE_RESTRICTED", - "ACCESS_TYPE_CLOSED" - ], - "enumDescriptions": [ - "Default value. This value is unused.", - "Anyone with meeting join information (url, phone access...) can join, no knocking required. (Subject to organization policies)", - "Members of the Host's organization, invited external users, and dial-in users can join without knocking, everyone else must knock. (Subject to organization policies)", - "Only participants invited by a host can automatically join, everyone else must knock and be admitted. (Subject to organization policies) Participants cannot dial out from the meeting. And only hosts can accept knocks.", - "Only participants invited by a host can join. Knocking is not allowed, dial in and dial out are also disabled." - ], - "type": "string" - }, - "allowJoiningBeforeHost": { - "description": "Whether users can join before host in the conferences of this meeting space.", - "type": "boolean" - }, - "attendanceReportEnabled": { - "description": "Whether attendance report is enabled for the meeting space.", - "type": "boolean" - }, - "chatLock": { - "description": "The chat lock of the meeting space that lets owner control whether the participants can send chat messages.", - "type": "boolean" - }, - "coActivityLock": { - "description": "The co-activity lock of the meeting space that lets owner control whether the participants can start/stop or update the state of co-activity.", - "type": "boolean" - }, - "cohostArtifactSharingEnabled": { - "description": "Whether meeting artifacts will be shared with cohosts.", - "type": "boolean" - }, - "cseEnabled": { - "description": "Whether Client-side Encryption is enabled for the meeting space.", - "type": "boolean" - }, - "defaultAsViewer": { - "description": "Whether the default role is viewer or not.", - "type": "boolean" - }, - "moderationEnabled": { - "description": "Indicates whether the meeting space is moderated.", - "type": "boolean" - }, - "presentLock": { - "description": "The present lock of the meeting space that lets owner control whether the participants can present their screen.", - "type": "boolean" - }, - "reactionsLock": { - "description": "The reactions lock of the meeting space that lets owner control whether the participants can send reactions.", - "type": "boolean" - } - }, - "type": "object" - }, - "ShareScope": { - "id": "ShareScope", - "properties": { - "domain": { - "description": "If scope is DOMAIN, this field contains the dasher domain, for example \"google.com\".", - "type": "string" - }, - "scope": { - "description": "The scope to which the content was shared.", - "enum": [ - "UNKNOWN", - "PRIVATE", - "LIMITED", - "EXTENDED", - "DASHER_DOMAIN", - "PUBLIC" - ], - "enumDescriptions": [ - "", - "Only the author can view the post.", - "Viewable only by a set of people.", - "Viewable by extended circles.", - "", - "" - ], - "type": "string" - } - }, - "type": "object" - }, - "SheetsClientActionMarkup": { - "id": "SheetsClientActionMarkup", - "properties": { - "customFunctionReturnValueMarkup": { - "$ref": "CustomFunctionReturnValueMarkup" - } - }, - "type": "object" - }, - "SigningKeyPossessorProto": { - "description": "Represents a principal who possesses a signing key corresponding to the verification key or keyset described here.", - "id": "SigningKeyPossessorProto", - "properties": { - "keymasterKeyType": { - "description": "This value must be from the KeyMetadata.Type enum in keymaster.proto.", - "format": "int32", - "type": "integer" - }, - "serializedVerificationKey": { - "description": "The actual verification key bytes corresponding to the above type.", - "format": "byte", - "type": "string" - }, - "serializedVerificationKeyset": { - "description": "The binary serialized Keymaster SerializedReader of a public keyset. The keyset must contain exactly one key. N.B.: If this field is populated, serialized_verification_key should be set to the empty string and keymaster_key_type should be set to zero.", - "format": "byte", - "type": "string" - } - }, - "type": "object" - }, - "SimpleSecretHolderProto": { - "description": "Represents a principal which possesses a particular, presumably secret, string. Useful for things like \"auth keys,\" used for anonymous sharing. Since representing this principal with the actual secret included reveals the secret, it's best if the requisite condition is enforced in some other way, for example via Keystore wrapping attributes (Keystore will unwrap only if the specified secret, aka \"attribute\", is presented). All that's stored here is an identifying label.", - "id": "SimpleSecretHolderProto", - "properties": { - "label": { - "$ref": "SimpleSecretLabelProto", - "description": "A descriptive label to help identify a relevant ACL entry or otherwise disambiguate this instance." - } - }, - "type": "object" - }, - "SimpleSecretLabelProto": { - "description": "SimpleSecretProto (in authenticator.proto) and SimpleSecretHolderProto (below) share the notion of a \"label\", which identifies a particular secret without (hopefully) revealing the secret. Note that a SimpleSecretLabel only disambiguates between secrets used to get access to some particular object. Two different secrets that apply to two different objects could have the same label. For example, in the common sharing model, each object has no more than one \"auth key\". Therefore, the label for an auth key simply has type = AUTH_KEY with no additional information. In theory, we could add some sort of resource ID to SimpleSecretLabel to make it more explicit. However, in practice, this is never really needed. A SimpleSecret for one object is never used to authorize a request on some other object, so there is no ambiguity. Also, since SimpleSecrets must obviously be unguessable, there is no risk that a SimpleSecret intended for one object will accidentally grant access to another.", - "id": "SimpleSecretLabelProto", - "properties": { - "capabilityId": { - "description": "***DEPRECATED (3-Oct-2011) *** This field should be deleted when code stops using CAP_TOKEN labels. Used when type = CAP_TOKEN. When a CAP_TOKEN label appears in a SimpleSecretHolder Principal, |capability_id| must be filled in to identify one of the capabilities on the ACL. When a CAP_TOKEN label appears in a SimpleSecret Authenticator, it is NOT necessary to fill in |capability_id| -- ACL Service will find the ID by searching all capabilities on the ACL for one associated with the token given by the SimpleSecret's secret data. If |capability_id| is specified, though, then the Authenticator will only be accepted if it actually matches that particular token ID.", - "format": "int32", - "type": "integer" - }, - "genericLabel": { - "description": "Used when type = GENERIC_SECRET", - "format": "byte", - "type": "string" - }, - "inviteId": { - "description": "Used when type == INVITE.", - "format": "int64", - "type": "string" - }, - "type": { - "description": "This is optional because required enums cannot be extended.", - "enum": [ - "INVALID", - "AUTH_KEY", - "INVITE", - "GENERIC_SECRET", - "CAP_TOKEN", - "REKE" - ], - "enumDescriptions": [ - "Used as a default value.", - "The singleton auth key for a common-sharing ACL. No other fields of SimpleSecretLabelProto need to be filled in, since there is only one of these per ACL. The corresponding secret is the auth key encoded in 64-bit big-endian.", - "A common-sharing invite token. |invite_id| (below) must be set to identify the invite. The corresponding secret is the SecretMaterial, as defined by InviteToken.SecretMaterial in acl.proto, encoded in 64-bit big-endian. If there is no SecretMaterial, the secret should be omitted; in this case the invite ID itself is the secret, which is less secure.", - "A generic secret value. Do not use this if any more specific type is appropriate.", - "***DEPRECATED (3-Oct-2011)*** Use the new CapTokenProto and CapTokenHolderProto instead. A capability token. The corresponding secret is an arbitrary-length random byte string (recommended: 128 bits). |capability_id| may be filled in (see below). See CapTokenMetadata in acl.proto.", - "Identifies a principal that can perform a successful REKE handshake. The holder is not authenticated by presenting a SimpleSecretProto, but rather by knowing either the REKE resumption ticket secret or the private key corresponding to a public key specified outside the PrincipalProto. For more information, see: http://goto.google.com/loas2cert" - ], - "type": "string" - } - }, - "type": "object" - }, - "SlashCommandMetadata": { - "description": "Annotation metadata for slash commands (/).", - "id": "SlashCommandMetadata", - "properties": { - "argumentsHint": { - "description": "Hint string for the arguments expected by the slash command.", - "type": "string" - }, - "commandId": { - "description": "Unique id for the slash command.", - "format": "int64", - "type": "string" - }, - "commandName": { - "description": "Name of the slash command.", - "type": "string" - }, - "id": { - "$ref": "UserId", - "description": "ID of the bot which owns the slash command." - }, - "triggersDialog": { - "description": "Whether or not this slash command should trigger a dialog.", - "type": "boolean" - }, - "type": { - "enum": [ - "TYPE_UNSPECIFIED", - "ADD", - "INVOKE", - "FAILED_TO_ADD" - ], - "enumDescriptions": [ - "Default value for the enum. DO NOT USE.", - "If a bot is added by a Slash Command, it means the bot was invoked by the user but hasn't yet been added to the group. Attaching an ADD annotation both add and invoke the bot.", - "", - "Server-generated slash command metadata, for clients to strikethrough." - ], - "type": "string" - } - }, - "type": "object" - }, - "Snippet": { - "description": "Snippet of the search result, which summarizes the content of the resulting page.", - "id": "Snippet", - "properties": { - "matchRanges": { - "description": "The matched ranges in the snippet.", - "items": { - "$ref": "MatchRange" - }, - "type": "array" - }, - "snippet": { - "description": "The snippet of the document. The snippet of the document. May contain escaped HTML character that should be unescaped prior to rendering.", - "type": "string" - } - }, - "type": "object" - }, - "SocialCommonAttachmentAttachment": { - "description": "An Attachment represents a linked entity associated with a piece of social content. This may be a 1st-party or 3rd-party entity. In the Papyrus context, an Attachment is part of a Cent, and sits alongside the main content of the cent, which is represented as a sequence of Segments. Right now an Attachment is just a wrapper around an Embed, but we provide the extra layer of abstraction since, as Embeds move to separate storage in Briefcase, we may want to add additional fields that are not part of the Embed proper, but that (for example) relate to the usage of the linked content within the particular post/cent.", - "id": "SocialCommonAttachmentAttachment", - "properties": { - "embedItem": { - "$ref": "EmbedClientItem", - "description": "An embed represents an external entity. See go/es-embeds." - }, - "id": { - "description": "An id to uniquely identify an attachment when several attachments are in a collection.", - "type": "string" - } - }, - "type": "object" - }, - "SocialGraphNodeProto": { - "description": "Represents a user pseudonym. Pseudonyms are linked accounts on Google and third-party services (e.g. YouTube or Twitter) and are described by a Social Graph Node.", - "id": "SocialGraphNodeProto", - "properties": { - "sgnDomain": { - "description": "The fields from ccc/socialgraph/socialgraphnode.proto:SgnNode that uniquely identify a social graph node. The 'ident' field is not included here because its value can be changed.", - "type": "string" - }, - "sgnPk": { - "type": "string" - } - }, - "type": "object" - }, - "SortOptions": { - "id": "SortOptions", - "properties": { - "operatorName": { - "description": "The name of the operator corresponding to the field to sort on. The corresponding property must be marked as sortable.", - "type": "string" - }, - "sortOrder": { - "description": "Ascending is the default sort order", - "enum": [ - "ASCENDING", - "DESCENDING" - ], - "enumDescriptions": [ - "", - "" - ], - "type": "string" - } - }, - "type": "object" - }, - "Source": { - "description": "Defines sources for the suggest/search APIs.", - "id": "Source", - "properties": { - "name": { - "description": "Source name for content indexed by the Indexing API.", - "type": "string" - }, - "predefinedSource": { - "description": "Predefined content source for Google Apps.", - "enum": [ - "NONE", - "QUERY_HISTORY", - "PERSON", - "GOOGLE_DRIVE", - "GOOGLE_GMAIL", - "GOOGLE_SITES", - "GOOGLE_GROUPS", - "GOOGLE_CALENDAR", - "GOOGLE_KEEP" - ], - "enumDescriptions": [ - "", - "Suggests queries issued by the user in the past. Only valid when used with the suggest API. Ignored when used in the query API.", - "Suggests people in the organization. Only valid when used with the suggest API. Results in an error when used in the query API.", - "", - "", - "", - "", - "", - "" - ], - "type": "string" - } - }, - "type": "object" - }, - "SourceConfig": { - "description": "Configurations for a source while processing a Search or Suggest request.", - "id": "SourceConfig", - "properties": { - "crowdingConfig": { - "$ref": "SourceCrowdingConfig", - "description": "The crowding configuration for the source." - }, - "scoringConfig": { - "$ref": "SourceScoringConfig", - "description": "The scoring configuration for the source." - }, - "source": { - "$ref": "Source", - "description": "The source for which this configuration is to be used." - } - }, - "type": "object" - }, - "SourceCrowdingConfig": { - "description": "Set search results crowding limits. Crowding is a situation in which multiple results from the same source or host \"crowd out\" other results, diminishing the quality of search for users. To foster better search quality and source diversity in search results, you can set a condition to reduce repetitive results by source.", - "id": "SourceCrowdingConfig", - "properties": { - "numResults": { - "description": "Maximum number of results allowed from a datasource in a result page as long as results from other sources are not exhausted. Value specified must not be negative. A default value is used if this value is equal to 0. To disable crowding, set the value greater than 100.", - "format": "int32", - "type": "integer" - }, - "numSuggestions": { - "description": "Maximum number of suggestions allowed from a source. No limits will be set on results if this value is less than or equal to 0.", - "format": "int32", - "type": "integer" - } - }, - "type": "object" - }, - "SourceMessageInfo": { - "id": "SourceMessageInfo", - "properties": { - "messageId": { - "$ref": "MessageId", - "description": "Source message ID" - }, - "messageType": { + "code": { + "description": "Error code indicating the nature of the error.", "enum": [ - "SOURCE_MESSAGE_TYPE_UNDEFINED", - "ROOT_MESSAGE", - "INLINE_REPLY" + "PROCESSING_ERROR_CODE_UNSPECIFIED", + "MALFORMED_REQUEST", + "UNSUPPORTED_CONTENT_FORMAT", + "INDIRECT_BROKEN_ACL", + "ACL_CYCLE" ], "enumDescriptions": [ - "", - "", - "" + "Input only value. Use this value in Items.", + "Item's ACL, metadata, or content is malformed or in invalid state. FieldViolations contains more details on where the problem is.", + "Countent format is unsupported.", + "Items with incomplete ACL information due to inheriting other items with broken ACL or having groups with unmapped descendants.", + "ACL inheritance graph formed a cycle." ], "type": "string" + }, + "errorMessage": { + "description": "The description of the error.", + "type": "string" + }, + "fieldViolations": { + "description": "In case the item fields are invalid, this field contains the details about the validation errors.", + "items": { + "$ref": "FieldViolation" + }, + "type": "array" } }, "type": "object" }, - "SourceResultCount": { - "description": "Per source result count information.", - "id": "SourceResultCount", + "PropertyDefinition": { + "description": "The definition of a property within an object.", + "id": "PropertyDefinition", "properties": { - "hasMoreResults": { - "description": "Whether there are more search results for this source.", + "booleanPropertyOptions": { + "$ref": "BooleanPropertyOptions" + }, + "datePropertyOptions": { + "$ref": "DatePropertyOptions" + }, + "displayOptions": { + "$ref": "PropertyDisplayOptions", + "description": "The options that determine how the property is displayed in the Cloud Search results page if it's specified to be displayed in the object's display options." + }, + "doublePropertyOptions": { + "$ref": "DoublePropertyOptions" + }, + "enumPropertyOptions": { + "$ref": "EnumPropertyOptions" + }, + "htmlPropertyOptions": { + "$ref": "HtmlPropertyOptions" + }, + "integerPropertyOptions": { + "$ref": "IntegerPropertyOptions" + }, + "isFacetable": { + "description": "Indicates that the property can be used for generating facets. Cannot be true for properties whose type is object. IsReturnable must be true to set this option. Only supported for boolean, enum, integer, and text properties.", "type": "boolean" }, - "resultCountEstimate": { - "description": "The estimated result count for this source.", - "format": "int64", - "type": "string" + "isRepeatable": { + "description": "Indicates that multiple values are allowed for the property. For example, a document only has one description but can have multiple comments. Cannot be true for properties whose type is a boolean. If set to false, properties that contain more than one value cause the indexing request for that item to be rejected.", + "type": "boolean" }, - "resultCountExact": { - "description": "The exact result count for this source.", - "format": "int64", + "isReturnable": { + "description": "Indicates that the property identifies data that should be returned in search results via the Query API. If set to *true*, indicates that Query API users can use matching property fields in results. However, storing fields requires more space allocation and uses more bandwidth for search queries, which impacts performance over large datasets. Set to *true* here only if the field is needed for search results. Cannot be true for properties whose type is an object.", + "type": "boolean" + }, + "isSortable": { + "description": "Indicates that the property can be used for sorting. Cannot be true for properties that are repeatable. Cannot be true for properties whose type is object. IsReturnable must be true to set this option. Only supported for boolean, date, double, integer, and timestamp properties.", + "type": "boolean" + }, + "isSuggestable": { + "description": "Indicates that the property can be used for generating query suggestions.", + "type": "boolean" + }, + "isWildcardSearchable": { + "description": "Indicates that users can perform wildcard search for this property. Only supported for Text properties. IsReturnable must be true to set this option. In a given datasource maximum of 5 properties can be marked as is_wildcard_searchable. For more details, see [Define object properties](https://developers.google.com/cloud-search/docs/guides/schema-guide#properties)", + "type": "boolean" + }, + "name": { + "description": "The name of the property. Item indexing requests sent to the Indexing API should set the property name equal to this value. For example, if name is *subject_line*, then indexing requests for document items with subject fields should set the name for that field equal to *subject_line*. Use the name as the identifier for the object property. Once registered as a property for an object, you cannot re-use this name for another property within that object. The name must start with a letter and can only contain letters (A-Z, a-z) or numbers (0-9). The maximum length is 256 characters.", "type": "string" }, - "source": { - "$ref": "Source", - "description": "The source the result count information is associated with." + "objectPropertyOptions": { + "$ref": "ObjectPropertyOptions" + }, + "textPropertyOptions": { + "$ref": "TextPropertyOptions" + }, + "timestampPropertyOptions": { + "$ref": "TimestampPropertyOptions" } }, "type": "object" }, - "SourceScoringConfig": { - "description": "Set the scoring configuration. This allows modifying the ranking of results for a source.", - "id": "SourceScoringConfig", + "PropertyDisplayOptions": { + "description": "The display options for a property.", + "id": "PropertyDisplayOptions", "properties": { - "sourceImportance": { - "description": "Importance of the source.", - "enum": [ - "DEFAULT", - "LOW", - "HIGH" - ], - "enumDescriptions": [ - "", - "", - "" - ], + "displayLabel": { + "description": "The user friendly label for the property that is used if the property is specified to be displayed in ObjectDisplayOptions. If provided, the display label is shown in front of the property values when the property is part of the object display options. For example, if the property value is '1', the value by itself may not be useful context for the user. If the display name given was 'priority', then the user sees 'priority : 1' in the search results which provides clear context to search users. This is OPTIONAL; if not given, only the property values are displayed. The maximum length is 64 characters.", "type": "string" } }, "type": "object" }, - "SpaceId": { - "description": "Primary key for Space resource.", - "id": "SpaceId", + "PushItem": { + "description": "Represents an item to be pushed to the indexing queue.", + "id": "PushItem", "properties": { - "spaceId": { - "description": "Unique, immutable ID of the Space", + "contentHash": { + "description": "Content hash of the item according to the repository. If specified, this is used to determine how to modify this item's status. Setting this field and the type field results in argument error. The maximum length is 2048 characters.", "type": "string" - } - }, - "type": "object" - }, - "SpellResult": { - "id": "SpellResult", - "properties": { - "suggestedQuery": { - "description": "The suggested spelling of the query.", + }, + "metadataHash": { + "description": "The metadata hash of the item according to the repository. If specified, this is used to determine how to modify this item's status. Setting this field and the type field results in argument error. The maximum length is 2048 characters.", "type": "string" }, - "suggestedQueryHtml": { - "$ref": "SafeHtmlProto", - "description": "The sanitized HTML representing the spell corrected query that can be used in the UI. This usually has language-specific tags to mark up parts of the query that are spell checked." + "payload": { + "description": "Provides additional document state information for the connector, such as an alternate repository ID and other metadata. The maximum length is 8192 bytes.", + "format": "byte", + "type": "string" }, - "suggestionType": { - "description": "Suggestion triggered for the current query.", + "queue": { + "description": "Queue to which this item belongs. The `default` queue is chosen if this field is not specified. The maximum length is 512 characters.", + "type": "string" + }, + "repositoryError": { + "$ref": "RepositoryError", + "description": "Populate this field to store Connector or repository error details. This information is displayed in the Admin Console. This field may only be populated when the Type is REPOSITORY_ERROR." + }, + "structuredDataHash": { + "description": "Structured data hash of the item according to the repository. If specified, this is used to determine how to modify this item's status. Setting this field and the type field results in argument error. The maximum length is 2048 characters.", + "type": "string" + }, + "type": { + "description": "The type of the push operation that defines the push behavior.", "enum": [ - "SUGGESTION_TYPE_UNSPECIFIED", - "NON_EMPTY_RESULTS_SPELL_SUGGESTION", - "ZERO_RESULTS_FULL_PAGE_REPLACEMENT" + "UNSPECIFIED", + "MODIFIED", + "NOT_MODIFIED", + "REPOSITORY_ERROR", + "REQUEUE" ], "enumDescriptions": [ - "Default spell check type", - "Spell suggestion without any results changed. The results are still shown for the original query (which has non zero / results) with a suggestion for spelling that would have results.", - "Spell suggestion triggered when original query has no results. When the original query has no results, and spell suggestion has results we trigger results for the spell corrected query." + "Default UNSPECIFIED. Specifies that the push operation should not modify ItemStatus", + "Indicates that the repository document has been modified or updated since the previous update call. This changes status to MODIFIED state for an existing item. If this is called on a non existing item, the status is changed to NEW_ITEM.", + "Item in the repository has not been modified since the last update call. This push operation will set status to ACCEPTED state.", + "Connector is facing a repository error regarding this item. Change status to REPOSITORY_ERROR state. Item is unreserved and rescheduled at a future time determined by exponential backoff.", + "Call push with REQUEUE only for items that have been reserved. This action unreserves the item and resets its available time to the wall clock time." ], "type": "string" } }, "type": "object" }, - "SquareProto": { - "description": "Represents the set of members (of a given type) in a Google+ Square (see http://go/squares). A Square with default member_type is currently (1/2012) identical to the GaiaGroup with the same ID, but that is expected to change soon (see http://go/superglue). Support for this principal type is currently (1/2012) incomplete -- e.g., Keystore does not support it yet (see b/5703421).", - "id": "SquareProto", - "properties": { - "memberType": { - "description": "The type of Square members to consider, e.g. \"all members\" vs. \"owners\" vs. \"admins\". These are defined by legacy_relation_id values in social.graph.storage.EdgeTypeEnum.EdgeType enum options in social/graph/storage/proto/id.proto. See square.pb (defined in production/config/cdd/socialgraph/mixer_config/prod/node_type_config) for all valid edge types associated with square. Currently required.", - "format": "int32", - "type": "integer" - }, - "squareId": { - "description": "Currently required.", - "format": "int64", - "type": "string" - } - }, - "type": "object" - }, - "StartUploadItemRequest": { - "description": "Start upload file request.", - "id": "StartUploadItemRequest", + "PushItemRequest": { + "id": "PushItemRequest", "properties": { "connectorName": { "description": "The name of connector making this call. Format: datasources/{source_id}/connectors/{ID}", @@ -17029,1459 +6655,1024 @@ "debugOptions": { "$ref": "DebugOptions", "description": "Common debug options." - } - }, - "type": "object" - }, - "Status": { - "description": "The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors).", - "id": "Status", - "properties": { - "code": { - "description": "The status code, which should be an enum value of google.rpc.Code.", - "format": "int32", - "type": "integer" - }, - "details": { - "description": "A list of messages that carry the error details. There is a common set of message types for APIs to use.", - "items": { - "additionalProperties": { - "description": "Properties of the object. Contains field @type with type URL.", - "type": "any" - }, - "type": "object" - }, - "type": "array" }, - "message": { - "description": "A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.", - "type": "string" + "item": { + "$ref": "PushItem", + "description": "Item to push onto the queue." } }, "type": "object" }, - "StoredParticipantId": { - "id": "StoredParticipantId", + "QueryActivity": { + "description": "Details about a user's query activity.", + "id": "QueryActivity", "properties": { - "gaiaId": { - "format": "int64", + "query": { + "description": "User input query to be logged/removed.", "type": "string" } }, "type": "object" }, - "StreamViewerStats": { - "description": "Information about viewers of the stream.", - "id": "StreamViewerStats", + "QueryCountByStatus": { + "id": "QueryCountByStatus", "properties": { - "estimatedViewerCount": { - "description": "The estimate of the current viewer count.", + "count": { "format": "int64", "type": "string" + }, + "statusCode": { + "description": "This represents the http status code.", + "format": "int32", + "type": "integer" } }, "type": "object" }, - "StreamingSessionInfo": { - "description": "Information about a streaming session in conference.", - "id": "StreamingSessionInfo", + "QueryInterpretation": { + "id": "QueryInterpretation", "properties": { - "applicationType": { - "description": "The application type of the current streaming session.", - "enum": [ - "RECORDING_APPLICATION_TYPE_UNSPECIFIED", - "RECORDING", - "GLIVE_STREAM", - "BROADCAST" - ], - "enumDescriptions": [ - "This is never used.", - "A meeting recording saved to a video file in Google Drive.", - "A *Google Live* managed stream.", - "A meeting broadcast." - ], - "type": "string" - }, - "latestSessionEvent": { - "$ref": "SessionEvent", - "description": "The latest streaming session event. This can be used by clients to help explain what is going on, why recording stopped, etc. This will always be set to a valid event and consistent with the status. It can be set when current session is inactive to indicate latest event that makes current session to become inactive." - }, - "ownerDisplayName": { - "description": "The display name of the owner of the recording output. It's only set when there will be uploaded recordings. Currently, it's only set when application type is RECORDING or GLIVE_STREAM.", - "type": "string" - }, - "sessionId": { - "description": "This is the REST name and unique identifier of this streaming session and has the form `spaces//recordings/` This is returned whenever status is either `STARTING` or `STARTED`.", - "type": "string" - }, - "status": { - "description": "The current status of this streaming session. This can be used by clients to show session status indicator and/or notification.", + "interpretationType": { "enum": [ - "STATUS_UNSPECIFIED", - "INACTIVE", - "STARTING", - "LIVE" + "NONE", + "BLEND", + "REPLACE" ], "enumDescriptions": [ - "This value is never used.", - "The streaming session is inactive. This means either it's not started yet or it's already stopped.", - "The streaming session is about to begin. The status will be updated to LIVE when the streaming session actually starts, which happens when all the backend plumbing is set up.", - "The streaming session is live. Any media sent to the conference may be included in the resulting recording/broadcast." + "Neither the natural language interpretation, nor a broader version of the query is used to fetch the search results.", + "The results from original query are blended with other results. The reason for blending these other results with the results from original query is populated in the 'Reason' field below.", + "The results from original query are replaced. The reason for replacing the results from original query is populated in the 'Reason' field below." ], "type": "string" }, - "trainingEnabled": { - "description": "When true, this recording may be used for training new transcription models.", - "type": "boolean" + "interpretedQuery": { + "description": "The interpretation of the query used in search. For example, queries with natural language intent like \"email from john\" will be interpreted as \"from:john source:mail\". This field will not be filled when the reason is NOT_ENOUGH_RESULTS_FOUND_FOR_USER_QUERY.", + "type": "string" }, - "viewerAccessPolicy": { - "description": "The policy that controls who can view the broadcast. This setting applies for broadcast session.", + "reason": { + "description": "The reason for interpretation of the query. This field will not be UNSPECIFIED if the interpretation type is not NONE.", "enum": [ - "BROADCASTING_ACCESS_POLICY_UNSPECIFIED", - "ORGANIZATION", - "PUBLIC" + "UNSPECIFIED", + "QUERY_HAS_NATURAL_LANGUAGE_INTENT", + "NOT_ENOUGH_RESULTS_FOUND_FOR_USER_QUERY" ], "enumDescriptions": [ - "Used only when broadcast is not enabled, or an unknown enum value is used.", - "Only authenticated Google accounts belonging to the same organization as the meeting organizer can access the broadcast.", - "Anyone with the broadcast view URL can access the broadcast." + "", + "Natural language interpretation of the query is used to fetch the search results.", + "Query and document terms similarity is used to selectively broaden the query to retrieve additional search results since enough results were not found for the user query. Interpreted query will be empty for this case." ], "type": "string" - }, - "viewerStats": { - "$ref": "StreamViewerStats", - "description": "Contains information about viewers of the livestream. It is only set when application type is BROADCAST." } }, "type": "object" }, - "StructuredDataObject": { - "description": "A structured data object consisting of named properties.", - "id": "StructuredDataObject", + "QueryInterpretationConfig": { + "description": "Default options to interpret user query.", + "id": "QueryInterpretationConfig", "properties": { - "properties": { - "description": "The properties for the object. The maximum number of elements is 1000.", - "items": { - "$ref": "NamedProperty" - }, - "type": "array" + "forceDisableSupplementalResults": { + "description": "Set this flag to disable supplemental results retrieval, setting a flag here will not retrieve supplemental results for queries associated with a given search application. If this flag is set to True, it will take precedence over the option set at Query level. For the default value of False, query level flag will set the correct interpretation for supplemental results.", + "type": "boolean" + }, + "forceVerbatimMode": { + "description": "Enable this flag to turn off all internal optimizations like natural language (NL) interpretation of queries, supplemental results retrieval, and usage of synonyms including custom ones. If this flag is set to True, it will take precedence over the option set at Query level. For the default value of False, query level flag will set the correct interpretation for verbatim mode.", + "type": "boolean" } }, "type": "object" }, - "StructuredResult": { - "description": "Structured results that are returned as part of search request.", - "id": "StructuredResult", + "QueryInterpretationOptions": { + "description": "Options to interpret user query.", + "id": "QueryInterpretationOptions", "properties": { - "person": { - "$ref": "Person", - "description": "Representation of a person" + "disableNlInterpretation": { + "description": "Flag to disable natural language (NL) interpretation of queries. Default is false, Set to true to disable natural language interpretation. NL interpretation only applies to predefined datasources.", + "type": "boolean" + }, + "disableSupplementalResults": { + "description": "Use this flag to disable supplemental results for a query. Supplemental results setting chosen at SearchApplication level will take precedence if set to True.", + "type": "boolean" + }, + "enableVerbatimMode": { + "description": "Enable this flag to turn off all internal optimizations like natural language (NL) interpretation of queries, supplemental result retrieval, and usage of synonyms including custom ones. Nl interpretation will be disabled if either one of the two flags is true.", + "type": "boolean" } }, "type": "object" }, - "SuggestRequest": { - "description": "Request of suggest API.", - "id": "SuggestRequest", + "QueryItem": { + "description": "Information relevant only to a query entry.", + "id": "QueryItem", "properties": { - "dataSourceRestrictions": { - "description": "The sources to use for suggestions. If not specified, the data sources are taken from the current search application. NOTE: Suggestions are only supported for the following sources: * Third-party data sources * PredefinedSource.PERSON * PredefinedSource.GOOGLE_DRIVE", - "items": { - "$ref": "DataSourceRestriction" - }, - "type": "array" - }, - "query": { - "description": "Partial query for which autocomplete suggestions will be shown. For example, if the query is \"sea\", then the server might return \"season\", \"search\", \"seagull\" and so on.", - "type": "string" - }, - "requestOptions": { - "$ref": "RequestOptions", - "description": "Request options, such as the search application and user timezone." + "isSynthetic": { + "description": "True if the text was generated by means other than a previous user search.", + "type": "boolean" } }, "type": "object" }, - "SuggestResponse": { - "description": "Response of the suggest API.", - "id": "SuggestResponse", + "QueryOperator": { + "description": "The definition of a operator that can be used in a Search/Suggest request.", + "id": "QueryOperator", "properties": { - "suggestResults": { - "description": "List of suggestions.", + "displayName": { + "description": "Display name of the operator", + "type": "string" + }, + "enumValues": { + "description": "Potential list of values for the opeatror field. This field is only filled when we can safely enumerate all the possible values of this operator.", "items": { - "$ref": "SuggestResult" + "type": "string" }, "type": "array" - } - }, - "type": "object" - }, - "SuggestResult": { - "description": "One suggestion result.", - "id": "SuggestResult", - "properties": { - "peopleSuggestion": { - "$ref": "PeopleSuggestion", - "description": "This is present when the suggestion indicates a person. It contains more information about the person - like their email ID, name etc." }, - "querySuggestion": { - "$ref": "QuerySuggestion", - "description": "This field will be present if the suggested query is a word/phrase completion." + "greaterThanOperatorName": { + "description": "Indicates the operator name that can be used to isolate the property using the greater-than operator.", + "type": "string" }, - "source": { - "$ref": "Source", - "description": "The source of the suggestion." + "isFacetable": { + "description": "Can this operator be used to get facets.", + "type": "boolean" }, - "suggestedQuery": { - "description": "The suggested query that will be used for search, when the user clicks on the suggestion", - "type": "string" - } - }, - "type": "object" - }, - "SupportUrls": { - "description": "Urls with additional bot related information.", - "id": "SupportUrls", - "properties": { - "adminConfigUrl": { - "description": "Link to the admin configuration webpage for the bot. Configured by Pantheon, may be empty.", - "type": "string" + "isRepeatable": { + "description": "Indicates if multiple values can be set for this property.", + "type": "boolean" }, - "deletionPolicyUrl": { - "description": "Link to the deletion policy webpage for the bot. Configured by Pantheon, may be empty.", - "type": "string" + "isReturnable": { + "description": "Will the property associated with this facet be returned as part of search results.", + "type": "boolean" }, - "gwmUrl": { - "description": "Link to GWM page of the app. May be empty.", - "type": "string" + "isSortable": { + "description": "Can this operator be used to sort results.", + "type": "boolean" }, - "privacyPolicyUrl": { - "description": "Link to the privacy policy webpage for the bot. May be empty.", - "type": "string" + "isSuggestable": { + "description": "Can get suggestions for this field.", + "type": "boolean" }, - "setupUrl": { - "description": "Link to the setup webpage for the bot. Configured by Pantheon, may be empty.", + "lessThanOperatorName": { + "description": "Indicates the operator name that can be used to isolate the property using the less-than operator.", "type": "string" }, - "supportUrl": { - "description": "Link to the support webpage for the developer of the bot. May be empty.", + "objectType": { + "description": "The name of the object corresponding to the operator. This field is only filled for schema-specific operators, and is unset for common operators.", "type": "string" }, - "tosUrl": { - "description": "Link to the terms of service webpage for the bot. May be empty.", + "operatorName": { + "description": "The name of the operator.", "type": "string" - } - }, - "type": "object" - }, - "SwitchWidget": { - "id": "SwitchWidget", - "properties": { - "controlType": { + }, + "type": { + "description": "The type of the operator.", "enum": [ - "UNSPECIFIED", - "SWITCH", - "CHECKBOX" + "UNKNOWN", + "INTEGER", + "DOUBLE", + "TIMESTAMP", + "BOOLEAN", + "ENUM", + "DATE", + "TEXT", + "HTML" ], "enumDescriptions": [ + "Invalid value.", + "", + "", + "", + "", + "", "", "", "" ], "type": "string" - }, - "name": { - "description": "The name of the switch widget which is will be used in FormInput.", + } + }, + "type": "object" + }, + "QuerySource": { + "description": "List of sources that the user can search using the query API.", + "id": "QuerySource", + "properties": { + "displayName": { + "description": "Display name of the data source.", "type": "string" }, - "onChange": { - "$ref": "FormAction" - }, - "selected": { - "type": "boolean" + "operators": { + "description": "List of all operators applicable for this source.", + "items": { + "$ref": "QueryOperator" + }, + "type": "array" }, - "value": { - "description": "The value is what is passed back in apps script callback.", + "shortName": { + "description": "A short name or alias for the source. This value can be used with the 'source' operator.", "type": "string" + }, + "source": { + "$ref": "Source", + "description": "The name of the source" } }, "type": "object" }, - "TaskActionMarkup": { - "id": "TaskActionMarkup", - "properties": { - "reloadTasks": { - "type": "boolean" - } - }, + "QuerySuggestion": { + "description": "This field does not contain anything as of now and is just used as an indicator that the suggest result was a phrase completion.", + "id": "QuerySuggestion", + "properties": {}, "type": "object" }, - "TextButton": { - "id": "TextButton", + "RemoveActivityRequest": { + "description": "Remove Logged Activity Request.", + "id": "RemoveActivityRequest", "properties": { - "altText": { - "description": "The alternative text used for accessibility Next field number: 7.", - "type": "string" - }, - "backgroundColor": { - "description": "Optional color of the button's background in RAISE mode. The default is the secondary color from addon's manifest.", - "type": "string" - }, - "disabled": { - "type": "boolean" - }, - "onClick": { - "$ref": "OnClick" - }, - "style": { - "enum": [ - "UNSPECIFIED", - "TEXT", - "FILLED" - ], - "enumDescriptions": [ - "", - "Simple text button with ripple touch feedback.", - "Button with solid background." - ], - "type": "string" + "requestOptions": { + "$ref": "RequestOptions", + "description": "Request options, such as the search application and clientId." }, - "text": { - "description": "Text color can be set via HTML markup.", - "type": "string" + "userActivity": { + "$ref": "UserActivity", + "description": "User Activity containing the data to be deleted." } }, "type": "object" }, - "TextField": { - "id": "TextField", + "RemoveActivityResponse": { + "description": "Remove Logged Activity Response. will return an empty response for now. Will be revisited in later phases.", + "id": "RemoveActivityResponse", + "properties": {}, + "type": "object" + }, + "RepositoryError": { + "description": "Errors when the connector is communicating to the source repository.", + "id": "RepositoryError", "properties": { - "autoComplete": { - "$ref": "AutoComplete", - "description": "The initial set of auto complete items without any user input." - }, - "autoCompleteCallback": { - "$ref": "FormAction", - "description": "The refresh function which returns AutoComplete based on the user's input text. If the callback is not specified, auto complete will be purely done in client side based on the auto_complete items." - }, - "autoCompleteMultipleSelections": { - "description": "When set to true, a user can input multiple auto-complet items.", - "type": "boolean" - }, - "hintText": { - "type": "string" - }, - "label": { - "description": "One of label or hint_text is required to be specified by the developers.", + "errorMessage": { + "description": "Message that describes the error. The maximum allowable length of the message is 8192 characters.", "type": "string" }, - "maxLines": { + "httpStatusCode": { + "description": "Error codes. Matches the definition of HTTP status codes.", "format": "int32", "type": "integer" }, - "name": { - "description": "The name of the text field which is will be used in FormInput.", - "type": "string" - }, - "onChange": { - "$ref": "FormAction" - }, "type": { + "description": "The type of error.", "enum": [ - "SINGLE_LINE", - "MULTIPLE_LINE" + "UNKNOWN", + "NETWORK_ERROR", + "DNS_ERROR", + "CONNECTION_ERROR", + "AUTHENTICATION_ERROR", + "AUTHORIZATION_ERROR", + "SERVER_ERROR", + "QUOTA_EXCEEDED", + "SERVICE_UNAVAILABLE", + "CLIENT_ERROR" ], "enumDescriptions": [ - "", - "" + "Unknown error.", + "Unknown or unreachable host.", + "DNS problem, such as the DNS server is not responding.", + "Cannot connect to the repository server.", + "Failed authentication due to incorrect credentials.", + "Service account is not authorized for the repository.", + "Repository server error.", + "Quota exceeded.", + "Server temporarily unavailable.", + "Client-related error, such as an invalid request from the connector to the repository server." ], "type": "string" - }, - "value": { - "description": "The default value when no input from user.", - "type": "string" } }, "type": "object" }, - "TextKeyValue": { - "description": "This is deprecated and please use KeyValue.", - "id": "TextKeyValue", + "RequestOptions": { + "description": "Shared request options for all RPC methods.", + "id": "RequestOptions", "properties": { - "key": { + "debugOptions": { + "$ref": "DebugOptions", + "description": "Debug options of the request" + }, + "languageCode": { + "description": "The BCP-47 language code, such as \"en-US\" or \"sr-Latn\". For more information, see http://www.unicode.org/reports/tr35/#Unicode_locale_identifier. For translations. Set this field using the language set in browser or for the page. In the event that the user's language preference is known, set this field to the known user language. When specified, the documents in search results are biased towards the specified language. From Suggest API perspective, for 3p suggest this is used as a hint while making predictions to add language boosting.", "type": "string" }, - "onClick": { - "$ref": "OnClick" + "searchApplicationId": { + "description": "The ID generated when you create a search application using the [admin console](https://support.google.com/a/answer/9043922).", + "type": "string" }, - "text": { + "timeZone": { + "description": "Current user's time zone id, such as \"America/Los_Angeles\" or \"Australia/Sydney\". These IDs are defined by [Unicode Common Locale Data Repository (CLDR)](http://cldr.unicode.org/) project, and currently available in the file [timezone.xml](http://unicode.org/repos/cldr/trunk/common/bcp47/timezone.xml). This field is used to correctly interpret date and time queries. If this field is not specified, the default time zone (UTC) is used.", "type": "string" } }, "type": "object" }, - "TextOperatorOptions": { - "description": "Used to provide a search operator for text properties. This is optional. Search operators let users restrict the query to specific fields relevant to the type of item being searched.", - "id": "TextOperatorOptions", + "ResetSearchApplicationRequest": { + "id": "ResetSearchApplicationRequest", "properties": { - "exactMatchWithOperator": { - "description": "If true, the text value is tokenized as one atomic value in operator searches and facet matches. For example, if the operator name is \"genre\" and the value is \"science-fiction\" the query restrictions \"genre:science\" and \"genre:fiction\" doesn't match the item; \"genre:science-fiction\" does. Text value matching is case-sensitive and does not remove special characters. If false, the text is tokenized. For example, if the value is \"science-fiction\" the queries \"genre:science\" and \"genre:fiction\" matches the item.", - "type": "boolean" - }, - "operatorName": { - "description": "Indicates the operator name required in the query in order to isolate the text property. For example, if operatorName is *subject* and the property's name is *subjectLine*, then queries like *subject:\u003cvalue\u003e* show results only where the value of the property named *subjectLine* matches *\u003cvalue\u003e*. By contrast, a search that uses the same *\u003cvalue\u003e* without an operator returns all items where *\u003cvalue\u003e* matches the value of any text properties or text within the content field for the item. The operator name can only contain lowercase letters (a-z). The maximum length is 32 characters.", - "type": "string" + "debugOptions": { + "$ref": "DebugOptions", + "description": "Common debug options." } }, "type": "object" }, - "TextParagraph": { - "id": "TextParagraph", + "ResponseDebugInfo": { + "description": "Debugging information about the response.", + "id": "ResponseDebugInfo", "properties": { - "text": { + "formattedDebugInfo": { + "description": "General debug info formatted for display.", "type": "string" } }, "type": "object" }, - "TextPropertyOptions": { - "description": "The options for text properties.", - "id": "TextPropertyOptions", + "RestrictItem": { + "description": "Information relevant only to a restrict entry. NextId: 12", + "id": "RestrictItem", "properties": { - "operatorOptions": { - "$ref": "TextOperatorOptions", - "description": "If set, describes how the property should be used as a search operator." + "driveFollowUpRestrict": { + "$ref": "DriveFollowUpRestrict" }, - "retrievalImportance": { - "$ref": "RetrievalImportance", - "description": "Indicates the search quality importance of the tokens within the field when used for retrieval." - } - }, - "type": "object" - }, - "TextValues": { - "description": "List of text values.", - "id": "TextValues", - "properties": { - "values": { - "description": "The maximum allowable length for text values is 2048 characters.", - "items": { - "type": "string" - }, - "type": "array" + "driveLocationRestrict": { + "$ref": "DriveLocationRestrict" + }, + "driveMimeTypeRestrict": { + "$ref": "DriveMimeTypeRestrict", + "description": "Drive Types." + }, + "driveTimeSpanRestrict": { + "$ref": "DriveTimeSpanRestrict" + }, + "searchOperator": { + "description": "The search restrict (e.g. \"after:2017-09-11 before:2017-09-12\").", + "type": "string" } }, "type": "object" }, - "ThreadKeySet": { - "description": "The ThreadKey was set on some (subset of the) messages in this thread.", - "id": "ThreadKeySet", + "ResultCounts": { + "description": "Result count information", + "id": "ResultCounts", "properties": { - "messageKeys": { - "description": "Messages on which the thread_key was changed.", + "sourceResultCounts": { + "description": "Result count information for each source with results.", "items": { - "$ref": "MultiKey" + "$ref": "SourceResultCount" }, "type": "array" - }, - "newThreadKey": { - "$ref": "MultiKey", - "description": "The new thread_key for this thread" } }, "type": "object" }, - "ThreadUpdate": { - "description": "HistoryRecord for changes associated with a thread, namely: MESSAGE_ADDED MESSAGE_DELETED LABEL_ADDED LABEL_REMOVED ATTRIBUTE_SET ATTRIBUTE_REMOVED THREAD_KEY_SET All label_ids refer to the (unchanging) value as defined by the Label.id field in labels.proto. In particular, it is *not* the canonical_name.", - "id": "ThreadUpdate", + "ResultDebugInfo": { + "description": "Debugging information about the result.", + "id": "ResultDebugInfo", "properties": { - "attributeRemoved": { - "$ref": "AttributeRemoved" - }, - "attributeSet": { - "$ref": "AttributeSet" - }, - "labelAdded": { - "$ref": "LabelAdded" - }, - "labelRemoved": { - "$ref": "LabelRemoved" - }, - "lastHistoryRecordId": { - "description": "Indicates the record id of the last operation that modified this thread.", - "format": "uint64", - "type": "string" - }, - "messageAdded": { - "$ref": "MessageAdded" - }, - "messageDeleted": { - "$ref": "MessageDeleted" - }, - "originalThreadKey": { - "$ref": "MultiKey", - "description": "The first non-empty thread-key on any message in the thread (including deleted messages). This field has been introduced to maintain backward compatibility for clients that are not subthread aware." - }, - "preState": { - "description": "The PreStates of all messages before the transaction. These are suppressed if the client requested that prestates not be included in the output of the GetHistoryRequest.", - "items": { - "$ref": "PreState" - }, - "type": "array" - }, - "threadKey": { - "$ref": "MultiKey", - "description": "Affected thread" - }, - "threadKeySet": { - "$ref": "ThreadKeySet" - }, - "threadLocator": { - "description": "Thread PLID", + "formattedDebugInfo": { + "description": "General debug info formatted for display.", "type": "string" - }, - "topicStateUpdate": { - "$ref": "TopicStateUpdate" } }, "type": "object" }, - "TimestampOperatorOptions": { - "description": "Used to provide a search operator for timestamp properties. This is optional. Search operators let users restrict the query to specific fields relevant to the type of item being searched.", - "id": "TimestampOperatorOptions", + "ResultDisplayField": { + "description": "Display Fields for Search Results", + "id": "ResultDisplayField", "properties": { - "greaterThanOperatorName": { - "description": "Indicates the operator name required in the query in order to isolate the timestamp property using the greater-than operator. For example, if greaterThanOperatorName is *closedafter* and the property's name is *closeDate*, then queries like *closedafter:\u003cvalue\u003e* show results only where the value of the property named *closeDate* is later than *\u003cvalue\u003e*. The operator name can only contain lowercase letters (a-z). The maximum length is 32 characters.", - "type": "string" - }, - "lessThanOperatorName": { - "description": "Indicates the operator name required in the query in order to isolate the timestamp property using the less-than operator. For example, if lessThanOperatorName is *closedbefore* and the property's name is *closeDate*, then queries like *closedbefore:\u003cvalue\u003e* show results only where the value of the property named *closeDate* is earlier than *\u003cvalue\u003e*. The operator name can only contain lowercase letters (a-z). The maximum length is 32 characters.", + "label": { + "description": "The display label for the property.", "type": "string" }, "operatorName": { - "description": "Indicates the operator name required in the query in order to isolate the timestamp property. For example, if operatorName is *closedon* and the property's name is *closeDate*, then queries like *closedon:\u003cvalue\u003e* show results only where the value of the property named *closeDate* matches *\u003cvalue\u003e*. By contrast, a search that uses the same *\u003cvalue\u003e* without an operator returns all items where *\u003cvalue\u003e* matches the value of any String properties or text within the content field for the item. The operator name can only contain lowercase letters (a-z). The maximum length is 32 characters.", + "description": "The operator name of the property.", "type": "string" + }, + "property": { + "$ref": "NamedProperty", + "description": "The name value pair for the property." } }, "type": "object" }, - "TimestampPropertyOptions": { - "description": "The options for timestamp properties.", - "id": "TimestampPropertyOptions", + "ResultDisplayLine": { + "description": "The collection of fields that make up a displayed line", + "id": "ResultDisplayLine", "properties": { - "operatorOptions": { - "$ref": "TimestampOperatorOptions", - "description": "If set, describes how the timestamp should be used as a search operator." + "fields": { + "items": { + "$ref": "ResultDisplayField" + }, + "type": "array" } }, "type": "object" }, - "TimestampValues": { - "description": "List of timestamp values.", - "id": "TimestampValues", + "ResultDisplayMetadata": { + "id": "ResultDisplayMetadata", "properties": { - "values": { + "metalines": { + "description": "The metalines content to be displayed with the result.", "items": { - "format": "google-datetime", - "type": "string" + "$ref": "ResultDisplayLine" }, "type": "array" + }, + "objectTypeLabel": { + "description": "The display label for the object.", + "type": "string" } }, "type": "object" }, - "TombstoneMetadata": { - "description": "Tombstoning is the act of leaving a contextual trace when deleting a message. See more: go/tombstone-prd, go/hub-dynamite-tombstones-server-design-v2.", - "id": "TombstoneMetadata", + "RetrievalImportance": { + "id": "RetrievalImportance", "properties": { - "tombstoneType": { - "description": "Indicates the type of Tombstone.", + "importance": { + "description": "Indicates the ranking importance given to property when it is matched during retrieval. Once set, the token importance of a property cannot be changed.", "enum": [ - "TOMBSTONE_UNSPECIFIED", - "CREATOR", - "ROOM_OWNER", - "ADMIN", - "APP_MESSAGE_EXPIRY", - "CREATOR_VIA_APP", - "ROOM_OWNER_VIA_APP" + "DEFAULT", + "HIGHEST", + "HIGH", + "LOW", + "NONE" ], "enumDescriptions": [ - "This should not be used.", - "User deleted their own message.", - "The space owner deleted a message in their space.", - "The customer admin deleted a message in a space or DM owned by the customer. (go/chat-customer-owned-data)", - "App scheduled deletion of their own message. See go/bme-dd.", - "User deleted their own message via an app. See go/chat-api-delete-message.", - "The space owner deleted a message in their space via an app. See go/chat-api-delete-message." + "Treat the match like a body text match.", + "Treat the match like a match against title of the item.", + "Treat the match with higher importance than body text.", + "Treat the match with lower importance than body text.", + "Do not match against this field during retrieval. The property can still be used for operator matching, faceting, and suggest if desired." ], "type": "string" } }, "type": "object" }, - "Toolbar": { - "description": "The Toolbar markup has been deprecated. The information is now specified in the manifest.", - "id": "Toolbar", + "SafeHtmlProto": { + "description": "IMPORTANT: It is unsafe to accept this message from an untrusted source, since it's trivial for an attacker to forge serialized messages that don't fulfill the type's safety contract -- for example, it could contain attacker controlled script. A system which receives a SafeHtmlProto implicitly trusts the producer of the SafeHtmlProto. So, it's generally safe to return this message in RPC responses, but generally unsafe to accept it in RPC requests.", + "id": "SafeHtmlProto", "properties": { - "color": { - "description": "Background color of the toolbar in RBG hex representation.", - "type": "string" - }, - "iconUrl": { - "type": "string" - }, - "name": { + "privateDoNotAccessOrElseSafeHtmlWrappedValue": { + "description": "IMPORTANT: Never set or read this field, even from tests, it is private. See documentation at the top of .proto file for programming language packages with which to create or read this message.", "type": "string" } }, "type": "object" }, - "TopicId": { - "id": "TopicId", + "SafeUrlProto": { + "description": "Message containing a string that is safe to use in URL contexts in DOM APIs and HTML documents, where the URL context does not refer to a resource that loads code.", + "id": "SafeUrlProto", "properties": { - "groupId": { - "$ref": "GroupId", - "description": "The Space or DM that the topic belongs to." - }, - "topicId": { - "description": "Opaque, server-assigned ID of the Topic. While this ID is guaranteed to be unique within the Space, it's not guaranteed to be globally unique. Internal usage: this field can be empty in the following cases: 1. To create the first message in a topic. 2. To list last N messages of a Space (regardless of topic).", + "privateDoNotAccessOrElseSafeUrlWrappedValue": { + "description": "IMPORTANT: Never set or read this field, even from tests, it is private. See documentation at the top of .proto file for programming language packages with which to create or read this message.", "type": "string" } }, "type": "object" }, - "TopicState": { - "description": "State of an topic thread as maintained within Tingle.", - "id": "TopicState", + "Schema": { + "description": "The schema definition for a data source.", + "id": "Schema", "properties": { - "labelIdMessageCount": { - "additionalProperties": { - "format": "int32", - "type": "integer" + "objectDefinitions": { + "description": "The list of top-level objects for the data source. The maximum number of elements is 10.", + "items": { + "$ref": "ObjectDefinition" }, - "description": "Map of label =\u003e count of topic constituent messages with label These only contain counts of labels that are relevant for topic normalization/denormalization. Eg. If a topic thread has 5 constituents, 4 of which are in inbox, this will contain ^i =\u003e 4. Some labels of interest are archive, inbox, trash, spam, etc.", - "type": "object" - }, - "numConstituents": { - "description": "Number of constituents for this entity.", - "format": "int32", - "type": "integer" - } - }, - "type": "object" - }, - "TopicStateUpdate": { - "id": "TopicStateUpdate", - "properties": { - "topicState": { - "$ref": "TopicState" - } - }, - "type": "object" - }, - "TransactionContext": { - "description": "Storage information pertaining to the transaction with which a HistoryRecord is associated.", - "id": "TransactionContext", - "properties": { - "endingRecordId": { - "description": "The last HistoryRecord of the transaction. Note that this may correspond to a record that is filtered by Tingle (and thus not returned to the client). See http://b/9513464.", - "format": "uint64", - "type": "string" - }, - "startingRecordId": { - "description": "The first HistoryRecord of the transaction. Note that this may be a record of type INTERNAL.", - "format": "uint64", - "type": "string" + "type": "array" }, - "writeTimestampUs": { - "description": "The microsecond timestamp of the transaction.", - "format": "int64", - "type": "string" + "operationIds": { + "description": "IDs of the Long Running Operations (LROs) currently running for this schema. After modifying the schema, wait for operations to complete before indexing additional content.", + "items": { + "type": "string" + }, + "type": "array" } }, "type": "object" }, - "TransactionDebugInfo": { - "description": "HistoryRecord for debug info associated with the transaction, namely: TXN_DEBUG_INFO TODO(b/143845917) This is a short-term workaround for unblocking fusebox writes migration. Clean up the code or land a long-term solution after the rollout. go/diff-to-historyrecord", - "id": "TransactionDebugInfo", - "properties": {}, - "type": "object" - }, - "TranscriptionSessionInfo": { - "description": "Information about a transcription session.", - "id": "TranscriptionSessionInfo", + "ScoringConfig": { + "description": "Scoring configurations for a source while processing a Search or Suggest request.", + "id": "ScoringConfig", "properties": { - "sessionStateInfo": { - "$ref": "SessionStateInfo", - "description": "Transcription session's state information." + "disableFreshness": { + "description": "Whether to use freshness as a ranking signal. By default, freshness is used as a ranking signal. Note that this setting is not available in the Admin UI.", + "type": "boolean" }, - "transcriptionSessionId": { - "description": "A unique server-generated ID for the transcription session.", - "type": "string" + "disablePersonalization": { + "description": "Whether to personalize the results. By default, personal signals will be used to boost results.", + "type": "boolean" } }, "type": "object" }, - "TransientData": { - "description": "Transient generic data that will not be saved on the server.", - "id": "TransientData", - "properties": {}, - "type": "object" - }, - "Trigger": { - "id": "Trigger", + "SearchApplication": { + "description": "SearchApplication", + "id": "SearchApplication", "properties": { - "actionType": { - "description": "Each dispatcher should use an enum to for the actions that it supports. If a dispatcher has only one action, this does not need to be set. (It can be expanded later, defining the default behaviour as type 0.) For purposes such as batching, the type of a trigger is (dispatcher, action_type).", - "format": "uint32", - "type": "integer" - }, - "batchTimeUs": { - "description": "Maximum possible delay in micros that can be tolerated so triggers can be batched, which makes processing more efficient compared to firing triggers individually. Note that the actual fire time will be somewhere in the timerange interval [fire_time_us, fire_time_us + batch_time_us).", - "format": "int64", - "type": "string" + "dataSourceRestrictions": { + "description": "Retrictions applied to the configurations. The maximum number of elements is 10.", + "items": { + "$ref": "DataSourceRestriction" + }, + "type": "array" }, - "dispatchId": { - "description": "Must be set for DISPATCHER_STUBBY_DISPATCHER.", - "format": "uint32", - "type": "integer" + "defaultFacetOptions": { + "description": "The default fields for returning facet results. The sources specified here also have been included in data_source_restrictions above.", + "items": { + "$ref": "FacetOptions" + }, + "type": "array" }, - "dispatcher": { - "description": "Which server should interpret action_type.", - "enum": [ - "DISPATCHER_COPROC", - "DISPATCHER_JOBSETTED_PRIMARY", - "DISPATCHER_STRATUS", - "DISPATCHER_TASKS_SERVER", - "DISPATCHER_STUBBY_DISPATCHER", - "DISPATCHER_CS" - ], - "enumDescriptions": [ - "Replace ACTION_INVOKE_X; the CS and Stratus are no longer limited to a single type of action. Each additional remote client should be defined here.", - "", - "", - "", - "", - "" - ], - "type": "string" + "defaultSortOptions": { + "$ref": "SortOptions", + "description": "The default options for sorting the search results" }, - "fireTimeUs": { - "description": "Earliest time to fire at in microseconds. The actual time that the trigger will fire will be in the timerange: [fire_time_us, fire_time_us + batch_time_us).", - "format": "int64", + "displayName": { + "description": "Display name of the Search Application. The maximum length is 300 characters.", "type": "string" }, - "jobsettedServerSpec": { - "$ref": "JobsettedServerSpec", - "description": "Must be set for DISPATCHER_JOBSETTED_PRIMARY." + "enableAuditLog": { + "description": "Indicates whether audit logging is on/off for requests made for the search application in query APIs.", + "type": "boolean" }, - "key": { - "description": "The trigger key, if applicable.", + "name": { + "description": "The name of the Search Application. Format: searchapplications/{application_id}.", "type": "string" }, - "rpcOptions": { - "$ref": "RpcOptions" - }, - "sliceFireTimeUs": { - "description": "The slice_fire_time_us is automatically computed and stored as part of the trigger write. It represents the exact fire time at which the trigger will be queued to fire and will satisfy fire_time_us \u003c slice_fire_time_us \u003c= fire_time_us + batch_time_us Triggers have an index row in the slice trigger index with the row prefix matching this time. Note that this field is internal to gmail_cp and is ignored if set by external clients when adding / updating triggers.", - "format": "int64", - "type": "string" + "operationIds": { + "description": "Output only. IDs of the Long Running Operations (LROs) currently running for this schema. Output only field.", + "items": { + "type": "string" + }, + "readOnly": true, + "type": "array" }, - "triggerAction": { - "$ref": "TriggerAction", - "description": "Trigger action to perform. This should always be set." + "queryInterpretationConfig": { + "$ref": "QueryInterpretationConfig", + "description": "The default options for query interpretation" }, - "triggerKey": { - "$ref": "TriggerKey", - "description": "The TriggerKey will uniquely determine a trigger within a given context. A context is a single message for message triggers or a single account for account triggers." - } - }, - "type": "object" - }, - "TriggerAction": { - "id": "TriggerAction", - "properties": { - "action": { - "enum": [ - "ACTION_NONE", - "ACTION_DELETE", - "ACTION_CREATE_NEW_TRIGGER", - "ACTION_MESSAGE_EXPUNGE", - "ACTION_RETENTION_POLICY_UPDATE", - "ACTION_UPDATE_ICEBOX_MODEL", - "ACTION_INVOKE_CS", - "ACTION_INVOKE_STRATUS", - "ACTION_PDH_EXPUNGE", - "ACTION_QUERY_RETENTION", - "ACTION_INVOKE_JOBSETTED_PRIMARY", - "ACTION_INVOKE_TASKS_SERVER", - "ACTION_INVOKE_PUBLISHER", - "ACTION_INVOKE_OBSERVER", - "ACTION_PUSH_HISTORY_TO_PDH", - "ACTION_INVOKE_STUBBY_DISPATCHER", - "ACTION_PDH_BACKFILL", - "ACTION_MESSAGE_UNDELETE", - "ACTION_VAULT_END_USER_ACCESS", - "ACTION_INVOKE_GROUPS", - "ACTION_ACCOUNT_INITIALIZATION", - "ACTION_INVOKE_OBSERVER_WIPEOUT", - "ACTION_SERVICE_REMOVED_MESSAGE_EXPUNGE", - "ACTION_EVERCLEAR_EXPUNGE", - "ACTION_INVOKE_SMIME_CERTIFICATE_ISSUER", - "ACTION_GROUPS_QUERY_RETENTION", - "ACTION_INVOKE_SATELLITE_BACKUP", - "ACTION_INVOKE_DEBUG_LOG", - "ACTION_PREFERENCE_CLEANUP", - "ACTION_CARIBOU_DATA_RETENTION", - "ACTION_HISTORY_CLEANUP", - "ACTION_ITEM_BULK_RELABEL", - "ACTION_INVOKE_SATELLITE_IMAGE_PROCESSING", - "ACTION_CARIBOU_DATA_RETENTION_DIFF", - "ACTION_RELEVANCY_SCORE_BACKFILL", - "ACTION_PDH_PUSH_NOTIFICATION_BACKFILL", - "ACTION_AUTO_SAVE_DRAFT_EXPUNGE", - "ACTION_RELEVANCY_SCORE_CATCHUP" - ], - "enumDescriptions": [ - "", - "No-op", - "No-op", - "This action begins the message expunge process. It will trigger a purge attempt for all messages that have this trigger.", - "When this trigger fires, the current retention policy will be loaded from the policy management system and stored into the preference cache (if necessary). This will also create new expunge triggers if necessary.", - "When this trigger fires, the message should be used to update the user's importance model. See http://go/io-tingle for more details.", - "Sends the trigger to the master Caribou server via the Stubby TriggerHandlerService interface (defined in caribou/coproc/proto/trigger_handler.proto). The trigger is handled at fire time in the account's primary replica, and only in non-primary replicas after a delay.", - "Similar to ACTION_INVOKE_CS, but instead of sending the trigger to the master Caribou server, sends it to a Stratus server that also implements the TriggerHandlerService. This Stratus server is specified via FLAGS_triggers_stratus_server_address. The trigger is handled at fire time in the account's primary replica, and only in non-primary replicas after a delay.", - "This action begins the message's PDH expunge. It will trigger a expunge (from pdh) attempt for all messages that have this trigger.", - "When this trigger fires, based on the latest retention policy: 1. messages that need to be deleted will be deleted through the CS trigger handler 2. ^deleted messages that need to be expunged will be expunged", - "Similar to ACTION_INVOKE_CS, but instead of sending the trigger to the master Caribou server, sends it to a jobsetted server in the user's master jobset using the consistent-hash homing algorithm. The jobsetted_server_spec must be specified when using this TriggerAction.", - "Send the trigger to a Tasks server that implements the TriggerHandlerService. Dispatched via GSLB target specified by FLAGS_triggers_tasks_server_address.", - "Send the trigger to a SmartMail Publisher server that implements the TriggerHandlerService. Dispatched via GSLB target specified by FLAGS_triggers_publisher_server_address.", - "Send the trigger to an Observer server that implements the TriggerHandlerService. Dispatched via GSLB target specified by FLAGS_triggers_observer_server_address.", - "Push a set of history records to PDH.", - "Send the trigger to the stubby dispatcher, which routes the RPC using the value of Trigger.dispatch_id as the RoutingInfo.extension_tag field. Dispatched via the GSLB target specified by FLAGS_triggers_stubby_dispatcher_address.", - "Backfills a set of records from an account and pushes them to PDH.", - "Move messages from ^deleted to ^all. This trigger will only undelete messages that were deleted before the fire time of the trigger. Also, messages whose blobs are already deleted will not be undeleted. This is an account trigger.", - "This trigger will undelete messages that were ^deleted arbitrarily long in the past and a trash label will be applied to these undeleted messages. This is an account trigger that will be written when the Vault admin enables end user access for the Vault customer. This trigger shares its implementation with the ACTION_MESSAGE_UNDELETE trigger.", - "Send the trigger to a groups server that implements the TriggerHandlerService. Dispatched via GSLB target specified by FLAGS_triggers_groups_server_address.", - "This trigger will be executed once per newly created account. It will be created as part of the first transaction written to the account. The trigger can also be written as part of an SVF in case we want to re-initialize every account.", - "Send the trigger to an Observer server that implements the TriggerHandlerService for wipeout purpose. Dispatched via GSLB target specified by FLAGS_triggers_observer_server_address. It behaves differently from the invoke observer trigger (ACTION_INVOKE_OBSERVER) and should be batched separately. Tingle always fires this kind of action trigger for ^deleted messages.", - "Begins the message expunge similar to ACTION_MESSAGE_EXPUNGE but doesn't check if the message was deleted at least 30 days back. To be used ONLY for service removal. See go/gmail-service-removal for more details.", - "Sends RPC to everclear for the message expunge.", - "Send the trigger to the S/MIME certificate issuer server. Dispatched via the GSLB target specified by FLAGS_triggers_smime_certificate_issuer_server_address.", - "The retention trigger that will be written to implement Groups retention.", - "Dispatches the permanent backup trigger to Satellite through Stubby dispatcher.", - "Process the debug log trigger by adding message body before dispatching to the Caribou Server through Stubby Dispatcher.", - "This trigger deletes expired temporary preferences. See go/tingle-temp-prefs for more details.", - "Similar to ACTION_QUERY_RETENTION but uses the MessageRetention policies to trash/delete the messages: cs/caribou/base/lib/proto/data_retention.proto .", - "This trigger deletes expired HistoryRecords. See go/history-record-cleanup for more details.", - "This trigger relabels messages asynchronously. See go/fusebox-bulk-api for more details.", - "Dispatches the image processing trigger to Satellite through Stubby dispatcher. See go/gmail-photo-sharing for details.", - "Trigger for executing comparison logic between the output of ApplyDataRetention idle task and CaribouDataRetention trigger.", - "Trigger for backfill relevancy score. see go/gmail-relevancy-scoring-write for detail.", - "Trigger to backfill gaps left by pdh pushed via push notification. see go/tingle-moonshine-push-v2", - "Begins the message expunge similar to ACTION_MESSAGE_EXPUNGE but fires within one day. To be used ONLY for auto save drafts. See go/faster-auto-save-draft-deletion for more details.", - "Trigger for relevancy score catchup. See go/relevancy-trigger-doc for detail." - ], - "type": "string" + "returnResultThumbnailUrls": { + "description": "With each result we should return the URI for its thumbnail (when applicable)", + "type": "boolean" }, - "data": { - "description": "Clients should use extensions on the Trigger message instead.", - "format": "byte", - "type": "string" + "scoringConfig": { + "$ref": "ScoringConfig", + "description": "Configuration for ranking results." }, - "dataInt": { - "format": "int64", - "type": "string" + "sourceConfig": { + "description": "Configuration for a sources specified in data_source_restrictions.", + "items": { + "$ref": "SourceConfig" + }, + "type": "array" } }, "type": "object" }, - "TriggerKey": { - "description": "A TriggerKey (type + instance_id) uniquely identifies a trigger within a message for a message-trigger and within an account for an account-trigger.", - "id": "TriggerKey", + "SearchApplicationQueryStats": { + "description": "Search application level query stats per date", + "id": "SearchApplicationQueryStats", "properties": { - "instanceId": { - "description": "Identifier to distinguish multiple Triggers of the same type (per message or per account).", - "type": "string" + "date": { + "$ref": "Date", + "description": "The date for which query stats were calculated. Stats calculated on the next day close to midnight are returned." }, - "type": { - "description": "A non-empty string that identifies the type of Trigger. Triggers of the same type may be batched together. The universe of values for the type field should be finite as it is used as a stats key.", - "type": "string" - } - }, - "type": "object" - }, - "Triggers": { - "id": "Triggers", - "properties": { - "triggers": { - "description": "A list of triggers.", + "queryCountByStatus": { "items": { - "$ref": "Trigger" + "$ref": "QueryCountByStatus" }, "type": "array" } }, "type": "object" }, - "TrustedResourceUrlProto": { - "description": "Message containing a string that is safe to use in all URL contexts in DOM APIs and HTML documents; even where the referred-to resource is interpreted as code, e.g., as the src of a script element.", - "id": "TrustedResourceUrlProto", + "SearchApplicationSessionStats": { + "id": "SearchApplicationSessionStats", "properties": { - "privateDoNotAccessOrElseTrustedResourceUrlWrappedValue": { - "description": "IMPORTANT: Never set or read this field, even from tests, it is private. See documentation at the top of .proto file for programming language packages with which to create or read this message.", + "date": { + "$ref": "Date", + "description": "The date for which session stats were calculated. Stats are calculated on the following day, close to midnight PST, and then returned." + }, + "searchSessionsCount": { + "description": "The count of search sessions on the day", + "format": "int64", "type": "string" } }, "type": "object" }, - "TypeInfo": { - "description": "Next tag: 2", - "id": "TypeInfo", - "properties": { - "videoInfo": { - "$ref": "VideoInfo", - "description": "Contains additional video information only if document_type is VIDEO." - } - }, - "type": "object" - }, - "UniversalPhoneAccess": { - "description": "Universal phone access contains information required to dial into a conference using one of a static list of phone numbers and a universal PIN. The phone number list is distributed separately.", - "id": "UniversalPhoneAccess", + "SearchApplicationUserStats": { + "id": "SearchApplicationUserStats", "properties": { - "pin": { - "description": "The PIN that users must enter after dialing a universal number. The pin consists of only decimal digits and the length may vary, though it generally is longer than a PhoneAccess.pin.", + "date": { + "$ref": "Date", + "description": "The date for which session stats were calculated. Stats calculated on the next day close to midnight are returned." + }, + "oneDayActiveUsersCount": { + "description": "The count of unique active users in the past one day", + "format": "int64", "type": "string" }, - "pstnInfoUrl": { - "description": "This field has the same contents as the MeetingSpace.more_join_url field, and is included for compatibility reasons. Clients should use the other field instead. This field is deprecated and will be removed.", + "sevenDaysActiveUsersCount": { + "description": "The count of unique active users in the past seven days", + "format": "int64", "type": "string" - } - }, - "type": "object" - }, - "UnmappedIdentity": { - "id": "UnmappedIdentity", - "properties": { - "externalIdentity": { - "$ref": "Principal", - "description": "The resource name for an external user." }, - "resolutionStatusCode": { - "description": "The resolution status for the external identity.", - "enum": [ - "CODE_UNSPECIFIED", - "NOT_FOUND", - "IDENTITY_SOURCE_NOT_FOUND", - "IDENTITY_SOURCE_MISCONFIGURED", - "TOO_MANY_MAPPINGS_FOUND", - "INTERNAL_ERROR" - ], - "enumDescriptions": [ - "Input-only value. Used to list all unmapped identities regardless of status.", - "The unmapped identity was not found in IDaaS, and needs to be provided by the user.", - "The identity source associated with the identity was either not found or deleted.", - "IDaaS does not understand the identity source, probably because the schema was modified in a non compatible way.", - "The number of users associated with the external identity is too large.", - "Internal error." - ], + "thirtyDaysActiveUsersCount": { + "description": "The count of unique active users in the past thirty days", + "format": "int64", "type": "string" } }, "type": "object" }, - "UnreserveItemsRequest": { - "id": "UnreserveItemsRequest", + "SearchItemsByViewUrlRequest": { + "id": "SearchItemsByViewUrlRequest", "properties": { - "connectorName": { - "description": "The name of connector making this call. Format: datasources/{source_id}/connectors/{ID}", - "type": "string" - }, "debugOptions": { "$ref": "DebugOptions", "description": "Common debug options." }, - "queue": { - "description": "The name of a queue to unreserve items from.", + "pageToken": { + "description": "The next_page_token value returned from a previous request, if any.", + "type": "string" + }, + "viewUrl": { + "description": "Specify the full view URL to find the corresponding item. The maximum length is 2048 characters.", "type": "string" } }, "type": "object" }, - "UpdateBccRecipients": { - "id": "UpdateBccRecipients", + "SearchItemsByViewUrlResponse": { + "id": "SearchItemsByViewUrlResponse", "properties": { - "bccRecipients": { + "items": { "items": { - "$ref": "Recipient" + "$ref": "Item" }, "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" }, - "UpdateBody": { - "id": "UpdateBody", + "SearchQualityMetadata": { + "description": "Additional search quality metadata of the item.", + "id": "SearchQualityMetadata", "properties": { - "insertContents": { - "description": "A repeated field that contains a series of content to insert into the draft that the user is currently editing. The content can contain HTML content or plain text content.", - "items": { - "$ref": "InsertContent" - }, - "type": "array" - }, - "type": { - "enum": [ - "UNSPECIFIED_ACTION_TYPE", - "IN_PLACE_INSERT", - "INSERT_AT_START", - "INSERT_AT_END", - "REPLACE" - ], - "enumDescriptions": [ - "Default value when nothing is set for Type.", - "Indicates this action is to perform an in-place insertion. By default the content is inserted at the current cursor position, if there is selected content, it replaces the selected content.", - "Indicates this action is to perform insert at the start of the message body.", - "Indicates this action is to perform insert at the end of the message body.", - "Indicates this action is to replace the message body." - ], - "type": "string" + "quality": { + "description": "An indication of the quality of the item, used to influence search quality. Value should be between 0.0 (lowest quality) and 1.0 (highest quality). The default value is 0.0.", + "format": "double", + "type": "number" } }, "type": "object" }, - "UpdateCcRecipients": { - "id": "UpdateCcRecipients", + "SearchRequest": { + "description": "The search API request.", + "id": "SearchRequest", "properties": { - "ccRecipients": { + "contextAttributes": { + "description": "Context attributes for the request which will be used to adjust ranking of search results. The maximum number of elements is 10.", "items": { - "$ref": "Recipient" + "$ref": "ContextAttribute" }, "type": "array" - } - }, - "type": "object" - }, - "UpdateDataSourceRequest": { - "id": "UpdateDataSourceRequest", - "properties": { - "debugOptions": { - "$ref": "DebugOptions", - "description": "Common debug options." }, - "source": { - "$ref": "DataSource" + "dataSourceRestrictions": { + "description": "The sources to use for querying. If not specified, all data sources from the current search application are used.", + "items": { + "$ref": "DataSourceRestriction" + }, + "type": "array" }, - "updateMask": { - "description": "Only applies to [`settings.datasources.patch`](https://developers.google.com/cloud-search/docs/reference/rest/v1/settings.datasources/patch). Update mask to control which fields to update. Example field paths: `name`, `displayName`. * If `update_mask` is non-empty, then only the fields specified in the `update_mask` are updated. * If you specify a field in the `update_mask`, but don't specify its value in the source, that field is cleared. * If the `update_mask` is not present or empty or has the value `*`, then all fields are updated.", - "format": "google-fieldmask", - "type": "string" - } - }, - "type": "object" - }, - "UpdateDraftActionMarkup": { - "id": "UpdateDraftActionMarkup", - "properties": { - "updateBccRecipients": { - "$ref": "UpdateBccRecipients", - "description": "If set, replaces the existing Bcc recipients of the draft the user is currently editing." + "facetOptions": { + "items": { + "$ref": "FacetOptions" + }, + "type": "array" + }, + "pageSize": { + "description": "Maximum number of search results to return in one page. Valid values are between 1 and 100, inclusive. Default value is 10. Minimum value is 50 when results beyond 2000 are requested.", + "format": "int32", + "type": "integer" + }, + "query": { + "description": "The raw query string. See supported search operators in the [Narrow your search with operators](https://support.google.com/cloudsearch/answer/6172299)", + "type": "string" }, - "updateBody": { - "$ref": "UpdateBody", - "description": "A field that contains a series of update actions to perform on the draft body that the user is currently editing." + "queryInterpretationOptions": { + "$ref": "QueryInterpretationOptions", + "description": "Options to interpret the user query." }, - "updateCcRecipients": { - "$ref": "UpdateCcRecipients", - "description": "If set, replaces the existing Cc recipients of the draft the user is currently editing." + "requestOptions": { + "$ref": "RequestOptions", + "description": "Request options, such as the search application and user timezone." }, - "updateSubject": { - "$ref": "UpdateSubject", - "description": "If set, replaces the existing subject of the draft the user is currently editing." + "sortOptions": { + "$ref": "SortOptions", + "description": "The options for sorting the search results" }, - "updateToRecipients": { - "$ref": "UpdateToRecipients", - "description": "If set, replaces the existing To recipients of the draft the user is currently editing." + "start": { + "description": "Starting index of the results.", + "format": "int32", + "type": "integer" } }, "type": "object" }, - "UpdateSchemaRequest": { - "id": "UpdateSchemaRequest", + "SearchResponse": { + "description": "The search API response.", + "id": "SearchResponse", "properties": { - "debugOptions": { - "$ref": "DebugOptions", - "description": "Common debug options." + "debugInfo": { + "$ref": "ResponseDebugInfo", + "description": "Debugging information about the response." }, - "schema": { - "$ref": "Schema", - "description": "The new schema for the source." + "errorInfo": { + "$ref": "ErrorInfo", + "description": "Error information about the response." }, - "validateOnly": { - "description": "If true, the schema will be checked for validity, but will not be registered with the data source, even if valid.", + "facetResults": { + "description": "Repeated facet results.", + "items": { + "$ref": "FacetResult" + }, + "type": "array" + }, + "hasMoreResults": { + "description": "Whether there are more search results matching the query.", "type": "boolean" - } - }, - "type": "object" - }, - "UpdateSubject": { - "id": "UpdateSubject", - "properties": { - "subject": { + }, + "queryInterpretation": { + "$ref": "QueryInterpretation", + "description": "Query interpretation result for user query. Empty if query interpretation is disabled." + }, + "resultCountEstimate": { + "description": "The estimated result count for this query.", + "format": "int64", "type": "string" - } - }, - "type": "object" - }, - "UpdateToRecipients": { - "id": "UpdateToRecipients", - "properties": { - "toRecipients": { + }, + "resultCountExact": { + "description": "The exact result count for this query.", + "format": "int64", + "type": "string" + }, + "resultCounts": { + "$ref": "ResultCounts", + "description": "Expanded result count information." + }, + "results": { + "description": "Results from a search query.", "items": { - "$ref": "Recipient" + "$ref": "SearchResult" + }, + "type": "array" + }, + "spellResults": { + "description": "Suggested spelling for the query.", + "items": { + "$ref": "SpellResult" + }, + "type": "array" + }, + "structuredResults": { + "description": "Structured results for the user query. These results are not counted against the page_size.", + "items": { + "$ref": "StructuredResult" }, "type": "array" } }, "type": "object" }, - "UploadItemRef": { - "description": "Represents an upload session reference. This reference is created via upload method. This reference is valid for 30 days after its creation. Updating of item content may refer to this uploaded content via contentDataRef.", - "id": "UploadItemRef", - "properties": { - "name": { - "description": "The name of the content reference. The maximum length is 2048 characters.", - "type": "string" - } - }, - "type": "object" - }, - "UploadMetadata": { - "description": "Annotation metadata for user Upload artifacts.", - "id": "UploadMetadata", + "SearchResult": { + "description": "Results containing indexed information for a document.", + "id": "SearchResult", "properties": { - "attachmentToken": { - "description": "Opaque token. Clients shall simply pass it back to the Backend. There is no guarantee the attachment_token returned on subsequent reads is the same even if nothing has changed. This field will NOT be saved into storage.", - "type": "string" - }, - "backendUploadMetadata": { - "$ref": "AppsDynamiteSharedBackendUploadMetadata", - "description": "Information about the uploaded attachment that is only used in Backend. This field will NOT be sent out of Google." - }, - "clonedAuthorizedItemId": { - "$ref": "AuthorizedItemId", - "description": "The \"new\" secure identifier for Drive files. Should be used instead of the deprecated string drive_id field above. This should only be set if the upload file has been added to Drive. Note that older Drive files that do not have a ResourceKey should still use this field, with the resource_key field unset." + "clusteredResults": { + "description": "If source is clustered, provide list of clustered results. There will only be one level of clustered results. If current source is not enabled for clustering, this field will be empty.", + "items": { + "$ref": "SearchResult" + }, + "type": "array" }, - "clonedDriveAction": { - "description": "DriveAction for organizing the cloned version of this upload in Drive, if the file has been added to Drive. This field is not set if the file has not been added to Drive. Additionally, this field is only set when part of a FileResult in a ListFilesResponse.", - "enum": [ - "DRIVE_ACTION_UNSPECIFIED", - "ADD_TO_DRIVE", - "ORGANIZE", - "ADD_SHORTCUT", - "ADD_ANOTHER_SHORTCUT" - ], - "enumDescriptions": [ - "No organize action should be shown.", - "Show \"Add to Drive\" button, for adding file that doesn't exist in Drive to Drive. Note that deleted Drive files that still exist (i.e. in your Trash) will still be ORGANIZE (this is consistent with Gmail Drive attachments).", - "Show \"Move\" button, for organizing a Drive file the user has permission to move.", - "Show \"Add shortcut\" button, for adding a shortcut to a Drive file the user does not have permission to move.", - "Show \"Add another shortcut\" button, for Drive files the user has already created a shortcut to." - ], - "type": "string" + "debugInfo": { + "$ref": "ResultDebugInfo", + "description": "Debugging information about this search result." }, - "clonedDriveId": { - "description": "Reference to a Drive ID, if this upload file has been previously cloned to Drive. Note: this is deprecated in favor of the AuthorizedItemId below.", - "type": "string" + "metadata": { + "$ref": "Metadata", + "description": "Metadata of the search result." }, - "contentName": { - "description": "The original file name for the content, not the full path.", - "type": "string" + "snippet": { + "$ref": "Snippet", + "description": "The concatenation of all snippets (summaries) available for this result." }, - "contentType": { - "description": "Type is from Scotty's best_guess by default: http://google3/uploader/agent/scotty_agent.proto?l=51\u0026rcl=140889785", + "title": { + "description": "Title of the search result.", "type": "string" }, - "dlpMetricsMetadata": { - "$ref": "AppsDynamiteSharedDlpMetricsMetadata", - "description": "The metrics metadata of the Data Loss Prevention attachment scan." - }, - "internalOnlyComponentSearchInfo": { - "$ref": "AppsDynamiteSharedMessageComponentSearchInfo", - "description": "Message component search metadata for this upload_metadata (currently used for message highlighting and snippeting). For use by Search backend only; clients should get upload_metadata search info from Annotation.component_search_info. This field is necessary because backend Message keeps UploadMetadata in a separate field. Upon converting from backend message to frontend message, this field will be copied to Annotation.component_search_info while the corresponding UploadMetadata is converted into an Annotation." - }, - "latestVirusScanTimestamp": { - "description": "The timestamp of the most recent virus scan completed (in microseconds).", - "format": "int64", + "url": { + "description": "The URL of the search result. The URL contains a Google redirect to the actual item. This URL is signed and shouldn't be changed.", "type": "string" - }, - "localId": { - "description": "A copy of the LocalId in Annotation. This field is supposed to be filled by server only.", + } + }, + "type": "object" + }, + "ShareScope": { + "id": "ShareScope", + "properties": { + "domain": { + "description": "If scope is DOMAIN, this field contains the dasher domain, for example \"google.com\".", "type": "string" }, - "originalDimension": { - "$ref": "AppsDynamiteSharedDimension", - "description": "Original dimension of the content. Only set for image attachments." - }, - "videoReference": { - "$ref": "AppsDynamiteSharedVideoReference", - "description": "Reference to a transcoded video attachment. Only set for video attachments." - }, - "virusScanResult": { - "description": "Result for a virus scan. It's duplicated in the above field apps.dynamite.shared.BackendUploadMetadata", + "scope": { + "description": "The scope to which the content was shared.", "enum": [ - "UNKNOWN_VIRUS_SCAN_RESULT", - "CLEAN", - "INFECTED", - "ERROR", - "POLICY_VIOLATION" + "UNKNOWN", + "PRIVATE", + "LIMITED", + "EXTENDED", + "DASHER_DOMAIN", + "PUBLIC" ], "enumDescriptions": [ "", + "Only the author can view the post.", + "Viewable only by a set of people.", + "Viewable by extended circles.", "", - "", - "", - "The document violates Google's policy for executables and archives." + "" ], "type": "string" } }, "type": "object" }, - "UrlMetadata": { - "description": "Annotation metadata for a Weblink. In case of pasted link it can qualify to be other types in addition to being a URL - like DRIVE_DOC/DRIVE_SHEET and so on. The URL metadata will also be present and it's up to the client to decide which metadata to render it with. These fields are filled in using page render service.", - "id": "UrlMetadata", + "Snippet": { + "description": "Snippet of the search result, which summarizes the content of the resulting page.", + "id": "Snippet", "properties": { - "domain": { - "description": "Domain for this url. If it's an IP address the address is returned.", - "type": "string" - }, - "gwsUrl": { - "$ref": "SafeUrlProto", - "description": "The signed GWS URL." - }, - "gwsUrlExpirationTimestamp": { - "description": "The expiration timestamp for GWS URL, only set when gws_url is set.", - "format": "int64", - "type": "string" - }, - "imageHeight": { - "description": "Dimensions of the image: height. This field is string to match with page render service response. Deprecated. Use int_image_height instead.", - "type": "string" - }, - "imageUrl": { - "description": "Representative image of the website.", - "type": "string" - }, - "imageWidth": { - "description": "Dimensions of the image: width. This field is string to match with page render service response. Deprecated. Use int_image_height instead.", - "type": "string" - }, - "intImageHeight": { - "description": "Dimensions of the image: height.", - "format": "int32", - "type": "integer" - }, - "intImageWidth": { - "description": "Dimensions of the image: width.", - "format": "int32", - "type": "integer" - }, - "mimeType": { - "description": "Mime type of the content (Currently mapped from Page Render Service ItemType) Note that this is not necessarily the mime type of the http resource. For example a text/html from youtube or vimeo may actually be classified as a video type. Then we shall mark it as video/* since we don't know exactly what type of video it is.", - "type": "string" - }, - "redirectUrl": { - "$ref": "SafeUrlProto", - "description": "The stable redirect URL pointing to frontend server." - }, - "shouldNotRender": { - "description": "If the UrlMetadata is missing data for rendering a chip. Deprecated. Use Annotation.ChipRenderType instead.", - "type": "boolean" + "matchRanges": { + "description": "The matched ranges in the snippet.", + "items": { + "$ref": "MatchRange" + }, + "type": "array" }, "snippet": { - "description": "Snippet/small description of the weblink.", + "description": "The snippet of the document. The snippet of the document. May contain escaped HTML character that should be unescaped prior to rendering.", "type": "string" - }, - "title": { - "description": "Title of the Weblink.", + } + }, + "type": "object" + }, + "SortOptions": { + "id": "SortOptions", + "properties": { + "operatorName": { + "description": "The name of the operator corresponding to the field to sort on. The corresponding property must be marked as sortable.", "type": "string" }, - "url": { - "$ref": "SafeUrlProto", - "description": "The original URL." - }, - "urlSource": { + "sortOrder": { + "description": "Ascending is the default sort order", "enum": [ - "URL_SOURCE_UNKNOWN", - "SERVER_SUPPLIED_POLICY_VIOLATION", - "AUTO_DETECTED_PLAIN_TEXT", - "RICH_TEXT" + "ASCENDING", + "DESCENDING" ], "enumDescriptions": [ "", - "", - "Set by the server, when it detects a URL in the message text", - "Set by the client, when the user adds a link as a custom hyperlink. Validated by the server and persisted in storage." + "" ], "type": "string" } }, "type": "object" }, - "User": { - "description": "User profile information. This user is not necessarily member of a space.", - "id": "User", + "Source": { + "description": "Defines sources for the suggest/search APIs.", + "id": "Source", "properties": { - "avatarUrl": { - "description": "URL for the avatar picture of the User in dynamite", - "type": "string" - }, - "blockRelationship": { - "$ref": "AppsDynamiteSharedUserBlockRelationship", - "description": "Information about whether the user is blocked by requester and/or has blocked requester." - }, - "botInfo": { - "$ref": "BotInfo", - "description": "Bot-specific profile information. Leave it empty for human users." - }, - "deleted": { - "description": "Deleted flag, if true, means User has been soft-deleted/purged Deprecated. Use user_account_state field instead.", - "type": "boolean" - }, - "email": { - "description": "Email ID of the user", - "type": "string" - }, - "firstName": { - "description": "First or given name of the user", - "type": "string" - }, - "gender": { - "description": "Gender of the user", - "type": "string" - }, - "id": { - "$ref": "UserId", - "description": "UserId" - }, - "isAnonymous": { - "description": "Set to true if none of the depending services (Gaia, PeopleApi) returns any info for this user.", - "type": "boolean" - }, - "lastName": { - "description": "Last or family name of the user", - "type": "string" - }, "name": { - "description": "Non-unique, user-defined display name of the User", + "description": "Source name for content indexed by the Indexing API.", "type": "string" }, - "organizationInfo": { - "$ref": "AppsDynamiteSharedOrganizationInfo", - "description": "Information about whether the user is a consumer user, or the GSuite customer that they belong to." - }, - "phoneNumber": { - "description": "Phone number(s) of the user", - "items": { - "$ref": "AppsDynamiteSharedPhoneNumber" - }, - "type": "array" - }, - "userAccountState": { - "description": "State of user's Gaia Account", + "predefinedSource": { + "description": "Predefined content source for Google Apps.", "enum": [ - "UNKNOWN_USER_ACCOUNT_STATE", - "ENABLED", - "DISABLED", - "DELETED", - "TEMPORARY_UNAVAILABLE" + "NONE", + "QUERY_HISTORY", + "PERSON", + "GOOGLE_DRIVE", + "GOOGLE_GMAIL", + "GOOGLE_SITES", + "GOOGLE_GROUPS", + "GOOGLE_CALENDAR", + "GOOGLE_KEEP" ], "enumDescriptions": [ "", - "User has Dynamite enabled.", - "User doesn't have Dynamite enabled. This includes service disabled by admin, or user's account is suspended", - "User account is deleted", - "Failed to retrieve user's info. Will use user's email address as name and first_name." - ], - "type": "string" - }, - "userProfileVisibility": { - "description": "Visibility of user's Profile", - "enum": [ - "UNKNOWN_USER_PROFILE_VISIBILITY", - "FULL_PROFILE", - "PRIMARY_MAIL", - "INVITEE_EMAIL", - "DELETED_USER", - "UNKNOWN_USER", - "FAILURE" - ], - "enumDescriptions": [ + "Suggests queries issued by the user in the past. Only valid when used with the suggest API. Ignored when used in the query API.", + "Suggests people in the organization. Only valid when used with the suggest API. Results in an error when used in the query API.", + "", "", - "Caller has full visibility.", - "Caller can only see target user's primary email from Gaia", - "Caller can only see the email used to invite the target user", - "Caller can only see the target user as a deleted user. Email is empty. Names are redacted as \"Deleted User\".", - "Caller has no visibility to the target user at all. Email is empty. Names are redacted as \"Unknown User\".", - "Stubby failed. Clients should always retry ASAP" + "", + "", + "", + "" ], "type": "string" } }, "type": "object" }, - "UserActivity": { - "description": "User's single or bulk query activity. This can be a logging query or deletion query.", - "id": "UserActivity", + "SourceConfig": { + "description": "Configurations for a source while processing a Search or Suggest request.", + "id": "SourceConfig", "properties": { - "queryActivity": { - "$ref": "QueryActivity", - "description": "Contains data which needs to be logged/removed." + "crowdingConfig": { + "$ref": "SourceCrowdingConfig", + "description": "The crowding configuration for the source." + }, + "scoringConfig": { + "$ref": "SourceScoringConfig", + "description": "The scoring configuration for the source." + }, + "source": { + "$ref": "Source", + "description": "The source for which this configuration is to be used." } }, "type": "object" }, - "UserDisplayInfo": { - "description": "Resource for displaying user info", - "id": "UserDisplayInfo", + "SourceCrowdingConfig": { + "description": "Set search results crowding limits. Crowding is a situation in which multiple results from the same source or host \"crowd out\" other results, diminishing the quality of search for users. To foster better search quality and source diversity in search results, you can set a condition to reduce repetitive results by source.", + "id": "SourceCrowdingConfig", "properties": { - "avatarUrl": { - "description": "The avatar to show for this user", - "type": "string" + "numResults": { + "description": "Maximum number of results allowed from a datasource in a result page as long as results from other sources are not exhausted. Value specified must not be negative. A default value is used if this value is equal to 0. To disable crowding, set the value greater than 100.", + "format": "int32", + "type": "integer" }, - "displayName": { - "description": "The name to show for this user", - "type": "string" + "numSuggestions": { + "description": "Maximum number of suggestions allowed from a source. No limits will be set on results if this value is less than or equal to 0.", + "format": "int32", + "type": "integer" } }, "type": "object" }, - "UserId": { - "description": "Primary key for User resource.", - "id": "UserId", + "SourceResultCount": { + "description": "Per source result count information.", + "id": "SourceResultCount", "properties": { - "actingUserId": { - "description": "Optional. Opaque, server-assigned ID of the user profile associated with App/user acting on behalf of the human user. This is currently only set when a 3P application is acting on the user's behalf.", - "type": "string" + "hasMoreResults": { + "description": "Whether there are more search results for this source.", + "type": "boolean" }, - "id": { - "description": "Opaque, server-assigned ID of the User.", + "resultCountEstimate": { + "description": "The estimated result count for this source.", + "format": "int64", "type": "string" }, - "originAppId": { - "$ref": "AppId", - "description": "Optional. Identifier of the App involved (directly or on behalf of a human creator) in creating this message. This is not set if the user posted a message directly, but is used in the case of, for example, a message being generated by a 1P integration based on a user action (creating an event, creating a task etc). This should only be used on the BE. For clients, please use the field in the FE message proto instead (google3/apps/dynamite/v1/frontend/api/message.proto?q=origin_app_id)." + "resultCountExact": { + "description": "The exact result count for this source.", + "format": "int64", + "type": "string" }, - "type": { - "description": "Clients do not need to send UserType to Backend, but Backend will always send this field to clients per the following rule: 1. For HUMAN Ids, the field is empty but by default .getType() will return HUMAN. 2. For BOT Ids, the field is ALWAYS set to BOT.", + "source": { + "$ref": "Source", + "description": "The source the result count information is associated with." + } + }, + "type": "object" + }, + "SourceScoringConfig": { + "description": "Set the scoring configuration. This allows modifying the ranking of results for a source.", + "id": "SourceScoringConfig", + "properties": { + "sourceImportance": { + "description": "Importance of the source.", "enum": [ - "HUMAN", - "BOT" + "DEFAULT", + "LOW", + "HIGH" ], "enumDescriptions": [ - "Notes on HUMAN type: 1) Leaving UserId.UserType field empty will return HUMAN as default value. This is expected because all the existing UserIds are without explicitly setting UserType, most of which are HUMAN Ids. For Bot Ids we will always set BOT in UserType field. 2) DO NOT explicitly set HUMAN as type. This is a proto2 issue, that a UserId with explicitly set default value HUMAN as type is NOT equal to an id without setting the field. aka. UserId id1 = UserId.newBuilder() .setId(\"dummy\").setType(UserType.HUMAN).build(); UserId id2 = UserId.newBuilder().setId(\"dummy\").build(); AssertThat(id1).isNotEqual(id2); AssertThat(id2.getType()).isEqualTo(UserType.HUMAN);", + "", + "", "" ], "type": "string" @@ -18489,501 +7680,456 @@ }, "type": "object" }, - "UserInfo": { - "description": "Contains info regarding the updater of an Activity Feed item. Next Id: 8", - "id": "UserInfo", + "SpellResult": { + "id": "SpellResult", "properties": { - "driveNotificationAvatarUrl": { - "description": "Avatar url of the user who triggered the Drive Notification email. This field will be populated if we can extract such information from the Drive Notification email. This should only be used to fetch user avatars when updater_to_show_email is not populated. This field is not set for non-Drive Notification items.", + "suggestedQuery": { + "description": "The suggested spelling of the query.", "type": "string" }, - "updaterCountDisplayType": { - "description": "Describes how updater_count_to_show should be used.", + "suggestedQueryHtml": { + "$ref": "SafeHtmlProto", + "description": "The sanitized HTML representing the spell corrected query that can be used in the UI. This usually has language-specific tags to mark up parts of the query that are spell checked." + }, + "suggestionType": { + "description": "Suggestion triggered for the current query.", "enum": [ - "UPDATER_COUNT_DISPLAY_TYPE_UNSPECIFIED", - "NO_DISPLAY_COUNT", - "EXACT_COUNT", - "NONZERO_COUNT" + "SUGGESTION_TYPE_UNSPECIFIED", + "NON_EMPTY_RESULTS_SPELL_SUGGESTION", + "ZERO_RESULTS_FULL_PAGE_REPLACEMENT" ], "enumDescriptions": [ - "", - "No additional updaters where involved. Shows up in clients as \"$USERNAME replied\".", - "A precise updater count is known and the value set in updater_count_to_show should be used. If set, updater_count_to_show is set to the total number of updaters minus the one set in updater_to_show. Shows up in clients as \"$USERNAME and $NUM others replied\".", - "A precise updater count could not be calculated, but there is at least one. Any value set in updater_count_to_show should NOT be used. Shows up in clients as \"$USERNAME and others replied\"." + "Default spell check type", + "Spell suggestion without any results changed. The results are still shown for the original query (which has non zero / results) with a suggestion for spelling that would have results.", + "Spell suggestion triggered when original query has no results. When the original query has no results, and spell suggestion has results we trigger results for the spell corrected query." ], "type": "string" - }, - "updaterCountToShow": { - "description": "The number of updaters for clients to show depending on UpdaterCountDisplayType.", - "format": "int32", - "type": "integer" - }, - "updaterToShowEmail": { - "description": "The email of the updater for clients to show used for Gmail items. For Drive Notifications, this is the email of the user who triggered the Drive Notification email. This field will be populated if we can extract such information from the Drive Notification email. This is not the actual sender of the email, as the sender is always comments-noreply@docs.google.com.", - "type": "string" - }, - "updaterToShowGaiaId": { - "description": "The gaia id of the updater for clients to show used for Gmail items. If the updater is an external user, the email field below should be populated.", - "format": "int64", - "type": "string" - }, - "updaterToShowName": { - "description": "The display name of the updater for clients to show used for Gmail items. For non-Drive Notification items, this field will always be populated. If the display name cannot be found for the user, the fallback string will be the email address. For Drive Notification items, this is the name of the user who triggered the Drive notification email. This field will be populated if we can extract such information from the Drive Notification email. If the name cannot be extracted, then the email will be the fallback string, which is used as the display name text in the UI when needed. This is not the actual sender of the email, as the sender is always comments-noreply@docs.google.com.", - "type": "string" - }, - "updaterToShowUserId": { - "$ref": "UserId", - "description": "The updater for clients to show used for Dynamite Chat items." } }, "type": "object" }, - "UserMentionData": { - "description": "Person metadata, for USER_MENTION segments. Should always contain at least one of user_gaia_id, user_id, email or user. The exact set of populated fields may differ depending on the context and the level in the serving stack; for example, emails will be elided on the viewing path. But as a general rule, a proto having any one of the four is valid, subject to the standard constraints of the applied annotations -- that is, communication between servers and clients will ignore jspb.ignore fields, and communication between servers and other servers (or between servers and storage) will ignore client_only fields. For more on the annotations, see the comments in social/common/segment_annotations.proto", - "id": "UserMentionData", + "StartUploadItemRequest": { + "description": "Start upload file request.", + "id": "StartUploadItemRequest", "properties": { - "email": { - "type": "string" - }, - "user": { - "$ref": "PrincipalProto", - "description": "If the principal is backed by a gaia id, DO NOT use this field. Use user_gaia_id/user_id fields instead." - }, - "userGaiaId": { - "description": "An unobfuscated gaia ID:", - "format": "int64", + "connectorName": { + "description": "The name of connector making this call. Format: datasources/{source_id}/connectors/{ID}", "type": "string" }, - "userId": { - "description": "An obfuscated gaia ID:", - "type": "string" + "debugOptions": { + "$ref": "DebugOptions", + "description": "Common debug options." } }, "type": "object" }, - "UserMentionMetadata": { - "description": "Annotation metadata for user mentions (+/@/-).", - "id": "UserMentionMetadata", + "Status": { + "description": "The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors).", + "id": "Status", "properties": { - "displayName": { - "description": "Display name of the mentioned user. This field should remain empty when clients resolve a UserMention annotation. It will be filled in when a UserMention is generated by the Integration Server.", - "type": "string" - }, - "gender": { - "description": "Gender of the mentioned user. One of \"female\", \"male\" or \"other\". Used for choosing accurate translations for strings that contain the UserMention, when these need to be constructed (e.g. task assignment update message). This field should remain empty when clients resolve a UserMention. It will be filled in when a UserMention is generated by the Integration Server.", - "type": "string" - }, - "id": { - "$ref": "UserId", - "description": "To be deprecated. Use invitee_info field instead. ID of the User mentioned. This field should remain empty when type == MENTION_ALL." - }, - "inviteeInfo": { - "$ref": "InviteeInfo", - "description": "Invitee UserId and email used when mentioned. This field should remain empty when type == MENTION_ALL. Invitee_info.email is only used when a user is @-mentioned with an email address, and it will be empty when clients get messages from Backend." + "code": { + "description": "The status code, which should be an enum value of google.rpc.Code.", + "format": "int32", + "type": "integer" }, - "type": { - "enum": [ - "TYPE_UNSPECIFIED", - "INVITE", - "UNINVITE", - "MENTION", - "MENTION_ALL", - "FAILED_TO_ADD" - ], - "enumDescriptions": [ - "Default value for the enum. DO NOT USE.", - "An @mention that invites a new member into the space", - "DEPRECATED: An @mention that removes a member from a space. Support for this has been removed.", - "An @mention of an existing member in the space.", - "An @mention of all members in the space.", - "Server-generated user mention, for clients to strikethrough." - ], - "type": "string" + "details": { + "description": "A list of messages that carry the error details. There is a common set of message types for APIs to use.", + "items": { + "additionalProperties": { + "description": "Properties of the object. Contains field @type with type URL.", + "type": "any" + }, + "type": "object" + }, + "type": "array" }, - "userMentionError": { - "description": "Specific reason for the user mention failing, for fine-grained processing by clients (i.e. specific error message for space limit exceeded case) IMPORTANT: Set this only for FAILED_TO_ADD case.", - "enum": [ - "USER_MENTION_ERROR_UNSPECIFIED", - "MEMBERSHIP_LIMIT_EXCEEDED" - ], - "enumDescriptions": [ - "", - "Failure caused by adding user to a room that is full" - ], + "message": { + "description": "A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.", "type": "string" } }, "type": "object" }, - "VPCSettings": { - "id": "VPCSettings", + "StructuredDataObject": { + "description": "A structured data object consisting of named properties.", + "id": "StructuredDataObject", "properties": { - "project": { - "description": "The resource name of the GCP Project to be used for VPC SC policy check. VPC security settings on this project will be honored for Cloud Search APIs after project_name has been updated through CustomerService. Format: projects/{project_id}", - "type": "string" + "properties": { + "description": "The properties for the object. The maximum number of elements is 1000.", + "items": { + "$ref": "NamedProperty" + }, + "type": "array" } }, "type": "object" }, - "Value": { - "description": "Definition of a single value with generic type.", - "id": "Value", + "StructuredResult": { + "description": "Structured results that are returned as part of search request.", + "id": "StructuredResult", "properties": { - "booleanValue": { - "type": "boolean" - }, - "dateValue": { - "$ref": "Date" - }, - "doubleValue": { - "format": "double", - "type": "number" - }, - "integerValue": { - "format": "int64", - "type": "string" + "person": { + "$ref": "Person", + "description": "Representation of a person" + } + }, + "type": "object" + }, + "SuggestRequest": { + "description": "Request of suggest API.", + "id": "SuggestRequest", + "properties": { + "dataSourceRestrictions": { + "description": "The sources to use for suggestions. If not specified, the data sources are taken from the current search application. NOTE: Suggestions are only supported for the following sources: * Third-party data sources * PredefinedSource.PERSON * PredefinedSource.GOOGLE_DRIVE", + "items": { + "$ref": "DataSourceRestriction" + }, + "type": "array" }, - "stringValue": { + "query": { + "description": "Partial query for which autocomplete suggestions will be shown. For example, if the query is \"sea\", then the server might return \"season\", \"search\", \"seagull\" and so on.", "type": "string" }, - "timestampValue": { - "format": "google-datetime", - "type": "string" + "requestOptions": { + "$ref": "RequestOptions", + "description": "Request options, such as the search application and user timezone." } }, "type": "object" }, - "ValueFilter": { - "id": "ValueFilter", + "SuggestResponse": { + "description": "Response of the suggest API.", + "id": "SuggestResponse", "properties": { - "operatorName": { - "description": "The `operator_name` applied to the query, such as *price_greater_than*. The filter can work against both types of filters defined in the schema for your data source: 1. `operator_name`, where the query filters results by the property that matches the value. 2. `greater_than_operator_name` or `less_than_operator_name` in your schema. The query filters the results for the property values that are greater than or less than the supplied value in the query.", + "suggestResults": { + "description": "List of suggestions.", + "items": { + "$ref": "SuggestResult" + }, + "type": "array" + } + }, + "type": "object" + }, + "SuggestResult": { + "description": "One suggestion result.", + "id": "SuggestResult", + "properties": { + "peopleSuggestion": { + "$ref": "PeopleSuggestion", + "description": "This is present when the suggestion indicates a person. It contains more information about the person - like their email ID, name etc." + }, + "querySuggestion": { + "$ref": "QuerySuggestion", + "description": "This field will be present if the suggested query is a word/phrase completion." + }, + "source": { + "$ref": "Source", + "description": "The source of the suggestion." + }, + "suggestedQuery": { + "description": "The suggested query that will be used for search, when the user clicks on the suggestion", "type": "string" - }, - "value": { - "$ref": "Value", - "description": "The value to be compared with." } }, "type": "object" }, - "VideoCallMetadata": { - "id": "VideoCallMetadata", + "TextOperatorOptions": { + "description": "Used to provide a search operator for text properties. This is optional. Search operators let users restrict the query to specific fields relevant to the type of item being searched.", + "id": "TextOperatorOptions", "properties": { - "meetingSpace": { - "$ref": "MeetingSpace", - "description": "Thor meeting space." - }, - "shouldNotRender": { - "description": "If this field is set to true, server should still contact external backends to get metadata for search but clients should not render this chip.", + "exactMatchWithOperator": { + "description": "If true, the text value is tokenized as one atomic value in operator searches and facet matches. For example, if the operator name is \"genre\" and the value is \"science-fiction\" the query restrictions \"genre:science\" and \"genre:fiction\" doesn't match the item; \"genre:science-fiction\" does. Text value matching is case-sensitive and does not remove special characters. If false, the text is tokenized. For example, if the value is \"science-fiction\" the queries \"genre:science\" and \"genre:fiction\" matches the item.", "type": "boolean" }, - "wasCreatedInCurrentGroup": { - "description": "Whether this meeting space was created via Dynamite in this Dynamite group.", - "type": "boolean" + "operatorName": { + "description": "Indicates the operator name required in the query in order to isolate the text property. For example, if operatorName is *subject* and the property's name is *subjectLine*, then queries like *subject:\u003cvalue\u003e* show results only where the value of the property named *subjectLine* matches *\u003cvalue\u003e*. By contrast, a search that uses the same *\u003cvalue\u003e* without an operator returns all items where *\u003cvalue\u003e* matches the value of any text properties or text within the content field for the item. The operator name can only contain lowercase letters (a-z). The maximum length is 32 characters.", + "type": "string" } }, "type": "object" }, - "VideoInfo": { - "description": "Next tag: 2", - "id": "VideoInfo", + "TextPropertyOptions": { + "description": "The options for text properties.", + "id": "TextPropertyOptions", "properties": { - "duration": { - "description": "Duration of the video in milliseconds. This field can be absent for recently uploaded video or inaccurate sometimes.", - "format": "int32", - "type": "integer" + "operatorOptions": { + "$ref": "TextOperatorOptions", + "description": "If set, describes how the property should be used as a search operator." + }, + "retrievalImportance": { + "$ref": "RetrievalImportance", + "description": "Indicates the search quality importance of the tokens within the field when used for retrieval." } }, "type": "object" }, - "VoicePhoneNumber": { - "description": "Represents both long and short phone number that can be called or texted. Short telephone numbers are used to reach local services. Short numbers and their purpose differ from country to country. These numbers in US are in the form of N11 which is a three-digit abbreviated dialing telephone number.", - "id": "VoicePhoneNumber", + "TextValues": { + "description": "List of text values.", + "id": "TextValues", "properties": { - "e164": { - "description": "E.164 formatted full phone number with leading +. This field also represents encoded form of short telephone numbers in E.164 format. e.g. \"911\" is encoded as \"+1911\".", - "type": "string" - }, - "i18nData": { - "$ref": "VoicePhoneNumberI18nData", - "description": "Additional data that could be added using the libphonenumber API." + "values": { + "description": "The maximum allowable length for text values is 2048 characters.", + "items": { + "type": "string" + }, + "type": "array" } }, "type": "object" }, - "VoicePhoneNumberI18nData": { - "id": "VoicePhoneNumberI18nData", + "ThirdPartyGenericCard": { + "id": "ThirdPartyGenericCard", "properties": { - "countryCode": { - "description": "The country calling code for this number, as defined by the ITU. For example, this would be 1 for NANPA countries, and 33 for France (for more info see i18n.phonenumbers.PhoneNumber.country_code).", - "format": "int32", - "type": "integer" + "cardId": { + "description": "Unique identifier for the card.", + "type": "string" }, - "internationalNumber": { - "description": "Display number formatted using the INTERNATIONAL format.", + "category": { + "description": "Category that the card belongs to.", "type": "string" }, - "isValid": { - "description": "When present, indicates the number is valid according to the libphonenumber's isValidNumber API (see https://code.google.com/p/libphonenumber/).", - "type": "boolean" + "content": { + "$ref": "Content", + "description": "[Required] Card content." }, - "nationalNumber": { - "description": "Display number formatted using the NATIONAL format.", - "type": "string" + "context": { + "$ref": "Context", + "description": "[Required] Context where the card should be triggered." }, - "regionCode": { - "description": "A region (country, territory, continent, etc), as defined by Unicode's \"CLDR\", itself based on ISO 3166 (UN country codes). For details, see https://www.corp.google.com/~engdocs/java/com/google/i18n/identifiers/RegionCode.html", - "type": "string" + "isDismissible": { + "description": "Whether the card can be dismissed.", + "type": "boolean" }, - "validationResult": { - "description": "When set to a non-default value, indicates the validation reason that is set when phone number is invalid (is_valid is false).", - "enum": [ - "UNKNOWN", - "IS_POSSIBLE", - "INVALID_COUNTRY_CODE", - "TOO_SHORT", - "TOO_LONG", - "IS_POSSIBLE_LOCAL_ONLY", - "INVALID_LENGTH" - ], - "enumDescriptions": [ - "", - "", - "", - "", - "", - "", - "" - ], - "type": "string" + "priority": { + "description": "Priority of the card, where 0 is the highest priority.", + "format": "int32", + "type": "integer" } }, "type": "object" }, - "WhiteboardInfo": { - "description": "Information on a whiteboard attached to an active conference. A whiteboard is a Jam document.", - "id": "WhiteboardInfo", + "TimestampOperatorOptions": { + "description": "Used to provide a search operator for timestamp properties. This is optional. Search operators let users restrict the query to specific fields relevant to the type of item being searched.", + "id": "TimestampOperatorOptions", "properties": { - "id": { - "description": "The Cosmo Id of the whiteboard document (Jam).", + "greaterThanOperatorName": { + "description": "Indicates the operator name required in the query in order to isolate the timestamp property using the greater-than operator. For example, if greaterThanOperatorName is *closedafter* and the property's name is *closeDate*, then queries like *closedafter:\u003cvalue\u003e* show results only where the value of the property named *closeDate* is later than *\u003cvalue\u003e*. The operator name can only contain lowercase letters (a-z). The maximum length is 32 characters.", "type": "string" }, - "title": { - "description": "Title of the whiteboard document.", + "lessThanOperatorName": { + "description": "Indicates the operator name required in the query in order to isolate the timestamp property using the less-than operator. For example, if lessThanOperatorName is *closedbefore* and the property's name is *closeDate*, then queries like *closedbefore:\u003cvalue\u003e* show results only where the value of the property named *closeDate* is earlier than *\u003cvalue\u003e*. The operator name can only contain lowercase letters (a-z). The maximum length is 32 characters.", "type": "string" }, - "uri": { - "description": "The uri for whiteboard document.", + "operatorName": { + "description": "Indicates the operator name required in the query in order to isolate the timestamp property. For example, if operatorName is *closedon* and the property's name is *closeDate*, then queries like *closedon:\u003cvalue\u003e* show results only where the value of the property named *closeDate* matches *\u003cvalue\u003e*. By contrast, a search that uses the same *\u003cvalue\u003e* without an operator returns all items where *\u003cvalue\u003e* matches the value of any String properties or text within the content field for the item. The operator name can only contain lowercase letters (a-z). The maximum length is 32 characters.", "type": "string" } }, "type": "object" }, - "WidgetMarkup": { - "id": "WidgetMarkup", + "TimestampPropertyOptions": { + "description": "The options for timestamp properties.", + "id": "TimestampPropertyOptions", + "properties": { + "operatorOptions": { + "$ref": "TimestampOperatorOptions", + "description": "If set, describes how the timestamp should be used as a search operator." + } + }, + "type": "object" + }, + "TimestampValues": { + "description": "List of timestamp values.", + "id": "TimestampValues", "properties": { - "buttons": { - "description": "buttons is also oneof data and only one of these fields should be set.", + "values": { "items": { - "$ref": "Button" + "format": "google-datetime", + "type": "string" }, "type": "array" + } + }, + "type": "object" + }, + "TypeInfo": { + "description": "Next tag: 2", + "id": "TypeInfo", + "properties": { + "videoInfo": { + "$ref": "VideoInfo", + "description": "Contains additional video information only if document_type is VIDEO." + } + }, + "type": "object" + }, + "UnmappedIdentity": { + "id": "UnmappedIdentity", + "properties": { + "externalIdentity": { + "$ref": "Principal", + "description": "The resource name for an external user." }, - "dateTimePicker": { - "$ref": "DateTimePicker" - }, - "divider": { - "$ref": "Divider" - }, - "grid": { - "$ref": "Grid" - }, - "horizontalAlignment": { - "description": "The horizontal alignment of this widget.", + "resolutionStatusCode": { + "description": "The resolution status for the external identity.", "enum": [ - "HORIZONTAL_ALIGNMENT_UNSPECIFIED", - "START", - "CENTER", - "END" + "CODE_UNSPECIFIED", + "NOT_FOUND", + "IDENTITY_SOURCE_NOT_FOUND", + "IDENTITY_SOURCE_MISCONFIGURED", + "TOO_MANY_MAPPINGS_FOUND", + "INTERNAL_ERROR" ], "enumDescriptions": [ - "", - "", - "", - "" + "Input-only value. Used to list all unmapped identities regardless of status.", + "The unmapped identity was not found in IDaaS, and needs to be provided by the user.", + "The identity source associated with the identity was either not found or deleted.", + "IDaaS does not understand the identity source, probably because the schema was modified in a non compatible way.", + "The number of users associated with the external identity is too large.", + "Internal error." ], "type": "string" + } + }, + "type": "object" + }, + "UnreserveItemsRequest": { + "id": "UnreserveItemsRequest", + "properties": { + "connectorName": { + "description": "The name of connector making this call. Format: datasources/{source_id}/connectors/{ID}", + "type": "string" }, - "image": { - "$ref": "Image" - }, - "imageKeyValue": { - "$ref": "ImageKeyValue" - }, - "keyValue": { - "$ref": "KeyValue" - }, - "menu": { - "$ref": "Menu", - "description": "Input Widgets" - }, - "selectionControl": { - "$ref": "SelectionControl" - }, - "textField": { - "$ref": "TextField" - }, - "textKeyValue": { - "$ref": "TextKeyValue" + "debugOptions": { + "$ref": "DebugOptions", + "description": "Common debug options." }, - "textParagraph": { - "$ref": "TextParagraph", - "description": "Read-only Widgets" + "queue": { + "description": "The name of a queue to unreserve items from.", + "type": "string" } }, "type": "object" }, - "WonderCardDelete": { - "description": "Message delete history record extension that exports /wonder/message_mapping/{vertical} attribute of deleted messages which have any smartmail label (eg. ^cob_sm_invoice). go/how-dd-card-deletion", - "id": "WonderCardDelete", + "UpdateDataSourceRequest": { + "id": "UpdateDataSourceRequest", "properties": { - "messageMappings": { - "additionalProperties": { - "$ref": "WonderMessageMapping" - }, - "description": "Contains \u003c{@code WonderCardType} enum value, value of /wonder/message_mapping/{vertical} attribute of deleted message\u003e pairs.", - "type": "object" + "debugOptions": { + "$ref": "DebugOptions", + "description": "Common debug options." }, - "msgId": { - "description": "Message ID of the original deleted message", - "format": "uint64", + "source": { + "$ref": "DataSource" + }, + "updateMask": { + "description": "Only applies to [`settings.datasources.patch`](https://developers.google.com/cloud-search/docs/reference/rest/v1/settings.datasources/patch). Update mask to control which fields to update. Example field paths: `name`, `displayName`. * If `update_mask` is non-empty, then only the fields specified in the `update_mask` are updated. * If you specify a field in the `update_mask`, but don't specify its value in the source, that field is cleared. * If the `update_mask` is not present or empty or has the value `*`, then all fields are updated.", + "format": "google-fieldmask", "type": "string" } }, "type": "object" }, - "WonderMessageMapping": { - "description": "Card mapping attached to original message as an attribute stored at /wonder/message_mapping/{vertical} Next ID: 2", - "id": "WonderMessageMapping", + "UpdateSchemaRequest": { + "id": "UpdateSchemaRequest", "properties": { - "wonderCardMessageId": { - "description": "List of wonder card (client-generated) message IDs generated based on the original message.", - "items": { - "type": "string" - }, - "type": "array" + "debugOptions": { + "$ref": "DebugOptions", + "description": "Common debug options." + }, + "schema": { + "$ref": "Schema", + "description": "The new schema for the source." + }, + "validateOnly": { + "description": "If true, the schema will be checked for validity, but will not be registered with the data source, even if valid.", + "type": "boolean" } }, "type": "object" }, - "WrappedResourceKey": { - "description": "A wrapper around a raw resource key. The secret should never be logged, and this proto annotates those secret fields to ensure that they are not. Clients are encouraged to use this proto rather than defining their own, to ensure that secrets are correctly annotated.", - "id": "WrappedResourceKey", + "UploadItemRef": { + "description": "Represents an upload session reference. This reference is created via upload method. This reference is valid for 30 days after its creation. Updating of item content may refer to this uploaded content via contentDataRef.", + "id": "UploadItemRef", "properties": { - "resourceKey": { - "description": "Resource key of the Drive item. This field should be unset if, depending on the context, the item does not have a resource key, or if none was specified. This must never be logged.", + "name": { + "description": "The name of the content reference. The maximum length is 2048 characters.", "type": "string" } }, "type": "object" }, - "YouTubeBroadcastSessionInfo": { - "description": "Information about a YouTube broadcast session.", - "id": "YouTubeBroadcastSessionInfo", + "UserActivity": { + "description": "User's single or bulk query activity. This can be a logging query or deletion query.", + "id": "UserActivity", "properties": { - "broadcastStats": { - "$ref": "YouTubeBroadcastStats", - "description": "Current broadcast session's statistics." - }, - "sessionStateInfo": { - "$ref": "SessionStateInfo", - "description": "YouTube broadcast session's state information." - }, - "youTubeBroadcastSessionId": { - "description": "A unique server-generated ID for the broadcast session.", - "type": "string" - }, - "youTubeLiveBroadcastEvent": { - "$ref": "YouTubeLiveBroadcastEvent", - "description": "The YouTube Live broadcast event that is being streamed to." + "queryActivity": { + "$ref": "QueryActivity", + "description": "Contains data which needs to be logged/removed." } }, "type": "object" }, - "YouTubeBroadcastStats": { - "description": "Statistics of the YouTube broadcast session.", - "id": "YouTubeBroadcastStats", + "VPCSettings": { + "id": "VPCSettings", "properties": { - "estimatedViewerCount": { - "description": "Estimated concurrent viewer count.", - "format": "int64", + "project": { + "description": "The resource name of the GCP Project to be used for VPC SC policy check. VPC security settings on this project will be honored for Cloud Search APIs after project_name has been updated through CustomerService. Format: projects/{project_id}", "type": "string" } }, "type": "object" }, - "YouTubeLiveBroadcastEvent": { - "description": "Information about the broadcast to YouTube.", - "id": "YouTubeLiveBroadcastEvent", + "Value": { + "description": "Definition of a single value with generic type.", + "id": "Value", "properties": { - "brandAccountGaiaId": { - "description": "Input only. If the channel_id is for a YouTube Channel owned by a Brand Account, client is required to populate this field with the obfuscated gaia id of the Brand account when starting the broadcast.", - "type": "string" + "booleanValue": { + "type": "boolean" + }, + "dateValue": { + "$ref": "Date" + }, + "doubleValue": { + "format": "double", + "type": "number" }, - "broadcastId": { - "description": "Input only. The broadcast id, used to control the lifecycle of the event on YouTube", + "integerValue": { + "format": "int64", "type": "string" }, - "channelId": { - "description": "YouTube Channel associated with the broadcast.", + "stringValue": { "type": "string" }, - "viewUrl": { - "description": "Output only. A URL that can be used to watch the meeting broadcast. Will be populated by the backend.", - "readOnly": true, + "timestampValue": { + "format": "google-datetime", "type": "string" } }, "type": "object" }, - "YoutubeMetadata": { - "description": "Annotation metadata for YouTube artifact.", - "id": "YoutubeMetadata", + "ValueFilter": { + "id": "ValueFilter", "properties": { - "id": { - "description": "YouTube resource ID of the artifact.", + "operatorName": { + "description": "The `operator_name` applied to the query, such as *price_greater_than*. The filter can work against both types of filters defined in the schema for your data source: 1. `operator_name`, where the query filters results by the property that matches the value. 2. `greater_than_operator_name` or `less_than_operator_name` in your schema. The query filters the results for the property values that are greater than or less than the supplied value in the query.", "type": "string" }, - "shouldNotRender": { - "description": "If this field is set to true, server should still contact external backends to get metadata for search but clients should not render this chip.", - "type": "boolean" - }, - "startTime": { - "description": "YouTube query parameter for timestamp. YouTube specific flag that allows users to embed time token when sharing a link. This property contains parsed time token in seconds.", - "format": "int32", - "type": "integer" - } - }, - "type": "object" - }, - "YoutubeUserProto": { - "id": "YoutubeUserProto", - "properties": { - "youtubeUserId": { - "format": "int64", - "type": "string" + "value": { + "$ref": "Value", + "description": "The value to be compared with." } }, "type": "object" }, - "ZwiebackSessionProto": { - "description": "See go/zwieback. New uses of Zwieback sessions must be approved via go/zwieback-request.", - "id": "ZwiebackSessionProto", + "VideoInfo": { + "description": "Next tag: 2", + "id": "VideoInfo", "properties": { - "zwiebackSessionId": { - "format": "uint64", - "type": "string" + "duration": { + "description": "Duration of the video in milliseconds. This field can be absent for recently uploaded video or inaccurate sometimes.", + "format": "int32", + "type": "integer" } }, "type": "object" diff --git a/cloudsearch/v1/cloudsearch-gen.go b/cloudsearch/v1/cloudsearch-gen.go index 9c044c4428b..fe107aeaa07 100644 --- a/cloudsearch/v1/cloudsearch-gen.go +++ b/cloudsearch/v1/cloudsearch-gen.go @@ -506,18 +506,30 @@ type V1Service struct { s *Service } -// AbuseReportingConfig: Abuse reporting configuration outlining what is -// supported in this conference. -type AbuseReportingConfig struct { - // RecordingAllowed: Whether the current call may include video - // recordings in its abuse reports. - RecordingAllowed bool `json:"recordingAllowed,omitempty"` - - // WrittenUgcAllowed: Whether the current call may include user - // generated content (chat, polls, Q&A...) in its abuse reports. - WrittenUgcAllowed bool `json:"writtenUgcAllowed,omitempty"` - - // ForceSendFields is a list of field names (e.g. "RecordingAllowed") to +// AclInfo: Next tag: 4 +type AclInfo struct { + // GroupsCount: Number of groups which have at least read access to the + // document. + GroupsCount int64 `json:"groupsCount,omitempty"` + + // Scope: The scope to which the content was shared. + // + // Possible values: + // "LIMITED" - Explicit set of people and groups. + // "DASHER_DOMAIN_WITH_LINK" - Anybody at the same domain with the + // link. + // "DASHER_DOMAIN" - Now it works only for google.com. Anybody at the + // same domain. Now it works only + // "PUBLIC_WITH_LINK" - for google.com. Anybody with the link. + // "PUBLIC" - Anybody. + // "TEAM_DRIVE" - Special tag to indicate TeamDrive scope. + Scope string `json:"scope,omitempty"` + + // UsersCount: Number of users which have at least read access to the + // document. + UsersCount int64 `json:"usersCount,omitempty"` + + // ForceSendFields is a list of field names (e.g. "GroupsCount") 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 @@ -525,34 +537,72 @@ type AbuseReportingConfig struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "RecordingAllowed") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "GroupsCount") 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 *AclInfo) MarshalJSON() ([]byte, error) { + type NoMethod AclInfo + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +type Action struct { + // Title: [Required] Title of the action. + Title string `json:"title,omitempty"` + + // Url: [Optional] Url of the action. + Url string `json:"url,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Title") 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. "Title") 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 *AbuseReportingConfig) MarshalJSON() ([]byte, error) { - type NoMethod AbuseReportingConfig +func (s *Action) MarshalJSON() ([]byte, error) { + type NoMethod Action raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// AckInfo: Information about how devices in a meeting have acked for a -// session/operation. -type AckInfo struct { - // UnackedDeviceCount: Output only. Number of meeting devices that have - // not acked yet. - UnackedDeviceCount int64 `json:"unackedDeviceCount,omitempty"` +// AuditLoggingSettings: Represents the settings for Cloud audit logging +type AuditLoggingSettings struct { + // LogAdminReadActions: Indicates whether audit logging is on/off for + // admin activity read APIs i.e. Get/List DataSources, Get/List + // SearchApplications etc. + LogAdminReadActions bool `json:"logAdminReadActions,omitempty"` + + // LogDataReadActions: Indicates whether audit logging is on/off for + // data access read APIs i.e. ListItems, GetItem etc. + LogDataReadActions bool `json:"logDataReadActions,omitempty"` + + // LogDataWriteActions: Indicates whether audit logging is on/off for + // data access write APIs i.e. IndexItem etc. + LogDataWriteActions bool `json:"logDataWriteActions,omitempty"` - // UnackedDeviceIds: Output only. IDs of meeting devices (at most ten - // are provided) that have not acked yet. - UnackedDeviceIds []string `json:"unackedDeviceIds,omitempty"` + // Project: The resource name of the GCP Project to store audit logs. + // Cloud audit logging will be enabled after project_name has been + // updated through CustomerService. Format: projects/{project_id} + Project string `json:"project,omitempty"` - // ForceSendFields is a list of field names (e.g. "UnackedDeviceCount") + // ForceSendFields is a list of field names (e.g. "LogAdminReadActions") // 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 @@ -560,7 +610,7 @@ type AckInfo struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "UnackedDeviceCount") to + // NullFields is a list of field names (e.g. "LogAdminReadActions") 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 @@ -570,38 +620,32 @@ type AckInfo struct { NullFields []string `json:"-"` } -func (s *AckInfo) MarshalJSON() ([]byte, error) { - type NoMethod AckInfo +func (s *AuditLoggingSettings) MarshalJSON() ([]byte, error) { + type NoMethod AuditLoggingSettings raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// AclFixRequest: The request set by clients to instruct Backend how the -// user intend to fix the ACL. Technically it's not a request to ACL -// Fixer, because Backend uses /DriveService.Share to modify Drive ACLs. -type AclFixRequest struct { - // RecipientEmails: For Spaces messages: This field is ignored. For DMs - // messages: The list of email addresses that should be added to the - // Drive item's ACL. In general, the list should not be empty when the - // boolean "should_fix" field is set; otherwise, the list should be - // empty. During transition - when clients do not specify this field but - // the "should_fix" is true, we follow the legacy behavior: share to all - // users in the DM regardless of emails. This behavior is being phased - // out. - RecipientEmails []string `json:"recipientEmails,omitempty"` - +type BackgroundColoredText struct { + // BackgroundColor: [Optional] Color of the background. The text color + // can change depending on the selected background color, and the client + // does not have control over this. If missing, the background will be + // WHITE. + // // Possible values: - // "UNKNOWN" - // "READER" - // "COMMENTER" - // "WRITER" - Role string `json:"role,omitempty"` + // "UNKNOWN_COLOR" + // "WHITE" + // "YELLOW" + // "ORANGE" + // "GREEN" + // "BLUE" + // "GREY" + BackgroundColor string `json:"backgroundColor,omitempty"` - // ShouldFix: Whether to attempt to fix the ACL by adding the room or DM - // members to the Drive file's ACL. - ShouldFix bool `json:"shouldFix,omitempty"` + // Text: [Required] The text to display. + Text string `json:"text,omitempty"` - // ForceSendFields is a list of field names (e.g. "RecipientEmails") to + // ForceSendFields is a list of field names (e.g. "BackgroundColor") 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 @@ -609,7 +653,7 @@ type AclFixRequest struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "RecipientEmails") to + // NullFields is a list of field names (e.g. "BackgroundColor") 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 @@ -619,42 +663,28 @@ type AclFixRequest struct { NullFields []string `json:"-"` } -func (s *AclFixRequest) MarshalJSON() ([]byte, error) { - type NoMethod AclFixRequest +func (s *BackgroundColoredText) MarshalJSON() ([]byte, error) { + type NoMethod BackgroundColoredText raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// AclFixStatus: The message reconstructed based on information in the -// response of /PermissionFixOptionsService.Query (or the Apiary API -// that wraps it). Indicates the ability of the requester to change the -// access to the Drive file for the room roster or the DM members. Used -// in GetMessagePreviewMetadataResponse only. -type AclFixStatus struct { - // Possible values: - // "UNKNOWN" - // "ALREADY_ACCESSIBLE" - // "CAN_FIX" - // "CANNOT_FIX" - // "ACL_FIXER_ERROR" - Fixability string `json:"fixability,omitempty"` - - // FixableEmailAddress: List of recipient email addresses for which - // access can be granted. This field contains the same email addresses - // from the GetMessagePreviewMetadata request if all recipients can be - // successfully added to the ACL as determined by Drive ACL Fixer. For - // now, the field is non-empty if and only if the "fixability" value is - // "CAN_FIX". - FixableEmailAddress []string `json:"fixableEmailAddress,omitempty"` - - // OutOfDomainWarningEmailAddress: List of recipient email addresses for - // which an out-of-domain-sharing warning must be shown, stating that - // these email addresses are not in the Google Apps organization that - // the requested item belong to. Empty if all recipients are in the same - // Google Apps organization. - OutOfDomainWarningEmailAddress []string `json:"outOfDomainWarningEmailAddress,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Fixability") to +// BooleanOperatorOptions: Used to provide a search operator for boolean +// properties. This is optional. Search operators let users restrict the +// query to specific fields relevant to the type of item being searched. +type BooleanOperatorOptions struct { + // OperatorName: Indicates the operator name required in the query in + // order to isolate the boolean property. For example, if operatorName + // is *closed* and the property's name is *isClosed*, then queries like + // *closed:* show results only where the value of the property + // named *isClosed* matches **. By contrast, a search that uses + // the same ** without an operator returns all items where + // ** matches the value of any String properties or text within + // the content field for the item. The operator name can only contain + // lowercase letters (a-z). The maximum length is 32 characters. + OperatorName string `json:"operatorName,omitempty"` + + // ForceSendFields is a list of field names (e.g. "OperatorName") 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 @@ -662,45 +692,28 @@ type AclFixStatus struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Fixability") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as + // NullFields is a list of field names (e.g. "OperatorName") 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 *AclFixStatus) MarshalJSON() ([]byte, error) { - type NoMethod AclFixStatus +func (s *BooleanOperatorOptions) MarshalJSON() ([]byte, error) { + type NoMethod BooleanOperatorOptions raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// AclInfo: Next tag: 4 -type AclInfo struct { - // GroupsCount: Number of groups which have at least read access to the - // document. - GroupsCount int64 `json:"groupsCount,omitempty"` - - // Scope: The scope to which the content was shared. - // - // Possible values: - // "LIMITED" - Explicit set of people and groups. - // "DASHER_DOMAIN_WITH_LINK" - Anybody at the same domain with the - // link. - // "DASHER_DOMAIN" - Now it works only for google.com. Anybody at the - // same domain. Now it works only - // "PUBLIC_WITH_LINK" - for google.com. Anybody with the link. - // "PUBLIC" - Anybody. - // "TEAM_DRIVE" - Special tag to indicate TeamDrive scope. - Scope string `json:"scope,omitempty"` - - // UsersCount: Number of users which have at least read access to the - // document. - UsersCount int64 `json:"usersCount,omitempty"` +// BooleanPropertyOptions: The options for boolean properties. +type BooleanPropertyOptions struct { + // OperatorOptions: If set, describes how the boolean should be used as + // a search operator. + OperatorOptions *BooleanOperatorOptions `json:"operatorOptions,omitempty"` - // ForceSendFields is a list of field names (e.g. "GroupsCount") to + // ForceSendFields is a list of field names (e.g. "OperatorOptions") 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 @@ -708,32 +721,32 @@ type AclInfo struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "GroupsCount") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "OperatorOptions") 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 *AclInfo) MarshalJSON() ([]byte, error) { - type NoMethod AclInfo +func (s *BooleanPropertyOptions) MarshalJSON() ([]byte, error) { + type NoMethod BooleanPropertyOptions raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// ActionParameter: List of string parameters that developers can -// specify when the above action method (in apps script) is invoked. An -// example use case is for 3 snooze buttons: snooze now, snooze 1 day, -// snooze next week. Developers can have action method = snooze() and -// pass the snooze type and snooze time in list of string parameters. -type ActionParameter struct { - Key string `json:"key,omitempty"` +type CheckAccessResponse struct { + // HasAccess: Returns true if principal has access. Returns false + // otherwise. + HasAccess bool `json:"hasAccess,omitempty"` - Value string `json:"value,omitempty"` + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Key") to + // ForceSendFields is a list of field names (e.g. "HasAccess") 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 @@ -741,8 +754,8 @@ type ActionParameter struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Key") to include in API - // requests with the JSON null value. By default, fields with empty + // NullFields is a list of field names (e.g. "HasAccess") 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. @@ -750,23 +763,26 @@ type ActionParameter struct { NullFields []string `json:"-"` } -func (s *ActionParameter) MarshalJSON() ([]byte, error) { - type NoMethod ActionParameter +func (s *CheckAccessResponse) MarshalJSON() ([]byte, error) { + type NoMethod CheckAccessResponse raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// AddOnFrameStartingState: Starting state for an individual add-on -// frame. -type AddOnFrameStartingState struct { - // AdditionalData: Additional data internal to the add-on that can be - // used to initialize itself. - AdditionalData string `json:"additionalData,omitempty"` +type CompositeFilter struct { + // LogicOperator: The logic operator of the sub filter. + // + // Possible values: + // "AND" - Logical operators, which can only be applied to sub + // filters. + // "OR" + // "NOT" - NOT can only be applied on a single sub filter. + LogicOperator string `json:"logicOperator,omitempty"` - // Uri: The uri of the artifact being used for an add-on co-activity. - Uri string `json:"uri,omitempty"` + // SubFilters: Sub filters. + SubFilters []*Filter `json:"subFilters,omitempty"` - // ForceSendFields is a list of field names (e.g. "AdditionalData") to + // ForceSendFields is a list of field names (e.g. "LogicOperator") 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 @@ -774,61 +790,35 @@ type AddOnFrameStartingState struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "AdditionalData") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "LogicOperator") 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 *AddOnFrameStartingState) MarshalJSON() ([]byte, error) { - type NoMethod AddOnFrameStartingState +func (s *CompositeFilter) MarshalJSON() ([]byte, error) { + type NoMethod CompositeFilter raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// AddOnStartingState: Starting state properties for add-on co-activity. -type AddOnStartingState struct { - // AddOnFrameStartingStates: List of starting state frames for the - // add-on co-activity. Keys for this map are the values of the - // AddOnFrameType enum. - AddOnFrameStartingStates map[string]AddOnFrameStartingState `json:"addOnFrameStartingStates,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "AddOnFrameStartingStates") 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:"-"` +type Content struct { + // Actions: [Optional] Actions for this card. + Actions []*Action `json:"actions,omitempty"` - // NullFields is a list of field names (e.g. "AddOnFrameStartingStates") - // 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:"-"` -} + // Description: [Optional] Description of the card. + Description *SafeHtmlProto `json:"description,omitempty"` -func (s *AddOnStartingState) MarshalJSON() ([]byte, error) { - type NoMethod AddOnStartingState - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} + // Subtitle: [Optional] Subtitle of the card. + Subtitle *BackgroundColoredText `json:"subtitle,omitempty"` -type AddonComposeUiActionMarkup struct { - // Possible values: - // "UNSPECIFIED" - Default. When unspecified, no action is taken. - // "DISMISS" - Dismisses the add-on compose UI. - Type string `json:"type,omitempty"` + // Title: [Optional] Title of the card. + Title *BackgroundColoredText `json:"title,omitempty"` - // ForceSendFields is a list of field names (e.g. "Type") to + // ForceSendFields is a list of field names (e.g. "Actions") 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 @@ -836,8 +826,8 @@ type AddonComposeUiActionMarkup struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Type") to include in API - // requests with the JSON null value. By default, fields with empty + // NullFields is a list of field names (e.g. "Actions") 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. @@ -845,67 +835,84 @@ type AddonComposeUiActionMarkup struct { NullFields []string `json:"-"` } -func (s *AddonComposeUiActionMarkup) MarshalJSON() ([]byte, error) { - type NoMethod AddonComposeUiActionMarkup +func (s *Content) MarshalJSON() ([]byte, error) { + type NoMethod Content raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// AffectedMembership: Earlier we used to populate just the -// affected_members list and inferred the new membership state (roles -// didn't exist back then) from the Type. go/dynamite-finra required -// backend to know the previous membership state to reconstruct -// membership history. The proper solution involved cleaning up up Type -// enum, but it was used in many, many places. This was added as a -// stop-gap solution to unblock FINRA without breaking everything. Later -// role update and target audience update started relying on this to -// communicate information to clients about what transition happened. So -// this is now required to be populated and should be in sync with -// affected_members for new messages. -type AffectedMembership struct { - AffectedMember *MemberId `json:"affectedMember,omitempty"` - +type Context struct { + // App: [Optional] App where the card should be shown. If missing, the + // card will be shown in TOPAZ. + // // Possible values: - // "ROLE_UNKNOWN" - // "ROLE_NONE" - This role is used when a user is forcibly removed - // from a room by another user. They will no longer be able to search - // for the room, but their history will be retained. - // "ROLE_INVITEE" - This role is used for two purposes. 1. A group is - // invited to a room, making it discoverable for its members. 2. A user - // was part of a room, but willingly left the room. - // "ROLE_MEMBER" - --- Following roles are for joined members of a - // roster. --- Default role for any joined user. Has basic capabilities - // within a room. - // "ROLE_OWNER" - Role assigned to room creators and explicitly - // promoted members. Has broad powers to manage the room. - PriorMembershipRole string `json:"priorMembershipRole,omitempty"` - + // "UNKNOWN_APP" + // "TOPAZ" + // "MOMA" + App []string `json:"app,omitempty"` + + // DayOfWeek: [Optional] Day of week when the card should be shown, + // where 0 is Monday. + DayOfWeek []int64 `json:"dayOfWeek,omitempty"` + + // EndDateSec: [Optional] Date (in seconds since epoch) when the card + // should stop being shown. If missing, end_date_sec will be set to Jan + // 1st, 2100. + EndDateSec int64 `json:"endDateSec,omitempty,string"` + + // EndDayOffsetSec: [Optional] End time in seconds, within a day, when + // the card should stop being shown if it's within [start_date_sec, + // end_date_sec]. If missing, this is set to 86400 (24 hours x 3600 + // sec/hour), i.e., midnight next day. + EndDayOffsetSec int64 `json:"endDayOffsetSec,omitempty,string"` + + // Locale: [Optional] The locales for which the card should be triggered + // (e.g., en_US and en_CA). If missing, the card is going to show to + // clients regardless of their locale. + Locale []string `json:"locale,omitempty"` + + // Location: [Optional] Text-free locations where the card should be + // shown. This is expected to match the user's location in focus. If no + // location is specified, the card will be shown for any location. + Location []string `json:"location,omitempty"` + + // Query: [Required only for Answer and RHS cards - will be ignored for + // Homepage] cards. It's the exact case-insensitive queries that will + // trigger the Answer or RHS card. + Query []string `json:"query,omitempty"` + + // StartDateSec: [Optional] Date (in seconds since epoch) when the card + // should start being shown. If missing, start_date_sec will be Jan 1st, + // 1970 UTC. + StartDateSec int64 `json:"startDateSec,omitempty,string"` + + // StartDayOffsetSec: [Optional] Start time in seconds, within a day, + // when the card should be shown if it's within [start_date_sec, + // end_date_sec]. If 0, the card will be shown from 12:00am on. + StartDayOffsetSec int64 `json:"startDayOffsetSec,omitempty,string"` + + // Surface: [Optional] Surface where the card should be shown in. If + // missing, the card will be shown in any surface. + // // Possible values: - // "MEMBER_UNKNOWN" - Default state, do not use - // "MEMBER_INVITED" - An invitation to the space has been sent - // "MEMBER_JOINED" - User has joined the space - // "MEMBER_NOT_A_MEMBER" - User is not a member - // "MEMBER_FAILED" - This state should never be stored in Spanner. It - // is a state for responses to the clients to indicate that membership - // mutations have failed and the member is in its previous state. - PriorMembershipState string `json:"priorMembershipState,omitempty"` - + // "UNKNOWN_SURFACE" + // "DESKTOP" + // "ANDROID" + // "IOS" + // "MOBILE" - Any mobile device. + // "ANY" + Surface []string `json:"surface,omitempty"` + + // Type: [Required] Type of the card (homepage, Answer or RHS). + // // Possible values: - // "ROLE_UNKNOWN" - // "ROLE_NONE" - This role is used when a user is forcibly removed - // from a room by another user. They will no longer be able to search - // for the room, but their history will be retained. - // "ROLE_INVITEE" - This role is used for two purposes. 1. A group is - // invited to a room, making it discoverable for its members. 2. A user - // was part of a room, but willingly left the room. - // "ROLE_MEMBER" - --- Following roles are for joined members of a - // roster. --- Default role for any joined user. Has basic capabilities - // within a room. - // "ROLE_OWNER" - Role assigned to room creators and explicitly - // promoted members. Has broad powers to manage the room. - TargetMembershipRole string `json:"targetMembershipRole,omitempty"` - - // ForceSendFields is a list of field names (e.g. "AffectedMember") to + // "UNKNOWN_CARD_TYPE" + // "HOMEPAGE_CARD" + // "ANSWER_CARD" + // "RHS_CARD" + Type []string `json:"type,omitempty"` + + // ForceSendFields is a list of field names (e.g. "App") 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 @@ -913,310 +920,38 @@ type AffectedMembership struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "AffectedMember") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "App") 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 *AffectedMembership) MarshalJSON() ([]byte, error) { - type NoMethod AffectedMembership +func (s *Context) MarshalJSON() ([]byte, error) { + type NoMethod Context raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// AllAuthenticatedUsersProto: Represents a principal who has -// authenticated as any kind of user which the application understands. -// This is typically used for "wiki-like" security, where anyone is -// allowed access so long as they can be held accountable for that -// access. Since the purpose is knowing whom to blame, it is up to the -// application to decide what kinds of users it knows how to blame. For -// example, an application might choose to include GAIA users in "all -// authenticated users", but not include MDB users. Nothing here. -type AllAuthenticatedUsersProto struct { -} - -// Annotation: NOTE WHEN ADDING NEW PROTO FIELDS: Be sure to add datapol -// annotations to new fields with potential PII, so they get scrubbed -// when logging protos for errors. NEXT TAG: 32 -type Annotation struct { - BabelPlaceholderMetadata *BabelPlaceholderMetadata `json:"babelPlaceholderMetadata,omitempty"` - - // CardCapabilityMetadata: - // LINT.ThenChange(//depot/google3/java/com/google/apps/dynamite/v1/backe - // nd/action/common/SystemMessageHelper.java) - CardCapabilityMetadata *CardCapabilityMetadata `json:"cardCapabilityMetadata,omitempty"` - - // ChipRenderType: Whether the annotation should be rendered as a - // preview chip. If this is missing or unspecified, fallback to - // should_not_render on the metadata. - // - // Possible values: - // "CHIP_RENDER_TYPE_UNSPECIFIED" - // "RENDER" - Clients must render the annotation as a preview chip, - // and if they cannot render this many Annotations, show a fallback - // card. - // "RENDER_IF_POSSIBLE" - Client can render the annotation if it has - // room to render it. - // "DO_NOT_RENDER" - Client should not render the annotation as a - // preview chip. - ChipRenderType string `json:"chipRenderType,omitempty"` - - // ComponentSearchInfo: Contains additional metadata that further - // enhances the annotation when it is returned as part of search - // response. For example, this can be used to define how the annotation - // matches the search. Information can be used to highlight in rendering - // search results. The following are the different annotation text - // fields that can be highlighted by this field: 1. DriveMetadata.title - // 2. UploadMetadata.content_name 3. - // GsuiteIntegrationMetadata.TasksMessageIntegrationRenderData.title 4. - // GsuiteIntegrationMetadata.CalendarEventAnnotationData.title - ComponentSearchInfo *AppsDynamiteSharedMessageComponentSearchInfo `json:"componentSearchInfo,omitempty"` - - ConsentedAppUnfurlMetadata *ConsentedAppUnfurlMetadata `json:"consentedAppUnfurlMetadata,omitempty"` - - CustomEmojiMetadata *CustomEmojiMetadata `json:"customEmojiMetadata,omitempty"` - - DataLossPreventionMetadata *DataLossPreventionMetadata `json:"dataLossPreventionMetadata,omitempty"` - - // DriveMetadata: Chip annotations - DriveMetadata *DriveMetadata `json:"driveMetadata,omitempty"` - - FormatMetadata *FormatMetadata `json:"formatMetadata,omitempty"` - - GroupRetentionSettingsUpdated *GroupRetentionSettingsUpdatedMetaData `json:"groupRetentionSettingsUpdated,omitempty"` - - // GsuiteIntegrationMetadata: Metadata for 1P integrations like tasks, - // calendar. These are supported only through integration server as 1P - // integrations use the integration API (which in turn uses backend API - // with special permissions) to post messages. Clients should never set - // this. LINT.IfChange - GsuiteIntegrationMetadata *GsuiteIntegrationMetadata `json:"gsuiteIntegrationMetadata,omitempty"` - - IncomingWebhookChangedMetadata *IncomingWebhookChangedMetadata `json:"incomingWebhookChangedMetadata,omitempty"` - - // InlineRenderFormat: The inline render format of this annotation. - // go/drive-smart-chips-chat-v2. - // - // Possible values: - // "INLINE_RENDER_FORMAT_UNSPECIFIED" - // "SMART_CHIP" - InlineRenderFormat string `json:"inlineRenderFormat,omitempty"` - - // IntegrationConfigUpdated: - // LINT.ThenChange(//depot/google3/java/com/google/apps/dynamite/v1/backe - // nd/action/common/SystemMessageHelper.java) - IntegrationConfigUpdated *IntegrationConfigUpdatedMetadata `json:"integrationConfigUpdated,omitempty"` - - // InteractionData: Additional interaction data for this annotation. - InteractionData *InteractionData `json:"interactionData,omitempty"` - - // Length: Length of the text_body substring beginning from start_index - // the Annotation corresponds to. - Length int64 `json:"length,omitempty"` - - // LocalId: * A client-assigned ID for this annotation. This is helpful - // in matching the back-filled annotations to the original annotations - // on client side, without having to re-parse the message. There is no - // guarantee an annotation has a local_id, it's a purely client used and - // controlled field with no guarantee of uniqueness. - LocalId string `json:"localId,omitempty"` - - // MembershipChanged: Metadata for system messages. Clients should never - // set this. LINT.IfChange - MembershipChanged *MembershipChangedMetadata `json:"membershipChanged,omitempty"` - - ReadReceiptsSettingsMetadata *ReadReceiptsSettingsUpdatedMetadata `json:"readReceiptsSettingsMetadata,omitempty"` - - // RequiredMessageFeaturesMetadata: Metadata that defines all of the - // required features that must be rendered in the message. Clients can - // use this to see whether they support the entire message, or show a - // fallback chip otherwise. See go/message-quoting-client-to-server for - // details. LINT.ThenChange( - // //depot/google3/java/com/google/apps/dynamite/v1/allshared/parser/Anno - // tationSanitizer.java, - // //depot/google3/java/com/google/apps/dynamite/v1/backend/action/common - // /SystemMessageHelper.java, - // //depot/google3/java/com/google/caribou/eli/mediation/chat/AnnotationC - // onverter.java ) - RequiredMessageFeaturesMetadata *RequiredMessageFeaturesMetadata `json:"requiredMessageFeaturesMetadata,omitempty"` - - RoomUpdated *RoomUpdatedMetadata `json:"roomUpdated,omitempty"` - - // ServerInvalidated: Whether or not the annotation is invalidated by - // the server. Example of situations for invalidation include: when the - // URL is malformed, or when Drive item ID is rejected by Drive Service. - ServerInvalidated bool `json:"serverInvalidated,omitempty"` - - SlashCommandMetadata *SlashCommandMetadata `json:"slashCommandMetadata,omitempty"` - - // StartIndex: Start index (0-indexed) of the Message text the - // Annotation corresponds to, inclusive. - StartIndex int64 `json:"startIndex,omitempty"` - - // Type: Type of the Annotation. - // - // Possible values: - // "TYPE_UNSPECIFIED" - Default value for the enum. DO NOT USE. - // "URL" - These can have overlaps, i.e. same message can have - // multiple of these. For example a Drive link to a PDF can have URL, - // DRIVE_FILE and PDF all set Links - // "DRIVE_FILE" - Any drive file - // "DRIVE_DOC" - // "DRIVE_SHEET" - // "DRIVE_SLIDE" - // "DRIVE_FORM" - // "USER_MENTION" - // "SLASH_COMMAND" - // "CONSENTED_APP_UNFURL" - // "VIDEO" - Any video, not just youtube, the url decides how to play - // "FORMAT_DATA" - UI should not be concerned with FORMAT_DATA - // "IMAGE" - // "PDF" - // "VIDEO_CALL" - For Thor integration - // "UPLOAD_METADATA" - Blobstore uploads - // "GSUITE_INTEGRATION" - Generic annotation for gsuite integrations - // "CUSTOM_EMOJI" - // "CARD_CAPABILITY" - Card capability for in-stream widgets. - // "DATA_LOSS_PREVENTION" - // "REQUIRED_MESSAGE_FEATURES_METADATA" - Clients can use this to see - // whether they support the entire message, or show a fallback chip - // otherwise. - // "MEMBERSHIP_CHANGED" - Annotation types for system messages. - // Clients should never set this. - // "ROOM_UPDATED" - // "GROUP_RETENTION_SETTINGS_UPDATED" - // "BABEL_PLACEHOLDER" - // "READ_RECEIPTS_SETTINGS_UPDATED" - // "INCOMING_WEBHOOK_CHANGED" - // "INTEGRATION_CONFIG_UPDATED" - // "INVITATION" - Message-level annotations. First message of an - // invite. Should not be set by clients. - Type string `json:"type,omitempty"` - - // UniqueId: * A unique server-assigned ID for this annotation. This is - // helpful in matching annotation objects when fetched from service. All - // uploads should have a unique_id after the message they are attached - // to is successfully sent. Url annotations that originally were uploads - // (i.e. policy violations) will have a unique_id after the message they - // are attached to is successfully sent. No other url annotations should - // have a unique_id. All drive annotations should have a unique_id after - // the message they are attached to is successfully sent. - UniqueId string `json:"uniqueId,omitempty"` - - UploadMetadata *UploadMetadata `json:"uploadMetadata,omitempty"` - - UrlMetadata *UrlMetadata `json:"urlMetadata,omitempty"` - - // UserMentionMetadata: Metadata that clients can set for annotations. - // LINT.IfChange In-text annotations - UserMentionMetadata *UserMentionMetadata `json:"userMentionMetadata,omitempty"` - - VideoCallMetadata *VideoCallMetadata `json:"videoCallMetadata,omitempty"` - - YoutubeMetadata *YoutubeMetadata `json:"youtubeMetadata,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "BabelPlaceholderMetadata") 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. "BabelPlaceholderMetadata") - // 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 *Annotation) MarshalJSON() ([]byte, error) { - type NoMethod Annotation - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// AnnotationInfo: Information about the screen annotation session. -type AnnotationInfo struct { - // CoannotatorDeviceIds: The device resource names of other devices - // which can annotate the screen. - CoannotatorDeviceIds []string `json:"coannotatorDeviceIds,omitempty"` - - // IsActive: Whether the annotation is active. - IsActive bool `json:"isActive,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "CoannotatorDeviceIds") 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. "CoannotatorDeviceIds") 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:"-"` -} +// ContextAttribute: A named attribute associated with an item which can +// be used for influencing the ranking of the item based on the context +// in the request. +type ContextAttribute struct { + // Name: The name of the attribute. It should not be empty. The maximum + // length is 32 characters. The name must start with a letter and can + // only contain letters (A-Z, a-z) or numbers (0-9). The name will be + // normalized (lower-cased) before being matched. + Name string `json:"name,omitempty"` -func (s *AnnotationInfo) MarshalJSON() ([]byte, error) { - type NoMethod AnnotationInfo - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} + // Values: Text values of the attribute. The maximum number of elements + // is 10. The maximum length of an element in the array is 32 + // characters. The value will be normalized (lower-cased) before being + // matched. + Values []string `json:"values,omitempty"` -// AppId: Identifier of an App. -type AppId struct { - // AppType: Enum indicating the type of App this is. - // - // Possible values: - // "APP_TYPE_UNSPECIFIED" - // "APP" - 3P APP eg. external Bots(Asana Bot), 1P Bots(Drive Bot). - // "GSUITE_APP" - 1P APP eg. Tasks, Meet, Docs, Calendar.. - // "INCOMING_WEBHOOK" - Asynchronous messages via an incoming webhook. - AppType string `json:"appType,omitempty"` - - // GsuiteAppType: Enum indicating which 1P App this is when app_type is - // GSUITE_APP. Determined & set by the 1P API as a convenience for all - // users of this identifier(Eg. clients, chime, backend etc.) to map to - // 1P properties. - // - // Possible values: - // "GSUITE_APP_TYPE_UNSPECIFIED" - // "TASKS_APP" - // "CALENDAR_APP" - // "DOCS_APP" - // "SHEETS_APP" - // "SLIDES_APP" - // "MEET_APP" - // "ASSISTIVE_SUGGESTION_APP" - Powered by Bullseye - // "CONTACTS_APP" - // "ACTIVITY_FEED_APP" - // "DRIVE_APP" - // "CHAT_IN_MEET_APP" - // "SHORTCUT_APP" - GsuiteAppType string `json:"gsuiteAppType,omitempty"` - - // Id: Numeric identifier of the App. Set to Project number for 1/3P - // Apps. For Webhook, this is WebhookId. Determined & set by the 1P API - // from App credentials on the side channel. - Id int64 `json:"id,omitempty,string"` - - // ForceSendFields is a list of field names (e.g. "AppType") to + // ForceSendFields is a list of field names (e.g. "Name") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be @@ -1224,8 +959,8 @@ type AppId struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "AppType") to include in - // API requests with the JSON null value. By default, fields with empty + // NullFields is a list of field names (e.g. "Name") to include in API + // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. @@ -1233,123 +968,22 @@ type AppId struct { NullFields []string `json:"-"` } -func (s *AppId) MarshalJSON() ([]byte, error) { - type NoMethod AppId - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// AppsDynamiteSharedActivityFeedAnnotationData: Next Id: 7 -type AppsDynamiteSharedActivityFeedAnnotationData struct { - // ActivityFeedMessageCreateTime: Timestamp of when the Activity Feed - // message that contains this annotation was created. This is roughly - // when the activity happened, such as when a reaction happened, but - // will have at least some small delay, since the Activity Feed message - // is created asynchronously after. This timestamp should only be used - // for display when the activity create time is not available in the - // Chat UI, like the time of a reaction. - ActivityFeedMessageCreateTime string `json:"activityFeedMessageCreateTime,omitempty"` - - // ActivityFeedMessageId: Unique id of the Activity Feed message used by - // clients to implement click-to-source. This is the same messageId as - // the top-level id field for the Activity Feed item. - ActivityFeedMessageId *MessageId `json:"activityFeedMessageId,omitempty"` - - ChatItem *AppsDynamiteSharedChatItem `json:"chatItem,omitempty"` - - // SharedUserInfo: Only populated on read path and should not be - // persisted in storage. - SharedUserInfo *UserInfo `json:"sharedUserInfo,omitempty"` - - // UserInfo: Use shared_user_info instead. - UserInfo *AppsDynamiteSharedActivityFeedAnnotationDataUserInfo `json:"userInfo,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "ActivityFeedMessageCreateTime") 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. - // "ActivityFeedMessageCreateTime") 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 *AppsDynamiteSharedActivityFeedAnnotationData) MarshalJSON() ([]byte, error) { - type NoMethod AppsDynamiteSharedActivityFeedAnnotationData - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// AppsDynamiteSharedActivityFeedAnnotationDataUserInfo: UserId of the -// AF item updater to show and the updater count to show. -type AppsDynamiteSharedActivityFeedAnnotationDataUserInfo struct { - // UpdaterCountDisplayType: Describes how updater_count_to_show should - // be used. - // - // Possible values: - // "UPDATER_COUNT_DISPLAY_TYPE_UNSPECIFIED" - // "EXACT_COUNT" - A precise updater count is known and the value set - // in updater_count_to_show should be used. - // "NONZERO_COUNT" - A precise updater count could not be calculated, - // but there is at least one. Any value set in updater_count_to_show - // should NOT be used. - UpdaterCountDisplayType string `json:"updaterCountDisplayType,omitempty"` - - // UpdaterCountToShow: The number of updaters for clients to show, - // currently set to the total number of updaters minus the one set in - // updater_to_show. - UpdaterCountToShow int64 `json:"updaterCountToShow,omitempty"` - - // UpdaterToShow: The updater for clients to show. - UpdaterToShow *UserId `json:"updaterToShow,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "UpdaterCountDisplayType") 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. "UpdaterCountDisplayType") - // 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 *AppsDynamiteSharedActivityFeedAnnotationDataUserInfo) MarshalJSON() ([]byte, error) { - type NoMethod AppsDynamiteSharedActivityFeedAnnotationDataUserInfo +func (s *ContextAttribute) MarshalJSON() ([]byte, error) { + type NoMethod ContextAttribute raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// AppsDynamiteSharedAppProfile: Optional field for apps overriding -// display info -type AppsDynamiteSharedAppProfile struct { - // AvatarEmoji: Displayed user avatar emoji. - AvatarEmoji string `json:"avatarEmoji,omitempty"` - - // AvatarUrl: Displayed user avatar url. - AvatarUrl string `json:"avatarUrl,omitempty"` +// CustomerIndexStats: Aggregation of items by status code as of the +// specified date. +type CustomerIndexStats struct { + // Date: The date for which statistics were calculated. + Date *Date `json:"date,omitempty"` - // Name: Displayed user name. - Name string `json:"name,omitempty"` + // ItemCountByStatus: Number of items aggregrated by status code. + ItemCountByStatus []*ItemCountByStatus `json:"itemCountByStatus,omitempty"` - // ForceSendFields is a list of field names (e.g. "AvatarEmoji") to + // ForceSendFields is a list of field names (e.g. "Date") 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 @@ -1357,37 +991,29 @@ type AppsDynamiteSharedAppProfile struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "AvatarEmoji") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as + // NullFields is a list of field names (e.g. "Date") 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 *AppsDynamiteSharedAppProfile) MarshalJSON() ([]byte, error) { - type NoMethod AppsDynamiteSharedAppProfile +func (s *CustomerIndexStats) MarshalJSON() ([]byte, error) { + type NoMethod CustomerIndexStats raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// AppsDynamiteSharedAssistantAnnotationData: This is the internal -// version of the API proto at -// google3/google/chat/v1/gsuite_message_integration.proto Data used to -// render Assistant suggestions. See go/bullseye-rendering. -type AppsDynamiteSharedAssistantAnnotationData struct { - // Suggestion: The suggestion to render in the card. - Suggestion *AppsDynamiteSharedAssistantSuggestion `json:"suggestion,omitempty"` +type CustomerQueryStats struct { + // Date: The date for which query stats were calculated. Stats + // calculated on the next day close to midnight are returned. + Date *Date `json:"date,omitempty"` - // Unfulfillable: Set when the initial query was unfulfillable. Only an - // on-demand unfulfillable query will result in a response (not a - // proactive query). 1. On-demand: user explicitly invokes the bot 2. - // Proactive: bot makes proactive suggestion (when available) by - // listening to all user messages. - Unfulfillable *AppsDynamiteSharedAssistantUnfulfillableRequest `json:"unfulfillable,omitempty"` + QueryCountByStatus []*QueryCountByStatus `json:"queryCountByStatus,omitempty"` - // ForceSendFields is a list of field names (e.g. "Suggestion") to + // ForceSendFields is a list of field names (e.g. "Date") 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 @@ -1395,8 +1021,8 @@ type AppsDynamiteSharedAssistantAnnotationData struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Suggestion") to include in - // API requests with the JSON null value. By default, fields with empty + // NullFields is a list of field names (e.g. "Date") 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. @@ -1404,19 +1030,22 @@ type AppsDynamiteSharedAssistantAnnotationData struct { NullFields []string `json:"-"` } -func (s *AppsDynamiteSharedAssistantAnnotationData) MarshalJSON() ([]byte, error) { - type NoMethod AppsDynamiteSharedAssistantAnnotationData +func (s *CustomerQueryStats) MarshalJSON() ([]byte, error) { + type NoMethod CustomerQueryStats raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// AppsDynamiteSharedAssistantDebugContext: Represents info regarding -// suggestion debug information. -type AppsDynamiteSharedAssistantDebugContext struct { - // Query: The query that triggered the resulting suggestion. - Query string `json:"query,omitempty"` +// CustomerSearchApplicationStats: Search application stats for a +// customer for the given date. +type CustomerSearchApplicationStats struct { + // Count: The count of search applications for the date. + Count int64 `json:"count,omitempty,string"` - // ForceSendFields is a list of field names (e.g. "Query") to + // Date: The date for which search application stats were calculated. + Date *Date `json:"date,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Count") 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 @@ -1424,7 +1053,7 @@ type AppsDynamiteSharedAssistantDebugContext struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Query") to include in API + // NullFields is a list of field names (e.g. "Count") 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 @@ -1433,28 +1062,22 @@ type AppsDynamiteSharedAssistantDebugContext struct { NullFields []string `json:"-"` } -func (s *AppsDynamiteSharedAssistantDebugContext) MarshalJSON() ([]byte, error) { - type NoMethod AppsDynamiteSharedAssistantDebugContext +func (s *CustomerSearchApplicationStats) MarshalJSON() ([]byte, error) { + type NoMethod CustomerSearchApplicationStats raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// AppsDynamiteSharedAssistantFeedbackContext: Data needed to render -// feedback on the Assistant card -type AppsDynamiteSharedAssistantFeedbackContext struct { - // FeedbackChips: Specifies a list of feedback chips to show - FeedbackChips []*AppsDynamiteSharedAssistantFeedbackContextFeedbackChip `json:"feedbackChips,omitempty"` +type CustomerSessionStats struct { + // Date: The date for which session stats were calculated. Stats are + // calculated on the following day, close to midnight PST, and then + // returned. + Date *Date `json:"date,omitempty"` - // ThumbsFeedback: Whether the thumbs feedback is provided - // - // Possible values: - // "THUMBS_FEEDBACK_UNSPECIFIED" - Unspecified thumbs state - // "NONE_SELECTED" - Thumbs are not selected - // "UP" - Thumbs up selected - // "DOWN" - Thumbs down selected - ThumbsFeedback string `json:"thumbsFeedback,omitempty"` + // SearchSessionsCount: The count of search sessions on the day + SearchSessionsCount int64 `json:"searchSessionsCount,omitempty,string"` - // ForceSendFields is a list of field names (e.g. "FeedbackChips") to + // ForceSendFields is a list of field names (e.g. "Date") 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 @@ -1462,54 +1085,47 @@ type AppsDynamiteSharedAssistantFeedbackContext struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "FeedbackChips") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as + // NullFields is a list of field names (e.g. "Date") 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 *AppsDynamiteSharedAssistantFeedbackContext) MarshalJSON() ([]byte, error) { - type NoMethod AppsDynamiteSharedAssistantFeedbackContext +func (s *CustomerSessionStats) MarshalJSON() ([]byte, error) { + type NoMethod CustomerSessionStats raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// AppsDynamiteSharedAssistantFeedbackContextFeedbackChip: Suggestion -// chips for users to indicate positive or negative feedback -type AppsDynamiteSharedAssistantFeedbackContextFeedbackChip struct { - // FeedbackChipType: What type of chip to display - // - // Possible values: - // "FEEDBACK_CHIP_TYPE_UNSPECIFIED" - Unspecified type of feedback - // chip - // "WRONG_TRIGGER" - Bad/noisy triggering - // "WRONG_FILE" - Incorrect files were presented - // "CORRECT_TRIGGER" - The Assistant card triggered appropriately - // "CORRECT_FILE" - The correct files were presented - // "DISRUPTIVE" - The feature is disruptive - // "OTHER" - Other reason - FeedbackChipType string `json:"feedbackChipType,omitempty"` - - // State: Whether the chip has been selected - // - // Possible values: - // "FEEDBACK_CHIP_STATE_UNSPECIFIED" - Unspecified selection state - // "SELECTED" - Chip is selected - // "UNSELECTED" - Chip is not selected - State string `json:"state,omitempty"` +// CustomerSettings: Represents settings at a customer level. +type CustomerSettings struct { + // AuditLoggingSettings: Audit Logging settings for the customer. If + // update_mask is empty then this field will be updated based on + // UpdateCustomerSettings request. + AuditLoggingSettings *AuditLoggingSettings `json:"auditLoggingSettings,omitempty"` - // ForceSendFields is a list of field names (e.g. "FeedbackChipType") 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. + // VpcSettings: VPC SC settings for the customer. If update_mask is + // empty then this field will be updated based on UpdateCustomerSettings + // request. + VpcSettings *VPCSettings `json:"vpcSettings,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. + // "AuditLoggingSettings") 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. "FeedbackChipType") to + // NullFields is a list of field names (e.g. "AuditLoggingSettings") 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 @@ -1519,97 +1135,30 @@ type AppsDynamiteSharedAssistantFeedbackContextFeedbackChip struct { NullFields []string `json:"-"` } -func (s *AppsDynamiteSharedAssistantFeedbackContextFeedbackChip) MarshalJSON() ([]byte, error) { - type NoMethod AppsDynamiteSharedAssistantFeedbackContextFeedbackChip +func (s *CustomerSettings) MarshalJSON() ([]byte, error) { + type NoMethod CustomerSettings raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// AppsDynamiteSharedAssistantSessionContext: Session context specific -// for Assistant suggestions. -type AppsDynamiteSharedAssistantSessionContext struct { - // ContextualSessionId: Unique identifier populated by the contextual - // request handler for each vertical (Ex: File Suggestions, Smart - // Scheduling, etc.) that can be used to track sessions end-to-end. May - // span multiple users (sender-specific). - ContextualSessionId string `json:"contextualSessionId,omitempty"` +type CustomerUserStats struct { + // Date: The date for which session stats were calculated. Stats + // calculated on the next day close to midnight are returned. + Date *Date `json:"date,omitempty"` - // ForceSendFields is a list of field names (e.g. "ContextualSessionId") - // 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. "ContextualSessionId") 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 *AppsDynamiteSharedAssistantSessionContext) MarshalJSON() ([]byte, error) { - type NoMethod AppsDynamiteSharedAssistantSessionContext - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// AppsDynamiteSharedAssistantSuggestion: Data for an Assistant -// suggestion. -type AppsDynamiteSharedAssistantSuggestion struct { - // DebugContext: Info regarding suggestion debug information. - DebugContext *AppsDynamiteSharedAssistantDebugContext `json:"debugContext,omitempty"` - - // FeedbackContext: Data for rendering feedback. - FeedbackContext *AppsDynamiteSharedAssistantFeedbackContext `json:"feedbackContext,omitempty"` - - // FindDocumentSuggestion: Suggestion type that suggests documents - // (docs, slides, sheets). - FindDocumentSuggestion *AppsDynamiteSharedFindDocumentSuggestion `json:"findDocumentSuggestion,omitempty"` - - // SerializedSuggestions: String representation of the suggestions - // provided. - SerializedSuggestions string `json:"serializedSuggestions,omitempty"` - - // SessionContext: Session context specific to the Assistant suggestion. - SessionContext *AppsDynamiteSharedAssistantSessionContext `json:"sessionContext,omitempty"` - - // ForceSendFields is a list of field names (e.g. "DebugContext") 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. "DebugContext") 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 *AppsDynamiteSharedAssistantSuggestion) MarshalJSON() ([]byte, error) { - type NoMethod AppsDynamiteSharedAssistantSuggestion - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} + // OneDayActiveUsersCount: The count of unique active users in the past + // one day + OneDayActiveUsersCount int64 `json:"oneDayActiveUsersCount,omitempty,string"` -// AppsDynamiteSharedAssistantUnfulfillableRequest: Data for a response -// to an unfulfillable request. -type AppsDynamiteSharedAssistantUnfulfillableRequest struct { -} + // SevenDaysActiveUsersCount: The count of unique active users in the + // past seven days + SevenDaysActiveUsersCount int64 `json:"sevenDaysActiveUsersCount,omitempty,string"` -type AppsDynamiteSharedAvatarInfo struct { - Emoji *AppsDynamiteSharedEmoji `json:"emoji,omitempty"` + // ThirtyDaysActiveUsersCount: The count of unique active users in the + // past thirty days + ThirtyDaysActiveUsersCount int64 `json:"thirtyDaysActiveUsersCount,omitempty,string"` - // ForceSendFields is a list of field names (e.g. "Emoji") to + // ForceSendFields is a list of field names (e.g. "Date") 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 @@ -1617,7 +1166,7 @@ type AppsDynamiteSharedAvatarInfo struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Emoji") to include in API + // NullFields is a list of field names (e.g. "Date") 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 @@ -1626,241 +1175,109 @@ type AppsDynamiteSharedAvatarInfo struct { NullFields []string `json:"-"` } -func (s *AppsDynamiteSharedAvatarInfo) MarshalJSON() ([]byte, error) { - type NoMethod AppsDynamiteSharedAvatarInfo +func (s *CustomerUserStats) MarshalJSON() ([]byte, error) { + type NoMethod CustomerUserStats raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// AppsDynamiteSharedBackendUploadMetadata: Metadata used only in -// Dynamite backend for uploaded attachments. NEXT ID: 20 -type AppsDynamiteSharedBackendUploadMetadata struct { - // BlobPath: Blobstore path for the uploaded attachment - BlobPath string `json:"blobPath,omitempty"` - - // ContentName: The original file name for the content, not the full - // path. - ContentName string `json:"contentName,omitempty"` - - // ContentSize: Scotty reported content size by default. - // http://google3/uploader/agent/scotty_agent.proto?l=101&rcl=140889785 - ContentSize int64 `json:"contentSize,omitempty,string"` - - // ContentType: Type is from Scotty's best_guess by default: - // http://google3/uploader/agent/scotty_agent.proto?l=51&rcl=140889785 - ContentType string `json:"contentType,omitempty"` - - // DlpScanOutcome: The results of the Data Loss Prevention (DLP) scan of - // the attachment. DEPRECATED: use dlp_scan_summary instead. - // - // Possible values: - // "SCAN_UNKNOWN_OUTCOME" - // "SCAN_SUCCEEDED_NO_VIOLATION" - This means no violation is detected - // on the given message/attachment. - // "SCAN_SUCCEEDED_BLOCK" - Violation is detected. The - // message/attachment will be blocked (or deleted if this happens in - // failure recovery), the user will be warned, and the violation will be - // logged to BIP. - // "SCAN_SUCCEEDED_WARN" - Violation is detected. The user will be - // warned, and the violation will be logged to BIP. - // "SCAN_SUCCEEDED_AUDIT_ONLY" - Violation is detected and will be - // logged to BIP (no user-facing action performed). - // "SCAN_FAILURE_EXCEPTION" - Rule fetch and evaluation were attempted - // but an exception occurred. - // "SCAN_FAILURE_RULE_FETCH_FAILED" - Rule fetch was attempted but - // failed, so rule evaluation could not be performed. - // "SCAN_FAILURE_TIMEOUT" - Rule fetch and evaluation were attempted - // but the scanning timed out. - // "SCAN_FAILURE_ALL_RULES_FAILED" - Rule fetch completed and - // evaluation were attempted, but all of the rules failed to be - // evaluated. - // "SCAN_FAILURE_ILLEGAL_STATE_FOR_ATTACHMENTS" - An - // IllegalStateException is thrown when executing DLP on attachments. - // This could happen if the space row is missing. - // "SCAN_SKIPPED_EXPERIMENT_DISABLED" - Rule fetch and evaluation is - // skipped because DLP is not enabled for the user. - // "SCAN_SKIPPED_CONSUMER" - Rule fetch and evaluation are skipped - // because the user sending message is consumer. - // "SCAN_SKIPPED_NON_HUMAN_USER" - Rule fetch and evaluation are - // skipped because the user sending message is a non-human user (i.e. a - // bot). - // "SCAN_SKIPPED_NO_MESSAGE" - Rule fetch and evaluation are skipped - // because there is no message to scan. Deprecated: this should not - // happen since there must be message or attachment for DLP scan. - // "SCAN_SKIPPED_USER_ACKNOWLEDGED_WARNING" - Rule fetch and - // evaluation are skipped because the user has acknowledged the warning - // on the message that triggered the Warn violation and sent the message - // anyway. - // "SCAN_SKIPPED_MESSAGE_FROM_UNSUPPORTED_ORIGIN" - Scanning was - // skipped because the message originated from Interop or Babel. - // "SCAN_SKIPPED_MESSAGE_SENT_DURING_SPACE_MIGRATION" - Scanning was - // skipped because the message was sent while the space is in migration - // mode. See go/migration-mode for details. - // "SCAN_RULE_EVALUATION_SKIPPED_NO_RULES_FOUND" - Rule fetch - // happened, but rule evaluation is skipped because no rules were found. - // - // "SCAN_RULE_EVALUATION_SKIPPED_NO_APPLICABLE_RULES_FOR_ACTION_PARAMS" - // - Rule fetch happened, but rule evaluation is skipped because none of - // the rules are applicable to the given action params. Deprecated. Use - // SCAN_RULE_EVALUATION_SKIPPED_NO_APPLICABLE_RULES - // "SCAN_RULE_EVALUATION_SKIPPED_NO_APPLICABLE_RULES_FOR_TRIGGER" - - // Rule fetch happened, but rule evaluation is skipped because none of - // the rules are applicable to the given trigger. Deprecated. Use - // SCAN_RULE_EVALUATION_SKIPPED_NO_APPLICABLE_RULES - // "SCAN_RULE_EVALUATION_SKIPPED_NO_APPLICABLE_RULES" - Rule fetch - // happened, but rule evaluation is skipped because none of the rules - // are applicable. - // "SCAN_RULE_EVALUATION_SKIPPED_CHANGELING_PERMANENT_ERROR" - Rule - // fetch happened, but rule evaluation is skipped because Changeling - // returned permanent failure while converting the attachment to text. - // "SCAN_RULE_EVALUATION_SKIPPED_CHANGELING_EMPTY_RESPONSE" - Rule - // fetch happened, but rule evaluation is skipped because Changeling - // returned an empty response while converting the attachment to text. - // "SCAN_RULE_EVALUATION_SKIPPED_UNSUPPORTED_FILE_TYPE" - Rule fetch - // happened, but rule evaluation is skipped because file type is - // unsupported. - // "SCAN_SUCCEEDED_WITH_FAILURES_NO_VIOLATION" - Rules were fetched - // but some evaluations failed. No violation was found in the rules that - // were successfully evaluated. - // "SCAN_SUCCEEDED_WITH_FAILURES_BLOCK" - Rules were fetched but some - // evaluations failed. A blocking violation was found in the rules that - // were successfully evaluated. The message/attachment will be blocked, - // the user will be notified, and the violation will be logged to BIP. A - // blocking violation takes precedence over all other violation types. - // "SCAN_SUCCEEDED_WITH_FAILURES_WARN" - Rules were fetched but some - // evaluations failed. A warn violation was found in the rules that were - // successfully evaluated. The user will be warned, and the violation - // will be logged to BIP. - // "SCAN_SUCCEEDED_WITH_FAILURES_AUDIT_ONLY" - Rules were fetched but - // some evaluations failed. An audit-only violation was found in the - // rules that were successfully evaluated. The violation will be logged - // to BIP (no user-facing action performed). - DlpScanOutcome string `json:"dlpScanOutcome,omitempty"` - - // DlpScanSummary: Summary of a Data Loss Prevention (DLP) scan of the - // attachment. Attachments are evaluated in the backend when they are - // uploaded. - DlpScanSummary *DlpScanSummary `json:"dlpScanSummary,omitempty"` - - // Experiment: The list of experiments this video is enabled for - // - // Possible values: - // "UNKNOWN_EXPERIMENT" - // "KRONOS_FAST_FORMAT" - Experiment []string `json:"experiment,omitempty"` - - // GroupId: GroupId to which this attachment is uploaded. - GroupId *GroupId `json:"groupId,omitempty"` - - // IsClientSideTranscodedVideo: If the uploaded file is a video that has - // been transcoded on the client side - IsClientSideTranscodedVideo bool `json:"isClientSideTranscodedVideo,omitempty"` - - MigratedFromHangoutsMetadata *AppsDynamiteSharedBackendUploadMetadataMigratedFromHangoutsMetadata `json:"migratedFromHangoutsMetadata,omitempty"` - - // OriginalDimension: Original dimension of the content. Only set for - // image attachments. - OriginalDimension *AppsDynamiteSharedDimension `json:"originalDimension,omitempty"` - - // QuoteReplyMessageId: The message id of a quote reply referencing this - // attachment. When present, this attachment has been quoted in a reply - // message. Normally, the attachment is fetched through the message id - // in the blob_path, but in the case of a quote reply, the blob_path - // would contain the quoted message id. Thus this message id field is - // needed to fetch the quote reply message instead. This field is - // conditionally populated at read time for quotes and never persisted - // in storage. See go/message-quoting-attachments for more context. - QuoteReplyMessageId *MessageId `json:"quoteReplyMessageId,omitempty"` - - // Sha256: The SHA256 hash of the attachment bytes. - Sha256 string `json:"sha256,omitempty"` +// DataSource: Datasource is a logical namespace for items to be +// indexed. All items must belong to a datasource. This is the +// prerequisite before items can be indexed into Cloud Search. +type DataSource struct { + // DisableModifications: If true, sets the datasource to read-only mode. + // In read-only mode, the Indexing API rejects any requests to index or + // delete items in this source. Enabling read-only mode does not stop + // the processing of previously accepted data. + DisableModifications bool `json:"disableModifications,omitempty"` - // UploadIp: User IP address at upload time. Ex. "123.1.2.3". Used by - // Ares abuse scanning. - UploadIp string `json:"uploadIp,omitempty"` + // DisableServing: Disable serving any search or assist results. + DisableServing bool `json:"disableServing,omitempty"` - // UploadTimestampUsec: Timestamp of when user finished uploading the - // content. - UploadTimestampUsec int64 `json:"uploadTimestampUsec,omitempty,string"` + // DisplayName: Required. Display name of the datasource The maximum + // length is 300 characters. + DisplayName string `json:"displayName,omitempty"` - // VideoId: VideoID of the video attachments. This ID shall meets the - // Youtube ID format of 16 hex characters. For example, - // '4c14b8825af6059b' is a valid ID. - VideoId string `json:"videoId,omitempty"` + // IndexingServiceAccounts: List of service accounts that have indexing + // access. + IndexingServiceAccounts []string `json:"indexingServiceAccounts,omitempty"` - // VideoThumbnailBlobId: Full Blobstore ID for the video thumbnail. - VideoThumbnailBlobId string `json:"videoThumbnailBlobId,omitempty"` + // ItemsVisibility: This field restricts visibility to items at the + // datasource level. Items within the datasource are restricted to the + // union of users and groups included in this field. Note that, this + // does not ensure access to a specific item, as users need to have ACL + // permissions on the contained items. This ensures a high level access + // on the entire datasource, and that the individual items are not + // shared outside this visibility. + ItemsVisibility []*GSuitePrincipal `json:"itemsVisibility,omitempty"` - // VirusScanResult: Result for a virus scan. - // - // Possible values: - // "UNKNOWN_VIRUS_SCAN_RESULT" - // "CLEAN" - // "INFECTED" - // "ERROR" - // "POLICY_VIOLATION" - The document violates Google's policy for - // executables and archives. - VirusScanResult string `json:"virusScanResult,omitempty"` - - // ForceSendFields is a list of field names (e.g. "BlobPath") 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:"-"` + // Name: The name of the datasource resource. Format: + // datasources/{source_id}. The name is ignored when creating a + // datasource. + Name string `json:"name,omitempty"` - // NullFields is a list of field names (e.g. "BlobPath") 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:"-"` -} + // OperationIds: IDs of the Long Running Operations (LROs) currently + // running for this schema. + OperationIds []string `json:"operationIds,omitempty"` -func (s *AppsDynamiteSharedBackendUploadMetadata) MarshalJSON() ([]byte, error) { - type NoMethod AppsDynamiteSharedBackendUploadMetadata - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} + // ReturnThumbnailUrls: Can a user request to get thumbnail URI for + // Items indexed in this data source. + ReturnThumbnailUrls bool `json:"returnThumbnailUrls,omitempty"` -// AppsDynamiteSharedBackendUploadMetadataMigratedFromHangoutsMetadata: -// Metadata for attachments migrated from Hangouts -type AppsDynamiteSharedBackendUploadMetadataMigratedFromHangoutsMetadata struct { - PhotoId *AppsDynamiteSharedBackendUploadMetadataMigratedFromHangoutsMetadataPhotoId `json:"photoId,omitempty"` + // ShortName: A short name or alias for the source. This value will be + // used to match the 'source' operator. For example, if the short name + // is ** then queries like *source:* will only return + // results for this source. The value must be unique across all + // datasources. The value must only contain alphanumeric characters + // (a-zA-Z0-9). The value cannot start with 'google' and cannot be one + // of the following: mail, gmail, docs, drive, groups, sites, calendar, + // hangouts, gplus, keep, people, teams. Its maximum length is 32 + // characters. + ShortName string `json:"shortName,omitempty"` - UpdateTimestampUsec int64 `json:"updateTimestampUsec,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. "PhotoId") 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 is a list of field names (e.g. + // "DisableModifications") 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. "PhotoId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "DisableModifications") 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 *AppsDynamiteSharedBackendUploadMetadataMigratedFromHangoutsMetadata) MarshalJSON() ([]byte, error) { - type NoMethod AppsDynamiteSharedBackendUploadMetadataMigratedFromHangoutsMetadata +func (s *DataSource) MarshalJSON() ([]byte, error) { + type NoMethod DataSource raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -type AppsDynamiteSharedBackendUploadMetadataMigratedFromHangoutsMetadataPhotoId struct { - PhotoId int64 `json:"photoId,omitempty,string"` +// DataSourceIndexStats: Aggregation of items by status code as of the +// specified date. +type DataSourceIndexStats struct { + // Date: The date for which index stats were calculated. If the date of + // request is not the current date then stats calculated on the next day + // are returned. Stats are calculated close to mid night in this case. + // If date of request is current date, then real time stats are + // returned. + Date *Date `json:"date,omitempty"` - UserId int64 `json:"userId,omitempty,string"` + // ItemCountByStatus: Number of items aggregrated by status code. + ItemCountByStatus []*ItemCountByStatus `json:"itemCountByStatus,omitempty"` - // ForceSendFields is a list of field names (e.g. "PhotoId") to + // ForceSendFields is a list of field names (e.g. "Date") 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 @@ -1868,8 +1285,8 @@ type AppsDynamiteSharedBackendUploadMetadataMigratedFromHangoutsMetadataPhotoId // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "PhotoId") to include in - // API requests with the JSON null value. By default, fields with empty + // NullFields is a list of field names (e.g. "Date") 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. @@ -1877,19 +1294,27 @@ type AppsDynamiteSharedBackendUploadMetadataMigratedFromHangoutsMetadataPhotoId NullFields []string `json:"-"` } -func (s *AppsDynamiteSharedBackendUploadMetadataMigratedFromHangoutsMetadataPhotoId) MarshalJSON() ([]byte, error) { - type NoMethod AppsDynamiteSharedBackendUploadMetadataMigratedFromHangoutsMetadataPhotoId +func (s *DataSourceIndexStats) MarshalJSON() ([]byte, error) { + type NoMethod DataSourceIndexStats raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -type AppsDynamiteSharedCalendarEventAnnotationData struct { - CalendarEvent *AppsDynamiteSharedCalendarEventAnnotationDataCalendarEvent `json:"calendarEvent,omitempty"` +// DataSourceRestriction: Restriction on Datasource. +type DataSourceRestriction struct { + // FilterOptions: Filter options restricting the results. If multiple + // filters are present, they are grouped by object type before joining. + // Filters with the same object type are joined conjunctively, then the + // resulting expressions are joined disjunctively. The maximum number of + // elements is 20. NOTE: Suggest API supports only few filters at the + // moment: "objecttype", "type" and "mimetype". For now, schema specific + // filters cannot be used to filter suggestions. + FilterOptions []*FilterOptions `json:"filterOptions,omitempty"` - // EventCreation: Notification about the creation of an event. - EventCreation *AppsDynamiteSharedCalendarEventAnnotationDataEventCreation `json:"eventCreation,omitempty"` + // Source: The source of restriction. + Source *Source `json:"source,omitempty"` - // ForceSendFields is a list of field names (e.g. "CalendarEvent") to + // ForceSendFields is a list of field names (e.g. "FilterOptions") 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 @@ -1897,7 +1322,7 @@ type AppsDynamiteSharedCalendarEventAnnotationData struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "CalendarEvent") to include + // NullFields is a list of field names (e.g. "FilterOptions") 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 @@ -1906,26 +1331,30 @@ type AppsDynamiteSharedCalendarEventAnnotationData struct { NullFields []string `json:"-"` } -func (s *AppsDynamiteSharedCalendarEventAnnotationData) MarshalJSON() ([]byte, error) { - type NoMethod AppsDynamiteSharedCalendarEventAnnotationData +func (s *DataSourceRestriction) MarshalJSON() ([]byte, error) { + type NoMethod DataSourceRestriction raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -type AppsDynamiteSharedCalendarEventAnnotationDataCalendarEvent struct { - // EndTime: The end time of the event. - EndTime *AppsDynamiteSharedCalendarEventAnnotationDataCalendarEventTime `json:"endTime,omitempty"` - - // EventId: ID of the event. - EventId string `json:"eventId,omitempty"` +// Date: Represents a whole calendar date, for example a date of birth. +// The time of day and time zone are either specified elsewhere or are +// not significant. The date is relative to the Proleptic Gregorian +// Calendar +// (https://en.wikipedia.org/wiki/Proleptic_Gregorian_calendar). The +// date must be a valid calendar date between the year 1 and 9999. +type Date struct { + // Day: Day of month. Must be from 1 to 31 and valid for the year and + // month. + Day int64 `json:"day,omitempty"` - // StartTime: The start time of the event. - StartTime *AppsDynamiteSharedCalendarEventAnnotationDataCalendarEventTime `json:"startTime,omitempty"` + // Month: Month of date. Must be from 1 to 12. + Month int64 `json:"month,omitempty"` - // Title: Title of the event (at the time the message was generated). - Title string `json:"title,omitempty"` + // Year: Year of date. Must be from 1 to 9999. + Year int64 `json:"year,omitempty"` - // ForceSendFields is a list of field names (e.g. "EndTime") to + // ForceSendFields is a list of field names (e.g. "Day") 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 @@ -1933,8 +1362,8 @@ type AppsDynamiteSharedCalendarEventAnnotationDataCalendarEvent struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "EndTime") to include in - // API requests with the JSON null value. By default, fields with empty + // NullFields is a list of field names (e.g. "Day") 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. @@ -1942,80 +1371,89 @@ type AppsDynamiteSharedCalendarEventAnnotationDataCalendarEvent struct { NullFields []string `json:"-"` } -func (s *AppsDynamiteSharedCalendarEventAnnotationDataCalendarEvent) MarshalJSON() ([]byte, error) { - type NoMethod AppsDynamiteSharedCalendarEventAnnotationDataCalendarEvent +func (s *Date) MarshalJSON() ([]byte, error) { + type NoMethod Date raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -type AppsDynamiteSharedCalendarEventAnnotationDataCalendarEventTime struct { - // AllDay: All day event. - AllDay *Date `json:"allDay,omitempty"` +// DateOperatorOptions: Optional. Provides a search operator for date +// properties. Search operators let users restrict the query to specific +// fields relevant to the type of item being searched. +type DateOperatorOptions struct { + // GreaterThanOperatorName: Indicates the operator name required in the + // query in order to isolate the date property using the greater-than + // operator. For example, if greaterThanOperatorName is *closedafter* + // and the property's name is *closeDate*, then queries like + // *closedafter:* show results only where the value of the + // property named *closeDate* is later than **. The operator name + // can only contain lowercase letters (a-z). The maximum length is 32 + // characters. + GreaterThanOperatorName string `json:"greaterThanOperatorName,omitempty"` - // Timed: Non all day event. - Timed string `json:"timed,omitempty"` + // LessThanOperatorName: Indicates the operator name required in the + // query in order to isolate the date property using the less-than + // operator. For example, if lessThanOperatorName is *closedbefore* and + // the property's name is *closeDate*, then queries like + // *closedbefore:* show results only where the value of the + // property named *closeDate* is earlier than **. The operator + // name can only contain lowercase letters (a-z). The maximum length is + // 32 characters. + LessThanOperatorName string `json:"lessThanOperatorName,omitempty"` - // ForceSendFields is a list of field names (e.g. "AllDay") 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:"-"` + // OperatorName: Indicates the actual string required in the query in + // order to isolate the date property. For example, suppose an issue + // tracking schema object has a property named *closeDate* that + // specifies an operator with an operatorName of *closedon*. For + // searches on that data, queries like *closedon:* show results + // only where the value of the *closeDate* property matches **. + // By contrast, a search that uses the same ** without an + // operator returns all items where ** matches the value of any + // String properties or text within the content field for the indexed + // datasource. The operator name can only contain lowercase letters + // (a-z). The maximum length is 32 characters. + OperatorName string `json:"operatorName,omitempty"` - // NullFields is a list of field names (e.g. "AllDay") 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. + // ForceSendFields is a list of field names (e.g. + // "GreaterThanOperatorName") 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. "GreaterThanOperatorName") + // 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 *AppsDynamiteSharedCalendarEventAnnotationDataCalendarEventTime) MarshalJSON() ([]byte, error) { - type NoMethod AppsDynamiteSharedCalendarEventAnnotationDataCalendarEventTime +func (s *DateOperatorOptions) MarshalJSON() ([]byte, error) { + type NoMethod DateOperatorOptions raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// AppsDynamiteSharedCalendarEventAnnotationDataEventCreation: Creation -// of an event (no extra data for now). -type AppsDynamiteSharedCalendarEventAnnotationDataEventCreation struct { -} - -// AppsDynamiteSharedCallAnnotationData: Data used to render Meet or -// Google Voice chips in Chat. See -// go/dynamite-calling-artifacts-in-chat. -type AppsDynamiteSharedCallAnnotationData struct { - // CallEndedTimestamp: Timestamp when the call ended. Used to render the - // call ended system message. - CallEndedTimestamp string `json:"callEndedTimestamp,omitempty"` - - // CallMetadata: Required. Call metadata required to create the call - // artifacts. For now, the metadata contains only the call id to - // identify the call. This field allows additional data (e.g. voice call - // type) to be added if needed in the future. - CallMetadata *AppsDynamiteSharedCallMetadata `json:"callMetadata,omitempty"` - - // CallStatus: Required. Indicates the call status for the space. Used - // to determine the chip's state. - // - // Possible values: - // "CALL_STATUS_UNSPECIFIED" - Default value for the enum. DO NOT USE. - // "CALL_STARTED" - Indicates that the call has started. - // "CALL_MISSED" - Indicates that the call is missed. - // "CALL_ENDED" - Indicates that the call has ended. - CallStatus string `json:"callStatus,omitempty"` +// DatePropertyOptions: The options for date properties. +type DatePropertyOptions struct { + // OperatorOptions: If set, describes how the date should be used as a + // search operator. + OperatorOptions *DateOperatorOptions `json:"operatorOptions,omitempty"` - // ForceSendFields is a list of field names (e.g. "CallEndedTimestamp") - // to unconditionally include in API requests. By default, fields with + // ForceSendFields is a list of field names (e.g. "OperatorOptions") 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. "CallEndedTimestamp") to + // NullFields is a list of field names (e.g. "OperatorOptions") 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 @@ -2025,20 +1463,17 @@ type AppsDynamiteSharedCallAnnotationData struct { NullFields []string `json:"-"` } -func (s *AppsDynamiteSharedCallAnnotationData) MarshalJSON() ([]byte, error) { - type NoMethod AppsDynamiteSharedCallAnnotationData +func (s *DatePropertyOptions) MarshalJSON() ([]byte, error) { + type NoMethod DatePropertyOptions raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// AppsDynamiteSharedCallMetadata: Metadata required to generate call -// artifacts. This can either be the metadata for a Meet or, in the -// future, Google Voice call. -type AppsDynamiteSharedCallMetadata struct { - // MeetMetadata: Metadata specific for the Meet call. - MeetMetadata *AppsDynamiteSharedMeetMetadata `json:"meetMetadata,omitempty"` +// DateValues: List of date values. +type DateValues struct { + Values []*Date `json:"values,omitempty"` - // ForceSendFields is a list of field names (e.g. "MeetMetadata") to + // ForceSendFields is a list of field names (e.g. "Values") 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 @@ -2046,34 +1481,29 @@ type AppsDynamiteSharedCallMetadata struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "MeetMetadata") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as + // NullFields is a list of field names (e.g. "Values") 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 *AppsDynamiteSharedCallMetadata) MarshalJSON() ([]byte, error) { - type NoMethod AppsDynamiteSharedCallMetadata +func (s *DateValues) MarshalJSON() ([]byte, error) { + type NoMethod DateValues raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// AppsDynamiteSharedCardClickSuggestion: Card click which identifies -// one suggestion provided by the app/bot. -type AppsDynamiteSharedCardClickSuggestion struct { - // ActionId: Identify the button/action that created the suggestion. A - // simple example would be a card button within the stream, or the id - // which can identify a specific suggestion. - ActionId string `json:"actionId,omitempty"` - - // SuggestionMessageId: The message_id for the message that was posted - // by the app/bot. - SuggestionMessageId *MessageId `json:"suggestionMessageId,omitempty"` +// DebugOptions: Shared request debug options for all cloudsearch RPC +// methods. +type DebugOptions struct { + // EnableDebugging: If you are asked by Google to help with debugging, + // set this field. Otherwise, ignore this field. + EnableDebugging bool `json:"enableDebugging,omitempty"` - // ForceSendFields is a list of field names (e.g. "ActionId") to + // ForceSendFields is a list of field names (e.g. "EnableDebugging") 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 @@ -2081,36 +1511,34 @@ type AppsDynamiteSharedCardClickSuggestion struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "ActionId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "EnableDebugging") 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 *AppsDynamiteSharedCardClickSuggestion) MarshalJSON() ([]byte, error) { - type NoMethod AppsDynamiteSharedCardClickSuggestion +func (s *DebugOptions) MarshalJSON() ([]byte, error) { + type NoMethod DebugOptions raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// AppsDynamiteSharedChatItem: Next Id: 5 -type AppsDynamiteSharedChatItem struct { - // ActivityInfo: Information needed to render the specific type of feed - // item. - ActivityInfo []*AppsDynamiteSharedChatItemActivityInfo `json:"activityInfo,omitempty"` +type DeleteQueueItemsRequest struct { + // ConnectorName: The name of connector making this call. Format: + // datasources/{source_id}/connectors/{ID} + ConnectorName string `json:"connectorName,omitempty"` - // GroupInfo: Only populated on read path and should not be persisted in - // storage. - GroupInfo *AppsDynamiteSharedChatItemGroupInfo `json:"groupInfo,omitempty"` + // DebugOptions: Common debug options. + DebugOptions *DebugOptions `json:"debugOptions,omitempty"` - // MessageInfo: Additional information about the original chat message - // that isn't captured in the top-level message proto. - MessageInfo *AppsDynamiteSharedMessageInfo `json:"messageInfo,omitempty"` + // Queue: The name of a queue to delete items from. + Queue string `json:"queue,omitempty"` - // ForceSendFields is a list of field names (e.g. "ActivityInfo") to + // ForceSendFields is a list of field names (e.g. "ConnectorName") 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 @@ -2118,7 +1546,7 @@ type AppsDynamiteSharedChatItem struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "ActivityInfo") to include + // NullFields is a list of field names (e.g. "ConnectorName") 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 @@ -2127,22 +1555,25 @@ type AppsDynamiteSharedChatItem struct { NullFields []string `json:"-"` } -func (s *AppsDynamiteSharedChatItem) MarshalJSON() ([]byte, error) { - type NoMethod AppsDynamiteSharedChatItem +func (s *DeleteQueueItemsRequest) MarshalJSON() ([]byte, error) { + type NoMethod DeleteQueueItemsRequest raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -type AppsDynamiteSharedChatItemActivityInfo struct { - FeedItemNudge *AppsDynamiteSharedChatItemActivityInfoFeedItemNudge `json:"feedItemNudge,omitempty"` - - FeedItemReactions *AppsDynamiteSharedChatItemActivityInfoFeedItemReactions `json:"feedItemReactions,omitempty"` - - FeedItemThreadReply *AppsDynamiteSharedChatItemActivityInfoFeedItemThreadReply `json:"feedItemThreadReply,omitempty"` - - FeedItemUserMention *AppsDynamiteSharedChatItemActivityInfoFeedItemUserMention `json:"feedItemUserMention,omitempty"` +// DisplayedProperty: A reference to a top-level property within the +// object that should be displayed in search results. The values of the +// chosen properties is displayed in the search results along with the +// display label for that property if one is specified. If a display +// label is not specified, only the values is shown. +type DisplayedProperty struct { + // PropertyName: The name of the top-level property as defined in a + // property definition for the object. If the name is not a defined + // property in the schema, an error is given when attempting to update + // the schema. + PropertyName string `json:"propertyName,omitempty"` - // ForceSendFields is a list of field names (e.g. "FeedItemNudge") to + // ForceSendFields is a list of field names (e.g. "PropertyName") 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 @@ -2150,7 +1581,7 @@ type AppsDynamiteSharedChatItemActivityInfo struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "FeedItemNudge") to include + // NullFields is a list of field names (e.g. "PropertyName") 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 @@ -2159,27 +1590,23 @@ type AppsDynamiteSharedChatItemActivityInfo struct { NullFields []string `json:"-"` } -func (s *AppsDynamiteSharedChatItemActivityInfo) MarshalJSON() ([]byte, error) { - type NoMethod AppsDynamiteSharedChatItemActivityInfo +func (s *DisplayedProperty) MarshalJSON() ([]byte, error) { + type NoMethod DisplayedProperty raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// AppsDynamiteSharedChatItemActivityInfoFeedItemNudge: Existence of -// this attribute indicates that the AF item is for a message nudge -// item. -type AppsDynamiteSharedChatItemActivityInfoFeedItemNudge struct { - // NudgeType: Nudge type of the nudge feed item. - // - // Possible values: - // "UNDEFINED" - // "REPLY" - The message receiver is nudged since the message may - // require a reply. - // "FOLLOW_UP" - The message creator is nudged since the message may - // require a follow-up. - NudgeType string `json:"nudgeType,omitempty"` - - // ForceSendFields is a list of field names (e.g. "NudgeType") to +// DoubleOperatorOptions: Used to provide a search operator for double +// properties. This is optional. Search operators let users restrict the +// query to specific fields relevant to the type of item being searched. +type DoubleOperatorOptions struct { + // OperatorName: Indicates the operator name required in the query in + // order to use the double property in sorting or as a facet. The + // operator name can only contain lowercase letters (a-z). The maximum + // length is 32 characters. + OperatorName string `json:"operatorName,omitempty"` + + // ForceSendFields is a list of field names (e.g. "OperatorName") 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 @@ -2187,43 +1614,28 @@ type AppsDynamiteSharedChatItemActivityInfoFeedItemNudge struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "NudgeType") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as + // NullFields is a list of field names (e.g. "OperatorName") 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 *AppsDynamiteSharedChatItemActivityInfoFeedItemNudge) MarshalJSON() ([]byte, error) { - type NoMethod AppsDynamiteSharedChatItemActivityInfoFeedItemNudge +func (s *DoubleOperatorOptions) MarshalJSON() ([]byte, error) { + type NoMethod DoubleOperatorOptions raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// AppsDynamiteSharedChatItemActivityInfoFeedItemReactions: Existence of -// this attribute indicates that the AF item is for message reactions, -// but it is intentionally left empty since the list of reactions can be -// found in the top-level Message.Reactions. -type AppsDynamiteSharedChatItemActivityInfoFeedItemReactions struct { -} - -// AppsDynamiteSharedChatItemActivityInfoFeedItemThreadReply: Existence -// of this attribute indicates that the AF item is for thread reply. -type AppsDynamiteSharedChatItemActivityInfoFeedItemThreadReply struct { - // ReplyType: Reply type of the thread reply feed item. The field is not - // persisted in storage. It's populated when constructing Activity Feed - // payload. - // - // Possible values: - // "UNSPECIFIED" - // "ROOT" - The thread reply feed item is for the root message poster. - // "FOLLOWER" - The thread reply feed item is for a thread follower - // who's not the root message poster. - ReplyType string `json:"replyType,omitempty"` +// DoublePropertyOptions: The options for double properties. +type DoublePropertyOptions struct { + // OperatorOptions: If set, describes how the double should be used as a + // search operator. + OperatorOptions *DoubleOperatorOptions `json:"operatorOptions,omitempty"` - // ForceSendFields is a list of field names (e.g. "ReplyType") to + // ForceSendFields is a list of field names (e.g. "OperatorOptions") 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 @@ -2231,34 +1643,27 @@ type AppsDynamiteSharedChatItemActivityInfoFeedItemThreadReply struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "ReplyType") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "OperatorOptions") 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 *AppsDynamiteSharedChatItemActivityInfoFeedItemThreadReply) MarshalJSON() ([]byte, error) { - type NoMethod AppsDynamiteSharedChatItemActivityInfoFeedItemThreadReply +func (s *DoublePropertyOptions) MarshalJSON() ([]byte, error) { + type NoMethod DoublePropertyOptions raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// AppsDynamiteSharedChatItemActivityInfoFeedItemUserMention: Existence -// of this attribute indicates that the AF item is for a user mention -// item. -type AppsDynamiteSharedChatItemActivityInfoFeedItemUserMention struct { - // Type: User mention type - // - // Possible values: - // "TYPE_UNSPECIFIED" - Mention type not specified. - // "DIRECT" - Mentioned directly by name. - // "ALL" - Mentioned by @all. - Type string `json:"type,omitempty"` +// DoubleValues: List of double values. +type DoubleValues struct { + Values []float64 `json:"values,omitempty"` - // ForceSendFields is a list of field names (e.g. "Type") to + // ForceSendFields is a list of field names (e.g. "Values") 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 @@ -2266,7 +1671,7 @@ type AppsDynamiteSharedChatItemActivityInfoFeedItemUserMention struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Type") to include in API + // NullFields is a list of field names (e.g. "Values") 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 @@ -2275,204 +1680,39 @@ type AppsDynamiteSharedChatItemActivityInfoFeedItemUserMention struct { NullFields []string `json:"-"` } -func (s *AppsDynamiteSharedChatItemActivityInfoFeedItemUserMention) MarshalJSON() ([]byte, error) { - type NoMethod AppsDynamiteSharedChatItemActivityInfoFeedItemUserMention +func (s *DoubleValues) MarshalJSON() ([]byte, error) { + type NoMethod DoubleValues raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// AppsDynamiteSharedChatItemGroupInfo: Information about the space that -// the item originated from. This will be used to display Activity Feed -// items from rooms, and only contain the necessary information, such as -// the space name and group attributes. NEXT TAG: 6 -type AppsDynamiteSharedChatItemGroupInfo struct { - // AttributeCheckerGroupType: This is needed to determine what type of - // group the source message came from to support click-to-source. - // - // Possible values: - // "ATTRIBUTE_CHECKER_GROUP_TYPE_UNSPECIFIED" - LINT.IfChange - // "ONE_TO_ONE_HUMAN_DM" - A 1:1 DM that has two human users. - // Deprecated. Use IMMUTABLE_MEMBERSHIP_HUMAN_DM instead. - // "ONE_TO_ONE_BOT_DM" - A 1:1 DM between a human user and a bot. - // "IMMUTABLE_MEMBERSHIP_GROUP_DM" - A group DM that has multiple - // human users with immutable group membership. Deprecated. Use - // IMMUTABLE_MEMBERSHIP_HUMAN_DM instead. - // "FLAT_ROOM" - A flat room that contains a single thread. - // "THREADED_ROOM" - A threaded room. Topics in this room are - // threaded, and users can reply to any topic. - // "IMMUTABLE_MEMBERSHIP_HUMAN_DM" - A DM with immutable group - // membership. It can be a 1:1 DM or a group DM with multiple human - // users. - // "ACTIVITY_FEED" - Represents an Activity Feed space. These groups - // are modeled like flat rooms and contain items for users to catch up - // on important things. Each user should only have one group of this - // type. See go/activity-feed. Deprecated: The go/activity-feed project - // is cancelled and this should no longer be used. - // "SHORTCUT" - Represents a shortcut space. These groups are modeled - // like flat rooms and contain items for users to catch up on important - // things such as user mentioned messages and starred messages. - // LINT.ThenChange(//depot/google3/logs/proto/apps_dynamite/dynamite_visu - // al_element_entry.proto:LoggingGroupType,//depot/google3/java/com/googl - // e/apps/dynamite/v1/web/ui/group/groups.js:LoggingGroupType) - AttributeCheckerGroupType string `json:"attributeCheckerGroupType,omitempty"` - - GroupName string `json:"groupName,omitempty"` - - // GroupReadTimeUsec: Timestamp of when the group containing the message - // has been read by the user. - GroupReadTimeUsec int64 `json:"groupReadTimeUsec,omitempty,string"` - - // InlineThreadingEnabled: Indicates whether the group has inline - // replies enabled. If enabled, clients will render the space with - // inline replies. - InlineThreadingEnabled bool `json:"inlineThreadingEnabled,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "AttributeCheckerGroupType") 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. - // "AttributeCheckerGroupType") 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 *AppsDynamiteSharedChatItemGroupInfo) MarshalJSON() ([]byte, error) { - type NoMethod AppsDynamiteSharedChatItemGroupInfo - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +func (s *DoubleValues) UnmarshalJSON(data []byte) error { + type NoMethod DoubleValues + var s1 struct { + Values []gensupport.JSONFloat64 `json:"values"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.Values = make([]float64, len(s1.Values)) + for i := range s1.Values { + s.Values[i] = float64(s1.Values[i]) + } + return nil } -// AppsDynamiteSharedContentReportType: Denotes a type of content report -// a user can send. -type AppsDynamiteSharedContentReportType struct { - // SystemViolation: Required. Google-defined system violation, covering - // the most common violations. - // +// DriveFollowUpRestrict: Drive follow-up search restricts (e.g. +// "followup:suggestions"). +type DriveFollowUpRestrict struct { // Possible values: - // "VIOLATION_UNSPECIFIED" - Default value if unset. Do not use - // directly. This value should not appear as a selectable violation - // during content reporting. - // "HARASSMENT" - "Harassment, offensive, or rude behavior" - // "DISCRIMINATION" - "Discrimination or harmful stereotypes against - // anyone, including protected groups" - // "EXPLICIT_CONTENT" - "Explicit content that's graphic, violent, or - // otherwise inappropriate" - // "SPAM" - "Spam" - // "CONFIDENTIAL_INFORMATION" - "Confidential information" - // "SENSITIVE_INFORMATION" - "Sensitive information" - // "FRAUD" - Phishing, impersonation/misrepresentation, or deceiving - // other users into sharing information under false pretenses. - // "MALWARE" - Malware, viruses, Trojan horses, corrupted files, - // destructive code, etc. - // "ILLEGAL_ACTIVITIES" - Promoting, organizing, or engaging in - // illegal activities. - // "OTHER" - "Something else" - SystemViolation string `json:"systemViolation,omitempty"` - - // ForceSendFields is a list of field names (e.g. "SystemViolation") 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. "SystemViolation") 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 *AppsDynamiteSharedContentReportType) MarshalJSON() ([]byte, error) { - type NoMethod AppsDynamiteSharedContentReportType - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} + // "UNSPECIFIED" + // "FOLLOWUP_SUGGESTIONS" + // "FOLLOWUP_ACTION_ITEMS" + Type string `json:"type,omitempty"` -// AppsDynamiteSharedCustomEmoji: Proto representation of a custom -// emoji. May be used in both APIs and in Spanner, but certain fields -// should be restricted to one or the other. See the per-field -// documentation for details. NEXT_TAG: 14 -type AppsDynamiteSharedCustomEmoji struct { - // BlobId: ID for the underlying image data in Blobstore. This field - // should *only* be present in Spanner or within the server, but should - // not be exposed in public APIs. - BlobId string `json:"blobId,omitempty"` - - // ContentType: Content type of the file used to upload the emoji. Used - // for takeout. Written to Spanner when the emoji is created. - ContentType string `json:"contentType,omitempty"` - - // CreateTimeMicros: Time when the Emoji was created, in microseconds. - // This field may be present in Spanner, within the server, or in public - // APIs. - CreateTimeMicros int64 `json:"createTimeMicros,omitempty,string"` - - // CreatorUserId: This field should *never* be persisted to Spanner. - CreatorUserId *UserId `json:"creatorUserId,omitempty"` - - // DeleteTimeMicros: Time when the emoji was deleted, in microseconds. - // This field may be present in Spanner, within the server, or in public - // APIs. Only present if the emoji has been deleted. - DeleteTimeMicros int64 `json:"deleteTimeMicros,omitempty,string"` - - // EphemeralUrl: Output only. A short-lived URL clients can use for - // directly accessing a custom emoji image. This field is intended for - // API consumption, and should *never* be persisted to Spanner. - EphemeralUrl string `json:"ephemeralUrl,omitempty"` - - // OwnerCustomerId: This field should *never* be persisted to Spanner. - OwnerCustomerId *CustomerId `json:"ownerCustomerId,omitempty"` - - // ReadToken: Opaque token that clients use to construct the URL for - // accessing the custom emoji’s image data. This field is intended for - // API consumption, and should *never* be persisted to Spanner. - ReadToken string `json:"readToken,omitempty"` - - // Shortcode: User-provided, human-readable ID for the custom emoji. - // Users are expected to observe this field in the UI instead of the - // UUID. This shortcode should be unique within an organization, but has - // no global uniqueness guarantees, unlike the UUID. This field should - // *never* be persisted to Spanner. - Shortcode string `json:"shortcode,omitempty"` - - // State: Snapshot of the current state of the emoji, which may differ - // from the source-of-truth in the CustomEmojis table. This field should - // *never* be persisted to Spanner. - // - // Possible values: - // "EMOJI_STATE_UNSPECIFIED" - // "EMOJI_ENABLED" - Emoji is visible and available to be used, - // subject to access control requirements. - // "EMOJI_SYSTEM_DISABLED" - Emoji can no longer be used (e.g. due to - // a shortcode conflict), but is not removed from existing embeddings. - // "EMOJI_HIDDEN" - Emoji is hidden from pickers, so new usages are - // not allowed, but is not removed from existing embeddings. - // "EMOJI_DELETED" - Emoji is removed everywhere and is not available - // to end-users. - State string `json:"state,omitempty"` - - UpdateTimeMicros int64 `json:"updateTimeMicros,omitempty,string"` - - // Uuid: Unique key for a custom emoji resource. Required. This field is - // *always* populated. - Uuid string `json:"uuid,omitempty"` - - // ForceSendFields is a list of field names (e.g. "BlobId") to + // ForceSendFields is a list of field names (e.g. "Type") 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 @@ -2480,7 +1720,7 @@ type AppsDynamiteSharedCustomEmoji struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "BlobId") to include in API + // NullFields is a list of field names (e.g. "Type") 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 @@ -2489,19 +1729,22 @@ type AppsDynamiteSharedCustomEmoji struct { NullFields []string `json:"-"` } -func (s *AppsDynamiteSharedCustomEmoji) MarshalJSON() ([]byte, error) { - type NoMethod AppsDynamiteSharedCustomEmoji +func (s *DriveFollowUpRestrict) MarshalJSON() ([]byte, error) { + type NoMethod DriveFollowUpRestrict raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// AppsDynamiteSharedDimension: Dimension for the uploaded attachments. -type AppsDynamiteSharedDimension struct { - Height int64 `json:"height,omitempty"` - - Width int64 `json:"width,omitempty"` +// DriveLocationRestrict: Drive location search restricts (e.g. +// "is:starred"). +type DriveLocationRestrict struct { + // Possible values: + // "UNSPECIFIED" + // "TRASHED" + // "STARRED" + Type string `json:"type,omitempty"` - // ForceSendFields is a list of field names (e.g. "Height") to + // ForceSendFields is a list of field names (e.g. "Type") 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 @@ -2509,7 +1752,7 @@ type AppsDynamiteSharedDimension struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Height") to include in API + // NullFields is a list of field names (e.g. "Type") 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 @@ -2518,47 +1761,43 @@ type AppsDynamiteSharedDimension struct { NullFields []string `json:"-"` } -func (s *AppsDynamiteSharedDimension) MarshalJSON() ([]byte, error) { - type NoMethod AppsDynamiteSharedDimension +func (s *DriveLocationRestrict) MarshalJSON() ([]byte, error) { + type NoMethod DriveLocationRestrict raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// AppsDynamiteSharedDlpMetricsMetadata: LINT.IfChange -type AppsDynamiteSharedDlpMetricsMetadata struct { - // DlpStatus: [required] Describes the DLP status of message send and - // attachment upload events. - // +// DriveMimeTypeRestrict: Drive mime-type search restricts (e.g. +// "type:pdf"). +type DriveMimeTypeRestrict struct { // Possible values: - // "DLP_STATUS_UNKNOWN" - // "DLP_DISABLED" - Rule fetch and evaluation are skipped because DLP - // experiment is not enabled. - // "DLP_ENABLED_NO_RULE_FETCH" - Rule fetch and evaluation are skipped - // because there is no rule to be fetched (e.g. message is sent from a - // consumer, or there is no message.) - // "DLP_ENABLED_RULES_FETCHED_NO_RULES" - Rule fetch happened, but - // rule evalution is skipped because the fetch returned no rules. - // "DLP_ENABLED_RULES_FETCHED_NO_APPLICABLE_RULES" - Rule fetch - // happened, but rule evaluation is skipped because none of the rules - // are applicable. - // "DLP_ENABLED_RULES_FETCHED_AND_EVALUATED" - Rule fetch and - // evaluation were performed and completed successfully. - // "DLP_ENABLED_SCAN_TIMEOUT" - DLP scan was attempted but timed out. - // "DLP_ENABLED_SCAN_FAILED" - Generic DLP failure. This case covers - // any other errors/exceptions in the Chat backend that caused the DLP - // scan to fail. - DlpStatus string `json:"dlpStatus,omitempty"` - - // ForceSendFields is a list of field names (e.g. "DlpStatus") 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:"-"` + // "UNSPECIFIED" + // "PDF" + // "DOCUMENT" + // "PRESENTATION" + // "SPREADSHEET" + // "FORM" + // "DRAWING" + // "SCRIPT" + // "MAP" + // "IMAGE" + // "AUDIO" + // "VIDEO" + // "FOLDER" + // "ARCHIVE" + // "SITE" + Type string `json:"type,omitempty"` - // NullFields is a list of field names (e.g. "DlpStatus") to include in - // API requests with the JSON null value. By default, fields with empty + // ForceSendFields is a list of field names (e.g. "Type") 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. "Type") 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. @@ -2566,35 +1805,25 @@ type AppsDynamiteSharedDlpMetricsMetadata struct { NullFields []string `json:"-"` } -func (s *AppsDynamiteSharedDlpMetricsMetadata) MarshalJSON() ([]byte, error) { - type NoMethod AppsDynamiteSharedDlpMetricsMetadata +func (s *DriveMimeTypeRestrict) MarshalJSON() ([]byte, error) { + type NoMethod DriveMimeTypeRestrict raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// AppsDynamiteSharedDocument: Data for rendering a document. -type AppsDynamiteSharedDocument struct { - // FileId: Unique file ID. - FileId string `json:"fileId,omitempty"` - - // Justification: Justification to explain why this document is being - // suggested. - Justification *AppsDynamiteSharedJustification `json:"justification,omitempty"` - - // LastModifiedTime: Time the document was last modified. - LastModifiedTime string `json:"lastModifiedTime,omitempty"` - - // MimeType: Used to determine which icon to render (e.g. docs, slides, - // sheets) - MimeType string `json:"mimeType,omitempty"` - - // Title: Title of the document. - Title string `json:"title,omitempty"` - - // Url: URL of the document. - Url string `json:"url,omitempty"` +// DriveTimeSpanRestrict: The time span search restrict (e.g. +// "after:2017-09-11 before:2017-09-12"). +type DriveTimeSpanRestrict struct { + // Possible values: + // "UNSPECIFIED" + // "TODAY" + // "YESTERDAY" + // "LAST_7_DAYS" + // "LAST_30_DAYS" - Not Enabled + // "LAST_90_DAYS" - Not Enabled + Type string `json:"type,omitempty"` - // ForceSendFields is a list of field names (e.g. "FileId") to + // ForceSendFields is a list of field names (e.g. "Type") 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 @@ -2602,7 +1831,7 @@ type AppsDynamiteSharedDocument struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "FileId") to include in API + // NullFields is a list of field names (e.g. "Type") 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 @@ -2611,20 +1840,33 @@ type AppsDynamiteSharedDocument struct { NullFields []string `json:"-"` } -func (s *AppsDynamiteSharedDocument) MarshalJSON() ([]byte, error) { - type NoMethod AppsDynamiteSharedDocument +func (s *DriveTimeSpanRestrict) MarshalJSON() ([]byte, error) { + type NoMethod DriveTimeSpanRestrict raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -type AppsDynamiteSharedEmoji struct { - // CustomEmoji: A custom emoji. - CustomEmoji *AppsDynamiteSharedCustomEmoji `json:"customEmoji,omitempty"` +// EmailAddress: A person's email address. +type EmailAddress struct { + // CustomType: If the value of type is custom, this property contains + // the custom type string. + CustomType string `json:"customType,omitempty"` + + // EmailAddress: The email address. + EmailAddress string `json:"emailAddress,omitempty"` + + // EmailUrl: The URL to send email. + EmailUrl string `json:"emailUrl,omitempty"` + + // Primary: Indicates if this is the user's primary email. Only one + // entry can be marked as primary. + Primary bool `json:"primary,omitempty"` - // Unicode: A basic emoji represented by a unicode string. - Unicode string `json:"unicode,omitempty"` + // Type: The type of the email account. Acceptable values are: "custom", + // "home", "other", "work". + Type string `json:"type,omitempty"` - // ForceSendFields is a list of field names (e.g. "CustomEmoji") to + // ForceSendFields is a list of field names (e.g. "CustomType") 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 @@ -2632,68 +1874,66 @@ type AppsDynamiteSharedEmoji struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "CustomEmoji") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as + // NullFields is a list of field names (e.g. "CustomType") 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 *AppsDynamiteSharedEmoji) MarshalJSON() ([]byte, error) { - type NoMethod AppsDynamiteSharedEmoji +func (s *EmailAddress) MarshalJSON() ([]byte, error) { + type NoMethod EmailAddress raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// AppsDynamiteSharedFindDocumentSuggestion: Data for a FindDocument -// suggestion type. -type AppsDynamiteSharedFindDocumentSuggestion struct { - // DocumentSuggestions: List of documents to render as suggestions. - DocumentSuggestions []*AppsDynamiteSharedDocument `json:"documentSuggestions,omitempty"` +type EnterpriseTopazFrontendTeamsLink struct { + // Type: The identifying link type + Type string `json:"type,omitempty"` - // ShowActionButtons: Whether to show the action buttons in the card for - // the suggestions. - ShowActionButtons bool `json:"showActionButtons,omitempty"` + Url *SafeUrlProto `json:"url,omitempty"` - // ForceSendFields is a list of field names (e.g. "DocumentSuggestions") - // to unconditionally include in API requests. By default, fields with + // ForceSendFields is a list of field names (e.g. "Type") 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. "DocumentSuggestions") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "Type") 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 *AppsDynamiteSharedFindDocumentSuggestion) MarshalJSON() ([]byte, error) { - type NoMethod AppsDynamiteSharedFindDocumentSuggestion +func (s *EnterpriseTopazFrontendTeamsLink) MarshalJSON() ([]byte, error) { + type NoMethod EnterpriseTopazFrontendTeamsLink raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// AppsDynamiteSharedGroupDetails: NEXT TAG: 3 A GroupDetails proto will -// store the information pertaining to single Group. -type AppsDynamiteSharedGroupDetails struct { - // Description: A simple text that describes the purpose of a single - // Group, the general theme of the topics to be posted and/or the - // denominator of the Group participants. - Description string `json:"description,omitempty"` +type EnterpriseTopazFrontendTeamsPersonCorePhoneNumber struct { + // PhoneNumber: Phone number in no particular format (as comes from the + // Focus profile). + PhoneNumber string `json:"phoneNumber,omitempty"` - // Guidelines: A simple text describing the rules and expectations from - // members when participating in conversation. - Guidelines string `json:"guidelines,omitempty"` + // PhoneUrl: Phone number URL + PhoneUrl *SafeUrlProto `json:"phoneUrl,omitempty"` - // ForceSendFields is a list of field names (e.g. "Description") to + // Possible values: + // "UNKNOWN" + // "MOBILE" + // "OFFICE" + // "OTHER" + Type string `json:"type,omitempty"` + + // ForceSendFields is a list of field names (e.g. "PhoneNumber") 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 @@ -2701,7 +1941,7 @@ type AppsDynamiteSharedGroupDetails struct { // 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 + // NullFields is a list of field names (e.g. "PhoneNumber") 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 @@ -2710,20 +1950,125 @@ type AppsDynamiteSharedGroupDetails struct { NullFields []string `json:"-"` } -func (s *AppsDynamiteSharedGroupDetails) MarshalJSON() ([]byte, error) { - type NoMethod AppsDynamiteSharedGroupDetails +func (s *EnterpriseTopazFrontendTeamsPersonCorePhoneNumber) MarshalJSON() ([]byte, error) { + type NoMethod EnterpriseTopazFrontendTeamsPersonCorePhoneNumber raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -type AppsDynamiteSharedGroupVisibility struct { +// EnterpriseTopazSidekickAgendaEntry: An AgendaEntry, e.g., a Calendar +// Event. +type EnterpriseTopazSidekickAgendaEntry struct { + // AgendaItemUrl: URL of the agenda item. + AgendaItemUrl string `json:"agendaItemUrl,omitempty"` + + // Chronology: The chronology from the present. + // + // Possible values: + // "STALE" - Stale. + // "ALL_DAY" - All day. + // "PAST" - Past. + // "RECENTLY_PAST" - Recently past. + // "PRESENT" - Present. + // "NEAR_FUTURE" - Near future. + // "FUTURE" - Future. + Chronology string `json:"chronology,omitempty"` + + // Creator: Person who created the event. + Creator *EnterpriseTopazSidekickPerson `json:"creator,omitempty"` + + // CurrentUserAttendingStatus: Attendance status for the current user + // making the request. This is a convenience data member in order to + // avoid figuring out the same by iterating the invitee list above on + // the caller side. + // // Possible values: - // "UNKNOWN" - Do not use. - // "PRIVATE" - Explicitly invited users may join the room. - // "PUBLIC" - Anyone in the domain may join the room. - State string `json:"state,omitempty"` + // "AWAITING" - Awaiting for the user to set the status. + // "YES" - Attending. + // "NO" - Not attending. + // "MAYBE" - Tentatively attending. + CurrentUserAttendingStatus string `json:"currentUserAttendingStatus,omitempty"` + + // Description: Description of the agenda item (i.e., typically, summary + // in calendar event). + Description string `json:"description,omitempty"` + + // Document: Items related to the current AgendaEntry. E.g., related + // drive/mail/groups documents. + Document []*EnterpriseTopazSidekickCommonDocument `json:"document,omitempty"` + + // EndDate: End date "Friday, August 26" in the user's timezone. + EndDate string `json:"endDate,omitempty"` + + // EndTime: End time (HH:mm) in the user's timezone. + EndTime string `json:"endTime,omitempty"` + + // EndTimeMs: End time in milliseconds + EndTimeMs int64 `json:"endTimeMs,omitempty,string"` + + // EventId: Event id provided by Calendar API. + EventId string `json:"eventId,omitempty"` + + // GuestsCanInviteOthers: Whether the guests can invite other guests. + GuestsCanInviteOthers bool `json:"guestsCanInviteOthers,omitempty"` + + // GuestsCanModify: Whether the guests can modify the event. + GuestsCanModify bool `json:"guestsCanModify,omitempty"` + + // GuestsCanSeeGuests: Whether the guests of the event can be seen. If + // false, the user is going to be reported as the only attendee to the + // meeting, even though there may be more attendees. + GuestsCanSeeGuests bool `json:"guestsCanSeeGuests,omitempty"` + + // HangoutId: Hangout meeting identifier. + HangoutId string `json:"hangoutId,omitempty"` + + // HangoutUrl: Absolute URL for the Hangout meeting. + HangoutUrl string `json:"hangoutUrl,omitempty"` - // ForceSendFields is a list of field names (e.g. "State") to + // Invitee: People attending the meeting. + Invitee []*EnterpriseTopazSidekickPerson `json:"invitee,omitempty"` + + // IsAllDay: Whether the entry lasts all day. + IsAllDay bool `json:"isAllDay,omitempty"` + + // LastModificationTimeMs: Last time the event was modified. + LastModificationTimeMs int64 `json:"lastModificationTimeMs,omitempty,string"` + + // Location: Agenda item location. + Location string `json:"location,omitempty"` + + // NotifyToUser: Whether this should be notified to the user. + NotifyToUser bool `json:"notifyToUser,omitempty"` + + // OtherAttendeesExcluded: Whether guest list is not returned because + // number of attendees is too large. + OtherAttendeesExcluded bool `json:"otherAttendeesExcluded,omitempty"` + + // RequesterIsOwner: Whether the requester is the owner of the agenda + // entry. + RequesterIsOwner bool `json:"requesterIsOwner,omitempty"` + + // ShowFullEventDetailsToUse: Whether the details of this entry should + // be displayed to the user. + ShowFullEventDetailsToUse bool `json:"showFullEventDetailsToUse,omitempty"` + + // StartDate: Start date "Friday, August 26" in the user's timezone. + StartDate string `json:"startDate,omitempty"` + + // StartTime: Start time (HH:mm) in the user's timezone. + StartTime string `json:"startTime,omitempty"` + + // StartTimeMs: Start time in milliseconds. + StartTimeMs int64 `json:"startTimeMs,omitempty,string"` + + // TimeZone: User's calendar timezone; + TimeZone string `json:"timeZone,omitempty"` + + // Title: Title of the agenda item. + Title string `json:"title,omitempty"` + + // ForceSendFields is a list of field names (e.g. "AgendaItemUrl") 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 @@ -2731,50 +2076,29 @@ type AppsDynamiteSharedGroupVisibility struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "State") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as + // NullFields is a list of field names (e.g. "AgendaItemUrl") 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 *AppsDynamiteSharedGroupVisibility) MarshalJSON() ([]byte, error) { - type NoMethod AppsDynamiteSharedGroupVisibility +func (s *EnterpriseTopazSidekickAgendaEntry) MarshalJSON() ([]byte, error) { + type NoMethod EnterpriseTopazSidekickAgendaEntry raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// AppsDynamiteSharedJustification: Data for rendering a justification -// for a document. -type AppsDynamiteSharedJustification struct { - // ActionTime: Time the action took place. - ActionTime string `json:"actionTime,omitempty"` +type EnterpriseTopazSidekickAgendaGroupCardProto struct { + AgendaItem []*EnterpriseTopazSidekickAgendaItem `json:"agendaItem,omitempty"` - // ActionType: Type of action performed on the document. - // - // Possible values: - // "ACTION_TYPE_UNSPECIFIED" - Unspecified action. - // "COMMENTED" - Commented on document. - // "CREATED" - Created document. - // "EDITED" - Edited document. - // "PRESENTED" - Presented document. - // "SHARED" - Shared document. - // "VIEWED" - Viewed document. - // "COMMENT_RESOLVED" - Resolved comment on document. - // "SENT" - Sent document over chat/email. - ActionType string `json:"actionType,omitempty"` - - // DocumentOwner: Owner of the document. - DocumentOwner *AppsDynamiteSharedJustificationPerson `json:"documentOwner,omitempty"` - - // Topics: Words or phrases from the user's query that describes the - // document content. (Ex: Users query is "Can you share the document - // about Bullseye?" the extracted topic would be "Bullseye"). - Topics []string `json:"topics,omitempty"` - - // ForceSendFields is a list of field names (e.g. "ActionTime") to + Context *EnterpriseTopazSidekickAgendaGroupCardProtoContext `json:"context,omitempty"` + + CurrentAgendaItem *EnterpriseTopazSidekickAgendaItem `json:"currentAgendaItem,omitempty"` + + // ForceSendFields is a list of field names (e.g. "AgendaItem") 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 @@ -2782,7 +2106,7 @@ type AppsDynamiteSharedJustification struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "ActionTime") to include in + // NullFields is a list of field names (e.g. "AgendaItem") 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 @@ -2791,22 +2115,33 @@ type AppsDynamiteSharedJustification struct { NullFields []string `json:"-"` } -func (s *AppsDynamiteSharedJustification) MarshalJSON() ([]byte, error) { - type NoMethod AppsDynamiteSharedJustification +func (s *EnterpriseTopazSidekickAgendaGroupCardProto) MarshalJSON() ([]byte, error) { + type NoMethod EnterpriseTopazSidekickAgendaGroupCardProto raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// AppsDynamiteSharedJustificationPerson: Data for rendering a person -// associated with a document. -type AppsDynamiteSharedJustificationPerson struct { - // IsRecipient: Whether the person is the recipient of the suggestions. - IsRecipient bool `json:"isRecipient,omitempty"` +// EnterpriseTopazSidekickAgendaGroupCardProtoContext: The context that +// resulted in the generation of the card. +type EnterpriseTopazSidekickAgendaGroupCardProtoContext struct { + // Context: User friendly free text that describes the context of the + // card (e.g. "Next meeting with Bob"). This is largely only applicable + // when the card is generated from a query. + Context string `json:"context,omitempty"` - // User: Obfuscated user ID. - User *UserId `json:"user,omitempty"` + // Date: Localized free text that describes the dates represented by the + // card. Currently, the card will only represent a single day. + Date string `json:"date,omitempty"` + + // EventsRestrict: Represents restrictions applied to the events + // requested in the user's query. + // + // Possible values: + // "NONE" - No specific event was requested. + // "NEXT_MEETING" - The next meeting was requested. + EventsRestrict string `json:"eventsRestrict,omitempty"` - // ForceSendFields is a list of field names (e.g. "IsRecipient") to + // 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 @@ -2814,45 +2149,29 @@ type AppsDynamiteSharedJustificationPerson struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "IsRecipient") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as + // NullFields is a list of field names (e.g. "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 *AppsDynamiteSharedJustificationPerson) MarshalJSON() ([]byte, error) { - type NoMethod AppsDynamiteSharedJustificationPerson +func (s *EnterpriseTopazSidekickAgendaGroupCardProtoContext) MarshalJSON() ([]byte, error) { + type NoMethod EnterpriseTopazSidekickAgendaGroupCardProtoContext raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// AppsDynamiteSharedMeetMetadata: Metadata specific for a Meet call -// that are required to generate call artifacts. -type AppsDynamiteSharedMeetMetadata struct { - // MeetingCode: Required. A globally unique code (e.g. "cxv-zbgj-wzw") - // that points to a meeting space. Note: Meeting codes may be - // regenerated, which will cause old meeting codes to become invalid. - MeetingCode string `json:"meetingCode,omitempty"` +type EnterpriseTopazSidekickAgendaItem struct { + ConflictedGroup *EnterpriseTopazSidekickConflictingEventsCardProto `json:"conflictedGroup,omitempty"` - // MeetingType: Required. Type of the meeting. This controls the chat - // client UX. - // - // Possible values: - // "MEETING_TYPE_UNSPECIFIED" - // "HUDDLE" - // "CALL" - MeetingType string `json:"meetingType,omitempty"` - - // MeetingUrl: Required. A URL, in the format - // "https://meet.google.com/*" (e.g. - // https://meet.google.com/cxv-zbgj-wzw), to identify and access the - // meeting space. - MeetingUrl string `json:"meetingUrl,omitempty"` - - // ForceSendFields is a list of field names (e.g. "MeetingCode") to + GapBefore *EnterpriseTopazSidekickGap `json:"gapBefore,omitempty"` + + Meeting *EnterpriseTopazSidekickAgendaEntry `json:"meeting,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ConflictedGroup") 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 @@ -2860,34 +2179,42 @@ type AppsDynamiteSharedMeetMetadata struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "MeetingCode") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ConflictedGroup") 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 *AppsDynamiteSharedMeetMetadata) MarshalJSON() ([]byte, error) { - type NoMethod AppsDynamiteSharedMeetMetadata +func (s *EnterpriseTopazSidekickAgendaItem) MarshalJSON() ([]byte, error) { + type NoMethod EnterpriseTopazSidekickAgendaItem raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// AppsDynamiteSharedMessageComponentSearchInfo: Metadata used to -// describe search information in a specific component of a chat -// message, for example an annotation or an attachment. -type AppsDynamiteSharedMessageComponentSearchInfo struct { - // MatchedSearch: Whether the whole component matched the search. - MatchedSearch bool `json:"matchedSearch,omitempty"` +// EnterpriseTopazSidekickAnswerAnswerList: A list of answers +// represented as free text. +type EnterpriseTopazSidekickAnswerAnswerList struct { + // LabeledAnswer: Answers that have a corresponding label. + LabeledAnswer []*EnterpriseTopazSidekickAnswerAnswerListLabeledAnswer `json:"labeledAnswer,omitempty"` - // TitleTextWithDescription: Backend should always set - // TextWithDescription.text_body based on the title (or its snippet) of - // the annotation or attachment. - TitleTextWithDescription *AppsDynamiteSharedTextWithDescription `json:"titleTextWithDescription,omitempty"` + // Type: Answer type. + // + // Possible values: + // "UNKNOWN" + // "PERSON_ADDRESS" + // "PERSON_BIRTHDAY" + // "PERSON_DEPARTMENT" + // "PERSON_DESK_LOCATION" + // "PERSON_EMAIL" + // "PERSON_JOB_TITLE" + // "PERSON_PHONE" + Type string `json:"type,omitempty"` - // ForceSendFields is a list of field names (e.g. "MatchedSearch") to + // ForceSendFields is a list of field names (e.g. "LabeledAnswer") 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 @@ -2895,7 +2222,7 @@ type AppsDynamiteSharedMessageComponentSearchInfo struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "MatchedSearch") to include + // NullFields is a list of field names (e.g. "LabeledAnswer") 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 @@ -2904,35 +2231,23 @@ type AppsDynamiteSharedMessageComponentSearchInfo struct { NullFields []string `json:"-"` } -func (s *AppsDynamiteSharedMessageComponentSearchInfo) MarshalJSON() ([]byte, error) { - type NoMethod AppsDynamiteSharedMessageComponentSearchInfo +func (s *EnterpriseTopazSidekickAnswerAnswerList) MarshalJSON() ([]byte, error) { + type NoMethod EnterpriseTopazSidekickAnswerAnswerList raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// AppsDynamiteSharedMessageInfo: Information that references a Dynamite -// chat message. This is only used for Activity Feed messages. -type AppsDynamiteSharedMessageInfo struct { - // MessageId: Id of the source chat message. This is kept here because - // the top-level message ID to refers the AF message ID. - MessageId *MessageId `json:"messageId,omitempty"` +// EnterpriseTopazSidekickAnswerAnswerListLabeledAnswer: An answer with +// a corresponding label. +type EnterpriseTopazSidekickAnswerAnswerListLabeledAnswer struct { + // Answer: The free text answer. + Answer string `json:"answer,omitempty"` - // MessageType: The type of the source chat message. - // - // Possible values: - // "MESSAGE_TYPE_UNSPECIFIED" - Default value where type is not - // specified. - // "INLINE_REPLY" - The source chat message is a threaded reply to - // another message. - MessageType string `json:"messageType,omitempty"` - - // TopicReadTimeUsec: Timestamp of when the topic containing the message - // has been read by the user. This is populated if the message - // references an inline reply, in which case the space may be marked as - // read but the topic still has unread messages. - TopicReadTimeUsec int64 `json:"topicReadTimeUsec,omitempty,string"` - - // ForceSendFields is a list of field names (e.g. "MessageId") to + // Label: A localized label for the answer (e.g. "Cell phone" vs "Desk + // phone"). + Label string `json:"label,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Answer") 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 @@ -2940,8 +2255,8 @@ type AppsDynamiteSharedMessageInfo struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "MessageId") to include in - // API requests with the JSON null value. By default, fields with empty + // NullFields is a list of field names (e.g. "Answer") 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. @@ -2949,30 +2264,66 @@ type AppsDynamiteSharedMessageInfo struct { NullFields []string `json:"-"` } -func (s *AppsDynamiteSharedMessageInfo) MarshalJSON() ([]byte, error) { - type NoMethod AppsDynamiteSharedMessageInfo +func (s *EnterpriseTopazSidekickAnswerAnswerListLabeledAnswer) MarshalJSON() ([]byte, error) { + type NoMethod EnterpriseTopazSidekickAnswerAnswerListLabeledAnswer raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// AppsDynamiteSharedMessageIntegrationPayload: The payload(restricted -// to 1P applications) to be stored with a specific message. -type AppsDynamiteSharedMessageIntegrationPayload struct { - // ProjectNumber: Pantheon project number used to identify the calling - // app. - ProjectNumber int64 `json:"projectNumber,omitempty,string"` +// EnterpriseTopazSidekickAnswerSuggestedQueryAnswerCard: Contains a +// list of suggested queries. Allows the user to determine what natural +// language queries they can ask Cloud Search (e.g. "what can I search +// for?"). +type EnterpriseTopazSidekickAnswerSuggestedQueryAnswerCard struct { + // SuggestedQueryCategory: A list of queries to suggest. + SuggestedQueryCategory []*EnterpriseTopazSidekickAnswerSuggestedQueryCategory `json:"suggestedQueryCategory,omitempty"` + + // ForceSendFields is a list of field names (e.g. + // "SuggestedQueryCategory") 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. "SuggestedQueryCategory") + // 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:"-"` +} - TasksMessageIntegrationPayload *AppsDynamiteSharedTasksMessageIntegrationPayload `json:"tasksMessageIntegrationPayload,omitempty"` +func (s *EnterpriseTopazSidekickAnswerSuggestedQueryAnswerCard) MarshalJSON() ([]byte, error) { + type NoMethod EnterpriseTopazSidekickAnswerSuggestedQueryAnswerCard + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} - // Type: An enum indicating which 1P application's payload this is. This - // field is required to add 1P payload. +// EnterpriseTopazSidekickAnswerSuggestedQueryCategory: Contains a list +// of suggested queries for a single category. +type EnterpriseTopazSidekickAnswerSuggestedQueryCategory struct { + // Category: The query list category. // // Possible values: - // "PAYLOAD_TYPE_UNSPECIFIED" - // "TASKS" - Type string `json:"type,omitempty"` + // "UNKNOWN" - Unknown. + // "CALENDAR" - Calendar based queries (e.g. "my agenda for + // tomorrow"). + // "DOCUMENT" - Document based queries (e.g. "files shared with me"). + // "PEOPLE" - People based queries (e.g. "what is x's email + // address?"). + Category string `json:"category,omitempty"` + + // IsEnabled: Whether this category is enabled. + IsEnabled bool `json:"isEnabled,omitempty"` - // ForceSendFields is a list of field names (e.g. "ProjectNumber") to + // Query: List of suggested queries to show the user. + Query []string `json:"query,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Category") 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 @@ -2980,67 +2331,238 @@ type AppsDynamiteSharedMessageIntegrationPayload struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "ProjectNumber") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as + // NullFields is a list of field names (e.g. "Category") 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 *AppsDynamiteSharedMessageIntegrationPayload) MarshalJSON() ([]byte, error) { - type NoMethod AppsDynamiteSharedMessageIntegrationPayload +func (s *EnterpriseTopazSidekickAnswerSuggestedQueryCategory) MarshalJSON() ([]byte, error) { + type NoMethod EnterpriseTopazSidekickAnswerSuggestedQueryCategory raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// AppsDynamiteSharedMessageSearchInfo: Metadata used to describe how to -// render a message in search results page, e.g., highlighting and -// snipetting. In future, we can use this proto to return more search -// specific data attached to a message. -type AppsDynamiteSharedMessageSearchInfo struct { - // MatchedSegmentsInTextBody: Current usage: - - // DescriptionType=KEYWORD_MATCH is populated in this field to return - // metadata for keyword matches, which clients can use to highlight - // matched segments in a message's text_body. - DescriptionType=SNIPPET - // can be used to return metadata describing how a message's text_body - // can be broken up to provide a snippet. - MatchedSegmentsInTextBody []*AppsDynamiteSharedTextSegmentsWithDescription `json:"matchedSegmentsInTextBody,omitempty"` +// EnterpriseTopazSidekickAssistCardProto: Wrapper proto for the Assist +// cards. +type EnterpriseTopazSidekickAssistCardProto struct { + // AgendaGroupCardProto: Agenda group card. + AgendaGroupCardProto *EnterpriseTopazSidekickAgendaGroupCardProto `json:"agendaGroupCardProto,omitempty"` + + // CardMetadata: Card metadata such as chronology and render mode of the + // card. + CardMetadata *EnterpriseTopazSidekickCardMetadata `json:"cardMetadata,omitempty"` + + // CardType: Card type. + // + // Possible values: + // "UNKNOWN_TYPE" - The default type, an unknown card type. + // "AGENDA" - The user's agenda for the day. + // "CHANGELISTS" - Changelists. + // "CONFLICTING_MEETINGS" - Any group of meetings for the day that are + // overlapping. + // "CREATE_NOTES_FOR_MEETING" - Create notes for a meeting specified + // in the request. + // "CREATE_NOTES_FOR_MEETING_REQUEST" - Create notes for meeting + // query. + // "CUSTOMER_NEWS" - News about your SFDC customers. + // "FIND_MEETING_TIME" - Find a time for two people to meet. + // "NEXT_MEETING" - The user's next non-declined meeting. + // "PERSONALIZED_DOCS" - Important documents for you since you have + // viewed them in the last month and there's some action going on. + // "TRENDING_DOCS" - Documents that are trending in your company. A + // TRENDING_DOCS card can be of two types: TRENDING_IN_COLLABORATORS + // (i.e., Stay in the Loop) and TRENDING_IN_DOMAIN (i.e., Popular + // Content). Use DOMAIN_TRENDING_DOCS/TEAM_TRENDING_DOCS instead. + // "UPCOMING_TRIP" - An upcoming trip with all trip information along + // with calendar events in the destination timezone. + // "SUMMARY" - The Morning/Evening Summary Card for the next working + // day. + // "MEETINGS" - A meeting. When requesting meetings, the service will + // return a MEETING card for each meeting the user has in his agenda. + // "HOMEPAGE" - All cards related to the homepage (agenda, + // conflicting-meetings, summary, etc...). This type should no longer be + // used. Use HOMEPAGE_V3 instead. + // "SHARE_MEETING_DOCS" - A card to with specifics to share meeting + // documents with all attendees. + // "DISCOVER_PEOPLE" - Represents a set of users that the requesting + // user has low affinity with. + // "HOMEPAGE_V3" - All cards related to the homepage-v3 (agenda-group, + // WIP, etc...) + // "AGENDA_GROUP" - A group of agenda-events (meeting, conflicts) + // "WORK_IN_PROGRESS" - The documents that you were recently working + // on. + // "GET_AND_KEEP_AHEAD" - (v3) The "get and keep ahead" card for today + // and tomorrow + // "GENERIC_ANSWER_CARD" - Generic answer card. + // "THIRD_PARTY_ANSWER_CARD" - Third party answer card. + // "DOMAIN_TRENDING_DOCS" - Documents that are trending in your + // company/domain (i.e., Popular Content). + // "TEAM_TRENDING_DOCS" - Documents that are trending in your team + // (i.e., Stay in the Loop). + // "DOCUMENT_LIST_ANSWER_CARD" - Documents that match the user's query + // (e.g. sheets shared with me). + // "SUGGESTED_QUERY_ANSWER_CARD" - A help card that provides examples + // of queries the user can ask. + // "PERSON_ANSWER_CARD" - Answer card for a single person (e.g. what + // is x's phone number). + // "RELATED_PEOPLE_ANSWER_CARD" - Answer card for a list of people + // related to the person that is the subject of the query (e.g. who + // reports to x). + // "PERSON_KNOWLEDGE_CARD" - Knowledge card for a single person and + // their related people. + // "PEOPLE_SEARCH_PROMOTION_CARD" - People Search promotion card. + CardType string `json:"cardType,omitempty"` + + // ConflictingMeetingsCard: Conflicting events card. + ConflictingMeetingsCard *EnterpriseTopazSidekickConflictingEventsCardProto `json:"conflictingMeetingsCard,omitempty"` + + // DocumentListCard: Answer card for documents that are applicable to + // the current query. + DocumentListCard *EnterpriseTopazSidekickDocumentPerCategoryList `json:"documentListCard,omitempty"` + + // DocumentsWithMentions: Documents with mentions. + DocumentsWithMentions *EnterpriseTopazSidekickDocumentPerCategoryList `json:"documentsWithMentions,omitempty"` + + // FindMeetingTimeCard: Find meeting time card. + FindMeetingTimeCard *EnterpriseTopazSidekickFindMeetingTimeCardProto `json:"findMeetingTimeCard,omitempty"` + + // GenericAnswerCard: Generic answer card. + GenericAnswerCard *EnterpriseTopazSidekickGenericAnswerCard `json:"genericAnswerCard,omitempty"` + + // GetAndKeepAheadCard: Get and keep ahead card. + GetAndKeepAheadCard *EnterpriseTopazSidekickGetAndKeepAheadCardProto `json:"getAndKeepAheadCard,omitempty"` + + // Meeting: Meeting card. + Meeting *EnterpriseTopazSidekickAgendaEntry `json:"meeting,omitempty"` + + // MeetingNotesCard: Meeting notes card. + MeetingNotesCard *EnterpriseTopazSidekickMeetingNotesCardProto `json:"meetingNotesCard,omitempty"` + + // MeetingNotesCardRequest: Request for meeting notes card. + MeetingNotesCardRequest *EnterpriseTopazSidekickMeetingNotesCardRequest `json:"meetingNotesCardRequest,omitempty"` + + // PeopleDisambiguationCard: The people disambiguation card. + PeopleDisambiguationCard *EnterpriseTopazSidekickPeopleDisambiguationCard `json:"peopleDisambiguationCard,omitempty"` + + // PeoplePromotionCard: People Search promotion card. + PeoplePromotionCard *PeoplePromotionCard `json:"peoplePromotionCard,omitempty"` + + // PersonAnswerCard: Answer card that represents a single person. + PersonAnswerCard *EnterpriseTopazSidekickPeopleAnswerPersonAnswerCard `json:"personAnswerCard,omitempty"` + + // PersonProfileCard: Full profile card. + PersonProfileCard *EnterpriseTopazSidekickPersonProfileCard `json:"personProfileCard,omitempty"` + + // PersonalizedDocsCard: Card with recommended documents for the user. + PersonalizedDocsCard *EnterpriseTopazSidekickPersonalizedDocsCardProto `json:"personalizedDocsCard,omitempty"` + + // RelatedPeopleAnswerCard: Answer card that represents a list of people + // related to a person. + RelatedPeopleAnswerCard *EnterpriseTopazSidekickPeopleAnswerRelatedPeopleAnswerCard `json:"relatedPeopleAnswerCard,omitempty"` + + // ShareMeetingDocsCard: Sahre meeting docs card. + ShareMeetingDocsCard *EnterpriseTopazSidekickShareMeetingDocsCardProto `json:"shareMeetingDocsCard,omitempty"` + + // SharedDocuments: Shared documents. + SharedDocuments *EnterpriseTopazSidekickDocumentPerCategoryList `json:"sharedDocuments,omitempty"` + + // SuggestedQueryAnswerCard: Answer card for what natural language + // queries the user can ask. + SuggestedQueryAnswerCard *EnterpriseTopazSidekickAnswerSuggestedQueryAnswerCard `json:"suggestedQueryAnswerCard,omitempty"` + + // ThirdPartyAnswerCard: Third party answer cards. + ThirdPartyAnswerCard *ThirdPartyGenericCard `json:"thirdPartyAnswerCard,omitempty"` + + // WorkInProgressCardProto: Work In Progress card. + WorkInProgressCardProto *EnterpriseTopazSidekickRecentDocumentsCardProto `json:"workInProgressCardProto,omitempty"` // ForceSendFields is a list of field names (e.g. - // "MatchedSegmentsInTextBody") 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. + // "AgendaGroupCardProto") 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. - // "MatchedSegmentsInTextBody") to include in API requests with the JSON - // null value. By default, fields with empty values are omitted from API - // requests. However, any field with an empty value appearing in - // NullFields will be sent to the server as null. It is an error if a - // field in this list has a non-empty value. This may be used to include - // null fields in Patch requests. + // NullFields is a list of field names (e.g. "AgendaGroupCardProto") 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 *AppsDynamiteSharedMessageSearchInfo) MarshalJSON() ([]byte, error) { - type NoMethod AppsDynamiteSharedMessageSearchInfo +func (s *EnterpriseTopazSidekickAssistCardProto) MarshalJSON() ([]byte, error) { + type NoMethod EnterpriseTopazSidekickAssistCardProto raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// AppsDynamiteSharedOrganizationInfo: Contains info about the entity -// that something is, or is owned by. -type AppsDynamiteSharedOrganizationInfo struct { - ConsumerInfo *AppsDynamiteSharedOrganizationInfoConsumerInfo `json:"consumerInfo,omitempty"` +// EnterpriseTopazSidekickCardMetadata: Card metadata. +type EnterpriseTopazSidekickCardMetadata struct { + // CardCategory: Declares a preference for how this card should be + // packed in MSCR. All cards in a response must correspond to a single + // category. As a result, cards may be dropped from the response if this + // field is set. Any card that does not match the category of the card + // with the highest priority in the response will be dropped. + // + // Possible values: + // "DEFAULT" - Let MSCR decide how this card should be packed. Most + // cards should choose this type. This type should largely be considered + // equivalent to ANSWER. However, this is not guaranteed to be the case + // as the request to MSCR may override the static configuration. + // "ANSWER" - This card should be rendered as an answer card. + // "KNOWLEDGE" - This card should be rendered as a knowledge card (a + // non-organic result). + // "HOMEPAGE" - This card should be rendered in the Homepage. + CardCategory string `json:"cardCategory,omitempty"` + + // CardId: An ID to identify the card and match actions to it. Be + // thoughtful of new card IDs since actions will be associated to that + // ID. E.g., if two card IDs collide, the system will think that the + // actions have been applied to the same card. Similarly, if EAS can + // return multiple cards of the same type (e.g., Meetings), ensure that + // the card_id identifies a given instance of the card so that, e.g., + // dismissals only affect the dismissed card as opposed to affecting all + // meeting cards. + CardId string `json:"cardId,omitempty"` + + // Chronology: Chronology. + // + // Possible values: + // "UNKNOWN" - Unknown chronology (default). + // "PAST" - Past. + // "RECENTLY_PAST" - Recently past. + // "PRESENT" - Present. + // "NEAR_FUTURE" - Near future. + // "FUTURE" - Future. + Chronology string `json:"chronology,omitempty"` + + // DebugInfo: Debug info (only reported if request's debug_level > 0). + DebugInfo string `json:"debugInfo,omitempty"` + + // NlpMetadata: Information about the NLP done to get the card. + NlpMetadata *EnterpriseTopazSidekickNlpMetadata `json:"nlpMetadata,omitempty"` - CustomerInfo *AppsDynamiteSharedOrganizationInfoCustomerInfo `json:"customerInfo,omitempty"` + // RankingParams: Ranking params. + RankingParams *EnterpriseTopazSidekickRankingParams `json:"rankingParams,omitempty"` - // ForceSendFields is a list of field names (e.g. "ConsumerInfo") to + // RenderMode: Render mode. + // + // Possible values: + // "UNKNOWN_RENDER" - Unknown mode (default). + // "COLLAPSED" - Collapsed. + // "EXPANDED" - Expanded. + RenderMode string `json:"renderMode,omitempty"` + + // ForceSendFields is a list of field names (e.g. "CardCategory") 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 @@ -3048,7 +2570,7 @@ type AppsDynamiteSharedOrganizationInfo struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "ConsumerInfo") to include + // NullFields is a list of field names (e.g. "CardCategory") 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 @@ -3057,21 +2579,19 @@ type AppsDynamiteSharedOrganizationInfo struct { NullFields []string `json:"-"` } -func (s *AppsDynamiteSharedOrganizationInfo) MarshalJSON() ([]byte, error) { - type NoMethod AppsDynamiteSharedOrganizationInfo +func (s *EnterpriseTopazSidekickCardMetadata) MarshalJSON() ([]byte, error) { + type NoMethod EnterpriseTopazSidekickCardMetadata raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// AppsDynamiteSharedOrganizationInfoConsumerInfo: Intentionally empty. -// Used to disambiguate consumer and customer use cases in oneof below. -type AppsDynamiteSharedOrganizationInfoConsumerInfo struct { -} - -type AppsDynamiteSharedOrganizationInfoCustomerInfo struct { - CustomerId *CustomerId `json:"customerId,omitempty"` +// EnterpriseTopazSidekickCommonDebugInfo: Container of debugging +// information in all object levels. Extend as needed. +type EnterpriseTopazSidekickCommonDebugInfo struct { + // Message: Debug message. + Message string `json:"message,omitempty"` - // ForceSendFields is a list of field names (e.g. "CustomerId") to + // ForceSendFields is a list of field names (e.g. "Message") 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 @@ -3079,7 +2599,7 @@ type AppsDynamiteSharedOrganizationInfoCustomerInfo struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "CustomerId") to include in + // NullFields is a list of field names (e.g. "Message") 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 @@ -3088,50 +2608,129 @@ type AppsDynamiteSharedOrganizationInfoCustomerInfo struct { NullFields []string `json:"-"` } -func (s *AppsDynamiteSharedOrganizationInfoCustomerInfo) MarshalJSON() ([]byte, error) { - type NoMethod AppsDynamiteSharedOrganizationInfoCustomerInfo +func (s *EnterpriseTopazSidekickCommonDebugInfo) MarshalJSON() ([]byte, error) { + type NoMethod EnterpriseTopazSidekickCommonDebugInfo raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// AppsDynamiteSharedOriginAppSuggestion: Stores the suggestion provided -// by apps/bots. -type AppsDynamiteSharedOriginAppSuggestion struct { - AppId *AppId `json:"appId,omitempty"` - - CardClickSuggestion *AppsDynamiteSharedCardClickSuggestion `json:"cardClickSuggestion,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:"-"` +// EnterpriseTopazSidekickCommonDocument: Representation of a document. +// NEXT_TAG: 15 +type EnterpriseTopazSidekickCommonDocument struct { + // AccessType: Access type, i.e., whether the user has access to the + // document or not. + // + // Possible values: + // "UNKNOWN_ACCESS" - Unknown access type. + // "ALLOWED" - Access allowed. + // "NOT_ALLOWED" - Access not allowed. + AccessType string `json:"accessType,omitempty"` - // 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:"-"` -} + // DebugInfo: Information for debugging. + DebugInfo *EnterpriseTopazSidekickCommonDebugInfo `json:"debugInfo,omitempty"` -func (s *AppsDynamiteSharedOriginAppSuggestion) MarshalJSON() ([]byte, error) { - type NoMethod AppsDynamiteSharedOriginAppSuggestion - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} + // DocumentId: Document id. + DocumentId string `json:"documentId,omitempty"` + + // DriveDocumentMetadata: Drive document metadata. + DriveDocumentMetadata *EnterpriseTopazSidekickCommonDocumentDriveDocumentMetadata `json:"driveDocumentMetadata,omitempty"` + + // GenericUrl: Generic Drive-based url in the format of + // drive.google.com/open to be used for deeplink + GenericUrl string `json:"genericUrl,omitempty"` + + // Justification: Justification on why the document is selected. + Justification *EnterpriseTopazSidekickCommonDocumentJustification `json:"justification,omitempty"` + + // MimeType: MIME type + MimeType string `json:"mimeType,omitempty"` + + // Provenance: Document provenance. + // + // Possible values: + // "UNKNOWN_PROVENANCE" - Unknown provenance. + // "CALENDAR_DESCRIPTION" - Calendar event description. + // "CALENDAR_ATTACHMENT" - Calendar event attachment. + // "MINED" - Mined (extracted by some offline/online analysis). + // "CALENDAR_ASSIST_ATTACHMENT" - Attachment created by enterprise + // assist. + Provenance string `json:"provenance,omitempty"` + + // Reason: Justification of why this document is being returned. + // + // Possible values: + // "UNKNOWN" - Unknown justification. + // "TRENDING_IN_COLLABORATORS" - Popular documents within + // collaborators. + // "TRENDING_IN_DOMAIN" - Popular documents within the domain. + // "FREQUENTLY_VIEWED" - Documents being reviewed frequently by the + // current user . + // "FREQUENTLY_EDITED" - Documents being edited frequently by the + // current user . + // "NEW_UPDATES" - Documents updated since user's last visit. + // "NEW_COMMENTS" - Documents that receive comments since user's last + // visit. + // "EVENT_DESCRIPTION" - Documents in the calendar event description. + // "EVENT_ATTACHMENT" - Documents in the calendar event attachments + // section. + // "EVENT_METADATA_ATTACHMENT" - Documents attached in calendar event + // metadata instead of the attachment section. Event metadata is not + // visible to the final user. Enterprise assist uses this metadata to + // store auto-generated documents such as meeting notes. + // "MINED_DOCUMENT" - Documents mined, and so, probably related to the + // request context. For example, this category includes documents + // related to a meeting. + // "NEW_MENTIONS" - Documents that contains mentions of the user. + // "NEW_SHARES" - Documents that are shared with the user. + Reason string `json:"reason,omitempty"` + + // Snippet: A sampling of the text from the document. + Snippet string `json:"snippet,omitempty"` + + // ThumbnailUrl: Thumbnail URL. + ThumbnailUrl string `json:"thumbnailUrl,omitempty"` + + // Title: Title of the document. + Title string `json:"title,omitempty"` -type AppsDynamiteSharedPhoneNumber struct { - // Type: The phone number type, e.g., work, mobile, etc. + // Type: Type of the document. + // + // Possible values: + // "UNKNOWN" - If the type is unknown or not represented in this enum. + // "DOCUMENT" - Drive document types Writely, Word, etc. + // "PRESENTATION" - Presently, PowerPoint, etc. + // "SPREADSHEET" - Trix, Excel, etc. + // "PDF" - File types for Gdrive objects are below. PDF. + // "IMAGE" - Image. + // "BINARY_BLOB" - Fall-back for unknown Gdrive types. + // "FUSION_TABLE" - Fusion table. + // "FOLDER" - Folder. + // "DRAWING" - Drawing. + // "VIDEO" - Video. + // "FORM" - Form. + // "LINK_URL" - Link formats uncategorized URL links + // "LINK_GO" - meaningful links that should be renderred specifically + // "LINK_GOO_GL" - Link to goo.gl. + // "LINK_BIT_LY" - Link to bit_ly. + // "LINK_GMAIL" - Link to Gmail. + // "LINK_MAILTO" - Mailto link. + // "VIDEO_YOUTUBE" - Videos Youtube videos. + // "VIDEO_LIVE" - Live streams (e.g., liveplayer.googleplex.com) + // "GROUPS" - Other types. Google Groups. + // "NEWS" - Google News. + // "SITES" - Google Sites. + // "HANGOUT" - Google Hangout. + // "AUDIO" - Audio files. + // "MS_WORD" - Microsoft-specific file types. + // "MS_POWERPOINT" + // "MS_EXCEL" + // "MS_OUTLOOK" Type string `json:"type,omitempty"` - // Value: The actual phone number. - Value string `json:"value,omitempty"` + // Url: Absolute URL of the document. + Url string `json:"url,omitempty"` - // ForceSendFields is a list of field names (e.g. "Type") to + // ForceSendFields is a list of field names (e.g. "AccessType") 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 @@ -3139,8 +2738,8 @@ type AppsDynamiteSharedPhoneNumber struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Type") to include in API - // requests with the JSON null value. By default, fields with empty + // NullFields is a list of field names (e.g. "AccessType") 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. @@ -3148,27 +2747,62 @@ type AppsDynamiteSharedPhoneNumber struct { NullFields []string `json:"-"` } -func (s *AppsDynamiteSharedPhoneNumber) MarshalJSON() ([]byte, error) { - type NoMethod AppsDynamiteSharedPhoneNumber +func (s *EnterpriseTopazSidekickCommonDocument) MarshalJSON() ([]byte, error) { + type NoMethod EnterpriseTopazSidekickCommonDocument raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -type AppsDynamiteSharedReaction struct { - // Count: The total number of users who have reacted. - Count int64 `json:"count,omitempty"` +// EnterpriseTopazSidekickCommonDocumentDriveDocumentMetadata: Meta data +// for drive documents. +type EnterpriseTopazSidekickCommonDocumentDriveDocumentMetadata struct { + // DocumentId: The drive document cosmo id. Client could use the id to + // build a URL to open a document. Please use Document.document_id. + DocumentId string `json:"documentId,omitempty"` - // CreateTimestamp: When the first emoji of this type was added. - CreateTimestamp int64 `json:"createTimestamp,omitempty,string"` + // IsPrivate: Additional field to identify whether a document is private + // since scope set to LIMITED can mean both that the doc is private or + // that it's shared with others. is_private indicates whether the doc is + // not shared with anyone except for the owner. + IsPrivate bool `json:"isPrivate,omitempty"` - // CurrentUserParticipated: Whether the current user reacted using this - // emoji. Note: Unlike most properties of messages, this is different - // per-user. - CurrentUserParticipated bool `json:"currentUserParticipated,omitempty"` + // LastCommentTimeMs: Timestamp of the most recent comment added to the + // document in milliseconds since epoch. + LastCommentTimeMs uint64 `json:"lastCommentTimeMs,omitempty,string"` - Emoji *AppsDynamiteSharedEmoji `json:"emoji,omitempty"` + // LastEditTimeMs: Timestamp of the most recent edit from the current + // user in milliseconds since epoch. + LastEditTimeMs uint64 `json:"lastEditTimeMs,omitempty,string"` - // ForceSendFields is a list of field names (e.g. "Count") to + // LastModificationTimeMillis: Last modification time of the document + // (independent of the user that modified it). + LastModificationTimeMillis int64 `json:"lastModificationTimeMillis,omitempty,string"` + + // LastUpdatedTimeMs: Timestamp of the last updated time of the document + // in milliseconds since epoch. + LastUpdatedTimeMs uint64 `json:"lastUpdatedTimeMs,omitempty,string"` + + // LastViewTimeMs: Timestamp of the most recent view from the current + // user in milliseconds since epoch. + LastViewTimeMs uint64 `json:"lastViewTimeMs,omitempty,string"` + + // Owner: The owner of the document. + Owner *EnterpriseTopazSidekickCommonPerson `json:"owner,omitempty"` + + // Scope: ACL scope of the document which identifies the sharing status + // of the doc (e.g., limited, shared with link, team drive, ...). + // + // Possible values: + // "UNKNOWN_DOCUMENT_SCOPE" + // "LIMITED" + // "DASHER_DOMAIN_WITH_LINK" + // "DASHER_DOMAIN" + // "PUBLIC_WITH_LINK" + // "PUBLIC" + // "TEAM_DRIVE" + Scope string `json:"scope,omitempty"` + + // ForceSendFields is a list of field names (e.g. "DocumentId") 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 @@ -3176,8 +2810,8 @@ type AppsDynamiteSharedReaction struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Count") to include in API - // requests with the JSON null value. By default, fields with empty + // NullFields is a list of field names (e.g. "DocumentId") 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. @@ -3185,30 +2819,49 @@ type AppsDynamiteSharedReaction struct { NullFields []string `json:"-"` } -func (s *AppsDynamiteSharedReaction) MarshalJSON() ([]byte, error) { - type NoMethod AppsDynamiteSharedReaction +func (s *EnterpriseTopazSidekickCommonDocumentDriveDocumentMetadata) MarshalJSON() ([]byte, error) { + type NoMethod EnterpriseTopazSidekickCommonDocumentDriveDocumentMetadata raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// AppsDynamiteSharedRetentionSettings: The settings of retention period -// of a message or topic. -type AppsDynamiteSharedRetentionSettings struct { - // ExpiryTimestamp: The timestamp after which the message/topic should - // be removed, in microseconds since the epoch, when state == - // EPHEMERAL_ONE_DAY. The value should not be set in other cases. - ExpiryTimestamp int64 `json:"expiryTimestamp,omitempty,string"` +// EnterpriseTopazSidekickCommonDocumentJustification: Justification of +// why we are reporting the document. +type EnterpriseTopazSidekickCommonDocumentJustification struct { + // Justification: A locale aware message that explains why this document + // was selected. + Justification string `json:"justification,omitempty"` - // State: The retention state. + // Reason: Reason on why the document is selected. Populate for trending + // documents. // // Possible values: - // "UNKNOWN_RETENTION_STATE" - // "PERMANENT" - The message/topic should be kept permanently. - // "EPHEMERAL_ONE_DAY" - The message/topic should be kept with a - // 24-hour TTL. - State string `json:"state,omitempty"` + // "UNKNOWN" - Unknown justification. + // "TRENDING_IN_COLLABORATORS" - Popular documents within + // collaborators. + // "TRENDING_IN_DOMAIN" - Popular documents within the domain. + // "FREQUENTLY_VIEWED" - Documents being reviewed frequently by the + // current user . + // "FREQUENTLY_EDITED" - Documents being edited frequently by the + // current user . + // "NEW_UPDATES" - Documents updated since user's last visit. + // "NEW_COMMENTS" - Documents that receive comments since user's last + // visit. + // "EVENT_DESCRIPTION" - Documents in the calendar event description. + // "EVENT_ATTACHMENT" - Documents in the calendar event attachments + // section. + // "EVENT_METADATA_ATTACHMENT" - Documents attached in calendar event + // metadata instead of the attachment section. Event metadata is not + // visible to the final user. Enterprise assist uses this metadata to + // store auto-generated documents such as meeting notes. + // "MINED_DOCUMENT" - Documents mined, and so, probably related to the + // request context. For example, this category includes documents + // related to a meeting. + // "NEW_MENTIONS" - Documents that contains mentions of the user. + // "NEW_SHARES" - Documents that are shared with the user. + Reason string `json:"reason,omitempty"` - // ForceSendFields is a list of field names (e.g. "ExpiryTimestamp") to + // ForceSendFields is a list of field names (e.g. "Justification") 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 @@ -3216,72 +2869,75 @@ type AppsDynamiteSharedRetentionSettings struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "ExpiryTimestamp") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "Justification") 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 *AppsDynamiteSharedRetentionSettings) MarshalJSON() ([]byte, error) { - type NoMethod AppsDynamiteSharedRetentionSettings +func (s *EnterpriseTopazSidekickCommonDocumentJustification) MarshalJSON() ([]byte, error) { + type NoMethod EnterpriseTopazSidekickCommonDocumentJustification raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// AppsDynamiteSharedSegmentedMembershipCount: Contains info on -// membership count for member types: HUMAN_USER, APP_USER & -// ROSTER_MEMBER different states: INVITED, JOINED -type AppsDynamiteSharedSegmentedMembershipCount struct { - // Possible values: - // "MEMBER_TYPE_UNSPECIFIED" - default value - // "HUMAN_USER" - member is a human user - // "ROSTER_MEMBER" - member is a roster - MemberType string `json:"memberType,omitempty"` +// EnterpriseTopazSidekickCommonPerson: Common representation of a +// person. +type EnterpriseTopazSidekickCommonPerson struct { + // Birthday: The birthday. + Birthday *EnterpriseTopazSidekickCommonPersonBirthday `json:"birthday,omitempty"` - // MembershipCount: count of members with given type and state - MembershipCount int64 `json:"membershipCount,omitempty"` + // CellPhone: Cell phone number. + CellPhone string `json:"cellPhone,omitempty"` - // Possible values: - // "MEMBER_UNKNOWN" - Default state, do not use - // "MEMBER_INVITED" - An invitation to the space has been sent - // "MEMBER_JOINED" - User has joined the space - // "MEMBER_NOT_A_MEMBER" - User is not a member - // "MEMBER_FAILED" - This state should never be stored in Spanner. It - // is a state for responses to the clients to indicate that membership - // mutations have failed and the member is in its previous state. - MembershipState string `json:"membershipState,omitempty"` - - // ForceSendFields is a list of field names (e.g. "MemberType") 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:"-"` + // Department: The department the person works in (e.g. Engineering). + Department string `json:"department,omitempty"` - // NullFields is a list of field names (e.g. "MemberType") 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:"-"` -} + // DeskLocation: Desk location (e.g. US-MTV-PR55-5-5B1I). + DeskLocation string `json:"deskLocation,omitempty"` -func (s *AppsDynamiteSharedSegmentedMembershipCount) MarshalJSON() ([]byte, error) { - type NoMethod AppsDynamiteSharedSegmentedMembershipCount - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} + // DeskPhone: Work desk phone number. + DeskPhone string `json:"deskPhone,omitempty"` -type AppsDynamiteSharedSegmentedMembershipCounts struct { - Value []*AppsDynamiteSharedSegmentedMembershipCount `json:"value,omitempty"` + // DisplayName: The full name. + DisplayName string `json:"displayName,omitempty"` - // ForceSendFields is a list of field names (e.g. "Value") to + // Email: Email. + Email string `json:"email,omitempty"` + + // FamilyName: The last name. + FamilyName string `json:"familyName,omitempty"` + + // FullAddress: The fully formatted address (e.g. 1255 Pear Avenue, + // Mountain View 94043, United States). + FullAddress string `json:"fullAddress,omitempty"` + + // GaiaId: This field is deprecated. The obfuscated_id should be used + // instead. + GaiaId int64 `json:"gaiaId,omitempty,string"` + + // GivenName: The first name. + GivenName string `json:"givenName,omitempty"` + + // JobTitle: The person's job title (e.g. Software Engineer). + JobTitle string `json:"jobTitle,omitempty"` + + // Manager: The manager. + Manager *EnterpriseTopazSidekickCommonPerson `json:"manager,omitempty"` + + // ObfuscatedId: The obfuscated GAIA ID. + ObfuscatedId string `json:"obfuscatedId,omitempty"` + + // PhotoUrl: The URL for the Focus profile picture. + PhotoUrl string `json:"photoUrl,omitempty"` + + // StreetAddress: The street address (e.g. 1255 Pear Avenue). + StreetAddress string `json:"streetAddress,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Birthday") 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 @@ -3289,8 +2945,8 @@ type AppsDynamiteSharedSegmentedMembershipCounts struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Value") to include in API - // requests with the JSON null value. By default, fields with empty + // NullFields is a list of field names (e.g. "Birthday") 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. @@ -3298,55 +2954,17 @@ type AppsDynamiteSharedSegmentedMembershipCounts struct { NullFields []string `json:"-"` } -func (s *AppsDynamiteSharedSegmentedMembershipCounts) MarshalJSON() ([]byte, error) { - type NoMethod AppsDynamiteSharedSegmentedMembershipCounts +func (s *EnterpriseTopazSidekickCommonPerson) MarshalJSON() ([]byte, error) { + type NoMethod EnterpriseTopazSidekickCommonPerson raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// AppsDynamiteSharedSpaceInfo: Defines the representation of a single -// matching space. -type AppsDynamiteSharedSpaceInfo struct { - AvatarInfo *AppsDynamiteSharedAvatarInfo `json:"avatarInfo,omitempty"` - - AvatarUrl string `json:"avatarUrl,omitempty"` - - Description string `json:"description,omitempty"` - - GroupId *GroupId `json:"groupId,omitempty"` - - // InviterEmail: The email address of the user that invited the calling - // user to the room, if available. This field will only be populated for - // direct invites, it will be empty if the user was indirectly invited - // to the group. - InviterEmail string `json:"inviterEmail,omitempty"` - - // IsExternal: Whether this is a space that enables guest access - IsExternal bool `json:"isExternal,omitempty"` - - Name string `json:"name,omitempty"` - - // NumMembers: Deprecated. Use segmented_membership_counts instead which - // also includes other counts such as rosters. - NumMembers int64 `json:"numMembers,omitempty"` - - // SegmentedMembershipCounts: Member counts object with types of members - // and their respective counts. - SegmentedMembershipCounts *AppsDynamiteSharedSegmentedMembershipCounts `json:"segmentedMembershipCounts,omitempty"` +type EnterpriseTopazSidekickCommonPersonBirthday struct { + // Value: Unstructured birthday. + Value string `json:"value,omitempty"` - // UserMembershipState: searching user's membership state in this space - // - // Possible values: - // "MEMBER_UNKNOWN" - Default state, do not use - // "MEMBER_INVITED" - An invitation to the space has been sent - // "MEMBER_JOINED" - User has joined the space - // "MEMBER_NOT_A_MEMBER" - User is not a member - // "MEMBER_FAILED" - This state should never be stored in Spanner. It - // is a state for responses to the clients to indicate that membership - // mutations have failed and the member is in its previous state. - UserMembershipState string `json:"userMembershipState,omitempty"` - - // ForceSendFields is a list of field names (e.g. "AvatarInfo") to + // ForceSendFields is a list of field names (e.g. "Value") 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 @@ -3354,8 +2972,8 @@ type AppsDynamiteSharedSpaceInfo struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "AvatarInfo") to include in - // API requests with the JSON null value. By default, fields with empty + // NullFields is a list of field names (e.g. "Value") 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. @@ -3363,33 +2981,22 @@ type AppsDynamiteSharedSpaceInfo struct { NullFields []string `json:"-"` } -func (s *AppsDynamiteSharedSpaceInfo) MarshalJSON() ([]byte, error) { - type NoMethod AppsDynamiteSharedSpaceInfo +func (s *EnterpriseTopazSidekickCommonPersonBirthday) MarshalJSON() ([]byte, error) { + type NoMethod EnterpriseTopazSidekickCommonPersonBirthday raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// AppsDynamiteSharedTasksAnnotationData: This is the internal version -// of the API proto at -// google3/google/chat/v1/gsuite_message_integration.proto -type AppsDynamiteSharedTasksAnnotationData struct { - AssigneeChange *AppsDynamiteSharedTasksAnnotationDataAssigneeChange `json:"assigneeChange,omitempty"` - - CompletionChange *AppsDynamiteSharedTasksAnnotationDataCompletionChange `json:"completionChange,omitempty"` - - Creation *AppsDynamiteSharedTasksAnnotationDataCreation `json:"creation,omitempty"` - - DeletionChange *AppsDynamiteSharedTasksAnnotationDataDeletionChange `json:"deletionChange,omitempty"` - - // TaskId: ID of task. Will be used to create deep links to Tasks. - TaskId string `json:"taskId,omitempty"` - - // TaskProperties: Task properties after the update has been applied. - TaskProperties *AppsDynamiteSharedTasksAnnotationDataTaskProperties `json:"taskProperties,omitempty"` +// EnterpriseTopazSidekickConflictingEventsCardProto: Conflicting +// meetings card proto. +type EnterpriseTopazSidekickConflictingEventsCardProto struct { + // ConflictingEvent: All the events that conflict with main_event. + ConflictingEvent []*EnterpriseTopazSidekickAgendaEntry `json:"conflictingEvent,omitempty"` - UserDefinedMessage *AppsDynamiteSharedTasksAnnotationDataUserDefinedMessage `json:"userDefinedMessage,omitempty"` + // MainEvent: The event identified as being the most important. + MainEvent *EnterpriseTopazSidekickAgendaEntry `json:"mainEvent,omitempty"` - // ForceSendFields is a list of field names (e.g. "AssigneeChange") to + // ForceSendFields is a list of field names (e.g. "ConflictingEvent") 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 @@ -3397,7 +3004,7 @@ type AppsDynamiteSharedTasksAnnotationData struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "AssigneeChange") to + // NullFields is a list of field names (e.g. "ConflictingEvent") 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 @@ -3407,18 +3014,27 @@ type AppsDynamiteSharedTasksAnnotationData struct { NullFields []string `json:"-"` } -func (s *AppsDynamiteSharedTasksAnnotationData) MarshalJSON() ([]byte, error) { - type NoMethod AppsDynamiteSharedTasksAnnotationData +func (s *EnterpriseTopazSidekickConflictingEventsCardProto) MarshalJSON() ([]byte, error) { + type NoMethod EnterpriseTopazSidekickConflictingEventsCardProto raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -type AppsDynamiteSharedTasksAnnotationDataAssigneeChange struct { - // OldAssignee: Obfuscated user ID of previous assignee. Not set if the - // task was originally not assigned. - OldAssignee *UserId `json:"oldAssignee,omitempty"` +// EnterpriseTopazSidekickDocumentGroup: Represents a mapping between a +// document type and its corresponding documents. Use for Work in +// Progress card in v1 homepage. +type EnterpriseTopazSidekickDocumentGroup struct { + // GroupType: Document group type + // + // Possible values: + // "UNKNOWN_TYPE" - Unknown type. + // "ALL" - A mix of all the document types. + GroupType string `json:"groupType,omitempty"` - // ForceSendFields is a list of field names (e.g. "OldAssignee") to + // PersonalizedDocument: The list of corresponding documents. + PersonalizedDocument []*EnterpriseTopazSidekickCommonDocument `json:"personalizedDocument,omitempty"` + + // ForceSendFields is a list of field names (e.g. "GroupType") 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 @@ -3426,60 +3042,55 @@ type AppsDynamiteSharedTasksAnnotationDataAssigneeChange struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "OldAssignee") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as + // NullFields is a list of field names (e.g. "GroupType") 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 *AppsDynamiteSharedTasksAnnotationDataAssigneeChange) MarshalJSON() ([]byte, error) { - type NoMethod AppsDynamiteSharedTasksAnnotationDataAssigneeChange +func (s *EnterpriseTopazSidekickDocumentGroup) MarshalJSON() ([]byte, error) { + type NoMethod EnterpriseTopazSidekickDocumentGroup raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -type AppsDynamiteSharedTasksAnnotationDataCompletionChange struct { -} - -type AppsDynamiteSharedTasksAnnotationDataCreation struct { -} - -type AppsDynamiteSharedTasksAnnotationDataDeletionChange struct { -} - -// AppsDynamiteSharedTasksAnnotationDataTaskProperties: All relevant -// task properties for a Chat message. -type AppsDynamiteSharedTasksAnnotationDataTaskProperties struct { - // Assignee: Obfuscated user ID of new assignee. Not set if the task - // doesn't have an assignee. - Assignee *UserId `json:"assignee,omitempty"` - - // Completed: Whether the task is marked as completed. - Completed bool `json:"completed,omitempty"` +type EnterpriseTopazSidekickDocumentPerCategoryList struct { + Documents []*EnterpriseTopazSidekickDocumentPerCategoryListDocumentPerCategoryListEntry `json:"documents,omitempty"` - // Deleted: Whether the task is marked as deleted. - Deleted bool `json:"deleted,omitempty"` + // HelpMessage: Localized message explaining how the documents were + // derived (e.g. from the last 30 days activity). This field is + // optional. + HelpMessage string `json:"helpMessage,omitempty"` - // Description: The description of the task. If Task original - // description's length is greater than 1024, then Task BE sends the - // truncated description to Dynamite Integration Server. - Description string `json:"description,omitempty"` - - // StartDate: Set if the task has a date but no time. Source of truth in - // Tasks BE: http://shortn/_wyT7eB4Ixv - StartDate *Date `json:"startDate,omitempty"` + // Possible values: + // "UNKNOWN_LIST_TYPE" + // "MENTIONS" - All documents in the list correspond to one of the + // mention categories. + // "SHARES" - All documents in the list correspond to one of the share + // categories. + // "NEEDS_ATTENTION" - A mixture of document categories that + // correspond to documents that need the users attention (e.g. documents + // that have been explicitly shared with the user but have not been + // viewed and documents where the user was mentioned but has not + // replied). + // "VIEWS" - All documents in the list correspond to one of the view + // categories. + // "EDITS" - All documents in the list correspond to one of the edit + // categories. + ListType string `json:"listType,omitempty"` - // StartTime: Set if the task has both a date and a time. Source of - // truth in Tasks BE: http://shortn/_u6cr0F5ttE - StartTime string `json:"startTime,omitempty"` + // ListTypeDescription: Description of the types of documents present in + // the list. + ListTypeDescription string `json:"listTypeDescription,omitempty"` - // Title: The title of the task. - Title string `json:"title,omitempty"` + // ResponseMessage: Response message in case no documents are present in + // the card. + ResponseMessage string `json:"responseMessage,omitempty"` - // ForceSendFields is a list of field names (e.g. "Assignee") to + // ForceSendFields is a list of field names (e.g. "Documents") 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 @@ -3487,7 +3098,7 @@ type AppsDynamiteSharedTasksAnnotationDataTaskProperties struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Assignee") to include in + // NullFields is a list of field names (e.g. "Documents") 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 @@ -3496,38 +3107,34 @@ type AppsDynamiteSharedTasksAnnotationDataTaskProperties struct { NullFields []string `json:"-"` } -func (s *AppsDynamiteSharedTasksAnnotationDataTaskProperties) MarshalJSON() ([]byte, error) { - type NoMethod AppsDynamiteSharedTasksAnnotationDataTaskProperties +func (s *EnterpriseTopazSidekickDocumentPerCategoryList) MarshalJSON() ([]byte, error) { + type NoMethod EnterpriseTopazSidekickDocumentPerCategoryList raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// AppsDynamiteSharedTasksAnnotationDataUserDefinedMessage: Used for -// task card attachments on custom user messages that should be kept as -// is without generating an i18n event message, e.g. the user starts a -// conversation from an existing task. IMPORTANT: please don't populate -// this field yet as it could break existing flows until it's -// implemented. See code at http://shortn/_CM74CdENMx used by -// http://shortn/_5o85POJY8Q. -type AppsDynamiteSharedTasksAnnotationDataUserDefinedMessage struct { -} - -// AppsDynamiteSharedTasksMessageIntegrationPayload: A payload -// containing Tasks metadata for rendering a live card. Currently not -// used by the Tasks integration. -type AppsDynamiteSharedTasksMessageIntegrationPayload struct { -} +type EnterpriseTopazSidekickDocumentPerCategoryListDocumentPerCategoryListEntry struct { + // Possible values: + // "UNKNOWN_DOCUMENT" + // "ACTIONABLE" + // "VIEWED" + // "REPLIED" + // "MENTION_VIEWED" - Mention categories. The mention has been viewed + // by the user, but the user has not replied. + // "MENTION_REPLIED" - The user has replied to the mention. + // "MENTION_NOT_VIEWED" - The mention has not been viewed by the user. + // "SHARED_AND_VIEWED" - Share categories. Consists of documents that + // have been explicitly shared with the user. Document has been viewed. + // "SHARED_NOT_VIEWED" - Document has not been viewed. + // "EDITED" - Document has been edited. + Category string `json:"category,omitempty"` -// AppsDynamiteSharedTextSegment: Defines a segment in a text. -type AppsDynamiteSharedTextSegment struct { - // Length: Length of the segment in the text. - Length int64 `json:"length,omitempty"` + Document *EnterpriseTopazSidekickCommonDocument `json:"document,omitempty"` - // StartIndex: Start index (0-indexed and inclusive) of the segment in - // the text. - StartIndex int64 `json:"startIndex,omitempty"` + // Rationale: Reason this document was selected. + Rationale string `json:"rationale,omitempty"` - // ForceSendFields is a list of field names (e.g. "Length") to + // ForceSendFields is a list of field names (e.g. "Category") 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 @@ -3535,8 +3142,8 @@ type AppsDynamiteSharedTextSegment struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Length") to include in API - // requests with the JSON null value. By default, fields with empty + // NullFields is a list of field names (e.g. "Category") 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. @@ -3544,37 +3151,90 @@ type AppsDynamiteSharedTextSegment struct { NullFields []string `json:"-"` } -func (s *AppsDynamiteSharedTextSegment) MarshalJSON() ([]byte, error) { - type NoMethod AppsDynamiteSharedTextSegment +func (s *EnterpriseTopazSidekickDocumentPerCategoryListDocumentPerCategoryListEntry) MarshalJSON() ([]byte, error) { + type NoMethod EnterpriseTopazSidekickDocumentPerCategoryListDocumentPerCategoryListEntry raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// AppsDynamiteSharedTextSegmentsWithDescription: Defines text segments -// with description type associated. -type AppsDynamiteSharedTextSegmentsWithDescription struct { - // Possible values: - // "DESCRIPTION_TYPE_UNSPECIFIED" - // "KEYWORD_MATCH" - Indicates the text segments contain matched - // keywords. Client can highlight them in search results page. - // "SNIPPET" - Indicates the text segments represent parts of the - // snippeted text. Clients can display just these in SRP as shortened - // message. Multiple TextSegments with this DescriptionType are returned - // to denote disjointed snippets i.e. "a long test message" -> "a ... - // message" - DescriptionType string `json:"descriptionType,omitempty"` - - TextSegment []*AppsDynamiteSharedTextSegment `json:"textSegment,omitempty"` - - // ForceSendFields is a list of field names (e.g. "DescriptionType") 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. +// EnterpriseTopazSidekickFindMeetingTimeCardProto: Response to find +// meeting time among a set of people. +type EnterpriseTopazSidekickFindMeetingTimeCardProto struct { + // CommonAvailableTimeSlots: Slots when all attendees have availability. + CommonAvailableTimeSlots []*EnterpriseTopazSidekickTimeSlot `json:"commonAvailableTimeSlots,omitempty"` + + // Invitees: Invitees to the event. + Invitees []*EnterpriseTopazSidekickPerson `json:"invitees,omitempty"` + + // Requester: Requester. + Requester *EnterpriseTopazSidekickPerson `json:"requester,omitempty"` + + // ScheduledMeeting: Details about the scheduled meeting, if one exists. + ScheduledMeeting *EnterpriseTopazSidekickScheduledMeeting `json:"scheduledMeeting,omitempty"` + + // SkippedInvitees: Invitees that have been skipped in the computation, + // most likely because they are groups. + SkippedInvitees []*EnterpriseTopazSidekickPerson `json:"skippedInvitees,omitempty"` + + // TimeBoundaries: Min and max timestamp used to find a common available + // timeslot. + TimeBoundaries *EnterpriseTopazSidekickTimeSlot `json:"timeBoundaries,omitempty"` + + // TimezoneId: Timezone ID. + TimezoneId string `json:"timezoneId,omitempty"` + + // ForceSendFields is a list of field names (e.g. + // "CommonAvailableTimeSlots") 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. "CommonAvailableTimeSlots") + // 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 *EnterpriseTopazSidekickFindMeetingTimeCardProto) MarshalJSON() ([]byte, error) { + type NoMethod EnterpriseTopazSidekickFindMeetingTimeCardProto + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +type EnterpriseTopazSidekickGap struct { + // DisplayRemainingTime: Localized time string in the format: 1 hour 15 + // minutes + DisplayRemainingTime string `json:"displayRemainingTime,omitempty"` + + // EndTime: Localized time string in the format:(Locale CZ) 8:30 odp. + EndTime string `json:"endTime,omitempty"` + + EndTimeMs uint64 `json:"endTimeMs,omitempty,string"` + + RemainingTime string `json:"remainingTime,omitempty"` + + // StartTime: Localized time string in the format:(Locale CZ) 8:30 odp. + StartTime string `json:"startTime,omitempty"` + + StartTimeMs uint64 `json:"startTimeMs,omitempty,string"` + + // ForceSendFields is a list of field names (e.g. + // "DisplayRemainingTime") 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. "DescriptionType") to + // NullFields is a list of field names (e.g. "DisplayRemainingTime") 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 @@ -3584,20 +3244,20 @@ type AppsDynamiteSharedTextSegmentsWithDescription struct { NullFields []string `json:"-"` } -func (s *AppsDynamiteSharedTextSegmentsWithDescription) MarshalJSON() ([]byte, error) { - type NoMethod AppsDynamiteSharedTextSegmentsWithDescription +func (s *EnterpriseTopazSidekickGap) MarshalJSON() ([]byte, error) { + type NoMethod EnterpriseTopazSidekickGap raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// AppsDynamiteSharedTextWithDescription: Defines a text with -// descriptive text segments associated. -type AppsDynamiteSharedTextWithDescription struct { - TextBody string `json:"textBody,omitempty"` +type EnterpriseTopazSidekickGenericAnswerCard struct { + // Answer: The answer. + Answer string `json:"answer,omitempty"` - TextSegmentsWithDescription []*AppsDynamiteSharedTextSegmentsWithDescription `json:"textSegmentsWithDescription,omitempty"` + // Title: Title or header of the card. + Title string `json:"title,omitempty"` - // ForceSendFields is a list of field names (e.g. "TextBody") to + // ForceSendFields is a list of field names (e.g. "Answer") 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 @@ -3605,8 +3265,8 @@ type AppsDynamiteSharedTextWithDescription struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "TextBody") to include in - // API requests with the JSON null value. By default, fields with empty + // NullFields is a list of field names (e.g. "Answer") 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. @@ -3614,27 +3274,30 @@ type AppsDynamiteSharedTextWithDescription struct { NullFields []string `json:"-"` } -func (s *AppsDynamiteSharedTextWithDescription) MarshalJSON() ([]byte, error) { - type NoMethod AppsDynamiteSharedTextWithDescription +func (s *EnterpriseTopazSidekickGenericAnswerCard) MarshalJSON() ([]byte, error) { + type NoMethod EnterpriseTopazSidekickGenericAnswerCard raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// AppsDynamiteSharedUserBlockRelationship: User-block relationship -type AppsDynamiteSharedUserBlockRelationship struct { - HasBlockedRequester bool `json:"hasBlockedRequester,omitempty"` +// EnterpriseTopazSidekickGetAndKeepAheadCardProto: Get and keep ahead +// card +type EnterpriseTopazSidekickGetAndKeepAheadCardProto struct { + DeclinedEvents *EnterpriseTopazSidekickGetAndKeepAheadCardProtoDeclinedEvents `json:"declinedEvents,omitempty"` - IsBlockedByRequester bool `json:"isBlockedByRequester,omitempty"` + MentionedDocuments *EnterpriseTopazSidekickDocumentPerCategoryList `json:"mentionedDocuments,omitempty"` - // ForceSendFields is a list of field names (e.g. "HasBlockedRequester") - // to unconditionally include in API requests. By default, fields with + SharedDocuments *EnterpriseTopazSidekickDocumentPerCategoryList `json:"sharedDocuments,omitempty"` + + // ForceSendFields is a list of field names (e.g. "DeclinedEvents") 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. "HasBlockedRequester") to + // NullFields is a list of field names (e.g. "DeclinedEvents") 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 @@ -3644,31 +3307,18 @@ type AppsDynamiteSharedUserBlockRelationship struct { NullFields []string `json:"-"` } -func (s *AppsDynamiteSharedUserBlockRelationship) MarshalJSON() ([]byte, error) { - type NoMethod AppsDynamiteSharedUserBlockRelationship +func (s *EnterpriseTopazSidekickGetAndKeepAheadCardProto) MarshalJSON() ([]byte, error) { + type NoMethod EnterpriseTopazSidekickGetAndKeepAheadCardProto raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// AppsDynamiteSharedVideoReference: Reference to a transcoded video -// attachment. -type AppsDynamiteSharedVideoReference struct { - // Format: Available transcode format. Value is defined in - // video/storage/proto/content_header.proto - Format []int64 `json:"format,omitempty"` +// EnterpriseTopazSidekickGetAndKeepAheadCardProtoDeclinedEvents: A list +// of events where all guests declined. +type EnterpriseTopazSidekickGetAndKeepAheadCardProtoDeclinedEvents struct { + Events []*EnterpriseTopazSidekickAgendaEntry `json:"events,omitempty"` - // Status: Transcode status - // - // Possible values: - // "UNKNOWN_STATUS" - // "SUCCESS" - // "ERROR" - // "NOT_APPLICABLE" - // "THUMBNAIL_SUCCESS" - // "GO_LIVE_SUCCESS" - Status string `json:"status,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Format") to + // ForceSendFields is a list of field names (e.g. "Events") 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 @@ -3676,7 +3326,7 @@ type AppsDynamiteSharedVideoReference struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Format") to include in API + // NullFields is a list of field names (e.g. "Events") 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 @@ -3685,50 +3335,31 @@ type AppsDynamiteSharedVideoReference struct { NullFields []string `json:"-"` } -func (s *AppsDynamiteSharedVideoReference) MarshalJSON() ([]byte, error) { - type NoMethod AppsDynamiteSharedVideoReference +func (s *EnterpriseTopazSidekickGetAndKeepAheadCardProtoDeclinedEvents) MarshalJSON() ([]byte, error) { + type NoMethod EnterpriseTopazSidekickGetAndKeepAheadCardProtoDeclinedEvents raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// AppsDynamiteStorageAction: An action that describes the behavior when -// the form is submitted. For example, an Apps Script can be invoked to -// handle the form. -type AppsDynamiteStorageAction struct { - // Function: Apps Script function to invoke when the containing element - // is clicked/activated. - Function string `json:"function,omitempty"` +// EnterpriseTopazSidekickMeetingNotesCardError: Errors in the creation +// of meeting notes. +type EnterpriseTopazSidekickMeetingNotesCardError struct { + // Description: The description of the reason why create-meeting-notes + // failed. + Description string `json:"description,omitempty"` - // Possible values: - // "INTERACTION_UNSPECIFIED" - Default value if interaction is not - // specified. - // "OPEN_DIALOG" - A dialog opens by clicking the button. - Interaction string `json:"interaction,omitempty"` + // Event: The event to request meeting notes creation + Event *EnterpriseTopazSidekickAgendaEntry `json:"event,omitempty"` + // Reason: The reason why create-meeting-notes failed. + // // Possible values: - // "SPINNER" - Displays a spinner to indicate that content is loading. - // "NONE" - Nothing is displayed. - LoadIndicator string `json:"loadIndicator,omitempty"` - - // Parameters: List of action parameters. - Parameters []*AppsDynamiteStorageActionActionParameter `json:"parameters,omitempty"` - - // PersistValues: Indicates whether form values persist after the - // action. The default value is `false`. If `true`, form values remain - // after the action is triggered. When using LoadIndicator.NONE - // (workspace/add-ons/reference/rpc/google.apps.card.v1#loadindicator) - // for actions, `persist_values` = `true`is recommended, as it ensures - // that any changes made by the user after form or on change actions are - // sent to the server are not overwritten by the response. If `false`, - // the form values are cleared when the action is triggered. When - // `persist_values` is set to `false`, it is strongly recommended that - // the card use LoadIndicator.SPINNER - // (workspace/add-ons/reference/rpc/google.apps.card.v1#loadindicator) - // for all actions, as this locks the UI to ensure no changes are made - // by the user while the action is being processed. - PersistValues bool `json:"persistValues,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Function") to + // "NONE" - No reason (default value). + // "NOT_OWNER" - The user is not an owner. + // "UNKNOWN" - Unknown reason. + Reason string `json:"reason,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 @@ -3736,34 +3367,37 @@ type AppsDynamiteStorageAction struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Function") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as + // NullFields is a list of field names (e.g. "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 *AppsDynamiteStorageAction) MarshalJSON() ([]byte, error) { - type NoMethod AppsDynamiteStorageAction +func (s *EnterpriseTopazSidekickMeetingNotesCardError) MarshalJSON() ([]byte, error) { + type NoMethod EnterpriseTopazSidekickMeetingNotesCardError raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// AppsDynamiteStorageActionActionParameter: List of string parameters -// to supply when the action method is invoked. For example, consider -// three snooze buttons: snooze now, snooze 1 day, snooze next week. You -// might use action method = snooze(), passing the snooze type and -// snooze time in the list of string parameters. -type AppsDynamiteStorageActionActionParameter struct { - // Key: The name of the parameter for the action script. - Key string `json:"key,omitempty"` +// EnterpriseTopazSidekickMeetingNotesCardProto: Information about the +// meeting notes created. +type EnterpriseTopazSidekickMeetingNotesCardProto struct { + // Event: The event to request meeting notes creation. + Event *EnterpriseTopazSidekickAgendaEntry `json:"event,omitempty"` - // Value: The value of the parameter. - Value string `json:"value,omitempty"` + // FileId: Google Drive ID (a.k.a. resource ID) of the file. + FileId string `json:"fileId,omitempty"` + + // Title: Title we want to show for meeting notes in the answer card + Title string `json:"title,omitempty"` + + // Url: New URL. + Url string `json:"url,omitempty"` - // ForceSendFields is a list of field names (e.g. "Key") to + // ForceSendFields is a list of field names (e.g. "Event") 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 @@ -3771,7 +3405,7 @@ type AppsDynamiteStorageActionActionParameter struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Key") to include in API + // NullFields is a list of field names (e.g. "Event") 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 @@ -3780,30 +3414,30 @@ type AppsDynamiteStorageActionActionParameter struct { NullFields []string `json:"-"` } -func (s *AppsDynamiteStorageActionActionParameter) MarshalJSON() ([]byte, error) { - type NoMethod AppsDynamiteStorageActionActionParameter +func (s *EnterpriseTopazSidekickMeetingNotesCardProto) MarshalJSON() ([]byte, error) { + type NoMethod EnterpriseTopazSidekickMeetingNotesCardProto raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// AppsDynamiteStorageBorderStyle: The style options for the border of a -// card or widget, including the border type and color. -type AppsDynamiteStorageBorderStyle struct { - // CornerRadius: The corner radius for the border. - CornerRadius int64 `json:"cornerRadius,omitempty"` - - // StrokeColor: The colors to use when the type is `BORDER_TYPE_STROKE`. - StrokeColor *Color `json:"strokeColor,omitempty"` - - // Type: The border type. +// EnterpriseTopazSidekickMeetingNotesCardRequest: Meeting notes card +// request. +type EnterpriseTopazSidekickMeetingNotesCardRequest struct { + // CanCreateFor: Who are the meeting notes created for. // // Possible values: - // "BORDER_TYPE_UNSPECIFIED" - No value specified. - // "NO_BORDER" - No border. - // "STROKE" - Outline. - Type string `json:"type,omitempty"` + // "UNKNOWN" - Unknown (default). + // "MYSELF" - For the requester. + // "ALL_ATTENDEES" - For all the meeting attendees. + CanCreateFor []string `json:"canCreateFor,omitempty"` - // ForceSendFields is a list of field names (e.g. "CornerRadius") to + // Error: The error and reason if known error occured. + Error *EnterpriseTopazSidekickMeetingNotesCardError `json:"error,omitempty"` + + // Event: The event to request meeting notes creation + Event *EnterpriseTopazSidekickAgendaEntry `json:"event,omitempty"` + + // ForceSendFields is a list of field names (e.g. "CanCreateFor") 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 @@ -3811,7 +3445,7 @@ type AppsDynamiteStorageBorderStyle struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "CornerRadius") to include + // NullFields is a list of field names (e.g. "CanCreateFor") 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 @@ -3820,36 +3454,20 @@ type AppsDynamiteStorageBorderStyle struct { NullFields []string `json:"-"` } -func (s *AppsDynamiteStorageBorderStyle) MarshalJSON() ([]byte, error) { - type NoMethod AppsDynamiteStorageBorderStyle +func (s *EnterpriseTopazSidekickMeetingNotesCardRequest) MarshalJSON() ([]byte, error) { + type NoMethod EnterpriseTopazSidekickMeetingNotesCardRequest raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// AppsDynamiteStorageButton: A button. Can be a text button or an image -// button. -type AppsDynamiteStorageButton struct { - // AltText: The alternative text used for accessibility. Has no effect - // when an icon is set; use `icon.alt_text` instead. - AltText string `json:"altText,omitempty"` - - // Color: If set, the button is filled with a solid background. - Color *Color `json:"color,omitempty"` - - // Disabled: If true, the button is displayed in a disabled state and - // doesn't respond to user actions. - Disabled bool `json:"disabled,omitempty"` - - // Icon: The icon image. - Icon *AppsDynamiteStorageIcon `json:"icon,omitempty"` - - // OnClick: The action to perform when the button is clicked. - OnClick *AppsDynamiteStorageOnClick `json:"onClick,omitempty"` - - // Text: The text of the button. - Text string `json:"text,omitempty"` +// EnterpriseTopazSidekickNlpMetadata: Metadata about the NLP +// interpretation of the query. +type EnterpriseTopazSidekickNlpMetadata struct { + // Confidence: Confidence of the interpretation that generated this + // card. + Confidence float64 `json:"confidence,omitempty"` - // ForceSendFields is a list of field names (e.g. "AltText") to + // ForceSendFields is a list of field names (e.g. "Confidence") 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 @@ -3857,7 +3475,7 @@ type AppsDynamiteStorageButton struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "AltText") to include in + // NullFields is a list of field names (e.g. "Confidence") 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 @@ -3866,85 +3484,40 @@ type AppsDynamiteStorageButton struct { NullFields []string `json:"-"` } -func (s *AppsDynamiteStorageButton) MarshalJSON() ([]byte, error) { - type NoMethod AppsDynamiteStorageButton +func (s *EnterpriseTopazSidekickNlpMetadata) MarshalJSON() ([]byte, error) { + type NoMethod EnterpriseTopazSidekickNlpMetadata raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// AppsDynamiteStorageButtonList: A list of buttons layed out -// horizontally. -type AppsDynamiteStorageButtonList struct { - Buttons []*AppsDynamiteStorageButton `json:"buttons,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Buttons") 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. "Buttons") 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 *EnterpriseTopazSidekickNlpMetadata) UnmarshalJSON(data []byte) error { + type NoMethod EnterpriseTopazSidekickNlpMetadata + var s1 struct { + Confidence gensupport.JSONFloat64 `json:"confidence"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.Confidence = float64(s1.Confidence) + return nil } -func (s *AppsDynamiteStorageButtonList) MarshalJSON() ([]byte, error) { - type NoMethod AppsDynamiteStorageButtonList - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} +// EnterpriseTopazSidekickPeopleAnswerDisambiguationInfo: Metadata for +// disambiguation. +type EnterpriseTopazSidekickPeopleAnswerDisambiguationInfo struct { + // Disambiguation: A list of people that also matched the query. This + // list is not complete. + Disambiguation []*EnterpriseTopazSidekickPeopleAnswerDisambiguationInfoDisambiguationPerson `json:"disambiguation,omitempty"` -// AppsDynamiteStorageCard: A card is a UI element that can contain UI -// widgets such as text and images. For more information, see Cards . -// For example, the following JSON creates a card that has a header with -// the name, position, icons, and link for a contact, followed by a -// section with contact information like email and phone number. ``` { -// "header": { "title": "Heba Salam", "subtitle": "Software Engineer", -// "imageStyle": "ImageStyle.AVATAR", "imageUrl": -// "https://example.com/heba_salam.png", "imageAltText": "Avatar for -// Heba Salam" }, "sections" : [ { "header": "Contact Info", "widgets": -// [ { "decorated_text": { "icon": { "knownIcon": "EMAIL" }, "content": -// "heba.salam@example.com" } }, { "decoratedText": { "icon": { -// "knownIcon": "PERSON" }, "content": "Online" } }, { "decoratedText": -// { "icon": { "knownIcon": "PHONE" }, "content": "+1 (555) 555-1234" } -// }, { "buttons": [ { "textButton": { "text": "Share", }, "onClick": { -// "openLink": { "url": "https://example.com/share" } } }, { -// "textButton": { "text": "Edit", }, "onClick": { "action": { -// "function": "goToView", "parameters": [ { "key": "viewType", "value": -// "EDIT" } ], "loadIndicator": "LoadIndicator.SPINNER" } } } ] } ], -// "collapsible": true, "uncollapsibleWidgetsCount": 3 } ], -// "cardActions": [ { "actionLabel": "Send Feedback", "onClick": { -// "openLink": { "url": "https://example.com/feedback" } } } ], "name": -// "contact-card-K3wB6arF2H9L" } ``` -type AppsDynamiteStorageCard struct { - // CardActions: The actions of this card. They are added to a card's - // generated toolbar menu. For example, the following JSON constructs a - // card action menu with Settings and Send Feedback options: ``` - // "card_actions": [ { "actionLabel": "Setting", "onClick": { "action": - // { "functionName": "goToView", "parameters": [ { "key": "viewType", - // "value": "SETTING" } ], "loadIndicator": "LoadIndicator.SPINNER" } } - // }, { "actionLabel": "Send Feedback", "onClick": { "openLink": { - // "url": "https://example.com/feedback" } } } ] ``` - CardActions []*AppsDynamiteStorageCardCardAction `json:"cardActions,omitempty"` - - // Header: The header of the card. A header usually contains a title and - // an image. - Header *AppsDynamiteStorageCardCardHeader `json:"header,omitempty"` - - // Name: Name of the card, which is used as a identifier for the card in - // card navigation. + // Name: The name that was extracted from the query. This may be in the + // form of the given name, last name, full name, LDAP, or email address. + // This name can be considered suitable for displaying to the user and + // can largely be considered to be normalized (e.g. "Bob's" -> "Bob"). Name string `json:"name,omitempty"` - // Sections: Sections are separated by a line divider. - Sections []*AppsDynamiteStorageCardSection `json:"sections,omitempty"` - - // ForceSendFields is a list of field names (e.g. "CardActions") to + // ForceSendFields is a list of field names (e.g. "Disambiguation") 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 @@ -3952,33 +3525,34 @@ type AppsDynamiteStorageCard struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "CardActions") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Disambiguation") 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 *AppsDynamiteStorageCard) MarshalJSON() ([]byte, error) { - type NoMethod AppsDynamiteStorageCard +func (s *EnterpriseTopazSidekickPeopleAnswerDisambiguationInfo) MarshalJSON() ([]byte, error) { + type NoMethod EnterpriseTopazSidekickPeopleAnswerDisambiguationInfo raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// AppsDynamiteStorageCardCardAction: A card action is the action -// associated with the card. For example, an invoice card might include -// actions such as delete invoice, email invoice, or open the invoice in -// a browser. -type AppsDynamiteStorageCardCardAction struct { - // ActionLabel: The label that displays as the action menu item. - ActionLabel string `json:"actionLabel,omitempty"` +// EnterpriseTopazSidekickPeopleAnswerDisambiguationInfoDisambiguationPer +// son: A person that also matches the query, but was not selected due +// to a lower affinity with the requesting user. +type EnterpriseTopazSidekickPeopleAnswerDisambiguationInfoDisambiguationPerson struct { + // Person: The profile of this person. + Person *EnterpriseTopazSidekickCommonPerson `json:"person,omitempty"` - // OnClick: The onclick action for this action item. - OnClick *AppsDynamiteStorageOnClick `json:"onClick,omitempty"` + // Query: The query that can be used to produce an answer card with the + // same attribute, but for this person. + Query string `json:"query,omitempty"` - // ForceSendFields is a list of field names (e.g. "ActionLabel") to + // ForceSendFields is a list of field names (e.g. "Person") 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 @@ -3986,46 +3560,29 @@ type AppsDynamiteStorageCardCardAction struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "ActionLabel") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as + // NullFields is a list of field names (e.g. "Person") 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 *AppsDynamiteStorageCardCardAction) MarshalJSON() ([]byte, error) { - type NoMethod AppsDynamiteStorageCardCardAction +func (s *EnterpriseTopazSidekickPeopleAnswerDisambiguationInfoDisambiguationPerson) MarshalJSON() ([]byte, error) { + type NoMethod EnterpriseTopazSidekickPeopleAnswerDisambiguationInfoDisambiguationPerson raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -type AppsDynamiteStorageCardCardHeader struct { - // ImageAltText: The alternative text of this image which is used for - // accessibility. - ImageAltText string `json:"imageAltText,omitempty"` - - // ImageType: The image's type. - // - // Possible values: - // "SQUARE" - Applies no cropping to the image. - // "CIRCLE" - Applies a circular mask to the image. - ImageType string `json:"imageType,omitempty"` - - // ImageUrl: The URL of the image in the card header. - ImageUrl string `json:"imageUrl,omitempty"` - - // Subtitle: The subtitle of the card header. - Subtitle string `json:"subtitle,omitempty"` - - // Title: The title of the card header. The title must be specified. The - // header has a fixed height: if both a title and subtitle are - // specified, each takes up one line. If only the title is specified, it - // takes up both lines. +// EnterpriseTopazSidekickPeopleAnswerPeopleAnswerCardHeader: +// Recommended header to display for the card. +type EnterpriseTopazSidekickPeopleAnswerPeopleAnswerCardHeader struct { + // Title: The suggested title to display. This defaults to the user's + // query. Title string `json:"title,omitempty"` - // ForceSendFields is a list of field names (e.g. "ImageAltText") to + // ForceSendFields is a list of field names (e.g. "Title") 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 @@ -4033,76 +3590,54 @@ type AppsDynamiteStorageCardCardHeader struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "ImageAltText") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as + // NullFields is a list of field names (e.g. "Title") 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 *AppsDynamiteStorageCardCardHeader) MarshalJSON() ([]byte, error) { - type NoMethod AppsDynamiteStorageCardCardHeader +func (s *EnterpriseTopazSidekickPeopleAnswerPeopleAnswerCardHeader) MarshalJSON() ([]byte, error) { + type NoMethod EnterpriseTopazSidekickPeopleAnswerPeopleAnswerCardHeader raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// AppsDynamiteStorageCardSection: A section contains a collection of -// widgets that are rendered vertically in the order that they are -// specified. Across all platforms, cards have a narrow fixed width, so -// there is currently no need for layout properties, for example, float. -type AppsDynamiteStorageCardSection struct { - // Collapsible: Indicates whether this section is collapsible. If a - // section is collapsible, the description must be given. - Collapsible bool `json:"collapsible,omitempty"` +// EnterpriseTopazSidekickPeopleAnswerPersonAnswerCard: An answer card +// for a single person. +type EnterpriseTopazSidekickPeopleAnswerPersonAnswerCard struct { + // Answer: List of answers. + Answer []*SafeHtmlProto `json:"answer,omitempty"` - // Header: The header of the section. Formatted text is supported. - Header string `json:"header,omitempty"` + // AnswerText: List of answers. + AnswerText *EnterpriseTopazSidekickAnswerAnswerList `json:"answerText,omitempty"` - // UncollapsibleWidgetsCount: The number of uncollapsible widgets. For - // example, when a section contains five widgets and the - // `numUncollapsibleWidget` is set to `2`, the first two widgets are - // always shown and the last three are collapsed as default. The - // `numUncollapsibleWidget` is taken into account only when collapsible - // is set to `true`. - UncollapsibleWidgetsCount int64 `json:"uncollapsibleWidgetsCount,omitempty"` + // DisambiguationInfo: Disambiguation information. + DisambiguationInfo *EnterpriseTopazSidekickPeopleAnswerDisambiguationInfo `json:"disambiguationInfo,omitempty"` - // Widgets: A section must contain at least 1 widget. - Widgets []*AppsDynamiteStorageWidget `json:"widgets,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Collapsible") 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:"-"` + // Header: The header to display for the card. + Header *EnterpriseTopazSidekickPeopleAnswerPeopleAnswerCardHeader `json:"header,omitempty"` - // NullFields is a list of field names (e.g. "Collapsible") 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:"-"` -} + // ResponseStatus: The response status. + // + // Possible values: + // "UNKNOWN" - Unknown. + // "SUCCESS" - Success. + // "MISSING_PERSON" - No such person was found in the user's domain. + // "MISSING_DATA" - A person was found to match the query, but an + // answer could not be obtained. + ResponseStatus string `json:"responseStatus,omitempty"` -func (s *AppsDynamiteStorageCardSection) MarshalJSON() ([]byte, error) { - type NoMethod AppsDynamiteStorageCardSection - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} + // StatusMessage: Localized user friendly message to display to the user + // in the case of missing data or an error. + StatusMessage string `json:"statusMessage,omitempty"` -// AppsDynamiteStorageColumns: Represents a Columns widget that displays -// a single row of columns. -type AppsDynamiteStorageColumns struct { - // ColumnItems: Each card supports up to 2 columns. If the user's screen - // width is less than or equal to 480 pixels, the second column wraps - // below the first column. - ColumnItems []*AppsDynamiteStorageColumnsColumn `json:"columnItems,omitempty"` + // Subject: The profile of the person that was the subject of the query. + Subject *EnterpriseTopazSidekickCommonPerson `json:"subject,omitempty"` - // ForceSendFields is a list of field names (e.g. "ColumnItems") to + // ForceSendFields is a list of field names (e.g. "Answer") 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 @@ -4110,59 +3645,63 @@ type AppsDynamiteStorageColumns struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "ColumnItems") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as + // NullFields is a list of field names (e.g. "Answer") 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 *AppsDynamiteStorageColumns) MarshalJSON() ([]byte, error) { - type NoMethod AppsDynamiteStorageColumns +func (s *EnterpriseTopazSidekickPeopleAnswerPersonAnswerCard) MarshalJSON() ([]byte, error) { + type NoMethod EnterpriseTopazSidekickPeopleAnswerPersonAnswerCard raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// AppsDynamiteStorageColumnsColumn: Represents a Column that consists -// of widgets stacked vertically. -type AppsDynamiteStorageColumnsColumn struct { - // HorizontalAlignment: The horizontal alignment of the column. - // - // Possible values: - // "HORIZONTAL_ALIGNMENT_UNSPECIFIED" - Unspecified alignment. - // "START" - Alignment to the start position. - // "CENTER" - Alignment to the center position. - // "END" - Alignment to the end position. - HorizontalAlignment string `json:"horizontalAlignment,omitempty"` - - // HorizontalSizeStyle: Specifies how the column content is sized - // horizontally. +// EnterpriseTopazSidekickPeopleAnswerRelatedPeopleAnswerCard: An answer +// card for a list of people that are related to the subject of the +// query. +type EnterpriseTopazSidekickPeopleAnswerRelatedPeopleAnswerCard struct { + // DisambiguationInfo: Disambiguation information. + DisambiguationInfo *EnterpriseTopazSidekickPeopleAnswerDisambiguationInfo `json:"disambiguationInfo,omitempty"` + + // Header: The header to display for the card. + Header *EnterpriseTopazSidekickPeopleAnswerPeopleAnswerCardHeader `json:"header,omitempty"` + + // RelatedPeople: A list of people that are related to the query + // subject. + RelatedPeople []*EnterpriseTopazSidekickCommonPerson `json:"relatedPeople,omitempty"` + + // RelationType: Defines the type of relation the list of people have + // with the subject of the card. // // Possible values: - // "HORIZONTAL_SIZE_STYLE_UNSPECIFIED" - Unspecified. - // "FILL_AVAILABLE_SPACE" - Fills up the available horizontal width. - // Default value if unspecified. - // "FILL_MINIMUM_SPACE" - Fills up the minimum horizontal width. - HorizontalSizeStyle string `json:"horizontalSizeStyle,omitempty"` + // "UNKNOWN" - Unknown. + // "DIRECT_REPORTS" - Direct reports. + // "MANAGER" - The manager. + // "PEERS" - The teammates/peers of the subject. + RelationType string `json:"relationType,omitempty"` - // VerticalAlignment: The vertical alignment of the column. + // ResponseStatus: The response status. // // Possible values: - // "VERTICAL_ALIGNMENT_UNSPECIFIED" - Unspecified. - // "CENTER" - Aligns the widget in the center of the column. Default - // value if unspecified. - // "TOP" - Aligns the widget at the top of the column. - // "BOTTOM" - Aligns the widget at the bottom of the column. - VerticalAlignment string `json:"verticalAlignment,omitempty"` - - // Widgets: - // LINT.ThenChange(//depot/google3/google/apps/card/v1/card.proto) Array - // of widgets included in the column. - Widgets []*AppsDynamiteStorageColumnsColumnWidgets `json:"widgets,omitempty"` - - // ForceSendFields is a list of field names (e.g. "HorizontalAlignment") + // "UNKNOWN" - Unknown. + // "SUCCESS" - Success. + // "MISSING_PERSON" - No such person was found in the user's domain. + // "MISSING_DATA" - A person was found to match the query, but an + // answer could not be obtained. + ResponseStatus string `json:"responseStatus,omitempty"` + + // StatusMessage: Localized user friendly message to display to the user + // in the case of missing data or an error. + StatusMessage string `json:"statusMessage,omitempty"` + + // Subject: The profile of the person that was the subject of the query. + Subject *EnterpriseTopazSidekickCommonPerson `json:"subject,omitempty"` + + // ForceSendFields is a list of field names (e.g. "DisambiguationInfo") // 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 @@ -4170,7 +3709,7 @@ type AppsDynamiteStorageColumnsColumn struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "HorizontalAlignment") to + // NullFields is a list of field names (e.g. "DisambiguationInfo") 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 @@ -4180,37 +3719,17 @@ type AppsDynamiteStorageColumnsColumn struct { NullFields []string `json:"-"` } -func (s *AppsDynamiteStorageColumnsColumn) MarshalJSON() ([]byte, error) { - type NoMethod AppsDynamiteStorageColumnsColumn +func (s *EnterpriseTopazSidekickPeopleAnswerRelatedPeopleAnswerCard) MarshalJSON() ([]byte, error) { + type NoMethod EnterpriseTopazSidekickPeopleAnswerRelatedPeopleAnswerCard raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// AppsDynamiteStorageColumnsColumnWidgets: LINT.IfChange The `column` -// widget can contain these widgets. -type AppsDynamiteStorageColumnsColumnWidgets struct { - // ButtonList: ButtonList widget. - ButtonList *AppsDynamiteStorageButtonList `json:"buttonList,omitempty"` - - // DateTimePicker: DateTimePicker widget. - DateTimePicker *AppsDynamiteStorageDateTimePicker `json:"dateTimePicker,omitempty"` - - // DecoratedText: DecoratedText widget. - DecoratedText *AppsDynamiteStorageDecoratedText `json:"decoratedText,omitempty"` - - // Image: Image widget. - Image *AppsDynamiteStorageImage `json:"image,omitempty"` +type EnterpriseTopazSidekickPeopleDisambiguationCard struct { + // Person: Candidate persons for the query. + Person []*EnterpriseTopazSidekickCommonPerson `json:"person,omitempty"` - // SelectionInput: SelectionInput widget. - SelectionInput *AppsDynamiteStorageSelectionInput `json:"selectionInput,omitempty"` - - // TextInput: TextInput widget. - TextInput *AppsDynamiteStorageTextInput `json:"textInput,omitempty"` - - // TextParagraph: Text paragraph widget. - TextParagraph *AppsDynamiteStorageTextParagraph `json:"textParagraph,omitempty"` - - // ForceSendFields is a list of field names (e.g. "ButtonList") to + // ForceSendFields is a list of field names (e.g. "Person") 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 @@ -4218,8 +3737,8 @@ type AppsDynamiteStorageColumnsColumnWidgets struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "ButtonList") to include in - // API requests with the JSON null value. By default, fields with empty + // NullFields is a list of field names (e.g. "Person") 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. @@ -4227,50 +3746,53 @@ type AppsDynamiteStorageColumnsColumnWidgets struct { NullFields []string `json:"-"` } -func (s *AppsDynamiteStorageColumnsColumnWidgets) MarshalJSON() ([]byte, error) { - type NoMethod AppsDynamiteStorageColumnsColumnWidgets +func (s *EnterpriseTopazSidekickPeopleDisambiguationCard) MarshalJSON() ([]byte, error) { + type NoMethod EnterpriseTopazSidekickPeopleDisambiguationCard raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// AppsDynamiteStorageDateTimePicker: The widget that lets users to -// specify a date and time. -type AppsDynamiteStorageDateTimePicker struct { - // Label: The label for the field that displays to the user. - Label string `json:"label,omitempty"` +// EnterpriseTopazSidekickPerson: Person. +type EnterpriseTopazSidekickPerson struct { + // AffinityLevel: The level of affinity this person has with the + // requesting user. + // + // Possible values: + // "UNKNOWN" + // "LOW" + // "MEDIUM" + // "HIGH" + AffinityLevel string `json:"affinityLevel,omitempty"` - // Name: The name of the text input that's used in formInput, and - // uniquely identifies this input. - Name string `json:"name,omitempty"` + // AttendingStatus: Attendance status of the person when included in a + // meeting event. + // + // Possible values: + // "AWAITING" - Awaiting for the user to set the status. + // "YES" - Attending. + // "NO" - Not attending. + // "MAYBE" - Tentatively attending. + AttendingStatus string `json:"attendingStatus,omitempty"` - // OnChangeAction: Triggered when the user clicks Save or Clear from the - // date/time picker dialog. This is only triggered if the value changed - // as a result of the Save/Clear operation. - OnChangeAction *AppsDynamiteStorageAction `json:"onChangeAction,omitempty"` + // Email: Email. + Email string `json:"email,omitempty"` - // TimezoneOffsetDate: The number representing the time zone offset from - // UTC, in minutes. If set, the `value_ms_epoch` is displayed in the - // specified time zone. If not set, it uses the user's time zone setting - // on the client side. - TimezoneOffsetDate int64 `json:"timezoneOffsetDate,omitempty"` + // GaiaId: Gaia id. + GaiaId int64 `json:"gaiaId,omitempty,string"` - // Type: The type of the date/time picker. - // - // Possible values: - // "DATE_AND_TIME" - The user can select a date and time. - // "DATE_ONLY" - The user can only select a date. - // "TIME_ONLY" - The user can only select a time. - Type string `json:"type,omitempty"` + // IsGroup: Whether the invitee is a group. + IsGroup bool `json:"isGroup,omitempty"` + + // Name: Name. + Name string `json:"name,omitempty"` - // ValueMsEpoch: The value to display as the default value before user - // input or previous user input. It is represented in milliseconds - // (Epoch time). For `DATE_AND_TIME` type, the full epoch value is used. - // For `DATE_ONLY` type, only date of the epoch time is used. For - // `TIME_ONLY` type, only time of the epoch time is used. For example, - // you can set epoch time to `3 * 60 * 60 * 1000` to represent 3am. - ValueMsEpoch int64 `json:"valueMsEpoch,omitempty,string"` + // ObfuscatedGaiaId: Obfuscated Gaia id. + ObfuscatedGaiaId string `json:"obfuscatedGaiaId,omitempty"` - // ForceSendFields is a list of field names (e.g. "Label") to + // PhotoUrl: Absolute URL to the profile photo of the person. + PhotoUrl string `json:"photoUrl,omitempty"` + + // ForceSendFields is a list of field names (e.g. "AffinityLevel") 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 @@ -4278,60 +3800,28 @@ type AppsDynamiteStorageDateTimePicker struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Label") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as + // NullFields is a list of field names (e.g. "AffinityLevel") 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 *AppsDynamiteStorageDateTimePicker) MarshalJSON() ([]byte, error) { - type NoMethod AppsDynamiteStorageDateTimePicker +func (s *EnterpriseTopazSidekickPerson) MarshalJSON() ([]byte, error) { + type NoMethod EnterpriseTopazSidekickPerson raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// AppsDynamiteStorageDecoratedText: A widget that displays text with -// optional decorations such as a label above or below the text, an icon -// in front of the text, a selection widget or a button after the text. -type AppsDynamiteStorageDecoratedText struct { - // BottomLabel: The formatted text label that shows below the main text. - BottomLabel string `json:"bottomLabel,omitempty"` - - // Button: A button that can be clicked to trigger an action. - Button *AppsDynamiteStorageButton `json:"button,omitempty"` - - // EndIcon: An icon displayed after the text. - EndIcon *AppsDynamiteStorageIcon `json:"endIcon,omitempty"` - - // Icon: Deprecated in favor of start_icon. - Icon *AppsDynamiteStorageIcon `json:"icon,omitempty"` - - // OnClick: Only the top and bottom label and content region are - // clickable. - OnClick *AppsDynamiteStorageOnClick `json:"onClick,omitempty"` - - // StartIcon: The icon displayed in front of the text. - StartIcon *AppsDynamiteStorageIcon `json:"startIcon,omitempty"` - - // SwitchControl: A switch widget can be clicked to change its state or - // trigger an action. - SwitchControl *AppsDynamiteStorageDecoratedTextSwitchControl `json:"switchControl,omitempty"` - - // Text: Required. The main widget formatted text. See Text formatting - // for details. - Text string `json:"text,omitempty"` - - // TopLabel: The formatted text label that shows above the main text. - TopLabel string `json:"topLabel,omitempty"` +type EnterpriseTopazSidekickPersonProfileCard struct { + RelatedPeople []*EnterpriseTopazSidekickPersonProfileCardRelatedPeople `json:"relatedPeople,omitempty"` - // WrapText: The wrap text setting. If `true`, the text is wrapped and - // displayed in multiline. Otherwise, the text is truncated. - WrapText bool `json:"wrapText,omitempty"` + // Subject: The subject of the card. + Subject *EnterpriseTopazSidekickCommonPerson `json:"subject,omitempty"` - // ForceSendFields is a list of field names (e.g. "BottomLabel") to + // ForceSendFields is a list of field names (e.g. "RelatedPeople") 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 @@ -4339,7 +3829,7 @@ type AppsDynamiteStorageDecoratedText struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "BottomLabel") to include + // NullFields is a list of field names (e.g. "RelatedPeople") 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 @@ -4348,34 +3838,25 @@ type AppsDynamiteStorageDecoratedText struct { NullFields []string `json:"-"` } -func (s *AppsDynamiteStorageDecoratedText) MarshalJSON() ([]byte, error) { - type NoMethod AppsDynamiteStorageDecoratedText +func (s *EnterpriseTopazSidekickPersonProfileCard) MarshalJSON() ([]byte, error) { + type NoMethod EnterpriseTopazSidekickPersonProfileCard raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -type AppsDynamiteStorageDecoratedTextSwitchControl struct { - // ControlType: The control type, either switch or checkbox. +type EnterpriseTopazSidekickPersonProfileCardRelatedPeople struct { + // RelatedPerson: Related people. + RelatedPerson []*EnterpriseTopazSidekickCommonPerson `json:"relatedPerson,omitempty"` + + // Relation: Relation type. // // Possible values: - // "SWITCH" - // "CHECKBOX" - Deprecated in favor of `CHECK_BOX`. - // "CHECK_BOX" - ControlType string `json:"controlType,omitempty"` - - // Name: The name of the switch widget that's used in formInput. - Name string `json:"name,omitempty"` - - // OnChangeAction: The action when the switch state is changed. - OnChangeAction *AppsDynamiteStorageAction `json:"onChangeAction,omitempty"` - - // Selected: If the switch is selected. - Selected bool `json:"selected,omitempty"` - - // Value: The value is what is passed back in the callback. - Value string `json:"value,omitempty"` + // "UNKNOWN" + // "MANAGER" + // "DIRECT_REPORT" + Relation string `json:"relation,omitempty"` - // ForceSendFields is a list of field names (e.g. "ControlType") to + // ForceSendFields is a list of field names (e.g. "RelatedPerson") 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 @@ -4383,7 +3864,7 @@ type AppsDynamiteStorageDecoratedTextSwitchControl struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "ControlType") to include + // NullFields is a list of field names (e.g. "RelatedPerson") 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 @@ -4392,41 +3873,19 @@ type AppsDynamiteStorageDecoratedTextSwitchControl struct { NullFields []string `json:"-"` } -func (s *AppsDynamiteStorageDecoratedTextSwitchControl) MarshalJSON() ([]byte, error) { - type NoMethod AppsDynamiteStorageDecoratedTextSwitchControl +func (s *EnterpriseTopazSidekickPersonProfileCardRelatedPeople) MarshalJSON() ([]byte, error) { + type NoMethod EnterpriseTopazSidekickPersonProfileCardRelatedPeople raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// AppsDynamiteStorageDivider: A divider that appears in between -// widgets. -type AppsDynamiteStorageDivider struct { -} - -// AppsDynamiteStorageGrid: Represents a Grid widget that displays items -// in a configurable grid layout. -type AppsDynamiteStorageGrid struct { - // BorderStyle: The border style to apply to each grid item. - BorderStyle *AppsDynamiteStorageBorderStyle `json:"borderStyle,omitempty"` - - // ColumnCount: The number of columns to display in the grid. A default - // value is used if this field isn't specified, and that default value - // is different depending on where the grid is shown (dialog versus - // companion). - ColumnCount int64 `json:"columnCount,omitempty"` - - // Items: The items to display in the grid. - Items []*AppsDynamiteStorageGridGridItem `json:"items,omitempty"` - - // OnClick: This callback is reused by each individual grid item, but - // with the item's identifier and index in the items list added to the - // callback's parameters. - OnClick *AppsDynamiteStorageOnClick `json:"onClick,omitempty"` - - // Title: The text that displays in the grid header. - Title string `json:"title,omitempty"` +// EnterpriseTopazSidekickPersonalizedDocsCardProto: Personalized docs +// card proto. +type EnterpriseTopazSidekickPersonalizedDocsCardProto struct { + // DocumentGroup: Document group. + DocumentGroup []*EnterpriseTopazSidekickDocumentGroup `json:"documentGroup,omitempty"` - // ForceSendFields is a list of field names (e.g. "BorderStyle") to + // ForceSendFields is a list of field names (e.g. "DocumentGroup") 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 @@ -4434,7 +3893,7 @@ type AppsDynamiteStorageGrid struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "BorderStyle") to include + // NullFields is a list of field names (e.g. "DocumentGroup") 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 @@ -4443,48 +3902,56 @@ type AppsDynamiteStorageGrid struct { NullFields []string `json:"-"` } -func (s *AppsDynamiteStorageGrid) MarshalJSON() ([]byte, error) { - type NoMethod AppsDynamiteStorageGrid +func (s *EnterpriseTopazSidekickPersonalizedDocsCardProto) MarshalJSON() ([]byte, error) { + type NoMethod EnterpriseTopazSidekickPersonalizedDocsCardProto raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// AppsDynamiteStorageGridGridItem: Represents a single item in the grid -// layout. -type AppsDynamiteStorageGridGridItem struct { - // Id: A user-specified identifier for this grid item. This identifier - // is returned in the parent Grid's onClick callback parameters. - Id string `json:"id,omitempty"` +// EnterpriseTopazSidekickRankingParams: Ranking params. +type EnterpriseTopazSidekickRankingParams struct { + // EndTimeMs: The end-time that this object will expect to occur. If the + // type is marked as FIXED, then this end-time will persist after + // bidding. If the type is marked as FLEXIBLE, this field is NOT + // expected to be filled and will be filled in after it has won a bid. + // Expected to be set when type is set to FIXED. + EndTimeMs uint64 `json:"endTimeMs,omitempty,string"` - // Image: The image that displays in the grid item. - Image *AppsDynamiteStorageImageComponent `json:"image,omitempty"` - - // Layout: The layout to use for the grid item. + // Priority: The priority to determine between objects that have the + // same start_time_ms The lower-value of priority == ranked higher. + // Max-priority = 0. Expected to be set for all types. // // Possible values: - // "GRID_ITEM_LAYOUT_UNSPECIFIED" - No layout specified. - // "TEXT_BELOW" - The title and subtitle are shown below the grid - // item's image. - // "TEXT_ABOVE" - The title and subtitle are shown above the grid - // item's image. - Layout string `json:"layout,omitempty"` - - // Subtitle: The grid item's subtitle. - Subtitle string `json:"subtitle,omitempty"` - - // TextAlignment: The horizontal alignment of the grid item's text. + // "UNKNOWN" - Unknown (default). + // "CRITICAL" - Critical. + // "IMPORTANT" - Important. + // "HIGH" - High. + // "NORMAL" - Normal. + // "BEST_EFFORT" - Best effort. + Priority string `json:"priority,omitempty"` + + // Score: The score of the card to be used to break priority-ties + Score float64 `json:"score,omitempty"` + + // SpanMs: The span that this card will take in the stream Expected to + // be set when type is set to FLEXIBLE. + SpanMs uint64 `json:"spanMs,omitempty,string"` + + // StartTimeMs: The start-time that this object will bid-for If the type + // is marked as FIXED, then this start-time will persist after bidding. + // If the type is marked as FLEXIBLE, then it will occur at the given + // time or sometime after the requested time. Expected to be set for all + // types. + StartTimeMs uint64 `json:"startTimeMs,omitempty,string"` + + // Type: The packing type of this object. // // Possible values: - // "HORIZONTAL_ALIGNMENT_UNSPECIFIED" - Unspecified alignment. - // "START" - Alignment to the start position. - // "CENTER" - Alignment to the center position. - // "END" - Alignment to the end position. - TextAlignment string `json:"textAlignment,omitempty"` - - // Title: The grid item's title. - Title string `json:"title,omitempty"` + // "FIXED" - Fixed, i.e., the card is time sensitive. + // "FLEXIBLE" - Flexible, i.e., the card is not time sensitive. + Type string `json:"type,omitempty"` - // ForceSendFields is a list of field names (e.g. "Id") to + // ForceSendFields is a list of field names (e.g. "EndTimeMs") 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 @@ -4492,8 +3959,8 @@ type AppsDynamiteStorageGridGridItem struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Id") to include in API - // requests with the JSON null value. By default, fields with empty + // NullFields is a list of field names (e.g. "EndTimeMs") 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. @@ -4501,41 +3968,30 @@ type AppsDynamiteStorageGridGridItem struct { NullFields []string `json:"-"` } -func (s *AppsDynamiteStorageGridGridItem) MarshalJSON() ([]byte, error) { - type NoMethod AppsDynamiteStorageGridGridItem +func (s *EnterpriseTopazSidekickRankingParams) MarshalJSON() ([]byte, error) { + type NoMethod EnterpriseTopazSidekickRankingParams raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -type AppsDynamiteStorageIcon struct { - // AltText: The description of the icon, used for accessibility. The - // default value is provided if you don't specify one. - AltText string `json:"altText,omitempty"` +func (s *EnterpriseTopazSidekickRankingParams) UnmarshalJSON(data []byte) error { + type NoMethod EnterpriseTopazSidekickRankingParams + var s1 struct { + Score gensupport.JSONFloat64 `json:"score"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.Score = float64(s1.Score) + return nil +} - // IconUrl: The icon specified by a URL. - IconUrl string `json:"iconUrl,omitempty"` +type EnterpriseTopazSidekickRecentDocumentsCardProto struct { + Document []*EnterpriseTopazSidekickCommonDocument `json:"document,omitempty"` - // ImageType: The crop style applied to the image. In some cases, - // applying a `CIRCLE` crop causes the image to be drawn larger than a - // standard icon. - // - // Possible values: - // "SQUARE" - Applies no cropping to the image. - // "CIRCLE" - Applies a circular mask to the image. - ImageType string `json:"imageType,omitempty"` - - // KnownIcon: The icon specified by the string name of a list of known - // icons - KnownIcon string `json:"knownIcon,omitempty"` - - // MaterialIcon: Display one of the Google Material Icons - // (https://fonts.google.com/icons). For example, to display a check box - // icon - // (https://fonts.google.com/icons?selected=Material%20Symbols%20Outlined%3Acheck_box%3AFILL%400%3Bwght%40400%3BGRAD%400%3Bopsz%4048), - // use "material_icon": { "name": "check_box" } - MaterialIcon *AppsDynamiteStorageMaterialIcon `json:"materialIcon,omitempty"` - - // ForceSendFields is a list of field names (e.g. "AltText") to + // ForceSendFields is a list of field names (e.g. "Document") 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 @@ -4543,7 +3999,7 @@ type AppsDynamiteStorageIcon struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "AltText") to include in + // NullFields is a list of field names (e.g. "Document") 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 @@ -4552,24 +4008,25 @@ type AppsDynamiteStorageIcon struct { NullFields []string `json:"-"` } -func (s *AppsDynamiteStorageIcon) MarshalJSON() ([]byte, error) { - type NoMethod AppsDynamiteStorageIcon +func (s *EnterpriseTopazSidekickRecentDocumentsCardProto) MarshalJSON() ([]byte, error) { + type NoMethod EnterpriseTopazSidekickRecentDocumentsCardProto raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// AppsDynamiteStorageImage: An image that is specified by a URL and can -// have an onClick action. -type AppsDynamiteStorageImage struct { - // AltText: The alternative text of this image, used for accessibility. - AltText string `json:"altText,omitempty"` +// EnterpriseTopazSidekickScheduledMeeting: Details about scheduled +// meetings. +type EnterpriseTopazSidekickScheduledMeeting struct { + // MeetingLocation: The meeting location. + MeetingLocation string `json:"meetingLocation,omitempty"` - // ImageUrl: An image URL. - ImageUrl string `json:"imageUrl,omitempty"` + // MeetingTime: The meeting time slot. + MeetingTime *EnterpriseTopazSidekickTimeSlot `json:"meetingTime,omitempty"` - OnClick *AppsDynamiteStorageOnClick `json:"onClick,omitempty"` + // MeetingTitle: The meeting title. + MeetingTitle string `json:"meetingTitle,omitempty"` - // ForceSendFields is a list of field names (e.g. "AltText") to + // ForceSendFields is a list of field names (e.g. "MeetingLocation") 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 @@ -4577,35 +4034,32 @@ type AppsDynamiteStorageImage struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "AltText") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "MeetingLocation") 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 *AppsDynamiteStorageImage) MarshalJSON() ([]byte, error) { - type NoMethod AppsDynamiteStorageImage +func (s *EnterpriseTopazSidekickScheduledMeeting) MarshalJSON() ([]byte, error) { + type NoMethod EnterpriseTopazSidekickScheduledMeeting raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -type AppsDynamiteStorageImageComponent struct { - // AltText: The accessibility label for the image. - AltText string `json:"altText,omitempty"` - - // BorderStyle: The border style to apply to the image. - BorderStyle *AppsDynamiteStorageBorderStyle `json:"borderStyle,omitempty"` - - // CropStyle: The crop style to apply to the image. - CropStyle *AppsDynamiteStorageImageCropStyle `json:"cropStyle,omitempty"` +// EnterpriseTopazSidekickShareMeetingDocsCardProto: Share meeting docs +// card proto. +type EnterpriseTopazSidekickShareMeetingDocsCardProto struct { + // Document: Documents to share for the given meeting. + Document []*EnterpriseTopazSidekickCommonDocument `json:"document,omitempty"` - // ImageUri: The image URL. - ImageUri string `json:"imageUri,omitempty"` + // Event: Event. + Event *EnterpriseTopazSidekickAgendaEntry `json:"event,omitempty"` - // ForceSendFields is a list of field names (e.g. "AltText") to + // ForceSendFields is a list of field names (e.g. "Document") 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 @@ -4613,7 +4067,7 @@ type AppsDynamiteStorageImageComponent struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "AltText") to include in + // NullFields is a list of field names (e.g. "Document") 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 @@ -4622,102 +4076,35 @@ type AppsDynamiteStorageImageComponent struct { NullFields []string `json:"-"` } -func (s *AppsDynamiteStorageImageComponent) MarshalJSON() ([]byte, error) { - type NoMethod AppsDynamiteStorageImageComponent +func (s *EnterpriseTopazSidekickShareMeetingDocsCardProto) MarshalJSON() ([]byte, error) { + type NoMethod EnterpriseTopazSidekickShareMeetingDocsCardProto raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// AppsDynamiteStorageImageCropStyle: Represents the crop style applied -// to an image. -type AppsDynamiteStorageImageCropStyle struct { - // AspectRatio: The aspect ratio to use if the crop type is - // `RECTANGLE_CUSTOM`. - AspectRatio float64 `json:"aspectRatio,omitempty"` +// EnterpriseTopazSidekickTimeSlot: Slot of time. +type EnterpriseTopazSidekickTimeSlot struct { + // EndTimeDay: Day end time at the user's timezone. + EndTimeDay string `json:"endTimeDay,omitempty"` - // Type: The crop type. - // - // Possible values: - // "IMAGE_CROP_TYPE_UNSPECIFIED" - No value specified. - // "SQUARE" - Applies a square crop. - // "CIRCLE" - Applies a circular crop. - // "RECTANGLE_CUSTOM" - Applies a rectangular crop with a custom - // aspect ratio. - // "RECTANGLE_4_3" - Applies a rectangular crop with a 4:3 aspect - // ratio. - Type string `json:"type,omitempty"` - - // ForceSendFields is a list of field names (e.g. "AspectRatio") 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. "AspectRatio") 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:"-"` -} + // EndTimeHourAndMinute: Hour and minute of the end time at the user's + // timezone. + EndTimeHourAndMinute string `json:"endTimeHourAndMinute,omitempty"` -func (s *AppsDynamiteStorageImageCropStyle) MarshalJSON() ([]byte, error) { - type NoMethod AppsDynamiteStorageImageCropStyle - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} + // EndTimeInMillis: End time in milliseconds. + EndTimeInMillis int64 `json:"endTimeInMillis,omitempty,string"` -func (s *AppsDynamiteStorageImageCropStyle) UnmarshalJSON(data []byte) error { - type NoMethod AppsDynamiteStorageImageCropStyle - var s1 struct { - AspectRatio gensupport.JSONFloat64 `json:"aspectRatio"` - *NoMethod - } - s1.NoMethod = (*NoMethod)(s) - if err := json.Unmarshal(data, &s1); err != nil { - return err - } - s.AspectRatio = float64(s1.AspectRatio) - return nil -} + // StartTimeDay: Day start time at user's timezone. + StartTimeDay string `json:"startTimeDay,omitempty"` -// AppsDynamiteStorageMaterialIcon: A Google Font Icon -// (https://fonts.google.com/icons), which includes over 2500+ options. -// For example, to display a check box icon -// (https://fonts.google.com/icons?selected=Material%20Symbols%20Outlined%3Acheck_box%3AFILL%400%3Bwght%40400%3BGRAD%400%3Bopsz%4048) -// with customized weight and grade, write { "name": "check_box", -// "fill": true, "weight": 300, "grade": -25 } -type AppsDynamiteStorageMaterialIcon struct { - // Fill: Whether it renders a filled icon. Default value is false. See - // Customization in Google Font Icon (https://fonts.google.com/icons) - // for details. - Fill bool `json:"fill,omitempty"` - - // Grade: Weight and grade affect a symbol’s thickness. Adjustments to - // grade are more granular than adjustments to weight and have a small - // impact on the size of the symbol. Choose from {-25, 0, 200}. If - // absent, default value is 0. If any other value is specified, a broken - // image icon will be displayed. See Customization in Google Font Icon - // (https://fonts.google.com/icons) for details. - Grade int64 `json:"grade,omitempty"` - - // Name: The icon name defined in the Google Material Icon - // (https://fonts.google.com/icons) in snake_case. e.g. "check_box". Any - // invalid name will be trimmed as empty string result in the icon - // falied to render. - Name string `json:"name,omitempty"` + // StartTimeHourAndMinute: Hour and minute of the start time at the + // user's timezone. + StartTimeHourAndMinute string `json:"startTimeHourAndMinute,omitempty"` - // Weight: The stroke weight of the icon. Choose from {100, 200, 300, - // 400, 500, 600, 700}. If absent, default value is 400. If any other - // value is specified, a broken image icon will be displayed. See - // Customization in Google Font Icon (https://fonts.google.com/icons) - // for details. - Weight int64 `json:"weight,omitempty"` + // StartTimeInMillis: Start time in milliseconds. + StartTimeInMillis int64 `json:"startTimeInMillis,omitempty,string"` - // ForceSendFields is a list of field names (e.g. "Fill") to + // ForceSendFields is a list of field names (e.g. "EndTimeDay") 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 @@ -4725,8 +4112,8 @@ type AppsDynamiteStorageMaterialIcon struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Fill") to include in API - // requests with the JSON null value. By default, fields with empty + // NullFields is a list of field names (e.g. "EndTimeDay") 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. @@ -4734,32 +4121,36 @@ type AppsDynamiteStorageMaterialIcon struct { NullFields []string `json:"-"` } -func (s *AppsDynamiteStorageMaterialIcon) MarshalJSON() ([]byte, error) { - type NoMethod AppsDynamiteStorageMaterialIcon +func (s *EnterpriseTopazSidekickTimeSlot) MarshalJSON() ([]byte, error) { + type NoMethod EnterpriseTopazSidekickTimeSlot raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -type AppsDynamiteStorageOnClick struct { - // Action: If specified, an action is triggered by this onClick. - Action *AppsDynamiteStorageAction `json:"action,omitempty"` - - // HostAppAction: Triggers host app action on click directly without - // invoking form actions. This is currently not available to end-users - // and is used internal only. - HostAppAction *HostAppActionMarkup `json:"hostAppAction,omitempty"` - - // OpenDynamicLinkAction: An add-on triggers this action when the action - // needs to open a link. This differs from the open_link above in that - // this needs to talk to server to get the link. Thus some preparation - // work is required for web client to do before the open link action - // response comes back. - OpenDynamicLinkAction *AppsDynamiteStorageAction `json:"openDynamicLinkAction,omitempty"` - - // OpenLink: If specified, this onClick triggers an open link action. - OpenLink *AppsDynamiteStorageOpenLink `json:"openLink,omitempty"` +// EnumOperatorOptions: Used to provide a search operator for enum +// properties. This is optional. Search operators let users restrict the +// query to specific fields relevant to the type of item being searched. +// For example, if you provide no operator for a *priority* enum +// property with possible values *p0* and *p1*, a query that contains +// the term *p0* returns items that have *p0* as the value of the +// *priority* property, as well as any items that contain the string +// *p0* in other fields. If you provide an operator name for the enum, +// such as *priority*, then search users can use that operator to refine +// results to only items that have *p0* as this property's value, with +// the query *priority:p0*. +type EnumOperatorOptions struct { + // OperatorName: Indicates the operator name required in the query in + // order to isolate the enum property. For example, if operatorName is + // *priority* and the property's name is *priorityVal*, then queries + // like *priority:* show results only where the value of the + // property named *priorityVal* matches **. By contrast, a search + // that uses the same ** without an operator returns all items + // where ** matches the value of any String properties or text + // within the content field for the item. The operator name can only + // contain lowercase letters (a-z). The maximum length is 32 characters. + OperatorName string `json:"operatorName,omitempty"` - // ForceSendFields is a list of field names (e.g. "Action") to + // ForceSendFields is a list of field names (e.g. "OperatorName") 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 @@ -4767,89 +4158,110 @@ type AppsDynamiteStorageOnClick struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Action") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as + // NullFields is a list of field names (e.g. "OperatorName") 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 *AppsDynamiteStorageOnClick) MarshalJSON() ([]byte, error) { - type NoMethod AppsDynamiteStorageOnClick +func (s *EnumOperatorOptions) MarshalJSON() ([]byte, error) { + type NoMethod EnumOperatorOptions raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -type AppsDynamiteStorageOpenLink struct { - // AppUri: Represents the platform specific uri/intent to open on each - // client. For example: A companion_url will open in a companion window - // on the web. An iOS URL and android intent will open in the - // corresponding hosting apps. If these platform specific URLs can't be - // handled correctly, i.e. if the companion isn't supported on web and - // the hosting apps aren't available on the mobile platforms then the - // `uri` will open in a new browser window on all the platforms. - AppUri *AppsDynamiteStorageOpenLinkAppUri `json:"appUri,omitempty"` - - // Possible values: - // "NOTHING" - Doesn’t reload the card after the child window - // closes. Reloads the card after the child window closes. If used in - // conjunction with - // [OpenAs.OVERLAY](/workspace/add-ons/reference/rpc/google.apps.card.v1# - // openas), the child window acts as a modal dialog and the main card is - // blocked until the child window closes. - // "RELOAD" - OnClose string `json:"onClose,omitempty"` - - // Possible values: - // "FULL_SIZE" - The link opens as a full size window (if that's the - // frame used by the client. - // "OVERLAY" - The link opens as an overlay, such as a pop-up. - OpenAs string `json:"openAs,omitempty"` - - // Url: The URL to open. - Url string `json:"url,omitempty"` - - // ForceSendFields is a list of field names (e.g. "AppUri") 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. +// EnumPropertyOptions: The options for enum properties, which allow you +// to define a restricted set of strings to match user queries, set +// rankings for those string values, and define an operator name to be +// paired with those strings so that users can narrow results to only +// items with a specific value. For example, for items in a request +// tracking system with priority information, you could define *p0* as +// an allowable enum value and tie this enum to the operator name +// *priority* so that search users could add *priority:p0* to their +// query to restrict the set of results to only those items indexed with +// the value *p0*. +type EnumPropertyOptions struct { + // OperatorOptions: If set, describes how the enum should be used as a + // search operator. + OperatorOptions *EnumOperatorOptions `json:"operatorOptions,omitempty"` + + // OrderedRanking: Used to specify the ordered ranking for the + // enumeration that determines how the integer values provided in the + // possible EnumValuePairs are used to rank results. If specified, + // integer values must be provided for all possible EnumValuePair values + // given for this property. Can only be used if isRepeatable is false. + // + // Possible values: + // "NO_ORDER" - There is no ranking order for the property. Results + // aren't adjusted by this property's value. + // "ASCENDING" - This property is ranked in ascending order. Lower + // values indicate lower ranking. + // "DESCENDING" - This property is ranked in descending order. Lower + // values indicate higher ranking. + OrderedRanking string `json:"orderedRanking,omitempty"` + + // PossibleValues: The list of possible values for the enumeration + // property. All EnumValuePairs must provide a string value. If you + // specify an integer value for one EnumValuePair, then all possible + // EnumValuePairs must provide an integer value. Both the string value + // and integer value must be unique over all possible values. Once set, + // possible values cannot be removed or modified. If you supply an + // ordered ranking and think you might insert additional enum values in + // the future, leave gaps in the initial integer values to allow adding + // a value in between previously registered values. The maximum number + // of elements is 100. + PossibleValues []*EnumValuePair `json:"possibleValues,omitempty"` + + // ForceSendFields is a list of field names (e.g. "OperatorOptions") 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. "AppUri") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "OperatorOptions") 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 *AppsDynamiteStorageOpenLink) MarshalJSON() ([]byte, error) { - type NoMethod AppsDynamiteStorageOpenLink +func (s *EnumPropertyOptions) MarshalJSON() ([]byte, error) { + type NoMethod EnumPropertyOptions raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// AppsDynamiteStorageOpenLinkAppUri: Represents the platform specific -// uri/intent to open for each client. -type AppsDynamiteStorageOpenLinkAppUri struct { - // AndroidIntent: An intent object to be opened in the corresponding - // android hosting app. - AndroidIntent *AppsDynamiteStorageOpenLinkAppUriIntent `json:"androidIntent,omitempty"` - - // CompanionUri: A companion uri string to be opened in the chat - // companion window. on the web. - CompanionUri string `json:"companionUri,omitempty"` +// EnumValuePair: The enumeration value pair defines two things: a +// required string value and an optional integer value. The string value +// defines the necessary query term required to retrieve that item, such +// as *p0* for a priority item. The integer value determines the ranking +// of that string value relative to other enumerated values for the same +// property. For example, you might associate *p0* with *0* and define +// another enum pair such as *p1* and *1*. You must use the integer +// value in combination with ordered ranking to set the ranking of a +// given value relative to other enumerated values for the same property +// name. Here, a ranking order of DESCENDING for *priority* properties +// results in a ranking boost for items indexed with a value of *p0* +// compared to items indexed with a value of *p1*. Without a specified +// ranking order, the integer value has no effect on item ranking. +type EnumValuePair struct { + // IntegerValue: The integer value of the EnumValuePair which must be + // non-negative. Optional. + IntegerValue int64 `json:"integerValue,omitempty"` - // IosUri: A uri string to be opened in the corresponding iOS hosting - // app. - IosUri string `json:"iosUri,omitempty"` + // StringValue: The string value of the EnumValuePair. The maximum + // length is 32 characters. + StringValue string `json:"stringValue,omitempty"` - // ForceSendFields is a list of field names (e.g. "AndroidIntent") to + // ForceSendFields is a list of field names (e.g. "IntegerValue") 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 @@ -4857,7 +4269,7 @@ type AppsDynamiteStorageOpenLinkAppUri struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "AndroidIntent") to include + // NullFields is a list of field names (e.g. "IntegerValue") 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 @@ -4866,26 +4278,19 @@ type AppsDynamiteStorageOpenLinkAppUri struct { NullFields []string `json:"-"` } -func (s *AppsDynamiteStorageOpenLinkAppUri) MarshalJSON() ([]byte, error) { - type NoMethod AppsDynamiteStorageOpenLinkAppUri +func (s *EnumValuePair) MarshalJSON() ([]byte, error) { + type NoMethod EnumValuePair raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// AppsDynamiteStorageOpenLinkAppUriIntent: Android intent. -type AppsDynamiteStorageOpenLinkAppUriIntent struct { - // ExtraData: A list of extra data for the android intent. For example, - // for a calendar event edit intent, the event title information can be - // passed as extra data. - ExtraData []*AppsDynamiteStorageOpenLinkAppUriIntentExtraData `json:"extraData,omitempty"` - - // IntentAction: An android intent action string for the {@link - // android.content.Intent} object. For example: for the view intent - // action type, a valid value will be - // android.content.Intent.ACTION_VIEW. - IntentAction string `json:"intentAction,omitempty"` +// EnumValues: List of enum values. +type EnumValues struct { + // Values: The maximum allowable length for string values is 32 + // characters. + Values []string `json:"values,omitempty"` - // ForceSendFields is a list of field names (e.g. "ExtraData") to + // ForceSendFields is a list of field names (e.g. "Values") 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 @@ -4893,8 +4298,8 @@ type AppsDynamiteStorageOpenLinkAppUriIntent struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "ExtraData") to include in - // API requests with the JSON null value. By default, fields with empty + // NullFields is a list of field names (e.g. "Values") 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. @@ -4902,22 +4307,17 @@ type AppsDynamiteStorageOpenLinkAppUriIntent struct { NullFields []string `json:"-"` } -func (s *AppsDynamiteStorageOpenLinkAppUriIntent) MarshalJSON() ([]byte, error) { - type NoMethod AppsDynamiteStorageOpenLinkAppUriIntent +func (s *EnumValues) MarshalJSON() ([]byte, error) { + type NoMethod EnumValues raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// AppsDynamiteStorageOpenLinkAppUriIntentExtraData: Extra data for an -// android intent. Valid keys are defined in the hosting app contract. -type AppsDynamiteStorageOpenLinkAppUriIntentExtraData struct { - // Key: A key for the intent extra data. - Key string `json:"key,omitempty"` - - // Value: Value for the given extra data key. - Value string `json:"value,omitempty"` +// ErrorInfo: Error information about the response. +type ErrorInfo struct { + ErrorMessages []*ErrorMessage `json:"errorMessages,omitempty"` - // ForceSendFields is a list of field names (e.g. "Key") to + // ForceSendFields is a list of field names (e.g. "ErrorMessages") 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 @@ -4925,46 +4325,28 @@ type AppsDynamiteStorageOpenLinkAppUriIntentExtraData struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Key") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as + // NullFields is a list of field names (e.g. "ErrorMessages") 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 *AppsDynamiteStorageOpenLinkAppUriIntentExtraData) MarshalJSON() ([]byte, error) { - type NoMethod AppsDynamiteStorageOpenLinkAppUriIntentExtraData +func (s *ErrorInfo) MarshalJSON() ([]byte, error) { + type NoMethod ErrorInfo raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// AppsDynamiteStorageSelectionInput: A widget that creates a UI item -// (for example, a drop-down list) with options for users to select. -type AppsDynamiteStorageSelectionInput struct { - Items []*AppsDynamiteStorageSelectionInputSelectionItem `json:"items,omitempty"` - - // Label: The label displayed ahead of the switch control. - Label string `json:"label,omitempty"` - - // Name: The name of the text input which is used in formInput. - Name string `json:"name,omitempty"` - - // OnChangeAction: If specified, the form is submitted when the - // selection changes. If not specified, you must specify a separate - // button. - OnChangeAction *AppsDynamiteStorageAction `json:"onChangeAction,omitempty"` +// ErrorMessage: Error message per source response. +type ErrorMessage struct { + ErrorMessage string `json:"errorMessage,omitempty"` - // Possible values: - // "CHECK_BOX" - The selection type is a checkbox. - // "RADIO_BUTTON" - The selection type is a radio button. - // "SWITCH" - The selection type is a switch. - // "DROPDOWN" - The selection type is a dropdown. - // "MULTI_SELECT" - The selection type is multi-select - Type string `json:"type,omitempty"` + Source *Source `json:"source,omitempty"` - // ForceSendFields is a list of field names (e.g. "Items") to + // ForceSendFields is a list of field names (e.g. "ErrorMessage") 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 @@ -4972,37 +4354,49 @@ type AppsDynamiteStorageSelectionInput struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Items") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as + // NullFields is a list of field names (e.g. "ErrorMessage") 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 *AppsDynamiteStorageSelectionInput) MarshalJSON() ([]byte, error) { - type NoMethod AppsDynamiteStorageSelectionInput +func (s *ErrorMessage) MarshalJSON() ([]byte, error) { + type NoMethod ErrorMessage raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// AppsDynamiteStorageSelectionInputSelectionItem: The item in the -// switch control. A radio button, at most one of the items is selected. -type AppsDynamiteStorageSelectionInputSelectionItem struct { - // Selected: If more than one item is selected for `RADIO_BUTTON` and - // `DROPDOWN`, the first selected item is treated as selected and the - // ones after are ignored. - Selected bool `json:"selected,omitempty"` +// FacetBucket: A bucket in a facet is the basic unit of operation. A +// bucket can comprise either a single value OR a contiguous range of +// values, depending on the type of the field bucketed. FacetBucket is +// currently used only for returning the response object. +type FacetBucket struct { + // Count: Number of results that match the bucket value. Counts are only + // returned for searches when count accuracy is ensured. Cloud Search + // does not guarantee facet counts for any query and facet counts might + // be present only intermittently, even for identical queries. Do not + // build dependencies on facet count existence; instead use facet ount + // percentages which are always returned. + Count int64 `json:"count,omitempty"` - // Text: The text to be displayed. - Text string `json:"text,omitempty"` + // Filter: Filter to be passed in the search request if the + // corresponding bucket is selected. + Filter *Filter `json:"filter,omitempty"` - // Value: The value associated with this item. The client should use - // this as a form input value. - Value string `json:"value,omitempty"` + // Percentage: Percent of results that match the bucket value. The + // returned value is between (0-100], and is rounded down to an integer + // if fractional. If the value is not explicitly returned, it represents + // a percentage value that rounds to 0. Percentages are returned for all + // searches, but are an estimate. Because percentages are always + // returned, you should render percentages instead of counts. + Percentage int64 `json:"percentage,omitempty"` + + Value *Value `json:"value,omitempty"` - // ForceSendFields is a list of field names (e.g. "Selected") to + // ForceSendFields is a list of field names (e.g. "Count") 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 @@ -5010,8 +4404,8 @@ type AppsDynamiteStorageSelectionInputSelectionItem struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Selected") to include in - // API requests with the JSON null value. By default, fields with empty + // NullFields is a list of field names (e.g. "Count") 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. @@ -5019,49 +4413,83 @@ type AppsDynamiteStorageSelectionInputSelectionItem struct { NullFields []string `json:"-"` } -func (s *AppsDynamiteStorageSelectionInputSelectionItem) MarshalJSON() ([]byte, error) { - type NoMethod AppsDynamiteStorageSelectionInputSelectionItem +func (s *FacetBucket) MarshalJSON() ([]byte, error) { + type NoMethod FacetBucket raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// AppsDynamiteStorageSuggestions: A container wrapping elements -// necessary for showing suggestion items used in text input -// autocomplete. -type AppsDynamiteStorageSuggestions struct { - // Items: A list of suggestions items which will be used in are used in - // autocomplete. - Items []*AppsDynamiteStorageSuggestionsSuggestionItem `json:"items,omitempty"` +// FacetOptions: Specifies operators to return facet results for. There +// will be one FacetResult for every +// source_name/object_type/operator_name combination. +type FacetOptions struct { + // IntegerFacetingOptions: If set, describes integer faceting options + // for the given integer property. The corresponding integer property in + // the schema should be marked isFacetable. The number of buckets + // returned would be minimum of this and num_facet_buckets. + IntegerFacetingOptions *IntegerFacetingOptions `json:"integerFacetingOptions,omitempty"` + + // NumFacetBuckets: Maximum number of facet buckets that should be + // returned for this facet. Defaults to 10. Maximum value is 100. + NumFacetBuckets int64 `json:"numFacetBuckets,omitempty"` - // ForceSendFields is a list of field names (e.g. "Items") 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. + // ObjectType: If object_type is set, only those objects of that type + // will be used to compute facets. If empty, then all objects will be + // used to compute facets. + ObjectType string `json:"objectType,omitempty"` + + // OperatorName: The name of the operator chosen for faceting. @see + // cloudsearch.SchemaPropertyOptions + OperatorName string `json:"operatorName,omitempty"` + + // SourceName: Source name to facet on. Format: datasources/{source_id} + // If empty, all data sources will be used. + SourceName string `json:"sourceName,omitempty"` + + // ForceSendFields is a list of field names (e.g. + // "IntegerFacetingOptions") 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. "Items") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "IntegerFacetingOptions") + // 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 *AppsDynamiteStorageSuggestions) MarshalJSON() ([]byte, error) { - type NoMethod AppsDynamiteStorageSuggestions +func (s *FacetOptions) MarshalJSON() ([]byte, error) { + type NoMethod FacetOptions raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// AppsDynamiteStorageSuggestionsSuggestionItem: A suggestion item. Only -// supports text for now. -type AppsDynamiteStorageSuggestionsSuggestionItem struct { - Text string `json:"text,omitempty"` +// FacetResult: Source specific facet response +type FacetResult struct { + // Buckets: FacetBuckets for values in response containing at least a + // single result with the corresponding filter. + Buckets []*FacetBucket `json:"buckets,omitempty"` + + // ObjectType: Object type for which facet results are returned. Can be + // empty. + ObjectType string `json:"objectType,omitempty"` + + // OperatorName: The name of the operator chosen for faceting. @see + // cloudsearch.SchemaPropertyOptions + OperatorName string `json:"operatorName,omitempty"` + + // SourceName: Source name for which facet results are returned. Will + // not be empty. + SourceName string `json:"sourceName,omitempty"` - // ForceSendFields is a list of field names (e.g. "Text") to + // ForceSendFields is a list of field names (e.g. "Buckets") 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 @@ -5069,8 +4497,8 @@ type AppsDynamiteStorageSuggestionsSuggestionItem struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Text") to include in API - // requests with the JSON null value. By default, fields with empty + // NullFields is a list of field names (e.g. "Buckets") 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. @@ -5078,58 +4506,63 @@ type AppsDynamiteStorageSuggestionsSuggestionItem struct { NullFields []string `json:"-"` } -func (s *AppsDynamiteStorageSuggestionsSuggestionItem) MarshalJSON() ([]byte, error) { - type NoMethod AppsDynamiteStorageSuggestionsSuggestionItem +func (s *FacetResult) MarshalJSON() ([]byte, error) { + type NoMethod FacetResult raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// AppsDynamiteStorageTextInput: A text input is a UI item where users -// can input text. A text input can also have an onChange action and -// suggestions. -type AppsDynamiteStorageTextInput struct { - // AutoCompleteAction: The refresh function that returns suggestions - // based on the user's input text. If the callback is not specified, - // autocomplete is done in client side based on the initial suggestion - // items. - AutoCompleteAction *AppsDynamiteStorageAction `json:"autoCompleteAction,omitempty"` - - // HintText: The hint text. - HintText string `json:"hintText,omitempty"` - - // InitialSuggestions: The initial suggestions made before any user - // input. - InitialSuggestions *AppsDynamiteStorageSuggestions `json:"initialSuggestions,omitempty"` +type FieldViolation struct { + // Description: The description of the error. + Description string `json:"description,omitempty"` - // Label: At least one of label and hintText must be specified. - Label string `json:"label,omitempty"` + // Field: Path of field with violation. + Field string `json:"field,omitempty"` - // Name: The name of the text input which is used in formInput. - Name string `json:"name,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:"-"` - // OnChangeAction: The onChange action, for example, invoke a function. - OnChangeAction *AppsDynamiteStorageAction `json:"onChangeAction,omitempty"` + // 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:"-"` +} - // Type: The style of the text, for example, a single line or multiple - // lines. - // - // Possible values: - // "SINGLE_LINE" - The text is put into a single line. - // "MULTIPLE_LINE" - The text is put into multiple lines. - Type string `json:"type,omitempty"` +func (s *FieldViolation) MarshalJSON() ([]byte, error) { + type NoMethod FieldViolation + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} - // Value: The default value when there is no input from the user. - Value string `json:"value,omitempty"` +// Filter: A generic way of expressing filters in a query, which +// supports two approaches: **1. Setting a ValueFilter.** The name must +// match an operator_name defined in the schema for your data source. +// **2. Setting a CompositeFilter.** The filters are evaluated using the +// logical operator. The top-level operators can only be either an AND +// or a NOT. AND can appear only at the top-most level. OR can appear +// only under a top-level AND. +type Filter struct { + CompositeFilter *CompositeFilter `json:"compositeFilter,omitempty"` - // ForceSendFields is a list of field names (e.g. "AutoCompleteAction") - // to unconditionally include in API requests. By default, fields with + ValueFilter *ValueFilter `json:"valueFilter,omitempty"` + + // ForceSendFields is a list of field names (e.g. "CompositeFilter") 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. "AutoCompleteAction") to + // NullFields is a list of field names (e.g. "CompositeFilter") 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 @@ -5139,20 +4572,25 @@ type AppsDynamiteStorageTextInput struct { NullFields []string `json:"-"` } -func (s *AppsDynamiteStorageTextInput) MarshalJSON() ([]byte, error) { - type NoMethod AppsDynamiteStorageTextInput +func (s *Filter) MarshalJSON() ([]byte, error) { + type NoMethod Filter raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// AppsDynamiteStorageTextParagraph: A paragraph of text that supports -// formatting. See Text formatting -// (workspace/add-ons/concepts/widgets#text_formatting") for details. -type AppsDynamiteStorageTextParagraph struct { - // Text: The text that's shown in the widget. - Text string `json:"text,omitempty"` +// FilterOptions: Filter options to be applied on query. +type FilterOptions struct { + // Filter: Generic filter to restrict the search, such as `lang:en`, + // `site:xyz`. + Filter *Filter `json:"filter,omitempty"` + + // ObjectType: If object_type is set, only objects of that type are + // returned. This should correspond to the name of the object that was + // registered within the definition of schema. The maximum length is 256 + // characters. + ObjectType string `json:"objectType,omitempty"` - // ForceSendFields is a list of field names (e.g. "Text") to + // ForceSendFields is a list of field names (e.g. "Filter") 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 @@ -5160,7 +4598,7 @@ type AppsDynamiteStorageTextParagraph struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Text") to include in API + // NullFields is a list of field names (e.g. "Filter") 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 @@ -5169,154 +4607,72 @@ type AppsDynamiteStorageTextParagraph struct { NullFields []string `json:"-"` } -func (s *AppsDynamiteStorageTextParagraph) MarshalJSON() ([]byte, error) { - type NoMethod AppsDynamiteStorageTextParagraph +func (s *FilterOptions) MarshalJSON() ([]byte, error) { + type NoMethod FilterOptions raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// AppsDynamiteStorageWidget: A widget is a UI element that presents -// texts, images, etc. -type AppsDynamiteStorageWidget struct { - // ButtonList: A list of buttons. For example, the following JSON - // creates two buttons. The first is a filled text button and the second - // is an image button that opens a link: ``` "buttonList": { "buttons": - // [ "button": { "text": "Edit", "Color": { "Red": 255 "Green": 255 - // "Blue": 255 } "disabled": true }, "button": { "icon": { "knownIcon": - // "INVITE" "altText": "check calendar" }, "onClick": { "openLink": { - // "url": "https://example.com/calendar" } } }, ] } ``` - ButtonList *AppsDynamiteStorageButtonList `json:"buttonList,omitempty"` - - // Columns: Displays a single row of columns with widgets stacked - // vertically in each column. For example, the following JSON creates a - // 2 column widget each containing a single item. ``` "columns": { - // "wrapStyle": "WRAP", "columnItems": [ { "horizontalSizeStyle": - // "FILL_AVAILABLE_SPACE", "horizontalAlignment": "CENTER", - // "verticalAlignment" : "CENTER", "widgets": [ { "textParagraph": { - // "text": "First column text paragraph", } } ] }, { - // "horizontalSizeStyle": "FILL_AVAILABLE_SPACE", "horizontalAlignment": - // "CENTER", "verticalAlignment" : "CENTER", "widgets": [ { - // "textParagraph": { "text": "Second column text paragraph", } } ] }, ] - // } } ``` - Columns *AppsDynamiteStorageColumns `json:"columns,omitempty"` - - // DateTimePicker: Displays a selection/input widget for date/time. For - // example, the following JSON creates a date/time picker for an - // appointment time: ``` "date_time_picker": { "name": - // "appointment_time", "label": "Book your appointment at:", "type": - // "DateTimePickerType.DATE_AND_TIME", "valueMsEpoch": "796435200000" } - // ``` - DateTimePicker *AppsDynamiteStorageDateTimePicker `json:"dateTimePicker,omitempty"` - - // DecoratedText: Displays a decorated text item in this widget. For - // example, the following JSON creates a decorated text widget showing - // email address: ``` "decoratedText": { "icon": { "knownIcon": "EMAIL" - // }, "topLabel": "Email Address", "content": "heba.salam@example.com", - // "bottomLabel": "This is a new Email address!", "switchWidget": { - // "name": "has_send_welcome_email_to_heba_salam", "selected": false, - // "controlType": "ControlType.CHECKBOX" } } ``` - DecoratedText *AppsDynamiteStorageDecoratedText `json:"decoratedText,omitempty"` - - // Divider: Displays a divider. For example, the following JSON creates - // a divider: ``` "divider": { } ``` - Divider *AppsDynamiteStorageDivider `json:"divider,omitempty"` - - // Grid: Displays a grid with a collection of items. For example, the - // following JSON creates a 2 column grid with a single item: ``` - // "grid": { "title": "A fine collection of items", "numColumns": 2, - // "borderStyle": { "type": "STROKE", "cornerRadius": 4.0 }, "items": [ - // "image": { "imageUri": "https://www.example.com/image.png", - // "cropStyle": { "type": "SQUARE" }, "borderStyle": { "type": "STROKE" - // } }, "title": "An item", "textAlignment": "CENTER" ], "onClick": { - // "openLink": { "url":"https://www.example.com" } } } ``` - Grid *AppsDynamiteStorageGrid `json:"grid,omitempty"` - - // HorizontalAlignment: The horizontal alignment of this widget. - // - // Possible values: - // "HORIZONTAL_ALIGNMENT_UNSPECIFIED" - Unspecified alignment. - // "START" - Alignment to the start position. - // "CENTER" - Alignment to the center position. - // "END" - Alignment to the end position. - HorizontalAlignment string `json:"horizontalAlignment,omitempty"` - - // Image: Displays an image in this widget. For example, the following - // JSON creates an image with alternative text: ``` "image": { - // "imageUrl": "https://example.com/heba_salam.png" "altText": "Avatar - // for Heba Salam" } ``` - Image *AppsDynamiteStorageImage `json:"image,omitempty"` - - // SelectionInput: Displays a switch control in this widget. For - // example, the following JSON creates a dropdown selection for size: - // ``` "switchControl": { "name": "size", "label": "Size" "type": - // "SelectionType.DROPDOWN", "items": [ { "text": "S", "value": "small", - // "selected": false }, { "text": "M", "value": "medium", "selected": - // true }, { "text": "L", "value": "large", "selected": false }, { - // "text": "XL", "value": "extra_large", "selected": false } ] } ``` - SelectionInput *AppsDynamiteStorageSelectionInput `json:"selectionInput,omitempty"` - - // TextInput: Displays a text input in this widget. For example, the - // following JSON creates a text input for mail address: ``` - // "textInput": { "name": "mailing_address", "label": "Mailing Address" - // } ``` As another example, the following JSON creates a text input for - // programming language with static suggestions: ``` "textInput": { - // "name": "preferred_programing_language", "label": "Preferred - // Language", "initialSuggestions": { "items": [ { "text": "C++" }, { - // "text": "Java" }, { "text": "JavaScript" }, { "text": "Python" } ] } - // } ``` - TextInput *AppsDynamiteStorageTextInput `json:"textInput,omitempty"` - - // TextParagraph: Displays a text paragraph in this widget. For example, - // the following JSON creates a bolded text: ``` "textParagraph": { - // "text": " *bold text*" } ``` - TextParagraph *AppsDynamiteStorageTextParagraph `json:"textParagraph,omitempty"` - - // ForceSendFields is a list of field names (e.g. "ButtonList") to - // unconditionally include in API requests. By default, fields with +// FreshnessOptions: Indicates which freshness property to use when +// adjusting search ranking for an item. Fresher, more recent dates +// indicate higher quality. Use the freshness option property that best +// works with your data. For fileshare documents, last modified time is +// most relevant. For calendar event data, the time when the event +// occurs is a more relevant freshness indicator. In this way, calendar +// events that occur closer to the time of the search query are +// considered higher quality and ranked accordingly. +type FreshnessOptions struct { + // FreshnessDuration: The duration after which an object should be + // considered stale. The default value is 180 days (in seconds). + FreshnessDuration string `json:"freshnessDuration,omitempty"` + + // FreshnessProperty: This property indicates the freshness level of the + // object in the index. If set, this property must be a top-level + // property within the property definitions and it must be a timestamp + // type or date type. Otherwise, the Indexing API uses updateTime as the + // freshness indicator. The maximum length is 256 characters. When a + // property is used to calculate freshness, the value defaults to 2 + // years from the current time. + FreshnessProperty string `json:"freshnessProperty,omitempty"` + + // ForceSendFields is a list of field names (e.g. "FreshnessDuration") + // 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. "ButtonList") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "FreshnessDuration") 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 *AppsDynamiteStorageWidget) MarshalJSON() ([]byte, error) { - type NoMethod AppsDynamiteStorageWidget +func (s *FreshnessOptions) MarshalJSON() ([]byte, error) { + type NoMethod FreshnessOptions raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// AppsDynamiteV1ApiCompatV1Action: Interactive objects inside a -// message. Documentation: - https://api.slack.com/docs/message-buttons -type AppsDynamiteV1ApiCompatV1Action struct { - // Confirm: Confirmation dialog config. - Confirm *AppsDynamiteV1ApiCompatV1ActionConfirm `json:"confirm,omitempty"` - - // Name: Unique identifier for this action. - Name string `json:"name,omitempty"` - - // Style: Button style ("default", "primary", or "danger"). - Style string `json:"style,omitempty"` - - // Text: User-facing label for the action. - Text string `json:"text,omitempty"` +type GSuitePrincipal struct { + // GsuiteDomain: This principal represents all users of the Google + // Workspace domain of the customer. + GsuiteDomain bool `json:"gsuiteDomain,omitempty"` - // Type: Action type - currently only "button". - Type string `json:"type,omitempty"` + // GsuiteGroupEmail: This principal references a Google Workspace group + // name. + GsuiteGroupEmail string `json:"gsuiteGroupEmail,omitempty"` - // Value: Payload for this action. Will be sent to the action handler - // along with name. - Value string `json:"value,omitempty"` + // GsuiteUserEmail: This principal references a Google Workspace user + // account. + GsuiteUserEmail string `json:"gsuiteUserEmail,omitempty"` - // ForceSendFields is a list of field names (e.g. "Confirm") to + // ForceSendFields is a list of field names (e.g. "GsuiteDomain") 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 @@ -5324,36 +4680,71 @@ type AppsDynamiteV1ApiCompatV1Action struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Confirm") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as + // NullFields is a list of field names (e.g. "GsuiteDomain") 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 *AppsDynamiteV1ApiCompatV1Action) MarshalJSON() ([]byte, error) { - type NoMethod AppsDynamiteV1ApiCompatV1Action +func (s *GSuitePrincipal) MarshalJSON() ([]byte, error) { + type NoMethod GSuitePrincipal raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// AppsDynamiteV1ApiCompatV1ActionConfirm: Confirmation dialog config. -type AppsDynamiteV1ApiCompatV1ActionConfirm struct { - // DismissText: "Cancel" button label. - DismissText string `json:"dismiss_text,omitempty"` +type GetCustomerIndexStatsResponse struct { + // AverageIndexedItemCount: Average item count for the given date range + // for which billing is done. + AverageIndexedItemCount int64 `json:"averageIndexedItemCount,omitempty,string"` + + // Stats: Summary of indexed item counts, one for each day in the + // requested range. + Stats []*CustomerIndexStats `json:"stats,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. + // "AverageIndexedItemCount") 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. "AverageIndexedItemCount") + // 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 *GetCustomerIndexStatsResponse) MarshalJSON() ([]byte, error) { + type NoMethod GetCustomerIndexStatsResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} - // OkText: "OK" button label. - OkText string `json:"ok_text,omitempty"` +type GetCustomerQueryStatsResponse struct { + Stats []*CustomerQueryStats `json:"stats,omitempty"` - // Text: Confirmation dialog body text. - Text string `json:"text,omitempty"` + // TotalQueryCount: Total successful query count (status code 200) for + // the given date range. + TotalQueryCount int64 `json:"totalQueryCount,omitempty,string"` - // Title: Confirmation dialog title. - Title string `json:"title,omitempty"` + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "DismissText") to + // ForceSendFields is a list of field names (e.g. "Stats") 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 @@ -5361,87 +4752,68 @@ type AppsDynamiteV1ApiCompatV1ActionConfirm struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "DismissText") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as + // NullFields is a list of field names (e.g. "Stats") 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 *AppsDynamiteV1ApiCompatV1ActionConfirm) MarshalJSON() ([]byte, error) { - type NoMethod AppsDynamiteV1ApiCompatV1ActionConfirm +func (s *GetCustomerQueryStatsResponse) MarshalJSON() ([]byte, error) { + type NoMethod GetCustomerQueryStatsResponse raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// AppsDynamiteV1ApiCompatV1Attachment: Richly formatted attachments. -// Documentation: - https://api.slack.com/docs/message-attachments -type AppsDynamiteV1ApiCompatV1Attachment struct { - // Actions: Array of actions (currently only buttons). - Actions []*AppsDynamiteV1ApiCompatV1Action `json:"actions,omitempty"` - - // AttachmentType: Undocumented - used in interactive button examples. - // The only valid value appears to be "default". - AttachmentType string `json:"attachment_type,omitempty"` - - // AuthorIcon: Avatar URL for the user. - AuthorIcon string `json:"author_icon,omitempty"` - - // AuthorLink: URL that the user name should link to. - AuthorLink string `json:"author_link,omitempty"` - - // AuthorName: User name to display as the author of the message. - AuthorName string `json:"author_name,omitempty"` - - // CallbackId: Unique identifier for the collection of buttons within - // this attachment. Will be sent back to the action handler URL when a - // button is clicked. - CallbackId string `json:"callback_id,omitempty"` - - // Color: A color "bar" to display to the left of the attachment. - Color string `json:"color,omitempty"` - - // Fallback: Fallback plain-text string for clients that don't support - // attachments. - Fallback string `json:"fallback,omitempty"` - - // Fields: Columns of text inside the attachment body. - Fields []*AppsDynamiteV1ApiCompatV1Field `json:"fields,omitempty"` - - // Footer: A string displayed at the bottom of the attachment. - Footer string `json:"footer,omitempty"` - - // FooterIcon: Avatar URL displayed to the left of the footer. - FooterIcon string `json:"footer_icon,omitempty"` - - // ImageUrl: URL of an image to display in an image chip. - ImageUrl string `json:"image_url,omitempty"` +// GetCustomerSearchApplicationStatsResponse: Response format for search +// application stats for a customer. +type GetCustomerSearchApplicationStatsResponse struct { + // AverageSearchApplicationCount: Average search application count for + // the given date range. + AverageSearchApplicationCount int64 `json:"averageSearchApplicationCount,omitempty,string"` - // MrkdwnIn: List of fields to apply formatting to. - MrkdwnIn []string `json:"mrkdwn_in,omitempty"` + // Stats: Search application stats by date. + Stats []*CustomerSearchApplicationStats `json:"stats,omitempty"` - // Pretext: A string to show above the attachment. - Pretext string `json:"pretext,omitempty"` + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` - // Text: Main text. - Text string `json:"text,omitempty"` + // ForceSendFields is a list of field names (e.g. + // "AverageSearchApplicationCount") 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:"-"` - // ThumbUrl: URL of a thumbnail image to display to the right of the - // attachment body. - ThumbUrl string `json:"thumb_url,omitempty"` + // NullFields is a list of field names (e.g. + // "AverageSearchApplicationCount") 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:"-"` +} - // Title: Title string of this attachment. - Title string `json:"title,omitempty"` +func (s *GetCustomerSearchApplicationStatsResponse) MarshalJSON() ([]byte, error) { + type NoMethod GetCustomerSearchApplicationStatsResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} - // TitleLink: URL that the title string should link to. - TitleLink string `json:"title_link,omitempty"` +type GetCustomerSessionStatsResponse struct { + Stats []*CustomerSessionStats `json:"stats,omitempty"` - // Ts: UNIX timestamp of the attachment. - Ts int64 `json:"ts,omitempty"` + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Actions") to + // ForceSendFields is a list of field names (e.g. "Stats") 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 @@ -5449,8 +4821,8 @@ type AppsDynamiteV1ApiCompatV1Attachment struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Actions") to include in - // API requests with the JSON null value. By default, fields with empty + // NullFields is a list of field names (e.g. "Stats") 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. @@ -5458,26 +4830,20 @@ type AppsDynamiteV1ApiCompatV1Attachment struct { NullFields []string `json:"-"` } -func (s *AppsDynamiteV1ApiCompatV1Attachment) MarshalJSON() ([]byte, error) { - type NoMethod AppsDynamiteV1ApiCompatV1Attachment +func (s *GetCustomerSessionStatsResponse) MarshalJSON() ([]byte, error) { + type NoMethod GetCustomerSessionStatsResponse raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// AppsDynamiteV1ApiCompatV1Field: A column of text in an attachment. -// Documentation: - https://api.slack.com/docs/message-attachments -type AppsDynamiteV1ApiCompatV1Field struct { - // Short: Whether the field can be shown side-by-side with another - // field. - Short bool `json:"short,omitempty"` - - // Title: The heading text, shown in bold. - Title string `json:"title,omitempty"` +type GetCustomerUserStatsResponse struct { + Stats []*CustomerUserStats `json:"stats,omitempty"` - // Value: The text value of the field. - Value string `json:"value,omitempty"` + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Short") to + // ForceSendFields is a list of field names (e.g. "Stats") 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 @@ -5485,7 +4851,7 @@ type AppsDynamiteV1ApiCompatV1Field struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Short") to include in API + // NullFields is a list of field names (e.g. "Stats") 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 @@ -5494,52 +4860,65 @@ type AppsDynamiteV1ApiCompatV1Field struct { NullFields []string `json:"-"` } -func (s *AppsDynamiteV1ApiCompatV1Field) MarshalJSON() ([]byte, error) { - type NoMethod AppsDynamiteV1ApiCompatV1Field +func (s *GetCustomerUserStatsResponse) MarshalJSON() ([]byte, error) { + type NoMethod GetCustomerUserStatsResponse raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -type AppsExtensionsMarkupCalendarClientActionMarkupAddAttachmentsActionMarkup struct { - AddonAttachments []*AppsExtensionsMarkupCalendarClientActionMarkupAddAttachmentsActionMarkupAddonAttachment `json:"addonAttachments,omitempty"` - - // ForceSendFields is a list of field names (e.g. "AddonAttachments") 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. +type GetDataSourceIndexStatsResponse struct { + // AverageIndexedItemCount: Average item count for the given date range + // for which billing is done. + AverageIndexedItemCount int64 `json:"averageIndexedItemCount,omitempty,string"` + + // Stats: Summary of indexed item counts, one for each day in the + // requested range. + Stats []*DataSourceIndexStats `json:"stats,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. + // "AverageIndexedItemCount") 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. "AddonAttachments") 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. "AverageIndexedItemCount") + // 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 *AppsExtensionsMarkupCalendarClientActionMarkupAddAttachmentsActionMarkup) MarshalJSON() ([]byte, error) { - type NoMethod AppsExtensionsMarkupCalendarClientActionMarkupAddAttachmentsActionMarkup +func (s *GetDataSourceIndexStatsResponse) MarshalJSON() ([]byte, error) { + type NoMethod GetDataSourceIndexStatsResponse raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -type AppsExtensionsMarkupCalendarClientActionMarkupAddAttachmentsActionMarkupAddonAttachment struct { - // IconUrl: Link to the resource's icon. - IconUrl string `json:"iconUrl,omitempty"` - - // MimeType: MIME type of the content in resource_url. - MimeType string `json:"mimeType,omitempty"` +// GetSearchApplicationQueryStatsResponse: Response format for getting +// query stats for a search application between given dates. +type GetSearchApplicationQueryStatsResponse struct { + // Stats: Query stats per date for a search application. + Stats []*SearchApplicationQueryStats `json:"stats,omitempty"` - ResourceUrl string `json:"resourceUrl,omitempty"` + // TotalQueryCount: Total successful query count (status code 200) for + // the given date range. + TotalQueryCount int64 `json:"totalQueryCount,omitempty,string"` - // Title: Title of the attachment. - Title string `json:"title,omitempty"` + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "IconUrl") to + // ForceSendFields is a list of field names (e.g. "Stats") 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 @@ -5547,8 +4926,8 @@ type AppsExtensionsMarkupCalendarClientActionMarkupAddAttachmentsActionMarkupAdd // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "IconUrl") to include in - // API requests with the JSON null value. By default, fields with empty + // NullFields is a list of field names (e.g. "Stats") 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. @@ -5556,42 +4935,50 @@ type AppsExtensionsMarkupCalendarClientActionMarkupAddAttachmentsActionMarkupAdd NullFields []string `json:"-"` } -func (s *AppsExtensionsMarkupCalendarClientActionMarkupAddAttachmentsActionMarkupAddonAttachment) MarshalJSON() ([]byte, error) { - type NoMethod AppsExtensionsMarkupCalendarClientActionMarkupAddAttachmentsActionMarkupAddonAttachment +func (s *GetSearchApplicationQueryStatsResponse) MarshalJSON() ([]byte, error) { + type NoMethod GetSearchApplicationQueryStatsResponse raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// AppsExtensionsMarkupCalendarClientActionMarkupConferenceDataMarkup: -// Markup that defines conference data associated to a Google Calendar -// event. -type AppsExtensionsMarkupCalendarClientActionMarkupConferenceDataMarkup struct { - // ConferenceId: Unique identifier for this conference data. Maximum 512 - // characters long. - ConferenceId string `json:"conferenceId,omitempty"` +type GetSearchApplicationSessionStatsResponse struct { + Stats []*SearchApplicationSessionStats `json:"stats,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` - // ConferenceSolutionId: An identifier of the conferencing solution. - // Must match a value from the deployment's - // `calendar.conferenceSolution.id` field. - ConferenceSolutionId string `json:"conferenceSolutionId,omitempty"` + // ForceSendFields is a list of field names (e.g. "Stats") 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:"-"` - // EntryPoints: Entry points to the conference. Maximum 300 entry points - // are allowed. - EntryPoints []*AppsExtensionsMarkupCalendarClientActionMarkupConferenceDataMarkupEntryPointMarkup `json:"entryPoints,omitempty"` + // NullFields is a list of field names (e.g. "Stats") 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:"-"` +} - // Error: If set, it means an error occurred during conference creation. - Error *AppsExtensionsMarkupCalendarClientActionMarkupConferenceDataMarkupError `json:"error,omitempty"` +func (s *GetSearchApplicationSessionStatsResponse) MarshalJSON() ([]byte, error) { + type NoMethod GetSearchApplicationSessionStatsResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} - // Note: Additional notes (such as instructions from the administrator, - // legal notices) to display to the user. Can contain HTML. Max length - // 2048 characters. - Note string `json:"note,omitempty"` +type GetSearchApplicationUserStatsResponse struct { + Stats []*SearchApplicationUserStats `json:"stats,omitempty"` - // Parameters: Additional add-on parameters. Maximum 300 parameters are - // allowed. - Parameters []*AppsExtensionsMarkupCalendarClientActionMarkupConferenceDataMarkupParameter `json:"parameters,omitempty"` + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "ConferenceId") to + // ForceSendFields is a list of field names (e.g. "Stats") 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 @@ -5599,81 +4986,77 @@ type AppsExtensionsMarkupCalendarClientActionMarkupConferenceDataMarkup struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "ConferenceId") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as + // NullFields is a list of field names (e.g. "Stats") 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 *AppsExtensionsMarkupCalendarClientActionMarkupConferenceDataMarkup) MarshalJSON() ([]byte, error) { - type NoMethod AppsExtensionsMarkupCalendarClientActionMarkupConferenceDataMarkup +func (s *GetSearchApplicationUserStatsResponse) MarshalJSON() ([]byte, error) { + type NoMethod GetSearchApplicationUserStatsResponse raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// AppsExtensionsMarkupCalendarClientActionMarkupConferenceDataMarkupEntr -// yPointMarkup: A way to join the conference. -type AppsExtensionsMarkupCalendarClientActionMarkupConferenceDataMarkupEntryPointMarkup struct { - // AccessCode: An access code for accessing the conference. Maximum 128 - // characters long. - AccessCode string `json:"accessCode,omitempty"` +// GoogleDocsMetadata: The corpus specific metadata for office-type +// documents, from Google Docs and other sources. This message is passed +// to the scorer and beyond. Next tag: 9 +type GoogleDocsMetadata struct { + // AclInfo: Contains number of users and groups which can access the + // document. + AclInfo *AclInfo `json:"aclInfo,omitempty"` - // Features: Features of the entry point, such as being toll or - // toll-free. One entry point can have multiple features. + // DocumentType: The conceptual type (presentation, document, etc.) of + // this document. // // Possible values: - // "UNKNOWN_FEATURE" - Unknown feature. - // "TOLL" - Applies to `PHONE` entry point. A call to a toll number is - // charged to the calling party. A number can't be toll and toll-free at - // the same time. - // "TOLL_FREE" - Applies to `PHONE` entry point. For the calling - // party, a call to a toll-free number is free of charge. A number can't - // be toll and toll-free at the same time. - Features []string `json:"features,omitempty"` - - // Label: The label of the entry point to display to the user. Maximum - // 512 characters long. - Label string `json:"label,omitempty"` - - // MeetingCode: A meeting code for accessing the conference. Maximum 128 - // characters long. - MeetingCode string `json:"meetingCode,omitempty"` + // "UNKNOWN" - If the type is unknown or not represented in this enum. + // "DOCUMENT" - Writely, Word, etc. + // "PRESENTATION" - Presently, PowerPoint, etc. + // "SPREADSHEET" - Trix, Excel, etc. + // "PDF" - File types for Gdrive objects are below. + // "IMAGE" + // "BINARY_BLOB" - Fall-back for unknown Gdrive types. + // "FUSION_TABLE" + // "FOLDER" + // "DRAWING" + // "VIDEO" + // "FORM" + // "DRAFT_SITE" - For Atari page and site drafts + // "DRAFT_SITE_PAGE" + // "JAM" - Jamboard Jams (go/jam) + // "SHORTCUT" - Drive Shortcuts (go/shortcuts) + // "SCRIPT" + DocumentType string `json:"documentType,omitempty"` - // Passcode: A passcode for accessing the conference. Maximum 128 - // characters long. - Passcode string `json:"passcode,omitempty"` + // FileExtension: The file extension of the document. NOTE: As of + // October 2018 this field is not backfilled for old documents. + FileExtension string `json:"fileExtension,omitempty"` - // Password: A password for accessing the conference. Maximum 128 - // characters long. - Password string `json:"password,omitempty"` + // LastContentModifiedTimestamp: The last time this document was + // modified, in seconds since epoch. Only counts content modifications. + LastContentModifiedTimestamp int64 `json:"lastContentModifiedTimestamp,omitempty,string"` - // Pin: A PIN for accessing the conference. Maximum 128 characters long. - Pin string `json:"pin,omitempty"` + // NumSubscribers: Contains number of subscribers for the document. + NumSubscribers int64 `json:"numSubscribers,omitempty"` - // RegionCode: The CLDR/ISO 3166 region code for the country associated - // with this entry point. Applicable only to `Type.PHONE`. - RegionCode string `json:"regionCode,omitempty"` + // NumViewers: Size of untruncated viewers list. + NumViewers int64 `json:"numViewers,omitempty"` - // Type: The type of the entry point. Required. - // - // Possible values: - // "UNKNOWN" - Unknown conference type. - // "VIDEO" - A video conference. - // "PHONE" - A phone conference. - // "MORE" - Used to provide a link to further conference joining - // information. - // "SIP" - A conference using [Session Initiation - // Protocol](https://en.wikipedia.org/wiki/Session_Initiation_Protocol) - Type string `json:"type,omitempty"` + // ResultInfo: Additional per-result information, akin to Gmail's + // SingleThreadResponse. Note: GWS no longer seems to use this field, + // but there's still one reference to it for Scribe, so we can't remove + // it. + ResultInfo *GoogleDocsResultInfo `json:"resultInfo,omitempty"` - // Uri: A URI for joining the conference. Supports tel: and http(s): and - // should be at most 1300 characters long. Required. - Uri string `json:"uri,omitempty"` + // TypeInfo: Contains additional information about the document + // depending on its type. + TypeInfo *TypeInfo `json:"typeInfo,omitempty"` - // ForceSendFields is a list of field names (e.g. "AccessCode") to + // ForceSendFields is a list of field names (e.g. "AclInfo") 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 @@ -5681,7 +5064,7 @@ type AppsExtensionsMarkupCalendarClientActionMarkupConferenceDataMarkupEntryPoin // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "AccessCode") to include in + // NullFields is a list of field names (e.g. "AclInfo") 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 @@ -5690,43 +5073,53 @@ type AppsExtensionsMarkupCalendarClientActionMarkupConferenceDataMarkupEntryPoin NullFields []string `json:"-"` } -func (s *AppsExtensionsMarkupCalendarClientActionMarkupConferenceDataMarkupEntryPointMarkup) MarshalJSON() ([]byte, error) { - type NoMethod AppsExtensionsMarkupCalendarClientActionMarkupConferenceDataMarkupEntryPointMarkup +func (s *GoogleDocsMetadata) MarshalJSON() ([]byte, error) { + type NoMethod GoogleDocsMetadata raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// AppsExtensionsMarkupCalendarClientActionMarkupConferenceDataMarkupErro -// r: Represents an error that occurred during conference creation. -type AppsExtensionsMarkupCalendarClientActionMarkupConferenceDataMarkupError struct { - // AuthenticationUrl: If the error type is `AUTHENTICATION`, the add-on - // can provide a URL allowing users to log in. Maximum 1300 characters - // long. - AuthenticationUrl string `json:"authenticationUrl,omitempty"` +// GoogleDocsResultInfo: A message containing information about a +// specific result. This information is passed to the scorer and beyond; +// in particular, GWS relies on it to format the result in the UI. Split +// from GoogleDocsMetadata in case we later want to reuse the message. +type GoogleDocsResultInfo struct { + // AttachmentSha1: The SHA1 hash of the object in Drive, if any. + AttachmentSha1 string `json:"attachmentSha1,omitempty"` - // Type: The type of error. Required. - // - // Possible values: - // "UNKNOWN" - Unknown error. - // "AUTHENTICATION" - An authentication error. - // "TEMPORARY" - A temporary error. - // "PERMANENT" - A permanent error. - // "PERMISSION_DENIED" - The user isn't allowed to perform some action - // in the third-party conferencing system. - // "CONFERENCE_SOLUTION_FORBIDDEN" - The user isn't allowed to use the - // selected conference solution (but might be allowed to use other - // solutions offered by the add-on). - Type string `json:"type,omitempty"` + // CosmoId: The storage identifier for the object in Cosmo. This field + // is intended to used by Stratus/Moonshine integration only. It should + // not be exposed externally (please refer to encrypted_id for that + // purpose). + CosmoId *Id `json:"cosmoId,omitempty"` - // ForceSendFields is a list of field names (e.g. "AuthenticationUrl") - // to unconditionally include in API requests. By default, fields with + // CosmoNameSpace: For Cosmo objects, the Cosmo namespace the object was + // in. This allows downstream clients to identify whether a document was + // created in Writely or Kix, Presently or Punch, or whether it was + // uploaded from GDrive. See storage_cosmo.Id.NAME_SPACE for a list of + // all Cosmo name spaces. + CosmoNameSpace int64 `json:"cosmoNameSpace,omitempty"` + + // EncryptedId: The encrypted (user-visible) id of this object. Knowing + // the id is sufficient to create a canonical URL for this document. + EncryptedId string `json:"encryptedId,omitempty"` + + // MimeType: The mimetype of the document. + MimeType string `json:"mimeType,omitempty"` + + // ShareScope: The visibility indicator in the UI will be based upon + // this. + ShareScope *ShareScope `json:"shareScope,omitempty"` + + // ForceSendFields is a list of field names (e.g. "AttachmentSha1") 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. "AuthenticationUrl") to + // NullFields is a list of field names (e.g. "AttachmentSha1") 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 @@ -5736,26 +5129,28 @@ type AppsExtensionsMarkupCalendarClientActionMarkupConferenceDataMarkupError str NullFields []string `json:"-"` } -func (s *AppsExtensionsMarkupCalendarClientActionMarkupConferenceDataMarkupError) MarshalJSON() ([]byte, error) { - type NoMethod AppsExtensionsMarkupCalendarClientActionMarkupConferenceDataMarkupError +func (s *GoogleDocsResultInfo) MarshalJSON() ([]byte, error) { + type NoMethod GoogleDocsResultInfo raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// AppsExtensionsMarkupCalendarClientActionMarkupConferenceDataMarkupPara -// meter: Solution-specific parameters that are persisted with the event -// data and, if an update or delete is needed, are passed to the add-on. -// For example: `[{key: 'sessionKey', value: '123'}, {key: 'meetingId', -// value: '456'}]` -type AppsExtensionsMarkupCalendarClientActionMarkupConferenceDataMarkupParameter struct { - // Key: The key of the parameter. Maximum 50 characters long. Required. - Key string `json:"key,omitempty"` - - // Value: The value of the parameter. Maximum 1024 characters long. - // Required. - Value string `json:"value,omitempty"` +// HtmlOperatorOptions: Used to provide a search operator for html +// properties. This is optional. Search operators let users restrict the +// query to specific fields relevant to the type of item being searched. +type HtmlOperatorOptions struct { + // OperatorName: Indicates the operator name required in the query in + // order to isolate the html property. For example, if operatorName is + // *subject* and the property's name is *subjectLine*, then queries like + // *subject:* show results only where the value of the property + // named *subjectLine* matches **. By contrast, a search that + // uses the same ** without an operator return all items where + // ** matches the value of any html properties or text within the + // content field for the item. The operator name can only contain + // lowercase letters (a-z). The maximum length is 32 characters. + OperatorName string `json:"operatorName,omitempty"` - // ForceSendFields is a list of field names (e.g. "Key") to + // ForceSendFields is a list of field names (e.g. "OperatorName") 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 @@ -5763,35 +5158,41 @@ type AppsExtensionsMarkupCalendarClientActionMarkupConferenceDataMarkupParameter // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Key") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as + // NullFields is a list of field names (e.g. "OperatorName") 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 *AppsExtensionsMarkupCalendarClientActionMarkupConferenceDataMarkupParameter) MarshalJSON() ([]byte, error) { - type NoMethod AppsExtensionsMarkupCalendarClientActionMarkupConferenceDataMarkupParameter +func (s *HtmlOperatorOptions) MarshalJSON() ([]byte, error) { + type NoMethod HtmlOperatorOptions raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -type AppsExtensionsMarkupCalendarClientActionMarkupEditAttendeesActionMarkup struct { - // AddAttendeeEmails: A list of attendees to add to the Google Calendar - // event. - AddAttendeeEmails []string `json:"addAttendeeEmails,omitempty"` +// HtmlPropertyOptions: The options for html properties. +type HtmlPropertyOptions struct { + // OperatorOptions: If set, describes how the property should be used as + // a search operator. + OperatorOptions *HtmlOperatorOptions `json:"operatorOptions,omitempty"` + + // RetrievalImportance: Indicates the search quality importance of the + // tokens within the field when used for retrieval. Can only be set to + // DEFAULT or NONE. + RetrievalImportance *RetrievalImportance `json:"retrievalImportance,omitempty"` - // ForceSendFields is a list of field names (e.g. "AddAttendeeEmails") - // to unconditionally include in API requests. By default, fields with + // ForceSendFields is a list of field names (e.g. "OperatorOptions") 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. "AddAttendeeEmails") to + // NullFields is a list of field names (e.g. "OperatorOptions") 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 @@ -5801,18 +5202,19 @@ type AppsExtensionsMarkupCalendarClientActionMarkupEditAttendeesActionMarkup str NullFields []string `json:"-"` } -func (s *AppsExtensionsMarkupCalendarClientActionMarkupEditAttendeesActionMarkup) MarshalJSON() ([]byte, error) { - type NoMethod AppsExtensionsMarkupCalendarClientActionMarkupEditAttendeesActionMarkup +func (s *HtmlPropertyOptions) MarshalJSON() ([]byte, error) { + type NoMethod HtmlPropertyOptions raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -type AppsExtensionsMarkupCalendarClientActionMarkupEditConferenceDataActionMarkup struct { - // ConferenceData: The conference data to add to the Google Calendar - // event. - ConferenceData *AppsExtensionsMarkupCalendarClientActionMarkupConferenceDataMarkup `json:"conferenceData,omitempty"` +// HtmlValues: List of html values. +type HtmlValues struct { + // Values: The maximum allowable length for html values is 2048 + // characters. + Values []string `json:"values,omitempty"` - // ForceSendFields is a list of field names (e.g. "ConferenceData") to + // ForceSendFields is a list of field names (e.g. "Values") 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 @@ -5820,94 +5222,52 @@ type AppsExtensionsMarkupCalendarClientActionMarkupEditConferenceDataActionMarku // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "ConferenceData") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "Values") 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 *AppsExtensionsMarkupCalendarClientActionMarkupEditConferenceDataActionMarkup) MarshalJSON() ([]byte, error) { - type NoMethod AppsExtensionsMarkupCalendarClientActionMarkupEditConferenceDataActionMarkup +func (s *HtmlValues) MarshalJSON() ([]byte, error) { + type NoMethod HtmlValues raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// Attachment: Attachments that follow the message text. -type Attachment struct { - // AddOnData: Revised version of Gmail AddOn attachment approved by API - // design review. - AddOnData *GoogleChatV1ContextualAddOnMarkup `json:"addOnData,omitempty"` - - // AppId: The userId for the bot/app that created this data, to be used - // for attribution of attachments when the attachment was not created by - // the message sender. - AppId *UserId `json:"appId,omitempty"` - - // AttachmentId: To identify an attachment within repeated in a message - AttachmentId string `json:"attachmentId,omitempty"` - - // CardAddOnData: Card AddOn attachment with the possibility for - // specifying editable widgets. - CardAddOnData *AppsDynamiteStorageCard `json:"cardAddOnData,omitempty"` - - // ComponentSearchInfo: Contains additional metadata that further - // enhance the annotation when it is returned as part of search - // response. For example, this can be used to define how the attachment - // matches the search. Information can be used to highlight in rendering - // search results. The following are the different attachment text - // fields that are covered by this field: 1. - // ContextualAddOn.Card.CardHeader.title 2. - // CardItem.CardItemHeader.title - ComponentSearchInfo *AppsDynamiteSharedMessageComponentSearchInfo `json:"componentSearchInfo,omitempty"` - - // DeprecatedAddOnData: Deprecated version of Gmail AddOn attachment. - DeprecatedAddOnData *ContextualAddOnMarkup `json:"deprecatedAddOnData,omitempty"` - - // SlackData: Slack attachment. - SlackData *AppsDynamiteV1ApiCompatV1Attachment `json:"slackData,omitempty"` - - // SlackDataImageUrlHeight: The height of image url as fetched by fife. - // This field is asynchronously filled. - SlackDataImageUrlHeight int64 `json:"slackDataImageUrlHeight,omitempty"` - - // ForceSendFields is a list of field names (e.g. "AddOnData") 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. "AddOnData") 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 *Attachment) MarshalJSON() ([]byte, error) { - type NoMethod Attachment - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} +// Id: Identifies a particular object, including both Users and +// DirEntries. This Id is unique across the entire server instance, such +// as the production or qa instance. +type Id struct { + // CreatorUserId: The User account in which the DirEntry was originally + // created. If name_space==GAIA, then it's the gaia_id of the user this + // id is referring to. This field should really be called the "bucket + // ID", not the creator ID. In some circumstances, such as copying a + // Google Docs file, a user can create an item in a different user's + // bucket, so it should not be relied upon for anything other than + // bucket location. To look up the requesting user who initially created + // item, use the `creator_id` DirEntry field instead. + CreatorUserId uint64 `json:"creatorUserId,omitempty,string"` -// Attribute: An Attribute is a piece of data attached an Item. -// Attributes are opaque to the Starbox and have no effect on, nor are -// they effected by, message storage, indexing, or search. -type Attribute struct { - // Name: The name of the attribute. Required - If a write is attempted - // with an empty string, the server will return an error. - Name string `json:"name,omitempty"` + // LocalId: The local identifier for the DirEntry (local to the + // creator's account). local_id + app_name is guaranteed to be unique + // within the creator account, but not across all User accounts. The + // string is case sensitive. Ignore if name_space==GAIA. NB For + // name_space==COSMO, all local_id's should be defined in + // google3/java/com/google/storage/cosmo/server/api/SpecialObjectIds.java + // as they have a special predefined meaning. See + // cosmo.client.CosmoIdFactory.createObjectId(long,String) for IMPORTANT + // recommendations when generating IDs. + LocalId string `json:"localId,omitempty"` - Value *CaribouAttributeValue `json:"value,omitempty"` + // NameSpace: The name space in which this id is unique (typically the + // application that created it). Values should be drawn from the above + // enum, but for experimentation, use values greater than 1000. + NameSpace int64 `json:"nameSpace,omitempty"` - // ForceSendFields is a list of field names (e.g. "Name") to + // ForceSendFields is a list of field names (e.g. "CreatorUserId") 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 @@ -5915,64 +5275,76 @@ type Attribute struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Name") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as + // NullFields is a list of field names (e.g. "CreatorUserId") 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 *Attribute) MarshalJSON() ([]byte, error) { - type NoMethod Attribute +func (s *Id) MarshalJSON() ([]byte, error) { + type NoMethod Id raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// AttributeRemoved: An attribute was deleted from some (subset of the) -// messages in this thread. -type AttributeRemoved struct { - AttributeId string `json:"attributeId,omitempty"` - - MessageKeys []*MultiKey `json:"messageKeys,omitempty"` +type IndexItemOptions struct { + // AllowUnknownGsuitePrincipals: Specifies if the index request should + // allow Google Workspace principals that do not exist or are deleted. + AllowUnknownGsuitePrincipals bool `json:"allowUnknownGsuitePrincipals,omitempty"` - // ForceSendFields is a list of field names (e.g. "AttributeId") 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 is a list of field names (e.g. + // "AllowUnknownGsuitePrincipals") 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. "AttributeId") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. + // "AllowUnknownGsuitePrincipals") 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 *AttributeRemoved) MarshalJSON() ([]byte, error) { - type NoMethod AttributeRemoved +func (s *IndexItemOptions) MarshalJSON() ([]byte, error) { + type NoMethod IndexItemOptions raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// AttributeSet: An attribute was added to some (subset of the) messages -// in this thread. -type AttributeSet struct { - AttributeId string `json:"attributeId,omitempty"` +type IndexItemRequest struct { + // ConnectorName: The name of connector making this call. Format: + // datasources/{source_id}/connectors/{ID} + ConnectorName string `json:"connectorName,omitempty"` + + // DebugOptions: Common debug options. + DebugOptions *DebugOptions `json:"debugOptions,omitempty"` + + IndexItemOptions *IndexItemOptions `json:"indexItemOptions,omitempty"` - // AttributeValue: The serialized attribute_value as persisted in the - // storage layer. The application is responsible for deserializing it to - // an Attribute.Value if appropriate. - AttributeValue string `json:"attributeValue,omitempty"` + // Item: The name of the item. Format: + // datasources/{source_id}/items/{item_id} + Item *Item `json:"item,omitempty"` - MessageKeys []*MultiKey `json:"messageKeys,omitempty"` + // Mode: Required. The RequestMode for this request. + // + // Possible values: + // "UNSPECIFIED" - The priority is not specified in the update + // request. Leaving priority unspecified results in an update failure. + // "SYNCHRONOUS" - For real-time updates. + // "ASYNCHRONOUS" - For changes that are executed after the response + // is sent back to the caller. + Mode string `json:"mode,omitempty"` - // ForceSendFields is a list of field names (e.g. "AttributeId") to + // ForceSendFields is a list of field names (e.g. "ConnectorName") 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 @@ -5980,7 +5352,7 @@ type AttributeSet struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "AttributeId") to include + // NullFields is a list of field names (e.g. "ConnectorName") 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 @@ -5989,67 +5361,34 @@ type AttributeSet struct { NullFields []string `json:"-"` } -func (s *AttributeSet) MarshalJSON() ([]byte, error) { - type NoMethod AttributeSet +func (s *IndexItemRequest) MarshalJSON() ([]byte, error) { + type NoMethod IndexItemRequest raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -type Attributes struct { - Attribute []*Attribute `json:"attribute,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Attribute") 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. "Attribute") 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 *Attributes) MarshalJSON() ([]byte, error) { - type NoMethod Attributes - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +// InitializeCustomerRequest: Request message for `InitializeCustomer` +// method. +type InitializeCustomerRequest struct { } -// AuditLoggingSettings: Represents the settings for Cloud audit logging -type AuditLoggingSettings struct { - // LogAdminReadActions: Indicates whether audit logging is on/off for - // admin activity read APIs i.e. Get/List DataSources, Get/List - // SearchApplications etc. - LogAdminReadActions bool `json:"logAdminReadActions,omitempty"` - - // LogDataReadActions: Indicates whether audit logging is on/off for - // data access read APIs i.e. ListItems, GetItem etc. - LogDataReadActions bool `json:"logDataReadActions,omitempty"` - - // LogDataWriteActions: Indicates whether audit logging is on/off for - // data access write APIs i.e. IndexItem etc. - LogDataWriteActions bool `json:"logDataWriteActions,omitempty"` - - // Project: The resource name of the GCP Project to store audit logs. - // Cloud audit logging will be enabled after project_name has been - // updated through CustomerService. Format: projects/{project_id} - Project string `json:"project,omitempty"` +// IntegerFacetingOptions: Used to specify integer faceting options. +type IntegerFacetingOptions struct { + // IntegerBuckets: Buckets for given integer values should be in + // strictly ascending order. For example, if values supplied are + // (1,5,10,100), the following facet buckets will be formed {<1, [1,5), + // [5-10), [10-100), >=100}. + IntegerBuckets googleapi.Int64s `json:"integerBuckets,omitempty"` - // ForceSendFields is a list of field names (e.g. "LogAdminReadActions") - // to unconditionally include in API requests. By default, fields with + // ForceSendFields is a list of field names (e.g. "IntegerBuckets") 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. "LogAdminReadActions") to + // NullFields is a list of field names (e.g. "IntegerBuckets") 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 @@ -6059,80 +5398,139 @@ type AuditLoggingSettings struct { NullFields []string `json:"-"` } -func (s *AuditLoggingSettings) MarshalJSON() ([]byte, error) { - type NoMethod AuditLoggingSettings +func (s *IntegerFacetingOptions) MarshalJSON() ([]byte, error) { + type NoMethod IntegerFacetingOptions raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// AuthorizedItemId: A combination of an identifier for a Drive resource -// (e.g. file, folder, or drive) and any secrets needed to access it. -// The secrets should never be logged, and this proto annotates those -// secret fields to ensure that they are not. Clients are encouraged to -// use this proto rather than defining their own, to ensure that secrets -// are correctly annotated. -type AuthorizedItemId struct { - // Id: Serialized ID of the Drive resource - Id string `json:"id,omitempty"` +// IntegerOperatorOptions: Used to provide a search operator for integer +// properties. This is optional. Search operators let users restrict the +// query to specific fields relevant to the type of item being searched. +type IntegerOperatorOptions struct { + // GreaterThanOperatorName: Indicates the operator name required in the + // query in order to isolate the integer property using the greater-than + // operator. For example, if greaterThanOperatorName is *priorityabove* + // and the property's name is *priorityVal*, then queries like + // *priorityabove:* show results only where the value of the + // property named *priorityVal* is greater than **. The operator + // name can only contain lowercase letters (a-z). The maximum length is + // 32 characters. + GreaterThanOperatorName string `json:"greaterThanOperatorName,omitempty"` + + // LessThanOperatorName: Indicates the operator name required in the + // query in order to isolate the integer property using the less-than + // operator. For example, if lessThanOperatorName is *prioritybelow* and + // the property's name is *priorityVal*, then queries like + // *prioritybelow:* show results only where the value of the + // property named *priorityVal* is less than **. The operator + // name can only contain lowercase letters (a-z). The maximum length is + // 32 characters. + LessThanOperatorName string `json:"lessThanOperatorName,omitempty"` - // ResourceKey: Resource key of the Drive item. This field should be - // unset if, depending on the context, the item does not have a resource - // key, or if none was specified. This must never be logged. - ResourceKey string `json:"resourceKey,omitempty"` + // OperatorName: Indicates the operator name required in the query in + // order to isolate the integer property. For example, if operatorName + // is *priority* and the property's name is *priorityVal*, then queries + // like *priority:* show results only where the value of the + // property named *priorityVal* matches **. By contrast, a search + // that uses the same ** without an operator returns all items + // where ** matches the value of any String properties or text + // within the content field for the item. The operator name can only + // contain lowercase letters (a-z). The maximum length is 32 characters. + OperatorName string `json:"operatorName,omitempty"` - // ForceSendFields is a list of field names (e.g. "Id") 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 is a list of field names (e.g. + // "GreaterThanOperatorName") 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. "Id") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "GreaterThanOperatorName") + // 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 *AuthorizedItemId) MarshalJSON() ([]byte, error) { - type NoMethod AuthorizedItemId +func (s *IntegerOperatorOptions) MarshalJSON() ([]byte, error) { + type NoMethod IntegerOperatorOptions raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -type AutoComplete struct { - Items []*AutoCompleteItem `json:"items,omitempty"` +// IntegerPropertyOptions: The options for integer properties. +type IntegerPropertyOptions struct { + // IntegerFacetingOptions: If set, describes integer faceting options + // for the given integer property. The corresponding integer property + // should be marked isFacetable. + IntegerFacetingOptions *IntegerFacetingOptions `json:"integerFacetingOptions,omitempty"` - // ForceSendFields is a list of field names (e.g. "Items") 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:"-"` + // MaximumValue: The maximum value of the property. The minimum and + // maximum values for the property are used to rank results according to + // the ordered ranking. Indexing requests with values greater than the + // maximum are accepted and ranked with the same weight as items indexed + // with the maximum value. + MaximumValue int64 `json:"maximumValue,omitempty,string"` - // NullFields is a list of field names (e.g. "Items") 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. + // MinimumValue: The minimum value of the property. The minimum and + // maximum values for the property are used to rank results according to + // the ordered ranking. Indexing requests with values less than the + // minimum are accepted and ranked with the same weight as items indexed + // with the minimum value. + MinimumValue int64 `json:"minimumValue,omitempty,string"` + + // OperatorOptions: If set, describes how the integer should be used as + // a search operator. + OperatorOptions *IntegerOperatorOptions `json:"operatorOptions,omitempty"` + + // OrderedRanking: Used to specify the ordered ranking for the integer. + // Can only be used if isRepeatable is false. + // + // Possible values: + // "NO_ORDER" - There is no ranking order for the property. Results + // are not adjusted by this property's value. + // "ASCENDING" - This property is ranked in ascending order. Lower + // values indicate lower ranking. + // "DESCENDING" - This property is ranked in descending order. Lower + // values indicate higher ranking. + OrderedRanking string `json:"orderedRanking,omitempty"` + + // ForceSendFields is a list of field names (e.g. + // "IntegerFacetingOptions") 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. "IntegerFacetingOptions") + // 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 *AutoComplete) MarshalJSON() ([]byte, error) { - type NoMethod AutoComplete +func (s *IntegerPropertyOptions) MarshalJSON() ([]byte, error) { + type NoMethod IntegerPropertyOptions raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -type AutoCompleteItem struct { - Text string `json:"text,omitempty"` +// IntegerValues: List of integer values. +type IntegerValues struct { + Values googleapi.Int64s `json:"values,omitempty"` - // ForceSendFields is a list of field names (e.g. "Text") to + // ForceSendFields is a list of field names (e.g. "Values") 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 @@ -6140,7 +5538,7 @@ type AutoCompleteItem struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Text") to include in API + // NullFields is a list of field names (e.g. "Values") 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 @@ -6149,49 +5547,37 @@ type AutoCompleteItem struct { NullFields []string `json:"-"` } -func (s *AutoCompleteItem) MarshalJSON() ([]byte, error) { - type NoMethod AutoCompleteItem +func (s *IntegerValues) MarshalJSON() ([]byte, error) { + type NoMethod IntegerValues raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// BabelMessageProps: Container for Babel (Hangouts Classic) only -// message properties. The properties here will not be consumed by -// Dynamite clients. They are relevant only for Hangouts Classic. -type BabelMessageProps struct { - // ClientGeneratedId: Babel clients locally generate this ID to dedupe - // against the async fanout. - ClientGeneratedId int64 `json:"clientGeneratedId,omitempty,string"` - - // ContentExtension: Stores additional Babel-specific properties (such - // as event metadata). - ContentExtension *ChatContentExtension `json:"contentExtension,omitempty"` - - // DeliveryMedium: Stores the delivery source of messages (such as phone - // number for SMS). - DeliveryMedium *DeliveryMedium `json:"deliveryMedium,omitempty"` - - // EventId: Primary identifier used by Hangouts Classic for its events - // (messages). - EventId string `json:"eventId,omitempty"` +// Interaction: Represents an interaction between a user and an item. +type Interaction struct { + // InteractionTime: The time when the user acted on the item. If + // multiple actions of the same type exist for a single user, only the + // most recent action is recorded. + InteractionTime string `json:"interactionTime,omitempty"` - // MessageContent: Stores message segments (text content) and - // attachments (media URLs). - MessageContent *ChatConserverMessageContent `json:"messageContent,omitempty"` + // Principal: The user that acted on the item. + Principal *Principal `json:"principal,omitempty"` - // WasUpdatedByBackfill: Whether or not these message properties were - // backfilled by go/dinnertrain. - WasUpdatedByBackfill bool `json:"wasUpdatedByBackfill,omitempty"` + // Possible values: + // "UNSPECIFIED" - Invalid value. + // "VIEW" - This interaction indicates the user viewed the item. + // "EDIT" - This interaction indicates the user edited the item. + Type string `json:"type,omitempty"` - // ForceSendFields is a list of field names (e.g. "ClientGeneratedId") - // to unconditionally include in API requests. By default, fields with + // ForceSendFields is a list of field names (e.g. "InteractionTime") 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. "ClientGeneratedId") to + // NullFields is a list of field names (e.g. "InteractionTime") 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 @@ -6201,62 +5587,73 @@ type BabelMessageProps struct { NullFields []string `json:"-"` } -func (s *BabelMessageProps) MarshalJSON() ([]byte, error) { - type NoMethod BabelMessageProps +func (s *Interaction) MarshalJSON() ([]byte, error) { + type NoMethod Interaction raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// BabelPlaceholderMetadata: Annotation metadata for Babel-only items -// that signals which type of placeholder message should be displayed in -// Babel clients. -type BabelPlaceholderMetadata struct { - DeleteMetadata *DeleteMetadata `json:"deleteMetadata,omitempty"` +// Item: Represents a single object that is an item in the search index, +// such as a file, folder, or a database record. +type Item struct { + // Acl: Access control list for this item. + Acl *ItemAcl `json:"acl,omitempty"` - EditMetadata *EditMetadata `json:"editMetadata,omitempty"` + // Content: Item content to be indexed and made text searchable. + Content *ItemContent `json:"content,omitempty"` - HangoutVideoMetadata *HangoutVideoEventMetadata `json:"hangoutVideoMetadata,omitempty"` + // ItemType: The type for this item. + // + // Possible values: + // "UNSPECIFIED" + // "CONTENT_ITEM" - An item that is indexed for the only purpose of + // serving information. These items cannot be referred in containerName + // or inheritAclFrom fields. + // "CONTAINER_ITEM" - An item that gets indexed and whose purpose is + // to supply other items with ACLs and/or contain other items. + // "VIRTUAL_CONTAINER_ITEM" - An item that does not get indexed, but + // otherwise has the same purpose as CONTAINER_ITEM. + ItemType string `json:"itemType,omitempty"` - // ForceSendFields is a list of field names (e.g. "DeleteMetadata") 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:"-"` + // Metadata: The metadata information. + Metadata *ItemMetadata `json:"metadata,omitempty"` - // NullFields is a list of field names (e.g. "DeleteMetadata") 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:"-"` -} + // Name: The name of the Item. Format: + // datasources/{source_id}/items/{item_id} This is a required field. The + // maximum length is 1536 characters. + Name string `json:"name,omitempty"` -func (s *BabelPlaceholderMetadata) MarshalJSON() ([]byte, error) { - type NoMethod BabelPlaceholderMetadata - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} + // Payload: Additional state connector can store for this item. The + // maximum length is 10000 bytes. + Payload string `json:"payload,omitempty"` -// BooleanOperatorOptions: Used to provide a search operator for boolean -// properties. This is optional. Search operators let users restrict the -// query to specific fields relevant to the type of item being searched. -type BooleanOperatorOptions struct { - // OperatorName: Indicates the operator name required in the query in - // order to isolate the boolean property. For example, if operatorName - // is *closed* and the property's name is *isClosed*, then queries like - // *closed:* show results only where the value of the property - // named *isClosed* matches **. By contrast, a search that uses - // the same ** without an operator returns all items where - // ** matches the value of any String properties or text within - // the content field for the item. The operator name can only contain - // lowercase letters (a-z). The maximum length is 32 characters. - OperatorName string `json:"operatorName,omitempty"` + // Queue: Queue this item belongs to. The maximum length is 100 + // characters. + Queue string `json:"queue,omitempty"` - // ForceSendFields is a list of field names (e.g. "OperatorName") to + // Status: Status of the item. Output only field. + Status *ItemStatus `json:"status,omitempty"` + + // StructuredData: The structured data for the item that should conform + // to a registered object definition in the schema for the data source. + StructuredData *ItemStructuredData `json:"structuredData,omitempty"` + + // Version: Required. The indexing system stores the version from the + // datasource as a byte string and compares the Item version in the + // index to the version of the queued Item using lexical ordering. Cloud + // Search Indexing won't index or delete any queued item with a version + // value that is less than or equal to the version of the currently + // indexed item. The maximum length for this field is 1024 bytes. For + // information on how item version affects the deletion process, refer + // to Handle revisions after manual deletes + // (https://developers.google.com/cloud-search/docs/guides/operations). + Version string `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. "Acl") 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 @@ -6264,36 +5661,84 @@ type BooleanOperatorOptions struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "OperatorName") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as + // NullFields is a list of field names (e.g. "Acl") 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 *BooleanOperatorOptions) MarshalJSON() ([]byte, error) { - type NoMethod BooleanOperatorOptions +func (s *Item) MarshalJSON() ([]byte, error) { + type NoMethod Item raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// BooleanPropertyOptions: The options for boolean properties. -type BooleanPropertyOptions struct { - // OperatorOptions: If set, describes how the boolean should be used as - // a search operator. - OperatorOptions *BooleanOperatorOptions `json:"operatorOptions,omitempty"` +// ItemAcl: Access control list information for the item. For more +// information see Map ACLs +// (https://developers.google.com/cloud-search/docs/guides/acls). +type ItemAcl struct { + // AclInheritanceType: Sets the type of access rules to apply when an + // item inherits its ACL from a parent. This should always be set in + // tandem with the inheritAclFrom field. Also, when the inheritAclFrom + // field is set, this field should be set to a valid AclInheritanceType. + // + // Possible values: + // "NOT_APPLICABLE" - The default value when this item does not + // inherit an ACL. Use NOT_APPLICABLE when inheritAclFrom is empty. An + // item without ACL inheritance can still have ACLs supplied by its own + // readers and deniedReaders fields. + // "CHILD_OVERRIDE" - During an authorization conflict, the ACL of the + // child item determines its read access. + // "PARENT_OVERRIDE" - During an authorization conflict, the ACL of + // the parent item specified in the inheritAclFrom field determines read + // access. + // "BOTH_PERMIT" - Access is granted only if this item and the parent + // item specified in the inheritAclFrom field both permit read access. + AclInheritanceType string `json:"aclInheritanceType,omitempty"` - // ForceSendFields is a list of field names (e.g. "OperatorOptions") to - // unconditionally include in API requests. By default, fields with + // DeniedReaders: List of principals who are explicitly denied access to + // the item in search results. While principals are denied access by + // default, use denied readers to handle exceptions and override the + // list allowed readers. The maximum number of elements is 100. + DeniedReaders []*Principal `json:"deniedReaders,omitempty"` + + // InheritAclFrom: The name of the item to inherit the Access Permission + // List (ACL) from. Note: ACL inheritance *only* provides access + // permissions to child items and does not define structural + // relationships, nor does it provide convenient ways to delete large + // groups of items. Deleting an ACL parent from the index only alters + // the access permissions of child items that reference the parent in + // the inheritAclFrom field. The item is still in the index, but may not + // visible in search results. By contrast, deletion of a container item + // also deletes all items that reference the container via the + // containerName field. The maximum length for this field is 1536 + // characters. + InheritAclFrom string `json:"inheritAclFrom,omitempty"` + + // Owners: Optional. List of owners for the item. This field has no + // bearing on document access permissions. It does, however, offer a + // slight ranking boosts items where the querying user is an owner. The + // maximum number of elements is 5. + Owners []*Principal `json:"owners,omitempty"` + + // Readers: List of principals who are allowed to see the item in search + // results. Optional if inheriting permissions from another item or if + // the item is not intended to be visible, such as virtual containers. + // The maximum number of elements is 1000. + Readers []*Principal `json:"readers,omitempty"` + + // ForceSendFields is a list of field names (e.g. "AclInheritanceType") + // 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. "OperatorOptions") to + // NullFields is a list of field names (e.g. "AclInheritanceType") 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 @@ -6303,136 +5748,45 @@ type BooleanPropertyOptions struct { NullFields []string `json:"-"` } -func (s *BooleanPropertyOptions) MarshalJSON() ([]byte, error) { - type NoMethod BooleanPropertyOptions +func (s *ItemAcl) MarshalJSON() ([]byte, error) { + type NoMethod ItemAcl raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// BorderStyle: Represents a complete border style that can be applied -// to widgets. -type BorderStyle struct { - // CornerRadius: The corner radius for the border. - CornerRadius int64 `json:"cornerRadius,omitempty"` - - // StrokeColor: The colors to use when the type is STROKE. - StrokeColor string `json:"strokeColor,omitempty"` +// ItemContent: Content of an item to be indexed and surfaced by Cloud +// Search. Only UTF-8 encoded strings are allowed as inlineContent. If +// the content is uploaded and not binary, it must be UTF-8 encoded. +type ItemContent struct { + // ContentDataRef: Upload reference ID of a previously uploaded content + // via write method. + ContentDataRef *UploadItemRef `json:"contentDataRef,omitempty"` - // Type: The border type. - // // Possible values: - // "BORDER_TYPE_NOT_SET" - No value specified. - // "NO_BORDER" - No border. - // "STROKE" - Outline. - Type string `json:"type,omitempty"` + // "UNSPECIFIED" - Invalid value. + // "HTML" - contentFormat is HTML. + // "TEXT" - contentFormat is free text. + // "RAW" - contentFormat is raw bytes. + ContentFormat string `json:"contentFormat,omitempty"` - // ForceSendFields is a list of field names (e.g. "CornerRadius") 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. "CornerRadius") 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 *BorderStyle) MarshalJSON() ([]byte, error) { - type NoMethod BorderStyle - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// BotInfo: Bot-specific profile information. -type BotInfo struct { - // Possible values: - // "UNSPECIFIED_STATUS" - // "ALLOWED" - // "ALL_APPS_DISABLED_BY_ADMIN" - For both ALL_APPS_DISABLED_BY_ADMIN - // and APP_NOT_ALLOWLISTED_BY_ADMIN, the app should still be visible in - // the catalog, but usage of the app will be disabled. Indicates that - // all apps have been disabled by the dasher admin. - // "APP_NOT_ALLOWLISTED_BY_ADMIN" - Indicates that the customer is - // using allowlisting, but that the bot is not allowlisted. - AppAllowlistStatus string `json:"appAllowlistStatus,omitempty"` - - // AppId: Identifier of the application associated with the bot. - AppId *AppId `json:"appId,omitempty"` - - // BotAvatarUrl: URL for the avatar picture of the User in dynamite. - // This field should be populated if the request is - // FetchBotCategories/ListBotCatalogEntries - BotAvatarUrl string `json:"botAvatarUrl,omitempty"` - - // BotName: Non-unique, user-defined display name of the Bot. This field - // should be populated if the request is - // FetchBotCategories/ListBotCatalogEntries. - BotName string `json:"botName,omitempty"` - - // Description: Short description for the bot. - Description string `json:"description,omitempty"` - - // DeveloperName: Name of bot developer. - DeveloperName string `json:"developerName,omitempty"` - - // MarketPlaceBannerUrl: URL for the banner image in GSuite Market - // Place. The banner will be 220x140. - MarketPlaceBannerUrl string `json:"marketPlaceBannerUrl,omitempty"` - - // Status: Indicates whether bot is enabled/disabled. - // - // Possible values: - // "UNKNOWN_STATUS" - // "ENABLED" - // "DISABLED_BY_DEVELOPER" - Bot has been disabled by the bot - // developer. No one can @mention or interact with the bot. - Status string `json:"status,omitempty"` - - // SupportHomeScreen: If the app supports a home screen. - SupportHomeScreen bool `json:"supportHomeScreen,omitempty"` - - // SupportUrls: Urls with additional information related to the bot. - // This field should always be set even if all the fields within it are - // empty, so that it is convenient for clients to work with this field - // in javascript. - SupportUrls *SupportUrls `json:"supportUrls,omitempty"` - - // SupportedUses: The supported uses are limited according to the user - // that made the request. If the user does not have permission to use - // the bot, the list will be empty. This could occur for non whitelisted - // bots in the catalog. - // - // Possible values: - // "UNKNOWN" - // "CAN_ADD_TO_DM" - // "CAN_ADD_TO_ROOM" - // "CAN_ADD_TO_HUMAN_DM" - SupportedUses []string `json:"supportedUses,omitempty"` + // Hash: Hashing info calculated and provided by the API client for + // content. Can be used with the items.push method to calculate modified + // state. The maximum length is 2048 characters. + Hash string `json:"hash,omitempty"` - // UninstallCapability: Determine how uninstall is permitted for this - // app. - // - // Possible values: - // "UNSPECIFIED_UNINSTALL_CAPABILITY" - Defaults to ALWAYS_ALLOWED. - // "ALWAYS_ALLOWED" - // "NEVER_ALLOWED" - UninstallCapability string `json:"uninstallCapability,omitempty"` + // InlineContent: Content that is supplied inlined within the update + // method. The maximum length is 102400 bytes (100 KiB). + InlineContent string `json:"inlineContent,omitempty"` - // ForceSendFields is a list of field names (e.g. "AppAllowlistStatus") - // to unconditionally include in API requests. By default, fields with + // ForceSendFields is a list of field names (e.g. "ContentDataRef") 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. "AppAllowlistStatus") to + // NullFields is a list of field names (e.g. "ContentDataRef") 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 @@ -6442,41 +5796,39 @@ type BotInfo struct { NullFields []string `json:"-"` } -func (s *BotInfo) MarshalJSON() ([]byte, error) { - type NoMethod BotInfo +func (s *ItemContent) MarshalJSON() ([]byte, error) { + type NoMethod ItemContent raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// BotResponse: Information about a bot response, branched from -// shared/bot_response.proto without frontend User proto as we never -// store it. -type BotResponse struct { - BotId *UserId `json:"botId,omitempty"` +type ItemCountByStatus struct { + // Count: Number of items matching the status code. + Count int64 `json:"count,omitempty,string"` - // Possible values: - // "UNKNOWN_SETUP_TYPE" - // "CONFIGURATION" - Bot requires configuration. - // "AUTHENTICATION" - Bot requires authentication. - RequiredAction string `json:"requiredAction,omitempty"` + // IndexedItemsCount: Number of items matching the status code for which + // billing is done. This excludes virtual container items from the total + // count. This count would not be applicable for items with ERROR or + // NEW_ITEM status code. + IndexedItemsCount int64 `json:"indexedItemsCount,omitempty,string"` + // StatusCode: Status of the items. + // // Possible values: - // "UNKNOWN_RESPONSE_TYPE" - // "ERROR" - Bot fails to respond because of deadline_exceeded or - // failing to parse bot message. - // "SETUP_REQUIRED" - Bot requires auth or config - // "DISABLED_BY_ADMIN" - Bot fails to respond because it is disabled - // by domain admin - // "DISABLED_BY_DEVELOPER" - Bot fails to respond because it is - // disabled by the bot's developer - // "PRIVATE" - Message to bot should be permanently private. - // "APP_SUGGESTION" - A suggestion to promote an app. - ResponseType string `json:"responseType,omitempty"` - - // SetupUrl: URL for setting up bot. - SetupUrl string `json:"setupUrl,omitempty"` - - // ForceSendFields is a list of field names (e.g. "BotId") to + // "CODE_UNSPECIFIED" - Input-only value. Used with Items.list to list + // all items in the queue, regardless of status. + // "ERROR" - Error encountered by Cloud Search while processing this + // item. Details of the error are in repositoryError. + // "MODIFIED" - Item has been modified in the repository, and is out + // of date with the version previously accepted into Cloud Search. + // "NEW_ITEM" - Item is known to exist in the repository, but is not + // yet accepted by Cloud Search. An item can be in this state when + // Items.push has been called for an item of this name that did not + // exist previously. + // "ACCEPTED" - API has accepted the up-to-date data of this item. + StatusCode string `json:"statusCode,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Count") 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 @@ -6484,7 +5836,7 @@ type BotResponse struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "BotId") to include in API + // NullFields is a list of field names (e.g. "Count") 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 @@ -6493,32 +5845,82 @@ type BotResponse struct { NullFields []string `json:"-"` } -func (s *BotResponse) MarshalJSON() ([]byte, error) { - type NoMethod BotResponse +func (s *ItemCountByStatus) MarshalJSON() ([]byte, error) { + type NoMethod ItemCountByStatus raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// BroadcastAccess: Broadcast access information of a meeting space. -type BroadcastAccess struct { - // AccessPolicy: The policy that controls the broadcast's viewer access. - // - // Possible values: - // "BROADCASTING_ACCESS_POLICY_UNSPECIFIED" - Used only when broadcast - // is not enabled, or an unknown enum value is used. - // "ORGANIZATION" - Only authenticated Google accounts belonging to - // the same organization as the meeting organizer can access the - // broadcast. - // "PUBLIC" - Anyone with the broadcast view URL can access the - // broadcast. - AccessPolicy string `json:"accessPolicy,omitempty"` - - // ViewUrl: A URL that can be used to access the broadcast of the - // meeting. This field will be empty if broadcast is not enabled. It - // will be populated by the backend. Clients cannot modify the value. - ViewUrl string `json:"viewUrl,omitempty"` +// ItemMetadata: Available metadata fields for the item. +type ItemMetadata struct { + // ContainerName: The name of the container for this item. Deletion of + // the container item leads to automatic deletion of this item. Note: + // ACLs are not inherited from a container item. To provide ACL + // inheritance for an item, use the inheritAclFrom field. The maximum + // length is 1536 characters. + ContainerName string `json:"containerName,omitempty"` + + // ContentLanguage: The BCP-47 language code for the item, such as + // "en-US" or "sr-Latn". For more information, see + // http://www.unicode.org/reports/tr35/#Unicode_locale_identifier. The + // maximum length is 32 characters. + ContentLanguage string `json:"contentLanguage,omitempty"` + + // ContextAttributes: A set of named attributes associated with the + // item. This can be used for influencing the ranking of the item based + // on the context in the request. The maximum number of elements is 10. + ContextAttributes []*ContextAttribute `json:"contextAttributes,omitempty"` + + // CreateTime: The time when the item was created in the source + // repository. + CreateTime string `json:"createTime,omitempty"` + + // Hash: Hashing value provided by the API caller. This can be used with + // the items.push method to calculate modified state. The maximum length + // is 2048 characters. + Hash string `json:"hash,omitempty"` + + // Interactions: A list of interactions for the item. Interactions are + // used to improve Search quality, but are not exposed to end users. The + // maximum number of elements is 1000. + Interactions []*Interaction `json:"interactions,omitempty"` + + // Keywords: Additional keywords or phrases that should match the item. + // Used internally for user generated content. The maximum number of + // elements is 100. The maximum length is 8192 characters. + Keywords []string `json:"keywords,omitempty"` + + // MimeType: The original mime-type of ItemContent.content in the source + // repository. The maximum length is 256 characters. + MimeType string `json:"mimeType,omitempty"` + + // ObjectType: The type of the item. This should correspond to the name + // of an object definition in the schema registered for the data source. + // For example, if the schema for the data source contains an object + // definition with name 'document', then item indexing requests for + // objects of that type should set objectType to 'document'. The maximum + // length is 256 characters. + ObjectType string `json:"objectType,omitempty"` + + // SearchQualityMetadata: Additional search quality metadata of the item + SearchQualityMetadata *SearchQualityMetadata `json:"searchQualityMetadata,omitempty"` + + // SourceRepositoryUrl: Link to the source repository serving the data. + // Seach results apply this link to the title. Whitespace or special + // characters may cause Cloud Seach result links to trigger a redirect + // notice; to avoid this, encode the URL. The maximum length is 2048 + // characters. + SourceRepositoryUrl string `json:"sourceRepositoryUrl,omitempty"` + + // Title: The title of the item. If given, this will be the displayed + // title of the Search result. The maximum length is 2048 characters. + Title string `json:"title,omitempty"` - // ForceSendFields is a list of field names (e.g. "AccessPolicy") to + // UpdateTime: The time when the item was last modified in the source + // repository. + UpdateTime string `json:"updateTime,omitempty"` + + // 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 @@ -6526,7 +5928,7 @@ type BroadcastAccess struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "AccessPolicy") to include + // 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 @@ -6535,87 +5937,105 @@ type BroadcastAccess struct { NullFields []string `json:"-"` } -func (s *BroadcastAccess) MarshalJSON() ([]byte, error) { - type NoMethod BroadcastAccess +func (s *ItemMetadata) MarshalJSON() ([]byte, error) { + type NoMethod ItemMetadata raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// BroadcastSessionInfo: Information about a broadcast session. -type BroadcastSessionInfo struct { - // BroadcastSessionId: A unique server-generated ID for the broadcast - // session. - BroadcastSessionId string `json:"broadcastSessionId,omitempty"` - - // BroadcastStats: Output only. Current broadcast session's statistics. - BroadcastStats *BroadcastStats `json:"broadcastStats,omitempty"` +// ItemStatus: This contains item's status and any errors. +type ItemStatus struct { + // Code: Status code. + // + // Possible values: + // "CODE_UNSPECIFIED" - Input-only value. Used with Items.list to list + // all items in the queue, regardless of status. + // "ERROR" - Error encountered by Cloud Search while processing this + // item. Details of the error are in repositoryError. + // "MODIFIED" - Item has been modified in the repository, and is out + // of date with the version previously accepted into Cloud Search. + // "NEW_ITEM" - Item is known to exist in the repository, but is not + // yet accepted by Cloud Search. An item can be in this state when + // Items.push has been called for an item of this name that did not + // exist previously. + // "ACCEPTED" - API has accepted the up-to-date data of this item. + Code string `json:"code,omitempty"` - // IngestionId: Input only. Deprecated field, should not be used. - IngestionId string `json:"ingestionId,omitempty"` + // ProcessingErrors: Error details in case the item is in ERROR state. + ProcessingErrors []*ProcessingError `json:"processingErrors,omitempty"` - // SessionStateInfo: Broadcast session's state information. - SessionStateInfo *SessionStateInfo `json:"sessionStateInfo,omitempty"` + // RepositoryErrors: Repository error reported by connector. + RepositoryErrors []*RepositoryError `json:"repositoryErrors,omitempty"` - // ForceSendFields is a list of field names (e.g. "BroadcastSessionId") - // to unconditionally include in API requests. By default, fields with + // 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. "BroadcastSessionId") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "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 *BroadcastSessionInfo) MarshalJSON() ([]byte, error) { - type NoMethod BroadcastSessionInfo +func (s *ItemStatus) MarshalJSON() ([]byte, error) { + type NoMethod ItemStatus raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// BroadcastStats: Statistics of the broadcast session. -type BroadcastStats struct { - // EstimatedViewerCount: Estimated concurrent viewer count. - EstimatedViewerCount int64 `json:"estimatedViewerCount,omitempty,string"` +// ItemStructuredData: Available structured data fields for the item. +type ItemStructuredData struct { + // Hash: Hashing value provided by the API caller. This can be used with + // the items.push method to calculate modified state. The maximum length + // is 2048 characters. + Hash string `json:"hash,omitempty"` - // ForceSendFields is a list of field names (e.g. - // "EstimatedViewerCount") 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. + // Object: The structured data object that should conform to a + // registered object definition in the schema for the data source. + Object *StructuredDataObject `json:"object,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Hash") 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. "EstimatedViewerCount") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "Hash") 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 *BroadcastStats) MarshalJSON() ([]byte, error) { - type NoMethod BroadcastStats +func (s *ItemStructuredData) MarshalJSON() ([]byte, error) { + type NoMethod ItemStructuredData raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -type Button struct { - ImageButton *ImageButton `json:"imageButton,omitempty"` +type ListDataSourceResponse 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"` + + Sources []*DataSource `json:"sources,omitempty"` - TextButton *TextButton `json:"textButton,omitempty"` + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "ImageButton") to + // ForceSendFields is a list of field names (e.g. "NextPageToken") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be @@ -6623,7 +6043,7 @@ type Button struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "ImageButton") to include + // 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 @@ -6632,288 +6052,58 @@ type Button struct { NullFields []string `json:"-"` } -func (s *Button) MarshalJSON() ([]byte, error) { - type NoMethod Button +func (s *ListDataSourceResponse) MarshalJSON() ([]byte, error) { + type NoMethod ListDataSourceResponse raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -type CalendarClientActionMarkup struct { - // AddAttachmentsActionMarkup: An action that adds attachments to the - // Google Calendar event. - AddAttachmentsActionMarkup *AppsExtensionsMarkupCalendarClientActionMarkupAddAttachmentsActionMarkup `json:"addAttachmentsActionMarkup,omitempty"` +type ListItemNamesForUnmappedIdentityResponse struct { + ItemNames []string `json:"itemNames,omitempty"` - // EditAttendeesActionMarkup: An action that adds attendees to the - // Google Calendar event. - EditAttendeesActionMarkup *AppsExtensionsMarkupCalendarClientActionMarkupEditAttendeesActionMarkup `json:"editAttendeesActionMarkup,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"` - // EditConferenceDataActionMarkup: An action that adds conference data - // to the Google Calendar event. - EditConferenceDataActionMarkup *AppsExtensionsMarkupCalendarClientActionMarkupEditConferenceDataActionMarkup `json:"editConferenceDataActionMarkup,omitempty"` + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. - // "AddAttachmentsActionMarkup") 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 is a list of field names (e.g. "ItemNames") 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. - // "AddAttachmentsActionMarkup") to include in API requests with the - // JSON null value. By default, fields with empty values are omitted - // from API requests. However, any field with an empty value appearing - // in NullFields will be sent to the server as null. It is an error if a - // field in this list has a non-empty value. This may be used to include - // null fields in Patch requests. + // NullFields is a list of field names (e.g. "ItemNames") 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 *CalendarClientActionMarkup) MarshalJSON() ([]byte, error) { - type NoMethod CalendarClientActionMarkup +func (s *ListItemNamesForUnmappedIdentityResponse) MarshalJSON() ([]byte, error) { + type NoMethod ListItemNamesForUnmappedIdentityResponse raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// CallInfo: Contains information regarding an ongoing conference (aka -// call) for a meeting space. -type CallInfo struct { - // AbuseReportingConfig: Abuse reporting configuration for the ongoing - // conference. - AbuseReportingConfig *AbuseReportingConfig `json:"abuseReportingConfig,omitempty"` - - // ArtifactOwner: Output only. Display name of the owner of artifacts - // generated in this conference. The expected use of this in clients is - // to present info like "This recording will be sent to John Doe's - // Drive". This field can be empty if preferred display name - // determination fails for any reason. - ArtifactOwner *UserDisplayInfo `json:"artifactOwner,omitempty"` +type ListItemsResponse struct { + Items []*Item `json:"items,omitempty"` - // AttachedDocuments: Output only. Documents attached to an ongoing - // conference. - AttachedDocuments []*DocumentInfo `json:"attachedDocuments,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"` - // AvailableAccessTypes: List of available access types of the - // conference. - // - // Possible values: - // "ACCESS_TYPE_UNSPECIFIED" - Default value. This value is unused. - // "ACCESS_TYPE_OPEN" - Anyone with meeting join information (url, - // phone access...) can join, no knocking required. (Subject to - // organization policies) - // "ACCESS_TYPE_TRUSTED" - Members of the Host's organization, invited - // external users, and dial-in users can join without knocking, everyone - // else must knock. (Subject to organization policies) - // "ACCESS_TYPE_RESTRICTED" - Only participants invited by a host can - // automatically join, everyone else must knock and be admitted. - // (Subject to organization policies) Participants cannot dial out from - // the meeting. And only hosts can accept knocks. - // "ACCESS_TYPE_CLOSED" - Only participants invited by a host can - // join. Knocking is not allowed, dial in and dial out are also - // disabled. - AvailableAccessTypes []string `json:"availableAccessTypes,omitempty"` - - // AvailableAnnotationToolTypes: Available screen annotation tool types. - // - // Possible values: - // "ANNOTATION_TOOL_TYPE_UNSPECIFIED" - Annotation tool type - // unspecified. - // "ANNOTATION_TOOL_CLEAR_ALL" - Clears all annotations. - // "ANNOTATION_TOOL_LINE" - Draws vector lines. - // "ANNOTATION_TOOL_MAGIC_ERASER" - Deletes elements that are touched. - // "ANNOTATION_TOOL_PEN" - Draws freeform strokes. - // "ANNOTATION_TOOL_SHAPE" - Draws simple vector shapes (such as - // rectangles or ellipses). - // "ANNOTATION_TOOL_TEXT_BOX" - Allows adding/editing text at this - // location. - AvailableAnnotationToolTypes []string `json:"availableAnnotationToolTypes,omitempty"` - - // AvailableReactions: Output only. The set of reactions that clients - // are allowed to send and can expect to receive. Note that a device in - // the conference should have the MAY_SEND_REACTIONS privilege to be - // able to send reactions. - AvailableReactions []*ReactionInfo `json:"availableReactions,omitempty"` - - // BroadcastSessionInfo: Information about active broadcast session in - // the ongoing conference. - BroadcastSessionInfo *BroadcastSessionInfo `json:"broadcastSessionInfo,omitempty"` - - // CalendarEventId: Output only. The calendar event ID of a Google - // Calendar event that the meeting space is associated with. If the - // meeting space is not associated with an event in Google Calendar, - // this field is empty. For recurring events, it refers to the recurring - // instance associated with the current call, as determined by the + // ServerResponse contains the HTTP response code and headers from the // server. - CalendarEventId string `json:"calendarEventId,omitempty"` - - // CoActivity: The current co-activity session, or unset if there is - // none in progress. A co-activity session can be initiated by devices - // in JOINED state . Initiator of the co-activity is expected to - // populate this field to start the session. Once clients detect that - // the co-activity has finished, any JOINED device can clear this field - // to end the co-activity session. In the case of switching activities, - // the initiator of the new activity merely needs to override this with - // the new co-activity data, and all connected clients are expected to - // handle the transition gracefully. - CoActivity *CoActivity `json:"coActivity,omitempty"` - - // Collaboration: The current collaboration session, or unset if no - // collaboration is in progress. - Collaboration *Collaboration `json:"collaboration,omitempty"` - - // CseInfo: CSE information for the ongoing conference. - CseInfo *CseInfo `json:"cseInfo,omitempty"` - - // MaxJoinedDevices: Output only. The maximum number of devices that may - // be in the joined state simultaneously in this conference. This can be - // used by clients to guess whether it will be possible to join, but the - // only way to know is to try to join. It can also be used to inform - // users about the limit that is in effect. This limit is normally set - // when the conference is created and not changed during the lifetime of - // the conference. But there are some cases where it may change, so - // clients should be aware that the information may be stale. - MaxJoinedDevices int64 `json:"maxJoinedDevices,omitempty"` - - // OrganizationName: Output only. The name or description of the - // organization or domain that the organizer belongs to. The expected - // use of this in clients is to present messages like "John Doe (outside - // of Google.com) is trying to join this call", where "Google.com" is - // the organization name. The field will be empty if the organization - // name could not be determined, possibly because of a backend error. - OrganizationName string `json:"organizationName,omitempty"` - - // PaygateInfo: Paygate information to clients. - PaygateInfo *PaygateInfo `json:"paygateInfo,omitempty"` - - // Presenter: The current presenter in the call, or unset if there is no - // current presenter. Clients can set this to change the presenter. - Presenter *Presenter `json:"presenter,omitempty"` - - // RecordingInfo: Deprecated, use RecordingSessionInfo instead. Info - // about recording for this conference. This will always be set in - // server responses, with a valid recording status. This is superseded - // by streaming_sessions field, which contains the same information - // about this recording as well as additional information about other - // application type at the same time. This will be deprecated and - // removed at some point. - RecordingInfo *RecordingInfo `json:"recordingInfo,omitempty"` - - // RecordingSessionInfo: Information about active recording session in - // the ongoing conference. - RecordingSessionInfo *RecordingSessionInfo `json:"recordingSessionInfo,omitempty"` - - // Settings: Settings of the ongoing conference. - Settings *CallSettings `json:"settings,omitempty"` - - // StreamingSessions: Output only. Info about streaming sessions - // (recording or broadcast) for this conference. This should contain all - // active sessions. Currently, it's guaranteed to have at most one - // recording and at most one broadcast (at most two sessions in total). - // For each application type (recording or broadcast), latest inactive - // session is included if there's no active one. - StreamingSessions []*StreamingSessionInfo `json:"streamingSessions,omitempty"` - - // TranscriptionSessionInfo: Information about active transcription - // session in the ongoing conference. - TranscriptionSessionInfo *TranscriptionSessionInfo `json:"transcriptionSessionInfo,omitempty"` - - // ViewerCount: The number of devices viewing the conference - - // MeetingDevices that are in VIEWER role and JOINED state in the - // conference. - ViewerCount int64 `json:"viewerCount,omitempty"` - - // YouTubeBroadcastSessionInfos: Information about active YouTube - // broadcast sessions in the ongoing conference. - YouTubeBroadcastSessionInfos []*YouTubeBroadcastSessionInfo `json:"youTubeBroadcastSessionInfos,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "AbuseReportingConfig") 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. "AbuseReportingConfig") 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 *CallInfo) MarshalJSON() ([]byte, error) { - type NoMethod CallInfo - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// CallSettings: Effective settings of the ongoing conference. -type CallSettings struct { - // AccessLock: Indicates whether the access lock is currently on or off. - AccessLock bool `json:"accessLock,omitempty"` - - // AccessType: The current access type of the conference. - // - // Possible values: - // "ACCESS_TYPE_UNSPECIFIED" - Default value. This value is unused. - // "ACCESS_TYPE_OPEN" - Anyone with meeting join information (url, - // phone access...) can join, no knocking required. (Subject to - // organization policies) - // "ACCESS_TYPE_TRUSTED" - Members of the Host's organization, invited - // external users, and dial-in users can join without knocking, everyone - // else must knock. (Subject to organization policies) - // "ACCESS_TYPE_RESTRICTED" - Only participants invited by a host can - // automatically join, everyone else must knock and be admitted. - // (Subject to organization policies) Participants cannot dial out from - // the meeting. And only hosts can accept knocks. - // "ACCESS_TYPE_CLOSED" - Only participants invited by a host can - // join. Knocking is not allowed, dial in and dial out are also - // disabled. - AccessType string `json:"accessType,omitempty"` - - // AllowJoiningBeforeHost: Whether users can join this conference before - // a host (Host or Cohost). - AllowJoiningBeforeHost bool `json:"allowJoiningBeforeHost,omitempty"` - - // AttendanceReportEnabled: Indicates whether the attendance report is - // currently enabled or disabled. - AttendanceReportEnabled bool `json:"attendanceReportEnabled,omitempty"` - - // AudioLock: Indicates whether the audio lock is currently on or off. - AudioLock bool `json:"audioLock,omitempty"` - - // ChatLock: Indicates whether the chat lock is currently on or off. - ChatLock bool `json:"chatLock,omitempty"` - - // CoActivityLock: Indicates whether the co-activity lock is currently - // on or off. - CoActivityLock bool `json:"coActivityLock,omitempty"` - - // CseEnabled: Whether Client-side Encryption is enabled for this - // conference. - CseEnabled bool `json:"cseEnabled,omitempty"` - - // ModerationEnabled: Indicates whether moderation is currently on or - // off. - ModerationEnabled bool `json:"moderationEnabled,omitempty"` - - // PresentLock: Indicates whether the present lock is currently on or - // off. - PresentLock bool `json:"presentLock,omitempty"` - - // ReactionsLock: Indicates whether the reactions lock is currently on - // or off. - ReactionsLock bool `json:"reactionsLock,omitempty"` - - // VideoLock: Indicates whether the video lock is currently on or off. - VideoLock bool `json:"videoLock,omitempty"` + googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AccessLock") to + // ForceSendFields is a list of field names (e.g. "Items") 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 @@ -6921,8 +6111,8 @@ type CallSettings struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "AccessLock") to include in - // API requests with the JSON null value. By default, fields with empty + // NullFields is a list of field names (e.g. "Items") 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. @@ -6930,75 +6120,27 @@ type CallSettings struct { NullFields []string `json:"-"` } -func (s *CallSettings) MarshalJSON() ([]byte, error) { - type NoMethod CallSettings - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// CapTokenHolderProto: Represents a principal which possesses a -// particular secret string whose cryptographic hash is specified here. -// CapTokens ("Capability Tokens") are used in ACLProto. It's expected -// that ACLs with CapTokenHolders will strongly enforce them by -// Keystore-wrapping crypto keys for the corresponding CapTokens. -type CapTokenHolderProto struct { - // TokenHmacSha1Prefix: The hash of the corresponding capability token. - // The value is defined to be identical to the one in acl.proto's - // CapTokenMetadata: 10-byte prefix of HMAC-SHA1 of the token. The HMAC - // key is the following fixed (non-secret) 512-bit value: 79b1c8f4 - // 82baf523 b8a9ab4a e960f438 c45be041 11f1f222 e8a3f64d aeb05e3d - // c3576acc ec649194 aede422c 4e48e0d1 ff21234a a6ed6b49 a7fa592e - // efd7bba3 - TokenHmacSha1Prefix string `json:"tokenHmacSha1Prefix,omitempty"` - - // ForceSendFields is a list of field names (e.g. "TokenHmacSha1Prefix") - // 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. "TokenHmacSha1Prefix") 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 *CapTokenHolderProto) MarshalJSON() ([]byte, error) { - type NoMethod CapTokenHolderProto +func (s *ListItemsResponse) MarshalJSON() ([]byte, error) { + type NoMethod ListItemsResponse raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -type Card struct { - CardActions []*CardAction `json:"cardActions,omitempty"` - - // Possible values: - // "DISPLAY_STYLE_UNSPECIFIED" - // "PEEK" - // "REPLACE" - DisplayStyle string `json:"displayStyle,omitempty"` - - FixedFooter *FixedFooter `json:"fixedFooter,omitempty"` - - Header *CardHeader `json:"header,omitempty"` - - // Name: Name of the card used in CardNavigation.pop_to_card_name. - Name string `json:"name,omitempty"` +// ListOperationsResponse: The response message for +// Operations.ListOperations. +type ListOperationsResponse struct { + // NextPageToken: The standard List next-page token. + NextPageToken string `json:"nextPageToken,omitempty"` - // PeekCardHeader: When displaying contextual content, the peek card - // header acts as a placeholder so that the user can navigate forward - // between the homepage cards and the contextual cards. - PeekCardHeader *CardHeader `json:"peekCardHeader,omitempty"` + // Operations: A list of operations that matches the specified filter in + // the request. + Operations []*Operation `json:"operations,omitempty"` - Sections []*Section `json:"sections,omitempty"` + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "CardActions") to + // ForceSendFields is a list of field names (e.g. "NextPageToken") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be @@ -7006,7 +6148,7 @@ type Card struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "CardActions") to include + // 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 @@ -7015,23 +6157,23 @@ type Card struct { NullFields []string `json:"-"` } -func (s *Card) MarshalJSON() ([]byte, error) { - type NoMethod Card +func (s *ListOperationsResponse) MarshalJSON() ([]byte, error) { + type NoMethod ListOperationsResponse raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// CardAction: When an AddOn Card is shown in detailed view, a card -// action is the action associated with the card. For an invoice card, a -// typical action would be: delete invoice, email invoice or open the -// invoice in browser. -type CardAction struct { - // ActionLabel: The label used to be displayed in the action menu item. - ActionLabel string `json:"actionLabel,omitempty"` +// ListQuerySourcesResponse: List sources response. +type ListQuerySourcesResponse struct { + NextPageToken string `json:"nextPageToken,omitempty"` + + Sources []*QuerySource `json:"sources,omitempty"` - OnClick *OnClick `json:"onClick,omitempty"` + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "ActionLabel") to + // ForceSendFields is a list of field names (e.g. "NextPageToken") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be @@ -7039,7 +6181,7 @@ type CardAction struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "ActionLabel") to include + // 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 @@ -7048,71 +6190,24 @@ type CardAction struct { NullFields []string `json:"-"` } -func (s *CardAction) MarshalJSON() ([]byte, error) { - type NoMethod CardAction +func (s *ListQuerySourcesResponse) MarshalJSON() ([]byte, error) { + type NoMethod ListQuerySourcesResponse raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -type CardCapabilityMetadata struct { - // RequiredCapabilities: NEXT TAG : 2 - // - // Possible values: - // "UNKNOWN" - // "SUPPORTS_BASE_CARDS" - NEXT TAG : 2 - RequiredCapabilities []string `json:"requiredCapabilities,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "RequiredCapabilities") 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. "RequiredCapabilities") 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 *CardCapabilityMetadata) MarshalJSON() ([]byte, error) { - type NoMethod CardCapabilityMetadata - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} +type ListSearchApplicationsResponse 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"` -type CardHeader struct { - // ImageAltText: The alternative text of this image which will be used - // for accessibility. - ImageAltText string `json:"imageAltText,omitempty"` + SearchApplications []*SearchApplication `json:"searchApplications,omitempty"` - // Possible values: - // "CROP_TYPE_NOT_SET" - No value specified. - // "SQUARE" - Applies a square crop. - // "CIRCLE" - Applies a circular crop. - // "RECTANGLE_CUSTOM" - Applies a rectangular crop with a custom - // aspect ratio. - // "RECTANGLE_4_3" - Applies a rectangular crop with a 4:3 aspect - // ratio. - ImageStyle string `json:"imageStyle,omitempty"` - - ImageUrl string `json:"imageUrl,omitempty"` - - Subtitle string `json:"subtitle,omitempty"` - - // Title: The title must be specified. The header has a fixed height: if - // both a title and subtitle is specified, each will take up 1 line. If - // only the title is specified, it will take up both lines. The header - // is rendered in collapsed and detailed view. - Title string `json:"title,omitempty"` + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "ImageAltText") to + // ForceSendFields is a list of field names (e.g. "NextPageToken") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be @@ -7120,7 +6215,7 @@ type CardHeader struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "ImageAltText") to include + // 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 @@ -7129,33 +6224,24 @@ type CardHeader struct { NullFields []string `json:"-"` } -func (s *CardHeader) MarshalJSON() ([]byte, error) { - type NoMethod CardHeader +func (s *ListSearchApplicationsResponse) MarshalJSON() ([]byte, error) { + type NoMethod ListSearchApplicationsResponse raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -type CaribouAttributeValue struct { - // BooleanValue: Tags 1 through 15 are reserved for the most commonly - // used fields. - BooleanValue bool `json:"booleanValue,omitempty"` - - IntValue int64 `json:"intValue,omitempty"` - - LongValue int64 `json:"longValue,omitempty,string"` +type ListUnmappedIdentitiesResponse 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"` - // RawByteValue: Generally, applications should avoid storing raw bytes - // and instead store structured data as protocol buffer extensions. This - // both reduces the amount of ad-hoc attribute parsing code as well as - // eliminates an intermediate copy of the data when deserializing the - // value. The rawByteValue field is mainly provided for compatibility - // with attributes stored before the introduction of the - // Attribute.Value. - RawByteValue string `json:"rawByteValue,omitempty"` + UnmappedIdentities []*UnmappedIdentity `json:"unmappedIdentities,omitempty"` - StringValue string `json:"stringValue,omitempty"` + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "BooleanValue") to + // ForceSendFields is a list of field names (e.g. "NextPageToken") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be @@ -7163,7 +6249,7 @@ type CaribouAttributeValue struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "BooleanValue") to include + // 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 @@ -7172,68 +6258,87 @@ type CaribouAttributeValue struct { NullFields []string `json:"-"` } -func (s *CaribouAttributeValue) MarshalJSON() ([]byte, error) { - type NoMethod CaribouAttributeValue +func (s *ListUnmappedIdentitiesResponse) MarshalJSON() ([]byte, error) { + type NoMethod ListUnmappedIdentitiesResponse raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// ChatClientActionMarkup: Actions handled by Chat Clients. -type ChatClientActionMarkup struct { -} - -// ChatConserverDynamitePlaceholderMetadata: Metadata used as inputs to -// the localization that is performed on Dynamite-originated messages -// that are incompatible with Hangouts clients. See -// go/localization-of-system-messages for more details. -type ChatConserverDynamitePlaceholderMetadata struct { - AttachmentMetadata *ChatConserverDynamitePlaceholderMetadataAttachmentMetadata `json:"attachmentMetadata,omitempty"` - - BotMessageMetadata *ChatConserverDynamitePlaceholderMetadataBotMessageMetadata `json:"botMessageMetadata,omitempty"` +// MapInfo: Geo information used for rendering a map that shows the +// user's work location. +type MapInfo struct { + // Lat: Latitude in degrees + Lat float64 `json:"lat,omitempty"` - CalendarEventMetadata *ChatConserverDynamitePlaceholderMetadataCalendarEventMetadata `json:"calendarEventMetadata,omitempty"` + // LocationUrl: URL to a view of a map centered on the user's work + // location in Campus Maps (for google.com) or Google Maps (external). + LocationUrl *SafeUrlProto `json:"locationUrl,omitempty"` - DeleteMetadata *ChatConserverDynamitePlaceholderMetadataDeleteMetadata `json:"deleteMetadata,omitempty"` + // Long: Longitude in degrees + Long float64 `json:"long,omitempty"` - EditMetadata *ChatConserverDynamitePlaceholderMetadataEditMetadata `json:"editMetadata,omitempty"` + // MapTile: MapTiles for the area around a user's work location + MapTile []*MapTile `json:"mapTile,omitempty"` - // SpaceUrl: The space URL embedded in the localized string. - SpaceUrl string `json:"spaceUrl,omitempty"` + // Zoom: The zoom level of the map. A constant zoom value of 18 is used + // for now to match the zoom of the map shown on a Moma Teams Profile + // page + Zoom int64 `json:"zoom,omitempty"` - TasksMetadata *ChatConserverDynamitePlaceholderMetadataTasksMetadata `json:"tasksMetadata,omitempty"` - - VideoCallMetadata *ChatConserverDynamitePlaceholderMetadataVideoCallMetadata `json:"videoCallMetadata,omitempty"` - - // ForceSendFields is a list of field names (e.g. "AttachmentMetadata") - // to unconditionally include in API requests. By default, fields with + // ForceSendFields is a list of field names (e.g. "Lat") 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. "AttachmentMetadata") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "Lat") 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 *ChatConserverDynamitePlaceholderMetadata) MarshalJSON() ([]byte, error) { - type NoMethod ChatConserverDynamitePlaceholderMetadata +func (s *MapInfo) MarshalJSON() ([]byte, error) { + type NoMethod MapInfo raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// ChatConserverDynamitePlaceholderMetadataAttachmentMetadata: An -// attachment uploaded in Dynamite and its filename. -type ChatConserverDynamitePlaceholderMetadataAttachmentMetadata struct { - Filename string `json:"filename,omitempty"` +func (s *MapInfo) UnmarshalJSON(data []byte) error { + type NoMethod MapInfo + var s1 struct { + Lat gensupport.JSONFloat64 `json:"lat"` + Long gensupport.JSONFloat64 `json:"long"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.Lat = float64(s1.Lat) + s.Long = float64(s1.Long) + return nil +} + +// MapTile: Information used to render a map tile image in the proper +// location on a map. +type MapTile struct { + // ImageUrl: URL to an image file containing an office layout of the + // user's location for their organization, if one is available. For + // google.com, this image is from Corp Campus Maps. + ImageUrl *SafeUrlProto `json:"imageUrl,omitempty"` + + // TileX: Map tile x coordinate + TileX float64 `json:"tileX,omitempty"` - // ForceSendFields is a list of field names (e.g. "Filename") to + // TileY: Map tile y coordinate + TileY float64 `json:"tileY,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ImageUrl") 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 @@ -7241,7 +6346,7 @@ type ChatConserverDynamitePlaceholderMetadataAttachmentMetadata struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Filename") to include in + // NullFields is a list of field names (e.g. "ImageUrl") 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 @@ -7250,43 +6355,37 @@ type ChatConserverDynamitePlaceholderMetadataAttachmentMetadata struct { NullFields []string `json:"-"` } -func (s *ChatConserverDynamitePlaceholderMetadataAttachmentMetadata) MarshalJSON() ([]byte, error) { - type NoMethod ChatConserverDynamitePlaceholderMetadataAttachmentMetadata +func (s *MapTile) MarshalJSON() ([]byte, error) { + type NoMethod MapTile raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// ChatConserverDynamitePlaceholderMetadataBotMessageMetadata: A bot -// sent a message in Dynamite. -type ChatConserverDynamitePlaceholderMetadataBotMessageMetadata struct { -} - -// ChatConserverDynamitePlaceholderMetadataCalendarEventMetadata: A -// Calendar event message in Dynamite. -type ChatConserverDynamitePlaceholderMetadataCalendarEventMetadata struct { -} - -// ChatConserverDynamitePlaceholderMetadataDeleteMetadata: A message was -// deleted in Dynamite. -type ChatConserverDynamitePlaceholderMetadataDeleteMetadata struct { -} - -// ChatConserverDynamitePlaceholderMetadataEditMetadata: An edit was -// made in Dynamite. -type ChatConserverDynamitePlaceholderMetadataEditMetadata struct { +func (s *MapTile) UnmarshalJSON(data []byte) error { + type NoMethod MapTile + var s1 struct { + TileX gensupport.JSONFloat64 `json:"tileX"` + TileY gensupport.JSONFloat64 `json:"tileY"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.TileX = float64(s1.TileX) + s.TileY = float64(s1.TileY) + return nil } -// ChatConserverDynamitePlaceholderMetadataTasksMetadata: A Tasks -// message in Dynamite. -type ChatConserverDynamitePlaceholderMetadataTasksMetadata struct { -} +// MatchRange: Matched range of a snippet [start, end). +type MatchRange struct { + // End: End of the match in the snippet. + End int64 `json:"end,omitempty"` -// ChatConserverDynamitePlaceholderMetadataVideoCallMetadata: A Meet -// initiated in Dynamite and its URL. -type ChatConserverDynamitePlaceholderMetadataVideoCallMetadata struct { - MeetingUrl string `json:"meetingUrl,omitempty"` + // Start: Starting position of the match in the snippet. + Start int64 `json:"start,omitempty"` - // ForceSendFields is a list of field names (e.g. "MeetingUrl") to + // ForceSendFields is a list of field names (e.g. "End") 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 @@ -7294,8 +6393,8 @@ type ChatConserverDynamitePlaceholderMetadataVideoCallMetadata struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "MeetingUrl") to include in - // API requests with the JSON null value. By default, fields with empty + // NullFields is a list of field names (e.g. "End") 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. @@ -7303,28 +6402,22 @@ type ChatConserverDynamitePlaceholderMetadataVideoCallMetadata struct { NullFields []string `json:"-"` } -func (s *ChatConserverDynamitePlaceholderMetadataVideoCallMetadata) MarshalJSON() ([]byte, error) { - type NoMethod ChatConserverDynamitePlaceholderMetadataVideoCallMetadata +func (s *MatchRange) MarshalJSON() ([]byte, error) { + type NoMethod MatchRange raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// ChatConserverMessageContent: The content of a chat message, which -// includes 0 or more segments along with 0 or more embeds, which -// represent various attachment types (like photos). -type ChatConserverMessageContent struct { - // Attachment: Items attached to this message, such as photos. This - // should *NOT* be set by clients. It will be automatically set from - // media uploaded along with this request and using the information - // provided in existing_media. - Attachment []*SocialCommonAttachmentAttachment `json:"attachment,omitempty"` +// Media: Media resource. +type Media struct { + // ResourceName: Name of the media resource. + ResourceName string `json:"resourceName,omitempty"` - // Segment: The text part of the message content. Segments are - // concatenated together to yield the full message. A message can have - // zero or more segments. - Segment []*Segment `json:"segment,omitempty"` + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Attachment") to + // ForceSendFields is a list of field names (e.g. "ResourceName") 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 @@ -7332,62 +6425,58 @@ type ChatConserverMessageContent struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Attachment") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as + // NullFields is a list of field names (e.g. "ResourceName") 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 *ChatConserverMessageContent) MarshalJSON() ([]byte, error) { - type NoMethod ChatConserverMessageContent +func (s *Media) MarshalJSON() ([]byte, error) { + type NoMethod Media raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// ChatContentExtension: NEXT ID: 12 -type ChatContentExtension struct { - // Annotation: Annotations to decorate this event. - Annotation []*EventAnnotation `json:"annotation,omitempty"` +// Metadata: Metadata of a matched search result. +type Metadata struct { + // CreateTime: The creation time for this document or object in the + // search result. + CreateTime string `json:"createTime,omitempty"` - // DynamitePlaceholderMetadata: This metadata informs how the - // placeholder string will be localized dynamically in Hangouts. See - // go/localization-of-system-messages. This is only used as part of - // REGULAR_CHAT_MESSAGE events. - DynamitePlaceholderMetadata *ChatConserverDynamitePlaceholderMetadata `json:"dynamitePlaceholderMetadata,omitempty"` + // DisplayOptions: Options that specify how to display a structured data + // search result. + DisplayOptions *ResultDisplayMetadata `json:"displayOptions,omitempty"` - // EventOtrStatus: Is this event OnTR or OffTR? Since some events can be - // ON_THE_RECORD and have an expiration_timestamp (for example - // enterprise retention users) we need to store the otr status. - // - // Possible values: - // "OFF_THE_RECORD" - The conversation is completely off the record. - // "ON_THE_RECORD" - The conversation is completely on the record. - EventOtrStatus string `json:"eventOtrStatus,omitempty"` - - // GroupLinkSharingModificationEvent: Group-link sharing toggle event. - GroupLinkSharingModificationEvent *GroupLinkSharingModificationEvent `json:"groupLinkSharingModificationEvent,omitempty"` + // Fields: Indexed fields in structured data, returned as a generic + // named property. + Fields []*NamedProperty `json:"fields,omitempty"` - // HangoutEvent: Audio/video Hangout event. - HangoutEvent *HangoutEvent `json:"hangoutEvent,omitempty"` + // MimeType: Mime type of the search result. + MimeType string `json:"mimeType,omitempty"` - // InviteAcceptedEvent: Invite accepted events. Note: this is only used - // ephemerally to sync to Gmail. No actual cent is stored in Papyrus. - InviteAcceptedEvent *InviteAcceptedEvent `json:"inviteAcceptedEvent,omitempty"` + // ObjectType: Object type of the search result. + ObjectType string `json:"objectType,omitempty"` - // MembershipChangeEvent: Join/leave events. - MembershipChangeEvent *MembershipChangeEvent `json:"membershipChangeEvent,omitempty"` + // Owner: Owner (usually creator) of the document or object of the + // search result. + Owner *Person `json:"owner,omitempty"` - // OtrChatMessageEvent: Metadata for off-the-record message. - OtrChatMessageEvent *OtrChatMessageEvent `json:"otrChatMessageEvent,omitempty"` + // Source: The named source for the result, such as Gmail. + Source *Source `json:"source,omitempty"` - OtrModificationEvent *OtrModificationEvent `json:"otrModificationEvent,omitempty"` + // ThumbnailUrl: The thumbnail URL of the result. + ThumbnailUrl string `json:"thumbnailUrl,omitempty"` - RenameEvent *RenameEvent `json:"renameEvent,omitempty"` + // UpdateTime: The last modified date for the object in the search + // result. If not set in the item, the value returned here is empty. + // When `updateTime` is used for calculating freshness and is not set, + // this value defaults to 2 years from the current time. + UpdateTime string `json:"updateTime,omitempty"` - // ForceSendFields is a list of field names (e.g. "Annotation") to + // ForceSendFields is a list of field names (e.g. "CreateTime") 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 @@ -7395,7 +6484,7 @@ type ChatContentExtension struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Annotation") to include in + // NullFields is a list of field names (e.g. "CreateTime") 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 @@ -7404,29 +6493,20 @@ type ChatContentExtension struct { NullFields []string `json:"-"` } -func (s *ChatContentExtension) MarshalJSON() ([]byte, error) { - type NoMethod ChatContentExtension +func (s *Metadata) MarshalJSON() ([]byte, error) { + type NoMethod Metadata raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// ChatProto: Represents the invitees or other users associated with a -// Babel Chat (see http://goto/babel). Corresponds to GroupType CHAT in -// //social/graph/storage/proto/data.proto. -type ChatProto struct { - // ChatId: Chat IDs consist of alphanumeric characters and colons. - // Currently required. - ChatId string `json:"chatId,omitempty"` - - // MemberType: The type of Chat members to consider, e.g. "all members" - // vs. "invitee" These are defined by legacy_relation_id values in - // social.graph.storage.EdgeTypeEnum.EdgeType enum options in - // social/graph/storage/proto/id.proto. See chat.pb (defined in - // production/config/cdd/socialgraph/mixer_config/prod/node_type_config) - // for all valid edge types associated with chat. Currently required. - MemberType int64 `json:"memberType,omitempty"` +// Metaline: A metaline is a list of properties that are displayed along +// with the search result to provide context. +type Metaline struct { + // Properties: The list of displayed properties for the metaline. The + // maximum number of properties is 5. + Properties []*DisplayedProperty `json:"properties,omitempty"` - // ForceSendFields is a list of field names (e.g. "ChatId") to + // ForceSendFields is a list of field names (e.g. "Properties") 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 @@ -7434,8 +6514,8 @@ type ChatProto struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "ChatId") to include in API - // requests with the JSON null value. By default, fields with empty + // NullFields is a list of field names (e.g. "Properties") 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. @@ -7443,22 +6523,20 @@ type ChatProto struct { NullFields []string `json:"-"` } -func (s *ChatProto) MarshalJSON() ([]byte, error) { - type NoMethod ChatProto +func (s *Metaline) MarshalJSON() ([]byte, error) { + type NoMethod Metaline raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -type CheckAccessResponse struct { - // HasAccess: Returns true if principal has access. Returns false - // otherwise. - HasAccess bool `json:"hasAccess,omitempty"` - - // ServerResponse contains the HTTP response code and headers from the - // server. - googleapi.ServerResponse `json:"-"` +// Name: A person's name. +type Name struct { + // DisplayName: The read-only display name formatted according to the + // locale specified by the viewer's account or the `Accept-Language` + // HTTP header. + DisplayName string `json:"displayName,omitempty"` - // ForceSendFields is a list of field names (e.g. "HasAccess") to + // 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 @@ -7466,127 +6544,91 @@ type CheckAccessResponse struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "HasAccess") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as + // NullFields is a list of field names (e.g. "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 *CheckAccessResponse) MarshalJSON() ([]byte, error) { - type NoMethod CheckAccessResponse +func (s *Name) MarshalJSON() ([]byte, error) { + type NoMethod Name raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// CircleProto: Represents a Google+ Circle. Currently (12/2011), a -// Circle is identical to the ContactGroup with matching parameters, but -// Circle must only be used for true Circles and not other Focus groups, -// and should be preferred over ContactGroup where applicable. Soon it -// may become more efficient to check membership in a Circle than in a -// ContactGroup (see http://go/superglue). Support for this principal -// type is currently (12/2011) incomplete -- e.g., Keystore does not -// support it yet (see b/5703421). -type CircleProto struct { - // CircleId: Circle ID is unique only relative to the owner's Gaia ID. - // Currently required. - CircleId int64 `json:"circleId,omitempty,string"` - - // OwnerGaiaId: The owner of the circle. Currently required. - OwnerGaiaId int64 `json:"ownerGaiaId,omitempty,string"` - - // RequiredConsistencyTimestampUsec: If present, then tests for - // membership in this circle must use data known to be at least as fresh - // as the given (FBS-assigned) timestamp. See - // http://go/fbs-consistent-read-after-important-write Before using - // this, be sure that any service checking authorization against this - // circle supports checking consistency timestamps. For example, as of - // 12/2011, Keystore only supports this for the Moonshine configuration, - // and in others authorization checks will fail if the timestamp is - // present. - RequiredConsistencyTimestampUsec int64 `json:"requiredConsistencyTimestampUsec,omitempty,string"` - - // ForceSendFields is a list of field names (e.g. "CircleId") 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:"-"` +// NamedProperty: A typed name-value pair for structured data. The type +// of the value should be the same as the registered type for the `name` +// property in the object definition of `objectType`. +type NamedProperty struct { + BooleanValue bool `json:"booleanValue,omitempty"` - // NullFields is a list of field names (e.g. "CircleId") 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:"-"` -} + DateValues *DateValues `json:"dateValues,omitempty"` -func (s *CircleProto) MarshalJSON() ([]byte, error) { - type NoMethod CircleProto - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} + DoubleValues *DoubleValues `json:"doubleValues,omitempty"` + + EnumValues *EnumValues `json:"enumValues,omitempty"` + + HtmlValues *HtmlValues `json:"htmlValues,omitempty"` + + IntegerValues *IntegerValues `json:"integerValues,omitempty"` -// ClientContext: Represents the context of the client on behalf of -// which a HistoryRecord is produced. The ClientContext message can be -// used to hold context about the service client (e.g. the internal -// server making fusebox requests) or the user client (e.g. the IP -// address of the end user). -type ClientContext struct { - // ClientOperationId: The client operation to which this history record - // belongs. The notion of a client operation is provided to keep track - // of client operations which might span multiple transactions in the - // lower level. - ClientOperationId string `json:"clientOperationId,omitempty"` + // Name: The name of the property. This name should correspond to the + // name of the property that was registered for object definition in the + // schema. The maximum allowable length for this property is 256 + // characters. + Name string `json:"name,omitempty"` - // ClientType: E.g. "pinto", "imap", "bigtop", "upload" - ClientType string `json:"clientType,omitempty"` + ObjectValues *ObjectValues `json:"objectValues,omitempty"` - // SessionContext: Contains information about the session which created - // this history record. This will be empty if the history record was - // generated by an internal request. - SessionContext *SessionContext `json:"sessionContext,omitempty"` + TextValues *TextValues `json:"textValues,omitempty"` - // UserIp: Textual representation of the user's IP address, if - // available. - UserIp string `json:"userIp,omitempty"` + TimestampValues *TimestampValues `json:"timestampValues,omitempty"` - // ForceSendFields is a list of field names (e.g. "ClientOperationId") - // to unconditionally include in API requests. By default, fields with + // ForceSendFields is a list of field names (e.g. "BooleanValue") 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. "ClientOperationId") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "BooleanValue") 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 *ClientContext) MarshalJSON() ([]byte, error) { - type NoMethod ClientContext +func (s *NamedProperty) MarshalJSON() ([]byte, error) { + type NoMethod NamedProperty raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// CloudPrincipalProto: Principal associated with a Cloud Principal -// representing third party user. -type CloudPrincipalProto struct { - // Id: Format: "{identity-pool}:{subject}#" Details: - // go/cloud-principal-identifiers - Id string `json:"id,omitempty"` +// ObjectDefinition: The definition for an object within a data source. +type ObjectDefinition struct { + // Name: The name for the object, which then defines its type. Item + // indexing requests should set the objectType field equal to this + // value. For example, if *name* is *Document*, then indexing requests + // for items of type Document should set objectType equal to *Document*. + // Each object definition must be uniquely named within a schema. The + // name must start with a letter and can only contain letters (A-Z, a-z) + // or numbers (0-9). The maximum length is 256 characters. + Name string `json:"name,omitempty"` + + // Options: The optional object-specific options. + Options *ObjectOptions `json:"options,omitempty"` + + // PropertyDefinitions: The property definitions for the object. The + // maximum number of elements is 1000. + PropertyDefinitions []*PropertyDefinition `json:"propertyDefinitions,omitempty"` - // ForceSendFields is a list of field names (e.g. "Id") to + // ForceSendFields is a list of field names (e.g. "Name") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be @@ -7594,7 +6636,7 @@ type CloudPrincipalProto struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Id") to include in API + // NullFields is a list of field names (e.g. "Name") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as @@ -7603,29 +6645,30 @@ type CloudPrincipalProto struct { NullFields []string `json:"-"` } -func (s *CloudPrincipalProto) MarshalJSON() ([]byte, error) { - type NoMethod CloudPrincipalProto +func (s *ObjectDefinition) MarshalJSON() ([]byte, error) { + type NoMethod ObjectDefinition raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// ClusterInfo: ClusterInfo contains clustering related information for -// a particular thread that would be sent as part of the conversation -// view. Today, this information would be used by iOS notification -// server to identify whether the thread belongs to a cluster. If the -// thread belongs to a grouped cluster, it would identify whether the -// cluster is throttled. -type ClusterInfo struct { - // ClusterId: IDs of the highest priority clusters to which the thread - // belongs to. If this field is not present, the thread does not belong - // to any cluster and would be shown in the inbox, unclustered. - ClusterId []string `json:"clusterId,omitempty"` +// ObjectDisplayOptions: The display options for an object. +type ObjectDisplayOptions struct { + // Metalines: Defines the properties that are displayed in the metalines + // of the search results. The property values are displayed in the order + // given here. If a property holds multiple values, all of the values + // are displayed before the next properties. For this reason, it is a + // good practice to specify singular properties before repeated + // properties in this list. All of the properties must set is_returnable + // to true. The maximum number of metalines is 3. + Metalines []*Metaline `json:"metalines,omitempty"` - // Throttled: If the thread belongs to a grouped cluster and all of - // those clusters are throttled, then this field is set to true. - Throttled bool `json:"throttled,omitempty"` + // ObjectDisplayLabel: The user friendly label to display in the search + // result to indicate the type of the item. This is OPTIONAL; if not + // provided, an object label isn't displayed on the context line of the + // search results. The maximum length is 64 characters. + ObjectDisplayLabel string `json:"objectDisplayLabel,omitempty"` - // ForceSendFields is a list of field names (e.g. "ClusterId") to + // ForceSendFields is a list of field names (e.g. "Metalines") 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 @@ -7633,7 +6676,7 @@ type ClusterInfo struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "ClusterId") to include in + // NullFields is a list of field names (e.g. "Metalines") 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 @@ -7642,55 +6685,34 @@ type ClusterInfo struct { NullFields []string `json:"-"` } -func (s *ClusterInfo) MarshalJSON() ([]byte, error) { - type NoMethod ClusterInfo +func (s *ObjectDisplayOptions) MarshalJSON() ([]byte, error) { + type NoMethod ObjectDisplayOptions raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// CoActivity: Metadata about a co-activity session. -type CoActivity struct { - // ActivityTitle: The title of the activity in this co-activity session. - // For example, this might be the title of the video being co-watched, - // or the name of the round of a game being co-played. - ActivityTitle string `json:"activityTitle,omitempty"` +// ObjectOptions: The options for an object. +type ObjectOptions struct { + // DisplayOptions: The options that determine how the object is + // displayed in the Cloud Search results page. + DisplayOptions *ObjectDisplayOptions `json:"displayOptions,omitempty"` - // AddOnId: The add-on id of the current add-on being used for - // co-activity. - AddOnId string `json:"addOnId,omitempty"` + // FreshnessOptions: The freshness options for an object. + FreshnessOptions *FreshnessOptions `json:"freshnessOptions,omitempty"` - // AddOnStartingState: The starting state of the add-on frames for - // co-activity. - AddOnStartingState *AddOnStartingState `json:"addOnStartingState,omitempty"` + // SuggestionFilteringOperators: Operators that can be used to filter + // suggestions. For Suggest API, only operators mentioned here will be + // honored in the FilterOptions. Only TEXT and ENUM operators are + // supported. NOTE: "objecttype", "type" and "mimetype" are already + // supported. This property is to configure schema specific operators. + // Even though this is an array, only one operator can be specified. + // This is an array for future extensibility. Operators mapping to + // multiple properties within the same object are not supported. If the + // operator spans across different object types, this option has to be + // set once for each object definition. + SuggestionFilteringOperators []string `json:"suggestionFilteringOperators,omitempty"` - // CoActivityApp: Identifies the app handling this co-activity. - // - // Possible values: - // "CO_ACTIVITY_APP_UNSPECIFIED" - Should never be used. - // "CO_ACTIVITY_APP_YOU_TUBE_MAIN" - Main YouTube app, for watching - // videos. - // "CO_ACTIVITY_APP_SPOTIFY" - Spotify music. - // "CO_ACTIVITY_APP_UNO" - Uno game. - // "CO_ACTIVITY_APP_HEADSUP" - HeadsUp game. - // "CO_ACTIVITY_APP_KAHOOT" - Kahoot! educational software. - // "CO_ACTIVITY_APP_GQUEUES" - GQueues task manager. - // "CO_ACTIVITY_APP_YOU_TUBE_MUSIC" - YouTube Music - // "CO_ACTIVITY_APP_SAMSUNG_NOTES" - Samsung Notes - // "CO_ACTIVITY_APP_HAPPY_AARDVARK" - . - CoActivityApp string `json:"coActivityApp,omitempty"` - - // InitiatorDeviceId: The resource name of the device that initiated the - // co-activity. - InitiatorDeviceId string `json:"initiatorDeviceId,omitempty"` - - // PresentationDeviceId: The resource name of the device that is - // presenting the add-on. - PresentationDeviceId string `json:"presentationDeviceId,omitempty"` - - // ProjectNumber: The project number of the add-on to determine version. - ProjectNumber int64 `json:"projectNumber,omitempty,string"` - - // ForceSendFields is a list of field names (e.g. "ActivityTitle") to + // ForceSendFields is a list of field names (e.g. "DisplayOptions") 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 @@ -7698,135 +6720,60 @@ type CoActivity struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "ActivityTitle") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "DisplayOptions") 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 *CoActivity) MarshalJSON() ([]byte, error) { - type NoMethod CoActivity +func (s *ObjectOptions) MarshalJSON() ([]byte, error) { + type NoMethod ObjectOptions raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// Collaboration: Information about a collaboration session. -type Collaboration struct { - // AttachmentId: The attachment being collaborated on. - AttachmentId string `json:"attachmentId,omitempty"` - - // Initiator: Display info of the user who initiated the collaboration - // session. - Initiator *UserDisplayInfo `json:"initiator,omitempty"` - - // Uri: The uri of the artifact being collaborated on. - Uri string `json:"uri,omitempty"` +// ObjectPropertyOptions: The options for object properties. +type ObjectPropertyOptions struct { + // SubobjectProperties: The properties of the sub-object. These + // properties represent a nested object. For example, if this property + // represents a postal address, the subobjectProperties might be named + // *street*, *city*, and *state*. The maximum number of elements is + // 1000. + SubobjectProperties []*PropertyDefinition `json:"subobjectProperties,omitempty"` - // ForceSendFields is a list of field names (e.g. "AttachmentId") to - // unconditionally include in API requests. By default, fields with + // ForceSendFields is a list of field names (e.g. "SubobjectProperties") + // 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. "AttachmentId") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "SubobjectProperties") 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 *Collaboration) MarshalJSON() ([]byte, error) { - type NoMethod Collaboration +func (s *ObjectPropertyOptions) MarshalJSON() ([]byte, error) { + type NoMethod ObjectPropertyOptions raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// Color: Represents a color in the RGBA color space. This -// representation is designed for simplicity of conversion to and from -// color representations in various languages over compactness. For -// example, the fields of this representation can be trivially provided -// to the constructor of `java.awt.Color` in Java; it can also be -// trivially provided to UIColor's `+colorWithRed:green:blue:alpha` -// method in iOS; and, with just a little work, it can be easily -// formatted into a CSS `rgba()` string in JavaScript. This reference -// page does not have information about the absolute color space that -// should be used to interpret the RGB value—for example, sRGB, Adobe -// RGB, DCI-P3, and BT.2020. By default, applications should assume the -// sRGB color space. When color equality needs to be decided, -// implementations, unless documented otherwise, treat two colors as -// equal if all their red, green, blue, and alpha values each differ by -// at most `1e-5`. Example (Java): import com.google.type.Color; // ... -// public static java.awt.Color fromProto(Color protocolor) { float -// alpha = protocolor.hasAlpha() ? protocolor.getAlpha().getValue() : -// 1.0; return new java.awt.Color( protocolor.getRed(), -// protocolor.getGreen(), protocolor.getBlue(), alpha); } public static -// Color toProto(java.awt.Color color) { float red = (float) -// color.getRed(); float green = (float) color.getGreen(); float blue = -// (float) color.getBlue(); float denominator = 255.0; Color.Builder -// resultBuilder = Color .newBuilder() .setRed(red / denominator) -// .setGreen(green / denominator) .setBlue(blue / denominator); int -// alpha = color.getAlpha(); if (alpha != 255) { result.setAlpha( -// FloatValue .newBuilder() .setValue(((float) alpha) / denominator) -// .build()); } return resultBuilder.build(); } // ... Example (iOS / -// Obj-C): // ... static UIColor* fromProto(Color* protocolor) { float -// red = [protocolor red]; float green = [protocolor green]; float blue -// = [protocolor blue]; FloatValue* alpha_wrapper = [protocolor alpha]; -// float alpha = 1.0; if (alpha_wrapper != nil) { alpha = [alpha_wrapper -// value]; } return [UIColor colorWithRed:red green:green blue:blue -// alpha:alpha]; } static Color* toProto(UIColor* color) { CGFloat red, -// green, blue, alpha; if (![color getRed:&red green:&green blue:&blue -// alpha:&alpha]) { return nil; } Color* result = [[Color alloc] init]; -// [result setRed:red]; [result setGreen:green]; [result setBlue:blue]; -// if (alpha <= 0.9999) { [result -// setAlpha:floatWrapperWithValue(alpha)]; } [result autorelease]; -// return result; } // ... Example (JavaScript): // ... var -// protoToCssColor = function(rgb_color) { var redFrac = rgb_color.red -// || 0.0; var greenFrac = rgb_color.green || 0.0; var blueFrac = -// rgb_color.blue || 0.0; var red = Math.floor(redFrac * 255); var green -// = Math.floor(greenFrac * 255); var blue = Math.floor(blueFrac * 255); -// if (!('alpha' in rgb_color)) { return rgbToCssColor(red, green, -// blue); } var alphaFrac = rgb_color.alpha.value || 0.0; var rgbParams -// = [red, green, blue].join(','); return ['rgba(', rgbParams, ',', -// alphaFrac, ')'].join(”); }; var rgbToCssColor = function(red, green, -// blue) { var rgbNumber = new Number((red << 16) | (green << 8) | -// blue); var hexString = rgbNumber.toString(16); var missingZeros = 6 - -// hexString.length; var resultBuilder = ['#']; for (var i = 0; i < -// missingZeros; i++) { resultBuilder.push('0'); } -// resultBuilder.push(hexString); return resultBuilder.join(”); }; // -// ... -type Color struct { - // Alpha: The fraction of this color that should be applied to the - // pixel. That is, the final pixel color is defined by the equation: - // `pixel color = alpha * (this color) + (1.0 - alpha) * (background - // color)` This means that a value of 1.0 corresponds to a solid color, - // whereas a value of 0.0 corresponds to a completely transparent color. - // This uses a wrapper message rather than a simple float scalar so that - // it is possible to distinguish between a default value and the value - // being unset. If omitted, this color object is rendered as a solid - // color (as if the alpha value had been explicitly given a value of - // 1.0). - Alpha float64 `json:"alpha,omitempty"` - - // Blue: The amount of blue in the color as a value in the interval [0, - // 1]. - Blue float64 `json:"blue,omitempty"` - - // Green: The amount of green in the color as a value in the interval - // [0, 1]. - Green float64 `json:"green,omitempty"` - - // Red: The amount of red in the color as a value in the interval [0, - // 1]. - Red float64 `json:"red,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Alpha") to +// ObjectValues: List of object values. +type ObjectValues struct { + Values []*StructuredDataObject `json:"values,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Values") 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 @@ -7834,7 +6781,7 @@ type Color struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Alpha") to include in API + // NullFields is a list of field names (e.g. "Values") 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 @@ -7843,45 +6790,52 @@ type Color struct { NullFields []string `json:"-"` } -func (s *Color) MarshalJSON() ([]byte, error) { - type NoMethod Color +func (s *ObjectValues) MarshalJSON() ([]byte, error) { + type NoMethod ObjectValues raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -func (s *Color) UnmarshalJSON(data []byte) error { - type NoMethod Color - var s1 struct { - Alpha gensupport.JSONFloat64 `json:"alpha"` - Blue gensupport.JSONFloat64 `json:"blue"` - Green gensupport.JSONFloat64 `json:"green"` - Red gensupport.JSONFloat64 `json:"red"` - *NoMethod - } - s1.NoMethod = (*NoMethod)(s) - if err := json.Unmarshal(data, &s1); err != nil { - return err - } - s.Alpha = float64(s1.Alpha) - s.Blue = float64(s1.Blue) - s.Green = float64(s1.Green) - s.Red = float64(s1.Red) - return nil -} +// Operation: This resource represents a long-running operation that is +// the result of a network API call. +type Operation struct { + // Done: If the value is `false`, it means the operation is still in + // progress. If `true`, the operation is completed, and either `error` + // or `response` is available. + Done bool `json:"done,omitempty"` -// CommunalLabelTag: An individual instance (or "tag") of a label -// configured as a communal type that's associated with a message. -type CommunalLabelTag struct { - // CreatorUserId: Gaia ID of the user who added the tag, if any. Not - // present for any tags automatically created by server-side processing. - CreatorUserId int64 `json:"creatorUserId,omitempty,string"` + // Error: The error result of the operation in case of failure or + // cancellation. + Error *Status `json:"error,omitempty"` - // LabelId: A string ID representing the label. Possible ID values are - // documented at go/chat-labels-howto:ids. Example: "^*t_p" for - // "Pinned". - LabelId string `json:"labelId,omitempty"` + // Metadata: Service-specific metadata associated with the operation. It + // typically contains progress information and common metadata such as + // create time. Some services might not provide such metadata. Any + // method that returns a long-running operation should document the + // metadata type, if any. + Metadata googleapi.RawMessage `json:"metadata,omitempty"` - // ForceSendFields is a list of field names (e.g. "CreatorUserId") to + // Name: The server-assigned name, which is only unique within the same + // service that originally returns it. If you use the default HTTP + // mapping, the `name` should be a resource name ending with + // `operations/{unique_id}`. + Name string `json:"name,omitempty"` + + // Response: The normal response of the operation in case of success. If + // the original method returns no data on success, such as `Delete`, the + // response is `google.protobuf.Empty`. If the original method is + // standard `Get`/`Create`/`Update`, the response should be the + // resource. For other methods, the response should have the type + // `XxxResponse`, where `Xxx` is the original method name. For example, + // if the original method name is `TakeSnapshot()`, the inferred + // response type is `TakeSnapshotResponse`. + Response googleapi.RawMessage `json:"response,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "Done") 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 @@ -7889,35 +6843,25 @@ type CommunalLabelTag struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "CreatorUserId") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as + // NullFields is a list of field names (e.g. "Done") 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 *CommunalLabelTag) MarshalJSON() ([]byte, error) { - type NoMethod CommunalLabelTag +func (s *Operation) MarshalJSON() ([]byte, error) { + type NoMethod Operation raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -type CompositeFilter struct { - // LogicOperator: The logic operator of the sub filter. - // - // Possible values: - // "AND" - Logical operators, which can only be applied to sub - // filters. - // "OR" - // "NOT" - NOT can only be applied on a single sub filter. - LogicOperator string `json:"logicOperator,omitempty"` - - // SubFilters: Sub filters. - SubFilters []*Filter `json:"subFilters,omitempty"` +type PeoplePromotionCard struct { + People []*PersonCore `json:"people,omitempty"` - // ForceSendFields is a list of field names (e.g. "LogicOperator") to + // ForceSendFields is a list of field names (e.g. "People") 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 @@ -7925,76 +6869,29 @@ type CompositeFilter struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "LogicOperator") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as + // NullFields is a list of field names (e.g. "People") 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 *CompositeFilter) MarshalJSON() ([]byte, error) { - type NoMethod CompositeFilter +func (s *PeoplePromotionCard) MarshalJSON() ([]byte, error) { + type NoMethod PeoplePromotionCard raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// ConsentedAppUnfurlMetadata: Annotation metadata app unfurl consent. -type ConsentedAppUnfurlMetadata struct { - // ClientSpecifiedAppId: Client specified AppId, which will not be - // sanitized and is untrusted. - ClientSpecifiedAppId *UserId `json:"clientSpecifiedAppId,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "ClientSpecifiedAppId") 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. "ClientSpecifiedAppId") 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 *ConsentedAppUnfurlMetadata) MarshalJSON() ([]byte, error) { - type NoMethod ConsentedAppUnfurlMetadata - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} +// PeopleSuggestion: This field contains information about the person +// being suggested. +type PeopleSuggestion struct { + // Person: Suggested person. All fields of the person object might not + // be populated. + Person *Person `json:"person,omitempty"` -// ContactGroupProto: A group of contacts for a given user, as described -// in http://cs/p#google3/focus/backend/proto/backend.proto Historically -// (and in still-existing ACLs), this was used to represent Google+ -// circles as well as contact groups, but this use is now deprecated. -// New code should use the CIRCLE principal type to represent Google+ -// circles. -type ContactGroupProto struct { - // GroupId: Group ID is unique only relative to the owner's Gaia ID. - GroupId int64 `json:"groupId,omitempty,string"` - - OwnerGaiaId int64 `json:"ownerGaiaId,omitempty,string"` - - // RequiredConsistencyTimestampUsec: If present, then tests for - // membership in this ContactGroup must use data known to be at least as - // fresh as the given (FBS-assigned) timestamp. See - // http://go/fbs-consistent-read-after-important-write Before using - // this, be sure that any service checking authorization against this - // group supports checking consistency timestamps. For example, as of - // 12/2011, Keystore only supports this for the Moonshine configuration, - // and in others authorization checks will fail if the timestamp is - // present. - RequiredConsistencyTimestampUsec int64 `json:"requiredConsistencyTimestampUsec,omitempty,string"` - - // ForceSendFields is a list of field names (e.g. "GroupId") to + // ForceSendFields is a list of field names (e.g. "Person") 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 @@ -8002,8 +6899,8 @@ type ContactGroupProto struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "GroupId") to include in - // API requests with the JSON null value. By default, fields with empty + // NullFields is a list of field names (e.g. "Person") 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. @@ -8011,73 +6908,45 @@ type ContactGroupProto struct { NullFields []string `json:"-"` } -func (s *ContactGroupProto) MarshalJSON() ([]byte, error) { - type NoMethod ContactGroupProto +func (s *PeopleSuggestion) MarshalJSON() ([]byte, error) { + type NoMethod PeopleSuggestion raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -type ContentReport struct { - // ReportCreateTimestamp: The time at which the report is generated. - // Always populated when it is in a response. - ReportCreateTimestamp string `json:"reportCreateTimestamp,omitempty"` - - // ReportJustification: Additional user-provided justification on the - // report. Optional. - ReportJustification *ContentReportJustification `json:"reportJustification,omitempty"` - - // ReportType: Type of the report. Always populated when it is in a - // response. - ReportType *AppsDynamiteSharedContentReportType `json:"reportType,omitempty"` - - // ReporterUserId: User ID of the reporter. Always populated when it is - // in a response. - ReporterUserId *UserId `json:"reporterUserId,omitempty"` +// Person: Object to represent a person. +type Person struct { + // EmailAddresses: The person's email addresses + EmailAddresses []*EmailAddress `json:"emailAddresses,omitempty"` - // RevisionCreateTimestamp: Create timestamp of the revisions of the - // message when it's reported. Always populated when it is in a - // response. - RevisionCreateTimestamp string `json:"revisionCreateTimestamp,omitempty"` + // Name: The resource name of the person to provide information about. + // See `People.get` + // (https://developers.google.com/people/api/rest/v1/people/get) from + // the Google People API. + Name string `json:"name,omitempty"` - // ForceSendFields is a list of field names (e.g. - // "ReportCreateTimestamp") 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:"-"` + // ObfuscatedId: Obfuscated ID of a person. + ObfuscatedId string `json:"obfuscatedId,omitempty"` - // NullFields is a list of field names (e.g. "ReportCreateTimestamp") 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:"-"` -} + // PersonNames: The person's name + PersonNames []*Name `json:"personNames,omitempty"` -func (s *ContentReport) MarshalJSON() ([]byte, error) { - type NoMethod ContentReport - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} + // PhoneNumbers: The person's phone numbers + PhoneNumbers []*PhoneNumber `json:"phoneNumbers,omitempty"` -type ContentReportJustification struct { - // UserJustification: Optional. User-generated free-text justification - // for the content report. - UserJustification string `json:"userJustification,omitempty"` + // Photos: A person's read-only photo. A picture shown next to the + // person's name to help others recognize the person in search results. + Photos []*Photo `json:"photos,omitempty"` - // ForceSendFields is a list of field names (e.g. "UserJustification") - // to unconditionally include in API requests. By default, fields with + // ForceSendFields is a list of field names (e.g. "EmailAddresses") 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. "UserJustification") to + // NullFields is a list of field names (e.g. "EmailAddresses") 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 @@ -8087,26 +6956,160 @@ type ContentReportJustification struct { NullFields []string `json:"-"` } -func (s *ContentReportJustification) MarshalJSON() ([]byte, error) { - type NoMethod ContentReportJustification +func (s *Person) MarshalJSON() ([]byte, error) { + type NoMethod Person raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// ContentReportSummary: Summarized info of content reports. Usually -// less expensive to fetch than to fetch all detailed reports. Set only -// when the request asks for it. -type ContentReportSummary struct { - // NumberReports: Total number of reports attached to this (revision of) - // message. - NumberReports int64 `json:"numberReports,omitempty"` +// PersonCore: Information for rendering a person. NEXT ID: 37 +type PersonCore struct { + // AddressMeAs: Instructions for how to address this person (e.g. custom + // pronouns). For google.com this is a set of pronouns from a defined + // list of options. + AddressMeAs string `json:"addressMeAs,omitempty"` + + // AdminTo: People the profile owner is an admin to. Note that not all + // fields of these PersonCores will be set, in particular, relationships + // will be empty. + AdminTo []*PersonCore `json:"adminTo,omitempty"` + + // Admins: The profile owner's admins in no particular order. Note that + // not all fields of these PersonCores will be set, in particular, + // relationships will be empty. + Admins []*PersonCore `json:"admins,omitempty"` + + // Possible values: + // "UNKNOWN" + // "OUT_OF_OFFICE" + // "OUTSIDE_WORKING_HOURS" + // "AVAILABLE" + AvailabilityStatus string `json:"availabilityStatus,omitempty"` + + // Birthday: Person birthday. + Birthday *Date `json:"birthday,omitempty"` + + // CalendarUrl: The URL to open the profile owner's primary calendar. + CalendarUrl *SafeUrlProto `json:"calendarUrl,omitempty"` + + // ChatUrl: The URL to start a chat conversation with the profile owner. + // For google.com this is a Hangouts URL. + ChatUrl *SafeUrlProto `json:"chatUrl,omitempty"` + + // CostCenter: Person's cost center as a string, e.g. "926: Googler + // Apps". + CostCenter string `json:"costCenter,omitempty"` + + // Department: The person's Organization department, e.g. "People + // Operations". For google.com this is usually called "area". + Department string `json:"department,omitempty"` + + // DirectReports: A subset of the profile owner's direct reports. The + // number of entities here may be less than total_direct_reports_count, + // because typically ProfileResponse does not include all the person's + // reports, if there are too many to retrieve efficiently. Note that not + // all fields of these PersonCores will be set, in particular, + // relationships will be empty. + DirectReports []*PersonCore `json:"directReports,omitempty"` + + // DottedLineManagers: The profile owner's direct dotted line managers + // in no particular order. Note that not all fields of these PersonCores + // will be set, in particular, relationships will be empty. + DottedLineManagers []*PersonCore `json:"dottedLineManagers,omitempty"` + + // DottedLineReports: A subset of the profile owner's dotted-line + // reports. The number of entities here may be less than + // total_dlr_count. Note that not all fields of these PersonCores will + // be set, in particular, relationships will be empty. + DottedLineReports []*PersonCore `json:"dottedLineReports,omitempty"` + + // Emails: E-mail addresses of the person. The primary or preferred + // email should be first. + Emails []string `json:"emails,omitempty"` + + // EmployeeId: Person's employee number (external ID of type + // "organization") For google.com this is the badge number (e.g. 2 for + // Larry Page). + EmployeeId string `json:"employeeId,omitempty"` + + // Fingerprint: A fingerprint used by PAPI to reliably determine if a + // resource has changed Externally it is used as part of the etag. + Fingerprint string `json:"fingerprint,omitempty"` + + // FtePermille: Full-time equivalent (in ‰) (e.g. 800 for a person + // who's working 80%). + FtePermille int64 `json:"ftePermille,omitempty,string"` + + GeoLocation *MapInfo `json:"geoLocation,omitempty"` + + GmailUrl string `json:"gmailUrl,omitempty"` + + // JobTitle: Profile owner's job title (e.g. "Software Engineer"). For + // google.com this is the Workday preferred job title. + JobTitle string `json:"jobTitle,omitempty"` + + // KeywordTypes: List of keys to use from the map 'keywords'. + KeywordTypes []string `json:"keywordTypes,omitempty"` + + // Keywords: Custom keywords the domain admin has added. + Keywords map[string]string `json:"keywords,omitempty"` + + // Links: Custom links the profile owner has added. + Links []*EnterpriseTopazFrontendTeamsLink `json:"links,omitempty"` + + // Location: Detailed desk location within the company. For google.com + // this is the desk location code (e.g. "DE-MUC-ARP-6T2-6T2C0C") if the + // person has a desk. + Location string `json:"location,omitempty"` + + // Managers: The profile owner's management chain from top to bottom, + // where managers[0] is the CEO, manager[N-2] is the person's manager's + // manager and managers[N-1] is the person's direct manager. Note that + // not all fields of these PersonCores will be set, in particular, + // relationships will be empty. + Managers []*PersonCore `json:"managers,omitempty"` + + // Mission: Custom mission statement the profile owner has added. + Mission string `json:"mission,omitempty"` + + // Name: Human-readable Unicode display name. + Name string `json:"name,omitempty"` + + // OfficeLocation: Office/building identifier within the company. For + // google.com this is the office code (e.g. "DE-MUC-ARP"). + OfficeLocation string `json:"officeLocation,omitempty"` + + // PersonId: The person's obfuscated Gaia ID. + PersonId string `json:"personId,omitempty"` + + PhoneNumbers []*EnterpriseTopazFrontendTeamsPersonCorePhoneNumber `json:"phoneNumbers,omitempty"` + + // PhotoUrl: Person photo. + PhotoUrl *SafeUrlProto `json:"photoUrl,omitempty"` + + // PostalAddress: Postal address of office/building. + PostalAddress string `json:"postalAddress,omitempty"` + + // TotalDirectReportsCount: Total count of the profile owner's direct + // reports. + TotalDirectReportsCount int64 `json:"totalDirectReportsCount,omitempty"` + + // TotalDlrCount: Total count of the profile owner's dotted-line + // reports. + TotalDlrCount int64 `json:"totalDlrCount,omitempty"` - // NumberReportsAllRevisions: Totoal number of reports attached to all - // revisions of this message (i.e. since creation). Set only when the - // request asks for it. - NumberReportsAllRevisions int64 `json:"numberReportsAllRevisions,omitempty"` + // TotalFteCount: The sum of all profile owner's reports and their own + // full-time-equivalents in ‰ (e.g. 1800 if one report is working 80% + // and profile owner 100%). + TotalFteCount int64 `json:"totalFteCount,omitempty,string"` - // ForceSendFields is a list of field names (e.g. "NumberReports") to + // Username: External ID of type "login_id" for the profile. For + // google.com this is the username/LDAP. + Username string `json:"username,omitempty"` + + WaldoComeBackTime string `json:"waldoComeBackTime,omitempty"` + + // ForceSendFields is a list of field names (e.g. "AddressMeAs") 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 @@ -8114,7 +7117,7 @@ type ContentReportSummary struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "NumberReports") to include + // NullFields is a list of field names (e.g. "AddressMeAs") 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 @@ -8123,29 +7126,24 @@ type ContentReportSummary struct { NullFields []string `json:"-"` } -func (s *ContentReportSummary) MarshalJSON() ([]byte, error) { - type NoMethod ContentReportSummary +func (s *PersonCore) MarshalJSON() ([]byte, error) { + type NoMethod PersonCore raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// ContextAttribute: A named attribute associated with an item which can -// be used for influencing the ranking of the item based on the context -// in the request. -type ContextAttribute struct { - // Name: The name of the attribute. It should not be empty. The maximum - // length is 32 characters. The name must start with a letter and can - // only contain letters (A-Z, a-z) or numbers (0-9). The name will be - // normalized (lower-cased) before being matched. - Name string `json:"name,omitempty"` +// PhoneNumber: A person's Phone Number +type PhoneNumber struct { + // PhoneNumber: The phone number of the person. + PhoneNumber string `json:"phoneNumber,omitempty"` - // Values: Text values of the attribute. The maximum number of elements - // is 10. The maximum length of an element in the array is 32 - // characters. The value will be normalized (lower-cased) before being - // matched. - Values []string `json:"values,omitempty"` + // Possible values: + // "OTHER" + // "MOBILE" + // "OFFICE" + Type string `json:"type,omitempty"` - // ForceSendFields is a list of field names (e.g. "Name") to + // ForceSendFields is a list of field names (e.g. "PhoneNumber") 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 @@ -8153,47 +7151,27 @@ type ContextAttribute struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Name") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as + // NullFields is a list of field names (e.g. "PhoneNumber") 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 *ContextAttribute) MarshalJSON() ([]byte, error) { - type NoMethod ContextAttribute +func (s *PhoneNumber) MarshalJSON() ([]byte, error) { + type NoMethod PhoneNumber raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// ContextualAddOnMarkup: The markup for developers to specify the -// contents of a contextual AddOn. A contextual AddOn is triggered in -// context of an email. For that email, there can be N items that are -// associated with the email (e.g. contacts, sales lead, meeting -// information). Each item is represented as a "card". A card has two -// views, collapsed and detailed. If there are more than 1 card, the -// cards are show as a list of collapsed views. The end user can expand -// into the detailed view for each of those cards. In the detailed view, -// developers have the freedom to use a variety of "widgets" to -// construct it. The model here is to restrict (make consistent for end -// users) the navigation of the N cards but providing developers the -// freedom to build the detailed view that can best represent their use -// case/content. Go http://go/aoig-widgets1 to see the mocks. Post v1, -// we plan to support new AddOn use cases that will require different -// and separate 'templates'. For example, a compose triggered AddOn -// which will support a new set of use cases with different user -// interaction patterns. As a result, we will likely need a very -// different template than this one. -type ContextualAddOnMarkup struct { - // Cards: A card must contain a header and at least 1 section. - Cards []*Card `json:"cards,omitempty"` - - // Toolbar: Deprecated. - Toolbar *Toolbar `json:"toolbar,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Cards") to +// Photo: A person's photo. +type Photo struct { + // Url: The URL of the photo. + Url string `json:"url,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Url") 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 @@ -8201,7 +7179,7 @@ type ContextualAddOnMarkup struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Cards") to include in API + // NullFields is a list of field names (e.g. "Url") 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 @@ -8210,25 +7188,45 @@ type ContextualAddOnMarkup struct { NullFields []string `json:"-"` } -func (s *ContextualAddOnMarkup) MarshalJSON() ([]byte, error) { - type NoMethod ContextualAddOnMarkup +func (s *Photo) MarshalJSON() ([]byte, error) { + type NoMethod Photo raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// CseInfo: Information needed for Client-side Encryption. -type CseInfo struct { - // CseDomain: CSE domain name claimed by the meeting owner's company. - // This field is expected to be used for display purposes only, i.e., - // "Extra encryption added by $cse_domain". It can differ from the - // `cse_domain` as defined elsewhere on the User, in the case of - // cross-domain meetings. - CseDomain string `json:"cseDomain,omitempty"` +type PollItemsRequest struct { + // ConnectorName: The name of connector making this call. Format: + // datasources/{source_id}/connectors/{ID} + ConnectorName string `json:"connectorName,omitempty"` + + // DebugOptions: Common debug options. + DebugOptions *DebugOptions `json:"debugOptions,omitempty"` + + // Limit: Maximum number of items to return. The maximum value is 100 + // and the default value is 20. + Limit int64 `json:"limit,omitempty"` + + // Queue: Queue name to fetch items from. If unspecified, PollItems will + // fetch from 'default' queue. The maximum length is 100 characters. + Queue string `json:"queue,omitempty"` - // WrappedKey: The wrapped CSE key used by this conference. - WrappedKey string `json:"wrappedKey,omitempty"` + // StatusCodes: Limit the items polled to the ones with these statuses. + // + // Possible values: + // "CODE_UNSPECIFIED" - Input-only value. Used with Items.list to list + // all items in the queue, regardless of status. + // "ERROR" - Error encountered by Cloud Search while processing this + // item. Details of the error are in repositoryError. + // "MODIFIED" - Item has been modified in the repository, and is out + // of date with the version previously accepted into Cloud Search. + // "NEW_ITEM" - Item is known to exist in the repository, but is not + // yet accepted by Cloud Search. An item can be in this state when + // Items.push has been called for an item of this name that did not + // exist previously. + // "ACCEPTED" - API has accepted the up-to-date data of this item. + StatusCodes []string `json:"statusCodes,omitempty"` - // ForceSendFields is a list of field names (e.g. "CseDomain") to + // ForceSendFields is a list of field names (e.g. "ConnectorName") 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 @@ -8236,25 +7234,33 @@ type CseInfo struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "CseDomain") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as + // NullFields is a list of field names (e.g. "ConnectorName") 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 *CseInfo) MarshalJSON() ([]byte, error) { - type NoMethod CseInfo +func (s *PollItemsRequest) MarshalJSON() ([]byte, error) { + type NoMethod PollItemsRequest raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -type CustomEmojiMetadata struct { - CustomEmoji *AppsDynamiteSharedCustomEmoji `json:"customEmoji,omitempty"` +type PollItemsResponse struct { + // Items: Set of items from the queue available for connector to + // process. These items have the following subset of fields populated: + // version metadata.hash structured_data.hash content.hash payload + // status queue + Items []*Item `json:"items,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "CustomEmoji") to + // ForceSendFields is a list of field names (e.g. "Items") 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 @@ -8262,92 +7268,85 @@ type CustomEmojiMetadata struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "CustomEmoji") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as + // NullFields is a list of field names (e.g. "Items") 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 *CustomEmojiMetadata) MarshalJSON() ([]byte, error) { - type NoMethod CustomEmojiMetadata +func (s *PollItemsResponse) MarshalJSON() ([]byte, error) { + type NoMethod PollItemsResponse raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// CustomFunctionReturnValueMarkup: The result of a user running a -// custom function. -type CustomFunctionReturnValueMarkup struct { - // ErrorMessage: The error message to show to the user if something went - // wrong. - ErrorMessage string `json:"errorMessage,omitempty"` - - // Value: The value that resulted from running the custom function. - Value interface{} `json:"value,omitempty"` - - // ForceSendFields is a list of field names (e.g. "ErrorMessage") 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. "ErrorMessage") 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:"-"` -} +// Principal: Reference to a user, group, or domain. +type Principal struct { + // GroupResourceName: This principal is a group identified using an + // external identity. The name field must specify the group resource + // name with this format: identitysources/{source_id}/groups/{ID} + GroupResourceName string `json:"groupResourceName,omitempty"` -func (s *CustomFunctionReturnValueMarkup) MarshalJSON() ([]byte, error) { - type NoMethod CustomFunctionReturnValueMarkup - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} + // GsuitePrincipal: This principal is a Google Workspace user, group or + // domain. + GsuitePrincipal *GSuitePrincipal `json:"gsuitePrincipal,omitempty"` -// CustomerId: Represents a GSuite customer ID. Obfuscated with -// CustomerIdObfuscator. -type CustomerId struct { - CustomerId string `json:"customerId,omitempty"` + // UserResourceName: This principal is a user identified using an + // external identity. The name field must specify the user resource name + // with this format: identitysources/{source_id}/users/{ID} + UserResourceName string `json:"userResourceName,omitempty"` - // ForceSendFields is a list of field names (e.g. "CustomerId") to - // unconditionally include in API requests. By default, fields with + // ForceSendFields is a list of field names (e.g. "GroupResourceName") + // 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. "CustomerId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "GroupResourceName") 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 *CustomerId) MarshalJSON() ([]byte, error) { - type NoMethod CustomerId +func (s *Principal) MarshalJSON() ([]byte, error) { + type NoMethod Principal raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// CustomerIndexStats: Aggregation of items by status code as of the -// specified date. -type CustomerIndexStats struct { - // Date: The date for which statistics were calculated. - Date *Date `json:"date,omitempty"` +type ProcessingError struct { + // Code: Error code indicating the nature of the error. + // + // Possible values: + // "PROCESSING_ERROR_CODE_UNSPECIFIED" - Input only value. Use this + // value in Items. + // "MALFORMED_REQUEST" - Item's ACL, metadata, or content is malformed + // or in invalid state. FieldViolations contains more details on where + // the problem is. + // "UNSUPPORTED_CONTENT_FORMAT" - Countent format is unsupported. + // "INDIRECT_BROKEN_ACL" - Items with incomplete ACL information due + // to inheriting other items with broken ACL or having groups with + // unmapped descendants. + // "ACL_CYCLE" - ACL inheritance graph formed a cycle. + Code string `json:"code,omitempty"` - // ItemCountByStatus: Number of items aggregrated by status code. - ItemCountByStatus []*ItemCountByStatus `json:"itemCountByStatus,omitempty"` + // ErrorMessage: The description of the error. + ErrorMessage string `json:"errorMessage,omitempty"` - // ForceSendFields is a list of field names (e.g. "Date") to + // FieldViolations: In case the item fields are invalid, this field + // contains the details about the validation errors. + FieldViolations []*FieldViolation `json:"fieldViolations,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 @@ -8355,7 +7354,7 @@ type CustomerIndexStats struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Date") to include in API + // 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 @@ -8364,124 +7363,92 @@ type CustomerIndexStats struct { NullFields []string `json:"-"` } -func (s *CustomerIndexStats) MarshalJSON() ([]byte, error) { - type NoMethod CustomerIndexStats +func (s *ProcessingError) MarshalJSON() ([]byte, error) { + type NoMethod ProcessingError raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -type CustomerQueryStats struct { - // Date: The date for which query stats were calculated. Stats - // calculated on the next day close to midnight are returned. - Date *Date `json:"date,omitempty"` - - QueryCountByStatus []*QueryCountByStatus `json:"queryCountByStatus,omitempty"` +// PropertyDefinition: The definition of a property within an object. +type PropertyDefinition struct { + BooleanPropertyOptions *BooleanPropertyOptions `json:"booleanPropertyOptions,omitempty"` - // ForceSendFields is a list of field names (e.g. "Date") 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:"-"` + DatePropertyOptions *DatePropertyOptions `json:"datePropertyOptions,omitempty"` - // NullFields is a list of field names (e.g. "Date") 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:"-"` -} + // DisplayOptions: The options that determine how the property is + // displayed in the Cloud Search results page if it's specified to be + // displayed in the object's display options. + DisplayOptions *PropertyDisplayOptions `json:"displayOptions,omitempty"` -func (s *CustomerQueryStats) MarshalJSON() ([]byte, error) { - type NoMethod CustomerQueryStats - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} + DoublePropertyOptions *DoublePropertyOptions `json:"doublePropertyOptions,omitempty"` -// CustomerSearchApplicationStats: Search application stats for a -// customer for the given date. -type CustomerSearchApplicationStats struct { - // Count: The count of search applications for the date. - Count int64 `json:"count,omitempty,string"` + EnumPropertyOptions *EnumPropertyOptions `json:"enumPropertyOptions,omitempty"` - // Date: The date for which search application stats were calculated. - Date *Date `json:"date,omitempty"` + HtmlPropertyOptions *HtmlPropertyOptions `json:"htmlPropertyOptions,omitempty"` - // ForceSendFields is a list of field names (e.g. "Count") 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:"-"` + IntegerPropertyOptions *IntegerPropertyOptions `json:"integerPropertyOptions,omitempty"` - // NullFields is a list of field names (e.g. "Count") 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:"-"` -} + // IsFacetable: Indicates that the property can be used for generating + // facets. Cannot be true for properties whose type is object. + // IsReturnable must be true to set this option. Only supported for + // boolean, enum, integer, and text properties. + IsFacetable bool `json:"isFacetable,omitempty"` -func (s *CustomerSearchApplicationStats) MarshalJSON() ([]byte, error) { - type NoMethod CustomerSearchApplicationStats - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} + // IsRepeatable: Indicates that multiple values are allowed for the + // property. For example, a document only has one description but can + // have multiple comments. Cannot be true for properties whose type is a + // boolean. If set to false, properties that contain more than one value + // cause the indexing request for that item to be rejected. + IsRepeatable bool `json:"isRepeatable,omitempty"` -type CustomerSessionStats struct { - // Date: The date for which session stats were calculated. Stats are - // calculated on the following day, close to midnight PST, and then - // returned. - Date *Date `json:"date,omitempty"` + // IsReturnable: Indicates that the property identifies data that should + // be returned in search results via the Query API. If set to *true*, + // indicates that Query API users can use matching property fields in + // results. However, storing fields requires more space allocation and + // uses more bandwidth for search queries, which impacts performance + // over large datasets. Set to *true* here only if the field is needed + // for search results. Cannot be true for properties whose type is an + // object. + IsReturnable bool `json:"isReturnable,omitempty"` - // SearchSessionsCount: The count of search sessions on the day - SearchSessionsCount int64 `json:"searchSessionsCount,omitempty,string"` + // IsSortable: Indicates that the property can be used for sorting. + // Cannot be true for properties that are repeatable. Cannot be true for + // properties whose type is object. IsReturnable must be true to set + // this option. Only supported for boolean, date, double, integer, and + // timestamp properties. + IsSortable bool `json:"isSortable,omitempty"` - // ForceSendFields is a list of field names (e.g. "Date") 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:"-"` + // IsSuggestable: Indicates that the property can be used for generating + // query suggestions. + IsSuggestable bool `json:"isSuggestable,omitempty"` - // NullFields is a list of field names (e.g. "Date") 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:"-"` -} + // IsWildcardSearchable: Indicates that users can perform wildcard + // search for this property. Only supported for Text properties. + // IsReturnable must be true to set this option. In a given datasource + // maximum of 5 properties can be marked as is_wildcard_searchable. For + // more details, see Define object properties + // (https://developers.google.com/cloud-search/docs/guides/schema-guide#properties) + IsWildcardSearchable bool `json:"isWildcardSearchable,omitempty"` -func (s *CustomerSessionStats) MarshalJSON() ([]byte, error) { - type NoMethod CustomerSessionStats - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} + // Name: The name of the property. Item indexing requests sent to the + // Indexing API should set the property name equal to this value. For + // example, if name is *subject_line*, then indexing requests for + // document items with subject fields should set the name for that field + // equal to *subject_line*. Use the name as the identifier for the + // object property. Once registered as a property for an object, you + // cannot re-use this name for another property within that object. The + // name must start with a letter and can only contain letters (A-Z, a-z) + // or numbers (0-9). The maximum length is 256 characters. + Name string `json:"name,omitempty"` -// CustomerSettings: Represents settings at a customer level. -type CustomerSettings struct { - // AuditLoggingSettings: Audit Logging settings for the customer. If - // update_mask is empty then this field will be updated based on - // UpdateCustomerSettings request. - AuditLoggingSettings *AuditLoggingSettings `json:"auditLoggingSettings,omitempty"` + ObjectPropertyOptions *ObjectPropertyOptions `json:"objectPropertyOptions,omitempty"` - // VpcSettings: VPC SC settings for the customer. If update_mask is - // empty then this field will be updated based on UpdateCustomerSettings - // request. - VpcSettings *VPCSettings `json:"vpcSettings,omitempty"` + TextPropertyOptions *TextPropertyOptions `json:"textPropertyOptions,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. - googleapi.ServerResponse `json:"-"` + TimestampPropertyOptions *TimestampPropertyOptions `json:"timestampPropertyOptions,omitempty"` // ForceSendFields is a list of field names (e.g. - // "AuditLoggingSettings") to unconditionally include in API requests. + // "BooleanPropertyOptions") 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 @@ -8489,40 +7456,37 @@ type CustomerSettings struct { // Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "AuditLoggingSettings") 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. "BooleanPropertyOptions") + // 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 *CustomerSettings) MarshalJSON() ([]byte, error) { - type NoMethod CustomerSettings +func (s *PropertyDefinition) MarshalJSON() ([]byte, error) { + type NoMethod PropertyDefinition raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -type CustomerUserStats struct { - // Date: The date for which session stats were calculated. Stats - // calculated on the next day close to midnight are returned. - Date *Date `json:"date,omitempty"` - - // OneDayActiveUsersCount: The count of unique active users in the past - // one day - OneDayActiveUsersCount int64 `json:"oneDayActiveUsersCount,omitempty,string"` - - // SevenDaysActiveUsersCount: The count of unique active users in the - // past seven days - SevenDaysActiveUsersCount int64 `json:"sevenDaysActiveUsersCount,omitempty,string"` - - // ThirtyDaysActiveUsersCount: The count of unique active users in the - // past thirty days - ThirtyDaysActiveUsersCount int64 `json:"thirtyDaysActiveUsersCount,omitempty,string"` +// PropertyDisplayOptions: The display options for a property. +type PropertyDisplayOptions struct { + // DisplayLabel: The user friendly label for the property that is used + // if the property is specified to be displayed in ObjectDisplayOptions. + // If provided, the display label is shown in front of the property + // values when the property is part of the object display options. For + // example, if the property value is '1', the value by itself may not be + // useful context for the user. If the display name given was + // 'priority', then the user sees 'priority : 1' in the search results + // which provides clear context to search users. This is OPTIONAL; if + // not given, only the property values are displayed. The maximum length + // is 64 characters. + DisplayLabel string `json:"displayLabel,omitempty"` - // ForceSendFields is a list of field names (e.g. "Date") to + // ForceSendFields is a list of field names (e.g. "DisplayLabel") 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 @@ -8530,200 +7494,78 @@ type CustomerUserStats struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Date") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as + // NullFields is a list of field names (e.g. "DisplayLabel") 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 *CustomerUserStats) MarshalJSON() ([]byte, error) { - type NoMethod CustomerUserStats - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// DataLossPreventionMetadata: Annotation metadata for Data Loss -// Prevention that pertains to DLP violation on message send or edit -// events. It is used for client -> BE communication and other -// downstream process in BE (e.g. storage and audit logging), and it -// should never be returned to the client. -type DataLossPreventionMetadata struct { - // DlpMessageScanRecord: The scan record contains the action taken on - // the message send as well as scan the summary for the message contents - // and the attachment, if applicable. - DlpMessageScanRecord *DlpMessageScanRecord `json:"dlpMessageScanRecord,omitempty"` - - // DlpScanSummary: Deprecated. To be replaced by DLP scan record. The - // DLP scan summary that should only be set after the message is scanned - // in the Chat backend. - DlpScanSummary *DlpScanSummary `json:"dlpScanSummary,omitempty"` - - // WarnAcknowledged: Flag set by client on message resend to bypass WARN - // violation. - WarnAcknowledged bool `json:"warnAcknowledged,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "DlpMessageScanRecord") 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. "DlpMessageScanRecord") 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 *DataLossPreventionMetadata) MarshalJSON() ([]byte, error) { - type NoMethod DataLossPreventionMetadata +func (s *PropertyDisplayOptions) MarshalJSON() ([]byte, error) { + type NoMethod PropertyDisplayOptions raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// DataSource: Datasource is a logical namespace for items to be -// indexed. All items must belong to a datasource. This is the -// prerequisite before items can be indexed into Cloud Search. -type DataSource struct { - // DisableModifications: If true, sets the datasource to read-only mode. - // In read-only mode, the Indexing API rejects any requests to index or - // delete items in this source. Enabling read-only mode does not stop - // the processing of previously accepted data. - DisableModifications bool `json:"disableModifications,omitempty"` - - // DisableServing: Disable serving any search or assist results. - DisableServing bool `json:"disableServing,omitempty"` - - // DisplayName: Required. Display name of the datasource The maximum - // length is 300 characters. - DisplayName string `json:"displayName,omitempty"` - - // IndexingServiceAccounts: List of service accounts that have indexing - // access. - IndexingServiceAccounts []string `json:"indexingServiceAccounts,omitempty"` - - // ItemsVisibility: This field restricts visibility to items at the - // datasource level. Items within the datasource are restricted to the - // union of users and groups included in this field. Note that, this - // does not ensure access to a specific item, as users need to have ACL - // permissions on the contained items. This ensures a high level access - // on the entire datasource, and that the individual items are not - // shared outside this visibility. - ItemsVisibility []*GSuitePrincipal `json:"itemsVisibility,omitempty"` - - // Name: The name of the datasource resource. Format: - // datasources/{source_id}. The name is ignored when creating a - // datasource. - Name string `json:"name,omitempty"` +// PushItem: Represents an item to be pushed to the indexing queue. +type PushItem struct { + // ContentHash: Content hash of the item according to the repository. If + // specified, this is used to determine how to modify this item's + // status. Setting this field and the type field results in argument + // error. The maximum length is 2048 characters. + ContentHash string `json:"contentHash,omitempty"` - // OperationIds: IDs of the Long Running Operations (LROs) currently - // running for this schema. - OperationIds []string `json:"operationIds,omitempty"` + // MetadataHash: The metadata hash of the item according to the + // repository. If specified, this is used to determine how to modify + // this item's status. Setting this field and the type field results in + // argument error. The maximum length is 2048 characters. + MetadataHash string `json:"metadataHash,omitempty"` - // ReturnThumbnailUrls: Can a user request to get thumbnail URI for - // Items indexed in this data source. - ReturnThumbnailUrls bool `json:"returnThumbnailUrls,omitempty"` + // Payload: Provides additional document state information for the + // connector, such as an alternate repository ID and other metadata. The + // maximum length is 8192 bytes. + Payload string `json:"payload,omitempty"` - // ShortName: A short name or alias for the source. This value will be - // used to match the 'source' operator. For example, if the short name - // is ** then queries like *source:* will only return - // results for this source. The value must be unique across all - // datasources. The value must only contain alphanumeric characters - // (a-zA-Z0-9). The value cannot start with 'google' and cannot be one - // of the following: mail, gmail, docs, drive, groups, sites, calendar, - // hangouts, gplus, keep, people, teams. Its maximum length is 32 + // Queue: Queue to which this item belongs. The `default` queue is + // chosen if this field is not specified. The maximum length is 512 // characters. - ShortName string `json:"shortName,omitempty"` - - // ServerResponse contains the HTTP response code and headers from the - // server. - googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. - // "DisableModifications") 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. "DisableModifications") 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 *DataSource) MarshalJSON() ([]byte, error) { - type NoMethod DataSource - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// DataSourceIndexStats: Aggregation of items by status code as of the -// specified date. -type DataSourceIndexStats struct { - // Date: The date for which index stats were calculated. If the date of - // request is not the current date then stats calculated on the next day - // are returned. Stats are calculated close to mid night in this case. - // If date of request is current date, then real time stats are - // returned. - Date *Date `json:"date,omitempty"` - - // ItemCountByStatus: Number of items aggregrated by status code. - ItemCountByStatus []*ItemCountByStatus `json:"itemCountByStatus,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Date") 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. "Date") 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:"-"` -} + Queue string `json:"queue,omitempty"` -func (s *DataSourceIndexStats) MarshalJSON() ([]byte, error) { - type NoMethod DataSourceIndexStats - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} + // RepositoryError: Populate this field to store Connector or repository + // error details. This information is displayed in the Admin Console. + // This field may only be populated when the Type is REPOSITORY_ERROR. + RepositoryError *RepositoryError `json:"repositoryError,omitempty"` -// DataSourceRestriction: Restriction on Datasource. -type DataSourceRestriction struct { - // FilterOptions: Filter options restricting the results. If multiple - // filters are present, they are grouped by object type before joining. - // Filters with the same object type are joined conjunctively, then the - // resulting expressions are joined disjunctively. The maximum number of - // elements is 20. NOTE: Suggest API supports only few filters at the - // moment: "objecttype", "type" and "mimetype". For now, schema specific - // filters cannot be used to filter suggestions. - FilterOptions []*FilterOptions `json:"filterOptions,omitempty"` + // StructuredDataHash: Structured data hash of the item according to the + // repository. If specified, this is used to determine how to modify + // this item's status. Setting this field and the type field results in + // argument error. The maximum length is 2048 characters. + StructuredDataHash string `json:"structuredDataHash,omitempty"` - // Source: The source of restriction. - Source *Source `json:"source,omitempty"` + // Type: The type of the push operation that defines the push behavior. + // + // Possible values: + // "UNSPECIFIED" - Default UNSPECIFIED. Specifies that the push + // operation should not modify ItemStatus + // "MODIFIED" - Indicates that the repository document has been + // modified or updated since the previous update call. This changes + // status to MODIFIED state for an existing item. If this is called on a + // non existing item, the status is changed to NEW_ITEM. + // "NOT_MODIFIED" - Item in the repository has not been modified since + // the last update call. This push operation will set status to ACCEPTED + // state. + // "REPOSITORY_ERROR" - Connector is facing a repository error + // regarding this item. Change status to REPOSITORY_ERROR state. Item is + // unreserved and rescheduled at a future time determined by exponential + // backoff. + // "REQUEUE" - Call push with REQUEUE only for items that have been + // reserved. This action unreserves the item and resets its available + // time to the wall clock time. + Type string `json:"type,omitempty"` - // ForceSendFields is a list of field names (e.g. "FilterOptions") to + // ForceSendFields is a list of field names (e.g. "ContentHash") 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 @@ -8731,7 +7573,7 @@ type DataSourceRestriction struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "FilterOptions") to include + // NullFields is a list of field names (e.g. "ContentHash") 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 @@ -8740,14705 +7582,24 @@ type DataSourceRestriction struct { NullFields []string `json:"-"` } -func (s *DataSourceRestriction) MarshalJSON() ([]byte, error) { - type NoMethod DataSourceRestriction +func (s *PushItem) MarshalJSON() ([]byte, error) { + type NoMethod PushItem raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// Date: Represents a whole calendar date, for example a date of birth. -// The time of day and time zone are either specified elsewhere or are -// not significant. The date is relative to the Proleptic Gregorian -// Calendar -// (https://en.wikipedia.org/wiki/Proleptic_Gregorian_calendar). The -// date must be a valid calendar date between the year 1 and 9999. -type Date struct { - // Day: Day of month. Must be from 1 to 31 and valid for the year and - // month. - Day int64 `json:"day,omitempty"` - - // Month: Month of date. Must be from 1 to 12. - Month int64 `json:"month,omitempty"` - - // Year: Year of date. Must be from 1 to 9999. - Year int64 `json:"year,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Day") 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. "Day") 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 *Date) MarshalJSON() ([]byte, error) { - type NoMethod Date - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// DateOperatorOptions: Optional. Provides a search operator for date -// properties. Search operators let users restrict the query to specific -// fields relevant to the type of item being searched. -type DateOperatorOptions struct { - // GreaterThanOperatorName: Indicates the operator name required in the - // query in order to isolate the date property using the greater-than - // operator. For example, if greaterThanOperatorName is *closedafter* - // and the property's name is *closeDate*, then queries like - // *closedafter:* show results only where the value of the - // property named *closeDate* is later than **. The operator name - // can only contain lowercase letters (a-z). The maximum length is 32 - // characters. - GreaterThanOperatorName string `json:"greaterThanOperatorName,omitempty"` - - // LessThanOperatorName: Indicates the operator name required in the - // query in order to isolate the date property using the less-than - // operator. For example, if lessThanOperatorName is *closedbefore* and - // the property's name is *closeDate*, then queries like - // *closedbefore:* show results only where the value of the - // property named *closeDate* is earlier than **. The operator - // name can only contain lowercase letters (a-z). The maximum length is - // 32 characters. - LessThanOperatorName string `json:"lessThanOperatorName,omitempty"` - - // OperatorName: Indicates the actual string required in the query in - // order to isolate the date property. For example, suppose an issue - // tracking schema object has a property named *closeDate* that - // specifies an operator with an operatorName of *closedon*. For - // searches on that data, queries like *closedon:* show results - // only where the value of the *closeDate* property matches **. - // By contrast, a search that uses the same ** without an - // operator returns all items where ** matches the value of any - // String properties or text within the content field for the indexed - // datasource. The operator name can only contain lowercase letters - // (a-z). The maximum length is 32 characters. - OperatorName string `json:"operatorName,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "GreaterThanOperatorName") 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. "GreaterThanOperatorName") - // 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 *DateOperatorOptions) MarshalJSON() ([]byte, error) { - type NoMethod DateOperatorOptions - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// DatePropertyOptions: The options for date properties. -type DatePropertyOptions struct { - // OperatorOptions: If set, describes how the date should be used as a - // search operator. - OperatorOptions *DateOperatorOptions `json:"operatorOptions,omitempty"` - - // ForceSendFields is a list of field names (e.g. "OperatorOptions") 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. "OperatorOptions") 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 *DatePropertyOptions) MarshalJSON() ([]byte, error) { - type NoMethod DatePropertyOptions - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -type DateTimePicker struct { - // Label: The label for the field, which is displayed to the user. - Label string `json:"label,omitempty"` - - // Name: The name of the text field which is used in FormInput, and - // uniquely identifies this input. - Name string `json:"name,omitempty"` - - // OnChange: Triggered when the user clicks on the Save, or Clear button - // from the date / time picker dialog. Will only be triggered if the - // value changed as a result of the Save / Clear operation. - OnChange *FormAction `json:"onChange,omitempty"` - - // TimezoneOffsetDate: The number representing the time-zone offset from - // UTC, in minutes. If set, the value_ms_epoch will be displayed in the - // specified time zone. If not set, it will use the user's timezone - // setting in client side. - TimezoneOffsetDate int64 `json:"timezoneOffsetDate,omitempty"` - - // Type: The type of the DateTimePicker. - // - // Possible values: - // "UNSPECIFIED_TYPE" - // "DATE_AND_TIME" - // "DATE_ONLY" - // "TIME_ONLY" - Type string `json:"type,omitempty"` - - // ValueMsEpoch: The value to display which can be the default value - // before user input or previous user input. It is represented in - // milliseconds (Epoch time). - For DATE_AND_TIME type, the full epoch - // value is used. - For DATE_ONLY type, only date of the epoch time is - // used. - For TIME_ONLY type, only time of the epoch time is used. For - // example, you can set epoch time to 3 * 60 * 60 * 1000 to represent - // 3am. - ValueMsEpoch int64 `json:"valueMsEpoch,omitempty,string"` - - // ForceSendFields is a list of field names (e.g. "Label") 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. "Label") 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 *DateTimePicker) MarshalJSON() ([]byte, error) { - type NoMethod DateTimePicker - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// DateValues: List of date values. -type DateValues struct { - Values []*Date `json:"values,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Values") 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. "Values") 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 *DateValues) MarshalJSON() ([]byte, error) { - type NoMethod DateValues - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// DebugOptions: Shared request debug options for all cloudsearch RPC -// methods. -type DebugOptions struct { - // EnableDebugging: If you are asked by Google to help with debugging, - // set this field. Otherwise, ignore this field. - EnableDebugging bool `json:"enableDebugging,omitempty"` - - // ForceSendFields is a list of field names (e.g. "EnableDebugging") 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. "EnableDebugging") 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 *DebugOptions) MarshalJSON() ([]byte, error) { - type NoMethod DebugOptions - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// DeepLinkData: Deep-linking data is used to construct a deep-link URI -// for an activity or frame's embed, such that on click, the user is -// taken to the right place in a mobile app. If the app is not -// installed, the user is taken to the app store. If not on mobile, an -// analogous web uri is used. -type DeepLinkData struct { - // AppId: Application ID (or project ID) from Google API Console. - AppId int64 `json:"appId,omitempty,string"` - - // Client: The data for a Google API Console client is entered by a - // developer during client registration and is stored in - // PackagingService. - Client []*PackagingServiceClient `json:"client,omitempty"` - - // DeepLinkId: The ID for non-URL content. Embeds may either have no - // analogous web presence or prefer a native mobile experience if - // supported. In the case of no web presence, instead of setting the - // "url" field of an embed, such developers will set this field and - // other content fields, e.g. thumbnail, title, description. If set, - // this field is used to construct the deep-link URI. Note that the - // native experience is preferred over the web link and the web link is - // used as a fallback. - DeepLinkId string `json:"deepLinkId,omitempty"` - - // Url: Analogous web presence. Used as desktop fallback or when no - // native link data is present. - Url string `json:"url,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 *DeepLinkData) MarshalJSON() ([]byte, error) { - type NoMethod DeepLinkData - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// DeleteMetadata: A message delete in Dynamite inserts a Babel-only -// item containing this field. This is only inserted for messages before -// the source-of-truth flip. See go/hsc-message-deletions for more -// details. -type DeleteMetadata struct { -} - -type DeleteQueueItemsRequest struct { - // ConnectorName: The name of connector making this call. Format: - // datasources/{source_id}/connectors/{ID} - ConnectorName string `json:"connectorName,omitempty"` - - // DebugOptions: Common debug options. - DebugOptions *DebugOptions `json:"debugOptions,omitempty"` - - // Queue: The name of a queue to delete items from. - Queue string `json:"queue,omitempty"` - - // ForceSendFields is a list of field names (e.g. "ConnectorName") 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. "ConnectorName") 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 *DeleteQueueItemsRequest) MarshalJSON() ([]byte, error) { - type NoMethod DeleteQueueItemsRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -type DeliveryMedium struct { - // MediumType: Describes the medium the cent was sent/received. For - // example, if I receive an SMS via GV, the medium_type will be GV. - // - // Possible values: - // "UNKNOWN_MEDIUM" - // "BABEL_MEDIUM" - // "GOOGLE_VOICE_MEDIUM" - // "LOCAL_SMS_MEDIUM" - MediumType string `json:"mediumType,omitempty"` - - // SelfPhone: In the case of multiple GV/native numbers, this defines - // the exact number to send from. It is used to differentiate mediums - // that have the same type, but different addresses (e.g. two android - // phones). - SelfPhone *VoicePhoneNumber `json:"selfPhone,omitempty"` - - // ForceSendFields is a list of field names (e.g. "MediumType") 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. "MediumType") 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 *DeliveryMedium) MarshalJSON() ([]byte, error) { - type NoMethod DeliveryMedium - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// DisplayedProperty: A reference to a top-level property within the -// object that should be displayed in search results. The values of the -// chosen properties is displayed in the search results along with the -// display label for that property if one is specified. If a display -// label is not specified, only the values is shown. -type DisplayedProperty struct { - // PropertyName: The name of the top-level property as defined in a - // property definition for the object. If the name is not a defined - // property in the schema, an error is given when attempting to update - // the schema. - PropertyName string `json:"propertyName,omitempty"` - - // ForceSendFields is a list of field names (e.g. "PropertyName") 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. "PropertyName") 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 *DisplayedProperty) MarshalJSON() ([]byte, error) { - type NoMethod DisplayedProperty - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -type Divider struct { -} - -type DlpAction struct { - // Possible values: - // "NO_ACTION" - LINT.IfChange - // "BLOCK" - // "AUDIT_ONLY" - // "WARN" - - // LINT.ThenChange(//depot/google3/java/com/google/apps/dynamite/v1/exter - // nal/dlp/ApplicableDlpActionEvaluator.java) - ActionType string `json:"actionType,omitempty"` - - // UnsafeHtmlMessageBody: The custom error message defined by the - // customer administrator. - UnsafeHtmlMessageBody string `json:"unsafeHtmlMessageBody,omitempty"` - - // 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 *DlpAction) MarshalJSON() ([]byte, error) { - type NoMethod DlpAction - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// DlpMessageScanRecord: A summary of a DLP scan. This is a combination -// summary that contains both scan on message and scan on attachments if -// any. -type DlpMessageScanRecord struct { - // AttachmentScanSummary: Summaries of the attachment scan if any. - AttachmentScanSummary *DlpScanSummary `json:"attachmentScanSummary,omitempty"` - - // DlpAction: The applied action. - DlpAction *DlpAction `json:"dlpAction,omitempty"` - - // MessageScanSummary: Summaries of the message scan. - MessageScanSummary *DlpScanSummary `json:"messageScanSummary,omitempty"` - - // ScanOutcome: The DLP scan outcome for the message. - // - // Possible values: - // "SCAN_UNKNOWN_OUTCOME" - // "SCAN_SUCCEEDED_NO_VIOLATION" - This means no violation is detected - // on the given message/attachment. - // "SCAN_SUCCEEDED_BLOCK" - Violation is detected. The - // message/attachment will be blocked (or deleted if this happens in - // failure recovery), the user will be warned, and the violation will be - // logged to BIP. - // "SCAN_SUCCEEDED_WARN" - Violation is detected. The user will be - // warned, and the violation will be logged to BIP. - // "SCAN_SUCCEEDED_AUDIT_ONLY" - Violation is detected and will be - // logged to BIP (no user-facing action performed). - // "SCAN_FAILURE_EXCEPTION" - Rule fetch and evaluation were attempted - // but an exception occurred. - // "SCAN_FAILURE_RULE_FETCH_FAILED" - Rule fetch was attempted but - // failed, so rule evaluation could not be performed. - // "SCAN_FAILURE_TIMEOUT" - Rule fetch and evaluation were attempted - // but the scanning timed out. - // "SCAN_FAILURE_ALL_RULES_FAILED" - Rule fetch completed and - // evaluation were attempted, but all of the rules failed to be - // evaluated. - // "SCAN_FAILURE_ILLEGAL_STATE_FOR_ATTACHMENTS" - An - // IllegalStateException is thrown when executing DLP on attachments. - // This could happen if the space row is missing. - // "SCAN_SKIPPED_EXPERIMENT_DISABLED" - Rule fetch and evaluation is - // skipped because DLP is not enabled for the user. - // "SCAN_SKIPPED_CONSUMER" - Rule fetch and evaluation are skipped - // because the user sending message is consumer. - // "SCAN_SKIPPED_NON_HUMAN_USER" - Rule fetch and evaluation are - // skipped because the user sending message is a non-human user (i.e. a - // bot). - // "SCAN_SKIPPED_NO_MESSAGE" - Rule fetch and evaluation are skipped - // because there is no message to scan. Deprecated: this should not - // happen since there must be message or attachment for DLP scan. - // "SCAN_SKIPPED_USER_ACKNOWLEDGED_WARNING" - Rule fetch and - // evaluation are skipped because the user has acknowledged the warning - // on the message that triggered the Warn violation and sent the message - // anyway. - // "SCAN_SKIPPED_MESSAGE_FROM_UNSUPPORTED_ORIGIN" - Scanning was - // skipped because the message originated from Interop or Babel. - // "SCAN_SKIPPED_MESSAGE_SENT_DURING_SPACE_MIGRATION" - Scanning was - // skipped because the message was sent while the space is in migration - // mode. See go/migration-mode for details. - // "SCAN_RULE_EVALUATION_SKIPPED_NO_RULES_FOUND" - Rule fetch - // happened, but rule evaluation is skipped because no rules were found. - // - // "SCAN_RULE_EVALUATION_SKIPPED_NO_APPLICABLE_RULES_FOR_ACTION_PARAMS" - // - Rule fetch happened, but rule evaluation is skipped because none of - // the rules are applicable to the given action params. Deprecated. Use - // SCAN_RULE_EVALUATION_SKIPPED_NO_APPLICABLE_RULES - // "SCAN_RULE_EVALUATION_SKIPPED_NO_APPLICABLE_RULES_FOR_TRIGGER" - - // Rule fetch happened, but rule evaluation is skipped because none of - // the rules are applicable to the given trigger. Deprecated. Use - // SCAN_RULE_EVALUATION_SKIPPED_NO_APPLICABLE_RULES - // "SCAN_RULE_EVALUATION_SKIPPED_NO_APPLICABLE_RULES" - Rule fetch - // happened, but rule evaluation is skipped because none of the rules - // are applicable. - // "SCAN_RULE_EVALUATION_SKIPPED_CHANGELING_PERMANENT_ERROR" - Rule - // fetch happened, but rule evaluation is skipped because Changeling - // returned permanent failure while converting the attachment to text. - // "SCAN_RULE_EVALUATION_SKIPPED_CHANGELING_EMPTY_RESPONSE" - Rule - // fetch happened, but rule evaluation is skipped because Changeling - // returned an empty response while converting the attachment to text. - // "SCAN_RULE_EVALUATION_SKIPPED_UNSUPPORTED_FILE_TYPE" - Rule fetch - // happened, but rule evaluation is skipped because file type is - // unsupported. - // "SCAN_SUCCEEDED_WITH_FAILURES_NO_VIOLATION" - Rules were fetched - // but some evaluations failed. No violation was found in the rules that - // were successfully evaluated. - // "SCAN_SUCCEEDED_WITH_FAILURES_BLOCK" - Rules were fetched but some - // evaluations failed. A blocking violation was found in the rules that - // were successfully evaluated. The message/attachment will be blocked, - // the user will be notified, and the violation will be logged to BIP. A - // blocking violation takes precedence over all other violation types. - // "SCAN_SUCCEEDED_WITH_FAILURES_WARN" - Rules were fetched but some - // evaluations failed. A warn violation was found in the rules that were - // successfully evaluated. The user will be warned, and the violation - // will be logged to BIP. - // "SCAN_SUCCEEDED_WITH_FAILURES_AUDIT_ONLY" - Rules were fetched but - // some evaluations failed. An audit-only violation was found in the - // rules that were successfully evaluated. The violation will be logged - // to BIP (no user-facing action performed). - ScanOutcome string `json:"scanOutcome,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "AttachmentScanSummary") 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. "AttachmentScanSummary") 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 *DlpMessageScanRecord) MarshalJSON() ([]byte, error) { - type NoMethod DlpMessageScanRecord - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// DlpScanSummary: A summary of a DLP scan event. This is a summary and -// should contain the minimum amount of data required to identify and -// process DLP scans. It is written to Starcast and encoded & returned -// to the client on attachment upload. -type DlpScanSummary struct { - DlpAction *DlpAction `json:"dlpAction,omitempty"` - - // ScanId: The scan ID of the corresponding {@link - // DlpViolationScanRecord} in the {@link EphemeralDlpScans} Spanner - // table. This can be used to fetch additional details about the scan, - // e.g. for audit logging. - ScanId string `json:"scanId,omitempty"` - - // ScanNotApplicableForContext: Indicates that was no attempt to scan a - // message or attachment because it was not applicable in the given - // context (e.g. atomic mutuate). If this is true, scan_outcome should - // not be set. This flag is used to identify messages that DLP did not - // attempt to scan for monitoring scan coverage. Contents that DLP - // attempted to scan but skipped can be identified by - // DlpScanOutcome.SCAN_SKIPPED_* reasons. DEPRECATED: The prober can - // determine this from the context. - ScanNotApplicableForContext bool `json:"scanNotApplicableForContext,omitempty"` - - // ScanOutcome: The outcome of a DLP Scan. If this is set, - // scan_not_applicable_for_context should not be true. - // - // Possible values: - // "SCAN_UNKNOWN_OUTCOME" - // "SCAN_SUCCEEDED_NO_VIOLATION" - This means no violation is detected - // on the given message/attachment. - // "SCAN_SUCCEEDED_BLOCK" - Violation is detected. The - // message/attachment will be blocked (or deleted if this happens in - // failure recovery), the user will be warned, and the violation will be - // logged to BIP. - // "SCAN_SUCCEEDED_WARN" - Violation is detected. The user will be - // warned, and the violation will be logged to BIP. - // "SCAN_SUCCEEDED_AUDIT_ONLY" - Violation is detected and will be - // logged to BIP (no user-facing action performed). - // "SCAN_FAILURE_EXCEPTION" - Rule fetch and evaluation were attempted - // but an exception occurred. - // "SCAN_FAILURE_RULE_FETCH_FAILED" - Rule fetch was attempted but - // failed, so rule evaluation could not be performed. - // "SCAN_FAILURE_TIMEOUT" - Rule fetch and evaluation were attempted - // but the scanning timed out. - // "SCAN_FAILURE_ALL_RULES_FAILED" - Rule fetch completed and - // evaluation were attempted, but all of the rules failed to be - // evaluated. - // "SCAN_FAILURE_ILLEGAL_STATE_FOR_ATTACHMENTS" - An - // IllegalStateException is thrown when executing DLP on attachments. - // This could happen if the space row is missing. - // "SCAN_SKIPPED_EXPERIMENT_DISABLED" - Rule fetch and evaluation is - // skipped because DLP is not enabled for the user. - // "SCAN_SKIPPED_CONSUMER" - Rule fetch and evaluation are skipped - // because the user sending message is consumer. - // "SCAN_SKIPPED_NON_HUMAN_USER" - Rule fetch and evaluation are - // skipped because the user sending message is a non-human user (i.e. a - // bot). - // "SCAN_SKIPPED_NO_MESSAGE" - Rule fetch and evaluation are skipped - // because there is no message to scan. Deprecated: this should not - // happen since there must be message or attachment for DLP scan. - // "SCAN_SKIPPED_USER_ACKNOWLEDGED_WARNING" - Rule fetch and - // evaluation are skipped because the user has acknowledged the warning - // on the message that triggered the Warn violation and sent the message - // anyway. - // "SCAN_SKIPPED_MESSAGE_FROM_UNSUPPORTED_ORIGIN" - Scanning was - // skipped because the message originated from Interop or Babel. - // "SCAN_SKIPPED_MESSAGE_SENT_DURING_SPACE_MIGRATION" - Scanning was - // skipped because the message was sent while the space is in migration - // mode. See go/migration-mode for details. - // "SCAN_RULE_EVALUATION_SKIPPED_NO_RULES_FOUND" - Rule fetch - // happened, but rule evaluation is skipped because no rules were found. - // - // "SCAN_RULE_EVALUATION_SKIPPED_NO_APPLICABLE_RULES_FOR_ACTION_PARAMS" - // - Rule fetch happened, but rule evaluation is skipped because none of - // the rules are applicable to the given action params. Deprecated. Use - // SCAN_RULE_EVALUATION_SKIPPED_NO_APPLICABLE_RULES - // "SCAN_RULE_EVALUATION_SKIPPED_NO_APPLICABLE_RULES_FOR_TRIGGER" - - // Rule fetch happened, but rule evaluation is skipped because none of - // the rules are applicable to the given trigger. Deprecated. Use - // SCAN_RULE_EVALUATION_SKIPPED_NO_APPLICABLE_RULES - // "SCAN_RULE_EVALUATION_SKIPPED_NO_APPLICABLE_RULES" - Rule fetch - // happened, but rule evaluation is skipped because none of the rules - // are applicable. - // "SCAN_RULE_EVALUATION_SKIPPED_CHANGELING_PERMANENT_ERROR" - Rule - // fetch happened, but rule evaluation is skipped because Changeling - // returned permanent failure while converting the attachment to text. - // "SCAN_RULE_EVALUATION_SKIPPED_CHANGELING_EMPTY_RESPONSE" - Rule - // fetch happened, but rule evaluation is skipped because Changeling - // returned an empty response while converting the attachment to text. - // "SCAN_RULE_EVALUATION_SKIPPED_UNSUPPORTED_FILE_TYPE" - Rule fetch - // happened, but rule evaluation is skipped because file type is - // unsupported. - // "SCAN_SUCCEEDED_WITH_FAILURES_NO_VIOLATION" - Rules were fetched - // but some evaluations failed. No violation was found in the rules that - // were successfully evaluated. - // "SCAN_SUCCEEDED_WITH_FAILURES_BLOCK" - Rules were fetched but some - // evaluations failed. A blocking violation was found in the rules that - // were successfully evaluated. The message/attachment will be blocked, - // the user will be notified, and the violation will be logged to BIP. A - // blocking violation takes precedence over all other violation types. - // "SCAN_SUCCEEDED_WITH_FAILURES_WARN" - Rules were fetched but some - // evaluations failed. A warn violation was found in the rules that were - // successfully evaluated. The user will be warned, and the violation - // will be logged to BIP. - // "SCAN_SUCCEEDED_WITH_FAILURES_AUDIT_ONLY" - Rules were fetched but - // some evaluations failed. An audit-only violation was found in the - // rules that were successfully evaluated. The violation will be logged - // to BIP (no user-facing action performed). - ScanOutcome string `json:"scanOutcome,omitempty"` - - // ScanTrigger: The event that triggered the scan. This corresponds to - // the rule trigger configured in admin console and maps to the - // different things that can be scanned. - // - // Possible values: - // "UNKNOWN_TRIGGER_TYPE" - LINT.IfChange - // "MESSAGE_SENT" - // "ATTACHMENT_UPLOADED" - - // LINT.ThenChange(//depot/google3/java/com/google/apps/dynamite/v1/exter - // nal/dlp/DlpTriggerInfo.java) - ScanTrigger string `json:"scanTrigger,omitempty"` - - // ForceSendFields is a list of field names (e.g. "DlpAction") 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. "DlpAction") 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 *DlpScanSummary) MarshalJSON() ([]byte, error) { - type NoMethod DlpScanSummary - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -type DmId struct { - // DmId: Unique server assigned Id, per Direct Message Space. - DmId string `json:"dmId,omitempty"` - - // ForceSendFields is a list of field names (e.g. "DmId") 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. "DmId") 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 *DmId) MarshalJSON() ([]byte, error) { - type NoMethod DmId - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// DocumentInfo: Information on a document attached to an active -// conference. -type DocumentInfo struct { - // WhiteboardInfo: A whiteboard document. - WhiteboardInfo *WhiteboardInfo `json:"whiteboardInfo,omitempty"` - - // ForceSendFields is a list of field names (e.g. "WhiteboardInfo") 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. "WhiteboardInfo") 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 *DocumentInfo) MarshalJSON() ([]byte, error) { - type NoMethod DocumentInfo - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// DoubleOperatorOptions: Used to provide a search operator for double -// properties. This is optional. Search operators let users restrict the -// query to specific fields relevant to the type of item being searched. -type DoubleOperatorOptions struct { - // OperatorName: Indicates the operator name required in the query in - // order to use the double property in sorting or as a facet. The - // operator name can only contain lowercase letters (a-z). The maximum - // length is 32 characters. - OperatorName string `json:"operatorName,omitempty"` - - // ForceSendFields is a list of field names (e.g. "OperatorName") 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. "OperatorName") 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 *DoubleOperatorOptions) MarshalJSON() ([]byte, error) { - type NoMethod DoubleOperatorOptions - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// DoublePropertyOptions: The options for double properties. -type DoublePropertyOptions struct { - // OperatorOptions: If set, describes how the double should be used as a - // search operator. - OperatorOptions *DoubleOperatorOptions `json:"operatorOptions,omitempty"` - - // ForceSendFields is a list of field names (e.g. "OperatorOptions") 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. "OperatorOptions") 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 *DoublePropertyOptions) MarshalJSON() ([]byte, error) { - type NoMethod DoublePropertyOptions - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// DoubleValues: List of double values. -type DoubleValues struct { - Values []float64 `json:"values,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Values") 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. "Values") 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 *DoubleValues) MarshalJSON() ([]byte, error) { - type NoMethod DoubleValues - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -func (s *DoubleValues) UnmarshalJSON(data []byte) error { - type NoMethod DoubleValues - var s1 struct { - Values []gensupport.JSONFloat64 `json:"values"` - *NoMethod - } - s1.NoMethod = (*NoMethod)(s) - if err := json.Unmarshal(data, &s1); err != nil { - return err - } - s.Values = make([]float64, len(s1.Values)) - for i := range s1.Values { - s.Values[i] = float64(s1.Values[i]) - } - return nil -} - -type DriveClientActionMarkup struct { - RequestFileScope *RequestFileScope `json:"requestFileScope,omitempty"` - - // ForceSendFields is a list of field names (e.g. "RequestFileScope") 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. "RequestFileScope") 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 *DriveClientActionMarkup) MarshalJSON() ([]byte, error) { - type NoMethod DriveClientActionMarkup - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// DriveFollowUpRestrict: Drive follow-up search restricts (e.g. -// "followup:suggestions"). -type DriveFollowUpRestrict struct { - // Possible values: - // "UNSPECIFIED" - // "FOLLOWUP_SUGGESTIONS" - // "FOLLOWUP_ACTION_ITEMS" - Type string `json:"type,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Type") 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. "Type") 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 *DriveFollowUpRestrict) MarshalJSON() ([]byte, error) { - type NoMethod DriveFollowUpRestrict - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// DriveLocationRestrict: Drive location search restricts (e.g. -// "is:starred"). -type DriveLocationRestrict struct { - // Possible values: - // "UNSPECIFIED" - // "TRASHED" - // "STARRED" - Type string `json:"type,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Type") 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. "Type") 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 *DriveLocationRestrict) MarshalJSON() ([]byte, error) { - type NoMethod DriveLocationRestrict - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// DriveMetadata: Annotation metadata for Drive artifacts. -type DriveMetadata struct { - AclFixRequest *AclFixRequest `json:"aclFixRequest,omitempty"` - - AclFixStatus *AclFixStatus `json:"aclFixStatus,omitempty"` - - // CanEdit: Can the current user edit this resource - CanEdit bool `json:"canEdit,omitempty"` - - // CanShare: Can the current user share this resource - CanShare bool `json:"canShare,omitempty"` - - // CanView: Can the current user view this resource - CanView bool `json:"canView,omitempty"` - - // DriveAction: DriveAction for organizing this file in Drive. If the - // user does not have access to the Drive file, the value will be - // DriveAction.DRIVE_ACTION_UNSPECIFIED. This field is only set when - // part of a FileResult in a ListFilesResponse. - // - // Possible values: - // "DRIVE_ACTION_UNSPECIFIED" - No organize action should be shown. - // "ADD_TO_DRIVE" - Show "Add to Drive" button, for adding file that - // doesn't exist in Drive to Drive. Note that deleted Drive files that - // still exist (i.e. in your Trash) will still be ORGANIZE (this is - // consistent with Gmail Drive attachments). - // "ORGANIZE" - Show "Move" button, for organizing a Drive file the - // user has permission to move. - // "ADD_SHORTCUT" - Show "Add shortcut" button, for adding a shortcut - // to a Drive file the user does not have permission to move. - // "ADD_ANOTHER_SHORTCUT" - Show "Add another shortcut" button, for - // Drive files the user has already created a shortcut to. - DriveAction string `json:"driveAction,omitempty"` - - // Possible values: - // "DRIVE_STATE_UNSPECIFIED" - Default value - // "IN_MY_DRIVE" - File in My Drive - // "IN_TEAM_DRIVE" - File in Team Drive - // "SHARED_IN_DRIVE" - File in someone else's Drive, but is shared - // with the current user - // "NOT_IN_DRIVE" - File not in drive - DriveState string `json:"driveState,omitempty"` - - // EmbedUrl: Output only. Trusted Resource URL for drive file embedding. - EmbedUrl *TrustedResourceUrlProto `json:"embedUrl,omitempty"` - - // EncryptedDocId: Indicates whether the Drive link contains an - // encrypted doc ID. If true, Dynamite should not attempt to query the - // doc ID in Drive Service. See go/docid-encryption for details. - EncryptedDocId bool `json:"encryptedDocId,omitempty"` - - // EncryptedResourceKey: This is deprecated and unneeded. TODO - // (b/182479059): Remove this. - EncryptedResourceKey string `json:"encryptedResourceKey,omitempty"` - - // ExternalMimetype: External mimetype of the Drive Resource (Useful for - // creating Drive URL) See: http://b/35219462 - ExternalMimetype string `json:"externalMimetype,omitempty"` - - // Id: Drive resource ID of the artifact. - Id string `json:"id,omitempty"` - - // IsDownloadRestricted: Deprecated. Whether the setting to restrict - // downloads is enabled for this file. This was previously used to - // determine whether to hide the download and print buttons in the UI, - // but is no longer used by clients, because Projector now independently - // queries Drive to ensure that we have the most up-to-date value. - IsDownloadRestricted bool `json:"isDownloadRestricted,omitempty"` - - // IsOwner: If the current user is the Drive file's owner. The field is - // currently only set for Annotations for the ListFiles action (as - // opposed to fetching Topics/Messages with Drive annotations). - IsOwner bool `json:"isOwner,omitempty"` - - // LegacyUploadMetadata: Only present if this DriveMetadata is converted - // from an UploadMetadata. - LegacyUploadMetadata *LegacyUploadMetadata `json:"legacyUploadMetadata,omitempty"` - - // Mimetype: Mimetype of the Drive Resource - Mimetype string `json:"mimetype,omitempty"` - - // OrganizationDisplayName: The display name of the organization owning - // the Drive item. - OrganizationDisplayName string `json:"organizationDisplayName,omitempty"` - - // ShortcutAuthorizedItemId: Shortcut ID of this drive file in the - // shared drive, which is associated with a named room this file was - // shared in. Shortcuts will not be created for DMs or unnamed rooms. - // This is populated after the DriveMetadata is migrated to shared - // drive. go/chat-shared-drive-uploads. - ShortcutAuthorizedItemId *AuthorizedItemId `json:"shortcutAuthorizedItemId,omitempty"` - - // ShouldNotRender: If this field is set to true, server should still - // contact external backends to get metadata for search but clients - // should not render this chip. - ShouldNotRender bool `json:"shouldNotRender,omitempty"` - - // ThumbnailHeight: Thumbnail image of the Drive Resource - ThumbnailHeight int64 `json:"thumbnailHeight,omitempty"` - - // ThumbnailUrl: Thumbnail image of the Drive Resource - ThumbnailUrl string `json:"thumbnailUrl,omitempty"` - - // ThumbnailWidth: Thumbnail image of the Drive Resource - ThumbnailWidth int64 `json:"thumbnailWidth,omitempty"` - - // Title: Title of the Drive Resource - Title string `json:"title,omitempty"` - - // UrlFragment: Url string fragment that generally indicates the - // specific location in the linked file. Example: #header=h.123abc456. - // If the fragment is not present this will not be present and therefore - // default to an empty string. The "#" will not be included. - UrlFragment string `json:"urlFragment,omitempty"` - - // WrappedResourceKey: This is considered SPII and should not be logged. - WrappedResourceKey *WrappedResourceKey `json:"wrappedResourceKey,omitempty"` - - // ForceSendFields is a list of field names (e.g. "AclFixRequest") 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. "AclFixRequest") 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 *DriveMetadata) MarshalJSON() ([]byte, error) { - type NoMethod DriveMetadata - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// DriveMimeTypeRestrict: Drive mime-type search restricts (e.g. -// "type:pdf"). -type DriveMimeTypeRestrict struct { - // Possible values: - // "UNSPECIFIED" - // "PDF" - // "DOCUMENT" - // "PRESENTATION" - // "SPREADSHEET" - // "FORM" - // "DRAWING" - // "SCRIPT" - // "MAP" - // "IMAGE" - // "AUDIO" - // "VIDEO" - // "FOLDER" - // "ARCHIVE" - // "SITE" - Type string `json:"type,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Type") 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. "Type") 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 *DriveMimeTypeRestrict) MarshalJSON() ([]byte, error) { - type NoMethod DriveMimeTypeRestrict - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// DriveTimeSpanRestrict: The time span search restrict (e.g. -// "after:2017-09-11 before:2017-09-12"). -type DriveTimeSpanRestrict struct { - // Possible values: - // "UNSPECIFIED" - // "TODAY" - // "YESTERDAY" - // "LAST_7_DAYS" - // "LAST_30_DAYS" - Not Enabled - // "LAST_90_DAYS" - Not Enabled - Type string `json:"type,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Type") 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. "Type") 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 *DriveTimeSpanRestrict) MarshalJSON() ([]byte, error) { - type NoMethod DriveTimeSpanRestrict - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// DynamiteMessagesScoringInfo: This is the proto for holding message -// level scoring information. This data is used for logging in query-api -// server and for testing purposes. -type DynamiteMessagesScoringInfo struct { - CommonContactCount int64 `json:"commonContactCount,omitempty,string"` - - CommonCountToContactListCountRatio float64 `json:"commonCountToContactListCountRatio,omitempty"` - - CommonCountToMembershipCountRatio float64 `json:"commonCountToMembershipCountRatio,omitempty"` - - CreatorGaiaId int64 `json:"creatorGaiaId,omitempty,string"` - - CreatorInSearcherContactList bool `json:"creatorInSearcherContactList,omitempty"` - - CrowdingMultiplier float64 `json:"crowdingMultiplier,omitempty"` - - DasContactCount int64 `json:"dasContactCount,omitempty,string"` - - FinalScore float64 `json:"finalScore,omitempty"` - - FreshnessScore float64 `json:"freshnessScore,omitempty"` - - JoinedSpaceAffinityScore float64 `json:"joinedSpaceAffinityScore,omitempty"` - - LastReadTimestampAgeInDays float64 `json:"lastReadTimestampAgeInDays,omitempty"` - - MessageAgeInDays float64 `json:"messageAgeInDays,omitempty"` - - MessageSenderAffinityScore float64 `json:"messageSenderAffinityScore,omitempty"` - - SpaceId int64 `json:"spaceId,omitempty,string"` - - SpaceMembershipCount int64 `json:"spaceMembershipCount,omitempty,string"` - - TopicalityScore float64 `json:"topicalityScore,omitempty"` - - UnjoinedSpaceAffinityScore float64 `json:"unjoinedSpaceAffinityScore,omitempty"` - - // ForceSendFields is a list of field names (e.g. "CommonContactCount") - // 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. "CommonContactCount") 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 *DynamiteMessagesScoringInfo) MarshalJSON() ([]byte, error) { - type NoMethod DynamiteMessagesScoringInfo - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -func (s *DynamiteMessagesScoringInfo) UnmarshalJSON(data []byte) error { - type NoMethod DynamiteMessagesScoringInfo - var s1 struct { - CommonCountToContactListCountRatio gensupport.JSONFloat64 `json:"commonCountToContactListCountRatio"` - CommonCountToMembershipCountRatio gensupport.JSONFloat64 `json:"commonCountToMembershipCountRatio"` - CrowdingMultiplier gensupport.JSONFloat64 `json:"crowdingMultiplier"` - FinalScore gensupport.JSONFloat64 `json:"finalScore"` - FreshnessScore gensupport.JSONFloat64 `json:"freshnessScore"` - JoinedSpaceAffinityScore gensupport.JSONFloat64 `json:"joinedSpaceAffinityScore"` - LastReadTimestampAgeInDays gensupport.JSONFloat64 `json:"lastReadTimestampAgeInDays"` - MessageAgeInDays gensupport.JSONFloat64 `json:"messageAgeInDays"` - MessageSenderAffinityScore gensupport.JSONFloat64 `json:"messageSenderAffinityScore"` - TopicalityScore gensupport.JSONFloat64 `json:"topicalityScore"` - UnjoinedSpaceAffinityScore gensupport.JSONFloat64 `json:"unjoinedSpaceAffinityScore"` - *NoMethod - } - s1.NoMethod = (*NoMethod)(s) - if err := json.Unmarshal(data, &s1); err != nil { - return err - } - s.CommonCountToContactListCountRatio = float64(s1.CommonCountToContactListCountRatio) - s.CommonCountToMembershipCountRatio = float64(s1.CommonCountToMembershipCountRatio) - s.CrowdingMultiplier = float64(s1.CrowdingMultiplier) - s.FinalScore = float64(s1.FinalScore) - s.FreshnessScore = float64(s1.FreshnessScore) - s.JoinedSpaceAffinityScore = float64(s1.JoinedSpaceAffinityScore) - s.LastReadTimestampAgeInDays = float64(s1.LastReadTimestampAgeInDays) - s.MessageAgeInDays = float64(s1.MessageAgeInDays) - s.MessageSenderAffinityScore = float64(s1.MessageSenderAffinityScore) - s.TopicalityScore = float64(s1.TopicalityScore) - s.UnjoinedSpaceAffinityScore = float64(s1.UnjoinedSpaceAffinityScore) - return nil -} - -// DynamiteSpacesScoringInfo: This is the proto for holding space level -// scoring information. This data is used for logging in query-api -// server and for testing purposes. -type DynamiteSpacesScoringInfo struct { - AffinityScore float64 `json:"affinityScore,omitempty"` - - CommonContactCountAffinityScore float64 `json:"commonContactCountAffinityScore,omitempty"` - - ContactsIntersectionCount float64 `json:"contactsIntersectionCount,omitempty"` - - FinalScore float64 `json:"finalScore,omitempty"` - - FreshnessScore float64 `json:"freshnessScore,omitempty"` - - JoinedSpacesAffinityScore float64 `json:"joinedSpacesAffinityScore,omitempty"` - - LastMessagePostedTimestampSecs int64 `json:"lastMessagePostedTimestampSecs,omitempty,string"` - - LastReadTimestampSecs int64 `json:"lastReadTimestampSecs,omitempty,string"` - - MemberCountScore float64 `json:"memberCountScore,omitempty"` - - MemberMetadataCount float64 `json:"memberMetadataCount,omitempty"` - - MessageScore float64 `json:"messageScore,omitempty"` - - NumAucContacts int64 `json:"numAucContacts,omitempty,string"` - - SmallContactListAffinityScore float64 `json:"smallContactListAffinityScore,omitempty"` - - SmallUnjoinedSpacesAffinityScore float64 `json:"smallUnjoinedSpacesAffinityScore,omitempty"` - - SpaceAgeInDays float64 `json:"spaceAgeInDays,omitempty"` - - SpaceCreationTimestampSecs int64 `json:"spaceCreationTimestampSecs,omitempty,string"` - - TopicalityScore float64 `json:"topicalityScore,omitempty"` - - // ForceSendFields is a list of field names (e.g. "AffinityScore") 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. "AffinityScore") 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 *DynamiteSpacesScoringInfo) MarshalJSON() ([]byte, error) { - type NoMethod DynamiteSpacesScoringInfo - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -func (s *DynamiteSpacesScoringInfo) UnmarshalJSON(data []byte) error { - type NoMethod DynamiteSpacesScoringInfo - var s1 struct { - AffinityScore gensupport.JSONFloat64 `json:"affinityScore"` - CommonContactCountAffinityScore gensupport.JSONFloat64 `json:"commonContactCountAffinityScore"` - ContactsIntersectionCount gensupport.JSONFloat64 `json:"contactsIntersectionCount"` - FinalScore gensupport.JSONFloat64 `json:"finalScore"` - FreshnessScore gensupport.JSONFloat64 `json:"freshnessScore"` - JoinedSpacesAffinityScore gensupport.JSONFloat64 `json:"joinedSpacesAffinityScore"` - MemberCountScore gensupport.JSONFloat64 `json:"memberCountScore"` - MemberMetadataCount gensupport.JSONFloat64 `json:"memberMetadataCount"` - MessageScore gensupport.JSONFloat64 `json:"messageScore"` - SmallContactListAffinityScore gensupport.JSONFloat64 `json:"smallContactListAffinityScore"` - SmallUnjoinedSpacesAffinityScore gensupport.JSONFloat64 `json:"smallUnjoinedSpacesAffinityScore"` - SpaceAgeInDays gensupport.JSONFloat64 `json:"spaceAgeInDays"` - TopicalityScore gensupport.JSONFloat64 `json:"topicalityScore"` - *NoMethod - } - s1.NoMethod = (*NoMethod)(s) - if err := json.Unmarshal(data, &s1); err != nil { - return err - } - s.AffinityScore = float64(s1.AffinityScore) - s.CommonContactCountAffinityScore = float64(s1.CommonContactCountAffinityScore) - s.ContactsIntersectionCount = float64(s1.ContactsIntersectionCount) - s.FinalScore = float64(s1.FinalScore) - s.FreshnessScore = float64(s1.FreshnessScore) - s.JoinedSpacesAffinityScore = float64(s1.JoinedSpacesAffinityScore) - s.MemberCountScore = float64(s1.MemberCountScore) - s.MemberMetadataCount = float64(s1.MemberMetadataCount) - s.MessageScore = float64(s1.MessageScore) - s.SmallContactListAffinityScore = float64(s1.SmallContactListAffinityScore) - s.SmallUnjoinedSpacesAffinityScore = float64(s1.SmallUnjoinedSpacesAffinityScore) - s.SpaceAgeInDays = float64(s1.SpaceAgeInDays) - s.TopicalityScore = float64(s1.TopicalityScore) - return nil -} - -// EditMetadata: A message edit in Dynamite inserts a Babel-only item -// containing this field. -type EditMetadata struct { -} - -type EditorClientActionMarkup struct { - RequestFileScopeForActiveDocument *RequestFileScopeForActiveDocument `json:"requestFileScopeForActiveDocument,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "RequestFileScopeForActiveDocument") 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. - // "RequestFileScopeForActiveDocument") 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 *EditorClientActionMarkup) MarshalJSON() ([]byte, error) { - type NoMethod EditorClientActionMarkup - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// EmailAddress: A person's email address. -type EmailAddress struct { - // CustomType: If the value of type is custom, this property contains - // the custom type string. - CustomType string `json:"customType,omitempty"` - - // EmailAddress: The email address. - EmailAddress string `json:"emailAddress,omitempty"` - - // EmailUrl: The URL to send email. - EmailUrl string `json:"emailUrl,omitempty"` - - // Primary: Indicates if this is the user's primary email. Only one - // entry can be marked as primary. - Primary bool `json:"primary,omitempty"` - - // Type: The type of the email account. Acceptable values are: "custom", - // "home", "other", "work". - Type string `json:"type,omitempty"` - - // ForceSendFields is a list of field names (e.g. "CustomType") 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. "CustomType") 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 *EmailAddress) MarshalJSON() ([]byte, error) { - type NoMethod EmailAddress - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// EmailOwnerProto: Represents a verified owner of the given email -// address. Note that a single address may have many owners, and a -// single user may own many addresses. (All lower-case, in display form -// -- see com.google.gaia.client.GaiaEmail) -type EmailOwnerProto struct { - Email string `json:"email,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 *EmailOwnerProto) MarshalJSON() ([]byte, error) { - type NoMethod EmailOwnerProto - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// EmbedClientItem: Represents an embedded object in an update. This is -// a wrapper class that can contain a single specific item proto in an -// extension field. Think of it as a base class like `Message` in Java. -// Each item proto must declare that it extends this proto: message -// ExampleObject { option (item_type) = EXAMPLE_OBJECT; extend -// EmbedClientItem { optional ExampleObject example_object = ; } } See -// go/es-embeds for details. -type EmbedClientItem struct { - // CanonicalId: The canonical ID of the embed. If absent, the canonical - // ID is equal to the ID; if present, then the canonical ID represents - // an "equivalence class" of embeds which really refer to the same - // object. (For example, the URLs http://www.foo.com/ and - // http://foo.com/ refer to the same object) This field may be updated - // periodically by background processes. - CanonicalId string `json:"canonicalId,omitempty"` - - // DeepLinkData: Deep-linking data to take the user to the right place - // in a mobile app. This is only used for preview and attribution. Links - // that are specific to a given embed type should live on that specific - // embed's proto by using Link. See - // http://goto.google.com/mariana-design. - DeepLinkData *DeepLinkData `json:"deepLinkData,omitempty"` - - // Id: The ID of the embed. This corresponds to the schema.org ID, as - // represented in the ItemScope.id field. - Id string `json:"id,omitempty"` - - // Provenance: The provenance of the embed, populated when the embed - // originated from a web fetch. The provenance captures information - // about the web page the embed had originated, like the URL that was - // retrieved and the retrieved URL's canonical form. This is useful in - // the case where the URL shared by the URL redirects (e.g., in the case - // of a shortened URL). - Provenance *Provenance `json:"provenance,omitempty"` - - // RenderId: The ID used to identify the embed during rendering. This - // field will match ID, if set, otherwise it will be the ID of the - // parent activity. This field is only populated on the server for - // client use and is not persisted to storage. - RenderId string `json:"renderId,omitempty"` - - // Signature: Signature of the embed, used for verification. - Signature string `json:"signature,omitempty"` - - // TransientData: Transient generic data that will not be saved on the - // server. - TransientData *TransientData `json:"transientData,omitempty"` - - // Type: The first value in `type` determines which extension field will - // be set. When creating an EmbedClientItem, you only need to set the - // first (primary) type in this field. When the server receives the - // item, it will populate the full type list using the parent - // annotations in the ItemType enum. - // - // Possible values: - // "UNKNOWN" - Largely deprecated, effectively an error condition and - // should not be in storage. - // "ACTION_V2" - Embeds V2 types - // "ADD_ACTION_V2" - // "AGGREGATE_RATING_V2" - // "ARTICLE_V2" - // "ASSESS_ACTION_V2" - // "AUDIO_OBJECT_V2" - // "BASIC_INTERACTION_V2" - // "BLOG_POSTING_V2" - // "BLOG_V2" - // "BOOK_V2" - // "BUY_ACTION_V2" - // "CHECK_IN_ACTION_V2" - The action of checking in, as opposed to a - // "check-in". - // "CHECKIN_V2" - // "COLLEXION_V2" - // "COMMENT_ACTION_V2" - The act of commenting, which might result in - // a comment. - // "COMMENT_V2" - // "COMMUNICATE_ACTION_V2" - // "CONSUME_ACTION_V2" - // "CREATE_ACTION_V2" - // "CREATIVE_WORK_V2" - // "DISCOVER_ACTION_V2" - // "DOCUMENT_OBJECT_V2" - // "DRAWING_OBJECT_V2" - // "DRIVE_OBJECT_V2" - // "EMOTISHARE_V2" - // "ENTRY_POINT_V2" - // "EVENT_TIME_V2" - // "EVENT_V2" - // "FILE_OBJECT_V2" - // "FIND_ACTION_V2" - // "FINANCIAL_QUOTE_V2" - // "FORM_OBJECT_V2" - // "GEO_COORDINATES_V2" - // "GOOGLE_OFFER_V2" - // "HANGOUT_CHAT_MESSAGE" - // "HANGOUT_QUOTE" - // "HANGOUT_V2" - // "HOA_PLUS_EVENT_V2" - // "IMAGE_OBJECT_V2" - // "INTERACT_ACTION_V2" - // "INTERACTION_V2" - // "LISTEN_ACTION_V2" - // "LOCAL_BUSINESS_V2" - // "LOCAL_PLUS_PHOTO_ALBUM_V2" - // "MAGAZINE_V2" - // "MEDIA_OBJECT_V2" - // "MOBILE_APPLICATION_V2" - // "MOVIE_V2" - // "MUSIC_ALBUM_V2" - // "MUSIC_GROUP_V2" - // "MUSIC_PLAYLIST_V2" - // "MUSIC_RECORDING_V2" - // "NEWS_ARTICLE_V2" - // "OFFER_V2" - // "ORGANIZATION_V2" - // "ORGANIZE_ACTION_V2" - // "PERSON_V2" - // "PLACE_REVIEW_V2" - // "PLACE_V2" - // "PLAN_ACTION_V2" - // "PLAY_MUSIC_ALBUM_V2" - // "PLAY_MUSIC_TRACK_V2" - // "PLAY_OBJECT_V2" - // "PLUS_AUDIO_V2" - // "PLUS_EVENT_V2" - // "PLUS_MEDIA_COLLECTION_V2" - // "PLUS_MEDIA_OBJECT_V2" - // "PLUS_PAGE_V2" - // "PLUS_PHOTOS_ADDED_TO_COLLECTION_V2" - // "PLUS_PHOTO_ALBUM_V2" - // "PLUS_PHOTO_COLLECTION_V2" - // "PLUS_PHOTO_V2" - // "PLUS_POST_V2" - // "PLUS_RESHARE_V2" - // "PLUS_SOFTWARE_APPLICATION_V2" - // "POLL_OPTION_V2" - // "POLL_V2" - // "POSTAL_ADDRESS_V2" - // "PRESENTATION_OBJECT_V2" - // "PRODUCT_REVIEW_V2" - // "RATING_V2" - // "REACT_ACTION_V2" - // "RESERVATION_V2" - // "RESERVE_ACTION_V2" - // "REVIEW_V2" - // "REVIEW_ACTION_V2" - // "SOFTWARE_APPLICATION_V2" - // "SPREADSHEET_OBJECT_V2" - // "SQUARE_INVITE_V2" - // "SQUARE_V2" - // "STICKER_V2" - // "STORY_V2" - Boswell story (see goto/boswell) - // "THING_V2" - // "TRADE_ACTION_V2" - // "DEPRECATED_TOUR_OBJECT_V2" - // "TV_EPISODE_V2" - // "TV_SERIES_V2" - // "UPDATE_ACTION_V2" - // "VIEW_ACTION_V2" - // "VIDEO_OBJECT_V2" - // "VIDEO_GALLERY_V2" - // "WANT_ACTION_V2" - // "WEB_PAGE_V2" - // "WRITE_ACTION_V2" - // "YOUTUBE_CHANNEL_V2" - // "GOOGLE_USER_PHOTO_V2" - A photo stored in photo service owned by a - // Google account user. This is distinct from PlusPhoto as it isn't tied - // to GPlus, but is instead intended to be a more general photo tied to - // a google user. - // "GOOGLE_USER_PHOTO_ALBUM" - A photo album in photo service owned by - // a Google account user. This is distinct from PlusPhotoAlbum as it - // isn't tied to GPlus, but is instead intended to be a general photo - // album tied to a google user. - // "GOOGLE_PHOTO_RECIPE" - An embed used to create a single photo in - // photo service. This type is never stored but is used to create a - // GOOGLE_USER_PHOTO_V2 or PLUS_PHOTO_V2 embed. - // "THING" - Embeds V1 types - // "CREATIVE_WORK" - // "EVENT" - // "INTANGIBLE" - // "ORGANIZATION" - // "PERSON" - // "PLACE" - // "PRODUCT" - // "ARTICLE" - CREATIVE_WORK subtypes - // "BLOG_POSTING" - // "NEWS_ARTICLE" - // "SCHOLARLY_ARTICLE" - // "BLOG" - // "BOOK" - // "COMMENT" - // "ITEM_LIST" - // "MAP" - // "MEDIA_OBJECT" - // "AUDIO_OBJECT" - // "IMAGE_OBJECT" - // "MUSIC_VIDEO_OBJECT" - // "VIDEO_OBJECT" - // "MOVIE" - // "MUSIC_PLAYLIST" - // "MUSIC_ALBUM" - // "MUSIC_RECORDING" - // "PAINTING" - // "PHOTOGRAPH" - // "RECIPE" - // "REVIEW" - // "SCULPTURE" - // "SOFTWARE_APPLICATION" - // "MOBILE_APPLICATION" - // "WEB_APPLICATION" - // "TV_EPISODE" - // "TV_SEASON" - // "TV_SERIES" - // "WEB_PAGE" - // "ABOUT_PAGE" - // "CHECKOUT_PAGE" - // "COLLECTION_PAGE" - // "IMAGE_GALLERY" - // "VIDEO_GALLERY" - // "CONTACT_PAGE" - // "ITEM_PAGE" - // "PROFILE_PAGE" - // "SEARCH_RESULTS_PAGE" - // "WEB_PAGE_ELEMENT" - // "SITE_NAVIGATION_ELEMENT" - // "TABLE" - // "WP_AD_BLOCK" - // "WP_FOOTER" - // "WP_HEADER" - // "WP_SIDEBAR" - // "APP_INVITE" - // "EMOTISHARE" - // "BUSINESS_EVENT" - EVENT subtypes - // "CHILDRENS_EVENT" - // "COMEDY_EVENT" - // "DANCE_EVENT" - // "EDUCATION_EVENT" - // "FESTIVAL" - // "FOOD_EVENT" - // "LITERARY_EVENT" - // "MUSIC_EVENT" - // "SALE_EVENT" - // "SOCIAL_EVENT" - // "SPORTS_EVENT" - // "THEATER_EVENT" - // "VISUAL_ARTS_EVENT" - // "RESERVATION" - // "TRAVEL_EVENT" - // "CORPORATION" - ORGANIZATION subtypes - // "EDUCATIONAL_ORGANIZATION" - // "COLLEGE_OR_UNIVERSITY" - // "ELEMENTARY_SCHOOL" - // "HIGH_SCHOOL" - // "MIDDLE_SCHOOL" - // "PRESCHOOL" - // "SCHOOL" - // "GOVERNMENT_ORGANIZATION" - // "LOCAL_BUSINESS" - // "ANIMAL_SHELTER" - // "AUTOMOTIVE_BUSINESS" - // "AUTO_BODY_SHOP" - // "AUTO_DEALER" - // "AUTO_PARTS_STORE" - // "AUTO_RENTAL" - // "AUTO_REPAIR" - // "AUTO_WASH" - // "GAS_STATION" - // "MOTORCYCLE_DEALER" - // "MOTORCYCLE_REPAIR" - // "CHILD_CARE" - // "DRY_CLEANING_OR_LAUNDRY" - // "EMERGENCY_SERVICE" - // "FIRE_STATION" - // "HOSPITAL" - // "POLICE_STATION" - // "EMPLOYMENT_AGENGY" - // "ENTERTAINMENT_BUSINESS" - // "ADULT_ENTERTAINMENT" - // "AMUSEMENT_PARK" - // "ART_GALLERY" - // "CASINO" - // "COMEDY_CLUB" - // "MOVIE_THEATER" - // "NIGHT_CLUB" - // "FINANCIAL_SERVICE" - // "ACCOUNTING_SERVICE" - // "AUTOMATED_TELLER" - // "BANK_OR_CREDIT_UNION" - // "INSURANCE_AGENCY" - // "FOOD_ESTABLISHMENT" - // "BAKERY" - // "BAR_OR_PUB" - // "BREWERY" - // "CAFE_OR_COFFEE_SHOP" - // "FAST_FOOD_RESTAURANT" - // "ICE_CREAM_SHOP" - // "RESTAURANT" - // "WINERY" - // "GOVERNMENT_OFFICE" - // "POST_OFFICE" - // "HEALTH_AND_BEAUTY_BUSINESS" - // "BEAUTY_SALON" - // "DAY_SPA" - // "HAIR_SALON" - // "HEALTH_CLUB" - // "NAIL_SALON" - // "TATTOO_PARLOR" - // "HOME_AND_CONSTRUCTION_BUSINESS" - // "ELECTRICIAN" - // "GENERAL_CONTRACTOR" - // "HVAC_BUSINESS" - // "HOUSE_PAINTER" - // "LOCKSMITH" - // "MOVING_COMPANY" - // "PLUMBER" - // "ROOFING_CONTRACTOR" - // "INTERNET_CAFE" - // "LIBRARY" - // "LODGING_BUSINESS" - // "BED_AND_BREAKFAST" - // "HOSTEL" - // "HOTEL" - // "MOTEL" - // "MEDICAL_ORGANIZATION" - // "DENTIST" - // "MEDICAL_CLINIC" - // "OPTICIAN" - // "PHARMACY" - // "PHYSICIAN" - // "VETERINARY_CARE" - // "PROFESSIONAL_SERVICE" - // "ATTORNEY" - // "NOTARY" - // "RADIO_STATION" - // "REAL_ESTATE_AGENT" - // "RECYCLING_CENTER" - // "SELF_STORAGE" - // "SHOPPING_CENTER" - // "SPORTS_ACTIVITY_LOCATION" - // "BOWLING_ALLEY" - // "EXERCISE_GYM" - // "GOLF_COURSE" - // "PUBLIC_SWIMMING_POOL" - // "SKI_RESORT" - // "SPORTS_CLUB" - // "STADIUM_OR_ARENA" - // "TENNIS_COMPLEX" - // "STORE" - // "BIKE_STORE" - // "BOOK_STORE" - // "CLOTHING_STORE" - // "COMPUTER_STORE" - // "CONVENIENCE_STORE" - // "DEPARTMENT_STORE" - // "ELECTRONICS_STORE" - // "FLORIST" - // "FURNITURE_STORE" - // "GARDEN_STORE" - // "GROCERY_STORE" - // "HARDWARE_STORE" - // "HOBBY_SHOP" - // "HOME_GOODS_STORE" - // "JEWELRY_STORE" - // "LIQUOR_STORE" - // "MENS_CLOTHING_STORE" - // "MOBILE_PHONE_STORE" - // "MOVIE_RENTAL_STORE" - // "MUSIC_STORE" - // "OFFICE_EQUIPMENT_STORE" - // "OUTLET_STORE" - // "PAWN_SHOP" - // "PET_STORE" - // "SHOE_STORE" - // "SPORTING_GOODS_STORE" - // "TIRE_SHOP" - // "TOY_STORE" - // "WHOLESALE_STORE" - // "TELEVISION_STATION" - // "TOURIST_INFORMATION_CENTER" - // "TRAVEL_AGENCY" - // "PERFORMING_GROUP" - // "MUSIC_GROUP" - // "ADMINISTRATIVE_AREA" - PLACE subtypes - // "CITY" - // "COUNTRY" - // "STATE" - // "CIVIC_STRUCTURE" - // "AIRPORT" - // "AQUARIUM" - // "BEACH" - // "BUS_STATION" - // "BUS_STOP" - // "CAMPGROUND" - // "CEMETERY" - // "CREMATORIUM" - // "EVENT_VENUE" - // "GOVERNMENT_BUILDING" - // "CITY_HALL" - // "COURTHOUSE" - // "DEFENCE_ESTABLISHMENT" - // "EMBASSY" - // "LEGISLATIVE_BUILDING" - // "MUSEUM" - // "MUSIC_VENUE" - // "PARK" - // "PARKING_FACILITY" - // "PERFORMING_ARTS_THEATER" - // "PLACE_OF_WORSHIP" - // "BUDDHIST_TEMPLE" - // "CATHOLIC_CHURCH" - // "CHURCH" - // "HINDU_TEMPLE" - // "MOSQUE" - // "SYNAGOGUE" - // "PLAYGROUND" - // "R_V_PARK" - // "RESIDENCE" - // "APARTMENT_COMPLEX" - // "GATED_RESIDENCE_COMMUNITY" - // "SINGLE_FAMILY_RESIDENCE" - // "TOURIST_ATTRACTION" - // "SUBWAY_STATION" - // "TAXI_STAND" - // "TRAIN_STATION" - // "ZOO" - // "LANDFORM" - // "BODY_OF_WATER" - // "CANAL" - // "LAKE_BODY_OF_WATER" - // "OCEAN_BODY_OF_WATER" - // "POND" - // "RESERVOIR" - // "RIVER_BODY_OF_WATER" - // "SEA_BODY_OF_WATER" - // "WATERFALL" - // "CONTINENT" - // "MOUNTAIN" - // "VOLCANO" - // "LANDMARKS_OR_HISTORICAL_BUILDINGS" - // "USER_INTERACTION" - NOTE(jpanzer): This is a badly designed - // hierarchy and we should avoid depending on Event properties inside - // UserInteractions as much as possible IMHO. - // "USER_PLUS_ONES" - // "ENUMERATION" - Intangibles, primarily used as sub-objects of other - // types - // "BOOK_FORMAT_TYPE" - // "ITEM_AVAILABILITY" - // "OFFER_ITEM_CONDITION" - // "JOB_POSTING" - // "LANGUAGE" - // "OFFER" - // "QUANTITY" - // "DISTANCE" - // "DURATION" - // "ENERGY" - // "MASS" - // "RATING" - // "AGGREGATE_RATING" - // "STRUCTURED_VALUE" - // "CONTACT_POINT" - // "POSTAL_ADDRESS" - // "GEO_COORDINATES" - // "GEO_SHAPE" - // "NUTRITION_INFORMATION" - // "PRESENTATION_OBJECT" - CREATIVE_WORK extensions - // "DOCUMENT_OBJECT" - // "SPREADSHEET_OBJECT" - // "FORM_OBJECT" - // "DRAWING_OBJECT" - // "PLACE_REVIEW" - // "FILE_OBJECT" - // "PLAY_MUSIC_TRACK" - // "PLAY_MUSIC_ALBUM" - // "MAGAZINE" - // "CAROUSEL_FRAME" - Single frame for http://goto/carousel. - // "PLUS_EVENT" - EVENT extensions - // "HANGOUT" - No declared proto. Used only as a base type for now. - // "HANGOUT_BROADCAST" - // "HANGOUT_CONSUMER" - // "CHECKIN" - // "EXAMPLE_OBJECT" - // "SQUARE" - NOTE(melchang): These correspond to - // http://schema.org/WebPage/Community and - // http://schema.org/WebPage/CommunityInvite. See b/7653610 for why - // these are "SQUARE" and not "COMMUNITY". - // "SQUARE_INVITE" - // "PLUS_PHOTO" - // "PLUS_PHOTO_ALBUM" - // "LOCAL_PLUS_PHOTO_ALBUM" - // "PRODUCT_REVIEW" - // "FINANCIAL_QUOTE" - // "DEPRECATED_TOUR_OBJECT" - // "PLUS_PAGE" - // "GOOGLE_CHART" - Data visualizations. See - // http://code.google.com/apis/chart/index.html - // "PLUS_PHOTOS_ADDED_TO_COLLECTION" - // "RECOMMENDED_PEOPLE" - A collection of people that have been - // recommended to a user. - // "PLUS_POST" - A Google+ post. - // "DATE" - An http://schema.org/Date unstructured ISO-8859 timestamp - // string. - // "DRIVE_OBJECT_COLLECTION" - Embed representing a collection of - // multiple Drive objects. - // "NEWS_MEDIA_ORGANIZATION" - - // https://schema.org/NewsMediaOrganization - // "DYNAMITE_ATTACHMENT_METADATA" - Deprecated in favor of - // DYNAMITE_MESSAGE_METADATA - // "DYNAMITE_MESSAGE_METADATA" - Used for Dynamite message metadata in - // Hangouts - Type []string `json:"type,omitempty"` - - // ForceSendFields is a list of field names (e.g. "CanonicalId") 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. "CanonicalId") 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 *EmbedClientItem) MarshalJSON() ([]byte, error) { - type NoMethod EmbedClientItem - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// EnumOperatorOptions: Used to provide a search operator for enum -// properties. This is optional. Search operators let users restrict the -// query to specific fields relevant to the type of item being searched. -// For example, if you provide no operator for a *priority* enum -// property with possible values *p0* and *p1*, a query that contains -// the term *p0* returns items that have *p0* as the value of the -// *priority* property, as well as any items that contain the string -// *p0* in other fields. If you provide an operator name for the enum, -// such as *priority*, then search users can use that operator to refine -// results to only items that have *p0* as this property's value, with -// the query *priority:p0*. -type EnumOperatorOptions struct { - // OperatorName: Indicates the operator name required in the query in - // order to isolate the enum property. For example, if operatorName is - // *priority* and the property's name is *priorityVal*, then queries - // like *priority:* show results only where the value of the - // property named *priorityVal* matches **. By contrast, a search - // that uses the same ** without an operator returns all items - // where ** matches the value of any String properties or text - // within the content field for the item. The operator name can only - // contain lowercase letters (a-z). The maximum length is 32 characters. - OperatorName string `json:"operatorName,omitempty"` - - // ForceSendFields is a list of field names (e.g. "OperatorName") 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. "OperatorName") 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 *EnumOperatorOptions) MarshalJSON() ([]byte, error) { - type NoMethod EnumOperatorOptions - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// EnumPropertyOptions: The options for enum properties, which allow you -// to define a restricted set of strings to match user queries, set -// rankings for those string values, and define an operator name to be -// paired with those strings so that users can narrow results to only -// items with a specific value. For example, for items in a request -// tracking system with priority information, you could define *p0* as -// an allowable enum value and tie this enum to the operator name -// *priority* so that search users could add *priority:p0* to their -// query to restrict the set of results to only those items indexed with -// the value *p0*. -type EnumPropertyOptions struct { - // OperatorOptions: If set, describes how the enum should be used as a - // search operator. - OperatorOptions *EnumOperatorOptions `json:"operatorOptions,omitempty"` - - // OrderedRanking: Used to specify the ordered ranking for the - // enumeration that determines how the integer values provided in the - // possible EnumValuePairs are used to rank results. If specified, - // integer values must be provided for all possible EnumValuePair values - // given for this property. Can only be used if isRepeatable is false. - // - // Possible values: - // "NO_ORDER" - There is no ranking order for the property. Results - // aren't adjusted by this property's value. - // "ASCENDING" - This property is ranked in ascending order. Lower - // values indicate lower ranking. - // "DESCENDING" - This property is ranked in descending order. Lower - // values indicate higher ranking. - OrderedRanking string `json:"orderedRanking,omitempty"` - - // PossibleValues: The list of possible values for the enumeration - // property. All EnumValuePairs must provide a string value. If you - // specify an integer value for one EnumValuePair, then all possible - // EnumValuePairs must provide an integer value. Both the string value - // and integer value must be unique over all possible values. Once set, - // possible values cannot be removed or modified. If you supply an - // ordered ranking and think you might insert additional enum values in - // the future, leave gaps in the initial integer values to allow adding - // a value in between previously registered values. The maximum number - // of elements is 100. - PossibleValues []*EnumValuePair `json:"possibleValues,omitempty"` - - // ForceSendFields is a list of field names (e.g. "OperatorOptions") 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. "OperatorOptions") 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 *EnumPropertyOptions) MarshalJSON() ([]byte, error) { - type NoMethod EnumPropertyOptions - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// EnumValuePair: The enumeration value pair defines two things: a -// required string value and an optional integer value. The string value -// defines the necessary query term required to retrieve that item, such -// as *p0* for a priority item. The integer value determines the ranking -// of that string value relative to other enumerated values for the same -// property. For example, you might associate *p0* with *0* and define -// another enum pair such as *p1* and *1*. You must use the integer -// value in combination with ordered ranking to set the ranking of a -// given value relative to other enumerated values for the same property -// name. Here, a ranking order of DESCENDING for *priority* properties -// results in a ranking boost for items indexed with a value of *p0* -// compared to items indexed with a value of *p1*. Without a specified -// ranking order, the integer value has no effect on item ranking. -type EnumValuePair struct { - // IntegerValue: The integer value of the EnumValuePair which must be - // non-negative. Optional. - IntegerValue int64 `json:"integerValue,omitempty"` - - // StringValue: The string value of the EnumValuePair. The maximum - // length is 32 characters. - StringValue string `json:"stringValue,omitempty"` - - // ForceSendFields is a list of field names (e.g. "IntegerValue") 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. "IntegerValue") 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 *EnumValuePair) MarshalJSON() ([]byte, error) { - type NoMethod EnumValuePair - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// EnumValues: List of enum values. -type EnumValues struct { - // Values: The maximum allowable length for string values is 32 - // characters. - Values []string `json:"values,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Values") 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. "Values") 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 *EnumValues) MarshalJSON() ([]byte, error) { - type NoMethod EnumValues - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// ErrorInfo: Error information about the response. -type ErrorInfo struct { - ErrorMessages []*ErrorMessage `json:"errorMessages,omitempty"` - - // ForceSendFields is a list of field names (e.g. "ErrorMessages") 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. "ErrorMessages") 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 *ErrorInfo) MarshalJSON() ([]byte, error) { - type NoMethod ErrorInfo - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// ErrorMessage: Error message per source response. -type ErrorMessage struct { - ErrorMessage string `json:"errorMessage,omitempty"` - - Source *Source `json:"source,omitempty"` - - // ForceSendFields is a list of field names (e.g. "ErrorMessage") 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. "ErrorMessage") 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 *ErrorMessage) MarshalJSON() ([]byte, error) { - type NoMethod ErrorMessage - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -type EventAnnotation struct { - Type int64 `json:"type,omitempty"` - - Value string `json:"value,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Type") 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. "Type") 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 *EventAnnotation) MarshalJSON() ([]byte, error) { - type NoMethod EventAnnotation - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// EventProto: Represents the invitees or other users associated with a -// Google+ Event (see http://goto/events-backend-design). -type EventProto struct { - // EventId: Event IDs consist of alphanumeric characters and colons. - // Currently required. - EventId string `json:"eventId,omitempty"` - - // MemberType: The type of Event members to consider, e.g. "all members" - // vs. "owners" vs. "admins". These are defined by legacy_relation_id - // values in social.graph.storage.EdgeTypeEnum.EdgeType enum options in - // social/graph/storage/proto/id.proto. See event.pb (defined in - // production/config/cdd/socialgraph/mixer_config/prod/node_type_config) - // for all valid edge types associated with event. Currently required. - MemberType int64 `json:"memberType,omitempty"` - - // ForceSendFields is a list of field names (e.g. "EventId") 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. "EventId") 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 *EventProto) MarshalJSON() ([]byte, error) { - type NoMethod EventProto - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// FacetBucket: A bucket in a facet is the basic unit of operation. A -// bucket can comprise either a single value OR a contiguous range of -// values, depending on the type of the field bucketed. FacetBucket is -// currently used only for returning the response object. -type FacetBucket struct { - // Count: Number of results that match the bucket value. Counts are only - // returned for searches when count accuracy is ensured. Cloud Search - // does not guarantee facet counts for any query and facet counts might - // be present only intermittently, even for identical queries. Do not - // build dependencies on facet count existence; instead use facet ount - // percentages which are always returned. - Count int64 `json:"count,omitempty"` - - // Filter: Filter to be passed in the search request if the - // corresponding bucket is selected. - Filter *Filter `json:"filter,omitempty"` - - // Percentage: Percent of results that match the bucket value. The - // returned value is between (0-100], and is rounded down to an integer - // if fractional. If the value is not explicitly returned, it represents - // a percentage value that rounds to 0. Percentages are returned for all - // searches, but are an estimate. Because percentages are always - // returned, you should render percentages instead of counts. - Percentage int64 `json:"percentage,omitempty"` - - Value *Value `json:"value,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Count") 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. "Count") 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 *FacetBucket) MarshalJSON() ([]byte, error) { - type NoMethod FacetBucket - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// FacetOptions: Specifies operators to return facet results for. There -// will be one FacetResult for every -// source_name/object_type/operator_name combination. -type FacetOptions struct { - // IntegerFacetingOptions: If set, describes integer faceting options - // for the given integer property. The corresponding integer property in - // the schema should be marked isFacetable. The number of buckets - // returned would be minimum of this and num_facet_buckets. - IntegerFacetingOptions *IntegerFacetingOptions `json:"integerFacetingOptions,omitempty"` - - // NumFacetBuckets: Maximum number of facet buckets that should be - // returned for this facet. Defaults to 10. Maximum value is 100. - NumFacetBuckets int64 `json:"numFacetBuckets,omitempty"` - - // ObjectType: If object_type is set, only those objects of that type - // will be used to compute facets. If empty, then all objects will be - // used to compute facets. - ObjectType string `json:"objectType,omitempty"` - - // OperatorName: The name of the operator chosen for faceting. @see - // cloudsearch.SchemaPropertyOptions - OperatorName string `json:"operatorName,omitempty"` - - // SourceName: Source name to facet on. Format: datasources/{source_id} - // If empty, all data sources will be used. - SourceName string `json:"sourceName,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "IntegerFacetingOptions") 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. "IntegerFacetingOptions") - // 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 *FacetOptions) MarshalJSON() ([]byte, error) { - type NoMethod FacetOptions - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// FacetResult: Source specific facet response -type FacetResult struct { - // Buckets: FacetBuckets for values in response containing at least a - // single result with the corresponding filter. - Buckets []*FacetBucket `json:"buckets,omitempty"` - - // ObjectType: Object type for which facet results are returned. Can be - // empty. - ObjectType string `json:"objectType,omitempty"` - - // OperatorName: The name of the operator chosen for faceting. @see - // cloudsearch.SchemaPropertyOptions - OperatorName string `json:"operatorName,omitempty"` - - // SourceName: Source name for which facet results are returned. Will - // not be empty. - SourceName string `json:"sourceName,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Buckets") 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. "Buckets") 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 *FacetResult) MarshalJSON() ([]byte, error) { - type NoMethod FacetResult - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -type FieldViolation struct { - // Description: The description of the error. - Description string `json:"description,omitempty"` - - // Field: Path of field with violation. - Field string `json:"field,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 *FieldViolation) MarshalJSON() ([]byte, error) { - type NoMethod FieldViolation - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// Filter: A generic way of expressing filters in a query, which -// supports two approaches: **1. Setting a ValueFilter.** The name must -// match an operator_name defined in the schema for your data source. -// **2. Setting a CompositeFilter.** The filters are evaluated using the -// logical operator. The top-level operators can only be either an AND -// or a NOT. AND can appear only at the top-most level. OR can appear -// only under a top-level AND. -type Filter struct { - CompositeFilter *CompositeFilter `json:"compositeFilter,omitempty"` - - ValueFilter *ValueFilter `json:"valueFilter,omitempty"` - - // ForceSendFields is a list of field names (e.g. "CompositeFilter") 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. "CompositeFilter") 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 *Filter) MarshalJSON() ([]byte, error) { - type NoMethod Filter - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// FilterCreated: A filter was created. -type FilterCreated struct { -} - -// FilterDeleted: A filter was deleted. -type FilterDeleted struct { -} - -// FilterOptions: Filter options to be applied on query. -type FilterOptions struct { - // Filter: Generic filter to restrict the search, such as `lang:en`, - // `site:xyz`. - Filter *Filter `json:"filter,omitempty"` - - // ObjectType: If object_type is set, only objects of that type are - // returned. This should correspond to the name of the object that was - // registered within the definition of schema. The maximum length is 256 - // characters. - ObjectType string `json:"objectType,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Filter") 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. "Filter") 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 *FilterOptions) MarshalJSON() ([]byte, error) { - type NoMethod FilterOptions - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// FilterUpdate: HistoryRecord for changes associated with a filter, -// namely: FILTER_CREATED FILTER_DELETED -type FilterUpdate struct { - FilterCreated *FilterCreated `json:"filterCreated,omitempty"` - - FilterDeleted *FilterDeleted `json:"filterDeleted,omitempty"` - - FilterId string `json:"filterId,omitempty"` - - // ForceSendFields is a list of field names (e.g. "FilterCreated") 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. "FilterCreated") 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 *FilterUpdate) MarshalJSON() ([]byte, error) { - type NoMethod FilterUpdate - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// FixedFooter: A persistent (sticky) footer that is added to the bottom -// of the card. -type FixedFooter struct { - Buttons []*Button `json:"buttons,omitempty"` - - PrimaryButton *TextButton `json:"primaryButton,omitempty"` - - SecondaryButton *TextButton `json:"secondaryButton,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Buttons") 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. "Buttons") 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 *FixedFooter) MarshalJSON() ([]byte, error) { - type NoMethod FixedFooter - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -type Folder struct { - // Id: Folder mapping id. - Id uint64 `json:"id,omitempty,string"` - - // Message: One for each copy of the message in the IMAP folder. - Message []*ImapsyncFolderAttributeFolderMessage `json:"message,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Id") 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. "Id") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // 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 *Folder) MarshalJSON() ([]byte, error) { - type NoMethod Folder - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// FolderAttribute: This is the content of //imapsync/folder attribute. -type FolderAttribute struct { - // Folder: List of all IMAP folders where the message presents. - Folder []*Folder `json:"folder,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Folder") 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. "Folder") 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 *FolderAttribute) MarshalJSON() ([]byte, error) { - type NoMethod FolderAttribute - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -type FormAction struct { - // ActionMethodName: Apps script function that should be invoked in the - // developer's apps script when the containing element is - // clicked/activated. - ActionMethodName string `json:"actionMethodName,omitempty"` - - // Possible values: - // "SPINNER" - // "NONE" - LoadIndicator string `json:"loadIndicator,omitempty"` - - Parameters []*ActionParameter `json:"parameters,omitempty"` - - // PersistValues: Indicates whether form values persist after the - // action. When false, the Apps Script is responsible for persisting - // values, by setting any form field values using the formInputs in the - // event. Disabling this behavior can be used if the add-on needs the - // ability to clear form fields, for example, as with persistent values, - // there is no means for clearing existing values. When disabling - // persistent values, it is strongly recommended that the add-on use - // LoadIndicator.SPINNER for all events, as this locks the UI to ensure - // no changes are made by the user while the action is being processed. - // When using LoadIndicator.NONE for any of the actions, persistent - // values are recommended, as it ensures that any changes made by the - // user after form / on change actions are sent to the server are not - // overwritten by the response. Persistent values disabled by default. - // While we recommend persistent values be used in the typical use case, - // we do not enable by default, as doing so would change the current - // behavior of existing add-ons in prod. - PersistValues bool `json:"persistValues,omitempty"` - - // ForceSendFields is a list of field names (e.g. "ActionMethodName") 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. "ActionMethodName") 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 *FormAction) MarshalJSON() ([]byte, error) { - type NoMethod FormAction - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// FormatMetadata: Annotation metadata for markup formatting -type FormatMetadata struct { - // FontColor: Font color is set if and only if format_type is - // FONT_COLOR. The components are stored as (alpha << 24) | (red << 16) - // | (green << 8) | blue. Clients should always set the alpha component - // to 0xFF. NEXT TAG: 3 - FontColor int64 `json:"fontColor,omitempty"` - - // FormatType: - // LINT.ThenChange(//depot/google3/apps/dynamite/v1/web/datakeys/annotate - // d_span.proto) - // - // Possible values: - // "TYPE_UNSPECIFIED" - Default value for the enum. - // "BOLD" - // "ITALIC" - // "STRIKE" - // "SOURCE_CODE" - // "MONOSPACE" - Inline monospace. - // "HIDDEN" - // "MONOSPACE_BLOCK" - Multi-line monospace block. - // "UNDERLINE" - // "FONT_COLOR" - // "BULLETED_LIST" - Encloses BULLETED_LIST_ITEM annotations. - // "BULLETED_LIST_ITEM" - Must cover the whole line including the - // newline - // "CLIENT_HIDDEN" - character at the end. Not used anymore. - FormatType string `json:"formatType,omitempty"` - - // ForceSendFields is a list of field names (e.g. "FontColor") 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. "FontColor") 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 *FormatMetadata) MarshalJSON() ([]byte, error) { - type NoMethod FormatMetadata - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// Formatting: Formatting information for a segment. -type Formatting struct { - Bold bool `json:"bold,omitempty"` - - // Highlight: This indicates that the segment should be rendered as - // highlighted or visually emphasized. - Highlight bool `json:"highlight,omitempty"` - - Italics bool `json:"italics,omitempty"` - - Strikethrough bool `json:"strikethrough,omitempty"` - - // Style: If set, this indicates that the segment should be rendered - // with the specified style. The absence of an explicit style represents - // "no style", i.e. the segment can be rendered with the default style - // chosen by the application. - // - // Possible values: - // "UNKNOWN_STYLE" - This represents a style that is unknown (e.g. a - // new style was introduced but not supported by older mobile app - // versions) and should generally not be used as a value in a proto. If - // the segment does not need to be rendered with a special style, the - // 'style' field should simply be left unset. A reasonable fallback for - // an unknown style is to render the segment in the default style. - // "HEADING_1" - The most important heading to the least important - // heading. - // "HEADING_2" - // "HEADING_3" - // "HEADING_4" - Style string `json:"style,omitempty"` - - Underline bool `json:"underline,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Bold") 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. "Bold") 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 *Formatting) MarshalJSON() ([]byte, error) { - type NoMethod Formatting - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// FreshnessOptions: Indicates which freshness property to use when -// adjusting search ranking for an item. Fresher, more recent dates -// indicate higher quality. Use the freshness option property that best -// works with your data. For fileshare documents, last modified time is -// most relevant. For calendar event data, the time when the event -// occurs is a more relevant freshness indicator. In this way, calendar -// events that occur closer to the time of the search query are -// considered higher quality and ranked accordingly. -type FreshnessOptions struct { - // FreshnessDuration: The duration after which an object should be - // considered stale. The default value is 180 days (in seconds). - FreshnessDuration string `json:"freshnessDuration,omitempty"` - - // FreshnessProperty: This property indicates the freshness level of the - // object in the index. If set, this property must be a top-level - // property within the property definitions and it must be a timestamp - // type or date type. Otherwise, the Indexing API uses updateTime as the - // freshness indicator. The maximum length is 256 characters. When a - // property is used to calculate freshness, the value defaults to 2 - // years from the current time. - FreshnessProperty string `json:"freshnessProperty,omitempty"` - - // ForceSendFields is a list of field names (e.g. "FreshnessDuration") - // 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. "FreshnessDuration") 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 *FreshnessOptions) MarshalJSON() ([]byte, error) { - type NoMethod FreshnessOptions - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// FuseboxItem: The Item message is the read interface for user data -// (traditionally referred to as a "message", such as a mail message or -// a chat message, but generalized to encompass other types such as -// tasks) and stored in Tingle. Each Item is associated with a single -// Thread. An Item contains three classes of data. (1): Item "fields" -// are common to items of all message types (e.g. mail, chat, task, -// etc.) and are identified by the ItemFieldSpec.FetchType enum when -// fetching Items. (2): Item "attributes" represent data associated with -// an Item that is stored on behalf of the client but to which the -// fusebox and storage layers are otherwise agnostic. (3): Item "parts" -// are application-defined protocol buffers that affect how the Item is -// indexed. Item parts are referenced as extensions to the ItemParts -// message. By default the application specifies the index terms -// associated with an Item part. For performance sensitive applications, -// the storage layer can be modified to understand and index data types -// natively. -type FuseboxItem struct { - Attributes *Attributes `json:"attributes,omitempty"` - - // CreationTimeMicroseconds: The creation time of the Item in micro - // seconds. - CreationTimeMicroseconds uint64 `json:"creationTimeMicroseconds,omitempty,string"` - - History *History `json:"history,omitempty"` - - // ItemKey: The key is used to refer to an item. Note that every field - // of the MultiKey is unique to the Item, and thus the Item can be - // looked up by any of the fields. - ItemKey *MultiKey `json:"itemKey,omitempty"` - - Labels *Labels `json:"labels,omitempty"` - - // LastModificationTimeUs: The modification time of the Item in micro - // seconds. Modifications to the message include label addition, - // deletion, etc. - LastModificationTimeUs uint64 `json:"lastModificationTimeUs,omitempty,string"` - - // LockerReferences: go/lockpicker Locker counterpart of references. - LockerReferences *References `json:"lockerReferences,omitempty"` - - MatchInfo *MatchInfo `json:"matchInfo,omitempty"` - - // Parts: Type-specific data are represented as extensions to the - // ItemParts message. - Parts *ItemParts `json:"parts,omitempty"` - - // ReadTs: The read timestamp at which this item was read. This is a - // temporary field used to check if two items streamed during dual - // reading were read at the same timestamp. This will be populated by - // Fusebox RPCs. "DO NOT USE UNLESS YOU TALK TO FUSEBOX TEAM - // (gmail-fusebox@)". - ReadTs int64 `json:"readTs,omitempty,string"` - - // References: References to attachments, video attachments in Youtube - // and Hangout messages. - References *References `json:"references,omitempty"` - - // Snippet: The snippet is a brief bit of text describing this item. - Snippet string `json:"snippet,omitempty"` - - // ThreadKey: The key of the Thread with which this Item is associated. - ThreadKey *MultiKey `json:"threadKey,omitempty"` - - // ThreadLocator: A base64 encoded and encrypted string generated from - // the Gaia Id and the thread id. Used to generate the permalink for - // this thread, exposed from Gmail API. - ThreadLocator string `json:"threadLocator,omitempty"` - - Triggers *Triggers `json:"triggers,omitempty"` - - // Version: The latest history operation id that resulted in a mutation - // of the item. - Version uint64 `json:"version,omitempty,string"` - - // ForceSendFields is a list of field names (e.g. "Attributes") 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. "Attributes") 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 *FuseboxItem) MarshalJSON() ([]byte, error) { - type NoMethod FuseboxItem - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// FuseboxItemThreadMatchInfo: In the context of a search, the MatchInfo -// contains information about which Items matched the query. -type FuseboxItemThreadMatchInfo struct { - // ClusterId: If SearchQuery.Options.Clustering is present, the query - // will be treated as a cluster query, and this field may be populated - // with the cluster ID of the cluster to which this thread belongs, if - // any. The cluster ID will be a label on the message. - ClusterId string `json:"clusterId,omitempty"` - - // LastMatchingItemId: The server id of the last item that matched the - // query. This is always set, regardless of the - // compute_matching_items_per_thread option. This is the value by which - // search results are sorted, in descending (i.e. newest first) order. - LastMatchingItemId uint64 `json:"lastMatchingItemId,omitempty,string"` - - // LastMatchingItemKey: The MultiKey of the last item that matched the - // query. This is always set, regardless of the - // compute_matching_items_per_thread option. This is the value by which - // search results are sorted, in descending (i.e. newest first) order. - LastMatchingItemKey *MultiKey `json:"lastMatchingItemKey,omitempty"` - - // MatchingItemKey: If - // SearchQuery.Options.compute_matching_items_per_thread, this field - // will contain the keys of all items that matched the query, in - // ascending order. Note that this option requires extra computation. - MatchingItemKey []*MultiKey `json:"matchingItemKey,omitempty"` - - // Rank: The rank of this ItemThread in the result set of the query. - // This rank may be used to sort ItemThreads in proper order. Ranks are - // specific to a query, and stable for a given query at a specific time. - Rank *Rank `json:"rank,omitempty"` - - // ForceSendFields is a list of field names (e.g. "ClusterId") 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. "ClusterId") 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 *FuseboxItemThreadMatchInfo) MarshalJSON() ([]byte, error) { - type NoMethod FuseboxItemThreadMatchInfo - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// FuseboxPrefUpdatePreState: If the Value field is not set this means -// the pref did not exist. -type FuseboxPrefUpdatePreState struct { - Value string `json:"value,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Value") 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. "Value") 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 *FuseboxPrefUpdatePreState) MarshalJSON() ([]byte, error) { - type NoMethod FuseboxPrefUpdatePreState - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -type GSuitePrincipal struct { - // GsuiteDomain: This principal represents all users of the Google - // Workspace domain of the customer. - GsuiteDomain bool `json:"gsuiteDomain,omitempty"` - - // GsuiteGroupEmail: This principal references a Google Workspace group - // name. - GsuiteGroupEmail string `json:"gsuiteGroupEmail,omitempty"` - - // GsuiteUserEmail: This principal references a Google Workspace user - // account. - GsuiteUserEmail string `json:"gsuiteUserEmail,omitempty"` - - // ForceSendFields is a list of field names (e.g. "GsuiteDomain") 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. "GsuiteDomain") 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 *GSuitePrincipal) MarshalJSON() ([]byte, error) { - type NoMethod GSuitePrincipal - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -type GaiaGroupProto struct { - GroupId int64 `json:"groupId,omitempty,string"` - - // ForceSendFields is a list of field names (e.g. "GroupId") 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. "GroupId") 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 *GaiaGroupProto) MarshalJSON() ([]byte, error) { - type NoMethod GaiaGroupProto - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// GaiaUserProto: A Gaia account, which may represent a user, device, -// service account, etc. For prod (@prod.google.com) accounts, use -// MdbUserProto instead. -type GaiaUserProto struct { - UserId int64 `json:"userId,omitempty,string"` - - // ForceSendFields is a list of field names (e.g. "UserId") 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. "UserId") 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 *GaiaUserProto) MarshalJSON() ([]byte, error) { - type NoMethod GaiaUserProto - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// GatewayAccess: Details on the third-party interoperability settings -// for the meeting space. -type GatewayAccess struct { - // Enabled: Whether third-party gateway accesses are enabled for this - // meeting space. If enabled, the actual access code can be retrieved by - // calling the GetGatewayAccess RPC method. - 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 *GatewayAccess) MarshalJSON() ([]byte, error) { - type NoMethod GatewayAccess - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// GatewaySipAccess: Details how to join the conference via a SIP -// gateway. -type GatewaySipAccess struct { - // SipAccessCode: Permanent numeric code for manual entry on specially - // configured devices, currently the same as the PSTN "Universal pin". - SipAccessCode string `json:"sipAccessCode,omitempty"` - - // Uri: The SIP URI the conference can be reached through. The string is - // on one of the formats: "sip:@" "sips:@" where currently is the - // 13-digit universal pin (with the future option to support using a - // Meet meeting code as well), and is a valid address to be resolved - // using a DNS SRV lookup, or a dotted quad. - Uri string `json:"uri,omitempty"` - - // ForceSendFields is a list of field names (e.g. "SipAccessCode") 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. "SipAccessCode") 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 *GatewaySipAccess) MarshalJSON() ([]byte, error) { - type NoMethod GatewaySipAccess - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -type GetCustomerIndexStatsResponse struct { - // AverageIndexedItemCount: Average item count for the given date range - // for which billing is done. - AverageIndexedItemCount int64 `json:"averageIndexedItemCount,omitempty,string"` - - // Stats: Summary of indexed item counts, one for each day in the - // requested range. - Stats []*CustomerIndexStats `json:"stats,omitempty"` - - // ServerResponse contains the HTTP response code and headers from the - // server. - googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. - // "AverageIndexedItemCount") 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. "AverageIndexedItemCount") - // 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 *GetCustomerIndexStatsResponse) MarshalJSON() ([]byte, error) { - type NoMethod GetCustomerIndexStatsResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -type GetCustomerQueryStatsResponse struct { - Stats []*CustomerQueryStats `json:"stats,omitempty"` - - // TotalQueryCount: Total successful query count (status code 200) for - // the given date range. - TotalQueryCount int64 `json:"totalQueryCount,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. "Stats") 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. "Stats") 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 *GetCustomerQueryStatsResponse) MarshalJSON() ([]byte, error) { - type NoMethod GetCustomerQueryStatsResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// GetCustomerSearchApplicationStatsResponse: Response format for search -// application stats for a customer. -type GetCustomerSearchApplicationStatsResponse struct { - // AverageSearchApplicationCount: Average search application count for - // the given date range. - AverageSearchApplicationCount int64 `json:"averageSearchApplicationCount,omitempty,string"` - - // Stats: Search application stats by date. - Stats []*CustomerSearchApplicationStats `json:"stats,omitempty"` - - // ServerResponse contains the HTTP response code and headers from the - // server. - googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. - // "AverageSearchApplicationCount") 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. - // "AverageSearchApplicationCount") 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 *GetCustomerSearchApplicationStatsResponse) MarshalJSON() ([]byte, error) { - type NoMethod GetCustomerSearchApplicationStatsResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -type GetCustomerSessionStatsResponse struct { - Stats []*CustomerSessionStats `json:"stats,omitempty"` - - // ServerResponse contains the HTTP response code and headers from the - // server. - googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Stats") 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. "Stats") 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 *GetCustomerSessionStatsResponse) MarshalJSON() ([]byte, error) { - type NoMethod GetCustomerSessionStatsResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -type GetCustomerUserStatsResponse struct { - Stats []*CustomerUserStats `json:"stats,omitempty"` - - // ServerResponse contains the HTTP response code and headers from the - // server. - googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Stats") 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. "Stats") 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 *GetCustomerUserStatsResponse) MarshalJSON() ([]byte, error) { - type NoMethod GetCustomerUserStatsResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -type GetDataSourceIndexStatsResponse struct { - // AverageIndexedItemCount: Average item count for the given date range - // for which billing is done. - AverageIndexedItemCount int64 `json:"averageIndexedItemCount,omitempty,string"` - - // Stats: Summary of indexed item counts, one for each day in the - // requested range. - Stats []*DataSourceIndexStats `json:"stats,omitempty"` - - // ServerResponse contains the HTTP response code and headers from the - // server. - googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. - // "AverageIndexedItemCount") 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. "AverageIndexedItemCount") - // 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 *GetDataSourceIndexStatsResponse) MarshalJSON() ([]byte, error) { - type NoMethod GetDataSourceIndexStatsResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// GetSearchApplicationQueryStatsResponse: Response format for getting -// query stats for a search application between given dates. -type GetSearchApplicationQueryStatsResponse struct { - // Stats: Query stats per date for a search application. - Stats []*SearchApplicationQueryStats `json:"stats,omitempty"` - - // TotalQueryCount: Total successful query count (status code 200) for - // the given date range. - TotalQueryCount int64 `json:"totalQueryCount,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. "Stats") 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. "Stats") 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 *GetSearchApplicationQueryStatsResponse) MarshalJSON() ([]byte, error) { - type NoMethod GetSearchApplicationQueryStatsResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -type GetSearchApplicationSessionStatsResponse struct { - Stats []*SearchApplicationSessionStats `json:"stats,omitempty"` - - // ServerResponse contains the HTTP response code and headers from the - // server. - googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Stats") 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. "Stats") 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 *GetSearchApplicationSessionStatsResponse) MarshalJSON() ([]byte, error) { - type NoMethod GetSearchApplicationSessionStatsResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -type GetSearchApplicationUserStatsResponse struct { - Stats []*SearchApplicationUserStats `json:"stats,omitempty"` - - // ServerResponse contains the HTTP response code and headers from the - // server. - googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Stats") 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. "Stats") 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 *GetSearchApplicationUserStatsResponse) MarshalJSON() ([]byte, error) { - type NoMethod GetSearchApplicationUserStatsResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -type GmailClientActionMarkup struct { - AddonComposeUiActionMarkup *AddonComposeUiActionMarkup `json:"addonComposeUiActionMarkup,omitempty"` - - OpenCreatedDraftActionMarkup *OpenCreatedDraftActionMarkup `json:"openCreatedDraftActionMarkup,omitempty"` - - TaskAction *TaskActionMarkup `json:"taskAction,omitempty"` - - UpdateDraftActionMarkup *UpdateDraftActionMarkup `json:"updateDraftActionMarkup,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "AddonComposeUiActionMarkup") 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. - // "AddonComposeUiActionMarkup") 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 *GmailClientActionMarkup) MarshalJSON() ([]byte, error) { - type NoMethod GmailClientActionMarkup - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// GoogleChatV1ContextualAddOnMarkup: The markup for developers to -// specify the contents of a contextual AddOn. -type GoogleChatV1ContextualAddOnMarkup struct { - // Cards: A list of cards. A card must contain a header and at least 1 - // section. - Cards []*GoogleChatV1ContextualAddOnMarkupCard `json:"cards,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Cards") 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. "Cards") 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 *GoogleChatV1ContextualAddOnMarkup) MarshalJSON() ([]byte, error) { - type NoMethod GoogleChatV1ContextualAddOnMarkup - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// GoogleChatV1ContextualAddOnMarkupCard: A card is a UI element that -// can contain UI widgets such as text and images. -type GoogleChatV1ContextualAddOnMarkupCard struct { - // CardActions: The actions of this card. - CardActions []*GoogleChatV1ContextualAddOnMarkupCardCardAction `json:"cardActions,omitempty"` - - // Header: The header of the card. A header usually contains a title and - // an image. - Header *GoogleChatV1ContextualAddOnMarkupCardCardHeader `json:"header,omitempty"` - - // Name: Name of the card. - Name string `json:"name,omitempty"` - - // Sections: Sections are separated by a line divider. - Sections []*GoogleChatV1ContextualAddOnMarkupCardSection `json:"sections,omitempty"` - - // ForceSendFields is a list of field names (e.g. "CardActions") 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. "CardActions") 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 *GoogleChatV1ContextualAddOnMarkupCard) MarshalJSON() ([]byte, error) { - type NoMethod GoogleChatV1ContextualAddOnMarkupCard - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// GoogleChatV1ContextualAddOnMarkupCardCardAction: A card action is the -// action associated with the card. For an invoice card, a typical -// action would be: delete invoice, email invoice or open the invoice in -// browser. Not supported by Google Chat apps. -type GoogleChatV1ContextualAddOnMarkupCardCardAction struct { - // ActionLabel: The label used to be displayed in the action menu item. - ActionLabel string `json:"actionLabel,omitempty"` - - // OnClick: The onclick action for this action item. - OnClick *GoogleChatV1WidgetMarkupOnClick `json:"onClick,omitempty"` - - // ForceSendFields is a list of field names (e.g. "ActionLabel") 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. "ActionLabel") 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 *GoogleChatV1ContextualAddOnMarkupCardCardAction) MarshalJSON() ([]byte, error) { - type NoMethod GoogleChatV1ContextualAddOnMarkupCardCardAction - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -type GoogleChatV1ContextualAddOnMarkupCardCardHeader struct { - // ImageStyle: The image's type (for example, square border or circular - // border). - // - // Possible values: - // "IMAGE_STYLE_UNSPECIFIED" - // "IMAGE" - Square border. - // "AVATAR" - Circular border. - ImageStyle string `json:"imageStyle,omitempty"` - - // ImageUrl: The URL of the image in the card header. - ImageUrl string `json:"imageUrl,omitempty"` - - // Subtitle: The subtitle of the card header. - Subtitle string `json:"subtitle,omitempty"` - - // Title: The title must be specified. The header has a fixed height: if - // both a title and subtitle is specified, each takes up one line. If - // only the title is specified, it takes up both lines. - Title string `json:"title,omitempty"` - - // ForceSendFields is a list of field names (e.g. "ImageStyle") 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. "ImageStyle") 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 *GoogleChatV1ContextualAddOnMarkupCardCardHeader) MarshalJSON() ([]byte, error) { - type NoMethod GoogleChatV1ContextualAddOnMarkupCardCardHeader - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// GoogleChatV1ContextualAddOnMarkupCardSection: A section contains a -// collection of widgets that are rendered (vertically) in the order -// that they are specified. Across all platforms, cards have a narrow -// fixed width, so there's currently no need for layout properties (for -// example, float). -type GoogleChatV1ContextualAddOnMarkupCardSection struct { - // Header: The header of the section. Formatted text is supported. For - // more information about formatting text, see Formatting text in Google - // Chat apps - // (https://developers.google.com/chat/api/guides/message-formats/cards#card_text_formatting) - // and Formatting text in Google Workspace Add-ons - // (https://developers.google.com/apps-script/add-ons/concepts/widgets#text_formatting). - Header string `json:"header,omitempty"` - - // Widgets: A section must contain at least one widget. - Widgets []*GoogleChatV1WidgetMarkup `json:"widgets,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Header") 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. "Header") 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 *GoogleChatV1ContextualAddOnMarkupCardSection) MarshalJSON() ([]byte, error) { - type NoMethod GoogleChatV1ContextualAddOnMarkupCardSection - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// GoogleChatV1WidgetMarkup: A widget is a UI element that presents text -// and images. -type GoogleChatV1WidgetMarkup struct { - // Buttons: A list of buttons. Buttons is also `oneof data` and only one - // of these fields should be set. - Buttons []*GoogleChatV1WidgetMarkupButton `json:"buttons,omitempty"` - - // Image: Display an image in this widget. - Image *GoogleChatV1WidgetMarkupImage `json:"image,omitempty"` - - // KeyValue: Display a key value item in this widget. - KeyValue *GoogleChatV1WidgetMarkupKeyValue `json:"keyValue,omitempty"` - - // TextParagraph: Display a text paragraph in this widget. - TextParagraph *GoogleChatV1WidgetMarkupTextParagraph `json:"textParagraph,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Buttons") 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. "Buttons") 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 *GoogleChatV1WidgetMarkup) MarshalJSON() ([]byte, error) { - type NoMethod GoogleChatV1WidgetMarkup - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// GoogleChatV1WidgetMarkupButton: A button. Can be a text button or an -// image button. -type GoogleChatV1WidgetMarkupButton struct { - // ImageButton: A button with image and `onclick` action. - ImageButton *GoogleChatV1WidgetMarkupImageButton `json:"imageButton,omitempty"` - - // TextButton: A button with text and `onclick` action. - TextButton *GoogleChatV1WidgetMarkupTextButton `json:"textButton,omitempty"` - - // ForceSendFields is a list of field names (e.g. "ImageButton") 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. "ImageButton") 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 *GoogleChatV1WidgetMarkupButton) MarshalJSON() ([]byte, error) { - type NoMethod GoogleChatV1WidgetMarkupButton - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// GoogleChatV1WidgetMarkupFormAction: A form action describes the -// behavior when the form is submitted. For example, you can invoke Apps -// Script to handle the form. -type GoogleChatV1WidgetMarkupFormAction struct { - // ActionMethodName: The method name is used to identify which part of - // the form triggered the form submission. This information is echoed - // back to the Chat app as part of the card click event. You can use the - // same method name for several elements that trigger a common behavior. - ActionMethodName string `json:"actionMethodName,omitempty"` - - // Parameters: List of action parameters. - Parameters []*GoogleChatV1WidgetMarkupFormActionActionParameter `json:"parameters,omitempty"` - - // ForceSendFields is a list of field names (e.g. "ActionMethodName") 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. "ActionMethodName") 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 *GoogleChatV1WidgetMarkupFormAction) MarshalJSON() ([]byte, error) { - type NoMethod GoogleChatV1WidgetMarkupFormAction - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// GoogleChatV1WidgetMarkupFormActionActionParameter: List of string -// parameters to supply when the action method is invoked. For example, -// consider three snooze buttons: snooze now, snooze one day, snooze -// next week. You might use `action method = snooze()`, passing the -// snooze type and snooze time in the list of string parameters. -type GoogleChatV1WidgetMarkupFormActionActionParameter struct { - // Key: The name of the parameter for the action script. - Key string `json:"key,omitempty"` - - // Value: The value of the parameter. - Value string `json:"value,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Key") 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. "Key") 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 *GoogleChatV1WidgetMarkupFormActionActionParameter) MarshalJSON() ([]byte, error) { - type NoMethod GoogleChatV1WidgetMarkupFormActionActionParameter - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// GoogleChatV1WidgetMarkupImage: An image that's specified by a URL and -// can have an `onclick` action. -type GoogleChatV1WidgetMarkupImage struct { - // AspectRatio: The aspect ratio of this image (width and height). This - // field lets you reserve the right height for the image while waiting - // for it to load. It's not meant to override the built-in aspect ratio - // of the image. If unset, the server fills it by prefetching the image. - AspectRatio float64 `json:"aspectRatio,omitempty"` - - // ImageUrl: The URL of the image. - ImageUrl string `json:"imageUrl,omitempty"` - - // OnClick: The `onclick` action. - OnClick *GoogleChatV1WidgetMarkupOnClick `json:"onClick,omitempty"` - - // ForceSendFields is a list of field names (e.g. "AspectRatio") 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. "AspectRatio") 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 *GoogleChatV1WidgetMarkupImage) MarshalJSON() ([]byte, error) { - type NoMethod GoogleChatV1WidgetMarkupImage - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -func (s *GoogleChatV1WidgetMarkupImage) UnmarshalJSON(data []byte) error { - type NoMethod GoogleChatV1WidgetMarkupImage - var s1 struct { - AspectRatio gensupport.JSONFloat64 `json:"aspectRatio"` - *NoMethod - } - s1.NoMethod = (*NoMethod)(s) - if err := json.Unmarshal(data, &s1); err != nil { - return err - } - s.AspectRatio = float64(s1.AspectRatio) - return nil -} - -// GoogleChatV1WidgetMarkupImageButton: An image button with an -// `onclick` action. -type GoogleChatV1WidgetMarkupImageButton struct { - // Icon: The icon specified by an `enum` that indices to an icon - // provided by Chat API. - // - // Possible values: - // "ICON_UNSPECIFIED" - // "AIRPLANE" - // "BOOKMARK" - // "BUS" - // "CAR" - // "CLOCK" - // "CONFIRMATION_NUMBER_ICON" - // "DOLLAR" - // "DESCRIPTION" - // "EMAIL" - // "EVENT_PERFORMER" - // "EVENT_SEAT" - // "FLIGHT_ARRIVAL" - // "FLIGHT_DEPARTURE" - // "HOTEL" - // "HOTEL_ROOM_TYPE" - // "INVITE" - // "MAP_PIN" - // "MEMBERSHIP" - // "MULTIPLE_PEOPLE" - // "OFFER" - // "PERSON" - // "PHONE" - // "RESTAURANT_ICON" - // "SHOPPING_CART" - // "STAR" - // "STORE" - // "TICKET" - // "TRAIN" - // "VIDEO_CAMERA" - // "VIDEO_PLAY" - Icon string `json:"icon,omitempty"` - - // IconUrl: The icon specified by a URL. - IconUrl string `json:"iconUrl,omitempty"` - - // Name: The name of this `image_button` that's used for accessibility. - // Default value is provided if this name isn't specified. - Name string `json:"name,omitempty"` - - // OnClick: The `onclick` action. - OnClick *GoogleChatV1WidgetMarkupOnClick `json:"onClick,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Icon") 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. "Icon") 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 *GoogleChatV1WidgetMarkupImageButton) MarshalJSON() ([]byte, error) { - type NoMethod GoogleChatV1WidgetMarkupImageButton - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// GoogleChatV1WidgetMarkupKeyValue: A UI element contains a key (label) -// and a value (content). This element can also contain some actions -// such as `onclick` button. -type GoogleChatV1WidgetMarkupKeyValue struct { - // BottomLabel: The text of the bottom label. Formatted text supported. - // For more information about formatting text, see Formatting text in - // Google Chat apps - // (https://developers.google.com/chat/api/guides/message-formats/cards#card_text_formatting) - // and Formatting text in Google Workspace Add-ons - // (https://developers.google.com/apps-script/add-ons/concepts/widgets#text_formatting). - BottomLabel string `json:"bottomLabel,omitempty"` - - // Button: A button that can be clicked to trigger an action. - Button *GoogleChatV1WidgetMarkupButton `json:"button,omitempty"` - - // Content: The text of the content. Formatted text supported and always - // required. For more information about formatting text, see Formatting - // text in Google Chat apps - // (https://developers.google.com/chat/api/guides/message-formats/cards#card_text_formatting) - // and Formatting text in Google Workspace Add-ons - // (https://developers.google.com/apps-script/add-ons/concepts/widgets#text_formatting). - Content string `json:"content,omitempty"` - - // ContentMultiline: If the content should be multiline. - ContentMultiline bool `json:"contentMultiline,omitempty"` - - // Icon: An enum value that's replaced by the Chat API with the - // corresponding icon image. - // - // Possible values: - // "ICON_UNSPECIFIED" - // "AIRPLANE" - // "BOOKMARK" - // "BUS" - // "CAR" - // "CLOCK" - // "CONFIRMATION_NUMBER_ICON" - // "DOLLAR" - // "DESCRIPTION" - // "EMAIL" - // "EVENT_PERFORMER" - // "EVENT_SEAT" - // "FLIGHT_ARRIVAL" - // "FLIGHT_DEPARTURE" - // "HOTEL" - // "HOTEL_ROOM_TYPE" - // "INVITE" - // "MAP_PIN" - // "MEMBERSHIP" - // "MULTIPLE_PEOPLE" - // "OFFER" - // "PERSON" - // "PHONE" - // "RESTAURANT_ICON" - // "SHOPPING_CART" - // "STAR" - // "STORE" - // "TICKET" - // "TRAIN" - // "VIDEO_CAMERA" - // "VIDEO_PLAY" - Icon string `json:"icon,omitempty"` - - // IconUrl: The icon specified by a URL. - IconUrl string `json:"iconUrl,omitempty"` - - // OnClick: The `onclick` action. Only the top label, bottom label, and - // content region are clickable. - OnClick *GoogleChatV1WidgetMarkupOnClick `json:"onClick,omitempty"` - - // TopLabel: The text of the top label. Formatted text supported. For - // more information about formatting text, see Formatting text in Google - // Chat apps - // (https://developers.google.com/chat/api/guides/message-formats/cards#card_text_formatting) - // and Formatting text in Google Workspace Add-ons - // (https://developers.google.com/apps-script/add-ons/concepts/widgets#text_formatting). - TopLabel string `json:"topLabel,omitempty"` - - // ForceSendFields is a list of field names (e.g. "BottomLabel") 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. "BottomLabel") 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 *GoogleChatV1WidgetMarkupKeyValue) MarshalJSON() ([]byte, error) { - type NoMethod GoogleChatV1WidgetMarkupKeyValue - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// GoogleChatV1WidgetMarkupOnClick: An `onclick` action (for example, -// open a link). -type GoogleChatV1WidgetMarkupOnClick struct { - // Action: A form action is triggered by this `onclick` action if - // specified. - Action *GoogleChatV1WidgetMarkupFormAction `json:"action,omitempty"` - - // OpenLink: This `onclick` action triggers an open link action if - // specified. - OpenLink *GoogleChatV1WidgetMarkupOpenLink `json:"openLink,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Action") 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. "Action") 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 *GoogleChatV1WidgetMarkupOnClick) MarshalJSON() ([]byte, error) { - type NoMethod GoogleChatV1WidgetMarkupOnClick - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// GoogleChatV1WidgetMarkupOpenLink: A link that opens a new window. -type GoogleChatV1WidgetMarkupOpenLink struct { - // Url: The URL to open. - Url string `json:"url,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Url") 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. "Url") 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 *GoogleChatV1WidgetMarkupOpenLink) MarshalJSON() ([]byte, error) { - type NoMethod GoogleChatV1WidgetMarkupOpenLink - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// GoogleChatV1WidgetMarkupTextButton: A button with text and `onclick` -// action. -type GoogleChatV1WidgetMarkupTextButton struct { - // OnClick: The `onclick` action of the button. - OnClick *GoogleChatV1WidgetMarkupOnClick `json:"onClick,omitempty"` - - // Text: The text of the button. - Text string `json:"text,omitempty"` - - // ForceSendFields is a list of field names (e.g. "OnClick") 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. "OnClick") 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 *GoogleChatV1WidgetMarkupTextButton) MarshalJSON() ([]byte, error) { - type NoMethod GoogleChatV1WidgetMarkupTextButton - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// GoogleChatV1WidgetMarkupTextParagraph: A paragraph of text. Formatted -// text supported. For more information about formatting text, see -// Formatting text in Google Chat apps -// (https://developers.google.com/chat/api/guides/message-formats/cards#card_text_formatting) -// and Formatting text in Google Workspace Add-ons -// (https://developers.google.com/apps-script/add-ons/concepts/widgets#text_formatting). -type GoogleChatV1WidgetMarkupTextParagraph struct { - Text string `json:"text,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Text") 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. "Text") 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 *GoogleChatV1WidgetMarkupTextParagraph) MarshalJSON() ([]byte, error) { - type NoMethod GoogleChatV1WidgetMarkupTextParagraph - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// GoogleDocsMetadata: The corpus specific metadata for office-type -// documents, from Google Docs and other sources. This message is passed -// to the scorer and beyond. Next tag: 9 -type GoogleDocsMetadata struct { - // AclInfo: Contains number of users and groups which can access the - // document. - AclInfo *AclInfo `json:"aclInfo,omitempty"` - - // DocumentType: The conceptual type (presentation, document, etc.) of - // this document. - // - // Possible values: - // "UNKNOWN" - If the type is unknown or not represented in this enum. - // "DOCUMENT" - Writely, Word, etc. - // "PRESENTATION" - Presently, PowerPoint, etc. - // "SPREADSHEET" - Trix, Excel, etc. - // "PDF" - File types for Gdrive objects are below. - // "IMAGE" - // "BINARY_BLOB" - Fall-back for unknown Gdrive types. - // "FUSION_TABLE" - // "FOLDER" - // "DRAWING" - // "VIDEO" - // "FORM" - // "DRAFT_SITE" - For Atari page and site drafts - // "DRAFT_SITE_PAGE" - // "JAM" - Jamboard Jams (go/jam) - // "SHORTCUT" - Drive Shortcuts (go/shortcuts) - // "SCRIPT" - DocumentType string `json:"documentType,omitempty"` - - // FileExtension: The file extension of the document. NOTE: As of - // October 2018 this field is not backfilled for old documents. - FileExtension string `json:"fileExtension,omitempty"` - - // LastContentModifiedTimestamp: The last time this document was - // modified, in seconds since epoch. Only counts content modifications. - LastContentModifiedTimestamp int64 `json:"lastContentModifiedTimestamp,omitempty,string"` - - // NumSubscribers: Contains number of subscribers for the document. - NumSubscribers int64 `json:"numSubscribers,omitempty"` - - // NumViewers: Size of untruncated viewers list. - NumViewers int64 `json:"numViewers,omitempty"` - - // ResultInfo: Additional per-result information, akin to Gmail's - // SingleThreadResponse. Note: GWS no longer seems to use this field, - // but there's still one reference to it for Scribe, so we can't remove - // it. - ResultInfo *GoogleDocsResultInfo `json:"resultInfo,omitempty"` - - // TypeInfo: Contains additional information about the document - // depending on its type. - TypeInfo *TypeInfo `json:"typeInfo,omitempty"` - - // ForceSendFields is a list of field names (e.g. "AclInfo") 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. "AclInfo") 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 *GoogleDocsMetadata) MarshalJSON() ([]byte, error) { - type NoMethod GoogleDocsMetadata - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// GoogleDocsResultInfo: A message containing information about a -// specific result. This information is passed to the scorer and beyond; -// in particular, GWS relies on it to format the result in the UI. Split -// from GoogleDocsMetadata in case we later want to reuse the message. -type GoogleDocsResultInfo struct { - // AttachmentSha1: The SHA1 hash of the object in Drive, if any. - AttachmentSha1 string `json:"attachmentSha1,omitempty"` - - // CosmoId: The storage identifier for the object in Cosmo. This field - // is intended to used by Stratus/Moonshine integration only. It should - // not be exposed externally (please refer to encrypted_id for that - // purpose). - CosmoId *Id `json:"cosmoId,omitempty"` - - // CosmoNameSpace: For Cosmo objects, the Cosmo namespace the object was - // in. This allows downstream clients to identify whether a document was - // created in Writely or Kix, Presently or Punch, or whether it was - // uploaded from GDrive. See storage_cosmo.Id.NAME_SPACE for a list of - // all Cosmo name spaces. - CosmoNameSpace int64 `json:"cosmoNameSpace,omitempty"` - - // EncryptedId: The encrypted (user-visible) id of this object. Knowing - // the id is sufficient to create a canonical URL for this document. - EncryptedId string `json:"encryptedId,omitempty"` - - // MimeType: The mimetype of the document. - MimeType string `json:"mimeType,omitempty"` - - // ShareScope: The visibility indicator in the UI will be based upon - // this. - ShareScope *ShareScope `json:"shareScope,omitempty"` - - // ForceSendFields is a list of field names (e.g. "AttachmentSha1") 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. "AttachmentSha1") 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 *GoogleDocsResultInfo) MarshalJSON() ([]byte, error) { - type NoMethod GoogleDocsResultInfo - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -type Grid struct { - // BorderStyle: The border style to apply to each grid item. - BorderStyle *BorderStyle `json:"borderStyle,omitempty"` - - // Items: The items to display in the grid. - Items []*GridItem `json:"items,omitempty"` - - // NumColumns: The number of columns to display in the grid. Note that a - // default value will be used if this field is not specified, and that - // default value will be different depending on where the grid is shown - // (dialog vs companion). - NumColumns int64 `json:"numColumns,omitempty"` - - // OnClick: This callback will be reused by each individual GridItem, - // but with the item's identifier and index in the items list added to - // the callback's parameters. - OnClick *OnClick `json:"onClick,omitempty"` - - // Title: The text to display in the grid header. - Title string `json:"title,omitempty"` - - // ForceSendFields is a list of field names (e.g. "BorderStyle") 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. "BorderStyle") 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 *Grid) MarshalJSON() ([]byte, error) { - type NoMethod Grid - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -type GridItem struct { - // Identifier: A user-specified identifier for this grid item. This - // identifier will be returned in the parent Grid's on_click callback's - // parameters. - Identifier string `json:"identifier,omitempty"` - - Image *ImageComponent `json:"image,omitempty"` - - // Possible values: - // "NOT_SET" - // "TEXT_BELOW" - The title and subtitle are shown below the grid - // item's image. - // "TEXT_ABOVE" - The title and subtitle are shown above the grid - // item's image. - Layout string `json:"layout,omitempty"` - - Subtitle string `json:"subtitle,omitempty"` - - // Possible values: - // "HORIZONTAL_ALIGNMENT_UNSPECIFIED" - // "START" - // "CENTER" - // "END" - TextAlignment string `json:"textAlignment,omitempty"` - - // Title: Text properties. - Title string `json:"title,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Identifier") 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. "Identifier") 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 *GridItem) MarshalJSON() ([]byte, error) { - type NoMethod GridItem - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -type GroupDetailsUpdatedMetadata struct { - NewGroupDetails *AppsDynamiteSharedGroupDetails `json:"newGroupDetails,omitempty"` - - PrevGroupDetails *AppsDynamiteSharedGroupDetails `json:"prevGroupDetails,omitempty"` - - // ForceSendFields is a list of field names (e.g. "NewGroupDetails") 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. "NewGroupDetails") 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 *GroupDetailsUpdatedMetadata) MarshalJSON() ([]byte, error) { - type NoMethod GroupDetailsUpdatedMetadata - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// GroupId: Id representing a group that could be a space, a chat, or a -// direct message space. Which ID is set here will determine which group -type GroupId struct { - // DmId: Unique, immutable ID of the Direct Message Space - DmId *DmId `json:"dmId,omitempty"` - - // SpaceId: Unique, immutable ID of the Space - SpaceId *SpaceId `json:"spaceId,omitempty"` - - // ForceSendFields is a list of field names (e.g. "DmId") 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. "DmId") 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 *GroupId) MarshalJSON() ([]byte, error) { - type NoMethod GroupId - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -type GroupLinkSharingModificationEvent struct { - // Possible values: - // "UNKNOWN_LINK_SHARING_STATUS" - // "LINK_SHARING_ON" - Link sharing is turned on. - // "LINK_SHARING_OFF" - Link sharing is turned off. - // "NOT_AVAILABLE" - Link sharing is not available for the - // conversation. - NewStatus string `json:"newStatus,omitempty"` - - // ForceSendFields is a list of field names (e.g. "NewStatus") 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. "NewStatus") 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 *GroupLinkSharingModificationEvent) MarshalJSON() ([]byte, error) { - type NoMethod GroupLinkSharingModificationEvent - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -type GroupRetentionSettingsUpdatedMetaData struct { - // Initiator: The user who triggered the retention settings update - Initiator *UserId `json:"initiator,omitempty"` - - // RetentionSettings: The updated space retention settings - RetentionSettings *AppsDynamiteSharedRetentionSettings `json:"retentionSettings,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Initiator") 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. "Initiator") 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 *GroupRetentionSettingsUpdatedMetaData) MarshalJSON() ([]byte, error) { - type NoMethod GroupRetentionSettingsUpdatedMetaData - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// GsuiteIntegrationMetadata: Annotation metadata for a -// GsuiteIntegration artifact. -type GsuiteIntegrationMetadata struct { - ActivityFeedData *AppsDynamiteSharedActivityFeedAnnotationData `json:"activityFeedData,omitempty"` - - AssistantData *AppsDynamiteSharedAssistantAnnotationData `json:"assistantData,omitempty"` - - CalendarEventData *AppsDynamiteSharedCalendarEventAnnotationData `json:"calendarEventData,omitempty"` - - // CallData: Data used to render call artifacts. - CallData *AppsDynamiteSharedCallAnnotationData `json:"callData,omitempty"` - - // Possible values: - // "UNKNOWN_CLIENT_TYPE" - // "MEET" - // "TASKS" - // "CALENDAR_EVENT" - // "ASSISTANT" - // "ACTIVITY_FEED_SERVICE" - ClientType string `json:"clientType,omitempty"` - - // IndexableTexts: A list of all strings that are to be indexed for this - // 1P chip. Each string in this list would be the contents of a single - // string field in the 1P chip. Eg. For Tasks[title = “hello world”, - // description = “good bye”]. If we want to index only the title, - // this would be set to [“hello world”]. If both title and - // description, then this would be [“hello world”, “good bye”]. - // Please make sure that the contents of this field is a subset of - // strings that are rendered as part of the 1P Chip. - IndexableTexts []string `json:"indexableTexts,omitempty"` - - TasksData *AppsDynamiteSharedTasksAnnotationData `json:"tasksData,omitempty"` - - // ForceSendFields is a list of field names (e.g. "ActivityFeedData") 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. "ActivityFeedData") 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 *GsuiteIntegrationMetadata) MarshalJSON() ([]byte, error) { - type NoMethod GsuiteIntegrationMetadata - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -type HangoutEvent struct { - HangoutDurationSecs int64 `json:"hangoutDurationSecs,omitempty,string"` - - // Possible values: - // "AUDIO_VIDEO" - // "AUDIO_ONLY" - // "PUSH_TO_TALK" - A user has started a PTT broadcast. When receiving - // a notification with this HangoutMediaType, other users in the - // conversation will take different actions depending on their active - // clients: a) If there is a recent "reasonable" active client, the user - // will join hangout and play audio. b) If there is no "reasonable" - // active client an invite will be displayed on all clients. - MediaType string `json:"mediaType,omitempty"` - - ParticipantId []*StoredParticipantId `json:"participantId,omitempty"` - - // Possible values: - // "START_HANGOUT" - // "JOIN_HANGOUT" - // "LEAVE_HANGOUT" - // "END_HANGOUT" - // "HANGOUT_COMING_SOON" - // "ONGOING_HANGOUT" - Type string `json:"type,omitempty"` - - // ForceSendFields is a list of field names (e.g. "HangoutDurationSecs") - // 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. "HangoutDurationSecs") 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 *HangoutEvent) MarshalJSON() ([]byte, error) { - type NoMethod HangoutEvent - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// HangoutVideoEventMetadata: A message representing the Hangout video -// start/end events in Babel -type HangoutVideoEventMetadata struct { - // Possible values: - // "UNKNOWN_HANGOUT_VIDEO_EVENT_TYPE" - // "VIDEO_START" - // "VIDEO_END" - HangoutVideoType string `json:"hangoutVideoType,omitempty"` - - // ForceSendFields is a list of field names (e.g. "HangoutVideoType") 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. "HangoutVideoType") 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 *HangoutVideoEventMetadata) MarshalJSON() ([]byte, error) { - type NoMethod HangoutVideoEventMetadata - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// HashtagData: Hashtag metadata, for HASHTAG segments. For a hashtag, -// the "text" field should contain the display text, and the search_text -// field should represent the topic being referenced, without the hash -// symbol; for example, we might have: text = "#Google" -// hashtag_data.search_text = "Google" Another example: text = -// "#pikachu" hashtag_data.search_text = "Pokemon" Both strings should -// be considered part of the searchable text. In go/sbe, both are -// indexed and searchable. -type HashtagData struct { - SearchText string `json:"searchText,omitempty"` - - // ForceSendFields is a list of field names (e.g. "SearchText") 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. "SearchText") 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 *HashtagData) MarshalJSON() ([]byte, error) { - type NoMethod HashtagData - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// History: The most recent history records associated with the item. -type History struct { - Record []*HistoryRecord `json:"record,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Record") 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. "Record") 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 *History) MarshalJSON() ([]byte, error) { - type NoMethod History - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -type HistoryRecord struct { - // ClientContext: This will almost always be set, but there are corner - // cases in which the information is not available, and thus - // applications must handle its absence appropriately. - ClientContext *ClientContext `json:"clientContext,omitempty"` - - FilterUpdate *FilterUpdate `json:"filterUpdate,omitempty"` - - ImapUpdate *ImapUpdate `json:"imapUpdate,omitempty"` - - LabelUpdate *LabelUpdate `json:"labelUpdate,omitempty"` - - PrefUpdate *PrefUpdate `json:"prefUpdate,omitempty"` - - // RecordId: Each HistoryRecord has a unique id. Ids are monotonically - // increasing, and not necessarily contiguous. - RecordId uint64 `json:"recordId,omitempty,string"` - - ThreadUpdate *ThreadUpdate `json:"threadUpdate,omitempty"` - - // TransactionContext: This will almost always be set, but there are - // corner cases in which the information is not available, and thus - // applications must handle its absence appropriately. - TransactionContext *TransactionContext `json:"transactionContext,omitempty"` - - TxnDebugInfo *TransactionDebugInfo `json:"txnDebugInfo,omitempty"` - - // Possible values: - // "UNKNOWN" - Represents a type that is deprecated or not known by - // the executing code. Even if Fusebox sends a HistoryRecord with Type - // not UNKNOWN, it may send Type values that are not yet defined on the - // client-side, in which case they will be appear as Type.UNKNOWN on the - // client. - // "INTERNAL" - Represents a change internal to the Fusebox. - // HistoryRecords for Fusebox internal changes contribute to the user's - // version, which is defined as the latest HistoryRecord's record_id. - // INTERNAL HistoryRecords exist to allow a client to update its notion - // of the latest record_id it has processed, but do not necessarily - // contain any other information. - // "MESSAGE_ADDED" - ThreadUpdate: - // "MESSAGE_DELETED" - // "LABEL_ADDED" - // "LABEL_REMOVED" - // "ATTRIBUTE_SET" - // "ATTRIBUTE_REMOVED" - // "THREAD_KEY_SET" - // "LABEL_CREATED" - LabelUpdate: - // "LABEL_DELETED" - // "LABEL_RENAMED" - // "LABEL_UPDATED" - // "PREF_WRITTEN" - PrefUpdate: - // "PREF_DELETED" - // "FILTER_CREATED" - FilterUpdate: - // "FILTER_DELETED" - // "IMAP_UIDS_REASSIGN" - IMAP - // "TOPIC_STATE_UPDATED" - EAI - // "TXN_DEBUG_INFO" - TXN_DEBUG_INFO - Type string `json:"type,omitempty"` - - // ForceSendFields is a list of field names (e.g. "ClientContext") 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. "ClientContext") 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 *HistoryRecord) MarshalJSON() ([]byte, error) { - type NoMethod HistoryRecord - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// HostAppActionMarkup: Actions handled by individual host apps. -type HostAppActionMarkup struct { - // CalendarAction: Actions handled by Calendar. - CalendarAction *CalendarClientActionMarkup `json:"calendarAction,omitempty"` - - // ChatAction: Actions handled by Chat. - ChatAction *ChatClientActionMarkup `json:"chatAction,omitempty"` - - // DriveAction: Actions handled by Drive. - DriveAction *DriveClientActionMarkup `json:"driveAction,omitempty"` - - // EditorAction: Actions handled by Docs, Sheets, or Slides. - EditorAction *EditorClientActionMarkup `json:"editorAction,omitempty"` - - // GmailAction: Actions handled by Gmail. - GmailAction *GmailClientActionMarkup `json:"gmailAction,omitempty"` - - // SheetsAction: Actions handled by Sheets. - SheetsAction *SheetsClientActionMarkup `json:"sheetsAction,omitempty"` - - // ForceSendFields is a list of field names (e.g. "CalendarAction") 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. "CalendarAction") 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 *HostAppActionMarkup) MarshalJSON() ([]byte, error) { - type NoMethod HostAppActionMarkup - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// HostProto: Represents a single host. Optionally, the MDB owner of the -// host can be specified. -type HostProto struct { - // HostName: Lower-case, fully qualified hostname. - HostName string `json:"hostName,omitempty"` - - // HostOwner: If present, then any checks that compare this Principal to - // LOAS peer info must confirm the peer's machine owner is equal to - // 'host_owner'. If absent, then any peer machine owner is acceptable. - HostOwner string `json:"hostOwner,omitempty"` - - // ForceSendFields is a list of field names (e.g. "HostName") 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. "HostName") 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 *HostProto) MarshalJSON() ([]byte, error) { - type NoMethod HostProto - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// HtmlOperatorOptions: Used to provide a search operator for html -// properties. This is optional. Search operators let users restrict the -// query to specific fields relevant to the type of item being searched. -type HtmlOperatorOptions struct { - // OperatorName: Indicates the operator name required in the query in - // order to isolate the html property. For example, if operatorName is - // *subject* and the property's name is *subjectLine*, then queries like - // *subject:* show results only where the value of the property - // named *subjectLine* matches **. By contrast, a search that - // uses the same ** without an operator return all items where - // ** matches the value of any html properties or text within the - // content field for the item. The operator name can only contain - // lowercase letters (a-z). The maximum length is 32 characters. - OperatorName string `json:"operatorName,omitempty"` - - // ForceSendFields is a list of field names (e.g. "OperatorName") 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. "OperatorName") 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 *HtmlOperatorOptions) MarshalJSON() ([]byte, error) { - type NoMethod HtmlOperatorOptions - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// HtmlPropertyOptions: The options for html properties. -type HtmlPropertyOptions struct { - // OperatorOptions: If set, describes how the property should be used as - // a search operator. - OperatorOptions *HtmlOperatorOptions `json:"operatorOptions,omitempty"` - - // RetrievalImportance: Indicates the search quality importance of the - // tokens within the field when used for retrieval. Can only be set to - // DEFAULT or NONE. - RetrievalImportance *RetrievalImportance `json:"retrievalImportance,omitempty"` - - // ForceSendFields is a list of field names (e.g. "OperatorOptions") 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. "OperatorOptions") 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 *HtmlPropertyOptions) MarshalJSON() ([]byte, error) { - type NoMethod HtmlPropertyOptions - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// HtmlValues: List of html values. -type HtmlValues struct { - // Values: The maximum allowable length for html values is 2048 - // characters. - Values []string `json:"values,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Values") 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. "Values") 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 *HtmlValues) MarshalJSON() ([]byte, error) { - type NoMethod HtmlValues - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -type IconImage struct { - // AltText: The alternative text of this icon_url which will be used for - // accessibility. - AltText string `json:"altText,omitempty"` - - // Possible values: - // "NONE" - // "AIRPLANE" - // "BOOKMARK" - // "BUS" - // "CAR" - // "CLOCK" - // "CONFIRMATION_NUMBER_ICON" - // "DOLLAR" - // "DESCRIPTION" - // "EDIT" - // "EDIT_NOTE" - // "EMAIL" - // "EVENT_PERFORMER" - // "EVENT_SEAT" - // "FLIGHT_ARRIVAL" - // "FLIGHT_DEPARTURE" - // "HOTEL" - // "HOTEL_ROOM_TYPE" - // "INVITE" - // "MAP_PIN" - // "MEMBERSHIP" - // "MULTIPLE_PEOPLE" - // "OFFER" - // "OPEN_IN_NEW" - // "PERSON" - // "PHONE" - // "RESTAURANT_ICON" - // "SHOPPING_CART" - // "STAR" - // "STORE" - // "TICKET" - // "TRAIN" - // "VIDEO_CAMERA" - // "VIDEO_PLAY" - Add new items in alphabetical order. Next Available - // ID: 34 - Icon string `json:"icon,omitempty"` - - IconUrl string `json:"iconUrl,omitempty"` - - // ImageStyle: The image cropping style. Note that icons with a CIRCLE - // style are rendered larger than the default icon size. - // - // Possible values: - // "CROP_TYPE_NOT_SET" - No value specified. - // "SQUARE" - Applies a square crop. - // "CIRCLE" - Applies a circular crop. - // "RECTANGLE_CUSTOM" - Applies a rectangular crop with a custom - // aspect ratio. - // "RECTANGLE_4_3" - Applies a rectangular crop with a 4:3 aspect - // ratio. - ImageStyle string `json:"imageStyle,omitempty"` - - // ForceSendFields is a list of field names (e.g. "AltText") 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. "AltText") 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 *IconImage) MarshalJSON() ([]byte, error) { - type NoMethod IconImage - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// Id: Identifies a particular object, including both Users and -// DirEntries. This Id is unique across the entire server instance, such -// as the production or qa instance. -type Id struct { - // CreatorUserId: The User account in which the DirEntry was originally - // created. If name_space==GAIA, then it's the gaia_id of the user this - // id is referring to. This field should really be called the "bucket - // ID", not the creator ID. In some circumstances, such as copying a - // Google Docs file, a user can create an item in a different user's - // bucket, so it should not be relied upon for anything other than - // bucket location. To look up the requesting user who initially created - // item, use the `creator_id` DirEntry field instead. - CreatorUserId uint64 `json:"creatorUserId,omitempty,string"` - - // LocalId: The local identifier for the DirEntry (local to the - // creator's account). local_id + app_name is guaranteed to be unique - // within the creator account, but not across all User accounts. The - // string is case sensitive. Ignore if name_space==GAIA. NB For - // name_space==COSMO, all local_id's should be defined in - // google3/java/com/google/storage/cosmo/server/api/SpecialObjectIds.java - // as they have a special predefined meaning. See - // cosmo.client.CosmoIdFactory.createObjectId(long,String) for IMPORTANT - // recommendations when generating IDs. - LocalId string `json:"localId,omitempty"` - - // NameSpace: The name space in which this id is unique (typically the - // application that created it). Values should be drawn from the above - // enum, but for experimentation, use values greater than 1000. - NameSpace int64 `json:"nameSpace,omitempty"` - - // ForceSendFields is a list of field names (e.g. "CreatorUserId") 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. "CreatorUserId") 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 *Id) MarshalJSON() ([]byte, error) { - type NoMethod Id - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -type Image struct { - // AltText: The alternative text of this image which will be used for - // accessibility. - AltText string `json:"altText,omitempty"` - - // AspectRatio: The aspect ratio of this image (width/height). - AspectRatio float64 `json:"aspectRatio,omitempty"` - - // ImageUrl: Image url specified by developers. Server side, we will - // wrap with FIFE so client apps can configure size/cropping/etc. - ImageUrl string `json:"imageUrl,omitempty"` - - OnClick *OnClick `json:"onClick,omitempty"` - - // ForceSendFields is a list of field names (e.g. "AltText") 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. "AltText") 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 *Image) MarshalJSON() ([]byte, error) { - type NoMethod Image - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -func (s *Image) UnmarshalJSON(data []byte) error { - type NoMethod Image - var s1 struct { - AspectRatio gensupport.JSONFloat64 `json:"aspectRatio"` - *NoMethod - } - s1.NoMethod = (*NoMethod)(s) - if err := json.Unmarshal(data, &s1); err != nil { - return err - } - s.AspectRatio = float64(s1.AspectRatio) - return nil -} - -type ImageButton struct { - // Possible values: - // "NONE" - // "AIRPLANE" - // "BOOKMARK" - // "BUS" - // "CAR" - // "CLOCK" - // "CONFIRMATION_NUMBER_ICON" - // "DOLLAR" - // "DESCRIPTION" - // "EDIT" - // "EDIT_NOTE" - // "EMAIL" - // "EVENT_PERFORMER" - // "EVENT_SEAT" - // "FLIGHT_ARRIVAL" - // "FLIGHT_DEPARTURE" - // "HOTEL" - // "HOTEL_ROOM_TYPE" - // "INVITE" - // "MAP_PIN" - // "MEMBERSHIP" - // "MULTIPLE_PEOPLE" - // "OFFER" - // "OPEN_IN_NEW" - // "PERSON" - // "PHONE" - // "RESTAURANT_ICON" - // "SHOPPING_CART" - // "STAR" - // "STORE" - // "TICKET" - // "TRAIN" - // "VIDEO_CAMERA" - // "VIDEO_PLAY" - Add new items in alphabetical order. Next Available - // ID: 34 - Icon string `json:"icon,omitempty"` - - IconUrl string `json:"iconUrl,omitempty"` - - Name string `json:"name,omitempty"` - - OnClick *OnClick `json:"onClick,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Icon") 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. "Icon") 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 *ImageButton) MarshalJSON() ([]byte, error) { - type NoMethod ImageButton - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// ImageComponent: NOTE: Through future refactoring work, this image -// component will eventually be used in the Image widget, and will -// likely replace the Icon proto as well. -type ImageComponent struct { - AltText string `json:"altText,omitempty"` - - BorderStyle *BorderStyle `json:"borderStyle,omitempty"` - - CropStyle *ImageCropStyle `json:"cropStyle,omitempty"` - - ImageUrl string `json:"imageUrl,omitempty"` - - // ForceSendFields is a list of field names (e.g. "AltText") 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. "AltText") 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 *ImageComponent) MarshalJSON() ([]byte, error) { - type NoMethod ImageComponent - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// ImageCropStyle: Represents a crop style that can be applied to an -// image. -type ImageCropStyle struct { - // AspectRatio: The aspect ratio to use if the crop type is - // RECTANGLE_CUSTOM. - AspectRatio float64 `json:"aspectRatio,omitempty"` - - // Type: The crop type. - // - // Possible values: - // "CROP_TYPE_NOT_SET" - No value specified. - // "SQUARE" - Applies a square crop. - // "CIRCLE" - Applies a circular crop. - // "RECTANGLE_CUSTOM" - Applies a rectangular crop with a custom - // aspect ratio. - // "RECTANGLE_4_3" - Applies a rectangular crop with a 4:3 aspect - // ratio. - Type string `json:"type,omitempty"` - - // ForceSendFields is a list of field names (e.g. "AspectRatio") 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. "AspectRatio") 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 *ImageCropStyle) MarshalJSON() ([]byte, error) { - type NoMethod ImageCropStyle - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -func (s *ImageCropStyle) UnmarshalJSON(data []byte) error { - type NoMethod ImageCropStyle - var s1 struct { - AspectRatio gensupport.JSONFloat64 `json:"aspectRatio"` - *NoMethod - } - s1.NoMethod = (*NoMethod)(s) - if err := json.Unmarshal(data, &s1); err != nil { - return err - } - s.AspectRatio = float64(s1.AspectRatio) - return nil -} - -// ImageKeyValue: This is deprecated and please use KeyValue. -type ImageKeyValue struct { - // Possible values: - // "NONE" - // "AIRPLANE" - // "BOOKMARK" - // "BUS" - // "CAR" - // "CLOCK" - // "CONFIRMATION_NUMBER_ICON" - // "DOLLAR" - // "DESCRIPTION" - // "EDIT" - // "EDIT_NOTE" - // "EMAIL" - // "EVENT_PERFORMER" - // "EVENT_SEAT" - // "FLIGHT_ARRIVAL" - // "FLIGHT_DEPARTURE" - // "HOTEL" - // "HOTEL_ROOM_TYPE" - // "INVITE" - // "MAP_PIN" - // "MEMBERSHIP" - // "MULTIPLE_PEOPLE" - // "OFFER" - // "OPEN_IN_NEW" - // "PERSON" - // "PHONE" - // "RESTAURANT_ICON" - // "SHOPPING_CART" - // "STAR" - // "STORE" - // "TICKET" - // "TRAIN" - // "VIDEO_CAMERA" - // "VIDEO_PLAY" - Add new items in alphabetical order. Next Available - // ID: 34 - Icon string `json:"icon,omitempty"` - - IconUrl string `json:"iconUrl,omitempty"` - - OnClick *OnClick `json:"onClick,omitempty"` - - Text string `json:"text,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Icon") 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. "Icon") 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 *ImageKeyValue) MarshalJSON() ([]byte, error) { - type NoMethod ImageKeyValue - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -type ImapSessionContext struct { - // Possible values: - // "OTHER_APP" - Unknown - // "CHROME" - Browsers Google Chrome - // "FIREFOX" - Mozilla Firefox - // "MSIE" - Microsoft Internet Explorer - // "SAFARI" - Apple Safari - // "OPERA" - Opera - // "EDGE" - Tag #7 used to be CHROME_WEBVIEW, which was deprecated and - // replaced by CHROME_WEBVIEW_APP. When adding a new browser, skip #7 - // for safety. Microsoft Edge - // "MSIE_COMPATIBILITY" - MSIE in Compatibility View. See b/22467241. - // "OTHER_BROWSER" - Browser not otherwise specified - // "SAMSUNG_BROWSER" - Samsung browser on Android - // "UC_BROWSER" - UC Browser - // "ANDROID_BROWSER" - Android's legacy default AOSP browser (distinct - // "YANDEX_BROWSER" - from customized OEM flavours). Yandex Browser - // "SILK_BROWSER" - Amazon Silk browser - // "COC_COC_BROWSER" - Popoular browser in Vietnam - // "HEADLESS_CHROME" - Headless version of Chrome - // "MAX_BROWSER_APP_VALUE" - Tag for the maximum enum value that - // represents a browser. Enum values (strictly) between OTHER_APP and - // this value represent browsers. This should never appear in real data. - // "GMAIL_APP" - Email apps Gmail - // "GMAIL_INBOX_APP" - Inbox by Gmail - // "ANDROID_EMAIL_APP" - Native Android email app - // "SAMSUNG_MAIL_APP" - (replaced by Gmail in Lollipop) Samsung mail - // "MOTO_EMAIL_APP" - Motorola email app - // "BOXER_APP" - Boxer - // "LIMILABS_MAIL_DLL" - Mail.dll by Limilabs - // "BIS_APP" - BlackBerry Internet Service - // "OUTLOOK_MAIL_APP" - Microsoft Outlook - // "APPLE_NATIVE_APP" - Apple apps (mail, contacts & calendar) - // "CHROME_WEBVIEW_APP" - Chrome Webview - // "SAFARI_WEBVIEW_APP" - Safari Webview - // "CHROME_SYNC_APP" - Chrome Sync - // "GSA_APP" - Includes both Now and Search on GSA. - // "GMM_APP" - Maps - // "CALENDAR_APP" - Calendar - // "PLUS_APP" - Google+ - // "HANGOUTS_APP" - Hangouts Classic - // "HANGOUTS_MEET_APP" - Hangouts Meet - // "JAMBOARD_APP" - Jamboard app (go/jamboard) - // "VOICE_APP" - Google Voice - // "PHOTOS_APP" - Photos - // "DRIVE_SYNC_APP" - Drive Sync - // "DRIVE_APP" - Drive - // "DOCS_APP" - Docs - // "SHEETS_APP" - Sheets - // "SLIDES_APP" - Slides - // "KEEP_APP" - Keep - // "WHATS_APP_IN_DRIVE_APP" - WhatsApp in Drive - // "TRANSLATE_APP" - Translate - // "YOUTUBE_APP" - YouTube - // "YOUTUBE_MUSIC_APP" - YouTube Music - // "YOUTUBE_GAMING_APP" - YouTube Gaming - // "YOUTUBE_KIDS_APP" - YouTube Kids - // "YOUTUBE_CAPTURE_APP" - YouTube Capture - // "YOUTUBE_CREATOR_APP" - YouTube Creator Studio - // "YOUTUBE_GO_APP" - YouTube Go - // "YOUTUBE_TV_APP" - YouTube TV - // "YOUTUBE_VR_APP" - YouTube VR - // "PLAY_APP" - Google Play - // "PLAY_MUSIC_APP" - Google Play Music - // "PLAY_BOOKS_APP" - Google Play Books - // "PLAY_MOVIES_APP" - Google Play Movies & TV - // "PLAY_NEWSSTAND_APP" - Google Play Newsstand - // "PLAY_GAMES_APP" - Google Play Games - // "POKEMON_GO_APP" - Pokemon GO (uses Google to sign in) - // "ALLO_APP" - Allo - // "DUO_APP" - Duo - // "CLASSROOM_APP" - Google Classroom - // "TRIPS_APP" - Google Trips - // "GOOGLE_PAY_APP" - Google Pay (formerly Android Pay) - // "WAZE_APP" - Waze - // "ASSISTANT_APP" - Google Assistant standalone app. iOS only, - // "GBOARD_APP" - since on Android OPA is integrated in GSA. Gboard - - // the Google Keyboard - // "NEWS_APP" - Google News & Weather - // "HOME_APP" - Google Home app (rebranded from Chromecast app) - // "EARTH_APP" - Google Earth - // "STREET_VIEW_APP" - Google Street View - // "TEZ_APP" - Tez payment app for India (go/paisa) - // "GOOGLE_ANALYTICS_APP" - Google Analytics - // "ADSENSE_APP" - AdSense - // "ADWORDS_APP" - AdWords - // "EXPRESS_APP" - Google Express (formerly Shopping Express) - // "WEAR_APP" - Android Wear companion app - // "GOOGLE_MY_BUSINESS_APP" - Google My Business - // "FAMILY_LINK_APP" - Google Family Link - // "OPINION_REWARDS_APP" - Google Opinion Rewards - // "WALLET_APP" - Google Wallet - // "ARTS_AND_CULTURE_APP" - Google Arts & Culture - // "ANDROID_DEVICE_MANAGER_APP" - Android Device Manager - // "GOOGLE_GO_APP" - Google Go - // "FILES_GO_APP" - Files Go - // "DATALLY_APP" - Datally - // "WIFI_APP" - Google Wifi (incl. OnHub) - // "STADIA_APP" - Stadia (go/stadia) - // "BATTLESTAR_APP" - Battlestar (go/battlestar) - // "SMART_LOCK_APP" - SmartLock - // "LOGDOG_APP" - Non-browser, non-mail, non-first-party apps LogDog - // (https://getlogdog.com/) - // "DEPRECATED_MAC_OSX_MAIL_APP" - Do not remove this fields - - // remvoing them caused issues in the past (see cl/180425348 for - // reference). - // "DEPRECATED_IOS_MAIL_APP" - App string `json:"app,omitempty"` - - // DeviceType: User agent information - // - // Possible values: - // "UNKNOWN" - Unknown device type. - // "PC" - PCs (incl. Macs). Desktops, laptops and various niche form - // factors that typically run desktop-class OSes (all-in-ones, HTPCs - // etc.). - // "MOBILE" - Primarily used for phones, but also set as default for - // OSes that are predominantly for phones (Android, iOS etc.) when we - // can't determine otherwise. - // "TABLET" - Tablets. - // "PORTABLE_MEDIA_PLAYER" - Mobile devices which are not phones, but - // are capable of storing and playing digital media such as audio, - // images, and video files. Example: iPod. - // "TV" - Smart TVs which interact with Google products without an - // external additional device. Includes TV sets which run Android TV - // directly. Refers to actual TV screens, rather than connected boxes or - // dongles. - // "GAME_CONSOLE" - Devices whose primary purpose is playing games. - // Examples: Xbox, Playstation. - // "MEDIA_PLAYER" - Add-on devices (i.e. devices which require - // connecting to another device, such as screens/TVs/speakers) whose - // primary purpose is media consumption (excludes physical TV screens). - // Examples: Chromecast, Roku, Apple TV, Nexus Player. - // "SMART_SPEAKER" - Examples: Google Home, Amazon Echo. - // "SMART_DISPLAY" - Examples: Google Home Display - // (Quartz/Manhattan/Jasper/Dragonglass), Amazon Echo Spot, Amazon Echo - // Show. - // "CONNECTED_HOME_OTHER" - Other connected home devices which do not - // fit in any of the above categories; that is, neither media- or - // gaming-focused, nor primarily a voice-enabled speaker. - // "WEARABLE" - Wearable devices such as smartwatches. - // "GLASS" - Google Glass. - // "CAR" - Examples: Android Auto (Embedded mode, not mirrored from - // phone). - // "VR_HEADSET" - Standalone VR headsets, such as the Lenovo Mirage - // Solo. Does not include phone-based VR (such as Daydream View or Gear - // VR) or PC/Console-based such as Oculus Rift, HTC Vive and PSVR; in - // such cases, the form factor may be PHONE, PC or GAME_CONSOLE as - // applicable. - DeviceType string `json:"deviceType,omitempty"` - - // GuidFingerprint: As agreed with Bond team, this holds the fingerprint - // of any "aguid" or "guid" provided by the ID command. The fingerprint - // should be calculated by fingerprint2011. Note that not all clients - // will provide aguid or guid through ID command. - GuidFingerprint uint64 `json:"guidFingerprint,omitempty,string"` - - // Possible values: - // "UNKNOWN_OS" - // "ANDROID_OS" - Mobile operating systems (1-99). - // "IOS_OS" - // "BLACKBERRY_OS" - // "WIN_PHONE_OS" - // "FIRE_OS" - Amazon Fire OS (for Kindle Fire devices or Fire TV). - // "MAX_MOBILE_OS_VALUE" - Tag for the maximum enum value that - // represents a mobile OS. Enum values (strictly) between UNKNOWN_OS and - // this value represent mobile OSes. This should never appear in real - // data. - // "WINDOWS_OS" - PC operating systems. - // "LINUX_OS" - // "MAC_OS" - // "CHROME_OS" - // "PLAYSTATION_OS" - The OS powering Playstation consoles. Ignores OS - // changes across console generations. - // "XBOX_OS" - The Windows-derived OS used on Xbox consoles. - // "TIZEN_OS" - Tizen OS, popular in Samsung TVs, watches and more. - // "APPLE_TV_OS" - Apple tvOS (powering the Apple TV). - // "KAI_OS" - KaiOS, a fork from Firefox OS that is between a full - // smartphone and a feature phone. Notably, it supports the Google - // Assistant. go/kaiosama - // "ANDROID_THINGS_OS" - Android optimized for IoT devices. go/things - // "CAST_OS" - Cast family devices, including Chromecast, Google Home, - // and third-party speaker with integrated Assistant. - // "STADIA_OS" - Stadia on Cast devices. This is not truly an OS, but - // it's a temporary setting since Stadia uses a different sign-in flow - // (and is revoked differently) from Cast. See - // http://go/stadia-in-google-account. Do not use without discussing - // with id-devices-eng@. - Os string `json:"os,omitempty"` - - OsVersion *OsVersion `json:"osVersion,omitempty"` - - PossiblyTrimmedModel *PossiblyTrimmedModel `json:"possiblyTrimmedModel,omitempty"` - - // ForceSendFields is a list of field names (e.g. "App") 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. "App") 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 *ImapSessionContext) MarshalJSON() ([]byte, error) { - type NoMethod ImapSessionContext - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// ImapSyncDelete: Message delete history record extension that exports -// //imapsync/folder attribute of deleted messages which have ^is label. -type ImapSyncDelete struct { - // Mappings: Contains the value of //imapsync/folder attribute of - // deleted message. - Mappings *FolderAttribute `json:"mappings,omitempty"` - - MsgId uint64 `json:"msgId,omitempty,string"` - - // ForceSendFields is a list of field names (e.g. "Mappings") 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. "Mappings") 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 *ImapSyncDelete) MarshalJSON() ([]byte, error) { - type NoMethod ImapSyncDelete - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -type ImapUidsReassign struct { - // LabelId: Label - LabelId string `json:"labelId,omitempty"` - - // MessageId: The message Ids - MessageId googleapi.Uint64s `json:"messageId,omitempty"` - - // ForceSendFields is a list of field names (e.g. "LabelId") 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. "LabelId") 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 *ImapUidsReassign) MarshalJSON() ([]byte, error) { - type NoMethod ImapUidsReassign - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// ImapUpdate: HistoryRecord for changes associated with IMAP, namely: -// IMAP_UIDS_REASSIGN -type ImapUpdate struct { - ImapUidsReassign *ImapUidsReassign `json:"imapUidsReassign,omitempty"` - - // ForceSendFields is a list of field names (e.g. "ImapUidsReassign") 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. "ImapUidsReassign") 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 *ImapUpdate) MarshalJSON() ([]byte, error) { - type NoMethod ImapUpdate - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -type ImapsyncFolderAttributeFolderMessage struct { - // Flags: Flags of the message. Represents unseen and flagged state. - Flags *ImapsyncFolderAttributeFolderMessageFlags `json:"flags,omitempty"` - - // Uid: UID of the message. - Uid uint64 `json:"uid,omitempty,string"` - - // ForceSendFields is a list of field names (e.g. "Flags") 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. "Flags") 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 *ImapsyncFolderAttributeFolderMessage) MarshalJSON() ([]byte, error) { - type NoMethod ImapsyncFolderAttributeFolderMessage - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -type ImapsyncFolderAttributeFolderMessageFlags struct { - // Flagged: Flagged state of the message. - Flagged bool `json:"flagged,omitempty"` - - // Seen: Seen state of the message. - Seen bool `json:"seen,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Flagged") 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. "Flagged") 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 *ImapsyncFolderAttributeFolderMessageFlags) MarshalJSON() ([]byte, error) { - type NoMethod ImapsyncFolderAttributeFolderMessageFlags - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// IncomingWebhookChangedMetadata: Annotation metadata to display system -// messages for incoming webhook events. Next Tag: 7 -type IncomingWebhookChangedMetadata struct { - // IncomingWebhookName: The webhook name at the time of the change. Used - // in Spanner storage, BE API responses and FE API responses. - IncomingWebhookName string `json:"incomingWebhookName,omitempty"` - - // InitiatorId: The user id of the user whose action triggered this - // system message. Used in Spanner storage, BE API responses and FE API - // responses. - InitiatorId *UserId `json:"initiatorId,omitempty"` - - // InitiatorProfile: Complete profile when ListTopicsRequest - // FetchOptions.USER is set. Otherwise, only the id will be filled in. - // Used in FE API responses. - InitiatorProfile *User `json:"initiatorProfile,omitempty"` - - // ObfuscatedIncomingWebhookId: The webhook id of the incoming webhook - // in question. This field should not be used to load webhook - // information dynamically and is only present for debugging purposes. - // Used in Spanner storage, BE API responses and FE API responses. - ObfuscatedIncomingWebhookId string `json:"obfuscatedIncomingWebhookId,omitempty"` - - // OldIncomingWebhookName: Only populated for UPDATED_NAME and - // UPDATED_NAME_AND_AVATAR events, where the webhook name was changed. - // Used in Spanner storage, BE API responses and FE API responses. - OldIncomingWebhookName string `json:"oldIncomingWebhookName,omitempty"` - - // Type: Used in Spanner storage, BE API responses and FE API responses. - // - // Possible values: - // "UNSPECIFIED" - // "ADDED" - // "UPDATED" - TODO (b/154857280): remove UPDATED field. - // "REMOVED" - // "UPDATED_NAME" - // "UPDATED_AVATAR" - // "UPDATED_NAME_AND_AVATAR" - Type string `json:"type,omitempty"` - - // ForceSendFields is a list of field names (e.g. "IncomingWebhookName") - // 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. "IncomingWebhookName") 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 *IncomingWebhookChangedMetadata) MarshalJSON() ([]byte, error) { - type NoMethod IncomingWebhookChangedMetadata - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -type IndexItemOptions struct { - // AllowUnknownGsuitePrincipals: Specifies if the index request should - // allow Google Workspace principals that do not exist or are deleted. - AllowUnknownGsuitePrincipals bool `json:"allowUnknownGsuitePrincipals,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "AllowUnknownGsuitePrincipals") 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. - // "AllowUnknownGsuitePrincipals") 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 *IndexItemOptions) MarshalJSON() ([]byte, error) { - type NoMethod IndexItemOptions - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -type IndexItemRequest struct { - // ConnectorName: The name of connector making this call. Format: - // datasources/{source_id}/connectors/{ID} - ConnectorName string `json:"connectorName,omitempty"` - - // DebugOptions: Common debug options. - DebugOptions *DebugOptions `json:"debugOptions,omitempty"` - - IndexItemOptions *IndexItemOptions `json:"indexItemOptions,omitempty"` - - // Item: The name of the item. Format: - // datasources/{source_id}/items/{item_id} - Item *Item `json:"item,omitempty"` - - // Mode: Required. The RequestMode for this request. - // - // Possible values: - // "UNSPECIFIED" - The priority is not specified in the update - // request. Leaving priority unspecified results in an update failure. - // "SYNCHRONOUS" - For real-time updates. - // "ASYNCHRONOUS" - For changes that are executed after the response - // is sent back to the caller. - Mode string `json:"mode,omitempty"` - - // ForceSendFields is a list of field names (e.g. "ConnectorName") 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. "ConnectorName") 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 *IndexItemRequest) MarshalJSON() ([]byte, error) { - type NoMethod IndexItemRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// InitializeCustomerRequest: Request message for `InitializeCustomer` -// method. -type InitializeCustomerRequest struct { -} - -type InsertContent struct { - // Content: The content to be inserted. - Content string `json:"content,omitempty"` - - // ContentType: The type of inserted content. - // - // Possible values: - // "UNSPECIFIED_CONTENT_TYPE" - Default value when nothing is set for - // ContentType. - // "TEXT" - Specifies that the content is in plain text. - // "MUTABLE_HTML" - Specifies that the content is in HTML and is - // mutable (can be edited). - // "IMMUTABLE_HTML" - Specifies that the content is in HTML and is - // immutable (cannot be edited). - ContentType string `json:"contentType,omitempty"` - - // Possible values: - // "UNSPECIFIED_EMAIL_MIME_TYPE" - Default value when nothing is set - // for EmailMimeType. - // "PLAIN_TEXT" - Specifies that the inserted content is in plain - // text. - // "HTML" - Specifies that the inserted content is in HTML. - MimeType string `json:"mimeType,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 *InsertContent) MarshalJSON() ([]byte, error) { - type NoMethod InsertContent - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// IntegerFacetingOptions: Used to specify integer faceting options. -type IntegerFacetingOptions struct { - // IntegerBuckets: Buckets for given integer values should be in - // strictly ascending order. For example, if values supplied are - // (1,5,10,100), the following facet buckets will be formed {<1, [1,5), - // [5-10), [10-100), >=100}. - IntegerBuckets googleapi.Int64s `json:"integerBuckets,omitempty"` - - // ForceSendFields is a list of field names (e.g. "IntegerBuckets") 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. "IntegerBuckets") 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 *IntegerFacetingOptions) MarshalJSON() ([]byte, error) { - type NoMethod IntegerFacetingOptions - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// IntegerOperatorOptions: Used to provide a search operator for integer -// properties. This is optional. Search operators let users restrict the -// query to specific fields relevant to the type of item being searched. -type IntegerOperatorOptions struct { - // GreaterThanOperatorName: Indicates the operator name required in the - // query in order to isolate the integer property using the greater-than - // operator. For example, if greaterThanOperatorName is *priorityabove* - // and the property's name is *priorityVal*, then queries like - // *priorityabove:* show results only where the value of the - // property named *priorityVal* is greater than **. The operator - // name can only contain lowercase letters (a-z). The maximum length is - // 32 characters. - GreaterThanOperatorName string `json:"greaterThanOperatorName,omitempty"` - - // LessThanOperatorName: Indicates the operator name required in the - // query in order to isolate the integer property using the less-than - // operator. For example, if lessThanOperatorName is *prioritybelow* and - // the property's name is *priorityVal*, then queries like - // *prioritybelow:* show results only where the value of the - // property named *priorityVal* is less than **. The operator - // name can only contain lowercase letters (a-z). The maximum length is - // 32 characters. - LessThanOperatorName string `json:"lessThanOperatorName,omitempty"` - - // OperatorName: Indicates the operator name required in the query in - // order to isolate the integer property. For example, if operatorName - // is *priority* and the property's name is *priorityVal*, then queries - // like *priority:* show results only where the value of the - // property named *priorityVal* matches **. By contrast, a search - // that uses the same ** without an operator returns all items - // where ** matches the value of any String properties or text - // within the content field for the item. The operator name can only - // contain lowercase letters (a-z). The maximum length is 32 characters. - OperatorName string `json:"operatorName,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "GreaterThanOperatorName") 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. "GreaterThanOperatorName") - // 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 *IntegerOperatorOptions) MarshalJSON() ([]byte, error) { - type NoMethod IntegerOperatorOptions - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// IntegerPropertyOptions: The options for integer properties. -type IntegerPropertyOptions struct { - // IntegerFacetingOptions: If set, describes integer faceting options - // for the given integer property. The corresponding integer property - // should be marked isFacetable. - IntegerFacetingOptions *IntegerFacetingOptions `json:"integerFacetingOptions,omitempty"` - - // MaximumValue: The maximum value of the property. The minimum and - // maximum values for the property are used to rank results according to - // the ordered ranking. Indexing requests with values greater than the - // maximum are accepted and ranked with the same weight as items indexed - // with the maximum value. - MaximumValue int64 `json:"maximumValue,omitempty,string"` - - // MinimumValue: The minimum value of the property. The minimum and - // maximum values for the property are used to rank results according to - // the ordered ranking. Indexing requests with values less than the - // minimum are accepted and ranked with the same weight as items indexed - // with the minimum value. - MinimumValue int64 `json:"minimumValue,omitempty,string"` - - // OperatorOptions: If set, describes how the integer should be used as - // a search operator. - OperatorOptions *IntegerOperatorOptions `json:"operatorOptions,omitempty"` - - // OrderedRanking: Used to specify the ordered ranking for the integer. - // Can only be used if isRepeatable is false. - // - // Possible values: - // "NO_ORDER" - There is no ranking order for the property. Results - // are not adjusted by this property's value. - // "ASCENDING" - This property is ranked in ascending order. Lower - // values indicate lower ranking. - // "DESCENDING" - This property is ranked in descending order. Lower - // values indicate higher ranking. - OrderedRanking string `json:"orderedRanking,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "IntegerFacetingOptions") 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. "IntegerFacetingOptions") - // 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 *IntegerPropertyOptions) MarshalJSON() ([]byte, error) { - type NoMethod IntegerPropertyOptions - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// IntegerValues: List of integer values. -type IntegerValues struct { - Values googleapi.Int64s `json:"values,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Values") 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. "Values") 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 *IntegerValues) MarshalJSON() ([]byte, error) { - type NoMethod IntegerValues - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -type IntegrationConfigMutation struct { - // AddApp: Add an app using its identifier. - AddApp *AppId `json:"addApp,omitempty"` - - // AddPinnedItem: Add a pinned tab using its identifier. - AddPinnedItem *PinnedItemId `json:"addPinnedItem,omitempty"` - - // RemoveApp: Remove an active app using its identifier. - RemoveApp *AppId `json:"removeApp,omitempty"` - - // RemovePinnedItem: Remove an active pinned tab using its identifier. - RemovePinnedItem *PinnedItemId `json:"removePinnedItem,omitempty"` - - // ForceSendFields is a list of field names (e.g. "AddApp") 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. "AddApp") 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 *IntegrationConfigMutation) MarshalJSON() ([]byte, error) { - type NoMethod IntegrationConfigMutation - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// IntegrationConfigUpdatedMetadata: Annotation metadata to display -// system message for integration config updated event. This metadata is -// stored in spanner, and can be dispatched to clients without any field -// modification or transformation. -type IntegrationConfigUpdatedMetadata struct { - // InitiatorId: The user whose action triggered this system message. - InitiatorId *UserId `json:"initiatorId,omitempty"` - - // Mutations: A list of updates applied on the integration config. - Mutations []*IntegrationConfigMutation `json:"mutations,omitempty"` - - // ForceSendFields is a list of field names (e.g. "InitiatorId") 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. "InitiatorId") 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 *IntegrationConfigUpdatedMetadata) MarshalJSON() ([]byte, error) { - type NoMethod IntegrationConfigUpdatedMetadata - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// Interaction: Represents an interaction between a user and an item. -type Interaction struct { - // InteractionTime: The time when the user acted on the item. If - // multiple actions of the same type exist for a single user, only the - // most recent action is recorded. - InteractionTime string `json:"interactionTime,omitempty"` - - // Principal: The user that acted on the item. - Principal *Principal `json:"principal,omitempty"` - - // Possible values: - // "UNSPECIFIED" - Invalid value. - // "VIEW" - This interaction indicates the user viewed the item. - // "EDIT" - This interaction indicates the user edited the item. - Type string `json:"type,omitempty"` - - // ForceSendFields is a list of field names (e.g. "InteractionTime") 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. "InteractionTime") 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 *Interaction) MarshalJSON() ([]byte, error) { - type NoMethod Interaction - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// InteractionData: Interaction data for an annotation, which may be -// supplemental to the metadata oneof. For example, this will contain -// the fully built navigation target for smart chips. NEXT TAG: 2 -type InteractionData struct { - // Url: A general navigation target associated with the annotation this - // message is contained in. For smart chips, this will be the - // destination of the tap/click target and will be returned by the - // server. For scenarios where the chip originated from a user-provided - // url, this value will be provided by clients; otherwise it will be - // built by the corresponding metadata parts. - Url *SafeUrlProto `json:"url,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Url") 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. "Url") 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 *InteractionData) MarshalJSON() ([]byte, error) { - type NoMethod InteractionData - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -type InviteAcceptedEvent struct { - ParticipantId []*StoredParticipantId `json:"participantId,omitempty"` - - // ForceSendFields is a list of field names (e.g. "ParticipantId") 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. "ParticipantId") 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 *InviteAcceptedEvent) MarshalJSON() ([]byte, error) { - type NoMethod InviteAcceptedEvent - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// InviteeInfo: Invitee information from a Dynamite invitation. See -// go/dynamite-invitee-mgmt. -type InviteeInfo struct { - // Email: Email as typed by the user when invited to Room or DM. This - // value will be canonicalized and hashed before retained in storage. - Email string `json:"email,omitempty"` - - // UserId: Unique, immutable ID of the User. - UserId *UserId `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 *InviteeInfo) MarshalJSON() ([]byte, error) { - type NoMethod InviteeInfo - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// Item: Represents a single object that is an item in the search index, -// such as a file, folder, or a database record. -type Item struct { - // Acl: Access control list for this item. - Acl *ItemAcl `json:"acl,omitempty"` - - // Content: Item content to be indexed and made text searchable. - Content *ItemContent `json:"content,omitempty"` - - // ItemType: The type for this item. - // - // Possible values: - // "UNSPECIFIED" - // "CONTENT_ITEM" - An item that is indexed for the only purpose of - // serving information. These items cannot be referred in containerName - // or inheritAclFrom fields. - // "CONTAINER_ITEM" - An item that gets indexed and whose purpose is - // to supply other items with ACLs and/or contain other items. - // "VIRTUAL_CONTAINER_ITEM" - An item that does not get indexed, but - // otherwise has the same purpose as CONTAINER_ITEM. - ItemType string `json:"itemType,omitempty"` - - // Metadata: The metadata information. - Metadata *ItemMetadata `json:"metadata,omitempty"` - - // Name: The name of the Item. Format: - // datasources/{source_id}/items/{item_id} This is a required field. The - // maximum length is 1536 characters. - Name string `json:"name,omitempty"` - - // Payload: Additional state connector can store for this item. The - // maximum length is 10000 bytes. - Payload string `json:"payload,omitempty"` - - // Queue: Queue this item belongs to. The maximum length is 100 - // characters. - Queue string `json:"queue,omitempty"` - - // Status: Status of the item. Output only field. - Status *ItemStatus `json:"status,omitempty"` - - // StructuredData: The structured data for the item that should conform - // to a registered object definition in the schema for the data source. - StructuredData *ItemStructuredData `json:"structuredData,omitempty"` - - // Version: Required. The indexing system stores the version from the - // datasource as a byte string and compares the Item version in the - // index to the version of the queued Item using lexical ordering. Cloud - // Search Indexing won't index or delete any queued item with a version - // value that is less than or equal to the version of the currently - // indexed item. The maximum length for this field is 1024 bytes. For - // information on how item version affects the deletion process, refer - // to Handle revisions after manual deletes - // (https://developers.google.com/cloud-search/docs/guides/operations). - Version string `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. "Acl") 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. "Acl") 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 *Item) MarshalJSON() ([]byte, error) { - type NoMethod Item - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// ItemAcl: Access control list information for the item. For more -// information see Map ACLs -// (https://developers.google.com/cloud-search/docs/guides/acls). -type ItemAcl struct { - // AclInheritanceType: Sets the type of access rules to apply when an - // item inherits its ACL from a parent. This should always be set in - // tandem with the inheritAclFrom field. Also, when the inheritAclFrom - // field is set, this field should be set to a valid AclInheritanceType. - // - // Possible values: - // "NOT_APPLICABLE" - The default value when this item does not - // inherit an ACL. Use NOT_APPLICABLE when inheritAclFrom is empty. An - // item without ACL inheritance can still have ACLs supplied by its own - // readers and deniedReaders fields. - // "CHILD_OVERRIDE" - During an authorization conflict, the ACL of the - // child item determines its read access. - // "PARENT_OVERRIDE" - During an authorization conflict, the ACL of - // the parent item specified in the inheritAclFrom field determines read - // access. - // "BOTH_PERMIT" - Access is granted only if this item and the parent - // item specified in the inheritAclFrom field both permit read access. - AclInheritanceType string `json:"aclInheritanceType,omitempty"` - - // DeniedReaders: List of principals who are explicitly denied access to - // the item in search results. While principals are denied access by - // default, use denied readers to handle exceptions and override the - // list allowed readers. The maximum number of elements is 100. - DeniedReaders []*Principal `json:"deniedReaders,omitempty"` - - // InheritAclFrom: The name of the item to inherit the Access Permission - // List (ACL) from. Note: ACL inheritance *only* provides access - // permissions to child items and does not define structural - // relationships, nor does it provide convenient ways to delete large - // groups of items. Deleting an ACL parent from the index only alters - // the access permissions of child items that reference the parent in - // the inheritAclFrom field. The item is still in the index, but may not - // visible in search results. By contrast, deletion of a container item - // also deletes all items that reference the container via the - // containerName field. The maximum length for this field is 1536 - // characters. - InheritAclFrom string `json:"inheritAclFrom,omitempty"` - - // Owners: Optional. List of owners for the item. This field has no - // bearing on document access permissions. It does, however, offer a - // slight ranking boosts items where the querying user is an owner. The - // maximum number of elements is 5. - Owners []*Principal `json:"owners,omitempty"` - - // Readers: List of principals who are allowed to see the item in search - // results. Optional if inheriting permissions from another item or if - // the item is not intended to be visible, such as virtual containers. - // The maximum number of elements is 1000. - Readers []*Principal `json:"readers,omitempty"` - - // ForceSendFields is a list of field names (e.g. "AclInheritanceType") - // 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. "AclInheritanceType") 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 *ItemAcl) MarshalJSON() ([]byte, error) { - type NoMethod ItemAcl - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// ItemContent: Content of an item to be indexed and surfaced by Cloud -// Search. Only UTF-8 encoded strings are allowed as inlineContent. If -// the content is uploaded and not binary, it must be UTF-8 encoded. -type ItemContent struct { - // ContentDataRef: Upload reference ID of a previously uploaded content - // via write method. - ContentDataRef *UploadItemRef `json:"contentDataRef,omitempty"` - - // Possible values: - // "UNSPECIFIED" - Invalid value. - // "HTML" - contentFormat is HTML. - // "TEXT" - contentFormat is free text. - // "RAW" - contentFormat is raw bytes. - ContentFormat string `json:"contentFormat,omitempty"` - - // Hash: Hashing info calculated and provided by the API client for - // content. Can be used with the items.push method to calculate modified - // state. The maximum length is 2048 characters. - Hash string `json:"hash,omitempty"` - - // InlineContent: Content that is supplied inlined within the update - // method. The maximum length is 102400 bytes (100 KiB). - InlineContent string `json:"inlineContent,omitempty"` - - // ForceSendFields is a list of field names (e.g. "ContentDataRef") 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. "ContentDataRef") 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 *ItemContent) MarshalJSON() ([]byte, error) { - type NoMethod ItemContent - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -type ItemCountByStatus struct { - // Count: Number of items matching the status code. - Count int64 `json:"count,omitempty,string"` - - // IndexedItemsCount: Number of items matching the status code for which - // billing is done. This excludes virtual container items from the total - // count. This count would not be applicable for items with ERROR or - // NEW_ITEM status code. - IndexedItemsCount int64 `json:"indexedItemsCount,omitempty,string"` - - // StatusCode: Status of the items. - // - // Possible values: - // "CODE_UNSPECIFIED" - Input-only value. Used with Items.list to list - // all items in the queue, regardless of status. - // "ERROR" - Error encountered by Cloud Search while processing this - // item. Details of the error are in repositoryError. - // "MODIFIED" - Item has been modified in the repository, and is out - // of date with the version previously accepted into Cloud Search. - // "NEW_ITEM" - Item is known to exist in the repository, but is not - // yet accepted by Cloud Search. An item can be in this state when - // Items.push has been called for an item of this name that did not - // exist previously. - // "ACCEPTED" - API has accepted the up-to-date data of this item. - StatusCode string `json:"statusCode,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Count") 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. "Count") 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 *ItemCountByStatus) MarshalJSON() ([]byte, error) { - type NoMethod ItemCountByStatus - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// ItemMetadata: Available metadata fields for the item. -type ItemMetadata struct { - // ContainerName: The name of the container for this item. Deletion of - // the container item leads to automatic deletion of this item. Note: - // ACLs are not inherited from a container item. To provide ACL - // inheritance for an item, use the inheritAclFrom field. The maximum - // length is 1536 characters. - ContainerName string `json:"containerName,omitempty"` - - // ContentLanguage: The BCP-47 language code for the item, such as - // "en-US" or "sr-Latn". For more information, see - // http://www.unicode.org/reports/tr35/#Unicode_locale_identifier. The - // maximum length is 32 characters. - ContentLanguage string `json:"contentLanguage,omitempty"` - - // ContextAttributes: A set of named attributes associated with the - // item. This can be used for influencing the ranking of the item based - // on the context in the request. The maximum number of elements is 10. - ContextAttributes []*ContextAttribute `json:"contextAttributes,omitempty"` - - // CreateTime: The time when the item was created in the source - // repository. - CreateTime string `json:"createTime,omitempty"` - - // Hash: Hashing value provided by the API caller. This can be used with - // the items.push method to calculate modified state. The maximum length - // is 2048 characters. - Hash string `json:"hash,omitempty"` - - // Interactions: A list of interactions for the item. Interactions are - // used to improve Search quality, but are not exposed to end users. The - // maximum number of elements is 1000. - Interactions []*Interaction `json:"interactions,omitempty"` - - // Keywords: Additional keywords or phrases that should match the item. - // Used internally for user generated content. The maximum number of - // elements is 100. The maximum length is 8192 characters. - Keywords []string `json:"keywords,omitempty"` - - // MimeType: The original mime-type of ItemContent.content in the source - // repository. The maximum length is 256 characters. - MimeType string `json:"mimeType,omitempty"` - - // ObjectType: The type of the item. This should correspond to the name - // of an object definition in the schema registered for the data source. - // For example, if the schema for the data source contains an object - // definition with name 'document', then item indexing requests for - // objects of that type should set objectType to 'document'. The maximum - // length is 256 characters. - ObjectType string `json:"objectType,omitempty"` - - // SearchQualityMetadata: Additional search quality metadata of the item - SearchQualityMetadata *SearchQualityMetadata `json:"searchQualityMetadata,omitempty"` - - // SourceRepositoryUrl: Link to the source repository serving the data. - // Seach results apply this link to the title. Whitespace or special - // characters may cause Cloud Seach result links to trigger a redirect - // notice; to avoid this, encode the URL. The maximum length is 2048 - // characters. - SourceRepositoryUrl string `json:"sourceRepositoryUrl,omitempty"` - - // Title: The title of the item. If given, this will be the displayed - // title of the Search result. The maximum length is 2048 characters. - Title string `json:"title,omitempty"` - - // UpdateTime: The time when the item was last modified in the source - // repository. - UpdateTime string `json:"updateTime,omitempty"` - - // 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 *ItemMetadata) MarshalJSON() ([]byte, error) { - type NoMethod ItemMetadata - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// ItemParts: Container for type-specific extensions of an Item. This -// protobuf is defined in a separate file to allow types to -// reference/extend the message without depending on other fusebox -// protobufs. See items.proto. -type ItemParts struct { -} - -// ItemStatus: This contains item's status and any errors. -type ItemStatus struct { - // Code: Status code. - // - // Possible values: - // "CODE_UNSPECIFIED" - Input-only value. Used with Items.list to list - // all items in the queue, regardless of status. - // "ERROR" - Error encountered by Cloud Search while processing this - // item. Details of the error are in repositoryError. - // "MODIFIED" - Item has been modified in the repository, and is out - // of date with the version previously accepted into Cloud Search. - // "NEW_ITEM" - Item is known to exist in the repository, but is not - // yet accepted by Cloud Search. An item can be in this state when - // Items.push has been called for an item of this name that did not - // exist previously. - // "ACCEPTED" - API has accepted the up-to-date data of this item. - Code string `json:"code,omitempty"` - - // ProcessingErrors: Error details in case the item is in ERROR state. - ProcessingErrors []*ProcessingError `json:"processingErrors,omitempty"` - - // RepositoryErrors: Repository error reported by connector. - RepositoryErrors []*RepositoryError `json:"repositoryErrors,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 *ItemStatus) MarshalJSON() ([]byte, error) { - type NoMethod ItemStatus - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// ItemStructuredData: Available structured data fields for the item. -type ItemStructuredData struct { - // Hash: Hashing value provided by the API caller. This can be used with - // the items.push method to calculate modified state. The maximum length - // is 2048 characters. - Hash string `json:"hash,omitempty"` - - // Object: The structured data object that should conform to a - // registered object definition in the schema for the data source. - Object *StructuredDataObject `json:"object,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Hash") 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. "Hash") 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 *ItemStructuredData) MarshalJSON() ([]byte, error) { - type NoMethod ItemStructuredData - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// ItemThread: An ItemThread is an ordered list of Items. An ItemThread -// corresponds to a "conversation" in the context of mail. An Item -// belongs to exactly one ItemThread. -type ItemThread struct { - ClusterInfo *ClusterInfo `json:"clusterInfo,omitempty"` - - // Item: The Items in the ItemThread. In the context of a search, the - // list of Items may be a subset of those that logically belong to the - // ItemThread. The details of which items are included are available in - // the ItemThreadView returned in the overall rpc response. - Item []*FuseboxItem `json:"item,omitempty"` - - // LastItemId: The server id of the last item returned in the - // ItemThread. This can be deduced from the [item] list but is provided - // for convenience. When manually constructing an ItemThreadViewSpec to - // perform operations on the ItemThread, this value can be used as the - // [high_item_id_watermark]. - LastItemId uint64 `json:"lastItemId,omitempty,string"` - - MatchInfo *FuseboxItemThreadMatchInfo `json:"matchInfo,omitempty"` - - // Snippet: A snippet summarizing the thread. This field is only - // populated for searches. - Snippet string `json:"snippet,omitempty"` - - // ThreadKey: The MultiKey that identifies this thread. This value never - // changes, i.e. remains constant across modifications to the thread, - // including addition, relabeling, or deletion of contained Items. As - // such, the thread key may not necessarily correspond to the key of an - // contained Item. Legacy note: The "server_id" of the thread key is - // equivalent to the notion of the "original thread id" in the CSS API. - ThreadKey *MultiKey `json:"threadKey,omitempty"` - - // ThreadLocator: A base64 encoded and encrypted string generated from - // the Gaia Id and the thread id. Used to generate the permalink for - // this thread, exposed from Gmail API. - ThreadLocator string `json:"threadLocator,omitempty"` - - // TopicState: Next available id : 10 - TopicState *TopicState `json:"topicState,omitempty"` - - // Version: The latest history operation id that resulted in a mutation - // of any item in the thread. - Version uint64 `json:"version,omitempty,string"` - - // ForceSendFields is a list of field names (e.g. "ClusterInfo") 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. "ClusterInfo") 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 *ItemThread) MarshalJSON() ([]byte, error) { - type NoMethod ItemThread - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// JobsettedServerSpec: Identifies a jobsetted server as a target for -// Trigger dispatch. -type JobsettedServerSpec struct { - // PortName: E.g. "gateway", "stubby" etc. Leave unset to use the - // default unnamed port. - PortName string `json:"portName,omitempty"` - - // ServerName: E.g. "satellite-server", "bigtop-sync", etc. - ServerName string `json:"serverName,omitempty"` - - // ForceSendFields is a list of field names (e.g. "PortName") 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. "PortName") 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 *JobsettedServerSpec) MarshalJSON() ([]byte, error) { - type NoMethod JobsettedServerSpec - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -type KeyValue struct { - // BottomLabel: Formatted text supported. - BottomLabel string `json:"bottomLabel,omitempty"` - - Button *Button `json:"button,omitempty"` - - // Content: Formatted text supported and always required. - Content string `json:"content,omitempty"` - - ContentMultiline bool `json:"contentMultiline,omitempty"` - - EndIcon *IconImage `json:"endIcon,omitempty"` - - // Possible values: - // "NONE" - // "AIRPLANE" - // "BOOKMARK" - // "BUS" - // "CAR" - // "CLOCK" - // "CONFIRMATION_NUMBER_ICON" - // "DOLLAR" - // "DESCRIPTION" - // "EDIT" - // "EDIT_NOTE" - // "EMAIL" - // "EVENT_PERFORMER" - // "EVENT_SEAT" - // "FLIGHT_ARRIVAL" - // "FLIGHT_DEPARTURE" - // "HOTEL" - // "HOTEL_ROOM_TYPE" - // "INVITE" - // "MAP_PIN" - // "MEMBERSHIP" - // "MULTIPLE_PEOPLE" - // "OFFER" - // "OPEN_IN_NEW" - // "PERSON" - // "PHONE" - // "RESTAURANT_ICON" - // "SHOPPING_CART" - // "STAR" - // "STORE" - // "TICKET" - // "TRAIN" - // "VIDEO_CAMERA" - // "VIDEO_PLAY" - Add new items in alphabetical order. Next Available - // ID: 34 - Icon string `json:"icon,omitempty"` - - // IconAltText: The alternative text of this icon_url which will be used - // for accessibility. - IconAltText string `json:"iconAltText,omitempty"` - - IconUrl string `json:"iconUrl,omitempty"` - - // Possible values: - // "CROP_TYPE_NOT_SET" - No value specified. - // "SQUARE" - Applies a square crop. - // "CIRCLE" - Applies a circular crop. - // "RECTANGLE_CUSTOM" - Applies a rectangular crop with a custom - // aspect ratio. - // "RECTANGLE_4_3" - Applies a rectangular crop with a 4:3 aspect - // ratio. - ImageStyle string `json:"imageStyle,omitempty"` - - // OnClick: Only the top/bottom label + content region is clickable. - OnClick *OnClick `json:"onClick,omitempty"` - - // StartIcon: The optional icon to display before the text content. - StartIcon *IconImage `json:"startIcon,omitempty"` - - SwitchWidget *SwitchWidget `json:"switchWidget,omitempty"` - - // TopLabel: Formatted text supported. - TopLabel string `json:"topLabel,omitempty"` - - // ForceSendFields is a list of field names (e.g. "BottomLabel") 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. "BottomLabel") 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 *KeyValue) MarshalJSON() ([]byte, error) { - type NoMethod KeyValue - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// LabelAdded: A label was added to some (subset of the) messages in -// this thread. -type LabelAdded struct { - LabelId string `json:"labelId,omitempty"` - - LabelName string `json:"labelName,omitempty"` - - MessageKeys []*MultiKey `json:"messageKeys,omitempty"` - - SyncId int64 `json:"syncId,omitempty"` - - // ForceSendFields is a list of field names (e.g. "LabelId") 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. "LabelId") 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 *LabelAdded) MarshalJSON() ([]byte, error) { - type NoMethod LabelAdded - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// LabelCreated: A label was created. -type LabelCreated struct { -} - -// LabelDeleted: A label was deleted. -type LabelDeleted struct { -} - -// LabelRemoved: A label was removed from some (subset of the) messages -// in this thread. -type LabelRemoved struct { - LabelId string `json:"labelId,omitempty"` - - LabelName string `json:"labelName,omitempty"` - - MessageKeys []*MultiKey `json:"messageKeys,omitempty"` - - SyncId int64 `json:"syncId,omitempty"` - - // ForceSendFields is a list of field names (e.g. "LabelId") 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. "LabelId") 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 *LabelRemoved) MarshalJSON() ([]byte, error) { - type NoMethod LabelRemoved - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// LabelRenamed: A label was renamed. -type LabelRenamed struct { - OldCanonicalName string `json:"oldCanonicalName,omitempty"` - - // ForceSendFields is a list of field names (e.g. "OldCanonicalName") 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. "OldCanonicalName") 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 *LabelRenamed) MarshalJSON() ([]byte, error) { - type NoMethod LabelRenamed - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// LabelUpdate: HistoryRecord for changes associated with a label, -// namely: LABEL_CREATED LABEL_DELETED LABEL_RENAMED LABEL_UPDATED -type LabelUpdate struct { - CanonicalName string `json:"canonicalName,omitempty"` - - LabelCreated *LabelCreated `json:"labelCreated,omitempty"` - - LabelDeleted *LabelDeleted `json:"labelDeleted,omitempty"` - - LabelId string `json:"labelId,omitempty"` - - LabelRenamed *LabelRenamed `json:"labelRenamed,omitempty"` - - LabelUpdated *LabelUpdated `json:"labelUpdated,omitempty"` - - SyncId int64 `json:"syncId,omitempty"` - - // ForceSendFields is a list of field names (e.g. "CanonicalName") 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. "CanonicalName") 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 *LabelUpdate) MarshalJSON() ([]byte, error) { - type NoMethod LabelUpdate - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// LabelUpdated: A label pref was updated outside of a rename, create, -// or delete. -type LabelUpdated struct { -} - -type Labels struct { - // DisplayName: The display name of the labels. This is populated - // (instead of the id) when the request fetch_spec has - // LABEL_DISPLAY_NAMES. - DisplayName []string `json:"displayName,omitempty"` - - // Id: The ids of the labels attached to the Item, e.g. "^i", "^x_1" - Id []string `json:"id,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 *Labels) MarshalJSON() ([]byte, error) { - type NoMethod Labels - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// LanguageConfig: The language configuration for the session. -type LanguageConfig struct { - // SpokenLanguages: The spoken language(s) in BCP47 language code. - SpokenLanguages []string `json:"spokenLanguages,omitempty"` - - // ForceSendFields is a list of field names (e.g. "SpokenLanguages") 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. "SpokenLanguages") 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 *LanguageConfig) MarshalJSON() ([]byte, error) { - type NoMethod LanguageConfig - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -type LdapGroupProto struct { - GroupName string `json:"groupName,omitempty"` - - // ForceSendFields is a list of field names (e.g. "GroupName") 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. "GroupName") 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 *LdapGroupProto) MarshalJSON() ([]byte, error) { - type NoMethod LdapGroupProto - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -type LdapUserProto struct { - UserName string `json:"userName,omitempty"` - - // ForceSendFields is a list of field names (e.g. "UserName") 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. "UserName") 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 *LdapUserProto) MarshalJSON() ([]byte, error) { - type NoMethod LdapUserProto - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// LegacyUploadMetadata: The original UploadMetadata that this -// DriveMetadata was converted from. -type LegacyUploadMetadata struct { - // LegacyUniqueId: A unique ID generated from legacy UploadMetadata. - // This is used for interopping URLs after uploading blob to shared - // drive. Links in Classic might break without this. - // go/drive-file-attachment-interop-from-dynamite. - LegacyUniqueId string `json:"legacyUniqueId,omitempty"` - - // UploadMetadata: The blob in this UploadMetadata has been uploaded to - // shared drive. This UploadMetadata is no longer attached to a message. - // go/shared-drive-data-migration. - UploadMetadata *UploadMetadata `json:"uploadMetadata,omitempty"` - - // ForceSendFields is a list of field names (e.g. "LegacyUniqueId") 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. "LegacyUniqueId") 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 *LegacyUploadMetadata) MarshalJSON() ([]byte, error) { - type NoMethod LegacyUploadMetadata - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// LinkData: Link metadata, for LINK segments. Anchor text should be -// stored in the "text" field of the Segment, which can also serve as a -// fallback. -type LinkData struct { - // Attachment: An Attachment represents the structured entity to which - // we are linking. It contains an Embed - // (apps/tacotown/proto/embeds/embed_client.proto) with fields specific - // to the appropriate type of linked entity. For example, if we are - // linking to a photo album, the Embed may include the album ID and gaia - // ID of the creator. Clients that understand the Embed type within the - // Attachment may construct and/or decorate their link appropriately - // e.g. to make use of type-specific functionality or first-party - // integrations. The link_target and (if appropriate) display_url fields - // must still be set even when an Attachment is present, so that clients - // who do not know how to interpret the Attachment can fall back to - // those fields, and render the Segment as an ordinary web link. N.B. - // Even when an Attachment is present, the intention of a "LINK" Segment - // is for the Segment to be presented inline with the rest of the text - // of a post or comment, with a clickable link or other UI suitable for - // inlining (though the client may modify the UI based on Attachment - // data, e.g. to add appropriate hovers, icons, etc.). When an entity is - // intended to be rendered separately from the main body of the - // post/comment, a separate Attachment proto can be added outside the - // set of Segments. N.B. Within the Attachment, fields of - // EmbedClientItem have their own visibility annotations, which should - // be enforced separately from Segment visibility annotations. See: - // apps/tacotown/proto/embeds/embed_annotations.proto - Attachment *SocialCommonAttachmentAttachment `json:"attachment,omitempty"` - - // AttachmentRenderHint: The hint to use when rendering the associated - // attachment. Ignored if there is no associated attachment. - // - // Possible values: - // "ATTACHMENT_RENDER_HINT_UNKNOWN" - No rendering hint; should not be - // used (equivalent to having no hint) - // "ATTACHMENT_RENDER_HINT_AFTER" - Render any associated attachment - // at the end of the block, after all sibling Segments. Leave the link - // in place in the text and render it normally as well. - // "ATTACHMENT_RENDER_HINT_INTERLEAVED" - Render any associated - // attachment inline in the text in place of the link text, forcing a - // line break before and after the attachment so the text and the - // attachment are "interleaved". If this is not possible, render as if - // AFTER. - AttachmentRenderHint string `json:"attachmentRenderHint,omitempty"` - - // DisplayUrl: If we wish to show the user a different (e.g. shortened) - // version of the URL for display purposes, then that version should be - // set here. If this field isn't set, link_target will be used for both - // purposes. - DisplayUrl string `json:"displayUrl,omitempty"` - - // LinkTarget: link_target is the URL to navigate to when clicked. This - // could be the original URL, or a URL signed by the GWS URL signing - // service. - LinkTarget string `json:"linkTarget,omitempty"` - - // LinkType: LinkType is an optional field that provides additional - // information regarding link target. For example, link type can be - // identified as the SELF_LINK when the request was executed from the - // same link as the link target. - // - // Possible values: - // "UNKNOWN_LINK_TYPE" - No link type specified. - // "SELF_LINK" - This indicates that the link target points to the - // same object related to this segment. Example: A YouTube link with - // text="0.07" and link_target: - // "https://www.youtube.com/watch?v=leHVmSqd4_w&t=0m07s" points to the - // same YouTube video where this segment appears. See - // http://go/ignore-badwords-filtering-for-selflink for adding link_type - // design document. - LinkType string `json:"linkType,omitempty"` - - // Title: Title is an optional field that provides a short string that - // describes the link or its destination. User interfaces often use - // title as a tooltip or for accessibility purposes. However, they are - // of course free to present this data in any form. This field is plain - // text. - Title string `json:"title,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Attachment") 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. "Attachment") 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 *LinkData) MarshalJSON() ([]byte, error) { - type NoMethod LinkData - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -type ListDataSourceResponse 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"` - - Sources []*DataSource `json:"sources,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 *ListDataSourceResponse) MarshalJSON() ([]byte, error) { - type NoMethod ListDataSourceResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -type ListItemNamesForUnmappedIdentityResponse struct { - ItemNames []string `json:"itemNames,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. "ItemNames") 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. "ItemNames") 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 *ListItemNamesForUnmappedIdentityResponse) MarshalJSON() ([]byte, error) { - type NoMethod ListItemNamesForUnmappedIdentityResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -type ListItemsResponse struct { - Items []*Item `json:"items,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. "Items") 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. "Items") 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 *ListItemsResponse) MarshalJSON() ([]byte, error) { - type NoMethod ListItemsResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// ListOperationsResponse: The response message for -// Operations.ListOperations. -type ListOperationsResponse struct { - // NextPageToken: The standard List next-page token. - NextPageToken string `json:"nextPageToken,omitempty"` - - // Operations: A list of operations that matches the specified filter in - // the request. - Operations []*Operation `json:"operations,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 *ListOperationsResponse) MarshalJSON() ([]byte, error) { - type NoMethod ListOperationsResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// ListQuerySourcesResponse: List sources response. -type ListQuerySourcesResponse struct { - NextPageToken string `json:"nextPageToken,omitempty"` - - Sources []*QuerySource `json:"sources,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 *ListQuerySourcesResponse) MarshalJSON() ([]byte, error) { - type NoMethod ListQuerySourcesResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -type ListSearchApplicationsResponse 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"` - - SearchApplications []*SearchApplication `json:"searchApplications,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 *ListSearchApplicationsResponse) MarshalJSON() ([]byte, error) { - type NoMethod ListSearchApplicationsResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -type ListUnmappedIdentitiesResponse 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"` - - UnmappedIdentities []*UnmappedIdentity `json:"unmappedIdentities,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 *ListUnmappedIdentitiesResponse) MarshalJSON() ([]byte, error) { - type NoMethod ListUnmappedIdentitiesResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -type MatchInfo struct { - // MatchingImageReferenceKey: Reference keys for image attachments that - // matches search query. - MatchingImageReferenceKey []string `json:"matchingImageReferenceKey,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "MatchingImageReferenceKey") 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. - // "MatchingImageReferenceKey") 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 *MatchInfo) MarshalJSON() ([]byte, error) { - type NoMethod MatchInfo - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// MatchRange: Matched range of a snippet [start, end). -type MatchRange struct { - // End: End of the match in the snippet. - End int64 `json:"end,omitempty"` - - // Start: Starting position of the match in the snippet. - Start int64 `json:"start,omitempty"` - - // ForceSendFields is a list of field names (e.g. "End") 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. "End") 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 *MatchRange) MarshalJSON() ([]byte, error) { - type NoMethod MatchRange - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// MdbGroupProto: An entity from the MDB namespace that is to be -// interpreted as a group. If using this for authorization, you should -// do an exact match of the peer role against group_name or any of the -// names in the Chubby expansion of the MDB group named group_name. -type MdbGroupProto struct { - GroupName string `json:"groupName,omitempty"` - - // ForceSendFields is a list of field names (e.g. "GroupName") 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. "GroupName") 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 *MdbGroupProto) MarshalJSON() ([]byte, error) { - type NoMethod MdbGroupProto - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// MdbUserProto: An entity from the MDB namespace that is to be -// interpreted as a user. If using this for authorization, you should -// only do an exact match on the peer role against user_name. -type MdbUserProto struct { - // GaiaId: Do not set this field. Contact credentials-eng@ if you - // believe you absolutely need to use it. This is the @prod.google.com - // Gaia ID that corresponds to the MDB user, see go/authn-merge for - // details. This field may always be safely ignored when performing an - // authorization check. - GaiaId int64 `json:"gaiaId,omitempty,string"` - - UserName string `json:"userName,omitempty"` - - // ForceSendFields is a list of field names (e.g. "GaiaId") 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. "GaiaId") 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 *MdbUserProto) MarshalJSON() ([]byte, error) { - type NoMethod MdbUserProto - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// Media: Media resource. -type Media struct { - // ResourceName: Name of the media resource. - ResourceName string `json:"resourceName,omitempty"` - - // ServerResponse contains the HTTP response code and headers from the - // server. - googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "ResourceName") 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. "ResourceName") 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 *Media) MarshalJSON() ([]byte, error) { - type NoMethod Media - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// MeetingSpace: A meeting space is a persistent object that is the -// context for one or more calls. The meeting space is what makes users -// find each other when they want to meet and to find shared resources. -// With two exceptions, all the fields in the meeting space resource are -// visible publicly to any client, even anonymous users. The exceptions -// are that * The call_info field is only visible to clients that have a -// device (as indicated by the meeting token) in the JOINED or HIDDEN -// state. * The meeting_alias field will only be set for users who are -// in the same domain as the meeting space. The meeting space resource -// (outside call_info) should only contain information necessary to join -// a call in the meeting space, and not any other metadata about the -// meeting space, such as what organization it belongs to or things -// related to ongoing calls. -type MeetingSpace struct { - // AcceptedNumberClass: Which number classes are accepted by this - // meeting at the moment? When there is no ongoing conference, this - // field may change independent of the version number of the - // MeetingSpace. When a conference starts, this field will be locked to - // the value at that time, and then will be unlocked again at the end of - // the conference. - // - // Possible values: - // "NUMBER_CLASS_UNSPECIFIED" - No number class has been specified. - // "LOW_COST" - The number has a low cost to receive calls on. - // "HIGH_COST" - The number has a high cost to receive calls on. - // "LEGACY" - Class for legacy numbers. - AcceptedNumberClass []string `json:"acceptedNumberClass,omitempty"` - - // BroadcastAccess: Broadcast access information for this meeting space. - BroadcastAccess *BroadcastAccess `json:"broadcastAccess,omitempty"` - - // CallInfo: Information relevant to an ongoing conference. This field - // will be set in responses if the client requesting the meeting space - // has a device in one of the JOINED, HIDDEN, or MISSING_PREREQUISITES - // states. The field will also be set without a created device if the - // client requesting the meeting space is eligible to directly create a - // device in the JOINED state without knocking, eg a same-domain joiner. - // Can also only be updated by clients with a device in the JOINED - // state. - CallInfo *CallInfo `json:"callInfo,omitempty"` - - // GatewayAccess: The interop gateway access information for the meeting - // space. A gateway access can be used when joining conferences from - // non-Google equipment through an interop gateway. - GatewayAccess *GatewayAccess `json:"gatewayAccess,omitempty"` - - // GatewaySipAccess: The SIP based access methods that can be used to - // join the conference. - GatewaySipAccess []*GatewaySipAccess `json:"gatewaySipAccess,omitempty"` - - // MeetingAlias: An optional alias for the meeting space. The alias can - // in some cases be resolved to the meeting space, similar to the - // meeting code. The limitation is that the user needs to be in the same - // meeting domain as the meeting space. - MeetingAlias string `json:"meetingAlias,omitempty"` - - // MeetingCode: A meeting code is a globally unique code which points to - // a meeting space. Note: Meeting codes may be regenerated, which will - // cause old meeting codes to become invalid. - MeetingCode string `json:"meetingCode,omitempty"` - - // MeetingSpaceId: A unique server-generated ID for the meeting space. - // This is the resource name of the meeting space resource and has the - // form `spaces/`, where is a sequence of characters in the base64url - // set (https://tools.ietf.org/html/rfc4648#section-5), without any `=` - // characters. - MeetingSpaceId string `json:"meetingSpaceId,omitempty"` - - // MeetingUrl: A URL to identify and access the meeting space. Output - // only. - MeetingUrl string `json:"meetingUrl,omitempty"` - - // MoreJoinUrl: Output only. A URL that clients (e.g. Calendar) can use - // to show the web page with all join methods available for this meeting - // space. This link is also used in iOS universal links and Android - // intents, used for opening the "More ways to join" view in the Meet - // mobile apps. Example: https://tel.meet/mee-ting-cod?pin=1234567891011 - // Here, "pin" is the universal phone PIN. We include it explicitly to - // better support the offline case on the mobile. This is set when the - // meeting space has either a universal PIN or an interop PIN and - // clients who can show a "more ways to join" button should show it - // whenever this field is set. - MoreJoinUrl string `json:"moreJoinUrl,omitempty"` - - // PhoneAccess: All regional phone access methods for this meeting - // space. Can be empty. - PhoneAccess []*PhoneAccess `json:"phoneAccess,omitempty"` - - // Settings: Settings of the meeting space. - Settings *Settings `json:"settings,omitempty"` - - // UniversalPhoneAccess: A universal phone access method for this - // meeting space. Can be unset. - UniversalPhoneAccess *UniversalPhoneAccess `json:"universalPhoneAccess,omitempty"` - - // ForceSendFields is a list of field names (e.g. "AcceptedNumberClass") - // 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. "AcceptedNumberClass") 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 *MeetingSpace) MarshalJSON() ([]byte, error) { - type NoMethod MeetingSpace - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -type Member struct { - Roster *Roster `json:"roster,omitempty"` - - User *User `json:"user,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Roster") 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. "Roster") 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 *Member) MarshalJSON() ([]byte, error) { - type NoMethod Member - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// MemberId: Eventually this can be updated to a oneOf User, Space (for -// nested spaces), Bots or Service, as and when these use cases come up. -type MemberId struct { - // RosterId: Unique, immutable ID of the Roster. - RosterId *RosterId `json:"rosterId,omitempty"` - - // UserId: Unique, immutable ID of the User. - UserId *UserId `json:"userId,omitempty"` - - // ForceSendFields is a list of field names (e.g. "RosterId") 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. "RosterId") 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 *MemberId) MarshalJSON() ([]byte, error) { - type NoMethod MemberId - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -type MembershipChangeEvent struct { - // LeaveReason: This should only be set when MembershipChange type is - // LEAVE. - // - // Possible values: - // "LEAVE_REASON_UNKNOWN" - // "FORCE_HISTORY_POLICY_CHANGE" - // "USER_INITIATED" - LeaveReason string `json:"leaveReason,omitempty"` - - ParticipantId []*StoredParticipantId `json:"participantId,omitempty"` - - // Possible values: - // "JOIN" - // "LEAVE" - Type string `json:"type,omitempty"` - - // ForceSendFields is a list of field names (e.g. "LeaveReason") 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. "LeaveReason") 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 *MembershipChangeEvent) MarshalJSON() ([]byte, error) { - type NoMethod MembershipChangeEvent - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// MembershipChangedMetadata: Annotation metadata to display system -// messages for membership changes. Next Tag: 13 -type MembershipChangedMetadata struct { - AffectedMemberProfiles []*Member `json:"affectedMemberProfiles,omitempty"` - - // AffectedMembers: List of users and rosters whose membership status - // changed. - AffectedMembers []*MemberId `json:"affectedMembers,omitempty"` - - AffectedMemberships []*AffectedMembership `json:"affectedMemberships,omitempty"` - - // Initiator: The user whose action triggered this system message. - Initiator *UserId `json:"initiator,omitempty"` - - // InitiatorProfile: Complete member profiles, when ListTopicsRequest - // FetchOptions.USER is set. Otherwise, only the id will be filled in. - InitiatorProfile *User `json:"initiatorProfile,omitempty"` - - // InitiatorType: The type of the user who initiated this membership - // change. - // - // Possible values: - // "INITIATOR_TYPE_UNSPECIFIED" - // "INITIATOR_TYPE_END_USER" - // "INITIATOR_TYPE_ADMIN" - InitiatorType string `json:"initiatorType,omitempty"` - - // Possible values: - // "TYPE_UNSPECIFIED" - Default value for the enum. DO NOT USE. - // "INVITED" - Non-member -> Can join. Multiple groups and users. - // "JOINED" - Can join -> Member. One user. - // "ADDED" - Non-member -> Member. Multiple users. - // "REMOVED" - Member or can join -> Non-member. One group or user. - // "LEFT" - Before April 2023, a user transitioned from joined - // "BOT_ADDED" - Bot added to the room. - // "BOT_REMOVED" - Bot removed from the room. - // "KICKED_DUE_TO_OTR_CONFLICT" - This signifies the user is kicked - // because the user's OTR policy is conflicted with the room history - // settings. Joined -> Non-member. One user. - // "ROLE_UPDATED" - MembershipRole changed. Multiple users. - // "ROLE_TARGET_AUDIENCE_UPDATED" - The room is now joinable by an - // "SPACE_LIMIT_EXCEEDED" - Space limit exceeded - // "HUMAN_MEMBERSHIP_DISPLAY_DISABLED" - - // HUMAN_MEMBERSHIP_DISPLAY_DISABLED indicates that the space has - // crossed the member size threshold above which human membership change - // system messages will be muted. This event can only occur once for a - // space over its lifetime. When this event is received, clients should - // display a system message stating that human membership changes will - // no longer be displayed in the space. - Type string `json:"type,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "AffectedMemberProfiles") 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. "AffectedMemberProfiles") - // 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 *MembershipChangedMetadata) MarshalJSON() ([]byte, error) { - type NoMethod MembershipChangedMetadata - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// Menu: This is deprecated and please use SelectionControl by setting -// type to DROPDOWN. -type Menu struct { - Items []*MenuItem `json:"items,omitempty"` - - // Label: Label used to be displayed ahead of the menu. It is optional. - Label string `json:"label,omitempty"` - - // Name: The name of the text field which is will be used in FormInput. - Name string `json:"name,omitempty"` - - // OnChange: If specified, form is submitted when selection changed. If - // not specified, developer will need to specify a separate button. - OnChange *FormAction `json:"onChange,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Items") 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. "Items") 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 *Menu) MarshalJSON() ([]byte, error) { - type NoMethod Menu - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -type MenuItem struct { - Selected bool `json:"selected,omitempty"` - - // Text: The text to be displayed. - Text string `json:"text,omitempty"` - - // Value: The value associated with this item which will be sent back to - // app scripts. Client should use as a form input value. - Value string `json:"value,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Selected") 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. "Selected") 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 *MenuItem) MarshalJSON() ([]byte, error) { - type NoMethod MenuItem - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// Message: Message posted to a Space. -type Message struct { - // Annotations: Annotations parsed and extracted from the text body. - Annotations []*Annotation `json:"annotations,omitempty"` - - // AppProfile: Custom display profile info for apps. Leave the field - // empty for real users. - AppProfile *AppsDynamiteSharedAppProfile `json:"appProfile,omitempty"` - - // Attachments: Attachments parsed from incoming webhooks - Attachments []*Attachment `json:"attachments,omitempty"` - - // Attributes: Lightweight message attributes which values are - // calculated and set in the servers. - Attributes *MessageAttributes `json:"attributes,omitempty"` - - // BotResponses: Responses from bots indicating if extra auth/config is - // needed. - BotResponses []*BotResponse `json:"botResponses,omitempty"` - - // CommunalLabels: Communal labels associated with a message. These - // exist on the message itself regardless of which user fetches them. - // Order of entries is arbitrary and will not list duplicates of the - // same label_id. See go/chat-labels-design for details. - CommunalLabels []*CommunalLabelTag `json:"communalLabels,omitempty"` - - ContentReportSummary *ContentReportSummary `json:"contentReportSummary,omitempty"` - - // CreateTime: Time when the Message was posted in microseconds. - CreateTime int64 `json:"createTime,omitempty,string"` - - // CreatorId: ID of the User who posted the Message. This includes - // information to identify if this was posted by an App on behalf of a - // user. - CreatorId *UserId `json:"creatorId,omitempty"` - - // DeletableBy: Indicates who can delete the message. This field is set - // on the read path (e.g. ListTopics) but doesn’t have any effect on - // the write path (e.g. CreateMessageRequest). - // - // Possible values: - // "PERMISSION_UNSPECIFIED" - Default case, should never be used. If - // this data is encountered in the DB any request should throw an - // exception. - // "PERMISSION_NO_ONE" - No one except for the message creator/origin - // pair can mutate. This permission checks both gaia id and the request - // origin. Request origin can be Chat API or Chat UI. Mutation is - // allowed iff both attributes of the request match the original message - // creation. Use case: this allows historical 1P apps lock down message - // edit permission i.e. In Chat UI, humans cannot edit their messages - // created via these 1P apps. Do not use this for additional use cases. - // "PERMISSION_CREATOR" - The message creator can mutate regardless of - // request origin. Use case: for messages created by human via Chat UI - // or Chat API. These messages can be mutated by the same human user via - // Chat UI or via any app on Chat API. - // "PERMISSION_MEMBER" - Every human member of a space or the creator - // can mutate the entity. This excludes app acting on behalf of human - // via Chat API. Use case: This is to enable humans to delete messages - // created by apps. - DeletableBy string `json:"deletableBy,omitempty"` - - // DeleteTime: Time when the Message was deleted in microseconds. This - // field is set to nonzero value only for Messages deleted globally. - DeleteTime int64 `json:"deleteTime,omitempty,string"` - - // DeleteTimeForRequester: Time when the Message was per-user deleted by - // the message requester in microseconds. This field is set to nonzero - // value only for Message per-user deleted by the requester. - DeleteTimeForRequester int64 `json:"deleteTimeForRequester,omitempty,string"` - - // DeletedByVault: Was this message deleted by Vault (Only used for - // Vault support) This is false if message is live or message was - // deleted by user. - DeletedByVault bool `json:"deletedByVault,omitempty"` - - // DlpScanSummary: Data Loss Prevention scan information for this - // message. Messages are evaluated in the backend on create - // message/topic and edit message actions. DEPRECATED: Use - // DATA_LOSS_PREVENTION Annotation. - DlpScanSummary *DlpScanSummary `json:"dlpScanSummary,omitempty"` - - // EditableBy: Indicates who can edit the message. This field is set on - // the read path (e.g. ListTopics) but doesn’t have any effect on the - // write path (e.g. CreateMessageRequest). - // - // Possible values: - // "PERMISSION_UNSPECIFIED" - Default case, should never be used. If - // this data is encountered in the DB any request should throw an - // exception. - // "PERMISSION_NO_ONE" - No one except for the message creator/origin - // pair can mutate. This permission checks both gaia id and the request - // origin. Request origin can be Chat API or Chat UI. Mutation is - // allowed iff both attributes of the request match the original message - // creation. Use case: this allows historical 1P apps lock down message - // edit permission i.e. In Chat UI, humans cannot edit their messages - // created via these 1P apps. Do not use this for additional use cases. - // "PERMISSION_CREATOR" - The message creator can mutate regardless of - // request origin. Use case: for messages created by human via Chat UI - // or Chat API. These messages can be mutated by the same human user via - // Chat UI or via any app on Chat API. - // "PERMISSION_MEMBER" - Every human member of a space or the creator - // can mutate the entity. This excludes app acting on behalf of human - // via Chat API. Use case: This is to enable humans to delete messages - // created by apps. - EditableBy string `json:"editableBy,omitempty"` - - // FallbackText: A plain-text description of the attachment, used when - // clients cannot display formatted attachment (e.g. mobile push - // notifications). - FallbackText string `json:"fallbackText,omitempty"` - - // Id: ID of the resource. - Id *MessageId `json:"id,omitempty"` - - // IsContentPurged: Whether the message is content purged. Content - // purged messages contain only data required for tombstone (see - // go/chat-infinite-tombstone). This field is only used by Vault to - // display tombstone and should only be set to true if the message is a - // tombstone. - IsContentPurged bool `json:"isContentPurged,omitempty"` - - // IsInlineReply: Output only. Indicates if the message is an inline - // reply. Set to true only if the message's ParentPath is non-NULL. - // Currently, only inline replies have non-NULL ParentPath. See - // go/chat-be-inline-reply-indicator. - IsInlineReply bool `json:"isInlineReply,omitempty"` - - // LastEditTime: If the message was edited by a user, timestamp of the - // last edit, in microseconds. - LastEditTime int64 `json:"lastEditTime,omitempty,string"` - - // LastUpdateTime: Time when the Message text was last updated in - // microseconds. - LastUpdateTime int64 `json:"lastUpdateTime,omitempty,string"` - - // LocalId: A unique id specified on the client side. - LocalId string `json:"localId,omitempty"` - - // MessageIntegrationPayload: An optional payload (restricted to 1P - // applications) that will be stored with this message. This can only be - // set by the 1P API and should be used to deliver additional data such - // a 1P sync version, 1P entity ID to the client for more advanced - // functionality [Eg. inform Group Tasks tab of new version while - // linking, fetch & render a live Task/Meet call tile]. - MessageIntegrationPayload *AppsDynamiteSharedMessageIntegrationPayload `json:"messageIntegrationPayload,omitempty"` - - // MessageOrigin: Where the message was posted from - // - // Possible values: - // "ORIGIN_NOT_SET" - // "ORIGIN_DYNAMITE" - // "ORIGIN_BABEL_INTEROP_LIVE" - The message is from Babel (Hangouts - // Classic) interop. - // "ORIGIN_BABEL_INTEROP_RETRY" - The message is from Babel interop - // retries from Manifold queue. - // "ORIGIN_BABEL" - The message came directly from Babel as - // source-of-truth - // "ORIGIN_BABEL_DUAL_WRITE" - The message came directly from Babel - // during dual-write - // "ORIGIN_BABEL_DUAL_WRITE_RETRY" - The message came directly from - // Babel Manifold queue during dual write - // "ORIGIN_BACKFILL_FROM_PAPYRUS" - The message was backfilled by - // go/dinnertrain as part of go/storage-consolidation. The backfill - // origin corresponds to the BackfillState in which the message was - // created. - // "ORIGIN_BACKFILL_FROM_GMAIL_ARCHIVE" - MessageOrigin string `json:"messageOrigin,omitempty"` - - // MessageReference: Contains reference to another message. It is used - // in shortcuts which are used to collect messages from different spaces - // with a certain common property into another space. For example, all - // @mentions of a user are collected into a mention shortcut space - // (go/chat-shortcuts-backend-design for more details). Most information - // from the source message (like text) are copied onto top-level Message - // fields of shortcut messages by the server. The MessageReference is - // helpful for clients to enable things like click navigation to source - // message. - MessageReference *MessageReference `json:"messageReference,omitempty"` - - // MessageSearchInfo: Contains additional metadata that further - // annotates this message when returned as a search response. For - // example, this field can be used to highlight messages during search - // results rendering. In this case, clients can use this field to - // highlight matched segments in the message text_body (defined with tag - // 6). - MessageSearchInfo *AppsDynamiteSharedMessageSearchInfo `json:"messageSearchInfo,omitempty"` - - // MessageState: State of the message, indicating whether the message is - // visible to all members in the group or is only visible to the sender - // only, or the private_message_viewer if it is set. - // - // Possible values: - // "PUBLIC" - Default - visible to the room / DM. - // "PRIVATE" - Private state - only visible to the message creator, - // and the private_message_viewer if set. - MessageState string `json:"messageState,omitempty"` - - // NumberOfUnicodeEmojis: Indicates the number of unicode emojis in the - // message. - NumberOfUnicodeEmojis int64 `json:"numberOfUnicodeEmojis,omitempty"` - - // OriginAppSuggestions: Indicates if this message contains any - // suggestions that were provided by any Apps. - OriginAppSuggestions []*AppsDynamiteSharedOriginAppSuggestion `json:"originAppSuggestions,omitempty"` - - // PersonalLabels: Personal labels associated with a message for the - // viewing user. Order of entries is arbitrary and will not list - // duplicates of the same label_id. See go/chat-labels-design for - // details. NOTE: This will be unpopulated in the case of SpaceChangelog - // events. - PersonalLabels []*PersonalLabelTag `json:"personalLabels,omitempty"` - - // PrivateMessageInfos: A list of per-user private information. This is - // deprecated, because we no longer plan to support partially private - // messages or private messages for multiple users. The message_state - // and private_message_viewer fields should be sufficient for this - // infrastructure. - PrivateMessageInfos []*PrivateMessageInfo `json:"privateMessageInfos,omitempty"` - - // PrivateMessageViewer: Should only be set if the Message State is - // PRIVATE. If set, the message content is only visible to this user - // (and any apps associated with the message), as well as the message - // creator. If unset, a private message is visible to the message - // creator only. - PrivateMessageViewer *UserId `json:"privateMessageViewer,omitempty"` - - // Props: Contains additional (currently Hangouts Classic only) - // properties applicable to this message. - Props *MessageProps `json:"props,omitempty"` - - // QuotedByState: Output only. Whether this message has been quoted by - // another message or not. Used by clients to handle message edit flows - // for messages that have been quoted. - // - // Possible values: - // "QUOTED_BY_STATE_UNSPECIFIED" - Unspecified state for - // QuotedByState. - // "QUOTED_BY_STATE_HAS_BEEN_QUOTED" - State to indicate that this - // message is quoted by another message (excluding purged message). - // "QUOTED_BY_STATE_HAS_NOT_BEEN_QUOTED" - State to indicate that this - // message are not quoted by another message. - QuotedByState string `json:"quotedByState,omitempty"` - - // QuotedMessageMetadata: Output only. Metadata for a message that is - // quoted by this message. - QuotedMessageMetadata *QuotedMessageMetadata `json:"quotedMessageMetadata,omitempty"` - - // Reactions: A list of user reactions to this message. Ordered by the - // timestamp of the first reaction, ascending (oldest to newest). - Reactions []*AppsDynamiteSharedReaction `json:"reactions,omitempty"` - - // Reports: Output only. Details of content reports. Set only when the - // request asks for it. - Reports []*ContentReport `json:"reports,omitempty"` - - // RetentionSettings: The retention settings of the message. - RetentionSettings *AppsDynamiteSharedRetentionSettings `json:"retentionSettings,omitempty"` - - // RichTextFormattingType: Used by clients to correctly log format type - // for message creation due to complexity with client side optimistic - // update (see go/content-metric-post-send-logging for details). - // Currently, only set by server in the message or topic creation path. - // - // Possible values: - // "NONE" - // "MARKDOWN" - The formatting was specified as *markdown characters* - // in message text. - // "FORMAT_ANNOTATIONS" - The formatting was specified as {@link - // com.google.apps.dynamite.v1.shared.FormatMetadata} annotations. - // "FORMAT_ANNOTATIONS_IGNORED" - The client sent the format - // annotations, but didn't set the accept_format_annotations field to - // true. This shouldn't happen, but there might be some old clients that - // end up here. - // "FORMAT_ANNOTATIONS_IGNORED_WITH_MARKDOWN" - A combination of - // MARKDOWN and FORMAT_ANNOTATIONS_IGNORED. - RichTextFormattingType string `json:"richTextFormattingType,omitempty"` - - // SecondaryMessageKey: A client-specified string that can be used to - // uniquely identify a message in a space, in lieu of `id.message_id`. - SecondaryMessageKey string `json:"secondaryMessageKey,omitempty"` - - // TextBody: Plaintext body of the Message. - TextBody string `json:"textBody,omitempty"` - - // TombstoneMetadata: Information for the stoning of a Message. - TombstoneMetadata *TombstoneMetadata `json:"tombstoneMetadata,omitempty"` - - // UpdaterId: ID of the User who last updated (created/edited/deleted) - // the Message. This includes information to identify if this was - // updated by an App on behalf of a user. - UpdaterId *UserId `json:"updaterId,omitempty"` - - // UploadMetadata: UploadMetadata b/36864213 is an ongoing effort to - // move UploadMetadata out of annotations field and save it to - // upload_metadata field only. After the migration, UploadMetadata will - // only be saved in this field. - UploadMetadata []*UploadMetadata `json:"uploadMetadata,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Annotations") 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. "Annotations") 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 *Message) MarshalJSON() ([]byte, error) { - type NoMethod Message - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// MessageAdded: A message was added. Specifying id and initial labels. -type MessageAdded struct { - AttributeIds []string `json:"attributeIds,omitempty"` - - LabelIds []string `json:"labelIds,omitempty"` - - MessageKey *MultiKey `json:"messageKey,omitempty"` - - // SyncIds: Note that there can be fewer sync ids than label ids. - SyncIds []int64 `json:"syncIds,omitempty"` - - // ForceSendFields is a list of field names (e.g. "AttributeIds") 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. "AttributeIds") 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 *MessageAdded) MarshalJSON() ([]byte, error) { - type NoMethod MessageAdded - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// MessageAttributes: Stores tombstone message attributes: -// go/tombstone-message-attributes-overview -type MessageAttributes struct { - // IsTombstone: If true: message is a tombstone in the client. Default - // false. - IsTombstone bool `json:"isTombstone,omitempty"` - - // ForceSendFields is a list of field names (e.g. "IsTombstone") 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. "IsTombstone") 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 *MessageAttributes) MarshalJSON() ([]byte, error) { - type NoMethod MessageAttributes - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// MessageDeleted: Some (subset of the) messages in this thread were -// deleted. -type MessageDeleted struct { - // ImapSyncMappings: Value of coproc's message delete history record - // extension that exports /imapsync/folder attribute of deleted messages - // which have ^is label. - ImapSyncMappings []*ImapSyncDelete `json:"imapSyncMappings,omitempty"` - - MessageKeys []*MultiKey `json:"messageKeys,omitempty"` - - // WonderCardMappings: Value of coproc's message delete history record - // extension that exports /wonder/message_mapping/{vertical} attribute - // of deleted messages which have smartmail label (eg. ^cob_sm_invoice, - // etc). - WonderCardMappings []*WonderCardDelete `json:"wonderCardMappings,omitempty"` - - // ForceSendFields is a list of field names (e.g. "ImapSyncMappings") 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. "ImapSyncMappings") 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 *MessageDeleted) MarshalJSON() ([]byte, error) { - type NoMethod MessageDeleted - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// MessageId: Primary key for Message resource. -type MessageId struct { - // MessageId: Opaque, server-assigned ID of the Message. While this ID - // is guaranteed to be unique within the Space, it's not guaranteed to - // be globally unique. - MessageId string `json:"messageId,omitempty"` - - // ParentId: ID of the Message's immediate parent. - ParentId *MessageParentId `json:"parentId,omitempty"` - - // ForceSendFields is a list of field names (e.g. "MessageId") 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. "MessageId") 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 *MessageId) MarshalJSON() ([]byte, error) { - type NoMethod MessageId - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -type MessageInfo struct { - // AuthorUserType: Message author’s user type (human/bot). - // - // Possible values: - // "HUMAN" - Notes on HUMAN type: 1) Leaving UserId.UserType field - // empty will return HUMAN as default value. This is expected because - // all the existing UserIds are without explicitly setting UserType, - // most of which are HUMAN Ids. For Bot Ids we will always set BOT in - // UserType field. 2) DO NOT explicitly set HUMAN as type. This is a - // proto2 issue, that a UserId with explicitly set default value HUMAN - // as type is NOT equal to an id without setting the field. aka. UserId - // id1 = UserId.newBuilder() - // .setId("dummy").setType(UserType.HUMAN).build(); UserId id2 = - // UserId.newBuilder().setId("dummy").build(); - // AssertThat(id1).isNotEqual(id2); - // AssertThat(id2.getType()).isEqualTo(UserType.HUMAN); - // "BOT" - AuthorUserType string `json:"authorUserType,omitempty"` - - // Message: The content of a matching message. - Message *Message `json:"message,omitempty"` - - // SearcherMembershipState: Searcher's membership state in the space - // where the message is posted. - // - // Possible values: - // "MEMBER_UNKNOWN" - Default state, do not use - // "MEMBER_INVITED" - An invitation to the space has been sent - // "MEMBER_JOINED" - User has joined the space - // "MEMBER_NOT_A_MEMBER" - User is not a member - // "MEMBER_FAILED" - This state should never be stored in Spanner. It - // is a state for responses to the clients to indicate that membership - // mutations have failed and the member is in its previous state. - SearcherMembershipState string `json:"searcherMembershipState,omitempty"` - - // ForceSendFields is a list of field names (e.g. "AuthorUserType") 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. "AuthorUserType") 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 *MessageInfo) MarshalJSON() ([]byte, error) { - type NoMethod MessageInfo - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// MessageParentId: Primary key identifying Message resource's immediate -// parent. For top-level Messages, either topic_id or chat_id is -// populated. For replies, message_id is populated with the topic -// Message's ID. -type MessageParentId struct { - // TopicId: ID of the Topic this Message is posted to. NEXT TAG : 5 - TopicId *TopicId `json:"topicId,omitempty"` - - // ForceSendFields is a list of field names (e.g. "TopicId") 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. "TopicId") 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 *MessageParentId) MarshalJSON() ([]byte, error) { - type NoMethod MessageParentId - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// MessageProps: Container for storing properties applicable to -// messages. For now (until storage consolidation is complete), it will -// only be used for babel props. In the future it could be used to house -// Dynamite properties for experimenting/rapid prototyping. -type MessageProps struct { - BabelProps *BabelMessageProps `json:"babelProps,omitempty"` - - // ForceSendFields is a list of field names (e.g. "BabelProps") 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. "BabelProps") 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 *MessageProps) MarshalJSON() ([]byte, error) { - type NoMethod MessageProps - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// MessageReference: Contains reference to another message. It is used -// in shortcuts which are used to collect messages from different spaces -// with a certain common property into another space. For example, all -// @mentions of a user are collected into a mention shortcut space -// (go/chat-shortcuts-backend-design for more details). Clients can use -// this reference to enable navigation to the source message when the -// shortcut message is clicked and also to identify a few other details -// about the source message. Other fields (like text) from the source -// message are copied on to the top-level fields in the Message proto by -// the server (More details in go/chat-shortcuts-client-server-design). -type MessageReference struct { - SourceInfo *SourceMessageInfo `json:"sourceInfo,omitempty"` - - // ForceSendFields is a list of field names (e.g. "SourceInfo") 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. "SourceInfo") 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 *MessageReference) MarshalJSON() ([]byte, error) { - type NoMethod MessageReference - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// MessageSet: This is proto2's version of MessageSet. -type MessageSet struct { -} - -// Metadata: Metadata of a matched search result. -type Metadata struct { - // CreateTime: The creation time for this document or object in the - // search result. - CreateTime string `json:"createTime,omitempty"` - - // DisplayOptions: Options that specify how to display a structured data - // search result. - DisplayOptions *ResultDisplayMetadata `json:"displayOptions,omitempty"` - - // Fields: Indexed fields in structured data, returned as a generic - // named property. - Fields []*NamedProperty `json:"fields,omitempty"` - - // MimeType: Mime type of the search result. - MimeType string `json:"mimeType,omitempty"` - - // ObjectType: Object type of the search result. - ObjectType string `json:"objectType,omitempty"` - - // Owner: Owner (usually creator) of the document or object of the - // search result. - Owner *Person `json:"owner,omitempty"` - - // Source: The named source for the result, such as Gmail. - Source *Source `json:"source,omitempty"` - - // ThumbnailUrl: The thumbnail URL of the result. - ThumbnailUrl string `json:"thumbnailUrl,omitempty"` - - // UpdateTime: The last modified date for the object in the search - // result. If not set in the item, the value returned here is empty. - // When `updateTime` is used for calculating freshness and is not set, - // this value defaults to 2 years from the current time. - UpdateTime string `json:"updateTime,omitempty"` - - // ForceSendFields is a list of field names (e.g. "CreateTime") 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. "CreateTime") 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 *Metadata) MarshalJSON() ([]byte, error) { - type NoMethod Metadata - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// Metaline: A metaline is a list of properties that are displayed along -// with the search result to provide context. -type Metaline struct { - // Properties: The list of displayed properties for the metaline. The - // maximum number of properties is 5. - Properties []*DisplayedProperty `json:"properties,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Properties") 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. "Properties") 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 *Metaline) MarshalJSON() ([]byte, error) { - type NoMethod Metaline - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// MultiKey: A union-like type for identifiying an object in storage. -// MultiKeys contain multiple key fields, each in a separate key space. -// At least one key field must be set. More than one key field may be -// set as long as all key values refer to the same object. All objects -// in storage have unique server_id keys. All MultiKeys returned from -// storage to storage clients will always have the server_id field set. -// When creating an object, if a MultiKey without a server_id is -// supplied to storage, the storage system will auto-assign a server ID -// to the new object. For all other storage requests (i.e. those not -// creating new objects), clients may omit server_id (as long as they -// supply another key). Instead of server ids, clients can specify -// string based client_assigned_perm_id keys. Mail message drafts are a -// prime example of these kinds of objects. Each time a user saves a new -// version of a draft, the storage system needs to create a new object -// with the updated draft content and needs to delete the object -// containing the old content. The new object gets a new SERVER_ID but -// should get the same CLIENT_ASSIGNED_PERM_ID as the now-deleted object -// containing the old content. Carrying forward the perm ID allows it to -// be used to consistently refer to the same logical object across -// revisions. These perm IDs save sync clients from having to deal with -// changing object IDs. For example, assume there's a mail message in -// storage with SERVER_ID = 123 and CLIENT_ASSIGNED_PERM_ID = "foo". The -// following are all valid ways of addressing the object using -// MultiKeys: 1) MultiKey { server_id = 123 } 2) MultiKey { server_id = -// 123, client_assigned_perm_id = "foo" } 3) MultiKey { -// client_assigned_perm_id = "foo" } Multikeys are never serialized in -// the storage. The individual keys are extracted and processed -// separately. Both the integer ids as well as string ids are indexed -// for efficient retrieval using the same fields in the backend. See -// go/tingle-multikeys for more information on background and -// motivation. -type MultiKey struct { - // ClientAssignedPermId: A client-assigned string based key. - ClientAssignedPermId string `json:"clientAssignedPermId,omitempty"` - - // ServerId: A server-assigned ID. This ID must be used only by Gmail - // and is constructed using millesecond ts << 20 + randomness. The ID - // affects the sort order of the index. - ServerId uint64 `json:"serverId,omitempty,string"` - - // ForceSendFields is a list of field names (e.g. - // "ClientAssignedPermId") 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. "ClientAssignedPermId") 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 *MultiKey) MarshalJSON() ([]byte, error) { - type NoMethod MultiKey - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// Name: A person's name. -type Name struct { - // DisplayName: The read-only display name formatted according to the - // locale specified by the viewer's account or the `Accept-Language` - // HTTP header. - DisplayName string `json:"displayName,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 *Name) MarshalJSON() ([]byte, error) { - type NoMethod Name - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// NamedProperty: A typed name-value pair for structured data. The type -// of the value should be the same as the registered type for the `name` -// property in the object definition of `objectType`. -type NamedProperty struct { - BooleanValue bool `json:"booleanValue,omitempty"` - - DateValues *DateValues `json:"dateValues,omitempty"` - - DoubleValues *DoubleValues `json:"doubleValues,omitempty"` - - EnumValues *EnumValues `json:"enumValues,omitempty"` - - HtmlValues *HtmlValues `json:"htmlValues,omitempty"` - - IntegerValues *IntegerValues `json:"integerValues,omitempty"` - - // Name: The name of the property. This name should correspond to the - // name of the property that was registered for object definition in the - // schema. The maximum allowable length for this property is 256 - // characters. - Name string `json:"name,omitempty"` - - ObjectValues *ObjectValues `json:"objectValues,omitempty"` - - TextValues *TextValues `json:"textValues,omitempty"` - - TimestampValues *TimestampValues `json:"timestampValues,omitempty"` - - // ForceSendFields is a list of field names (e.g. "BooleanValue") 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. "BooleanValue") 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 *NamedProperty) MarshalJSON() ([]byte, error) { - type NoMethod NamedProperty - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// OAuthConsumerProto: Represents an OAuth consumer, a/k/a AuthSub -// target. These principals are identified by domain name (e.g., -// example.com). Historically, Dasher domain GAIA group IDs have been -// used instead, but that doesn't work: http://go/tricky-gaia-ids -type OAuthConsumerProto struct { - Domain string `json:"domain,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Domain") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Domain") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. - NullFields []string `json:"-"` -} - -func (s *OAuthConsumerProto) MarshalJSON() ([]byte, error) { - type NoMethod OAuthConsumerProto - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// ObjectDefinition: The definition for an object within a data source. -type ObjectDefinition struct { - // Name: The name for the object, which then defines its type. Item - // indexing requests should set the objectType field equal to this - // value. For example, if *name* is *Document*, then indexing requests - // for items of type Document should set objectType equal to *Document*. - // Each object definition must be uniquely named within a schema. The - // name must start with a letter and can only contain letters (A-Z, a-z) - // or numbers (0-9). The maximum length is 256 characters. - Name string `json:"name,omitempty"` - - // Options: The optional object-specific options. - Options *ObjectOptions `json:"options,omitempty"` - - // PropertyDefinitions: The property definitions for the object. The - // maximum number of elements is 1000. - PropertyDefinitions []*PropertyDefinition `json:"propertyDefinitions,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Name") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Name") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. - NullFields []string `json:"-"` -} - -func (s *ObjectDefinition) MarshalJSON() ([]byte, error) { - type NoMethod ObjectDefinition - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// ObjectDisplayOptions: The display options for an object. -type ObjectDisplayOptions struct { - // Metalines: Defines the properties that are displayed in the metalines - // of the search results. The property values are displayed in the order - // given here. If a property holds multiple values, all of the values - // are displayed before the next properties. For this reason, it is a - // good practice to specify singular properties before repeated - // properties in this list. All of the properties must set is_returnable - // to true. The maximum number of metalines is 3. - Metalines []*Metaline `json:"metalines,omitempty"` - - // ObjectDisplayLabel: The user friendly label to display in the search - // result to indicate the type of the item. This is OPTIONAL; if not - // provided, an object label isn't displayed on the context line of the - // search results. The maximum length is 64 characters. - ObjectDisplayLabel string `json:"objectDisplayLabel,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Metalines") 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. "Metalines") 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 *ObjectDisplayOptions) MarshalJSON() ([]byte, error) { - type NoMethod ObjectDisplayOptions - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// ObjectOptions: The options for an object. -type ObjectOptions struct { - // DisplayOptions: The options that determine how the object is - // displayed in the Cloud Search results page. - DisplayOptions *ObjectDisplayOptions `json:"displayOptions,omitempty"` - - // FreshnessOptions: The freshness options for an object. - FreshnessOptions *FreshnessOptions `json:"freshnessOptions,omitempty"` - - // SuggestionFilteringOperators: Operators that can be used to filter - // suggestions. For Suggest API, only operators mentioned here will be - // honored in the FilterOptions. Only TEXT and ENUM operators are - // supported. NOTE: "objecttype", "type" and "mimetype" are already - // supported. This property is to configure schema specific operators. - // Even though this is an array, only one operator can be specified. - // This is an array for future extensibility. Operators mapping to - // multiple properties within the same object are not supported. If the - // operator spans across different object types, this option has to be - // set once for each object definition. - SuggestionFilteringOperators []string `json:"suggestionFilteringOperators,omitempty"` - - // ForceSendFields is a list of field names (e.g. "DisplayOptions") 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. "DisplayOptions") 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 *ObjectOptions) MarshalJSON() ([]byte, error) { - type NoMethod ObjectOptions - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// ObjectPropertyOptions: The options for object properties. -type ObjectPropertyOptions struct { - // SubobjectProperties: The properties of the sub-object. These - // properties represent a nested object. For example, if this property - // represents a postal address, the subobjectProperties might be named - // *street*, *city*, and *state*. The maximum number of elements is - // 1000. - SubobjectProperties []*PropertyDefinition `json:"subobjectProperties,omitempty"` - - // ForceSendFields is a list of field names (e.g. "SubobjectProperties") - // 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. "SubobjectProperties") 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 *ObjectPropertyOptions) MarshalJSON() ([]byte, error) { - type NoMethod ObjectPropertyOptions - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// ObjectValues: List of object values. -type ObjectValues struct { - Values []*StructuredDataObject `json:"values,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Values") 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. "Values") 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 *ObjectValues) MarshalJSON() ([]byte, error) { - type NoMethod ObjectValues - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -type OnClick struct { - Action *FormAction `json:"action,omitempty"` - - // Link: This can be used as a short form for OpenLink with the default - // OpenAs and OnClose. It may be undeprecated if this proves to be handy - // for developers. - Link string `json:"link,omitempty"` - - OpenLink *OpenLink `json:"openLink,omitempty"` - - // OpenLinkAction: An add-on triggers this action when the form action - // needs to open a link. This differs from the open_link above in that - // this needs to talk to server to get the link. Thus some preparation - // work is required for web client to do before the open link action - // response comes back. - OpenLinkAction *FormAction `json:"openLinkAction,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Action") 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. "Action") 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 *OnClick) MarshalJSON() ([]byte, error) { - type NoMethod OnClick - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -type OpenCreatedDraftActionMarkup struct { - // DraftId: The ID of the newly created draft in the form "r123". - DraftId string `json:"draftId,omitempty"` - - // DraftStorageId: The server storage ID in hex format, for - // example,"15e9fa622ce1029d". - DraftStorageId string `json:"draftStorageId,omitempty"` - - // DraftThreadId: The ID of the thread containing the newly created - // draft, for example, "15e9fa622ce1029d". - DraftThreadId string `json:"draftThreadId,omitempty"` - - // DraftThreadServerPermId: The server permanent ID for the draft's - // thread. This field isn't set anywhere, and it's ignored when - // processing OpenCreatedDraftActionMarkup. Supply and use - // draftThreadStorageId instead. - DraftThreadServerPermId string `json:"draftThreadServerPermId,omitempty"` - - // ForceSendFields is a list of field names (e.g. "DraftId") 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. "DraftId") 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 *OpenCreatedDraftActionMarkup) MarshalJSON() ([]byte, error) { - type NoMethod OpenCreatedDraftActionMarkup - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -type OpenLink struct { - // LoadIndicator: Next available ID: 5 - // - // Possible values: - // "NONE" - // "SPINNER" - LoadIndicator string `json:"loadIndicator,omitempty"` - - // Possible values: - // "NOTHING" - // "RELOAD_ADD_ON" - OnClose string `json:"onClose,omitempty"` - - // Possible values: - // "FULL_SIZE" - // "OVERLAY" - OpenAs string `json:"openAs,omitempty"` - - Url string `json:"url,omitempty"` - - // ForceSendFields is a list of field names (e.g. "LoadIndicator") 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. "LoadIndicator") 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 *OpenLink) MarshalJSON() ([]byte, error) { - type NoMethod OpenLink - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// Operation: This resource represents a long-running operation that is -// the result of a network API call. -type Operation struct { - // Done: If the value is `false`, it means the operation is still in - // progress. If `true`, the operation is completed, and either `error` - // or `response` is available. - Done bool `json:"done,omitempty"` - - // Error: The error result of the operation in case of failure or - // cancellation. - Error *Status `json:"error,omitempty"` - - // Metadata: Service-specific metadata associated with the operation. It - // typically contains progress information and common metadata such as - // create time. Some services might not provide such metadata. Any - // method that returns a long-running operation should document the - // metadata type, if any. - Metadata googleapi.RawMessage `json:"metadata,omitempty"` - - // Name: The server-assigned name, which is only unique within the same - // service that originally returns it. If you use the default HTTP - // mapping, the `name` should be a resource name ending with - // `operations/{unique_id}`. - Name string `json:"name,omitempty"` - - // Response: The normal response of the operation in case of success. If - // the original method returns no data on success, such as `Delete`, the - // response is `google.protobuf.Empty`. If the original method is - // standard `Get`/`Create`/`Update`, the response should be the - // resource. For other methods, the response should have the type - // `XxxResponse`, where `Xxx` is the original method name. For example, - // if the original method name is `TakeSnapshot()`, the inferred - // response type is `TakeSnapshotResponse`. - Response googleapi.RawMessage `json:"response,omitempty"` - - // ServerResponse contains the HTTP response code and headers from the - // server. - googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Done") 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. "Done") 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 *Operation) MarshalJSON() ([]byte, error) { - type NoMethod Operation - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -type OsVersion struct { - MajorVersion int64 `json:"majorVersion,omitempty"` - - MinorVersion int64 `json:"minorVersion,omitempty"` - - TertiaryVersion int64 `json:"tertiaryVersion,omitempty"` - - // ForceSendFields is a list of field names (e.g. "MajorVersion") 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. "MajorVersion") 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 *OsVersion) MarshalJSON() ([]byte, error) { - type NoMethod OsVersion - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -type OtrChatMessageEvent struct { - ExpirationTimestampUsec int64 `json:"expirationTimestampUsec,omitempty,string"` - - KansasRowId string `json:"kansasRowId,omitempty"` - - KansasVersionInfo string `json:"kansasVersionInfo,omitempty"` - - // Possible values: - // "OFF_THE_RECORD" - The conversation is completely off the record. - // "ON_THE_RECORD" - The conversation is completely on the record. - MessageOtrStatus string `json:"messageOtrStatus,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "ExpirationTimestampUsec") 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. "ExpirationTimestampUsec") - // 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 *OtrChatMessageEvent) MarshalJSON() ([]byte, error) { - type NoMethod OtrChatMessageEvent - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -type OtrModificationEvent struct { - // Possible values: - // "OFF_THE_RECORD" - The conversation is completely off the record. - // "ON_THE_RECORD" - The conversation is completely on the record. - NewOtrStatus string `json:"newOtrStatus,omitempty"` - - // Possible values: - // "ENABLED" - The conversation can be toggled - // "DISABLED" - The conversation cannot be toggled - NewOtrToggle string `json:"newOtrToggle,omitempty"` - - // Possible values: - // "OFF_THE_RECORD" - The conversation is completely off the record. - // "ON_THE_RECORD" - The conversation is completely on the record. - OldOtrStatus string `json:"oldOtrStatus,omitempty"` - - // Possible values: - // "ENABLED" - The conversation can be toggled - // "DISABLED" - The conversation cannot be toggled - OldOtrToggle string `json:"oldOtrToggle,omitempty"` - - // ForceSendFields is a list of field names (e.g. "NewOtrStatus") 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. "NewOtrStatus") 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 *OtrModificationEvent) MarshalJSON() ([]byte, error) { - type NoMethod OtrModificationEvent - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// PackagingServiceClient: Developers register a client in Google API -// Console to get the deep-linking feature on Google+ posts or frames -// about their apps. The client data is stored in this proto. -type PackagingServiceClient struct { - // AndroidPackageName: Android app's package name to generate the - // deep-link URI. - AndroidPackageName string `json:"androidPackageName,omitempty"` - - // IosAppStoreId: iOS app's App Store ID to generate the App Store URL - // when app is not installed on device. - IosAppStoreId string `json:"iosAppStoreId,omitempty"` - - // IosBundleId: iOS app's bundle ID to generate the deep-link URI. - IosBundleId string `json:"iosBundleId,omitempty"` - - // Type: Type of Google API Console client. - // - // Possible values: - // "ANDROID" - Client for Android app. - // "IOS" - Client for iOS app. - Type string `json:"type,omitempty"` - - // ForceSendFields is a list of field names (e.g. "AndroidPackageName") - // 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. "AndroidPackageName") 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 *PackagingServiceClient) MarshalJSON() ([]byte, error) { - type NoMethod PackagingServiceClient - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// PaygateInfo: Information provided to clients so that they can show -// upgrade promos and warnings on call ending early (for non-paying -// users). -type PaygateInfo struct { - // CallEndingSoonWarningTime: Time when client should show message that - // the call is ending soon. - CallEndingSoonWarningTime string `json:"callEndingSoonWarningTime,omitempty"` - - // CallEndingTime: Time when the call will end if the user does not - // upgrade (after in-call upgrade support check has been implemented). - CallEndingTime string `json:"callEndingTime,omitempty"` - - // ShowUpgradePromos: This boolean is used by clients to decide whether - // the user should be shown promos to upgrade. - ShowUpgradePromos bool `json:"showUpgradePromos,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "CallEndingSoonWarningTime") 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. - // "CallEndingSoonWarningTime") 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 *PaygateInfo) MarshalJSON() ([]byte, error) { - type NoMethod PaygateInfo - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// PeopleSuggestion: This field contains information about the person -// being suggested. -type PeopleSuggestion struct { - // Person: Suggested person. All fields of the person object might not - // be populated. - Person *Person `json:"person,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Person") 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. "Person") 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 *PeopleSuggestion) MarshalJSON() ([]byte, error) { - type NoMethod PeopleSuggestion - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// Person: Object to represent a person. -type Person struct { - // EmailAddresses: The person's email addresses - EmailAddresses []*EmailAddress `json:"emailAddresses,omitempty"` - - // Name: The resource name of the person to provide information about. - // See `People.get` - // (https://developers.google.com/people/api/rest/v1/people/get) from - // the Google People API. - Name string `json:"name,omitempty"` - - // ObfuscatedId: Obfuscated ID of a person. - ObfuscatedId string `json:"obfuscatedId,omitempty"` - - // PersonNames: The person's name - PersonNames []*Name `json:"personNames,omitempty"` - - // PhoneNumbers: The person's phone numbers - PhoneNumbers []*PhoneNumber `json:"phoneNumbers,omitempty"` - - // Photos: A person's read-only photo. A picture shown next to the - // person's name to help others recognize the person in search results. - Photos []*Photo `json:"photos,omitempty"` - - // ForceSendFields is a list of field names (e.g. "EmailAddresses") 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. "EmailAddresses") 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 *Person) MarshalJSON() ([]byte, error) { - type NoMethod Person - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// PersonalLabelTag: An individual instance (or "tag") of a label -// configured as a personal type that's associated with a message. -type PersonalLabelTag struct { - // LabelId: A string ID representing the label. Possible ID values are - // documented at go/chat-labels-howto:ids. Examples: "^t" for "Starred", - // "^nu" for "Nudged". - LabelId string `json:"labelId,omitempty"` - - // ForceSendFields is a list of field names (e.g. "LabelId") 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. "LabelId") 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 *PersonalLabelTag) MarshalJSON() ([]byte, error) { - type NoMethod PersonalLabelTag - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// PhoneAccess: Phone access contains information required to dial into -// a conference using a regional phone number and a PIN that is specific -// to that phone number. -type PhoneAccess struct { - // FormattedPhoneNumber: The phone number to dial for this meeting space - // in INTERNATIONAL format. Full phone number with a leading '+' - // character and whitespace separations. - FormattedPhoneNumber string `json:"formattedPhoneNumber,omitempty"` - - // LanguageCode: The BCP 47/LDML language code for the language - // associated with this phone access. To be parsed by the i18n - // LanguageCode utility. Examples: "es-419" for Latin American Spanish, - // "fr-CA" for Canadian French. - LanguageCode string `json:"languageCode,omitempty"` - - // PhoneNumber: The phone number to dial for this meeting space in E.164 - // format. Full phone number with a leading '+' character. - PhoneNumber string `json:"phoneNumber,omitempty"` - - // Pin: The PIN that users must enter after dialing the given number. - // The PIN consists of only decimal digits and the length may vary. - Pin string `json:"pin,omitempty"` - - // RegionCode: The CLDR/ISO 3166 region code for the country associated - // with this phone access. To be parsed by the i18n RegionCode utility. - // Example: "SE" for Sweden. - RegionCode string `json:"regionCode,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "FormattedPhoneNumber") 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. "FormattedPhoneNumber") 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 *PhoneAccess) MarshalJSON() ([]byte, error) { - type NoMethod PhoneAccess - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// PhoneNumber: A person's Phone Number -type PhoneNumber struct { - // PhoneNumber: The phone number of the person. - PhoneNumber string `json:"phoneNumber,omitempty"` - - // Possible values: - // "OTHER" - // "MOBILE" - // "OFFICE" - Type string `json:"type,omitempty"` - - // ForceSendFields is a list of field names (e.g. "PhoneNumber") 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. "PhoneNumber") 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 *PhoneNumber) MarshalJSON() ([]byte, error) { - type NoMethod PhoneNumber - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// Photo: A person's photo. -type Photo struct { - // Url: The URL of the photo. - Url string `json:"url,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Url") 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. "Url") 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 *Photo) MarshalJSON() ([]byte, error) { - type NoMethod Photo - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -type PinnedItemId struct { - // DriveId: Identifier for a Drive file (e.g. Docs, Sheets, Slides). - DriveId string `json:"driveId,omitempty"` - - // ForceSendFields is a list of field names (e.g. "DriveId") 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. "DriveId") 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 *PinnedItemId) MarshalJSON() ([]byte, error) { - type NoMethod PinnedItemId - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -type PollItemsRequest struct { - // ConnectorName: The name of connector making this call. Format: - // datasources/{source_id}/connectors/{ID} - ConnectorName string `json:"connectorName,omitempty"` - - // DebugOptions: Common debug options. - DebugOptions *DebugOptions `json:"debugOptions,omitempty"` - - // Limit: Maximum number of items to return. The maximum value is 100 - // and the default value is 20. - Limit int64 `json:"limit,omitempty"` - - // Queue: Queue name to fetch items from. If unspecified, PollItems will - // fetch from 'default' queue. The maximum length is 100 characters. - Queue string `json:"queue,omitempty"` - - // StatusCodes: Limit the items polled to the ones with these statuses. - // - // Possible values: - // "CODE_UNSPECIFIED" - Input-only value. Used with Items.list to list - // all items in the queue, regardless of status. - // "ERROR" - Error encountered by Cloud Search while processing this - // item. Details of the error are in repositoryError. - // "MODIFIED" - Item has been modified in the repository, and is out - // of date with the version previously accepted into Cloud Search. - // "NEW_ITEM" - Item is known to exist in the repository, but is not - // yet accepted by Cloud Search. An item can be in this state when - // Items.push has been called for an item of this name that did not - // exist previously. - // "ACCEPTED" - API has accepted the up-to-date data of this item. - StatusCodes []string `json:"statusCodes,omitempty"` - - // ForceSendFields is a list of field names (e.g. "ConnectorName") 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. "ConnectorName") 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 *PollItemsRequest) MarshalJSON() ([]byte, error) { - type NoMethod PollItemsRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -type PollItemsResponse struct { - // Items: Set of items from the queue available for connector to - // process. These items have the following subset of fields populated: - // version metadata.hash structured_data.hash content.hash payload - // status queue - Items []*Item `json:"items,omitempty"` - - // ServerResponse contains the HTTP response code and headers from the - // server. - googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Items") 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. "Items") 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 *PollItemsResponse) MarshalJSON() ([]byte, error) { - type NoMethod PollItemsResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// PossiblyTrimmedModel: This message contains either the device model, -// or a prefix of the device model (AKA a trimmed device model). The -// "is_trimmed" field indicates which one it is. -type PossiblyTrimmedModel struct { - IsTrimmed bool `json:"isTrimmed,omitempty"` - - Model string `json:"model,omitempty"` - - // ForceSendFields is a list of field names (e.g. "IsTrimmed") 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. "IsTrimmed") 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 *PossiblyTrimmedModel) MarshalJSON() ([]byte, error) { - type NoMethod PossiblyTrimmedModel - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// PostiniUserProto: See -// http://s/?fileprint=//depot/google3/security/authentication/postini/auth_token.proto -type PostiniUserProto struct { - PostiniUserId int64 `json:"postiniUserId,omitempty,string"` - - // ForceSendFields is a list of field names (e.g. "PostiniUserId") 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. "PostiniUserId") 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 *PostiniUserProto) MarshalJSON() ([]byte, error) { - type NoMethod PostiniUserProto - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// PreState: State of the thread previous to the update. This really -// just describes the label state of all messages before the update. -type PreState struct { - LabelIds []string `json:"labelIds,omitempty"` - - MessageKey *MultiKey `json:"messageKey,omitempty"` - - // SyncIds: Note that there can be fewer sync ids than label ids. - SyncIds []int64 `json:"syncIds,omitempty"` - - ThreadKey *MultiKey `json:"threadKey,omitempty"` - - // ForceSendFields is a list of field names (e.g. "LabelIds") 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. "LabelIds") 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 *PreState) MarshalJSON() ([]byte, error) { - type NoMethod PreState - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// PrefDeleted: PREF_DELETED -type PrefDeleted struct { -} - -// PrefUpdate: HistoryRecord for changes associated with prefs, namely: -// PREF_WRITTEN PREF_DELETED -type PrefUpdate struct { - // Name: Name of the affected preference. - Name string `json:"name,omitempty"` - - PreState *FuseboxPrefUpdatePreState `json:"preState,omitempty"` - - PrefDeleted *PrefDeleted `json:"prefDeleted,omitempty"` - - PrefWritten *PrefWritten `json:"prefWritten,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Name") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Name") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. - NullFields []string `json:"-"` -} - -func (s *PrefUpdate) MarshalJSON() ([]byte, error) { - type NoMethod PrefUpdate - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// PrefWritten: PREF_WRITTEN -type PrefWritten struct { - Value string `json:"value,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Value") 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. "Value") 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 *PrefWritten) MarshalJSON() ([]byte, error) { - type NoMethod PrefWritten - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// Presenter: Presenter contains information about which device is -// currently presenting as well as which device requested the presenter -// to be set. -type Presenter struct { - // AnnotationInfo: Screen annotation information associated with this - // presentation session. - AnnotationInfo *AnnotationInfo `json:"annotationInfo,omitempty"` - - // ByDeviceId: The device resource name of the device which requested - // the current presenter to be set. This field can not be modified by - // clients. - ByDeviceId string `json:"byDeviceId,omitempty"` - - // CopresenterDeviceIds: The device resource names of other devices - // which can control the current presentation. - CopresenterDeviceIds []string `json:"copresenterDeviceIds,omitempty"` - - // PresenterDeviceId: The device resource name of the currently - // presenting device. - PresenterDeviceId string `json:"presenterDeviceId,omitempty"` - - // ForceSendFields is a list of field names (e.g. "AnnotationInfo") 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. "AnnotationInfo") 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 *Presenter) MarshalJSON() ([]byte, error) { - type NoMethod Presenter - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// Principal: Reference to a user, group, or domain. -type Principal struct { - // GroupResourceName: This principal is a group identified using an - // external identity. The name field must specify the group resource - // name with this format: identitysources/{source_id}/groups/{ID} - GroupResourceName string `json:"groupResourceName,omitempty"` - - // GsuitePrincipal: This principal is a Google Workspace user, group or - // domain. - GsuitePrincipal *GSuitePrincipal `json:"gsuitePrincipal,omitempty"` - - // UserResourceName: This principal is a user identified using an - // external identity. The name field must specify the user resource name - // with this format: identitysources/{source_id}/users/{ID} - UserResourceName string `json:"userResourceName,omitempty"` - - // ForceSendFields is a list of field names (e.g. "GroupResourceName") - // 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. "GroupResourceName") 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 *Principal) MarshalJSON() ([]byte, error) { - type NoMethod Principal - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// PrincipalProto: A Principal represents something to which permissions -// are assigned, often but not always a user or group of some kind. It -// is most appropriate for use in ACLs and authorization checks. Callers -// should prefer to use the wrapper classes in -// google3/security/credentials/public/principal.h -// google3/java/com/google/security/credentials/Principal.java -// google3/security/credentials/go/principal.go unless direct proto -// access is essential. If you update this protocol buffer, please -// update the wrapper classes as well. LINT.IfChange -type PrincipalProto struct { - // AllAuthenticatedUsers: scope = ALL_AUTHENTICATED_USERS - AllAuthenticatedUsers *AllAuthenticatedUsersProto `json:"allAuthenticatedUsers,omitempty"` - - // CapTokenHolder: scope = CAP_TOKEN_HOLDER - CapTokenHolder *CapTokenHolderProto `json:"capTokenHolder,omitempty"` - - // Chat: scope = CHAT - Chat *ChatProto `json:"chat,omitempty"` - - // Circle: scope = CIRCLE - Circle *CircleProto `json:"circle,omitempty"` - - // CloudPrincipal: scope = CLOUD_PRINCIPAL - CloudPrincipal *CloudPrincipalProto `json:"cloudPrincipal,omitempty"` - - // ContactGroup: scope = CONTACT_GROUP - ContactGroup *ContactGroupProto `json:"contactGroup,omitempty"` - - // EmailOwner: scope = EMAIL_OWNER - EmailOwner *EmailOwnerProto `json:"emailOwner,omitempty"` - - // Event: scope = EVENT - Event *EventProto `json:"event,omitempty"` - - // GaiaGroup: scope = GAIA_GROUP - GaiaGroup *GaiaGroupProto `json:"gaiaGroup,omitempty"` - - // GaiaUser: scope = GAIA_USER - GaiaUser *GaiaUserProto `json:"gaiaUser,omitempty"` - - // Host: scope = HOST - Host *HostProto `json:"host,omitempty"` - - // LdapGroup: scope = LDAP_GROUP - LdapGroup *LdapGroupProto `json:"ldapGroup,omitempty"` - - // LdapUser: scope = LDAP_USER - LdapUser *LdapUserProto `json:"ldapUser,omitempty"` - - // MdbGroup: scope = MDB_GROUP - MdbGroup *MdbGroupProto `json:"mdbGroup,omitempty"` - - // MdbUser: scope = MDB_USER - MdbUser *MdbUserProto `json:"mdbUser,omitempty"` - - // OauthConsumer: scope = OAUTH_CONSUMER; - OauthConsumer *OAuthConsumerProto `json:"oauthConsumer,omitempty"` - - // PostiniUser: scope = POSTINI_USER - PostiniUser *PostiniUserProto `json:"postiniUser,omitempty"` - - // RbacRole: scope = RBAC_ROLE - RbacRole *RbacRoleProto `json:"rbacRole,omitempty"` - - // RbacSubject: scope = RBAC_SUBJECT - RbacSubject *RbacSubjectProto `json:"rbacSubject,omitempty"` - - // ResourceRole: scope = RESOURCE_ROLE - ResourceRole *ResourceRoleProto `json:"resourceRole,omitempty"` - - // Scope: This is only optional because required enums cannot be - // extended. Currently required. - // - // Possible values: - // "INVALID" - // "GAIA_USER" - // "GAIA_GROUP" - // "LDAP_USER" - // "LDAP_GROUP" - // "MDB_USER" - // "MDB_GROUP" - // "POSTINI_USER" - // "CONTACT_GROUP" - // "SIMPLE_SECRET_HOLDER" - // "SIGNING_KEY_POSSESSOR" - // "ALL_AUTHENTICATED_USERS" - // "OAUTH_CONSUMER" - // "HOST" - // "SOCIAL_GRAPH_NODE" - // "EMAIL_OWNER" - // "CAP_TOKEN_HOLDER" - // "CIRCLE" - // "SQUARE" - // "EVENT" - // "RESOURCE_ROLE" - // "CHAT" - // "YOUTUBE_USER" - // "UNUSED_ZWIEBACK_SESSION" - // "ZWIEBACK_SESSION" - // "RBAC_ROLE" - // "RBAC_SUBJECT" - // "CLOUD_PRINCIPAL" - next tag: 29 - Scope string `json:"scope,omitempty"` - - // SigningKeyPossessor: scope = SIGNING_KEY_POSSESSOR - SigningKeyPossessor *SigningKeyPossessorProto `json:"signingKeyPossessor,omitempty"` - - // SimpleSecretHolder: scope = SIMPLE_SECRET_HOLDER - SimpleSecretHolder *SimpleSecretHolderProto `json:"simpleSecretHolder,omitempty"` - - // SocialGraphNode: scope = SOCIAL_GRAPH_NODE - SocialGraphNode *SocialGraphNodeProto `json:"socialGraphNode,omitempty"` - - // Square: scope = SQUARE - Square *SquareProto `json:"square,omitempty"` - - // YoutubeUser: scope = YOUTUBE_USER - YoutubeUser *YoutubeUserProto `json:"youtubeUser,omitempty"` - - // ZwiebackSession: scope = ZWIEBACK_SESSION - ZwiebackSession *ZwiebackSessionProto `json:"zwiebackSession,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "AllAuthenticatedUsers") 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. "AllAuthenticatedUsers") 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 *PrincipalProto) MarshalJSON() ([]byte, error) { - type NoMethod PrincipalProto - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// PrivateMessageInfo: Private message information specific to a given -// user. DEPRECATED: Use the privateMessageViewer field in -// CreateMessageInfo instead. -type PrivateMessageInfo struct { - // Annotations: Annotations private to {@code userId}. - Annotations []*Annotation `json:"annotations,omitempty"` - - // Attachments: Attachments private to {@code userId}. - Attachments []*Attachment `json:"attachments,omitempty"` - - ContextualAddOnMarkup []*GoogleChatV1ContextualAddOnMarkup `json:"contextualAddOnMarkup,omitempty"` - - GsuiteIntegrationMetadata []*GsuiteIntegrationMetadata `json:"gsuiteIntegrationMetadata,omitempty"` - - // Text: Text private to {@code user_id}. Initial restriction: Only one - // of public text or private text is rendered on the client. So if - // public text is set, private text is ignored. - Text string `json:"text,omitempty"` - - // UserId: Required. The elements in this struct are visible to this - // user. - UserId *UserId `json:"userId,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Annotations") 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. "Annotations") 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 *PrivateMessageInfo) MarshalJSON() ([]byte, error) { - type NoMethod PrivateMessageInfo - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -type ProcessingError struct { - // Code: Error code indicating the nature of the error. - // - // Possible values: - // "PROCESSING_ERROR_CODE_UNSPECIFIED" - Input only value. Use this - // value in Items. - // "MALFORMED_REQUEST" - Item's ACL, metadata, or content is malformed - // or in invalid state. FieldViolations contains more details on where - // the problem is. - // "UNSUPPORTED_CONTENT_FORMAT" - Countent format is unsupported. - // "INDIRECT_BROKEN_ACL" - Items with incomplete ACL information due - // to inheriting other items with broken ACL or having groups with - // unmapped descendants. - // "ACL_CYCLE" - ACL inheritance graph formed a cycle. - Code string `json:"code,omitempty"` - - // ErrorMessage: The description of the error. - ErrorMessage string `json:"errorMessage,omitempty"` - - // FieldViolations: In case the item fields are invalid, this field - // contains the details about the validation errors. - FieldViolations []*FieldViolation `json:"fieldViolations,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 *ProcessingError) MarshalJSON() ([]byte, error) { - type NoMethod ProcessingError - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// PropertyDefinition: The definition of a property within an object. -type PropertyDefinition struct { - BooleanPropertyOptions *BooleanPropertyOptions `json:"booleanPropertyOptions,omitempty"` - - DatePropertyOptions *DatePropertyOptions `json:"datePropertyOptions,omitempty"` - - // DisplayOptions: The options that determine how the property is - // displayed in the Cloud Search results page if it's specified to be - // displayed in the object's display options. - DisplayOptions *PropertyDisplayOptions `json:"displayOptions,omitempty"` - - DoublePropertyOptions *DoublePropertyOptions `json:"doublePropertyOptions,omitempty"` - - EnumPropertyOptions *EnumPropertyOptions `json:"enumPropertyOptions,omitempty"` - - HtmlPropertyOptions *HtmlPropertyOptions `json:"htmlPropertyOptions,omitempty"` - - IntegerPropertyOptions *IntegerPropertyOptions `json:"integerPropertyOptions,omitempty"` - - // IsFacetable: Indicates that the property can be used for generating - // facets. Cannot be true for properties whose type is object. - // IsReturnable must be true to set this option. Only supported for - // boolean, enum, integer, and text properties. - IsFacetable bool `json:"isFacetable,omitempty"` - - // IsRepeatable: Indicates that multiple values are allowed for the - // property. For example, a document only has one description but can - // have multiple comments. Cannot be true for properties whose type is a - // boolean. If set to false, properties that contain more than one value - // cause the indexing request for that item to be rejected. - IsRepeatable bool `json:"isRepeatable,omitempty"` - - // IsReturnable: Indicates that the property identifies data that should - // be returned in search results via the Query API. If set to *true*, - // indicates that Query API users can use matching property fields in - // results. However, storing fields requires more space allocation and - // uses more bandwidth for search queries, which impacts performance - // over large datasets. Set to *true* here only if the field is needed - // for search results. Cannot be true for properties whose type is an - // object. - IsReturnable bool `json:"isReturnable,omitempty"` - - // IsSortable: Indicates that the property can be used for sorting. - // Cannot be true for properties that are repeatable. Cannot be true for - // properties whose type is object. IsReturnable must be true to set - // this option. Only supported for boolean, date, double, integer, and - // timestamp properties. - IsSortable bool `json:"isSortable,omitempty"` - - // IsSuggestable: Indicates that the property can be used for generating - // query suggestions. - IsSuggestable bool `json:"isSuggestable,omitempty"` - - // IsWildcardSearchable: Indicates that users can perform wildcard - // search for this property. Only supported for Text properties. - // IsReturnable must be true to set this option. In a given datasource - // maximum of 5 properties can be marked as is_wildcard_searchable. For - // more details, see Define object properties - // (https://developers.google.com/cloud-search/docs/guides/schema-guide#properties) - IsWildcardSearchable bool `json:"isWildcardSearchable,omitempty"` - - // Name: The name of the property. Item indexing requests sent to the - // Indexing API should set the property name equal to this value. For - // example, if name is *subject_line*, then indexing requests for - // document items with subject fields should set the name for that field - // equal to *subject_line*. Use the name as the identifier for the - // object property. Once registered as a property for an object, you - // cannot re-use this name for another property within that object. The - // name must start with a letter and can only contain letters (A-Z, a-z) - // or numbers (0-9). The maximum length is 256 characters. - Name string `json:"name,omitempty"` - - ObjectPropertyOptions *ObjectPropertyOptions `json:"objectPropertyOptions,omitempty"` - - TextPropertyOptions *TextPropertyOptions `json:"textPropertyOptions,omitempty"` - - TimestampPropertyOptions *TimestampPropertyOptions `json:"timestampPropertyOptions,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "BooleanPropertyOptions") 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. "BooleanPropertyOptions") - // 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 *PropertyDefinition) MarshalJSON() ([]byte, error) { - type NoMethod PropertyDefinition - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// PropertyDisplayOptions: The display options for a property. -type PropertyDisplayOptions struct { - // DisplayLabel: The user friendly label for the property that is used - // if the property is specified to be displayed in ObjectDisplayOptions. - // If provided, the display label is shown in front of the property - // values when the property is part of the object display options. For - // example, if the property value is '1', the value by itself may not be - // useful context for the user. If the display name given was - // 'priority', then the user sees 'priority : 1' in the search results - // which provides clear context to search users. This is OPTIONAL; if - // not given, only the property values are displayed. The maximum length - // is 64 characters. - DisplayLabel string `json:"displayLabel,omitempty"` - - // ForceSendFields is a list of field names (e.g. "DisplayLabel") 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. "DisplayLabel") 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 *PropertyDisplayOptions) MarshalJSON() ([]byte, error) { - type NoMethod PropertyDisplayOptions - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// Provenance: This field records where the ItemScope was retrieved, if -// it was created via a web fetch. -type Provenance struct { - // AnnotationBlob: Annotation blob from Annotation Service. - AnnotationBlob string `json:"annotationBlob,omitempty"` - - // CanonicalUrl: Canonical url of the retrieved_url, if one was resolved - // during retrieval, for example, if a rel="canonical" link tag was - // provided in the retrieved web page. - CanonicalUrl string `json:"canonicalUrl,omitempty"` - - // InputUrl: The url originally passed in the PRS request, which should - // be used to re-discover the content. Note that this URL may be a - // forwarding service or link shortener (bit.ly), so it should not be - // assumed to be canonical, but should be used for navigation back to - // the original source of the itemscope. - InputUrl string `json:"inputUrl,omitempty"` - - // Itemtype: Contains exact types as parsed, whether or not we - // recognized that type at parse time. If an itemscope is created by - // merging SchemaOrg markup and open graph markup then the first - // itemtype would be schemaorg type, the second would be open graph and - // so on. example: http://schema.org/VideoObject, og:video.movie Plain - // text; usually a URL - Itemtype []string `json:"itemtype,omitempty"` - - // RetrievedTimestampMsec: The server retrieved timestamp (in msec). - RetrievedTimestampMsec uint64 `json:"retrievedTimestampMsec,omitempty,string"` - - // RetrievedUrl: The final URL that was the actual source of the - // itemscope, after any redirects. - RetrievedUrl string `json:"retrievedUrl,omitempty"` - - // ForceSendFields is a list of field names (e.g. "AnnotationBlob") 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. "AnnotationBlob") 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 *Provenance) MarshalJSON() ([]byte, error) { - type NoMethod Provenance - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// PushItem: Represents an item to be pushed to the indexing queue. -type PushItem struct { - // ContentHash: Content hash of the item according to the repository. If - // specified, this is used to determine how to modify this item's - // status. Setting this field and the type field results in argument - // error. The maximum length is 2048 characters. - ContentHash string `json:"contentHash,omitempty"` - - // MetadataHash: The metadata hash of the item according to the - // repository. If specified, this is used to determine how to modify - // this item's status. Setting this field and the type field results in - // argument error. The maximum length is 2048 characters. - MetadataHash string `json:"metadataHash,omitempty"` - - // Payload: Provides additional document state information for the - // connector, such as an alternate repository ID and other metadata. The - // maximum length is 8192 bytes. - Payload string `json:"payload,omitempty"` - - // Queue: Queue to which this item belongs. The `default` queue is - // chosen if this field is not specified. The maximum length is 512 - // characters. - Queue string `json:"queue,omitempty"` - - // RepositoryError: Populate this field to store Connector or repository - // error details. This information is displayed in the Admin Console. - // This field may only be populated when the Type is REPOSITORY_ERROR. - RepositoryError *RepositoryError `json:"repositoryError,omitempty"` - - // StructuredDataHash: Structured data hash of the item according to the - // repository. If specified, this is used to determine how to modify - // this item's status. Setting this field and the type field results in - // argument error. The maximum length is 2048 characters. - StructuredDataHash string `json:"structuredDataHash,omitempty"` - - // Type: The type of the push operation that defines the push behavior. - // - // Possible values: - // "UNSPECIFIED" - Default UNSPECIFIED. Specifies that the push - // operation should not modify ItemStatus - // "MODIFIED" - Indicates that the repository document has been - // modified or updated since the previous update call. This changes - // status to MODIFIED state for an existing item. If this is called on a - // non existing item, the status is changed to NEW_ITEM. - // "NOT_MODIFIED" - Item in the repository has not been modified since - // the last update call. This push operation will set status to ACCEPTED - // state. - // "REPOSITORY_ERROR" - Connector is facing a repository error - // regarding this item. Change status to REPOSITORY_ERROR state. Item is - // unreserved and rescheduled at a future time determined by exponential - // backoff. - // "REQUEUE" - Call push with REQUEUE only for items that have been - // reserved. This action unreserves the item and resets its available - // time to the wall clock time. - Type string `json:"type,omitempty"` - - // ForceSendFields is a list of field names (e.g. "ContentHash") 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. "ContentHash") 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 *PushItem) MarshalJSON() ([]byte, error) { - type NoMethod PushItem - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -type PushItemRequest struct { - // ConnectorName: The name of connector making this call. Format: - // datasources/{source_id}/connectors/{ID} - ConnectorName string `json:"connectorName,omitempty"` - - // DebugOptions: Common debug options. - DebugOptions *DebugOptions `json:"debugOptions,omitempty"` - - // Item: Item to push onto the queue. - Item *PushItem `json:"item,omitempty"` - - // ForceSendFields is a list of field names (e.g. "ConnectorName") 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. "ConnectorName") 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 *PushItemRequest) MarshalJSON() ([]byte, error) { - type NoMethod PushItemRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// QueryActivity: Details about a user's query activity. -type QueryActivity struct { - // Query: User input query to be logged/removed. - Query string `json:"query,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Query") 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. "Query") 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 *QueryActivity) MarshalJSON() ([]byte, error) { - type NoMethod QueryActivity - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -type QueryCountByStatus struct { - Count int64 `json:"count,omitempty,string"` - - // StatusCode: This represents the http status code. - StatusCode int64 `json:"statusCode,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Count") 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. "Count") 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 *QueryCountByStatus) MarshalJSON() ([]byte, error) { - type NoMethod QueryCountByStatus - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -type QueryInterpretation struct { - // Possible values: - // "NONE" - Neither the natural language interpretation, nor a broader - // version of the query is used to fetch the search results. - // "BLEND" - The results from original query are blended with other - // results. The reason for blending these other results with the results - // from original query is populated in the 'Reason' field below. - // "REPLACE" - The results from original query are replaced. The - // reason for replacing the results from original query is populated in - // the 'Reason' field below. - InterpretationType string `json:"interpretationType,omitempty"` - - // InterpretedQuery: The interpretation of the query used in search. For - // example, queries with natural language intent like "email from john" - // will be interpreted as "from:john source:mail". This field will not - // be filled when the reason is NOT_ENOUGH_RESULTS_FOUND_FOR_USER_QUERY. - InterpretedQuery string `json:"interpretedQuery,omitempty"` - - // Reason: The reason for interpretation of the query. This field will - // not be UNSPECIFIED if the interpretation type is not NONE. - // - // Possible values: - // "UNSPECIFIED" - // "QUERY_HAS_NATURAL_LANGUAGE_INTENT" - Natural language - // interpretation of the query is used to fetch the search results. - // "NOT_ENOUGH_RESULTS_FOUND_FOR_USER_QUERY" - Query and document - // terms similarity is used to selectively broaden the query to retrieve - // additional search results since enough results were not found for the - // user query. Interpreted query will be empty for this case. - Reason string `json:"reason,omitempty"` - - // ForceSendFields is a list of field names (e.g. "InterpretationType") - // 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. "InterpretationType") 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 *QueryInterpretation) MarshalJSON() ([]byte, error) { - type NoMethod QueryInterpretation - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// QueryInterpretationConfig: Default options to interpret user query. -type QueryInterpretationConfig struct { - // ForceDisableSupplementalResults: Set this flag to disable - // supplemental results retrieval, setting a flag here will not retrieve - // supplemental results for queries associated with a given search - // application. If this flag is set to True, it will take precedence - // over the option set at Query level. For the default value of False, - // query level flag will set the correct interpretation for supplemental - // results. - ForceDisableSupplementalResults bool `json:"forceDisableSupplementalResults,omitempty"` - - // ForceVerbatimMode: Enable this flag to turn off all internal - // optimizations like natural language (NL) interpretation of queries, - // supplemental results retrieval, and usage of synonyms including - // custom ones. If this flag is set to True, it will take precedence - // over the option set at Query level. For the default value of False, - // query level flag will set the correct interpretation for verbatim - // mode. - ForceVerbatimMode bool `json:"forceVerbatimMode,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "ForceDisableSupplementalResults") 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. - // "ForceDisableSupplementalResults") 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 *QueryInterpretationConfig) MarshalJSON() ([]byte, error) { - type NoMethod QueryInterpretationConfig - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// QueryInterpretationOptions: Options to interpret user query. -type QueryInterpretationOptions struct { - // DisableNlInterpretation: Flag to disable natural language (NL) - // interpretation of queries. Default is false, Set to true to disable - // natural language interpretation. NL interpretation only applies to - // predefined datasources. - DisableNlInterpretation bool `json:"disableNlInterpretation,omitempty"` - - // DisableSupplementalResults: Use this flag to disable supplemental - // results for a query. Supplemental results setting chosen at - // SearchApplication level will take precedence if set to True. - DisableSupplementalResults bool `json:"disableSupplementalResults,omitempty"` - - // EnableVerbatimMode: Enable this flag to turn off all internal - // optimizations like natural language (NL) interpretation of queries, - // supplemental result retrieval, and usage of synonyms including custom - // ones. Nl interpretation will be disabled if either one of the two - // flags is true. - EnableVerbatimMode bool `json:"enableVerbatimMode,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "DisableNlInterpretation") 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. "DisableNlInterpretation") - // 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 *QueryInterpretationOptions) MarshalJSON() ([]byte, error) { - type NoMethod QueryInterpretationOptions - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// QueryItem: Information relevant only to a query entry. -type QueryItem struct { - // IsSynthetic: True if the text was generated by means other than a - // previous user search. - IsSynthetic bool `json:"isSynthetic,omitempty"` - - // ForceSendFields is a list of field names (e.g. "IsSynthetic") 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. "IsSynthetic") 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 *QueryItem) MarshalJSON() ([]byte, error) { - type NoMethod QueryItem - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// QueryOperator: The definition of a operator that can be used in a -// Search/Suggest request. -type QueryOperator struct { - // DisplayName: Display name of the operator - DisplayName string `json:"displayName,omitempty"` - - // EnumValues: Potential list of values for the opeatror field. This - // field is only filled when we can safely enumerate all the possible - // values of this operator. - EnumValues []string `json:"enumValues,omitempty"` - - // GreaterThanOperatorName: Indicates the operator name that can be used - // to isolate the property using the greater-than operator. - GreaterThanOperatorName string `json:"greaterThanOperatorName,omitempty"` - - // IsFacetable: Can this operator be used to get facets. - IsFacetable bool `json:"isFacetable,omitempty"` - - // IsRepeatable: Indicates if multiple values can be set for this - // property. - IsRepeatable bool `json:"isRepeatable,omitempty"` - - // IsReturnable: Will the property associated with this facet be - // returned as part of search results. - IsReturnable bool `json:"isReturnable,omitempty"` - - // IsSortable: Can this operator be used to sort results. - IsSortable bool `json:"isSortable,omitempty"` - - // IsSuggestable: Can get suggestions for this field. - IsSuggestable bool `json:"isSuggestable,omitempty"` - - // LessThanOperatorName: Indicates the operator name that can be used to - // isolate the property using the less-than operator. - LessThanOperatorName string `json:"lessThanOperatorName,omitempty"` - - // ObjectType: The name of the object corresponding to the operator. - // This field is only filled for schema-specific operators, and is unset - // for common operators. - ObjectType string `json:"objectType,omitempty"` - - // OperatorName: The name of the operator. - OperatorName string `json:"operatorName,omitempty"` - - // Type: The type of the operator. - // - // Possible values: - // "UNKNOWN" - Invalid value. - // "INTEGER" - // "DOUBLE" - // "TIMESTAMP" - // "BOOLEAN" - // "ENUM" - // "DATE" - // "TEXT" - // "HTML" - Type string `json:"type,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 *QueryOperator) MarshalJSON() ([]byte, error) { - type NoMethod QueryOperator - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// QuerySource: List of sources that the user can search using the query -// API. -type QuerySource struct { - // DisplayName: Display name of the data source. - DisplayName string `json:"displayName,omitempty"` - - // Operators: List of all operators applicable for this source. - Operators []*QueryOperator `json:"operators,omitempty"` - - // ShortName: A short name or alias for the source. This value can be - // used with the 'source' operator. - ShortName string `json:"shortName,omitempty"` - - // Source: The name of the source - Source *Source `json:"source,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 *QuerySource) MarshalJSON() ([]byte, error) { - type NoMethod QuerySource - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// QuerySuggestion: This field does not contain anything as of now and -// is just used as an indicator that the suggest result was a phrase -// completion. -type QuerySuggestion struct { -} - -// QuotedMessageMetadata: Quote metadata: go/message-quoting-be-dd-v2. -// This proto is only used on the read path. For the request proto, -// refer to `QuotedMessagePayload`. Fields are either derived from -// storage directly from the Item this metadata belongs to, or is -// hydrated at read time from another Item read. Note: -// QuotedMessageMetadata proto is similar to Message proto with less -// field. Reasons to differtiate QuotedMessageMetadata from Message are: -// 1. Not all fields for original message is applicable for quoted -// message. (E.g. reactions, is_inline_reply, etc.), thus separting out -// for confusion. 2. We don't support nested message quoting. For more -// detailed discussion, please see http://shortn/_VsSXQb2C7P. For future -// reference: if your new feature/field will be supported in message -// quoting feature (go/chat-quoting-prd), you will need to add that -// field within QuotedMessageMetadata -type QuotedMessageMetadata struct { - // Annotations: Output only. Snapshot of the annotations of the quoted - // message. - Annotations []*Annotation `json:"annotations,omitempty"` - - // AppProfile: Output only. Custom display profile info for apps. Will - // be empty for real users. - AppProfile *AppsDynamiteSharedAppProfile `json:"appProfile,omitempty"` - - // BotAttachmentState: Output only. The bot attachment state of the - // quoted message. Used by clients to display a bot attachment indicator - // in the UI. - // - // Possible values: - // "BOT_ATTACHMENT_STATE_UNSPECIFIED" - // "BOT_ATTACHMENT_STATE_HAS_BOT_ATTACHMENT" - // "BOT_ATTACHMENT_STATE_NO_BOT_ATTACHMENT" - BotAttachmentState string `json:"botAttachmentState,omitempty"` - - // CreateTimeMicros: Output only. Time when the quoted message was - // posted in microseconds. - CreateTimeMicros int64 `json:"createTimeMicros,omitempty,string"` - - // CreatorId: Output only. ID of the User who posted the quoted message. - // This includes information to identify if the quoted message was - // posted by an App on behalf of a user. - CreatorId *UserId `json:"creatorId,omitempty"` - - // LastEditTimeMicros: Output only. Time when the quoted message was - // last edited by a user at the time when quoting action happens. Time - // is in microseconds. - LastEditTimeMicros int64 `json:"lastEditTimeMicros,omitempty,string"` - - // LastUpdateTimeWhenQuotedMicros: The `last_update_time` of the - // original message when the client initiated the quote creation. This - // is derived from the request payload passed from clients. Used to - // fetch the quoted message contents at a specific time on the read - // path. This field is populated from storage directly. - LastUpdateTimeWhenQuotedMicros int64 `json:"lastUpdateTimeWhenQuotedMicros,omitempty,string"` - - // MessageId: MessageId of the original message that is being quoted. - // This is derived from the request payload passed from clients. This - // field is populated from storage directly. - MessageId *MessageId `json:"messageId,omitempty"` - - // MessageState: Output only. The state of the quoted message. Used by - // clients to display tombstones for quotes that reference a deleted - // message. - // - // Possible values: - // "MESSAGE_STATE_UNSPECIFIED" - // "MESSAGE_STATE_ACTIVE" - The original message is present in storage - // and not deleted; the message contents can be hydrated. - // "MESSAGE_STATE_DELETED" - The original message has been deleted; - // the message contents cannot be hydrated. - // "MESSAGE_STATE_OTR_EDITED" - The OTR original message was edited - // and therefore no longer retrievable from storage; the message - // contents cannot be hydrated. See go/message-quoting-otr-edits for - // more context. - MessageState string `json:"messageState,omitempty"` - - // RetentionSettings: Output only. The retention (OTR) settings of the - // quoted message. - RetentionSettings *AppsDynamiteSharedRetentionSettings `json:"retentionSettings,omitempty"` - - // TextBody: Output only. Snapshot of the text body of the quoted - // message. - TextBody string `json:"textBody,omitempty"` - - // UpdaterId: Output only. ID of the User who last updated - // (created/edited/deleted) the quoted message at the time when quoting - // action happens. This includes information to identify if the quoted - // message was posted by an App on behalf of a user. - UpdaterId *UserId `json:"updaterId,omitempty"` - - // UploadMetadata: Output only. Upload metadata of the quoted message. - UploadMetadata []*UploadMetadata `json:"uploadMetadata,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Annotations") 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. "Annotations") 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 *QuotedMessageMetadata) MarshalJSON() ([]byte, error) { - type NoMethod QuotedMessageMetadata - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// Rank: The rank contains a tuple of numbers which may be used as a -// general sort order. The rank should be treated as an ordered set of -// numbers, where the ordering is done in descending order of the most -// significant rank member. For example, given the following ranks -// described as (primary, secondary): (1,1), (1,2), (2,2) (2,1) The -// descending rank-order is: (2,2) > (2,1) > (1,2) > (1,1) -type Rank struct { - // Primary: The primary rank is the most significant rank member. This - // rank element should always be present. Items with higher primary rank - // are always considered of higher rank than those of lower primary - // rank. - Primary int64 `json:"primary,omitempty,string"` - - // Secondary: The secondary rank may be used to rank items of identical - // primary rank. This rank element should always be present. - Secondary int64 `json:"secondary,omitempty,string"` - - // ForceSendFields is a list of field names (e.g. "Primary") 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. "Primary") 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 *Rank) MarshalJSON() ([]byte, error) { - type NoMethod Rank - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// RbacRoleProto: Principal associated with a given RBAC role. This -// principal is used by Sphinx Provisioning Service for RBAC -// provisionable (go/sphinx-rbacz). -type RbacRoleProto struct { - Name string `json:"name,omitempty"` - - ObjectId string `json:"objectId,omitempty"` - - // RbacNamespace: DEPRECATED as of 01.11.2019 - RbacNamespace string `json:"rbacNamespace,omitempty"` - - // RbacRoleName: Format: "role/z?" - "role" is the Sphinx globally - // unique name of the Sphinx role that provisions the RBAC role. - "/z?" - // suffix indicates which Zanzibar environment stores the role - // membership data ("/zd": dev, "/zs": staging, "/zp": prod, "/zt": - // local test instance). Example: "mysystem_myrole/zp" - RbacRoleName string `json:"rbacRoleName,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Name") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Name") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. - NullFields []string `json:"-"` -} - -func (s *RbacRoleProto) MarshalJSON() ([]byte, error) { - type NoMethod RbacRoleProto - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// RbacSubjectProto: Principal associated with a given RBAC subject. -// This principal is used by Sphinx Provisioning Service for RBAC -// provisionable (go/sphinx-rbacz). -type RbacSubjectProto struct { - // Username: Format "username" without "@domain", e.g., "bogdand". - Username string `json:"username,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Username") 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. "Username") 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 *RbacSubjectProto) MarshalJSON() ([]byte, error) { - type NoMethod RbacSubjectProto - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// ReactionInfo: Contains information about an emoji reaction. -type ReactionInfo struct { - // Emoji: Unicode string representing a single emoji. - Emoji string `json:"emoji,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Emoji") 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. "Emoji") 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 *ReactionInfo) MarshalJSON() ([]byte, error) { - type NoMethod ReactionInfo - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -type ReadReceiptsSettingsUpdatedMetadata struct { - // ReadReceiptsEnabled: The new read receipts state. - ReadReceiptsEnabled bool `json:"readReceiptsEnabled,omitempty"` - - // ForceSendFields is a list of field names (e.g. "ReadReceiptsEnabled") - // 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. "ReadReceiptsEnabled") 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 *ReadReceiptsSettingsUpdatedMetadata) MarshalJSON() ([]byte, error) { - type NoMethod ReadReceiptsSettingsUpdatedMetadata - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -type Recipient struct { - Email string `json:"email,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 *Recipient) MarshalJSON() ([]byte, error) { - type NoMethod Recipient - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// RecordingEvent: A recording event is something that happens to the -// recording in a conference. -type RecordingEvent struct { - // DeviceId: The initiator of the latest event of the recording. It will - // be set for all user events (`type` is 100-199) and unset for all - // server events (`type` is 200-299). - DeviceId string `json:"deviceId,omitempty"` - - // Type: The type of event. - // - // Possible values: - // "RECORDING_EVENT_UNSPECIFIED" - This is never used. - // "USER_ACTION" - Deprecated, use detailed user actions instead. - // "STARTED_BY_USER" - Recording was started or is being started by a - // user. - // "STOPPED_BY_USER" - Recording was stopped by a user. - // "CANCELLED_BY_USER" - Recording was cancelled by a user. - // "CANCELLED_INITIALIZATION_FAILED" - Recording was cancelled by the - // server because of a failure during recording initialization. - // "CANCELLED_INITIATOR_LEFT" - Recording was cancelled by the server - // because the recording initiator left the conference during - // initialization. When the initiator leaves after the recording is - // started, no event is triggered. - // "ACTIVE_ABOUT_TO_STOP_TOO_LONG" - Recording is about to be stopped - // by the server because the recording is about to reach the maximum - // duration. - // "STOPPED_TOO_LONG" - Recording was stopped because the recording - // reached the maximum duration. - // "STOPPED_ALL_DEVICES_LEFT" - Recording was stopped because there - // were no devices left in the conference. - // "STOPPED_INTERNAL_FAILURES" - Recording was stopped because of an - // internal error. - Type string `json:"type,omitempty"` - - // ForceSendFields is a list of field names (e.g. "DeviceId") 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. "DeviceId") 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 *RecordingEvent) MarshalJSON() ([]byte, error) { - type NoMethod RecordingEvent - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// RecordingInfo: This message is deprecated, please use -// RecordingSessionInfo instead. Information about recording in the -// current conference. -type RecordingInfo struct { - // LatestRecordingEvent: The latest recording event. This can be used by - // clients to help explain what is going on, why recording stopped, etc. - // This will always be set if there is or was an active recording, which - // means there can be latest event when recording is INACTIVE. - LatestRecordingEvent *RecordingEvent `json:"latestRecordingEvent,omitempty"` - - // OwnerDisplayName: The display name of the owner of the recording - // output. Email notifications about uploaded recordings will also be - // sent to this owner. - OwnerDisplayName string `json:"ownerDisplayName,omitempty"` - - // ProducerDeviceId: The device resource name of the producer device for - // the currently active recording. Note that, after the producer - // drops/leaves the conference, this field will be cleaned up by the - // server after a delay. - ProducerDeviceId string `json:"producerDeviceId,omitempty"` - - // RecordingApplicationType: The application type of the current active - // recording. `RECORDING_APPLICATION_TYPE_UNSPECIFIED` if - // `recording_status` is inactive. - // - // Possible values: - // "RECORDING_APPLICATION_TYPE_UNSPECIFIED" - This is never used. - // "RECORDING" - A meeting recording saved to a video file in Google - // Drive. - // "GLIVE_STREAM" - A *Google Live* managed stream. - // "BROADCAST" - A meeting broadcast. - RecordingApplicationType string `json:"recordingApplicationType,omitempty"` - - // RecordingId: An identifier for the current recording, if any. This is - // returned whenever recording_status is either `RECORDING_STARTING` or - // `RECORDING_STARTED`. - RecordingId string `json:"recordingId,omitempty"` - - // RecordingStatus: The current status of the recording. This can be - // used by clients to show a recording dot or similar to indicated to - // the user that a recording is taking place. - // - // Possible values: - // "RECORDING_UNSPECIFIED" - This value is never used. - // "RECORDING_INACTIVE" - The conference is not being recorded. This - // can mean either that no recording has been started, or that a - // previous recording has stopped. - // "RECORDING_STARTING" - Recording is about to begin. The status will - // be updated to RECORDING_STARTED when the recording actually starts, - // which happens when all the backend plumbing is set up. - // "RECORDING_STARTED" - The recording is started. Any media sent to - // the conference may be included in the resulting recording. - RecordingStatus string `json:"recordingStatus,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "LatestRecordingEvent") 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. "LatestRecordingEvent") 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 *RecordingInfo) MarshalJSON() ([]byte, error) { - type NoMethod RecordingInfo - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// RecordingSessionInfo: Information about a recording session. -type RecordingSessionInfo struct { - // OwnerEmail: Input only. Deprecated field, should not be used. - OwnerEmail string `json:"ownerEmail,omitempty"` - - // RecordingSessionId: A unique server-generated ID for the recording - // session. - RecordingSessionId string `json:"recordingSessionId,omitempty"` - - // SessionStateInfo: Recording session's state information. - SessionStateInfo *SessionStateInfo `json:"sessionStateInfo,omitempty"` - - // ForceSendFields is a list of field names (e.g. "OwnerEmail") 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. "OwnerEmail") 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 *RecordingSessionInfo) MarshalJSON() ([]byte, error) { - type NoMethod RecordingSessionInfo - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// Reference: All fields in this proto are now columns in spanner see -// google3/storage/slice/production/gmail/user_data_tables.pi for -// documentation. -type Reference struct { - BlobId string `json:"blobId,omitempty"` - - ContentType string `json:"contentType,omitempty"` - - Hash string `json:"hash,omitempty"` - - // Key: LINT.IfChange - Key string `json:"key,omitempty"` - - // Name: LINT.ThenChange(//depot/google3/storage/slice/production/gmail/ - // user_data_tables.pi) - Name string `json:"name,omitempty"` - - Size int64 `json:"size,omitempty,string"` - - // ForceSendFields is a list of field names (e.g. "BlobId") 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. "BlobId") 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 *Reference) MarshalJSON() ([]byte, error) { - type NoMethod Reference - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -type References struct { - References []*Reference `json:"references,omitempty"` - - // ForceSendFields is a list of field names (e.g. "References") 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. "References") 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 *References) MarshalJSON() ([]byte, error) { - type NoMethod References - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// RemoveActivityRequest: Remove Logged Activity Request. -type RemoveActivityRequest struct { - // RequestOptions: Request options, such as the search application and - // clientId. - RequestOptions *RequestOptions `json:"requestOptions,omitempty"` - - // UserActivity: User Activity containing the data to be deleted. - UserActivity *UserActivity `json:"userActivity,omitempty"` - - // ForceSendFields is a list of field names (e.g. "RequestOptions") 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. "RequestOptions") 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 *RemoveActivityRequest) MarshalJSON() ([]byte, error) { - type NoMethod RemoveActivityRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// RemoveActivityResponse: Remove Logged Activity Response. will return -// an empty response for now. Will be revisited in later phases. -type RemoveActivityResponse struct { - // ServerResponse contains the HTTP response code and headers from the - // server. - googleapi.ServerResponse `json:"-"` -} - -type RenameEvent struct { - NewName string `json:"newName,omitempty"` - - OriginalName string `json:"originalName,omitempty"` - - // ForceSendFields is a list of field names (e.g. "NewName") 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. "NewName") 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 *RenameEvent) MarshalJSON() ([]byte, error) { - type NoMethod RenameEvent - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// RepositoryError: Errors when the connector is communicating to the -// source repository. -type RepositoryError struct { - // ErrorMessage: Message that describes the error. The maximum allowable - // length of the message is 8192 characters. - ErrorMessage string `json:"errorMessage,omitempty"` - - // HttpStatusCode: Error codes. Matches the definition of HTTP status - // codes. - HttpStatusCode int64 `json:"httpStatusCode,omitempty"` - - // Type: The type of error. - // - // Possible values: - // "UNKNOWN" - Unknown error. - // "NETWORK_ERROR" - Unknown or unreachable host. - // "DNS_ERROR" - DNS problem, such as the DNS server is not - // responding. - // "CONNECTION_ERROR" - Cannot connect to the repository server. - // "AUTHENTICATION_ERROR" - Failed authentication due to incorrect - // credentials. - // "AUTHORIZATION_ERROR" - Service account is not authorized for the - // repository. - // "SERVER_ERROR" - Repository server error. - // "QUOTA_EXCEEDED" - Quota exceeded. - // "SERVICE_UNAVAILABLE" - Server temporarily unavailable. - // "CLIENT_ERROR" - Client-related error, such as an invalid request - // from the connector to the repository server. - Type string `json:"type,omitempty"` - - // ForceSendFields is a list of field names (e.g. "ErrorMessage") 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. "ErrorMessage") 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 *RepositoryError) MarshalJSON() ([]byte, error) { - type NoMethod RepositoryError - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -type RequestFileScope struct { - ItemId string `json:"itemId,omitempty"` - - // ForceSendFields is a list of field names (e.g. "ItemId") 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. "ItemId") 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 *RequestFileScope) MarshalJSON() ([]byte, error) { - type NoMethod RequestFileScope - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -type RequestFileScopeForActiveDocument struct { -} - -// RequestOptions: Shared request options for all RPC methods. -type RequestOptions struct { - // DebugOptions: Debug options of the request - DebugOptions *DebugOptions `json:"debugOptions,omitempty"` - - // LanguageCode: The BCP-47 language code, such as "en-US" or "sr-Latn". - // For more information, see - // http://www.unicode.org/reports/tr35/#Unicode_locale_identifier. For - // translations. Set this field using the language set in browser or for - // the page. In the event that the user's language preference is known, - // set this field to the known user language. When specified, the - // documents in search results are biased towards the specified - // language. From Suggest API perspective, for 3p suggest this is used - // as a hint while making predictions to add language boosting. - LanguageCode string `json:"languageCode,omitempty"` - - // SearchApplicationId: The ID generated when you create a search - // application using the admin console - // (https://support.google.com/a/answer/9043922). - SearchApplicationId string `json:"searchApplicationId,omitempty"` - - // TimeZone: Current user's time zone id, such as "America/Los_Angeles" - // or "Australia/Sydney". These IDs are defined by Unicode Common Locale - // Data Repository (CLDR) (http://cldr.unicode.org/) project, and - // currently available in the file timezone.xml - // (http://unicode.org/repos/cldr/trunk/common/bcp47/timezone.xml). This - // field is used to correctly interpret date and time queries. If this - // field is not specified, the default time zone (UTC) is used. - TimeZone string `json:"timeZone,omitempty"` - - // ForceSendFields is a list of field names (e.g. "DebugOptions") 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. "DebugOptions") 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 *RequestOptions) MarshalJSON() ([]byte, error) { - type NoMethod RequestOptions - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// RequiredMessageFeaturesMetadata: A list of capabilities that are used -// in this message. -type RequiredMessageFeaturesMetadata struct { - // Possible values: - // "REQUIRED_FEATURE_UNSPECIFIED" - // "REQUIRED_FEATURE_MESSAGE_QUOTING" - // "REQUIRED_FEATURE_TOMBSTONES_IN_DMS_AND_UFRS" - // "REQUIRED_FEATURE_CUSTOM_HYPERLINK" - // "REQUIRED_FEATURE_DRIVE_SMART_CHIP" - // "REQUIRED_FEATURE_LEGACY_TOPIC_START" - RequiredFeatures []string `json:"requiredFeatures,omitempty"` - - // ForceSendFields is a list of field names (e.g. "RequiredFeatures") 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. "RequiredFeatures") 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 *RequiredMessageFeaturesMetadata) MarshalJSON() ([]byte, error) { - type NoMethod RequiredMessageFeaturesMetadata - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -type ResetSearchApplicationRequest struct { - // DebugOptions: Common debug options. - DebugOptions *DebugOptions `json:"debugOptions,omitempty"` - - // ForceSendFields is a list of field names (e.g. "DebugOptions") 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. "DebugOptions") 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 *ResetSearchApplicationRequest) MarshalJSON() ([]byte, error) { - type NoMethod ResetSearchApplicationRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// ResourceRoleProto: A type of sharing target that points to some -// resource's ACL. Used to refer to the set of Principals that have the -// given privilege ('role_id') for the given resource ('application_id', -// 'object_id', 'object_part'). The meaning of 'role_id' is interpreted -// only by implementations of AclRpcService and is usually dependent on -// 'application_id' All fields except object_part are required. If -// present, object_part must be non-empty. -type ResourceRoleProto struct { - ApplicationId string `json:"applicationId,omitempty"` - - ObjectId string `json:"objectId,omitempty"` - - ObjectPart string `json:"objectPart,omitempty"` - - RoleId int64 `json:"roleId,omitempty"` - - // ForceSendFields is a list of field names (e.g. "ApplicationId") 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. "ApplicationId") 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 *ResourceRoleProto) MarshalJSON() ([]byte, error) { - type NoMethod ResourceRoleProto - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// ResponseDebugInfo: Debugging information about the response. -type ResponseDebugInfo struct { - // FormattedDebugInfo: General debug info formatted for display. - FormattedDebugInfo string `json:"formattedDebugInfo,omitempty"` - - // ForceSendFields is a list of field names (e.g. "FormattedDebugInfo") - // 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. "FormattedDebugInfo") 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 *ResponseDebugInfo) MarshalJSON() ([]byte, error) { - type NoMethod ResponseDebugInfo - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// RestrictItem: Information relevant only to a restrict entry. NextId: -// 12 -type RestrictItem struct { - DriveFollowUpRestrict *DriveFollowUpRestrict `json:"driveFollowUpRestrict,omitempty"` - - DriveLocationRestrict *DriveLocationRestrict `json:"driveLocationRestrict,omitempty"` - - // DriveMimeTypeRestrict: Drive Types. - DriveMimeTypeRestrict *DriveMimeTypeRestrict `json:"driveMimeTypeRestrict,omitempty"` - - DriveTimeSpanRestrict *DriveTimeSpanRestrict `json:"driveTimeSpanRestrict,omitempty"` - - // SearchOperator: The search restrict (e.g. "after:2017-09-11 - // before:2017-09-12"). - SearchOperator string `json:"searchOperator,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "DriveFollowUpRestrict") 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. "DriveFollowUpRestrict") 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 *RestrictItem) MarshalJSON() ([]byte, error) { - type NoMethod RestrictItem - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// ResultCounts: Result count information -type ResultCounts struct { - // SourceResultCounts: Result count information for each source with - // results. - SourceResultCounts []*SourceResultCount `json:"sourceResultCounts,omitempty"` - - // ForceSendFields is a list of field names (e.g. "SourceResultCounts") - // 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. "SourceResultCounts") 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 *ResultCounts) MarshalJSON() ([]byte, error) { - type NoMethod ResultCounts - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// ResultDebugInfo: Debugging information about the result. -type ResultDebugInfo struct { - // FormattedDebugInfo: General debug info formatted for display. - FormattedDebugInfo string `json:"formattedDebugInfo,omitempty"` - - // ForceSendFields is a list of field names (e.g. "FormattedDebugInfo") - // 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. "FormattedDebugInfo") 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 *ResultDebugInfo) MarshalJSON() ([]byte, error) { - type NoMethod ResultDebugInfo - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// ResultDisplayField: Display Fields for Search Results -type ResultDisplayField struct { - // Label: The display label for the property. - Label string `json:"label,omitempty"` - - // OperatorName: The operator name of the property. - OperatorName string `json:"operatorName,omitempty"` - - // Property: The name value pair for the property. - Property *NamedProperty `json:"property,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Label") 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. "Label") 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 *ResultDisplayField) MarshalJSON() ([]byte, error) { - type NoMethod ResultDisplayField - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// ResultDisplayLine: The collection of fields that make up a displayed -// line -type ResultDisplayLine struct { - Fields []*ResultDisplayField `json:"fields,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Fields") 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. "Fields") 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 *ResultDisplayLine) MarshalJSON() ([]byte, error) { - type NoMethod ResultDisplayLine - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -type ResultDisplayMetadata struct { - // Metalines: The metalines content to be displayed with the result. - Metalines []*ResultDisplayLine `json:"metalines,omitempty"` - - // ObjectTypeLabel: The display label for the object. - ObjectTypeLabel string `json:"objectTypeLabel,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Metalines") 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. "Metalines") 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 *ResultDisplayMetadata) MarshalJSON() ([]byte, error) { - type NoMethod ResultDisplayMetadata - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -type RetrievalImportance struct { - // Importance: Indicates the ranking importance given to property when - // it is matched during retrieval. Once set, the token importance of a - // property cannot be changed. - // - // Possible values: - // "DEFAULT" - Treat the match like a body text match. - // "HIGHEST" - Treat the match like a match against title of the item. - // "HIGH" - Treat the match with higher importance than body text. - // "LOW" - Treat the match with lower importance than body text. - // "NONE" - Do not match against this field during retrieval. The - // property can still be used for operator matching, faceting, and - // suggest if desired. - Importance string `json:"importance,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Importance") 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. "Importance") 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 *RetrievalImportance) MarshalJSON() ([]byte, error) { - type NoMethod RetrievalImportance - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -type RoomRenameMetadata struct { - NewName string `json:"newName,omitempty"` - - // PrevName: NEXT_TAG: 3 - PrevName string `json:"prevName,omitempty"` - - // ForceSendFields is a list of field names (e.g. "NewName") 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. "NewName") 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 *RoomRenameMetadata) MarshalJSON() ([]byte, error) { - type NoMethod RoomRenameMetadata - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -type RoomUpdatedMetadata struct { - GroupDetailsMetadata *GroupDetailsUpdatedMetadata `json:"groupDetailsMetadata,omitempty"` - - GroupLinkSharingEnabled bool `json:"groupLinkSharingEnabled,omitempty"` - - // Initiator: The user who initiated this room update. Complete member - // profiles, when ListTopicsRequest FetchOptions.USER is set. Otherwise, - // only the id will be filled in. - Initiator *User `json:"initiator,omitempty"` - - // InitiatorType: The type of the user who initiated this room update. - // - // Possible values: - // "INITIATOR_TYPE_UNSPECIFIED" - // "INITIATOR_TYPE_END_USER" - // "INITIATOR_TYPE_ADMIN" - InitiatorType string `json:"initiatorType,omitempty"` - - // Name: What was updated in the room. - Name string `json:"name,omitempty"` - - RenameMetadata *RoomRenameMetadata `json:"renameMetadata,omitempty"` - - // Visibility: DEPRECATED: See GroupVisibility proto definition. - Visibility *AppsDynamiteSharedGroupVisibility `json:"visibility,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "GroupDetailsMetadata") 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. "GroupDetailsMetadata") 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 *RoomUpdatedMetadata) MarshalJSON() ([]byte, error) { - type NoMethod RoomUpdatedMetadata - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// Roster: Roster profile information. -type Roster struct { - AvatarUrl string `json:"avatarUrl,omitempty"` - - Id *RosterId `json:"id,omitempty"` - - // IsMembershipVisibleToCaller: Whether caller has visibility into - // members of the roster. - IsMembershipVisibleToCaller bool `json:"isMembershipVisibleToCaller,omitempty"` - - MembershipCount int64 `json:"membershipCount,omitempty"` - - Name string `json:"name,omitempty"` - - // RosterGaiaKey: Roster gaia key, usually an email address. Set in - // looking up rosters response. - RosterGaiaKey string `json:"rosterGaiaKey,omitempty"` - - // RosterState: Roster deletion state - considered active unless set to - // deleted - // - // Possible values: - // "ROSTER_STATE_UNKNOWN" - // "ROSTER_ACTIVE" - Roster is active - // "ROSTER_DELETED" - Roster deleted - RosterState string `json:"rosterState,omitempty"` - - // SegmentedMembershipCounts: Roster membership count. May contain - // counts based on member type and membership state. - SegmentedMembershipCounts *AppsDynamiteSharedSegmentedMembershipCounts `json:"segmentedMembershipCounts,omitempty"` - - // ForceSendFields is a list of field names (e.g. "AvatarUrl") 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. "AvatarUrl") 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 *Roster) MarshalJSON() ([]byte, error) { - type NoMethod Roster - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// RosterId: Primary key for Roster resource. -type RosterId struct { - // Id: Opaque, server-assigned ID of the Roster. - Id string `json:"id,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Id") 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. "Id") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // 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 *RosterId) MarshalJSON() ([]byte, error) { - type NoMethod RosterId - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// RpcOptions: Options for Triggers dispatched via RPC. -type RpcOptions struct { - // RequestExtensions: The RPC's request extensions (i.e. - // RPC::request_extensions(), a.k.a. the Stubby side channel) will be - // merged with the specified [request_extensions]. When Triggers are - // batched, the RPC's request extensions will be merged with all of the - // [request_extensions] of the Triggers in the batch. Note that merging - // of request extensions follows standard protocol buffer semantics; - // values of singular fields override previous values, and values of - // repeated fields are appended (In the case of Triggers, Triggers with - // later fire times will be merged after Triggers with earlier fire - // times in the same batch). It is not advised to specify extensions - // with repeated fields on batchable Triggers. - RequestExtensions *MessageSet `json:"requestExtensions,omitempty"` - - // ForceSendFields is a list of field names (e.g. "RequestExtensions") - // 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. "RequestExtensions") 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 *RpcOptions) MarshalJSON() ([]byte, error) { - type NoMethod RpcOptions - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// SafeHtmlProto: IMPORTANT: It is unsafe to accept this message from an -// untrusted source, since it's trivial for an attacker to forge -// serialized messages that don't fulfill the type's safety contract -- -// for example, it could contain attacker controlled script. A system -// which receives a SafeHtmlProto implicitly trusts the producer of the -// SafeHtmlProto. So, it's generally safe to return this message in RPC -// responses, but generally unsafe to accept it in RPC requests. -type SafeHtmlProto struct { - // PrivateDoNotAccessOrElseSafeHtmlWrappedValue: IMPORTANT: Never set or - // read this field, even from tests, it is private. See documentation at - // the top of .proto file for programming language packages with which - // to create or read this message. - PrivateDoNotAccessOrElseSafeHtmlWrappedValue string `json:"privateDoNotAccessOrElseSafeHtmlWrappedValue,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "PrivateDoNotAccessOrElseSafeHtmlWrappedValue") 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. - // "PrivateDoNotAccessOrElseSafeHtmlWrappedValue") 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 *SafeHtmlProto) MarshalJSON() ([]byte, error) { - type NoMethod SafeHtmlProto - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// SafeUrlProto: Message containing a string that is safe to use in URL -// contexts in DOM APIs and HTML documents, where the URL context does -// not refer to a resource that loads code. -type SafeUrlProto struct { - // PrivateDoNotAccessOrElseSafeUrlWrappedValue: IMPORTANT: Never set or - // read this field, even from tests, it is private. See documentation at - // the top of .proto file for programming language packages with which - // to create or read this message. - PrivateDoNotAccessOrElseSafeUrlWrappedValue string `json:"privateDoNotAccessOrElseSafeUrlWrappedValue,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "PrivateDoNotAccessOrElseSafeUrlWrappedValue") 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. - // "PrivateDoNotAccessOrElseSafeUrlWrappedValue") 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 *SafeUrlProto) MarshalJSON() ([]byte, error) { - type NoMethod SafeUrlProto - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// Schema: The schema definition for a data source. -type Schema struct { - // ObjectDefinitions: The list of top-level objects for the data source. - // The maximum number of elements is 10. - ObjectDefinitions []*ObjectDefinition `json:"objectDefinitions,omitempty"` - - // OperationIds: IDs of the Long Running Operations (LROs) currently - // running for this schema. After modifying the schema, wait for - // operations to complete before indexing additional content. - OperationIds []string `json:"operationIds,omitempty"` - - // ServerResponse contains the HTTP response code and headers from the - // server. - googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "ObjectDefinitions") - // 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. "ObjectDefinitions") 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 *Schema) MarshalJSON() ([]byte, error) { - type NoMethod Schema - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// ScoringConfig: Scoring configurations for a source while processing a -// Search or Suggest request. -type ScoringConfig struct { - // DisableFreshness: Whether to use freshness as a ranking signal. By - // default, freshness is used as a ranking signal. Note that this - // setting is not available in the Admin UI. - DisableFreshness bool `json:"disableFreshness,omitempty"` - - // DisablePersonalization: Whether to personalize the results. By - // default, personal signals will be used to boost results. - DisablePersonalization bool `json:"disablePersonalization,omitempty"` - - // ForceSendFields is a list of field names (e.g. "DisableFreshness") 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. "DisableFreshness") 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 *ScoringConfig) MarshalJSON() ([]byte, error) { - type NoMethod ScoringConfig - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// SearchApplication: SearchApplication -type SearchApplication struct { - // DataSourceRestrictions: Retrictions applied to the configurations. - // The maximum number of elements is 10. - DataSourceRestrictions []*DataSourceRestriction `json:"dataSourceRestrictions,omitempty"` - - // DefaultFacetOptions: The default fields for returning facet results. - // The sources specified here also have been included in - // data_source_restrictions above. - DefaultFacetOptions []*FacetOptions `json:"defaultFacetOptions,omitempty"` - - // DefaultSortOptions: The default options for sorting the search - // results - DefaultSortOptions *SortOptions `json:"defaultSortOptions,omitempty"` - - // DisplayName: Display name of the Search Application. The maximum - // length is 300 characters. - DisplayName string `json:"displayName,omitempty"` - - // EnableAuditLog: Indicates whether audit logging is on/off for - // requests made for the search application in query APIs. - EnableAuditLog bool `json:"enableAuditLog,omitempty"` - - // Name: The name of the Search Application. Format: - // searchapplications/{application_id}. - Name string `json:"name,omitempty"` - - // OperationIds: Output only. IDs of the Long Running Operations (LROs) - // currently running for this schema. Output only field. - OperationIds []string `json:"operationIds,omitempty"` - - // QueryInterpretationConfig: The default options for query - // interpretation - QueryInterpretationConfig *QueryInterpretationConfig `json:"queryInterpretationConfig,omitempty"` - - // ReturnResultThumbnailUrls: With each result we should return the URI - // for its thumbnail (when applicable) - ReturnResultThumbnailUrls bool `json:"returnResultThumbnailUrls,omitempty"` - - // ScoringConfig: Configuration for ranking results. - ScoringConfig *ScoringConfig `json:"scoringConfig,omitempty"` - - // SourceConfig: Configuration for a sources specified in - // data_source_restrictions. - SourceConfig []*SourceConfig `json:"sourceConfig,omitempty"` - - // ServerResponse contains the HTTP response code and headers from the - // server. - googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. - // "DataSourceRestrictions") 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. "DataSourceRestrictions") - // 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 *SearchApplication) MarshalJSON() ([]byte, error) { - type NoMethod SearchApplication - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// SearchApplicationQueryStats: Search application level query stats per -// date -type SearchApplicationQueryStats struct { - // Date: The date for which query stats were calculated. Stats - // calculated on the next day close to midnight are returned. - Date *Date `json:"date,omitempty"` - - QueryCountByStatus []*QueryCountByStatus `json:"queryCountByStatus,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Date") 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. "Date") 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 *SearchApplicationQueryStats) MarshalJSON() ([]byte, error) { - type NoMethod SearchApplicationQueryStats - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -type SearchApplicationSessionStats struct { - // Date: The date for which session stats were calculated. Stats are - // calculated on the following day, close to midnight PST, and then - // returned. - Date *Date `json:"date,omitempty"` - - // SearchSessionsCount: The count of search sessions on the day - SearchSessionsCount int64 `json:"searchSessionsCount,omitempty,string"` - - // ForceSendFields is a list of field names (e.g. "Date") 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. "Date") 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 *SearchApplicationSessionStats) MarshalJSON() ([]byte, error) { - type NoMethod SearchApplicationSessionStats - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -type SearchApplicationUserStats struct { - // Date: The date for which session stats were calculated. Stats - // calculated on the next day close to midnight are returned. - Date *Date `json:"date,omitempty"` - - // OneDayActiveUsersCount: The count of unique active users in the past - // one day - OneDayActiveUsersCount int64 `json:"oneDayActiveUsersCount,omitempty,string"` - - // SevenDaysActiveUsersCount: The count of unique active users in the - // past seven days - SevenDaysActiveUsersCount int64 `json:"sevenDaysActiveUsersCount,omitempty,string"` - - // ThirtyDaysActiveUsersCount: The count of unique active users in the - // past thirty days - ThirtyDaysActiveUsersCount int64 `json:"thirtyDaysActiveUsersCount,omitempty,string"` - - // ForceSendFields is a list of field names (e.g. "Date") 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. "Date") 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 *SearchApplicationUserStats) MarshalJSON() ([]byte, error) { - type NoMethod SearchApplicationUserStats - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -type SearchItemsByViewUrlRequest struct { - // DebugOptions: Common debug options. - DebugOptions *DebugOptions `json:"debugOptions,omitempty"` - - // PageToken: The next_page_token value returned from a previous - // request, if any. - PageToken string `json:"pageToken,omitempty"` - - // ViewUrl: Specify the full view URL to find the corresponding item. - // The maximum length is 2048 characters. - ViewUrl string `json:"viewUrl,omitempty"` - - // ForceSendFields is a list of field names (e.g. "DebugOptions") 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. "DebugOptions") 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 *SearchItemsByViewUrlRequest) MarshalJSON() ([]byte, error) { - type NoMethod SearchItemsByViewUrlRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -type SearchItemsByViewUrlResponse struct { - Items []*Item `json:"items,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. "Items") 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. "Items") 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 *SearchItemsByViewUrlResponse) MarshalJSON() ([]byte, error) { - type NoMethod SearchItemsByViewUrlResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// SearchLinkData: SearchLink metadata, for SEARCH_LINK segments. For a -// search link, the "text" field should contain the display text. This -// is currently not indexed. -type SearchLinkData struct { - // KgEntityConfidence: For lightweight scoring in serving time. - KgEntityConfidence float64 `json:"kgEntityConfidence,omitempty"` - - // Mid: MID of the KG entity being linked. - Mid string `json:"mid,omitempty"` - - QueryBroadnessScore float64 `json:"queryBroadnessScore,omitempty"` - - // ForceSendFields is a list of field names (e.g. "KgEntityConfidence") - // 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. "KgEntityConfidence") 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 *SearchLinkData) MarshalJSON() ([]byte, error) { - type NoMethod SearchLinkData - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -func (s *SearchLinkData) UnmarshalJSON(data []byte) error { - type NoMethod SearchLinkData - var s1 struct { - KgEntityConfidence gensupport.JSONFloat64 `json:"kgEntityConfidence"` - QueryBroadnessScore gensupport.JSONFloat64 `json:"queryBroadnessScore"` - *NoMethod - } - s1.NoMethod = (*NoMethod)(s) - if err := json.Unmarshal(data, &s1); err != nil { - return err - } - s.KgEntityConfidence = float64(s1.KgEntityConfidence) - s.QueryBroadnessScore = float64(s1.QueryBroadnessScore) - return nil -} - -// SearchQualityMetadata: Additional search quality metadata of the -// item. -type SearchQualityMetadata struct { - // Quality: An indication of the quality of the item, used to influence - // search quality. Value should be between 0.0 (lowest quality) and 1.0 - // (highest quality). The default value is 0.0. - Quality float64 `json:"quality,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Quality") 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. "Quality") 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 *SearchQualityMetadata) MarshalJSON() ([]byte, error) { - type NoMethod SearchQualityMetadata - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -func (s *SearchQualityMetadata) UnmarshalJSON(data []byte) error { - type NoMethod SearchQualityMetadata - var s1 struct { - Quality gensupport.JSONFloat64 `json:"quality"` - *NoMethod - } - s1.NoMethod = (*NoMethod)(s) - if err := json.Unmarshal(data, &s1); err != nil { - return err - } - s.Quality = float64(s1.Quality) - return nil -} - -// SearchRequest: The search API request. -type SearchRequest struct { - // ContextAttributes: Context attributes for the request which will be - // used to adjust ranking of search results. The maximum number of - // elements is 10. - ContextAttributes []*ContextAttribute `json:"contextAttributes,omitempty"` - - // DataSourceRestrictions: The sources to use for querying. If not - // specified, all data sources from the current search application are - // used. - DataSourceRestrictions []*DataSourceRestriction `json:"dataSourceRestrictions,omitempty"` - - FacetOptions []*FacetOptions `json:"facetOptions,omitempty"` - - // PageSize: Maximum number of search results to return in one page. - // Valid values are between 1 and 100, inclusive. Default value is 10. - // Minimum value is 50 when results beyond 2000 are requested. - PageSize int64 `json:"pageSize,omitempty"` - - // Query: The raw query string. See supported search operators in the - // Narrow your search with operators - // (https://support.google.com/cloudsearch/answer/6172299) - Query string `json:"query,omitempty"` - - // QueryInterpretationOptions: Options to interpret the user query. - QueryInterpretationOptions *QueryInterpretationOptions `json:"queryInterpretationOptions,omitempty"` - - // RequestOptions: Request options, such as the search application and - // user timezone. - RequestOptions *RequestOptions `json:"requestOptions,omitempty"` - - // SortOptions: The options for sorting the search results - SortOptions *SortOptions `json:"sortOptions,omitempty"` - - // Start: Starting index of the results. - Start int64 `json:"start,omitempty"` - - // ForceSendFields is a list of field names (e.g. "ContextAttributes") - // 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. "ContextAttributes") 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 *SearchRequest) MarshalJSON() ([]byte, error) { - type NoMethod SearchRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// SearchResponse: The search API response. -type SearchResponse struct { - // DebugInfo: Debugging information about the response. - DebugInfo *ResponseDebugInfo `json:"debugInfo,omitempty"` - - // ErrorInfo: Error information about the response. - ErrorInfo *ErrorInfo `json:"errorInfo,omitempty"` - - // FacetResults: Repeated facet results. - FacetResults []*FacetResult `json:"facetResults,omitempty"` - - // HasMoreResults: Whether there are more search results matching the - // query. - HasMoreResults bool `json:"hasMoreResults,omitempty"` - - // QueryInterpretation: Query interpretation result for user query. - // Empty if query interpretation is disabled. - QueryInterpretation *QueryInterpretation `json:"queryInterpretation,omitempty"` - - // ResultCountEstimate: The estimated result count for this query. - ResultCountEstimate int64 `json:"resultCountEstimate,omitempty,string"` - - // ResultCountExact: The exact result count for this query. - ResultCountExact int64 `json:"resultCountExact,omitempty,string"` - - // ResultCounts: Expanded result count information. - ResultCounts *ResultCounts `json:"resultCounts,omitempty"` - - // Results: Results from a search query. - Results []*SearchResult `json:"results,omitempty"` - - // SpellResults: Suggested spelling for the query. - SpellResults []*SpellResult `json:"spellResults,omitempty"` - - // StructuredResults: Structured results for the user query. These - // results are not counted against the page_size. - StructuredResults []*StructuredResult `json:"structuredResults,omitempty"` - - // ServerResponse contains the HTTP response code and headers from the - // server. - googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "DebugInfo") 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. "DebugInfo") 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 *SearchResponse) MarshalJSON() ([]byte, error) { - type NoMethod SearchResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// SearchResult: Results containing indexed information for a document. -type SearchResult struct { - // ClusteredResults: If source is clustered, provide list of clustered - // results. There will only be one level of clustered results. If - // current source is not enabled for clustering, this field will be - // empty. - ClusteredResults []*SearchResult `json:"clusteredResults,omitempty"` - - // DebugInfo: Debugging information about this search result. - DebugInfo *ResultDebugInfo `json:"debugInfo,omitempty"` - - // Metadata: Metadata of the search result. - Metadata *Metadata `json:"metadata,omitempty"` - - // Snippet: The concatenation of all snippets (summaries) available for - // this result. - Snippet *Snippet `json:"snippet,omitempty"` - - // Title: Title of the search result. - Title string `json:"title,omitempty"` - - // Url: The URL of the search result. The URL contains a Google redirect - // to the actual item. This URL is signed and shouldn't be changed. - Url string `json:"url,omitempty"` - - // ForceSendFields is a list of field names (e.g. "ClusteredResults") 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. "ClusteredResults") 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 *SearchResult) MarshalJSON() ([]byte, error) { - type NoMethod SearchResult - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// Section: Sections are separated by a line divider. They contain a -// collection of widgets that are rendered (vertically) in the order -// that they are specified. Across all platforms, AddOns have a narrow -// fixed width, so there is currently no need for layout properties -// (e.g. float). -type Section struct { - // Collapsable: Indicating whether this section is collapsable. If a - // section is collapsable, the description must be given. - Collapsable bool `json:"collapsable,omitempty"` - - // Description: The header of the section, text formatted supported. - Description string `json:"description,omitempty"` - - // NumUncollapsableWidgets: The number of uncollapsable widgets. For - // example, when a section contains 5 widgets and the - // num_uncollapsable_widget are set to be 2, The first 2 widgets will - // always shown and the last 3 is collapsed as default. Only when - // collapsable is set to be true, the num_uncollapsable_widget will be - // taken into account. - NumUncollapsableWidgets int64 `json:"numUncollapsableWidgets,omitempty"` - - // Widgets: A section must contain at least 1 widget. - Widgets []*WidgetMarkup `json:"widgets,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Collapsable") 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. "Collapsable") 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 *Section) MarshalJSON() ([]byte, error) { - type NoMethod Section - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -type Segment struct { - // Formatting: Formatting to be applied when rendering the Segment. For - // all segment types, this is the standard way of representing that the - // Segment should be rendered in bold, italics, etc. - Formatting *Formatting `json:"formatting,omitempty"` - - // HashtagData: For HASHTAG type: - HashtagData *HashtagData `json:"hashtagData,omitempty"` - - // LinkData: Type-specific metadata. At most one of these should be - // populated, and the one that is populated should correspond to the - // type of the Segment. For LINK type: - LinkData *LinkData `json:"linkData,omitempty"` - - // SearchLinkData: For SEARCH_LINK type: - SearchLinkData *SearchLinkData `json:"searchLinkData,omitempty"` - - // Text: Text content of the Segment. As a general rule, this field - // should contain the actual text that should be rendered in the UI. - // Thus, for a hashtag, it should be "#Foo", and for a link, it should - // be the display text. Clients that do not understand a particular - // segment type may use this text, along with the Formatting info below, - // as a fallback for display. The field is not required -- if all - // relevant information is carried in other metadata fields and there is - // no need for a fallback, or it is not practical for a fallback to be - // provided for any other reason, the field may be left blank. A - // standard example would be a user reference being transmitted between - // server layers, where a gaia-ID representation may be sufficient and - // there is no need for a textual fallback. In such a case, it would be - // valid and useful - though not required - for servers to compute and - // populate a fallback on the serving path. - Text string `json:"text,omitempty"` - - // Type: Type of Segment. - // - // Possible values: - // "TEXT" - A TEXT segment represents plain-text subject to particular - // formatting constraints (as represented in the "formatting" field of - // the Segment). - // "LINE_BREAK" - A LINE_BREAK segment is simply a placeholder to - // represent a line break between other segments. The "text" variable - // may be set to a newline as a fallback, but clients that understand - // this segment type should simply insert a line break without needing - // to reference any fields. - // "LINK" - A LINK segment represents a link to a web entity. The - // "text" field should be used for anchor text. Additional link data - // should be put in the link_data protobuf. - // "USER_MENTION" - A USER_MENTION segment represents a reference to a - // (possibly non-Gaia, possibly off-network) user. The "text" field may - // be populated as a fallback, but information identifying the user - // should be contained in the user_mention_data protobuf. (The set of - // fields that are populated in user_mention_data may differ depending - // on the context in which the segment is viewed, but the interpretation - // of the fields is uniform. See comments over UserMentionData). - // "ALL_USER_MENTION" - An ALL_USER_MENTION segment represents a - // reference to all users in the context, that is, the conversation, - // discussion, or other context containing the segment. For example, an - // ALL_USER_MENTION segment ("@all") can be useful to ping all - // participants in a conversation if the notification setting of the - // conversation is not set to ping on normal messages. An - // ALL_USER_MENTION should be treated as a USER_MENTION for all users - // who receives the segment. - // "HASHTAG" - A HASHTAG segment represents a structured reference to - // a topic. The "text" field should represent display text (e.g. - // "#Google"), and additional metadata should be put in the Segment's - // hashtag_data field. - // "SEARCH_LINK" - A SEARCH_LINK segment respresents a link to search - // results for a KG entity. The "text" field should represent the part - // of the comment where the KG entity is extracted from, and additional - // metadata of the entity should be put in the Segment's - // search_link_data field. - Type string `json:"type,omitempty"` - - // UserMentionData: For USER_MENTION type: - UserMentionData *UserMentionData `json:"userMentionData,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Formatting") 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. "Formatting") 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 *Segment) MarshalJSON() ([]byte, error) { - type NoMethod Segment - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -type SelectionControl struct { - // Items: For radio button, at most one of the items will be selected. - Items []*SelectionItem `json:"items,omitempty"` - - // Label: Label used to be displayed ahead of the selection control. It - // is optional. - Label string `json:"label,omitempty"` - - // Name: The name of the text field which is will be used in FormInput. - Name string `json:"name,omitempty"` - - // OnChange: If specified, form is submitted when selection changed. If - // not specified, developer will need to specify a separate button. - OnChange *FormAction `json:"onChange,omitempty"` - - // Possible values: - // "CHECK_BOX" - // "RADIO_BUTTON" - // "SWITCH" - // "DROPDOWN" - Type string `json:"type,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Items") 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. "Items") 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 *SelectionControl) MarshalJSON() ([]byte, error) { - type NoMethod SelectionControl - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -type SelectionItem struct { - // Selected: If more than one items are selected for RADIO_BUTTON and - // DROPDOWN, the first selected item is treated as sElected and the - // after ones are all ignored. - Selected bool `json:"selected,omitempty"` - - // Text: The text to be displayed. - Text string `json:"text,omitempty"` - - // Value: The value associated with this item which will be sent back to - // app scripts. Client should use as a form input value. - Value string `json:"value,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Selected") 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. "Selected") 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 *SelectionItem) MarshalJSON() ([]byte, error) { - type NoMethod SelectionItem - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -type SessionContext struct { - // AuthTime: Time at which this activity's session was authenticated, in - // seconds since the epoch. - AuthTime int64 `json:"authTime,omitempty,string"` - - // DelegateUserId: Gaia ID of the authenticated user when delegate - // access is active. In such sessions the main gaia ID is that of the - // delegator, i.e. the account being accessed. - DelegateUserId int64 `json:"delegateUserId,omitempty,string"` - - // Dusi: Device User Session ID, see go/dusi. - Dusi string `json:"dusi,omitempty"` - - // ImapSessionContext: Imap session context for Bond/Gmail integration - ImapSessionContext *ImapSessionContext `json:"imapSessionContext,omitempty"` - - // OauthLoginId: OAuth login ID. - OauthLoginId int64 `json:"oauthLoginId,omitempty"` - - // OauthProjectId: The devconsole project ID of the developer who - // authenticated with OAuth. - OauthProjectId int64 `json:"oauthProjectId,omitempty,string"` - - // ForceSendFields is a list of field names (e.g. "AuthTime") 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. "AuthTime") 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 *SessionContext) MarshalJSON() ([]byte, error) { - type NoMethod SessionContext - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// SessionEvent: A session event is something that happens to the -// streaming session in a conference. -type SessionEvent struct { - // DeviceId: The initiator of the latest event of the streaming session. - // It will be set for all user events (`type` is 100-199) and unset for - // all server events(`type` is 200-299). - DeviceId string `json:"deviceId,omitempty"` - - // Type: The type of event. - // - // Possible values: - // "EVENT_UNSPECIFIED" - This is never used. - // "STARTED_BY_USER" - Streaming session was started or is being - // started by a user. - // "STOPPED_BY_USER" - Streaming session was stopped by a user. - // "CANCELLED_BY_USER" - Streaming session was cancelled by a user. - // "CANCELLED_INITIALIZATION_FAILED" - Streaming session was cancelled - // by the server because of a failure during session initialization. - // "CANCELLED_INITIATOR_LEFT" - Streaming session was cancelled by the - // server because the session initiator left the conference during - // initialization. When the initiator leaves after the session is - // started, no event is triggered. - // "ACTIVE_ABOUT_TO_STOP_TOO_LONG" - Streaming session is about to be - // stopped by the server because the session is about to reach the - // maximum duration. - // "STOPPED_TOO_LONG" - Streaming session was stopped because the - // session reached the maximum duration. - // "STOPPED_ALL_DEVICES_LEFT" - Streaming session was stopped because - // there were no devices left in the conference. - // "STOPPED_INTERNAL_FAILURES" - Streaming session was stopped because - // of an internal error. - Type string `json:"type,omitempty"` - - // ForceSendFields is a list of field names (e.g. "DeviceId") 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. "DeviceId") 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 *SessionEvent) MarshalJSON() ([]byte, error) { - type NoMethod SessionEvent - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// SessionStateInfo: Information about the state of a (recording, -// broadcast, transcription...) session in a conference. -type SessionStateInfo struct { - // AckInfo: Output only. The ack info of the session. - AckInfo *AckInfo `json:"ackInfo,omitempty"` - - // LanguageConfig: Immutable. The language configuration used by this - // session. When empty, captions will be disabled. It's a required field - // for transcription sessions. - LanguageConfig *LanguageConfig `json:"languageConfig,omitempty"` - - // LastActorDeviceId: Output only. The device id of the actor is set if - // the current state is a result of a user action, is empty otherwise. - LastActorDeviceId string `json:"lastActorDeviceId,omitempty"` - - // MaxEndTime: Output only. The max end time of the session, at this - // time the session will be force stopped/terminated. Clients are - // expected to use this timestamp to warn users about the force stop. - MaxEndTime string `json:"maxEndTime,omitempty"` - - // SessionState: State of the session. - // - // Possible values: - // "SESSION_STATE_UNSPECIFIED" - Unspecified session state. - // "STARTING" - The session is starting. - // "ACTIVE" - The session is active/ongoing. - // "STOPPED" - The session has stopped. - SessionState string `json:"sessionState,omitempty"` - - // SessionStopReason: Output only. The reason the session was - // transitioned to STOPPED state. - // - // Possible values: - // "SESSION_STOP_REASON_UNSPECIFIED" - Session stop reason - // unspecified. - // "USER_ACTION" - Stopped by user action. - // "STOPPED_INITIALIZATION_FAILED" - Stopped by the server because of - // an initialization failure. - // "STOPPED_TOO_LONG" - Stopped because the session reached the - // maximum duration. - // "STOPPED_ALL_DEVICES_LEFT" - Stopped because there were no devices - // left in the conference. - // "STOPPED_INTERNAL_FAILURES" - Stopped because of an internal error. - // "STOPPED_YOU_TUBE_LIVE_EVENT_ENDED" - Stopped because the broadcast - // event ended on YouTube. - SessionStopReason string `json:"sessionStopReason,omitempty"` - - // ForceSendFields is a list of field names (e.g. "AckInfo") 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. "AckInfo") 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 *SessionStateInfo) MarshalJSON() ([]byte, error) { - type NoMethod SessionStateInfo - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// Settings: Settings of a meeting space that can be edited by users -// with corresponding manage privilege. These settings are always -// populated in responses. -type Settings struct { - // AccessLock: The access lock of the meeting space that lets hosts - // control who can join the meeting. - AccessLock bool `json:"accessLock,omitempty"` - - // AccessType: The access type of the meeting space. - // - // Possible values: - // "ACCESS_TYPE_UNSPECIFIED" - Default value. This value is unused. - // "ACCESS_TYPE_OPEN" - Anyone with meeting join information (url, - // phone access...) can join, no knocking required. (Subject to - // organization policies) - // "ACCESS_TYPE_TRUSTED" - Members of the Host's organization, invited - // external users, and dial-in users can join without knocking, everyone - // else must knock. (Subject to organization policies) - // "ACCESS_TYPE_RESTRICTED" - Only participants invited by a host can - // automatically join, everyone else must knock and be admitted. - // (Subject to organization policies) Participants cannot dial out from - // the meeting. And only hosts can accept knocks. - // "ACCESS_TYPE_CLOSED" - Only participants invited by a host can - // join. Knocking is not allowed, dial in and dial out are also - // disabled. - AccessType string `json:"accessType,omitempty"` - - // AllowJoiningBeforeHost: Whether users can join before host in the - // conferences of this meeting space. - AllowJoiningBeforeHost bool `json:"allowJoiningBeforeHost,omitempty"` - - // AttendanceReportEnabled: Whether attendance report is enabled for the - // meeting space. - AttendanceReportEnabled bool `json:"attendanceReportEnabled,omitempty"` - - // ChatLock: The chat lock of the meeting space that lets owner control - // whether the participants can send chat messages. - ChatLock bool `json:"chatLock,omitempty"` - - // CoActivityLock: The co-activity lock of the meeting space that lets - // owner control whether the participants can start/stop or update the - // state of co-activity. - CoActivityLock bool `json:"coActivityLock,omitempty"` - - // CohostArtifactSharingEnabled: Whether meeting artifacts will be - // shared with cohosts. - CohostArtifactSharingEnabled bool `json:"cohostArtifactSharingEnabled,omitempty"` - - // CseEnabled: Whether Client-side Encryption is enabled for the meeting - // space. - CseEnabled bool `json:"cseEnabled,omitempty"` - - // DefaultAsViewer: Whether the default role is viewer or not. - DefaultAsViewer bool `json:"defaultAsViewer,omitempty"` - - // ModerationEnabled: Indicates whether the meeting space is moderated. - ModerationEnabled bool `json:"moderationEnabled,omitempty"` - - // PresentLock: The present lock of the meeting space that lets owner - // control whether the participants can present their screen. - PresentLock bool `json:"presentLock,omitempty"` - - // ReactionsLock: The reactions lock of the meeting space that lets - // owner control whether the participants can send reactions. - ReactionsLock bool `json:"reactionsLock,omitempty"` - - // ForceSendFields is a list of field names (e.g. "AccessLock") 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. "AccessLock") 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 *Settings) MarshalJSON() ([]byte, error) { - type NoMethod Settings - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -type ShareScope struct { - // Domain: If scope is DOMAIN, this field contains the dasher domain, - // for example "google.com". - Domain string `json:"domain,omitempty"` - - // Scope: The scope to which the content was shared. - // - // Possible values: - // "UNKNOWN" - // "PRIVATE" - Only the author can view the post. - // "LIMITED" - Viewable only by a set of people. - // "EXTENDED" - Viewable by extended circles. - // "DASHER_DOMAIN" - // "PUBLIC" - Scope string `json:"scope,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Domain") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Domain") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. - NullFields []string `json:"-"` -} - -func (s *ShareScope) MarshalJSON() ([]byte, error) { - type NoMethod ShareScope - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -type SheetsClientActionMarkup struct { - CustomFunctionReturnValueMarkup *CustomFunctionReturnValueMarkup `json:"customFunctionReturnValueMarkup,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "CustomFunctionReturnValueMarkup") 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. - // "CustomFunctionReturnValueMarkup") 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 *SheetsClientActionMarkup) MarshalJSON() ([]byte, error) { - type NoMethod SheetsClientActionMarkup - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// SigningKeyPossessorProto: Represents a principal who possesses a -// signing key corresponding to the verification key or keyset described -// here. -type SigningKeyPossessorProto struct { - // KeymasterKeyType: This value must be from the KeyMetadata.Type enum - // in keymaster.proto. - KeymasterKeyType int64 `json:"keymasterKeyType,omitempty"` - - // SerializedVerificationKey: The actual verification key bytes - // corresponding to the above type. - SerializedVerificationKey string `json:"serializedVerificationKey,omitempty"` - - // SerializedVerificationKeyset: The binary serialized Keymaster - // SerializedReader of a public keyset. The keyset must contain exactly - // one key. N.B.: If this field is populated, - // serialized_verification_key should be set to the empty string and - // keymaster_key_type should be set to zero. - SerializedVerificationKeyset string `json:"serializedVerificationKeyset,omitempty"` - - // ForceSendFields is a list of field names (e.g. "KeymasterKeyType") 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. "KeymasterKeyType") 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 *SigningKeyPossessorProto) MarshalJSON() ([]byte, error) { - type NoMethod SigningKeyPossessorProto - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// SimpleSecretHolderProto: Represents a principal which possesses a -// particular, presumably secret, string. Useful for things like "auth -// keys," used for anonymous sharing. Since representing this principal -// with the actual secret included reveals the secret, it's best if the -// requisite condition is enforced in some other way, for example via -// Keystore wrapping attributes (Keystore will unwrap only if the -// specified secret, aka "attribute", is presented). All that's stored -// here is an identifying label. -type SimpleSecretHolderProto struct { - // Label: A descriptive label to help identify a relevant ACL entry or - // otherwise disambiguate this instance. - Label *SimpleSecretLabelProto `json:"label,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Label") 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. "Label") 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 *SimpleSecretHolderProto) MarshalJSON() ([]byte, error) { - type NoMethod SimpleSecretHolderProto - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// SimpleSecretLabelProto: SimpleSecretProto (in authenticator.proto) -// and SimpleSecretHolderProto (below) share the notion of a "label", -// which identifies a particular secret without (hopefully) revealing -// the secret. Note that a SimpleSecretLabel only disambiguates between -// secrets used to get access to some particular object. Two different -// secrets that apply to two different objects could have the same -// label. For example, in the common sharing model, each object has no -// more than one "auth key". Therefore, the label for an auth key simply -// has type = AUTH_KEY with no additional information. In theory, we -// could add some sort of resource ID to SimpleSecretLabel to make it -// more explicit. However, in practice, this is never really needed. A -// SimpleSecret for one object is never used to authorize a request on -// some other object, so there is no ambiguity. Also, since -// SimpleSecrets must obviously be unguessable, there is no risk that a -// SimpleSecret intended for one object will accidentally grant access -// to another. -type SimpleSecretLabelProto struct { - // CapabilityId: ***DEPRECATED (3-Oct-2011) *** This field should be - // deleted when code stops using CAP_TOKEN labels. Used when type = - // CAP_TOKEN. When a CAP_TOKEN label appears in a SimpleSecretHolder - // Principal, |capability_id| must be filled in to identify one of the - // capabilities on the ACL. When a CAP_TOKEN label appears in a - // SimpleSecret Authenticator, it is NOT necessary to fill in - // |capability_id| -- ACL Service will find the ID by searching all - // capabilities on the ACL for one associated with the token given by - // the SimpleSecret's secret data. If |capability_id| is specified, - // though, then the Authenticator will only be accepted if it actually - // matches that particular token ID. - CapabilityId int64 `json:"capabilityId,omitempty"` - - // GenericLabel: Used when type = GENERIC_SECRET - GenericLabel string `json:"genericLabel,omitempty"` - - // InviteId: Used when type == INVITE. - InviteId int64 `json:"inviteId,omitempty,string"` - - // Type: This is optional because required enums cannot be extended. - // - // Possible values: - // "INVALID" - Used as a default value. - // "AUTH_KEY" - The singleton auth key for a common-sharing ACL. No - // other fields of SimpleSecretLabelProto need to be filled in, since - // there is only one of these per ACL. The corresponding secret is the - // auth key encoded in 64-bit big-endian. - // "INVITE" - A common-sharing invite token. |invite_id| (below) must - // be set to identify the invite. The corresponding secret is the - // SecretMaterial, as defined by InviteToken.SecretMaterial in - // acl.proto, encoded in 64-bit big-endian. If there is no - // SecretMaterial, the secret should be omitted; in this case the invite - // ID itself is the secret, which is less secure. - // "GENERIC_SECRET" - A generic secret value. Do not use this if any - // more specific type is appropriate. - // "CAP_TOKEN" - ***DEPRECATED (3-Oct-2011)*** Use the new - // CapTokenProto and CapTokenHolderProto instead. A capability token. - // The corresponding secret is an arbitrary-length random byte string - // (recommended: 128 bits). |capability_id| may be filled in (see - // below). See CapTokenMetadata in acl.proto. - // "REKE" - Identifies a principal that can perform a successful REKE - // handshake. The holder is not authenticated by presenting a - // SimpleSecretProto, but rather by knowing either the REKE resumption - // ticket secret or the private key corresponding to a public key - // specified outside the PrincipalProto. For more information, see: - // http://goto.google.com/loas2cert - Type string `json:"type,omitempty"` - - // ForceSendFields is a list of field names (e.g. "CapabilityId") 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. "CapabilityId") 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 *SimpleSecretLabelProto) MarshalJSON() ([]byte, error) { - type NoMethod SimpleSecretLabelProto - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// SlashCommandMetadata: Annotation metadata for slash commands (/). -type SlashCommandMetadata struct { - // ArgumentsHint: Hint string for the arguments expected by the slash - // command. - ArgumentsHint string `json:"argumentsHint,omitempty"` - - // CommandId: Unique id for the slash command. - CommandId int64 `json:"commandId,omitempty,string"` - - // CommandName: Name of the slash command. - CommandName string `json:"commandName,omitempty"` - - // Id: ID of the bot which owns the slash command. - Id *UserId `json:"id,omitempty"` - - // TriggersDialog: Whether or not this slash command should trigger a - // dialog. - TriggersDialog bool `json:"triggersDialog,omitempty"` - - // Possible values: - // "TYPE_UNSPECIFIED" - Default value for the enum. DO NOT USE. - // "ADD" - If a bot is added by a Slash Command, it means the bot was - // invoked by the user but hasn't yet been added to the group. Attaching - // an ADD annotation both add and invoke the bot. - // "INVOKE" - // "FAILED_TO_ADD" - Server-generated slash command metadata, for - // clients to strikethrough. - Type string `json:"type,omitempty"` - - // ForceSendFields is a list of field names (e.g. "ArgumentsHint") 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. "ArgumentsHint") 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 *SlashCommandMetadata) MarshalJSON() ([]byte, error) { - type NoMethod SlashCommandMetadata - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// Snippet: Snippet of the search result, which summarizes the content -// of the resulting page. -type Snippet struct { - // MatchRanges: The matched ranges in the snippet. - MatchRanges []*MatchRange `json:"matchRanges,omitempty"` - - // Snippet: The snippet of the document. The snippet of the document. - // May contain escaped HTML character that should be unescaped prior to - // rendering. - Snippet string `json:"snippet,omitempty"` - - // ForceSendFields is a list of field names (e.g. "MatchRanges") 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. "MatchRanges") 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 *Snippet) MarshalJSON() ([]byte, error) { - type NoMethod Snippet - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// SocialCommonAttachmentAttachment: An Attachment represents a linked -// entity associated with a piece of social content. This may be a -// 1st-party or 3rd-party entity. In the Papyrus context, an Attachment -// is part of a Cent, and sits alongside the main content of the cent, -// which is represented as a sequence of Segments. Right now an -// Attachment is just a wrapper around an Embed, but we provide the -// extra layer of abstraction since, as Embeds move to separate storage -// in Briefcase, we may want to add additional fields that are not part -// of the Embed proper, but that (for example) relate to the usage of -// the linked content within the particular post/cent. -type SocialCommonAttachmentAttachment struct { - // EmbedItem: An embed represents an external entity. See go/es-embeds. - EmbedItem *EmbedClientItem `json:"embedItem,omitempty"` - - // Id: An id to uniquely identify an attachment when several attachments - // are in a collection. - Id string `json:"id,omitempty"` - - // ForceSendFields is a list of field names (e.g. "EmbedItem") 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. "EmbedItem") 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 *SocialCommonAttachmentAttachment) MarshalJSON() ([]byte, error) { - type NoMethod SocialCommonAttachmentAttachment - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// SocialGraphNodeProto: Represents a user pseudonym. Pseudonyms are -// linked accounts on Google and third-party services (e.g. YouTube or -// Twitter) and are described by a Social Graph Node. -type SocialGraphNodeProto struct { - // SgnDomain: The fields from - // ccc/socialgraph/socialgraphnode.proto:SgnNode that uniquely identify - // a social graph node. The 'ident' field is not included here because - // its value can be changed. - SgnDomain string `json:"sgnDomain,omitempty"` - - SgnPk string `json:"sgnPk,omitempty"` - - // ForceSendFields is a list of field names (e.g. "SgnDomain") 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. "SgnDomain") 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 *SocialGraphNodeProto) MarshalJSON() ([]byte, error) { - type NoMethod SocialGraphNodeProto - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -type SortOptions struct { - // OperatorName: The name of the operator corresponding to the field to - // sort on. The corresponding property must be marked as sortable. - OperatorName string `json:"operatorName,omitempty"` - - // SortOrder: Ascending is the default sort order - // - // Possible values: - // "ASCENDING" - // "DESCENDING" - SortOrder string `json:"sortOrder,omitempty"` - - // ForceSendFields is a list of field names (e.g. "OperatorName") 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. "OperatorName") 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 *SortOptions) MarshalJSON() ([]byte, error) { - type NoMethod SortOptions - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// Source: Defines sources for the suggest/search APIs. -type Source struct { - // Name: Source name for content indexed by the Indexing API. - Name string `json:"name,omitempty"` - - // PredefinedSource: Predefined content source for Google Apps. - // - // Possible values: - // "NONE" - // "QUERY_HISTORY" - Suggests queries issued by the user in the past. - // Only valid when used with the suggest API. Ignored when used in the - // query API. - // "PERSON" - Suggests people in the organization. Only valid when - // used with the suggest API. Results in an error when used in the query - // API. - // "GOOGLE_DRIVE" - // "GOOGLE_GMAIL" - // "GOOGLE_SITES" - // "GOOGLE_GROUPS" - // "GOOGLE_CALENDAR" - // "GOOGLE_KEEP" - PredefinedSource string `json:"predefinedSource,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Name") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Name") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. - NullFields []string `json:"-"` -} - -func (s *Source) MarshalJSON() ([]byte, error) { - type NoMethod Source - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// SourceConfig: Configurations for a source while processing a Search -// or Suggest request. -type SourceConfig struct { - // CrowdingConfig: The crowding configuration for the source. - CrowdingConfig *SourceCrowdingConfig `json:"crowdingConfig,omitempty"` - - // ScoringConfig: The scoring configuration for the source. - ScoringConfig *SourceScoringConfig `json:"scoringConfig,omitempty"` - - // Source: The source for which this configuration is to be used. - Source *Source `json:"source,omitempty"` - - // ForceSendFields is a list of field names (e.g. "CrowdingConfig") 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. "CrowdingConfig") 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 *SourceConfig) MarshalJSON() ([]byte, error) { - type NoMethod SourceConfig - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// SourceCrowdingConfig: Set search results crowding limits. Crowding is -// a situation in which multiple results from the same source or host -// "crowd out" other results, diminishing the quality of search for -// users. To foster better search quality and source diversity in search -// results, you can set a condition to reduce repetitive results by -// source. -type SourceCrowdingConfig struct { - // NumResults: Maximum number of results allowed from a datasource in a - // result page as long as results from other sources are not exhausted. - // Value specified must not be negative. A default value is used if this - // value is equal to 0. To disable crowding, set the value greater than - // 100. - NumResults int64 `json:"numResults,omitempty"` - - // NumSuggestions: Maximum number of suggestions allowed from a source. - // No limits will be set on results if this value is less than or equal - // to 0. - NumSuggestions int64 `json:"numSuggestions,omitempty"` - - // ForceSendFields is a list of field names (e.g. "NumResults") 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. "NumResults") 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 *SourceCrowdingConfig) MarshalJSON() ([]byte, error) { - type NoMethod SourceCrowdingConfig - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -type SourceMessageInfo struct { - // MessageId: Source message ID - MessageId *MessageId `json:"messageId,omitempty"` - - // Possible values: - // "SOURCE_MESSAGE_TYPE_UNDEFINED" - // "ROOT_MESSAGE" - // "INLINE_REPLY" - MessageType string `json:"messageType,omitempty"` - - // ForceSendFields is a list of field names (e.g. "MessageId") 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. "MessageId") 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 *SourceMessageInfo) MarshalJSON() ([]byte, error) { - type NoMethod SourceMessageInfo - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// SourceResultCount: Per source result count information. -type SourceResultCount struct { - // HasMoreResults: Whether there are more search results for this - // source. - HasMoreResults bool `json:"hasMoreResults,omitempty"` - - // ResultCountEstimate: The estimated result count for this source. - ResultCountEstimate int64 `json:"resultCountEstimate,omitempty,string"` - - // ResultCountExact: The exact result count for this source. - ResultCountExact int64 `json:"resultCountExact,omitempty,string"` - - // Source: The source the result count information is associated with. - Source *Source `json:"source,omitempty"` - - // ForceSendFields is a list of field names (e.g. "HasMoreResults") 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. "HasMoreResults") 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 *SourceResultCount) MarshalJSON() ([]byte, error) { - type NoMethod SourceResultCount - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// SourceScoringConfig: Set the scoring configuration. This allows -// modifying the ranking of results for a source. -type SourceScoringConfig struct { - // SourceImportance: Importance of the source. - // - // Possible values: - // "DEFAULT" - // "LOW" - // "HIGH" - SourceImportance string `json:"sourceImportance,omitempty"` - - // ForceSendFields is a list of field names (e.g. "SourceImportance") 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. "SourceImportance") 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 *SourceScoringConfig) MarshalJSON() ([]byte, error) { - type NoMethod SourceScoringConfig - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// SpaceId: Primary key for Space resource. -type SpaceId struct { - // SpaceId: Unique, immutable ID of the Space - SpaceId string `json:"spaceId,omitempty"` - - // ForceSendFields is a list of field names (e.g. "SpaceId") 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. "SpaceId") 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 *SpaceId) MarshalJSON() ([]byte, error) { - type NoMethod SpaceId - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -type SpellResult struct { - // SuggestedQuery: The suggested spelling of the query. - SuggestedQuery string `json:"suggestedQuery,omitempty"` - - // SuggestedQueryHtml: The sanitized HTML representing the spell - // corrected query that can be used in the UI. This usually has - // language-specific tags to mark up parts of the query that are spell - // checked. - SuggestedQueryHtml *SafeHtmlProto `json:"suggestedQueryHtml,omitempty"` - - // SuggestionType: Suggestion triggered for the current query. - // - // Possible values: - // "SUGGESTION_TYPE_UNSPECIFIED" - Default spell check type - // "NON_EMPTY_RESULTS_SPELL_SUGGESTION" - Spell suggestion without any - // results changed. The results are still shown for the original query - // (which has non zero / results) with a suggestion for spelling that - // would have results. - // "ZERO_RESULTS_FULL_PAGE_REPLACEMENT" - Spell suggestion triggered - // when original query has no results. When the original query has no - // results, and spell suggestion has results we trigger results for the - // spell corrected query. - SuggestionType string `json:"suggestionType,omitempty"` - - // ForceSendFields is a list of field names (e.g. "SuggestedQuery") 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. "SuggestedQuery") 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 *SpellResult) MarshalJSON() ([]byte, error) { - type NoMethod SpellResult - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// SquareProto: Represents the set of members (of a given type) in a -// Google+ Square (see http://go/squares). A Square with default -// member_type is currently (1/2012) identical to the GaiaGroup with the -// same ID, but that is expected to change soon (see -// http://go/superglue). Support for this principal type is currently -// (1/2012) incomplete -- e.g., Keystore does not support it yet (see -// b/5703421). -type SquareProto struct { - // MemberType: The type of Square members to consider, e.g. "all - // members" vs. "owners" vs. "admins". These are defined by - // legacy_relation_id values in - // social.graph.storage.EdgeTypeEnum.EdgeType enum options in - // social/graph/storage/proto/id.proto. See square.pb (defined in - // production/config/cdd/socialgraph/mixer_config/prod/node_type_config) - // for all valid edge types associated with square. Currently required. - MemberType int64 `json:"memberType,omitempty"` - - // SquareId: Currently required. - SquareId int64 `json:"squareId,omitempty,string"` - - // ForceSendFields is a list of field names (e.g. "MemberType") 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. "MemberType") 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 *SquareProto) MarshalJSON() ([]byte, error) { - type NoMethod SquareProto - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// StartUploadItemRequest: Start upload file request. -type StartUploadItemRequest struct { +type PushItemRequest struct { // ConnectorName: The name of connector making this call. Format: // datasources/{source_id}/connectors/{ID} - ConnectorName string `json:"connectorName,omitempty"` - - // DebugOptions: Common debug options. - DebugOptions *DebugOptions `json:"debugOptions,omitempty"` - - // ForceSendFields is a list of field names (e.g. "ConnectorName") 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. "ConnectorName") 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 *StartUploadItemRequest) MarshalJSON() ([]byte, error) { - type NoMethod StartUploadItemRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// Status: The `Status` type defines a logical error model that is -// suitable for different programming environments, including REST APIs -// and RPC APIs. It is used by gRPC (https://github.com/grpc). Each -// `Status` message contains three pieces of data: error code, error -// message, and error details. You can find out more about this error -// model and how to work with it in the API Design Guide -// (https://cloud.google.com/apis/design/errors). -type Status struct { - // Code: The status code, which should be an enum value of - // google.rpc.Code. - Code int64 `json:"code,omitempty"` - - // Details: A list of messages that carry the error details. There is a - // common set of message types for APIs to use. - Details []googleapi.RawMessage `json:"details,omitempty"` - - // Message: A developer-facing error message, which should be in - // English. Any user-facing error message should be localized and sent - // in the google.rpc.Status.details field, or localized by the client. - Message string `json:"message,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Code") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Code") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. - NullFields []string `json:"-"` -} - -func (s *Status) MarshalJSON() ([]byte, error) { - type NoMethod Status - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -type StoredParticipantId struct { - GaiaId int64 `json:"gaiaId,omitempty,string"` - - // ForceSendFields is a list of field names (e.g. "GaiaId") 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. "GaiaId") 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 *StoredParticipantId) MarshalJSON() ([]byte, error) { - type NoMethod StoredParticipantId - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// StreamViewerStats: Information about viewers of the stream. -type StreamViewerStats struct { - // EstimatedViewerCount: The estimate of the current viewer count. - EstimatedViewerCount int64 `json:"estimatedViewerCount,omitempty,string"` - - // ForceSendFields is a list of field names (e.g. - // "EstimatedViewerCount") 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. "EstimatedViewerCount") 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 *StreamViewerStats) MarshalJSON() ([]byte, error) { - type NoMethod StreamViewerStats - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// StreamingSessionInfo: Information about a streaming session in -// conference. -type StreamingSessionInfo struct { - // ApplicationType: The application type of the current streaming - // session. - // - // Possible values: - // "RECORDING_APPLICATION_TYPE_UNSPECIFIED" - This is never used. - // "RECORDING" - A meeting recording saved to a video file in Google - // Drive. - // "GLIVE_STREAM" - A *Google Live* managed stream. - // "BROADCAST" - A meeting broadcast. - ApplicationType string `json:"applicationType,omitempty"` - - // LatestSessionEvent: The latest streaming session event. This can be - // used by clients to help explain what is going on, why recording - // stopped, etc. This will always be set to a valid event and consistent - // with the status. It can be set when current session is inactive to - // indicate latest event that makes current session to become inactive. - LatestSessionEvent *SessionEvent `json:"latestSessionEvent,omitempty"` - - // OwnerDisplayName: The display name of the owner of the recording - // output. It's only set when there will be uploaded recordings. - // Currently, it's only set when application type is RECORDING or - // GLIVE_STREAM. - OwnerDisplayName string `json:"ownerDisplayName,omitempty"` - - // SessionId: This is the REST name and unique identifier of this - // streaming session and has the form `spaces//recordings/` This is - // returned whenever status is either `STARTING` or `STARTED`. - SessionId string `json:"sessionId,omitempty"` - - // Status: The current status of this streaming session. This can be - // used by clients to show session status indicator and/or notification. - // - // Possible values: - // "STATUS_UNSPECIFIED" - This value is never used. - // "INACTIVE" - The streaming session is inactive. This means either - // it's not started yet or it's already stopped. - // "STARTING" - The streaming session is about to begin. The status - // will be updated to LIVE when the streaming session actually starts, - // which happens when all the backend plumbing is set up. - // "LIVE" - The streaming session is live. Any media sent to the - // conference may be included in the resulting recording/broadcast. - Status string `json:"status,omitempty"` - - // TrainingEnabled: When true, this recording may be used for training - // new transcription models. - TrainingEnabled bool `json:"trainingEnabled,omitempty"` - - // ViewerAccessPolicy: The policy that controls who can view the - // broadcast. This setting applies for broadcast session. - // - // Possible values: - // "BROADCASTING_ACCESS_POLICY_UNSPECIFIED" - Used only when broadcast - // is not enabled, or an unknown enum value is used. - // "ORGANIZATION" - Only authenticated Google accounts belonging to - // the same organization as the meeting organizer can access the - // broadcast. - // "PUBLIC" - Anyone with the broadcast view URL can access the - // broadcast. - ViewerAccessPolicy string `json:"viewerAccessPolicy,omitempty"` - - // ViewerStats: Contains information about viewers of the livestream. It - // is only set when application type is BROADCAST. - ViewerStats *StreamViewerStats `json:"viewerStats,omitempty"` - - // ForceSendFields is a list of field names (e.g. "ApplicationType") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ApplicationType") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. - NullFields []string `json:"-"` -} - -func (s *StreamingSessionInfo) MarshalJSON() ([]byte, error) { - type NoMethod StreamingSessionInfo - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// StructuredDataObject: A structured data object consisting of named -// properties. -type StructuredDataObject struct { - // Properties: The properties for the object. The maximum number of - // elements is 1000. - Properties []*NamedProperty `json:"properties,omitempty"` + ConnectorName string `json:"connectorName,omitempty"` - // ForceSendFields is a list of field names (e.g. "Properties") to + // DebugOptions: Common debug options. + DebugOptions *DebugOptions `json:"debugOptions,omitempty"` + + // Item: Item to push onto the queue. + Item *PushItem `json:"item,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ConnectorName") 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 @@ -23446,28 +7607,27 @@ type StructuredDataObject struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Properties") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as + // NullFields is a list of field names (e.g. "ConnectorName") 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 *StructuredDataObject) MarshalJSON() ([]byte, error) { - type NoMethod StructuredDataObject +func (s *PushItemRequest) MarshalJSON() ([]byte, error) { + type NoMethod PushItemRequest raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// StructuredResult: Structured results that are returned as part of -// search request. -type StructuredResult struct { - // Person: Representation of a person - Person *Person `json:"person,omitempty"` +// QueryActivity: Details about a user's query activity. +type QueryActivity struct { + // Query: User input query to be logged/removed. + Query string `json:"query,omitempty"` - // ForceSendFields is a list of field names (e.g. "Person") to + // ForceSendFields is a list of field names (e.g. "Query") 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 @@ -23475,7 +7635,7 @@ type StructuredResult struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Person") to include in API + // NullFields is a list of field names (e.g. "Query") 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 @@ -23484,65 +7644,19 @@ type StructuredResult struct { NullFields []string `json:"-"` } -func (s *StructuredResult) MarshalJSON() ([]byte, error) { - type NoMethod StructuredResult - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// SuggestRequest: Request of suggest API. -type SuggestRequest struct { - // DataSourceRestrictions: The sources to use for suggestions. If not - // specified, the data sources are taken from the current search - // application. NOTE: Suggestions are only supported for the following - // sources: * Third-party data sources * PredefinedSource.PERSON * - // PredefinedSource.GOOGLE_DRIVE - DataSourceRestrictions []*DataSourceRestriction `json:"dataSourceRestrictions,omitempty"` - - // Query: Partial query for which autocomplete suggestions will be - // shown. For example, if the query is "sea", then the server might - // return "season", "search", "seagull" and so on. - Query string `json:"query,omitempty"` - - // RequestOptions: Request options, such as the search application and - // user timezone. - RequestOptions *RequestOptions `json:"requestOptions,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "DataSourceRestrictions") 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. "DataSourceRestrictions") - // 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 *SuggestRequest) MarshalJSON() ([]byte, error) { - type NoMethod SuggestRequest +func (s *QueryActivity) MarshalJSON() ([]byte, error) { + type NoMethod QueryActivity raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// SuggestResponse: Response of the suggest API. -type SuggestResponse struct { - // SuggestResults: List of suggestions. - SuggestResults []*SuggestResult `json:"suggestResults,omitempty"` +type QueryCountByStatus struct { + Count int64 `json:"count,omitempty,string"` - // ServerResponse contains the HTTP response code and headers from the - // server. - googleapi.ServerResponse `json:"-"` + // StatusCode: This represents the http status code. + StatusCode int64 `json:"statusCode,omitempty"` - // ForceSendFields is a list of field names (e.g. "SuggestResults") to + // ForceSendFields is a list of field names (e.g. "Count") 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 @@ -23550,49 +7664,61 @@ type SuggestResponse struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "SuggestResults") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "Count") 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 *SuggestResponse) MarshalJSON() ([]byte, error) { - type NoMethod SuggestResponse +func (s *QueryCountByStatus) MarshalJSON() ([]byte, error) { + type NoMethod QueryCountByStatus raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// SuggestResult: One suggestion result. -type SuggestResult struct { - // PeopleSuggestion: This is present when the suggestion indicates a - // person. It contains more information about the person - like their - // email ID, name etc. - PeopleSuggestion *PeopleSuggestion `json:"peopleSuggestion,omitempty"` - - // QuerySuggestion: This field will be present if the suggested query is - // a word/phrase completion. - QuerySuggestion *QuerySuggestion `json:"querySuggestion,omitempty"` +type QueryInterpretation struct { + // Possible values: + // "NONE" - Neither the natural language interpretation, nor a broader + // version of the query is used to fetch the search results. + // "BLEND" - The results from original query are blended with other + // results. The reason for blending these other results with the results + // from original query is populated in the 'Reason' field below. + // "REPLACE" - The results from original query are replaced. The + // reason for replacing the results from original query is populated in + // the 'Reason' field below. + InterpretationType string `json:"interpretationType,omitempty"` - // Source: The source of the suggestion. - Source *Source `json:"source,omitempty"` + // InterpretedQuery: The interpretation of the query used in search. For + // example, queries with natural language intent like "email from john" + // will be interpreted as "from:john source:mail". This field will not + // be filled when the reason is NOT_ENOUGH_RESULTS_FOUND_FOR_USER_QUERY. + InterpretedQuery string `json:"interpretedQuery,omitempty"` - // SuggestedQuery: The suggested query that will be used for search, - // when the user clicks on the suggestion - SuggestedQuery string `json:"suggestedQuery,omitempty"` + // Reason: The reason for interpretation of the query. This field will + // not be UNSPECIFIED if the interpretation type is not NONE. + // + // Possible values: + // "UNSPECIFIED" + // "QUERY_HAS_NATURAL_LANGUAGE_INTENT" - Natural language + // interpretation of the query is used to fetch the search results. + // "NOT_ENOUGH_RESULTS_FOUND_FOR_USER_QUERY" - Query and document + // terms similarity is used to selectively broaden the query to retrieve + // additional search results since enough results were not found for the + // user query. Interpreted query will be empty for this case. + Reason string `json:"reason,omitempty"` - // ForceSendFields is a list of field names (e.g. "PeopleSuggestion") to - // unconditionally include in API requests. By default, fields with + // ForceSendFields is a list of field names (e.g. "InterpretationType") + // 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. "PeopleSuggestion") to + // NullFields is a list of field names (e.g. "InterpretationType") 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 @@ -23602,110 +7728,109 @@ type SuggestResult struct { NullFields []string `json:"-"` } -func (s *SuggestResult) MarshalJSON() ([]byte, error) { - type NoMethod SuggestResult +func (s *QueryInterpretation) MarshalJSON() ([]byte, error) { + type NoMethod QueryInterpretation raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// SupportUrls: Urls with additional bot related information. -type SupportUrls struct { - // AdminConfigUrl: Link to the admin configuration webpage for the bot. - // Configured by Pantheon, may be empty. - AdminConfigUrl string `json:"adminConfigUrl,omitempty"` - - // DeletionPolicyUrl: Link to the deletion policy webpage for the bot. - // Configured by Pantheon, may be empty. - DeletionPolicyUrl string `json:"deletionPolicyUrl,omitempty"` - - // GwmUrl: Link to GWM page of the app. May be empty. - GwmUrl string `json:"gwmUrl,omitempty"` - - // PrivacyPolicyUrl: Link to the privacy policy webpage for the bot. May - // be empty. - PrivacyPolicyUrl string `json:"privacyPolicyUrl,omitempty"` - - // SetupUrl: Link to the setup webpage for the bot. Configured by - // Pantheon, may be empty. - SetupUrl string `json:"setupUrl,omitempty"` - - // SupportUrl: Link to the support webpage for the developer of the bot. - // May be empty. - SupportUrl string `json:"supportUrl,omitempty"` +// QueryInterpretationConfig: Default options to interpret user query. +type QueryInterpretationConfig struct { + // ForceDisableSupplementalResults: Set this flag to disable + // supplemental results retrieval, setting a flag here will not retrieve + // supplemental results for queries associated with a given search + // application. If this flag is set to True, it will take precedence + // over the option set at Query level. For the default value of False, + // query level flag will set the correct interpretation for supplemental + // results. + ForceDisableSupplementalResults bool `json:"forceDisableSupplementalResults,omitempty"` - // TosUrl: Link to the terms of service webpage for the bot. May be - // empty. - TosUrl string `json:"tosUrl,omitempty"` + // ForceVerbatimMode: Enable this flag to turn off all internal + // optimizations like natural language (NL) interpretation of queries, + // supplemental results retrieval, and usage of synonyms including + // custom ones. If this flag is set to True, it will take precedence + // over the option set at Query level. For the default value of False, + // query level flag will set the correct interpretation for verbatim + // mode. + ForceVerbatimMode bool `json:"forceVerbatimMode,omitempty"` - // ForceSendFields is a list of field names (e.g. "AdminConfigUrl") 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 is a list of field names (e.g. + // "ForceDisableSupplementalResults") 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. "AdminConfigUrl") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. + // "ForceDisableSupplementalResults") 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 *SupportUrls) MarshalJSON() ([]byte, error) { - type NoMethod SupportUrls +func (s *QueryInterpretationConfig) MarshalJSON() ([]byte, error) { + type NoMethod QueryInterpretationConfig raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -type SwitchWidget struct { - // Possible values: - // "UNSPECIFIED" - // "SWITCH" - // "CHECKBOX" - ControlType string `json:"controlType,omitempty"` - - // Name: The name of the switch widget which is will be used in - // FormInput. - Name string `json:"name,omitempty"` - - OnChange *FormAction `json:"onChange,omitempty"` - - Selected bool `json:"selected,omitempty"` +// QueryInterpretationOptions: Options to interpret user query. +type QueryInterpretationOptions struct { + // DisableNlInterpretation: Flag to disable natural language (NL) + // interpretation of queries. Default is false, Set to true to disable + // natural language interpretation. NL interpretation only applies to + // predefined datasources. + DisableNlInterpretation bool `json:"disableNlInterpretation,omitempty"` - // Value: The value is what is passed back in apps script callback. - Value string `json:"value,omitempty"` + // DisableSupplementalResults: Use this flag to disable supplemental + // results for a query. Supplemental results setting chosen at + // SearchApplication level will take precedence if set to True. + DisableSupplementalResults bool `json:"disableSupplementalResults,omitempty"` - // ForceSendFields is a list of field names (e.g. "ControlType") 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:"-"` + // EnableVerbatimMode: Enable this flag to turn off all internal + // optimizations like natural language (NL) interpretation of queries, + // supplemental result retrieval, and usage of synonyms including custom + // ones. Nl interpretation will be disabled if either one of the two + // flags is true. + EnableVerbatimMode bool `json:"enableVerbatimMode,omitempty"` - // NullFields is a list of field names (e.g. "ControlType") 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. + // ForceSendFields is a list of field names (e.g. + // "DisableNlInterpretation") 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. "DisableNlInterpretation") + // 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 *SwitchWidget) MarshalJSON() ([]byte, error) { - type NoMethod SwitchWidget +func (s *QueryInterpretationOptions) MarshalJSON() ([]byte, error) { + type NoMethod QueryInterpretationOptions raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -type TaskActionMarkup struct { - ReloadTasks bool `json:"reloadTasks,omitempty"` +// QueryItem: Information relevant only to a query entry. +type QueryItem struct { + // IsSynthetic: True if the text was generated by means other than a + // previous user search. + IsSynthetic bool `json:"isSynthetic,omitempty"` - // ForceSendFields is a list of field names (e.g. "ReloadTasks") to + // ForceSendFields is a list of field names (e.g. "IsSynthetic") 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 @@ -23713,7 +7838,7 @@ type TaskActionMarkup struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "ReloadTasks") to include + // NullFields is a list of field names (e.g. "IsSynthetic") 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 @@ -23722,94 +7847,71 @@ type TaskActionMarkup struct { NullFields []string `json:"-"` } -func (s *TaskActionMarkup) MarshalJSON() ([]byte, error) { - type NoMethod TaskActionMarkup +func (s *QueryItem) MarshalJSON() ([]byte, error) { + type NoMethod QueryItem raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -type TextButton struct { - // AltText: The alternative text used for accessibility Next field - // number: 7. - AltText string `json:"altText,omitempty"` - - // BackgroundColor: Optional color of the button's background in RAISE - // mode. The default is the secondary color from addon's manifest. - BackgroundColor string `json:"backgroundColor,omitempty"` - - Disabled bool `json:"disabled,omitempty"` - - OnClick *OnClick `json:"onClick,omitempty"` - - // Possible values: - // "UNSPECIFIED" - // "TEXT" - Simple text button with ripple touch feedback. - // "FILLED" - Button with solid background. - Style string `json:"style,omitempty"` - - // Text: Text color can be set via HTML markup. - Text string `json:"text,omitempty"` - - // ForceSendFields is a list of field names (e.g. "AltText") 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:"-"` +// QueryOperator: The definition of a operator that can be used in a +// Search/Suggest request. +type QueryOperator struct { + // DisplayName: Display name of the operator + DisplayName string `json:"displayName,omitempty"` - // NullFields is a list of field names (e.g. "AltText") 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:"-"` -} + // EnumValues: Potential list of values for the opeatror field. This + // field is only filled when we can safely enumerate all the possible + // values of this operator. + EnumValues []string `json:"enumValues,omitempty"` -func (s *TextButton) MarshalJSON() ([]byte, error) { - type NoMethod TextButton - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} + // GreaterThanOperatorName: Indicates the operator name that can be used + // to isolate the property using the greater-than operator. + GreaterThanOperatorName string `json:"greaterThanOperatorName,omitempty"` -type TextField struct { - // AutoComplete: The initial set of auto complete items without any user - // input. - AutoComplete *AutoComplete `json:"autoComplete,omitempty"` + // IsFacetable: Can this operator be used to get facets. + IsFacetable bool `json:"isFacetable,omitempty"` - // AutoCompleteCallback: The refresh function which returns AutoComplete - // based on the user's input text. If the callback is not specified, - // auto complete will be purely done in client side based on the - // auto_complete items. - AutoCompleteCallback *FormAction `json:"autoCompleteCallback,omitempty"` + // IsRepeatable: Indicates if multiple values can be set for this + // property. + IsRepeatable bool `json:"isRepeatable,omitempty"` - // AutoCompleteMultipleSelections: When set to true, a user can input - // multiple auto-complet items. - AutoCompleteMultipleSelections bool `json:"autoCompleteMultipleSelections,omitempty"` + // IsReturnable: Will the property associated with this facet be + // returned as part of search results. + IsReturnable bool `json:"isReturnable,omitempty"` - HintText string `json:"hintText,omitempty"` + // IsSortable: Can this operator be used to sort results. + IsSortable bool `json:"isSortable,omitempty"` - // Label: One of label or hint_text is required to be specified by the - // developers. - Label string `json:"label,omitempty"` + // IsSuggestable: Can get suggestions for this field. + IsSuggestable bool `json:"isSuggestable,omitempty"` - MaxLines int64 `json:"maxLines,omitempty"` + // LessThanOperatorName: Indicates the operator name that can be used to + // isolate the property using the less-than operator. + LessThanOperatorName string `json:"lessThanOperatorName,omitempty"` - // Name: The name of the text field which is will be used in FormInput. - Name string `json:"name,omitempty"` + // ObjectType: The name of the object corresponding to the operator. + // This field is only filled for schema-specific operators, and is unset + // for common operators. + ObjectType string `json:"objectType,omitempty"` - OnChange *FormAction `json:"onChange,omitempty"` + // OperatorName: The name of the operator. + OperatorName string `json:"operatorName,omitempty"` + // Type: The type of the operator. + // // Possible values: - // "SINGLE_LINE" - // "MULTIPLE_LINE" + // "UNKNOWN" - Invalid value. + // "INTEGER" + // "DOUBLE" + // "TIMESTAMP" + // "BOOLEAN" + // "ENUM" + // "DATE" + // "TEXT" + // "HTML" Type string `json:"type,omitempty"` - // Value: The default value when no input from user. - Value string `json:"value,omitempty"` - - // ForceSendFields is a list of field names (e.g. "AutoComplete") to + // 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 @@ -23817,7 +7919,7 @@ type TextField struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "AutoComplete") to include + // 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 @@ -23826,21 +7928,29 @@ type TextField struct { NullFields []string `json:"-"` } -func (s *TextField) MarshalJSON() ([]byte, error) { - type NoMethod TextField +func (s *QueryOperator) MarshalJSON() ([]byte, error) { + type NoMethod QueryOperator raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// TextKeyValue: This is deprecated and please use KeyValue. -type TextKeyValue struct { - Key string `json:"key,omitempty"` +// QuerySource: List of sources that the user can search using the query +// API. +type QuerySource struct { + // DisplayName: Display name of the data source. + DisplayName string `json:"displayName,omitempty"` + + // Operators: List of all operators applicable for this source. + Operators []*QueryOperator `json:"operators,omitempty"` - OnClick *OnClick `json:"onClick,omitempty"` + // ShortName: A short name or alias for the source. This value can be + // used with the 'source' operator. + ShortName string `json:"shortName,omitempty"` - Text string `json:"text,omitempty"` + // Source: The name of the source + Source *Source `json:"source,omitempty"` - // ForceSendFields is a list of field names (e.g. "Key") to + // 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 @@ -23848,75 +7958,37 @@ type TextKeyValue struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Key") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as + // NullFields is a list of field names (e.g. "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 *TextKeyValue) MarshalJSON() ([]byte, error) { - type NoMethod TextKeyValue +func (s *QuerySource) MarshalJSON() ([]byte, error) { + type NoMethod QuerySource raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// TextOperatorOptions: Used to provide a search operator for text -// properties. This is optional. Search operators let users restrict the -// query to specific fields relevant to the type of item being searched. -type TextOperatorOptions struct { - // ExactMatchWithOperator: If true, the text value is tokenized as one - // atomic value in operator searches and facet matches. For example, if - // the operator name is "genre" and the value is "science-fiction" the - // query restrictions "genre:science" and "genre:fiction" doesn't match - // the item; "genre:science-fiction" does. Text value matching is - // case-sensitive and does not remove special characters. If false, the - // text is tokenized. For example, if the value is "science-fiction" the - // queries "genre:science" and "genre:fiction" matches the item. - ExactMatchWithOperator bool `json:"exactMatchWithOperator,omitempty"` - - // OperatorName: Indicates the operator name required in the query in - // order to isolate the text property. For example, if operatorName is - // *subject* and the property's name is *subjectLine*, then queries like - // *subject:* show results only where the value of the property - // named *subjectLine* matches **. By contrast, a search that - // uses the same ** without an operator returns all items where - // ** matches the value of any text properties or text within the - // content field for the item. The operator name can only contain - // lowercase letters (a-z). The maximum length is 32 characters. - OperatorName string `json:"operatorName,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "ExactMatchWithOperator") 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. "ExactMatchWithOperator") - // 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:"-"` +// QuerySuggestion: This field does not contain anything as of now and +// is just used as an indicator that the suggest result was a phrase +// completion. +type QuerySuggestion struct { } -func (s *TextOperatorOptions) MarshalJSON() ([]byte, error) { - type NoMethod TextOperatorOptions - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} +// RemoveActivityRequest: Remove Logged Activity Request. +type RemoveActivityRequest struct { + // RequestOptions: Request options, such as the search application and + // clientId. + RequestOptions *RequestOptions `json:"requestOptions,omitempty"` -type TextParagraph struct { - Text string `json:"text,omitempty"` + // UserActivity: User Activity containing the data to be deleted. + UserActivity *UserActivity `json:"userActivity,omitempty"` - // ForceSendFields is a list of field names (e.g. "Text") to + // ForceSendFields is a list of field names (e.g. "RequestOptions") 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 @@ -23924,32 +7996,61 @@ type TextParagraph struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Text") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "RequestOptions") 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 *TextParagraph) MarshalJSON() ([]byte, error) { - type NoMethod TextParagraph +func (s *RemoveActivityRequest) MarshalJSON() ([]byte, error) { + type NoMethod RemoveActivityRequest raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// TextPropertyOptions: The options for text properties. -type TextPropertyOptions struct { - // OperatorOptions: If set, describes how the property should be used as - // a search operator. - OperatorOptions *TextOperatorOptions `json:"operatorOptions,omitempty"` +// RemoveActivityResponse: Remove Logged Activity Response. will return +// an empty response for now. Will be revisited in later phases. +type RemoveActivityResponse struct { + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` +} - // RetrievalImportance: Indicates the search quality importance of the - // tokens within the field when used for retrieval. - RetrievalImportance *RetrievalImportance `json:"retrievalImportance,omitempty"` +// RepositoryError: Errors when the connector is communicating to the +// source repository. +type RepositoryError struct { + // ErrorMessage: Message that describes the error. The maximum allowable + // length of the message is 8192 characters. + ErrorMessage string `json:"errorMessage,omitempty"` - // ForceSendFields is a list of field names (e.g. "OperatorOptions") to + // HttpStatusCode: Error codes. Matches the definition of HTTP status + // codes. + HttpStatusCode int64 `json:"httpStatusCode,omitempty"` + + // Type: The type of error. + // + // Possible values: + // "UNKNOWN" - Unknown error. + // "NETWORK_ERROR" - Unknown or unreachable host. + // "DNS_ERROR" - DNS problem, such as the DNS server is not + // responding. + // "CONNECTION_ERROR" - Cannot connect to the repository server. + // "AUTHENTICATION_ERROR" - Failed authentication due to incorrect + // credentials. + // "AUTHORIZATION_ERROR" - Service account is not authorized for the + // repository. + // "SERVER_ERROR" - Repository server error. + // "QUOTA_EXCEEDED" - Quota exceeded. + // "SERVICE_UNAVAILABLE" - Server temporarily unavailable. + // "CLIENT_ERROR" - Client-related error, such as an invalid request + // from the connector to the repository server. + Type string `json:"type,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ErrorMessage") 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 @@ -23957,29 +8058,52 @@ type TextPropertyOptions struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "OperatorOptions") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ErrorMessage") 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 *TextPropertyOptions) MarshalJSON() ([]byte, error) { - type NoMethod TextPropertyOptions +func (s *RepositoryError) MarshalJSON() ([]byte, error) { + type NoMethod RepositoryError raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// TextValues: List of text values. -type TextValues struct { - // Values: The maximum allowable length for text values is 2048 - // characters. - Values []string `json:"values,omitempty"` +// RequestOptions: Shared request options for all RPC methods. +type RequestOptions struct { + // DebugOptions: Debug options of the request + DebugOptions *DebugOptions `json:"debugOptions,omitempty"` - // ForceSendFields is a list of field names (e.g. "Values") to + // LanguageCode: The BCP-47 language code, such as "en-US" or "sr-Latn". + // For more information, see + // http://www.unicode.org/reports/tr35/#Unicode_locale_identifier. For + // translations. Set this field using the language set in browser or for + // the page. In the event that the user's language preference is known, + // set this field to the known user language. When specified, the + // documents in search results are biased towards the specified + // language. From Suggest API perspective, for 3p suggest this is used + // as a hint while making predictions to add language boosting. + LanguageCode string `json:"languageCode,omitempty"` + + // SearchApplicationId: The ID generated when you create a search + // application using the admin console + // (https://support.google.com/a/answer/9043922). + SearchApplicationId string `json:"searchApplicationId,omitempty"` + + // TimeZone: Current user's time zone id, such as "America/Los_Angeles" + // or "Australia/Sydney". These IDs are defined by Unicode Common Locale + // Data Repository (CLDR) (http://cldr.unicode.org/) project, and + // currently available in the file timezone.xml + // (http://unicode.org/repos/cldr/trunk/common/bcp47/timezone.xml). This + // field is used to correctly interpret date and time queries. If this + // field is not specified, the default time zone (UTC) is used. + TimeZone string `json:"timeZone,omitempty"` + + // ForceSendFields is a list of field names (e.g. "DebugOptions") 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 @@ -23987,31 +8111,26 @@ type TextValues struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Values") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as + // NullFields is a list of field names (e.g. "DebugOptions") 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 *TextValues) MarshalJSON() ([]byte, error) { - type NoMethod TextValues +func (s *RequestOptions) MarshalJSON() ([]byte, error) { + type NoMethod RequestOptions raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// ThreadKeySet: The ThreadKey was set on some (subset of the) messages -// in this thread. -type ThreadKeySet struct { - // MessageKeys: Messages on which the thread_key was changed. - MessageKeys []*MultiKey `json:"messageKeys,omitempty"` - - // NewThreadKey: The new thread_key for this thread - NewThreadKey *MultiKey `json:"newThreadKey,omitempty"` +type ResetSearchApplicationRequest struct { + // DebugOptions: Common debug options. + DebugOptions *DebugOptions `json:"debugOptions,omitempty"` - // ForceSendFields is a list of field names (e.g. "MessageKeys") to + // ForceSendFields is a list of field names (e.g. "DebugOptions") 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 @@ -24019,7 +8138,7 @@ type ThreadKeySet struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "MessageKeys") to include + // NullFields is a list of field names (e.g. "DebugOptions") 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 @@ -24028,64 +8147,67 @@ type ThreadKeySet struct { NullFields []string `json:"-"` } -func (s *ThreadKeySet) MarshalJSON() ([]byte, error) { - type NoMethod ThreadKeySet +func (s *ResetSearchApplicationRequest) MarshalJSON() ([]byte, error) { + type NoMethod ResetSearchApplicationRequest raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// ThreadUpdate: HistoryRecord for changes associated with a thread, -// namely: MESSAGE_ADDED MESSAGE_DELETED LABEL_ADDED LABEL_REMOVED -// ATTRIBUTE_SET ATTRIBUTE_REMOVED THREAD_KEY_SET All label_ids refer to -// the (unchanging) value as defined by the Label.id field in -// labels.proto. In particular, it is *not* the canonical_name. -type ThreadUpdate struct { - AttributeRemoved *AttributeRemoved `json:"attributeRemoved,omitempty"` - - AttributeSet *AttributeSet `json:"attributeSet,omitempty"` - - LabelAdded *LabelAdded `json:"labelAdded,omitempty"` - - LabelRemoved *LabelRemoved `json:"labelRemoved,omitempty"` - - // LastHistoryRecordId: Indicates the record id of the last operation - // that modified this thread. - LastHistoryRecordId uint64 `json:"lastHistoryRecordId,omitempty,string"` +// ResponseDebugInfo: Debugging information about the response. +type ResponseDebugInfo struct { + // FormattedDebugInfo: General debug info formatted for display. + FormattedDebugInfo string `json:"formattedDebugInfo,omitempty"` - MessageAdded *MessageAdded `json:"messageAdded,omitempty"` + // ForceSendFields is a list of field names (e.g. "FormattedDebugInfo") + // 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:"-"` - MessageDeleted *MessageDeleted `json:"messageDeleted,omitempty"` + // NullFields is a list of field names (e.g. "FormattedDebugInfo") 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:"-"` +} - // OriginalThreadKey: The first non-empty thread-key on any message in - // the thread (including deleted messages). This field has been - // introduced to maintain backward compatibility for clients that are - // not subthread aware. - OriginalThreadKey *MultiKey `json:"originalThreadKey,omitempty"` +func (s *ResponseDebugInfo) MarshalJSON() ([]byte, error) { + type NoMethod ResponseDebugInfo + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} - // PreState: The PreStates of all messages before the transaction. These - // are suppressed if the client requested that prestates not be included - // in the output of the GetHistoryRequest. - PreState []*PreState `json:"preState,omitempty"` +// RestrictItem: Information relevant only to a restrict entry. NextId: +// 12 +type RestrictItem struct { + DriveFollowUpRestrict *DriveFollowUpRestrict `json:"driveFollowUpRestrict,omitempty"` - // ThreadKey: Affected thread - ThreadKey *MultiKey `json:"threadKey,omitempty"` + DriveLocationRestrict *DriveLocationRestrict `json:"driveLocationRestrict,omitempty"` - ThreadKeySet *ThreadKeySet `json:"threadKeySet,omitempty"` + // DriveMimeTypeRestrict: Drive Types. + DriveMimeTypeRestrict *DriveMimeTypeRestrict `json:"driveMimeTypeRestrict,omitempty"` - // ThreadLocator: Thread PLID - ThreadLocator string `json:"threadLocator,omitempty"` + DriveTimeSpanRestrict *DriveTimeSpanRestrict `json:"driveTimeSpanRestrict,omitempty"` - TopicStateUpdate *TopicStateUpdate `json:"topicStateUpdate,omitempty"` + // SearchOperator: The search restrict (e.g. "after:2017-09-11 + // before:2017-09-12"). + SearchOperator string `json:"searchOperator,omitempty"` - // ForceSendFields is a list of field names (e.g. "AttributeRemoved") 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 is a list of field names (e.g. + // "DriveFollowUpRestrict") 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. "AttributeRemoved") to + // NullFields is a list of field names (e.g. "DriveFollowUpRestrict") 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 @@ -24095,88 +8217,56 @@ type ThreadUpdate struct { NullFields []string `json:"-"` } -func (s *ThreadUpdate) MarshalJSON() ([]byte, error) { - type NoMethod ThreadUpdate +func (s *RestrictItem) MarshalJSON() ([]byte, error) { + type NoMethod RestrictItem raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// TimestampOperatorOptions: Used to provide a search operator for -// timestamp properties. This is optional. Search operators let users -// restrict the query to specific fields relevant to the type of item -// being searched. -type TimestampOperatorOptions struct { - // GreaterThanOperatorName: Indicates the operator name required in the - // query in order to isolate the timestamp property using the - // greater-than operator. For example, if greaterThanOperatorName is - // *closedafter* and the property's name is *closeDate*, then queries - // like *closedafter:* show results only where the value of the - // property named *closeDate* is later than **. The operator name - // can only contain lowercase letters (a-z). The maximum length is 32 - // characters. - GreaterThanOperatorName string `json:"greaterThanOperatorName,omitempty"` - - // LessThanOperatorName: Indicates the operator name required in the - // query in order to isolate the timestamp property using the less-than - // operator. For example, if lessThanOperatorName is *closedbefore* and - // the property's name is *closeDate*, then queries like - // *closedbefore:* show results only where the value of the - // property named *closeDate* is earlier than **. The operator - // name can only contain lowercase letters (a-z). The maximum length is - // 32 characters. - LessThanOperatorName string `json:"lessThanOperatorName,omitempty"` - - // OperatorName: Indicates the operator name required in the query in - // order to isolate the timestamp property. For example, if operatorName - // is *closedon* and the property's name is *closeDate*, then queries - // like *closedon:* show results only where the value of the - // property named *closeDate* matches **. By contrast, a search - // that uses the same ** without an operator returns all items - // where ** matches the value of any String properties or text - // within the content field for the item. The operator name can only - // contain lowercase letters (a-z). The maximum length is 32 characters. - OperatorName string `json:"operatorName,omitempty"` +// ResultCounts: Result count information +type ResultCounts struct { + // SourceResultCounts: Result count information for each source with + // results. + SourceResultCounts []*SourceResultCount `json:"sourceResultCounts,omitempty"` - // ForceSendFields is a list of field names (e.g. - // "GreaterThanOperatorName") 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 is a list of field names (e.g. "SourceResultCounts") + // 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. "GreaterThanOperatorName") - // 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. "SourceResultCounts") 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 *TimestampOperatorOptions) MarshalJSON() ([]byte, error) { - type NoMethod TimestampOperatorOptions +func (s *ResultCounts) MarshalJSON() ([]byte, error) { + type NoMethod ResultCounts raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// TimestampPropertyOptions: The options for timestamp properties. -type TimestampPropertyOptions struct { - // OperatorOptions: If set, describes how the timestamp should be used - // as a search operator. - OperatorOptions *TimestampOperatorOptions `json:"operatorOptions,omitempty"` +// ResultDebugInfo: Debugging information about the result. +type ResultDebugInfo struct { + // FormattedDebugInfo: General debug info formatted for display. + FormattedDebugInfo string `json:"formattedDebugInfo,omitempty"` - // ForceSendFields is a list of field names (e.g. "OperatorOptions") to - // unconditionally include in API requests. By default, fields with + // ForceSendFields is a list of field names (e.g. "FormattedDebugInfo") + // 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. "OperatorOptions") to + // NullFields is a list of field names (e.g. "FormattedDebugInfo") 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 @@ -24186,17 +8276,24 @@ type TimestampPropertyOptions struct { NullFields []string `json:"-"` } -func (s *TimestampPropertyOptions) MarshalJSON() ([]byte, error) { - type NoMethod TimestampPropertyOptions +func (s *ResultDebugInfo) MarshalJSON() ([]byte, error) { + type NoMethod ResultDebugInfo raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// TimestampValues: List of timestamp values. -type TimestampValues struct { - Values []string `json:"values,omitempty"` +// ResultDisplayField: Display Fields for Search Results +type ResultDisplayField struct { + // Label: The display label for the property. + Label string `json:"label,omitempty"` - // ForceSendFields is a list of field names (e.g. "Values") to + // OperatorName: The operator name of the property. + OperatorName string `json:"operatorName,omitempty"` + + // Property: The name value pair for the property. + Property *NamedProperty `json:"property,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Label") 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 @@ -24204,7 +8301,7 @@ type TimestampValues struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Values") to include in API + // NullFields is a list of field names (e.g. "Label") 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 @@ -24213,33 +8310,18 @@ type TimestampValues struct { NullFields []string `json:"-"` } -func (s *TimestampValues) MarshalJSON() ([]byte, error) { - type NoMethod TimestampValues +func (s *ResultDisplayField) MarshalJSON() ([]byte, error) { + type NoMethod ResultDisplayField raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// TombstoneMetadata: Tombstoning is the act of leaving a contextual -// trace when deleting a message. See more: go/tombstone-prd, -// go/hub-dynamite-tombstones-server-design-v2. -type TombstoneMetadata struct { - // TombstoneType: Indicates the type of Tombstone. - // - // Possible values: - // "TOMBSTONE_UNSPECIFIED" - This should not be used. - // "CREATOR" - User deleted their own message. - // "ROOM_OWNER" - The space owner deleted a message in their space. - // "ADMIN" - The customer admin deleted a message in a space or DM - // owned by the customer. (go/chat-customer-owned-data) - // "APP_MESSAGE_EXPIRY" - App scheduled deletion of their own message. - // See go/bme-dd. - // "CREATOR_VIA_APP" - User deleted their own message via an app. See - // go/chat-api-delete-message. - // "ROOM_OWNER_VIA_APP" - The space owner deleted a message in their - // space via an app. See go/chat-api-delete-message. - TombstoneType string `json:"tombstoneType,omitempty"` - - // ForceSendFields is a list of field names (e.g. "TombstoneType") to +// ResultDisplayLine: The collection of fields that make up a displayed +// line +type ResultDisplayLine struct { + Fields []*ResultDisplayField `json:"fields,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Fields") 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 @@ -24247,32 +8329,29 @@ type TombstoneMetadata struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "TombstoneType") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as + // NullFields is a list of field names (e.g. "Fields") 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 *TombstoneMetadata) MarshalJSON() ([]byte, error) { - type NoMethod TombstoneMetadata +func (s *ResultDisplayLine) MarshalJSON() ([]byte, error) { + type NoMethod ResultDisplayLine raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// Toolbar: The Toolbar markup has been deprecated. The information is -// now specified in the manifest. -type Toolbar struct { - // Color: Background color of the toolbar in RBG hex representation. - Color string `json:"color,omitempty"` - - IconUrl string `json:"iconUrl,omitempty"` +type ResultDisplayMetadata struct { + // Metalines: The metalines content to be displayed with the result. + Metalines []*ResultDisplayLine `json:"metalines,omitempty"` - Name string `json:"name,omitempty"` + // ObjectTypeLabel: The display label for the object. + ObjectTypeLabel string `json:"objectTypeLabel,omitempty"` - // ForceSendFields is a list of field names (e.g. "Color") to + // ForceSendFields is a list of field names (e.g. "Metalines") 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 @@ -24280,8 +8359,8 @@ type Toolbar struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Color") to include in API - // requests with the JSON null value. By default, fields with empty + // NullFields is a list of field names (e.g. "Metalines") 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. @@ -24289,24 +8368,28 @@ type Toolbar struct { NullFields []string `json:"-"` } -func (s *Toolbar) MarshalJSON() ([]byte, error) { - type NoMethod Toolbar +func (s *ResultDisplayMetadata) MarshalJSON() ([]byte, error) { + type NoMethod ResultDisplayMetadata raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -type TopicId struct { - // GroupId: The Space or DM that the topic belongs to. - GroupId *GroupId `json:"groupId,omitempty"` - - // TopicId: Opaque, server-assigned ID of the Topic. While this ID is - // guaranteed to be unique within the Space, it's not guaranteed to be - // globally unique. Internal usage: this field can be empty in the - // following cases: 1. To create the first message in a topic. 2. To - // list last N messages of a Space (regardless of topic). - TopicId string `json:"topicId,omitempty"` +type RetrievalImportance struct { + // Importance: Indicates the ranking importance given to property when + // it is matched during retrieval. Once set, the token importance of a + // property cannot be changed. + // + // Possible values: + // "DEFAULT" - Treat the match like a body text match. + // "HIGHEST" - Treat the match like a match against title of the item. + // "HIGH" - Treat the match with higher importance than body text. + // "LOW" - Treat the match with lower importance than body text. + // "NONE" - Do not match against this field during retrieval. The + // property can still be used for operator matching, faceting, and + // suggest if desired. + Importance string `json:"importance,omitempty"` - // ForceSendFields is a list of field names (e.g. "GroupId") to + // ForceSendFields is a list of field names (e.g. "Importance") 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 @@ -24314,7 +8397,7 @@ type TopicId struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "GroupId") to include in + // NullFields is a list of field names (e.g. "Importance") 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 @@ -24323,62 +8406,73 @@ type TopicId struct { NullFields []string `json:"-"` } -func (s *TopicId) MarshalJSON() ([]byte, error) { - type NoMethod TopicId +func (s *RetrievalImportance) MarshalJSON() ([]byte, error) { + type NoMethod RetrievalImportance raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// TopicState: State of an topic thread as maintained within Tingle. -type TopicState struct { - // LabelIdMessageCount: Map of label => count of topic constituent - // messages with label These only contain counts of labels that are - // relevant for topic normalization/denormalization. Eg. If a topic - // thread has 5 constituents, 4 of which are in inbox, this will contain - // ^i => 4. Some labels of interest are archive, inbox, trash, spam, - // etc. - LabelIdMessageCount map[string]int64 `json:"labelIdMessageCount,omitempty"` - - // NumConstituents: Number of constituents for this entity. - NumConstituents int64 `json:"numConstituents,omitempty"` +// SafeHtmlProto: IMPORTANT: It is unsafe to accept this message from an +// untrusted source, since it's trivial for an attacker to forge +// serialized messages that don't fulfill the type's safety contract -- +// for example, it could contain attacker controlled script. A system +// which receives a SafeHtmlProto implicitly trusts the producer of the +// SafeHtmlProto. So, it's generally safe to return this message in RPC +// responses, but generally unsafe to accept it in RPC requests. +type SafeHtmlProto struct { + // PrivateDoNotAccessOrElseSafeHtmlWrappedValue: IMPORTANT: Never set or + // read this field, even from tests, it is private. See documentation at + // the top of .proto file for programming language packages with which + // to create or read this message. + PrivateDoNotAccessOrElseSafeHtmlWrappedValue string `json:"privateDoNotAccessOrElseSafeHtmlWrappedValue,omitempty"` - // ForceSendFields is a list of field names (e.g. "LabelIdMessageCount") - // 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 is a list of field names (e.g. + // "PrivateDoNotAccessOrElseSafeHtmlWrappedValue") 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. "LabelIdMessageCount") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. + // "PrivateDoNotAccessOrElseSafeHtmlWrappedValue") 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 *TopicState) MarshalJSON() ([]byte, error) { - type NoMethod TopicState +func (s *SafeHtmlProto) MarshalJSON() ([]byte, error) { + type NoMethod SafeHtmlProto raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -type TopicStateUpdate struct { - TopicState *TopicState `json:"topicState,omitempty"` +// SafeUrlProto: Message containing a string that is safe to use in URL +// contexts in DOM APIs and HTML documents, where the URL context does +// not refer to a resource that loads code. +type SafeUrlProto struct { + // PrivateDoNotAccessOrElseSafeUrlWrappedValue: IMPORTANT: Never set or + // read this field, even from tests, it is private. See documentation at + // the top of .proto file for programming language packages with which + // to create or read this message. + PrivateDoNotAccessOrElseSafeUrlWrappedValue string `json:"privateDoNotAccessOrElseSafeUrlWrappedValue,omitempty"` - // ForceSendFields is a list of field names (e.g. "TopicState") 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 is a list of field names (e.g. + // "PrivateDoNotAccessOrElseSafeUrlWrappedValue") 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. "TopicState") to include in - // API requests with the JSON null value. By default, fields with empty + // NullFields is a list of field names (e.g. + // "PrivateDoNotAccessOrElseSafeUrlWrappedValue") 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. @@ -24386,36 +8480,36 @@ type TopicStateUpdate struct { NullFields []string `json:"-"` } -func (s *TopicStateUpdate) MarshalJSON() ([]byte, error) { - type NoMethod TopicStateUpdate +func (s *SafeUrlProto) MarshalJSON() ([]byte, error) { + type NoMethod SafeUrlProto raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// TransactionContext: Storage information pertaining to the transaction -// with which a HistoryRecord is associated. -type TransactionContext struct { - // EndingRecordId: The last HistoryRecord of the transaction. Note that - // this may correspond to a record that is filtered by Tingle (and thus - // not returned to the client). See http://b/9513464. - EndingRecordId uint64 `json:"endingRecordId,omitempty,string"` +// Schema: The schema definition for a data source. +type Schema struct { + // ObjectDefinitions: The list of top-level objects for the data source. + // The maximum number of elements is 10. + ObjectDefinitions []*ObjectDefinition `json:"objectDefinitions,omitempty"` - // StartingRecordId: The first HistoryRecord of the transaction. Note - // that this may be a record of type INTERNAL. - StartingRecordId uint64 `json:"startingRecordId,omitempty,string"` + // OperationIds: IDs of the Long Running Operations (LROs) currently + // running for this schema. After modifying the schema, wait for + // operations to complete before indexing additional content. + OperationIds []string `json:"operationIds,omitempty"` - // WriteTimestampUs: The microsecond timestamp of the transaction. - WriteTimestampUs int64 `json:"writeTimestampUs,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. "EndingRecordId") to - // unconditionally include in API requests. By default, fields with + // ForceSendFields is a list of field names (e.g. "ObjectDefinitions") + // 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. "EndingRecordId") to + // NullFields is a list of field names (e.g. "ObjectDefinitions") 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 @@ -24425,30 +8519,25 @@ type TransactionContext struct { NullFields []string `json:"-"` } -func (s *TransactionContext) MarshalJSON() ([]byte, error) { - type NoMethod TransactionContext +func (s *Schema) MarshalJSON() ([]byte, error) { + type NoMethod Schema raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// TransactionDebugInfo: HistoryRecord for debug info associated with -// the transaction, namely: TXN_DEBUG_INFO TODO(b/143845917) This is a -// short-term workaround for unblocking fusebox writes migration. Clean -// up the code or land a long-term solution after the rollout. -// go/diff-to-historyrecord -type TransactionDebugInfo struct { -} - -// TranscriptionSessionInfo: Information about a transcription session. -type TranscriptionSessionInfo struct { - // SessionStateInfo: Transcription session's state information. - SessionStateInfo *SessionStateInfo `json:"sessionStateInfo,omitempty"` +// ScoringConfig: Scoring configurations for a source while processing a +// Search or Suggest request. +type ScoringConfig struct { + // DisableFreshness: Whether to use freshness as a ranking signal. By + // default, freshness is used as a ranking signal. Note that this + // setting is not available in the Admin UI. + DisableFreshness bool `json:"disableFreshness,omitempty"` - // TranscriptionSessionId: A unique server-generated ID for the - // transcription session. - TranscriptionSessionId string `json:"transcriptionSessionId,omitempty"` + // DisablePersonalization: Whether to personalize the results. By + // default, personal signals will be used to boost results. + DisablePersonalization bool `json:"disablePersonalization,omitempty"` - // ForceSendFields is a list of field names (e.g. "SessionStateInfo") to + // ForceSendFields is a list of field names (e.g. "DisableFreshness") 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 @@ -24456,7 +8545,7 @@ type TranscriptionSessionInfo struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "SessionStateInfo") to + // NullFields is a list of field names (e.g. "DisableFreshness") 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 @@ -24466,235 +8555,97 @@ type TranscriptionSessionInfo struct { NullFields []string `json:"-"` } -func (s *TranscriptionSessionInfo) MarshalJSON() ([]byte, error) { - type NoMethod TranscriptionSessionInfo +func (s *ScoringConfig) MarshalJSON() ([]byte, error) { + type NoMethod ScoringConfig raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// TransientData: Transient generic data that will not be saved on the -// server. -type TransientData struct { -} +// SearchApplication: SearchApplication +type SearchApplication struct { + // DataSourceRestrictions: Retrictions applied to the configurations. + // The maximum number of elements is 10. + DataSourceRestrictions []*DataSourceRestriction `json:"dataSourceRestrictions,omitempty"` + + // DefaultFacetOptions: The default fields for returning facet results. + // The sources specified here also have been included in + // data_source_restrictions above. + DefaultFacetOptions []*FacetOptions `json:"defaultFacetOptions,omitempty"` + + // DefaultSortOptions: The default options for sorting the search + // results + DefaultSortOptions *SortOptions `json:"defaultSortOptions,omitempty"` -type Trigger struct { - // ActionType: Each dispatcher should use an enum to for the actions - // that it supports. If a dispatcher has only one action, this does not - // need to be set. (It can be expanded later, defining the default - // behaviour as type 0.) For purposes such as batching, the type of a - // trigger is (dispatcher, action_type). - ActionType int64 `json:"actionType,omitempty"` + // DisplayName: Display name of the Search Application. The maximum + // length is 300 characters. + DisplayName string `json:"displayName,omitempty"` - // BatchTimeUs: Maximum possible delay in micros that can be tolerated - // so triggers can be batched, which makes processing more efficient - // compared to firing triggers individually. Note that the actual fire - // time will be somewhere in the timerange interval [fire_time_us, - // fire_time_us + batch_time_us). - BatchTimeUs int64 `json:"batchTimeUs,omitempty,string"` + // EnableAuditLog: Indicates whether audit logging is on/off for + // requests made for the search application in query APIs. + EnableAuditLog bool `json:"enableAuditLog,omitempty"` - // DispatchId: Must be set for DISPATCHER_STUBBY_DISPATCHER. - DispatchId int64 `json:"dispatchId,omitempty"` + // Name: The name of the Search Application. Format: + // searchapplications/{application_id}. + Name string `json:"name,omitempty"` - // Dispatcher: Which server should interpret action_type. - // - // Possible values: - // "DISPATCHER_COPROC" - Replace ACTION_INVOKE_X; the CS and Stratus - // are no longer limited to a single type of action. Each additional - // remote client should be defined here. - // "DISPATCHER_JOBSETTED_PRIMARY" - // "DISPATCHER_STRATUS" - // "DISPATCHER_TASKS_SERVER" - // "DISPATCHER_STUBBY_DISPATCHER" - // "DISPATCHER_CS" - Dispatcher string `json:"dispatcher,omitempty"` - - // FireTimeUs: Earliest time to fire at in microseconds. The actual time - // that the trigger will fire will be in the timerange: [fire_time_us, - // fire_time_us + batch_time_us). - FireTimeUs int64 `json:"fireTimeUs,omitempty,string"` - - // JobsettedServerSpec: Must be set for DISPATCHER_JOBSETTED_PRIMARY. - JobsettedServerSpec *JobsettedServerSpec `json:"jobsettedServerSpec,omitempty"` - - // Key: The trigger key, if applicable. - Key string `json:"key,omitempty"` - - RpcOptions *RpcOptions `json:"rpcOptions,omitempty"` - - // SliceFireTimeUs: The slice_fire_time_us is automatically computed and - // stored as part of the trigger write. It represents the exact fire - // time at which the trigger will be queued to fire and will satisfy - // fire_time_us < slice_fire_time_us <= fire_time_us + batch_time_us - // Triggers have an index row in the slice trigger index with the row - // prefix matching this time. Note that this field is internal to - // gmail_cp and is ignored if set by external clients when adding / - // updating triggers. - SliceFireTimeUs int64 `json:"sliceFireTimeUs,omitempty,string"` - - // TriggerAction: Trigger action to perform. This should always be set. - TriggerAction *TriggerAction `json:"triggerAction,omitempty"` - - // TriggerKey: The TriggerKey will uniquely determine a trigger within a - // given context. A context is a single message for message triggers or - // a single account for account triggers. - TriggerKey *TriggerKey `json:"triggerKey,omitempty"` - - // 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. + // OperationIds: Output only. IDs of the Long Running Operations (LROs) + // currently running for this schema. Output only field. + OperationIds []string `json:"operationIds,omitempty"` + + // QueryInterpretationConfig: The default options for query + // interpretation + QueryInterpretationConfig *QueryInterpretationConfig `json:"queryInterpretationConfig,omitempty"` + + // ReturnResultThumbnailUrls: With each result we should return the URI + // for its thumbnail (when applicable) + ReturnResultThumbnailUrls bool `json:"returnResultThumbnailUrls,omitempty"` + + // ScoringConfig: Configuration for ranking results. + ScoringConfig *ScoringConfig `json:"scoringConfig,omitempty"` + + // SourceConfig: Configuration for a sources specified in + // data_source_restrictions. + SourceConfig []*SourceConfig `json:"sourceConfig,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. + // "DataSourceRestrictions") 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 is a list of field names (e.g. "DataSourceRestrictions") + // 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 *Trigger) MarshalJSON() ([]byte, error) { - type NoMethod Trigger +func (s *SearchApplication) MarshalJSON() ([]byte, error) { + type NoMethod SearchApplication raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -type TriggerAction struct { - // Possible values: - // "ACTION_NONE" - // "ACTION_DELETE" - No-op - // "ACTION_CREATE_NEW_TRIGGER" - No-op - // "ACTION_MESSAGE_EXPUNGE" - This action begins the message expunge - // process. It will trigger a purge attempt for all messages that have - // this trigger. - // "ACTION_RETENTION_POLICY_UPDATE" - When this trigger fires, the - // current retention policy will be loaded from the policy management - // system and stored into the preference cache (if necessary). This will - // also create new expunge triggers if necessary. - // "ACTION_UPDATE_ICEBOX_MODEL" - When this trigger fires, the message - // should be used to update the user's importance model. See - // http://go/io-tingle for more details. - // "ACTION_INVOKE_CS" - Sends the trigger to the master Caribou server - // via the Stubby TriggerHandlerService interface (defined in - // caribou/coproc/proto/trigger_handler.proto). The trigger is handled - // at fire time in the account's primary replica, and only in - // non-primary replicas after a delay. - // "ACTION_INVOKE_STRATUS" - Similar to ACTION_INVOKE_CS, but instead - // of sending the trigger to the master Caribou server, sends it to a - // Stratus server that also implements the TriggerHandlerService. This - // Stratus server is specified via - // FLAGS_triggers_stratus_server_address. The trigger is handled at fire - // time in the account's primary replica, and only in non-primary - // replicas after a delay. - // "ACTION_PDH_EXPUNGE" - This action begins the message's PDH - // expunge. It will trigger a expunge (from pdh) attempt for all - // messages that have this trigger. - // "ACTION_QUERY_RETENTION" - When this trigger fires, based on the - // latest retention policy: 1. messages that need to be deleted will be - // deleted through the CS trigger handler 2. ^deleted messages that need - // to be expunged will be expunged - // "ACTION_INVOKE_JOBSETTED_PRIMARY" - Similar to ACTION_INVOKE_CS, - // but instead of sending the trigger to the master Caribou server, - // sends it to a jobsetted server in the user's master jobset using the - // consistent-hash homing algorithm. The jobsetted_server_spec must be - // specified when using this TriggerAction. - // "ACTION_INVOKE_TASKS_SERVER" - Send the trigger to a Tasks server - // that implements the TriggerHandlerService. Dispatched via GSLB target - // specified by FLAGS_triggers_tasks_server_address. - // "ACTION_INVOKE_PUBLISHER" - Send the trigger to a SmartMail - // Publisher server that implements the TriggerHandlerService. - // Dispatched via GSLB target specified by - // FLAGS_triggers_publisher_server_address. - // "ACTION_INVOKE_OBSERVER" - Send the trigger to an Observer server - // that implements the TriggerHandlerService. Dispatched via GSLB target - // specified by FLAGS_triggers_observer_server_address. - // "ACTION_PUSH_HISTORY_TO_PDH" - Push a set of history records to - // PDH. - // "ACTION_INVOKE_STUBBY_DISPATCHER" - Send the trigger to the stubby - // dispatcher, which routes the RPC using the value of - // Trigger.dispatch_id as the RoutingInfo.extension_tag field. - // Dispatched via the GSLB target specified by - // FLAGS_triggers_stubby_dispatcher_address. - // "ACTION_PDH_BACKFILL" - Backfills a set of records from an account - // and pushes them to PDH. - // "ACTION_MESSAGE_UNDELETE" - Move messages from ^deleted to ^all. - // This trigger will only undelete messages that were deleted before the - // fire time of the trigger. Also, messages whose blobs are already - // deleted will not be undeleted. This is an account trigger. - // "ACTION_VAULT_END_USER_ACCESS" - This trigger will undelete - // messages that were ^deleted arbitrarily long in the past and a trash - // label will be applied to these undeleted messages. This is an account - // trigger that will be written when the Vault admin enables end user - // access for the Vault customer. This trigger shares its implementation - // with the ACTION_MESSAGE_UNDELETE trigger. - // "ACTION_INVOKE_GROUPS" - Send the trigger to a groups server that - // implements the TriggerHandlerService. Dispatched via GSLB target - // specified by FLAGS_triggers_groups_server_address. - // "ACTION_ACCOUNT_INITIALIZATION" - This trigger will be executed - // once per newly created account. It will be created as part of the - // first transaction written to the account. The trigger can also be - // written as part of an SVF in case we want to re-initialize every - // account. - // "ACTION_INVOKE_OBSERVER_WIPEOUT" - Send the trigger to an Observer - // server that implements the TriggerHandlerService for wipeout purpose. - // Dispatched via GSLB target specified by - // FLAGS_triggers_observer_server_address. It behaves differently from - // the invoke observer trigger (ACTION_INVOKE_OBSERVER) and should be - // batched separately. Tingle always fires this kind of action trigger - // for ^deleted messages. - // "ACTION_SERVICE_REMOVED_MESSAGE_EXPUNGE" - Begins the message - // expunge similar to ACTION_MESSAGE_EXPUNGE but doesn't check if the - // message was deleted at least 30 days back. To be used ONLY for - // service removal. See go/gmail-service-removal for more details. - // "ACTION_EVERCLEAR_EXPUNGE" - Sends RPC to everclear for the message - // expunge. - // "ACTION_INVOKE_SMIME_CERTIFICATE_ISSUER" - Send the trigger to the - // S/MIME certificate issuer server. Dispatched via the GSLB target - // specified by FLAGS_triggers_smime_certificate_issuer_server_address. - // "ACTION_GROUPS_QUERY_RETENTION" - The retention trigger that will - // be written to implement Groups retention. - // "ACTION_INVOKE_SATELLITE_BACKUP" - Dispatches the permanent backup - // trigger to Satellite through Stubby dispatcher. - // "ACTION_INVOKE_DEBUG_LOG" - Process the debug log trigger by adding - // message body before dispatching to the Caribou Server through Stubby - // Dispatcher. - // "ACTION_PREFERENCE_CLEANUP" - This trigger deletes expired - // temporary preferences. See go/tingle-temp-prefs for more details. - // "ACTION_CARIBOU_DATA_RETENTION" - Similar to ACTION_QUERY_RETENTION - // but uses the MessageRetention policies to trash/delete the messages: - // cs/caribou/base/lib/proto/data_retention.proto . - // "ACTION_HISTORY_CLEANUP" - This trigger deletes expired - // HistoryRecords. See go/history-record-cleanup for more details. - // "ACTION_ITEM_BULK_RELABEL" - This trigger relabels messages - // asynchronously. See go/fusebox-bulk-api for more details. - // "ACTION_INVOKE_SATELLITE_IMAGE_PROCESSING" - Dispatches the image - // processing trigger to Satellite through Stubby dispatcher. See - // go/gmail-photo-sharing for details. - // "ACTION_CARIBOU_DATA_RETENTION_DIFF" - Trigger for executing - // comparison logic between the output of ApplyDataRetention idle task - // and CaribouDataRetention trigger. - // "ACTION_RELEVANCY_SCORE_BACKFILL" - Trigger for backfill relevancy - // score. see go/gmail-relevancy-scoring-write for detail. - // "ACTION_PDH_PUSH_NOTIFICATION_BACKFILL" - Trigger to backfill gaps - // left by pdh pushed via push notification. see - // go/tingle-moonshine-push-v2 - // "ACTION_AUTO_SAVE_DRAFT_EXPUNGE" - Begins the message expunge - // similar to ACTION_MESSAGE_EXPUNGE but fires within one day. To be - // used ONLY for auto save drafts. See - // go/faster-auto-save-draft-deletion for more details. - // "ACTION_RELEVANCY_SCORE_CATCHUP" - Trigger for relevancy score - // catchup. See go/relevancy-trigger-doc for detail. - Action string `json:"action,omitempty"` - - // Data: Clients should use extensions on the Trigger message instead. - Data string `json:"data,omitempty"` - - DataInt int64 `json:"dataInt,omitempty,string"` - - // ForceSendFields is a list of field names (e.g. "Action") to +// SearchApplicationQueryStats: Search application level query stats per +// date +type SearchApplicationQueryStats struct { + // Date: The date for which query stats were calculated. Stats + // calculated on the next day close to midnight are returned. + Date *Date `json:"date,omitempty"` + + QueryCountByStatus []*QueryCountByStatus `json:"queryCountByStatus,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Date") 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 @@ -24702,7 +8653,7 @@ type TriggerAction struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Action") to include in API + // NullFields is a list of field names (e.g. "Date") 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 @@ -24711,27 +8662,22 @@ type TriggerAction struct { NullFields []string `json:"-"` } -func (s *TriggerAction) MarshalJSON() ([]byte, error) { - type NoMethod TriggerAction +func (s *SearchApplicationQueryStats) MarshalJSON() ([]byte, error) { + type NoMethod SearchApplicationQueryStats raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// TriggerKey: A TriggerKey (type + instance_id) uniquely identifies a -// trigger within a message for a message-trigger and within an account -// for an account-trigger. -type TriggerKey struct { - // InstanceId: Identifier to distinguish multiple Triggers of the same - // type (per message or per account). - InstanceId string `json:"instanceId,omitempty"` +type SearchApplicationSessionStats struct { + // Date: The date for which session stats were calculated. Stats are + // calculated on the following day, close to midnight PST, and then + // returned. + Date *Date `json:"date,omitempty"` - // Type: A non-empty string that identifies the type of Trigger. - // Triggers of the same type may be batched together. The universe of - // values for the type field should be finite as it is used as a stats - // key. - Type string `json:"type,omitempty"` + // SearchSessionsCount: The count of search sessions on the day + SearchSessionsCount int64 `json:"searchSessionsCount,omitempty,string"` - // ForceSendFields is a list of field names (e.g. "InstanceId") to + // ForceSendFields is a list of field names (e.g. "Date") 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 @@ -24739,8 +8685,8 @@ type TriggerKey struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "InstanceId") to include in - // API requests with the JSON null value. By default, fields with empty + // NullFields is a list of field names (e.g. "Date") 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. @@ -24748,17 +8694,30 @@ type TriggerKey struct { NullFields []string `json:"-"` } -func (s *TriggerKey) MarshalJSON() ([]byte, error) { - type NoMethod TriggerKey +func (s *SearchApplicationSessionStats) MarshalJSON() ([]byte, error) { + type NoMethod SearchApplicationSessionStats raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -type Triggers struct { - // Triggers: A list of triggers. - Triggers []*Trigger `json:"triggers,omitempty"` +type SearchApplicationUserStats struct { + // Date: The date for which session stats were calculated. Stats + // calculated on the next day close to midnight are returned. + Date *Date `json:"date,omitempty"` + + // OneDayActiveUsersCount: The count of unique active users in the past + // one day + OneDayActiveUsersCount int64 `json:"oneDayActiveUsersCount,omitempty,string"` + + // SevenDaysActiveUsersCount: The count of unique active users in the + // past seven days + SevenDaysActiveUsersCount int64 `json:"sevenDaysActiveUsersCount,omitempty,string"` + + // ThirtyDaysActiveUsersCount: The count of unique active users in the + // past thirty days + ThirtyDaysActiveUsersCount int64 `json:"thirtyDaysActiveUsersCount,omitempty,string"` - // ForceSendFields is a list of field names (e.g. "Triggers") to + // ForceSendFields is a list of field names (e.g. "Date") 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 @@ -24766,8 +8725,8 @@ type Triggers struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Triggers") to include in - // API requests with the JSON null value. By default, fields with empty + // NullFields is a list of field names (e.g. "Date") 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. @@ -24775,25 +8734,25 @@ type Triggers struct { NullFields []string `json:"-"` } -func (s *Triggers) MarshalJSON() ([]byte, error) { - type NoMethod Triggers +func (s *SearchApplicationUserStats) MarshalJSON() ([]byte, error) { + type NoMethod SearchApplicationUserStats raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// TrustedResourceUrlProto: Message containing a string that is safe to -// use in all URL contexts in DOM APIs and HTML documents; even where -// the referred-to resource is interpreted as code, e.g., as the src of -// a script element. -type TrustedResourceUrlProto struct { - // PrivateDoNotAccessOrElseTrustedResourceUrlWrappedValue: IMPORTANT: - // Never set or read this field, even from tests, it is private. See - // documentation at the top of .proto file for programming language - // packages with which to create or read this message. - PrivateDoNotAccessOrElseTrustedResourceUrlWrappedValue string `json:"privateDoNotAccessOrElseTrustedResourceUrlWrappedValue,omitempty"` +type SearchItemsByViewUrlRequest struct { + // DebugOptions: Common debug options. + DebugOptions *DebugOptions `json:"debugOptions,omitempty"` - // ForceSendFields is a list of field names (e.g. - // "PrivateDoNotAccessOrElseTrustedResourceUrlWrappedValue") to + // PageToken: The next_page_token value returned from a previous + // request, if any. + PageToken string `json:"pageToken,omitempty"` + + // ViewUrl: Specify the full view URL to find the corresponding item. + // The maximum length is 2048 characters. + ViewUrl string `json:"viewUrl,omitempty"` + + // ForceSendFields is a list of field names (e.g. "DebugOptions") 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 @@ -24801,8 +8760,7 @@ type TrustedResourceUrlProto struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. - // "PrivateDoNotAccessOrElseTrustedResourceUrlWrappedValue") to include + // NullFields is a list of field names (e.g. "DebugOptions") 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 @@ -24811,19 +8769,24 @@ type TrustedResourceUrlProto struct { NullFields []string `json:"-"` } -func (s *TrustedResourceUrlProto) MarshalJSON() ([]byte, error) { - type NoMethod TrustedResourceUrlProto +func (s *SearchItemsByViewUrlRequest) MarshalJSON() ([]byte, error) { + type NoMethod SearchItemsByViewUrlRequest raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// TypeInfo: Next tag: 2 -type TypeInfo struct { - // VideoInfo: Contains additional video information only if - // document_type is VIDEO. - VideoInfo *VideoInfo `json:"videoInfo,omitempty"` +type SearchItemsByViewUrlResponse struct { + Items []*Item `json:"items,omitempty"` - // ForceSendFields is a list of field names (e.g. "VideoInfo") to + // 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. "Items") 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 @@ -24831,8 +8794,8 @@ type TypeInfo struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "VideoInfo") to include in - // API requests with the JSON null value. By default, fields with empty + // NullFields is a list of field names (e.g. "Items") 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. @@ -24840,29 +8803,21 @@ type TypeInfo struct { NullFields []string `json:"-"` } -func (s *TypeInfo) MarshalJSON() ([]byte, error) { - type NoMethod TypeInfo +func (s *SearchItemsByViewUrlResponse) MarshalJSON() ([]byte, error) { + type NoMethod SearchItemsByViewUrlResponse raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// UniversalPhoneAccess: Universal phone access contains information -// required to dial into a conference using one of a static list of -// phone numbers and a universal PIN. The phone number list is -// distributed separately. -type UniversalPhoneAccess struct { - // Pin: The PIN that users must enter after dialing a universal number. - // The pin consists of only decimal digits and the length may vary, - // though it generally is longer than a PhoneAccess.pin. - Pin string `json:"pin,omitempty"` - - // PstnInfoUrl: This field has the same contents as the - // MeetingSpace.more_join_url field, and is included for compatibility - // reasons. Clients should use the other field instead. This field is - // deprecated and will be removed. - PstnInfoUrl string `json:"pstnInfoUrl,omitempty"` +// SearchQualityMetadata: Additional search quality metadata of the +// item. +type SearchQualityMetadata struct { + // Quality: An indication of the quality of the item, used to influence + // search quality. Value should be between 0.0 (lowest quality) and 1.0 + // (highest quality). The default value is 0.0. + Quality float64 `json:"quality,omitempty"` - // ForceSendFields is a list of field names (e.g. "Pin") to + // ForceSendFields is a list of field names (e.g. "Quality") 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 @@ -24870,8 +8825,8 @@ type UniversalPhoneAccess struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Pin") to include in API - // requests with the JSON null value. By default, fields with empty + // NullFields is a list of field names (e.g. "Quality") 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. @@ -24879,43 +8834,72 @@ type UniversalPhoneAccess struct { NullFields []string `json:"-"` } -func (s *UniversalPhoneAccess) MarshalJSON() ([]byte, error) { - type NoMethod UniversalPhoneAccess +func (s *SearchQualityMetadata) MarshalJSON() ([]byte, error) { + type NoMethod SearchQualityMetadata raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -type UnmappedIdentity struct { - // ExternalIdentity: The resource name for an external user. - ExternalIdentity *Principal `json:"externalIdentity,omitempty"` +func (s *SearchQualityMetadata) UnmarshalJSON(data []byte) error { + type NoMethod SearchQualityMetadata + var s1 struct { + Quality gensupport.JSONFloat64 `json:"quality"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.Quality = float64(s1.Quality) + return nil +} - // ResolutionStatusCode: The resolution status for the external - // identity. - // - // Possible values: - // "CODE_UNSPECIFIED" - Input-only value. Used to list all unmapped - // identities regardless of status. - // "NOT_FOUND" - The unmapped identity was not found in IDaaS, and - // needs to be provided by the user. - // "IDENTITY_SOURCE_NOT_FOUND" - The identity source associated with - // the identity was either not found or deleted. - // "IDENTITY_SOURCE_MISCONFIGURED" - IDaaS does not understand the - // identity source, probably because the schema was modified in a non - // compatible way. - // "TOO_MANY_MAPPINGS_FOUND" - The number of users associated with the - // external identity is too large. - // "INTERNAL_ERROR" - Internal error. - ResolutionStatusCode string `json:"resolutionStatusCode,omitempty"` +// SearchRequest: The search API request. +type SearchRequest struct { + // ContextAttributes: Context attributes for the request which will be + // used to adjust ranking of search results. The maximum number of + // elements is 10. + ContextAttributes []*ContextAttribute `json:"contextAttributes,omitempty"` - // ForceSendFields is a list of field names (e.g. "ExternalIdentity") to - // unconditionally include in API requests. By default, fields with + // DataSourceRestrictions: The sources to use for querying. If not + // specified, all data sources from the current search application are + // used. + DataSourceRestrictions []*DataSourceRestriction `json:"dataSourceRestrictions,omitempty"` + + FacetOptions []*FacetOptions `json:"facetOptions,omitempty"` + + // PageSize: Maximum number of search results to return in one page. + // Valid values are between 1 and 100, inclusive. Default value is 10. + // Minimum value is 50 when results beyond 2000 are requested. + PageSize int64 `json:"pageSize,omitempty"` + + // Query: The raw query string. See supported search operators in the + // Narrow your search with operators + // (https://support.google.com/cloudsearch/answer/6172299) + Query string `json:"query,omitempty"` + + // QueryInterpretationOptions: Options to interpret the user query. + QueryInterpretationOptions *QueryInterpretationOptions `json:"queryInterpretationOptions,omitempty"` + + // RequestOptions: Request options, such as the search application and + // user timezone. + RequestOptions *RequestOptions `json:"requestOptions,omitempty"` + + // SortOptions: The options for sorting the search results + SortOptions *SortOptions `json:"sortOptions,omitempty"` + + // Start: Starting index of the results. + Start int64 `json:"start,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ContextAttributes") + // 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. "ExternalIdentity") to + // NullFields is a list of field names (e.g. "ContextAttributes") 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 @@ -24925,24 +8909,55 @@ type UnmappedIdentity struct { NullFields []string `json:"-"` } -func (s *UnmappedIdentity) MarshalJSON() ([]byte, error) { - type NoMethod UnmappedIdentity +func (s *SearchRequest) MarshalJSON() ([]byte, error) { + type NoMethod SearchRequest raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -type UnreserveItemsRequest struct { - // ConnectorName: The name of connector making this call. Format: - // datasources/{source_id}/connectors/{ID} - ConnectorName string `json:"connectorName,omitempty"` +// SearchResponse: The search API response. +type SearchResponse struct { + // DebugInfo: Debugging information about the response. + DebugInfo *ResponseDebugInfo `json:"debugInfo,omitempty"` - // DebugOptions: Common debug options. - DebugOptions *DebugOptions `json:"debugOptions,omitempty"` + // ErrorInfo: Error information about the response. + ErrorInfo *ErrorInfo `json:"errorInfo,omitempty"` - // Queue: The name of a queue to unreserve items from. - Queue string `json:"queue,omitempty"` + // FacetResults: Repeated facet results. + FacetResults []*FacetResult `json:"facetResults,omitempty"` - // ForceSendFields is a list of field names (e.g. "ConnectorName") to + // HasMoreResults: Whether there are more search results matching the + // query. + HasMoreResults bool `json:"hasMoreResults,omitempty"` + + // QueryInterpretation: Query interpretation result for user query. + // Empty if query interpretation is disabled. + QueryInterpretation *QueryInterpretation `json:"queryInterpretation,omitempty"` + + // ResultCountEstimate: The estimated result count for this query. + ResultCountEstimate int64 `json:"resultCountEstimate,omitempty,string"` + + // ResultCountExact: The exact result count for this query. + ResultCountExact int64 `json:"resultCountExact,omitempty,string"` + + // ResultCounts: Expanded result count information. + ResultCounts *ResultCounts `json:"resultCounts,omitempty"` + + // Results: Results from a search query. + Results []*SearchResult `json:"results,omitempty"` + + // SpellResults: Suggested spelling for the query. + SpellResults []*SpellResult `json:"spellResults,omitempty"` + + // StructuredResults: Structured results for the user query. These + // results are not counted against the page_size. + StructuredResults []*StructuredResult `json:"structuredResults,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "DebugInfo") 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 @@ -24950,25 +8965,47 @@ type UnreserveItemsRequest struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "ConnectorName") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as + // NullFields is a list of field names (e.g. "DebugInfo") 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 *UnreserveItemsRequest) MarshalJSON() ([]byte, error) { - type NoMethod UnreserveItemsRequest +func (s *SearchResponse) MarshalJSON() ([]byte, error) { + type NoMethod SearchResponse raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -type UpdateBccRecipients struct { - BccRecipients []*Recipient `json:"bccRecipients,omitempty"` +// SearchResult: Results containing indexed information for a document. +type SearchResult struct { + // ClusteredResults: If source is clustered, provide list of clustered + // results. There will only be one level of clustered results. If + // current source is not enabled for clustering, this field will be + // empty. + ClusteredResults []*SearchResult `json:"clusteredResults,omitempty"` + + // DebugInfo: Debugging information about this search result. + DebugInfo *ResultDebugInfo `json:"debugInfo,omitempty"` + + // Metadata: Metadata of the search result. + Metadata *Metadata `json:"metadata,omitempty"` + + // Snippet: The concatenation of all snippets (summaries) available for + // this result. + Snippet *Snippet `json:"snippet,omitempty"` + + // Title: Title of the search result. + Title string `json:"title,omitempty"` + + // Url: The URL of the search result. The URL contains a Google redirect + // to the actual item. This URL is signed and shouldn't be changed. + Url string `json:"url,omitempty"` - // ForceSendFields is a list of field names (e.g. "BccRecipients") to + // ForceSendFields is a list of field names (e.g. "ClusteredResults") 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 @@ -24976,42 +9013,39 @@ type UpdateBccRecipients struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "BccRecipients") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ClusteredResults") 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 *UpdateBccRecipients) MarshalJSON() ([]byte, error) { - type NoMethod UpdateBccRecipients +func (s *SearchResult) MarshalJSON() ([]byte, error) { + type NoMethod SearchResult raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -type UpdateBody struct { - // InsertContents: A repeated field that contains a series of content to - // insert into the draft that the user is currently editing. The content - // can contain HTML content or plain text content. - InsertContents []*InsertContent `json:"insertContents,omitempty"` +type ShareScope struct { + // Domain: If scope is DOMAIN, this field contains the dasher domain, + // for example "google.com". + Domain string `json:"domain,omitempty"` + // Scope: The scope to which the content was shared. + // // Possible values: - // "UNSPECIFIED_ACTION_TYPE" - Default value when nothing is set for - // Type. - // "IN_PLACE_INSERT" - Indicates this action is to perform an in-place - // insertion. By default the content is inserted at the current cursor - // position, if there is selected content, it replaces the selected - // content. - // "INSERT_AT_START" - Indicates this action is to perform insert at - // the start of the message body. - // "INSERT_AT_END" - Indicates this action is to perform insert at the - // end of the message body. - // "REPLACE" - Indicates this action is to replace the message body. - Type string `json:"type,omitempty"` + // "UNKNOWN" + // "PRIVATE" - Only the author can view the post. + // "LIMITED" - Viewable only by a set of people. + // "EXTENDED" - Viewable by extended circles. + // "DASHER_DOMAIN" + // "PUBLIC" + Scope string `json:"scope,omitempty"` - // ForceSendFields is a list of field names (e.g. "InsertContents") to + // ForceSendFields is a list of field names (e.g. "Domain") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be @@ -25019,26 +9053,33 @@ type UpdateBody struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "InsertContents") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "Domain") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` } -func (s *UpdateBody) MarshalJSON() ([]byte, error) { - type NoMethod UpdateBody +func (s *ShareScope) MarshalJSON() ([]byte, error) { + type NoMethod ShareScope raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -type UpdateCcRecipients struct { - CcRecipients []*Recipient `json:"ccRecipients,omitempty"` +// Snippet: Snippet of the search result, which summarizes the content +// of the resulting page. +type Snippet struct { + // MatchRanges: The matched ranges in the snippet. + MatchRanges []*MatchRange `json:"matchRanges,omitempty"` + + // Snippet: The snippet of the document. The snippet of the document. + // May contain escaped HTML character that should be unescaped prior to + // rendering. + Snippet string `json:"snippet,omitempty"` - // ForceSendFields is a list of field names (e.g. "CcRecipients") to + // ForceSendFields is a list of field names (e.g. "MatchRanges") 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 @@ -25046,7 +9087,7 @@ type UpdateCcRecipients struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "CcRecipients") to include + // NullFields is a list of field names (e.g. "MatchRanges") 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 @@ -25055,29 +9096,25 @@ type UpdateCcRecipients struct { NullFields []string `json:"-"` } -func (s *UpdateCcRecipients) MarshalJSON() ([]byte, error) { - type NoMethod UpdateCcRecipients +func (s *Snippet) MarshalJSON() ([]byte, error) { + type NoMethod Snippet raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -type UpdateDataSourceRequest struct { - // DebugOptions: Common debug options. - DebugOptions *DebugOptions `json:"debugOptions,omitempty"` - - Source *DataSource `json:"source,omitempty"` +type SortOptions struct { + // OperatorName: The name of the operator corresponding to the field to + // sort on. The corresponding property must be marked as sortable. + OperatorName string `json:"operatorName,omitempty"` - // UpdateMask: Only applies to `settings.datasources.patch` - // (https://developers.google.com/cloud-search/docs/reference/rest/v1/settings.datasources/patch). - // Update mask to control which fields to update. Example field paths: - // `name`, `displayName`. * If `update_mask` is non-empty, then only the - // fields specified in the `update_mask` are updated. * If you specify a - // field in the `update_mask`, but don't specify its value in the - // source, that field is cleared. * If the `update_mask` is not present - // or empty or has the value `*`, then all fields are updated. - UpdateMask string `json:"updateMask,omitempty"` + // SortOrder: Ascending is the default sort order + // + // Possible values: + // "ASCENDING" + // "DESCENDING" + SortOrder string `json:"sortOrder,omitempty"` - // ForceSendFields is a list of field names (e.g. "DebugOptions") to + // ForceSendFields is a list of field names (e.g. "OperatorName") 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 @@ -25085,7 +9122,7 @@ type UpdateDataSourceRequest struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "DebugOptions") to include + // NullFields is a list of field names (e.g. "OperatorName") 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 @@ -25094,69 +9131,71 @@ type UpdateDataSourceRequest struct { NullFields []string `json:"-"` } -func (s *UpdateDataSourceRequest) MarshalJSON() ([]byte, error) { - type NoMethod UpdateDataSourceRequest +func (s *SortOptions) MarshalJSON() ([]byte, error) { + type NoMethod SortOptions raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -type UpdateDraftActionMarkup struct { - // UpdateBccRecipients: If set, replaces the existing Bcc recipients of - // the draft the user is currently editing. - UpdateBccRecipients *UpdateBccRecipients `json:"updateBccRecipients,omitempty"` - - // UpdateBody: A field that contains a series of update actions to - // perform on the draft body that the user is currently editing. - UpdateBody *UpdateBody `json:"updateBody,omitempty"` - - // UpdateCcRecipients: If set, replaces the existing Cc recipients of - // the draft the user is currently editing. - UpdateCcRecipients *UpdateCcRecipients `json:"updateCcRecipients,omitempty"` - - // UpdateSubject: If set, replaces the existing subject of the draft the - // user is currently editing. - UpdateSubject *UpdateSubject `json:"updateSubject,omitempty"` +// Source: Defines sources for the suggest/search APIs. +type Source struct { + // Name: Source name for content indexed by the Indexing API. + Name string `json:"name,omitempty"` - // UpdateToRecipients: If set, replaces the existing To recipients of - // the draft the user is currently editing. - UpdateToRecipients *UpdateToRecipients `json:"updateToRecipients,omitempty"` + // PredefinedSource: Predefined content source for Google Apps. + // + // Possible values: + // "NONE" + // "QUERY_HISTORY" - Suggests queries issued by the user in the past. + // Only valid when used with the suggest API. Ignored when used in the + // query API. + // "PERSON" - Suggests people in the organization. Only valid when + // used with the suggest API. Results in an error when used in the query + // API. + // "GOOGLE_DRIVE" + // "GOOGLE_GMAIL" + // "GOOGLE_SITES" + // "GOOGLE_GROUPS" + // "GOOGLE_CALENDAR" + // "GOOGLE_KEEP" + PredefinedSource string `json:"predefinedSource,omitempty"` - // ForceSendFields is a list of field names (e.g. "UpdateBccRecipients") - // to unconditionally include in API requests. By default, fields with + // ForceSendFields is a list of field names (e.g. "Name") to + // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "UpdateBccRecipients") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "Name") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` } -func (s *UpdateDraftActionMarkup) MarshalJSON() ([]byte, error) { - type NoMethod UpdateDraftActionMarkup +func (s *Source) MarshalJSON() ([]byte, error) { + type NoMethod Source raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -type UpdateSchemaRequest struct { - // DebugOptions: Common debug options. - DebugOptions *DebugOptions `json:"debugOptions,omitempty"` +// SourceConfig: Configurations for a source while processing a Search +// or Suggest request. +type SourceConfig struct { + // CrowdingConfig: The crowding configuration for the source. + CrowdingConfig *SourceCrowdingConfig `json:"crowdingConfig,omitempty"` - // Schema: The new schema for the source. - Schema *Schema `json:"schema,omitempty"` + // ScoringConfig: The scoring configuration for the source. + ScoringConfig *SourceScoringConfig `json:"scoringConfig,omitempty"` - // ValidateOnly: If true, the schema will be checked for validity, but - // will not be registered with the data source, even if valid. - ValidateOnly bool `json:"validateOnly,omitempty"` + // Source: The source for which this configuration is to be used. + Source *Source `json:"source,omitempty"` - // ForceSendFields is a list of field names (e.g. "DebugOptions") to + // ForceSendFields is a list of field names (e.g. "CrowdingConfig") 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 @@ -25164,25 +9203,42 @@ type UpdateSchemaRequest struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "DebugOptions") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "CrowdingConfig") 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 *UpdateSchemaRequest) MarshalJSON() ([]byte, error) { - type NoMethod UpdateSchemaRequest +func (s *SourceConfig) MarshalJSON() ([]byte, error) { + type NoMethod SourceConfig raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -type UpdateSubject struct { - Subject string `json:"subject,omitempty"` +// SourceCrowdingConfig: Set search results crowding limits. Crowding is +// a situation in which multiple results from the same source or host +// "crowd out" other results, diminishing the quality of search for +// users. To foster better search quality and source diversity in search +// results, you can set a condition to reduce repetitive results by +// source. +type SourceCrowdingConfig struct { + // NumResults: Maximum number of results allowed from a datasource in a + // result page as long as results from other sources are not exhausted. + // Value specified must not be negative. A default value is used if this + // value is equal to 0. To disable crowding, set the value greater than + // 100. + NumResults int64 `json:"numResults,omitempty"` + + // NumSuggestions: Maximum number of suggestions allowed from a source. + // No limits will be set on results if this value is less than or equal + // to 0. + NumSuggestions int64 `json:"numSuggestions,omitempty"` - // ForceSendFields is a list of field names (e.g. "Subject") to + // ForceSendFields is a list of field names (e.g. "NumResults") 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 @@ -25190,7 +9246,7 @@ type UpdateSubject struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Subject") to include in + // NullFields is a list of field names (e.g. "NumResults") 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 @@ -25199,16 +9255,28 @@ type UpdateSubject struct { NullFields []string `json:"-"` } -func (s *UpdateSubject) MarshalJSON() ([]byte, error) { - type NoMethod UpdateSubject +func (s *SourceCrowdingConfig) MarshalJSON() ([]byte, error) { + type NoMethod SourceCrowdingConfig raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -type UpdateToRecipients struct { - ToRecipients []*Recipient `json:"toRecipients,omitempty"` +// SourceResultCount: Per source result count information. +type SourceResultCount struct { + // HasMoreResults: Whether there are more search results for this + // source. + HasMoreResults bool `json:"hasMoreResults,omitempty"` + + // ResultCountEstimate: The estimated result count for this source. + ResultCountEstimate int64 `json:"resultCountEstimate,omitempty,string"` + + // ResultCountExact: The exact result count for this source. + ResultCountExact int64 `json:"resultCountExact,omitempty,string"` + + // Source: The source the result count information is associated with. + Source *Source `json:"source,omitempty"` - // ForceSendFields is a list of field names (e.g. "ToRecipients") to + // ForceSendFields is a list of field names (e.g. "HasMoreResults") 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 @@ -25216,35 +9284,34 @@ type UpdateToRecipients struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "ToRecipients") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "HasMoreResults") 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 *UpdateToRecipients) MarshalJSON() ([]byte, error) { - type NoMethod UpdateToRecipients +func (s *SourceResultCount) MarshalJSON() ([]byte, error) { + type NoMethod SourceResultCount raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// UploadItemRef: Represents an upload session reference. This reference -// is created via upload method. This reference is valid for 30 days -// after its creation. Updating of item content may refer to this -// uploaded content via contentDataRef. -type UploadItemRef struct { - // Name: The name of the content reference. The maximum length is 2048 - // characters. - Name string `json:"name,omitempty"` - - // ServerResponse contains the HTTP response code and headers from the - // server. - googleapi.ServerResponse `json:"-"` +// SourceScoringConfig: Set the scoring configuration. This allows +// modifying the ranking of results for a source. +type SourceScoringConfig struct { + // SourceImportance: Importance of the source. + // + // Possible values: + // "DEFAULT" + // "LOW" + // "HIGH" + SourceImportance string `json:"sourceImportance,omitempty"` - // ForceSendFields is a list of field names (e.g. "Name") to + // ForceSendFields is a list of field names (e.g. "SourceImportance") 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 @@ -25252,117 +9319,47 @@ type UploadItemRef struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Name") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "SourceImportance") 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 *UploadItemRef) MarshalJSON() ([]byte, error) { - type NoMethod UploadItemRef +func (s *SourceScoringConfig) MarshalJSON() ([]byte, error) { + type NoMethod SourceScoringConfig raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// UploadMetadata: Annotation metadata for user Upload artifacts. -type UploadMetadata struct { - // AttachmentToken: Opaque token. Clients shall simply pass it back to - // the Backend. There is no guarantee the attachment_token returned on - // subsequent reads is the same even if nothing has changed. This field - // will NOT be saved into storage. - AttachmentToken string `json:"attachmentToken,omitempty"` - - // BackendUploadMetadata: Information about the uploaded attachment that - // is only used in Backend. This field will NOT be sent out of Google. - BackendUploadMetadata *AppsDynamiteSharedBackendUploadMetadata `json:"backendUploadMetadata,omitempty"` - - // ClonedAuthorizedItemId: The "new" secure identifier for Drive files. - // Should be used instead of the deprecated string drive_id field above. - // This should only be set if the upload file has been added to Drive. - // Note that older Drive files that do not have a ResourceKey should - // still use this field, with the resource_key field unset. - ClonedAuthorizedItemId *AuthorizedItemId `json:"clonedAuthorizedItemId,omitempty"` - - // ClonedDriveAction: DriveAction for organizing the cloned version of - // this upload in Drive, if the file has been added to Drive. This field - // is not set if the file has not been added to Drive. Additionally, - // this field is only set when part of a FileResult in a - // ListFilesResponse. - // - // Possible values: - // "DRIVE_ACTION_UNSPECIFIED" - No organize action should be shown. - // "ADD_TO_DRIVE" - Show "Add to Drive" button, for adding file that - // doesn't exist in Drive to Drive. Note that deleted Drive files that - // still exist (i.e. in your Trash) will still be ORGANIZE (this is - // consistent with Gmail Drive attachments). - // "ORGANIZE" - Show "Move" button, for organizing a Drive file the - // user has permission to move. - // "ADD_SHORTCUT" - Show "Add shortcut" button, for adding a shortcut - // to a Drive file the user does not have permission to move. - // "ADD_ANOTHER_SHORTCUT" - Show "Add another shortcut" button, for - // Drive files the user has already created a shortcut to. - ClonedDriveAction string `json:"clonedDriveAction,omitempty"` - - // ClonedDriveId: Reference to a Drive ID, if this upload file has been - // previously cloned to Drive. Note: this is deprecated in favor of the - // AuthorizedItemId below. - ClonedDriveId string `json:"clonedDriveId,omitempty"` - - // ContentName: The original file name for the content, not the full - // path. - ContentName string `json:"contentName,omitempty"` - - // ContentType: Type is from Scotty's best_guess by default: - // http://google3/uploader/agent/scotty_agent.proto?l=51&rcl=140889785 - ContentType string `json:"contentType,omitempty"` - - // DlpMetricsMetadata: The metrics metadata of the Data Loss Prevention - // attachment scan. - DlpMetricsMetadata *AppsDynamiteSharedDlpMetricsMetadata `json:"dlpMetricsMetadata,omitempty"` - - // InternalOnlyComponentSearchInfo: Message component search metadata - // for this upload_metadata (currently used for message highlighting and - // snippeting). For use by Search backend only; clients should get - // upload_metadata search info from Annotation.component_search_info. - // This field is necessary because backend Message keeps UploadMetadata - // in a separate field. Upon converting from backend message to frontend - // message, this field will be copied to - // Annotation.component_search_info while the corresponding - // UploadMetadata is converted into an Annotation. - InternalOnlyComponentSearchInfo *AppsDynamiteSharedMessageComponentSearchInfo `json:"internalOnlyComponentSearchInfo,omitempty"` - - // LatestVirusScanTimestamp: The timestamp of the most recent virus scan - // completed (in microseconds). - LatestVirusScanTimestamp int64 `json:"latestVirusScanTimestamp,omitempty,string"` - - // LocalId: A copy of the LocalId in Annotation. This field is supposed - // to be filled by server only. - LocalId string `json:"localId,omitempty"` - - // OriginalDimension: Original dimension of the content. Only set for - // image attachments. - OriginalDimension *AppsDynamiteSharedDimension `json:"originalDimension,omitempty"` +type SpellResult struct { + // SuggestedQuery: The suggested spelling of the query. + SuggestedQuery string `json:"suggestedQuery,omitempty"` - // VideoReference: Reference to a transcoded video attachment. Only set - // for video attachments. - VideoReference *AppsDynamiteSharedVideoReference `json:"videoReference,omitempty"` + // SuggestedQueryHtml: The sanitized HTML representing the spell + // corrected query that can be used in the UI. This usually has + // language-specific tags to mark up parts of the query that are spell + // checked. + SuggestedQueryHtml *SafeHtmlProto `json:"suggestedQueryHtml,omitempty"` - // VirusScanResult: Result for a virus scan. It's duplicated in the - // above field apps.dynamite.shared.BackendUploadMetadata + // SuggestionType: Suggestion triggered for the current query. // // Possible values: - // "UNKNOWN_VIRUS_SCAN_RESULT" - // "CLEAN" - // "INFECTED" - // "ERROR" - // "POLICY_VIOLATION" - The document violates Google's policy for - // executables and archives. - VirusScanResult string `json:"virusScanResult,omitempty"` - - // ForceSendFields is a list of field names (e.g. "AttachmentToken") to + // "SUGGESTION_TYPE_UNSPECIFIED" - Default spell check type + // "NON_EMPTY_RESULTS_SPELL_SUGGESTION" - Spell suggestion without any + // results changed. The results are still shown for the original query + // (which has non zero / results) with a suggestion for spelling that + // would have results. + // "ZERO_RESULTS_FULL_PAGE_REPLACEMENT" - Spell suggestion triggered + // when original query has no results. When the original query has no + // results, and spell suggestion has results we trigger results for the + // spell corrected query. + SuggestionType string `json:"suggestionType,omitempty"` + + // ForceSendFields is a list of field names (e.g. "SuggestedQuery") 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 @@ -25370,7 +9367,7 @@ type UploadMetadata struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "AttachmentToken") to + // NullFields is a list of field names (e.g. "SuggestedQuery") 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 @@ -25380,81 +9377,22 @@ type UploadMetadata struct { NullFields []string `json:"-"` } -func (s *UploadMetadata) MarshalJSON() ([]byte, error) { - type NoMethod UploadMetadata +func (s *SpellResult) MarshalJSON() ([]byte, error) { + type NoMethod SpellResult raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// UrlMetadata: Annotation metadata for a Weblink. In case of pasted -// link it can qualify to be other types in addition to being a URL - -// like DRIVE_DOC/DRIVE_SHEET and so on. The URL metadata will also be -// present and it's up to the client to decide which metadata to render -// it with. These fields are filled in using page render service. -type UrlMetadata struct { - // Domain: Domain for this url. If it's an IP address the address is - // returned. - Domain string `json:"domain,omitempty"` - - // GwsUrl: The signed GWS URL. - GwsUrl *SafeUrlProto `json:"gwsUrl,omitempty"` - - // GwsUrlExpirationTimestamp: The expiration timestamp for GWS URL, only - // set when gws_url is set. - GwsUrlExpirationTimestamp int64 `json:"gwsUrlExpirationTimestamp,omitempty,string"` - - // ImageHeight: Dimensions of the image: height. This field is string to - // match with page render service response. Deprecated. Use - // int_image_height instead. - ImageHeight string `json:"imageHeight,omitempty"` - - // ImageUrl: Representative image of the website. - ImageUrl string `json:"imageUrl,omitempty"` - - // ImageWidth: Dimensions of the image: width. This field is string to - // match with page render service response. Deprecated. Use - // int_image_height instead. - ImageWidth string `json:"imageWidth,omitempty"` - - // IntImageHeight: Dimensions of the image: height. - IntImageHeight int64 `json:"intImageHeight,omitempty"` - - // IntImageWidth: Dimensions of the image: width. - IntImageWidth int64 `json:"intImageWidth,omitempty"` - - // MimeType: Mime type of the content (Currently mapped from Page Render - // Service ItemType) Note that this is not necessarily the mime type of - // the http resource. For example a text/html from youtube or vimeo may - // actually be classified as a video type. Then we shall mark it as - // video/* since we don't know exactly what type of video it is. - MimeType string `json:"mimeType,omitempty"` - - // RedirectUrl: The stable redirect URL pointing to frontend server. - RedirectUrl *SafeUrlProto `json:"redirectUrl,omitempty"` - - // ShouldNotRender: If the UrlMetadata is missing data for rendering a - // chip. Deprecated. Use Annotation.ChipRenderType instead. - ShouldNotRender bool `json:"shouldNotRender,omitempty"` - - // Snippet: Snippet/small description of the weblink. - Snippet string `json:"snippet,omitempty"` - - // Title: Title of the Weblink. - Title string `json:"title,omitempty"` + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} - // Url: The original URL. - Url *SafeUrlProto `json:"url,omitempty"` +// StartUploadItemRequest: Start upload file request. +type StartUploadItemRequest struct { + // ConnectorName: The name of connector making this call. Format: + // datasources/{source_id}/connectors/{ID} + ConnectorName string `json:"connectorName,omitempty"` - // Possible values: - // "URL_SOURCE_UNKNOWN" - // "SERVER_SUPPLIED_POLICY_VIOLATION" - // "AUTO_DETECTED_PLAIN_TEXT" - Set by the server, when it detects a - // URL in the message text - // "RICH_TEXT" - Set by the client, when the user adds a link as a - // custom hyperlink. Validated by the server and persisted in storage. - UrlSource string `json:"urlSource,omitempty"` + // DebugOptions: Common debug options. + DebugOptions *DebugOptions `json:"debugOptions,omitempty"` - // ForceSendFields is a list of field names (e.g. "Domain") to + // ForceSendFields is a list of field names (e.g. "ConnectorName") 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 @@ -25462,97 +9400,43 @@ type UrlMetadata struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Domain") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as + // NullFields is a list of field names (e.g. "ConnectorName") 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 *UrlMetadata) MarshalJSON() ([]byte, error) { - type NoMethod UrlMetadata +func (s *StartUploadItemRequest) MarshalJSON() ([]byte, error) { + type NoMethod StartUploadItemRequest raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// User: User profile information. This user is not necessarily member -// of a space. -type User struct { - // AvatarUrl: URL for the avatar picture of the User in dynamite - AvatarUrl string `json:"avatarUrl,omitempty"` - - // BlockRelationship: Information about whether the user is blocked by - // requester and/or has blocked requester. - BlockRelationship *AppsDynamiteSharedUserBlockRelationship `json:"blockRelationship,omitempty"` - - // BotInfo: Bot-specific profile information. Leave it empty for human - // users. - BotInfo *BotInfo `json:"botInfo,omitempty"` - - // Deleted: Deleted flag, if true, means User has been - // soft-deleted/purged Deprecated. Use user_account_state field instead. - Deleted bool `json:"deleted,omitempty"` - - // Email: Email ID of the user - Email string `json:"email,omitempty"` - - // FirstName: First or given name of the user - FirstName string `json:"firstName,omitempty"` - - // Gender: Gender of the user - Gender string `json:"gender,omitempty"` - - // Id: UserId - Id *UserId `json:"id,omitempty"` - - // IsAnonymous: Set to true if none of the depending services (Gaia, - // PeopleApi) returns any info for this user. - IsAnonymous bool `json:"isAnonymous,omitempty"` - - // LastName: Last or family name of the user - LastName string `json:"lastName,omitempty"` - - // Name: Non-unique, user-defined display name of the User - Name string `json:"name,omitempty"` +// Status: The `Status` type defines a logical error model that is +// suitable for different programming environments, including REST APIs +// and RPC APIs. It is used by gRPC (https://github.com/grpc). Each +// `Status` message contains three pieces of data: error code, error +// message, and error details. You can find out more about this error +// model and how to work with it in the API Design Guide +// (https://cloud.google.com/apis/design/errors). +type Status struct { + // Code: The status code, which should be an enum value of + // google.rpc.Code. + Code int64 `json:"code,omitempty"` - // OrganizationInfo: Information about whether the user is a consumer - // user, or the GSuite customer that they belong to. - OrganizationInfo *AppsDynamiteSharedOrganizationInfo `json:"organizationInfo,omitempty"` + // Details: A list of messages that carry the error details. There is a + // common set of message types for APIs to use. + Details []googleapi.RawMessage `json:"details,omitempty"` - // PhoneNumber: Phone number(s) of the user - PhoneNumber []*AppsDynamiteSharedPhoneNumber `json:"phoneNumber,omitempty"` + // Message: A developer-facing error message, which should be in + // English. Any user-facing error message should be localized and sent + // in the google.rpc.Status.details field, or localized by the client. + Message string `json:"message,omitempty"` - // UserAccountState: State of user's Gaia Account - // - // Possible values: - // "UNKNOWN_USER_ACCOUNT_STATE" - // "ENABLED" - User has Dynamite enabled. - // "DISABLED" - User doesn't have Dynamite enabled. This includes - // service disabled by admin, or user's account is suspended - // "DELETED" - User account is deleted - // "TEMPORARY_UNAVAILABLE" - Failed to retrieve user's info. Will use - // user's email address as name and first_name. - UserAccountState string `json:"userAccountState,omitempty"` - - // UserProfileVisibility: Visibility of user's Profile - // - // Possible values: - // "UNKNOWN_USER_PROFILE_VISIBILITY" - // "FULL_PROFILE" - Caller has full visibility. - // "PRIMARY_MAIL" - Caller can only see target user's primary email - // from Gaia - // "INVITEE_EMAIL" - Caller can only see the email used to invite the - // target user - // "DELETED_USER" - Caller can only see the target user as a deleted - // user. Email is empty. Names are redacted as "Deleted User". - // "UNKNOWN_USER" - Caller has no visibility to the target user at - // all. Email is empty. Names are redacted as "Unknown User". - // "FAILURE" - Stubby failed. Clients should always retry ASAP - UserProfileVisibility string `json:"userProfileVisibility,omitempty"` - - // ForceSendFields is a list of field names (e.g. "AvatarUrl") to + // 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 @@ -25560,8 +9444,8 @@ type User struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "AvatarUrl") to include in - // API requests with the JSON null value. By default, fields with empty + // 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. @@ -25569,19 +9453,20 @@ type User struct { NullFields []string `json:"-"` } -func (s *User) MarshalJSON() ([]byte, error) { - type NoMethod User +func (s *Status) MarshalJSON() ([]byte, error) { + type NoMethod Status raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// UserActivity: User's single or bulk query activity. This can be a -// logging query or deletion query. -type UserActivity struct { - // QueryActivity: Contains data which needs to be logged/removed. - QueryActivity *QueryActivity `json:"queryActivity,omitempty"` +// StructuredDataObject: A structured data object consisting of named +// properties. +type StructuredDataObject struct { + // Properties: The properties for the object. The maximum number of + // elements is 1000. + Properties []*NamedProperty `json:"properties,omitempty"` - // ForceSendFields is a list of field names (e.g. "QueryActivity") to + // ForceSendFields is a list of field names (e.g. "Properties") 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 @@ -25589,30 +9474,28 @@ type UserActivity struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "QueryActivity") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as + // NullFields is a list of field names (e.g. "Properties") 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 *UserActivity) MarshalJSON() ([]byte, error) { - type NoMethod UserActivity +func (s *StructuredDataObject) MarshalJSON() ([]byte, error) { + type NoMethod StructuredDataObject raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// UserDisplayInfo: Resource for displaying user info -type UserDisplayInfo struct { - // AvatarUrl: The avatar to show for this user - AvatarUrl string `json:"avatarUrl,omitempty"` - - // DisplayName: The name to show for this user - DisplayName string `json:"displayName,omitempty"` +// StructuredResult: Structured results that are returned as part of +// search request. +type StructuredResult struct { + // Person: Representation of a person + Person *Person `json:"person,omitempty"` - // ForceSendFields is a list of field names (e.g. "AvatarUrl") to + // ForceSendFields is a list of field names (e.g. "Person") 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 @@ -25620,8 +9503,8 @@ type UserDisplayInfo struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "AvatarUrl") to include in - // API requests with the JSON null value. By default, fields with empty + // NullFields is a list of field names (e.g. "Person") 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. @@ -25629,190 +9512,107 @@ type UserDisplayInfo struct { NullFields []string `json:"-"` } -func (s *UserDisplayInfo) MarshalJSON() ([]byte, error) { - type NoMethod UserDisplayInfo +func (s *StructuredResult) MarshalJSON() ([]byte, error) { + type NoMethod StructuredResult raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// UserId: Primary key for User resource. -type UserId struct { - // ActingUserId: Optional. Opaque, server-assigned ID of the user - // profile associated with App/user acting on behalf of the human user. - // This is currently only set when a 3P application is acting on the - // user's behalf. - ActingUserId string `json:"actingUserId,omitempty"` - - // Id: Opaque, server-assigned ID of the User. - Id string `json:"id,omitempty"` - - // OriginAppId: Optional. Identifier of the App involved (directly or on - // behalf of a human creator) in creating this message. This is not set - // if the user posted a message directly, but is used in the case of, - // for example, a message being generated by a 1P integration based on a - // user action (creating an event, creating a task etc). This should - // only be used on the BE. For clients, please use the field in the FE - // message proto instead - // (google3/apps/dynamite/v1/frontend/api/message.proto?q=origin_app_id). - OriginAppId *AppId `json:"originAppId,omitempty"` - - // Type: Clients do not need to send UserType to Backend, but Backend - // will always send this field to clients per the following rule: 1. For - // HUMAN Ids, the field is empty but by default .getType() will return - // HUMAN. 2. For BOT Ids, the field is ALWAYS set to BOT. - // - // Possible values: - // "HUMAN" - Notes on HUMAN type: 1) Leaving UserId.UserType field - // empty will return HUMAN as default value. This is expected because - // all the existing UserIds are without explicitly setting UserType, - // most of which are HUMAN Ids. For Bot Ids we will always set BOT in - // UserType field. 2) DO NOT explicitly set HUMAN as type. This is a - // proto2 issue, that a UserId with explicitly set default value HUMAN - // as type is NOT equal to an id without setting the field. aka. UserId - // id1 = UserId.newBuilder() - // .setId("dummy").setType(UserType.HUMAN).build(); UserId id2 = - // UserId.newBuilder().setId("dummy").build(); - // AssertThat(id1).isNotEqual(id2); - // AssertThat(id2.getType()).isEqualTo(UserType.HUMAN); - // "BOT" - Type string `json:"type,omitempty"` +// SuggestRequest: Request of suggest API. +type SuggestRequest struct { + // DataSourceRestrictions: The sources to use for suggestions. If not + // specified, the data sources are taken from the current search + // application. NOTE: Suggestions are only supported for the following + // sources: * Third-party data sources * PredefinedSource.PERSON * + // PredefinedSource.GOOGLE_DRIVE + DataSourceRestrictions []*DataSourceRestriction `json:"dataSourceRestrictions,omitempty"` - // ForceSendFields is a list of field names (e.g. "ActingUserId") 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. + // Query: Partial query for which autocomplete suggestions will be + // shown. For example, if the query is "sea", then the server might + // return "season", "search", "seagull" and so on. + Query string `json:"query,omitempty"` + + // RequestOptions: Request options, such as the search application and + // user timezone. + RequestOptions *RequestOptions `json:"requestOptions,omitempty"` + + // ForceSendFields is a list of field names (e.g. + // "DataSourceRestrictions") 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. "ActingUserId") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "DataSourceRestrictions") + // 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 *UserId) MarshalJSON() ([]byte, error) { - type NoMethod UserId +func (s *SuggestRequest) MarshalJSON() ([]byte, error) { + type NoMethod SuggestRequest raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// UserInfo: Contains info regarding the updater of an Activity Feed -// item. Next Id: 8 -type UserInfo struct { - // DriveNotificationAvatarUrl: Avatar url of the user who triggered the - // Drive Notification email. This field will be populated if we can - // extract such information from the Drive Notification email. This - // should only be used to fetch user avatars when updater_to_show_email - // is not populated. This field is not set for non-Drive Notification - // items. - DriveNotificationAvatarUrl string `json:"driveNotificationAvatarUrl,omitempty"` +// SuggestResponse: Response of the suggest API. +type SuggestResponse struct { + // SuggestResults: List of suggestions. + SuggestResults []*SuggestResult `json:"suggestResults,omitempty"` - // UpdaterCountDisplayType: Describes how updater_count_to_show should - // be used. - // - // Possible values: - // "UPDATER_COUNT_DISPLAY_TYPE_UNSPECIFIED" - // "NO_DISPLAY_COUNT" - No additional updaters where involved. Shows - // up in clients as "$USERNAME replied". - // "EXACT_COUNT" - A precise updater count is known and the value set - // in updater_count_to_show should be used. If set, - // updater_count_to_show is set to the total number of updaters minus - // the one set in updater_to_show. Shows up in clients as "$USERNAME and - // $NUM others replied". - // "NONZERO_COUNT" - A precise updater count could not be calculated, - // but there is at least one. Any value set in updater_count_to_show - // should NOT be used. Shows up in clients as "$USERNAME and others - // replied". - UpdaterCountDisplayType string `json:"updaterCountDisplayType,omitempty"` - - // UpdaterCountToShow: The number of updaters for clients to show - // depending on UpdaterCountDisplayType. - UpdaterCountToShow int64 `json:"updaterCountToShow,omitempty"` - - // UpdaterToShowEmail: The email of the updater for clients to show used - // for Gmail items. For Drive Notifications, this is the email of the - // user who triggered the Drive Notification email. This field will be - // populated if we can extract such information from the Drive - // Notification email. This is not the actual sender of the email, as - // the sender is always comments-noreply@docs.google.com. - UpdaterToShowEmail string `json:"updaterToShowEmail,omitempty"` - - // UpdaterToShowGaiaId: The gaia id of the updater for clients to show - // used for Gmail items. If the updater is an external user, the email - // field below should be populated. - UpdaterToShowGaiaId int64 `json:"updaterToShowGaiaId,omitempty,string"` - - // UpdaterToShowName: The display name of the updater for clients to - // show used for Gmail items. For non-Drive Notification items, this - // field will always be populated. If the display name cannot be found - // for the user, the fallback string will be the email address. For - // Drive Notification items, this is the name of the user who triggered - // the Drive notification email. This field will be populated if we can - // extract such information from the Drive Notification email. If the - // name cannot be extracted, then the email will be the fallback string, - // which is used as the display name text in the UI when needed. This is - // not the actual sender of the email, as the sender is always - // comments-noreply@docs.google.com. - UpdaterToShowName string `json:"updaterToShowName,omitempty"` - - // UpdaterToShowUserId: The updater for clients to show used for - // Dynamite Chat items. - UpdaterToShowUserId *UserId `json:"updaterToShowUserId,omitempty"` + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. - // "DriveNotificationAvatarUrl") 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 is a list of field names (e.g. "SuggestResults") 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. - // "DriveNotificationAvatarUrl") to include in API requests with the - // JSON null value. By default, fields with empty values are omitted - // from API requests. However, any field with an empty value appearing - // in NullFields will be sent to the server as null. It is an error if a - // field in this list has a non-empty value. This may be used to include - // null fields in Patch requests. + // NullFields is a list of field names (e.g. "SuggestResults") 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 *UserInfo) MarshalJSON() ([]byte, error) { - type NoMethod UserInfo +func (s *SuggestResponse) MarshalJSON() ([]byte, error) { + type NoMethod SuggestResponse raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// UserMentionData: Person metadata, for USER_MENTION segments. Should -// always contain at least one of user_gaia_id, user_id, email or user. -// The exact set of populated fields may differ depending on the context -// and the level in the serving stack; for example, emails will be -// elided on the viewing path. But as a general rule, a proto having any -// one of the four is valid, subject to the standard constraints of the -// applied annotations -- that is, communication between servers and -// clients will ignore jspb.ignore fields, and communication between -// servers and other servers (or between servers and storage) will -// ignore client_only fields. For more on the annotations, see the -// comments in social/common/segment_annotations.proto -type UserMentionData struct { - Email string `json:"email,omitempty"` +// SuggestResult: One suggestion result. +type SuggestResult struct { + // PeopleSuggestion: This is present when the suggestion indicates a + // person. It contains more information about the person - like their + // email ID, name etc. + PeopleSuggestion *PeopleSuggestion `json:"peopleSuggestion,omitempty"` - // User: If the principal is backed by a gaia id, DO NOT use this field. - // Use user_gaia_id/user_id fields instead. - User *PrincipalProto `json:"user,omitempty"` + // QuerySuggestion: This field will be present if the suggested query is + // a word/phrase completion. + QuerySuggestion *QuerySuggestion `json:"querySuggestion,omitempty"` - // UserGaiaId: An unobfuscated gaia ID: - UserGaiaId int64 `json:"userGaiaId,omitempty,string"` + // Source: The source of the suggestion. + Source *Source `json:"source,omitempty"` - // UserId: An obfuscated gaia ID: - UserId string `json:"userId,omitempty"` + // SuggestedQuery: The suggested query that will be used for search, + // when the user clicks on the suggestion + SuggestedQuery string `json:"suggestedQuery,omitempty"` - // ForceSendFields is a list of field names (e.g. "Email") to + // ForceSendFields is a list of field names (e.g. "PeopleSuggestion") 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 @@ -25820,70 +9620,83 @@ type UserMentionData struct { // 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 is a list of field names (e.g. "PeopleSuggestion") 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 *UserMentionData) MarshalJSON() ([]byte, error) { - type NoMethod UserMentionData +func (s *SuggestResult) MarshalJSON() ([]byte, error) { + type NoMethod SuggestResult raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// UserMentionMetadata: Annotation metadata for user mentions (+/@/-). -type UserMentionMetadata struct { - // DisplayName: Display name of the mentioned user. This field should - // remain empty when clients resolve a UserMention annotation. It will - // be filled in when a UserMention is generated by the Integration - // Server. - DisplayName string `json:"displayName,omitempty"` +// TextOperatorOptions: Used to provide a search operator for text +// properties. This is optional. Search operators let users restrict the +// query to specific fields relevant to the type of item being searched. +type TextOperatorOptions struct { + // ExactMatchWithOperator: If true, the text value is tokenized as one + // atomic value in operator searches and facet matches. For example, if + // the operator name is "genre" and the value is "science-fiction" the + // query restrictions "genre:science" and "genre:fiction" doesn't match + // the item; "genre:science-fiction" does. Text value matching is + // case-sensitive and does not remove special characters. If false, the + // text is tokenized. For example, if the value is "science-fiction" the + // queries "genre:science" and "genre:fiction" matches the item. + ExactMatchWithOperator bool `json:"exactMatchWithOperator,omitempty"` + + // OperatorName: Indicates the operator name required in the query in + // order to isolate the text property. For example, if operatorName is + // *subject* and the property's name is *subjectLine*, then queries like + // *subject:* show results only where the value of the property + // named *subjectLine* matches **. By contrast, a search that + // uses the same ** without an operator returns all items where + // ** matches the value of any text properties or text within the + // content field for the item. The operator name can only contain + // lowercase letters (a-z). The maximum length is 32 characters. + OperatorName string `json:"operatorName,omitempty"` - // Gender: Gender of the mentioned user. One of "female", "male" or - // "other". Used for choosing accurate translations for strings that - // contain the UserMention, when these need to be constructed (e.g. task - // assignment update message). This field should remain empty when - // clients resolve a UserMention. It will be filled in when a - // UserMention is generated by the Integration Server. - Gender string `json:"gender,omitempty"` + // ForceSendFields is a list of field names (e.g. + // "ExactMatchWithOperator") 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:"-"` - // Id: To be deprecated. Use invitee_info field instead. ID of the User - // mentioned. This field should remain empty when type == MENTION_ALL. - Id *UserId `json:"id,omitempty"` + // NullFields is a list of field names (e.g. "ExactMatchWithOperator") + // 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:"-"` +} - // InviteeInfo: Invitee UserId and email used when mentioned. This field - // should remain empty when type == MENTION_ALL. Invitee_info.email is - // only used when a user is @-mentioned with an email address, and it - // will be empty when clients get messages from Backend. - InviteeInfo *InviteeInfo `json:"inviteeInfo,omitempty"` +func (s *TextOperatorOptions) MarshalJSON() ([]byte, error) { + type NoMethod TextOperatorOptions + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} - // Possible values: - // "TYPE_UNSPECIFIED" - Default value for the enum. DO NOT USE. - // "INVITE" - An @mention that invites a new member into the space - // "UNINVITE" - DEPRECATED: An @mention that removes a member from a - // space. Support for this has been removed. - // "MENTION" - An @mention of an existing member in the space. - // "MENTION_ALL" - An @mention of all members in the space. - // "FAILED_TO_ADD" - Server-generated user mention, for clients to - // strikethrough. - Type string `json:"type,omitempty"` +// TextPropertyOptions: The options for text properties. +type TextPropertyOptions struct { + // OperatorOptions: If set, describes how the property should be used as + // a search operator. + OperatorOptions *TextOperatorOptions `json:"operatorOptions,omitempty"` - // UserMentionError: Specific reason for the user mention failing, for - // fine-grained processing by clients (i.e. specific error message for - // space limit exceeded case) IMPORTANT: Set this only for FAILED_TO_ADD - // case. - // - // Possible values: - // "USER_MENTION_ERROR_UNSPECIFIED" - // "MEMBERSHIP_LIMIT_EXCEEDED" - Failure caused by adding user to a - // room that is full - UserMentionError string `json:"userMentionError,omitempty"` + // RetrievalImportance: Indicates the search quality importance of the + // tokens within the field when used for retrieval. + RetrievalImportance *RetrievalImportance `json:"retrievalImportance,omitempty"` - // ForceSendFields is a list of field names (e.g. "DisplayName") to + // ForceSendFields is a list of field names (e.g. "OperatorOptions") 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 @@ -25891,29 +9704,29 @@ type UserMentionMetadata struct { // 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 is a list of field names (e.g. "OperatorOptions") 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 *UserMentionMetadata) MarshalJSON() ([]byte, error) { - type NoMethod UserMentionMetadata +func (s *TextPropertyOptions) MarshalJSON() ([]byte, error) { + type NoMethod TextPropertyOptions raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -type VPCSettings struct { - // Project: The resource name of the GCP Project to be used for VPC SC - // policy check. VPC security settings on this project will be honored - // for Cloud Search APIs after project_name has been updated through - // CustomerService. Format: projects/{project_id} - Project string `json:"project,omitempty"` +// TextValues: List of text values. +type TextValues struct { + // Values: The maximum allowable length for text values is 2048 + // characters. + Values []string `json:"values,omitempty"` - // ForceSendFields is a list of field names (e.g. "Project") to + // ForceSendFields is a list of field names (e.g. "Values") 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 @@ -25921,8 +9734,8 @@ type VPCSettings struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Project") to include in - // API requests with the JSON null value. By default, fields with empty + // NullFields is a list of field names (e.g. "Values") 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. @@ -25930,27 +9743,32 @@ type VPCSettings struct { NullFields []string `json:"-"` } -func (s *VPCSettings) MarshalJSON() ([]byte, error) { - type NoMethod VPCSettings +func (s *TextValues) MarshalJSON() ([]byte, error) { + type NoMethod TextValues raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// Value: Definition of a single value with generic type. -type Value struct { - BooleanValue bool `json:"booleanValue,omitempty"` +type ThirdPartyGenericCard struct { + // CardId: Unique identifier for the card. + CardId string `json:"cardId,omitempty"` - DateValue *Date `json:"dateValue,omitempty"` + // Category: Category that the card belongs to. + Category string `json:"category,omitempty"` - DoubleValue float64 `json:"doubleValue,omitempty"` + // Content: [Required] Card content. + Content *Content `json:"content,omitempty"` - IntegerValue int64 `json:"integerValue,omitempty,string"` + // Context: [Required] Context where the card should be triggered. + Context *Context `json:"context,omitempty"` - StringValue string `json:"stringValue,omitempty"` + // IsDismissible: Whether the card can be dismissed. + IsDismissible bool `json:"isDismissible,omitempty"` - TimestampValue string `json:"timestampValue,omitempty"` + // Priority: Priority of the card, where 0 is the highest priority. + Priority int64 `json:"priority,omitempty"` - // ForceSendFields is a list of field names (e.g. "BooleanValue") to + // ForceSendFields is a list of field names (e.g. "CardId") 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 @@ -25958,50 +9776,89 @@ type Value struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "BooleanValue") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as + // NullFields is a list of field names (e.g. "CardId") 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 *Value) MarshalJSON() ([]byte, error) { - type NoMethod Value +func (s *ThirdPartyGenericCard) MarshalJSON() ([]byte, error) { + type NoMethod ThirdPartyGenericCard raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -func (s *Value) UnmarshalJSON(data []byte) error { - type NoMethod Value - var s1 struct { - DoubleValue gensupport.JSONFloat64 `json:"doubleValue"` - *NoMethod - } - s1.NoMethod = (*NoMethod)(s) - if err := json.Unmarshal(data, &s1); err != nil { - return err - } - s.DoubleValue = float64(s1.DoubleValue) - return nil -} +// TimestampOperatorOptions: Used to provide a search operator for +// timestamp properties. This is optional. Search operators let users +// restrict the query to specific fields relevant to the type of item +// being searched. +type TimestampOperatorOptions struct { + // GreaterThanOperatorName: Indicates the operator name required in the + // query in order to isolate the timestamp property using the + // greater-than operator. For example, if greaterThanOperatorName is + // *closedafter* and the property's name is *closeDate*, then queries + // like *closedafter:* show results only where the value of the + // property named *closeDate* is later than **. The operator name + // can only contain lowercase letters (a-z). The maximum length is 32 + // characters. + GreaterThanOperatorName string `json:"greaterThanOperatorName,omitempty"` -type ValueFilter struct { - // OperatorName: The `operator_name` applied to the query, such as - // *price_greater_than*. The filter can work against both types of - // filters defined in the schema for your data source: 1. - // `operator_name`, where the query filters results by the property that - // matches the value. 2. `greater_than_operator_name` or - // `less_than_operator_name` in your schema. The query filters the - // results for the property values that are greater than or less than - // the supplied value in the query. + // LessThanOperatorName: Indicates the operator name required in the + // query in order to isolate the timestamp property using the less-than + // operator. For example, if lessThanOperatorName is *closedbefore* and + // the property's name is *closeDate*, then queries like + // *closedbefore:* show results only where the value of the + // property named *closeDate* is earlier than **. The operator + // name can only contain lowercase letters (a-z). The maximum length is + // 32 characters. + LessThanOperatorName string `json:"lessThanOperatorName,omitempty"` + + // OperatorName: Indicates the operator name required in the query in + // order to isolate the timestamp property. For example, if operatorName + // is *closedon* and the property's name is *closeDate*, then queries + // like *closedon:* show results only where the value of the + // property named *closeDate* matches **. By contrast, a search + // that uses the same ** without an operator returns all items + // where ** matches the value of any String properties or text + // within the content field for the item. The operator name can only + // contain lowercase letters (a-z). The maximum length is 32 characters. OperatorName string `json:"operatorName,omitempty"` - // Value: The value to be compared with. - Value *Value `json:"value,omitempty"` + // ForceSendFields is a list of field names (e.g. + // "GreaterThanOperatorName") 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:"-"` - // ForceSendFields is a list of field names (e.g. "OperatorName") to + // NullFields is a list of field names (e.g. "GreaterThanOperatorName") + // 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 *TimestampOperatorOptions) MarshalJSON() ([]byte, error) { + type NoMethod TimestampOperatorOptions + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// TimestampPropertyOptions: The options for timestamp properties. +type TimestampPropertyOptions struct { + // OperatorOptions: If set, describes how the timestamp should be used + // as a search operator. + OperatorOptions *TimestampOperatorOptions `json:"operatorOptions,omitempty"` + + // ForceSendFields is a list of field names (e.g. "OperatorOptions") 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 @@ -26009,35 +9866,27 @@ type ValueFilter struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "OperatorName") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "OperatorOptions") 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 *ValueFilter) MarshalJSON() ([]byte, error) { - type NoMethod ValueFilter +func (s *TimestampPropertyOptions) MarshalJSON() ([]byte, error) { + type NoMethod TimestampPropertyOptions raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -type VideoCallMetadata struct { - // MeetingSpace: Thor meeting space. - MeetingSpace *MeetingSpace `json:"meetingSpace,omitempty"` - - // ShouldNotRender: If this field is set to true, server should still - // contact external backends to get metadata for search but clients - // should not render this chip. - ShouldNotRender bool `json:"shouldNotRender,omitempty"` - - // WasCreatedInCurrentGroup: Whether this meeting space was created via - // Dynamite in this Dynamite group. - WasCreatedInCurrentGroup bool `json:"wasCreatedInCurrentGroup,omitempty"` +// TimestampValues: List of timestamp values. +type TimestampValues struct { + Values []string `json:"values,omitempty"` - // ForceSendFields is a list of field names (e.g. "MeetingSpace") to + // ForceSendFields is a list of field names (e.g. "Values") 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 @@ -26045,28 +9894,28 @@ type VideoCallMetadata struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "MeetingSpace") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as + // NullFields is a list of field names (e.g. "Values") 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 *VideoCallMetadata) MarshalJSON() ([]byte, error) { - type NoMethod VideoCallMetadata +func (s *TimestampValues) MarshalJSON() ([]byte, error) { + type NoMethod TimestampValues raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// VideoInfo: Next tag: 2 -type VideoInfo struct { - // Duration: Duration of the video in milliseconds. This field can be - // absent for recently uploaded video or inaccurate sometimes. - Duration int64 `json:"duration,omitempty"` +// TypeInfo: Next tag: 2 +type TypeInfo struct { + // VideoInfo: Contains additional video information only if + // document_type is VIDEO. + VideoInfo *VideoInfo `json:"videoInfo,omitempty"` - // ForceSendFields is a list of field names (e.g. "Duration") to + // ForceSendFields is a list of field names (e.g. "VideoInfo") 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 @@ -26074,7 +9923,7 @@ type VideoInfo struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Duration") to include in + // NullFields is a list of field names (e.g. "VideoInfo") 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 @@ -26083,28 +9932,35 @@ type VideoInfo struct { NullFields []string `json:"-"` } -func (s *VideoInfo) MarshalJSON() ([]byte, error) { - type NoMethod VideoInfo +func (s *TypeInfo) MarshalJSON() ([]byte, error) { + type NoMethod TypeInfo raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// VoicePhoneNumber: Represents both long and short phone number that -// can be called or texted. Short telephone numbers are used to reach -// local services. Short numbers and their purpose differ from country -// to country. These numbers in US are in the form of N11 which is a -// three-digit abbreviated dialing telephone number. -type VoicePhoneNumber struct { - // E164: E.164 formatted full phone number with leading +. This field - // also represents encoded form of short telephone numbers in E.164 - // format. e.g. "911" is encoded as "+1911". - E164 string `json:"e164,omitempty"` +type UnmappedIdentity struct { + // ExternalIdentity: The resource name for an external user. + ExternalIdentity *Principal `json:"externalIdentity,omitempty"` - // I18nData: Additional data that could be added using the - // libphonenumber API. - I18nData *VoicePhoneNumberI18nData `json:"i18nData,omitempty"` + // ResolutionStatusCode: The resolution status for the external + // identity. + // + // Possible values: + // "CODE_UNSPECIFIED" - Input-only value. Used to list all unmapped + // identities regardless of status. + // "NOT_FOUND" - The unmapped identity was not found in IDaaS, and + // needs to be provided by the user. + // "IDENTITY_SOURCE_NOT_FOUND" - The identity source associated with + // the identity was either not found or deleted. + // "IDENTITY_SOURCE_MISCONFIGURED" - IDaaS does not understand the + // identity source, probably because the schema was modified in a non + // compatible way. + // "TOO_MANY_MAPPINGS_FOUND" - The number of users associated with the + // external identity is too large. + // "INTERNAL_ERROR" - Internal error. + ResolutionStatusCode string `json:"resolutionStatusCode,omitempty"` - // ForceSendFields is a list of field names (e.g. "E164") to + // ForceSendFields is a list of field names (e.g. "ExternalIdentity") 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 @@ -26112,61 +9968,34 @@ type VoicePhoneNumber struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "E164") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ExternalIdentity") 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 *VoicePhoneNumber) MarshalJSON() ([]byte, error) { - type NoMethod VoicePhoneNumber +func (s *UnmappedIdentity) MarshalJSON() ([]byte, error) { + type NoMethod UnmappedIdentity raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -type VoicePhoneNumberI18nData struct { - // CountryCode: The country calling code for this number, as defined by - // the ITU. For example, this would be 1 for NANPA countries, and 33 for - // France (for more info see - // i18n.phonenumbers.PhoneNumber.country_code). - CountryCode int64 `json:"countryCode,omitempty"` - - // InternationalNumber: Display number formatted using the INTERNATIONAL - // format. - InternationalNumber string `json:"internationalNumber,omitempty"` - - // IsValid: When present, indicates the number is valid according to the - // libphonenumber's isValidNumber API (see - // https://code.google.com/p/libphonenumber/). - IsValid bool `json:"isValid,omitempty"` +type UnreserveItemsRequest struct { + // ConnectorName: The name of connector making this call. Format: + // datasources/{source_id}/connectors/{ID} + ConnectorName string `json:"connectorName,omitempty"` - // NationalNumber: Display number formatted using the NATIONAL format. - NationalNumber string `json:"nationalNumber,omitempty"` + // DebugOptions: Common debug options. + DebugOptions *DebugOptions `json:"debugOptions,omitempty"` - // RegionCode: A region (country, territory, continent, etc), as defined - // by Unicode's "CLDR", itself based on ISO 3166 (UN country codes). For - // details, see - // https://www.corp.google.com/~engdocs/java/com/google/i18n/identifiers/RegionCode.html - RegionCode string `json:"regionCode,omitempty"` + // Queue: The name of a queue to unreserve items from. + Queue string `json:"queue,omitempty"` - // ValidationResult: When set to a non-default value, indicates the - // validation reason that is set when phone number is invalid (is_valid - // is false). - // - // Possible values: - // "UNKNOWN" - // "IS_POSSIBLE" - // "INVALID_COUNTRY_CODE" - // "TOO_SHORT" - // "TOO_LONG" - // "IS_POSSIBLE_LOCAL_ONLY" - // "INVALID_LENGTH" - ValidationResult string `json:"validationResult,omitempty"` - - // ForceSendFields is a list of field names (e.g. "CountryCode") to + // ForceSendFields is a list of field names (e.g. "ConnectorName") 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 @@ -26174,7 +10003,7 @@ type VoicePhoneNumberI18nData struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "CountryCode") to include + // NullFields is a list of field names (e.g. "ConnectorName") 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 @@ -26183,25 +10012,29 @@ type VoicePhoneNumberI18nData struct { NullFields []string `json:"-"` } -func (s *VoicePhoneNumberI18nData) MarshalJSON() ([]byte, error) { - type NoMethod VoicePhoneNumberI18nData +func (s *UnreserveItemsRequest) MarshalJSON() ([]byte, error) { + type NoMethod UnreserveItemsRequest raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// WhiteboardInfo: Information on a whiteboard attached to an active -// conference. A whiteboard is a Jam document. -type WhiteboardInfo struct { - // Id: The Cosmo Id of the whiteboard document (Jam). - Id string `json:"id,omitempty"` +type UpdateDataSourceRequest struct { + // DebugOptions: Common debug options. + DebugOptions *DebugOptions `json:"debugOptions,omitempty"` - // Title: Title of the whiteboard document. - Title string `json:"title,omitempty"` + Source *DataSource `json:"source,omitempty"` - // Uri: The uri for whiteboard document. - Uri string `json:"uri,omitempty"` + // UpdateMask: Only applies to `settings.datasources.patch` + // (https://developers.google.com/cloud-search/docs/reference/rest/v1/settings.datasources/patch). + // Update mask to control which fields to update. Example field paths: + // `name`, `displayName`. * If `update_mask` is non-empty, then only the + // fields specified in the `update_mask` are updated. * If you specify a + // field in the `update_mask`, but don't specify its value in the + // source, that field is cleared. * If the `update_mask` is not present + // or empty or has the value `*`, then all fields are updated. + UpdateMask string `json:"updateMask,omitempty"` - // ForceSendFields is a list of field names (e.g. "Id") to + // ForceSendFields is a list of field names (e.g. "DebugOptions") 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 @@ -26209,60 +10042,33 @@ type WhiteboardInfo struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Id") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as + // NullFields is a list of field names (e.g. "DebugOptions") 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 *WhiteboardInfo) MarshalJSON() ([]byte, error) { - type NoMethod WhiteboardInfo +func (s *UpdateDataSourceRequest) MarshalJSON() ([]byte, error) { + type NoMethod UpdateDataSourceRequest raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -type WidgetMarkup struct { - // Buttons: buttons is also oneof data and only one of these fields - // should be set. - Buttons []*Button `json:"buttons,omitempty"` - - DateTimePicker *DateTimePicker `json:"dateTimePicker,omitempty"` - - Divider *Divider `json:"divider,omitempty"` - - Grid *Grid `json:"grid,omitempty"` - - // HorizontalAlignment: The horizontal alignment of this widget. - // - // Possible values: - // "HORIZONTAL_ALIGNMENT_UNSPECIFIED" - // "START" - // "CENTER" - // "END" - HorizontalAlignment string `json:"horizontalAlignment,omitempty"` - - Image *Image `json:"image,omitempty"` - - ImageKeyValue *ImageKeyValue `json:"imageKeyValue,omitempty"` - - KeyValue *KeyValue `json:"keyValue,omitempty"` - - // Menu: Input Widgets - Menu *Menu `json:"menu,omitempty"` - - SelectionControl *SelectionControl `json:"selectionControl,omitempty"` - - TextField *TextField `json:"textField,omitempty"` +type UpdateSchemaRequest struct { + // DebugOptions: Common debug options. + DebugOptions *DebugOptions `json:"debugOptions,omitempty"` - TextKeyValue *TextKeyValue `json:"textKeyValue,omitempty"` + // Schema: The new schema for the source. + Schema *Schema `json:"schema,omitempty"` - // TextParagraph: Read-only Widgets - TextParagraph *TextParagraph `json:"textParagraph,omitempty"` + // ValidateOnly: If true, the schema will be checked for validity, but + // will not be registered with the data source, even if valid. + ValidateOnly bool `json:"validateOnly,omitempty"` - // ForceSendFields is a list of field names (e.g. "Buttons") to + // ForceSendFields is a list of field names (e.g. "DebugOptions") 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 @@ -26270,35 +10076,35 @@ type WidgetMarkup struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Buttons") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as + // NullFields is a list of field names (e.g. "DebugOptions") 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 *WidgetMarkup) MarshalJSON() ([]byte, error) { - type NoMethod WidgetMarkup +func (s *UpdateSchemaRequest) MarshalJSON() ([]byte, error) { + type NoMethod UpdateSchemaRequest raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// WonderCardDelete: Message delete history record extension that -// exports /wonder/message_mapping/{vertical} attribute of deleted -// messages which have any smartmail label (eg. ^cob_sm_invoice). -// go/how-dd-card-deletion -type WonderCardDelete struct { - // MessageMappings: Contains <{@code WonderCardType} enum value, value - // of /wonder/message_mapping/{vertical} attribute of deleted message> - // pairs. - MessageMappings map[string]WonderMessageMapping `json:"messageMappings,omitempty"` +// UploadItemRef: Represents an upload session reference. This reference +// is created via upload method. This reference is valid for 30 days +// after its creation. Updating of item content may refer to this +// uploaded content via contentDataRef. +type UploadItemRef struct { + // Name: The name of the content reference. The maximum length is 2048 + // characters. + Name string `json:"name,omitempty"` - // MsgId: Message ID of the original deleted message - MsgId uint64 `json:"msgId,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. "MessageMappings") to + // ForceSendFields is a list of field names (e.g. "Name") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be @@ -26306,65 +10112,28 @@ type WonderCardDelete struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "MessageMappings") 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 *WonderCardDelete) MarshalJSON() ([]byte, error) { - type NoMethod WonderCardDelete - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// WonderMessageMapping: Card mapping attached to original message as an -// attribute stored at /wonder/message_mapping/{vertical} Next ID: 2 -type WonderMessageMapping struct { - // WonderCardMessageId: List of wonder card (client-generated) message - // IDs generated based on the original message. - WonderCardMessageId []string `json:"wonderCardMessageId,omitempty"` - - // ForceSendFields is a list of field names (e.g. "WonderCardMessageId") - // 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. "WonderCardMessageId") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "Name") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` } -func (s *WonderMessageMapping) MarshalJSON() ([]byte, error) { - type NoMethod WonderMessageMapping +func (s *UploadItemRef) MarshalJSON() ([]byte, error) { + type NoMethod UploadItemRef raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// WrappedResourceKey: A wrapper around a raw resource key. The secret -// should never be logged, and this proto annotates those secret fields -// to ensure that they are not. Clients are encouraged to use this proto -// rather than defining their own, to ensure that secrets are correctly -// annotated. -type WrappedResourceKey struct { - // ResourceKey: Resource key of the Drive item. This field should be - // unset if, depending on the context, the item does not have a resource - // key, or if none was specified. This must never be logged. - ResourceKey string `json:"resourceKey,omitempty"` +// UserActivity: User's single or bulk query activity. This can be a +// logging query or deletion query. +type UserActivity struct { + // QueryActivity: Contains data which needs to be logged/removed. + QueryActivity *QueryActivity `json:"queryActivity,omitempty"` - // ForceSendFields is a list of field names (e.g. "ResourceKey") to + // ForceSendFields is a list of field names (e.g. "QueryActivity") 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 @@ -26372,7 +10141,7 @@ type WrappedResourceKey struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "ResourceKey") to include + // NullFields is a list of field names (e.g. "QueryActivity") 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 @@ -26381,30 +10150,20 @@ type WrappedResourceKey struct { NullFields []string `json:"-"` } -func (s *WrappedResourceKey) MarshalJSON() ([]byte, error) { - type NoMethod WrappedResourceKey +func (s *UserActivity) MarshalJSON() ([]byte, error) { + type NoMethod UserActivity raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// YouTubeBroadcastSessionInfo: Information about a YouTube broadcast -// session. -type YouTubeBroadcastSessionInfo struct { - // BroadcastStats: Current broadcast session's statistics. - BroadcastStats *YouTubeBroadcastStats `json:"broadcastStats,omitempty"` - - // SessionStateInfo: YouTube broadcast session's state information. - SessionStateInfo *SessionStateInfo `json:"sessionStateInfo,omitempty"` - - // YouTubeBroadcastSessionId: A unique server-generated ID for the - // broadcast session. - YouTubeBroadcastSessionId string `json:"youTubeBroadcastSessionId,omitempty"` - - // YouTubeLiveBroadcastEvent: The YouTube Live broadcast event that is - // being streamed to. - YouTubeLiveBroadcastEvent *YouTubeLiveBroadcastEvent `json:"youTubeLiveBroadcastEvent,omitempty"` +type VPCSettings struct { + // Project: The resource name of the GCP Project to be used for VPC SC + // policy check. VPC security settings on this project will be honored + // for Cloud Search APIs after project_name has been updated through + // CustomerService. Format: projects/{project_id} + Project string `json:"project,omitempty"` - // ForceSendFields is a list of field names (e.g. "BroadcastStats") to + // ForceSendFields is a list of field names (e.g. "Project") 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 @@ -26412,112 +10171,36 @@ type YouTubeBroadcastSessionInfo struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "BroadcastStats") 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 *YouTubeBroadcastSessionInfo) MarshalJSON() ([]byte, error) { - type NoMethod YouTubeBroadcastSessionInfo - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// YouTubeBroadcastStats: Statistics of the YouTube broadcast session. -type YouTubeBroadcastStats struct { - // EstimatedViewerCount: Estimated concurrent viewer count. - EstimatedViewerCount int64 `json:"estimatedViewerCount,omitempty,string"` - - // ForceSendFields is a list of field names (e.g. - // "EstimatedViewerCount") 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. "EstimatedViewerCount") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "Project") 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 *YouTubeBroadcastStats) MarshalJSON() ([]byte, error) { - type NoMethod YouTubeBroadcastStats +func (s *VPCSettings) MarshalJSON() ([]byte, error) { + type NoMethod VPCSettings raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// YouTubeLiveBroadcastEvent: Information about the broadcast to -// YouTube. -type YouTubeLiveBroadcastEvent struct { - // BrandAccountGaiaId: Input only. If the channel_id is for a YouTube - // Channel owned by a Brand Account, client is required to populate this - // field with the obfuscated gaia id of the Brand account when starting - // the broadcast. - BrandAccountGaiaId string `json:"brandAccountGaiaId,omitempty"` - - // BroadcastId: Input only. The broadcast id, used to control the - // lifecycle of the event on YouTube - BroadcastId string `json:"broadcastId,omitempty"` - - // ChannelId: YouTube Channel associated with the broadcast. - ChannelId string `json:"channelId,omitempty"` - - // ViewUrl: Output only. A URL that can be used to watch the meeting - // broadcast. Will be populated by the backend. - ViewUrl string `json:"viewUrl,omitempty"` - - // ForceSendFields is a list of field names (e.g. "BrandAccountGaiaId") - // 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:"-"` +// Value: Definition of a single value with generic type. +type Value struct { + BooleanValue bool `json:"booleanValue,omitempty"` - // NullFields is a list of field names (e.g. "BrandAccountGaiaId") 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:"-"` -} + DateValue *Date `json:"dateValue,omitempty"` -func (s *YouTubeLiveBroadcastEvent) MarshalJSON() ([]byte, error) { - type NoMethod YouTubeLiveBroadcastEvent - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} + DoubleValue float64 `json:"doubleValue,omitempty"` -// YoutubeMetadata: Annotation metadata for YouTube artifact. -type YoutubeMetadata struct { - // Id: YouTube resource ID of the artifact. - Id string `json:"id,omitempty"` + IntegerValue int64 `json:"integerValue,omitempty,string"` - // ShouldNotRender: If this field is set to true, server should still - // contact external backends to get metadata for search but clients - // should not render this chip. - ShouldNotRender bool `json:"shouldNotRender,omitempty"` + StringValue string `json:"stringValue,omitempty"` - // StartTime: YouTube query parameter for timestamp. YouTube specific - // flag that allows users to embed time token when sharing a link. This - // property contains parsed time token in seconds. - StartTime int64 `json:"startTime,omitempty"` + TimestampValue string `json:"timestampValue,omitempty"` - // ForceSendFields is a list of field names (e.g. "Id") to + // ForceSendFields is a list of field names (e.g. "BooleanValue") 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 @@ -26525,25 +10208,50 @@ type YoutubeMetadata struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Id") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as + // NullFields is a list of field names (e.g. "BooleanValue") 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 *YoutubeMetadata) MarshalJSON() ([]byte, error) { - type NoMethod YoutubeMetadata +func (s *Value) MarshalJSON() ([]byte, error) { + type NoMethod Value raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -type YoutubeUserProto struct { - YoutubeUserId int64 `json:"youtubeUserId,omitempty,string"` +func (s *Value) UnmarshalJSON(data []byte) error { + type NoMethod Value + var s1 struct { + DoubleValue gensupport.JSONFloat64 `json:"doubleValue"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.DoubleValue = float64(s1.DoubleValue) + return nil +} + +type ValueFilter struct { + // OperatorName: The `operator_name` applied to the query, such as + // *price_greater_than*. The filter can work against both types of + // filters defined in the schema for your data source: 1. + // `operator_name`, where the query filters results by the property that + // matches the value. 2. `greater_than_operator_name` or + // `less_than_operator_name` in your schema. The query filters the + // results for the property values that are greater than or less than + // the supplied value in the query. + OperatorName string `json:"operatorName,omitempty"` + + // Value: The value to be compared with. + Value *Value `json:"value,omitempty"` - // ForceSendFields is a list of field names (e.g. "YoutubeUserId") to + // ForceSendFields is a list of field names (e.g. "OperatorName") 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 @@ -26551,7 +10259,7 @@ type YoutubeUserProto struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "YoutubeUserId") to include + // NullFields is a list of field names (e.g. "OperatorName") 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 @@ -26560,37 +10268,37 @@ type YoutubeUserProto struct { NullFields []string `json:"-"` } -func (s *YoutubeUserProto) MarshalJSON() ([]byte, error) { - type NoMethod YoutubeUserProto +func (s *ValueFilter) MarshalJSON() ([]byte, error) { + type NoMethod ValueFilter raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// ZwiebackSessionProto: See go/zwieback. New uses of Zwieback sessions -// must be approved via go/zwieback-request. -type ZwiebackSessionProto struct { - ZwiebackSessionId uint64 `json:"zwiebackSessionId,omitempty,string"` +// VideoInfo: Next tag: 2 +type VideoInfo struct { + // Duration: Duration of the video in milliseconds. This field can be + // absent for recently uploaded video or inaccurate sometimes. + Duration int64 `json:"duration,omitempty"` - // ForceSendFields is a list of field names (e.g. "ZwiebackSessionId") - // to unconditionally include in API requests. By default, fields with + // ForceSendFields is a list of field names (e.g. "Duration") 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. "ZwiebackSessionId") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "Duration") 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 *ZwiebackSessionProto) MarshalJSON() ([]byte, error) { - type NoMethod ZwiebackSessionProto +func (s *VideoInfo) MarshalJSON() ([]byte, error) { + type NoMethod VideoInfo raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } diff --git a/compute/v0.alpha/compute-api.json b/compute/v0.alpha/compute-api.json index 4bce3f25c41..9184c39fa81 100644 --- a/compute/v0.alpha/compute-api.json +++ b/compute/v0.alpha/compute-api.json @@ -42015,7 +42015,7 @@ } } }, - "revision": "20230606", + "revision": "20230610", "rootUrl": "https://compute.googleapis.com/", "schemas": { "AWSV4Signature": { @@ -42580,7 +42580,7 @@ "type": "string" }, "ipVersion": { - "description": "The IP version that will be used by this address. Valid options are IPV4 or IPV6. This can only be specified for a global address.", + "description": "The IP version that will be used by this address. Valid options are IPV4 or IPV6.", "enum": [ "IPV4", "IPV6", @@ -50714,6 +50714,18 @@ "FutureReservation": { "id": "FutureReservation", "properties": { + "autoCreatedReservationsDeleteTime": { + "description": "Future timestamp when the FR auto-created reservations will be deleted by GCE. Format of this field must be a valid href=\"https://www.ietf.org/rfc/rfc3339.txt\"\u003eRFC3339 value.", + "type": "string" + }, + "autoCreatedReservationsDuration": { + "$ref": "Duration", + "description": "Specifies the duration of auto-created reservations. It represents relative time to future reservation start_time when auto-created reservations will be automatically deleted by GCE. Duration time unit is represented as a count of seconds and fractions of seconds at nanosecond resolution." + }, + "autoDeleteAutoCreatedReservations": { + "description": "Setting for enabling or disabling automatic deletion for auto-created reservation. If omitted or set to true, auto-created reservations will be deleted at Future Reservation's end time (default) or at user's defined timestamp if any of the [auto_created_reservations_delete_time, auto_created_reservations_duration] values is specified. For keeping auto-created reservation indefinitely, this value should be set to false.", + "type": "boolean" + }, "creationTimestamp": { "description": "[Output Only] The creation timestamp for this future reservation in RFC3339 text format.", "type": "string" @@ -55431,14 +55443,14 @@ "id": "InstanceGroupManagerInstanceLifecyclePolicy", "properties": { "defaultActionOnFailure": { - "description": "Defines behaviour for all instance or failures", + "description": "The action that a MIG performs on a failed or an unhealthy VM. A VM is marked as unhealthy when the application running on that VM fails a health check. Valid values are - REPAIR (default): MIG automatically repairs a failed or an unhealthy VM by recreating it. For more information, see About repairing VMs in a MIG. - DO_NOTHING: MIG does not repair a failed or an unhealthy VM. ", "enum": [ "DO_NOTHING", "REPAIR" ], "enumDescriptions": [ - "If any of the MIG's VMs is not running, or is failing, no repair action will be taken.", - "*[Default]* If any of the MIG's VMs is not running - for example, a VM cannot be created during a scale out or a VM fails – then the group will retry until it creates that VM successfully. For more information about how a MIG manages its VMs, see What is a managed instance.\"" + "MIG does not repair a failed or an unhealthy VM.", + "(Default) MIG automatically repairs a failed or an unhealthy VM by recreating it. For more information, see About repairing VMs in a MIG." ], "type": "string" }, @@ -55982,14 +55994,14 @@ ], "enumDescriptions": [ "Do not perform any action.", - "Updates applied in runtime, instances will not be disrupted.", - "Old instances will be deleted. New instances will be created from the target template.", - "Every instance will be restarted." + "Do not stop the instance.", + "(Default.) Replace the instance according to the replacement method option.", + "Stop the instance and start it again." ], "type": "string" }, "mostDisruptiveAllowedAction": { - "description": "Most disruptive action that is allowed to be taken on an instance. You can specify either NONE to forbid any actions, REFRESH to allow actions that do not need instance restart, RESTART to allow actions that can be applied without instance replacing or REPLACE to allow all possible actions. If the Updater determines that the minimal update action needed is more disruptive than most disruptive allowed action you specify it will not perform the update at all.", + "description": "Most disruptive action that is allowed to be taken on an instance. You can specify either NONE to forbid any actions, REFRESH to avoid restarting the VM and to limit disruption as much as possible. RESTART to allow actions that can be applied without instance replacing or REPLACE to allow all possible actions. If the Updater determines that the minimal update action needed is more disruptive than most disruptive allowed action you specify it will not perform the update at all.", "enum": [ "NONE", "REFRESH", @@ -55998,9 +56010,9 @@ ], "enumDescriptions": [ "Do not perform any action.", - "Updates applied in runtime, instances will not be disrupted.", - "Old instances will be deleted. New instances will be created from the target template.", - "Every instance will be restarted." + "Do not stop the instance.", + "(Default.) Replace the instance according to the replacement method option.", + "Stop the instance and start it again." ], "type": "string" }, @@ -56091,14 +56103,14 @@ ], "enumDescriptions": [ "Do not perform any action.", - "Updates applied in runtime, instances will not be disrupted.", - "Old instances will be deleted. New instances will be created from the target template.", - "Every instance will be restarted." + "Do not stop the instance.", + "(Default.) Replace the instance according to the replacement method option.", + "Stop the instance and start it again." ], "type": "string" }, "minimalAction": { - "description": "The minimal action that you want to perform on each instance during the update: - REPLACE: At minimum, delete the instance and create it again. - RESTART: Stop the instance and start it again. - REFRESH: Do not stop the instance. - NONE: Do not disrupt the instance at all. By default, the minimum action is NONE. If your update requires a more disruptive action than you set with this flag, the necessary action is performed to execute the update.", + "description": "The minimal action that you want to perform on each instance during the update: - REPLACE: At minimum, delete the instance and create it again. - RESTART: Stop the instance and start it again. - REFRESH: Do not stop the instance and limit disruption as much as possible. - NONE: Do not disrupt the instance at all. By default, the minimum action is NONE. If your update requires a more disruptive action than you set with this flag, the necessary action is performed to execute the update.", "enum": [ "NONE", "REFRESH", @@ -56107,14 +56119,14 @@ ], "enumDescriptions": [ "Do not perform any action.", - "Updates applied in runtime, instances will not be disrupted.", - "Old instances will be deleted. New instances will be created from the target template.", - "Every instance will be restarted." + "Do not stop the instance.", + "(Default.) Replace the instance according to the replacement method option.", + "Stop the instance and start it again." ], "type": "string" }, "mostDisruptiveAllowedAction": { - "description": "The most disruptive action that you want to perform on each instance during the update: - REPLACE: Delete the instance and create it again. - RESTART: Stop the instance and start it again. - REFRESH: Do not stop the instance. - NONE: Do not disrupt the instance at all. By default, the most disruptive allowed action is REPLACE. If your update requires a more disruptive action than you set with this flag, the update request will fail.", + "description": "The most disruptive action that you want to perform on each instance during the update: - REPLACE: Delete the instance and create it again. - RESTART: Stop the instance and start it again. - REFRESH: Do not stop the instance and limit disruption as much as possible. - NONE: Do not disrupt the instance at all. By default, the most disruptive allowed action is REPLACE. If your update requires a more disruptive action than you set with this flag, the update request will fail.", "enum": [ "NONE", "REFRESH", @@ -56123,9 +56135,9 @@ ], "enumDescriptions": [ "Do not perform any action.", - "Updates applied in runtime, instances will not be disrupted.", - "Old instances will be deleted. New instances will be created from the target template.", - "Every instance will be restarted." + "Do not stop the instance.", + "(Default.) Replace the instance according to the replacement method option.", + "Stop the instance and start it again." ], "type": "string" } @@ -69259,7 +69271,7 @@ "type": "string" }, "dnsVerificationIp": { - "description": "The IPv4 address to be used for reverse DNS verification.", + "description": "The address to be used for reverse DNS verification.", "type": "string" }, "fingerprint": { @@ -69273,7 +69285,7 @@ "type": "string" }, "ipCidrRange": { - "description": "The IPv4 address range, in CIDR format, represented by this public advertised prefix.", + "description": "The address range, in CIDR format, represented by this public advertised prefix.", "type": "string" }, "kind": { @@ -71667,14 +71679,14 @@ ], "enumDescriptions": [ "Do not perform any action.", - "Updates applied in runtime, instances will not be disrupted.", - "Old instances will be deleted. New instances will be created from the target template.", - "Every instance will be restarted." + "Do not stop the instance.", + "(Default.) Replace the instance according to the replacement method option.", + "Stop the instance and start it again." ], "type": "string" }, "minimalAction": { - "description": "The minimal action that you want to perform on each instance during the update: - REPLACE: At minimum, delete the instance and create it again. - RESTART: Stop the instance and start it again. - REFRESH: Do not stop the instance. - NONE: Do not disrupt the instance at all. By default, the minimum action is NONE. If your update requires a more disruptive action than you set with this flag, the necessary action is performed to execute the update.", + "description": "The minimal action that you want to perform on each instance during the update: - REPLACE: At minimum, delete the instance and create it again. - RESTART: Stop the instance and start it again. - REFRESH: Do not stop the instance and limit disruption as much as possible. - NONE: Do not disrupt the instance at all. By default, the minimum action is NONE. If your update requires a more disruptive action than you set with this flag, the necessary action is performed to execute the update.", "enum": [ "NONE", "REFRESH", @@ -71683,14 +71695,14 @@ ], "enumDescriptions": [ "Do not perform any action.", - "Updates applied in runtime, instances will not be disrupted.", - "Old instances will be deleted. New instances will be created from the target template.", - "Every instance will be restarted." + "Do not stop the instance.", + "(Default.) Replace the instance according to the replacement method option.", + "Stop the instance and start it again." ], "type": "string" }, "mostDisruptiveAllowedAction": { - "description": "The most disruptive action that you want to perform on each instance during the update: - REPLACE: Delete the instance and create it again. - RESTART: Stop the instance and start it again. - REFRESH: Do not stop the instance. - NONE: Do not disrupt the instance at all. By default, the most disruptive allowed action is REPLACE. If your update requires a more disruptive action than you set with this flag, the update request will fail.", + "description": "The most disruptive action that you want to perform on each instance during the update: - REPLACE: Delete the instance and create it again. - RESTART: Stop the instance and start it again. - REFRESH: Do not stop the instance and limit disruption as much as possible. - NONE: Do not disrupt the instance at all. By default, the most disruptive allowed action is REPLACE. If your update requires a more disruptive action than you set with this flag, the update request will fail.", "enum": [ "NONE", "REFRESH", @@ -71699,9 +71711,9 @@ ], "enumDescriptions": [ "Do not perform any action.", - "Updates applied in runtime, instances will not be disrupted.", - "Old instances will be deleted. New instances will be created from the target template.", - "Every instance will be restarted." + "Do not stop the instance.", + "(Default.) Replace the instance according to the replacement method option.", + "Stop the instance and start it again." ], "type": "string" } @@ -72480,6 +72492,14 @@ "description": "[Output Only] Creation timestamp in RFC3339 text format.", "type": "string" }, + "deleteAfterDuration": { + "$ref": "Duration", + "description": "Duration time relative to reservation creation when GCE will automatically delete this resource." + }, + "deleteAtTime": { + "description": "Absolute time in future when the reservation will be auto-deleted by GCE. Timestamp is represented in RFC3339 text format.", + "type": "string" + }, "description": { "description": "An optional description of this resource. Provide this property when you create the resource.", "type": "string" @@ -77923,6 +77943,10 @@ "description": "[Output Only] A connection connected to this service attachment.", "id": "ServiceAttachmentConnectedEndpoint", "properties": { + "consumerNetwork": { + "description": "The url of the consumer network.", + "type": "string" + }, "endpoint": { "description": "The url of a connected endpoint.", "type": "string" diff --git a/compute/v0.alpha/compute-gen.go b/compute/v0.alpha/compute-gen.go index a1256c4100e..7fa29bdd18e 100644 --- a/compute/v0.alpha/compute-gen.go +++ b/compute/v0.alpha/compute-gen.go @@ -2268,8 +2268,7 @@ type Address struct { Id uint64 `json:"id,omitempty,string"` // IpVersion: The IP version that will be used by this address. Valid - // options are IPV4 or IPV6. This can only be specified for a global - // address. + // options are IPV4 or IPV6. // // Possible values: // "IPV4" @@ -15337,6 +15336,29 @@ func (s *ForwardingRulesScopedListWarningData) MarshalJSON() ([]byte, error) { } type FutureReservation struct { + // AutoCreatedReservationsDeleteTime: Future timestamp when the FR + // auto-created reservations will be deleted by GCE. Format of this + // field must be a valid + // href="https://www.ietf.org/rfc/rfc3339.txt">RFC3339 value. + AutoCreatedReservationsDeleteTime string `json:"autoCreatedReservationsDeleteTime,omitempty"` + + // AutoCreatedReservationsDuration: Specifies the duration of + // auto-created reservations. It represents relative time to future + // reservation start_time when auto-created reservations will be + // automatically deleted by GCE. Duration time unit is represented as a + // count of seconds and fractions of seconds at nanosecond resolution. + AutoCreatedReservationsDuration *Duration `json:"autoCreatedReservationsDuration,omitempty"` + + // AutoDeleteAutoCreatedReservations: Setting for enabling or disabling + // automatic deletion for auto-created reservation. If omitted or set to + // true, auto-created reservations will be deleted at Future + // Reservation's end time (default) or at user's defined timestamp if + // any of the [auto_created_reservations_delete_time, + // auto_created_reservations_duration] values is specified. For keeping + // auto-created reservation indefinitely, this value should be set to + // false. + AutoDeleteAutoCreatedReservations bool `json:"autoDeleteAutoCreatedReservations,omitempty"` + // CreationTimestamp: [Output Only] The creation timestamp for this // future reservation in RFC3339 text format. CreationTimestamp string `json:"creationTimestamp,omitempty"` @@ -15407,21 +15429,22 @@ type FutureReservation struct { // server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "CreationTimestamp") - // 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 is a list of field names (e.g. + // "AutoCreatedReservationsDeleteTime") 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. "CreationTimestamp") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. + // "AutoCreatedReservationsDeleteTime") 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:"-"` } @@ -22715,17 +22738,18 @@ func (s *InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection) Marshal } type InstanceGroupManagerInstanceLifecyclePolicy struct { - // DefaultActionOnFailure: Defines behaviour for all instance or - // failures - // - // Possible values: - // "DO_NOTHING" - If any of the MIG's VMs is not running, or is - // failing, no repair action will be taken. - // "REPAIR" - *[Default]* If any of the MIG's VMs is not running - for - // example, a VM cannot be created during a scale out or a VM fails – - // then the group will retry until it creates that VM successfully. For - // more information about how a MIG manages its VMs, see What is a - // managed instance." + // DefaultActionOnFailure: The action that a MIG performs on a failed or + // an unhealthy VM. A VM is marked as unhealthy when the application + // running on that VM fails a health check. Valid values are - REPAIR + // (default): MIG automatically repairs a failed or an unhealthy VM by + // recreating it. For more information, see About repairing VMs in a + // MIG. - DO_NOTHING: MIG does not repair a failed or an unhealthy VM. + // + // Possible values: + // "DO_NOTHING" - MIG does not repair a failed or an unhealthy VM. + // "REPAIR" - (Default) MIG automatically repairs a failed or an + // unhealthy VM by recreating it. For more information, see About + // repairing VMs in a MIG. DefaultActionOnFailure string `json:"defaultActionOnFailure,omitempty"` // ForceUpdateOnRepair: A bit indicating whether to forcefully apply the @@ -23704,29 +23728,27 @@ type InstanceGroupManagerUpdatePolicy struct { // // Possible values: // "NONE" - Do not perform any action. - // "REFRESH" - Updates applied in runtime, instances will not be - // disrupted. - // "REPLACE" - Old instances will be deleted. New instances will be - // created from the target template. - // "RESTART" - Every instance will be restarted. + // "REFRESH" - Do not stop the instance. + // "REPLACE" - (Default.) Replace the instance according to the + // replacement method option. + // "RESTART" - Stop the instance and start it again. MinimalAction string `json:"minimalAction,omitempty"` // MostDisruptiveAllowedAction: Most disruptive action that is allowed // to be taken on an instance. You can specify either NONE to forbid any - // actions, REFRESH to allow actions that do not need instance restart, - // RESTART to allow actions that can be applied without instance - // replacing or REPLACE to allow all possible actions. If the Updater - // determines that the minimal update action needed is more disruptive - // than most disruptive allowed action you specify it will not perform - // the update at all. + // actions, REFRESH to avoid restarting the VM and to limit disruption + // as much as possible. RESTART to allow actions that can be applied + // without instance replacing or REPLACE to allow all possible actions. + // If the Updater determines that the minimal update action needed is + // more disruptive than most disruptive allowed action you specify it + // will not perform the update at all. // // Possible values: // "NONE" - Do not perform any action. - // "REFRESH" - Updates applied in runtime, instances will not be - // disrupted. - // "REPLACE" - Old instances will be deleted. New instances will be - // created from the target template. - // "RESTART" - Every instance will be restarted. + // "REFRESH" - Do not stop the instance. + // "REPLACE" - (Default.) Replace the instance according to the + // replacement method option. + // "RESTART" - Stop the instance and start it again. MostDisruptiveAllowedAction string `json:"mostDisruptiveAllowedAction,omitempty"` // ReplacementMethod: What action should be used to replace instances. @@ -23883,45 +23905,44 @@ type InstanceGroupManagersApplyUpdatesRequest struct { // // Possible values: // "NONE" - Do not perform any action. - // "REFRESH" - Updates applied in runtime, instances will not be - // disrupted. - // "REPLACE" - Old instances will be deleted. New instances will be - // created from the target template. - // "RESTART" - Every instance will be restarted. + // "REFRESH" - Do not stop the instance. + // "REPLACE" - (Default.) Replace the instance according to the + // replacement method option. + // "RESTART" - Stop the instance and start it again. MaximalAction string `json:"maximalAction,omitempty"` // MinimalAction: The minimal action that you want to perform on each // instance during the update: - REPLACE: At minimum, delete the // instance and create it again. - RESTART: Stop the instance and start - // it again. - REFRESH: Do not stop the instance. - NONE: Do not disrupt - // the instance at all. By default, the minimum action is NONE. If your - // update requires a more disruptive action than you set with this flag, - // the necessary action is performed to execute the update. + // it again. - REFRESH: Do not stop the instance and limit disruption as + // much as possible. - NONE: Do not disrupt the instance at all. By + // default, the minimum action is NONE. If your update requires a more + // disruptive action than you set with this flag, the necessary action + // is performed to execute the update. // // Possible values: // "NONE" - Do not perform any action. - // "REFRESH" - Updates applied in runtime, instances will not be - // disrupted. - // "REPLACE" - Old instances will be deleted. New instances will be - // created from the target template. - // "RESTART" - Every instance will be restarted. + // "REFRESH" - Do not stop the instance. + // "REPLACE" - (Default.) Replace the instance according to the + // replacement method option. + // "RESTART" - Stop the instance and start it again. MinimalAction string `json:"minimalAction,omitempty"` // MostDisruptiveAllowedAction: The most disruptive action that you want // to perform on each instance during the update: - REPLACE: Delete the // instance and create it again. - RESTART: Stop the instance and start - // it again. - REFRESH: Do not stop the instance. - NONE: Do not disrupt - // the instance at all. By default, the most disruptive allowed action - // is REPLACE. If your update requires a more disruptive action than you - // set with this flag, the update request will fail. + // it again. - REFRESH: Do not stop the instance and limit disruption as + // much as possible. - NONE: Do not disrupt the instance at all. By + // default, the most disruptive allowed action is REPLACE. If your + // update requires a more disruptive action than you set with this flag, + // the update request will fail. // // Possible values: // "NONE" - Do not perform any action. - // "REFRESH" - Updates applied in runtime, instances will not be - // disrupted. - // "REPLACE" - Old instances will be deleted. New instances will be - // created from the target template. - // "RESTART" - Every instance will be restarted. + // "REFRESH" - Do not stop the instance. + // "REPLACE" - (Default.) Replace the instance according to the + // replacement method option. + // "RESTART" - Stop the instance and start it again. MostDisruptiveAllowedAction string `json:"mostDisruptiveAllowedAction,omitempty"` // ForceSendFields is a list of field names (e.g. "AllInstances") to @@ -44667,7 +44688,7 @@ type PublicAdvertisedPrefix struct { // property when you create the resource. Description string `json:"description,omitempty"` - // DnsVerificationIp: The IPv4 address to be used for reverse DNS + // DnsVerificationIp: The address to be used for reverse DNS // verification. DnsVerificationIp string `json:"dnsVerificationIp,omitempty"` @@ -44684,8 +44705,8 @@ type PublicAdvertisedPrefix struct { // server generates this identifier. Id uint64 `json:"id,omitempty,string"` - // IpCidrRange: The IPv4 address range, in CIDR format, represented by - // this public advertised prefix. + // IpCidrRange: The address range, in CIDR format, represented by this + // public advertised prefix. IpCidrRange string `json:"ipCidrRange,omitempty"` // Kind: [Output Only] Type of the resource. Always @@ -48147,45 +48168,44 @@ type RegionInstanceGroupManagersApplyUpdatesRequest struct { // // Possible values: // "NONE" - Do not perform any action. - // "REFRESH" - Updates applied in runtime, instances will not be - // disrupted. - // "REPLACE" - Old instances will be deleted. New instances will be - // created from the target template. - // "RESTART" - Every instance will be restarted. + // "REFRESH" - Do not stop the instance. + // "REPLACE" - (Default.) Replace the instance according to the + // replacement method option. + // "RESTART" - Stop the instance and start it again. MaximalAction string `json:"maximalAction,omitempty"` // MinimalAction: The minimal action that you want to perform on each // instance during the update: - REPLACE: At minimum, delete the // instance and create it again. - RESTART: Stop the instance and start - // it again. - REFRESH: Do not stop the instance. - NONE: Do not disrupt - // the instance at all. By default, the minimum action is NONE. If your - // update requires a more disruptive action than you set with this flag, - // the necessary action is performed to execute the update. + // it again. - REFRESH: Do not stop the instance and limit disruption as + // much as possible. - NONE: Do not disrupt the instance at all. By + // default, the minimum action is NONE. If your update requires a more + // disruptive action than you set with this flag, the necessary action + // is performed to execute the update. // // Possible values: // "NONE" - Do not perform any action. - // "REFRESH" - Updates applied in runtime, instances will not be - // disrupted. - // "REPLACE" - Old instances will be deleted. New instances will be - // created from the target template. - // "RESTART" - Every instance will be restarted. + // "REFRESH" - Do not stop the instance. + // "REPLACE" - (Default.) Replace the instance according to the + // replacement method option. + // "RESTART" - Stop the instance and start it again. MinimalAction string `json:"minimalAction,omitempty"` // MostDisruptiveAllowedAction: The most disruptive action that you want // to perform on each instance during the update: - REPLACE: Delete the // instance and create it again. - RESTART: Stop the instance and start - // it again. - REFRESH: Do not stop the instance. - NONE: Do not disrupt - // the instance at all. By default, the most disruptive allowed action - // is REPLACE. If your update requires a more disruptive action than you - // set with this flag, the update request will fail. + // it again. - REFRESH: Do not stop the instance and limit disruption as + // much as possible. - NONE: Do not disrupt the instance at all. By + // default, the most disruptive allowed action is REPLACE. If your + // update requires a more disruptive action than you set with this flag, + // the update request will fail. // // Possible values: // "NONE" - Do not perform any action. - // "REFRESH" - Updates applied in runtime, instances will not be - // disrupted. - // "REPLACE" - Old instances will be deleted. New instances will be - // created from the target template. - // "RESTART" - Every instance will be restarted. + // "REFRESH" - Do not stop the instance. + // "REPLACE" - (Default.) Replace the instance according to the + // replacement method option. + // "RESTART" - Stop the instance and start it again. MostDisruptiveAllowedAction string `json:"mostDisruptiveAllowedAction,omitempty"` // ForceSendFields is a list of field names (e.g. "AllInstances") to @@ -49640,6 +49660,14 @@ type Reservation struct { // format. CreationTimestamp string `json:"creationTimestamp,omitempty"` + // DeleteAfterDuration: Duration time relative to reservation creation + // when GCE will automatically delete this resource. + DeleteAfterDuration *Duration `json:"deleteAfterDuration,omitempty"` + + // DeleteAtTime: Absolute time in future when the reservation will be + // auto-deleted by GCE. Timestamp is represented in RFC3339 text format. + DeleteAtTime string `json:"deleteAtTime,omitempty"` + // Description: An optional description of this resource. Provide this // property when you create the resource. Description string `json:"description,omitempty"` @@ -57748,6 +57776,9 @@ func (s *ServiceAttachmentAggregatedListWarningData) MarshalJSON() ([]byte, erro // ServiceAttachmentConnectedEndpoint: [Output Only] A connection // connected to this service attachment. type ServiceAttachmentConnectedEndpoint struct { + // ConsumerNetwork: The url of the consumer network. + ConsumerNetwork string `json:"consumerNetwork,omitempty"` + // Endpoint: The url of a connected endpoint. Endpoint string `json:"endpoint,omitempty"` @@ -57769,7 +57800,7 @@ type ServiceAttachmentConnectedEndpoint struct { // "STATUS_UNSPECIFIED" Status string `json:"status,omitempty"` - // ForceSendFields is a list of field names (e.g. "Endpoint") to + // ForceSendFields is a list of field names (e.g. "ConsumerNetwork") 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 @@ -57777,12 +57808,13 @@ type ServiceAttachmentConnectedEndpoint struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Endpoint") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ConsumerNetwork") 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:"-"` } diff --git a/contentwarehouse/v1/contentwarehouse-api.json b/contentwarehouse/v1/contentwarehouse-api.json index a96d537487a..15c52fd3a88 100644 --- a/contentwarehouse/v1/contentwarehouse-api.json +++ b/contentwarehouse/v1/contentwarehouse-api.json @@ -167,6 +167,31 @@ "resources": { "locations": { "methods": { + "getStatus": { + "description": "Get the project status.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}:getStatus", + "httpMethod": "GET", + "id": "contentwarehouse.projects.locations.getStatus", + "parameterOrder": [ + "location" + ], + "parameters": { + "location": { + "description": "Required. The location to be queried Format: projects/{project_number}/locations/{location}.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+location}:getStatus", + "response": { + "$ref": "GoogleCloudContentwarehouseV1ProjectStatus" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, "initialize": { "description": "Provisions resources for given tenant project. Returns a long running operation.", "flatPath": "v1/projects/{projectsId}/locations/{locationsId}:initialize", @@ -1103,7 +1128,7 @@ } } }, - "revision": "20230612", + "revision": "20230618", "rootUrl": "https://contentwarehouse.googleapis.com/", "schemas": { "AbuseiamAbuseType": { @@ -3630,7 +3655,8 @@ "DRIVE_SEARCH_FILTER_PERSON_ONLY", "ACCESSIBILITY_TRACKER_AFFINITY", "PLX_DATASOURCE_AFFINITY", - "DUCKIEWEB_AFFINITY" + "DUCKIEWEB_AFFINITY", + "MEET_CALLING_AFFINITY" ], "enumDescriptions": [ "", @@ -3885,6 +3911,7 @@ "", "", "", + "", "" ], "type": "string" @@ -9815,6 +9842,7 @@ "SIM_STATUS", "MICROPHONE_PERMISSIONS", "GOOGLE_PLAY_UPDATE", + "ADD_GOOGLE_ACCOUNT", "ABOUT_PHONE", "ACCOUNTS", "APPLICATION", @@ -10138,6 +10166,7 @@ "", "Permission Manager \u003e Microphone", "", + "", "Begin of NGA proto consistence", "", "", @@ -16995,7 +17024,7 @@ "type": "boolean" }, "supportsGenericMutations": { - "description": "Whether the client supports mutation of any alarm attribute such as time_pattern, recurrence_pattern, etc through the MUTATE action. If this is false, MUTATE may only be used for changing the alarm's status (to e.g. disable or dismiss the alarm).", + "description": "Whether the client supports mutation of any alarm attribute such as time_pattern, recurrence_pattern, etc through the MUTATE action. If this is false, MUTATE may only be used to disable or dismiss an alarm. This field is true by default for backwards-compatibility; clients which don't support mutation outside of Disable/DismissAlarm should explicitly set this to false.", "type": "boolean" }, "supportsStopAction": { @@ -17228,6 +17257,11 @@ }, "type": "object" }, + "AssistantDevicesPlatformProtoExecutionWaitCapability": { + "id": "AssistantDevicesPlatformProtoExecutionWaitCapability", + "properties": {}, + "type": "object" + }, "AssistantDevicesPlatformProtoInlinedActionCapability": { "id": "AssistantDevicesPlatformProtoInlinedActionCapability", "properties": { @@ -17512,7 +17546,7 @@ "type": "object" }, "AssistantDevicesPlatformProtoSupportedDeviceOps": { - "description": "This message will specify supports for fields in |assistant.embedded.v1.DeviceOp|, for a device model package. See go/easi-client-op2 for more info. Next ID: 16", + "description": "This message will specify supports for fields in |assistant.embedded.v1.DeviceOp|, for a device model package. See go/easi-client-op2 for more info. Next ID: 17", "id": "AssistantDevicesPlatformProtoSupportedDeviceOps", "properties": { "callCall": { @@ -17535,6 +17569,10 @@ "$ref": "AssistantDevicesPlatformProtoDeviceTakePhotoCapability", "description": "[device_take_photo] specifies the support for the device.TAKE_PHOTO clientop, and the corresponding device_take_photo field in assistant.embedded.v1.DeviceOp." }, + "executionWait": { + "$ref": "AssistantDevicesPlatformProtoExecutionWaitCapability", + "description": "|execution_wait| specifies the support for execution.WAIT client_op, and the corresponding execution_wait field in assistant.embedded.v1.DeviceOp." + }, "mediaNext": { "$ref": "AssistantDevicesPlatformProtoMediaNextCapability" }, @@ -17767,7 +17805,8 @@ "SHARED_CONTACT", "FAMILY_MEMBER", "SHARED_DEVICE_USER", - "ON_DEVICE_CONTACT_LOOKUP" + "ON_DEVICE_CONTACT_LOOKUP", + "APP_SEARCH_CONTACT" ], "enumDescriptions": [ "Contacts from Focus", @@ -17780,7 +17819,8 @@ "Contacts shared from other users. See go/multi-user-shared-contact.", "People in the user's family group in http://families.google.com who are not contacts.", "People who share a device with the user who are not contacts.", - "Contacts from on device lookup during contact fulfillment." + "Contacts from on device lookup during contact fulfillment.", + "Contacts from AppSearch." ], "type": "string" }, @@ -18765,7 +18805,8 @@ "SHARED_CONTACT", "FAMILY_MEMBER", "SHARED_DEVICE_USER", - "ON_DEVICE_CONTACT_LOOKUP" + "ON_DEVICE_CONTACT_LOOKUP", + "APP_SEARCH_CONTACT" ], "enumDescriptions": [ "", @@ -18779,7 +18820,8 @@ "Contacts shared from other users. See go/multi-user-shared-contact.", "People in the user's family group in http://families.google.com who are not contacts.", "People who share a device with the user who are not contacts.", - "Contacts from on device lookup during contact fulfillment." + "Contacts from on device lookup during contact fulfillment.", + "Contacts from AppSearch." ], "type": "string" }, @@ -18892,7 +18934,7 @@ "type": "object" }, "AssistantLogsDeviceInfoLog": { - "description": "The information related to the device.", + "description": "The information related to the device. Next ID: 18", "id": "AssistantLogsDeviceInfoLog", "properties": { "arbitrationDeviceId": { @@ -19007,6 +19049,10 @@ ], "type": "string" }, + "homeStructureId": { + "description": "The home structure id of the device.", + "type": "string" + }, "isRemote": { "type": "boolean" }, @@ -20531,13 +20577,15 @@ "SUB_INTENT_TYPE_TV_FALLBACK_SEARCH_INTENT", "SUB_INTENT_TYPE_PODCAST", "SUB_INTENT_TYPE_MUSIC_INITIATION_INTENT", - "SUB_INTENT_TYPE_PLAY_RADIO_INTENT" + "SUB_INTENT_TYPE_PLAY_RADIO_INTENT", + "SUB_INTENT_TYPE_PLAY_TVM_INTENT" ], "enumDescriptions": [ "", "Find_media", "Play_media, Play_media, Play_media, Listen_to_media, Media_entity_bare, Play_and_shuffle_media", "Play_media", + "Play_media", "Play_media" ], "type": "string" @@ -21072,7 +21120,7 @@ "type": "object" }, "AssistantVerticalsHomeautomationProtoHomeAutomation_MetaData": { - "description": "Next ID: 43", + "description": "Next ID: 44", "id": "AssistantVerticalsHomeautomationProtoHomeAutomation_MetaData", "properties": { "actionProjectConfigs": { @@ -21133,6 +21181,10 @@ "description": "Whether local home platform should discover new devices via LAN for the structure.", "type": "boolean" }, + "matterUniqueId": { + "$ref": "AssistantVerticalsHomeautomationProtoMatterUniqueId", + "description": "Matter Unique ID. Contains VID/PID information" + }, "modelName": { "description": "Model name from HomeGraph, populated from model_manifest.model_name. See b/200087451.", "type": "string" @@ -21349,6 +21401,24 @@ }, "type": "object" }, + "AssistantVerticalsHomeautomationProtoMatterUniqueId": { + "description": "Matter unique Id. These values are provided by the device.", + "id": "AssistantVerticalsHomeautomationProtoMatterUniqueId", + "properties": { + "productId": { + "format": "int32", + "type": "integer" + }, + "uniqueId": { + "type": "string" + }, + "vendorId": { + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, "AssistantVerticalsHomeautomationProtoPhysicalLocation": { "id": "AssistantVerticalsHomeautomationProtoPhysicalLocation", "properties": { @@ -32716,7 +32786,7 @@ "type": "object" }, "GeostoreFeatureFieldMetadataProto": { - "description": "Provenance information for sub-fields of this feature.", + "description": "Provenance information for sub-fields of this feature - go/subfield-provenance.", "id": "GeostoreFeatureFieldMetadataProto", "properties": { "fieldProvenance": { @@ -47296,6 +47366,79 @@ }, "type": "object" }, + "GoogleCloudContentwarehouseV1ProjectStatus": { + "description": "Status of a project, including the project state, dbType, aclMode and etc.", + "id": "GoogleCloudContentwarehouseV1ProjectStatus", + "properties": { + "accessControlMode": { + "description": "Access control mode.", + "enum": [ + "ACL_MODE_UNKNOWN", + "ACL_MODE_UNIVERSAL_ACCESS", + "ACL_MODE_DOCUMENT_LEVEL_ACCESS_CONTROL_BYOID", + "ACL_MODE_DOCUMENT_LEVEL_ACCESS_CONTROL_GCI" + ], + "enumDescriptions": [ + "This value is required by protobuf best practices", + "Universal Access: No document level access control.", + "Document level access control with customer own Identity Service.", + "Document level access control using Google Cloud Identity." + ], + "type": "string" + }, + "databaseType": { + "description": "Database type.", + "enum": [ + "DB_UNKNOWN", + "DB_INFRA_SPANNER", + "DB_CLOUD_SQL_POSTGRES" + ], + "enumDescriptions": [ + "This value is required by protobuf best practices", + "Internal Spanner", + "Cloud Sql with a Postgres Sql instance" + ], + "type": "string" + }, + "documentCreatorDefaultRole": { + "description": "The default role for the person who create a document.", + "type": "string" + }, + "location": { + "description": "The location of the queried project.", + "type": "string" + }, + "qaEnabled": { + "description": "If the qa is enabled on this project.", + "type": "boolean" + }, + "state": { + "description": "State of the project.", + "enum": [ + "PROJECT_STATE_UNSPECIFIED", + "PROJECT_STATE_PENDING", + "PROJECT_STATE_COMPLETED", + "PROJECT_STATE_FAILED", + "PROJECT_STATE_DELETING", + "PROJECT_STATE_DELETING_FAILED", + "PROJECT_STATE_DELETED", + "PROJECT_STATE_NOT_FOUND" + ], + "enumDescriptions": [ + "Default status, required by protobuf best practices.", + "The project is in the middle of a provision process.", + "All dependencies have been provisioned.", + "A provision process was previously initiated, but failed.", + "The project is in the middle of a deletion process.", + "A deleting process was initiated, but failed.", + "The project is deleted.", + "The project is not found." + ], + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudContentwarehouseV1Property": { "description": "Property of a document.", "id": "GoogleCloudContentwarehouseV1Property", @@ -57347,514 +57490,2049 @@ "format": "uint32", "type": "integer" }, - "demoted": { - "description": "Following field record details of anchor demotion in action. How many anchors were demoted.", - "format": "uint32", - "type": "integer" + "demoted": { + "description": "Following field record details of anchor demotion in action. How many anchors were demoted.", + "format": "uint32", + "type": "integer" + }, + "demotedAll": { + "description": "Demoted all anchors in the period or only anchors classified as spam.", + "type": "boolean" + }, + "demotedEnd": { + "description": "End date of the demotion period.", + "format": "uint32", + "type": "integer" + }, + "demotedStart": { + "description": "Start date of the demotion period.", + "format": "uint32", + "type": "integer" + }, + "phraseCount": { + "description": "Following fields record signals used in anchor spam classification. How many spam phrases found in the anchors among unique domains.", + "format": "float", + "type": "number" + }, + "phraseDays": { + "description": "Over how many days 80% of these phrases were discovered.", + "format": "float", + "type": "number" + }, + "phraseFraq": { + "description": "Spam phrases fraction of all anchors of the document.", + "format": "float", + "type": "number" + }, + "phraseRate": { + "description": "Average daily rate of spam anchor discovery.", + "format": "float", + "type": "number" + }, + "processed": { + "description": "Total number of processed anchors.", + "format": "uint32", + "type": "integer" + }, + "sampled": { + "description": "True if anchors were sampled during observation phrase.", + "type": "boolean" + }, + "sources": { + "description": "Detailed information about trusted sources and match computation. Populated only when --anchorspam_penalizer_debug=true.", + "items": { + "$ref": "IndexingDocjoinerAnchorTrustedInfo" + }, + "type": "array" + }, + "spamDebugInfo": { + "description": "Additional debug information about computation of spam probability.", + "type": "string" + }, + "spamPenalty": { + "description": "Combined penalty for anchor demotion.", + "format": "float", + "type": "number" + }, + "spamProbability": { + "description": "Predicted probability of spam.", + "format": "float", + "type": "number" + }, + "trustedDemoted": { + "description": "Number of trusted anchors used in computation of spam probability.", + "format": "uint32", + "type": "integer" + }, + "trustedExamples": { + "description": "Examples of trusted sources.", + "type": "string" + }, + "trustedMatching": { + "description": "Number of trusted anchors with anchor text matching spam terms.", + "format": "uint32", + "type": "integer" + }, + "trustedTarget": { + "description": "Following fields record details about trusted anchors True if is this URL is on trusted source.", + "type": "boolean" + }, + "trustedTotal": { + "description": "Total number of trusted sources for this URL.", + "format": "uint32", + "type": "integer" + } + }, + "type": "object" + }, + "IndexingDocjoinerAnchorStatistics": { + "description": "Statistics of the anchors in a docjoin. Next available tag ID: 63.", + "id": "IndexingDocjoinerAnchorStatistics", + "properties": { + "anchorCount": { + "format": "int32", + "type": "integer" + }, + "anchorPhraseCount": { + "description": "The number of unique anchor phrases. Capped by the constant kMaxAnchorPhraseCountInStats (=5000) defined in indexing/docjoiner/anchors/anchor-manager.cc.", + "format": "int32", + "type": "integer" + }, + "anchorSpamInfo": { + "$ref": "IndexingDocjoinerAnchorSpamInfo", + "description": "This structure contains signals and penalties of AnchorSpamPenalizer. It replaces phrase_anchor_spam_info above, that is deprecated." + }, + "anchorsWithDedupedImprovanchors": { + "description": "The number of anchors for which some ImprovAnchors phrases have been removed due to duplication within source org.", + "format": "int32", + "type": "integer" + }, + "badbacklinksPenalized": { + "description": "Whether this doc is penalized by BadBackLinks, in which case we should not use improvanchor score in mustang ascorer.", + "type": "boolean" + }, + "baseAnchorCount": { + "format": "int32", + "type": "integer" + }, + "baseOffdomainAnchorCount": { + "format": "int32", + "type": "integer" + }, + "droppedHomepageAnchorCount": { + "format": "int32", + "type": "integer" + }, + "droppedLocalAnchorCount": { + "format": "int32", + "type": "integer" + }, + "droppedNonLocalAnchorCount": { + "format": "int32", + "type": "integer" + }, + "droppedRedundantAnchorCount": { + "description": "Sum of anchors_dropped in the repeated group RedundantAnchorInfo, but can go higher if the latter reaches the cap of kMaxRecordsToKeep. (indexing/docjoiner/anchors/anchor-loader.cc), currently 10,000", + "format": "int32", + "type": "integer" + }, + "fakeAnchorCount": { + "format": "int32", + "type": "integer" + }, + "forwardedAnchorCount": { + "format": "int32", + "type": "integer" + }, + "forwardedOffdomainAnchorCount": { + "format": "int32", + "type": "integer" + }, + "globalAnchorDelta": { + "description": "Metric of number of changed global anchors computed as, size(union(previous, new) - intersection(previous, new)).", + "format": "int32", + "type": "integer" + }, + "linkBeforeSitechangeTaggedAnchors": { + "format": "int32", + "type": "integer" + }, + "localAnchorCount": { + "format": "int32", + "type": "integer" + }, + "lowCorpusAnchorCount": { + "format": "int32", + "type": "integer" + }, + "lowCorpusOffdomainAnchorCount": { + "format": "int32", + "type": "integer" + }, + "mediumCorpusAnchorCount": { + "format": "int32", + "type": "integer" + }, + "mediumCorpusOffdomainAnchorCount": { + "format": "int32", + "type": "integer" + }, + "minDomainHomePageLocalOutdegree": { + "description": "Minimum local outdegree of all anchor sources that are domain home pages as well as on the same domain as the current target URL.", + "format": "int32", + "type": "integer" + }, + "minHostHomePageLocalOutdegree": { + "description": "Minimum local outdegree of all anchor sources that are host home pages as well as on the same host as the current target URL.", + "format": "int32", + "type": "integer" + }, + "nonLocalAnchorCount": { + "format": "int32", + "type": "integer" + }, + "offdomainAnchorCount": { + "format": "int32", + "type": "integer" + }, + "ondomainAnchorCount": { + "format": "int32", + "type": "integer" + }, + "onsiteAnchorCount": { + "format": "int32", + "type": "integer" + }, + "pageFromExpiredTaggedAnchors": { + "description": "Set in SignalPenalizer::FillInAnchorStatistics.", + "format": "int32", + "type": "integer" + }, + "pageMismatchTaggedAnchors": { + "format": "int32", + "type": "integer" + }, + "penguinEarlyAnchorProtected": { + "description": "Doc is protected by goodness of early anchors.", + "type": "boolean" + }, + "penguinLastUpdate": { + "description": "BEGIN: Penguin related fields. Timestamp when penguin scores were last updated. Measured in days since Jan. 1st 1995.", + "format": "int32", + "type": "integer" + }, + "penguinPenalty": { + "description": "Page-level penguin penalty (0 = good, 1 = bad).", + "format": "float", + "type": "number" + }, + "penguinTooManySources": { + "description": "Doc not scored because it has too many anchor sources. END: Penguin related fields.", + "type": "boolean" + }, + "perdupstats": { + "items": { + "$ref": "IndexingDocjoinerAnchorStatisticsPerDupStats" + }, + "type": "array" + }, + "phraseAnchorSpamInfo": { + "$ref": "IndexingDocjoinerAnchorPhraseSpamInfo", + "description": "Following signals identify spike of spammy anchor phrases. Anchors created during the spike are tagged with LINK_SPAM_PHRASE_SPIKE." + }, + "redundantAnchorForPhraseCapCount": { + "description": "Total anchor dropped due to exceed per domain phrase cap. Equals to sum of anchors_dropped in the repeated group RedundantAnchorInfoForPhraseCap, but can go higher if the latter reaches the cap of kMaxDomainsToKeepForPhraseCap (indexing/docjoiner/anchors/anchor-loader.h), currently 1000.", + "format": "int32", + "type": "integer" + }, + "redundantanchorinfo": { + "items": { + "$ref": "IndexingDocjoinerAnchorStatisticsRedundantAnchorInfo" + }, + "type": "array" + }, + "redundantanchorinfoforphrasecap": { + "items": { + "$ref": "IndexingDocjoinerAnchorStatisticsRedundantAnchorInfoForPhraseCap" + }, + "type": "array" + }, + "scannedAnchorCount": { + "description": "The total number of anchors being scanned from storage.", + "format": "int32", + "type": "integer" + }, + "skippedAccumulate": { + "description": "A count of the number of times anchor accumulation has been skipped for this document. Note: Only used when canonical.", + "format": "int32", + "type": "integer" + }, + "skippedOrReusedReason": { + "description": "Reason to skip accumulate, when skipped, or Reason for reprocessing when not skipped.", + "type": "string" + }, + "spamLog10Odds": { + "description": "The log base 10 odds that this set of anchors exhibits spammy behavior. Computed in the AnchorLocalizer.", + "format": "float", + "type": "number" + }, + "timestamp": { + "description": "Walltime of when anchors were accumulated last.", + "format": "int32", + "type": "integer" + }, + "topPrOffdomainAnchorCount": { + "format": "int32", + "type": "integer" + }, + "topPrOndomainAnchorCount": { + "format": "int32", + "type": "integer" + }, + "topPrOnsiteAnchorCount": { + "description": "According to anchor quality bucket, anchor with pagrank \u003e 51000 is the best anchor. anchors with pagerank \u003c 47000 are all same.", + "format": "int32", + "type": "integer" + }, + "totalDomainPhrasePairsAboveLimit": { + "description": "The following should be equal to the size of the following repeated group, except that it can go higher than 10,000.", + "format": "int32", + "type": "integer" + }, + "totalDomainPhrasePairsSeenApprox": { + "description": "Number of domain/phrase pairs in total -- i.e. how many anchors we would have if the domain/phrase cutoff was set to 1 instead of 200. This is \"approx\" for large anchor clusters because there can be double counting when the LRU cache forgets about rare domain/phrase pairs.", + "format": "int32", + "type": "integer" + }, + "totalDomainsAbovePhraseCap": { + "description": "Number of domains above per domain phrase cap. We see too many phrases in the domains.", + "format": "int32", + "type": "integer" + }, + "totalDomainsSeen": { + "description": "Number of domains seen in total.", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, + "IndexingDocjoinerAnchorStatisticsPerDupStats": { + "description": "------------------------------------------------------------------------- The total number of anchors collected per dupforwarding (including the canonical itself). Includes additional data about redundant and offdomain counts and the last timestamp it was collected from.", + "id": "IndexingDocjoinerAnchorStatisticsPerDupStats", + "properties": { + "anchorCount": { + "description": "Count of anchors kept from forwarding.", + "format": "int32", + "type": "integer" + }, + "collectType": { + "description": "This is EcnCollectType in anchor-ecn-matcher.h for the latest ECN of this dup: - kCollectNormal = 0, // Normal collection. - kCollectUnforwarded = 1, // Forwarding leader docid match only. - kCollectWhitelisted = 2, // Collected anchors matching whitelist. - kCollectNone = 4 // Skipped ECN anchor cluster.", + "format": "int32", + "type": "integer" + }, + "dupUrl": { + "description": "If missing, the same as the canonical.", + "type": "string" + }, + "offdomainAnchorCount": { + "description": "Count of offdomain anchors.", + "format": "int32", + "type": "integer" + }, + "redundantAnchorCount": { + "description": "Count of redundant anchors.", + "format": "int32", + "type": "integer" + }, + "scannedAnchorCount": { + "description": "The number of anchors being scanned from storage per dupforwarding.", + "format": "int32", + "type": "integer" + }, + "timestamp": { + "description": "Walltime when this was scanned last.", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, + "IndexingDocjoinerAnchorStatisticsRedundantAnchorInfo": { + "description": "------------------------------------------------------------------------- The total number of redundant anchors dropped per (domain, text). If we receive a large number of anchors from a particular domain, then we'll throw out all but 200 of them from that domain. The data is sorted by the (domain, text) pairs. This is capped at 10,000 entries (if less, it will have the same number of elements as the above_limit count).", + "id": "IndexingDocjoinerAnchorStatisticsRedundantAnchorInfo", + "properties": { + "anchorsDropped": { + "format": "int64", + "type": "string" + }, + "domain": { + "type": "string" + }, + "text": { + "type": "string" + } + }, + "type": "object" + }, + "IndexingDocjoinerAnchorStatisticsRedundantAnchorInfoForPhraseCap": { + "id": "IndexingDocjoinerAnchorStatisticsRedundantAnchorInfoForPhraseCap", + "properties": { + "anchorsDropped": { + "format": "int32", + "type": "integer" + }, + "domain": { + "type": "string" + } + }, + "type": "object" + }, + "IndexingDocjoinerAnchorTrustedInfo": { + "description": "This message summarized anchors of one trusted site.", + "id": "IndexingDocjoinerAnchorTrustedInfo", + "properties": { + "matchedScore": { + "description": "Difference in KL-divergence from spam and non-spam anchors. Value \u003e0 indicate that anchor text from this trusted source is similar to anchors classified as spam which means that spammy anchors are legitimate.", + "format": "float", + "type": "number" + }, + "matchedScoreInfo": { + "description": "Detailed debug information about computation of trusted anchors match. Populated only when --anchorspam_penalizer_debug=true", + "items": { + "type": "string" + }, + "type": "array" + }, + "phrasesScore": { + "description": "Count of anchors classified as spam using anchor text.", + "format": "float", + "type": "number" + }, + "site": { + "description": "Site name from anchor.source().site().", + "type": "string" + }, + "text": { + "description": "Tokenized text of all anchors from the site.", + "items": { + "type": "string" + }, + "type": "array" + }, + "trustedScore": { + "description": "Fraction of pages with newsy anchors on the site, \u003e0 for trusted sites.", + "format": "float", + "type": "number" + } + }, + "type": "object" + }, + "IndexingDocjoinerCDocBuildInfo": { + "description": "Holds extra info except annotations and raw cdoc for buildint the final cdoc.", + "id": "IndexingDocjoinerCDocBuildInfo", + "properties": { + "extraMessage": { + "$ref": "Proto2BridgeMessageSet" + } + }, + "type": "object" + }, + "IndexingDocjoinerDataVersion": { + "description": "DataVersion tracks the version of data in CompositeDoc. The notion of \"data\" here is loose and people can define the name of their own. For example, a signal generated by Index Signals or an annotation generated by Goldmine (and other components) can all be considered as data here. Each field in this proto represents the human readable version string and the timestamp of one particular data. We choose to explicitly list out all of the data here for better understanding about which data are tracked. NOTE that human_readable_version is not intended for comparison, use timestamp_micros. In addition, we have an annotation about the field paths of each data. With proto reflection (using google3/net/proto2/util/public/field_path.h), downstream systems can take advantage of this annotation to automatically handle newly introduced data without modifying their code. Please also see the comment of FieldProjector above. There are also some fields in DataInfo that annotate who generates the data, the Index Signals or Goldmine annotator name. Next ID: 536", + "id": "IndexingDocjoinerDataVersion", + "properties": { + "acceleratedShoppingSignal": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "adsAdsaiMagicApfelApfelRegionFinderAnnotation": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "adsAdsaiMagicMagicPageTypeAnnotation": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "adsShoppingWebpxRawShoppingAnnotation": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "amphtmlSignedExchangeErrorDetails": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "amphtmlSignedExchangeValidationPayload": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "analyticsSiteidAnalyticsPropertyAnnotation": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "analyticsSiteidAnalyticsRenderedOutput": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "authenticSiteRankData": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "babelEncoderBabelEncodings": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "badurlsBadurlsForceSelectionSignal": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "boilerplateAnnotations": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "boilerplateVisibleBytesEstimates": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "chromeCounts": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "commerceDataqualityOrganicCrawledSellerData": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "commerceDataqualityOrganicShoppingAnnotationSignal": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "commerceDataqualityOrganicShoppingSiteQuality": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "commonsenseQueriosityGoldmineQnaAnnotations": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "commonsenseScoredCompoundReferenceAnnotation": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "commonsenseStoneSoupProtoRaffiaInstructionsSeq": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "contraContentReviewAnnotations": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "contraCuratedContent": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "countryCountryAttachment": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "crawzallSignal": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "creator": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "datacommonsDatacommonsTriplesSignal": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "dateAnnotationTags": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "dateAnnotations": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "dateRangeAnnotations": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "dateTimeAnnotations": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "discoverSource": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "discussion": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "documentIntent": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "dotsGaramondSignal": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "dotsNewsstandSignal": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "emailAddressAnnotations": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "extractedBookInfo": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "fatcatCompactDocClassification": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "fatcatSiteVerticalsAnnotation": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "firstseen": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "fontsAnalysisAnnotatorFontsAnnotation": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "forumRankingForumPostsSafeSearchAnnotation": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "foundationSplinterSignal": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "freshboxFreshboxArticleAnnotation": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "geoPointAnnotations": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "geoPointResolution": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "geostoreAddressProto": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "i2eV2ImageEntitiesInfos": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "imageContentAnnotationLabels": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "imageContentColorSearchColorDetectionResults": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "imageDataList": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "imageExtraImageExtraTerms": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "imageMonetizationFeaturedDocumentProperties": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "imageMustangFaviconInfo": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "imageMustangWebsearchImageSnippetResponse": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "imageQualityLabelmakerDocMediaLabels": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "imageQualityLandingPageProtoLandingPageSalientTextSet": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "imageQualityLayoutDocument": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "imageQualityRichdataProtoImageAnchor": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "imageQualityRichdataProtoRichdata": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "imageQualitySalientTermsImageQuerySmearingList": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "imageQualitySalientTermsImageSalientTermSetMap": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "imageQualitySensitiveFaceSkinToneSignals": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "imageQualitySensitiveMediaOrPeopleEntities": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "imageRepositoryGeolocation": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "imageRepositoryPicasaGeoData": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "imageSearchRejectedImageInfoList": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "imageStockStockImageAnnotation": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "indexingAnnotationsAnnotationMeta": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "indexingAnnotationsAppMarketAppMarketAnnotation": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "indexingAnnotationsAppsCacheColonAnnotation": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "indexingAnnotationsAppsDocRestrictionsDocPreviewRestrictionsAnnotation": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "indexingAnnotationsAutomobileVinAnnotatorAutomobileVinAnnotations": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "indexingAnnotationsCanonicalUrl": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "indexingAnnotationsCleanTextProto": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "indexingAnnotationsCollectionsDocCollections": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "indexingAnnotationsCommentBlockGroups": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "indexingAnnotationsDatasetModelAnnotation": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "indexingAnnotationsDatesDateTimes": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "indexingAnnotationsDocImportance": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "indexingAnnotationsDocRestrictionsInDocRestrictionsAnnotation": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "indexingAnnotationsEntityPage": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "indexingAnnotationsFeedbackSet": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "indexingAnnotationsIBertEmbeddingAnnotation": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "indexingAnnotationsImageRepositoryImageLicenseInfoAnnotation": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "indexingAnnotationsPcuAmpError": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "indexingAnnotationsPcuSignedExchangeInfo": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "indexingAnnotationsPersonPersonAnnotation": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "indexingAnnotationsSduPageTypeAnnotation": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "indexingAnnotationsSocialLinksSocialLinksAnnotation": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "indexingAnnotationsSubscribewithgoogleSwgAnnotation": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "indexingAnnotationsTwitterEmbeddedTweetsAnnotation": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "indexingAnnotationsTypedNumberTypedNumberAnnotations": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "indexingAnnotationsWaPassagesQueryToPassageAnnotations": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "indexingAnnotationsWaPassagesTrimmedQueryToPassageAnnotations": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "indexingAppsAffiliatedInstantAppInfo": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "indexingAppsMergedAppInfoAnnotation": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "indexingBadpagesBadPageParseResult": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "indexingBadpagesCollapserInfo": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "indexingBadpagesIndexSelectionRemoval": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "indexingBadpagesLoginPageResult": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "indexingBadpagesUnifiedModelFeatures": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "indexingBeringPublisherOnPageAdsAnnotation": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "indexingCenterpieceCenterPieceAnnotations": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "indexingCenterpieceCenterpieceChecksums": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "indexingCenterpieceComponentLearningSource": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "indexingCenterpieceSectionTitleAnnotations": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "indexingConverterContentGenerationInfo": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "indexingConverterContentParserResults": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "indexingConverterFileMetaInfo": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "indexingConverterLinkRelOutlinks": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "indexingConverterMetaDetectorsResultsProto": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "indexingConverterPdfFileMetaInfo": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "indexingConverterPdfPageAnnotations": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "indexingCustomCorpusCdmAnnotations": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "indexingDeepwebStoreListAnnotation": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "indexingDocjoinerServingTimeClusterIds": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "indexingDocjoinerWikiInfo": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "indexingDocskeletonRepeatedPatternRepeatedPatternAnnotation": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "indexingDupsLocalizedLocalizedCluster": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "indexingFreshSchedulerFreshSchedulerDoubleInstantExtension": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "indexingFreshSchedulerOutlinkDiscoveryHistoricalHubsSignal": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "indexingImagesRelatedImageSignal": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "indexingInstantActiveClusterScorerSignal": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "indexingInstantBaseReindexWhitelistData": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "indexingInstantClusterScorerArticle": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "indexingInstantClusterScorerSignal": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "indexingInstantHistoricalContentSignals": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "indexingInstantNewsHighlyCitedDocumentSignal": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "indexingInstantNewsImagesInfo": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "indexingInstantSignalSourceTagsExtension": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "indexingLatticeLatticeAnnotations": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "indexingMetricsUrlIndexingProps": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "indexingMlDomNodeSegments": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "indexingMlEntityInfoboxes": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "indexingMlPageStructure": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "indexingMlSemanticArticle": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "indexingMlShoppingUniverseAnnotation": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "indexingMlVerticalVerticalClassificationResult": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "indexingMlVerticalVerticalClassificationV2": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "indexingMobileClientDependentInfo": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "indexingMobileInterstitialsProtoDesktopInterstitials": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "indexingMobileObelixInfo": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "indexingMobileSmartphoneContentAnnotations": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "indexingMobileSmartphonePatternClassification": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "indexingMobileSpeedPageSpeedFieldData": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "indexingPlusonePlusOneSignal": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "indexingPlusoneSocialScoreSignal": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "indexingRaffiaDataRecoveryInfo": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "indexingRaffiaIndexingIntermediate": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "indexingRaffiaMediaProcessingMetadata": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "indexingRaffiaOverlayCDocAttachment": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "indexingSelectionAcquisitionMetadataAttachment": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "indexingSelectionDoubleIndexingExtension": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "indexingSelectionFastServingPush": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "indexingSelectionFreshdocsPassthroughExtension": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "indexingSelectionImageImageSelectionAttachment": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "indexingSelectionLanguageExtension": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "indexingSelectionPriorScorerParameterSet": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "indexingSelectionProcessingPriorityExtension": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "indexingSelectionProtoBasePromotionInfo": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "indexingSelectionTensorFlowExtension": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "indexingSignalAggregatorUrlPatternSignals": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "indexingSignalsAccumulatedOnlineSignals": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "indexingSignalsImpressionsPerDayContainer": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "indexingSocialCountsSocialWidgetsIndicator": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "indexingSpeechGoldminePodcastAnnotation": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "indexingSpeechSpeechPagePropertiesProto": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "indexingThirdpartyThirdPartyInputs": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "indexingUgcPageParamInfo": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "indexingUnionKeyData": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "indexingUrlPatternUrlTreeUrlPatternAnnotations": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "indexingVideosVideoAnchorSourceInfo": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "indexingVideosVideoPlaylistAnchorSignal": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "indexingWebChannelsWebChannelAnnotations": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "infoextractionPinpointPinpointAnnotationSignal": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "infoextractionPinpointPinpointSignal": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "instantChromeViews": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "instantNavboost": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "knowledgeGraphAcquisitionFeedsQuotesQuotesAnnotation": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "knowledgeMiningFactsDocumentSignals": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "knowledgeMiningFactsFactEvaluationSignals": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "knowledgeMiningFactsHtmlTableSignal": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "knowledgeMiningFactsKatsSignals": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "knowledgeMiningFactsLocalizedFact": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "knowledgeMiningFactsObjectAnnotationsSignal": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "knowledgeMiningFactsProductCompositionSignal": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "knowledgeMiningFactsServingData": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "knowledgeMiningFactsShoppingSignals": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "knowledgeMiningFactsStructuredSnippetsSignal": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "knowledgeMiningFactsUdrExtraFactData": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "knowledgeMiningFactsUdrExtraFactMentionData": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "knowledgeMiningFactsUniversalFactMetadata": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "knowledgeMiningFactsUniversalFactScores": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "knowledgeMiningFactsUniversalTableSignal": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "knowledgeMiningFactsWebKvSiteGroupSignal": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "knowledgeMiningShoppingBrowseonomyData": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "knowledgeMiningShoppingTwdModelVersions": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "knowledgeMumStoryTeaserAnnotation": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "knowledgeMumStorytimeStampEngagementAnnotation": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "knowledgeMumStorytimeStampQualityAnnotation": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "knowledgeTablesTableInternalData": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "knowledgeTablesUniversalTableAnnotations": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "knowledgeTasksUniversalTaskAnnotation": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "knowledgeTpfHowtodoHowtoVideoAnnotation": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "langIdLangReasonerDocumentLanguages": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "lensVsaiDatasets": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "localsearchAuthoritySiteAnnotation": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "localyp": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "mapsSyntheticsGeoDocFetchKey": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "measurementAnnotations": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "metawebExtractionDocumentEvidence": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "modernFormatContent": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "navBoostDocument": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "navboost": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo", + "description": "BEGIN DATA FIELDS" + }, + "newsAnnotationsContentAnnotations": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "newsCorpusHubPageAnnotations": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "newsCorpusLeafPageAnnotation": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "newsCorpusNewsAggregateSignal": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "newsCorpusNewsCorpusAnnotation": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "newsCorpusNewsCorpusRootAnnotation": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo", + "description": "END DATA FIELDS" + }, + "newsCorpusNewsCorpusStatusAnnotation": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "newsCorpusNewsinessAnnotation": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "newsCorpusPositionRankAnnotations": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "newsCrawlFilterNewsLinkCrawlSignal": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "newsExtractionNewsPbeAnnotations": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "newsNarIndexingMetadata": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "newsNarRow": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "newsNarRowContainer": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "newsNearDupsInfo": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "newsNewromanIndexingNewRomanSignal": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "newsNewsArticleChecksum": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "newsNewsClassifications": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "newsNewsContentSignals": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "newsNewsForEducationReadingStatistics": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "newsVideosNewsAnchorSourceInfo": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "newsVideosNewsVideoAnnotationSignals": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "nlpAtcClaraAnnotation": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "nlpSaftDocument": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "nlpSaftNlxDocAnnotatorMigration": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "nlpSaftRodinClassification": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "nlpSentimentSentimentAnnotation": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "nlxDocAnnotation": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "noindexedImageDataList": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "numberAnnotations": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "oceanLibrarianBookMetadata": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "oceanLibrarianPopulatorData": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "oceanLibrarianPopulatorPageData": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "oceanMetadataAllItemSpecificBibdatas": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "oceanMetadataAvailabilityInfoComponent": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "oceanMetadataAvailabilitySnapshot": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "oceanMetadataAvailabilitySnapshotHolder": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "oceanMetadataBibkeyComponent": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "oceanMetadataClusterHorizontalReference": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "oceanMetadataClusterRecord": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "oceanMetadataClusterVolumes": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "oceanMetadataClusteringSeriesSeriesInfo": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "oceanMetadataClusteringTomeHorizontalLinkDescriptor": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "oceanMetadataContributorLinks": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "oceanMetadataItemSpecificBibdataComponent": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "oceanMetadataKgTopicLinks": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "oceanMetadataLanguageInfoComponent": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "oceanMetadataMaterialInfoComponent": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "oceanMetadataParsedAccessTerms": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "oceanMetadataParsedSuDoc": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "oceanMetadataPatentPublicationDetails": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "oceanMetadataPhysicalMeasurementsComponent": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "oceanMetadataPublicDomainInfo": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "oceanMetadataPublicationDetailsComponent": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "oceanMetadataRightsComponent": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "oceanMetadataSeriesInfoComponent": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "oceanMetadataTomeDetailsComponent": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "oceanMetadataTomeMembersComponent": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "oceanMetadataTomePriceInfo": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "oceanReviewsForWork": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "oceanRightsOptOutRequest": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "officialPagesQuerySet": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "perDocLangidData": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "personalizationGameWebeventsConsolidatedEvents": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "personalizationGameWebeventsEvent": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "personalizationGameWebeventsEvents": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "photosGeoAnnotation": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "predictedAuthenticity": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "priceAnnotations": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "qualityAnchorsOutdegreeOutdegreeInfo": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "qualityAnimaLivewebLivewebAttachment": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "qualityAnimaRoutinesRoutinesPropertiesProto": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "qualityAuthorityTopicEmbeddings": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "qualityAuthorshipAuthorAnnotations": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "qualityBreadcrumbsBreadcrumbAnnotations": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "qualityCalypsoAppsLink": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "qualityChardDocument": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "qualityChardPredictedQueryFringeScore": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "qualityChardPredictedXlq": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "qualityContraSelectedAttributions": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "qualityCopiaFireflySiteInfo": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "qualityDiscoverUgcScatScatEmbeddingAnnotation": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "qualityDniNewsstandPcu": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "qualityDniPcuAuxiliaryData": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "qualityDniPcuMetaAnnotation": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "qualityDniPcuParsedData": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "qualityDniPcuRawData": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "qualityExploreQueryableFeedEcsAnnotation": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "qualityExploreQueryableFeedHashtagAnnotation": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "qualityExploreQueryableFeedHashtagListAnnotation": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "qualityExploreQueryableFeedTopicFeedScoringSignals": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "qualityFreshnessAbacusInstantNegativeClicksInfo": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "qualityFringeFringeQueryPrior": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "qualityGeoBrainlocGoldmineBrainlocAnnotation": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "qualityGeoLoglocGoldmineDocumentLocationAnnotation": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "qualityHistoricalContentAge": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "qualityHorizonProtoHorizonEmbeddings": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "qualityHorizonRecordInfoAnnotation": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "qualityImprovDocToQueries": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "qualityImprovImprovAnchors": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "qualityLisztomaniaDocument": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "qualityNavboostCrapsCrapsData": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "qualityNavboostCrapsCrapsPatternSignal": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "qualityNegativeClicksNegativeClicksInfo": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "qualityNlqStructuredSearchAnnotationAnalysisAutomaticExtractionAnnotations": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "qualityNlqStructuredSearchListingPagesListingPageAnnotations": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "qualityNsrDokiAnnotation": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "qualityNsrNsrData": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "qualityNsrNsrSitechunksAnnotation": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "qualityNsrPairwiseqPairwiseQData": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "qualityNsrPqData": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "qualityNsrSiteAuthority": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "qualityNsrUvSitechunksAnnotation": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "qualityOrbitAsteroidBeltIntermediateDocumentIntentScores": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "qualityPagemasterPagemasterAnnotations": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "qualityPanopticIndexingDiscoverCorpusAnnotation": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "qualityPanopticIndexingDiscoverDocumentSignal": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "qualityPanopticIndexingPanopticAnnotation": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "qualityPanopticStorytimeAnnotation": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "qualityPanopticStorytimeScoringSignals": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "qualityPanopticVoiceUgcAnnotation": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "qualityPeoplesearchNamedetectorNameOccurrenceAnnotations": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "qualityPopfeedsChromeBackgroundAnnotation": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "qualityPopfeedsHubDataAnnotations": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "qualityPopfeedsUrlPredictionAnnotations": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "qualityPopfeedsUrlSourceAnnotations": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "qualityPricedetectorKefirPriceAnnotations": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "qualityPricedetectorProductBlockAnnotations": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "qualityProseJsonLdAnnotation": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "qualityProseThumbnailSelection": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "qualityQ2QualityBoost": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "qualityQ2SiteQualityFeatures": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "qualityRealtimeBoostRealtimeBoostEvent": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "qualityRealtimeBoostRealtimeBoostResponse": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "qualityRealtimeBoostSeismographEventAnnotations": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "qualityRealtimeRealtimeResultInfo": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "qualityRealtimeRtFactAnnotations": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "qualityResultFilteringIndexingClusterAnnotations": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "qualityRichsnippetsAppsProtosApplicationInformationAttachment": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "qualityRodinRodinSiteSignal": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "qualitySalientCountriesSalientCountrySet": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "qualitySalientStructuresSalientStructureSet": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "qualitySalientStuffSalientStuffSet": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "qualitySalientTermsQuerySmearingModel": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "qualitySalientTermsSalientTermSet": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "qualitySearchoversiteAnnotatorStructuredResultsAnnotation": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "qualitySherlockKnexAnnotation": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "qualityShoppingProductReview": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "qualityShoppingProductReviewPage": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "qualityShoppingShoppingProductReviewAnnotation": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "qualitySimilarpagesRelatedInfoSignal": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "qualitySitemapDocument": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "qualitySitemapThirdPartyCarouselsItemLists": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "qualitySixfaceSixfaceUrlData": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "qualitySnippetsHiddenTextHiddenSpanAnnotations": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "qualitySnippetsListSnippetsAnnotations": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "qualitySnippetsMetadescriptionDuplicateMetaSiteSignal": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "qualitySnippetsSnippetSpansInfo": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "qualitySosGoldmineSosAnnotation": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "qualitySummarySummary": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "qualityTangramInformationTypes": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "qualityTimebasedTimeSensitivityTimeSensitivityAnnotation": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "qualityTitlesAlternativeTitlesInfo": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "qualityTitlesSitelinksTargetTitleInfo": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "qualityTwiddlerDomainClassification": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "qualityViewsAnswersAnswerAnnotationInfo": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "qualityVisualwebVisualWebAnnotation": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "qualityVisualwebVisualWebModelsAnnotation": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "qualityWebanswersAltTitleSaftDoc": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "qualityWebanswersTranscriptAnnotations": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "qualityWebfeederDocEmbedding": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "qualityWebshineDocResources": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "rankBoostDocAttachment": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "rankembed": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "relativeDateAnnotations": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "repositoryAnnotationsAddressAnnotations": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "repositoryAnnotationsAmenitiesAmenitiesAnnotations": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "repositoryAnnotationsCrawzallAnnotations": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "repositoryAnnotationsDiscussionThreadDiscussionViewProto": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "repositoryAnnotationsLicensedResources": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "repositoryAnnotationsListFilterAnnotations": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "repositoryAnnotationsListSummaryAnnotations": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "repositoryAnnotationsMicrodataMicrodataAnnotations": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "repositoryAnnotationsMicroformatsHproduct": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "repositoryAnnotationsMicroformatsMicroformatAnnotations": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "repositoryAnnotationsPhoneTypePhoneTypeAnnotations": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "repositoryAnnotationsRdfaRdfaAnnotations": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "repositoryAnnotationsRodinArticleAnnotation": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "repositoryAnnotationsSectionHeadingAnnotations": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "repositoryAnnotationsSnippetSegmentSnippetSegmentAnnotations": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "repositoryAnnotationsSporeAuthoritySignal": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "repositoryAnnotationsSporeDeeplinkAnnotations": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "repositoryAnnotationsSporeExtractorTopicAnnotations": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "repositoryAnnotationsSporeExtractorTripleAnnotations": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "repositoryAnnotationsSporeSporeEtlAnnotation": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "repositoryAnnotationsSporeSporeEtlInputAnnotations": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "repositoryAnnotationsStorehoursStoreHoursAnnotations": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "repositoryAnnotationsVerseAnnotations": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "repositoryAnnotationsWebanswersContextItemAnnotations": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "repositoryProtiumEncyclojoinsEncycloJoin": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "repositoryProtiumGoldmineTriplificationResult": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "repositoryProtiumGoldmineTypeAssertionOutput": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "repositoryProtiumWebkvWebKv": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "repositoryProtiumWikiaWikiaInfo": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" }, - "demotedAll": { - "description": "Demoted all anchors in the period or only anchors classified as spam.", - "type": "boolean" + "repositoryUpdaterIndexSelectionAttachment": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" }, - "demotedEnd": { - "description": "End date of the demotion period.", - "format": "uint32", - "type": "integer" + "repositoryWebrefEntityJoin": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" }, - "demotedStart": { - "description": "Start date of the demotion period.", - "format": "uint32", - "type": "integer" + "repositoryWebrefExperimentalWebrefEntitiesAttachment": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" }, - "phraseCount": { - "description": "Following fields record signals used in anchor spam classification. How many spam phrases found in the anchors among unique domains.", - "format": "float", - "type": "number" + "repositoryWebrefGraphMention": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" }, - "phraseDays": { - "description": "Over how many days 80% of these phrases were discovered.", - "format": "float", - "type": "number" + "repositoryWebrefJuggernautIndices": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" }, - "phraseFraq": { - "description": "Spam phrases fraction of all anchors of the document.", - "format": "float", - "type": "number" + "repositoryWebrefPageClassificationAnchorSignalsSet": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" }, - "phraseRate": { - "description": "Average daily rate of spam anchor discovery.", - "format": "float", - "type": "number" + "repositoryWebrefPageClassificationSignalsSet": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" }, - "processed": { - "description": "Total number of processed anchors.", - "format": "uint32", - "type": "integer" + "repositoryWebrefPiannoDocumentIntents": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" }, - "sampled": { - "description": "True if anchors were sampled during observation phrase.", - "type": "boolean" + "repositoryWebrefPiannoTvSeasonEpisode": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" }, - "sources": { - "description": "Detailed information about trusted sources and match computation. Populated only when --anchorspam_penalizer_debug=true.", - "items": { - "$ref": "IndexingDocjoinerAnchorTrustedInfo" - }, - "type": "array" + "repositoryWebrefPreprocessingReferencePageCandidateList": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" }, - "spamDebugInfo": { - "description": "Additional debug information about computation of spam probability.", - "type": "string" + "repositoryWebrefReconcileResponse": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" }, - "spamPenalty": { - "description": "Combined penalty for anchor demotion.", - "format": "float", - "type": "number" + "repositoryWebrefRefconJugglerReferencePageMappings": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" }, - "spamProbability": { - "description": "Predicted probability of spam.", - "format": "float", - "type": "number" + "repositoryWebrefReferencePagesClassifierScoredPage": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" }, - "trustedDemoted": { - "description": "Number of trusted anchors used in computation of spam probability.", - "format": "uint32", - "type": "integer" + "repositoryWebrefSalientEntitySet": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" }, - "trustedExamples": { - "description": "Examples of trusted sources.", - "type": "string" + "repositoryWebrefUndermergedEntities": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" }, - "trustedMatching": { - "description": "Number of trusted anchors with anchor text matching spam terms.", - "format": "uint32", - "type": "integer" + "repositoryWebrefUniversalEmbeddingRetrievalDebug": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" }, - "trustedTarget": { - "description": "Following fields record details about trusted anchors True if is this URL is on trusted source.", - "type": "boolean" + "repositoryWebrefWebitIntermediaryMids": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" }, - "trustedTotal": { - "description": "Total number of trusted sources for this URL.", - "format": "uint32", - "type": "integer" - } - }, - "type": "object" - }, - "IndexingDocjoinerAnchorStatistics": { - "description": "Statistics of the anchors in a docjoin. Next available tag ID: 63.", - "id": "IndexingDocjoinerAnchorStatistics", - "properties": { - "anchorCount": { - "format": "int32", - "type": "integer" + "repositoryWebrefWebitScopeFprint": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" }, - "anchorPhraseCount": { - "description": "The number of unique anchor phrases. Capped by the constant kMaxAnchorPhraseCountInStats (=5000) defined in indexing/docjoiner/anchors/anchor-manager.cc.", - "format": "int32", - "type": "integer" + "repositoryWebrefWebitScopeSignals": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" }, - "anchorSpamInfo": { - "$ref": "IndexingDocjoinerAnchorSpamInfo", - "description": "This structure contains signals and penalties of AnchorSpamPenalizer. It replaces phrase_anchor_spam_info above, that is deprecated." + "repositoryWebrefWebitTripleSignals": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" }, - "anchorsWithDedupedImprovanchors": { - "description": "The number of anchors for which some ImprovAnchors phrases have been removed due to duplication within source org.", - "format": "int32", - "type": "integer" + "repositoryWebrefWebrefEntities": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" }, - "badbacklinksPenalized": { - "description": "Whether this doc is penalized by BadBackLinks, in which case we should not use improvanchor score in mustang ascorer.", - "type": "boolean" + "repositoryWebrefWebrefStatus": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" }, - "baseAnchorCount": { - "format": "int32", - "type": "integer" + "repositoryWebtablesDataTableAnnotations": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" }, - "baseOffdomainAnchorCount": { - "format": "int32", - "type": "integer" + "repositoryWebtablesDataTableMidAnnotation": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" }, - "droppedHomepageAnchorCount": { - "format": "int32", - "type": "integer" + "repositoryWebtablesTranslationMessage": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" }, - "droppedLocalAnchorCount": { - "format": "int32", - "type": "integer" + "repositoryWikipediaAliasList": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" }, - "droppedNonLocalAnchorCount": { - "format": "int32", - "type": "integer" + "repositoryWikipediaAnnotatorWikipediaPageComponentAnnotations": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" }, - "droppedRedundantAnchorCount": { - "description": "Sum of anchors_dropped in the repeated group RedundantAnchorInfo, but can go higher if the latter reaches the cap of kMaxRecordsToKeep. (indexing/docjoiner/anchors/anchor-loader.cc), currently 10,000", - "format": "int32", - "type": "integer" + "repositoryWikipediaSentenceCompressionAnnotation": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" }, - "fakeAnchorCount": { - "format": "int32", - "type": "integer" + "repositoryWikipediaWikiJoin": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" }, - "forwardedAnchorCount": { - "format": "int32", - "type": "integer" + "repositoryWikipediaWikiMapperTripleSet": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" }, - "forwardedOffdomainAnchorCount": { - "format": "int32", - "type": "integer" + "repositoryWikipediaWikibaseEntity": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" }, - "globalAnchorDelta": { - "description": "Metric of number of changed global anchors computed as, size(union(previous, new) - intersection(previous, new)).", - "format": "int32", - "type": "integer" + "repositoryWikipediaWikidataOrgTripleSet": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" }, - "linkBeforeSitechangeTaggedAnchors": { - "format": "int32", - "type": "integer" + "repositoryWikipediaWikitrustWikiTrustInfo": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" }, - "localAnchorCount": { - "format": "int32", - "type": "integer" + "researchCoauthorOpinionAnnotations": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" }, - "lowCorpusAnchorCount": { - "format": "int32", - "type": "integer" + "researchStructuredDataInadvertentAnchorScoreAnnotation": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" }, - "lowCorpusOffdomainAnchorCount": { - "format": "int32", - "type": "integer" + "researchStructuredDataKnowledgeExplorationAnnotations": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" }, - "mediumCorpusAnchorCount": { - "format": "int32", - "type": "integer" + "researchStructuredDataNewsEmbeddingAnnotations": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" }, - "mediumCorpusOffdomainAnchorCount": { - "format": "int32", - "type": "integer" + "richsnippetsDataObject": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" }, - "minDomainHomePageLocalOutdegree": { - "description": "Minimum local outdegree of all anchor sources that are domain home pages as well as on the same domain as the current target URL.", - "format": "int32", - "type": "integer" + "richsnippetsFeedPageMap": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" }, - "minHostHomePageLocalOutdegree": { - "description": "Minimum local outdegree of all anchor sources that are host home pages as well as on the same host as the current target URL.", - "format": "int32", - "type": "integer" + "richsnippetsPageMap": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" }, - "nonLocalAnchorCount": { - "format": "int32", - "type": "integer" + "richsnippetsPageMapAnnotations": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" }, - "offdomainAnchorCount": { - "format": "int32", - "type": "integer" + "richsnippetsSchemaThing": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" }, - "ondomainAnchorCount": { - "format": "int32", - "type": "integer" + "rosettaLanguage": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" }, - "onsiteAnchorCount": { - "format": "int32", - "type": "integer" + "safesearchPageClassifierOutput": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" }, - "pageFromExpiredTaggedAnchors": { - "description": "Set in SignalPenalizer::FillInAnchorStatistics.", - "format": "int32", - "type": "integer" + "safesearchSafeSearchInternalPageSignals": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" }, - "pageMismatchTaggedAnchors": { - "format": "int32", - "type": "integer" + "scienceIndexSignal": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" }, - "penguinEarlyAnchorProtected": { - "description": "Doc is protected by goodness of early anchors.", - "type": "boolean" + "searchEngagementHighlightSharedHighlightSignal": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" }, - "penguinLastUpdate": { - "description": "BEGIN: Penguin related fields. Timestamp when penguin scores were last updated. Measured in days since Jan. 1st 1995.", - "format": "int32", - "type": "integer" + "searcharSearchArPipelineSignal": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" }, - "penguinPenalty": { - "description": "Page-level penguin penalty (0 = good, 1 = bad).", - "format": "float", - "type": "number" + "shoppingQualityShoppingSiteClassifier": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" }, - "penguinTooManySources": { - "description": "Doc not scored because it has too many anchor sources. END: Penguin related fields.", - "type": "boolean" + "shoppingQualityShoppingSiteClassifierShopfab": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" }, - "perdupstats": { - "items": { - "$ref": "IndexingDocjoinerAnchorStatisticsPerDupStats" - }, - "type": "array" + "shoppingWebentityShoppingAnnotation": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" }, - "phraseAnchorSpamInfo": { - "$ref": "IndexingDocjoinerAnchorPhraseSpamInfo", - "description": "Following signals identify spike of spammy anchor phrases. Anchors created during the spike are tagged with LINK_SPAM_PHRASE_SPIKE." + "sitemapsSitemapsSignals": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" }, - "redundantAnchorForPhraseCapCount": { - "description": "Total anchor dropped due to exceed per domain phrase cap. Equals to sum of anchors_dropped in the repeated group RedundantAnchorInfoForPhraseCap, but can go higher if the latter reaches the cap of kMaxDomainsToKeepForPhraseCap (indexing/docjoiner/anchors/anchor-loader.h), currently 1000.", - "format": "int32", - "type": "integer" + "smearingSmearedTerms": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" }, - "redundantanchorinfo": { - "items": { - "$ref": "IndexingDocjoinerAnchorStatisticsRedundantAnchorInfo" - }, - "type": "array" + "socialPersonalizationKnexAnnotation": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" }, - "redundantanchorinfoforphrasecap": { - "items": { - "$ref": "IndexingDocjoinerAnchorStatisticsRedundantAnchorInfoForPhraseCap" - }, - "type": "array" + "spamBrainSpamBrainData": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" }, - "scannedAnchorCount": { - "description": "The total number of anchors being scanned from storage.", - "format": "int32", - "type": "integer" + "spamBrainSpamBrainPageClassifierAnnotation": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" }, - "skippedAccumulate": { - "description": "A count of the number of times anchor accumulation has been skipped for this document. Note: Only used when canonical.", - "format": "int32", - "type": "integer" + "spamContentAnchorDist": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" }, - "skippedOrReusedReason": { - "description": "Reason to skip accumulate, when skipped, or Reason for reprocessing when not skipped.", - "type": "string" + "spamContentAuthenticAuthenticTextAnnotation": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" }, - "spamLog10Odds": { - "description": "The log base 10 odds that this set of anchors exhibits spammy behavior. Computed in the AnchorLocalizer.", - "format": "float", - "type": "number" + "spamContentImageMapPb": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" }, - "timestamp": { - "description": "Walltime of when anchors were accumulated last.", - "format": "int32", - "type": "integer" + "spamContentSiteAgeStats": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" }, - "topPrOffdomainAnchorCount": { - "format": "int32", - "type": "integer" + "spamCookbookCookbookAnnotations": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" }, - "topPrOndomainAnchorCount": { - "format": "int32", - "type": "integer" + "spamCookbookCookbookSitechunkAnnotations": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" }, - "topPrOnsiteAnchorCount": { - "description": "According to anchor quality bucket, anchor with pagrank \u003e 51000 is the best anchor. anchors with pagerank \u003c 47000 are all same.", - "format": "int32", - "type": "integer" + "spamFatpingIndexFeed": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" }, - "totalDomainPhrasePairsAboveLimit": { - "description": "The following should be equal to the size of the following repeated group, except that it can go higher than 10,000.", - "format": "int32", - "type": "integer" + "spamGodclusterAffIdAnnotation": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" }, - "totalDomainPhrasePairsSeenApprox": { - "description": "Number of domain/phrase pairs in total -- i.e. how many anchors we would have if the domain/phrase cutoff was set to 1 instead of 200. This is \"approx\" for large anchor clusters because there can be double counting when the LRU cache forgets about rare domain/phrase pairs.", - "format": "int32", - "type": "integer" + "spamGodclusterServerHeaderAnnotation": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" }, - "totalDomainsAbovePhraseCap": { - "description": "Number of domains above per domain phrase cap. We see too many phrases in the domains.", - "format": "int32", - "type": "integer" + "spamGooglebombsGooglebombsAnnotation": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" }, - "totalDomainsSeen": { - "description": "Number of domains seen in total.", - "format": "int32", - "type": "integer" - } - }, - "type": "object" - }, - "IndexingDocjoinerAnchorStatisticsPerDupStats": { - "description": "------------------------------------------------------------------------- The total number of anchors collected per dupforwarding (including the canonical itself). Includes additional data about redundant and offdomain counts and the last timestamp it was collected from.", - "id": "IndexingDocjoinerAnchorStatisticsPerDupStats", - "properties": { - "anchorCount": { - "description": "Count of anchors kept from forwarding.", - "format": "int32", - "type": "integer" + "spamHackedSitesDocSpamInfo": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" }, - "collectType": { - "description": "This is EcnCollectType in anchor-ecn-matcher.h for the latest ECN of this dup: - kCollectNormal = 0, // Normal collection. - kCollectUnforwarded = 1, // Forwarding leader docid match only. - kCollectWhitelisted = 2, // Collected anchors matching whitelist. - kCollectNone = 4 // Skipped ECN anchor cluster.", - "format": "int32", - "type": "integer" + "spamHackedSitesGpgbGpgbNgramStats": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" }, - "dupUrl": { - "description": "If missing, the same as the canonical.", - "type": "string" + "spamHackedSitesWordFrequencies": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" }, - "offdomainAnchorCount": { - "description": "Count of offdomain anchors.", - "format": "int32", - "type": "integer" + "spamJsJsInfo": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" }, - "redundantAnchorCount": { - "description": "Count of redundant anchors.", - "format": "int32", - "type": "integer" + "spamScamScamness": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" }, - "scannedAnchorCount": { - "description": "The number of anchors being scanned from storage per dupforwarding.", - "format": "int32", - "type": "integer" + "spamScamUnauthoritativeSite": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" }, - "timestamp": { - "description": "Walltime when this was scanned last.", - "format": "int32", - "type": "integer" - } - }, - "type": "object" - }, - "IndexingDocjoinerAnchorStatisticsRedundantAnchorInfo": { - "description": "------------------------------------------------------------------------- The total number of redundant anchors dropped per (domain, text). If we receive a large number of anchors from a particular domain, then we'll throw out all but 200 of them from that domain. The data is sorted by the (domain, text) pairs. This is capped at 10,000 entries (if less, it will have the same number of elements as the above_limit count).", - "id": "IndexingDocjoinerAnchorStatisticsRedundantAnchorInfo", - "properties": { - "anchorsDropped": { - "format": "int64", - "type": "string" + "spamTokensSpamTokensAnnotation": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" }, - "domain": { - "type": "string" + "tableTalkStrideOfferPagePriceAnnotation": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" }, - "text": { - "type": "string" - } - }, - "type": "object" - }, - "IndexingDocjoinerAnchorStatisticsRedundantAnchorInfoForPhraseCap": { - "id": "IndexingDocjoinerAnchorStatisticsRedundantAnchorInfoForPhraseCap", - "properties": { - "anchorsDropped": { - "format": "int32", - "type": "integer" + "tasksTabaTabaDocSignals": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" }, - "domain": { - "type": "string" - } - }, - "type": "object" - }, - "IndexingDocjoinerAnchorTrustedInfo": { - "description": "This message summarized anchors of one trusted site.", - "id": "IndexingDocjoinerAnchorTrustedInfo", - "properties": { - "matchedScore": { - "description": "Difference in KL-divergence from spam and non-spam anchors. Value \u003e0 indicate that anchor text from this trusted source is similar to anchors classified as spam which means that spammy anchors are legitimate.", - "format": "float", - "type": "number" + "telephoneNumberAnnotations": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" }, - "matchedScoreInfo": { - "description": "Detailed debug information about computation of trusted anchors match. Populated only when --anchorspam_penalizer_debug=true", - "items": { - "type": "string" - }, - "type": "array" + "timeAnnotationTags": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" }, - "phrasesScore": { - "description": "Count of anchors classified as spam using anchor text.", - "format": "float", - "type": "number" + "timeAnnotations": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" }, - "site": { - "description": "Site name from anchor.source().site().", - "type": "string" + "timeRangeAnnotations": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" }, - "text": { - "description": "Tokenized text of all anchors from the site.", - "items": { - "type": "string" - }, - "type": "array" + "travelAssistantTravelDocClassification": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" }, - "trustedScore": { - "description": "Fraction of pages with newsy anchors on the site, \u003e0 for trusted sites.", - "format": "float", - "type": "number" - } - }, - "type": "object" - }, - "IndexingDocjoinerCDocBuildInfo": { - "description": "Holds extra info except annotations and raw cdoc for buildint the final cdoc.", - "id": "IndexingDocjoinerCDocBuildInfo", - "properties": { - "extraMessage": { - "$ref": "Proto2BridgeMessageSet" - } - }, - "type": "object" - }, - "IndexingDocjoinerDataVersion": { - "description": "DataVersion tracks the version of data in CompositeDoc. The notion of \"data\" here is loose and people can define the name of their own. For example, a signal generated by Index Signals or an annotation generated by Goldmine (and other components) can all be considered as data here. Each field in this proto represents the human readable version string and the timestamp of one particular data. We choose to explicitly list out all of the data here for better understanding about which data are tracked. NOTE that human_readable_version is not intended for comparison, use timestamp_micros. In addition, we have an annotation about the field paths of each data. With proto reflection (using google3/net/proto2/util/public/field_path.h), downstream systems can take advantage of this annotation to automatically handle newly introduced data without modifying their code. Please also see the comment of FieldProjector above. There are also some fields in DataInfo that annotate who generates the data, the Index Signals or Goldmine annotator name.", - "id": "IndexingDocjoinerDataVersion", - "properties": { - "acceleratedShoppingSignal": { + "udrConverterDocumentShoppingData": { "$ref": "IndexingDocjoinerDataVersionVersionInfo" }, - "authenticSiteRankData": { + "udrConverterOffer": { "$ref": "IndexingDocjoinerDataVersionVersionInfo" }, - "chromeCounts": { + "udrConverterProductBlockData": { "$ref": "IndexingDocjoinerDataVersionVersionInfo" }, - "creator": { + "udrProtoDetailedEntityScores": { "$ref": "IndexingDocjoinerDataVersionVersionInfo" }, - "discoverSource": { + "udrProtoOverlay": { "$ref": "IndexingDocjoinerDataVersionVersionInfo" }, - "discussion": { + "udrProtoWebrefMention": { "$ref": "IndexingDocjoinerDataVersionVersionInfo" }, - "documentIntent": { + "universalFacts": { "$ref": "IndexingDocjoinerDataVersionVersionInfo" }, - "extractedBookInfo": { + "unwantedImageDataList": { "$ref": "IndexingDocjoinerDataVersionVersionInfo" }, - "instantChromeViews": { + "uriAnnotations": { "$ref": "IndexingDocjoinerDataVersionVersionInfo" }, - "instantNavboost": { + "utilStatusProto": { "$ref": "IndexingDocjoinerDataVersionVersionInfo" }, - "localyp": { + "verticalsDiscussionDiscussionAnnotationTag": { "$ref": "IndexingDocjoinerDataVersionVersionInfo" }, - "modernFormatContent": { + "videoCrawlAutomatedAudioExtractionSignals": { "$ref": "IndexingDocjoinerDataVersionVersionInfo" }, - "navboost": { + "videoCrawlAutomatedExtractionSignals": { "$ref": "IndexingDocjoinerDataVersionVersionInfo" }, - "predictedAuthenticity": { + "videoCrawlDomainVideoClickData": { "$ref": "IndexingDocjoinerDataVersionVersionInfo" }, - "rankembed": { + "videoCrawlVideoClickData": { "$ref": "IndexingDocjoinerDataVersionVersionInfo" }, - "rosettaLanguage": { + "videoCrawlVideoSalientTermSet": { "$ref": "IndexingDocjoinerDataVersionVersionInfo" }, - "universalFacts": { + "videoCrawlVideoScoringSignals": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "videoCrawlWatchPagePatternClassification": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "videoCrawlYoutubeEmbedSignal": { "$ref": "IndexingDocjoinerDataVersionVersionInfo" }, "videoScoringSignal": { "$ref": "IndexingDocjoinerDataVersionVersionInfo" }, + "videoWebGallery": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "videoYoutubeLiveCardioCardioStats": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, "volt": { "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "watchpageLanguageWatchPageLanguageResult": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "websitetoolsFeedsAnnotationsFeedContentAnnotations": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "websitetoolsFeedsLinkedFeedLinkedFeed": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "websitetoolsFeedsPodcastPodcastSignals": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "websitetoolsFeedsSporeFeedsSporeTriples": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "whatshappStrideExtractions": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "youtubeAlexandriaYoutubeBody": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "youtubeAlexandriaYoutubeSignal": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" } }, "type": "object" @@ -77053,14 +78731,12 @@ "enum": [ "NO_EQUIVALENT", "EQUIVALENT", - "MUNIN_SYNONYM", - "SYNONYM" + "MUNIN_SYNONYM" ], "enumDescriptions": [ "Not equivalent.", "Equivalent to the other entity.", - "The related entity is a synonym added to Munin interpretation.", - "The related entity is a synonym." + "The related entity is a synonym added to Munin interpretation." ], "type": "string" }, @@ -80425,7 +82101,7 @@ "type": "object" }, "PerDocData": { - "description": "=========================================================================== # Make sure you read the comments in the bottom before you add any new field. NB: As noted in the comments, this protocol buffer is used in both indexing and serving. In mustang serving implementations we only decode perdocdata during the search phase, and so this protocol should only contain data used during search. See mustang/repos_www/attachments.proto:{MustangBasicInfo,MustangContentInfo} for protocols used during search and/or docinfo. Next available tag deprecated, use this (and look for commented out fields): blaze-bin/net/proto_compiler/protocol-compiler --freetags \\ indexer/perdocdata/perdocdata.proto Next tag: 222", + "description": "=========================================================================== # Make sure you read the comments in the bottom before you add any new field. NB: As noted in the comments, this protocol buffer is used in both indexing and serving. In mustang serving implementations we only decode perdocdata during the search phase, and so this protocol should only contain data used during search. See mustang/repos_www/attachments.proto:{MustangBasicInfo,MustangContentInfo} for protocols used during search and/or docinfo. Next available tag deprecated, use this (and look for commented out fields): blaze-bin/net/proto_compiler/protocol-compiler --freetags \\ indexer/perdocdata/perdocdata.proto Next tag: 223", "id": "PerDocData", "properties": { "BlogData": { @@ -83636,10 +85312,6 @@ "description": "A protocol buffer to store the url, referer and porn flag for a url. and an optional image score. Next available tag id: 51.", "id": "PornFlagData", "properties": { - "coclickBrainScores": { - "$ref": "ImageSafesearchContentBrainPornAnnotation", - "description": "Aggregated brain_porn_scores for navboost co-clicked images. Historical: this signal is deprecated and no longer populated as of 2020-12-01. Refer to b/172897542 for more information." - }, "csaiScore": { "description": "Score predicting how likely an image is offensive or suggestive about CSAI (child sexual abuse imagery).", "format": "float", @@ -84146,7 +85818,7 @@ "type": "object" }, "PtokenPToken": { - "description": "PToken expresses policy-relevant properties of the data objects being processed and stored in Google's production systems. See go/ptoken to learn more. PTokens are intentionally opaque: go/ptokens-are-opaque. The following should be considered implementation details. Next ID: 8 INTERNAL: If both the Scalar and the Compound extensions are populated, we use the Compound and discard the Scalar. In principle, this should never happen.", + "description": "PToken expresses policy-relevant properties of the data objects being processed and stored in Google's production systems. See go/ptoken to learn more. PTokens are intentionally opaque: go/ptokens-are-opaque. The following should be considered implementation details. Next ID: 9 INTERNAL: If both the Scalar and the Compound extensions are populated, we use the Compound and discard the Scalar. In principle, this should never happen.", "id": "PtokenPToken", "properties": {}, "type": "object" @@ -89254,9 +90926,9 @@ "SEQUENCE", "SEQUENCE_V2", "FULL", - "FULL_V2", "META", "LEADING_TEXT", + "FULL_V2", "SAFT_SENTENCE", "RADISH_SENTENCE", "RADISH_LIST", @@ -89269,9 +90941,9 @@ "A sequence snippet is generated from query term matches (from meta and body sections) and typically consists of multiple tidbits. Currently we only keep one single best combination of the retrieved tidbits.", "", "A full snippet is also generated from query term matches. Unlike the sequence snippet, this only consists of one expanded tidbit that are scored as the best single tidbit among the retrieved tidbits.", - "", "This is a leading text of meta description.", "This is a leading text of main body text (skipping headers), and its starting position is typically identified in the indexing phase.", + "Similar to FULL snippet, but this allows multiple candidates.", "saft sentences.", "Candidates created from radish attachment.", "", @@ -90697,7 +92369,7 @@ "type": "string" }, "source": { - "description": "LINT.ThenChange(//depot/google3/assistant/verticals/communication/\\ fulfillment/proto/contact_logging_enums.proto, //depot/google3/assistant/api/dialog_state/values/person.proto) Data source of the contact data.", + "description": "LINT.ThenChange(//depot/google3/assistant/verticals/communication/\\ fulfillment/proto/contact_logging_enums.proto, //depot/google3/assistant/api/dialog_state/values/person.proto, //depot/google3/assistant/context/proto/person.proto) Data source of the contact data.", "enum": [ "FOCUS_CONTACT", "DEVICE_CONTACT", @@ -90709,7 +92381,8 @@ "SHARED_CONTACT", "FAMILY_MEMBER", "SHARED_DEVICE_USER", - "ON_DEVICE_CONTACT_LOOKUP" + "ON_DEVICE_CONTACT_LOOKUP", + "APP_SEARCH_CONTACT" ], "enumDescriptions": [ "Contacts from Focus", @@ -90722,7 +92395,8 @@ "Contacts shared from other users. See go/multi-user-shared-contact.", "People in the user's family group in http://families.google.com who are not contacts.", "People who share a device with the user who are not contacts.", - "Contacts from on device lookup during contact fulfillment." + "Contacts from on device lookup during contact fulfillment.", + "Contacts from AppSearch." ], "type": "string" } @@ -94076,6 +95750,7 @@ "VIDEO_OCR", "IMAGE_OCR", "LENS", + "VIDEO_DESCRIPTION", "ONLY_LOOKUP_METADATA", "EMBEDDED_CONTENT" ], @@ -94121,6 +95796,7 @@ "", "", "", + "", "Entries which are created in order to instruct the fprint-loader to load metadata for the contained ngrams.", "The embedded content in the document (e.g., within json scripts)." ], @@ -96022,6 +97698,7 @@ "VIDEO_OCR", "IMAGE_OCR", "LENS", + "VIDEO_DESCRIPTION", "ONLY_LOOKUP_METADATA", "EMBEDDED_CONTENT" ], @@ -96067,6 +97744,7 @@ "", "", "", + "", "Entries which are created in order to instruct the fprint-loader to load metadata for the contained ngrams.", "The embedded content in the document (e.g., within json scripts)." ], @@ -98534,7 +100212,8 @@ "VIDEO_TRANSCRIPT", "VIDEO_OCR", "IMAGE_OCR", - "LENS" + "LENS", + "VIDEO_DESCRIPTION" ], "enumDescriptions": [ "The document content (excluding the title) or the text of the query.", @@ -98553,7 +100232,8 @@ "The transcript of a video.", "The ocr text of a video.", "The ocr text of an image.", - "Fake segment that contains all Lens entity mids in a given image." + "Fake segment that contains all Lens entity mids in a given image.", + "The video description coming from VideoScoringSignal" ], "type": "string" }, @@ -98737,7 +100417,8 @@ "VIDEO_TRANSCRIPT", "VIDEO_OCR", "IMAGE_OCR", - "LENS" + "LENS", + "VIDEO_DESCRIPTION" ], "enumDescriptions": [ "The document content (excluding the title) or the text of the query.", @@ -98756,7 +100437,8 @@ "The transcript of a video.", "The ocr text of a video.", "The ocr text of an image.", - "Fake segment that contains all Lens entity mids in a given image." + "Fake segment that contains all Lens entity mids in a given image.", + "The video description coming from VideoScoringSignal" ], "type": "string" } @@ -98792,7 +100474,8 @@ "VIDEO_TRANSCRIPT", "VIDEO_OCR", "IMAGE_OCR", - "LENS" + "LENS", + "VIDEO_DESCRIPTION" ], "enumDescriptions": [ "The document content (excluding the title) or the text of the query.", @@ -98811,7 +100494,8 @@ "The transcript of a video.", "The ocr text of a video.", "The ocr text of an image.", - "Fake segment that contains all Lens entity mids in a given image." + "Fake segment that contains all Lens entity mids in a given image.", + "The video description coming from VideoScoringSignal" ], "type": "string" } @@ -98950,7 +100634,7 @@ "type": "object" }, "RepositoryWebrefSimplifiedCompositeDoc": { - "description": "Represents an information which is very close to composite doc, but compresses how the anchors are represented to save space. Next available tag: 15.", + "description": "Represents an information which is very close to composite doc, but compresses how the anchors are represented to save space. Next available tag: 16.", "id": "RepositoryWebrefSimplifiedCompositeDoc", "properties": { "anchors": { @@ -99014,7 +100698,10 @@ "description": "The URL, populated independently of whether we have a CompositeDoc proto. If the cdoc exists, the url is the same as CompositeDoc.doc.url.", "type": "string" }, - "webrefOutlinks": { + "webrefOutlinkInfos": { + "$ref": "RepositoryWebrefWebrefOutlinkInfos" + }, + "webrefOutlinksLegacy": { "$ref": "Proto2BridgeMessageSet" } }, @@ -105711,9 +107398,9 @@ "SEQUENCE", "SEQUENCE_V2", "FULL", - "FULL_V2", "META", "LEADING_TEXT", + "FULL_V2", "SAFT_SENTENCE", "RADISH_SENTENCE", "RADISH_LIST", @@ -105726,9 +107413,9 @@ "A sequence snippet is generated from query term matches (from meta and body sections) and typically consists of multiple tidbits. Currently we only keep one single best combination of the retrieved tidbits.", "", "A full snippet is also generated from query term matches. Unlike the sequence snippet, this only consists of one expanded tidbit that are scored as the best single tidbit among the retrieved tidbits.", - "", "This is a leading text of meta description.", "This is a leading text of main body text (skipping headers), and its starting position is typically identified in the indexing phase.", + "Similar to FULL snippet, but this allows multiple candidates.", "saft sentences.", "Candidates created from radish attachment.", "", @@ -112839,6 +114526,9 @@ "CLICKED_INSTALL_IN_DEEP_LINK_DETAILS", "ONE_TIME_PRODUCT_VARIANT_OFFER_DARK_LAUNCH_SESSION_LEVEL", "ONE_TIME_PRODUCT_VARIANT_OFFER_LAUNCH_SESSION_LEVEL", + "AMPLIFY_FORM_OF_PAYMENT_ABANDONMENT_ELIGIBLE_SESSION_LEVEL", + "SUBSCRIPTION_FREE_TRIAL_OFFER_HIGHLIGHT_SESSION_LEVEL", + "SUBSCRIPTION_INTRO_PRICE_OFFER_HIGHLIGHT_SESSION_LEVEL", "SESSION_LEVEL_TEST_CODE_LIMIT", "CART_ABANDONMENT_USER_LEVEL", "IN_APP_PRODUCTS_IN_DETAILS_PAGE_USER_LEVEL", @@ -113121,6 +114811,7 @@ "FOP_PARTNER_PROMOTION_USER_LEVEL", "BOOKS_LOYALTY_PROMO_BANNER_WEEKLY_PRIZE_USER_LEVEL", "IS_ELIGIBLE_FOR_DYNAMIC_AUTH_USER_LEVEL", + "GE_LIVEOPS_PSPEND_USER_LEVEL", "USER_LEVEL_TEST_CODE_LIMIT" ], "enumDescriptions": [ @@ -114032,6 +115723,9 @@ "Session level test code for users who click install in the details page for the post-install redirection experiment.", "", "", + "Session level test code that indicates the user is eligible for an abandonment screen for a form of payment to be amplified.", + "Session level test code for subscription with free trial offer highlight buyflow.", + "Session level test code for subscription with intro price offer highlight buyflow.", "", "Cart abandonment flow for purchase flow.", "User saw/would have seen the in app products section in App", @@ -114314,6 +116008,7 @@ "User level test code for FOP Partner Promo.", "User level test code for users who have seen a Loyalty weekly prize banner.", "User level test code for users who are eligible for dynamic auth.", + "User level test code for LiveOps pSpend uplift experiment. If GE campaign decision changed after enabling pSpend model, log test code.", "" ], "type": "string" @@ -115948,6 +117643,9 @@ "ADSBURST_DISCOVERY_NERV_SUBS_V1", "ADSBURST_BASIC_TEXT_TOWER_V0", "ADSBURST_V2", + "ADSBURST_V2_128D", + "ADSBURST_V2_64D", + "ADSBURST_V2_32D", "SHOPPING_IMAGE_TRANSFORMATION_UNCROP", "SHOPPING_IMAGE_TRANSFORMATION_V2", "SCREENAI_V1", @@ -116054,6 +117752,9 @@ "", "", "", + "", + "", + "", "Shopping image transformation versions.", "", "ScreenAI versions. IconNet.", diff --git a/contentwarehouse/v1/contentwarehouse-gen.go b/contentwarehouse/v1/contentwarehouse-gen.go index 2b0a737a5c0..43c188f4f01 100644 --- a/contentwarehouse/v1/contentwarehouse-gen.go +++ b/contentwarehouse/v1/contentwarehouse-gen.go @@ -3219,6 +3219,7 @@ type AppsPeopleOzExternalMergedpeopleapiAffinity struct { // "ACCESSIBILITY_TRACKER_AFFINITY" // "PLX_DATASOURCE_AFFINITY" // "DUCKIEWEB_AFFINITY" + // "MEET_CALLING_AFFINITY" AffinityType string `json:"affinityType,omitempty"` // ContainerId: The ID of the container @@ -11772,6 +11773,7 @@ type AssistantApiClientOpPropertiesDeviceModifySettingClientOpProperty struct { // "SIM_STATUS" // "MICROPHONE_PERMISSIONS" - Permission Manager > Microphone // "GOOGLE_PLAY_UPDATE" + // "ADD_GOOGLE_ACCOUNT" // "ABOUT_PHONE" - Begin of NGA proto consistence // "ACCOUNTS" // "APPLICATION" @@ -21723,8 +21725,10 @@ type AssistantDevicesPlatformProtoAlarmCapability struct { // SupportsGenericMutations: Whether the client supports mutation of any // alarm attribute such as time_pattern, recurrence_pattern, etc through - // the MUTATE action. If this is false, MUTATE may only be used for - // changing the alarm's status (to e.g. disable or dismiss the alarm). + // the MUTATE action. If this is false, MUTATE may only be used to + // disable or dismiss an alarm. This field is true by default for + // backwards-compatibility; clients which don't support mutation outside + // of Disable/DismissAlarm should explicitly set this to false. SupportsGenericMutations bool `json:"supportsGenericMutations,omitempty"` // SupportsStopAction: Whether the client supports the STOP alarm @@ -22104,6 +22108,9 @@ func (s *AssistantDevicesPlatformProtoExecutionConfig) MarshalJSON() ([]byte, er return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +type AssistantDevicesPlatformProtoExecutionWaitCapability struct { +} + type AssistantDevicesPlatformProtoInlinedActionCapability struct { // Alarm: Specifies capabilities for handling on-device alarms. The // presence of this field, even if empty, implies that the device @@ -22571,7 +22578,7 @@ type AssistantDevicesPlatformProtoSendChatMessageCapability struct { // AssistantDevicesPlatformProtoSupportedDeviceOps: This message will // specify supports for fields in |assistant.embedded.v1.DeviceOp|, for // a device model package. See go/easi-client-op2 for more info. Next -// ID: 16 +// ID: 17 type AssistantDevicesPlatformProtoSupportedDeviceOps struct { // CallCall: |call_call| specifies the support for the call.CALL // clientop, and the corresponding call_call field in @@ -22600,6 +22607,11 @@ type AssistantDevicesPlatformProtoSupportedDeviceOps struct { // field in assistant.embedded.v1.DeviceOp. DeviceTakePhoto *AssistantDevicesPlatformProtoDeviceTakePhotoCapability `json:"deviceTakePhoto,omitempty"` + // ExecutionWait: |execution_wait| specifies the support for + // execution.WAIT client_op, and the corresponding execution_wait field + // in assistant.embedded.v1.DeviceOp. + ExecutionWait *AssistantDevicesPlatformProtoExecutionWaitCapability `json:"executionWait,omitempty"` + MediaNext *AssistantDevicesPlatformProtoMediaNextCapability `json:"mediaNext,omitempty"` MediaPause *AssistantDevicesPlatformProtoMediaPauseCapability `json:"mediaPause,omitempty"` @@ -22982,6 +22994,7 @@ type AssistantGroundingRankerContactGroundingProviderFeatures struct { // are not contacts. // "ON_DEVICE_CONTACT_LOOKUP" - Contacts from on device lookup during // contact fulfillment. + // "APP_SEARCH_CONTACT" - Contacts from AppSearch. ContactSource string `json:"contactSource,omitempty"` // IsRelationshipFromAnnotation: Whether the query is a relationship @@ -24429,6 +24442,7 @@ type AssistantLogsCommunicationPersonalContactDataLog struct { // are not contacts. // "ON_DEVICE_CONTACT_LOOKUP" - Contacts from on device lookup during // contact fulfillment. + // "APP_SEARCH_CONTACT" - Contacts from AppSearch. Source string `json:"source,omitempty"` // SystemContactGroupId: Integer value corresponding to @@ -24660,6 +24674,7 @@ func (s *AssistantLogsDeviceAnnotationLog) MarshalJSON() ([]byte, error) { } // AssistantLogsDeviceInfoLog: The information related to the device. +// Next ID: 18 type AssistantLogsDeviceInfoLog struct { // ArbitrationDeviceId: Device identifier string for the current device // used in the arbitration service. @@ -24735,6 +24750,9 @@ type AssistantLogsDeviceInfoLog struct { // "LABELER" - labeler EliminatingLumosProcessor string `json:"eliminatingLumosProcessor,omitempty"` + // HomeStructureId: The home structure id of the device. + HomeStructureId string `json:"homeStructureId,omitempty"` + IsRemote bool `json:"isRemote,omitempty"` // IsTethered: This flag indicates this is a non-local device that is @@ -26485,6 +26503,7 @@ type AssistantPrefulfillmentRankerPrefulfillmentSignals struct { // Listen_to_media, Media_entity_bare, Play_and_shuffle_media // "SUB_INTENT_TYPE_MUSIC_INITIATION_INTENT" - Play_media // "SUB_INTENT_TYPE_PLAY_RADIO_INTENT" - Play_media + // "SUB_INTENT_TYPE_PLAY_TVM_INTENT" - Play_media SubIntentType string `json:"subIntentType,omitempty"` // TopHypothesisConfidence: Average of per-word confidence for top @@ -27436,7 +27455,7 @@ func (s *AssistantVerticalsHomeautomationProtoHomeAutomationDeviceItem) MarshalJ } // AssistantVerticalsHomeautomationProtoHomeAutomationMetaData: Next ID: -// 43 +// 44 type AssistantVerticalsHomeautomationProtoHomeAutomationMetaData struct { // ActionProjectConfigs: Custom actions that this item supports. ActionProjectConfigs []*AssistantVerticalsHomeautomationProtoActionProjectConfig `json:"actionProjectConfigs,omitempty"` @@ -27489,6 +27508,9 @@ type AssistantVerticalsHomeautomationProtoHomeAutomationMetaData struct { // devices via LAN for the structure. LanscanOptedIn bool `json:"lanscanOptedIn,omitempty"` + // MatterUniqueId: Matter Unique ID. Contains VID/PID information + MatterUniqueId *AssistantVerticalsHomeautomationProtoMatterUniqueId `json:"matterUniqueId,omitempty"` + // ModelName: Model name from HomeGraph, populated from // model_manifest.model_name. See b/200087451. ModelName string `json:"modelName,omitempty"` @@ -27750,6 +27772,38 @@ func (s *AssistantVerticalsHomeautomationProtoHomeAutomationMetaDataSupportedTra return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// AssistantVerticalsHomeautomationProtoMatterUniqueId: Matter unique +// Id. These values are provided by the device. +type AssistantVerticalsHomeautomationProtoMatterUniqueId struct { + ProductId int64 `json:"productId,omitempty"` + + UniqueId string `json:"uniqueId,omitempty"` + + VendorId int64 `json:"vendorId,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ProductId") 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. "ProductId") 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 *AssistantVerticalsHomeautomationProtoMatterUniqueId) MarshalJSON() ([]byte, error) { + type NoMethod AssistantVerticalsHomeautomationProtoMatterUniqueId + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + type AssistantVerticalsHomeautomationProtoPhysicalLocation struct { Address string `json:"address,omitempty"` @@ -41779,7 +41833,7 @@ func (s *GeostoreExistenceProto) MarshalJSON() ([]byte, error) { } // GeostoreFeatureFieldMetadataProto: Provenance information for -// sub-fields of this feature. +// sub-fields of this feature - go/subfield-provenance. type GeostoreFeatureFieldMetadataProto struct { FieldProvenance []*GeostoreFeatureFieldMetadataProtoFieldProvenance `json:"fieldProvenance,omitempty"` @@ -59240,6 +59294,86 @@ func (s *GoogleCloudContentwarehouseV1ProcessorInfo) MarshalJSON() ([]byte, erro return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudContentwarehouseV1ProjectStatus: Status of a project, +// including the project state, dbType, aclMode and etc. +type GoogleCloudContentwarehouseV1ProjectStatus struct { + // AccessControlMode: Access control mode. + // + // Possible values: + // "ACL_MODE_UNKNOWN" - This value is required by protobuf best + // practices + // "ACL_MODE_UNIVERSAL_ACCESS" - Universal Access: No document level + // access control. + // "ACL_MODE_DOCUMENT_LEVEL_ACCESS_CONTROL_BYOID" - Document level + // access control with customer own Identity Service. + // "ACL_MODE_DOCUMENT_LEVEL_ACCESS_CONTROL_GCI" - Document level + // access control using Google Cloud Identity. + AccessControlMode string `json:"accessControlMode,omitempty"` + + // DatabaseType: Database type. + // + // Possible values: + // "DB_UNKNOWN" - This value is required by protobuf best practices + // "DB_INFRA_SPANNER" - Internal Spanner + // "DB_CLOUD_SQL_POSTGRES" - Cloud Sql with a Postgres Sql instance + DatabaseType string `json:"databaseType,omitempty"` + + // DocumentCreatorDefaultRole: The default role for the person who + // create a document. + DocumentCreatorDefaultRole string `json:"documentCreatorDefaultRole,omitempty"` + + // Location: The location of the queried project. + Location string `json:"location,omitempty"` + + // QaEnabled: If the qa is enabled on this project. + QaEnabled bool `json:"qaEnabled,omitempty"` + + // State: State of the project. + // + // Possible values: + // "PROJECT_STATE_UNSPECIFIED" - Default status, required by protobuf + // best practices. + // "PROJECT_STATE_PENDING" - The project is in the middle of a + // provision process. + // "PROJECT_STATE_COMPLETED" - All dependencies have been provisioned. + // "PROJECT_STATE_FAILED" - A provision process was previously + // initiated, but failed. + // "PROJECT_STATE_DELETING" - The project is in the middle of a + // deletion process. + // "PROJECT_STATE_DELETING_FAILED" - A deleting process was initiated, + // but failed. + // "PROJECT_STATE_DELETED" - The project is deleted. + // "PROJECT_STATE_NOT_FOUND" - The project is not found. + State string `json:"state,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "AccessControlMode") + // 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. "AccessControlMode") 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 *GoogleCloudContentwarehouseV1ProjectStatus) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContentwarehouseV1ProjectStatus + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudContentwarehouseV1Property: Property of a document. type GoogleCloudContentwarehouseV1Property struct { // DateTimeValues: Date time property values. It is not supported by @@ -74030,46 +74164,1070 @@ func (s *IndexingDocjoinerCDocBuildInfo) MarshalJSON() ([]byte, error) { // introduced data without modifying their code. Please also see the // comment of FieldProjector above. There are also some fields in // DataInfo that annotate who generates the data, the Index Signals or -// Goldmine annotator name. +// Goldmine annotator name. Next ID: 536 type IndexingDocjoinerDataVersion struct { AcceleratedShoppingSignal *IndexingDocjoinerDataVersionVersionInfo `json:"acceleratedShoppingSignal,omitempty"` + AdsAdsaiMagicApfelApfelRegionFinderAnnotation *IndexingDocjoinerDataVersionVersionInfo `json:"adsAdsaiMagicApfelApfelRegionFinderAnnotation,omitempty"` + + AdsAdsaiMagicMagicPageTypeAnnotation *IndexingDocjoinerDataVersionVersionInfo `json:"adsAdsaiMagicMagicPageTypeAnnotation,omitempty"` + + AdsShoppingWebpxRawShoppingAnnotation *IndexingDocjoinerDataVersionVersionInfo `json:"adsShoppingWebpxRawShoppingAnnotation,omitempty"` + + AmphtmlSignedExchangeErrorDetails *IndexingDocjoinerDataVersionVersionInfo `json:"amphtmlSignedExchangeErrorDetails,omitempty"` + + AmphtmlSignedExchangeValidationPayload *IndexingDocjoinerDataVersionVersionInfo `json:"amphtmlSignedExchangeValidationPayload,omitempty"` + + AnalyticsSiteidAnalyticsPropertyAnnotation *IndexingDocjoinerDataVersionVersionInfo `json:"analyticsSiteidAnalyticsPropertyAnnotation,omitempty"` + + AnalyticsSiteidAnalyticsRenderedOutput *IndexingDocjoinerDataVersionVersionInfo `json:"analyticsSiteidAnalyticsRenderedOutput,omitempty"` + AuthenticSiteRankData *IndexingDocjoinerDataVersionVersionInfo `json:"authenticSiteRankData,omitempty"` + BabelEncoderBabelEncodings *IndexingDocjoinerDataVersionVersionInfo `json:"babelEncoderBabelEncodings,omitempty"` + + BadurlsBadurlsForceSelectionSignal *IndexingDocjoinerDataVersionVersionInfo `json:"badurlsBadurlsForceSelectionSignal,omitempty"` + + BoilerplateAnnotations *IndexingDocjoinerDataVersionVersionInfo `json:"boilerplateAnnotations,omitempty"` + + BoilerplateVisibleBytesEstimates *IndexingDocjoinerDataVersionVersionInfo `json:"boilerplateVisibleBytesEstimates,omitempty"` + ChromeCounts *IndexingDocjoinerDataVersionVersionInfo `json:"chromeCounts,omitempty"` + CommerceDataqualityOrganicCrawledSellerData *IndexingDocjoinerDataVersionVersionInfo `json:"commerceDataqualityOrganicCrawledSellerData,omitempty"` + + CommerceDataqualityOrganicShoppingAnnotationSignal *IndexingDocjoinerDataVersionVersionInfo `json:"commerceDataqualityOrganicShoppingAnnotationSignal,omitempty"` + + CommerceDataqualityOrganicShoppingSiteQuality *IndexingDocjoinerDataVersionVersionInfo `json:"commerceDataqualityOrganicShoppingSiteQuality,omitempty"` + + CommonsenseQueriosityGoldmineQnaAnnotations *IndexingDocjoinerDataVersionVersionInfo `json:"commonsenseQueriosityGoldmineQnaAnnotations,omitempty"` + + CommonsenseScoredCompoundReferenceAnnotation *IndexingDocjoinerDataVersionVersionInfo `json:"commonsenseScoredCompoundReferenceAnnotation,omitempty"` + + CommonsenseStoneSoupProtoRaffiaInstructionsSeq *IndexingDocjoinerDataVersionVersionInfo `json:"commonsenseStoneSoupProtoRaffiaInstructionsSeq,omitempty"` + + ContraContentReviewAnnotations *IndexingDocjoinerDataVersionVersionInfo `json:"contraContentReviewAnnotations,omitempty"` + + ContraCuratedContent *IndexingDocjoinerDataVersionVersionInfo `json:"contraCuratedContent,omitempty"` + + CountryCountryAttachment *IndexingDocjoinerDataVersionVersionInfo `json:"countryCountryAttachment,omitempty"` + + CrawzallSignal *IndexingDocjoinerDataVersionVersionInfo `json:"crawzallSignal,omitempty"` + Creator *IndexingDocjoinerDataVersionVersionInfo `json:"creator,omitempty"` + DatacommonsDatacommonsTriplesSignal *IndexingDocjoinerDataVersionVersionInfo `json:"datacommonsDatacommonsTriplesSignal,omitempty"` + + DateAnnotationTags *IndexingDocjoinerDataVersionVersionInfo `json:"dateAnnotationTags,omitempty"` + + DateAnnotations *IndexingDocjoinerDataVersionVersionInfo `json:"dateAnnotations,omitempty"` + + DateRangeAnnotations *IndexingDocjoinerDataVersionVersionInfo `json:"dateRangeAnnotations,omitempty"` + + DateTimeAnnotations *IndexingDocjoinerDataVersionVersionInfo `json:"dateTimeAnnotations,omitempty"` + DiscoverSource *IndexingDocjoinerDataVersionVersionInfo `json:"discoverSource,omitempty"` Discussion *IndexingDocjoinerDataVersionVersionInfo `json:"discussion,omitempty"` DocumentIntent *IndexingDocjoinerDataVersionVersionInfo `json:"documentIntent,omitempty"` + DotsGaramondSignal *IndexingDocjoinerDataVersionVersionInfo `json:"dotsGaramondSignal,omitempty"` + + DotsNewsstandSignal *IndexingDocjoinerDataVersionVersionInfo `json:"dotsNewsstandSignal,omitempty"` + + EmailAddressAnnotations *IndexingDocjoinerDataVersionVersionInfo `json:"emailAddressAnnotations,omitempty"` + ExtractedBookInfo *IndexingDocjoinerDataVersionVersionInfo `json:"extractedBookInfo,omitempty"` + FatcatCompactDocClassification *IndexingDocjoinerDataVersionVersionInfo `json:"fatcatCompactDocClassification,omitempty"` + + FatcatSiteVerticalsAnnotation *IndexingDocjoinerDataVersionVersionInfo `json:"fatcatSiteVerticalsAnnotation,omitempty"` + + Firstseen *IndexingDocjoinerDataVersionVersionInfo `json:"firstseen,omitempty"` + + FontsAnalysisAnnotatorFontsAnnotation *IndexingDocjoinerDataVersionVersionInfo `json:"fontsAnalysisAnnotatorFontsAnnotation,omitempty"` + + ForumRankingForumPostsSafeSearchAnnotation *IndexingDocjoinerDataVersionVersionInfo `json:"forumRankingForumPostsSafeSearchAnnotation,omitempty"` + + FoundationSplinterSignal *IndexingDocjoinerDataVersionVersionInfo `json:"foundationSplinterSignal,omitempty"` + + FreshboxFreshboxArticleAnnotation *IndexingDocjoinerDataVersionVersionInfo `json:"freshboxFreshboxArticleAnnotation,omitempty"` + + GeoPointAnnotations *IndexingDocjoinerDataVersionVersionInfo `json:"geoPointAnnotations,omitempty"` + + GeoPointResolution *IndexingDocjoinerDataVersionVersionInfo `json:"geoPointResolution,omitempty"` + + GeostoreAddressProto *IndexingDocjoinerDataVersionVersionInfo `json:"geostoreAddressProto,omitempty"` + + I2eV2ImageEntitiesInfos *IndexingDocjoinerDataVersionVersionInfo `json:"i2eV2ImageEntitiesInfos,omitempty"` + + ImageContentAnnotationLabels *IndexingDocjoinerDataVersionVersionInfo `json:"imageContentAnnotationLabels,omitempty"` + + ImageContentColorSearchColorDetectionResults *IndexingDocjoinerDataVersionVersionInfo `json:"imageContentColorSearchColorDetectionResults,omitempty"` + + ImageDataList *IndexingDocjoinerDataVersionVersionInfo `json:"imageDataList,omitempty"` + + ImageExtraImageExtraTerms *IndexingDocjoinerDataVersionVersionInfo `json:"imageExtraImageExtraTerms,omitempty"` + + ImageMonetizationFeaturedDocumentProperties *IndexingDocjoinerDataVersionVersionInfo `json:"imageMonetizationFeaturedDocumentProperties,omitempty"` + + ImageMustangFaviconInfo *IndexingDocjoinerDataVersionVersionInfo `json:"imageMustangFaviconInfo,omitempty"` + + ImageMustangWebsearchImageSnippetResponse *IndexingDocjoinerDataVersionVersionInfo `json:"imageMustangWebsearchImageSnippetResponse,omitempty"` + + ImageQualityLabelmakerDocMediaLabels *IndexingDocjoinerDataVersionVersionInfo `json:"imageQualityLabelmakerDocMediaLabels,omitempty"` + + ImageQualityLandingPageProtoLandingPageSalientTextSet *IndexingDocjoinerDataVersionVersionInfo `json:"imageQualityLandingPageProtoLandingPageSalientTextSet,omitempty"` + + ImageQualityLayoutDocument *IndexingDocjoinerDataVersionVersionInfo `json:"imageQualityLayoutDocument,omitempty"` + + ImageQualityRichdataProtoImageAnchor *IndexingDocjoinerDataVersionVersionInfo `json:"imageQualityRichdataProtoImageAnchor,omitempty"` + + ImageQualityRichdataProtoRichdata *IndexingDocjoinerDataVersionVersionInfo `json:"imageQualityRichdataProtoRichdata,omitempty"` + + ImageQualitySalientTermsImageQuerySmearingList *IndexingDocjoinerDataVersionVersionInfo `json:"imageQualitySalientTermsImageQuerySmearingList,omitempty"` + + ImageQualitySalientTermsImageSalientTermSetMap *IndexingDocjoinerDataVersionVersionInfo `json:"imageQualitySalientTermsImageSalientTermSetMap,omitempty"` + + ImageQualitySensitiveFaceSkinToneSignals *IndexingDocjoinerDataVersionVersionInfo `json:"imageQualitySensitiveFaceSkinToneSignals,omitempty"` + + ImageQualitySensitiveMediaOrPeopleEntities *IndexingDocjoinerDataVersionVersionInfo `json:"imageQualitySensitiveMediaOrPeopleEntities,omitempty"` + + ImageRepositoryGeolocation *IndexingDocjoinerDataVersionVersionInfo `json:"imageRepositoryGeolocation,omitempty"` + + ImageRepositoryPicasaGeoData *IndexingDocjoinerDataVersionVersionInfo `json:"imageRepositoryPicasaGeoData,omitempty"` + + ImageSearchRejectedImageInfoList *IndexingDocjoinerDataVersionVersionInfo `json:"imageSearchRejectedImageInfoList,omitempty"` + + ImageStockStockImageAnnotation *IndexingDocjoinerDataVersionVersionInfo `json:"imageStockStockImageAnnotation,omitempty"` + + IndexingAnnotationsAnnotationMeta *IndexingDocjoinerDataVersionVersionInfo `json:"indexingAnnotationsAnnotationMeta,omitempty"` + + IndexingAnnotationsAppMarketAppMarketAnnotation *IndexingDocjoinerDataVersionVersionInfo `json:"indexingAnnotationsAppMarketAppMarketAnnotation,omitempty"` + + IndexingAnnotationsAppsCacheColonAnnotation *IndexingDocjoinerDataVersionVersionInfo `json:"indexingAnnotationsAppsCacheColonAnnotation,omitempty"` + + IndexingAnnotationsAppsDocRestrictionsDocPreviewRestrictionsAnnotation *IndexingDocjoinerDataVersionVersionInfo `json:"indexingAnnotationsAppsDocRestrictionsDocPreviewRestrictionsAnnotation,omitempty"` + + IndexingAnnotationsAutomobileVinAnnotatorAutomobileVinAnnotations *IndexingDocjoinerDataVersionVersionInfo `json:"indexingAnnotationsAutomobileVinAnnotatorAutomobileVinAnnotations,omitempty"` + + IndexingAnnotationsCanonicalUrl *IndexingDocjoinerDataVersionVersionInfo `json:"indexingAnnotationsCanonicalUrl,omitempty"` + + IndexingAnnotationsCleanTextProto *IndexingDocjoinerDataVersionVersionInfo `json:"indexingAnnotationsCleanTextProto,omitempty"` + + IndexingAnnotationsCollectionsDocCollections *IndexingDocjoinerDataVersionVersionInfo `json:"indexingAnnotationsCollectionsDocCollections,omitempty"` + + IndexingAnnotationsCommentBlockGroups *IndexingDocjoinerDataVersionVersionInfo `json:"indexingAnnotationsCommentBlockGroups,omitempty"` + + IndexingAnnotationsDatasetModelAnnotation *IndexingDocjoinerDataVersionVersionInfo `json:"indexingAnnotationsDatasetModelAnnotation,omitempty"` + + IndexingAnnotationsDatesDateTimes *IndexingDocjoinerDataVersionVersionInfo `json:"indexingAnnotationsDatesDateTimes,omitempty"` + + IndexingAnnotationsDocImportance *IndexingDocjoinerDataVersionVersionInfo `json:"indexingAnnotationsDocImportance,omitempty"` + + IndexingAnnotationsDocRestrictionsInDocRestrictionsAnnotation *IndexingDocjoinerDataVersionVersionInfo `json:"indexingAnnotationsDocRestrictionsInDocRestrictionsAnnotation,omitempty"` + + IndexingAnnotationsEntityPage *IndexingDocjoinerDataVersionVersionInfo `json:"indexingAnnotationsEntityPage,omitempty"` + + IndexingAnnotationsFeedbackSet *IndexingDocjoinerDataVersionVersionInfo `json:"indexingAnnotationsFeedbackSet,omitempty"` + + IndexingAnnotationsIBertEmbeddingAnnotation *IndexingDocjoinerDataVersionVersionInfo `json:"indexingAnnotationsIBertEmbeddingAnnotation,omitempty"` + + IndexingAnnotationsImageRepositoryImageLicenseInfoAnnotation *IndexingDocjoinerDataVersionVersionInfo `json:"indexingAnnotationsImageRepositoryImageLicenseInfoAnnotation,omitempty"` + + IndexingAnnotationsPcuAmpError *IndexingDocjoinerDataVersionVersionInfo `json:"indexingAnnotationsPcuAmpError,omitempty"` + + IndexingAnnotationsPcuSignedExchangeInfo *IndexingDocjoinerDataVersionVersionInfo `json:"indexingAnnotationsPcuSignedExchangeInfo,omitempty"` + + IndexingAnnotationsPersonPersonAnnotation *IndexingDocjoinerDataVersionVersionInfo `json:"indexingAnnotationsPersonPersonAnnotation,omitempty"` + + IndexingAnnotationsSduPageTypeAnnotation *IndexingDocjoinerDataVersionVersionInfo `json:"indexingAnnotationsSduPageTypeAnnotation,omitempty"` + + IndexingAnnotationsSocialLinksSocialLinksAnnotation *IndexingDocjoinerDataVersionVersionInfo `json:"indexingAnnotationsSocialLinksSocialLinksAnnotation,omitempty"` + + IndexingAnnotationsSubscribewithgoogleSwgAnnotation *IndexingDocjoinerDataVersionVersionInfo `json:"indexingAnnotationsSubscribewithgoogleSwgAnnotation,omitempty"` + + IndexingAnnotationsTwitterEmbeddedTweetsAnnotation *IndexingDocjoinerDataVersionVersionInfo `json:"indexingAnnotationsTwitterEmbeddedTweetsAnnotation,omitempty"` + + IndexingAnnotationsTypedNumberTypedNumberAnnotations *IndexingDocjoinerDataVersionVersionInfo `json:"indexingAnnotationsTypedNumberTypedNumberAnnotations,omitempty"` + + IndexingAnnotationsWaPassagesQueryToPassageAnnotations *IndexingDocjoinerDataVersionVersionInfo `json:"indexingAnnotationsWaPassagesQueryToPassageAnnotations,omitempty"` + + IndexingAnnotationsWaPassagesTrimmedQueryToPassageAnnotations *IndexingDocjoinerDataVersionVersionInfo `json:"indexingAnnotationsWaPassagesTrimmedQueryToPassageAnnotations,omitempty"` + + IndexingAppsAffiliatedInstantAppInfo *IndexingDocjoinerDataVersionVersionInfo `json:"indexingAppsAffiliatedInstantAppInfo,omitempty"` + + IndexingAppsMergedAppInfoAnnotation *IndexingDocjoinerDataVersionVersionInfo `json:"indexingAppsMergedAppInfoAnnotation,omitempty"` + + IndexingBadpagesBadPageParseResult *IndexingDocjoinerDataVersionVersionInfo `json:"indexingBadpagesBadPageParseResult,omitempty"` + + IndexingBadpagesCollapserInfo *IndexingDocjoinerDataVersionVersionInfo `json:"indexingBadpagesCollapserInfo,omitempty"` + + IndexingBadpagesIndexSelectionRemoval *IndexingDocjoinerDataVersionVersionInfo `json:"indexingBadpagesIndexSelectionRemoval,omitempty"` + + IndexingBadpagesLoginPageResult *IndexingDocjoinerDataVersionVersionInfo `json:"indexingBadpagesLoginPageResult,omitempty"` + + IndexingBadpagesUnifiedModelFeatures *IndexingDocjoinerDataVersionVersionInfo `json:"indexingBadpagesUnifiedModelFeatures,omitempty"` + + IndexingBeringPublisherOnPageAdsAnnotation *IndexingDocjoinerDataVersionVersionInfo `json:"indexingBeringPublisherOnPageAdsAnnotation,omitempty"` + + IndexingCenterpieceCenterPieceAnnotations *IndexingDocjoinerDataVersionVersionInfo `json:"indexingCenterpieceCenterPieceAnnotations,omitempty"` + + IndexingCenterpieceCenterpieceChecksums *IndexingDocjoinerDataVersionVersionInfo `json:"indexingCenterpieceCenterpieceChecksums,omitempty"` + + IndexingCenterpieceComponentLearningSource *IndexingDocjoinerDataVersionVersionInfo `json:"indexingCenterpieceComponentLearningSource,omitempty"` + + IndexingCenterpieceSectionTitleAnnotations *IndexingDocjoinerDataVersionVersionInfo `json:"indexingCenterpieceSectionTitleAnnotations,omitempty"` + + IndexingConverterContentGenerationInfo *IndexingDocjoinerDataVersionVersionInfo `json:"indexingConverterContentGenerationInfo,omitempty"` + + IndexingConverterContentParserResults *IndexingDocjoinerDataVersionVersionInfo `json:"indexingConverterContentParserResults,omitempty"` + + IndexingConverterFileMetaInfo *IndexingDocjoinerDataVersionVersionInfo `json:"indexingConverterFileMetaInfo,omitempty"` + + IndexingConverterLinkRelOutlinks *IndexingDocjoinerDataVersionVersionInfo `json:"indexingConverterLinkRelOutlinks,omitempty"` + + IndexingConverterMetaDetectorsResultsProto *IndexingDocjoinerDataVersionVersionInfo `json:"indexingConverterMetaDetectorsResultsProto,omitempty"` + + IndexingConverterPdfFileMetaInfo *IndexingDocjoinerDataVersionVersionInfo `json:"indexingConverterPdfFileMetaInfo,omitempty"` + + IndexingConverterPdfPageAnnotations *IndexingDocjoinerDataVersionVersionInfo `json:"indexingConverterPdfPageAnnotations,omitempty"` + + IndexingCustomCorpusCdmAnnotations *IndexingDocjoinerDataVersionVersionInfo `json:"indexingCustomCorpusCdmAnnotations,omitempty"` + + IndexingDeepwebStoreListAnnotation *IndexingDocjoinerDataVersionVersionInfo `json:"indexingDeepwebStoreListAnnotation,omitempty"` + + IndexingDocjoinerServingTimeClusterIds *IndexingDocjoinerDataVersionVersionInfo `json:"indexingDocjoinerServingTimeClusterIds,omitempty"` + + IndexingDocjoinerWikiInfo *IndexingDocjoinerDataVersionVersionInfo `json:"indexingDocjoinerWikiInfo,omitempty"` + + IndexingDocskeletonRepeatedPatternRepeatedPatternAnnotation *IndexingDocjoinerDataVersionVersionInfo `json:"indexingDocskeletonRepeatedPatternRepeatedPatternAnnotation,omitempty"` + + IndexingDupsLocalizedLocalizedCluster *IndexingDocjoinerDataVersionVersionInfo `json:"indexingDupsLocalizedLocalizedCluster,omitempty"` + + IndexingFreshSchedulerFreshSchedulerDoubleInstantExtension *IndexingDocjoinerDataVersionVersionInfo `json:"indexingFreshSchedulerFreshSchedulerDoubleInstantExtension,omitempty"` + + IndexingFreshSchedulerOutlinkDiscoveryHistoricalHubsSignal *IndexingDocjoinerDataVersionVersionInfo `json:"indexingFreshSchedulerOutlinkDiscoveryHistoricalHubsSignal,omitempty"` + + IndexingImagesRelatedImageSignal *IndexingDocjoinerDataVersionVersionInfo `json:"indexingImagesRelatedImageSignal,omitempty"` + + IndexingInstantActiveClusterScorerSignal *IndexingDocjoinerDataVersionVersionInfo `json:"indexingInstantActiveClusterScorerSignal,omitempty"` + + IndexingInstantBaseReindexWhitelistData *IndexingDocjoinerDataVersionVersionInfo `json:"indexingInstantBaseReindexWhitelistData,omitempty"` + + IndexingInstantClusterScorerArticle *IndexingDocjoinerDataVersionVersionInfo `json:"indexingInstantClusterScorerArticle,omitempty"` + + IndexingInstantClusterScorerSignal *IndexingDocjoinerDataVersionVersionInfo `json:"indexingInstantClusterScorerSignal,omitempty"` + + IndexingInstantHistoricalContentSignals *IndexingDocjoinerDataVersionVersionInfo `json:"indexingInstantHistoricalContentSignals,omitempty"` + + IndexingInstantNewsHighlyCitedDocumentSignal *IndexingDocjoinerDataVersionVersionInfo `json:"indexingInstantNewsHighlyCitedDocumentSignal,omitempty"` + + IndexingInstantNewsImagesInfo *IndexingDocjoinerDataVersionVersionInfo `json:"indexingInstantNewsImagesInfo,omitempty"` + + IndexingInstantSignalSourceTagsExtension *IndexingDocjoinerDataVersionVersionInfo `json:"indexingInstantSignalSourceTagsExtension,omitempty"` + + IndexingLatticeLatticeAnnotations *IndexingDocjoinerDataVersionVersionInfo `json:"indexingLatticeLatticeAnnotations,omitempty"` + + IndexingMetricsUrlIndexingProps *IndexingDocjoinerDataVersionVersionInfo `json:"indexingMetricsUrlIndexingProps,omitempty"` + + IndexingMlDomNodeSegments *IndexingDocjoinerDataVersionVersionInfo `json:"indexingMlDomNodeSegments,omitempty"` + + IndexingMlEntityInfoboxes *IndexingDocjoinerDataVersionVersionInfo `json:"indexingMlEntityInfoboxes,omitempty"` + + IndexingMlPageStructure *IndexingDocjoinerDataVersionVersionInfo `json:"indexingMlPageStructure,omitempty"` + + IndexingMlSemanticArticle *IndexingDocjoinerDataVersionVersionInfo `json:"indexingMlSemanticArticle,omitempty"` + + IndexingMlShoppingUniverseAnnotation *IndexingDocjoinerDataVersionVersionInfo `json:"indexingMlShoppingUniverseAnnotation,omitempty"` + + IndexingMlVerticalVerticalClassificationResult *IndexingDocjoinerDataVersionVersionInfo `json:"indexingMlVerticalVerticalClassificationResult,omitempty"` + + IndexingMlVerticalVerticalClassificationV2 *IndexingDocjoinerDataVersionVersionInfo `json:"indexingMlVerticalVerticalClassificationV2,omitempty"` + + IndexingMobileClientDependentInfo *IndexingDocjoinerDataVersionVersionInfo `json:"indexingMobileClientDependentInfo,omitempty"` + + IndexingMobileInterstitialsProtoDesktopInterstitials *IndexingDocjoinerDataVersionVersionInfo `json:"indexingMobileInterstitialsProtoDesktopInterstitials,omitempty"` + + IndexingMobileObelixInfo *IndexingDocjoinerDataVersionVersionInfo `json:"indexingMobileObelixInfo,omitempty"` + + IndexingMobileSmartphoneContentAnnotations *IndexingDocjoinerDataVersionVersionInfo `json:"indexingMobileSmartphoneContentAnnotations,omitempty"` + + IndexingMobileSmartphonePatternClassification *IndexingDocjoinerDataVersionVersionInfo `json:"indexingMobileSmartphonePatternClassification,omitempty"` + + IndexingMobileSpeedPageSpeedFieldData *IndexingDocjoinerDataVersionVersionInfo `json:"indexingMobileSpeedPageSpeedFieldData,omitempty"` + + IndexingPlusonePlusOneSignal *IndexingDocjoinerDataVersionVersionInfo `json:"indexingPlusonePlusOneSignal,omitempty"` + + IndexingPlusoneSocialScoreSignal *IndexingDocjoinerDataVersionVersionInfo `json:"indexingPlusoneSocialScoreSignal,omitempty"` + + IndexingRaffiaDataRecoveryInfo *IndexingDocjoinerDataVersionVersionInfo `json:"indexingRaffiaDataRecoveryInfo,omitempty"` + + IndexingRaffiaIndexingIntermediate *IndexingDocjoinerDataVersionVersionInfo `json:"indexingRaffiaIndexingIntermediate,omitempty"` + + IndexingRaffiaMediaProcessingMetadata *IndexingDocjoinerDataVersionVersionInfo `json:"indexingRaffiaMediaProcessingMetadata,omitempty"` + + IndexingRaffiaOverlayCDocAttachment *IndexingDocjoinerDataVersionVersionInfo `json:"indexingRaffiaOverlayCDocAttachment,omitempty"` + + IndexingSelectionAcquisitionMetadataAttachment *IndexingDocjoinerDataVersionVersionInfo `json:"indexingSelectionAcquisitionMetadataAttachment,omitempty"` + + IndexingSelectionDoubleIndexingExtension *IndexingDocjoinerDataVersionVersionInfo `json:"indexingSelectionDoubleIndexingExtension,omitempty"` + + IndexingSelectionFastServingPush *IndexingDocjoinerDataVersionVersionInfo `json:"indexingSelectionFastServingPush,omitempty"` + + IndexingSelectionFreshdocsPassthroughExtension *IndexingDocjoinerDataVersionVersionInfo `json:"indexingSelectionFreshdocsPassthroughExtension,omitempty"` + + IndexingSelectionImageImageSelectionAttachment *IndexingDocjoinerDataVersionVersionInfo `json:"indexingSelectionImageImageSelectionAttachment,omitempty"` + + IndexingSelectionLanguageExtension *IndexingDocjoinerDataVersionVersionInfo `json:"indexingSelectionLanguageExtension,omitempty"` + + IndexingSelectionPriorScorerParameterSet *IndexingDocjoinerDataVersionVersionInfo `json:"indexingSelectionPriorScorerParameterSet,omitempty"` + + IndexingSelectionProcessingPriorityExtension *IndexingDocjoinerDataVersionVersionInfo `json:"indexingSelectionProcessingPriorityExtension,omitempty"` + + IndexingSelectionProtoBasePromotionInfo *IndexingDocjoinerDataVersionVersionInfo `json:"indexingSelectionProtoBasePromotionInfo,omitempty"` + + IndexingSelectionTensorFlowExtension *IndexingDocjoinerDataVersionVersionInfo `json:"indexingSelectionTensorFlowExtension,omitempty"` + + IndexingSignalAggregatorUrlPatternSignals *IndexingDocjoinerDataVersionVersionInfo `json:"indexingSignalAggregatorUrlPatternSignals,omitempty"` + + IndexingSignalsAccumulatedOnlineSignals *IndexingDocjoinerDataVersionVersionInfo `json:"indexingSignalsAccumulatedOnlineSignals,omitempty"` + + IndexingSignalsImpressionsPerDayContainer *IndexingDocjoinerDataVersionVersionInfo `json:"indexingSignalsImpressionsPerDayContainer,omitempty"` + + IndexingSocialCountsSocialWidgetsIndicator *IndexingDocjoinerDataVersionVersionInfo `json:"indexingSocialCountsSocialWidgetsIndicator,omitempty"` + + IndexingSpeechGoldminePodcastAnnotation *IndexingDocjoinerDataVersionVersionInfo `json:"indexingSpeechGoldminePodcastAnnotation,omitempty"` + + IndexingSpeechSpeechPagePropertiesProto *IndexingDocjoinerDataVersionVersionInfo `json:"indexingSpeechSpeechPagePropertiesProto,omitempty"` + + IndexingThirdpartyThirdPartyInputs *IndexingDocjoinerDataVersionVersionInfo `json:"indexingThirdpartyThirdPartyInputs,omitempty"` + + IndexingUgcPageParamInfo *IndexingDocjoinerDataVersionVersionInfo `json:"indexingUgcPageParamInfo,omitempty"` + + IndexingUnionKeyData *IndexingDocjoinerDataVersionVersionInfo `json:"indexingUnionKeyData,omitempty"` + + IndexingUrlPatternUrlTreeUrlPatternAnnotations *IndexingDocjoinerDataVersionVersionInfo `json:"indexingUrlPatternUrlTreeUrlPatternAnnotations,omitempty"` + + IndexingVideosVideoAnchorSourceInfo *IndexingDocjoinerDataVersionVersionInfo `json:"indexingVideosVideoAnchorSourceInfo,omitempty"` + + IndexingVideosVideoPlaylistAnchorSignal *IndexingDocjoinerDataVersionVersionInfo `json:"indexingVideosVideoPlaylistAnchorSignal,omitempty"` + + IndexingWebChannelsWebChannelAnnotations *IndexingDocjoinerDataVersionVersionInfo `json:"indexingWebChannelsWebChannelAnnotations,omitempty"` + + InfoextractionPinpointPinpointAnnotationSignal *IndexingDocjoinerDataVersionVersionInfo `json:"infoextractionPinpointPinpointAnnotationSignal,omitempty"` + + InfoextractionPinpointPinpointSignal *IndexingDocjoinerDataVersionVersionInfo `json:"infoextractionPinpointPinpointSignal,omitempty"` + InstantChromeViews *IndexingDocjoinerDataVersionVersionInfo `json:"instantChromeViews,omitempty"` InstantNavboost *IndexingDocjoinerDataVersionVersionInfo `json:"instantNavboost,omitempty"` + KnowledgeGraphAcquisitionFeedsQuotesQuotesAnnotation *IndexingDocjoinerDataVersionVersionInfo `json:"knowledgeGraphAcquisitionFeedsQuotesQuotesAnnotation,omitempty"` + + KnowledgeMiningFactsDocumentSignals *IndexingDocjoinerDataVersionVersionInfo `json:"knowledgeMiningFactsDocumentSignals,omitempty"` + + KnowledgeMiningFactsFactEvaluationSignals *IndexingDocjoinerDataVersionVersionInfo `json:"knowledgeMiningFactsFactEvaluationSignals,omitempty"` + + KnowledgeMiningFactsHtmlTableSignal *IndexingDocjoinerDataVersionVersionInfo `json:"knowledgeMiningFactsHtmlTableSignal,omitempty"` + + KnowledgeMiningFactsKatsSignals *IndexingDocjoinerDataVersionVersionInfo `json:"knowledgeMiningFactsKatsSignals,omitempty"` + + KnowledgeMiningFactsLocalizedFact *IndexingDocjoinerDataVersionVersionInfo `json:"knowledgeMiningFactsLocalizedFact,omitempty"` + + KnowledgeMiningFactsObjectAnnotationsSignal *IndexingDocjoinerDataVersionVersionInfo `json:"knowledgeMiningFactsObjectAnnotationsSignal,omitempty"` + + KnowledgeMiningFactsProductCompositionSignal *IndexingDocjoinerDataVersionVersionInfo `json:"knowledgeMiningFactsProductCompositionSignal,omitempty"` + + KnowledgeMiningFactsServingData *IndexingDocjoinerDataVersionVersionInfo `json:"knowledgeMiningFactsServingData,omitempty"` + + KnowledgeMiningFactsShoppingSignals *IndexingDocjoinerDataVersionVersionInfo `json:"knowledgeMiningFactsShoppingSignals,omitempty"` + + KnowledgeMiningFactsStructuredSnippetsSignal *IndexingDocjoinerDataVersionVersionInfo `json:"knowledgeMiningFactsStructuredSnippetsSignal,omitempty"` + + KnowledgeMiningFactsUdrExtraFactData *IndexingDocjoinerDataVersionVersionInfo `json:"knowledgeMiningFactsUdrExtraFactData,omitempty"` + + KnowledgeMiningFactsUdrExtraFactMentionData *IndexingDocjoinerDataVersionVersionInfo `json:"knowledgeMiningFactsUdrExtraFactMentionData,omitempty"` + + KnowledgeMiningFactsUniversalFactMetadata *IndexingDocjoinerDataVersionVersionInfo `json:"knowledgeMiningFactsUniversalFactMetadata,omitempty"` + + KnowledgeMiningFactsUniversalFactScores *IndexingDocjoinerDataVersionVersionInfo `json:"knowledgeMiningFactsUniversalFactScores,omitempty"` + + KnowledgeMiningFactsUniversalTableSignal *IndexingDocjoinerDataVersionVersionInfo `json:"knowledgeMiningFactsUniversalTableSignal,omitempty"` + + KnowledgeMiningFactsWebKvSiteGroupSignal *IndexingDocjoinerDataVersionVersionInfo `json:"knowledgeMiningFactsWebKvSiteGroupSignal,omitempty"` + + KnowledgeMiningShoppingBrowseonomyData *IndexingDocjoinerDataVersionVersionInfo `json:"knowledgeMiningShoppingBrowseonomyData,omitempty"` + + KnowledgeMiningShoppingTwdModelVersions *IndexingDocjoinerDataVersionVersionInfo `json:"knowledgeMiningShoppingTwdModelVersions,omitempty"` + + KnowledgeMumStoryTeaserAnnotation *IndexingDocjoinerDataVersionVersionInfo `json:"knowledgeMumStoryTeaserAnnotation,omitempty"` + + KnowledgeMumStorytimeStampEngagementAnnotation *IndexingDocjoinerDataVersionVersionInfo `json:"knowledgeMumStorytimeStampEngagementAnnotation,omitempty"` + + KnowledgeMumStorytimeStampQualityAnnotation *IndexingDocjoinerDataVersionVersionInfo `json:"knowledgeMumStorytimeStampQualityAnnotation,omitempty"` + + KnowledgeTablesTableInternalData *IndexingDocjoinerDataVersionVersionInfo `json:"knowledgeTablesTableInternalData,omitempty"` + + KnowledgeTablesUniversalTableAnnotations *IndexingDocjoinerDataVersionVersionInfo `json:"knowledgeTablesUniversalTableAnnotations,omitempty"` + + KnowledgeTasksUniversalTaskAnnotation *IndexingDocjoinerDataVersionVersionInfo `json:"knowledgeTasksUniversalTaskAnnotation,omitempty"` + + KnowledgeTpfHowtodoHowtoVideoAnnotation *IndexingDocjoinerDataVersionVersionInfo `json:"knowledgeTpfHowtodoHowtoVideoAnnotation,omitempty"` + + LangIdLangReasonerDocumentLanguages *IndexingDocjoinerDataVersionVersionInfo `json:"langIdLangReasonerDocumentLanguages,omitempty"` + + LensVsaiDatasets *IndexingDocjoinerDataVersionVersionInfo `json:"lensVsaiDatasets,omitempty"` + + LocalsearchAuthoritySiteAnnotation *IndexingDocjoinerDataVersionVersionInfo `json:"localsearchAuthoritySiteAnnotation,omitempty"` + Localyp *IndexingDocjoinerDataVersionVersionInfo `json:"localyp,omitempty"` + MapsSyntheticsGeoDocFetchKey *IndexingDocjoinerDataVersionVersionInfo `json:"mapsSyntheticsGeoDocFetchKey,omitempty"` + + MeasurementAnnotations *IndexingDocjoinerDataVersionVersionInfo `json:"measurementAnnotations,omitempty"` + + MetawebExtractionDocumentEvidence *IndexingDocjoinerDataVersionVersionInfo `json:"metawebExtractionDocumentEvidence,omitempty"` + ModernFormatContent *IndexingDocjoinerDataVersionVersionInfo `json:"modernFormatContent,omitempty"` + NavBoostDocument *IndexingDocjoinerDataVersionVersionInfo `json:"navBoostDocument,omitempty"` + + // Navboost: BEGIN DATA FIELDS Navboost *IndexingDocjoinerDataVersionVersionInfo `json:"navboost,omitempty"` + NewsAnnotationsContentAnnotations *IndexingDocjoinerDataVersionVersionInfo `json:"newsAnnotationsContentAnnotations,omitempty"` + + NewsCorpusHubPageAnnotations *IndexingDocjoinerDataVersionVersionInfo `json:"newsCorpusHubPageAnnotations,omitempty"` + + NewsCorpusLeafPageAnnotation *IndexingDocjoinerDataVersionVersionInfo `json:"newsCorpusLeafPageAnnotation,omitempty"` + + NewsCorpusNewsAggregateSignal *IndexingDocjoinerDataVersionVersionInfo `json:"newsCorpusNewsAggregateSignal,omitempty"` + + NewsCorpusNewsCorpusAnnotation *IndexingDocjoinerDataVersionVersionInfo `json:"newsCorpusNewsCorpusAnnotation,omitempty"` + + // NewsCorpusNewsCorpusRootAnnotation: END DATA FIELDS + NewsCorpusNewsCorpusRootAnnotation *IndexingDocjoinerDataVersionVersionInfo `json:"newsCorpusNewsCorpusRootAnnotation,omitempty"` + + NewsCorpusNewsCorpusStatusAnnotation *IndexingDocjoinerDataVersionVersionInfo `json:"newsCorpusNewsCorpusStatusAnnotation,omitempty"` + + NewsCorpusNewsinessAnnotation *IndexingDocjoinerDataVersionVersionInfo `json:"newsCorpusNewsinessAnnotation,omitempty"` + + NewsCorpusPositionRankAnnotations *IndexingDocjoinerDataVersionVersionInfo `json:"newsCorpusPositionRankAnnotations,omitempty"` + + NewsCrawlFilterNewsLinkCrawlSignal *IndexingDocjoinerDataVersionVersionInfo `json:"newsCrawlFilterNewsLinkCrawlSignal,omitempty"` + + NewsExtractionNewsPbeAnnotations *IndexingDocjoinerDataVersionVersionInfo `json:"newsExtractionNewsPbeAnnotations,omitempty"` + + NewsNarIndexingMetadata *IndexingDocjoinerDataVersionVersionInfo `json:"newsNarIndexingMetadata,omitempty"` + + NewsNarRow *IndexingDocjoinerDataVersionVersionInfo `json:"newsNarRow,omitempty"` + + NewsNarRowContainer *IndexingDocjoinerDataVersionVersionInfo `json:"newsNarRowContainer,omitempty"` + + NewsNearDupsInfo *IndexingDocjoinerDataVersionVersionInfo `json:"newsNearDupsInfo,omitempty"` + + NewsNewromanIndexingNewRomanSignal *IndexingDocjoinerDataVersionVersionInfo `json:"newsNewromanIndexingNewRomanSignal,omitempty"` + + NewsNewsArticleChecksum *IndexingDocjoinerDataVersionVersionInfo `json:"newsNewsArticleChecksum,omitempty"` + + NewsNewsClassifications *IndexingDocjoinerDataVersionVersionInfo `json:"newsNewsClassifications,omitempty"` + + NewsNewsContentSignals *IndexingDocjoinerDataVersionVersionInfo `json:"newsNewsContentSignals,omitempty"` + + NewsNewsForEducationReadingStatistics *IndexingDocjoinerDataVersionVersionInfo `json:"newsNewsForEducationReadingStatistics,omitempty"` + + NewsVideosNewsAnchorSourceInfo *IndexingDocjoinerDataVersionVersionInfo `json:"newsVideosNewsAnchorSourceInfo,omitempty"` + + NewsVideosNewsVideoAnnotationSignals *IndexingDocjoinerDataVersionVersionInfo `json:"newsVideosNewsVideoAnnotationSignals,omitempty"` + + NlpAtcClaraAnnotation *IndexingDocjoinerDataVersionVersionInfo `json:"nlpAtcClaraAnnotation,omitempty"` + + NlpSaftDocument *IndexingDocjoinerDataVersionVersionInfo `json:"nlpSaftDocument,omitempty"` + + NlpSaftNlxDocAnnotatorMigration *IndexingDocjoinerDataVersionVersionInfo `json:"nlpSaftNlxDocAnnotatorMigration,omitempty"` + + NlpSaftRodinClassification *IndexingDocjoinerDataVersionVersionInfo `json:"nlpSaftRodinClassification,omitempty"` + + NlpSentimentSentimentAnnotation *IndexingDocjoinerDataVersionVersionInfo `json:"nlpSentimentSentimentAnnotation,omitempty"` + + NlxDocAnnotation *IndexingDocjoinerDataVersionVersionInfo `json:"nlxDocAnnotation,omitempty"` + + NoindexedImageDataList *IndexingDocjoinerDataVersionVersionInfo `json:"noindexedImageDataList,omitempty"` + + NumberAnnotations *IndexingDocjoinerDataVersionVersionInfo `json:"numberAnnotations,omitempty"` + + OceanLibrarianBookMetadata *IndexingDocjoinerDataVersionVersionInfo `json:"oceanLibrarianBookMetadata,omitempty"` + + OceanLibrarianPopulatorData *IndexingDocjoinerDataVersionVersionInfo `json:"oceanLibrarianPopulatorData,omitempty"` + + OceanLibrarianPopulatorPageData *IndexingDocjoinerDataVersionVersionInfo `json:"oceanLibrarianPopulatorPageData,omitempty"` + + OceanMetadataAllItemSpecificBibdatas *IndexingDocjoinerDataVersionVersionInfo `json:"oceanMetadataAllItemSpecificBibdatas,omitempty"` + + OceanMetadataAvailabilityInfoComponent *IndexingDocjoinerDataVersionVersionInfo `json:"oceanMetadataAvailabilityInfoComponent,omitempty"` + + OceanMetadataAvailabilitySnapshot *IndexingDocjoinerDataVersionVersionInfo `json:"oceanMetadataAvailabilitySnapshot,omitempty"` + + OceanMetadataAvailabilitySnapshotHolder *IndexingDocjoinerDataVersionVersionInfo `json:"oceanMetadataAvailabilitySnapshotHolder,omitempty"` + + OceanMetadataBibkeyComponent *IndexingDocjoinerDataVersionVersionInfo `json:"oceanMetadataBibkeyComponent,omitempty"` + + OceanMetadataClusterHorizontalReference *IndexingDocjoinerDataVersionVersionInfo `json:"oceanMetadataClusterHorizontalReference,omitempty"` + + OceanMetadataClusterRecord *IndexingDocjoinerDataVersionVersionInfo `json:"oceanMetadataClusterRecord,omitempty"` + + OceanMetadataClusterVolumes *IndexingDocjoinerDataVersionVersionInfo `json:"oceanMetadataClusterVolumes,omitempty"` + + OceanMetadataClusteringSeriesSeriesInfo *IndexingDocjoinerDataVersionVersionInfo `json:"oceanMetadataClusteringSeriesSeriesInfo,omitempty"` + + OceanMetadataClusteringTomeHorizontalLinkDescriptor *IndexingDocjoinerDataVersionVersionInfo `json:"oceanMetadataClusteringTomeHorizontalLinkDescriptor,omitempty"` + + OceanMetadataContributorLinks *IndexingDocjoinerDataVersionVersionInfo `json:"oceanMetadataContributorLinks,omitempty"` + + OceanMetadataItemSpecificBibdataComponent *IndexingDocjoinerDataVersionVersionInfo `json:"oceanMetadataItemSpecificBibdataComponent,omitempty"` + + OceanMetadataKgTopicLinks *IndexingDocjoinerDataVersionVersionInfo `json:"oceanMetadataKgTopicLinks,omitempty"` + + OceanMetadataLanguageInfoComponent *IndexingDocjoinerDataVersionVersionInfo `json:"oceanMetadataLanguageInfoComponent,omitempty"` + + OceanMetadataMaterialInfoComponent *IndexingDocjoinerDataVersionVersionInfo `json:"oceanMetadataMaterialInfoComponent,omitempty"` + + OceanMetadataParsedAccessTerms *IndexingDocjoinerDataVersionVersionInfo `json:"oceanMetadataParsedAccessTerms,omitempty"` + + OceanMetadataParsedSuDoc *IndexingDocjoinerDataVersionVersionInfo `json:"oceanMetadataParsedSuDoc,omitempty"` + + OceanMetadataPatentPublicationDetails *IndexingDocjoinerDataVersionVersionInfo `json:"oceanMetadataPatentPublicationDetails,omitempty"` + + OceanMetadataPhysicalMeasurementsComponent *IndexingDocjoinerDataVersionVersionInfo `json:"oceanMetadataPhysicalMeasurementsComponent,omitempty"` + + OceanMetadataPublicDomainInfo *IndexingDocjoinerDataVersionVersionInfo `json:"oceanMetadataPublicDomainInfo,omitempty"` + + OceanMetadataPublicationDetailsComponent *IndexingDocjoinerDataVersionVersionInfo `json:"oceanMetadataPublicationDetailsComponent,omitempty"` + + OceanMetadataRightsComponent *IndexingDocjoinerDataVersionVersionInfo `json:"oceanMetadataRightsComponent,omitempty"` + + OceanMetadataSeriesInfoComponent *IndexingDocjoinerDataVersionVersionInfo `json:"oceanMetadataSeriesInfoComponent,omitempty"` + + OceanMetadataTomeDetailsComponent *IndexingDocjoinerDataVersionVersionInfo `json:"oceanMetadataTomeDetailsComponent,omitempty"` + + OceanMetadataTomeMembersComponent *IndexingDocjoinerDataVersionVersionInfo `json:"oceanMetadataTomeMembersComponent,omitempty"` + + OceanMetadataTomePriceInfo *IndexingDocjoinerDataVersionVersionInfo `json:"oceanMetadataTomePriceInfo,omitempty"` + + OceanReviewsForWork *IndexingDocjoinerDataVersionVersionInfo `json:"oceanReviewsForWork,omitempty"` + + OceanRightsOptOutRequest *IndexingDocjoinerDataVersionVersionInfo `json:"oceanRightsOptOutRequest,omitempty"` + + OfficialPagesQuerySet *IndexingDocjoinerDataVersionVersionInfo `json:"officialPagesQuerySet,omitempty"` + + PerDocLangidData *IndexingDocjoinerDataVersionVersionInfo `json:"perDocLangidData,omitempty"` + + PersonalizationGameWebeventsConsolidatedEvents *IndexingDocjoinerDataVersionVersionInfo `json:"personalizationGameWebeventsConsolidatedEvents,omitempty"` + + PersonalizationGameWebeventsEvent *IndexingDocjoinerDataVersionVersionInfo `json:"personalizationGameWebeventsEvent,omitempty"` + + PersonalizationGameWebeventsEvents *IndexingDocjoinerDataVersionVersionInfo `json:"personalizationGameWebeventsEvents,omitempty"` + + PhotosGeoAnnotation *IndexingDocjoinerDataVersionVersionInfo `json:"photosGeoAnnotation,omitempty"` + PredictedAuthenticity *IndexingDocjoinerDataVersionVersionInfo `json:"predictedAuthenticity,omitempty"` + PriceAnnotations *IndexingDocjoinerDataVersionVersionInfo `json:"priceAnnotations,omitempty"` + + QualityAnchorsOutdegreeOutdegreeInfo *IndexingDocjoinerDataVersionVersionInfo `json:"qualityAnchorsOutdegreeOutdegreeInfo,omitempty"` + + QualityAnimaLivewebLivewebAttachment *IndexingDocjoinerDataVersionVersionInfo `json:"qualityAnimaLivewebLivewebAttachment,omitempty"` + + QualityAnimaRoutinesRoutinesPropertiesProto *IndexingDocjoinerDataVersionVersionInfo `json:"qualityAnimaRoutinesRoutinesPropertiesProto,omitempty"` + + QualityAuthorityTopicEmbeddings *IndexingDocjoinerDataVersionVersionInfo `json:"qualityAuthorityTopicEmbeddings,omitempty"` + + QualityAuthorshipAuthorAnnotations *IndexingDocjoinerDataVersionVersionInfo `json:"qualityAuthorshipAuthorAnnotations,omitempty"` + + QualityBreadcrumbsBreadcrumbAnnotations *IndexingDocjoinerDataVersionVersionInfo `json:"qualityBreadcrumbsBreadcrumbAnnotations,omitempty"` + + QualityCalypsoAppsLink *IndexingDocjoinerDataVersionVersionInfo `json:"qualityCalypsoAppsLink,omitempty"` + + QualityChardDocument *IndexingDocjoinerDataVersionVersionInfo `json:"qualityChardDocument,omitempty"` + + QualityChardPredictedQueryFringeScore *IndexingDocjoinerDataVersionVersionInfo `json:"qualityChardPredictedQueryFringeScore,omitempty"` + + QualityChardPredictedXlq *IndexingDocjoinerDataVersionVersionInfo `json:"qualityChardPredictedXlq,omitempty"` + + QualityContraSelectedAttributions *IndexingDocjoinerDataVersionVersionInfo `json:"qualityContraSelectedAttributions,omitempty"` + + QualityCopiaFireflySiteInfo *IndexingDocjoinerDataVersionVersionInfo `json:"qualityCopiaFireflySiteInfo,omitempty"` + + QualityDiscoverUgcScatScatEmbeddingAnnotation *IndexingDocjoinerDataVersionVersionInfo `json:"qualityDiscoverUgcScatScatEmbeddingAnnotation,omitempty"` + + QualityDniNewsstandPcu *IndexingDocjoinerDataVersionVersionInfo `json:"qualityDniNewsstandPcu,omitempty"` + + QualityDniPcuAuxiliaryData *IndexingDocjoinerDataVersionVersionInfo `json:"qualityDniPcuAuxiliaryData,omitempty"` + + QualityDniPcuMetaAnnotation *IndexingDocjoinerDataVersionVersionInfo `json:"qualityDniPcuMetaAnnotation,omitempty"` + + QualityDniPcuParsedData *IndexingDocjoinerDataVersionVersionInfo `json:"qualityDniPcuParsedData,omitempty"` + + QualityDniPcuRawData *IndexingDocjoinerDataVersionVersionInfo `json:"qualityDniPcuRawData,omitempty"` + + QualityExploreQueryableFeedEcsAnnotation *IndexingDocjoinerDataVersionVersionInfo `json:"qualityExploreQueryableFeedEcsAnnotation,omitempty"` + + QualityExploreQueryableFeedHashtagAnnotation *IndexingDocjoinerDataVersionVersionInfo `json:"qualityExploreQueryableFeedHashtagAnnotation,omitempty"` + + QualityExploreQueryableFeedHashtagListAnnotation *IndexingDocjoinerDataVersionVersionInfo `json:"qualityExploreQueryableFeedHashtagListAnnotation,omitempty"` + + QualityExploreQueryableFeedTopicFeedScoringSignals *IndexingDocjoinerDataVersionVersionInfo `json:"qualityExploreQueryableFeedTopicFeedScoringSignals,omitempty"` + + QualityFreshnessAbacusInstantNegativeClicksInfo *IndexingDocjoinerDataVersionVersionInfo `json:"qualityFreshnessAbacusInstantNegativeClicksInfo,omitempty"` + + QualityFringeFringeQueryPrior *IndexingDocjoinerDataVersionVersionInfo `json:"qualityFringeFringeQueryPrior,omitempty"` + + QualityGeoBrainlocGoldmineBrainlocAnnotation *IndexingDocjoinerDataVersionVersionInfo `json:"qualityGeoBrainlocGoldmineBrainlocAnnotation,omitempty"` + + QualityGeoLoglocGoldmineDocumentLocationAnnotation *IndexingDocjoinerDataVersionVersionInfo `json:"qualityGeoLoglocGoldmineDocumentLocationAnnotation,omitempty"` + + QualityHistoricalContentAge *IndexingDocjoinerDataVersionVersionInfo `json:"qualityHistoricalContentAge,omitempty"` + + QualityHorizonProtoHorizonEmbeddings *IndexingDocjoinerDataVersionVersionInfo `json:"qualityHorizonProtoHorizonEmbeddings,omitempty"` + + QualityHorizonRecordInfoAnnotation *IndexingDocjoinerDataVersionVersionInfo `json:"qualityHorizonRecordInfoAnnotation,omitempty"` + + QualityImprovDocToQueries *IndexingDocjoinerDataVersionVersionInfo `json:"qualityImprovDocToQueries,omitempty"` + + QualityImprovImprovAnchors *IndexingDocjoinerDataVersionVersionInfo `json:"qualityImprovImprovAnchors,omitempty"` + + QualityLisztomaniaDocument *IndexingDocjoinerDataVersionVersionInfo `json:"qualityLisztomaniaDocument,omitempty"` + + QualityNavboostCrapsCrapsData *IndexingDocjoinerDataVersionVersionInfo `json:"qualityNavboostCrapsCrapsData,omitempty"` + + QualityNavboostCrapsCrapsPatternSignal *IndexingDocjoinerDataVersionVersionInfo `json:"qualityNavboostCrapsCrapsPatternSignal,omitempty"` + + QualityNegativeClicksNegativeClicksInfo *IndexingDocjoinerDataVersionVersionInfo `json:"qualityNegativeClicksNegativeClicksInfo,omitempty"` + + QualityNlqStructuredSearchAnnotationAnalysisAutomaticExtractionAnnotations *IndexingDocjoinerDataVersionVersionInfo `json:"qualityNlqStructuredSearchAnnotationAnalysisAutomaticExtractionAnnotations,omitempty"` + + QualityNlqStructuredSearchListingPagesListingPageAnnotations *IndexingDocjoinerDataVersionVersionInfo `json:"qualityNlqStructuredSearchListingPagesListingPageAnnotations,omitempty"` + + QualityNsrDokiAnnotation *IndexingDocjoinerDataVersionVersionInfo `json:"qualityNsrDokiAnnotation,omitempty"` + + QualityNsrNsrData *IndexingDocjoinerDataVersionVersionInfo `json:"qualityNsrNsrData,omitempty"` + + QualityNsrNsrSitechunksAnnotation *IndexingDocjoinerDataVersionVersionInfo `json:"qualityNsrNsrSitechunksAnnotation,omitempty"` + + QualityNsrPairwiseqPairwiseQData *IndexingDocjoinerDataVersionVersionInfo `json:"qualityNsrPairwiseqPairwiseQData,omitempty"` + + QualityNsrPqData *IndexingDocjoinerDataVersionVersionInfo `json:"qualityNsrPqData,omitempty"` + + QualityNsrSiteAuthority *IndexingDocjoinerDataVersionVersionInfo `json:"qualityNsrSiteAuthority,omitempty"` + + QualityNsrUvSitechunksAnnotation *IndexingDocjoinerDataVersionVersionInfo `json:"qualityNsrUvSitechunksAnnotation,omitempty"` + + QualityOrbitAsteroidBeltIntermediateDocumentIntentScores *IndexingDocjoinerDataVersionVersionInfo `json:"qualityOrbitAsteroidBeltIntermediateDocumentIntentScores,omitempty"` + + QualityPagemasterPagemasterAnnotations *IndexingDocjoinerDataVersionVersionInfo `json:"qualityPagemasterPagemasterAnnotations,omitempty"` + + QualityPanopticIndexingDiscoverCorpusAnnotation *IndexingDocjoinerDataVersionVersionInfo `json:"qualityPanopticIndexingDiscoverCorpusAnnotation,omitempty"` + + QualityPanopticIndexingDiscoverDocumentSignal *IndexingDocjoinerDataVersionVersionInfo `json:"qualityPanopticIndexingDiscoverDocumentSignal,omitempty"` + + QualityPanopticIndexingPanopticAnnotation *IndexingDocjoinerDataVersionVersionInfo `json:"qualityPanopticIndexingPanopticAnnotation,omitempty"` + + QualityPanopticStorytimeAnnotation *IndexingDocjoinerDataVersionVersionInfo `json:"qualityPanopticStorytimeAnnotation,omitempty"` + + QualityPanopticStorytimeScoringSignals *IndexingDocjoinerDataVersionVersionInfo `json:"qualityPanopticStorytimeScoringSignals,omitempty"` + + QualityPanopticVoiceUgcAnnotation *IndexingDocjoinerDataVersionVersionInfo `json:"qualityPanopticVoiceUgcAnnotation,omitempty"` + + QualityPeoplesearchNamedetectorNameOccurrenceAnnotations *IndexingDocjoinerDataVersionVersionInfo `json:"qualityPeoplesearchNamedetectorNameOccurrenceAnnotations,omitempty"` + + QualityPopfeedsChromeBackgroundAnnotation *IndexingDocjoinerDataVersionVersionInfo `json:"qualityPopfeedsChromeBackgroundAnnotation,omitempty"` + + QualityPopfeedsHubDataAnnotations *IndexingDocjoinerDataVersionVersionInfo `json:"qualityPopfeedsHubDataAnnotations,omitempty"` + + QualityPopfeedsUrlPredictionAnnotations *IndexingDocjoinerDataVersionVersionInfo `json:"qualityPopfeedsUrlPredictionAnnotations,omitempty"` + + QualityPopfeedsUrlSourceAnnotations *IndexingDocjoinerDataVersionVersionInfo `json:"qualityPopfeedsUrlSourceAnnotations,omitempty"` + + QualityPricedetectorKefirPriceAnnotations *IndexingDocjoinerDataVersionVersionInfo `json:"qualityPricedetectorKefirPriceAnnotations,omitempty"` + + QualityPricedetectorProductBlockAnnotations *IndexingDocjoinerDataVersionVersionInfo `json:"qualityPricedetectorProductBlockAnnotations,omitempty"` + + QualityProseJsonLdAnnotation *IndexingDocjoinerDataVersionVersionInfo `json:"qualityProseJsonLdAnnotation,omitempty"` + + QualityProseThumbnailSelection *IndexingDocjoinerDataVersionVersionInfo `json:"qualityProseThumbnailSelection,omitempty"` + + QualityQ2QualityBoost *IndexingDocjoinerDataVersionVersionInfo `json:"qualityQ2QualityBoost,omitempty"` + + QualityQ2SiteQualityFeatures *IndexingDocjoinerDataVersionVersionInfo `json:"qualityQ2SiteQualityFeatures,omitempty"` + + QualityRealtimeBoostRealtimeBoostEvent *IndexingDocjoinerDataVersionVersionInfo `json:"qualityRealtimeBoostRealtimeBoostEvent,omitempty"` + + QualityRealtimeBoostRealtimeBoostResponse *IndexingDocjoinerDataVersionVersionInfo `json:"qualityRealtimeBoostRealtimeBoostResponse,omitempty"` + + QualityRealtimeBoostSeismographEventAnnotations *IndexingDocjoinerDataVersionVersionInfo `json:"qualityRealtimeBoostSeismographEventAnnotations,omitempty"` + + QualityRealtimeRealtimeResultInfo *IndexingDocjoinerDataVersionVersionInfo `json:"qualityRealtimeRealtimeResultInfo,omitempty"` + + QualityRealtimeRtFactAnnotations *IndexingDocjoinerDataVersionVersionInfo `json:"qualityRealtimeRtFactAnnotations,omitempty"` + + QualityResultFilteringIndexingClusterAnnotations *IndexingDocjoinerDataVersionVersionInfo `json:"qualityResultFilteringIndexingClusterAnnotations,omitempty"` + + QualityRichsnippetsAppsProtosApplicationInformationAttachment *IndexingDocjoinerDataVersionVersionInfo `json:"qualityRichsnippetsAppsProtosApplicationInformationAttachment,omitempty"` + + QualityRodinRodinSiteSignal *IndexingDocjoinerDataVersionVersionInfo `json:"qualityRodinRodinSiteSignal,omitempty"` + + QualitySalientCountriesSalientCountrySet *IndexingDocjoinerDataVersionVersionInfo `json:"qualitySalientCountriesSalientCountrySet,omitempty"` + + QualitySalientStructuresSalientStructureSet *IndexingDocjoinerDataVersionVersionInfo `json:"qualitySalientStructuresSalientStructureSet,omitempty"` + + QualitySalientStuffSalientStuffSet *IndexingDocjoinerDataVersionVersionInfo `json:"qualitySalientStuffSalientStuffSet,omitempty"` + + QualitySalientTermsQuerySmearingModel *IndexingDocjoinerDataVersionVersionInfo `json:"qualitySalientTermsQuerySmearingModel,omitempty"` + + QualitySalientTermsSalientTermSet *IndexingDocjoinerDataVersionVersionInfo `json:"qualitySalientTermsSalientTermSet,omitempty"` + + QualitySearchoversiteAnnotatorStructuredResultsAnnotation *IndexingDocjoinerDataVersionVersionInfo `json:"qualitySearchoversiteAnnotatorStructuredResultsAnnotation,omitempty"` + + QualitySherlockKnexAnnotation *IndexingDocjoinerDataVersionVersionInfo `json:"qualitySherlockKnexAnnotation,omitempty"` + + QualityShoppingProductReview *IndexingDocjoinerDataVersionVersionInfo `json:"qualityShoppingProductReview,omitempty"` + + QualityShoppingProductReviewPage *IndexingDocjoinerDataVersionVersionInfo `json:"qualityShoppingProductReviewPage,omitempty"` + + QualityShoppingShoppingProductReviewAnnotation *IndexingDocjoinerDataVersionVersionInfo `json:"qualityShoppingShoppingProductReviewAnnotation,omitempty"` + + QualitySimilarpagesRelatedInfoSignal *IndexingDocjoinerDataVersionVersionInfo `json:"qualitySimilarpagesRelatedInfoSignal,omitempty"` + + QualitySitemapDocument *IndexingDocjoinerDataVersionVersionInfo `json:"qualitySitemapDocument,omitempty"` + + QualitySitemapThirdPartyCarouselsItemLists *IndexingDocjoinerDataVersionVersionInfo `json:"qualitySitemapThirdPartyCarouselsItemLists,omitempty"` + + QualitySixfaceSixfaceUrlData *IndexingDocjoinerDataVersionVersionInfo `json:"qualitySixfaceSixfaceUrlData,omitempty"` + + QualitySnippetsHiddenTextHiddenSpanAnnotations *IndexingDocjoinerDataVersionVersionInfo `json:"qualitySnippetsHiddenTextHiddenSpanAnnotations,omitempty"` + + QualitySnippetsListSnippetsAnnotations *IndexingDocjoinerDataVersionVersionInfo `json:"qualitySnippetsListSnippetsAnnotations,omitempty"` + + QualitySnippetsMetadescriptionDuplicateMetaSiteSignal *IndexingDocjoinerDataVersionVersionInfo `json:"qualitySnippetsMetadescriptionDuplicateMetaSiteSignal,omitempty"` + + QualitySnippetsSnippetSpansInfo *IndexingDocjoinerDataVersionVersionInfo `json:"qualitySnippetsSnippetSpansInfo,omitempty"` + + QualitySosGoldmineSosAnnotation *IndexingDocjoinerDataVersionVersionInfo `json:"qualitySosGoldmineSosAnnotation,omitempty"` + + QualitySummarySummary *IndexingDocjoinerDataVersionVersionInfo `json:"qualitySummarySummary,omitempty"` + + QualityTangramInformationTypes *IndexingDocjoinerDataVersionVersionInfo `json:"qualityTangramInformationTypes,omitempty"` + + QualityTimebasedTimeSensitivityTimeSensitivityAnnotation *IndexingDocjoinerDataVersionVersionInfo `json:"qualityTimebasedTimeSensitivityTimeSensitivityAnnotation,omitempty"` + + QualityTitlesAlternativeTitlesInfo *IndexingDocjoinerDataVersionVersionInfo `json:"qualityTitlesAlternativeTitlesInfo,omitempty"` + + QualityTitlesSitelinksTargetTitleInfo *IndexingDocjoinerDataVersionVersionInfo `json:"qualityTitlesSitelinksTargetTitleInfo,omitempty"` + + QualityTwiddlerDomainClassification *IndexingDocjoinerDataVersionVersionInfo `json:"qualityTwiddlerDomainClassification,omitempty"` + + QualityViewsAnswersAnswerAnnotationInfo *IndexingDocjoinerDataVersionVersionInfo `json:"qualityViewsAnswersAnswerAnnotationInfo,omitempty"` + + QualityVisualwebVisualWebAnnotation *IndexingDocjoinerDataVersionVersionInfo `json:"qualityVisualwebVisualWebAnnotation,omitempty"` + + QualityVisualwebVisualWebModelsAnnotation *IndexingDocjoinerDataVersionVersionInfo `json:"qualityVisualwebVisualWebModelsAnnotation,omitempty"` + + QualityWebanswersAltTitleSaftDoc *IndexingDocjoinerDataVersionVersionInfo `json:"qualityWebanswersAltTitleSaftDoc,omitempty"` + + QualityWebanswersTranscriptAnnotations *IndexingDocjoinerDataVersionVersionInfo `json:"qualityWebanswersTranscriptAnnotations,omitempty"` + + QualityWebfeederDocEmbedding *IndexingDocjoinerDataVersionVersionInfo `json:"qualityWebfeederDocEmbedding,omitempty"` + + QualityWebshineDocResources *IndexingDocjoinerDataVersionVersionInfo `json:"qualityWebshineDocResources,omitempty"` + + RankBoostDocAttachment *IndexingDocjoinerDataVersionVersionInfo `json:"rankBoostDocAttachment,omitempty"` + Rankembed *IndexingDocjoinerDataVersionVersionInfo `json:"rankembed,omitempty"` + RelativeDateAnnotations *IndexingDocjoinerDataVersionVersionInfo `json:"relativeDateAnnotations,omitempty"` + + RepositoryAnnotationsAddressAnnotations *IndexingDocjoinerDataVersionVersionInfo `json:"repositoryAnnotationsAddressAnnotations,omitempty"` + + RepositoryAnnotationsAmenitiesAmenitiesAnnotations *IndexingDocjoinerDataVersionVersionInfo `json:"repositoryAnnotationsAmenitiesAmenitiesAnnotations,omitempty"` + + RepositoryAnnotationsCrawzallAnnotations *IndexingDocjoinerDataVersionVersionInfo `json:"repositoryAnnotationsCrawzallAnnotations,omitempty"` + + RepositoryAnnotationsDiscussionThreadDiscussionViewProto *IndexingDocjoinerDataVersionVersionInfo `json:"repositoryAnnotationsDiscussionThreadDiscussionViewProto,omitempty"` + + RepositoryAnnotationsLicensedResources *IndexingDocjoinerDataVersionVersionInfo `json:"repositoryAnnotationsLicensedResources,omitempty"` + + RepositoryAnnotationsListFilterAnnotations *IndexingDocjoinerDataVersionVersionInfo `json:"repositoryAnnotationsListFilterAnnotations,omitempty"` + + RepositoryAnnotationsListSummaryAnnotations *IndexingDocjoinerDataVersionVersionInfo `json:"repositoryAnnotationsListSummaryAnnotations,omitempty"` + + RepositoryAnnotationsMicrodataMicrodataAnnotations *IndexingDocjoinerDataVersionVersionInfo `json:"repositoryAnnotationsMicrodataMicrodataAnnotations,omitempty"` + + RepositoryAnnotationsMicroformatsHproduct *IndexingDocjoinerDataVersionVersionInfo `json:"repositoryAnnotationsMicroformatsHproduct,omitempty"` + + RepositoryAnnotationsMicroformatsMicroformatAnnotations *IndexingDocjoinerDataVersionVersionInfo `json:"repositoryAnnotationsMicroformatsMicroformatAnnotations,omitempty"` + + RepositoryAnnotationsPhoneTypePhoneTypeAnnotations *IndexingDocjoinerDataVersionVersionInfo `json:"repositoryAnnotationsPhoneTypePhoneTypeAnnotations,omitempty"` + + RepositoryAnnotationsRdfaRdfaAnnotations *IndexingDocjoinerDataVersionVersionInfo `json:"repositoryAnnotationsRdfaRdfaAnnotations,omitempty"` + + RepositoryAnnotationsRodinArticleAnnotation *IndexingDocjoinerDataVersionVersionInfo `json:"repositoryAnnotationsRodinArticleAnnotation,omitempty"` + + RepositoryAnnotationsSectionHeadingAnnotations *IndexingDocjoinerDataVersionVersionInfo `json:"repositoryAnnotationsSectionHeadingAnnotations,omitempty"` + + RepositoryAnnotationsSnippetSegmentSnippetSegmentAnnotations *IndexingDocjoinerDataVersionVersionInfo `json:"repositoryAnnotationsSnippetSegmentSnippetSegmentAnnotations,omitempty"` + + RepositoryAnnotationsSporeAuthoritySignal *IndexingDocjoinerDataVersionVersionInfo `json:"repositoryAnnotationsSporeAuthoritySignal,omitempty"` + + RepositoryAnnotationsSporeDeeplinkAnnotations *IndexingDocjoinerDataVersionVersionInfo `json:"repositoryAnnotationsSporeDeeplinkAnnotations,omitempty"` + + RepositoryAnnotationsSporeExtractorTopicAnnotations *IndexingDocjoinerDataVersionVersionInfo `json:"repositoryAnnotationsSporeExtractorTopicAnnotations,omitempty"` + + RepositoryAnnotationsSporeExtractorTripleAnnotations *IndexingDocjoinerDataVersionVersionInfo `json:"repositoryAnnotationsSporeExtractorTripleAnnotations,omitempty"` + + RepositoryAnnotationsSporeSporeEtlAnnotation *IndexingDocjoinerDataVersionVersionInfo `json:"repositoryAnnotationsSporeSporeEtlAnnotation,omitempty"` + + RepositoryAnnotationsSporeSporeEtlInputAnnotations *IndexingDocjoinerDataVersionVersionInfo `json:"repositoryAnnotationsSporeSporeEtlInputAnnotations,omitempty"` + + RepositoryAnnotationsStorehoursStoreHoursAnnotations *IndexingDocjoinerDataVersionVersionInfo `json:"repositoryAnnotationsStorehoursStoreHoursAnnotations,omitempty"` + + RepositoryAnnotationsVerseAnnotations *IndexingDocjoinerDataVersionVersionInfo `json:"repositoryAnnotationsVerseAnnotations,omitempty"` + + RepositoryAnnotationsWebanswersContextItemAnnotations *IndexingDocjoinerDataVersionVersionInfo `json:"repositoryAnnotationsWebanswersContextItemAnnotations,omitempty"` + + RepositoryProtiumEncyclojoinsEncycloJoin *IndexingDocjoinerDataVersionVersionInfo `json:"repositoryProtiumEncyclojoinsEncycloJoin,omitempty"` + + RepositoryProtiumGoldmineTriplificationResult *IndexingDocjoinerDataVersionVersionInfo `json:"repositoryProtiumGoldmineTriplificationResult,omitempty"` + + RepositoryProtiumGoldmineTypeAssertionOutput *IndexingDocjoinerDataVersionVersionInfo `json:"repositoryProtiumGoldmineTypeAssertionOutput,omitempty"` + + RepositoryProtiumWebkvWebKv *IndexingDocjoinerDataVersionVersionInfo `json:"repositoryProtiumWebkvWebKv,omitempty"` + + RepositoryProtiumWikiaWikiaInfo *IndexingDocjoinerDataVersionVersionInfo `json:"repositoryProtiumWikiaWikiaInfo,omitempty"` + + RepositoryUpdaterIndexSelectionAttachment *IndexingDocjoinerDataVersionVersionInfo `json:"repositoryUpdaterIndexSelectionAttachment,omitempty"` + + RepositoryWebrefEntityJoin *IndexingDocjoinerDataVersionVersionInfo `json:"repositoryWebrefEntityJoin,omitempty"` + + RepositoryWebrefExperimentalWebrefEntitiesAttachment *IndexingDocjoinerDataVersionVersionInfo `json:"repositoryWebrefExperimentalWebrefEntitiesAttachment,omitempty"` + + RepositoryWebrefGraphMention *IndexingDocjoinerDataVersionVersionInfo `json:"repositoryWebrefGraphMention,omitempty"` + + RepositoryWebrefJuggernautIndices *IndexingDocjoinerDataVersionVersionInfo `json:"repositoryWebrefJuggernautIndices,omitempty"` + + RepositoryWebrefPageClassificationAnchorSignalsSet *IndexingDocjoinerDataVersionVersionInfo `json:"repositoryWebrefPageClassificationAnchorSignalsSet,omitempty"` + + RepositoryWebrefPageClassificationSignalsSet *IndexingDocjoinerDataVersionVersionInfo `json:"repositoryWebrefPageClassificationSignalsSet,omitempty"` + + RepositoryWebrefPiannoDocumentIntents *IndexingDocjoinerDataVersionVersionInfo `json:"repositoryWebrefPiannoDocumentIntents,omitempty"` + + RepositoryWebrefPiannoTvSeasonEpisode *IndexingDocjoinerDataVersionVersionInfo `json:"repositoryWebrefPiannoTvSeasonEpisode,omitempty"` + + RepositoryWebrefPreprocessingReferencePageCandidateList *IndexingDocjoinerDataVersionVersionInfo `json:"repositoryWebrefPreprocessingReferencePageCandidateList,omitempty"` + + RepositoryWebrefReconcileResponse *IndexingDocjoinerDataVersionVersionInfo `json:"repositoryWebrefReconcileResponse,omitempty"` + + RepositoryWebrefRefconJugglerReferencePageMappings *IndexingDocjoinerDataVersionVersionInfo `json:"repositoryWebrefRefconJugglerReferencePageMappings,omitempty"` + + RepositoryWebrefReferencePagesClassifierScoredPage *IndexingDocjoinerDataVersionVersionInfo `json:"repositoryWebrefReferencePagesClassifierScoredPage,omitempty"` + + RepositoryWebrefSalientEntitySet *IndexingDocjoinerDataVersionVersionInfo `json:"repositoryWebrefSalientEntitySet,omitempty"` + + RepositoryWebrefUndermergedEntities *IndexingDocjoinerDataVersionVersionInfo `json:"repositoryWebrefUndermergedEntities,omitempty"` + + RepositoryWebrefUniversalEmbeddingRetrievalDebug *IndexingDocjoinerDataVersionVersionInfo `json:"repositoryWebrefUniversalEmbeddingRetrievalDebug,omitempty"` + + RepositoryWebrefWebitIntermediaryMids *IndexingDocjoinerDataVersionVersionInfo `json:"repositoryWebrefWebitIntermediaryMids,omitempty"` + + RepositoryWebrefWebitScopeFprint *IndexingDocjoinerDataVersionVersionInfo `json:"repositoryWebrefWebitScopeFprint,omitempty"` + + RepositoryWebrefWebitScopeSignals *IndexingDocjoinerDataVersionVersionInfo `json:"repositoryWebrefWebitScopeSignals,omitempty"` + + RepositoryWebrefWebitTripleSignals *IndexingDocjoinerDataVersionVersionInfo `json:"repositoryWebrefWebitTripleSignals,omitempty"` + + RepositoryWebrefWebrefEntities *IndexingDocjoinerDataVersionVersionInfo `json:"repositoryWebrefWebrefEntities,omitempty"` + + RepositoryWebrefWebrefStatus *IndexingDocjoinerDataVersionVersionInfo `json:"repositoryWebrefWebrefStatus,omitempty"` + + RepositoryWebtablesDataTableAnnotations *IndexingDocjoinerDataVersionVersionInfo `json:"repositoryWebtablesDataTableAnnotations,omitempty"` + + RepositoryWebtablesDataTableMidAnnotation *IndexingDocjoinerDataVersionVersionInfo `json:"repositoryWebtablesDataTableMidAnnotation,omitempty"` + + RepositoryWebtablesTranslationMessage *IndexingDocjoinerDataVersionVersionInfo `json:"repositoryWebtablesTranslationMessage,omitempty"` + + RepositoryWikipediaAliasList *IndexingDocjoinerDataVersionVersionInfo `json:"repositoryWikipediaAliasList,omitempty"` + + RepositoryWikipediaAnnotatorWikipediaPageComponentAnnotations *IndexingDocjoinerDataVersionVersionInfo `json:"repositoryWikipediaAnnotatorWikipediaPageComponentAnnotations,omitempty"` + + RepositoryWikipediaSentenceCompressionAnnotation *IndexingDocjoinerDataVersionVersionInfo `json:"repositoryWikipediaSentenceCompressionAnnotation,omitempty"` + + RepositoryWikipediaWikiJoin *IndexingDocjoinerDataVersionVersionInfo `json:"repositoryWikipediaWikiJoin,omitempty"` + + RepositoryWikipediaWikiMapperTripleSet *IndexingDocjoinerDataVersionVersionInfo `json:"repositoryWikipediaWikiMapperTripleSet,omitempty"` + + RepositoryWikipediaWikibaseEntity *IndexingDocjoinerDataVersionVersionInfo `json:"repositoryWikipediaWikibaseEntity,omitempty"` + + RepositoryWikipediaWikidataOrgTripleSet *IndexingDocjoinerDataVersionVersionInfo `json:"repositoryWikipediaWikidataOrgTripleSet,omitempty"` + + RepositoryWikipediaWikitrustWikiTrustInfo *IndexingDocjoinerDataVersionVersionInfo `json:"repositoryWikipediaWikitrustWikiTrustInfo,omitempty"` + + ResearchCoauthorOpinionAnnotations *IndexingDocjoinerDataVersionVersionInfo `json:"researchCoauthorOpinionAnnotations,omitempty"` + + ResearchStructuredDataInadvertentAnchorScoreAnnotation *IndexingDocjoinerDataVersionVersionInfo `json:"researchStructuredDataInadvertentAnchorScoreAnnotation,omitempty"` + + ResearchStructuredDataKnowledgeExplorationAnnotations *IndexingDocjoinerDataVersionVersionInfo `json:"researchStructuredDataKnowledgeExplorationAnnotations,omitempty"` + + ResearchStructuredDataNewsEmbeddingAnnotations *IndexingDocjoinerDataVersionVersionInfo `json:"researchStructuredDataNewsEmbeddingAnnotations,omitempty"` + + RichsnippetsDataObject *IndexingDocjoinerDataVersionVersionInfo `json:"richsnippetsDataObject,omitempty"` + + RichsnippetsFeedPageMap *IndexingDocjoinerDataVersionVersionInfo `json:"richsnippetsFeedPageMap,omitempty"` + + RichsnippetsPageMap *IndexingDocjoinerDataVersionVersionInfo `json:"richsnippetsPageMap,omitempty"` + + RichsnippetsPageMapAnnotations *IndexingDocjoinerDataVersionVersionInfo `json:"richsnippetsPageMapAnnotations,omitempty"` + + RichsnippetsSchemaThing *IndexingDocjoinerDataVersionVersionInfo `json:"richsnippetsSchemaThing,omitempty"` + RosettaLanguage *IndexingDocjoinerDataVersionVersionInfo `json:"rosettaLanguage,omitempty"` + SafesearchPageClassifierOutput *IndexingDocjoinerDataVersionVersionInfo `json:"safesearchPageClassifierOutput,omitempty"` + + SafesearchSafeSearchInternalPageSignals *IndexingDocjoinerDataVersionVersionInfo `json:"safesearchSafeSearchInternalPageSignals,omitempty"` + + ScienceIndexSignal *IndexingDocjoinerDataVersionVersionInfo `json:"scienceIndexSignal,omitempty"` + + SearchEngagementHighlightSharedHighlightSignal *IndexingDocjoinerDataVersionVersionInfo `json:"searchEngagementHighlightSharedHighlightSignal,omitempty"` + + SearcharSearchArPipelineSignal *IndexingDocjoinerDataVersionVersionInfo `json:"searcharSearchArPipelineSignal,omitempty"` + + ShoppingQualityShoppingSiteClassifier *IndexingDocjoinerDataVersionVersionInfo `json:"shoppingQualityShoppingSiteClassifier,omitempty"` + + ShoppingQualityShoppingSiteClassifierShopfab *IndexingDocjoinerDataVersionVersionInfo `json:"shoppingQualityShoppingSiteClassifierShopfab,omitempty"` + + ShoppingWebentityShoppingAnnotation *IndexingDocjoinerDataVersionVersionInfo `json:"shoppingWebentityShoppingAnnotation,omitempty"` + + SitemapsSitemapsSignals *IndexingDocjoinerDataVersionVersionInfo `json:"sitemapsSitemapsSignals,omitempty"` + + SmearingSmearedTerms *IndexingDocjoinerDataVersionVersionInfo `json:"smearingSmearedTerms,omitempty"` + + SocialPersonalizationKnexAnnotation *IndexingDocjoinerDataVersionVersionInfo `json:"socialPersonalizationKnexAnnotation,omitempty"` + + SpamBrainSpamBrainData *IndexingDocjoinerDataVersionVersionInfo `json:"spamBrainSpamBrainData,omitempty"` + + SpamBrainSpamBrainPageClassifierAnnotation *IndexingDocjoinerDataVersionVersionInfo `json:"spamBrainSpamBrainPageClassifierAnnotation,omitempty"` + + SpamContentAnchorDist *IndexingDocjoinerDataVersionVersionInfo `json:"spamContentAnchorDist,omitempty"` + + SpamContentAuthenticAuthenticTextAnnotation *IndexingDocjoinerDataVersionVersionInfo `json:"spamContentAuthenticAuthenticTextAnnotation,omitempty"` + + SpamContentImageMapPb *IndexingDocjoinerDataVersionVersionInfo `json:"spamContentImageMapPb,omitempty"` + + SpamContentSiteAgeStats *IndexingDocjoinerDataVersionVersionInfo `json:"spamContentSiteAgeStats,omitempty"` + + SpamCookbookCookbookAnnotations *IndexingDocjoinerDataVersionVersionInfo `json:"spamCookbookCookbookAnnotations,omitempty"` + + SpamCookbookCookbookSitechunkAnnotations *IndexingDocjoinerDataVersionVersionInfo `json:"spamCookbookCookbookSitechunkAnnotations,omitempty"` + + SpamFatpingIndexFeed *IndexingDocjoinerDataVersionVersionInfo `json:"spamFatpingIndexFeed,omitempty"` + + SpamGodclusterAffIdAnnotation *IndexingDocjoinerDataVersionVersionInfo `json:"spamGodclusterAffIdAnnotation,omitempty"` + + SpamGodclusterServerHeaderAnnotation *IndexingDocjoinerDataVersionVersionInfo `json:"spamGodclusterServerHeaderAnnotation,omitempty"` + + SpamGooglebombsGooglebombsAnnotation *IndexingDocjoinerDataVersionVersionInfo `json:"spamGooglebombsGooglebombsAnnotation,omitempty"` + + SpamHackedSitesDocSpamInfo *IndexingDocjoinerDataVersionVersionInfo `json:"spamHackedSitesDocSpamInfo,omitempty"` + + SpamHackedSitesGpgbGpgbNgramStats *IndexingDocjoinerDataVersionVersionInfo `json:"spamHackedSitesGpgbGpgbNgramStats,omitempty"` + + SpamHackedSitesWordFrequencies *IndexingDocjoinerDataVersionVersionInfo `json:"spamHackedSitesWordFrequencies,omitempty"` + + SpamJsJsInfo *IndexingDocjoinerDataVersionVersionInfo `json:"spamJsJsInfo,omitempty"` + + SpamScamScamness *IndexingDocjoinerDataVersionVersionInfo `json:"spamScamScamness,omitempty"` + + SpamScamUnauthoritativeSite *IndexingDocjoinerDataVersionVersionInfo `json:"spamScamUnauthoritativeSite,omitempty"` + + SpamTokensSpamTokensAnnotation *IndexingDocjoinerDataVersionVersionInfo `json:"spamTokensSpamTokensAnnotation,omitempty"` + + TableTalkStrideOfferPagePriceAnnotation *IndexingDocjoinerDataVersionVersionInfo `json:"tableTalkStrideOfferPagePriceAnnotation,omitempty"` + + TasksTabaTabaDocSignals *IndexingDocjoinerDataVersionVersionInfo `json:"tasksTabaTabaDocSignals,omitempty"` + + TelephoneNumberAnnotations *IndexingDocjoinerDataVersionVersionInfo `json:"telephoneNumberAnnotations,omitempty"` + + TimeAnnotationTags *IndexingDocjoinerDataVersionVersionInfo `json:"timeAnnotationTags,omitempty"` + + TimeAnnotations *IndexingDocjoinerDataVersionVersionInfo `json:"timeAnnotations,omitempty"` + + TimeRangeAnnotations *IndexingDocjoinerDataVersionVersionInfo `json:"timeRangeAnnotations,omitempty"` + + TravelAssistantTravelDocClassification *IndexingDocjoinerDataVersionVersionInfo `json:"travelAssistantTravelDocClassification,omitempty"` + + UdrConverterDocumentShoppingData *IndexingDocjoinerDataVersionVersionInfo `json:"udrConverterDocumentShoppingData,omitempty"` + + UdrConverterOffer *IndexingDocjoinerDataVersionVersionInfo `json:"udrConverterOffer,omitempty"` + + UdrConverterProductBlockData *IndexingDocjoinerDataVersionVersionInfo `json:"udrConverterProductBlockData,omitempty"` + + UdrProtoDetailedEntityScores *IndexingDocjoinerDataVersionVersionInfo `json:"udrProtoDetailedEntityScores,omitempty"` + + UdrProtoOverlay *IndexingDocjoinerDataVersionVersionInfo `json:"udrProtoOverlay,omitempty"` + + UdrProtoWebrefMention *IndexingDocjoinerDataVersionVersionInfo `json:"udrProtoWebrefMention,omitempty"` + UniversalFacts *IndexingDocjoinerDataVersionVersionInfo `json:"universalFacts,omitempty"` + UnwantedImageDataList *IndexingDocjoinerDataVersionVersionInfo `json:"unwantedImageDataList,omitempty"` + + UriAnnotations *IndexingDocjoinerDataVersionVersionInfo `json:"uriAnnotations,omitempty"` + + UtilStatusProto *IndexingDocjoinerDataVersionVersionInfo `json:"utilStatusProto,omitempty"` + + VerticalsDiscussionDiscussionAnnotationTag *IndexingDocjoinerDataVersionVersionInfo `json:"verticalsDiscussionDiscussionAnnotationTag,omitempty"` + + VideoCrawlAutomatedAudioExtractionSignals *IndexingDocjoinerDataVersionVersionInfo `json:"videoCrawlAutomatedAudioExtractionSignals,omitempty"` + + VideoCrawlAutomatedExtractionSignals *IndexingDocjoinerDataVersionVersionInfo `json:"videoCrawlAutomatedExtractionSignals,omitempty"` + + VideoCrawlDomainVideoClickData *IndexingDocjoinerDataVersionVersionInfo `json:"videoCrawlDomainVideoClickData,omitempty"` + + VideoCrawlVideoClickData *IndexingDocjoinerDataVersionVersionInfo `json:"videoCrawlVideoClickData,omitempty"` + + VideoCrawlVideoSalientTermSet *IndexingDocjoinerDataVersionVersionInfo `json:"videoCrawlVideoSalientTermSet,omitempty"` + + VideoCrawlVideoScoringSignals *IndexingDocjoinerDataVersionVersionInfo `json:"videoCrawlVideoScoringSignals,omitempty"` + + VideoCrawlWatchPagePatternClassification *IndexingDocjoinerDataVersionVersionInfo `json:"videoCrawlWatchPagePatternClassification,omitempty"` + + VideoCrawlYoutubeEmbedSignal *IndexingDocjoinerDataVersionVersionInfo `json:"videoCrawlYoutubeEmbedSignal,omitempty"` + VideoScoringSignal *IndexingDocjoinerDataVersionVersionInfo `json:"videoScoringSignal,omitempty"` + VideoWebGallery *IndexingDocjoinerDataVersionVersionInfo `json:"videoWebGallery,omitempty"` + + VideoYoutubeLiveCardioCardioStats *IndexingDocjoinerDataVersionVersionInfo `json:"videoYoutubeLiveCardioCardioStats,omitempty"` + Volt *IndexingDocjoinerDataVersionVersionInfo `json:"volt,omitempty"` + WatchpageLanguageWatchPageLanguageResult *IndexingDocjoinerDataVersionVersionInfo `json:"watchpageLanguageWatchPageLanguageResult,omitempty"` + + WebsitetoolsFeedsAnnotationsFeedContentAnnotations *IndexingDocjoinerDataVersionVersionInfo `json:"websitetoolsFeedsAnnotationsFeedContentAnnotations,omitempty"` + + WebsitetoolsFeedsLinkedFeedLinkedFeed *IndexingDocjoinerDataVersionVersionInfo `json:"websitetoolsFeedsLinkedFeedLinkedFeed,omitempty"` + + WebsitetoolsFeedsPodcastPodcastSignals *IndexingDocjoinerDataVersionVersionInfo `json:"websitetoolsFeedsPodcastPodcastSignals,omitempty"` + + WebsitetoolsFeedsSporeFeedsSporeTriples *IndexingDocjoinerDataVersionVersionInfo `json:"websitetoolsFeedsSporeFeedsSporeTriples,omitempty"` + + WhatshappStrideExtractions *IndexingDocjoinerDataVersionVersionInfo `json:"whatshappStrideExtractions,omitempty"` + + YoutubeAlexandriaYoutubeBody *IndexingDocjoinerDataVersionVersionInfo `json:"youtubeAlexandriaYoutubeBody,omitempty"` + + YoutubeAlexandriaYoutubeSignal *IndexingDocjoinerDataVersionVersionInfo `json:"youtubeAlexandriaYoutubeSignal,omitempty"` + // ForceSendFields is a list of field names (e.g. // "AcceleratedShoppingSignal") to unconditionally include in API // requests. By default, fields with empty or default values are omitted @@ -99063,7 +100221,6 @@ type NlpSemanticParsingRelatedEntity struct { // "EQUIVALENT" - Equivalent to the other entity. // "MUNIN_SYNONYM" - The related entity is a synonym added to Munin // interpretation. - // "SYNONYM" - The related entity is a synonym. EquivalentRelation string `json:"equivalentRelation,omitempty"` // MdvcRelation: The mdvc relation with the related mid. @@ -103190,7 +104347,7 @@ func (s *PeoplestackFlexorgsProtoInternalExternalStateStatus) MarshalJSON() ([]b // fo} for protocols used during search and/or docinfo. Next available // tag deprecated, use this (and look for commented out fields): // blaze-bin/net/proto_compiler/protocol-compiler --freetags \ -// indexer/perdocdata/perdocdata.proto Next tag: 222 +// indexer/perdocdata/perdocdata.proto Next tag: 223 type PerDocData struct { BlogData *BlogPerDocData `json:"BlogData,omitempty"` @@ -106422,12 +107579,6 @@ func (s *PhotosVisionObjectrecROI) MarshalJSON() ([]byte, error) { // flag for a url. and an optional image score. Next available tag id: // 51. type PornFlagData struct { - // CoclickBrainScores: Aggregated brain_porn_scores for navboost - // co-clicked images. Historical: this signal is deprecated and no - // longer populated as of 2020-12-01. Refer to b/172897542 for more - // information. - CoclickBrainScores *ImageSafesearchContentBrainPornAnnotation `json:"coclickBrainScores,omitempty"` - // CsaiScore: Score predicting how likely an image is offensive or // suggestive about CSAI (child sexual abuse imagery). CsaiScore float64 `json:"csaiScore,omitempty"` @@ -106516,21 +107667,20 @@ type PornFlagData struct { // associated with this image. UrlPornScores *ClassifierPornAggregatedUrlPornScores `json:"urlPornScores,omitempty"` - // ForceSendFields is a list of field names (e.g. "CoclickBrainScores") - // to unconditionally include in API requests. By default, fields with + // ForceSendFields is a list of field names (e.g. "CsaiScore") 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. "CoclickBrainScores") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "CsaiScore") 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:"-"` } @@ -107018,7 +108168,7 @@ func (s *PseudoVideoDataTranscriptTimestamp) MarshalJSON() ([]byte, error) { // objects being processed and stored in Google's production systems. // See go/ptoken to learn more. PTokens are intentionally opaque: // go/ptokens-are-opaque. The following should be considered -// implementation details. Next ID: 8 INTERNAL: If both the Scalar and +// implementation details. Next ID: 9 INTERNAL: If both the Scalar and // the Compound extensions are populated, we use the Compound and // discard the Scalar. In principle, this should never happen. type PtokenPToken struct { @@ -112284,11 +113434,12 @@ type QualityPreviewChosenSnippetInfo struct { // Unlike the sequence snippet, this only consists of one expanded // tidbit that are scored as the best single tidbit among the retrieved // tidbits. - // "FULL_V2" // "META" - This is a leading text of meta description. // "LEADING_TEXT" - This is a leading text of main body text (skipping // headers), and its starting position is typically identified in the // indexing phase. + // "FULL_V2" - Similar to FULL snippet, but this allows multiple + // candidates. // "SAFT_SENTENCE" - saft sentences. // "RADISH_SENTENCE" - Candidates created from radish attachment. // "RADISH_LIST" @@ -114032,8 +115183,9 @@ type QualityQrewritePersonalContactData struct { // Source: // LINT.ThenChange(//depot/google3/assistant/verticals/communication/\ // fulfillment/proto/contact_logging_enums.proto, - // //depot/google3/assistant/api/dialog_state/values/person.proto) Data - // source of the contact data. + // //depot/google3/assistant/api/dialog_state/values/person.proto, + // //depot/google3/assistant/context/proto/person.proto) Data source of + // the contact data. // // Possible values: // "FOCUS_CONTACT" - Contacts from Focus @@ -114052,6 +115204,7 @@ type QualityQrewritePersonalContactData struct { // are not contacts. // "ON_DEVICE_CONTACT_LOOKUP" - Contacts from on device lookup during // contact fulfillment. + // "APP_SEARCH_CONTACT" - Contacts from AppSearch. Source string `json:"source,omitempty"` // ForceSendFields is a list of field names (e.g. "AccountProvenance") @@ -118259,6 +119412,7 @@ type RepositoryWebrefAnnotationStatsPerType struct { // "VIDEO_OCR" // "IMAGE_OCR" // "LENS" + // "VIDEO_DESCRIPTION" // "ONLY_LOOKUP_METADATA" - Entries which are created in order to // instruct the fprint-loader to load metadata for the contained ngrams. // "EMBEDDED_CONTENT" - The embedded content in the document (e.g., @@ -121105,6 +122259,7 @@ type RepositoryWebrefFprintModifierProto struct { // "VIDEO_OCR" // "IMAGE_OCR" // "LENS" + // "VIDEO_DESCRIPTION" // "ONLY_LOOKUP_METADATA" - Entries which are created in order to // instruct the fprint-loader to load metadata for the contained ngrams. // "EMBEDDED_CONTENT" - The embedded content in the document (e.g., @@ -124505,6 +125660,8 @@ type RepositoryWebrefRefconMentionSpans struct { // "IMAGE_OCR" - The ocr text of an image. // "LENS" - Fake segment that contains all Lens entity mids in a given // image. + // "VIDEO_DESCRIPTION" - The video description coming from + // VideoScoringSignal Segment []string `json:"segment,omitempty"` // ShortToken: Fingerprinted tokens which form the mention span. We are @@ -124818,6 +125975,8 @@ type RepositoryWebrefSegmentMention struct { // "IMAGE_OCR" - The ocr text of an image. // "LENS" - Fake segment that contains all Lens entity mids in a given // image. + // "VIDEO_DESCRIPTION" - The video description coming from + // VideoScoringSignal SegmentType string `json:"segmentType,omitempty"` // ForceSendFields is a list of field names (e.g. "Mention") to @@ -124881,6 +126040,8 @@ type RepositoryWebrefSegmentMentions struct { // "IMAGE_OCR" - The ocr text of an image. // "LENS" - Fake segment that contains all Lens entity mids in a given // image. + // "VIDEO_DESCRIPTION" - The video description coming from + // VideoScoringSignal SegmentType string `json:"segmentType,omitempty"` // ForceSendFields is a list of field names (e.g. "Mention") to @@ -125125,7 +126286,7 @@ func (s *RepositoryWebrefSimplifiedAnchors) MarshalJSON() ([]byte, error) { // RepositoryWebrefSimplifiedCompositeDoc: Represents an information // which is very close to composite doc, but compresses how the anchors -// are represented to save space. Next available tag: 15. +// are represented to save space. Next available tag: 16. type RepositoryWebrefSimplifiedCompositeDoc struct { // Anchors: The composite doc anchors trimmed and transformed in a // smaller data structure and aggregated (if they have the exact same @@ -125183,7 +126344,9 @@ type RepositoryWebrefSimplifiedCompositeDoc struct { // CompositeDoc.doc.url. Url string `json:"url,omitempty"` - WebrefOutlinks *Proto2BridgeMessageSet `json:"webrefOutlinks,omitempty"` + WebrefOutlinkInfos *RepositoryWebrefWebrefOutlinkInfos `json:"webrefOutlinkInfos,omitempty"` + + WebrefOutlinksLegacy *Proto2BridgeMessageSet `json:"webrefOutlinksLegacy,omitempty"` // ForceSendFields is a list of field names (e.g. "Anchors") to // unconditionally include in API requests. By default, fields with @@ -134107,11 +135270,12 @@ type SnippetExtraInfoSnippetCandidateInfo struct { // Unlike the sequence snippet, this only consists of one expanded // tidbit that are scored as the best single tidbit among the retrieved // tidbits. - // "FULL_V2" // "META" - This is a leading text of meta description. // "LEADING_TEXT" - This is a leading text of main body text (skipping // headers), and its starting position is typically identified in the // indexing phase. + // "FULL_V2" - Similar to FULL snippet, but this allows multiple + // candidates. // "SAFT_SENTENCE" - saft sentences. // "RADISH_SENTENCE" - Candidates created from radish attachment. // "RADISH_LIST" @@ -144612,6 +145776,15 @@ type VendingConsumerProtoTrustedGenomeAnnotation struct { // redirection experiment. // "ONE_TIME_PRODUCT_VARIANT_OFFER_DARK_LAUNCH_SESSION_LEVEL" // "ONE_TIME_PRODUCT_VARIANT_OFFER_LAUNCH_SESSION_LEVEL" + // "AMPLIFY_FORM_OF_PAYMENT_ABANDONMENT_ELIGIBLE_SESSION_LEVEL" - + // Session level test code that indicates the user is eligible for an + // abandonment screen for a form of payment to be amplified. + // "SUBSCRIPTION_FREE_TRIAL_OFFER_HIGHLIGHT_SESSION_LEVEL" - Session + // level test code for subscription with free trial offer highlight + // buyflow. + // "SUBSCRIPTION_INTRO_PRICE_OFFER_HIGHLIGHT_SESSION_LEVEL" - Session + // level test code for subscription with intro price offer highlight + // buyflow. // "SESSION_LEVEL_TEST_CODE_LIMIT" // "CART_ABANDONMENT_USER_LEVEL" - Cart abandonment flow for purchase // flow. @@ -145125,6 +146298,9 @@ type VendingConsumerProtoTrustedGenomeAnnotation struct { // test code for users who have seen a Loyalty weekly prize banner. // "IS_ELIGIBLE_FOR_DYNAMIC_AUTH_USER_LEVEL" - User level test code // for users who are eligible for dynamic auth. + // "GE_LIVEOPS_PSPEND_USER_LEVEL" - User level test code for LiveOps + // pSpend uplift experiment. If GE campaign decision changed after + // enabling pSpend model, log test code. // "USER_LEVEL_TEST_CODE_LIMIT" TestCode []string `json:"testCode,omitempty"` @@ -147646,6 +148822,9 @@ type VideoContentSearchFrameStarburstData struct { // "ADSBURST_DISCOVERY_NERV_SUBS_V1" // "ADSBURST_BASIC_TEXT_TOWER_V0" // "ADSBURST_V2" + // "ADSBURST_V2_128D" + // "ADSBURST_V2_64D" + // "ADSBURST_V2_32D" // "SHOPPING_IMAGE_TRANSFORMATION_UNCROP" - Shopping image // transformation versions. // "SHOPPING_IMAGE_TRANSFORMATION_V2" @@ -162308,6 +163487,155 @@ func (c *ProjectsSetAclCall) Do(opts ...googleapi.CallOption) (*GoogleCloudConte } +// method id "contentwarehouse.projects.locations.getStatus": + +type ProjectsLocationsGetStatusCall struct { + s *Service + location string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// GetStatus: Get the project status. +// +// - location: The location to be queried Format: +// projects/{project_number}/locations/{location}. +func (r *ProjectsLocationsService) GetStatus(location string) *ProjectsLocationsGetStatusCall { + c := &ProjectsLocationsGetStatusCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.location = location + 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 *ProjectsLocationsGetStatusCall) Fields(s ...googleapi.Field) *ProjectsLocationsGetStatusCall { + 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 *ProjectsLocationsGetStatusCall) IfNoneMatch(entityTag string) *ProjectsLocationsGetStatusCall { + 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 *ProjectsLocationsGetStatusCall) Context(ctx context.Context) *ProjectsLocationsGetStatusCall { + 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 *ProjectsLocationsGetStatusCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsGetStatusCall) 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/{+location}:getStatus") + 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{ + "location": c.location, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "contentwarehouse.projects.locations.getStatus" call. +// Exactly one of *GoogleCloudContentwarehouseV1ProjectStatus or error +// will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudContentwarehouseV1ProjectStatus.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 *ProjectsLocationsGetStatusCall) Do(opts ...googleapi.CallOption) (*GoogleCloudContentwarehouseV1ProjectStatus, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleCloudContentwarehouseV1ProjectStatus{ + 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 the project status.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}:getStatus", + // "httpMethod": "GET", + // "id": "contentwarehouse.projects.locations.getStatus", + // "parameterOrder": [ + // "location" + // ], + // "parameters": { + // "location": { + // "description": "Required. The location to be queried Format: projects/{project_number}/locations/{location}.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+location}:getStatus", + // "response": { + // "$ref": "GoogleCloudContentwarehouseV1ProjectStatus" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + // method id "contentwarehouse.projects.locations.initialize": type ProjectsLocationsInitializeCall struct { diff --git a/essentialcontacts/v1/essentialcontacts-api.json b/essentialcontacts/v1/essentialcontacts-api.json index c20c9c349fa..067955a3bfa 100644 --- a/essentialcontacts/v1/essentialcontacts-api.json +++ b/essentialcontacts/v1/essentialcontacts-api.json @@ -1,13 +1,4 @@ { - "auth": { - "oauth2": { - "scopes": { - "https://www.googleapis.com/auth/cloud-platform": { - "description": "See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account." - } - } - } - }, "basePath": "", "baseUrl": "https://essentialcontacts.googleapis.com/", "batchPath": "batch", @@ -168,10 +159,7 @@ "path": "v1/{+parent}/contacts:compute", "response": { "$ref": "GoogleCloudEssentialcontactsV1ComputeContactsResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] + } }, "create": { "description": "Adds a new contact for a resource.", @@ -196,10 +184,7 @@ }, "response": { "$ref": "GoogleCloudEssentialcontactsV1Contact" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] + } }, "delete": { "description": "Deletes a contact.", @@ -221,10 +206,7 @@ "path": "v1/{+name}", "response": { "$ref": "GoogleProtobufEmpty" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] + } }, "get": { "description": "Gets a single contact.", @@ -246,10 +228,7 @@ "path": "v1/{+name}", "response": { "$ref": "GoogleCloudEssentialcontactsV1Contact" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] + } }, "list": { "description": "Lists the contacts that have been set on a resource.", @@ -282,10 +261,7 @@ "path": "v1/{+parent}/contacts", "response": { "$ref": "GoogleCloudEssentialcontactsV1ListContactsResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] + } }, "patch": { "description": "Updates a contact. Note: A contact's email address cannot be changed.", @@ -316,10 +292,7 @@ }, "response": { "$ref": "GoogleCloudEssentialcontactsV1Contact" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] + } }, "sendTestMessage": { "description": "Allows a contact admin to send a test message to contact to verify that it has been configured correctly.", @@ -344,10 +317,7 @@ }, "response": { "$ref": "GoogleProtobufEmpty" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] + } } } } @@ -416,10 +386,7 @@ "path": "v1/{+parent}/contacts:compute", "response": { "$ref": "GoogleCloudEssentialcontactsV1ComputeContactsResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] + } }, "create": { "description": "Adds a new contact for a resource.", @@ -444,10 +411,7 @@ }, "response": { "$ref": "GoogleCloudEssentialcontactsV1Contact" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] + } }, "delete": { "description": "Deletes a contact.", @@ -469,10 +433,7 @@ "path": "v1/{+name}", "response": { "$ref": "GoogleProtobufEmpty" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] + } }, "get": { "description": "Gets a single contact.", @@ -494,10 +455,7 @@ "path": "v1/{+name}", "response": { "$ref": "GoogleCloudEssentialcontactsV1Contact" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] + } }, "list": { "description": "Lists the contacts that have been set on a resource.", @@ -530,10 +488,7 @@ "path": "v1/{+parent}/contacts", "response": { "$ref": "GoogleCloudEssentialcontactsV1ListContactsResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] + } }, "patch": { "description": "Updates a contact. Note: A contact's email address cannot be changed.", @@ -564,10 +519,7 @@ }, "response": { "$ref": "GoogleCloudEssentialcontactsV1Contact" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] + } }, "sendTestMessage": { "description": "Allows a contact admin to send a test message to contact to verify that it has been configured correctly.", @@ -592,10 +544,7 @@ }, "response": { "$ref": "GoogleProtobufEmpty" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] + } } } } @@ -664,10 +613,7 @@ "path": "v1/{+parent}/contacts:compute", "response": { "$ref": "GoogleCloudEssentialcontactsV1ComputeContactsResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] + } }, "create": { "description": "Adds a new contact for a resource.", @@ -692,10 +638,7 @@ }, "response": { "$ref": "GoogleCloudEssentialcontactsV1Contact" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] + } }, "delete": { "description": "Deletes a contact.", @@ -717,10 +660,7 @@ "path": "v1/{+name}", "response": { "$ref": "GoogleProtobufEmpty" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] + } }, "get": { "description": "Gets a single contact.", @@ -742,10 +682,7 @@ "path": "v1/{+name}", "response": { "$ref": "GoogleCloudEssentialcontactsV1Contact" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] + } }, "list": { "description": "Lists the contacts that have been set on a resource.", @@ -778,10 +715,7 @@ "path": "v1/{+parent}/contacts", "response": { "$ref": "GoogleCloudEssentialcontactsV1ListContactsResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] + } }, "patch": { "description": "Updates a contact. Note: A contact's email address cannot be changed.", @@ -812,10 +746,7 @@ }, "response": { "$ref": "GoogleCloudEssentialcontactsV1Contact" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] + } }, "sendTestMessage": { "description": "Allows a contact admin to send a test message to contact to verify that it has been configured correctly.", @@ -840,17 +771,14 @@ }, "response": { "$ref": "GoogleProtobufEmpty" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] + } } } } } } }, - "revision": "20230607", + "revision": "20230618", "rootUrl": "https://essentialcontacts.googleapis.com/", "schemas": { "GoogleCloudEssentialcontactsV1ComputeContactsResponse": { diff --git a/essentialcontacts/v1/essentialcontacts-gen.go b/essentialcontacts/v1/essentialcontacts-gen.go index 88c45cb593e..1fa6d007dfe 100644 --- a/essentialcontacts/v1/essentialcontacts-gen.go +++ b/essentialcontacts/v1/essentialcontacts-gen.go @@ -79,20 +79,8 @@ const apiVersion = "v1" const basePath = "https://essentialcontacts.googleapis.com/" const mtlsBasePath = "https://essentialcontacts.mtls.googleapis.com/" -// OAuth2 scopes used by this API. -const ( - // See, edit, configure, and delete your Google Cloud data and see the - // email address for your Google Account. - CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platform" -) - // NewService creates a new Service. func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, error) { - scopesOption := internaloption.WithDefaultScopes( - "https://www.googleapis.com/auth/cloud-platform", - ) - // NOTE: prepend, so we don't override user-specified scopes. - opts = append([]option.ClientOption{scopesOption}, opts...) opts = append(opts, internaloption.WithDefaultEndpoint(basePath)) opts = append(opts, internaloption.WithDefaultMTLSEndpoint(mtlsBasePath)) client, endpoint, err := htransport.NewClient(ctx, opts...) @@ -697,10 +685,7 @@ func (c *FoldersContactsComputeCall) Do(opts ...googleapi.CallOption) (*GoogleCl // "path": "v1/{+parent}/contacts:compute", // "response": { // "$ref": "GoogleCloudEssentialcontactsV1ComputeContactsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] + // } // } } @@ -863,10 +848,7 @@ func (c *FoldersContactsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleClo // }, // "response": { // "$ref": "GoogleCloudEssentialcontactsV1Contact" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] + // } // } } @@ -998,10 +980,7 @@ func (c *FoldersContactsDeleteCall) Do(opts ...googleapi.CallOption) (*GooglePro // "path": "v1/{+name}", // "response": { // "$ref": "GoogleProtobufEmpty" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] + // } // } } @@ -1148,10 +1127,7 @@ func (c *FoldersContactsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudE // "path": "v1/{+name}", // "response": { // "$ref": "GoogleCloudEssentialcontactsV1Contact" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] + // } // } } @@ -1329,10 +1305,7 @@ func (c *FoldersContactsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloud // "path": "v1/{+parent}/contacts", // "response": { // "$ref": "GoogleCloudEssentialcontactsV1ListContactsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] + // } // } } @@ -1509,10 +1482,7 @@ func (c *FoldersContactsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleClou // }, // "response": { // "$ref": "GoogleCloudEssentialcontactsV1Contact" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] + // } // } } @@ -1656,10 +1626,7 @@ func (c *FoldersContactsSendTestMessageCall) Do(opts ...googleapi.CallOption) (* // }, // "response": { // "$ref": "GoogleProtobufEmpty" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] + // } // } } @@ -1915,10 +1882,7 @@ func (c *OrganizationsContactsComputeCall) Do(opts ...googleapi.CallOption) (*Go // "path": "v1/{+parent}/contacts:compute", // "response": { // "$ref": "GoogleCloudEssentialcontactsV1ComputeContactsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] + // } // } } @@ -2081,10 +2045,7 @@ func (c *OrganizationsContactsCreateCall) Do(opts ...googleapi.CallOption) (*Goo // }, // "response": { // "$ref": "GoogleCloudEssentialcontactsV1Contact" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] + // } // } } @@ -2216,10 +2177,7 @@ func (c *OrganizationsContactsDeleteCall) Do(opts ...googleapi.CallOption) (*Goo // "path": "v1/{+name}", // "response": { // "$ref": "GoogleProtobufEmpty" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] + // } // } } @@ -2366,10 +2324,7 @@ func (c *OrganizationsContactsGetCall) Do(opts ...googleapi.CallOption) (*Google // "path": "v1/{+name}", // "response": { // "$ref": "GoogleCloudEssentialcontactsV1Contact" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] + // } // } } @@ -2547,10 +2502,7 @@ func (c *OrganizationsContactsListCall) Do(opts ...googleapi.CallOption) (*Googl // "path": "v1/{+parent}/contacts", // "response": { // "$ref": "GoogleCloudEssentialcontactsV1ListContactsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] + // } // } } @@ -2727,10 +2679,7 @@ func (c *OrganizationsContactsPatchCall) Do(opts ...googleapi.CallOption) (*Goog // }, // "response": { // "$ref": "GoogleCloudEssentialcontactsV1Contact" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] + // } // } } @@ -2874,10 +2823,7 @@ func (c *OrganizationsContactsSendTestMessageCall) Do(opts ...googleapi.CallOpti // }, // "response": { // "$ref": "GoogleProtobufEmpty" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] + // } // } } @@ -3133,10 +3079,7 @@ func (c *ProjectsContactsComputeCall) Do(opts ...googleapi.CallOption) (*GoogleC // "path": "v1/{+parent}/contacts:compute", // "response": { // "$ref": "GoogleCloudEssentialcontactsV1ComputeContactsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] + // } // } } @@ -3299,10 +3242,7 @@ func (c *ProjectsContactsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCl // }, // "response": { // "$ref": "GoogleCloudEssentialcontactsV1Contact" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] + // } // } } @@ -3434,10 +3374,7 @@ func (c *ProjectsContactsDeleteCall) Do(opts ...googleapi.CallOption) (*GooglePr // "path": "v1/{+name}", // "response": { // "$ref": "GoogleProtobufEmpty" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] + // } // } } @@ -3584,10 +3521,7 @@ func (c *ProjectsContactsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloud // "path": "v1/{+name}", // "response": { // "$ref": "GoogleCloudEssentialcontactsV1Contact" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] + // } // } } @@ -3765,10 +3699,7 @@ func (c *ProjectsContactsListCall) Do(opts ...googleapi.CallOption) (*GoogleClou // "path": "v1/{+parent}/contacts", // "response": { // "$ref": "GoogleCloudEssentialcontactsV1ListContactsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] + // } // } } @@ -3945,10 +3876,7 @@ func (c *ProjectsContactsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleClo // }, // "response": { // "$ref": "GoogleCloudEssentialcontactsV1Contact" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] + // } // } } @@ -4092,10 +4020,7 @@ func (c *ProjectsContactsSendTestMessageCall) Do(opts ...googleapi.CallOption) ( // }, // "response": { // "$ref": "GoogleProtobufEmpty" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] + // } // } } diff --git a/firebaseappcheck/v1/firebaseappcheck-api.json b/firebaseappcheck/v1/firebaseappcheck-api.json index d3dba3c4cb1..ca23b184fba 100644 --- a/firebaseappcheck/v1/firebaseappcheck-api.json +++ b/firebaseappcheck/v1/firebaseappcheck-api.json @@ -1343,7 +1343,7 @@ } } }, - "revision": "20230612", + "revision": "20230619", "rootUrl": "https://firebaseappcheck.googleapis.com/", "schemas": { "GoogleFirebaseAppcheckV1AppAttestConfig": { @@ -1928,8 +1928,8 @@ ], "enumDescriptions": [ "Firebase App Check is not enforced for the service, nor are App Check metrics collected. Though the service is not protected by App Check in this mode, other applicable protections, such as user authorization, are still enforced. An unconfigured service is in this mode by default.", - "Firebase App Check is not enforced for the service. App Check metrics are collected to help you decide when to turn on enforcement for the service. Though the service is not protected by App Check in this mode, other applicable protections, such as user authorization, are still enforced.", - "Firebase App Check is enforced for the service. The service will reject any request that attempts to access your project's resources if it does not have valid App Check token attached, with some exceptions depending on the service; for example, some services will still allow requests bearing the developer's privileged service account credentials without an App Check token. App Check metrics continue to be collected to help you detect issues with your App Check integration and monitor the composition of your callers. While the service is protected by App Check, other applicable protections, such as user authorization, continue to be enforced at the same time. Use caution when choosing to enforce App Check on a Firebase service. If your users have not updated to an App Check capable version of your app, their apps will no longer be able to use your Firebase services that are enforcing App Check. App Check metrics can help you decide whether to enforce App Check on your Firebase services. If your app has not launched yet, you should enable enforcement immediately, since there are no outdated clients in use." + "Firebase App Check is not enforced for the service. App Check metrics are collected to help you decide when to turn on enforcement for the service. Though the service is not protected by App Check in this mode, other applicable protections, such as user authorization, are still enforced. Some services require certain conditions to be met before they will work with App Check, such as requiring you to upgrade to a specific service tier. Until those requirements are met for a service, this `UNENFORCED` setting will have no effect and App Check will not work with that service.", + "Firebase App Check is enforced for the service. The service will reject any request that attempts to access your project's resources if it does not have valid App Check token attached, with some exceptions depending on the service; for example, some services will still allow requests bearing the developer's privileged service account credentials without an App Check token. App Check metrics continue to be collected to help you detect issues with your App Check integration and monitor the composition of your callers. While the service is protected by App Check, other applicable protections, such as user authorization, continue to be enforced at the same time. Use caution when choosing to enforce App Check on a Firebase service. If your users have not updated to an App Check capable version of your app, their apps will no longer be able to use your Firebase services that are enforcing App Check. App Check metrics can help you decide whether to enforce App Check on your Firebase services. If your app has not launched yet, you should enable enforcement immediately, since there are no outdated clients in use. Some services require certain conditions to be met before they will work with App Check, such as requiring you to upgrade to a specific service tier or requiring you to enable the service first. Until those requirements are met for a service, this `ENFORCED` setting will have no effect and App Check will not work with that service." ], "type": "string" }, diff --git a/firebaseappcheck/v1/firebaseappcheck-gen.go b/firebaseappcheck/v1/firebaseappcheck-gen.go index bd88f637b42..9b5b6b54888 100644 --- a/firebaseappcheck/v1/firebaseappcheck-gen.go +++ b/firebaseappcheck/v1/firebaseappcheck-gen.go @@ -1598,7 +1598,11 @@ type GoogleFirebaseAppcheckV1Service struct { // App Check metrics are collected to help you decide when to turn on // enforcement for the service. Though the service is not protected by // App Check in this mode, other applicable protections, such as user - // authorization, are still enforced. + // authorization, are still enforced. Some services require certain + // conditions to be met before they will work with App Check, such as + // requiring you to upgrade to a specific service tier. Until those + // requirements are met for a service, this `UNENFORCED` setting will + // have no effect and App Check will not work with that service. // "ENFORCED" - Firebase App Check is enforced for the service. The // service will reject any request that attempts to access your // project's resources if it does not have valid App Check token @@ -1616,7 +1620,12 @@ type GoogleFirebaseAppcheckV1Service struct { // metrics can help you decide whether to enforce App Check on your // Firebase services. If your app has not launched yet, you should // enable enforcement immediately, since there are no outdated clients - // in use. + // in use. Some services require certain conditions to be met before + // they will work with App Check, such as requiring you to upgrade to a + // specific service tier or requiring you to enable the service first. + // Until those requirements are met for a service, this `ENFORCED` + // setting will have no effect and App Check will not work with that + // service. EnforcementMode string `json:"enforcementMode,omitempty"` // Name: Required. The relative resource name of the service diff --git a/firebaseappcheck/v1beta/firebaseappcheck-api.json b/firebaseappcheck/v1beta/firebaseappcheck-api.json index 00f276599ba..23d146daceb 100644 --- a/firebaseappcheck/v1beta/firebaseappcheck-api.json +++ b/firebaseappcheck/v1beta/firebaseappcheck-api.json @@ -1503,7 +1503,7 @@ ], "parameters": { "name": { - "description": "Required. The relative resource name of the Service to retrieve, in the format: ``` projects/{project_number}/services/{service_id} ``` Note that the `service_id` element must be a supported service ID. Currently, the following service IDs are supported: * `firebasestorage.googleapis.com` (Cloud Storage for Firebase) * `firebasedatabase.googleapis.com` (Firebase Realtime Database) * `firestore.googleapis.com` (Cloud Firestore)", + "description": "Required. The relative resource name of the Service to retrieve, in the format: ``` projects/{project_number}/services/{service_id} ``` Note that the `service_id` element must be a supported service ID. Currently, the following service IDs are supported: * `firebasestorage.googleapis.com` (Cloud Storage for Firebase) * `firebasedatabase.googleapis.com` (Firebase Realtime Database) * `firestore.googleapis.com` (Cloud Firestore) * `identitytoolkit.googleapis.com` (Firebase Authentication with Identity Platform)", "location": "path", "pattern": "^projects/[^/]+/services/[^/]+$", "required": true, @@ -1566,7 +1566,7 @@ ], "parameters": { "name": { - "description": "Required. The relative resource name of the service configuration object, in the format: ``` projects/{project_number}/services/{service_id} ``` Note that the `service_id` element must be a supported service ID. Currently, the following service IDs are supported: * `firebasestorage.googleapis.com` (Cloud Storage for Firebase) * `firebasedatabase.googleapis.com` (Firebase Realtime Database) * `firestore.googleapis.com` (Cloud Firestore)", + "description": "Required. The relative resource name of the service configuration object, in the format: ``` projects/{project_number}/services/{service_id} ``` Note that the `service_id` element must be a supported service ID. Currently, the following service IDs are supported: * `firebasestorage.googleapis.com` (Cloud Storage for Firebase) * `firebasedatabase.googleapis.com` (Firebase Realtime Database) * `firestore.googleapis.com` (Cloud Firestore) * `identitytoolkit.googleapis.com` (Firebase Authentication with Identity Platform)", "location": "path", "pattern": "^projects/[^/]+/services/[^/]+$", "required": true, @@ -1596,7 +1596,7 @@ } } }, - "revision": "20230529", + "revision": "20230619", "rootUrl": "https://firebaseappcheck.googleapis.com/", "schemas": { "GoogleFirebaseAppcheckV1betaAppAttestConfig": { @@ -2255,13 +2255,13 @@ ], "enumDescriptions": [ "Firebase App Check is not enforced for the service, nor are App Check metrics collected. Though the service is not protected by App Check in this mode, other applicable protections, such as user authorization, are still enforced. An unconfigured service is in this mode by default. Note that resource policies behave slightly differently as an unconfigured resource policy means that the resource will inherit the EnforcementMode configured for the service it belongs to and will not be considered as being in OFF mode by default.", - "Firebase App Check is not enforced for the service. App Check metrics are collected to help you decide when to turn on enforcement for the service. Though the service is not protected by App Check in this mode, other applicable protections, such as user authorization, are still enforced.", - "Firebase App Check is enforced for the service. The service will reject any request that attempts to access your project's resources if it does not have valid App Check token attached, with some exceptions depending on the service; for example, some services will still allow requests bearing the developer's privileged service account credentials without an App Check token. App Check metrics continue to be collected to help you detect issues with your App Check integration and monitor the composition of your callers. While the service is protected by App Check, other applicable protections, such as user authorization, continue to be enforced at the same time. Use caution when choosing to enforce App Check on a Firebase service. If your users have not updated to an App Check capable version of your app, their apps will no longer be able to use your Firebase services that are enforcing App Check. App Check metrics can help you decide whether to enforce App Check on your Firebase services. If your app has not launched yet, you should enable enforcement immediately, since there are no outdated clients in use." + "Firebase App Check is not enforced for the service. App Check metrics are collected to help you decide when to turn on enforcement for the service. Though the service is not protected by App Check in this mode, other applicable protections, such as user authorization, are still enforced. Some services require certain conditions to be met before they will work with App Check, such as requiring you to upgrade to a specific service tier. Until those requirements are met for a service, this `UNENFORCED` setting will have no effect and App Check will not work with that service.", + "Firebase App Check is enforced for the service. The service will reject any request that attempts to access your project's resources if it does not have valid App Check token attached, with some exceptions depending on the service; for example, some services will still allow requests bearing the developer's privileged service account credentials without an App Check token. App Check metrics continue to be collected to help you detect issues with your App Check integration and monitor the composition of your callers. While the service is protected by App Check, other applicable protections, such as user authorization, continue to be enforced at the same time. Use caution when choosing to enforce App Check on a Firebase service. If your users have not updated to an App Check capable version of your app, their apps will no longer be able to use your Firebase services that are enforcing App Check. App Check metrics can help you decide whether to enforce App Check on your Firebase services. If your app has not launched yet, you should enable enforcement immediately, since there are no outdated clients in use. Some services require certain conditions to be met before they will work with App Check, such as requiring you to upgrade to a specific service tier. Until those requirements are met for a service, this `ENFORCED` setting will have no effect and App Check will not work with that service." ], "type": "string" }, "name": { - "description": "Required. The relative resource name of the service configuration object, in the format: ``` projects/{project_number}/services/{service_id} ``` Note that the `service_id` element must be a supported service ID. Currently, the following service IDs are supported: * `firebasestorage.googleapis.com` (Cloud Storage for Firebase) * `firebasedatabase.googleapis.com` (Firebase Realtime Database) * `firestore.googleapis.com` (Cloud Firestore)", + "description": "Required. The relative resource name of the service configuration object, in the format: ``` projects/{project_number}/services/{service_id} ``` Note that the `service_id` element must be a supported service ID. Currently, the following service IDs are supported: * `firebasestorage.googleapis.com` (Cloud Storage for Firebase) * `firebasedatabase.googleapis.com` (Firebase Realtime Database) * `firestore.googleapis.com` (Cloud Firestore) * `identitytoolkit.googleapis.com` (Firebase Authentication with Identity Platform)", "type": "string" } }, @@ -2273,7 +2273,7 @@ "properties": { "service": { "$ref": "GoogleFirebaseAppcheckV1betaService", - "description": "Required. The Service to update. The Service's `name` field is used to identify the Service to be updated, in the format: ``` projects/{project_number}/services/{service_id} ``` Note that the `service_id` element must be a supported service ID. Currently, the following service IDs are supported: * `firebasestorage.googleapis.com` (Cloud Storage for Firebase) * `firebasedatabase.googleapis.com` (Firebase Realtime Database) * `firestore.googleapis.com` (Cloud Firestore)" + "description": "Required. The Service to update. The Service's `name` field is used to identify the Service to be updated, in the format: ``` projects/{project_number}/services/{service_id} ``` Note that the `service_id` element must be a supported service ID. Currently, the following service IDs are supported: * `firebasestorage.googleapis.com` (Cloud Storage for Firebase) * `firebasedatabase.googleapis.com` (Firebase Realtime Database) * `firestore.googleapis.com` (Cloud Firestore) * `identitytoolkit.googleapis.com` (Firebase Authentication with Identity Platform) For Firebase Authentication to work with App Check, you must first upgrade to [Firebase Authentication with Identity Platform](https://firebase.google.com/docs/auth#identity-platform)." }, "updateMask": { "description": "Required. A comma-separated list of names of fields in the Service to update. Example: `enforcement_mode`.", diff --git a/firebaseappcheck/v1beta/firebaseappcheck-gen.go b/firebaseappcheck/v1beta/firebaseappcheck-gen.go index 8d596a9b568..c963ec9222d 100644 --- a/firebaseappcheck/v1beta/firebaseappcheck-gen.go +++ b/firebaseappcheck/v1beta/firebaseappcheck-gen.go @@ -1792,7 +1792,11 @@ type GoogleFirebaseAppcheckV1betaService struct { // App Check metrics are collected to help you decide when to turn on // enforcement for the service. Though the service is not protected by // App Check in this mode, other applicable protections, such as user - // authorization, are still enforced. + // authorization, are still enforced. Some services require certain + // conditions to be met before they will work with App Check, such as + // requiring you to upgrade to a specific service tier. Until those + // requirements are met for a service, this `UNENFORCED` setting will + // have no effect and App Check will not work with that service. // "ENFORCED" - Firebase App Check is enforced for the service. The // service will reject any request that attempts to access your // project's resources if it does not have valid App Check token @@ -1810,7 +1814,11 @@ type GoogleFirebaseAppcheckV1betaService struct { // metrics can help you decide whether to enforce App Check on your // Firebase services. If your app has not launched yet, you should // enable enforcement immediately, since there are no outdated clients - // in use. + // in use. Some services require certain conditions to be met before + // they will work with App Check, such as requiring you to upgrade to a + // specific service tier. Until those requirements are met for a + // service, this `ENFORCED` setting will have no effect and App Check + // will not work with that service. EnforcementMode string `json:"enforcementMode,omitempty"` // Name: Required. The relative resource name of the service @@ -1820,7 +1828,9 @@ type GoogleFirebaseAppcheckV1betaService struct { // following service IDs are supported: * // `firebasestorage.googleapis.com` (Cloud Storage for Firebase) * // `firebasedatabase.googleapis.com` (Firebase Realtime Database) * - // `firestore.googleapis.com` (Cloud Firestore) + // `firestore.googleapis.com` (Cloud Firestore) * + // `identitytoolkit.googleapis.com` (Firebase Authentication with + // Identity Platform) Name string `json:"name,omitempty"` // ServerResponse contains the HTTP response code and headers from the @@ -1862,7 +1872,12 @@ type GoogleFirebaseAppcheckV1betaUpdateServiceRequest struct { // following service IDs are supported: * // `firebasestorage.googleapis.com` (Cloud Storage for Firebase) * // `firebasedatabase.googleapis.com` (Firebase Realtime Database) * - // `firestore.googleapis.com` (Cloud Firestore) + // `firestore.googleapis.com` (Cloud Firestore) * + // `identitytoolkit.googleapis.com` (Firebase Authentication with + // Identity Platform) For Firebase Authentication to work with App + // Check, you must first upgrade to Firebase Authentication with + // Identity Platform + // (https://firebase.google.com/docs/auth#identity-platform). Service *GoogleFirebaseAppcheckV1betaService `json:"service,omitempty"` // UpdateMask: Required. A comma-separated list of names of fields in @@ -8971,7 +8986,9 @@ type ProjectsServicesGetCall struct { // Currently, the following service IDs are supported: * // `firebasestorage.googleapis.com` (Cloud Storage for Firebase) * // `firebasedatabase.googleapis.com` (Firebase Realtime Database) * -// `firestore.googleapis.com` (Cloud Firestore). +// `firestore.googleapis.com` (Cloud Firestore) * +// `identitytoolkit.googleapis.com` (Firebase Authentication with +// Identity Platform). func (r *ProjectsServicesService) Get(name string) *ProjectsServicesGetCall { c := &ProjectsServicesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -9087,7 +9104,7 @@ func (c *ProjectsServicesGetCall) Do(opts ...googleapi.CallOption) (*GoogleFireb // ], // "parameters": { // "name": { - // "description": "Required. The relative resource name of the Service to retrieve, in the format: ``` projects/{project_number}/services/{service_id} ``` Note that the `service_id` element must be a supported service ID. Currently, the following service IDs are supported: * `firebasestorage.googleapis.com` (Cloud Storage for Firebase) * `firebasedatabase.googleapis.com` (Firebase Realtime Database) * `firestore.googleapis.com` (Cloud Firestore)", + // "description": "Required. The relative resource name of the Service to retrieve, in the format: ``` projects/{project_number}/services/{service_id} ``` Note that the `service_id` element must be a supported service ID. Currently, the following service IDs are supported: * `firebasestorage.googleapis.com` (Cloud Storage for Firebase) * `firebasedatabase.googleapis.com` (Firebase Realtime Database) * `firestore.googleapis.com` (Cloud Firestore) * `identitytoolkit.googleapis.com` (Firebase Authentication with Identity Platform)", // "location": "path", // "pattern": "^projects/[^/]+/services/[^/]+$", // "required": true, @@ -9332,7 +9349,9 @@ type ProjectsServicesPatchCall struct { // following service IDs are supported: * // `firebasestorage.googleapis.com` (Cloud Storage for Firebase) * // `firebasedatabase.googleapis.com` (Firebase Realtime Database) * -// `firestore.googleapis.com` (Cloud Firestore). +// `firestore.googleapis.com` (Cloud Firestore) * +// `identitytoolkit.googleapis.com` (Firebase Authentication with +// Identity Platform). func (r *ProjectsServicesService) Patch(name string, googlefirebaseappcheckv1betaservice *GoogleFirebaseAppcheckV1betaService) *ProjectsServicesPatchCall { c := &ProjectsServicesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -9449,7 +9468,7 @@ func (c *ProjectsServicesPatchCall) Do(opts ...googleapi.CallOption) (*GoogleFir // ], // "parameters": { // "name": { - // "description": "Required. The relative resource name of the service configuration object, in the format: ``` projects/{project_number}/services/{service_id} ``` Note that the `service_id` element must be a supported service ID. Currently, the following service IDs are supported: * `firebasestorage.googleapis.com` (Cloud Storage for Firebase) * `firebasedatabase.googleapis.com` (Firebase Realtime Database) * `firestore.googleapis.com` (Cloud Firestore)", + // "description": "Required. The relative resource name of the service configuration object, in the format: ``` projects/{project_number}/services/{service_id} ``` Note that the `service_id` element must be a supported service ID. Currently, the following service IDs are supported: * `firebasestorage.googleapis.com` (Cloud Storage for Firebase) * `firebasedatabase.googleapis.com` (Firebase Realtime Database) * `firestore.googleapis.com` (Cloud Firestore) * `identitytoolkit.googleapis.com` (Firebase Authentication with Identity Platform)", // "location": "path", // "pattern": "^projects/[^/]+/services/[^/]+$", // "required": true, diff --git a/osconfig/v1/osconfig-api.json b/osconfig/v1/osconfig-api.json index f66b7a40ef9..35beff7f32f 100644 --- a/osconfig/v1/osconfig-api.json +++ b/osconfig/v1/osconfig-api.json @@ -216,7 +216,7 @@ "reports": { "methods": { "get": { - "description": "Get the OS policy asssignment report for the specified Compute Engine VM instance.", + "description": "Get the OS policy assignment report for the specified Compute Engine VM instance.", "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/instances/{instancesId}/osPolicyAssignments/{osPolicyAssignmentsId}/report", "httpMethod": "GET", "id": "osconfig.projects.locations.instances.osPolicyAssignments.reports.get", @@ -241,7 +241,7 @@ ] }, "list": { - "description": "List OS policy asssignment reports for all Compute Engine VM instances in the specified zone.", + "description": "List OS policy assignment reports for all Compute Engine VM instances in the specified zone.", "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/instances/{instancesId}/osPolicyAssignments/{osPolicyAssignmentsId}/reports", "httpMethod": "GET", "id": "osconfig.projects.locations.instances.osPolicyAssignments.reports.list", @@ -1000,7 +1000,7 @@ } } }, - "revision": "20230409", + "revision": "20230618", "rootUrl": "https://osconfig.googleapis.com/", "schemas": { "AptSettings": { diff --git a/osconfig/v1/osconfig-gen.go b/osconfig/v1/osconfig-gen.go index 013e6b65543..2227d35f04a 100644 --- a/osconfig/v1/osconfig-gen.go +++ b/osconfig/v1/osconfig-gen.go @@ -5007,7 +5007,7 @@ type ProjectsLocationsInstancesOsPolicyAssignmentsReportsGetCall struct { header_ http.Header } -// Get: Get the OS policy asssignment report for the specified Compute +// Get: Get the OS policy assignment report for the specified Compute // Engine VM instance. // // - name: API resource name for OS policy assignment report. Format: @@ -5122,7 +5122,7 @@ func (c *ProjectsLocationsInstancesOsPolicyAssignmentsReportsGetCall) Do(opts .. } return ret, nil // { - // "description": "Get the OS policy asssignment report for the specified Compute Engine VM instance.", + // "description": "Get the OS policy assignment report for the specified Compute Engine VM instance.", // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/instances/{instancesId}/osPolicyAssignments/{osPolicyAssignmentsId}/report", // "httpMethod": "GET", // "id": "osconfig.projects.locations.instances.osPolicyAssignments.reports.get", @@ -5160,7 +5160,7 @@ type ProjectsLocationsInstancesOsPolicyAssignmentsReportsListCall struct { header_ http.Header } -// List: List OS policy asssignment reports for all Compute Engine VM +// List: List OS policy assignment reports for all Compute Engine VM // instances in the specified zone. // // - parent: The parent resource name. Format: @@ -5313,7 +5313,7 @@ func (c *ProjectsLocationsInstancesOsPolicyAssignmentsReportsListCall) Do(opts . } return ret, nil // { - // "description": "List OS policy asssignment reports for all Compute Engine VM instances in the specified zone.", + // "description": "List OS policy assignment reports for all Compute Engine VM instances in the specified zone.", // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/instances/{instancesId}/osPolicyAssignments/{osPolicyAssignmentsId}/reports", // "httpMethod": "GET", // "id": "osconfig.projects.locations.instances.osPolicyAssignments.reports.list", diff --git a/osconfig/v1alpha/osconfig-api.json b/osconfig/v1alpha/osconfig-api.json index a57239cdf2e..6bb7e4b6810 100644 --- a/osconfig/v1alpha/osconfig-api.json +++ b/osconfig/v1alpha/osconfig-api.json @@ -289,7 +289,7 @@ "reports": { "methods": { "get": { - "description": "Get the OS policy asssignment report for the specified Compute Engine VM instance.", + "description": "Get the OS policy assignment report for the specified Compute Engine VM instance.", "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/instances/{instancesId}/osPolicyAssignments/{osPolicyAssignmentsId}/report", "httpMethod": "GET", "id": "osconfig.projects.locations.instances.osPolicyAssignments.reports.get", @@ -314,7 +314,7 @@ ] }, "list": { - "description": "List OS policy asssignment reports for all Compute Engine VM instances in the specified zone.", + "description": "List OS policy assignment reports for all Compute Engine VM instances in the specified zone.", "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/instances/{instancesId}/osPolicyAssignments/{osPolicyAssignmentsId}/reports", "httpMethod": "GET", "id": "osconfig.projects.locations.instances.osPolicyAssignments.reports.list", @@ -687,7 +687,7 @@ } } }, - "revision": "20230521", + "revision": "20230618", "rootUrl": "https://osconfig.googleapis.com/", "schemas": { "CVSSv3": { diff --git a/osconfig/v1alpha/osconfig-gen.go b/osconfig/v1alpha/osconfig-gen.go index 72224840982..b2ff9f1e15d 100644 --- a/osconfig/v1alpha/osconfig-gen.go +++ b/osconfig/v1alpha/osconfig-gen.go @@ -4314,7 +4314,7 @@ type ProjectsLocationsInstancesOsPolicyAssignmentsReportsGetCall struct { header_ http.Header } -// Get: Get the OS policy asssignment report for the specified Compute +// Get: Get the OS policy assignment report for the specified Compute // Engine VM instance. // // - name: API resource name for OS policy assignment report. Format: @@ -4429,7 +4429,7 @@ func (c *ProjectsLocationsInstancesOsPolicyAssignmentsReportsGetCall) Do(opts .. } return ret, nil // { - // "description": "Get the OS policy asssignment report for the specified Compute Engine VM instance.", + // "description": "Get the OS policy assignment report for the specified Compute Engine VM instance.", // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/instances/{instancesId}/osPolicyAssignments/{osPolicyAssignmentsId}/report", // "httpMethod": "GET", // "id": "osconfig.projects.locations.instances.osPolicyAssignments.reports.get", @@ -4467,7 +4467,7 @@ type ProjectsLocationsInstancesOsPolicyAssignmentsReportsListCall struct { header_ http.Header } -// List: List OS policy asssignment reports for all Compute Engine VM +// List: List OS policy assignment reports for all Compute Engine VM // instances in the specified zone. // // - parent: The parent resource name. Format: @@ -4620,7 +4620,7 @@ func (c *ProjectsLocationsInstancesOsPolicyAssignmentsReportsListCall) Do(opts . } return ret, nil // { - // "description": "List OS policy asssignment reports for all Compute Engine VM instances in the specified zone.", + // "description": "List OS policy assignment reports for all Compute Engine VM instances in the specified zone.", // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/instances/{instancesId}/osPolicyAssignments/{osPolicyAssignmentsId}/reports", // "httpMethod": "GET", // "id": "osconfig.projects.locations.instances.osPolicyAssignments.reports.list", diff --git a/storage/v1/storage-api.json b/storage/v1/storage-api.json index edebc73ad4c..b0649447b71 100644 --- a/storage/v1/storage-api.json +++ b/storage/v1/storage-api.json @@ -26,7 +26,7 @@ "description": "Stores and retrieves potentially large, immutable data objects.", "discoveryVersion": "v1", "documentationLink": "https://developers.google.com/storage/docs/json_api/", - "etag": "\"34333739363230323936363635393736363430\"", + "etag": "\"383236363234373537353532383237373333\"", "icons": { "x16": "https://www.google.com/images/icons/product/cloud_storage-16.png", "x32": "https://www.google.com/images/icons/product/cloud_storage-32.png" @@ -1311,7 +1311,7 @@ "type": "string" }, "object": { - "description": "Name of the object. For information about how to URL encode object names to be path safe, see Encoding URI Path Parts.", + "description": "Name of the object. For information about how to URL encode object names to be path safe, see [Encoding URI Path Parts](http://cloud/storage/docs/request-endpoints#encoding).", "location": "path", "required": true, "type": "string" @@ -1357,7 +1357,7 @@ "type": "string" }, "object": { - "description": "Name of the object. For information about how to URL encode object names to be path safe, see Encoding URI Path Parts.", + "description": "Name of the object. For information about how to URL encode object names to be path safe, see [Encoding URI Path Parts](http://cloud/storage/docs/request-endpoints#encoding).", "location": "path", "required": true, "type": "string" @@ -1399,7 +1399,7 @@ "type": "string" }, "object": { - "description": "Name of the object. For information about how to URL encode object names to be path safe, see Encoding URI Path Parts.", + "description": "Name of the object. For information about how to URL encode object names to be path safe, see [Encoding URI Path Parts](http://cloud/storage/docs/request-endpoints#encoding).", "location": "path", "required": true, "type": "string" @@ -1444,7 +1444,7 @@ "type": "string" }, "object": { - "description": "Name of the object. For information about how to URL encode object names to be path safe, see Encoding URI Path Parts.", + "description": "Name of the object. For information about how to URL encode object names to be path safe, see [Encoding URI Path Parts](http://cloud/storage/docs/request-endpoints#encoding).", "location": "path", "required": true, "type": "string" @@ -1493,7 +1493,7 @@ "type": "string" }, "object": { - "description": "Name of the object. For information about how to URL encode object names to be path safe, see Encoding URI Path Parts.", + "description": "Name of the object. For information about how to URL encode object names to be path safe, see [Encoding URI Path Parts](http://cloud/storage/docs/request-endpoints#encoding).", "location": "path", "required": true, "type": "string" @@ -1545,7 +1545,7 @@ "type": "string" }, "object": { - "description": "Name of the object. For information about how to URL encode object names to be path safe, see Encoding URI Path Parts.", + "description": "Name of the object. For information about how to URL encode object names to be path safe, see [Encoding URI Path Parts](http://cloud/storage/docs/request-endpoints#encoding).", "location": "path", "required": true, "type": "string" @@ -1588,7 +1588,7 @@ "type": "string" }, "destinationObject": { - "description": "Name of the new object. For information about how to URL encode object names to be path safe, see Encoding URI Path Parts.", + "description": "Name of the new object. For information about how to URL encode object names to be path safe, see [Encoding URI Path Parts](http://cloud/storage/docs/request-endpoints#encoding).", "location": "path", "required": true, "type": "string" @@ -1662,7 +1662,7 @@ ], "parameters": { "destinationBucket": { - "description": "Name of the bucket in which to store the new object. Overrides the provided object metadata's bucket value, if any.For information about how to URL encode object names to be path safe, see Encoding URI Path Parts.", + "description": "Name of the bucket in which to store the new object. Overrides the provided object metadata's bucket value, if any.For information about how to URL encode object names to be path safe, see [Encoding URI Path Parts](http://cloud/storage/docs/request-endpoints#encoding).", "location": "path", "required": true, "type": "string" @@ -1773,7 +1773,7 @@ "type": "string" }, "sourceObject": { - "description": "Name of the source object. For information about how to URL encode object names to be path safe, see Encoding URI Path Parts.", + "description": "Name of the source object. For information about how to URL encode object names to be path safe, see [Encoding URI Path Parts](http://cloud/storage/docs/request-endpoints#encoding).", "location": "path", "required": true, "type": "string" @@ -1843,7 +1843,7 @@ "type": "string" }, "object": { - "description": "Name of the object. For information about how to URL encode object names to be path safe, see Encoding URI Path Parts.", + "description": "Name of the object. For information about how to URL encode object names to be path safe, see [Encoding URI Path Parts](http://cloud/storage/docs/request-endpoints#encoding).", "location": "path", "required": true, "type": "string" @@ -1907,7 +1907,7 @@ "type": "string" }, "object": { - "description": "Name of the object. For information about how to URL encode object names to be path safe, see Encoding URI Path Parts.", + "description": "Name of the object. For information about how to URL encode object names to be path safe, see [Encoding URI Path Parts](http://cloud/storage/docs/request-endpoints#encoding).", "location": "path", "required": true, "type": "string" @@ -1967,7 +1967,7 @@ "type": "string" }, "object": { - "description": "Name of the object. For information about how to URL encode object names to be path safe, see Encoding URI Path Parts.", + "description": "Name of the object. For information about how to URL encode object names to be path safe, see [Encoding URI Path Parts](http://cloud/storage/docs/request-endpoints#encoding).", "location": "path", "required": true, "type": "string" @@ -2054,7 +2054,7 @@ "type": "string" }, "name": { - "description": "Name of the object. Required when the object metadata is not otherwise provided. Overrides the object metadata's name value, if any. For information about how to URL encode object names to be path safe, see Encoding URI Path Parts.", + "description": "Name of the object. Required when the object metadata is not otherwise provided. Overrides the object metadata's name value, if any. For information about how to URL encode object names to be path safe, see [Encoding URI Path Parts](http://cloud/storage/docs/request-endpoints#encoding).", "location": "query", "type": "string" }, @@ -2252,7 +2252,7 @@ "type": "string" }, "object": { - "description": "Name of the object. For information about how to URL encode object names to be path safe, see Encoding URI Path Parts.", + "description": "Name of the object. For information about how to URL encode object names to be path safe, see [Encoding URI Path Parts](http://cloud/storage/docs/request-endpoints#encoding).", "location": "path", "required": true, "type": "string" @@ -2332,7 +2332,7 @@ "type": "string" }, "destinationObject": { - "description": "Name of the new object. Required when the object metadata is not otherwise provided. Overrides the object metadata's name value, if any. For information about how to URL encode object names to be path safe, see Encoding URI Path Parts.", + "description": "Name of the new object. Required when the object metadata is not otherwise provided. Overrides the object metadata's name value, if any. For information about how to URL encode object names to be path safe, see [Encoding URI Path Parts](http://cloud/storage/docs/request-endpoints#encoding).", "location": "path", "required": true, "type": "string" @@ -2443,7 +2443,7 @@ "type": "string" }, "sourceObject": { - "description": "Name of the source object. For information about how to URL encode object names to be path safe, see Encoding URI Path Parts.", + "description": "Name of the source object. For information about how to URL encode object names to be path safe, see [Encoding URI Path Parts](http://cloud/storage/docs/request-endpoints#encoding).", "location": "path", "required": true, "type": "string" @@ -2489,7 +2489,7 @@ "type": "string" }, "object": { - "description": "Name of the object. For information about how to URL encode object names to be path safe, see Encoding URI Path Parts.", + "description": "Name of the object. For information about how to URL encode object names to be path safe, see [Encoding URI Path Parts](http://cloud/storage/docs/request-endpoints#encoding).", "location": "path", "required": true, "type": "string" @@ -2536,7 +2536,7 @@ "type": "string" }, "object": { - "description": "Name of the object. For information about how to URL encode object names to be path safe, see Encoding URI Path Parts.", + "description": "Name of the object. For information about how to URL encode object names to be path safe, see [Encoding URI Path Parts](http://cloud/storage/docs/request-endpoints#encoding).", "location": "path", "required": true, "type": "string" @@ -2612,7 +2612,7 @@ "type": "string" }, "object": { - "description": "Name of the object. For information about how to URL encode object names to be path safe, see Encoding URI Path Parts.", + "description": "Name of the object. For information about how to URL encode object names to be path safe, see [Encoding URI Path Parts](http://cloud/storage/docs/request-endpoints#encoding).", "location": "path", "required": true, "type": "string" @@ -3010,7 +3010,7 @@ } } }, - "revision": "20230301", + "revision": "20230617", "rootUrl": "https://storage.googleapis.com/", "schemas": { "Bucket": { diff --git a/storage/v1/storage-gen.go b/storage/v1/storage-gen.go index e11bf2e6d36..9f04327d928 100644 --- a/storage/v1/storage-gen.go +++ b/storage/v1/storage-gen.go @@ -7260,7 +7260,8 @@ type ObjectAccessControlsDeleteCall struct { // user-emailAddress, group-groupId, group-emailAddress, allUsers, or // allAuthenticatedUsers. // - object: Name of the object. For information about how to URL encode -// object names to be path safe, see Encoding URI Path Parts. +// object names to be path safe, see Encoding URI Path Parts +// (http://cloud/storage/docs/request-endpoints#encoding). func (r *ObjectAccessControlsService) Delete(bucket string, object string, entity string) *ObjectAccessControlsDeleteCall { c := &ObjectAccessControlsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.bucket = bucket @@ -7375,7 +7376,7 @@ func (c *ObjectAccessControlsDeleteCall) Do(opts ...googleapi.CallOption) error // "type": "string" // }, // "object": { - // "description": "Name of the object. For information about how to URL encode object names to be path safe, see Encoding URI Path Parts.", + // "description": "Name of the object. For information about how to URL encode object names to be path safe, see [Encoding URI Path Parts](http://cloud/storage/docs/request-endpoints#encoding).", // "location": "path", // "required": true, // "type": "string" @@ -7416,7 +7417,8 @@ type ObjectAccessControlsGetCall struct { // user-emailAddress, group-groupId, group-emailAddress, allUsers, or // allAuthenticatedUsers. // - object: Name of the object. For information about how to URL encode -// object names to be path safe, see Encoding URI Path Parts. +// object names to be path safe, see Encoding URI Path Parts +// (http://cloud/storage/docs/request-endpoints#encoding). func (r *ObjectAccessControlsService) Get(bucket string, object string, entity string) *ObjectAccessControlsGetCall { c := &ObjectAccessControlsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.bucket = bucket @@ -7569,7 +7571,7 @@ func (c *ObjectAccessControlsGetCall) Do(opts ...googleapi.CallOption) (*ObjectA // "type": "string" // }, // "object": { - // "description": "Name of the object. For information about how to URL encode object names to be path safe, see Encoding URI Path Parts.", + // "description": "Name of the object. For information about how to URL encode object names to be path safe, see [Encoding URI Path Parts](http://cloud/storage/docs/request-endpoints#encoding).", // "location": "path", // "required": true, // "type": "string" @@ -7608,7 +7610,8 @@ type ObjectAccessControlsInsertCall struct { // // - bucket: Name of a bucket. // - object: Name of the object. For information about how to URL encode -// object names to be path safe, see Encoding URI Path Parts. +// object names to be path safe, see Encoding URI Path Parts +// (http://cloud/storage/docs/request-endpoints#encoding). func (r *ObjectAccessControlsService) Insert(bucket string, object string, objectaccesscontrol *ObjectAccessControl) *ObjectAccessControlsInsertCall { c := &ObjectAccessControlsInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.bucket = bucket @@ -7745,7 +7748,7 @@ func (c *ObjectAccessControlsInsertCall) Do(opts ...googleapi.CallOption) (*Obje // "type": "string" // }, // "object": { - // "description": "Name of the object. For information about how to URL encode object names to be path safe, see Encoding URI Path Parts.", + // "description": "Name of the object. For information about how to URL encode object names to be path safe, see [Encoding URI Path Parts](http://cloud/storage/docs/request-endpoints#encoding).", // "location": "path", // "required": true, // "type": "string" @@ -7787,7 +7790,8 @@ type ObjectAccessControlsListCall struct { // // - bucket: Name of a bucket. // - object: Name of the object. For information about how to URL encode -// object names to be path safe, see Encoding URI Path Parts. +// object names to be path safe, see Encoding URI Path Parts +// (http://cloud/storage/docs/request-endpoints#encoding). func (r *ObjectAccessControlsService) List(bucket string, object string) *ObjectAccessControlsListCall { c := &ObjectAccessControlsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.bucket = bucket @@ -7931,7 +7935,7 @@ func (c *ObjectAccessControlsListCall) Do(opts ...googleapi.CallOption) (*Object // "type": "string" // }, // "object": { - // "description": "Name of the object. For information about how to URL encode object names to be path safe, see Encoding URI Path Parts.", + // "description": "Name of the object. For information about how to URL encode object names to be path safe, see [Encoding URI Path Parts](http://cloud/storage/docs/request-endpoints#encoding).", // "location": "path", // "required": true, // "type": "string" @@ -7974,7 +7978,8 @@ type ObjectAccessControlsPatchCall struct { // user-emailAddress, group-groupId, group-emailAddress, allUsers, or // allAuthenticatedUsers. // - object: Name of the object. For information about how to URL encode -// object names to be path safe, see Encoding URI Path Parts. +// object names to be path safe, see Encoding URI Path Parts +// (http://cloud/storage/docs/request-endpoints#encoding). func (r *ObjectAccessControlsService) Patch(bucket string, object string, entity string, objectaccesscontrol *ObjectAccessControl) *ObjectAccessControlsPatchCall { c := &ObjectAccessControlsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.bucket = bucket @@ -8120,7 +8125,7 @@ func (c *ObjectAccessControlsPatchCall) Do(opts ...googleapi.CallOption) (*Objec // "type": "string" // }, // "object": { - // "description": "Name of the object. For information about how to URL encode object names to be path safe, see Encoding URI Path Parts.", + // "description": "Name of the object. For information about how to URL encode object names to be path safe, see [Encoding URI Path Parts](http://cloud/storage/docs/request-endpoints#encoding).", // "location": "path", // "required": true, // "type": "string" @@ -8166,7 +8171,8 @@ type ObjectAccessControlsUpdateCall struct { // user-emailAddress, group-groupId, group-emailAddress, allUsers, or // allAuthenticatedUsers. // - object: Name of the object. For information about how to URL encode -// object names to be path safe, see Encoding URI Path Parts. +// object names to be path safe, see Encoding URI Path Parts +// (http://cloud/storage/docs/request-endpoints#encoding). func (r *ObjectAccessControlsService) Update(bucket string, object string, entity string, objectaccesscontrol *ObjectAccessControl) *ObjectAccessControlsUpdateCall { c := &ObjectAccessControlsUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.bucket = bucket @@ -8312,7 +8318,7 @@ func (c *ObjectAccessControlsUpdateCall) Do(opts ...googleapi.CallOption) (*Obje // "type": "string" // }, // "object": { - // "description": "Name of the object. For information about how to URL encode object names to be path safe, see Encoding URI Path Parts.", + // "description": "Name of the object. For information about how to URL encode object names to be path safe, see [Encoding URI Path Parts](http://cloud/storage/docs/request-endpoints#encoding).", // "location": "path", // "required": true, // "type": "string" @@ -8357,7 +8363,7 @@ type ObjectsComposeCall struct { // objects. The destination object is stored in this bucket. // - destinationObject: Name of the new object. For information about // how to URL encode object names to be path safe, see Encoding URI -// Path Parts. +// Path Parts (http://cloud/storage/docs/request-endpoints#encoding). func (r *ObjectsService) Compose(destinationBucket string, destinationObject string, composerequest *ComposeRequest) *ObjectsComposeCall { c := &ObjectsComposeCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.destinationBucket = destinationBucket @@ -8540,7 +8546,7 @@ func (c *ObjectsComposeCall) Do(opts ...googleapi.CallOption) (*Object, error) { // "type": "string" // }, // "destinationObject": { - // "description": "Name of the new object. For information about how to URL encode object names to be path safe, see Encoding URI Path Parts.", + // "description": "Name of the new object. For information about how to URL encode object names to be path safe, see [Encoding URI Path Parts](http://cloud/storage/docs/request-endpoints#encoding).", // "location": "path", // "required": true, // "type": "string" @@ -8625,7 +8631,8 @@ type ObjectsCopyCall struct { // - destinationBucket: Name of the bucket in which to store the new // object. Overrides the provided object metadata's bucket value, if // any.For information about how to URL encode object names to be path -// safe, see Encoding URI Path Parts. +// safe, see Encoding URI Path Parts +// (http://cloud/storage/docs/request-endpoints#encoding). // - destinationObject: Name of the new object. Required when the object // metadata is not otherwise provided. Overrides the object metadata's // name value, if any. @@ -8633,7 +8640,7 @@ type ObjectsCopyCall struct { // object. // - sourceObject: Name of the source object. For information about how // to URL encode object names to be path safe, see Encoding URI Path -// Parts. +// Parts (http://cloud/storage/docs/request-endpoints#encoding). func (r *ObjectsService) Copy(sourceBucket string, sourceObject string, destinationBucket string, destinationObject string, object *Object) *ObjectsCopyCall { c := &ObjectsCopyCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.sourceBucket = sourceBucket @@ -8894,7 +8901,7 @@ func (c *ObjectsCopyCall) Do(opts ...googleapi.CallOption) (*Object, error) { // ], // "parameters": { // "destinationBucket": { - // "description": "Name of the bucket in which to store the new object. Overrides the provided object metadata's bucket value, if any.For information about how to URL encode object names to be path safe, see Encoding URI Path Parts.", + // "description": "Name of the bucket in which to store the new object. Overrides the provided object metadata's bucket value, if any.For information about how to URL encode object names to be path safe, see [Encoding URI Path Parts](http://cloud/storage/docs/request-endpoints#encoding).", // "location": "path", // "required": true, // "type": "string" @@ -9005,7 +9012,7 @@ func (c *ObjectsCopyCall) Do(opts ...googleapi.CallOption) (*Object, error) { // "type": "string" // }, // "sourceObject": { - // "description": "Name of the source object. For information about how to URL encode object names to be path safe, see Encoding URI Path Parts.", + // "description": "Name of the source object. For information about how to URL encode object names to be path safe, see [Encoding URI Path Parts](http://cloud/storage/docs/request-endpoints#encoding).", // "location": "path", // "required": true, // "type": "string" @@ -9049,7 +9056,8 @@ type ObjectsDeleteCall struct { // // - bucket: Name of the bucket in which the object resides. // - object: Name of the object. For information about how to URL encode -// object names to be path safe, see Encoding URI Path Parts. +// object names to be path safe, see Encoding URI Path Parts +// (http://cloud/storage/docs/request-endpoints#encoding). func (r *ObjectsService) Delete(bucket string, object string) *ObjectsDeleteCall { c := &ObjectsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.bucket = bucket @@ -9215,7 +9223,7 @@ func (c *ObjectsDeleteCall) Do(opts ...googleapi.CallOption) error { // "type": "string" // }, // "object": { - // "description": "Name of the object. For information about how to URL encode object names to be path safe, see Encoding URI Path Parts.", + // "description": "Name of the object. For information about how to URL encode object names to be path safe, see [Encoding URI Path Parts](http://cloud/storage/docs/request-endpoints#encoding).", // "location": "path", // "required": true, // "type": "string" @@ -9252,7 +9260,8 @@ type ObjectsGetCall struct { // // - bucket: Name of the bucket in which the object resides. // - object: Name of the object. For information about how to URL encode -// object names to be path safe, see Encoding URI Path Parts. +// object names to be path safe, see Encoding URI Path Parts +// (http://cloud/storage/docs/request-endpoints#encoding). func (r *ObjectsService) Get(bucket string, object string) *ObjectsGetCall { c := &ObjectsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.bucket = bucket @@ -9484,7 +9493,7 @@ func (c *ObjectsGetCall) Do(opts ...googleapi.CallOption) (*Object, error) { // "type": "string" // }, // "object": { - // "description": "Name of the object. For information about how to URL encode object names to be path safe, see Encoding URI Path Parts.", + // "description": "Name of the object. For information about how to URL encode object names to be path safe, see [Encoding URI Path Parts](http://cloud/storage/docs/request-endpoints#encoding).", // "location": "path", // "required": true, // "type": "string" @@ -9541,7 +9550,8 @@ type ObjectsGetIamPolicyCall struct { // // - bucket: Name of the bucket in which the object resides. // - object: Name of the object. For information about how to URL encode -// object names to be path safe, see Encoding URI Path Parts. +// object names to be path safe, see Encoding URI Path Parts +// (http://cloud/storage/docs/request-endpoints#encoding). func (r *ObjectsService) GetIamPolicy(bucket string, object string) *ObjectsGetIamPolicyCall { c := &ObjectsGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.bucket = bucket @@ -9685,7 +9695,7 @@ func (c *ObjectsGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, err // "type": "string" // }, // "object": { - // "description": "Name of the object. For information about how to URL encode object names to be path safe, see Encoding URI Path Parts.", + // "description": "Name of the object. For information about how to URL encode object names to be path safe, see [Encoding URI Path Parts](http://cloud/storage/docs/request-endpoints#encoding).", // "location": "path", // "required": true, // "type": "string" @@ -9797,7 +9807,8 @@ func (c *ObjectsInsertCall) KmsKeyName(kmsKeyName string) *ObjectsInsertCall { // Name sets the optional parameter "name": Name of the object. Required // when the object metadata is not otherwise provided. Overrides the // object metadata's name value, if any. For information about how to -// URL encode object names to be path safe, see Encoding URI Path Parts. +// URL encode object names to be path safe, see Encoding URI Path Parts +// (http://cloud/storage/docs/request-endpoints#encoding). func (c *ObjectsInsertCall) Name(name string) *ObjectsInsertCall { c.urlParams_.Set("name", name) return c @@ -10107,7 +10118,7 @@ func (c *ObjectsInsertCall) Do(opts ...googleapi.CallOption) (*Object, error) { // "type": "string" // }, // "name": { - // "description": "Name of the object. Required when the object metadata is not otherwise provided. Overrides the object metadata's name value, if any. For information about how to URL encode object names to be path safe, see Encoding URI Path Parts.", + // "description": "Name of the object. Required when the object metadata is not otherwise provided. Overrides the object metadata's name value, if any. For information about how to URL encode object names to be path safe, see [Encoding URI Path Parts](http://cloud/storage/docs/request-endpoints#encoding).", // "location": "query", // "type": "string" // }, @@ -10517,7 +10528,8 @@ type ObjectsPatchCall struct { // // - bucket: Name of the bucket in which the object resides. // - object: Name of the object. For information about how to URL encode -// object names to be path safe, see Encoding URI Path Parts. +// object names to be path safe, see Encoding URI Path Parts +// (http://cloud/storage/docs/request-endpoints#encoding). func (r *ObjectsService) Patch(bucket string, object string, object2 *Object) *ObjectsPatchCall { c := &ObjectsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.bucket = bucket @@ -10756,7 +10768,7 @@ func (c *ObjectsPatchCall) Do(opts ...googleapi.CallOption) (*Object, error) { // "type": "string" // }, // "object": { - // "description": "Name of the object. For information about how to URL encode object names to be path safe, see Encoding URI Path Parts.", + // "description": "Name of the object. For information about how to URL encode object names to be path safe, see [Encoding URI Path Parts](http://cloud/storage/docs/request-endpoints#encoding).", // "location": "path", // "required": true, // "type": "string" @@ -10839,12 +10851,13 @@ type ObjectsRewriteCall struct { // - destinationObject: Name of the new object. Required when the object // metadata is not otherwise provided. Overrides the object metadata's // name value, if any. For information about how to URL encode object -// names to be path safe, see Encoding URI Path Parts. +// names to be path safe, see Encoding URI Path Parts +// (http://cloud/storage/docs/request-endpoints#encoding). // - sourceBucket: Name of the bucket in which to find the source // object. // - sourceObject: Name of the source object. For information about how // to URL encode object names to be path safe, see Encoding URI Path -// Parts. +// Parts (http://cloud/storage/docs/request-endpoints#encoding). func (r *ObjectsService) Rewrite(sourceBucket string, sourceObject string, destinationBucket string, destinationObject string, object *Object) *ObjectsRewriteCall { c := &ObjectsRewriteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.sourceBucket = sourceBucket @@ -11140,7 +11153,7 @@ func (c *ObjectsRewriteCall) Do(opts ...googleapi.CallOption) (*RewriteResponse, // "type": "string" // }, // "destinationObject": { - // "description": "Name of the new object. Required when the object metadata is not otherwise provided. Overrides the object metadata's name value, if any. For information about how to URL encode object names to be path safe, see Encoding URI Path Parts.", + // "description": "Name of the new object. Required when the object metadata is not otherwise provided. Overrides the object metadata's name value, if any. For information about how to URL encode object names to be path safe, see [Encoding URI Path Parts](http://cloud/storage/docs/request-endpoints#encoding).", // "location": "path", // "required": true, // "type": "string" @@ -11251,7 +11264,7 @@ func (c *ObjectsRewriteCall) Do(opts ...googleapi.CallOption) (*RewriteResponse, // "type": "string" // }, // "sourceObject": { - // "description": "Name of the source object. For information about how to URL encode object names to be path safe, see Encoding URI Path Parts.", + // "description": "Name of the source object. For information about how to URL encode object names to be path safe, see [Encoding URI Path Parts](http://cloud/storage/docs/request-endpoints#encoding).", // "location": "path", // "required": true, // "type": "string" @@ -11294,7 +11307,8 @@ type ObjectsSetIamPolicyCall struct { // // - bucket: Name of the bucket in which the object resides. // - object: Name of the object. For information about how to URL encode -// object names to be path safe, see Encoding URI Path Parts. +// object names to be path safe, see Encoding URI Path Parts +// (http://cloud/storage/docs/request-endpoints#encoding). func (r *ObjectsService) SetIamPolicy(bucket string, object string, policy *Policy) *ObjectsSetIamPolicyCall { c := &ObjectsSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.bucket = bucket @@ -11431,7 +11445,7 @@ func (c *ObjectsSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, err // "type": "string" // }, // "object": { - // "description": "Name of the object. For information about how to URL encode object names to be path safe, see Encoding URI Path Parts.", + // "description": "Name of the object. For information about how to URL encode object names to be path safe, see [Encoding URI Path Parts](http://cloud/storage/docs/request-endpoints#encoding).", // "location": "path", // "required": true, // "type": "string" @@ -11475,7 +11489,8 @@ type ObjectsTestIamPermissionsCall struct { // // - bucket: Name of the bucket in which the object resides. // - object: Name of the object. For information about how to URL encode -// object names to be path safe, see Encoding URI Path Parts. +// object names to be path safe, see Encoding URI Path Parts +// (http://cloud/storage/docs/request-endpoints#encoding). // - permissions: Permissions to test. func (r *ObjectsService) TestIamPermissions(bucket string, object string, permissions []string) *ObjectsTestIamPermissionsCall { c := &ObjectsTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)} @@ -11622,7 +11637,7 @@ func (c *ObjectsTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestI // "type": "string" // }, // "object": { - // "description": "Name of the object. For information about how to URL encode object names to be path safe, see Encoding URI Path Parts.", + // "description": "Name of the object. For information about how to URL encode object names to be path safe, see [Encoding URI Path Parts](http://cloud/storage/docs/request-endpoints#encoding).", // "location": "path", // "required": true, // "type": "string" @@ -11671,7 +11686,8 @@ type ObjectsUpdateCall struct { // // - bucket: Name of the bucket in which the object resides. // - object: Name of the object. For information about how to URL encode -// object names to be path safe, see Encoding URI Path Parts. +// object names to be path safe, see Encoding URI Path Parts +// (http://cloud/storage/docs/request-endpoints#encoding). func (r *ObjectsService) Update(bucket string, object string, object2 *Object) *ObjectsUpdateCall { c := &ObjectsUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.bucket = bucket @@ -11910,7 +11926,7 @@ func (c *ObjectsUpdateCall) Do(opts ...googleapi.CallOption) (*Object, error) { // "type": "string" // }, // "object": { - // "description": "Name of the object. For information about how to URL encode object names to be path safe, see Encoding URI Path Parts.", + // "description": "Name of the object. For information about how to URL encode object names to be path safe, see [Encoding URI Path Parts](http://cloud/storage/docs/request-endpoints#encoding).", // "location": "path", // "required": true, // "type": "string" diff --git a/streetviewpublish/v1/streetviewpublish-api.json b/streetviewpublish/v1/streetviewpublish-api.json index dd7b5810df1..25554ca1a2e 100644 --- a/streetviewpublish/v1/streetviewpublish-api.json +++ b/streetviewpublish/v1/streetviewpublish-api.json @@ -377,7 +377,7 @@ "parameterOrder": [], "parameters": { "filter": { - "description": "Optional. The filter expression. For example: `imagery_type=SPHERICAL`. The filters supported are: `imagery_type`, `processing_state`, `min_latitude`, `max_latitude`, `min_longitude`, `max_longitude`, `filename_query`, `min_capture_time_seconds`, and `max_capture_time_seconds`. See https://google.aip.dev/160 for more information. Filename queries should sent as a Phrase in order to support multiple words and special characters by adding escaped quotes. Ex: filename_query=\"example of a phrase.mp4\"", + "description": "Optional. The filter expression. For example: `imagery_type=SPHERICAL`. The filters supported are: `imagery_type`, `processing_state`, `min_latitude`, `max_latitude`, `min_longitude`, `max_longitude`, `filename_query`, `min_capture_time_seconds`, `max_capture_time_seconds`, and `takedown`. See https://google.aip.dev/160 for more information. Filename queries should sent as a Phrase in order to support multiple words and special characters by adding escaped quotes. Ex: filename_query=\"example of a phrase.mp4\"", "location": "query", "type": "string" }, @@ -534,7 +534,7 @@ } } }, - "revision": "20230611", + "revision": "20230618", "rootUrl": "https://streetviewpublish.googleapis.com/", "schemas": { "BatchDeletePhotosRequest": { diff --git a/streetviewpublish/v1/streetviewpublish-gen.go b/streetviewpublish/v1/streetviewpublish-gen.go index 38b5afbef51..44b799d9196 100644 --- a/streetviewpublish/v1/streetviewpublish-gen.go +++ b/streetviewpublish/v1/streetviewpublish-gen.go @@ -2985,10 +2985,10 @@ func (r *PhotoSequencesService) List() *PhotoSequencesListCall { // For example: `imagery_type=SPHERICAL`. The filters supported are: // `imagery_type`, `processing_state`, `min_latitude`, `max_latitude`, // `min_longitude`, `max_longitude`, `filename_query`, -// `min_capture_time_seconds`, and `max_capture_time_seconds`. See -// https://google.aip.dev/160 for more information. Filename queries -// should sent as a Phrase in order to support multiple words and -// special characters by adding escaped quotes. Ex: +// `min_capture_time_seconds`, `max_capture_time_seconds`, and +// `takedown`. See https://google.aip.dev/160 for more information. +// Filename queries should sent as a Phrase in order to support multiple +// words and special characters by adding escaped quotes. Ex: // filename_query="example of a phrase.mp4" func (c *PhotoSequencesListCall) Filter(filter string) *PhotoSequencesListCall { c.urlParams_.Set("filter", filter) @@ -3116,7 +3116,7 @@ func (c *PhotoSequencesListCall) Do(opts ...googleapi.CallOption) (*ListPhotoSeq // "parameterOrder": [], // "parameters": { // "filter": { - // "description": "Optional. The filter expression. For example: `imagery_type=SPHERICAL`. The filters supported are: `imagery_type`, `processing_state`, `min_latitude`, `max_latitude`, `min_longitude`, `max_longitude`, `filename_query`, `min_capture_time_seconds`, and `max_capture_time_seconds`. See https://google.aip.dev/160 for more information. Filename queries should sent as a Phrase in order to support multiple words and special characters by adding escaped quotes. Ex: filename_query=\"example of a phrase.mp4\"", + // "description": "Optional. The filter expression. For example: `imagery_type=SPHERICAL`. The filters supported are: `imagery_type`, `processing_state`, `min_latitude`, `max_latitude`, `min_longitude`, `max_longitude`, `filename_query`, `min_capture_time_seconds`, `max_capture_time_seconds`, and `takedown`. See https://google.aip.dev/160 for more information. Filename queries should sent as a Phrase in order to support multiple words and special characters by adding escaped quotes. Ex: filename_query=\"example of a phrase.mp4\"", // "location": "query", // "type": "string" // }, From 807827a10560bd302626f6852abbe38034424a61 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 20 Jun 2023 18:22:44 +0200 Subject: [PATCH 05/11] chore(all): update all (#2031) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [github.com/googleapis/enterprise-certificate-proxy](https://togithub.com/googleapis/enterprise-certificate-proxy) | require | patch | `v0.2.4` -> `v0.2.5` | | [github.com/googleapis/gax-go/v2](https://togithub.com/googleapis/gax-go) | require | minor | `v2.10.0` -> `v2.11.0` | | golang.org/x/net | require | minor | `v0.10.0` -> `v0.11.0` | | golang.org/x/oauth2 | require | minor | `v0.8.0` -> `v0.9.0` | | golang.org/x/sync | require | minor | `v0.2.0` -> `v0.3.0` | | [google.golang.org/grpc](https://togithub.com/grpc/grpc-go) | require | minor | `v1.55.0` -> `v1.56.0` | --- ### Release Notes
googleapis/enterprise-certificate-proxy ### [`v0.2.5`](https://togithub.com/googleapis/enterprise-certificate-proxy/releases/tag/v0.2.5): Post-GA Release [Compare Source](https://togithub.com/googleapis/enterprise-certificate-proxy/compare/v0.2.4...v0.2.5) - Adds linux-specific and windows-specific client to access signer APIs directly, bypassing RPC-mechanism of universal client. - Add bounds check to PKCS [#​11](https://togithub.com/googleapis/enterprise-certificate-proxy/issues/11) object arrays.
googleapis/gax-go ### [`v2.11.0`](https://togithub.com/googleapis/gax-go/releases/tag/v2.11.0) [Compare Source](https://togithub.com/googleapis/gax-go/compare/v2.10.0...v2.11.0) ##### Features - **v2:** add GoVersion package variable ([#​283](https://togithub.com/googleapis/gax-go/issues/283)) ([26553cc](https://togithub.com/googleapis/gax-go/commit/26553ccadb4016b189881f52e6c253b68bb3e3d5)) ##### Bug Fixes - **v2:** handle space in non-devel go version ([#​288](https://togithub.com/googleapis/gax-go/issues/288)) ([fd7bca0](https://togithub.com/googleapis/gax-go/commit/fd7bca029a1c5e63def8f0a5fd1ec3f725d92f75))
grpc/grpc-go ### [`v1.56.0`](https://togithub.com/grpc/grpc-go/releases/tag/v1.56.0): Release 1.56.0 [Compare Source](https://togithub.com/grpc/grpc-go/compare/v1.55.0...v1.56.0) ##### New Features - client: support channel idleness using `WithIdleTimeout` dial option ([#​6263](https://togithub.com/grpc/grpc-go/issues/6263)) - This feature is currently disabled by default, but will be enabled with a 30 minute default in the future. - client: when using pickfirst, keep channel state in TRANSIENT_FAILURE until it becomes READY ([gRFC A62](https://togithub.com/grpc/proposal/blob/master/A62-pick-first.md)) ([#​6306](https://togithub.com/grpc/grpc-go/issues/6306)) - xds: Add support for Custom LB Policies ([gRFC A52](https://togithub.com/grpc/proposal/blob/master/A52-xds-custom-lb-policies.md)) ([#​6224](https://togithub.com/grpc/grpc-go/issues/6224)) - xds: support pick_first Custom LB policy ([gRFC A62](https://togithub.com/grpc/proposal/blob/master/A62-pick-first.md)) ([#​6314](https://togithub.com/grpc/grpc-go/issues/6314)) ([#​6317](https://togithub.com/grpc/grpc-go/issues/6317)) - client: add support for pickfirst address shuffling ([gRFC A62](https://togithub.com/grpc/proposal/blob/master/A62-pick-first.md)) ([#​6311](https://togithub.com/grpc/grpc-go/issues/6311)) - xds: Add support for String Matcher Header Matcher in RDS ([#​6313](https://togithub.com/grpc/grpc-go/issues/6313)) - xds/outlierdetection: Add Channelz Logger to Outlier Detection LB ([#​6145](https://togithub.com/grpc/grpc-go/issues/6145)) - Special Thanks: [@​s-matyukevich](https://togithub.com/s-matyukevich) - xds: enable RLS in xDS by default ([#​6343](https://togithub.com/grpc/grpc-go/issues/6343)) - orca: add support for application_utilization field and missing range checks on several metrics setters - balancer/weightedroundrobin: add new LB policy for balancing between backends based on their load reports ([gRFC A58](https://togithub.com/grpc/proposal/blob/master/A58-client-side-weighted-round-robin-lb-policy.md)) ([#​6241](https://togithub.com/grpc/grpc-go/issues/6241)) - authz: add conversion of json to RBAC Audit Logging config ([#​6192](https://togithub.com/grpc/grpc-go/issues/6192)) - authz: add support for stdout logger ([#​6230](https://togithub.com/grpc/grpc-go/issues/6230) and [#​6298](https://togithub.com/grpc/grpc-go/issues/6298)) - authz: support customizable audit functionality for authorization policy ([#​6192](https://togithub.com/grpc/grpc-go/issues/6192) [#​6230](https://togithub.com/grpc/grpc-go/issues/6230) [#​6298](https://togithub.com/grpc/grpc-go/issues/6298) [#​6158](https://togithub.com/grpc/grpc-go/issues/6158) [#​6304](https://togithub.com/grpc/grpc-go/issues/6304) and [#​6225](https://togithub.com/grpc/grpc-go/issues/6225)) ##### Bug Fixes - orca: fix a race at startup of out-of-band metric subscriptions that would cause the report interval to request 0 ([#​6245](https://togithub.com/grpc/grpc-go/issues/6245)) - xds/xdsresource: Fix Outlier Detection Config Handling and correctly set xDS Defaults ([#​6361](https://togithub.com/grpc/grpc-go/issues/6361)) - xds/outlierdetection: Fix Outlier Detection Config Handling by setting defaults in ParseConfig() ([#​6361](https://togithub.com/grpc/grpc-go/issues/6361)) ##### API Changes - orca: allow a ServerMetricsProvider to be passed to the ORCA service and ServerOption ([#​6223](https://togithub.com/grpc/grpc-go/issues/6223))
--- ### Configuration 📅 **Schedule**: Branch creation - "before 4am on Monday" (UTC), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 👻 **Immortal**: This PR will be recreated if closed unmerged. Get [config help](https://togithub.com/renovatebot/renovate/discussions) if that's undesired. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/googleapis/google-api-go-client). --- go.mod | 18 ++++++++--------- go.sum | 36 ++++++++++++++++----------------- internal/kokoro/discogen/go.mod | 8 ++++---- internal/kokoro/discogen/go.sum | 16 +++++++-------- 4 files changed, 39 insertions(+), 39 deletions(-) diff --git a/go.mod b/go.mod index b14ba7effbd..3d7b660c332 100644 --- a/go.mod +++ b/go.mod @@ -7,16 +7,16 @@ require ( github.com/google/go-cmp v0.5.9 github.com/google/s2a-go v0.1.4 github.com/google/uuid v1.3.0 - github.com/googleapis/enterprise-certificate-proxy v0.2.4 - github.com/googleapis/gax-go/v2 v2.10.0 + github.com/googleapis/enterprise-certificate-proxy v0.2.5 + github.com/googleapis/gax-go/v2 v2.11.0 go.opencensus.io v0.24.0 - golang.org/x/net v0.10.0 - golang.org/x/oauth2 v0.8.0 - golang.org/x/sync v0.2.0 + golang.org/x/net v0.11.0 + golang.org/x/oauth2 v0.9.0 + golang.org/x/sync v0.3.0 google.golang.org/appengine v1.6.7 google.golang.org/genproto/googleapis/bytestream v0.0.0-20230530153820-e85fd2cbaebc google.golang.org/genproto/googleapis/rpc v0.0.0-20230530153820-e85fd2cbaebc - google.golang.org/grpc v1.55.0 + google.golang.org/grpc v1.56.0 google.golang.org/protobuf v1.30.0 ) @@ -24,9 +24,9 @@ require ( cloud.google.com/go/compute v1.19.3 // indirect github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect github.com/golang/protobuf v1.5.3 // indirect - golang.org/x/crypto v0.9.0 // indirect - golang.org/x/sys v0.8.0 // indirect - golang.org/x/text v0.9.0 // indirect + golang.org/x/crypto v0.10.0 // indirect + golang.org/x/sys v0.9.0 // indirect + golang.org/x/text v0.10.0 // indirect google.golang.org/genproto v0.0.0-20230530153820-e85fd2cbaebc // indirect google.golang.org/genproto/googleapis/api v0.0.0-20230530153820-e85fd2cbaebc // indirect ) diff --git a/go.sum b/go.sum index 1d6b2595256..1cae35e2e88 100644 --- a/go.sum +++ b/go.sum @@ -59,10 +59,10 @@ github.com/google/s2a-go v0.1.4/go.mod h1:Ej+mSEMGRnqRzjc7VtF+jdBwYG5fuJfiZ8ELkj github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/google/uuid v1.3.0 h1:t6JiXgmwXMjEs8VusXIJk2BXHsn+wx8BZdTaoZ5fu7I= github.com/google/uuid v1.3.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/googleapis/enterprise-certificate-proxy v0.2.4 h1:uGy6JWR/uMIILU8wbf+OkstIrNiMjGpEIyhx8f6W7s4= -github.com/googleapis/enterprise-certificate-proxy v0.2.4/go.mod h1:AwSRAtLfXpU5Nm3pW+v7rGDHp09LsPtGY9MduiEsR9k= -github.com/googleapis/gax-go/v2 v2.10.0 h1:ebSgKfMxynOdxw8QQuFOKMgomqeLGPqNLQox2bo42zg= -github.com/googleapis/gax-go/v2 v2.10.0/go.mod h1:4UOEnMCrxsSqQ940WnTiD6qJ63le2ev3xfyagutxiPw= +github.com/googleapis/enterprise-certificate-proxy v0.2.5 h1:UR4rDjcgpgEnqpIEvkiqTYKBCKLNmlge2eVjoZfySzM= +github.com/googleapis/enterprise-certificate-proxy v0.2.5/go.mod h1:RxW0N9901Cko1VOCW3SXCpWP+mlIEkk2tP7jnHy9a3w= +github.com/googleapis/gax-go/v2 v2.11.0 h1:9V9PWXEsWnPpQhu/PeQIkS4eGzMlTLGgt80cUUI8Ki4= +github.com/googleapis/gax-go/v2 v2.11.0/go.mod h1:DxmR61SGKkGLa2xigwuZIQpkCI2S5iydzRfb3peWZJI= github.com/grpc-ecosystem/grpc-gateway v1.16.0/go.mod h1:BDjrQk3hbvj6Nolgz8mAMFbcEtjT1g+wF4CSlocrBnw= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= github.com/prometheus/client_model v0.0.0-20190812154241-14fe0d1b01d4/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= @@ -83,8 +83,8 @@ golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACk golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= golang.org/x/crypto v0.0.0-20220314234659-1baeb1ce4c0b/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4= -golang.org/x/crypto v0.9.0 h1:LF6fAI+IutBocDJ2OT0Q1g8plpYljMZ4+lty+dsqw3g= -golang.org/x/crypto v0.9.0/go.mod h1:yrmDGqONDYtNj3tH8X9dzUun2m2lzPa9ngI6/RUPGR0= +golang.org/x/crypto v0.10.0 h1:LKqV2xt9+kDzSTfOhx4FrkEBcMrAgHSYgzywV9zcGmM= +golang.org/x/crypto v0.10.0/go.mod h1:o4eNf7Ede1fv+hwOwZsTHl9EsPFO6q6ZvYR8vYfY45I= golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= golang.org/x/lint v0.0.0-20181026193005-c67002cb31c3/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE= golang.org/x/lint v0.0.0-20190227174305-5b3e6a55c961/go.mod h1:wehouNa3lNwaWXcvxsM5YxQ5yQlVC4a0KAMCusXpPoU= @@ -103,19 +103,19 @@ golang.org/x/net v0.0.0-20201110031124-69a78807bb2b/go.mod h1:sp8m0HH+o8qH0wwXwY golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= golang.org/x/net v0.0.0-20211112202133-69e39bad7dc2/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= golang.org/x/net v0.0.0-20220722155237-a158d28d115b/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= -golang.org/x/net v0.10.0 h1:X2//UzNDwYmtCLn7To6G58Wr6f5ahEAQgKNzv9Y951M= -golang.org/x/net v0.10.0/go.mod h1:0qNGK6F8kojg2nk9dLZ2mShWaEBan6FAoqfSigmmuDg= +golang.org/x/net v0.11.0 h1:Gi2tvZIJyBtO9SDr1q9h5hEQCp/4L2RQ+ar0qjx2oNU= +golang.org/x/net v0.11.0/go.mod h1:2L/ixqYpgIVXmeoSA/4Lu7BzTG4KIyPIryS4IsOd1oQ= golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= golang.org/x/oauth2 v0.0.0-20200107190931-bf48bf16ab8d/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= -golang.org/x/oauth2 v0.8.0 h1:6dkIjl3j3LtZ/O3sTgZTMsLKSftL/B8Zgq4huOIIUu8= -golang.org/x/oauth2 v0.8.0/go.mod h1:yr7u4HXZRm1R1kBWqr/xKNqewf0plRYoB7sla+BCIXE= +golang.org/x/oauth2 v0.9.0 h1:BPpt2kU7oMRq3kCHAA1tbSEshXRw1LpG2ztgDwrzuAs= +golang.org/x/oauth2 v0.9.0/go.mod h1:qYgFZaFiu6Wg24azG8bdV52QJXJGbZzIIsRCdVKzbLw= golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.2.0 h1:PUR+T4wwASmuSTYdKjYHI5TD22Wy5ogLU5qZCOLxBrI= -golang.org/x/sync v0.2.0/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.3.0 h1:ftCYgMx6zT/asHUrPw8BLLscYtGznsLAnjq5RH9P66E= +golang.org/x/sync v0.3.0/go.mod h1:FU7BRWz2tNW+3quACPkgCx/L+uEAv1htQ0V83Z9Rj+Y= golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= @@ -126,8 +126,8 @@ golang.org/x/sys v0.0.0-20210423082822-04245dca01da/go.mod h1:h1NjWce9XRLGQEsW7w golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220722155257-8c9f86f7a55f/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.8.0 h1:EBmGv8NaZBZTWvrbjNoL6HVt+IVy3QDQpJs7VRIw3tU= -golang.org/x/sys v0.8.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.9.0 h1:KS/R3tvhPqvJvwcKfnBHJwwthS11LRhmM5D59eEXa0s= +golang.org/x/sys v0.9.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= @@ -136,8 +136,8 @@ golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ= golang.org/x/text v0.3.8/go.mod h1:E6s5w1FMmriuDzIBO73fBruAKo1PCIq6d2Q6DHfQ8WQ= -golang.org/x/text v0.9.0 h1:2sjJmO8cDvYveuX97RDLsxlyUxLl+GHoLxBiRdHllBE= -golang.org/x/text v0.9.0/go.mod h1:e1OnstbJyHTd6l/uOt8jFFHp6TRDWZR/bV3emEE/zU8= +golang.org/x/text v0.10.0 h1:UpjohKhiEgNc0CSauXmwYftY1+LlaC75SJwh0SgCX58= +golang.org/x/text v0.10.0/go.mod h1:TvPlkZtksWOMsz7fbANvkp4WM8x/WCo/om8BMLbz+aE= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= golang.org/x/tools v0.0.0-20190114222345-bf090417da8b/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= golang.org/x/tools v0.0.0-20190226205152-f727befe758c/go.mod h1:9Yl7xja0Znq3iFh3HoIrodX9oNMXvdceNzlUR8zjMvY= @@ -172,8 +172,8 @@ google.golang.org/grpc v1.33.1/go.mod h1:fr5YgcSWrqhRRxogOsw7RzIpsmvOZ6IcH4kBYTp google.golang.org/grpc v1.33.2/go.mod h1:JMHMWHQWaTccqQQlmk3MJZS+GWXOdAesneDmEnv2fbc= google.golang.org/grpc v1.36.0/go.mod h1:qjiiYl8FncCW8feJPdyg3v6XW24KsRHe+dy9BAGRRjU= google.golang.org/grpc v1.45.0/go.mod h1:lN7owxKUQEqMfSyQikvvk5tf/6zMPsrK+ONuO11+0rQ= -google.golang.org/grpc v1.55.0 h1:3Oj82/tFSCeUrRTg/5E/7d/W5A1tj6Ky1ABAuZuv5ag= -google.golang.org/grpc v1.55.0/go.mod h1:iYEXKGkEBhg1PjZQvoYEVPTDkHo1/bjTnfwTeGONTY8= +google.golang.org/grpc v1.56.0 h1:+y7Bs8rtMd07LeXmL3NxcTLn7mUkbKZqEpPhMNkwJEE= +google.golang.org/grpc v1.56.0/go.mod h1:I9bI3vqKfayGqPUAwGdOSu7kt6oIJLixfffKrpXqQ9s= google.golang.org/protobuf v0.0.0-20200109180630-ec00e32a8dfd/go.mod h1:DFci5gLYBciE7Vtevhsrf46CRTquxDuWsQurQQe4oz8= google.golang.org/protobuf v0.0.0-20200221191635-4d8936d0db64/go.mod h1:kwYJMbMJ01Woi6D6+Kah6886xMZcty6N08ah7+eCXa0= google.golang.org/protobuf v0.0.0-20200228230310-ab0ca4ff8a60/go.mod h1:cfTl7dwQJ+fmap5saPgwCLgHXTUD7jkjRqWcaiX5VyM= diff --git a/internal/kokoro/discogen/go.mod b/internal/kokoro/discogen/go.mod index 8afcad95338..7b2b0f43f16 100644 --- a/internal/kokoro/discogen/go.mod +++ b/internal/kokoro/discogen/go.mod @@ -4,7 +4,7 @@ go 1.19 require ( github.com/google/go-github/v52 v52.0.0 - golang.org/x/oauth2 v0.8.0 + golang.org/x/oauth2 v0.9.0 ) require ( @@ -12,9 +12,9 @@ require ( github.com/cloudflare/circl v1.3.3 // indirect github.com/golang/protobuf v1.5.3 // indirect github.com/google/go-querystring v1.1.0 // indirect - golang.org/x/crypto v0.9.0 // indirect - golang.org/x/net v0.10.0 // indirect - golang.org/x/sys v0.8.0 // indirect + golang.org/x/crypto v0.10.0 // indirect + golang.org/x/net v0.11.0 // indirect + golang.org/x/sys v0.9.0 // indirect google.golang.org/appengine v1.6.7 // indirect google.golang.org/protobuf v1.30.0 // indirect ) diff --git a/internal/kokoro/discogen/go.sum b/internal/kokoro/discogen/go.sum index 4a8612c3977..3deed7c16b6 100644 --- a/internal/kokoro/discogen/go.sum +++ b/internal/kokoro/discogen/go.sum @@ -17,20 +17,20 @@ github.com/google/go-querystring v1.1.0 h1:AnCroh3fv4ZBgVIf1Iwtovgjaw/GiKJo8M8yD github.com/google/go-querystring v1.1.0/go.mod h1:Kcdr2DB4koayq7X8pmAG4sNG59So17icRSOU623lUBU= golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= -golang.org/x/crypto v0.9.0 h1:LF6fAI+IutBocDJ2OT0Q1g8plpYljMZ4+lty+dsqw3g= -golang.org/x/crypto v0.9.0/go.mod h1:yrmDGqONDYtNj3tH8X9dzUun2m2lzPa9ngI6/RUPGR0= +golang.org/x/crypto v0.10.0 h1:LKqV2xt9+kDzSTfOhx4FrkEBcMrAgHSYgzywV9zcGmM= +golang.org/x/crypto v0.10.0/go.mod h1:o4eNf7Ede1fv+hwOwZsTHl9EsPFO6q6ZvYR8vYfY45I= golang.org/x/net v0.0.0-20190603091049-60506f45cf65/go.mod h1:HSz+uSET+XFnRR8LxR5pz3Of3rY3CfYBVs4xY44aLks= golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= -golang.org/x/net v0.10.0 h1:X2//UzNDwYmtCLn7To6G58Wr6f5ahEAQgKNzv9Y951M= -golang.org/x/net v0.10.0/go.mod h1:0qNGK6F8kojg2nk9dLZ2mShWaEBan6FAoqfSigmmuDg= -golang.org/x/oauth2 v0.8.0 h1:6dkIjl3j3LtZ/O3sTgZTMsLKSftL/B8Zgq4huOIIUu8= -golang.org/x/oauth2 v0.8.0/go.mod h1:yr7u4HXZRm1R1kBWqr/xKNqewf0plRYoB7sla+BCIXE= +golang.org/x/net v0.11.0 h1:Gi2tvZIJyBtO9SDr1q9h5hEQCp/4L2RQ+ar0qjx2oNU= +golang.org/x/net v0.11.0/go.mod h1:2L/ixqYpgIVXmeoSA/4Lu7BzTG4KIyPIryS4IsOd1oQ= +golang.org/x/oauth2 v0.9.0 h1:BPpt2kU7oMRq3kCHAA1tbSEshXRw1LpG2ztgDwrzuAs= +golang.org/x/oauth2 v0.9.0/go.mod h1:qYgFZaFiu6Wg24azG8bdV52QJXJGbZzIIsRCdVKzbLw= golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20211007075335-d3039528d8ac/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.8.0 h1:EBmGv8NaZBZTWvrbjNoL6HVt+IVy3QDQpJs7VRIw3tU= -golang.org/x/sys v0.8.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.9.0 h1:KS/R3tvhPqvJvwcKfnBHJwwthS11LRhmM5D59eEXa0s= +golang.org/x/sys v0.9.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= From 177408ea127ce2e5a171fa54008838560203e587 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Wed, 21 Jun 2023 00:22:12 -0700 Subject: [PATCH 06/11] feat(all): auto-regenerate discovery clients (#2035) --- .../v1alpha/analyticsadmin-api.json | 18 +- analyticsadmin/v1alpha/analyticsadmin-gen.go | 14 + api-list.json | 15 + checks/v1alpha/checks-api.json | 630 +++++++++ checks/v1alpha/checks-gen.go | 1131 +++++++++++++++++ .../v1alpha1/contactcenteraiplatform-api.json | 164 ++- .../v1alpha1/contactcenteraiplatform-gen.go | 462 +++++++ content/v2.1/content-api.json | 60 +- content/v2.1/content-gen.go | 226 ---- .../v1alpha/discoveryengine-api.json | 128 +- .../v1alpha/discoveryengine-gen.go | 435 ++++++- .../v1beta/discoveryengine-api.json | 57 +- discoveryengine/v1beta/discoveryengine-gen.go | 91 +- documentai/v1/documentai-api.json | 27 +- documentai/v1/documentai-gen.go | 40 + documentai/v1beta3/documentai-api.json | 27 +- documentai/v1beta3/documentai-gen.go | 40 + serviceusage/v1/serviceusage-api.json | 4 +- serviceusage/v1/serviceusage-gen.go | 2 +- serviceusage/v1beta1/serviceusage-api.json | 6 +- serviceusage/v1beta1/serviceusage-gen.go | 13 +- 21 files changed, 3251 insertions(+), 339 deletions(-) create mode 100644 checks/v1alpha/checks-api.json create mode 100644 checks/v1alpha/checks-gen.go diff --git a/analyticsadmin/v1alpha/analyticsadmin-api.json b/analyticsadmin/v1alpha/analyticsadmin-api.json index 86b23e73e9a..d6f44358a69 100644 --- a/analyticsadmin/v1alpha/analyticsadmin-api.json +++ b/analyticsadmin/v1alpha/analyticsadmin-api.json @@ -4322,7 +4322,7 @@ } } }, - "revision": "20230615", + "revision": "20230620", "rootUrl": "https://analyticsadmin.googleapis.com/", "schemas": { "GoogleAnalyticsAdminV1alphaAccessBetweenFilter": { @@ -4865,6 +4865,22 @@ ], "type": "string" }, + "adsWebConversionDataExportScope": { + "description": "Required. The Conversion Export Scope for data exported to linked Ads Accounts.", + "enum": [ + "ADS_WEB_CONVERSION_DATA_EXPORT_SCOPE_UNSPECIFIED", + "NOT_SELECTED_YET", + "CROSS_CHANNEL", + "ADS_PREFERRED" + ], + "enumDescriptions": [ + "Default value. This value is unused.", + "No data export scope selected yet. Export scope can never be changed back to this value.", + "The Ads Web Conversion Data export scope is Cross Channel.", + "The Ads Web Conversion Data export scope is Ads Preferred." + ], + "type": "string" + }, "name": { "description": "Output only. Resource name of this attribution settings resource. Format: properties/{property_id}/attributionSettings Example: \"properties/1000/attributionSettings\"", "readOnly": true, diff --git a/analyticsadmin/v1alpha/analyticsadmin-gen.go b/analyticsadmin/v1alpha/analyticsadmin-gen.go index 5d3394af61d..3647f83518f 100644 --- a/analyticsadmin/v1alpha/analyticsadmin-gen.go +++ b/analyticsadmin/v1alpha/analyticsadmin-gen.go @@ -1449,6 +1449,20 @@ type GoogleAnalyticsAdminV1alphaAttributionSettings struct { // lookback window. AcquisitionConversionEventLookbackWindow string `json:"acquisitionConversionEventLookbackWindow,omitempty"` + // AdsWebConversionDataExportScope: Required. The Conversion Export + // Scope for data exported to linked Ads Accounts. + // + // Possible values: + // "ADS_WEB_CONVERSION_DATA_EXPORT_SCOPE_UNSPECIFIED" - Default value. + // This value is unused. + // "NOT_SELECTED_YET" - No data export scope selected yet. Export + // scope can never be changed back to this value. + // "CROSS_CHANNEL" - The Ads Web Conversion Data export scope is Cross + // Channel. + // "ADS_PREFERRED" - The Ads Web Conversion Data export scope is Ads + // Preferred. + AdsWebConversionDataExportScope string `json:"adsWebConversionDataExportScope,omitempty"` + // Name: Output only. Resource name of this attribution settings // resource. Format: properties/{property_id}/attributionSettings // Example: "properties/1000/attributionSettings" diff --git a/api-list.json b/api-list.json index f359beebd0e..a5ce1a367ed 100644 --- a/api-list.json +++ b/api-list.json @@ -946,6 +946,21 @@ "documentationLink": "https://developers.google.com/hangouts/chat", "preferred": true }, + { + "kind": "discovery#directoryItem", + "id": "checks:v1alpha", + "name": "checks", + "version": "v1alpha", + "title": "Checks API", + "description": "The Checks API contains powerful and easy-to-use privacy and compliance APIs that interact with the Checks product and its underlying technology.", + "discoveryRestUrl": "https://checks.googleapis.com/$discovery/rest?version=v1alpha", + "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://developers.google.com/checks", + "preferred": true + }, { "kind": "discovery#directoryItem", "id": "chromemanagement:v1", diff --git a/checks/v1alpha/checks-api.json b/checks/v1alpha/checks-api.json new file mode 100644 index 00000000000..980e988e9ae --- /dev/null +++ b/checks/v1alpha/checks-api.json @@ -0,0 +1,630 @@ +{ + "auth": { + "oauth2": { + "scopes": { + "https://www.googleapis.com/auth/xapi.zoo": { + "description": "Test scope for access to the Zoo service" + } + } + } + }, + "basePath": "", + "baseUrl": "https://checks.googleapis.com/", + "batchPath": "batch", + "canonicalName": "Checks Service", + "description": "The Checks API contains powerful and easy-to-use privacy and compliance APIs that interact with the Checks product and its underlying technology.", + "discoveryVersion": "v1", + "documentationLink": "https://developers.google.com/checks", + "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": "checks:v1alpha", + "kind": "discovery#restDescription", + "mtlsRootUrl": "https://checks.mtls.googleapis.com/", + "name": "checks", + "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": { + "apps": { + "resources": { + "operations": { + "methods": { + "get": { + "description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.", + "flatPath": "v1alpha/accounts/{accountsId}/apps/{appsId}/operations/{operationsId}", + "httpMethod": "GET", + "id": "checks.accounts.apps.operations.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource.", + "location": "path", + "pattern": "^accounts/[^/]+/apps/[^/]+/operations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1alpha/{+name}", + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/xapi.zoo" + ] + } + } + } + } + } + } + }, + "privacypolicy": { + "methods": { + "analyze": { + "description": "Analyzes the privacy policy of the given policy URL or content.", + "flatPath": "v1alpha/privacypolicy:analyze", + "httpMethod": "POST", + "id": "checks.privacypolicy.analyze", + "parameterOrder": [], + "parameters": {}, + "path": "v1alpha/privacypolicy:analyze", + "request": { + "$ref": "AnalyzePrivacyPolicyRequest" + }, + "response": { + "$ref": "AnalyzePrivacyPolicyResponse" + } + } + } + } + }, + "revision": "20230619", + "rootUrl": "https://checks.googleapis.com/", + "schemas": { + "AnalyzePrivacyPolicyRequest": { + "description": "The request proto for AnalyzePrivacyPolicy method.", + "id": "AnalyzePrivacyPolicyRequest", + "properties": { + "privacyPolicyPageContent": { + "description": "Web page raw HTML content for the privacy policy page to be analyzed. Useful when the client wants to analyze a privacy policy already fetched.", + "type": "string" + }, + "privacyPolicyUri": { + "description": "URL for the privacy policy page to be analyzed. https://linter.aip.dev/140/uri (Use `uri` instead of `url` in field name)", + "type": "string" + } + }, + "type": "object" + }, + "AnalyzePrivacyPolicyResponse": { + "description": "The response proto for AnalyzePrivacyPolicy method.", + "id": "AnalyzePrivacyPolicyResponse", + "properties": { + "dataPurposeAnnotations": { + "description": "List of all data types in the privacy policy.", + "items": { + "$ref": "PolicyPurposeOfUseAnnotation" + }, + "type": "array" + }, + "dataTypeAnnotations": { + "description": "List of all data types in the privacy policy.", + "items": { + "$ref": "PolicyDataTypeAnnotation" + }, + "type": "array" + }, + "htmlContent": { + "description": "HTML content for the privacy policy page.", + "type": "string" + }, + "lastUpdatedDateInfo": { + "$ref": "LastUpdatedDate", + "description": "Information about the date when the privacy policy was last updated." + }, + "sectionAnnotations": { + "description": "List of all sections in the privacy policy.", + "items": { + "$ref": "PolicySectionAnnotation" + }, + "type": "array" + } + }, + "type": "object" + }, + "Date": { + "description": "Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values. * A month and day, with a zero year (for example, an anniversary). * A year on its own, with a zero month and a zero day. * A year and month, with a zero day (for example, a credit card expiration date). Related types: * google.type.TimeOfDay * google.type.DateTime * google.protobuf.Timestamp", + "id": "Date", + "properties": { + "day": { + "description": "Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn't significant.", + "format": "int32", + "type": "integer" + }, + "month": { + "description": "Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.", + "format": "int32", + "type": "integer" + }, + "year": { + "description": "Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year.", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, + "LastUpdatedDate": { + "description": "Information about the date when the privacy policy was last updated.", + "id": "LastUpdatedDate", + "properties": { + "endOffset": { + "description": "Byte offsets for the end of the date text inside the full text.", + "format": "int64", + "type": "string" + }, + "lastUpdatedDate": { + "$ref": "Date", + "description": "Date when the privacy policy was last updated." + }, + "startOffset": { + "description": "Byte offsets for the start of the date text inside the full text.", + "format": "int64", + "type": "string" + }, + "textContent": { + "description": "The bytes of actual text content in the section. NOTE: - This will correspond to the whole sentence that includes the date. - This field might contain HTML and it is not sanitized.", + "type": "string" + } + }, + "type": "object" + }, + "Operation": { + "description": "This resource represents a long-running operation that is the result of a network API call.", + "id": "Operation", + "properties": { + "done": { + "description": "If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.", + "type": "boolean" + }, + "error": { + "$ref": "Status", + "description": "The error result of the operation in case of failure or cancellation." + }, + "metadata": { + "additionalProperties": { + "description": "Properties of the object. Contains field @type with type URL.", + "type": "any" + }, + "description": "Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.", + "type": "object" + }, + "name": { + "description": "The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.", + "type": "string" + }, + "response": { + "additionalProperties": { + "description": "Properties of the object. Contains field @type with type URL.", + "type": "any" + }, + "description": "The normal response of the operation in case of success. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.", + "type": "object" + } + }, + "type": "object" + }, + "PolicyDataTypeAnnotation": { + "id": "PolicyDataTypeAnnotation", + "properties": { + "dataType": { + "description": "Type of the data mentioned in the policy.", + "enum": [ + "DATA_TYPE_UNSPECIFIED", + "CONTACT_INFO_NAME", + "CONTACT_INFO_EMAIL_ADDRESS", + "CONTACT_INFO_PHONE_NUMBER", + "CONTACT_INFO_MAILING_ADDRESS", + "CONTACT_INFO_OTHER", + "IDENTITY_INFO_OTHER", + "USER_CONTENT_EMAIL_MESSAGES", + "USER_CONTENT_TEXT_MESSAGES", + "USER_CONTENT_OTHER_IN_APP_MESSAGES", + "USER_CONTENT_PHOTOS", + "USER_CONTENT_VIDEOS", + "USER_CONTENT_MUSIC_FILES", + "USER_CONTENT_VOICE_OR_SOUND_RECORDINGS", + "USER_CONTENT_OTHER_AUDIO_FILES", + "USER_CONTENT_FILES_AND_DOCS", + "USER_CONTENT_GAMEPLAY_DATA", + "USER_CONTENT_CUSTOMER_SUPPORT", + "COOKIES_AND_TRACKING_ELEMENTS", + "BROWSING_HISTORY", + "SEARCH_HISTORY", + "PURCHASE_HISTORY", + "PRODUCT_INTERACTION", + "USER_GENERATED_CONTENT_OTHER", + "IN_APP_ACTIONS_OTHER", + "ADVERTISING", + "APP_CRASH_LOGS", + "APP_DIAGNOSTICS", + "APP_PERFORMANCE_OTHER", + "USER_IDENTIFIERS", + "DEVICE_IDENTIFIERS", + "IP_ADDRESS", + "CONTACTS", + "AUTHENTICATION_DATA", + "CALENDAR_EVENTS_OR_NOTES", + "HEALTH", + "FITNESS", + "LOCATION_PRECISE", + "LOCATION_COARSE", + "LOCATION_GENERAL", + "APPS_ON_DEVICE", + "FINANCIAL_PAYMENT_INFO", + "FINANCIAL_CREDIT_INFO", + "FINANCIAL_OTHER", + "PERSONAL_INFO_RACE_AND_ETHNICITY", + "PERSONAL_INFO_POLITICAL_OR_RELIGIOUS_BELIEFS", + "PERSONAL_INFO_SEXUAL_ORIENTATION", + "PERSONAL_INFO_OTHER", + "GENERIC_PERSONAL_INFORMATION", + "UNSPECIFIED_INFORMATION", + "OTHER_DATA" + ], + "enumDescriptions": [ + "Default value.", + "Data type on the privacy policy describing Contact Info name.", + "Data type on the privacy policy describing Contact Info email address.", + "Data type on the privacy policy describing Contact Info phone number.", + "Data type on the privacy policy describing Contact Info mailing address.", + "Data type on the privacy policy describing Contact Info other.", + "Data type on the privacy policy describing Identity Info other.", + "Data type on the privacy policy describing User Content email messages.", + "Data type on the privacy policy describing User Content text messages.", + "Data type on the privacy policy describing User Content other in-app messages.", + "Data type on the privacy policy describing User Content photos.", + "Data type on the privacy policy describing User Content videos.", + "Data type on the privacy policy describing User Content music files.", + "Data type on the privacy policy describing User Content voice or sound recordings.", + "Data type on the privacy policy describing User Content other audio files.", + "Data type on the privacy policy describing User Content files or documents.", + "Data type on the privacy policy describing User Content gameplay data.", + "Data type on the privacy policy describing User Content customer support.", + "Data type on the privacy policy describing Cookies and other tracking elements, e.g. web beacons.", + "Data type on the privacy policy describing Browsing History.", + "Data type on the privacy policy describing Search History.", + "Data type on the privacy policy describing Purchase History.", + "Data type on the privacy policy describing Product Interaction data.", + "Data type on the privacy policy describing other User Generated Content.", + "Data type on the privacy policy describing other User Generated Content.", + "Data type on the privacy policy describing Advertising data.", + "Data type on the privacy policy describing Crash Logs data.", + "Data type on the privacy policy describing App Diagnostics data.", + "Data type on the privacy policy describing other App Performance data.", + "Data type on the privacy policy describing User or account-level IDs.", + "Data type on the privacy policy describing device-level IDs.", + "Data type on the privacy policy describing IP Addresses.", + "Data type on the privacy policy describing Contacts data.", + "Data type on the privacy policy describing Authentication data, e.g. passwords.", + "Data type on the privacy policy describing Calendar events or notes.", + "Data type on the privacy policy describing Health data.", + "Data type on the privacy policy describing Fitness data.", + "Data type on the privacy policy describing Precise Location data.", + "Data type on the privacy policy describing Coarse Location data.", + "Data type on the privacy policy describing general Location data, without specifying precise or coarse.", + "Data type on the privacy policy describing Apps on Device.", + "Data type on the privacy policy describing Financial Payment info.", + "Data type on the privacy policy describing Financial Credit info.", + "Data type on the privacy policy describing Financial other data.", + "Data type on the privacy policy describing a user’s race or ethnicity.", + "Data type on the privacy policy describing a user’s political or religious beliefs.", + "Data type on the privacy policy describing a user’s sexual orientation.", + "Data type on the privacy policy describing Personal Info other.", + "Data type on the privacy policy describing generic personal information, e.g. \"we collection your personal information.\"", + "Data type on the privacy policy describing information in general with no speicific type, e.g. \"we collect information you voluntarily provide.\"", + "Data type on the privacy policy describing specific types of data that are not covered by others labels, or ambiguous cases where no clear type exists, e.g. \"we collect your movement data,\" which could be location, fitness, or even product interaction, depending on the context." + ], + "type": "string" + }, + "endOffset": { + "description": "Byte offsets for the end of the data type sentence inside the full text.", + "format": "int64", + "type": "string" + }, + "score": { + "description": "Score given by the model representing how confident it was regarding this `text_content` being of `data_type`.", + "format": "float", + "type": "number" + }, + "startOffset": { + "description": "Byte offsets for the start of the data type sentence inside the full text.", + "format": "int64", + "type": "string" + }, + "textContent": { + "description": "Actual text content in the section. This makes it much easier to consume the information. NOTE: This field might contain HTML and does not guarantee a SafeHtml security contract go/safehtmltypecontracts#safehtml.", + "type": "string" + } + }, + "type": "object" + }, + "PolicyPurposeOfUseAnnotation": { + "id": "PolicyPurposeOfUseAnnotation", + "properties": { + "endOffset": { + "description": "Byte offsets for the end of the purpose of use sentence inside the full text.", + "format": "int64", + "type": "string" + }, + "purposeOfUse": { + "description": "Purpose of use mentioned in the policy.", + "enum": [ + "PURPOSE_OF_USE_UNSPECIFIED", + "APP_FUNCTIONALITY", + "APP_DIAGNOSTICS_AND_PERFORMANCE", + "FRAUD_PREVENTION_AND_SECURITY", + "PRODUCT_PERSONALIZATION", + "ANALYTICS", + "DEVELOPERS_COMMUNICATION_AND_MARKETING", + "THIRD_PARTY_ADVERTISING", + "GENERAL_ADVERTISING", + "LEGAL_COMPLIANCE", + "MERGERS_AND_ACQUISITIONS", + "OTHER_SPECIFIED_PURPOSE", + "NO_PURPOSE_MENTIONED" + ], + "enumDescriptions": [ + "Default value.", + "Data is used for general app functions, or interface with the user, e.g. customer support.", + "Data is used for minimizing app crashes, enabling scalability and performance, etc.", + "Data is used for fraud prevention, protecting user accounts, or other security purposes.", + "Data is used for personalizing/customizing what the user sees.", + "Data is used for evaluating user behavior, measuring audience size, etc.", + "Data is used for sending marketing communications directly to your users, notifications, reminders, or update notices.", + "Data is used by a third-party to display ads in the app (or elsewhere).", + "Data is used for displaying ads in the app, or sharing data with entities who display ads.", + "Data is used for compliance with legal obligations, e.g., regulations, government data requests, law enforcement requests in general, etc.", + "If a company/organization merges or is acquired it transfers users' information to another company/organization.", + "Any other specific purposes that are not listed above.", + "The purpose of use is not explicitly stated or unclear." + ], + "type": "string" + }, + "score": { + "description": "Score given by the model representing how confident it was regarding this `text_content` being of `purpose_of_use`.", + "format": "float", + "type": "number" + }, + "startOffset": { + "description": "Byte offsets for the start of the purpose of use sentence inside the full text.", + "format": "int64", + "type": "string" + }, + "textContent": { + "description": "The bytes of actual text content in the sentence that mentions the purpose of use. This makes it much easier to consume the information. NOTE: This field might contain HTML and does not guarantee a SafeHtml security contract go/safehtmltypecontracts#safehtml.", + "type": "string" + } + }, + "type": "object" + }, + "PolicySectionAnnotation": { + "id": "PolicySectionAnnotation", + "properties": { + "endOffset": { + "description": "Byte offsets for the end of the section inside the full text.", + "format": "int64", + "type": "string" + }, + "score": { + "description": "Score given by the model representing how confident it was regarding this `text_content` being of `section_type`.", + "format": "float", + "type": "number" + }, + "sectionType": { + "description": "Type of the high-level category in the policy.", + "enum": [ + "SECTION_TYPE_UNSPECIFIED", + "FIRST_PARTY_COLLECTION", + "FIRST_PARTY_USE", + "THIRD_PARTY_SHARING", + "CHILDREN_RELATED", + "DATA_RETENTION", + "PRIVACY_CONTACT", + "RIGHT_TO_DELETE", + "RIGHT_TO_RESTRICT_PROCESSING", + "RIGHT_TO_ACCESS", + "RIGHT_TO_RECTIFICATION", + "RIGHT_TO_KNOW_ABOUT_SELLING", + "RIGHT_TO_KNOW_ABOUT_SHARING", + "RIGHT_TO_OPT_OUT_FROM_SELLING", + "RIGHT_TO_OPT_OUT_FROM_SHARING", + "METHOD_TO_OPT_OUT_FROM_SELLING_OR_SHARING", + "AUTHORIZED_AGENT", + "CCPA_CPRA_REFERENCE", + "DATA_PROTECTION_OFFICER", + "DATA_CONTROLLER", + "DO_NOT_SELL", + "GDPR_REFERENCE", + "LAWFUL_LEGAL_BASIS", + "PRIVACY_SHIELD", + "RIGHT_TO_LODGE_A_COMPLAINT", + "TRANSFER_MECHANISMS", + "NO_CHILDREN_DATA_COLLECTION", + "NO_CHILDREN_DATA_SHARING", + "CHILDREN_INFORMATION_PUBLICITY", + "PARENTS_METHOD_OF_INFORMATION_DELETION", + "PARENTS_METHOD_TO_INFORMATION_REVIEW", + "PARENTS_METHOD_TO_STOP_FURTHER_INFORMATION_COLLECTION_USE", + "PARENTS_RIGHT_TO_INFORMATION_DELETION", + "PARENTS_RIGHT_TO_INFORMATION_REVIEW", + "PARENTS_RIGHT_TO_STOP_FURTHER_INFORMATION_COLLECTION_USE" + ], + "enumDescriptions": [ + "Default value.", + "Section of the privacy policy describes 1st party collection practices.", + "Section of the privacy policy describes 1st party use practices.", + "Section of the privacy policy describes 3rd party sharing practices.", + "Section of the privacy policy describes Children related content.", + "Section of the privacy policy describes data retention practices.", + "Section of the privacy policy references privacy contact information.", + "Section of the privacy policy describes users' right of data deletion.", + "Section of the privacy policy about users' right to restrict processing.", + "Section of the privacy policy about users' right to access their data.", + "Section of the privacy policy about users' right to correct inaccuracies.", + "Section of the privacy policy about users' right to know about information selling.", + "Section of the privacy policy about users' right to know about information sharing.", + "Section of the privacy policy about users' right to opt out from information selling.", + "Section of the privacy policy about users' right to opt out from information sharing.", + "Section of the privacy policy about the method to opt out from selling or sharing.", + "Section of the privacy policy about the authorized agent designated by user.", + "Section of the privacy policy about the mentions of the CCPA or CPRA.", + "Section of the privacy policy about the mentions of data protection officer (DPO).", + "Section of the privacy policy about the mentions of a data controller.", + "Section of the privacy policy stating that the company does not sell data in general (or as defined by the CCPA), without exceptions.", + "Section of the privacy policy about the mentions of the GDPR (General Data Protection Regulation).", + "Section of the privacy policy about lawful/legal basis for data processing.", + "Section of the privacy policy about the Privacy Shielf framework.", + "Section of the privacy policy about the right to lodge a complaint with a supervisory authority.", + "Section of the privacy policy about transfer mechanisms of data from the EU to third countries", + "Section of the privacy policy stating that the company does not collect data from children.", + "Section of the privacy policy stating that the company does not share data from children.", + "Section of the privacy policy stating whether the app allows children to make their personal information publicly available.", + "Section of the privacy policy stating to parents/caregivers/guardians how they can request the deletion of their child's personal information.", + "Section of the privacy policy stating to parents/guardians/caregivers how they can review their child's personal information.", + "Section of the privacy policy stating to parents/caregivers/guardians how they can stop the further collection or use of their child's personal information.", + "Section of the privacy policy stating that a parent/caregiver/guardian has the right to request the deletion of their child's personal. information.", + "Section of the privacy policy stating to parents/guardians/caregivers that they have a right to review their child's personal information.", + "Section of the privacy policy stating to parents/caregivers/guardians that they have the right to stop the further collection or use of their child's personal information." + ], + "type": "string" + }, + "startOffset": { + "description": "Byte offsets for the start of the section inside the full text.", + "format": "int64", + "type": "string" + }, + "textContent": { + "description": "Actual text content in the section. This makes it much easier to consume the information. NOTE: This field might contain HTML and does not guarantee a SafeHtml security contract go/safehtmltypecontracts#safehtml.", + "type": "string" + } + }, + "type": "object" + }, + "Status": { + "description": "The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors).", + "id": "Status", + "properties": { + "code": { + "description": "The status code, which should be an enum value of google.rpc.Code.", + "format": "int32", + "type": "integer" + }, + "details": { + "description": "A list of messages that carry the error details. There is a common set of message types for APIs to use.", + "items": { + "additionalProperties": { + "description": "Properties of the object. Contains field @type with type URL.", + "type": "any" + }, + "type": "object" + }, + "type": "array" + }, + "message": { + "description": "A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.", + "type": "string" + } + }, + "type": "object" + } + }, + "servicePath": "", + "title": "Checks API", + "version": "v1alpha", + "version_module": true +} \ No newline at end of file diff --git a/checks/v1alpha/checks-gen.go b/checks/v1alpha/checks-gen.go new file mode 100644 index 00000000000..5f6f5a926f5 --- /dev/null +++ b/checks/v1alpha/checks-gen.go @@ -0,0 +1,1131 @@ +// Copyright 2023 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 checks provides access to the Checks API. +// +// For product documentation, see: https://developers.google.com/checks +// +// # Creating a client +// +// Usage example: +// +// import "google.golang.org/api/checks/v1alpha" +// ... +// ctx := context.Background() +// checksService, err := checks.NewService(ctx) +// +// In this example, Google Application Default Credentials are used for authentication. +// +// For information on how to create and obtain Application Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. +// +// # Other authentication options +// +// To use an API key for authentication (note: some APIs do not support API keys), use option.WithAPIKey: +// +// checksService, err := checks.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, ...) +// checksService, err := checks.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token))) +// +// See https://godoc.org/google.golang.org/api/option/ for details on options. +package checks // import "google.golang.org/api/checks/v1alpha" + +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 +var _ = internal.Version + +const apiId = "checks:v1alpha" +const apiName = "checks" +const apiVersion = "v1alpha" +const basePath = "https://checks.googleapis.com/" +const mtlsBasePath = "https://checks.mtls.googleapis.com/" + +// OAuth2 scopes used by this API. +const ( + // Test scope for access to the Zoo service + XapiZooScope = "https://www.googleapis.com/auth/xapi.zoo" +) + +// NewService creates a new Service. +func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, error) { + scopesOption := internaloption.WithDefaultScopes( + "https://www.googleapis.com/auth/xapi.zoo", + ) + // 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.Privacypolicy = NewPrivacypolicyService(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 + + Privacypolicy *PrivacypolicyService +} + +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.Apps = NewAccountsAppsService(s) + return rs +} + +type AccountsService struct { + s *Service + + Apps *AccountsAppsService +} + +func NewAccountsAppsService(s *Service) *AccountsAppsService { + rs := &AccountsAppsService{s: s} + rs.Operations = NewAccountsAppsOperationsService(s) + return rs +} + +type AccountsAppsService struct { + s *Service + + Operations *AccountsAppsOperationsService +} + +func NewAccountsAppsOperationsService(s *Service) *AccountsAppsOperationsService { + rs := &AccountsAppsOperationsService{s: s} + return rs +} + +type AccountsAppsOperationsService struct { + s *Service +} + +func NewPrivacypolicyService(s *Service) *PrivacypolicyService { + rs := &PrivacypolicyService{s: s} + return rs +} + +type PrivacypolicyService struct { + s *Service +} + +// AnalyzePrivacyPolicyRequest: The request proto for +// AnalyzePrivacyPolicy method. +type AnalyzePrivacyPolicyRequest struct { + // PrivacyPolicyPageContent: Web page raw HTML content for the privacy + // policy page to be analyzed. Useful when the client wants to analyze a + // privacy policy already fetched. + PrivacyPolicyPageContent string `json:"privacyPolicyPageContent,omitempty"` + + // PrivacyPolicyUri: URL for the privacy policy page to be analyzed. + // https://linter.aip.dev/140/uri (Use `uri` instead of `url` in field + // name) + PrivacyPolicyUri string `json:"privacyPolicyUri,omitempty"` + + // ForceSendFields is a list of field names (e.g. + // "PrivacyPolicyPageContent") 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. "PrivacyPolicyPageContent") + // 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 *AnalyzePrivacyPolicyRequest) MarshalJSON() ([]byte, error) { + type NoMethod AnalyzePrivacyPolicyRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// AnalyzePrivacyPolicyResponse: The response proto for +// AnalyzePrivacyPolicy method. +type AnalyzePrivacyPolicyResponse struct { + // DataPurposeAnnotations: List of all data types in the privacy policy. + DataPurposeAnnotations []*PolicyPurposeOfUseAnnotation `json:"dataPurposeAnnotations,omitempty"` + + // DataTypeAnnotations: List of all data types in the privacy policy. + DataTypeAnnotations []*PolicyDataTypeAnnotation `json:"dataTypeAnnotations,omitempty"` + + // HtmlContent: HTML content for the privacy policy page. + HtmlContent string `json:"htmlContent,omitempty"` + + // LastUpdatedDateInfo: Information about the date when the privacy + // policy was last updated. + LastUpdatedDateInfo *LastUpdatedDate `json:"lastUpdatedDateInfo,omitempty"` + + // SectionAnnotations: List of all sections in the privacy policy. + SectionAnnotations []*PolicySectionAnnotation `json:"sectionAnnotations,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. + // "DataPurposeAnnotations") 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. "DataPurposeAnnotations") + // 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 *AnalyzePrivacyPolicyResponse) MarshalJSON() ([]byte, error) { + type NoMethod AnalyzePrivacyPolicyResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// Date: Represents a whole or partial calendar date, such as a +// birthday. The time of day and time zone are either specified +// elsewhere or are insignificant. The date is relative to the Gregorian +// Calendar. This can represent one of the following: * A full date, +// with non-zero year, month, and day values. * A month and day, with a +// zero year (for example, an anniversary). * A year on its own, with a +// zero month and a zero day. * A year and month, with a zero day (for +// example, a credit card expiration date). Related types: * +// google.type.TimeOfDay * google.type.DateTime * +// google.protobuf.Timestamp +type Date struct { + // Day: Day of a month. Must be from 1 to 31 and valid for the year and + // month, or 0 to specify a year by itself or a year and month where the + // day isn't significant. + Day int64 `json:"day,omitempty"` + + // Month: Month of a year. Must be from 1 to 12, or 0 to specify a year + // without a month and day. + Month int64 `json:"month,omitempty"` + + // Year: Year of the date. Must be from 1 to 9999, or 0 to specify a + // date without a year. + Year int64 `json:"year,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Day") 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. "Day") 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 *Date) MarshalJSON() ([]byte, error) { + type NoMethod Date + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// LastUpdatedDate: Information about the date when the privacy policy +// was last updated. +type LastUpdatedDate struct { + // EndOffset: Byte offsets for the end of the date text inside the full + // text. + EndOffset int64 `json:"endOffset,omitempty,string"` + + // LastUpdatedDate: Date when the privacy policy was last updated. + LastUpdatedDate *Date `json:"lastUpdatedDate,omitempty"` + + // StartOffset: Byte offsets for the start of the date text inside the + // full text. + StartOffset int64 `json:"startOffset,omitempty,string"` + + // TextContent: The bytes of actual text content in the section. NOTE: - + // This will correspond to the whole sentence that includes the date. - + // This field might contain HTML and it is not sanitized. + TextContent string `json:"textContent,omitempty"` + + // ForceSendFields is a list of field names (e.g. "EndOffset") 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. "EndOffset") 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 *LastUpdatedDate) MarshalJSON() ([]byte, error) { + type NoMethod LastUpdatedDate + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// Operation: This resource represents a long-running operation that is +// the result of a network API call. +type Operation struct { + // Done: If the value is `false`, it means the operation is still in + // progress. If `true`, the operation is completed, and either `error` + // or `response` is available. + Done bool `json:"done,omitempty"` + + // Error: The error result of the operation in case of failure or + // cancellation. + Error *Status `json:"error,omitempty"` + + // Metadata: Service-specific metadata associated with the operation. It + // typically contains progress information and common metadata such as + // create time. Some services might not provide such metadata. Any + // method that returns a long-running operation should document the + // metadata type, if any. + Metadata googleapi.RawMessage `json:"metadata,omitempty"` + + // Name: The server-assigned name, which is only unique within the same + // service that originally returns it. If you use the default HTTP + // mapping, the `name` should be a resource name ending with + // `operations/{unique_id}`. + Name string `json:"name,omitempty"` + + // Response: The normal response of the operation in case of success. If + // the original method returns no data on success, such as `Delete`, the + // response is `google.protobuf.Empty`. If the original method is + // standard `Get`/`Create`/`Update`, the response should be the + // resource. For other methods, the response should have the type + // `XxxResponse`, where `Xxx` is the original method name. For example, + // if the original method name is `TakeSnapshot()`, the inferred + // response type is `TakeSnapshotResponse`. + Response googleapi.RawMessage `json:"response,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "Done") 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. "Done") 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 *Operation) MarshalJSON() ([]byte, error) { + type NoMethod Operation + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +type PolicyDataTypeAnnotation struct { + // DataType: Type of the data mentioned in the policy. + // + // Possible values: + // "DATA_TYPE_UNSPECIFIED" - Default value. + // "CONTACT_INFO_NAME" - Data type on the privacy policy describing + // Contact Info name. + // "CONTACT_INFO_EMAIL_ADDRESS" - Data type on the privacy policy + // describing Contact Info email address. + // "CONTACT_INFO_PHONE_NUMBER" - Data type on the privacy policy + // describing Contact Info phone number. + // "CONTACT_INFO_MAILING_ADDRESS" - Data type on the privacy policy + // describing Contact Info mailing address. + // "CONTACT_INFO_OTHER" - Data type on the privacy policy describing + // Contact Info other. + // "IDENTITY_INFO_OTHER" - Data type on the privacy policy describing + // Identity Info other. + // "USER_CONTENT_EMAIL_MESSAGES" - Data type on the privacy policy + // describing User Content email messages. + // "USER_CONTENT_TEXT_MESSAGES" - Data type on the privacy policy + // describing User Content text messages. + // "USER_CONTENT_OTHER_IN_APP_MESSAGES" - Data type on the privacy + // policy describing User Content other in-app messages. + // "USER_CONTENT_PHOTOS" - Data type on the privacy policy describing + // User Content photos. + // "USER_CONTENT_VIDEOS" - Data type on the privacy policy describing + // User Content videos. + // "USER_CONTENT_MUSIC_FILES" - Data type on the privacy policy + // describing User Content music files. + // "USER_CONTENT_VOICE_OR_SOUND_RECORDINGS" - Data type on the privacy + // policy describing User Content voice or sound recordings. + // "USER_CONTENT_OTHER_AUDIO_FILES" - Data type on the privacy policy + // describing User Content other audio files. + // "USER_CONTENT_FILES_AND_DOCS" - Data type on the privacy policy + // describing User Content files or documents. + // "USER_CONTENT_GAMEPLAY_DATA" - Data type on the privacy policy + // describing User Content gameplay data. + // "USER_CONTENT_CUSTOMER_SUPPORT" - Data type on the privacy policy + // describing User Content customer support. + // "COOKIES_AND_TRACKING_ELEMENTS" - Data type on the privacy policy + // describing Cookies and other tracking elements, e.g. web beacons. + // "BROWSING_HISTORY" - Data type on the privacy policy describing + // Browsing History. + // "SEARCH_HISTORY" - Data type on the privacy policy describing + // Search History. + // "PURCHASE_HISTORY" - Data type on the privacy policy describing + // Purchase History. + // "PRODUCT_INTERACTION" - Data type on the privacy policy describing + // Product Interaction data. + // "USER_GENERATED_CONTENT_OTHER" - Data type on the privacy policy + // describing other User Generated Content. + // "IN_APP_ACTIONS_OTHER" - Data type on the privacy policy describing + // other User Generated Content. + // "ADVERTISING" - Data type on the privacy policy describing + // Advertising data. + // "APP_CRASH_LOGS" - Data type on the privacy policy describing Crash + // Logs data. + // "APP_DIAGNOSTICS" - Data type on the privacy policy describing App + // Diagnostics data. + // "APP_PERFORMANCE_OTHER" - Data type on the privacy policy + // describing other App Performance data. + // "USER_IDENTIFIERS" - Data type on the privacy policy describing + // User or account-level IDs. + // "DEVICE_IDENTIFIERS" - Data type on the privacy policy describing + // device-level IDs. + // "IP_ADDRESS" - Data type on the privacy policy describing IP + // Addresses. + // "CONTACTS" - Data type on the privacy policy describing Contacts + // data. + // "AUTHENTICATION_DATA" - Data type on the privacy policy describing + // Authentication data, e.g. passwords. + // "CALENDAR_EVENTS_OR_NOTES" - Data type on the privacy policy + // describing Calendar events or notes. + // "HEALTH" - Data type on the privacy policy describing Health data. + // "FITNESS" - Data type on the privacy policy describing Fitness + // data. + // "LOCATION_PRECISE" - Data type on the privacy policy describing + // Precise Location data. + // "LOCATION_COARSE" - Data type on the privacy policy describing + // Coarse Location data. + // "LOCATION_GENERAL" - Data type on the privacy policy describing + // general Location data, without specifying precise or coarse. + // "APPS_ON_DEVICE" - Data type on the privacy policy describing Apps + // on Device. + // "FINANCIAL_PAYMENT_INFO" - Data type on the privacy policy + // describing Financial Payment info. + // "FINANCIAL_CREDIT_INFO" - Data type on the privacy policy + // describing Financial Credit info. + // "FINANCIAL_OTHER" - Data type on the privacy policy describing + // Financial other data. + // "PERSONAL_INFO_RACE_AND_ETHNICITY" - Data type on the privacy + // policy describing a user’s race or ethnicity. + // "PERSONAL_INFO_POLITICAL_OR_RELIGIOUS_BELIEFS" - Data type on the + // privacy policy describing a user’s political or religious beliefs. + // "PERSONAL_INFO_SEXUAL_ORIENTATION" - Data type on the privacy + // policy describing a user’s sexual orientation. + // "PERSONAL_INFO_OTHER" - Data type on the privacy policy describing + // Personal Info other. + // "GENERIC_PERSONAL_INFORMATION" - Data type on the privacy policy + // describing generic personal information, e.g. "we collection your + // personal information." + // "UNSPECIFIED_INFORMATION" - Data type on the privacy policy + // describing information in general with no speicific type, e.g. "we + // collect information you voluntarily provide." + // "OTHER_DATA" - Data type on the privacy policy describing specific + // types of data that are not covered by others labels, or ambiguous + // cases where no clear type exists, e.g. "we collect your movement + // data," which could be location, fitness, or even product interaction, + // depending on the context. + DataType string `json:"dataType,omitempty"` + + // EndOffset: Byte offsets for the end of the data type sentence inside + // the full text. + EndOffset int64 `json:"endOffset,omitempty,string"` + + // Score: Score given by the model representing how confident it was + // regarding this `text_content` being of `data_type`. + Score float64 `json:"score,omitempty"` + + // StartOffset: Byte offsets for the start of the data type sentence + // inside the full text. + StartOffset int64 `json:"startOffset,omitempty,string"` + + // TextContent: Actual text content in the section. This makes it much + // easier to consume the information. NOTE: This field might contain + // HTML and does not guarantee a SafeHtml security contract + // go/safehtmltypecontracts#safehtml. + TextContent string `json:"textContent,omitempty"` + + // ForceSendFields is a list of field names (e.g. "DataType") 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. "DataType") 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 *PolicyDataTypeAnnotation) MarshalJSON() ([]byte, error) { + type NoMethod PolicyDataTypeAnnotation + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +func (s *PolicyDataTypeAnnotation) UnmarshalJSON(data []byte) error { + type NoMethod PolicyDataTypeAnnotation + var s1 struct { + Score gensupport.JSONFloat64 `json:"score"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.Score = float64(s1.Score) + return nil +} + +type PolicyPurposeOfUseAnnotation struct { + // EndOffset: Byte offsets for the end of the purpose of use sentence + // inside the full text. + EndOffset int64 `json:"endOffset,omitempty,string"` + + // PurposeOfUse: Purpose of use mentioned in the policy. + // + // Possible values: + // "PURPOSE_OF_USE_UNSPECIFIED" - Default value. + // "APP_FUNCTIONALITY" - Data is used for general app functions, or + // interface with the user, e.g. customer support. + // "APP_DIAGNOSTICS_AND_PERFORMANCE" - Data is used for minimizing app + // crashes, enabling scalability and performance, etc. + // "FRAUD_PREVENTION_AND_SECURITY" - Data is used for fraud + // prevention, protecting user accounts, or other security purposes. + // "PRODUCT_PERSONALIZATION" - Data is used for + // personalizing/customizing what the user sees. + // "ANALYTICS" - Data is used for evaluating user behavior, measuring + // audience size, etc. + // "DEVELOPERS_COMMUNICATION_AND_MARKETING" - Data is used for sending + // marketing communications directly to your users, notifications, + // reminders, or update notices. + // "THIRD_PARTY_ADVERTISING" - Data is used by a third-party to + // display ads in the app (or elsewhere). + // "GENERAL_ADVERTISING" - Data is used for displaying ads in the app, + // or sharing data with entities who display ads. + // "LEGAL_COMPLIANCE" - Data is used for compliance with legal + // obligations, e.g., regulations, government data requests, law + // enforcement requests in general, etc. + // "MERGERS_AND_ACQUISITIONS" - If a company/organization merges or is + // acquired it transfers users' information to another + // company/organization. + // "OTHER_SPECIFIED_PURPOSE" - Any other specific purposes that are + // not listed above. + // "NO_PURPOSE_MENTIONED" - The purpose of use is not explicitly + // stated or unclear. + PurposeOfUse string `json:"purposeOfUse,omitempty"` + + // Score: Score given by the model representing how confident it was + // regarding this `text_content` being of `purpose_of_use`. + Score float64 `json:"score,omitempty"` + + // StartOffset: Byte offsets for the start of the purpose of use + // sentence inside the full text. + StartOffset int64 `json:"startOffset,omitempty,string"` + + // TextContent: The bytes of actual text content in the sentence that + // mentions the purpose of use. This makes it much easier to consume the + // information. NOTE: This field might contain HTML and does not + // guarantee a SafeHtml security contract + // go/safehtmltypecontracts#safehtml. + TextContent string `json:"textContent,omitempty"` + + // ForceSendFields is a list of field names (e.g. "EndOffset") 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. "EndOffset") 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 *PolicyPurposeOfUseAnnotation) MarshalJSON() ([]byte, error) { + type NoMethod PolicyPurposeOfUseAnnotation + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +func (s *PolicyPurposeOfUseAnnotation) UnmarshalJSON(data []byte) error { + type NoMethod PolicyPurposeOfUseAnnotation + var s1 struct { + Score gensupport.JSONFloat64 `json:"score"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.Score = float64(s1.Score) + return nil +} + +type PolicySectionAnnotation struct { + // EndOffset: Byte offsets for the end of the section inside the full + // text. + EndOffset int64 `json:"endOffset,omitempty,string"` + + // Score: Score given by the model representing how confident it was + // regarding this `text_content` being of `section_type`. + Score float64 `json:"score,omitempty"` + + // SectionType: Type of the high-level category in the policy. + // + // Possible values: + // "SECTION_TYPE_UNSPECIFIED" - Default value. + // "FIRST_PARTY_COLLECTION" - Section of the privacy policy describes + // 1st party collection practices. + // "FIRST_PARTY_USE" - Section of the privacy policy describes 1st + // party use practices. + // "THIRD_PARTY_SHARING" - Section of the privacy policy describes 3rd + // party sharing practices. + // "CHILDREN_RELATED" - Section of the privacy policy describes + // Children related content. + // "DATA_RETENTION" - Section of the privacy policy describes data + // retention practices. + // "PRIVACY_CONTACT" - Section of the privacy policy references + // privacy contact information. + // "RIGHT_TO_DELETE" - Section of the privacy policy describes users' + // right of data deletion. + // "RIGHT_TO_RESTRICT_PROCESSING" - Section of the privacy policy + // about users' right to restrict processing. + // "RIGHT_TO_ACCESS" - Section of the privacy policy about users' + // right to access their data. + // "RIGHT_TO_RECTIFICATION" - Section of the privacy policy about + // users' right to correct inaccuracies. + // "RIGHT_TO_KNOW_ABOUT_SELLING" - Section of the privacy policy about + // users' right to know about information selling. + // "RIGHT_TO_KNOW_ABOUT_SHARING" - Section of the privacy policy about + // users' right to know about information sharing. + // "RIGHT_TO_OPT_OUT_FROM_SELLING" - Section of the privacy policy + // about users' right to opt out from information selling. + // "RIGHT_TO_OPT_OUT_FROM_SHARING" - Section of the privacy policy + // about users' right to opt out from information sharing. + // "METHOD_TO_OPT_OUT_FROM_SELLING_OR_SHARING" - Section of the + // privacy policy about the method to opt out from selling or sharing. + // "AUTHORIZED_AGENT" - Section of the privacy policy about the + // authorized agent designated by user. + // "CCPA_CPRA_REFERENCE" - Section of the privacy policy about the + // mentions of the CCPA or CPRA. + // "DATA_PROTECTION_OFFICER" - Section of the privacy policy about the + // mentions of data protection officer (DPO). + // "DATA_CONTROLLER" - Section of the privacy policy about the + // mentions of a data controller. + // "DO_NOT_SELL" - Section of the privacy policy stating that the + // company does not sell data in general (or as defined by the CCPA), + // without exceptions. + // "GDPR_REFERENCE" - Section of the privacy policy about the mentions + // of the GDPR (General Data Protection Regulation). + // "LAWFUL_LEGAL_BASIS" - Section of the privacy policy about + // lawful/legal basis for data processing. + // "PRIVACY_SHIELD" - Section of the privacy policy about the Privacy + // Shielf framework. + // "RIGHT_TO_LODGE_A_COMPLAINT" - Section of the privacy policy about + // the right to lodge a complaint with a supervisory authority. + // "TRANSFER_MECHANISMS" - Section of the privacy policy about + // transfer mechanisms of data from the EU to third countries + // "NO_CHILDREN_DATA_COLLECTION" - Section of the privacy policy + // stating that the company does not collect data from children. + // "NO_CHILDREN_DATA_SHARING" - Section of the privacy policy stating + // that the company does not share data from children. + // "CHILDREN_INFORMATION_PUBLICITY" - Section of the privacy policy + // stating whether the app allows children to make their personal + // information publicly available. + // "PARENTS_METHOD_OF_INFORMATION_DELETION" - Section of the privacy + // policy stating to parents/caregivers/guardians how they can request + // the deletion of their child's personal information. + // "PARENTS_METHOD_TO_INFORMATION_REVIEW" - Section of the privacy + // policy stating to parents/guardians/caregivers how they can review + // their child's personal information. + // "PARENTS_METHOD_TO_STOP_FURTHER_INFORMATION_COLLECTION_USE" - + // Section of the privacy policy stating to parents/caregivers/guardians + // how they can stop the further collection or use of their child's + // personal information. + // "PARENTS_RIGHT_TO_INFORMATION_DELETION" - Section of the privacy + // policy stating that a parent/caregiver/guardian has the right to + // request the deletion of their child's personal. information. + // "PARENTS_RIGHT_TO_INFORMATION_REVIEW" - Section of the privacy + // policy stating to parents/guardians/caregivers that they have a right + // to review their child's personal information. + // "PARENTS_RIGHT_TO_STOP_FURTHER_INFORMATION_COLLECTION_USE" - + // Section of the privacy policy stating to parents/caregivers/guardians + // that they have the right to stop the further collection or use of + // their child's personal information. + SectionType string `json:"sectionType,omitempty"` + + // StartOffset: Byte offsets for the start of the section inside the + // full text. + StartOffset int64 `json:"startOffset,omitempty,string"` + + // TextContent: Actual text content in the section. This makes it much + // easier to consume the information. NOTE: This field might contain + // HTML and does not guarantee a SafeHtml security contract + // go/safehtmltypecontracts#safehtml. + TextContent string `json:"textContent,omitempty"` + + // ForceSendFields is a list of field names (e.g. "EndOffset") 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. "EndOffset") 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 *PolicySectionAnnotation) MarshalJSON() ([]byte, error) { + type NoMethod PolicySectionAnnotation + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +func (s *PolicySectionAnnotation) UnmarshalJSON(data []byte) error { + type NoMethod PolicySectionAnnotation + var s1 struct { + Score gensupport.JSONFloat64 `json:"score"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.Score = float64(s1.Score) + return nil +} + +// Status: The `Status` type defines a logical error model that is +// suitable for different programming environments, including REST APIs +// and RPC APIs. It is used by gRPC (https://github.com/grpc). Each +// `Status` message contains three pieces of data: error code, error +// message, and error details. You can find out more about this error +// model and how to work with it in the API Design Guide +// (https://cloud.google.com/apis/design/errors). +type Status struct { + // Code: The status code, which should be an enum value of + // google.rpc.Code. + Code int64 `json:"code,omitempty"` + + // Details: A list of messages that carry the error details. There is a + // common set of message types for APIs to use. + Details []googleapi.RawMessage `json:"details,omitempty"` + + // Message: A developer-facing error message, which should be in + // English. Any user-facing error message should be localized and sent + // in the google.rpc.Status.details field, or localized by the client. + Message string `json:"message,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Code") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Code") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *Status) MarshalJSON() ([]byte, error) { + type NoMethod Status + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// method id "checks.accounts.apps.operations.get": + +type AccountsAppsOperationsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Gets the latest state of a long-running operation. Clients can +// use this method to poll the operation result at intervals as +// recommended by the API service. +// +// - name: The name of the operation resource. +func (r *AccountsAppsOperationsService) Get(name string) *AccountsAppsOperationsGetCall { + c := &AccountsAppsOperationsGetCall{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 *AccountsAppsOperationsGetCall) Fields(s ...googleapi.Field) *AccountsAppsOperationsGetCall { + 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 *AccountsAppsOperationsGetCall) IfNoneMatch(entityTag string) *AccountsAppsOperationsGetCall { + 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 *AccountsAppsOperationsGetCall) Context(ctx context.Context) *AccountsAppsOperationsGetCall { + 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 *AccountsAppsOperationsGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *AccountsAppsOperationsGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+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 "checks.accounts.apps.operations.get" call. +// Exactly one of *Operation or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified +// to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *AccountsAppsOperationsGetCall) Do(opts ...googleapi.CallOption) (*Operation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &Operation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.", + // "flatPath": "v1alpha/accounts/{accountsId}/apps/{appsId}/operations/{operationsId}", + // "httpMethod": "GET", + // "id": "checks.accounts.apps.operations.get", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "The name of the operation resource.", + // "location": "path", + // "pattern": "^accounts/[^/]+/apps/[^/]+/operations/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1alpha/{+name}", + // "response": { + // "$ref": "Operation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/xapi.zoo" + // ] + // } + +} + +// method id "checks.privacypolicy.analyze": + +type PrivacypolicyAnalyzeCall struct { + s *Service + analyzeprivacypolicyrequest *AnalyzePrivacyPolicyRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Analyze: Analyzes the privacy policy of the given policy URL or +// content. +func (r *PrivacypolicyService) Analyze(analyzeprivacypolicyrequest *AnalyzePrivacyPolicyRequest) *PrivacypolicyAnalyzeCall { + c := &PrivacypolicyAnalyzeCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.analyzeprivacypolicyrequest = analyzeprivacypolicyrequest + 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 *PrivacypolicyAnalyzeCall) Fields(s ...googleapi.Field) *PrivacypolicyAnalyzeCall { + 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 *PrivacypolicyAnalyzeCall) Context(ctx context.Context) *PrivacypolicyAnalyzeCall { + 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 *PrivacypolicyAnalyzeCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *PrivacypolicyAnalyzeCall) 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.analyzeprivacypolicyrequest) + 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, "v1alpha/privacypolicy:analyze") + 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 "checks.privacypolicy.analyze" call. +// Exactly one of *AnalyzePrivacyPolicyResponse or error will be +// non-nil. Any non-2xx status code is an error. Response headers are in +// either *AnalyzePrivacyPolicyResponse.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 *PrivacypolicyAnalyzeCall) Do(opts ...googleapi.CallOption) (*AnalyzePrivacyPolicyResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &AnalyzePrivacyPolicyResponse{ + 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": "Analyzes the privacy policy of the given policy URL or content.", + // "flatPath": "v1alpha/privacypolicy:analyze", + // "httpMethod": "POST", + // "id": "checks.privacypolicy.analyze", + // "parameterOrder": [], + // "parameters": {}, + // "path": "v1alpha/privacypolicy:analyze", + // "request": { + // "$ref": "AnalyzePrivacyPolicyRequest" + // }, + // "response": { + // "$ref": "AnalyzePrivacyPolicyResponse" + // } + // } + +} diff --git a/contactcenteraiplatform/v1alpha1/contactcenteraiplatform-api.json b/contactcenteraiplatform/v1alpha1/contactcenteraiplatform-api.json index b683e538d9d..9acb59fa745 100644 --- a/contactcenteraiplatform/v1alpha1/contactcenteraiplatform-api.json +++ b/contactcenteraiplatform/v1alpha1/contactcenteraiplatform-api.json @@ -297,6 +297,31 @@ "https://www.googleapis.com/auth/cloud-platform" ] }, + "getAuthentication-config": { + "description": "", + "flatPath": "v1alpha1/projects/{projectsId}/locations/{locationsId}/contactCenters/{contactCentersId}/authentication-config", + "httpMethod": "GET", + "id": "contactcenteraiplatform.projects.locations.contactCenters.getAuthentication-config", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the AuthenticationConfig resource. Format: projects/{project}/locations/{location}/contactCenters/{contact_center}/authentication-config", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/contactCenters/[^/]+/authentication-config$", + "required": true, + "type": "string" + } + }, + "path": "v1alpha1/{+name}", + "response": { + "$ref": "AuthenticationConfig" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, "list": { "description": "Lists ContactCenters in a given project and location.", "flatPath": "v1alpha1/projects/{projectsId}/locations/{locationsId}/contactCenters", @@ -381,6 +406,40 @@ "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ] + }, + "updateAuthentication-config": { + "description": "", + "flatPath": "v1alpha1/projects/{projectsId}/locations/{locationsId}/contactCenters/{contactCentersId}/authentication-config", + "httpMethod": "PATCH", + "id": "contactcenteraiplatform.projects.locations.contactCenters.updateAuthentication-config", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Name of authentication config. Format: projects/{project}/locations/{location}/contactCenters/{contact_center}/authentication-config", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/contactCenters/[^/]+/authentication-config$", + "required": true, + "type": "string" + }, + "updateMask": { + "description": "Required. Indicates which fields in the provided authentication config to update. Must be specified and non-empty.", + "format": "google-fieldmask", + "location": "query", + "type": "string" + } + }, + "path": "v1alpha1/{+name}", + "request": { + "$ref": "AuthenticationConfig" + }, + "response": { + "$ref": "AuthenticationConfig" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] } } }, @@ -512,7 +571,7 @@ } } }, - "revision": "20230424", + "revision": "20230615", "rootUrl": "https://contactcenteraiplatform.googleapis.com/", "schemas": { "AdminUser": { @@ -530,6 +589,31 @@ }, "type": "object" }, + "AuthenticationConfig": { + "id": "AuthenticationConfig", + "properties": { + "basicAuthSetting": { + "$ref": "BasicAuthConfig" + }, + "name": { + "description": "Name of authentication config. Format: projects/{project}/locations/{location}/contactCenters/{contact_center}/authentication-config", + "type": "string" + }, + "samlSetting": { + "$ref": "SamlConfig" + } + }, + "type": "object" + }, + "BasicAuthConfig": { + "id": "BasicAuthConfig", + "properties": { + "enabled": { + "type": "boolean" + } + }, + "type": "object" + }, "CancelOperationRequest": { "description": "The request message for Operations.CancelOperation.", "id": "CancelOperationRequest", @@ -652,6 +736,50 @@ "properties": {}, "type": "object" }, + "GoogleCloudCommonOperationMetadata": { + "description": "Represents the metadata of the long-running operation.", + "id": "GoogleCloudCommonOperationMetadata", + "properties": { + "apiVersion": { + "description": "Output only. API version used to start the operation.", + "readOnly": true, + "type": "string" + }, + "cancelRequested": { + "description": "Output only. Identifies whether the user has requested cancellation of the operation. Operations that have been cancelled successfully have Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.", + "readOnly": true, + "type": "boolean" + }, + "createTime": { + "description": "Output only. The time the operation was created.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "endTime": { + "description": "Output only. The time the operation finished running.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "statusDetail": { + "description": "Output only. Human-readable status of the operation, if any.", + "readOnly": true, + "type": "string" + }, + "target": { + "description": "Output only. Server-defined resource path for the target of the operation.", + "readOnly": true, + "type": "string" + }, + "verb": { + "description": "Output only. Name of the verb executed by the operation.", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, "InstanceConfig": { "description": "Message storing the instance configuration.", "id": "InstanceConfig", @@ -665,7 +793,8 @@ "STANDARD_LARGE", "STANDARD_XLARGE", "STANDARD_2XLARGE", - "STANDARD_3XLARGE" + "STANDARD_3XLARGE", + "DEV_XSMALL" ], "enumDescriptions": [ "The default value. This value is used if the state is omitted.", @@ -674,7 +803,8 @@ "Instance Size STANDARD_LARGE.", "Instance Size STANDARD_XLARGE.", "Instance Size STANDARD_2XLARGE.", - "Instance Size STANDARD_3XLARGE." + "Instance Size STANDARD_3XLARGE.", + "Instance Size DEV_EXTRA_SMALL." ], "type": "string" } @@ -882,7 +1012,8 @@ "STANDARD_LARGE", "STANDARD_XLARGE", "STANDARD_2XLARGE", - "STANDARD_3XLARGE" + "STANDARD_3XLARGE", + "DEV_XSMALL" ], "enumDescriptions": [ "The default value. This value is used if the state is omitted.", @@ -891,7 +1022,8 @@ "Instance Size STANDARD_LARGE.", "Instance Size STANDARD_XLARGE.", "Instance Size STANDARD_2XLARGE.", - "Instance Size STANDARD_3XLARGE." + "Instance Size STANDARD_3XLARGE.", + "Instance Size DEV_EXTRA_SMALL." ], "type": "string" } @@ -921,6 +1053,28 @@ }, "type": "object" }, + "SamlConfig": { + "id": "SamlConfig", + "properties": { + "cert": { + "description": "X.509 public certificate for IdP", + "type": "string" + }, + "emailMapping": { + "description": "IdP field that maps to the user’s email address", + "type": "string" + }, + "entityId": { + "description": "The entity ID for the identity provider. Example: https://[IDP Domain]/saml/metadata", + "type": "string" + }, + "loginUri": { + "description": "The sso login url. Example: https://[IDP Domain]/saml/sso/login", + "type": "string" + } + }, + "type": "object" + }, "Status": { "description": "The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors).", "id": "Status", diff --git a/contactcenteraiplatform/v1alpha1/contactcenteraiplatform-gen.go b/contactcenteraiplatform/v1alpha1/contactcenteraiplatform-gen.go index 4378ed1ceb5..54db85bc724 100644 --- a/contactcenteraiplatform/v1alpha1/contactcenteraiplatform-gen.go +++ b/contactcenteraiplatform/v1alpha1/contactcenteraiplatform-gen.go @@ -215,6 +215,70 @@ func (s *AdminUser) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +type AuthenticationConfig struct { + BasicAuthSetting *BasicAuthConfig `json:"basicAuthSetting,omitempty"` + + // Name: Name of authentication config. Format: + // projects/{project}/locations/{location}/contactCenters/{contact_center + // }/authentication-config + Name string `json:"name,omitempty"` + + SamlSetting *SamlConfig `json:"samlSetting,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "BasicAuthSetting") 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. "BasicAuthSetting") 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 *AuthenticationConfig) MarshalJSON() ([]byte, error) { + type NoMethod AuthenticationConfig + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +type BasicAuthConfig struct { + 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 *BasicAuthConfig) MarshalJSON() ([]byte, error) { + type NoMethod BasicAuthConfig + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // CancelOperationRequest: The request message for // Operations.CancelOperation. type CancelOperationRequest struct { @@ -356,6 +420,58 @@ type Empty struct { googleapi.ServerResponse `json:"-"` } +// GoogleCloudCommonOperationMetadata: Represents the metadata of the +// long-running operation. +type GoogleCloudCommonOperationMetadata struct { + // ApiVersion: Output only. API version used to start the operation. + ApiVersion string `json:"apiVersion,omitempty"` + + // CancelRequested: Output only. Identifies whether the user has + // requested cancellation of the operation. Operations that have been + // cancelled successfully have Operation.error value with a + // google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`. + CancelRequested bool `json:"cancelRequested,omitempty"` + + // CreateTime: Output only. The time the operation was created. + CreateTime string `json:"createTime,omitempty"` + + // EndTime: Output only. The time the operation finished running. + EndTime string `json:"endTime,omitempty"` + + // StatusDetail: Output only. Human-readable status of the operation, if + // any. + StatusDetail string `json:"statusDetail,omitempty"` + + // Target: Output only. Server-defined resource path for the target of + // the operation. + Target string `json:"target,omitempty"` + + // Verb: Output only. Name of the verb executed by the operation. + Verb string `json:"verb,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ApiVersion") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "ApiVersion") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudCommonOperationMetadata) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudCommonOperationMetadata + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // InstanceConfig: Message storing the instance configuration. type InstanceConfig struct { // InstanceSize: The instance size of this the instance configuration. @@ -369,6 +485,7 @@ type InstanceConfig struct { // "STANDARD_XLARGE" - Instance Size STANDARD_XLARGE. // "STANDARD_2XLARGE" - Instance Size STANDARD_2XLARGE. // "STANDARD_3XLARGE" - Instance Size STANDARD_3XLARGE. + // "DEV_XSMALL" - Instance Size DEV_EXTRA_SMALL. InstanceSize string `json:"instanceSize,omitempty"` // ForceSendFields is a list of field names (e.g. "InstanceSize") to @@ -697,6 +814,7 @@ type Quota struct { // "STANDARD_XLARGE" - Instance Size STANDARD_XLARGE. // "STANDARD_2XLARGE" - Instance Size STANDARD_2XLARGE. // "STANDARD_3XLARGE" - Instance Size STANDARD_3XLARGE. + // "DEV_XSMALL" - Instance Size DEV_EXTRA_SMALL. ContactCenterInstanceSize string `json:"contactCenterInstanceSize,omitempty"` // ForceSendFields is a list of field names (e.g. @@ -761,6 +879,44 @@ func (s *SAMLParams) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +type SamlConfig struct { + // Cert: X.509 public certificate for IdP + Cert string `json:"cert,omitempty"` + + // EmailMapping: IdP field that maps to the user’s email address + EmailMapping string `json:"emailMapping,omitempty"` + + // EntityId: The entity ID for the identity provider. Example: + // https://[IDP Domain]/saml/metadata + EntityId string `json:"entityId,omitempty"` + + // LoginUri: The sso login url. Example: https://[IDP + // Domain]/saml/sso/login + LoginUri string `json:"loginUri,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Cert") 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. "Cert") 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 *SamlConfig) MarshalJSON() ([]byte, error) { + type NoMethod SamlConfig + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // Status: The `Status` type defines a logical error model that is // suitable for different programming environments, including REST APIs // and RPC APIs. It is used by gRPC (https://github.com/grpc). Each @@ -1826,6 +1982,154 @@ func (c *ProjectsLocationsContactCentersGetCall) Do(opts ...googleapi.CallOption } +// method id "contactcenteraiplatform.projects.locations.contactCenters.getAuthentication-config": + +type ProjectsLocationsContactCentersGetAuthenticationConfigCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// GetAuthenticationConfig: +// +// - name: The name of the AuthenticationConfig resource. Format: +// projects/{project}/locations/{location}/contactCenters/{contact_cent +// er}/authentication-config. +func (r *ProjectsLocationsContactCentersService) GetAuthenticationConfig(name string) *ProjectsLocationsContactCentersGetAuthenticationConfigCall { + c := &ProjectsLocationsContactCentersGetAuthenticationConfigCall{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 *ProjectsLocationsContactCentersGetAuthenticationConfigCall) Fields(s ...googleapi.Field) *ProjectsLocationsContactCentersGetAuthenticationConfigCall { + 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 *ProjectsLocationsContactCentersGetAuthenticationConfigCall) IfNoneMatch(entityTag string) *ProjectsLocationsContactCentersGetAuthenticationConfigCall { + 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 *ProjectsLocationsContactCentersGetAuthenticationConfigCall) Context(ctx context.Context) *ProjectsLocationsContactCentersGetAuthenticationConfigCall { + 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 *ProjectsLocationsContactCentersGetAuthenticationConfigCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsContactCentersGetAuthenticationConfigCall) 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, "v1alpha1/{+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 "contactcenteraiplatform.projects.locations.contactCenters.getAuthentication-config" call. +// Exactly one of *AuthenticationConfig or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *AuthenticationConfig.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 *ProjectsLocationsContactCentersGetAuthenticationConfigCall) Do(opts ...googleapi.CallOption) (*AuthenticationConfig, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &AuthenticationConfig{ + 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": "", + // "flatPath": "v1alpha1/projects/{projectsId}/locations/{locationsId}/contactCenters/{contactCentersId}/authentication-config", + // "httpMethod": "GET", + // "id": "contactcenteraiplatform.projects.locations.contactCenters.getAuthentication-config", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The name of the AuthenticationConfig resource. Format: projects/{project}/locations/{location}/contactCenters/{contact_center}/authentication-config", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/contactCenters/[^/]+/authentication-config$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1alpha1/{+name}", + // "response": { + // "$ref": "AuthenticationConfig" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + // method id "contactcenteraiplatform.projects.locations.contactCenters.list": type ProjectsLocationsContactCentersListCall struct { @@ -2224,6 +2528,164 @@ func (c *ProjectsLocationsContactCentersPatchCall) Do(opts ...googleapi.CallOpti } +// method id "contactcenteraiplatform.projects.locations.contactCenters.updateAuthentication-config": + +type ProjectsLocationsContactCentersUpdateAuthenticationConfigCall struct { + s *Service + name string + authenticationconfig *AuthenticationConfig + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// UpdateAuthenticationConfig: +// +// - name: Name of authentication config. Format: +// projects/{project}/locations/{location}/contactCenters/{contact_cent +// er}/authentication-config. +func (r *ProjectsLocationsContactCentersService) UpdateAuthenticationConfig(name string, authenticationconfig *AuthenticationConfig) *ProjectsLocationsContactCentersUpdateAuthenticationConfigCall { + c := &ProjectsLocationsContactCentersUpdateAuthenticationConfigCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.authenticationconfig = authenticationconfig + return c +} + +// UpdateMask sets the optional parameter "updateMask": Required. +// Indicates which fields in the provided authentication config to +// update. Must be specified and non-empty. +func (c *ProjectsLocationsContactCentersUpdateAuthenticationConfigCall) UpdateMask(updateMask string) *ProjectsLocationsContactCentersUpdateAuthenticationConfigCall { + 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 *ProjectsLocationsContactCentersUpdateAuthenticationConfigCall) Fields(s ...googleapi.Field) *ProjectsLocationsContactCentersUpdateAuthenticationConfigCall { + 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 *ProjectsLocationsContactCentersUpdateAuthenticationConfigCall) Context(ctx context.Context) *ProjectsLocationsContactCentersUpdateAuthenticationConfigCall { + 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 *ProjectsLocationsContactCentersUpdateAuthenticationConfigCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsContactCentersUpdateAuthenticationConfigCall) 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.authenticationconfig) + 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, "v1alpha1/{+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 "contactcenteraiplatform.projects.locations.contactCenters.updateAuthentication-config" call. +// Exactly one of *AuthenticationConfig or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *AuthenticationConfig.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 *ProjectsLocationsContactCentersUpdateAuthenticationConfigCall) Do(opts ...googleapi.CallOption) (*AuthenticationConfig, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &AuthenticationConfig{ + 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": "", + // "flatPath": "v1alpha1/projects/{projectsId}/locations/{locationsId}/contactCenters/{contactCentersId}/authentication-config", + // "httpMethod": "PATCH", + // "id": "contactcenteraiplatform.projects.locations.contactCenters.updateAuthentication-config", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Name of authentication config. Format: projects/{project}/locations/{location}/contactCenters/{contact_center}/authentication-config", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/contactCenters/[^/]+/authentication-config$", + // "required": true, + // "type": "string" + // }, + // "updateMask": { + // "description": "Required. Indicates which fields in the provided authentication config to update. Must be specified and non-empty.", + // "format": "google-fieldmask", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1alpha1/{+name}", + // "request": { + // "$ref": "AuthenticationConfig" + // }, + // "response": { + // "$ref": "AuthenticationConfig" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + // method id "contactcenteraiplatform.projects.locations.operations.cancel": type ProjectsLocationsOperationsCancelCall struct { diff --git a/content/v2.1/content-api.json b/content/v2.1/content-api.json index 4e7744be4cf..9cc952d6bc6 100644 --- a/content/v2.1/content-api.json +++ b/content/v2.1/content-api.json @@ -1822,38 +1822,6 @@ } } }, - "customers": { - "methods": { - "create": { - "description": "Allows uploading one customer information entry. Adding a customer with loyalty data enables the customer to see personalized loyalty annotations on search. Uploading a previously existing customer will overwrite the old entry.", - "flatPath": "{merchantId}/customers", - "httpMethod": "POST", - "id": "content.customers.create", - "parameterOrder": [ - "merchantId" - ], - "parameters": { - "merchantId": { - "description": "Required. The ID of the account that owns the customer information.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - } - }, - "path": "{merchantId}/customers", - "request": { - "$ref": "Customer" - }, - "response": { - "$ref": "Customer" - }, - "scopes": [ - "https://www.googleapis.com/auth/content" - ] - } - } - }, "datafeeds": { "methods": { "custombatch": { @@ -6303,7 +6271,7 @@ } } }, - "revision": "20230605", + "revision": "20230613", "rootUrl": "https://shoppingcontent.googleapis.com/", "schemas": { "Account": { @@ -8256,32 +8224,6 @@ }, "type": "object" }, - "Customer": { - "description": "The object representing a customer to update data for. Includes a customer identifier (such as email address) and any associated metadata to add. LoyaltyData triggers adding customer data for the purpose of loyalty personalization.", - "id": "Customer", - "properties": { - "emailAddress": { - "description": "The customer's email address. No extra string processing needed.", - "type": "string" - }, - "loyaltyData": { - "$ref": "CustomerLoyaltyData", - "description": "Loyalty data associated with the customer." - } - }, - "type": "object" - }, - "CustomerLoyaltyData": { - "description": "The loyalty data of the customer.", - "id": "CustomerLoyaltyData", - "properties": { - "loyaltyTier": { - "description": "The tier information for the given user. Can be an empty string.", - "type": "string" - } - }, - "type": "object" - }, "CustomerReturnReason": { "id": "CustomerReturnReason", "properties": { diff --git a/content/v2.1/content-gen.go b/content/v2.1/content-gen.go index 6bab3e2c2e2..706f8145ce7 100644 --- a/content/v2.1/content-gen.go +++ b/content/v2.1/content-gen.go @@ -126,7 +126,6 @@ func New(client *http.Client) (*APIService, error) { s.Collectionstatuses = NewCollectionstatusesService(s) s.Conversionsources = NewConversionsourcesService(s) s.Csses = NewCssesService(s) - s.Customers = NewCustomersService(s) s.Datafeeds = NewDatafeedsService(s) s.Datafeedstatuses = NewDatafeedstatusesService(s) s.Freelistingsprogram = NewFreelistingsprogramService(s) @@ -180,8 +179,6 @@ type APIService struct { Csses *CssesService - Customers *CustomersService - Datafeeds *DatafeedsService Datafeedstatuses *DatafeedstatusesService @@ -356,15 +353,6 @@ type CssesService struct { s *APIService } -func NewCustomersService(s *APIService) *CustomersService { - rs := &CustomersService{s: s} - return rs -} - -type CustomersService struct { - s *APIService -} - func NewDatafeedsService(s *APIService) *DatafeedsService { rs := &DatafeedsService{s: s} return rs @@ -3857,74 +3845,6 @@ func (s *CustomAttribute) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// Customer: The object representing a customer to update data for. -// Includes a customer identifier (such as email address) and any -// associated metadata to add. LoyaltyData triggers adding customer data -// for the purpose of loyalty personalization. -type Customer struct { - // EmailAddress: The customer's email address. No extra string - // processing needed. - EmailAddress string `json:"emailAddress,omitempty"` - - // LoyaltyData: Loyalty data associated with the customer. - LoyaltyData *CustomerLoyaltyData `json:"loyaltyData,omitempty"` - - // ServerResponse contains the HTTP response code and headers from the - // server. - googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "EmailAddress") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "EmailAddress") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. - NullFields []string `json:"-"` -} - -func (s *Customer) MarshalJSON() ([]byte, error) { - type NoMethod Customer - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// CustomerLoyaltyData: The loyalty data of the customer. -type CustomerLoyaltyData struct { - // LoyaltyTier: The tier information for the given user. Can be an empty - // string. - LoyaltyTier string `json:"loyaltyTier,omitempty"` - - // ForceSendFields is a list of field names (e.g. "LoyaltyTier") 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. "LoyaltyTier") 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 *CustomerLoyaltyData) MarshalJSON() ([]byte, error) { - type NoMethod CustomerLoyaltyData - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - type CustomerReturnReason struct { // Description: Description of the reason. Description string `json:"description,omitempty"` @@ -28260,152 +28180,6 @@ func (c *CssesUpdatelabelsCall) Do(opts ...googleapi.CallOption) (*Css, error) { } -// method id "content.customers.create": - -type CustomersCreateCall struct { - s *APIService - merchantId int64 - customer *Customer - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// Create: Allows uploading one customer information entry. Adding a -// customer with loyalty data enables the customer to see personalized -// loyalty annotations on search. Uploading a previously existing -// customer will overwrite the old entry. -// -// - merchantId: The ID of the account that owns the customer -// information. -func (r *CustomersService) Create(merchantId int64, customer *Customer) *CustomersCreateCall { - c := &CustomersCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.merchantId = merchantId - c.customer = customer - return c -} - -// Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. -func (c *CustomersCreateCall) Fields(s ...googleapi.Field) *CustomersCreateCall { - 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 *CustomersCreateCall) Context(ctx context.Context) *CustomersCreateCall { - 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 *CustomersCreateCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *CustomersCreateCall) 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.customer) - 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, "{merchantId}/customers") - 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{ - "merchantId": strconv.FormatInt(c.merchantId, 10), - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "content.customers.create" call. -// Exactly one of *Customer or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Customer.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 *CustomersCreateCall) Do(opts ...googleapi.CallOption) (*Customer, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &Customer{ - 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": "Allows uploading one customer information entry. Adding a customer with loyalty data enables the customer to see personalized loyalty annotations on search. Uploading a previously existing customer will overwrite the old entry.", - // "flatPath": "{merchantId}/customers", - // "httpMethod": "POST", - // "id": "content.customers.create", - // "parameterOrder": [ - // "merchantId" - // ], - // "parameters": { - // "merchantId": { - // "description": "Required. The ID of the account that owns the customer information.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "{merchantId}/customers", - // "request": { - // "$ref": "Customer" - // }, - // "response": { - // "$ref": "Customer" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/content" - // ] - // } - -} - // method id "content.datafeeds.custombatch": type DatafeedsCustombatchCall struct { diff --git a/discoveryengine/v1alpha/discoveryengine-api.json b/discoveryengine/v1alpha/discoveryengine-api.json index 428334d9f38..8ab2db675ad 100644 --- a/discoveryengine/v1alpha/discoveryengine-api.json +++ b/discoveryengine/v1alpha/discoveryengine-api.json @@ -720,6 +720,34 @@ "https://www.googleapis.com/auth/cloud-platform" ] }, + "purge": { + "description": "Deletes permanently all user events specified by the filter provided. Depending on the number of events specified by the filter, this operation could take hours or days to complete. To test a filter, use the list command first.", + "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/collections/{collectionsId}/dataStores/{dataStoresId}/userEvents:purge", + "httpMethod": "POST", + "id": "discoveryengine.projects.locations.collections.dataStores.userEvents.purge", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "Required. The resource name of the catalog under which the events are created. The format is `projects/${projectId}/locations/global/collections/{$collectionId}/dataStores/${dataStoreId}`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/collections/[^/]+/dataStores/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1alpha/{+parent}/userEvents:purge", + "request": { + "$ref": "GoogleCloudDiscoveryengineV1alphaPurgeUserEventsRequest" + }, + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, "write": { "description": "Writes a single user event.", "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/collections/{collectionsId}/dataStores/{dataStoresId}/userEvents:write", @@ -1433,6 +1461,34 @@ "https://www.googleapis.com/auth/cloud-platform" ] }, + "purge": { + "description": "Deletes permanently all user events specified by the filter provided. Depending on the number of events specified by the filter, this operation could take hours or days to complete. To test a filter, use the list command first.", + "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/dataStores/{dataStoresId}/userEvents:purge", + "httpMethod": "POST", + "id": "discoveryengine.projects.locations.dataStores.userEvents.purge", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "Required. The resource name of the catalog under which the events are created. The format is `projects/${projectId}/locations/global/collections/{$collectionId}/dataStores/${dataStoreId}`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/dataStores/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1alpha/{+parent}/userEvents:purge", + "request": { + "$ref": "GoogleCloudDiscoveryengineV1alphaPurgeUserEventsRequest" + }, + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, "write": { "description": "Writes a single user event.", "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/dataStores/{dataStoresId}/userEvents:write", @@ -1610,7 +1666,7 @@ } } }, - "revision": "20230525", + "revision": "20230620", "rootUrl": "https://discoveryengine.googleapis.com/", "schemas": { "GoogleApiHttpBody": { @@ -2062,11 +2118,11 @@ "id": "GoogleCloudDiscoveryengineV1alphaDocumentInfo", "properties": { "id": { - "description": "Required. The Document resource ID.", + "description": "The Document resource ID.", "type": "string" }, "name": { - "description": "Required. The Document resource full name, of the form: `projects/{project_id}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}/branches/{branch_id}/documents/{document_id}`", + "description": "The Document resource full name, of the form: `projects/{project_id}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}/branches/{branch_id}/documents/{document_id}`", "type": "string" }, "promotionIds": { @@ -2082,7 +2138,7 @@ "type": "integer" }, "uri": { - "description": "Required. The Document url - only allowed for DataStores with content_config PUBLIC_WEBSITE.", + "description": "The Document url - only allowed for DataStores with content_config PUBLIC_WEBSITE.", "type": "string" } }, @@ -2093,7 +2149,7 @@ "id": "GoogleCloudDiscoveryengineV1alphaGcsSource", "properties": { "dataSchema": { - "description": "The schema to use when parsing the data from the source. Supported values for document imports: * `document` (default): One JSON Document per line. Each document must have a valid Document.id. * `content`: Unstructured data (e.g. PDF, HTML). Each file matched by `input_uris` will become a document, with the ID set to the first 128 bits of SHA256(URI) encoded as a hex string. * `custom`: One custom data JSON per row in arbitrary format that conforms the defined Schema of the data store. This can only be used by the GENERIC Data Store vertical. Supported values for user even imports: * `user_event` (default): One JSON UserEvent per line.", + "description": "The schema to use when parsing the data from the source. Supported values for document imports: * `document` (default): One JSON Document per line. Each document must have a valid Document.id. * `content`: Unstructured data (e.g. PDF, HTML). Each file matched by `input_uris` will become a document, with the ID set to the first 128 bits of SHA256(URI) encoded as a hex string. * `custom`: One custom data JSON per row in arbitrary format that conforms the defined Schema of the data store. This can only be used by the GENERIC Data Store vertical. * `csv`: A CSV file with header conforming the defined Schema of the data store. Each entry after the header will be imported as a Document. This can only be used by the GENERIC Data Store vertical. Supported values for user even imports: * `user_event` (default): One JSON UserEvent per line.", "type": "string" }, "inputUris": { @@ -2138,7 +2194,7 @@ "id": "GoogleCloudDiscoveryengineV1alphaImportDocumentsRequest", "properties": { "autoGenerateIds": { - "description": "Whether to automatically generate IDs for the documents if absent. If set to `true`, Document.ids are automatically generated based on the hash of the payload, where IDs may not be consistent during multiple imports. In which case ReconciliationMode.FULL is highly recommended to avoid duplicate contents. If unset or set to `false`, Document.ids have to be specified using id_field, otherwises, documents without IDs will fail to be imported. Only set this field when using GcsSource or BigQuerySource, and when GcsSource.data_schema or BigQuerySource.data_schema is `custom`. Otherwise, an INVALID_ARGUMENT error is thrown.", + "description": "Whether to automatically generate IDs for the documents if absent. If set to `true`, Document.ids are automatically generated based on the hash of the payload, where IDs may not be consistent during multiple imports. In which case ReconciliationMode.FULL is highly recommended to avoid duplicate contents. If unset or set to `false`, Document.ids have to be specified using id_field, otherwises, documents without IDs will fail to be imported. Only set this field when using GcsSource or BigQuerySource, and when GcsSource.data_schema or BigQuerySource.data_schema is `custom` or `csv`. Otherwise, an INVALID_ARGUMENT error is thrown.", "type": "boolean" }, "bigquerySource": { @@ -2254,7 +2310,7 @@ "properties": { "bigquerySource": { "$ref": "GoogleCloudDiscoveryengineV1alphaBigQuerySource", - "description": "Required. BigQuery input source." + "description": "BigQuery input source." }, "errorConfig": { "$ref": "GoogleCloudDiscoveryengineV1alphaImportErrorConfig", @@ -2262,11 +2318,11 @@ }, "gcsSource": { "$ref": "GoogleCloudDiscoveryengineV1alphaGcsSource", - "description": "Required. Cloud Storage location for the input content." + "description": "Cloud Storage location for the input content." }, "inlineSource": { "$ref": "GoogleCloudDiscoveryengineV1alphaImportUserEventsRequestInlineSource", - "description": "Required. The Inline source for the input content for UserEvents." + "description": "The Inline source for the input content for UserEvents." } }, "type": "object" @@ -2457,6 +2513,60 @@ }, "type": "object" }, + "GoogleCloudDiscoveryengineV1alphaPurgeUserEventsMetadata": { + "description": "Metadata related to the progress of the PurgeUserEvents operation. This will be returned by the google.longrunning.Operation.metadata field.", + "id": "GoogleCloudDiscoveryengineV1alphaPurgeUserEventsMetadata", + "properties": { + "createTime": { + "description": "Operation create time.", + "format": "google-datetime", + "type": "string" + }, + "failureCount": { + "description": "Count of entries that encountered errors while processing.", + "format": "int64", + "type": "string" + }, + "successCount": { + "description": "Count of entries that were deleted successfully.", + "format": "int64", + "type": "string" + }, + "updateTime": { + "description": "Operation last update time. If the operation is done, this is also the finish time.", + "format": "google-datetime", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudDiscoveryengineV1alphaPurgeUserEventsRequest": { + "description": "Request message for PurgeUserEvents method.", + "id": "GoogleCloudDiscoveryengineV1alphaPurgeUserEventsRequest", + "properties": { + "filter": { + "description": "Required. The filter string to specify the events to be deleted with a length limit of 5,000 characters. The eligible fields for filtering are: * `eventType`: Double quoted UserEvent.event_type string. * `eventTime`: in ISO 8601 \"zulu\" format. * `userPseudoId`: Double quoted string. Specifying this will delete all events associated with a visitor. * `userId`: Double quoted string. Specifying this will delete all events associated with a user. Examples: * Deleting all events in a time range: `eventTime \u003e \"2012-04-23T18:25:43.511Z\" eventTime \u003c \"2012-04-23T18:30:43.511Z\"` * Deleting specific eventType: `eventType = \"search\"` * Deleting all events for a specific visitor: `userPseudoId = \"visitor1024\"` * Deleting all events inside a DataStore: `*` The filtering fields are assumed to have an implicit AND.", + "type": "string" + }, + "force": { + "description": "The `force` field is currently not supported. Purge user event requests will permanently delete all purgeable events. Once the development is complete: If `force` is set to false, the method will return the expected purge count without deleting any user events. This field will default to false if not included in the request.", + "type": "boolean" + } + }, + "type": "object" + }, + "GoogleCloudDiscoveryengineV1alphaPurgeUserEventsResponse": { + "description": "Response of the PurgeUserEventsRequest. If the long running operation is successfully done, then this message is returned by the google.longrunning.Operations.response field.", + "id": "GoogleCloudDiscoveryengineV1alphaPurgeUserEventsResponse", + "properties": { + "purgeCount": { + "description": "The total count of events purged as a result of the operation.", + "format": "int64", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudDiscoveryengineV1alphaRecommendRequest": { "description": "Request message for Recommend method.", "id": "GoogleCloudDiscoveryengineV1alphaRecommendRequest", diff --git a/discoveryengine/v1alpha/discoveryengine-gen.go b/discoveryengine/v1alpha/discoveryengine-gen.go index 379a4ca0eef..21eee7cf7fb 100644 --- a/discoveryengine/v1alpha/discoveryengine-gen.go +++ b/discoveryengine/v1alpha/discoveryengine-gen.go @@ -1329,10 +1329,10 @@ func (s *GoogleCloudDiscoveryengineV1alphaDocument) MarshalJSON() ([]byte, error // GoogleCloudDiscoveryengineV1alphaDocumentInfo: Detailed document // information associated with a user event. type GoogleCloudDiscoveryengineV1alphaDocumentInfo struct { - // Id: Required. The Document resource ID. + // Id: The Document resource ID. Id string `json:"id,omitempty"` - // Name: Required. The Document resource full name, of the form: + // Name: The Document resource full name, of the form: // `projects/{project_id}/locations/{location}/collections/{collection_id // }/dataStores/{data_store_id}/branches/{branch_id}/documents/{document_ // id}` @@ -1348,7 +1348,7 @@ type GoogleCloudDiscoveryengineV1alphaDocumentInfo struct { // events of the following event types: * `add-to-cart` * `purchase` Quantity int64 `json:"quantity,omitempty"` - // Uri: Required. The Document url - only allowed for DataStores with + // Uri: The Document url - only allowed for DataStores with // content_config PUBLIC_WEBSITE. Uri string `json:"uri,omitempty"` @@ -1386,6 +1386,9 @@ type GoogleCloudDiscoveryengineV1alphaGcsSource struct { // bits of SHA256(URI) encoded as a hex string. * `custom`: One custom // data JSON per row in arbitrary format that conforms the defined // Schema of the data store. This can only be used by the GENERIC Data + // Store vertical. * `csv`: A CSV file with header conforming the + // defined Schema of the data store. Each entry after the header will be + // imported as a Document. This can only be used by the GENERIC Data // Store vertical. Supported values for user even imports: * // `user_event` (default): One JSON UserEvent per line. DataSchema string `json:"dataSchema,omitempty"` @@ -1475,7 +1478,7 @@ type GoogleCloudDiscoveryengineV1alphaImportDocumentsRequest struct { // specified using id_field, otherwises, documents without IDs will fail // to be imported. Only set this field when using GcsSource or // BigQuerySource, and when GcsSource.data_schema or - // BigQuerySource.data_schema is `custom`. Otherwise, an + // BigQuerySource.data_schema is `custom` or `csv`. Otherwise, an // INVALID_ARGUMENT error is thrown. AutoGenerateIds bool `json:"autoGenerateIds,omitempty"` @@ -1690,18 +1693,17 @@ func (s *GoogleCloudDiscoveryengineV1alphaImportUserEventsMetadata) MarshalJSON( // GoogleCloudDiscoveryengineV1alphaImportUserEventsRequest: Request // message for the ImportUserEvents request. type GoogleCloudDiscoveryengineV1alphaImportUserEventsRequest struct { - // BigquerySource: Required. BigQuery input source. + // BigquerySource: BigQuery input source. BigquerySource *GoogleCloudDiscoveryengineV1alphaBigQuerySource `json:"bigquerySource,omitempty"` // ErrorConfig: The desired location of errors incurred during the // Import. Cannot be set for inline user event imports. ErrorConfig *GoogleCloudDiscoveryengineV1alphaImportErrorConfig `json:"errorConfig,omitempty"` - // GcsSource: Required. Cloud Storage location for the input content. + // GcsSource: Cloud Storage location for the input content. GcsSource *GoogleCloudDiscoveryengineV1alphaGcsSource `json:"gcsSource,omitempty"` - // InlineSource: Required. The Inline source for the input content for - // UserEvents. + // InlineSource: The Inline source for the input content for UserEvents. InlineSource *GoogleCloudDiscoveryengineV1alphaImportUserEventsRequestInlineSource `json:"inlineSource,omitempty"` // ForceSendFields is a list of field names (e.g. "BigquerySource") to @@ -2106,6 +2108,127 @@ func (s *GoogleCloudDiscoveryengineV1alphaPurgeDocumentsResponse) MarshalJSON() return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudDiscoveryengineV1alphaPurgeUserEventsMetadata: Metadata +// related to the progress of the PurgeUserEvents operation. This will +// be returned by the google.longrunning.Operation.metadata field. +type GoogleCloudDiscoveryengineV1alphaPurgeUserEventsMetadata struct { + // CreateTime: Operation create time. + CreateTime string `json:"createTime,omitempty"` + + // FailureCount: Count of entries that encountered errors while + // processing. + FailureCount int64 `json:"failureCount,omitempty,string"` + + // SuccessCount: Count of entries that were deleted successfully. + SuccessCount int64 `json:"successCount,omitempty,string"` + + // UpdateTime: Operation last update time. If the operation is done, + // this is also the finish time. + UpdateTime string `json:"updateTime,omitempty"` + + // ForceSendFields is a list of field names (e.g. "CreateTime") 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. "CreateTime") 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 *GoogleCloudDiscoveryengineV1alphaPurgeUserEventsMetadata) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDiscoveryengineV1alphaPurgeUserEventsMetadata + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDiscoveryengineV1alphaPurgeUserEventsRequest: Request +// message for PurgeUserEvents method. +type GoogleCloudDiscoveryengineV1alphaPurgeUserEventsRequest struct { + // Filter: Required. The filter string to specify the events to be + // deleted with a length limit of 5,000 characters. The eligible fields + // for filtering are: * `eventType`: Double quoted UserEvent.event_type + // string. * `eventTime`: in ISO 8601 "zulu" format. * `userPseudoId`: + // Double quoted string. Specifying this will delete all events + // associated with a visitor. * `userId`: Double quoted string. + // Specifying this will delete all events associated with a user. + // Examples: * Deleting all events in a time range: `eventTime > + // "2012-04-23T18:25:43.511Z" eventTime < "2012-04-23T18:30:43.511Z" * + // Deleting specific eventType: `eventType = "search" * Deleting all + // events for a specific visitor: `userPseudoId = "visitor1024" * + // Deleting all events inside a DataStore: `*` The filtering fields are + // assumed to have an implicit AND. + Filter string `json:"filter,omitempty"` + + // Force: The `force` field is currently not supported. Purge user event + // requests will permanently delete all purgeable events. Once the + // development is complete: If `force` is set to false, the method will + // return the expected purge count without deleting any user events. + // This field will default to false if not included in the request. + Force bool `json:"force,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Filter") 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. "Filter") 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 *GoogleCloudDiscoveryengineV1alphaPurgeUserEventsRequest) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDiscoveryengineV1alphaPurgeUserEventsRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDiscoveryengineV1alphaPurgeUserEventsResponse: Response of +// the PurgeUserEventsRequest. If the long running operation is +// successfully done, then this message is returned by the +// google.longrunning.Operations.response field. +type GoogleCloudDiscoveryengineV1alphaPurgeUserEventsResponse struct { + // PurgeCount: The total count of events purged as a result of the + // operation. + PurgeCount int64 `json:"purgeCount,omitempty,string"` + + // ForceSendFields is a list of field names (e.g. "PurgeCount") 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. "PurgeCount") 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 *GoogleCloudDiscoveryengineV1alphaPurgeUserEventsResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDiscoveryengineV1alphaPurgeUserEventsResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudDiscoveryengineV1alphaRecommendRequest: Request message // for Recommend method. type GoogleCloudDiscoveryengineV1alphaRecommendRequest struct { @@ -6283,6 +6406,154 @@ func (c *ProjectsLocationsCollectionsDataStoresUserEventsImportCall) Do(opts ... } +// method id "discoveryengine.projects.locations.collections.dataStores.userEvents.purge": + +type ProjectsLocationsCollectionsDataStoresUserEventsPurgeCall struct { + s *Service + parent string + googleclouddiscoveryenginev1alphapurgeusereventsrequest *GoogleCloudDiscoveryengineV1alphaPurgeUserEventsRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Purge: Deletes permanently all user events specified by the filter +// provided. Depending on the number of events specified by the filter, +// this operation could take hours or days to complete. To test a +// filter, use the list command first. +// +// - parent: The resource name of the catalog under which the events are +// created. The format is +// `projects/${projectId}/locations/global/collections/{$collectionId}/ +// dataStores/${dataStoreId}`. +func (r *ProjectsLocationsCollectionsDataStoresUserEventsService) Purge(parent string, googleclouddiscoveryenginev1alphapurgeusereventsrequest *GoogleCloudDiscoveryengineV1alphaPurgeUserEventsRequest) *ProjectsLocationsCollectionsDataStoresUserEventsPurgeCall { + c := &ProjectsLocationsCollectionsDataStoresUserEventsPurgeCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.googleclouddiscoveryenginev1alphapurgeusereventsrequest = googleclouddiscoveryenginev1alphapurgeusereventsrequest + 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 *ProjectsLocationsCollectionsDataStoresUserEventsPurgeCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresUserEventsPurgeCall { + 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 *ProjectsLocationsCollectionsDataStoresUserEventsPurgeCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresUserEventsPurgeCall { + 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 *ProjectsLocationsCollectionsDataStoresUserEventsPurgeCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsCollectionsDataStoresUserEventsPurgeCall) 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.googleclouddiscoveryenginev1alphapurgeusereventsrequest) + 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, "v1alpha/{+parent}/userEvents:purge") + 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 "discoveryengine.projects.locations.collections.dataStores.userEvents.purge" call. +// Exactly one of *GoogleLongrunningOperation or error will be non-nil. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleLongrunningOperation.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 *ProjectsLocationsCollectionsDataStoresUserEventsPurgeCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleLongrunningOperation{ + 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 permanently all user events specified by the filter provided. Depending on the number of events specified by the filter, this operation could take hours or days to complete. To test a filter, use the list command first.", + // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/collections/{collectionsId}/dataStores/{dataStoresId}/userEvents:purge", + // "httpMethod": "POST", + // "id": "discoveryengine.projects.locations.collections.dataStores.userEvents.purge", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "parent": { + // "description": "Required. The resource name of the catalog under which the events are created. The format is `projects/${projectId}/locations/global/collections/{$collectionId}/dataStores/${dataStoreId}`", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/collections/[^/]+/dataStores/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1alpha/{+parent}/userEvents:purge", + // "request": { + // "$ref": "GoogleCloudDiscoveryengineV1alphaPurgeUserEventsRequest" + // }, + // "response": { + // "$ref": "GoogleLongrunningOperation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + // method id "discoveryengine.projects.locations.collections.dataStores.userEvents.write": type ProjectsLocationsCollectionsDataStoresUserEventsWriteCall struct { @@ -9815,6 +10086,154 @@ func (c *ProjectsLocationsDataStoresUserEventsImportCall) Do(opts ...googleapi.C } +// method id "discoveryengine.projects.locations.dataStores.userEvents.purge": + +type ProjectsLocationsDataStoresUserEventsPurgeCall struct { + s *Service + parent string + googleclouddiscoveryenginev1alphapurgeusereventsrequest *GoogleCloudDiscoveryengineV1alphaPurgeUserEventsRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Purge: Deletes permanently all user events specified by the filter +// provided. Depending on the number of events specified by the filter, +// this operation could take hours or days to complete. To test a +// filter, use the list command first. +// +// - parent: The resource name of the catalog under which the events are +// created. The format is +// `projects/${projectId}/locations/global/collections/{$collectionId}/ +// dataStores/${dataStoreId}`. +func (r *ProjectsLocationsDataStoresUserEventsService) Purge(parent string, googleclouddiscoveryenginev1alphapurgeusereventsrequest *GoogleCloudDiscoveryengineV1alphaPurgeUserEventsRequest) *ProjectsLocationsDataStoresUserEventsPurgeCall { + c := &ProjectsLocationsDataStoresUserEventsPurgeCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.googleclouddiscoveryenginev1alphapurgeusereventsrequest = googleclouddiscoveryenginev1alphapurgeusereventsrequest + 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 *ProjectsLocationsDataStoresUserEventsPurgeCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresUserEventsPurgeCall { + 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 *ProjectsLocationsDataStoresUserEventsPurgeCall) Context(ctx context.Context) *ProjectsLocationsDataStoresUserEventsPurgeCall { + 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 *ProjectsLocationsDataStoresUserEventsPurgeCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsDataStoresUserEventsPurgeCall) 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.googleclouddiscoveryenginev1alphapurgeusereventsrequest) + 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, "v1alpha/{+parent}/userEvents:purge") + 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 "discoveryengine.projects.locations.dataStores.userEvents.purge" call. +// Exactly one of *GoogleLongrunningOperation or error will be non-nil. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleLongrunningOperation.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 *ProjectsLocationsDataStoresUserEventsPurgeCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleLongrunningOperation{ + 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 permanently all user events specified by the filter provided. Depending on the number of events specified by the filter, this operation could take hours or days to complete. To test a filter, use the list command first.", + // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/dataStores/{dataStoresId}/userEvents:purge", + // "httpMethod": "POST", + // "id": "discoveryengine.projects.locations.dataStores.userEvents.purge", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "parent": { + // "description": "Required. The resource name of the catalog under which the events are created. The format is `projects/${projectId}/locations/global/collections/{$collectionId}/dataStores/${dataStoreId}`", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/dataStores/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1alpha/{+parent}/userEvents:purge", + // "request": { + // "$ref": "GoogleCloudDiscoveryengineV1alphaPurgeUserEventsRequest" + // }, + // "response": { + // "$ref": "GoogleLongrunningOperation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + // method id "discoveryengine.projects.locations.dataStores.userEvents.write": type ProjectsLocationsDataStoresUserEventsWriteCall struct { diff --git a/discoveryengine/v1beta/discoveryengine-api.json b/discoveryengine/v1beta/discoveryengine-api.json index 180cf9fb7d8..991b160c2e2 100644 --- a/discoveryengine/v1beta/discoveryengine-api.json +++ b/discoveryengine/v1beta/discoveryengine-api.json @@ -1610,7 +1610,7 @@ } } }, - "revision": "20230525", + "revision": "20230620", "rootUrl": "https://discoveryengine.googleapis.com/", "schemas": { "GoogleApiHttpBody": { @@ -2110,6 +2110,45 @@ }, "type": "object" }, + "GoogleCloudDiscoveryengineV1alphaPurgeUserEventsMetadata": { + "description": "Metadata related to the progress of the PurgeUserEvents operation. This will be returned by the google.longrunning.Operation.metadata field.", + "id": "GoogleCloudDiscoveryengineV1alphaPurgeUserEventsMetadata", + "properties": { + "createTime": { + "description": "Operation create time.", + "format": "google-datetime", + "type": "string" + }, + "failureCount": { + "description": "Count of entries that encountered errors while processing.", + "format": "int64", + "type": "string" + }, + "successCount": { + "description": "Count of entries that were deleted successfully.", + "format": "int64", + "type": "string" + }, + "updateTime": { + "description": "Operation last update time. If the operation is done, this is also the finish time.", + "format": "google-datetime", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudDiscoveryengineV1alphaPurgeUserEventsResponse": { + "description": "Response of the PurgeUserEventsRequest. If the long running operation is successfully done, then this message is returned by the google.longrunning.Operations.response field.", + "id": "GoogleCloudDiscoveryengineV1alphaPurgeUserEventsResponse", + "properties": { + "purgeCount": { + "description": "The total count of events purged as a result of the operation.", + "format": "int64", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudDiscoveryengineV1alphaSchema": { "description": "Defines the structure and layout of a type of document data.", "id": "GoogleCloudDiscoveryengineV1alphaSchema", @@ -2287,11 +2326,11 @@ "id": "GoogleCloudDiscoveryengineV1betaDocumentInfo", "properties": { "id": { - "description": "Required. The Document resource ID.", + "description": "The Document resource ID.", "type": "string" }, "name": { - "description": "Required. The Document resource full name, of the form: `projects/{project_id}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}/branches/{branch_id}/documents/{document_id}`", + "description": "The Document resource full name, of the form: `projects/{project_id}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}/branches/{branch_id}/documents/{document_id}`", "type": "string" }, "promotionIds": { @@ -2307,7 +2346,7 @@ "type": "integer" }, "uri": { - "description": "Required. The Document url - only allowed for DataStores with content_config PUBLIC_WEBSITE.", + "description": "The Document url - only allowed for DataStores with content_config PUBLIC_WEBSITE.", "type": "string" } }, @@ -2318,7 +2357,7 @@ "id": "GoogleCloudDiscoveryengineV1betaGcsSource", "properties": { "dataSchema": { - "description": "The schema to use when parsing the data from the source. Supported values for document imports: * `document` (default): One JSON Document per line. Each document must have a valid Document.id. * `content`: Unstructured data (e.g. PDF, HTML). Each file matched by `input_uris` will become a document, with the ID set to the first 128 bits of SHA256(URI) encoded as a hex string. * `custom`: One custom data JSON per row in arbitrary format that conforms the defined Schema of the data store. This can only be used by the GENERIC Data Store vertical. Supported values for user even imports: * `user_event` (default): One JSON UserEvent per line.", + "description": "The schema to use when parsing the data from the source. Supported values for document imports: * `document` (default): One JSON Document per line. Each document must have a valid Document.id. * `content`: Unstructured data (e.g. PDF, HTML). Each file matched by `input_uris` will become a document, with the ID set to the first 128 bits of SHA256(URI) encoded as a hex string. * `custom`: One custom data JSON per row in arbitrary format that conforms the defined Schema of the data store. This can only be used by the GENERIC Data Store vertical. * `csv`: A CSV file with header conforming the defined Schema of the data store. Each entry after the header will be imported as a Document. This can only be used by the GENERIC Data Store vertical. Supported values for user even imports: * `user_event` (default): One JSON UserEvent per line.", "type": "string" }, "inputUris": { @@ -2363,7 +2402,7 @@ "id": "GoogleCloudDiscoveryengineV1betaImportDocumentsRequest", "properties": { "autoGenerateIds": { - "description": "Whether to automatically generate IDs for the documents if absent. If set to `true`, Document.ids are automatically generated based on the hash of the payload, where IDs may not be consistent during multiple imports. In which case ReconciliationMode.FULL is highly recommended to avoid duplicate contents. If unset or set to `false`, Document.ids have to be specified using id_field, otherwises, documents without IDs will fail to be imported. Only set this field when using GcsSource or BigQuerySource, and when GcsSource.data_schema or BigQuerySource.data_schema is `custom`. Otherwise, an INVALID_ARGUMENT error is thrown.", + "description": "Whether to automatically generate IDs for the documents if absent. If set to `true`, Document.ids are automatically generated based on the hash of the payload, where IDs may not be consistent during multiple imports. In which case ReconciliationMode.FULL is highly recommended to avoid duplicate contents. If unset or set to `false`, Document.ids have to be specified using id_field, otherwises, documents without IDs will fail to be imported. Only set this field when using GcsSource or BigQuerySource, and when GcsSource.data_schema or BigQuerySource.data_schema is `custom` or `csv`. Otherwise, an INVALID_ARGUMENT error is thrown.", "type": "boolean" }, "bigquerySource": { @@ -2479,7 +2518,7 @@ "properties": { "bigquerySource": { "$ref": "GoogleCloudDiscoveryengineV1betaBigQuerySource", - "description": "Required. BigQuery input source." + "description": "BigQuery input source." }, "errorConfig": { "$ref": "GoogleCloudDiscoveryengineV1betaImportErrorConfig", @@ -2487,11 +2526,11 @@ }, "gcsSource": { "$ref": "GoogleCloudDiscoveryengineV1betaGcsSource", - "description": "Required. Cloud Storage location for the input content." + "description": "Cloud Storage location for the input content." }, "inlineSource": { "$ref": "GoogleCloudDiscoveryengineV1betaImportUserEventsRequestInlineSource", - "description": "Required. The Inline source for the input content for UserEvents." + "description": "The Inline source for the input content for UserEvents." } }, "type": "object" diff --git a/discoveryengine/v1beta/discoveryengine-gen.go b/discoveryengine/v1beta/discoveryengine-gen.go index 937228577cd..2158962a057 100644 --- a/discoveryengine/v1beta/discoveryengine-gen.go +++ b/discoveryengine/v1beta/discoveryengine-gen.go @@ -1386,6 +1386,79 @@ func (s *GoogleCloudDiscoveryengineV1alphaPurgeDocumentsResponse) MarshalJSON() return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudDiscoveryengineV1alphaPurgeUserEventsMetadata: Metadata +// related to the progress of the PurgeUserEvents operation. This will +// be returned by the google.longrunning.Operation.metadata field. +type GoogleCloudDiscoveryengineV1alphaPurgeUserEventsMetadata struct { + // CreateTime: Operation create time. + CreateTime string `json:"createTime,omitempty"` + + // FailureCount: Count of entries that encountered errors while + // processing. + FailureCount int64 `json:"failureCount,omitempty,string"` + + // SuccessCount: Count of entries that were deleted successfully. + SuccessCount int64 `json:"successCount,omitempty,string"` + + // UpdateTime: Operation last update time. If the operation is done, + // this is also the finish time. + UpdateTime string `json:"updateTime,omitempty"` + + // ForceSendFields is a list of field names (e.g. "CreateTime") 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. "CreateTime") 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 *GoogleCloudDiscoveryengineV1alphaPurgeUserEventsMetadata) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDiscoveryengineV1alphaPurgeUserEventsMetadata + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDiscoveryengineV1alphaPurgeUserEventsResponse: Response of +// the PurgeUserEventsRequest. If the long running operation is +// successfully done, then this message is returned by the +// google.longrunning.Operations.response field. +type GoogleCloudDiscoveryengineV1alphaPurgeUserEventsResponse struct { + // PurgeCount: The total count of events purged as a result of the + // operation. + PurgeCount int64 `json:"purgeCount,omitempty,string"` + + // ForceSendFields is a list of field names (e.g. "PurgeCount") 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. "PurgeCount") 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 *GoogleCloudDiscoveryengineV1alphaPurgeUserEventsResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDiscoveryengineV1alphaPurgeUserEventsResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudDiscoveryengineV1alphaSchema: Defines the structure and // layout of a type of document data. type GoogleCloudDiscoveryengineV1alphaSchema struct { @@ -1705,10 +1778,10 @@ func (s *GoogleCloudDiscoveryengineV1betaDocument) MarshalJSON() ([]byte, error) // GoogleCloudDiscoveryengineV1betaDocumentInfo: Detailed document // information associated with a user event. type GoogleCloudDiscoveryengineV1betaDocumentInfo struct { - // Id: Required. The Document resource ID. + // Id: The Document resource ID. Id string `json:"id,omitempty"` - // Name: Required. The Document resource full name, of the form: + // Name: The Document resource full name, of the form: // `projects/{project_id}/locations/{location}/collections/{collection_id // }/dataStores/{data_store_id}/branches/{branch_id}/documents/{document_ // id}` @@ -1724,7 +1797,7 @@ type GoogleCloudDiscoveryengineV1betaDocumentInfo struct { // events of the following event types: * `add-to-cart` * `purchase` Quantity int64 `json:"quantity,omitempty"` - // Uri: Required. The Document url - only allowed for DataStores with + // Uri: The Document url - only allowed for DataStores with // content_config PUBLIC_WEBSITE. Uri string `json:"uri,omitempty"` @@ -1762,6 +1835,9 @@ type GoogleCloudDiscoveryengineV1betaGcsSource struct { // bits of SHA256(URI) encoded as a hex string. * `custom`: One custom // data JSON per row in arbitrary format that conforms the defined // Schema of the data store. This can only be used by the GENERIC Data + // Store vertical. * `csv`: A CSV file with header conforming the + // defined Schema of the data store. Each entry after the header will be + // imported as a Document. This can only be used by the GENERIC Data // Store vertical. Supported values for user even imports: * // `user_event` (default): One JSON UserEvent per line. DataSchema string `json:"dataSchema,omitempty"` @@ -1851,7 +1927,7 @@ type GoogleCloudDiscoveryengineV1betaImportDocumentsRequest struct { // specified using id_field, otherwises, documents without IDs will fail // to be imported. Only set this field when using GcsSource or // BigQuerySource, and when GcsSource.data_schema or - // BigQuerySource.data_schema is `custom`. Otherwise, an + // BigQuerySource.data_schema is `custom` or `csv`. Otherwise, an // INVALID_ARGUMENT error is thrown. AutoGenerateIds bool `json:"autoGenerateIds,omitempty"` @@ -2066,18 +2142,17 @@ func (s *GoogleCloudDiscoveryengineV1betaImportUserEventsMetadata) MarshalJSON() // GoogleCloudDiscoveryengineV1betaImportUserEventsRequest: Request // message for the ImportUserEvents request. type GoogleCloudDiscoveryengineV1betaImportUserEventsRequest struct { - // BigquerySource: Required. BigQuery input source. + // BigquerySource: BigQuery input source. BigquerySource *GoogleCloudDiscoveryengineV1betaBigQuerySource `json:"bigquerySource,omitempty"` // ErrorConfig: The desired location of errors incurred during the // Import. Cannot be set for inline user event imports. ErrorConfig *GoogleCloudDiscoveryengineV1betaImportErrorConfig `json:"errorConfig,omitempty"` - // GcsSource: Required. Cloud Storage location for the input content. + // GcsSource: Cloud Storage location for the input content. GcsSource *GoogleCloudDiscoveryengineV1betaGcsSource `json:"gcsSource,omitempty"` - // InlineSource: Required. The Inline source for the input content for - // UserEvents. + // InlineSource: The Inline source for the input content for UserEvents. InlineSource *GoogleCloudDiscoveryengineV1betaImportUserEventsRequestInlineSource `json:"inlineSource,omitempty"` // ForceSendFields is a list of field names (e.g. "BigquerySource") to diff --git a/documentai/v1/documentai-api.json b/documentai/v1/documentai-api.json index 69a7b73904a..7664f89d9af 100644 --- a/documentai/v1/documentai-api.json +++ b/documentai/v1/documentai-api.json @@ -1042,7 +1042,7 @@ } } }, - "revision": "20230609", + "revision": "20230619", "rootUrl": "https://documentai.googleapis.com/", "schemas": { "GoogleCloudDocumentaiUiv1beta3AutoLabelDocumentsMetadata": { @@ -4370,6 +4370,10 @@ "description": "Optional. The processor version to use as a base for training. This processor version must be a child of `parent`. Format: `projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processorVersion}`.", "type": "string" }, + "customDocumentExtractionOptions": { + "$ref": "GoogleCloudDocumentaiV1TrainProcessorVersionRequestCustomDocumentExtractionOptions", + "description": "Options to control Custom Document Extraction (CDE) Processor." + }, "documentSchema": { "$ref": "GoogleCloudDocumentaiV1DocumentSchema", "description": "Optional. The schema the processor version will be trained with." @@ -4385,6 +4389,27 @@ }, "type": "object" }, + "GoogleCloudDocumentaiV1TrainProcessorVersionRequestCustomDocumentExtractionOptions": { + "description": "Options to control the training of the Custom Document Extraction (CDE) Processor.", + "id": "GoogleCloudDocumentaiV1TrainProcessorVersionRequestCustomDocumentExtractionOptions", + "properties": { + "trainingMethod": { + "description": "Training method to use for CDE training.", + "enum": [ + "TRAINING_METHOD_UNSPECIFIED", + "MODEL_BASED", + "TEMPLATE_BASED" + ], + "enumDescriptions": [ + "", + "", + "" + ], + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudDocumentaiV1TrainProcessorVersionRequestInputData": { "description": "The input data used to train a new ProcessorVersion.", "id": "GoogleCloudDocumentaiV1TrainProcessorVersionRequestInputData", diff --git a/documentai/v1/documentai-gen.go b/documentai/v1/documentai-gen.go index b6e83eaf4e7..b5c4d944233 100644 --- a/documentai/v1/documentai-gen.go +++ b/documentai/v1/documentai-gen.go @@ -5986,6 +5986,10 @@ type GoogleCloudDocumentaiV1TrainProcessorVersionRequest struct { // sorVersions/{processorVersion}`. BaseProcessorVersion string `json:"baseProcessorVersion,omitempty"` + // CustomDocumentExtractionOptions: Options to control Custom Document + // Extraction (CDE) Processor. + CustomDocumentExtractionOptions *GoogleCloudDocumentaiV1TrainProcessorVersionRequestCustomDocumentExtractionOptions `json:"customDocumentExtractionOptions,omitempty"` + // DocumentSchema: Optional. The schema the processor version will be // trained with. DocumentSchema *GoogleCloudDocumentaiV1DocumentSchema `json:"documentSchema,omitempty"` @@ -6022,6 +6026,42 @@ func (s *GoogleCloudDocumentaiV1TrainProcessorVersionRequest) MarshalJSON() ([]b return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudDocumentaiV1TrainProcessorVersionRequestCustomDocumentExtra +// ctionOptions: Options to control the training of the Custom Document +// Extraction (CDE) Processor. +type GoogleCloudDocumentaiV1TrainProcessorVersionRequestCustomDocumentExtractionOptions struct { + // TrainingMethod: Training method to use for CDE training. + // + // Possible values: + // "TRAINING_METHOD_UNSPECIFIED" + // "MODEL_BASED" + // "TEMPLATE_BASED" + TrainingMethod string `json:"trainingMethod,omitempty"` + + // ForceSendFields is a list of field names (e.g. "TrainingMethod") 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. "TrainingMethod") 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 *GoogleCloudDocumentaiV1TrainProcessorVersionRequestCustomDocumentExtractionOptions) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDocumentaiV1TrainProcessorVersionRequestCustomDocumentExtractionOptions + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudDocumentaiV1TrainProcessorVersionRequestInputData: The // input data used to train a new ProcessorVersion. type GoogleCloudDocumentaiV1TrainProcessorVersionRequestInputData struct { diff --git a/documentai/v1beta3/documentai-api.json b/documentai/v1beta3/documentai-api.json index dde5d9fcddb..53eb55eac28 100644 --- a/documentai/v1beta3/documentai-api.json +++ b/documentai/v1beta3/documentai-api.json @@ -1114,7 +1114,7 @@ } } }, - "revision": "20230609", + "revision": "20230619", "rootUrl": "https://documentai.googleapis.com/", "schemas": { "GoogleCloudDocumentaiUiv1beta3AutoLabelDocumentsMetadata": { @@ -7882,6 +7882,10 @@ "description": "Optional. The processor version to use as a base for training. This processor version must be a child of `parent`. Format: `projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processorVersion}`.", "type": "string" }, + "customDocumentExtractionOptions": { + "$ref": "GoogleCloudDocumentaiV1beta3TrainProcessorVersionRequestCustomDocumentExtractionOptions", + "description": "Options to control Custom Document Extraction (CDE) Processor." + }, "documentSchema": { "$ref": "GoogleCloudDocumentaiV1beta3DocumentSchema", "description": "Optional. The schema the processor version will be trained with." @@ -7897,6 +7901,27 @@ }, "type": "object" }, + "GoogleCloudDocumentaiV1beta3TrainProcessorVersionRequestCustomDocumentExtractionOptions": { + "description": "Options to control the training of the Custom Document Extraction (CDE) Processor.", + "id": "GoogleCloudDocumentaiV1beta3TrainProcessorVersionRequestCustomDocumentExtractionOptions", + "properties": { + "trainingMethod": { + "description": "Training method to use for CDE training.", + "enum": [ + "TRAINING_METHOD_UNSPECIFIED", + "MODEL_BASED", + "TEMPLATE_BASED" + ], + "enumDescriptions": [ + "", + "", + "" + ], + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudDocumentaiV1beta3TrainProcessorVersionRequestInputData": { "description": "The input data used to train a new ProcessorVersion.", "id": "GoogleCloudDocumentaiV1beta3TrainProcessorVersionRequestInputData", diff --git a/documentai/v1beta3/documentai-gen.go b/documentai/v1beta3/documentai-gen.go index 8030aede833..ab73d1e7f41 100644 --- a/documentai/v1beta3/documentai-gen.go +++ b/documentai/v1beta3/documentai-gen.go @@ -11743,6 +11743,10 @@ type GoogleCloudDocumentaiV1beta3TrainProcessorVersionRequest struct { // sorVersions/{processorVersion}`. BaseProcessorVersion string `json:"baseProcessorVersion,omitempty"` + // CustomDocumentExtractionOptions: Options to control Custom Document + // Extraction (CDE) Processor. + CustomDocumentExtractionOptions *GoogleCloudDocumentaiV1beta3TrainProcessorVersionRequestCustomDocumentExtractionOptions `json:"customDocumentExtractionOptions,omitempty"` + // DocumentSchema: Optional. The schema the processor version will be // trained with. DocumentSchema *GoogleCloudDocumentaiV1beta3DocumentSchema `json:"documentSchema,omitempty"` @@ -11779,6 +11783,42 @@ func (s *GoogleCloudDocumentaiV1beta3TrainProcessorVersionRequest) MarshalJSON() return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudDocumentaiV1beta3TrainProcessorVersionRequestCustomDocument +// ExtractionOptions: Options to control the training of the Custom +// Document Extraction (CDE) Processor. +type GoogleCloudDocumentaiV1beta3TrainProcessorVersionRequestCustomDocumentExtractionOptions struct { + // TrainingMethod: Training method to use for CDE training. + // + // Possible values: + // "TRAINING_METHOD_UNSPECIFIED" + // "MODEL_BASED" + // "TEMPLATE_BASED" + TrainingMethod string `json:"trainingMethod,omitempty"` + + // ForceSendFields is a list of field names (e.g. "TrainingMethod") 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. "TrainingMethod") 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 *GoogleCloudDocumentaiV1beta3TrainProcessorVersionRequestCustomDocumentExtractionOptions) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDocumentaiV1beta3TrainProcessorVersionRequestCustomDocumentExtractionOptions + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudDocumentaiV1beta3TrainProcessorVersionRequestInputData: // The input data used to train a new ProcessorVersion. type GoogleCloudDocumentaiV1beta3TrainProcessorVersionRequestInputData struct { diff --git a/serviceusage/v1/serviceusage-api.json b/serviceusage/v1/serviceusage-api.json index 8bc239b8bfa..76c4e2080af 100644 --- a/serviceusage/v1/serviceusage-api.json +++ b/serviceusage/v1/serviceusage-api.json @@ -426,7 +426,7 @@ } } }, - "revision": "20230611", + "revision": "20230619", "rootUrl": "https://serviceusage.googleapis.com/", "schemas": { "AddEnableRulesMetadata": { @@ -465,7 +465,7 @@ "additionalProperties": { "type": "string" }, - "description": " If this map is nonempty, then this policy applies only to specific values for dimensions defined in the limit unit. For example, an policy on a limit with the unit `1/{project}/{region}` could contain an entry with the key `region` and the value `us-east-1`; the policy is only applied to quota consumed in that region. This map has the following restrictions: * If `region` appears as a key, its value must be a valid Cloud region. * If `zone` appears as a key, its value must be a valid Cloud zone. * Keys other than `region` or `zone` are not valid.", + "description": " If this map is nonempty, then this policy applies only to specific values for dimensions defined in the limit unit. For example, a policy on a limit with the unit `1/{project}/{region}` could contain an entry with the key `region` and the value `us-east-1`; the policy is only applied to quota consumed in that region. This map has the following restrictions: * If `region` appears as a key, its value must be a valid Cloud region. * If `zone` appears as a key, its value must be a valid Cloud zone. * Keys other than `region` or `zone` are not valid.", "type": "object" }, "metric": { diff --git a/serviceusage/v1/serviceusage-gen.go b/serviceusage/v1/serviceusage-gen.go index ad645508f3f..b8b69ee2d94 100644 --- a/serviceusage/v1/serviceusage-gen.go +++ b/serviceusage/v1/serviceusage-gen.go @@ -219,7 +219,7 @@ type AdminQuotaPolicy struct { // Dimensions: If this map is nonempty, then this policy applies only // to specific values for dimensions defined in the limit unit. For - // example, an policy on a limit with the unit `1/{project}/{region}` + // example, a policy on a limit with the unit `1/{project}/{region}` // could contain an entry with the key `region` and the value // `us-east-1`; the policy is only applied to quota consumed in that // region. This map has the following restrictions: * If `region` diff --git a/serviceusage/v1beta1/serviceusage-api.json b/serviceusage/v1beta1/serviceusage-api.json index 43c0ea8e3a3..76aaf8c13cf 100644 --- a/serviceusage/v1beta1/serviceusage-api.json +++ b/serviceusage/v1beta1/serviceusage-api.json @@ -281,7 +281,7 @@ ], "parameters": { "parent": { - "description": "Name of the consumer and service to generate an identity for. The `GenerateServiceIdentity` methods currently only support projects. An example name would be: `projects/123/services/example.googleapis.com` where `123` is the project number.", + "description": "Name of the consumer and service to generate an identity for. The `GenerateServiceIdentity` methods currently support projects, folders, organizations. Example parents would be: `projects/123/services/example.googleapis.com` `folders/123/services/example.googleapis.com` `organizations/123/services/example.googleapis.com`", "location": "path", "pattern": "^[^/]+/[^/]+/services/[^/]+$", "required": true, @@ -964,7 +964,7 @@ } } }, - "revision": "20230611", + "revision": "20230619", "rootUrl": "https://serviceusage.googleapis.com/", "schemas": { "AddEnableRulesMetadata": { @@ -1003,7 +1003,7 @@ "additionalProperties": { "type": "string" }, - "description": " If this map is nonempty, then this policy applies only to specific values for dimensions defined in the limit unit. For example, an policy on a limit with the unit `1/{project}/{region}` could contain an entry with the key `region` and the value `us-east-1`; the policy is only applied to quota consumed in that region. This map has the following restrictions: * If `region` appears as a key, its value must be a valid Cloud region. * If `zone` appears as a key, its value must be a valid Cloud zone. * Keys other than `region` or `zone` are not valid.", + "description": " If this map is nonempty, then this policy applies only to specific values for dimensions defined in the limit unit. For example, a policy on a limit with the unit `1/{project}/{region}` could contain an entry with the key `region` and the value `us-east-1`; the policy is only applied to quota consumed in that region. This map has the following restrictions: * If `region` appears as a key, its value must be a valid Cloud region. * If `zone` appears as a key, its value must be a valid Cloud zone. * Keys other than `region` or `zone` are not valid.", "type": "object" }, "metric": { diff --git a/serviceusage/v1beta1/serviceusage-gen.go b/serviceusage/v1beta1/serviceusage-gen.go index c318d752487..7240fcb86f7 100644 --- a/serviceusage/v1beta1/serviceusage-gen.go +++ b/serviceusage/v1beta1/serviceusage-gen.go @@ -267,7 +267,7 @@ type AdminQuotaPolicy struct { // Dimensions: If this map is nonempty, then this policy applies only // to specific values for dimensions defined in the limit unit. For - // example, an policy on a limit with the unit `1/{project}/{region}` + // example, a policy on a limit with the unit `1/{project}/{region}` // could contain an entry with the key `region` and the value // `us-east-1`; the policy is only applied to quota consumed in that // region. This map has the following restrictions: * If `region` @@ -6397,10 +6397,11 @@ type ServicesGenerateServiceIdentityCall struct { // GenerateServiceIdentity: Generates service identity for service. // // - parent: Name of the consumer and service to generate an identity -// for. The `GenerateServiceIdentity` methods currently only support -// projects. An example name would be: -// `projects/123/services/example.googleapis.com` where `123` is the -// project number. +// for. The `GenerateServiceIdentity` methods currently support +// projects, folders, organizations. Example parents would be: +// `projects/123/services/example.googleapis.com` +// `folders/123/services/example.googleapis.com` +// `organizations/123/services/example.googleapis.com`. func (r *ServicesService) GenerateServiceIdentity(parent string) *ServicesGenerateServiceIdentityCall { c := &ServicesGenerateServiceIdentityCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent @@ -6502,7 +6503,7 @@ func (c *ServicesGenerateServiceIdentityCall) Do(opts ...googleapi.CallOption) ( // ], // "parameters": { // "parent": { - // "description": "Name of the consumer and service to generate an identity for. The `GenerateServiceIdentity` methods currently only support projects. An example name would be: `projects/123/services/example.googleapis.com` where `123` is the project number.", + // "description": "Name of the consumer and service to generate an identity for. The `GenerateServiceIdentity` methods currently support projects, folders, organizations. Example parents would be: `projects/123/services/example.googleapis.com` `folders/123/services/example.googleapis.com` `organizations/123/services/example.googleapis.com`", // "location": "path", // "pattern": "^[^/]+/[^/]+/services/[^/]+$", // "required": true, From efba8fab11b608ddcba8eceed9dc535852016e0e Mon Sep 17 00:00:00 2001 From: Chris Smith Date: Wed, 21 Jun 2023 17:04:12 -0600 Subject: [PATCH 07/11] chore: restore generating integrations:v1alpha (#2037) refs: #2014 Comment on b/286436239 from Integrations team: "I have reverted the change that is expected to cause this break". --- google-api-go-generator/gen.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/google-api-go-generator/gen.go b/google-api-go-generator/gen.go index fa00f7a20ec..26704bae038 100644 --- a/google-api-go-generator/gen.go +++ b/google-api-go-generator/gen.go @@ -67,8 +67,7 @@ var ( // skipAPIGeneration is a set of APIs to not generate when generating all clients. var skipAPIGeneration = map[string]bool{ - "integrations:v1alpha": true, - "sql:v1beta4": true, + "sql:v1beta4": true, } // API represents an API to generate, as well as its state while it's From bbfccf87fc59ebaaa1c406b6ee078d43edd07987 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Mon, 26 Jun 2023 20:09:02 +0200 Subject: [PATCH 08/11] chore(all): update all (#2038) --- go.mod | 4 ++-- go.sum | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/go.mod b/go.mod index 3d7b660c332..06c62f8c006 100644 --- a/go.mod +++ b/go.mod @@ -16,8 +16,8 @@ require ( google.golang.org/appengine v1.6.7 google.golang.org/genproto/googleapis/bytestream v0.0.0-20230530153820-e85fd2cbaebc google.golang.org/genproto/googleapis/rpc v0.0.0-20230530153820-e85fd2cbaebc - google.golang.org/grpc v1.56.0 - google.golang.org/protobuf v1.30.0 + google.golang.org/grpc v1.56.1 + google.golang.org/protobuf v1.31.0 ) require ( diff --git a/go.sum b/go.sum index 1cae35e2e88..0588540a969 100644 --- a/go.sum +++ b/go.sum @@ -172,8 +172,8 @@ google.golang.org/grpc v1.33.1/go.mod h1:fr5YgcSWrqhRRxogOsw7RzIpsmvOZ6IcH4kBYTp google.golang.org/grpc v1.33.2/go.mod h1:JMHMWHQWaTccqQQlmk3MJZS+GWXOdAesneDmEnv2fbc= google.golang.org/grpc v1.36.0/go.mod h1:qjiiYl8FncCW8feJPdyg3v6XW24KsRHe+dy9BAGRRjU= google.golang.org/grpc v1.45.0/go.mod h1:lN7owxKUQEqMfSyQikvvk5tf/6zMPsrK+ONuO11+0rQ= -google.golang.org/grpc v1.56.0 h1:+y7Bs8rtMd07LeXmL3NxcTLn7mUkbKZqEpPhMNkwJEE= -google.golang.org/grpc v1.56.0/go.mod h1:I9bI3vqKfayGqPUAwGdOSu7kt6oIJLixfffKrpXqQ9s= +google.golang.org/grpc v1.56.1 h1:z0dNfjIl0VpaZ9iSVjA6daGatAYwPGstTjt5vkRMFkQ= +google.golang.org/grpc v1.56.1/go.mod h1:I9bI3vqKfayGqPUAwGdOSu7kt6oIJLixfffKrpXqQ9s= google.golang.org/protobuf v0.0.0-20200109180630-ec00e32a8dfd/go.mod h1:DFci5gLYBciE7Vtevhsrf46CRTquxDuWsQurQQe4oz8= google.golang.org/protobuf v0.0.0-20200221191635-4d8936d0db64/go.mod h1:kwYJMbMJ01Woi6D6+Kah6886xMZcty6N08ah7+eCXa0= google.golang.org/protobuf v0.0.0-20200228230310-ab0ca4ff8a60/go.mod h1:cfTl7dwQJ+fmap5saPgwCLgHXTUD7jkjRqWcaiX5VyM= @@ -185,8 +185,8 @@ google.golang.org/protobuf v1.23.1-0.20200526195155-81db48ad09cc/go.mod h1:EGpAD google.golang.org/protobuf v1.25.0/go.mod h1:9JNX74DMeImyA3h4bdi1ymwjUzf21/xIlbajtzgsN7c= google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw= google.golang.org/protobuf v1.26.0/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc= -google.golang.org/protobuf v1.30.0 h1:kPPoIgf3TsEvrm0PFe15JQ+570QVxYzEvvHqChK+cng= -google.golang.org/protobuf v1.30.0/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I= +google.golang.org/protobuf v1.31.0 h1:g0LDEJHgrBl9N9r17Ru3sqWhkIx2NB67okBHPwC7hs8= +google.golang.org/protobuf v1.31.0/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v2 v2.2.3/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= From 888df6f9da49e64b83815eeba7e0d82ed46e1eec Mon Sep 17 00:00:00 2001 From: Chris Smith Date: Mon, 26 Jun 2023 13:08:12 -0600 Subject: [PATCH 09/11] chore: skip generating integrations:v1alpha (#2039) refs: #2037 refs: #2014 Unfortunately, reinstating `integrations/v1alpha` broke the build again. Therefore I will revert PR #2037 and skip it again in the generation. ``` 2023/06/26 07:09:48 Generating API integrations:v1alpha panic: runtime error: invalid memory address or nil pointer dereference [signal SIGSEGV: segmentation violation code=0x1 addr=0xd8 pc=0x6c06c7] goroutine 1 [running]: main.(*Method).NewBodyArg(0xc0004674a0?, 0xc02b641590) /tmpfs/src/github/google-api-go-client/google-api-go-generator/gen.go:2437 +0x27 main.(*Method).NewArguments(0xc0001fdc20) /tmpfs/src/github/google-api-go-client/google-api-go-generator/gen.go:2430 +0x297 main.(*Method).generateCode(0xc0001fdc20) /tmpfs/src/github/google-api-go-client/google-api-go-generator/gen.go:1835 +0x236 main.(*API).generateResourceMethods(0xc00024c630, 0xc02657e320) /tmpfs/src/github/google-api-go-client/google-api-go-generator/gen.go:1596 +0x1aa main.(*API).generateResourceMethods(0xc00024c630, 0xc02657e0f0) /tmpfs/src/github/google-api-go-client/google-api-go-generator/gen.go:1599 +0x1f8 main.(*API).generateResourceMethods(0xc00024c630, 0xc02657e0a0) /tmpfs/src/github/google-api-go-client/google-api-go-generator/gen.go:1599 +0x1f8 main.(*API).GenerateCode(0xc00024c630) /tmpfs/src/github/google-api-go-client/google-api-go-generator/gen.go:825 +0x2b3c main.(*API).WriteGeneratedCode(0xc00024c630) /tmpfs/src/github/google-api-go-client/google-api-go-generator/gen.go:578 +0x206 main.main() /tmpfs/src/github/google-api-go-client/google-api-go-generator/gen.go:148 +0x336 make: *** [Makefile:12: all] Error 2 2023/06/26 07:09:48 unable to generate discovery clients: exit status 2 exit status 1 cleanup ``` --- google-api-go-generator/gen.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/google-api-go-generator/gen.go b/google-api-go-generator/gen.go index 26704bae038..fa00f7a20ec 100644 --- a/google-api-go-generator/gen.go +++ b/google-api-go-generator/gen.go @@ -67,7 +67,8 @@ var ( // skipAPIGeneration is a set of APIs to not generate when generating all clients. var skipAPIGeneration = map[string]bool{ - "sql:v1beta4": true, + "integrations:v1alpha": true, + "sql:v1beta4": true, } // API represents an API to generate, as well as its state while it's From 5e1c531ef949b53a8997c25e3f4ea7943b3335b7 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Tue, 27 Jun 2023 00:22:12 -0700 Subject: [PATCH 10/11] feat(all): auto-regenerate discovery clients (#2040) --- .../v1alpha/analyticsadmin-api.json | 10 +- analyticsadmin/v1alpha/analyticsadmin-gen.go | 32 +- analyticsdata/v1beta/analyticsdata-api.json | 4 +- api-list.json | 32 +- artifactregistry/v1/artifactregistry-api.json | 96 +- artifactregistry/v1/artifactregistry-gen.go | 316 + batch/v1/batch-api.json | 6 +- batch/v1/batch-gen.go | 4 +- beyondcorp/v1/beyondcorp-api.json | 221 +- beyondcorp/v1/beyondcorp-gen.go | 782 +- beyondcorp/v1alpha/beyondcorp-api.json | 816 +- beyondcorp/v1alpha/beyondcorp-gen.go | 5348 +- bigquery/v2/bigquery-api.json | 14 +- bigquery/v2/bigquery-gen.go | 18 +- calendar/v3/calendar-api.json | 10 +- calendar/v3/calendar-gen.go | 24 +- chat/v1/chat-api.json | 48 +- chat/v1/chat-gen.go | 67 +- chromemanagement/v1/chromemanagement-api.json | 6 +- chromemanagement/v1/chromemanagement-gen.go | 14 +- classroom/v1/classroom-api.json | 6 +- classroom/v1/classroom-gen.go | 6 +- .../v1beta1/cloudresourcemanager-api.json | 3 +- compute/v0.beta/compute-api.json | 333 +- compute/v0.beta/compute-gen.go | 801 +- compute/v1/compute-api.json | 54 +- compute/v1/compute-gen.go | 111 +- .../v1/contactcenterinsights-api.json | 6 +- .../v1/contactcenterinsights-gen.go | 6 +- .../v1/containeranalysis-api.json | 8 +- containeranalysis/v1/containeranalysis-gen.go | 1 + .../v1alpha1/containeranalysis-api.json | 8 +- .../v1alpha1/containeranalysis-gen.go | 1 + .../v1beta1/containeranalysis-api.json | 188 +- .../v1beta1/containeranalysis-gen.go | 405 +- contentwarehouse/v1/contentwarehouse-api.json | 24 +- contentwarehouse/v1/contentwarehouse-gen.go | 19 +- datacatalog/v1/datacatalog-api.json | 14 +- datacatalog/v1/datacatalog-gen.go | 35 +- datacatalog/v1beta1/datacatalog-api.json | 10 +- datacatalog/v1beta1/datacatalog-gen.go | 18 +- dataform/v1beta1/dataform-api.json | 6 +- dataform/v1beta1/dataform-gen.go | 7 +- datamigration/v1/datamigration-api.json | 83 +- datamigration/v1/datamigration-gen.go | 244 + dataplex/v1/dataplex-api.json | 45 +- dataplex/v1/dataplex-gen.go | 85 +- datastream/v1/datastream-api.json | 4 +- datastream/v1/datastream-gen.go | 4 +- dfareporting/v3.5/dfareporting-api.json | 20851 +----- dfareporting/v3.5/dfareporting-gen.go | 53005 +--------------- dfareporting/v4/dfareporting-api.json | 2112 +- dfareporting/v4/dfareporting-gen.go | 3281 +- dialogflow/v2/dialogflow-api.json | 11 +- dialogflow/v2/dialogflow-gen.go | 27 +- dialogflow/v2beta1/dialogflow-api.json | 11 +- dialogflow/v2beta1/dialogflow-gen.go | 27 +- dialogflow/v3/dialogflow-api.json | 11 +- dialogflow/v3/dialogflow-gen.go | 10 + dialogflow/v3beta1/dialogflow-api.json | 11 +- dialogflow/v3beta1/dialogflow-gen.go | 10 + dlp/v2/dlp-api.json | 189 +- dlp/v2/dlp-gen.go | 200 +- .../v2/doubleclickbidmanager-api.json | 6 +- .../v2/doubleclickbidmanager-gen.go | 11 +- gkehub/v1/gkehub-api.json | 79 +- gkehub/v1/gkehub-gen.go | 130 +- gkehub/v1alpha/gkehub-api.json | 305 +- gkehub/v1alpha/gkehub-gen.go | 1180 +- gkehub/v1beta/gkehub-api.json | 305 +- gkehub/v1beta/gkehub-gen.go | 1180 +- gkehub/v1beta1/gkehub-api.json | 4 +- gkeonprem/v1/gkeonprem-api.json | 28 +- gkeonprem/v1/gkeonprem-gen.go | 52 +- kmsinventory/v1/kmsinventory-api.json | 12 +- kmsinventory/v1/kmsinventory-gen.go | 8 + .../v1alpha1/migrationcenter-api.json | 37 +- .../v1alpha1/migrationcenter-gen.go | 42 + .../v1/networkconnectivity-api.json | 851 +- .../v1/networkconnectivity-gen.go | 2420 +- .../v1alpha1/networkconnectivity-api.json | 8 +- .../v1alpha1/networkconnectivity-gen.go | 2 + networkservices/v1/networkservices-api.json | 11 +- networkservices/v1/networkservices-gen.go | 19 +- .../v1beta1/networkservices-api.json | 356 +- .../v1beta1/networkservices-gen.go | 1492 +- notebooks/v1/notebooks-api.json | 34 +- notebooks/v1/notebooks-gen.go | 45 + orgpolicy/v2/orgpolicy-api.json | 4 +- people/v1/people-api.json | 27 +- privateca/v1/privateca-api.json | 8 +- privateca/v1beta1/privateca-api.json | 8 +- .../v1alpha1/prod_tt_sasportal-api.json | 115 +- .../v1alpha1/prod_tt_sasportal-gen.go | 437 + redis/v1/redis-api.json | 9 +- redis/v1beta1/redis-api.json | 9 +- run/v2/run-api.json | 4 +- run/v2/run-gen.go | 3 +- securitycenter/v1/securitycenter-api.json | 9 +- securitycenter/v1/securitycenter-gen.go | 7 + .../v1beta1/servicedirectory-api.json | 90 +- .../v1beta1/servicedirectory-gen.go | 448 - sheets/v4/sheets-api.json | 40 +- sheets/v4/sheets-gen.go | 127 +- tpu/v1/tpu-api.json | 4 +- tpu/v1alpha1/tpu-api.json | 4 +- tpu/v2/tpu-api.json | 4 +- tpu/v2/tpu-gen.go | 2 +- workflows/v1/workflows-api.json | 9 +- workflows/v1/workflows-gen.go | 6 + workstations/v1beta/workstations-api.json | 10 +- workstations/v1beta/workstations-gen.go | 12 +- 112 files changed, 18229 insertions(+), 81943 deletions(-) diff --git a/analyticsadmin/v1alpha/analyticsadmin-api.json b/analyticsadmin/v1alpha/analyticsadmin-api.json index d6f44358a69..6e0276e39dd 100644 --- a/analyticsadmin/v1alpha/analyticsadmin-api.json +++ b/analyticsadmin/v1alpha/analyticsadmin-api.json @@ -4322,7 +4322,7 @@ } } }, - "revision": "20230620", + "revision": "20230626", "rootUrl": "https://analyticsadmin.googleapis.com/", "schemas": { "GoogleAnalyticsAdminV1alphaAccessBetweenFilter": { @@ -4918,10 +4918,10 @@ "Reporting attribution model unspecified.", "Data-driven attribution distributes credit for the conversion based on data for each conversion event. Each Data-driven model is specific to each advertiser and each conversion event.", "Ignores direct traffic and attributes 100% of the conversion value to the last channel that the customer clicked through (or engaged view through for YouTube) before converting.", - "Starting in June 2023, new properties can no longer use this model. See [Analytics Help](https://support.google.com/analytics/answer/9164320?hl=en#040623) for more details. Starting in September 2023, we will sunset this model for all properties. Gives all credit for the conversion to the first channel that a customer clicked (or engaged view through for YouTube) before converting.", - "Starting in June 2023, new properties can no longer use this model. See [Analytics Help](https://support.google.com/analytics/answer/9164320?hl=en#040623) for more details. Starting in September 2023, we will sunset this model for all properties. Distributes the credit for the conversion equally across all the channels a customer clicked (or engaged view through for YouTube) before converting.", - "Starting in June 2023, new properties can no longer use this model. See [Analytics Help](https://support.google.com/analytics/answer/9164320?hl=en#040623) for more details. Starting in September 2023, we will sunset this model for all properties. Attributes 40% credit to the first and last interaction, and the remaining 20% credit is distributed evenly to the middle interactions.", - "Starting in June 2023, new properties can no longer use this model. See [Analytics Help](https://support.google.com/analytics/answer/9164320?hl=en#040623) for more details. Starting in September 2023, we will sunset this model for all properties. Gives more credit to the touchpoints that happened closer in time to the conversion.", + "Starting in June 2023, new properties can no longer use this model. See [Analytics Help](https://support.google.com/analytics/answer/9164320#040623) for more details. Starting in September 2023, we will sunset this model for all properties. Gives all credit for the conversion to the first channel that a customer clicked (or engaged view through for YouTube) before converting.", + "Starting in June 2023, new properties can no longer use this model. See [Analytics Help](https://support.google.com/analytics/answer/9164320#040623) for more details. Starting in September 2023, we will sunset this model for all properties. Distributes the credit for the conversion equally across all the channels a customer clicked (or engaged view through for YouTube) before converting.", + "Starting in June 2023, new properties can no longer use this model. See [Analytics Help](https://support.google.com/analytics/answer/9164320#040623) for more details. Starting in September 2023, we will sunset this model for all properties. Attributes 40% credit to the first and last interaction, and the remaining 20% credit is distributed evenly to the middle interactions.", + "Starting in June 2023, new properties can no longer use this model. See [Analytics Help](https://support.google.com/analytics/answer/9164320#040623) for more details. Starting in September 2023, we will sunset this model for all properties. Gives more credit to the touchpoints that happened closer in time to the conversion.", "Attributes 100% of the conversion value to the last Google Ads channel that the customer clicked through before converting." ], "type": "string" diff --git a/analyticsadmin/v1alpha/analyticsadmin-gen.go b/analyticsadmin/v1alpha/analyticsadmin-gen.go index 3647f83518f..fa68376ff15 100644 --- a/analyticsadmin/v1alpha/analyticsadmin-gen.go +++ b/analyticsadmin/v1alpha/analyticsadmin-gen.go @@ -1503,30 +1503,30 @@ type GoogleAnalyticsAdminV1alphaAttributionSettings struct { // converting. // "CROSS_CHANNEL_FIRST_CLICK" - Starting in June 2023, new properties // can no longer use this model. See [Analytics - // Help](https://support.google.com/analytics/answer/9164320?hl=en#040623 - // ) for more details. Starting in September 2023, we will sunset this - // model for all properties. Gives all credit for the conversion to the - // first channel that a customer clicked (or engaged view through for - // YouTube) before converting. + // Help](https://support.google.com/analytics/answer/9164320#040623) for + // more details. Starting in September 2023, we will sunset this model + // for all properties. Gives all credit for the conversion to the first + // channel that a customer clicked (or engaged view through for YouTube) + // before converting. // "CROSS_CHANNEL_LINEAR" - Starting in June 2023, new properties can // no longer use this model. See [Analytics - // Help](https://support.google.com/analytics/answer/9164320?hl=en#040623 - // ) for more details. Starting in September 2023, we will sunset this - // model for all properties. Distributes the credit for the conversion - // equally across all the channels a customer clicked (or engaged view - // through for YouTube) before converting. + // Help](https://support.google.com/analytics/answer/9164320#040623) for + // more details. Starting in September 2023, we will sunset this model + // for all properties. Distributes the credit for the conversion equally + // across all the channels a customer clicked (or engaged view through + // for YouTube) before converting. // "CROSS_CHANNEL_POSITION_BASED" - Starting in June 2023, new // properties can no longer use this model. See [Analytics - // Help](https://support.google.com/analytics/answer/9164320?hl=en#040623 - // ) for more details. Starting in September 2023, we will sunset this - // model for all properties. Attributes 40% credit to the first and last + // Help](https://support.google.com/analytics/answer/9164320#040623) for + // more details. Starting in September 2023, we will sunset this model + // for all properties. Attributes 40% credit to the first and last // interaction, and the remaining 20% credit is distributed evenly to // the middle interactions. // "CROSS_CHANNEL_TIME_DECAY" - Starting in June 2023, new properties // can no longer use this model. See [Analytics - // Help](https://support.google.com/analytics/answer/9164320?hl=en#040623 - // ) for more details. Starting in September 2023, we will sunset this - // model for all properties. Gives more credit to the touchpoints that + // Help](https://support.google.com/analytics/answer/9164320#040623) for + // more details. Starting in September 2023, we will sunset this model + // for all properties. Gives more credit to the touchpoints that // happened closer in time to the conversion. // "ADS_PREFERRED_LAST_CLICK" - Attributes 100% of the conversion // value to the last Google Ads channel that the customer clicked diff --git a/analyticsdata/v1beta/analyticsdata-api.json b/analyticsdata/v1beta/analyticsdata-api.json index 7cb2c4eb665..5fdffa4703e 100644 --- a/analyticsdata/v1beta/analyticsdata-api.json +++ b/analyticsdata/v1beta/analyticsdata-api.json @@ -15,7 +15,7 @@ "baseUrl": "https://analyticsdata.googleapis.com/", "batchPath": "batch", "canonicalName": "AnalyticsData", - "description": "Accesses report data in Google Analytics.", + "description": "Accesses report data in Google Analytics. Warning: Creating multiple Customer Applications, Accounts, or Projects to simulate or act as a single Customer Application, Account, or Project (respectively) or to circumvent Service-specific usage limits or quotas is a direct violation of Google Cloud Platform Terms of Service as well as Google APIs Terms of Service. These actions can result in immediate termination of your GCP project(s) without any warning. ", "discoveryVersion": "v1", "documentationLink": "https://developers.google.com/analytics/devguides/reporting/data/v1/", "fullyEncodeReservedExpansion": true, @@ -313,7 +313,7 @@ } } }, - "revision": "20230515", + "revision": "20230625", "rootUrl": "https://analyticsdata.googleapis.com/", "schemas": { "ActiveMetricRestriction": { diff --git a/api-list.json b/api-list.json index a5ce1a367ed..9b366640e82 100644 --- a/api-list.json +++ b/api-list.json @@ -308,7 +308,7 @@ "name": "analyticsdata", "version": "v1beta", "title": "Google Analytics Data API", - "description": "Accesses report data in Google Analytics.", + "description": "Accesses report data in Google Analytics. Warning: Creating multiple Customer Applications, Accounts, or Projects to simulate or act as a single Customer Application, Account, or Project (respectively) or to circumvent Service-specific usage limits or quotas is a direct violation of Google Cloud Platform Terms of Service as well as Google APIs Terms of Service. These actions can result in immediate termination of your GCP project(s) without any warning.", "discoveryRestUrl": "https://analyticsdata.googleapis.com/$discovery/rest?version=v1beta", "icons": { "x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png", @@ -3051,21 +3051,6 @@ "documentationLink": "https://cloud.google.com/solutions/gaming/", "preferred": true }, - { - "kind": "discovery#directoryItem", - "id": "genomics:v2alpha1", - "name": "genomics", - "version": "v2alpha1", - "title": "Genomics API", - "description": "Uploads, processes, queries, and searches Genomics data in the cloud.", - "discoveryRestUrl": "https://genomics.googleapis.com/$discovery/rest?version=v2alpha1", - "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/genomics", - "preferred": true - }, { "kind": "discovery#directoryItem", "id": "gkebackup:v1", @@ -3891,21 +3876,6 @@ "documentationLink": "https://developers.google.com/my-business/", "preferred": true }, - { - "kind": "discovery#directoryItem", - "id": "mybusinessbusinesscalls:v1", - "name": "mybusinessbusinesscalls", - "version": "v1", - "title": "My Business Business Calls API", - "description": "The My Business Business Calls API manages business calls information of a location on Google and collect insights like the number of missed calls to their location. Additional information about Business calls can be found at https://support.google.com/business/answer/9688285?p=call_history. If the Google Business Profile links to a Google Ads account and call history is turned on, calls that last longer than a specific time, and that can be attributed to an ad interaction, will show in the linked Google Ads account under the \"Calls from Ads\" conversion. If smart bidding and call conversions are used in the optimization strategy, there could be a change in ad spend. Learn more about smart bidding \u003chttps://support.google.com/google-ads/answer/7065882\u003e. To view and perform actions on a location's calls, you need to be a `OWNER`, `CO_OWNER` or `MANAGER` of the location. Note - If you have a quota of 0 after enabling the API, please request \u003chttps://developers.google.com/my-business/content/prereqs#request-access\u003e for GBP API access.", - "discoveryRestUrl": "https://mybusinessbusinesscalls.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://developers.google.com/my-business/", - "preferred": true - }, { "kind": "discovery#directoryItem", "id": "mybusinessbusinessinformation:v1", diff --git a/artifactregistry/v1/artifactregistry-api.json b/artifactregistry/v1/artifactregistry-api.json index b11297c0d31..5c73ba0cc0c 100644 --- a/artifactregistry/v1/artifactregistry-api.json +++ b/artifactregistry/v1/artifactregistry-api.json @@ -803,6 +803,50 @@ } } }, + "goModules": { + "methods": { + "upload": { + "description": "Directly uploads a Go module. The returned Operation will complete once the Go module is uploaded. Package, Version, and File resources are created based on the uploaded Go module.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/goModules:create", + "httpMethod": "POST", + "id": "artifactregistry.projects.locations.repositories.goModules.upload", + "mediaUpload": { + "accept": [ + "*/*" + ], + "protocols": { + "simple": { + "multipart": true, + "path": "/upload/v1/{+parent}/goModules:create" + } + } + }, + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "The resource name of the repository where the Go module will be uploaded.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/goModules:create", + "request": { + "$ref": "UploadGoModuleRequest" + }, + "response": { + "$ref": "UploadGoModuleMediaResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ], + "supportsMediaUpload": true + } + } + }, "googetArtifacts": { "methods": { "import": { @@ -1589,7 +1633,7 @@ } } }, - "revision": "20230522", + "revision": "20230622", "rootUrl": "https://artifactregistry.googleapis.com/", "schemas": { "AptArtifact": { @@ -1782,6 +1826,33 @@ }, "type": "object" }, + "GoModule": { + "description": "GoModule represents a Go module.", + "id": "GoModule", + "properties": { + "createTime": { + "description": "Output only. The time when the Go module is created.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "name": { + "description": "The resource name of a Go module.", + "type": "string" + }, + "updateTime": { + "description": "Output only. The time when the Go module is updated.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "version": { + "description": "The version of the Go module. Must be a valid canonical version as defined in https://go.dev/ref/mod#glos-canonical-version.", + "type": "string" + } + }, + "type": "object" + }, "GoogetArtifact": { "description": "A detailed representation of a GooGet artifact.", "id": "GoogetArtifact", @@ -2881,6 +2952,29 @@ }, "type": "object" }, + "UploadGoModuleMediaResponse": { + "description": "The response to upload a Go module.", + "id": "UploadGoModuleMediaResponse", + "properties": { + "operation": { + "$ref": "Operation", + "description": "Operation to be returned to the user." + } + }, + "type": "object" + }, + "UploadGoModuleMetadata": { + "description": "The operation metadata for uploading go modules.", + "id": "UploadGoModuleMetadata", + "properties": {}, + "type": "object" + }, + "UploadGoModuleRequest": { + "description": "The request to upload a Go module.", + "id": "UploadGoModuleRequest", + "properties": {}, + "type": "object" + }, "UploadGoogetArtifactMediaResponse": { "description": "The response to upload an artifact.", "id": "UploadGoogetArtifactMediaResponse", diff --git a/artifactregistry/v1/artifactregistry-gen.go b/artifactregistry/v1/artifactregistry-gen.go index 9969e3a1cc3..ac36530cf3a 100644 --- a/artifactregistry/v1/artifactregistry-gen.go +++ b/artifactregistry/v1/artifactregistry-gen.go @@ -188,6 +188,7 @@ func NewProjectsLocationsRepositoriesService(s *Service) *ProjectsLocationsRepos rs.AptArtifacts = NewProjectsLocationsRepositoriesAptArtifactsService(s) rs.DockerImages = NewProjectsLocationsRepositoriesDockerImagesService(s) rs.Files = NewProjectsLocationsRepositoriesFilesService(s) + rs.GoModules = NewProjectsLocationsRepositoriesGoModulesService(s) rs.GoogetArtifacts = NewProjectsLocationsRepositoriesGoogetArtifactsService(s) rs.KfpArtifacts = NewProjectsLocationsRepositoriesKfpArtifactsService(s) rs.MavenArtifacts = NewProjectsLocationsRepositoriesMavenArtifactsService(s) @@ -207,6 +208,8 @@ type ProjectsLocationsRepositoriesService struct { Files *ProjectsLocationsRepositoriesFilesService + GoModules *ProjectsLocationsRepositoriesGoModulesService + GoogetArtifacts *ProjectsLocationsRepositoriesGoogetArtifactsService KfpArtifacts *ProjectsLocationsRepositoriesKfpArtifactsService @@ -249,6 +252,15 @@ type ProjectsLocationsRepositoriesFilesService struct { s *Service } +func NewProjectsLocationsRepositoriesGoModulesService(s *Service) *ProjectsLocationsRepositoriesGoModulesService { + rs := &ProjectsLocationsRepositoriesGoModulesService{s: s} + return rs +} + +type ProjectsLocationsRepositoriesGoModulesService struct { + s *Service +} + func NewProjectsLocationsRepositoriesGoogetArtifactsService(s *Service) *ProjectsLocationsRepositoriesGoogetArtifactsService { rs := &ProjectsLocationsRepositoriesGoogetArtifactsService{s: s} return rs @@ -708,6 +720,44 @@ func (s *Expr) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoModule: GoModule represents a Go module. +type GoModule struct { + // CreateTime: Output only. The time when the Go module is created. + CreateTime string `json:"createTime,omitempty"` + + // Name: The resource name of a Go module. + Name string `json:"name,omitempty"` + + // UpdateTime: Output only. The time when the Go module is updated. + UpdateTime string `json:"updateTime,omitempty"` + + // Version: The version of the Go module. Must be a valid canonical + // version as defined in https://go.dev/ref/mod#glos-canonical-version. + Version string `json:"version,omitempty"` + + // ForceSendFields is a list of field names (e.g. "CreateTime") 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. "CreateTime") 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 *GoModule) MarshalJSON() ([]byte, error) { + type NoMethod GoModule + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogetArtifact: A detailed representation of a GooGet artifact. type GoogetArtifact struct { // Architecture: Output only. Operating system architecture of the @@ -2662,6 +2712,47 @@ func (s *UploadAptArtifactResponse) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// UploadGoModuleMediaResponse: The response to upload a Go module. +type UploadGoModuleMediaResponse struct { + // Operation: Operation to be returned to the user. + Operation *Operation `json:"operation,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "Operation") 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. "Operation") 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 *UploadGoModuleMediaResponse) MarshalJSON() ([]byte, error) { + type NoMethod UploadGoModuleMediaResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// UploadGoModuleMetadata: The operation metadata for uploading go +// modules. +type UploadGoModuleMetadata struct { +} + +// UploadGoModuleRequest: The request to upload a Go module. +type UploadGoModuleRequest struct { +} + // UploadGoogetArtifactMediaResponse: The response to upload an // artifact. type UploadGoogetArtifactMediaResponse struct { @@ -6561,6 +6652,231 @@ func (c *ProjectsLocationsRepositoriesFilesListCall) Pages(ctx context.Context, } } +// method id "artifactregistry.projects.locations.repositories.goModules.upload": + +type ProjectsLocationsRepositoriesGoModulesUploadCall struct { + s *Service + parent string + uploadgomodulerequest *UploadGoModuleRequest + urlParams_ gensupport.URLParams + mediaInfo_ *gensupport.MediaInfo + ctx_ context.Context + header_ http.Header +} + +// Upload: Directly uploads a Go module. The returned Operation will +// complete once the Go module is uploaded. Package, Version, and File +// resources are created based on the uploaded Go module. +// +// - parent: The resource name of the repository where the Go module +// will be uploaded. +func (r *ProjectsLocationsRepositoriesGoModulesService) Upload(parent string, uploadgomodulerequest *UploadGoModuleRequest) *ProjectsLocationsRepositoriesGoModulesUploadCall { + c := &ProjectsLocationsRepositoriesGoModulesUploadCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.uploadgomodulerequest = uploadgomodulerequest + return c +} + +// Media specifies the media to upload in one or more chunks. The chunk +// size may be controlled by supplying a MediaOption generated by +// googleapi.ChunkSize. The chunk size defaults to +// googleapi.DefaultUploadChunkSize.The Content-Type header used in the +// upload request will be determined by sniffing the contents of r, +// unless a MediaOption generated by googleapi.ContentType is +// supplied. +// At most one of Media and ResumableMedia may be set. +func (c *ProjectsLocationsRepositoriesGoModulesUploadCall) Media(r io.Reader, options ...googleapi.MediaOption) *ProjectsLocationsRepositoriesGoModulesUploadCall { + c.mediaInfo_ = gensupport.NewInfoFromMedia(r, options) + return c +} + +// ResumableMedia specifies the media to upload in chunks and can be +// canceled with ctx. +// +// Deprecated: use Media instead. +// +// At most one of Media and ResumableMedia may be set. mediaType +// identifies the MIME media type of the upload, such as "image/png". If +// mediaType is "", it will be auto-detected. The provided ctx will +// supersede any context previously provided to the Context method. +func (c *ProjectsLocationsRepositoriesGoModulesUploadCall) ResumableMedia(ctx context.Context, r io.ReaderAt, size int64, mediaType string) *ProjectsLocationsRepositoriesGoModulesUploadCall { + c.ctx_ = ctx + c.mediaInfo_ = gensupport.NewInfoFromResumableMedia(r, size, mediaType) + return c +} + +// ProgressUpdater provides a callback function that will be called +// after every chunk. It should be a low-latency function in order to +// not slow down the upload operation. This should only be called when +// using ResumableMedia (as opposed to Media). +func (c *ProjectsLocationsRepositoriesGoModulesUploadCall) ProgressUpdater(pu googleapi.ProgressUpdater) *ProjectsLocationsRepositoriesGoModulesUploadCall { + c.mediaInfo_.SetProgressUpdater(pu) + 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 *ProjectsLocationsRepositoriesGoModulesUploadCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesGoModulesUploadCall { + 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. +// This context will supersede any context previously provided to the +// ResumableMedia method. +func (c *ProjectsLocationsRepositoriesGoModulesUploadCall) Context(ctx context.Context) *ProjectsLocationsRepositoriesGoModulesUploadCall { + 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 *ProjectsLocationsRepositoriesGoModulesUploadCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsRepositoriesGoModulesUploadCall) 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.uploadgomodulerequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/goModules:create") + if c.mediaInfo_ != nil { + urls = googleapi.ResolveRelative(c.s.BasePath, "/upload/v1/{+parent}/goModules:create") + c.urlParams_.Set("uploadType", c.mediaInfo_.UploadType()) + } + if body == nil { + body = new(bytes.Buffer) + reqHeaders.Set("Content-Type", "application/json") + } + body, getBody, cleanup := c.mediaInfo_.UploadRequest(reqHeaders, body) + defer cleanup() + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + req.GetBody = getBody + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "artifactregistry.projects.locations.repositories.goModules.upload" call. +// Exactly one of *UploadGoModuleMediaResponse or error will be non-nil. +// Any non-2xx status code is an error. Response headers are in either +// *UploadGoModuleMediaResponse.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 *ProjectsLocationsRepositoriesGoModulesUploadCall) Do(opts ...googleapi.CallOption) (*UploadGoModuleMediaResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + rx := c.mediaInfo_.ResumableUpload(res.Header.Get("Location")) + if rx != nil { + rx.Client = c.s.client + rx.UserAgent = c.s.userAgent() + ctx := c.ctx_ + if ctx == nil { + ctx = context.TODO() + } + res, err = rx.Upload(ctx) + if err != nil { + return nil, err + } + defer res.Body.Close() + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + } + ret := &UploadGoModuleMediaResponse{ + 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": "Directly uploads a Go module. The returned Operation will complete once the Go module is uploaded. Package, Version, and File resources are created based on the uploaded Go module.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/goModules:create", + // "httpMethod": "POST", + // "id": "artifactregistry.projects.locations.repositories.goModules.upload", + // "mediaUpload": { + // "accept": [ + // "*/*" + // ], + // "protocols": { + // "simple": { + // "multipart": true, + // "path": "/upload/v1/{+parent}/goModules:create" + // } + // } + // }, + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "parent": { + // "description": "The resource name of the repository where the Go module will be uploaded.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+parent}/goModules:create", + // "request": { + // "$ref": "UploadGoModuleRequest" + // }, + // "response": { + // "$ref": "UploadGoModuleMediaResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ], + // "supportsMediaUpload": true + // } + +} + // method id "artifactregistry.projects.locations.repositories.googetArtifacts.import": type ProjectsLocationsRepositoriesGoogetArtifactsImportCall struct { diff --git a/batch/v1/batch-api.json b/batch/v1/batch-api.json index 6653ffedfe4..c44a8c3eff3 100644 --- a/batch/v1/batch-api.json +++ b/batch/v1/batch-api.json @@ -556,7 +556,7 @@ } } }, - "revision": "20230607", + "revision": "20230618", "rootUrl": "https://batch.googleapis.com/", "schemas": { "Accelerator": { @@ -1349,7 +1349,7 @@ "DELETION_IN_PROGRESS" ], "enumDescriptions": [ - "", + "Job state unspecified.", "Job is admitted (validated and persisted) and waiting for resources.", "Job is scheduled to run as soon as resource allocation is ready. The resource allocation may happen at a later time but with a high chance to succeed.", "Resource allocation has been successful. At least one Task in the Job is RUNNING.", @@ -1589,7 +1589,7 @@ "DELETION_IN_PROGRESS" ], "enumDescriptions": [ - "", + "Job state unspecified.", "Job is admitted (validated and persisted) and waiting for resources.", "Job is scheduled to run as soon as resource allocation is ready. The resource allocation may happen at a later time but with a high chance to succeed.", "Resource allocation has been successful. At least one Task in the Job is RUNNING.", diff --git a/batch/v1/batch-gen.go b/batch/v1/batch-gen.go index a11ef841a91..b9bf45894cd 100644 --- a/batch/v1/batch-gen.go +++ b/batch/v1/batch-gen.go @@ -1422,7 +1422,7 @@ type JobStatus struct { // State: Job state // // Possible values: - // "STATE_UNSPECIFIED" + // "STATE_UNSPECIFIED" - Job state unspecified. // "QUEUED" - Job is admitted (validated and persisted) and waiting // for resources. // "SCHEDULED" - Job is scheduled to run as soon as resource @@ -1826,7 +1826,7 @@ type Message struct { // NewJobState: The new job state. // // Possible values: - // "STATE_UNSPECIFIED" + // "STATE_UNSPECIFIED" - Job state unspecified. // "QUEUED" - Job is admitted (validated and persisted) and waiting // for resources. // "SCHEDULED" - Job is scheduled to run as soon as resource diff --git a/beyondcorp/v1/beyondcorp-api.json b/beyondcorp/v1/beyondcorp-api.json index 6a6c379de29..83d8f717941 100644 --- a/beyondcorp/v1/beyondcorp-api.json +++ b/beyondcorp/v1/beyondcorp-api.json @@ -105,6 +105,137 @@ }, "protocol": "rest", "resources": { + "organizations": { + "resources": { + "locations": { + "resources": { + "operations": { + "methods": { + "cancel": { + "description": "Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.", + "flatPath": "v1/organizations/{organizationsId}/locations/{locationsId}/operations/{operationsId}:cancel", + "httpMethod": "POST", + "id": "beyondcorp.organizations.locations.operations.cancel", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource to be cancelled.", + "location": "path", + "pattern": "^organizations/[^/]+/locations/[^/]+/operations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}:cancel", + "request": { + "$ref": "GoogleLongrunningCancelOperationRequest" + }, + "response": { + "$ref": "Empty" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "delete": { + "description": "Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.", + "flatPath": "v1/organizations/{organizationsId}/locations/{locationsId}/operations/{operationsId}", + "httpMethod": "DELETE", + "id": "beyondcorp.organizations.locations.operations.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource to be deleted.", + "location": "path", + "pattern": "^organizations/[^/]+/locations/[^/]+/operations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "Empty" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "get": { + "description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.", + "flatPath": "v1/organizations/{organizationsId}/locations/{locationsId}/operations/{operationsId}", + "httpMethod": "GET", + "id": "beyondcorp.organizations.locations.operations.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource.", + "location": "path", + "pattern": "^organizations/[^/]+/locations/[^/]+/operations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.", + "flatPath": "v1/organizations/{organizationsId}/locations/{locationsId}/operations", + "httpMethod": "GET", + "id": "beyondcorp.organizations.locations.operations.list", + "parameterOrder": [ + "name" + ], + "parameters": { + "filter": { + "description": "The standard list filter.", + "location": "query", + "type": "string" + }, + "name": { + "description": "The name of the operation's parent resource.", + "location": "path", + "pattern": "^organizations/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + }, + "pageSize": { + "description": "The standard list page size.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "The standard list page token.", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+name}/operations", + "response": { + "$ref": "GoogleLongrunningListOperationsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + } + } + } + } + }, "projects": { "resources": { "locations": { @@ -1394,7 +1525,7 @@ } } }, - "revision": "20230517", + "revision": "20230616", "rootUrl": "https://beyondcorp.googleapis.com/", "schemas": { "AllocatedConnection": { @@ -2397,94 +2528,6 @@ }, "type": "object" }, - "GoogleCloudBeyondcorpClientconnectorservicesV1alphaClientConnectorServiceOperationMetadata": { - "description": "Represents the metadata of the long-running operation.", - "id": "GoogleCloudBeyondcorpClientconnectorservicesV1alphaClientConnectorServiceOperationMetadata", - "properties": { - "apiVersion": { - "description": "Output only. API version used to start the operation.", - "readOnly": true, - "type": "string" - }, - "createTime": { - "description": "Output only. The time the operation was created.", - "format": "google-datetime", - "readOnly": true, - "type": "string" - }, - "endTime": { - "description": "Output only. The time the operation finished running.", - "format": "google-datetime", - "readOnly": true, - "type": "string" - }, - "requestedCancellation": { - "description": "Output only. Identifies whether the user has requested cancellation of the operation. Operations that have successfully been cancelled have Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.", - "readOnly": true, - "type": "boolean" - }, - "statusMessage": { - "description": "Output only. Human-readable status of the operation, if any.", - "readOnly": true, - "type": "string" - }, - "target": { - "description": "Output only. Server-defined resource path for the target of the operation.", - "readOnly": true, - "type": "string" - }, - "verb": { - "description": "Output only. Name of the verb executed by the operation.", - "readOnly": true, - "type": "string" - } - }, - "type": "object" - }, - "GoogleCloudBeyondcorpClientgatewaysV1alphaClientGatewayOperationMetadata": { - "description": "Represents the metadata of the long-running operation.", - "id": "GoogleCloudBeyondcorpClientgatewaysV1alphaClientGatewayOperationMetadata", - "properties": { - "apiVersion": { - "description": "Output only. API version used to start the operation.", - "readOnly": true, - "type": "string" - }, - "createTime": { - "description": "Output only. The time the operation was created.", - "format": "google-datetime", - "readOnly": true, - "type": "string" - }, - "endTime": { - "description": "Output only. The time the operation finished running.", - "format": "google-datetime", - "readOnly": true, - "type": "string" - }, - "requestedCancellation": { - "description": "Output only. Identifies whether the user has requested cancellation of the operation. Operations that have been cancelled successfully have Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.", - "readOnly": true, - "type": "boolean" - }, - "statusMessage": { - "description": "Output only. Human-readable status of the operation, if any.", - "readOnly": true, - "type": "string" - }, - "target": { - "description": "Output only. Server-defined resource path for the target of the operation.", - "readOnly": true, - "type": "string" - }, - "verb": { - "description": "Output only. Name of the verb executed by the operation.", - "readOnly": true, - "type": "string" - } - }, - "type": "object" - }, "GoogleCloudBeyondcorpConnectionsV1alphaConnectionOperationMetadata": { "description": "Represents the metadata of the long-running operation.", "id": "GoogleCloudBeyondcorpConnectionsV1alphaConnectionOperationMetadata", diff --git a/beyondcorp/v1/beyondcorp-gen.go b/beyondcorp/v1/beyondcorp-gen.go index d2969485d32..3af6397a2e1 100644 --- a/beyondcorp/v1/beyondcorp-gen.go +++ b/beyondcorp/v1/beyondcorp-gen.go @@ -119,6 +119,7 @@ func New(client *http.Client) (*Service, error) { return nil, errors.New("client is nil") } s := &Service{client: client, BasePath: basePath} + s.Organizations = NewOrganizationsService(s) s.Projects = NewProjectsService(s) return s, nil } @@ -128,6 +129,8 @@ type Service struct { BasePath string // API endpoint base URL UserAgent string // optional additional User-Agent fragment + Organizations *OrganizationsService + Projects *ProjectsService } @@ -138,6 +141,39 @@ func (s *Service) userAgent() string { return googleapi.UserAgent + " " + s.UserAgent } +func NewOrganizationsService(s *Service) *OrganizationsService { + rs := &OrganizationsService{s: s} + rs.Locations = NewOrganizationsLocationsService(s) + return rs +} + +type OrganizationsService struct { + s *Service + + Locations *OrganizationsLocationsService +} + +func NewOrganizationsLocationsService(s *Service) *OrganizationsLocationsService { + rs := &OrganizationsLocationsService{s: s} + rs.Operations = NewOrganizationsLocationsOperationsService(s) + return rs +} + +type OrganizationsLocationsService struct { + s *Service + + Operations *OrganizationsLocationsOperationsService +} + +func NewOrganizationsLocationsOperationsService(s *Service) *OrganizationsLocationsOperationsService { + rs := &OrganizationsLocationsOperationsService{s: s} + return rs +} + +type OrganizationsLocationsOperationsService struct { + s *Service +} + func NewProjectsService(s *Service) *ProjectsService { rs := &ProjectsService{s: s} rs.Locations = NewProjectsLocationsService(s) @@ -1646,111 +1682,6 @@ func (s *GoogleCloudBeyondcorpAppgatewaysV1alphaAppGatewayOperationMetadata) Mar return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleCloudBeyondcorpClientconnectorservicesV1alphaClientConnectorServ -// iceOperationMetadata: Represents the metadata of the long-running -// operation. -type GoogleCloudBeyondcorpClientconnectorservicesV1alphaClientConnectorServiceOperationMetadata struct { - // ApiVersion: Output only. API version used to start the operation. - ApiVersion string `json:"apiVersion,omitempty"` - - // CreateTime: Output only. The time the operation was created. - CreateTime string `json:"createTime,omitempty"` - - // EndTime: Output only. The time the operation finished running. - EndTime string `json:"endTime,omitempty"` - - // RequestedCancellation: Output only. Identifies whether the user has - // requested cancellation of the operation. Operations that have - // successfully been cancelled have Operation.error value with a - // google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`. - RequestedCancellation bool `json:"requestedCancellation,omitempty"` - - // StatusMessage: Output only. Human-readable status of the operation, - // if any. - StatusMessage string `json:"statusMessage,omitempty"` - - // Target: Output only. Server-defined resource path for the target of - // the operation. - Target string `json:"target,omitempty"` - - // Verb: Output only. Name of the verb executed by the operation. - Verb string `json:"verb,omitempty"` - - // ForceSendFields is a list of field names (e.g. "ApiVersion") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ApiVersion") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. - NullFields []string `json:"-"` -} - -func (s *GoogleCloudBeyondcorpClientconnectorservicesV1alphaClientConnectorServiceOperationMetadata) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudBeyondcorpClientconnectorservicesV1alphaClientConnectorServiceOperationMetadata - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// GoogleCloudBeyondcorpClientgatewaysV1alphaClientGatewayOperationMetada -// ta: Represents the metadata of the long-running operation. -type GoogleCloudBeyondcorpClientgatewaysV1alphaClientGatewayOperationMetadata struct { - // ApiVersion: Output only. API version used to start the operation. - ApiVersion string `json:"apiVersion,omitempty"` - - // CreateTime: Output only. The time the operation was created. - CreateTime string `json:"createTime,omitempty"` - - // EndTime: Output only. The time the operation finished running. - EndTime string `json:"endTime,omitempty"` - - // RequestedCancellation: Output only. Identifies whether the user has - // requested cancellation of the operation. Operations that have been - // cancelled successfully have Operation.error value with a - // google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`. - RequestedCancellation bool `json:"requestedCancellation,omitempty"` - - // StatusMessage: Output only. Human-readable status of the operation, - // if any. - StatusMessage string `json:"statusMessage,omitempty"` - - // Target: Output only. Server-defined resource path for the target of - // the operation. - Target string `json:"target,omitempty"` - - // Verb: Output only. Name of the verb executed by the operation. - Verb string `json:"verb,omitempty"` - - // ForceSendFields is a list of field names (e.g. "ApiVersion") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ApiVersion") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. - NullFields []string `json:"-"` -} - -func (s *GoogleCloudBeyondcorpClientgatewaysV1alphaClientGatewayOperationMetadata) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudBeyondcorpClientgatewaysV1alphaClientGatewayOperationMetadata - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - // GoogleCloudBeyondcorpConnectionsV1alphaConnectionOperationMetadata: // Represents the metadata of the long-running operation. type GoogleCloudBeyondcorpConnectionsV1alphaConnectionOperationMetadata struct { @@ -2812,6 +2743,647 @@ func (s *Tunnelv1ProtoTunnelerInfo) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// method id "beyondcorp.organizations.locations.operations.cancel": + +type OrganizationsLocationsOperationsCancelCall struct { + s *Service + name string + googlelongrunningcanceloperationrequest *GoogleLongrunningCancelOperationRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Cancel: Starts asynchronous cancellation on a long-running operation. +// The server makes a best effort to cancel the operation, but success +// is not guaranteed. If the server doesn't support this method, it +// returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use +// Operations.GetOperation or other methods to check whether the +// cancellation succeeded or whether the operation completed despite +// cancellation. On successful cancellation, the operation is not +// deleted; instead, it becomes an operation with an Operation.error +// value with a google.rpc.Status.code of 1, corresponding to +// `Code.CANCELLED`. +// +// - name: The name of the operation resource to be cancelled. +func (r *OrganizationsLocationsOperationsService) Cancel(name string, googlelongrunningcanceloperationrequest *GoogleLongrunningCancelOperationRequest) *OrganizationsLocationsOperationsCancelCall { + c := &OrganizationsLocationsOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.googlelongrunningcanceloperationrequest = googlelongrunningcanceloperationrequest + 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 *OrganizationsLocationsOperationsCancelCall) Fields(s ...googleapi.Field) *OrganizationsLocationsOperationsCancelCall { + 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 *OrganizationsLocationsOperationsCancelCall) Context(ctx context.Context) *OrganizationsLocationsOperationsCancelCall { + 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 *OrganizationsLocationsOperationsCancelCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *OrganizationsLocationsOperationsCancelCall) 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.googlelongrunningcanceloperationrequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:cancel") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "beyondcorp.organizations.locations.operations.cancel" call. +// Exactly one of *Empty or error will be non-nil. Any non-2xx status +// code is an error. Response headers are in either +// *Empty.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified +// was returned. +func (c *OrganizationsLocationsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*Empty, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &Empty{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.", + // "flatPath": "v1/organizations/{organizationsId}/locations/{locationsId}/operations/{operationsId}:cancel", + // "httpMethod": "POST", + // "id": "beyondcorp.organizations.locations.operations.cancel", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "The name of the operation resource to be cancelled.", + // "location": "path", + // "pattern": "^organizations/[^/]+/locations/[^/]+/operations/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}:cancel", + // "request": { + // "$ref": "GoogleLongrunningCancelOperationRequest" + // }, + // "response": { + // "$ref": "Empty" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "beyondcorp.organizations.locations.operations.delete": + +type OrganizationsLocationsOperationsDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Delete: Deletes a long-running operation. This method indicates that +// the client is no longer interested in the operation result. It does +// not cancel the operation. If the server doesn't support this method, +// it returns `google.rpc.Code.UNIMPLEMENTED`. +// +// - name: The name of the operation resource to be deleted. +func (r *OrganizationsLocationsOperationsService) Delete(name string) *OrganizationsLocationsOperationsDeleteCall { + c := &OrganizationsLocationsOperationsDeleteCall{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 *OrganizationsLocationsOperationsDeleteCall) Fields(s ...googleapi.Field) *OrganizationsLocationsOperationsDeleteCall { + 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 *OrganizationsLocationsOperationsDeleteCall) Context(ctx context.Context) *OrganizationsLocationsOperationsDeleteCall { + 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 *OrganizationsLocationsOperationsDeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *OrganizationsLocationsOperationsDeleteCall) 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, "v1/{+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 "beyondcorp.organizations.locations.operations.delete" call. +// Exactly one of *Empty or error will be non-nil. Any non-2xx status +// code is an error. Response headers are in either +// *Empty.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified +// was returned. +func (c *OrganizationsLocationsOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &Empty{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.", + // "flatPath": "v1/organizations/{organizationsId}/locations/{locationsId}/operations/{operationsId}", + // "httpMethod": "DELETE", + // "id": "beyondcorp.organizations.locations.operations.delete", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "The name of the operation resource to be deleted.", + // "location": "path", + // "pattern": "^organizations/[^/]+/locations/[^/]+/operations/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}", + // "response": { + // "$ref": "Empty" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "beyondcorp.organizations.locations.operations.get": + +type OrganizationsLocationsOperationsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Gets the latest state of a long-running operation. Clients can +// use this method to poll the operation result at intervals as +// recommended by the API service. +// +// - name: The name of the operation resource. +func (r *OrganizationsLocationsOperationsService) Get(name string) *OrganizationsLocationsOperationsGetCall { + c := &OrganizationsLocationsOperationsGetCall{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 *OrganizationsLocationsOperationsGetCall) Fields(s ...googleapi.Field) *OrganizationsLocationsOperationsGetCall { + 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 *OrganizationsLocationsOperationsGetCall) IfNoneMatch(entityTag string) *OrganizationsLocationsOperationsGetCall { + 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 *OrganizationsLocationsOperationsGetCall) Context(ctx context.Context) *OrganizationsLocationsOperationsGetCall { + 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 *OrganizationsLocationsOperationsGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *OrganizationsLocationsOperationsGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "beyondcorp.organizations.locations.operations.get" call. +// Exactly one of *GoogleLongrunningOperation or error will be non-nil. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleLongrunningOperation.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 *OrganizationsLocationsOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleLongrunningOperation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.", + // "flatPath": "v1/organizations/{organizationsId}/locations/{locationsId}/operations/{operationsId}", + // "httpMethod": "GET", + // "id": "beyondcorp.organizations.locations.operations.get", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "The name of the operation resource.", + // "location": "path", + // "pattern": "^organizations/[^/]+/locations/[^/]+/operations/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}", + // "response": { + // "$ref": "GoogleLongrunningOperation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "beyondcorp.organizations.locations.operations.list": + +type OrganizationsLocationsOperationsListCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists operations that match the specified filter in the +// request. If the server doesn't support this method, it returns +// `UNIMPLEMENTED`. +// +// - name: The name of the operation's parent resource. +func (r *OrganizationsLocationsOperationsService) List(name string) *OrganizationsLocationsOperationsListCall { + c := &OrganizationsLocationsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Filter sets the optional parameter "filter": The standard list +// filter. +func (c *OrganizationsLocationsOperationsListCall) Filter(filter string) *OrganizationsLocationsOperationsListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// PageSize sets the optional parameter "pageSize": The standard list +// page size. +func (c *OrganizationsLocationsOperationsListCall) PageSize(pageSize int64) *OrganizationsLocationsOperationsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": The standard list +// page token. +func (c *OrganizationsLocationsOperationsListCall) PageToken(pageToken string) *OrganizationsLocationsOperationsListCall { + 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 *OrganizationsLocationsOperationsListCall) Fields(s ...googleapi.Field) *OrganizationsLocationsOperationsListCall { + 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 *OrganizationsLocationsOperationsListCall) IfNoneMatch(entityTag string) *OrganizationsLocationsOperationsListCall { + 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 *OrganizationsLocationsOperationsListCall) Context(ctx context.Context) *OrganizationsLocationsOperationsListCall { + 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 *OrganizationsLocationsOperationsListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *OrganizationsLocationsOperationsListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/operations") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "beyondcorp.organizations.locations.operations.list" call. +// Exactly one of *GoogleLongrunningListOperationsResponse or error will +// be non-nil. Any non-2xx status code is an error. Response headers are +// in either +// *GoogleLongrunningListOperationsResponse.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 *OrganizationsLocationsOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleLongrunningListOperationsResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.", + // "flatPath": "v1/organizations/{organizationsId}/locations/{locationsId}/operations", + // "httpMethod": "GET", + // "id": "beyondcorp.organizations.locations.operations.list", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "filter": { + // "description": "The standard list filter.", + // "location": "query", + // "type": "string" + // }, + // "name": { + // "description": "The name of the operation's parent resource.", + // "location": "path", + // "pattern": "^organizations/[^/]+/locations/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "pageSize": { + // "description": "The standard list page size.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "The standard list page token.", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1/{+name}/operations", + // "response": { + // "$ref": "GoogleLongrunningListOperationsResponse" + // }, + // "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 *OrganizationsLocationsOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) 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 "beyondcorp.projects.locations.get": type ProjectsLocationsGetCall struct { diff --git a/beyondcorp/v1alpha/beyondcorp-api.json b/beyondcorp/v1alpha/beyondcorp-api.json index 5ce19502cda..9f9a34c8ca2 100644 --- a/beyondcorp/v1alpha/beyondcorp-api.json +++ b/beyondcorp/v1alpha/beyondcorp-api.json @@ -1200,6 +1200,129 @@ } } }, + "operations": { + "methods": { + "cancel": { + "description": "Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.", + "flatPath": "v1alpha/organizations/{organizationsId}/locations/{locationsId}/operations/{operationsId}:cancel", + "httpMethod": "POST", + "id": "beyondcorp.organizations.locations.operations.cancel", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource to be cancelled.", + "location": "path", + "pattern": "^organizations/[^/]+/locations/[^/]+/operations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1alpha/{+name}:cancel", + "request": { + "$ref": "GoogleLongrunningCancelOperationRequest" + }, + "response": { + "$ref": "Empty" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "delete": { + "description": "Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.", + "flatPath": "v1alpha/organizations/{organizationsId}/locations/{locationsId}/operations/{operationsId}", + "httpMethod": "DELETE", + "id": "beyondcorp.organizations.locations.operations.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource to be deleted.", + "location": "path", + "pattern": "^organizations/[^/]+/locations/[^/]+/operations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1alpha/{+name}", + "response": { + "$ref": "Empty" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "get": { + "description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.", + "flatPath": "v1alpha/organizations/{organizationsId}/locations/{locationsId}/operations/{operationsId}", + "httpMethod": "GET", + "id": "beyondcorp.organizations.locations.operations.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource.", + "location": "path", + "pattern": "^organizations/[^/]+/locations/[^/]+/operations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1alpha/{+name}", + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.", + "flatPath": "v1alpha/organizations/{organizationsId}/locations/{locationsId}/operations", + "httpMethod": "GET", + "id": "beyondcorp.organizations.locations.operations.list", + "parameterOrder": [ + "name" + ], + "parameters": { + "filter": { + "description": "The standard list filter.", + "location": "query", + "type": "string" + }, + "name": { + "description": "The name of the operation's parent resource.", + "location": "path", + "pattern": "^organizations/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + }, + "pageSize": { + "description": "The standard list page size.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "The standard list page token.", + "location": "query", + "type": "string" + } + }, + "path": "v1alpha/{+name}/operations", + "response": { + "$ref": "GoogleLongrunningListOperationsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + }, "subscriptions": { "methods": { "create": { @@ -2360,109 +2483,6 @@ }, "clientConnectorServices": { "methods": { - "create": { - "description": "Creates a new ClientConnectorService in a given project and location.", - "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/clientConnectorServices", - "httpMethod": "POST", - "id": "beyondcorp.projects.locations.clientConnectorServices.create", - "parameterOrder": [ - "parent" - ], - "parameters": { - "clientConnectorServiceId": { - "description": "Optional. User-settable client connector service resource ID. * Must start with a letter. * Must contain between 4-63 characters from `/a-z-/`. * Must end with a number or a letter. A random system generated name will be assigned if not specified by the user.", - "location": "query", - "type": "string" - }, - "parent": { - "description": "Required. Value for parent.", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+$", - "required": true, - "type": "string" - }, - "requestId": { - "description": "Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).", - "location": "query", - "type": "string" - }, - "validateOnly": { - "description": "Optional. If set, validates request by executing a dry-run which would not alter the resource in any way.", - "location": "query", - "type": "boolean" - } - }, - "path": "v1alpha/{+parent}/clientConnectorServices", - "request": { - "$ref": "ClientConnectorService" - }, - "response": { - "$ref": "GoogleLongrunningOperation" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, - "delete": { - "description": "Deletes a single ClientConnectorService.", - "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/clientConnectorServices/{clientConnectorServicesId}", - "httpMethod": "DELETE", - "id": "beyondcorp.projects.locations.clientConnectorServices.delete", - "parameterOrder": [ - "name" - ], - "parameters": { - "name": { - "description": "Required. Name of the resource.", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/clientConnectorServices/[^/]+$", - "required": true, - "type": "string" - }, - "requestId": { - "description": "Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes after the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).", - "location": "query", - "type": "string" - }, - "validateOnly": { - "description": "Optional. If set, validates request by executing a dry-run which would not alter the resource in any way.", - "location": "query", - "type": "boolean" - } - }, - "path": "v1alpha/{+name}", - "response": { - "$ref": "GoogleLongrunningOperation" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, - "get": { - "description": "Gets details of a single ClientConnectorService.", - "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/clientConnectorServices/{clientConnectorServicesId}", - "httpMethod": "GET", - "id": "beyondcorp.projects.locations.clientConnectorServices.get", - "parameterOrder": [ - "name" - ], - "parameters": { - "name": { - "description": "Required. Name of the resource.", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/clientConnectorServices/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1alpha/{+name}", - "response": { - "$ref": "ClientConnectorService" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, "getIamPolicy": { "description": "Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.", "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/clientConnectorServices/{clientConnectorServicesId}:getIamPolicy", @@ -2494,101 +2514,6 @@ "https://www.googleapis.com/auth/cloud-platform" ] }, - "list": { - "description": "Lists ClientConnectorServices in a given project and location.", - "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/clientConnectorServices", - "httpMethod": "GET", - "id": "beyondcorp.projects.locations.clientConnectorServices.list", - "parameterOrder": [ - "parent" - ], - "parameters": { - "filter": { - "description": "Optional. Filtering results.", - "location": "query", - "type": "string" - }, - "orderBy": { - "description": "Optional. Hint for how to order the results.", - "location": "query", - "type": "string" - }, - "pageSize": { - "description": "Optional. Requested page size. Server may return fewer items than requested. If unspecified, server will pick an appropriate default.", - "format": "int32", - "location": "query", - "type": "integer" - }, - "pageToken": { - "description": "Optional. A token identifying a page of results the server should return.", - "location": "query", - "type": "string" - }, - "parent": { - "description": "Required. Parent value for ListClientConnectorServicesRequest.", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1alpha/{+parent}/clientConnectorServices", - "response": { - "$ref": "ListClientConnectorServicesResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, - "patch": { - "description": "Updates the parameters of a single ClientConnectorService.", - "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/clientConnectorServices/{clientConnectorServicesId}", - "httpMethod": "PATCH", - "id": "beyondcorp.projects.locations.clientConnectorServices.patch", - "parameterOrder": [ - "name" - ], - "parameters": { - "allowMissing": { - "description": "Optional. If set as true, will create the resource if it is not found.", - "location": "query", - "type": "boolean" - }, - "name": { - "description": "Required. Name of resource. The name is ignored during creation.", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/clientConnectorServices/[^/]+$", - "required": true, - "type": "string" - }, - "requestId": { - "description": "Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).", - "location": "query", - "type": "string" - }, - "updateMask": { - "description": "Required. Field mask is used to specify the fields to be overwritten in the ClientConnectorService resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten. Mutable fields: display_name, ingress.config.destination_routes.", - "format": "google-fieldmask", - "location": "query", - "type": "string" - }, - "validateOnly": { - "description": "Optional. If set, validates request by executing a dry-run which would not alter the resource in any way.", - "location": "query", - "type": "boolean" - } - }, - "path": "v1alpha/{+name}", - "request": { - "$ref": "ClientConnectorService" - }, - "response": { - "$ref": "GoogleLongrunningOperation" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, "setIamPolicy": { "description": "Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.", "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/clientConnectorServices/{clientConnectorServicesId}:setIamPolicy", @@ -2649,109 +2574,6 @@ }, "clientGateways": { "methods": { - "create": { - "description": "Creates a new ClientGateway in a given project and location.", - "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/clientGateways", - "httpMethod": "POST", - "id": "beyondcorp.projects.locations.clientGateways.create", - "parameterOrder": [ - "parent" - ], - "parameters": { - "clientGatewayId": { - "description": "Optional. User-settable client gateway resource ID. * Must start with a letter. * Must contain between 4-63 characters from `/a-z-/`. * Must end with a number or a letter.", - "location": "query", - "type": "string" - }, - "parent": { - "description": "Required. Value for parent.", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+$", - "required": true, - "type": "string" - }, - "requestId": { - "description": "Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).", - "location": "query", - "type": "string" - }, - "validateOnly": { - "description": "Optional. If set, validates request by executing a dry-run which would not alter the resource in any way.", - "location": "query", - "type": "boolean" - } - }, - "path": "v1alpha/{+parent}/clientGateways", - "request": { - "$ref": "ClientGateway" - }, - "response": { - "$ref": "GoogleLongrunningOperation" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, - "delete": { - "description": "Deletes a single ClientGateway.", - "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/clientGateways/{clientGatewaysId}", - "httpMethod": "DELETE", - "id": "beyondcorp.projects.locations.clientGateways.delete", - "parameterOrder": [ - "name" - ], - "parameters": { - "name": { - "description": "Required. Name of the resource", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/clientGateways/[^/]+$", - "required": true, - "type": "string" - }, - "requestId": { - "description": "Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes after the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).", - "location": "query", - "type": "string" - }, - "validateOnly": { - "description": "Optional. If set, validates request by executing a dry-run which would not alter the resource in any way.", - "location": "query", - "type": "boolean" - } - }, - "path": "v1alpha/{+name}", - "response": { - "$ref": "GoogleLongrunningOperation" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, - "get": { - "description": "Gets details of a single ClientGateway.", - "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/clientGateways/{clientGatewaysId}", - "httpMethod": "GET", - "id": "beyondcorp.projects.locations.clientGateways.get", - "parameterOrder": [ - "name" - ], - "parameters": { - "name": { - "description": "Required. Name of the resource", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/clientGateways/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1alpha/{+name}", - "response": { - "$ref": "ClientGateway" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, "getIamPolicy": { "description": "Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.", "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/clientGateways/{clientGatewaysId}:getIamPolicy", @@ -2761,69 +2583,23 @@ "resource" ], "parameters": { - "options.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", - "location": "query", - "type": "integer" - }, - "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/[^/]+/locations/[^/]+/clientGateways/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1alpha/{+resource}:getIamPolicy", - "response": { - "$ref": "GoogleIamV1Policy" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, - "list": { - "description": "Lists ClientGateways in a given project and location.", - "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/clientGateways", - "httpMethod": "GET", - "id": "beyondcorp.projects.locations.clientGateways.list", - "parameterOrder": [ - "parent" - ], - "parameters": { - "filter": { - "description": "Optional. Filtering results.", - "location": "query", - "type": "string" - }, - "orderBy": { - "description": "Optional. Hint for how to order the results.", - "location": "query", - "type": "string" - }, - "pageSize": { - "description": "Optional. Requested page size. Server may return fewer items than requested. If unspecified, server will pick an appropriate default.", + "options.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", "location": "query", "type": "integer" }, - "pageToken": { - "description": "Optional. A token identifying a page of results the server should return.", - "location": "query", - "type": "string" - }, - "parent": { - "description": "Required. Parent value for ListClientGatewaysRequest.", + "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/[^/]+/locations/[^/]+$", + "pattern": "^projects/[^/]+/locations/[^/]+/clientGateways/[^/]+$", "required": true, "type": "string" } }, - "path": "v1alpha/{+parent}/clientGateways", + "path": "v1alpha/{+resource}:getIamPolicy", "response": { - "$ref": "ListClientGatewaysResponse" + "$ref": "GoogleIamV1Policy" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform" @@ -3968,7 +3744,7 @@ } } }, - "revision": "20230613", + "revision": "20230616", "rootUrl": "https://beyondcorp.googleapis.com/", "schemas": { "AllocatedConnection": { @@ -4144,208 +3920,6 @@ }, "type": "object" }, - "ClientConnectorService": { - "description": "Message describing ClientConnectorService object.", - "id": "ClientConnectorService", - "properties": { - "createTime": { - "description": "Output only. [Output only] Create time stamp.", - "format": "google-datetime", - "readOnly": true, - "type": "string" - }, - "displayName": { - "description": "Optional. User-provided name. The display name should follow certain format. * Must be 6 to 30 characters in length. * Can only contain lowercase letters, numbers, and hyphens. * Must start with a letter.", - "type": "string" - }, - "egress": { - "$ref": "Egress", - "description": "Required. The details of the egress settings." - }, - "ingress": { - "$ref": "Ingress", - "description": "Required. The details of the ingress settings." - }, - "name": { - "description": "Required. Name of resource. The name is ignored during creation.", - "type": "string" - }, - "state": { - "description": "Output only. The operational state of the ClientConnectorService.", - "enum": [ - "STATE_UNSPECIFIED", - "CREATING", - "UPDATING", - "DELETING", - "RUNNING", - "DOWN", - "ERROR" - ], - "enumDescriptions": [ - "Default value. This value is unused.", - "ClientConnectorService is being created.", - "ClientConnectorService is being updated.", - "ClientConnectorService is being deleted.", - "ClientConnectorService is running.", - "ClientConnectorService is down and may be restored in the future. This happens when CCFE sends ProjectState = OFF.", - "ClientConnectorService encountered an error and is in an indeterministic state." - ], - "readOnly": true, - "type": "string" - }, - "updateTime": { - "description": "Output only. [Output only] Update time stamp.", - "format": "google-datetime", - "readOnly": true, - "type": "string" - } - }, - "type": "object" - }, - "ClientConnectorServiceOperationMetadata": { - "description": "Represents the metadata of the long-running operation.", - "id": "ClientConnectorServiceOperationMetadata", - "properties": { - "apiVersion": { - "description": "Output only. API version used to start the operation.", - "readOnly": true, - "type": "string" - }, - "createTime": { - "description": "Output only. The time the operation was created.", - "format": "google-datetime", - "readOnly": true, - "type": "string" - }, - "endTime": { - "description": "Output only. The time the operation finished running.", - "format": "google-datetime", - "readOnly": true, - "type": "string" - }, - "requestedCancellation": { - "description": "Output only. Identifies whether the user has requested cancellation of the operation. Operations that have successfully been cancelled have Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.", - "readOnly": true, - "type": "boolean" - }, - "statusMessage": { - "description": "Output only. Human-readable status of the operation, if any.", - "readOnly": true, - "type": "string" - }, - "target": { - "description": "Output only. Server-defined resource path for the target of the operation.", - "readOnly": true, - "type": "string" - }, - "verb": { - "description": "Output only. Name of the verb executed by the operation.", - "readOnly": true, - "type": "string" - } - }, - "type": "object" - }, - "ClientGateway": { - "description": "Message describing ClientGateway object.", - "id": "ClientGateway", - "properties": { - "clientConnectorService": { - "description": "Output only. The client connector service name that the client gateway is associated to. Client Connector Services, named as follows: `projects/{project_id}/locations/{location_id}/client_connector_services/{client_connector_service_id}`.", - "readOnly": true, - "type": "string" - }, - "createTime": { - "description": "Output only. [Output only] Create time stamp.", - "format": "google-datetime", - "readOnly": true, - "type": "string" - }, - "id": { - "description": "Output only. A unique identifier for the instance generated by the system.", - "readOnly": true, - "type": "string" - }, - "name": { - "description": "Required. name of resource. The name is ignored during creation.", - "type": "string" - }, - "state": { - "description": "Output only. The operational state of the gateway.", - "enum": [ - "STATE_UNSPECIFIED", - "CREATING", - "UPDATING", - "DELETING", - "RUNNING", - "DOWN", - "ERROR" - ], - "enumDescriptions": [ - "Default value. This value is unused.", - "Gateway is being created.", - "Gateway is being updated.", - "Gateway is being deleted.", - "Gateway is running.", - "Gateway is down and may be restored in the future. This happens when CCFE sends ProjectState = OFF.", - "ClientGateway encountered an error and is in indeterministic state." - ], - "readOnly": true, - "type": "string" - }, - "updateTime": { - "description": "Output only. [Output only] Update time stamp.", - "format": "google-datetime", - "readOnly": true, - "type": "string" - } - }, - "type": "object" - }, - "ClientGatewayOperationMetadata": { - "description": "Represents the metadata of the long-running operation.", - "id": "ClientGatewayOperationMetadata", - "properties": { - "apiVersion": { - "description": "Output only. API version used to start the operation.", - "readOnly": true, - "type": "string" - }, - "createTime": { - "description": "Output only. The time the operation was created.", - "format": "google-datetime", - "readOnly": true, - "type": "string" - }, - "endTime": { - "description": "Output only. The time the operation finished running.", - "format": "google-datetime", - "readOnly": true, - "type": "string" - }, - "requestedCancellation": { - "description": "Output only. Identifies whether the user has requested cancellation of the operation. Operations that have been cancelled successfully have Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.", - "readOnly": true, - "type": "boolean" - }, - "statusMessage": { - "description": "Output only. Human-readable status of the operation, if any.", - "readOnly": true, - "type": "string" - }, - "target": { - "description": "Output only. Server-defined resource path for the target of the operation.", - "readOnly": true, - "type": "string" - }, - "verb": { - "description": "Output only. Name of the verb executed by the operation.", - "readOnly": true, - "type": "string" - } - }, - "type": "object" - }, "CloudPubSubNotificationConfig": { "description": "The configuration for Pub/Sub messaging for the connector.", "id": "CloudPubSubNotificationConfig", @@ -4441,32 +4015,6 @@ "properties": {}, "type": "object" }, - "Config": { - "description": "The basic ingress config for ClientGateways.", - "id": "Config", - "properties": { - "destinationRoutes": { - "description": "Required. The settings used to configure basic ClientGateways.", - "items": { - "$ref": "DestinationRoute" - }, - "type": "array" - }, - "transportProtocol": { - "description": "Required. Immutable. The transport protocol used between the client and the server.", - "enum": [ - "TRANSPORT_PROTOCOL_UNSPECIFIED", - "TCP" - ], - "enumDescriptions": [ - "Default value. This value is unused.", - "TCP protocol." - ], - "type": "string" - } - }, - "type": "object" - }, "Connection": { "description": "A BeyondCorp Connection resource represents a BeyondCorp protected connection to a remote application. It creates all the necessary GCP components needed for creating a BeyondCorp protected connection. Multiple connectors can be authorised for a single Connection.", "id": "Connection", @@ -4782,32 +4330,6 @@ }, "type": "object" }, - "DestinationRoute": { - "description": "The setting used to configure ClientGateways. It is adding routes to the client's routing table after the connection is established.", - "id": "DestinationRoute", - "properties": { - "address": { - "description": "Required. The network address of the subnet for which the packet is routed to the ClientGateway.", - "type": "string" - }, - "netmask": { - "description": "Required. The network mask of the subnet for which the packet is routed to the ClientGateway.", - "type": "string" - } - }, - "type": "object" - }, - "Egress": { - "description": "The details of the egress info. One of the following options should be set.", - "id": "Egress", - "properties": { - "peeredVpc": { - "$ref": "PeeredVpc", - "description": "A VPC from the consumer project." - } - }, - "type": "object" - }, "Empty": { "description": "A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }", "id": "Empty", @@ -5679,6 +5201,10 @@ "description": "Metadata associated with PartnerTenant and is provided by the Partner.", "id": "GoogleCloudBeyondcorpPartnerservicesV1alphaPartnerMetadata", "properties": { + "internalTenantId": { + "description": "Optional. UUID used by the Partner to refer to the PartnerTenant in their internal systems.", + "type": "string" + }, "partnerTenantId": { "description": "Optional. UUID used by the Partner to refer to the PartnerTenant in their internal systems.", "type": "string" @@ -6657,17 +6183,6 @@ }, "type": "object" }, - "Ingress": { - "description": "Settings of how to connect to the ClientGateway. One of the following options should be set.", - "id": "Ingress", - "properties": { - "config": { - "$ref": "Config", - "description": "The basic ingress config for ClientGateways." - } - }, - "type": "object" - }, "ListAppGatewaysResponse": { "description": "Response message for BeyondCorp.ListAppGateways.", "id": "ListAppGatewaysResponse", @@ -6693,56 +6208,6 @@ }, "type": "object" }, - "ListClientConnectorServicesResponse": { - "description": "Message for response to listing ClientConnectorServices.", - "id": "ListClientConnectorServicesResponse", - "properties": { - "clientConnectorServices": { - "description": "The list of ClientConnectorService.", - "items": { - "$ref": "ClientConnectorService" - }, - "type": "array" - }, - "nextPageToken": { - "description": "A token identifying a page of results the server should return.", - "type": "string" - }, - "unreachable": { - "description": "Locations that could not be reached.", - "items": { - "type": "string" - }, - "type": "array" - } - }, - "type": "object" - }, - "ListClientGatewaysResponse": { - "description": "Message for response to listing ClientGateways.", - "id": "ListClientGatewaysResponse", - "properties": { - "clientGateways": { - "description": "The list of ClientGateway.", - "items": { - "$ref": "ClientGateway" - }, - "type": "array" - }, - "nextPageToken": { - "description": "A token identifying a page of results the server should return.", - "type": "string" - }, - "unreachable": { - "description": "Locations that could not be reached.", - "items": { - "type": "string" - }, - "type": "array" - } - }, - "type": "object" - }, "ListConnectionsResponse": { "description": "Response message for BeyondCorp.ListConnections.", "id": "ListConnectionsResponse", @@ -6804,17 +6269,6 @@ }, "type": "object" }, - "PeeredVpc": { - "description": "The peered VPC owned by the consumer project.", - "id": "PeeredVpc", - "properties": { - "networkVpc": { - "description": "Required. The name of the peered VPC owned by the consumer project.", - "type": "string" - } - }, - "type": "object" - }, "PrincipalInfo": { "description": "PrincipalInfo represents an Identity oneof.", "id": "PrincipalInfo", diff --git a/beyondcorp/v1alpha/beyondcorp-gen.go b/beyondcorp/v1alpha/beyondcorp-gen.go index 5e0c9e0a551..e8be08da176 100644 --- a/beyondcorp/v1alpha/beyondcorp-gen.go +++ b/beyondcorp/v1alpha/beyondcorp-gen.go @@ -157,6 +157,7 @@ func NewOrganizationsLocationsService(s *Service) *OrganizationsLocationsService rs := &OrganizationsLocationsService{s: s} rs.Global = NewOrganizationsLocationsGlobalService(s) rs.Insights = NewOrganizationsLocationsInsightsService(s) + rs.Operations = NewOrganizationsLocationsOperationsService(s) rs.Subscriptions = NewOrganizationsLocationsSubscriptionsService(s) return rs } @@ -168,6 +169,8 @@ type OrganizationsLocationsService struct { Insights *OrganizationsLocationsInsightsService + Operations *OrganizationsLocationsOperationsService + Subscriptions *OrganizationsLocationsSubscriptionsService } @@ -249,6 +252,15 @@ type OrganizationsLocationsInsightsService struct { s *Service } +func NewOrganizationsLocationsOperationsService(s *Service) *OrganizationsLocationsOperationsService { + rs := &OrganizationsLocationsOperationsService{s: s} + return rs +} + +type OrganizationsLocationsOperationsService struct { + s *Service +} + func NewOrganizationsLocationsSubscriptionsService(s *Service) *OrganizationsLocationsSubscriptionsService { rs := &OrganizationsLocationsSubscriptionsService{s: s} return rs @@ -621,243 +633,6 @@ func (s *ApplicationEndpoint) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// ClientConnectorService: Message describing ClientConnectorService -// object. -type ClientConnectorService struct { - // CreateTime: Output only. [Output only] Create time stamp. - CreateTime string `json:"createTime,omitempty"` - - // DisplayName: Optional. User-provided name. The display name should - // follow certain format. * Must be 6 to 30 characters in length. * Can - // only contain lowercase letters, numbers, and hyphens. * Must start - // with a letter. - DisplayName string `json:"displayName,omitempty"` - - // Egress: Required. The details of the egress settings. - Egress *Egress `json:"egress,omitempty"` - - // Ingress: Required. The details of the ingress settings. - Ingress *Ingress `json:"ingress,omitempty"` - - // Name: Required. Name of resource. The name is ignored during - // creation. - Name string `json:"name,omitempty"` - - // State: Output only. The operational state of the - // ClientConnectorService. - // - // Possible values: - // "STATE_UNSPECIFIED" - Default value. This value is unused. - // "CREATING" - ClientConnectorService is being created. - // "UPDATING" - ClientConnectorService is being updated. - // "DELETING" - ClientConnectorService is being deleted. - // "RUNNING" - ClientConnectorService is running. - // "DOWN" - ClientConnectorService is down and may be restored in the - // future. This happens when CCFE sends ProjectState = OFF. - // "ERROR" - ClientConnectorService encountered an error and is in an - // indeterministic state. - State string `json:"state,omitempty"` - - // UpdateTime: Output only. [Output only] Update time stamp. - UpdateTime string `json:"updateTime,omitempty"` - - // ServerResponse contains the HTTP response code and headers from the - // server. - googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "CreateTime") 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. "CreateTime") 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 *ClientConnectorService) MarshalJSON() ([]byte, error) { - type NoMethod ClientConnectorService - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// ClientConnectorServiceOperationMetadata: Represents the metadata of -// the long-running operation. -type ClientConnectorServiceOperationMetadata struct { - // ApiVersion: Output only. API version used to start the operation. - ApiVersion string `json:"apiVersion,omitempty"` - - // CreateTime: Output only. The time the operation was created. - CreateTime string `json:"createTime,omitempty"` - - // EndTime: Output only. The time the operation finished running. - EndTime string `json:"endTime,omitempty"` - - // RequestedCancellation: Output only. Identifies whether the user has - // requested cancellation of the operation. Operations that have - // successfully been cancelled have Operation.error value with a - // google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`. - RequestedCancellation bool `json:"requestedCancellation,omitempty"` - - // StatusMessage: Output only. Human-readable status of the operation, - // if any. - StatusMessage string `json:"statusMessage,omitempty"` - - // Target: Output only. Server-defined resource path for the target of - // the operation. - Target string `json:"target,omitempty"` - - // Verb: Output only. Name of the verb executed by the operation. - Verb string `json:"verb,omitempty"` - - // ForceSendFields is a list of field names (e.g. "ApiVersion") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ApiVersion") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. - NullFields []string `json:"-"` -} - -func (s *ClientConnectorServiceOperationMetadata) MarshalJSON() ([]byte, error) { - type NoMethod ClientConnectorServiceOperationMetadata - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// ClientGateway: Message describing ClientGateway object. -type ClientGateway struct { - // ClientConnectorService: Output only. The client connector service - // name that the client gateway is associated to. Client Connector - // Services, named as follows: - // `projects/{project_id}/locations/{location_id}/client_connector_servic - // es/{client_connector_service_id}`. - ClientConnectorService string `json:"clientConnectorService,omitempty"` - - // CreateTime: Output only. [Output only] Create time stamp. - CreateTime string `json:"createTime,omitempty"` - - // Id: Output only. A unique identifier for the instance generated by - // the system. - Id string `json:"id,omitempty"` - - // Name: Required. name of resource. The name is ignored during - // creation. - Name string `json:"name,omitempty"` - - // State: Output only. The operational state of the gateway. - // - // Possible values: - // "STATE_UNSPECIFIED" - Default value. This value is unused. - // "CREATING" - Gateway is being created. - // "UPDATING" - Gateway is being updated. - // "DELETING" - Gateway is being deleted. - // "RUNNING" - Gateway is running. - // "DOWN" - Gateway is down and may be restored in the future. This - // happens when CCFE sends ProjectState = OFF. - // "ERROR" - ClientGateway encountered an error and is in - // indeterministic state. - State string `json:"state,omitempty"` - - // UpdateTime: Output only. [Output only] Update time stamp. - UpdateTime string `json:"updateTime,omitempty"` - - // ServerResponse contains the HTTP response code and headers from the - // server. - googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. - // "ClientConnectorService") 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. "ClientConnectorService") - // 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 *ClientGateway) MarshalJSON() ([]byte, error) { - type NoMethod ClientGateway - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// ClientGatewayOperationMetadata: Represents the metadata of the -// long-running operation. -type ClientGatewayOperationMetadata struct { - // ApiVersion: Output only. API version used to start the operation. - ApiVersion string `json:"apiVersion,omitempty"` - - // CreateTime: Output only. The time the operation was created. - CreateTime string `json:"createTime,omitempty"` - - // EndTime: Output only. The time the operation finished running. - EndTime string `json:"endTime,omitempty"` - - // RequestedCancellation: Output only. Identifies whether the user has - // requested cancellation of the operation. Operations that have been - // cancelled successfully have Operation.error value with a - // google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`. - RequestedCancellation bool `json:"requestedCancellation,omitempty"` - - // StatusMessage: Output only. Human-readable status of the operation, - // if any. - StatusMessage string `json:"statusMessage,omitempty"` - - // Target: Output only. Server-defined resource path for the target of - // the operation. - Target string `json:"target,omitempty"` - - // Verb: Output only. Name of the verb executed by the operation. - Verb string `json:"verb,omitempty"` - - // ForceSendFields is a list of field names (e.g. "ApiVersion") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ApiVersion") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. - NullFields []string `json:"-"` -} - -func (s *ClientGatewayOperationMetadata) MarshalJSON() ([]byte, error) { - type NoMethod ClientGatewayOperationMetadata - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - // CloudPubSubNotificationConfig: The configuration for Pub/Sub // messaging for the connector. type CloudPubSubNotificationConfig struct { @@ -1015,45 +790,6 @@ func (s *CloudSecurityZerotrustApplinkAppConnectorProtoGateway) MarshalJSON() ([ type CloudSecurityZerotrustApplinkLogagentProtoLogAgentDetails struct { } -// Config: The basic ingress config for ClientGateways. -type Config struct { - // DestinationRoutes: Required. The settings used to configure basic - // ClientGateways. - DestinationRoutes []*DestinationRoute `json:"destinationRoutes,omitempty"` - - // TransportProtocol: Required. Immutable. The transport protocol used - // between the client and the server. - // - // Possible values: - // "TRANSPORT_PROTOCOL_UNSPECIFIED" - Default value. This value is - // unused. - // "TCP" - TCP protocol. - TransportProtocol string `json:"transportProtocol,omitempty"` - - // ForceSendFields is a list of field names (e.g. "DestinationRoutes") - // 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. "DestinationRoutes") 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 *Config) MarshalJSON() ([]byte, error) { - type NoMethod Config - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - // Connection: A BeyondCorp Connection resource represents a BeyondCorp // protected connection to a remote application. It creates all the // necessary GCP components needed for creating a BeyondCorp protected @@ -1443,70 +1179,6 @@ func (s *ContainerHealthDetails) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// DestinationRoute: The setting used to configure ClientGateways. It is -// adding routes to the client's routing table after the connection is -// established. -type DestinationRoute struct { - // Address: Required. The network address of the subnet for which the - // packet is routed to the ClientGateway. - Address string `json:"address,omitempty"` - - // Netmask: Required. The network mask of the subnet for which the - // packet is routed to the ClientGateway. - Netmask string `json:"netmask,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Address") 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. "Address") 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 *DestinationRoute) MarshalJSON() ([]byte, error) { - type NoMethod DestinationRoute - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// Egress: The details of the egress info. One of the following options -// should be set. -type Egress struct { - // PeeredVpc: A VPC from the consumer project. - PeeredVpc *PeeredVpc `json:"peeredVpc,omitempty"` - - // ForceSendFields is a list of field names (e.g. "PeeredVpc") 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. "PeeredVpc") 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 *Egress) MarshalJSON() ([]byte, error) { - type NoMethod Egress - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - // Empty: A generic empty message that you can re-use to avoid defining // duplicated empty messages in your APIs. A typical example is to use // it as the request or the response type of an API method. For @@ -2835,11 +2507,15 @@ func (s *GoogleCloudBeyondcorpPartnerservicesV1alphaListProxyConfigsResponse) Ma // GoogleCloudBeyondcorpPartnerservicesV1alphaPartnerMetadata: Metadata // associated with PartnerTenant and is provided by the Partner. type GoogleCloudBeyondcorpPartnerservicesV1alphaPartnerMetadata struct { + // InternalTenantId: Optional. UUID used by the Partner to refer to the + // PartnerTenant in their internal systems. + InternalTenantId string `json:"internalTenantId,omitempty"` + // PartnerTenantId: Optional. UUID used by the Partner to refer to the // PartnerTenant in their internal systems. PartnerTenantId string `json:"partnerTenantId,omitempty"` - // ForceSendFields is a list of field names (e.g. "PartnerTenantId") to + // ForceSendFields is a list of field names (e.g. "InternalTenantId") 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 @@ -2847,7 +2523,7 @@ type GoogleCloudBeyondcorpPartnerservicesV1alphaPartnerMetadata struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "PartnerTenantId") to + // NullFields is a list of field names (e.g. "InternalTenantId") 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 @@ -4473,40 +4149,11 @@ func (s *ImageConfig) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// Ingress: Settings of how to connect to the ClientGateway. One of the -// following options should be set. -type Ingress struct { - // Config: The basic ingress config for ClientGateways. - Config *Config `json:"config,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Config") 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. "Config") 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 *Ingress) MarshalJSON() ([]byte, error) { - type NoMethod Ingress - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// ListAppGatewaysResponse: Response message for -// BeyondCorp.ListAppGateways. -type ListAppGatewaysResponse struct { - // AppGateways: A list of BeyondCorp AppGateways in the project. - AppGateways []*AppGateway `json:"appGateways,omitempty"` +// ListAppGatewaysResponse: Response message for +// BeyondCorp.ListAppGateways. +type ListAppGatewaysResponse struct { + // AppGateways: A list of BeyondCorp AppGateways in the project. + AppGateways []*AppGateway `json:"appGateways,omitempty"` // NextPageToken: A token to retrieve the next page of results, or empty // if there are no more results in the list. @@ -4542,89 +4189,6 @@ func (s *ListAppGatewaysResponse) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// ListClientConnectorServicesResponse: Message for response to listing -// ClientConnectorServices. -type ListClientConnectorServicesResponse struct { - // ClientConnectorServices: The list of ClientConnectorService. - ClientConnectorServices []*ClientConnectorService `json:"clientConnectorServices,omitempty"` - - // NextPageToken: A token identifying a page of results the server - // should return. - NextPageToken string `json:"nextPageToken,omitempty"` - - // Unreachable: Locations that could not be reached. - Unreachable []string `json:"unreachable,omitempty"` - - // ServerResponse contains the HTTP response code and headers from the - // server. - googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. - // "ClientConnectorServices") 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. "ClientConnectorServices") - // 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 *ListClientConnectorServicesResponse) MarshalJSON() ([]byte, error) { - type NoMethod ListClientConnectorServicesResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// ListClientGatewaysResponse: Message for response to listing -// ClientGateways. -type ListClientGatewaysResponse struct { - // ClientGateways: The list of ClientGateway. - ClientGateways []*ClientGateway `json:"clientGateways,omitempty"` - - // NextPageToken: A token identifying a page of results the server - // should return. - NextPageToken string `json:"nextPageToken,omitempty"` - - // Unreachable: Locations that could not be reached. - Unreachable []string `json:"unreachable,omitempty"` - - // ServerResponse contains the HTTP response code and headers from the - // server. - googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "ClientGateways") 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. "ClientGateways") 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 *ListClientGatewaysResponse) MarshalJSON() ([]byte, error) { - type NoMethod ListClientGatewaysResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - // ListConnectionsResponse: Response message for // BeyondCorp.ListConnections. type ListConnectionsResponse struct { @@ -4736,35 +4300,6 @@ func (s *NotificationConfig) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// PeeredVpc: The peered VPC owned by the consumer project. -type PeeredVpc struct { - // NetworkVpc: Required. The name of the peered VPC owned by the - // consumer project. - NetworkVpc string `json:"networkVpc,omitempty"` - - // ForceSendFields is a list of field names (e.g. "NetworkVpc") 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. "NetworkVpc") 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 *PeeredVpc) MarshalJSON() ([]byte, error) { - type NoMethod PeeredVpc - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - // PrincipalInfo: PrincipalInfo represents an Identity oneof. type PrincipalInfo struct { // ServiceAccount: A GCP service account. @@ -10522,34 +10057,40 @@ func (c *OrganizationsLocationsInsightsListCall) Pages(ctx context.Context, f fu } } -// method id "beyondcorp.organizations.locations.subscriptions.create": +// method id "beyondcorp.organizations.locations.operations.cancel": -type OrganizationsLocationsSubscriptionsCreateCall struct { - s *Service - parent string - googlecloudbeyondcorpsaasplatformsubscriptionsv1alphasubscription *GoogleCloudBeyondcorpSaasplatformSubscriptionsV1alphaSubscription - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type OrganizationsLocationsOperationsCancelCall struct { + s *Service + name string + googlelongrunningcanceloperationrequest *GoogleLongrunningCancelOperationRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Create: Creates a new BeyondCorp Enterprise Subscription in a given -// organization. Location will always be global as BeyondCorp -// subscriptions are per organization. +// Cancel: Starts asynchronous cancellation on a long-running operation. +// The server makes a best effort to cancel the operation, but success +// is not guaranteed. If the server doesn't support this method, it +// returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use +// Operations.GetOperation or other methods to check whether the +// cancellation succeeded or whether the operation completed despite +// cancellation. On successful cancellation, the operation is not +// deleted; instead, it becomes an operation with an Operation.error +// value with a google.rpc.Status.code of 1, corresponding to +// `Code.CANCELLED`. // -// - parent: The resource name of the subscription location using the -// form: `organizations/{organization_id}/locations/{location}`. -func (r *OrganizationsLocationsSubscriptionsService) Create(parent string, googlecloudbeyondcorpsaasplatformsubscriptionsv1alphasubscription *GoogleCloudBeyondcorpSaasplatformSubscriptionsV1alphaSubscription) *OrganizationsLocationsSubscriptionsCreateCall { - c := &OrganizationsLocationsSubscriptionsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - c.googlecloudbeyondcorpsaasplatformsubscriptionsv1alphasubscription = googlecloudbeyondcorpsaasplatformsubscriptionsv1alphasubscription +// - name: The name of the operation resource to be cancelled. +func (r *OrganizationsLocationsOperationsService) Cancel(name string, googlelongrunningcanceloperationrequest *GoogleLongrunningCancelOperationRequest) *OrganizationsLocationsOperationsCancelCall { + c := &OrganizationsLocationsOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.googlelongrunningcanceloperationrequest = googlelongrunningcanceloperationrequest 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 *OrganizationsLocationsSubscriptionsCreateCall) Fields(s ...googleapi.Field) *OrganizationsLocationsSubscriptionsCreateCall { +func (c *OrganizationsLocationsOperationsCancelCall) Fields(s ...googleapi.Field) *OrganizationsLocationsOperationsCancelCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -10557,21 +10098,21 @@ func (c *OrganizationsLocationsSubscriptionsCreateCall) Fields(s ...googleapi.Fi // 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 *OrganizationsLocationsSubscriptionsCreateCall) Context(ctx context.Context) *OrganizationsLocationsSubscriptionsCreateCall { +func (c *OrganizationsLocationsOperationsCancelCall) Context(ctx context.Context) *OrganizationsLocationsOperationsCancelCall { 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 *OrganizationsLocationsSubscriptionsCreateCall) Header() http.Header { +func (c *OrganizationsLocationsOperationsCancelCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *OrganizationsLocationsSubscriptionsCreateCall) doRequest(alt string) (*http.Response, error) { +func (c *OrganizationsLocationsOperationsCancelCall) 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_ { @@ -10579,14 +10120,14 @@ func (c *OrganizationsLocationsSubscriptionsCreateCall) doRequest(alt string) (* } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudbeyondcorpsaasplatformsubscriptionsv1alphasubscription) + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlelongrunningcanceloperationrequest) 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, "v1alpha/{+parent}/subscriptions") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}:cancel") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -10594,22 +10135,19 @@ func (c *OrganizationsLocationsSubscriptionsCreateCall) doRequest(alt string) (* } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "parent": c.parent, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "beyondcorp.organizations.locations.subscriptions.create" call. -// Exactly one of -// *GoogleCloudBeyondcorpSaasplatformSubscriptionsV1alphaSubscription or -// error will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudBeyondcorpSaasplatformSubscriptionsV1alphaSubscription.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 *OrganizationsLocationsSubscriptionsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudBeyondcorpSaasplatformSubscriptionsV1alphaSubscription, error) { +// Do executes the "beyondcorp.organizations.locations.operations.cancel" call. +// Exactly one of *Empty or error will be non-nil. Any non-2xx status +// code is an error. Response headers are in either +// *Empty.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified +// was returned. +func (c *OrganizationsLocationsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*Empty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -10628,7 +10166,7 @@ func (c *OrganizationsLocationsSubscriptionsCreateCall) Do(opts ...googleapi.Cal if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudBeyondcorpSaasplatformSubscriptionsV1alphaSubscription{ + ret := &Empty{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -10640,51 +10178,54 @@ func (c *OrganizationsLocationsSubscriptionsCreateCall) Do(opts ...googleapi.Cal } return ret, nil // { - // "description": "Creates a new BeyondCorp Enterprise Subscription in a given organization. Location will always be global as BeyondCorp subscriptions are per organization.", - // "flatPath": "v1alpha/organizations/{organizationsId}/locations/{locationsId}/subscriptions", + // "description": "Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.", + // "flatPath": "v1alpha/organizations/{organizationsId}/locations/{locationsId}/operations/{operationsId}:cancel", // "httpMethod": "POST", - // "id": "beyondcorp.organizations.locations.subscriptions.create", + // "id": "beyondcorp.organizations.locations.operations.cancel", // "parameterOrder": [ - // "parent" + // "name" // ], // "parameters": { - // "parent": { - // "description": "Required. The resource name of the subscription location using the form: `organizations/{organization_id}/locations/{location}`", + // "name": { + // "description": "The name of the operation resource to be cancelled.", // "location": "path", - // "pattern": "^organizations/[^/]+/locations/[^/]+$", + // "pattern": "^organizations/[^/]+/locations/[^/]+/operations/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1alpha/{+parent}/subscriptions", + // "path": "v1alpha/{+name}:cancel", // "request": { - // "$ref": "GoogleCloudBeyondcorpSaasplatformSubscriptionsV1alphaSubscription" + // "$ref": "GoogleLongrunningCancelOperationRequest" // }, // "response": { - // "$ref": "GoogleCloudBeyondcorpSaasplatformSubscriptionsV1alphaSubscription" - // } + // "$ref": "Empty" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] // } } -// method id "beyondcorp.organizations.locations.subscriptions.get": +// method id "beyondcorp.organizations.locations.operations.delete": -type OrganizationsLocationsSubscriptionsGetCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +type OrganizationsLocationsOperationsDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Get: Gets details of a single Subscription. +// Delete: Deletes a long-running operation. This method indicates that +// the client is no longer interested in the operation result. It does +// not cancel the operation. If the server doesn't support this method, +// it returns `google.rpc.Code.UNIMPLEMENTED`. // -// - name: The resource name of Subscription using the form: -// `organizations/{organization_id}/locations/{location}/subscriptions/ -// {subscription_id}`. -func (r *OrganizationsLocationsSubscriptionsService) Get(name string) *OrganizationsLocationsSubscriptionsGetCall { - c := &OrganizationsLocationsSubscriptionsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The name of the operation resource to be deleted. +func (r *OrganizationsLocationsOperationsService) Delete(name string) *OrganizationsLocationsOperationsDeleteCall { + c := &OrganizationsLocationsOperationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -10692,54 +10233,41 @@ func (r *OrganizationsLocationsSubscriptionsService) Get(name string) *Organizat // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *OrganizationsLocationsSubscriptionsGetCall) Fields(s ...googleapi.Field) *OrganizationsLocationsSubscriptionsGetCall { +func (c *OrganizationsLocationsOperationsDeleteCall) Fields(s ...googleapi.Field) *OrganizationsLocationsOperationsDeleteCall { 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 *OrganizationsLocationsSubscriptionsGetCall) IfNoneMatch(entityTag string) *OrganizationsLocationsSubscriptionsGetCall { - 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 *OrganizationsLocationsSubscriptionsGetCall) Context(ctx context.Context) *OrganizationsLocationsSubscriptionsGetCall { +func (c *OrganizationsLocationsOperationsDeleteCall) Context(ctx context.Context) *OrganizationsLocationsOperationsDeleteCall { 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 *OrganizationsLocationsSubscriptionsGetCall) Header() http.Header { +func (c *OrganizationsLocationsOperationsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *OrganizationsLocationsSubscriptionsGetCall) doRequest(alt string) (*http.Response, error) { +func (c *OrganizationsLocationsOperationsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) - if c.ifNoneMatch_ != "" { - reqHeaders.Set("If-None-Match", c.ifNoneMatch_) - } var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, body) + req, err := http.NewRequest("DELETE", urls, body) if err != nil { return nil, err } @@ -10750,17 +10278,14 @@ func (c *OrganizationsLocationsSubscriptionsGetCall) doRequest(alt string) (*htt return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "beyondcorp.organizations.locations.subscriptions.get" call. -// Exactly one of -// *GoogleCloudBeyondcorpSaasplatformSubscriptionsV1alphaSubscription or -// error will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudBeyondcorpSaasplatformSubscriptionsV1alphaSubscription.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 *OrganizationsLocationsSubscriptionsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudBeyondcorpSaasplatformSubscriptionsV1alphaSubscription, error) { +// Do executes the "beyondcorp.organizations.locations.operations.delete" call. +// Exactly one of *Empty or error will be non-nil. Any non-2xx status +// code is an error. Response headers are in either +// *Empty.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified +// was returned. +func (c *OrganizationsLocationsOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -10779,7 +10304,7 @@ func (c *OrganizationsLocationsSubscriptionsGetCall) Do(opts ...googleapi.CallOp if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudBeyondcorpSaasplatformSubscriptionsV1alphaSubscription{ + ret := &Empty{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -10791,74 +10316,59 @@ func (c *OrganizationsLocationsSubscriptionsGetCall) Do(opts ...googleapi.CallOp } return ret, nil // { - // "description": "Gets details of a single Subscription.", - // "flatPath": "v1alpha/organizations/{organizationsId}/locations/{locationsId}/subscriptions/{subscriptionsId}", - // "httpMethod": "GET", - // "id": "beyondcorp.organizations.locations.subscriptions.get", + // "description": "Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.", + // "flatPath": "v1alpha/organizations/{organizationsId}/locations/{locationsId}/operations/{operationsId}", + // "httpMethod": "DELETE", + // "id": "beyondcorp.organizations.locations.operations.delete", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "Required. The resource name of Subscription using the form: `organizations/{organization_id}/locations/{location}/subscriptions/{subscription_id}`", + // "description": "The name of the operation resource to be deleted.", // "location": "path", - // "pattern": "^organizations/[^/]+/locations/[^/]+/subscriptions/[^/]+$", + // "pattern": "^organizations/[^/]+/locations/[^/]+/operations/[^/]+$", // "required": true, // "type": "string" // } // }, // "path": "v1alpha/{+name}", // "response": { - // "$ref": "GoogleCloudBeyondcorpSaasplatformSubscriptionsV1alphaSubscription" - // } + // "$ref": "Empty" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] // } } -// method id "beyondcorp.organizations.locations.subscriptions.list": +// method id "beyondcorp.organizations.locations.operations.get": -type OrganizationsLocationsSubscriptionsListCall struct { +type OrganizationsLocationsOperationsGetCall struct { s *Service - parent string + name string urlParams_ gensupport.URLParams ifNoneMatch_ string ctx_ context.Context header_ http.Header } -// List: Lists Subscriptions in a given organization and location. +// Get: Gets the latest state of a long-running operation. Clients can +// use this method to poll the operation result at intervals as +// recommended by the API service. // -// - parent: The resource name of Subscription using the form: -// `organizations/{organization_id}/locations/{location}`. -func (r *OrganizationsLocationsSubscriptionsService) List(parent string) *OrganizationsLocationsSubscriptionsListCall { - c := &OrganizationsLocationsSubscriptionsListCall{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. If not specified, a default value of 50 will be -// used by the service. Regardless of the page_size value, the response -// may include a partial list and a caller should only rely on -// response's next_page_token to determine if there are more instances -// left to be queried. -func (c *OrganizationsLocationsSubscriptionsListCall) PageSize(pageSize int64) *OrganizationsLocationsSubscriptionsListCall { - c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) - return c -} - -// PageToken sets the optional parameter "pageToken": The -// next_page_token value returned from a previous -// ListSubscriptionsRequest, if any. -func (c *OrganizationsLocationsSubscriptionsListCall) PageToken(pageToken string) *OrganizationsLocationsSubscriptionsListCall { - c.urlParams_.Set("pageToken", pageToken) +// - name: The name of the operation resource. +func (r *OrganizationsLocationsOperationsService) Get(name string) *OrganizationsLocationsOperationsGetCall { + c := &OrganizationsLocationsOperationsGetCall{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 *OrganizationsLocationsSubscriptionsListCall) Fields(s ...googleapi.Field) *OrganizationsLocationsSubscriptionsListCall { +func (c *OrganizationsLocationsOperationsGetCall) Fields(s ...googleapi.Field) *OrganizationsLocationsOperationsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -10868,7 +10378,7 @@ func (c *OrganizationsLocationsSubscriptionsListCall) Fields(s ...googleapi.Fiel // 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 *OrganizationsLocationsSubscriptionsListCall) IfNoneMatch(entityTag string) *OrganizationsLocationsSubscriptionsListCall { +func (c *OrganizationsLocationsOperationsGetCall) IfNoneMatch(entityTag string) *OrganizationsLocationsOperationsGetCall { c.ifNoneMatch_ = entityTag return c } @@ -10876,21 +10386,21 @@ func (c *OrganizationsLocationsSubscriptionsListCall) IfNoneMatch(entityTag stri // 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 *OrganizationsLocationsSubscriptionsListCall) Context(ctx context.Context) *OrganizationsLocationsSubscriptionsListCall { +func (c *OrganizationsLocationsOperationsGetCall) Context(ctx context.Context) *OrganizationsLocationsOperationsGetCall { 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 *OrganizationsLocationsSubscriptionsListCall) Header() http.Header { +func (c *OrganizationsLocationsOperationsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *OrganizationsLocationsSubscriptionsListCall) doRequest(alt string) (*http.Response, error) { +func (c *OrganizationsLocationsOperationsGetCall) 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_ { @@ -10903,7 +10413,7 @@ func (c *OrganizationsLocationsSubscriptionsListCall) doRequest(alt string) (*ht var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/subscriptions") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -10911,22 +10421,19 @@ func (c *OrganizationsLocationsSubscriptionsListCall) doRequest(alt string) (*ht } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "parent": c.parent, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "beyondcorp.organizations.locations.subscriptions.list" call. -// Exactly one of -// *GoogleCloudBeyondcorpSaasplatformSubscriptionsV1alphaListSubscription -// sResponse or error will be non-nil. Any non-2xx status code is an -// error. Response headers are in either -// *GoogleCloudBeyondcorpSaasplatformSubscriptionsV1alphaListSubscription -// sResponse.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 *OrganizationsLocationsSubscriptionsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudBeyondcorpSaasplatformSubscriptionsV1alphaListSubscriptionsResponse, error) { +// Do executes the "beyondcorp.organizations.locations.operations.get" call. +// Exactly one of *GoogleLongrunningOperation or error will be non-nil. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleLongrunningOperation.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 *OrganizationsLocationsOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -10945,7 +10452,7 @@ func (c *OrganizationsLocationsSubscriptionsListCall) Do(opts ...googleapi.CallO if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudBeyondcorpSaasplatformSubscriptionsV1alphaListSubscriptionsResponse{ + ret := &GoogleLongrunningOperation{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -10957,65 +10464,36 @@ func (c *OrganizationsLocationsSubscriptionsListCall) Do(opts ...googleapi.CallO } return ret, nil // { - // "description": "Lists Subscriptions in a given organization and location.", - // "flatPath": "v1alpha/organizations/{organizationsId}/locations/{locationsId}/subscriptions", + // "description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.", + // "flatPath": "v1alpha/organizations/{organizationsId}/locations/{locationsId}/operations/{operationsId}", // "httpMethod": "GET", - // "id": "beyondcorp.organizations.locations.subscriptions.list", + // "id": "beyondcorp.organizations.locations.operations.get", // "parameterOrder": [ - // "parent" + // "name" // ], // "parameters": { - // "pageSize": { - // "description": "Optional. The maximum number of items to return. If not specified, a default value of 50 will be used by the service. Regardless of the page_size value, the response may include a partial list and a caller should only rely on response's next_page_token to determine if there are more instances left to be queried.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Optional. The next_page_token value returned from a previous ListSubscriptionsRequest, if any.", - // "location": "query", - // "type": "string" - // }, - // "parent": { - // "description": "Required. The resource name of Subscription using the form: `organizations/{organization_id}/locations/{location}`", + // "name": { + // "description": "The name of the operation resource.", // "location": "path", - // "pattern": "^organizations/[^/]+/locations/[^/]+$", + // "pattern": "^organizations/[^/]+/locations/[^/]+/operations/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1alpha/{+parent}/subscriptions", + // "path": "v1alpha/{+name}", // "response": { - // "$ref": "GoogleCloudBeyondcorpSaasplatformSubscriptionsV1alphaListSubscriptionsResponse" - // } + // "$ref": "GoogleLongrunningOperation" + // }, + // "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 *OrganizationsLocationsSubscriptionsListCall) Pages(ctx context.Context, f func(*GoogleCloudBeyondcorpSaasplatformSubscriptionsV1alphaListSubscriptionsResponse) 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 "beyondcorp.projects.locations.get": +// method id "beyondcorp.organizations.locations.operations.list": -type ProjectsLocationsGetCall struct { +type OrganizationsLocationsOperationsListCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -11024,19 +10502,42 @@ type ProjectsLocationsGetCall struct { header_ http.Header } -// Get: Gets information about a location. +// List: Lists operations that match the specified filter in the +// request. If the server doesn't support this method, it returns +// `UNIMPLEMENTED`. // -// - name: Resource name for the location. -func (r *ProjectsLocationsService) Get(name string) *ProjectsLocationsGetCall { - c := &ProjectsLocationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The name of the operation's parent resource. +func (r *OrganizationsLocationsOperationsService) List(name string) *OrganizationsLocationsOperationsListCall { + c := &OrganizationsLocationsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } +// Filter sets the optional parameter "filter": The standard list +// filter. +func (c *OrganizationsLocationsOperationsListCall) Filter(filter string) *OrganizationsLocationsOperationsListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// PageSize sets the optional parameter "pageSize": The standard list +// page size. +func (c *OrganizationsLocationsOperationsListCall) PageSize(pageSize int64) *OrganizationsLocationsOperationsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": The standard list +// page token. +func (c *OrganizationsLocationsOperationsListCall) PageToken(pageToken string) *OrganizationsLocationsOperationsListCall { + 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 *ProjectsLocationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsGetCall { +func (c *OrganizationsLocationsOperationsListCall) Fields(s ...googleapi.Field) *OrganizationsLocationsOperationsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -11046,7 +10547,7 @@ func (c *ProjectsLocationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocatio // getting updates only after the object has changed since the last // request. Use googleapi.IsNotModified to check whether the response // error from Do is the result of In-None-Match. -func (c *ProjectsLocationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsGetCall { +func (c *OrganizationsLocationsOperationsListCall) IfNoneMatch(entityTag string) *OrganizationsLocationsOperationsListCall { c.ifNoneMatch_ = entityTag return c } @@ -11054,21 +10555,21 @@ func (c *ProjectsLocationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocati // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ProjectsLocationsGetCall) Context(ctx context.Context) *ProjectsLocationsGetCall { +func (c *OrganizationsLocationsOperationsListCall) Context(ctx context.Context) *OrganizationsLocationsOperationsListCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *ProjectsLocationsGetCall) Header() http.Header { +func (c *OrganizationsLocationsOperationsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) { +func (c *OrganizationsLocationsOperationsListCall) 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_ { @@ -11081,7 +10582,7 @@ func (c *ProjectsLocationsGetCall) 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, "v1alpha/{+name}") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}/operations") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -11094,14 +10595,15 @@ func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "beyondcorp.projects.locations.get" call. -// Exactly one of *GoogleCloudLocationLocation or error will be non-nil. -// Any non-2xx status code is an error. Response headers are in either -// *GoogleCloudLocationLocation.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 +// Do executes the "beyondcorp.organizations.locations.operations.list" call. +// Exactly one of *GoogleLongrunningListOperationsResponse or error will +// be non-nil. Any non-2xx status code is an error. Response headers are +// in either +// *GoogleLongrunningListOperationsResponse.ServerResponse.Header or (if +// a response was returned at all) in error.(*googleapi.Error).Header. +// Use googleapi.IsNotModified to check whether the returned error was // because http.StatusNotModified was returned. -func (c *ProjectsLocationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudLocationLocation, error) { +func (c *OrganizationsLocationsOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -11120,7 +10622,7 @@ func (c *ProjectsLocationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleClou if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudLocationLocation{ + ret := &GoogleLongrunningListOperationsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -11132,25 +10634,41 @@ func (c *ProjectsLocationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleClou } return ret, nil // { - // "description": "Gets information about a location.", - // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}", + // "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.", + // "flatPath": "v1alpha/organizations/{organizationsId}/locations/{locationsId}/operations", // "httpMethod": "GET", - // "id": "beyondcorp.projects.locations.get", + // "id": "beyondcorp.organizations.locations.operations.list", // "parameterOrder": [ // "name" // ], // "parameters": { + // "filter": { + // "description": "The standard list filter.", + // "location": "query", + // "type": "string" + // }, // "name": { - // "description": "Resource name for the location.", + // "description": "The name of the operation's parent resource.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+$", + // "pattern": "^organizations/[^/]+/locations/[^/]+$", // "required": true, // "type": "string" + // }, + // "pageSize": { + // "description": "The standard list page size.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "The standard list page token.", + // "location": "query", + // "type": "string" // } // }, - // "path": "v1alpha/{+name}", + // "path": "v1alpha/{+name}/operations", // "response": { - // "$ref": "GoogleCloudLocationLocation" + // "$ref": "GoogleLongrunningListOperationsResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -11159,1013 +10677,94 @@ func (c *ProjectsLocationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleClou } -// method id "beyondcorp.projects.locations.list": +// 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 *OrganizationsLocationsOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} -type ProjectsLocationsListCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +// method id "beyondcorp.organizations.locations.subscriptions.create": + +type OrganizationsLocationsSubscriptionsCreateCall struct { + s *Service + parent string + googlecloudbeyondcorpsaasplatformsubscriptionsv1alphasubscription *GoogleCloudBeyondcorpSaasplatformSubscriptionsV1alphaSubscription + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// List: Lists information about the supported locations for this -// service. +// Create: Creates a new BeyondCorp Enterprise Subscription in a given +// organization. Location will always be global as BeyondCorp +// subscriptions are per organization. // -// - name: The resource that owns the locations collection, if -// applicable. -func (r *ProjectsLocationsService) List(name string) *ProjectsLocationsListCall { - c := &ProjectsLocationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name +// - parent: The resource name of the subscription location using the +// form: `organizations/{organization_id}/locations/{location}`. +func (r *OrganizationsLocationsSubscriptionsService) Create(parent string, googlecloudbeyondcorpsaasplatformsubscriptionsv1alphasubscription *GoogleCloudBeyondcorpSaasplatformSubscriptionsV1alphaSubscription) *OrganizationsLocationsSubscriptionsCreateCall { + c := &OrganizationsLocationsSubscriptionsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.googlecloudbeyondcorpsaasplatformsubscriptionsv1alphasubscription = googlecloudbeyondcorpsaasplatformsubscriptionsv1alphasubscription return c } -// Filter sets the optional parameter "filter": A filter to narrow down -// results to a preferred subset. The filtering language accepts strings -// like "displayName=tokyo", and is documented in more detail in -// AIP-160 (https://google.aip.dev/160). -func (c *ProjectsLocationsListCall) Filter(filter string) *ProjectsLocationsListCall { - c.urlParams_.Set("filter", filter) - return c -} - -// PageSize sets the optional parameter "pageSize": The maximum number -// of results to return. If not set, the service selects a default. -func (c *ProjectsLocationsListCall) PageSize(pageSize int64) *ProjectsLocationsListCall { - c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) - return c -} - -// PageToken sets the optional parameter "pageToken": A page token -// received from the `next_page_token` field in the response. Send that -// page token to receive the subsequent page. -func (c *ProjectsLocationsListCall) PageToken(pageToken string) *ProjectsLocationsListCall { - c.urlParams_.Set("pageToken", pageToken) - return c -} - -// Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. -func (c *ProjectsLocationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsListCall { - c.urlParams_.Set("fields", googleapi.CombineFields(s)) - return c -} - -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. -func (c *ProjectsLocationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsListCall { - c.ifNoneMatch_ = entityTag - return c -} - -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. -func (c *ProjectsLocationsListCall) Context(ctx context.Context) *ProjectsLocationsListCall { - c.ctx_ = ctx - return c -} - -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. -func (c *ProjectsLocationsListCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) - if c.ifNoneMatch_ != "" { - reqHeaders.Set("If-None-Match", c.ifNoneMatch_) - } - var body io.Reader = nil - c.urlParams_.Set("alt", alt) - c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}/locations") - urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, body) - if err != nil { - return nil, err - } - req.Header = reqHeaders - googleapi.Expand(req.URL, map[string]string{ - "name": c.name, - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "beyondcorp.projects.locations.list" call. -// Exactly one of *GoogleCloudLocationListLocationsResponse or error -// will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudLocationListLocationsResponse.ServerResponse.Header or -// (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. -func (c *ProjectsLocationsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudLocationListLocationsResponse, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &GoogleCloudLocationListLocationsResponse{ - ServerResponse: googleapi.ServerResponse{ - Header: res.Header, - HTTPStatusCode: res.StatusCode, - }, - } - target := &ret - if err := gensupport.DecodeResponse(target, res); err != nil { - return nil, err - } - return ret, nil - // { - // "description": "Lists information about the supported locations for this service.", - // "flatPath": "v1alpha/projects/{projectsId}/locations", - // "httpMethod": "GET", - // "id": "beyondcorp.projects.locations.list", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "filter": { - // "description": "A filter to narrow down results to a preferred subset. The filtering language accepts strings like `\"displayName=tokyo\"`, and is documented in more detail in [AIP-160](https://google.aip.dev/160).", - // "location": "query", - // "type": "string" - // }, - // "name": { - // "description": "The resource that owns the locations collection, if applicable.", - // "location": "path", - // "pattern": "^projects/[^/]+$", - // "required": true, - // "type": "string" - // }, - // "pageSize": { - // "description": "The maximum number of results to return. If not set, the service selects a default.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "A page token received from the `next_page_token` field in the response. Send that page token to receive the subsequent page.", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1alpha/{+name}/locations", - // "response": { - // "$ref": "GoogleCloudLocationListLocationsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// Pages invokes f for each page of results. -// A non-nil error returned from f will halt the iteration. -// The provided context supersedes any context provided to the Context method. -func (c *ProjectsLocationsListCall) Pages(ctx context.Context, f func(*GoogleCloudLocationListLocationsResponse) 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 "beyondcorp.projects.locations.appConnections.create": - -type ProjectsLocationsAppConnectionsCreateCall struct { - s *Service - parent string - googlecloudbeyondcorpappconnectionsv1alphaappconnection *GoogleCloudBeyondcorpAppconnectionsV1alphaAppConnection - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// Create: Creates a new AppConnection in a given project and location. -// -// - parent: The resource project name of the AppConnection location -// using the form: `projects/{project_id}/locations/{location_id}`. -func (r *ProjectsLocationsAppConnectionsService) Create(parent string, googlecloudbeyondcorpappconnectionsv1alphaappconnection *GoogleCloudBeyondcorpAppconnectionsV1alphaAppConnection) *ProjectsLocationsAppConnectionsCreateCall { - c := &ProjectsLocationsAppConnectionsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - c.googlecloudbeyondcorpappconnectionsv1alphaappconnection = googlecloudbeyondcorpappconnectionsv1alphaappconnection - return c -} - -// AppConnectionId sets the optional parameter "appConnectionId": -// User-settable AppConnection resource ID. * Must start with a letter. -// * Must contain between 4-63 characters from `/a-z-/`. * Must end with -// a number or a letter. -func (c *ProjectsLocationsAppConnectionsCreateCall) AppConnectionId(appConnectionId string) *ProjectsLocationsAppConnectionsCreateCall { - c.urlParams_.Set("appConnectionId", appConnectionId) - return c -} - -// RequestId sets the optional parameter "requestId": An optional -// request ID to identify requests. Specify a unique request ID so that -// if you must retry your request, the server will know to ignore the -// request if it has already been completed. The server will guarantee -// that for at least 60 minutes since the first request. For example, -// consider a situation where you make an initial request and the -// request times out. If you make the request again with the same -// request ID, the server can check if original operation with the same -// request ID was received, and if so, will ignore the second request. -// This prevents clients from accidentally creating duplicate -// commitments. The request ID must be a valid UUID with the exception -// that zero UUID is not supported -// (00000000-0000-0000-0000-000000000000). -func (c *ProjectsLocationsAppConnectionsCreateCall) RequestId(requestId string) *ProjectsLocationsAppConnectionsCreateCall { - c.urlParams_.Set("requestId", requestId) - return c -} - -// ValidateOnly sets the optional parameter "validateOnly": If set, -// validates request by executing a dry-run which would not alter the -// resource in any way. -func (c *ProjectsLocationsAppConnectionsCreateCall) ValidateOnly(validateOnly bool) *ProjectsLocationsAppConnectionsCreateCall { - c.urlParams_.Set("validateOnly", fmt.Sprint(validateOnly)) - 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 *ProjectsLocationsAppConnectionsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsAppConnectionsCreateCall { - 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 *ProjectsLocationsAppConnectionsCreateCall) Context(ctx context.Context) *ProjectsLocationsAppConnectionsCreateCall { - 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 *ProjectsLocationsAppConnectionsCreateCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *ProjectsLocationsAppConnectionsCreateCall) 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.googlecloudbeyondcorpappconnectionsv1alphaappconnection) - 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, "v1alpha/{+parent}/appConnections") - 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 "beyondcorp.projects.locations.appConnections.create" call. -// Exactly one of *GoogleLongrunningOperation or error will be non-nil. -// Any non-2xx status code is an error. Response headers are in either -// *GoogleLongrunningOperation.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 *ProjectsLocationsAppConnectionsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &GoogleLongrunningOperation{ - ServerResponse: googleapi.ServerResponse{ - Header: res.Header, - HTTPStatusCode: res.StatusCode, - }, - } - target := &ret - if err := gensupport.DecodeResponse(target, res); err != nil { - return nil, err - } - return ret, nil - // { - // "description": "Creates a new AppConnection in a given project and location.", - // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/appConnections", - // "httpMethod": "POST", - // "id": "beyondcorp.projects.locations.appConnections.create", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "appConnectionId": { - // "description": "Optional. User-settable AppConnection resource ID. * Must start with a letter. * Must contain between 4-63 characters from `/a-z-/`. * Must end with a number or a letter.", - // "location": "query", - // "type": "string" - // }, - // "parent": { - // "description": "Required. The resource project name of the AppConnection location using the form: `projects/{project_id}/locations/{location_id}`", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+$", - // "required": true, - // "type": "string" - // }, - // "requestId": { - // "description": "Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).", - // "location": "query", - // "type": "string" - // }, - // "validateOnly": { - // "description": "Optional. If set, validates request by executing a dry-run which would not alter the resource in any way.", - // "location": "query", - // "type": "boolean" - // } - // }, - // "path": "v1alpha/{+parent}/appConnections", - // "request": { - // "$ref": "GoogleCloudBeyondcorpAppconnectionsV1alphaAppConnection" - // }, - // "response": { - // "$ref": "GoogleLongrunningOperation" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "beyondcorp.projects.locations.appConnections.delete": - -type ProjectsLocationsAppConnectionsDeleteCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// Delete: Deletes a single AppConnection. -// -// - name: BeyondCorp Connector name using the form: -// `projects/{project_id}/locations/{location_id}/appConnections/{app_c -// onnection_id}`. -func (r *ProjectsLocationsAppConnectionsService) Delete(name string) *ProjectsLocationsAppConnectionsDeleteCall { - c := &ProjectsLocationsAppConnectionsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name - return c -} - -// RequestId sets the optional parameter "requestId": An optional -// request ID to identify requests. Specify a unique request ID so that -// if you must retry your request, the server will know to ignore the -// request if it has already been completed. The server will guarantee -// that for at least 60 minutes after the first request. For example, -// consider a situation where you make an initial request and the -// request times out. If you make the request again with the same -// request ID, the server can check if original operation with the same -// request ID was received, and if so, will ignore the second request. -// This prevents clients from accidentally creating duplicate -// commitments. The request ID must be a valid UUID with the exception -// that zero UUID is not supported -// (00000000-0000-0000-0000-000000000000). -func (c *ProjectsLocationsAppConnectionsDeleteCall) RequestId(requestId string) *ProjectsLocationsAppConnectionsDeleteCall { - c.urlParams_.Set("requestId", requestId) - return c -} - -// ValidateOnly sets the optional parameter "validateOnly": If set, -// validates request by executing a dry-run which would not alter the -// resource in any way. -func (c *ProjectsLocationsAppConnectionsDeleteCall) ValidateOnly(validateOnly bool) *ProjectsLocationsAppConnectionsDeleteCall { - c.urlParams_.Set("validateOnly", fmt.Sprint(validateOnly)) - 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 *ProjectsLocationsAppConnectionsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsAppConnectionsDeleteCall { - 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 *ProjectsLocationsAppConnectionsDeleteCall) Context(ctx context.Context) *ProjectsLocationsAppConnectionsDeleteCall { - 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 *ProjectsLocationsAppConnectionsDeleteCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *ProjectsLocationsAppConnectionsDeleteCall) 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, "v1alpha/{+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 "beyondcorp.projects.locations.appConnections.delete" call. -// Exactly one of *GoogleLongrunningOperation or error will be non-nil. -// Any non-2xx status code is an error. Response headers are in either -// *GoogleLongrunningOperation.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 *ProjectsLocationsAppConnectionsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &GoogleLongrunningOperation{ - ServerResponse: googleapi.ServerResponse{ - Header: res.Header, - HTTPStatusCode: res.StatusCode, - }, - } - target := &ret - if err := gensupport.DecodeResponse(target, res); err != nil { - return nil, err - } - return ret, nil - // { - // "description": "Deletes a single AppConnection.", - // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/appConnections/{appConnectionsId}", - // "httpMethod": "DELETE", - // "id": "beyondcorp.projects.locations.appConnections.delete", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Required. BeyondCorp Connector name using the form: `projects/{project_id}/locations/{location_id}/appConnections/{app_connection_id}`", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/appConnections/[^/]+$", - // "required": true, - // "type": "string" - // }, - // "requestId": { - // "description": "Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes after the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).", - // "location": "query", - // "type": "string" - // }, - // "validateOnly": { - // "description": "Optional. If set, validates request by executing a dry-run which would not alter the resource in any way.", - // "location": "query", - // "type": "boolean" - // } - // }, - // "path": "v1alpha/{+name}", - // "response": { - // "$ref": "GoogleLongrunningOperation" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "beyondcorp.projects.locations.appConnections.get": - -type ProjectsLocationsAppConnectionsGetCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} - -// Get: Gets details of a single AppConnection. -// -// - name: BeyondCorp AppConnection name using the form: -// `projects/{project_id}/locations/{location_id}/appConnections/{app_c -// onnection_id}`. -func (r *ProjectsLocationsAppConnectionsService) Get(name string) *ProjectsLocationsAppConnectionsGetCall { - c := &ProjectsLocationsAppConnectionsGetCall{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 *ProjectsLocationsAppConnectionsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsAppConnectionsGetCall { - 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 *ProjectsLocationsAppConnectionsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsAppConnectionsGetCall { - 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 *ProjectsLocationsAppConnectionsGetCall) Context(ctx context.Context) *ProjectsLocationsAppConnectionsGetCall { - 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 *ProjectsLocationsAppConnectionsGetCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *ProjectsLocationsAppConnectionsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) - if c.ifNoneMatch_ != "" { - reqHeaders.Set("If-None-Match", c.ifNoneMatch_) - } - var body io.Reader = nil - c.urlParams_.Set("alt", alt) - c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+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 "beyondcorp.projects.locations.appConnections.get" call. -// Exactly one of -// *GoogleCloudBeyondcorpAppconnectionsV1alphaAppConnection or error -// will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudBeyondcorpAppconnectionsV1alphaAppConnection.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 *ProjectsLocationsAppConnectionsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudBeyondcorpAppconnectionsV1alphaAppConnection, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &GoogleCloudBeyondcorpAppconnectionsV1alphaAppConnection{ - 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 details of a single AppConnection.", - // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/appConnections/{appConnectionsId}", - // "httpMethod": "GET", - // "id": "beyondcorp.projects.locations.appConnections.get", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Required. BeyondCorp AppConnection name using the form: `projects/{project_id}/locations/{location_id}/appConnections/{app_connection_id}`", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/appConnections/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha/{+name}", - // "response": { - // "$ref": "GoogleCloudBeyondcorpAppconnectionsV1alphaAppConnection" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "beyondcorp.projects.locations.appConnections.getIamPolicy": - -type ProjectsLocationsAppConnectionsGetIamPolicyCall struct { - s *Service - resource string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} - -// GetIamPolicy: Gets the access control policy for a resource. Returns -// an empty policy if the resource exists and does not have a policy -// set. -// -// - 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 *ProjectsLocationsAppConnectionsService) GetIamPolicy(resource string) *ProjectsLocationsAppConnectionsGetIamPolicyCall { - c := &ProjectsLocationsAppConnectionsGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.resource = resource - return c -} - -// OptionsRequestedPolicyVersion sets the optional parameter -// "options.requestedPolicyVersion": 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). -func (c *ProjectsLocationsAppConnectionsGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ProjectsLocationsAppConnectionsGetIamPolicyCall { - c.urlParams_.Set("options.requestedPolicyVersion", fmt.Sprint(optionsRequestedPolicyVersion)) - 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 *ProjectsLocationsAppConnectionsGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsAppConnectionsGetIamPolicyCall { - 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 *ProjectsLocationsAppConnectionsGetIamPolicyCall) IfNoneMatch(entityTag string) *ProjectsLocationsAppConnectionsGetIamPolicyCall { - 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 *ProjectsLocationsAppConnectionsGetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsAppConnectionsGetIamPolicyCall { - 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 *ProjectsLocationsAppConnectionsGetIamPolicyCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *ProjectsLocationsAppConnectionsGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) - if c.ifNoneMatch_ != "" { - reqHeaders.Set("If-None-Match", c.ifNoneMatch_) - } - var body io.Reader = nil - c.urlParams_.Set("alt", alt) - c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+resource}:getIamPolicy") - 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{ - "resource": c.resource, - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "beyondcorp.projects.locations.appConnections.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 *ProjectsLocationsAppConnectionsGetIamPolicyCall) 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, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &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. Returns an empty policy if the resource exists and does not have a policy set.", - // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/appConnections/{appConnectionsId}:getIamPolicy", - // "httpMethod": "GET", - // "id": "beyondcorp.projects.locations.appConnections.getIamPolicy", - // "parameterOrder": [ - // "resource" - // ], - // "parameters": { - // "options.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", - // "location": "query", - // "type": "integer" - // }, - // "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/[^/]+/locations/[^/]+/appConnections/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha/{+resource}:getIamPolicy", - // "response": { - // "$ref": "GoogleIamV1Policy" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "beyondcorp.projects.locations.appConnections.list": - -type ProjectsLocationsAppConnectionsListCall struct { - s *Service - parent string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} - -// List: Lists AppConnections in a given project and location. -// -// - parent: The resource name of the AppConnection location using the -// form: `projects/{project_id}/locations/{location_id}`. -func (r *ProjectsLocationsAppConnectionsService) List(parent string) *ProjectsLocationsAppConnectionsListCall { - c := &ProjectsLocationsAppConnectionsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - return c -} - -// Filter sets the optional parameter "filter": A filter specifying -// constraints of a list operation. -func (c *ProjectsLocationsAppConnectionsListCall) Filter(filter string) *ProjectsLocationsAppConnectionsListCall { - c.urlParams_.Set("filter", filter) - return c -} - -// OrderBy sets the optional parameter "orderBy": Specifies the ordering -// of results. See Sorting order -// (https://cloud.google.com/apis/design/design_patterns#sorting_order) -// for more information. -func (c *ProjectsLocationsAppConnectionsListCall) OrderBy(orderBy string) *ProjectsLocationsAppConnectionsListCall { - c.urlParams_.Set("orderBy", orderBy) - return c -} - -// PageSize sets the optional parameter "pageSize": The maximum number -// of items to return. If not specified, a default value of 50 will be -// used by the service. Regardless of the page_size value, the response -// may include a partial list and a caller should only rely on -// response's next_page_token to determine if there are more instances -// left to be queried. -func (c *ProjectsLocationsAppConnectionsListCall) PageSize(pageSize int64) *ProjectsLocationsAppConnectionsListCall { - c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) - return c -} - -// PageToken sets the optional parameter "pageToken": The -// next_page_token value returned from a previous -// ListAppConnectionsRequest, if any. -func (c *ProjectsLocationsAppConnectionsListCall) PageToken(pageToken string) *ProjectsLocationsAppConnectionsListCall { - 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 *ProjectsLocationsAppConnectionsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsAppConnectionsListCall { - 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 *ProjectsLocationsAppConnectionsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsAppConnectionsListCall { - c.ifNoneMatch_ = entityTag +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *OrganizationsLocationsSubscriptionsCreateCall) Fields(s ...googleapi.Field) *OrganizationsLocationsSubscriptionsCreateCall { + 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 *ProjectsLocationsAppConnectionsListCall) Context(ctx context.Context) *ProjectsLocationsAppConnectionsListCall { +func (c *OrganizationsLocationsSubscriptionsCreateCall) Context(ctx context.Context) *OrganizationsLocationsSubscriptionsCreateCall { 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 *ProjectsLocationsAppConnectionsListCall) Header() http.Header { +func (c *OrganizationsLocationsSubscriptionsCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsAppConnectionsListCall) doRequest(alt string) (*http.Response, error) { +func (c *OrganizationsLocationsSubscriptionsCreateCall) 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 + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudbeyondcorpsaasplatformsubscriptionsv1alphasubscription) + 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, "v1alpha/{+parent}/appConnections") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/subscriptions") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, body) + req, err := http.NewRequest("POST", urls, body) if err != nil { return nil, err } @@ -12176,17 +10775,17 @@ func (c *ProjectsLocationsAppConnectionsListCall) doRequest(alt string) (*http.R return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "beyondcorp.projects.locations.appConnections.list" call. +// Do executes the "beyondcorp.organizations.locations.subscriptions.create" call. // Exactly one of -// *GoogleCloudBeyondcorpAppconnectionsV1alphaListAppConnectionsResponse -// or error will be non-nil. Any non-2xx status code is an error. -// Response headers are in either -// *GoogleCloudBeyondcorpAppconnectionsV1alphaListAppConnectionsResponse. -// ServerResponse.Header or (if a response was returned at all) in +// *GoogleCloudBeyondcorpSaasplatformSubscriptionsV1alphaSubscription or +// error will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudBeyondcorpSaasplatformSubscriptionsV1alphaSubscription.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 *ProjectsLocationsAppConnectionsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudBeyondcorpAppconnectionsV1alphaListAppConnectionsResponse, error) { +func (c *OrganizationsLocationsSubscriptionsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudBeyondcorpSaasplatformSubscriptionsV1alphaSubscription, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -12205,7 +10804,7 @@ func (c *ProjectsLocationsAppConnectionsListCall) Do(opts ...googleapi.CallOptio if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudBeyondcorpAppconnectionsV1alphaListAppConnectionsResponse{ + ret := &GoogleCloudBeyondcorpSaasplatformSubscriptionsV1alphaSubscription{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -12217,183 +10816,106 @@ func (c *ProjectsLocationsAppConnectionsListCall) Do(opts ...googleapi.CallOptio } return ret, nil // { - // "description": "Lists AppConnections in a given project and location.", - // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/appConnections", - // "httpMethod": "GET", - // "id": "beyondcorp.projects.locations.appConnections.list", + // "description": "Creates a new BeyondCorp Enterprise Subscription in a given organization. Location will always be global as BeyondCorp subscriptions are per organization.", + // "flatPath": "v1alpha/organizations/{organizationsId}/locations/{locationsId}/subscriptions", + // "httpMethod": "POST", + // "id": "beyondcorp.organizations.locations.subscriptions.create", // "parameterOrder": [ // "parent" // ], // "parameters": { - // "filter": { - // "description": "Optional. A filter specifying constraints of a list operation.", - // "location": "query", - // "type": "string" - // }, - // "orderBy": { - // "description": "Optional. Specifies the ordering of results. See [Sorting order](https://cloud.google.com/apis/design/design_patterns#sorting_order) for more information.", - // "location": "query", - // "type": "string" - // }, - // "pageSize": { - // "description": "Optional. The maximum number of items to return. If not specified, a default value of 50 will be used by the service. Regardless of the page_size value, the response may include a partial list and a caller should only rely on response's next_page_token to determine if there are more instances left to be queried.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Optional. The next_page_token value returned from a previous ListAppConnectionsRequest, if any.", - // "location": "query", - // "type": "string" - // }, // "parent": { - // "description": "Required. The resource name of the AppConnection location using the form: `projects/{project_id}/locations/{location_id}`", + // "description": "Required. The resource name of the subscription location using the form: `organizations/{organization_id}/locations/{location}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+$", + // "pattern": "^organizations/[^/]+/locations/[^/]+$", // "required": true, // "type": "string" // } - // }, - // "path": "v1alpha/{+parent}/appConnections", - // "response": { - // "$ref": "GoogleCloudBeyondcorpAppconnectionsV1alphaListAppConnectionsResponse" - // }, - // "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 *ProjectsLocationsAppConnectionsListCall) Pages(ctx context.Context, f func(*GoogleCloudBeyondcorpAppconnectionsV1alphaListAppConnectionsResponse) 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) - } + // }, + // "path": "v1alpha/{+parent}/subscriptions", + // "request": { + // "$ref": "GoogleCloudBeyondcorpSaasplatformSubscriptionsV1alphaSubscription" + // }, + // "response": { + // "$ref": "GoogleCloudBeyondcorpSaasplatformSubscriptionsV1alphaSubscription" + // } + // } + } -// method id "beyondcorp.projects.locations.appConnections.patch": +// method id "beyondcorp.organizations.locations.subscriptions.get": -type ProjectsLocationsAppConnectionsPatchCall struct { - s *Service - name string - googlecloudbeyondcorpappconnectionsv1alphaappconnection *GoogleCloudBeyondcorpAppconnectionsV1alphaAppConnection - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type OrganizationsLocationsSubscriptionsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// Patch: Updates the parameters of a single AppConnection. +// Get: Gets details of a single Subscription. // -// - name: Unique resource name of the AppConnection. The name is -// ignored when creating a AppConnection. -func (r *ProjectsLocationsAppConnectionsService) Patch(name string, googlecloudbeyondcorpappconnectionsv1alphaappconnection *GoogleCloudBeyondcorpAppconnectionsV1alphaAppConnection) *ProjectsLocationsAppConnectionsPatchCall { - c := &ProjectsLocationsAppConnectionsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The resource name of Subscription using the form: +// `organizations/{organization_id}/locations/{location}/subscriptions/ +// {subscription_id}`. +func (r *OrganizationsLocationsSubscriptionsService) Get(name string) *OrganizationsLocationsSubscriptionsGetCall { + c := &OrganizationsLocationsSubscriptionsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name - c.googlecloudbeyondcorpappconnectionsv1alphaappconnection = googlecloudbeyondcorpappconnectionsv1alphaappconnection - return c -} - -// AllowMissing sets the optional parameter "allowMissing": If set as -// true, will create the resource if it is not found. -func (c *ProjectsLocationsAppConnectionsPatchCall) AllowMissing(allowMissing bool) *ProjectsLocationsAppConnectionsPatchCall { - c.urlParams_.Set("allowMissing", fmt.Sprint(allowMissing)) - return c -} - -// RequestId sets the optional parameter "requestId": An optional -// request ID to identify requests. Specify a unique request ID so that -// if you must retry your request, the server will know to ignore the -// request if it has already been completed. The server will guarantee -// that for at least 60 minutes since the first request. For example, -// consider a situation where you make an initial request and the -// request times out. If you make the request again with the same -// request ID, the server can check if original operation with the same -// request ID was received, and if so, will ignore the second request. -// This prevents clients from accidentally creating duplicate -// commitments. The request ID must be a valid UUID with the exception -// that zero UUID is not supported -// (00000000-0000-0000-0000-000000000000). -func (c *ProjectsLocationsAppConnectionsPatchCall) RequestId(requestId string) *ProjectsLocationsAppConnectionsPatchCall { - c.urlParams_.Set("requestId", requestId) - return c -} - -// UpdateMask sets the optional parameter "updateMask": Required. Mask -// of fields to update. At least one path must be supplied in this -// field. The elements of the repeated paths field may only include -// these fields from [BeyondCorp.AppConnection]: * `labels` * -// `display_name` * `application_endpoint` * `connectors` -func (c *ProjectsLocationsAppConnectionsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsAppConnectionsPatchCall { - c.urlParams_.Set("updateMask", updateMask) - return c -} - -// ValidateOnly sets the optional parameter "validateOnly": If set, -// validates request by executing a dry-run which would not alter the -// resource in any way. -func (c *ProjectsLocationsAppConnectionsPatchCall) ValidateOnly(validateOnly bool) *ProjectsLocationsAppConnectionsPatchCall { - c.urlParams_.Set("validateOnly", fmt.Sprint(validateOnly)) 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 *ProjectsLocationsAppConnectionsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsAppConnectionsPatchCall { +func (c *OrganizationsLocationsSubscriptionsGetCall) Fields(s ...googleapi.Field) *OrganizationsLocationsSubscriptionsGetCall { 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 *OrganizationsLocationsSubscriptionsGetCall) IfNoneMatch(entityTag string) *OrganizationsLocationsSubscriptionsGetCall { + 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 *ProjectsLocationsAppConnectionsPatchCall) Context(ctx context.Context) *ProjectsLocationsAppConnectionsPatchCall { +func (c *OrganizationsLocationsSubscriptionsGetCall) Context(ctx context.Context) *OrganizationsLocationsSubscriptionsGetCall { 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 *ProjectsLocationsAppConnectionsPatchCall) Header() http.Header { +func (c *OrganizationsLocationsSubscriptionsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsAppConnectionsPatchCall) doRequest(alt string) (*http.Response, error) { +func (c *OrganizationsLocationsSubscriptionsGetCall) 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.googlecloudbeyondcorpappconnectionsv1alphaappconnection) - if err != nil { - return nil, err + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } - reqHeaders.Set("Content-Type", "application/json") + var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("PATCH", urls, body) + req, err := http.NewRequest("GET", urls, body) if err != nil { return nil, err } @@ -12404,14 +10926,17 @@ func (c *ProjectsLocationsAppConnectionsPatchCall) doRequest(alt string) (*http. return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "beyondcorp.projects.locations.appConnections.patch" call. -// Exactly one of *GoogleLongrunningOperation or error will be non-nil. -// Any non-2xx status code is an error. Response headers are in either -// *GoogleLongrunningOperation.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 *ProjectsLocationsAppConnectionsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +// Do executes the "beyondcorp.organizations.locations.subscriptions.get" call. +// Exactly one of +// *GoogleCloudBeyondcorpSaasplatformSubscriptionsV1alphaSubscription or +// error will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudBeyondcorpSaasplatformSubscriptionsV1alphaSubscription.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 *OrganizationsLocationsSubscriptionsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudBeyondcorpSaasplatformSubscriptionsV1alphaSubscription, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -12430,7 +10955,7 @@ func (c *ProjectsLocationsAppConnectionsPatchCall) Do(opts ...googleapi.CallOpti if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleLongrunningOperation{ + ret := &GoogleCloudBeyondcorpSaasplatformSubscriptionsV1alphaSubscription{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -12442,60 +10967,33 @@ func (c *ProjectsLocationsAppConnectionsPatchCall) Do(opts ...googleapi.CallOpti } return ret, nil // { - // "description": "Updates the parameters of a single AppConnection.", - // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/appConnections/{appConnectionsId}", - // "httpMethod": "PATCH", - // "id": "beyondcorp.projects.locations.appConnections.patch", + // "description": "Gets details of a single Subscription.", + // "flatPath": "v1alpha/organizations/{organizationsId}/locations/{locationsId}/subscriptions/{subscriptionsId}", + // "httpMethod": "GET", + // "id": "beyondcorp.organizations.locations.subscriptions.get", // "parameterOrder": [ // "name" // ], // "parameters": { - // "allowMissing": { - // "description": "Optional. If set as true, will create the resource if it is not found.", - // "location": "query", - // "type": "boolean" - // }, // "name": { - // "description": "Required. Unique resource name of the AppConnection. The name is ignored when creating a AppConnection.", + // "description": "Required. The resource name of Subscription using the form: `organizations/{organization_id}/locations/{location}/subscriptions/{subscription_id}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/appConnections/[^/]+$", + // "pattern": "^organizations/[^/]+/locations/[^/]+/subscriptions/[^/]+$", // "required": true, // "type": "string" - // }, - // "requestId": { - // "description": "Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).", - // "location": "query", - // "type": "string" - // }, - // "updateMask": { - // "description": "Required. Mask of fields to update. At least one path must be supplied in this field. The elements of the repeated paths field may only include these fields from [BeyondCorp.AppConnection]: * `labels` * `display_name` * `application_endpoint` * `connectors`", - // "format": "google-fieldmask", - // "location": "query", - // "type": "string" - // }, - // "validateOnly": { - // "description": "Optional. If set, validates request by executing a dry-run which would not alter the resource in any way.", - // "location": "query", - // "type": "boolean" // } // }, // "path": "v1alpha/{+name}", - // "request": { - // "$ref": "GoogleCloudBeyondcorpAppconnectionsV1alphaAppConnection" - // }, // "response": { - // "$ref": "GoogleLongrunningOperation" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] + // "$ref": "GoogleCloudBeyondcorpSaasplatformSubscriptionsV1alphaSubscription" + // } // } } -// method id "beyondcorp.projects.locations.appConnections.resolve": +// method id "beyondcorp.organizations.locations.subscriptions.list": -type ProjectsLocationsAppConnectionsResolveCall struct { +type OrganizationsLocationsSubscriptionsListCall struct { s *Service parent string urlParams_ gensupport.URLParams @@ -12504,43 +11002,31 @@ type ProjectsLocationsAppConnectionsResolveCall struct { header_ http.Header } -// Resolve: Resolves AppConnections details for a given AppConnector. An -// internal method called by a connector to find AppConnections to -// connect to. +// List: Lists Subscriptions in a given organization and location. // -// - parent: The resource name of the AppConnection location using the -// form: `projects/{project_id}/locations/{location_id}`. -func (r *ProjectsLocationsAppConnectionsService) Resolve(parent string) *ProjectsLocationsAppConnectionsResolveCall { - c := &ProjectsLocationsAppConnectionsResolveCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - parent: The resource name of Subscription using the form: +// `organizations/{organization_id}/locations/{location}`. +func (r *OrganizationsLocationsSubscriptionsService) List(parent string) *OrganizationsLocationsSubscriptionsListCall { + c := &OrganizationsLocationsSubscriptionsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent return c } -// AppConnectorId sets the optional parameter "appConnectorId": -// Required. BeyondCorp Connector name of the connector associated with -// those AppConnections using the form: -// `projects/{project_id}/locations/{location_id}/appConnectors/{app_conn -// ector_id}` -func (c *ProjectsLocationsAppConnectionsResolveCall) AppConnectorId(appConnectorId string) *ProjectsLocationsAppConnectionsResolveCall { - c.urlParams_.Set("appConnectorId", appConnectorId) - return c -} - // PageSize sets the optional parameter "pageSize": The maximum number // of items to return. If not specified, a default value of 50 will be // used by the service. Regardless of the page_size value, the response // may include a partial list and a caller should only rely on // response's next_page_token to determine if there are more instances // left to be queried. -func (c *ProjectsLocationsAppConnectionsResolveCall) PageSize(pageSize int64) *ProjectsLocationsAppConnectionsResolveCall { +func (c *OrganizationsLocationsSubscriptionsListCall) PageSize(pageSize int64) *OrganizationsLocationsSubscriptionsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } // PageToken sets the optional parameter "pageToken": The // next_page_token value returned from a previous -// ResolveAppConnectionsResponse, if any. -func (c *ProjectsLocationsAppConnectionsResolveCall) PageToken(pageToken string) *ProjectsLocationsAppConnectionsResolveCall { +// ListSubscriptionsRequest, if any. +func (c *OrganizationsLocationsSubscriptionsListCall) PageToken(pageToken string) *OrganizationsLocationsSubscriptionsListCall { c.urlParams_.Set("pageToken", pageToken) return c } @@ -12548,7 +11034,7 @@ func (c *ProjectsLocationsAppConnectionsResolveCall) PageToken(pageToken string) // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsAppConnectionsResolveCall) Fields(s ...googleapi.Field) *ProjectsLocationsAppConnectionsResolveCall { +func (c *OrganizationsLocationsSubscriptionsListCall) Fields(s ...googleapi.Field) *OrganizationsLocationsSubscriptionsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -12558,7 +11044,7 @@ func (c *ProjectsLocationsAppConnectionsResolveCall) Fields(s ...googleapi.Field // 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 *ProjectsLocationsAppConnectionsResolveCall) IfNoneMatch(entityTag string) *ProjectsLocationsAppConnectionsResolveCall { +func (c *OrganizationsLocationsSubscriptionsListCall) IfNoneMatch(entityTag string) *OrganizationsLocationsSubscriptionsListCall { c.ifNoneMatch_ = entityTag return c } @@ -12566,21 +11052,21 @@ func (c *ProjectsLocationsAppConnectionsResolveCall) IfNoneMatch(entityTag strin // 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 *ProjectsLocationsAppConnectionsResolveCall) Context(ctx context.Context) *ProjectsLocationsAppConnectionsResolveCall { +func (c *OrganizationsLocationsSubscriptionsListCall) Context(ctx context.Context) *OrganizationsLocationsSubscriptionsListCall { 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 *ProjectsLocationsAppConnectionsResolveCall) Header() http.Header { +func (c *OrganizationsLocationsSubscriptionsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsAppConnectionsResolveCall) doRequest(alt string) (*http.Response, error) { +func (c *OrganizationsLocationsSubscriptionsListCall) 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_ { @@ -12593,7 +11079,7 @@ func (c *ProjectsLocationsAppConnectionsResolveCall) doRequest(alt string) (*htt var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/appConnections:resolve") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/subscriptions") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -12606,17 +11092,17 @@ func (c *ProjectsLocationsAppConnectionsResolveCall) doRequest(alt string) (*htt return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "beyondcorp.projects.locations.appConnections.resolve" call. +// Do executes the "beyondcorp.organizations.locations.subscriptions.list" call. // Exactly one of -// *GoogleCloudBeyondcorpAppconnectionsV1alphaResolveAppConnectionsRespon -// se or error will be non-nil. Any non-2xx status code is an error. -// Response headers are in either -// *GoogleCloudBeyondcorpAppconnectionsV1alphaResolveAppConnectionsRespon -// 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 *ProjectsLocationsAppConnectionsResolveCall) Do(opts ...googleapi.CallOption) (*GoogleCloudBeyondcorpAppconnectionsV1alphaResolveAppConnectionsResponse, error) { +// *GoogleCloudBeyondcorpSaasplatformSubscriptionsV1alphaListSubscription +// sResponse or error will be non-nil. Any non-2xx status code is an +// error. Response headers are in either +// *GoogleCloudBeyondcorpSaasplatformSubscriptionsV1alphaListSubscription +// sResponse.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 *OrganizationsLocationsSubscriptionsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudBeyondcorpSaasplatformSubscriptionsV1alphaListSubscriptionsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -12635,7 +11121,7 @@ func (c *ProjectsLocationsAppConnectionsResolveCall) Do(opts ...googleapi.CallOp if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudBeyondcorpAppconnectionsV1alphaResolveAppConnectionsResponse{ + ret := &GoogleCloudBeyondcorpSaasplatformSubscriptionsV1alphaListSubscriptionsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -12647,19 +11133,14 @@ func (c *ProjectsLocationsAppConnectionsResolveCall) Do(opts ...googleapi.CallOp } return ret, nil // { - // "description": "Resolves AppConnections details for a given AppConnector. An internal method called by a connector to find AppConnections to connect to.", - // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/appConnections:resolve", + // "description": "Lists Subscriptions in a given organization and location.", + // "flatPath": "v1alpha/organizations/{organizationsId}/locations/{locationsId}/subscriptions", // "httpMethod": "GET", - // "id": "beyondcorp.projects.locations.appConnections.resolve", + // "id": "beyondcorp.organizations.locations.subscriptions.list", // "parameterOrder": [ // "parent" // ], // "parameters": { - // "appConnectorId": { - // "description": "Required. BeyondCorp Connector name of the connector associated with those AppConnections using the form: `projects/{project_id}/locations/{location_id}/appConnectors/{app_connector_id}`", - // "location": "query", - // "type": "string" - // }, // "pageSize": { // "description": "Optional. The maximum number of items to return. If not specified, a default value of 50 will be used by the service. Regardless of the page_size value, the response may include a partial list and a caller should only rely on response's next_page_token to determine if there are more instances left to be queried.", // "format": "int32", @@ -12667,25 +11148,22 @@ func (c *ProjectsLocationsAppConnectionsResolveCall) Do(opts ...googleapi.CallOp // "type": "integer" // }, // "pageToken": { - // "description": "Optional. The next_page_token value returned from a previous ResolveAppConnectionsResponse, if any.", + // "description": "Optional. The next_page_token value returned from a previous ListSubscriptionsRequest, if any.", // "location": "query", // "type": "string" // }, // "parent": { - // "description": "Required. The resource name of the AppConnection location using the form: `projects/{project_id}/locations/{location_id}`", + // "description": "Required. The resource name of Subscription using the form: `organizations/{organization_id}/locations/{location}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+$", + // "pattern": "^organizations/[^/]+/locations/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1alpha/{+parent}/appConnections:resolve", + // "path": "v1alpha/{+parent}/subscriptions", // "response": { - // "$ref": "GoogleCloudBeyondcorpAppconnectionsV1alphaResolveAppConnectionsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] + // "$ref": "GoogleCloudBeyondcorpSaasplatformSubscriptionsV1alphaListSubscriptionsResponse" + // } // } } @@ -12693,7 +11171,7 @@ func (c *ProjectsLocationsAppConnectionsResolveCall) Do(opts ...googleapi.CallOp // 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 *ProjectsLocationsAppConnectionsResolveCall) Pages(ctx context.Context, f func(*GoogleCloudBeyondcorpAppconnectionsV1alphaResolveAppConnectionsResponse) error) error { +func (c *OrganizationsLocationsSubscriptionsListCall) Pages(ctx context.Context, f func(*GoogleCloudBeyondcorpSaasplatformSubscriptionsV1alphaListSubscriptionsResponse) error) error { c.ctx_ = ctx defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point for { @@ -12711,93 +11189,95 @@ func (c *ProjectsLocationsAppConnectionsResolveCall) Pages(ctx context.Context, } } -// method id "beyondcorp.projects.locations.appConnections.setIamPolicy": +// method id "beyondcorp.projects.locations.get": -type ProjectsLocationsAppConnectionsSetIamPolicyCall struct { - s *Service - resource string - googleiamv1setiampolicyrequest *GoogleIamV1SetIamPolicyRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// SetIamPolicy: Sets the access control policy on the specified -// resource. Replaces any existing policy. Can return `NOT_FOUND`, -// `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. +// Get: Gets information about a location. // -// - 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 *ProjectsLocationsAppConnectionsService) SetIamPolicy(resource string, googleiamv1setiampolicyrequest *GoogleIamV1SetIamPolicyRequest) *ProjectsLocationsAppConnectionsSetIamPolicyCall { - c := &ProjectsLocationsAppConnectionsSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.resource = resource - c.googleiamv1setiampolicyrequest = googleiamv1setiampolicyrequest +// - name: Resource name for the location. +func (r *ProjectsLocationsService) Get(name string) *ProjectsLocationsGetCall { + c := &ProjectsLocationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsAppConnectionsSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsAppConnectionsSetIamPolicyCall { +func (c *ProjectsLocationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsGetCall { + c.ifNoneMatch_ = entityTag + return c +} + // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ProjectsLocationsAppConnectionsSetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsAppConnectionsSetIamPolicyCall { +func (c *ProjectsLocationsGetCall) Context(ctx context.Context) *ProjectsLocationsGetCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *ProjectsLocationsAppConnectionsSetIamPolicyCall) Header() http.Header { +func (c *ProjectsLocationsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsAppConnectionsSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) - var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleiamv1setiampolicyrequest) - if err != nil { - return nil, err + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } - reqHeaders.Set("Content-Type", "application/json") + var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+resource}:setIamPolicy") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("GET", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "resource": c.resource, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "beyondcorp.projects.locations.appConnections.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 +// Do executes the "beyondcorp.projects.locations.get" call. +// Exactly one of *GoogleCloudLocationLocation or error will be non-nil. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudLocationLocation.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 *ProjectsLocationsAppConnectionsSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1Policy, error) { +func (c *ProjectsLocationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudLocationLocation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -12816,7 +11296,7 @@ func (c *ProjectsLocationsAppConnectionsSetIamPolicyCall) Do(opts ...googleapi.C if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleIamV1Policy{ + ret := &GoogleCloudLocationLocation{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -12828,28 +11308,25 @@ func (c *ProjectsLocationsAppConnectionsSetIamPolicyCall) Do(opts ...googleapi.C } return ret, nil // { - // "description": "Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.", - // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/appConnections/{appConnectionsId}:setIamPolicy", - // "httpMethod": "POST", - // "id": "beyondcorp.projects.locations.appConnections.setIamPolicy", + // "description": "Gets information about a location.", + // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}", + // "httpMethod": "GET", + // "id": "beyondcorp.projects.locations.get", // "parameterOrder": [ - // "resource" + // "name" // ], // "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.", + // "name": { + // "description": "Resource name for the location.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/appConnections/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1alpha/{+resource}:setIamPolicy", - // "request": { - // "$ref": "GoogleIamV1SetIamPolicyRequest" - // }, + // "path": "v1alpha/{+name}", // "response": { - // "$ref": "GoogleIamV1Policy" + // "$ref": "GoogleCloudLocationLocation" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -12858,97 +11335,123 @@ func (c *ProjectsLocationsAppConnectionsSetIamPolicyCall) Do(opts ...googleapi.C } -// method id "beyondcorp.projects.locations.appConnections.testIamPermissions": +// method id "beyondcorp.projects.locations.list": -type ProjectsLocationsAppConnectionsTestIamPermissionsCall struct { - s *Service - resource string - googleiamv1testiampermissionsrequest *GoogleIamV1TestIamPermissionsRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsListCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// TestIamPermissions: Returns permissions that a caller has on the -// specified resource. If the resource does not exist, this will return -// an empty set of permissions, not a `NOT_FOUND` error. Note: This -// operation is designed to be used for building permission-aware UIs -// and command-line tools, not for authorization checking. This -// operation may "fail open" without warning. +// List: Lists information about the supported locations for this +// service. // -// - 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 *ProjectsLocationsAppConnectionsService) TestIamPermissions(resource string, googleiamv1testiampermissionsrequest *GoogleIamV1TestIamPermissionsRequest) *ProjectsLocationsAppConnectionsTestIamPermissionsCall { - c := &ProjectsLocationsAppConnectionsTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.resource = resource - c.googleiamv1testiampermissionsrequest = googleiamv1testiampermissionsrequest +// - name: The resource that owns the locations collection, if +// applicable. +func (r *ProjectsLocationsService) List(name string) *ProjectsLocationsListCall { + c := &ProjectsLocationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Filter sets the optional parameter "filter": A filter to narrow down +// results to a preferred subset. The filtering language accepts strings +// like "displayName=tokyo", and is documented in more detail in +// AIP-160 (https://google.aip.dev/160). +func (c *ProjectsLocationsListCall) Filter(filter string) *ProjectsLocationsListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// PageSize sets the optional parameter "pageSize": The maximum number +// of results to return. If not set, the service selects a default. +func (c *ProjectsLocationsListCall) PageSize(pageSize int64) *ProjectsLocationsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": A page token +// received from the `next_page_token` field in the response. Send that +// page token to receive the subsequent page. +func (c *ProjectsLocationsListCall) PageToken(pageToken string) *ProjectsLocationsListCall { + c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsAppConnectionsTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsAppConnectionsTestIamPermissionsCall { +func (c *ProjectsLocationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsListCall { + c.ifNoneMatch_ = entityTag + return c +} + // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ProjectsLocationsAppConnectionsTestIamPermissionsCall) Context(ctx context.Context) *ProjectsLocationsAppConnectionsTestIamPermissionsCall { +func (c *ProjectsLocationsListCall) Context(ctx context.Context) *ProjectsLocationsListCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *ProjectsLocationsAppConnectionsTestIamPermissionsCall) Header() http.Header { +func (c *ProjectsLocationsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsAppConnectionsTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) - var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleiamv1testiampermissionsrequest) - if err != nil { - return nil, err + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } - reqHeaders.Set("Content-Type", "application/json") + var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+resource}:testIamPermissions") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}/locations") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("GET", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "resource": c.resource, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "beyondcorp.projects.locations.appConnections.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 *ProjectsLocationsAppConnectionsTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1TestIamPermissionsResponse, error) { +// Do executes the "beyondcorp.projects.locations.list" call. +// Exactly one of *GoogleCloudLocationListLocationsResponse or error +// will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudLocationListLocationsResponse.ServerResponse.Header or +// (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsLocationsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudLocationListLocationsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -12967,7 +11470,7 @@ func (c *ProjectsLocationsAppConnectionsTestIamPermissionsCall) Do(opts ...googl if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleIamV1TestIamPermissionsResponse{ + ret := &GoogleCloudLocationListLocationsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -12979,28 +11482,41 @@ func (c *ProjectsLocationsAppConnectionsTestIamPermissionsCall) Do(opts ...googl } return ret, nil // { - // "description": "Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a `NOT_FOUND` error. Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may \"fail open\" without warning.", - // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/appConnections/{appConnectionsId}:testIamPermissions", - // "httpMethod": "POST", - // "id": "beyondcorp.projects.locations.appConnections.testIamPermissions", + // "description": "Lists information about the supported locations for this service.", + // "flatPath": "v1alpha/projects/{projectsId}/locations", + // "httpMethod": "GET", + // "id": "beyondcorp.projects.locations.list", // "parameterOrder": [ - // "resource" + // "name" // ], // "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.", + // "filter": { + // "description": "A filter to narrow down results to a preferred subset. The filtering language accepts strings like `\"displayName=tokyo\"`, and is documented in more detail in [AIP-160](https://google.aip.dev/160).", + // "location": "query", + // "type": "string" + // }, + // "name": { + // "description": "The resource that owns the locations collection, if applicable.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/appConnections/[^/]+$", + // "pattern": "^projects/[^/]+$", // "required": true, // "type": "string" + // }, + // "pageSize": { + // "description": "The maximum number of results to return. If not set, the service selects a default.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "A page token received from the `next_page_token` field in the response. Send that page token to receive the subsequent page.", + // "location": "query", + // "type": "string" // } // }, - // "path": "v1alpha/{+resource}:testIamPermissions", - // "request": { - // "$ref": "GoogleIamV1TestIamPermissionsRequest" - // }, + // "path": "v1alpha/{+name}/locations", // "response": { - // "$ref": "GoogleIamV1TestIamPermissionsResponse" + // "$ref": "GoogleCloudLocationListLocationsResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -13009,34 +11525,55 @@ func (c *ProjectsLocationsAppConnectionsTestIamPermissionsCall) Do(opts ...googl } -// method id "beyondcorp.projects.locations.appConnectors.create": +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *ProjectsLocationsListCall) Pages(ctx context.Context, f func(*GoogleCloudLocationListLocationsResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} -type ProjectsLocationsAppConnectorsCreateCall struct { - s *Service - parent string - googlecloudbeyondcorpappconnectorsv1alphaappconnector *GoogleCloudBeyondcorpAppconnectorsV1alphaAppConnector - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +// method id "beyondcorp.projects.locations.appConnections.create": + +type ProjectsLocationsAppConnectionsCreateCall struct { + s *Service + parent string + googlecloudbeyondcorpappconnectionsv1alphaappconnection *GoogleCloudBeyondcorpAppconnectionsV1alphaAppConnection + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Create: Creates a new AppConnector in a given project and location. +// Create: Creates a new AppConnection in a given project and location. // -// - parent: The resource project name of the AppConnector location +// - parent: The resource project name of the AppConnection location // using the form: `projects/{project_id}/locations/{location_id}`. -func (r *ProjectsLocationsAppConnectorsService) Create(parent string, googlecloudbeyondcorpappconnectorsv1alphaappconnector *GoogleCloudBeyondcorpAppconnectorsV1alphaAppConnector) *ProjectsLocationsAppConnectorsCreateCall { - c := &ProjectsLocationsAppConnectorsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ProjectsLocationsAppConnectionsService) Create(parent string, googlecloudbeyondcorpappconnectionsv1alphaappconnection *GoogleCloudBeyondcorpAppconnectionsV1alphaAppConnection) *ProjectsLocationsAppConnectionsCreateCall { + c := &ProjectsLocationsAppConnectionsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent - c.googlecloudbeyondcorpappconnectorsv1alphaappconnector = googlecloudbeyondcorpappconnectorsv1alphaappconnector + c.googlecloudbeyondcorpappconnectionsv1alphaappconnection = googlecloudbeyondcorpappconnectionsv1alphaappconnection return c } -// AppConnectorId sets the optional parameter "appConnectorId": -// User-settable AppConnector resource ID. * Must start with a letter. * -// Must contain between 4-63 characters from `/a-z-/`. * Must end with a -// number or a letter. -func (c *ProjectsLocationsAppConnectorsCreateCall) AppConnectorId(appConnectorId string) *ProjectsLocationsAppConnectorsCreateCall { - c.urlParams_.Set("appConnectorId", appConnectorId) +// AppConnectionId sets the optional parameter "appConnectionId": +// User-settable AppConnection resource ID. * Must start with a letter. +// * Must contain between 4-63 characters from `/a-z-/`. * Must end with +// a number or a letter. +func (c *ProjectsLocationsAppConnectionsCreateCall) AppConnectionId(appConnectionId string) *ProjectsLocationsAppConnectionsCreateCall { + c.urlParams_.Set("appConnectionId", appConnectionId) return c } @@ -13053,7 +11590,7 @@ func (c *ProjectsLocationsAppConnectorsCreateCall) AppConnectorId(appConnectorId // commitments. The request ID must be a valid UUID with the exception // that zero UUID is not supported // (00000000-0000-0000-0000-000000000000). -func (c *ProjectsLocationsAppConnectorsCreateCall) RequestId(requestId string) *ProjectsLocationsAppConnectorsCreateCall { +func (c *ProjectsLocationsAppConnectionsCreateCall) RequestId(requestId string) *ProjectsLocationsAppConnectionsCreateCall { c.urlParams_.Set("requestId", requestId) return c } @@ -13061,7 +11598,7 @@ func (c *ProjectsLocationsAppConnectorsCreateCall) RequestId(requestId string) * // ValidateOnly sets the optional parameter "validateOnly": If set, // validates request by executing a dry-run which would not alter the // resource in any way. -func (c *ProjectsLocationsAppConnectorsCreateCall) ValidateOnly(validateOnly bool) *ProjectsLocationsAppConnectorsCreateCall { +func (c *ProjectsLocationsAppConnectionsCreateCall) ValidateOnly(validateOnly bool) *ProjectsLocationsAppConnectionsCreateCall { c.urlParams_.Set("validateOnly", fmt.Sprint(validateOnly)) return c } @@ -13069,7 +11606,7 @@ func (c *ProjectsLocationsAppConnectorsCreateCall) ValidateOnly(validateOnly boo // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsAppConnectorsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsAppConnectorsCreateCall { +func (c *ProjectsLocationsAppConnectionsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsAppConnectionsCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -13077,21 +11614,21 @@ func (c *ProjectsLocationsAppConnectorsCreateCall) Fields(s ...googleapi.Field) // 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 *ProjectsLocationsAppConnectorsCreateCall) Context(ctx context.Context) *ProjectsLocationsAppConnectorsCreateCall { +func (c *ProjectsLocationsAppConnectionsCreateCall) Context(ctx context.Context) *ProjectsLocationsAppConnectionsCreateCall { 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 *ProjectsLocationsAppConnectorsCreateCall) Header() http.Header { +func (c *ProjectsLocationsAppConnectionsCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsAppConnectorsCreateCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsAppConnectionsCreateCall) 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_ { @@ -13099,14 +11636,14 @@ func (c *ProjectsLocationsAppConnectorsCreateCall) doRequest(alt string) (*http. } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudbeyondcorpappconnectorsv1alphaappconnector) + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudbeyondcorpappconnectionsv1alphaappconnection) 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, "v1alpha/{+parent}/appConnectors") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/appConnections") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -13119,14 +11656,14 @@ func (c *ProjectsLocationsAppConnectorsCreateCall) doRequest(alt string) (*http. return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "beyondcorp.projects.locations.appConnectors.create" call. +// Do executes the "beyondcorp.projects.locations.appConnections.create" call. // Exactly one of *GoogleLongrunningOperation or error will be non-nil. // Any non-2xx status code is an error. Response headers are in either // *GoogleLongrunningOperation.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 *ProjectsLocationsAppConnectorsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsAppConnectionsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -13157,21 +11694,21 @@ func (c *ProjectsLocationsAppConnectorsCreateCall) Do(opts ...googleapi.CallOpti } return ret, nil // { - // "description": "Creates a new AppConnector in a given project and location.", - // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/appConnectors", + // "description": "Creates a new AppConnection in a given project and location.", + // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/appConnections", // "httpMethod": "POST", - // "id": "beyondcorp.projects.locations.appConnectors.create", + // "id": "beyondcorp.projects.locations.appConnections.create", // "parameterOrder": [ // "parent" // ], // "parameters": { - // "appConnectorId": { - // "description": "Optional. User-settable AppConnector resource ID. * Must start with a letter. * Must contain between 4-63 characters from `/a-z-/`. * Must end with a number or a letter.", + // "appConnectionId": { + // "description": "Optional. User-settable AppConnection resource ID. * Must start with a letter. * Must contain between 4-63 characters from `/a-z-/`. * Must end with a number or a letter.", // "location": "query", // "type": "string" // }, // "parent": { - // "description": "Required. The resource project name of the AppConnector location using the form: `projects/{project_id}/locations/{location_id}`", + // "description": "Required. The resource project name of the AppConnection location using the form: `projects/{project_id}/locations/{location_id}`", // "location": "path", // "pattern": "^projects/[^/]+/locations/[^/]+$", // "required": true, @@ -13188,9 +11725,9 @@ func (c *ProjectsLocationsAppConnectorsCreateCall) Do(opts ...googleapi.CallOpti // "type": "boolean" // } // }, - // "path": "v1alpha/{+parent}/appConnectors", + // "path": "v1alpha/{+parent}/appConnections", // "request": { - // "$ref": "GoogleCloudBeyondcorpAppconnectorsV1alphaAppConnector" + // "$ref": "GoogleCloudBeyondcorpAppconnectionsV1alphaAppConnection" // }, // "response": { // "$ref": "GoogleLongrunningOperation" @@ -13202,9 +11739,9 @@ func (c *ProjectsLocationsAppConnectorsCreateCall) Do(opts ...googleapi.CallOpti } -// method id "beyondcorp.projects.locations.appConnectors.delete": +// method id "beyondcorp.projects.locations.appConnections.delete": -type ProjectsLocationsAppConnectorsDeleteCall struct { +type ProjectsLocationsAppConnectionsDeleteCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -13212,13 +11749,13 @@ type ProjectsLocationsAppConnectorsDeleteCall struct { header_ http.Header } -// Delete: Deletes a single AppConnector. +// Delete: Deletes a single AppConnection. // -// - name: BeyondCorp AppConnector name using the form: -// `projects/{project_id}/locations/{location_id}/appConnectors/{app_co -// nnector_id}`. -func (r *ProjectsLocationsAppConnectorsService) Delete(name string) *ProjectsLocationsAppConnectorsDeleteCall { - c := &ProjectsLocationsAppConnectorsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: BeyondCorp Connector name using the form: +// `projects/{project_id}/locations/{location_id}/appConnections/{app_c +// onnection_id}`. +func (r *ProjectsLocationsAppConnectionsService) Delete(name string) *ProjectsLocationsAppConnectionsDeleteCall { + c := &ProjectsLocationsAppConnectionsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -13236,7 +11773,7 @@ func (r *ProjectsLocationsAppConnectorsService) Delete(name string) *ProjectsLoc // commitments. The request ID must be a valid UUID with the exception // that zero UUID is not supported // (00000000-0000-0000-0000-000000000000). -func (c *ProjectsLocationsAppConnectorsDeleteCall) RequestId(requestId string) *ProjectsLocationsAppConnectorsDeleteCall { +func (c *ProjectsLocationsAppConnectionsDeleteCall) RequestId(requestId string) *ProjectsLocationsAppConnectionsDeleteCall { c.urlParams_.Set("requestId", requestId) return c } @@ -13244,7 +11781,7 @@ func (c *ProjectsLocationsAppConnectorsDeleteCall) RequestId(requestId string) * // ValidateOnly sets the optional parameter "validateOnly": If set, // validates request by executing a dry-run which would not alter the // resource in any way. -func (c *ProjectsLocationsAppConnectorsDeleteCall) ValidateOnly(validateOnly bool) *ProjectsLocationsAppConnectorsDeleteCall { +func (c *ProjectsLocationsAppConnectionsDeleteCall) ValidateOnly(validateOnly bool) *ProjectsLocationsAppConnectionsDeleteCall { c.urlParams_.Set("validateOnly", fmt.Sprint(validateOnly)) return c } @@ -13252,7 +11789,7 @@ func (c *ProjectsLocationsAppConnectorsDeleteCall) ValidateOnly(validateOnly boo // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsAppConnectorsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsAppConnectorsDeleteCall { +func (c *ProjectsLocationsAppConnectionsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsAppConnectionsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -13260,21 +11797,21 @@ func (c *ProjectsLocationsAppConnectorsDeleteCall) Fields(s ...googleapi.Field) // 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 *ProjectsLocationsAppConnectorsDeleteCall) Context(ctx context.Context) *ProjectsLocationsAppConnectorsDeleteCall { +func (c *ProjectsLocationsAppConnectionsDeleteCall) Context(ctx context.Context) *ProjectsLocationsAppConnectionsDeleteCall { 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 *ProjectsLocationsAppConnectorsDeleteCall) Header() http.Header { +func (c *ProjectsLocationsAppConnectionsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsAppConnectorsDeleteCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsAppConnectionsDeleteCall) 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_ { @@ -13297,14 +11834,14 @@ func (c *ProjectsLocationsAppConnectorsDeleteCall) doRequest(alt string) (*http. return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "beyondcorp.projects.locations.appConnectors.delete" call. +// Do executes the "beyondcorp.projects.locations.appConnections.delete" call. // Exactly one of *GoogleLongrunningOperation or error will be non-nil. // Any non-2xx status code is an error. Response headers are in either // *GoogleLongrunningOperation.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 *ProjectsLocationsAppConnectorsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsAppConnectionsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -13335,18 +11872,18 @@ func (c *ProjectsLocationsAppConnectorsDeleteCall) Do(opts ...googleapi.CallOpti } return ret, nil // { - // "description": "Deletes a single AppConnector.", - // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/appConnectors/{appConnectorsId}", + // "description": "Deletes a single AppConnection.", + // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/appConnections/{appConnectionsId}", // "httpMethod": "DELETE", - // "id": "beyondcorp.projects.locations.appConnectors.delete", + // "id": "beyondcorp.projects.locations.appConnections.delete", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "Required. BeyondCorp AppConnector name using the form: `projects/{project_id}/locations/{location_id}/appConnectors/{app_connector_id}`", + // "description": "Required. BeyondCorp Connector name using the form: `projects/{project_id}/locations/{location_id}/appConnections/{app_connection_id}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/appConnectors/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/appConnections/[^/]+$", // "required": true, // "type": "string" // }, @@ -13372,9 +11909,9 @@ func (c *ProjectsLocationsAppConnectorsDeleteCall) Do(opts ...googleapi.CallOpti } -// method id "beyondcorp.projects.locations.appConnectors.get": +// method id "beyondcorp.projects.locations.appConnections.get": -type ProjectsLocationsAppConnectorsGetCall struct { +type ProjectsLocationsAppConnectionsGetCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -13383,13 +11920,13 @@ type ProjectsLocationsAppConnectorsGetCall struct { header_ http.Header } -// Get: Gets details of a single AppConnector. +// Get: Gets details of a single AppConnection. // -// - name: BeyondCorp AppConnector name using the form: -// `projects/{project_id}/locations/{location_id}/appConnectors/{app_co -// nnector_id}`. -func (r *ProjectsLocationsAppConnectorsService) Get(name string) *ProjectsLocationsAppConnectorsGetCall { - c := &ProjectsLocationsAppConnectorsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: BeyondCorp AppConnection name using the form: +// `projects/{project_id}/locations/{location_id}/appConnections/{app_c +// onnection_id}`. +func (r *ProjectsLocationsAppConnectionsService) Get(name string) *ProjectsLocationsAppConnectionsGetCall { + c := &ProjectsLocationsAppConnectionsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -13397,7 +11934,7 @@ func (r *ProjectsLocationsAppConnectorsService) Get(name string) *ProjectsLocati // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsAppConnectorsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsAppConnectorsGetCall { +func (c *ProjectsLocationsAppConnectionsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsAppConnectionsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -13407,7 +11944,7 @@ func (c *ProjectsLocationsAppConnectorsGetCall) Fields(s ...googleapi.Field) *Pr // 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 *ProjectsLocationsAppConnectorsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsAppConnectorsGetCall { +func (c *ProjectsLocationsAppConnectionsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsAppConnectionsGetCall { c.ifNoneMatch_ = entityTag return c } @@ -13415,21 +11952,21 @@ func (c *ProjectsLocationsAppConnectorsGetCall) IfNoneMatch(entityTag string) *P // 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 *ProjectsLocationsAppConnectorsGetCall) Context(ctx context.Context) *ProjectsLocationsAppConnectorsGetCall { +func (c *ProjectsLocationsAppConnectionsGetCall) Context(ctx context.Context) *ProjectsLocationsAppConnectionsGetCall { 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 *ProjectsLocationsAppConnectorsGetCall) Header() http.Header { +func (c *ProjectsLocationsAppConnectionsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsAppConnectorsGetCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsAppConnectionsGetCall) 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_ { @@ -13455,16 +11992,17 @@ func (c *ProjectsLocationsAppConnectorsGetCall) doRequest(alt string) (*http.Res return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "beyondcorp.projects.locations.appConnectors.get" call. -// Exactly one of *GoogleCloudBeyondcorpAppconnectorsV1alphaAppConnector -// or error will be non-nil. Any non-2xx status code is an error. -// Response headers are in either -// *GoogleCloudBeyondcorpAppconnectorsV1alphaAppConnector.ServerResponse. -// Header or (if a response was returned at all) in +// Do executes the "beyondcorp.projects.locations.appConnections.get" call. +// Exactly one of +// *GoogleCloudBeyondcorpAppconnectionsV1alphaAppConnection or error +// will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudBeyondcorpAppconnectionsV1alphaAppConnection.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 *ProjectsLocationsAppConnectorsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudBeyondcorpAppconnectorsV1alphaAppConnector, error) { +func (c *ProjectsLocationsAppConnectionsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudBeyondcorpAppconnectionsV1alphaAppConnection, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -13483,7 +12021,7 @@ func (c *ProjectsLocationsAppConnectorsGetCall) Do(opts ...googleapi.CallOption) if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudBeyondcorpAppconnectorsV1alphaAppConnector{ + ret := &GoogleCloudBeyondcorpAppconnectionsV1alphaAppConnection{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -13495,25 +12033,25 @@ func (c *ProjectsLocationsAppConnectorsGetCall) Do(opts ...googleapi.CallOption) } return ret, nil // { - // "description": "Gets details of a single AppConnector.", - // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/appConnectors/{appConnectorsId}", + // "description": "Gets details of a single AppConnection.", + // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/appConnections/{appConnectionsId}", // "httpMethod": "GET", - // "id": "beyondcorp.projects.locations.appConnectors.get", + // "id": "beyondcorp.projects.locations.appConnections.get", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "Required. BeyondCorp AppConnector name using the form: `projects/{project_id}/locations/{location_id}/appConnectors/{app_connector_id}`", + // "description": "Required. BeyondCorp AppConnection name using the form: `projects/{project_id}/locations/{location_id}/appConnections/{app_connection_id}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/appConnectors/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/appConnections/[^/]+$", // "required": true, // "type": "string" // } // }, // "path": "v1alpha/{+name}", // "response": { - // "$ref": "GoogleCloudBeyondcorpAppconnectorsV1alphaAppConnector" + // "$ref": "GoogleCloudBeyondcorpAppconnectionsV1alphaAppConnection" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -13522,9 +12060,9 @@ func (c *ProjectsLocationsAppConnectorsGetCall) Do(opts ...googleapi.CallOption) } -// method id "beyondcorp.projects.locations.appConnectors.getIamPolicy": +// method id "beyondcorp.projects.locations.appConnections.getIamPolicy": -type ProjectsLocationsAppConnectorsGetIamPolicyCall struct { +type ProjectsLocationsAppConnectionsGetIamPolicyCall struct { s *Service resource string urlParams_ gensupport.URLParams @@ -13541,8 +12079,8 @@ type ProjectsLocationsAppConnectorsGetIamPolicyCall struct { // requested. See Resource names // (https://cloud.google.com/apis/design/resource_names) for the // appropriate value for this field. -func (r *ProjectsLocationsAppConnectorsService) GetIamPolicy(resource string) *ProjectsLocationsAppConnectorsGetIamPolicyCall { - c := &ProjectsLocationsAppConnectorsGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ProjectsLocationsAppConnectionsService) GetIamPolicy(resource string) *ProjectsLocationsAppConnectionsGetIamPolicyCall { + c := &ProjectsLocationsAppConnectionsGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.resource = resource return c } @@ -13560,7 +12098,7 @@ func (r *ProjectsLocationsAppConnectorsService) GetIamPolicy(resource string) *P // which resources support conditions in their IAM policies, see the IAM // documentation // (https://cloud.google.com/iam/help/conditions/resource-policies). -func (c *ProjectsLocationsAppConnectorsGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ProjectsLocationsAppConnectorsGetIamPolicyCall { +func (c *ProjectsLocationsAppConnectionsGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ProjectsLocationsAppConnectionsGetIamPolicyCall { c.urlParams_.Set("options.requestedPolicyVersion", fmt.Sprint(optionsRequestedPolicyVersion)) return c } @@ -13568,7 +12106,7 @@ func (c *ProjectsLocationsAppConnectorsGetIamPolicyCall) OptionsRequestedPolicyV // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsAppConnectorsGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsAppConnectorsGetIamPolicyCall { +func (c *ProjectsLocationsAppConnectionsGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsAppConnectionsGetIamPolicyCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -13578,7 +12116,7 @@ func (c *ProjectsLocationsAppConnectorsGetIamPolicyCall) Fields(s ...googleapi.F // 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 *ProjectsLocationsAppConnectorsGetIamPolicyCall) IfNoneMatch(entityTag string) *ProjectsLocationsAppConnectorsGetIamPolicyCall { +func (c *ProjectsLocationsAppConnectionsGetIamPolicyCall) IfNoneMatch(entityTag string) *ProjectsLocationsAppConnectionsGetIamPolicyCall { c.ifNoneMatch_ = entityTag return c } @@ -13586,21 +12124,21 @@ func (c *ProjectsLocationsAppConnectorsGetIamPolicyCall) IfNoneMatch(entityTag s // 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 *ProjectsLocationsAppConnectorsGetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsAppConnectorsGetIamPolicyCall { +func (c *ProjectsLocationsAppConnectionsGetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsAppConnectionsGetIamPolicyCall { 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 *ProjectsLocationsAppConnectorsGetIamPolicyCall) Header() http.Header { +func (c *ProjectsLocationsAppConnectionsGetIamPolicyCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsAppConnectorsGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsAppConnectionsGetIamPolicyCall) 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_ { @@ -13626,14 +12164,14 @@ func (c *ProjectsLocationsAppConnectorsGetIamPolicyCall) doRequest(alt string) ( return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "beyondcorp.projects.locations.appConnectors.getIamPolicy" call. +// Do executes the "beyondcorp.projects.locations.appConnections.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 *ProjectsLocationsAppConnectorsGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1Policy, error) { +func (c *ProjectsLocationsAppConnectionsGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1Policy, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -13665,9 +12203,9 @@ func (c *ProjectsLocationsAppConnectorsGetIamPolicyCall) Do(opts ...googleapi.Ca return ret, nil // { // "description": "Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.", - // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/appConnectors/{appConnectorsId}:getIamPolicy", + // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/appConnections/{appConnectionsId}:getIamPolicy", // "httpMethod": "GET", - // "id": "beyondcorp.projects.locations.appConnectors.getIamPolicy", + // "id": "beyondcorp.projects.locations.appConnections.getIamPolicy", // "parameterOrder": [ // "resource" // ], @@ -13681,7 +12219,7 @@ func (c *ProjectsLocationsAppConnectorsGetIamPolicyCall) Do(opts ...googleapi.Ca // "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/[^/]+/locations/[^/]+/appConnectors/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/appConnections/[^/]+$", // "required": true, // "type": "string" // } @@ -13697,9 +12235,9 @@ func (c *ProjectsLocationsAppConnectorsGetIamPolicyCall) Do(opts ...googleapi.Ca } -// method id "beyondcorp.projects.locations.appConnectors.list": +// method id "beyondcorp.projects.locations.appConnections.list": -type ProjectsLocationsAppConnectorsListCall struct { +type ProjectsLocationsAppConnectionsListCall struct { s *Service parent string urlParams_ gensupport.URLParams @@ -13708,19 +12246,19 @@ type ProjectsLocationsAppConnectorsListCall struct { header_ http.Header } -// List: Lists AppConnectors in a given project and location. +// List: Lists AppConnections in a given project and location. // -// - parent: The resource name of the AppConnector location using the +// - parent: The resource name of the AppConnection location using the // form: `projects/{project_id}/locations/{location_id}`. -func (r *ProjectsLocationsAppConnectorsService) List(parent string) *ProjectsLocationsAppConnectorsListCall { - c := &ProjectsLocationsAppConnectorsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ProjectsLocationsAppConnectionsService) List(parent string) *ProjectsLocationsAppConnectionsListCall { + c := &ProjectsLocationsAppConnectionsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent return c } // Filter sets the optional parameter "filter": A filter specifying // constraints of a list operation. -func (c *ProjectsLocationsAppConnectorsListCall) Filter(filter string) *ProjectsLocationsAppConnectorsListCall { +func (c *ProjectsLocationsAppConnectionsListCall) Filter(filter string) *ProjectsLocationsAppConnectionsListCall { c.urlParams_.Set("filter", filter) return c } @@ -13729,7 +12267,7 @@ func (c *ProjectsLocationsAppConnectorsListCall) Filter(filter string) *Projects // of results. See Sorting order // (https://cloud.google.com/apis/design/design_patterns#sorting_order) // for more information. -func (c *ProjectsLocationsAppConnectorsListCall) OrderBy(orderBy string) *ProjectsLocationsAppConnectorsListCall { +func (c *ProjectsLocationsAppConnectionsListCall) OrderBy(orderBy string) *ProjectsLocationsAppConnectionsListCall { c.urlParams_.Set("orderBy", orderBy) return c } @@ -13740,15 +12278,15 @@ func (c *ProjectsLocationsAppConnectorsListCall) OrderBy(orderBy string) *Projec // may include a partial list and a caller should only rely on // response's next_page_token to determine if there are more instances // left to be queried. -func (c *ProjectsLocationsAppConnectorsListCall) PageSize(pageSize int64) *ProjectsLocationsAppConnectorsListCall { +func (c *ProjectsLocationsAppConnectionsListCall) PageSize(pageSize int64) *ProjectsLocationsAppConnectionsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } // PageToken sets the optional parameter "pageToken": The // next_page_token value returned from a previous -// ListAppConnectorsRequest, if any. -func (c *ProjectsLocationsAppConnectorsListCall) PageToken(pageToken string) *ProjectsLocationsAppConnectorsListCall { +// ListAppConnectionsRequest, if any. +func (c *ProjectsLocationsAppConnectionsListCall) PageToken(pageToken string) *ProjectsLocationsAppConnectionsListCall { c.urlParams_.Set("pageToken", pageToken) return c } @@ -13756,7 +12294,7 @@ func (c *ProjectsLocationsAppConnectorsListCall) PageToken(pageToken string) *Pr // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsAppConnectorsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsAppConnectorsListCall { +func (c *ProjectsLocationsAppConnectionsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsAppConnectionsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -13766,7 +12304,7 @@ func (c *ProjectsLocationsAppConnectorsListCall) Fields(s ...googleapi.Field) *P // 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 *ProjectsLocationsAppConnectorsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsAppConnectorsListCall { +func (c *ProjectsLocationsAppConnectionsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsAppConnectionsListCall { c.ifNoneMatch_ = entityTag return c } @@ -13774,21 +12312,21 @@ func (c *ProjectsLocationsAppConnectorsListCall) IfNoneMatch(entityTag string) * // 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 *ProjectsLocationsAppConnectorsListCall) Context(ctx context.Context) *ProjectsLocationsAppConnectorsListCall { +func (c *ProjectsLocationsAppConnectionsListCall) Context(ctx context.Context) *ProjectsLocationsAppConnectionsListCall { 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 *ProjectsLocationsAppConnectorsListCall) Header() http.Header { +func (c *ProjectsLocationsAppConnectionsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsAppConnectorsListCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsAppConnectionsListCall) 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_ { @@ -13801,7 +12339,7 @@ func (c *ProjectsLocationsAppConnectorsListCall) doRequest(alt string) (*http.Re var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/appConnectors") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/appConnections") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -13814,17 +12352,17 @@ func (c *ProjectsLocationsAppConnectorsListCall) doRequest(alt string) (*http.Re return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "beyondcorp.projects.locations.appConnectors.list" call. +// Do executes the "beyondcorp.projects.locations.appConnections.list" call. // Exactly one of -// *GoogleCloudBeyondcorpAppconnectorsV1alphaListAppConnectorsResponse +// *GoogleCloudBeyondcorpAppconnectionsV1alphaListAppConnectionsResponse // or error will be non-nil. Any non-2xx status code is an error. // Response headers are in either -// *GoogleCloudBeyondcorpAppconnectorsV1alphaListAppConnectorsResponse.Se -// rverResponse.Header or (if a response was returned at all) in +// *GoogleCloudBeyondcorpAppconnectionsV1alphaListAppConnectionsResponse. +// 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 *ProjectsLocationsAppConnectorsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudBeyondcorpAppconnectorsV1alphaListAppConnectorsResponse, error) { +func (c *ProjectsLocationsAppConnectionsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudBeyondcorpAppconnectionsV1alphaListAppConnectionsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -13843,7 +12381,7 @@ func (c *ProjectsLocationsAppConnectorsListCall) Do(opts ...googleapi.CallOption if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudBeyondcorpAppconnectorsV1alphaListAppConnectorsResponse{ + ret := &GoogleCloudBeyondcorpAppconnectionsV1alphaListAppConnectionsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -13855,10 +12393,10 @@ func (c *ProjectsLocationsAppConnectorsListCall) Do(opts ...googleapi.CallOption } return ret, nil // { - // "description": "Lists AppConnectors in a given project and location.", - // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/appConnectors", + // "description": "Lists AppConnections in a given project and location.", + // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/appConnections", // "httpMethod": "GET", - // "id": "beyondcorp.projects.locations.appConnectors.list", + // "id": "beyondcorp.projects.locations.appConnections.list", // "parameterOrder": [ // "parent" // ], @@ -13880,21 +12418,21 @@ func (c *ProjectsLocationsAppConnectorsListCall) Do(opts ...googleapi.CallOption // "type": "integer" // }, // "pageToken": { - // "description": "Optional. The next_page_token value returned from a previous ListAppConnectorsRequest, if any.", + // "description": "Optional. The next_page_token value returned from a previous ListAppConnectionsRequest, if any.", // "location": "query", // "type": "string" // }, // "parent": { - // "description": "Required. The resource name of the AppConnector location using the form: `projects/{project_id}/locations/{location_id}`", + // "description": "Required. The resource name of the AppConnection location using the form: `projects/{project_id}/locations/{location_id}`", // "location": "path", // "pattern": "^projects/[^/]+/locations/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1alpha/{+parent}/appConnectors", + // "path": "v1alpha/{+parent}/appConnections", // "response": { - // "$ref": "GoogleCloudBeyondcorpAppconnectorsV1alphaListAppConnectorsResponse" + // "$ref": "GoogleCloudBeyondcorpAppconnectionsV1alphaListAppConnectionsResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -13906,7 +12444,7 @@ func (c *ProjectsLocationsAppConnectorsListCall) Do(opts ...googleapi.CallOption // 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 *ProjectsLocationsAppConnectorsListCall) Pages(ctx context.Context, f func(*GoogleCloudBeyondcorpAppconnectorsV1alphaListAppConnectorsResponse) error) error { +func (c *ProjectsLocationsAppConnectionsListCall) Pages(ctx context.Context, f func(*GoogleCloudBeyondcorpAppconnectionsV1alphaListAppConnectionsResponse) error) error { c.ctx_ = ctx defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point for { @@ -13924,25 +12462,32 @@ func (c *ProjectsLocationsAppConnectorsListCall) Pages(ctx context.Context, f fu } } -// method id "beyondcorp.projects.locations.appConnectors.patch": +// method id "beyondcorp.projects.locations.appConnections.patch": -type ProjectsLocationsAppConnectorsPatchCall struct { - s *Service - name string - googlecloudbeyondcorpappconnectorsv1alphaappconnector *GoogleCloudBeyondcorpAppconnectorsV1alphaAppConnector - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsAppConnectionsPatchCall struct { + s *Service + name string + googlecloudbeyondcorpappconnectionsv1alphaappconnection *GoogleCloudBeyondcorpAppconnectionsV1alphaAppConnection + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Patch: Updates the parameters of a single AppConnector. +// Patch: Updates the parameters of a single AppConnection. // -// - name: Unique resource name of the AppConnector. The name is ignored -// when creating a AppConnector. -func (r *ProjectsLocationsAppConnectorsService) Patch(name string, googlecloudbeyondcorpappconnectorsv1alphaappconnector *GoogleCloudBeyondcorpAppconnectorsV1alphaAppConnector) *ProjectsLocationsAppConnectorsPatchCall { - c := &ProjectsLocationsAppConnectorsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: Unique resource name of the AppConnection. The name is +// ignored when creating a AppConnection. +func (r *ProjectsLocationsAppConnectionsService) Patch(name string, googlecloudbeyondcorpappconnectionsv1alphaappconnection *GoogleCloudBeyondcorpAppconnectionsV1alphaAppConnection) *ProjectsLocationsAppConnectionsPatchCall { + c := &ProjectsLocationsAppConnectionsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name - c.googlecloudbeyondcorpappconnectorsv1alphaappconnector = googlecloudbeyondcorpappconnectorsv1alphaappconnector + c.googlecloudbeyondcorpappconnectionsv1alphaappconnection = googlecloudbeyondcorpappconnectionsv1alphaappconnection + return c +} + +// AllowMissing sets the optional parameter "allowMissing": If set as +// true, will create the resource if it is not found. +func (c *ProjectsLocationsAppConnectionsPatchCall) AllowMissing(allowMissing bool) *ProjectsLocationsAppConnectionsPatchCall { + c.urlParams_.Set("allowMissing", fmt.Sprint(allowMissing)) return c } @@ -13959,7 +12504,7 @@ func (r *ProjectsLocationsAppConnectorsService) Patch(name string, googlecloudbe // commitments. The request ID must be a valid UUID with the exception // that zero UUID is not supported // (00000000-0000-0000-0000-000000000000). -func (c *ProjectsLocationsAppConnectorsPatchCall) RequestId(requestId string) *ProjectsLocationsAppConnectorsPatchCall { +func (c *ProjectsLocationsAppConnectionsPatchCall) RequestId(requestId string) *ProjectsLocationsAppConnectionsPatchCall { c.urlParams_.Set("requestId", requestId) return c } @@ -13967,9 +12512,9 @@ func (c *ProjectsLocationsAppConnectorsPatchCall) RequestId(requestId string) *P // UpdateMask sets the optional parameter "updateMask": Required. Mask // of fields to update. At least one path must be supplied in this // field. The elements of the repeated paths field may only include -// these fields from [BeyondCorp.AppConnector]: * `labels` * -// `display_name` -func (c *ProjectsLocationsAppConnectorsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsAppConnectorsPatchCall { +// these fields from [BeyondCorp.AppConnection]: * `labels` * +// `display_name` * `application_endpoint` * `connectors` +func (c *ProjectsLocationsAppConnectionsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsAppConnectionsPatchCall { c.urlParams_.Set("updateMask", updateMask) return c } @@ -13977,7 +12522,7 @@ func (c *ProjectsLocationsAppConnectorsPatchCall) UpdateMask(updateMask string) // ValidateOnly sets the optional parameter "validateOnly": If set, // validates request by executing a dry-run which would not alter the // resource in any way. -func (c *ProjectsLocationsAppConnectorsPatchCall) ValidateOnly(validateOnly bool) *ProjectsLocationsAppConnectorsPatchCall { +func (c *ProjectsLocationsAppConnectionsPatchCall) ValidateOnly(validateOnly bool) *ProjectsLocationsAppConnectionsPatchCall { c.urlParams_.Set("validateOnly", fmt.Sprint(validateOnly)) return c } @@ -13985,7 +12530,7 @@ func (c *ProjectsLocationsAppConnectorsPatchCall) ValidateOnly(validateOnly bool // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsAppConnectorsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsAppConnectorsPatchCall { +func (c *ProjectsLocationsAppConnectionsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsAppConnectionsPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -13993,21 +12538,21 @@ func (c *ProjectsLocationsAppConnectorsPatchCall) Fields(s ...googleapi.Field) * // 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 *ProjectsLocationsAppConnectorsPatchCall) Context(ctx context.Context) *ProjectsLocationsAppConnectorsPatchCall { +func (c *ProjectsLocationsAppConnectionsPatchCall) Context(ctx context.Context) *ProjectsLocationsAppConnectionsPatchCall { 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 *ProjectsLocationsAppConnectorsPatchCall) Header() http.Header { +func (c *ProjectsLocationsAppConnectionsPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsAppConnectorsPatchCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsAppConnectionsPatchCall) 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_ { @@ -14015,7 +12560,7 @@ func (c *ProjectsLocationsAppConnectorsPatchCall) doRequest(alt string) (*http.R } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudbeyondcorpappconnectorsv1alphaappconnector) + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudbeyondcorpappconnectionsv1alphaappconnection) if err != nil { return nil, err } @@ -14035,174 +12580,14 @@ func (c *ProjectsLocationsAppConnectorsPatchCall) doRequest(alt string) (*http.R return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "beyondcorp.projects.locations.appConnectors.patch" call. -// Exactly one of *GoogleLongrunningOperation or error will be non-nil. -// Any non-2xx status code is an error. Response headers are in either -// *GoogleLongrunningOperation.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 *ProjectsLocationsAppConnectorsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &GoogleLongrunningOperation{ - 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 the parameters of a single AppConnector.", - // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/appConnectors/{appConnectorsId}", - // "httpMethod": "PATCH", - // "id": "beyondcorp.projects.locations.appConnectors.patch", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Required. Unique resource name of the AppConnector. The name is ignored when creating a AppConnector.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/appConnectors/[^/]+$", - // "required": true, - // "type": "string" - // }, - // "requestId": { - // "description": "Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).", - // "location": "query", - // "type": "string" - // }, - // "updateMask": { - // "description": "Required. Mask of fields to update. At least one path must be supplied in this field. The elements of the repeated paths field may only include these fields from [BeyondCorp.AppConnector]: * `labels` * `display_name`", - // "format": "google-fieldmask", - // "location": "query", - // "type": "string" - // }, - // "validateOnly": { - // "description": "Optional. If set, validates request by executing a dry-run which would not alter the resource in any way.", - // "location": "query", - // "type": "boolean" - // } - // }, - // "path": "v1alpha/{+name}", - // "request": { - // "$ref": "GoogleCloudBeyondcorpAppconnectorsV1alphaAppConnector" - // }, - // "response": { - // "$ref": "GoogleLongrunningOperation" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "beyondcorp.projects.locations.appConnectors.reportStatus": - -type ProjectsLocationsAppConnectorsReportStatusCall struct { - s *Service - appConnector string - googlecloudbeyondcorpappconnectorsv1alphareportstatusrequest *GoogleCloudBeyondcorpAppconnectorsV1alphaReportStatusRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// ReportStatus: Report status for a given connector. -// -// - appConnector: BeyondCorp Connector name using the form: -// `projects/{project_id}/locations/{location_id}/connectors/{connector -// }`. -func (r *ProjectsLocationsAppConnectorsService) ReportStatus(appConnector string, googlecloudbeyondcorpappconnectorsv1alphareportstatusrequest *GoogleCloudBeyondcorpAppconnectorsV1alphaReportStatusRequest) *ProjectsLocationsAppConnectorsReportStatusCall { - c := &ProjectsLocationsAppConnectorsReportStatusCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.appConnector = appConnector - c.googlecloudbeyondcorpappconnectorsv1alphareportstatusrequest = googlecloudbeyondcorpappconnectorsv1alphareportstatusrequest - 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 *ProjectsLocationsAppConnectorsReportStatusCall) Fields(s ...googleapi.Field) *ProjectsLocationsAppConnectorsReportStatusCall { - 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 *ProjectsLocationsAppConnectorsReportStatusCall) Context(ctx context.Context) *ProjectsLocationsAppConnectorsReportStatusCall { - 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 *ProjectsLocationsAppConnectorsReportStatusCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *ProjectsLocationsAppConnectorsReportStatusCall) 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.googlecloudbeyondcorpappconnectorsv1alphareportstatusrequest) - 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, "v1alpha/{+appConnector}:reportStatus") - 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{ - "appConnector": c.appConnector, - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "beyondcorp.projects.locations.appConnectors.reportStatus" call. +// Do executes the "beyondcorp.projects.locations.appConnections.patch" call. // Exactly one of *GoogleLongrunningOperation or error will be non-nil. // Any non-2xx status code is an error. Response headers are in either // *GoogleLongrunningOperation.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 *ProjectsLocationsAppConnectorsReportStatusCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsAppConnectionsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -14233,25 +12618,46 @@ func (c *ProjectsLocationsAppConnectorsReportStatusCall) Do(opts ...googleapi.Ca } return ret, nil // { - // "description": "Report status for a given connector.", - // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/appConnectors/{appConnectorsId}:reportStatus", - // "httpMethod": "POST", - // "id": "beyondcorp.projects.locations.appConnectors.reportStatus", + // "description": "Updates the parameters of a single AppConnection.", + // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/appConnections/{appConnectionsId}", + // "httpMethod": "PATCH", + // "id": "beyondcorp.projects.locations.appConnections.patch", // "parameterOrder": [ - // "appConnector" + // "name" // ], // "parameters": { - // "appConnector": { - // "description": "Required. BeyondCorp Connector name using the form: `projects/{project_id}/locations/{location_id}/connectors/{connector}`", + // "allowMissing": { + // "description": "Optional. If set as true, will create the resource if it is not found.", + // "location": "query", + // "type": "boolean" + // }, + // "name": { + // "description": "Required. Unique resource name of the AppConnection. The name is ignored when creating a AppConnection.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/appConnectors/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/appConnections/[^/]+$", // "required": true, // "type": "string" + // }, + // "requestId": { + // "description": "Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).", + // "location": "query", + // "type": "string" + // }, + // "updateMask": { + // "description": "Required. Mask of fields to update. At least one path must be supplied in this field. The elements of the repeated paths field may only include these fields from [BeyondCorp.AppConnection]: * `labels` * `display_name` * `application_endpoint` * `connectors`", + // "format": "google-fieldmask", + // "location": "query", + // "type": "string" + // }, + // "validateOnly": { + // "description": "Optional. If set, validates request by executing a dry-run which would not alter the resource in any way.", + // "location": "query", + // "type": "boolean" // } // }, - // "path": "v1alpha/{+appConnector}:reportStatus", + // "path": "v1alpha/{+name}", // "request": { - // "$ref": "GoogleCloudBeyondcorpAppconnectorsV1alphaReportStatusRequest" + // "$ref": "GoogleCloudBeyondcorpAppconnectionsV1alphaAppConnection" // }, // "response": { // "$ref": "GoogleLongrunningOperation" @@ -14263,34 +12669,62 @@ func (c *ProjectsLocationsAppConnectorsReportStatusCall) Do(opts ...googleapi.Ca } -// method id "beyondcorp.projects.locations.appConnectors.resolveInstanceConfig": +// method id "beyondcorp.projects.locations.appConnections.resolve": -type ProjectsLocationsAppConnectorsResolveInstanceConfigCall struct { +type ProjectsLocationsAppConnectionsResolveCall struct { s *Service - appConnector string + parent string urlParams_ gensupport.URLParams ifNoneMatch_ string ctx_ context.Context header_ http.Header } -// ResolveInstanceConfig: Gets instance configuration for a given -// AppConnector. An internal method called by a AppConnector to get its -// container config. +// Resolve: Resolves AppConnections details for a given AppConnector. An +// internal method called by a connector to find AppConnections to +// connect to. // -// - appConnector: BeyondCorp AppConnector name using the form: -// `projects/{project_id}/locations/{location_id}/appConnectors/{app_co -// nnector}`. -func (r *ProjectsLocationsAppConnectorsService) ResolveInstanceConfig(appConnector string) *ProjectsLocationsAppConnectorsResolveInstanceConfigCall { - c := &ProjectsLocationsAppConnectorsResolveInstanceConfigCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.appConnector = appConnector +// - parent: The resource name of the AppConnection location using the +// form: `projects/{project_id}/locations/{location_id}`. +func (r *ProjectsLocationsAppConnectionsService) Resolve(parent string) *ProjectsLocationsAppConnectionsResolveCall { + c := &ProjectsLocationsAppConnectionsResolveCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// AppConnectorId sets the optional parameter "appConnectorId": +// Required. BeyondCorp Connector name of the connector associated with +// those AppConnections using the form: +// `projects/{project_id}/locations/{location_id}/appConnectors/{app_conn +// ector_id}` +func (c *ProjectsLocationsAppConnectionsResolveCall) AppConnectorId(appConnectorId string) *ProjectsLocationsAppConnectionsResolveCall { + c.urlParams_.Set("appConnectorId", appConnectorId) + return c +} + +// PageSize sets the optional parameter "pageSize": The maximum number +// of items to return. If not specified, a default value of 50 will be +// used by the service. Regardless of the page_size value, the response +// may include a partial list and a caller should only rely on +// response's next_page_token to determine if there are more instances +// left to be queried. +func (c *ProjectsLocationsAppConnectionsResolveCall) PageSize(pageSize int64) *ProjectsLocationsAppConnectionsResolveCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": The +// next_page_token value returned from a previous +// ResolveAppConnectionsResponse, if any. +func (c *ProjectsLocationsAppConnectionsResolveCall) PageToken(pageToken string) *ProjectsLocationsAppConnectionsResolveCall { + 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 *ProjectsLocationsAppConnectorsResolveInstanceConfigCall) Fields(s ...googleapi.Field) *ProjectsLocationsAppConnectorsResolveInstanceConfigCall { +func (c *ProjectsLocationsAppConnectionsResolveCall) Fields(s ...googleapi.Field) *ProjectsLocationsAppConnectionsResolveCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -14300,7 +12734,7 @@ func (c *ProjectsLocationsAppConnectorsResolveInstanceConfigCall) Fields(s ...go // 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 *ProjectsLocationsAppConnectorsResolveInstanceConfigCall) IfNoneMatch(entityTag string) *ProjectsLocationsAppConnectorsResolveInstanceConfigCall { +func (c *ProjectsLocationsAppConnectionsResolveCall) IfNoneMatch(entityTag string) *ProjectsLocationsAppConnectionsResolveCall { c.ifNoneMatch_ = entityTag return c } @@ -14308,21 +12742,21 @@ func (c *ProjectsLocationsAppConnectorsResolveInstanceConfigCall) IfNoneMatch(en // 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 *ProjectsLocationsAppConnectorsResolveInstanceConfigCall) Context(ctx context.Context) *ProjectsLocationsAppConnectorsResolveInstanceConfigCall { +func (c *ProjectsLocationsAppConnectionsResolveCall) Context(ctx context.Context) *ProjectsLocationsAppConnectionsResolveCall { 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 *ProjectsLocationsAppConnectorsResolveInstanceConfigCall) Header() http.Header { +func (c *ProjectsLocationsAppConnectionsResolveCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsAppConnectorsResolveInstanceConfigCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsAppConnectionsResolveCall) 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_ { @@ -14335,7 +12769,7 @@ func (c *ProjectsLocationsAppConnectorsResolveInstanceConfigCall) doRequest(alt var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+appConnector}:resolveInstanceConfig") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/appConnections:resolve") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -14343,22 +12777,22 @@ func (c *ProjectsLocationsAppConnectorsResolveInstanceConfigCall) doRequest(alt } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "appConnector": c.appConnector, + "parent": c.parent, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "beyondcorp.projects.locations.appConnectors.resolveInstanceConfig" call. +// Do executes the "beyondcorp.projects.locations.appConnections.resolve" call. // Exactly one of -// *GoogleCloudBeyondcorpAppconnectorsV1alphaResolveInstanceConfigRespons -// e or error will be non-nil. Any non-2xx status code is an error. +// *GoogleCloudBeyondcorpAppconnectionsV1alphaResolveAppConnectionsRespon +// se or error will be non-nil. Any non-2xx status code is an error. // Response headers are in either -// *GoogleCloudBeyondcorpAppconnectorsV1alphaResolveInstanceConfigRespons -// e.ServerResponse.Header or (if a response was returned at all) in +// *GoogleCloudBeyondcorpAppconnectionsV1alphaResolveAppConnectionsRespon +// 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 *ProjectsLocationsAppConnectorsResolveInstanceConfigCall) Do(opts ...googleapi.CallOption) (*GoogleCloudBeyondcorpAppconnectorsV1alphaResolveInstanceConfigResponse, error) { +func (c *ProjectsLocationsAppConnectionsResolveCall) Do(opts ...googleapi.CallOption) (*GoogleCloudBeyondcorpAppconnectionsV1alphaResolveAppConnectionsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -14377,7 +12811,7 @@ func (c *ProjectsLocationsAppConnectorsResolveInstanceConfigCall) Do(opts ...goo if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudBeyondcorpAppconnectorsV1alphaResolveInstanceConfigResponse{ + ret := &GoogleCloudBeyondcorpAppconnectionsV1alphaResolveAppConnectionsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -14389,25 +12823,41 @@ func (c *ProjectsLocationsAppConnectorsResolveInstanceConfigCall) Do(opts ...goo } return ret, nil // { - // "description": "Gets instance configuration for a given AppConnector. An internal method called by a AppConnector to get its container config.", - // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/appConnectors/{appConnectorsId}:resolveInstanceConfig", + // "description": "Resolves AppConnections details for a given AppConnector. An internal method called by a connector to find AppConnections to connect to.", + // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/appConnections:resolve", // "httpMethod": "GET", - // "id": "beyondcorp.projects.locations.appConnectors.resolveInstanceConfig", + // "id": "beyondcorp.projects.locations.appConnections.resolve", // "parameterOrder": [ - // "appConnector" + // "parent" // ], // "parameters": { - // "appConnector": { - // "description": "Required. BeyondCorp AppConnector name using the form: `projects/{project_id}/locations/{location_id}/appConnectors/{app_connector}`", + // "appConnectorId": { + // "description": "Required. BeyondCorp Connector name of the connector associated with those AppConnections using the form: `projects/{project_id}/locations/{location_id}/appConnectors/{app_connector_id}`", + // "location": "query", + // "type": "string" + // }, + // "pageSize": { + // "description": "Optional. The maximum number of items to return. If not specified, a default value of 50 will be used by the service. Regardless of the page_size value, the response may include a partial list and a caller should only rely on response's next_page_token to determine if there are more instances left to be queried.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "Optional. The next_page_token value returned from a previous ResolveAppConnectionsResponse, if any.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "Required. The resource name of the AppConnection location using the form: `projects/{project_id}/locations/{location_id}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/appConnectors/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1alpha/{+appConnector}:resolveInstanceConfig", + // "path": "v1alpha/{+parent}/appConnections:resolve", // "response": { - // "$ref": "GoogleCloudBeyondcorpAppconnectorsV1alphaResolveInstanceConfigResponse" + // "$ref": "GoogleCloudBeyondcorpAppconnectionsV1alphaResolveAppConnectionsResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -14416,9 +12866,30 @@ func (c *ProjectsLocationsAppConnectorsResolveInstanceConfigCall) Do(opts ...goo } -// method id "beyondcorp.projects.locations.appConnectors.setIamPolicy": +// 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 *ProjectsLocationsAppConnectionsResolveCall) Pages(ctx context.Context, f func(*GoogleCloudBeyondcorpAppconnectionsV1alphaResolveAppConnectionsResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} -type ProjectsLocationsAppConnectorsSetIamPolicyCall struct { +// method id "beyondcorp.projects.locations.appConnections.setIamPolicy": + +type ProjectsLocationsAppConnectionsSetIamPolicyCall struct { s *Service resource string googleiamv1setiampolicyrequest *GoogleIamV1SetIamPolicyRequest @@ -14435,8 +12906,8 @@ type ProjectsLocationsAppConnectorsSetIamPolicyCall struct { // specified. See Resource names // (https://cloud.google.com/apis/design/resource_names) for the // appropriate value for this field. -func (r *ProjectsLocationsAppConnectorsService) SetIamPolicy(resource string, googleiamv1setiampolicyrequest *GoogleIamV1SetIamPolicyRequest) *ProjectsLocationsAppConnectorsSetIamPolicyCall { - c := &ProjectsLocationsAppConnectorsSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ProjectsLocationsAppConnectionsService) SetIamPolicy(resource string, googleiamv1setiampolicyrequest *GoogleIamV1SetIamPolicyRequest) *ProjectsLocationsAppConnectionsSetIamPolicyCall { + c := &ProjectsLocationsAppConnectionsSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.resource = resource c.googleiamv1setiampolicyrequest = googleiamv1setiampolicyrequest return c @@ -14445,7 +12916,7 @@ func (r *ProjectsLocationsAppConnectorsService) SetIamPolicy(resource string, go // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsAppConnectorsSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsAppConnectorsSetIamPolicyCall { +func (c *ProjectsLocationsAppConnectionsSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsAppConnectionsSetIamPolicyCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -14453,21 +12924,21 @@ func (c *ProjectsLocationsAppConnectorsSetIamPolicyCall) Fields(s ...googleapi.F // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ProjectsLocationsAppConnectorsSetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsAppConnectorsSetIamPolicyCall { +func (c *ProjectsLocationsAppConnectionsSetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsAppConnectionsSetIamPolicyCall { 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 *ProjectsLocationsAppConnectorsSetIamPolicyCall) Header() http.Header { +func (c *ProjectsLocationsAppConnectionsSetIamPolicyCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsAppConnectorsSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsAppConnectionsSetIamPolicyCall) 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_ { @@ -14495,14 +12966,14 @@ func (c *ProjectsLocationsAppConnectorsSetIamPolicyCall) doRequest(alt string) ( return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "beyondcorp.projects.locations.appConnectors.setIamPolicy" call. +// Do executes the "beyondcorp.projects.locations.appConnections.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 *ProjectsLocationsAppConnectorsSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1Policy, error) { +func (c *ProjectsLocationsAppConnectionsSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1Policy, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -14534,9 +13005,9 @@ func (c *ProjectsLocationsAppConnectorsSetIamPolicyCall) Do(opts ...googleapi.Ca return ret, nil // { // "description": "Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.", - // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/appConnectors/{appConnectorsId}:setIamPolicy", + // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/appConnections/{appConnectionsId}:setIamPolicy", // "httpMethod": "POST", - // "id": "beyondcorp.projects.locations.appConnectors.setIamPolicy", + // "id": "beyondcorp.projects.locations.appConnections.setIamPolicy", // "parameterOrder": [ // "resource" // ], @@ -14544,7 +13015,7 @@ func (c *ProjectsLocationsAppConnectorsSetIamPolicyCall) Do(opts ...googleapi.Ca // "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/[^/]+/locations/[^/]+/appConnectors/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/appConnections/[^/]+$", // "required": true, // "type": "string" // } @@ -14563,9 +13034,9 @@ func (c *ProjectsLocationsAppConnectorsSetIamPolicyCall) Do(opts ...googleapi.Ca } -// method id "beyondcorp.projects.locations.appConnectors.testIamPermissions": +// method id "beyondcorp.projects.locations.appConnections.testIamPermissions": -type ProjectsLocationsAppConnectorsTestIamPermissionsCall struct { +type ProjectsLocationsAppConnectionsTestIamPermissionsCall struct { s *Service resource string googleiamv1testiampermissionsrequest *GoogleIamV1TestIamPermissionsRequest @@ -14585,8 +13056,8 @@ type ProjectsLocationsAppConnectorsTestIamPermissionsCall struct { // being requested. See Resource names // (https://cloud.google.com/apis/design/resource_names) for the // appropriate value for this field. -func (r *ProjectsLocationsAppConnectorsService) TestIamPermissions(resource string, googleiamv1testiampermissionsrequest *GoogleIamV1TestIamPermissionsRequest) *ProjectsLocationsAppConnectorsTestIamPermissionsCall { - c := &ProjectsLocationsAppConnectorsTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ProjectsLocationsAppConnectionsService) TestIamPermissions(resource string, googleiamv1testiampermissionsrequest *GoogleIamV1TestIamPermissionsRequest) *ProjectsLocationsAppConnectionsTestIamPermissionsCall { + c := &ProjectsLocationsAppConnectionsTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.resource = resource c.googleiamv1testiampermissionsrequest = googleiamv1testiampermissionsrequest return c @@ -14595,7 +13066,7 @@ func (r *ProjectsLocationsAppConnectorsService) TestIamPermissions(resource stri // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsAppConnectorsTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsAppConnectorsTestIamPermissionsCall { +func (c *ProjectsLocationsAppConnectionsTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsAppConnectionsTestIamPermissionsCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -14603,21 +13074,21 @@ func (c *ProjectsLocationsAppConnectorsTestIamPermissionsCall) Fields(s ...googl // 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 *ProjectsLocationsAppConnectorsTestIamPermissionsCall) Context(ctx context.Context) *ProjectsLocationsAppConnectorsTestIamPermissionsCall { +func (c *ProjectsLocationsAppConnectionsTestIamPermissionsCall) Context(ctx context.Context) *ProjectsLocationsAppConnectionsTestIamPermissionsCall { 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 *ProjectsLocationsAppConnectorsTestIamPermissionsCall) Header() http.Header { +func (c *ProjectsLocationsAppConnectionsTestIamPermissionsCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsAppConnectorsTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsAppConnectionsTestIamPermissionsCall) 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_ { @@ -14645,7 +13116,7 @@ func (c *ProjectsLocationsAppConnectorsTestIamPermissionsCall) doRequest(alt str return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "beyondcorp.projects.locations.appConnectors.testIamPermissions" call. +// Do executes the "beyondcorp.projects.locations.appConnections.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 @@ -14653,7 +13124,7 @@ func (c *ProjectsLocationsAppConnectorsTestIamPermissionsCall) doRequest(alt str // 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 *ProjectsLocationsAppConnectorsTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1TestIamPermissionsResponse, error) { +func (c *ProjectsLocationsAppConnectionsTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1TestIamPermissionsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -14685,9 +13156,9 @@ func (c *ProjectsLocationsAppConnectorsTestIamPermissionsCall) Do(opts ...google return ret, nil // { // "description": "Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a `NOT_FOUND` error. Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may \"fail open\" without warning.", - // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/appConnectors/{appConnectorsId}:testIamPermissions", + // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/appConnections/{appConnectionsId}:testIamPermissions", // "httpMethod": "POST", - // "id": "beyondcorp.projects.locations.appConnectors.testIamPermissions", + // "id": "beyondcorp.projects.locations.appConnections.testIamPermissions", // "parameterOrder": [ // "resource" // ], @@ -14695,7 +13166,7 @@ func (c *ProjectsLocationsAppConnectorsTestIamPermissionsCall) Do(opts ...google // "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/[^/]+/locations/[^/]+/appConnectors/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/appConnections/[^/]+$", // "required": true, // "type": "string" // } @@ -14714,34 +13185,34 @@ func (c *ProjectsLocationsAppConnectorsTestIamPermissionsCall) Do(opts ...google } -// method id "beyondcorp.projects.locations.appGateways.create": +// method id "beyondcorp.projects.locations.appConnectors.create": -type ProjectsLocationsAppGatewaysCreateCall struct { - s *Service - parent string - appgateway *AppGateway - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsAppConnectorsCreateCall struct { + s *Service + parent string + googlecloudbeyondcorpappconnectorsv1alphaappconnector *GoogleCloudBeyondcorpAppconnectorsV1alphaAppConnector + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Create: Creates a new AppGateway in a given project and location. +// Create: Creates a new AppConnector in a given project and location. // -// - parent: The resource project name of the AppGateway location using -// the form: `projects/{project_id}/locations/{location_id}`. -func (r *ProjectsLocationsAppGatewaysService) Create(parent string, appgateway *AppGateway) *ProjectsLocationsAppGatewaysCreateCall { - c := &ProjectsLocationsAppGatewaysCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - parent: The resource project name of the AppConnector location +// using the form: `projects/{project_id}/locations/{location_id}`. +func (r *ProjectsLocationsAppConnectorsService) Create(parent string, googlecloudbeyondcorpappconnectorsv1alphaappconnector *GoogleCloudBeyondcorpAppconnectorsV1alphaAppConnector) *ProjectsLocationsAppConnectorsCreateCall { + c := &ProjectsLocationsAppConnectorsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent - c.appgateway = appgateway + c.googlecloudbeyondcorpappconnectorsv1alphaappconnector = googlecloudbeyondcorpappconnectorsv1alphaappconnector return c } -// AppGatewayId sets the optional parameter "appGatewayId": -// User-settable AppGateway resource ID. * Must start with a letter. * +// AppConnectorId sets the optional parameter "appConnectorId": +// User-settable AppConnector resource ID. * Must start with a letter. * // Must contain between 4-63 characters from `/a-z-/`. * Must end with a // number or a letter. -func (c *ProjectsLocationsAppGatewaysCreateCall) AppGatewayId(appGatewayId string) *ProjectsLocationsAppGatewaysCreateCall { - c.urlParams_.Set("appGatewayId", appGatewayId) +func (c *ProjectsLocationsAppConnectorsCreateCall) AppConnectorId(appConnectorId string) *ProjectsLocationsAppConnectorsCreateCall { + c.urlParams_.Set("appConnectorId", appConnectorId) return c } @@ -14758,7 +13229,7 @@ func (c *ProjectsLocationsAppGatewaysCreateCall) AppGatewayId(appGatewayId strin // commitments. The request ID must be a valid UUID with the exception // that zero UUID is not supported // (00000000-0000-0000-0000-000000000000). -func (c *ProjectsLocationsAppGatewaysCreateCall) RequestId(requestId string) *ProjectsLocationsAppGatewaysCreateCall { +func (c *ProjectsLocationsAppConnectorsCreateCall) RequestId(requestId string) *ProjectsLocationsAppConnectorsCreateCall { c.urlParams_.Set("requestId", requestId) return c } @@ -14766,7 +13237,7 @@ func (c *ProjectsLocationsAppGatewaysCreateCall) RequestId(requestId string) *Pr // ValidateOnly sets the optional parameter "validateOnly": If set, // validates request by executing a dry-run which would not alter the // resource in any way. -func (c *ProjectsLocationsAppGatewaysCreateCall) ValidateOnly(validateOnly bool) *ProjectsLocationsAppGatewaysCreateCall { +func (c *ProjectsLocationsAppConnectorsCreateCall) ValidateOnly(validateOnly bool) *ProjectsLocationsAppConnectorsCreateCall { c.urlParams_.Set("validateOnly", fmt.Sprint(validateOnly)) return c } @@ -14774,7 +13245,7 @@ func (c *ProjectsLocationsAppGatewaysCreateCall) ValidateOnly(validateOnly bool) // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsAppGatewaysCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsAppGatewaysCreateCall { +func (c *ProjectsLocationsAppConnectorsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsAppConnectorsCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -14782,21 +13253,21 @@ func (c *ProjectsLocationsAppGatewaysCreateCall) Fields(s ...googleapi.Field) *P // 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 *ProjectsLocationsAppGatewaysCreateCall) Context(ctx context.Context) *ProjectsLocationsAppGatewaysCreateCall { +func (c *ProjectsLocationsAppConnectorsCreateCall) Context(ctx context.Context) *ProjectsLocationsAppConnectorsCreateCall { 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 *ProjectsLocationsAppGatewaysCreateCall) Header() http.Header { +func (c *ProjectsLocationsAppConnectorsCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsAppGatewaysCreateCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsAppConnectorsCreateCall) 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_ { @@ -14804,14 +13275,14 @@ func (c *ProjectsLocationsAppGatewaysCreateCall) doRequest(alt string) (*http.Re } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.appgateway) + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudbeyondcorpappconnectorsv1alphaappconnector) 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, "v1alpha/{+parent}/appGateways") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/appConnectors") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -14824,14 +13295,14 @@ func (c *ProjectsLocationsAppGatewaysCreateCall) doRequest(alt string) (*http.Re return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "beyondcorp.projects.locations.appGateways.create" call. +// Do executes the "beyondcorp.projects.locations.appConnectors.create" call. // Exactly one of *GoogleLongrunningOperation or error will be non-nil. // Any non-2xx status code is an error. Response headers are in either // *GoogleLongrunningOperation.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 *ProjectsLocationsAppGatewaysCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsAppConnectorsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -14862,21 +13333,21 @@ func (c *ProjectsLocationsAppGatewaysCreateCall) Do(opts ...googleapi.CallOption } return ret, nil // { - // "description": "Creates a new AppGateway in a given project and location.", - // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/appGateways", + // "description": "Creates a new AppConnector in a given project and location.", + // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/appConnectors", // "httpMethod": "POST", - // "id": "beyondcorp.projects.locations.appGateways.create", + // "id": "beyondcorp.projects.locations.appConnectors.create", // "parameterOrder": [ // "parent" // ], // "parameters": { - // "appGatewayId": { - // "description": "Optional. User-settable AppGateway resource ID. * Must start with a letter. * Must contain between 4-63 characters from `/a-z-/`. * Must end with a number or a letter.", + // "appConnectorId": { + // "description": "Optional. User-settable AppConnector resource ID. * Must start with a letter. * Must contain between 4-63 characters from `/a-z-/`. * Must end with a number or a letter.", // "location": "query", // "type": "string" // }, // "parent": { - // "description": "Required. The resource project name of the AppGateway location using the form: `projects/{project_id}/locations/{location_id}`", + // "description": "Required. The resource project name of the AppConnector location using the form: `projects/{project_id}/locations/{location_id}`", // "location": "path", // "pattern": "^projects/[^/]+/locations/[^/]+$", // "required": true, @@ -14893,9 +13364,9 @@ func (c *ProjectsLocationsAppGatewaysCreateCall) Do(opts ...googleapi.CallOption // "type": "boolean" // } // }, - // "path": "v1alpha/{+parent}/appGateways", + // "path": "v1alpha/{+parent}/appConnectors", // "request": { - // "$ref": "AppGateway" + // "$ref": "GoogleCloudBeyondcorpAppconnectorsV1alphaAppConnector" // }, // "response": { // "$ref": "GoogleLongrunningOperation" @@ -14907,9 +13378,9 @@ func (c *ProjectsLocationsAppGatewaysCreateCall) Do(opts ...googleapi.CallOption } -// method id "beyondcorp.projects.locations.appGateways.delete": +// method id "beyondcorp.projects.locations.appConnectors.delete": -type ProjectsLocationsAppGatewaysDeleteCall struct { +type ProjectsLocationsAppConnectorsDeleteCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -14917,13 +13388,13 @@ type ProjectsLocationsAppGatewaysDeleteCall struct { header_ http.Header } -// Delete: Deletes a single AppGateway. +// Delete: Deletes a single AppConnector. // -// - name: BeyondCorp AppGateway name using the form: -// `projects/{project_id}/locations/{location_id}/appGateways/{app_gate -// way_id}`. -func (r *ProjectsLocationsAppGatewaysService) Delete(name string) *ProjectsLocationsAppGatewaysDeleteCall { - c := &ProjectsLocationsAppGatewaysDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: BeyondCorp AppConnector name using the form: +// `projects/{project_id}/locations/{location_id}/appConnectors/{app_co +// nnector_id}`. +func (r *ProjectsLocationsAppConnectorsService) Delete(name string) *ProjectsLocationsAppConnectorsDeleteCall { + c := &ProjectsLocationsAppConnectorsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -14941,7 +13412,7 @@ func (r *ProjectsLocationsAppGatewaysService) Delete(name string) *ProjectsLocat // commitments. The request ID must be a valid UUID with the exception // that zero UUID is not supported // (00000000-0000-0000-0000-000000000000). -func (c *ProjectsLocationsAppGatewaysDeleteCall) RequestId(requestId string) *ProjectsLocationsAppGatewaysDeleteCall { +func (c *ProjectsLocationsAppConnectorsDeleteCall) RequestId(requestId string) *ProjectsLocationsAppConnectorsDeleteCall { c.urlParams_.Set("requestId", requestId) return c } @@ -14949,7 +13420,7 @@ func (c *ProjectsLocationsAppGatewaysDeleteCall) RequestId(requestId string) *Pr // ValidateOnly sets the optional parameter "validateOnly": If set, // validates request by executing a dry-run which would not alter the // resource in any way. -func (c *ProjectsLocationsAppGatewaysDeleteCall) ValidateOnly(validateOnly bool) *ProjectsLocationsAppGatewaysDeleteCall { +func (c *ProjectsLocationsAppConnectorsDeleteCall) ValidateOnly(validateOnly bool) *ProjectsLocationsAppConnectorsDeleteCall { c.urlParams_.Set("validateOnly", fmt.Sprint(validateOnly)) return c } @@ -14957,7 +13428,7 @@ func (c *ProjectsLocationsAppGatewaysDeleteCall) ValidateOnly(validateOnly bool) // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsAppGatewaysDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsAppGatewaysDeleteCall { +func (c *ProjectsLocationsAppConnectorsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsAppConnectorsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -14965,21 +13436,21 @@ func (c *ProjectsLocationsAppGatewaysDeleteCall) Fields(s ...googleapi.Field) *P // 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 *ProjectsLocationsAppGatewaysDeleteCall) Context(ctx context.Context) *ProjectsLocationsAppGatewaysDeleteCall { +func (c *ProjectsLocationsAppConnectorsDeleteCall) Context(ctx context.Context) *ProjectsLocationsAppConnectorsDeleteCall { 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 *ProjectsLocationsAppGatewaysDeleteCall) Header() http.Header { +func (c *ProjectsLocationsAppConnectorsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsAppGatewaysDeleteCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsAppConnectorsDeleteCall) 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_ { @@ -15002,14 +13473,14 @@ func (c *ProjectsLocationsAppGatewaysDeleteCall) doRequest(alt string) (*http.Re return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "beyondcorp.projects.locations.appGateways.delete" call. +// Do executes the "beyondcorp.projects.locations.appConnectors.delete" call. // Exactly one of *GoogleLongrunningOperation or error will be non-nil. // Any non-2xx status code is an error. Response headers are in either // *GoogleLongrunningOperation.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 *ProjectsLocationsAppGatewaysDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsAppConnectorsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -15040,18 +13511,18 @@ func (c *ProjectsLocationsAppGatewaysDeleteCall) Do(opts ...googleapi.CallOption } return ret, nil // { - // "description": "Deletes a single AppGateway.", - // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/appGateways/{appGatewaysId}", + // "description": "Deletes a single AppConnector.", + // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/appConnectors/{appConnectorsId}", // "httpMethod": "DELETE", - // "id": "beyondcorp.projects.locations.appGateways.delete", + // "id": "beyondcorp.projects.locations.appConnectors.delete", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "Required. BeyondCorp AppGateway name using the form: `projects/{project_id}/locations/{location_id}/appGateways/{app_gateway_id}`", + // "description": "Required. BeyondCorp AppConnector name using the form: `projects/{project_id}/locations/{location_id}/appConnectors/{app_connector_id}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/appGateways/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/appConnectors/[^/]+$", // "required": true, // "type": "string" // }, @@ -15077,9 +13548,9 @@ func (c *ProjectsLocationsAppGatewaysDeleteCall) Do(opts ...googleapi.CallOption } -// method id "beyondcorp.projects.locations.appGateways.get": +// method id "beyondcorp.projects.locations.appConnectors.get": -type ProjectsLocationsAppGatewaysGetCall struct { +type ProjectsLocationsAppConnectorsGetCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -15088,13 +13559,13 @@ type ProjectsLocationsAppGatewaysGetCall struct { header_ http.Header } -// Get: Gets details of a single AppGateway. +// Get: Gets details of a single AppConnector. // -// - name: BeyondCorp AppGateway name using the form: -// `projects/{project_id}/locations/{location_id}/appGateways/{app_gate -// way_id}`. -func (r *ProjectsLocationsAppGatewaysService) Get(name string) *ProjectsLocationsAppGatewaysGetCall { - c := &ProjectsLocationsAppGatewaysGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: BeyondCorp AppConnector name using the form: +// `projects/{project_id}/locations/{location_id}/appConnectors/{app_co +// nnector_id}`. +func (r *ProjectsLocationsAppConnectorsService) Get(name string) *ProjectsLocationsAppConnectorsGetCall { + c := &ProjectsLocationsAppConnectorsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -15102,7 +13573,7 @@ func (r *ProjectsLocationsAppGatewaysService) Get(name string) *ProjectsLocation // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsAppGatewaysGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsAppGatewaysGetCall { +func (c *ProjectsLocationsAppConnectorsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsAppConnectorsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -15112,7 +13583,7 @@ func (c *ProjectsLocationsAppGatewaysGetCall) Fields(s ...googleapi.Field) *Proj // 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 *ProjectsLocationsAppGatewaysGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsAppGatewaysGetCall { +func (c *ProjectsLocationsAppConnectorsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsAppConnectorsGetCall { c.ifNoneMatch_ = entityTag return c } @@ -15120,21 +13591,21 @@ func (c *ProjectsLocationsAppGatewaysGetCall) IfNoneMatch(entityTag string) *Pro // 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 *ProjectsLocationsAppGatewaysGetCall) Context(ctx context.Context) *ProjectsLocationsAppGatewaysGetCall { +func (c *ProjectsLocationsAppConnectorsGetCall) Context(ctx context.Context) *ProjectsLocationsAppConnectorsGetCall { 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 *ProjectsLocationsAppGatewaysGetCall) Header() http.Header { +func (c *ProjectsLocationsAppConnectorsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsAppGatewaysGetCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsAppConnectorsGetCall) 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_ { @@ -15160,14 +13631,16 @@ func (c *ProjectsLocationsAppGatewaysGetCall) doRequest(alt string) (*http.Respo return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "beyondcorp.projects.locations.appGateways.get" call. -// Exactly one of *AppGateway or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *AppGateway.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 *ProjectsLocationsAppGatewaysGetCall) Do(opts ...googleapi.CallOption) (*AppGateway, error) { +// Do executes the "beyondcorp.projects.locations.appConnectors.get" call. +// Exactly one of *GoogleCloudBeyondcorpAppconnectorsV1alphaAppConnector +// or error will be non-nil. Any non-2xx status code is an error. +// Response headers are in either +// *GoogleCloudBeyondcorpAppconnectorsV1alphaAppConnector.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 *ProjectsLocationsAppConnectorsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudBeyondcorpAppconnectorsV1alphaAppConnector, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -15186,7 +13659,7 @@ func (c *ProjectsLocationsAppGatewaysGetCall) Do(opts ...googleapi.CallOption) ( if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &AppGateway{ + ret := &GoogleCloudBeyondcorpAppconnectorsV1alphaAppConnector{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -15198,25 +13671,25 @@ func (c *ProjectsLocationsAppGatewaysGetCall) Do(opts ...googleapi.CallOption) ( } return ret, nil // { - // "description": "Gets details of a single AppGateway.", - // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/appGateways/{appGatewaysId}", + // "description": "Gets details of a single AppConnector.", + // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/appConnectors/{appConnectorsId}", // "httpMethod": "GET", - // "id": "beyondcorp.projects.locations.appGateways.get", + // "id": "beyondcorp.projects.locations.appConnectors.get", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "Required. BeyondCorp AppGateway name using the form: `projects/{project_id}/locations/{location_id}/appGateways/{app_gateway_id}`", + // "description": "Required. BeyondCorp AppConnector name using the form: `projects/{project_id}/locations/{location_id}/appConnectors/{app_connector_id}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/appGateways/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/appConnectors/[^/]+$", // "required": true, // "type": "string" // } // }, // "path": "v1alpha/{+name}", // "response": { - // "$ref": "AppGateway" + // "$ref": "GoogleCloudBeyondcorpAppconnectorsV1alphaAppConnector" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -15225,9 +13698,9 @@ func (c *ProjectsLocationsAppGatewaysGetCall) Do(opts ...googleapi.CallOption) ( } -// method id "beyondcorp.projects.locations.appGateways.getIamPolicy": +// method id "beyondcorp.projects.locations.appConnectors.getIamPolicy": -type ProjectsLocationsAppGatewaysGetIamPolicyCall struct { +type ProjectsLocationsAppConnectorsGetIamPolicyCall struct { s *Service resource string urlParams_ gensupport.URLParams @@ -15244,8 +13717,8 @@ type ProjectsLocationsAppGatewaysGetIamPolicyCall struct { // requested. See Resource names // (https://cloud.google.com/apis/design/resource_names) for the // appropriate value for this field. -func (r *ProjectsLocationsAppGatewaysService) GetIamPolicy(resource string) *ProjectsLocationsAppGatewaysGetIamPolicyCall { - c := &ProjectsLocationsAppGatewaysGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ProjectsLocationsAppConnectorsService) GetIamPolicy(resource string) *ProjectsLocationsAppConnectorsGetIamPolicyCall { + c := &ProjectsLocationsAppConnectorsGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.resource = resource return c } @@ -15263,7 +13736,7 @@ func (r *ProjectsLocationsAppGatewaysService) GetIamPolicy(resource string) *Pro // which resources support conditions in their IAM policies, see the IAM // documentation // (https://cloud.google.com/iam/help/conditions/resource-policies). -func (c *ProjectsLocationsAppGatewaysGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ProjectsLocationsAppGatewaysGetIamPolicyCall { +func (c *ProjectsLocationsAppConnectorsGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ProjectsLocationsAppConnectorsGetIamPolicyCall { c.urlParams_.Set("options.requestedPolicyVersion", fmt.Sprint(optionsRequestedPolicyVersion)) return c } @@ -15271,7 +13744,7 @@ func (c *ProjectsLocationsAppGatewaysGetIamPolicyCall) OptionsRequestedPolicyVer // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsAppGatewaysGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsAppGatewaysGetIamPolicyCall { +func (c *ProjectsLocationsAppConnectorsGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsAppConnectorsGetIamPolicyCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -15281,7 +13754,7 @@ func (c *ProjectsLocationsAppGatewaysGetIamPolicyCall) Fields(s ...googleapi.Fie // 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 *ProjectsLocationsAppGatewaysGetIamPolicyCall) IfNoneMatch(entityTag string) *ProjectsLocationsAppGatewaysGetIamPolicyCall { +func (c *ProjectsLocationsAppConnectorsGetIamPolicyCall) IfNoneMatch(entityTag string) *ProjectsLocationsAppConnectorsGetIamPolicyCall { c.ifNoneMatch_ = entityTag return c } @@ -15289,21 +13762,21 @@ func (c *ProjectsLocationsAppGatewaysGetIamPolicyCall) IfNoneMatch(entityTag str // 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 *ProjectsLocationsAppGatewaysGetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsAppGatewaysGetIamPolicyCall { +func (c *ProjectsLocationsAppConnectorsGetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsAppConnectorsGetIamPolicyCall { 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 *ProjectsLocationsAppGatewaysGetIamPolicyCall) Header() http.Header { +func (c *ProjectsLocationsAppConnectorsGetIamPolicyCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsAppGatewaysGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsAppConnectorsGetIamPolicyCall) 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_ { @@ -15329,14 +13802,14 @@ func (c *ProjectsLocationsAppGatewaysGetIamPolicyCall) doRequest(alt string) (*h return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "beyondcorp.projects.locations.appGateways.getIamPolicy" call. +// Do executes the "beyondcorp.projects.locations.appConnectors.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 *ProjectsLocationsAppGatewaysGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1Policy, error) { +func (c *ProjectsLocationsAppConnectorsGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1Policy, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -15368,9 +13841,9 @@ func (c *ProjectsLocationsAppGatewaysGetIamPolicyCall) Do(opts ...googleapi.Call return ret, nil // { // "description": "Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.", - // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/appGateways/{appGatewaysId}:getIamPolicy", + // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/appConnectors/{appConnectorsId}:getIamPolicy", // "httpMethod": "GET", - // "id": "beyondcorp.projects.locations.appGateways.getIamPolicy", + // "id": "beyondcorp.projects.locations.appConnectors.getIamPolicy", // "parameterOrder": [ // "resource" // ], @@ -15384,7 +13857,7 @@ func (c *ProjectsLocationsAppGatewaysGetIamPolicyCall) Do(opts ...googleapi.Call // "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/[^/]+/locations/[^/]+/appGateways/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/appConnectors/[^/]+$", // "required": true, // "type": "string" // } @@ -15400,9 +13873,9 @@ func (c *ProjectsLocationsAppGatewaysGetIamPolicyCall) Do(opts ...googleapi.Call } -// method id "beyondcorp.projects.locations.appGateways.list": +// method id "beyondcorp.projects.locations.appConnectors.list": -type ProjectsLocationsAppGatewaysListCall struct { +type ProjectsLocationsAppConnectorsListCall struct { s *Service parent string urlParams_ gensupport.URLParams @@ -15411,19 +13884,19 @@ type ProjectsLocationsAppGatewaysListCall struct { header_ http.Header } -// List: Lists AppGateways in a given project and location. +// List: Lists AppConnectors in a given project and location. // -// - parent: The resource name of the AppGateway location using the +// - parent: The resource name of the AppConnector location using the // form: `projects/{project_id}/locations/{location_id}`. -func (r *ProjectsLocationsAppGatewaysService) List(parent string) *ProjectsLocationsAppGatewaysListCall { - c := &ProjectsLocationsAppGatewaysListCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ProjectsLocationsAppConnectorsService) List(parent string) *ProjectsLocationsAppConnectorsListCall { + c := &ProjectsLocationsAppConnectorsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent return c } // Filter sets the optional parameter "filter": A filter specifying // constraints of a list operation. -func (c *ProjectsLocationsAppGatewaysListCall) Filter(filter string) *ProjectsLocationsAppGatewaysListCall { +func (c *ProjectsLocationsAppConnectorsListCall) Filter(filter string) *ProjectsLocationsAppConnectorsListCall { c.urlParams_.Set("filter", filter) return c } @@ -15432,7 +13905,7 @@ func (c *ProjectsLocationsAppGatewaysListCall) Filter(filter string) *ProjectsLo // of results. See Sorting order // (https://cloud.google.com/apis/design/design_patterns#sorting_order) // for more information. -func (c *ProjectsLocationsAppGatewaysListCall) OrderBy(orderBy string) *ProjectsLocationsAppGatewaysListCall { +func (c *ProjectsLocationsAppConnectorsListCall) OrderBy(orderBy string) *ProjectsLocationsAppConnectorsListCall { c.urlParams_.Set("orderBy", orderBy) return c } @@ -15443,15 +13916,15 @@ func (c *ProjectsLocationsAppGatewaysListCall) OrderBy(orderBy string) *Projects // may include a partial list and a caller should only rely on // response's next_page_token to determine if there are more instances // left to be queried. -func (c *ProjectsLocationsAppGatewaysListCall) PageSize(pageSize int64) *ProjectsLocationsAppGatewaysListCall { +func (c *ProjectsLocationsAppConnectorsListCall) PageSize(pageSize int64) *ProjectsLocationsAppConnectorsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } // PageToken sets the optional parameter "pageToken": The // next_page_token value returned from a previous -// ListAppGatewaysRequest, if any. -func (c *ProjectsLocationsAppGatewaysListCall) PageToken(pageToken string) *ProjectsLocationsAppGatewaysListCall { +// ListAppConnectorsRequest, if any. +func (c *ProjectsLocationsAppConnectorsListCall) PageToken(pageToken string) *ProjectsLocationsAppConnectorsListCall { c.urlParams_.Set("pageToken", pageToken) return c } @@ -15459,7 +13932,7 @@ func (c *ProjectsLocationsAppGatewaysListCall) PageToken(pageToken string) *Proj // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsAppGatewaysListCall) Fields(s ...googleapi.Field) *ProjectsLocationsAppGatewaysListCall { +func (c *ProjectsLocationsAppConnectorsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsAppConnectorsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -15469,7 +13942,7 @@ func (c *ProjectsLocationsAppGatewaysListCall) Fields(s ...googleapi.Field) *Pro // getting updates only after the object has changed since the last // request. Use googleapi.IsNotModified to check whether the response // error from Do is the result of In-None-Match. -func (c *ProjectsLocationsAppGatewaysListCall) IfNoneMatch(entityTag string) *ProjectsLocationsAppGatewaysListCall { +func (c *ProjectsLocationsAppConnectorsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsAppConnectorsListCall { c.ifNoneMatch_ = entityTag return c } @@ -15477,21 +13950,21 @@ func (c *ProjectsLocationsAppGatewaysListCall) IfNoneMatch(entityTag string) *Pr // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ProjectsLocationsAppGatewaysListCall) Context(ctx context.Context) *ProjectsLocationsAppGatewaysListCall { +func (c *ProjectsLocationsAppConnectorsListCall) Context(ctx context.Context) *ProjectsLocationsAppConnectorsListCall { 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 *ProjectsLocationsAppGatewaysListCall) Header() http.Header { +func (c *ProjectsLocationsAppConnectorsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsAppGatewaysListCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsAppConnectorsListCall) 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_ { @@ -15504,7 +13977,7 @@ func (c *ProjectsLocationsAppGatewaysListCall) 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, "v1alpha/{+parent}/appGateways") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/appConnectors") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -15517,14 +13990,17 @@ func (c *ProjectsLocationsAppGatewaysListCall) doRequest(alt string) (*http.Resp return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "beyondcorp.projects.locations.appGateways.list" call. -// Exactly one of *ListAppGatewaysResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *ListAppGatewaysResponse.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 *ProjectsLocationsAppGatewaysListCall) Do(opts ...googleapi.CallOption) (*ListAppGatewaysResponse, error) { +// Do executes the "beyondcorp.projects.locations.appConnectors.list" call. +// Exactly one of +// *GoogleCloudBeyondcorpAppconnectorsV1alphaListAppConnectorsResponse +// or error will be non-nil. Any non-2xx status code is an error. +// Response headers are in either +// *GoogleCloudBeyondcorpAppconnectorsV1alphaListAppConnectorsResponse.Se +// rverResponse.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 *ProjectsLocationsAppConnectorsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudBeyondcorpAppconnectorsV1alphaListAppConnectorsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -15543,7 +14019,7 @@ func (c *ProjectsLocationsAppGatewaysListCall) Do(opts ...googleapi.CallOption) if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &ListAppGatewaysResponse{ + ret := &GoogleCloudBeyondcorpAppconnectorsV1alphaListAppConnectorsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -15555,10 +14031,10 @@ func (c *ProjectsLocationsAppGatewaysListCall) Do(opts ...googleapi.CallOption) } return ret, nil // { - // "description": "Lists AppGateways in a given project and location.", - // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/appGateways", + // "description": "Lists AppConnectors in a given project and location.", + // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/appConnectors", // "httpMethod": "GET", - // "id": "beyondcorp.projects.locations.appGateways.list", + // "id": "beyondcorp.projects.locations.appConnectors.list", // "parameterOrder": [ // "parent" // ], @@ -15580,21 +14056,21 @@ func (c *ProjectsLocationsAppGatewaysListCall) Do(opts ...googleapi.CallOption) // "type": "integer" // }, // "pageToken": { - // "description": "Optional. The next_page_token value returned from a previous ListAppGatewaysRequest, if any.", + // "description": "Optional. The next_page_token value returned from a previous ListAppConnectorsRequest, if any.", // "location": "query", // "type": "string" // }, // "parent": { - // "description": "Required. The resource name of the AppGateway location using the form: `projects/{project_id}/locations/{location_id}`", + // "description": "Required. The resource name of the AppConnector location using the form: `projects/{project_id}/locations/{location_id}`", // "location": "path", // "pattern": "^projects/[^/]+/locations/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1alpha/{+parent}/appGateways", + // "path": "v1alpha/{+parent}/appConnectors", // "response": { - // "$ref": "ListAppGatewaysResponse" + // "$ref": "GoogleCloudBeyondcorpAppconnectorsV1alphaListAppConnectorsResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -15606,7 +14082,7 @@ func (c *ProjectsLocationsAppGatewaysListCall) Do(opts ...googleapi.CallOption) // 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 *ProjectsLocationsAppGatewaysListCall) Pages(ctx context.Context, f func(*ListAppGatewaysResponse) error) error { +func (c *ProjectsLocationsAppConnectorsListCall) Pages(ctx context.Context, f func(*GoogleCloudBeyondcorpAppconnectorsV1alphaListAppConnectorsResponse) error) error { c.ctx_ = ctx defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point for { @@ -15624,36 +14100,68 @@ func (c *ProjectsLocationsAppGatewaysListCall) Pages(ctx context.Context, f func } } -// method id "beyondcorp.projects.locations.appGateways.setIamPolicy": +// method id "beyondcorp.projects.locations.appConnectors.patch": + +type ProjectsLocationsAppConnectorsPatchCall struct { + s *Service + name string + googlecloudbeyondcorpappconnectorsv1alphaappconnector *GoogleCloudBeyondcorpAppconnectorsV1alphaAppConnector + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Patch: Updates the parameters of a single AppConnector. +// +// - name: Unique resource name of the AppConnector. The name is ignored +// when creating a AppConnector. +func (r *ProjectsLocationsAppConnectorsService) Patch(name string, googlecloudbeyondcorpappconnectorsv1alphaappconnector *GoogleCloudBeyondcorpAppconnectorsV1alphaAppConnector) *ProjectsLocationsAppConnectorsPatchCall { + c := &ProjectsLocationsAppConnectorsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.googlecloudbeyondcorpappconnectorsv1alphaappconnector = googlecloudbeyondcorpappconnectorsv1alphaappconnector + return c +} -type ProjectsLocationsAppGatewaysSetIamPolicyCall struct { - s *Service - resource string - googleiamv1setiampolicyrequest *GoogleIamV1SetIamPolicyRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +// RequestId sets the optional parameter "requestId": An optional +// request ID to identify requests. Specify a unique request ID so that +// if you must retry your request, the server will know to ignore the +// request if it has already been completed. The server will guarantee +// that for at least 60 minutes since the first request. For example, +// consider a situation where you make an initial request and the +// request times out. If you make the request again with the same +// request ID, the server can check if original operation with the same +// request ID was received, and if so, will ignore the second request. +// This prevents clients from accidentally creating duplicate +// commitments. The request ID must be a valid UUID with the exception +// that zero UUID is not supported +// (00000000-0000-0000-0000-000000000000). +func (c *ProjectsLocationsAppConnectorsPatchCall) RequestId(requestId string) *ProjectsLocationsAppConnectorsPatchCall { + c.urlParams_.Set("requestId", requestId) + return c } -// SetIamPolicy: Sets the access control policy on the specified -// resource. Replaces any existing policy. Can return `NOT_FOUND`, -// `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. -// -// - 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 *ProjectsLocationsAppGatewaysService) SetIamPolicy(resource string, googleiamv1setiampolicyrequest *GoogleIamV1SetIamPolicyRequest) *ProjectsLocationsAppGatewaysSetIamPolicyCall { - c := &ProjectsLocationsAppGatewaysSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.resource = resource - c.googleiamv1setiampolicyrequest = googleiamv1setiampolicyrequest +// UpdateMask sets the optional parameter "updateMask": Required. Mask +// of fields to update. At least one path must be supplied in this +// field. The elements of the repeated paths field may only include +// these fields from [BeyondCorp.AppConnector]: * `labels` * +// `display_name` +func (c *ProjectsLocationsAppConnectorsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsAppConnectorsPatchCall { + c.urlParams_.Set("updateMask", updateMask) + return c +} + +// ValidateOnly sets the optional parameter "validateOnly": If set, +// validates request by executing a dry-run which would not alter the +// resource in any way. +func (c *ProjectsLocationsAppConnectorsPatchCall) ValidateOnly(validateOnly bool) *ProjectsLocationsAppConnectorsPatchCall { + c.urlParams_.Set("validateOnly", fmt.Sprint(validateOnly)) 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 *ProjectsLocationsAppGatewaysSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsAppGatewaysSetIamPolicyCall { +func (c *ProjectsLocationsAppConnectorsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsAppConnectorsPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -15661,21 +14169,21 @@ func (c *ProjectsLocationsAppGatewaysSetIamPolicyCall) Fields(s ...googleapi.Fie // 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 *ProjectsLocationsAppGatewaysSetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsAppGatewaysSetIamPolicyCall { +func (c *ProjectsLocationsAppConnectorsPatchCall) Context(ctx context.Context) *ProjectsLocationsAppConnectorsPatchCall { 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 *ProjectsLocationsAppGatewaysSetIamPolicyCall) Header() http.Header { +func (c *ProjectsLocationsAppConnectorsPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsAppGatewaysSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsAppConnectorsPatchCall) 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_ { @@ -15683,34 +14191,34 @@ func (c *ProjectsLocationsAppGatewaysSetIamPolicyCall) doRequest(alt string) (*h } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleiamv1setiampolicyrequest) + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudbeyondcorpappconnectorsv1alphaappconnector) 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, "v1alpha/{+resource}:setIamPolicy") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("PATCH", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "resource": c.resource, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "beyondcorp.projects.locations.appGateways.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 +// Do executes the "beyondcorp.projects.locations.appConnectors.patch" call. +// Exactly one of *GoogleLongrunningOperation or error will be non-nil. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleLongrunningOperation.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 *ProjectsLocationsAppGatewaysSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1Policy, error) { +func (c *ProjectsLocationsAppConnectorsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -15729,7 +14237,7 @@ func (c *ProjectsLocationsAppGatewaysSetIamPolicyCall) Do(opts ...googleapi.Call if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleIamV1Policy{ + ret := &GoogleLongrunningOperation{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -15741,28 +14249,44 @@ func (c *ProjectsLocationsAppGatewaysSetIamPolicyCall) Do(opts ...googleapi.Call } return ret, nil // { - // "description": "Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.", - // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/appGateways/{appGatewaysId}:setIamPolicy", - // "httpMethod": "POST", - // "id": "beyondcorp.projects.locations.appGateways.setIamPolicy", + // "description": "Updates the parameters of a single AppConnector.", + // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/appConnectors/{appConnectorsId}", + // "httpMethod": "PATCH", + // "id": "beyondcorp.projects.locations.appConnectors.patch", // "parameterOrder": [ - // "resource" + // "name" // ], // "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.", + // "name": { + // "description": "Required. Unique resource name of the AppConnector. The name is ignored when creating a AppConnector.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/appGateways/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/appConnectors/[^/]+$", // "required": true, // "type": "string" + // }, + // "requestId": { + // "description": "Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).", + // "location": "query", + // "type": "string" + // }, + // "updateMask": { + // "description": "Required. Mask of fields to update. At least one path must be supplied in this field. The elements of the repeated paths field may only include these fields from [BeyondCorp.AppConnector]: * `labels` * `display_name`", + // "format": "google-fieldmask", + // "location": "query", + // "type": "string" + // }, + // "validateOnly": { + // "description": "Optional. If set, validates request by executing a dry-run which would not alter the resource in any way.", + // "location": "query", + // "type": "boolean" // } // }, - // "path": "v1alpha/{+resource}:setIamPolicy", + // "path": "v1alpha/{+name}", // "request": { - // "$ref": "GoogleIamV1SetIamPolicyRequest" + // "$ref": "GoogleCloudBeyondcorpAppconnectorsV1alphaAppConnector" // }, // "response": { - // "$ref": "GoogleIamV1Policy" + // "$ref": "GoogleLongrunningOperation" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -15771,39 +14295,33 @@ func (c *ProjectsLocationsAppGatewaysSetIamPolicyCall) Do(opts ...googleapi.Call } -// method id "beyondcorp.projects.locations.appGateways.testIamPermissions": +// method id "beyondcorp.projects.locations.appConnectors.reportStatus": -type ProjectsLocationsAppGatewaysTestIamPermissionsCall struct { - s *Service - resource string - googleiamv1testiampermissionsrequest *GoogleIamV1TestIamPermissionsRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsAppConnectorsReportStatusCall struct { + s *Service + appConnector string + googlecloudbeyondcorpappconnectorsv1alphareportstatusrequest *GoogleCloudBeyondcorpAppconnectorsV1alphaReportStatusRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// TestIamPermissions: Returns permissions that a caller has on the -// specified resource. If the resource does not exist, this will return -// an empty set of permissions, not a `NOT_FOUND` error. Note: This -// operation is designed to be used for building permission-aware UIs -// and command-line tools, not for authorization checking. This -// operation may "fail open" without warning. +// ReportStatus: Report status for a given connector. // -// - 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 *ProjectsLocationsAppGatewaysService) TestIamPermissions(resource string, googleiamv1testiampermissionsrequest *GoogleIamV1TestIamPermissionsRequest) *ProjectsLocationsAppGatewaysTestIamPermissionsCall { - c := &ProjectsLocationsAppGatewaysTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.resource = resource - c.googleiamv1testiampermissionsrequest = googleiamv1testiampermissionsrequest +// - appConnector: BeyondCorp Connector name using the form: +// `projects/{project_id}/locations/{location_id}/connectors/{connector +// }`. +func (r *ProjectsLocationsAppConnectorsService) ReportStatus(appConnector string, googlecloudbeyondcorpappconnectorsv1alphareportstatusrequest *GoogleCloudBeyondcorpAppconnectorsV1alphaReportStatusRequest) *ProjectsLocationsAppConnectorsReportStatusCall { + c := &ProjectsLocationsAppConnectorsReportStatusCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.appConnector = appConnector + c.googlecloudbeyondcorpappconnectorsv1alphareportstatusrequest = googlecloudbeyondcorpappconnectorsv1alphareportstatusrequest 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 *ProjectsLocationsAppGatewaysTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsAppGatewaysTestIamPermissionsCall { +func (c *ProjectsLocationsAppConnectorsReportStatusCall) Fields(s ...googleapi.Field) *ProjectsLocationsAppConnectorsReportStatusCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -15811,21 +14329,21 @@ func (c *ProjectsLocationsAppGatewaysTestIamPermissionsCall) Fields(s ...googlea // 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 *ProjectsLocationsAppGatewaysTestIamPermissionsCall) Context(ctx context.Context) *ProjectsLocationsAppGatewaysTestIamPermissionsCall { +func (c *ProjectsLocationsAppConnectorsReportStatusCall) Context(ctx context.Context) *ProjectsLocationsAppConnectorsReportStatusCall { 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 *ProjectsLocationsAppGatewaysTestIamPermissionsCall) Header() http.Header { +func (c *ProjectsLocationsAppConnectorsReportStatusCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsAppGatewaysTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsAppConnectorsReportStatusCall) 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_ { @@ -15833,14 +14351,14 @@ func (c *ProjectsLocationsAppGatewaysTestIamPermissionsCall) doRequest(alt strin } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleiamv1testiampermissionsrequest) + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudbeyondcorpappconnectorsv1alphareportstatusrequest) 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, "v1alpha/{+resource}:testIamPermissions") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+appConnector}:reportStatus") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -15848,20 +14366,19 @@ func (c *ProjectsLocationsAppGatewaysTestIamPermissionsCall) doRequest(alt strin } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "resource": c.resource, + "appConnector": c.appConnector, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "beyondcorp.projects.locations.appGateways.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 +// Do executes the "beyondcorp.projects.locations.appConnectors.reportStatus" call. +// Exactly one of *GoogleLongrunningOperation or error will be non-nil. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleLongrunningOperation.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 *ProjectsLocationsAppGatewaysTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1TestIamPermissionsResponse, error) { +func (c *ProjectsLocationsAppConnectorsReportStatusCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -15880,7 +14397,7 @@ func (c *ProjectsLocationsAppGatewaysTestIamPermissionsCall) Do(opts ...googleap if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleIamV1TestIamPermissionsResponse{ + ret := &GoogleLongrunningOperation{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -15892,28 +14409,28 @@ func (c *ProjectsLocationsAppGatewaysTestIamPermissionsCall) Do(opts ...googleap } return ret, nil // { - // "description": "Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a `NOT_FOUND` error. Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may \"fail open\" without warning.", - // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/appGateways/{appGatewaysId}:testIamPermissions", + // "description": "Report status for a given connector.", + // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/appConnectors/{appConnectorsId}:reportStatus", // "httpMethod": "POST", - // "id": "beyondcorp.projects.locations.appGateways.testIamPermissions", + // "id": "beyondcorp.projects.locations.appConnectors.reportStatus", // "parameterOrder": [ - // "resource" + // "appConnector" // ], // "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.", + // "appConnector": { + // "description": "Required. BeyondCorp Connector name using the form: `projects/{project_id}/locations/{location_id}/connectors/{connector}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/appGateways/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/appConnectors/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1alpha/{+resource}:testIamPermissions", + // "path": "v1alpha/{+appConnector}:reportStatus", // "request": { - // "$ref": "GoogleIamV1TestIamPermissionsRequest" + // "$ref": "GoogleCloudBeyondcorpAppconnectorsV1alphaReportStatusRequest" // }, // "response": { - // "$ref": "GoogleIamV1TestIamPermissionsResponse" + // "$ref": "GoogleLongrunningOperation" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -15922,53 +14439,34 @@ func (c *ProjectsLocationsAppGatewaysTestIamPermissionsCall) Do(opts ...googleap } -// method id "beyondcorp.projects.locations.applications.getIamPolicy": +// method id "beyondcorp.projects.locations.appConnectors.resolveInstanceConfig": -type ProjectsLocationsApplicationsGetIamPolicyCall struct { +type ProjectsLocationsAppConnectorsResolveInstanceConfigCall struct { s *Service - resource string + appConnector string urlParams_ gensupport.URLParams ifNoneMatch_ string ctx_ context.Context header_ http.Header } -// GetIamPolicy: Gets the access control policy for a resource. Returns -// an empty policy if the resource exists and does not have a policy -// set. +// ResolveInstanceConfig: Gets instance configuration for a given +// AppConnector. An internal method called by a AppConnector to get its +// container config. // -// - 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 *ProjectsLocationsApplicationsService) GetIamPolicy(resource string) *ProjectsLocationsApplicationsGetIamPolicyCall { - c := &ProjectsLocationsApplicationsGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.resource = resource - return c -} - -// OptionsRequestedPolicyVersion sets the optional parameter -// "options.requestedPolicyVersion": 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). -func (c *ProjectsLocationsApplicationsGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ProjectsLocationsApplicationsGetIamPolicyCall { - c.urlParams_.Set("options.requestedPolicyVersion", fmt.Sprint(optionsRequestedPolicyVersion)) +// - appConnector: BeyondCorp AppConnector name using the form: +// `projects/{project_id}/locations/{location_id}/appConnectors/{app_co +// nnector}`. +func (r *ProjectsLocationsAppConnectorsService) ResolveInstanceConfig(appConnector string) *ProjectsLocationsAppConnectorsResolveInstanceConfigCall { + c := &ProjectsLocationsAppConnectorsResolveInstanceConfigCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.appConnector = appConnector 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 *ProjectsLocationsApplicationsGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsApplicationsGetIamPolicyCall { +func (c *ProjectsLocationsAppConnectorsResolveInstanceConfigCall) Fields(s ...googleapi.Field) *ProjectsLocationsAppConnectorsResolveInstanceConfigCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -15978,7 +14476,7 @@ func (c *ProjectsLocationsApplicationsGetIamPolicyCall) Fields(s ...googleapi.Fi // 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 *ProjectsLocationsApplicationsGetIamPolicyCall) IfNoneMatch(entityTag string) *ProjectsLocationsApplicationsGetIamPolicyCall { +func (c *ProjectsLocationsAppConnectorsResolveInstanceConfigCall) IfNoneMatch(entityTag string) *ProjectsLocationsAppConnectorsResolveInstanceConfigCall { c.ifNoneMatch_ = entityTag return c } @@ -15986,21 +14484,21 @@ func (c *ProjectsLocationsApplicationsGetIamPolicyCall) IfNoneMatch(entityTag st // 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 *ProjectsLocationsApplicationsGetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsApplicationsGetIamPolicyCall { +func (c *ProjectsLocationsAppConnectorsResolveInstanceConfigCall) Context(ctx context.Context) *ProjectsLocationsAppConnectorsResolveInstanceConfigCall { 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 *ProjectsLocationsApplicationsGetIamPolicyCall) Header() http.Header { +func (c *ProjectsLocationsAppConnectorsResolveInstanceConfigCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsApplicationsGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsAppConnectorsResolveInstanceConfigCall) 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_ { @@ -16013,7 +14511,7 @@ func (c *ProjectsLocationsApplicationsGetIamPolicyCall) doRequest(alt string) (* var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+resource}:getIamPolicy") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+appConnector}:resolveInstanceConfig") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -16021,19 +14519,22 @@ func (c *ProjectsLocationsApplicationsGetIamPolicyCall) doRequest(alt string) (* } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "resource": c.resource, + "appConnector": c.appConnector, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "beyondcorp.projects.locations.applications.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 *ProjectsLocationsApplicationsGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1Policy, error) { +// Do executes the "beyondcorp.projects.locations.appConnectors.resolveInstanceConfig" call. +// Exactly one of +// *GoogleCloudBeyondcorpAppconnectorsV1alphaResolveInstanceConfigRespons +// e or error will be non-nil. Any non-2xx status code is an error. +// Response headers are in either +// *GoogleCloudBeyondcorpAppconnectorsV1alphaResolveInstanceConfigRespons +// e.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsLocationsAppConnectorsResolveInstanceConfigCall) Do(opts ...googleapi.CallOption) (*GoogleCloudBeyondcorpAppconnectorsV1alphaResolveInstanceConfigResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -16052,7 +14553,7 @@ func (c *ProjectsLocationsApplicationsGetIamPolicyCall) Do(opts ...googleapi.Cal if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleIamV1Policy{ + ret := &GoogleCloudBeyondcorpAppconnectorsV1alphaResolveInstanceConfigResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -16064,31 +14565,25 @@ func (c *ProjectsLocationsApplicationsGetIamPolicyCall) Do(opts ...googleapi.Cal } return ret, nil // { - // "description": "Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.", - // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/applications/{applicationsId}:getIamPolicy", + // "description": "Gets instance configuration for a given AppConnector. An internal method called by a AppConnector to get its container config.", + // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/appConnectors/{appConnectorsId}:resolveInstanceConfig", // "httpMethod": "GET", - // "id": "beyondcorp.projects.locations.applications.getIamPolicy", + // "id": "beyondcorp.projects.locations.appConnectors.resolveInstanceConfig", // "parameterOrder": [ - // "resource" + // "appConnector" // ], // "parameters": { - // "options.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", - // "location": "query", - // "type": "integer" - // }, - // "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.", + // "appConnector": { + // "description": "Required. BeyondCorp AppConnector name using the form: `projects/{project_id}/locations/{location_id}/appConnectors/{app_connector}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/applications/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/appConnectors/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1alpha/{+resource}:getIamPolicy", + // "path": "v1alpha/{+appConnector}:resolveInstanceConfig", // "response": { - // "$ref": "GoogleIamV1Policy" + // "$ref": "GoogleCloudBeyondcorpAppconnectorsV1alphaResolveInstanceConfigResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -16097,9 +14592,9 @@ func (c *ProjectsLocationsApplicationsGetIamPolicyCall) Do(opts ...googleapi.Cal } -// method id "beyondcorp.projects.locations.applications.setIamPolicy": +// method id "beyondcorp.projects.locations.appConnectors.setIamPolicy": -type ProjectsLocationsApplicationsSetIamPolicyCall struct { +type ProjectsLocationsAppConnectorsSetIamPolicyCall struct { s *Service resource string googleiamv1setiampolicyrequest *GoogleIamV1SetIamPolicyRequest @@ -16116,8 +14611,8 @@ type ProjectsLocationsApplicationsSetIamPolicyCall struct { // specified. See Resource names // (https://cloud.google.com/apis/design/resource_names) for the // appropriate value for this field. -func (r *ProjectsLocationsApplicationsService) SetIamPolicy(resource string, googleiamv1setiampolicyrequest *GoogleIamV1SetIamPolicyRequest) *ProjectsLocationsApplicationsSetIamPolicyCall { - c := &ProjectsLocationsApplicationsSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ProjectsLocationsAppConnectorsService) SetIamPolicy(resource string, googleiamv1setiampolicyrequest *GoogleIamV1SetIamPolicyRequest) *ProjectsLocationsAppConnectorsSetIamPolicyCall { + c := &ProjectsLocationsAppConnectorsSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.resource = resource c.googleiamv1setiampolicyrequest = googleiamv1setiampolicyrequest return c @@ -16126,7 +14621,7 @@ func (r *ProjectsLocationsApplicationsService) SetIamPolicy(resource string, goo // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsApplicationsSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsApplicationsSetIamPolicyCall { +func (c *ProjectsLocationsAppConnectorsSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsAppConnectorsSetIamPolicyCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -16134,21 +14629,21 @@ func (c *ProjectsLocationsApplicationsSetIamPolicyCall) Fields(s ...googleapi.Fi // 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 *ProjectsLocationsApplicationsSetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsApplicationsSetIamPolicyCall { +func (c *ProjectsLocationsAppConnectorsSetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsAppConnectorsSetIamPolicyCall { 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 *ProjectsLocationsApplicationsSetIamPolicyCall) Header() http.Header { +func (c *ProjectsLocationsAppConnectorsSetIamPolicyCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsApplicationsSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsAppConnectorsSetIamPolicyCall) 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_ { @@ -16176,14 +14671,14 @@ func (c *ProjectsLocationsApplicationsSetIamPolicyCall) doRequest(alt string) (* return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "beyondcorp.projects.locations.applications.setIamPolicy" call. +// Do executes the "beyondcorp.projects.locations.appConnectors.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 *ProjectsLocationsApplicationsSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1Policy, error) { +func (c *ProjectsLocationsAppConnectorsSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1Policy, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -16215,9 +14710,9 @@ func (c *ProjectsLocationsApplicationsSetIamPolicyCall) Do(opts ...googleapi.Cal return ret, nil // { // "description": "Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.", - // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/applications/{applicationsId}:setIamPolicy", + // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/appConnectors/{appConnectorsId}:setIamPolicy", // "httpMethod": "POST", - // "id": "beyondcorp.projects.locations.applications.setIamPolicy", + // "id": "beyondcorp.projects.locations.appConnectors.setIamPolicy", // "parameterOrder": [ // "resource" // ], @@ -16225,7 +14720,7 @@ func (c *ProjectsLocationsApplicationsSetIamPolicyCall) Do(opts ...googleapi.Cal // "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/[^/]+/locations/[^/]+/applications/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/appConnectors/[^/]+$", // "required": true, // "type": "string" // } @@ -16244,9 +14739,9 @@ func (c *ProjectsLocationsApplicationsSetIamPolicyCall) Do(opts ...googleapi.Cal } -// method id "beyondcorp.projects.locations.applications.testIamPermissions": +// method id "beyondcorp.projects.locations.appConnectors.testIamPermissions": -type ProjectsLocationsApplicationsTestIamPermissionsCall struct { +type ProjectsLocationsAppConnectorsTestIamPermissionsCall struct { s *Service resource string googleiamv1testiampermissionsrequest *GoogleIamV1TestIamPermissionsRequest @@ -16266,8 +14761,8 @@ type ProjectsLocationsApplicationsTestIamPermissionsCall struct { // being requested. See Resource names // (https://cloud.google.com/apis/design/resource_names) for the // appropriate value for this field. -func (r *ProjectsLocationsApplicationsService) TestIamPermissions(resource string, googleiamv1testiampermissionsrequest *GoogleIamV1TestIamPermissionsRequest) *ProjectsLocationsApplicationsTestIamPermissionsCall { - c := &ProjectsLocationsApplicationsTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ProjectsLocationsAppConnectorsService) TestIamPermissions(resource string, googleiamv1testiampermissionsrequest *GoogleIamV1TestIamPermissionsRequest) *ProjectsLocationsAppConnectorsTestIamPermissionsCall { + c := &ProjectsLocationsAppConnectorsTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.resource = resource c.googleiamv1testiampermissionsrequest = googleiamv1testiampermissionsrequest return c @@ -16276,7 +14771,7 @@ func (r *ProjectsLocationsApplicationsService) TestIamPermissions(resource strin // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsApplicationsTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsApplicationsTestIamPermissionsCall { +func (c *ProjectsLocationsAppConnectorsTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsAppConnectorsTestIamPermissionsCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -16284,21 +14779,21 @@ func (c *ProjectsLocationsApplicationsTestIamPermissionsCall) Fields(s ...google // 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 *ProjectsLocationsApplicationsTestIamPermissionsCall) Context(ctx context.Context) *ProjectsLocationsApplicationsTestIamPermissionsCall { +func (c *ProjectsLocationsAppConnectorsTestIamPermissionsCall) Context(ctx context.Context) *ProjectsLocationsAppConnectorsTestIamPermissionsCall { 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 *ProjectsLocationsApplicationsTestIamPermissionsCall) Header() http.Header { +func (c *ProjectsLocationsAppConnectorsTestIamPermissionsCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsApplicationsTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsAppConnectorsTestIamPermissionsCall) 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_ { @@ -16326,7 +14821,7 @@ func (c *ProjectsLocationsApplicationsTestIamPermissionsCall) doRequest(alt stri return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "beyondcorp.projects.locations.applications.testIamPermissions" call. +// Do executes the "beyondcorp.projects.locations.appConnectors.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 @@ -16334,7 +14829,7 @@ func (c *ProjectsLocationsApplicationsTestIamPermissionsCall) doRequest(alt stri // 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 *ProjectsLocationsApplicationsTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1TestIamPermissionsResponse, error) { +func (c *ProjectsLocationsAppConnectorsTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1TestIamPermissionsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -16366,9 +14861,9 @@ func (c *ProjectsLocationsApplicationsTestIamPermissionsCall) Do(opts ...googlea return ret, nil // { // "description": "Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a `NOT_FOUND` error. Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may \"fail open\" without warning.", - // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/applications/{applicationsId}:testIamPermissions", + // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/appConnectors/{appConnectorsId}:testIamPermissions", // "httpMethod": "POST", - // "id": "beyondcorp.projects.locations.applications.testIamPermissions", + // "id": "beyondcorp.projects.locations.appConnectors.testIamPermissions", // "parameterOrder": [ // "resource" // ], @@ -16376,7 +14871,7 @@ func (c *ProjectsLocationsApplicationsTestIamPermissionsCall) Do(opts ...googlea // "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/[^/]+/locations/[^/]+/applications/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/appConnectors/[^/]+$", // "required": true, // "type": "string" // } @@ -16395,36 +14890,34 @@ func (c *ProjectsLocationsApplicationsTestIamPermissionsCall) Do(opts ...googlea } -// method id "beyondcorp.projects.locations.clientConnectorServices.create": +// method id "beyondcorp.projects.locations.appGateways.create": -type ProjectsLocationsClientConnectorServicesCreateCall struct { - s *Service - parent string - clientconnectorservice *ClientConnectorService - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsAppGatewaysCreateCall struct { + s *Service + parent string + appgateway *AppGateway + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Create: Creates a new ClientConnectorService in a given project and -// location. +// Create: Creates a new AppGateway in a given project and location. // -// - parent: Value for parent. -func (r *ProjectsLocationsClientConnectorServicesService) Create(parent string, clientconnectorservice *ClientConnectorService) *ProjectsLocationsClientConnectorServicesCreateCall { - c := &ProjectsLocationsClientConnectorServicesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - parent: The resource project name of the AppGateway location using +// the form: `projects/{project_id}/locations/{location_id}`. +func (r *ProjectsLocationsAppGatewaysService) Create(parent string, appgateway *AppGateway) *ProjectsLocationsAppGatewaysCreateCall { + c := &ProjectsLocationsAppGatewaysCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent - c.clientconnectorservice = clientconnectorservice + c.appgateway = appgateway return c } -// ClientConnectorServiceId sets the optional parameter -// "clientConnectorServiceId": User-settable client connector service -// resource ID. * Must start with a letter. * Must contain between 4-63 -// characters from `/a-z-/`. * Must end with a number or a letter. A -// random system generated name will be assigned if not specified by the -// user. -func (c *ProjectsLocationsClientConnectorServicesCreateCall) ClientConnectorServiceId(clientConnectorServiceId string) *ProjectsLocationsClientConnectorServicesCreateCall { - c.urlParams_.Set("clientConnectorServiceId", clientConnectorServiceId) +// AppGatewayId sets the optional parameter "appGatewayId": +// User-settable AppGateway resource ID. * Must start with a letter. * +// Must contain between 4-63 characters from `/a-z-/`. * Must end with a +// number or a letter. +func (c *ProjectsLocationsAppGatewaysCreateCall) AppGatewayId(appGatewayId string) *ProjectsLocationsAppGatewaysCreateCall { + c.urlParams_.Set("appGatewayId", appGatewayId) return c } @@ -16441,7 +14934,7 @@ func (c *ProjectsLocationsClientConnectorServicesCreateCall) ClientConnectorServ // commitments. The request ID must be a valid UUID with the exception // that zero UUID is not supported // (00000000-0000-0000-0000-000000000000). -func (c *ProjectsLocationsClientConnectorServicesCreateCall) RequestId(requestId string) *ProjectsLocationsClientConnectorServicesCreateCall { +func (c *ProjectsLocationsAppGatewaysCreateCall) RequestId(requestId string) *ProjectsLocationsAppGatewaysCreateCall { c.urlParams_.Set("requestId", requestId) return c } @@ -16449,7 +14942,7 @@ func (c *ProjectsLocationsClientConnectorServicesCreateCall) RequestId(requestId // ValidateOnly sets the optional parameter "validateOnly": If set, // validates request by executing a dry-run which would not alter the // resource in any way. -func (c *ProjectsLocationsClientConnectorServicesCreateCall) ValidateOnly(validateOnly bool) *ProjectsLocationsClientConnectorServicesCreateCall { +func (c *ProjectsLocationsAppGatewaysCreateCall) ValidateOnly(validateOnly bool) *ProjectsLocationsAppGatewaysCreateCall { c.urlParams_.Set("validateOnly", fmt.Sprint(validateOnly)) return c } @@ -16457,7 +14950,7 @@ func (c *ProjectsLocationsClientConnectorServicesCreateCall) ValidateOnly(valida // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsClientConnectorServicesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsClientConnectorServicesCreateCall { +func (c *ProjectsLocationsAppGatewaysCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsAppGatewaysCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -16465,21 +14958,21 @@ func (c *ProjectsLocationsClientConnectorServicesCreateCall) Fields(s ...googlea // 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 *ProjectsLocationsClientConnectorServicesCreateCall) Context(ctx context.Context) *ProjectsLocationsClientConnectorServicesCreateCall { +func (c *ProjectsLocationsAppGatewaysCreateCall) Context(ctx context.Context) *ProjectsLocationsAppGatewaysCreateCall { 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 *ProjectsLocationsClientConnectorServicesCreateCall) Header() http.Header { +func (c *ProjectsLocationsAppGatewaysCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsClientConnectorServicesCreateCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsAppGatewaysCreateCall) 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_ { @@ -16487,14 +14980,14 @@ func (c *ProjectsLocationsClientConnectorServicesCreateCall) doRequest(alt strin } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.clientconnectorservice) + body, err := googleapi.WithoutDataWrapper.JSONReader(c.appgateway) 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, "v1alpha/{+parent}/clientConnectorServices") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/appGateways") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -16507,14 +15000,14 @@ func (c *ProjectsLocationsClientConnectorServicesCreateCall) doRequest(alt strin return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "beyondcorp.projects.locations.clientConnectorServices.create" call. +// Do executes the "beyondcorp.projects.locations.appGateways.create" call. // Exactly one of *GoogleLongrunningOperation or error will be non-nil. // Any non-2xx status code is an error. Response headers are in either // *GoogleLongrunningOperation.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 *ProjectsLocationsClientConnectorServicesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsAppGatewaysCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -16545,21 +15038,21 @@ func (c *ProjectsLocationsClientConnectorServicesCreateCall) Do(opts ...googleap } return ret, nil // { - // "description": "Creates a new ClientConnectorService in a given project and location.", - // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/clientConnectorServices", + // "description": "Creates a new AppGateway in a given project and location.", + // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/appGateways", // "httpMethod": "POST", - // "id": "beyondcorp.projects.locations.clientConnectorServices.create", + // "id": "beyondcorp.projects.locations.appGateways.create", // "parameterOrder": [ // "parent" // ], // "parameters": { - // "clientConnectorServiceId": { - // "description": "Optional. User-settable client connector service resource ID. * Must start with a letter. * Must contain between 4-63 characters from `/a-z-/`. * Must end with a number or a letter. A random system generated name will be assigned if not specified by the user.", + // "appGatewayId": { + // "description": "Optional. User-settable AppGateway resource ID. * Must start with a letter. * Must contain between 4-63 characters from `/a-z-/`. * Must end with a number or a letter.", // "location": "query", // "type": "string" // }, // "parent": { - // "description": "Required. Value for parent.", + // "description": "Required. The resource project name of the AppGateway location using the form: `projects/{project_id}/locations/{location_id}`", // "location": "path", // "pattern": "^projects/[^/]+/locations/[^/]+$", // "required": true, @@ -16576,9 +15069,9 @@ func (c *ProjectsLocationsClientConnectorServicesCreateCall) Do(opts ...googleap // "type": "boolean" // } // }, - // "path": "v1alpha/{+parent}/clientConnectorServices", + // "path": "v1alpha/{+parent}/appGateways", // "request": { - // "$ref": "ClientConnectorService" + // "$ref": "AppGateway" // }, // "response": { // "$ref": "GoogleLongrunningOperation" @@ -16590,9 +15083,9 @@ func (c *ProjectsLocationsClientConnectorServicesCreateCall) Do(opts ...googleap } -// method id "beyondcorp.projects.locations.clientConnectorServices.delete": +// method id "beyondcorp.projects.locations.appGateways.delete": -type ProjectsLocationsClientConnectorServicesDeleteCall struct { +type ProjectsLocationsAppGatewaysDeleteCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -16600,11 +15093,13 @@ type ProjectsLocationsClientConnectorServicesDeleteCall struct { header_ http.Header } -// Delete: Deletes a single ClientConnectorService. +// Delete: Deletes a single AppGateway. // -// - name: Name of the resource. -func (r *ProjectsLocationsClientConnectorServicesService) Delete(name string) *ProjectsLocationsClientConnectorServicesDeleteCall { - c := &ProjectsLocationsClientConnectorServicesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: BeyondCorp AppGateway name using the form: +// `projects/{project_id}/locations/{location_id}/appGateways/{app_gate +// way_id}`. +func (r *ProjectsLocationsAppGatewaysService) Delete(name string) *ProjectsLocationsAppGatewaysDeleteCall { + c := &ProjectsLocationsAppGatewaysDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -16622,7 +15117,7 @@ func (r *ProjectsLocationsClientConnectorServicesService) Delete(name string) *P // commitments. The request ID must be a valid UUID with the exception // that zero UUID is not supported // (00000000-0000-0000-0000-000000000000). -func (c *ProjectsLocationsClientConnectorServicesDeleteCall) RequestId(requestId string) *ProjectsLocationsClientConnectorServicesDeleteCall { +func (c *ProjectsLocationsAppGatewaysDeleteCall) RequestId(requestId string) *ProjectsLocationsAppGatewaysDeleteCall { c.urlParams_.Set("requestId", requestId) return c } @@ -16630,7 +15125,7 @@ func (c *ProjectsLocationsClientConnectorServicesDeleteCall) RequestId(requestId // ValidateOnly sets the optional parameter "validateOnly": If set, // validates request by executing a dry-run which would not alter the // resource in any way. -func (c *ProjectsLocationsClientConnectorServicesDeleteCall) ValidateOnly(validateOnly bool) *ProjectsLocationsClientConnectorServicesDeleteCall { +func (c *ProjectsLocationsAppGatewaysDeleteCall) ValidateOnly(validateOnly bool) *ProjectsLocationsAppGatewaysDeleteCall { c.urlParams_.Set("validateOnly", fmt.Sprint(validateOnly)) return c } @@ -16638,7 +15133,7 @@ func (c *ProjectsLocationsClientConnectorServicesDeleteCall) ValidateOnly(valida // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsClientConnectorServicesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsClientConnectorServicesDeleteCall { +func (c *ProjectsLocationsAppGatewaysDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsAppGatewaysDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -16646,21 +15141,21 @@ func (c *ProjectsLocationsClientConnectorServicesDeleteCall) Fields(s ...googlea // 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 *ProjectsLocationsClientConnectorServicesDeleteCall) Context(ctx context.Context) *ProjectsLocationsClientConnectorServicesDeleteCall { +func (c *ProjectsLocationsAppGatewaysDeleteCall) Context(ctx context.Context) *ProjectsLocationsAppGatewaysDeleteCall { 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 *ProjectsLocationsClientConnectorServicesDeleteCall) Header() http.Header { +func (c *ProjectsLocationsAppGatewaysDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsClientConnectorServicesDeleteCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsAppGatewaysDeleteCall) 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_ { @@ -16683,14 +15178,14 @@ func (c *ProjectsLocationsClientConnectorServicesDeleteCall) doRequest(alt strin return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "beyondcorp.projects.locations.clientConnectorServices.delete" call. +// Do executes the "beyondcorp.projects.locations.appGateways.delete" call. // Exactly one of *GoogleLongrunningOperation or error will be non-nil. // Any non-2xx status code is an error. Response headers are in either // *GoogleLongrunningOperation.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 *ProjectsLocationsClientConnectorServicesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsAppGatewaysDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -16721,18 +15216,18 @@ func (c *ProjectsLocationsClientConnectorServicesDeleteCall) Do(opts ...googleap } return ret, nil // { - // "description": "Deletes a single ClientConnectorService.", - // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/clientConnectorServices/{clientConnectorServicesId}", + // "description": "Deletes a single AppGateway.", + // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/appGateways/{appGatewaysId}", // "httpMethod": "DELETE", - // "id": "beyondcorp.projects.locations.clientConnectorServices.delete", + // "id": "beyondcorp.projects.locations.appGateways.delete", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "Required. Name of the resource.", + // "description": "Required. BeyondCorp AppGateway name using the form: `projects/{project_id}/locations/{location_id}/appGateways/{app_gateway_id}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/clientConnectorServices/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/appGateways/[^/]+$", // "required": true, // "type": "string" // }, @@ -16758,9 +15253,9 @@ func (c *ProjectsLocationsClientConnectorServicesDeleteCall) Do(opts ...googleap } -// method id "beyondcorp.projects.locations.clientConnectorServices.get": +// method id "beyondcorp.projects.locations.appGateways.get": -type ProjectsLocationsClientConnectorServicesGetCall struct { +type ProjectsLocationsAppGatewaysGetCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -16769,11 +15264,13 @@ type ProjectsLocationsClientConnectorServicesGetCall struct { header_ http.Header } -// Get: Gets details of a single ClientConnectorService. +// Get: Gets details of a single AppGateway. // -// - name: Name of the resource. -func (r *ProjectsLocationsClientConnectorServicesService) Get(name string) *ProjectsLocationsClientConnectorServicesGetCall { - c := &ProjectsLocationsClientConnectorServicesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: BeyondCorp AppGateway name using the form: +// `projects/{project_id}/locations/{location_id}/appGateways/{app_gate +// way_id}`. +func (r *ProjectsLocationsAppGatewaysService) Get(name string) *ProjectsLocationsAppGatewaysGetCall { + c := &ProjectsLocationsAppGatewaysGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -16781,7 +15278,7 @@ func (r *ProjectsLocationsClientConnectorServicesService) Get(name string) *Proj // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsClientConnectorServicesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsClientConnectorServicesGetCall { +func (c *ProjectsLocationsAppGatewaysGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsAppGatewaysGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -16791,7 +15288,7 @@ func (c *ProjectsLocationsClientConnectorServicesGetCall) Fields(s ...googleapi. // 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 *ProjectsLocationsClientConnectorServicesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsClientConnectorServicesGetCall { +func (c *ProjectsLocationsAppGatewaysGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsAppGatewaysGetCall { c.ifNoneMatch_ = entityTag return c } @@ -16799,21 +15296,21 @@ func (c *ProjectsLocationsClientConnectorServicesGetCall) IfNoneMatch(entityTag // 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 *ProjectsLocationsClientConnectorServicesGetCall) Context(ctx context.Context) *ProjectsLocationsClientConnectorServicesGetCall { +func (c *ProjectsLocationsAppGatewaysGetCall) Context(ctx context.Context) *ProjectsLocationsAppGatewaysGetCall { 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 *ProjectsLocationsClientConnectorServicesGetCall) Header() http.Header { +func (c *ProjectsLocationsAppGatewaysGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsClientConnectorServicesGetCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsAppGatewaysGetCall) 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_ { @@ -16839,14 +15336,14 @@ func (c *ProjectsLocationsClientConnectorServicesGetCall) doRequest(alt string) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "beyondcorp.projects.locations.clientConnectorServices.get" call. -// Exactly one of *ClientConnectorService or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *ClientConnectorService.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 *ProjectsLocationsClientConnectorServicesGetCall) Do(opts ...googleapi.CallOption) (*ClientConnectorService, error) { +// Do executes the "beyondcorp.projects.locations.appGateways.get" call. +// Exactly one of *AppGateway or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *AppGateway.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 *ProjectsLocationsAppGatewaysGetCall) Do(opts ...googleapi.CallOption) (*AppGateway, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -16865,7 +15362,7 @@ func (c *ProjectsLocationsClientConnectorServicesGetCall) Do(opts ...googleapi.C if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &ClientConnectorService{ + ret := &AppGateway{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -16877,25 +15374,25 @@ func (c *ProjectsLocationsClientConnectorServicesGetCall) Do(opts ...googleapi.C } return ret, nil // { - // "description": "Gets details of a single ClientConnectorService.", - // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/clientConnectorServices/{clientConnectorServicesId}", + // "description": "Gets details of a single AppGateway.", + // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/appGateways/{appGatewaysId}", // "httpMethod": "GET", - // "id": "beyondcorp.projects.locations.clientConnectorServices.get", + // "id": "beyondcorp.projects.locations.appGateways.get", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "Required. Name of the resource.", + // "description": "Required. BeyondCorp AppGateway name using the form: `projects/{project_id}/locations/{location_id}/appGateways/{app_gateway_id}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/clientConnectorServices/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/appGateways/[^/]+$", // "required": true, // "type": "string" // } // }, // "path": "v1alpha/{+name}", // "response": { - // "$ref": "ClientConnectorService" + // "$ref": "AppGateway" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -16904,9 +15401,9 @@ func (c *ProjectsLocationsClientConnectorServicesGetCall) Do(opts ...googleapi.C } -// method id "beyondcorp.projects.locations.clientConnectorServices.getIamPolicy": +// method id "beyondcorp.projects.locations.appGateways.getIamPolicy": -type ProjectsLocationsClientConnectorServicesGetIamPolicyCall struct { +type ProjectsLocationsAppGatewaysGetIamPolicyCall struct { s *Service resource string urlParams_ gensupport.URLParams @@ -16923,8 +15420,8 @@ type ProjectsLocationsClientConnectorServicesGetIamPolicyCall struct { // requested. See Resource names // (https://cloud.google.com/apis/design/resource_names) for the // appropriate value for this field. -func (r *ProjectsLocationsClientConnectorServicesService) GetIamPolicy(resource string) *ProjectsLocationsClientConnectorServicesGetIamPolicyCall { - c := &ProjectsLocationsClientConnectorServicesGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ProjectsLocationsAppGatewaysService) GetIamPolicy(resource string) *ProjectsLocationsAppGatewaysGetIamPolicyCall { + c := &ProjectsLocationsAppGatewaysGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.resource = resource return c } @@ -16942,7 +15439,7 @@ func (r *ProjectsLocationsClientConnectorServicesService) GetIamPolicy(resource // which resources support conditions in their IAM policies, see the IAM // documentation // (https://cloud.google.com/iam/help/conditions/resource-policies). -func (c *ProjectsLocationsClientConnectorServicesGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ProjectsLocationsClientConnectorServicesGetIamPolicyCall { +func (c *ProjectsLocationsAppGatewaysGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ProjectsLocationsAppGatewaysGetIamPolicyCall { c.urlParams_.Set("options.requestedPolicyVersion", fmt.Sprint(optionsRequestedPolicyVersion)) return c } @@ -16950,7 +15447,7 @@ func (c *ProjectsLocationsClientConnectorServicesGetIamPolicyCall) OptionsReques // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsClientConnectorServicesGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsClientConnectorServicesGetIamPolicyCall { +func (c *ProjectsLocationsAppGatewaysGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsAppGatewaysGetIamPolicyCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -16960,7 +15457,7 @@ func (c *ProjectsLocationsClientConnectorServicesGetIamPolicyCall) Fields(s ...g // 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 *ProjectsLocationsClientConnectorServicesGetIamPolicyCall) IfNoneMatch(entityTag string) *ProjectsLocationsClientConnectorServicesGetIamPolicyCall { +func (c *ProjectsLocationsAppGatewaysGetIamPolicyCall) IfNoneMatch(entityTag string) *ProjectsLocationsAppGatewaysGetIamPolicyCall { c.ifNoneMatch_ = entityTag return c } @@ -16968,21 +15465,21 @@ func (c *ProjectsLocationsClientConnectorServicesGetIamPolicyCall) IfNoneMatch(e // 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 *ProjectsLocationsClientConnectorServicesGetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsClientConnectorServicesGetIamPolicyCall { +func (c *ProjectsLocationsAppGatewaysGetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsAppGatewaysGetIamPolicyCall { 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 *ProjectsLocationsClientConnectorServicesGetIamPolicyCall) Header() http.Header { +func (c *ProjectsLocationsAppGatewaysGetIamPolicyCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsClientConnectorServicesGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsAppGatewaysGetIamPolicyCall) 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_ { @@ -17008,14 +15505,14 @@ func (c *ProjectsLocationsClientConnectorServicesGetIamPolicyCall) doRequest(alt return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "beyondcorp.projects.locations.clientConnectorServices.getIamPolicy" call. +// Do executes the "beyondcorp.projects.locations.appGateways.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 *ProjectsLocationsClientConnectorServicesGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1Policy, error) { +func (c *ProjectsLocationsAppGatewaysGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1Policy, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -17047,9 +15544,9 @@ func (c *ProjectsLocationsClientConnectorServicesGetIamPolicyCall) Do(opts ...go return ret, nil // { // "description": "Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.", - // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/clientConnectorServices/{clientConnectorServicesId}:getIamPolicy", + // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/appGateways/{appGatewaysId}:getIamPolicy", // "httpMethod": "GET", - // "id": "beyondcorp.projects.locations.clientConnectorServices.getIamPolicy", + // "id": "beyondcorp.projects.locations.appGateways.getIamPolicy", // "parameterOrder": [ // "resource" // ], @@ -17063,7 +15560,7 @@ func (c *ProjectsLocationsClientConnectorServicesGetIamPolicyCall) Do(opts ...go // "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/[^/]+/locations/[^/]+/clientConnectorServices/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/appGateways/[^/]+$", // "required": true, // "type": "string" // } @@ -17079,9 +15576,9 @@ func (c *ProjectsLocationsClientConnectorServicesGetIamPolicyCall) Do(opts ...go } -// method id "beyondcorp.projects.locations.clientConnectorServices.list": +// method id "beyondcorp.projects.locations.appGateways.list": -type ProjectsLocationsClientConnectorServicesListCall struct { +type ProjectsLocationsAppGatewaysListCall struct { s *Service parent string urlParams_ gensupport.URLParams @@ -17090,39 +15587,47 @@ type ProjectsLocationsClientConnectorServicesListCall struct { header_ http.Header } -// List: Lists ClientConnectorServices in a given project and location. +// List: Lists AppGateways in a given project and location. // -// - parent: Parent value for ListClientConnectorServicesRequest. -func (r *ProjectsLocationsClientConnectorServicesService) List(parent string) *ProjectsLocationsClientConnectorServicesListCall { - c := &ProjectsLocationsClientConnectorServicesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - parent: The resource name of the AppGateway location using the +// form: `projects/{project_id}/locations/{location_id}`. +func (r *ProjectsLocationsAppGatewaysService) List(parent string) *ProjectsLocationsAppGatewaysListCall { + c := &ProjectsLocationsAppGatewaysListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent return c } -// Filter sets the optional parameter "filter": Filtering results. -func (c *ProjectsLocationsClientConnectorServicesListCall) Filter(filter string) *ProjectsLocationsClientConnectorServicesListCall { +// Filter sets the optional parameter "filter": A filter specifying +// constraints of a list operation. +func (c *ProjectsLocationsAppGatewaysListCall) Filter(filter string) *ProjectsLocationsAppGatewaysListCall { c.urlParams_.Set("filter", filter) return c } -// OrderBy sets the optional parameter "orderBy": Hint for how to order -// the results. -func (c *ProjectsLocationsClientConnectorServicesListCall) OrderBy(orderBy string) *ProjectsLocationsClientConnectorServicesListCall { +// OrderBy sets the optional parameter "orderBy": Specifies the ordering +// of results. See Sorting order +// (https://cloud.google.com/apis/design/design_patterns#sorting_order) +// for more information. +func (c *ProjectsLocationsAppGatewaysListCall) OrderBy(orderBy string) *ProjectsLocationsAppGatewaysListCall { c.urlParams_.Set("orderBy", orderBy) return c } -// PageSize sets the optional parameter "pageSize": Requested page size. -// Server may return fewer items than requested. If unspecified, server -// will pick an appropriate default. -func (c *ProjectsLocationsClientConnectorServicesListCall) PageSize(pageSize int64) *ProjectsLocationsClientConnectorServicesListCall { +// PageSize sets the optional parameter "pageSize": The maximum number +// of items to return. If not specified, a default value of 50 will be +// used by the service. Regardless of the page_size value, the response +// may include a partial list and a caller should only rely on +// response's next_page_token to determine if there are more instances +// left to be queried. +func (c *ProjectsLocationsAppGatewaysListCall) PageSize(pageSize int64) *ProjectsLocationsAppGatewaysListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } -// PageToken sets the optional parameter "pageToken": A token -// identifying a page of results the server should return. -func (c *ProjectsLocationsClientConnectorServicesListCall) PageToken(pageToken string) *ProjectsLocationsClientConnectorServicesListCall { +// PageToken sets the optional parameter "pageToken": The +// next_page_token value returned from a previous +// ListAppGatewaysRequest, if any. +func (c *ProjectsLocationsAppGatewaysListCall) PageToken(pageToken string) *ProjectsLocationsAppGatewaysListCall { c.urlParams_.Set("pageToken", pageToken) return c } @@ -17130,7 +15635,7 @@ func (c *ProjectsLocationsClientConnectorServicesListCall) PageToken(pageToken s // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsClientConnectorServicesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsClientConnectorServicesListCall { +func (c *ProjectsLocationsAppGatewaysListCall) Fields(s ...googleapi.Field) *ProjectsLocationsAppGatewaysListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -17140,7 +15645,7 @@ func (c *ProjectsLocationsClientConnectorServicesListCall) Fields(s ...googleapi // 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 *ProjectsLocationsClientConnectorServicesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsClientConnectorServicesListCall { +func (c *ProjectsLocationsAppGatewaysListCall) IfNoneMatch(entityTag string) *ProjectsLocationsAppGatewaysListCall { c.ifNoneMatch_ = entityTag return c } @@ -17148,21 +15653,21 @@ func (c *ProjectsLocationsClientConnectorServicesListCall) IfNoneMatch(entityTag // 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 *ProjectsLocationsClientConnectorServicesListCall) Context(ctx context.Context) *ProjectsLocationsClientConnectorServicesListCall { +func (c *ProjectsLocationsAppGatewaysListCall) Context(ctx context.Context) *ProjectsLocationsAppGatewaysListCall { 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 *ProjectsLocationsClientConnectorServicesListCall) Header() http.Header { +func (c *ProjectsLocationsAppGatewaysListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsClientConnectorServicesListCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsAppGatewaysListCall) 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_ { @@ -17175,7 +15680,7 @@ func (c *ProjectsLocationsClientConnectorServicesListCall) doRequest(alt string) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/clientConnectorServices") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/appGateways") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -17188,15 +15693,14 @@ func (c *ProjectsLocationsClientConnectorServicesListCall) doRequest(alt string) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "beyondcorp.projects.locations.clientConnectorServices.list" call. -// Exactly one of *ListClientConnectorServicesResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *ListClientConnectorServicesResponse.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 *ProjectsLocationsClientConnectorServicesListCall) Do(opts ...googleapi.CallOption) (*ListClientConnectorServicesResponse, error) { +// Do executes the "beyondcorp.projects.locations.appGateways.list" call. +// Exactly one of *ListAppGatewaysResponse or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *ListAppGatewaysResponse.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 *ProjectsLocationsAppGatewaysListCall) Do(opts ...googleapi.CallOption) (*ListAppGatewaysResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -17215,7 +15719,7 @@ func (c *ProjectsLocationsClientConnectorServicesListCall) Do(opts ...googleapi. if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &ListClientConnectorServicesResponse{ + ret := &ListAppGatewaysResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -17227,46 +15731,46 @@ func (c *ProjectsLocationsClientConnectorServicesListCall) Do(opts ...googleapi. } return ret, nil // { - // "description": "Lists ClientConnectorServices in a given project and location.", - // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/clientConnectorServices", + // "description": "Lists AppGateways in a given project and location.", + // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/appGateways", // "httpMethod": "GET", - // "id": "beyondcorp.projects.locations.clientConnectorServices.list", + // "id": "beyondcorp.projects.locations.appGateways.list", // "parameterOrder": [ // "parent" // ], // "parameters": { // "filter": { - // "description": "Optional. Filtering results.", + // "description": "Optional. A filter specifying constraints of a list operation.", // "location": "query", // "type": "string" // }, // "orderBy": { - // "description": "Optional. Hint for how to order the results.", + // "description": "Optional. Specifies the ordering of results. See [Sorting order](https://cloud.google.com/apis/design/design_patterns#sorting_order) for more information.", // "location": "query", // "type": "string" // }, // "pageSize": { - // "description": "Optional. Requested page size. Server may return fewer items than requested. If unspecified, server will pick an appropriate default.", + // "description": "Optional. The maximum number of items to return. If not specified, a default value of 50 will be used by the service. Regardless of the page_size value, the response may include a partial list and a caller should only rely on response's next_page_token to determine if there are more instances left to be queried.", // "format": "int32", // "location": "query", // "type": "integer" // }, // "pageToken": { - // "description": "Optional. A token identifying a page of results the server should return.", + // "description": "Optional. The next_page_token value returned from a previous ListAppGatewaysRequest, if any.", // "location": "query", // "type": "string" // }, // "parent": { - // "description": "Required. Parent value for ListClientConnectorServicesRequest.", + // "description": "Required. The resource name of the AppGateway location using the form: `projects/{project_id}/locations/{location_id}`", // "location": "path", // "pattern": "^projects/[^/]+/locations/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1alpha/{+parent}/clientConnectorServices", + // "path": "v1alpha/{+parent}/appGateways", // "response": { - // "$ref": "ListClientConnectorServicesResponse" + // "$ref": "ListAppGatewaysResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -17278,7 +15782,7 @@ func (c *ProjectsLocationsClientConnectorServicesListCall) Do(opts ...googleapi. // 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 *ProjectsLocationsClientConnectorServicesListCall) Pages(ctx context.Context, f func(*ListClientConnectorServicesResponse) error) error { +func (c *ProjectsLocationsAppGatewaysListCall) Pages(ctx context.Context, f func(*ListAppGatewaysResponse) error) error { c.ctx_ = ctx defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point for { @@ -17296,76 +15800,186 @@ func (c *ProjectsLocationsClientConnectorServicesListCall) Pages(ctx context.Con } } -// method id "beyondcorp.projects.locations.clientConnectorServices.patch": +// method id "beyondcorp.projects.locations.appGateways.setIamPolicy": -type ProjectsLocationsClientConnectorServicesPatchCall struct { - s *Service - name string - clientconnectorservice *ClientConnectorService - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsAppGatewaysSetIamPolicyCall struct { + s *Service + resource string + googleiamv1setiampolicyrequest *GoogleIamV1SetIamPolicyRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Patch: Updates the parameters of a single ClientConnectorService. +// SetIamPolicy: Sets the access control policy on the specified +// resource. Replaces any existing policy. Can return `NOT_FOUND`, +// `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. // -// - name: Name of resource. The name is ignored during creation. -func (r *ProjectsLocationsClientConnectorServicesService) Patch(name string, clientconnectorservice *ClientConnectorService) *ProjectsLocationsClientConnectorServicesPatchCall { - c := &ProjectsLocationsClientConnectorServicesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name - c.clientconnectorservice = clientconnectorservice +// - 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 *ProjectsLocationsAppGatewaysService) SetIamPolicy(resource string, googleiamv1setiampolicyrequest *GoogleIamV1SetIamPolicyRequest) *ProjectsLocationsAppGatewaysSetIamPolicyCall { + c := &ProjectsLocationsAppGatewaysSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.resource = resource + c.googleiamv1setiampolicyrequest = googleiamv1setiampolicyrequest return c } -// AllowMissing sets the optional parameter "allowMissing": If set as -// true, will create the resource if it is not found. -func (c *ProjectsLocationsClientConnectorServicesPatchCall) AllowMissing(allowMissing bool) *ProjectsLocationsClientConnectorServicesPatchCall { - c.urlParams_.Set("allowMissing", fmt.Sprint(allowMissing)) +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsAppGatewaysSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsAppGatewaysSetIamPolicyCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// RequestId sets the optional parameter "requestId": An optional -// request ID to identify requests. Specify a unique request ID so that -// if you must retry your request, the server will know to ignore the -// request if it has already been completed. The server will guarantee -// that for at least 60 minutes since the first request. For example, -// consider a situation where you make an initial request and the -// request times out. If you make the request again with the same -// request ID, the server can check if original operation with the same -// request ID was received, and if so, will ignore the second request. -// This prevents clients from accidentally creating duplicate -// commitments. The request ID must be a valid UUID with the exception -// that zero UUID is not supported -// (00000000-0000-0000-0000-000000000000). -func (c *ProjectsLocationsClientConnectorServicesPatchCall) RequestId(requestId string) *ProjectsLocationsClientConnectorServicesPatchCall { - c.urlParams_.Set("requestId", requestId) +// 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 *ProjectsLocationsAppGatewaysSetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsAppGatewaysSetIamPolicyCall { + c.ctx_ = ctx return c } -// UpdateMask sets the optional parameter "updateMask": Required. Field -// mask is used to specify the fields to be overwritten in the -// ClientConnectorService resource by the update. The fields specified -// in the update_mask are relative to the resource, not the full -// request. A field will be overwritten if it is in the mask. If the -// user does not provide a mask then all fields will be overwritten. -// Mutable fields: display_name, ingress.config.destination_routes. -func (c *ProjectsLocationsClientConnectorServicesPatchCall) UpdateMask(updateMask string) *ProjectsLocationsClientConnectorServicesPatchCall { - c.urlParams_.Set("updateMask", updateMask) - return c +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsAppGatewaysSetIamPolicyCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ } -// ValidateOnly sets the optional parameter "validateOnly": If set, -// validates request by executing a dry-run which would not alter the -// resource in any way. -func (c *ProjectsLocationsClientConnectorServicesPatchCall) ValidateOnly(validateOnly bool) *ProjectsLocationsClientConnectorServicesPatchCall { - c.urlParams_.Set("validateOnly", fmt.Sprint(validateOnly)) +func (c *ProjectsLocationsAppGatewaysSetIamPolicyCall) 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, "v1alpha/{+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 "beyondcorp.projects.locations.appGateways.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 *ProjectsLocationsAppGatewaysSetIamPolicyCall) 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, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &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 on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.", + // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/appGateways/{appGatewaysId}:setIamPolicy", + // "httpMethod": "POST", + // "id": "beyondcorp.projects.locations.appGateways.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/[^/]+/locations/[^/]+/appGateways/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1alpha/{+resource}:setIamPolicy", + // "request": { + // "$ref": "GoogleIamV1SetIamPolicyRequest" + // }, + // "response": { + // "$ref": "GoogleIamV1Policy" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "beyondcorp.projects.locations.appGateways.testIamPermissions": + +type ProjectsLocationsAppGatewaysTestIamPermissionsCall struct { + s *Service + resource string + googleiamv1testiampermissionsrequest *GoogleIamV1TestIamPermissionsRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// TestIamPermissions: Returns permissions that a caller has on the +// specified resource. If the resource does not exist, this will return +// an empty set of permissions, not a `NOT_FOUND` error. Note: This +// operation is designed to be used for building permission-aware UIs +// and command-line tools, not for authorization checking. This +// operation may "fail open" without warning. +// +// - 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 *ProjectsLocationsAppGatewaysService) TestIamPermissions(resource string, googleiamv1testiampermissionsrequest *GoogleIamV1TestIamPermissionsRequest) *ProjectsLocationsAppGatewaysTestIamPermissionsCall { + c := &ProjectsLocationsAppGatewaysTestIamPermissionsCall{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 *ProjectsLocationsClientConnectorServicesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsClientConnectorServicesPatchCall { +func (c *ProjectsLocationsAppGatewaysTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsAppGatewaysTestIamPermissionsCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -17373,21 +15987,21 @@ func (c *ProjectsLocationsClientConnectorServicesPatchCall) Fields(s ...googleap // 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 *ProjectsLocationsClientConnectorServicesPatchCall) Context(ctx context.Context) *ProjectsLocationsClientConnectorServicesPatchCall { +func (c *ProjectsLocationsAppGatewaysTestIamPermissionsCall) Context(ctx context.Context) *ProjectsLocationsAppGatewaysTestIamPermissionsCall { 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 *ProjectsLocationsClientConnectorServicesPatchCall) Header() http.Header { +func (c *ProjectsLocationsAppGatewaysTestIamPermissionsCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsClientConnectorServicesPatchCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsAppGatewaysTestIamPermissionsCall) 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_ { @@ -17395,34 +16009,35 @@ func (c *ProjectsLocationsClientConnectorServicesPatchCall) doRequest(alt string } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.clientconnectorservice) + 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, "v1alpha/{+name}") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+resource}:testIamPermissions") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("PATCH", urls, body) + req, err := http.NewRequest("POST", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "name": c.name, + "resource": c.resource, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "beyondcorp.projects.locations.clientConnectorServices.patch" call. -// Exactly one of *GoogleLongrunningOperation or error will be non-nil. -// Any non-2xx status code is an error. Response headers are in either -// *GoogleLongrunningOperation.ServerResponse.Header or (if a response -// was returned at all) in error.(*googleapi.Error).Header. Use +// Do executes the "beyondcorp.projects.locations.appGateways.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 *ProjectsLocationsClientConnectorServicesPatchCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsAppGatewaysTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1TestIamPermissionsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -17441,7 +16056,7 @@ func (c *ProjectsLocationsClientConnectorServicesPatchCall) Do(opts ...googleapi if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleLongrunningOperation{ + ret := &GoogleIamV1TestIamPermissionsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -17453,49 +16068,28 @@ func (c *ProjectsLocationsClientConnectorServicesPatchCall) Do(opts ...googleapi } return ret, nil // { - // "description": "Updates the parameters of a single ClientConnectorService.", - // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/clientConnectorServices/{clientConnectorServicesId}", - // "httpMethod": "PATCH", - // "id": "beyondcorp.projects.locations.clientConnectorServices.patch", + // "description": "Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a `NOT_FOUND` error. Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may \"fail open\" without warning.", + // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/appGateways/{appGatewaysId}:testIamPermissions", + // "httpMethod": "POST", + // "id": "beyondcorp.projects.locations.appGateways.testIamPermissions", // "parameterOrder": [ - // "name" + // "resource" // ], // "parameters": { - // "allowMissing": { - // "description": "Optional. If set as true, will create the resource if it is not found.", - // "location": "query", - // "type": "boolean" - // }, - // "name": { - // "description": "Required. Name of resource. The name is ignored during creation.", + // "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/[^/]+/locations/[^/]+/clientConnectorServices/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/appGateways/[^/]+$", // "required": true, // "type": "string" - // }, - // "requestId": { - // "description": "Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).", - // "location": "query", - // "type": "string" - // }, - // "updateMask": { - // "description": "Required. Field mask is used to specify the fields to be overwritten in the ClientConnectorService resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten. Mutable fields: display_name, ingress.config.destination_routes.", - // "format": "google-fieldmask", - // "location": "query", - // "type": "string" - // }, - // "validateOnly": { - // "description": "Optional. If set, validates request by executing a dry-run which would not alter the resource in any way.", - // "location": "query", - // "type": "boolean" // } // }, - // "path": "v1alpha/{+name}", + // "path": "v1alpha/{+resource}:testIamPermissions", // "request": { - // "$ref": "ClientConnectorService" + // "$ref": "GoogleIamV1TestIamPermissionsRequest" // }, // "response": { - // "$ref": "GoogleLongrunningOperation" + // "$ref": "GoogleIamV1TestIamPermissionsResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -17504,75 +16098,100 @@ func (c *ProjectsLocationsClientConnectorServicesPatchCall) Do(opts ...googleapi } -// method id "beyondcorp.projects.locations.clientConnectorServices.setIamPolicy": +// method id "beyondcorp.projects.locations.applications.getIamPolicy": -type ProjectsLocationsClientConnectorServicesSetIamPolicyCall struct { - s *Service - resource string - googleiamv1setiampolicyrequest *GoogleIamV1SetIamPolicyRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsApplicationsGetIamPolicyCall struct { + s *Service + resource string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// SetIamPolicy: Sets the access control policy on the specified -// resource. Replaces any existing policy. Can return `NOT_FOUND`, -// `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. +// GetIamPolicy: Gets the access control policy for a resource. Returns +// an empty policy if the resource exists and does not have a policy +// set. // // - resource: REQUIRED: The resource for which the policy is being -// specified. See Resource names +// requested. See Resource names // (https://cloud.google.com/apis/design/resource_names) for the // appropriate value for this field. -func (r *ProjectsLocationsClientConnectorServicesService) SetIamPolicy(resource string, googleiamv1setiampolicyrequest *GoogleIamV1SetIamPolicyRequest) *ProjectsLocationsClientConnectorServicesSetIamPolicyCall { - c := &ProjectsLocationsClientConnectorServicesSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ProjectsLocationsApplicationsService) GetIamPolicy(resource string) *ProjectsLocationsApplicationsGetIamPolicyCall { + c := &ProjectsLocationsApplicationsGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.resource = resource - c.googleiamv1setiampolicyrequest = googleiamv1setiampolicyrequest + return c +} + +// OptionsRequestedPolicyVersion sets the optional parameter +// "options.requestedPolicyVersion": 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). +func (c *ProjectsLocationsApplicationsGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ProjectsLocationsApplicationsGetIamPolicyCall { + c.urlParams_.Set("options.requestedPolicyVersion", fmt.Sprint(optionsRequestedPolicyVersion)) 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 *ProjectsLocationsClientConnectorServicesSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsClientConnectorServicesSetIamPolicyCall { +func (c *ProjectsLocationsApplicationsGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsApplicationsGetIamPolicyCall { 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 *ProjectsLocationsApplicationsGetIamPolicyCall) IfNoneMatch(entityTag string) *ProjectsLocationsApplicationsGetIamPolicyCall { + 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 *ProjectsLocationsClientConnectorServicesSetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsClientConnectorServicesSetIamPolicyCall { +func (c *ProjectsLocationsApplicationsGetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsApplicationsGetIamPolicyCall { 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 *ProjectsLocationsClientConnectorServicesSetIamPolicyCall) Header() http.Header { +func (c *ProjectsLocationsApplicationsGetIamPolicyCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsClientConnectorServicesSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsApplicationsGetIamPolicyCall) 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 + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } - reqHeaders.Set("Content-Type", "application/json") + var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+resource}:setIamPolicy") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+resource}:getIamPolicy") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("GET", urls, body) if err != nil { return nil, err } @@ -17583,14 +16202,14 @@ func (c *ProjectsLocationsClientConnectorServicesSetIamPolicyCall) doRequest(alt return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "beyondcorp.projects.locations.clientConnectorServices.setIamPolicy" call. +// Do executes the "beyondcorp.projects.locations.applications.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 *ProjectsLocationsClientConnectorServicesSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1Policy, error) { +func (c *ProjectsLocationsApplicationsGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1Policy, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -17621,26 +16240,29 @@ func (c *ProjectsLocationsClientConnectorServicesSetIamPolicyCall) Do(opts ...go } return ret, nil // { - // "description": "Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.", - // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/clientConnectorServices/{clientConnectorServicesId}:setIamPolicy", - // "httpMethod": "POST", - // "id": "beyondcorp.projects.locations.clientConnectorServices.setIamPolicy", + // "description": "Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.", + // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/applications/{applicationsId}:getIamPolicy", + // "httpMethod": "GET", + // "id": "beyondcorp.projects.locations.applications.getIamPolicy", // "parameterOrder": [ // "resource" // ], // "parameters": { + // "options.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", + // "location": "query", + // "type": "integer" + // }, // "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.", + // "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/[^/]+/locations/[^/]+/clientConnectorServices/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/applications/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1alpha/{+resource}:setIamPolicy", - // "request": { - // "$ref": "GoogleIamV1SetIamPolicyRequest" - // }, + // "path": "v1alpha/{+resource}:getIamPolicy", // "response": { // "$ref": "GoogleIamV1Policy" // }, @@ -17651,39 +16273,36 @@ func (c *ProjectsLocationsClientConnectorServicesSetIamPolicyCall) Do(opts ...go } -// method id "beyondcorp.projects.locations.clientConnectorServices.testIamPermissions": +// method id "beyondcorp.projects.locations.applications.setIamPolicy": -type ProjectsLocationsClientConnectorServicesTestIamPermissionsCall struct { - s *Service - resource string - googleiamv1testiampermissionsrequest *GoogleIamV1TestIamPermissionsRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsApplicationsSetIamPolicyCall struct { + s *Service + resource string + googleiamv1setiampolicyrequest *GoogleIamV1SetIamPolicyRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// TestIamPermissions: Returns permissions that a caller has on the -// specified resource. If the resource does not exist, this will return -// an empty set of permissions, not a `NOT_FOUND` error. Note: This -// operation is designed to be used for building permission-aware UIs -// and command-line tools, not for authorization checking. This -// operation may "fail open" without warning. +// SetIamPolicy: Sets the access control policy on the specified +// resource. Replaces any existing policy. Can return `NOT_FOUND`, +// `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. // -// - resource: REQUIRED: The resource for which the policy detail is -// being requested. See Resource names +// - 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 *ProjectsLocationsClientConnectorServicesService) TestIamPermissions(resource string, googleiamv1testiampermissionsrequest *GoogleIamV1TestIamPermissionsRequest) *ProjectsLocationsClientConnectorServicesTestIamPermissionsCall { - c := &ProjectsLocationsClientConnectorServicesTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ProjectsLocationsApplicationsService) SetIamPolicy(resource string, googleiamv1setiampolicyrequest *GoogleIamV1SetIamPolicyRequest) *ProjectsLocationsApplicationsSetIamPolicyCall { + c := &ProjectsLocationsApplicationsSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.resource = resource - c.googleiamv1testiampermissionsrequest = googleiamv1testiampermissionsrequest + 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 *ProjectsLocationsClientConnectorServicesTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsClientConnectorServicesTestIamPermissionsCall { +func (c *ProjectsLocationsApplicationsSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsApplicationsSetIamPolicyCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -17691,21 +16310,21 @@ func (c *ProjectsLocationsClientConnectorServicesTestIamPermissionsCall) Fields( // 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 *ProjectsLocationsClientConnectorServicesTestIamPermissionsCall) Context(ctx context.Context) *ProjectsLocationsClientConnectorServicesTestIamPermissionsCall { +func (c *ProjectsLocationsApplicationsSetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsApplicationsSetIamPolicyCall { 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 *ProjectsLocationsClientConnectorServicesTestIamPermissionsCall) Header() http.Header { +func (c *ProjectsLocationsApplicationsSetIamPolicyCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsClientConnectorServicesTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsApplicationsSetIamPolicyCall) 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_ { @@ -17713,14 +16332,14 @@ func (c *ProjectsLocationsClientConnectorServicesTestIamPermissionsCall) doReque } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleiamv1testiampermissionsrequest) + 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, "v1alpha/{+resource}:testIamPermissions") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+resource}:setIamPolicy") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -17733,15 +16352,14 @@ func (c *ProjectsLocationsClientConnectorServicesTestIamPermissionsCall) doReque return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "beyondcorp.projects.locations.clientConnectorServices.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 +// Do executes the "beyondcorp.projects.locations.applications.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 *ProjectsLocationsClientConnectorServicesTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1TestIamPermissionsResponse, error) { +func (c *ProjectsLocationsApplicationsSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1Policy, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -17760,7 +16378,7 @@ func (c *ProjectsLocationsClientConnectorServicesTestIamPermissionsCall) Do(opts if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleIamV1TestIamPermissionsResponse{ + ret := &GoogleIamV1Policy{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -17772,28 +16390,28 @@ func (c *ProjectsLocationsClientConnectorServicesTestIamPermissionsCall) Do(opts } return ret, nil // { - // "description": "Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a `NOT_FOUND` error. Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may \"fail open\" without warning.", - // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/clientConnectorServices/{clientConnectorServicesId}:testIamPermissions", + // "description": "Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.", + // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/applications/{applicationsId}:setIamPolicy", // "httpMethod": "POST", - // "id": "beyondcorp.projects.locations.clientConnectorServices.testIamPermissions", + // "id": "beyondcorp.projects.locations.applications.setIamPolicy", // "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.", + // "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/[^/]+/locations/[^/]+/clientConnectorServices/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/applications/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1alpha/{+resource}:testIamPermissions", + // "path": "v1alpha/{+resource}:setIamPolicy", // "request": { - // "$ref": "GoogleIamV1TestIamPermissionsRequest" + // "$ref": "GoogleIamV1SetIamPolicyRequest" // }, // "response": { - // "$ref": "GoogleIamV1TestIamPermissionsResponse" + // "$ref": "GoogleIamV1Policy" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -17802,66 +16420,39 @@ func (c *ProjectsLocationsClientConnectorServicesTestIamPermissionsCall) Do(opts } -// method id "beyondcorp.projects.locations.clientGateways.create": - -type ProjectsLocationsClientGatewaysCreateCall struct { - s *Service - parent string - clientgateway *ClientGateway - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// Create: Creates a new ClientGateway in a given project and location. -// -// - parent: Value for parent. -func (r *ProjectsLocationsClientGatewaysService) Create(parent string, clientgateway *ClientGateway) *ProjectsLocationsClientGatewaysCreateCall { - c := &ProjectsLocationsClientGatewaysCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - c.clientgateway = clientgateway - return c -} - -// ClientGatewayId sets the optional parameter "clientGatewayId": -// User-settable client gateway resource ID. * Must start with a letter. -// * Must contain between 4-63 characters from `/a-z-/`. * Must end with -// a number or a letter. -func (c *ProjectsLocationsClientGatewaysCreateCall) ClientGatewayId(clientGatewayId string) *ProjectsLocationsClientGatewaysCreateCall { - c.urlParams_.Set("clientGatewayId", clientGatewayId) - return c -} +// method id "beyondcorp.projects.locations.applications.testIamPermissions": -// RequestId sets the optional parameter "requestId": An optional -// request ID to identify requests. Specify a unique request ID so that -// if you must retry your request, the server will know to ignore the -// request if it has already been completed. The server will guarantee -// that for at least 60 minutes since the first request. For example, -// consider a situation where you make an initial request and the -// request times out. If you make the request again with the same -// request ID, the server can check if original operation with the same -// request ID was received, and if so, will ignore the second request. -// This prevents clients from accidentally creating duplicate -// commitments. The request ID must be a valid UUID with the exception -// that zero UUID is not supported -// (00000000-0000-0000-0000-000000000000). -func (c *ProjectsLocationsClientGatewaysCreateCall) RequestId(requestId string) *ProjectsLocationsClientGatewaysCreateCall { - c.urlParams_.Set("requestId", requestId) - return c +type ProjectsLocationsApplicationsTestIamPermissionsCall struct { + s *Service + resource string + googleiamv1testiampermissionsrequest *GoogleIamV1TestIamPermissionsRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// ValidateOnly sets the optional parameter "validateOnly": If set, -// validates request by executing a dry-run which would not alter the -// resource in any way. -func (c *ProjectsLocationsClientGatewaysCreateCall) ValidateOnly(validateOnly bool) *ProjectsLocationsClientGatewaysCreateCall { - c.urlParams_.Set("validateOnly", fmt.Sprint(validateOnly)) +// TestIamPermissions: Returns permissions that a caller has on the +// specified resource. If the resource does not exist, this will return +// an empty set of permissions, not a `NOT_FOUND` error. Note: This +// operation is designed to be used for building permission-aware UIs +// and command-line tools, not for authorization checking. This +// operation may "fail open" without warning. +// +// - 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 *ProjectsLocationsApplicationsService) TestIamPermissions(resource string, googleiamv1testiampermissionsrequest *GoogleIamV1TestIamPermissionsRequest) *ProjectsLocationsApplicationsTestIamPermissionsCall { + c := &ProjectsLocationsApplicationsTestIamPermissionsCall{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 *ProjectsLocationsClientGatewaysCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsClientGatewaysCreateCall { +func (c *ProjectsLocationsApplicationsTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsApplicationsTestIamPermissionsCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -17869,21 +16460,21 @@ func (c *ProjectsLocationsClientGatewaysCreateCall) Fields(s ...googleapi.Field) // 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 *ProjectsLocationsClientGatewaysCreateCall) Context(ctx context.Context) *ProjectsLocationsClientGatewaysCreateCall { +func (c *ProjectsLocationsApplicationsTestIamPermissionsCall) Context(ctx context.Context) *ProjectsLocationsApplicationsTestIamPermissionsCall { 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 *ProjectsLocationsClientGatewaysCreateCall) Header() http.Header { +func (c *ProjectsLocationsApplicationsTestIamPermissionsCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsClientGatewaysCreateCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsApplicationsTestIamPermissionsCall) 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_ { @@ -17891,14 +16482,14 @@ func (c *ProjectsLocationsClientGatewaysCreateCall) doRequest(alt string) (*http } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.clientgateway) + 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, "v1alpha/{+parent}/clientGateways") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+resource}:testIamPermissions") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -17906,19 +16497,20 @@ func (c *ProjectsLocationsClientGatewaysCreateCall) doRequest(alt string) (*http } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "parent": c.parent, + "resource": c.resource, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "beyondcorp.projects.locations.clientGateways.create" call. -// Exactly one of *GoogleLongrunningOperation or error will be non-nil. -// Any non-2xx status code is an error. Response headers are in either -// *GoogleLongrunningOperation.ServerResponse.Header or (if a response -// was returned at all) in error.(*googleapi.Error).Header. Use +// Do executes the "beyondcorp.projects.locations.applications.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 *ProjectsLocationsClientGatewaysCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsApplicationsTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1TestIamPermissionsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -17937,7 +16529,7 @@ func (c *ProjectsLocationsClientGatewaysCreateCall) Do(opts ...googleapi.CallOpt if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleLongrunningOperation{ + ret := &GoogleIamV1TestIamPermissionsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -17949,43 +16541,28 @@ func (c *ProjectsLocationsClientGatewaysCreateCall) Do(opts ...googleapi.CallOpt } return ret, nil // { - // "description": "Creates a new ClientGateway in a given project and location.", - // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/clientGateways", + // "description": "Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a `NOT_FOUND` error. Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may \"fail open\" without warning.", + // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/applications/{applicationsId}:testIamPermissions", // "httpMethod": "POST", - // "id": "beyondcorp.projects.locations.clientGateways.create", + // "id": "beyondcorp.projects.locations.applications.testIamPermissions", // "parameterOrder": [ - // "parent" + // "resource" // ], // "parameters": { - // "clientGatewayId": { - // "description": "Optional. User-settable client gateway resource ID. * Must start with a letter. * Must contain between 4-63 characters from `/a-z-/`. * Must end with a number or a letter.", - // "location": "query", - // "type": "string" - // }, - // "parent": { - // "description": "Required. Value for parent.", + // "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/[^/]+/locations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/applications/[^/]+$", // "required": true, // "type": "string" - // }, - // "requestId": { - // "description": "Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).", - // "location": "query", - // "type": "string" - // }, - // "validateOnly": { - // "description": "Optional. If set, validates request by executing a dry-run which would not alter the resource in any way.", - // "location": "query", - // "type": "boolean" // } // }, - // "path": "v1alpha/{+parent}/clientGateways", + // "path": "v1alpha/{+resource}:testIamPermissions", // "request": { - // "$ref": "ClientGateway" + // "$ref": "GoogleIamV1TestIamPermissionsRequest" // }, // "response": { - // "$ref": "GoogleLongrunningOperation" + // "$ref": "GoogleIamV1TestIamPermissionsResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -17994,107 +16571,118 @@ func (c *ProjectsLocationsClientGatewaysCreateCall) Do(opts ...googleapi.CallOpt } -// method id "beyondcorp.projects.locations.clientGateways.delete": +// method id "beyondcorp.projects.locations.clientConnectorServices.getIamPolicy": -type ProjectsLocationsClientGatewaysDeleteCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsClientConnectorServicesGetIamPolicyCall struct { + s *Service + resource string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// Delete: Deletes a single ClientGateway. +// GetIamPolicy: Gets the access control policy for a resource. Returns +// an empty policy if the resource exists and does not have a policy +// set. // -// - name: Name of the resource. -func (r *ProjectsLocationsClientGatewaysService) Delete(name string) *ProjectsLocationsClientGatewaysDeleteCall { - c := &ProjectsLocationsClientGatewaysDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name - return c -} - -// RequestId sets the optional parameter "requestId": An optional -// request ID to identify requests. Specify a unique request ID so that -// if you must retry your request, the server will know to ignore the -// request if it has already been completed. The server will guarantee -// that for at least 60 minutes after the first request. For example, -// consider a situation where you make an initial request and the -// request times out. If you make the request again with the same -// request ID, the server can check if original operation with the same -// request ID was received, and if so, will ignore the second request. -// This prevents clients from accidentally creating duplicate -// commitments. The request ID must be a valid UUID with the exception -// that zero UUID is not supported -// (00000000-0000-0000-0000-000000000000). -func (c *ProjectsLocationsClientGatewaysDeleteCall) RequestId(requestId string) *ProjectsLocationsClientGatewaysDeleteCall { - c.urlParams_.Set("requestId", requestId) +// - 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 *ProjectsLocationsClientConnectorServicesService) GetIamPolicy(resource string) *ProjectsLocationsClientConnectorServicesGetIamPolicyCall { + c := &ProjectsLocationsClientConnectorServicesGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.resource = resource return c } -// ValidateOnly sets the optional parameter "validateOnly": If set, -// validates request by executing a dry-run which would not alter the -// resource in any way. -func (c *ProjectsLocationsClientGatewaysDeleteCall) ValidateOnly(validateOnly bool) *ProjectsLocationsClientGatewaysDeleteCall { - c.urlParams_.Set("validateOnly", fmt.Sprint(validateOnly)) +// OptionsRequestedPolicyVersion sets the optional parameter +// "options.requestedPolicyVersion": 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). +func (c *ProjectsLocationsClientConnectorServicesGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ProjectsLocationsClientConnectorServicesGetIamPolicyCall { + c.urlParams_.Set("options.requestedPolicyVersion", fmt.Sprint(optionsRequestedPolicyVersion)) 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 *ProjectsLocationsClientGatewaysDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsClientGatewaysDeleteCall { +func (c *ProjectsLocationsClientConnectorServicesGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsClientConnectorServicesGetIamPolicyCall { 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 *ProjectsLocationsClientConnectorServicesGetIamPolicyCall) IfNoneMatch(entityTag string) *ProjectsLocationsClientConnectorServicesGetIamPolicyCall { + 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 *ProjectsLocationsClientGatewaysDeleteCall) Context(ctx context.Context) *ProjectsLocationsClientGatewaysDeleteCall { +func (c *ProjectsLocationsClientConnectorServicesGetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsClientConnectorServicesGetIamPolicyCall { 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 *ProjectsLocationsClientGatewaysDeleteCall) Header() http.Header { +func (c *ProjectsLocationsClientConnectorServicesGetIamPolicyCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsClientGatewaysDeleteCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsClientConnectorServicesGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+resource}:getIamPolicy") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("DELETE", urls, body) + 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, + "resource": c.resource, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "beyondcorp.projects.locations.clientGateways.delete" call. -// Exactly one of *GoogleLongrunningOperation or error will be non-nil. -// Any non-2xx status code is an error. Response headers are in either -// *GoogleLongrunningOperation.ServerResponse.Header or (if a response -// was returned at all) in error.(*googleapi.Error).Header. Use +// Do executes the "beyondcorp.projects.locations.clientConnectorServices.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 *ProjectsLocationsClientGatewaysDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsClientConnectorServicesGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1Policy, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -18113,7 +16701,7 @@ func (c *ProjectsLocationsClientGatewaysDeleteCall) Do(opts ...googleapi.CallOpt if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleLongrunningOperation{ + ret := &GoogleIamV1Policy{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -18125,35 +16713,31 @@ func (c *ProjectsLocationsClientGatewaysDeleteCall) Do(opts ...googleapi.CallOpt } return ret, nil // { - // "description": "Deletes a single ClientGateway.", - // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/clientGateways/{clientGatewaysId}", - // "httpMethod": "DELETE", - // "id": "beyondcorp.projects.locations.clientGateways.delete", + // "description": "Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.", + // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/clientConnectorServices/{clientConnectorServicesId}:getIamPolicy", + // "httpMethod": "GET", + // "id": "beyondcorp.projects.locations.clientConnectorServices.getIamPolicy", // "parameterOrder": [ - // "name" + // "resource" // ], // "parameters": { - // "name": { - // "description": "Required. Name of the resource", + // "options.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", + // "location": "query", + // "type": "integer" + // }, + // "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/[^/]+/locations/[^/]+/clientGateways/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/clientConnectorServices/[^/]+$", // "required": true, // "type": "string" - // }, - // "requestId": { - // "description": "Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes after the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).", - // "location": "query", - // "type": "string" - // }, - // "validateOnly": { - // "description": "Optional. If set, validates request by executing a dry-run which would not alter the resource in any way.", - // "location": "query", - // "type": "boolean" // } // }, - // "path": "v1alpha/{+name}", + // "path": "v1alpha/{+resource}:getIamPolicy", // "response": { - // "$ref": "GoogleLongrunningOperation" + // "$ref": "GoogleIamV1Policy" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -18162,95 +16746,93 @@ func (c *ProjectsLocationsClientGatewaysDeleteCall) Do(opts ...googleapi.CallOpt } -// method id "beyondcorp.projects.locations.clientGateways.get": +// method id "beyondcorp.projects.locations.clientConnectorServices.setIamPolicy": -type ProjectsLocationsClientGatewaysGetCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +type ProjectsLocationsClientConnectorServicesSetIamPolicyCall struct { + s *Service + resource string + googleiamv1setiampolicyrequest *GoogleIamV1SetIamPolicyRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Get: Gets details of a single ClientGateway. +// SetIamPolicy: Sets the access control policy on the specified +// resource. Replaces any existing policy. Can return `NOT_FOUND`, +// `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. // -// - name: Name of the resource. -func (r *ProjectsLocationsClientGatewaysService) Get(name string) *ProjectsLocationsClientGatewaysGetCall { - c := &ProjectsLocationsClientGatewaysGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name +// - 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 *ProjectsLocationsClientConnectorServicesService) SetIamPolicy(resource string, googleiamv1setiampolicyrequest *GoogleIamV1SetIamPolicyRequest) *ProjectsLocationsClientConnectorServicesSetIamPolicyCall { + c := &ProjectsLocationsClientConnectorServicesSetIamPolicyCall{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 *ProjectsLocationsClientGatewaysGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsClientGatewaysGetCall { +func (c *ProjectsLocationsClientConnectorServicesSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsClientConnectorServicesSetIamPolicyCall { 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 *ProjectsLocationsClientGatewaysGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsClientGatewaysGetCall { - 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 *ProjectsLocationsClientGatewaysGetCall) Context(ctx context.Context) *ProjectsLocationsClientGatewaysGetCall { +func (c *ProjectsLocationsClientConnectorServicesSetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsClientConnectorServicesSetIamPolicyCall { 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 *ProjectsLocationsClientGatewaysGetCall) Header() http.Header { +func (c *ProjectsLocationsClientConnectorServicesSetIamPolicyCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsClientGatewaysGetCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsClientConnectorServicesSetIamPolicyCall) 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 + 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, "v1alpha/{+name}") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+resource}:setIamPolicy") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, body) + req, err := http.NewRequest("POST", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "name": c.name, + "resource": c.resource, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "beyondcorp.projects.locations.clientGateways.get" call. -// Exactly one of *ClientGateway or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *ClientGateway.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use +// Do executes the "beyondcorp.projects.locations.clientConnectorServices.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 *ProjectsLocationsClientGatewaysGetCall) Do(opts ...googleapi.CallOption) (*ClientGateway, error) { +func (c *ProjectsLocationsClientConnectorServicesSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1Policy, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -18269,7 +16851,7 @@ func (c *ProjectsLocationsClientGatewaysGetCall) Do(opts ...googleapi.CallOption if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &ClientGateway{ + ret := &GoogleIamV1Policy{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -18281,25 +16863,28 @@ func (c *ProjectsLocationsClientGatewaysGetCall) Do(opts ...googleapi.CallOption } return ret, nil // { - // "description": "Gets details of a single ClientGateway.", - // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/clientGateways/{clientGatewaysId}", - // "httpMethod": "GET", - // "id": "beyondcorp.projects.locations.clientGateways.get", + // "description": "Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.", + // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/clientConnectorServices/{clientConnectorServicesId}:setIamPolicy", + // "httpMethod": "POST", + // "id": "beyondcorp.projects.locations.clientConnectorServices.setIamPolicy", // "parameterOrder": [ - // "name" + // "resource" // ], // "parameters": { - // "name": { - // "description": "Required. Name of the resource", + // "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/[^/]+/locations/[^/]+/clientGateways/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/clientConnectorServices/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1alpha/{+name}", + // "path": "v1alpha/{+resource}:setIamPolicy", + // "request": { + // "$ref": "GoogleIamV1SetIamPolicyRequest" + // }, // "response": { - // "$ref": "ClientGateway" + // "$ref": "GoogleIamV1Policy" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -18308,100 +16893,78 @@ func (c *ProjectsLocationsClientGatewaysGetCall) Do(opts ...googleapi.CallOption } -// method id "beyondcorp.projects.locations.clientGateways.getIamPolicy": +// method id "beyondcorp.projects.locations.clientConnectorServices.testIamPermissions": -type ProjectsLocationsClientGatewaysGetIamPolicyCall struct { - s *Service - resource string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +type ProjectsLocationsClientConnectorServicesTestIamPermissionsCall struct { + s *Service + resource string + googleiamv1testiampermissionsrequest *GoogleIamV1TestIamPermissionsRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// GetIamPolicy: Gets the access control policy for a resource. Returns -// an empty policy if the resource exists and does not have a policy -// set. +// TestIamPermissions: Returns permissions that a caller has on the +// specified resource. If the resource does not exist, this will return +// an empty set of permissions, not a `NOT_FOUND` error. Note: This +// operation is designed to be used for building permission-aware UIs +// and command-line tools, not for authorization checking. This +// operation may "fail open" without warning. // -// - resource: REQUIRED: The resource for which the policy is being -// requested. See Resource names +// - 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 *ProjectsLocationsClientGatewaysService) GetIamPolicy(resource string) *ProjectsLocationsClientGatewaysGetIamPolicyCall { - c := &ProjectsLocationsClientGatewaysGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ProjectsLocationsClientConnectorServicesService) TestIamPermissions(resource string, googleiamv1testiampermissionsrequest *GoogleIamV1TestIamPermissionsRequest) *ProjectsLocationsClientConnectorServicesTestIamPermissionsCall { + c := &ProjectsLocationsClientConnectorServicesTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.resource = resource - return c -} - -// OptionsRequestedPolicyVersion sets the optional parameter -// "options.requestedPolicyVersion": 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). -func (c *ProjectsLocationsClientGatewaysGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ProjectsLocationsClientGatewaysGetIamPolicyCall { - c.urlParams_.Set("options.requestedPolicyVersion", fmt.Sprint(optionsRequestedPolicyVersion)) + 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 *ProjectsLocationsClientGatewaysGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsClientGatewaysGetIamPolicyCall { +func (c *ProjectsLocationsClientConnectorServicesTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsClientConnectorServicesTestIamPermissionsCall { 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 *ProjectsLocationsClientGatewaysGetIamPolicyCall) IfNoneMatch(entityTag string) *ProjectsLocationsClientGatewaysGetIamPolicyCall { - 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 *ProjectsLocationsClientGatewaysGetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsClientGatewaysGetIamPolicyCall { +func (c *ProjectsLocationsClientConnectorServicesTestIamPermissionsCall) Context(ctx context.Context) *ProjectsLocationsClientConnectorServicesTestIamPermissionsCall { 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 *ProjectsLocationsClientGatewaysGetIamPolicyCall) Header() http.Header { +func (c *ProjectsLocationsClientConnectorServicesTestIamPermissionsCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsClientGatewaysGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsClientConnectorServicesTestIamPermissionsCall) 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 + 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, "v1alpha/{+resource}:getIamPolicy") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+resource}:testIamPermissions") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, body) + req, err := http.NewRequest("POST", urls, body) if err != nil { return nil, err } @@ -18412,14 +16975,15 @@ func (c *ProjectsLocationsClientGatewaysGetIamPolicyCall) doRequest(alt string) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "beyondcorp.projects.locations.clientGateways.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 +// Do executes the "beyondcorp.projects.locations.clientConnectorServices.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 *ProjectsLocationsClientGatewaysGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1Policy, error) { +func (c *ProjectsLocationsClientConnectorServicesTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1TestIamPermissionsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -18438,7 +17002,7 @@ func (c *ProjectsLocationsClientGatewaysGetIamPolicyCall) Do(opts ...googleapi.C if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleIamV1Policy{ + ret := &GoogleIamV1TestIamPermissionsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -18450,31 +17014,28 @@ func (c *ProjectsLocationsClientGatewaysGetIamPolicyCall) Do(opts ...googleapi.C } return ret, nil // { - // "description": "Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.", - // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/clientGateways/{clientGatewaysId}:getIamPolicy", - // "httpMethod": "GET", - // "id": "beyondcorp.projects.locations.clientGateways.getIamPolicy", + // "description": "Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a `NOT_FOUND` error. Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may \"fail open\" without warning.", + // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/clientConnectorServices/{clientConnectorServicesId}:testIamPermissions", + // "httpMethod": "POST", + // "id": "beyondcorp.projects.locations.clientConnectorServices.testIamPermissions", // "parameterOrder": [ // "resource" // ], // "parameters": { - // "options.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", - // "location": "query", - // "type": "integer" - // }, // "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.", + // "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/[^/]+/locations/[^/]+/clientGateways/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/clientConnectorServices/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1alpha/{+resource}:getIamPolicy", + // "path": "v1alpha/{+resource}:testIamPermissions", + // "request": { + // "$ref": "GoogleIamV1TestIamPermissionsRequest" + // }, // "response": { - // "$ref": "GoogleIamV1Policy" + // "$ref": "GoogleIamV1TestIamPermissionsResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -18483,58 +17044,53 @@ func (c *ProjectsLocationsClientGatewaysGetIamPolicyCall) Do(opts ...googleapi.C } -// method id "beyondcorp.projects.locations.clientGateways.list": +// method id "beyondcorp.projects.locations.clientGateways.getIamPolicy": -type ProjectsLocationsClientGatewaysListCall struct { +type ProjectsLocationsClientGatewaysGetIamPolicyCall struct { s *Service - parent string + resource string urlParams_ gensupport.URLParams ifNoneMatch_ string ctx_ context.Context header_ http.Header } -// List: Lists ClientGateways in a given project and location. +// GetIamPolicy: Gets the access control policy for a resource. Returns +// an empty policy if the resource exists and does not have a policy +// set. // -// - parent: Parent value for ListClientGatewaysRequest. -func (r *ProjectsLocationsClientGatewaysService) List(parent string) *ProjectsLocationsClientGatewaysListCall { - c := &ProjectsLocationsClientGatewaysListCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - return c -} - -// Filter sets the optional parameter "filter": Filtering results. -func (c *ProjectsLocationsClientGatewaysListCall) Filter(filter string) *ProjectsLocationsClientGatewaysListCall { - c.urlParams_.Set("filter", filter) - return c -} - -// OrderBy sets the optional parameter "orderBy": Hint for how to order -// the results. -func (c *ProjectsLocationsClientGatewaysListCall) OrderBy(orderBy string) *ProjectsLocationsClientGatewaysListCall { - c.urlParams_.Set("orderBy", orderBy) - return c -} - -// PageSize sets the optional parameter "pageSize": Requested page size. -// Server may return fewer items than requested. If unspecified, server -// will pick an appropriate default. -func (c *ProjectsLocationsClientGatewaysListCall) PageSize(pageSize int64) *ProjectsLocationsClientGatewaysListCall { - c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) +// - 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 *ProjectsLocationsClientGatewaysService) GetIamPolicy(resource string) *ProjectsLocationsClientGatewaysGetIamPolicyCall { + c := &ProjectsLocationsClientGatewaysGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.resource = resource return c } -// PageToken sets the optional parameter "pageToken": A token -// identifying a page of results the server should return. -func (c *ProjectsLocationsClientGatewaysListCall) PageToken(pageToken string) *ProjectsLocationsClientGatewaysListCall { - c.urlParams_.Set("pageToken", pageToken) +// OptionsRequestedPolicyVersion sets the optional parameter +// "options.requestedPolicyVersion": 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). +func (c *ProjectsLocationsClientGatewaysGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ProjectsLocationsClientGatewaysGetIamPolicyCall { + c.urlParams_.Set("options.requestedPolicyVersion", fmt.Sprint(optionsRequestedPolicyVersion)) 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 *ProjectsLocationsClientGatewaysListCall) Fields(s ...googleapi.Field) *ProjectsLocationsClientGatewaysListCall { +func (c *ProjectsLocationsClientGatewaysGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsClientGatewaysGetIamPolicyCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -18544,7 +17100,7 @@ func (c *ProjectsLocationsClientGatewaysListCall) Fields(s ...googleapi.Field) * // 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 *ProjectsLocationsClientGatewaysListCall) IfNoneMatch(entityTag string) *ProjectsLocationsClientGatewaysListCall { +func (c *ProjectsLocationsClientGatewaysGetIamPolicyCall) IfNoneMatch(entityTag string) *ProjectsLocationsClientGatewaysGetIamPolicyCall { c.ifNoneMatch_ = entityTag return c } @@ -18552,21 +17108,21 @@ func (c *ProjectsLocationsClientGatewaysListCall) IfNoneMatch(entityTag string) // 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 *ProjectsLocationsClientGatewaysListCall) Context(ctx context.Context) *ProjectsLocationsClientGatewaysListCall { +func (c *ProjectsLocationsClientGatewaysGetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsClientGatewaysGetIamPolicyCall { 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 *ProjectsLocationsClientGatewaysListCall) Header() http.Header { +func (c *ProjectsLocationsClientGatewaysGetIamPolicyCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsClientGatewaysListCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsClientGatewaysGetIamPolicyCall) 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_ { @@ -18579,7 +17135,7 @@ func (c *ProjectsLocationsClientGatewaysListCall) doRequest(alt string) (*http.R var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/clientGateways") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+resource}:getIamPolicy") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -18587,19 +17143,19 @@ func (c *ProjectsLocationsClientGatewaysListCall) doRequest(alt string) (*http.R } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "parent": c.parent, + "resource": c.resource, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "beyondcorp.projects.locations.clientGateways.list" call. -// Exactly one of *ListClientGatewaysResponse or error will be non-nil. -// Any non-2xx status code is an error. Response headers are in either -// *ListClientGatewaysResponse.ServerResponse.Header or (if a response -// was returned at all) in error.(*googleapi.Error).Header. Use +// Do executes the "beyondcorp.projects.locations.clientGateways.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 *ProjectsLocationsClientGatewaysListCall) Do(opts ...googleapi.CallOption) (*ListClientGatewaysResponse, error) { +func (c *ProjectsLocationsClientGatewaysGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1Policy, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -18618,7 +17174,7 @@ func (c *ProjectsLocationsClientGatewaysListCall) Do(opts ...googleapi.CallOptio if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &ListClientGatewaysResponse{ + ret := &GoogleIamV1Policy{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -18630,46 +17186,31 @@ func (c *ProjectsLocationsClientGatewaysListCall) Do(opts ...googleapi.CallOptio } return ret, nil // { - // "description": "Lists ClientGateways in a given project and location.", - // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/clientGateways", + // "description": "Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.", + // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/clientGateways/{clientGatewaysId}:getIamPolicy", // "httpMethod": "GET", - // "id": "beyondcorp.projects.locations.clientGateways.list", + // "id": "beyondcorp.projects.locations.clientGateways.getIamPolicy", // "parameterOrder": [ - // "parent" + // "resource" // ], // "parameters": { - // "filter": { - // "description": "Optional. Filtering results.", - // "location": "query", - // "type": "string" - // }, - // "orderBy": { - // "description": "Optional. Hint for how to order the results.", - // "location": "query", - // "type": "string" - // }, - // "pageSize": { - // "description": "Optional. Requested page size. Server may return fewer items than requested. If unspecified, server will pick an appropriate default.", + // "options.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", // "location": "query", // "type": "integer" // }, - // "pageToken": { - // "description": "Optional. A token identifying a page of results the server should return.", - // "location": "query", - // "type": "string" - // }, - // "parent": { - // "description": "Required. Parent value for ListClientGatewaysRequest.", + // "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/[^/]+/locations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/clientGateways/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1alpha/{+parent}/clientGateways", + // "path": "v1alpha/{+resource}:getIamPolicy", // "response": { - // "$ref": "ListClientGatewaysResponse" + // "$ref": "GoogleIamV1Policy" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -18678,27 +17219,6 @@ func (c *ProjectsLocationsClientGatewaysListCall) Do(opts ...googleapi.CallOptio } -// 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 *ProjectsLocationsClientGatewaysListCall) Pages(ctx context.Context, f func(*ListClientGatewaysResponse) 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 "beyondcorp.projects.locations.clientGateways.setIamPolicy": type ProjectsLocationsClientGatewaysSetIamPolicyCall struct { diff --git a/bigquery/v2/bigquery-api.json b/bigquery/v2/bigquery-api.json index 01680312728..8ca1be473ba 100644 --- a/bigquery/v2/bigquery-api.json +++ b/bigquery/v2/bigquery-api.json @@ -1710,7 +1710,7 @@ } } }, - "revision": "20230520", + "revision": "20230617", "rootUrl": "https://bigquery.googleapis.com/", "schemas": { "AggregateClassificationMetrics": { @@ -3433,6 +3433,10 @@ }, "type": "array" }, + "fileSetSpecType": { + "description": "[Optional] Specifies how source URIs are interpreted for constructing the file set to load. By default source URIs are expanded against the underlying storage. Other options include specifying manifest files. Only applicable to object storage systems.", + "type": "string" + }, "googleSheetsOptions": { "$ref": "GoogleSheetsOptions", "description": "[Optional] Additional options if sourceFormat is set to GOOGLE_SHEETS." @@ -4172,6 +4176,10 @@ "description": "[Optional] The separator for fields in a CSV file. The separator can be any ISO-8859-1 single-byte character. To use a character in the range 128-255, you must encode the character as UTF8. BigQuery converts the string to ISO-8859-1 encoding, and then uses the first byte of the encoded string to split the data in its raw, binary state. BigQuery also supports the escape sequence \"\\t\" to specify a tab separator. The default value is a comma (',').", "type": "string" }, + "fileSetSpecType": { + "description": "[Optional] Specifies how source URIs are interpreted for constructing the file set to load. By default source URIs are expanded against the underlying storage. Other options include specifying manifest files. Only applicable to object storage systems.", + "type": "string" + }, "hivePartitioningOptions": { "$ref": "HivePartitioningOptions", "description": "[Optional] Options to configure hive partitioning support." @@ -7660,10 +7668,6 @@ ], "type": "string" }, - "preserveInputStructs": { - "description": "Whether to preserve the input structs in output feature names. Suppose there is a struct A with field b. When false (default), the output feature name is A_b. When true, the output feature name is A.b.", - "type": "boolean" - }, "sampledShapleyNumPaths": { "description": "Number of paths for the sampled Shapley explain method.", "format": "int64", diff --git a/bigquery/v2/bigquery-gen.go b/bigquery/v2/bigquery-gen.go index 6d6b03f8950..5ff46738afb 100644 --- a/bigquery/v2/bigquery-gen.go +++ b/bigquery/v2/bigquery-gen.go @@ -3262,6 +3262,12 @@ type ExternalDataConfiguration struct { // formats. DecimalTargetTypes []string `json:"decimalTargetTypes,omitempty"` + // FileSetSpecType: [Optional] Specifies how source URIs are interpreted + // for constructing the file set to load. By default source URIs are + // expanded against the underlying storage. Other options include + // specifying manifest files. Only applicable to object storage systems. + FileSetSpecType string `json:"fileSetSpecType,omitempty"` + // GoogleSheetsOptions: [Optional] Additional options if sourceFormat is // set to GOOGLE_SHEETS. GoogleSheetsOptions *GoogleSheetsOptions `json:"googleSheetsOptions,omitempty"` @@ -4483,6 +4489,12 @@ type JobConfigurationLoad struct { // specify a tab separator. The default value is a comma (','). FieldDelimiter string `json:"fieldDelimiter,omitempty"` + // FileSetSpecType: [Optional] Specifies how source URIs are interpreted + // for constructing the file set to load. By default source URIs are + // expanded against the underlying storage. Other options include + // specifying manifest files. Only applicable to object storage systems. + FileSetSpecType string `json:"fileSetSpecType,omitempty"` + // HivePartitioningOptions: [Optional] Options to configure hive // partitioning support. HivePartitioningOptions *HivePartitioningOptions `json:"hivePartitioningOptions,omitempty"` @@ -9555,12 +9567,6 @@ type TrainingOptions struct { // regression problem. OptimizationStrategy string `json:"optimizationStrategy,omitempty"` - // PreserveInputStructs: Whether to preserve the input structs in output - // feature names. Suppose there is a struct A with field b. When false - // (default), the output feature name is A_b. When true, the output - // feature name is A.b. - PreserveInputStructs bool `json:"preserveInputStructs,omitempty"` - // SampledShapleyNumPaths: Number of paths for the sampled Shapley // explain method. SampledShapleyNumPaths int64 `json:"sampledShapleyNumPaths,omitempty,string"` diff --git a/calendar/v3/calendar-api.json b/calendar/v3/calendar-api.json index e7221ab48a4..d24359db8c1 100644 --- a/calendar/v3/calendar-api.json +++ b/calendar/v3/calendar-api.json @@ -1088,7 +1088,7 @@ "type": "string" }, "eventTypes": { - "description": "Event types to return. Optional. Possible values are: \n- \"default\" \n- \"focusTime\" \n- \"outOfOffice\"This parameter can be repeated multiple times to return events of different types. Currently, this is the only allowed value for this field: \n- [\"default\", \"focusTime\", \"outOfOffice\"] This value will be the default.\n\nIf you're enrolled in the Working Location developer preview program, in addition to the default value above you can also set the \"workingLocation\" event type: \n- [\"default\", \"focusTime\", \"outOfOffice\", \"workingLocation\"] \n- [\"workingLocation\"] Additional combinations of these 4 event types will be made available in later releases. Developer Preview.", + "description": "Event types to return. Optional. Possible values are: \n- \"default\" \n- \"focusTime\" \n- \"outOfOffice\"This parameter can be repeated multiple times to return events of different types. Currently, this is the only allowed value for this field: \n- [\"default\", \"focusTime\", \"outOfOffice\"] This value is the default.\n\nIf you're enrolled in the Working Location developer preview program, in addition to the default value above you can also set the \"workingLocation\" event type: \n- [\"default\", \"focusTime\", \"outOfOffice\", \"workingLocation\"] \n- [\"workingLocation\"] Additional combinations of these four event types will be made available in later releases. Developer Preview.", "location": "query", "repeated": true, "type": "string" @@ -1491,7 +1491,7 @@ "type": "string" }, "eventTypes": { - "description": "Event types to return. Optional. Possible values are: \n- \"default\" \n- \"focusTime\" \n- \"outOfOffice\"This parameter can be repeated multiple times to return events of different types. Currently, this is the only allowed value for this field: \n- [\"default\", \"focusTime\", \"outOfOffice\"] This value will be the default.\n\nIf you're enrolled in the Working Location developer preview program, in addition to the default value above you can also set the \"workingLocation\" event type: \n- [\"default\", \"focusTime\", \"outOfOffice\", \"workingLocation\"] \n- [\"workingLocation\"] Additional combinations of these 4 event types will be made available in later releases. Developer Preview.", + "description": "Event types to return. Optional. Possible values are: \n- \"default\" \n- \"focusTime\" \n- \"outOfOffice\"This parameter can be repeated multiple times to return events of different types. Currently, this is the only allowed value for this field: \n- [\"default\", \"focusTime\", \"outOfOffice\"] This value is the default.\n\nIf you're enrolled in the Working Location developer preview program, in addition to the default value above you can also set the \"workingLocation\" event type: \n- [\"default\", \"focusTime\", \"outOfOffice\", \"workingLocation\"] \n- [\"workingLocation\"] Additional combinations of these four event types will be made available in later releases. Developer Preview.", "location": "query", "repeated": true, "type": "string" @@ -1735,7 +1735,7 @@ } } }, - "revision": "20230602", + "revision": "20230616", "rootUrl": "https://www.googleapis.com/", "schemas": { "Acl": { @@ -2626,7 +2626,7 @@ }, "workingLocationProperties": { "$ref": "EventWorkingLocationProperties", - "description": "Developer Preview: Working Location event data. Read-only." + "description": "Working Location event data. Read-only. Developer Preview." } }, "type": "object" @@ -2787,7 +2787,7 @@ "type": "object" }, "type": { - "description": "Indicates what kind of location this is. Any details will be specified in a sub-field of the specified name (but which may be missing if empty). Any other fields will be ignored.", + "description": "Indicates what kind of location this is. Any details are specified in a sub-field of the specified name (but which may be missing if empty). Any other fields are ignored.", "type": "string" } }, diff --git a/calendar/v3/calendar-gen.go b/calendar/v3/calendar-gen.go index 523b72fa9b0..2fcb4e0f5d6 100644 --- a/calendar/v3/calendar-gen.go +++ b/calendar/v3/calendar-gen.go @@ -1548,8 +1548,8 @@ type Event struct { // compatibility reasons. Visibility string `json:"visibility,omitempty"` - // WorkingLocationProperties: Developer Preview: Working Location event - // data. Read-only. + // WorkingLocationProperties: Working Location event data. Read-only. + // Developer Preview. WorkingLocationProperties *EventWorkingLocationProperties `json:"workingLocationProperties,omitempty"` // ServerResponse contains the HTTP response code and headers from the @@ -2033,9 +2033,9 @@ type EventWorkingLocationProperties struct { // an office. OfficeLocation *EventWorkingLocationPropertiesOfficeLocation `json:"officeLocation,omitempty"` - // Type: Indicates what kind of location this is. Any details will be + // Type: Indicates what kind of location this is. Any details are // specified in a sub-field of the specified name (but which may be - // missing if empty). Any other fields will be ignored. + // missing if empty). Any other fields are ignored. Type string `json:"type,omitempty"` // ForceSendFields is a list of field names (e.g. "CustomLocation") to @@ -7078,15 +7078,15 @@ func (c *EventsListCall) AlwaysIncludeEmail(alwaysIncludeEmail bool) *EventsList // - "outOfOffice"This parameter can be repeated multiple times to // return events of different types. Currently, this is the only allowed // value for this field: -// - ["default", "focusTime", "outOfOffice"] This value will be the +// - ["default", "focusTime", "outOfOffice"] This value is the // default. // // If you're enrolled in the Working Location developer preview program, // in addition to the default value above you can also set the // "workingLocation" event type: // - ["default", "focusTime", "outOfOffice", "workingLocation"] -// - ["workingLocation"] Additional combinations of these 4 event types -// will be made available in later releases. Developer Preview. +// - ["workingLocation"] Additional combinations of these four event +// types will be made available in later releases. Developer Preview. func (c *EventsListCall) EventTypes(eventTypes ...string) *EventsListCall { c.urlParams_.SetMulti("eventTypes", append([]string{}, eventTypes...)) return c @@ -7387,7 +7387,7 @@ func (c *EventsListCall) Do(opts ...googleapi.CallOption) (*Events, error) { // "type": "string" // }, // "eventTypes": { - // "description": "Event types to return. Optional. Possible values are: \n- \"default\" \n- \"focusTime\" \n- \"outOfOffice\"This parameter can be repeated multiple times to return events of different types. Currently, this is the only allowed value for this field: \n- [\"default\", \"focusTime\", \"outOfOffice\"] This value will be the default.\n\nIf you're enrolled in the Working Location developer preview program, in addition to the default value above you can also set the \"workingLocation\" event type: \n- [\"default\", \"focusTime\", \"outOfOffice\", \"workingLocation\"] \n- [\"workingLocation\"] Additional combinations of these 4 event types will be made available in later releases. Developer Preview.", + // "description": "Event types to return. Optional. Possible values are: \n- \"default\" \n- \"focusTime\" \n- \"outOfOffice\"This parameter can be repeated multiple times to return events of different types. Currently, this is the only allowed value for this field: \n- [\"default\", \"focusTime\", \"outOfOffice\"] This value is the default.\n\nIf you're enrolled in the Working Location developer preview program, in addition to the default value above you can also set the \"workingLocation\" event type: \n- [\"default\", \"focusTime\", \"outOfOffice\", \"workingLocation\"] \n- [\"workingLocation\"] Additional combinations of these four event types will be made available in later releases. Developer Preview.", // "location": "query", // "repeated": true, // "type": "string" @@ -8502,15 +8502,15 @@ func (c *EventsWatchCall) AlwaysIncludeEmail(alwaysIncludeEmail bool) *EventsWat // - "outOfOffice"This parameter can be repeated multiple times to // return events of different types. Currently, this is the only allowed // value for this field: -// - ["default", "focusTime", "outOfOffice"] This value will be the +// - ["default", "focusTime", "outOfOffice"] This value is the // default. // // If you're enrolled in the Working Location developer preview program, // in addition to the default value above you can also set the // "workingLocation" event type: // - ["default", "focusTime", "outOfOffice", "workingLocation"] -// - ["workingLocation"] Additional combinations of these 4 event types -// will be made available in later releases. Developer Preview. +// - ["workingLocation"] Additional combinations of these four event +// types will be made available in later releases. Developer Preview. func (c *EventsWatchCall) EventTypes(eventTypes ...string) *EventsWatchCall { c.urlParams_.SetMulti("eventTypes", append([]string{}, eventTypes...)) return c @@ -8803,7 +8803,7 @@ func (c *EventsWatchCall) Do(opts ...googleapi.CallOption) (*Channel, error) { // "type": "string" // }, // "eventTypes": { - // "description": "Event types to return. Optional. Possible values are: \n- \"default\" \n- \"focusTime\" \n- \"outOfOffice\"This parameter can be repeated multiple times to return events of different types. Currently, this is the only allowed value for this field: \n- [\"default\", \"focusTime\", \"outOfOffice\"] This value will be the default.\n\nIf you're enrolled in the Working Location developer preview program, in addition to the default value above you can also set the \"workingLocation\" event type: \n- [\"default\", \"focusTime\", \"outOfOffice\", \"workingLocation\"] \n- [\"workingLocation\"] Additional combinations of these 4 event types will be made available in later releases. Developer Preview.", + // "description": "Event types to return. Optional. Possible values are: \n- \"default\" \n- \"focusTime\" \n- \"outOfOffice\"This parameter can be repeated multiple times to return events of different types. Currently, this is the only allowed value for this field: \n- [\"default\", \"focusTime\", \"outOfOffice\"] This value is the default.\n\nIf you're enrolled in the Working Location developer preview program, in addition to the default value above you can also set the \"workingLocation\" event type: \n- [\"default\", \"focusTime\", \"outOfOffice\", \"workingLocation\"] \n- [\"workingLocation\"] Additional combinations of these four event types will be made available in later releases. Developer Preview.", // "location": "query", // "repeated": true, // "type": "string" diff --git a/chat/v1/chat-api.json b/chat/v1/chat-api.json index cf625dccbb1..d4039274c64 100644 --- a/chat/v1/chat-api.json +++ b/chat/v1/chat-api.json @@ -8,6 +8,9 @@ "https://www.googleapis.com/auth/chat.delete": { "description": "Delete conversations and spaces \u0026 remove access to associated files in Google Chat" }, + "https://www.googleapis.com/auth/chat.import": { + "description": "Import spaces, messages, and memberships into Google Chat." + }, "https://www.googleapis.com/auth/chat.memberships": { "description": "View, add, and remove members from conversations in Google Chat" }, @@ -215,6 +218,7 @@ "$ref": "UploadAttachmentResponse" }, "scopes": [ + "https://www.googleapis.com/auth/chat.import", "https://www.googleapis.com/auth/chat.messages", "https://www.googleapis.com/auth/chat.messages.create" ], @@ -245,6 +249,7 @@ "$ref": "Space" }, "scopes": [ + "https://www.googleapis.com/auth/chat.import", "https://www.googleapis.com/auth/chat.spaces", "https://www.googleapis.com/auth/chat.spaces.create" ] @@ -271,7 +276,8 @@ "$ref": "Empty" }, "scopes": [ - "https://www.googleapis.com/auth/chat.delete" + "https://www.googleapis.com/auth/chat.delete", + "https://www.googleapis.com/auth/chat.import" ] }, "findDirectMessage": { @@ -389,6 +395,7 @@ "$ref": "Space" }, "scopes": [ + "https://www.googleapis.com/auth/chat.import", "https://www.googleapis.com/auth/chat.spaces" ] }, @@ -559,7 +566,7 @@ ], "parameters": { "messageId": { - "description": "Optional. A custom name for a Chat message assigned at creation. Must start with `client-` and contain only lowercase letters, numbers, and hyphens up to 63 characters in length. Specify this field to get, update, or delete the message with the specified value. Assigning a custom name lets a a Chat app recall the message without saving the message `name` from the [response body](/chat/api/reference/rest/v1/spaces.messages/get#response-body) returned when creating the message. Assigning a custom name doesn't replace the generated `name` field, the message's resource name. Instead, it sets the custom name as the `clientAssignedMessageId` field, which you can reference while processing later operations, like updating or deleting the message. For example usage, see [Name a created message](https://developers.google.com/chat/api/guides/crudl/messages#name_a_created_message).", + "description": "Optional. A custom name for a Chat message assigned at creation. Must start with `client-` and contain only lowercase letters, numbers, and hyphens up to 63 characters in length. Specify this field to get, update, or delete the message with the specified value. Assigning a custom name lets a a Chat app recall the message without saving the message `name` from the [response body](/chat/api/reference/rest/v1/spaces.messages/get#response-body) returned when creating the message. Assigning a custom name doesn't replace the generated `name` field, the message's resource name. Instead, it sets the custom name as the `clientAssignedMessageId` field, which you can reference while processing later operations, like updating or deleting the message. For example usage, see [Name a created message](https://developers.google.com/chat/api/guides/v1/messages/create#name_a_created_message).", "location": "query", "type": "string" }, @@ -606,6 +613,7 @@ }, "scopes": [ "https://www.googleapis.com/auth/chat.bot", + "https://www.googleapis.com/auth/chat.import", "https://www.googleapis.com/auth/chat.messages", "https://www.googleapis.com/auth/chat.messages.create" ] @@ -638,6 +646,7 @@ }, "scopes": [ "https://www.googleapis.com/auth/chat.bot", + "https://www.googleapis.com/auth/chat.import", "https://www.googleapis.com/auth/chat.messages" ] }, @@ -651,7 +660,7 @@ ], "parameters": { "name": { - "description": "Required. Resource name of the message to retrieve. Format: `spaces/{space}/messages/{message}` If the message begins with `client-`, then it has a custom name assigned by a Chat app that created it with the Chat REST API. That Chat app (but not others) can pass the custom name to get, update, or delete the message. To learn more, see [create and name a message] (https://developers.google.com/chat/api/guides/crudl/messages#name_a_created_message).", + "description": "Required. Resource name of the message to retrieve. Format: `spaces/{space}/messages/{message}` If the message begins with `client-`, then it has a custom name assigned by a Chat app that created it with the Chat REST API. That Chat app (but not others) can pass the custom name to get, update, or delete the message. To learn more, see [create and name a message] (https://developers.google.com/chat/api/guides/v1/messages/create#name_a_created_message).", "location": "path", "pattern": "^spaces/[^/]+/messages/[^/]+$", "required": true, @@ -716,6 +725,7 @@ "$ref": "ListMessagesResponse" }, "scopes": [ + "https://www.googleapis.com/auth/chat.import", "https://www.googleapis.com/auth/chat.messages", "https://www.googleapis.com/auth/chat.messages.readonly" ] @@ -730,7 +740,7 @@ ], "parameters": { "allowMissing": { - "description": "Optional. If `true` and the message isn't found, a new message is created and `updateMask` is ignored. The specified message ID must be [client-assigned](https://developers.google.com/chat/api/guides/crudl/messages#name_a_created_message) or the request fails.", + "description": "Optional. If `true` and the message isn't found, a new message is created and `updateMask` is ignored. The specified message ID must be [client-assigned](https://developers.google.com/chat/api/guides/v1/messages/create#name_a_created_message) or the request fails.", "location": "query", "type": "boolean" }, @@ -757,6 +767,7 @@ }, "scopes": [ "https://www.googleapis.com/auth/chat.bot", + "https://www.googleapis.com/auth/chat.import", "https://www.googleapis.com/auth/chat.messages" ] }, @@ -770,7 +781,7 @@ ], "parameters": { "allowMissing": { - "description": "Optional. If `true` and the message isn't found, a new message is created and `updateMask` is ignored. The specified message ID must be [client-assigned](https://developers.google.com/chat/api/guides/crudl/messages#name_a_created_message) or the request fails.", + "description": "Optional. If `true` and the message isn't found, a new message is created and `updateMask` is ignored. The specified message ID must be [client-assigned](https://developers.google.com/chat/api/guides/v1/messages/create#name_a_created_message) or the request fails.", "location": "query", "type": "boolean" }, @@ -797,6 +808,7 @@ }, "scopes": [ "https://www.googleapis.com/auth/chat.bot", + "https://www.googleapis.com/auth/chat.import", "https://www.googleapis.com/auth/chat.messages" ] } @@ -858,6 +870,7 @@ "$ref": "Reaction" }, "scopes": [ + "https://www.googleapis.com/auth/chat.import", "https://www.googleapis.com/auth/chat.messages", "https://www.googleapis.com/auth/chat.messages.reactions", "https://www.googleapis.com/auth/chat.messages.reactions.create" @@ -885,6 +898,7 @@ "$ref": "Empty" }, "scopes": [ + "https://www.googleapis.com/auth/chat.import", "https://www.googleapis.com/auth/chat.messages", "https://www.googleapis.com/auth/chat.messages.reactions" ] @@ -940,7 +954,7 @@ } } }, - "revision": "20230608", + "revision": "20230622", "rootUrl": "https://chat.googleapis.com/", "schemas": { "ActionParameter": { @@ -1085,6 +1099,18 @@ }, "type": "object" }, + "AttachedGif": { + "description": "A GIF image that's specified by a URL.", + "id": "AttachedGif", + "properties": { + "uri": { + "description": "Output only. The URL that hosts the GIF image.", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, "Attachment": { "description": "An attachment in Google Chat.", "id": "Attachment", @@ -2987,6 +3013,14 @@ "readOnly": true, "type": "string" }, + "attachedGifs": { + "description": "Output only. GIF images that are attached to the message.", + "items": { + "$ref": "AttachedGif" + }, + "readOnly": true, + "type": "array" + }, "attachment": { "description": "User-uploaded attachment.", "items": { @@ -3009,7 +3043,7 @@ "type": "array" }, "clientAssignedMessageId": { - "description": "A custom name for a Chat message assigned at creation. Must start with `client-` and contain only lowercase letters, numbers, and hyphens up to 63 characters in length. Specify this field to get, update, or delete the message with the specified value. Assigning a custom name lets a Chat app recall the message without saving the message `name` from the [response body](/chat/api/reference/rest/v1/spaces.messages/get#response-body) returned when creating the message. Assigning a custom name doesn't replace the generated `name` field, the message's resource name. Instead, it sets the custom name as the `clientAssignedMessageId` field, which you can reference while processing later operations, like updating or deleting the message. For example usage, see [Name a created message](https://developers.google.com/chat/api/guides/crudl/messages#name_a_created_message).", + "description": "A custom name for a Chat message assigned at creation. Must start with `client-` and contain only lowercase letters, numbers, and hyphens up to 63 characters in length. Specify this field to get, update, or delete the message with the specified value. Assigning a custom name lets a Chat app recall the message without saving the message `name` from the [response body](/chat/api/reference/rest/v1/spaces.messages/get#response-body) returned when creating the message. Assigning a custom name doesn't replace the generated `name` field, the message's resource name. Instead, it sets the custom name as the `clientAssignedMessageId` field, which you can reference while processing later operations, like updating or deleting the message. For example usage, see [Name a created message](https://developers.google.com/chat/api/guides/v1/messages/create#name_a_created_message).", "type": "string" }, "createTime": { diff --git a/chat/v1/chat-gen.go b/chat/v1/chat-gen.go index 3bf2e5f9cf6..9edc15d12cc 100644 --- a/chat/v1/chat-gen.go +++ b/chat/v1/chat-gen.go @@ -92,6 +92,9 @@ const ( // in Google Chat ChatDeleteScope = "https://www.googleapis.com/auth/chat.delete" + // Import spaces, messages, and memberships into Google Chat. + ChatImportScope = "https://www.googleapis.com/auth/chat.import" + // View, add, and remove members from conversations in Google Chat ChatMembershipsScope = "https://www.googleapis.com/auth/chat.memberships" @@ -136,6 +139,7 @@ func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, err scopesOption := internaloption.WithDefaultScopes( "https://www.googleapis.com/auth/chat.bot", "https://www.googleapis.com/auth/chat.delete", + "https://www.googleapis.com/auth/chat.import", "https://www.googleapis.com/auth/chat.memberships", "https://www.googleapis.com/auth/chat.memberships.app", "https://www.googleapis.com/auth/chat.memberships.readonly", @@ -530,6 +534,34 @@ func (s *Annotation) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// AttachedGif: A GIF image that's specified by a URL. +type AttachedGif struct { + // Uri: Output only. The URL that hosts the GIF image. + Uri string `json:"uri,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Uri") 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. "Uri") 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 *AttachedGif) MarshalJSON() ([]byte, error) { + type NoMethod AttachedGif + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // Attachment: An attachment in Google Chat. type Attachment struct { // AttachmentDataRef: A reference to the attachment data. This field is @@ -3814,6 +3846,10 @@ type Message struct { // Chat app mentions stripped out. ArgumentText string `json:"argumentText,omitempty"` + // AttachedGifs: Output only. GIF images that are attached to the + // message. + AttachedGifs []*AttachedGif `json:"attachedGifs,omitempty"` + // Attachment: User-uploaded attachment. Attachment []*Attachment `json:"attachment,omitempty"` @@ -3850,7 +3886,7 @@ type Message struct { // field, which you can reference while processing later operations, // like updating or deleting the message. For example usage, see Name a // created message - // (https://developers.google.com/chat/api/guides/crudl/messages#name_a_created_message). + // (https://developers.google.com/chat/api/guides/v1/messages/create#name_a_created_message). ClientAssignedMessageId string `json:"clientAssignedMessageId,omitempty"` // CreateTime: For spaces created in Chat, the time at which the message @@ -5202,6 +5238,7 @@ func (c *MediaUploadCall) Do(opts ...googleapi.CallOption) (*UploadAttachmentRes // "$ref": "UploadAttachmentResponse" // }, // "scopes": [ + // "https://www.googleapis.com/auth/chat.import", // "https://www.googleapis.com/auth/chat.messages", // "https://www.googleapis.com/auth/chat.messages.create" // ], @@ -5350,6 +5387,7 @@ func (c *SpacesCreateCall) Do(opts ...googleapi.CallOption) (*Space, error) { // "$ref": "Space" // }, // "scopes": [ + // "https://www.googleapis.com/auth/chat.import", // "https://www.googleapis.com/auth/chat.spaces", // "https://www.googleapis.com/auth/chat.spaces.create" // ] @@ -5492,7 +5530,8 @@ func (c *SpacesDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) { // "$ref": "Empty" // }, // "scopes": [ - // "https://www.googleapis.com/auth/chat.delete" + // "https://www.googleapis.com/auth/chat.delete", + // "https://www.googleapis.com/auth/chat.import" // ] // } @@ -6214,6 +6253,7 @@ func (c *SpacesPatchCall) Do(opts ...googleapi.CallOption) (*Space, error) { // "$ref": "Space" // }, // "scopes": [ + // "https://www.googleapis.com/auth/chat.import", // "https://www.googleapis.com/auth/chat.spaces" // ] // } @@ -7165,7 +7205,7 @@ func (r *SpacesMessagesService) Create(parent string, message *Message) *SpacesM // field, which you can reference while processing later operations, // like updating or deleting the message. For example usage, see Name a // created message -// (https://developers.google.com/chat/api/guides/crudl/messages#name_a_created_message). +// (https://developers.google.com/chat/api/guides/v1/messages/create#name_a_created_message). func (c *SpacesMessagesCreateCall) MessageId(messageId string) *SpacesMessagesCreateCall { c.urlParams_.Set("messageId", messageId) return c @@ -7311,7 +7351,7 @@ func (c *SpacesMessagesCreateCall) Do(opts ...googleapi.CallOption) (*Message, e // ], // "parameters": { // "messageId": { - // "description": "Optional. A custom name for a Chat message assigned at creation. Must start with `client-` and contain only lowercase letters, numbers, and hyphens up to 63 characters in length. Specify this field to get, update, or delete the message with the specified value. Assigning a custom name lets a a Chat app recall the message without saving the message `name` from the [response body](/chat/api/reference/rest/v1/spaces.messages/get#response-body) returned when creating the message. Assigning a custom name doesn't replace the generated `name` field, the message's resource name. Instead, it sets the custom name as the `clientAssignedMessageId` field, which you can reference while processing later operations, like updating or deleting the message. For example usage, see [Name a created message](https://developers.google.com/chat/api/guides/crudl/messages#name_a_created_message).", + // "description": "Optional. A custom name for a Chat message assigned at creation. Must start with `client-` and contain only lowercase letters, numbers, and hyphens up to 63 characters in length. Specify this field to get, update, or delete the message with the specified value. Assigning a custom name lets a a Chat app recall the message without saving the message `name` from the [response body](/chat/api/reference/rest/v1/spaces.messages/get#response-body) returned when creating the message. Assigning a custom name doesn't replace the generated `name` field, the message's resource name. Instead, it sets the custom name as the `clientAssignedMessageId` field, which you can reference while processing later operations, like updating or deleting the message. For example usage, see [Name a created message](https://developers.google.com/chat/api/guides/v1/messages/create#name_a_created_message).", // "location": "query", // "type": "string" // }, @@ -7358,6 +7398,7 @@ func (c *SpacesMessagesCreateCall) Do(opts ...googleapi.CallOption) (*Message, e // }, // "scopes": [ // "https://www.googleapis.com/auth/chat.bot", + // "https://www.googleapis.com/auth/chat.import", // "https://www.googleapis.com/auth/chat.messages", // "https://www.googleapis.com/auth/chat.messages.create" // ] @@ -7521,6 +7562,7 @@ func (c *SpacesMessagesDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, err // }, // "scopes": [ // "https://www.googleapis.com/auth/chat.bot", + // "https://www.googleapis.com/auth/chat.import", // "https://www.googleapis.com/auth/chat.messages" // ] // } @@ -7558,7 +7600,7 @@ type SpacesMessagesGetCall struct { // created it with the Chat REST API. That Chat app (but not others) // can pass the custom name to get, update, or delete the message. To // learn more, see [create and name a message] -// (https://developers.google.com/chat/api/guides/crudl/messages#name_a_created_message). +// (https://developers.google.com/chat/api/guides/v1/messages/create#name_a_created_message). func (r *SpacesMessagesService) Get(name string) *SpacesMessagesGetCall { c := &SpacesMessagesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -7673,7 +7715,7 @@ func (c *SpacesMessagesGetCall) Do(opts ...googleapi.CallOption) (*Message, erro // ], // "parameters": { // "name": { - // "description": "Required. Resource name of the message to retrieve. Format: `spaces/{space}/messages/{message}` If the message begins with `client-`, then it has a custom name assigned by a Chat app that created it with the Chat REST API. That Chat app (but not others) can pass the custom name to get, update, or delete the message. To learn more, see [create and name a message] (https://developers.google.com/chat/api/guides/crudl/messages#name_a_created_message).", + // "description": "Required. Resource name of the message to retrieve. Format: `spaces/{space}/messages/{message}` If the message begins with `client-`, then it has a custom name assigned by a Chat app that created it with the Chat REST API. That Chat app (but not others) can pass the custom name to get, update, or delete the message. To learn more, see [create and name a message] (https://developers.google.com/chat/api/guides/v1/messages/create#name_a_created_message).", // "location": "path", // "pattern": "^spaces/[^/]+/messages/[^/]+$", // "required": true, @@ -7934,6 +7976,7 @@ func (c *SpacesMessagesListCall) Do(opts ...googleapi.CallOption) (*ListMessages // "$ref": "ListMessagesResponse" // }, // "scopes": [ + // "https://www.googleapis.com/auth/chat.import", // "https://www.googleapis.com/auth/chat.messages", // "https://www.googleapis.com/auth/chat.messages.readonly" // ] @@ -8001,7 +8044,7 @@ func (r *SpacesMessagesService) Patch(name string, message *Message) *SpacesMess // and the message isn't found, a new message is created and // `updateMask` is ignored. The specified message ID must be // client-assigned -// (https://developers.google.com/chat/api/guides/crudl/messages#name_a_created_message) +// (https://developers.google.com/chat/api/guides/v1/messages/create#name_a_created_message) // or the request fails. func (c *SpacesMessagesPatchCall) AllowMissing(allowMissing bool) *SpacesMessagesPatchCall { c.urlParams_.Set("allowMissing", fmt.Sprint(allowMissing)) @@ -8120,7 +8163,7 @@ func (c *SpacesMessagesPatchCall) Do(opts ...googleapi.CallOption) (*Message, er // ], // "parameters": { // "allowMissing": { - // "description": "Optional. If `true` and the message isn't found, a new message is created and `updateMask` is ignored. The specified message ID must be [client-assigned](https://developers.google.com/chat/api/guides/crudl/messages#name_a_created_message) or the request fails.", + // "description": "Optional. If `true` and the message isn't found, a new message is created and `updateMask` is ignored. The specified message ID must be [client-assigned](https://developers.google.com/chat/api/guides/v1/messages/create#name_a_created_message) or the request fails.", // "location": "query", // "type": "boolean" // }, @@ -8147,6 +8190,7 @@ func (c *SpacesMessagesPatchCall) Do(opts ...googleapi.CallOption) (*Message, er // }, // "scopes": [ // "https://www.googleapis.com/auth/chat.bot", + // "https://www.googleapis.com/auth/chat.import", // "https://www.googleapis.com/auth/chat.messages" // ] // } @@ -8192,7 +8236,7 @@ func (r *SpacesMessagesService) Update(name string, message *Message) *SpacesMes // and the message isn't found, a new message is created and // `updateMask` is ignored. The specified message ID must be // client-assigned -// (https://developers.google.com/chat/api/guides/crudl/messages#name_a_created_message) +// (https://developers.google.com/chat/api/guides/v1/messages/create#name_a_created_message) // or the request fails. func (c *SpacesMessagesUpdateCall) AllowMissing(allowMissing bool) *SpacesMessagesUpdateCall { c.urlParams_.Set("allowMissing", fmt.Sprint(allowMissing)) @@ -8311,7 +8355,7 @@ func (c *SpacesMessagesUpdateCall) Do(opts ...googleapi.CallOption) (*Message, e // ], // "parameters": { // "allowMissing": { - // "description": "Optional. If `true` and the message isn't found, a new message is created and `updateMask` is ignored. The specified message ID must be [client-assigned](https://developers.google.com/chat/api/guides/crudl/messages#name_a_created_message) or the request fails.", + // "description": "Optional. If `true` and the message isn't found, a new message is created and `updateMask` is ignored. The specified message ID must be [client-assigned](https://developers.google.com/chat/api/guides/v1/messages/create#name_a_created_message) or the request fails.", // "location": "query", // "type": "boolean" // }, @@ -8338,6 +8382,7 @@ func (c *SpacesMessagesUpdateCall) Do(opts ...googleapi.CallOption) (*Message, e // }, // "scopes": [ // "https://www.googleapis.com/auth/chat.bot", + // "https://www.googleapis.com/auth/chat.import", // "https://www.googleapis.com/auth/chat.messages" // ] // } @@ -8641,6 +8686,7 @@ func (c *SpacesMessagesReactionsCreateCall) Do(opts ...googleapi.CallOption) (*R // "$ref": "Reaction" // }, // "scopes": [ + // "https://www.googleapis.com/auth/chat.import", // "https://www.googleapis.com/auth/chat.messages", // "https://www.googleapis.com/auth/chat.messages.reactions", // "https://www.googleapis.com/auth/chat.messages.reactions.create" @@ -8781,6 +8827,7 @@ func (c *SpacesMessagesReactionsDeleteCall) Do(opts ...googleapi.CallOption) (*E // "$ref": "Empty" // }, // "scopes": [ + // "https://www.googleapis.com/auth/chat.import", // "https://www.googleapis.com/auth/chat.messages", // "https://www.googleapis.com/auth/chat.messages.reactions" // ] diff --git a/chromemanagement/v1/chromemanagement-api.json b/chromemanagement/v1/chromemanagement-api.json index a57bd950c11..5f99037f619 100644 --- a/chromemanagement/v1/chromemanagement-api.json +++ b/chromemanagement/v1/chromemanagement-api.json @@ -668,7 +668,7 @@ ], "parameters": { "filter": { - "description": "Optional. Only include resources that match the filter. Supported filter fields: - device_id - user_id - device_org_unit_id - user_org_unit_id - timestamp - event_type The \"timestamp\" filter accepts either the Unix Epoch milliseconds format or the RFC3339 UTC \"Zulu\" format with nanosecond resolution and up to nine fractional digits. Both formats should be surrounded by simple double quotes. Examples: \"2014-10-02T15:01:23Z\", \"2014-10-02T15:01:23.045123456Z\", \"1679283943823\".", + "description": "Optional. Only include resources that match the filter. Although this parameter is currently optional, this parameter will be required- please specify at least 1 event type. Supported filter fields: - device_id - user_id - device_org_unit_id - user_org_unit_id - timestamp - event_type The \"timestamp\" filter accepts either the Unix Epoch milliseconds format or the RFC3339 UTC \"Zulu\" format with nanosecond resolution and up to nine fractional digits. Both formats should be surrounded by simple double quotes. Examples: \"2014-10-02T15:01:23Z\", \"2014-10-02T15:01:23.045123456Z\", \"1679283943823\".", "location": "query", "type": "string" }, @@ -691,7 +691,7 @@ "type": "string" }, "readMask": { - "description": "Required. Read mask to specify which fields to return.", + "description": "Required. Read mask to specify which fields to return. Although currently required, this field will become optional, while the filter parameter with an event type will be come required.", "format": "google-fieldmask", "location": "query", "type": "string" @@ -794,7 +794,7 @@ } } }, - "revision": "20230516", + "revision": "20230625", "rootUrl": "https://chromemanagement.googleapis.com/", "schemas": { "GoogleChromeManagementV1AndroidAppInfo": { diff --git a/chromemanagement/v1/chromemanagement-gen.go b/chromemanagement/v1/chromemanagement-gen.go index 4d632d0e637..49cc325285b 100644 --- a/chromemanagement/v1/chromemanagement-gen.go +++ b/chromemanagement/v1/chromemanagement-gen.go @@ -6137,8 +6137,10 @@ func (r *CustomersTelemetryEventsService) List(parent string) *CustomersTelemetr } // Filter sets the optional parameter "filter": Only include resources -// that match the filter. Supported filter fields: - device_id - user_id -// - device_org_unit_id - user_org_unit_id - timestamp - event_type The +// that match the filter. Although this parameter is currently optional, +// this parameter will be required- please specify at least 1 event +// type. Supported filter fields: - device_id - user_id - +// device_org_unit_id - user_org_unit_id - timestamp - event_type The // "timestamp" filter accepts either the Unix Epoch milliseconds format // or the RFC3339 UTC "Zulu" format with nanosecond resolution and up to // nine fractional digits. Both formats should be surrounded by simple @@ -6164,7 +6166,9 @@ func (c *CustomersTelemetryEventsListCall) PageToken(pageToken string) *Customer } // ReadMask sets the optional parameter "readMask": Required. Read mask -// to specify which fields to return. +// to specify which fields to return. Although currently required, this +// field will become optional, while the filter parameter with an event +// type will be come required. func (c *CustomersTelemetryEventsListCall) ReadMask(readMask string) *CustomersTelemetryEventsListCall { c.urlParams_.Set("readMask", readMask) return c @@ -6280,7 +6284,7 @@ func (c *CustomersTelemetryEventsListCall) Do(opts ...googleapi.CallOption) (*Go // ], // "parameters": { // "filter": { - // "description": "Optional. Only include resources that match the filter. Supported filter fields: - device_id - user_id - device_org_unit_id - user_org_unit_id - timestamp - event_type The \"timestamp\" filter accepts either the Unix Epoch milliseconds format or the RFC3339 UTC \"Zulu\" format with nanosecond resolution and up to nine fractional digits. Both formats should be surrounded by simple double quotes. Examples: \"2014-10-02T15:01:23Z\", \"2014-10-02T15:01:23.045123456Z\", \"1679283943823\".", + // "description": "Optional. Only include resources that match the filter. Although this parameter is currently optional, this parameter will be required- please specify at least 1 event type. Supported filter fields: - device_id - user_id - device_org_unit_id - user_org_unit_id - timestamp - event_type The \"timestamp\" filter accepts either the Unix Epoch milliseconds format or the RFC3339 UTC \"Zulu\" format with nanosecond resolution and up to nine fractional digits. Both formats should be surrounded by simple double quotes. Examples: \"2014-10-02T15:01:23Z\", \"2014-10-02T15:01:23.045123456Z\", \"1679283943823\".", // "location": "query", // "type": "string" // }, @@ -6303,7 +6307,7 @@ func (c *CustomersTelemetryEventsListCall) Do(opts ...googleapi.CallOption) (*Go // "type": "string" // }, // "readMask": { - // "description": "Required. Read mask to specify which fields to return.", + // "description": "Required. Read mask to specify which fields to return. Although currently required, this field will become optional, while the filter parameter with an event type will be come required.", // "format": "google-fieldmask", // "location": "query", // "type": "string" diff --git a/classroom/v1/classroom-api.json b/classroom/v1/classroom-api.json index 63fc905c3df..d645bf40c3b 100644 --- a/classroom/v1/classroom-api.json +++ b/classroom/v1/classroom-api.json @@ -1383,7 +1383,7 @@ "enumDescriptions": [ "No state specified. This is never returned.", "Status for course work material that has been published. This is the default state.", - "Status for an course work material that is not yet published. Course work material in this state is visible only to course teachers and domain administrators.", + "Status for a course work material that is not yet published. Course work material in this state is visible only to course teachers and domain administrators.", "Status for course work material that was published but is now deleted. Course work material in this state is visible only to course teachers and domain administrators. Course work material in this state is deleted after some time." ], "location": "query", @@ -2400,7 +2400,7 @@ } } }, - "revision": "20230524", + "revision": "20230620", "rootUrl": "https://classroom.googleapis.com/", "schemas": { "Announcement": { @@ -2943,7 +2943,7 @@ "enumDescriptions": [ "No state specified. This is never returned.", "Status for course work material that has been published. This is the default state.", - "Status for an course work material that is not yet published. Course work material in this state is visible only to course teachers and domain administrators.", + "Status for a course work material that is not yet published. Course work material in this state is visible only to course teachers and domain administrators.", "Status for course work material that was published but is now deleted. Course work material in this state is visible only to course teachers and domain administrators. Course work material in this state is deleted after some time." ], "type": "string" diff --git a/classroom/v1/classroom-gen.go b/classroom/v1/classroom-gen.go index 0041a85caf6..12b594eae03 100644 --- a/classroom/v1/classroom-gen.go +++ b/classroom/v1/classroom-gen.go @@ -1202,7 +1202,7 @@ type CourseWorkMaterial struct { // is never returned. // "PUBLISHED" - Status for course work material that has been // published. This is the default state. - // "DRAFT" - Status for an course work material that is not yet + // "DRAFT" - Status for a course work material that is not yet // published. Course work material in this state is visible only to // course teachers and domain administrators. // "DELETED" - Status for course work material that was published but @@ -8807,7 +8807,7 @@ func (r *CoursesCourseWorkMaterialsService) List(courseId string) *CoursesCourse // // published. This is the default state. // -// "DRAFT" - Status for an course work material that is not yet +// "DRAFT" - Status for a course work material that is not yet // // published. Course work material in this state is visible only to // course teachers and domain administrators. @@ -8993,7 +8993,7 @@ func (c *CoursesCourseWorkMaterialsListCall) Do(opts ...googleapi.CallOption) (* // "enumDescriptions": [ // "No state specified. This is never returned.", // "Status for course work material that has been published. This is the default state.", - // "Status for an course work material that is not yet published. Course work material in this state is visible only to course teachers and domain administrators.", + // "Status for a course work material that is not yet published. Course work material in this state is visible only to course teachers and domain administrators.", // "Status for course work material that was published but is now deleted. Course work material in this state is visible only to course teachers and domain administrators. Course work material in this state is deleted after some time." // ], // "location": "query", diff --git a/cloudresourcemanager/v1beta1/cloudresourcemanager-api.json b/cloudresourcemanager/v1beta1/cloudresourcemanager-api.json index 5ca88de4195..06dc82f7b9b 100644 --- a/cloudresourcemanager/v1beta1/cloudresourcemanager-api.json +++ b/cloudresourcemanager/v1beta1/cloudresourcemanager-api.json @@ -568,7 +568,7 @@ } } }, - "revision": "20230514", + "revision": "20230625", "rootUrl": "https://cloudresourcemanager.googleapis.com/", "schemas": { "Ancestor": { @@ -1040,6 +1040,7 @@ "type": "string" }, "organizationId": { + "deprecated": true, "description": "An immutable id for the Organization that is assigned on creation. This should be omitted when creating a new Organization. This field is read-only.", "type": "string" }, diff --git a/compute/v0.beta/compute-api.json b/compute/v0.beta/compute-api.json index 3d3c99d5358..f6e65cbaf5f 100644 --- a/compute/v0.beta/compute-api.json +++ b/compute/v0.beta/compute-api.json @@ -12550,56 +12550,6 @@ "https://www.googleapis.com/auth/compute" ] }, - "export": { - "description": "Export the changed blocks between two instant snapshots to a customer's bucket in the user specified format.", - "flatPath": "projects/{project}/zones/{zone}/instantSnapshots/{instantSnapshot}/export", - "httpMethod": "POST", - "id": "compute.instantSnapshots.export", - "parameterOrder": [ - "project", - "zone", - "instantSnapshot" - ], - "parameters": { - "instantSnapshot": { - "description": "Name of the instant snapshot to export.", - "location": "path", - "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}", - "required": true, - "type": "string" - }, - "project": { - "description": "Project ID for this request.", - "location": "path", - "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))", - "required": true, - "type": "string" - }, - "requestId": { - "description": "An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).", - "location": "query", - "type": "string" - }, - "zone": { - "description": "The name of the zone for this request.", - "location": "path", - "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", - "required": true, - "type": "string" - } - }, - "path": "projects/{project}/zones/{zone}/instantSnapshots/{instantSnapshot}/export", - "request": { - "$ref": "InstantSnapshotsExportRequest" - }, - "response": { - "$ref": "Operation" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/compute" - ] - }, "get": { "description": "Returns the specified InstantSnapshot resource in the specified zone.", "flatPath": "projects/{project}/zones/{zone}/instantSnapshots/{instantSnapshot}", @@ -24743,56 +24693,6 @@ "https://www.googleapis.com/auth/compute" ] }, - "export": { - "description": "Export the changed blocks between two instant snapshots to a customer's bucket in the user specified format.", - "flatPath": "projects/{project}/regions/{region}/instantSnapshots/{instantSnapshot}/export", - "httpMethod": "POST", - "id": "compute.regionInstantSnapshots.export", - "parameterOrder": [ - "project", - "region", - "instantSnapshot" - ], - "parameters": { - "instantSnapshot": { - "description": "Name of the instant snapshot to export.", - "location": "path", - "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}", - "required": true, - "type": "string" - }, - "project": { - "description": "Project ID for this request.", - "location": "path", - "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))", - "required": true, - "type": "string" - }, - "region": { - "description": "The name of the zone for this request.", - "location": "path", - "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", - "required": true, - "type": "string" - }, - "requestId": { - "description": "An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).", - "location": "query", - "type": "string" - } - }, - "path": "projects/{project}/regions/{region}/instantSnapshots/{instantSnapshot}/export", - "request": { - "$ref": "RegionInstantSnapshotsExportRequest" - }, - "response": { - "$ref": "Operation" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/compute" - ] - }, "get": { "description": "Returns the specified InstantSnapshot resource in the specified region.", "flatPath": "projects/{project}/regions/{region}/instantSnapshots/{instantSnapshot}", @@ -26958,6 +26858,12 @@ "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}", "required": true, "type": "string" + }, + "updateMask": { + "description": "Indicates fields to be cleared as part of this request.", + "format": "google-fieldmask", + "location": "query", + "type": "string" } }, "path": "projects/{project}/regions/{region}/securityPolicies/{securityPolicy}", @@ -27010,6 +26916,12 @@ "required": true, "type": "string" }, + "updateMask": { + "description": "Indicates fields to be cleared as part of this request.", + "format": "google-fieldmask", + "location": "query", + "type": "string" + }, "validateOnly": { "description": "If true, the request will not be committed.", "location": "query", @@ -31283,6 +31195,12 @@ "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}", "required": true, "type": "string" + }, + "updateMask": { + "description": "Indicates fields to be cleared as part of this request.", + "format": "google-fieldmask", + "location": "query", + "type": "string" } }, "path": "projects/{project}/global/securityPolicies/{securityPolicy}", @@ -38179,7 +38097,7 @@ } } }, - "revision": "20230606", + "revision": "20230620", "rootUrl": "https://compute.googleapis.com/", "schemas": { "AWSV4Signature": { @@ -38728,7 +38646,7 @@ "type": "string" }, "ipVersion": { - "description": "The IP version that will be used by this address. Valid options are IPV4 or IPV6. This can only be specified for a global address.", + "description": "The IP version that will be used by this address. Valid options are IPV4 or IPV6.", "enum": [ "IPV4", "IPV6", @@ -39637,6 +39555,10 @@ "$ref": "CustomerEncryptionKey", "description": "The customer-supplied encryption key of the source image. Required if the source image is protected by a customer-supplied encryption key. InstanceTemplate and InstancePropertiesPatch do not store customer-supplied encryption keys, so you cannot create disks for instances in a managed instance group if the source images are encrypted with your own keys." }, + "sourceInstantSnapshot": { + "description": "The source instant-snapshot to create this disk. When creating a new instance, one of initializeParams.sourceSnapshot or initializeParams.sourceInstantSnapshot initializeParams.sourceImage or disks.source is required except for local SSD. To create a disk with a snapshot that you created, specify the snapshot name in the following format: us-central1-a/instantSnapshots/my-backup If the source instant-snapshot is deleted later, this field will not be set.", + "type": "string" + }, "sourceSnapshot": { "description": "The source snapshot to create this disk. When creating a new instance, one of initializeParams.sourceSnapshot or initializeParams.sourceImage or disks.source is required except for local SSD. To create a disk with a snapshot that you created, specify the snapshot name in the following format: global/snapshots/my-backup If the source snapshot is deleted later, this field will not be set.", "type": "string" @@ -40512,6 +40434,20 @@ "description": "Optional parameter to define a target capacity for the UTILIZATION balancing mode. The valid range is [0.0, 1.0]. For usage guidelines, see Utilization balancing mode.", "format": "float", "type": "number" + }, + "preference": { + "description": "This field indicates whether this backend should be fully utilized before sending traffic to backends with default preference. The possible values are: - PREFERRED: Backends with this preference level will be filled up to their capacity limits first, based on RTT. - DEFAULT: If preferred backends don't have enough capacity, backends in this layer would be used and traffic would be assigned based on the load balancing algorithm you use. This is the default ", + "enum": [ + "DEFAULT", + "PREFERENCE_UNSPECIFIED", + "PREFERRED" + ], + "enumDescriptions": [ + "No preference.", + "If preference is unspecified, we set it to the DEFAULT value", + "Traffic will be sent to this backend first." + ], + "type": "string" } }, "type": "object" @@ -41078,6 +41014,10 @@ }, "type": "array" }, + "serviceLbPolicy": { + "description": "URL to networkservices.ServiceLbPolicy resource. Can only be set if load balancing scheme is EXTERNAL, EXTERNAL_MANAGED, INTERNAL_MANAGED or INTERNAL_SELF_MANAGED and the scope is global.", + "type": "string" + }, "sessionAffinity": { "description": "Type of session affinity to use. The default is NONE. Only NONE and HEADER_FIELD are supported when the backend service is referenced by a URL map that is bound to target gRPC proxy that has validateForProxyless field set to true. For more details, see: [Session Affinity](https://cloud.google.com/load-balancing/docs/backend-service#session_affinity).", "enum": [ @@ -42130,6 +42070,48 @@ }, "type": "object" }, + "BulkInsertOperationStatus": { + "id": "BulkInsertOperationStatus", + "properties": { + "createdVmCount": { + "description": "[Output Only] Count of VMs successfully created so far.", + "format": "int32", + "type": "integer" + }, + "deletedVmCount": { + "description": "[Output Only] Count of VMs that got deleted during rollback.", + "format": "int32", + "type": "integer" + }, + "failedToCreateVmCount": { + "description": "[Output Only] Count of VMs that started creating but encountered an error.", + "format": "int32", + "type": "integer" + }, + "status": { + "description": "[Output Only] Creation status of BulkInsert operation - information if the flow is rolling forward or rolling back.", + "enum": [ + "CREATING", + "DONE", + "ROLLING_BACK", + "STATUS_UNSPECIFIED" + ], + "enumDescriptions": [ + "Rolling forward - creating VMs.", + "Done", + "Rolling back - cleaning up after an error.", + "" + ], + "type": "string" + }, + "targetVmCount": { + "description": "[Output Only] Count of VMs originally planned to be created.", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, "BundledLocalSsds": { "id": "BundledLocalSsds", "properties": { @@ -45675,7 +45657,7 @@ "type": "boolean" }, "allowGlobalAccess": { - "description": "This field is used along with the backend_service field for internal load balancing or with the target field for internal TargetInstance. If the field is set to TRUE, clients can access ILB from all regions. Otherwise only allows access from clients in the same region as the internal load balancer.", + "description": "This field is used along with the backend_service field for internal load balancing or with the target field for internal TargetInstance. If set to true, clients can access the Internal TCP/UDP Load Balancer, Internal HTTP(S) and TCP Proxy Load Balancer from all regions. If false, only allows access from the local region the load balancer is located at. Note that for INTERNAL_MANAGED forwarding rules, this field cannot be changed after the forwarding rule is created.", "type": "boolean" }, "allowPscGlobalAccess": { @@ -49851,6 +49833,18 @@ "InstanceGroupManagerInstanceLifecyclePolicy": { "id": "InstanceGroupManagerInstanceLifecyclePolicy", "properties": { + "defaultActionOnFailure": { + "description": "The action that a MIG performs on a failed or an unhealthy VM. A VM is marked as unhealthy when the application running on that VM fails a health check. Valid values are - REPAIR (default): MIG automatically repairs a failed or an unhealthy VM by recreating it. For more information, see About repairing VMs in a MIG. - DO_NOTHING: MIG does not repair a failed or an unhealthy VM. ", + "enum": [ + "DO_NOTHING", + "REPAIR" + ], + "enumDescriptions": [ + "MIG does not repair a failed or an unhealthy VM.", + "(Default) MIG automatically repairs a failed or an unhealthy VM by recreating it. For more information, see About repairing VMs in a MIG." + ], + "type": "string" + }, "forceUpdateOnRepair": { "description": "A bit indicating whether to forcefully apply the group's latest configuration when repairing a VM. Valid options are: - NO (default): If configuration updates are available, they are not forcefully applied during repair. Instead, configuration updates are applied according to the group's update policy. - YES: If configuration updates are available, they are applied during repair. ", "enum": [ @@ -50104,14 +50098,14 @@ ], "enumDescriptions": [ "Do not perform any action.", - "Updates applied in runtime, instances will not be disrupted.", - "Old instances will be deleted. New instances will be created from the target template.", - "Every instance will be restarted." + "Do not stop the instance.", + "(Default.) Replace the instance according to the replacement method option.", + "Stop the instance and start it again." ], "type": "string" }, "mostDisruptiveAllowedAction": { - "description": "Most disruptive action that is allowed to be taken on an instance. You can specify either NONE to forbid any actions, REFRESH to allow actions that do not need instance restart, RESTART to allow actions that can be applied without instance replacing or REPLACE to allow all possible actions. If the Updater determines that the minimal update action needed is more disruptive than most disruptive allowed action you specify it will not perform the update at all.", + "description": "Most disruptive action that is allowed to be taken on an instance. You can specify either NONE to forbid any actions, REFRESH to avoid restarting the VM and to limit disruption as much as possible. RESTART to allow actions that can be applied without instance replacing or REPLACE to allow all possible actions. If the Updater determines that the minimal update action needed is more disruptive than most disruptive allowed action you specify it will not perform the update at all.", "enum": [ "NONE", "REFRESH", @@ -50120,9 +50114,9 @@ ], "enumDescriptions": [ "Do not perform any action.", - "Updates applied in runtime, instances will not be disrupted.", - "Old instances will be deleted. New instances will be created from the target template.", - "Every instance will be restarted." + "Do not stop the instance.", + "(Default.) Replace the instance according to the replacement method option.", + "Stop the instance and start it again." ], "type": "string" }, @@ -50200,7 +50194,7 @@ "type": "array" }, "minimalAction": { - "description": "The minimal action that you want to perform on each instance during the update: - REPLACE: At minimum, delete the instance and create it again. - RESTART: Stop the instance and start it again. - REFRESH: Do not stop the instance. - NONE: Do not disrupt the instance at all. By default, the minimum action is NONE. If your update requires a more disruptive action than you set with this flag, the necessary action is performed to execute the update.", + "description": "The minimal action that you want to perform on each instance during the update: - REPLACE: At minimum, delete the instance and create it again. - RESTART: Stop the instance and start it again. - REFRESH: Do not stop the instance and limit disruption as much as possible. - NONE: Do not disrupt the instance at all. By default, the minimum action is NONE. If your update requires a more disruptive action than you set with this flag, the necessary action is performed to execute the update.", "enum": [ "NONE", "REFRESH", @@ -50209,14 +50203,14 @@ ], "enumDescriptions": [ "Do not perform any action.", - "Updates applied in runtime, instances will not be disrupted.", - "Old instances will be deleted. New instances will be created from the target template.", - "Every instance will be restarted." + "Do not stop the instance.", + "(Default.) Replace the instance according to the replacement method option.", + "Stop the instance and start it again." ], "type": "string" }, "mostDisruptiveAllowedAction": { - "description": "The most disruptive action that you want to perform on each instance during the update: - REPLACE: Delete the instance and create it again. - RESTART: Stop the instance and start it again. - REFRESH: Do not stop the instance. - NONE: Do not disrupt the instance at all. By default, the most disruptive allowed action is REPLACE. If your update requires a more disruptive action than you set with this flag, the update request will fail.", + "description": "The most disruptive action that you want to perform on each instance during the update: - REPLACE: Delete the instance and create it again. - RESTART: Stop the instance and start it again. - REFRESH: Do not stop the instance and limit disruption as much as possible. - NONE: Do not disrupt the instance at all. By default, the most disruptive allowed action is REPLACE. If your update requires a more disruptive action than you set with this flag, the update request will fail.", "enum": [ "NONE", "REFRESH", @@ -50225,9 +50219,9 @@ ], "enumDescriptions": [ "Do not perform any action.", - "Updates applied in runtime, instances will not be disrupted.", - "Old instances will be deleted. New instances will be created from the target template.", - "Every instance will be restarted." + "Do not stop the instance.", + "(Default.) Replace the instance according to the replacement method option.", + "Stop the instance and start it again." ], "type": "string" } @@ -51911,6 +51905,19 @@ }, "type": "object" }, + "InstancesBulkInsertOperationMetadata": { + "id": "InstancesBulkInsertOperationMetadata", + "properties": { + "perLocationStatus": { + "additionalProperties": { + "$ref": "BulkInsertOperationStatus" + }, + "description": "Status information per location (location name is key). Example key: zones/us-central1-a", + "type": "object" + } + }, + "type": "object" + }, "InstancesGetEffectiveFirewallsResponse": { "id": "InstancesGetEffectiveFirewallsResponse", "properties": { @@ -52481,42 +52488,6 @@ }, "type": "object" }, - "InstantSnapshotExportParams": { - "id": "InstantSnapshotExportParams", - "properties": { - "baseInstantSnapshot": { - "description": "An optional base instant snapshot that this resource is compared against. If not specified, all blocks of this resource are exported. The base instant snapshot and this resource must be created from the same disk. The base instant snapshot must be created earlier in time than this resource.", - "type": "string" - }, - "bucketName": { - "description": "The name of an existing bucket in Cloud Storage where the changed blocks will be stored. The Google Service Account must have read and write access to this bucket. The bucket has to be in the same region as this resource.", - "type": "string" - }, - "encryptionKey": { - "$ref": "CustomerEncryptionKey", - "description": "Encryption key used to encrypt the instant snapshot." - }, - "objectName": { - "description": "Name of the output Bigstore object storing the changed blocks. Object name must be less than 1024 bytes in length.", - "type": "string" - }, - "outputType": { - "description": "The format of the output file.", - "enum": [ - "INVALID", - "METADATA_AND_DATA", - "METADATA_ONLY" - ], - "enumDescriptions": [ - "", - "", - "" - ], - "type": "string" - } - }, - "type": "object" - }, "InstantSnapshotList": { "description": "Contains a list of InstantSnapshot resources.", "id": "InstantSnapshotList", @@ -52650,16 +52621,6 @@ }, "type": "object" }, - "InstantSnapshotsExportRequest": { - "id": "InstantSnapshotsExportRequest", - "properties": { - "exportParams": { - "$ref": "InstantSnapshotExportParams", - "description": "Parameters to export the changed blocks." - } - }, - "type": "object" - }, "InstantSnapshotsScopedList": { "id": "InstantSnapshotsScopedList", "properties": { @@ -60199,6 +60160,9 @@ "description": "[Output Only] The time that this operation was requested. This value is in RFC3339 text format.", "type": "string" }, + "instancesBulkInsertOperationMetadata": { + "$ref": "InstancesBulkInsertOperationMetadata" + }, "kind": { "default": "compute#operation", "description": "[Output Only] Type of the resource. Always `compute#operation` for Operation resources.", @@ -61875,7 +61839,7 @@ "type": "string" }, "dnsVerificationIp": { - "description": "The IPv4 address to be used for reverse DNS verification.", + "description": "The address to be used for reverse DNS verification.", "type": "string" }, "fingerprint": { @@ -61889,7 +61853,7 @@ "type": "string" }, "ipCidrRange": { - "description": "The IPv4 address range, in CIDR format, represented by this public advertised prefix.", + "description": "The address range, in CIDR format, represented by this public advertised prefix.", "type": "string" }, "kind": { @@ -62118,7 +62082,7 @@ "type": "string" }, "ipCidrRange": { - "description": "The IPv4 address range, in CIDR format, represented by this public delegated prefix.", + "description": "The IP address range, in CIDR format, represented by this public delegated prefix.", "type": "string" }, "isLiveMigration": { @@ -62441,7 +62405,7 @@ "type": "string" }, "ipCidrRange": { - "description": "The IPv4 address range, in CIDR format, represented by this sub public delegated prefix.", + "description": "The IP address range, in CIDR format, represented by this sub public delegated prefix.", "type": "string" }, "isAddress": { @@ -63654,7 +63618,7 @@ "type": "array" }, "minimalAction": { - "description": "The minimal action that you want to perform on each instance during the update: - REPLACE: At minimum, delete the instance and create it again. - RESTART: Stop the instance and start it again. - REFRESH: Do not stop the instance. - NONE: Do not disrupt the instance at all. By default, the minimum action is NONE. If your update requires a more disruptive action than you set with this flag, the necessary action is performed to execute the update.", + "description": "The minimal action that you want to perform on each instance during the update: - REPLACE: At minimum, delete the instance and create it again. - RESTART: Stop the instance and start it again. - REFRESH: Do not stop the instance and limit disruption as much as possible. - NONE: Do not disrupt the instance at all. By default, the minimum action is NONE. If your update requires a more disruptive action than you set with this flag, the necessary action is performed to execute the update.", "enum": [ "NONE", "REFRESH", @@ -63663,14 +63627,14 @@ ], "enumDescriptions": [ "Do not perform any action.", - "Updates applied in runtime, instances will not be disrupted.", - "Old instances will be deleted. New instances will be created from the target template.", - "Every instance will be restarted." + "Do not stop the instance.", + "(Default.) Replace the instance according to the replacement method option.", + "Stop the instance and start it again." ], "type": "string" }, "mostDisruptiveAllowedAction": { - "description": "The most disruptive action that you want to perform on each instance during the update: - REPLACE: Delete the instance and create it again. - RESTART: Stop the instance and start it again. - REFRESH: Do not stop the instance. - NONE: Do not disrupt the instance at all. By default, the most disruptive allowed action is REPLACE. If your update requires a more disruptive action than you set with this flag, the update request will fail.", + "description": "The most disruptive action that you want to perform on each instance during the update: - REPLACE: Delete the instance and create it again. - RESTART: Stop the instance and start it again. - REFRESH: Do not stop the instance and limit disruption as much as possible. - NONE: Do not disrupt the instance at all. By default, the most disruptive allowed action is REPLACE. If your update requires a more disruptive action than you set with this flag, the update request will fail.", "enum": [ "NONE", "REFRESH", @@ -63679,9 +63643,9 @@ ], "enumDescriptions": [ "Do not perform any action.", - "Updates applied in runtime, instances will not be disrupted.", - "Old instances will be deleted. New instances will be created from the target template.", - "Every instance will be restarted." + "Do not stop the instance.", + "(Default.) Replace the instance according to the replacement method option.", + "Stop the instance and start it again." ], "type": "string" } @@ -64091,16 +64055,6 @@ }, "type": "object" }, - "RegionInstantSnapshotsExportRequest": { - "id": "RegionInstantSnapshotsExportRequest", - "properties": { - "exportParams": { - "$ref": "InstantSnapshotExportParams", - "description": "Parameters to export the changed blocks." - } - }, - "type": "object" - }, "RegionList": { "description": "Contains a list of region resources.", "id": "RegionList", @@ -69881,6 +69835,13 @@ "description": "[Input Only] Whether to attempt an application consistent snapshot by informing the OS to prepare for the snapshot process.", "type": "boolean" }, + "guestOsFeatures": { + "description": "[Output Only] A list of features to enable on the guest operating system. Applicable only for bootable images. Read Enabling guest operating system features to see a list of available options.", + "items": { + "$ref": "GuestOsFeature" + }, + "type": "array" + }, "id": { "description": "[Output Only] The unique identifier for the resource. This identifier is defined by the server.", "format": "uint64", diff --git a/compute/v0.beta/compute-gen.go b/compute/v0.beta/compute-gen.go index 010228e6d36..00d0117b94a 100644 --- a/compute/v0.beta/compute-gen.go +++ b/compute/v0.beta/compute-gen.go @@ -2157,8 +2157,7 @@ type Address struct { Id uint64 `json:"id,omitempty,string"` // IpVersion: The IP version that will be used by this address. Valid - // options are IPV4 or IPV6. This can only be specified for a global - // address. + // options are IPV4 or IPV6. // // Possible values: // "IPV4" @@ -3505,6 +3504,16 @@ type AttachedDiskInitializeParams struct { // group if the source images are encrypted with your own keys. SourceImageEncryptionKey *CustomerEncryptionKey `json:"sourceImageEncryptionKey,omitempty"` + // SourceInstantSnapshot: The source instant-snapshot to create this + // disk. When creating a new instance, one of + // initializeParams.sourceSnapshot or + // initializeParams.sourceInstantSnapshot initializeParams.sourceImage + // or disks.source is required except for local SSD. To create a disk + // with a snapshot that you created, specify the snapshot name in the + // following format: us-central1-a/instantSnapshots/my-backup If the + // source instant-snapshot is deleted later, this field will not be set. + SourceInstantSnapshot string `json:"sourceInstantSnapshot,omitempty"` + // SourceSnapshot: The source snapshot to create this disk. When // creating a new instance, one of initializeParams.sourceSnapshot or // initializeParams.sourceImage or disks.source is required except for @@ -5033,6 +5042,21 @@ type Backend struct { // usage guidelines, see Utilization balancing mode. MaxUtilization float64 `json:"maxUtilization,omitempty"` + // Preference: This field indicates whether this backend should be fully + // utilized before sending traffic to backends with default preference. + // The possible values are: - PREFERRED: Backends with this preference + // level will be filled up to their capacity limits first, based on RTT. + // - DEFAULT: If preferred backends don't have enough capacity, backends + // in this layer would be used and traffic would be assigned based on + // the load balancing algorithm you use. This is the default + // + // Possible values: + // "DEFAULT" - No preference. + // "PREFERENCE_UNSPECIFIED" - If preference is unspecified, we set it + // to the DEFAULT value + // "PREFERRED" - Traffic will be sent to this backend first. + Preference string `json:"preference,omitempty"` + // ForceSendFields is a list of field names (e.g. "BalancingMode") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any @@ -5944,6 +5968,11 @@ type BackendService struct { // set, lists of backends and health checks must be both empty. ServiceBindings []string `json:"serviceBindings,omitempty"` + // ServiceLbPolicy: URL to networkservices.ServiceLbPolicy resource. Can + // only be set if load balancing scheme is EXTERNAL, EXTERNAL_MANAGED, + // INTERNAL_MANAGED or INTERNAL_SELF_MANAGED and the scope is global. + ServiceLbPolicy string `json:"serviceLbPolicy,omitempty"` + // SessionAffinity: Type of session affinity to use. The default is // NONE. Only NONE and HEADER_FIELD are supported when the backend // service is referenced by a URL map that is bound to target gRPC proxy @@ -7771,6 +7800,57 @@ func (s *BulkInsertInstanceResourcePerInstanceProperties) MarshalJSON() ([]byte, return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +type BulkInsertOperationStatus struct { + // CreatedVmCount: [Output Only] Count of VMs successfully created so + // far. + CreatedVmCount int64 `json:"createdVmCount,omitempty"` + + // DeletedVmCount: [Output Only] Count of VMs that got deleted during + // rollback. + DeletedVmCount int64 `json:"deletedVmCount,omitempty"` + + // FailedToCreateVmCount: [Output Only] Count of VMs that started + // creating but encountered an error. + FailedToCreateVmCount int64 `json:"failedToCreateVmCount,omitempty"` + + // Status: [Output Only] Creation status of BulkInsert operation - + // information if the flow is rolling forward or rolling back. + // + // Possible values: + // "CREATING" - Rolling forward - creating VMs. + // "DONE" - Done + // "ROLLING_BACK" - Rolling back - cleaning up after an error. + // "STATUS_UNSPECIFIED" + Status string `json:"status,omitempty"` + + // TargetVmCount: [Output Only] Count of VMs originally planned to be + // created. + TargetVmCount int64 `json:"targetVmCount,omitempty"` + + // ForceSendFields is a list of field names (e.g. "CreatedVmCount") 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. "CreatedVmCount") 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 *BulkInsertOperationStatus) MarshalJSON() ([]byte, error) { + type NoMethod BulkInsertOperationStatus + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + type BundledLocalSsds struct { // DefaultInterface: The default disk interface if the interface is not // specified. @@ -13425,9 +13505,12 @@ type ForwardingRule struct { // AllowGlobalAccess: This field is used along with the backend_service // field for internal load balancing or with the target field for - // internal TargetInstance. If the field is set to TRUE, clients can - // access ILB from all regions. Otherwise only allows access from - // clients in the same region as the internal load balancer. + // internal TargetInstance. If set to true, clients can access the + // Internal TCP/UDP Load Balancer, Internal HTTP(S) and TCP Proxy Load + // Balancer from all regions. If false, only allows access from the + // local region the load balancer is located at. Note that for + // INTERNAL_MANAGED forwarding rules, this field cannot be changed after + // the forwarding rule is created. AllowGlobalAccess bool `json:"allowGlobalAccess,omitempty"` // AllowPscGlobalAccess: This is used in PSC consumer ForwardingRule to @@ -20047,6 +20130,20 @@ func (s *InstanceGroupManagerAutoHealingPolicy) MarshalJSON() ([]byte, error) { } type InstanceGroupManagerInstanceLifecyclePolicy struct { + // DefaultActionOnFailure: The action that a MIG performs on a failed or + // an unhealthy VM. A VM is marked as unhealthy when the application + // running on that VM fails a health check. Valid values are - REPAIR + // (default): MIG automatically repairs a failed or an unhealthy VM by + // recreating it. For more information, see About repairing VMs in a + // MIG. - DO_NOTHING: MIG does not repair a failed or an unhealthy VM. + // + // Possible values: + // "DO_NOTHING" - MIG does not repair a failed or an unhealthy VM. + // "REPAIR" - (Default) MIG automatically repairs a failed or an + // unhealthy VM by recreating it. For more information, see About + // repairing VMs in a MIG. + DefaultActionOnFailure string `json:"defaultActionOnFailure,omitempty"` + // ForceUpdateOnRepair: A bit indicating whether to forcefully apply the // group's latest configuration when repairing a VM. Valid options are: // - NO (default): If configuration updates are available, they are not @@ -20059,18 +20156,19 @@ type InstanceGroupManagerInstanceLifecyclePolicy struct { // "YES" ForceUpdateOnRepair string `json:"forceUpdateOnRepair,omitempty"` - // ForceSendFields is a list of field names (e.g. "ForceUpdateOnRepair") - // 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 is a list of field names (e.g. + // "DefaultActionOnFailure") 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. "ForceUpdateOnRepair") 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. "DefaultActionOnFailure") + // 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. @@ -20526,29 +20624,27 @@ type InstanceGroupManagerUpdatePolicy struct { // // Possible values: // "NONE" - Do not perform any action. - // "REFRESH" - Updates applied in runtime, instances will not be - // disrupted. - // "REPLACE" - Old instances will be deleted. New instances will be - // created from the target template. - // "RESTART" - Every instance will be restarted. + // "REFRESH" - Do not stop the instance. + // "REPLACE" - (Default.) Replace the instance according to the + // replacement method option. + // "RESTART" - Stop the instance and start it again. MinimalAction string `json:"minimalAction,omitempty"` // MostDisruptiveAllowedAction: Most disruptive action that is allowed // to be taken on an instance. You can specify either NONE to forbid any - // actions, REFRESH to allow actions that do not need instance restart, - // RESTART to allow actions that can be applied without instance - // replacing or REPLACE to allow all possible actions. If the Updater - // determines that the minimal update action needed is more disruptive - // than most disruptive allowed action you specify it will not perform - // the update at all. + // actions, REFRESH to avoid restarting the VM and to limit disruption + // as much as possible. RESTART to allow actions that can be applied + // without instance replacing or REPLACE to allow all possible actions. + // If the Updater determines that the minimal update action needed is + // more disruptive than most disruptive allowed action you specify it + // will not perform the update at all. // // Possible values: // "NONE" - Do not perform any action. - // "REFRESH" - Updates applied in runtime, instances will not be - // disrupted. - // "REPLACE" - Old instances will be deleted. New instances will be - // created from the target template. - // "RESTART" - Every instance will be restarted. + // "REFRESH" - Do not stop the instance. + // "REPLACE" - (Default.) Replace the instance according to the + // replacement method option. + // "RESTART" - Stop the instance and start it again. MostDisruptiveAllowedAction string `json:"mostDisruptiveAllowedAction,omitempty"` // ReplacementMethod: What action should be used to replace instances. @@ -20697,35 +20793,35 @@ type InstanceGroupManagersApplyUpdatesRequest struct { // MinimalAction: The minimal action that you want to perform on each // instance during the update: - REPLACE: At minimum, delete the // instance and create it again. - RESTART: Stop the instance and start - // it again. - REFRESH: Do not stop the instance. - NONE: Do not disrupt - // the instance at all. By default, the minimum action is NONE. If your - // update requires a more disruptive action than you set with this flag, - // the necessary action is performed to execute the update. + // it again. - REFRESH: Do not stop the instance and limit disruption as + // much as possible. - NONE: Do not disrupt the instance at all. By + // default, the minimum action is NONE. If your update requires a more + // disruptive action than you set with this flag, the necessary action + // is performed to execute the update. // // Possible values: // "NONE" - Do not perform any action. - // "REFRESH" - Updates applied in runtime, instances will not be - // disrupted. - // "REPLACE" - Old instances will be deleted. New instances will be - // created from the target template. - // "RESTART" - Every instance will be restarted. + // "REFRESH" - Do not stop the instance. + // "REPLACE" - (Default.) Replace the instance according to the + // replacement method option. + // "RESTART" - Stop the instance and start it again. MinimalAction string `json:"minimalAction,omitempty"` // MostDisruptiveAllowedAction: The most disruptive action that you want // to perform on each instance during the update: - REPLACE: Delete the // instance and create it again. - RESTART: Stop the instance and start - // it again. - REFRESH: Do not stop the instance. - NONE: Do not disrupt - // the instance at all. By default, the most disruptive allowed action - // is REPLACE. If your update requires a more disruptive action than you - // set with this flag, the update request will fail. + // it again. - REFRESH: Do not stop the instance and limit disruption as + // much as possible. - NONE: Do not disrupt the instance at all. By + // default, the most disruptive allowed action is REPLACE. If your + // update requires a more disruptive action than you set with this flag, + // the update request will fail. // // Possible values: // "NONE" - Do not perform any action. - // "REFRESH" - Updates applied in runtime, instances will not be - // disrupted. - // "REPLACE" - Old instances will be deleted. New instances will be - // created from the target template. - // "RESTART" - Every instance will be restarted. + // "REFRESH" - Do not stop the instance. + // "REPLACE" - (Default.) Replace the instance according to the + // replacement method option. + // "RESTART" - Stop the instance and start it again. MostDisruptiveAllowedAction string `json:"mostDisruptiveAllowedAction,omitempty"` // ForceSendFields is a list of field names (e.g. "AllInstances") to @@ -23569,6 +23665,35 @@ func (s *InstancesAddResourcePoliciesRequest) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +type InstancesBulkInsertOperationMetadata struct { + // PerLocationStatus: Status information per location (location name is + // key). Example key: zones/us-central1-a + PerLocationStatus map[string]BulkInsertOperationStatus `json:"perLocationStatus,omitempty"` + + // ForceSendFields is a list of field names (e.g. "PerLocationStatus") + // 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. "PerLocationStatus") 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 *InstancesBulkInsertOperationMetadata) MarshalJSON() ([]byte, error) { + type NoMethod InstancesBulkInsertOperationMetadata + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + type InstancesGetEffectiveFirewallsResponse struct { // FirewallPolicys: Effective firewalls from firewall policies. FirewallPolicys []*InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy `json:"firewallPolicys,omitempty"` @@ -24505,59 +24630,6 @@ func (s *InstantSnapshotAggregatedListWarningData) MarshalJSON() ([]byte, error) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -type InstantSnapshotExportParams struct { - // BaseInstantSnapshot: An optional base instant snapshot that this - // resource is compared against. If not specified, all blocks of this - // resource are exported. The base instant snapshot and this resource - // must be created from the same disk. The base instant snapshot must be - // created earlier in time than this resource. - BaseInstantSnapshot string `json:"baseInstantSnapshot,omitempty"` - - // BucketName: The name of an existing bucket in Cloud Storage where the - // changed blocks will be stored. The Google Service Account must have - // read and write access to this bucket. The bucket has to be in the - // same region as this resource. - BucketName string `json:"bucketName,omitempty"` - - // EncryptionKey: Encryption key used to encrypt the instant snapshot. - EncryptionKey *CustomerEncryptionKey `json:"encryptionKey,omitempty"` - - // ObjectName: Name of the output Bigstore object storing the changed - // blocks. Object name must be less than 1024 bytes in length. - ObjectName string `json:"objectName,omitempty"` - - // OutputType: The format of the output file. - // - // Possible values: - // "INVALID" - // "METADATA_AND_DATA" - // "METADATA_ONLY" - OutputType string `json:"outputType,omitempty"` - - // ForceSendFields is a list of field names (e.g. "BaseInstantSnapshot") - // 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. "BaseInstantSnapshot") 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 *InstantSnapshotExportParams) MarshalJSON() ([]byte, error) { - type NoMethod InstantSnapshotExportParams - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - // InstantSnapshotList: Contains a list of InstantSnapshot resources. type InstantSnapshotList struct { // Id: [Output Only] Unique identifier for the resource; defined by the @@ -24779,33 +24851,6 @@ func (s *InstantSnapshotResourceStatus) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -type InstantSnapshotsExportRequest struct { - // ExportParams: Parameters to export the changed blocks. - ExportParams *InstantSnapshotExportParams `json:"exportParams,omitempty"` - - // ForceSendFields is a list of field names (e.g. "ExportParams") 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. "ExportParams") 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 *InstantSnapshotsExportRequest) MarshalJSON() ([]byte, error) { - type NoMethod InstantSnapshotsExportRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - type InstantSnapshotsScopedList struct { // InstantSnapshots: [Output Only] A list of instantSnapshots contained // in this scope. @@ -36400,6 +36445,8 @@ type Operation struct { // This value is in RFC3339 text format. InsertTime string `json:"insertTime,omitempty"` + InstancesBulkInsertOperationMetadata *InstancesBulkInsertOperationMetadata `json:"instancesBulkInsertOperationMetadata,omitempty"` + // Kind: [Output Only] Type of the resource. Always `compute#operation` // for Operation resources. Kind string `json:"kind,omitempty"` @@ -39242,7 +39289,7 @@ type PublicAdvertisedPrefix struct { // property when you create the resource. Description string `json:"description,omitempty"` - // DnsVerificationIp: The IPv4 address to be used for reverse DNS + // DnsVerificationIp: The address to be used for reverse DNS // verification. DnsVerificationIp string `json:"dnsVerificationIp,omitempty"` @@ -39259,8 +39306,8 @@ type PublicAdvertisedPrefix struct { // server generates this identifier. Id uint64 `json:"id,omitempty,string"` - // IpCidrRange: The IPv4 address range, in CIDR format, represented by - // this public advertised prefix. + // IpCidrRange: The address range, in CIDR format, represented by this + // public advertised prefix. IpCidrRange string `json:"ipCidrRange,omitempty"` // Kind: [Output Only] Type of the resource. Always @@ -39600,7 +39647,7 @@ type PublicDelegatedPrefix struct { // server generates this identifier. Id uint64 `json:"id,omitempty,string"` - // IpCidrRange: The IPv4 address range, in CIDR format, represented by + // IpCidrRange: The IP address range, in CIDR format, represented by // this public delegated prefix. IpCidrRange string `json:"ipCidrRange,omitempty"` @@ -40081,7 +40128,7 @@ type PublicDelegatedPrefixPublicDelegatedSubPrefix struct { // property when you create the resource. Description string `json:"description,omitempty"` - // IpCidrRange: The IPv4 address range, in CIDR format, represented by + // IpCidrRange: The IP address range, in CIDR format, represented by // this sub public delegated prefix. IpCidrRange string `json:"ipCidrRange,omitempty"` @@ -41768,35 +41815,35 @@ type RegionInstanceGroupManagersApplyUpdatesRequest struct { // MinimalAction: The minimal action that you want to perform on each // instance during the update: - REPLACE: At minimum, delete the // instance and create it again. - RESTART: Stop the instance and start - // it again. - REFRESH: Do not stop the instance. - NONE: Do not disrupt - // the instance at all. By default, the minimum action is NONE. If your - // update requires a more disruptive action than you set with this flag, - // the necessary action is performed to execute the update. + // it again. - REFRESH: Do not stop the instance and limit disruption as + // much as possible. - NONE: Do not disrupt the instance at all. By + // default, the minimum action is NONE. If your update requires a more + // disruptive action than you set with this flag, the necessary action + // is performed to execute the update. // // Possible values: // "NONE" - Do not perform any action. - // "REFRESH" - Updates applied in runtime, instances will not be - // disrupted. - // "REPLACE" - Old instances will be deleted. New instances will be - // created from the target template. - // "RESTART" - Every instance will be restarted. + // "REFRESH" - Do not stop the instance. + // "REPLACE" - (Default.) Replace the instance according to the + // replacement method option. + // "RESTART" - Stop the instance and start it again. MinimalAction string `json:"minimalAction,omitempty"` // MostDisruptiveAllowedAction: The most disruptive action that you want // to perform on each instance during the update: - REPLACE: Delete the // instance and create it again. - RESTART: Stop the instance and start - // it again. - REFRESH: Do not stop the instance. - NONE: Do not disrupt - // the instance at all. By default, the most disruptive allowed action - // is REPLACE. If your update requires a more disruptive action than you - // set with this flag, the update request will fail. + // it again. - REFRESH: Do not stop the instance and limit disruption as + // much as possible. - NONE: Do not disrupt the instance at all. By + // default, the most disruptive allowed action is REPLACE. If your + // update requires a more disruptive action than you set with this flag, + // the update request will fail. // // Possible values: // "NONE" - Do not perform any action. - // "REFRESH" - Updates applied in runtime, instances will not be - // disrupted. - // "REPLACE" - Old instances will be deleted. New instances will be - // created from the target template. - // "RESTART" - Every instance will be restarted. + // "REFRESH" - Do not stop the instance. + // "REPLACE" - (Default.) Replace the instance according to the + // replacement method option. + // "RESTART" - Stop the instance and start it again. MostDisruptiveAllowedAction string `json:"mostDisruptiveAllowedAction,omitempty"` // ForceSendFields is a list of field names (e.g. "AllInstances") to @@ -42584,33 +42631,6 @@ func (s *RegionInstanceGroupsSetNamedPortsRequest) MarshalJSON() ([]byte, error) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -type RegionInstantSnapshotsExportRequest struct { - // ExportParams: Parameters to export the changed blocks. - ExportParams *InstantSnapshotExportParams `json:"exportParams,omitempty"` - - // ForceSendFields is a list of field names (e.g. "ExportParams") 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. "ExportParams") 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 *RegionInstantSnapshotsExportRequest) MarshalJSON() ([]byte, error) { - type NoMethod RegionInstantSnapshotsExportRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - // RegionList: Contains a list of region resources. type RegionList struct { // Id: [Output Only] Unique identifier for the resource; defined by the @@ -51428,6 +51448,12 @@ type Snapshot struct { // snapshot by informing the OS to prepare for the snapshot process. GuestFlush bool `json:"guestFlush,omitempty"` + // GuestOsFeatures: [Output Only] A list of features to enable on the + // guest operating system. Applicable only for bootable images. Read + // Enabling guest operating system features to see a list of available + // options. + GuestOsFeatures []*GuestOsFeature `json:"guestOsFeatures,omitempty"` + // Id: [Output Only] The unique identifier for the resource. This // identifier is defined by the server. Id uint64 `json:"id,omitempty,string"` @@ -116860,195 +116886,6 @@ func (c *InstantSnapshotsDeleteCall) Do(opts ...googleapi.CallOption) (*Operatio } -// method id "compute.instantSnapshots.export": - -type InstantSnapshotsExportCall struct { - s *Service - project string - zone string - instantSnapshot string - instantsnapshotsexportrequest *InstantSnapshotsExportRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// Export: Export the changed blocks between two instant snapshots to a -// customer's bucket in the user specified format. -// -// - instantSnapshot: Name of the instant snapshot to export. -// - project: Project ID for this request. -// - zone: The name of the zone for this request. -func (r *InstantSnapshotsService) Export(project string, zone string, instantSnapshot string, instantsnapshotsexportrequest *InstantSnapshotsExportRequest) *InstantSnapshotsExportCall { - c := &InstantSnapshotsExportCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.project = project - c.zone = zone - c.instantSnapshot = instantSnapshot - c.instantsnapshotsexportrequest = instantsnapshotsexportrequest - return c -} - -// RequestId sets the optional parameter "requestId": An optional -// request ID to identify requests. Specify a unique request ID so that -// if you must retry your request, the server will know to ignore the -// request if it has already been completed. For example, consider a -// situation where you make an initial request and the request times -// out. If you make the request again with the same request ID, the -// server can check if original operation with the same request ID was -// received, and if so, will ignore the second request. This prevents -// clients from accidentally creating duplicate commitments. The request -// ID must be a valid UUID with the exception that zero UUID is not -// supported ( 00000000-0000-0000-0000-000000000000). -func (c *InstantSnapshotsExportCall) RequestId(requestId string) *InstantSnapshotsExportCall { - c.urlParams_.Set("requestId", requestId) - 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 *InstantSnapshotsExportCall) Fields(s ...googleapi.Field) *InstantSnapshotsExportCall { - 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 *InstantSnapshotsExportCall) Context(ctx context.Context) *InstantSnapshotsExportCall { - 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 *InstantSnapshotsExportCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *InstantSnapshotsExportCall) 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.instantsnapshotsexportrequest) - 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, "projects/{project}/zones/{zone}/instantSnapshots/{instantSnapshot}/export") - 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{ - "project": c.project, - "zone": c.zone, - "instantSnapshot": c.instantSnapshot, - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "compute.instantSnapshots.export" call. -// Exactly one of *Operation or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Operation.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. -func (c *InstantSnapshotsExportCall) Do(opts ...googleapi.CallOption) (*Operation, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &Operation{ - ServerResponse: googleapi.ServerResponse{ - Header: res.Header, - HTTPStatusCode: res.StatusCode, - }, - } - target := &ret - if err := gensupport.DecodeResponse(target, res); err != nil { - return nil, err - } - return ret, nil - // { - // "description": "Export the changed blocks between two instant snapshots to a customer's bucket in the user specified format.", - // "flatPath": "projects/{project}/zones/{zone}/instantSnapshots/{instantSnapshot}/export", - // "httpMethod": "POST", - // "id": "compute.instantSnapshots.export", - // "parameterOrder": [ - // "project", - // "zone", - // "instantSnapshot" - // ], - // "parameters": { - // "instantSnapshot": { - // "description": "Name of the instant snapshot to export.", - // "location": "path", - // "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}", - // "required": true, - // "type": "string" - // }, - // "project": { - // "description": "Project ID for this request.", - // "location": "path", - // "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))", - // "required": true, - // "type": "string" - // }, - // "requestId": { - // "description": "An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).", - // "location": "query", - // "type": "string" - // }, - // "zone": { - // "description": "The name of the zone for this request.", - // "location": "path", - // "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", - // "required": true, - // "type": "string" - // } - // }, - // "path": "projects/{project}/zones/{zone}/instantSnapshots/{instantSnapshot}/export", - // "request": { - // "$ref": "InstantSnapshotsExportRequest" - // }, - // "response": { - // "$ref": "Operation" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/compute" - // ] - // } - -} - // method id "compute.instantSnapshots.get": type InstantSnapshotsGetCall struct { @@ -168092,195 +167929,6 @@ func (c *RegionInstantSnapshotsDeleteCall) Do(opts ...googleapi.CallOption) (*Op } -// method id "compute.regionInstantSnapshots.export": - -type RegionInstantSnapshotsExportCall struct { - s *Service - project string - region string - instantSnapshot string - regioninstantsnapshotsexportrequest *RegionInstantSnapshotsExportRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// Export: Export the changed blocks between two instant snapshots to a -// customer's bucket in the user specified format. -// -// - instantSnapshot: Name of the instant snapshot to export. -// - project: Project ID for this request. -// - region: The name of the zone for this request. -func (r *RegionInstantSnapshotsService) Export(project string, region string, instantSnapshot string, regioninstantsnapshotsexportrequest *RegionInstantSnapshotsExportRequest) *RegionInstantSnapshotsExportCall { - c := &RegionInstantSnapshotsExportCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.project = project - c.region = region - c.instantSnapshot = instantSnapshot - c.regioninstantsnapshotsexportrequest = regioninstantsnapshotsexportrequest - return c -} - -// RequestId sets the optional parameter "requestId": An optional -// request ID to identify requests. Specify a unique request ID so that -// if you must retry your request, the server will know to ignore the -// request if it has already been completed. For example, consider a -// situation where you make an initial request and the request times -// out. If you make the request again with the same request ID, the -// server can check if original operation with the same request ID was -// received, and if so, will ignore the second request. This prevents -// clients from accidentally creating duplicate commitments. The request -// ID must be a valid UUID with the exception that zero UUID is not -// supported ( 00000000-0000-0000-0000-000000000000). -func (c *RegionInstantSnapshotsExportCall) RequestId(requestId string) *RegionInstantSnapshotsExportCall { - c.urlParams_.Set("requestId", requestId) - 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 *RegionInstantSnapshotsExportCall) Fields(s ...googleapi.Field) *RegionInstantSnapshotsExportCall { - 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 *RegionInstantSnapshotsExportCall) Context(ctx context.Context) *RegionInstantSnapshotsExportCall { - 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 *RegionInstantSnapshotsExportCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *RegionInstantSnapshotsExportCall) 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.regioninstantsnapshotsexportrequest) - 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, "projects/{project}/regions/{region}/instantSnapshots/{instantSnapshot}/export") - 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{ - "project": c.project, - "region": c.region, - "instantSnapshot": c.instantSnapshot, - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "compute.regionInstantSnapshots.export" call. -// Exactly one of *Operation or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Operation.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. -func (c *RegionInstantSnapshotsExportCall) Do(opts ...googleapi.CallOption) (*Operation, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &Operation{ - ServerResponse: googleapi.ServerResponse{ - Header: res.Header, - HTTPStatusCode: res.StatusCode, - }, - } - target := &ret - if err := gensupport.DecodeResponse(target, res); err != nil { - return nil, err - } - return ret, nil - // { - // "description": "Export the changed blocks between two instant snapshots to a customer's bucket in the user specified format.", - // "flatPath": "projects/{project}/regions/{region}/instantSnapshots/{instantSnapshot}/export", - // "httpMethod": "POST", - // "id": "compute.regionInstantSnapshots.export", - // "parameterOrder": [ - // "project", - // "region", - // "instantSnapshot" - // ], - // "parameters": { - // "instantSnapshot": { - // "description": "Name of the instant snapshot to export.", - // "location": "path", - // "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}", - // "required": true, - // "type": "string" - // }, - // "project": { - // "description": "Project ID for this request.", - // "location": "path", - // "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))", - // "required": true, - // "type": "string" - // }, - // "region": { - // "description": "The name of the zone for this request.", - // "location": "path", - // "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", - // "required": true, - // "type": "string" - // }, - // "requestId": { - // "description": "An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "projects/{project}/regions/{region}/instantSnapshots/{instantSnapshot}/export", - // "request": { - // "$ref": "RegionInstantSnapshotsExportRequest" - // }, - // "response": { - // "$ref": "Operation" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/compute" - // ] - // } - -} - // method id "compute.regionInstantSnapshots.get": type RegionInstantSnapshotsGetCall struct { @@ -176722,6 +176370,13 @@ func (c *RegionSecurityPoliciesPatchCall) RequestId(requestId string) *RegionSec return c } +// UpdateMask sets the optional parameter "updateMask": Indicates fields +// to be cleared as part of this request. +func (c *RegionSecurityPoliciesPatchCall) UpdateMask(updateMask string) *RegionSecurityPoliciesPatchCall { + 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. @@ -176850,6 +176505,12 @@ func (c *RegionSecurityPoliciesPatchCall) Do(opts ...googleapi.CallOption) (*Ope // "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}", // "required": true, // "type": "string" + // }, + // "updateMask": { + // "description": "Indicates fields to be cleared as part of this request.", + // "format": "google-fieldmask", + // "location": "query", + // "type": "string" // } // }, // "path": "projects/{project}/regions/{region}/securityPolicies/{securityPolicy}", @@ -176903,6 +176564,13 @@ func (c *RegionSecurityPoliciesPatchRuleCall) Priority(priority int64) *RegionSe return c } +// UpdateMask sets the optional parameter "updateMask": Indicates fields +// to be cleared as part of this request. +func (c *RegionSecurityPoliciesPatchRuleCall) UpdateMask(updateMask string) *RegionSecurityPoliciesPatchRuleCall { + c.urlParams_.Set("updateMask", updateMask) + return c +} + // ValidateOnly sets the optional parameter "validateOnly": If true, the // request will not be committed. func (c *RegionSecurityPoliciesPatchRuleCall) ValidateOnly(validateOnly bool) *RegionSecurityPoliciesPatchRuleCall { @@ -177040,6 +176708,12 @@ func (c *RegionSecurityPoliciesPatchRuleCall) Do(opts ...googleapi.CallOption) ( // "required": true, // "type": "string" // }, + // "updateMask": { + // "description": "Indicates fields to be cleared as part of this request.", + // "format": "google-fieldmask", + // "location": "query", + // "type": "string" + // }, // "validateOnly": { // "description": "If true, the request will not be committed.", // "location": "query", @@ -194398,6 +194072,13 @@ func (c *SecurityPoliciesPatchCall) RequestId(requestId string) *SecurityPolicie return c } +// UpdateMask sets the optional parameter "updateMask": Indicates fields +// to be cleared as part of this request. +func (c *SecurityPoliciesPatchCall) UpdateMask(updateMask string) *SecurityPoliciesPatchCall { + 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. @@ -194517,6 +194198,12 @@ func (c *SecurityPoliciesPatchCall) Do(opts ...googleapi.CallOption) (*Operation // "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}", // "required": true, // "type": "string" + // }, + // "updateMask": { + // "description": "Indicates fields to be cleared as part of this request.", + // "format": "google-fieldmask", + // "location": "query", + // "type": "string" // } // }, // "path": "projects/{project}/global/securityPolicies/{securityPolicy}", diff --git a/compute/v1/compute-api.json b/compute/v1/compute-api.json index 936fba5c129..2fa90a6a6ba 100644 --- a/compute/v1/compute-api.json +++ b/compute/v1/compute-api.json @@ -33731,7 +33731,7 @@ } } }, - "revision": "20230606", + "revision": "20230610", "rootUrl": "https://compute.googleapis.com/", "schemas": { "AcceleratorConfig": { @@ -34253,7 +34253,7 @@ "type": "string" }, "ipVersion": { - "description": "The IP version that will be used by this address. Valid options are IPV4 or IPV6. This can only be specified for a global address.", + "description": "The IP version that will be used by this address. Valid options are IPV4 or IPV6.", "enum": [ "IPV4", "IPV6", @@ -45246,14 +45246,14 @@ ], "enumDescriptions": [ "Do not perform any action.", - "Updates applied in runtime, instances will not be disrupted.", - "Old instances will be deleted. New instances will be created from the target template.", - "Every instance will be restarted." + "Do not stop the instance.", + "(Default.) Replace the instance according to the replacement method option.", + "Stop the instance and start it again." ], "type": "string" }, "mostDisruptiveAllowedAction": { - "description": "Most disruptive action that is allowed to be taken on an instance. You can specify either NONE to forbid any actions, REFRESH to allow actions that do not need instance restart, RESTART to allow actions that can be applied without instance replacing or REPLACE to allow all possible actions. If the Updater determines that the minimal update action needed is more disruptive than most disruptive allowed action you specify it will not perform the update at all.", + "description": "Most disruptive action that is allowed to be taken on an instance. You can specify either NONE to forbid any actions, REFRESH to avoid restarting the VM and to limit disruption as much as possible. RESTART to allow actions that can be applied without instance replacing or REPLACE to allow all possible actions. If the Updater determines that the minimal update action needed is more disruptive than most disruptive allowed action you specify it will not perform the update at all.", "enum": [ "NONE", "REFRESH", @@ -45262,9 +45262,9 @@ ], "enumDescriptions": [ "Do not perform any action.", - "Updates applied in runtime, instances will not be disrupted.", - "Old instances will be deleted. New instances will be created from the target template.", - "Every instance will be restarted." + "Do not stop the instance.", + "(Default.) Replace the instance according to the replacement method option.", + "Stop the instance and start it again." ], "type": "string" }, @@ -45342,7 +45342,7 @@ "type": "array" }, "minimalAction": { - "description": "The minimal action that you want to perform on each instance during the update: - REPLACE: At minimum, delete the instance and create it again. - RESTART: Stop the instance and start it again. - REFRESH: Do not stop the instance. - NONE: Do not disrupt the instance at all. By default, the minimum action is NONE. If your update requires a more disruptive action than you set with this flag, the necessary action is performed to execute the update.", + "description": "The minimal action that you want to perform on each instance during the update: - REPLACE: At minimum, delete the instance and create it again. - RESTART: Stop the instance and start it again. - REFRESH: Do not stop the instance and limit disruption as much as possible. - NONE: Do not disrupt the instance at all. By default, the minimum action is NONE. If your update requires a more disruptive action than you set with this flag, the necessary action is performed to execute the update.", "enum": [ "NONE", "REFRESH", @@ -45351,14 +45351,14 @@ ], "enumDescriptions": [ "Do not perform any action.", - "Updates applied in runtime, instances will not be disrupted.", - "Old instances will be deleted. New instances will be created from the target template.", - "Every instance will be restarted." + "Do not stop the instance.", + "(Default.) Replace the instance according to the replacement method option.", + "Stop the instance and start it again." ], "type": "string" }, "mostDisruptiveAllowedAction": { - "description": "The most disruptive action that you want to perform on each instance during the update: - REPLACE: Delete the instance and create it again. - RESTART: Stop the instance and start it again. - REFRESH: Do not stop the instance. - NONE: Do not disrupt the instance at all. By default, the most disruptive allowed action is REPLACE. If your update requires a more disruptive action than you set with this flag, the update request will fail.", + "description": "The most disruptive action that you want to perform on each instance during the update: - REPLACE: Delete the instance and create it again. - RESTART: Stop the instance and start it again. - REFRESH: Do not stop the instance and limit disruption as much as possible. - NONE: Do not disrupt the instance at all. By default, the most disruptive allowed action is REPLACE. If your update requires a more disruptive action than you set with this flag, the update request will fail.", "enum": [ "NONE", "REFRESH", @@ -45367,9 +45367,9 @@ ], "enumDescriptions": [ "Do not perform any action.", - "Updates applied in runtime, instances will not be disrupted.", - "Old instances will be deleted. New instances will be created from the target template.", - "Every instance will be restarted." + "Do not stop the instance.", + "(Default.) Replace the instance according to the replacement method option.", + "Stop the instance and start it again." ], "type": "string" } @@ -56190,7 +56190,7 @@ "type": "string" }, "dnsVerificationIp": { - "description": "The IPv4 address to be used for reverse DNS verification.", + "description": "The address to be used for reverse DNS verification.", "type": "string" }, "fingerprint": { @@ -56204,7 +56204,7 @@ "type": "string" }, "ipCidrRange": { - "description": "The IPv4 address range, in CIDR format, represented by this public advertised prefix.", + "description": "The address range, in CIDR format, represented by this public advertised prefix.", "type": "string" }, "kind": { @@ -57954,7 +57954,7 @@ "type": "array" }, "minimalAction": { - "description": "The minimal action that you want to perform on each instance during the update: - REPLACE: At minimum, delete the instance and create it again. - RESTART: Stop the instance and start it again. - REFRESH: Do not stop the instance. - NONE: Do not disrupt the instance at all. By default, the minimum action is NONE. If your update requires a more disruptive action than you set with this flag, the necessary action is performed to execute the update.", + "description": "The minimal action that you want to perform on each instance during the update: - REPLACE: At minimum, delete the instance and create it again. - RESTART: Stop the instance and start it again. - REFRESH: Do not stop the instance and limit disruption as much as possible. - NONE: Do not disrupt the instance at all. By default, the minimum action is NONE. If your update requires a more disruptive action than you set with this flag, the necessary action is performed to execute the update.", "enum": [ "NONE", "REFRESH", @@ -57963,14 +57963,14 @@ ], "enumDescriptions": [ "Do not perform any action.", - "Updates applied in runtime, instances will not be disrupted.", - "Old instances will be deleted. New instances will be created from the target template.", - "Every instance will be restarted." + "Do not stop the instance.", + "(Default.) Replace the instance according to the replacement method option.", + "Stop the instance and start it again." ], "type": "string" }, "mostDisruptiveAllowedAction": { - "description": "The most disruptive action that you want to perform on each instance during the update: - REPLACE: Delete the instance and create it again. - RESTART: Stop the instance and start it again. - REFRESH: Do not stop the instance. - NONE: Do not disrupt the instance at all. By default, the most disruptive allowed action is REPLACE. If your update requires a more disruptive action than you set with this flag, the update request will fail.", + "description": "The most disruptive action that you want to perform on each instance during the update: - REPLACE: Delete the instance and create it again. - RESTART: Stop the instance and start it again. - REFRESH: Do not stop the instance and limit disruption as much as possible. - NONE: Do not disrupt the instance at all. By default, the most disruptive allowed action is REPLACE. If your update requires a more disruptive action than you set with this flag, the update request will fail.", "enum": [ "NONE", "REFRESH", @@ -57979,9 +57979,9 @@ ], "enumDescriptions": [ "Do not perform any action.", - "Updates applied in runtime, instances will not be disrupted.", - "Old instances will be deleted. New instances will be created from the target template.", - "Every instance will be restarted." + "Do not stop the instance.", + "(Default.) Replace the instance according to the replacement method option.", + "Stop the instance and start it again." ], "type": "string" } diff --git a/compute/v1/compute-gen.go b/compute/v1/compute-gen.go index 6fd50ab707a..3d92538f126 100644 --- a/compute/v1/compute-gen.go +++ b/compute/v1/compute-gen.go @@ -2068,8 +2068,7 @@ type Address struct { Id uint64 `json:"id,omitempty,string"` // IpVersion: The IP version that will be used by this address. Valid - // options are IPV4 or IPV6. This can only be specified for a global - // address. + // options are IPV4 or IPV6. // // Possible values: // "IPV4" @@ -19770,29 +19769,27 @@ type InstanceGroupManagerUpdatePolicy struct { // // Possible values: // "NONE" - Do not perform any action. - // "REFRESH" - Updates applied in runtime, instances will not be - // disrupted. - // "REPLACE" - Old instances will be deleted. New instances will be - // created from the target template. - // "RESTART" - Every instance will be restarted. + // "REFRESH" - Do not stop the instance. + // "REPLACE" - (Default.) Replace the instance according to the + // replacement method option. + // "RESTART" - Stop the instance and start it again. MinimalAction string `json:"minimalAction,omitempty"` // MostDisruptiveAllowedAction: Most disruptive action that is allowed // to be taken on an instance. You can specify either NONE to forbid any - // actions, REFRESH to allow actions that do not need instance restart, - // RESTART to allow actions that can be applied without instance - // replacing or REPLACE to allow all possible actions. If the Updater - // determines that the minimal update action needed is more disruptive - // than most disruptive allowed action you specify it will not perform - // the update at all. + // actions, REFRESH to avoid restarting the VM and to limit disruption + // as much as possible. RESTART to allow actions that can be applied + // without instance replacing or REPLACE to allow all possible actions. + // If the Updater determines that the minimal update action needed is + // more disruptive than most disruptive allowed action you specify it + // will not perform the update at all. // // Possible values: // "NONE" - Do not perform any action. - // "REFRESH" - Updates applied in runtime, instances will not be - // disrupted. - // "REPLACE" - Old instances will be deleted. New instances will be - // created from the target template. - // "RESTART" - Every instance will be restarted. + // "REFRESH" - Do not stop the instance. + // "REPLACE" - (Default.) Replace the instance according to the + // replacement method option. + // "RESTART" - Stop the instance and start it again. MostDisruptiveAllowedAction string `json:"mostDisruptiveAllowedAction,omitempty"` // ReplacementMethod: What action should be used to replace instances. @@ -19941,35 +19938,35 @@ type InstanceGroupManagersApplyUpdatesRequest struct { // MinimalAction: The minimal action that you want to perform on each // instance during the update: - REPLACE: At minimum, delete the // instance and create it again. - RESTART: Stop the instance and start - // it again. - REFRESH: Do not stop the instance. - NONE: Do not disrupt - // the instance at all. By default, the minimum action is NONE. If your - // update requires a more disruptive action than you set with this flag, - // the necessary action is performed to execute the update. + // it again. - REFRESH: Do not stop the instance and limit disruption as + // much as possible. - NONE: Do not disrupt the instance at all. By + // default, the minimum action is NONE. If your update requires a more + // disruptive action than you set with this flag, the necessary action + // is performed to execute the update. // // Possible values: // "NONE" - Do not perform any action. - // "REFRESH" - Updates applied in runtime, instances will not be - // disrupted. - // "REPLACE" - Old instances will be deleted. New instances will be - // created from the target template. - // "RESTART" - Every instance will be restarted. + // "REFRESH" - Do not stop the instance. + // "REPLACE" - (Default.) Replace the instance according to the + // replacement method option. + // "RESTART" - Stop the instance and start it again. MinimalAction string `json:"minimalAction,omitempty"` // MostDisruptiveAllowedAction: The most disruptive action that you want // to perform on each instance during the update: - REPLACE: Delete the // instance and create it again. - RESTART: Stop the instance and start - // it again. - REFRESH: Do not stop the instance. - NONE: Do not disrupt - // the instance at all. By default, the most disruptive allowed action - // is REPLACE. If your update requires a more disruptive action than you - // set with this flag, the update request will fail. + // it again. - REFRESH: Do not stop the instance and limit disruption as + // much as possible. - NONE: Do not disrupt the instance at all. By + // default, the most disruptive allowed action is REPLACE. If your + // update requires a more disruptive action than you set with this flag, + // the update request will fail. // // Possible values: // "NONE" - Do not perform any action. - // "REFRESH" - Updates applied in runtime, instances will not be - // disrupted. - // "REPLACE" - Old instances will be deleted. New instances will be - // created from the target template. - // "RESTART" - Every instance will be restarted. + // "REFRESH" - Do not stop the instance. + // "REPLACE" - (Default.) Replace the instance according to the + // replacement method option. + // "RESTART" - Stop the instance and start it again. MostDisruptiveAllowedAction string `json:"mostDisruptiveAllowedAction,omitempty"` // ForceSendFields is a list of field names (e.g. "AllInstances") to @@ -37084,7 +37081,7 @@ type PublicAdvertisedPrefix struct { // property when you create the resource. Description string `json:"description,omitempty"` - // DnsVerificationIp: The IPv4 address to be used for reverse DNS + // DnsVerificationIp: The address to be used for reverse DNS // verification. DnsVerificationIp string `json:"dnsVerificationIp,omitempty"` @@ -37101,8 +37098,8 @@ type PublicAdvertisedPrefix struct { // server generates this identifier. Id uint64 `json:"id,omitempty,string"` - // IpCidrRange: The IPv4 address range, in CIDR format, represented by - // this public advertised prefix. + // IpCidrRange: The address range, in CIDR format, represented by this + // public advertised prefix. IpCidrRange string `json:"ipCidrRange,omitempty"` // Kind: [Output Only] Type of the resource. Always @@ -39581,35 +39578,35 @@ type RegionInstanceGroupManagersApplyUpdatesRequest struct { // MinimalAction: The minimal action that you want to perform on each // instance during the update: - REPLACE: At minimum, delete the // instance and create it again. - RESTART: Stop the instance and start - // it again. - REFRESH: Do not stop the instance. - NONE: Do not disrupt - // the instance at all. By default, the minimum action is NONE. If your - // update requires a more disruptive action than you set with this flag, - // the necessary action is performed to execute the update. + // it again. - REFRESH: Do not stop the instance and limit disruption as + // much as possible. - NONE: Do not disrupt the instance at all. By + // default, the minimum action is NONE. If your update requires a more + // disruptive action than you set with this flag, the necessary action + // is performed to execute the update. // // Possible values: // "NONE" - Do not perform any action. - // "REFRESH" - Updates applied in runtime, instances will not be - // disrupted. - // "REPLACE" - Old instances will be deleted. New instances will be - // created from the target template. - // "RESTART" - Every instance will be restarted. + // "REFRESH" - Do not stop the instance. + // "REPLACE" - (Default.) Replace the instance according to the + // replacement method option. + // "RESTART" - Stop the instance and start it again. MinimalAction string `json:"minimalAction,omitempty"` // MostDisruptiveAllowedAction: The most disruptive action that you want // to perform on each instance during the update: - REPLACE: Delete the // instance and create it again. - RESTART: Stop the instance and start - // it again. - REFRESH: Do not stop the instance. - NONE: Do not disrupt - // the instance at all. By default, the most disruptive allowed action - // is REPLACE. If your update requires a more disruptive action than you - // set with this flag, the update request will fail. + // it again. - REFRESH: Do not stop the instance and limit disruption as + // much as possible. - NONE: Do not disrupt the instance at all. By + // default, the most disruptive allowed action is REPLACE. If your + // update requires a more disruptive action than you set with this flag, + // the update request will fail. // // Possible values: // "NONE" - Do not perform any action. - // "REFRESH" - Updates applied in runtime, instances will not be - // disrupted. - // "REPLACE" - Old instances will be deleted. New instances will be - // created from the target template. - // "RESTART" - Every instance will be restarted. + // "REFRESH" - Do not stop the instance. + // "REPLACE" - (Default.) Replace the instance according to the + // replacement method option. + // "RESTART" - Stop the instance and start it again. MostDisruptiveAllowedAction string `json:"mostDisruptiveAllowedAction,omitempty"` // ForceSendFields is a list of field names (e.g. "AllInstances") to diff --git a/contactcenterinsights/v1/contactcenterinsights-api.json b/contactcenterinsights/v1/contactcenterinsights-api.json index 675fd1bfc20..69e2d405a87 100644 --- a/contactcenterinsights/v1/contactcenterinsights-api.json +++ b/contactcenterinsights/v1/contactcenterinsights-api.json @@ -1384,7 +1384,7 @@ } } }, - "revision": "20230424", + "revision": "20230621", "rootUrl": "https://contactcenterinsights.googleapis.com/", "schemas": { "GoogleCloudContactcenterinsightsV1Analysis": { @@ -3320,7 +3320,7 @@ "type": "string" }, "inspectTemplate": { - "description": "The fully-qualified DLP inspect template resource name. Format: `projects/{project}/inspectTemplates/{template}`", + "description": "The fully-qualified DLP inspect template resource name. Format: `projects/{project}/locations/{location}/inspectTemplates/{template}`", "type": "string" } }, @@ -5191,7 +5191,7 @@ "type": "string" }, "inspectTemplate": { - "description": "The fully-qualified DLP inspect template resource name. Format: `projects/{project}/inspectTemplates/{template}`", + "description": "The fully-qualified DLP inspect template resource name. Format: `projects/{project}/locations/{location}/inspectTemplates/{template}`", "type": "string" } }, diff --git a/contactcenterinsights/v1/contactcenterinsights-gen.go b/contactcenterinsights/v1/contactcenterinsights-gen.go index 9623f8cbc12..5505e32e12d 100644 --- a/contactcenterinsights/v1/contactcenterinsights-gen.go +++ b/contactcenterinsights/v1/contactcenterinsights-gen.go @@ -3434,7 +3434,8 @@ type GoogleCloudContactcenterinsightsV1RedactionConfig struct { DeidentifyTemplate string `json:"deidentifyTemplate,omitempty"` // InspectTemplate: The fully-qualified DLP inspect template resource - // name. Format: `projects/{project}/inspectTemplates/{template}` + // name. Format: + // `projects/{project}/locations/{location}/inspectTemplates/{template}` InspectTemplate string `json:"inspectTemplate,omitempty"` // ForceSendFields is a list of field names (e.g. "DeidentifyTemplate") @@ -6529,7 +6530,8 @@ type GoogleCloudContactcenterinsightsV1alpha1RedactionConfig struct { DeidentifyTemplate string `json:"deidentifyTemplate,omitempty"` // InspectTemplate: The fully-qualified DLP inspect template resource - // name. Format: `projects/{project}/inspectTemplates/{template}` + // name. Format: + // `projects/{project}/locations/{location}/inspectTemplates/{template}` InspectTemplate string `json:"inspectTemplate,omitempty"` // ForceSendFields is a list of field names (e.g. "DeidentifyTemplate") diff --git a/containeranalysis/v1/containeranalysis-api.json b/containeranalysis/v1/containeranalysis-api.json index a2bf7703d6e..86a59543996 100644 --- a/containeranalysis/v1/containeranalysis-api.json +++ b/containeranalysis/v1/containeranalysis-api.json @@ -755,7 +755,7 @@ } } }, - "revision": "20230519", + "revision": "20230623", "rootUrl": "https://containeranalysis.googleapis.com/", "schemas": { "AliasContext": { @@ -2235,14 +2235,16 @@ "N1_HIGHCPU_8", "N1_HIGHCPU_32", "E2_HIGHCPU_8", - "E2_HIGHCPU_32" + "E2_HIGHCPU_32", + "E2_MEDIUM" ], "enumDescriptions": [ "Standard machine type.", "Highcpu machine with 8 CPUs.", "Highcpu machine with 32 CPUs.", "Highcpu e2 machine with 8 CPUs.", - "Highcpu e2 machine with 32 CPUs." + "Highcpu e2 machine with 32 CPUs.", + "E2 machine with 1 CPU." ], "type": "string" }, diff --git a/containeranalysis/v1/containeranalysis-gen.go b/containeranalysis/v1/containeranalysis-gen.go index 5b30bfb93af..82794f57874 100644 --- a/containeranalysis/v1/containeranalysis-gen.go +++ b/containeranalysis/v1/containeranalysis-gen.go @@ -2171,6 +2171,7 @@ type ContaineranalysisGoogleDevtoolsCloudbuildV1BuildOptions struct { // "N1_HIGHCPU_32" - Highcpu machine with 32 CPUs. // "E2_HIGHCPU_8" - Highcpu e2 machine with 8 CPUs. // "E2_HIGHCPU_32" - Highcpu e2 machine with 32 CPUs. + // "E2_MEDIUM" - E2 machine with 1 CPU. MachineType string `json:"machineType,omitempty"` // Pool: Optional. Specification for execution on a `WorkerPool`. See diff --git a/containeranalysis/v1alpha1/containeranalysis-api.json b/containeranalysis/v1alpha1/containeranalysis-api.json index 34ac7839049..c0e4d8352ea 100644 --- a/containeranalysis/v1alpha1/containeranalysis-api.json +++ b/containeranalysis/v1alpha1/containeranalysis-api.json @@ -1233,7 +1233,7 @@ } } }, - "revision": "20230519", + "revision": "20230623", "rootUrl": "https://containeranalysis.googleapis.com/", "schemas": { "AnalysisCompleted": { @@ -2524,14 +2524,16 @@ "N1_HIGHCPU_8", "N1_HIGHCPU_32", "E2_HIGHCPU_8", - "E2_HIGHCPU_32" + "E2_HIGHCPU_32", + "E2_MEDIUM" ], "enumDescriptions": [ "Standard machine type.", "Highcpu machine with 8 CPUs.", "Highcpu machine with 32 CPUs.", "Highcpu e2 machine with 8 CPUs.", - "Highcpu e2 machine with 32 CPUs." + "Highcpu e2 machine with 32 CPUs.", + "E2 machine with 1 CPU." ], "type": "string" }, diff --git a/containeranalysis/v1alpha1/containeranalysis-gen.go b/containeranalysis/v1alpha1/containeranalysis-gen.go index 0329efc4fcc..32db56ce4d9 100644 --- a/containeranalysis/v1alpha1/containeranalysis-gen.go +++ b/containeranalysis/v1alpha1/containeranalysis-gen.go @@ -2047,6 +2047,7 @@ type ContaineranalysisGoogleDevtoolsCloudbuildV1BuildOptions struct { // "N1_HIGHCPU_32" - Highcpu machine with 32 CPUs. // "E2_HIGHCPU_8" - Highcpu e2 machine with 8 CPUs. // "E2_HIGHCPU_32" - Highcpu e2 machine with 32 CPUs. + // "E2_MEDIUM" - E2 machine with 1 CPU. MachineType string `json:"machineType,omitempty"` // Pool: Optional. Specification for execution on a `WorkerPool`. See diff --git a/containeranalysis/v1beta1/containeranalysis-api.json b/containeranalysis/v1beta1/containeranalysis-api.json index 12bbafbc8da..e1352ce9916 100644 --- a/containeranalysis/v1beta1/containeranalysis-api.json +++ b/containeranalysis/v1beta1/containeranalysis-api.json @@ -754,6 +754,34 @@ }, "resources": { "methods": { + "exportSBOM": { + "description": "Generates an SBOM and other dependency information for the given resource.", + "flatPath": "v1beta1/projects/{projectsId}/resources/{resourcesId}:exportSBOM", + "httpMethod": "POST", + "id": "containeranalysis.projects.resources.exportSBOM", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the resource in the form of `projects/[PROJECT_ID]/resources/[RESOURCE_URL]`.", + "location": "path", + "pattern": "^projects/[^/]+/resources/.*$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+name}:exportSBOM", + "request": { + "$ref": "ExportSBOMRequest" + }, + "response": { + "$ref": "ExportSBOMResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, "generatePackagesSummary": { "description": "Gets a summary of the packages within a given resource.", "flatPath": "v1beta1/projects/{projectsId}/resources/{resourcesId}:generatePackagesSummary", @@ -787,7 +815,7 @@ } } }, - "revision": "20230519", + "revision": "20230623", "rootUrl": "https://containeranalysis.googleapis.com/", "schemas": { "AliasContext": { @@ -1070,6 +1098,52 @@ }, "type": "object" }, + "BuildDefinition": { + "id": "BuildDefinition", + "properties": { + "buildType": { + "type": "string" + }, + "externalParameters": { + "additionalProperties": { + "description": "Properties of the object.", + "type": "any" + }, + "type": "object" + }, + "internalParameters": { + "additionalProperties": { + "description": "Properties of the object.", + "type": "any" + }, + "type": "object" + }, + "resolvedDependencies": { + "items": { + "$ref": "ResourceDescriptor" + }, + "type": "array" + } + }, + "type": "object" + }, + "BuildMetadata": { + "id": "BuildMetadata", + "properties": { + "finishedOn": { + "format": "google-datetime", + "type": "string" + }, + "invocationId": { + "type": "string" + }, + "startedOn": { + "format": "google-datetime", + "type": "string" + } + }, + "type": "object" + }, "BuildProvenance": { "description": "Provenance of a build. Contains all information needed to verify the full details about the build from source to completion.", "id": "BuildProvenance", @@ -2184,14 +2258,16 @@ "N1_HIGHCPU_8", "N1_HIGHCPU_32", "E2_HIGHCPU_8", - "E2_HIGHCPU_32" + "E2_HIGHCPU_32", + "E2_MEDIUM" ], "enumDescriptions": [ "Standard machine type.", "Highcpu machine with 8 CPUs.", "Highcpu machine with 32 CPUs.", "Highcpu e2 machine with 8 CPUs.", - "Highcpu e2 machine with 32 CPUs." + "Highcpu e2 machine with 32 CPUs.", + "E2 machine with 1 CPU." ], "type": "string" }, @@ -3308,6 +3384,23 @@ }, "type": "object" }, + "ExportSBOMRequest": { + "description": "The request to a call of ExportSBOM", + "id": "ExportSBOMRequest", + "properties": {}, + "type": "object" + }, + "ExportSBOMResponse": { + "description": "The response from a call to ExportSBOM", + "id": "ExportSBOMResponse", + "properties": { + "discoveryOccurrenceId": { + "description": "The id of the discovery occurrence that can be used to track the progression of the SBOM export.", + "type": "string" + } + }, + "type": "object" + }, "Expr": { "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": "Expr", @@ -3662,6 +3755,9 @@ "description": "Details of a build occurrence.", "id": "GrafeasV1beta1BuildDetails", "properties": { + "inTotoSlsaProvenanceV1": { + "$ref": "InTotoSlsaProvenanceV1" + }, "provenance": { "$ref": "BuildProvenance", "description": "Required. The actual provenance for the build." @@ -3943,6 +4039,19 @@ }, "type": "object" }, + "InTotoSlsaProvenanceV1": { + "description": "Keep in sync with schema at https://github.com/slsa-framework/slsa/blob/main/docs/provenance/schema/v1/provenance.proto Builder renamed to ProvenanceBuilder because of Java conflicts.", + "id": "InTotoSlsaProvenanceV1", + "properties": { + "buildDefinition": { + "$ref": "BuildDefinition" + }, + "runDetails": { + "$ref": "RunDetails" + } + }, + "type": "object" + }, "Installation": { "description": "This represents how a particular software package may be installed on a system.", "id": "Installation", @@ -4852,6 +4961,27 @@ }, "type": "object" }, + "ProvenanceBuilder": { + "id": "ProvenanceBuilder", + "properties": { + "builderDependencies": { + "items": { + "$ref": "ResourceDescriptor" + }, + "type": "array" + }, + "id": { + "type": "string" + }, + "version": { + "additionalProperties": { + "type": "string" + }, + "type": "object" + } + }, + "type": "object" + }, "Publisher": { "description": "Publisher contains information about the publisher of this Note.", "id": "Publisher", @@ -5174,6 +5304,58 @@ }, "type": "object" }, + "ResourceDescriptor": { + "id": "ResourceDescriptor", + "properties": { + "annotations": { + "additionalProperties": { + "type": "any" + }, + "type": "object" + }, + "content": { + "format": "byte", + "type": "string" + }, + "digest": { + "additionalProperties": { + "type": "string" + }, + "type": "object" + }, + "downloadLocation": { + "type": "string" + }, + "mediaType": { + "type": "string" + }, + "name": { + "type": "string" + }, + "uri": { + "type": "string" + } + }, + "type": "object" + }, + "RunDetails": { + "id": "RunDetails", + "properties": { + "builder": { + "$ref": "ProvenanceBuilder" + }, + "byproducts": { + "items": { + "$ref": "ResourceDescriptor" + }, + "type": "array" + }, + "metadata": { + "$ref": "BuildMetadata" + } + }, + "type": "object" + }, "SBOMReferenceNote": { "description": "The note representing an SBOM reference.", "id": "SBOMReferenceNote", diff --git a/containeranalysis/v1beta1/containeranalysis-gen.go b/containeranalysis/v1beta1/containeranalysis-gen.go index a336b02c358..4267889ee2b 100644 --- a/containeranalysis/v1beta1/containeranalysis-gen.go +++ b/containeranalysis/v1beta1/containeranalysis-gen.go @@ -772,6 +772,68 @@ func (s *Build) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +type BuildDefinition struct { + BuildType string `json:"buildType,omitempty"` + + ExternalParameters googleapi.RawMessage `json:"externalParameters,omitempty"` + + InternalParameters googleapi.RawMessage `json:"internalParameters,omitempty"` + + ResolvedDependencies []*ResourceDescriptor `json:"resolvedDependencies,omitempty"` + + // ForceSendFields is a list of field names (e.g. "BuildType") 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. "BuildType") 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 *BuildDefinition) MarshalJSON() ([]byte, error) { + type NoMethod BuildDefinition + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +type BuildMetadata struct { + FinishedOn string `json:"finishedOn,omitempty"` + + InvocationId string `json:"invocationId,omitempty"` + + StartedOn string `json:"startedOn,omitempty"` + + // ForceSendFields is a list of field names (e.g. "FinishedOn") 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. "FinishedOn") 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 *BuildMetadata) MarshalJSON() ([]byte, error) { + type NoMethod BuildMetadata + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // BuildProvenance: Provenance of a build. Contains all information // needed to verify the full details about the build from source to // completion. @@ -2067,6 +2129,7 @@ type ContaineranalysisGoogleDevtoolsCloudbuildV1BuildOptions struct { // "N1_HIGHCPU_32" - Highcpu machine with 32 CPUs. // "E2_HIGHCPU_8" - Highcpu e2 machine with 8 CPUs. // "E2_HIGHCPU_32" - Highcpu e2 machine with 32 CPUs. + // "E2_MEDIUM" - E2 machine with 1 CPU. MachineType string `json:"machineType,omitempty"` // Pool: Optional. Specification for execution on a `WorkerPool`. See @@ -3776,6 +3839,45 @@ func (s *Environment) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// ExportSBOMRequest: The request to a call of ExportSBOM +type ExportSBOMRequest struct { +} + +// ExportSBOMResponse: The response from a call to ExportSBOM +type ExportSBOMResponse struct { + // DiscoveryOccurrenceId: The id of the discovery occurrence that can be + // used to track the progression of the SBOM export. + DiscoveryOccurrenceId string `json:"discoveryOccurrenceId,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. + // "DiscoveryOccurrenceId") 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. "DiscoveryOccurrenceId") 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 *ExportSBOMResponse) MarshalJSON() ([]byte, error) { + type NoMethod ExportSBOMResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // Expr: 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 @@ -4365,6 +4467,8 @@ func (s *GoogleDevtoolsContaineranalysisV1alpha1OperationMetadata) MarshalJSON() // GrafeasV1beta1BuildDetails: Details of a build occurrence. type GrafeasV1beta1BuildDetails struct { + InTotoSlsaProvenanceV1 *InTotoSlsaProvenanceV1 `json:"inTotoSlsaProvenanceV1,omitempty"` + // Provenance: Required. The actual provenance for the build. Provenance *BuildProvenance `json:"provenance,omitempty"` @@ -4380,20 +4484,22 @@ type GrafeasV1beta1BuildDetails struct { // changes. ProvenanceBytes string `json:"provenanceBytes,omitempty"` - // ForceSendFields is a list of field names (e.g. "Provenance") 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 is a list of field names (e.g. + // "InTotoSlsaProvenanceV1") 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. "Provenance") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "InTotoSlsaProvenanceV1") + // 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:"-"` } @@ -4846,6 +4952,38 @@ func (s *InToto) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// InTotoSlsaProvenanceV1: Keep in sync with schema at +// https://github.com/slsa-framework/slsa/blob/main/docs/provenance/schema/v1/provenance.proto +// Builder renamed to ProvenanceBuilder because of Java conflicts. +type InTotoSlsaProvenanceV1 struct { + BuildDefinition *BuildDefinition `json:"buildDefinition,omitempty"` + + RunDetails *RunDetails `json:"runDetails,omitempty"` + + // ForceSendFields is a list of field names (e.g. "BuildDefinition") 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. "BuildDefinition") 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 *InTotoSlsaProvenanceV1) MarshalJSON() ([]byte, error) { + type NoMethod InTotoSlsaProvenanceV1 + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // Installation: This represents how a particular software package may // be installed on a system. type Installation struct { @@ -6147,6 +6285,37 @@ func (s *ProjectRepoId) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +type ProvenanceBuilder struct { + BuilderDependencies []*ResourceDescriptor `json:"builderDependencies,omitempty"` + + Id string `json:"id,omitempty"` + + Version map[string]string `json:"version,omitempty"` + + // ForceSendFields is a list of field names (e.g. "BuilderDependencies") + // 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. "BuilderDependencies") 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 *ProvenanceBuilder) MarshalJSON() ([]byte, error) { + type NoMethod ProvenanceBuilder + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // Publisher: Publisher contains information about the publisher of this // Note. type Publisher struct { @@ -6583,6 +6752,74 @@ func (s *Resource) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +type ResourceDescriptor struct { + Annotations googleapi.RawMessage `json:"annotations,omitempty"` + + Content string `json:"content,omitempty"` + + Digest map[string]string `json:"digest,omitempty"` + + DownloadLocation string `json:"downloadLocation,omitempty"` + + MediaType string `json:"mediaType,omitempty"` + + Name string `json:"name,omitempty"` + + Uri string `json:"uri,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Annotations") 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. "Annotations") 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 *ResourceDescriptor) MarshalJSON() ([]byte, error) { + type NoMethod ResourceDescriptor + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +type RunDetails struct { + Builder *ProvenanceBuilder `json:"builder,omitempty"` + + Byproducts []*ResourceDescriptor `json:"byproducts,omitempty"` + + Metadata *BuildMetadata `json:"metadata,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Builder") 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. "Builder") 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 *RunDetails) MarshalJSON() ([]byte, error) { + type NoMethod RunDetails + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // SBOMReferenceNote: The note representing an SBOM reference. type SBOMReferenceNote struct { // Format: The format that SBOM takes. E.g. may be spdx, cyclonedx, @@ -10837,6 +11074,150 @@ func (c *ProjectsOccurrencesTestIamPermissionsCall) Do(opts ...googleapi.CallOpt } +// method id "containeranalysis.projects.resources.exportSBOM": + +type ProjectsResourcesExportSBOMCall struct { + s *Service + name string + exportsbomrequest *ExportSBOMRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// ExportSBOM: Generates an SBOM and other dependency information for +// the given resource. +// +// - name: The name of the resource in the form of +// `projects/[PROJECT_ID]/resources/[RESOURCE_URL]`. +func (r *ProjectsResourcesService) ExportSBOM(name string, exportsbomrequest *ExportSBOMRequest) *ProjectsResourcesExportSBOMCall { + c := &ProjectsResourcesExportSBOMCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.exportsbomrequest = exportsbomrequest + 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 *ProjectsResourcesExportSBOMCall) Fields(s ...googleapi.Field) *ProjectsResourcesExportSBOMCall { + 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 *ProjectsResourcesExportSBOMCall) Context(ctx context.Context) *ProjectsResourcesExportSBOMCall { + 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 *ProjectsResourcesExportSBOMCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsResourcesExportSBOMCall) 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.exportsbomrequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}:exportSBOM") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "containeranalysis.projects.resources.exportSBOM" call. +// Exactly one of *ExportSBOMResponse or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *ExportSBOMResponse.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 *ProjectsResourcesExportSBOMCall) Do(opts ...googleapi.CallOption) (*ExportSBOMResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &ExportSBOMResponse{ + 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": "Generates an SBOM and other dependency information for the given resource.", + // "flatPath": "v1beta1/projects/{projectsId}/resources/{resourcesId}:exportSBOM", + // "httpMethod": "POST", + // "id": "containeranalysis.projects.resources.exportSBOM", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The name of the resource in the form of `projects/[PROJECT_ID]/resources/[RESOURCE_URL]`.", + // "location": "path", + // "pattern": "^projects/[^/]+/resources/.*$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+name}:exportSBOM", + // "request": { + // "$ref": "ExportSBOMRequest" + // }, + // "response": { + // "$ref": "ExportSBOMResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + // method id "containeranalysis.projects.resources.generatePackagesSummary": type ProjectsResourcesGeneratePackagesSummaryCall struct { diff --git a/contentwarehouse/v1/contentwarehouse-api.json b/contentwarehouse/v1/contentwarehouse-api.json index 15c52fd3a88..c4bbff9e74c 100644 --- a/contentwarehouse/v1/contentwarehouse-api.json +++ b/contentwarehouse/v1/contentwarehouse-api.json @@ -1128,7 +1128,7 @@ } } }, - "revision": "20230618", + "revision": "20230620", "rootUrl": "https://contentwarehouse.googleapis.com/", "schemas": { "AbuseiamAbuseType": { @@ -9843,6 +9843,7 @@ "MICROPHONE_PERMISSIONS", "GOOGLE_PLAY_UPDATE", "ADD_GOOGLE_ACCOUNT", + "ASSISTANT_SPOKEN_NOTIFICATIONS", "ABOUT_PHONE", "ACCOUNTS", "APPLICATION", @@ -10167,6 +10168,7 @@ "Permission Manager \u003e Microphone", "", "", + "Settings for assistant to announce messages/notifications", "Begin of NGA proto consistence", "", "", @@ -54939,7 +54941,7 @@ "GENUS_SEARCH_SPORTS", "GENUS_BUSINESSMESSAGING", "GENUS_AERIAL_VIEW", - "GENUS_DOCS_VIDEO" + "GENUS_DOCS_FLIX_RENDER" ], "enumDescriptions": [ "", @@ -54989,7 +54991,7 @@ "Genus for Search Sports vertical videos", "Genus for Business Messaging videos", "Genus for Geo Aerial View", - "Genus for Docs Video (Flix)" + "Genus for Flix Render (Docs)" ], "type": "string" }, @@ -55832,7 +55834,7 @@ "GENUS_SEARCH_SPORTS", "GENUS_BUSINESSMESSAGING", "GENUS_AERIAL_VIEW", - "GENUS_DOCS_VIDEO" + "GENUS_DOCS_FLIX_RENDER" ], "enumDescriptions": [ "", @@ -55882,7 +55884,7 @@ "Genus for Search Sports vertical videos", "Genus for Business Messaging videos", "Genus for Geo Aerial View", - "Genus for Docs Video (Flix)" + "Genus for Flix Render (Docs)" ], "type": "string" }, @@ -114529,6 +114531,9 @@ "AMPLIFY_FORM_OF_PAYMENT_ABANDONMENT_ELIGIBLE_SESSION_LEVEL", "SUBSCRIPTION_FREE_TRIAL_OFFER_HIGHLIGHT_SESSION_LEVEL", "SUBSCRIPTION_INTRO_PRICE_OFFER_HIGHLIGHT_SESSION_LEVEL", + "SUBSCRIPTION_CANCELLATION_ELIGIBLE_FOR_RENEWAL_REMINDER", + "SUBSCRIPTION_CANCELLATION_NOT_ELIGIBLE_FOR_RENEWAL_REMINDER", + "USER_HAS_SET_RENEWAL_REMINDER", "SESSION_LEVEL_TEST_CODE_LIMIT", "CART_ABANDONMENT_USER_LEVEL", "IN_APP_PRODUCTS_IN_DETAILS_PAGE_USER_LEVEL", @@ -114812,6 +114817,7 @@ "BOOKS_LOYALTY_PROMO_BANNER_WEEKLY_PRIZE_USER_LEVEL", "IS_ELIGIBLE_FOR_DYNAMIC_AUTH_USER_LEVEL", "GE_LIVEOPS_PSPEND_USER_LEVEL", + "IS_ELIGIBLE_FOR_RENEWAL_REMINDER_USER_LEVEL", "USER_LEVEL_TEST_CODE_LIMIT" ], "enumDescriptions": [ @@ -115726,6 +115732,9 @@ "Session level test code that indicates the user is eligible for an abandonment screen for a form of payment to be amplified.", "Session level test code for subscription with free trial offer highlight buyflow.", "Session level test code for subscription with intro price offer highlight buyflow.", + "Session level test code for users who are eligible to get a renewal reminder.", + "Session level test code for users who are not eligible to get a renewal reminder.", + "Session level test code for users who chose to set a renewal reminder.", "", "Cart abandonment flow for purchase flow.", "User saw/would have seen the in app products section in App", @@ -116009,6 +116018,7 @@ "User level test code for users who have seen a Loyalty weekly prize banner.", "User level test code for users who are eligible for dynamic auth.", "User level test code for LiveOps pSpend uplift experiment. If GE campaign decision changed after enabling pSpend model, log test code.", + "User level test code for users who are eligible to see the renewal reminder button.", "" ], "type": "string" @@ -116432,7 +116442,7 @@ "NS_SEARCH_SPORTS", "NS_BUSINESSMESSAGING", "NS_AERIAL_VIEW", - "NS_DOCS_VIDEO" + "NS_DOCS_FLIX_RENDER" ], "enumDescriptions": [ "Default (invalid) namespace if the field is not set.", @@ -116476,7 +116486,7 @@ "Namespace for Search Sports vertical videos.", "Namespace for Business Messaging videos.", "Namespace for Geo Aerial View", - "Namespace for Docs Video (Flix) Please receive approval via go/vp-newclients before adding a new namespace." + "Namespace for Flix Render (Docs) Please receive approval via go/vp-newclients before adding a new namespace." ], "type": "string" } diff --git a/contentwarehouse/v1/contentwarehouse-gen.go b/contentwarehouse/v1/contentwarehouse-gen.go index 43c188f4f01..f4a93cc1df4 100644 --- a/contentwarehouse/v1/contentwarehouse-gen.go +++ b/contentwarehouse/v1/contentwarehouse-gen.go @@ -11774,6 +11774,8 @@ type AssistantApiClientOpPropertiesDeviceModifySettingClientOpProperty struct { // "MICROPHONE_PERMISSIONS" - Permission Manager > Microphone // "GOOGLE_PLAY_UPDATE" // "ADD_GOOGLE_ACCOUNT" + // "ASSISTANT_SPOKEN_NOTIFICATIONS" - Settings for assistant to + // announce messages/notifications // "ABOUT_PHONE" - Begin of NGA proto consistence // "ACCOUNTS" // "APPLICATION" @@ -70195,7 +70197,7 @@ type ImageRepositoryApiItagSpecificMetadata struct { // "GENUS_SEARCH_SPORTS" - Genus for Search Sports vertical videos // "GENUS_BUSINESSMESSAGING" - Genus for Business Messaging videos // "GENUS_AERIAL_VIEW" - Genus for Geo Aerial View - // "GENUS_DOCS_VIDEO" - Genus for Docs Video (Flix) + // "GENUS_DOCS_FLIX_RENDER" - Genus for Flix Render (Docs) Genus string `json:"genus,omitempty"` // State: Indicates the state in Venom for this transcode type. @@ -71512,7 +71514,7 @@ type ImageRepositoryVenomStatus struct { // "GENUS_SEARCH_SPORTS" - Genus for Search Sports vertical videos // "GENUS_BUSINESSMESSAGING" - Genus for Business Messaging videos // "GENUS_AERIAL_VIEW" - Genus for Geo Aerial View - // "GENUS_DOCS_VIDEO" - Genus for Docs Video (Flix) + // "GENUS_DOCS_FLIX_RENDER" - Genus for Flix Render (Docs) Genus string `json:"genus,omitempty"` // InsertionResponseTimestampUsec: Time that VideoNotification result @@ -145785,6 +145787,13 @@ type VendingConsumerProtoTrustedGenomeAnnotation struct { // "SUBSCRIPTION_INTRO_PRICE_OFFER_HIGHLIGHT_SESSION_LEVEL" - Session // level test code for subscription with intro price offer highlight // buyflow. + // "SUBSCRIPTION_CANCELLATION_ELIGIBLE_FOR_RENEWAL_REMINDER" - Session + // level test code for users who are eligible to get a renewal reminder. + // "SUBSCRIPTION_CANCELLATION_NOT_ELIGIBLE_FOR_RENEWAL_REMINDER" - + // Session level test code for users who are not eligible to get a + // renewal reminder. + // "USER_HAS_SET_RENEWAL_REMINDER" - Session level test code for users + // who chose to set a renewal reminder. // "SESSION_LEVEL_TEST_CODE_LIMIT" // "CART_ABANDONMENT_USER_LEVEL" - Cart abandonment flow for purchase // flow. @@ -146301,6 +146310,8 @@ type VendingConsumerProtoTrustedGenomeAnnotation struct { // "GE_LIVEOPS_PSPEND_USER_LEVEL" - User level test code for LiveOps // pSpend uplift experiment. If GE campaign decision changed after // enabling pSpend model, log test code. + // "IS_ELIGIBLE_FOR_RENEWAL_REMINDER_USER_LEVEL" - User level test + // code for users who are eligible to see the renewal reminder button. // "USER_LEVEL_TEST_CODE_LIMIT" TestCode []string `json:"testCode,omitempty"` @@ -146895,8 +146906,8 @@ type VideoAssetsVenomVideoId struct { // "NS_SEARCH_SPORTS" - Namespace for Search Sports vertical videos. // "NS_BUSINESSMESSAGING" - Namespace for Business Messaging videos. // "NS_AERIAL_VIEW" - Namespace for Geo Aerial View - // "NS_DOCS_VIDEO" - Namespace for Docs Video (Flix) Please receive - // approval via go/vp-newclients before adding a new namespace. + // "NS_DOCS_FLIX_RENDER" - Namespace for Flix Render (Docs) Please + // receive approval via go/vp-newclients before adding a new namespace. Ns string `json:"ns,omitempty"` // ForceSendFields is a list of field names (e.g. "Id") to diff --git a/datacatalog/v1/datacatalog-api.json b/datacatalog/v1/datacatalog-api.json index 8fcb0ae39fe..033d8b10616 100644 --- a/datacatalog/v1/datacatalog-api.json +++ b/datacatalog/v1/datacatalog-api.json @@ -2144,7 +2144,7 @@ } } }, - "revision": "20230526", + "revision": "20230619", "rootUrl": "https://datacatalog.googleapis.com/", "schemas": { "Binding": { @@ -2902,7 +2902,7 @@ "description": "Specification that applies to a relational database system. Only settable when `user_specified_system` is equal to `SQL_DATABASE`" }, "type": { - "description": "The type of the entry. Only used for entries with types listed in the `EntryType` enum. Currently, only `FILESET` enum value is allowed. All other entries created in Data Catalog must use the `user_specified_type`.", + "description": "The type of the entry. For details, see [`EntryType`](#entrytype).", "enum": [ "ENTRY_TYPE_UNSPECIFIED", "TABLE", @@ -2924,13 +2924,13 @@ "enumDescriptions": [ "Default unknown type.", "The entry type that has a GoogleSQL schema, including logical views.", - "Output only. The type of models. For more information, see [Supported models in BigQuery ML] (https://cloud.google.com/bigquery-ml/docs/introduction#supported_models_in).", + "The type of models. For more information, see [Supported models in BigQuery ML](/bigquery/docs/bqml-introduction#supported_models).", "An entry type for streaming entries. For example, a Pub/Sub topic.", "An entry type for a set of files or objects. For example, a Cloud Storage fileset.", "A group of servers that work together. For example, a Kafka cluster.", "A database.", - "Output only. Connection to a data source. For example, a BigQuery connection.", - "Output only. Routine, for example, a BigQuery routine.", + "Connection to a data source. For example, a BigQuery connection.", + "Routine, for example, a BigQuery routine.", "A Dataplex lake.", "A Dataplex zone.", "A service, for example, a Dataproc Metastore service.", @@ -3694,11 +3694,11 @@ "id": "GoogleCloudDatacatalogV1SearchCatalogRequest", "properties": { "orderBy": { - "description": "Specifies the order of results. Currently supported case-sensitive values are: * `relevance` that can only be descending * `last_modified_timestamp [asc|desc]` with descending (`desc`) as default * `default` that can only be descending If this parameter is omitted, it defaults to the descending `relevance`.", + "description": "Specifies the order of results. Currently supported case-sensitive values are: * `relevance` that can only be descending * `last_modified_timestamp [asc|desc]` with descending (`desc`) as default * `default` that can only be descending Search queries don't guarantee full recall. Results that match your query might not be returned, even in subsequent result pages. Additionally, returned (and not returned) results can vary if you repeat search queries. If you are experiencing recall issues and you don't have to fetch the results in any specific order, consider setting this parameter to `default`. If this parameter is omitted, it defaults to the descending `relevance`.", "type": "string" }, "pageSize": { - "description": "Number of results to return in a single search page. Can't be negative or 0, defaults to 10 in this case. The maximum number is 1000. If exceeded, throws an \"invalid argument\" exception.", + "description": "Upper bound on the number of results you can get in a single response. Can't be negative or 0, defaults to 10 in this case. The maximum number is 1000. If exceeded, throws an \"invalid argument\" exception.", "format": "int32", "type": "integer" }, diff --git a/datacatalog/v1/datacatalog-gen.go b/datacatalog/v1/datacatalog-gen.go index 05866d8efc5..b962b28e1f4 100644 --- a/datacatalog/v1/datacatalog-gen.go +++ b/datacatalog/v1/datacatalog-gen.go @@ -1589,18 +1589,16 @@ type GoogleCloudDatacatalogV1Entry struct { // to `SQL_DATABASE` SqlDatabaseSystemSpec *GoogleCloudDatacatalogV1SqlDatabaseSystemSpec `json:"sqlDatabaseSystemSpec,omitempty"` - // Type: The type of the entry. Only used for entries with types listed - // in the `EntryType` enum. Currently, only `FILESET` enum value is - // allowed. All other entries created in Data Catalog must use the - // `user_specified_type`. + // Type: The type of the entry. For details, see `EntryType` + // (#entrytype). // // Possible values: // "ENTRY_TYPE_UNSPECIFIED" - Default unknown type. // "TABLE" - The entry type that has a GoogleSQL schema, including // logical views. - // "MODEL" - Output only. The type of models. For more information, - // see [Supported models in BigQuery ML] - // (https://cloud.google.com/bigquery-ml/docs/introduction#supported_models_in). + // "MODEL" - The type of models. For more information, see [Supported + // models in BigQuery + // ML](/bigquery/docs/bqml-introduction#supported_models). // "DATA_STREAM" - An entry type for streaming entries. For example, a // Pub/Sub topic. // "FILESET" - An entry type for a set of files or objects. For @@ -1608,9 +1606,9 @@ type GoogleCloudDatacatalogV1Entry struct { // "CLUSTER" - A group of servers that work together. For example, a // Kafka cluster. // "DATABASE" - A database. - // "DATA_SOURCE_CONNECTION" - Output only. Connection to a data - // source. For example, a BigQuery connection. - // "ROUTINE" - Output only. Routine, for example, a BigQuery routine. + // "DATA_SOURCE_CONNECTION" - Connection to a data source. For + // example, a BigQuery connection. + // "ROUTINE" - Routine, for example, a BigQuery routine. // "LAKE" - A Dataplex lake. // "ZONE" - A Dataplex zone. // "SERVICE" - A service, for example, a Dataproc Metastore service. @@ -3106,13 +3104,20 @@ type GoogleCloudDatacatalogV1SearchCatalogRequest struct { // OrderBy: Specifies the order of results. Currently supported // case-sensitive values are: * `relevance` that can only be descending // * `last_modified_timestamp [asc|desc]` with descending (`desc`) as - // default * `default` that can only be descending If this parameter is - // omitted, it defaults to the descending `relevance`. + // default * `default` that can only be descending Search queries don't + // guarantee full recall. Results that match your query might not be + // returned, even in subsequent result pages. Additionally, returned + // (and not returned) results can vary if you repeat search queries. If + // you are experiencing recall issues and you don't have to fetch the + // results in any specific order, consider setting this parameter to + // `default`. If this parameter is omitted, it defaults to the + // descending `relevance`. OrderBy string `json:"orderBy,omitempty"` - // PageSize: Number of results to return in a single search page. Can't - // be negative or 0, defaults to 10 in this case. The maximum number is - // 1000. If exceeded, throws an "invalid argument" exception. + // PageSize: Upper bound on the number of results you can get in a + // single response. Can't be negative or 0, defaults to 10 in this case. + // The maximum number is 1000. If exceeded, throws an "invalid argument" + // exception. PageSize int64 `json:"pageSize,omitempty"` // PageToken: Optional. Pagination token that, if specified, returns the diff --git a/datacatalog/v1beta1/datacatalog-api.json b/datacatalog/v1beta1/datacatalog-api.json index 61bbd5e8ea6..c8beb689d4b 100644 --- a/datacatalog/v1beta1/datacatalog-api.json +++ b/datacatalog/v1beta1/datacatalog-api.json @@ -1813,7 +1813,7 @@ } } }, - "revision": "20230421", + "revision": "20230619", "rootUrl": "https://datacatalog.googleapis.com/", "schemas": { "Binding": { @@ -2560,7 +2560,7 @@ "description": "Specification that applies to a relational database system. Only settable when `user_specified_system` is equal to `SQL_DATABASE`" }, "type": { - "description": "The type of the entry. Only used for entries with types listed in the `EntryType` enum. Currently, only `FILESET` enum value is allowed. All other entries created in Data Catalog must use the `user_specified_type`.", + "description": "The type of the entry. For details, see [`EntryType`](#entrytype).", "enum": [ "ENTRY_TYPE_UNSPECIFIED", "TABLE", @@ -2582,13 +2582,13 @@ "enumDescriptions": [ "Default unknown type.", "The entry type that has a GoogleSQL schema, including logical views.", - "Output only. The type of models. For more information, see [Supported models in BigQuery ML] (https://cloud.google.com/bigquery-ml/docs/introduction#supported_models_in).", + "The type of models. For more information, see [Supported models in BigQuery ML](/bigquery/docs/bqml-introduction#supported_models).", "An entry type for streaming entries. For example, a Pub/Sub topic.", "An entry type for a set of files or objects. For example, a Cloud Storage fileset.", "A group of servers that work together. For example, a Kafka cluster.", "A database.", - "Output only. Connection to a data source. For example, a BigQuery connection.", - "Output only. Routine, for example, a BigQuery routine.", + "Connection to a data source. For example, a BigQuery connection.", + "Routine, for example, a BigQuery routine.", "A Dataplex lake.", "A Dataplex zone.", "A service, for example, a Dataproc Metastore service.", diff --git a/datacatalog/v1beta1/datacatalog-gen.go b/datacatalog/v1beta1/datacatalog-gen.go index 80ae7493d4e..cb8e8cba366 100644 --- a/datacatalog/v1beta1/datacatalog-gen.go +++ b/datacatalog/v1beta1/datacatalog-gen.go @@ -1543,18 +1543,16 @@ type GoogleCloudDatacatalogV1Entry struct { // to `SQL_DATABASE` SqlDatabaseSystemSpec *GoogleCloudDatacatalogV1SqlDatabaseSystemSpec `json:"sqlDatabaseSystemSpec,omitempty"` - // Type: The type of the entry. Only used for entries with types listed - // in the `EntryType` enum. Currently, only `FILESET` enum value is - // allowed. All other entries created in Data Catalog must use the - // `user_specified_type`. + // Type: The type of the entry. For details, see `EntryType` + // (#entrytype). // // Possible values: // "ENTRY_TYPE_UNSPECIFIED" - Default unknown type. // "TABLE" - The entry type that has a GoogleSQL schema, including // logical views. - // "MODEL" - Output only. The type of models. For more information, - // see [Supported models in BigQuery ML] - // (https://cloud.google.com/bigquery-ml/docs/introduction#supported_models_in). + // "MODEL" - The type of models. For more information, see [Supported + // models in BigQuery + // ML](/bigquery/docs/bqml-introduction#supported_models). // "DATA_STREAM" - An entry type for streaming entries. For example, a // Pub/Sub topic. // "FILESET" - An entry type for a set of files or objects. For @@ -1562,9 +1560,9 @@ type GoogleCloudDatacatalogV1Entry struct { // "CLUSTER" - A group of servers that work together. For example, a // Kafka cluster. // "DATABASE" - A database. - // "DATA_SOURCE_CONNECTION" - Output only. Connection to a data - // source. For example, a BigQuery connection. - // "ROUTINE" - Output only. Routine, for example, a BigQuery routine. + // "DATA_SOURCE_CONNECTION" - Connection to a data source. For + // example, a BigQuery connection. + // "ROUTINE" - Routine, for example, a BigQuery routine. // "LAKE" - A Dataplex lake. // "ZONE" - A Dataplex zone. // "SERVICE" - A service, for example, a Dataproc Metastore service. diff --git a/dataform/v1beta1/dataform-api.json b/dataform/v1beta1/dataform-api.json index f88b32a27a9..7b4173f92b5 100644 --- a/dataform/v1beta1/dataform-api.json +++ b/dataform/v1beta1/dataform-api.json @@ -1816,7 +1816,7 @@ } } }, - "revision": "20230512", + "revision": "20230616", "rootUrl": "https://dataform.googleapis.com/", "schemas": { "Assertion": { @@ -2255,7 +2255,7 @@ "type": "string" }, "tokenStatus": { - "description": "Output only. Indicates the status of the Git access token.", + "description": "Output only. Deprecated: The field does not contain any token status information. Instead use https://cloud.google.com/dataform/reference/rest/v1beta1/projects.locations.repositories/computeAccessTokenStatus", "enum": [ "TOKEN_STATUS_UNSPECIFIED", "NOT_FOUND", @@ -3261,7 +3261,7 @@ "id": "WorkflowInvocation", "properties": { "compilationResult": { - "description": "Immutable. The name of the compilation result to compile. Must be in the format `projects/*/locations/*/repositories/*/compilationResults/*`.", + "description": "Immutable. The name of the compilation result to use for this invocation. Must be in the format `projects/*/locations/*/repositories/*/compilationResults/*`.", "type": "string" }, "invocationConfig": { diff --git a/dataform/v1beta1/dataform-gen.go b/dataform/v1beta1/dataform-gen.go index cc8deff486c..a3460918db8 100644 --- a/dataform/v1beta1/dataform-gen.go +++ b/dataform/v1beta1/dataform-gen.go @@ -1039,8 +1039,9 @@ type GitRemoteSettings struct { // DefaultBranch: Required. The Git remote's default branch name. DefaultBranch string `json:"defaultBranch,omitempty"` - // TokenStatus: Output only. Indicates the status of the Git access - // token. + // TokenStatus: Output only. Deprecated: The field does not contain any + // token status information. Instead use + // https://cloud.google.com/dataform/reference/rest/v1beta1/projects.locations.repositories/computeAccessTokenStatus // // Possible values: // "TOKEN_STATUS_UNSPECIFIED" - Default value. This value is unused. @@ -2786,7 +2787,7 @@ func (s *WorkflowConfig) MarshalJSON() ([]byte, error) { // result. type WorkflowInvocation struct { // CompilationResult: Immutable. The name of the compilation result to - // compile. Must be in the format + // use for this invocation. Must be in the format // `projects/*/locations/*/repositories/*/compilationResults/*`. CompilationResult string `json:"compilationResult,omitempty"` diff --git a/datamigration/v1/datamigration-api.json b/datamigration/v1/datamigration-api.json index 2051c67dd93..428f6ecad84 100644 --- a/datamigration/v1/datamigration-api.json +++ b/datamigration/v1/datamigration-api.json @@ -640,6 +640,11 @@ "name" ], "parameters": { + "force": { + "description": "Force delete the conversion workspace, even if there's a running migration that is using the workspace.", + "location": "query", + "type": "boolean" + }, "name": { "description": "Required. Name of the conversion workspace resource to delete.", "location": "path", @@ -1188,6 +1193,34 @@ "https://www.googleapis.com/auth/cloud-platform" ] }, + "generateTcpProxyScript": { + "description": "Generate a TCP Proxy configuration script to configure a cloud-hosted VM running a TCP Proxy.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/migrationJobs/{migrationJobsId}:generateTcpProxyScript", + "httpMethod": "POST", + "id": "datamigration.projects.locations.migrationJobs.generateTcpProxyScript", + "parameterOrder": [ + "migrationJob" + ], + "parameters": { + "migrationJob": { + "description": "Name of the migration job resource to generate the TCP Proxy script.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/migrationJobs/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+migrationJob}:generateTcpProxyScript", + "request": { + "$ref": "GenerateTcpProxyScriptRequest" + }, + "response": { + "$ref": "TcpProxyScript" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, "get": { "description": "Gets details of a single migration job.", "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/migrationJobs/{migrationJobsId}", @@ -1918,7 +1951,7 @@ } } }, - "revision": "20230610", + "revision": "20230622", "rootUrl": "https://datamigration.googleapis.com/", "schemas": { "AlloyDbConnectionProfile": { @@ -2279,6 +2312,20 @@ ], "type": "string" }, + "edition": { + "description": "Optional. The edition of the given Cloud SQL instance.", + "enum": [ + "EDITION_UNSPECIFIED", + "ENTERPRISE", + "ENTERPRISE_PLUS" + ], + "enumDescriptions": [ + "The instance did not specify the edition.", + "The instance is an enterprise edition.", + "The instance is an enterprise plus edition." + ], + "type": "string" + }, "ipConfig": { "$ref": "SqlIpConfig", "description": "The settings for IP Management. This allows to enable or disable the instance IP and manage which external networks can connect to the instance. The IPv4 address cannot be disabled." @@ -3160,6 +3207,29 @@ }, "type": "object" }, + "GenerateTcpProxyScriptRequest": { + "description": "Request message for 'GenerateTcpProxyScript' request.", + "id": "GenerateTcpProxyScriptRequest", + "properties": { + "vmMachineType": { + "description": "Required. The type of the Compute instance that will host the proxy.", + "type": "string" + }, + "vmName": { + "description": "Required. The name of the Compute instance that will host the proxy.", + "type": "string" + }, + "vmSubnet": { + "description": "Required. The name of the subnet the Compute instance will use for private connectivity. Must be supplied in the form of projects/{project}/regions/{region}/subnetworks/{subnetwork}. Note: the region for the subnet must match the Compute instance region.", + "type": "string" + }, + "vmZone": { + "description": "Optional. The Google Cloud Platform zone to create the VM in. The fully qualified name of the zone must be specified, including the region name, for example \"us-central1-b\". If not specified, uses the \"-b\" zone of the destination Connection Profile's region.", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudClouddmsV1OperationMetadata": { "description": "Represents the metadata of the long-running operation.", "id": "GoogleCloudClouddmsV1OperationMetadata", @@ -4545,6 +4615,17 @@ }, "type": "object" }, + "TcpProxyScript": { + "description": "Response message for 'GenerateTcpProxyScript' request.", + "id": "TcpProxyScript", + "properties": { + "script": { + "description": "The TCP Proxy configuration script.", + "type": "string" + } + }, + "type": "object" + }, "TestIamPermissionsRequest": { "description": "Request message for `TestIamPermissions` method.", "id": "TestIamPermissionsRequest", diff --git a/datamigration/v1/datamigration-gen.go b/datamigration/v1/datamigration-gen.go index a0b4d26ebb8..88df6d82a7f 100644 --- a/datamigration/v1/datamigration-gen.go +++ b/datamigration/v1/datamigration-gen.go @@ -767,6 +767,14 @@ type CloudSqlSettings struct { // "POSTGRES_15" - PostgreSQL 15. DatabaseVersion string `json:"databaseVersion,omitempty"` + // Edition: Optional. The edition of the given Cloud SQL instance. + // + // Possible values: + // "EDITION_UNSPECIFIED" - The instance did not specify the edition. + // "ENTERPRISE" - The instance is an enterprise edition. + // "ENTERPRISE_PLUS" - The instance is an enterprise plus edition. + Edition string `json:"edition,omitempty"` + // IpConfig: The settings for IP Management. This allows to enable or // disable the instance IP and manage which external networks can // connect to the instance. The IPv4 address cannot be disabled. @@ -1958,6 +1966,52 @@ func (s *GenerateSshScriptRequest) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GenerateTcpProxyScriptRequest: Request message for +// 'GenerateTcpProxyScript' request. +type GenerateTcpProxyScriptRequest struct { + // VmMachineType: Required. The type of the Compute instance that will + // host the proxy. + VmMachineType string `json:"vmMachineType,omitempty"` + + // VmName: Required. The name of the Compute instance that will host the + // proxy. + VmName string `json:"vmName,omitempty"` + + // VmSubnet: Required. The name of the subnet the Compute instance will + // use for private connectivity. Must be supplied in the form of + // projects/{project}/regions/{region}/subnetworks/{subnetwork}. Note: + // the region for the subnet must match the Compute instance region. + VmSubnet string `json:"vmSubnet,omitempty"` + + // VmZone: Optional. The Google Cloud Platform zone to create the VM in. + // The fully qualified name of the zone must be specified, including the + // region name, for example "us-central1-b". If not specified, uses the + // "-b" zone of the destination Connection Profile's region. + VmZone string `json:"vmZone,omitempty"` + + // ForceSendFields is a list of field names (e.g. "VmMachineType") 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. "VmMachineType") 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 *GenerateTcpProxyScriptRequest) MarshalJSON() ([]byte, error) { + type NoMethod GenerateTcpProxyScriptRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudClouddmsV1OperationMetadata: Represents the metadata of // the long-running operation. type GoogleCloudClouddmsV1OperationMetadata struct { @@ -3990,6 +4044,39 @@ func (s *TableEntity) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// TcpProxyScript: Response message for 'GenerateTcpProxyScript' +// request. +type TcpProxyScript struct { + // Script: The TCP Proxy configuration script. + Script string `json:"script,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "Script") 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. "Script") 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 *TcpProxyScript) MarshalJSON() ([]byte, error) { + type NoMethod TcpProxyScript + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // TestIamPermissionsRequest: Request message for `TestIamPermissions` // method. type TestIamPermissionsRequest struct { @@ -6886,6 +6973,14 @@ func (r *ProjectsLocationsConversionWorkspacesService) Delete(name string) *Proj return c } +// Force sets the optional parameter "force": Force delete the +// conversion workspace, even if there's a running migration that is +// using the workspace. +func (c *ProjectsLocationsConversionWorkspacesDeleteCall) Force(force bool) *ProjectsLocationsConversionWorkspacesDeleteCall { + c.urlParams_.Set("force", fmt.Sprint(force)) + return c +} + // RequestId sets the optional parameter "requestId": A unique ID used // to identify the request. If the server receives two requests with the // same ID, then the second request is ignored. It is recommended to @@ -6991,6 +7086,11 @@ func (c *ProjectsLocationsConversionWorkspacesDeleteCall) Do(opts ...googleapi.C // "name" // ], // "parameters": { + // "force": { + // "description": "Force delete the conversion workspace, even if there's a running migration that is using the workspace.", + // "location": "query", + // "type": "boolean" + // }, // "name": { // "description": "Required. Name of the conversion workspace resource to delete.", // "location": "path", @@ -9569,6 +9669,150 @@ func (c *ProjectsLocationsMigrationJobsGenerateSshScriptCall) Do(opts ...googlea } +// method id "datamigration.projects.locations.migrationJobs.generateTcpProxyScript": + +type ProjectsLocationsMigrationJobsGenerateTcpProxyScriptCall struct { + s *Service + migrationJob string + generatetcpproxyscriptrequest *GenerateTcpProxyScriptRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// GenerateTcpProxyScript: Generate a TCP Proxy configuration script to +// configure a cloud-hosted VM running a TCP Proxy. +// +// - migrationJob: Name of the migration job resource to generate the +// TCP Proxy script. +func (r *ProjectsLocationsMigrationJobsService) GenerateTcpProxyScript(migrationJob string, generatetcpproxyscriptrequest *GenerateTcpProxyScriptRequest) *ProjectsLocationsMigrationJobsGenerateTcpProxyScriptCall { + c := &ProjectsLocationsMigrationJobsGenerateTcpProxyScriptCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.migrationJob = migrationJob + c.generatetcpproxyscriptrequest = generatetcpproxyscriptrequest + 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 *ProjectsLocationsMigrationJobsGenerateTcpProxyScriptCall) Fields(s ...googleapi.Field) *ProjectsLocationsMigrationJobsGenerateTcpProxyScriptCall { + 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 *ProjectsLocationsMigrationJobsGenerateTcpProxyScriptCall) Context(ctx context.Context) *ProjectsLocationsMigrationJobsGenerateTcpProxyScriptCall { + 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 *ProjectsLocationsMigrationJobsGenerateTcpProxyScriptCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsMigrationJobsGenerateTcpProxyScriptCall) 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.generatetcpproxyscriptrequest) + 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/{+migrationJob}:generateTcpProxyScript") + 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{ + "migrationJob": c.migrationJob, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "datamigration.projects.locations.migrationJobs.generateTcpProxyScript" call. +// Exactly one of *TcpProxyScript or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *TcpProxyScript.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 *ProjectsLocationsMigrationJobsGenerateTcpProxyScriptCall) Do(opts ...googleapi.CallOption) (*TcpProxyScript, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &TcpProxyScript{ + 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": "Generate a TCP Proxy configuration script to configure a cloud-hosted VM running a TCP Proxy.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/migrationJobs/{migrationJobsId}:generateTcpProxyScript", + // "httpMethod": "POST", + // "id": "datamigration.projects.locations.migrationJobs.generateTcpProxyScript", + // "parameterOrder": [ + // "migrationJob" + // ], + // "parameters": { + // "migrationJob": { + // "description": "Name of the migration job resource to generate the TCP Proxy script.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/migrationJobs/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+migrationJob}:generateTcpProxyScript", + // "request": { + // "$ref": "GenerateTcpProxyScriptRequest" + // }, + // "response": { + // "$ref": "TcpProxyScript" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + // method id "datamigration.projects.locations.migrationJobs.get": type ProjectsLocationsMigrationJobsGetCall struct { diff --git a/dataplex/v1/dataplex-api.json b/dataplex/v1/dataplex-api.json index ae272602cb4..1589e759f44 100644 --- a/dataplex/v1/dataplex-api.json +++ b/dataplex/v1/dataplex-api.json @@ -4269,7 +4269,7 @@ } } }, - "revision": "20230607", + "revision": "20230616", "rootUrl": "https://dataplex.googleapis.com/", "schemas": { "Empty": { @@ -5200,7 +5200,7 @@ "description": "String type field information." }, "topNValues": { - "description": "The list of top N non-null values and number of times they occur in the scanned data. N is 10 or equal to the number of distinct values in the field, whichever is smaller. Not available for complex non-groupable field type RECORD and fields with REPEATABLE mode.", + "description": "The list of top N non-null values, frequency and ratio with which they occur in the scanned data. N is 10 or equal to the number of distinct values in the field, whichever is smaller. Not available for complex non-groupable field type RECORD and fields with REPEATABLE mode.", "items": { "$ref": "GoogleCloudDataplexV1DataProfileResultProfileFieldProfileInfoTopNValue" }, @@ -5310,6 +5310,11 @@ "format": "int64", "type": "string" }, + "ratio": { + "description": "Ratio of the corresponding value in the field against the total number of rows in the scanned data.", + "format": "double", + "type": "number" + }, "value": { "description": "String value of a top N non-null value.", "type": "string" @@ -5408,50 +5413,58 @@ "description": "Optional. The unnested column which this rule is evaluated against.", "type": "string" }, + "description": { + "description": "Optional. Description of the rule. The maximum length is 1,024 characters.", + "type": "string" + }, "dimension": { "description": "Required. The dimension a rule belongs to. Results are also aggregated at the dimension level. Supported dimensions are \"COMPLETENESS\", \"ACCURACY\", \"CONSISTENCY\", \"VALIDITY\", \"UNIQUENESS\", \"INTEGRITY\"", "type": "string" }, "ignoreNull": { - "description": "Optional. Rows with null values will automatically fail a rule, unless ignore_null is true. In that case, such null rows are trivially considered passing.Only applicable to ColumnMap rules.", + "description": "Optional. Rows with null values will automatically fail a rule, unless ignore_null is true. In that case, such null rows are trivially considered passing.This field is only valid for row-level type rules.", "type": "boolean" }, + "name": { + "description": "Optional. A mutable name for the rule. The name must contain only letters (a-z, A-Z), numbers (0-9), or hyphens (-). The maximum length is 63 characters. Must start with a letter. Must end with a number or a letter.", + "type": "string" + }, "nonNullExpectation": { "$ref": "GoogleCloudDataplexV1DataQualityRuleNonNullExpectation", - "description": "ColumnMap rule which evaluates whether each column value is null." + "description": "Row-level rule which evaluates whether each column value is null." }, "rangeExpectation": { "$ref": "GoogleCloudDataplexV1DataQualityRuleRangeExpectation", - "description": "ColumnMap rule which evaluates whether each column value lies between a specified range." + "description": "Row-level rule which evaluates whether each column value lies between a specified range." }, "regexExpectation": { "$ref": "GoogleCloudDataplexV1DataQualityRuleRegexExpectation", - "description": "ColumnMap rule which evaluates whether each column value matches a specified regex." + "description": "Row-level rule which evaluates whether each column value matches a specified regex." }, "rowConditionExpectation": { "$ref": "GoogleCloudDataplexV1DataQualityRuleRowConditionExpectation", - "description": "Table rule which evaluates whether each row passes the specified condition." + "description": "Row-level rule which evaluates whether each row in a table passes the specified condition." }, "setExpectation": { "$ref": "GoogleCloudDataplexV1DataQualityRuleSetExpectation", - "description": "ColumnMap rule which evaluates whether each column value is contained by a specified set." + "description": "Row-level rule which evaluates whether each column value is contained by a specified set." }, "statisticRangeExpectation": { "$ref": "GoogleCloudDataplexV1DataQualityRuleStatisticRangeExpectation", - "description": "ColumnAggregate rule which evaluates whether the column aggregate statistic lies between a specified range." + "description": "Aggregate rule which evaluates whether the column aggregate statistic lies between a specified range." }, "tableConditionExpectation": { "$ref": "GoogleCloudDataplexV1DataQualityRuleTableConditionExpectation", - "description": "Table rule which evaluates whether the provided expression is true." + "description": "Aggregate rule which evaluates whether the provided expression is true for a table." }, "threshold": { - "description": "Optional. The minimum ratio of passing_rows / total_rows required to pass this rule, with a range of 0.0, 1.0.0 indicates default value (i.e. 1.0).", + "description": "Optional. The minimum ratio of passing_rows / total_rows required to pass this rule, with a range of 0.0, 1.0.0 indicates default value (i.e. 1.0).This field is only valid for row-level type rules.", "format": "double", "type": "number" }, "uniquenessExpectation": { "$ref": "GoogleCloudDataplexV1DataQualityRuleUniquenessExpectation", - "description": "ColumnAggregate rule which evaluates whether the column has duplicates." + "description": "Aggregate rule which evaluates whether the column has duplicates." } }, "type": "object" @@ -5501,12 +5514,12 @@ "id": "GoogleCloudDataplexV1DataQualityRuleResult", "properties": { "evaluatedCount": { - "description": "The number of rows a rule was evaluated against. This field is only valid for ColumnMap type rules.Evaluated count can be configured to either include all rows (default) - with null rows automatically failing rule evaluation, or exclude null rows from the evaluated_count, by setting ignore_nulls = true.", + "description": "The number of rows a rule was evaluated against.This field is only valid for row-level type rules.Evaluated count can be configured to either include all rows (default) - with null rows automatically failing rule evaluation, or exclude null rows from the evaluated_count, by setting ignore_nulls = true.", "format": "int64", "type": "string" }, "failingRowsQuery": { - "description": "The query to find rows that did not pass this rule. Only applies to ColumnMap and RowCondition rules.", + "description": "The query to find rows that did not pass this rule.This field is only valid for row-level type rules.", "type": "string" }, "nullCount": { @@ -5515,7 +5528,7 @@ "type": "string" }, "passRatio": { - "description": "The ratio of passed_count / evaluated_count. This field is only valid for ColumnMap type rules.", + "description": "The ratio of passed_count / evaluated_count.This field is only valid for row-level type rules.", "format": "double", "type": "number" }, @@ -5524,7 +5537,7 @@ "type": "boolean" }, "passedCount": { - "description": "The number of rows which passed a rule evaluation. This field is only valid for ColumnMap type rules.", + "description": "The number of rows which passed a rule evaluation.This field is only valid for row-level type rules.", "format": "int64", "type": "string" }, diff --git a/dataplex/v1/dataplex-gen.go b/dataplex/v1/dataplex-gen.go index 3c34acd8b5c..852f3ee4608 100644 --- a/dataplex/v1/dataplex-gen.go +++ b/dataplex/v1/dataplex-gen.go @@ -1748,11 +1748,11 @@ type GoogleCloudDataplexV1DataProfileResultProfileFieldProfileInfo struct { // StringProfile: String type field information. StringProfile *GoogleCloudDataplexV1DataProfileResultProfileFieldProfileInfoStringFieldInfo `json:"stringProfile,omitempty"` - // TopNValues: The list of top N non-null values and number of times - // they occur in the scanned data. N is 10 or equal to the number of - // distinct values in the field, whichever is smaller. Not available for - // complex non-groupable field type RECORD and fields with REPEATABLE - // mode. + // TopNValues: The list of top N non-null values, frequency and ratio + // with which they occur in the scanned data. N is 10 or equal to the + // number of distinct values in the field, whichever is smaller. Not + // available for complex non-groupable field type RECORD and fields with + // REPEATABLE mode. TopNValues []*GoogleCloudDataplexV1DataProfileResultProfileFieldProfileInfoTopNValue `json:"topNValues,omitempty"` // ForceSendFields is a list of field names (e.g. "DistinctRatio") to @@ -2000,6 +2000,10 @@ type GoogleCloudDataplexV1DataProfileResultProfileFieldProfileInfoTopNValue stru // Count: Count of the corresponding value in the scanned data. Count int64 `json:"count,omitempty,string"` + // Ratio: Ratio of the corresponding value in the field against the + // total number of rows in the scanned data. + Ratio float64 `json:"ratio,omitempty"` + // Value: String value of a top N non-null value. Value string `json:"value,omitempty"` @@ -2026,6 +2030,20 @@ func (s *GoogleCloudDataplexV1DataProfileResultProfileFieldProfileInfoTopNValue) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +func (s *GoogleCloudDataplexV1DataProfileResultProfileFieldProfileInfoTopNValue) UnmarshalJSON(data []byte) error { + type NoMethod GoogleCloudDataplexV1DataProfileResultProfileFieldProfileInfoTopNValue + var s1 struct { + Ratio gensupport.JSONFloat64 `json:"ratio"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.Ratio = float64(s1.Ratio) + return nil +} + // GoogleCloudDataplexV1DataProfileSpec: DataProfileScan related // setting. type GoogleCloudDataplexV1DataProfileSpec struct { @@ -2199,6 +2217,10 @@ type GoogleCloudDataplexV1DataQualityRule struct { // against. Column string `json:"column,omitempty"` + // Description: Optional. Description of the rule. The maximum length is + // 1,024 characters. + Description string `json:"description,omitempty"` + // Dimension: Required. The dimension a rule belongs to. Results are // also aggregated at the dimension level. Supported dimensions are // "COMPLETENESS", "ACCURACY", "CONSISTENCY", "VALIDITY", "UNIQUENESS", @@ -2207,45 +2229,52 @@ type GoogleCloudDataplexV1DataQualityRule struct { // IgnoreNull: Optional. Rows with null values will automatically fail a // rule, unless ignore_null is true. In that case, such null rows are - // trivially considered passing.Only applicable to ColumnMap rules. + // trivially considered passing.This field is only valid for row-level + // type rules. IgnoreNull bool `json:"ignoreNull,omitempty"` - // NonNullExpectation: ColumnMap rule which evaluates whether each + // Name: Optional. A mutable name for the rule. The name must contain + // only letters (a-z, A-Z), numbers (0-9), or hyphens (-). The maximum + // length is 63 characters. Must start with a letter. Must end with a + // number or a letter. + Name string `json:"name,omitempty"` + + // NonNullExpectation: Row-level rule which evaluates whether each // column value is null. NonNullExpectation *GoogleCloudDataplexV1DataQualityRuleNonNullExpectation `json:"nonNullExpectation,omitempty"` - // RangeExpectation: ColumnMap rule which evaluates whether each column + // RangeExpectation: Row-level rule which evaluates whether each column // value lies between a specified range. RangeExpectation *GoogleCloudDataplexV1DataQualityRuleRangeExpectation `json:"rangeExpectation,omitempty"` - // RegexExpectation: ColumnMap rule which evaluates whether each column + // RegexExpectation: Row-level rule which evaluates whether each column // value matches a specified regex. RegexExpectation *GoogleCloudDataplexV1DataQualityRuleRegexExpectation `json:"regexExpectation,omitempty"` - // RowConditionExpectation: Table rule which evaluates whether each row - // passes the specified condition. + // RowConditionExpectation: Row-level rule which evaluates whether each + // row in a table passes the specified condition. RowConditionExpectation *GoogleCloudDataplexV1DataQualityRuleRowConditionExpectation `json:"rowConditionExpectation,omitempty"` - // SetExpectation: ColumnMap rule which evaluates whether each column + // SetExpectation: Row-level rule which evaluates whether each column // value is contained by a specified set. SetExpectation *GoogleCloudDataplexV1DataQualityRuleSetExpectation `json:"setExpectation,omitempty"` - // StatisticRangeExpectation: ColumnAggregate rule which evaluates - // whether the column aggregate statistic lies between a specified - // range. + // StatisticRangeExpectation: Aggregate rule which evaluates whether the + // column aggregate statistic lies between a specified range. StatisticRangeExpectation *GoogleCloudDataplexV1DataQualityRuleStatisticRangeExpectation `json:"statisticRangeExpectation,omitempty"` - // TableConditionExpectation: Table rule which evaluates whether the - // provided expression is true. + // TableConditionExpectation: Aggregate rule which evaluates whether the + // provided expression is true for a table. TableConditionExpectation *GoogleCloudDataplexV1DataQualityRuleTableConditionExpectation `json:"tableConditionExpectation,omitempty"` // Threshold: Optional. The minimum ratio of passing_rows / total_rows // required to pass this rule, with a range of 0.0, 1.0.0 indicates - // default value (i.e. 1.0). + // default value (i.e. 1.0).This field is only valid for row-level type + // rules. Threshold float64 `json:"threshold,omitempty"` - // UniquenessExpectation: ColumnAggregate rule which evaluates whether - // the column has duplicates. + // UniquenessExpectation: Aggregate rule which evaluates whether the + // column has duplicates. UniquenessExpectation *GoogleCloudDataplexV1DataQualityRuleUniquenessExpectation `json:"uniquenessExpectation,omitempty"` // ForceSendFields is a list of field names (e.g. "Column") to @@ -2368,30 +2397,30 @@ func (s *GoogleCloudDataplexV1DataQualityRuleRegexExpectation) MarshalJSON() ([] // GoogleCloudDataplexV1DataQualityRuleResult: DataQualityRuleResult // provides a more detailed, per-rule view of the results. type GoogleCloudDataplexV1DataQualityRuleResult struct { - // EvaluatedCount: The number of rows a rule was evaluated against. This - // field is only valid for ColumnMap type rules.Evaluated count can be + // EvaluatedCount: The number of rows a rule was evaluated against.This + // field is only valid for row-level type rules.Evaluated count can be // configured to either include all rows (default) - with null rows // automatically failing rule evaluation, or exclude null rows from the // evaluated_count, by setting ignore_nulls = true. EvaluatedCount int64 `json:"evaluatedCount,omitempty,string"` - // FailingRowsQuery: The query to find rows that did not pass this rule. - // Only applies to ColumnMap and RowCondition rules. + // FailingRowsQuery: The query to find rows that did not pass this + // rule.This field is only valid for row-level type rules. FailingRowsQuery string `json:"failingRowsQuery,omitempty"` // NullCount: The number of rows with null values in the specified // column. NullCount int64 `json:"nullCount,omitempty,string"` - // PassRatio: The ratio of passed_count / evaluated_count. This field is - // only valid for ColumnMap type rules. + // PassRatio: The ratio of passed_count / evaluated_count.This field is + // only valid for row-level type rules. PassRatio float64 `json:"passRatio,omitempty"` // Passed: Whether the rule passed or failed. Passed bool `json:"passed,omitempty"` - // PassedCount: The number of rows which passed a rule evaluation. This - // field is only valid for ColumnMap type rules. + // PassedCount: The number of rows which passed a rule evaluation.This + // field is only valid for row-level type rules. PassedCount int64 `json:"passedCount,omitempty,string"` // Rule: The rule specified in the DataQualitySpec, as is. diff --git a/datastream/v1/datastream-api.json b/datastream/v1/datastream-api.json index 6898df69cbb..7db2154b3a5 100644 --- a/datastream/v1/datastream-api.json +++ b/datastream/v1/datastream-api.json @@ -1233,7 +1233,7 @@ } } }, - "revision": "20230603", + "revision": "20230611", "rootUrl": "https://datastream.googleapis.com/", "schemas": { "AvroFileFormat": { @@ -2634,7 +2634,7 @@ "id": "SingleTargetDataset", "properties": { "datasetId": { - "description": "The dataset ID of the target dataset.", + "description": "The dataset ID of the target dataset. DatasetIds allowed characters: https://cloud.google.com/bigquery/docs/reference/rest/v2/datasets#datasetreference.", "type": "string" } }, diff --git a/datastream/v1/datastream-gen.go b/datastream/v1/datastream-gen.go index 8b9cdd4e6a0..7b3ce7d6a5e 100644 --- a/datastream/v1/datastream-gen.go +++ b/datastream/v1/datastream-gen.go @@ -2340,7 +2340,9 @@ func (s *Route) MarshalJSON() ([]byte, error) { // SingleTargetDataset: A single target dataset to which all data will // be streamed. type SingleTargetDataset struct { - // DatasetId: The dataset ID of the target dataset. + // DatasetId: The dataset ID of the target dataset. DatasetIds allowed + // characters: + // https://cloud.google.com/bigquery/docs/reference/rest/v2/datasets#datasetreference. DatasetId string `json:"datasetId,omitempty"` // ForceSendFields is a list of field names (e.g. "DatasetId") to diff --git a/dfareporting/v3.5/dfareporting-api.json b/dfareporting/v3.5/dfareporting-api.json index be1a8c0f6f0..3c131737fe0 100644 --- a/dfareporting/v3.5/dfareporting-api.json +++ b/dfareporting/v3.5/dfareporting-api.json @@ -2,12 +2,6 @@ "auth": { "oauth2": { "scopes": { - "https://www.googleapis.com/auth/ddmconversions": { - "description": "Manage DoubleClick Digital Marketing conversions" - }, - "https://www.googleapis.com/auth/dfareporting": { - "description": "View and manage DoubleClick for Advertisers reports" - }, "https://www.googleapis.com/auth/dfatrafficking": { "description": "View and manage your DoubleClick Campaign Manager's (DCM) display ad campaigns" } @@ -111,59 +105,35 @@ }, "protocol": "rest", "resources": { - "accountActiveAdSummaries": { + "media": { "methods": { - "get": { - "description": "Gets the account's active ad summary by account ID.", - "flatPath": "userprofiles/{profileId}/accountActiveAdSummaries/{summaryAccountId}", - "httpMethod": "GET", - "id": "dfareporting.accountActiveAdSummaries.get", - "parameterOrder": [ - "profileId", - "summaryAccountId" - ], - "parameters": { - "profileId": { - "description": "User profile ID associated with this request.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - }, - "summaryAccountId": { - "description": "Account ID.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" + "upload": { + "description": "Inserts a new creative asset.", + "flatPath": "userprofiles/{userprofilesId}/creativeAssets/{creativeAssetsId}/creativeAssets", + "httpMethod": "POST", + "id": "dfareporting.media.upload", + "mediaUpload": { + "accept": [ + "*/*" + ], + "maxSize": "1073741824", + "protocols": { + "simple": { + "multipart": true, + "path": "/upload/dfareporting/v3.5/userprofiles/{+profileId}/creativeAssets/{+advertiserId}/creativeAssets" + } } }, - "path": "userprofiles/{profileId}/accountActiveAdSummaries/{summaryAccountId}", - "response": { - "$ref": "AccountActiveAdSummary" - }, - "scopes": [ - "https://www.googleapis.com/auth/dfatrafficking" - ] - } - } - }, - "accountPermissionGroups": { - "methods": { - "get": { - "description": "Gets one account permission group by ID.", - "flatPath": "userprofiles/{profileId}/accountPermissionGroups/{id}", - "httpMethod": "GET", - "id": "dfareporting.accountPermissionGroups.get", "parameterOrder": [ "profileId", - "id" + "advertiserId" ], "parameters": { - "id": { - "description": "Account permission group ID.", + "advertiserId": { + "description": "Advertiser ID of this creative. This is a required field.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" }, @@ -171,20064 +141,437 @@ "description": "User profile ID associated with this request.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" } }, - "path": "userprofiles/{profileId}/accountPermissionGroups/{id}", - "response": { - "$ref": "AccountPermissionGroup" - }, - "scopes": [ - "https://www.googleapis.com/auth/dfatrafficking" - ] - }, - "list": { - "description": "Retrieves the list of account permission groups.", - "flatPath": "userprofiles/{profileId}/accountPermissionGroups", - "httpMethod": "GET", - "id": "dfareporting.accountPermissionGroups.list", - "parameterOrder": [ - "profileId" - ], - "parameters": { - "profileId": { - "description": "User profile ID associated with this request.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - } + "path": "userprofiles/{+profileId}/creativeAssets/{+advertiserId}/creativeAssets", + "request": { + "$ref": "CreativeAssetMetadata" }, - "path": "userprofiles/{profileId}/accountPermissionGroups", "response": { - "$ref": "AccountPermissionGroupsListResponse" + "$ref": "CreativeAssetMetadata" }, "scopes": [ "https://www.googleapis.com/auth/dfatrafficking" - ] + ], + "supportsMediaUpload": true } } + } + }, + "revision": "20230523", + "rootUrl": "https://dfareporting.googleapis.com/", + "schemas": { + "ClickTag": { + "description": "Creative Click Tag.", + "id": "ClickTag", + "properties": { + "clickThroughUrl": { + "$ref": "CreativeClickThroughUrl", + "description": "Parameter value for the specified click tag. This field contains a click-through url." + }, + "eventName": { + "description": "Advertiser event name associated with the click tag. This field is used by DISPLAY_IMAGE_GALLERY and HTML5_BANNER creatives. Applicable to DISPLAY when the primary asset type is not HTML_IMAGE.", + "type": "string" + }, + "name": { + "description": "Parameter name for the specified click tag. For DISPLAY_IMAGE_GALLERY creative assets, this field must match the value of the creative asset's creativeAssetId.name field.", + "type": "string" + } + }, + "type": "object" }, - "accountPermissions": { - "methods": { - "get": { - "description": "Gets one account permission by ID.", - "flatPath": "userprofiles/{profileId}/accountPermissions/{id}", - "httpMethod": "GET", - "id": "dfareporting.accountPermissions.get", - "parameterOrder": [ - "profileId", - "id" - ], - "parameters": { - "id": { - "description": "Account permission ID.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - }, - "profileId": { - "description": "User profile ID associated with this request.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - } - }, - "path": "userprofiles/{profileId}/accountPermissions/{id}", - "response": { - "$ref": "AccountPermission" - }, - "scopes": [ - "https://www.googleapis.com/auth/dfatrafficking" - ] + "CreativeAssetId": { + "description": "Creative Asset ID.", + "id": "CreativeAssetId", + "properties": { + "name": { + "description": "Name of the creative asset. This is a required field while inserting an asset. After insertion, this assetIdentifier is used to identify the uploaded asset. Characters in the name must be alphanumeric or one of the following: \".-_ \". Spaces are allowed.", + "type": "string" }, - "list": { - "description": "Retrieves the list of account permissions.", - "flatPath": "userprofiles/{profileId}/accountPermissions", - "httpMethod": "GET", - "id": "dfareporting.accountPermissions.list", - "parameterOrder": [ - "profileId" + "type": { + "description": "Type of asset to upload. This is a required field. FLASH and IMAGE are no longer supported for new uploads. All image assets should use HTML_IMAGE.", + "enum": [ + "IMAGE", + "FLASH", + "VIDEO", + "HTML", + "HTML_IMAGE", + "AUDIO" ], - "parameters": { - "profileId": { - "description": "User profile ID associated with this request.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - } - }, - "path": "userprofiles/{profileId}/accountPermissions", - "response": { - "$ref": "AccountPermissionsListResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/dfatrafficking" - ] + "enumDescriptions": [ + "", + "", + "", + "", + "", + "" + ], + "type": "string" } - } + }, + "type": "object" }, - "accountUserProfiles": { - "methods": { - "get": { - "description": "Gets one account user profile by ID.", - "flatPath": "userprofiles/{profileId}/accountUserProfiles/{id}", - "httpMethod": "GET", - "id": "dfareporting.accountUserProfiles.get", - "parameterOrder": [ - "profileId", - "id" - ], - "parameters": { - "id": { - "description": "User profile ID.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - }, - "profileId": { - "description": "User profile ID associated with this request.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - } - }, - "path": "userprofiles/{profileId}/accountUserProfiles/{id}", - "response": { - "$ref": "AccountUserProfile" - }, - "scopes": [ - "https://www.googleapis.com/auth/dfatrafficking" - ] + "CreativeAssetMetadata": { + "description": "CreativeAssets contains properties of a creative asset file which will be uploaded or has already been uploaded. Refer to the creative sample code for how to upload assets and insert a creative.", + "id": "CreativeAssetMetadata", + "properties": { + "assetIdentifier": { + "$ref": "CreativeAssetId", + "description": "ID of the creative asset. This is a required field." }, - "insert": { - "description": "Inserts a new account user profile.", - "flatPath": "userprofiles/{profileId}/accountUserProfiles", - "httpMethod": "POST", - "id": "dfareporting.accountUserProfiles.insert", - "parameterOrder": [ - "profileId" - ], - "parameters": { - "profileId": { - "description": "User profile ID associated with this request.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - } - }, - "path": "userprofiles/{profileId}/accountUserProfiles", - "request": { - "$ref": "AccountUserProfile" - }, - "response": { - "$ref": "AccountUserProfile" + "clickTags": { + "description": "List of detected click tags for assets. This is a read-only, auto-generated field. This field is empty for a rich media asset.", + "items": { + "$ref": "ClickTag" }, - "scopes": [ - "https://www.googleapis.com/auth/dfatrafficking" - ] + "type": "array" }, - "list": { - "description": "Retrieves a list of account user profiles, possibly filtered. This method supports paging.", - "flatPath": "userprofiles/{profileId}/accountUserProfiles", - "httpMethod": "GET", - "id": "dfareporting.accountUserProfiles.list", - "parameterOrder": [ - "profileId" - ], - "parameters": { - "active": { - "description": "Select only active user profiles.", - "location": "query", - "type": "boolean" - }, - "ids": { - "description": "Select only user profiles with these IDs.", - "format": "int64", - "location": "query", - "repeated": true, - "type": "string" - }, - "maxResults": { - "default": "1000", - "description": "Maximum number of results to return.", - "format": "int32", - "location": "query", - "maximum": "1000", - "minimum": "0", - "type": "integer" - }, - "pageToken": { - "description": "Value of the nextPageToken from the previous result page.", - "location": "query", - "type": "string" - }, - "profileId": { - "description": "User profile ID associated with this request.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - }, - "searchString": { - "description": "Allows searching for objects by name, ID or email. Wildcards (*) are allowed. For example, \"user profile*2015\" will return objects with names like \"user profile June 2015\", \"user profile April 2015\", or simply \"user profile 2015\". Most of the searches also add wildcards implicitly at the start and the end of the search string. For example, a search string of \"user profile\" will match objects with name \"my user profile\", \"user profile 2015\", or simply \"user profile\".", - "location": "query", - "type": "string" - }, - "sortField": { - "default": "ID", - "description": "Field by which to sort the list.", - "enum": [ - "ID", - "NAME" - ], - "enumDescriptions": [ - "", - "" - ], - "location": "query", - "type": "string" - }, - "sortOrder": { - "default": "ASCENDING", - "description": "Order of sorted results.", - "enum": [ - "ASCENDING", - "DESCENDING" - ], - "enumDescriptions": [ - "", - "" - ], - "location": "query", - "type": "string" - }, - "subaccountId": { - "description": "Select only user profiles with the specified subaccount ID.", - "format": "int64", - "location": "query", - "type": "string" - }, - "userRoleId": { - "description": "Select only user profiles with the specified user role ID.", - "format": "int64", - "location": "query", - "type": "string" - } - }, - "path": "userprofiles/{profileId}/accountUserProfiles", - "response": { - "$ref": "AccountUserProfilesListResponse" + "counterCustomEvents": { + "description": "List of counter events configured for the asset. This is a read-only, auto-generated field and only applicable to a rich media asset.", + "items": { + "$ref": "CreativeCustomEvent" }, - "scopes": [ - "https://www.googleapis.com/auth/dfatrafficking" - ] + "type": "array" }, - "patch": { - "description": "Updates an existing account user profile. This method supports patch semantics.", - "flatPath": "userprofiles/{profileId}/accountUserProfiles", - "httpMethod": "PATCH", - "id": "dfareporting.accountUserProfiles.patch", - "parameterOrder": [ - "profileId", - "id" - ], - "parameters": { - "id": { - "description": "AccountUserProfile ID.", - "format": "int64", - "location": "query", - "required": true, - "type": "string" - }, - "profileId": { - "description": "User profile ID associated with this request.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - } - }, - "path": "userprofiles/{profileId}/accountUserProfiles", - "request": { - "$ref": "AccountUserProfile" - }, - "response": { - "$ref": "AccountUserProfile" - }, - "scopes": [ - "https://www.googleapis.com/auth/dfatrafficking" - ] - }, - "update": { - "description": "Updates an existing account user profile.", - "flatPath": "userprofiles/{profileId}/accountUserProfiles", - "httpMethod": "PUT", - "id": "dfareporting.accountUserProfiles.update", - "parameterOrder": [ - "profileId" - ], - "parameters": { - "profileId": { - "description": "User profile ID associated with this request.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - } - }, - "path": "userprofiles/{profileId}/accountUserProfiles", - "request": { - "$ref": "AccountUserProfile" - }, - "response": { - "$ref": "AccountUserProfile" - }, - "scopes": [ - "https://www.googleapis.com/auth/dfatrafficking" - ] - } - } - }, - "accounts": { - "methods": { - "get": { - "description": "Gets one account by ID.", - "flatPath": "userprofiles/{profileId}/accounts/{id}", - "httpMethod": "GET", - "id": "dfareporting.accounts.get", - "parameterOrder": [ - "profileId", - "id" - ], - "parameters": { - "id": { - "description": "Account ID.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - }, - "profileId": { - "description": "User profile ID associated with this request.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - } - }, - "path": "userprofiles/{profileId}/accounts/{id}", - "response": { - "$ref": "Account" - }, - "scopes": [ - "https://www.googleapis.com/auth/dfatrafficking" - ] - }, - "list": { - "description": "Retrieves the list of accounts, possibly filtered. This method supports paging.", - "flatPath": "userprofiles/{profileId}/accounts", - "httpMethod": "GET", - "id": "dfareporting.accounts.list", - "parameterOrder": [ - "profileId" - ], - "parameters": { - "active": { - "description": "Select only active accounts. Don't set this field to select both active and non-active accounts.", - "location": "query", - "type": "boolean" - }, - "ids": { - "description": "Select only accounts with these IDs.", - "format": "int64", - "location": "query", - "repeated": true, - "type": "string" - }, - "maxResults": { - "default": "1000", - "description": "Maximum number of results to return.", - "format": "int32", - "location": "query", - "maximum": "1000", - "minimum": "0", - "type": "integer" - }, - "pageToken": { - "description": "Value of the nextPageToken from the previous result page.", - "location": "query", - "type": "string" - }, - "profileId": { - "description": "User profile ID associated with this request.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - }, - "searchString": { - "description": "Allows searching for objects by name or ID. Wildcards (*) are allowed. For example, \"account*2015\" will return objects with names like \"account June 2015\", \"account April 2015\", or simply \"account 2015\". Most of the searches also add wildcards implicitly at the start and the end of the search string. For example, a search string of \"account\" will match objects with name \"my account\", \"account 2015\", or simply \"account\".", - "location": "query", - "type": "string" - }, - "sortField": { - "default": "ID", - "description": "Field by which to sort the list.", - "enum": [ - "ID", - "NAME" - ], - "enumDescriptions": [ - "", - "" - ], - "location": "query", - "type": "string" - }, - "sortOrder": { - "default": "ASCENDING", - "description": "Order of sorted results.", - "enum": [ - "ASCENDING", - "DESCENDING" - ], - "enumDescriptions": [ - "", - "" - ], - "location": "query", - "type": "string" - } - }, - "path": "userprofiles/{profileId}/accounts", - "response": { - "$ref": "AccountsListResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/dfatrafficking" - ] - }, - "patch": { - "description": "Updates an existing account. This method supports patch semantics.", - "flatPath": "userprofiles/{profileId}/accounts", - "httpMethod": "PATCH", - "id": "dfareporting.accounts.patch", - "parameterOrder": [ - "profileId", - "id" - ], - "parameters": { - "id": { - "description": "Account ID.", - "format": "int64", - "location": "query", - "required": true, - "type": "string" - }, - "profileId": { - "description": "User profile ID associated with this request.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - } - }, - "path": "userprofiles/{profileId}/accounts", - "request": { - "$ref": "Account" - }, - "response": { - "$ref": "Account" - }, - "scopes": [ - "https://www.googleapis.com/auth/dfatrafficking" - ] - }, - "update": { - "description": "Updates an existing account.", - "flatPath": "userprofiles/{profileId}/accounts", - "httpMethod": "PUT", - "id": "dfareporting.accounts.update", - "parameterOrder": [ - "profileId" - ], - "parameters": { - "profileId": { - "description": "User profile ID associated with this request.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - } - }, - "path": "userprofiles/{profileId}/accounts", - "request": { - "$ref": "Account" - }, - "response": { - "$ref": "Account" - }, - "scopes": [ - "https://www.googleapis.com/auth/dfatrafficking" - ] - } - } - }, - "ads": { - "methods": { - "get": { - "description": "Gets one ad by ID.", - "flatPath": "userprofiles/{profileId}/ads/{id}", - "httpMethod": "GET", - "id": "dfareporting.ads.get", - "parameterOrder": [ - "profileId", - "id" - ], - "parameters": { - "id": { - "description": "Ad ID.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - }, - "profileId": { - "description": "User profile ID associated with this request.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - } - }, - "path": "userprofiles/{profileId}/ads/{id}", - "response": { - "$ref": "Ad" - }, - "scopes": [ - "https://www.googleapis.com/auth/dfatrafficking" - ] - }, - "insert": { - "description": "Inserts a new ad.", - "flatPath": "userprofiles/{profileId}/ads", - "httpMethod": "POST", - "id": "dfareporting.ads.insert", - "parameterOrder": [ - "profileId" - ], - "parameters": { - "profileId": { - "description": "User profile ID associated with this request.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - } - }, - "path": "userprofiles/{profileId}/ads", - "request": { - "$ref": "Ad" - }, - "response": { - "$ref": "Ad" - }, - "scopes": [ - "https://www.googleapis.com/auth/dfatrafficking" - ] - }, - "list": { - "description": "Retrieves a list of ads, possibly filtered. This method supports paging.", - "flatPath": "userprofiles/{profileId}/ads", - "httpMethod": "GET", - "id": "dfareporting.ads.list", - "parameterOrder": [ - "profileId" - ], - "parameters": { - "active": { - "description": "Select only active ads.", - "location": "query", - "type": "boolean" - }, - "advertiserId": { - "description": "Select only ads with this advertiser ID.", - "format": "int64", - "location": "query", - "type": "string" - }, - "archived": { - "description": "Select only archived ads.", - "location": "query", - "type": "boolean" - }, - "audienceSegmentIds": { - "description": "Select only ads with these audience segment IDs.", - "format": "int64", - "location": "query", - "repeated": true, - "type": "string" - }, - "campaignIds": { - "description": "Select only ads with these campaign IDs.", - "format": "int64", - "location": "query", - "repeated": true, - "type": "string" - }, - "compatibility": { - "description": "Select default ads with the specified compatibility. Applicable when type is AD_SERVING_DEFAULT_AD. DISPLAY and DISPLAY_INTERSTITIAL refer to rendering either on desktop or on mobile devices for regular or interstitial ads, respectively. APP and APP_INTERSTITIAL are for rendering in mobile apps. IN_STREAM_VIDEO refers to rendering an in-stream video ads developed with the VAST standard.", - "enum": [ - "DISPLAY", - "DISPLAY_INTERSTITIAL", - "APP", - "APP_INTERSTITIAL", - "IN_STREAM_VIDEO", - "IN_STREAM_AUDIO" - ], - "enumDescriptions": [ - "", - "", - "", - "", - "", - "" - ], - "location": "query", - "type": "string" - }, - "creativeIds": { - "description": "Select only ads with these creative IDs assigned.", - "format": "int64", - "location": "query", - "repeated": true, - "type": "string" - }, - "creativeOptimizationConfigurationIds": { - "description": "Select only ads with these creative optimization configuration IDs.", - "format": "int64", - "location": "query", - "repeated": true, - "type": "string" - }, - "dynamicClickTracker": { - "description": "Select only dynamic click trackers. Applicable when type is AD_SERVING_CLICK_TRACKER. If true, select dynamic click trackers. If false, select static click trackers. Leave unset to select both.", - "location": "query", - "type": "boolean" - }, - "ids": { - "description": "Select only ads with these IDs.", - "format": "int64", - "location": "query", - "repeated": true, - "type": "string" - }, - "landingPageIds": { - "description": "Select only ads with these landing page IDs.", - "format": "int64", - "location": "query", - "repeated": true, - "type": "string" - }, - "maxResults": { - "default": "1000", - "description": "Maximum number of results to return.", - "format": "int32", - "location": "query", - "maximum": "1000", - "minimum": "0", - "type": "integer" - }, - "overriddenEventTagId": { - "description": "Select only ads with this event tag override ID.", - "format": "int64", - "location": "query", - "type": "string" - }, - "pageToken": { - "description": "Value of the nextPageToken from the previous result page.", - "location": "query", - "type": "string" - }, - "placementIds": { - "description": "Select only ads with these placement IDs assigned.", - "format": "int64", - "location": "query", - "repeated": true, - "type": "string" - }, - "profileId": { - "description": "User profile ID associated with this request.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - }, - "remarketingListIds": { - "description": "Select only ads whose list targeting expression use these remarketing list IDs.", - "format": "int64", - "location": "query", - "repeated": true, - "type": "string" - }, - "searchString": { - "description": "Allows searching for objects by name or ID. Wildcards (*) are allowed. For example, \"ad*2015\" will return objects with names like \"ad June 2015\", \"ad April 2015\", or simply \"ad 2015\". Most of the searches also add wildcards implicitly at the start and the end of the search string. For example, a search string of \"ad\" will match objects with name \"my ad\", \"ad 2015\", or simply \"ad\".", - "location": "query", - "type": "string" - }, - "sizeIds": { - "description": "Select only ads with these size IDs.", - "format": "int64", - "location": "query", - "repeated": true, - "type": "string" - }, - "sortField": { - "default": "ID", - "description": "Field by which to sort the list.", - "enum": [ - "ID", - "NAME" - ], - "enumDescriptions": [ - "", - "" - ], - "location": "query", - "type": "string" - }, - "sortOrder": { - "default": "ASCENDING", - "description": "Order of sorted results.", - "enum": [ - "ASCENDING", - "DESCENDING" - ], - "enumDescriptions": [ - "", - "" - ], - "location": "query", - "type": "string" - }, - "sslCompliant": { - "description": "Select only ads that are SSL-compliant.", - "location": "query", - "type": "boolean" - }, - "sslRequired": { - "description": "Select only ads that require SSL.", - "location": "query", - "type": "boolean" - }, - "type": { - "description": "Select only ads with these types.", - "enum": [ - "AD_SERVING_STANDARD_AD", - "AD_SERVING_DEFAULT_AD", - "AD_SERVING_CLICK_TRACKER", - "AD_SERVING_TRACKING", - "AD_SERVING_BRAND_SAFE_AD" - ], - "enumDescriptions": [ - "", - "", - "", - "", - "" - ], - "location": "query", - "repeated": true, - "type": "string" - } - }, - "path": "userprofiles/{profileId}/ads", - "response": { - "$ref": "AdsListResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/dfatrafficking" - ] - }, - "patch": { - "description": "Updates an existing ad. This method supports patch semantics.", - "flatPath": "userprofiles/{profileId}/ads", - "httpMethod": "PATCH", - "id": "dfareporting.ads.patch", - "parameterOrder": [ - "profileId", - "id" - ], - "parameters": { - "id": { - "description": "Ad ID.", - "format": "int64", - "location": "query", - "required": true, - "type": "string" - }, - "profileId": { - "description": "User profile ID associated with this request.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - } - }, - "path": "userprofiles/{profileId}/ads", - "request": { - "$ref": "Ad" - }, - "response": { - "$ref": "Ad" - }, - "scopes": [ - "https://www.googleapis.com/auth/dfatrafficking" - ] - }, - "update": { - "description": "Updates an existing ad.", - "flatPath": "userprofiles/{profileId}/ads", - "httpMethod": "PUT", - "id": "dfareporting.ads.update", - "parameterOrder": [ - "profileId" - ], - "parameters": { - "profileId": { - "description": "User profile ID associated with this request.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - } - }, - "path": "userprofiles/{profileId}/ads", - "request": { - "$ref": "Ad" - }, - "response": { - "$ref": "Ad" - }, - "scopes": [ - "https://www.googleapis.com/auth/dfatrafficking" - ] - } - } - }, - "advertiserGroups": { - "methods": { - "delete": { - "description": "Deletes an existing advertiser group.", - "flatPath": "userprofiles/{profileId}/advertiserGroups/{id}", - "httpMethod": "DELETE", - "id": "dfareporting.advertiserGroups.delete", - "parameterOrder": [ - "profileId", - "id" - ], - "parameters": { - "id": { - "description": "Advertiser group ID.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - }, - "profileId": { - "description": "User profile ID associated with this request.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - } - }, - "path": "userprofiles/{profileId}/advertiserGroups/{id}", - "scopes": [ - "https://www.googleapis.com/auth/dfatrafficking" - ] - }, - "get": { - "description": "Gets one advertiser group by ID.", - "flatPath": "userprofiles/{profileId}/advertiserGroups/{id}", - "httpMethod": "GET", - "id": "dfareporting.advertiserGroups.get", - "parameterOrder": [ - "profileId", - "id" - ], - "parameters": { - "id": { - "description": "Advertiser group ID.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - }, - "profileId": { - "description": "User profile ID associated with this request.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - } - }, - "path": "userprofiles/{profileId}/advertiserGroups/{id}", - "response": { - "$ref": "AdvertiserGroup" - }, - "scopes": [ - "https://www.googleapis.com/auth/dfatrafficking" - ] - }, - "insert": { - "description": "Inserts a new advertiser group.", - "flatPath": "userprofiles/{profileId}/advertiserGroups", - "httpMethod": "POST", - "id": "dfareporting.advertiserGroups.insert", - "parameterOrder": [ - "profileId" - ], - "parameters": { - "profileId": { - "description": "User profile ID associated with this request.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - } - }, - "path": "userprofiles/{profileId}/advertiserGroups", - "request": { - "$ref": "AdvertiserGroup" - }, - "response": { - "$ref": "AdvertiserGroup" - }, - "scopes": [ - "https://www.googleapis.com/auth/dfatrafficking" - ] - }, - "list": { - "description": "Retrieves a list of advertiser groups, possibly filtered. This method supports paging.", - "flatPath": "userprofiles/{profileId}/advertiserGroups", - "httpMethod": "GET", - "id": "dfareporting.advertiserGroups.list", - "parameterOrder": [ - "profileId" - ], - "parameters": { - "ids": { - "description": "Select only advertiser groups with these IDs.", - "format": "int64", - "location": "query", - "repeated": true, - "type": "string" - }, - "maxResults": { - "default": "1000", - "description": "Maximum number of results to return.", - "format": "int32", - "location": "query", - "maximum": "1000", - "minimum": "0", - "type": "integer" - }, - "pageToken": { - "description": "Value of the nextPageToken from the previous result page.", - "location": "query", - "type": "string" - }, - "profileId": { - "description": "User profile ID associated with this request.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - }, - "searchString": { - "description": "Allows searching for objects by name or ID. Wildcards (*) are allowed. For example, \"advertiser*2015\" will return objects with names like \"advertiser group June 2015\", \"advertiser group April 2015\", or simply \"advertiser group 2015\". Most of the searches also add wildcards implicitly at the start and the end of the search string. For example, a search string of \"advertisergroup\" will match objects with name \"my advertisergroup\", \"advertisergroup 2015\", or simply \"advertisergroup\".", - "location": "query", - "type": "string" - }, - "sortField": { - "default": "ID", - "description": "Field by which to sort the list.", - "enum": [ - "ID", - "NAME" - ], - "enumDescriptions": [ - "", - "" - ], - "location": "query", - "type": "string" - }, - "sortOrder": { - "default": "ASCENDING", - "description": "Order of sorted results.", - "enum": [ - "ASCENDING", - "DESCENDING" - ], - "enumDescriptions": [ - "", - "" - ], - "location": "query", - "type": "string" - } - }, - "path": "userprofiles/{profileId}/advertiserGroups", - "response": { - "$ref": "AdvertiserGroupsListResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/dfatrafficking" - ] - }, - "patch": { - "description": "Updates an existing advertiser group. This method supports patch semantics.", - "flatPath": "userprofiles/{profileId}/advertiserGroups", - "httpMethod": "PATCH", - "id": "dfareporting.advertiserGroups.patch", - "parameterOrder": [ - "profileId", - "id" - ], - "parameters": { - "id": { - "description": "AdvertiserGroup ID.", - "format": "int64", - "location": "query", - "required": true, - "type": "string" - }, - "profileId": { - "description": "User profile ID associated with this request.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - } - }, - "path": "userprofiles/{profileId}/advertiserGroups", - "request": { - "$ref": "AdvertiserGroup" - }, - "response": { - "$ref": "AdvertiserGroup" - }, - "scopes": [ - "https://www.googleapis.com/auth/dfatrafficking" - ] - }, - "update": { - "description": "Updates an existing advertiser group.", - "flatPath": "userprofiles/{profileId}/advertiserGroups", - "httpMethod": "PUT", - "id": "dfareporting.advertiserGroups.update", - "parameterOrder": [ - "profileId" - ], - "parameters": { - "profileId": { - "description": "User profile ID associated with this request.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - } - }, - "path": "userprofiles/{profileId}/advertiserGroups", - "request": { - "$ref": "AdvertiserGroup" - }, - "response": { - "$ref": "AdvertiserGroup" - }, - "scopes": [ - "https://www.googleapis.com/auth/dfatrafficking" - ] - } - } - }, - "advertiserLandingPages": { - "methods": { - "get": { - "description": "Gets one landing page by ID.", - "flatPath": "userprofiles/{profileId}/advertiserLandingPages/{id}", - "httpMethod": "GET", - "id": "dfareporting.advertiserLandingPages.get", - "parameterOrder": [ - "profileId", - "id" - ], - "parameters": { - "id": { - "description": "Landing page ID.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - }, - "profileId": { - "description": "User profile ID associated with this request.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - } - }, - "path": "userprofiles/{profileId}/advertiserLandingPages/{id}", - "response": { - "$ref": "LandingPage" - }, - "scopes": [ - "https://www.googleapis.com/auth/dfatrafficking" - ] - }, - "insert": { - "description": "Inserts a new landing page.", - "flatPath": "userprofiles/{profileId}/advertiserLandingPages", - "httpMethod": "POST", - "id": "dfareporting.advertiserLandingPages.insert", - "parameterOrder": [ - "profileId" - ], - "parameters": { - "profileId": { - "description": "User profile ID associated with this request.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - } - }, - "path": "userprofiles/{profileId}/advertiserLandingPages", - "request": { - "$ref": "LandingPage" - }, - "response": { - "$ref": "LandingPage" - }, - "scopes": [ - "https://www.googleapis.com/auth/dfatrafficking" - ] - }, - "list": { - "description": "Retrieves a list of landing pages.", - "flatPath": "userprofiles/{profileId}/advertiserLandingPages", - "httpMethod": "GET", - "id": "dfareporting.advertiserLandingPages.list", - "parameterOrder": [ - "profileId" - ], - "parameters": { - "advertiserIds": { - "description": "Select only landing pages that belong to these advertisers.", - "format": "int64", - "location": "query", - "repeated": true, - "type": "string" - }, - "archived": { - "description": "Select only archived landing pages. Don't set this field to select both archived and non-archived landing pages.", - "location": "query", - "type": "boolean" - }, - "campaignIds": { - "description": "Select only landing pages that are associated with these campaigns.", - "format": "int64", - "location": "query", - "repeated": true, - "type": "string" - }, - "ids": { - "description": "Select only landing pages with these IDs.", - "format": "int64", - "location": "query", - "repeated": true, - "type": "string" - }, - "maxResults": { - "default": "1000", - "description": "Maximum number of results to return.", - "format": "int32", - "location": "query", - "maximum": "1000", - "minimum": "0", - "type": "integer" - }, - "pageToken": { - "description": "Value of the nextPageToken from the previous result page.", - "location": "query", - "type": "string" - }, - "profileId": { - "description": "User profile ID associated with this request.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - }, - "searchString": { - "description": "Allows searching for landing pages by name or ID. Wildcards (*) are allowed. For example, \"landingpage*2017\" will return landing pages with names like \"landingpage July 2017\", \"landingpage March 2017\", or simply \"landingpage 2017\". Most of the searches also add wildcards implicitly at the start and the end of the search string. For example, a search string of \"landingpage\" will match campaigns with name \"my landingpage\", \"landingpage 2015\", or simply \"landingpage\".", - "location": "query", - "type": "string" - }, - "sortField": { - "default": "ID", - "description": "Field by which to sort the list.", - "enum": [ - "ID", - "NAME" - ], - "enumDescriptions": [ - "", - "" - ], - "location": "query", - "type": "string" - }, - "sortOrder": { - "default": "ASCENDING", - "description": "Order of sorted results.", - "enum": [ - "ASCENDING", - "DESCENDING" - ], - "enumDescriptions": [ - "", - "" - ], - "location": "query", - "type": "string" - }, - "subaccountId": { - "description": "Select only landing pages that belong to this subaccount.", - "format": "int64", - "location": "query", - "type": "string" - } - }, - "path": "userprofiles/{profileId}/advertiserLandingPages", - "response": { - "$ref": "AdvertiserLandingPagesListResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/dfatrafficking" - ] - }, - "patch": { - "description": "Updates an existing advertiser landing page. This method supports patch semantics.", - "flatPath": "userprofiles/{profileId}/advertiserLandingPages", - "httpMethod": "PATCH", - "id": "dfareporting.advertiserLandingPages.patch", - "parameterOrder": [ - "profileId", - "id" - ], - "parameters": { - "id": { - "description": "LandingPage ID.", - "format": "int64", - "location": "query", - "required": true, - "type": "string" - }, - "profileId": { - "description": "User profile ID associated with this request.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - } - }, - "path": "userprofiles/{profileId}/advertiserLandingPages", - "request": { - "$ref": "LandingPage" - }, - "response": { - "$ref": "LandingPage" - }, - "scopes": [ - "https://www.googleapis.com/auth/dfatrafficking" - ] - }, - "update": { - "description": "Updates an existing landing page.", - "flatPath": "userprofiles/{profileId}/advertiserLandingPages", - "httpMethod": "PUT", - "id": "dfareporting.advertiserLandingPages.update", - "parameterOrder": [ - "profileId" - ], - "parameters": { - "profileId": { - "description": "User profile ID associated with this request.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - } - }, - "path": "userprofiles/{profileId}/advertiserLandingPages", - "request": { - "$ref": "LandingPage" - }, - "response": { - "$ref": "LandingPage" - }, - "scopes": [ - "https://www.googleapis.com/auth/dfatrafficking" - ] - } - } - }, - "advertisers": { - "methods": { - "get": { - "description": "Gets one advertiser by ID.", - "flatPath": "userprofiles/{profileId}/advertisers/{id}", - "httpMethod": "GET", - "id": "dfareporting.advertisers.get", - "parameterOrder": [ - "profileId", - "id" - ], - "parameters": { - "id": { - "description": "Advertiser ID.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - }, - "profileId": { - "description": "User profile ID associated with this request.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - } - }, - "path": "userprofiles/{profileId}/advertisers/{id}", - "response": { - "$ref": "Advertiser" - }, - "scopes": [ - "https://www.googleapis.com/auth/dfatrafficking" - ] - }, - "insert": { - "description": "Inserts a new advertiser.", - "flatPath": "userprofiles/{profileId}/advertisers", - "httpMethod": "POST", - "id": "dfareporting.advertisers.insert", - "parameterOrder": [ - "profileId" - ], - "parameters": { - "profileId": { - "description": "User profile ID associated with this request.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - } - }, - "path": "userprofiles/{profileId}/advertisers", - "request": { - "$ref": "Advertiser" - }, - "response": { - "$ref": "Advertiser" - }, - "scopes": [ - "https://www.googleapis.com/auth/dfatrafficking" - ] - }, - "list": { - "description": "Retrieves a list of advertisers, possibly filtered. This method supports paging.", - "flatPath": "userprofiles/{profileId}/advertisers", - "httpMethod": "GET", - "id": "dfareporting.advertisers.list", - "parameterOrder": [ - "profileId" - ], - "parameters": { - "advertiserGroupIds": { - "description": "Select only advertisers with these advertiser group IDs.", - "format": "int64", - "location": "query", - "repeated": true, - "type": "string" - }, - "floodlightConfigurationIds": { - "description": "Select only advertisers with these floodlight configuration IDs.", - "format": "int64", - "location": "query", - "repeated": true, - "type": "string" - }, - "ids": { - "description": "Select only advertisers with these IDs.", - "format": "int64", - "location": "query", - "repeated": true, - "type": "string" - }, - "includeAdvertisersWithoutGroupsOnly": { - "description": "Select only advertisers which do not belong to any advertiser group.", - "location": "query", - "type": "boolean" - }, - "maxResults": { - "default": "1000", - "description": "Maximum number of results to return.", - "format": "int32", - "location": "query", - "maximum": "1000", - "minimum": "0", - "type": "integer" - }, - "onlyParent": { - "description": "Select only advertisers which use another advertiser's floodlight configuration.", - "location": "query", - "type": "boolean" - }, - "pageToken": { - "description": "Value of the nextPageToken from the previous result page.", - "location": "query", - "type": "string" - }, - "profileId": { - "description": "User profile ID associated with this request.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - }, - "searchString": { - "description": "Allows searching for objects by name or ID. Wildcards (*) are allowed. For example, \"advertiser*2015\" will return objects with names like \"advertiser June 2015\", \"advertiser April 2015\", or simply \"advertiser 2015\". Most of the searches also add wildcards implicitly at the start and the end of the search string. For example, a search string of \"advertiser\" will match objects with name \"my advertiser\", \"advertiser 2015\", or simply \"advertiser\" .", - "location": "query", - "type": "string" - }, - "sortField": { - "default": "ID", - "description": "Field by which to sort the list.", - "enum": [ - "ID", - "NAME" - ], - "enumDescriptions": [ - "", - "" - ], - "location": "query", - "type": "string" - }, - "sortOrder": { - "default": "ASCENDING", - "description": "Order of sorted results.", - "enum": [ - "ASCENDING", - "DESCENDING" - ], - "enumDescriptions": [ - "", - "" - ], - "location": "query", - "type": "string" - }, - "status": { - "description": "Select only advertisers with the specified status.", - "enum": [ - "APPROVED", - "ON_HOLD" - ], - "enumDescriptions": [ - "", - "" - ], - "location": "query", - "type": "string" - }, - "subaccountId": { - "description": "Select only advertisers with these subaccount IDs.", - "format": "int64", - "location": "query", - "type": "string" - } - }, - "path": "userprofiles/{profileId}/advertisers", - "response": { - "$ref": "AdvertisersListResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/dfatrafficking" - ] - }, - "patch": { - "description": "Updates an existing advertiser. This method supports patch semantics.", - "flatPath": "userprofiles/{profileId}/advertisers", - "httpMethod": "PATCH", - "id": "dfareporting.advertisers.patch", - "parameterOrder": [ - "profileId", - "id" - ], - "parameters": { - "id": { - "description": "Advertiser ID.", - "format": "int64", - "location": "query", - "required": true, - "type": "string" - }, - "profileId": { - "description": "User profile ID associated with this request.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - } - }, - "path": "userprofiles/{profileId}/advertisers", - "request": { - "$ref": "Advertiser" - }, - "response": { - "$ref": "Advertiser" - }, - "scopes": [ - "https://www.googleapis.com/auth/dfatrafficking" - ] - }, - "update": { - "description": "Updates an existing advertiser.", - "flatPath": "userprofiles/{profileId}/advertisers", - "httpMethod": "PUT", - "id": "dfareporting.advertisers.update", - "parameterOrder": [ - "profileId" - ], - "parameters": { - "profileId": { - "description": "User profile ID associated with this request.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - } - }, - "path": "userprofiles/{profileId}/advertisers", - "request": { - "$ref": "Advertiser" - }, - "response": { - "$ref": "Advertiser" - }, - "scopes": [ - "https://www.googleapis.com/auth/dfatrafficking" - ] - } - } - }, - "browsers": { - "methods": { - "list": { - "description": "Retrieves a list of browsers.", - "flatPath": "userprofiles/{profileId}/browsers", - "httpMethod": "GET", - "id": "dfareporting.browsers.list", - "parameterOrder": [ - "profileId" - ], - "parameters": { - "profileId": { - "description": "User profile ID associated with this request.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - } - }, - "path": "userprofiles/{profileId}/browsers", - "response": { - "$ref": "BrowsersListResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/dfatrafficking" - ] - } - } - }, - "campaignCreativeAssociations": { - "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": "userprofiles/{profileId}/campaigns/{campaignId}/campaignCreativeAssociations", - "httpMethod": "POST", - "id": "dfareporting.campaignCreativeAssociations.insert", - "parameterOrder": [ - "profileId", - "campaignId" - ], - "parameters": { - "campaignId": { - "description": "Campaign ID in this association.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - }, - "profileId": { - "description": "User profile ID associated with this request.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - } - }, - "path": "userprofiles/{profileId}/campaigns/{campaignId}/campaignCreativeAssociations", - "request": { - "$ref": "CampaignCreativeAssociation" - }, - "response": { - "$ref": "CampaignCreativeAssociation" - }, - "scopes": [ - "https://www.googleapis.com/auth/dfatrafficking" - ] - }, - "list": { - "description": "Retrieves the list of creative IDs associated with the specified campaign. This method supports paging.", - "flatPath": "userprofiles/{profileId}/campaigns/{campaignId}/campaignCreativeAssociations", - "httpMethod": "GET", - "id": "dfareporting.campaignCreativeAssociations.list", - "parameterOrder": [ - "profileId", - "campaignId" - ], - "parameters": { - "campaignId": { - "description": "Campaign ID in this association.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - }, - "maxResults": { - "default": "1000", - "description": "Maximum number of results to return.", - "format": "int32", - "location": "query", - "maximum": "1000", - "minimum": "0", - "type": "integer" - }, - "pageToken": { - "description": "Value of the nextPageToken from the previous result page.", - "location": "query", - "type": "string" - }, - "profileId": { - "description": "User profile ID associated with this request.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - }, - "sortOrder": { - "default": "ASCENDING", - "description": "Order of sorted results.", - "enum": [ - "ASCENDING", - "DESCENDING" - ], - "enumDescriptions": [ - "", - "" - ], - "location": "query", - "type": "string" - } - }, - "path": "userprofiles/{profileId}/campaigns/{campaignId}/campaignCreativeAssociations", - "response": { - "$ref": "CampaignCreativeAssociationsListResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/dfatrafficking" - ] - } - } - }, - "campaigns": { - "methods": { - "get": { - "description": "Gets one campaign by ID.", - "flatPath": "userprofiles/{profileId}/campaigns/{id}", - "httpMethod": "GET", - "id": "dfareporting.campaigns.get", - "parameterOrder": [ - "profileId", - "id" - ], - "parameters": { - "id": { - "description": "Campaign ID.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - }, - "profileId": { - "description": "User profile ID associated with this request.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - } - }, - "path": "userprofiles/{profileId}/campaigns/{id}", - "response": { - "$ref": "Campaign" - }, - "scopes": [ - "https://www.googleapis.com/auth/dfatrafficking" - ] - }, - "insert": { - "description": "Inserts a new campaign.", - "flatPath": "userprofiles/{profileId}/campaigns", - "httpMethod": "POST", - "id": "dfareporting.campaigns.insert", - "parameterOrder": [ - "profileId" - ], - "parameters": { - "profileId": { - "description": "User profile ID associated with this request.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - } - }, - "path": "userprofiles/{profileId}/campaigns", - "request": { - "$ref": "Campaign" - }, - "response": { - "$ref": "Campaign" - }, - "scopes": [ - "https://www.googleapis.com/auth/dfatrafficking" - ] - }, - "list": { - "description": "Retrieves a list of campaigns, possibly filtered. This method supports paging.", - "flatPath": "userprofiles/{profileId}/campaigns", - "httpMethod": "GET", - "id": "dfareporting.campaigns.list", - "parameterOrder": [ - "profileId" - ], - "parameters": { - "advertiserGroupIds": { - "description": "Select only campaigns whose advertisers belong to these advertiser groups.", - "format": "int64", - "location": "query", - "repeated": true, - "type": "string" - }, - "advertiserIds": { - "description": "Select only campaigns that belong to these advertisers.", - "format": "int64", - "location": "query", - "repeated": true, - "type": "string" - }, - "archived": { - "description": "Select only archived campaigns. Don't set this field to select both archived and non-archived campaigns.", - "location": "query", - "type": "boolean" - }, - "atLeastOneOptimizationActivity": { - "description": "Select only campaigns that have at least one optimization activity.", - "location": "query", - "type": "boolean" - }, - "excludedIds": { - "description": "Exclude campaigns with these IDs.", - "format": "int64", - "location": "query", - "repeated": true, - "type": "string" - }, - "ids": { - "description": "Select only campaigns with these IDs.", - "format": "int64", - "location": "query", - "repeated": true, - "type": "string" - }, - "maxResults": { - "default": "1000", - "description": "Maximum number of results to return.", - "format": "int32", - "location": "query", - "maximum": "1000", - "minimum": "0", - "type": "integer" - }, - "overriddenEventTagId": { - "description": "Select only campaigns that have overridden this event tag ID.", - "format": "int64", - "location": "query", - "type": "string" - }, - "pageToken": { - "description": "Value of the nextPageToken from the previous result page.", - "location": "query", - "type": "string" - }, - "profileId": { - "description": "User profile ID associated with this request.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - }, - "searchString": { - "description": "Allows searching for campaigns by name or ID. Wildcards (*) are allowed. For example, \"campaign*2015\" will return campaigns with names like \"campaign June 2015\", \"campaign April 2015\", or simply \"campaign 2015\". Most of the searches also add wildcards implicitly at the start and the end of the search string. For example, a search string of \"campaign\" will match campaigns with name \"my campaign\", \"campaign 2015\", or simply \"campaign\".", - "location": "query", - "type": "string" - }, - "sortField": { - "default": "ID", - "description": "Field by which to sort the list.", - "enum": [ - "ID", - "NAME" - ], - "enumDescriptions": [ - "", - "" - ], - "location": "query", - "type": "string" - }, - "sortOrder": { - "default": "ASCENDING", - "description": "Order of sorted results.", - "enum": [ - "ASCENDING", - "DESCENDING" - ], - "enumDescriptions": [ - "", - "" - ], - "location": "query", - "type": "string" - }, - "subaccountId": { - "description": "Select only campaigns that belong to this subaccount.", - "format": "int64", - "location": "query", - "type": "string" - } - }, - "path": "userprofiles/{profileId}/campaigns", - "response": { - "$ref": "CampaignsListResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/dfatrafficking" - ] - }, - "patch": { - "description": "Updates an existing campaign. This method supports patch semantics.", - "flatPath": "userprofiles/{profileId}/campaigns", - "httpMethod": "PATCH", - "id": "dfareporting.campaigns.patch", - "parameterOrder": [ - "profileId", - "id" - ], - "parameters": { - "id": { - "description": "Campaign ID.", - "format": "int64", - "location": "query", - "required": true, - "type": "string" - }, - "profileId": { - "description": "User profile ID associated with this request.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - } - }, - "path": "userprofiles/{profileId}/campaigns", - "request": { - "$ref": "Campaign" - }, - "response": { - "$ref": "Campaign" - }, - "scopes": [ - "https://www.googleapis.com/auth/dfatrafficking" - ] - }, - "update": { - "description": "Updates an existing campaign.", - "flatPath": "userprofiles/{profileId}/campaigns", - "httpMethod": "PUT", - "id": "dfareporting.campaigns.update", - "parameterOrder": [ - "profileId" - ], - "parameters": { - "profileId": { - "description": "User profile ID associated with this request.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - } - }, - "path": "userprofiles/{profileId}/campaigns", - "request": { - "$ref": "Campaign" - }, - "response": { - "$ref": "Campaign" - }, - "scopes": [ - "https://www.googleapis.com/auth/dfatrafficking" - ] - } - } - }, - "changeLogs": { - "methods": { - "get": { - "description": "Gets one change log by ID.", - "flatPath": "userprofiles/{profileId}/changeLogs/{id}", - "httpMethod": "GET", - "id": "dfareporting.changeLogs.get", - "parameterOrder": [ - "profileId", - "id" - ], - "parameters": { - "id": { - "description": "Change log ID.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - }, - "profileId": { - "description": "User profile ID associated with this request.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - } - }, - "path": "userprofiles/{profileId}/changeLogs/{id}", - "response": { - "$ref": "ChangeLog" - }, - "scopes": [ - "https://www.googleapis.com/auth/dfatrafficking" - ] - }, - "list": { - "description": "Retrieves a list of change logs. This method supports paging.", - "flatPath": "userprofiles/{profileId}/changeLogs", - "httpMethod": "GET", - "id": "dfareporting.changeLogs.list", - "parameterOrder": [ - "profileId" - ], - "parameters": { - "action": { - "description": "Select only change logs with the specified action.", - "enum": [ - "ACTION_CREATE", - "ACTION_UPDATE", - "ACTION_DELETE", - "ACTION_ENABLE", - "ACTION_DISABLE", - "ACTION_ADD", - "ACTION_REMOVE", - "ACTION_MARK_AS_DEFAULT", - "ACTION_ASSOCIATE", - "ACTION_ASSIGN", - "ACTION_UNASSIGN", - "ACTION_SEND", - "ACTION_LINK", - "ACTION_UNLINK", - "ACTION_PUSH", - "ACTION_EMAIL_TAGS", - "ACTION_SHARE" - ], - "enumDescriptions": [ - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "" - ], - "location": "query", - "type": "string" - }, - "ids": { - "description": "Select only change logs with these IDs.", - "format": "int64", - "location": "query", - "repeated": true, - "type": "string" - }, - "maxChangeTime": { - "description": "Select only change logs whose change time is before the specified maxChangeTime.The time should be formatted as an RFC3339 date/time string. For example, for 10:54 PM on July 18th, 2015, in the America/New York time zone, the format is \"2015-07-18T22:54:00-04:00\". In other words, the year, month, day, the letter T, the hour (24-hour clock system), minute, second, and then the time zone offset.", - "location": "query", - "type": "string" - }, - "maxResults": { - "default": "1000", - "description": "Maximum number of results to return.", - "format": "int32", - "location": "query", - "maximum": "1000", - "minimum": "0", - "type": "integer" - }, - "minChangeTime": { - "description": "Select only change logs whose change time is after the specified minChangeTime.The time should be formatted as an RFC3339 date/time string. For example, for 10:54 PM on July 18th, 2015, in the America/New York time zone, the format is \"2015-07-18T22:54:00-04:00\". In other words, the year, month, day, the letter T, the hour (24-hour clock system), minute, second, and then the time zone offset.", - "location": "query", - "type": "string" - }, - "objectIds": { - "description": "Select only change logs with these object IDs.", - "format": "int64", - "location": "query", - "repeated": true, - "type": "string" - }, - "objectType": { - "description": "Select only change logs with the specified object type.", - "enum": [ - "OBJECT_ADVERTISER", - "OBJECT_FLOODLIGHT_CONFIGURATION", - "OBJECT_AD", - "OBJECT_FLOODLIGHT_ACTVITY", - "OBJECT_CAMPAIGN", - "OBJECT_FLOODLIGHT_ACTIVITY_GROUP", - "OBJECT_CREATIVE", - "OBJECT_PLACEMENT", - "OBJECT_DFA_SITE", - "OBJECT_USER_ROLE", - "OBJECT_USER_PROFILE", - "OBJECT_ADVERTISER_GROUP", - "OBJECT_ACCOUNT", - "OBJECT_SUBACCOUNT", - "OBJECT_RICHMEDIA_CREATIVE", - "OBJECT_INSTREAM_CREATIVE", - "OBJECT_MEDIA_ORDER", - "OBJECT_CONTENT_CATEGORY", - "OBJECT_PLACEMENT_STRATEGY", - "OBJECT_SD_SITE", - "OBJECT_SIZE", - "OBJECT_CREATIVE_GROUP", - "OBJECT_CREATIVE_ASSET", - "OBJECT_USER_PROFILE_FILTER", - "OBJECT_LANDING_PAGE", - "OBJECT_CREATIVE_FIELD", - "OBJECT_REMARKETING_LIST", - "OBJECT_PROVIDED_LIST_CLIENT", - "OBJECT_EVENT_TAG", - "OBJECT_CREATIVE_BUNDLE", - "OBJECT_BILLING_ACCOUNT_GROUP", - "OBJECT_BILLING_FEATURE", - "OBJECT_RATE_CARD", - "OBJECT_ACCOUNT_BILLING_FEATURE", - "OBJECT_BILLING_MINIMUM_FEE", - "OBJECT_BILLING_PROFILE", - "OBJECT_PLAYSTORE_LINK", - "OBJECT_TARGETING_TEMPLATE", - "OBJECT_SEARCH_LIFT_STUDY", - "OBJECT_FLOODLIGHT_DV360_LINK", - "OBJECT_ADVERTISER_CUSTOMER_LINK" - ], - "enumDescriptions": [ - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "" - ], - "location": "query", - "type": "string" - }, - "pageToken": { - "description": "Value of the nextPageToken from the previous result page.", - "location": "query", - "type": "string" - }, - "profileId": { - "description": "User profile ID associated with this request.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - }, - "searchString": { - "description": "Select only change logs whose object ID, user name, old or new values match the search string.", - "location": "query", - "type": "string" - }, - "userProfileIds": { - "description": "Select only change logs with these user profile IDs.", - "format": "int64", - "location": "query", - "repeated": true, - "type": "string" - } - }, - "path": "userprofiles/{profileId}/changeLogs", - "response": { - "$ref": "ChangeLogsListResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/dfatrafficking" - ] - } - } - }, - "cities": { - "methods": { - "list": { - "description": "Retrieves a list of cities, possibly filtered.", - "flatPath": "userprofiles/{profileId}/cities", - "httpMethod": "GET", - "id": "dfareporting.cities.list", - "parameterOrder": [ - "profileId" - ], - "parameters": { - "countryDartIds": { - "description": "Select only cities from these countries.", - "format": "int64", - "location": "query", - "repeated": true, - "type": "string" - }, - "dartIds": { - "description": "Select only cities with these DART IDs.", - "format": "int64", - "location": "query", - "repeated": true, - "type": "string" - }, - "namePrefix": { - "description": "Select only cities with names starting with this prefix.", - "location": "query", - "type": "string" - }, - "profileId": { - "description": "User profile ID associated with this request.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - }, - "regionDartIds": { - "description": "Select only cities from these regions.", - "format": "int64", - "location": "query", - "repeated": true, - "type": "string" - } - }, - "path": "userprofiles/{profileId}/cities", - "response": { - "$ref": "CitiesListResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/dfatrafficking" - ] - } - } - }, - "connectionTypes": { - "methods": { - "get": { - "description": "Gets one connection type by ID.", - "flatPath": "userprofiles/{profileId}/connectionTypes/{id}", - "httpMethod": "GET", - "id": "dfareporting.connectionTypes.get", - "parameterOrder": [ - "profileId", - "id" - ], - "parameters": { - "id": { - "description": "Connection type ID.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - }, - "profileId": { - "description": "User profile ID associated with this request.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - } - }, - "path": "userprofiles/{profileId}/connectionTypes/{id}", - "response": { - "$ref": "ConnectionType" - }, - "scopes": [ - "https://www.googleapis.com/auth/dfatrafficking" - ] - }, - "list": { - "description": "Retrieves a list of connection types.", - "flatPath": "userprofiles/{profileId}/connectionTypes", - "httpMethod": "GET", - "id": "dfareporting.connectionTypes.list", - "parameterOrder": [ - "profileId" - ], - "parameters": { - "profileId": { - "description": "User profile ID associated with this request.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - } - }, - "path": "userprofiles/{profileId}/connectionTypes", - "response": { - "$ref": "ConnectionTypesListResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/dfatrafficking" - ] - } - } - }, - "contentCategories": { - "methods": { - "delete": { - "description": "Deletes an existing content category.", - "flatPath": "userprofiles/{profileId}/contentCategories/{id}", - "httpMethod": "DELETE", - "id": "dfareporting.contentCategories.delete", - "parameterOrder": [ - "profileId", - "id" - ], - "parameters": { - "id": { - "description": "Content category ID.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - }, - "profileId": { - "description": "User profile ID associated with this request.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - } - }, - "path": "userprofiles/{profileId}/contentCategories/{id}", - "scopes": [ - "https://www.googleapis.com/auth/dfatrafficking" - ] - }, - "get": { - "description": "Gets one content category by ID.", - "flatPath": "userprofiles/{profileId}/contentCategories/{id}", - "httpMethod": "GET", - "id": "dfareporting.contentCategories.get", - "parameterOrder": [ - "profileId", - "id" - ], - "parameters": { - "id": { - "description": "Content category ID.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - }, - "profileId": { - "description": "User profile ID associated with this request.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - } - }, - "path": "userprofiles/{profileId}/contentCategories/{id}", - "response": { - "$ref": "ContentCategory" - }, - "scopes": [ - "https://www.googleapis.com/auth/dfatrafficking" - ] - }, - "insert": { - "description": "Inserts a new content category.", - "flatPath": "userprofiles/{profileId}/contentCategories", - "httpMethod": "POST", - "id": "dfareporting.contentCategories.insert", - "parameterOrder": [ - "profileId" - ], - "parameters": { - "profileId": { - "description": "User profile ID associated with this request.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - } - }, - "path": "userprofiles/{profileId}/contentCategories", - "request": { - "$ref": "ContentCategory" - }, - "response": { - "$ref": "ContentCategory" - }, - "scopes": [ - "https://www.googleapis.com/auth/dfatrafficking" - ] - }, - "list": { - "description": "Retrieves a list of content categories, possibly filtered. This method supports paging.", - "flatPath": "userprofiles/{profileId}/contentCategories", - "httpMethod": "GET", - "id": "dfareporting.contentCategories.list", - "parameterOrder": [ - "profileId" - ], - "parameters": { - "ids": { - "description": "Select only content categories with these IDs.", - "format": "int64", - "location": "query", - "repeated": true, - "type": "string" - }, - "maxResults": { - "default": "1000", - "description": "Maximum number of results to return.", - "format": "int32", - "location": "query", - "maximum": "1000", - "minimum": "0", - "type": "integer" - }, - "pageToken": { - "description": "Value of the nextPageToken from the previous result page.", - "location": "query", - "type": "string" - }, - "profileId": { - "description": "User profile ID associated with this request.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - }, - "searchString": { - "description": "Allows searching for objects by name or ID. Wildcards (*) are allowed. For example, \"contentcategory*2015\" will return objects with names like \"contentcategory June 2015\", \"contentcategory April 2015\", or simply \"contentcategory 2015\". Most of the searches also add wildcards implicitly at the start and the end of the search string. For example, a search string of \"contentcategory\" will match objects with name \"my contentcategory\", \"contentcategory 2015\", or simply \"contentcategory\".", - "location": "query", - "type": "string" - }, - "sortField": { - "default": "ID", - "description": "Field by which to sort the list.", - "enum": [ - "ID", - "NAME" - ], - "enumDescriptions": [ - "", - "" - ], - "location": "query", - "type": "string" - }, - "sortOrder": { - "default": "ASCENDING", - "description": "Order of sorted results.", - "enum": [ - "ASCENDING", - "DESCENDING" - ], - "enumDescriptions": [ - "", - "" - ], - "location": "query", - "type": "string" - } - }, - "path": "userprofiles/{profileId}/contentCategories", - "response": { - "$ref": "ContentCategoriesListResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/dfatrafficking" - ] - }, - "patch": { - "description": "Updates an existing content category. This method supports patch semantics.", - "flatPath": "userprofiles/{profileId}/contentCategories", - "httpMethod": "PATCH", - "id": "dfareporting.contentCategories.patch", - "parameterOrder": [ - "profileId", - "id" - ], - "parameters": { - "id": { - "description": "ContentCategory ID.", - "format": "int64", - "location": "query", - "required": true, - "type": "string" - }, - "profileId": { - "description": "User profile ID associated with this request.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - } - }, - "path": "userprofiles/{profileId}/contentCategories", - "request": { - "$ref": "ContentCategory" - }, - "response": { - "$ref": "ContentCategory" - }, - "scopes": [ - "https://www.googleapis.com/auth/dfatrafficking" - ] - }, - "update": { - "description": "Updates an existing content category.", - "flatPath": "userprofiles/{profileId}/contentCategories", - "httpMethod": "PUT", - "id": "dfareporting.contentCategories.update", - "parameterOrder": [ - "profileId" - ], - "parameters": { - "profileId": { - "description": "User profile ID associated with this request.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - } - }, - "path": "userprofiles/{profileId}/contentCategories", - "request": { - "$ref": "ContentCategory" - }, - "response": { - "$ref": "ContentCategory" - }, - "scopes": [ - "https://www.googleapis.com/auth/dfatrafficking" - ] - } - } - }, - "conversions": { - "methods": { - "batchinsert": { - "description": "Inserts conversions.", - "flatPath": "userprofiles/{profileId}/conversions/batchinsert", - "httpMethod": "POST", - "id": "dfareporting.conversions.batchinsert", - "parameterOrder": [ - "profileId" - ], - "parameters": { - "profileId": { - "description": "User profile ID associated with this request.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - } - }, - "path": "userprofiles/{profileId}/conversions/batchinsert", - "request": { - "$ref": "ConversionsBatchInsertRequest" - }, - "response": { - "$ref": "ConversionsBatchInsertResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/ddmconversions" - ] - }, - "batchupdate": { - "description": "Updates existing conversions.", - "flatPath": "userprofiles/{profileId}/conversions/batchupdate", - "httpMethod": "POST", - "id": "dfareporting.conversions.batchupdate", - "parameterOrder": [ - "profileId" - ], - "parameters": { - "profileId": { - "description": "User profile ID associated with this request.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - } - }, - "path": "userprofiles/{profileId}/conversions/batchupdate", - "request": { - "$ref": "ConversionsBatchUpdateRequest" - }, - "response": { - "$ref": "ConversionsBatchUpdateResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/ddmconversions" - ] - } - } - }, - "countries": { - "methods": { - "get": { - "description": "Gets one country by ID.", - "flatPath": "userprofiles/{profileId}/countries/{dartId}", - "httpMethod": "GET", - "id": "dfareporting.countries.get", - "parameterOrder": [ - "profileId", - "dartId" - ], - "parameters": { - "dartId": { - "description": "Country DART ID.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - }, - "profileId": { - "description": "User profile ID associated with this request.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - } - }, - "path": "userprofiles/{profileId}/countries/{dartId}", - "response": { - "$ref": "Country" - }, - "scopes": [ - "https://www.googleapis.com/auth/dfatrafficking" - ] - }, - "list": { - "description": "Retrieves a list of countries.", - "flatPath": "userprofiles/{profileId}/countries", - "httpMethod": "GET", - "id": "dfareporting.countries.list", - "parameterOrder": [ - "profileId" - ], - "parameters": { - "profileId": { - "description": "User profile ID associated with this request.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - } - }, - "path": "userprofiles/{profileId}/countries", - "response": { - "$ref": "CountriesListResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/dfatrafficking" - ] - } - } - }, - "creativeAssets": { - "methods": { - "insert": { - "description": "Inserts a new creative asset.", - "flatPath": "userprofiles/{profileId}/creativeAssets/{advertiserId}/creativeAssets", - "httpMethod": "POST", - "id": "dfareporting.creativeAssets.insert", - "mediaUpload": { - "accept": [ - "*/*" - ], - "maxSize": "1073741824", - "protocols": { - "simple": { - "multipart": true, - "path": "/upload/dfareporting/v3.5/userprofiles/{profileId}/creativeAssets/{advertiserId}/creativeAssets" - } - } - }, - "parameterOrder": [ - "profileId", - "advertiserId" - ], - "parameters": { - "advertiserId": { - "description": "Advertiser ID of this creative. This is a required field.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - }, - "profileId": { - "description": "User profile ID associated with this request.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - } - }, - "path": "userprofiles/{profileId}/creativeAssets/{advertiserId}/creativeAssets", - "request": { - "$ref": "CreativeAssetMetadata" - }, - "response": { - "$ref": "CreativeAssetMetadata" - }, - "scopes": [ - "https://www.googleapis.com/auth/dfatrafficking" - ], - "supportsMediaUpload": true - } - } - }, - "creativeFieldValues": { - "methods": { - "delete": { - "description": "Deletes an existing creative field value.", - "flatPath": "userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues/{id}", - "httpMethod": "DELETE", - "id": "dfareporting.creativeFieldValues.delete", - "parameterOrder": [ - "profileId", - "creativeFieldId", - "id" - ], - "parameters": { - "creativeFieldId": { - "description": "Creative field ID for this creative field value.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - }, - "id": { - "description": "Creative Field Value ID", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - }, - "profileId": { - "description": "User profile ID associated with this request.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - } - }, - "path": "userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues/{id}", - "scopes": [ - "https://www.googleapis.com/auth/dfatrafficking" - ] - }, - "get": { - "description": "Gets one creative field value by ID.", - "flatPath": "userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues/{id}", - "httpMethod": "GET", - "id": "dfareporting.creativeFieldValues.get", - "parameterOrder": [ - "profileId", - "creativeFieldId", - "id" - ], - "parameters": { - "creativeFieldId": { - "description": "Creative field ID for this creative field value.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - }, - "id": { - "description": "Creative Field Value ID", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - }, - "profileId": { - "description": "User profile ID associated with this request.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - } - }, - "path": "userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues/{id}", - "response": { - "$ref": "CreativeFieldValue" - }, - "scopes": [ - "https://www.googleapis.com/auth/dfatrafficking" - ] - }, - "insert": { - "description": "Inserts a new creative field value.", - "flatPath": "userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues", - "httpMethod": "POST", - "id": "dfareporting.creativeFieldValues.insert", - "parameterOrder": [ - "profileId", - "creativeFieldId" - ], - "parameters": { - "creativeFieldId": { - "description": "Creative field ID for this creative field value.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - }, - "profileId": { - "description": "User profile ID associated with this request.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - } - }, - "path": "userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues", - "request": { - "$ref": "CreativeFieldValue" - }, - "response": { - "$ref": "CreativeFieldValue" - }, - "scopes": [ - "https://www.googleapis.com/auth/dfatrafficking" - ] - }, - "list": { - "description": "Retrieves a list of creative field values, possibly filtered. This method supports paging.", - "flatPath": "userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues", - "httpMethod": "GET", - "id": "dfareporting.creativeFieldValues.list", - "parameterOrder": [ - "profileId", - "creativeFieldId" - ], - "parameters": { - "creativeFieldId": { - "description": "Creative field ID for this creative field value.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - }, - "ids": { - "description": "Select only creative field values with these IDs.", - "format": "int64", - "location": "query", - "repeated": true, - "type": "string" - }, - "maxResults": { - "default": "1000", - "description": "Maximum number of results to return.", - "format": "int32", - "location": "query", - "maximum": "1000", - "minimum": "0", - "type": "integer" - }, - "pageToken": { - "description": "Value of the nextPageToken from the previous result page.", - "location": "query", - "type": "string" - }, - "profileId": { - "description": "User profile ID associated with this request.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - }, - "searchString": { - "description": "Allows searching for creative field values by their values. Wildcards (e.g. *) are not allowed.", - "location": "query", - "type": "string" - }, - "sortField": { - "default": "ID", - "description": "Field by which to sort the list.", - "enum": [ - "ID", - "VALUE" - ], - "enumDescriptions": [ - "", - "" - ], - "location": "query", - "type": "string" - }, - "sortOrder": { - "default": "ASCENDING", - "description": "Order of sorted results.", - "enum": [ - "ASCENDING", - "DESCENDING" - ], - "enumDescriptions": [ - "", - "" - ], - "location": "query", - "type": "string" - } - }, - "path": "userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues", - "response": { - "$ref": "CreativeFieldValuesListResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/dfatrafficking" - ] - }, - "patch": { - "description": "Updates an existing creative field value. This method supports patch semantics.", - "flatPath": "userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues", - "httpMethod": "PATCH", - "id": "dfareporting.creativeFieldValues.patch", - "parameterOrder": [ - "profileId", - "creativeFieldId", - "id" - ], - "parameters": { - "creativeFieldId": { - "description": "CreativeField ID.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - }, - "id": { - "description": "CreativeFieldValue ID.", - "format": "int64", - "location": "query", - "required": true, - "type": "string" - }, - "profileId": { - "description": "User profile ID associated with this request.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - } - }, - "path": "userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues", - "request": { - "$ref": "CreativeFieldValue" - }, - "response": { - "$ref": "CreativeFieldValue" - }, - "scopes": [ - "https://www.googleapis.com/auth/dfatrafficking" - ] - }, - "update": { - "description": "Updates an existing creative field value.", - "flatPath": "userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues", - "httpMethod": "PUT", - "id": "dfareporting.creativeFieldValues.update", - "parameterOrder": [ - "profileId", - "creativeFieldId" - ], - "parameters": { - "creativeFieldId": { - "description": "Creative field ID for this creative field value.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - }, - "profileId": { - "description": "User profile ID associated with this request.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - } - }, - "path": "userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues", - "request": { - "$ref": "CreativeFieldValue" - }, - "response": { - "$ref": "CreativeFieldValue" - }, - "scopes": [ - "https://www.googleapis.com/auth/dfatrafficking" - ] - } - } - }, - "creativeFields": { - "methods": { - "delete": { - "description": "Deletes an existing creative field.", - "flatPath": "userprofiles/{profileId}/creativeFields/{id}", - "httpMethod": "DELETE", - "id": "dfareporting.creativeFields.delete", - "parameterOrder": [ - "profileId", - "id" - ], - "parameters": { - "id": { - "description": "Creative Field ID", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - }, - "profileId": { - "description": "User profile ID associated with this request.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - } - }, - "path": "userprofiles/{profileId}/creativeFields/{id}", - "scopes": [ - "https://www.googleapis.com/auth/dfatrafficking" - ] - }, - "get": { - "description": "Gets one creative field by ID.", - "flatPath": "userprofiles/{profileId}/creativeFields/{id}", - "httpMethod": "GET", - "id": "dfareporting.creativeFields.get", - "parameterOrder": [ - "profileId", - "id" - ], - "parameters": { - "id": { - "description": "Creative Field ID", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - }, - "profileId": { - "description": "User profile ID associated with this request.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - } - }, - "path": "userprofiles/{profileId}/creativeFields/{id}", - "response": { - "$ref": "CreativeField" - }, - "scopes": [ - "https://www.googleapis.com/auth/dfatrafficking" - ] - }, - "insert": { - "description": "Inserts a new creative field.", - "flatPath": "userprofiles/{profileId}/creativeFields", - "httpMethod": "POST", - "id": "dfareporting.creativeFields.insert", - "parameterOrder": [ - "profileId" - ], - "parameters": { - "profileId": { - "description": "User profile ID associated with this request.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - } - }, - "path": "userprofiles/{profileId}/creativeFields", - "request": { - "$ref": "CreativeField" - }, - "response": { - "$ref": "CreativeField" - }, - "scopes": [ - "https://www.googleapis.com/auth/dfatrafficking" - ] - }, - "list": { - "description": "Retrieves a list of creative fields, possibly filtered. This method supports paging.", - "flatPath": "userprofiles/{profileId}/creativeFields", - "httpMethod": "GET", - "id": "dfareporting.creativeFields.list", - "parameterOrder": [ - "profileId" - ], - "parameters": { - "advertiserIds": { - "description": "Select only creative fields that belong to these advertisers.", - "format": "int64", - "location": "query", - "repeated": true, - "type": "string" - }, - "ids": { - "description": "Select only creative fields with these IDs.", - "format": "int64", - "location": "query", - "repeated": true, - "type": "string" - }, - "maxResults": { - "default": "1000", - "description": "Maximum number of results to return.", - "format": "int32", - "location": "query", - "maximum": "1000", - "minimum": "0", - "type": "integer" - }, - "pageToken": { - "description": "Value of the nextPageToken from the previous result page.", - "location": "query", - "type": "string" - }, - "profileId": { - "description": "User profile ID associated with this request.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - }, - "searchString": { - "description": "Allows searching for creative fields by name or ID. Wildcards (*) are allowed. For example, \"creativefield*2015\" will return creative fields with names like \"creativefield June 2015\", \"creativefield April 2015\", or simply \"creativefield 2015\". Most of the searches also add wild-cards implicitly at the start and the end of the search string. For example, a search string of \"creativefield\" will match creative fields with the name \"my creativefield\", \"creativefield 2015\", or simply \"creativefield\".", - "location": "query", - "type": "string" - }, - "sortField": { - "default": "ID", - "description": "Field by which to sort the list.", - "enum": [ - "ID", - "NAME" - ], - "enumDescriptions": [ - "", - "" - ], - "location": "query", - "type": "string" - }, - "sortOrder": { - "default": "ASCENDING", - "description": "Order of sorted results.", - "enum": [ - "ASCENDING", - "DESCENDING" - ], - "enumDescriptions": [ - "", - "" - ], - "location": "query", - "type": "string" - } - }, - "path": "userprofiles/{profileId}/creativeFields", - "response": { - "$ref": "CreativeFieldsListResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/dfatrafficking" - ] - }, - "patch": { - "description": "Updates an existing creative field. This method supports patch semantics.", - "flatPath": "userprofiles/{profileId}/creativeFields", - "httpMethod": "PATCH", - "id": "dfareporting.creativeFields.patch", - "parameterOrder": [ - "profileId", - "id" - ], - "parameters": { - "id": { - "description": "CreativeField ID.", - "format": "int64", - "location": "query", - "required": true, - "type": "string" - }, - "profileId": { - "description": "User profile ID associated with this request.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - } - }, - "path": "userprofiles/{profileId}/creativeFields", - "request": { - "$ref": "CreativeField" - }, - "response": { - "$ref": "CreativeField" - }, - "scopes": [ - "https://www.googleapis.com/auth/dfatrafficking" - ] - }, - "update": { - "description": "Updates an existing creative field.", - "flatPath": "userprofiles/{profileId}/creativeFields", - "httpMethod": "PUT", - "id": "dfareporting.creativeFields.update", - "parameterOrder": [ - "profileId" - ], - "parameters": { - "profileId": { - "description": "User profile ID associated with this request.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - } - }, - "path": "userprofiles/{profileId}/creativeFields", - "request": { - "$ref": "CreativeField" - }, - "response": { - "$ref": "CreativeField" - }, - "scopes": [ - "https://www.googleapis.com/auth/dfatrafficking" - ] - } - } - }, - "creativeGroups": { - "methods": { - "get": { - "description": "Gets one creative group by ID.", - "flatPath": "userprofiles/{profileId}/creativeGroups/{id}", - "httpMethod": "GET", - "id": "dfareporting.creativeGroups.get", - "parameterOrder": [ - "profileId", - "id" - ], - "parameters": { - "id": { - "description": "Creative group ID.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - }, - "profileId": { - "description": "User profile ID associated with this request.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - } - }, - "path": "userprofiles/{profileId}/creativeGroups/{id}", - "response": { - "$ref": "CreativeGroup" - }, - "scopes": [ - "https://www.googleapis.com/auth/dfatrafficking" - ] - }, - "insert": { - "description": "Inserts a new creative group.", - "flatPath": "userprofiles/{profileId}/creativeGroups", - "httpMethod": "POST", - "id": "dfareporting.creativeGroups.insert", - "parameterOrder": [ - "profileId" - ], - "parameters": { - "profileId": { - "description": "User profile ID associated with this request.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - } - }, - "path": "userprofiles/{profileId}/creativeGroups", - "request": { - "$ref": "CreativeGroup" - }, - "response": { - "$ref": "CreativeGroup" - }, - "scopes": [ - "https://www.googleapis.com/auth/dfatrafficking" - ] - }, - "list": { - "description": "Retrieves a list of creative groups, possibly filtered. This method supports paging.", - "flatPath": "userprofiles/{profileId}/creativeGroups", - "httpMethod": "GET", - "id": "dfareporting.creativeGroups.list", - "parameterOrder": [ - "profileId" - ], - "parameters": { - "advertiserIds": { - "description": "Select only creative groups that belong to these advertisers.", - "format": "int64", - "location": "query", - "repeated": true, - "type": "string" - }, - "groupNumber": { - "description": "Select only creative groups that belong to this subgroup.", - "format": "int32", - "location": "query", - "maximum": "2", - "minimum": "1", - "type": "integer" - }, - "ids": { - "description": "Select only creative groups with these IDs.", - "format": "int64", - "location": "query", - "repeated": true, - "type": "string" - }, - "maxResults": { - "default": "1000", - "description": "Maximum number of results to return.", - "format": "int32", - "location": "query", - "maximum": "1000", - "minimum": "0", - "type": "integer" - }, - "pageToken": { - "description": "Value of the nextPageToken from the previous result page.", - "location": "query", - "type": "string" - }, - "profileId": { - "description": "User profile ID associated with this request.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - }, - "searchString": { - "description": "Allows searching for creative groups by name or ID. Wildcards (*) are allowed. For example, \"creativegroup*2015\" will return creative groups with names like \"creativegroup June 2015\", \"creativegroup April 2015\", or simply \"creativegroup 2015\". Most of the searches also add wild-cards implicitly at the start and the end of the search string. For example, a search string of \"creativegroup\" will match creative groups with the name \"my creativegroup\", \"creativegroup 2015\", or simply \"creativegroup\".", - "location": "query", - "type": "string" - }, - "sortField": { - "default": "ID", - "description": "Field by which to sort the list.", - "enum": [ - "ID", - "NAME" - ], - "enumDescriptions": [ - "", - "" - ], - "location": "query", - "type": "string" - }, - "sortOrder": { - "default": "ASCENDING", - "description": "Order of sorted results.", - "enum": [ - "ASCENDING", - "DESCENDING" - ], - "enumDescriptions": [ - "", - "" - ], - "location": "query", - "type": "string" - } - }, - "path": "userprofiles/{profileId}/creativeGroups", - "response": { - "$ref": "CreativeGroupsListResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/dfatrafficking" - ] - }, - "patch": { - "description": "Updates an existing creative group. This method supports patch semantics.", - "flatPath": "userprofiles/{profileId}/creativeGroups", - "httpMethod": "PATCH", - "id": "dfareporting.creativeGroups.patch", - "parameterOrder": [ - "profileId", - "id" - ], - "parameters": { - "id": { - "description": "CreativeGroup ID.", - "format": "int64", - "location": "query", - "required": true, - "type": "string" - }, - "profileId": { - "description": "User profile ID associated with this request.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - } - }, - "path": "userprofiles/{profileId}/creativeGroups", - "request": { - "$ref": "CreativeGroup" - }, - "response": { - "$ref": "CreativeGroup" - }, - "scopes": [ - "https://www.googleapis.com/auth/dfatrafficking" - ] - }, - "update": { - "description": "Updates an existing creative group.", - "flatPath": "userprofiles/{profileId}/creativeGroups", - "httpMethod": "PUT", - "id": "dfareporting.creativeGroups.update", - "parameterOrder": [ - "profileId" - ], - "parameters": { - "profileId": { - "description": "User profile ID associated with this request.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - } - }, - "path": "userprofiles/{profileId}/creativeGroups", - "request": { - "$ref": "CreativeGroup" - }, - "response": { - "$ref": "CreativeGroup" - }, - "scopes": [ - "https://www.googleapis.com/auth/dfatrafficking" - ] - } - } - }, - "creatives": { - "methods": { - "get": { - "description": "Gets one creative by ID.", - "flatPath": "userprofiles/{profileId}/creatives/{id}", - "httpMethod": "GET", - "id": "dfareporting.creatives.get", - "parameterOrder": [ - "profileId", - "id" - ], - "parameters": { - "id": { - "description": "Creative ID.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - }, - "profileId": { - "description": "User profile ID associated with this request.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - } - }, - "path": "userprofiles/{profileId}/creatives/{id}", - "response": { - "$ref": "Creative" - }, - "scopes": [ - "https://www.googleapis.com/auth/dfatrafficking" - ] - }, - "insert": { - "description": "Inserts a new creative.", - "flatPath": "userprofiles/{profileId}/creatives", - "httpMethod": "POST", - "id": "dfareporting.creatives.insert", - "parameterOrder": [ - "profileId" - ], - "parameters": { - "profileId": { - "description": "User profile ID associated with this request.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - } - }, - "path": "userprofiles/{profileId}/creatives", - "request": { - "$ref": "Creative" - }, - "response": { - "$ref": "Creative" - }, - "scopes": [ - "https://www.googleapis.com/auth/dfatrafficking" - ] - }, - "list": { - "description": "Retrieves a list of creatives, possibly filtered. This method supports paging.", - "flatPath": "userprofiles/{profileId}/creatives", - "httpMethod": "GET", - "id": "dfareporting.creatives.list", - "parameterOrder": [ - "profileId" - ], - "parameters": { - "active": { - "description": "Select only active creatives. Leave blank to select active and inactive creatives.", - "location": "query", - "type": "boolean" - }, - "advertiserId": { - "description": "Select only creatives with this advertiser ID.", - "format": "int64", - "location": "query", - "type": "string" - }, - "archived": { - "description": "Select only archived creatives. Leave blank to select archived and unarchived creatives.", - "location": "query", - "type": "boolean" - }, - "campaignId": { - "description": "Select only creatives with this campaign ID.", - "format": "int64", - "location": "query", - "type": "string" - }, - "companionCreativeIds": { - "description": "Select only in-stream video creatives with these companion IDs.", - "format": "int64", - "location": "query", - "repeated": true, - "type": "string" - }, - "creativeFieldIds": { - "description": "Select only creatives with these creative field IDs.", - "format": "int64", - "location": "query", - "repeated": true, - "type": "string" - }, - "ids": { - "description": "Select only creatives with these IDs.", - "format": "int64", - "location": "query", - "repeated": true, - "type": "string" - }, - "maxResults": { - "default": "1000", - "description": "Maximum number of results to return.", - "format": "int32", - "location": "query", - "maximum": "1000", - "minimum": "0", - "type": "integer" - }, - "pageToken": { - "description": "Value of the nextPageToken from the previous result page.", - "location": "query", - "type": "string" - }, - "profileId": { - "description": "User profile ID associated with this request.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - }, - "renderingIds": { - "description": "Select only creatives with these rendering IDs.", - "format": "int64", - "location": "query", - "repeated": true, - "type": "string" - }, - "searchString": { - "description": "Allows searching for objects by name or ID. Wildcards (*) are allowed. For example, \"creative*2015\" will return objects with names like \"creative June 2015\", \"creative April 2015\", or simply \"creative 2015\". Most of the searches also add wildcards implicitly at the start and the end of the search string. For example, a search string of \"creative\" will match objects with name \"my creative\", \"creative 2015\", or simply \"creative\".", - "location": "query", - "type": "string" - }, - "sizeIds": { - "description": "Select only creatives with these size IDs.", - "format": "int64", - "location": "query", - "repeated": true, - "type": "string" - }, - "sortField": { - "default": "ID", - "description": "Field by which to sort the list.", - "enum": [ - "ID", - "NAME" - ], - "enumDescriptions": [ - "", - "" - ], - "location": "query", - "type": "string" - }, - "sortOrder": { - "default": "ASCENDING", - "description": "Order of sorted results.", - "enum": [ - "ASCENDING", - "DESCENDING" - ], - "enumDescriptions": [ - "", - "" - ], - "location": "query", - "type": "string" - }, - "studioCreativeId": { - "description": "Select only creatives corresponding to this Studio creative ID.", - "format": "int64", - "location": "query", - "type": "string" - }, - "types": { - "description": "Select only creatives with these creative types.", - "enum": [ - "IMAGE", - "DISPLAY_REDIRECT", - "CUSTOM_DISPLAY", - "INTERNAL_REDIRECT", - "CUSTOM_DISPLAY_INTERSTITIAL", - "INTERSTITIAL_INTERNAL_REDIRECT", - "TRACKING_TEXT", - "RICH_MEDIA_DISPLAY_BANNER", - "RICH_MEDIA_INPAGE_FLOATING", - "RICH_MEDIA_IM_EXPAND", - "RICH_MEDIA_DISPLAY_EXPANDING", - "RICH_MEDIA_DISPLAY_INTERSTITIAL", - "RICH_MEDIA_DISPLAY_MULTI_FLOATING_INTERSTITIAL", - "RICH_MEDIA_MOBILE_IN_APP", - "FLASH_INPAGE", - "INSTREAM_VIDEO", - "VPAID_LINEAR_VIDEO", - "VPAID_NON_LINEAR_VIDEO", - "INSTREAM_VIDEO_REDIRECT", - "RICH_MEDIA_PEEL_DOWN", - "HTML5_BANNER", - "DISPLAY", - "DISPLAY_IMAGE_GALLERY", - "BRAND_SAFE_DEFAULT_INSTREAM_VIDEO", - "INSTREAM_AUDIO" - ], - "enumDescriptions": [ - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "" - ], - "location": "query", - "repeated": true, - "type": "string" - } - }, - "path": "userprofiles/{profileId}/creatives", - "response": { - "$ref": "CreativesListResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/dfatrafficking" - ] - }, - "patch": { - "description": "Updates an existing creative. This method supports patch semantics.", - "flatPath": "userprofiles/{profileId}/creatives", - "httpMethod": "PATCH", - "id": "dfareporting.creatives.patch", - "parameterOrder": [ - "profileId", - "id" - ], - "parameters": { - "id": { - "description": "Creative ID.", - "format": "int64", - "location": "query", - "required": true, - "type": "string" - }, - "profileId": { - "description": "User profile ID associated with this request.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - } - }, - "path": "userprofiles/{profileId}/creatives", - "request": { - "$ref": "Creative" - }, - "response": { - "$ref": "Creative" - }, - "scopes": [ - "https://www.googleapis.com/auth/dfatrafficking" - ] - }, - "update": { - "description": "Updates an existing creative.", - "flatPath": "userprofiles/{profileId}/creatives", - "httpMethod": "PUT", - "id": "dfareporting.creatives.update", - "parameterOrder": [ - "profileId" - ], - "parameters": { - "profileId": { - "description": "User profile ID associated with this request.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - } - }, - "path": "userprofiles/{profileId}/creatives", - "request": { - "$ref": "Creative" - }, - "response": { - "$ref": "Creative" - }, - "scopes": [ - "https://www.googleapis.com/auth/dfatrafficking" - ] - } - } - }, - "dimensionValues": { - "methods": { - "query": { - "description": "Retrieves list of report dimension values for a list of filters.", - "flatPath": "userprofiles/{profileId}/dimensionvalues/query", - "httpMethod": "POST", - "id": "dfareporting.dimensionValues.query", - "parameterOrder": [ - "profileId" - ], - "parameters": { - "maxResults": { - "default": "100", - "description": "Maximum number of results to return.", - "format": "int32", - "location": "query", - "maximum": "100", - "minimum": "0", - "type": "integer" - }, - "pageToken": { - "description": "The value of the nextToken from the previous result page.", - "location": "query", - "type": "string" - }, - "profileId": { - "description": "The Campaign Manager 360 user profile ID.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - } - }, - "path": "userprofiles/{profileId}/dimensionvalues/query", - "request": { - "$ref": "DimensionValueRequest" - }, - "response": { - "$ref": "DimensionValueList" - }, - "scopes": [ - "https://www.googleapis.com/auth/dfareporting" - ] - } - } - }, - "directorySites": { - "methods": { - "get": { - "description": "Gets one directory site by ID.", - "flatPath": "userprofiles/{profileId}/directorySites/{id}", - "httpMethod": "GET", - "id": "dfareporting.directorySites.get", - "parameterOrder": [ - "profileId", - "id" - ], - "parameters": { - "id": { - "description": "Directory site ID.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - }, - "profileId": { - "description": "User profile ID associated with this request.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - } - }, - "path": "userprofiles/{profileId}/directorySites/{id}", - "response": { - "$ref": "DirectorySite" - }, - "scopes": [ - "https://www.googleapis.com/auth/dfatrafficking" - ] - }, - "insert": { - "description": "Inserts a new directory site.", - "flatPath": "userprofiles/{profileId}/directorySites", - "httpMethod": "POST", - "id": "dfareporting.directorySites.insert", - "parameterOrder": [ - "profileId" - ], - "parameters": { - "profileId": { - "description": "User profile ID associated with this request.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - } - }, - "path": "userprofiles/{profileId}/directorySites", - "request": { - "$ref": "DirectorySite" - }, - "response": { - "$ref": "DirectorySite" - }, - "scopes": [ - "https://www.googleapis.com/auth/dfatrafficking" - ] - }, - "list": { - "description": "Retrieves a list of directory sites, possibly filtered. This method supports paging.", - "flatPath": "userprofiles/{profileId}/directorySites", - "httpMethod": "GET", - "id": "dfareporting.directorySites.list", - "parameterOrder": [ - "profileId" - ], - "parameters": { - "acceptsInStreamVideoPlacements": { - "description": "This search filter is no longer supported and will have no effect on the results returned.", - "location": "query", - "type": "boolean" - }, - "acceptsInterstitialPlacements": { - "description": "This search filter is no longer supported and will have no effect on the results returned.", - "location": "query", - "type": "boolean" - }, - "acceptsPublisherPaidPlacements": { - "description": "Select only directory sites that accept publisher paid placements. This field can be left blank.", - "location": "query", - "type": "boolean" - }, - "active": { - "description": "Select only active directory sites. Leave blank to retrieve both active and inactive directory sites.", - "location": "query", - "type": "boolean" - }, - "dfpNetworkCode": { - "description": "Select only directory sites with this Ad Manager network code.", - "location": "query", - "type": "string" - }, - "ids": { - "description": "Select only directory sites with these IDs.", - "format": "int64", - "location": "query", - "repeated": true, - "type": "string" - }, - "maxResults": { - "default": "1000", - "description": "Maximum number of results to return.", - "format": "int32", - "location": "query", - "maximum": "1000", - "minimum": "0", - "type": "integer" - }, - "pageToken": { - "description": "Value of the nextPageToken from the previous result page.", - "location": "query", - "type": "string" - }, - "profileId": { - "description": "User profile ID associated with this request.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - }, - "searchString": { - "description": "Allows searching for objects by name, ID or URL. Wildcards (*) are allowed. For example, \"directory site*2015\" will return objects with names like \"directory site June 2015\", \"directory site April 2015\", or simply \"directory site 2015\". Most of the searches also add wildcards implicitly at the start and the end of the search string. For example, a search string of \"directory site\" will match objects with name \"my directory site\", \"directory site 2015\" or simply, \"directory site\".", - "location": "query", - "type": "string" - }, - "sortField": { - "default": "ID", - "description": "Field by which to sort the list.", - "enum": [ - "ID", - "NAME" - ], - "enumDescriptions": [ - "", - "" - ], - "location": "query", - "type": "string" - }, - "sortOrder": { - "default": "ASCENDING", - "description": "Order of sorted results.", - "enum": [ - "ASCENDING", - "DESCENDING" - ], - "enumDescriptions": [ - "", - "" - ], - "location": "query", - "type": "string" - } - }, - "path": "userprofiles/{profileId}/directorySites", - "response": { - "$ref": "DirectorySitesListResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/dfatrafficking" - ] - } - } - }, - "dynamicTargetingKeys": { - "methods": { - "delete": { - "description": "Deletes an existing dynamic targeting key.", - "flatPath": "userprofiles/{profileId}/dynamicTargetingKeys/{objectId}", - "httpMethod": "DELETE", - "id": "dfareporting.dynamicTargetingKeys.delete", - "parameterOrder": [ - "profileId", - "objectId", - "name", - "objectType" - ], - "parameters": { - "name": { - "description": "Name of this dynamic targeting key. This is a required field. Must be less than 256 characters long and cannot contain commas. All characters are converted to lowercase.", - "location": "query", - "required": true, - "type": "string" - }, - "objectId": { - "description": "ID of the object of this dynamic targeting key. This is a required field.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - }, - "objectType": { - "description": "Type of the object of this dynamic targeting key. This is a required field.", - "enum": [ - "OBJECT_ADVERTISER", - "OBJECT_AD", - "OBJECT_CREATIVE", - "OBJECT_PLACEMENT" - ], - "enumDescriptions": [ - "", - "", - "", - "" - ], - "location": "query", - "required": true, - "type": "string" - }, - "profileId": { - "description": "User profile ID associated with this request.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - } - }, - "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": "userprofiles/{profileId}/dynamicTargetingKeys", - "httpMethod": "POST", - "id": "dfareporting.dynamicTargetingKeys.insert", - "parameterOrder": [ - "profileId" - ], - "parameters": { - "profileId": { - "description": "User profile ID associated with this request.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - } - }, - "path": "userprofiles/{profileId}/dynamicTargetingKeys", - "request": { - "$ref": "DynamicTargetingKey" - }, - "response": { - "$ref": "DynamicTargetingKey" - }, - "scopes": [ - "https://www.googleapis.com/auth/dfatrafficking" - ] - }, - "list": { - "description": "Retrieves a list of dynamic targeting keys.", - "flatPath": "userprofiles/{profileId}/dynamicTargetingKeys", - "httpMethod": "GET", - "id": "dfareporting.dynamicTargetingKeys.list", - "parameterOrder": [ - "profileId" - ], - "parameters": { - "advertiserId": { - "description": "Select only dynamic targeting keys whose object has this advertiser ID.", - "format": "int64", - "location": "query", - "type": "string" - }, - "names": { - "description": "Select only dynamic targeting keys exactly matching these names.", - "location": "query", - "repeated": true, - "type": "string" - }, - "objectId": { - "description": "Select only dynamic targeting keys with this object ID.", - "format": "int64", - "location": "query", - "type": "string" - }, - "objectType": { - "description": "Select only dynamic targeting keys with this object type.", - "enum": [ - "OBJECT_ADVERTISER", - "OBJECT_AD", - "OBJECT_CREATIVE", - "OBJECT_PLACEMENT" - ], - "enumDescriptions": [ - "", - "", - "", - "" - ], - "location": "query", - "type": "string" - }, - "profileId": { - "description": "User profile ID associated with this request.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - } - }, - "path": "userprofiles/{profileId}/dynamicTargetingKeys", - "response": { - "$ref": "DynamicTargetingKeysListResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/dfatrafficking" - ] - } - } - }, - "eventTags": { - "methods": { - "delete": { - "description": "Deletes an existing event tag.", - "flatPath": "userprofiles/{profileId}/eventTags/{id}", - "httpMethod": "DELETE", - "id": "dfareporting.eventTags.delete", - "parameterOrder": [ - "profileId", - "id" - ], - "parameters": { - "id": { - "description": "Event tag ID.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - }, - "profileId": { - "description": "User profile ID associated with this request.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - } - }, - "path": "userprofiles/{profileId}/eventTags/{id}", - "scopes": [ - "https://www.googleapis.com/auth/dfatrafficking" - ] - }, - "get": { - "description": "Gets one event tag by ID.", - "flatPath": "userprofiles/{profileId}/eventTags/{id}", - "httpMethod": "GET", - "id": "dfareporting.eventTags.get", - "parameterOrder": [ - "profileId", - "id" - ], - "parameters": { - "id": { - "description": "Event tag ID.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - }, - "profileId": { - "description": "User profile ID associated with this request.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - } - }, - "path": "userprofiles/{profileId}/eventTags/{id}", - "response": { - "$ref": "EventTag" - }, - "scopes": [ - "https://www.googleapis.com/auth/dfatrafficking" - ] - }, - "insert": { - "description": "Inserts a new event tag.", - "flatPath": "userprofiles/{profileId}/eventTags", - "httpMethod": "POST", - "id": "dfareporting.eventTags.insert", - "parameterOrder": [ - "profileId" - ], - "parameters": { - "profileId": { - "description": "User profile ID associated with this request.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - } - }, - "path": "userprofiles/{profileId}/eventTags", - "request": { - "$ref": "EventTag" - }, - "response": { - "$ref": "EventTag" - }, - "scopes": [ - "https://www.googleapis.com/auth/dfatrafficking" - ] - }, - "list": { - "description": "Retrieves a list of event tags, possibly filtered.", - "flatPath": "userprofiles/{profileId}/eventTags", - "httpMethod": "GET", - "id": "dfareporting.eventTags.list", - "parameterOrder": [ - "profileId" - ], - "parameters": { - "adId": { - "description": "Select only event tags that belong to this ad.", - "format": "int64", - "location": "query", - "type": "string" - }, - "advertiserId": { - "description": "Select only event tags that belong to this advertiser.", - "format": "int64", - "location": "query", - "type": "string" - }, - "campaignId": { - "description": "Select only event tags that belong to this campaign.", - "format": "int64", - "location": "query", - "type": "string" - }, - "definitionsOnly": { - "description": "Examine only the specified campaign or advertiser's event tags for matching selector criteria. When set to false, the parent advertiser and parent campaign of the specified ad or campaign is examined as well. In addition, when set to false, the status field is examined as well, along with the enabledByDefault field. This parameter can not be set to true when adId is specified as ads do not define their own even tags.", - "location": "query", - "type": "boolean" - }, - "enabled": { - "description": "Select only enabled event tags. What is considered enabled or disabled depends on the definitionsOnly parameter. When definitionsOnly is set to true, only the specified advertiser or campaign's event tags' enabledByDefault field is examined. When definitionsOnly is set to false, the specified ad or specified campaign's parent advertiser's or parent campaign's event tags' enabledByDefault and status fields are examined as well.", - "location": "query", - "type": "boolean" - }, - "eventTagTypes": { - "description": "Select only event tags with the specified event tag types. Event tag types can be used to specify whether to use a third-party pixel, a third-party JavaScript URL, or a third-party click-through URL for either impression or click tracking.", - "enum": [ - "IMPRESSION_IMAGE_EVENT_TAG", - "IMPRESSION_JAVASCRIPT_EVENT_TAG", - "CLICK_THROUGH_EVENT_TAG" - ], - "enumDescriptions": [ - "", - "", - "" - ], - "location": "query", - "repeated": true, - "type": "string" - }, - "ids": { - "description": "Select only event tags with these IDs.", - "format": "int64", - "location": "query", - "repeated": true, - "type": "string" - }, - "profileId": { - "description": "User profile ID associated with this request.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - }, - "searchString": { - "description": "Allows searching for objects by name or ID. Wildcards (*) are allowed. For example, \"eventtag*2015\" will return objects with names like \"eventtag June 2015\", \"eventtag April 2015\", or simply \"eventtag 2015\". Most of the searches also add wildcards implicitly at the start and the end of the search string. For example, a search string of \"eventtag\" will match objects with name \"my eventtag\", \"eventtag 2015\", or simply \"eventtag\".", - "location": "query", - "type": "string" - }, - "sortField": { - "default": "ID", - "description": "Field by which to sort the list.", - "enum": [ - "ID", - "NAME" - ], - "enumDescriptions": [ - "", - "" - ], - "location": "query", - "type": "string" - }, - "sortOrder": { - "default": "ASCENDING", - "description": "Order of sorted results.", - "enum": [ - "ASCENDING", - "DESCENDING" - ], - "enumDescriptions": [ - "", - "" - ], - "location": "query", - "type": "string" - } - }, - "path": "userprofiles/{profileId}/eventTags", - "response": { - "$ref": "EventTagsListResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/dfatrafficking" - ] - }, - "patch": { - "description": "Updates an existing event tag. This method supports patch semantics.", - "flatPath": "userprofiles/{profileId}/eventTags", - "httpMethod": "PATCH", - "id": "dfareporting.eventTags.patch", - "parameterOrder": [ - "profileId", - "id" - ], - "parameters": { - "id": { - "description": "EventTag ID.", - "format": "int64", - "location": "query", - "required": true, - "type": "string" - }, - "profileId": { - "description": "User profile ID associated with this request.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - } - }, - "path": "userprofiles/{profileId}/eventTags", - "request": { - "$ref": "EventTag" - }, - "response": { - "$ref": "EventTag" - }, - "scopes": [ - "https://www.googleapis.com/auth/dfatrafficking" - ] - }, - "update": { - "description": "Updates an existing event tag.", - "flatPath": "userprofiles/{profileId}/eventTags", - "httpMethod": "PUT", - "id": "dfareporting.eventTags.update", - "parameterOrder": [ - "profileId" - ], - "parameters": { - "profileId": { - "description": "User profile ID associated with this request.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - } - }, - "path": "userprofiles/{profileId}/eventTags", - "request": { - "$ref": "EventTag" - }, - "response": { - "$ref": "EventTag" - }, - "scopes": [ - "https://www.googleapis.com/auth/dfatrafficking" - ] - } - } - }, - "files": { - "methods": { - "get": { - "description": "Retrieves a report file by its report ID and file ID. This method supports media download.", - "flatPath": "reports/{reportId}/files/{fileId}", - "httpMethod": "GET", - "id": "dfareporting.files.get", - "parameterOrder": [ - "reportId", - "fileId" - ], - "parameters": { - "fileId": { - "description": "The ID of the report file.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - }, - "reportId": { - "description": "The ID of the report.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - } - }, - "path": "reports/{reportId}/files/{fileId}", - "response": { - "$ref": "File" - }, - "scopes": [ - "https://www.googleapis.com/auth/dfareporting" - ], - "supportsMediaDownload": true - }, - "list": { - "description": "Lists files for a user profile.", - "flatPath": "userprofiles/{profileId}/files", - "httpMethod": "GET", - "id": "dfareporting.files.list", - "parameterOrder": [ - "profileId" - ], - "parameters": { - "maxResults": { - "default": "10", - "description": "Maximum number of results to return.", - "format": "int32", - "location": "query", - "maximum": "10", - "minimum": "0", - "type": "integer" - }, - "pageToken": { - "description": "The value of the nextToken from the previous result page.", - "location": "query", - "type": "string" - }, - "profileId": { - "description": "The Campaign Manager 360 user profile ID.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - }, - "scope": { - "default": "MINE", - "description": "The scope that defines which results are returned.", - "enum": [ - "ALL", - "MINE", - "SHARED_WITH_ME" - ], - "enumDescriptions": [ - "All files in account.", - "My files.", - "Files shared with me." - ], - "location": "query", - "type": "string" - }, - "sortField": { - "default": "LAST_MODIFIED_TIME", - "description": "The field by which to sort the list.", - "enum": [ - "ID", - "LAST_MODIFIED_TIME" - ], - "enumDescriptions": [ - "Sort by file ID.", - "Sort by 'lastmodifiedAt' field." - ], - "location": "query", - "type": "string" - }, - "sortOrder": { - "default": "DESCENDING", - "description": "Order of sorted results.", - "enum": [ - "ASCENDING", - "DESCENDING" - ], - "enumDescriptions": [ - "Ascending order.", - "Descending order." - ], - "location": "query", - "type": "string" - } - }, - "path": "userprofiles/{profileId}/files", - "response": { - "$ref": "FileList" - }, - "scopes": [ - "https://www.googleapis.com/auth/dfareporting" - ] - } - } - }, - "floodlightActivities": { - "methods": { - "delete": { - "description": "Deletes an existing floodlight activity.", - "flatPath": "userprofiles/{profileId}/floodlightActivities/{id}", - "httpMethod": "DELETE", - "id": "dfareporting.floodlightActivities.delete", - "parameterOrder": [ - "profileId", - "id" - ], - "parameters": { - "id": { - "description": "Floodlight activity ID.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - }, - "profileId": { - "description": "User profile ID associated with this request.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - } - }, - "path": "userprofiles/{profileId}/floodlightActivities/{id}", - "scopes": [ - "https://www.googleapis.com/auth/dfatrafficking" - ] - }, - "generatetag": { - "description": "Generates a tag for a floodlight activity.", - "flatPath": "userprofiles/{profileId}/floodlightActivities/generatetag", - "httpMethod": "POST", - "id": "dfareporting.floodlightActivities.generatetag", - "parameterOrder": [ - "profileId" - ], - "parameters": { - "floodlightActivityId": { - "description": "Floodlight activity ID for which we want to generate a tag.", - "format": "int64", - "location": "query", - "type": "string" - }, - "profileId": { - "description": "User profile ID associated with this request.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - } - }, - "path": "userprofiles/{profileId}/floodlightActivities/generatetag", - "response": { - "$ref": "FloodlightActivitiesGenerateTagResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/dfatrafficking" - ] - }, - "get": { - "description": "Gets one floodlight activity by ID.", - "flatPath": "userprofiles/{profileId}/floodlightActivities/{id}", - "httpMethod": "GET", - "id": "dfareporting.floodlightActivities.get", - "parameterOrder": [ - "profileId", - "id" - ], - "parameters": { - "id": { - "description": "Floodlight activity ID.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - }, - "profileId": { - "description": "User profile ID associated with this request.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - } - }, - "path": "userprofiles/{profileId}/floodlightActivities/{id}", - "response": { - "$ref": "FloodlightActivity" - }, - "scopes": [ - "https://www.googleapis.com/auth/dfatrafficking" - ] - }, - "insert": { - "description": "Inserts a new floodlight activity.", - "flatPath": "userprofiles/{profileId}/floodlightActivities", - "httpMethod": "POST", - "id": "dfareporting.floodlightActivities.insert", - "parameterOrder": [ - "profileId" - ], - "parameters": { - "profileId": { - "description": "User profile ID associated with this request.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - } - }, - "path": "userprofiles/{profileId}/floodlightActivities", - "request": { - "$ref": "FloodlightActivity" - }, - "response": { - "$ref": "FloodlightActivity" - }, - "scopes": [ - "https://www.googleapis.com/auth/dfatrafficking" - ] - }, - "list": { - "description": "Retrieves a list of floodlight activities, possibly filtered. This method supports paging.", - "flatPath": "userprofiles/{profileId}/floodlightActivities", - "httpMethod": "GET", - "id": "dfareporting.floodlightActivities.list", - "parameterOrder": [ - "profileId" - ], - "parameters": { - "advertiserId": { - "description": "Select only floodlight activities for the specified advertiser ID. Must specify either ids, advertiserId, or floodlightConfigurationId for a non-empty result.", - "format": "int64", - "location": "query", - "type": "string" - }, - "floodlightActivityGroupIds": { - "description": "Select only floodlight activities with the specified floodlight activity group IDs.", - "format": "int64", - "location": "query", - "repeated": true, - "type": "string" - }, - "floodlightActivityGroupName": { - "description": "Select only floodlight activities with the specified floodlight activity group name.", - "location": "query", - "type": "string" - }, - "floodlightActivityGroupTagString": { - "description": "Select only floodlight activities with the specified floodlight activity group tag string.", - "location": "query", - "type": "string" - }, - "floodlightActivityGroupType": { - "description": "Select only floodlight activities with the specified floodlight activity group type.", - "enum": [ - "COUNTER", - "SALE" - ], - "enumDescriptions": [ - "", - "" - ], - "location": "query", - "type": "string" - }, - "floodlightConfigurationId": { - "description": "Select only floodlight activities for the specified floodlight configuration ID. Must specify either ids, advertiserId, or floodlightConfigurationId for a non-empty result.", - "format": "int64", - "location": "query", - "type": "string" - }, - "ids": { - "description": "Select only floodlight activities with the specified IDs. Must specify either ids, advertiserId, or floodlightConfigurationId for a non-empty result.", - "format": "int64", - "location": "query", - "repeated": true, - "type": "string" - }, - "maxResults": { - "default": "1000", - "description": "Maximum number of results to return.", - "format": "int32", - "location": "query", - "maximum": "1000", - "minimum": "0", - "type": "integer" - }, - "pageToken": { - "description": "Value of the nextPageToken from the previous result page.", - "location": "query", - "type": "string" - }, - "profileId": { - "description": "User profile ID associated with this request.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - }, - "searchString": { - "description": "Allows searching for objects by name or ID. Wildcards (*) are allowed. For example, \"floodlightactivity*2015\" will return objects with names like \"floodlightactivity June 2015\", \"floodlightactivity April 2015\", or simply \"floodlightactivity 2015\". Most of the searches also add wildcards implicitly at the start and the end of the search string. For example, a search string of \"floodlightactivity\" will match objects with name \"my floodlightactivity activity\", \"floodlightactivity 2015\", or simply \"floodlightactivity\".", - "location": "query", - "type": "string" - }, - "sortField": { - "default": "ID", - "description": "Field by which to sort the list.", - "enum": [ - "ID", - "NAME" - ], - "enumDescriptions": [ - "", - "" - ], - "location": "query", - "type": "string" - }, - "sortOrder": { - "default": "ASCENDING", - "description": "Order of sorted results.", - "enum": [ - "ASCENDING", - "DESCENDING" - ], - "enumDescriptions": [ - "", - "" - ], - "location": "query", - "type": "string" - }, - "tagString": { - "description": "Select only floodlight activities with the specified tag string.", - "location": "query", - "type": "string" - } - }, - "path": "userprofiles/{profileId}/floodlightActivities", - "response": { - "$ref": "FloodlightActivitiesListResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/dfatrafficking" - ] - }, - "patch": { - "description": "Updates an existing floodlight activity. This method supports patch semantics.", - "flatPath": "userprofiles/{profileId}/floodlightActivities", - "httpMethod": "PATCH", - "id": "dfareporting.floodlightActivities.patch", - "parameterOrder": [ - "profileId", - "id" - ], - "parameters": { - "id": { - "description": "FloodlightActivity ID.", - "format": "int64", - "location": "query", - "required": true, - "type": "string" - }, - "profileId": { - "description": "User profile ID associated with this request.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - } - }, - "path": "userprofiles/{profileId}/floodlightActivities", - "request": { - "$ref": "FloodlightActivity" - }, - "response": { - "$ref": "FloodlightActivity" - }, - "scopes": [ - "https://www.googleapis.com/auth/dfatrafficking" - ] - }, - "update": { - "description": "Updates an existing floodlight activity.", - "flatPath": "userprofiles/{profileId}/floodlightActivities", - "httpMethod": "PUT", - "id": "dfareporting.floodlightActivities.update", - "parameterOrder": [ - "profileId" - ], - "parameters": { - "profileId": { - "description": "User profile ID associated with this request.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - } - }, - "path": "userprofiles/{profileId}/floodlightActivities", - "request": { - "$ref": "FloodlightActivity" - }, - "response": { - "$ref": "FloodlightActivity" - }, - "scopes": [ - "https://www.googleapis.com/auth/dfatrafficking" - ] - } - } - }, - "floodlightActivityGroups": { - "methods": { - "get": { - "description": "Gets one floodlight activity group by ID.", - "flatPath": "userprofiles/{profileId}/floodlightActivityGroups/{id}", - "httpMethod": "GET", - "id": "dfareporting.floodlightActivityGroups.get", - "parameterOrder": [ - "profileId", - "id" - ], - "parameters": { - "id": { - "description": "Floodlight activity Group ID.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - }, - "profileId": { - "description": "User profile ID associated with this request.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - } - }, - "path": "userprofiles/{profileId}/floodlightActivityGroups/{id}", - "response": { - "$ref": "FloodlightActivityGroup" - }, - "scopes": [ - "https://www.googleapis.com/auth/dfatrafficking" - ] - }, - "insert": { - "description": "Inserts a new floodlight activity group.", - "flatPath": "userprofiles/{profileId}/floodlightActivityGroups", - "httpMethod": "POST", - "id": "dfareporting.floodlightActivityGroups.insert", - "parameterOrder": [ - "profileId" - ], - "parameters": { - "profileId": { - "description": "User profile ID associated with this request.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - } - }, - "path": "userprofiles/{profileId}/floodlightActivityGroups", - "request": { - "$ref": "FloodlightActivityGroup" - }, - "response": { - "$ref": "FloodlightActivityGroup" - }, - "scopes": [ - "https://www.googleapis.com/auth/dfatrafficking" - ] - }, - "list": { - "description": "Retrieves a list of floodlight activity groups, possibly filtered. This method supports paging.", - "flatPath": "userprofiles/{profileId}/floodlightActivityGroups", - "httpMethod": "GET", - "id": "dfareporting.floodlightActivityGroups.list", - "parameterOrder": [ - "profileId" - ], - "parameters": { - "advertiserId": { - "description": "Select only floodlight activity groups with the specified advertiser ID. Must specify either advertiserId or floodlightConfigurationId for a non-empty result.", - "format": "int64", - "location": "query", - "type": "string" - }, - "floodlightConfigurationId": { - "description": "Select only floodlight activity groups with the specified floodlight configuration ID. Must specify either advertiserId, or floodlightConfigurationId for a non-empty result.", - "format": "int64", - "location": "query", - "type": "string" - }, - "ids": { - "description": "Select only floodlight activity groups with the specified IDs. Must specify either advertiserId or floodlightConfigurationId for a non-empty result.", - "format": "int64", - "location": "query", - "repeated": true, - "type": "string" - }, - "maxResults": { - "default": "1000", - "description": "Maximum number of results to return.", - "format": "int32", - "location": "query", - "maximum": "1000", - "minimum": "0", - "type": "integer" - }, - "pageToken": { - "description": "Value of the nextPageToken from the previous result page.", - "location": "query", - "type": "string" - }, - "profileId": { - "description": "User profile ID associated with this request.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - }, - "searchString": { - "description": "Allows searching for objects by name or ID. Wildcards (*) are allowed. For example, \"floodlightactivitygroup*2015\" will return objects with names like \"floodlightactivitygroup June 2015\", \"floodlightactivitygroup April 2015\", or simply \"floodlightactivitygroup 2015\". Most of the searches also add wildcards implicitly at the start and the end of the search string. For example, a search string of \"floodlightactivitygroup\" will match objects with name \"my floodlightactivitygroup activity\", \"floodlightactivitygroup 2015\", or simply \"floodlightactivitygroup\".", - "location": "query", - "type": "string" - }, - "sortField": { - "default": "ID", - "description": "Field by which to sort the list.", - "enum": [ - "ID", - "NAME" - ], - "enumDescriptions": [ - "", - "" - ], - "location": "query", - "type": "string" - }, - "sortOrder": { - "default": "ASCENDING", - "description": "Order of sorted results.", - "enum": [ - "ASCENDING", - "DESCENDING" - ], - "enumDescriptions": [ - "", - "" - ], - "location": "query", - "type": "string" - }, - "type": { - "description": "Select only floodlight activity groups with the specified floodlight activity group type.", - "enum": [ - "COUNTER", - "SALE" - ], - "enumDescriptions": [ - "", - "" - ], - "location": "query", - "type": "string" - } - }, - "path": "userprofiles/{profileId}/floodlightActivityGroups", - "response": { - "$ref": "FloodlightActivityGroupsListResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/dfatrafficking" - ] - }, - "patch": { - "description": "Updates an existing floodlight activity group. This method supports patch semantics.", - "flatPath": "userprofiles/{profileId}/floodlightActivityGroups", - "httpMethod": "PATCH", - "id": "dfareporting.floodlightActivityGroups.patch", - "parameterOrder": [ - "profileId", - "id" - ], - "parameters": { - "id": { - "description": "FloodlightActivityGroup ID.", - "format": "int64", - "location": "query", - "required": true, - "type": "string" - }, - "profileId": { - "description": "User profile ID associated with this request.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - } - }, - "path": "userprofiles/{profileId}/floodlightActivityGroups", - "request": { - "$ref": "FloodlightActivityGroup" - }, - "response": { - "$ref": "FloodlightActivityGroup" - }, - "scopes": [ - "https://www.googleapis.com/auth/dfatrafficking" - ] - }, - "update": { - "description": "Updates an existing floodlight activity group.", - "flatPath": "userprofiles/{profileId}/floodlightActivityGroups", - "httpMethod": "PUT", - "id": "dfareporting.floodlightActivityGroups.update", - "parameterOrder": [ - "profileId" - ], - "parameters": { - "profileId": { - "description": "User profile ID associated with this request.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - } - }, - "path": "userprofiles/{profileId}/floodlightActivityGroups", - "request": { - "$ref": "FloodlightActivityGroup" - }, - "response": { - "$ref": "FloodlightActivityGroup" - }, - "scopes": [ - "https://www.googleapis.com/auth/dfatrafficking" - ] - } - } - }, - "floodlightConfigurations": { - "methods": { - "get": { - "description": "Gets one floodlight configuration by ID.", - "flatPath": "userprofiles/{profileId}/floodlightConfigurations/{id}", - "httpMethod": "GET", - "id": "dfareporting.floodlightConfigurations.get", - "parameterOrder": [ - "profileId", - "id" - ], - "parameters": { - "id": { - "description": "Floodlight configuration ID.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - }, - "profileId": { - "description": "User profile ID associated with this request.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - } - }, - "path": "userprofiles/{profileId}/floodlightConfigurations/{id}", - "response": { - "$ref": "FloodlightConfiguration" - }, - "scopes": [ - "https://www.googleapis.com/auth/dfatrafficking" - ] - }, - "list": { - "description": "Retrieves a list of floodlight configurations, possibly filtered.", - "flatPath": "userprofiles/{profileId}/floodlightConfigurations", - "httpMethod": "GET", - "id": "dfareporting.floodlightConfigurations.list", - "parameterOrder": [ - "profileId" - ], - "parameters": { - "ids": { - "description": "Set of IDs of floodlight configurations to retrieve. Required field; otherwise an empty list will be returned.", - "format": "int64", - "location": "query", - "repeated": true, - "type": "string" - }, - "profileId": { - "description": "User profile ID associated with this request.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - } - }, - "path": "userprofiles/{profileId}/floodlightConfigurations", - "response": { - "$ref": "FloodlightConfigurationsListResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/dfatrafficking" - ] - }, - "patch": { - "description": "Updates an existing floodlight configuration. This method supports patch semantics.", - "flatPath": "userprofiles/{profileId}/floodlightConfigurations", - "httpMethod": "PATCH", - "id": "dfareporting.floodlightConfigurations.patch", - "parameterOrder": [ - "profileId", - "id" - ], - "parameters": { - "id": { - "description": "FloodlightConfiguration ID.", - "format": "int64", - "location": "query", - "required": true, - "type": "string" - }, - "profileId": { - "description": "User profile ID associated with this request.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - } - }, - "path": "userprofiles/{profileId}/floodlightConfigurations", - "request": { - "$ref": "FloodlightConfiguration" - }, - "response": { - "$ref": "FloodlightConfiguration" - }, - "scopes": [ - "https://www.googleapis.com/auth/dfatrafficking" - ] - }, - "update": { - "description": "Updates an existing floodlight configuration.", - "flatPath": "userprofiles/{profileId}/floodlightConfigurations", - "httpMethod": "PUT", - "id": "dfareporting.floodlightConfigurations.update", - "parameterOrder": [ - "profileId" - ], - "parameters": { - "profileId": { - "description": "User profile ID associated with this request.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - } - }, - "path": "userprofiles/{profileId}/floodlightConfigurations", - "request": { - "$ref": "FloodlightConfiguration" - }, - "response": { - "$ref": "FloodlightConfiguration" - }, - "scopes": [ - "https://www.googleapis.com/auth/dfatrafficking" - ] - } - } - }, - "inventoryItems": { - "methods": { - "get": { - "description": "Gets one inventory item by ID.", - "flatPath": "userprofiles/{profileId}/projects/{projectId}/inventoryItems/{id}", - "httpMethod": "GET", - "id": "dfareporting.inventoryItems.get", - "parameterOrder": [ - "profileId", - "projectId", - "id" - ], - "parameters": { - "id": { - "description": "Inventory item ID.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - }, - "profileId": { - "description": "User profile ID associated with this request.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - }, - "projectId": { - "description": "Project ID for order documents.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - } - }, - "path": "userprofiles/{profileId}/projects/{projectId}/inventoryItems/{id}", - "response": { - "$ref": "InventoryItem" - }, - "scopes": [ - "https://www.googleapis.com/auth/dfatrafficking" - ] - }, - "list": { - "description": "Retrieves a list of inventory items, possibly filtered. This method supports paging.", - "flatPath": "userprofiles/{profileId}/projects/{projectId}/inventoryItems", - "httpMethod": "GET", - "id": "dfareporting.inventoryItems.list", - "parameterOrder": [ - "profileId", - "projectId" - ], - "parameters": { - "ids": { - "description": "Select only inventory items with these IDs.", - "format": "int64", - "location": "query", - "repeated": true, - "type": "string" - }, - "inPlan": { - "description": "Select only inventory items that are in plan.", - "location": "query", - "type": "boolean" - }, - "maxResults": { - "default": "1000", - "description": "Maximum number of results to return.", - "format": "int32", - "location": "query", - "maximum": "1000", - "minimum": "0", - "type": "integer" - }, - "orderId": { - "description": "Select only inventory items that belong to specified orders.", - "format": "int64", - "location": "query", - "repeated": true, - "type": "string" - }, - "pageToken": { - "description": "Value of the nextPageToken from the previous result page.", - "location": "query", - "type": "string" - }, - "profileId": { - "description": "User profile ID associated with this request.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - }, - "projectId": { - "description": "Project ID for order documents.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - }, - "siteId": { - "description": "Select only inventory items that are associated with these sites.", - "format": "int64", - "location": "query", - "repeated": true, - "type": "string" - }, - "sortField": { - "default": "ID", - "description": "Field by which to sort the list.", - "enum": [ - "ID", - "NAME" - ], - "enumDescriptions": [ - "", - "" - ], - "location": "query", - "type": "string" - }, - "sortOrder": { - "default": "ASCENDING", - "description": "Order of sorted results.", - "enum": [ - "ASCENDING", - "DESCENDING" - ], - "enumDescriptions": [ - "", - "" - ], - "location": "query", - "type": "string" - }, - "type": { - "description": "Select only inventory items with this type.", - "enum": [ - "PLANNING_PLACEMENT_TYPE_REGULAR", - "PLANNING_PLACEMENT_TYPE_CREDIT" - ], - "enumDescriptions": [ - "", - "" - ], - "location": "query", - "type": "string" - } - }, - "path": "userprofiles/{profileId}/projects/{projectId}/inventoryItems", - "response": { - "$ref": "InventoryItemsListResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/dfatrafficking" - ] - } - } - }, - "languages": { - "methods": { - "list": { - "description": "Retrieves a list of languages.", - "flatPath": "userprofiles/{profileId}/languages", - "httpMethod": "GET", - "id": "dfareporting.languages.list", - "parameterOrder": [ - "profileId" - ], - "parameters": { - "profileId": { - "description": "User profile ID associated with this request.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - } - }, - "path": "userprofiles/{profileId}/languages", - "response": { - "$ref": "LanguagesListResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/dfatrafficking" - ] - } - } - }, - "metros": { - "methods": { - "list": { - "description": "Retrieves a list of metros.", - "flatPath": "userprofiles/{profileId}/metros", - "httpMethod": "GET", - "id": "dfareporting.metros.list", - "parameterOrder": [ - "profileId" - ], - "parameters": { - "profileId": { - "description": "User profile ID associated with this request.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - } - }, - "path": "userprofiles/{profileId}/metros", - "response": { - "$ref": "MetrosListResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/dfatrafficking" - ] - } - } - }, - "mobileApps": { - "methods": { - "get": { - "description": "Gets one mobile app by ID.", - "flatPath": "userprofiles/{profileId}/mobileApps/{id}", - "httpMethod": "GET", - "id": "dfareporting.mobileApps.get", - "parameterOrder": [ - "profileId", - "id" - ], - "parameters": { - "id": { - "description": "Mobile app ID.", - "location": "path", - "required": true, - "type": "string" - }, - "profileId": { - "description": "User profile ID associated with this request.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - } - }, - "path": "userprofiles/{profileId}/mobileApps/{id}", - "response": { - "$ref": "MobileApp" - }, - "scopes": [ - "https://www.googleapis.com/auth/dfatrafficking" - ] - }, - "list": { - "description": "Retrieves list of available mobile apps.", - "flatPath": "userprofiles/{profileId}/mobileApps", - "httpMethod": "GET", - "id": "dfareporting.mobileApps.list", - "parameterOrder": [ - "profileId" - ], - "parameters": { - "directories": { - "description": "Select only apps from these directories.", - "enum": [ - "UNKNOWN", - "APPLE_APP_STORE", - "GOOGLE_PLAY_STORE", - "ROKU_APP_STORE", - "AMAZON_FIRETV_APP_STORE", - "PLAYSTATION_APP_STORE", - "APPLE_TV_APP_STORE", - "XBOX_APP_STORE", - "SAMSUNG_TV_APP_STORE", - "ANDROID_TV_APP_STORE", - "GENERIC_CTV_APP_STORE" - ], - "enumDescriptions": [ - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "" - ], - "location": "query", - "repeated": true, - "type": "string" - }, - "ids": { - "description": "Select only apps with these IDs.", - "location": "query", - "repeated": true, - "type": "string" - }, - "maxResults": { - "default": "1000", - "description": "Maximum number of results to return.", - "format": "int32", - "location": "query", - "maximum": "1000", - "minimum": "0", - "type": "integer" - }, - "pageToken": { - "description": "Value of the nextPageToken from the previous result page.", - "location": "query", - "type": "string" - }, - "profileId": { - "description": "User profile ID associated with this request.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - }, - "searchString": { - "description": "Allows searching for objects by name or ID. Wildcards (*) are allowed. For example, \"app*2015\" will return objects with names like \"app Jan 2018\", \"app Jan 2018\", or simply \"app 2018\". Most of the searches also add wildcards implicitly at the start and the end of the search string. For example, a search string of \"app\" will match objects with name \"my app\", \"app 2018\", or simply \"app\".", - "location": "query", - "type": "string" - } - }, - "path": "userprofiles/{profileId}/mobileApps", - "response": { - "$ref": "MobileAppsListResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/dfatrafficking" - ] - } - } - }, - "mobileCarriers": { - "methods": { - "get": { - "description": "Gets one mobile carrier by ID.", - "flatPath": "userprofiles/{profileId}/mobileCarriers/{id}", - "httpMethod": "GET", - "id": "dfareporting.mobileCarriers.get", - "parameterOrder": [ - "profileId", - "id" - ], - "parameters": { - "id": { - "description": "Mobile carrier ID.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - }, - "profileId": { - "description": "User profile ID associated with this request.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - } - }, - "path": "userprofiles/{profileId}/mobileCarriers/{id}", - "response": { - "$ref": "MobileCarrier" - }, - "scopes": [ - "https://www.googleapis.com/auth/dfatrafficking" - ] - }, - "list": { - "description": "Retrieves a list of mobile carriers.", - "flatPath": "userprofiles/{profileId}/mobileCarriers", - "httpMethod": "GET", - "id": "dfareporting.mobileCarriers.list", - "parameterOrder": [ - "profileId" - ], - "parameters": { - "profileId": { - "description": "User profile ID associated with this request.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - } - }, - "path": "userprofiles/{profileId}/mobileCarriers", - "response": { - "$ref": "MobileCarriersListResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/dfatrafficking" - ] - } - } - }, - "operatingSystemVersions": { - "methods": { - "get": { - "description": "Gets one operating system version by ID.", - "flatPath": "userprofiles/{profileId}/operatingSystemVersions/{id}", - "httpMethod": "GET", - "id": "dfareporting.operatingSystemVersions.get", - "parameterOrder": [ - "profileId", - "id" - ], - "parameters": { - "id": { - "description": "Operating system version ID.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - }, - "profileId": { - "description": "User profile ID associated with this request.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - } - }, - "path": "userprofiles/{profileId}/operatingSystemVersions/{id}", - "response": { - "$ref": "OperatingSystemVersion" - }, - "scopes": [ - "https://www.googleapis.com/auth/dfatrafficking" - ] - }, - "list": { - "description": "Retrieves a list of operating system versions.", - "flatPath": "userprofiles/{profileId}/operatingSystemVersions", - "httpMethod": "GET", - "id": "dfareporting.operatingSystemVersions.list", - "parameterOrder": [ - "profileId" - ], - "parameters": { - "profileId": { - "description": "User profile ID associated with this request.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - } - }, - "path": "userprofiles/{profileId}/operatingSystemVersions", - "response": { - "$ref": "OperatingSystemVersionsListResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/dfatrafficking" - ] - } - } - }, - "operatingSystems": { - "methods": { - "get": { - "description": "Gets one operating system by DART ID.", - "flatPath": "userprofiles/{profileId}/operatingSystems/{dartId}", - "httpMethod": "GET", - "id": "dfareporting.operatingSystems.get", - "parameterOrder": [ - "profileId", - "dartId" - ], - "parameters": { - "dartId": { - "description": "Operating system DART ID.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - }, - "profileId": { - "description": "User profile ID associated with this request.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - } - }, - "path": "userprofiles/{profileId}/operatingSystems/{dartId}", - "response": { - "$ref": "OperatingSystem" - }, - "scopes": [ - "https://www.googleapis.com/auth/dfatrafficking" - ] - }, - "list": { - "description": "Retrieves a list of operating systems.", - "flatPath": "userprofiles/{profileId}/operatingSystems", - "httpMethod": "GET", - "id": "dfareporting.operatingSystems.list", - "parameterOrder": [ - "profileId" - ], - "parameters": { - "profileId": { - "description": "User profile ID associated with this request.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - } - }, - "path": "userprofiles/{profileId}/operatingSystems", - "response": { - "$ref": "OperatingSystemsListResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/dfatrafficking" - ] - } - } - }, - "orderDocuments": { - "methods": { - "get": { - "description": "Gets one order document by ID.", - "flatPath": "userprofiles/{profileId}/projects/{projectId}/orderDocuments/{id}", - "httpMethod": "GET", - "id": "dfareporting.orderDocuments.get", - "parameterOrder": [ - "profileId", - "projectId", - "id" - ], - "parameters": { - "id": { - "description": "Order document ID.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - }, - "profileId": { - "description": "User profile ID associated with this request.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - }, - "projectId": { - "description": "Project ID for order documents.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - } - }, - "path": "userprofiles/{profileId}/projects/{projectId}/orderDocuments/{id}", - "response": { - "$ref": "OrderDocument" - }, - "scopes": [ - "https://www.googleapis.com/auth/dfatrafficking" - ] - }, - "list": { - "description": "Retrieves a list of order documents, possibly filtered. This method supports paging.", - "flatPath": "userprofiles/{profileId}/projects/{projectId}/orderDocuments", - "httpMethod": "GET", - "id": "dfareporting.orderDocuments.list", - "parameterOrder": [ - "profileId", - "projectId" - ], - "parameters": { - "approved": { - "description": "Select only order documents that have been approved by at least one user.", - "location": "query", - "type": "boolean" - }, - "ids": { - "description": "Select only order documents with these IDs.", - "format": "int64", - "location": "query", - "repeated": true, - "type": "string" - }, - "maxResults": { - "default": "1000", - "description": "Maximum number of results to return.", - "format": "int32", - "location": "query", - "maximum": "1000", - "minimum": "0", - "type": "integer" - }, - "orderId": { - "description": "Select only order documents for specified orders.", - "format": "int64", - "location": "query", - "repeated": true, - "type": "string" - }, - "pageToken": { - "description": "Value of the nextPageToken from the previous result page.", - "location": "query", - "type": "string" - }, - "profileId": { - "description": "User profile ID associated with this request.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - }, - "projectId": { - "description": "Project ID for order documents.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - }, - "searchString": { - "description": "Allows searching for order documents by name or ID. Wildcards (*) are allowed. For example, \"orderdocument*2015\" will return order documents with names like \"orderdocument June 2015\", \"orderdocument April 2015\", or simply \"orderdocument 2015\". Most of the searches also add wildcards implicitly at the start and the end of the search string. For example, a search string of \"orderdocument\" will match order documents with name \"my orderdocument\", \"orderdocument 2015\", or simply \"orderdocument\".", - "location": "query", - "type": "string" - }, - "siteId": { - "description": "Select only order documents that are associated with these sites.", - "format": "int64", - "location": "query", - "repeated": true, - "type": "string" - }, - "sortField": { - "default": "ID", - "description": "Field by which to sort the list.", - "enum": [ - "ID", - "NAME" - ], - "enumDescriptions": [ - "", - "" - ], - "location": "query", - "type": "string" - }, - "sortOrder": { - "default": "ASCENDING", - "description": "Order of sorted results.", - "enum": [ - "ASCENDING", - "DESCENDING" - ], - "enumDescriptions": [ - "", - "" - ], - "location": "query", - "type": "string" - } - }, - "path": "userprofiles/{profileId}/projects/{projectId}/orderDocuments", - "response": { - "$ref": "OrderDocumentsListResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/dfatrafficking" - ] - } - } - }, - "orders": { - "methods": { - "get": { - "description": "Gets one order by ID.", - "flatPath": "userprofiles/{profileId}/projects/{projectId}/orders/{id}", - "httpMethod": "GET", - "id": "dfareporting.orders.get", - "parameterOrder": [ - "profileId", - "projectId", - "id" - ], - "parameters": { - "id": { - "description": "Order ID.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - }, - "profileId": { - "description": "User profile ID associated with this request.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - }, - "projectId": { - "description": "Project ID for orders.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - } - }, - "path": "userprofiles/{profileId}/projects/{projectId}/orders/{id}", - "response": { - "$ref": "Order" - }, - "scopes": [ - "https://www.googleapis.com/auth/dfatrafficking" - ] - }, - "list": { - "description": "Retrieves a list of orders, possibly filtered. This method supports paging.", - "flatPath": "userprofiles/{profileId}/projects/{projectId}/orders", - "httpMethod": "GET", - "id": "dfareporting.orders.list", - "parameterOrder": [ - "profileId", - "projectId" - ], - "parameters": { - "ids": { - "description": "Select only orders with these IDs.", - "format": "int64", - "location": "query", - "repeated": true, - "type": "string" - }, - "maxResults": { - "default": "1000", - "description": "Maximum number of results to return.", - "format": "int32", - "location": "query", - "maximum": "1000", - "minimum": "0", - "type": "integer" - }, - "pageToken": { - "description": "Value of the nextPageToken from the previous result page.", - "location": "query", - "type": "string" - }, - "profileId": { - "description": "User profile ID associated with this request.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - }, - "projectId": { - "description": "Project ID for orders.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - }, - "searchString": { - "description": "Allows searching for orders by name or ID. Wildcards (*) are allowed. For example, \"order*2015\" will return orders with names like \"order June 2015\", \"order April 2015\", or simply \"order 2015\". Most of the searches also add wildcards implicitly at the start and the end of the search string. For example, a search string of \"order\" will match orders with name \"my order\", \"order 2015\", or simply \"order\".", - "location": "query", - "type": "string" - }, - "siteId": { - "description": "Select only orders that are associated with these site IDs.", - "format": "int64", - "location": "query", - "repeated": true, - "type": "string" - }, - "sortField": { - "default": "ID", - "description": "Field by which to sort the list.", - "enum": [ - "ID", - "NAME" - ], - "enumDescriptions": [ - "", - "" - ], - "location": "query", - "type": "string" - }, - "sortOrder": { - "default": "ASCENDING", - "description": "Order of sorted results.", - "enum": [ - "ASCENDING", - "DESCENDING" - ], - "enumDescriptions": [ - "", - "" - ], - "location": "query", - "type": "string" - } - }, - "path": "userprofiles/{profileId}/projects/{projectId}/orders", - "response": { - "$ref": "OrdersListResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/dfatrafficking" - ] - } - } - }, - "placementGroups": { - "methods": { - "get": { - "description": "Gets one placement group by ID.", - "flatPath": "userprofiles/{profileId}/placementGroups/{id}", - "httpMethod": "GET", - "id": "dfareporting.placementGroups.get", - "parameterOrder": [ - "profileId", - "id" - ], - "parameters": { - "id": { - "description": "Placement group ID.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - }, - "profileId": { - "description": "User profile ID associated with this request.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - } - }, - "path": "userprofiles/{profileId}/placementGroups/{id}", - "response": { - "$ref": "PlacementGroup" - }, - "scopes": [ - "https://www.googleapis.com/auth/dfatrafficking" - ] - }, - "insert": { - "description": "Inserts a new placement group.", - "flatPath": "userprofiles/{profileId}/placementGroups", - "httpMethod": "POST", - "id": "dfareporting.placementGroups.insert", - "parameterOrder": [ - "profileId" - ], - "parameters": { - "profileId": { - "description": "User profile ID associated with this request.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - } - }, - "path": "userprofiles/{profileId}/placementGroups", - "request": { - "$ref": "PlacementGroup" - }, - "response": { - "$ref": "PlacementGroup" - }, - "scopes": [ - "https://www.googleapis.com/auth/dfatrafficking" - ] - }, - "list": { - "description": "Retrieves a list of placement groups, possibly filtered. This method supports paging.", - "flatPath": "userprofiles/{profileId}/placementGroups", - "httpMethod": "GET", - "id": "dfareporting.placementGroups.list", - "parameterOrder": [ - "profileId" - ], - "parameters": { - "advertiserIds": { - "description": "Select only placement groups that belong to these advertisers.", - "format": "int64", - "location": "query", - "repeated": true, - "type": "string" - }, - "archived": { - "description": "Select only archived placements. Don't set this field to select both archived and non-archived placements.", - "location": "query", - "type": "boolean" - }, - "campaignIds": { - "description": "Select only placement groups that belong to these campaigns.", - "format": "int64", - "location": "query", - "repeated": true, - "type": "string" - }, - "contentCategoryIds": { - "description": "Select only placement groups that are associated with these content categories.", - "format": "int64", - "location": "query", - "repeated": true, - "type": "string" - }, - "directorySiteIds": { - "description": "Select only placement groups that are associated with these directory sites.", - "format": "int64", - "location": "query", - "repeated": true, - "type": "string" - }, - "ids": { - "description": "Select only placement groups with these IDs.", - "format": "int64", - "location": "query", - "repeated": true, - "type": "string" - }, - "maxEndDate": { - "description": "Select only placements or placement groups whose end date is on or before the specified maxEndDate. The date should be formatted as \"yyyy-MM-dd\".", - "location": "query", - "type": "string" - }, - "maxResults": { - "default": "800", - "description": "Maximum number of results to return.", - "format": "int32", - "location": "query", - "maximum": "800", - "minimum": "0", - "type": "integer" - }, - "maxStartDate": { - "description": "Select only placements or placement groups whose start date is on or before the specified maxStartDate. The date should be formatted as \"yyyy-MM-dd\".", - "location": "query", - "type": "string" - }, - "minEndDate": { - "description": "Select only placements or placement groups whose end date is on or after the specified minEndDate. The date should be formatted as \"yyyy-MM-dd\".", - "location": "query", - "type": "string" - }, - "minStartDate": { - "description": "Select only placements or placement groups whose start date is on or after the specified minStartDate. The date should be formatted as \"yyyy-MM-dd\".", - "location": "query", - "type": "string" - }, - "pageToken": { - "description": "Value of the nextPageToken from the previous result page.", - "location": "query", - "type": "string" - }, - "placementGroupType": { - "description": "Select only placement groups belonging with this group type. A package is a simple group of placements that acts as a single pricing point for a group of tags. A roadblock is a group of placements that not only acts as a single pricing point but also assumes that all the tags in it will be served at the same time. A roadblock requires one of its assigned placements to be marked as primary for reporting.", - "enum": [ - "PLACEMENT_PACKAGE", - "PLACEMENT_ROADBLOCK" - ], - "enumDescriptions": [ - "", - "" - ], - "location": "query", - "type": "string" - }, - "placementStrategyIds": { - "description": "Select only placement groups that are associated with these placement strategies.", - "format": "int64", - "location": "query", - "repeated": true, - "type": "string" - }, - "pricingTypes": { - "description": "Select only placement groups with these pricing types.", - "enum": [ - "PRICING_TYPE_CPM", - "PRICING_TYPE_CPC", - "PRICING_TYPE_CPA", - "PRICING_TYPE_FLAT_RATE_IMPRESSIONS", - "PRICING_TYPE_FLAT_RATE_CLICKS", - "PRICING_TYPE_CPM_ACTIVEVIEW" - ], - "enumDescriptions": [ - "", - "", - "", - "", - "", - "" - ], - "location": "query", - "repeated": true, - "type": "string" - }, - "profileId": { - "description": "User profile ID associated with this request.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - }, - "searchString": { - "description": "Allows searching for placement groups by name or ID. Wildcards (*) are allowed. For example, \"placement*2015\" will return placement groups with names like \"placement group June 2015\", \"placement group May 2015\", or simply \"placements 2015\". Most of the searches also add wildcards implicitly at the start and the end of the search string. For example, a search string of \"placementgroup\" will match placement groups with name \"my placementgroup\", \"placementgroup 2015\", or simply \"placementgroup\".", - "location": "query", - "type": "string" - }, - "siteIds": { - "description": "Select only placement groups that are associated with these sites.", - "format": "int64", - "location": "query", - "repeated": true, - "type": "string" - }, - "sortField": { - "default": "ID", - "description": "Field by which to sort the list.", - "enum": [ - "ID", - "NAME" - ], - "enumDescriptions": [ - "", - "" - ], - "location": "query", - "type": "string" - }, - "sortOrder": { - "default": "ASCENDING", - "description": "Order of sorted results.", - "enum": [ - "ASCENDING", - "DESCENDING" - ], - "enumDescriptions": [ - "", - "" - ], - "location": "query", - "type": "string" - } - }, - "path": "userprofiles/{profileId}/placementGroups", - "response": { - "$ref": "PlacementGroupsListResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/dfatrafficking" - ] - }, - "patch": { - "description": "Updates an existing placement group. This method supports patch semantics.", - "flatPath": "userprofiles/{profileId}/placementGroups", - "httpMethod": "PATCH", - "id": "dfareporting.placementGroups.patch", - "parameterOrder": [ - "profileId", - "id" - ], - "parameters": { - "id": { - "description": "PlacementGroup ID.", - "format": "int64", - "location": "query", - "required": true, - "type": "string" - }, - "profileId": { - "description": "User profile ID associated with this request.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - } - }, - "path": "userprofiles/{profileId}/placementGroups", - "request": { - "$ref": "PlacementGroup" - }, - "response": { - "$ref": "PlacementGroup" - }, - "scopes": [ - "https://www.googleapis.com/auth/dfatrafficking" - ] - }, - "update": { - "description": "Updates an existing placement group.", - "flatPath": "userprofiles/{profileId}/placementGroups", - "httpMethod": "PUT", - "id": "dfareporting.placementGroups.update", - "parameterOrder": [ - "profileId" - ], - "parameters": { - "profileId": { - "description": "User profile ID associated with this request.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - } - }, - "path": "userprofiles/{profileId}/placementGroups", - "request": { - "$ref": "PlacementGroup" - }, - "response": { - "$ref": "PlacementGroup" - }, - "scopes": [ - "https://www.googleapis.com/auth/dfatrafficking" - ] - } - } - }, - "placementStrategies": { - "methods": { - "delete": { - "description": "Deletes an existing placement strategy.", - "flatPath": "userprofiles/{profileId}/placementStrategies/{id}", - "httpMethod": "DELETE", - "id": "dfareporting.placementStrategies.delete", - "parameterOrder": [ - "profileId", - "id" - ], - "parameters": { - "id": { - "description": "Placement strategy ID.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - }, - "profileId": { - "description": "User profile ID associated with this request.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - } - }, - "path": "userprofiles/{profileId}/placementStrategies/{id}", - "scopes": [ - "https://www.googleapis.com/auth/dfatrafficking" - ] - }, - "get": { - "description": "Gets one placement strategy by ID.", - "flatPath": "userprofiles/{profileId}/placementStrategies/{id}", - "httpMethod": "GET", - "id": "dfareporting.placementStrategies.get", - "parameterOrder": [ - "profileId", - "id" - ], - "parameters": { - "id": { - "description": "Placement strategy ID.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - }, - "profileId": { - "description": "User profile ID associated with this request.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - } - }, - "path": "userprofiles/{profileId}/placementStrategies/{id}", - "response": { - "$ref": "PlacementStrategy" - }, - "scopes": [ - "https://www.googleapis.com/auth/dfatrafficking" - ] - }, - "insert": { - "description": "Inserts a new placement strategy.", - "flatPath": "userprofiles/{profileId}/placementStrategies", - "httpMethod": "POST", - "id": "dfareporting.placementStrategies.insert", - "parameterOrder": [ - "profileId" - ], - "parameters": { - "profileId": { - "description": "User profile ID associated with this request.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - } - }, - "path": "userprofiles/{profileId}/placementStrategies", - "request": { - "$ref": "PlacementStrategy" - }, - "response": { - "$ref": "PlacementStrategy" - }, - "scopes": [ - "https://www.googleapis.com/auth/dfatrafficking" - ] - }, - "list": { - "description": "Retrieves a list of placement strategies, possibly filtered. This method supports paging.", - "flatPath": "userprofiles/{profileId}/placementStrategies", - "httpMethod": "GET", - "id": "dfareporting.placementStrategies.list", - "parameterOrder": [ - "profileId" - ], - "parameters": { - "ids": { - "description": "Select only placement strategies with these IDs.", - "format": "int64", - "location": "query", - "repeated": true, - "type": "string" - }, - "maxResults": { - "default": "1000", - "description": "Maximum number of results to return.", - "format": "int32", - "location": "query", - "maximum": "1000", - "minimum": "0", - "type": "integer" - }, - "pageToken": { - "description": "Value of the nextPageToken from the previous result page.", - "location": "query", - "type": "string" - }, - "profileId": { - "description": "User profile ID associated with this request.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - }, - "searchString": { - "description": "Allows searching for objects by name or ID. Wildcards (*) are allowed. For example, \"placementstrategy*2015\" will return objects with names like \"placementstrategy June 2015\", \"placementstrategy April 2015\", or simply \"placementstrategy 2015\". Most of the searches also add wildcards implicitly at the start and the end of the search string. For example, a search string of \"placementstrategy\" will match objects with name \"my placementstrategy\", \"placementstrategy 2015\", or simply \"placementstrategy\".", - "location": "query", - "type": "string" - }, - "sortField": { - "default": "ID", - "description": "Field by which to sort the list.", - "enum": [ - "ID", - "NAME" - ], - "enumDescriptions": [ - "", - "" - ], - "location": "query", - "type": "string" - }, - "sortOrder": { - "default": "ASCENDING", - "description": "Order of sorted results.", - "enum": [ - "ASCENDING", - "DESCENDING" - ], - "enumDescriptions": [ - "", - "" - ], - "location": "query", - "type": "string" - } - }, - "path": "userprofiles/{profileId}/placementStrategies", - "response": { - "$ref": "PlacementStrategiesListResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/dfatrafficking" - ] - }, - "patch": { - "description": "Updates an existing placement strategy. This method supports patch semantics.", - "flatPath": "userprofiles/{profileId}/placementStrategies", - "httpMethod": "PATCH", - "id": "dfareporting.placementStrategies.patch", - "parameterOrder": [ - "profileId", - "id" - ], - "parameters": { - "id": { - "description": "PlacementStrategy ID.", - "format": "int64", - "location": "query", - "required": true, - "type": "string" - }, - "profileId": { - "description": "User profile ID associated with this request.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - } - }, - "path": "userprofiles/{profileId}/placementStrategies", - "request": { - "$ref": "PlacementStrategy" - }, - "response": { - "$ref": "PlacementStrategy" - }, - "scopes": [ - "https://www.googleapis.com/auth/dfatrafficking" - ] - }, - "update": { - "description": "Updates an existing placement strategy.", - "flatPath": "userprofiles/{profileId}/placementStrategies", - "httpMethod": "PUT", - "id": "dfareporting.placementStrategies.update", - "parameterOrder": [ - "profileId" - ], - "parameters": { - "profileId": { - "description": "User profile ID associated with this request.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - } - }, - "path": "userprofiles/{profileId}/placementStrategies", - "request": { - "$ref": "PlacementStrategy" - }, - "response": { - "$ref": "PlacementStrategy" - }, - "scopes": [ - "https://www.googleapis.com/auth/dfatrafficking" - ] - } - } - }, - "placements": { - "methods": { - "generatetags": { - "description": "Generates tags for a placement.", - "flatPath": "userprofiles/{profileId}/placements/generatetags", - "httpMethod": "POST", - "id": "dfareporting.placements.generatetags", - "parameterOrder": [ - "profileId" - ], - "parameters": { - "campaignId": { - "description": "Generate placements belonging to this campaign. This is a required field.", - "format": "int64", - "location": "query", - "type": "string" - }, - "placementIds": { - "description": "Generate tags for these placements.", - "format": "int64", - "location": "query", - "repeated": true, - "type": "string" - }, - "profileId": { - "description": "User profile ID associated with this request.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - }, - "tagFormats": { - "description": "Tag formats to generate for these placements. *Note:* PLACEMENT_TAG_STANDARD can only be generated for 1x1 placements.", - "enum": [ - "PLACEMENT_TAG_STANDARD", - "PLACEMENT_TAG_IFRAME_JAVASCRIPT", - "PLACEMENT_TAG_IFRAME_ILAYER", - "PLACEMENT_TAG_INTERNAL_REDIRECT", - "PLACEMENT_TAG_JAVASCRIPT", - "PLACEMENT_TAG_INTERSTITIAL_IFRAME_JAVASCRIPT", - "PLACEMENT_TAG_INTERSTITIAL_INTERNAL_REDIRECT", - "PLACEMENT_TAG_INTERSTITIAL_JAVASCRIPT", - "PLACEMENT_TAG_CLICK_COMMANDS", - "PLACEMENT_TAG_INSTREAM_VIDEO_PREFETCH", - "PLACEMENT_TAG_TRACKING", - "PLACEMENT_TAG_TRACKING_IFRAME", - "PLACEMENT_TAG_TRACKING_JAVASCRIPT", - "PLACEMENT_TAG_INSTREAM_VIDEO_PREFETCH_VAST_3", - "PLACEMENT_TAG_IFRAME_JAVASCRIPT_LEGACY", - "PLACEMENT_TAG_JAVASCRIPT_LEGACY", - "PLACEMENT_TAG_INTERSTITIAL_IFRAME_JAVASCRIPT_LEGACY", - "PLACEMENT_TAG_INTERSTITIAL_JAVASCRIPT_LEGACY", - "PLACEMENT_TAG_INSTREAM_VIDEO_PREFETCH_VAST_4", - "PLACEMENT_TAG_TRACKING_THIRD_PARTY_MEASUREMENT" - ], - "enumDescriptions": [ - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "" - ], - "location": "query", - "repeated": true, - "type": "string" - } - }, - "path": "userprofiles/{profileId}/placements/generatetags", - "response": { - "$ref": "PlacementsGenerateTagsResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/dfatrafficking" - ] - }, - "get": { - "description": "Gets one placement by ID.", - "flatPath": "userprofiles/{profileId}/placements/{id}", - "httpMethod": "GET", - "id": "dfareporting.placements.get", - "parameterOrder": [ - "profileId", - "id" - ], - "parameters": { - "id": { - "description": "Placement ID.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - }, - "profileId": { - "description": "User profile ID associated with this request.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - } - }, - "path": "userprofiles/{profileId}/placements/{id}", - "response": { - "$ref": "Placement" - }, - "scopes": [ - "https://www.googleapis.com/auth/dfatrafficking" - ] - }, - "insert": { - "description": "Inserts a new placement.", - "flatPath": "userprofiles/{profileId}/placements", - "httpMethod": "POST", - "id": "dfareporting.placements.insert", - "parameterOrder": [ - "profileId" - ], - "parameters": { - "profileId": { - "description": "User profile ID associated with this request.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - } - }, - "path": "userprofiles/{profileId}/placements", - "request": { - "$ref": "Placement" - }, - "response": { - "$ref": "Placement" - }, - "scopes": [ - "https://www.googleapis.com/auth/dfatrafficking" - ] - }, - "list": { - "description": "Retrieves a list of placements, possibly filtered. This method supports paging.", - "flatPath": "userprofiles/{profileId}/placements", - "httpMethod": "GET", - "id": "dfareporting.placements.list", - "parameterOrder": [ - "profileId" - ], - "parameters": { - "advertiserIds": { - "description": "Select only placements that belong to these advertisers.", - "format": "int64", - "location": "query", - "repeated": true, - "type": "string" - }, - "archived": { - "description": "Select only archived placements. Don't set this field to select both archived and non-archived placements.", - "location": "query", - "type": "boolean" - }, - "campaignIds": { - "description": "Select only placements that belong to these campaigns.", - "format": "int64", - "location": "query", - "repeated": true, - "type": "string" - }, - "compatibilities": { - "description": "Select only placements that are associated with these compatibilities. DISPLAY and DISPLAY_INTERSTITIAL refer to rendering either on desktop or on mobile devices for regular or interstitial ads respectively. APP and APP_INTERSTITIAL are for rendering in mobile apps. IN_STREAM_VIDEO refers to rendering in in-stream video ads developed with the VAST standard.", - "enum": [ - "DISPLAY", - "DISPLAY_INTERSTITIAL", - "APP", - "APP_INTERSTITIAL", - "IN_STREAM_VIDEO", - "IN_STREAM_AUDIO" - ], - "enumDescriptions": [ - "", - "", - "", - "", - "", - "" - ], - "location": "query", - "repeated": true, - "type": "string" - }, - "contentCategoryIds": { - "description": "Select only placements that are associated with these content categories.", - "format": "int64", - "location": "query", - "repeated": true, - "type": "string" - }, - "directorySiteIds": { - "description": "Select only placements that are associated with these directory sites.", - "format": "int64", - "location": "query", - "repeated": true, - "type": "string" - }, - "groupIds": { - "description": "Select only placements that belong to these placement groups.", - "format": "int64", - "location": "query", - "repeated": true, - "type": "string" - }, - "ids": { - "description": "Select only placements with these IDs.", - "format": "int64", - "location": "query", - "repeated": true, - "type": "string" - }, - "maxEndDate": { - "description": "Select only placements or placement groups whose end date is on or before the specified maxEndDate. The date should be formatted as \"yyyy-MM-dd\".", - "location": "query", - "type": "string" - }, - "maxResults": { - "default": "1000", - "description": "Maximum number of results to return.", - "format": "int32", - "location": "query", - "maximum": "1000", - "minimum": "0", - "type": "integer" - }, - "maxStartDate": { - "description": "Select only placements or placement groups whose start date is on or before the specified maxStartDate. The date should be formatted as \"yyyy-MM-dd\".", - "location": "query", - "type": "string" - }, - "minEndDate": { - "description": "Select only placements or placement groups whose end date is on or after the specified minEndDate. The date should be formatted as \"yyyy-MM-dd\".", - "location": "query", - "type": "string" - }, - "minStartDate": { - "description": "Select only placements or placement groups whose start date is on or after the specified minStartDate. The date should be formatted as \"yyyy-MM-dd\".", - "location": "query", - "type": "string" - }, - "pageToken": { - "description": "Value of the nextPageToken from the previous result page.", - "location": "query", - "type": "string" - }, - "paymentSource": { - "description": "Select only placements with this payment source.", - "enum": [ - "PLACEMENT_AGENCY_PAID", - "PLACEMENT_PUBLISHER_PAID" - ], - "enumDescriptions": [ - "", - "" - ], - "location": "query", - "type": "string" - }, - "placementStrategyIds": { - "description": "Select only placements that are associated with these placement strategies.", - "format": "int64", - "location": "query", - "repeated": true, - "type": "string" - }, - "pricingTypes": { - "description": "Select only placements with these pricing types.", - "enum": [ - "PRICING_TYPE_CPM", - "PRICING_TYPE_CPC", - "PRICING_TYPE_CPA", - "PRICING_TYPE_FLAT_RATE_IMPRESSIONS", - "PRICING_TYPE_FLAT_RATE_CLICKS", - "PRICING_TYPE_CPM_ACTIVEVIEW" - ], - "enumDescriptions": [ - "", - "", - "", - "", - "", - "" - ], - "location": "query", - "repeated": true, - "type": "string" - }, - "profileId": { - "description": "User profile ID associated with this request.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - }, - "searchString": { - "description": "Allows searching for placements by name or ID. Wildcards (*) are allowed. For example, \"placement*2015\" will return placements with names like \"placement June 2015\", \"placement May 2015\", or simply \"placements 2015\". Most of the searches also add wildcards implicitly at the start and the end of the search string. For example, a search string of \"placement\" will match placements with name \"my placement\", \"placement 2015\", or simply \"placement\" .", - "location": "query", - "type": "string" - }, - "siteIds": { - "description": "Select only placements that are associated with these sites.", - "format": "int64", - "location": "query", - "repeated": true, - "type": "string" - }, - "sizeIds": { - "description": "Select only placements that are associated with these sizes.", - "format": "int64", - "location": "query", - "repeated": true, - "type": "string" - }, - "sortField": { - "default": "ID", - "description": "Field by which to sort the list.", - "enum": [ - "ID", - "NAME" - ], - "enumDescriptions": [ - "", - "" - ], - "location": "query", - "type": "string" - }, - "sortOrder": { - "default": "ASCENDING", - "description": "Order of sorted results.", - "enum": [ - "ASCENDING", - "DESCENDING" - ], - "enumDescriptions": [ - "", - "" - ], - "location": "query", - "type": "string" - } - }, - "path": "userprofiles/{profileId}/placements", - "response": { - "$ref": "PlacementsListResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/dfatrafficking" - ] - }, - "patch": { - "description": "Updates an existing placement. This method supports patch semantics.", - "flatPath": "userprofiles/{profileId}/placements", - "httpMethod": "PATCH", - "id": "dfareporting.placements.patch", - "parameterOrder": [ - "profileId", - "id" - ], - "parameters": { - "id": { - "description": "Placement ID.", - "format": "int64", - "location": "query", - "required": true, - "type": "string" - }, - "profileId": { - "description": "User profile ID associated with this request.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - } - }, - "path": "userprofiles/{profileId}/placements", - "request": { - "$ref": "Placement" - }, - "response": { - "$ref": "Placement" - }, - "scopes": [ - "https://www.googleapis.com/auth/dfatrafficking" - ] - }, - "update": { - "description": "Updates an existing placement.", - "flatPath": "userprofiles/{profileId}/placements", - "httpMethod": "PUT", - "id": "dfareporting.placements.update", - "parameterOrder": [ - "profileId" - ], - "parameters": { - "profileId": { - "description": "User profile ID associated with this request.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - } - }, - "path": "userprofiles/{profileId}/placements", - "request": { - "$ref": "Placement" - }, - "response": { - "$ref": "Placement" - }, - "scopes": [ - "https://www.googleapis.com/auth/dfatrafficking" - ] - } - } - }, - "platformTypes": { - "methods": { - "get": { - "description": "Gets one platform type by ID.", - "flatPath": "userprofiles/{profileId}/platformTypes/{id}", - "httpMethod": "GET", - "id": "dfareporting.platformTypes.get", - "parameterOrder": [ - "profileId", - "id" - ], - "parameters": { - "id": { - "description": "Platform type ID.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - }, - "profileId": { - "description": "User profile ID associated with this request.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - } - }, - "path": "userprofiles/{profileId}/platformTypes/{id}", - "response": { - "$ref": "PlatformType" - }, - "scopes": [ - "https://www.googleapis.com/auth/dfatrafficking" - ] - }, - "list": { - "description": "Retrieves a list of platform types.", - "flatPath": "userprofiles/{profileId}/platformTypes", - "httpMethod": "GET", - "id": "dfareporting.platformTypes.list", - "parameterOrder": [ - "profileId" - ], - "parameters": { - "profileId": { - "description": "User profile ID associated with this request.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - } - }, - "path": "userprofiles/{profileId}/platformTypes", - "response": { - "$ref": "PlatformTypesListResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/dfatrafficking" - ] - } - } - }, - "postalCodes": { - "methods": { - "get": { - "description": "Gets one postal code by ID.", - "flatPath": "userprofiles/{profileId}/postalCodes/{code}", - "httpMethod": "GET", - "id": "dfareporting.postalCodes.get", - "parameterOrder": [ - "profileId", - "code" - ], - "parameters": { - "code": { - "description": "Postal code ID.", - "location": "path", - "required": true, - "type": "string" - }, - "profileId": { - "description": "User profile ID associated with this request.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - } - }, - "path": "userprofiles/{profileId}/postalCodes/{code}", - "response": { - "$ref": "PostalCode" - }, - "scopes": [ - "https://www.googleapis.com/auth/dfatrafficking" - ] - }, - "list": { - "description": "Retrieves a list of postal codes.", - "flatPath": "userprofiles/{profileId}/postalCodes", - "httpMethod": "GET", - "id": "dfareporting.postalCodes.list", - "parameterOrder": [ - "profileId" - ], - "parameters": { - "profileId": { - "description": "User profile ID associated with this request.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - } - }, - "path": "userprofiles/{profileId}/postalCodes", - "response": { - "$ref": "PostalCodesListResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/dfatrafficking" - ] - } - } - }, - "projects": { - "methods": { - "get": { - "description": "Gets one project by ID.", - "flatPath": "userprofiles/{profileId}/projects/{id}", - "httpMethod": "GET", - "id": "dfareporting.projects.get", - "parameterOrder": [ - "profileId", - "id" - ], - "parameters": { - "id": { - "description": "Project ID.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - }, - "profileId": { - "description": "User profile ID associated with this request.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - } - }, - "path": "userprofiles/{profileId}/projects/{id}", - "response": { - "$ref": "Project" - }, - "scopes": [ - "https://www.googleapis.com/auth/dfatrafficking" - ] - }, - "list": { - "description": "Retrieves a list of projects, possibly filtered. This method supports paging .", - "flatPath": "userprofiles/{profileId}/projects", - "httpMethod": "GET", - "id": "dfareporting.projects.list", - "parameterOrder": [ - "profileId" - ], - "parameters": { - "advertiserIds": { - "description": "Select only projects with these advertiser IDs.", - "format": "int64", - "location": "query", - "repeated": true, - "type": "string" - }, - "ids": { - "description": "Select only projects with these IDs.", - "format": "int64", - "location": "query", - "repeated": true, - "type": "string" - }, - "maxResults": { - "default": "1000", - "description": "Maximum number of results to return.", - "format": "int32", - "location": "query", - "maximum": "1000", - "minimum": "0", - "type": "integer" - }, - "pageToken": { - "description": "Value of the nextPageToken from the previous result page.", - "location": "query", - "type": "string" - }, - "profileId": { - "description": "User profile ID associated with this request.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - }, - "searchString": { - "description": "Allows searching for projects by name or ID. Wildcards (*) are allowed. For example, \"project*2015\" will return projects with names like \"project June 2015\", \"project April 2015\", or simply \"project 2015\". Most of the searches also add wildcards implicitly at the start and the end of the search string. For example, a search string of \"project\" will match projects with name \"my project\", \"project 2015\", or simply \"project\".", - "location": "query", - "type": "string" - }, - "sortField": { - "default": "ID", - "description": "Field by which to sort the list.", - "enum": [ - "ID", - "NAME" - ], - "enumDescriptions": [ - "", - "" - ], - "location": "query", - "type": "string" - }, - "sortOrder": { - "default": "ASCENDING", - "description": "Order of sorted results.", - "enum": [ - "ASCENDING", - "DESCENDING" - ], - "enumDescriptions": [ - "", - "" - ], - "location": "query", - "type": "string" - } - }, - "path": "userprofiles/{profileId}/projects", - "response": { - "$ref": "ProjectsListResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/dfatrafficking" - ] - } - } - }, - "regions": { - "methods": { - "list": { - "description": "Retrieves a list of regions.", - "flatPath": "userprofiles/{profileId}/regions", - "httpMethod": "GET", - "id": "dfareporting.regions.list", - "parameterOrder": [ - "profileId" - ], - "parameters": { - "profileId": { - "description": "User profile ID associated with this request.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - } - }, - "path": "userprofiles/{profileId}/regions", - "response": { - "$ref": "RegionsListResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/dfatrafficking" - ] - } - } - }, - "remarketingListShares": { - "methods": { - "get": { - "description": "Gets one remarketing list share by remarketing list ID.", - "flatPath": "userprofiles/{profileId}/remarketingListShares/{remarketingListId}", - "httpMethod": "GET", - "id": "dfareporting.remarketingListShares.get", - "parameterOrder": [ - "profileId", - "remarketingListId" - ], - "parameters": { - "profileId": { - "description": "User profile ID associated with this request.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - }, - "remarketingListId": { - "description": "Remarketing list ID.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - } - }, - "path": "userprofiles/{profileId}/remarketingListShares/{remarketingListId}", - "response": { - "$ref": "RemarketingListShare" - }, - "scopes": [ - "https://www.googleapis.com/auth/dfatrafficking" - ] - }, - "patch": { - "description": "Updates an existing remarketing list share. This method supports patch semantics.", - "flatPath": "userprofiles/{profileId}/remarketingListShares", - "httpMethod": "PATCH", - "id": "dfareporting.remarketingListShares.patch", - "parameterOrder": [ - "profileId", - "id" - ], - "parameters": { - "id": { - "description": "RemarketingList ID.", - "format": "int64", - "location": "query", - "required": true, - "type": "string" - }, - "profileId": { - "description": "User profile ID associated with this request.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - } - }, - "path": "userprofiles/{profileId}/remarketingListShares", - "request": { - "$ref": "RemarketingListShare" - }, - "response": { - "$ref": "RemarketingListShare" - }, - "scopes": [ - "https://www.googleapis.com/auth/dfatrafficking" - ] - }, - "update": { - "description": "Updates an existing remarketing list share.", - "flatPath": "userprofiles/{profileId}/remarketingListShares", - "httpMethod": "PUT", - "id": "dfareporting.remarketingListShares.update", - "parameterOrder": [ - "profileId" - ], - "parameters": { - "profileId": { - "description": "User profile ID associated with this request.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - } - }, - "path": "userprofiles/{profileId}/remarketingListShares", - "request": { - "$ref": "RemarketingListShare" - }, - "response": { - "$ref": "RemarketingListShare" - }, - "scopes": [ - "https://www.googleapis.com/auth/dfatrafficking" - ] - } - } - }, - "remarketingLists": { - "methods": { - "get": { - "description": "Gets one remarketing list by ID.", - "flatPath": "userprofiles/{profileId}/remarketingLists/{id}", - "httpMethod": "GET", - "id": "dfareporting.remarketingLists.get", - "parameterOrder": [ - "profileId", - "id" - ], - "parameters": { - "id": { - "description": "Remarketing list ID.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - }, - "profileId": { - "description": "User profile ID associated with this request.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - } - }, - "path": "userprofiles/{profileId}/remarketingLists/{id}", - "response": { - "$ref": "RemarketingList" - }, - "scopes": [ - "https://www.googleapis.com/auth/dfatrafficking" - ] - }, - "insert": { - "description": "Inserts a new remarketing list.", - "flatPath": "userprofiles/{profileId}/remarketingLists", - "httpMethod": "POST", - "id": "dfareporting.remarketingLists.insert", - "parameterOrder": [ - "profileId" - ], - "parameters": { - "profileId": { - "description": "User profile ID associated with this request.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - } - }, - "path": "userprofiles/{profileId}/remarketingLists", - "request": { - "$ref": "RemarketingList" - }, - "response": { - "$ref": "RemarketingList" - }, - "scopes": [ - "https://www.googleapis.com/auth/dfatrafficking" - ] - }, - "list": { - "description": "Retrieves a list of remarketing lists, possibly filtered. This method supports paging.", - "flatPath": "userprofiles/{profileId}/remarketingLists", - "httpMethod": "GET", - "id": "dfareporting.remarketingLists.list", - "parameterOrder": [ - "profileId", - "advertiserId" - ], - "parameters": { - "active": { - "description": "Select only active or only inactive remarketing lists.", - "location": "query", - "type": "boolean" - }, - "advertiserId": { - "description": "Select only remarketing lists owned by this advertiser.", - "format": "int64", - "location": "query", - "required": true, - "type": "string" - }, - "floodlightActivityId": { - "description": "Select only remarketing lists that have this floodlight activity ID.", - "format": "int64", - "location": "query", - "type": "string" - }, - "maxResults": { - "default": "1000", - "description": "Maximum number of results to return.", - "format": "int32", - "location": "query", - "maximum": "1000", - "minimum": "0", - "type": "integer" - }, - "name": { - "description": "Allows searching for objects by name or ID. Wildcards (*) are allowed. For example, \"remarketing list*2015\" will return objects with names like \"remarketing list June 2015\", \"remarketing list April 2015\", or simply \"remarketing list 2015\". Most of the searches also add wildcards implicitly at the start and the end of the search string. For example, a search string of \"remarketing list\" will match objects with name \"my remarketing list\", \"remarketing list 2015\", or simply \"remarketing list\".", - "location": "query", - "type": "string" - }, - "pageToken": { - "description": "Value of the nextPageToken from the previous result page.", - "location": "query", - "type": "string" - }, - "profileId": { - "description": "User profile ID associated with this request.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - }, - "sortField": { - "default": "ID", - "description": "Field by which to sort the list.", - "enum": [ - "ID", - "NAME" - ], - "enumDescriptions": [ - "", - "" - ], - "location": "query", - "type": "string" - }, - "sortOrder": { - "default": "ASCENDING", - "description": "Order of sorted results.", - "enum": [ - "ASCENDING", - "DESCENDING" - ], - "enumDescriptions": [ - "", - "" - ], - "location": "query", - "type": "string" - } - }, - "path": "userprofiles/{profileId}/remarketingLists", - "response": { - "$ref": "RemarketingListsListResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/dfatrafficking" - ] - }, - "patch": { - "description": "Updates an existing remarketing list. This method supports patch semantics.", - "flatPath": "userprofiles/{profileId}/remarketingLists", - "httpMethod": "PATCH", - "id": "dfareporting.remarketingLists.patch", - "parameterOrder": [ - "profileId", - "id" - ], - "parameters": { - "id": { - "description": "RemarketingList ID.", - "format": "int64", - "location": "query", - "required": true, - "type": "string" - }, - "profileId": { - "description": "User profile ID associated with this request.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - } - }, - "path": "userprofiles/{profileId}/remarketingLists", - "request": { - "$ref": "RemarketingList" - }, - "response": { - "$ref": "RemarketingList" - }, - "scopes": [ - "https://www.googleapis.com/auth/dfatrafficking" - ] - }, - "update": { - "description": "Updates an existing remarketing list.", - "flatPath": "userprofiles/{profileId}/remarketingLists", - "httpMethod": "PUT", - "id": "dfareporting.remarketingLists.update", - "parameterOrder": [ - "profileId" - ], - "parameters": { - "profileId": { - "description": "User profile ID associated with this request.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - } - }, - "path": "userprofiles/{profileId}/remarketingLists", - "request": { - "$ref": "RemarketingList" - }, - "response": { - "$ref": "RemarketingList" - }, - "scopes": [ - "https://www.googleapis.com/auth/dfatrafficking" - ] - } - } - }, - "reports": { - "methods": { - "delete": { - "description": "Deletes a report by its ID.", - "flatPath": "userprofiles/{profileId}/reports/{reportId}", - "httpMethod": "DELETE", - "id": "dfareporting.reports.delete", - "parameterOrder": [ - "profileId", - "reportId" - ], - "parameters": { - "profileId": { - "description": "The Campaign Manager 360 user profile ID.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - }, - "reportId": { - "description": "The ID of the report.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - } - }, - "path": "userprofiles/{profileId}/reports/{reportId}", - "scopes": [ - "https://www.googleapis.com/auth/dfareporting" - ] - }, - "get": { - "description": "Retrieves a report by its ID.", - "flatPath": "userprofiles/{profileId}/reports/{reportId}", - "httpMethod": "GET", - "id": "dfareporting.reports.get", - "parameterOrder": [ - "profileId", - "reportId" - ], - "parameters": { - "profileId": { - "description": "The Campaign Manager 360 user profile ID.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - }, - "reportId": { - "description": "The ID of the report.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - } - }, - "path": "userprofiles/{profileId}/reports/{reportId}", - "response": { - "$ref": "Report" - }, - "scopes": [ - "https://www.googleapis.com/auth/dfareporting" - ] - }, - "insert": { - "description": "Creates a report.", - "flatPath": "userprofiles/{profileId}/reports", - "httpMethod": "POST", - "id": "dfareporting.reports.insert", - "parameterOrder": [ - "profileId" - ], - "parameters": { - "profileId": { - "description": "The Campaign Manager 360 user profile ID.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - } - }, - "path": "userprofiles/{profileId}/reports", - "request": { - "$ref": "Report" - }, - "response": { - "$ref": "Report" - }, - "scopes": [ - "https://www.googleapis.com/auth/dfareporting" - ] - }, - "list": { - "description": "Retrieves list of reports.", - "flatPath": "userprofiles/{profileId}/reports", - "httpMethod": "GET", - "id": "dfareporting.reports.list", - "parameterOrder": [ - "profileId" - ], - "parameters": { - "maxResults": { - "default": "10", - "description": "Maximum number of results to return.", - "format": "int32", - "location": "query", - "maximum": "10", - "minimum": "0", - "type": "integer" - }, - "pageToken": { - "description": "The value of the nextToken from the previous result page.", - "location": "query", - "type": "string" - }, - "profileId": { - "description": "The Campaign Manager 360 user profile ID.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - }, - "scope": { - "default": "MINE", - "description": "The scope that defines which results are returned.", - "enum": [ - "ALL", - "MINE" - ], - "enumDescriptions": [ - "All reports in account.", - "My reports." - ], - "location": "query", - "type": "string" - }, - "sortField": { - "default": "LAST_MODIFIED_TIME", - "description": "The field by which to sort the list.", - "enum": [ - "ID", - "LAST_MODIFIED_TIME", - "NAME" - ], - "enumDescriptions": [ - "Sort by report ID.", - "Sort by 'lastModifiedTime' field.", - "Sort by name of reports." - ], - "location": "query", - "type": "string" - }, - "sortOrder": { - "default": "DESCENDING", - "description": "Order of sorted results.", - "enum": [ - "ASCENDING", - "DESCENDING" - ], - "enumDescriptions": [ - "Ascending order.", - "Descending order." - ], - "location": "query", - "type": "string" - } - }, - "path": "userprofiles/{profileId}/reports", - "response": { - "$ref": "ReportList" - }, - "scopes": [ - "https://www.googleapis.com/auth/dfareporting" - ] - }, - "patch": { - "description": "Updates an existing report. This method supports patch semantics.", - "flatPath": "userprofiles/{profileId}/reports/{reportId}", - "httpMethod": "PATCH", - "id": "dfareporting.reports.patch", - "parameterOrder": [ - "profileId", - "reportId" - ], - "parameters": { - "profileId": { - "description": "The DFA user profile ID.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - }, - "reportId": { - "description": "The ID of the report.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - } - }, - "path": "userprofiles/{profileId}/reports/{reportId}", - "request": { - "$ref": "Report" - }, - "response": { - "$ref": "Report" - }, - "scopes": [ - "https://www.googleapis.com/auth/dfareporting" - ] - }, - "run": { - "description": "Runs a report.", - "flatPath": "userprofiles/{profileId}/reports/{reportId}/run", - "httpMethod": "POST", - "id": "dfareporting.reports.run", - "parameterOrder": [ - "profileId", - "reportId" - ], - "parameters": { - "profileId": { - "description": "The Campaign Manager 360 user profile ID.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - }, - "reportId": { - "description": "The ID of the report.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - }, - "synchronous": { - "default": "false", - "description": "If set and true, tries to run the report synchronously.", - "location": "query", - "type": "boolean" - } - }, - "path": "userprofiles/{profileId}/reports/{reportId}/run", - "response": { - "$ref": "File" - }, - "scopes": [ - "https://www.googleapis.com/auth/dfareporting" - ] - }, - "update": { - "description": "Updates a report.", - "flatPath": "userprofiles/{profileId}/reports/{reportId}", - "httpMethod": "PUT", - "id": "dfareporting.reports.update", - "parameterOrder": [ - "profileId", - "reportId" - ], - "parameters": { - "profileId": { - "description": "The Campaign Manager 360 user profile ID.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - }, - "reportId": { - "description": "The ID of the report.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - } - }, - "path": "userprofiles/{profileId}/reports/{reportId}", - "request": { - "$ref": "Report" - }, - "response": { - "$ref": "Report" - }, - "scopes": [ - "https://www.googleapis.com/auth/dfareporting" - ] - } - }, - "resources": { - "compatibleFields": { - "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": "userprofiles/{profileId}/reports/compatiblefields/query", - "httpMethod": "POST", - "id": "dfareporting.reports.compatibleFields.query", - "parameterOrder": [ - "profileId" - ], - "parameters": { - "profileId": { - "description": "The Campaign Manager 360 user profile ID.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - } - }, - "path": "userprofiles/{profileId}/reports/compatiblefields/query", - "request": { - "$ref": "Report" - }, - "response": { - "$ref": "CompatibleFields" - }, - "scopes": [ - "https://www.googleapis.com/auth/dfareporting" - ] - } - } - }, - "files": { - "methods": { - "get": { - "description": "Retrieves a report file by its report ID and file ID. This method supports media download.", - "flatPath": "userprofiles/{profileId}/reports/{reportId}/files/{fileId}", - "httpMethod": "GET", - "id": "dfareporting.reports.files.get", - "parameterOrder": [ - "profileId", - "reportId", - "fileId" - ], - "parameters": { - "fileId": { - "description": "The ID of the report file.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - }, - "profileId": { - "description": "The Campaign Manager 360 user profile ID.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - }, - "reportId": { - "description": "The ID of the report.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - } - }, - "path": "userprofiles/{profileId}/reports/{reportId}/files/{fileId}", - "response": { - "$ref": "File" - }, - "scopes": [ - "https://www.googleapis.com/auth/dfareporting" - ], - "supportsMediaDownload": true - }, - "list": { - "description": "Lists files for a report.", - "flatPath": "userprofiles/{profileId}/reports/{reportId}/files", - "httpMethod": "GET", - "id": "dfareporting.reports.files.list", - "parameterOrder": [ - "profileId", - "reportId" - ], - "parameters": { - "maxResults": { - "default": "10", - "description": "Maximum number of results to return.", - "format": "int32", - "location": "query", - "maximum": "10", - "minimum": "0", - "type": "integer" - }, - "pageToken": { - "description": "The value of the nextToken from the previous result page.", - "location": "query", - "type": "string" - }, - "profileId": { - "description": "The Campaign Manager 360 user profile ID.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - }, - "reportId": { - "description": "The ID of the parent report.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - }, - "sortField": { - "default": "LAST_MODIFIED_TIME", - "description": "The field by which to sort the list.", - "enum": [ - "ID", - "LAST_MODIFIED_TIME" - ], - "enumDescriptions": [ - "", - "" - ], - "location": "query", - "type": "string" - }, - "sortOrder": { - "default": "DESCENDING", - "description": "Order of sorted results.", - "enum": [ - "ASCENDING", - "DESCENDING" - ], - "enumDescriptions": [ - "", - "" - ], - "location": "query", - "type": "string" - } - }, - "path": "userprofiles/{profileId}/reports/{reportId}/files", - "response": { - "$ref": "FileList" - }, - "scopes": [ - "https://www.googleapis.com/auth/dfareporting" - ] - } - } - } - } - }, - "sites": { - "methods": { - "get": { - "description": "Gets one site by ID.", - "flatPath": "userprofiles/{profileId}/sites/{id}", - "httpMethod": "GET", - "id": "dfareporting.sites.get", - "parameterOrder": [ - "profileId", - "id" - ], - "parameters": { - "id": { - "description": "Site ID.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - }, - "profileId": { - "description": "User profile ID associated with this request.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - } - }, - "path": "userprofiles/{profileId}/sites/{id}", - "response": { - "$ref": "Site" - }, - "scopes": [ - "https://www.googleapis.com/auth/dfatrafficking" - ] - }, - "insert": { - "description": "Inserts a new site.", - "flatPath": "userprofiles/{profileId}/sites", - "httpMethod": "POST", - "id": "dfareporting.sites.insert", - "parameterOrder": [ - "profileId" - ], - "parameters": { - "profileId": { - "description": "User profile ID associated with this request.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - } - }, - "path": "userprofiles/{profileId}/sites", - "request": { - "$ref": "Site" - }, - "response": { - "$ref": "Site" - }, - "scopes": [ - "https://www.googleapis.com/auth/dfatrafficking" - ] - }, - "list": { - "description": "Retrieves a list of sites, possibly filtered. This method supports paging.", - "flatPath": "userprofiles/{profileId}/sites", - "httpMethod": "GET", - "id": "dfareporting.sites.list", - "parameterOrder": [ - "profileId" - ], - "parameters": { - "acceptsInStreamVideoPlacements": { - "description": "This search filter is no longer supported and will have no effect on the results returned.", - "location": "query", - "type": "boolean" - }, - "acceptsInterstitialPlacements": { - "description": "This search filter is no longer supported and will have no effect on the results returned.", - "location": "query", - "type": "boolean" - }, - "acceptsPublisherPaidPlacements": { - "description": "Select only sites that accept publisher paid placements.", - "location": "query", - "type": "boolean" - }, - "adWordsSite": { - "description": "Select only AdWords sites.", - "location": "query", - "type": "boolean" - }, - "approved": { - "description": "Select only approved sites.", - "location": "query", - "type": "boolean" - }, - "campaignIds": { - "description": "Select only sites with these campaign IDs.", - "format": "int64", - "location": "query", - "repeated": true, - "type": "string" - }, - "directorySiteIds": { - "description": "Select only sites with these directory site IDs.", - "format": "int64", - "location": "query", - "repeated": true, - "type": "string" - }, - "ids": { - "description": "Select only sites with these IDs.", - "format": "int64", - "location": "query", - "repeated": true, - "type": "string" - }, - "maxResults": { - "default": "1000", - "description": "Maximum number of results to return.", - "format": "int32", - "location": "query", - "maximum": "1000", - "minimum": "0", - "type": "integer" - }, - "pageToken": { - "description": "Value of the nextPageToken from the previous result page.", - "location": "query", - "type": "string" - }, - "profileId": { - "description": "User profile ID associated with this request.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - }, - "searchString": { - "description": "Allows searching for objects by name, ID or keyName. Wildcards (*) are allowed. For example, \"site*2015\" will return objects with names like \"site June 2015\", \"site April 2015\", or simply \"site 2015\". Most of the searches also add wildcards implicitly at the start and the end of the search string. For example, a search string of \"site\" will match objects with name \"my site\", \"site 2015\", or simply \"site\".", - "location": "query", - "type": "string" - }, - "sortField": { - "default": "ID", - "description": "Field by which to sort the list.", - "enum": [ - "ID", - "NAME" - ], - "enumDescriptions": [ - "", - "" - ], - "location": "query", - "type": "string" - }, - "sortOrder": { - "default": "ASCENDING", - "description": "Order of sorted results.", - "enum": [ - "ASCENDING", - "DESCENDING" - ], - "enumDescriptions": [ - "", - "" - ], - "location": "query", - "type": "string" - }, - "subaccountId": { - "description": "Select only sites with this subaccount ID.", - "format": "int64", - "location": "query", - "type": "string" - }, - "unmappedSite": { - "description": "Select only sites that have not been mapped to a directory site.", - "location": "query", - "type": "boolean" - } - }, - "path": "userprofiles/{profileId}/sites", - "response": { - "$ref": "SitesListResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/dfatrafficking" - ] - }, - "patch": { - "description": "Updates an existing site. This method supports patch semantics.", - "flatPath": "userprofiles/{profileId}/sites", - "httpMethod": "PATCH", - "id": "dfareporting.sites.patch", - "parameterOrder": [ - "profileId", - "id" - ], - "parameters": { - "id": { - "description": "Site ID.", - "format": "int64", - "location": "query", - "required": true, - "type": "string" - }, - "profileId": { - "description": "User profile ID associated with this request.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - } - }, - "path": "userprofiles/{profileId}/sites", - "request": { - "$ref": "Site" - }, - "response": { - "$ref": "Site" - }, - "scopes": [ - "https://www.googleapis.com/auth/dfatrafficking" - ] - }, - "update": { - "description": "Updates an existing site.", - "flatPath": "userprofiles/{profileId}/sites", - "httpMethod": "PUT", - "id": "dfareporting.sites.update", - "parameterOrder": [ - "profileId" - ], - "parameters": { - "profileId": { - "description": "User profile ID associated with this request.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - } - }, - "path": "userprofiles/{profileId}/sites", - "request": { - "$ref": "Site" - }, - "response": { - "$ref": "Site" - }, - "scopes": [ - "https://www.googleapis.com/auth/dfatrafficking" - ] - } - } - }, - "sizes": { - "methods": { - "get": { - "description": "Gets one size by ID.", - "flatPath": "userprofiles/{profileId}/sizes/{id}", - "httpMethod": "GET", - "id": "dfareporting.sizes.get", - "parameterOrder": [ - "profileId", - "id" - ], - "parameters": { - "id": { - "description": "Size ID.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - }, - "profileId": { - "description": "User profile ID associated with this request.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - } - }, - "path": "userprofiles/{profileId}/sizes/{id}", - "response": { - "$ref": "Size" - }, - "scopes": [ - "https://www.googleapis.com/auth/dfatrafficking" - ] - }, - "insert": { - "description": "Inserts a new size.", - "flatPath": "userprofiles/{profileId}/sizes", - "httpMethod": "POST", - "id": "dfareporting.sizes.insert", - "parameterOrder": [ - "profileId" - ], - "parameters": { - "profileId": { - "description": "User profile ID associated with this request.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - } - }, - "path": "userprofiles/{profileId}/sizes", - "request": { - "$ref": "Size" - }, - "response": { - "$ref": "Size" - }, - "scopes": [ - "https://www.googleapis.com/auth/dfatrafficking" - ] - }, - "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": "userprofiles/{profileId}/sizes", - "httpMethod": "GET", - "id": "dfareporting.sizes.list", - "parameterOrder": [ - "profileId" - ], - "parameters": { - "height": { - "description": "Select only sizes with this height.", - "format": "int32", - "location": "query", - "maximum": "32767", - "minimum": "0", - "type": "integer" - }, - "iabStandard": { - "description": "Select only IAB standard sizes.", - "location": "query", - "type": "boolean" - }, - "ids": { - "description": "Select only sizes with these IDs.", - "format": "int64", - "location": "query", - "repeated": true, - "type": "string" - }, - "profileId": { - "description": "User profile ID associated with this request.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - }, - "width": { - "description": "Select only sizes with this width.", - "format": "int32", - "location": "query", - "maximum": "32767", - "minimum": "0", - "type": "integer" - } - }, - "path": "userprofiles/{profileId}/sizes", - "response": { - "$ref": "SizesListResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/dfatrafficking" - ] - } - } - }, - "subaccounts": { - "methods": { - "get": { - "description": "Gets one subaccount by ID.", - "flatPath": "userprofiles/{profileId}/subaccounts/{id}", - "httpMethod": "GET", - "id": "dfareporting.subaccounts.get", - "parameterOrder": [ - "profileId", - "id" - ], - "parameters": { - "id": { - "description": "Subaccount ID.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - }, - "profileId": { - "description": "User profile ID associated with this request.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - } - }, - "path": "userprofiles/{profileId}/subaccounts/{id}", - "response": { - "$ref": "Subaccount" - }, - "scopes": [ - "https://www.googleapis.com/auth/dfatrafficking" - ] - }, - "insert": { - "description": "Inserts a new subaccount.", - "flatPath": "userprofiles/{profileId}/subaccounts", - "httpMethod": "POST", - "id": "dfareporting.subaccounts.insert", - "parameterOrder": [ - "profileId" - ], - "parameters": { - "profileId": { - "description": "User profile ID associated with this request.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - } - }, - "path": "userprofiles/{profileId}/subaccounts", - "request": { - "$ref": "Subaccount" - }, - "response": { - "$ref": "Subaccount" - }, - "scopes": [ - "https://www.googleapis.com/auth/dfatrafficking" - ] - }, - "list": { - "description": "Gets a list of subaccounts, possibly filtered. This method supports paging.", - "flatPath": "userprofiles/{profileId}/subaccounts", - "httpMethod": "GET", - "id": "dfareporting.subaccounts.list", - "parameterOrder": [ - "profileId" - ], - "parameters": { - "ids": { - "description": "Select only subaccounts with these IDs.", - "format": "int64", - "location": "query", - "repeated": true, - "type": "string" - }, - "maxResults": { - "default": "1000", - "description": "Maximum number of results to return.", - "format": "int32", - "location": "query", - "maximum": "1000", - "minimum": "0", - "type": "integer" - }, - "pageToken": { - "description": "Value of the nextPageToken from the previous result page.", - "location": "query", - "type": "string" - }, - "profileId": { - "description": "User profile ID associated with this request.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - }, - "searchString": { - "description": "Allows searching for objects by name or ID. Wildcards (*) are allowed. For example, \"subaccount*2015\" will return objects with names like \"subaccount June 2015\", \"subaccount April 2015\", or simply \"subaccount 2015\". Most of the searches also add wildcards implicitly at the start and the end of the search string. For example, a search string of \"subaccount\" will match objects with name \"my subaccount\", \"subaccount 2015\", or simply \"subaccount\" .", - "location": "query", - "type": "string" - }, - "sortField": { - "default": "ID", - "description": "Field by which to sort the list.", - "enum": [ - "ID", - "NAME" - ], - "enumDescriptions": [ - "", - "" - ], - "location": "query", - "type": "string" - }, - "sortOrder": { - "default": "ASCENDING", - "description": "Order of sorted results.", - "enum": [ - "ASCENDING", - "DESCENDING" - ], - "enumDescriptions": [ - "", - "" - ], - "location": "query", - "type": "string" - } - }, - "path": "userprofiles/{profileId}/subaccounts", - "response": { - "$ref": "SubaccountsListResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/dfatrafficking" - ] - }, - "patch": { - "description": "Updates an existing subaccount. This method supports patch semantics.", - "flatPath": "userprofiles/{profileId}/subaccounts", - "httpMethod": "PATCH", - "id": "dfareporting.subaccounts.patch", - "parameterOrder": [ - "profileId", - "id" - ], - "parameters": { - "id": { - "description": "Subaccount ID.", - "format": "int64", - "location": "query", - "required": true, - "type": "string" - }, - "profileId": { - "description": "User profile ID associated with this request.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - } - }, - "path": "userprofiles/{profileId}/subaccounts", - "request": { - "$ref": "Subaccount" - }, - "response": { - "$ref": "Subaccount" - }, - "scopes": [ - "https://www.googleapis.com/auth/dfatrafficking" - ] - }, - "update": { - "description": "Updates an existing subaccount.", - "flatPath": "userprofiles/{profileId}/subaccounts", - "httpMethod": "PUT", - "id": "dfareporting.subaccounts.update", - "parameterOrder": [ - "profileId" - ], - "parameters": { - "profileId": { - "description": "User profile ID associated with this request.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - } - }, - "path": "userprofiles/{profileId}/subaccounts", - "request": { - "$ref": "Subaccount" - }, - "response": { - "$ref": "Subaccount" - }, - "scopes": [ - "https://www.googleapis.com/auth/dfatrafficking" - ] - } - } - }, - "targetableRemarketingLists": { - "methods": { - "get": { - "description": "Gets one remarketing list by ID.", - "flatPath": "userprofiles/{profileId}/targetableRemarketingLists/{id}", - "httpMethod": "GET", - "id": "dfareporting.targetableRemarketingLists.get", - "parameterOrder": [ - "profileId", - "id" - ], - "parameters": { - "id": { - "description": "Remarketing list ID.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - }, - "profileId": { - "description": "User profile ID associated with this request.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - } - }, - "path": "userprofiles/{profileId}/targetableRemarketingLists/{id}", - "response": { - "$ref": "TargetableRemarketingList" - }, - "scopes": [ - "https://www.googleapis.com/auth/dfatrafficking" - ] - }, - "list": { - "description": "Retrieves a list of targetable remarketing lists, possibly filtered. This method supports paging.", - "flatPath": "userprofiles/{profileId}/targetableRemarketingLists", - "httpMethod": "GET", - "id": "dfareporting.targetableRemarketingLists.list", - "parameterOrder": [ - "profileId", - "advertiserId" - ], - "parameters": { - "active": { - "description": "Select only active or only inactive targetable remarketing lists.", - "location": "query", - "type": "boolean" - }, - "advertiserId": { - "description": "Select only targetable remarketing lists targetable by these advertisers.", - "format": "int64", - "location": "query", - "required": true, - "type": "string" - }, - "maxResults": { - "default": "1000", - "description": "Maximum number of results to return.", - "format": "int32", - "location": "query", - "maximum": "1000", - "minimum": "0", - "type": "integer" - }, - "name": { - "description": "Allows searching for objects by name or ID. Wildcards (*) are allowed. For example, \"remarketing list*2015\" will return objects with names like \"remarketing list June 2015\", \"remarketing list April 2015\", or simply \"remarketing list 2015\". Most of the searches also add wildcards implicitly at the start and the end of the search string. For example, a search string of \"remarketing list\" will match objects with name \"my remarketing list\", \"remarketing list 2015\", or simply \"remarketing list\".", - "location": "query", - "type": "string" - }, - "pageToken": { - "description": "Value of the nextPageToken from the previous result page.", - "location": "query", - "type": "string" - }, - "profileId": { - "description": "User profile ID associated with this request.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - }, - "sortField": { - "default": "ID", - "description": "Field by which to sort the list.", - "enum": [ - "ID", - "NAME" - ], - "enumDescriptions": [ - "", - "" - ], - "location": "query", - "type": "string" - }, - "sortOrder": { - "default": "ASCENDING", - "description": "Order of sorted results.", - "enum": [ - "ASCENDING", - "DESCENDING" - ], - "enumDescriptions": [ - "", - "" - ], - "location": "query", - "type": "string" - } - }, - "path": "userprofiles/{profileId}/targetableRemarketingLists", - "response": { - "$ref": "TargetableRemarketingListsListResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/dfatrafficking" - ] - } - } - }, - "targetingTemplates": { - "methods": { - "get": { - "description": "Gets one targeting template by ID.", - "flatPath": "userprofiles/{profileId}/targetingTemplates/{id}", - "httpMethod": "GET", - "id": "dfareporting.targetingTemplates.get", - "parameterOrder": [ - "profileId", - "id" - ], - "parameters": { - "id": { - "description": "Targeting template ID.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - }, - "profileId": { - "description": "User profile ID associated with this request.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - } - }, - "path": "userprofiles/{profileId}/targetingTemplates/{id}", - "response": { - "$ref": "TargetingTemplate" - }, - "scopes": [ - "https://www.googleapis.com/auth/dfatrafficking" - ] - }, - "insert": { - "description": "Inserts a new targeting template.", - "flatPath": "userprofiles/{profileId}/targetingTemplates", - "httpMethod": "POST", - "id": "dfareporting.targetingTemplates.insert", - "parameterOrder": [ - "profileId" - ], - "parameters": { - "profileId": { - "description": "User profile ID associated with this request.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - } - }, - "path": "userprofiles/{profileId}/targetingTemplates", - "request": { - "$ref": "TargetingTemplate" - }, - "response": { - "$ref": "TargetingTemplate" - }, - "scopes": [ - "https://www.googleapis.com/auth/dfatrafficking" - ] - }, - "list": { - "description": "Retrieves a list of targeting templates, optionally filtered. This method supports paging.", - "flatPath": "userprofiles/{profileId}/targetingTemplates", - "httpMethod": "GET", - "id": "dfareporting.targetingTemplates.list", - "parameterOrder": [ - "profileId" - ], - "parameters": { - "advertiserId": { - "description": "Select only targeting templates with this advertiser ID.", - "format": "int64", - "location": "query", - "type": "string" - }, - "ids": { - "description": "Select only targeting templates with these IDs.", - "format": "int64", - "location": "query", - "repeated": true, - "type": "string" - }, - "maxResults": { - "default": "1000", - "description": "Maximum number of results to return.", - "format": "int32", - "location": "query", - "maximum": "1000", - "minimum": "0", - "type": "integer" - }, - "pageToken": { - "description": "Value of the nextPageToken from the previous result page.", - "location": "query", - "type": "string" - }, - "profileId": { - "description": "User profile ID associated with this request.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - }, - "searchString": { - "description": "Allows searching for objects by name or ID. Wildcards (*) are allowed. For example, \"template*2015\" will return objects with names like \"template June 2015\", \"template April 2015\", or simply \"template 2015\". Most of the searches also add wildcards implicitly at the start and the end of the search string. For example, a search string of \"template\" will match objects with name \"my template\", \"template 2015\", or simply \"template\".", - "location": "query", - "type": "string" - }, - "sortField": { - "default": "ID", - "description": "Field by which to sort the list.", - "enum": [ - "ID", - "NAME" - ], - "enumDescriptions": [ - "", - "" - ], - "location": "query", - "type": "string" - }, - "sortOrder": { - "default": "ASCENDING", - "description": "Order of sorted results.", - "enum": [ - "ASCENDING", - "DESCENDING" - ], - "enumDescriptions": [ - "", - "" - ], - "location": "query", - "type": "string" - } - }, - "path": "userprofiles/{profileId}/targetingTemplates", - "response": { - "$ref": "TargetingTemplatesListResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/dfatrafficking" - ] - }, - "patch": { - "description": "Updates an existing targeting template. This method supports patch semantics.", - "flatPath": "userprofiles/{profileId}/targetingTemplates", - "httpMethod": "PATCH", - "id": "dfareporting.targetingTemplates.patch", - "parameterOrder": [ - "profileId", - "id" - ], - "parameters": { - "id": { - "description": "TargetingTemplate ID.", - "format": "int64", - "location": "query", - "required": true, - "type": "string" - }, - "profileId": { - "description": "User profile ID associated with this request.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - } - }, - "path": "userprofiles/{profileId}/targetingTemplates", - "request": { - "$ref": "TargetingTemplate" - }, - "response": { - "$ref": "TargetingTemplate" - }, - "scopes": [ - "https://www.googleapis.com/auth/dfatrafficking" - ] - }, - "update": { - "description": "Updates an existing targeting template.", - "flatPath": "userprofiles/{profileId}/targetingTemplates", - "httpMethod": "PUT", - "id": "dfareporting.targetingTemplates.update", - "parameterOrder": [ - "profileId" - ], - "parameters": { - "profileId": { - "description": "User profile ID associated with this request.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - } - }, - "path": "userprofiles/{profileId}/targetingTemplates", - "request": { - "$ref": "TargetingTemplate" - }, - "response": { - "$ref": "TargetingTemplate" - }, - "scopes": [ - "https://www.googleapis.com/auth/dfatrafficking" - ] - } - } - }, - "userProfiles": { - "methods": { - "get": { - "description": "Gets one user profile by ID.", - "flatPath": "userprofiles/{profileId}", - "httpMethod": "GET", - "id": "dfareporting.userProfiles.get", - "parameterOrder": [ - "profileId" - ], - "parameters": { - "profileId": { - "description": "The user profile ID.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - } - }, - "path": "userprofiles/{profileId}", - "response": { - "$ref": "UserProfile" - }, - "scopes": [ - "https://www.googleapis.com/auth/ddmconversions", - "https://www.googleapis.com/auth/dfareporting", - "https://www.googleapis.com/auth/dfatrafficking" - ] - }, - "list": { - "description": "Retrieves list of user profiles for a user.", - "flatPath": "userprofiles", - "httpMethod": "GET", - "id": "dfareporting.userProfiles.list", - "parameterOrder": [], - "parameters": {}, - "path": "userprofiles", - "response": { - "$ref": "UserProfileList" - }, - "scopes": [ - "https://www.googleapis.com/auth/ddmconversions", - "https://www.googleapis.com/auth/dfareporting", - "https://www.googleapis.com/auth/dfatrafficking" - ] - } - } - }, - "userRolePermissionGroups": { - "methods": { - "get": { - "description": "Gets one user role permission group by ID.", - "flatPath": "userprofiles/{profileId}/userRolePermissionGroups/{id}", - "httpMethod": "GET", - "id": "dfareporting.userRolePermissionGroups.get", - "parameterOrder": [ - "profileId", - "id" - ], - "parameters": { - "id": { - "description": "User role permission group ID.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - }, - "profileId": { - "description": "User profile ID associated with this request.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - } - }, - "path": "userprofiles/{profileId}/userRolePermissionGroups/{id}", - "response": { - "$ref": "UserRolePermissionGroup" - }, - "scopes": [ - "https://www.googleapis.com/auth/dfatrafficking" - ] - }, - "list": { - "description": "Gets a list of all supported user role permission groups.", - "flatPath": "userprofiles/{profileId}/userRolePermissionGroups", - "httpMethod": "GET", - "id": "dfareporting.userRolePermissionGroups.list", - "parameterOrder": [ - "profileId" - ], - "parameters": { - "profileId": { - "description": "User profile ID associated with this request.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - } - }, - "path": "userprofiles/{profileId}/userRolePermissionGroups", - "response": { - "$ref": "UserRolePermissionGroupsListResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/dfatrafficking" - ] - } - } - }, - "userRolePermissions": { - "methods": { - "get": { - "description": "Gets one user role permission by ID.", - "flatPath": "userprofiles/{profileId}/userRolePermissions/{id}", - "httpMethod": "GET", - "id": "dfareporting.userRolePermissions.get", - "parameterOrder": [ - "profileId", - "id" - ], - "parameters": { - "id": { - "description": "User role permission ID.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - }, - "profileId": { - "description": "User profile ID associated with this request.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - } - }, - "path": "userprofiles/{profileId}/userRolePermissions/{id}", - "response": { - "$ref": "UserRolePermission" - }, - "scopes": [ - "https://www.googleapis.com/auth/dfatrafficking" - ] - }, - "list": { - "description": "Gets a list of user role permissions, possibly filtered.", - "flatPath": "userprofiles/{profileId}/userRolePermissions", - "httpMethod": "GET", - "id": "dfareporting.userRolePermissions.list", - "parameterOrder": [ - "profileId" - ], - "parameters": { - "ids": { - "description": "Select only user role permissions with these IDs.", - "format": "int64", - "location": "query", - "repeated": true, - "type": "string" - }, - "profileId": { - "description": "User profile ID associated with this request.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - } - }, - "path": "userprofiles/{profileId}/userRolePermissions", - "response": { - "$ref": "UserRolePermissionsListResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/dfatrafficking" - ] - } - } - }, - "userRoles": { - "methods": { - "delete": { - "description": "Deletes an existing user role.", - "flatPath": "userprofiles/{profileId}/userRoles/{id}", - "httpMethod": "DELETE", - "id": "dfareporting.userRoles.delete", - "parameterOrder": [ - "profileId", - "id" - ], - "parameters": { - "id": { - "description": "User role ID.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - }, - "profileId": { - "description": "User profile ID associated with this request.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - } - }, - "path": "userprofiles/{profileId}/userRoles/{id}", - "scopes": [ - "https://www.googleapis.com/auth/dfatrafficking" - ] - }, - "get": { - "description": "Gets one user role by ID.", - "flatPath": "userprofiles/{profileId}/userRoles/{id}", - "httpMethod": "GET", - "id": "dfareporting.userRoles.get", - "parameterOrder": [ - "profileId", - "id" - ], - "parameters": { - "id": { - "description": "User role ID.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - }, - "profileId": { - "description": "User profile ID associated with this request.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - } - }, - "path": "userprofiles/{profileId}/userRoles/{id}", - "response": { - "$ref": "UserRole" - }, - "scopes": [ - "https://www.googleapis.com/auth/dfatrafficking" - ] - }, - "insert": { - "description": "Inserts a new user role.", - "flatPath": "userprofiles/{profileId}/userRoles", - "httpMethod": "POST", - "id": "dfareporting.userRoles.insert", - "parameterOrder": [ - "profileId" - ], - "parameters": { - "profileId": { - "description": "User profile ID associated with this request.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - } - }, - "path": "userprofiles/{profileId}/userRoles", - "request": { - "$ref": "UserRole" - }, - "response": { - "$ref": "UserRole" - }, - "scopes": [ - "https://www.googleapis.com/auth/dfatrafficking" - ] - }, - "list": { - "description": "Retrieves a list of user roles, possibly filtered. This method supports paging.", - "flatPath": "userprofiles/{profileId}/userRoles", - "httpMethod": "GET", - "id": "dfareporting.userRoles.list", - "parameterOrder": [ - "profileId" - ], - "parameters": { - "accountUserRoleOnly": { - "description": "Select only account level user roles not associated with any specific subaccount.", - "location": "query", - "type": "boolean" - }, - "ids": { - "description": "Select only user roles with the specified IDs.", - "format": "int64", - "location": "query", - "repeated": true, - "type": "string" - }, - "maxResults": { - "default": "1000", - "description": "Maximum number of results to return.", - "format": "int32", - "location": "query", - "maximum": "1000", - "minimum": "0", - "type": "integer" - }, - "pageToken": { - "description": "Value of the nextPageToken from the previous result page.", - "location": "query", - "type": "string" - }, - "profileId": { - "description": "User profile ID associated with this request.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - }, - "searchString": { - "description": "Allows searching for objects by name or ID. Wildcards (*) are allowed. For example, \"userrole*2015\" will return objects with names like \"userrole June 2015\", \"userrole April 2015\", or simply \"userrole 2015\". Most of the searches also add wildcards implicitly at the start and the end of the search string. For example, a search string of \"userrole\" will match objects with name \"my userrole\", \"userrole 2015\", or simply \"userrole\".", - "location": "query", - "type": "string" - }, - "sortField": { - "default": "ID", - "description": "Field by which to sort the list.", - "enum": [ - "ID", - "NAME" - ], - "enumDescriptions": [ - "", - "" - ], - "location": "query", - "type": "string" - }, - "sortOrder": { - "default": "ASCENDING", - "description": "Order of sorted results.", - "enum": [ - "ASCENDING", - "DESCENDING" - ], - "enumDescriptions": [ - "", - "" - ], - "location": "query", - "type": "string" - }, - "subaccountId": { - "description": "Select only user roles that belong to this subaccount.", - "format": "int64", - "location": "query", - "type": "string" - } - }, - "path": "userprofiles/{profileId}/userRoles", - "response": { - "$ref": "UserRolesListResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/dfatrafficking" - ] - }, - "patch": { - "description": "Updates an existing user role. This method supports patch semantics.", - "flatPath": "userprofiles/{profileId}/userRoles", - "httpMethod": "PATCH", - "id": "dfareporting.userRoles.patch", - "parameterOrder": [ - "profileId", - "id" - ], - "parameters": { - "id": { - "description": "UserRole ID.", - "format": "int64", - "location": "query", - "required": true, - "type": "string" - }, - "profileId": { - "description": "User profile ID associated with this request.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - } - }, - "path": "userprofiles/{profileId}/userRoles", - "request": { - "$ref": "UserRole" - }, - "response": { - "$ref": "UserRole" - }, - "scopes": [ - "https://www.googleapis.com/auth/dfatrafficking" - ] - }, - "update": { - "description": "Updates an existing user role.", - "flatPath": "userprofiles/{profileId}/userRoles", - "httpMethod": "PUT", - "id": "dfareporting.userRoles.update", - "parameterOrder": [ - "profileId" - ], - "parameters": { - "profileId": { - "description": "User profile ID associated with this request.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - } - }, - "path": "userprofiles/{profileId}/userRoles", - "request": { - "$ref": "UserRole" - }, - "response": { - "$ref": "UserRole" - }, - "scopes": [ - "https://www.googleapis.com/auth/dfatrafficking" - ] - } - } - }, - "videoFormats": { - "methods": { - "get": { - "description": "Gets one video format by ID.", - "flatPath": "userprofiles/{profileId}/videoFormats/{id}", - "httpMethod": "GET", - "id": "dfareporting.videoFormats.get", - "parameterOrder": [ - "profileId", - "id" - ], - "parameters": { - "id": { - "description": "Video format ID.", - "format": "int32", - "location": "path", - "required": true, - "type": "integer" - }, - "profileId": { - "description": "User profile ID associated with this request.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - } - }, - "path": "userprofiles/{profileId}/videoFormats/{id}", - "response": { - "$ref": "VideoFormat" - }, - "scopes": [ - "https://www.googleapis.com/auth/dfatrafficking" - ] - }, - "list": { - "description": "Lists available video formats.", - "flatPath": "userprofiles/{profileId}/videoFormats", - "httpMethod": "GET", - "id": "dfareporting.videoFormats.list", - "parameterOrder": [ - "profileId" - ], - "parameters": { - "profileId": { - "description": "User profile ID associated with this request.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - } - }, - "path": "userprofiles/{profileId}/videoFormats", - "response": { - "$ref": "VideoFormatsListResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/dfatrafficking" - ] - } - } - } - }, - "revision": "20230323", - "rootUrl": "https://dfareporting.googleapis.com/", - "schemas": { - "Account": { - "description": "Contains properties of a Campaign Manager account.", - "id": "Account", - "properties": { - "accountPermissionIds": { - "description": "Account permissions assigned to this account.", - "items": { - "format": "int64", - "type": "string" - }, - "type": "array" - }, - "accountProfile": { - "description": "Profile for this account. This is a read-only field that can be left blank.", - "enum": [ - "ACCOUNT_PROFILE_BASIC", - "ACCOUNT_PROFILE_STANDARD" - ], - "enumDescriptions": [ - "", - "" - ], - "type": "string" - }, - "active": { - "description": "Whether this account is active.", - "type": "boolean" - }, - "activeAdsLimitTier": { - "description": "Maximum number of active ads allowed for this account.", - "enum": [ - "ACTIVE_ADS_TIER_40K", - "ACTIVE_ADS_TIER_75K", - "ACTIVE_ADS_TIER_100K", - "ACTIVE_ADS_TIER_200K", - "ACTIVE_ADS_TIER_300K", - "ACTIVE_ADS_TIER_500K", - "ACTIVE_ADS_TIER_750K", - "ACTIVE_ADS_TIER_1M" - ], - "enumDescriptions": [ - "", - "", - "", - "", - "", - "", - "", - "" - ], - "type": "string" - }, - "activeViewOptOut": { - "description": "Whether to serve creatives with Active View tags. If disabled, viewability data will not be available for any impressions.", - "type": "boolean" - }, - "availablePermissionIds": { - "description": "User role permissions available to the user roles of this account.", - "items": { - "format": "int64", - "type": "string" - }, - "type": "array" - }, - "countryId": { - "description": "ID of the country associated with this account.", - "format": "int64", - "type": "string" - }, - "currencyId": { - "description": "ID of currency associated with this account. This is a required field. Acceptable values are: - \"1\" for USD - \"2\" for GBP - \"3\" for ESP - \"4\" for SEK - \"5\" for CAD - \"6\" for JPY - \"7\" for DEM - \"8\" for AUD - \"9\" for FRF - \"10\" for ITL - \"11\" for DKK - \"12\" for NOK - \"13\" for FIM - \"14\" for ZAR - \"15\" for IEP - \"16\" for NLG - \"17\" for EUR - \"18\" for KRW - \"19\" for TWD - \"20\" for SGD - \"21\" for CNY - \"22\" for HKD - \"23\" for NZD - \"24\" for MYR - \"25\" for BRL - \"26\" for PTE - \"28\" for CLP - \"29\" for TRY - \"30\" for ARS - \"31\" for PEN - \"32\" for ILS - \"33\" for CHF - \"34\" for VEF - \"35\" for COP - \"36\" for GTQ - \"37\" for PLN - \"39\" for INR - \"40\" for THB - \"41\" for IDR - \"42\" for CZK - \"43\" for RON - \"44\" for HUF - \"45\" for RUB - \"46\" for AED - \"47\" for BGN - \"48\" for HRK - \"49\" for MXN - \"50\" for NGN - \"51\" for EGP ", - "format": "int64", - "type": "string" - }, - "defaultCreativeSizeId": { - "description": "Default placement dimensions for this account.", - "format": "int64", - "type": "string" - }, - "description": { - "description": "Description of this account.", - "type": "string" - }, - "id": { - "description": "ID of this account. This is a read-only, auto-generated field.", - "format": "int64", - "type": "string" - }, - "kind": { - "description": "Identifies what kind of resource this is. Value: the fixed string \"dfareporting#account\".", - "type": "string" - }, - "locale": { - "description": "Locale of this account. Acceptable values are: - \"cs\" (Czech) - \"de\" (German) - \"en\" (English) - \"en-GB\" (English United Kingdom) - \"es\" (Spanish) - \"fr\" (French) - \"it\" (Italian) - \"ja\" (Japanese) - \"ko\" (Korean) - \"pl\" (Polish) - \"pt-BR\" (Portuguese Brazil) - \"ru\" (Russian) - \"sv\" (Swedish) - \"tr\" (Turkish) - \"zh-CN\" (Chinese Simplified) - \"zh-TW\" (Chinese Traditional) ", - "type": "string" - }, - "maximumImageSize": { - "description": "Maximum image size allowed for this account, in kilobytes. Value must be greater than or equal to 1.", - "format": "int64", - "type": "string" - }, - "name": { - "description": "Name of this account. This is a required field, and must be less than 128 characters long and be globally unique.", - "type": "string" - }, - "nielsenOcrEnabled": { - "description": "Whether campaigns created in this account will be enabled for Nielsen OCR reach ratings by default.", - "type": "boolean" - }, - "reportsConfiguration": { - "$ref": "ReportsConfiguration", - "description": "Reporting configuration of this account." - }, - "shareReportsWithTwitter": { - "description": "Share Path to Conversion reports with Twitter.", - "type": "boolean" - }, - "teaserSizeLimit": { - "description": "File size limit in kilobytes of Rich Media teaser creatives. Acceptable values are 1 to 10240, inclusive.", - "format": "int64", - "type": "string" - } - }, - "type": "object" - }, - "AccountActiveAdSummary": { - "description": "Gets a summary of active ads in an account.", - "id": "AccountActiveAdSummary", - "properties": { - "accountId": { - "description": "ID of the account.", - "format": "int64", - "type": "string" - }, - "activeAds": { - "description": "Ads that have been activated for the account", - "format": "int64", - "type": "string" - }, - "activeAdsLimitTier": { - "description": "Maximum number of active ads allowed for the account.", - "enum": [ - "ACTIVE_ADS_TIER_40K", - "ACTIVE_ADS_TIER_75K", - "ACTIVE_ADS_TIER_100K", - "ACTIVE_ADS_TIER_200K", - "ACTIVE_ADS_TIER_300K", - "ACTIVE_ADS_TIER_500K", - "ACTIVE_ADS_TIER_750K", - "ACTIVE_ADS_TIER_1M" - ], - "enumDescriptions": [ - "", - "", - "", - "", - "", - "", - "", - "" - ], - "type": "string" - }, - "availableAds": { - "description": "Ads that can be activated for the account.", - "format": "int64", - "type": "string" - }, - "kind": { - "description": "Identifies what kind of resource this is. Value: the fixed string \"dfareporting#accountActiveAdSummary\".", - "type": "string" - } - }, - "type": "object" - }, - "AccountPermission": { - "description": "AccountPermissions contains information about a particular account permission. Some features of Campaign Manager require an account permission to be present in the account.", - "id": "AccountPermission", - "properties": { - "accountProfiles": { - "description": "Account profiles associated with this account permission. Possible values are: - \"ACCOUNT_PROFILE_BASIC\" - \"ACCOUNT_PROFILE_STANDARD\" ", - "items": { - "enum": [ - "ACCOUNT_PROFILE_BASIC", - "ACCOUNT_PROFILE_STANDARD" - ], - "enumDescriptions": [ - "", - "" - ], - "type": "string" - }, - "type": "array" - }, - "id": { - "description": "ID of this account permission.", - "format": "int64", - "type": "string" - }, - "kind": { - "description": "Identifies what kind of resource this is. Value: the fixed string \"dfareporting#accountPermission\".", - "type": "string" - }, - "level": { - "description": "Administrative level required to enable this account permission.", - "enum": [ - "USER", - "ADMINISTRATOR" - ], - "enumDescriptions": [ - "", - "" - ], - "type": "string" - }, - "name": { - "description": "Name of this account permission.", - "type": "string" - }, - "permissionGroupId": { - "description": "Permission group of this account permission.", - "format": "int64", - "type": "string" - } - }, - "type": "object" - }, - "AccountPermissionGroup": { - "description": "AccountPermissionGroups contains a mapping of permission group IDs to names. A permission group is a grouping of account permissions.", - "id": "AccountPermissionGroup", - "properties": { - "id": { - "description": "ID of this account permission group.", - "format": "int64", - "type": "string" - }, - "kind": { - "description": "Identifies what kind of resource this is. Value: the fixed string \"dfareporting#accountPermissionGroup\".", - "type": "string" - }, - "name": { - "description": "Name of this account permission group.", - "type": "string" - } - }, - "type": "object" - }, - "AccountPermissionGroupsListResponse": { - "description": "Account Permission Group List Response", - "id": "AccountPermissionGroupsListResponse", - "properties": { - "accountPermissionGroups": { - "description": "Account permission group collection.", - "items": { - "$ref": "AccountPermissionGroup" - }, - "type": "array" - }, - "kind": { - "description": "Identifies what kind of resource this is. Value: the fixed string \"dfareporting#accountPermissionGroupsListResponse\".", - "type": "string" - } - }, - "type": "object" - }, - "AccountPermissionsListResponse": { - "description": "Account Permission List Response", - "id": "AccountPermissionsListResponse", - "properties": { - "accountPermissions": { - "description": "Account permission collection.", - "items": { - "$ref": "AccountPermission" - }, - "type": "array" - }, - "kind": { - "description": "Identifies what kind of resource this is. Value: the fixed string \"dfareporting#accountPermissionsListResponse\".", - "type": "string" - } - }, - "type": "object" - }, - "AccountUserProfile": { - "description": "AccountUserProfiles contains properties of a Campaign Manager user profile. This resource is specifically for managing user profiles, whereas UserProfiles is for accessing the API.", - "id": "AccountUserProfile", - "properties": { - "accountId": { - "description": "Account ID of the user profile. This is a read-only field that can be left blank.", - "format": "int64", - "type": "string" - }, - "active": { - "description": "Whether this user profile is active. This defaults to false, and must be set true on insert for the user profile to be usable.", - "type": "boolean" - }, - "advertiserFilter": { - "$ref": "ObjectFilter", - "description": "Filter that describes which advertisers are visible to the user profile." - }, - "campaignFilter": { - "$ref": "ObjectFilter", - "description": "Filter that describes which campaigns are visible to the user profile." - }, - "comments": { - "description": "Comments for this user profile.", - "type": "string" - }, - "email": { - "description": "Email of the user profile. The email addresss must be linked to a Google Account. This field is required on insertion and is read-only after insertion.", - "type": "string" - }, - "id": { - "description": "ID of the user profile. This is a read-only, auto-generated field.", - "format": "int64", - "type": "string" - }, - "kind": { - "description": "Identifies what kind of resource this is. Value: the fixed string \"dfareporting#accountUserProfile\".", - "type": "string" - }, - "locale": { - "description": "Locale of the user profile. This is a required field. Acceptable values are: - \"cs\" (Czech) - \"de\" (German) - \"en\" (English) - \"en-GB\" (English United Kingdom) - \"es\" (Spanish) - \"fr\" (French) - \"it\" (Italian) - \"ja\" (Japanese) - \"ko\" (Korean) - \"pl\" (Polish) - \"pt-BR\" (Portuguese Brazil) - \"ru\" (Russian) - \"sv\" (Swedish) - \"tr\" (Turkish) - \"zh-CN\" (Chinese Simplified) - \"zh-TW\" (Chinese Traditional) ", - "type": "string" - }, - "name": { - "description": "Name of the user profile. This is a required field. Must be less than 64 characters long, must be globally unique, and cannot contain whitespace or any of the following characters: \"\u0026;\u003c\u003e\"#%,\".", - "type": "string" - }, - "siteFilter": { - "$ref": "ObjectFilter", - "description": "Filter that describes which sites are visible to the user profile." - }, - "subaccountId": { - "description": "Subaccount ID of the user profile. This is a read-only field that can be left blank.", - "format": "int64", - "type": "string" - }, - "traffickerType": { - "description": "Trafficker type of this user profile. This is a read-only field.", - "enum": [ - "INTERNAL_NON_TRAFFICKER", - "INTERNAL_TRAFFICKER", - "EXTERNAL_TRAFFICKER" - ], - "enumDescriptions": [ - "", - "", - "" - ], - "type": "string" - }, - "userAccessType": { - "description": "User type of the user profile. This is a read-only field that can be left blank.", - "enum": [ - "NORMAL_USER", - "SUPER_USER", - "INTERNAL_ADMINISTRATOR", - "READ_ONLY_SUPER_USER" - ], - "enumDescriptions": [ - "", - "", - "", - "" - ], - "type": "string" - }, - "userRoleFilter": { - "$ref": "ObjectFilter", - "description": "Filter that describes which user roles are visible to the user profile." - }, - "userRoleId": { - "description": "User role ID of the user profile. This is a required field.", - "format": "int64", - "type": "string" - } - }, - "type": "object" - }, - "AccountUserProfilesListResponse": { - "description": "Account User Profile List Response", - "id": "AccountUserProfilesListResponse", - "properties": { - "accountUserProfiles": { - "description": "Account user profile collection.", - "items": { - "$ref": "AccountUserProfile" - }, - "type": "array" - }, - "kind": { - "description": "Identifies what kind of resource this is. Value: the fixed string \"dfareporting#accountUserProfilesListResponse\".", - "type": "string" - }, - "nextPageToken": { - "description": "Pagination token to be used for the next list operation.", - "type": "string" - } - }, - "type": "object" - }, - "AccountsListResponse": { - "description": "Account List Response", - "id": "AccountsListResponse", - "properties": { - "accounts": { - "description": "Account collection.", - "items": { - "$ref": "Account" - }, - "type": "array" - }, - "kind": { - "description": "Identifies what kind of resource this is. Value: the fixed string \"dfareporting#accountsListResponse\".", - "type": "string" - }, - "nextPageToken": { - "description": "Pagination token to be used for the next list operation.", - "type": "string" - } - }, - "type": "object" - }, - "Activities": { - "description": "Represents an activity group.", - "id": "Activities", - "properties": { - "filters": { - "description": "List of activity filters. The dimension values need to be all either of type \"dfa:activity\" or \"dfa:activityGroup\".", - "items": { - "$ref": "DimensionValue" - }, - "type": "array" - }, - "kind": { - "description": "The kind of resource this is, in this case dfareporting#activities.", - "type": "string" - }, - "metricNames": { - "description": "List of names of floodlight activity metrics.", - "items": { - "type": "string" - }, - "type": "array" - } - }, - "type": "object" - }, - "Ad": { - "description": "Contains properties of a Campaign Manager ad.", - "id": "Ad", - "properties": { - "accountId": { - "description": "Account ID of this ad. This is a read-only field that can be left blank.", - "format": "int64", - "type": "string" - }, - "active": { - "description": "Whether this ad is active. When true, archived must be false.", - "type": "boolean" - }, - "advertiserId": { - "description": "Advertiser ID of this ad. This is a required field on insertion.", - "format": "int64", - "type": "string" - }, - "advertiserIdDimensionValue": { - "$ref": "DimensionValue", - "description": "Dimension value for the ID of the advertiser. This is a read-only, auto-generated field." - }, - "archived": { - "description": "Whether this ad is archived. When true, active must be false.", - "type": "boolean" - }, - "audienceSegmentId": { - "description": "Audience segment ID that is being targeted for this ad. Applicable when type is AD_SERVING_STANDARD_AD.", - "format": "int64", - "type": "string" - }, - "campaignId": { - "description": "Campaign ID of this ad. This is a required field on insertion.", - "format": "int64", - "type": "string" - }, - "campaignIdDimensionValue": { - "$ref": "DimensionValue", - "description": "Dimension value for the ID of the campaign. This is a read-only, auto-generated field." - }, - "clickThroughUrl": { - "$ref": "ClickThroughUrl", - "description": "Click-through URL for this ad. This is a required field on insertion. Applicable when type is AD_SERVING_CLICK_TRACKER." - }, - "clickThroughUrlSuffixProperties": { - "$ref": "ClickThroughUrlSuffixProperties", - "description": "Click-through URL suffix properties for this ad. Applies to the URL in the ad or (if overriding ad properties) the URL in the creative." - }, - "comments": { - "description": "Comments for this ad.", - "type": "string" - }, - "compatibility": { - "description": "Compatibility of this ad. Applicable when type is AD_SERVING_DEFAULT_AD. DISPLAY and DISPLAY_INTERSTITIAL refer to either rendering on desktop or on mobile devices or in mobile apps for regular or interstitial ads, respectively. APP and APP_INTERSTITIAL are only used for existing default ads. New mobile placements must be assigned DISPLAY or DISPLAY_INTERSTITIAL and default ads created for those placements will be limited to those compatibility types. IN_STREAM_VIDEO refers to rendering in-stream video ads developed with the VAST standard.", - "enum": [ - "DISPLAY", - "DISPLAY_INTERSTITIAL", - "APP", - "APP_INTERSTITIAL", - "IN_STREAM_VIDEO", - "IN_STREAM_AUDIO" - ], - "enumDescriptions": [ - "", - "", - "", - "", - "", - "" - ], - "type": "string" - }, - "createInfo": { - "$ref": "LastModifiedInfo", - "description": "Information about the creation of this ad. This is a read-only field." - }, - "creativeGroupAssignments": { - "description": "Creative group assignments for this ad. Applicable when type is AD_SERVING_CLICK_TRACKER. Only one assignment per creative group number is allowed for a maximum of two assignments.", - "items": { - "$ref": "CreativeGroupAssignment" - }, - "type": "array" - }, - "creativeRotation": { - "$ref": "CreativeRotation", - "description": "Creative rotation for this ad. Applicable when type is AD_SERVING_DEFAULT_AD, AD_SERVING_STANDARD_AD, or AD_SERVING_TRACKING. When type is AD_SERVING_DEFAULT_AD, this field should have exactly one creativeAssignment ." - }, - "dayPartTargeting": { - "$ref": "DayPartTargeting", - "description": "Time and day targeting information for this ad. This field must be left blank if the ad is using a targeting template. Applicable when type is AD_SERVING_STANDARD_AD." - }, - "defaultClickThroughEventTagProperties": { - "$ref": "DefaultClickThroughEventTagProperties", - "description": "Default click-through event tag properties for this ad." - }, - "deliverySchedule": { - "$ref": "DeliverySchedule", - "description": "Delivery schedule information for this ad. Applicable when type is AD_SERVING_STANDARD_AD or AD_SERVING_TRACKING. This field along with subfields priority and impressionRatio are required on insertion when type is AD_SERVING_STANDARD_AD." - }, - "dynamicClickTracker": { - "description": "Whether this ad is a dynamic click tracker. Applicable when type is AD_SERVING_CLICK_TRACKER. This is a required field on insert, and is read-only after insert.", - "type": "boolean" - }, - "endTime": { - "format": "date-time", - "type": "string" - }, - "eventTagOverrides": { - "description": "Event tag overrides for this ad.", - "items": { - "$ref": "EventTagOverride" - }, - "type": "array" - }, - "geoTargeting": { - "$ref": "GeoTargeting", - "description": "Geographical targeting information for this ad. This field must be left blank if the ad is using a targeting template. Applicable when type is AD_SERVING_STANDARD_AD." - }, - "id": { - "description": "ID of this ad. This is a read-only, auto-generated field.", - "format": "int64", - "type": "string" - }, - "idDimensionValue": { - "$ref": "DimensionValue", - "description": "Dimension value for the ID of this ad. This is a read-only, auto-generated field." - }, - "keyValueTargetingExpression": { - "$ref": "KeyValueTargetingExpression", - "description": "Key-value targeting information for this ad. This field must be left blank if the ad is using a targeting template. Applicable when type is AD_SERVING_STANDARD_AD." - }, - "kind": { - "description": "Identifies what kind of resource this is. Value: the fixed string \"dfareporting#ad\".", - "type": "string" - }, - "languageTargeting": { - "$ref": "LanguageTargeting", - "description": "Language targeting information for this ad. This field must be left blank if the ad is using a targeting template. Applicable when type is AD_SERVING_STANDARD_AD." - }, - "lastModifiedInfo": { - "$ref": "LastModifiedInfo", - "description": "Information about the most recent modification of this ad. This is a read-only field." - }, - "name": { - "description": "Name of this ad. This is a required field and must be less than 256 characters long.", - "type": "string" - }, - "placementAssignments": { - "description": "Placement assignments for this ad.", - "items": { - "$ref": "PlacementAssignment" - }, - "type": "array" - }, - "remarketingListExpression": { - "$ref": "ListTargetingExpression", - "description": "Remarketing list targeting expression for this ad. This field must be left blank if the ad is using a targeting template. Applicable when type is AD_SERVING_STANDARD_AD." - }, - "size": { - "$ref": "Size", - "description": "Size of this ad. Applicable when type is AD_SERVING_DEFAULT_AD." - }, - "sslCompliant": { - "description": "Whether this ad is ssl compliant. This is a read-only field that is auto-generated when the ad is inserted or updated.", - "type": "boolean" - }, - "sslRequired": { - "description": "Whether this ad requires ssl. This is a read-only field that is auto-generated when the ad is inserted or updated.", - "type": "boolean" - }, - "startTime": { - "format": "date-time", - "type": "string" - }, - "subaccountId": { - "description": "Subaccount ID of this ad. This is a read-only field that can be left blank.", - "format": "int64", - "type": "string" - }, - "targetingTemplateId": { - "description": "Targeting template ID, used to apply preconfigured targeting information to this ad. This cannot be set while any of dayPartTargeting, geoTargeting, keyValueTargetingExpression, languageTargeting, remarketingListExpression, or technologyTargeting are set. Applicable when type is AD_SERVING_STANDARD_AD.", - "format": "int64", - "type": "string" - }, - "technologyTargeting": { - "$ref": "TechnologyTargeting", - "description": "Technology platform targeting information for this ad. This field must be left blank if the ad is using a targeting template. Applicable when type is AD_SERVING_STANDARD_AD." - }, - "type": { - "description": "Type of ad. This is a required field on insertion. Note that default ads ( AD_SERVING_DEFAULT_AD) cannot be created directly (see Creative resource).", - "enum": [ - "AD_SERVING_STANDARD_AD", - "AD_SERVING_DEFAULT_AD", - "AD_SERVING_CLICK_TRACKER", - "AD_SERVING_TRACKING", - "AD_SERVING_BRAND_SAFE_AD" - ], - "enumDescriptions": [ - "", - "", - "", - "", - "" - ], - "type": "string" - } - }, - "type": "object" - }, - "AdBlockingConfiguration": { - "description": "Campaign ad blocking settings.", - "id": "AdBlockingConfiguration", - "properties": { - "enabled": { - "description": "Whether this campaign has enabled ad blocking. When true, ad blocking is enabled for placements in the campaign, but this may be overridden by site and placement settings. When false, ad blocking is disabled for all placements under the campaign, regardless of site and placement settings.", - "type": "boolean" - } - }, - "type": "object" - }, - "AdSlot": { - "description": "Ad Slot", - "id": "AdSlot", - "properties": { - "comment": { - "description": "Comment for this ad slot.", - "type": "string" - }, - "compatibility": { - "description": "Ad slot compatibility. DISPLAY and DISPLAY_INTERSTITIAL refer to rendering either on desktop, mobile devices or in mobile apps for regular or interstitial ads respectively. APP and APP_INTERSTITIAL are for rendering in mobile apps. IN_STREAM_VIDEO refers to rendering in in-stream video ads developed with the VAST standard.", - "enum": [ - "DISPLAY", - "DISPLAY_INTERSTITIAL", - "APP", - "APP_INTERSTITIAL", - "IN_STREAM_VIDEO", - "IN_STREAM_AUDIO" - ], - "enumDescriptions": [ - "", - "", - "", - "", - "", - "" - ], - "type": "string" - }, - "height": { - "description": "Height of this ad slot.", - "format": "int64", - "type": "string" - }, - "linkedPlacementId": { - "description": "ID of the placement from an external platform that is linked to this ad slot.", - "format": "int64", - "type": "string" - }, - "name": { - "description": "Name of this ad slot.", - "type": "string" - }, - "paymentSourceType": { - "description": "Payment source type of this ad slot.", - "enum": [ - "PLANNING_PAYMENT_SOURCE_TYPE_AGENCY_PAID", - "PLANNING_PAYMENT_SOURCE_TYPE_PUBLISHER_PAID" - ], - "enumDescriptions": [ - "", - "" - ], - "type": "string" - }, - "primary": { - "description": "Primary ad slot of a roadblock inventory item.", - "type": "boolean" - }, - "width": { - "description": "Width of this ad slot.", - "format": "int64", - "type": "string" - } - }, - "type": "object" - }, - "AdsListResponse": { - "description": "Ad List Response", - "id": "AdsListResponse", - "properties": { - "ads": { - "description": "Ad collection.", - "items": { - "$ref": "Ad" - }, - "type": "array" - }, - "kind": { - "description": "Identifies what kind of resource this is. Value: the fixed string \"dfareporting#adsListResponse\".", - "type": "string" - }, - "nextPageToken": { - "description": "Pagination token to be used for the next list operation.", - "type": "string" - } - }, - "type": "object" - }, - "Advertiser": { - "description": "Contains properties of a Campaign Manager advertiser.", - "id": "Advertiser", - "properties": { - "accountId": { - "description": "Account ID of this advertiser.This is a read-only field that can be left blank.", - "format": "int64", - "type": "string" - }, - "advertiserGroupId": { - "description": "ID of the advertiser group this advertiser belongs to. You can group advertisers for reporting purposes, allowing you to see aggregated information for all advertisers in each group.", - "format": "int64", - "type": "string" - }, - "clickThroughUrlSuffix": { - "description": "Suffix added to click-through URL of ad creative associations under this advertiser. Must be less than 129 characters long.", - "type": "string" - }, - "defaultClickThroughEventTagId": { - "description": "ID of the click-through event tag to apply by default to the landing pages of this advertiser's campaigns.", - "format": "int64", - "type": "string" - }, - "defaultEmail": { - "description": "Default email address used in sender field for tag emails.", - "type": "string" - }, - "floodlightConfigurationId": { - "description": "Floodlight configuration ID of this advertiser. The floodlight configuration ID will be created automatically, so on insert this field should be left blank. This field can be set to another advertiser's floodlight configuration ID in order to share that advertiser's floodlight configuration with this advertiser, so long as: - This advertiser's original floodlight configuration is not already associated with floodlight activities or floodlight activity groups. - This advertiser's original floodlight configuration is not already shared with another advertiser. ", - "format": "int64", - "type": "string" - }, - "floodlightConfigurationIdDimensionValue": { - "$ref": "DimensionValue", - "description": "Dimension value for the ID of the floodlight configuration. This is a read-only, auto-generated field." - }, - "id": { - "description": "ID of this advertiser. This is a read-only, auto-generated field.", - "format": "int64", - "type": "string" - }, - "idDimensionValue": { - "$ref": "DimensionValue", - "description": "Dimension value for the ID of this advertiser. This is a read-only, auto-generated field." - }, - "kind": { - "description": "Identifies what kind of resource this is. Value: the fixed string \"dfareporting#advertiser\".", - "type": "string" - }, - "measurementPartnerLink": { - "$ref": "MeasurementPartnerAdvertiserLink", - "description": "Measurement partner advertiser link for tag wrapping." - }, - "name": { - "description": "Name of this advertiser. This is a required field and must be less than 256 characters long and unique among advertisers of the same account.", - "type": "string" - }, - "originalFloodlightConfigurationId": { - "description": "Original floodlight configuration before any sharing occurred. Set the floodlightConfigurationId of this advertiser to originalFloodlightConfigurationId to unshare the advertiser's current floodlight configuration. You cannot unshare an advertiser's floodlight configuration if the shared configuration has activities associated with any campaign or placement.", - "format": "int64", - "type": "string" - }, - "status": { - "description": "Status of this advertiser.", - "enum": [ - "APPROVED", - "ON_HOLD" - ], - "enumDescriptions": [ - "", - "" - ], - "type": "string" - }, - "subaccountId": { - "description": "Subaccount ID of this advertiser.This is a read-only field that can be left blank.", - "format": "int64", - "type": "string" - }, - "suspended": { - "description": "Suspension status of this advertiser.", - "type": "boolean" - } - }, - "type": "object" - }, - "AdvertiserGroup": { - "description": "Groups advertisers together so that reports can be generated for the entire group at once.", - "id": "AdvertiserGroup", - "properties": { - "accountId": { - "description": "Account ID of this advertiser group. This is a read-only field that can be left blank.", - "format": "int64", - "type": "string" - }, - "id": { - "description": "ID of this advertiser group. This is a read-only, auto-generated field.", - "format": "int64", - "type": "string" - }, - "kind": { - "description": "Identifies what kind of resource this is. Value: the fixed string \"dfareporting#advertiserGroup\".", - "type": "string" - }, - "name": { - "description": "Name of this advertiser group. This is a required field and must be less than 256 characters long and unique among advertiser groups of the same account.", - "type": "string" - } - }, - "type": "object" - }, - "AdvertiserGroupsListResponse": { - "description": "Advertiser Group List Response", - "id": "AdvertiserGroupsListResponse", - "properties": { - "advertiserGroups": { - "description": "Advertiser group collection.", - "items": { - "$ref": "AdvertiserGroup" - }, - "type": "array" - }, - "kind": { - "description": "Identifies what kind of resource this is. Value: the fixed string \"dfareporting#advertiserGroupsListResponse\".", - "type": "string" - }, - "nextPageToken": { - "description": "Pagination token to be used for the next list operation.", - "type": "string" - } - }, - "type": "object" - }, - "AdvertiserLandingPagesListResponse": { - "description": "Landing Page List Response", - "id": "AdvertiserLandingPagesListResponse", - "properties": { - "kind": { - "description": "Identifies what kind of resource this is. Value: the fixed string \"dfareporting#advertiserLandingPagesListResponse\".", - "type": "string" - }, - "landingPages": { - "description": "Landing page collection", - "items": { - "$ref": "LandingPage" - }, - "type": "array" - }, - "nextPageToken": { - "description": "Pagination token to be used for the next list operation.", - "type": "string" - } - }, - "type": "object" - }, - "AdvertisersListResponse": { - "description": "Advertiser List Response", - "id": "AdvertisersListResponse", - "properties": { - "advertisers": { - "description": "Advertiser collection.", - "items": { - "$ref": "Advertiser" - }, - "type": "array" - }, - "kind": { - "description": "Identifies what kind of resource this is. Value: the fixed string \"dfareporting#advertisersListResponse\".", - "type": "string" - }, - "nextPageToken": { - "description": "Pagination token to be used for the next list operation.", - "type": "string" - } - }, - "type": "object" - }, - "AudienceSegment": { - "description": "Audience Segment.", - "id": "AudienceSegment", - "properties": { - "allocation": { - "description": "Weight allocated to this segment. The weight assigned will be understood in proportion to the weights assigned to other segments in the same segment group. Acceptable values are 1 to 1000, inclusive.", - "format": "int32", - "type": "integer" - }, - "id": { - "description": "ID of this audience segment. This is a read-only, auto-generated field.", - "format": "int64", - "type": "string" - }, - "name": { - "description": "Name of this audience segment. This is a required field and must be less than 65 characters long.", - "type": "string" - } - }, - "type": "object" - }, - "AudienceSegmentGroup": { - "description": "Audience Segment Group.", - "id": "AudienceSegmentGroup", - "properties": { - "audienceSegments": { - "description": "Audience segments assigned to this group. The number of segments must be between 2 and 100.", - "items": { - "$ref": "AudienceSegment" - }, - "type": "array" - }, - "id": { - "description": "ID of this audience segment group. This is a read-only, auto-generated field.", - "format": "int64", - "type": "string" - }, - "name": { - "description": "Name of this audience segment group. This is a required field and must be less than 65 characters long.", - "type": "string" - } - }, - "type": "object" - }, - "Browser": { - "description": "Contains information about a browser that can be targeted by ads.", - "id": "Browser", - "properties": { - "browserVersionId": { - "description": "ID referring to this grouping of browser and version numbers. This is the ID used for targeting.", - "format": "int64", - "type": "string" - }, - "dartId": { - "description": "DART ID of this browser. This is the ID used when generating reports.", - "format": "int64", - "type": "string" - }, - "kind": { - "description": "Identifies what kind of resource this is. Value: the fixed string \"dfareporting#browser\".", - "type": "string" - }, - "majorVersion": { - "description": "Major version number (leftmost number) of this browser. For example, for Chrome 5.0.376.86 beta, this field should be set to 5. An asterisk (*) may be used to target any version number, and a question mark (?) may be used to target cases where the version number cannot be identified. For example, Chrome *.* targets any version of Chrome: 1.2, 2.5, 3.5, and so on. Chrome 3.* targets Chrome 3.1, 3.5, but not 4.0. Firefox ?.? targets cases where the ad server knows the browser is Firefox but can't tell which version it is.", - "type": "string" - }, - "minorVersion": { - "description": "Minor version number (number after first dot on left) of this browser. For example, for Chrome 5.0.375.86 beta, this field should be set to 0. An asterisk (*) may be used to target any version number, and a question mark (?) may be used to target cases where the version number cannot be identified. For example, Chrome *.* targets any version of Chrome: 1.2, 2.5, 3.5, and so on. Chrome 3.* targets Chrome 3.1, 3.5, but not 4.0. Firefox ?.? targets cases where the ad server knows the browser is Firefox but can't tell which version it is.", - "type": "string" - }, - "name": { - "description": "Name of this browser.", - "type": "string" - } - }, - "type": "object" - }, - "BrowsersListResponse": { - "description": "Browser List Response", - "id": "BrowsersListResponse", - "properties": { - "browsers": { - "description": "Browser collection.", - "items": { - "$ref": "Browser" - }, - "type": "array" - }, - "kind": { - "description": "Identifies what kind of resource this is. Value: the fixed string \"dfareporting#browsersListResponse\".", - "type": "string" - } - }, - "type": "object" - }, - "Campaign": { - "description": "Contains properties of a Campaign Manager campaign.", - "id": "Campaign", - "properties": { - "accountId": { - "description": "Account ID of this campaign. This is a read-only field that can be left blank.", - "format": "int64", - "type": "string" - }, - "adBlockingConfiguration": { - "$ref": "AdBlockingConfiguration", - "description": "Ad blocking settings for this campaign." - }, - "additionalCreativeOptimizationConfigurations": { - "description": "Additional creative optimization configurations for the campaign.", - "items": { - "$ref": "CreativeOptimizationConfiguration" - }, - "type": "array" - }, - "advertiserGroupId": { - "description": "Advertiser group ID of the associated advertiser.", - "format": "int64", - "type": "string" - }, - "advertiserId": { - "description": "Advertiser ID of this campaign. This is a required field.", - "format": "int64", - "type": "string" - }, - "advertiserIdDimensionValue": { - "$ref": "DimensionValue", - "description": "Dimension value for the advertiser ID of this campaign. This is a read-only, auto-generated field." - }, - "archived": { - "description": "Whether this campaign has been archived.", - "type": "boolean" - }, - "audienceSegmentGroups": { - "description": "Audience segment groups assigned to this campaign. Cannot have more than 300 segment groups.", - "items": { - "$ref": "AudienceSegmentGroup" - }, - "type": "array" - }, - "billingInvoiceCode": { - "description": "Billing invoice code included in the Campaign Manager client billing invoices associated with the campaign.", - "type": "string" - }, - "clickThroughUrlSuffixProperties": { - "$ref": "ClickThroughUrlSuffixProperties", - "description": "Click-through URL suffix override properties for this campaign." - }, - "comment": { - "description": "Arbitrary comments about this campaign. Must be less than 256 characters long.", - "type": "string" - }, - "createInfo": { - "$ref": "LastModifiedInfo", - "description": "Information about the creation of this campaign. This is a read-only field." - }, - "creativeGroupIds": { - "description": "List of creative group IDs that are assigned to the campaign.", - "items": { - "format": "int64", - "type": "string" - }, - "type": "array" - }, - "creativeOptimizationConfiguration": { - "$ref": "CreativeOptimizationConfiguration", - "description": "Creative optimization configuration for the campaign." - }, - "defaultClickThroughEventTagProperties": { - "$ref": "DefaultClickThroughEventTagProperties", - "description": "Click-through event tag ID override properties for this campaign." - }, - "defaultLandingPageId": { - "description": "The default landing page ID for this campaign.", - "format": "int64", - "type": "string" - }, - "endDate": { - "format": "date", - "type": "string" - }, - "eventTagOverrides": { - "description": "Overrides that can be used to activate or deactivate advertiser event tags.", - "items": { - "$ref": "EventTagOverride" - }, - "type": "array" - }, - "externalId": { - "description": "External ID for this campaign.", - "type": "string" - }, - "id": { - "description": "ID of this campaign. This is a read-only auto-generated field.", - "format": "int64", - "type": "string" - }, - "idDimensionValue": { - "$ref": "DimensionValue", - "description": "Dimension value for the ID of this campaign. This is a read-only, auto-generated field." - }, - "kind": { - "description": "Identifies what kind of resource this is. Value: the fixed string \"dfareporting#campaign\".", - "type": "string" - }, - "lastModifiedInfo": { - "$ref": "LastModifiedInfo", - "description": "Information about the most recent modification of this campaign. This is a read-only field." - }, - "measurementPartnerLink": { - "$ref": "MeasurementPartnerCampaignLink", - "description": "Measurement partner campaign link for tag wrapping." - }, - "name": { - "description": "Name of this campaign. This is a required field and must be less than 512 characters long and unique among campaigns of the same advertiser.", - "type": "string" - }, - "nielsenOcrEnabled": { - "description": "Whether Nielsen reports are enabled for this campaign.", - "type": "boolean" - }, - "startDate": { - "format": "date", - "type": "string" - }, - "subaccountId": { - "description": "Subaccount ID of this campaign. This is a read-only field that can be left blank.", - "format": "int64", - "type": "string" - }, - "traffickerEmails": { - "description": "Campaign trafficker contact emails.", - "items": { - "type": "string" - }, - "type": "array" - } - }, - "type": "object" - }, - "CampaignCreativeAssociation": { - "description": "Identifies a creative which has been associated with a given campaign.", - "id": "CampaignCreativeAssociation", - "properties": { - "creativeId": { - "description": "ID of the creative associated with the campaign. This is a required field.", - "format": "int64", - "type": "string" - }, - "kind": { - "description": "Identifies what kind of resource this is. Value: the fixed string \"dfareporting#campaignCreativeAssociation\".", - "type": "string" - } - }, - "type": "object" - }, - "CampaignCreativeAssociationsListResponse": { - "description": "Campaign Creative Association List Response", - "id": "CampaignCreativeAssociationsListResponse", - "properties": { - "campaignCreativeAssociations": { - "description": "Campaign creative association collection", - "items": { - "$ref": "CampaignCreativeAssociation" - }, - "type": "array" - }, - "kind": { - "description": "Identifies what kind of resource this is. Value: the fixed string \"dfareporting#campaignCreativeAssociationsListResponse\".", - "type": "string" - }, - "nextPageToken": { - "description": "Pagination token to be used for the next list operation.", - "type": "string" - } - }, - "type": "object" - }, - "CampaignsListResponse": { - "description": "Campaign List Response", - "id": "CampaignsListResponse", - "properties": { - "campaigns": { - "description": "Campaign collection.", - "items": { - "$ref": "Campaign" - }, - "type": "array" - }, - "kind": { - "description": "Identifies what kind of resource this is. Value: the fixed string \"dfareporting#campaignsListResponse\".", - "type": "string" - }, - "nextPageToken": { - "description": "Pagination token to be used for the next list operation.", - "type": "string" - } - }, - "type": "object" - }, - "ChangeLog": { - "description": "Describes a change that a user has made to a resource.", - "id": "ChangeLog", - "properties": { - "accountId": { - "description": "Account ID of the modified object.", - "format": "int64", - "type": "string" - }, - "action": { - "description": "Action which caused the change.", - "type": "string" - }, - "changeTime": { - "format": "date-time", - "type": "string" - }, - "fieldName": { - "description": "Field name of the object which changed.", - "type": "string" - }, - "id": { - "description": "ID of this change log.", - "format": "int64", - "type": "string" - }, - "kind": { - "description": "Identifies what kind of resource this is. Value: the fixed string \"dfareporting#changeLog\".", - "type": "string" - }, - "newValue": { - "description": "New value of the object field.", - "type": "string" - }, - "objectId": { - "description": "ID of the object of this change log. The object could be a campaign, placement, ad, or other type.", - "format": "int64", - "type": "string" - }, - "objectType": { - "description": "Object type of the change log.", - "type": "string" - }, - "oldValue": { - "description": "Old value of the object field.", - "type": "string" - }, - "subaccountId": { - "description": "Subaccount ID of the modified object.", - "format": "int64", - "type": "string" - }, - "transactionId": { - "description": "Transaction ID of this change log. When a single API call results in many changes, each change will have a separate ID in the change log but will share the same transactionId.", - "format": "int64", - "type": "string" - }, - "userProfileId": { - "description": "ID of the user who modified the object.", - "format": "int64", - "type": "string" - }, - "userProfileName": { - "description": "User profile name of the user who modified the object.", - "type": "string" - } - }, - "type": "object" - }, - "ChangeLogsListResponse": { - "description": "Change Log List Response", - "id": "ChangeLogsListResponse", - "properties": { - "changeLogs": { - "description": "Change log collection.", - "items": { - "$ref": "ChangeLog" - }, - "type": "array" - }, - "kind": { - "description": "Identifies what kind of resource this is. Value: the fixed string \"dfareporting#changeLogsListResponse\".", - "type": "string" - }, - "nextPageToken": { - "description": "Pagination token to be used for the next list operation.", - "type": "string" - } - }, - "type": "object" - }, - "ChannelGrouping": { - "description": "Represents a DfaReporting channel grouping.", - "id": "ChannelGrouping", - "properties": { - "fallbackName": { - "description": "ChannelGrouping fallback name.", - "type": "string" - }, - "kind": { - "description": "The kind of resource this is, in this case dfareporting#channelGrouping.", - "type": "string" - }, - "name": { - "description": "ChannelGrouping name.", - "type": "string" - }, - "rules": { - "description": "The rules contained within this channel grouping.", - "items": { - "$ref": "ChannelGroupingRule" - }, - "type": "array" - } - }, - "type": "object" - }, - "ChannelGroupingRule": { - "description": "Represents a DfaReporting channel grouping rule.", - "id": "ChannelGroupingRule", - "properties": { - "disjunctiveMatchStatements": { - "description": "The disjunctive match statements contained within this rule.", - "items": { - "$ref": "DisjunctiveMatchStatement" - }, - "type": "array" - }, - "kind": { - "description": "The kind of resource this is, in this case dfareporting#channelGroupingRule.", - "type": "string" - }, - "name": { - "description": "Rule name.", - "type": "string" - } - }, - "type": "object" - }, - "CitiesListResponse": { - "description": "City List Response", - "id": "CitiesListResponse", - "properties": { - "cities": { - "description": "City collection.", - "items": { - "$ref": "City" - }, - "type": "array" - }, - "kind": { - "description": "Identifies what kind of resource this is. Value: the fixed string \"dfareporting#citiesListResponse\".", - "type": "string" - } - }, - "type": "object" - }, - "City": { - "description": "Contains information about a city that can be targeted by ads.", - "id": "City", - "properties": { - "countryCode": { - "description": "Country code of the country to which this city belongs.", - "type": "string" - }, - "countryDartId": { - "description": "DART ID of the country to which this city belongs.", - "format": "int64", - "type": "string" - }, - "dartId": { - "description": "DART ID of this city. This is the ID used for targeting and generating reports.", - "format": "int64", - "type": "string" - }, - "kind": { - "description": "Identifies what kind of resource this is. Value: the fixed string \"dfareporting#city\".", - "type": "string" - }, - "metroCode": { - "description": "Metro region code of the metro region (DMA) to which this city belongs.", - "type": "string" - }, - "metroDmaId": { - "description": "ID of the metro region (DMA) to which this city belongs.", - "format": "int64", - "type": "string" - }, - "name": { - "description": "Name of this city.", - "type": "string" - }, - "regionCode": { - "description": "Region code of the region to which this city belongs.", - "type": "string" - }, - "regionDartId": { - "description": "DART ID of the region to which this city belongs.", - "format": "int64", - "type": "string" - } - }, - "type": "object" - }, - "ClickTag": { - "description": "Creative Click Tag.", - "id": "ClickTag", - "properties": { - "clickThroughUrl": { - "$ref": "CreativeClickThroughUrl", - "description": "Parameter value for the specified click tag. This field contains a click-through url." - }, - "eventName": { - "description": "Advertiser event name associated with the click tag. This field is used by DISPLAY_IMAGE_GALLERY and HTML5_BANNER creatives. Applicable to DISPLAY when the primary asset type is not HTML_IMAGE.", - "type": "string" - }, - "name": { - "description": "Parameter name for the specified click tag. For DISPLAY_IMAGE_GALLERY creative assets, this field must match the value of the creative asset's creativeAssetId.name field.", - "type": "string" - } - }, - "type": "object" - }, - "ClickThroughUrl": { - "description": "Click-through URL", - "id": "ClickThroughUrl", - "properties": { - "computedClickThroughUrl": { - "description": "Read-only convenience field representing the actual URL that will be used for this click-through. The URL is computed as follows: - If defaultLandingPage is enabled then the campaign's default landing page URL is assigned to this field. - If defaultLandingPage is not enabled and a landingPageId is specified then that landing page's URL is assigned to this field. - If neither of the above cases apply, then the customClickThroughUrl is assigned to this field. ", - "type": "string" - }, - "customClickThroughUrl": { - "description": "Custom click-through URL. Applicable if the defaultLandingPage field is set to false and the landingPageId field is left unset.", - "type": "string" - }, - "defaultLandingPage": { - "description": "Whether the campaign default landing page is used.", - "type": "boolean" - }, - "landingPageId": { - "description": "ID of the landing page for the click-through URL. Applicable if the defaultLandingPage field is set to false.", - "format": "int64", - "type": "string" - } - }, - "type": "object" - }, - "ClickThroughUrlSuffixProperties": { - "description": "Click Through URL Suffix settings.", - "id": "ClickThroughUrlSuffixProperties", - "properties": { - "clickThroughUrlSuffix": { - "description": "Click-through URL suffix to apply to all ads in this entity's scope. Must be less than 128 characters long.", - "type": "string" - }, - "overrideInheritedSuffix": { - "description": "Whether this entity should override the inherited click-through URL suffix with its own defined value.", - "type": "boolean" - } - }, - "type": "object" - }, - "CompanionClickThroughOverride": { - "description": "Companion Click-through override.", - "id": "CompanionClickThroughOverride", - "properties": { - "clickThroughUrl": { - "$ref": "ClickThroughUrl", - "description": "Click-through URL of this companion click-through override." - }, - "creativeId": { - "description": "ID of the creative for this companion click-through override.", - "format": "int64", - "type": "string" - } - }, - "type": "object" - }, - "CompanionSetting": { - "description": "Companion Settings", - "id": "CompanionSetting", - "properties": { - "companionsDisabled": { - "description": "Whether companions are disabled for this placement.", - "type": "boolean" - }, - "enabledSizes": { - "description": "Allowlist of companion sizes to be served to this placement. Set this list to null or empty to serve all companion sizes.", - "items": { - "$ref": "Size" - }, - "type": "array" - }, - "imageOnly": { - "description": "Whether to serve only static images as companions.", - "type": "boolean" - }, - "kind": { - "description": "Identifies what kind of resource this is. Value: the fixed string \"dfareporting#companionSetting\".", - "type": "string" - } - }, - "type": "object" - }, - "CompatibleFields": { - "description": "Represents a response to the queryCompatibleFields method.", - "id": "CompatibleFields", - "properties": { - "crossDimensionReachReportCompatibleFields": { - "$ref": "CrossDimensionReachReportCompatibleFields", - "description": "Contains items that are compatible to be selected for a report of type \"CROSS_DIMENSION_REACH\"." - }, - "floodlightReportCompatibleFields": { - "$ref": "FloodlightReportCompatibleFields", - "description": "Contains items that are compatible to be selected for a report of type \"FLOODLIGHT\"." - }, - "kind": { - "description": "The kind of resource this is, in this case dfareporting#compatibleFields.", - "type": "string" - }, - "pathAttributionReportCompatibleFields": { - "$ref": "PathReportCompatibleFields", - "description": "Contains items that are compatible to be selected for a report of type \"PATH_ATTRIBUTION\"." - }, - "pathReportCompatibleFields": { - "$ref": "PathReportCompatibleFields", - "description": "Contains items that are compatible to be selected for a report of type \"PATH\"." - }, - "pathToConversionReportCompatibleFields": { - "$ref": "PathToConversionReportCompatibleFields", - "description": "Contains items that are compatible to be selected for a report of type \"PATH_TO_CONVERSION\"." - }, - "reachReportCompatibleFields": { - "$ref": "ReachReportCompatibleFields", - "description": "Contains items that are compatible to be selected for a report of type \"REACH\"." - }, - "reportCompatibleFields": { - "$ref": "ReportCompatibleFields", - "description": "Contains items that are compatible to be selected for a report of type \"STANDARD\"." - } - }, - "type": "object" - }, - "ConnectionType": { - "description": "Contains information about an internet connection type that can be targeted by ads. Clients can use the connection type to target mobile vs. broadband users.", - "id": "ConnectionType", - "properties": { - "id": { - "description": "ID of this connection type.", - "format": "int64", - "type": "string" - }, - "kind": { - "description": "Identifies what kind of resource this is. Value: the fixed string \"dfareporting#connectionType\".", - "type": "string" - }, - "name": { - "description": "Name of this connection type.", - "type": "string" - } - }, - "type": "object" - }, - "ConnectionTypesListResponse": { - "description": "Connection Type List Response", - "id": "ConnectionTypesListResponse", - "properties": { - "connectionTypes": { - "description": "Collection of connection types such as broadband and mobile.", - "items": { - "$ref": "ConnectionType" - }, - "type": "array" - }, - "kind": { - "description": "Identifies what kind of resource this is. Value: the fixed string \"dfareporting#connectionTypesListResponse\".", - "type": "string" - } - }, - "type": "object" - }, - "ContentCategoriesListResponse": { - "description": "Content Category List Response", - "id": "ContentCategoriesListResponse", - "properties": { - "contentCategories": { - "description": "Content category collection.", - "items": { - "$ref": "ContentCategory" - }, - "type": "array" - }, - "kind": { - "description": "Identifies what kind of resource this is. Value: the fixed string \"dfareporting#contentCategoriesListResponse\".", - "type": "string" - }, - "nextPageToken": { - "description": "Pagination token to be used for the next list operation.", - "type": "string" - } - }, - "type": "object" - }, - "ContentCategory": { - "description": "Organizes placements according to the contents of their associated webpages.", - "id": "ContentCategory", - "properties": { - "accountId": { - "description": "Account ID of this content category. This is a read-only field that can be left blank.", - "format": "int64", - "type": "string" - }, - "id": { - "description": "ID of this content category. This is a read-only, auto-generated field.", - "format": "int64", - "type": "string" - }, - "kind": { - "description": "Identifies what kind of resource this is. Value: the fixed string \"dfareporting#contentCategory\".", - "type": "string" - }, - "name": { - "description": "Name of this content category. This is a required field and must be less than 256 characters long and unique among content categories of the same account.", - "type": "string" - } - }, - "type": "object" - }, - "Conversion": { - "description": "A Conversion represents when a user successfully performs a desired action after seeing an ad.", - "id": "Conversion", - "properties": { - "childDirectedTreatment": { - "description": "Whether this particular request may come from a user under the age of 13, under COPPA compliance.", - "type": "boolean" - }, - "customVariables": { - "description": "Custom floodlight variables. This field may only be used when calling batchinsert; it is not supported by batchupdate.", - "items": { - "$ref": "CustomFloodlightVariable" - }, - "type": "array" - }, - "dclid": { - "description": "The display click ID. This field is mutually exclusive with encryptedUserId, encryptedUserIdCandidates[], matchId, mobileDeviceId and gclid. This or encryptedUserId or encryptedUserIdCandidates[] or matchId or mobileDeviceId or gclid is a required field.", - "type": "string" - }, - "encryptedUserId": { - "description": "The alphanumeric encrypted user ID. When set, encryptionInfo should also be specified. This field is mutually exclusive with encryptedUserIdCandidates[], matchId, mobileDeviceId, gclid and dclid. This or encryptedUserIdCandidates[] or matchId or mobileDeviceId or gclid or dclid is a required field.", - "type": "string" - }, - "encryptedUserIdCandidates": { - "description": "A list of the alphanumeric encrypted user IDs. Any user ID with exposure prior to the conversion timestamp will be used in the inserted conversion. If no such user ID is found then the conversion will be rejected with INVALID_ARGUMENT error. When set, encryptionInfo should also be specified. This field may only be used when calling batchinsert; it is not supported by batchupdate. This field is mutually exclusive with encryptedUserId, matchId, mobileDeviceId, gclid and dclid. This or encryptedUserId or matchId or mobileDeviceId or gclid or dclid is a required field.", - "items": { - "type": "string" - }, - "type": "array" - }, - "floodlightActivityId": { - "description": "Floodlight Activity ID of this conversion. This is a required field.", - "format": "int64", - "type": "string" - }, - "floodlightConfigurationId": { - "description": "Floodlight Configuration ID of this conversion. This is a required field.", - "format": "int64", - "type": "string" - }, - "gclid": { - "description": "The Google click ID. This field is mutually exclusive with encryptedUserId, encryptedUserIdCandidates[], matchId, mobileDeviceId and dclid. This or encryptedUserId or encryptedUserIdCandidates[] or matchId or mobileDeviceId or dclid is a required field.", - "type": "string" - }, - "kind": { - "description": "Identifies what kind of resource this is. Value: the fixed string \"dfareporting#conversion\".", - "type": "string" - }, - "limitAdTracking": { - "description": "Whether Limit Ad Tracking is enabled. When set to true, the conversion will be used for reporting but not targeting. This will prevent remarketing.", - "type": "boolean" - }, - "matchId": { - "description": "The match ID field. A match ID is your own first-party identifier that has been synced with Google using the match ID feature in Floodlight. This field is mutually exclusive with encryptedUserId, encryptedUserIdCandidates[],mobileDeviceId, gclid and dclid. This or encryptedUserId or encryptedUserIdCandidates[] or mobileDeviceId or gclid or dclid is a required field.", - "type": "string" - }, - "mobileDeviceId": { - "description": "The mobile device ID. This field is mutually exclusive with encryptedUserId, encryptedUserIdCandidates[], matchId, gclid and dclid. This or encryptedUserId or encryptedUserIdCandidates[] or matchId or gclid or dclid is a required field.", - "type": "string" - }, - "nonPersonalizedAd": { - "description": "Whether the conversion was for a non personalized ad.", - "type": "boolean" - }, - "ordinal": { - "description": "The ordinal of the conversion. Use this field to control how conversions of the same user and day are de-duplicated. This is a required field.", - "type": "string" - }, - "quantity": { - "description": "The quantity of the conversion.", - "format": "int64", - "type": "string" - }, - "timestampMicros": { - "description": "The timestamp of conversion, in Unix epoch micros. This is a required field.", - "format": "int64", - "type": "string" - }, - "treatmentForUnderage": { - "description": "Whether this particular request may come from a user under the age of 16 (may differ by country), under compliance with the European Union's General Data Protection Regulation (GDPR).", - "type": "boolean" - }, - "value": { - "description": "The value of the conversion.", - "format": "double", - "type": "number" - } - }, - "type": "object" - }, - "ConversionError": { - "description": "The error code and description for a conversion that failed to insert or update.", - "id": "ConversionError", - "properties": { - "code": { - "description": "The error code.", - "enum": [ - "INVALID_ARGUMENT", - "INTERNAL", - "PERMISSION_DENIED", - "NOT_FOUND" - ], - "enumDescriptions": [ - "", - "", - "", - "" - ], - "type": "string" - }, - "kind": { - "description": "Identifies what kind of resource this is. Value: the fixed string \"dfareporting#conversionError\".", - "type": "string" - }, - "message": { - "description": "A description of the error.", - "type": "string" - } - }, - "type": "object" - }, - "ConversionStatus": { - "description": "The original conversion that was inserted or updated and whether there were any errors.", - "id": "ConversionStatus", - "properties": { - "conversion": { - "$ref": "Conversion", - "description": "The original conversion that was inserted or updated." - }, - "errors": { - "description": "A list of errors related to this conversion.", - "items": { - "$ref": "ConversionError" - }, - "type": "array" - }, - "kind": { - "description": "Identifies what kind of resource this is. Value: the fixed string \"dfareporting#conversionStatus\".", - "type": "string" - } - }, - "type": "object" - }, - "ConversionsBatchInsertRequest": { - "description": "Insert Conversions Request.", - "id": "ConversionsBatchInsertRequest", - "properties": { - "conversions": { - "description": "The set of conversions to insert.", - "items": { - "$ref": "Conversion" - }, - "type": "array" - }, - "encryptionInfo": { - "$ref": "EncryptionInfo", - "description": "Describes how encryptedUserId or encryptedUserIdCandidates[] is encrypted. This is a required field if encryptedUserId or encryptedUserIdCandidates[] is used." - }, - "kind": { - "description": "Identifies what kind of resource this is. Value: the fixed string \"dfareporting#conversionsBatchInsertRequest\".", - "type": "string" - } - }, - "type": "object" - }, - "ConversionsBatchInsertResponse": { - "description": "Insert Conversions Response.", - "id": "ConversionsBatchInsertResponse", - "properties": { - "hasFailures": { - "description": "Indicates that some or all conversions failed to insert.", - "type": "boolean" - }, - "kind": { - "description": "Identifies what kind of resource this is. Value: the fixed string \"dfareporting#conversionsBatchInsertResponse\".", - "type": "string" - }, - "status": { - "description": "The insert status of each conversion. Statuses are returned in the same order that conversions are inserted.", - "items": { - "$ref": "ConversionStatus" - }, - "type": "array" - } - }, - "type": "object" - }, - "ConversionsBatchUpdateRequest": { - "description": "Update Conversions Request.", - "id": "ConversionsBatchUpdateRequest", - "properties": { - "conversions": { - "description": "The set of conversions to update.", - "items": { - "$ref": "Conversion" - }, - "type": "array" - }, - "encryptionInfo": { - "$ref": "EncryptionInfo", - "description": "Describes how encryptedUserId is encrypted. This is a required field if encryptedUserId is used." - }, - "kind": { - "description": "Identifies what kind of resource this is. Value: the fixed string \"dfareporting#conversionsBatchUpdateRequest\".", - "type": "string" - } - }, - "type": "object" - }, - "ConversionsBatchUpdateResponse": { - "description": "Update Conversions Response.", - "id": "ConversionsBatchUpdateResponse", - "properties": { - "hasFailures": { - "description": "Indicates that some or all conversions failed to update.", - "type": "boolean" - }, - "kind": { - "description": "Identifies what kind of resource this is. Value: the fixed string \"dfareporting#conversionsBatchUpdateResponse\".", - "type": "string" - }, - "status": { - "description": "The update status of each conversion. Statuses are returned in the same order that conversions are updated.", - "items": { - "$ref": "ConversionStatus" - }, - "type": "array" - } - }, - "type": "object" - }, - "CountriesListResponse": { - "description": "Country List Response", - "id": "CountriesListResponse", - "properties": { - "countries": { - "description": "Country collection.", - "items": { - "$ref": "Country" - }, - "type": "array" - }, - "kind": { - "description": "Identifies what kind of resource this is. Value: the fixed string \"dfareporting#countriesListResponse\".", - "type": "string" - } - }, - "type": "object" - }, - "Country": { - "description": "Contains information about a country that can be targeted by ads.", - "id": "Country", - "properties": { - "countryCode": { - "description": "Country code.", - "type": "string" - }, - "dartId": { - "description": "DART ID of this country. This is the ID used for targeting and generating reports.", - "format": "int64", - "type": "string" - }, - "kind": { - "description": "Identifies what kind of resource this is. Value: the fixed string \"dfareporting#country\".", - "type": "string" - }, - "name": { - "description": "Name of this country.", - "type": "string" - }, - "sslEnabled": { - "description": "Whether ad serving supports secure servers in this country.", - "type": "boolean" - } - }, - "type": "object" - }, - "Creative": { - "description": "Contains properties of a Creative.", - "id": "Creative", - "properties": { - "accountId": { - "description": "Account ID of this creative. This field, if left unset, will be auto-generated for both insert and update operations. Applicable to all creative types.", - "format": "int64", - "type": "string" - }, - "active": { - "description": "Whether the creative is active. Applicable to all creative types.", - "type": "boolean" - }, - "adParameters": { - "description": "Ad parameters user for VPAID creative. This is a read-only field. Applicable to the following creative types: all VPAID.", - "type": "string" - }, - "adTagKeys": { - "description": "Keywords for a Rich Media creative. Keywords let you customize the creative settings of a Rich Media ad running on your site without having to contact the advertiser. You can use keywords to dynamically change the look or functionality of a creative. Applicable to the following creative types: all RICH_MEDIA, and all VPAID.", - "items": { - "type": "string" - }, - "type": "array" - }, - "additionalSizes": { - "description": "Additional sizes associated with a responsive creative. When inserting or updating a creative either the size ID field or size width and height fields can be used. Applicable to DISPLAY creatives when the primary asset type is HTML_IMAGE.", - "items": { - "$ref": "Size" - }, - "type": "array" - }, - "advertiserId": { - "description": "Advertiser ID of this creative. This is a required field. Applicable to all creative types.", - "format": "int64", - "type": "string" - }, - "allowScriptAccess": { - "description": "Whether script access is allowed for this creative. This is a read-only and deprecated field which will automatically be set to true on update. Applicable to the following creative types: FLASH_INPAGE.", - "type": "boolean" - }, - "archived": { - "description": "Whether the creative is archived. Applicable to all creative types.", - "type": "boolean" - }, - "artworkType": { - "description": "Type of artwork used for the creative. This is a read-only field. Applicable to the following creative types: all RICH_MEDIA, and all VPAID.", - "enum": [ - "ARTWORK_TYPE_FLASH", - "ARTWORK_TYPE_HTML5", - "ARTWORK_TYPE_MIXED", - "ARTWORK_TYPE_IMAGE" - ], - "enumDescriptions": [ - "", - "", - "", - "" - ], - "type": "string" - }, - "authoringSource": { - "description": "Source application where creative was authored. Presently, only DBM authored creatives will have this field set. Applicable to all creative types.", - "enum": [ - "CREATIVE_AUTHORING_SOURCE_DCM", - "CREATIVE_AUTHORING_SOURCE_DBM", - "CREATIVE_AUTHORING_SOURCE_STUDIO", - "CREATIVE_AUTHORING_SOURCE_GWD", - "CREATIVE_AUTHORING_SOURCE_ACS" - ], - "enumDescriptions": [ - "", - "", - "", - "", - "" - ], - "type": "string" - }, - "authoringTool": { - "description": "Authoring tool for HTML5 banner creatives. This is a read-only field. Applicable to the following creative types: HTML5_BANNER.", - "enum": [ - "NINJA", - "SWIFFY" - ], - "enumDescriptions": [ - "", - "" - ], - "type": "string" - }, - "autoAdvanceImages": { - "description": "Whether images are automatically advanced for image gallery creatives. Applicable to the following creative types: DISPLAY_IMAGE_GALLERY.", - "type": "boolean" - }, - "backgroundColor": { - "description": "The 6-character HTML color code, beginning with #, for the background of the window area where the Flash file is displayed. Default is white. Applicable to the following creative types: FLASH_INPAGE.", - "type": "string" - }, - "backupImageClickThroughUrl": { - "$ref": "CreativeClickThroughUrl", - "description": "Click-through URL for backup image. Applicable to ENHANCED_BANNER when the primary asset type is not HTML_IMAGE." - }, - "backupImageFeatures": { - "description": "List of feature dependencies that will cause a backup image to be served if the browser that serves the ad does not support them. Feature dependencies are features that a browser must be able to support in order to render your HTML5 creative asset correctly. This field is initially auto-generated to contain all features detected by Campaign Manager for all the assets of this creative and can then be modified by the client. To reset this field, copy over all the creativeAssets' detected features. Applicable to the following creative types: HTML5_BANNER. Applicable to DISPLAY when the primary asset type is not HTML_IMAGE.", - "items": { - "enum": [ - "CSS_FONT_FACE", - "CSS_BACKGROUND_SIZE", - "CSS_BORDER_IMAGE", - "CSS_BORDER_RADIUS", - "CSS_BOX_SHADOW", - "CSS_FLEX_BOX", - "CSS_HSLA", - "CSS_MULTIPLE_BGS", - "CSS_OPACITY", - "CSS_RGBA", - "CSS_TEXT_SHADOW", - "CSS_ANIMATIONS", - "CSS_COLUMNS", - "CSS_GENERATED_CONTENT", - "CSS_GRADIENTS", - "CSS_REFLECTIONS", - "CSS_TRANSFORMS", - "CSS_TRANSFORMS3D", - "CSS_TRANSITIONS", - "APPLICATION_CACHE", - "CANVAS", - "CANVAS_TEXT", - "DRAG_AND_DROP", - "HASH_CHANGE", - "HISTORY", - "AUDIO", - "VIDEO", - "INDEXED_DB", - "INPUT_ATTR_AUTOCOMPLETE", - "INPUT_ATTR_AUTOFOCUS", - "INPUT_ATTR_LIST", - "INPUT_ATTR_PLACEHOLDER", - "INPUT_ATTR_MAX", - "INPUT_ATTR_MIN", - "INPUT_ATTR_MULTIPLE", - "INPUT_ATTR_PATTERN", - "INPUT_ATTR_REQUIRED", - "INPUT_ATTR_STEP", - "INPUT_TYPE_SEARCH", - "INPUT_TYPE_TEL", - "INPUT_TYPE_URL", - "INPUT_TYPE_EMAIL", - "INPUT_TYPE_DATETIME", - "INPUT_TYPE_DATE", - "INPUT_TYPE_MONTH", - "INPUT_TYPE_WEEK", - "INPUT_TYPE_TIME", - "INPUT_TYPE_DATETIME_LOCAL", - "INPUT_TYPE_NUMBER", - "INPUT_TYPE_RANGE", - "INPUT_TYPE_COLOR", - "LOCAL_STORAGE", - "POST_MESSAGE", - "SESSION_STORAGE", - "WEB_SOCKETS", - "WEB_SQL_DATABASE", - "WEB_WORKERS", - "GEO_LOCATION", - "INLINE_SVG", - "SMIL", - "SVG_HREF", - "SVG_CLIP_PATHS", - "TOUCH", - "WEBGL", - "SVG_FILTERS", - "SVG_FE_IMAGE" - ], - "enumDescriptions": [ - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "" - ], - "type": "string" - }, - "type": "array" - }, - "backupImageReportingLabel": { - "description": "Reporting label used for HTML5 banner backup image. Applicable to the following creative types: DISPLAY when the primary asset type is not HTML_IMAGE.", - "type": "string" - }, - "backupImageTargetWindow": { - "$ref": "TargetWindow", - "description": "Target window for backup image. Applicable to the following creative types: FLASH_INPAGE and HTML5_BANNER. Applicable to DISPLAY when the primary asset type is not HTML_IMAGE." - }, - "clickTags": { - "description": "Click tags of the creative. For DISPLAY, FLASH_INPAGE, and HTML5_BANNER creatives, this is a subset of detected click tags for the assets associated with this creative. After creating a flash asset, detected click tags will be returned in the creativeAssetMetadata. When inserting the creative, populate the creative clickTags field using the creativeAssetMetadata.clickTags field. For DISPLAY_IMAGE_GALLERY creatives, there should be exactly one entry in this list for each image creative asset. A click tag is matched with a corresponding creative asset by matching the clickTag.name field with the creativeAsset.assetIdentifier.name field. Applicable to the following creative types: DISPLAY_IMAGE_GALLERY, FLASH_INPAGE, HTML5_BANNER. Applicable to DISPLAY when the primary asset type is not HTML_IMAGE.", - "items": { - "$ref": "ClickTag" - }, - "type": "array" - }, - "commercialId": { - "description": "Industry standard ID assigned to creative for reach and frequency. Applicable to INSTREAM_VIDEO_REDIRECT creatives.", - "type": "string" - }, - "companionCreatives": { - "description": "List of companion creatives assigned to an in-Stream video creative. Acceptable values include IDs of existing flash and image creatives. Applicable to the following creative types: all VPAID, all INSTREAM_AUDIO and all INSTREAM_VIDEO with dynamicAssetSelection set to false.", - "items": { - "format": "int64", - "type": "string" - }, - "type": "array" - }, - "compatibility": { - "description": "Compatibilities associated with this creative. This is a read-only field. DISPLAY and DISPLAY_INTERSTITIAL refer to rendering either on desktop or on mobile devices or in mobile apps for regular or interstitial ads, respectively. APP and APP_INTERSTITIAL are for rendering in mobile apps. Only pre-existing creatives may have these compatibilities since new creatives will either be assigned DISPLAY or DISPLAY_INTERSTITIAL instead. IN_STREAM_VIDEO refers to rendering in in-stream video ads developed with the VAST standard. IN_STREAM_AUDIO refers to rendering in in-stream audio ads developed with the VAST standard. Applicable to all creative types. Acceptable values are: - \"APP\" - \"APP_INTERSTITIAL\" - \"IN_STREAM_VIDEO\" - \"IN_STREAM_AUDIO\" - \"DISPLAY\" - \"DISPLAY_INTERSTITIAL\" ", - "items": { - "enum": [ - "DISPLAY", - "DISPLAY_INTERSTITIAL", - "APP", - "APP_INTERSTITIAL", - "IN_STREAM_VIDEO", - "IN_STREAM_AUDIO" - ], - "enumDescriptions": [ - "", - "", - "", - "", - "", - "" - ], - "type": "string" - }, - "type": "array" - }, - "convertFlashToHtml5": { - "description": "Whether Flash assets associated with the creative need to be automatically converted to HTML5. This flag is enabled by default and users can choose to disable it if they don't want the system to generate and use HTML5 asset for this creative. Applicable to the following creative type: FLASH_INPAGE. Applicable to DISPLAY when the primary asset type is not HTML_IMAGE.", - "type": "boolean" - }, - "counterCustomEvents": { - "description": "List of counter events configured for the creative. For DISPLAY_IMAGE_GALLERY creatives, these are read-only and auto-generated from clickTags. Applicable to the following creative types: DISPLAY_IMAGE_GALLERY, all RICH_MEDIA, and all VPAID.", - "items": { - "$ref": "CreativeCustomEvent" - }, - "type": "array" - }, - "creativeAssetSelection": { - "$ref": "CreativeAssetSelection", - "description": "Required if dynamicAssetSelection is true." - }, - "creativeAssets": { - "description": "Assets associated with a creative. Applicable to all but the following creative types: INTERNAL_REDIRECT, INTERSTITIAL_INTERNAL_REDIRECT, and REDIRECT", - "items": { - "$ref": "CreativeAsset" - }, - "type": "array" - }, - "creativeFieldAssignments": { - "description": "Creative field assignments for this creative. Applicable to all creative types.", - "items": { - "$ref": "CreativeFieldAssignment" - }, - "type": "array" - }, - "customKeyValues": { - "description": "Custom key-values for a Rich Media creative. Key-values let you customize the creative settings of a Rich Media ad running on your site without having to contact the advertiser. You can use key-values to dynamically change the look or functionality of a creative. Applicable to the following creative types: all RICH_MEDIA, and all VPAID.", - "items": { - "type": "string" - }, - "type": "array" - }, - "dynamicAssetSelection": { - "description": "Set this to true to enable the use of rules to target individual assets in this creative. When set to true creativeAssetSelection must be set. This also controls asset-level companions. When this is true, companion creatives should be assigned to creative assets. Learn more. Applicable to INSTREAM_VIDEO creatives.", - "type": "boolean" - }, - "exitCustomEvents": { - "description": "List of exit events configured for the creative. For DISPLAY and DISPLAY_IMAGE_GALLERY creatives, these are read-only and auto-generated from clickTags, For DISPLAY, an event is also created from the backupImageReportingLabel. Applicable to the following creative types: DISPLAY_IMAGE_GALLERY, all RICH_MEDIA, and all VPAID. Applicable to DISPLAY when the primary asset type is not HTML_IMAGE.", - "items": { - "$ref": "CreativeCustomEvent" - }, - "type": "array" - }, - "fsCommand": { - "$ref": "FsCommand", - "description": "OpenWindow FSCommand of this creative. This lets the SWF file communicate with either Flash Player or the program hosting Flash Player, such as a web browser. This is only triggered if allowScriptAccess field is true. Applicable to the following creative types: FLASH_INPAGE." - }, - "htmlCode": { - "description": "HTML code for the creative. This is a required field when applicable. This field is ignored if htmlCodeLocked is true. Applicable to the following creative types: all CUSTOM, FLASH_INPAGE, and HTML5_BANNER, and all RICH_MEDIA.", - "type": "string" - }, - "htmlCodeLocked": { - "description": "Whether HTML code is generated by Campaign Manager or manually entered. Set to true to ignore changes to htmlCode. Applicable to the following creative types: FLASH_INPAGE and HTML5_BANNER.", - "type": "boolean" - }, - "id": { - "description": "ID of this creative. This is a read-only, auto-generated field. Applicable to all creative types.", - "format": "int64", - "type": "string" - }, - "idDimensionValue": { - "$ref": "DimensionValue", - "description": "Dimension value for the ID of this creative. This is a read-only field. Applicable to all creative types." - }, - "kind": { - "description": "Identifies what kind of resource this is. Value: the fixed string \"dfareporting#creative\".", - "type": "string" - }, - "lastModifiedInfo": { - "$ref": "LastModifiedInfo", - "description": "Creative last modification information. This is a read-only field. Applicable to all creative types." - }, - "latestTraffickedCreativeId": { - "description": "Latest Studio trafficked creative ID associated with rich media and VPAID creatives. This is a read-only field. Applicable to the following creative types: all RICH_MEDIA, and all VPAID.", - "format": "int64", - "type": "string" - }, - "mediaDescription": { - "description": "Description of the audio or video ad. Applicable to the following creative types: all INSTREAM_VIDEO, INSTREAM_AUDIO, and all VPAID.", - "type": "string" - }, - "mediaDuration": { - "description": "Creative audio or video duration in seconds. This is a read-only field. Applicable to the following creative types: INSTREAM_VIDEO, INSTREAM_AUDIO, all RICH_MEDIA, and all VPAID.", - "format": "float", - "type": "number" - }, - "name": { - "description": "Name of the creative. This is a required field and must be less than 256 characters long. Applicable to all creative types.", - "type": "string" - }, - "obaIcon": { - "$ref": "ObaIcon", - "description": "Online behavioral advertising icon to be added to the creative. Applicable to the following creative types: all INSTREAM_VIDEO." - }, - "overrideCss": { - "description": "Override CSS value for rich media creatives. Applicable to the following creative types: all RICH_MEDIA.", - "type": "string" - }, - "progressOffset": { - "$ref": "VideoOffset", - "description": "Amount of time to play the video before counting a view. Applicable to the following creative types: all INSTREAM_VIDEO." - }, - "redirectUrl": { - "description": "URL of hosted image or hosted video or another ad tag. For INSTREAM_VIDEO_REDIRECT creatives this is the in-stream video redirect URL. The standard for a VAST (Video Ad Serving Template) ad response allows for a redirect link to another VAST 2.0 or 3.0 call. This is a required field when applicable. Applicable to the following creative types: DISPLAY_REDIRECT, INTERNAL_REDIRECT, INTERSTITIAL_INTERNAL_REDIRECT, and INSTREAM_VIDEO_REDIRECT", - "type": "string" - }, - "renderingId": { - "description": "ID of current rendering version. This is a read-only field. Applicable to all creative types.", - "format": "int64", - "type": "string" - }, - "renderingIdDimensionValue": { - "$ref": "DimensionValue", - "description": "Dimension value for the rendering ID of this creative. This is a read-only field. Applicable to all creative types." - }, - "requiredFlashPluginVersion": { - "description": "The minimum required Flash plugin version for this creative. For example, 11.2.202.235. This is a read-only field. Applicable to the following creative types: all RICH_MEDIA, and all VPAID.", - "type": "string" - }, - "requiredFlashVersion": { - "description": "The internal Flash version for this creative as calculated by Studio. This is a read-only field. Applicable to the following creative types: FLASH_INPAGE all RICH_MEDIA, and all VPAID. Applicable to DISPLAY when the primary asset type is not HTML_IMAGE.", - "format": "int32", - "type": "integer" - }, - "size": { - "$ref": "Size", - "description": "Size associated with this creative. When inserting or updating a creative either the size ID field or size width and height fields can be used. This is a required field when applicable; however for IMAGE, FLASH_INPAGE creatives, and for DISPLAY creatives with a primary asset of type HTML_IMAGE, if left blank, this field will be automatically set using the actual size of the associated image assets. Applicable to the following creative types: DISPLAY, DISPLAY_IMAGE_GALLERY, FLASH_INPAGE, HTML5_BANNER, IMAGE, and all RICH_MEDIA." - }, - "skipOffset": { - "$ref": "VideoOffset", - "description": "Amount of time to play the video before the skip button appears. Applicable to the following creative types: all INSTREAM_VIDEO." - }, - "skippable": { - "description": "Whether the user can choose to skip the creative. Applicable to the following creative types: all INSTREAM_VIDEO and all VPAID.", - "type": "boolean" - }, - "sslCompliant": { - "description": "Whether the creative is SSL-compliant. This is a read-only field. Applicable to all creative types.", - "type": "boolean" - }, - "sslOverride": { - "description": "Whether creative should be treated as SSL compliant even if the system scan shows it's not. Applicable to all creative types.", - "type": "boolean" - }, - "studioAdvertiserId": { - "description": "Studio advertiser ID associated with rich media and VPAID creatives. This is a read-only field. Applicable to the following creative types: all RICH_MEDIA, and all VPAID.", - "format": "int64", - "type": "string" - }, - "studioCreativeId": { - "description": "Studio creative ID associated with rich media and VPAID creatives. This is a read-only field. Applicable to the following creative types: all RICH_MEDIA, and all VPAID.", - "format": "int64", - "type": "string" - }, - "studioTraffickedCreativeId": { - "description": "Studio trafficked creative ID associated with rich media and VPAID creatives. This is a read-only field. Applicable to the following creative types: all RICH_MEDIA, and all VPAID.", - "format": "int64", - "type": "string" - }, - "subaccountId": { - "description": "Subaccount ID of this creative. This field, if left unset, will be auto-generated for both insert and update operations. Applicable to all creative types.", - "format": "int64", - "type": "string" - }, - "thirdPartyBackupImageImpressionsUrl": { - "description": "Third-party URL used to record backup image impressions. Applicable to the following creative types: all RICH_MEDIA.", - "type": "string" - }, - "thirdPartyRichMediaImpressionsUrl": { - "description": "Third-party URL used to record rich media impressions. Applicable to the following creative types: all RICH_MEDIA.", - "type": "string" - }, - "thirdPartyUrls": { - "description": "Third-party URLs for tracking in-stream creative events. Applicable to the following creative types: all INSTREAM_VIDEO, all INSTREAM_AUDIO, and all VPAID.", - "items": { - "$ref": "ThirdPartyTrackingUrl" - }, - "type": "array" - }, - "timerCustomEvents": { - "description": "List of timer events configured for the creative. For DISPLAY_IMAGE_GALLERY creatives, these are read-only and auto-generated from clickTags. Applicable to the following creative types: DISPLAY_IMAGE_GALLERY, all RICH_MEDIA, and all VPAID. Applicable to DISPLAY when the primary asset is not HTML_IMAGE.", - "items": { - "$ref": "CreativeCustomEvent" - }, - "type": "array" - }, - "totalFileSize": { - "description": "Combined size of all creative assets. This is a read-only field. Applicable to the following creative types: all RICH_MEDIA, and all VPAID.", - "format": "int64", - "type": "string" - }, - "type": { - "description": "Type of this creative. This is a required field. Applicable to all creative types. *Note:* FLASH_INPAGE, HTML5_BANNER, and IMAGE are only used for existing creatives. New creatives should use DISPLAY as a replacement for these types.", - "enum": [ - "IMAGE", - "DISPLAY_REDIRECT", - "CUSTOM_DISPLAY", - "INTERNAL_REDIRECT", - "CUSTOM_DISPLAY_INTERSTITIAL", - "INTERSTITIAL_INTERNAL_REDIRECT", - "TRACKING_TEXT", - "RICH_MEDIA_DISPLAY_BANNER", - "RICH_MEDIA_INPAGE_FLOATING", - "RICH_MEDIA_IM_EXPAND", - "RICH_MEDIA_DISPLAY_EXPANDING", - "RICH_MEDIA_DISPLAY_INTERSTITIAL", - "RICH_MEDIA_DISPLAY_MULTI_FLOATING_INTERSTITIAL", - "RICH_MEDIA_MOBILE_IN_APP", - "FLASH_INPAGE", - "INSTREAM_VIDEO", - "VPAID_LINEAR_VIDEO", - "VPAID_NON_LINEAR_VIDEO", - "INSTREAM_VIDEO_REDIRECT", - "RICH_MEDIA_PEEL_DOWN", - "HTML5_BANNER", - "DISPLAY", - "DISPLAY_IMAGE_GALLERY", - "BRAND_SAFE_DEFAULT_INSTREAM_VIDEO", - "INSTREAM_AUDIO" - ], - "enumDescriptions": [ - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "" - ], - "type": "string" - }, - "universalAdId": { - "$ref": "UniversalAdId", - "description": "A Universal Ad ID as per the VAST 4.0 spec. Applicable to the following creative types: INSTREAM_AUDIO and INSTREAM_VIDEO and VPAID." - }, - "version": { - "description": "The version number helps you keep track of multiple versions of your creative in your reports. The version number will always be auto-generated during insert operations to start at 1. For tracking creatives the version cannot be incremented and will always remain at 1. For all other creative types the version can be incremented only by 1 during update operations. In addition, the version will be automatically incremented by 1 when undergoing Rich Media creative merging. Applicable to all creative types.", - "format": "int32", - "type": "integer" - } - }, - "type": "object" - }, - "CreativeAsset": { - "description": "Creative Asset.", - "id": "CreativeAsset", - "properties": { - "actionScript3": { - "description": "Whether ActionScript3 is enabled for the flash asset. This is a read-only field. Applicable to the following creative type: FLASH_INPAGE. Applicable to DISPLAY when the primary asset type is not HTML_IMAGE.", - "type": "boolean" - }, - "active": { - "description": "Whether the video or audio asset is active. This is a read-only field for VPAID_NON_LINEAR_VIDEO assets. Applicable to the following creative types: INSTREAM_AUDIO, INSTREAM_VIDEO and all VPAID.", - "type": "boolean" - }, - "additionalSizes": { - "description": "Additional sizes associated with this creative asset. HTML5 asset generated by compatible software such as GWD will be able to support more sizes this creative asset can render.", - "items": { - "$ref": "Size" - }, - "type": "array" - }, - "alignment": { - "description": "Possible alignments for an asset. This is a read-only field. Applicable to the following creative types: RICH_MEDIA_DISPLAY_MULTI_FLOATING_INTERSTITIAL .", - "enum": [ - "ALIGNMENT_TOP", - "ALIGNMENT_RIGHT", - "ALIGNMENT_BOTTOM", - "ALIGNMENT_LEFT" - ], - "enumDescriptions": [ - "", - "", - "", - "" - ], - "type": "string" - }, - "artworkType": { - "description": "Artwork type of rich media creative. This is a read-only field. Applicable to the following creative types: all RICH_MEDIA.", - "enum": [ - "ARTWORK_TYPE_FLASH", - "ARTWORK_TYPE_HTML5", - "ARTWORK_TYPE_MIXED", - "ARTWORK_TYPE_IMAGE" - ], - "enumDescriptions": [ - "", - "", - "", - "" - ], - "type": "string" - }, - "assetIdentifier": { - "$ref": "CreativeAssetId", - "description": "Identifier of this asset. This is the same identifier returned during creative asset insert operation. This is a required field. Applicable to all but the following creative types: all REDIRECT and TRACKING_TEXT." - }, - "audioBitRate": { - "description": "Audio stream bit rate in kbps. This is a read-only field. Applicable to the following creative types: INSTREAM_AUDIO, INSTREAM_VIDEO and all VPAID.", - "format": "int32", - "type": "integer" - }, - "audioSampleRate": { - "description": "Audio sample bit rate in hertz. This is a read-only field. Applicable to the following creative types: INSTREAM_AUDIO, INSTREAM_VIDEO and all VPAID.", - "format": "int32", - "type": "integer" - }, - "backupImageExit": { - "$ref": "CreativeCustomEvent", - "description": "Exit event configured for the backup image. Applicable to the following creative types: all RICH_MEDIA." - }, - "bitRate": { - "description": "Detected bit-rate for audio or video asset. This is a read-only field. Applicable to the following creative types: INSTREAM_AUDIO, INSTREAM_VIDEO and all VPAID.", - "format": "int32", - "type": "integer" - }, - "childAssetType": { - "description": "Rich media child asset type. This is a read-only field. Applicable to the following creative types: all VPAID.", - "enum": [ - "CHILD_ASSET_TYPE_FLASH", - "CHILD_ASSET_TYPE_VIDEO", - "CHILD_ASSET_TYPE_IMAGE", - "CHILD_ASSET_TYPE_DATA" - ], - "enumDescriptions": [ - "", - "", - "", - "" - ], - "type": "string" - }, - "collapsedSize": { - "$ref": "Size", - "description": "Size of an asset when collapsed. This is a read-only field. Applicable to the following creative types: all RICH_MEDIA and all VPAID. Additionally, applicable to assets whose displayType is ASSET_DISPLAY_TYPE_EXPANDING or ASSET_DISPLAY_TYPE_PEEL_DOWN." - }, - "companionCreativeIds": { - "description": "List of companion creatives assigned to an in-stream video creative asset. Acceptable values include IDs of existing flash and image creatives. Applicable to INSTREAM_VIDEO creative type with dynamicAssetSelection set to true.", - "items": { - "format": "int64", - "type": "string" - }, - "type": "array" - }, - "customStartTimeValue": { - "description": "Custom start time in seconds for making the asset visible. Applicable to the following creative types: all RICH_MEDIA. Value must be greater than or equal to 0.", - "format": "int32", - "type": "integer" - }, - "detectedFeatures": { - "description": "List of feature dependencies for the creative asset that are detected by Campaign Manager. Feature dependencies are features that a browser must be able to support in order to render your HTML5 creative correctly. This is a read-only, auto-generated field. Applicable to the following creative types: HTML5_BANNER. Applicable to DISPLAY when the primary asset type is not HTML_IMAGE.", - "items": { - "enum": [ - "CSS_FONT_FACE", - "CSS_BACKGROUND_SIZE", - "CSS_BORDER_IMAGE", - "CSS_BORDER_RADIUS", - "CSS_BOX_SHADOW", - "CSS_FLEX_BOX", - "CSS_HSLA", - "CSS_MULTIPLE_BGS", - "CSS_OPACITY", - "CSS_RGBA", - "CSS_TEXT_SHADOW", - "CSS_ANIMATIONS", - "CSS_COLUMNS", - "CSS_GENERATED_CONTENT", - "CSS_GRADIENTS", - "CSS_REFLECTIONS", - "CSS_TRANSFORMS", - "CSS_TRANSFORMS3D", - "CSS_TRANSITIONS", - "APPLICATION_CACHE", - "CANVAS", - "CANVAS_TEXT", - "DRAG_AND_DROP", - "HASH_CHANGE", - "HISTORY", - "AUDIO", - "VIDEO", - "INDEXED_DB", - "INPUT_ATTR_AUTOCOMPLETE", - "INPUT_ATTR_AUTOFOCUS", - "INPUT_ATTR_LIST", - "INPUT_ATTR_PLACEHOLDER", - "INPUT_ATTR_MAX", - "INPUT_ATTR_MIN", - "INPUT_ATTR_MULTIPLE", - "INPUT_ATTR_PATTERN", - "INPUT_ATTR_REQUIRED", - "INPUT_ATTR_STEP", - "INPUT_TYPE_SEARCH", - "INPUT_TYPE_TEL", - "INPUT_TYPE_URL", - "INPUT_TYPE_EMAIL", - "INPUT_TYPE_DATETIME", - "INPUT_TYPE_DATE", - "INPUT_TYPE_MONTH", - "INPUT_TYPE_WEEK", - "INPUT_TYPE_TIME", - "INPUT_TYPE_DATETIME_LOCAL", - "INPUT_TYPE_NUMBER", - "INPUT_TYPE_RANGE", - "INPUT_TYPE_COLOR", - "LOCAL_STORAGE", - "POST_MESSAGE", - "SESSION_STORAGE", - "WEB_SOCKETS", - "WEB_SQL_DATABASE", - "WEB_WORKERS", - "GEO_LOCATION", - "INLINE_SVG", - "SMIL", - "SVG_HREF", - "SVG_CLIP_PATHS", - "TOUCH", - "WEBGL", - "SVG_FILTERS", - "SVG_FE_IMAGE" - ], - "enumDescriptions": [ - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "" - ], - "type": "string" - }, - "type": "array" - }, - "displayType": { - "description": "Type of rich media asset. This is a read-only field. Applicable to the following creative types: all RICH_MEDIA.", - "enum": [ - "ASSET_DISPLAY_TYPE_INPAGE", - "ASSET_DISPLAY_TYPE_FLOATING", - "ASSET_DISPLAY_TYPE_OVERLAY", - "ASSET_DISPLAY_TYPE_EXPANDING", - "ASSET_DISPLAY_TYPE_FLASH_IN_FLASH", - "ASSET_DISPLAY_TYPE_FLASH_IN_FLASH_EXPANDING", - "ASSET_DISPLAY_TYPE_PEEL_DOWN", - "ASSET_DISPLAY_TYPE_VPAID_LINEAR", - "ASSET_DISPLAY_TYPE_VPAID_NON_LINEAR", - "ASSET_DISPLAY_TYPE_BACKDROP" - ], - "enumDescriptions": [ - "", - "", - "", - "", - "", - "", - "", - "", - "", - "" - ], - "type": "string" - }, - "duration": { - "description": "Duration in seconds for which an asset will be displayed. Applicable to the following creative types: INSTREAM_AUDIO, INSTREAM_VIDEO and VPAID_LINEAR_VIDEO. Value must be greater than or equal to 1.", - "format": "int32", - "type": "integer" - }, - "durationType": { - "description": "Duration type for which an asset will be displayed. Applicable to the following creative types: all RICH_MEDIA.", - "enum": [ - "ASSET_DURATION_TYPE_AUTO", - "ASSET_DURATION_TYPE_NONE", - "ASSET_DURATION_TYPE_CUSTOM" - ], - "enumDescriptions": [ - "", - "", - "" - ], - "type": "string" - }, - "expandedDimension": { - "$ref": "Size", - "description": "Detected expanded dimension for video asset. This is a read-only field. Applicable to the following creative types: INSTREAM_VIDEO and all VPAID." - }, - "fileSize": { - "description": "File size associated with this creative asset. This is a read-only field. Applicable to all but the following creative types: all REDIRECT and TRACKING_TEXT.", - "format": "int64", - "type": "string" - }, - "flashVersion": { - "description": "Flash version of the asset. This is a read-only field. Applicable to the following creative types: FLASH_INPAGE, all RICH_MEDIA, and all VPAID. Applicable to DISPLAY when the primary asset type is not HTML_IMAGE.", - "format": "int32", - "type": "integer" - }, - "frameRate": { - "description": "Video frame rate for video asset in frames per second. This is a read-only field. Applicable to the following creative types: INSTREAM_VIDEO and all VPAID.", - "format": "float", - "type": "number" - }, - "hideFlashObjects": { - "description": "Whether to hide Flash objects flag for an asset. Applicable to the following creative types: all RICH_MEDIA.", - "type": "boolean" - }, - "hideSelectionBoxes": { - "description": "Whether to hide selection boxes flag for an asset. Applicable to the following creative types: all RICH_MEDIA.", - "type": "boolean" - }, - "horizontallyLocked": { - "description": "Whether the asset is horizontally locked. This is a read-only field. Applicable to the following creative types: all RICH_MEDIA.", - "type": "boolean" - }, - "id": { - "description": "Numeric ID of this creative asset. This is a required field and should not be modified. Applicable to all but the following creative types: all REDIRECT and TRACKING_TEXT.", - "format": "int64", - "type": "string" - }, - "idDimensionValue": { - "$ref": "DimensionValue", - "description": "Dimension value for the ID of the asset. This is a read-only, auto-generated field." - }, - "mediaDuration": { - "description": "Detected duration for audio or video asset. This is a read-only field. Applicable to the following creative types: INSTREAM_AUDIO, INSTREAM_VIDEO and all VPAID.", - "format": "float", - "type": "number" - }, - "mimeType": { - "description": "Detected MIME type for audio or video asset. This is a read-only field. Applicable to the following creative types: INSTREAM_AUDIO, INSTREAM_VIDEO and all VPAID.", - "type": "string" - }, - "offset": { - "$ref": "OffsetPosition", - "description": "Offset position for an asset in collapsed mode. This is a read-only field. Applicable to the following creative types: all RICH_MEDIA and all VPAID. Additionally, only applicable to assets whose displayType is ASSET_DISPLAY_TYPE_EXPANDING or ASSET_DISPLAY_TYPE_PEEL_DOWN." - }, - "orientation": { - "description": "Orientation of video asset. This is a read-only, auto-generated field.", - "enum": [ - "LANDSCAPE", - "PORTRAIT", - "SQUARE" - ], - "enumDescriptions": [ - "", - "", - "" - ], - "type": "string" - }, - "originalBackup": { - "description": "Whether the backup asset is original or changed by the user in Campaign Manager. Applicable to the following creative types: all RICH_MEDIA.", - "type": "boolean" - }, - "politeLoad": { - "description": "Whether this asset is used as a polite load asset.", - "type": "boolean" - }, - "position": { - "$ref": "OffsetPosition", - "description": "Offset position for an asset. Applicable to the following creative types: all RICH_MEDIA." - }, - "positionLeftUnit": { - "description": "Offset left unit for an asset. This is a read-only field. Applicable to the following creative types: all RICH_MEDIA.", - "enum": [ - "OFFSET_UNIT_PIXEL", - "OFFSET_UNIT_PERCENT", - "OFFSET_UNIT_PIXEL_FROM_CENTER" - ], - "enumDescriptions": [ - "", - "", - "" - ], - "type": "string" - }, - "positionTopUnit": { - "description": "Offset top unit for an asset. This is a read-only field if the asset displayType is ASSET_DISPLAY_TYPE_OVERLAY. Applicable to the following creative types: all RICH_MEDIA.", - "enum": [ - "OFFSET_UNIT_PIXEL", - "OFFSET_UNIT_PERCENT", - "OFFSET_UNIT_PIXEL_FROM_CENTER" - ], - "enumDescriptions": [ - "", - "", - "" - ], - "type": "string" - }, - "progressiveServingUrl": { - "description": "Progressive URL for video asset. This is a read-only field. Applicable to the following creative types: INSTREAM_VIDEO and all VPAID.", - "type": "string" - }, - "pushdown": { - "description": "Whether the asset pushes down other content. Applicable to the following creative types: all RICH_MEDIA. Additionally, only applicable when the asset offsets are 0, the collapsedSize.width matches size.width, and the collapsedSize.height is less than size.height.", - "type": "boolean" - }, - "pushdownDuration": { - "description": "Pushdown duration in seconds for an asset. Applicable to the following creative types: all RICH_MEDIA.Additionally, only applicable when the asset pushdown field is true, the offsets are 0, the collapsedSize.width matches size.width, and the collapsedSize.height is less than size.height. Acceptable values are 0 to 9.99, inclusive.", - "format": "float", - "type": "number" - }, - "role": { - "description": "Role of the asset in relation to creative. Applicable to all but the following creative types: all REDIRECT and TRACKING_TEXT. This is a required field. PRIMARY applies to DISPLAY, FLASH_INPAGE, HTML5_BANNER, IMAGE, DISPLAY_IMAGE_GALLERY, all RICH_MEDIA (which may contain multiple primary assets), and all VPAID creatives. BACKUP_IMAGE applies to FLASH_INPAGE, HTML5_BANNER, all RICH_MEDIA, and all VPAID creatives. Applicable to DISPLAY when the primary asset type is not HTML_IMAGE. ADDITIONAL_IMAGE and ADDITIONAL_FLASH apply to FLASH_INPAGE creatives. OTHER refers to assets from sources other than Campaign Manager, such as Studio uploaded assets, applicable to all RICH_MEDIA and all VPAID creatives. PARENT_VIDEO refers to videos uploaded by the user in Campaign Manager and is applicable to INSTREAM_VIDEO and VPAID_LINEAR_VIDEO creatives. TRANSCODED_VIDEO refers to videos transcoded by Campaign Manager from PARENT_VIDEO assets and is applicable to INSTREAM_VIDEO and VPAID_LINEAR_VIDEO creatives. ALTERNATE_VIDEO refers to the Campaign Manager representation of child asset videos from Studio, and is applicable to VPAID_LINEAR_VIDEO creatives. These cannot be added or removed within Campaign Manager. For VPAID_LINEAR_VIDEO creatives, PARENT_VIDEO, TRANSCODED_VIDEO and ALTERNATE_VIDEO assets that are marked active serve as backup in case the VPAID creative cannot be served. Only PARENT_VIDEO assets can be added or removed for an INSTREAM_VIDEO or VPAID_LINEAR_VIDEO creative. PARENT_AUDIO refers to audios uploaded by the user in Campaign Manager and is applicable to INSTREAM_AUDIO creatives. TRANSCODED_AUDIO refers to audios transcoded by Campaign Manager from PARENT_AUDIO assets and is applicable to INSTREAM_AUDIO creatives. ", - "enum": [ - "PRIMARY", - "BACKUP_IMAGE", - "ADDITIONAL_IMAGE", - "ADDITIONAL_FLASH", - "PARENT_VIDEO", - "TRANSCODED_VIDEO", - "OTHER", - "ALTERNATE_VIDEO", - "PARENT_AUDIO", - "TRANSCODED_AUDIO" - ], - "enumDescriptions": [ - "", - "", - "", - "", - "", - "", - "", - "", - "", - "" - ], - "type": "string" - }, - "size": { - "$ref": "Size", - "description": "Size associated with this creative asset. This is a required field when applicable; however for IMAGE and FLASH_INPAGE, creatives if left blank, this field will be automatically set using the actual size of the associated image asset. Applicable to the following creative types: DISPLAY_IMAGE_GALLERY, FLASH_INPAGE, HTML5_BANNER, IMAGE, and all RICH_MEDIA. Applicable to DISPLAY when the primary asset type is not HTML_IMAGE." - }, - "sslCompliant": { - "description": "Whether the asset is SSL-compliant. This is a read-only field. Applicable to all but the following creative types: all REDIRECT and TRACKING_TEXT.", - "type": "boolean" - }, - "startTimeType": { - "description": "Initial wait time type before making the asset visible. Applicable to the following creative types: all RICH_MEDIA.", - "enum": [ - "ASSET_START_TIME_TYPE_NONE", - "ASSET_START_TIME_TYPE_CUSTOM" - ], - "enumDescriptions": [ - "", - "" - ], - "type": "string" - }, - "streamingServingUrl": { - "description": "Streaming URL for video asset. This is a read-only field. Applicable to the following creative types: INSTREAM_VIDEO and all VPAID.", - "type": "string" - }, - "transparency": { - "description": "Whether the asset is transparent. Applicable to the following creative types: all RICH_MEDIA. Additionally, only applicable to HTML5 assets.", - "type": "boolean" - }, - "verticallyLocked": { - "description": "Whether the asset is vertically locked. This is a read-only field. Applicable to the following creative types: all RICH_MEDIA.", - "type": "boolean" - }, - "windowMode": { - "description": "Window mode options for flash assets. Applicable to the following creative types: FLASH_INPAGE, RICH_MEDIA_DISPLAY_EXPANDING, RICH_MEDIA_IM_EXPAND, RICH_MEDIA_DISPLAY_BANNER, and RICH_MEDIA_INPAGE_FLOATING.", - "enum": [ - "OPAQUE", - "WINDOW", - "TRANSPARENT" - ], - "enumDescriptions": [ - "", - "", - "" - ], - "type": "string" - }, - "zIndex": { - "description": "zIndex value of an asset. Applicable to the following creative types: all RICH_MEDIA.Additionally, only applicable to assets whose displayType is NOT one of the following types: ASSET_DISPLAY_TYPE_INPAGE or ASSET_DISPLAY_TYPE_OVERLAY. Acceptable values are -999999999 to 999999999, inclusive.", - "format": "int32", - "type": "integer" - }, - "zipFilename": { - "description": "File name of zip file. This is a read-only field. Applicable to the following creative types: HTML5_BANNER.", - "type": "string" - }, - "zipFilesize": { - "description": "Size of zip file. This is a read-only field. Applicable to the following creative types: HTML5_BANNER.", - "type": "string" - } - }, - "type": "object" - }, - "CreativeAssetId": { - "description": "Creative Asset ID.", - "id": "CreativeAssetId", - "properties": { - "name": { - "description": "Name of the creative asset. This is a required field while inserting an asset. After insertion, this assetIdentifier is used to identify the uploaded asset. Characters in the name must be alphanumeric or one of the following: \".-_ \". Spaces are allowed.", - "type": "string" - }, - "type": { - "description": "Type of asset to upload. This is a required field. FLASH and IMAGE are no longer supported for new uploads. All image assets should use HTML_IMAGE.", - "enum": [ - "IMAGE", - "FLASH", - "VIDEO", - "HTML", - "HTML_IMAGE", - "AUDIO" - ], - "enumDescriptions": [ - "", - "", - "", - "", - "", - "" - ], - "type": "string" - } - }, - "type": "object" - }, - "CreativeAssetMetadata": { - "description": "CreativeAssets contains properties of a creative asset file which will be uploaded or has already been uploaded. Refer to the creative sample code for how to upload assets and insert a creative.", - "id": "CreativeAssetMetadata", - "properties": { - "assetIdentifier": { - "$ref": "CreativeAssetId", - "description": "ID of the creative asset. This is a required field." - }, - "clickTags": { - "description": "List of detected click tags for assets. This is a read-only, auto-generated field. This field is empty for a rich media asset.", - "items": { - "$ref": "ClickTag" - }, - "type": "array" - }, - "counterCustomEvents": { - "description": "List of counter events configured for the asset. This is a read-only, auto-generated field and only applicable to a rich media asset.", - "items": { - "$ref": "CreativeCustomEvent" - }, - "type": "array" - }, - "detectedFeatures": { - "description": "List of feature dependencies for the creative asset that are detected by Campaign Manager. Feature dependencies are features that a browser must be able to support in order to render your HTML5 creative correctly. This is a read-only, auto-generated field.", - "items": { - "enum": [ - "CSS_FONT_FACE", - "CSS_BACKGROUND_SIZE", - "CSS_BORDER_IMAGE", - "CSS_BORDER_RADIUS", - "CSS_BOX_SHADOW", - "CSS_FLEX_BOX", - "CSS_HSLA", - "CSS_MULTIPLE_BGS", - "CSS_OPACITY", - "CSS_RGBA", - "CSS_TEXT_SHADOW", - "CSS_ANIMATIONS", - "CSS_COLUMNS", - "CSS_GENERATED_CONTENT", - "CSS_GRADIENTS", - "CSS_REFLECTIONS", - "CSS_TRANSFORMS", - "CSS_TRANSFORMS3D", - "CSS_TRANSITIONS", - "APPLICATION_CACHE", - "CANVAS", - "CANVAS_TEXT", - "DRAG_AND_DROP", - "HASH_CHANGE", - "HISTORY", - "AUDIO", - "VIDEO", - "INDEXED_DB", - "INPUT_ATTR_AUTOCOMPLETE", - "INPUT_ATTR_AUTOFOCUS", - "INPUT_ATTR_LIST", - "INPUT_ATTR_PLACEHOLDER", - "INPUT_ATTR_MAX", - "INPUT_ATTR_MIN", - "INPUT_ATTR_MULTIPLE", - "INPUT_ATTR_PATTERN", - "INPUT_ATTR_REQUIRED", - "INPUT_ATTR_STEP", - "INPUT_TYPE_SEARCH", - "INPUT_TYPE_TEL", - "INPUT_TYPE_URL", - "INPUT_TYPE_EMAIL", - "INPUT_TYPE_DATETIME", - "INPUT_TYPE_DATE", - "INPUT_TYPE_MONTH", - "INPUT_TYPE_WEEK", - "INPUT_TYPE_TIME", - "INPUT_TYPE_DATETIME_LOCAL", - "INPUT_TYPE_NUMBER", - "INPUT_TYPE_RANGE", - "INPUT_TYPE_COLOR", - "LOCAL_STORAGE", - "POST_MESSAGE", - "SESSION_STORAGE", - "WEB_SOCKETS", - "WEB_SQL_DATABASE", - "WEB_WORKERS", - "GEO_LOCATION", - "INLINE_SVG", - "SMIL", - "SVG_HREF", - "SVG_CLIP_PATHS", - "TOUCH", - "WEBGL", - "SVG_FILTERS", - "SVG_FE_IMAGE" - ], - "enumDescriptions": [ - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "" - ], - "type": "string" - }, - "type": "array" - }, - "exitCustomEvents": { - "description": "List of exit events configured for the asset. This is a read-only, auto-generated field and only applicable to a rich media asset.", - "items": { - "$ref": "CreativeCustomEvent" - }, - "type": "array" - }, - "id": { - "description": "Numeric ID of the asset. This is a read-only, auto-generated field.", - "format": "int64", - "type": "string" - }, - "idDimensionValue": { - "$ref": "DimensionValue", - "description": "Dimension value for the numeric ID of the asset. This is a read-only, auto-generated field." - }, - "kind": { - "description": "Identifies what kind of resource this is. Value: the fixed string \"dfareporting#creativeAssetMetadata\".", - "type": "string" - }, - "richMedia": { - "description": "True if the uploaded asset is a rich media asset. This is a read-only, auto-generated field.", - "type": "boolean" - }, - "timerCustomEvents": { - "description": "List of timer events configured for the asset. This is a read-only, auto-generated field and only applicable to a rich media asset.", - "items": { - "$ref": "CreativeCustomEvent" - }, - "type": "array" - }, - "warnedValidationRules": { - "description": "Rules validated during code generation that generated a warning. This is a read-only, auto-generated field. Possible values are: - \"ADMOB_REFERENCED\" - \"ASSET_FORMAT_UNSUPPORTED_DCM\" - \"ASSET_INVALID\" - \"CLICK_TAG_HARD_CODED\" - \"CLICK_TAG_INVALID\" - \"CLICK_TAG_IN_GWD\" - \"CLICK_TAG_MISSING\" - \"CLICK_TAG_MORE_THAN_ONE\" - \"CLICK_TAG_NON_TOP_LEVEL\" - \"COMPONENT_UNSUPPORTED_DCM\" - \"ENABLER_UNSUPPORTED_METHOD_DCM\" - \"EXTERNAL_FILE_REFERENCED\" - \"FILE_DETAIL_EMPTY\" - \"FILE_TYPE_INVALID\" - \"GWD_PROPERTIES_INVALID\" - \"HTML5_FEATURE_UNSUPPORTED\" - \"LINKED_FILE_NOT_FOUND\" - \"MAX_FLASH_VERSION_11\" - \"MRAID_REFERENCED\" - \"NOT_SSL_COMPLIANT\" - \"ORPHANED_ASSET\" - \"PRIMARY_HTML_MISSING\" - \"SVG_INVALID\" - \"ZIP_INVALID\" ", - "items": { - "enum": [ - "CLICK_TAG_NON_TOP_LEVEL", - "CLICK_TAG_MISSING", - "CLICK_TAG_MORE_THAN_ONE", - "CLICK_TAG_INVALID", - "ORPHANED_ASSET", - "PRIMARY_HTML_MISSING", - "EXTERNAL_FILE_REFERENCED", - "MRAID_REFERENCED", - "ADMOB_REFERENCED", - "FILE_TYPE_INVALID", - "ZIP_INVALID", - "LINKED_FILE_NOT_FOUND", - "MAX_FLASH_VERSION_11", - "NOT_SSL_COMPLIANT", - "FILE_DETAIL_EMPTY", - "ASSET_INVALID", - "GWD_PROPERTIES_INVALID", - "ENABLER_UNSUPPORTED_METHOD_DCM", - "ASSET_FORMAT_UNSUPPORTED_DCM", - "COMPONENT_UNSUPPORTED_DCM", - "HTML5_FEATURE_UNSUPPORTED", - "CLICK_TAG_IN_GWD", - "CLICK_TAG_HARD_CODED", - "SVG_INVALID", - "CLICK_TAG_IN_RICH_MEDIA", - "MISSING_ENABLER_REFERENCE" - ], - "enumDescriptions": [ - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "" - ], - "type": "string" - }, - "type": "array" - } - }, - "type": "object" - }, - "CreativeAssetSelection": { - "description": "Encapsulates the list of rules for asset selection and a default asset in case none of the rules match. Applicable to INSTREAM_VIDEO creatives.", - "id": "CreativeAssetSelection", - "properties": { - "defaultAssetId": { - "description": "A creativeAssets[].id. This should refer to one of the parent assets in this creative, and will be served if none of the rules match. This is a required field.", - "format": "int64", - "type": "string" - }, - "rules": { - "description": "Rules determine which asset will be served to a viewer. Rules will be evaluated in the order in which they are stored in this list. This list must contain at least one rule. Applicable to INSTREAM_VIDEO creatives.", - "items": { - "$ref": "Rule" - }, - "type": "array" - } - }, - "type": "object" - }, - "CreativeAssignment": { - "description": "Creative Assignment.", - "id": "CreativeAssignment", - "properties": { - "active": { - "description": "Whether this creative assignment is active. When true, the creative will be included in the ad's rotation.", - "type": "boolean" - }, - "applyEventTags": { - "description": "Whether applicable event tags should fire when this creative assignment is rendered. If this value is unset when the ad is inserted or updated, it will default to true for all creative types EXCEPT for INTERNAL_REDIRECT, INTERSTITIAL_INTERNAL_REDIRECT, and INSTREAM_VIDEO.", - "type": "boolean" - }, - "clickThroughUrl": { - "$ref": "ClickThroughUrl", - "description": "Click-through URL of the creative assignment." - }, - "companionCreativeOverrides": { - "description": "Companion creative overrides for this creative assignment. Applicable to video ads.", - "items": { - "$ref": "CompanionClickThroughOverride" - }, - "type": "array" - }, - "creativeGroupAssignments": { - "description": "Creative group assignments for this creative assignment. Only one assignment per creative group number is allowed for a maximum of two assignments.", - "items": { - "$ref": "CreativeGroupAssignment" - }, - "type": "array" - }, - "creativeId": { - "description": "ID of the creative to be assigned. This is a required field.", - "format": "int64", - "type": "string" - }, - "creativeIdDimensionValue": { - "$ref": "DimensionValue", - "description": "Dimension value for the ID of the creative. This is a read-only, auto-generated field." - }, - "endTime": { - "format": "date-time", - "type": "string" - }, - "richMediaExitOverrides": { - "description": "Rich media exit overrides for this creative assignment. Applicable when the creative type is any of the following: - DISPLAY - RICH_MEDIA_INPAGE - RICH_MEDIA_INPAGE_FLOATING - RICH_MEDIA_IM_EXPAND - RICH_MEDIA_EXPANDING - RICH_MEDIA_INTERSTITIAL_FLOAT - RICH_MEDIA_MOBILE_IN_APP - RICH_MEDIA_MULTI_FLOATING - RICH_MEDIA_PEEL_DOWN - VPAID_LINEAR - VPAID_NON_LINEAR ", - "items": { - "$ref": "RichMediaExitOverride" - }, - "type": "array" - }, - "sequence": { - "description": "Sequence number of the creative assignment, applicable when the rotation type is CREATIVE_ROTATION_TYPE_SEQUENTIAL. Acceptable values are 1 to 65535, inclusive.", - "format": "int32", - "type": "integer" - }, - "sslCompliant": { - "description": "Whether the creative to be assigned is SSL-compliant. This is a read-only field that is auto-generated when the ad is inserted or updated.", - "type": "boolean" - }, - "startTime": { - "format": "date-time", - "type": "string" - }, - "weight": { - "description": "Weight of the creative assignment, applicable when the rotation type is CREATIVE_ROTATION_TYPE_RANDOM. Value must be greater than or equal to 1.", - "format": "int32", - "type": "integer" - } - }, - "type": "object" - }, - "CreativeClickThroughUrl": { - "description": "Click-through URL", - "id": "CreativeClickThroughUrl", - "properties": { - "computedClickThroughUrl": { - "description": "Read-only convenience field representing the actual URL that will be used for this click-through. The URL is computed as follows: - If landingPageId is specified then that landing page's URL is assigned to this field. - Otherwise, the customClickThroughUrl is assigned to this field. ", - "type": "string" - }, - "customClickThroughUrl": { - "description": "Custom click-through URL. Applicable if the landingPageId field is left unset.", - "type": "string" - }, - "landingPageId": { - "description": "ID of the landing page for the click-through URL.", - "format": "int64", - "type": "string" - } - }, - "type": "object" - }, - "CreativeCustomEvent": { - "description": "Creative Custom Event.", - "id": "CreativeCustomEvent", - "properties": { - "advertiserCustomEventId": { - "description": "Unique ID of this event used by Reporting and Data Transfer. This is a read-only field.", - "format": "int64", - "type": "string" - }, - "advertiserCustomEventName": { - "description": "User-entered name for the event.", - "type": "string" - }, - "advertiserCustomEventType": { - "description": "Type of the event. This is a read-only field.", - "enum": [ - "ADVERTISER_EVENT_TIMER", - "ADVERTISER_EVENT_EXIT", - "ADVERTISER_EVENT_COUNTER" - ], - "enumDescriptions": [ - "", - "", - "" - ], - "type": "string" - }, - "artworkLabel": { - "description": "Artwork label column, used to link events in Campaign Manager back to events in Studio. This is a required field and should not be modified after insertion.", - "type": "string" - }, - "artworkType": { - "description": "Artwork type used by the creative.This is a read-only field.", - "enum": [ - "ARTWORK_TYPE_FLASH", - "ARTWORK_TYPE_HTML5", - "ARTWORK_TYPE_MIXED", - "ARTWORK_TYPE_IMAGE" - ], - "enumDescriptions": [ - "", - "", - "", - "" - ], - "type": "string" - }, - "exitClickThroughUrl": { - "$ref": "CreativeClickThroughUrl", - "description": "Exit click-through URL for the event. This field is used only for exit events." - }, - "id": { - "description": "ID of this event. This is a required field and should not be modified after insertion.", - "format": "int64", - "type": "string" - }, - "popupWindowProperties": { - "$ref": "PopupWindowProperties", - "description": "Properties for rich media popup windows. This field is used only for exit events." - }, - "targetType": { - "description": "Target type used by the event.", - "enum": [ - "TARGET_BLANK", - "TARGET_TOP", - "TARGET_SELF", - "TARGET_PARENT", - "TARGET_POPUP" - ], - "enumDescriptions": [ - "", - "", - "", - "", - "" - ], - "type": "string" - }, - "videoReportingId": { - "description": "Video reporting ID, used to differentiate multiple videos in a single creative. This is a read-only field.", - "type": "string" - } - }, - "type": "object" - }, - "CreativeField": { - "description": "Contains properties of a creative field.", - "id": "CreativeField", - "properties": { - "accountId": { - "description": "Account ID of this creative field. This is a read-only field that can be left blank.", - "format": "int64", - "type": "string" - }, - "advertiserId": { - "description": "Advertiser ID of this creative field. This is a required field on insertion.", - "format": "int64", - "type": "string" - }, - "advertiserIdDimensionValue": { - "$ref": "DimensionValue", - "description": "Dimension value for the ID of the advertiser. This is a read-only, auto-generated field." - }, - "id": { - "description": "ID of this creative field. This is a read-only, auto-generated field.", - "format": "int64", - "type": "string" - }, - "kind": { - "description": "Identifies what kind of resource this is. Value: the fixed string \"dfareporting#creativeField\".", - "type": "string" - }, - "name": { - "description": "Name of this creative field. This is a required field and must be less than 256 characters long and unique among creative fields of the same advertiser.", - "type": "string" - }, - "subaccountId": { - "description": "Subaccount ID of this creative field. This is a read-only field that can be left blank.", - "format": "int64", - "type": "string" - } - }, - "type": "object" - }, - "CreativeFieldAssignment": { - "description": "Creative Field Assignment.", - "id": "CreativeFieldAssignment", - "properties": { - "creativeFieldId": { - "description": "ID of the creative field.", - "format": "int64", - "type": "string" - }, - "creativeFieldValueId": { - "description": "ID of the creative field value.", - "format": "int64", - "type": "string" - } - }, - "type": "object" - }, - "CreativeFieldValue": { - "description": "Contains properties of a creative field value.", - "id": "CreativeFieldValue", - "properties": { - "id": { - "description": "ID of this creative field value. This is a read-only, auto-generated field.", - "format": "int64", - "type": "string" - }, - "kind": { - "description": "Identifies what kind of resource this is. Value: the fixed string \"dfareporting#creativeFieldValue\".", - "type": "string" - }, - "value": { - "description": "Value of this creative field value. It needs to be less than 256 characters in length and unique per creative field.", - "type": "string" - } - }, - "type": "object" - }, - "CreativeFieldValuesListResponse": { - "description": "Creative Field Value List Response", - "id": "CreativeFieldValuesListResponse", - "properties": { - "creativeFieldValues": { - "description": "Creative field value collection.", - "items": { - "$ref": "CreativeFieldValue" - }, - "type": "array" - }, - "kind": { - "description": "Identifies what kind of resource this is. Value: the fixed string \"dfareporting#creativeFieldValuesListResponse\".", - "type": "string" - }, - "nextPageToken": { - "description": "Pagination token to be used for the next list operation.", - "type": "string" - } - }, - "type": "object" - }, - "CreativeFieldsListResponse": { - "description": "Creative Field List Response", - "id": "CreativeFieldsListResponse", - "properties": { - "creativeFields": { - "description": "Creative field collection.", - "items": { - "$ref": "CreativeField" - }, - "type": "array" - }, - "kind": { - "description": "Identifies what kind of resource this is. Value: the fixed string \"dfareporting#creativeFieldsListResponse\".", - "type": "string" - }, - "nextPageToken": { - "description": "Pagination token to be used for the next list operation.", - "type": "string" - } - }, - "type": "object" - }, - "CreativeGroup": { - "description": "Contains properties of a creative group.", - "id": "CreativeGroup", - "properties": { - "accountId": { - "description": "Account ID of this creative group. This is a read-only field that can be left blank.", - "format": "int64", - "type": "string" - }, - "advertiserId": { - "description": "Advertiser ID of this creative group. This is a required field on insertion.", - "format": "int64", - "type": "string" - }, - "advertiserIdDimensionValue": { - "$ref": "DimensionValue", - "description": "Dimension value for the ID of the advertiser. This is a read-only, auto-generated field." - }, - "groupNumber": { - "description": "Subgroup of the creative group. Assign your creative groups to a subgroup in order to filter or manage them more easily. This field is required on insertion and is read-only after insertion. Acceptable values are 1 to 2, inclusive.", - "format": "int32", - "type": "integer" - }, - "id": { - "description": "ID of this creative group. This is a read-only, auto-generated field.", - "format": "int64", - "type": "string" - }, - "kind": { - "description": "Identifies what kind of resource this is. Value: the fixed string \"dfareporting#creativeGroup\".", - "type": "string" - }, - "name": { - "description": "Name of this creative group. This is a required field and must be less than 256 characters long and unique among creative groups of the same advertiser.", - "type": "string" - }, - "subaccountId": { - "description": "Subaccount ID of this creative group. This is a read-only field that can be left blank.", - "format": "int64", - "type": "string" - } - }, - "type": "object" - }, - "CreativeGroupAssignment": { - "description": "Creative Group Assignment.", - "id": "CreativeGroupAssignment", - "properties": { - "creativeGroupId": { - "description": "ID of the creative group to be assigned.", - "format": "int64", - "type": "string" - }, - "creativeGroupNumber": { - "description": "Creative group number of the creative group assignment.", - "enum": [ - "CREATIVE_GROUP_ONE", - "CREATIVE_GROUP_TWO" - ], - "enumDescriptions": [ - "", - "" - ], - "type": "string" - } - }, - "type": "object" - }, - "CreativeGroupsListResponse": { - "description": "Creative Group List Response", - "id": "CreativeGroupsListResponse", - "properties": { - "creativeGroups": { - "description": "Creative group collection.", - "items": { - "$ref": "CreativeGroup" - }, - "type": "array" - }, - "kind": { - "description": "Identifies what kind of resource this is. Value: the fixed string \"dfareporting#creativeGroupsListResponse\".", - "type": "string" - }, - "nextPageToken": { - "description": "Pagination token to be used for the next list operation.", - "type": "string" - } - }, - "type": "object" - }, - "CreativeOptimizationConfiguration": { - "description": "Creative optimization settings.", - "id": "CreativeOptimizationConfiguration", - "properties": { - "id": { - "description": "ID of this creative optimization config. This field is auto-generated when the campaign is inserted or updated. It can be null for existing campaigns.", - "format": "int64", - "type": "string" - }, - "name": { - "description": "Name of this creative optimization config. This is a required field and must be less than 129 characters long.", - "type": "string" - }, - "optimizationActivitys": { - "description": "List of optimization activities associated with this configuration.", - "items": { - "$ref": "OptimizationActivity" - }, - "type": "array" - }, - "optimizationModel": { - "description": "Optimization model for this configuration.", - "enum": [ - "CLICK", - "POST_CLICK", - "POST_IMPRESSION", - "POST_CLICK_AND_IMPRESSION", - "VIDEO_COMPLETION" - ], - "enumDescriptions": [ - "", - "", - "", - "", - "" - ], - "type": "string" - } - }, - "type": "object" - }, - "CreativeRotation": { - "description": "Creative Rotation.", - "id": "CreativeRotation", - "properties": { - "creativeAssignments": { - "description": "Creative assignments in this creative rotation.", - "items": { - "$ref": "CreativeAssignment" - }, - "type": "array" - }, - "creativeOptimizationConfigurationId": { - "description": "Creative optimization configuration that is used by this ad. It should refer to one of the existing optimization configurations in the ad's campaign. If it is unset or set to 0, then the campaign's default optimization configuration will be used for this ad.", - "format": "int64", - "type": "string" - }, - "type": { - "description": "Type of creative rotation. Can be used to specify whether to use sequential or random rotation.", - "enum": [ - "CREATIVE_ROTATION_TYPE_SEQUENTIAL", - "CREATIVE_ROTATION_TYPE_RANDOM" - ], - "enumDescriptions": [ - "", - "" - ], - "type": "string" - }, - "weightCalculationStrategy": { - "description": "Strategy for calculating weights. Used with CREATIVE_ROTATION_TYPE_RANDOM.", - "enum": [ - "WEIGHT_STRATEGY_EQUAL", - "WEIGHT_STRATEGY_CUSTOM", - "WEIGHT_STRATEGY_HIGHEST_CTR", - "WEIGHT_STRATEGY_OPTIMIZED" - ], - "enumDescriptions": [ - "", - "", - "", - "" - ], - "type": "string" - } - }, - "type": "object" - }, - "CreativesListResponse": { - "description": "Creative List Response", - "id": "CreativesListResponse", - "properties": { - "creatives": { - "description": "Creative collection.", - "items": { - "$ref": "Creative" - }, - "type": "array" - }, - "kind": { - "description": "Identifies what kind of resource this is. Value: the fixed string \"dfareporting#creativesListResponse\".", - "type": "string" - }, - "nextPageToken": { - "description": "Pagination token to be used for the next list operation.", - "type": "string" - } - }, - "type": "object" - }, - "CrossDimensionReachReportCompatibleFields": { - "description": "Represents fields that are compatible to be selected for a report of type \"CROSS_DIMENSION_REACH\".", - "id": "CrossDimensionReachReportCompatibleFields", - "properties": { - "breakdown": { - "description": "Dimensions which are compatible to be selected in the \"breakdown\" section of the report.", - "items": { - "$ref": "Dimension" - }, - "type": "array" - }, - "dimensionFilters": { - "description": "Dimensions which are compatible to be selected in the \"dimensionFilters\" section of the report.", - "items": { - "$ref": "Dimension" - }, - "type": "array" - }, - "kind": { - "description": "The kind of resource this is, in this case dfareporting#crossDimensionReachReportCompatibleFields.", - "type": "string" - }, - "metrics": { - "description": "Metrics which are compatible to be selected in the \"metricNames\" section of the report.", - "items": { - "$ref": "Metric" - }, - "type": "array" - }, - "overlapMetrics": { - "description": "Metrics which are compatible to be selected in the \"overlapMetricNames\" section of the report.", - "items": { - "$ref": "Metric" - }, - "type": "array" - } - }, - "type": "object" - }, - "CustomFloodlightVariable": { - "description": "A custom floodlight variable. This field may only be used when calling batchinsert; it is not supported by batchupdate.", - "id": "CustomFloodlightVariable", - "properties": { - "kind": { - "description": "Identifies what kind of resource this is. Value: the fixed string \"dfareporting#customFloodlightVariable\".", - "type": "string" - }, - "type": { - "description": "The type of custom floodlight variable to supply a value for. These map to the \"u[1-20]=\" in the tags.", - "enum": [ - "U1", - "U2", - "U3", - "U4", - "U5", - "U6", - "U7", - "U8", - "U9", - "U10", - "U11", - "U12", - "U13", - "U14", - "U15", - "U16", - "U17", - "U18", - "U19", - "U20", - "U21", - "U22", - "U23", - "U24", - "U25", - "U26", - "U27", - "U28", - "U29", - "U30", - "U31", - "U32", - "U33", - "U34", - "U35", - "U36", - "U37", - "U38", - "U39", - "U40", - "U41", - "U42", - "U43", - "U44", - "U45", - "U46", - "U47", - "U48", - "U49", - "U50", - "U51", - "U52", - "U53", - "U54", - "U55", - "U56", - "U57", - "U58", - "U59", - "U60", - "U61", - "U62", - "U63", - "U64", - "U65", - "U66", - "U67", - "U68", - "U69", - "U70", - "U71", - "U72", - "U73", - "U74", - "U75", - "U76", - "U77", - "U78", - "U79", - "U80", - "U81", - "U82", - "U83", - "U84", - "U85", - "U86", - "U87", - "U88", - "U89", - "U90", - "U91", - "U92", - "U93", - "U94", - "U95", - "U96", - "U97", - "U98", - "U99", - "U100" - ], - "enumDescriptions": [ - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "" - ], - "type": "string" - }, - "value": { - "description": "The value of the custom floodlight variable. The length of string must not exceed 100 characters.", - "type": "string" - } - }, - "type": "object" - }, - "CustomRichMediaEvents": { - "description": "Represents a Custom Rich Media Events group.", - "id": "CustomRichMediaEvents", - "properties": { - "filteredEventIds": { - "description": "List of custom rich media event IDs. Dimension values must be all of type dfa:richMediaEventTypeIdAndName.", - "items": { - "$ref": "DimensionValue" - }, - "type": "array" - }, - "kind": { - "description": "The kind of resource this is, in this case dfareporting#customRichMediaEvents.", - "type": "string" - } - }, - "type": "object" - }, - "CustomViewabilityMetric": { - "description": "Custom Viewability Metric", - "id": "CustomViewabilityMetric", - "properties": { - "configuration": { - "$ref": "CustomViewabilityMetricConfiguration", - "description": "Configuration of the custom viewability metric." - }, - "id": { - "description": "ID of the custom viewability metric.", - "format": "int64", - "type": "string" - }, - "name": { - "description": "Name of the custom viewability metric.", - "type": "string" - } - }, - "type": "object" - }, - "CustomViewabilityMetricConfiguration": { - "description": "The attributes, like playtime and percent onscreen, that define the Custom Viewability Metric.", - "id": "CustomViewabilityMetricConfiguration", - "properties": { - "audible": { - "description": "Whether the video must be audible to count an impression.", - "type": "boolean" - }, - "timeMillis": { - "description": "The time in milliseconds the video must play for the Custom Viewability Metric to count an impression. If both this and timePercent are specified, the earlier of the two will be used.", - "format": "int32", - "type": "integer" - }, - "timePercent": { - "description": "The percentage of video that must play for the Custom Viewability Metric to count an impression. If both this and timeMillis are specified, the earlier of the two will be used.", - "format": "int32", - "type": "integer" - }, - "viewabilityPercent": { - "description": "The percentage of video that must be on screen for the Custom Viewability Metric to count an impression.", - "format": "int32", - "type": "integer" - } - }, - "type": "object" - }, - "DateRange": { - "description": "Represents a date range.", - "id": "DateRange", - "properties": { - "endDate": { - "format": "date", - "type": "string" - }, - "kind": { - "description": "The kind of resource this is, in this case dfareporting#dateRange.", - "type": "string" - }, - "relativeDateRange": { - "description": "The date range relative to the date of when the report is run.", - "enum": [ - "TODAY", - "YESTERDAY", - "WEEK_TO_DATE", - "MONTH_TO_DATE", - "QUARTER_TO_DATE", - "YEAR_TO_DATE", - "PREVIOUS_WEEK", - "PREVIOUS_MONTH", - "PREVIOUS_QUARTER", - "PREVIOUS_YEAR", - "LAST_7_DAYS", - "LAST_30_DAYS", - "LAST_90_DAYS", - "LAST_365_DAYS", - "LAST_24_MONTHS", - "LAST_14_DAYS", - "LAST_60_DAYS" - ], - "enumDescriptions": [ - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "" - ], - "type": "string" - }, - "startDate": { - "format": "date", - "type": "string" - } - }, - "type": "object" - }, - "DayPartTargeting": { - "description": "Day Part Targeting.", - "id": "DayPartTargeting", - "properties": { - "daysOfWeek": { - "description": "Days of the week when the ad will serve. Acceptable values are: - \"SUNDAY\" - \"MONDAY\" - \"TUESDAY\" - \"WEDNESDAY\" - \"THURSDAY\" - \"FRIDAY\" - \"SATURDAY\" ", - "items": { - "enum": [ - "MONDAY", - "TUESDAY", - "WEDNESDAY", - "THURSDAY", - "FRIDAY", - "SATURDAY", - "SUNDAY" - ], - "enumDescriptions": [ - "", - "", - "", - "", - "", - "", - "" - ], - "type": "string" - }, - "type": "array" - }, - "hoursOfDay": { - "description": "Hours of the day when the ad will serve, where 0 is midnight to 1 AM and 23 is 11 PM to midnight. Can be specified with days of week, in which case the ad would serve during these hours on the specified days. For example if Monday, Wednesday, Friday are the days of week specified and 9-10am, 3-5pm (hours 9, 15, and 16) is specified, the ad would serve Monday, Wednesdays, and Fridays at 9-10am and 3-5pm. Acceptable values are 0 to 23, inclusive.", - "items": { - "format": "int32", - "type": "integer" - }, - "type": "array" - }, - "userLocalTime": { - "description": "Whether or not to use the user's local time. If false, the America/New York time zone applies.", - "type": "boolean" - } - }, - "type": "object" - }, - "DeepLink": { - "description": "Contains information about a landing page deep link.", - "id": "DeepLink", - "properties": { - "appUrl": { - "description": "The URL of the mobile app being linked to.", - "type": "string" - }, - "fallbackUrl": { - "description": "The fallback URL. This URL will be served to users who do not have the mobile app installed.", - "type": "string" - }, - "kind": { - "description": "Identifies what kind of resource this is. Value: the fixed string \"dfareporting#deepLink\".", - "type": "string" - }, - "mobileApp": { - "$ref": "MobileApp", - "description": "The mobile app targeted by this deep link." - }, - "remarketingListIds": { - "description": "Ads served to users on these remarketing lists will use this deep link. Applicable when mobileApp.directory is APPLE_APP_STORE.", - "items": { - "format": "int64", - "type": "string" - }, - "type": "array" - } - }, - "type": "object" - }, - "DefaultClickThroughEventTagProperties": { - "description": "Properties of inheriting and overriding the default click-through event tag. A campaign may override the event tag defined at the advertiser level, and an ad may also override the campaign's setting further.", - "id": "DefaultClickThroughEventTagProperties", - "properties": { - "defaultClickThroughEventTagId": { - "description": "ID of the click-through event tag to apply to all ads in this entity's scope.", - "format": "int64", - "type": "string" - }, - "overrideInheritedEventTag": { - "description": "Whether this entity should override the inherited default click-through event tag with its own defined value.", - "type": "boolean" - } - }, - "type": "object" - }, - "DeliverySchedule": { - "description": "Delivery Schedule.", - "id": "DeliverySchedule", - "properties": { - "frequencyCap": { - "$ref": "FrequencyCap", - "description": "Limit on the number of times an individual user can be served the ad within a specified period of time." - }, - "hardCutoff": { - "description": "Whether or not hard cutoff is enabled. If true, the ad will not serve after the end date and time. Otherwise the ad will continue to be served until it has reached its delivery goals.", - "type": "boolean" - }, - "impressionRatio": { - "description": "Impression ratio for this ad. This ratio determines how often each ad is served relative to the others. For example, if ad A has an impression ratio of 1 and ad B has an impression ratio of 3, then Campaign Manager will serve ad B three times as often as ad A. Acceptable values are 1 to 10, inclusive.", - "format": "int64", - "type": "string" - }, - "priority": { - "description": "Serving priority of an ad, with respect to other ads. The lower the priority number, the greater the priority with which it is served.", - "enum": [ - "AD_PRIORITY_01", - "AD_PRIORITY_02", - "AD_PRIORITY_03", - "AD_PRIORITY_04", - "AD_PRIORITY_05", - "AD_PRIORITY_06", - "AD_PRIORITY_07", - "AD_PRIORITY_08", - "AD_PRIORITY_09", - "AD_PRIORITY_10", - "AD_PRIORITY_11", - "AD_PRIORITY_12", - "AD_PRIORITY_13", - "AD_PRIORITY_14", - "AD_PRIORITY_15", - "AD_PRIORITY_16" - ], - "enumDescriptions": [ - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "" - ], - "type": "string" - } - }, - "type": "object" - }, - "DfpSettings": { - "description": "Google Ad Manager Settings", - "id": "DfpSettings", - "properties": { - "dfpNetworkCode": { - "description": "Ad Manager network code for this directory site.", - "type": "string" - }, - "dfpNetworkName": { - "description": "Ad Manager network name for this directory site.", - "type": "string" - }, - "programmaticPlacementAccepted": { - "description": "Whether this directory site accepts programmatic placements.", - "type": "boolean" - }, - "pubPaidPlacementAccepted": { - "description": "Whether this directory site accepts publisher-paid tags.", - "type": "boolean" - }, - "publisherPortalOnly": { - "description": "Whether this directory site is available only via Publisher Portal.", - "type": "boolean" - } - }, - "type": "object" - }, - "Dimension": { - "description": "Represents a dimension.", - "id": "Dimension", - "properties": { - "kind": { - "description": "The kind of resource this is, in this case dfareporting#dimension.", - "type": "string" - }, - "name": { - "description": "The dimension name, e.g. dfa:advertiser", - "type": "string" - } - }, - "type": "object" - }, - "DimensionFilter": { - "description": "Represents a dimension filter.", - "id": "DimensionFilter", - "properties": { - "dimensionName": { - "description": "The name of the dimension to filter.", - "type": "string" - }, - "kind": { - "description": "The kind of resource this is, in this case dfareporting#dimensionFilter.", - "type": "string" - }, - "value": { - "description": "The value of the dimension to filter.", - "type": "string" - } - }, - "type": "object" - }, - "DimensionValue": { - "description": "Represents a DimensionValue resource.", - "id": "DimensionValue", - "properties": { - "dimensionName": { - "description": "The name of the dimension.", - "type": "string" - }, - "etag": { - "description": "The eTag of this response for caching purposes.", - "type": "string" - }, - "id": { - "description": "The ID associated with the value if available.", - "type": "string" - }, - "kind": { - "description": "The kind of resource this is, in this case dfareporting#dimensionValue.", - "type": "string" - }, - "matchType": { - "description": "Determines how the 'value' field is matched when filtering. If not specified, defaults to EXACT. If set to WILDCARD_EXPRESSION, '*' is allowed as a placeholder for variable length character sequences, and it can be escaped with a backslash. Note, only paid search dimensions ('dfa:paidSearch*') allow a matchType other than EXACT.", - "enum": [ - "EXACT", - "BEGINS_WITH", - "CONTAINS", - "WILDCARD_EXPRESSION" - ], - "enumDescriptions": [ - "", - "", - "", - "" - ], - "type": "string" - }, - "value": { - "description": "The value of the dimension.", - "type": "string" - } - }, - "type": "object" - }, - "DimensionValueList": { - "description": "Represents the list of DimensionValue resources.", - "id": "DimensionValueList", - "properties": { - "etag": { - "description": "The eTag of this response for caching purposes.", - "type": "string" - }, - "items": { - "description": "The dimension values returned in this response.", - "items": { - "$ref": "DimensionValue" - }, - "type": "array" - }, - "kind": { - "description": "The kind of list this is, in this case dfareporting#dimensionValueList.", - "type": "string" - }, - "nextPageToken": { - "description": "Continuation token used to page through dimension values. To retrieve the next page of results, set the next request's \"pageToken\" to the value of this field. The page token is only valid for a limited amount of time and should not be persisted.", - "type": "string" - } - }, - "type": "object" - }, - "DimensionValueRequest": { - "description": "Represents a DimensionValuesRequest.", - "id": "DimensionValueRequest", - "properties": { - "dimensionName": { - "annotations": { - "required": [ - "dfareporting.dimensionValues.query" - ] - }, - "description": "The name of the dimension for which values should be requested.", - "type": "string" - }, - "endDate": { - "format": "date", - "type": "string" - }, - "filters": { - "description": "The list of filters by which to filter values. The filters are ANDed.", - "items": { - "$ref": "DimensionFilter" - }, - "type": "array" - }, - "kind": { - "description": "The kind of request this is, in this case dfareporting#dimensionValueRequest .", - "type": "string" - }, - "startDate": { - "format": "date", - "type": "string" - } - }, - "type": "object" - }, - "DirectorySite": { - "description": "DirectorySites contains properties of a website from the Site Directory. Sites need to be added to an account via the Sites resource before they can be assigned to a placement.", - "id": "DirectorySite", - "properties": { - "id": { - "description": "ID of this directory site. This is a read-only, auto-generated field.", - "format": "int64", - "type": "string" - }, - "idDimensionValue": { - "$ref": "DimensionValue", - "description": "Dimension value for the ID of this directory site. This is a read-only, auto-generated field." - }, - "inpageTagFormats": { - "description": "Tag types for regular placements. Acceptable values are: - \"STANDARD\" - \"IFRAME_JAVASCRIPT_INPAGE\" - \"INTERNAL_REDIRECT_INPAGE\" - \"JAVASCRIPT_INPAGE\" ", - "items": { - "enum": [ - "STANDARD", - "IFRAME_JAVASCRIPT_INPAGE", - "INTERNAL_REDIRECT_INPAGE", - "JAVASCRIPT_INPAGE" - ], - "enumDescriptions": [ - "", - "", - "", - "" - ], - "type": "string" - }, - "type": "array" - }, - "interstitialTagFormats": { - "description": "Tag types for interstitial placements. Acceptable values are: - \"IFRAME_JAVASCRIPT_INTERSTITIAL\" - \"INTERNAL_REDIRECT_INTERSTITIAL\" - \"JAVASCRIPT_INTERSTITIAL\" ", - "items": { - "enum": [ - "IFRAME_JAVASCRIPT_INTERSTITIAL", - "INTERNAL_REDIRECT_INTERSTITIAL", - "JAVASCRIPT_INTERSTITIAL" - ], - "enumDescriptions": [ - "", - "", - "" - ], - "type": "string" - }, - "type": "array" - }, - "kind": { - "description": "Identifies what kind of resource this is. Value: the fixed string \"dfareporting#directorySite\".", - "type": "string" - }, - "name": { - "description": "Name of this directory site.", - "type": "string" - }, - "settings": { - "$ref": "DirectorySiteSettings", - "description": "Directory site settings." - }, - "url": { - "description": "URL of this directory site.", - "type": "string" - } - }, - "type": "object" - }, - "DirectorySiteSettings": { - "description": "Directory Site Settings", - "id": "DirectorySiteSettings", - "properties": { - "activeViewOptOut": { - "description": "Whether this directory site has disabled active view creatives.", - "type": "boolean" - }, - "dfpSettings": { - "$ref": "DfpSettings", - "description": "Directory site Ad Manager settings." - }, - "instreamVideoPlacementAccepted": { - "description": "Whether this site accepts in-stream video ads.", - "type": "boolean" - }, - "interstitialPlacementAccepted": { - "description": "Whether this site accepts interstitial ads.", - "type": "boolean" - } - }, - "type": "object" - }, - "DirectorySitesListResponse": { - "description": "Directory Site List Response", - "id": "DirectorySitesListResponse", - "properties": { - "directorySites": { - "description": "Directory site collection.", - "items": { - "$ref": "DirectorySite" - }, - "type": "array" - }, - "kind": { - "description": "Identifies what kind of resource this is. Value: the fixed string \"dfareporting#directorySitesListResponse\".", - "type": "string" - }, - "nextPageToken": { - "description": "Pagination token to be used for the next list operation.", - "type": "string" - } - }, - "type": "object" - }, - "DisjunctiveMatchStatement": { - "description": "Represents a Disjunctive Match Statement resource, which is a conjunction (and) of disjunctive (or) boolean statements.", - "id": "DisjunctiveMatchStatement", - "properties": { - "eventFilters": { - "description": "The event filters contained within this disjunctive match statement.", - "items": { - "$ref": "EventFilter" - }, - "type": "array" - }, - "kind": { - "description": "The kind of resource this is, in this case dfareporting#disjunctiveMatchStatement.", - "type": "string" - } - }, - "type": "object" - }, - "DynamicTargetingKey": { - "description": "Contains properties of a dynamic targeting key. Dynamic targeting keys are unique, user-friendly labels, created at the advertiser level in DCM, that can be assigned to ads, creatives, and placements and used for targeting with Studio dynamic creatives. Use these labels instead of numeric Campaign Manager IDs (such as placement IDs) to save time and avoid errors in your dynamic feeds.", - "id": "DynamicTargetingKey", - "properties": { - "kind": { - "description": "Identifies what kind of resource this is. Value: the fixed string \"dfareporting#dynamicTargetingKey\".", - "type": "string" - }, - "name": { - "description": "Name of this dynamic targeting key. This is a required field. Must be less than 256 characters long and cannot contain commas. All characters are converted to lowercase.", - "type": "string" - }, - "objectId": { - "description": "ID of the object of this dynamic targeting key. This is a required field.", - "format": "int64", - "type": "string" - }, - "objectType": { - "description": "Type of the object of this dynamic targeting key. This is a required field.", - "enum": [ - "OBJECT_ADVERTISER", - "OBJECT_AD", - "OBJECT_CREATIVE", - "OBJECT_PLACEMENT" - ], - "enumDescriptions": [ - "", - "", - "", - "" - ], - "type": "string" - } - }, - "type": "object" - }, - "DynamicTargetingKeysListResponse": { - "description": "Dynamic Targeting Key List Response", - "id": "DynamicTargetingKeysListResponse", - "properties": { - "dynamicTargetingKeys": { - "description": "Dynamic targeting key collection.", - "items": { - "$ref": "DynamicTargetingKey" - }, - "type": "array" - }, - "kind": { - "description": "Identifies what kind of resource this is. Value: the fixed string \"dfareporting#dynamicTargetingKeysListResponse\".", - "type": "string" - } - }, - "type": "object" - }, - "EncryptionInfo": { - "description": "A description of how user IDs are encrypted.", - "id": "EncryptionInfo", - "properties": { - "encryptionEntityId": { - "description": "The encryption entity ID. This should match the encryption configuration for ad serving or Data Transfer.", - "format": "int64", - "type": "string" - }, - "encryptionEntityType": { - "description": "The encryption entity type. This should match the encryption configuration for ad serving or Data Transfer.", - "enum": [ - "ENCRYPTION_ENTITY_TYPE_UNKNOWN", - "DCM_ACCOUNT", - "DCM_ADVERTISER", - "DBM_PARTNER", - "DBM_ADVERTISER", - "ADWORDS_CUSTOMER", - "DFP_NETWORK_CODE" - ], - "enumDescriptions": [ - "", - "", - "", - "", - "", - "", - "" - ], - "type": "string" - }, - "encryptionSource": { - "description": "Describes whether the encrypted cookie was received from ad serving (the %m macro) or from Data Transfer.", - "enum": [ - "ENCRYPTION_SCOPE_UNKNOWN", - "AD_SERVING", - "DATA_TRANSFER" - ], - "enumDescriptions": [ - "", - "", - "" - ], - "type": "string" - }, - "kind": { - "description": "Identifies what kind of resource this is. Value: the fixed string \"dfareporting#encryptionInfo\".", - "type": "string" - } - }, - "type": "object" - }, - "EventFilter": { - "description": "Represents a DfaReporting event filter.", - "id": "EventFilter", - "properties": { - "dimensionFilter": { - "$ref": "PathReportDimensionValue", - "description": "The dimension filter contained within this EventFilter." - }, - "kind": { - "description": "The kind of resource this is, in this case dfareporting#eventFilter.", - "type": "string" - } - }, - "type": "object" - }, - "EventTag": { - "description": "Contains properties of an event tag.", - "id": "EventTag", - "properties": { - "accountId": { - "description": "Account ID of this event tag. This is a read-only field that can be left blank.", - "format": "int64", - "type": "string" - }, - "advertiserId": { - "description": "Advertiser ID of this event tag. This field or the campaignId field is required on insertion.", - "format": "int64", - "type": "string" - }, - "advertiserIdDimensionValue": { - "$ref": "DimensionValue", - "description": "Dimension value for the ID of the advertiser. This is a read-only, auto-generated field." - }, - "campaignId": { - "description": "Campaign ID of this event tag. This field or the advertiserId field is required on insertion.", - "format": "int64", - "type": "string" - }, - "campaignIdDimensionValue": { - "$ref": "DimensionValue", - "description": "Dimension value for the ID of the campaign. This is a read-only, auto-generated field." - }, - "enabledByDefault": { - "description": "Whether this event tag should be automatically enabled for all of the advertiser's campaigns and ads.", - "type": "boolean" - }, - "excludeFromAdxRequests": { - "description": "Whether to remove this event tag from ads that are trafficked through Display \u0026 Video 360 to Ad Exchange. This may be useful if the event tag uses a pixel that is unapproved for Ad Exchange bids on one or more networks, such as the Google Display Network.", - "type": "boolean" - }, - "id": { - "description": "ID of this event tag. This is a read-only, auto-generated field.", - "format": "int64", - "type": "string" - }, - "kind": { - "description": "Identifies what kind of resource this is. Value: the fixed string \"dfareporting#eventTag\".", - "type": "string" - }, - "name": { - "description": "Name of this event tag. This is a required field and must be less than 256 characters long.", - "type": "string" - }, - "siteFilterType": { - "description": "Site filter type for this event tag. If no type is specified then the event tag will be applied to all sites.", - "enum": [ - "ALLOWLIST", - "BLOCKLIST" - ], - "enumDescriptions": [ - "", - "" - ], - "type": "string" - }, - "siteIds": { - "description": "Filter list of site IDs associated with this event tag. The siteFilterType determines whether this is a allowlist or blocklist filter.", - "items": { - "format": "int64", - "type": "string" - }, - "type": "array" - }, - "sslCompliant": { - "description": "Whether this tag is SSL-compliant or not. This is a read-only field.", - "type": "boolean" - }, - "status": { - "description": "Status of this event tag. Must be ENABLED for this event tag to fire. This is a required field.", - "enum": [ - "ENABLED", - "DISABLED" - ], - "enumDescriptions": [ - "", - "" - ], - "type": "string" - }, - "subaccountId": { - "description": "Subaccount ID of this event tag. This is a read-only field that can be left blank.", - "format": "int64", - "type": "string" - }, - "type": { - "description": "Event tag type. Can be used to specify whether to use a third-party pixel, a third-party JavaScript URL, or a third-party click-through URL for either impression or click tracking. This is a required field.", - "enum": [ - "IMPRESSION_IMAGE_EVENT_TAG", - "IMPRESSION_JAVASCRIPT_EVENT_TAG", - "CLICK_THROUGH_EVENT_TAG" - ], - "enumDescriptions": [ - "", - "", - "" - ], - "type": "string" - }, - "url": { - "description": "Payload URL for this event tag. The URL on a click-through event tag should have a landing page URL appended to the end of it. This field is required on insertion.", - "type": "string" - }, - "urlEscapeLevels": { - "description": "Number of times the landing page URL should be URL-escaped before being appended to the click-through event tag URL. Only applies to click-through event tags as specified by the event tag type.", - "format": "int32", - "type": "integer" - } - }, - "type": "object" - }, - "EventTagOverride": { - "description": "Event tag override information.", - "id": "EventTagOverride", - "properties": { - "enabled": { - "description": "Whether this override is enabled.", - "type": "boolean" - }, - "id": { - "description": "ID of this event tag override. This is a read-only, auto-generated field.", - "format": "int64", - "type": "string" - } - }, - "type": "object" - }, - "EventTagsListResponse": { - "description": "Event Tag List Response", - "id": "EventTagsListResponse", - "properties": { - "eventTags": { - "description": "Event tag collection.", - "items": { - "$ref": "EventTag" - }, - "type": "array" - }, - "kind": { - "description": "Identifies what kind of resource this is. Value: the fixed string \"dfareporting#eventTagsListResponse\".", - "type": "string" - } - }, - "type": "object" - }, - "File": { - "description": "Represents a File resource. A file contains the metadata for a report run. It shows the status of the run and holds the URLs to the generated report data if the run is finished and the status is \"REPORT_AVAILABLE\".", - "id": "File", - "properties": { - "dateRange": { - "$ref": "DateRange", - "description": "The date range for which the file has report data. The date range will always be the absolute date range for which the report is run." - }, - "etag": { - "description": "Etag of this resource.", - "type": "string" - }, - "fileName": { - "description": "The filename of the file.", - "type": "string" - }, - "format": { - "description": "The output format of the report. Only available once the file is available.", - "enum": [ - "CSV", - "EXCEL" - ], - "enumDescriptions": [ - "", - "" - ], - "type": "string" - }, - "id": { - "description": "The unique ID of this report file.", - "format": "int64", - "type": "string" - }, - "kind": { - "description": "Identifies what kind of resource this is. Value: the fixed string \"dfareporting#file\".", - "type": "string" - }, - "lastModifiedTime": { - "description": "The timestamp in milliseconds since epoch when this file was last modified.", - "format": "int64", - "type": "string" - }, - "reportId": { - "description": "The ID of the report this file was generated from.", - "format": "int64", - "type": "string" - }, - "status": { - "description": "The status of the report file.", - "enum": [ - "PROCESSING", - "REPORT_AVAILABLE", - "FAILED", - "CANCELLED" - ], - "enumDescriptions": [ - "", - "", - "", - "" - ], - "type": "string" - }, - "urls": { - "description": "The URLs where the completed report file can be downloaded.", - "properties": { - "apiUrl": { - "description": "The URL for downloading the report data through the API.", - "type": "string" - }, - "browserUrl": { - "description": "The URL for downloading the report data through a browser.", - "type": "string" - } - }, - "type": "object" - } - }, - "type": "object" - }, - "FileList": { - "description": "List of files for a report.", - "id": "FileList", - "properties": { - "etag": { - "description": "Etag of this resource.", - "type": "string" - }, - "items": { - "description": "The files returned in this response.", - "items": { - "$ref": "File" - }, - "type": "array" - }, - "kind": { - "description": "Identifies what kind of resource this is. Value: the fixed string \"dfareporting#fileList\".", - "type": "string" - }, - "nextPageToken": { - "description": "Continuation token used to page through files. To retrieve the next page of results, set the next request's \"pageToken\" to the value of this field. The page token is only valid for a limited amount of time and should not be persisted.", - "type": "string" - } - }, - "type": "object" - }, - "Flight": { - "description": "Flight", - "id": "Flight", - "properties": { - "endDate": { - "format": "date", - "type": "string" - }, - "rateOrCost": { - "description": "Rate or cost of this flight.", - "format": "int64", - "type": "string" - }, - "startDate": { - "format": "date", - "type": "string" - }, - "units": { - "description": "Units of this flight.", - "format": "int64", - "type": "string" - } - }, - "type": "object" - }, - "FloodlightActivitiesGenerateTagResponse": { - "description": "Floodlight Activity GenerateTag Response", - "id": "FloodlightActivitiesGenerateTagResponse", - "properties": { - "floodlightActivityTag": { - "description": "Generated tag for this Floodlight activity. For global site tags, this is the event snippet.", - "type": "string" - }, - "globalSiteTagGlobalSnippet": { - "description": "The global snippet section of a global site tag. The global site tag sets new cookies on your domain, which will store a unique identifier for a user or the ad click that brought the user to your site. Learn more.", - "type": "string" - }, - "kind": { - "description": "Identifies what kind of resource this is. Value: the fixed string \"dfareporting#floodlightActivitiesGenerateTagResponse\".", - "type": "string" - } - }, - "type": "object" - }, - "FloodlightActivitiesListResponse": { - "description": "Floodlight Activity List Response", - "id": "FloodlightActivitiesListResponse", - "properties": { - "floodlightActivities": { - "description": "Floodlight activity collection.", - "items": { - "$ref": "FloodlightActivity" - }, - "type": "array" - }, - "kind": { - "description": "Identifies what kind of resource this is. Value: the fixed string \"dfareporting#floodlightActivitiesListResponse\".", - "type": "string" - }, - "nextPageToken": { - "description": "Pagination token to be used for the next list operation.", - "type": "string" - } - }, - "type": "object" - }, - "FloodlightActivity": { - "description": "Contains properties of a Floodlight activity.", - "id": "FloodlightActivity", - "properties": { - "accountId": { - "description": "Account ID of this floodlight activity. This is a read-only field that can be left blank.", - "format": "int64", - "type": "string" - }, - "advertiserId": { - "description": "Advertiser ID of this floodlight activity. If this field is left blank, the value will be copied over either from the activity group's advertiser or the existing activity's advertiser.", - "format": "int64", - "type": "string" - }, - "advertiserIdDimensionValue": { - "$ref": "DimensionValue", - "description": "Dimension value for the ID of the advertiser. This is a read-only, auto-generated field." - }, - "attributionEnabled": { - "description": "Whether the activity is enabled for attribution.", - "type": "boolean" - }, - "cacheBustingType": { - "description": "Code type used for cache busting in the generated tag. Applicable only when floodlightActivityGroupType is COUNTER and countingMethod is STANDARD_COUNTING or UNIQUE_COUNTING.", - "enum": [ - "JAVASCRIPT", - "ACTIVE_SERVER_PAGE", - "JSP", - "PHP", - "COLD_FUSION" - ], - "enumDescriptions": [ - "", - "", - "", - "", - "" - ], - "type": "string" - }, - "countingMethod": { - "description": "Counting method for conversions for this floodlight activity. This is a required field.", - "enum": [ - "STANDARD_COUNTING", - "UNIQUE_COUNTING", - "SESSION_COUNTING", - "TRANSACTIONS_COUNTING", - "ITEMS_SOLD_COUNTING" - ], - "enumDescriptions": [ - "", - "", - "", - "", - "" - ], - "type": "string" - }, - "defaultTags": { - "description": "Dynamic floodlight tags.", - "items": { - "$ref": "FloodlightActivityDynamicTag" - }, - "type": "array" - }, - "expectedUrl": { - "description": "URL where this tag will be deployed. If specified, must be less than 256 characters long.", - "type": "string" - }, - "floodlightActivityGroupId": { - "description": "Floodlight activity group ID of this floodlight activity. This is a required field.", - "format": "int64", - "type": "string" - }, - "floodlightActivityGroupName": { - "description": "Name of the associated floodlight activity group. This is a read-only field.", - "type": "string" - }, - "floodlightActivityGroupTagString": { - "description": "Tag string of the associated floodlight activity group. This is a read-only field.", - "type": "string" - }, - "floodlightActivityGroupType": { - "description": "Type of the associated floodlight activity group. This is a read-only field.", - "enum": [ - "COUNTER", - "SALE" - ], - "enumDescriptions": [ - "", - "" - ], - "type": "string" - }, - "floodlightConfigurationId": { - "description": "Floodlight configuration ID of this floodlight activity. If this field is left blank, the value will be copied over either from the activity group's floodlight configuration or from the existing activity's floodlight configuration.", - "format": "int64", - "type": "string" - }, - "floodlightConfigurationIdDimensionValue": { - "$ref": "DimensionValue", - "description": "Dimension value for the ID of the floodlight configuration. This is a read-only, auto-generated field." - }, - "floodlightTagType": { - "description": "The type of Floodlight tag this activity will generate. This is a required field.", - "enum": [ - "IFRAME", - "IMAGE", - "GLOBAL_SITE_TAG" - ], - "enumDescriptions": [ - "", - "", - "" - ], - "type": "string" - }, - "id": { - "description": "ID of this floodlight activity. This is a read-only, auto-generated field.", - "format": "int64", - "type": "string" - }, - "idDimensionValue": { - "$ref": "DimensionValue", - "description": "Dimension value for the ID of this floodlight activity. This is a read-only, auto-generated field." - }, - "kind": { - "description": "Identifies what kind of resource this is. Value: the fixed string \"dfareporting#floodlightActivity\".", - "type": "string" - }, - "name": { - "description": "Name of this floodlight activity. This is a required field. Must be less than 129 characters long and cannot contain quotes.", - "type": "string" - }, - "notes": { - "description": "General notes or implementation instructions for the tag.", - "type": "string" - }, - "publisherTags": { - "description": "Publisher dynamic floodlight tags.", - "items": { - "$ref": "FloodlightActivityPublisherDynamicTag" - }, - "type": "array" - }, - "secure": { - "description": "Whether this tag should use SSL.", - "type": "boolean" - }, - "sslCompliant": { - "description": "Whether the floodlight activity is SSL-compliant. This is a read-only field, its value detected by the system from the floodlight tags.", - "type": "boolean" - }, - "sslRequired": { - "description": "Whether this floodlight activity must be SSL-compliant.", - "type": "boolean" - }, - "status": { - "description": "The status of the activity. This can only be set to ACTIVE or ARCHIVED_AND_DISABLED. The ARCHIVED status is no longer supported and cannot be set for Floodlight activities. The DISABLED_POLICY status indicates that a Floodlight activity is violating Google policy. Contact your account manager for more information.", - "enum": [ - "ACTIVE", - "ARCHIVED_AND_DISABLED", - "ARCHIVED", - "DISABLED_POLICY" - ], - "enumDescriptions": [ - "", - "", - "", - "" - ], - "type": "string" - }, - "subaccountId": { - "description": "Subaccount ID of this floodlight activity. This is a read-only field that can be left blank.", - "format": "int64", - "type": "string" - }, - "tagFormat": { - "description": "Tag format type for the floodlight activity. If left blank, the tag format will default to HTML.", - "enum": [ - "HTML", - "XHTML" - ], - "enumDescriptions": [ - "", - "" - ], - "type": "string" - }, - "tagString": { - "description": "Value of the cat= parameter in the floodlight tag, which the ad servers use to identify the activity. This is optional: if empty, a new tag string will be generated for you. This string must be 1 to 8 characters long, with valid characters being a-z0-9[ _ ]. This tag string must also be unique among activities of the same activity group. This field is read-only after insertion.", - "type": "string" - }, - "userDefinedVariableTypes": { - "description": "List of the user-defined variables used by this conversion tag. These map to the \"u[1-100]=\" in the tags. Each of these can have a user defined type. Acceptable values are U1 to U100, inclusive. ", - "items": { - "enum": [ - "U1", - "U2", - "U3", - "U4", - "U5", - "U6", - "U7", - "U8", - "U9", - "U10", - "U11", - "U12", - "U13", - "U14", - "U15", - "U16", - "U17", - "U18", - "U19", - "U20", - "U21", - "U22", - "U23", - "U24", - "U25", - "U26", - "U27", - "U28", - "U29", - "U30", - "U31", - "U32", - "U33", - "U34", - "U35", - "U36", - "U37", - "U38", - "U39", - "U40", - "U41", - "U42", - "U43", - "U44", - "U45", - "U46", - "U47", - "U48", - "U49", - "U50", - "U51", - "U52", - "U53", - "U54", - "U55", - "U56", - "U57", - "U58", - "U59", - "U60", - "U61", - "U62", - "U63", - "U64", - "U65", - "U66", - "U67", - "U68", - "U69", - "U70", - "U71", - "U72", - "U73", - "U74", - "U75", - "U76", - "U77", - "U78", - "U79", - "U80", - "U81", - "U82", - "U83", - "U84", - "U85", - "U86", - "U87", - "U88", - "U89", - "U90", - "U91", - "U92", - "U93", - "U94", - "U95", - "U96", - "U97", - "U98", - "U99", - "U100" - ], - "enumDescriptions": [ - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "" - ], - "type": "string" - }, - "type": "array" - } - }, - "type": "object" - }, - "FloodlightActivityDynamicTag": { - "description": "Dynamic Tag", - "id": "FloodlightActivityDynamicTag", - "properties": { - "id": { - "description": "ID of this dynamic tag. This is a read-only, auto-generated field.", - "format": "int64", - "type": "string" - }, - "name": { - "description": "Name of this tag.", - "type": "string" - }, - "tag": { - "description": "Tag code.", - "type": "string" - } - }, - "type": "object" - }, - "FloodlightActivityGroup": { - "description": "Contains properties of a Floodlight activity group.", - "id": "FloodlightActivityGroup", - "properties": { - "accountId": { - "description": "Account ID of this floodlight activity group. This is a read-only field that can be left blank.", - "format": "int64", - "type": "string" - }, - "advertiserId": { - "description": "Advertiser ID of this floodlight activity group. If this field is left blank, the value will be copied over either from the floodlight configuration's advertiser or from the existing activity group's advertiser.", - "format": "int64", - "type": "string" - }, - "advertiserIdDimensionValue": { - "$ref": "DimensionValue", - "description": "Dimension value for the ID of the advertiser. This is a read-only, auto-generated field." - }, - "floodlightConfigurationId": { - "description": "Floodlight configuration ID of this floodlight activity group. This is a required field.", - "format": "int64", - "type": "string" - }, - "floodlightConfigurationIdDimensionValue": { - "$ref": "DimensionValue", - "description": "Dimension value for the ID of the floodlight configuration. This is a read-only, auto-generated field." - }, - "id": { - "description": "ID of this floodlight activity group. This is a read-only, auto-generated field.", - "format": "int64", - "type": "string" - }, - "idDimensionValue": { - "$ref": "DimensionValue", - "description": "Dimension value for the ID of this floodlight activity group. This is a read-only, auto-generated field." - }, - "kind": { - "description": "Identifies what kind of resource this is. Value: the fixed string \"dfareporting#floodlightActivityGroup\".", - "type": "string" - }, - "name": { - "description": "Name of this floodlight activity group. This is a required field. Must be less than 65 characters long and cannot contain quotes.", - "type": "string" - }, - "subaccountId": { - "description": "Subaccount ID of this floodlight activity group. This is a read-only field that can be left blank.", - "format": "int64", - "type": "string" - }, - "tagString": { - "description": "Value of the type= parameter in the floodlight tag, which the ad servers use to identify the activity group that the activity belongs to. This is optional: if empty, a new tag string will be generated for you. This string must be 1 to 8 characters long, with valid characters being a-z0-9[ _ ]. This tag string must also be unique among activity groups of the same floodlight configuration. This field is read-only after insertion.", - "type": "string" - }, - "type": { - "description": "Type of the floodlight activity group. This is a required field that is read-only after insertion.", - "enum": [ - "COUNTER", - "SALE" - ], - "enumDescriptions": [ - "", - "" - ], - "type": "string" - } - }, - "type": "object" - }, - "FloodlightActivityGroupsListResponse": { - "description": "Floodlight Activity Group List Response", - "id": "FloodlightActivityGroupsListResponse", - "properties": { - "floodlightActivityGroups": { - "description": "Floodlight activity group collection.", - "items": { - "$ref": "FloodlightActivityGroup" - }, - "type": "array" - }, - "kind": { - "description": "Identifies what kind of resource this is. Value: the fixed string \"dfareporting#floodlightActivityGroupsListResponse\".", - "type": "string" - }, - "nextPageToken": { - "description": "Pagination token to be used for the next list operation.", - "type": "string" - } - }, - "type": "object" - }, - "FloodlightActivityPublisherDynamicTag": { - "description": "Publisher Dynamic Tag", - "id": "FloodlightActivityPublisherDynamicTag", - "properties": { - "clickThrough": { - "description": "Whether this tag is applicable only for click-throughs.", - "type": "boolean" - }, - "directorySiteId": { - "description": "Directory site ID of this dynamic tag. This is a write-only field that can be used as an alternative to the siteId field. When this resource is retrieved, only the siteId field will be populated.", - "format": "int64", - "type": "string" - }, - "dynamicTag": { - "$ref": "FloodlightActivityDynamicTag", - "description": "Dynamic floodlight tag." - }, - "siteId": { - "description": "Site ID of this dynamic tag.", - "format": "int64", - "type": "string" - }, - "siteIdDimensionValue": { - "$ref": "DimensionValue", - "description": "Dimension value for the ID of the site. This is a read-only, auto-generated field." - }, - "viewThrough": { - "description": "Whether this tag is applicable only for view-throughs.", - "type": "boolean" - } - }, - "type": "object" - }, - "FloodlightConfiguration": { - "description": "Contains properties of a Floodlight configuration.", - "id": "FloodlightConfiguration", - "properties": { - "accountId": { - "description": "Account ID of this floodlight configuration. This is a read-only field that can be left blank.", - "format": "int64", - "type": "string" - }, - "advertiserId": { - "description": "Advertiser ID of the parent advertiser of this floodlight configuration.", - "format": "int64", - "type": "string" - }, - "advertiserIdDimensionValue": { - "$ref": "DimensionValue", - "description": "Dimension value for the ID of the advertiser. This is a read-only, auto-generated field." - }, - "analyticsDataSharingEnabled": { - "description": "Whether advertiser data is shared with Google Analytics.", - "type": "boolean" - }, - "customViewabilityMetric": { - "$ref": "CustomViewabilityMetric", - "description": "Custom Viewability metric for the floodlight configuration." - }, - "exposureToConversionEnabled": { - "description": "Whether the exposure-to-conversion report is enabled. This report shows detailed pathway information on up to 10 of the most recent ad exposures seen by a user before converting.", - "type": "boolean" - }, - "firstDayOfWeek": { - "description": "Day that will be counted as the first day of the week in reports. This is a required field.", - "enum": [ - "MONDAY", - "SUNDAY" - ], - "enumDescriptions": [ - "", - "" - ], - "type": "string" - }, - "id": { - "description": "ID of this floodlight configuration. This is a read-only, auto-generated field.", - "format": "int64", - "type": "string" - }, - "idDimensionValue": { - "$ref": "DimensionValue", - "description": "Dimension value for the ID of this floodlight configuration. This is a read-only, auto-generated field." - }, - "inAppAttributionTrackingEnabled": { - "description": "Whether in-app attribution tracking is enabled.", - "type": "boolean" - }, - "kind": { - "description": "Identifies what kind of resource this is. Value: the fixed string \"dfareporting#floodlightConfiguration\".", - "type": "string" - }, - "lookbackConfiguration": { - "$ref": "LookbackConfiguration", - "description": "Lookback window settings for this floodlight configuration." - }, - "naturalSearchConversionAttributionOption": { - "description": "Types of attribution options for natural search conversions.", - "enum": [ - "EXCLUDE_NATURAL_SEARCH_CONVERSION_ATTRIBUTION", - "INCLUDE_NATURAL_SEARCH_CONVERSION_ATTRIBUTION", - "INCLUDE_NATURAL_SEARCH_TIERED_CONVERSION_ATTRIBUTION" - ], - "enumDescriptions": [ - "", - "", - "" - ], - "type": "string" - }, - "omnitureSettings": { - "$ref": "OmnitureSettings", - "description": "Settings for Campaign Manager Omniture integration." - }, - "subaccountId": { - "description": "Subaccount ID of this floodlight configuration. This is a read-only field that can be left blank.", - "format": "int64", - "type": "string" - }, - "tagSettings": { - "$ref": "TagSettings", - "description": "Configuration settings for dynamic and image floodlight tags." - }, - "thirdPartyAuthenticationTokens": { - "description": "List of third-party authentication tokens enabled for this configuration.", - "items": { - "$ref": "ThirdPartyAuthenticationToken" - }, - "type": "array" - }, - "userDefinedVariableConfigurations": { - "description": "List of user defined variables enabled for this configuration.", - "items": { - "$ref": "UserDefinedVariableConfiguration" - }, - "type": "array" - } - }, - "type": "object" - }, - "FloodlightConfigurationsListResponse": { - "description": "Floodlight Configuration List Response", - "id": "FloodlightConfigurationsListResponse", - "properties": { - "floodlightConfigurations": { - "description": "Floodlight configuration collection.", - "items": { - "$ref": "FloodlightConfiguration" - }, - "type": "array" - }, - "kind": { - "description": "Identifies what kind of resource this is. Value: the fixed string \"dfareporting#floodlightConfigurationsListResponse\".", - "type": "string" - } - }, - "type": "object" - }, - "FloodlightReportCompatibleFields": { - "description": "Represents fields that are compatible to be selected for a report of type \"FlOODLIGHT\".", - "id": "FloodlightReportCompatibleFields", - "properties": { - "dimensionFilters": { - "description": "Dimensions which are compatible to be selected in the \"dimensionFilters\" section of the report.", - "items": { - "$ref": "Dimension" - }, - "type": "array" - }, - "dimensions": { - "description": "Dimensions which are compatible to be selected in the \"dimensions\" section of the report.", - "items": { - "$ref": "Dimension" - }, - "type": "array" - }, - "kind": { - "description": "The kind of resource this is, in this case dfareporting#floodlightReportCompatibleFields.", - "type": "string" - }, - "metrics": { - "description": "Metrics which are compatible to be selected in the \"metricNames\" section of the report.", - "items": { - "$ref": "Metric" - }, - "type": "array" - } - }, - "type": "object" - }, - "FrequencyCap": { - "description": "Frequency Cap.", - "id": "FrequencyCap", - "properties": { - "duration": { - "description": "Duration of time, in seconds, for this frequency cap. The maximum duration is 90 days. Acceptable values are 1 to 7776000, inclusive.", - "format": "int64", - "type": "string" - }, - "impressions": { - "description": "Number of times an individual user can be served the ad within the specified duration. Acceptable values are 1 to 15, inclusive.", - "format": "int64", - "type": "string" - } - }, - "type": "object" - }, - "FsCommand": { - "description": "FsCommand.", - "id": "FsCommand", - "properties": { - "left": { - "description": "Distance from the left of the browser.Applicable when positionOption is DISTANCE_FROM_TOP_LEFT_CORNER.", - "format": "int32", - "type": "integer" - }, - "positionOption": { - "description": "Position in the browser where the window will open.", - "enum": [ - "CENTERED", - "DISTANCE_FROM_TOP_LEFT_CORNER" - ], - "enumDescriptions": [ - "", - "" - ], - "type": "string" - }, - "top": { - "description": "Distance from the top of the browser. Applicable when positionOption is DISTANCE_FROM_TOP_LEFT_CORNER.", - "format": "int32", - "type": "integer" - }, - "windowHeight": { - "description": "Height of the window.", - "format": "int32", - "type": "integer" - }, - "windowWidth": { - "description": "Width of the window.", - "format": "int32", - "type": "integer" - } - }, - "type": "object" - }, - "GeoTargeting": { - "description": "Geographical Targeting.", - "id": "GeoTargeting", - "properties": { - "cities": { - "description": "Cities to be targeted. For each city only dartId is required. The other fields are populated automatically when the ad is inserted or updated. If targeting a city, do not target or exclude the country of the city, and do not target the metro or region of the city.", - "items": { - "$ref": "City" - }, - "type": "array" - }, - "countries": { - "description": "Countries to be targeted or excluded from targeting, depending on the setting of the excludeCountries field. For each country only dartId is required. The other fields are populated automatically when the ad is inserted or updated. If targeting or excluding a country, do not target regions, cities, metros, or postal codes in the same country.", - "items": { - "$ref": "Country" - }, - "type": "array" - }, - "excludeCountries": { - "description": "Whether or not to exclude the countries in the countries field from targeting. If false, the countries field refers to countries which will be targeted by the ad.", - "type": "boolean" - }, - "metros": { - "description": "Metros to be targeted. For each metro only dmaId is required. The other fields are populated automatically when the ad is inserted or updated. If targeting a metro, do not target or exclude the country of the metro.", - "items": { - "$ref": "Metro" - }, - "type": "array" - }, - "postalCodes": { - "description": "Postal codes to be targeted. For each postal code only id is required. The other fields are populated automatically when the ad is inserted or updated. If targeting a postal code, do not target or exclude the country of the postal code.", - "items": { - "$ref": "PostalCode" - }, - "type": "array" - }, - "regions": { - "description": "Regions to be targeted. For each region only dartId is required. The other fields are populated automatically when the ad is inserted or updated. If targeting a region, do not target or exclude the country of the region.", - "items": { - "$ref": "Region" - }, - "type": "array" - } - }, - "type": "object" - }, - "InventoryItem": { - "description": "Represents a buy from the Planning inventory store.", - "id": "InventoryItem", - "properties": { - "accountId": { - "description": "Account ID of this inventory item.", - "format": "int64", - "type": "string" - }, - "adSlots": { - "description": "Ad slots of this inventory item. If this inventory item represents a standalone placement, there will be exactly one ad slot. If this inventory item represents a placement group, there will be more than one ad slot, each representing one child placement in that placement group.", - "items": { - "$ref": "AdSlot" - }, - "type": "array" - }, - "advertiserId": { - "description": "Advertiser ID of this inventory item.", - "format": "int64", - "type": "string" - }, - "contentCategoryId": { - "description": "Content category ID of this inventory item.", - "format": "int64", - "type": "string" - }, - "estimatedClickThroughRate": { - "description": "Estimated click-through rate of this inventory item.", - "format": "int64", - "type": "string" - }, - "estimatedConversionRate": { - "description": "Estimated conversion rate of this inventory item.", - "format": "int64", - "type": "string" - }, - "id": { - "description": "ID of this inventory item.", - "format": "int64", - "type": "string" - }, - "inPlan": { - "description": "Whether this inventory item is in plan.", - "type": "boolean" - }, - "kind": { - "description": "Identifies what kind of resource this is. Value: the fixed string \"dfareporting#inventoryItem\".", - "type": "string" - }, - "lastModifiedInfo": { - "$ref": "LastModifiedInfo", - "description": "Information about the most recent modification of this inventory item." - }, - "name": { - "description": "Name of this inventory item. For standalone inventory items, this is the same name as that of its only ad slot. For group inventory items, this can differ from the name of any of its ad slots.", - "type": "string" - }, - "negotiationChannelId": { - "description": "Negotiation channel ID of this inventory item.", - "format": "int64", - "type": "string" - }, - "orderId": { - "description": "Order ID of this inventory item.", - "format": "int64", - "type": "string" - }, - "placementStrategyId": { - "description": "Placement strategy ID of this inventory item.", - "format": "int64", - "type": "string" - }, - "pricing": { - "$ref": "Pricing", - "description": "Pricing of this inventory item." - }, - "projectId": { - "description": "Project ID of this inventory item.", - "format": "int64", - "type": "string" - }, - "rfpId": { - "description": "RFP ID of this inventory item.", - "format": "int64", - "type": "string" - }, - "siteId": { - "description": "ID of the site this inventory item is associated with.", - "format": "int64", - "type": "string" - }, - "subaccountId": { - "description": "Subaccount ID of this inventory item.", - "format": "int64", - "type": "string" - }, - "type": { - "description": "Type of inventory item.", - "enum": [ - "PLANNING_PLACEMENT_TYPE_REGULAR", - "PLANNING_PLACEMENT_TYPE_CREDIT" - ], - "enumDescriptions": [ - "", - "" - ], - "type": "string" - } - }, - "type": "object" - }, - "InventoryItemsListResponse": { - "description": "Inventory item List Response", - "id": "InventoryItemsListResponse", - "properties": { - "inventoryItems": { - "description": "Inventory item collection", - "items": { - "$ref": "InventoryItem" - }, - "type": "array" - }, - "kind": { - "description": "Identifies what kind of resource this is. Value: the fixed string \"dfareporting#inventoryItemsListResponse\".", - "type": "string" - }, - "nextPageToken": { - "description": "Pagination token to be used for the next list operation.", - "type": "string" - } - }, - "type": "object" - }, - "KeyValueTargetingExpression": { - "description": "Key Value Targeting Expression.", - "id": "KeyValueTargetingExpression", - "properties": { - "expression": { - "description": "Keyword expression being targeted by the ad.", - "type": "string" - } - }, - "type": "object" - }, - "LandingPage": { - "description": "Contains information about where a user's browser is taken after the user clicks an ad.", - "id": "LandingPage", - "properties": { - "advertiserId": { - "description": "Advertiser ID of this landing page. This is a required field.", - "format": "int64", - "type": "string" - }, - "archived": { - "description": "Whether this landing page has been archived.", - "type": "boolean" - }, - "deepLinks": { - "description": "Links that will direct the user to a mobile app, if installed.", - "items": { - "$ref": "DeepLink" - }, - "type": "array" - }, - "id": { - "description": "ID of this landing page. This is a read-only, auto-generated field.", - "format": "int64", - "type": "string" - }, - "kind": { - "description": "Identifies what kind of resource this is. Value: the fixed string \"dfareporting#landingPage\".", - "type": "string" - }, - "name": { - "description": "Name of this landing page. This is a required field. It must be less than 256 characters long.", - "type": "string" - }, - "url": { - "description": "URL of this landing page. This is a required field.", - "type": "string" - } - }, - "type": "object" - }, - "Language": { - "description": "Contains information about a language that can be targeted by ads.", - "id": "Language", - "properties": { - "id": { - "description": "Language ID of this language. This is the ID used for targeting and generating reports.", - "format": "int64", - "type": "string" - }, - "kind": { - "description": "Identifies what kind of resource this is. Value: the fixed string \"dfareporting#language\".", - "type": "string" - }, - "languageCode": { - "description": "Format of language code is an ISO 639 two-letter language code optionally followed by an underscore followed by an ISO 3166 code. Examples are \"en\" for English or \"zh_CN\" for Simplified Chinese.", - "type": "string" - }, - "name": { - "description": "Name of this language.", - "type": "string" - } - }, - "type": "object" - }, - "LanguageTargeting": { - "description": "Language Targeting.", - "id": "LanguageTargeting", - "properties": { - "languages": { - "description": "Languages that this ad targets. For each language only languageId is required. The other fields are populated automatically when the ad is inserted or updated.", - "items": { - "$ref": "Language" - }, - "type": "array" - } - }, - "type": "object" - }, - "LanguagesListResponse": { - "description": "Language List Response", - "id": "LanguagesListResponse", - "properties": { - "kind": { - "description": "Identifies what kind of resource this is. Value: the fixed string \"dfareporting#languagesListResponse\".", - "type": "string" - }, - "languages": { - "description": "Language collection.", - "items": { - "$ref": "Language" - }, - "type": "array" - } - }, - "type": "object" - }, - "LastModifiedInfo": { - "description": "Modification timestamp.", - "id": "LastModifiedInfo", - "properties": { - "time": { - "description": "Timestamp of the last change in milliseconds since epoch.", - "format": "int64", - "type": "string" - } - }, - "type": "object" - }, - "ListPopulationClause": { - "description": "A group clause made up of list population terms representing constraints joined by ORs.", - "id": "ListPopulationClause", - "properties": { - "terms": { - "description": "Terms of this list population clause. Each clause is made up of list population terms representing constraints and are joined by ORs.", - "items": { - "$ref": "ListPopulationTerm" - }, - "type": "array" - } - }, - "type": "object" - }, - "ListPopulationRule": { - "description": "Remarketing List Population Rule.", - "id": "ListPopulationRule", - "properties": { - "floodlightActivityId": { - "description": "Floodlight activity ID associated with this rule. This field can be left blank.", - "format": "int64", - "type": "string" - }, - "floodlightActivityName": { - "description": "Name of floodlight activity associated with this rule. This is a read-only, auto-generated field.", - "type": "string" - }, - "listPopulationClauses": { - "description": "Clauses that make up this list population rule. Clauses are joined by ANDs, and the clauses themselves are made up of list population terms which are joined by ORs.", - "items": { - "$ref": "ListPopulationClause" - }, - "type": "array" - } - }, - "type": "object" - }, - "ListPopulationTerm": { - "description": "Remarketing List Population Rule Term.", - "id": "ListPopulationTerm", - "properties": { - "contains": { - "description": "Will be true if the term should check if the user is in the list and false if the term should check if the user is not in the list. This field is only relevant when type is set to LIST_MEMBERSHIP_TERM. False by default.", - "type": "boolean" - }, - "negation": { - "description": "Whether to negate the comparison result of this term during rule evaluation. This field is only relevant when type is left unset or set to CUSTOM_VARIABLE_TERM or REFERRER_TERM.", - "type": "boolean" - }, - "operator": { - "description": "Comparison operator of this term. This field is only relevant when type is left unset or set to CUSTOM_VARIABLE_TERM or REFERRER_TERM.", - "enum": [ - "NUM_EQUALS", - "NUM_LESS_THAN", - "NUM_LESS_THAN_EQUAL", - "NUM_GREATER_THAN", - "NUM_GREATER_THAN_EQUAL", - "STRING_EQUALS", - "STRING_CONTAINS" - ], - "enumDescriptions": [ - "", - "", - "", - "", - "", - "", - "" - ], - "type": "string" - }, - "remarketingListId": { - "description": "ID of the list in question. This field is only relevant when type is set to LIST_MEMBERSHIP_TERM.", - "format": "int64", - "type": "string" - }, - "type": { - "description": "List population term type determines the applicable fields in this object. If left unset or set to CUSTOM_VARIABLE_TERM, then variableName, variableFriendlyName, operator, value, and negation are applicable. If set to LIST_MEMBERSHIP_TERM then remarketingListId and contains are applicable. If set to REFERRER_TERM then operator, value, and negation are applicable.", - "enum": [ - "CUSTOM_VARIABLE_TERM", - "LIST_MEMBERSHIP_TERM", - "REFERRER_TERM" - ], - "enumDescriptions": [ - "", - "", - "" - ], - "type": "string" - }, - "value": { - "description": "Literal to compare the variable to. This field is only relevant when type is left unset or set to CUSTOM_VARIABLE_TERM or REFERRER_TERM.", - "type": "string" - }, - "variableFriendlyName": { - "description": "Friendly name of this term's variable. This is a read-only, auto-generated field. This field is only relevant when type is left unset or set to CUSTOM_VARIABLE_TERM.", - "type": "string" - }, - "variableName": { - "description": "Name of the variable (U1, U2, etc.) being compared in this term. This field is only relevant when type is set to null, CUSTOM_VARIABLE_TERM or REFERRER_TERM.", - "type": "string" - } - }, - "type": "object" - }, - "ListTargetingExpression": { - "description": "Remarketing List Targeting Expression.", - "id": "ListTargetingExpression", - "properties": { - "expression": { - "description": "Expression describing which lists are being targeted by the ad.", - "type": "string" - } - }, - "type": "object" - }, - "LookbackConfiguration": { - "description": "Lookback configuration settings.", - "id": "LookbackConfiguration", - "properties": { - "clickDuration": { - "description": "Lookback window, in days, from the last time a given user clicked on one of your ads. If you enter 0, clicks will not be considered as triggering events for floodlight tracking. If you leave this field blank, the default value for your account will be used. Acceptable values are 0 to 90, inclusive.", - "format": "int32", - "type": "integer" - }, - "postImpressionActivitiesDuration": { - "description": "Lookback window, in days, from the last time a given user viewed one of your ads. If you enter 0, impressions will not be considered as triggering events for floodlight tracking. If you leave this field blank, the default value for your account will be used. Acceptable values are 0 to 90, inclusive.", - "format": "int32", - "type": "integer" - } - }, - "type": "object" - }, - "MeasurementPartnerAdvertiserLink": { - "id": "MeasurementPartnerAdvertiserLink", - "properties": { - "linkStatus": { - "description": ".", - "enum": [ - "MEASUREMENT_PARTNER_UNLINKED", - "MEASUREMENT_PARTNER_LINKED", - "MEASUREMENT_PARTNER_LINK_PENDING", - "MEASUREMENT_PARTNER_LINK_FAILURE", - "MEASUREMENT_PARTNER_LINK_OPT_OUT", - "MEASUREMENT_PARTNER_LINK_OPT_OUT_PENDING", - "MEASUREMENT_PARTNER_LINK_WRAPPING_PENDING", - "MEASUREMENT_PARTNER_MODE_CHANGE_PENDING" - ], - "enumDescriptions": [ - "", - "", - "", - "", - "", - "", - "", - "" - ], - "type": "string" - }, - "measurementPartner": { - "description": "Measurement partner used for tag wrapping.", - "enum": [ - "NONE", - "INTEGRAL_AD_SCIENCE", - "DOUBLE_VERIFY" - ], - "enumDescriptions": [ - "", - "", - "" - ], - "type": "string" - }, - "partnerAdvertiserId": { - "description": ".", - "type": "string" - } - }, - "type": "object" - }, - "MeasurementPartnerCampaignLink": { - "id": "MeasurementPartnerCampaignLink", - "properties": { - "linkStatus": { - "description": ".", - "enum": [ - "MEASUREMENT_PARTNER_UNLINKED", - "MEASUREMENT_PARTNER_LINKED", - "MEASUREMENT_PARTNER_LINK_PENDING", - "MEASUREMENT_PARTNER_LINK_FAILURE", - "MEASUREMENT_PARTNER_LINK_OPT_OUT", - "MEASUREMENT_PARTNER_LINK_OPT_OUT_PENDING", - "MEASUREMENT_PARTNER_LINK_WRAPPING_PENDING", - "MEASUREMENT_PARTNER_MODE_CHANGE_PENDING" - ], - "enumDescriptions": [ - "", - "", - "", - "", - "", - "", - "", - "" - ], - "type": "string" - }, - "measurementPartner": { - "description": "Measurement partner used for tag wrapping.", - "enum": [ - "NONE", - "INTEGRAL_AD_SCIENCE", - "DOUBLE_VERIFY" - ], - "enumDescriptions": [ - "", - "", - "" - ], - "type": "string" - }, - "partnerCampaignId": { - "description": "Partner campaign ID needed for establishing linking with Measurement partner.", - "type": "string" - } - }, - "type": "object" - }, - "MeasurementPartnerWrappingData": { - "description": "Placement tag wrapping", - "id": "MeasurementPartnerWrappingData", - "properties": { - "linkStatus": { - "description": "Placement wrapping status.", - "enum": [ - "MEASUREMENT_PARTNER_UNLINKED", - "MEASUREMENT_PARTNER_LINKED", - "MEASUREMENT_PARTNER_LINK_PENDING", - "MEASUREMENT_PARTNER_LINK_FAILURE", - "MEASUREMENT_PARTNER_LINK_OPT_OUT", - "MEASUREMENT_PARTNER_LINK_OPT_OUT_PENDING", - "MEASUREMENT_PARTNER_LINK_WRAPPING_PENDING", - "MEASUREMENT_PARTNER_MODE_CHANGE_PENDING" - ], - "enumDescriptions": [ - "", - "", - "", - "", - "", - "", - "", - "" - ], - "type": "string" - }, - "measurementPartner": { - "description": "Measurement partner used for wrapping the placement.", - "enum": [ - "NONE", - "INTEGRAL_AD_SCIENCE", - "DOUBLE_VERIFY" - ], - "enumDescriptions": [ - "", - "", - "" - ], - "type": "string" - }, - "tagWrappingMode": { - "description": "Measurement mode for the wrapped placement.", - "enum": [ - "NONE", - "BLOCKING", - "MONITORING", - "MONITORING_ONLY", - "VIDEO_PIXEL_MONITORING", - "TRACKING", - "VPAID_MONITORING", - "VPAID_BLOCKING", - "NON_VPAID_MONITORING", - "VPAID_ONLY_MONITORING", - "VPAID_ONLY_BLOCKING", - "VPAID_ONLY_FILTERING", - "VPAID_FILTERING", - "NON_VPAID_FILTERING" - ], - "enumDescriptions": [ - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "" - ], - "type": "string" - }, - "wrappedTag": { - "description": "Tag provided by the measurement partner during wrapping.", - "type": "string" - } - }, - "type": "object" - }, - "Metric": { - "description": "Represents a metric.", - "id": "Metric", - "properties": { - "kind": { - "description": "The kind of resource this is, in this case dfareporting#metric.", - "type": "string" - }, - "name": { - "description": "The metric name, e.g. dfa:impressions", - "type": "string" - } - }, - "type": "object" - }, - "Metro": { - "description": "Contains information about a metro region that can be targeted by ads.", - "id": "Metro", - "properties": { - "countryCode": { - "description": "Country code of the country to which this metro region belongs.", - "type": "string" - }, - "countryDartId": { - "description": "DART ID of the country to which this metro region belongs.", - "format": "int64", - "type": "string" - }, - "dartId": { - "description": "DART ID of this metro region.", - "format": "int64", - "type": "string" - }, - "dmaId": { - "description": "DMA ID of this metro region. This is the ID used for targeting and generating reports, and is equivalent to metro_code.", - "format": "int64", - "type": "string" - }, - "kind": { - "description": "Identifies what kind of resource this is. Value: the fixed string \"dfareporting#metro\".", - "type": "string" - }, - "metroCode": { - "description": "Metro code of this metro region. This is equivalent to dma_id.", - "type": "string" - }, - "name": { - "description": "Name of this metro region.", - "type": "string" - } - }, - "type": "object" - }, - "MetrosListResponse": { - "description": "Metro List Response", - "id": "MetrosListResponse", - "properties": { - "kind": { - "description": "Identifies what kind of resource this is. Value: the fixed string \"dfareporting#metrosListResponse\".", - "type": "string" - }, - "metros": { - "description": "Metro collection.", - "items": { - "$ref": "Metro" - }, - "type": "array" - } - }, - "type": "object" - }, - "MobileApp": { - "description": "Contains information about a mobile app. Used as a landing page deep link.", - "id": "MobileApp", - "properties": { - "directory": { - "description": "Mobile app directory.", - "enum": [ - "UNKNOWN", - "APPLE_APP_STORE", - "GOOGLE_PLAY_STORE", - "ROKU_APP_STORE", - "AMAZON_FIRETV_APP_STORE", - "PLAYSTATION_APP_STORE", - "APPLE_TV_APP_STORE", - "XBOX_APP_STORE", - "SAMSUNG_TV_APP_STORE", - "ANDROID_TV_APP_STORE", - "GENERIC_CTV_APP_STORE" - ], - "enumDescriptions": [ - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "" - ], - "type": "string" - }, - "id": { - "description": "ID of this mobile app.", - "type": "string" - }, - "kind": { - "description": "Identifies what kind of resource this is. Value: the fixed string \"dfareporting#mobileApp\".", - "type": "string" - }, - "publisherName": { - "description": "Publisher name.", - "type": "string" - }, - "title": { - "description": "Title of this mobile app.", - "type": "string" - } - }, - "type": "object" - }, - "MobileAppsListResponse": { - "description": "Mobile app List Response", - "id": "MobileAppsListResponse", - "properties": { - "kind": { - "description": "Identifies what kind of resource this is. Value: the fixed string \"dfareporting#mobileAppsListResponse\".", - "type": "string" - }, - "mobileApps": { - "description": "Mobile apps collection.", - "items": { - "$ref": "MobileApp" - }, - "type": "array" - }, - "nextPageToken": { - "description": "Pagination token to be used for the next list operation.", - "type": "string" - } - }, - "type": "object" - }, - "MobileCarrier": { - "description": "Contains information about a mobile carrier that can be targeted by ads.", - "id": "MobileCarrier", - "properties": { - "countryCode": { - "description": "Country code of the country to which this mobile carrier belongs.", - "type": "string" - }, - "countryDartId": { - "description": "DART ID of the country to which this mobile carrier belongs.", - "format": "int64", - "type": "string" - }, - "id": { - "description": "ID of this mobile carrier.", - "format": "int64", - "type": "string" - }, - "kind": { - "description": "Identifies what kind of resource this is. Value: the fixed string \"dfareporting#mobileCarrier\".", - "type": "string" - }, - "name": { - "description": "Name of this mobile carrier.", - "type": "string" - } - }, - "type": "object" - }, - "MobileCarriersListResponse": { - "description": "Mobile Carrier List Response", - "id": "MobileCarriersListResponse", - "properties": { - "kind": { - "description": "Identifies what kind of resource this is. Value: the fixed string \"dfareporting#mobileCarriersListResponse\".", - "type": "string" - }, - "mobileCarriers": { - "description": "Mobile carrier collection.", - "items": { - "$ref": "MobileCarrier" - }, - "type": "array" - } - }, - "type": "object" - }, - "ObaIcon": { - "description": "Online Behavioral Advertiser icon.", - "id": "ObaIcon", - "properties": { - "iconClickThroughUrl": { - "description": "URL to redirect to when an OBA icon is clicked.", - "type": "string" - }, - "iconClickTrackingUrl": { - "description": "URL to track click when an OBA icon is clicked.", - "type": "string" - }, - "iconViewTrackingUrl": { - "description": "URL to track view when an OBA icon is clicked.", - "type": "string" - }, - "program": { - "description": "Identifies the industry initiative that the icon supports. For example, AdChoices.", - "type": "string" - }, - "resourceUrl": { - "description": "OBA icon resource URL. Campaign Manager only supports image and JavaScript icons. Learn more", - "type": "string" - }, - "size": { - "$ref": "Size", - "description": "OBA icon size." - }, - "xPosition": { - "description": "OBA icon x coordinate position. Accepted values are left or right.", - "type": "string" - }, - "yPosition": { - "description": "OBA icon y coordinate position. Accepted values are top or bottom.", - "type": "string" - } - }, - "type": "object" - }, - "ObjectFilter": { - "description": "Object Filter.", - "id": "ObjectFilter", - "properties": { - "kind": { - "description": "Identifies what kind of resource this is. Value: the fixed string \"dfareporting#objectFilter\".", - "type": "string" - }, - "objectIds": { - "description": "Applicable when status is ASSIGNED. The user has access to objects with these object IDs.", - "items": { - "format": "int64", - "type": "string" - }, - "type": "array" - }, - "status": { - "description": "Status of the filter. NONE means the user has access to none of the objects. ALL means the user has access to all objects. ASSIGNED means the user has access to the objects with IDs in the objectIds list.", - "enum": [ - "NONE", - "ASSIGNED", - "ALL" - ], - "enumDescriptions": [ - "", - "", - "" - ], - "type": "string" - } - }, - "type": "object" - }, - "OffsetPosition": { - "description": "Offset Position.", - "id": "OffsetPosition", - "properties": { - "left": { - "description": "Offset distance from left side of an asset or a window.", - "format": "int32", - "type": "integer" - }, - "top": { - "description": "Offset distance from top side of an asset or a window.", - "format": "int32", - "type": "integer" - } - }, - "type": "object" - }, - "OmnitureSettings": { - "description": "Omniture Integration Settings.", - "id": "OmnitureSettings", - "properties": { - "omnitureCostDataEnabled": { - "description": "Whether placement cost data will be sent to Omniture. This property can be enabled only if omnitureIntegrationEnabled is true.", - "type": "boolean" - }, - "omnitureIntegrationEnabled": { - "description": "Whether Omniture integration is enabled. This property can be enabled only when the \"Advanced Ad Serving\" account setting is enabled.", - "type": "boolean" - } - }, - "type": "object" - }, - "OperatingSystem": { - "description": "Contains information about an operating system that can be targeted by ads.", - "id": "OperatingSystem", - "properties": { - "dartId": { - "description": "DART ID of this operating system. This is the ID used for targeting.", - "format": "int64", - "type": "string" - }, - "desktop": { - "description": "Whether this operating system is for desktop.", - "type": "boolean" - }, - "kind": { - "description": "Identifies what kind of resource this is. Value: the fixed string \"dfareporting#operatingSystem\".", - "type": "string" - }, - "mobile": { - "description": "Whether this operating system is for mobile.", - "type": "boolean" - }, - "name": { - "description": "Name of this operating system.", - "type": "string" - } - }, - "type": "object" - }, - "OperatingSystemVersion": { - "description": "Contains information about a particular version of an operating system that can be targeted by ads.", - "id": "OperatingSystemVersion", - "properties": { - "id": { - "description": "ID of this operating system version.", - "format": "int64", - "type": "string" - }, - "kind": { - "description": "Identifies what kind of resource this is. Value: the fixed string \"dfareporting#operatingSystemVersion\".", - "type": "string" - }, - "majorVersion": { - "description": "Major version (leftmost number) of this operating system version.", - "type": "string" - }, - "minorVersion": { - "description": "Minor version (number after the first dot) of this operating system version.", - "type": "string" - }, - "name": { - "description": "Name of this operating system version.", - "type": "string" - }, - "operatingSystem": { - "$ref": "OperatingSystem", - "description": "Operating system of this operating system version." - } - }, - "type": "object" - }, - "OperatingSystemVersionsListResponse": { - "description": "Operating System Version List Response", - "id": "OperatingSystemVersionsListResponse", - "properties": { - "kind": { - "description": "Identifies what kind of resource this is. Value: the fixed string \"dfareporting#operatingSystemVersionsListResponse\".", - "type": "string" - }, - "operatingSystemVersions": { - "description": "Operating system version collection.", - "items": { - "$ref": "OperatingSystemVersion" - }, - "type": "array" - } - }, - "type": "object" - }, - "OperatingSystemsListResponse": { - "description": "Operating System List Response", - "id": "OperatingSystemsListResponse", - "properties": { - "kind": { - "description": "Identifies what kind of resource this is. Value: the fixed string \"dfareporting#operatingSystemsListResponse\".", - "type": "string" - }, - "operatingSystems": { - "description": "Operating system collection.", - "items": { - "$ref": "OperatingSystem" - }, - "type": "array" - } - }, - "type": "object" - }, - "OptimizationActivity": { - "description": "Creative optimization activity.", - "id": "OptimizationActivity", - "properties": { - "floodlightActivityId": { - "description": "Floodlight activity ID of this optimization activity. This is a required field.", - "format": "int64", - "type": "string" - }, - "floodlightActivityIdDimensionValue": { - "$ref": "DimensionValue", - "description": "Dimension value for the ID of the floodlight activity. This is a read-only, auto-generated field." - }, - "weight": { - "description": "Weight associated with this optimization. The weight assigned will be understood in proportion to the weights assigned to the other optimization activities. Value must be greater than or equal to 1.", - "format": "int32", - "type": "integer" - } - }, - "type": "object" - }, - "Order": { - "description": "Describes properties of a Planning order.", - "id": "Order", - "properties": { - "accountId": { - "description": "Account ID of this order.", - "format": "int64", - "type": "string" - }, - "advertiserId": { - "description": "Advertiser ID of this order.", - "format": "int64", - "type": "string" - }, - "approverUserProfileIds": { - "description": "IDs for users that have to approve documents created for this order.", - "items": { - "format": "int64", - "type": "string" - }, - "type": "array" - }, - "buyerInvoiceId": { - "description": "Buyer invoice ID associated with this order.", - "type": "string" - }, - "buyerOrganizationName": { - "description": "Name of the buyer organization.", - "type": "string" - }, - "comments": { - "description": "Comments in this order.", - "type": "string" - }, - "contacts": { - "description": "Contacts for this order.", - "items": { - "$ref": "OrderContact" - }, - "type": "array" - }, - "id": { - "description": "ID of this order. This is a read-only, auto-generated field.", - "format": "int64", - "type": "string" - }, - "kind": { - "description": "Identifies what kind of resource this is. Value: the fixed string \"dfareporting#order\".", - "type": "string" - }, - "lastModifiedInfo": { - "$ref": "LastModifiedInfo", - "description": "Information about the most recent modification of this order." - }, - "name": { - "description": "Name of this order.", - "type": "string" - }, - "notes": { - "description": "Notes of this order.", - "type": "string" - }, - "planningTermId": { - "description": "ID of the terms and conditions template used in this order.", - "format": "int64", - "type": "string" - }, - "projectId": { - "description": "Project ID of this order.", - "format": "int64", - "type": "string" - }, - "sellerOrderId": { - "description": "Seller order ID associated with this order.", - "type": "string" - }, - "sellerOrganizationName": { - "description": "Name of the seller organization.", - "type": "string" - }, - "siteId": { - "description": "Site IDs this order is associated with.", - "items": { - "format": "int64", - "type": "string" - }, - "type": "array" - }, - "siteNames": { - "description": "Free-form site names this order is associated with.", - "items": { - "type": "string" - }, - "type": "array" - }, - "subaccountId": { - "description": "Subaccount ID of this order.", - "format": "int64", - "type": "string" - }, - "termsAndConditions": { - "description": "Terms and conditions of this order.", - "type": "string" - } - }, - "type": "object" - }, - "OrderContact": { - "description": "Contact of an order.", - "id": "OrderContact", - "properties": { - "contactInfo": { - "description": "Free-form information about this contact. It could be any information related to this contact in addition to type, title, name, and signature user profile ID.", - "type": "string" - }, - "contactName": { - "description": "Name of this contact.", - "type": "string" - }, - "contactTitle": { - "description": "Title of this contact.", - "type": "string" - }, - "contactType": { - "description": "Type of this contact.", - "enum": [ - "PLANNING_ORDER_CONTACT_BUYER_CONTACT", - "PLANNING_ORDER_CONTACT_BUYER_BILLING_CONTACT", - "PLANNING_ORDER_CONTACT_SELLER_CONTACT" - ], - "enumDescriptions": [ - "", - "", - "" - ], - "type": "string" - }, - "signatureUserProfileId": { - "description": "ID of the user profile containing the signature that will be embedded into order documents.", - "format": "int64", - "type": "string" - } - }, - "type": "object" - }, - "OrderDocument": { - "description": "Contains properties of a Planning order document.", - "id": "OrderDocument", - "properties": { - "accountId": { - "description": "Account ID of this order document.", - "format": "int64", - "type": "string" - }, - "advertiserId": { - "description": "Advertiser ID of this order document.", - "format": "int64", - "type": "string" - }, - "amendedOrderDocumentId": { - "description": "The amended order document ID of this order document. An order document can be created by optionally amending another order document so that the change history can be preserved.", - "format": "int64", - "type": "string" - }, - "approvedByUserProfileIds": { - "description": "IDs of users who have approved this order document.", - "items": { - "format": "int64", - "type": "string" - }, - "type": "array" - }, - "cancelled": { - "description": "Whether this order document is cancelled.", - "type": "boolean" - }, - "createdInfo": { - "$ref": "LastModifiedInfo", - "description": "Information about the creation of this order document." - }, - "effectiveDate": { - "format": "date", - "type": "string" - }, - "id": { - "description": "ID of this order document.", - "format": "int64", - "type": "string" - }, - "kind": { - "description": "Identifies what kind of resource this is. Value: the fixed string \"dfareporting#orderDocument\".", - "type": "string" - }, - "lastSentRecipients": { - "description": "List of email addresses that received the last sent document.", - "items": { - "type": "string" - }, - "type": "array" - }, - "lastSentTime": { - "format": "date-time", - "type": "string" - }, - "orderId": { - "description": "ID of the order from which this order document is created.", - "format": "int64", - "type": "string" - }, - "projectId": { - "description": "Project ID of this order document.", - "format": "int64", - "type": "string" - }, - "signed": { - "description": "Whether this order document has been signed.", - "type": "boolean" - }, - "subaccountId": { - "description": "Subaccount ID of this order document.", - "format": "int64", - "type": "string" - }, - "title": { - "description": "Title of this order document.", - "type": "string" - }, - "type": { - "description": "Type of this order document", - "enum": [ - "PLANNING_ORDER_TYPE_INSERTION_ORDER", - "PLANNING_ORDER_TYPE_CHANGE_ORDER" - ], - "enumDescriptions": [ - "", - "" - ], - "type": "string" - } - }, - "type": "object" - }, - "OrderDocumentsListResponse": { - "description": "Order document List Response", - "id": "OrderDocumentsListResponse", - "properties": { - "kind": { - "description": "Identifies what kind of resource this is. Value: the fixed string \"dfareporting#orderDocumentsListResponse\".", - "type": "string" - }, - "nextPageToken": { - "description": "Pagination token to be used for the next list operation.", - "type": "string" - }, - "orderDocuments": { - "description": "Order document collection", - "items": { - "$ref": "OrderDocument" - }, - "type": "array" - } - }, - "type": "object" - }, - "OrdersListResponse": { - "description": "Order List Response", - "id": "OrdersListResponse", - "properties": { - "kind": { - "description": "Identifies what kind of resource this is. Value: the fixed string \"dfareporting#ordersListResponse\".", - "type": "string" - }, - "nextPageToken": { - "description": "Pagination token to be used for the next list operation.", - "type": "string" - }, - "orders": { - "description": "Order collection.", - "items": { - "$ref": "Order" - }, - "type": "array" - } - }, - "type": "object" - }, - "PathFilter": { - "description": "Represents a DfaReporting path filter.", - "id": "PathFilter", - "properties": { - "eventFilters": { - "description": "Event filters in path report.", - "items": { - "$ref": "EventFilter" - }, - "type": "array" - }, - "kind": { - "description": "The kind of resource this is, in this case dfareporting#pathFilter.", - "type": "string" - }, - "pathMatchPosition": { - "description": "Determines how the 'value' field is matched when filtering. If not specified, defaults to EXACT. If set to WILDCARD_EXPRESSION, '*' is allowed as a placeholder for variable length character sequences, and it can be escaped with a backslash. Note, only paid search dimensions ('dfa:paidSearch*') allow a matchType other than EXACT.", - "enum": [ - "PATH_MATCH_POSITION_UNSPECIFIED", - "ANY", - "FIRST", - "LAST" - ], - "enumDescriptions": [ - "", - "", - "", - "" - ], - "type": "string" - } - }, - "type": "object" - }, - "PathReportCompatibleFields": { - "description": "Represents fields that are compatible to be selected for a report of type \"PATH\".", - "id": "PathReportCompatibleFields", - "properties": { - "channelGroupings": { - "description": "Dimensions which are compatible to be selected in the \"channelGroupings\" section of the report.", - "items": { - "$ref": "Dimension" - }, - "type": "array" - }, - "dimensions": { - "description": "Dimensions which are compatible to be selected in the \"dimensions\" section of the report.", - "items": { - "$ref": "Dimension" - }, - "type": "array" - }, - "kind": { - "description": "The kind of resource this is, in this case dfareporting#pathReportCompatibleFields.", - "type": "string" - }, - "metrics": { - "description": "Metrics which are compatible to be selected in the \"metricNames\" section of the report.", - "items": { - "$ref": "Metric" - }, - "type": "array" - }, - "pathFilters": { - "description": "Dimensions which are compatible to be selected in the \"pathFilters\" section of the report.", - "items": { - "$ref": "Dimension" - }, - "type": "array" - } - }, - "type": "object" - }, - "PathReportDimensionValue": { - "description": "Represents a PathReportDimensionValue resource.", - "id": "PathReportDimensionValue", - "properties": { - "dimensionName": { - "description": "The name of the dimension.", - "type": "string" - }, - "ids": { - "description": "The possible ID's associated with the value if available.", - "items": { - "type": "string" - }, - "type": "array" - }, - "kind": { - "description": "The kind of resource this is, in this case dfareporting#pathReportDimensionValue.", - "type": "string" - }, - "matchType": { - "description": "Determines how the 'value' field is matched when filtering. If not specified, defaults to EXACT. If set to WILDCARD_EXPRESSION, '*' is allowed as a placeholder for variable length character sequences, and it can be escaped with a backslash. Note, only paid search dimensions ('dfa:paidSearch*') allow a matchType other than EXACT.", - "enum": [ - "EXACT", - "BEGINS_WITH", - "CONTAINS", - "WILDCARD_EXPRESSION" - ], - "enumDescriptions": [ - "", - "", - "", - "" - ], - "type": "string" - }, - "values": { - "description": "The possible values of the dimension.", - "items": { - "type": "string" - }, - "type": "array" - } - }, - "type": "object" - }, - "PathToConversionReportCompatibleFields": { - "description": "Represents fields that are compatible to be selected for a report of type \"PATH_TO_CONVERSION\".", - "id": "PathToConversionReportCompatibleFields", - "properties": { - "conversionDimensions": { - "description": "Conversion dimensions which are compatible to be selected in the \"conversionDimensions\" section of the report.", - "items": { - "$ref": "Dimension" - }, - "type": "array" - }, - "customFloodlightVariables": { - "description": "Custom floodlight variables which are compatible to be selected in the \"customFloodlightVariables\" section of the report.", - "items": { - "$ref": "Dimension" - }, - "type": "array" - }, - "kind": { - "description": "The kind of resource this is, in this case dfareporting#pathToConversionReportCompatibleFields.", - "type": "string" - }, - "metrics": { - "description": "Metrics which are compatible to be selected in the \"metricNames\" section of the report.", - "items": { - "$ref": "Metric" - }, - "type": "array" - }, - "perInteractionDimensions": { - "description": "Per-interaction dimensions which are compatible to be selected in the \"perInteractionDimensions\" section of the report.", - "items": { - "$ref": "Dimension" - }, - "type": "array" - } - }, - "type": "object" - }, - "Placement": { - "description": "Contains properties of a placement.", - "id": "Placement", - "properties": { - "accountId": { - "description": "Account ID of this placement. This field can be left blank.", - "format": "int64", - "type": "string" - }, - "adBlockingOptOut": { - "description": "Whether this placement opts out of ad blocking. When true, ad blocking is disabled for this placement. When false, the campaign and site settings take effect.", - "type": "boolean" - }, - "additionalSizes": { - "description": "Additional sizes associated with this placement. When inserting or updating a placement, only the size ID field is used.", - "items": { - "$ref": "Size" - }, - "type": "array" - }, - "advertiserId": { - "description": "Advertiser ID of this placement. This field can be left blank.", - "format": "int64", - "type": "string" - }, - "advertiserIdDimensionValue": { - "$ref": "DimensionValue", - "description": "Dimension value for the ID of the advertiser. This is a read-only, auto-generated field." - }, - "archived": { - "description": "Whether this placement is archived.", - "type": "boolean" - }, - "campaignId": { - "description": "Campaign ID of this placement. This field is a required field on insertion.", - "format": "int64", - "type": "string" - }, - "campaignIdDimensionValue": { - "$ref": "DimensionValue", - "description": "Dimension value for the ID of the campaign. This is a read-only, auto-generated field." - }, - "comment": { - "description": "Comments for this placement.", - "type": "string" - }, - "compatibility": { - "description": "Placement compatibility. DISPLAY and DISPLAY_INTERSTITIAL refer to rendering on desktop, on mobile devices or in mobile apps for regular or interstitial ads respectively. APP and APP_INTERSTITIAL are no longer allowed for new placement insertions. Instead, use DISPLAY or DISPLAY_INTERSTITIAL. IN_STREAM_VIDEO refers to rendering in in-stream video ads developed with the VAST standard. This field is required on insertion.", - "enum": [ - "DISPLAY", - "DISPLAY_INTERSTITIAL", - "APP", - "APP_INTERSTITIAL", - "IN_STREAM_VIDEO", - "IN_STREAM_AUDIO" - ], - "enumDescriptions": [ - "", - "", - "", - "", - "", - "" - ], - "type": "string" - }, - "contentCategoryId": { - "description": "ID of the content category assigned to this placement.", - "format": "int64", - "type": "string" - }, - "createInfo": { - "$ref": "LastModifiedInfo", - "description": "Information about the creation of this placement. This is a read-only field." - }, - "directorySiteId": { - "description": "Directory site ID of this placement. On insert, you must set either this field or the siteId field to specify the site associated with this placement. This is a required field that is read-only after insertion.", - "format": "int64", - "type": "string" - }, - "directorySiteIdDimensionValue": { - "$ref": "DimensionValue", - "description": "Dimension value for the ID of the directory site. This is a read-only, auto-generated field." - }, - "externalId": { - "description": "External ID for this placement.", - "type": "string" - }, - "id": { - "description": "ID of this placement. This is a read-only, auto-generated field.", - "format": "int64", - "type": "string" - }, - "idDimensionValue": { - "$ref": "DimensionValue", - "description": "Dimension value for the ID of this placement. This is a read-only, auto-generated field." - }, - "keyName": { - "description": "Key name of this placement. This is a read-only, auto-generated field.", - "type": "string" - }, - "kind": { - "description": "Identifies what kind of resource this is. Value: the fixed string \"dfareporting#placement\".", - "type": "string" - }, - "lastModifiedInfo": { - "$ref": "LastModifiedInfo", - "description": "Information about the most recent modification of this placement. This is a read-only field." - }, - "lookbackConfiguration": { - "$ref": "LookbackConfiguration", - "description": "Lookback window settings for this placement." - }, - "name": { - "description": "Name of this placement.This is a required field and must be less than or equal to 512 characters long.", - "type": "string" - }, - "partnerWrappingData": { - "$ref": "MeasurementPartnerWrappingData", - "description": "Measurement partner provided settings for a wrapped placement." - }, - "paymentApproved": { - "description": "Whether payment was approved for this placement. This is a read-only field relevant only to publisher-paid placements.", - "type": "boolean" - }, - "paymentSource": { - "description": "Payment source for this placement. This is a required field that is read-only after insertion.", - "enum": [ - "PLACEMENT_AGENCY_PAID", - "PLACEMENT_PUBLISHER_PAID" - ], - "enumDescriptions": [ - "", - "" - ], - "type": "string" - }, - "placementGroupId": { - "description": "ID of this placement's group, if applicable.", - "format": "int64", - "type": "string" - }, - "placementGroupIdDimensionValue": { - "$ref": "DimensionValue", - "description": "Dimension value for the ID of the placement group. This is a read-only, auto-generated field." - }, - "placementStrategyId": { - "description": "ID of the placement strategy assigned to this placement.", - "format": "int64", - "type": "string" - }, - "pricingSchedule": { - "$ref": "PricingSchedule", - "description": "Pricing schedule of this placement. This field is required on insertion, specifically subfields startDate, endDate and pricingType." - }, - "primary": { - "description": "Whether this placement is the primary placement of a roadblock (placement group). You cannot change this field from true to false. Setting this field to true will automatically set the primary field on the original primary placement of the roadblock to false, and it will automatically set the roadblock's primaryPlacementId field to the ID of this placement.", - "type": "boolean" - }, - "publisherUpdateInfo": { - "$ref": "LastModifiedInfo", - "description": "Information about the last publisher update. This is a read-only field." - }, - "siteId": { - "description": "Site ID associated with this placement. On insert, you must set either this field or the directorySiteId field to specify the site associated with this placement. This is a required field that is read-only after insertion.", - "format": "int64", - "type": "string" - }, - "siteIdDimensionValue": { - "$ref": "DimensionValue", - "description": "Dimension value for the ID of the site. This is a read-only, auto-generated field." - }, - "size": { - "$ref": "Size", - "description": "Size associated with this placement. When inserting or updating a placement, only the size ID field is used. This field is required on insertion." - }, - "sslRequired": { - "description": "Whether creatives assigned to this placement must be SSL-compliant.", - "type": "boolean" - }, - "status": { - "description": "Third-party placement status.", - "enum": [ - "PENDING_REVIEW", - "PAYMENT_ACCEPTED", - "PAYMENT_REJECTED", - "ACKNOWLEDGE_REJECTION", - "ACKNOWLEDGE_ACCEPTANCE", - "DRAFT" - ], - "enumDescriptions": [ - "", - "", - "", - "", - "", - "" - ], - "type": "string" - }, - "subaccountId": { - "description": "Subaccount ID of this placement. This field can be left blank.", - "format": "int64", - "type": "string" - }, - "tagFormats": { - "description": "Tag formats to generate for this placement. This field is required on insertion. Acceptable values are: - \"PLACEMENT_TAG_STANDARD\" - \"PLACEMENT_TAG_IFRAME_JAVASCRIPT\" - \"PLACEMENT_TAG_IFRAME_ILAYER\" - \"PLACEMENT_TAG_INTERNAL_REDIRECT\" - \"PLACEMENT_TAG_JAVASCRIPT\" - \"PLACEMENT_TAG_INTERSTITIAL_IFRAME_JAVASCRIPT\" - \"PLACEMENT_TAG_INTERSTITIAL_INTERNAL_REDIRECT\" - \"PLACEMENT_TAG_INTERSTITIAL_JAVASCRIPT\" - \"PLACEMENT_TAG_CLICK_COMMANDS\" - \"PLACEMENT_TAG_INSTREAM_VIDEO_PREFETCH\" - \"PLACEMENT_TAG_INSTREAM_VIDEO_PREFETCH_VAST_3\" - \"PLACEMENT_TAG_INSTREAM_VIDEO_PREFETCH_VAST_4\" - \"PLACEMENT_TAG_TRACKING\" - \"PLACEMENT_TAG_TRACKING_IFRAME\" - \"PLACEMENT_TAG_TRACKING_JAVASCRIPT\" ", - "items": { - "enum": [ - "PLACEMENT_TAG_STANDARD", - "PLACEMENT_TAG_IFRAME_JAVASCRIPT", - "PLACEMENT_TAG_IFRAME_ILAYER", - "PLACEMENT_TAG_INTERNAL_REDIRECT", - "PLACEMENT_TAG_JAVASCRIPT", - "PLACEMENT_TAG_INTERSTITIAL_IFRAME_JAVASCRIPT", - "PLACEMENT_TAG_INTERSTITIAL_INTERNAL_REDIRECT", - "PLACEMENT_TAG_INTERSTITIAL_JAVASCRIPT", - "PLACEMENT_TAG_CLICK_COMMANDS", - "PLACEMENT_TAG_INSTREAM_VIDEO_PREFETCH", - "PLACEMENT_TAG_TRACKING", - "PLACEMENT_TAG_TRACKING_IFRAME", - "PLACEMENT_TAG_TRACKING_JAVASCRIPT", - "PLACEMENT_TAG_INSTREAM_VIDEO_PREFETCH_VAST_3", - "PLACEMENT_TAG_IFRAME_JAVASCRIPT_LEGACY", - "PLACEMENT_TAG_JAVASCRIPT_LEGACY", - "PLACEMENT_TAG_INTERSTITIAL_IFRAME_JAVASCRIPT_LEGACY", - "PLACEMENT_TAG_INTERSTITIAL_JAVASCRIPT_LEGACY", - "PLACEMENT_TAG_INSTREAM_VIDEO_PREFETCH_VAST_4", - "PLACEMENT_TAG_TRACKING_THIRD_PARTY_MEASUREMENT" - ], - "enumDescriptions": [ - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "" - ], - "type": "string" - }, - "type": "array" - }, - "tagSetting": { - "$ref": "TagSetting", - "description": "Tag settings for this placement." - }, - "videoActiveViewOptOut": { - "description": "Whether Verification and ActiveView are disabled for in-stream video creatives for this placement. The same setting videoActiveViewOptOut exists on the site level -- the opt out occurs if either of these settings are true. These settings are distinct from DirectorySites.settings.activeViewOptOut or Sites.siteSettings.activeViewOptOut which only apply to display ads. However, Accounts.activeViewOptOut opts out both video traffic, as well as display ads, from Verification and ActiveView.", - "type": "boolean" - }, - "videoSettings": { - "$ref": "VideoSettings", - "description": "A collection of settings which affect video creatives served through this placement. Applicable to placements with IN_STREAM_VIDEO compatibility." - }, - "vpaidAdapterChoice": { - "description": "VPAID adapter setting for this placement. Controls which VPAID format the measurement adapter will use for in-stream video creatives assigned to this placement. *Note:* Flash is no longer supported. This field now defaults to HTML5 when the following values are provided: FLASH, BOTH.", - "enum": [ - "DEFAULT", - "FLASH", - "HTML5", - "BOTH" - ], - "enumDescriptions": [ - "", - "", - "", - "" - ], - "type": "string" - }, - "wrappingOptOut": { - "description": "Whether this placement opts out of tag wrapping.", - "type": "boolean" - } - }, - "type": "object" - }, - "PlacementAssignment": { - "description": "Placement Assignment.", - "id": "PlacementAssignment", - "properties": { - "active": { - "description": "Whether this placement assignment is active. When true, the placement will be included in the ad's rotation.", - "type": "boolean" - }, - "placementId": { - "description": "ID of the placement to be assigned. This is a required field.", - "format": "int64", - "type": "string" - }, - "placementIdDimensionValue": { - "$ref": "DimensionValue", - "description": "Dimension value for the ID of the placement. This is a read-only, auto-generated field." - }, - "sslRequired": { - "description": "Whether the placement to be assigned requires SSL. This is a read-only field that is auto-generated when the ad is inserted or updated.", - "type": "boolean" - } - }, - "type": "object" - }, - "PlacementGroup": { - "description": "Contains properties of a package or roadblock.", - "id": "PlacementGroup", - "properties": { - "accountId": { - "description": "Account ID of this placement group. This is a read-only field that can be left blank.", - "format": "int64", - "type": "string" - }, - "advertiserId": { - "description": "Advertiser ID of this placement group. This is a required field on insertion.", - "format": "int64", - "type": "string" - }, - "advertiserIdDimensionValue": { - "$ref": "DimensionValue", - "description": "Dimension value for the ID of the advertiser. This is a read-only, auto-generated field." - }, - "archived": { - "description": "Whether this placement group is archived.", - "type": "boolean" - }, - "campaignId": { - "description": "Campaign ID of this placement group. This field is required on insertion.", - "format": "int64", - "type": "string" - }, - "campaignIdDimensionValue": { - "$ref": "DimensionValue", - "description": "Dimension value for the ID of the campaign. This is a read-only, auto-generated field." - }, - "childPlacementIds": { - "description": "IDs of placements which are assigned to this placement group. This is a read-only, auto-generated field.", - "items": { - "format": "int64", - "type": "string" - }, - "type": "array" - }, - "comment": { - "description": "Comments for this placement group.", - "type": "string" - }, - "contentCategoryId": { - "description": "ID of the content category assigned to this placement group.", - "format": "int64", - "type": "string" - }, - "createInfo": { - "$ref": "LastModifiedInfo", - "description": "Information about the creation of this placement group. This is a read-only field." - }, - "directorySiteId": { - "description": "Directory site ID associated with this placement group. On insert, you must set either this field or the site_id field to specify the site associated with this placement group. This is a required field that is read-only after insertion.", - "format": "int64", - "type": "string" - }, - "directorySiteIdDimensionValue": { - "$ref": "DimensionValue", - "description": "Dimension value for the ID of the directory site. This is a read-only, auto-generated field." - }, - "externalId": { - "description": "External ID for this placement.", - "type": "string" - }, - "id": { - "description": "ID of this placement group. This is a read-only, auto-generated field.", - "format": "int64", - "type": "string" - }, - "idDimensionValue": { - "$ref": "DimensionValue", - "description": "Dimension value for the ID of this placement group. This is a read-only, auto-generated field." - }, - "kind": { - "description": "Identifies what kind of resource this is. Value: the fixed string \"dfareporting#placementGroup\".", - "type": "string" - }, - "lastModifiedInfo": { - "$ref": "LastModifiedInfo", - "description": "Information about the most recent modification of this placement group. This is a read-only field." - }, - "name": { - "description": "Name of this placement group. This is a required field and must be less than 256 characters long.", - "type": "string" - }, - "placementGroupType": { - "description": "Type of this placement group. A package is a simple group of placements that acts as a single pricing point for a group of tags. A roadblock is a group of placements that not only acts as a single pricing point, but also assumes that all the tags in it will be served at the same time. A roadblock requires one of its assigned placements to be marked as primary for reporting. This field is required on insertion.", - "enum": [ - "PLACEMENT_PACKAGE", - "PLACEMENT_ROADBLOCK" - ], - "enumDescriptions": [ - "", - "" - ], - "type": "string" - }, - "placementStrategyId": { - "description": "ID of the placement strategy assigned to this placement group.", - "format": "int64", - "type": "string" - }, - "pricingSchedule": { - "$ref": "PricingSchedule", - "description": "Pricing schedule of this placement group. This field is required on insertion." - }, - "primaryPlacementId": { - "description": "ID of the primary placement, used to calculate the media cost of a roadblock (placement group). Modifying this field will automatically modify the primary field on all affected roadblock child placements.", - "format": "int64", - "type": "string" - }, - "primaryPlacementIdDimensionValue": { - "$ref": "DimensionValue", - "description": "Dimension value for the ID of the primary placement. This is a read-only, auto-generated field." - }, - "siteId": { - "description": "Site ID associated with this placement group. On insert, you must set either this field or the directorySiteId field to specify the site associated with this placement group. This is a required field that is read-only after insertion.", - "format": "int64", - "type": "string" - }, - "siteIdDimensionValue": { - "$ref": "DimensionValue", - "description": "Dimension value for the ID of the site. This is a read-only, auto-generated field." - }, - "subaccountId": { - "description": "Subaccount ID of this placement group. This is a read-only field that can be left blank.", - "format": "int64", - "type": "string" - } - }, - "type": "object" - }, - "PlacementGroupsListResponse": { - "description": "Placement Group List Response", - "id": "PlacementGroupsListResponse", - "properties": { - "kind": { - "description": "Identifies what kind of resource this is. Value: the fixed string \"dfareporting#placementGroupsListResponse\".", - "type": "string" - }, - "nextPageToken": { - "description": "Pagination token to be used for the next list operation.", - "type": "string" - }, - "placementGroups": { - "description": "Placement group collection.", - "items": { - "$ref": "PlacementGroup" - }, - "type": "array" - } - }, - "type": "object" - }, - "PlacementStrategiesListResponse": { - "description": "Placement Strategy List Response", - "id": "PlacementStrategiesListResponse", - "properties": { - "kind": { - "description": "Identifies what kind of resource this is. Value: the fixed string \"dfareporting#placementStrategiesListResponse\".", - "type": "string" - }, - "nextPageToken": { - "description": "Pagination token to be used for the next list operation.", - "type": "string" - }, - "placementStrategies": { - "description": "Placement strategy collection.", - "items": { - "$ref": "PlacementStrategy" - }, - "type": "array" - } - }, - "type": "object" - }, - "PlacementStrategy": { - "description": "Contains properties of a placement strategy.", - "id": "PlacementStrategy", - "properties": { - "accountId": { - "description": "Account ID of this placement strategy.This is a read-only field that can be left blank.", - "format": "int64", - "type": "string" - }, - "id": { - "description": "ID of this placement strategy. This is a read-only, auto-generated field.", - "format": "int64", - "type": "string" - }, - "kind": { - "description": "Identifies what kind of resource this is. Value: the fixed string \"dfareporting#placementStrategy\".", - "type": "string" - }, - "name": { - "description": "Name of this placement strategy. This is a required field. It must be less than 256 characters long and unique among placement strategies of the same account.", - "type": "string" - } - }, - "type": "object" - }, - "PlacementTag": { - "description": "Placement Tag", - "id": "PlacementTag", - "properties": { - "placementId": { - "description": "Placement ID", - "format": "int64", - "type": "string" - }, - "tagDatas": { - "description": "Tags generated for this placement.", - "items": { - "$ref": "TagData" - }, - "type": "array" - } - }, - "type": "object" - }, - "PlacementsGenerateTagsResponse": { - "description": "Placement GenerateTags Response", - "id": "PlacementsGenerateTagsResponse", - "properties": { - "kind": { - "description": "Identifies what kind of resource this is. Value: the fixed string \"dfareporting#placementsGenerateTagsResponse\".", - "type": "string" - }, - "placementTags": { - "description": "Set of generated tags for the specified placements.", - "items": { - "$ref": "PlacementTag" - }, - "type": "array" - } - }, - "type": "object" - }, - "PlacementsListResponse": { - "description": "Placement List Response", - "id": "PlacementsListResponse", - "properties": { - "kind": { - "description": "Identifies what kind of resource this is. Value: the fixed string \"dfareporting#placementsListResponse\".", - "type": "string" - }, - "nextPageToken": { - "description": "Pagination token to be used for the next list operation.", - "type": "string" - }, - "placements": { - "description": "Placement collection.", - "items": { - "$ref": "Placement" - }, - "type": "array" - } - }, - "type": "object" - }, - "PlatformType": { - "description": "Contains information about a platform type that can be targeted by ads.", - "id": "PlatformType", - "properties": { - "id": { - "description": "ID of this platform type.", - "format": "int64", - "type": "string" - }, - "kind": { - "description": "Identifies what kind of resource this is. Value: the fixed string \"dfareporting#platformType\".", - "type": "string" - }, - "name": { - "description": "Name of this platform type.", - "type": "string" - } - }, - "type": "object" - }, - "PlatformTypesListResponse": { - "description": "Platform Type List Response", - "id": "PlatformTypesListResponse", - "properties": { - "kind": { - "description": "Identifies what kind of resource this is. Value: the fixed string \"dfareporting#platformTypesListResponse\".", - "type": "string" - }, - "platformTypes": { - "description": "Platform type collection.", - "items": { - "$ref": "PlatformType" - }, - "type": "array" - } - }, - "type": "object" - }, - "PopupWindowProperties": { - "description": "Popup Window Properties.", - "id": "PopupWindowProperties", - "properties": { - "dimension": { - "$ref": "Size", - "description": "Popup dimension for a creative. This is a read-only field. Applicable to the following creative types: all RICH_MEDIA and all VPAID" - }, - "offset": { - "$ref": "OffsetPosition", - "description": "Upper-left corner coordinates of the popup window. Applicable if positionType is COORDINATES." - }, - "positionType": { - "description": "Popup window position either centered or at specific coordinate.", - "enum": [ - "CENTER", - "COORDINATES" - ], - "enumDescriptions": [ - "", - "" - ], - "type": "string" - }, - "showAddressBar": { - "description": "Whether to display the browser address bar.", - "type": "boolean" - }, - "showMenuBar": { - "description": "Whether to display the browser menu bar.", - "type": "boolean" - }, - "showScrollBar": { - "description": "Whether to display the browser scroll bar.", - "type": "boolean" - }, - "showStatusBar": { - "description": "Whether to display the browser status bar.", - "type": "boolean" - }, - "showToolBar": { - "description": "Whether to display the browser tool bar.", - "type": "boolean" - }, - "title": { - "description": "Title of popup window.", - "type": "string" - } - }, - "type": "object" - }, - "PostalCode": { - "description": "Contains information about a postal code that can be targeted by ads.", - "id": "PostalCode", - "properties": { - "code": { - "description": "Postal code. This is equivalent to the id field.", - "type": "string" - }, - "countryCode": { - "description": "Country code of the country to which this postal code belongs.", - "type": "string" - }, - "countryDartId": { - "description": "DART ID of the country to which this postal code belongs.", - "format": "int64", - "type": "string" - }, - "id": { - "description": "ID of this postal code.", - "type": "string" - }, - "kind": { - "description": "Identifies what kind of resource this is. Value: the fixed string \"dfareporting#postalCode\".", - "type": "string" - } - }, - "type": "object" - }, - "PostalCodesListResponse": { - "description": "Postal Code List Response", - "id": "PostalCodesListResponse", - "properties": { - "kind": { - "description": "Identifies what kind of resource this is. Value: the fixed string \"dfareporting#postalCodesListResponse\".", - "type": "string" - }, - "postalCodes": { - "description": "Postal code collection.", - "items": { - "$ref": "PostalCode" - }, - "type": "array" - } - }, - "type": "object" - }, - "Pricing": { - "description": "Pricing Information", - "id": "Pricing", - "properties": { - "capCostType": { - "description": "Cap cost type of this inventory item.", - "enum": [ - "PLANNING_PLACEMENT_CAP_COST_TYPE_NONE", - "PLANNING_PLACEMENT_CAP_COST_TYPE_MONTHLY", - "PLANNING_PLACEMENT_CAP_COST_TYPE_CUMULATIVE" - ], - "enumDescriptions": [ - "", - "", - "" - ], - "type": "string" - }, - "endDate": { - "format": "date", - "type": "string" - }, - "flights": { - "description": "Flights of this inventory item. A flight (a.k.a. pricing period) represents the inventory item pricing information for a specific period of time.", - "items": { - "$ref": "Flight" - }, - "type": "array" - }, - "groupType": { - "description": "Group type of this inventory item if it represents a placement group. Is null otherwise. There are two type of placement groups: PLANNING_PLACEMENT_GROUP_TYPE_PACKAGE is a simple group of inventory items that acts as a single pricing point for a group of tags. PLANNING_PLACEMENT_GROUP_TYPE_ROADBLOCK is a group of inventory items that not only acts as a single pricing point, but also assumes that all the tags in it will be served at the same time. A roadblock requires one of its assigned inventory items to be marked as primary.", - "enum": [ - "PLANNING_PLACEMENT_GROUP_TYPE_PACKAGE", - "PLANNING_PLACEMENT_GROUP_TYPE_ROADBLOCK" - ], - "enumDescriptions": [ - "", - "" - ], - "type": "string" - }, - "pricingType": { - "description": "Pricing type of this inventory item.", - "enum": [ - "PLANNING_PLACEMENT_PRICING_TYPE_IMPRESSIONS", - "PLANNING_PLACEMENT_PRICING_TYPE_CPM", - "PLANNING_PLACEMENT_PRICING_TYPE_CLICKS", - "PLANNING_PLACEMENT_PRICING_TYPE_CPC", - "PLANNING_PLACEMENT_PRICING_TYPE_CPA", - "PLANNING_PLACEMENT_PRICING_TYPE_FLAT_RATE_IMPRESSIONS", - "PLANNING_PLACEMENT_PRICING_TYPE_FLAT_RATE_CLICKS", - "PLANNING_PLACEMENT_PRICING_TYPE_CPM_ACTIVEVIEW" - ], - "enumDescriptions": [ - "", - "", - "", - "", - "", - "", - "", - "" - ], - "type": "string" - }, - "startDate": { - "format": "date", - "type": "string" - } - }, - "type": "object" - }, - "PricingSchedule": { - "description": "Pricing Schedule", - "id": "PricingSchedule", - "properties": { - "capCostOption": { - "description": "Placement cap cost option.", - "enum": [ - "CAP_COST_NONE", - "CAP_COST_MONTHLY", - "CAP_COST_CUMULATIVE" - ], - "enumDescriptions": [ - "", - "", - "" - ], - "type": "string" - }, - "endDate": { - "format": "date", - "type": "string" - }, - "flighted": { - "description": "Whether this placement is flighted. If true, pricing periods will be computed automatically.", - "type": "boolean" - }, - "floodlightActivityId": { - "description": "Floodlight activity ID associated with this placement. This field should be set when placement pricing type is set to PRICING_TYPE_CPA.", - "format": "int64", - "type": "string" - }, - "pricingPeriods": { - "description": "Pricing periods for this placement.", - "items": { - "$ref": "PricingSchedulePricingPeriod" - }, - "type": "array" - }, - "pricingType": { - "description": "Placement pricing type. This field is required on insertion.", - "enum": [ - "PRICING_TYPE_CPM", - "PRICING_TYPE_CPC", - "PRICING_TYPE_CPA", - "PRICING_TYPE_FLAT_RATE_IMPRESSIONS", - "PRICING_TYPE_FLAT_RATE_CLICKS", - "PRICING_TYPE_CPM_ACTIVEVIEW" - ], - "enumDescriptions": [ - "", - "", - "", - "", - "", - "" - ], - "type": "string" - }, - "startDate": { - "format": "date", - "type": "string" - }, - "testingStartDate": { - "format": "date", - "type": "string" - } - }, - "type": "object" - }, - "PricingSchedulePricingPeriod": { - "description": "Pricing Period", - "id": "PricingSchedulePricingPeriod", - "properties": { - "endDate": { - "format": "date", - "type": "string" - }, - "pricingComment": { - "description": "Comments for this pricing period.", - "type": "string" - }, - "rateOrCostNanos": { - "description": "Rate or cost of this pricing period in nanos (i.e., multipled by 1000000000). Acceptable values are 0 to 1000000000000000000, inclusive.", - "format": "int64", - "type": "string" - }, - "startDate": { - "format": "date", - "type": "string" - }, - "units": { - "description": "Units of this pricing period. Acceptable values are 0 to 10000000000, inclusive.", - "format": "int64", - "type": "string" - } - }, - "type": "object" - }, - "Project": { - "description": "Contains properties of a Planning project.", - "id": "Project", - "properties": { - "accountId": { - "description": "Account ID of this project.", - "format": "int64", - "type": "string" - }, - "advertiserId": { - "description": "Advertiser ID of this project.", - "format": "int64", - "type": "string" - }, - "audienceAgeGroup": { - "description": "Audience age group of this project.", - "enum": [ - "PLANNING_AUDIENCE_AGE_18_24", - "PLANNING_AUDIENCE_AGE_25_34", - "PLANNING_AUDIENCE_AGE_35_44", - "PLANNING_AUDIENCE_AGE_45_54", - "PLANNING_AUDIENCE_AGE_55_64", - "PLANNING_AUDIENCE_AGE_65_OR_MORE", - "PLANNING_AUDIENCE_AGE_UNKNOWN" - ], - "enumDescriptions": [ - "", - "", - "", - "", - "", - "", - "" - ], - "type": "string" - }, - "audienceGender": { - "description": "Audience gender of this project.", - "enum": [ - "PLANNING_AUDIENCE_GENDER_MALE", - "PLANNING_AUDIENCE_GENDER_FEMALE" - ], - "enumDescriptions": [ - "", - "" - ], - "type": "string" - }, - "budget": { - "description": "Budget of this project in the currency specified by the current account. The value stored in this field represents only the non-fractional amount. For example, for USD, the smallest value that can be represented by this field is 1 US dollar.", - "format": "int64", - "type": "string" - }, - "clientBillingCode": { - "description": "Client billing code of this project.", - "type": "string" - }, - "clientName": { - "description": "Name of the project client.", - "type": "string" - }, - "endDate": { - "format": "date", - "type": "string" - }, - "id": { - "description": "ID of this project. This is a read-only, auto-generated field.", - "format": "int64", - "type": "string" - }, - "kind": { - "description": "Identifies what kind of resource this is. Value: the fixed string \"dfareporting#project\".", - "type": "string" - }, - "lastModifiedInfo": { - "$ref": "LastModifiedInfo", - "description": "Information about the most recent modification of this project." - }, - "name": { - "description": "Name of this project.", - "type": "string" - }, - "overview": { - "description": "Overview of this project.", - "type": "string" - }, - "startDate": { - "format": "date", - "type": "string" - }, - "subaccountId": { - "description": "Subaccount ID of this project.", - "format": "int64", - "type": "string" - }, - "targetClicks": { - "description": "Number of clicks that the advertiser is targeting.", - "format": "int64", - "type": "string" - }, - "targetConversions": { - "description": "Number of conversions that the advertiser is targeting.", - "format": "int64", - "type": "string" - }, - "targetCpaNanos": { - "description": "CPA that the advertiser is targeting.", - "format": "int64", - "type": "string" - }, - "targetCpcNanos": { - "description": "CPC that the advertiser is targeting.", - "format": "int64", - "type": "string" - }, - "targetCpmActiveViewNanos": { - "description": "vCPM from Active View that the advertiser is targeting.", - "format": "int64", - "type": "string" - }, - "targetCpmNanos": { - "description": "CPM that the advertiser is targeting.", - "format": "int64", - "type": "string" - }, - "targetImpressions": { - "description": "Number of impressions that the advertiser is targeting.", - "format": "int64", - "type": "string" - } - }, - "type": "object" - }, - "ProjectsListResponse": { - "description": "Project List Response", - "id": "ProjectsListResponse", - "properties": { - "kind": { - "description": "Identifies what kind of resource this is. Value: the fixed string \"dfareporting#projectsListResponse\".", - "type": "string" - }, - "nextPageToken": { - "description": "Pagination token to be used for the next list operation.", - "type": "string" - }, - "projects": { - "description": "Project collection.", - "items": { - "$ref": "Project" - }, - "type": "array" - } - }, - "type": "object" - }, - "ReachReportCompatibleFields": { - "description": "Represents fields that are compatible to be selected for a report of type \"REACH\".", - "id": "ReachReportCompatibleFields", - "properties": { - "dimensionFilters": { - "description": "Dimensions which are compatible to be selected in the \"dimensionFilters\" section of the report.", - "items": { - "$ref": "Dimension" - }, - "type": "array" - }, - "dimensions": { - "description": "Dimensions which are compatible to be selected in the \"dimensions\" section of the report.", - "items": { - "$ref": "Dimension" - }, - "type": "array" - }, - "kind": { - "description": "The kind of resource this is, in this case dfareporting#reachReportCompatibleFields.", - "type": "string" - }, - "metrics": { - "description": "Metrics which are compatible to be selected in the \"metricNames\" section of the report.", - "items": { - "$ref": "Metric" - }, - "type": "array" - }, - "pivotedActivityMetrics": { - "description": "Metrics which are compatible to be selected as activity metrics to pivot on in the \"activities\" section of the report.", - "items": { - "$ref": "Metric" - }, - "type": "array" - }, - "reachByFrequencyMetrics": { - "description": "Metrics which are compatible to be selected in the \"reachByFrequencyMetricNames\" section of the report.", - "items": { - "$ref": "Metric" - }, - "type": "array" - } - }, - "type": "object" - }, - "Recipient": { - "description": "Represents a recipient.", - "id": "Recipient", - "properties": { - "deliveryType": { - "annotations": { - "required": [ - "dfareporting.reports.insert", - "dfareporting.reports.update" - ] - }, - "description": "The delivery type for the recipient.", - "enum": [ - "LINK", - "ATTACHMENT" - ], - "enumDescriptions": [ - "", - "" - ], - "type": "string" - }, - "email": { - "annotations": { - "required": [ - "dfareporting.reports.insert", - "dfareporting.reports.update" - ] - }, - "description": "The email address of the recipient.", - "type": "string" - }, - "kind": { - "description": "The kind of resource this is, in this case dfareporting#recipient.", - "type": "string" - } - }, - "type": "object" - }, - "Region": { - "description": "Contains information about a region that can be targeted by ads.", - "id": "Region", - "properties": { - "countryCode": { - "description": "Country code of the country to which this region belongs.", - "type": "string" - }, - "countryDartId": { - "description": "DART ID of the country to which this region belongs.", - "format": "int64", - "type": "string" - }, - "dartId": { - "description": "DART ID of this region.", - "format": "int64", - "type": "string" - }, - "kind": { - "description": "Identifies what kind of resource this is. Value: the fixed string \"dfareporting#region\".", - "type": "string" - }, - "name": { - "description": "Name of this region.", - "type": "string" - }, - "regionCode": { - "description": "Region code.", - "type": "string" - } - }, - "type": "object" - }, - "RegionsListResponse": { - "description": "Region List Response", - "id": "RegionsListResponse", - "properties": { - "kind": { - "description": "Identifies what kind of resource this is. Value: the fixed string \"dfareporting#regionsListResponse\".", - "type": "string" - }, - "regions": { - "description": "Region collection.", - "items": { - "$ref": "Region" - }, - "type": "array" - } - }, - "type": "object" - }, - "RemarketingList": { - "description": "Contains properties of a remarketing list. Remarketing enables you to create lists of users who have performed specific actions on a site, then target ads to members of those lists. This resource can be used to manage remarketing lists that are owned by your advertisers. To see all remarketing lists that are visible to your advertisers, including those that are shared to your advertiser or account, use the TargetableRemarketingLists resource.", - "id": "RemarketingList", - "properties": { - "accountId": { - "description": "Account ID of this remarketing list. This is a read-only, auto-generated field that is only returned in GET requests.", - "format": "int64", - "type": "string" - }, - "active": { - "description": "Whether this remarketing list is active.", - "type": "boolean" - }, - "advertiserId": { - "description": "Dimension value for the advertiser ID that owns this remarketing list. This is a required field.", - "format": "int64", - "type": "string" - }, - "advertiserIdDimensionValue": { - "$ref": "DimensionValue", - "description": "Dimension value for the ID of the advertiser. This is a read-only, auto-generated field." - }, - "description": { - "description": "Remarketing list description.", - "type": "string" - }, - "id": { - "description": "Remarketing list ID. This is a read-only, auto-generated field.", - "format": "int64", - "type": "string" - }, - "kind": { - "description": "Identifies what kind of resource this is. Value: the fixed string \"dfareporting#remarketingList\".", - "type": "string" - }, - "lifeSpan": { - "description": "Number of days that a user should remain in the remarketing list without an impression. Acceptable values are 1 to 540, inclusive.", - "format": "int64", - "type": "string" - }, - "listPopulationRule": { - "$ref": "ListPopulationRule", - "description": "Rule used to populate the remarketing list with users." - }, - "listSize": { - "description": "Number of users currently in the list. This is a read-only field.", - "format": "int64", - "type": "string" - }, - "listSource": { - "description": "Product from which this remarketing list was originated.", - "enum": [ - "REMARKETING_LIST_SOURCE_OTHER", - "REMARKETING_LIST_SOURCE_ADX", - "REMARKETING_LIST_SOURCE_DFP", - "REMARKETING_LIST_SOURCE_XFP", - "REMARKETING_LIST_SOURCE_DFA", - "REMARKETING_LIST_SOURCE_GA", - "REMARKETING_LIST_SOURCE_YOUTUBE", - "REMARKETING_LIST_SOURCE_DBM", - "REMARKETING_LIST_SOURCE_GPLUS", - "REMARKETING_LIST_SOURCE_DMP", - "REMARKETING_LIST_SOURCE_PLAY_STORE" - ], - "enumDescriptions": [ - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "" - ], - "type": "string" - }, - "name": { - "description": "Name of the remarketing list. This is a required field. Must be no greater than 128 characters long.", - "type": "string" - }, - "subaccountId": { - "description": "Subaccount ID of this remarketing list. This is a read-only, auto-generated field that is only returned in GET requests.", - "format": "int64", - "type": "string" - } - }, - "type": "object" - }, - "RemarketingListShare": { - "description": "Contains properties of a remarketing list's sharing information. Sharing allows other accounts or advertisers to target to your remarketing lists. This resource can be used to manage remarketing list sharing to other accounts and advertisers.", - "id": "RemarketingListShare", - "properties": { - "kind": { - "description": "Identifies what kind of resource this is. Value: the fixed string \"dfareporting#remarketingListShare\".", - "type": "string" - }, - "remarketingListId": { - "description": "Remarketing list ID. This is a read-only, auto-generated field.", - "format": "int64", - "type": "string" - }, - "sharedAccountIds": { - "description": "Accounts that the remarketing list is shared with.", - "items": { - "format": "int64", - "type": "string" - }, - "type": "array" - }, - "sharedAdvertiserIds": { - "description": "Advertisers that the remarketing list is shared with.", - "items": { - "format": "int64", - "type": "string" - }, - "type": "array" - } - }, - "type": "object" - }, - "RemarketingListsListResponse": { - "description": "Remarketing list response", - "id": "RemarketingListsListResponse", - "properties": { - "kind": { - "description": "Identifies what kind of resource this is. Value: the fixed string \"dfareporting#remarketingListsListResponse\".", - "type": "string" - }, - "nextPageToken": { - "description": "Pagination token to be used for the next list operation.", - "type": "string" - }, - "remarketingLists": { - "description": "Remarketing list collection.", - "items": { - "$ref": "RemarketingList" - }, - "type": "array" - } - }, - "type": "object" - }, - "Report": { - "description": "Represents a Report resource.", - "id": "Report", - "properties": { - "accountId": { - "annotations": { - "required": [ - "dfareporting.reports.update" - ] - }, - "description": "The account ID to which this report belongs.", - "format": "int64", - "type": "string" - }, - "criteria": { - "description": "The report criteria for a report of type \"STANDARD\".", - "properties": { - "activities": { - "$ref": "Activities", - "description": "Activity group." - }, - "customRichMediaEvents": { - "$ref": "CustomRichMediaEvents", - "description": "Custom Rich Media Events group." - }, - "dateRange": { - "$ref": "DateRange", - "description": "The date range for which this report should be run." - }, - "dimensionFilters": { - "description": "The list of filters on which dimensions are filtered. Filters for different dimensions are ANDed, filters for the same dimension are grouped together and ORed.", - "items": { - "$ref": "DimensionValue" - }, - "type": "array" - }, - "dimensions": { - "description": "The list of standard dimensions the report should include.", - "items": { - "$ref": "SortedDimension" - }, - "type": "array" - }, - "metricNames": { - "description": "The list of names of metrics the report should include.", - "items": { - "type": "string" - }, - "type": "array" - } - }, - "type": "object" - }, - "crossDimensionReachCriteria": { - "description": "The report criteria for a report of type \"CROSS_DIMENSION_REACH\".", - "properties": { - "breakdown": { - "description": "The list of dimensions the report should include.", - "items": { - "$ref": "SortedDimension" - }, - "type": "array" - }, - "dateRange": { - "$ref": "DateRange", - "description": "The date range this report should be run for." - }, - "dimension": { - "description": "The dimension option.", - "enum": [ - "ADVERTISER", - "CAMPAIGN", - "SITE_BY_ADVERTISER", - "SITE_BY_CAMPAIGN" - ], - "enumDescriptions": [ - "", - "", - "", - "" - ], - "type": "string" - }, - "dimensionFilters": { - "description": "The list of filters on which dimensions are filtered.", - "items": { - "$ref": "DimensionValue" - }, - "type": "array" - }, - "metricNames": { - "description": "The list of names of metrics the report should include.", - "items": { - "type": "string" - }, - "type": "array" - }, - "overlapMetricNames": { - "description": "The list of names of overlap metrics the report should include.", - "items": { - "type": "string" - }, - "type": "array" - }, - "pivoted": { - "description": "Whether the report is pivoted or not. Defaults to true.", - "type": "boolean" - } - }, - "type": "object" - }, - "delivery": { - "description": "The report's email delivery settings.", - "properties": { - "emailOwner": { - "description": "Whether the report should be emailed to the report owner.", - "type": "boolean" - }, - "emailOwnerDeliveryType": { - "description": "The type of delivery for the owner to receive, if enabled.", - "enum": [ - "LINK", - "ATTACHMENT" - ], - "enumDescriptions": [ - "", - "" - ], - "type": "string" - }, - "message": { - "description": "The message to be sent with each email.", - "type": "string" - }, - "recipients": { - "description": "The list of recipients to which to email the report.", - "items": { - "$ref": "Recipient" - }, - "type": "array" - } - }, - "type": "object" - }, - "etag": { - "description": "The eTag of this response for caching purposes.", - "type": "string" - }, - "fileName": { - "description": "The filename used when generating report files for this report.", - "type": "string" - }, - "floodlightCriteria": { - "description": "The report criteria for a report of type \"FLOODLIGHT\".", - "properties": { - "customRichMediaEvents": { - "description": "The list of custom rich media events to include.", - "items": { - "$ref": "DimensionValue" - }, - "type": "array" - }, - "dateRange": { - "$ref": "DateRange", - "description": "The date range this report should be run for." - }, - "dimensionFilters": { - "description": "The list of filters on which dimensions are filtered. Filters for different dimensions are ANDed, filters for the same dimension are grouped together and ORed.", - "items": { - "$ref": "DimensionValue" - }, - "type": "array" - }, - "dimensions": { - "description": "The list of dimensions the report should include.", - "items": { - "$ref": "SortedDimension" - }, - "type": "array" - }, - "floodlightConfigId": { - "$ref": "DimensionValue", - "description": "The floodlight ID for which to show data in this report. All advertisers associated with that ID will automatically be added. The dimension of the value needs to be 'dfa:floodlightConfigId'." - }, - "metricNames": { - "description": "The list of names of metrics the report should include.", - "items": { - "type": "string" - }, - "type": "array" - }, - "reportProperties": { - "description": "The properties of the report.", - "properties": { - "includeAttributedIPConversions": { - "description": "Include conversions that have no cookie, but do have an exposure path.", - "type": "boolean" - }, - "includeUnattributedCookieConversions": { - "description": "Include conversions of users with a DoubleClick cookie but without an exposure. That means the user did not click or see an ad from the advertiser within the Floodlight group, or that the interaction happened outside the lookback window.", - "type": "boolean" - }, - "includeUnattributedIPConversions": { - "description": "Include conversions that have no associated cookies and no exposures. It’s therefore impossible to know how the user was exposed to your ads during the lookback window prior to a conversion.", - "type": "boolean" - } - }, - "type": "object" - } - }, - "type": "object" - }, - "format": { - "description": "The output format of the report. If not specified, default format is \"CSV\". Note that the actual format in the completed report file might differ if for instance the report's size exceeds the format's capabilities. \"CSV\" will then be the fallback format.", - "enum": [ - "CSV", - "EXCEL" - ], - "enumDescriptions": [ - "", - "" - ], - "type": "string" - }, - "id": { - "annotations": { - "required": [ - "dfareporting.reports.update" - ] - }, - "description": "The unique ID identifying this report resource.", - "format": "int64", - "type": "string" - }, - "kind": { - "description": "The kind of resource this is, in this case dfareporting#report.", - "type": "string" - }, - "lastModifiedTime": { - "annotations": { - "required": [ - "dfareporting.reports.update" - ] - }, - "description": "The timestamp (in milliseconds since epoch) of when this report was last modified.", - "format": "uint64", - "type": "string" - }, - "name": { - "annotations": { - "required": [ - "dfareporting.reports.insert", - "dfareporting.reports.update" - ] - }, - "description": "The name of the report.", - "type": "string" - }, - "ownerProfileId": { - "annotations": { - "required": [ - "dfareporting.reports.update" - ] - }, - "description": "The user profile id of the owner of this report.", - "format": "int64", - "type": "string" - }, - "pathAttributionCriteria": { - "description": "The report criteria for a report of type \"PATH_ATTRIBUTION\".", - "properties": { - "activityFilters": { - "description": "The list of 'dfa:activity' values to filter on.", - "items": { - "$ref": "DimensionValue" - }, - "type": "array" - }, - "customChannelGrouping": { - "$ref": "ChannelGrouping", - "description": "Channel Grouping." - }, - "dateRange": { - "$ref": "DateRange", - "description": "The date range this report should be run for." - }, - "dimensions": { - "description": "The list of dimensions the report should include.", - "items": { - "$ref": "SortedDimension" - }, - "type": "array" - }, - "floodlightConfigId": { - "$ref": "DimensionValue", - "description": "The floodlight ID for which to show data in this report. All advertisers associated with that ID will automatically be added. The dimension of the value needs to be 'dfa:floodlightConfigId'." - }, - "metricNames": { - "description": "The list of names of metrics the report should include.", - "items": { - "type": "string" - }, - "type": "array" - }, - "pathFilters": { - "description": "Path Filters.", - "items": { - "$ref": "PathFilter" - }, - "type": "array" - } - }, - "type": "object" - }, - "pathCriteria": { - "description": "The report criteria for a report of type \"PATH\".", - "properties": { - "activityFilters": { - "description": "The list of 'dfa:activity' values to filter on.", - "items": { - "$ref": "DimensionValue" - }, - "type": "array" - }, - "customChannelGrouping": { - "$ref": "ChannelGrouping", - "description": "Channel Grouping." - }, - "dateRange": { - "$ref": "DateRange", - "description": "The date range this report should be run for." - }, - "dimensions": { - "description": "The list of dimensions the report should include.", - "items": { - "$ref": "SortedDimension" - }, - "type": "array" - }, - "floodlightConfigId": { - "$ref": "DimensionValue", - "description": "The floodlight ID for which to show data in this report. All advertisers associated with that ID will automatically be added. The dimension of the value needs to be 'dfa:floodlightConfigId'." - }, - "metricNames": { - "description": "The list of names of metrics the report should include.", - "items": { - "type": "string" - }, - "type": "array" - }, - "pathFilters": { - "description": "Path Filters.", - "items": { - "$ref": "PathFilter" - }, - "type": "array" - } - }, - "type": "object" - }, - "pathToConversionCriteria": { - "description": "The report criteria for a report of type \"PATH_TO_CONVERSION\".", - "properties": { - "activityFilters": { - "description": "The list of 'dfa:activity' values to filter on.", - "items": { - "$ref": "DimensionValue" - }, - "type": "array" - }, - "conversionDimensions": { - "description": "The list of conversion dimensions the report should include.", - "items": { - "$ref": "SortedDimension" - }, - "type": "array" - }, - "customFloodlightVariables": { - "description": "The list of custom floodlight variables the report should include.", - "items": { - "$ref": "SortedDimension" - }, - "type": "array" - }, - "customRichMediaEvents": { - "description": "The list of custom rich media events to include.", - "items": { - "$ref": "DimensionValue" - }, - "type": "array" - }, - "dateRange": { - "$ref": "DateRange", - "description": "The date range this report should be run for." - }, - "floodlightConfigId": { - "$ref": "DimensionValue", - "description": "The floodlight ID for which to show data in this report. All advertisers associated with that ID will automatically be added. The dimension of the value needs to be 'dfa:floodlightConfigId'." - }, - "metricNames": { - "description": "The list of names of metrics the report should include.", - "items": { - "type": "string" - }, - "type": "array" - }, - "perInteractionDimensions": { - "description": "The list of per interaction dimensions the report should include.", - "items": { - "$ref": "SortedDimension" - }, - "type": "array" - }, - "reportProperties": { - "description": "The properties of the report.", - "properties": { - "clicksLookbackWindow": { - "description": "CM360 checks to see if a click interaction occurred within the specified period of time before a conversion. By default the value is pulled from Floodlight or you can manually enter a custom value. Valid values: 1-90.", - "format": "int32", - "type": "integer" - }, - "impressionsLookbackWindow": { - "description": "CM360 checks to see if an impression interaction occurred within the specified period of time before a conversion. By default the value is pulled from Floodlight or you can manually enter a custom value. Valid values: 1-90.", - "format": "int32", - "type": "integer" - }, - "includeAttributedIPConversions": { - "description": "Deprecated: has no effect.", - "type": "boolean" - }, - "includeUnattributedCookieConversions": { - "description": "Include conversions of users with a DoubleClick cookie but without an exposure. That means the user did not click or see an ad from the advertiser within the Floodlight group, or that the interaction happened outside the lookback window.", - "type": "boolean" - }, - "includeUnattributedIPConversions": { - "description": "Include conversions that have no associated cookies and no exposures. It’s therefore impossible to know how the user was exposed to your ads during the lookback window prior to a conversion.", - "type": "boolean" - }, - "maximumClickInteractions": { - "description": "The maximum number of click interactions to include in the report. Advertisers currently paying for E2C reports get up to 200 (100 clicks, 100 impressions). If another advertiser in your network is paying for E2C, you can have up to 5 total exposures per report.", - "format": "int32", - "type": "integer" - }, - "maximumImpressionInteractions": { - "description": "The maximum number of click interactions to include in the report. Advertisers currently paying for E2C reports get up to 200 (100 clicks, 100 impressions). If another advertiser in your network is paying for E2C, you can have up to 5 total exposures per report.", - "format": "int32", - "type": "integer" - }, - "maximumInteractionGap": { - "description": "The maximum amount of time that can take place between interactions (clicks or impressions) by the same user. Valid values: 1-90.", - "format": "int32", - "type": "integer" - }, - "pivotOnInteractionPath": { - "description": "Enable pivoting on interaction path.", - "type": "boolean" - } - }, - "type": "object" - } - }, - "type": "object" - }, - "reachCriteria": { - "description": "The report criteria for a report of type \"REACH\".", - "properties": { - "activities": { - "$ref": "Activities", - "description": "Activity group." - }, - "customRichMediaEvents": { - "$ref": "CustomRichMediaEvents", - "description": "Custom Rich Media Events group." - }, - "dateRange": { - "$ref": "DateRange", - "description": "The date range this report should be run for." - }, - "dimensionFilters": { - "description": "The list of filters on which dimensions are filtered. Filters for different dimensions are ANDed, filters for the same dimension are grouped together and ORed.", - "items": { - "$ref": "DimensionValue" - }, - "type": "array" - }, - "dimensions": { - "description": "The list of dimensions the report should include.", - "items": { - "$ref": "SortedDimension" - }, - "type": "array" - }, - "enableAllDimensionCombinations": { - "description": "Whether to enable all reach dimension combinations in the report. Defaults to false. If enabled, the date range of the report should be within the last 42 days.", - "type": "boolean" - }, - "metricNames": { - "description": "The list of names of metrics the report should include.", - "items": { - "type": "string" - }, - "type": "array" - }, - "reachByFrequencyMetricNames": { - "description": "The list of names of Reach By Frequency metrics the report should include.", - "items": { - "type": "string" - }, - "type": "array" - } - }, - "type": "object" - }, - "schedule": { - "description": "The report's schedule. Can only be set if the report's 'dateRange' is a relative date range and the relative date range is not \"TODAY\".", - "properties": { - "active": { - "annotations": { - "required": [ - "dfareporting.reports.insert", - "dfareporting.reports.update" - ] - }, - "description": "Whether the schedule is active or not. Must be set to either true or false.", - "type": "boolean" - }, - "every": { - "description": "Defines every how many days, weeks or months the report should be run. Needs to be set when \"repeats\" is either \"DAILY\", \"WEEKLY\" or \"MONTHLY\".", - "format": "int32", - "type": "integer" - }, - "expirationDate": { - "format": "date", - "type": "string" - }, - "repeats": { - "annotations": { - "required": [ - "dfareporting.reports.insert", - "dfareporting.reports.update" - ] - }, - "description": "The interval for which the report is repeated. Note: - \"DAILY\" also requires field \"every\" to be set. - \"WEEKLY\" also requires fields \"every\" and \"repeatsOnWeekDays\" to be set. - \"MONTHLY\" also requires fields \"every\" and \"runsOnDayOfMonth\" to be set. ", - "type": "string" - }, - "repeatsOnWeekDays": { - "description": "List of week days \"WEEKLY\" on which scheduled reports should run.", - "items": { - "enum": [ - "SUNDAY", - "MONDAY", - "TUESDAY", - "WEDNESDAY", - "THURSDAY", - "FRIDAY", - "SATURDAY" - ], - "enumDescriptions": [ - "", - "", - "", - "", - "", - "", - "" - ], - "type": "string" - }, - "type": "array" - }, - "runsOnDayOfMonth": { - "description": "Enum to define for \"MONTHLY\" scheduled reports whether reports should be repeated on the same day of the month as \"startDate\" or the same day of the week of the month. Example: If 'startDate' is Monday, April 2nd 2012 (2012-04-02), \"DAY_OF_MONTH\" would run subsequent reports on the 2nd of every Month, and \"WEEK_OF_MONTH\" would run subsequent reports on the first Monday of the month.", - "enum": [ - "DAY_OF_MONTH", - "WEEK_OF_MONTH" - ], - "enumDescriptions": [ - "", - "" - ], - "type": "string" - }, - "startDate": { - "format": "date", - "type": "string" - }, - "timezone": { - "description": "The timezone when the report will run.", - "type": "string" - } - }, - "type": "object" - }, - "subAccountId": { - "description": "The subaccount ID to which this report belongs if applicable.", - "format": "int64", - "type": "string" - }, - "type": { - "annotations": { - "required": [ - "dfareporting.reports.insert", - "dfareporting.reports.update" - ] - }, - "description": "The type of the report.", - "enum": [ - "STANDARD", - "REACH", - "PATH_TO_CONVERSION", - "CROSS_DIMENSION_REACH", - "FLOODLIGHT", - "PATH", - "PATH_ATTRIBUTION" - ], - "enumDescriptions": [ - "", - "", - "", - "", - "", - "", - "" - ], - "type": "string" - } - }, - "type": "object" - }, - "ReportCompatibleFields": { - "description": "Represents fields that are compatible to be selected for a report of type \"STANDARD\".", - "id": "ReportCompatibleFields", - "properties": { - "dimensionFilters": { - "description": "Dimensions which are compatible to be selected in the \"dimensionFilters\" section of the report.", - "items": { - "$ref": "Dimension" - }, - "type": "array" - }, - "dimensions": { - "description": "Dimensions which are compatible to be selected in the \"dimensions\" section of the report.", - "items": { - "$ref": "Dimension" - }, - "type": "array" - }, - "kind": { - "description": "The kind of resource this is, in this case dfareporting#reportCompatibleFields.", - "type": "string" - }, - "metrics": { - "description": "Metrics which are compatible to be selected in the \"metricNames\" section of the report.", - "items": { - "$ref": "Metric" - }, - "type": "array" - }, - "pivotedActivityMetrics": { - "description": "Metrics which are compatible to be selected as activity metrics to pivot on in the \"activities\" section of the report.", - "items": { - "$ref": "Metric" - }, - "type": "array" - } - }, - "type": "object" - }, - "ReportList": { - "description": "Represents the list of reports.", - "id": "ReportList", - "properties": { - "etag": { - "description": "The eTag of this response for caching purposes.", - "type": "string" - }, - "items": { - "description": "The reports returned in this response.", - "items": { - "$ref": "Report" - }, - "type": "array" - }, - "kind": { - "description": "The kind of list this is, in this case dfareporting#reportList.", - "type": "string" - }, - "nextPageToken": { - "description": "Continuation token used to page through reports. To retrieve the next page of results, set the next request's \"pageToken\" to the value of this field. The page token is only valid for a limited amount of time and should not be persisted.", - "type": "string" - } - }, - "type": "object" - }, - "ReportsConfiguration": { - "description": "Reporting Configuration", - "id": "ReportsConfiguration", - "properties": { - "exposureToConversionEnabled": { - "description": "Whether the exposure to conversion report is enabled. This report shows detailed pathway information on up to 10 of the most recent ad exposures seen by a user before converting.", - "type": "boolean" - }, - "lookbackConfiguration": { - "$ref": "LookbackConfiguration", - "description": "Default lookback windows for new advertisers in this account." - }, - "reportGenerationTimeZoneId": { - "description": "Report generation time zone ID of this account. This is a required field that can only be changed by a superuser. Acceptable values are: - \"1\" for \"America/New_York\" - \"2\" for \"Europe/London\" - \"3\" for \"Europe/Paris\" - \"4\" for \"Africa/Johannesburg\" - \"5\" for \"Asia/Jerusalem\" - \"6\" for \"Asia/Shanghai\" - \"7\" for \"Asia/Hong_Kong\" - \"8\" for \"Asia/Tokyo\" - \"9\" for \"Australia/Sydney\" - \"10\" for \"Asia/Dubai\" - \"11\" for \"America/Los_Angeles\" - \"12\" for \"Pacific/Auckland\" - \"13\" for \"America/Sao_Paulo\" - \"16\" for \"America/Asuncion\" - \"17\" for \"America/Chicago\" - \"18\" for \"America/Denver\" - \"19\" for \"America/St_Johns\" - \"20\" for \"Asia/Dhaka\" - \"21\" for \"Asia/Jakarta\" - \"22\" for \"Asia/Kabul\" - \"23\" for \"Asia/Karachi\" - \"24\" for \"Asia/Calcutta\" - \"25\" for \"Asia/Pyongyang\" - \"26\" for \"Asia/Rangoon\" - \"27\" for \"Atlantic/Cape_Verde\" - \"28\" for \"Atlantic/South_Georgia\" - \"29\" for \"Australia/Adelaide\" - \"30\" for \"Australia/Lord_Howe\" - \"31\" for \"Europe/Moscow\" - \"32\" for \"Pacific/Kiritimati\" - \"35\" for \"Pacific/Norfolk\" - \"36\" for \"Pacific/Tongatapu\" ", - "format": "int64", - "type": "string" - } - }, - "type": "object" - }, - "RichMediaExitOverride": { - "description": "Rich Media Exit Override.", - "id": "RichMediaExitOverride", - "properties": { - "clickThroughUrl": { - "$ref": "ClickThroughUrl", - "description": "Click-through URL of this rich media exit override. Applicable if the enabled field is set to true." - }, - "enabled": { - "description": "Whether to use the clickThroughUrl. If false, the creative-level exit will be used.", - "type": "boolean" - }, - "exitId": { - "description": "ID for the override to refer to a specific exit in the creative.", - "format": "int64", - "type": "string" - } - }, - "type": "object" - }, - "Rule": { - "description": "A rule associates an asset with a targeting template for asset-level targeting. Applicable to INSTREAM_VIDEO creatives.", - "id": "Rule", - "properties": { - "assetId": { - "description": "A creativeAssets[].id. This should refer to one of the parent assets in this creative. This is a required field.", - "format": "int64", - "type": "string" - }, - "name": { - "description": "A user-friendly name for this rule. This is a required field.", - "type": "string" - }, - "targetingTemplateId": { - "description": "A targeting template ID. The targeting from the targeting template will be used to determine whether this asset should be served. This is a required field.", - "format": "int64", - "type": "string" - } - }, - "type": "object" - }, - "Site": { - "description": "Contains properties of a site.", - "id": "Site", - "properties": { - "accountId": { - "description": "Account ID of this site. This is a read-only field that can be left blank.", - "format": "int64", - "type": "string" - }, - "approved": { - "description": "Whether this site is approved.", - "type": "boolean" - }, - "directorySiteId": { - "description": "Directory site associated with this site. This is a required field that is read-only after insertion.", - "format": "int64", - "type": "string" - }, - "directorySiteIdDimensionValue": { - "$ref": "DimensionValue", - "description": "Dimension value for the ID of the directory site. This is a read-only, auto-generated field." - }, - "id": { - "description": "ID of this site. This is a read-only, auto-generated field.", - "format": "int64", - "type": "string" - }, - "idDimensionValue": { - "$ref": "DimensionValue", - "description": "Dimension value for the ID of this site. This is a read-only, auto-generated field." - }, - "keyName": { - "description": "Key name of this site. This is a read-only, auto-generated field.", - "type": "string" - }, - "kind": { - "description": "Identifies what kind of resource this is. Value: the fixed string \"dfareporting#site\".", - "type": "string" - }, - "name": { - "description": "Name of this site.This is a required field. Must be less than 128 characters long. If this site is under a subaccount, the name must be unique among sites of the same subaccount. Otherwise, this site is a top-level site, and the name must be unique among top-level sites of the same account.", - "type": "string" - }, - "siteContacts": { - "description": "Site contacts.", - "items": { - "$ref": "SiteContact" - }, - "type": "array" - }, - "siteSettings": { - "$ref": "SiteSettings", - "description": "Site-wide settings." - }, - "subaccountId": { - "description": "Subaccount ID of this site. This is a read-only field that can be left blank.", - "format": "int64", - "type": "string" - }, - "videoSettings": { - "$ref": "SiteVideoSettings", - "description": "Default video settings for new placements created under this site. This value will be used to populate the placements.videoSettings field, when no value is specified for the new placement." - } - }, - "type": "object" - }, - "SiteCompanionSetting": { - "description": "Companion Settings", - "id": "SiteCompanionSetting", - "properties": { - "companionsDisabled": { - "description": "Whether companions are disabled for this site template.", - "type": "boolean" - }, - "enabledSizes": { - "description": "Allowlist of companion sizes to be served via this site template. Set this list to null or empty to serve all companion sizes.", - "items": { - "$ref": "Size" - }, - "type": "array" - }, - "imageOnly": { - "description": "Whether to serve only static images as companions.", - "type": "boolean" - }, - "kind": { - "description": "Identifies what kind of resource this is. Value: the fixed string \"dfareporting#siteCompanionSetting\".", - "type": "string" - } - }, - "type": "object" - }, - "SiteContact": { - "description": "Site Contact", - "id": "SiteContact", - "properties": { - "address": { - "description": "Address of this site contact.", - "type": "string" - }, - "contactType": { - "description": "Site contact type.", - "enum": [ - "SALES_PERSON", - "TRAFFICKER" - ], - "enumDescriptions": [ - "", - "" - ], - "type": "string" - }, - "email": { - "description": "Email address of this site contact. This is a required field.", - "type": "string" - }, - "firstName": { - "description": "First name of this site contact.", - "type": "string" - }, - "id": { - "description": "ID of this site contact. This is a read-only, auto-generated field.", - "format": "int64", - "type": "string" - }, - "lastName": { - "description": "Last name of this site contact.", - "type": "string" - }, - "phone": { - "description": "Primary phone number of this site contact.", - "type": "string" - }, - "title": { - "description": "Title or designation of this site contact.", - "type": "string" - } - }, - "type": "object" - }, - "SiteSettings": { - "description": "Site Settings", - "id": "SiteSettings", - "properties": { - "activeViewOptOut": { - "description": "Whether active view creatives are disabled for this site.", - "type": "boolean" - }, - "adBlockingOptOut": { - "description": "Whether this site opts out of ad blocking. When true, ad blocking is disabled for all placements under the site, regardless of the individual placement settings. When false, the campaign and placement settings take effect.", - "type": "boolean" - }, - "disableNewCookie": { - "description": "Whether new cookies are disabled for this site.", - "type": "boolean" - }, - "tagSetting": { - "$ref": "TagSetting", - "description": "Configuration settings for dynamic and image floodlight tags." - }, - "videoActiveViewOptOutTemplate": { - "description": "Whether Verification and ActiveView for in-stream video creatives are disabled by default for new placements created under this site. This value will be used to populate the placement.videoActiveViewOptOut field, when no value is specified for the new placement.", - "type": "boolean" - }, - "vpaidAdapterChoiceTemplate": { - "description": "Default VPAID adapter setting for new placements created under this site. This value will be used to populate the placements.vpaidAdapterChoice field, when no value is specified for the new placement. Controls which VPAID format the measurement adapter will use for in-stream video creatives assigned to the placement. The publisher's specifications will typically determine this setting. For VPAID creatives, the adapter format will match the VPAID format (HTML5 VPAID creatives use the HTML5 adapter). *Note:* Flash is no longer supported. This field now defaults to HTML5 when the following values are provided: FLASH, BOTH.", - "enum": [ - "DEFAULT", - "FLASH", - "HTML5", - "BOTH" - ], - "enumDescriptions": [ - "", - "", - "", - "" - ], - "type": "string" - } - }, - "type": "object" - }, - "SiteSkippableSetting": { - "description": "Skippable Settings", - "id": "SiteSkippableSetting", - "properties": { - "kind": { - "description": "Identifies what kind of resource this is. Value: the fixed string \"dfareporting#siteSkippableSetting\".", - "type": "string" - }, - "progressOffset": { - "$ref": "VideoOffset", - "description": "Amount of time to play videos served to this site template before counting a view. Applicable when skippable is true." - }, - "skipOffset": { - "$ref": "VideoOffset", - "description": "Amount of time to play videos served to this site before the skip button should appear. Applicable when skippable is true." - }, - "skippable": { - "description": "Whether the user can skip creatives served to this site. This will act as default for new placements created under this site.", - "type": "boolean" - } - }, - "type": "object" - }, - "SiteTranscodeSetting": { - "description": "Transcode Settings", - "id": "SiteTranscodeSetting", - "properties": { - "enabledVideoFormats": { - "description": "Allowlist of video formats to be served to this site template. Set this list to null or empty to serve all video formats.", - "items": { - "format": "int32", - "type": "integer" - }, - "type": "array" - }, - "kind": { - "description": "Identifies what kind of resource this is. Value: the fixed string \"dfareporting#siteTranscodeSetting\".", - "type": "string" - } - }, - "type": "object" - }, - "SiteVideoSettings": { - "description": "Video Settings", - "id": "SiteVideoSettings", - "properties": { - "companionSettings": { - "$ref": "SiteCompanionSetting", - "description": "Settings for the companion creatives of video creatives served to this site." - }, - "kind": { - "description": "Identifies what kind of resource this is. Value: the fixed string \"dfareporting#siteVideoSettings\".", - "type": "string" - }, - "obaEnabled": { - "description": "Whether OBA icons are enabled for this placement.", - "type": "boolean" - }, - "obaSettings": { - "$ref": "ObaIcon", - "description": "Settings for the OBA icon of video creatives served to this site. This will act as default for new placements created under this site." - }, - "orientation": { - "description": "Orientation of a site template used for video. This will act as default for new placements created under this site.", - "enum": [ - "ANY", - "LANDSCAPE", - "PORTRAIT" - ], - "enumDescriptions": [ - "", - "", - "" - ], - "type": "string" - }, - "skippableSettings": { - "$ref": "SiteSkippableSetting", - "description": "Settings for the skippability of video creatives served to this site. This will act as default for new placements created under this site." - }, - "transcodeSettings": { - "$ref": "SiteTranscodeSetting", - "description": "Settings for the transcodes of video creatives served to this site. This will act as default for new placements created under this site." - } - }, - "type": "object" - }, - "SitesListResponse": { - "description": "Site List Response", - "id": "SitesListResponse", - "properties": { - "kind": { - "description": "Identifies what kind of resource this is. Value: the fixed string \"dfareporting#sitesListResponse\".", - "type": "string" - }, - "nextPageToken": { - "description": "Pagination token to be used for the next list operation.", - "type": "string" - }, - "sites": { - "description": "Site collection.", - "items": { - "$ref": "Site" - }, - "type": "array" - } - }, - "type": "object" - }, - "Size": { - "description": "Represents the dimensions of ads, placements, creatives, or creative assets.", - "id": "Size", - "properties": { - "height": { - "description": "Height of this size. Acceptable values are 0 to 32767, inclusive.", - "format": "int32", - "type": "integer" - }, - "iab": { - "description": "IAB standard size. This is a read-only, auto-generated field.", - "type": "boolean" - }, - "id": { - "description": "ID of this size. This is a read-only, auto-generated field.", - "format": "int64", - "type": "string" - }, - "kind": { - "description": "Identifies what kind of resource this is. Value: the fixed string \"dfareporting#size\".", - "type": "string" - }, - "width": { - "description": "Width of this size. Acceptable values are 0 to 32767, inclusive.", - "format": "int32", - "type": "integer" - } - }, - "type": "object" - }, - "SizesListResponse": { - "description": "Size List Response", - "id": "SizesListResponse", - "properties": { - "kind": { - "description": "Identifies what kind of resource this is. Value: the fixed string \"dfareporting#sizesListResponse\".", - "type": "string" - }, - "sizes": { - "description": "Size collection.", - "items": { - "$ref": "Size" - }, - "type": "array" - } - }, - "type": "object" - }, - "SkippableSetting": { - "description": "Skippable Settings", - "id": "SkippableSetting", - "properties": { - "kind": { - "description": "Identifies what kind of resource this is. Value: the fixed string \"dfareporting#skippableSetting\".", - "type": "string" - }, - "progressOffset": { - "$ref": "VideoOffset", - "description": "Amount of time to play videos served to this placement before counting a view. Applicable when skippable is true." - }, - "skipOffset": { - "$ref": "VideoOffset", - "description": "Amount of time to play videos served to this placement before the skip button should appear. Applicable when skippable is true." - }, - "skippable": { - "description": "Whether the user can skip creatives served to this placement.", - "type": "boolean" - } - }, - "type": "object" - }, - "SortedDimension": { - "description": "Represents a sorted dimension.", - "id": "SortedDimension", - "properties": { - "kind": { - "description": "The kind of resource this is, in this case dfareporting#sortedDimension.", - "type": "string" - }, - "name": { - "description": "The name of the dimension.", - "type": "string" - }, - "sortOrder": { - "description": "An optional sort order for the dimension column.", - "enum": [ - "ASCENDING", - "DESCENDING" - ], - "enumDescriptions": [ - "", - "" - ], - "type": "string" - } - }, - "type": "object" - }, - "Subaccount": { - "description": "Contains properties of a Campaign Manager subaccount.", - "id": "Subaccount", - "properties": { - "accountId": { - "description": "ID of the account that contains this subaccount. This is a read-only field that can be left blank.", - "format": "int64", - "type": "string" - }, - "availablePermissionIds": { - "description": "IDs of the available user role permissions for this subaccount.", + "detectedFeatures": { + "description": "List of feature dependencies for the creative asset that are detected by Campaign Manager. Feature dependencies are features that a browser must be able to support in order to render your HTML5 creative correctly. This is a read-only, auto-generated field.", "items": { - "format": "int64", + "enum": [ + "CSS_FONT_FACE", + "CSS_BACKGROUND_SIZE", + "CSS_BORDER_IMAGE", + "CSS_BORDER_RADIUS", + "CSS_BOX_SHADOW", + "CSS_FLEX_BOX", + "CSS_HSLA", + "CSS_MULTIPLE_BGS", + "CSS_OPACITY", + "CSS_RGBA", + "CSS_TEXT_SHADOW", + "CSS_ANIMATIONS", + "CSS_COLUMNS", + "CSS_GENERATED_CONTENT", + "CSS_GRADIENTS", + "CSS_REFLECTIONS", + "CSS_TRANSFORMS", + "CSS_TRANSFORMS3D", + "CSS_TRANSITIONS", + "APPLICATION_CACHE", + "CANVAS", + "CANVAS_TEXT", + "DRAG_AND_DROP", + "HASH_CHANGE", + "HISTORY", + "AUDIO", + "VIDEO", + "INDEXED_DB", + "INPUT_ATTR_AUTOCOMPLETE", + "INPUT_ATTR_AUTOFOCUS", + "INPUT_ATTR_LIST", + "INPUT_ATTR_PLACEHOLDER", + "INPUT_ATTR_MAX", + "INPUT_ATTR_MIN", + "INPUT_ATTR_MULTIPLE", + "INPUT_ATTR_PATTERN", + "INPUT_ATTR_REQUIRED", + "INPUT_ATTR_STEP", + "INPUT_TYPE_SEARCH", + "INPUT_TYPE_TEL", + "INPUT_TYPE_URL", + "INPUT_TYPE_EMAIL", + "INPUT_TYPE_DATETIME", + "INPUT_TYPE_DATE", + "INPUT_TYPE_MONTH", + "INPUT_TYPE_WEEK", + "INPUT_TYPE_TIME", + "INPUT_TYPE_DATETIME_LOCAL", + "INPUT_TYPE_NUMBER", + "INPUT_TYPE_RANGE", + "INPUT_TYPE_COLOR", + "LOCAL_STORAGE", + "POST_MESSAGE", + "SESSION_STORAGE", + "WEB_SOCKETS", + "WEB_SQL_DATABASE", + "WEB_WORKERS", + "GEO_LOCATION", + "INLINE_SVG", + "SMIL", + "SVG_HREF", + "SVG_CLIP_PATHS", + "TOUCH", + "WEBGL", + "SVG_FILTERS", + "SVG_FE_IMAGE" + ], + "enumDescriptions": [ + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "" + ], "type": "string" }, "type": "array" }, - "id": { - "description": "ID of this subaccount. This is a read-only, auto-generated field.", - "format": "int64", - "type": "string" - }, - "kind": { - "description": "Identifies what kind of resource this is. Value: the fixed string \"dfareporting#subaccount\".", - "type": "string" - }, - "name": { - "description": "Name of this subaccount. This is a required field. Must be less than 128 characters long and be unique among subaccounts of the same account.", - "type": "string" - } - }, - "type": "object" - }, - "SubaccountsListResponse": { - "description": "Subaccount List Response", - "id": "SubaccountsListResponse", - "properties": { - "kind": { - "description": "Identifies what kind of resource this is. Value: the fixed string \"dfareporting#subaccountsListResponse\".", - "type": "string" - }, - "nextPageToken": { - "description": "Pagination token to be used for the next list operation.", - "type": "string" - }, - "subaccounts": { - "description": "Subaccount collection.", + "exitCustomEvents": { + "description": "List of exit events configured for the asset. This is a read-only, auto-generated field and only applicable to a rich media asset.", "items": { - "$ref": "Subaccount" + "$ref": "CreativeCustomEvent" }, "type": "array" - } - }, - "type": "object" - }, - "TagData": { - "description": "Placement Tag Data", - "id": "TagData", - "properties": { - "adId": { - "description": "Ad associated with this placement tag. Applicable only when format is PLACEMENT_TAG_TRACKING.", - "format": "int64", - "type": "string" - }, - "clickTag": { - "description": "Tag string to record a click.", - "type": "string" - }, - "creativeId": { - "description": "Creative associated with this placement tag. Applicable only when format is PLACEMENT_TAG_TRACKING.", - "format": "int64", - "type": "string" - }, - "format": { - "description": "TagData tag format of this tag.", - "enum": [ - "PLACEMENT_TAG_STANDARD", - "PLACEMENT_TAG_IFRAME_JAVASCRIPT", - "PLACEMENT_TAG_IFRAME_ILAYER", - "PLACEMENT_TAG_INTERNAL_REDIRECT", - "PLACEMENT_TAG_JAVASCRIPT", - "PLACEMENT_TAG_INTERSTITIAL_IFRAME_JAVASCRIPT", - "PLACEMENT_TAG_INTERSTITIAL_INTERNAL_REDIRECT", - "PLACEMENT_TAG_INTERSTITIAL_JAVASCRIPT", - "PLACEMENT_TAG_CLICK_COMMANDS", - "PLACEMENT_TAG_INSTREAM_VIDEO_PREFETCH", - "PLACEMENT_TAG_TRACKING", - "PLACEMENT_TAG_TRACKING_IFRAME", - "PLACEMENT_TAG_TRACKING_JAVASCRIPT", - "PLACEMENT_TAG_INSTREAM_VIDEO_PREFETCH_VAST_3", - "PLACEMENT_TAG_IFRAME_JAVASCRIPT_LEGACY", - "PLACEMENT_TAG_JAVASCRIPT_LEGACY", - "PLACEMENT_TAG_INTERSTITIAL_IFRAME_JAVASCRIPT_LEGACY", - "PLACEMENT_TAG_INTERSTITIAL_JAVASCRIPT_LEGACY", - "PLACEMENT_TAG_INSTREAM_VIDEO_PREFETCH_VAST_4", - "PLACEMENT_TAG_TRACKING_THIRD_PARTY_MEASUREMENT" - ], - "enumDescriptions": [ - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "" - ], - "type": "string" - }, - "impressionTag": { - "description": "Tag string for serving an ad.", - "type": "string" - } - }, - "type": "object" - }, - "TagSetting": { - "description": "Tag Settings", - "id": "TagSetting", - "properties": { - "additionalKeyValues": { - "description": "Additional key-values to be included in tags. Each key-value pair must be of the form key=value, and pairs must be separated by a semicolon (;). Keys and values must not contain commas. For example, id=2;color=red is a valid value for this field.", - "type": "string" - }, - "includeClickThroughUrls": { - "description": "Whether static landing page URLs should be included in the tags. This setting applies only to placements.", - "type": "boolean" - }, - "includeClickTracking": { - "description": "Whether click-tracking string should be included in the tags.", - "type": "boolean" - }, - "keywordOption": { - "description": "Option specifying how keywords are embedded in ad tags. This setting can be used to specify whether keyword placeholders are inserted in placement tags for this site. Publishers can then add keywords to those placeholders.", - "enum": [ - "PLACEHOLDER_WITH_LIST_OF_KEYWORDS", - "IGNORE", - "GENERATE_SEPARATE_TAG_FOR_EACH_KEYWORD" - ], - "enumDescriptions": [ - "", - "", - "" - ], - "type": "string" - } - }, - "type": "object" - }, - "TagSettings": { - "description": "Dynamic and Image Tag Settings.", - "id": "TagSettings", - "properties": { - "dynamicTagEnabled": { - "description": "Whether dynamic floodlight tags are enabled.", - "type": "boolean" - }, - "imageTagEnabled": { - "description": "Whether image tags are enabled.", - "type": "boolean" - } - }, - "type": "object" - }, - "TargetWindow": { - "description": "Target Window.", - "id": "TargetWindow", - "properties": { - "customHtml": { - "description": "User-entered value.", - "type": "string" - }, - "targetWindowOption": { - "description": "Type of browser window for which the backup image of the flash creative can be displayed.", - "enum": [ - "NEW_WINDOW", - "CURRENT_WINDOW", - "CUSTOM" - ], - "enumDescriptions": [ - "", - "", - "" - ], - "type": "string" - } - }, - "type": "object" - }, - "TargetableRemarketingList": { - "description": "Contains properties of a targetable remarketing list. Remarketing enables you to create lists of users who have performed specific actions on a site, then target ads to members of those lists. This resource is a read-only view of a remarketing list to be used to faciliate targeting ads to specific lists. Remarketing lists that are owned by your advertisers and those that are shared to your advertisers or account are accessible via this resource. To manage remarketing lists that are owned by your advertisers, use the RemarketingLists resource.", - "id": "TargetableRemarketingList", - "properties": { - "accountId": { - "description": "Account ID of this remarketing list. This is a read-only, auto-generated field that is only returned in GET requests.", - "format": "int64", - "type": "string" - }, - "active": { - "description": "Whether this targetable remarketing list is active.", - "type": "boolean" - }, - "advertiserId": { - "description": "Dimension value for the advertiser ID that owns this targetable remarketing list.", - "format": "int64", - "type": "string" - }, - "advertiserIdDimensionValue": { - "$ref": "DimensionValue", - "description": "Dimension value for the ID of the advertiser." - }, - "description": { - "description": "Targetable remarketing list description.", - "type": "string" }, "id": { - "description": "Targetable remarketing list ID.", - "format": "int64", - "type": "string" - }, - "kind": { - "description": "Identifies what kind of resource this is. Value: the fixed string \"dfareporting#targetableRemarketingList\".", - "type": "string" - }, - "lifeSpan": { - "description": "Number of days that a user should remain in the targetable remarketing list without an impression.", - "format": "int64", - "type": "string" - }, - "listSize": { - "description": "Number of users currently in the list. This is a read-only field.", - "format": "int64", - "type": "string" - }, - "listSource": { - "description": "Product from which this targetable remarketing list was originated.", - "enum": [ - "REMARKETING_LIST_SOURCE_OTHER", - "REMARKETING_LIST_SOURCE_ADX", - "REMARKETING_LIST_SOURCE_DFP", - "REMARKETING_LIST_SOURCE_XFP", - "REMARKETING_LIST_SOURCE_DFA", - "REMARKETING_LIST_SOURCE_GA", - "REMARKETING_LIST_SOURCE_YOUTUBE", - "REMARKETING_LIST_SOURCE_DBM", - "REMARKETING_LIST_SOURCE_GPLUS", - "REMARKETING_LIST_SOURCE_DMP", - "REMARKETING_LIST_SOURCE_PLAY_STORE" - ], - "enumDescriptions": [ - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "" - ], - "type": "string" - }, - "name": { - "description": "Name of the targetable remarketing list. Is no greater than 128 characters long.", - "type": "string" - }, - "subaccountId": { - "description": "Subaccount ID of this remarketing list. This is a read-only, auto-generated field that is only returned in GET requests.", - "format": "int64", - "type": "string" - } - }, - "type": "object" - }, - "TargetableRemarketingListsListResponse": { - "description": "Targetable remarketing list response", - "id": "TargetableRemarketingListsListResponse", - "properties": { - "kind": { - "description": "Identifies what kind of resource this is. Value: the fixed string \"dfareporting#targetableRemarketingListsListResponse\".", - "type": "string" - }, - "nextPageToken": { - "description": "Pagination token to be used for the next list operation.", - "type": "string" - }, - "targetableRemarketingLists": { - "description": "Targetable remarketing list collection.", - "items": { - "$ref": "TargetableRemarketingList" - }, - "type": "array" - } - }, - "type": "object" - }, - "TargetingTemplate": { - "description": "Contains properties of a targeting template. A targeting template encapsulates targeting information which can be reused across multiple ads.", - "id": "TargetingTemplate", - "properties": { - "accountId": { - "description": "Account ID of this targeting template. This field, if left unset, will be auto-generated on insert and is read-only after insert.", - "format": "int64", - "type": "string" - }, - "advertiserId": { - "description": "Advertiser ID of this targeting template. This is a required field on insert and is read-only after insert.", + "description": "Numeric ID of the asset. This is a read-only, auto-generated field.", "format": "int64", "type": "string" }, - "advertiserIdDimensionValue": { + "idDimensionValue": { "$ref": "DimensionValue", - "description": "Dimension value for the ID of the advertiser. This is a read-only, auto-generated field." - }, - "dayPartTargeting": { - "$ref": "DayPartTargeting", - "description": "Time and day targeting criteria." - }, - "geoTargeting": { - "$ref": "GeoTargeting", - "description": "Geographical targeting criteria." - }, - "id": { - "description": "ID of this targeting template. This is a read-only, auto-generated field.", - "format": "int64", - "type": "string" - }, - "keyValueTargetingExpression": { - "$ref": "KeyValueTargetingExpression", - "description": "Key-value targeting criteria." - }, - "kind": { - "description": "Identifies what kind of resource this is. Value: the fixed string \"dfareporting#targetingTemplate\".", - "type": "string" - }, - "languageTargeting": { - "$ref": "LanguageTargeting", - "description": "Language targeting criteria." - }, - "listTargetingExpression": { - "$ref": "ListTargetingExpression", - "description": "Remarketing list targeting criteria." - }, - "name": { - "description": "Name of this targeting template. This field is required. It must be less than 256 characters long and unique within an advertiser.", - "type": "string" - }, - "subaccountId": { - "description": "Subaccount ID of this targeting template. This field, if left unset, will be auto-generated on insert and is read-only after insert.", - "format": "int64", - "type": "string" + "description": "Dimension value for the numeric ID of the asset. This is a read-only, auto-generated field." }, - "technologyTargeting": { - "$ref": "TechnologyTargeting", - "description": "Technology platform targeting criteria." - } - }, - "type": "object" - }, - "TargetingTemplatesListResponse": { - "description": "Targeting Template List Response", - "id": "TargetingTemplatesListResponse", - "properties": { "kind": { - "description": "Identifies what kind of resource this is. Value: the fixed string \"dfareporting#targetingTemplatesListResponse\".", - "type": "string" - }, - "nextPageToken": { - "description": "Pagination token to be used for the next list operation.", + "description": "Identifies what kind of resource this is. Value: the fixed string \"dfareporting#creativeAssetMetadata\".", "type": "string" }, - "targetingTemplates": { - "description": "Targeting template collection.", - "items": { - "$ref": "TargetingTemplate" - }, - "type": "array" - } - }, - "type": "object" - }, - "TechnologyTargeting": { - "description": "Technology Targeting.", - "id": "TechnologyTargeting", - "properties": { - "browsers": { - "description": "Browsers that this ad targets. For each browser either set browserVersionId or dartId along with the version numbers. If both are specified, only browserVersionId will be used. The other fields are populated automatically when the ad is inserted or updated.", - "items": { - "$ref": "Browser" - }, - "type": "array" - }, - "connectionTypes": { - "description": "Connection types that this ad targets. For each connection type only id is required. The other fields are populated automatically when the ad is inserted or updated.", - "items": { - "$ref": "ConnectionType" - }, - "type": "array" + "mediaRequestInfo": { + "$ref": "MediaRequestInfo" }, - "mobileCarriers": { - "description": "Mobile carriers that this ad targets. For each mobile carrier only id is required, and the other fields are populated automatically when the ad is inserted or updated. If targeting a mobile carrier, do not set targeting for any zip codes.", - "items": { - "$ref": "MobileCarrier" - }, - "type": "array" + "mediaResponseInfo": { + "$ref": "MediaResponseInfo" }, - "operatingSystemVersions": { - "description": "Operating system versions that this ad targets. To target all versions, use operatingSystems. For each operating system version, only id is required. The other fields are populated automatically when the ad is inserted or updated. If targeting an operating system version, do not set targeting for the corresponding operating system in operatingSystems.", - "items": { - "$ref": "OperatingSystemVersion" - }, - "type": "array" + "richMedia": { + "description": "True if the uploaded asset is a rich media asset. This is a read-only, auto-generated field.", + "type": "boolean" }, - "operatingSystems": { - "description": "Operating systems that this ad targets. To target specific versions, use operatingSystemVersions. For each operating system only dartId is required. The other fields are populated automatically when the ad is inserted or updated. If targeting an operating system, do not set targeting for operating system versions for the same operating system.", + "timerCustomEvents": { + "description": "List of timer events configured for the asset. This is a read-only, auto-generated field and only applicable to a rich media asset.", "items": { - "$ref": "OperatingSystem" + "$ref": "CreativeCustomEvent" }, "type": "array" }, - "platformTypes": { - "description": "Platform types that this ad targets. For example, desktop, mobile, or tablet. For each platform type, only id is required, and the other fields are populated automatically when the ad is inserted or updated.", + "warnedValidationRules": { + "description": "Rules validated during code generation that generated a warning. This is a read-only, auto-generated field. Possible values are: - \"ADMOB_REFERENCED\" - \"ASSET_FORMAT_UNSUPPORTED_DCM\" - \"ASSET_INVALID\" - \"CLICK_TAG_HARD_CODED\" - \"CLICK_TAG_INVALID\" - \"CLICK_TAG_IN_GWD\" - \"CLICK_TAG_MISSING\" - \"CLICK_TAG_MORE_THAN_ONE\" - \"CLICK_TAG_NON_TOP_LEVEL\" - \"COMPONENT_UNSUPPORTED_DCM\" - \"ENABLER_UNSUPPORTED_METHOD_DCM\" - \"EXTERNAL_FILE_REFERENCED\" - \"FILE_DETAIL_EMPTY\" - \"FILE_TYPE_INVALID\" - \"GWD_PROPERTIES_INVALID\" - \"HTML5_FEATURE_UNSUPPORTED\" - \"LINKED_FILE_NOT_FOUND\" - \"MAX_FLASH_VERSION_11\" - \"MRAID_REFERENCED\" - \"NOT_SSL_COMPLIANT\" - \"ORPHANED_ASSET\" - \"PRIMARY_HTML_MISSING\" - \"SVG_INVALID\" - \"ZIP_INVALID\" ", "items": { - "$ref": "PlatformType" + "enum": [ + "CLICK_TAG_NON_TOP_LEVEL", + "CLICK_TAG_MISSING", + "CLICK_TAG_MORE_THAN_ONE", + "CLICK_TAG_INVALID", + "ORPHANED_ASSET", + "PRIMARY_HTML_MISSING", + "EXTERNAL_FILE_REFERENCED", + "MRAID_REFERENCED", + "ADMOB_REFERENCED", + "FILE_TYPE_INVALID", + "ZIP_INVALID", + "LINKED_FILE_NOT_FOUND", + "MAX_FLASH_VERSION_11", + "NOT_SSL_COMPLIANT", + "FILE_DETAIL_EMPTY", + "ASSET_INVALID", + "GWD_PROPERTIES_INVALID", + "ENABLER_UNSUPPORTED_METHOD_DCM", + "ASSET_FORMAT_UNSUPPORTED_DCM", + "COMPONENT_UNSUPPORTED_DCM", + "HTML5_FEATURE_UNSUPPORTED", + "CLICK_TAG_IN_GWD", + "CLICK_TAG_HARD_CODED", + "SVG_INVALID", + "CLICK_TAG_IN_RICH_MEDIA", + "MISSING_ENABLER_REFERENCE" + ], + "enumDescriptions": [ + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "" + ], + "type": "string" }, "type": "array" } }, "type": "object" }, - "ThirdPartyAuthenticationToken": { - "description": "Third Party Authentication Token", - "id": "ThirdPartyAuthenticationToken", - "properties": { - "name": { - "description": "Name of the third-party authentication token.", - "type": "string" - }, - "value": { - "description": "Value of the third-party authentication token. This is a read-only, auto-generated field.", - "type": "string" - } - }, - "type": "object" - }, - "ThirdPartyTrackingUrl": { - "description": "Third-party Tracking URL.", - "id": "ThirdPartyTrackingUrl", + "CreativeClickThroughUrl": { + "description": "Click-through URL", + "id": "CreativeClickThroughUrl", "properties": { - "thirdPartyUrlType": { - "description": "Third-party URL type for in-stream video and in-stream audio creatives.", - "enum": [ - "IMPRESSION", - "CLICK_TRACKING", - "VIDEO_START", - "VIDEO_FIRST_QUARTILE", - "VIDEO_MIDPOINT", - "VIDEO_THIRD_QUARTILE", - "VIDEO_COMPLETE", - "VIDEO_MUTE", - "VIDEO_PAUSE", - "VIDEO_REWIND", - "VIDEO_FULLSCREEN", - "VIDEO_STOP", - "VIDEO_CUSTOM", - "SURVEY", - "RICH_MEDIA_IMPRESSION", - "RICH_MEDIA_RM_IMPRESSION", - "RICH_MEDIA_BACKUP_IMPRESSION", - "VIDEO_SKIP", - "VIDEO_PROGRESS" - ], - "enumDescriptions": [ - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "" - ], + "computedClickThroughUrl": { + "description": "Read-only convenience field representing the actual URL that will be used for this click-through. The URL is computed as follows: - If landingPageId is specified then that landing page's URL is assigned to this field. - Otherwise, the customClickThroughUrl is assigned to this field. ", "type": "string" }, - "url": { - "description": "URL for the specified third-party URL type.", + "customClickThroughUrl": { + "description": "Custom click-through URL. Applicable if the landingPageId field is left unset.", "type": "string" - } - }, - "type": "object" - }, - "TranscodeSetting": { - "description": "Transcode Settings", - "id": "TranscodeSetting", - "properties": { - "enabledVideoFormats": { - "description": "Allowlist of video formats to be served to this placement. Set this list to null or empty to serve all video formats.", - "items": { - "format": "int32", - "type": "integer" - }, - "type": "array" }, - "kind": { - "description": "Identifies what kind of resource this is. Value: the fixed string \"dfareporting#transcodeSetting\".", + "landingPageId": { + "description": "ID of the landing page for the click-through URL.", + "format": "int64", "type": "string" } }, "type": "object" }, - "UniversalAdId": { - "description": "A Universal Ad ID as per the VAST 4.0 spec. Applicable to the following creative types: INSTREAM_AUDIO, INSTREAM_VIDEO and VPAID.", - "id": "UniversalAdId", + "CreativeCustomEvent": { + "description": "Creative Custom Event.", + "id": "CreativeCustomEvent", "properties": { - "registry": { - "description": "Registry used for the Ad ID value.", - "enum": [ - "OTHER", - "AD_ID_OFFICIAL", - "CLEARCAST", - "DCM" - ], - "enumDescriptions": [ - "", - "", - "", - "" - ], + "advertiserCustomEventId": { + "description": "Unique ID of this event used by Reporting and Data Transfer. This is a read-only field.", + "format": "int64", "type": "string" }, - "value": { - "description": "ID value for this creative. Only alphanumeric characters and the following symbols are valid: \"_/\\-\". Maximum length is 64 characters. Read only when registry is DCM.", + "advertiserCustomEventName": { + "description": "User-entered name for the event.", "type": "string" - } - }, - "type": "object" - }, - "UserDefinedVariableConfiguration": { - "description": "User Defined Variable configuration.", - "id": "UserDefinedVariableConfiguration", - "properties": { - "dataType": { - "description": "Data type for the variable. This is a required field.", + }, + "advertiserCustomEventType": { + "description": "Type of the event. This is a read-only field.", "enum": [ - "STRING", - "NUMBER" + "ADVERTISER_EVENT_TIMER", + "ADVERTISER_EVENT_EXIT", + "ADVERTISER_EVENT_COUNTER" ], "enumDescriptions": [ + "", "", "" ], "type": "string" }, - "reportName": { - "description": "User-friendly name for the variable which will appear in reports. This is a required field, must be less than 64 characters long, and cannot contain the following characters: \"\"\u003c\u003e\".", + "artworkLabel": { + "description": "Artwork label column, used to link events in Campaign Manager back to events in Studio. This is a required field and should not be modified after insertion.", "type": "string" }, - "variableType": { - "description": "Variable name in the tag. This is a required field.", + "artworkType": { + "description": "Artwork type used by the creative.This is a read-only field.", "enum": [ - "U1", - "U2", - "U3", - "U4", - "U5", - "U6", - "U7", - "U8", - "U9", - "U10", - "U11", - "U12", - "U13", - "U14", - "U15", - "U16", - "U17", - "U18", - "U19", - "U20", - "U21", - "U22", - "U23", - "U24", - "U25", - "U26", - "U27", - "U28", - "U29", - "U30", - "U31", - "U32", - "U33", - "U34", - "U35", - "U36", - "U37", - "U38", - "U39", - "U40", - "U41", - "U42", - "U43", - "U44", - "U45", - "U46", - "U47", - "U48", - "U49", - "U50", - "U51", - "U52", - "U53", - "U54", - "U55", - "U56", - "U57", - "U58", - "U59", - "U60", - "U61", - "U62", - "U63", - "U64", - "U65", - "U66", - "U67", - "U68", - "U69", - "U70", - "U71", - "U72", - "U73", - "U74", - "U75", - "U76", - "U77", - "U78", - "U79", - "U80", - "U81", - "U82", - "U83", - "U84", - "U85", - "U86", - "U87", - "U88", - "U89", - "U90", - "U91", - "U92", - "U93", - "U94", - "U95", - "U96", - "U97", - "U98", - "U99", - "U100" + "ARTWORK_TYPE_FLASH", + "ARTWORK_TYPE_HTML5", + "ARTWORK_TYPE_MIXED", + "ARTWORK_TYPE_IMAGE" ], "enumDescriptions": [ "", "", "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", + "" + ], + "type": "string" + }, + "exitClickThroughUrl": { + "$ref": "CreativeClickThroughUrl", + "description": "Exit click-through URL for the event. This field is used only for exit events." + }, + "id": { + "description": "ID of this event. This is a required field and should not be modified after insertion.", + "format": "int64", + "type": "string" + }, + "popupWindowProperties": { + "$ref": "PopupWindowProperties", + "description": "Properties for rich media popup windows. This field is used only for exit events." + }, + "targetType": { + "description": "Target type used by the event.", + "enum": [ + "TARGET_BLANK", + "TARGET_TOP", + "TARGET_SELF", + "TARGET_PARENT", + "TARGET_POPUP" + ], + "enumDescriptions": [ "", "", "", @@ -20236,367 +579,297 @@ "" ], "type": "string" + }, + "videoReportingId": { + "description": "Video reporting ID, used to differentiate multiple videos in a single creative. This is a read-only field.", + "type": "string" } }, "type": "object" }, - "UserProfile": { - "description": "A UserProfile resource lets you list all DFA user profiles that are associated with a Google user account. The profile_id needs to be specified in other API requests. ", - "id": "UserProfile", + "DimensionValue": { + "description": "Represents a DimensionValue resource.", + "id": "DimensionValue", "properties": { - "accountId": { - "description": "The account ID to which this profile belongs.", - "format": "int64", - "type": "string" - }, - "accountName": { - "description": "The account name this profile belongs to.", + "dimensionName": { + "description": "The name of the dimension.", "type": "string" }, "etag": { - "description": "Etag of this resource.", - "type": "string" - }, - "kind": { - "description": "Identifies what kind of resource this is. Value: the fixed string \"dfareporting#userProfile\".", + "description": "The eTag of this response for caching purposes.", "type": "string" }, - "profileId": { - "description": "The unique ID of the user profile.", - "format": "int64", + "id": { + "description": "The ID associated with the value if available.", "type": "string" }, - "subAccountId": { - "description": "The sub account ID this profile belongs to if applicable.", - "format": "int64", + "kind": { + "description": "The kind of resource this is, in this case dfareporting#dimensionValue.", "type": "string" }, - "subAccountName": { - "description": "The sub account name this profile belongs to if applicable.", + "matchType": { + "description": "Determines how the 'value' field is matched when filtering. If not specified, defaults to EXACT. If set to WILDCARD_EXPRESSION, '*' is allowed as a placeholder for variable length character sequences, and it can be escaped with a backslash. Note, only paid search dimensions ('dfa:paidSearch*') allow a matchType other than EXACT.", + "enum": [ + "EXACT", + "BEGINS_WITH", + "CONTAINS", + "WILDCARD_EXPRESSION" + ], + "enumDescriptions": [ + "", + "", + "", + "" + ], "type": "string" }, - "userName": { - "description": "The user name.", + "value": { + "description": "The value of the dimension.", "type": "string" } }, "type": "object" }, - "UserProfileList": { - "description": "Represents the list of user profiles.", - "id": "UserProfileList", + "MediaRequestInfo": { + "description": "Extra information added to operations that support Scotty media requests.", + "id": "MediaRequestInfo", "properties": { - "etag": { - "description": "Etag of this resource.", + "currentBytes": { + "description": "The number of current bytes uploaded or downloaded.", + "format": "int64", "type": "string" }, - "items": { - "description": "The user profiles returned in this response.", - "items": { - "$ref": "UserProfile" - }, - "type": "array" - }, - "kind": { - "description": "Identifies what kind of resource this is. Value: the fixed string \"dfareporting#userProfileList\".", + "customData": { + "description": "Data to be copied to backend requests. Custom data is returned to Scotty in the agent_state field, which Scotty will then provide in subsequent upload notifications.", "type": "string" - } - }, - "type": "object" - }, - "UserRole": { - "description": "Contains properties of auser role, which is used to manage user access.", - "id": "UserRole", - "properties": { - "accountId": { - "description": "Account ID of this user role. This is a read-only field that can be left blank.", - "format": "int64", + }, + "diffObjectVersion": { + "description": "Set if the http request info is diff encoded. The value of this field is the version number of the base revision. This is corresponding to Apiary's mediaDiffObjectVersion (//depot/google3/java/com/google/api/server/media/variable/DiffObjectVersionVariable.java). See go/esf-scotty-diff-upload for more information.", "type": "string" }, - "defaultUserRole": { - "description": "Whether this is a default user role. Default user roles are created by the system for the account/subaccount and cannot be modified or deleted. Each default user role comes with a basic set of preassigned permissions.", - "type": "boolean" + "finalStatus": { + "description": "The existence of the final_status field indicates that this is the last call to the agent for this request_id. http://google3/uploader/agent/scotty_agent.proto?l=737\u0026rcl=347601929", + "format": "int32", + "type": "integer" }, - "id": { - "description": "ID of this user role. This is a read-only, auto-generated field.", - "format": "int64", + "notificationType": { + "description": "The type of notification received from Scotty.", + "enum": [ + "START", + "PROGRESS", + "END", + "RESPONSE_SENT", + "ERROR" + ], + "enumDescriptions": [ + "Such requests signals the start of a request containing media upload. Only the media field(s) in the inserted/updated resource are set. The response should either return an error or succeed. On success, responses don't need to contain anything.", + "Such requests signals that the upload has progressed and that the backend might want to access the media file specified in relevant fields in the resource. Only the media field(s) in the inserted/updated resource are set. The response should either return an error or succeed. On success, responses don't need to contain anything.", + "Such requests signals the end of a request containing media upload. END should be handled just like normal Insert/Upload requests, that is, they should process the request and return a complete resource in the response. Pointers to media data (a GFS path usually) appear in the relevant fields in the inserted/updated resource. See gdata.Media in data.proto.", + "Such requests occur after an END and signal that the response has been sent back to the client. RESPONSE_SENT is only sent to the backend if it is configured to receive them. The response does not need to contain anything.", + "Such requests indicate that an error occurred while processing the request. ERROR is only sent to the backend if it is configured to receive them. It is not guaranteed that all errors will result in this notification to the backend, even if the backend requests them. Since these requests are just for informational purposes, the response does not need to contain anything." + ], "type": "string" }, - "kind": { - "description": "Identifies what kind of resource this is. Value: the fixed string \"dfareporting#userRole\".", + "requestId": { + "description": "The Scotty request ID.", "type": "string" }, - "name": { - "description": "Name of this user role. This is a required field. Must be less than 256 characters long. If this user role is under a subaccount, the name must be unique among sites of the same subaccount. Otherwise, this user role is a top-level user role, and the name must be unique among top-level user roles of the same account.", + "requestReceivedParamsServingInfo": { + "description": "The partition of the Scotty server handling this request. type is uploader_service.RequestReceivedParamsServingInfo LINT.IfChange(request_received_params_serving_info_annotations) LINT.ThenChange()", + "format": "byte", "type": "string" }, - "parentUserRoleId": { - "description": "ID of the user role that this user role is based on or copied from. This is a required field.", + "totalBytes": { + "description": "The total size of the file.", "format": "int64", "type": "string" }, - "permissions": { - "description": "List of permissions associated with this user role.", - "items": { - "$ref": "UserRolePermission" - }, - "type": "array" - }, - "subaccountId": { - "description": "Subaccount ID of this user role. This is a read-only field that can be left blank.", - "format": "int64", - "type": "string" + "totalBytesIsEstimated": { + "description": "Whether the total bytes field contains an estimated data.", + "type": "boolean" } }, "type": "object" }, - "UserRolePermission": { - "description": "Contains properties of a user role permission.", - "id": "UserRolePermission", + "MediaResponseInfo": { + "description": "This message is for backends to pass their scotty media specific fields to ESF. Backend will include this in their response message to ESF. Example: ExportFile is an rpc defined for upload using scotty from ESF. rpc ExportFile(ExportFileRequest) returns (ExportFileResponse) Message ExportFileResponse will include apiserving.MediaResponseInfo to tell ESF about data like dynamic_dropzone it needs to pass to Scotty. message ExportFileResponse { optional gdata.Media blob = 1; optional apiserving.MediaResponseInfo media_response_info = 2 }", + "id": "MediaResponseInfo", "properties": { - "availability": { - "description": "Levels of availability for a user role permission.", - "enum": [ - "NOT_AVAILABLE_BY_DEFAULT", - "ACCOUNT_BY_DEFAULT", - "SUBACCOUNT_AND_ACCOUNT_BY_DEFAULT", - "ACCOUNT_ALWAYS", - "SUBACCOUNT_AND_ACCOUNT_ALWAYS", - "USER_PROFILE_ONLY" - ], - "enumDescriptions": [ - "", - "", - "", - "", - "", - "" - ], + "customData": { + "description": "Data to copy from backend response to the next backend requests. Custom data is returned to Scotty in the agent_state field, which Scotty will then provide in subsequent upload notifications.", "type": "string" }, - "id": { - "description": "ID of this user role permission.", - "format": "int64", + "dataStorageTransform": { + "description": "Specifies any transformation to be applied to data before persisting it or retrieving from storage. E.g., encryption options for blobstore2. This should be of the form uploader_service.DataStorageTransform.", + "format": "byte", "type": "string" }, - "kind": { - "description": "Identifies what kind of resource this is. Value: the fixed string \"dfareporting#userRolePermission\".", + "dynamicDropTarget": { + "description": "Specifies the Scotty Drop Target to use for uploads. If present in a media response, Scotty does not upload to a standard drop zone. Instead, Scotty saves the upload directly to the location specified in this drop target. Unlike drop zones, the drop target is the final storage location for an upload. So, the agent does not need to clone the blob at the end of the upload. The agent is responsible for garbage collecting any orphaned blobs that may occur due to aborted uploads. For more information, see the drop target design doc here: http://goto/ScottyDropTarget This field will be preferred to dynamicDropzone. If provided, the identified field in the response must be of the type uploader.agent.DropTarget.", + "format": "byte", "type": "string" }, - "name": { - "description": "Name of this user role permission.", + "dynamicDropzone": { + "description": "Specifies the Scotty dropzone to use for uploads.", "type": "string" }, - "permissionGroupId": { - "description": "ID of the permission group that this user role permission belongs to.", - "format": "int64", + "requestClass": { + "description": "Request class to use for all Blobstore operations for this request.", + "enum": [ + "UNKNOWN_REQUEST_CLASS", + "LATENCY_SENSITIVE", + "PRODUCTION_BATCH", + "BEST_EFFORT" + ], + "enumDescriptions": [ + "Unpopulated request_class in log files will be taken as 0 in dremel query. GoogleSQL will try to cast it to enum by default. An unused 0 value is added to avoid GoogleSQL casting error. Please refer to b/69677280.", + "A latency-sensitive request.", + "A request generated by a batch process.", + "A best-effort request." + ], "type": "string" - } - }, - "type": "object" - }, - "UserRolePermissionGroup": { - "description": "Represents a grouping of related user role permissions.", - "id": "UserRolePermissionGroup", - "properties": { - "id": { - "description": "ID of this user role permission.", + }, + "scottyAgentUserId": { + "description": "Requester ID passed along to be recorded in the Scotty logs", "format": "int64", "type": "string" }, - "kind": { - "description": "Identifies what kind of resource this is. Value: the fixed string \"dfareporting#userRolePermissionGroup\".", + "scottyCustomerLog": { + "description": "Customer-specific data to be recorded in the Scotty logs type is logs_proto_scotty.CustomerLog", + "format": "byte", "type": "string" }, - "name": { - "description": "Name of this user role permission group.", - "type": "string" - } - }, - "type": "object" - }, - "UserRolePermissionGroupsListResponse": { - "description": "User Role Permission Group List Response", - "id": "UserRolePermissionGroupsListResponse", - "properties": { - "kind": { - "description": "Identifies what kind of resource this is. Value: the fixed string \"dfareporting#userRolePermissionGroupsListResponse\".", + "trafficClassField": { + "description": "Specifies the TrafficClass that Scotty should use for any RPCs to fetch the response bytes. Will override the traffic class GTOS of the incoming http request. This is a temporary field to facilitate whitelisting and experimentation by the bigstore agent only. For instance, this does not apply to RTMP reads. WARNING: DO NOT USE WITHOUT PERMISSION FROM THE SCOTTY TEAM.", + "enum": [ + "BE1", + "AF1", + "AF2", + "AF3", + "AF4", + "NC1", + "NC0", + "BE0", + "LLQ", + "LLQ1", + "LLQ2" + ], + "enumDescriptions": [ + "Application-selectable traffic classes Best effort", + "Assured forwarding priority 1", + "Assured forwarding priority 2", + "Assured forwarding priority 3", + "Assured forwarding priority 4", + "Network control", + "Network control", + "Best effort at high packet loss", + "Low-latency queue (LLQ) best effort (go/llq)", + "LLQ best effort (go/llq2)", + "LLQ assured forwarding priority 2 (go/llq2)" + ], "type": "string" }, - "userRolePermissionGroups": { - "description": "User role permission group collection.", - "items": { - "$ref": "UserRolePermissionGroup" - }, - "type": "array" + "verifyHashFromHeader": { + "description": "Tells Scotty to verify hashes on the agent's behalf by parsing out the X-Goog-Hash header.", + "type": "boolean" } }, "type": "object" }, - "UserRolePermissionsListResponse": { - "description": "User Role Permission List Response", - "id": "UserRolePermissionsListResponse", + "OffsetPosition": { + "description": "Offset Position.", + "id": "OffsetPosition", "properties": { - "kind": { - "description": "Identifies what kind of resource this is. Value: the fixed string \"dfareporting#userRolePermissionsListResponse\".", - "type": "string" + "left": { + "description": "Offset distance from left side of an asset or a window.", + "format": "int32", + "type": "integer" }, - "userRolePermissions": { - "description": "User role permission collection.", - "items": { - "$ref": "UserRolePermission" - }, - "type": "array" + "top": { + "description": "Offset distance from top side of an asset or a window.", + "format": "int32", + "type": "integer" } }, "type": "object" }, - "UserRolesListResponse": { - "description": "User Role List Response", - "id": "UserRolesListResponse", + "PopupWindowProperties": { + "description": "Popup Window Properties.", + "id": "PopupWindowProperties", "properties": { - "kind": { - "description": "Identifies what kind of resource this is. Value: the fixed string \"dfareporting#userRolesListResponse\".", - "type": "string" + "dimension": { + "$ref": "Size", + "description": "Popup dimension for a creative. This is a read-only field. Applicable to the following creative types: all RICH_MEDIA and all VPAID" }, - "nextPageToken": { - "description": "Pagination token to be used for the next list operation.", - "type": "string" + "offset": { + "$ref": "OffsetPosition", + "description": "Upper-left corner coordinates of the popup window. Applicable if positionType is COORDINATES." }, - "userRoles": { - "description": "User role collection.", - "items": { - "$ref": "UserRole" - }, - "type": "array" - } - }, - "type": "object" - }, - "VideoFormat": { - "description": "Contains information about supported video formats.", - "id": "VideoFormat", - "properties": { - "fileType": { - "description": "File type of the video format.", + "positionType": { + "description": "Popup window position either centered or at specific coordinate.", "enum": [ - "FLV", - "THREEGPP", - "MP4", - "WEBM", - "M3U8" + "CENTER", + "COORDINATES" ], "enumDescriptions": [ - "", - "", - "", "", "" ], "type": "string" }, - "id": { - "description": "ID of the video format.", - "format": "int32", - "type": "integer" + "showAddressBar": { + "description": "Whether to display the browser address bar.", + "type": "boolean" }, - "kind": { - "description": "Identifies what kind of resource this is. Value: the fixed string \"dfareporting#videoFormat\".", - "type": "string" + "showMenuBar": { + "description": "Whether to display the browser menu bar.", + "type": "boolean" }, - "resolution": { - "$ref": "Size", - "description": "The resolution of this video format." + "showScrollBar": { + "description": "Whether to display the browser scroll bar.", + "type": "boolean" }, - "targetBitRate": { - "description": "The target bit rate of this video format.", - "format": "int32", - "type": "integer" - } - }, - "type": "object" - }, - "VideoFormatsListResponse": { - "description": "Video Format List Response", - "id": "VideoFormatsListResponse", - "properties": { - "kind": { - "description": "Identifies what kind of resource this is. Value: the fixed string \"dfareporting#videoFormatsListResponse\".", - "type": "string" + "showStatusBar": { + "description": "Whether to display the browser status bar.", + "type": "boolean" }, - "videoFormats": { - "description": "Video format collection.", - "items": { - "$ref": "VideoFormat" - }, - "type": "array" - } - }, - "type": "object" - }, - "VideoOffset": { - "description": "Video Offset", - "id": "VideoOffset", - "properties": { - "offsetPercentage": { - "description": "Duration, as a percentage of video duration. Do not set when offsetSeconds is set. Acceptable values are 0 to 100, inclusive.", - "format": "int32", - "type": "integer" + "showToolBar": { + "description": "Whether to display the browser tool bar.", + "type": "boolean" }, - "offsetSeconds": { - "description": "Duration, in seconds. Do not set when offsetPercentage is set. Acceptable values are 0 to 86399, inclusive.", - "format": "int32", - "type": "integer" + "title": { + "description": "Title of popup window.", + "type": "string" } }, "type": "object" }, - "VideoSettings": { - "description": "Video Settings", - "id": "VideoSettings", + "Size": { + "description": "Represents the dimensions of ads, placements, creatives, or creative assets.", + "id": "Size", "properties": { - "companionSettings": { - "$ref": "CompanionSetting", - "description": "Settings for the companion creatives of video creatives served to this placement." - }, - "durationSeconds": { - "description": "Duration of a video placement in seconds.", + "height": { + "description": "Height of this size. Acceptable values are 0 to 32767, inclusive.", "format": "int32", "type": "integer" }, - "kind": { - "description": "Identifies what kind of resource this is. Value: the fixed string \"dfareporting#videoSettings\".", - "type": "string" - }, - "obaEnabled": { - "description": "Whether OBA icons are enabled for this placement.", + "iab": { + "description": "IAB standard size. This is a read-only, auto-generated field.", "type": "boolean" }, - "obaSettings": { - "$ref": "ObaIcon", - "description": "Settings for the OBA icon of video creatives served to this placement. If this object is provided, the creative-level OBA settings will be overridden." - }, - "orientation": { - "description": "Orientation of a video placement. If this value is set, placement will return assets matching the specified orientation.", - "enum": [ - "ANY", - "LANDSCAPE", - "PORTRAIT" - ], - "enumDescriptions": [ - "", - "", - "" - ], + "id": { + "description": "ID of this size. This is a read-only, auto-generated field.", + "format": "int64", "type": "string" }, - "skippableSettings": { - "$ref": "SkippableSetting", - "description": "Settings for the skippability of video creatives served to this placement. If this object is provided, the creative-level skippable settings will be overridden." + "kind": { + "description": "Identifies what kind of resource this is. Value: the fixed string \"dfareporting#size\".", + "type": "string" }, - "transcodeSettings": { - "$ref": "TranscodeSetting", - "description": "Settings for the transcodes of video creatives served to this placement. If this object is provided, the creative-level transcode settings will be overridden." + "width": { + "description": "Width of this size. Acceptable values are 0 to 32767, inclusive.", + "format": "int32", + "type": "integer" } }, "type": "object" diff --git a/dfareporting/v3.5/dfareporting-gen.go b/dfareporting/v3.5/dfareporting-gen.go index ffba77d74e2..b4373861f19 100644 --- a/dfareporting/v3.5/dfareporting-gen.go +++ b/dfareporting/v3.5/dfareporting-gen.go @@ -23,10 +23,6 @@ // // # Other authentication options // -// By default, all available scopes (see "Constants") are used to authenticate. To restrict scopes, use option.WithScopes: -// -// dfareportingService, err := dfareporting.NewService(ctx, option.WithScopes(dfareporting.DfatraffickingScope)) -// // To use an API key for authentication (note: some APIs do not support API keys), use option.WithAPIKey: // // dfareportingService, err := dfareporting.NewService(ctx, option.WithAPIKey("AIza...")) @@ -85,12 +81,6 @@ const mtlsBasePath = "https://dfareporting.mtls.googleapis.com/dfareporting/v3.5 // OAuth2 scopes used by this API. const ( - // Manage DoubleClick Digital Marketing conversions - DdmconversionsScope = "https://www.googleapis.com/auth/ddmconversions" - - // View and manage DoubleClick for Advertisers reports - DfareportingScope = "https://www.googleapis.com/auth/dfareporting" - // View and manage your DoubleClick Campaign Manager's (DCM) display ad // campaigns DfatraffickingScope = "https://www.googleapis.com/auth/dfatrafficking" @@ -99,8 +89,6 @@ const ( // NewService creates a new Service. func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, error) { scopesOption := internaloption.WithDefaultScopes( - "https://www.googleapis.com/auth/ddmconversions", - "https://www.googleapis.com/auth/dfareporting", "https://www.googleapis.com/auth/dfatrafficking", ) // NOTE: prepend, so we don't override user-specified scopes. @@ -131,66 +119,7 @@ func New(client *http.Client) (*Service, error) { return nil, errors.New("client is nil") } s := &Service{client: client, BasePath: basePath} - s.AccountActiveAdSummaries = NewAccountActiveAdSummariesService(s) - s.AccountPermissionGroups = NewAccountPermissionGroupsService(s) - s.AccountPermissions = NewAccountPermissionsService(s) - s.AccountUserProfiles = NewAccountUserProfilesService(s) - s.Accounts = NewAccountsService(s) - s.Ads = NewAdsService(s) - s.AdvertiserGroups = NewAdvertiserGroupsService(s) - s.AdvertiserLandingPages = NewAdvertiserLandingPagesService(s) - s.Advertisers = NewAdvertisersService(s) - s.Browsers = NewBrowsersService(s) - s.CampaignCreativeAssociations = NewCampaignCreativeAssociationsService(s) - s.Campaigns = NewCampaignsService(s) - s.ChangeLogs = NewChangeLogsService(s) - s.Cities = NewCitiesService(s) - s.ConnectionTypes = NewConnectionTypesService(s) - s.ContentCategories = NewContentCategoriesService(s) - s.Conversions = NewConversionsService(s) - s.Countries = NewCountriesService(s) - s.CreativeAssets = NewCreativeAssetsService(s) - s.CreativeFieldValues = NewCreativeFieldValuesService(s) - s.CreativeFields = NewCreativeFieldsService(s) - s.CreativeGroups = NewCreativeGroupsService(s) - s.Creatives = NewCreativesService(s) - s.DimensionValues = NewDimensionValuesService(s) - s.DirectorySites = NewDirectorySitesService(s) - s.DynamicTargetingKeys = NewDynamicTargetingKeysService(s) - s.EventTags = NewEventTagsService(s) - s.Files = NewFilesService(s) - s.FloodlightActivities = NewFloodlightActivitiesService(s) - s.FloodlightActivityGroups = NewFloodlightActivityGroupsService(s) - s.FloodlightConfigurations = NewFloodlightConfigurationsService(s) - s.InventoryItems = NewInventoryItemsService(s) - s.Languages = NewLanguagesService(s) - s.Metros = NewMetrosService(s) - s.MobileApps = NewMobileAppsService(s) - s.MobileCarriers = NewMobileCarriersService(s) - s.OperatingSystemVersions = NewOperatingSystemVersionsService(s) - s.OperatingSystems = NewOperatingSystemsService(s) - s.OrderDocuments = NewOrderDocumentsService(s) - s.Orders = NewOrdersService(s) - s.PlacementGroups = NewPlacementGroupsService(s) - s.PlacementStrategies = NewPlacementStrategiesService(s) - s.Placements = NewPlacementsService(s) - s.PlatformTypes = NewPlatformTypesService(s) - s.PostalCodes = NewPostalCodesService(s) - s.Projects = NewProjectsService(s) - s.Regions = NewRegionsService(s) - s.RemarketingListShares = NewRemarketingListSharesService(s) - s.RemarketingLists = NewRemarketingListsService(s) - s.Reports = NewReportsService(s) - s.Sites = NewSitesService(s) - s.Sizes = NewSizesService(s) - s.Subaccounts = NewSubaccountsService(s) - s.TargetableRemarketingLists = NewTargetableRemarketingListsService(s) - s.TargetingTemplates = NewTargetingTemplatesService(s) - s.UserProfiles = NewUserProfilesService(s) - s.UserRolePermissionGroups = NewUserRolePermissionGroupsService(s) - s.UserRolePermissions = NewUserRolePermissionsService(s) - s.UserRoles = NewUserRolesService(s) - s.VideoFormats = NewVideoFormatsService(s) + s.Media = NewMediaService(s) return s, nil } @@ -199,125 +128,7 @@ type Service struct { BasePath string // API endpoint base URL UserAgent string // optional additional User-Agent fragment - AccountActiveAdSummaries *AccountActiveAdSummariesService - - AccountPermissionGroups *AccountPermissionGroupsService - - AccountPermissions *AccountPermissionsService - - AccountUserProfiles *AccountUserProfilesService - - Accounts *AccountsService - - Ads *AdsService - - AdvertiserGroups *AdvertiserGroupsService - - AdvertiserLandingPages *AdvertiserLandingPagesService - - Advertisers *AdvertisersService - - Browsers *BrowsersService - - CampaignCreativeAssociations *CampaignCreativeAssociationsService - - Campaigns *CampaignsService - - ChangeLogs *ChangeLogsService - - Cities *CitiesService - - ConnectionTypes *ConnectionTypesService - - ContentCategories *ContentCategoriesService - - Conversions *ConversionsService - - Countries *CountriesService - - CreativeAssets *CreativeAssetsService - - CreativeFieldValues *CreativeFieldValuesService - - CreativeFields *CreativeFieldsService - - CreativeGroups *CreativeGroupsService - - Creatives *CreativesService - - DimensionValues *DimensionValuesService - - DirectorySites *DirectorySitesService - - DynamicTargetingKeys *DynamicTargetingKeysService - - EventTags *EventTagsService - - Files *FilesService - - FloodlightActivities *FloodlightActivitiesService - - FloodlightActivityGroups *FloodlightActivityGroupsService - - FloodlightConfigurations *FloodlightConfigurationsService - - InventoryItems *InventoryItemsService - - Languages *LanguagesService - - Metros *MetrosService - - MobileApps *MobileAppsService - - MobileCarriers *MobileCarriersService - - OperatingSystemVersions *OperatingSystemVersionsService - - OperatingSystems *OperatingSystemsService - - OrderDocuments *OrderDocumentsService - - Orders *OrdersService - - PlacementGroups *PlacementGroupsService - - PlacementStrategies *PlacementStrategiesService - - Placements *PlacementsService - - PlatformTypes *PlatformTypesService - - PostalCodes *PostalCodesService - - Projects *ProjectsService - - Regions *RegionsService - - RemarketingListShares *RemarketingListSharesService - - RemarketingLists *RemarketingListsService - - Reports *ReportsService - - Sites *SitesService - - Sizes *SizesService - - Subaccounts *SubaccountsService - - TargetableRemarketingLists *TargetableRemarketingListsService - - TargetingTemplates *TargetingTemplatesService - - UserProfiles *UserProfilesService - - UserRolePermissionGroups *UserRolePermissionGroupsService - - UserRolePermissions *UserRolePermissionsService - - UserRoles *UserRolesService - - VideoFormats *VideoFormatsService + Media *MediaService } func (s *Service) userAgent() string { @@ -327,52188 +138,947 @@ func (s *Service) userAgent() string { return googleapi.UserAgent + " " + s.UserAgent } -func NewAccountActiveAdSummariesService(s *Service) *AccountActiveAdSummariesService { - rs := &AccountActiveAdSummariesService{s: s} +func NewMediaService(s *Service) *MediaService { + rs := &MediaService{s: s} return rs } -type AccountActiveAdSummariesService struct { +type MediaService struct { s *Service } -func NewAccountPermissionGroupsService(s *Service) *AccountPermissionGroupsService { - rs := &AccountPermissionGroupsService{s: s} - return rs -} - -type AccountPermissionGroupsService struct { - s *Service -} +// ClickTag: Creative Click Tag. +type ClickTag struct { + // ClickThroughUrl: Parameter value for the specified click tag. This + // field contains a click-through url. + ClickThroughUrl *CreativeClickThroughUrl `json:"clickThroughUrl,omitempty"` -func NewAccountPermissionsService(s *Service) *AccountPermissionsService { - rs := &AccountPermissionsService{s: s} - return rs -} + // EventName: Advertiser event name associated with the click tag. This + // field is used by DISPLAY_IMAGE_GALLERY and HTML5_BANNER creatives. + // Applicable to DISPLAY when the primary asset type is not HTML_IMAGE. + EventName string `json:"eventName,omitempty"` -type AccountPermissionsService struct { - s *Service -} + // Name: Parameter name for the specified click tag. For + // DISPLAY_IMAGE_GALLERY creative assets, this field must match the + // value of the creative asset's creativeAssetId.name field. + Name string `json:"name,omitempty"` -func NewAccountUserProfilesService(s *Service) *AccountUserProfilesService { - rs := &AccountUserProfilesService{s: s} - return rs -} + // ForceSendFields is a list of field names (e.g. "ClickThroughUrl") 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:"-"` -type AccountUserProfilesService struct { - s *Service + // NullFields is a list of field names (e.g. "ClickThroughUrl") 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 NewAccountsService(s *Service) *AccountsService { - rs := &AccountsService{s: s} - return rs +func (s *ClickTag) MarshalJSON() ([]byte, error) { + type NoMethod ClickTag + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -type AccountsService struct { - s *Service -} +// CreativeAssetId: Creative Asset ID. +type CreativeAssetId struct { + // Name: Name of the creative asset. This is a required field while + // inserting an asset. After insertion, this assetIdentifier is used to + // identify the uploaded asset. Characters in the name must be + // alphanumeric or one of the following: ".-_ ". Spaces are allowed. + Name string `json:"name,omitempty"` -func NewAdsService(s *Service) *AdsService { - rs := &AdsService{s: s} - return rs -} + // Type: Type of asset to upload. This is a required field. FLASH and + // IMAGE are no longer supported for new uploads. All image assets + // should use HTML_IMAGE. + // + // Possible values: + // "IMAGE" + // "FLASH" + // "VIDEO" + // "HTML" + // "HTML_IMAGE" + // "AUDIO" + Type string `json:"type,omitempty"` -type AdsService struct { - s *Service -} + // ForceSendFields is a list of field names (e.g. "Name") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` -func NewAdvertiserGroupsService(s *Service) *AdvertiserGroupsService { - rs := &AdvertiserGroupsService{s: s} - return rs + // NullFields is a list of field names (e.g. "Name") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` } -type AdvertiserGroupsService struct { - s *Service +func (s *CreativeAssetId) MarshalJSON() ([]byte, error) { + type NoMethod CreativeAssetId + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -func NewAdvertiserLandingPagesService(s *Service) *AdvertiserLandingPagesService { - rs := &AdvertiserLandingPagesService{s: s} - return rs -} +// CreativeAssetMetadata: CreativeAssets contains properties of a +// creative asset file which will be uploaded or has already been +// uploaded. Refer to the creative sample code for how to upload assets +// and insert a creative. +type CreativeAssetMetadata struct { + // AssetIdentifier: ID of the creative asset. This is a required field. + AssetIdentifier *CreativeAssetId `json:"assetIdentifier,omitempty"` -type AdvertiserLandingPagesService struct { - s *Service -} + // ClickTags: List of detected click tags for assets. This is a + // read-only, auto-generated field. This field is empty for a rich media + // asset. + ClickTags []*ClickTag `json:"clickTags,omitempty"` -func NewAdvertisersService(s *Service) *AdvertisersService { - rs := &AdvertisersService{s: s} - return rs -} + // CounterCustomEvents: List of counter events configured for the asset. + // This is a read-only, auto-generated field and only applicable to a + // rich media asset. + CounterCustomEvents []*CreativeCustomEvent `json:"counterCustomEvents,omitempty"` -type AdvertisersService struct { - s *Service -} + // DetectedFeatures: List of feature dependencies for the creative asset + // that are detected by Campaign Manager. Feature dependencies are + // features that a browser must be able to support in order to render + // your HTML5 creative correctly. This is a read-only, auto-generated + // field. + // + // Possible values: + // "CSS_FONT_FACE" + // "CSS_BACKGROUND_SIZE" + // "CSS_BORDER_IMAGE" + // "CSS_BORDER_RADIUS" + // "CSS_BOX_SHADOW" + // "CSS_FLEX_BOX" + // "CSS_HSLA" + // "CSS_MULTIPLE_BGS" + // "CSS_OPACITY" + // "CSS_RGBA" + // "CSS_TEXT_SHADOW" + // "CSS_ANIMATIONS" + // "CSS_COLUMNS" + // "CSS_GENERATED_CONTENT" + // "CSS_GRADIENTS" + // "CSS_REFLECTIONS" + // "CSS_TRANSFORMS" + // "CSS_TRANSFORMS3D" + // "CSS_TRANSITIONS" + // "APPLICATION_CACHE" + // "CANVAS" + // "CANVAS_TEXT" + // "DRAG_AND_DROP" + // "HASH_CHANGE" + // "HISTORY" + // "AUDIO" + // "VIDEO" + // "INDEXED_DB" + // "INPUT_ATTR_AUTOCOMPLETE" + // "INPUT_ATTR_AUTOFOCUS" + // "INPUT_ATTR_LIST" + // "INPUT_ATTR_PLACEHOLDER" + // "INPUT_ATTR_MAX" + // "INPUT_ATTR_MIN" + // "INPUT_ATTR_MULTIPLE" + // "INPUT_ATTR_PATTERN" + // "INPUT_ATTR_REQUIRED" + // "INPUT_ATTR_STEP" + // "INPUT_TYPE_SEARCH" + // "INPUT_TYPE_TEL" + // "INPUT_TYPE_URL" + // "INPUT_TYPE_EMAIL" + // "INPUT_TYPE_DATETIME" + // "INPUT_TYPE_DATE" + // "INPUT_TYPE_MONTH" + // "INPUT_TYPE_WEEK" + // "INPUT_TYPE_TIME" + // "INPUT_TYPE_DATETIME_LOCAL" + // "INPUT_TYPE_NUMBER" + // "INPUT_TYPE_RANGE" + // "INPUT_TYPE_COLOR" + // "LOCAL_STORAGE" + // "POST_MESSAGE" + // "SESSION_STORAGE" + // "WEB_SOCKETS" + // "WEB_SQL_DATABASE" + // "WEB_WORKERS" + // "GEO_LOCATION" + // "INLINE_SVG" + // "SMIL" + // "SVG_HREF" + // "SVG_CLIP_PATHS" + // "TOUCH" + // "WEBGL" + // "SVG_FILTERS" + // "SVG_FE_IMAGE" + DetectedFeatures []string `json:"detectedFeatures,omitempty"` -func NewBrowsersService(s *Service) *BrowsersService { - rs := &BrowsersService{s: s} - return rs -} + // ExitCustomEvents: List of exit events configured for the asset. This + // is a read-only, auto-generated field and only applicable to a rich + // media asset. + ExitCustomEvents []*CreativeCustomEvent `json:"exitCustomEvents,omitempty"` -type BrowsersService struct { - s *Service -} - -func NewCampaignCreativeAssociationsService(s *Service) *CampaignCreativeAssociationsService { - rs := &CampaignCreativeAssociationsService{s: s} - return rs -} + // Id: Numeric ID of the asset. This is a read-only, auto-generated + // field. + Id int64 `json:"id,omitempty,string"` -type CampaignCreativeAssociationsService struct { - s *Service -} + // IdDimensionValue: Dimension value for the numeric ID of the asset. + // This is a read-only, auto-generated field. + IdDimensionValue *DimensionValue `json:"idDimensionValue,omitempty"` -func NewCampaignsService(s *Service) *CampaignsService { - rs := &CampaignsService{s: s} - return rs -} + // Kind: Identifies what kind of resource this is. Value: the fixed + // string "dfareporting#creativeAssetMetadata". + Kind string `json:"kind,omitempty"` -type CampaignsService struct { - s *Service -} + MediaRequestInfo *MediaRequestInfo `json:"mediaRequestInfo,omitempty"` -func NewChangeLogsService(s *Service) *ChangeLogsService { - rs := &ChangeLogsService{s: s} - return rs -} + MediaResponseInfo *MediaResponseInfo `json:"mediaResponseInfo,omitempty"` -type ChangeLogsService struct { - s *Service -} + // RichMedia: True if the uploaded asset is a rich media asset. This is + // a read-only, auto-generated field. + RichMedia bool `json:"richMedia,omitempty"` -func NewCitiesService(s *Service) *CitiesService { - rs := &CitiesService{s: s} - return rs -} + // TimerCustomEvents: List of timer events configured for the asset. + // This is a read-only, auto-generated field and only applicable to a + // rich media asset. + TimerCustomEvents []*CreativeCustomEvent `json:"timerCustomEvents,omitempty"` -type CitiesService struct { - s *Service -} + // WarnedValidationRules: Rules validated during code generation that + // generated a warning. This is a read-only, auto-generated field. + // Possible values are: - "ADMOB_REFERENCED" - + // "ASSET_FORMAT_UNSUPPORTED_DCM" - "ASSET_INVALID" - + // "CLICK_TAG_HARD_CODED" - "CLICK_TAG_INVALID" - "CLICK_TAG_IN_GWD" - + // "CLICK_TAG_MISSING" - "CLICK_TAG_MORE_THAN_ONE" - + // "CLICK_TAG_NON_TOP_LEVEL" - "COMPONENT_UNSUPPORTED_DCM" - + // "ENABLER_UNSUPPORTED_METHOD_DCM" - "EXTERNAL_FILE_REFERENCED" - + // "FILE_DETAIL_EMPTY" - "FILE_TYPE_INVALID" - "GWD_PROPERTIES_INVALID" + // - "HTML5_FEATURE_UNSUPPORTED" - "LINKED_FILE_NOT_FOUND" - + // "MAX_FLASH_VERSION_11" - "MRAID_REFERENCED" - "NOT_SSL_COMPLIANT" - + // "ORPHANED_ASSET" - "PRIMARY_HTML_MISSING" - "SVG_INVALID" - + // "ZIP_INVALID" + // + // Possible values: + // "CLICK_TAG_NON_TOP_LEVEL" + // "CLICK_TAG_MISSING" + // "CLICK_TAG_MORE_THAN_ONE" + // "CLICK_TAG_INVALID" + // "ORPHANED_ASSET" + // "PRIMARY_HTML_MISSING" + // "EXTERNAL_FILE_REFERENCED" + // "MRAID_REFERENCED" + // "ADMOB_REFERENCED" + // "FILE_TYPE_INVALID" + // "ZIP_INVALID" + // "LINKED_FILE_NOT_FOUND" + // "MAX_FLASH_VERSION_11" + // "NOT_SSL_COMPLIANT" + // "FILE_DETAIL_EMPTY" + // "ASSET_INVALID" + // "GWD_PROPERTIES_INVALID" + // "ENABLER_UNSUPPORTED_METHOD_DCM" + // "ASSET_FORMAT_UNSUPPORTED_DCM" + // "COMPONENT_UNSUPPORTED_DCM" + // "HTML5_FEATURE_UNSUPPORTED" + // "CLICK_TAG_IN_GWD" + // "CLICK_TAG_HARD_CODED" + // "SVG_INVALID" + // "CLICK_TAG_IN_RICH_MEDIA" + // "MISSING_ENABLER_REFERENCE" + WarnedValidationRules []string `json:"warnedValidationRules,omitempty"` -func NewConnectionTypesService(s *Service) *ConnectionTypesService { - rs := &ConnectionTypesService{s: s} - return rs -} + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` -type ConnectionTypesService struct { - s *Service -} + // ForceSendFields is a list of field names (e.g. "AssetIdentifier") 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:"-"` -func NewContentCategoriesService(s *Service) *ContentCategoriesService { - rs := &ContentCategoriesService{s: s} - return rs + // NullFields is a list of field names (e.g. "AssetIdentifier") 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:"-"` } -type ContentCategoriesService struct { - s *Service +func (s *CreativeAssetMetadata) MarshalJSON() ([]byte, error) { + type NoMethod CreativeAssetMetadata + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -func NewConversionsService(s *Service) *ConversionsService { - rs := &ConversionsService{s: s} - return rs -} +// CreativeClickThroughUrl: Click-through URL +type CreativeClickThroughUrl struct { + // ComputedClickThroughUrl: Read-only convenience field representing the + // actual URL that will be used for this click-through. The URL is + // computed as follows: - If landingPageId is specified then that + // landing page's URL is assigned to this field. - Otherwise, the + // customClickThroughUrl is assigned to this field. + ComputedClickThroughUrl string `json:"computedClickThroughUrl,omitempty"` -type ConversionsService struct { - s *Service -} + // CustomClickThroughUrl: Custom click-through URL. Applicable if the + // landingPageId field is left unset. + CustomClickThroughUrl string `json:"customClickThroughUrl,omitempty"` -func NewCountriesService(s *Service) *CountriesService { - rs := &CountriesService{s: s} - return rs -} + // LandingPageId: ID of the landing page for the click-through URL. + LandingPageId int64 `json:"landingPageId,omitempty,string"` -type CountriesService struct { - s *Service -} + // ForceSendFields is a list of field names (e.g. + // "ComputedClickThroughUrl") 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:"-"` -func NewCreativeAssetsService(s *Service) *CreativeAssetsService { - rs := &CreativeAssetsService{s: s} - return rs + // NullFields is a list of field names (e.g. "ComputedClickThroughUrl") + // 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:"-"` } -type CreativeAssetsService struct { - s *Service +func (s *CreativeClickThroughUrl) MarshalJSON() ([]byte, error) { + type NoMethod CreativeClickThroughUrl + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -func NewCreativeFieldValuesService(s *Service) *CreativeFieldValuesService { - rs := &CreativeFieldValuesService{s: s} - return rs -} +// CreativeCustomEvent: Creative Custom Event. +type CreativeCustomEvent struct { + // AdvertiserCustomEventId: Unique ID of this event used by Reporting + // and Data Transfer. This is a read-only field. + AdvertiserCustomEventId int64 `json:"advertiserCustomEventId,omitempty,string"` -type CreativeFieldValuesService struct { - s *Service -} + // AdvertiserCustomEventName: User-entered name for the event. + AdvertiserCustomEventName string `json:"advertiserCustomEventName,omitempty"` -func NewCreativeFieldsService(s *Service) *CreativeFieldsService { - rs := &CreativeFieldsService{s: s} - return rs -} + // AdvertiserCustomEventType: Type of the event. This is a read-only + // field. + // + // Possible values: + // "ADVERTISER_EVENT_TIMER" + // "ADVERTISER_EVENT_EXIT" + // "ADVERTISER_EVENT_COUNTER" + AdvertiserCustomEventType string `json:"advertiserCustomEventType,omitempty"` -type CreativeFieldsService struct { - s *Service -} + // ArtworkLabel: Artwork label column, used to link events in Campaign + // Manager back to events in Studio. This is a required field and should + // not be modified after insertion. + ArtworkLabel string `json:"artworkLabel,omitempty"` -func NewCreativeGroupsService(s *Service) *CreativeGroupsService { - rs := &CreativeGroupsService{s: s} - return rs -} + // ArtworkType: Artwork type used by the creative.This is a read-only + // field. + // + // Possible values: + // "ARTWORK_TYPE_FLASH" + // "ARTWORK_TYPE_HTML5" + // "ARTWORK_TYPE_MIXED" + // "ARTWORK_TYPE_IMAGE" + ArtworkType string `json:"artworkType,omitempty"` -type CreativeGroupsService struct { - s *Service -} + // ExitClickThroughUrl: Exit click-through URL for the event. This field + // is used only for exit events. + ExitClickThroughUrl *CreativeClickThroughUrl `json:"exitClickThroughUrl,omitempty"` -func NewCreativesService(s *Service) *CreativesService { - rs := &CreativesService{s: s} - return rs -} + // Id: ID of this event. This is a required field and should not be + // modified after insertion. + Id int64 `json:"id,omitempty,string"` -type CreativesService struct { - s *Service -} + // PopupWindowProperties: Properties for rich media popup windows. This + // field is used only for exit events. + PopupWindowProperties *PopupWindowProperties `json:"popupWindowProperties,omitempty"` -func NewDimensionValuesService(s *Service) *DimensionValuesService { - rs := &DimensionValuesService{s: s} - return rs -} + // TargetType: Target type used by the event. + // + // Possible values: + // "TARGET_BLANK" + // "TARGET_TOP" + // "TARGET_SELF" + // "TARGET_PARENT" + // "TARGET_POPUP" + TargetType string `json:"targetType,omitempty"` -type DimensionValuesService struct { - s *Service -} + // VideoReportingId: Video reporting ID, used to differentiate multiple + // videos in a single creative. This is a read-only field. + VideoReportingId string `json:"videoReportingId,omitempty"` -func NewDirectorySitesService(s *Service) *DirectorySitesService { - rs := &DirectorySitesService{s: s} - return rs -} + // ForceSendFields is a list of field names (e.g. + // "AdvertiserCustomEventId") 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:"-"` -type DirectorySitesService struct { - s *Service + // NullFields is a list of field names (e.g. "AdvertiserCustomEventId") + // 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 NewDynamicTargetingKeysService(s *Service) *DynamicTargetingKeysService { - rs := &DynamicTargetingKeysService{s: s} - return rs +func (s *CreativeCustomEvent) MarshalJSON() ([]byte, error) { + type NoMethod CreativeCustomEvent + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -type DynamicTargetingKeysService struct { - s *Service -} +// DimensionValue: Represents a DimensionValue resource. +type DimensionValue struct { + // DimensionName: The name of the dimension. + DimensionName string `json:"dimensionName,omitempty"` -func NewEventTagsService(s *Service) *EventTagsService { - rs := &EventTagsService{s: s} - return rs -} + // Etag: The eTag of this response for caching purposes. + Etag string `json:"etag,omitempty"` -type EventTagsService struct { - s *Service -} + // Id: The ID associated with the value if available. + Id string `json:"id,omitempty"` -func NewFilesService(s *Service) *FilesService { - rs := &FilesService{s: s} - return rs -} - -type FilesService struct { - s *Service -} - -func NewFloodlightActivitiesService(s *Service) *FloodlightActivitiesService { - rs := &FloodlightActivitiesService{s: s} - return rs -} - -type FloodlightActivitiesService struct { - s *Service -} - -func NewFloodlightActivityGroupsService(s *Service) *FloodlightActivityGroupsService { - rs := &FloodlightActivityGroupsService{s: s} - return rs -} - -type FloodlightActivityGroupsService struct { - s *Service -} - -func NewFloodlightConfigurationsService(s *Service) *FloodlightConfigurationsService { - rs := &FloodlightConfigurationsService{s: s} - return rs -} - -type FloodlightConfigurationsService struct { - s *Service -} - -func NewInventoryItemsService(s *Service) *InventoryItemsService { - rs := &InventoryItemsService{s: s} - return rs -} - -type InventoryItemsService struct { - s *Service -} - -func NewLanguagesService(s *Service) *LanguagesService { - rs := &LanguagesService{s: s} - return rs -} - -type LanguagesService struct { - s *Service -} - -func NewMetrosService(s *Service) *MetrosService { - rs := &MetrosService{s: s} - return rs -} - -type MetrosService struct { - s *Service -} - -func NewMobileAppsService(s *Service) *MobileAppsService { - rs := &MobileAppsService{s: s} - return rs -} - -type MobileAppsService struct { - s *Service -} + // Kind: The kind of resource this is, in this case + // dfareporting#dimensionValue. + Kind string `json:"kind,omitempty"` -func NewMobileCarriersService(s *Service) *MobileCarriersService { - rs := &MobileCarriersService{s: s} - return rs -} + // MatchType: Determines how the 'value' field is matched when + // filtering. If not specified, defaults to EXACT. If set to + // WILDCARD_EXPRESSION, '*' is allowed as a placeholder for variable + // length character sequences, and it can be escaped with a backslash. + // Note, only paid search dimensions ('dfa:paidSearch*') allow a + // matchType other than EXACT. + // + // Possible values: + // "EXACT" + // "BEGINS_WITH" + // "CONTAINS" + // "WILDCARD_EXPRESSION" + MatchType string `json:"matchType,omitempty"` -type MobileCarriersService struct { - s *Service -} + // Value: The value of the dimension. + Value string `json:"value,omitempty"` -func NewOperatingSystemVersionsService(s *Service) *OperatingSystemVersionsService { - rs := &OperatingSystemVersionsService{s: s} - return rs -} + // ForceSendFields is a list of field names (e.g. "DimensionName") 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:"-"` -type OperatingSystemVersionsService struct { - s *Service + // NullFields is a list of field names (e.g. "DimensionName") 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 NewOperatingSystemsService(s *Service) *OperatingSystemsService { - rs := &OperatingSystemsService{s: s} - return rs +func (s *DimensionValue) MarshalJSON() ([]byte, error) { + type NoMethod DimensionValue + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -type OperatingSystemsService struct { - s *Service -} +// MediaRequestInfo: Extra information added to operations that support +// Scotty media requests. +type MediaRequestInfo struct { + // CurrentBytes: The number of current bytes uploaded or downloaded. + CurrentBytes int64 `json:"currentBytes,omitempty,string"` -func NewOrderDocumentsService(s *Service) *OrderDocumentsService { - rs := &OrderDocumentsService{s: s} - return rs -} + // CustomData: Data to be copied to backend requests. Custom data is + // returned to Scotty in the agent_state field, which Scotty will then + // provide in subsequent upload notifications. + CustomData string `json:"customData,omitempty"` -type OrderDocumentsService struct { - s *Service -} + // DiffObjectVersion: Set if the http request info is diff encoded. The + // value of this field is the version number of the base revision. This + // is corresponding to Apiary's mediaDiffObjectVersion + // (//depot/google3/java/com/google/api/server/media/variable/DiffObjectV + // ersionVariable.java). See go/esf-scotty-diff-upload for more + // information. + DiffObjectVersion string `json:"diffObjectVersion,omitempty"` -func NewOrdersService(s *Service) *OrdersService { - rs := &OrdersService{s: s} - return rs -} + // FinalStatus: The existence of the final_status field indicates that + // this is the last call to the agent for this request_id. + // http://google3/uploader/agent/scotty_agent.proto?l=737&rcl=347601929 + FinalStatus int64 `json:"finalStatus,omitempty"` -type OrdersService struct { - s *Service -} + // NotificationType: The type of notification received from Scotty. + // + // Possible values: + // "START" - Such requests signals the start of a request containing + // media upload. Only the media field(s) in the inserted/updated + // resource are set. The response should either return an error or + // succeed. On success, responses don't need to contain anything. + // "PROGRESS" - Such requests signals that the upload has progressed + // and that the backend might want to access the media file specified in + // relevant fields in the resource. Only the media field(s) in the + // inserted/updated resource are set. The response should either return + // an error or succeed. On success, responses don't need to contain + // anything. + // "END" - Such requests signals the end of a request containing media + // upload. END should be handled just like normal Insert/Upload + // requests, that is, they should process the request and return a + // complete resource in the response. Pointers to media data (a GFS path + // usually) appear in the relevant fields in the inserted/updated + // resource. See gdata.Media in data.proto. + // "RESPONSE_SENT" - Such requests occur after an END and signal that + // the response has been sent back to the client. RESPONSE_SENT is only + // sent to the backend if it is configured to receive them. The response + // does not need to contain anything. + // "ERROR" - Such requests indicate that an error occurred while + // processing the request. ERROR is only sent to the backend if it is + // configured to receive them. It is not guaranteed that all errors will + // result in this notification to the backend, even if the backend + // requests them. Since these requests are just for informational + // purposes, the response does not need to contain anything. + NotificationType string `json:"notificationType,omitempty"` -func NewPlacementGroupsService(s *Service) *PlacementGroupsService { - rs := &PlacementGroupsService{s: s} - return rs -} + // RequestId: The Scotty request ID. + RequestId string `json:"requestId,omitempty"` -type PlacementGroupsService struct { - s *Service -} + // RequestReceivedParamsServingInfo: The partition of the Scotty server + // handling this request. type is + // uploader_service.RequestReceivedParamsServingInfo + // LINT.IfChange(request_received_params_serving_info_annotations) + // LINT.ThenChange() + RequestReceivedParamsServingInfo string `json:"requestReceivedParamsServingInfo,omitempty"` -func NewPlacementStrategiesService(s *Service) *PlacementStrategiesService { - rs := &PlacementStrategiesService{s: s} - return rs -} + // TotalBytes: The total size of the file. + TotalBytes int64 `json:"totalBytes,omitempty,string"` -type PlacementStrategiesService struct { - s *Service -} + // TotalBytesIsEstimated: Whether the total bytes field contains an + // estimated data. + TotalBytesIsEstimated bool `json:"totalBytesIsEstimated,omitempty"` -func NewPlacementsService(s *Service) *PlacementsService { - rs := &PlacementsService{s: s} - return rs -} + // ForceSendFields is a list of field names (e.g. "CurrentBytes") 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:"-"` -type PlacementsService struct { - s *Service + // NullFields is a list of field names (e.g. "CurrentBytes") 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 NewPlatformTypesService(s *Service) *PlatformTypesService { - rs := &PlatformTypesService{s: s} - return rs +func (s *MediaRequestInfo) MarshalJSON() ([]byte, error) { + type NoMethod MediaRequestInfo + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -type PlatformTypesService struct { - s *Service -} +// MediaResponseInfo: This message is for backends to pass their scotty +// media specific fields to ESF. Backend will include this in their +// response message to ESF. Example: ExportFile is an rpc defined for +// upload using scotty from ESF. rpc ExportFile(ExportFileRequest) +// returns (ExportFileResponse) Message ExportFileResponse will include +// apiserving.MediaResponseInfo to tell ESF about data like +// dynamic_dropzone it needs to pass to Scotty. message +// ExportFileResponse { optional gdata.Media blob = 1; optional +// apiserving.MediaResponseInfo media_response_info = 2 } +type MediaResponseInfo struct { + // CustomData: Data to copy from backend response to the next backend + // requests. Custom data is returned to Scotty in the agent_state field, + // which Scotty will then provide in subsequent upload notifications. + CustomData string `json:"customData,omitempty"` -func NewPostalCodesService(s *Service) *PostalCodesService { - rs := &PostalCodesService{s: s} - return rs -} + // DataStorageTransform: Specifies any transformation to be applied to + // data before persisting it or retrieving from storage. E.g., + // encryption options for blobstore2. This should be of the form + // uploader_service.DataStorageTransform. + DataStorageTransform string `json:"dataStorageTransform,omitempty"` -type PostalCodesService struct { - s *Service -} + // DynamicDropTarget: Specifies the Scotty Drop Target to use for + // uploads. If present in a media response, Scotty does not upload to a + // standard drop zone. Instead, Scotty saves the upload directly to the + // location specified in this drop target. Unlike drop zones, the drop + // target is the final storage location for an upload. So, the agent + // does not need to clone the blob at the end of the upload. The agent + // is responsible for garbage collecting any orphaned blobs that may + // occur due to aborted uploads. For more information, see the drop + // target design doc here: http://goto/ScottyDropTarget This field will + // be preferred to dynamicDropzone. If provided, the identified field in + // the response must be of the type uploader.agent.DropTarget. + DynamicDropTarget string `json:"dynamicDropTarget,omitempty"` -func NewProjectsService(s *Service) *ProjectsService { - rs := &ProjectsService{s: s} - return rs -} + // DynamicDropzone: Specifies the Scotty dropzone to use for uploads. + DynamicDropzone string `json:"dynamicDropzone,omitempty"` -type ProjectsService struct { - s *Service -} + // RequestClass: Request class to use for all Blobstore operations for + // this request. + // + // Possible values: + // "UNKNOWN_REQUEST_CLASS" - Unpopulated request_class in log files + // will be taken as 0 in dremel query. GoogleSQL will try to cast it to + // enum by default. An unused 0 value is added to avoid GoogleSQL + // casting error. Please refer to b/69677280. + // "LATENCY_SENSITIVE" - A latency-sensitive request. + // "PRODUCTION_BATCH" - A request generated by a batch process. + // "BEST_EFFORT" - A best-effort request. + RequestClass string `json:"requestClass,omitempty"` -func NewRegionsService(s *Service) *RegionsService { - rs := &RegionsService{s: s} - return rs -} + // ScottyAgentUserId: Requester ID passed along to be recorded in the + // Scotty logs + ScottyAgentUserId int64 `json:"scottyAgentUserId,omitempty,string"` -type RegionsService struct { - s *Service -} + // ScottyCustomerLog: Customer-specific data to be recorded in the + // Scotty logs type is logs_proto_scotty.CustomerLog + ScottyCustomerLog string `json:"scottyCustomerLog,omitempty"` -func NewRemarketingListSharesService(s *Service) *RemarketingListSharesService { - rs := &RemarketingListSharesService{s: s} - return rs -} + // TrafficClassField: Specifies the TrafficClass that Scotty should use + // for any RPCs to fetch the response bytes. Will override the traffic + // class GTOS of the incoming http request. This is a temporary field to + // facilitate whitelisting and experimentation by the bigstore agent + // only. For instance, this does not apply to RTMP reads. WARNING: DO + // NOT USE WITHOUT PERMISSION FROM THE SCOTTY TEAM. + // + // Possible values: + // "BE1" - Application-selectable traffic classes Best effort + // "AF1" - Assured forwarding priority 1 + // "AF2" - Assured forwarding priority 2 + // "AF3" - Assured forwarding priority 3 + // "AF4" - Assured forwarding priority 4 + // "NC1" - Network control + // "NC0" - Network control + // "BE0" - Best effort at high packet loss + // "LLQ" - Low-latency queue (LLQ) best effort (go/llq) + // "LLQ1" - LLQ best effort (go/llq2) + // "LLQ2" - LLQ assured forwarding priority 2 (go/llq2) + TrafficClassField string `json:"trafficClassField,omitempty"` -type RemarketingListSharesService struct { - s *Service -} + // VerifyHashFromHeader: Tells Scotty to verify hashes on the agent's + // behalf by parsing out the X-Goog-Hash header. + VerifyHashFromHeader bool `json:"verifyHashFromHeader,omitempty"` -func NewRemarketingListsService(s *Service) *RemarketingListsService { - rs := &RemarketingListsService{s: s} - return rs -} + // ForceSendFields is a list of field names (e.g. "CustomData") 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:"-"` -type RemarketingListsService struct { - s *Service + // NullFields is a list of field names (e.g. "CustomData") 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 NewReportsService(s *Service) *ReportsService { - rs := &ReportsService{s: s} - rs.CompatibleFields = NewReportsCompatibleFieldsService(s) - rs.Files = NewReportsFilesService(s) - return rs +func (s *MediaResponseInfo) MarshalJSON() ([]byte, error) { + type NoMethod MediaResponseInfo + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -type ReportsService struct { - s *Service - - CompatibleFields *ReportsCompatibleFieldsService +// OffsetPosition: Offset Position. +type OffsetPosition struct { + // Left: Offset distance from left side of an asset or a window. + Left int64 `json:"left,omitempty"` - Files *ReportsFilesService -} + // Top: Offset distance from top side of an asset or a window. + Top int64 `json:"top,omitempty"` -func NewReportsCompatibleFieldsService(s *Service) *ReportsCompatibleFieldsService { - rs := &ReportsCompatibleFieldsService{s: s} - return rs -} + // ForceSendFields is a list of field names (e.g. "Left") 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:"-"` -type ReportsCompatibleFieldsService struct { - s *Service + // NullFields is a list of field names (e.g. "Left") 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 NewReportsFilesService(s *Service) *ReportsFilesService { - rs := &ReportsFilesService{s: s} - return rs +func (s *OffsetPosition) MarshalJSON() ([]byte, error) { + type NoMethod OffsetPosition + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -type ReportsFilesService struct { - s *Service -} +// PopupWindowProperties: Popup Window Properties. +type PopupWindowProperties struct { + // Dimension: Popup dimension for a creative. This is a read-only field. + // Applicable to the following creative types: all RICH_MEDIA and all + // VPAID + Dimension *Size `json:"dimension,omitempty"` -func NewSitesService(s *Service) *SitesService { - rs := &SitesService{s: s} - return rs -} + // Offset: Upper-left corner coordinates of the popup window. Applicable + // if positionType is COORDINATES. + Offset *OffsetPosition `json:"offset,omitempty"` -type SitesService struct { - s *Service -} + // PositionType: Popup window position either centered or at specific + // coordinate. + // + // Possible values: + // "CENTER" + // "COORDINATES" + PositionType string `json:"positionType,omitempty"` -func NewSizesService(s *Service) *SizesService { - rs := &SizesService{s: s} - return rs -} + // ShowAddressBar: Whether to display the browser address bar. + ShowAddressBar bool `json:"showAddressBar,omitempty"` -type SizesService struct { - s *Service -} + // ShowMenuBar: Whether to display the browser menu bar. + ShowMenuBar bool `json:"showMenuBar,omitempty"` -func NewSubaccountsService(s *Service) *SubaccountsService { - rs := &SubaccountsService{s: s} - return rs -} + // ShowScrollBar: Whether to display the browser scroll bar. + ShowScrollBar bool `json:"showScrollBar,omitempty"` -type SubaccountsService struct { - s *Service -} + // ShowStatusBar: Whether to display the browser status bar. + ShowStatusBar bool `json:"showStatusBar,omitempty"` -func NewTargetableRemarketingListsService(s *Service) *TargetableRemarketingListsService { - rs := &TargetableRemarketingListsService{s: s} - return rs -} + // ShowToolBar: Whether to display the browser tool bar. + ShowToolBar bool `json:"showToolBar,omitempty"` -type TargetableRemarketingListsService struct { - s *Service -} + // Title: Title of popup window. + Title string `json:"title,omitempty"` -func NewTargetingTemplatesService(s *Service) *TargetingTemplatesService { - rs := &TargetingTemplatesService{s: s} - return rs -} + // ForceSendFields is a list of field names (e.g. "Dimension") 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:"-"` -type TargetingTemplatesService struct { - s *Service -} - -func NewUserProfilesService(s *Service) *UserProfilesService { - rs := &UserProfilesService{s: s} - return rs -} - -type UserProfilesService struct { - s *Service -} - -func NewUserRolePermissionGroupsService(s *Service) *UserRolePermissionGroupsService { - rs := &UserRolePermissionGroupsService{s: s} - return rs -} - -type UserRolePermissionGroupsService struct { - s *Service -} - -func NewUserRolePermissionsService(s *Service) *UserRolePermissionsService { - rs := &UserRolePermissionsService{s: s} - return rs -} - -type UserRolePermissionsService struct { - s *Service -} - -func NewUserRolesService(s *Service) *UserRolesService { - rs := &UserRolesService{s: s} - return rs -} - -type UserRolesService struct { - s *Service -} - -func NewVideoFormatsService(s *Service) *VideoFormatsService { - rs := &VideoFormatsService{s: s} - return rs -} - -type VideoFormatsService struct { - s *Service -} - -// Account: Contains properties of a Campaign Manager account. -type Account struct { - // AccountPermissionIds: Account permissions assigned to this account. - AccountPermissionIds googleapi.Int64s `json:"accountPermissionIds,omitempty"` - - // AccountProfile: Profile for this account. This is a read-only field - // that can be left blank. - // - // Possible values: - // "ACCOUNT_PROFILE_BASIC" - // "ACCOUNT_PROFILE_STANDARD" - AccountProfile string `json:"accountProfile,omitempty"` - - // Active: Whether this account is active. - Active bool `json:"active,omitempty"` - - // ActiveAdsLimitTier: Maximum number of active ads allowed for this - // account. - // - // Possible values: - // "ACTIVE_ADS_TIER_40K" - // "ACTIVE_ADS_TIER_75K" - // "ACTIVE_ADS_TIER_100K" - // "ACTIVE_ADS_TIER_200K" - // "ACTIVE_ADS_TIER_300K" - // "ACTIVE_ADS_TIER_500K" - // "ACTIVE_ADS_TIER_750K" - // "ACTIVE_ADS_TIER_1M" - ActiveAdsLimitTier string `json:"activeAdsLimitTier,omitempty"` - - // ActiveViewOptOut: Whether to serve creatives with Active View tags. - // If disabled, viewability data will not be available for any - // impressions. - ActiveViewOptOut bool `json:"activeViewOptOut,omitempty"` - - // AvailablePermissionIds: User role permissions available to the user - // roles of this account. - AvailablePermissionIds googleapi.Int64s `json:"availablePermissionIds,omitempty"` - - // CountryId: ID of the country associated with this account. - CountryId int64 `json:"countryId,omitempty,string"` - - // CurrencyId: ID of currency associated with this account. This is a - // required field. Acceptable values are: - "1" for USD - "2" for GBP - - // "3" for ESP - "4" for SEK - "5" for CAD - "6" for JPY - "7" for DEM - - // "8" for AUD - "9" for FRF - "10" for ITL - "11" for DKK - "12" for - // NOK - "13" for FIM - "14" for ZAR - "15" for IEP - "16" for NLG - - // "17" for EUR - "18" for KRW - "19" for TWD - "20" for SGD - "21" for - // CNY - "22" for HKD - "23" for NZD - "24" for MYR - "25" for BRL - - // "26" for PTE - "28" for CLP - "29" for TRY - "30" for ARS - "31" for - // PEN - "32" for ILS - "33" for CHF - "34" for VEF - "35" for COP - - // "36" for GTQ - "37" for PLN - "39" for INR - "40" for THB - "41" for - // IDR - "42" for CZK - "43" for RON - "44" for HUF - "45" for RUB - - // "46" for AED - "47" for BGN - "48" for HRK - "49" for MXN - "50" for - // NGN - "51" for EGP - CurrencyId int64 `json:"currencyId,omitempty,string"` - - // DefaultCreativeSizeId: Default placement dimensions for this account. - DefaultCreativeSizeId int64 `json:"defaultCreativeSizeId,omitempty,string"` - - // Description: Description of this account. - Description string `json:"description,omitempty"` - - // Id: ID of this account. This is a read-only, auto-generated field. - Id int64 `json:"id,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#account". - Kind string `json:"kind,omitempty"` - - // Locale: Locale of this account. Acceptable values are: - "cs" (Czech) - // - "de" (German) - "en" (English) - "en-GB" (English United Kingdom) - - // "es" (Spanish) - "fr" (French) - "it" (Italian) - "ja" (Japanese) - - // "ko" (Korean) - "pl" (Polish) - "pt-BR" (Portuguese Brazil) - "ru" - // (Russian) - "sv" (Swedish) - "tr" (Turkish) - "zh-CN" (Chinese - // Simplified) - "zh-TW" (Chinese Traditional) - Locale string `json:"locale,omitempty"` - - // MaximumImageSize: Maximum image size allowed for this account, in - // kilobytes. Value must be greater than or equal to 1. - MaximumImageSize int64 `json:"maximumImageSize,omitempty,string"` - - // Name: Name of this account. This is a required field, and must be - // less than 128 characters long and be globally unique. - Name string `json:"name,omitempty"` - - // NielsenOcrEnabled: Whether campaigns created in this account will be - // enabled for Nielsen OCR reach ratings by default. - NielsenOcrEnabled bool `json:"nielsenOcrEnabled,omitempty"` - - // ReportsConfiguration: Reporting configuration of this account. - ReportsConfiguration *ReportsConfiguration `json:"reportsConfiguration,omitempty"` - - // ShareReportsWithTwitter: Share Path to Conversion reports with - // Twitter. - ShareReportsWithTwitter bool `json:"shareReportsWithTwitter,omitempty"` - - // TeaserSizeLimit: File size limit in kilobytes of Rich Media teaser - // creatives. Acceptable values are 1 to 10240, inclusive. - TeaserSizeLimit int64 `json:"teaserSizeLimit,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. - // "AccountPermissionIds") 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. "AccountPermissionIds") 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 *Account) MarshalJSON() ([]byte, error) { - type NoMethod Account - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// AccountActiveAdSummary: Gets a summary of active ads in an account. -type AccountActiveAdSummary struct { - // AccountId: ID of the account. - AccountId int64 `json:"accountId,omitempty,string"` - - // ActiveAds: Ads that have been activated for the account - ActiveAds int64 `json:"activeAds,omitempty,string"` - - // ActiveAdsLimitTier: Maximum number of active ads allowed for the - // account. - // - // Possible values: - // "ACTIVE_ADS_TIER_40K" - // "ACTIVE_ADS_TIER_75K" - // "ACTIVE_ADS_TIER_100K" - // "ACTIVE_ADS_TIER_200K" - // "ACTIVE_ADS_TIER_300K" - // "ACTIVE_ADS_TIER_500K" - // "ACTIVE_ADS_TIER_750K" - // "ACTIVE_ADS_TIER_1M" - ActiveAdsLimitTier string `json:"activeAdsLimitTier,omitempty"` - - // AvailableAds: Ads that can be activated for the account. - AvailableAds int64 `json:"availableAds,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#accountActiveAdSummary". - 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. "AccountId") 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. "AccountId") 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 *AccountActiveAdSummary) MarshalJSON() ([]byte, error) { - type NoMethod AccountActiveAdSummary - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// AccountPermission: AccountPermissions contains information about a -// particular account permission. Some features of Campaign Manager -// require an account permission to be present in the account. -type AccountPermission struct { - // AccountProfiles: Account profiles associated with this account - // permission. Possible values are: - "ACCOUNT_PROFILE_BASIC" - - // "ACCOUNT_PROFILE_STANDARD" - // - // Possible values: - // "ACCOUNT_PROFILE_BASIC" - // "ACCOUNT_PROFILE_STANDARD" - AccountProfiles []string `json:"accountProfiles,omitempty"` - - // Id: ID of this account permission. - Id int64 `json:"id,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#accountPermission". - Kind string `json:"kind,omitempty"` - - // Level: Administrative level required to enable this account - // permission. - // - // Possible values: - // "USER" - // "ADMINISTRATOR" - Level string `json:"level,omitempty"` - - // Name: Name of this account permission. - Name string `json:"name,omitempty"` - - // PermissionGroupId: Permission group of this account permission. - PermissionGroupId int64 `json:"permissionGroupId,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. "AccountProfiles") 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. "AccountProfiles") 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 *AccountPermission) MarshalJSON() ([]byte, error) { - type NoMethod AccountPermission - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// AccountPermissionGroup: AccountPermissionGroups contains a mapping of -// permission group IDs to names. A permission group is a grouping of -// account permissions. -type AccountPermissionGroup struct { - // Id: ID of this account permission group. - Id int64 `json:"id,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#accountPermissionGroup". - Kind string `json:"kind,omitempty"` - - // Name: Name of this account permission group. - 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. "Id") 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. "Id") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // 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 *AccountPermissionGroup) MarshalJSON() ([]byte, error) { - type NoMethod AccountPermissionGroup - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// AccountPermissionGroupsListResponse: Account Permission Group List -// Response -type AccountPermissionGroupsListResponse struct { - // AccountPermissionGroups: Account permission group collection. - AccountPermissionGroups []*AccountPermissionGroup `json:"accountPermissionGroups,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#accountPermissionGroupsListResponse". - 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. - // "AccountPermissionGroups") 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. "AccountPermissionGroups") - // 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 *AccountPermissionGroupsListResponse) MarshalJSON() ([]byte, error) { - type NoMethod AccountPermissionGroupsListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// AccountPermissionsListResponse: Account Permission List Response -type AccountPermissionsListResponse struct { - // AccountPermissions: Account permission collection. - AccountPermissions []*AccountPermission `json:"accountPermissions,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#accountPermissionsListResponse". - 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. "AccountPermissions") - // 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. "AccountPermissions") 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 *AccountPermissionsListResponse) MarshalJSON() ([]byte, error) { - type NoMethod AccountPermissionsListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// AccountUserProfile: AccountUserProfiles contains properties of a -// Campaign Manager user profile. This resource is specifically for -// managing user profiles, whereas UserProfiles is for accessing the -// API. -type AccountUserProfile struct { - // AccountId: Account ID of the user profile. This is a read-only field - // that can be left blank. - AccountId int64 `json:"accountId,omitempty,string"` - - // Active: Whether this user profile is active. This defaults to false, - // and must be set true on insert for the user profile to be usable. - Active bool `json:"active,omitempty"` - - // AdvertiserFilter: Filter that describes which advertisers are visible - // to the user profile. - AdvertiserFilter *ObjectFilter `json:"advertiserFilter,omitempty"` - - // CampaignFilter: Filter that describes which campaigns are visible to - // the user profile. - CampaignFilter *ObjectFilter `json:"campaignFilter,omitempty"` - - // Comments: Comments for this user profile. - Comments string `json:"comments,omitempty"` - - // Email: Email of the user profile. The email addresss must be linked - // to a Google Account. This field is required on insertion and is - // read-only after insertion. - Email string `json:"email,omitempty"` - - // Id: ID of the user profile. This is a read-only, auto-generated - // field. - Id int64 `json:"id,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#accountUserProfile". - Kind string `json:"kind,omitempty"` - - // Locale: Locale of the user profile. This is a required field. - // Acceptable values are: - "cs" (Czech) - "de" (German) - "en" - // (English) - "en-GB" (English United Kingdom) - "es" (Spanish) - "fr" - // (French) - "it" (Italian) - "ja" (Japanese) - "ko" (Korean) - "pl" - // (Polish) - "pt-BR" (Portuguese Brazil) - "ru" (Russian) - "sv" - // (Swedish) - "tr" (Turkish) - "zh-CN" (Chinese Simplified) - "zh-TW" - // (Chinese Traditional) - Locale string `json:"locale,omitempty"` - - // Name: Name of the user profile. This is a required field. Must be - // less than 64 characters long, must be globally unique, and cannot - // contain whitespace or any of the following characters: "&;<>"#%,". - Name string `json:"name,omitempty"` - - // SiteFilter: Filter that describes which sites are visible to the user - // profile. - SiteFilter *ObjectFilter `json:"siteFilter,omitempty"` - - // SubaccountId: Subaccount ID of the user profile. This is a read-only - // field that can be left blank. - SubaccountId int64 `json:"subaccountId,omitempty,string"` - - // TraffickerType: Trafficker type of this user profile. This is a - // read-only field. - // - // Possible values: - // "INTERNAL_NON_TRAFFICKER" - // "INTERNAL_TRAFFICKER" - // "EXTERNAL_TRAFFICKER" - TraffickerType string `json:"traffickerType,omitempty"` - - // UserAccessType: User type of the user profile. This is a read-only - // field that can be left blank. - // - // Possible values: - // "NORMAL_USER" - // "SUPER_USER" - // "INTERNAL_ADMINISTRATOR" - // "READ_ONLY_SUPER_USER" - UserAccessType string `json:"userAccessType,omitempty"` - - // UserRoleFilter: Filter that describes which user roles are visible to - // the user profile. - UserRoleFilter *ObjectFilter `json:"userRoleFilter,omitempty"` - - // UserRoleId: User role ID of the user profile. This is a required - // field. - UserRoleId int64 `json:"userRoleId,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. "AccountId") 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. "AccountId") 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 *AccountUserProfile) MarshalJSON() ([]byte, error) { - type NoMethod AccountUserProfile - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// AccountUserProfilesListResponse: Account User Profile List Response -type AccountUserProfilesListResponse struct { - // AccountUserProfiles: Account user profile collection. - AccountUserProfiles []*AccountUserProfile `json:"accountUserProfiles,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#accountUserProfilesListResponse". - Kind string `json:"kind,omitempty"` - - // NextPageToken: Pagination token to be used for the next list - // operation. - 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. "AccountUserProfiles") - // 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. "AccountUserProfiles") 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 *AccountUserProfilesListResponse) MarshalJSON() ([]byte, error) { - type NoMethod AccountUserProfilesListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// AccountsListResponse: Account List Response -type AccountsListResponse struct { - // Accounts: Account collection. - Accounts []*Account `json:"accounts,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#accountsListResponse". - Kind string `json:"kind,omitempty"` - - // NextPageToken: Pagination token to be used for the next list - // operation. - 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. "Accounts") 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. "Accounts") 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 *AccountsListResponse) MarshalJSON() ([]byte, error) { - type NoMethod AccountsListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// Activities: Represents an activity group. -type Activities struct { - // Filters: List of activity filters. The dimension values need to be - // all either of type "dfa:activity" or "dfa:activityGroup". - Filters []*DimensionValue `json:"filters,omitempty"` - - // Kind: The kind of resource this is, in this case - // dfareporting#activities. - Kind string `json:"kind,omitempty"` - - // MetricNames: List of names of floodlight activity metrics. - MetricNames []string `json:"metricNames,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Filters") 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. "Filters") 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 *Activities) MarshalJSON() ([]byte, error) { - type NoMethod Activities - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// Ad: Contains properties of a Campaign Manager ad. -type Ad struct { - // AccountId: Account ID of this ad. This is a read-only field that can - // be left blank. - AccountId int64 `json:"accountId,omitempty,string"` - - // Active: Whether this ad is active. When true, archived must be false. - Active bool `json:"active,omitempty"` - - // AdvertiserId: Advertiser ID of this ad. This is a required field on - // insertion. - AdvertiserId int64 `json:"advertiserId,omitempty,string"` - - // AdvertiserIdDimensionValue: Dimension value for the ID of the - // advertiser. This is a read-only, auto-generated field. - AdvertiserIdDimensionValue *DimensionValue `json:"advertiserIdDimensionValue,omitempty"` - - // Archived: Whether this ad is archived. When true, active must be - // false. - Archived bool `json:"archived,omitempty"` - - // AudienceSegmentId: Audience segment ID that is being targeted for - // this ad. Applicable when type is AD_SERVING_STANDARD_AD. - AudienceSegmentId int64 `json:"audienceSegmentId,omitempty,string"` - - // CampaignId: Campaign ID of this ad. This is a required field on - // insertion. - CampaignId int64 `json:"campaignId,omitempty,string"` - - // CampaignIdDimensionValue: Dimension value for the ID of the campaign. - // This is a read-only, auto-generated field. - CampaignIdDimensionValue *DimensionValue `json:"campaignIdDimensionValue,omitempty"` - - // ClickThroughUrl: Click-through URL for this ad. This is a required - // field on insertion. Applicable when type is AD_SERVING_CLICK_TRACKER. - ClickThroughUrl *ClickThroughUrl `json:"clickThroughUrl,omitempty"` - - // ClickThroughUrlSuffixProperties: Click-through URL suffix properties - // for this ad. Applies to the URL in the ad or (if overriding ad - // properties) the URL in the creative. - ClickThroughUrlSuffixProperties *ClickThroughUrlSuffixProperties `json:"clickThroughUrlSuffixProperties,omitempty"` - - // Comments: Comments for this ad. - Comments string `json:"comments,omitempty"` - - // Compatibility: Compatibility of this ad. Applicable when type is - // AD_SERVING_DEFAULT_AD. DISPLAY and DISPLAY_INTERSTITIAL refer to - // either rendering on desktop or on mobile devices or in mobile apps - // for regular or interstitial ads, respectively. APP and - // APP_INTERSTITIAL are only used for existing default ads. New mobile - // placements must be assigned DISPLAY or DISPLAY_INTERSTITIAL and - // default ads created for those placements will be limited to those - // compatibility types. IN_STREAM_VIDEO refers to rendering in-stream - // video ads developed with the VAST standard. - // - // Possible values: - // "DISPLAY" - // "DISPLAY_INTERSTITIAL" - // "APP" - // "APP_INTERSTITIAL" - // "IN_STREAM_VIDEO" - // "IN_STREAM_AUDIO" - Compatibility string `json:"compatibility,omitempty"` - - // CreateInfo: Information about the creation of this ad. This is a - // read-only field. - CreateInfo *LastModifiedInfo `json:"createInfo,omitempty"` - - // CreativeGroupAssignments: Creative group assignments for this ad. - // Applicable when type is AD_SERVING_CLICK_TRACKER. Only one assignment - // per creative group number is allowed for a maximum of two - // assignments. - CreativeGroupAssignments []*CreativeGroupAssignment `json:"creativeGroupAssignments,omitempty"` - - // CreativeRotation: Creative rotation for this ad. Applicable when type - // is AD_SERVING_DEFAULT_AD, AD_SERVING_STANDARD_AD, or - // AD_SERVING_TRACKING. When type is AD_SERVING_DEFAULT_AD, this field - // should have exactly one creativeAssignment . - CreativeRotation *CreativeRotation `json:"creativeRotation,omitempty"` - - // DayPartTargeting: Time and day targeting information for this ad. - // This field must be left blank if the ad is using a targeting - // template. Applicable when type is AD_SERVING_STANDARD_AD. - DayPartTargeting *DayPartTargeting `json:"dayPartTargeting,omitempty"` - - // DefaultClickThroughEventTagProperties: Default click-through event - // tag properties for this ad. - DefaultClickThroughEventTagProperties *DefaultClickThroughEventTagProperties `json:"defaultClickThroughEventTagProperties,omitempty"` - - // DeliverySchedule: Delivery schedule information for this ad. - // Applicable when type is AD_SERVING_STANDARD_AD or - // AD_SERVING_TRACKING. This field along with subfields priority and - // impressionRatio are required on insertion when type is - // AD_SERVING_STANDARD_AD. - DeliverySchedule *DeliverySchedule `json:"deliverySchedule,omitempty"` - - // DynamicClickTracker: Whether this ad is a dynamic click tracker. - // Applicable when type is AD_SERVING_CLICK_TRACKER. This is a required - // field on insert, and is read-only after insert. - DynamicClickTracker bool `json:"dynamicClickTracker,omitempty"` - - EndTime string `json:"endTime,omitempty"` - - // EventTagOverrides: Event tag overrides for this ad. - EventTagOverrides []*EventTagOverride `json:"eventTagOverrides,omitempty"` - - // GeoTargeting: Geographical targeting information for this ad. This - // field must be left blank if the ad is using a targeting template. - // Applicable when type is AD_SERVING_STANDARD_AD. - GeoTargeting *GeoTargeting `json:"geoTargeting,omitempty"` - - // Id: ID of this ad. This is a read-only, auto-generated field. - Id int64 `json:"id,omitempty,string"` - - // IdDimensionValue: Dimension value for the ID of this ad. This is a - // read-only, auto-generated field. - IdDimensionValue *DimensionValue `json:"idDimensionValue,omitempty"` - - // KeyValueTargetingExpression: Key-value targeting information for this - // ad. This field must be left blank if the ad is using a targeting - // template. Applicable when type is AD_SERVING_STANDARD_AD. - KeyValueTargetingExpression *KeyValueTargetingExpression `json:"keyValueTargetingExpression,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#ad". - Kind string `json:"kind,omitempty"` - - // LanguageTargeting: Language targeting information for this ad. This - // field must be left blank if the ad is using a targeting template. - // Applicable when type is AD_SERVING_STANDARD_AD. - LanguageTargeting *LanguageTargeting `json:"languageTargeting,omitempty"` - - // LastModifiedInfo: Information about the most recent modification of - // this ad. This is a read-only field. - LastModifiedInfo *LastModifiedInfo `json:"lastModifiedInfo,omitempty"` - - // Name: Name of this ad. This is a required field and must be less than - // 256 characters long. - Name string `json:"name,omitempty"` - - // PlacementAssignments: Placement assignments for this ad. - PlacementAssignments []*PlacementAssignment `json:"placementAssignments,omitempty"` - - // RemarketingListExpression: Remarketing list targeting expression for - // this ad. This field must be left blank if the ad is using a targeting - // template. Applicable when type is AD_SERVING_STANDARD_AD. - RemarketingListExpression *ListTargetingExpression `json:"remarketingListExpression,omitempty"` - - // Size: Size of this ad. Applicable when type is AD_SERVING_DEFAULT_AD. - Size *Size `json:"size,omitempty"` - - // SslCompliant: Whether this ad is ssl compliant. This is a read-only - // field that is auto-generated when the ad is inserted or updated. - SslCompliant bool `json:"sslCompliant,omitempty"` - - // SslRequired: Whether this ad requires ssl. This is a read-only field - // that is auto-generated when the ad is inserted or updated. - SslRequired bool `json:"sslRequired,omitempty"` - - StartTime string `json:"startTime,omitempty"` - - // SubaccountId: Subaccount ID of this ad. This is a read-only field - // that can be left blank. - SubaccountId int64 `json:"subaccountId,omitempty,string"` - - // TargetingTemplateId: Targeting template ID, used to apply - // preconfigured targeting information to this ad. This cannot be set - // while any of dayPartTargeting, geoTargeting, - // keyValueTargetingExpression, languageTargeting, - // remarketingListExpression, or technologyTargeting are set. Applicable - // when type is AD_SERVING_STANDARD_AD. - TargetingTemplateId int64 `json:"targetingTemplateId,omitempty,string"` - - // TechnologyTargeting: Technology platform targeting information for - // this ad. This field must be left blank if the ad is using a targeting - // template. Applicable when type is AD_SERVING_STANDARD_AD. - TechnologyTargeting *TechnologyTargeting `json:"technologyTargeting,omitempty"` - - // Type: Type of ad. This is a required field on insertion. Note that - // default ads ( AD_SERVING_DEFAULT_AD) cannot be created directly (see - // Creative resource). - // - // Possible values: - // "AD_SERVING_STANDARD_AD" - // "AD_SERVING_DEFAULT_AD" - // "AD_SERVING_CLICK_TRACKER" - // "AD_SERVING_TRACKING" - // "AD_SERVING_BRAND_SAFE_AD" - Type string `json:"type,omitempty"` - - // ServerResponse contains the HTTP response code and headers from the - // server. - googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "AccountId") 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. "AccountId") 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 *Ad) MarshalJSON() ([]byte, error) { - type NoMethod Ad - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// AdBlockingConfiguration: Campaign ad blocking settings. -type AdBlockingConfiguration struct { - // Enabled: Whether this campaign has enabled ad blocking. When true, ad - // blocking is enabled for placements in the campaign, but this may be - // overridden by site and placement settings. When false, ad blocking is - // disabled for all placements under the campaign, regardless of site - // and placement settings. - 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 *AdBlockingConfiguration) MarshalJSON() ([]byte, error) { - type NoMethod AdBlockingConfiguration - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// AdSlot: Ad Slot -type AdSlot struct { - // Comment: Comment for this ad slot. - Comment string `json:"comment,omitempty"` - - // Compatibility: Ad slot compatibility. DISPLAY and - // DISPLAY_INTERSTITIAL refer to rendering either on desktop, mobile - // devices or in mobile apps for regular or interstitial ads - // respectively. APP and APP_INTERSTITIAL are for rendering in mobile - // apps. IN_STREAM_VIDEO refers to rendering in in-stream video ads - // developed with the VAST standard. - // - // Possible values: - // "DISPLAY" - // "DISPLAY_INTERSTITIAL" - // "APP" - // "APP_INTERSTITIAL" - // "IN_STREAM_VIDEO" - // "IN_STREAM_AUDIO" - Compatibility string `json:"compatibility,omitempty"` - - // Height: Height of this ad slot. - Height int64 `json:"height,omitempty,string"` - - // LinkedPlacementId: ID of the placement from an external platform that - // is linked to this ad slot. - LinkedPlacementId int64 `json:"linkedPlacementId,omitempty,string"` - - // Name: Name of this ad slot. - Name string `json:"name,omitempty"` - - // PaymentSourceType: Payment source type of this ad slot. - // - // Possible values: - // "PLANNING_PAYMENT_SOURCE_TYPE_AGENCY_PAID" - // "PLANNING_PAYMENT_SOURCE_TYPE_PUBLISHER_PAID" - PaymentSourceType string `json:"paymentSourceType,omitempty"` - - // Primary: Primary ad slot of a roadblock inventory item. - Primary bool `json:"primary,omitempty"` - - // Width: Width of this ad slot. - Width int64 `json:"width,omitempty,string"` - - // ForceSendFields is a list of field names (e.g. "Comment") 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. "Comment") 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 *AdSlot) MarshalJSON() ([]byte, error) { - type NoMethod AdSlot - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// AdsListResponse: Ad List Response -type AdsListResponse struct { - // Ads: Ad collection. - Ads []*Ad `json:"ads,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#adsListResponse". - Kind string `json:"kind,omitempty"` - - // NextPageToken: Pagination token to be used for the next list - // operation. - 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. "Ads") 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. "Ads") 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 *AdsListResponse) MarshalJSON() ([]byte, error) { - type NoMethod AdsListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// Advertiser: Contains properties of a Campaign Manager advertiser. -type Advertiser struct { - // AccountId: Account ID of this advertiser.This is a read-only field - // that can be left blank. - AccountId int64 `json:"accountId,omitempty,string"` - - // AdvertiserGroupId: ID of the advertiser group this advertiser belongs - // to. You can group advertisers for reporting purposes, allowing you to - // see aggregated information for all advertisers in each group. - AdvertiserGroupId int64 `json:"advertiserGroupId,omitempty,string"` - - // ClickThroughUrlSuffix: Suffix added to click-through URL of ad - // creative associations under this advertiser. Must be less than 129 - // characters long. - ClickThroughUrlSuffix string `json:"clickThroughUrlSuffix,omitempty"` - - // DefaultClickThroughEventTagId: ID of the click-through event tag to - // apply by default to the landing pages of this advertiser's campaigns. - DefaultClickThroughEventTagId int64 `json:"defaultClickThroughEventTagId,omitempty,string"` - - // DefaultEmail: Default email address used in sender field for tag - // emails. - DefaultEmail string `json:"defaultEmail,omitempty"` - - // FloodlightConfigurationId: Floodlight configuration ID of this - // advertiser. The floodlight configuration ID will be created - // automatically, so on insert this field should be left blank. This - // field can be set to another advertiser's floodlight configuration ID - // in order to share that advertiser's floodlight configuration with - // this advertiser, so long as: - This advertiser's original floodlight - // configuration is not already associated with floodlight activities or - // floodlight activity groups. - This advertiser's original floodlight - // configuration is not already shared with another advertiser. - FloodlightConfigurationId int64 `json:"floodlightConfigurationId,omitempty,string"` - - // FloodlightConfigurationIdDimensionValue: Dimension value for the ID - // of the floodlight configuration. This is a read-only, auto-generated - // field. - FloodlightConfigurationIdDimensionValue *DimensionValue `json:"floodlightConfigurationIdDimensionValue,omitempty"` - - // Id: ID of this advertiser. This is a read-only, auto-generated field. - Id int64 `json:"id,omitempty,string"` - - // IdDimensionValue: Dimension value for the ID of this advertiser. This - // is a read-only, auto-generated field. - IdDimensionValue *DimensionValue `json:"idDimensionValue,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#advertiser". - Kind string `json:"kind,omitempty"` - - // MeasurementPartnerLink: Measurement partner advertiser link for tag - // wrapping. - MeasurementPartnerLink *MeasurementPartnerAdvertiserLink `json:"measurementPartnerLink,omitempty"` - - // Name: Name of this advertiser. This is a required field and must be - // less than 256 characters long and unique among advertisers of the - // same account. - Name string `json:"name,omitempty"` - - // OriginalFloodlightConfigurationId: Original floodlight configuration - // before any sharing occurred. Set the floodlightConfigurationId of - // this advertiser to originalFloodlightConfigurationId to unshare the - // advertiser's current floodlight configuration. You cannot unshare an - // advertiser's floodlight configuration if the shared configuration has - // activities associated with any campaign or placement. - OriginalFloodlightConfigurationId int64 `json:"originalFloodlightConfigurationId,omitempty,string"` - - // Status: Status of this advertiser. - // - // Possible values: - // "APPROVED" - // "ON_HOLD" - Status string `json:"status,omitempty"` - - // SubaccountId: Subaccount ID of this advertiser.This is a read-only - // field that can be left blank. - SubaccountId int64 `json:"subaccountId,omitempty,string"` - - // Suspended: Suspension status of this advertiser. - Suspended bool `json:"suspended,omitempty"` - - // ServerResponse contains the HTTP response code and headers from the - // server. - googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "AccountId") 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. "AccountId") 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 *Advertiser) MarshalJSON() ([]byte, error) { - type NoMethod Advertiser - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// AdvertiserGroup: Groups advertisers together so that reports can be -// generated for the entire group at once. -type AdvertiserGroup struct { - // AccountId: Account ID of this advertiser group. This is a read-only - // field that can be left blank. - AccountId int64 `json:"accountId,omitempty,string"` - - // Id: ID of this advertiser group. This is a read-only, auto-generated - // field. - Id int64 `json:"id,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#advertiserGroup". - Kind string `json:"kind,omitempty"` - - // Name: Name of this advertiser group. This is a required field and - // must be less than 256 characters long and unique among advertiser - // groups of the same account. - 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. "AccountId") 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. "AccountId") 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 *AdvertiserGroup) MarshalJSON() ([]byte, error) { - type NoMethod AdvertiserGroup - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// AdvertiserGroupsListResponse: Advertiser Group List Response -type AdvertiserGroupsListResponse struct { - // AdvertiserGroups: Advertiser group collection. - AdvertiserGroups []*AdvertiserGroup `json:"advertiserGroups,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#advertiserGroupsListResponse". - Kind string `json:"kind,omitempty"` - - // NextPageToken: Pagination token to be used for the next list - // operation. - 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. "AdvertiserGroups") 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. "AdvertiserGroups") 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 *AdvertiserGroupsListResponse) MarshalJSON() ([]byte, error) { - type NoMethod AdvertiserGroupsListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// AdvertiserLandingPagesListResponse: Landing Page List Response -type AdvertiserLandingPagesListResponse struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#advertiserLandingPagesListResponse". - Kind string `json:"kind,omitempty"` - - // LandingPages: Landing page collection - LandingPages []*LandingPage `json:"landingPages,omitempty"` - - // NextPageToken: Pagination token to be used for the next list - // operation. - 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. "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 *AdvertiserLandingPagesListResponse) MarshalJSON() ([]byte, error) { - type NoMethod AdvertiserLandingPagesListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// AdvertisersListResponse: Advertiser List Response -type AdvertisersListResponse struct { - // Advertisers: Advertiser collection. - Advertisers []*Advertiser `json:"advertisers,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#advertisersListResponse". - Kind string `json:"kind,omitempty"` - - // NextPageToken: Pagination token to be used for the next list - // operation. - 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. "Advertisers") 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. "Advertisers") 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 *AdvertisersListResponse) MarshalJSON() ([]byte, error) { - type NoMethod AdvertisersListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// AudienceSegment: Audience Segment. -type AudienceSegment struct { - // Allocation: Weight allocated to this segment. The weight assigned - // will be understood in proportion to the weights assigned to other - // segments in the same segment group. Acceptable values are 1 to 1000, - // inclusive. - Allocation int64 `json:"allocation,omitempty"` - - // Id: ID of this audience segment. This is a read-only, auto-generated - // field. - Id int64 `json:"id,omitempty,string"` - - // Name: Name of this audience segment. This is a required field and - // must be less than 65 characters long. - Name string `json:"name,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Allocation") 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. "Allocation") 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 *AudienceSegment) MarshalJSON() ([]byte, error) { - type NoMethod AudienceSegment - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// AudienceSegmentGroup: Audience Segment Group. -type AudienceSegmentGroup struct { - // AudienceSegments: Audience segments assigned to this group. The - // number of segments must be between 2 and 100. - AudienceSegments []*AudienceSegment `json:"audienceSegments,omitempty"` - - // Id: ID of this audience segment group. This is a read-only, - // auto-generated field. - Id int64 `json:"id,omitempty,string"` - - // Name: Name of this audience segment group. This is a required field - // and must be less than 65 characters long. - Name string `json:"name,omitempty"` - - // ForceSendFields is a list of field names (e.g. "AudienceSegments") 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. "AudienceSegments") 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 *AudienceSegmentGroup) MarshalJSON() ([]byte, error) { - type NoMethod AudienceSegmentGroup - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// Browser: Contains information about a browser that can be targeted by -// ads. -type Browser struct { - // BrowserVersionId: ID referring to this grouping of browser and - // version numbers. This is the ID used for targeting. - BrowserVersionId int64 `json:"browserVersionId,omitempty,string"` - - // DartId: DART ID of this browser. This is the ID used when generating - // reports. - DartId int64 `json:"dartId,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#browser". - Kind string `json:"kind,omitempty"` - - // MajorVersion: Major version number (leftmost number) of this browser. - // For example, for Chrome 5.0.376.86 beta, this field should be set to - // 5. An asterisk (*) may be used to target any version number, and a - // question mark (?) may be used to target cases where the version - // number cannot be identified. For example, Chrome *.* targets any - // version of Chrome: 1.2, 2.5, 3.5, and so on. Chrome 3.* targets - // Chrome 3.1, 3.5, but not 4.0. Firefox ?.? targets cases where the ad - // server knows the browser is Firefox but can't tell which version it - // is. - MajorVersion string `json:"majorVersion,omitempty"` - - // MinorVersion: Minor version number (number after first dot on left) - // of this browser. For example, for Chrome 5.0.375.86 beta, this field - // should be set to 0. An asterisk (*) may be used to target any version - // number, and a question mark (?) may be used to target cases where the - // version number cannot be identified. For example, Chrome *.* targets - // any version of Chrome: 1.2, 2.5, 3.5, and so on. Chrome 3.* targets - // Chrome 3.1, 3.5, but not 4.0. Firefox ?.? targets cases where the ad - // server knows the browser is Firefox but can't tell which version it - // is. - MinorVersion string `json:"minorVersion,omitempty"` - - // Name: Name of this browser. - Name string `json:"name,omitempty"` - - // ForceSendFields is a list of field names (e.g. "BrowserVersionId") 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. "BrowserVersionId") 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 *Browser) MarshalJSON() ([]byte, error) { - type NoMethod Browser - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// BrowsersListResponse: Browser List Response -type BrowsersListResponse struct { - // Browsers: Browser collection. - Browsers []*Browser `json:"browsers,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#browsersListResponse". - 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. "Browsers") 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. "Browsers") 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 *BrowsersListResponse) MarshalJSON() ([]byte, error) { - type NoMethod BrowsersListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// Campaign: Contains properties of a Campaign Manager campaign. -type Campaign struct { - // AccountId: Account ID of this campaign. This is a read-only field - // that can be left blank. - AccountId int64 `json:"accountId,omitempty,string"` - - // AdBlockingConfiguration: Ad blocking settings for this campaign. - AdBlockingConfiguration *AdBlockingConfiguration `json:"adBlockingConfiguration,omitempty"` - - // AdditionalCreativeOptimizationConfigurations: Additional creative - // optimization configurations for the campaign. - AdditionalCreativeOptimizationConfigurations []*CreativeOptimizationConfiguration `json:"additionalCreativeOptimizationConfigurations,omitempty"` - - // AdvertiserGroupId: Advertiser group ID of the associated advertiser. - AdvertiserGroupId int64 `json:"advertiserGroupId,omitempty,string"` - - // AdvertiserId: Advertiser ID of this campaign. This is a required - // field. - AdvertiserId int64 `json:"advertiserId,omitempty,string"` - - // AdvertiserIdDimensionValue: Dimension value for the advertiser ID of - // this campaign. This is a read-only, auto-generated field. - AdvertiserIdDimensionValue *DimensionValue `json:"advertiserIdDimensionValue,omitempty"` - - // Archived: Whether this campaign has been archived. - Archived bool `json:"archived,omitempty"` - - // AudienceSegmentGroups: Audience segment groups assigned to this - // campaign. Cannot have more than 300 segment groups. - AudienceSegmentGroups []*AudienceSegmentGroup `json:"audienceSegmentGroups,omitempty"` - - // BillingInvoiceCode: Billing invoice code included in the Campaign - // Manager client billing invoices associated with the campaign. - BillingInvoiceCode string `json:"billingInvoiceCode,omitempty"` - - // ClickThroughUrlSuffixProperties: Click-through URL suffix override - // properties for this campaign. - ClickThroughUrlSuffixProperties *ClickThroughUrlSuffixProperties `json:"clickThroughUrlSuffixProperties,omitempty"` - - // Comment: Arbitrary comments about this campaign. Must be less than - // 256 characters long. - Comment string `json:"comment,omitempty"` - - // CreateInfo: Information about the creation of this campaign. This is - // a read-only field. - CreateInfo *LastModifiedInfo `json:"createInfo,omitempty"` - - // CreativeGroupIds: List of creative group IDs that are assigned to the - // campaign. - CreativeGroupIds googleapi.Int64s `json:"creativeGroupIds,omitempty"` - - // CreativeOptimizationConfiguration: Creative optimization - // configuration for the campaign. - CreativeOptimizationConfiguration *CreativeOptimizationConfiguration `json:"creativeOptimizationConfiguration,omitempty"` - - // DefaultClickThroughEventTagProperties: Click-through event tag ID - // override properties for this campaign. - DefaultClickThroughEventTagProperties *DefaultClickThroughEventTagProperties `json:"defaultClickThroughEventTagProperties,omitempty"` - - // DefaultLandingPageId: The default landing page ID for this campaign. - DefaultLandingPageId int64 `json:"defaultLandingPageId,omitempty,string"` - - EndDate string `json:"endDate,omitempty"` - - // EventTagOverrides: Overrides that can be used to activate or - // deactivate advertiser event tags. - EventTagOverrides []*EventTagOverride `json:"eventTagOverrides,omitempty"` - - // ExternalId: External ID for this campaign. - ExternalId string `json:"externalId,omitempty"` - - // Id: ID of this campaign. This is a read-only auto-generated field. - Id int64 `json:"id,omitempty,string"` - - // IdDimensionValue: Dimension value for the ID of this campaign. This - // is a read-only, auto-generated field. - IdDimensionValue *DimensionValue `json:"idDimensionValue,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#campaign". - Kind string `json:"kind,omitempty"` - - // LastModifiedInfo: Information about the most recent modification of - // this campaign. This is a read-only field. - LastModifiedInfo *LastModifiedInfo `json:"lastModifiedInfo,omitempty"` - - // MeasurementPartnerLink: Measurement partner campaign link for tag - // wrapping. - MeasurementPartnerLink *MeasurementPartnerCampaignLink `json:"measurementPartnerLink,omitempty"` - - // Name: Name of this campaign. This is a required field and must be - // less than 512 characters long and unique among campaigns of the same - // advertiser. - Name string `json:"name,omitempty"` - - // NielsenOcrEnabled: Whether Nielsen reports are enabled for this - // campaign. - NielsenOcrEnabled bool `json:"nielsenOcrEnabled,omitempty"` - - StartDate string `json:"startDate,omitempty"` - - // SubaccountId: Subaccount ID of this campaign. This is a read-only - // field that can be left blank. - SubaccountId int64 `json:"subaccountId,omitempty,string"` - - // TraffickerEmails: Campaign trafficker contact emails. - TraffickerEmails []string `json:"traffickerEmails,omitempty"` - - // ServerResponse contains the HTTP response code and headers from the - // server. - googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "AccountId") 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. "AccountId") 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 *Campaign) MarshalJSON() ([]byte, error) { - type NoMethod Campaign - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// CampaignCreativeAssociation: Identifies a creative which has been -// associated with a given campaign. -type CampaignCreativeAssociation struct { - // CreativeId: ID of the creative associated with the campaign. This is - // a required field. - CreativeId int64 `json:"creativeId,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#campaignCreativeAssociation". - 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. "CreativeId") 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. "CreativeId") 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 *CampaignCreativeAssociation) MarshalJSON() ([]byte, error) { - type NoMethod CampaignCreativeAssociation - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// CampaignCreativeAssociationsListResponse: Campaign Creative -// Association List Response -type CampaignCreativeAssociationsListResponse struct { - // CampaignCreativeAssociations: Campaign creative association - // collection - CampaignCreativeAssociations []*CampaignCreativeAssociation `json:"campaignCreativeAssociations,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#campaignCreativeAssociationsListResponse". - Kind string `json:"kind,omitempty"` - - // NextPageToken: Pagination token to be used for the next list - // operation. - 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. - // "CampaignCreativeAssociations") 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. - // "CampaignCreativeAssociations") 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 *CampaignCreativeAssociationsListResponse) MarshalJSON() ([]byte, error) { - type NoMethod CampaignCreativeAssociationsListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// CampaignsListResponse: Campaign List Response -type CampaignsListResponse struct { - // Campaigns: Campaign collection. - Campaigns []*Campaign `json:"campaigns,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#campaignsListResponse". - Kind string `json:"kind,omitempty"` - - // NextPageToken: Pagination token to be used for the next list - // operation. - 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. "Campaigns") 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. "Campaigns") 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 *CampaignsListResponse) MarshalJSON() ([]byte, error) { - type NoMethod CampaignsListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// ChangeLog: Describes a change that a user has made to a resource. -type ChangeLog struct { - // AccountId: Account ID of the modified object. - AccountId int64 `json:"accountId,omitempty,string"` - - // Action: Action which caused the change. - Action string `json:"action,omitempty"` - - ChangeTime string `json:"changeTime,omitempty"` - - // FieldName: Field name of the object which changed. - FieldName string `json:"fieldName,omitempty"` - - // Id: ID of this change log. - Id int64 `json:"id,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#changeLog". - Kind string `json:"kind,omitempty"` - - // NewValue: New value of the object field. - NewValue string `json:"newValue,omitempty"` - - // ObjectId: ID of the object of this change log. The object could be a - // campaign, placement, ad, or other type. - ObjectId int64 `json:"objectId,omitempty,string"` - - // ObjectType: Object type of the change log. - ObjectType string `json:"objectType,omitempty"` - - // OldValue: Old value of the object field. - OldValue string `json:"oldValue,omitempty"` - - // SubaccountId: Subaccount ID of the modified object. - SubaccountId int64 `json:"subaccountId,omitempty,string"` - - // TransactionId: Transaction ID of this change log. When a single API - // call results in many changes, each change will have a separate ID in - // the change log but will share the same transactionId. - TransactionId int64 `json:"transactionId,omitempty,string"` - - // UserProfileId: ID of the user who modified the object. - UserProfileId int64 `json:"userProfileId,omitempty,string"` - - // UserProfileName: User profile name of the user who modified the - // object. - UserProfileName string `json:"userProfileName,omitempty"` - - // ServerResponse contains the HTTP response code and headers from the - // server. - googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "AccountId") 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. "AccountId") 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 *ChangeLog) MarshalJSON() ([]byte, error) { - type NoMethod ChangeLog - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// ChangeLogsListResponse: Change Log List Response -type ChangeLogsListResponse struct { - // ChangeLogs: Change log collection. - ChangeLogs []*ChangeLog `json:"changeLogs,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#changeLogsListResponse". - Kind string `json:"kind,omitempty"` - - // NextPageToken: Pagination token to be used for the next list - // operation. - 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. "ChangeLogs") 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. "ChangeLogs") 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 *ChangeLogsListResponse) MarshalJSON() ([]byte, error) { - type NoMethod ChangeLogsListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// ChannelGrouping: Represents a DfaReporting channel grouping. -type ChannelGrouping struct { - // FallbackName: ChannelGrouping fallback name. - FallbackName string `json:"fallbackName,omitempty"` - - // Kind: The kind of resource this is, in this case - // dfareporting#channelGrouping. - Kind string `json:"kind,omitempty"` - - // Name: ChannelGrouping name. - Name string `json:"name,omitempty"` - - // Rules: The rules contained within this channel grouping. - Rules []*ChannelGroupingRule `json:"rules,omitempty"` - - // ForceSendFields is a list of field names (e.g. "FallbackName") 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. "FallbackName") 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 *ChannelGrouping) MarshalJSON() ([]byte, error) { - type NoMethod ChannelGrouping - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// ChannelGroupingRule: Represents a DfaReporting channel grouping rule. -type ChannelGroupingRule struct { - // DisjunctiveMatchStatements: The disjunctive match statements - // contained within this rule. - DisjunctiveMatchStatements []*DisjunctiveMatchStatement `json:"disjunctiveMatchStatements,omitempty"` - - // Kind: The kind of resource this is, in this case - // dfareporting#channelGroupingRule. - Kind string `json:"kind,omitempty"` - - // Name: Rule name. - Name string `json:"name,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "DisjunctiveMatchStatements") 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. - // "DisjunctiveMatchStatements") 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 *ChannelGroupingRule) MarshalJSON() ([]byte, error) { - type NoMethod ChannelGroupingRule - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// CitiesListResponse: City List Response -type CitiesListResponse struct { - // Cities: City collection. - Cities []*City `json:"cities,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#citiesListResponse". - 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. "Cities") 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. "Cities") 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 *CitiesListResponse) MarshalJSON() ([]byte, error) { - type NoMethod CitiesListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// City: Contains information about a city that can be targeted by ads. -type City struct { - // CountryCode: Country code of the country to which this city belongs. - CountryCode string `json:"countryCode,omitempty"` - - // CountryDartId: DART ID of the country to which this city belongs. - CountryDartId int64 `json:"countryDartId,omitempty,string"` - - // DartId: DART ID of this city. This is the ID used for targeting and - // generating reports. - DartId int64 `json:"dartId,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#city". - Kind string `json:"kind,omitempty"` - - // MetroCode: Metro region code of the metro region (DMA) to which this - // city belongs. - MetroCode string `json:"metroCode,omitempty"` - - // MetroDmaId: ID of the metro region (DMA) to which this city belongs. - MetroDmaId int64 `json:"metroDmaId,omitempty,string"` - - // Name: Name of this city. - Name string `json:"name,omitempty"` - - // RegionCode: Region code of the region to which this city belongs. - RegionCode string `json:"regionCode,omitempty"` - - // RegionDartId: DART ID of the region to which this city belongs. - RegionDartId int64 `json:"regionDartId,omitempty,string"` - - // ForceSendFields is a list of field names (e.g. "CountryCode") 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. "CountryCode") 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 *City) MarshalJSON() ([]byte, error) { - type NoMethod City - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// ClickTag: Creative Click Tag. -type ClickTag struct { - // ClickThroughUrl: Parameter value for the specified click tag. This - // field contains a click-through url. - ClickThroughUrl *CreativeClickThroughUrl `json:"clickThroughUrl,omitempty"` - - // EventName: Advertiser event name associated with the click tag. This - // field is used by DISPLAY_IMAGE_GALLERY and HTML5_BANNER creatives. - // Applicable to DISPLAY when the primary asset type is not HTML_IMAGE. - EventName string `json:"eventName,omitempty"` - - // Name: Parameter name for the specified click tag. For - // DISPLAY_IMAGE_GALLERY creative assets, this field must match the - // value of the creative asset's creativeAssetId.name field. - Name string `json:"name,omitempty"` - - // ForceSendFields is a list of field names (e.g. "ClickThroughUrl") 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. "ClickThroughUrl") 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 *ClickTag) MarshalJSON() ([]byte, error) { - type NoMethod ClickTag - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// ClickThroughUrl: Click-through URL -type ClickThroughUrl struct { - // ComputedClickThroughUrl: Read-only convenience field representing the - // actual URL that will be used for this click-through. The URL is - // computed as follows: - If defaultLandingPage is enabled then the - // campaign's default landing page URL is assigned to this field. - If - // defaultLandingPage is not enabled and a landingPageId is specified - // then that landing page's URL is assigned to this field. - If neither - // of the above cases apply, then the customClickThroughUrl is assigned - // to this field. - ComputedClickThroughUrl string `json:"computedClickThroughUrl,omitempty"` - - // CustomClickThroughUrl: Custom click-through URL. Applicable if the - // defaultLandingPage field is set to false and the landingPageId field - // is left unset. - CustomClickThroughUrl string `json:"customClickThroughUrl,omitempty"` - - // DefaultLandingPage: Whether the campaign default landing page is - // used. - DefaultLandingPage bool `json:"defaultLandingPage,omitempty"` - - // LandingPageId: ID of the landing page for the click-through URL. - // Applicable if the defaultLandingPage field is set to false. - LandingPageId int64 `json:"landingPageId,omitempty,string"` - - // ForceSendFields is a list of field names (e.g. - // "ComputedClickThroughUrl") 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. "ComputedClickThroughUrl") - // 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 *ClickThroughUrl) MarshalJSON() ([]byte, error) { - type NoMethod ClickThroughUrl - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// ClickThroughUrlSuffixProperties: Click Through URL Suffix settings. -type ClickThroughUrlSuffixProperties struct { - // ClickThroughUrlSuffix: Click-through URL suffix to apply to all ads - // in this entity's scope. Must be less than 128 characters long. - ClickThroughUrlSuffix string `json:"clickThroughUrlSuffix,omitempty"` - - // OverrideInheritedSuffix: Whether this entity should override the - // inherited click-through URL suffix with its own defined value. - OverrideInheritedSuffix bool `json:"overrideInheritedSuffix,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "ClickThroughUrlSuffix") 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. "ClickThroughUrlSuffix") 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 *ClickThroughUrlSuffixProperties) MarshalJSON() ([]byte, error) { - type NoMethod ClickThroughUrlSuffixProperties - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// CompanionClickThroughOverride: Companion Click-through override. -type CompanionClickThroughOverride struct { - // ClickThroughUrl: Click-through URL of this companion click-through - // override. - ClickThroughUrl *ClickThroughUrl `json:"clickThroughUrl,omitempty"` - - // CreativeId: ID of the creative for this companion click-through - // override. - CreativeId int64 `json:"creativeId,omitempty,string"` - - // ForceSendFields is a list of field names (e.g. "ClickThroughUrl") 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. "ClickThroughUrl") 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 *CompanionClickThroughOverride) MarshalJSON() ([]byte, error) { - type NoMethod CompanionClickThroughOverride - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// CompanionSetting: Companion Settings -type CompanionSetting struct { - // CompanionsDisabled: Whether companions are disabled for this - // placement. - CompanionsDisabled bool `json:"companionsDisabled,omitempty"` - - // EnabledSizes: Allowlist of companion sizes to be served to this - // placement. Set this list to null or empty to serve all companion - // sizes. - EnabledSizes []*Size `json:"enabledSizes,omitempty"` - - // ImageOnly: Whether to serve only static images as companions. - ImageOnly bool `json:"imageOnly,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#companionSetting". - Kind string `json:"kind,omitempty"` - - // ForceSendFields is a list of field names (e.g. "CompanionsDisabled") - // 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. "CompanionsDisabled") 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 *CompanionSetting) MarshalJSON() ([]byte, error) { - type NoMethod CompanionSetting - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// CompatibleFields: Represents a response to the queryCompatibleFields -// method. -type CompatibleFields struct { - // CrossDimensionReachReportCompatibleFields: Contains items that are - // compatible to be selected for a report of type - // "CROSS_DIMENSION_REACH". - CrossDimensionReachReportCompatibleFields *CrossDimensionReachReportCompatibleFields `json:"crossDimensionReachReportCompatibleFields,omitempty"` - - // FloodlightReportCompatibleFields: Contains items that are compatible - // to be selected for a report of type "FLOODLIGHT". - FloodlightReportCompatibleFields *FloodlightReportCompatibleFields `json:"floodlightReportCompatibleFields,omitempty"` - - // Kind: The kind of resource this is, in this case - // dfareporting#compatibleFields. - Kind string `json:"kind,omitempty"` - - // PathAttributionReportCompatibleFields: Contains items that are - // compatible to be selected for a report of type "PATH_ATTRIBUTION". - PathAttributionReportCompatibleFields *PathReportCompatibleFields `json:"pathAttributionReportCompatibleFields,omitempty"` - - // PathReportCompatibleFields: Contains items that are compatible to be - // selected for a report of type "PATH". - PathReportCompatibleFields *PathReportCompatibleFields `json:"pathReportCompatibleFields,omitempty"` - - // PathToConversionReportCompatibleFields: Contains items that are - // compatible to be selected for a report of type "PATH_TO_CONVERSION". - PathToConversionReportCompatibleFields *PathToConversionReportCompatibleFields `json:"pathToConversionReportCompatibleFields,omitempty"` - - // ReachReportCompatibleFields: Contains items that are compatible to be - // selected for a report of type "REACH". - ReachReportCompatibleFields *ReachReportCompatibleFields `json:"reachReportCompatibleFields,omitempty"` - - // ReportCompatibleFields: Contains items that are compatible to be - // selected for a report of type "STANDARD". - ReportCompatibleFields *ReportCompatibleFields `json:"reportCompatibleFields,omitempty"` - - // ServerResponse contains the HTTP response code and headers from the - // server. - googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. - // "CrossDimensionReachReportCompatibleFields") 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. - // "CrossDimensionReachReportCompatibleFields") 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 *CompatibleFields) MarshalJSON() ([]byte, error) { - type NoMethod CompatibleFields - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// ConnectionType: Contains information about an internet connection -// type that can be targeted by ads. Clients can use the connection type -// to target mobile vs. broadband users. -type ConnectionType struct { - // Id: ID of this connection type. - Id int64 `json:"id,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#connectionType". - Kind string `json:"kind,omitempty"` - - // Name: Name of this connection type. - 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. "Id") 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. "Id") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // 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 *ConnectionType) MarshalJSON() ([]byte, error) { - type NoMethod ConnectionType - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// ConnectionTypesListResponse: Connection Type List Response -type ConnectionTypesListResponse struct { - // ConnectionTypes: Collection of connection types such as broadband and - // mobile. - ConnectionTypes []*ConnectionType `json:"connectionTypes,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#connectionTypesListResponse". - 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. "ConnectionTypes") 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. "ConnectionTypes") 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 *ConnectionTypesListResponse) MarshalJSON() ([]byte, error) { - type NoMethod ConnectionTypesListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// ContentCategoriesListResponse: Content Category List Response -type ContentCategoriesListResponse struct { - // ContentCategories: Content category collection. - ContentCategories []*ContentCategory `json:"contentCategories,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#contentCategoriesListResponse". - Kind string `json:"kind,omitempty"` - - // NextPageToken: Pagination token to be used for the next list - // operation. - 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. "ContentCategories") - // 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. "ContentCategories") 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 *ContentCategoriesListResponse) MarshalJSON() ([]byte, error) { - type NoMethod ContentCategoriesListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// ContentCategory: Organizes placements according to the contents of -// their associated webpages. -type ContentCategory struct { - // AccountId: Account ID of this content category. This is a read-only - // field that can be left blank. - AccountId int64 `json:"accountId,omitempty,string"` - - // Id: ID of this content category. This is a read-only, auto-generated - // field. - Id int64 `json:"id,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#contentCategory". - Kind string `json:"kind,omitempty"` - - // Name: Name of this content category. This is a required field and - // must be less than 256 characters long and unique among content - // categories of the same account. - 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. "AccountId") 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. "AccountId") 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 *ContentCategory) MarshalJSON() ([]byte, error) { - type NoMethod ContentCategory - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// Conversion: A Conversion represents when a user successfully performs -// a desired action after seeing an ad. -type Conversion struct { - // ChildDirectedTreatment: Whether this particular request may come from - // a user under the age of 13, under COPPA compliance. - ChildDirectedTreatment bool `json:"childDirectedTreatment,omitempty"` - - // CustomVariables: Custom floodlight variables. This field may only be - // used when calling batchinsert; it is not supported by batchupdate. - CustomVariables []*CustomFloodlightVariable `json:"customVariables,omitempty"` - - // Dclid: The display click ID. This field is mutually exclusive with - // encryptedUserId, encryptedUserIdCandidates[], matchId, mobileDeviceId - // and gclid. This or encryptedUserId or encryptedUserIdCandidates[] or - // matchId or mobileDeviceId or gclid is a required field. - Dclid string `json:"dclid,omitempty"` - - // EncryptedUserId: The alphanumeric encrypted user ID. When set, - // encryptionInfo should also be specified. This field is mutually - // exclusive with encryptedUserIdCandidates[], matchId, mobileDeviceId, - // gclid and dclid. This or encryptedUserIdCandidates[] or matchId or - // mobileDeviceId or gclid or dclid is a required field. - EncryptedUserId string `json:"encryptedUserId,omitempty"` - - // EncryptedUserIdCandidates: A list of the alphanumeric encrypted user - // IDs. Any user ID with exposure prior to the conversion timestamp will - // be used in the inserted conversion. If no such user ID is found then - // the conversion will be rejected with INVALID_ARGUMENT error. When - // set, encryptionInfo should also be specified. This field may only be - // used when calling batchinsert; it is not supported by batchupdate. - // This field is mutually exclusive with encryptedUserId, matchId, - // mobileDeviceId, gclid and dclid. This or encryptedUserId or matchId - // or mobileDeviceId or gclid or dclid is a required field. - EncryptedUserIdCandidates []string `json:"encryptedUserIdCandidates,omitempty"` - - // FloodlightActivityId: Floodlight Activity ID of this conversion. This - // is a required field. - FloodlightActivityId int64 `json:"floodlightActivityId,omitempty,string"` - - // FloodlightConfigurationId: Floodlight Configuration ID of this - // conversion. This is a required field. - FloodlightConfigurationId int64 `json:"floodlightConfigurationId,omitempty,string"` - - // Gclid: The Google click ID. This field is mutually exclusive with - // encryptedUserId, encryptedUserIdCandidates[], matchId, mobileDeviceId - // and dclid. This or encryptedUserId or encryptedUserIdCandidates[] or - // matchId or mobileDeviceId or dclid is a required field. - Gclid string `json:"gclid,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#conversion". - Kind string `json:"kind,omitempty"` - - // LimitAdTracking: Whether Limit Ad Tracking is enabled. When set to - // true, the conversion will be used for reporting but not targeting. - // This will prevent remarketing. - LimitAdTracking bool `json:"limitAdTracking,omitempty"` - - // MatchId: The match ID field. A match ID is your own first-party - // identifier that has been synced with Google using the match ID - // feature in Floodlight. This field is mutually exclusive with - // encryptedUserId, encryptedUserIdCandidates[],mobileDeviceId, gclid - // and dclid. This or encryptedUserId or encryptedUserIdCandidates[] or - // mobileDeviceId or gclid or dclid is a required field. - MatchId string `json:"matchId,omitempty"` - - // MobileDeviceId: The mobile device ID. This field is mutually - // exclusive with encryptedUserId, encryptedUserIdCandidates[], matchId, - // gclid and dclid. This or encryptedUserId or - // encryptedUserIdCandidates[] or matchId or gclid or dclid is a - // required field. - MobileDeviceId string `json:"mobileDeviceId,omitempty"` - - // NonPersonalizedAd: Whether the conversion was for a non personalized - // ad. - NonPersonalizedAd bool `json:"nonPersonalizedAd,omitempty"` - - // Ordinal: The ordinal of the conversion. Use this field to control how - // conversions of the same user and day are de-duplicated. This is a - // required field. - Ordinal string `json:"ordinal,omitempty"` - - // Quantity: The quantity of the conversion. - Quantity int64 `json:"quantity,omitempty,string"` - - // TimestampMicros: The timestamp of conversion, in Unix epoch micros. - // This is a required field. - TimestampMicros int64 `json:"timestampMicros,omitempty,string"` - - // TreatmentForUnderage: Whether this particular request may come from a - // user under the age of 16 (may differ by country), under compliance - // with the European Union's General Data Protection Regulation (GDPR). - TreatmentForUnderage bool `json:"treatmentForUnderage,omitempty"` - - // Value: The value of the conversion. - Value float64 `json:"value,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "ChildDirectedTreatment") 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. "ChildDirectedTreatment") - // 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 *Conversion) MarshalJSON() ([]byte, error) { - type NoMethod Conversion - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -func (s *Conversion) UnmarshalJSON(data []byte) error { - type NoMethod Conversion - var s1 struct { - Value gensupport.JSONFloat64 `json:"value"` - *NoMethod - } - s1.NoMethod = (*NoMethod)(s) - if err := json.Unmarshal(data, &s1); err != nil { - return err - } - s.Value = float64(s1.Value) - return nil -} - -// ConversionError: The error code and description for a conversion that -// failed to insert or update. -type ConversionError struct { - // Code: The error code. - // - // Possible values: - // "INVALID_ARGUMENT" - // "INTERNAL" - // "PERMISSION_DENIED" - // "NOT_FOUND" - Code string `json:"code,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#conversionError". - Kind string `json:"kind,omitempty"` - - // Message: A description of the error. - Message string `json:"message,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Code") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Code") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. - NullFields []string `json:"-"` -} - -func (s *ConversionError) MarshalJSON() ([]byte, error) { - type NoMethod ConversionError - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// ConversionStatus: The original conversion that was inserted or -// updated and whether there were any errors. -type ConversionStatus struct { - // Conversion: The original conversion that was inserted or updated. - Conversion *Conversion `json:"conversion,omitempty"` - - // Errors: A list of errors related to this conversion. - Errors []*ConversionError `json:"errors,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#conversionStatus". - Kind string `json:"kind,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Conversion") 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. "Conversion") 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 *ConversionStatus) MarshalJSON() ([]byte, error) { - type NoMethod ConversionStatus - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// ConversionsBatchInsertRequest: Insert Conversions Request. -type ConversionsBatchInsertRequest struct { - // Conversions: The set of conversions to insert. - Conversions []*Conversion `json:"conversions,omitempty"` - - // EncryptionInfo: Describes how encryptedUserId or - // encryptedUserIdCandidates[] is encrypted. This is a required field if - // encryptedUserId or encryptedUserIdCandidates[] is used. - EncryptionInfo *EncryptionInfo `json:"encryptionInfo,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#conversionsBatchInsertRequest". - Kind string `json:"kind,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Conversions") 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. "Conversions") 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 *ConversionsBatchInsertRequest) MarshalJSON() ([]byte, error) { - type NoMethod ConversionsBatchInsertRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// ConversionsBatchInsertResponse: Insert Conversions Response. -type ConversionsBatchInsertResponse struct { - // HasFailures: Indicates that some or all conversions failed to insert. - HasFailures bool `json:"hasFailures,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#conversionsBatchInsertResponse". - Kind string `json:"kind,omitempty"` - - // Status: The insert status of each conversion. Statuses are returned - // in the same order that conversions are inserted. - Status []*ConversionStatus `json:"status,omitempty"` - - // ServerResponse contains the HTTP response code and headers from the - // server. - googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "HasFailures") 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. "HasFailures") 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 *ConversionsBatchInsertResponse) MarshalJSON() ([]byte, error) { - type NoMethod ConversionsBatchInsertResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// ConversionsBatchUpdateRequest: Update Conversions Request. -type ConversionsBatchUpdateRequest struct { - // Conversions: The set of conversions to update. - Conversions []*Conversion `json:"conversions,omitempty"` - - // EncryptionInfo: Describes how encryptedUserId is encrypted. This is a - // required field if encryptedUserId is used. - EncryptionInfo *EncryptionInfo `json:"encryptionInfo,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#conversionsBatchUpdateRequest". - Kind string `json:"kind,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Conversions") 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. "Conversions") 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 *ConversionsBatchUpdateRequest) MarshalJSON() ([]byte, error) { - type NoMethod ConversionsBatchUpdateRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// ConversionsBatchUpdateResponse: Update Conversions Response. -type ConversionsBatchUpdateResponse struct { - // HasFailures: Indicates that some or all conversions failed to update. - HasFailures bool `json:"hasFailures,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#conversionsBatchUpdateResponse". - Kind string `json:"kind,omitempty"` - - // Status: The update status of each conversion. Statuses are returned - // in the same order that conversions are updated. - Status []*ConversionStatus `json:"status,omitempty"` - - // ServerResponse contains the HTTP response code and headers from the - // server. - googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "HasFailures") 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. "HasFailures") 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 *ConversionsBatchUpdateResponse) MarshalJSON() ([]byte, error) { - type NoMethod ConversionsBatchUpdateResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// CountriesListResponse: Country List Response -type CountriesListResponse struct { - // Countries: Country collection. - Countries []*Country `json:"countries,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#countriesListResponse". - 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. "Countries") 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. "Countries") 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 *CountriesListResponse) MarshalJSON() ([]byte, error) { - type NoMethod CountriesListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// Country: Contains information about a country that can be targeted by -// ads. -type Country struct { - // CountryCode: Country code. - CountryCode string `json:"countryCode,omitempty"` - - // DartId: DART ID of this country. This is the ID used for targeting - // and generating reports. - DartId int64 `json:"dartId,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#country". - Kind string `json:"kind,omitempty"` - - // Name: Name of this country. - Name string `json:"name,omitempty"` - - // SslEnabled: Whether ad serving supports secure servers in this - // country. - SslEnabled bool `json:"sslEnabled,omitempty"` - - // ServerResponse contains the HTTP response code and headers from the - // server. - googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "CountryCode") 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. "CountryCode") 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 *Country) MarshalJSON() ([]byte, error) { - type NoMethod Country - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// Creative: Contains properties of a Creative. -type Creative struct { - // AccountId: Account ID of this creative. This field, if left unset, - // will be auto-generated for both insert and update operations. - // Applicable to all creative types. - AccountId int64 `json:"accountId,omitempty,string"` - - // Active: Whether the creative is active. Applicable to all creative - // types. - Active bool `json:"active,omitempty"` - - // AdParameters: Ad parameters user for VPAID creative. This is a - // read-only field. Applicable to the following creative types: all - // VPAID. - AdParameters string `json:"adParameters,omitempty"` - - // AdTagKeys: Keywords for a Rich Media creative. Keywords let you - // customize the creative settings of a Rich Media ad running on your - // site without having to contact the advertiser. You can use keywords - // to dynamically change the look or functionality of a creative. - // Applicable to the following creative types: all RICH_MEDIA, and all - // VPAID. - AdTagKeys []string `json:"adTagKeys,omitempty"` - - // AdditionalSizes: Additional sizes associated with a responsive - // creative. When inserting or updating a creative either the size ID - // field or size width and height fields can be used. Applicable to - // DISPLAY creatives when the primary asset type is HTML_IMAGE. - AdditionalSizes []*Size `json:"additionalSizes,omitempty"` - - // AdvertiserId: Advertiser ID of this creative. This is a required - // field. Applicable to all creative types. - AdvertiserId int64 `json:"advertiserId,omitempty,string"` - - // AllowScriptAccess: Whether script access is allowed for this - // creative. This is a read-only and deprecated field which will - // automatically be set to true on update. Applicable to the following - // creative types: FLASH_INPAGE. - AllowScriptAccess bool `json:"allowScriptAccess,omitempty"` - - // Archived: Whether the creative is archived. Applicable to all - // creative types. - Archived bool `json:"archived,omitempty"` - - // ArtworkType: Type of artwork used for the creative. This is a - // read-only field. Applicable to the following creative types: all - // RICH_MEDIA, and all VPAID. - // - // Possible values: - // "ARTWORK_TYPE_FLASH" - // "ARTWORK_TYPE_HTML5" - // "ARTWORK_TYPE_MIXED" - // "ARTWORK_TYPE_IMAGE" - ArtworkType string `json:"artworkType,omitempty"` - - // AuthoringSource: Source application where creative was authored. - // Presently, only DBM authored creatives will have this field set. - // Applicable to all creative types. - // - // Possible values: - // "CREATIVE_AUTHORING_SOURCE_DCM" - // "CREATIVE_AUTHORING_SOURCE_DBM" - // "CREATIVE_AUTHORING_SOURCE_STUDIO" - // "CREATIVE_AUTHORING_SOURCE_GWD" - // "CREATIVE_AUTHORING_SOURCE_ACS" - AuthoringSource string `json:"authoringSource,omitempty"` - - // AuthoringTool: Authoring tool for HTML5 banner creatives. This is a - // read-only field. Applicable to the following creative types: - // HTML5_BANNER. - // - // Possible values: - // "NINJA" - // "SWIFFY" - AuthoringTool string `json:"authoringTool,omitempty"` - - // AutoAdvanceImages: Whether images are automatically advanced for - // image gallery creatives. Applicable to the following creative types: - // DISPLAY_IMAGE_GALLERY. - AutoAdvanceImages bool `json:"autoAdvanceImages,omitempty"` - - // BackgroundColor: The 6-character HTML color code, beginning with #, - // for the background of the window area where the Flash file is - // displayed. Default is white. Applicable to the following creative - // types: FLASH_INPAGE. - BackgroundColor string `json:"backgroundColor,omitempty"` - - // BackupImageClickThroughUrl: Click-through URL for backup image. - // Applicable to ENHANCED_BANNER when the primary asset type is not - // HTML_IMAGE. - BackupImageClickThroughUrl *CreativeClickThroughUrl `json:"backupImageClickThroughUrl,omitempty"` - - // BackupImageFeatures: List of feature dependencies that will cause a - // backup image to be served if the browser that serves the ad does not - // support them. Feature dependencies are features that a browser must - // be able to support in order to render your HTML5 creative asset - // correctly. This field is initially auto-generated to contain all - // features detected by Campaign Manager for all the assets of this - // creative and can then be modified by the client. To reset this field, - // copy over all the creativeAssets' detected features. Applicable to - // the following creative types: HTML5_BANNER. Applicable to DISPLAY - // when the primary asset type is not HTML_IMAGE. - // - // Possible values: - // "CSS_FONT_FACE" - // "CSS_BACKGROUND_SIZE" - // "CSS_BORDER_IMAGE" - // "CSS_BORDER_RADIUS" - // "CSS_BOX_SHADOW" - // "CSS_FLEX_BOX" - // "CSS_HSLA" - // "CSS_MULTIPLE_BGS" - // "CSS_OPACITY" - // "CSS_RGBA" - // "CSS_TEXT_SHADOW" - // "CSS_ANIMATIONS" - // "CSS_COLUMNS" - // "CSS_GENERATED_CONTENT" - // "CSS_GRADIENTS" - // "CSS_REFLECTIONS" - // "CSS_TRANSFORMS" - // "CSS_TRANSFORMS3D" - // "CSS_TRANSITIONS" - // "APPLICATION_CACHE" - // "CANVAS" - // "CANVAS_TEXT" - // "DRAG_AND_DROP" - // "HASH_CHANGE" - // "HISTORY" - // "AUDIO" - // "VIDEO" - // "INDEXED_DB" - // "INPUT_ATTR_AUTOCOMPLETE" - // "INPUT_ATTR_AUTOFOCUS" - // "INPUT_ATTR_LIST" - // "INPUT_ATTR_PLACEHOLDER" - // "INPUT_ATTR_MAX" - // "INPUT_ATTR_MIN" - // "INPUT_ATTR_MULTIPLE" - // "INPUT_ATTR_PATTERN" - // "INPUT_ATTR_REQUIRED" - // "INPUT_ATTR_STEP" - // "INPUT_TYPE_SEARCH" - // "INPUT_TYPE_TEL" - // "INPUT_TYPE_URL" - // "INPUT_TYPE_EMAIL" - // "INPUT_TYPE_DATETIME" - // "INPUT_TYPE_DATE" - // "INPUT_TYPE_MONTH" - // "INPUT_TYPE_WEEK" - // "INPUT_TYPE_TIME" - // "INPUT_TYPE_DATETIME_LOCAL" - // "INPUT_TYPE_NUMBER" - // "INPUT_TYPE_RANGE" - // "INPUT_TYPE_COLOR" - // "LOCAL_STORAGE" - // "POST_MESSAGE" - // "SESSION_STORAGE" - // "WEB_SOCKETS" - // "WEB_SQL_DATABASE" - // "WEB_WORKERS" - // "GEO_LOCATION" - // "INLINE_SVG" - // "SMIL" - // "SVG_HREF" - // "SVG_CLIP_PATHS" - // "TOUCH" - // "WEBGL" - // "SVG_FILTERS" - // "SVG_FE_IMAGE" - BackupImageFeatures []string `json:"backupImageFeatures,omitempty"` - - // BackupImageReportingLabel: Reporting label used for HTML5 banner - // backup image. Applicable to the following creative types: DISPLAY - // when the primary asset type is not HTML_IMAGE. - BackupImageReportingLabel string `json:"backupImageReportingLabel,omitempty"` - - // BackupImageTargetWindow: Target window for backup image. Applicable - // to the following creative types: FLASH_INPAGE and HTML5_BANNER. - // Applicable to DISPLAY when the primary asset type is not HTML_IMAGE. - BackupImageTargetWindow *TargetWindow `json:"backupImageTargetWindow,omitempty"` - - // ClickTags: Click tags of the creative. For DISPLAY, FLASH_INPAGE, and - // HTML5_BANNER creatives, this is a subset of detected click tags for - // the assets associated with this creative. After creating a flash - // asset, detected click tags will be returned in the - // creativeAssetMetadata. When inserting the creative, populate the - // creative clickTags field using the creativeAssetMetadata.clickTags - // field. For DISPLAY_IMAGE_GALLERY creatives, there should be exactly - // one entry in this list for each image creative asset. A click tag is - // matched with a corresponding creative asset by matching the - // clickTag.name field with the creativeAsset.assetIdentifier.name - // field. Applicable to the following creative types: - // DISPLAY_IMAGE_GALLERY, FLASH_INPAGE, HTML5_BANNER. Applicable to - // DISPLAY when the primary asset type is not HTML_IMAGE. - ClickTags []*ClickTag `json:"clickTags,omitempty"` - - // CommercialId: Industry standard ID assigned to creative for reach and - // frequency. Applicable to INSTREAM_VIDEO_REDIRECT creatives. - CommercialId string `json:"commercialId,omitempty"` - - // CompanionCreatives: List of companion creatives assigned to an - // in-Stream video creative. Acceptable values include IDs of existing - // flash and image creatives. Applicable to the following creative - // types: all VPAID, all INSTREAM_AUDIO and all INSTREAM_VIDEO with - // dynamicAssetSelection set to false. - CompanionCreatives googleapi.Int64s `json:"companionCreatives,omitempty"` - - // Compatibility: Compatibilities associated with this creative. This is - // a read-only field. DISPLAY and DISPLAY_INTERSTITIAL refer to - // rendering either on desktop or on mobile devices or in mobile apps - // for regular or interstitial ads, respectively. APP and - // APP_INTERSTITIAL are for rendering in mobile apps. Only pre-existing - // creatives may have these compatibilities since new creatives will - // either be assigned DISPLAY or DISPLAY_INTERSTITIAL instead. - // IN_STREAM_VIDEO refers to rendering in in-stream video ads developed - // with the VAST standard. IN_STREAM_AUDIO refers to rendering in - // in-stream audio ads developed with the VAST standard. Applicable to - // all creative types. Acceptable values are: - "APP" - - // "APP_INTERSTITIAL" - "IN_STREAM_VIDEO" - "IN_STREAM_AUDIO" - - // "DISPLAY" - "DISPLAY_INTERSTITIAL" - // - // Possible values: - // "DISPLAY" - // "DISPLAY_INTERSTITIAL" - // "APP" - // "APP_INTERSTITIAL" - // "IN_STREAM_VIDEO" - // "IN_STREAM_AUDIO" - Compatibility []string `json:"compatibility,omitempty"` - - // ConvertFlashToHtml5: Whether Flash assets associated with the - // creative need to be automatically converted to HTML5. This flag is - // enabled by default and users can choose to disable it if they don't - // want the system to generate and use HTML5 asset for this creative. - // Applicable to the following creative type: FLASH_INPAGE. Applicable - // to DISPLAY when the primary asset type is not HTML_IMAGE. - ConvertFlashToHtml5 bool `json:"convertFlashToHtml5,omitempty"` - - // CounterCustomEvents: List of counter events configured for the - // creative. For DISPLAY_IMAGE_GALLERY creatives, these are read-only - // and auto-generated from clickTags. Applicable to the following - // creative types: DISPLAY_IMAGE_GALLERY, all RICH_MEDIA, and all VPAID. - CounterCustomEvents []*CreativeCustomEvent `json:"counterCustomEvents,omitempty"` - - // CreativeAssetSelection: Required if dynamicAssetSelection is true. - CreativeAssetSelection *CreativeAssetSelection `json:"creativeAssetSelection,omitempty"` - - // CreativeAssets: Assets associated with a creative. Applicable to all - // but the following creative types: INTERNAL_REDIRECT, - // INTERSTITIAL_INTERNAL_REDIRECT, and REDIRECT - CreativeAssets []*CreativeAsset `json:"creativeAssets,omitempty"` - - // CreativeFieldAssignments: Creative field assignments for this - // creative. Applicable to all creative types. - CreativeFieldAssignments []*CreativeFieldAssignment `json:"creativeFieldAssignments,omitempty"` - - // CustomKeyValues: Custom key-values for a Rich Media creative. - // Key-values let you customize the creative settings of a Rich Media ad - // running on your site without having to contact the advertiser. You - // can use key-values to dynamically change the look or functionality of - // a creative. Applicable to the following creative types: all - // RICH_MEDIA, and all VPAID. - CustomKeyValues []string `json:"customKeyValues,omitempty"` - - // DynamicAssetSelection: Set this to true to enable the use of rules to - // target individual assets in this creative. When set to true - // creativeAssetSelection must be set. This also controls asset-level - // companions. When this is true, companion creatives should be assigned - // to creative assets. Learn more. Applicable to INSTREAM_VIDEO - // creatives. - DynamicAssetSelection bool `json:"dynamicAssetSelection,omitempty"` - - // ExitCustomEvents: List of exit events configured for the creative. - // For DISPLAY and DISPLAY_IMAGE_GALLERY creatives, these are read-only - // and auto-generated from clickTags, For DISPLAY, an event is also - // created from the backupImageReportingLabel. Applicable to the - // following creative types: DISPLAY_IMAGE_GALLERY, all RICH_MEDIA, and - // all VPAID. Applicable to DISPLAY when the primary asset type is not - // HTML_IMAGE. - ExitCustomEvents []*CreativeCustomEvent `json:"exitCustomEvents,omitempty"` - - // FsCommand: OpenWindow FSCommand of this creative. This lets the SWF - // file communicate with either Flash Player or the program hosting - // Flash Player, such as a web browser. This is only triggered if - // allowScriptAccess field is true. Applicable to the following creative - // types: FLASH_INPAGE. - FsCommand *FsCommand `json:"fsCommand,omitempty"` - - // HtmlCode: HTML code for the creative. This is a required field when - // applicable. This field is ignored if htmlCodeLocked is true. - // Applicable to the following creative types: all CUSTOM, FLASH_INPAGE, - // and HTML5_BANNER, and all RICH_MEDIA. - HtmlCode string `json:"htmlCode,omitempty"` - - // HtmlCodeLocked: Whether HTML code is generated by Campaign Manager or - // manually entered. Set to true to ignore changes to htmlCode. - // Applicable to the following creative types: FLASH_INPAGE and - // HTML5_BANNER. - HtmlCodeLocked bool `json:"htmlCodeLocked,omitempty"` - - // Id: ID of this creative. This is a read-only, auto-generated field. - // Applicable to all creative types. - Id int64 `json:"id,omitempty,string"` - - // IdDimensionValue: Dimension value for the ID of this creative. This - // is a read-only field. Applicable to all creative types. - IdDimensionValue *DimensionValue `json:"idDimensionValue,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#creative". - Kind string `json:"kind,omitempty"` - - // LastModifiedInfo: Creative last modification information. This is a - // read-only field. Applicable to all creative types. - LastModifiedInfo *LastModifiedInfo `json:"lastModifiedInfo,omitempty"` - - // LatestTraffickedCreativeId: Latest Studio trafficked creative ID - // associated with rich media and VPAID creatives. This is a read-only - // field. Applicable to the following creative types: all RICH_MEDIA, - // and all VPAID. - LatestTraffickedCreativeId int64 `json:"latestTraffickedCreativeId,omitempty,string"` - - // MediaDescription: Description of the audio or video ad. Applicable to - // the following creative types: all INSTREAM_VIDEO, INSTREAM_AUDIO, and - // all VPAID. - MediaDescription string `json:"mediaDescription,omitempty"` - - // MediaDuration: Creative audio or video duration in seconds. This is a - // read-only field. Applicable to the following creative types: - // INSTREAM_VIDEO, INSTREAM_AUDIO, all RICH_MEDIA, and all VPAID. - MediaDuration float64 `json:"mediaDuration,omitempty"` - - // Name: Name of the creative. This is a required field and must be less - // than 256 characters long. Applicable to all creative types. - Name string `json:"name,omitempty"` - - // ObaIcon: Online behavioral advertising icon to be added to the - // creative. Applicable to the following creative types: all - // INSTREAM_VIDEO. - ObaIcon *ObaIcon `json:"obaIcon,omitempty"` - - // OverrideCss: Override CSS value for rich media creatives. Applicable - // to the following creative types: all RICH_MEDIA. - OverrideCss string `json:"overrideCss,omitempty"` - - // ProgressOffset: Amount of time to play the video before counting a - // view. Applicable to the following creative types: all INSTREAM_VIDEO. - ProgressOffset *VideoOffset `json:"progressOffset,omitempty"` - - // RedirectUrl: URL of hosted image or hosted video or another ad tag. - // For INSTREAM_VIDEO_REDIRECT creatives this is the in-stream video - // redirect URL. The standard for a VAST (Video Ad Serving Template) ad - // response allows for a redirect link to another VAST 2.0 or 3.0 call. - // This is a required field when applicable. Applicable to the following - // creative types: DISPLAY_REDIRECT, INTERNAL_REDIRECT, - // INTERSTITIAL_INTERNAL_REDIRECT, and INSTREAM_VIDEO_REDIRECT - RedirectUrl string `json:"redirectUrl,omitempty"` - - // RenderingId: ID of current rendering version. This is a read-only - // field. Applicable to all creative types. - RenderingId int64 `json:"renderingId,omitempty,string"` - - // RenderingIdDimensionValue: Dimension value for the rendering ID of - // this creative. This is a read-only field. Applicable to all creative - // types. - RenderingIdDimensionValue *DimensionValue `json:"renderingIdDimensionValue,omitempty"` - - // RequiredFlashPluginVersion: The minimum required Flash plugin version - // for this creative. For example, 11.2.202.235. This is a read-only - // field. Applicable to the following creative types: all RICH_MEDIA, - // and all VPAID. - RequiredFlashPluginVersion string `json:"requiredFlashPluginVersion,omitempty"` - - // RequiredFlashVersion: The internal Flash version for this creative as - // calculated by Studio. This is a read-only field. Applicable to the - // following creative types: FLASH_INPAGE all RICH_MEDIA, and all VPAID. - // Applicable to DISPLAY when the primary asset type is not HTML_IMAGE. - RequiredFlashVersion int64 `json:"requiredFlashVersion,omitempty"` - - // Size: Size associated with this creative. When inserting or updating - // a creative either the size ID field or size width and height fields - // can be used. This is a required field when applicable; however for - // IMAGE, FLASH_INPAGE creatives, and for DISPLAY creatives with a - // primary asset of type HTML_IMAGE, if left blank, this field will be - // automatically set using the actual size of the associated image - // assets. Applicable to the following creative types: DISPLAY, - // DISPLAY_IMAGE_GALLERY, FLASH_INPAGE, HTML5_BANNER, IMAGE, and all - // RICH_MEDIA. - Size *Size `json:"size,omitempty"` - - // SkipOffset: Amount of time to play the video before the skip button - // appears. Applicable to the following creative types: all - // INSTREAM_VIDEO. - SkipOffset *VideoOffset `json:"skipOffset,omitempty"` - - // Skippable: Whether the user can choose to skip the creative. - // Applicable to the following creative types: all INSTREAM_VIDEO and - // all VPAID. - Skippable bool `json:"skippable,omitempty"` - - // SslCompliant: Whether the creative is SSL-compliant. This is a - // read-only field. Applicable to all creative types. - SslCompliant bool `json:"sslCompliant,omitempty"` - - // SslOverride: Whether creative should be treated as SSL compliant even - // if the system scan shows it's not. Applicable to all creative types. - SslOverride bool `json:"sslOverride,omitempty"` - - // StudioAdvertiserId: Studio advertiser ID associated with rich media - // and VPAID creatives. This is a read-only field. Applicable to the - // following creative types: all RICH_MEDIA, and all VPAID. - StudioAdvertiserId int64 `json:"studioAdvertiserId,omitempty,string"` - - // StudioCreativeId: Studio creative ID associated with rich media and - // VPAID creatives. This is a read-only field. Applicable to the - // following creative types: all RICH_MEDIA, and all VPAID. - StudioCreativeId int64 `json:"studioCreativeId,omitempty,string"` - - // StudioTraffickedCreativeId: Studio trafficked creative ID associated - // with rich media and VPAID creatives. This is a read-only field. - // Applicable to the following creative types: all RICH_MEDIA, and all - // VPAID. - StudioTraffickedCreativeId int64 `json:"studioTraffickedCreativeId,omitempty,string"` - - // SubaccountId: Subaccount ID of this creative. This field, if left - // unset, will be auto-generated for both insert and update operations. - // Applicable to all creative types. - SubaccountId int64 `json:"subaccountId,omitempty,string"` - - // ThirdPartyBackupImageImpressionsUrl: Third-party URL used to record - // backup image impressions. Applicable to the following creative types: - // all RICH_MEDIA. - ThirdPartyBackupImageImpressionsUrl string `json:"thirdPartyBackupImageImpressionsUrl,omitempty"` - - // ThirdPartyRichMediaImpressionsUrl: Third-party URL used to record - // rich media impressions. Applicable to the following creative types: - // all RICH_MEDIA. - ThirdPartyRichMediaImpressionsUrl string `json:"thirdPartyRichMediaImpressionsUrl,omitempty"` - - // ThirdPartyUrls: Third-party URLs for tracking in-stream creative - // events. Applicable to the following creative types: all - // INSTREAM_VIDEO, all INSTREAM_AUDIO, and all VPAID. - ThirdPartyUrls []*ThirdPartyTrackingUrl `json:"thirdPartyUrls,omitempty"` - - // TimerCustomEvents: List of timer events configured for the creative. - // For DISPLAY_IMAGE_GALLERY creatives, these are read-only and - // auto-generated from clickTags. Applicable to the following creative - // types: DISPLAY_IMAGE_GALLERY, all RICH_MEDIA, and all VPAID. - // Applicable to DISPLAY when the primary asset is not HTML_IMAGE. - TimerCustomEvents []*CreativeCustomEvent `json:"timerCustomEvents,omitempty"` - - // TotalFileSize: Combined size of all creative assets. This is a - // read-only field. Applicable to the following creative types: all - // RICH_MEDIA, and all VPAID. - TotalFileSize int64 `json:"totalFileSize,omitempty,string"` - - // Type: Type of this creative. This is a required field. Applicable to - // all creative types. *Note:* FLASH_INPAGE, HTML5_BANNER, and IMAGE are - // only used for existing creatives. New creatives should use DISPLAY as - // a replacement for these types. - // - // Possible values: - // "IMAGE" - // "DISPLAY_REDIRECT" - // "CUSTOM_DISPLAY" - // "INTERNAL_REDIRECT" - // "CUSTOM_DISPLAY_INTERSTITIAL" - // "INTERSTITIAL_INTERNAL_REDIRECT" - // "TRACKING_TEXT" - // "RICH_MEDIA_DISPLAY_BANNER" - // "RICH_MEDIA_INPAGE_FLOATING" - // "RICH_MEDIA_IM_EXPAND" - // "RICH_MEDIA_DISPLAY_EXPANDING" - // "RICH_MEDIA_DISPLAY_INTERSTITIAL" - // "RICH_MEDIA_DISPLAY_MULTI_FLOATING_INTERSTITIAL" - // "RICH_MEDIA_MOBILE_IN_APP" - // "FLASH_INPAGE" - // "INSTREAM_VIDEO" - // "VPAID_LINEAR_VIDEO" - // "VPAID_NON_LINEAR_VIDEO" - // "INSTREAM_VIDEO_REDIRECT" - // "RICH_MEDIA_PEEL_DOWN" - // "HTML5_BANNER" - // "DISPLAY" - // "DISPLAY_IMAGE_GALLERY" - // "BRAND_SAFE_DEFAULT_INSTREAM_VIDEO" - // "INSTREAM_AUDIO" - Type string `json:"type,omitempty"` - - // UniversalAdId: A Universal Ad ID as per the VAST 4.0 spec. Applicable - // to the following creative types: INSTREAM_AUDIO and INSTREAM_VIDEO - // and VPAID. - UniversalAdId *UniversalAdId `json:"universalAdId,omitempty"` - - // Version: The version number helps you keep track of multiple versions - // of your creative in your reports. The version number will always be - // auto-generated during insert operations to start at 1. For tracking - // creatives the version cannot be incremented and will always remain at - // 1. For all other creative types the version can be incremented only - // by 1 during update operations. In addition, the version will be - // automatically incremented by 1 when undergoing Rich Media creative - // merging. Applicable to all creative types. - 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. "AccountId") 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. "AccountId") 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 *Creative) MarshalJSON() ([]byte, error) { - type NoMethod Creative - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -func (s *Creative) UnmarshalJSON(data []byte) error { - type NoMethod Creative - var s1 struct { - MediaDuration gensupport.JSONFloat64 `json:"mediaDuration"` - *NoMethod - } - s1.NoMethod = (*NoMethod)(s) - if err := json.Unmarshal(data, &s1); err != nil { - return err - } - s.MediaDuration = float64(s1.MediaDuration) - return nil -} - -// CreativeAsset: Creative Asset. -type CreativeAsset struct { - // ActionScript3: Whether ActionScript3 is enabled for the flash asset. - // This is a read-only field. Applicable to the following creative type: - // FLASH_INPAGE. Applicable to DISPLAY when the primary asset type is - // not HTML_IMAGE. - ActionScript3 bool `json:"actionScript3,omitempty"` - - // Active: Whether the video or audio asset is active. This is a - // read-only field for VPAID_NON_LINEAR_VIDEO assets. Applicable to the - // following creative types: INSTREAM_AUDIO, INSTREAM_VIDEO and all - // VPAID. - Active bool `json:"active,omitempty"` - - // AdditionalSizes: Additional sizes associated with this creative - // asset. HTML5 asset generated by compatible software such as GWD will - // be able to support more sizes this creative asset can render. - AdditionalSizes []*Size `json:"additionalSizes,omitempty"` - - // Alignment: Possible alignments for an asset. This is a read-only - // field. Applicable to the following creative types: - // RICH_MEDIA_DISPLAY_MULTI_FLOATING_INTERSTITIAL . - // - // Possible values: - // "ALIGNMENT_TOP" - // "ALIGNMENT_RIGHT" - // "ALIGNMENT_BOTTOM" - // "ALIGNMENT_LEFT" - Alignment string `json:"alignment,omitempty"` - - // ArtworkType: Artwork type of rich media creative. This is a read-only - // field. Applicable to the following creative types: all RICH_MEDIA. - // - // Possible values: - // "ARTWORK_TYPE_FLASH" - // "ARTWORK_TYPE_HTML5" - // "ARTWORK_TYPE_MIXED" - // "ARTWORK_TYPE_IMAGE" - ArtworkType string `json:"artworkType,omitempty"` - - // AssetIdentifier: Identifier of this asset. This is the same - // identifier returned during creative asset insert operation. This is a - // required field. Applicable to all but the following creative types: - // all REDIRECT and TRACKING_TEXT. - AssetIdentifier *CreativeAssetId `json:"assetIdentifier,omitempty"` - - // AudioBitRate: Audio stream bit rate in kbps. This is a read-only - // field. Applicable to the following creative types: INSTREAM_AUDIO, - // INSTREAM_VIDEO and all VPAID. - AudioBitRate int64 `json:"audioBitRate,omitempty"` - - // AudioSampleRate: Audio sample bit rate in hertz. This is a read-only - // field. Applicable to the following creative types: INSTREAM_AUDIO, - // INSTREAM_VIDEO and all VPAID. - AudioSampleRate int64 `json:"audioSampleRate,omitempty"` - - // BackupImageExit: Exit event configured for the backup image. - // Applicable to the following creative types: all RICH_MEDIA. - BackupImageExit *CreativeCustomEvent `json:"backupImageExit,omitempty"` - - // BitRate: Detected bit-rate for audio or video asset. This is a - // read-only field. Applicable to the following creative types: - // INSTREAM_AUDIO, INSTREAM_VIDEO and all VPAID. - BitRate int64 `json:"bitRate,omitempty"` - - // ChildAssetType: Rich media child asset type. This is a read-only - // field. Applicable to the following creative types: all VPAID. - // - // Possible values: - // "CHILD_ASSET_TYPE_FLASH" - // "CHILD_ASSET_TYPE_VIDEO" - // "CHILD_ASSET_TYPE_IMAGE" - // "CHILD_ASSET_TYPE_DATA" - ChildAssetType string `json:"childAssetType,omitempty"` - - // CollapsedSize: Size of an asset when collapsed. This is a read-only - // field. Applicable to the following creative types: all RICH_MEDIA and - // all VPAID. Additionally, applicable to assets whose displayType is - // ASSET_DISPLAY_TYPE_EXPANDING or ASSET_DISPLAY_TYPE_PEEL_DOWN. - CollapsedSize *Size `json:"collapsedSize,omitempty"` - - // CompanionCreativeIds: List of companion creatives assigned to an - // in-stream video creative asset. Acceptable values include IDs of - // existing flash and image creatives. Applicable to INSTREAM_VIDEO - // creative type with dynamicAssetSelection set to true. - CompanionCreativeIds googleapi.Int64s `json:"companionCreativeIds,omitempty"` - - // CustomStartTimeValue: Custom start time in seconds for making the - // asset visible. Applicable to the following creative types: all - // RICH_MEDIA. Value must be greater than or equal to 0. - CustomStartTimeValue int64 `json:"customStartTimeValue,omitempty"` - - // DetectedFeatures: List of feature dependencies for the creative asset - // that are detected by Campaign Manager. Feature dependencies are - // features that a browser must be able to support in order to render - // your HTML5 creative correctly. This is a read-only, auto-generated - // field. Applicable to the following creative types: HTML5_BANNER. - // Applicable to DISPLAY when the primary asset type is not HTML_IMAGE. - // - // Possible values: - // "CSS_FONT_FACE" - // "CSS_BACKGROUND_SIZE" - // "CSS_BORDER_IMAGE" - // "CSS_BORDER_RADIUS" - // "CSS_BOX_SHADOW" - // "CSS_FLEX_BOX" - // "CSS_HSLA" - // "CSS_MULTIPLE_BGS" - // "CSS_OPACITY" - // "CSS_RGBA" - // "CSS_TEXT_SHADOW" - // "CSS_ANIMATIONS" - // "CSS_COLUMNS" - // "CSS_GENERATED_CONTENT" - // "CSS_GRADIENTS" - // "CSS_REFLECTIONS" - // "CSS_TRANSFORMS" - // "CSS_TRANSFORMS3D" - // "CSS_TRANSITIONS" - // "APPLICATION_CACHE" - // "CANVAS" - // "CANVAS_TEXT" - // "DRAG_AND_DROP" - // "HASH_CHANGE" - // "HISTORY" - // "AUDIO" - // "VIDEO" - // "INDEXED_DB" - // "INPUT_ATTR_AUTOCOMPLETE" - // "INPUT_ATTR_AUTOFOCUS" - // "INPUT_ATTR_LIST" - // "INPUT_ATTR_PLACEHOLDER" - // "INPUT_ATTR_MAX" - // "INPUT_ATTR_MIN" - // "INPUT_ATTR_MULTIPLE" - // "INPUT_ATTR_PATTERN" - // "INPUT_ATTR_REQUIRED" - // "INPUT_ATTR_STEP" - // "INPUT_TYPE_SEARCH" - // "INPUT_TYPE_TEL" - // "INPUT_TYPE_URL" - // "INPUT_TYPE_EMAIL" - // "INPUT_TYPE_DATETIME" - // "INPUT_TYPE_DATE" - // "INPUT_TYPE_MONTH" - // "INPUT_TYPE_WEEK" - // "INPUT_TYPE_TIME" - // "INPUT_TYPE_DATETIME_LOCAL" - // "INPUT_TYPE_NUMBER" - // "INPUT_TYPE_RANGE" - // "INPUT_TYPE_COLOR" - // "LOCAL_STORAGE" - // "POST_MESSAGE" - // "SESSION_STORAGE" - // "WEB_SOCKETS" - // "WEB_SQL_DATABASE" - // "WEB_WORKERS" - // "GEO_LOCATION" - // "INLINE_SVG" - // "SMIL" - // "SVG_HREF" - // "SVG_CLIP_PATHS" - // "TOUCH" - // "WEBGL" - // "SVG_FILTERS" - // "SVG_FE_IMAGE" - DetectedFeatures []string `json:"detectedFeatures,omitempty"` - - // DisplayType: Type of rich media asset. This is a read-only field. - // Applicable to the following creative types: all RICH_MEDIA. - // - // Possible values: - // "ASSET_DISPLAY_TYPE_INPAGE" - // "ASSET_DISPLAY_TYPE_FLOATING" - // "ASSET_DISPLAY_TYPE_OVERLAY" - // "ASSET_DISPLAY_TYPE_EXPANDING" - // "ASSET_DISPLAY_TYPE_FLASH_IN_FLASH" - // "ASSET_DISPLAY_TYPE_FLASH_IN_FLASH_EXPANDING" - // "ASSET_DISPLAY_TYPE_PEEL_DOWN" - // "ASSET_DISPLAY_TYPE_VPAID_LINEAR" - // "ASSET_DISPLAY_TYPE_VPAID_NON_LINEAR" - // "ASSET_DISPLAY_TYPE_BACKDROP" - DisplayType string `json:"displayType,omitempty"` - - // Duration: Duration in seconds for which an asset will be displayed. - // Applicable to the following creative types: INSTREAM_AUDIO, - // INSTREAM_VIDEO and VPAID_LINEAR_VIDEO. Value must be greater than or - // equal to 1. - Duration int64 `json:"duration,omitempty"` - - // DurationType: Duration type for which an asset will be displayed. - // Applicable to the following creative types: all RICH_MEDIA. - // - // Possible values: - // "ASSET_DURATION_TYPE_AUTO" - // "ASSET_DURATION_TYPE_NONE" - // "ASSET_DURATION_TYPE_CUSTOM" - DurationType string `json:"durationType,omitempty"` - - // ExpandedDimension: Detected expanded dimension for video asset. This - // is a read-only field. Applicable to the following creative types: - // INSTREAM_VIDEO and all VPAID. - ExpandedDimension *Size `json:"expandedDimension,omitempty"` - - // FileSize: File size associated with this creative asset. This is a - // read-only field. Applicable to all but the following creative types: - // all REDIRECT and TRACKING_TEXT. - FileSize int64 `json:"fileSize,omitempty,string"` - - // FlashVersion: Flash version of the asset. This is a read-only field. - // Applicable to the following creative types: FLASH_INPAGE, all - // RICH_MEDIA, and all VPAID. Applicable to DISPLAY when the primary - // asset type is not HTML_IMAGE. - FlashVersion int64 `json:"flashVersion,omitempty"` - - // FrameRate: Video frame rate for video asset in frames per second. - // This is a read-only field. Applicable to the following creative - // types: INSTREAM_VIDEO and all VPAID. - FrameRate float64 `json:"frameRate,omitempty"` - - // HideFlashObjects: Whether to hide Flash objects flag for an asset. - // Applicable to the following creative types: all RICH_MEDIA. - HideFlashObjects bool `json:"hideFlashObjects,omitempty"` - - // HideSelectionBoxes: Whether to hide selection boxes flag for an - // asset. Applicable to the following creative types: all RICH_MEDIA. - HideSelectionBoxes bool `json:"hideSelectionBoxes,omitempty"` - - // HorizontallyLocked: Whether the asset is horizontally locked. This is - // a read-only field. Applicable to the following creative types: all - // RICH_MEDIA. - HorizontallyLocked bool `json:"horizontallyLocked,omitempty"` - - // Id: Numeric ID of this creative asset. This is a required field and - // should not be modified. Applicable to all but the following creative - // types: all REDIRECT and TRACKING_TEXT. - Id int64 `json:"id,omitempty,string"` - - // IdDimensionValue: Dimension value for the ID of the asset. This is a - // read-only, auto-generated field. - IdDimensionValue *DimensionValue `json:"idDimensionValue,omitempty"` - - // MediaDuration: Detected duration for audio or video asset. This is a - // read-only field. Applicable to the following creative types: - // INSTREAM_AUDIO, INSTREAM_VIDEO and all VPAID. - MediaDuration float64 `json:"mediaDuration,omitempty"` - - // MimeType: Detected MIME type for audio or video asset. This is a - // read-only field. Applicable to the following creative types: - // INSTREAM_AUDIO, INSTREAM_VIDEO and all VPAID. - MimeType string `json:"mimeType,omitempty"` - - // Offset: Offset position for an asset in collapsed mode. This is a - // read-only field. Applicable to the following creative types: all - // RICH_MEDIA and all VPAID. Additionally, only applicable to assets - // whose displayType is ASSET_DISPLAY_TYPE_EXPANDING or - // ASSET_DISPLAY_TYPE_PEEL_DOWN. - Offset *OffsetPosition `json:"offset,omitempty"` - - // Orientation: Orientation of video asset. This is a read-only, - // auto-generated field. - // - // Possible values: - // "LANDSCAPE" - // "PORTRAIT" - // "SQUARE" - Orientation string `json:"orientation,omitempty"` - - // OriginalBackup: Whether the backup asset is original or changed by - // the user in Campaign Manager. Applicable to the following creative - // types: all RICH_MEDIA. - OriginalBackup bool `json:"originalBackup,omitempty"` - - // PoliteLoad: Whether this asset is used as a polite load asset. - PoliteLoad bool `json:"politeLoad,omitempty"` - - // Position: Offset position for an asset. Applicable to the following - // creative types: all RICH_MEDIA. - Position *OffsetPosition `json:"position,omitempty"` - - // PositionLeftUnit: Offset left unit for an asset. This is a read-only - // field. Applicable to the following creative types: all RICH_MEDIA. - // - // Possible values: - // "OFFSET_UNIT_PIXEL" - // "OFFSET_UNIT_PERCENT" - // "OFFSET_UNIT_PIXEL_FROM_CENTER" - PositionLeftUnit string `json:"positionLeftUnit,omitempty"` - - // PositionTopUnit: Offset top unit for an asset. This is a read-only - // field if the asset displayType is ASSET_DISPLAY_TYPE_OVERLAY. - // Applicable to the following creative types: all RICH_MEDIA. - // - // Possible values: - // "OFFSET_UNIT_PIXEL" - // "OFFSET_UNIT_PERCENT" - // "OFFSET_UNIT_PIXEL_FROM_CENTER" - PositionTopUnit string `json:"positionTopUnit,omitempty"` - - // ProgressiveServingUrl: Progressive URL for video asset. This is a - // read-only field. Applicable to the following creative types: - // INSTREAM_VIDEO and all VPAID. - ProgressiveServingUrl string `json:"progressiveServingUrl,omitempty"` - - // Pushdown: Whether the asset pushes down other content. Applicable to - // the following creative types: all RICH_MEDIA. Additionally, only - // applicable when the asset offsets are 0, the collapsedSize.width - // matches size.width, and the collapsedSize.height is less than - // size.height. - Pushdown bool `json:"pushdown,omitempty"` - - // PushdownDuration: Pushdown duration in seconds for an asset. - // Applicable to the following creative types: all - // RICH_MEDIA.Additionally, only applicable when the asset pushdown - // field is true, the offsets are 0, the collapsedSize.width matches - // size.width, and the collapsedSize.height is less than size.height. - // Acceptable values are 0 to 9.99, inclusive. - PushdownDuration float64 `json:"pushdownDuration,omitempty"` - - // Role: Role of the asset in relation to creative. Applicable to all - // but the following creative types: all REDIRECT and TRACKING_TEXT. - // This is a required field. PRIMARY applies to DISPLAY, FLASH_INPAGE, - // HTML5_BANNER, IMAGE, DISPLAY_IMAGE_GALLERY, all RICH_MEDIA (which may - // contain multiple primary assets), and all VPAID creatives. - // BACKUP_IMAGE applies to FLASH_INPAGE, HTML5_BANNER, all RICH_MEDIA, - // and all VPAID creatives. Applicable to DISPLAY when the primary asset - // type is not HTML_IMAGE. ADDITIONAL_IMAGE and ADDITIONAL_FLASH apply - // to FLASH_INPAGE creatives. OTHER refers to assets from sources other - // than Campaign Manager, such as Studio uploaded assets, applicable to - // all RICH_MEDIA and all VPAID creatives. PARENT_VIDEO refers to videos - // uploaded by the user in Campaign Manager and is applicable to - // INSTREAM_VIDEO and VPAID_LINEAR_VIDEO creatives. TRANSCODED_VIDEO - // refers to videos transcoded by Campaign Manager from PARENT_VIDEO - // assets and is applicable to INSTREAM_VIDEO and VPAID_LINEAR_VIDEO - // creatives. ALTERNATE_VIDEO refers to the Campaign Manager - // representation of child asset videos from Studio, and is applicable - // to VPAID_LINEAR_VIDEO creatives. These cannot be added or removed - // within Campaign Manager. For VPAID_LINEAR_VIDEO creatives, - // PARENT_VIDEO, TRANSCODED_VIDEO and ALTERNATE_VIDEO assets that are - // marked active serve as backup in case the VPAID creative cannot be - // served. Only PARENT_VIDEO assets can be added or removed for an - // INSTREAM_VIDEO or VPAID_LINEAR_VIDEO creative. PARENT_AUDIO refers to - // audios uploaded by the user in Campaign Manager and is applicable to - // INSTREAM_AUDIO creatives. TRANSCODED_AUDIO refers to audios - // transcoded by Campaign Manager from PARENT_AUDIO assets and is - // applicable to INSTREAM_AUDIO creatives. - // - // Possible values: - // "PRIMARY" - // "BACKUP_IMAGE" - // "ADDITIONAL_IMAGE" - // "ADDITIONAL_FLASH" - // "PARENT_VIDEO" - // "TRANSCODED_VIDEO" - // "OTHER" - // "ALTERNATE_VIDEO" - // "PARENT_AUDIO" - // "TRANSCODED_AUDIO" - Role string `json:"role,omitempty"` - - // Size: Size associated with this creative asset. This is a required - // field when applicable; however for IMAGE and FLASH_INPAGE, creatives - // if left blank, this field will be automatically set using the actual - // size of the associated image asset. Applicable to the following - // creative types: DISPLAY_IMAGE_GALLERY, FLASH_INPAGE, HTML5_BANNER, - // IMAGE, and all RICH_MEDIA. Applicable to DISPLAY when the primary - // asset type is not HTML_IMAGE. - Size *Size `json:"size,omitempty"` - - // SslCompliant: Whether the asset is SSL-compliant. This is a read-only - // field. Applicable to all but the following creative types: all - // REDIRECT and TRACKING_TEXT. - SslCompliant bool `json:"sslCompliant,omitempty"` - - // StartTimeType: Initial wait time type before making the asset - // visible. Applicable to the following creative types: all RICH_MEDIA. - // - // Possible values: - // "ASSET_START_TIME_TYPE_NONE" - // "ASSET_START_TIME_TYPE_CUSTOM" - StartTimeType string `json:"startTimeType,omitempty"` - - // StreamingServingUrl: Streaming URL for video asset. This is a - // read-only field. Applicable to the following creative types: - // INSTREAM_VIDEO and all VPAID. - StreamingServingUrl string `json:"streamingServingUrl,omitempty"` - - // Transparency: Whether the asset is transparent. Applicable to the - // following creative types: all RICH_MEDIA. Additionally, only - // applicable to HTML5 assets. - Transparency bool `json:"transparency,omitempty"` - - // VerticallyLocked: Whether the asset is vertically locked. This is a - // read-only field. Applicable to the following creative types: all - // RICH_MEDIA. - VerticallyLocked bool `json:"verticallyLocked,omitempty"` - - // WindowMode: Window mode options for flash assets. Applicable to the - // following creative types: FLASH_INPAGE, RICH_MEDIA_DISPLAY_EXPANDING, - // RICH_MEDIA_IM_EXPAND, RICH_MEDIA_DISPLAY_BANNER, and - // RICH_MEDIA_INPAGE_FLOATING. - // - // Possible values: - // "OPAQUE" - // "WINDOW" - // "TRANSPARENT" - WindowMode string `json:"windowMode,omitempty"` - - // ZIndex: zIndex value of an asset. Applicable to the following - // creative types: all RICH_MEDIA.Additionally, only applicable to - // assets whose displayType is NOT one of the following types: - // ASSET_DISPLAY_TYPE_INPAGE or ASSET_DISPLAY_TYPE_OVERLAY. Acceptable - // values are -999999999 to 999999999, inclusive. - ZIndex int64 `json:"zIndex,omitempty"` - - // ZipFilename: File name of zip file. This is a read-only field. - // Applicable to the following creative types: HTML5_BANNER. - ZipFilename string `json:"zipFilename,omitempty"` - - // ZipFilesize: Size of zip file. This is a read-only field. Applicable - // to the following creative types: HTML5_BANNER. - ZipFilesize string `json:"zipFilesize,omitempty"` - - // ForceSendFields is a list of field names (e.g. "ActionScript3") 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. "ActionScript3") 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 *CreativeAsset) MarshalJSON() ([]byte, error) { - type NoMethod CreativeAsset - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -func (s *CreativeAsset) UnmarshalJSON(data []byte) error { - type NoMethod CreativeAsset - var s1 struct { - FrameRate gensupport.JSONFloat64 `json:"frameRate"` - MediaDuration gensupport.JSONFloat64 `json:"mediaDuration"` - PushdownDuration gensupport.JSONFloat64 `json:"pushdownDuration"` - *NoMethod - } - s1.NoMethod = (*NoMethod)(s) - if err := json.Unmarshal(data, &s1); err != nil { - return err - } - s.FrameRate = float64(s1.FrameRate) - s.MediaDuration = float64(s1.MediaDuration) - s.PushdownDuration = float64(s1.PushdownDuration) - return nil -} - -// CreativeAssetId: Creative Asset ID. -type CreativeAssetId struct { - // Name: Name of the creative asset. This is a required field while - // inserting an asset. After insertion, this assetIdentifier is used to - // identify the uploaded asset. Characters in the name must be - // alphanumeric or one of the following: ".-_ ". Spaces are allowed. - Name string `json:"name,omitempty"` - - // Type: Type of asset to upload. This is a required field. FLASH and - // IMAGE are no longer supported for new uploads. All image assets - // should use HTML_IMAGE. - // - // Possible values: - // "IMAGE" - // "FLASH" - // "VIDEO" - // "HTML" - // "HTML_IMAGE" - // "AUDIO" - Type string `json:"type,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Name") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Name") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. - NullFields []string `json:"-"` -} - -func (s *CreativeAssetId) MarshalJSON() ([]byte, error) { - type NoMethod CreativeAssetId - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// CreativeAssetMetadata: CreativeAssets contains properties of a -// creative asset file which will be uploaded or has already been -// uploaded. Refer to the creative sample code for how to upload assets -// and insert a creative. -type CreativeAssetMetadata struct { - // AssetIdentifier: ID of the creative asset. This is a required field. - AssetIdentifier *CreativeAssetId `json:"assetIdentifier,omitempty"` - - // ClickTags: List of detected click tags for assets. This is a - // read-only, auto-generated field. This field is empty for a rich media - // asset. - ClickTags []*ClickTag `json:"clickTags,omitempty"` - - // CounterCustomEvents: List of counter events configured for the asset. - // This is a read-only, auto-generated field and only applicable to a - // rich media asset. - CounterCustomEvents []*CreativeCustomEvent `json:"counterCustomEvents,omitempty"` - - // DetectedFeatures: List of feature dependencies for the creative asset - // that are detected by Campaign Manager. Feature dependencies are - // features that a browser must be able to support in order to render - // your HTML5 creative correctly. This is a read-only, auto-generated - // field. - // - // Possible values: - // "CSS_FONT_FACE" - // "CSS_BACKGROUND_SIZE" - // "CSS_BORDER_IMAGE" - // "CSS_BORDER_RADIUS" - // "CSS_BOX_SHADOW" - // "CSS_FLEX_BOX" - // "CSS_HSLA" - // "CSS_MULTIPLE_BGS" - // "CSS_OPACITY" - // "CSS_RGBA" - // "CSS_TEXT_SHADOW" - // "CSS_ANIMATIONS" - // "CSS_COLUMNS" - // "CSS_GENERATED_CONTENT" - // "CSS_GRADIENTS" - // "CSS_REFLECTIONS" - // "CSS_TRANSFORMS" - // "CSS_TRANSFORMS3D" - // "CSS_TRANSITIONS" - // "APPLICATION_CACHE" - // "CANVAS" - // "CANVAS_TEXT" - // "DRAG_AND_DROP" - // "HASH_CHANGE" - // "HISTORY" - // "AUDIO" - // "VIDEO" - // "INDEXED_DB" - // "INPUT_ATTR_AUTOCOMPLETE" - // "INPUT_ATTR_AUTOFOCUS" - // "INPUT_ATTR_LIST" - // "INPUT_ATTR_PLACEHOLDER" - // "INPUT_ATTR_MAX" - // "INPUT_ATTR_MIN" - // "INPUT_ATTR_MULTIPLE" - // "INPUT_ATTR_PATTERN" - // "INPUT_ATTR_REQUIRED" - // "INPUT_ATTR_STEP" - // "INPUT_TYPE_SEARCH" - // "INPUT_TYPE_TEL" - // "INPUT_TYPE_URL" - // "INPUT_TYPE_EMAIL" - // "INPUT_TYPE_DATETIME" - // "INPUT_TYPE_DATE" - // "INPUT_TYPE_MONTH" - // "INPUT_TYPE_WEEK" - // "INPUT_TYPE_TIME" - // "INPUT_TYPE_DATETIME_LOCAL" - // "INPUT_TYPE_NUMBER" - // "INPUT_TYPE_RANGE" - // "INPUT_TYPE_COLOR" - // "LOCAL_STORAGE" - // "POST_MESSAGE" - // "SESSION_STORAGE" - // "WEB_SOCKETS" - // "WEB_SQL_DATABASE" - // "WEB_WORKERS" - // "GEO_LOCATION" - // "INLINE_SVG" - // "SMIL" - // "SVG_HREF" - // "SVG_CLIP_PATHS" - // "TOUCH" - // "WEBGL" - // "SVG_FILTERS" - // "SVG_FE_IMAGE" - DetectedFeatures []string `json:"detectedFeatures,omitempty"` - - // ExitCustomEvents: List of exit events configured for the asset. This - // is a read-only, auto-generated field and only applicable to a rich - // media asset. - ExitCustomEvents []*CreativeCustomEvent `json:"exitCustomEvents,omitempty"` - - // Id: Numeric ID of the asset. This is a read-only, auto-generated - // field. - Id int64 `json:"id,omitempty,string"` - - // IdDimensionValue: Dimension value for the numeric ID of the asset. - // This is a read-only, auto-generated field. - IdDimensionValue *DimensionValue `json:"idDimensionValue,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#creativeAssetMetadata". - Kind string `json:"kind,omitempty"` - - // RichMedia: True if the uploaded asset is a rich media asset. This is - // a read-only, auto-generated field. - RichMedia bool `json:"richMedia,omitempty"` - - // TimerCustomEvents: List of timer events configured for the asset. - // This is a read-only, auto-generated field and only applicable to a - // rich media asset. - TimerCustomEvents []*CreativeCustomEvent `json:"timerCustomEvents,omitempty"` - - // WarnedValidationRules: Rules validated during code generation that - // generated a warning. This is a read-only, auto-generated field. - // Possible values are: - "ADMOB_REFERENCED" - - // "ASSET_FORMAT_UNSUPPORTED_DCM" - "ASSET_INVALID" - - // "CLICK_TAG_HARD_CODED" - "CLICK_TAG_INVALID" - "CLICK_TAG_IN_GWD" - - // "CLICK_TAG_MISSING" - "CLICK_TAG_MORE_THAN_ONE" - - // "CLICK_TAG_NON_TOP_LEVEL" - "COMPONENT_UNSUPPORTED_DCM" - - // "ENABLER_UNSUPPORTED_METHOD_DCM" - "EXTERNAL_FILE_REFERENCED" - - // "FILE_DETAIL_EMPTY" - "FILE_TYPE_INVALID" - "GWD_PROPERTIES_INVALID" - // - "HTML5_FEATURE_UNSUPPORTED" - "LINKED_FILE_NOT_FOUND" - - // "MAX_FLASH_VERSION_11" - "MRAID_REFERENCED" - "NOT_SSL_COMPLIANT" - - // "ORPHANED_ASSET" - "PRIMARY_HTML_MISSING" - "SVG_INVALID" - - // "ZIP_INVALID" - // - // Possible values: - // "CLICK_TAG_NON_TOP_LEVEL" - // "CLICK_TAG_MISSING" - // "CLICK_TAG_MORE_THAN_ONE" - // "CLICK_TAG_INVALID" - // "ORPHANED_ASSET" - // "PRIMARY_HTML_MISSING" - // "EXTERNAL_FILE_REFERENCED" - // "MRAID_REFERENCED" - // "ADMOB_REFERENCED" - // "FILE_TYPE_INVALID" - // "ZIP_INVALID" - // "LINKED_FILE_NOT_FOUND" - // "MAX_FLASH_VERSION_11" - // "NOT_SSL_COMPLIANT" - // "FILE_DETAIL_EMPTY" - // "ASSET_INVALID" - // "GWD_PROPERTIES_INVALID" - // "ENABLER_UNSUPPORTED_METHOD_DCM" - // "ASSET_FORMAT_UNSUPPORTED_DCM" - // "COMPONENT_UNSUPPORTED_DCM" - // "HTML5_FEATURE_UNSUPPORTED" - // "CLICK_TAG_IN_GWD" - // "CLICK_TAG_HARD_CODED" - // "SVG_INVALID" - // "CLICK_TAG_IN_RICH_MEDIA" - // "MISSING_ENABLER_REFERENCE" - WarnedValidationRules []string `json:"warnedValidationRules,omitempty"` - - // ServerResponse contains the HTTP response code and headers from the - // server. - googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "AssetIdentifier") 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. "AssetIdentifier") 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 *CreativeAssetMetadata) MarshalJSON() ([]byte, error) { - type NoMethod CreativeAssetMetadata - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// CreativeAssetSelection: Encapsulates the list of rules for asset -// selection and a default asset in case none of the rules match. -// Applicable to INSTREAM_VIDEO creatives. -type CreativeAssetSelection struct { - // DefaultAssetId: A creativeAssets[].id. This should refer to one of - // the parent assets in this creative, and will be served if none of the - // rules match. This is a required field. - DefaultAssetId int64 `json:"defaultAssetId,omitempty,string"` - - // Rules: Rules determine which asset will be served to a viewer. Rules - // will be evaluated in the order in which they are stored in this list. - // This list must contain at least one rule. Applicable to - // INSTREAM_VIDEO creatives. - Rules []*Rule `json:"rules,omitempty"` - - // ForceSendFields is a list of field names (e.g. "DefaultAssetId") 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. "DefaultAssetId") 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 *CreativeAssetSelection) MarshalJSON() ([]byte, error) { - type NoMethod CreativeAssetSelection - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// CreativeAssignment: Creative Assignment. -type CreativeAssignment struct { - // Active: Whether this creative assignment is active. When true, the - // creative will be included in the ad's rotation. - Active bool `json:"active,omitempty"` - - // ApplyEventTags: Whether applicable event tags should fire when this - // creative assignment is rendered. If this value is unset when the ad - // is inserted or updated, it will default to true for all creative - // types EXCEPT for INTERNAL_REDIRECT, INTERSTITIAL_INTERNAL_REDIRECT, - // and INSTREAM_VIDEO. - ApplyEventTags bool `json:"applyEventTags,omitempty"` - - // ClickThroughUrl: Click-through URL of the creative assignment. - ClickThroughUrl *ClickThroughUrl `json:"clickThroughUrl,omitempty"` - - // CompanionCreativeOverrides: Companion creative overrides for this - // creative assignment. Applicable to video ads. - CompanionCreativeOverrides []*CompanionClickThroughOverride `json:"companionCreativeOverrides,omitempty"` - - // CreativeGroupAssignments: Creative group assignments for this - // creative assignment. Only one assignment per creative group number is - // allowed for a maximum of two assignments. - CreativeGroupAssignments []*CreativeGroupAssignment `json:"creativeGroupAssignments,omitempty"` - - // CreativeId: ID of the creative to be assigned. This is a required - // field. - CreativeId int64 `json:"creativeId,omitempty,string"` - - // CreativeIdDimensionValue: Dimension value for the ID of the creative. - // This is a read-only, auto-generated field. - CreativeIdDimensionValue *DimensionValue `json:"creativeIdDimensionValue,omitempty"` - - EndTime string `json:"endTime,omitempty"` - - // RichMediaExitOverrides: Rich media exit overrides for this creative - // assignment. Applicable when the creative type is any of the - // following: - DISPLAY - RICH_MEDIA_INPAGE - RICH_MEDIA_INPAGE_FLOATING - // - RICH_MEDIA_IM_EXPAND - RICH_MEDIA_EXPANDING - - // RICH_MEDIA_INTERSTITIAL_FLOAT - RICH_MEDIA_MOBILE_IN_APP - - // RICH_MEDIA_MULTI_FLOATING - RICH_MEDIA_PEEL_DOWN - VPAID_LINEAR - - // VPAID_NON_LINEAR - RichMediaExitOverrides []*RichMediaExitOverride `json:"richMediaExitOverrides,omitempty"` - - // Sequence: Sequence number of the creative assignment, applicable when - // the rotation type is CREATIVE_ROTATION_TYPE_SEQUENTIAL. Acceptable - // values are 1 to 65535, inclusive. - Sequence int64 `json:"sequence,omitempty"` - - // SslCompliant: Whether the creative to be assigned is SSL-compliant. - // This is a read-only field that is auto-generated when the ad is - // inserted or updated. - SslCompliant bool `json:"sslCompliant,omitempty"` - - StartTime string `json:"startTime,omitempty"` - - // Weight: Weight of the creative assignment, applicable when the - // rotation type is CREATIVE_ROTATION_TYPE_RANDOM. Value must be greater - // than or equal to 1. - Weight int64 `json:"weight,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Active") 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. "Active") 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 *CreativeAssignment) MarshalJSON() ([]byte, error) { - type NoMethod CreativeAssignment - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// CreativeClickThroughUrl: Click-through URL -type CreativeClickThroughUrl struct { - // ComputedClickThroughUrl: Read-only convenience field representing the - // actual URL that will be used for this click-through. The URL is - // computed as follows: - If landingPageId is specified then that - // landing page's URL is assigned to this field. - Otherwise, the - // customClickThroughUrl is assigned to this field. - ComputedClickThroughUrl string `json:"computedClickThroughUrl,omitempty"` - - // CustomClickThroughUrl: Custom click-through URL. Applicable if the - // landingPageId field is left unset. - CustomClickThroughUrl string `json:"customClickThroughUrl,omitempty"` - - // LandingPageId: ID of the landing page for the click-through URL. - LandingPageId int64 `json:"landingPageId,omitempty,string"` - - // ForceSendFields is a list of field names (e.g. - // "ComputedClickThroughUrl") 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. "ComputedClickThroughUrl") - // 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 *CreativeClickThroughUrl) MarshalJSON() ([]byte, error) { - type NoMethod CreativeClickThroughUrl - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// CreativeCustomEvent: Creative Custom Event. -type CreativeCustomEvent struct { - // AdvertiserCustomEventId: Unique ID of this event used by Reporting - // and Data Transfer. This is a read-only field. - AdvertiserCustomEventId int64 `json:"advertiserCustomEventId,omitempty,string"` - - // AdvertiserCustomEventName: User-entered name for the event. - AdvertiserCustomEventName string `json:"advertiserCustomEventName,omitempty"` - - // AdvertiserCustomEventType: Type of the event. This is a read-only - // field. - // - // Possible values: - // "ADVERTISER_EVENT_TIMER" - // "ADVERTISER_EVENT_EXIT" - // "ADVERTISER_EVENT_COUNTER" - AdvertiserCustomEventType string `json:"advertiserCustomEventType,omitempty"` - - // ArtworkLabel: Artwork label column, used to link events in Campaign - // Manager back to events in Studio. This is a required field and should - // not be modified after insertion. - ArtworkLabel string `json:"artworkLabel,omitempty"` - - // ArtworkType: Artwork type used by the creative.This is a read-only - // field. - // - // Possible values: - // "ARTWORK_TYPE_FLASH" - // "ARTWORK_TYPE_HTML5" - // "ARTWORK_TYPE_MIXED" - // "ARTWORK_TYPE_IMAGE" - ArtworkType string `json:"artworkType,omitempty"` - - // ExitClickThroughUrl: Exit click-through URL for the event. This field - // is used only for exit events. - ExitClickThroughUrl *CreativeClickThroughUrl `json:"exitClickThroughUrl,omitempty"` - - // Id: ID of this event. This is a required field and should not be - // modified after insertion. - Id int64 `json:"id,omitempty,string"` - - // PopupWindowProperties: Properties for rich media popup windows. This - // field is used only for exit events. - PopupWindowProperties *PopupWindowProperties `json:"popupWindowProperties,omitempty"` - - // TargetType: Target type used by the event. - // - // Possible values: - // "TARGET_BLANK" - // "TARGET_TOP" - // "TARGET_SELF" - // "TARGET_PARENT" - // "TARGET_POPUP" - TargetType string `json:"targetType,omitempty"` - - // VideoReportingId: Video reporting ID, used to differentiate multiple - // videos in a single creative. This is a read-only field. - VideoReportingId string `json:"videoReportingId,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "AdvertiserCustomEventId") 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. "AdvertiserCustomEventId") - // 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 *CreativeCustomEvent) MarshalJSON() ([]byte, error) { - type NoMethod CreativeCustomEvent - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// CreativeField: Contains properties of a creative field. -type CreativeField struct { - // AccountId: Account ID of this creative field. This is a read-only - // field that can be left blank. - AccountId int64 `json:"accountId,omitempty,string"` - - // AdvertiserId: Advertiser ID of this creative field. This is a - // required field on insertion. - AdvertiserId int64 `json:"advertiserId,omitempty,string"` - - // AdvertiserIdDimensionValue: Dimension value for the ID of the - // advertiser. This is a read-only, auto-generated field. - AdvertiserIdDimensionValue *DimensionValue `json:"advertiserIdDimensionValue,omitempty"` - - // Id: ID of this creative field. This is a read-only, auto-generated - // field. - Id int64 `json:"id,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#creativeField". - Kind string `json:"kind,omitempty"` - - // Name: Name of this creative field. This is a required field and must - // be less than 256 characters long and unique among creative fields of - // the same advertiser. - Name string `json:"name,omitempty"` - - // SubaccountId: Subaccount ID of this creative field. This is a - // read-only field that can be left blank. - SubaccountId int64 `json:"subaccountId,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. "AccountId") 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. "AccountId") 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 *CreativeField) MarshalJSON() ([]byte, error) { - type NoMethod CreativeField - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// CreativeFieldAssignment: Creative Field Assignment. -type CreativeFieldAssignment struct { - // CreativeFieldId: ID of the creative field. - CreativeFieldId int64 `json:"creativeFieldId,omitempty,string"` - - // CreativeFieldValueId: ID of the creative field value. - CreativeFieldValueId int64 `json:"creativeFieldValueId,omitempty,string"` - - // ForceSendFields is a list of field names (e.g. "CreativeFieldId") 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. "CreativeFieldId") 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 *CreativeFieldAssignment) MarshalJSON() ([]byte, error) { - type NoMethod CreativeFieldAssignment - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// CreativeFieldValue: Contains properties of a creative field value. -type CreativeFieldValue struct { - // Id: ID of this creative field value. This is a read-only, - // auto-generated field. - Id int64 `json:"id,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#creativeFieldValue". - Kind string `json:"kind,omitempty"` - - // Value: Value of this creative field value. It needs to be less than - // 256 characters in length and unique per creative field. - Value string `json:"value,omitempty"` - - // ServerResponse contains the HTTP response code and headers from the - // server. - googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Id") 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. "Id") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // 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 *CreativeFieldValue) MarshalJSON() ([]byte, error) { - type NoMethod CreativeFieldValue - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// CreativeFieldValuesListResponse: Creative Field Value List Response -type CreativeFieldValuesListResponse struct { - // CreativeFieldValues: Creative field value collection. - CreativeFieldValues []*CreativeFieldValue `json:"creativeFieldValues,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#creativeFieldValuesListResponse". - Kind string `json:"kind,omitempty"` - - // NextPageToken: Pagination token to be used for the next list - // operation. - 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. "CreativeFieldValues") - // 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. "CreativeFieldValues") 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 *CreativeFieldValuesListResponse) MarshalJSON() ([]byte, error) { - type NoMethod CreativeFieldValuesListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// CreativeFieldsListResponse: Creative Field List Response -type CreativeFieldsListResponse struct { - // CreativeFields: Creative field collection. - CreativeFields []*CreativeField `json:"creativeFields,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#creativeFieldsListResponse". - Kind string `json:"kind,omitempty"` - - // NextPageToken: Pagination token to be used for the next list - // operation. - 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. "CreativeFields") 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. "CreativeFields") 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 *CreativeFieldsListResponse) MarshalJSON() ([]byte, error) { - type NoMethod CreativeFieldsListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// CreativeGroup: Contains properties of a creative group. -type CreativeGroup struct { - // AccountId: Account ID of this creative group. This is a read-only - // field that can be left blank. - AccountId int64 `json:"accountId,omitempty,string"` - - // AdvertiserId: Advertiser ID of this creative group. This is a - // required field on insertion. - AdvertiserId int64 `json:"advertiserId,omitempty,string"` - - // AdvertiserIdDimensionValue: Dimension value for the ID of the - // advertiser. This is a read-only, auto-generated field. - AdvertiserIdDimensionValue *DimensionValue `json:"advertiserIdDimensionValue,omitempty"` - - // GroupNumber: Subgroup of the creative group. Assign your creative - // groups to a subgroup in order to filter or manage them more easily. - // This field is required on insertion and is read-only after insertion. - // Acceptable values are 1 to 2, inclusive. - GroupNumber int64 `json:"groupNumber,omitempty"` - - // Id: ID of this creative group. This is a read-only, auto-generated - // field. - Id int64 `json:"id,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#creativeGroup". - Kind string `json:"kind,omitempty"` - - // Name: Name of this creative group. This is a required field and must - // be less than 256 characters long and unique among creative groups of - // the same advertiser. - Name string `json:"name,omitempty"` - - // SubaccountId: Subaccount ID of this creative group. This is a - // read-only field that can be left blank. - SubaccountId int64 `json:"subaccountId,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. "AccountId") 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. "AccountId") 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 *CreativeGroup) MarshalJSON() ([]byte, error) { - type NoMethod CreativeGroup - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// CreativeGroupAssignment: Creative Group Assignment. -type CreativeGroupAssignment struct { - // CreativeGroupId: ID of the creative group to be assigned. - CreativeGroupId int64 `json:"creativeGroupId,omitempty,string"` - - // CreativeGroupNumber: Creative group number of the creative group - // assignment. - // - // Possible values: - // "CREATIVE_GROUP_ONE" - // "CREATIVE_GROUP_TWO" - CreativeGroupNumber string `json:"creativeGroupNumber,omitempty"` - - // ForceSendFields is a list of field names (e.g. "CreativeGroupId") 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. "CreativeGroupId") 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 *CreativeGroupAssignment) MarshalJSON() ([]byte, error) { - type NoMethod CreativeGroupAssignment - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// CreativeGroupsListResponse: Creative Group List Response -type CreativeGroupsListResponse struct { - // CreativeGroups: Creative group collection. - CreativeGroups []*CreativeGroup `json:"creativeGroups,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#creativeGroupsListResponse". - Kind string `json:"kind,omitempty"` - - // NextPageToken: Pagination token to be used for the next list - // operation. - 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. "CreativeGroups") 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. "CreativeGroups") 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 *CreativeGroupsListResponse) MarshalJSON() ([]byte, error) { - type NoMethod CreativeGroupsListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// CreativeOptimizationConfiguration: Creative optimization settings. -type CreativeOptimizationConfiguration struct { - // Id: ID of this creative optimization config. This field is - // auto-generated when the campaign is inserted or updated. It can be - // null for existing campaigns. - Id int64 `json:"id,omitempty,string"` - - // Name: Name of this creative optimization config. This is a required - // field and must be less than 129 characters long. - Name string `json:"name,omitempty"` - - // OptimizationActivitys: List of optimization activities associated - // with this configuration. - OptimizationActivitys []*OptimizationActivity `json:"optimizationActivitys,omitempty"` - - // OptimizationModel: Optimization model for this configuration. - // - // Possible values: - // "CLICK" - // "POST_CLICK" - // "POST_IMPRESSION" - // "POST_CLICK_AND_IMPRESSION" - // "VIDEO_COMPLETION" - OptimizationModel string `json:"optimizationModel,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Id") 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. "Id") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // 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 *CreativeOptimizationConfiguration) MarshalJSON() ([]byte, error) { - type NoMethod CreativeOptimizationConfiguration - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// CreativeRotation: Creative Rotation. -type CreativeRotation struct { - // CreativeAssignments: Creative assignments in this creative rotation. - CreativeAssignments []*CreativeAssignment `json:"creativeAssignments,omitempty"` - - // CreativeOptimizationConfigurationId: Creative optimization - // configuration that is used by this ad. It should refer to one of the - // existing optimization configurations in the ad's campaign. If it is - // unset or set to 0, then the campaign's default optimization - // configuration will be used for this ad. - CreativeOptimizationConfigurationId int64 `json:"creativeOptimizationConfigurationId,omitempty,string"` - - // Type: Type of creative rotation. Can be used to specify whether to - // use sequential or random rotation. - // - // Possible values: - // "CREATIVE_ROTATION_TYPE_SEQUENTIAL" - // "CREATIVE_ROTATION_TYPE_RANDOM" - Type string `json:"type,omitempty"` - - // WeightCalculationStrategy: Strategy for calculating weights. Used - // with CREATIVE_ROTATION_TYPE_RANDOM. - // - // Possible values: - // "WEIGHT_STRATEGY_EQUAL" - // "WEIGHT_STRATEGY_CUSTOM" - // "WEIGHT_STRATEGY_HIGHEST_CTR" - // "WEIGHT_STRATEGY_OPTIMIZED" - WeightCalculationStrategy string `json:"weightCalculationStrategy,omitempty"` - - // ForceSendFields is a list of field names (e.g. "CreativeAssignments") - // 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. "CreativeAssignments") 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 *CreativeRotation) MarshalJSON() ([]byte, error) { - type NoMethod CreativeRotation - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// CreativesListResponse: Creative List Response -type CreativesListResponse struct { - // Creatives: Creative collection. - Creatives []*Creative `json:"creatives,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#creativesListResponse". - Kind string `json:"kind,omitempty"` - - // NextPageToken: Pagination token to be used for the next list - // operation. - 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. "Creatives") 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. "Creatives") 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 *CreativesListResponse) MarshalJSON() ([]byte, error) { - type NoMethod CreativesListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// CrossDimensionReachReportCompatibleFields: Represents fields that are -// compatible to be selected for a report of type -// "CROSS_DIMENSION_REACH". -type CrossDimensionReachReportCompatibleFields struct { - // Breakdown: Dimensions which are compatible to be selected in the - // "breakdown" section of the report. - Breakdown []*Dimension `json:"breakdown,omitempty"` - - // DimensionFilters: Dimensions which are compatible to be selected in - // the "dimensionFilters" section of the report. - DimensionFilters []*Dimension `json:"dimensionFilters,omitempty"` - - // Kind: The kind of resource this is, in this case - // dfareporting#crossDimensionReachReportCompatibleFields. - Kind string `json:"kind,omitempty"` - - // Metrics: Metrics which are compatible to be selected in the - // "metricNames" section of the report. - Metrics []*Metric `json:"metrics,omitempty"` - - // OverlapMetrics: Metrics which are compatible to be selected in the - // "overlapMetricNames" section of the report. - OverlapMetrics []*Metric `json:"overlapMetrics,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Breakdown") 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. "Breakdown") 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 *CrossDimensionReachReportCompatibleFields) MarshalJSON() ([]byte, error) { - type NoMethod CrossDimensionReachReportCompatibleFields - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// CustomFloodlightVariable: A custom floodlight variable. This field -// may only be used when calling batchinsert; it is not supported by -// batchupdate. -type CustomFloodlightVariable struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#customFloodlightVariable". - Kind string `json:"kind,omitempty"` - - // Type: The type of custom floodlight variable to supply a value for. - // These map to the "u[1-20]=" in the tags. - // - // Possible values: - // "U1" - // "U2" - // "U3" - // "U4" - // "U5" - // "U6" - // "U7" - // "U8" - // "U9" - // "U10" - // "U11" - // "U12" - // "U13" - // "U14" - // "U15" - // "U16" - // "U17" - // "U18" - // "U19" - // "U20" - // "U21" - // "U22" - // "U23" - // "U24" - // "U25" - // "U26" - // "U27" - // "U28" - // "U29" - // "U30" - // "U31" - // "U32" - // "U33" - // "U34" - // "U35" - // "U36" - // "U37" - // "U38" - // "U39" - // "U40" - // "U41" - // "U42" - // "U43" - // "U44" - // "U45" - // "U46" - // "U47" - // "U48" - // "U49" - // "U50" - // "U51" - // "U52" - // "U53" - // "U54" - // "U55" - // "U56" - // "U57" - // "U58" - // "U59" - // "U60" - // "U61" - // "U62" - // "U63" - // "U64" - // "U65" - // "U66" - // "U67" - // "U68" - // "U69" - // "U70" - // "U71" - // "U72" - // "U73" - // "U74" - // "U75" - // "U76" - // "U77" - // "U78" - // "U79" - // "U80" - // "U81" - // "U82" - // "U83" - // "U84" - // "U85" - // "U86" - // "U87" - // "U88" - // "U89" - // "U90" - // "U91" - // "U92" - // "U93" - // "U94" - // "U95" - // "U96" - // "U97" - // "U98" - // "U99" - // "U100" - Type string `json:"type,omitempty"` - - // Value: The value of the custom floodlight variable. The length of - // string must not exceed 100 characters. - Value string `json:"value,omitempty"` - - // 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 *CustomFloodlightVariable) MarshalJSON() ([]byte, error) { - type NoMethod CustomFloodlightVariable - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// CustomRichMediaEvents: Represents a Custom Rich Media Events group. -type CustomRichMediaEvents struct { - // FilteredEventIds: List of custom rich media event IDs. Dimension - // values must be all of type dfa:richMediaEventTypeIdAndName. - FilteredEventIds []*DimensionValue `json:"filteredEventIds,omitempty"` - - // Kind: The kind of resource this is, in this case - // dfareporting#customRichMediaEvents. - Kind string `json:"kind,omitempty"` - - // ForceSendFields is a list of field names (e.g. "FilteredEventIds") 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. "FilteredEventIds") 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 *CustomRichMediaEvents) MarshalJSON() ([]byte, error) { - type NoMethod CustomRichMediaEvents - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// CustomViewabilityMetric: Custom Viewability Metric -type CustomViewabilityMetric struct { - // Configuration: Configuration of the custom viewability metric. - Configuration *CustomViewabilityMetricConfiguration `json:"configuration,omitempty"` - - // Id: ID of the custom viewability metric. - Id int64 `json:"id,omitempty,string"` - - // Name: Name of the custom viewability metric. - Name string `json:"name,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Configuration") 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. "Configuration") 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 *CustomViewabilityMetric) MarshalJSON() ([]byte, error) { - type NoMethod CustomViewabilityMetric - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// CustomViewabilityMetricConfiguration: The attributes, like playtime -// and percent onscreen, that define the Custom Viewability Metric. -type CustomViewabilityMetricConfiguration struct { - // Audible: Whether the video must be audible to count an impression. - Audible bool `json:"audible,omitempty"` - - // TimeMillis: The time in milliseconds the video must play for the - // Custom Viewability Metric to count an impression. If both this and - // timePercent are specified, the earlier of the two will be used. - TimeMillis int64 `json:"timeMillis,omitempty"` - - // TimePercent: The percentage of video that must play for the Custom - // Viewability Metric to count an impression. If both this and - // timeMillis are specified, the earlier of the two will be used. - TimePercent int64 `json:"timePercent,omitempty"` - - // ViewabilityPercent: The percentage of video that must be on screen - // for the Custom Viewability Metric to count an impression. - ViewabilityPercent int64 `json:"viewabilityPercent,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Audible") 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. "Audible") 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 *CustomViewabilityMetricConfiguration) MarshalJSON() ([]byte, error) { - type NoMethod CustomViewabilityMetricConfiguration - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// DateRange: Represents a date range. -type DateRange struct { - EndDate string `json:"endDate,omitempty"` - - // Kind: The kind of resource this is, in this case - // dfareporting#dateRange. - Kind string `json:"kind,omitempty"` - - // RelativeDateRange: The date range relative to the date of when the - // report is run. - // - // Possible values: - // "TODAY" - // "YESTERDAY" - // "WEEK_TO_DATE" - // "MONTH_TO_DATE" - // "QUARTER_TO_DATE" - // "YEAR_TO_DATE" - // "PREVIOUS_WEEK" - // "PREVIOUS_MONTH" - // "PREVIOUS_QUARTER" - // "PREVIOUS_YEAR" - // "LAST_7_DAYS" - // "LAST_30_DAYS" - // "LAST_90_DAYS" - // "LAST_365_DAYS" - // "LAST_24_MONTHS" - // "LAST_14_DAYS" - // "LAST_60_DAYS" - RelativeDateRange string `json:"relativeDateRange,omitempty"` - - StartDate string `json:"startDate,omitempty"` - - // ForceSendFields is a list of field names (e.g. "EndDate") 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. "EndDate") 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 *DateRange) MarshalJSON() ([]byte, error) { - type NoMethod DateRange - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// DayPartTargeting: Day Part Targeting. -type DayPartTargeting struct { - // DaysOfWeek: Days of the week when the ad will serve. Acceptable - // values are: - "SUNDAY" - "MONDAY" - "TUESDAY" - "WEDNESDAY" - - // "THURSDAY" - "FRIDAY" - "SATURDAY" - // - // Possible values: - // "MONDAY" - // "TUESDAY" - // "WEDNESDAY" - // "THURSDAY" - // "FRIDAY" - // "SATURDAY" - // "SUNDAY" - DaysOfWeek []string `json:"daysOfWeek,omitempty"` - - // HoursOfDay: Hours of the day when the ad will serve, where 0 is - // midnight to 1 AM and 23 is 11 PM to midnight. Can be specified with - // days of week, in which case the ad would serve during these hours on - // the specified days. For example if Monday, Wednesday, Friday are the - // days of week specified and 9-10am, 3-5pm (hours 9, 15, and 16) is - // specified, the ad would serve Monday, Wednesdays, and Fridays at - // 9-10am and 3-5pm. Acceptable values are 0 to 23, inclusive. - HoursOfDay []int64 `json:"hoursOfDay,omitempty"` - - // UserLocalTime: Whether or not to use the user's local time. If false, - // the America/New York time zone applies. - UserLocalTime bool `json:"userLocalTime,omitempty"` - - // ForceSendFields is a list of field names (e.g. "DaysOfWeek") 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. "DaysOfWeek") 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 *DayPartTargeting) MarshalJSON() ([]byte, error) { - type NoMethod DayPartTargeting - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// DeepLink: Contains information about a landing page deep link. -type DeepLink struct { - // AppUrl: The URL of the mobile app being linked to. - AppUrl string `json:"appUrl,omitempty"` - - // FallbackUrl: The fallback URL. This URL will be served to users who - // do not have the mobile app installed. - FallbackUrl string `json:"fallbackUrl,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#deepLink". - Kind string `json:"kind,omitempty"` - - // MobileApp: The mobile app targeted by this deep link. - MobileApp *MobileApp `json:"mobileApp,omitempty"` - - // RemarketingListIds: Ads served to users on these remarketing lists - // will use this deep link. Applicable when mobileApp.directory is - // APPLE_APP_STORE. - RemarketingListIds googleapi.Int64s `json:"remarketingListIds,omitempty"` - - // ForceSendFields is a list of field names (e.g. "AppUrl") 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. "AppUrl") 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 *DeepLink) MarshalJSON() ([]byte, error) { - type NoMethod DeepLink - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// DefaultClickThroughEventTagProperties: Properties of inheriting and -// overriding the default click-through event tag. A campaign may -// override the event tag defined at the advertiser level, and an ad may -// also override the campaign's setting further. -type DefaultClickThroughEventTagProperties struct { - // DefaultClickThroughEventTagId: ID of the click-through event tag to - // apply to all ads in this entity's scope. - DefaultClickThroughEventTagId int64 `json:"defaultClickThroughEventTagId,omitempty,string"` - - // OverrideInheritedEventTag: Whether this entity should override the - // inherited default click-through event tag with its own defined value. - OverrideInheritedEventTag bool `json:"overrideInheritedEventTag,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "DefaultClickThroughEventTagId") 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. - // "DefaultClickThroughEventTagId") 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 *DefaultClickThroughEventTagProperties) MarshalJSON() ([]byte, error) { - type NoMethod DefaultClickThroughEventTagProperties - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// DeliverySchedule: Delivery Schedule. -type DeliverySchedule struct { - // FrequencyCap: Limit on the number of times an individual user can be - // served the ad within a specified period of time. - FrequencyCap *FrequencyCap `json:"frequencyCap,omitempty"` - - // HardCutoff: Whether or not hard cutoff is enabled. If true, the ad - // will not serve after the end date and time. Otherwise the ad will - // continue to be served until it has reached its delivery goals. - HardCutoff bool `json:"hardCutoff,omitempty"` - - // ImpressionRatio: Impression ratio for this ad. This ratio determines - // how often each ad is served relative to the others. For example, if - // ad A has an impression ratio of 1 and ad B has an impression ratio of - // 3, then Campaign Manager will serve ad B three times as often as ad - // A. Acceptable values are 1 to 10, inclusive. - ImpressionRatio int64 `json:"impressionRatio,omitempty,string"` - - // Priority: Serving priority of an ad, with respect to other ads. The - // lower the priority number, the greater the priority with which it is - // served. - // - // Possible values: - // "AD_PRIORITY_01" - // "AD_PRIORITY_02" - // "AD_PRIORITY_03" - // "AD_PRIORITY_04" - // "AD_PRIORITY_05" - // "AD_PRIORITY_06" - // "AD_PRIORITY_07" - // "AD_PRIORITY_08" - // "AD_PRIORITY_09" - // "AD_PRIORITY_10" - // "AD_PRIORITY_11" - // "AD_PRIORITY_12" - // "AD_PRIORITY_13" - // "AD_PRIORITY_14" - // "AD_PRIORITY_15" - // "AD_PRIORITY_16" - Priority string `json:"priority,omitempty"` - - // ForceSendFields is a list of field names (e.g. "FrequencyCap") 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. "FrequencyCap") 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 *DeliverySchedule) MarshalJSON() ([]byte, error) { - type NoMethod DeliverySchedule - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// DfpSettings: Google Ad Manager Settings -type DfpSettings struct { - // DfpNetworkCode: Ad Manager network code for this directory site. - DfpNetworkCode string `json:"dfpNetworkCode,omitempty"` - - // DfpNetworkName: Ad Manager network name for this directory site. - DfpNetworkName string `json:"dfpNetworkName,omitempty"` - - // ProgrammaticPlacementAccepted: Whether this directory site accepts - // programmatic placements. - ProgrammaticPlacementAccepted bool `json:"programmaticPlacementAccepted,omitempty"` - - // PubPaidPlacementAccepted: Whether this directory site accepts - // publisher-paid tags. - PubPaidPlacementAccepted bool `json:"pubPaidPlacementAccepted,omitempty"` - - // PublisherPortalOnly: Whether this directory site is available only - // via Publisher Portal. - PublisherPortalOnly bool `json:"publisherPortalOnly,omitempty"` - - // ForceSendFields is a list of field names (e.g. "DfpNetworkCode") 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. "DfpNetworkCode") 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 *DfpSettings) MarshalJSON() ([]byte, error) { - type NoMethod DfpSettings - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// Dimension: Represents a dimension. -type Dimension struct { - // Kind: The kind of resource this is, in this case - // dfareporting#dimension. - Kind string `json:"kind,omitempty"` - - // Name: The dimension name, e.g. dfa:advertiser - Name string `json:"name,omitempty"` - - // 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 *Dimension) MarshalJSON() ([]byte, error) { - type NoMethod Dimension - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// DimensionFilter: Represents a dimension filter. -type DimensionFilter struct { - // DimensionName: The name of the dimension to filter. - DimensionName string `json:"dimensionName,omitempty"` - - // Kind: The kind of resource this is, in this case - // dfareporting#dimensionFilter. - Kind string `json:"kind,omitempty"` - - // Value: The value of the dimension to filter. - Value string `json:"value,omitempty"` - - // ForceSendFields is a list of field names (e.g. "DimensionName") 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. "DimensionName") 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 *DimensionFilter) MarshalJSON() ([]byte, error) { - type NoMethod DimensionFilter - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// DimensionValue: Represents a DimensionValue resource. -type DimensionValue struct { - // DimensionName: The name of the dimension. - DimensionName string `json:"dimensionName,omitempty"` - - // Etag: The eTag of this response for caching purposes. - Etag string `json:"etag,omitempty"` - - // Id: The ID associated with the value if available. - Id string `json:"id,omitempty"` - - // Kind: The kind of resource this is, in this case - // dfareporting#dimensionValue. - Kind string `json:"kind,omitempty"` - - // MatchType: Determines how the 'value' field is matched when - // filtering. If not specified, defaults to EXACT. If set to - // WILDCARD_EXPRESSION, '*' is allowed as a placeholder for variable - // length character sequences, and it can be escaped with a backslash. - // Note, only paid search dimensions ('dfa:paidSearch*') allow a - // matchType other than EXACT. - // - // Possible values: - // "EXACT" - // "BEGINS_WITH" - // "CONTAINS" - // "WILDCARD_EXPRESSION" - MatchType string `json:"matchType,omitempty"` - - // Value: The value of the dimension. - Value string `json:"value,omitempty"` - - // ForceSendFields is a list of field names (e.g. "DimensionName") 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. "DimensionName") 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 *DimensionValue) MarshalJSON() ([]byte, error) { - type NoMethod DimensionValue - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// DimensionValueList: Represents the list of DimensionValue resources. -type DimensionValueList struct { - // Etag: The eTag of this response for caching purposes. - Etag string `json:"etag,omitempty"` - - // Items: The dimension values returned in this response. - Items []*DimensionValue `json:"items,omitempty"` - - // Kind: The kind of list this is, in this case - // dfareporting#dimensionValueList. - Kind string `json:"kind,omitempty"` - - // NextPageToken: Continuation token used to page through dimension - // values. To retrieve the next page of results, set the next request's - // "pageToken" to the value of this field. The page token is only valid - // for a limited amount of time and should not be persisted. - 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. "Etag") 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. "Etag") 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 *DimensionValueList) MarshalJSON() ([]byte, error) { - type NoMethod DimensionValueList - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// DimensionValueRequest: Represents a DimensionValuesRequest. -type DimensionValueRequest struct { - // DimensionName: The name of the dimension for which values should be - // requested. - DimensionName string `json:"dimensionName,omitempty"` - - EndDate string `json:"endDate,omitempty"` - - // Filters: The list of filters by which to filter values. The filters - // are ANDed. - Filters []*DimensionFilter `json:"filters,omitempty"` - - // Kind: The kind of request this is, in this case - // dfareporting#dimensionValueRequest . - Kind string `json:"kind,omitempty"` - - StartDate string `json:"startDate,omitempty"` - - // ForceSendFields is a list of field names (e.g. "DimensionName") 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. "DimensionName") 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 *DimensionValueRequest) MarshalJSON() ([]byte, error) { - type NoMethod DimensionValueRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// DirectorySite: DirectorySites contains properties of a website from -// the Site Directory. Sites need to be added to an account via the -// Sites resource before they can be assigned to a placement. -type DirectorySite struct { - // Id: ID of this directory site. This is a read-only, auto-generated - // field. - Id int64 `json:"id,omitempty,string"` - - // IdDimensionValue: Dimension value for the ID of this directory site. - // This is a read-only, auto-generated field. - IdDimensionValue *DimensionValue `json:"idDimensionValue,omitempty"` - - // InpageTagFormats: Tag types for regular placements. Acceptable values - // are: - "STANDARD" - "IFRAME_JAVASCRIPT_INPAGE" - - // "INTERNAL_REDIRECT_INPAGE" - "JAVASCRIPT_INPAGE" - // - // Possible values: - // "STANDARD" - // "IFRAME_JAVASCRIPT_INPAGE" - // "INTERNAL_REDIRECT_INPAGE" - // "JAVASCRIPT_INPAGE" - InpageTagFormats []string `json:"inpageTagFormats,omitempty"` - - // InterstitialTagFormats: Tag types for interstitial placements. - // Acceptable values are: - "IFRAME_JAVASCRIPT_INTERSTITIAL" - - // "INTERNAL_REDIRECT_INTERSTITIAL" - "JAVASCRIPT_INTERSTITIAL" - // - // Possible values: - // "IFRAME_JAVASCRIPT_INTERSTITIAL" - // "INTERNAL_REDIRECT_INTERSTITIAL" - // "JAVASCRIPT_INTERSTITIAL" - InterstitialTagFormats []string `json:"interstitialTagFormats,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#directorySite". - Kind string `json:"kind,omitempty"` - - // Name: Name of this directory site. - Name string `json:"name,omitempty"` - - // Settings: Directory site settings. - Settings *DirectorySiteSettings `json:"settings,omitempty"` - - // Url: URL of this directory site. - Url string `json:"url,omitempty"` - - // ServerResponse contains the HTTP response code and headers from the - // server. - googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Id") 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. "Id") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // 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 *DirectorySite) MarshalJSON() ([]byte, error) { - type NoMethod DirectorySite - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// DirectorySiteSettings: Directory Site Settings -type DirectorySiteSettings struct { - // ActiveViewOptOut: Whether this directory site has disabled active - // view creatives. - ActiveViewOptOut bool `json:"activeViewOptOut,omitempty"` - - // DfpSettings: Directory site Ad Manager settings. - DfpSettings *DfpSettings `json:"dfpSettings,omitempty"` - - // InstreamVideoPlacementAccepted: Whether this site accepts in-stream - // video ads. - InstreamVideoPlacementAccepted bool `json:"instreamVideoPlacementAccepted,omitempty"` - - // InterstitialPlacementAccepted: Whether this site accepts interstitial - // ads. - InterstitialPlacementAccepted bool `json:"interstitialPlacementAccepted,omitempty"` - - // ForceSendFields is a list of field names (e.g. "ActiveViewOptOut") 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. "ActiveViewOptOut") 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 *DirectorySiteSettings) MarshalJSON() ([]byte, error) { - type NoMethod DirectorySiteSettings - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// DirectorySitesListResponse: Directory Site List Response -type DirectorySitesListResponse struct { - // DirectorySites: Directory site collection. - DirectorySites []*DirectorySite `json:"directorySites,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#directorySitesListResponse". - Kind string `json:"kind,omitempty"` - - // NextPageToken: Pagination token to be used for the next list - // operation. - 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. "DirectorySites") 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. "DirectorySites") 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 *DirectorySitesListResponse) MarshalJSON() ([]byte, error) { - type NoMethod DirectorySitesListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// DisjunctiveMatchStatement: Represents a Disjunctive Match Statement -// resource, which is a conjunction (and) of disjunctive (or) boolean -// statements. -type DisjunctiveMatchStatement struct { - // EventFilters: The event filters contained within this disjunctive - // match statement. - EventFilters []*EventFilter `json:"eventFilters,omitempty"` - - // Kind: The kind of resource this is, in this case - // dfareporting#disjunctiveMatchStatement. - Kind string `json:"kind,omitempty"` - - // ForceSendFields is a list of field names (e.g. "EventFilters") 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. "EventFilters") 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 *DisjunctiveMatchStatement) MarshalJSON() ([]byte, error) { - type NoMethod DisjunctiveMatchStatement - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// DynamicTargetingKey: Contains properties of a dynamic targeting key. -// Dynamic targeting keys are unique, user-friendly labels, created at -// the advertiser level in DCM, that can be assigned to ads, creatives, -// and placements and used for targeting with Studio dynamic creatives. -// Use these labels instead of numeric Campaign Manager IDs (such as -// placement IDs) to save time and avoid errors in your dynamic feeds. -type DynamicTargetingKey struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#dynamicTargetingKey". - Kind string `json:"kind,omitempty"` - - // Name: Name of this dynamic targeting key. This is a required field. - // Must be less than 256 characters long and cannot contain commas. All - // characters are converted to lowercase. - Name string `json:"name,omitempty"` - - // ObjectId: ID of the object of this dynamic targeting key. This is a - // required field. - ObjectId int64 `json:"objectId,omitempty,string"` - - // ObjectType: Type of the object of this dynamic targeting key. This is - // a required field. - // - // Possible values: - // "OBJECT_ADVERTISER" - // "OBJECT_AD" - // "OBJECT_CREATIVE" - // "OBJECT_PLACEMENT" - ObjectType string `json:"objectType,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 *DynamicTargetingKey) MarshalJSON() ([]byte, error) { - type NoMethod DynamicTargetingKey - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// DynamicTargetingKeysListResponse: Dynamic Targeting Key List Response -type DynamicTargetingKeysListResponse struct { - // DynamicTargetingKeys: Dynamic targeting key collection. - DynamicTargetingKeys []*DynamicTargetingKey `json:"dynamicTargetingKeys,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#dynamicTargetingKeysListResponse". - 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. - // "DynamicTargetingKeys") 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. "DynamicTargetingKeys") 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 *DynamicTargetingKeysListResponse) MarshalJSON() ([]byte, error) { - type NoMethod DynamicTargetingKeysListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// EncryptionInfo: A description of how user IDs are encrypted. -type EncryptionInfo struct { - // EncryptionEntityId: The encryption entity ID. This should match the - // encryption configuration for ad serving or Data Transfer. - EncryptionEntityId int64 `json:"encryptionEntityId,omitempty,string"` - - // EncryptionEntityType: The encryption entity type. This should match - // the encryption configuration for ad serving or Data Transfer. - // - // Possible values: - // "ENCRYPTION_ENTITY_TYPE_UNKNOWN" - // "DCM_ACCOUNT" - // "DCM_ADVERTISER" - // "DBM_PARTNER" - // "DBM_ADVERTISER" - // "ADWORDS_CUSTOMER" - // "DFP_NETWORK_CODE" - EncryptionEntityType string `json:"encryptionEntityType,omitempty"` - - // EncryptionSource: Describes whether the encrypted cookie was received - // from ad serving (the %m macro) or from Data Transfer. - // - // Possible values: - // "ENCRYPTION_SCOPE_UNKNOWN" - // "AD_SERVING" - // "DATA_TRANSFER" - EncryptionSource string `json:"encryptionSource,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#encryptionInfo". - Kind string `json:"kind,omitempty"` - - // ForceSendFields is a list of field names (e.g. "EncryptionEntityId") - // 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. "EncryptionEntityId") 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 *EncryptionInfo) MarshalJSON() ([]byte, error) { - type NoMethod EncryptionInfo - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// EventFilter: Represents a DfaReporting event filter. -type EventFilter struct { - // DimensionFilter: The dimension filter contained within this - // EventFilter. - DimensionFilter *PathReportDimensionValue `json:"dimensionFilter,omitempty"` - - // Kind: The kind of resource this is, in this case - // dfareporting#eventFilter. - Kind string `json:"kind,omitempty"` - - // ForceSendFields is a list of field names (e.g. "DimensionFilter") 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. "DimensionFilter") 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 *EventFilter) MarshalJSON() ([]byte, error) { - type NoMethod EventFilter - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// EventTag: Contains properties of an event tag. -type EventTag struct { - // AccountId: Account ID of this event tag. This is a read-only field - // that can be left blank. - AccountId int64 `json:"accountId,omitempty,string"` - - // AdvertiserId: Advertiser ID of this event tag. This field or the - // campaignId field is required on insertion. - AdvertiserId int64 `json:"advertiserId,omitempty,string"` - - // AdvertiserIdDimensionValue: Dimension value for the ID of the - // advertiser. This is a read-only, auto-generated field. - AdvertiserIdDimensionValue *DimensionValue `json:"advertiserIdDimensionValue,omitempty"` - - // CampaignId: Campaign ID of this event tag. This field or the - // advertiserId field is required on insertion. - CampaignId int64 `json:"campaignId,omitempty,string"` - - // CampaignIdDimensionValue: Dimension value for the ID of the campaign. - // This is a read-only, auto-generated field. - CampaignIdDimensionValue *DimensionValue `json:"campaignIdDimensionValue,omitempty"` - - // EnabledByDefault: Whether this event tag should be automatically - // enabled for all of the advertiser's campaigns and ads. - EnabledByDefault bool `json:"enabledByDefault,omitempty"` - - // ExcludeFromAdxRequests: Whether to remove this event tag from ads - // that are trafficked through Display & Video 360 to Ad Exchange. This - // may be useful if the event tag uses a pixel that is unapproved for Ad - // Exchange bids on one or more networks, such as the Google Display - // Network. - ExcludeFromAdxRequests bool `json:"excludeFromAdxRequests,omitempty"` - - // Id: ID of this event tag. This is a read-only, auto-generated field. - Id int64 `json:"id,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#eventTag". - Kind string `json:"kind,omitempty"` - - // Name: Name of this event tag. This is a required field and must be - // less than 256 characters long. - Name string `json:"name,omitempty"` - - // SiteFilterType: Site filter type for this event tag. If no type is - // specified then the event tag will be applied to all sites. - // - // Possible values: - // "ALLOWLIST" - // "BLOCKLIST" - SiteFilterType string `json:"siteFilterType,omitempty"` - - // SiteIds: Filter list of site IDs associated with this event tag. The - // siteFilterType determines whether this is a allowlist or blocklist - // filter. - SiteIds googleapi.Int64s `json:"siteIds,omitempty"` - - // SslCompliant: Whether this tag is SSL-compliant or not. This is a - // read-only field. - SslCompliant bool `json:"sslCompliant,omitempty"` - - // Status: Status of this event tag. Must be ENABLED for this event tag - // to fire. This is a required field. - // - // Possible values: - // "ENABLED" - // "DISABLED" - Status string `json:"status,omitempty"` - - // SubaccountId: Subaccount ID of this event tag. This is a read-only - // field that can be left blank. - SubaccountId int64 `json:"subaccountId,omitempty,string"` - - // Type: Event tag type. Can be used to specify whether to use a - // third-party pixel, a third-party JavaScript URL, or a third-party - // click-through URL for either impression or click tracking. This is a - // required field. - // - // Possible values: - // "IMPRESSION_IMAGE_EVENT_TAG" - // "IMPRESSION_JAVASCRIPT_EVENT_TAG" - // "CLICK_THROUGH_EVENT_TAG" - Type string `json:"type,omitempty"` - - // Url: Payload URL for this event tag. The URL on a click-through event - // tag should have a landing page URL appended to the end of it. This - // field is required on insertion. - Url string `json:"url,omitempty"` - - // UrlEscapeLevels: Number of times the landing page URL should be - // URL-escaped before being appended to the click-through event tag URL. - // Only applies to click-through event tags as specified by the event - // tag type. - UrlEscapeLevels int64 `json:"urlEscapeLevels,omitempty"` - - // ServerResponse contains the HTTP response code and headers from the - // server. - googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "AccountId") 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. "AccountId") 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 *EventTag) MarshalJSON() ([]byte, error) { - type NoMethod EventTag - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// EventTagOverride: Event tag override information. -type EventTagOverride struct { - // Enabled: Whether this override is enabled. - Enabled bool `json:"enabled,omitempty"` - - // Id: ID of this event tag override. This is a read-only, - // auto-generated field. - Id int64 `json:"id,omitempty,string"` - - // 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 *EventTagOverride) MarshalJSON() ([]byte, error) { - type NoMethod EventTagOverride - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// EventTagsListResponse: Event Tag List Response -type EventTagsListResponse struct { - // EventTags: Event tag collection. - EventTags []*EventTag `json:"eventTags,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#eventTagsListResponse". - 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. "EventTags") 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. "EventTags") 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 *EventTagsListResponse) MarshalJSON() ([]byte, error) { - type NoMethod EventTagsListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// File: Represents a File resource. A file contains the metadata for a -// report run. It shows the status of the run and holds the URLs to the -// generated report data if the run is finished and the status is -// "REPORT_AVAILABLE". -type File struct { - // DateRange: The date range for which the file has report data. The - // date range will always be the absolute date range for which the - // report is run. - DateRange *DateRange `json:"dateRange,omitempty"` - - // Etag: Etag of this resource. - Etag string `json:"etag,omitempty"` - - // FileName: The filename of the file. - FileName string `json:"fileName,omitempty"` - - // Format: The output format of the report. Only available once the file - // is available. - // - // Possible values: - // "CSV" - // "EXCEL" - Format string `json:"format,omitempty"` - - // Id: The unique ID of this report file. - Id int64 `json:"id,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#file". - Kind string `json:"kind,omitempty"` - - // LastModifiedTime: The timestamp in milliseconds since epoch when this - // file was last modified. - LastModifiedTime int64 `json:"lastModifiedTime,omitempty,string"` - - // ReportId: The ID of the report this file was generated from. - ReportId int64 `json:"reportId,omitempty,string"` - - // Status: The status of the report file. - // - // Possible values: - // "PROCESSING" - // "REPORT_AVAILABLE" - // "FAILED" - // "CANCELLED" - Status string `json:"status,omitempty"` - - // Urls: The URLs where the completed report file can be downloaded. - Urls *FileUrls `json:"urls,omitempty"` - - // ServerResponse contains the HTTP response code and headers from the - // server. - googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "DateRange") 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. "DateRange") 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 *File) MarshalJSON() ([]byte, error) { - type NoMethod File - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// FileUrls: The URLs where the completed report file can be downloaded. -type FileUrls struct { - // ApiUrl: The URL for downloading the report data through the API. - ApiUrl string `json:"apiUrl,omitempty"` - - // BrowserUrl: The URL for downloading the report data through a - // browser. - BrowserUrl string `json:"browserUrl,omitempty"` - - // ForceSendFields is a list of field names (e.g. "ApiUrl") 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. "ApiUrl") 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 *FileUrls) MarshalJSON() ([]byte, error) { - type NoMethod FileUrls - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// FileList: List of files for a report. -type FileList struct { - // Etag: Etag of this resource. - Etag string `json:"etag,omitempty"` - - // Items: The files returned in this response. - Items []*File `json:"items,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#fileList". - Kind string `json:"kind,omitempty"` - - // NextPageToken: Continuation token used to page through files. To - // retrieve the next page of results, set the next request's "pageToken" - // to the value of this field. The page token is only valid for a - // limited amount of time and should not be persisted. - 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. "Etag") 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. "Etag") 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 *FileList) MarshalJSON() ([]byte, error) { - type NoMethod FileList - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// Flight: Flight -type Flight struct { - EndDate string `json:"endDate,omitempty"` - - // RateOrCost: Rate or cost of this flight. - RateOrCost int64 `json:"rateOrCost,omitempty,string"` - - StartDate string `json:"startDate,omitempty"` - - // Units: Units of this flight. - Units int64 `json:"units,omitempty,string"` - - // ForceSendFields is a list of field names (e.g. "EndDate") 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. "EndDate") 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 *Flight) MarshalJSON() ([]byte, error) { - type NoMethod Flight - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// FloodlightActivitiesGenerateTagResponse: Floodlight Activity -// GenerateTag Response -type FloodlightActivitiesGenerateTagResponse struct { - // FloodlightActivityTag: Generated tag for this Floodlight activity. - // For global site tags, this is the event snippet. - FloodlightActivityTag string `json:"floodlightActivityTag,omitempty"` - - // GlobalSiteTagGlobalSnippet: The global snippet section of a global - // site tag. The global site tag sets new cookies on your domain, which - // will store a unique identifier for a user or the ad click that - // brought the user to your site. Learn more. - GlobalSiteTagGlobalSnippet string `json:"globalSiteTagGlobalSnippet,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#floodlightActivitiesGenerateTagResponse". - 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. - // "FloodlightActivityTag") 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. "FloodlightActivityTag") 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 *FloodlightActivitiesGenerateTagResponse) MarshalJSON() ([]byte, error) { - type NoMethod FloodlightActivitiesGenerateTagResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// FloodlightActivitiesListResponse: Floodlight Activity List Response -type FloodlightActivitiesListResponse struct { - // FloodlightActivities: Floodlight activity collection. - FloodlightActivities []*FloodlightActivity `json:"floodlightActivities,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#floodlightActivitiesListResponse". - Kind string `json:"kind,omitempty"` - - // NextPageToken: Pagination token to be used for the next list - // operation. - 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. - // "FloodlightActivities") 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. "FloodlightActivities") 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 *FloodlightActivitiesListResponse) MarshalJSON() ([]byte, error) { - type NoMethod FloodlightActivitiesListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// FloodlightActivity: Contains properties of a Floodlight activity. -type FloodlightActivity struct { - // AccountId: Account ID of this floodlight activity. This is a - // read-only field that can be left blank. - AccountId int64 `json:"accountId,omitempty,string"` - - // AdvertiserId: Advertiser ID of this floodlight activity. If this - // field is left blank, the value will be copied over either from the - // activity group's advertiser or the existing activity's advertiser. - AdvertiserId int64 `json:"advertiserId,omitempty,string"` - - // AdvertiserIdDimensionValue: Dimension value for the ID of the - // advertiser. This is a read-only, auto-generated field. - AdvertiserIdDimensionValue *DimensionValue `json:"advertiserIdDimensionValue,omitempty"` - - // AttributionEnabled: Whether the activity is enabled for attribution. - AttributionEnabled bool `json:"attributionEnabled,omitempty"` - - // CacheBustingType: Code type used for cache busting in the generated - // tag. Applicable only when floodlightActivityGroupType is COUNTER and - // countingMethod is STANDARD_COUNTING or UNIQUE_COUNTING. - // - // Possible values: - // "JAVASCRIPT" - // "ACTIVE_SERVER_PAGE" - // "JSP" - // "PHP" - // "COLD_FUSION" - CacheBustingType string `json:"cacheBustingType,omitempty"` - - // CountingMethod: Counting method for conversions for this floodlight - // activity. This is a required field. - // - // Possible values: - // "STANDARD_COUNTING" - // "UNIQUE_COUNTING" - // "SESSION_COUNTING" - // "TRANSACTIONS_COUNTING" - // "ITEMS_SOLD_COUNTING" - CountingMethod string `json:"countingMethod,omitempty"` - - // DefaultTags: Dynamic floodlight tags. - DefaultTags []*FloodlightActivityDynamicTag `json:"defaultTags,omitempty"` - - // ExpectedUrl: URL where this tag will be deployed. If specified, must - // be less than 256 characters long. - ExpectedUrl string `json:"expectedUrl,omitempty"` - - // FloodlightActivityGroupId: Floodlight activity group ID of this - // floodlight activity. This is a required field. - FloodlightActivityGroupId int64 `json:"floodlightActivityGroupId,omitempty,string"` - - // FloodlightActivityGroupName: Name of the associated floodlight - // activity group. This is a read-only field. - FloodlightActivityGroupName string `json:"floodlightActivityGroupName,omitempty"` - - // FloodlightActivityGroupTagString: Tag string of the associated - // floodlight activity group. This is a read-only field. - FloodlightActivityGroupTagString string `json:"floodlightActivityGroupTagString,omitempty"` - - // FloodlightActivityGroupType: Type of the associated floodlight - // activity group. This is a read-only field. - // - // Possible values: - // "COUNTER" - // "SALE" - FloodlightActivityGroupType string `json:"floodlightActivityGroupType,omitempty"` - - // FloodlightConfigurationId: Floodlight configuration ID of this - // floodlight activity. If this field is left blank, the value will be - // copied over either from the activity group's floodlight configuration - // or from the existing activity's floodlight configuration. - FloodlightConfigurationId int64 `json:"floodlightConfigurationId,omitempty,string"` - - // FloodlightConfigurationIdDimensionValue: Dimension value for the ID - // of the floodlight configuration. This is a read-only, auto-generated - // field. - FloodlightConfigurationIdDimensionValue *DimensionValue `json:"floodlightConfigurationIdDimensionValue,omitempty"` - - // FloodlightTagType: The type of Floodlight tag this activity will - // generate. This is a required field. - // - // Possible values: - // "IFRAME" - // "IMAGE" - // "GLOBAL_SITE_TAG" - FloodlightTagType string `json:"floodlightTagType,omitempty"` - - // Id: ID of this floodlight activity. This is a read-only, - // auto-generated field. - Id int64 `json:"id,omitempty,string"` - - // IdDimensionValue: Dimension value for the ID of this floodlight - // activity. This is a read-only, auto-generated field. - IdDimensionValue *DimensionValue `json:"idDimensionValue,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#floodlightActivity". - Kind string `json:"kind,omitempty"` - - // Name: Name of this floodlight activity. This is a required field. - // Must be less than 129 characters long and cannot contain quotes. - Name string `json:"name,omitempty"` - - // Notes: General notes or implementation instructions for the tag. - Notes string `json:"notes,omitempty"` - - // PublisherTags: Publisher dynamic floodlight tags. - PublisherTags []*FloodlightActivityPublisherDynamicTag `json:"publisherTags,omitempty"` - - // Secure: Whether this tag should use SSL. - Secure bool `json:"secure,omitempty"` - - // SslCompliant: Whether the floodlight activity is SSL-compliant. This - // is a read-only field, its value detected by the system from the - // floodlight tags. - SslCompliant bool `json:"sslCompliant,omitempty"` - - // SslRequired: Whether this floodlight activity must be SSL-compliant. - SslRequired bool `json:"sslRequired,omitempty"` - - // Status: The status of the activity. This can only be set to ACTIVE or - // ARCHIVED_AND_DISABLED. The ARCHIVED status is no longer supported and - // cannot be set for Floodlight activities. The DISABLED_POLICY status - // indicates that a Floodlight activity is violating Google policy. - // Contact your account manager for more information. - // - // Possible values: - // "ACTIVE" - // "ARCHIVED_AND_DISABLED" - // "ARCHIVED" - // "DISABLED_POLICY" - Status string `json:"status,omitempty"` - - // SubaccountId: Subaccount ID of this floodlight activity. This is a - // read-only field that can be left blank. - SubaccountId int64 `json:"subaccountId,omitempty,string"` - - // TagFormat: Tag format type for the floodlight activity. If left - // blank, the tag format will default to HTML. - // - // Possible values: - // "HTML" - // "XHTML" - TagFormat string `json:"tagFormat,omitempty"` - - // TagString: Value of the cat= parameter in the floodlight tag, which - // the ad servers use to identify the activity. This is optional: if - // empty, a new tag string will be generated for you. This string must - // be 1 to 8 characters long, with valid characters being a-z0-9[ _ ]. - // This tag string must also be unique among activities of the same - // activity group. This field is read-only after insertion. - TagString string `json:"tagString,omitempty"` - - // UserDefinedVariableTypes: List of the user-defined variables used by - // this conversion tag. These map to the "u[1-100]=" in the tags. Each - // of these can have a user defined type. Acceptable values are U1 to - // U100, inclusive. - // - // Possible values: - // "U1" - // "U2" - // "U3" - // "U4" - // "U5" - // "U6" - // "U7" - // "U8" - // "U9" - // "U10" - // "U11" - // "U12" - // "U13" - // "U14" - // "U15" - // "U16" - // "U17" - // "U18" - // "U19" - // "U20" - // "U21" - // "U22" - // "U23" - // "U24" - // "U25" - // "U26" - // "U27" - // "U28" - // "U29" - // "U30" - // "U31" - // "U32" - // "U33" - // "U34" - // "U35" - // "U36" - // "U37" - // "U38" - // "U39" - // "U40" - // "U41" - // "U42" - // "U43" - // "U44" - // "U45" - // "U46" - // "U47" - // "U48" - // "U49" - // "U50" - // "U51" - // "U52" - // "U53" - // "U54" - // "U55" - // "U56" - // "U57" - // "U58" - // "U59" - // "U60" - // "U61" - // "U62" - // "U63" - // "U64" - // "U65" - // "U66" - // "U67" - // "U68" - // "U69" - // "U70" - // "U71" - // "U72" - // "U73" - // "U74" - // "U75" - // "U76" - // "U77" - // "U78" - // "U79" - // "U80" - // "U81" - // "U82" - // "U83" - // "U84" - // "U85" - // "U86" - // "U87" - // "U88" - // "U89" - // "U90" - // "U91" - // "U92" - // "U93" - // "U94" - // "U95" - // "U96" - // "U97" - // "U98" - // "U99" - // "U100" - UserDefinedVariableTypes []string `json:"userDefinedVariableTypes,omitempty"` - - // ServerResponse contains the HTTP response code and headers from the - // server. - googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "AccountId") 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. "AccountId") 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 *FloodlightActivity) MarshalJSON() ([]byte, error) { - type NoMethod FloodlightActivity - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// FloodlightActivityDynamicTag: Dynamic Tag -type FloodlightActivityDynamicTag struct { - // Id: ID of this dynamic tag. This is a read-only, auto-generated - // field. - Id int64 `json:"id,omitempty,string"` - - // Name: Name of this tag. - Name string `json:"name,omitempty"` - - // Tag: Tag code. - Tag string `json:"tag,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Id") 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. "Id") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // 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 *FloodlightActivityDynamicTag) MarshalJSON() ([]byte, error) { - type NoMethod FloodlightActivityDynamicTag - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// FloodlightActivityGroup: Contains properties of a Floodlight activity -// group. -type FloodlightActivityGroup struct { - // AccountId: Account ID of this floodlight activity group. This is a - // read-only field that can be left blank. - AccountId int64 `json:"accountId,omitempty,string"` - - // AdvertiserId: Advertiser ID of this floodlight activity group. If - // this field is left blank, the value will be copied over either from - // the floodlight configuration's advertiser or from the existing - // activity group's advertiser. - AdvertiserId int64 `json:"advertiserId,omitempty,string"` - - // AdvertiserIdDimensionValue: Dimension value for the ID of the - // advertiser. This is a read-only, auto-generated field. - AdvertiserIdDimensionValue *DimensionValue `json:"advertiserIdDimensionValue,omitempty"` - - // FloodlightConfigurationId: Floodlight configuration ID of this - // floodlight activity group. This is a required field. - FloodlightConfigurationId int64 `json:"floodlightConfigurationId,omitempty,string"` - - // FloodlightConfigurationIdDimensionValue: Dimension value for the ID - // of the floodlight configuration. This is a read-only, auto-generated - // field. - FloodlightConfigurationIdDimensionValue *DimensionValue `json:"floodlightConfigurationIdDimensionValue,omitempty"` - - // Id: ID of this floodlight activity group. This is a read-only, - // auto-generated field. - Id int64 `json:"id,omitempty,string"` - - // IdDimensionValue: Dimension value for the ID of this floodlight - // activity group. This is a read-only, auto-generated field. - IdDimensionValue *DimensionValue `json:"idDimensionValue,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#floodlightActivityGroup". - Kind string `json:"kind,omitempty"` - - // Name: Name of this floodlight activity group. This is a required - // field. Must be less than 65 characters long and cannot contain - // quotes. - Name string `json:"name,omitempty"` - - // SubaccountId: Subaccount ID of this floodlight activity group. This - // is a read-only field that can be left blank. - SubaccountId int64 `json:"subaccountId,omitempty,string"` - - // TagString: Value of the type= parameter in the floodlight tag, which - // the ad servers use to identify the activity group that the activity - // belongs to. This is optional: if empty, a new tag string will be - // generated for you. This string must be 1 to 8 characters long, with - // valid characters being a-z0-9[ _ ]. This tag string must also be - // unique among activity groups of the same floodlight configuration. - // This field is read-only after insertion. - TagString string `json:"tagString,omitempty"` - - // Type: Type of the floodlight activity group. This is a required field - // that is read-only after insertion. - // - // Possible values: - // "COUNTER" - // "SALE" - Type string `json:"type,omitempty"` - - // ServerResponse contains the HTTP response code and headers from the - // server. - googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "AccountId") 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. "AccountId") 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 *FloodlightActivityGroup) MarshalJSON() ([]byte, error) { - type NoMethod FloodlightActivityGroup - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// FloodlightActivityGroupsListResponse: Floodlight Activity Group List -// Response -type FloodlightActivityGroupsListResponse struct { - // FloodlightActivityGroups: Floodlight activity group collection. - FloodlightActivityGroups []*FloodlightActivityGroup `json:"floodlightActivityGroups,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#floodlightActivityGroupsListResponse". - Kind string `json:"kind,omitempty"` - - // NextPageToken: Pagination token to be used for the next list - // operation. - 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. - // "FloodlightActivityGroups") 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. "FloodlightActivityGroups") - // 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 *FloodlightActivityGroupsListResponse) MarshalJSON() ([]byte, error) { - type NoMethod FloodlightActivityGroupsListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// FloodlightActivityPublisherDynamicTag: Publisher Dynamic Tag -type FloodlightActivityPublisherDynamicTag struct { - // ClickThrough: Whether this tag is applicable only for click-throughs. - ClickThrough bool `json:"clickThrough,omitempty"` - - // DirectorySiteId: Directory site ID of this dynamic tag. This is a - // write-only field that can be used as an alternative to the siteId - // field. When this resource is retrieved, only the siteId field will be - // populated. - DirectorySiteId int64 `json:"directorySiteId,omitempty,string"` - - // DynamicTag: Dynamic floodlight tag. - DynamicTag *FloodlightActivityDynamicTag `json:"dynamicTag,omitempty"` - - // SiteId: Site ID of this dynamic tag. - SiteId int64 `json:"siteId,omitempty,string"` - - // SiteIdDimensionValue: Dimension value for the ID of the site. This is - // a read-only, auto-generated field. - SiteIdDimensionValue *DimensionValue `json:"siteIdDimensionValue,omitempty"` - - // ViewThrough: Whether this tag is applicable only for view-throughs. - ViewThrough bool `json:"viewThrough,omitempty"` - - // ForceSendFields is a list of field names (e.g. "ClickThrough") 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. "ClickThrough") 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 *FloodlightActivityPublisherDynamicTag) MarshalJSON() ([]byte, error) { - type NoMethod FloodlightActivityPublisherDynamicTag - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// FloodlightConfiguration: Contains properties of a Floodlight -// configuration. -type FloodlightConfiguration struct { - // AccountId: Account ID of this floodlight configuration. This is a - // read-only field that can be left blank. - AccountId int64 `json:"accountId,omitempty,string"` - - // AdvertiserId: Advertiser ID of the parent advertiser of this - // floodlight configuration. - AdvertiserId int64 `json:"advertiserId,omitempty,string"` - - // AdvertiserIdDimensionValue: Dimension value for the ID of the - // advertiser. This is a read-only, auto-generated field. - AdvertiserIdDimensionValue *DimensionValue `json:"advertiserIdDimensionValue,omitempty"` - - // AnalyticsDataSharingEnabled: Whether advertiser data is shared with - // Google Analytics. - AnalyticsDataSharingEnabled bool `json:"analyticsDataSharingEnabled,omitempty"` - - // CustomViewabilityMetric: Custom Viewability metric for the floodlight - // configuration. - CustomViewabilityMetric *CustomViewabilityMetric `json:"customViewabilityMetric,omitempty"` - - // ExposureToConversionEnabled: Whether the exposure-to-conversion - // report is enabled. This report shows detailed pathway information on - // up to 10 of the most recent ad exposures seen by a user before - // converting. - ExposureToConversionEnabled bool `json:"exposureToConversionEnabled,omitempty"` - - // FirstDayOfWeek: Day that will be counted as the first day of the week - // in reports. This is a required field. - // - // Possible values: - // "MONDAY" - // "SUNDAY" - FirstDayOfWeek string `json:"firstDayOfWeek,omitempty"` - - // Id: ID of this floodlight configuration. This is a read-only, - // auto-generated field. - Id int64 `json:"id,omitempty,string"` - - // IdDimensionValue: Dimension value for the ID of this floodlight - // configuration. This is a read-only, auto-generated field. - IdDimensionValue *DimensionValue `json:"idDimensionValue,omitempty"` - - // InAppAttributionTrackingEnabled: Whether in-app attribution tracking - // is enabled. - InAppAttributionTrackingEnabled bool `json:"inAppAttributionTrackingEnabled,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#floodlightConfiguration". - Kind string `json:"kind,omitempty"` - - // LookbackConfiguration: Lookback window settings for this floodlight - // configuration. - LookbackConfiguration *LookbackConfiguration `json:"lookbackConfiguration,omitempty"` - - // NaturalSearchConversionAttributionOption: Types of attribution - // options for natural search conversions. - // - // Possible values: - // "EXCLUDE_NATURAL_SEARCH_CONVERSION_ATTRIBUTION" - // "INCLUDE_NATURAL_SEARCH_CONVERSION_ATTRIBUTION" - // "INCLUDE_NATURAL_SEARCH_TIERED_CONVERSION_ATTRIBUTION" - NaturalSearchConversionAttributionOption string `json:"naturalSearchConversionAttributionOption,omitempty"` - - // OmnitureSettings: Settings for Campaign Manager Omniture integration. - OmnitureSettings *OmnitureSettings `json:"omnitureSettings,omitempty"` - - // SubaccountId: Subaccount ID of this floodlight configuration. This is - // a read-only field that can be left blank. - SubaccountId int64 `json:"subaccountId,omitempty,string"` - - // TagSettings: Configuration settings for dynamic and image floodlight - // tags. - TagSettings *TagSettings `json:"tagSettings,omitempty"` - - // ThirdPartyAuthenticationTokens: List of third-party authentication - // tokens enabled for this configuration. - ThirdPartyAuthenticationTokens []*ThirdPartyAuthenticationToken `json:"thirdPartyAuthenticationTokens,omitempty"` - - // UserDefinedVariableConfigurations: List of user defined variables - // enabled for this configuration. - UserDefinedVariableConfigurations []*UserDefinedVariableConfiguration `json:"userDefinedVariableConfigurations,omitempty"` - - // ServerResponse contains the HTTP response code and headers from the - // server. - googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "AccountId") 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. "AccountId") 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 *FloodlightConfiguration) MarshalJSON() ([]byte, error) { - type NoMethod FloodlightConfiguration - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// FloodlightConfigurationsListResponse: Floodlight Configuration List -// Response -type FloodlightConfigurationsListResponse struct { - // FloodlightConfigurations: Floodlight configuration collection. - FloodlightConfigurations []*FloodlightConfiguration `json:"floodlightConfigurations,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#floodlightConfigurationsListResponse". - 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. - // "FloodlightConfigurations") 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. "FloodlightConfigurations") - // 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 *FloodlightConfigurationsListResponse) MarshalJSON() ([]byte, error) { - type NoMethod FloodlightConfigurationsListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// FloodlightReportCompatibleFields: Represents fields that are -// compatible to be selected for a report of type "FlOODLIGHT". -type FloodlightReportCompatibleFields struct { - // DimensionFilters: Dimensions which are compatible to be selected in - // the "dimensionFilters" section of the report. - DimensionFilters []*Dimension `json:"dimensionFilters,omitempty"` - - // Dimensions: Dimensions which are compatible to be selected in the - // "dimensions" section of the report. - Dimensions []*Dimension `json:"dimensions,omitempty"` - - // Kind: The kind of resource this is, in this case - // dfareporting#floodlightReportCompatibleFields. - Kind string `json:"kind,omitempty"` - - // Metrics: Metrics which are compatible to be selected in the - // "metricNames" section of the report. - Metrics []*Metric `json:"metrics,omitempty"` - - // ForceSendFields is a list of field names (e.g. "DimensionFilters") 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. "DimensionFilters") 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 *FloodlightReportCompatibleFields) MarshalJSON() ([]byte, error) { - type NoMethod FloodlightReportCompatibleFields - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// FrequencyCap: Frequency Cap. -type FrequencyCap struct { - // Duration: Duration of time, in seconds, for this frequency cap. The - // maximum duration is 90 days. Acceptable values are 1 to 7776000, - // inclusive. - Duration int64 `json:"duration,omitempty,string"` - - // Impressions: Number of times an individual user can be served the ad - // within the specified duration. Acceptable values are 1 to 15, - // inclusive. - Impressions int64 `json:"impressions,omitempty,string"` - - // ForceSendFields is a list of field names (e.g. "Duration") 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. "Duration") 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 *FrequencyCap) MarshalJSON() ([]byte, error) { - type NoMethod FrequencyCap - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// FsCommand: FsCommand. -type FsCommand struct { - // Left: Distance from the left of the browser.Applicable when - // positionOption is DISTANCE_FROM_TOP_LEFT_CORNER. - Left int64 `json:"left,omitempty"` - - // PositionOption: Position in the browser where the window will open. - // - // Possible values: - // "CENTERED" - // "DISTANCE_FROM_TOP_LEFT_CORNER" - PositionOption string `json:"positionOption,omitempty"` - - // Top: Distance from the top of the browser. Applicable when - // positionOption is DISTANCE_FROM_TOP_LEFT_CORNER. - Top int64 `json:"top,omitempty"` - - // WindowHeight: Height of the window. - WindowHeight int64 `json:"windowHeight,omitempty"` - - // WindowWidth: Width of the window. - WindowWidth int64 `json:"windowWidth,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Left") 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. "Left") 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 *FsCommand) MarshalJSON() ([]byte, error) { - type NoMethod FsCommand - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// GeoTargeting: Geographical Targeting. -type GeoTargeting struct { - // Cities: Cities to be targeted. For each city only dartId is required. - // The other fields are populated automatically when the ad is inserted - // or updated. If targeting a city, do not target or exclude the country - // of the city, and do not target the metro or region of the city. - Cities []*City `json:"cities,omitempty"` - - // Countries: Countries to be targeted or excluded from targeting, - // depending on the setting of the excludeCountries field. For each - // country only dartId is required. The other fields are populated - // automatically when the ad is inserted or updated. If targeting or - // excluding a country, do not target regions, cities, metros, or postal - // codes in the same country. - Countries []*Country `json:"countries,omitempty"` - - // ExcludeCountries: Whether or not to exclude the countries in the - // countries field from targeting. If false, the countries field refers - // to countries which will be targeted by the ad. - ExcludeCountries bool `json:"excludeCountries,omitempty"` - - // Metros: Metros to be targeted. For each metro only dmaId is required. - // The other fields are populated automatically when the ad is inserted - // or updated. If targeting a metro, do not target or exclude the - // country of the metro. - Metros []*Metro `json:"metros,omitempty"` - - // PostalCodes: Postal codes to be targeted. For each postal code only - // id is required. The other fields are populated automatically when the - // ad is inserted or updated. If targeting a postal code, do not target - // or exclude the country of the postal code. - PostalCodes []*PostalCode `json:"postalCodes,omitempty"` - - // Regions: Regions to be targeted. For each region only dartId is - // required. The other fields are populated automatically when the ad is - // inserted or updated. If targeting a region, do not target or exclude - // the country of the region. - Regions []*Region `json:"regions,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Cities") 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. "Cities") 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 *GeoTargeting) MarshalJSON() ([]byte, error) { - type NoMethod GeoTargeting - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// InventoryItem: Represents a buy from the Planning inventory store. -type InventoryItem struct { - // AccountId: Account ID of this inventory item. - AccountId int64 `json:"accountId,omitempty,string"` - - // AdSlots: Ad slots of this inventory item. If this inventory item - // represents a standalone placement, there will be exactly one ad slot. - // If this inventory item represents a placement group, there will be - // more than one ad slot, each representing one child placement in that - // placement group. - AdSlots []*AdSlot `json:"adSlots,omitempty"` - - // AdvertiserId: Advertiser ID of this inventory item. - AdvertiserId int64 `json:"advertiserId,omitempty,string"` - - // ContentCategoryId: Content category ID of this inventory item. - ContentCategoryId int64 `json:"contentCategoryId,omitempty,string"` - - // EstimatedClickThroughRate: Estimated click-through rate of this - // inventory item. - EstimatedClickThroughRate int64 `json:"estimatedClickThroughRate,omitempty,string"` - - // EstimatedConversionRate: Estimated conversion rate of this inventory - // item. - EstimatedConversionRate int64 `json:"estimatedConversionRate,omitempty,string"` - - // Id: ID of this inventory item. - Id int64 `json:"id,omitempty,string"` - - // InPlan: Whether this inventory item is in plan. - InPlan bool `json:"inPlan,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#inventoryItem". - Kind string `json:"kind,omitempty"` - - // LastModifiedInfo: Information about the most recent modification of - // this inventory item. - LastModifiedInfo *LastModifiedInfo `json:"lastModifiedInfo,omitempty"` - - // Name: Name of this inventory item. For standalone inventory items, - // this is the same name as that of its only ad slot. For group - // inventory items, this can differ from the name of any of its ad - // slots. - Name string `json:"name,omitempty"` - - // NegotiationChannelId: Negotiation channel ID of this inventory item. - NegotiationChannelId int64 `json:"negotiationChannelId,omitempty,string"` - - // OrderId: Order ID of this inventory item. - OrderId int64 `json:"orderId,omitempty,string"` - - // PlacementStrategyId: Placement strategy ID of this inventory item. - PlacementStrategyId int64 `json:"placementStrategyId,omitempty,string"` - - // Pricing: Pricing of this inventory item. - Pricing *Pricing `json:"pricing,omitempty"` - - // ProjectId: Project ID of this inventory item. - ProjectId int64 `json:"projectId,omitempty,string"` - - // RfpId: RFP ID of this inventory item. - RfpId int64 `json:"rfpId,omitempty,string"` - - // SiteId: ID of the site this inventory item is associated with. - SiteId int64 `json:"siteId,omitempty,string"` - - // SubaccountId: Subaccount ID of this inventory item. - SubaccountId int64 `json:"subaccountId,omitempty,string"` - - // Type: Type of inventory item. - // - // Possible values: - // "PLANNING_PLACEMENT_TYPE_REGULAR" - // "PLANNING_PLACEMENT_TYPE_CREDIT" - Type string `json:"type,omitempty"` - - // ServerResponse contains the HTTP response code and headers from the - // server. - googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "AccountId") 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. "AccountId") 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 *InventoryItem) MarshalJSON() ([]byte, error) { - type NoMethod InventoryItem - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// InventoryItemsListResponse: Inventory item List Response -type InventoryItemsListResponse struct { - // InventoryItems: Inventory item collection - InventoryItems []*InventoryItem `json:"inventoryItems,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#inventoryItemsListResponse". - Kind string `json:"kind,omitempty"` - - // NextPageToken: Pagination token to be used for the next list - // operation. - 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. "InventoryItems") 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. "InventoryItems") 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 *InventoryItemsListResponse) MarshalJSON() ([]byte, error) { - type NoMethod InventoryItemsListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// KeyValueTargetingExpression: Key Value Targeting Expression. -type KeyValueTargetingExpression struct { - // Expression: Keyword expression being targeted by the ad. - Expression string `json:"expression,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 *KeyValueTargetingExpression) MarshalJSON() ([]byte, error) { - type NoMethod KeyValueTargetingExpression - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// LandingPage: Contains information about where a user's browser is -// taken after the user clicks an ad. -type LandingPage struct { - // AdvertiserId: Advertiser ID of this landing page. This is a required - // field. - AdvertiserId int64 `json:"advertiserId,omitempty,string"` - - // Archived: Whether this landing page has been archived. - Archived bool `json:"archived,omitempty"` - - // DeepLinks: Links that will direct the user to a mobile app, if - // installed. - DeepLinks []*DeepLink `json:"deepLinks,omitempty"` - - // Id: ID of this landing page. This is a read-only, auto-generated - // field. - Id int64 `json:"id,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#landingPage". - Kind string `json:"kind,omitempty"` - - // Name: Name of this landing page. This is a required field. It must be - // less than 256 characters long. - Name string `json:"name,omitempty"` - - // Url: URL of this landing page. This is a required field. - Url string `json:"url,omitempty"` - - // ServerResponse contains the HTTP response code and headers from the - // server. - googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "AdvertiserId") 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. "AdvertiserId") 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 *LandingPage) MarshalJSON() ([]byte, error) { - type NoMethod LandingPage - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// Language: Contains information about a language that can be targeted -// by ads. -type Language struct { - // Id: Language ID of this language. This is the ID used for targeting - // and generating reports. - Id int64 `json:"id,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#language". - Kind string `json:"kind,omitempty"` - - // LanguageCode: Format of language code is an ISO 639 two-letter - // language code optionally followed by an underscore followed by an ISO - // 3166 code. Examples are "en" for English or "zh_CN" for Simplified - // Chinese. - LanguageCode string `json:"languageCode,omitempty"` - - // Name: Name of this language. - Name string `json:"name,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Id") 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. "Id") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // 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 *Language) MarshalJSON() ([]byte, error) { - type NoMethod Language - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// LanguageTargeting: Language Targeting. -type LanguageTargeting struct { - // Languages: Languages that this ad targets. For each language only - // languageId is required. The other fields are populated automatically - // when the ad is inserted or updated. - Languages []*Language `json:"languages,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Languages") 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. "Languages") 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 *LanguageTargeting) MarshalJSON() ([]byte, error) { - type NoMethod LanguageTargeting - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// LanguagesListResponse: Language List Response -type LanguagesListResponse struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#languagesListResponse". - Kind string `json:"kind,omitempty"` - - // Languages: Language collection. - Languages []*Language `json:"languages,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 *LanguagesListResponse) MarshalJSON() ([]byte, error) { - type NoMethod LanguagesListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// LastModifiedInfo: Modification timestamp. -type LastModifiedInfo struct { - // Time: Timestamp of the last change in milliseconds since epoch. - Time int64 `json:"time,omitempty,string"` - - // ForceSendFields is a list of field names (e.g. "Time") 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. "Time") 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 *LastModifiedInfo) MarshalJSON() ([]byte, error) { - type NoMethod LastModifiedInfo - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// ListPopulationClause: A group clause made up of list population terms -// representing constraints joined by ORs. -type ListPopulationClause struct { - // Terms: Terms of this list population clause. Each clause is made up - // of list population terms representing constraints and are joined by - // ORs. - Terms []*ListPopulationTerm `json:"terms,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Terms") 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. "Terms") 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 *ListPopulationClause) MarshalJSON() ([]byte, error) { - type NoMethod ListPopulationClause - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// ListPopulationRule: Remarketing List Population Rule. -type ListPopulationRule struct { - // FloodlightActivityId: Floodlight activity ID associated with this - // rule. This field can be left blank. - FloodlightActivityId int64 `json:"floodlightActivityId,omitempty,string"` - - // FloodlightActivityName: Name of floodlight activity associated with - // this rule. This is a read-only, auto-generated field. - FloodlightActivityName string `json:"floodlightActivityName,omitempty"` - - // ListPopulationClauses: Clauses that make up this list population - // rule. Clauses are joined by ANDs, and the clauses themselves are made - // up of list population terms which are joined by ORs. - ListPopulationClauses []*ListPopulationClause `json:"listPopulationClauses,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "FloodlightActivityId") 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. "FloodlightActivityId") 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 *ListPopulationRule) MarshalJSON() ([]byte, error) { - type NoMethod ListPopulationRule - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// ListPopulationTerm: Remarketing List Population Rule Term. -type ListPopulationTerm struct { - // Contains: Will be true if the term should check if the user is in the - // list and false if the term should check if the user is not in the - // list. This field is only relevant when type is set to - // LIST_MEMBERSHIP_TERM. False by default. - Contains bool `json:"contains,omitempty"` - - // Negation: Whether to negate the comparison result of this term during - // rule evaluation. This field is only relevant when type is left unset - // or set to CUSTOM_VARIABLE_TERM or REFERRER_TERM. - Negation bool `json:"negation,omitempty"` - - // Operator: Comparison operator of this term. This field is only - // relevant when type is left unset or set to CUSTOM_VARIABLE_TERM or - // REFERRER_TERM. - // - // Possible values: - // "NUM_EQUALS" - // "NUM_LESS_THAN" - // "NUM_LESS_THAN_EQUAL" - // "NUM_GREATER_THAN" - // "NUM_GREATER_THAN_EQUAL" - // "STRING_EQUALS" - // "STRING_CONTAINS" - Operator string `json:"operator,omitempty"` - - // RemarketingListId: ID of the list in question. This field is only - // relevant when type is set to LIST_MEMBERSHIP_TERM. - RemarketingListId int64 `json:"remarketingListId,omitempty,string"` - - // Type: List population term type determines the applicable fields in - // this object. If left unset or set to CUSTOM_VARIABLE_TERM, then - // variableName, variableFriendlyName, operator, value, and negation are - // applicable. If set to LIST_MEMBERSHIP_TERM then remarketingListId and - // contains are applicable. If set to REFERRER_TERM then operator, - // value, and negation are applicable. - // - // Possible values: - // "CUSTOM_VARIABLE_TERM" - // "LIST_MEMBERSHIP_TERM" - // "REFERRER_TERM" - Type string `json:"type,omitempty"` - - // Value: Literal to compare the variable to. This field is only - // relevant when type is left unset or set to CUSTOM_VARIABLE_TERM or - // REFERRER_TERM. - Value string `json:"value,omitempty"` - - // VariableFriendlyName: Friendly name of this term's variable. This is - // a read-only, auto-generated field. This field is only relevant when - // type is left unset or set to CUSTOM_VARIABLE_TERM. - VariableFriendlyName string `json:"variableFriendlyName,omitempty"` - - // VariableName: Name of the variable (U1, U2, etc.) being compared in - // this term. This field is only relevant when type is set to null, - // CUSTOM_VARIABLE_TERM or REFERRER_TERM. - VariableName string `json:"variableName,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Contains") 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. "Contains") 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 *ListPopulationTerm) MarshalJSON() ([]byte, error) { - type NoMethod ListPopulationTerm - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// ListTargetingExpression: Remarketing List Targeting Expression. -type ListTargetingExpression struct { - // Expression: Expression describing which lists are being targeted by - // the ad. - Expression string `json:"expression,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 *ListTargetingExpression) MarshalJSON() ([]byte, error) { - type NoMethod ListTargetingExpression - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// LookbackConfiguration: Lookback configuration settings. -type LookbackConfiguration struct { - // ClickDuration: Lookback window, in days, from the last time a given - // user clicked on one of your ads. If you enter 0, clicks will not be - // considered as triggering events for floodlight tracking. If you leave - // this field blank, the default value for your account will be used. - // Acceptable values are 0 to 90, inclusive. - ClickDuration int64 `json:"clickDuration,omitempty"` - - // PostImpressionActivitiesDuration: Lookback window, in days, from the - // last time a given user viewed one of your ads. If you enter 0, - // impressions will not be considered as triggering events for - // floodlight tracking. If you leave this field blank, the default value - // for your account will be used. Acceptable values are 0 to 90, - // inclusive. - PostImpressionActivitiesDuration int64 `json:"postImpressionActivitiesDuration,omitempty"` - - // ForceSendFields is a list of field names (e.g. "ClickDuration") 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. "ClickDuration") 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 *LookbackConfiguration) MarshalJSON() ([]byte, error) { - type NoMethod LookbackConfiguration - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -type MeasurementPartnerAdvertiserLink struct { - // LinkStatus: . - // - // Possible values: - // "MEASUREMENT_PARTNER_UNLINKED" - // "MEASUREMENT_PARTNER_LINKED" - // "MEASUREMENT_PARTNER_LINK_PENDING" - // "MEASUREMENT_PARTNER_LINK_FAILURE" - // "MEASUREMENT_PARTNER_LINK_OPT_OUT" - // "MEASUREMENT_PARTNER_LINK_OPT_OUT_PENDING" - // "MEASUREMENT_PARTNER_LINK_WRAPPING_PENDING" - // "MEASUREMENT_PARTNER_MODE_CHANGE_PENDING" - LinkStatus string `json:"linkStatus,omitempty"` - - // MeasurementPartner: Measurement partner used for tag wrapping. - // - // Possible values: - // "NONE" - // "INTEGRAL_AD_SCIENCE" - // "DOUBLE_VERIFY" - MeasurementPartner string `json:"measurementPartner,omitempty"` - - // PartnerAdvertiserId: . - PartnerAdvertiserId string `json:"partnerAdvertiserId,omitempty"` - - // ForceSendFields is a list of field names (e.g. "LinkStatus") 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. "LinkStatus") 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 *MeasurementPartnerAdvertiserLink) MarshalJSON() ([]byte, error) { - type NoMethod MeasurementPartnerAdvertiserLink - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -type MeasurementPartnerCampaignLink struct { - // LinkStatus: . - // - // Possible values: - // "MEASUREMENT_PARTNER_UNLINKED" - // "MEASUREMENT_PARTNER_LINKED" - // "MEASUREMENT_PARTNER_LINK_PENDING" - // "MEASUREMENT_PARTNER_LINK_FAILURE" - // "MEASUREMENT_PARTNER_LINK_OPT_OUT" - // "MEASUREMENT_PARTNER_LINK_OPT_OUT_PENDING" - // "MEASUREMENT_PARTNER_LINK_WRAPPING_PENDING" - // "MEASUREMENT_PARTNER_MODE_CHANGE_PENDING" - LinkStatus string `json:"linkStatus,omitempty"` - - // MeasurementPartner: Measurement partner used for tag wrapping. - // - // Possible values: - // "NONE" - // "INTEGRAL_AD_SCIENCE" - // "DOUBLE_VERIFY" - MeasurementPartner string `json:"measurementPartner,omitempty"` - - // PartnerCampaignId: Partner campaign ID needed for establishing - // linking with Measurement partner. - PartnerCampaignId string `json:"partnerCampaignId,omitempty"` - - // ForceSendFields is a list of field names (e.g. "LinkStatus") 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. "LinkStatus") 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 *MeasurementPartnerCampaignLink) MarshalJSON() ([]byte, error) { - type NoMethod MeasurementPartnerCampaignLink - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// MeasurementPartnerWrappingData: Placement tag wrapping -type MeasurementPartnerWrappingData struct { - // LinkStatus: Placement wrapping status. - // - // Possible values: - // "MEASUREMENT_PARTNER_UNLINKED" - // "MEASUREMENT_PARTNER_LINKED" - // "MEASUREMENT_PARTNER_LINK_PENDING" - // "MEASUREMENT_PARTNER_LINK_FAILURE" - // "MEASUREMENT_PARTNER_LINK_OPT_OUT" - // "MEASUREMENT_PARTNER_LINK_OPT_OUT_PENDING" - // "MEASUREMENT_PARTNER_LINK_WRAPPING_PENDING" - // "MEASUREMENT_PARTNER_MODE_CHANGE_PENDING" - LinkStatus string `json:"linkStatus,omitempty"` - - // MeasurementPartner: Measurement partner used for wrapping the - // placement. - // - // Possible values: - // "NONE" - // "INTEGRAL_AD_SCIENCE" - // "DOUBLE_VERIFY" - MeasurementPartner string `json:"measurementPartner,omitempty"` - - // TagWrappingMode: Measurement mode for the wrapped placement. - // - // Possible values: - // "NONE" - // "BLOCKING" - // "MONITORING" - // "MONITORING_ONLY" - // "VIDEO_PIXEL_MONITORING" - // "TRACKING" - // "VPAID_MONITORING" - // "VPAID_BLOCKING" - // "NON_VPAID_MONITORING" - // "VPAID_ONLY_MONITORING" - // "VPAID_ONLY_BLOCKING" - // "VPAID_ONLY_FILTERING" - // "VPAID_FILTERING" - // "NON_VPAID_FILTERING" - TagWrappingMode string `json:"tagWrappingMode,omitempty"` - - // WrappedTag: Tag provided by the measurement partner during wrapping. - WrappedTag string `json:"wrappedTag,omitempty"` - - // ForceSendFields is a list of field names (e.g. "LinkStatus") 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. "LinkStatus") 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 *MeasurementPartnerWrappingData) MarshalJSON() ([]byte, error) { - type NoMethod MeasurementPartnerWrappingData - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// Metric: Represents a metric. -type Metric struct { - // Kind: The kind of resource this is, in this case dfareporting#metric. - Kind string `json:"kind,omitempty"` - - // Name: The metric name, e.g. dfa:impressions - Name string `json:"name,omitempty"` - - // 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 *Metric) MarshalJSON() ([]byte, error) { - type NoMethod Metric - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// Metro: Contains information about a metro region that can be targeted -// by ads. -type Metro struct { - // CountryCode: Country code of the country to which this metro region - // belongs. - CountryCode string `json:"countryCode,omitempty"` - - // CountryDartId: DART ID of the country to which this metro region - // belongs. - CountryDartId int64 `json:"countryDartId,omitempty,string"` - - // DartId: DART ID of this metro region. - DartId int64 `json:"dartId,omitempty,string"` - - // DmaId: DMA ID of this metro region. This is the ID used for targeting - // and generating reports, and is equivalent to metro_code. - DmaId int64 `json:"dmaId,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#metro". - Kind string `json:"kind,omitempty"` - - // MetroCode: Metro code of this metro region. This is equivalent to - // dma_id. - MetroCode string `json:"metroCode,omitempty"` - - // Name: Name of this metro region. - Name string `json:"name,omitempty"` - - // ForceSendFields is a list of field names (e.g. "CountryCode") 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. "CountryCode") 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 *Metro) MarshalJSON() ([]byte, error) { - type NoMethod Metro - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// MetrosListResponse: Metro List Response -type MetrosListResponse struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#metrosListResponse". - Kind string `json:"kind,omitempty"` - - // Metros: Metro collection. - Metros []*Metro `json:"metros,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 *MetrosListResponse) MarshalJSON() ([]byte, error) { - type NoMethod MetrosListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// MobileApp: Contains information about a mobile app. Used as a landing -// page deep link. -type MobileApp struct { - // Directory: Mobile app directory. - // - // Possible values: - // "UNKNOWN" - // "APPLE_APP_STORE" - // "GOOGLE_PLAY_STORE" - // "ROKU_APP_STORE" - // "AMAZON_FIRETV_APP_STORE" - // "PLAYSTATION_APP_STORE" - // "APPLE_TV_APP_STORE" - // "XBOX_APP_STORE" - // "SAMSUNG_TV_APP_STORE" - // "ANDROID_TV_APP_STORE" - // "GENERIC_CTV_APP_STORE" - Directory string `json:"directory,omitempty"` - - // Id: ID of this mobile app. - Id string `json:"id,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#mobileApp". - Kind string `json:"kind,omitempty"` - - // PublisherName: Publisher name. - PublisherName string `json:"publisherName,omitempty"` - - // Title: Title of this mobile app. - Title string `json:"title,omitempty"` - - // ServerResponse contains the HTTP response code and headers from the - // server. - googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Directory") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Directory") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. - NullFields []string `json:"-"` -} - -func (s *MobileApp) MarshalJSON() ([]byte, error) { - type NoMethod MobileApp - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// MobileAppsListResponse: Mobile app List Response -type MobileAppsListResponse struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#mobileAppsListResponse". - Kind string `json:"kind,omitempty"` - - // MobileApps: Mobile apps collection. - MobileApps []*MobileApp `json:"mobileApps,omitempty"` - - // NextPageToken: Pagination token to be used for the next list - // operation. - 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. "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 *MobileAppsListResponse) MarshalJSON() ([]byte, error) { - type NoMethod MobileAppsListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// MobileCarrier: Contains information about a mobile carrier that can -// be targeted by ads. -type MobileCarrier struct { - // CountryCode: Country code of the country to which this mobile carrier - // belongs. - CountryCode string `json:"countryCode,omitempty"` - - // CountryDartId: DART ID of the country to which this mobile carrier - // belongs. - CountryDartId int64 `json:"countryDartId,omitempty,string"` - - // Id: ID of this mobile carrier. - Id int64 `json:"id,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#mobileCarrier". - Kind string `json:"kind,omitempty"` - - // Name: Name of this mobile carrier. - 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. "CountryCode") 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. "CountryCode") 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 *MobileCarrier) MarshalJSON() ([]byte, error) { - type NoMethod MobileCarrier - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// MobileCarriersListResponse: Mobile Carrier List Response -type MobileCarriersListResponse struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#mobileCarriersListResponse". - Kind string `json:"kind,omitempty"` - - // MobileCarriers: Mobile carrier collection. - MobileCarriers []*MobileCarrier `json:"mobileCarriers,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 *MobileCarriersListResponse) MarshalJSON() ([]byte, error) { - type NoMethod MobileCarriersListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// ObaIcon: Online Behavioral Advertiser icon. -type ObaIcon struct { - // IconClickThroughUrl: URL to redirect to when an OBA icon is clicked. - IconClickThroughUrl string `json:"iconClickThroughUrl,omitempty"` - - // IconClickTrackingUrl: URL to track click when an OBA icon is clicked. - IconClickTrackingUrl string `json:"iconClickTrackingUrl,omitempty"` - - // IconViewTrackingUrl: URL to track view when an OBA icon is clicked. - IconViewTrackingUrl string `json:"iconViewTrackingUrl,omitempty"` - - // Program: Identifies the industry initiative that the icon supports. - // For example, AdChoices. - Program string `json:"program,omitempty"` - - // ResourceUrl: OBA icon resource URL. Campaign Manager only supports - // image and JavaScript icons. Learn more - ResourceUrl string `json:"resourceUrl,omitempty"` - - // Size: OBA icon size. - Size *Size `json:"size,omitempty"` - - // XPosition: OBA icon x coordinate position. Accepted values are left - // or right. - XPosition string `json:"xPosition,omitempty"` - - // YPosition: OBA icon y coordinate position. Accepted values are top or - // bottom. - YPosition string `json:"yPosition,omitempty"` - - // ForceSendFields is a list of field names (e.g. "IconClickThroughUrl") - // 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. "IconClickThroughUrl") 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 *ObaIcon) MarshalJSON() ([]byte, error) { - type NoMethod ObaIcon - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// ObjectFilter: Object Filter. -type ObjectFilter struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#objectFilter". - Kind string `json:"kind,omitempty"` - - // ObjectIds: Applicable when status is ASSIGNED. The user has access to - // objects with these object IDs. - ObjectIds googleapi.Int64s `json:"objectIds,omitempty"` - - // Status: Status of the filter. NONE means the user has access to none - // of the objects. ALL means the user has access to all objects. - // ASSIGNED means the user has access to the objects with IDs in the - // objectIds list. - // - // Possible values: - // "NONE" - // "ASSIGNED" - // "ALL" - Status string `json:"status,omitempty"` - - // 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 *ObjectFilter) MarshalJSON() ([]byte, error) { - type NoMethod ObjectFilter - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// OffsetPosition: Offset Position. -type OffsetPosition struct { - // Left: Offset distance from left side of an asset or a window. - Left int64 `json:"left,omitempty"` - - // Top: Offset distance from top side of an asset or a window. - Top int64 `json:"top,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Left") 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. "Left") 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 *OffsetPosition) MarshalJSON() ([]byte, error) { - type NoMethod OffsetPosition - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// OmnitureSettings: Omniture Integration Settings. -type OmnitureSettings struct { - // OmnitureCostDataEnabled: Whether placement cost data will be sent to - // Omniture. This property can be enabled only if - // omnitureIntegrationEnabled is true. - OmnitureCostDataEnabled bool `json:"omnitureCostDataEnabled,omitempty"` - - // OmnitureIntegrationEnabled: Whether Omniture integration is enabled. - // This property can be enabled only when the "Advanced Ad Serving" - // account setting is enabled. - OmnitureIntegrationEnabled bool `json:"omnitureIntegrationEnabled,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "OmnitureCostDataEnabled") 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. "OmnitureCostDataEnabled") - // 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 *OmnitureSettings) MarshalJSON() ([]byte, error) { - type NoMethod OmnitureSettings - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// OperatingSystem: Contains information about an operating system that -// can be targeted by ads. -type OperatingSystem struct { - // DartId: DART ID of this operating system. This is the ID used for - // targeting. - DartId int64 `json:"dartId,omitempty,string"` - - // Desktop: Whether this operating system is for desktop. - Desktop bool `json:"desktop,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#operatingSystem". - Kind string `json:"kind,omitempty"` - - // Mobile: Whether this operating system is for mobile. - Mobile bool `json:"mobile,omitempty"` - - // Name: Name of this operating system. - 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. "DartId") 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. "DartId") 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 *OperatingSystem) MarshalJSON() ([]byte, error) { - type NoMethod OperatingSystem - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// OperatingSystemVersion: Contains information about a particular -// version of an operating system that can be targeted by ads. -type OperatingSystemVersion struct { - // Id: ID of this operating system version. - Id int64 `json:"id,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#operatingSystemVersion". - Kind string `json:"kind,omitempty"` - - // MajorVersion: Major version (leftmost number) of this operating - // system version. - MajorVersion string `json:"majorVersion,omitempty"` - - // MinorVersion: Minor version (number after the first dot) of this - // operating system version. - MinorVersion string `json:"minorVersion,omitempty"` - - // Name: Name of this operating system version. - Name string `json:"name,omitempty"` - - // OperatingSystem: Operating system of this operating system version. - OperatingSystem *OperatingSystem `json:"operatingSystem,omitempty"` - - // ServerResponse contains the HTTP response code and headers from the - // server. - googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Id") 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. "Id") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // 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 *OperatingSystemVersion) MarshalJSON() ([]byte, error) { - type NoMethod OperatingSystemVersion - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// OperatingSystemVersionsListResponse: Operating System Version List -// Response -type OperatingSystemVersionsListResponse struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#operatingSystemVersionsListResponse". - Kind string `json:"kind,omitempty"` - - // OperatingSystemVersions: Operating system version collection. - OperatingSystemVersions []*OperatingSystemVersion `json:"operatingSystemVersions,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 *OperatingSystemVersionsListResponse) MarshalJSON() ([]byte, error) { - type NoMethod OperatingSystemVersionsListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// OperatingSystemsListResponse: Operating System List Response -type OperatingSystemsListResponse struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#operatingSystemsListResponse". - Kind string `json:"kind,omitempty"` - - // OperatingSystems: Operating system collection. - OperatingSystems []*OperatingSystem `json:"operatingSystems,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 *OperatingSystemsListResponse) MarshalJSON() ([]byte, error) { - type NoMethod OperatingSystemsListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// OptimizationActivity: Creative optimization activity. -type OptimizationActivity struct { - // FloodlightActivityId: Floodlight activity ID of this optimization - // activity. This is a required field. - FloodlightActivityId int64 `json:"floodlightActivityId,omitempty,string"` - - // FloodlightActivityIdDimensionValue: Dimension value for the ID of the - // floodlight activity. This is a read-only, auto-generated field. - FloodlightActivityIdDimensionValue *DimensionValue `json:"floodlightActivityIdDimensionValue,omitempty"` - - // Weight: Weight associated with this optimization. The weight assigned - // will be understood in proportion to the weights assigned to the other - // optimization activities. Value must be greater than or equal to 1. - Weight int64 `json:"weight,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "FloodlightActivityId") 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. "FloodlightActivityId") 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 *OptimizationActivity) MarshalJSON() ([]byte, error) { - type NoMethod OptimizationActivity - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// Order: Describes properties of a Planning order. -type Order struct { - // AccountId: Account ID of this order. - AccountId int64 `json:"accountId,omitempty,string"` - - // AdvertiserId: Advertiser ID of this order. - AdvertiserId int64 `json:"advertiserId,omitempty,string"` - - // ApproverUserProfileIds: IDs for users that have to approve documents - // created for this order. - ApproverUserProfileIds googleapi.Int64s `json:"approverUserProfileIds,omitempty"` - - // BuyerInvoiceId: Buyer invoice ID associated with this order. - BuyerInvoiceId string `json:"buyerInvoiceId,omitempty"` - - // BuyerOrganizationName: Name of the buyer organization. - BuyerOrganizationName string `json:"buyerOrganizationName,omitempty"` - - // Comments: Comments in this order. - Comments string `json:"comments,omitempty"` - - // Contacts: Contacts for this order. - Contacts []*OrderContact `json:"contacts,omitempty"` - - // Id: ID of this order. This is a read-only, auto-generated field. - Id int64 `json:"id,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#order". - Kind string `json:"kind,omitempty"` - - // LastModifiedInfo: Information about the most recent modification of - // this order. - LastModifiedInfo *LastModifiedInfo `json:"lastModifiedInfo,omitempty"` - - // Name: Name of this order. - Name string `json:"name,omitempty"` - - // Notes: Notes of this order. - Notes string `json:"notes,omitempty"` - - // PlanningTermId: ID of the terms and conditions template used in this - // order. - PlanningTermId int64 `json:"planningTermId,omitempty,string"` - - // ProjectId: Project ID of this order. - ProjectId int64 `json:"projectId,omitempty,string"` - - // SellerOrderId: Seller order ID associated with this order. - SellerOrderId string `json:"sellerOrderId,omitempty"` - - // SellerOrganizationName: Name of the seller organization. - SellerOrganizationName string `json:"sellerOrganizationName,omitempty"` - - // SiteId: Site IDs this order is associated with. - SiteId googleapi.Int64s `json:"siteId,omitempty"` - - // SiteNames: Free-form site names this order is associated with. - SiteNames []string `json:"siteNames,omitempty"` - - // SubaccountId: Subaccount ID of this order. - SubaccountId int64 `json:"subaccountId,omitempty,string"` - - // TermsAndConditions: Terms and conditions of this order. - TermsAndConditions string `json:"termsAndConditions,omitempty"` - - // ServerResponse contains the HTTP response code and headers from the - // server. - googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "AccountId") 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. "AccountId") 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 *Order) MarshalJSON() ([]byte, error) { - type NoMethod Order - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// OrderContact: Contact of an order. -type OrderContact struct { - // ContactInfo: Free-form information about this contact. It could be - // any information related to this contact in addition to type, title, - // name, and signature user profile ID. - ContactInfo string `json:"contactInfo,omitempty"` - - // ContactName: Name of this contact. - ContactName string `json:"contactName,omitempty"` - - // ContactTitle: Title of this contact. - ContactTitle string `json:"contactTitle,omitempty"` - - // ContactType: Type of this contact. - // - // Possible values: - // "PLANNING_ORDER_CONTACT_BUYER_CONTACT" - // "PLANNING_ORDER_CONTACT_BUYER_BILLING_CONTACT" - // "PLANNING_ORDER_CONTACT_SELLER_CONTACT" - ContactType string `json:"contactType,omitempty"` - - // SignatureUserProfileId: ID of the user profile containing the - // signature that will be embedded into order documents. - SignatureUserProfileId int64 `json:"signatureUserProfileId,omitempty,string"` - - // ForceSendFields is a list of field names (e.g. "ContactInfo") 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. "ContactInfo") 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 *OrderContact) MarshalJSON() ([]byte, error) { - type NoMethod OrderContact - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// OrderDocument: Contains properties of a Planning order document. -type OrderDocument struct { - // AccountId: Account ID of this order document. - AccountId int64 `json:"accountId,omitempty,string"` - - // AdvertiserId: Advertiser ID of this order document. - AdvertiserId int64 `json:"advertiserId,omitempty,string"` - - // AmendedOrderDocumentId: The amended order document ID of this order - // document. An order document can be created by optionally amending - // another order document so that the change history can be preserved. - AmendedOrderDocumentId int64 `json:"amendedOrderDocumentId,omitempty,string"` - - // ApprovedByUserProfileIds: IDs of users who have approved this order - // document. - ApprovedByUserProfileIds googleapi.Int64s `json:"approvedByUserProfileIds,omitempty"` - - // Cancelled: Whether this order document is cancelled. - Cancelled bool `json:"cancelled,omitempty"` - - // CreatedInfo: Information about the creation of this order document. - CreatedInfo *LastModifiedInfo `json:"createdInfo,omitempty"` - - EffectiveDate string `json:"effectiveDate,omitempty"` - - // Id: ID of this order document. - Id int64 `json:"id,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#orderDocument". - Kind string `json:"kind,omitempty"` - - // LastSentRecipients: List of email addresses that received the last - // sent document. - LastSentRecipients []string `json:"lastSentRecipients,omitempty"` - - LastSentTime string `json:"lastSentTime,omitempty"` - - // OrderId: ID of the order from which this order document is created. - OrderId int64 `json:"orderId,omitempty,string"` - - // ProjectId: Project ID of this order document. - ProjectId int64 `json:"projectId,omitempty,string"` - - // Signed: Whether this order document has been signed. - Signed bool `json:"signed,omitempty"` - - // SubaccountId: Subaccount ID of this order document. - SubaccountId int64 `json:"subaccountId,omitempty,string"` - - // Title: Title of this order document. - Title string `json:"title,omitempty"` - - // Type: Type of this order document - // - // Possible values: - // "PLANNING_ORDER_TYPE_INSERTION_ORDER" - // "PLANNING_ORDER_TYPE_CHANGE_ORDER" - Type string `json:"type,omitempty"` - - // ServerResponse contains the HTTP response code and headers from the - // server. - googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "AccountId") 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. "AccountId") 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 *OrderDocument) MarshalJSON() ([]byte, error) { - type NoMethod OrderDocument - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// OrderDocumentsListResponse: Order document List Response -type OrderDocumentsListResponse struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#orderDocumentsListResponse". - Kind string `json:"kind,omitempty"` - - // NextPageToken: Pagination token to be used for the next list - // operation. - NextPageToken string `json:"nextPageToken,omitempty"` - - // OrderDocuments: Order document collection - OrderDocuments []*OrderDocument `json:"orderDocuments,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 *OrderDocumentsListResponse) MarshalJSON() ([]byte, error) { - type NoMethod OrderDocumentsListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// OrdersListResponse: Order List Response -type OrdersListResponse struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#ordersListResponse". - Kind string `json:"kind,omitempty"` - - // NextPageToken: Pagination token to be used for the next list - // operation. - NextPageToken string `json:"nextPageToken,omitempty"` - - // Orders: Order collection. - Orders []*Order `json:"orders,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 *OrdersListResponse) MarshalJSON() ([]byte, error) { - type NoMethod OrdersListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// PathFilter: Represents a DfaReporting path filter. -type PathFilter struct { - // EventFilters: Event filters in path report. - EventFilters []*EventFilter `json:"eventFilters,omitempty"` - - // Kind: The kind of resource this is, in this case - // dfareporting#pathFilter. - Kind string `json:"kind,omitempty"` - - // PathMatchPosition: Determines how the 'value' field is matched when - // filtering. If not specified, defaults to EXACT. If set to - // WILDCARD_EXPRESSION, '*' is allowed as a placeholder for variable - // length character sequences, and it can be escaped with a backslash. - // Note, only paid search dimensions ('dfa:paidSearch*') allow a - // matchType other than EXACT. - // - // Possible values: - // "PATH_MATCH_POSITION_UNSPECIFIED" - // "ANY" - // "FIRST" - // "LAST" - PathMatchPosition string `json:"pathMatchPosition,omitempty"` - - // ForceSendFields is a list of field names (e.g. "EventFilters") 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. "EventFilters") 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 *PathFilter) MarshalJSON() ([]byte, error) { - type NoMethod PathFilter - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// PathReportCompatibleFields: Represents fields that are compatible to -// be selected for a report of type "PATH". -type PathReportCompatibleFields struct { - // ChannelGroupings: Dimensions which are compatible to be selected in - // the "channelGroupings" section of the report. - ChannelGroupings []*Dimension `json:"channelGroupings,omitempty"` - - // Dimensions: Dimensions which are compatible to be selected in the - // "dimensions" section of the report. - Dimensions []*Dimension `json:"dimensions,omitempty"` - - // Kind: The kind of resource this is, in this case - // dfareporting#pathReportCompatibleFields. - Kind string `json:"kind,omitempty"` - - // Metrics: Metrics which are compatible to be selected in the - // "metricNames" section of the report. - Metrics []*Metric `json:"metrics,omitempty"` - - // PathFilters: Dimensions which are compatible to be selected in the - // "pathFilters" section of the report. - PathFilters []*Dimension `json:"pathFilters,omitempty"` - - // ForceSendFields is a list of field names (e.g. "ChannelGroupings") 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. "ChannelGroupings") 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 *PathReportCompatibleFields) MarshalJSON() ([]byte, error) { - type NoMethod PathReportCompatibleFields - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// PathReportDimensionValue: Represents a PathReportDimensionValue -// resource. -type PathReportDimensionValue struct { - // DimensionName: The name of the dimension. - DimensionName string `json:"dimensionName,omitempty"` - - // Ids: The possible ID's associated with the value if available. - Ids []string `json:"ids,omitempty"` - - // Kind: The kind of resource this is, in this case - // dfareporting#pathReportDimensionValue. - Kind string `json:"kind,omitempty"` - - // MatchType: Determines how the 'value' field is matched when - // filtering. If not specified, defaults to EXACT. If set to - // WILDCARD_EXPRESSION, '*' is allowed as a placeholder for variable - // length character sequences, and it can be escaped with a backslash. - // Note, only paid search dimensions ('dfa:paidSearch*') allow a - // matchType other than EXACT. - // - // Possible values: - // "EXACT" - // "BEGINS_WITH" - // "CONTAINS" - // "WILDCARD_EXPRESSION" - MatchType string `json:"matchType,omitempty"` - - // Values: The possible values of the dimension. - Values []string `json:"values,omitempty"` - - // ForceSendFields is a list of field names (e.g. "DimensionName") 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. "DimensionName") 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 *PathReportDimensionValue) MarshalJSON() ([]byte, error) { - type NoMethod PathReportDimensionValue - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// PathToConversionReportCompatibleFields: Represents fields that are -// compatible to be selected for a report of type "PATH_TO_CONVERSION". -type PathToConversionReportCompatibleFields struct { - // ConversionDimensions: Conversion dimensions which are compatible to - // be selected in the "conversionDimensions" section of the report. - ConversionDimensions []*Dimension `json:"conversionDimensions,omitempty"` - - // CustomFloodlightVariables: Custom floodlight variables which are - // compatible to be selected in the "customFloodlightVariables" section - // of the report. - CustomFloodlightVariables []*Dimension `json:"customFloodlightVariables,omitempty"` - - // Kind: The kind of resource this is, in this case - // dfareporting#pathToConversionReportCompatibleFields. - Kind string `json:"kind,omitempty"` - - // Metrics: Metrics which are compatible to be selected in the - // "metricNames" section of the report. - Metrics []*Metric `json:"metrics,omitempty"` - - // PerInteractionDimensions: Per-interaction dimensions which are - // compatible to be selected in the "perInteractionDimensions" section - // of the report. - PerInteractionDimensions []*Dimension `json:"perInteractionDimensions,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "ConversionDimensions") 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. "ConversionDimensions") 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 *PathToConversionReportCompatibleFields) MarshalJSON() ([]byte, error) { - type NoMethod PathToConversionReportCompatibleFields - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// Placement: Contains properties of a placement. -type Placement struct { - // AccountId: Account ID of this placement. This field can be left - // blank. - AccountId int64 `json:"accountId,omitempty,string"` - - // AdBlockingOptOut: Whether this placement opts out of ad blocking. - // When true, ad blocking is disabled for this placement. When false, - // the campaign and site settings take effect. - AdBlockingOptOut bool `json:"adBlockingOptOut,omitempty"` - - // AdditionalSizes: Additional sizes associated with this placement. - // When inserting or updating a placement, only the size ID field is - // used. - AdditionalSizes []*Size `json:"additionalSizes,omitempty"` - - // AdvertiserId: Advertiser ID of this placement. This field can be left - // blank. - AdvertiserId int64 `json:"advertiserId,omitempty,string"` - - // AdvertiserIdDimensionValue: Dimension value for the ID of the - // advertiser. This is a read-only, auto-generated field. - AdvertiserIdDimensionValue *DimensionValue `json:"advertiserIdDimensionValue,omitempty"` - - // Archived: Whether this placement is archived. - Archived bool `json:"archived,omitempty"` - - // CampaignId: Campaign ID of this placement. This field is a required - // field on insertion. - CampaignId int64 `json:"campaignId,omitempty,string"` - - // CampaignIdDimensionValue: Dimension value for the ID of the campaign. - // This is a read-only, auto-generated field. - CampaignIdDimensionValue *DimensionValue `json:"campaignIdDimensionValue,omitempty"` - - // Comment: Comments for this placement. - Comment string `json:"comment,omitempty"` - - // Compatibility: Placement compatibility. DISPLAY and - // DISPLAY_INTERSTITIAL refer to rendering on desktop, on mobile devices - // or in mobile apps for regular or interstitial ads respectively. APP - // and APP_INTERSTITIAL are no longer allowed for new placement - // insertions. Instead, use DISPLAY or DISPLAY_INTERSTITIAL. - // IN_STREAM_VIDEO refers to rendering in in-stream video ads developed - // with the VAST standard. This field is required on insertion. - // - // Possible values: - // "DISPLAY" - // "DISPLAY_INTERSTITIAL" - // "APP" - // "APP_INTERSTITIAL" - // "IN_STREAM_VIDEO" - // "IN_STREAM_AUDIO" - Compatibility string `json:"compatibility,omitempty"` - - // ContentCategoryId: ID of the content category assigned to this - // placement. - ContentCategoryId int64 `json:"contentCategoryId,omitempty,string"` - - // CreateInfo: Information about the creation of this placement. This is - // a read-only field. - CreateInfo *LastModifiedInfo `json:"createInfo,omitempty"` - - // DirectorySiteId: Directory site ID of this placement. On insert, you - // must set either this field or the siteId field to specify the site - // associated with this placement. This is a required field that is - // read-only after insertion. - DirectorySiteId int64 `json:"directorySiteId,omitempty,string"` - - // DirectorySiteIdDimensionValue: Dimension value for the ID of the - // directory site. This is a read-only, auto-generated field. - DirectorySiteIdDimensionValue *DimensionValue `json:"directorySiteIdDimensionValue,omitempty"` - - // ExternalId: External ID for this placement. - ExternalId string `json:"externalId,omitempty"` - - // Id: ID of this placement. This is a read-only, auto-generated field. - Id int64 `json:"id,omitempty,string"` - - // IdDimensionValue: Dimension value for the ID of this placement. This - // is a read-only, auto-generated field. - IdDimensionValue *DimensionValue `json:"idDimensionValue,omitempty"` - - // KeyName: Key name of this placement. This is a read-only, - // auto-generated field. - KeyName string `json:"keyName,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#placement". - Kind string `json:"kind,omitempty"` - - // LastModifiedInfo: Information about the most recent modification of - // this placement. This is a read-only field. - LastModifiedInfo *LastModifiedInfo `json:"lastModifiedInfo,omitempty"` - - // LookbackConfiguration: Lookback window settings for this placement. - LookbackConfiguration *LookbackConfiguration `json:"lookbackConfiguration,omitempty"` - - // Name: Name of this placement.This is a required field and must be - // less than or equal to 512 characters long. - Name string `json:"name,omitempty"` - - // PartnerWrappingData: Measurement partner provided settings for a - // wrapped placement. - PartnerWrappingData *MeasurementPartnerWrappingData `json:"partnerWrappingData,omitempty"` - - // PaymentApproved: Whether payment was approved for this placement. - // This is a read-only field relevant only to publisher-paid placements. - PaymentApproved bool `json:"paymentApproved,omitempty"` - - // PaymentSource: Payment source for this placement. This is a required - // field that is read-only after insertion. - // - // Possible values: - // "PLACEMENT_AGENCY_PAID" - // "PLACEMENT_PUBLISHER_PAID" - PaymentSource string `json:"paymentSource,omitempty"` - - // PlacementGroupId: ID of this placement's group, if applicable. - PlacementGroupId int64 `json:"placementGroupId,omitempty,string"` - - // PlacementGroupIdDimensionValue: Dimension value for the ID of the - // placement group. This is a read-only, auto-generated field. - PlacementGroupIdDimensionValue *DimensionValue `json:"placementGroupIdDimensionValue,omitempty"` - - // PlacementStrategyId: ID of the placement strategy assigned to this - // placement. - PlacementStrategyId int64 `json:"placementStrategyId,omitempty,string"` - - // PricingSchedule: Pricing schedule of this placement. This field is - // required on insertion, specifically subfields startDate, endDate and - // pricingType. - PricingSchedule *PricingSchedule `json:"pricingSchedule,omitempty"` - - // Primary: Whether this placement is the primary placement of a - // roadblock (placement group). You cannot change this field from true - // to false. Setting this field to true will automatically set the - // primary field on the original primary placement of the roadblock to - // false, and it will automatically set the roadblock's - // primaryPlacementId field to the ID of this placement. - Primary bool `json:"primary,omitempty"` - - // PublisherUpdateInfo: Information about the last publisher update. - // This is a read-only field. - PublisherUpdateInfo *LastModifiedInfo `json:"publisherUpdateInfo,omitempty"` - - // SiteId: Site ID associated with this placement. On insert, you must - // set either this field or the directorySiteId field to specify the - // site associated with this placement. This is a required field that is - // read-only after insertion. - SiteId int64 `json:"siteId,omitempty,string"` - - // SiteIdDimensionValue: Dimension value for the ID of the site. This is - // a read-only, auto-generated field. - SiteIdDimensionValue *DimensionValue `json:"siteIdDimensionValue,omitempty"` - - // Size: Size associated with this placement. When inserting or updating - // a placement, only the size ID field is used. This field is required - // on insertion. - Size *Size `json:"size,omitempty"` - - // SslRequired: Whether creatives assigned to this placement must be - // SSL-compliant. - SslRequired bool `json:"sslRequired,omitempty"` - - // Status: Third-party placement status. - // - // Possible values: - // "PENDING_REVIEW" - // "PAYMENT_ACCEPTED" - // "PAYMENT_REJECTED" - // "ACKNOWLEDGE_REJECTION" - // "ACKNOWLEDGE_ACCEPTANCE" - // "DRAFT" - Status string `json:"status,omitempty"` - - // SubaccountId: Subaccount ID of this placement. This field can be left - // blank. - SubaccountId int64 `json:"subaccountId,omitempty,string"` - - // TagFormats: Tag formats to generate for this placement. This field is - // required on insertion. Acceptable values are: - - // "PLACEMENT_TAG_STANDARD" - "PLACEMENT_TAG_IFRAME_JAVASCRIPT" - - // "PLACEMENT_TAG_IFRAME_ILAYER" - "PLACEMENT_TAG_INTERNAL_REDIRECT" - - // "PLACEMENT_TAG_JAVASCRIPT" - - // "PLACEMENT_TAG_INTERSTITIAL_IFRAME_JAVASCRIPT" - - // "PLACEMENT_TAG_INTERSTITIAL_INTERNAL_REDIRECT" - - // "PLACEMENT_TAG_INTERSTITIAL_JAVASCRIPT" - - // "PLACEMENT_TAG_CLICK_COMMANDS" - - // "PLACEMENT_TAG_INSTREAM_VIDEO_PREFETCH" - - // "PLACEMENT_TAG_INSTREAM_VIDEO_PREFETCH_VAST_3" - - // "PLACEMENT_TAG_INSTREAM_VIDEO_PREFETCH_VAST_4" - - // "PLACEMENT_TAG_TRACKING" - "PLACEMENT_TAG_TRACKING_IFRAME" - - // "PLACEMENT_TAG_TRACKING_JAVASCRIPT" - // - // Possible values: - // "PLACEMENT_TAG_STANDARD" - // "PLACEMENT_TAG_IFRAME_JAVASCRIPT" - // "PLACEMENT_TAG_IFRAME_ILAYER" - // "PLACEMENT_TAG_INTERNAL_REDIRECT" - // "PLACEMENT_TAG_JAVASCRIPT" - // "PLACEMENT_TAG_INTERSTITIAL_IFRAME_JAVASCRIPT" - // "PLACEMENT_TAG_INTERSTITIAL_INTERNAL_REDIRECT" - // "PLACEMENT_TAG_INTERSTITIAL_JAVASCRIPT" - // "PLACEMENT_TAG_CLICK_COMMANDS" - // "PLACEMENT_TAG_INSTREAM_VIDEO_PREFETCH" - // "PLACEMENT_TAG_TRACKING" - // "PLACEMENT_TAG_TRACKING_IFRAME" - // "PLACEMENT_TAG_TRACKING_JAVASCRIPT" - // "PLACEMENT_TAG_INSTREAM_VIDEO_PREFETCH_VAST_3" - // "PLACEMENT_TAG_IFRAME_JAVASCRIPT_LEGACY" - // "PLACEMENT_TAG_JAVASCRIPT_LEGACY" - // "PLACEMENT_TAG_INTERSTITIAL_IFRAME_JAVASCRIPT_LEGACY" - // "PLACEMENT_TAG_INTERSTITIAL_JAVASCRIPT_LEGACY" - // "PLACEMENT_TAG_INSTREAM_VIDEO_PREFETCH_VAST_4" - // "PLACEMENT_TAG_TRACKING_THIRD_PARTY_MEASUREMENT" - TagFormats []string `json:"tagFormats,omitempty"` - - // TagSetting: Tag settings for this placement. - TagSetting *TagSetting `json:"tagSetting,omitempty"` - - // VideoActiveViewOptOut: Whether Verification and ActiveView are - // disabled for in-stream video creatives for this placement. The same - // setting videoActiveViewOptOut exists on the site level -- the opt out - // occurs if either of these settings are true. These settings are - // distinct from DirectorySites.settings.activeViewOptOut or - // Sites.siteSettings.activeViewOptOut which only apply to display ads. - // However, Accounts.activeViewOptOut opts out both video traffic, as - // well as display ads, from Verification and ActiveView. - VideoActiveViewOptOut bool `json:"videoActiveViewOptOut,omitempty"` - - // VideoSettings: A collection of settings which affect video creatives - // served through this placement. Applicable to placements with - // IN_STREAM_VIDEO compatibility. - VideoSettings *VideoSettings `json:"videoSettings,omitempty"` - - // VpaidAdapterChoice: VPAID adapter setting for this placement. - // Controls which VPAID format the measurement adapter will use for - // in-stream video creatives assigned to this placement. *Note:* Flash - // is no longer supported. This field now defaults to HTML5 when the - // following values are provided: FLASH, BOTH. - // - // Possible values: - // "DEFAULT" - // "FLASH" - // "HTML5" - // "BOTH" - VpaidAdapterChoice string `json:"vpaidAdapterChoice,omitempty"` - - // WrappingOptOut: Whether this placement opts out of tag wrapping. - WrappingOptOut bool `json:"wrappingOptOut,omitempty"` - - // ServerResponse contains the HTTP response code and headers from the - // server. - googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "AccountId") 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. "AccountId") 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 *Placement) MarshalJSON() ([]byte, error) { - type NoMethod Placement - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// PlacementAssignment: Placement Assignment. -type PlacementAssignment struct { - // Active: Whether this placement assignment is active. When true, the - // placement will be included in the ad's rotation. - Active bool `json:"active,omitempty"` - - // PlacementId: ID of the placement to be assigned. This is a required - // field. - PlacementId int64 `json:"placementId,omitempty,string"` - - // PlacementIdDimensionValue: Dimension value for the ID of the - // placement. This is a read-only, auto-generated field. - PlacementIdDimensionValue *DimensionValue `json:"placementIdDimensionValue,omitempty"` - - // SslRequired: Whether the placement to be assigned requires SSL. This - // is a read-only field that is auto-generated when the ad is inserted - // or updated. - SslRequired bool `json:"sslRequired,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Active") 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. "Active") 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 *PlacementAssignment) MarshalJSON() ([]byte, error) { - type NoMethod PlacementAssignment - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// PlacementGroup: Contains properties of a package or roadblock. -type PlacementGroup struct { - // AccountId: Account ID of this placement group. This is a read-only - // field that can be left blank. - AccountId int64 `json:"accountId,omitempty,string"` - - // AdvertiserId: Advertiser ID of this placement group. This is a - // required field on insertion. - AdvertiserId int64 `json:"advertiserId,omitempty,string"` - - // AdvertiserIdDimensionValue: Dimension value for the ID of the - // advertiser. This is a read-only, auto-generated field. - AdvertiserIdDimensionValue *DimensionValue `json:"advertiserIdDimensionValue,omitempty"` - - // Archived: Whether this placement group is archived. - Archived bool `json:"archived,omitempty"` - - // CampaignId: Campaign ID of this placement group. This field is - // required on insertion. - CampaignId int64 `json:"campaignId,omitempty,string"` - - // CampaignIdDimensionValue: Dimension value for the ID of the campaign. - // This is a read-only, auto-generated field. - CampaignIdDimensionValue *DimensionValue `json:"campaignIdDimensionValue,omitempty"` - - // ChildPlacementIds: IDs of placements which are assigned to this - // placement group. This is a read-only, auto-generated field. - ChildPlacementIds googleapi.Int64s `json:"childPlacementIds,omitempty"` - - // Comment: Comments for this placement group. - Comment string `json:"comment,omitempty"` - - // ContentCategoryId: ID of the content category assigned to this - // placement group. - ContentCategoryId int64 `json:"contentCategoryId,omitempty,string"` - - // CreateInfo: Information about the creation of this placement group. - // This is a read-only field. - CreateInfo *LastModifiedInfo `json:"createInfo,omitempty"` - - // DirectorySiteId: Directory site ID associated with this placement - // group. On insert, you must set either this field or the site_id field - // to specify the site associated with this placement group. This is a - // required field that is read-only after insertion. - DirectorySiteId int64 `json:"directorySiteId,omitempty,string"` - - // DirectorySiteIdDimensionValue: Dimension value for the ID of the - // directory site. This is a read-only, auto-generated field. - DirectorySiteIdDimensionValue *DimensionValue `json:"directorySiteIdDimensionValue,omitempty"` - - // ExternalId: External ID for this placement. - ExternalId string `json:"externalId,omitempty"` - - // Id: ID of this placement group. This is a read-only, auto-generated - // field. - Id int64 `json:"id,omitempty,string"` - - // IdDimensionValue: Dimension value for the ID of this placement group. - // This is a read-only, auto-generated field. - IdDimensionValue *DimensionValue `json:"idDimensionValue,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#placementGroup". - Kind string `json:"kind,omitempty"` - - // LastModifiedInfo: Information about the most recent modification of - // this placement group. This is a read-only field. - LastModifiedInfo *LastModifiedInfo `json:"lastModifiedInfo,omitempty"` - - // Name: Name of this placement group. This is a required field and must - // be less than 256 characters long. - Name string `json:"name,omitempty"` - - // PlacementGroupType: Type of this placement group. A package is a - // simple group of placements that acts as a single pricing point for a - // group of tags. A roadblock is a group of placements that not only - // acts as a single pricing point, but also assumes that all the tags in - // it will be served at the same time. A roadblock requires one of its - // assigned placements to be marked as primary for reporting. This field - // is required on insertion. - // - // Possible values: - // "PLACEMENT_PACKAGE" - // "PLACEMENT_ROADBLOCK" - PlacementGroupType string `json:"placementGroupType,omitempty"` - - // PlacementStrategyId: ID of the placement strategy assigned to this - // placement group. - PlacementStrategyId int64 `json:"placementStrategyId,omitempty,string"` - - // PricingSchedule: Pricing schedule of this placement group. This field - // is required on insertion. - PricingSchedule *PricingSchedule `json:"pricingSchedule,omitempty"` - - // PrimaryPlacementId: ID of the primary placement, used to calculate - // the media cost of a roadblock (placement group). Modifying this field - // will automatically modify the primary field on all affected roadblock - // child placements. - PrimaryPlacementId int64 `json:"primaryPlacementId,omitempty,string"` - - // PrimaryPlacementIdDimensionValue: Dimension value for the ID of the - // primary placement. This is a read-only, auto-generated field. - PrimaryPlacementIdDimensionValue *DimensionValue `json:"primaryPlacementIdDimensionValue,omitempty"` - - // SiteId: Site ID associated with this placement group. On insert, you - // must set either this field or the directorySiteId field to specify - // the site associated with this placement group. This is a required - // field that is read-only after insertion. - SiteId int64 `json:"siteId,omitempty,string"` - - // SiteIdDimensionValue: Dimension value for the ID of the site. This is - // a read-only, auto-generated field. - SiteIdDimensionValue *DimensionValue `json:"siteIdDimensionValue,omitempty"` - - // SubaccountId: Subaccount ID of this placement group. This is a - // read-only field that can be left blank. - SubaccountId int64 `json:"subaccountId,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. "AccountId") 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. "AccountId") 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 *PlacementGroup) MarshalJSON() ([]byte, error) { - type NoMethod PlacementGroup - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// PlacementGroupsListResponse: Placement Group List Response -type PlacementGroupsListResponse struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#placementGroupsListResponse". - Kind string `json:"kind,omitempty"` - - // NextPageToken: Pagination token to be used for the next list - // operation. - NextPageToken string `json:"nextPageToken,omitempty"` - - // PlacementGroups: Placement group collection. - PlacementGroups []*PlacementGroup `json:"placementGroups,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 *PlacementGroupsListResponse) MarshalJSON() ([]byte, error) { - type NoMethod PlacementGroupsListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// PlacementStrategiesListResponse: Placement Strategy List Response -type PlacementStrategiesListResponse struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#placementStrategiesListResponse". - Kind string `json:"kind,omitempty"` - - // NextPageToken: Pagination token to be used for the next list - // operation. - NextPageToken string `json:"nextPageToken,omitempty"` - - // PlacementStrategies: Placement strategy collection. - PlacementStrategies []*PlacementStrategy `json:"placementStrategies,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 *PlacementStrategiesListResponse) MarshalJSON() ([]byte, error) { - type NoMethod PlacementStrategiesListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// PlacementStrategy: Contains properties of a placement strategy. -type PlacementStrategy struct { - // AccountId: Account ID of this placement strategy.This is a read-only - // field that can be left blank. - AccountId int64 `json:"accountId,omitempty,string"` - - // Id: ID of this placement strategy. This is a read-only, - // auto-generated field. - Id int64 `json:"id,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#placementStrategy". - Kind string `json:"kind,omitempty"` - - // Name: Name of this placement strategy. This is a required field. It - // must be less than 256 characters long and unique among placement - // strategies of the same account. - 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. "AccountId") 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. "AccountId") 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 *PlacementStrategy) MarshalJSON() ([]byte, error) { - type NoMethod PlacementStrategy - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// PlacementTag: Placement Tag -type PlacementTag struct { - // PlacementId: Placement ID - PlacementId int64 `json:"placementId,omitempty,string"` - - // TagDatas: Tags generated for this placement. - TagDatas []*TagData `json:"tagDatas,omitempty"` - - // ForceSendFields is a list of field names (e.g. "PlacementId") 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. "PlacementId") 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 *PlacementTag) MarshalJSON() ([]byte, error) { - type NoMethod PlacementTag - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// PlacementsGenerateTagsResponse: Placement GenerateTags Response -type PlacementsGenerateTagsResponse struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#placementsGenerateTagsResponse". - Kind string `json:"kind,omitempty"` - - // PlacementTags: Set of generated tags for the specified placements. - PlacementTags []*PlacementTag `json:"placementTags,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 *PlacementsGenerateTagsResponse) MarshalJSON() ([]byte, error) { - type NoMethod PlacementsGenerateTagsResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// PlacementsListResponse: Placement List Response -type PlacementsListResponse struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#placementsListResponse". - Kind string `json:"kind,omitempty"` - - // NextPageToken: Pagination token to be used for the next list - // operation. - NextPageToken string `json:"nextPageToken,omitempty"` - - // Placements: Placement collection. - Placements []*Placement `json:"placements,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 *PlacementsListResponse) MarshalJSON() ([]byte, error) { - type NoMethod PlacementsListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// PlatformType: Contains information about a platform type that can be -// targeted by ads. -type PlatformType struct { - // Id: ID of this platform type. - Id int64 `json:"id,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#platformType". - Kind string `json:"kind,omitempty"` - - // Name: Name of this platform type. - 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. "Id") 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. "Id") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // 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 *PlatformType) MarshalJSON() ([]byte, error) { - type NoMethod PlatformType - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// PlatformTypesListResponse: Platform Type List Response -type PlatformTypesListResponse struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#platformTypesListResponse". - Kind string `json:"kind,omitempty"` - - // PlatformTypes: Platform type collection. - PlatformTypes []*PlatformType `json:"platformTypes,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 *PlatformTypesListResponse) MarshalJSON() ([]byte, error) { - type NoMethod PlatformTypesListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// PopupWindowProperties: Popup Window Properties. -type PopupWindowProperties struct { - // Dimension: Popup dimension for a creative. This is a read-only field. - // Applicable to the following creative types: all RICH_MEDIA and all - // VPAID - Dimension *Size `json:"dimension,omitempty"` - - // Offset: Upper-left corner coordinates of the popup window. Applicable - // if positionType is COORDINATES. - Offset *OffsetPosition `json:"offset,omitempty"` - - // PositionType: Popup window position either centered or at specific - // coordinate. - // - // Possible values: - // "CENTER" - // "COORDINATES" - PositionType string `json:"positionType,omitempty"` - - // ShowAddressBar: Whether to display the browser address bar. - ShowAddressBar bool `json:"showAddressBar,omitempty"` - - // ShowMenuBar: Whether to display the browser menu bar. - ShowMenuBar bool `json:"showMenuBar,omitempty"` - - // ShowScrollBar: Whether to display the browser scroll bar. - ShowScrollBar bool `json:"showScrollBar,omitempty"` - - // ShowStatusBar: Whether to display the browser status bar. - ShowStatusBar bool `json:"showStatusBar,omitempty"` - - // ShowToolBar: Whether to display the browser tool bar. - ShowToolBar bool `json:"showToolBar,omitempty"` - - // Title: Title of popup window. - Title string `json:"title,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Dimension") 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. "Dimension") 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 *PopupWindowProperties) MarshalJSON() ([]byte, error) { - type NoMethod PopupWindowProperties - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// PostalCode: Contains information about a postal code that can be -// targeted by ads. -type PostalCode struct { - // Code: Postal code. This is equivalent to the id field. - Code string `json:"code,omitempty"` - - // CountryCode: Country code of the country to which this postal code - // belongs. - CountryCode string `json:"countryCode,omitempty"` - - // CountryDartId: DART ID of the country to which this postal code - // belongs. - CountryDartId int64 `json:"countryDartId,omitempty,string"` - - // Id: ID of this postal code. - Id string `json:"id,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#postalCode". - 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. "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 *PostalCode) MarshalJSON() ([]byte, error) { - type NoMethod PostalCode - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// PostalCodesListResponse: Postal Code List Response -type PostalCodesListResponse struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#postalCodesListResponse". - Kind string `json:"kind,omitempty"` - - // PostalCodes: Postal code collection. - PostalCodes []*PostalCode `json:"postalCodes,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 *PostalCodesListResponse) MarshalJSON() ([]byte, error) { - type NoMethod PostalCodesListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// Pricing: Pricing Information -type Pricing struct { - // CapCostType: Cap cost type of this inventory item. - // - // Possible values: - // "PLANNING_PLACEMENT_CAP_COST_TYPE_NONE" - // "PLANNING_PLACEMENT_CAP_COST_TYPE_MONTHLY" - // "PLANNING_PLACEMENT_CAP_COST_TYPE_CUMULATIVE" - CapCostType string `json:"capCostType,omitempty"` - - EndDate string `json:"endDate,omitempty"` - - // Flights: Flights of this inventory item. A flight (a.k.a. pricing - // period) represents the inventory item pricing information for a - // specific period of time. - Flights []*Flight `json:"flights,omitempty"` - - // GroupType: Group type of this inventory item if it represents a - // placement group. Is null otherwise. There are two type of placement - // groups: PLANNING_PLACEMENT_GROUP_TYPE_PACKAGE is a simple group of - // inventory items that acts as a single pricing point for a group of - // tags. PLANNING_PLACEMENT_GROUP_TYPE_ROADBLOCK is a group of inventory - // items that not only acts as a single pricing point, but also assumes - // that all the tags in it will be served at the same time. A roadblock - // requires one of its assigned inventory items to be marked as primary. - // - // Possible values: - // "PLANNING_PLACEMENT_GROUP_TYPE_PACKAGE" - // "PLANNING_PLACEMENT_GROUP_TYPE_ROADBLOCK" - GroupType string `json:"groupType,omitempty"` - - // PricingType: Pricing type of this inventory item. - // - // Possible values: - // "PLANNING_PLACEMENT_PRICING_TYPE_IMPRESSIONS" - // "PLANNING_PLACEMENT_PRICING_TYPE_CPM" - // "PLANNING_PLACEMENT_PRICING_TYPE_CLICKS" - // "PLANNING_PLACEMENT_PRICING_TYPE_CPC" - // "PLANNING_PLACEMENT_PRICING_TYPE_CPA" - // "PLANNING_PLACEMENT_PRICING_TYPE_FLAT_RATE_IMPRESSIONS" - // "PLANNING_PLACEMENT_PRICING_TYPE_FLAT_RATE_CLICKS" - // "PLANNING_PLACEMENT_PRICING_TYPE_CPM_ACTIVEVIEW" - PricingType string `json:"pricingType,omitempty"` - - StartDate string `json:"startDate,omitempty"` - - // ForceSendFields is a list of field names (e.g. "CapCostType") 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. "CapCostType") 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 *Pricing) MarshalJSON() ([]byte, error) { - type NoMethod Pricing - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// PricingSchedule: Pricing Schedule -type PricingSchedule struct { - // CapCostOption: Placement cap cost option. - // - // Possible values: - // "CAP_COST_NONE" - // "CAP_COST_MONTHLY" - // "CAP_COST_CUMULATIVE" - CapCostOption string `json:"capCostOption,omitempty"` - - EndDate string `json:"endDate,omitempty"` - - // Flighted: Whether this placement is flighted. If true, pricing - // periods will be computed automatically. - Flighted bool `json:"flighted,omitempty"` - - // FloodlightActivityId: Floodlight activity ID associated with this - // placement. This field should be set when placement pricing type is - // set to PRICING_TYPE_CPA. - FloodlightActivityId int64 `json:"floodlightActivityId,omitempty,string"` - - // PricingPeriods: Pricing periods for this placement. - PricingPeriods []*PricingSchedulePricingPeriod `json:"pricingPeriods,omitempty"` - - // PricingType: Placement pricing type. This field is required on - // insertion. - // - // Possible values: - // "PRICING_TYPE_CPM" - // "PRICING_TYPE_CPC" - // "PRICING_TYPE_CPA" - // "PRICING_TYPE_FLAT_RATE_IMPRESSIONS" - // "PRICING_TYPE_FLAT_RATE_CLICKS" - // "PRICING_TYPE_CPM_ACTIVEVIEW" - PricingType string `json:"pricingType,omitempty"` - - StartDate string `json:"startDate,omitempty"` - - TestingStartDate string `json:"testingStartDate,omitempty"` - - // ForceSendFields is a list of field names (e.g. "CapCostOption") 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. "CapCostOption") 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 *PricingSchedule) MarshalJSON() ([]byte, error) { - type NoMethod PricingSchedule - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// PricingSchedulePricingPeriod: Pricing Period -type PricingSchedulePricingPeriod struct { - EndDate string `json:"endDate,omitempty"` - - // PricingComment: Comments for this pricing period. - PricingComment string `json:"pricingComment,omitempty"` - - // RateOrCostNanos: Rate or cost of this pricing period in nanos (i.e., - // multipled by 1000000000). Acceptable values are 0 to - // 1000000000000000000, inclusive. - RateOrCostNanos int64 `json:"rateOrCostNanos,omitempty,string"` - - StartDate string `json:"startDate,omitempty"` - - // Units: Units of this pricing period. Acceptable values are 0 to - // 10000000000, inclusive. - Units int64 `json:"units,omitempty,string"` - - // ForceSendFields is a list of field names (e.g. "EndDate") 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. "EndDate") 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 *PricingSchedulePricingPeriod) MarshalJSON() ([]byte, error) { - type NoMethod PricingSchedulePricingPeriod - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// Project: Contains properties of a Planning project. -type Project struct { - // AccountId: Account ID of this project. - AccountId int64 `json:"accountId,omitempty,string"` - - // AdvertiserId: Advertiser ID of this project. - AdvertiserId int64 `json:"advertiserId,omitempty,string"` - - // AudienceAgeGroup: Audience age group of this project. - // - // Possible values: - // "PLANNING_AUDIENCE_AGE_18_24" - // "PLANNING_AUDIENCE_AGE_25_34" - // "PLANNING_AUDIENCE_AGE_35_44" - // "PLANNING_AUDIENCE_AGE_45_54" - // "PLANNING_AUDIENCE_AGE_55_64" - // "PLANNING_AUDIENCE_AGE_65_OR_MORE" - // "PLANNING_AUDIENCE_AGE_UNKNOWN" - AudienceAgeGroup string `json:"audienceAgeGroup,omitempty"` - - // AudienceGender: Audience gender of this project. - // - // Possible values: - // "PLANNING_AUDIENCE_GENDER_MALE" - // "PLANNING_AUDIENCE_GENDER_FEMALE" - AudienceGender string `json:"audienceGender,omitempty"` - - // Budget: Budget of this project in the currency specified by the - // current account. The value stored in this field represents only the - // non-fractional amount. For example, for USD, the smallest value that - // can be represented by this field is 1 US dollar. - Budget int64 `json:"budget,omitempty,string"` - - // ClientBillingCode: Client billing code of this project. - ClientBillingCode string `json:"clientBillingCode,omitempty"` - - // ClientName: Name of the project client. - ClientName string `json:"clientName,omitempty"` - - EndDate string `json:"endDate,omitempty"` - - // Id: ID of this project. This is a read-only, auto-generated field. - Id int64 `json:"id,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#project". - Kind string `json:"kind,omitempty"` - - // LastModifiedInfo: Information about the most recent modification of - // this project. - LastModifiedInfo *LastModifiedInfo `json:"lastModifiedInfo,omitempty"` - - // Name: Name of this project. - Name string `json:"name,omitempty"` - - // Overview: Overview of this project. - Overview string `json:"overview,omitempty"` - - StartDate string `json:"startDate,omitempty"` - - // SubaccountId: Subaccount ID of this project. - SubaccountId int64 `json:"subaccountId,omitempty,string"` - - // TargetClicks: Number of clicks that the advertiser is targeting. - TargetClicks int64 `json:"targetClicks,omitempty,string"` - - // TargetConversions: Number of conversions that the advertiser is - // targeting. - TargetConversions int64 `json:"targetConversions,omitempty,string"` - - // TargetCpaNanos: CPA that the advertiser is targeting. - TargetCpaNanos int64 `json:"targetCpaNanos,omitempty,string"` - - // TargetCpcNanos: CPC that the advertiser is targeting. - TargetCpcNanos int64 `json:"targetCpcNanos,omitempty,string"` - - // TargetCpmActiveViewNanos: vCPM from Active View that the advertiser - // is targeting. - TargetCpmActiveViewNanos int64 `json:"targetCpmActiveViewNanos,omitempty,string"` - - // TargetCpmNanos: CPM that the advertiser is targeting. - TargetCpmNanos int64 `json:"targetCpmNanos,omitempty,string"` - - // TargetImpressions: Number of impressions that the advertiser is - // targeting. - TargetImpressions int64 `json:"targetImpressions,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. "AccountId") 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. "AccountId") 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 *Project) MarshalJSON() ([]byte, error) { - type NoMethod Project - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// ProjectsListResponse: Project List Response -type ProjectsListResponse struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#projectsListResponse". - Kind string `json:"kind,omitempty"` - - // NextPageToken: Pagination token to be used for the next list - // operation. - NextPageToken string `json:"nextPageToken,omitempty"` - - // Projects: Project collection. - Projects []*Project `json:"projects,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 *ProjectsListResponse) MarshalJSON() ([]byte, error) { - type NoMethod ProjectsListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// ReachReportCompatibleFields: Represents fields that are compatible to -// be selected for a report of type "REACH". -type ReachReportCompatibleFields struct { - // DimensionFilters: Dimensions which are compatible to be selected in - // the "dimensionFilters" section of the report. - DimensionFilters []*Dimension `json:"dimensionFilters,omitempty"` - - // Dimensions: Dimensions which are compatible to be selected in the - // "dimensions" section of the report. - Dimensions []*Dimension `json:"dimensions,omitempty"` - - // Kind: The kind of resource this is, in this case - // dfareporting#reachReportCompatibleFields. - Kind string `json:"kind,omitempty"` - - // Metrics: Metrics which are compatible to be selected in the - // "metricNames" section of the report. - Metrics []*Metric `json:"metrics,omitempty"` - - // PivotedActivityMetrics: Metrics which are compatible to be selected - // as activity metrics to pivot on in the "activities" section of the - // report. - PivotedActivityMetrics []*Metric `json:"pivotedActivityMetrics,omitempty"` - - // ReachByFrequencyMetrics: Metrics which are compatible to be selected - // in the "reachByFrequencyMetricNames" section of the report. - ReachByFrequencyMetrics []*Metric `json:"reachByFrequencyMetrics,omitempty"` - - // ForceSendFields is a list of field names (e.g. "DimensionFilters") 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. "DimensionFilters") 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 *ReachReportCompatibleFields) MarshalJSON() ([]byte, error) { - type NoMethod ReachReportCompatibleFields - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// Recipient: Represents a recipient. -type Recipient struct { - // DeliveryType: The delivery type for the recipient. - // - // Possible values: - // "LINK" - // "ATTACHMENT" - DeliveryType string `json:"deliveryType,omitempty"` - - // Email: The email address of the recipient. - Email string `json:"email,omitempty"` - - // Kind: The kind of resource this is, in this case - // dfareporting#recipient. - Kind string `json:"kind,omitempty"` - - // ForceSendFields is a list of field names (e.g. "DeliveryType") 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. "DeliveryType") 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 *Recipient) MarshalJSON() ([]byte, error) { - type NoMethod Recipient - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// Region: Contains information about a region that can be targeted by -// ads. -type Region struct { - // CountryCode: Country code of the country to which this region - // belongs. - CountryCode string `json:"countryCode,omitempty"` - - // CountryDartId: DART ID of the country to which this region belongs. - CountryDartId int64 `json:"countryDartId,omitempty,string"` - - // DartId: DART ID of this region. - DartId int64 `json:"dartId,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#region". - Kind string `json:"kind,omitempty"` - - // Name: Name of this region. - Name string `json:"name,omitempty"` - - // RegionCode: Region code. - RegionCode string `json:"regionCode,omitempty"` - - // ForceSendFields is a list of field names (e.g. "CountryCode") 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. "CountryCode") 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 *Region) MarshalJSON() ([]byte, error) { - type NoMethod Region - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// RegionsListResponse: Region List Response -type RegionsListResponse struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#regionsListResponse". - Kind string `json:"kind,omitempty"` - - // Regions: Region collection. - Regions []*Region `json:"regions,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 *RegionsListResponse) MarshalJSON() ([]byte, error) { - type NoMethod RegionsListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// RemarketingList: Contains properties of a remarketing list. -// Remarketing enables you to create lists of users who have performed -// specific actions on a site, then target ads to members of those -// lists. This resource can be used to manage remarketing lists that are -// owned by your advertisers. To see all remarketing lists that are -// visible to your advertisers, including those that are shared to your -// advertiser or account, use the TargetableRemarketingLists resource. -type RemarketingList struct { - // AccountId: Account ID of this remarketing list. This is a read-only, - // auto-generated field that is only returned in GET requests. - AccountId int64 `json:"accountId,omitempty,string"` - - // Active: Whether this remarketing list is active. - Active bool `json:"active,omitempty"` - - // AdvertiserId: Dimension value for the advertiser ID that owns this - // remarketing list. This is a required field. - AdvertiserId int64 `json:"advertiserId,omitempty,string"` - - // AdvertiserIdDimensionValue: Dimension value for the ID of the - // advertiser. This is a read-only, auto-generated field. - AdvertiserIdDimensionValue *DimensionValue `json:"advertiserIdDimensionValue,omitempty"` - - // Description: Remarketing list description. - Description string `json:"description,omitempty"` - - // Id: Remarketing list ID. This is a read-only, auto-generated field. - Id int64 `json:"id,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#remarketingList". - Kind string `json:"kind,omitempty"` - - // LifeSpan: Number of days that a user should remain in the remarketing - // list without an impression. Acceptable values are 1 to 540, - // inclusive. - LifeSpan int64 `json:"lifeSpan,omitempty,string"` - - // ListPopulationRule: Rule used to populate the remarketing list with - // users. - ListPopulationRule *ListPopulationRule `json:"listPopulationRule,omitempty"` - - // ListSize: Number of users currently in the list. This is a read-only - // field. - ListSize int64 `json:"listSize,omitempty,string"` - - // ListSource: Product from which this remarketing list was originated. - // - // Possible values: - // "REMARKETING_LIST_SOURCE_OTHER" - // "REMARKETING_LIST_SOURCE_ADX" - // "REMARKETING_LIST_SOURCE_DFP" - // "REMARKETING_LIST_SOURCE_XFP" - // "REMARKETING_LIST_SOURCE_DFA" - // "REMARKETING_LIST_SOURCE_GA" - // "REMARKETING_LIST_SOURCE_YOUTUBE" - // "REMARKETING_LIST_SOURCE_DBM" - // "REMARKETING_LIST_SOURCE_GPLUS" - // "REMARKETING_LIST_SOURCE_DMP" - // "REMARKETING_LIST_SOURCE_PLAY_STORE" - ListSource string `json:"listSource,omitempty"` - - // Name: Name of the remarketing list. This is a required field. Must be - // no greater than 128 characters long. - Name string `json:"name,omitempty"` - - // SubaccountId: Subaccount ID of this remarketing list. This is a - // read-only, auto-generated field that is only returned in GET - // requests. - SubaccountId int64 `json:"subaccountId,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. "AccountId") 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. "AccountId") 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 *RemarketingList) MarshalJSON() ([]byte, error) { - type NoMethod RemarketingList - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// RemarketingListShare: Contains properties of a remarketing list's -// sharing information. Sharing allows other accounts or advertisers to -// target to your remarketing lists. This resource can be used to manage -// remarketing list sharing to other accounts and advertisers. -type RemarketingListShare struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#remarketingListShare". - Kind string `json:"kind,omitempty"` - - // RemarketingListId: Remarketing list ID. This is a read-only, - // auto-generated field. - RemarketingListId int64 `json:"remarketingListId,omitempty,string"` - - // SharedAccountIds: Accounts that the remarketing list is shared with. - SharedAccountIds googleapi.Int64s `json:"sharedAccountIds,omitempty"` - - // SharedAdvertiserIds: Advertisers that the remarketing list is shared - // with. - SharedAdvertiserIds googleapi.Int64s `json:"sharedAdvertiserIds,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 *RemarketingListShare) MarshalJSON() ([]byte, error) { - type NoMethod RemarketingListShare - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// RemarketingListsListResponse: Remarketing list response -type RemarketingListsListResponse struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#remarketingListsListResponse". - Kind string `json:"kind,omitempty"` - - // NextPageToken: Pagination token to be used for the next list - // operation. - NextPageToken string `json:"nextPageToken,omitempty"` - - // RemarketingLists: Remarketing list collection. - RemarketingLists []*RemarketingList `json:"remarketingLists,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 *RemarketingListsListResponse) MarshalJSON() ([]byte, error) { - type NoMethod RemarketingListsListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// Report: Represents a Report resource. -type Report struct { - // AccountId: The account ID to which this report belongs. - AccountId int64 `json:"accountId,omitempty,string"` - - // Criteria: The report criteria for a report of type "STANDARD". - Criteria *ReportCriteria `json:"criteria,omitempty"` - - // CrossDimensionReachCriteria: The report criteria for a report of type - // "CROSS_DIMENSION_REACH". - CrossDimensionReachCriteria *ReportCrossDimensionReachCriteria `json:"crossDimensionReachCriteria,omitempty"` - - // Delivery: The report's email delivery settings. - Delivery *ReportDelivery `json:"delivery,omitempty"` - - // Etag: The eTag of this response for caching purposes. - Etag string `json:"etag,omitempty"` - - // FileName: The filename used when generating report files for this - // report. - FileName string `json:"fileName,omitempty"` - - // FloodlightCriteria: The report criteria for a report of type - // "FLOODLIGHT". - FloodlightCriteria *ReportFloodlightCriteria `json:"floodlightCriteria,omitempty"` - - // Format: The output format of the report. If not specified, default - // format is "CSV". Note that the actual format in the completed report - // file might differ if for instance the report's size exceeds the - // format's capabilities. "CSV" will then be the fallback format. - // - // Possible values: - // "CSV" - // "EXCEL" - Format string `json:"format,omitempty"` - - // Id: The unique ID identifying this report resource. - Id int64 `json:"id,omitempty,string"` - - // Kind: The kind of resource this is, in this case dfareporting#report. - Kind string `json:"kind,omitempty"` - - // LastModifiedTime: The timestamp (in milliseconds since epoch) of when - // this report was last modified. - LastModifiedTime uint64 `json:"lastModifiedTime,omitempty,string"` - - // Name: The name of the report. - Name string `json:"name,omitempty"` - - // OwnerProfileId: The user profile id of the owner of this report. - OwnerProfileId int64 `json:"ownerProfileId,omitempty,string"` - - // PathAttributionCriteria: The report criteria for a report of type - // "PATH_ATTRIBUTION". - PathAttributionCriteria *ReportPathAttributionCriteria `json:"pathAttributionCriteria,omitempty"` - - // PathCriteria: The report criteria for a report of type "PATH". - PathCriteria *ReportPathCriteria `json:"pathCriteria,omitempty"` - - // PathToConversionCriteria: The report criteria for a report of type - // "PATH_TO_CONVERSION". - PathToConversionCriteria *ReportPathToConversionCriteria `json:"pathToConversionCriteria,omitempty"` - - // ReachCriteria: The report criteria for a report of type "REACH". - ReachCriteria *ReportReachCriteria `json:"reachCriteria,omitempty"` - - // Schedule: The report's schedule. Can only be set if the report's - // 'dateRange' is a relative date range and the relative date range is - // not "TODAY". - Schedule *ReportSchedule `json:"schedule,omitempty"` - - // SubAccountId: The subaccount ID to which this report belongs if - // applicable. - SubAccountId int64 `json:"subAccountId,omitempty,string"` - - // Type: The type of the report. - // - // Possible values: - // "STANDARD" - // "REACH" - // "PATH_TO_CONVERSION" - // "CROSS_DIMENSION_REACH" - // "FLOODLIGHT" - // "PATH" - // "PATH_ATTRIBUTION" - Type string `json:"type,omitempty"` - - // ServerResponse contains the HTTP response code and headers from the - // server. - googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "AccountId") 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. "AccountId") 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 *Report) MarshalJSON() ([]byte, error) { - type NoMethod Report - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// ReportCriteria: The report criteria for a report of type "STANDARD". -type ReportCriteria struct { - // Activities: Activity group. - Activities *Activities `json:"activities,omitempty"` - - // CustomRichMediaEvents: Custom Rich Media Events group. - CustomRichMediaEvents *CustomRichMediaEvents `json:"customRichMediaEvents,omitempty"` - - // DateRange: The date range for which this report should be run. - DateRange *DateRange `json:"dateRange,omitempty"` - - // DimensionFilters: The list of filters on which dimensions are - // filtered. Filters for different dimensions are ANDed, filters for the - // same dimension are grouped together and ORed. - DimensionFilters []*DimensionValue `json:"dimensionFilters,omitempty"` - - // Dimensions: The list of standard dimensions the report should - // include. - Dimensions []*SortedDimension `json:"dimensions,omitempty"` - - // MetricNames: The list of names of metrics the report should include. - MetricNames []string `json:"metricNames,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Activities") 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. "Activities") 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 *ReportCriteria) MarshalJSON() ([]byte, error) { - type NoMethod ReportCriteria - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// ReportCrossDimensionReachCriteria: The report criteria for a report -// of type "CROSS_DIMENSION_REACH". -type ReportCrossDimensionReachCriteria struct { - // Breakdown: The list of dimensions the report should include. - Breakdown []*SortedDimension `json:"breakdown,omitempty"` - - // DateRange: The date range this report should be run for. - DateRange *DateRange `json:"dateRange,omitempty"` - - // Dimension: The dimension option. - // - // Possible values: - // "ADVERTISER" - // "CAMPAIGN" - // "SITE_BY_ADVERTISER" - // "SITE_BY_CAMPAIGN" - Dimension string `json:"dimension,omitempty"` - - // DimensionFilters: The list of filters on which dimensions are - // filtered. - DimensionFilters []*DimensionValue `json:"dimensionFilters,omitempty"` - - // MetricNames: The list of names of metrics the report should include. - MetricNames []string `json:"metricNames,omitempty"` - - // OverlapMetricNames: The list of names of overlap metrics the report - // should include. - OverlapMetricNames []string `json:"overlapMetricNames,omitempty"` - - // Pivoted: Whether the report is pivoted or not. Defaults to true. - Pivoted bool `json:"pivoted,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Breakdown") 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. "Breakdown") 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 *ReportCrossDimensionReachCriteria) MarshalJSON() ([]byte, error) { - type NoMethod ReportCrossDimensionReachCriteria - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// ReportDelivery: The report's email delivery settings. -type ReportDelivery struct { - // EmailOwner: Whether the report should be emailed to the report owner. - EmailOwner bool `json:"emailOwner,omitempty"` - - // EmailOwnerDeliveryType: The type of delivery for the owner to - // receive, if enabled. - // - // Possible values: - // "LINK" - // "ATTACHMENT" - EmailOwnerDeliveryType string `json:"emailOwnerDeliveryType,omitempty"` - - // Message: The message to be sent with each email. - Message string `json:"message,omitempty"` - - // Recipients: The list of recipients to which to email the report. - Recipients []*Recipient `json:"recipients,omitempty"` - - // ForceSendFields is a list of field names (e.g. "EmailOwner") 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. "EmailOwner") 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 *ReportDelivery) MarshalJSON() ([]byte, error) { - type NoMethod ReportDelivery - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// ReportFloodlightCriteria: The report criteria for a report of type -// "FLOODLIGHT". -type ReportFloodlightCriteria struct { - // CustomRichMediaEvents: The list of custom rich media events to - // include. - CustomRichMediaEvents []*DimensionValue `json:"customRichMediaEvents,omitempty"` - - // DateRange: The date range this report should be run for. - DateRange *DateRange `json:"dateRange,omitempty"` - - // DimensionFilters: The list of filters on which dimensions are - // filtered. Filters for different dimensions are ANDed, filters for the - // same dimension are grouped together and ORed. - DimensionFilters []*DimensionValue `json:"dimensionFilters,omitempty"` - - // Dimensions: The list of dimensions the report should include. - Dimensions []*SortedDimension `json:"dimensions,omitempty"` - - // FloodlightConfigId: The floodlight ID for which to show data in this - // report. All advertisers associated with that ID will automatically be - // added. The dimension of the value needs to be - // 'dfa:floodlightConfigId'. - FloodlightConfigId *DimensionValue `json:"floodlightConfigId,omitempty"` - - // MetricNames: The list of names of metrics the report should include. - MetricNames []string `json:"metricNames,omitempty"` - - // ReportProperties: The properties of the report. - ReportProperties *ReportFloodlightCriteriaReportProperties `json:"reportProperties,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "CustomRichMediaEvents") 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. "CustomRichMediaEvents") 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 *ReportFloodlightCriteria) MarshalJSON() ([]byte, error) { - type NoMethod ReportFloodlightCriteria - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// ReportFloodlightCriteriaReportProperties: The properties of the -// report. -type ReportFloodlightCriteriaReportProperties struct { - // IncludeAttributedIPConversions: Include conversions that have no - // cookie, but do have an exposure path. - IncludeAttributedIPConversions bool `json:"includeAttributedIPConversions,omitempty"` - - // IncludeUnattributedCookieConversions: Include conversions of users - // with a DoubleClick cookie but without an exposure. That means the - // user did not click or see an ad from the advertiser within the - // Floodlight group, or that the interaction happened outside the - // lookback window. - IncludeUnattributedCookieConversions bool `json:"includeUnattributedCookieConversions,omitempty"` - - // IncludeUnattributedIPConversions: Include conversions that have no - // associated cookies and no exposures. It’s therefore impossible to - // know how the user was exposed to your ads during the lookback window - // prior to a conversion. - IncludeUnattributedIPConversions bool `json:"includeUnattributedIPConversions,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "IncludeAttributedIPConversions") 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. - // "IncludeAttributedIPConversions") 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 *ReportFloodlightCriteriaReportProperties) MarshalJSON() ([]byte, error) { - type NoMethod ReportFloodlightCriteriaReportProperties - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// ReportPathAttributionCriteria: The report criteria for a report of -// type "PATH_ATTRIBUTION". -type ReportPathAttributionCriteria struct { - // ActivityFilters: The list of 'dfa:activity' values to filter on. - ActivityFilters []*DimensionValue `json:"activityFilters,omitempty"` - - // CustomChannelGrouping: Channel Grouping. - CustomChannelGrouping *ChannelGrouping `json:"customChannelGrouping,omitempty"` - - // DateRange: The date range this report should be run for. - DateRange *DateRange `json:"dateRange,omitempty"` - - // Dimensions: The list of dimensions the report should include. - Dimensions []*SortedDimension `json:"dimensions,omitempty"` - - // FloodlightConfigId: The floodlight ID for which to show data in this - // report. All advertisers associated with that ID will automatically be - // added. The dimension of the value needs to be - // 'dfa:floodlightConfigId'. - FloodlightConfigId *DimensionValue `json:"floodlightConfigId,omitempty"` - - // MetricNames: The list of names of metrics the report should include. - MetricNames []string `json:"metricNames,omitempty"` - - // PathFilters: Path Filters. - PathFilters []*PathFilter `json:"pathFilters,omitempty"` - - // ForceSendFields is a list of field names (e.g. "ActivityFilters") 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. "ActivityFilters") 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 *ReportPathAttributionCriteria) MarshalJSON() ([]byte, error) { - type NoMethod ReportPathAttributionCriteria - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// ReportPathCriteria: The report criteria for a report of type "PATH". -type ReportPathCriteria struct { - // ActivityFilters: The list of 'dfa:activity' values to filter on. - ActivityFilters []*DimensionValue `json:"activityFilters,omitempty"` - - // CustomChannelGrouping: Channel Grouping. - CustomChannelGrouping *ChannelGrouping `json:"customChannelGrouping,omitempty"` - - // DateRange: The date range this report should be run for. - DateRange *DateRange `json:"dateRange,omitempty"` - - // Dimensions: The list of dimensions the report should include. - Dimensions []*SortedDimension `json:"dimensions,omitempty"` - - // FloodlightConfigId: The floodlight ID for which to show data in this - // report. All advertisers associated with that ID will automatically be - // added. The dimension of the value needs to be - // 'dfa:floodlightConfigId'. - FloodlightConfigId *DimensionValue `json:"floodlightConfigId,omitempty"` - - // MetricNames: The list of names of metrics the report should include. - MetricNames []string `json:"metricNames,omitempty"` - - // PathFilters: Path Filters. - PathFilters []*PathFilter `json:"pathFilters,omitempty"` - - // ForceSendFields is a list of field names (e.g. "ActivityFilters") 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. "ActivityFilters") 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 *ReportPathCriteria) MarshalJSON() ([]byte, error) { - type NoMethod ReportPathCriteria - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// ReportPathToConversionCriteria: The report criteria for a report of -// type "PATH_TO_CONVERSION". -type ReportPathToConversionCriteria struct { - // ActivityFilters: The list of 'dfa:activity' values to filter on. - ActivityFilters []*DimensionValue `json:"activityFilters,omitempty"` - - // ConversionDimensions: The list of conversion dimensions the report - // should include. - ConversionDimensions []*SortedDimension `json:"conversionDimensions,omitempty"` - - // CustomFloodlightVariables: The list of custom floodlight variables - // the report should include. - CustomFloodlightVariables []*SortedDimension `json:"customFloodlightVariables,omitempty"` - - // CustomRichMediaEvents: The list of custom rich media events to - // include. - CustomRichMediaEvents []*DimensionValue `json:"customRichMediaEvents,omitempty"` - - // DateRange: The date range this report should be run for. - DateRange *DateRange `json:"dateRange,omitempty"` - - // FloodlightConfigId: The floodlight ID for which to show data in this - // report. All advertisers associated with that ID will automatically be - // added. The dimension of the value needs to be - // 'dfa:floodlightConfigId'. - FloodlightConfigId *DimensionValue `json:"floodlightConfigId,omitempty"` - - // MetricNames: The list of names of metrics the report should include. - MetricNames []string `json:"metricNames,omitempty"` - - // PerInteractionDimensions: The list of per interaction dimensions the - // report should include. - PerInteractionDimensions []*SortedDimension `json:"perInteractionDimensions,omitempty"` - - // ReportProperties: The properties of the report. - ReportProperties *ReportPathToConversionCriteriaReportProperties `json:"reportProperties,omitempty"` - - // ForceSendFields is a list of field names (e.g. "ActivityFilters") 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. "ActivityFilters") 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 *ReportPathToConversionCriteria) MarshalJSON() ([]byte, error) { - type NoMethod ReportPathToConversionCriteria - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// ReportPathToConversionCriteriaReportProperties: The properties of the -// report. -type ReportPathToConversionCriteriaReportProperties struct { - // ClicksLookbackWindow: CM360 checks to see if a click interaction - // occurred within the specified period of time before a conversion. By - // default the value is pulled from Floodlight or you can manually enter - // a custom value. Valid values: 1-90. - ClicksLookbackWindow int64 `json:"clicksLookbackWindow,omitempty"` - - // ImpressionsLookbackWindow: CM360 checks to see if an impression - // interaction occurred within the specified period of time before a - // conversion. By default the value is pulled from Floodlight or you can - // manually enter a custom value. Valid values: 1-90. - ImpressionsLookbackWindow int64 `json:"impressionsLookbackWindow,omitempty"` - - // IncludeAttributedIPConversions: Deprecated: has no effect. - IncludeAttributedIPConversions bool `json:"includeAttributedIPConversions,omitempty"` - - // IncludeUnattributedCookieConversions: Include conversions of users - // with a DoubleClick cookie but without an exposure. That means the - // user did not click or see an ad from the advertiser within the - // Floodlight group, or that the interaction happened outside the - // lookback window. - IncludeUnattributedCookieConversions bool `json:"includeUnattributedCookieConversions,omitempty"` - - // IncludeUnattributedIPConversions: Include conversions that have no - // associated cookies and no exposures. It’s therefore impossible to - // know how the user was exposed to your ads during the lookback window - // prior to a conversion. - IncludeUnattributedIPConversions bool `json:"includeUnattributedIPConversions,omitempty"` - - // MaximumClickInteractions: The maximum number of click interactions to - // include in the report. Advertisers currently paying for E2C reports - // get up to 200 (100 clicks, 100 impressions). If another advertiser in - // your network is paying for E2C, you can have up to 5 total exposures - // per report. - MaximumClickInteractions int64 `json:"maximumClickInteractions,omitempty"` - - // MaximumImpressionInteractions: The maximum number of click - // interactions to include in the report. Advertisers currently paying - // for E2C reports get up to 200 (100 clicks, 100 impressions). If - // another advertiser in your network is paying for E2C, you can have up - // to 5 total exposures per report. - MaximumImpressionInteractions int64 `json:"maximumImpressionInteractions,omitempty"` - - // MaximumInteractionGap: The maximum amount of time that can take place - // between interactions (clicks or impressions) by the same user. Valid - // values: 1-90. - MaximumInteractionGap int64 `json:"maximumInteractionGap,omitempty"` - - // PivotOnInteractionPath: Enable pivoting on interaction path. - PivotOnInteractionPath bool `json:"pivotOnInteractionPath,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "ClicksLookbackWindow") 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. "ClicksLookbackWindow") 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 *ReportPathToConversionCriteriaReportProperties) MarshalJSON() ([]byte, error) { - type NoMethod ReportPathToConversionCriteriaReportProperties - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// ReportReachCriteria: The report criteria for a report of type -// "REACH". -type ReportReachCriteria struct { - // Activities: Activity group. - Activities *Activities `json:"activities,omitempty"` - - // CustomRichMediaEvents: Custom Rich Media Events group. - CustomRichMediaEvents *CustomRichMediaEvents `json:"customRichMediaEvents,omitempty"` - - // DateRange: The date range this report should be run for. - DateRange *DateRange `json:"dateRange,omitempty"` - - // DimensionFilters: The list of filters on which dimensions are - // filtered. Filters for different dimensions are ANDed, filters for the - // same dimension are grouped together and ORed. - DimensionFilters []*DimensionValue `json:"dimensionFilters,omitempty"` - - // Dimensions: The list of dimensions the report should include. - Dimensions []*SortedDimension `json:"dimensions,omitempty"` - - // EnableAllDimensionCombinations: Whether to enable all reach dimension - // combinations in the report. Defaults to false. If enabled, the date - // range of the report should be within the last 42 days. - EnableAllDimensionCombinations bool `json:"enableAllDimensionCombinations,omitempty"` - - // MetricNames: The list of names of metrics the report should include. - MetricNames []string `json:"metricNames,omitempty"` - - // ReachByFrequencyMetricNames: The list of names of Reach By Frequency - // metrics the report should include. - ReachByFrequencyMetricNames []string `json:"reachByFrequencyMetricNames,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Activities") 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. "Activities") 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 *ReportReachCriteria) MarshalJSON() ([]byte, error) { - type NoMethod ReportReachCriteria - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// ReportSchedule: The report's schedule. Can only be set if the -// report's 'dateRange' is a relative date range and the relative date -// range is not "TODAY". -type ReportSchedule struct { - // Active: Whether the schedule is active or not. Must be set to either - // true or false. - Active bool `json:"active,omitempty"` - - // Every: Defines every how many days, weeks or months the report should - // be run. Needs to be set when "repeats" is either "DAILY", "WEEKLY" or - // "MONTHLY". - Every int64 `json:"every,omitempty"` - - ExpirationDate string `json:"expirationDate,omitempty"` - - // Repeats: The interval for which the report is repeated. Note: - - // "DAILY" also requires field "every" to be set. - "WEEKLY" also - // requires fields "every" and "repeatsOnWeekDays" to be set. - - // "MONTHLY" also requires fields "every" and "runsOnDayOfMonth" to be - // set. - Repeats string `json:"repeats,omitempty"` - - // RepeatsOnWeekDays: List of week days "WEEKLY" on which scheduled - // reports should run. - // - // Possible values: - // "SUNDAY" - // "MONDAY" - // "TUESDAY" - // "WEDNESDAY" - // "THURSDAY" - // "FRIDAY" - // "SATURDAY" - RepeatsOnWeekDays []string `json:"repeatsOnWeekDays,omitempty"` - - // RunsOnDayOfMonth: Enum to define for "MONTHLY" scheduled reports - // whether reports should be repeated on the same day of the month as - // "startDate" or the same day of the week of the month. Example: If - // 'startDate' is Monday, April 2nd 2012 (2012-04-02), "DAY_OF_MONTH" - // would run subsequent reports on the 2nd of every Month, and - // "WEEK_OF_MONTH" would run subsequent reports on the first Monday of - // the month. - // - // Possible values: - // "DAY_OF_MONTH" - // "WEEK_OF_MONTH" - RunsOnDayOfMonth string `json:"runsOnDayOfMonth,omitempty"` - - StartDate string `json:"startDate,omitempty"` - - // Timezone: The timezone when the report will run. - Timezone string `json:"timezone,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Active") 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. "Active") 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 *ReportSchedule) MarshalJSON() ([]byte, error) { - type NoMethod ReportSchedule - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// ReportCompatibleFields: Represents fields that are compatible to be -// selected for a report of type "STANDARD". -type ReportCompatibleFields struct { - // DimensionFilters: Dimensions which are compatible to be selected in - // the "dimensionFilters" section of the report. - DimensionFilters []*Dimension `json:"dimensionFilters,omitempty"` - - // Dimensions: Dimensions which are compatible to be selected in the - // "dimensions" section of the report. - Dimensions []*Dimension `json:"dimensions,omitempty"` - - // Kind: The kind of resource this is, in this case - // dfareporting#reportCompatibleFields. - Kind string `json:"kind,omitempty"` - - // Metrics: Metrics which are compatible to be selected in the - // "metricNames" section of the report. - Metrics []*Metric `json:"metrics,omitempty"` - - // PivotedActivityMetrics: Metrics which are compatible to be selected - // as activity metrics to pivot on in the "activities" section of the - // report. - PivotedActivityMetrics []*Metric `json:"pivotedActivityMetrics,omitempty"` - - // ForceSendFields is a list of field names (e.g. "DimensionFilters") 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. "DimensionFilters") 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 *ReportCompatibleFields) MarshalJSON() ([]byte, error) { - type NoMethod ReportCompatibleFields - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// ReportList: Represents the list of reports. -type ReportList struct { - // Etag: The eTag of this response for caching purposes. - Etag string `json:"etag,omitempty"` - - // Items: The reports returned in this response. - Items []*Report `json:"items,omitempty"` - - // Kind: The kind of list this is, in this case dfareporting#reportList. - Kind string `json:"kind,omitempty"` - - // NextPageToken: Continuation token used to page through reports. To - // retrieve the next page of results, set the next request's "pageToken" - // to the value of this field. The page token is only valid for a - // limited amount of time and should not be persisted. - 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. "Etag") 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. "Etag") 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 *ReportList) MarshalJSON() ([]byte, error) { - type NoMethod ReportList - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// ReportsConfiguration: Reporting Configuration -type ReportsConfiguration struct { - // ExposureToConversionEnabled: Whether the exposure to conversion - // report is enabled. This report shows detailed pathway information on - // up to 10 of the most recent ad exposures seen by a user before - // converting. - ExposureToConversionEnabled bool `json:"exposureToConversionEnabled,omitempty"` - - // LookbackConfiguration: Default lookback windows for new advertisers - // in this account. - LookbackConfiguration *LookbackConfiguration `json:"lookbackConfiguration,omitempty"` - - // ReportGenerationTimeZoneId: Report generation time zone ID of this - // account. This is a required field that can only be changed by a - // superuser. Acceptable values are: - "1" for "America/New_York" - "2" - // for "Europe/London" - "3" for "Europe/Paris" - "4" for - // "Africa/Johannesburg" - "5" for "Asia/Jerusalem" - "6" for - // "Asia/Shanghai" - "7" for "Asia/Hong_Kong" - "8" for "Asia/Tokyo" - - // "9" for "Australia/Sydney" - "10" for "Asia/Dubai" - "11" for - // "America/Los_Angeles" - "12" for "Pacific/Auckland" - "13" for - // "America/Sao_Paulo" - "16" for "America/Asuncion" - "17" for - // "America/Chicago" - "18" for "America/Denver" - "19" for - // "America/St_Johns" - "20" for "Asia/Dhaka" - "21" for "Asia/Jakarta" - // - "22" for "Asia/Kabul" - "23" for "Asia/Karachi" - "24" for - // "Asia/Calcutta" - "25" for "Asia/Pyongyang" - "26" for "Asia/Rangoon" - // - "27" for "Atlantic/Cape_Verde" - "28" for "Atlantic/South_Georgia" - // - "29" for "Australia/Adelaide" - "30" for "Australia/Lord_Howe" - - // "31" for "Europe/Moscow" - "32" for "Pacific/Kiritimati" - "35" for - // "Pacific/Norfolk" - "36" for "Pacific/Tongatapu" - ReportGenerationTimeZoneId int64 `json:"reportGenerationTimeZoneId,omitempty,string"` - - // ForceSendFields is a list of field names (e.g. - // "ExposureToConversionEnabled") 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. - // "ExposureToConversionEnabled") 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 *ReportsConfiguration) MarshalJSON() ([]byte, error) { - type NoMethod ReportsConfiguration - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// RichMediaExitOverride: Rich Media Exit Override. -type RichMediaExitOverride struct { - // ClickThroughUrl: Click-through URL of this rich media exit override. - // Applicable if the enabled field is set to true. - ClickThroughUrl *ClickThroughUrl `json:"clickThroughUrl,omitempty"` - - // Enabled: Whether to use the clickThroughUrl. If false, the - // creative-level exit will be used. - Enabled bool `json:"enabled,omitempty"` - - // ExitId: ID for the override to refer to a specific exit in the - // creative. - ExitId int64 `json:"exitId,omitempty,string"` - - // ForceSendFields is a list of field names (e.g. "ClickThroughUrl") 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. "ClickThroughUrl") 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 *RichMediaExitOverride) MarshalJSON() ([]byte, error) { - type NoMethod RichMediaExitOverride - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// Rule: A rule associates an asset with a targeting template for -// asset-level targeting. Applicable to INSTREAM_VIDEO creatives. -type Rule struct { - // AssetId: A creativeAssets[].id. This should refer to one of the - // parent assets in this creative. This is a required field. - AssetId int64 `json:"assetId,omitempty,string"` - - // Name: A user-friendly name for this rule. This is a required field. - Name string `json:"name,omitempty"` - - // TargetingTemplateId: A targeting template ID. The targeting from the - // targeting template will be used to determine whether this asset - // should be served. This is a required field. - TargetingTemplateId int64 `json:"targetingTemplateId,omitempty,string"` - - // ForceSendFields is a list of field names (e.g. "AssetId") 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. "AssetId") 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 *Rule) MarshalJSON() ([]byte, error) { - type NoMethod Rule - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// Site: Contains properties of a site. -type Site struct { - // AccountId: Account ID of this site. This is a read-only field that - // can be left blank. - AccountId int64 `json:"accountId,omitempty,string"` - - // Approved: Whether this site is approved. - Approved bool `json:"approved,omitempty"` - - // DirectorySiteId: Directory site associated with this site. This is a - // required field that is read-only after insertion. - DirectorySiteId int64 `json:"directorySiteId,omitempty,string"` - - // DirectorySiteIdDimensionValue: Dimension value for the ID of the - // directory site. This is a read-only, auto-generated field. - DirectorySiteIdDimensionValue *DimensionValue `json:"directorySiteIdDimensionValue,omitempty"` - - // Id: ID of this site. This is a read-only, auto-generated field. - Id int64 `json:"id,omitempty,string"` - - // IdDimensionValue: Dimension value for the ID of this site. This is a - // read-only, auto-generated field. - IdDimensionValue *DimensionValue `json:"idDimensionValue,omitempty"` - - // KeyName: Key name of this site. This is a read-only, auto-generated - // field. - KeyName string `json:"keyName,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#site". - Kind string `json:"kind,omitempty"` - - // Name: Name of this site.This is a required field. Must be less than - // 128 characters long. If this site is under a subaccount, the name - // must be unique among sites of the same subaccount. Otherwise, this - // site is a top-level site, and the name must be unique among top-level - // sites of the same account. - Name string `json:"name,omitempty"` - - // SiteContacts: Site contacts. - SiteContacts []*SiteContact `json:"siteContacts,omitempty"` - - // SiteSettings: Site-wide settings. - SiteSettings *SiteSettings `json:"siteSettings,omitempty"` - - // SubaccountId: Subaccount ID of this site. This is a read-only field - // that can be left blank. - SubaccountId int64 `json:"subaccountId,omitempty,string"` - - // VideoSettings: Default video settings for new placements created - // under this site. This value will be used to populate the - // placements.videoSettings field, when no value is specified for the - // new placement. - VideoSettings *SiteVideoSettings `json:"videoSettings,omitempty"` - - // ServerResponse contains the HTTP response code and headers from the - // server. - googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "AccountId") 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. "AccountId") 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 *Site) MarshalJSON() ([]byte, error) { - type NoMethod Site - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// SiteCompanionSetting: Companion Settings -type SiteCompanionSetting struct { - // CompanionsDisabled: Whether companions are disabled for this site - // template. - CompanionsDisabled bool `json:"companionsDisabled,omitempty"` - - // EnabledSizes: Allowlist of companion sizes to be served via this site - // template. Set this list to null or empty to serve all companion - // sizes. - EnabledSizes []*Size `json:"enabledSizes,omitempty"` - - // ImageOnly: Whether to serve only static images as companions. - ImageOnly bool `json:"imageOnly,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#siteCompanionSetting". - Kind string `json:"kind,omitempty"` - - // ForceSendFields is a list of field names (e.g. "CompanionsDisabled") - // 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. "CompanionsDisabled") 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 *SiteCompanionSetting) MarshalJSON() ([]byte, error) { - type NoMethod SiteCompanionSetting - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// SiteContact: Site Contact -type SiteContact struct { - // Address: Address of this site contact. - Address string `json:"address,omitempty"` - - // ContactType: Site contact type. - // - // Possible values: - // "SALES_PERSON" - // "TRAFFICKER" - ContactType string `json:"contactType,omitempty"` - - // Email: Email address of this site contact. This is a required field. - Email string `json:"email,omitempty"` - - // FirstName: First name of this site contact. - FirstName string `json:"firstName,omitempty"` - - // Id: ID of this site contact. This is a read-only, auto-generated - // field. - Id int64 `json:"id,omitempty,string"` - - // LastName: Last name of this site contact. - LastName string `json:"lastName,omitempty"` - - // Phone: Primary phone number of this site contact. - Phone string `json:"phone,omitempty"` - - // Title: Title or designation of this site contact. - Title string `json:"title,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Address") 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. "Address") 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 *SiteContact) MarshalJSON() ([]byte, error) { - type NoMethod SiteContact - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// SiteSettings: Site Settings -type SiteSettings struct { - // ActiveViewOptOut: Whether active view creatives are disabled for this - // site. - ActiveViewOptOut bool `json:"activeViewOptOut,omitempty"` - - // AdBlockingOptOut: Whether this site opts out of ad blocking. When - // true, ad blocking is disabled for all placements under the site, - // regardless of the individual placement settings. When false, the - // campaign and placement settings take effect. - AdBlockingOptOut bool `json:"adBlockingOptOut,omitempty"` - - // DisableNewCookie: Whether new cookies are disabled for this site. - DisableNewCookie bool `json:"disableNewCookie,omitempty"` - - // TagSetting: Configuration settings for dynamic and image floodlight - // tags. - TagSetting *TagSetting `json:"tagSetting,omitempty"` - - // VideoActiveViewOptOutTemplate: Whether Verification and ActiveView - // for in-stream video creatives are disabled by default for new - // placements created under this site. This value will be used to - // populate the placement.videoActiveViewOptOut field, when no value is - // specified for the new placement. - VideoActiveViewOptOutTemplate bool `json:"videoActiveViewOptOutTemplate,omitempty"` - - // VpaidAdapterChoiceTemplate: Default VPAID adapter setting for new - // placements created under this site. This value will be used to - // populate the placements.vpaidAdapterChoice field, when no value is - // specified for the new placement. Controls which VPAID format the - // measurement adapter will use for in-stream video creatives assigned - // to the placement. The publisher's specifications will typically - // determine this setting. For VPAID creatives, the adapter format will - // match the VPAID format (HTML5 VPAID creatives use the HTML5 adapter). - // *Note:* Flash is no longer supported. This field now defaults to - // HTML5 when the following values are provided: FLASH, BOTH. - // - // Possible values: - // "DEFAULT" - // "FLASH" - // "HTML5" - // "BOTH" - VpaidAdapterChoiceTemplate string `json:"vpaidAdapterChoiceTemplate,omitempty"` - - // ForceSendFields is a list of field names (e.g. "ActiveViewOptOut") 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. "ActiveViewOptOut") 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 *SiteSettings) MarshalJSON() ([]byte, error) { - type NoMethod SiteSettings - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// SiteSkippableSetting: Skippable Settings -type SiteSkippableSetting struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#siteSkippableSetting". - Kind string `json:"kind,omitempty"` - - // ProgressOffset: Amount of time to play videos served to this site - // template before counting a view. Applicable when skippable is true. - ProgressOffset *VideoOffset `json:"progressOffset,omitempty"` - - // SkipOffset: Amount of time to play videos served to this site before - // the skip button should appear. Applicable when skippable is true. - SkipOffset *VideoOffset `json:"skipOffset,omitempty"` - - // Skippable: Whether the user can skip creatives served to this site. - // This will act as default for new placements created under this site. - Skippable bool `json:"skippable,omitempty"` - - // 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 *SiteSkippableSetting) MarshalJSON() ([]byte, error) { - type NoMethod SiteSkippableSetting - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// SiteTranscodeSetting: Transcode Settings -type SiteTranscodeSetting struct { - // EnabledVideoFormats: Allowlist of video formats to be served to this - // site template. Set this list to null or empty to serve all video - // formats. - EnabledVideoFormats []int64 `json:"enabledVideoFormats,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#siteTranscodeSetting". - Kind string `json:"kind,omitempty"` - - // ForceSendFields is a list of field names (e.g. "EnabledVideoFormats") - // 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. "EnabledVideoFormats") 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 *SiteTranscodeSetting) MarshalJSON() ([]byte, error) { - type NoMethod SiteTranscodeSetting - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// SiteVideoSettings: Video Settings -type SiteVideoSettings struct { - // CompanionSettings: Settings for the companion creatives of video - // creatives served to this site. - CompanionSettings *SiteCompanionSetting `json:"companionSettings,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#siteVideoSettings". - Kind string `json:"kind,omitempty"` - - // ObaEnabled: Whether OBA icons are enabled for this placement. - ObaEnabled bool `json:"obaEnabled,omitempty"` - - // ObaSettings: Settings for the OBA icon of video creatives served to - // this site. This will act as default for new placements created under - // this site. - ObaSettings *ObaIcon `json:"obaSettings,omitempty"` - - // Orientation: Orientation of a site template used for video. This will - // act as default for new placements created under this site. - // - // Possible values: - // "ANY" - // "LANDSCAPE" - // "PORTRAIT" - Orientation string `json:"orientation,omitempty"` - - // SkippableSettings: Settings for the skippability of video creatives - // served to this site. This will act as default for new placements - // created under this site. - SkippableSettings *SiteSkippableSetting `json:"skippableSettings,omitempty"` - - // TranscodeSettings: Settings for the transcodes of video creatives - // served to this site. This will act as default for new placements - // created under this site. - TranscodeSettings *SiteTranscodeSetting `json:"transcodeSettings,omitempty"` - - // ForceSendFields is a list of field names (e.g. "CompanionSettings") - // 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. "CompanionSettings") 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 *SiteVideoSettings) MarshalJSON() ([]byte, error) { - type NoMethod SiteVideoSettings - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// SitesListResponse: Site List Response -type SitesListResponse struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#sitesListResponse". - Kind string `json:"kind,omitempty"` - - // NextPageToken: Pagination token to be used for the next list - // operation. - NextPageToken string `json:"nextPageToken,omitempty"` - - // Sites: Site collection. - Sites []*Site `json:"sites,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 *SitesListResponse) MarshalJSON() ([]byte, error) { - type NoMethod SitesListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// Size: Represents the dimensions of ads, placements, creatives, or -// creative assets. -type Size struct { - // Height: Height of this size. Acceptable values are 0 to 32767, - // inclusive. - Height int64 `json:"height,omitempty"` - - // Iab: IAB standard size. This is a read-only, auto-generated field. - Iab bool `json:"iab,omitempty"` - - // Id: ID of this size. This is a read-only, auto-generated field. - Id int64 `json:"id,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#size". - Kind string `json:"kind,omitempty"` - - // Width: Width of this size. Acceptable values are 0 to 32767, - // inclusive. - Width int64 `json:"width,omitempty"` - - // ServerResponse contains the HTTP response code and headers from the - // server. - googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Height") 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. "Height") 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 *Size) MarshalJSON() ([]byte, error) { - type NoMethod Size - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// SizesListResponse: Size List Response -type SizesListResponse struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#sizesListResponse". - Kind string `json:"kind,omitempty"` - - // Sizes: Size collection. - Sizes []*Size `json:"sizes,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 *SizesListResponse) MarshalJSON() ([]byte, error) { - type NoMethod SizesListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// SkippableSetting: Skippable Settings -type SkippableSetting struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#skippableSetting". - Kind string `json:"kind,omitempty"` - - // ProgressOffset: Amount of time to play videos served to this - // placement before counting a view. Applicable when skippable is true. - ProgressOffset *VideoOffset `json:"progressOffset,omitempty"` - - // SkipOffset: Amount of time to play videos served to this placement - // before the skip button should appear. Applicable when skippable is - // true. - SkipOffset *VideoOffset `json:"skipOffset,omitempty"` - - // Skippable: Whether the user can skip creatives served to this - // placement. - Skippable bool `json:"skippable,omitempty"` - - // 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 *SkippableSetting) MarshalJSON() ([]byte, error) { - type NoMethod SkippableSetting - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// SortedDimension: Represents a sorted dimension. -type SortedDimension struct { - // Kind: The kind of resource this is, in this case - // dfareporting#sortedDimension. - Kind string `json:"kind,omitempty"` - - // Name: The name of the dimension. - Name string `json:"name,omitempty"` - - // SortOrder: An optional sort order for the dimension column. - // - // Possible values: - // "ASCENDING" - // "DESCENDING" - SortOrder string `json:"sortOrder,omitempty"` - - // 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 *SortedDimension) MarshalJSON() ([]byte, error) { - type NoMethod SortedDimension - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// Subaccount: Contains properties of a Campaign Manager subaccount. -type Subaccount struct { - // AccountId: ID of the account that contains this subaccount. This is a - // read-only field that can be left blank. - AccountId int64 `json:"accountId,omitempty,string"` - - // AvailablePermissionIds: IDs of the available user role permissions - // for this subaccount. - AvailablePermissionIds googleapi.Int64s `json:"availablePermissionIds,omitempty"` - - // Id: ID of this subaccount. This is a read-only, auto-generated field. - Id int64 `json:"id,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#subaccount". - Kind string `json:"kind,omitempty"` - - // Name: Name of this subaccount. This is a required field. Must be less - // than 128 characters long and be unique among subaccounts of the same - // account. - 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. "AccountId") 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. "AccountId") 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 *Subaccount) MarshalJSON() ([]byte, error) { - type NoMethod Subaccount - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// SubaccountsListResponse: Subaccount List Response -type SubaccountsListResponse struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#subaccountsListResponse". - Kind string `json:"kind,omitempty"` - - // NextPageToken: Pagination token to be used for the next list - // operation. - NextPageToken string `json:"nextPageToken,omitempty"` - - // Subaccounts: Subaccount collection. - Subaccounts []*Subaccount `json:"subaccounts,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 *SubaccountsListResponse) MarshalJSON() ([]byte, error) { - type NoMethod SubaccountsListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// TagData: Placement Tag Data -type TagData struct { - // AdId: Ad associated with this placement tag. Applicable only when - // format is PLACEMENT_TAG_TRACKING. - AdId int64 `json:"adId,omitempty,string"` - - // ClickTag: Tag string to record a click. - ClickTag string `json:"clickTag,omitempty"` - - // CreativeId: Creative associated with this placement tag. Applicable - // only when format is PLACEMENT_TAG_TRACKING. - CreativeId int64 `json:"creativeId,omitempty,string"` - - // Format: TagData tag format of this tag. - // - // Possible values: - // "PLACEMENT_TAG_STANDARD" - // "PLACEMENT_TAG_IFRAME_JAVASCRIPT" - // "PLACEMENT_TAG_IFRAME_ILAYER" - // "PLACEMENT_TAG_INTERNAL_REDIRECT" - // "PLACEMENT_TAG_JAVASCRIPT" - // "PLACEMENT_TAG_INTERSTITIAL_IFRAME_JAVASCRIPT" - // "PLACEMENT_TAG_INTERSTITIAL_INTERNAL_REDIRECT" - // "PLACEMENT_TAG_INTERSTITIAL_JAVASCRIPT" - // "PLACEMENT_TAG_CLICK_COMMANDS" - // "PLACEMENT_TAG_INSTREAM_VIDEO_PREFETCH" - // "PLACEMENT_TAG_TRACKING" - // "PLACEMENT_TAG_TRACKING_IFRAME" - // "PLACEMENT_TAG_TRACKING_JAVASCRIPT" - // "PLACEMENT_TAG_INSTREAM_VIDEO_PREFETCH_VAST_3" - // "PLACEMENT_TAG_IFRAME_JAVASCRIPT_LEGACY" - // "PLACEMENT_TAG_JAVASCRIPT_LEGACY" - // "PLACEMENT_TAG_INTERSTITIAL_IFRAME_JAVASCRIPT_LEGACY" - // "PLACEMENT_TAG_INTERSTITIAL_JAVASCRIPT_LEGACY" - // "PLACEMENT_TAG_INSTREAM_VIDEO_PREFETCH_VAST_4" - // "PLACEMENT_TAG_TRACKING_THIRD_PARTY_MEASUREMENT" - Format string `json:"format,omitempty"` - - // ImpressionTag: Tag string for serving an ad. - ImpressionTag string `json:"impressionTag,omitempty"` - - // ForceSendFields is a list of field names (e.g. "AdId") 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. "AdId") 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 *TagData) MarshalJSON() ([]byte, error) { - type NoMethod TagData - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// TagSetting: Tag Settings -type TagSetting struct { - // AdditionalKeyValues: Additional key-values to be included in tags. - // Each key-value pair must be of the form key=value, and pairs must be - // separated by a semicolon (;). Keys and values must not contain - // commas. For example, id=2;color=red is a valid value for this field. - AdditionalKeyValues string `json:"additionalKeyValues,omitempty"` - - // IncludeClickThroughUrls: Whether static landing page URLs should be - // included in the tags. This setting applies only to placements. - IncludeClickThroughUrls bool `json:"includeClickThroughUrls,omitempty"` - - // IncludeClickTracking: Whether click-tracking string should be - // included in the tags. - IncludeClickTracking bool `json:"includeClickTracking,omitempty"` - - // KeywordOption: Option specifying how keywords are embedded in ad - // tags. This setting can be used to specify whether keyword - // placeholders are inserted in placement tags for this site. Publishers - // can then add keywords to those placeholders. - // - // Possible values: - // "PLACEHOLDER_WITH_LIST_OF_KEYWORDS" - // "IGNORE" - // "GENERATE_SEPARATE_TAG_FOR_EACH_KEYWORD" - KeywordOption string `json:"keywordOption,omitempty"` - - // ForceSendFields is a list of field names (e.g. "AdditionalKeyValues") - // 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. "AdditionalKeyValues") 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 *TagSetting) MarshalJSON() ([]byte, error) { - type NoMethod TagSetting - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// TagSettings: Dynamic and Image Tag Settings. -type TagSettings struct { - // DynamicTagEnabled: Whether dynamic floodlight tags are enabled. - DynamicTagEnabled bool `json:"dynamicTagEnabled,omitempty"` - - // ImageTagEnabled: Whether image tags are enabled. - ImageTagEnabled bool `json:"imageTagEnabled,omitempty"` - - // ForceSendFields is a list of field names (e.g. "DynamicTagEnabled") - // 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. "DynamicTagEnabled") 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 *TagSettings) MarshalJSON() ([]byte, error) { - type NoMethod TagSettings - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// TargetWindow: Target Window. -type TargetWindow struct { - // CustomHtml: User-entered value. - CustomHtml string `json:"customHtml,omitempty"` - - // TargetWindowOption: Type of browser window for which the backup image - // of the flash creative can be displayed. - // - // Possible values: - // "NEW_WINDOW" - // "CURRENT_WINDOW" - // "CUSTOM" - TargetWindowOption string `json:"targetWindowOption,omitempty"` - - // ForceSendFields is a list of field names (e.g. "CustomHtml") 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. "CustomHtml") 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 *TargetWindow) MarshalJSON() ([]byte, error) { - type NoMethod TargetWindow - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// TargetableRemarketingList: Contains properties of a targetable -// remarketing list. Remarketing enables you to create lists of users -// who have performed specific actions on a site, then target ads to -// members of those lists. This resource is a read-only view of a -// remarketing list to be used to faciliate targeting ads to specific -// lists. Remarketing lists that are owned by your advertisers and those -// that are shared to your advertisers or account are accessible via -// this resource. To manage remarketing lists that are owned by your -// advertisers, use the RemarketingLists resource. -type TargetableRemarketingList struct { - // AccountId: Account ID of this remarketing list. This is a read-only, - // auto-generated field that is only returned in GET requests. - AccountId int64 `json:"accountId,omitempty,string"` - - // Active: Whether this targetable remarketing list is active. - Active bool `json:"active,omitempty"` - - // AdvertiserId: Dimension value for the advertiser ID that owns this - // targetable remarketing list. - AdvertiserId int64 `json:"advertiserId,omitempty,string"` - - // AdvertiserIdDimensionValue: Dimension value for the ID of the - // advertiser. - AdvertiserIdDimensionValue *DimensionValue `json:"advertiserIdDimensionValue,omitempty"` - - // Description: Targetable remarketing list description. - Description string `json:"description,omitempty"` - - // Id: Targetable remarketing list ID. - Id int64 `json:"id,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#targetableRemarketingList". - Kind string `json:"kind,omitempty"` - - // LifeSpan: Number of days that a user should remain in the targetable - // remarketing list without an impression. - LifeSpan int64 `json:"lifeSpan,omitempty,string"` - - // ListSize: Number of users currently in the list. This is a read-only - // field. - ListSize int64 `json:"listSize,omitempty,string"` - - // ListSource: Product from which this targetable remarketing list was - // originated. - // - // Possible values: - // "REMARKETING_LIST_SOURCE_OTHER" - // "REMARKETING_LIST_SOURCE_ADX" - // "REMARKETING_LIST_SOURCE_DFP" - // "REMARKETING_LIST_SOURCE_XFP" - // "REMARKETING_LIST_SOURCE_DFA" - // "REMARKETING_LIST_SOURCE_GA" - // "REMARKETING_LIST_SOURCE_YOUTUBE" - // "REMARKETING_LIST_SOURCE_DBM" - // "REMARKETING_LIST_SOURCE_GPLUS" - // "REMARKETING_LIST_SOURCE_DMP" - // "REMARKETING_LIST_SOURCE_PLAY_STORE" - ListSource string `json:"listSource,omitempty"` - - // Name: Name of the targetable remarketing list. Is no greater than 128 - // characters long. - Name string `json:"name,omitempty"` - - // SubaccountId: Subaccount ID of this remarketing list. This is a - // read-only, auto-generated field that is only returned in GET - // requests. - SubaccountId int64 `json:"subaccountId,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. "AccountId") 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. "AccountId") 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 *TargetableRemarketingList) MarshalJSON() ([]byte, error) { - type NoMethod TargetableRemarketingList - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// TargetableRemarketingListsListResponse: Targetable remarketing list -// response -type TargetableRemarketingListsListResponse struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#targetableRemarketingListsListResponse". - Kind string `json:"kind,omitempty"` - - // NextPageToken: Pagination token to be used for the next list - // operation. - NextPageToken string `json:"nextPageToken,omitempty"` - - // TargetableRemarketingLists: Targetable remarketing list collection. - TargetableRemarketingLists []*TargetableRemarketingList `json:"targetableRemarketingLists,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 *TargetableRemarketingListsListResponse) MarshalJSON() ([]byte, error) { - type NoMethod TargetableRemarketingListsListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// TargetingTemplate: Contains properties of a targeting template. A -// targeting template encapsulates targeting information which can be -// reused across multiple ads. -type TargetingTemplate struct { - // AccountId: Account ID of this targeting template. This field, if left - // unset, will be auto-generated on insert and is read-only after - // insert. - AccountId int64 `json:"accountId,omitempty,string"` - - // AdvertiserId: Advertiser ID of this targeting template. This is a - // required field on insert and is read-only after insert. - AdvertiserId int64 `json:"advertiserId,omitempty,string"` - - // AdvertiserIdDimensionValue: Dimension value for the ID of the - // advertiser. This is a read-only, auto-generated field. - AdvertiserIdDimensionValue *DimensionValue `json:"advertiserIdDimensionValue,omitempty"` - - // DayPartTargeting: Time and day targeting criteria. - DayPartTargeting *DayPartTargeting `json:"dayPartTargeting,omitempty"` - - // GeoTargeting: Geographical targeting criteria. - GeoTargeting *GeoTargeting `json:"geoTargeting,omitempty"` - - // Id: ID of this targeting template. This is a read-only, - // auto-generated field. - Id int64 `json:"id,omitempty,string"` - - // KeyValueTargetingExpression: Key-value targeting criteria. - KeyValueTargetingExpression *KeyValueTargetingExpression `json:"keyValueTargetingExpression,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#targetingTemplate". - Kind string `json:"kind,omitempty"` - - // LanguageTargeting: Language targeting criteria. - LanguageTargeting *LanguageTargeting `json:"languageTargeting,omitempty"` - - // ListTargetingExpression: Remarketing list targeting criteria. - ListTargetingExpression *ListTargetingExpression `json:"listTargetingExpression,omitempty"` - - // Name: Name of this targeting template. This field is required. It - // must be less than 256 characters long and unique within an - // advertiser. - Name string `json:"name,omitempty"` - - // SubaccountId: Subaccount ID of this targeting template. This field, - // if left unset, will be auto-generated on insert and is read-only - // after insert. - SubaccountId int64 `json:"subaccountId,omitempty,string"` - - // TechnologyTargeting: Technology platform targeting criteria. - TechnologyTargeting *TechnologyTargeting `json:"technologyTargeting,omitempty"` - - // ServerResponse contains the HTTP response code and headers from the - // server. - googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "AccountId") 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. "AccountId") 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 *TargetingTemplate) MarshalJSON() ([]byte, error) { - type NoMethod TargetingTemplate - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// TargetingTemplatesListResponse: Targeting Template List Response -type TargetingTemplatesListResponse struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#targetingTemplatesListResponse". - Kind string `json:"kind,omitempty"` - - // NextPageToken: Pagination token to be used for the next list - // operation. - NextPageToken string `json:"nextPageToken,omitempty"` - - // TargetingTemplates: Targeting template collection. - TargetingTemplates []*TargetingTemplate `json:"targetingTemplates,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 *TargetingTemplatesListResponse) MarshalJSON() ([]byte, error) { - type NoMethod TargetingTemplatesListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// TechnologyTargeting: Technology Targeting. -type TechnologyTargeting struct { - // Browsers: Browsers that this ad targets. For each browser either set - // browserVersionId or dartId along with the version numbers. If both - // are specified, only browserVersionId will be used. The other fields - // are populated automatically when the ad is inserted or updated. - Browsers []*Browser `json:"browsers,omitempty"` - - // ConnectionTypes: Connection types that this ad targets. For each - // connection type only id is required. The other fields are populated - // automatically when the ad is inserted or updated. - ConnectionTypes []*ConnectionType `json:"connectionTypes,omitempty"` - - // MobileCarriers: Mobile carriers that this ad targets. For each mobile - // carrier only id is required, and the other fields are populated - // automatically when the ad is inserted or updated. If targeting a - // mobile carrier, do not set targeting for any zip codes. - MobileCarriers []*MobileCarrier `json:"mobileCarriers,omitempty"` - - // OperatingSystemVersions: Operating system versions that this ad - // targets. To target all versions, use operatingSystems. For each - // operating system version, only id is required. The other fields are - // populated automatically when the ad is inserted or updated. If - // targeting an operating system version, do not set targeting for the - // corresponding operating system in operatingSystems. - OperatingSystemVersions []*OperatingSystemVersion `json:"operatingSystemVersions,omitempty"` - - // OperatingSystems: Operating systems that this ad targets. To target - // specific versions, use operatingSystemVersions. For each operating - // system only dartId is required. The other fields are populated - // automatically when the ad is inserted or updated. If targeting an - // operating system, do not set targeting for operating system versions - // for the same operating system. - OperatingSystems []*OperatingSystem `json:"operatingSystems,omitempty"` - - // PlatformTypes: Platform types that this ad targets. For example, - // desktop, mobile, or tablet. For each platform type, only id is - // required, and the other fields are populated automatically when the - // ad is inserted or updated. - PlatformTypes []*PlatformType `json:"platformTypes,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Browsers") 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. "Browsers") 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 *TechnologyTargeting) MarshalJSON() ([]byte, error) { - type NoMethod TechnologyTargeting - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// ThirdPartyAuthenticationToken: Third Party Authentication Token -type ThirdPartyAuthenticationToken struct { - // Name: Name of the third-party authentication token. - Name string `json:"name,omitempty"` - - // Value: Value of the third-party authentication token. This is a - // read-only, auto-generated field. - Value string `json:"value,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Name") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Name") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. - NullFields []string `json:"-"` -} - -func (s *ThirdPartyAuthenticationToken) MarshalJSON() ([]byte, error) { - type NoMethod ThirdPartyAuthenticationToken - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// ThirdPartyTrackingUrl: Third-party Tracking URL. -type ThirdPartyTrackingUrl struct { - // ThirdPartyUrlType: Third-party URL type for in-stream video and - // in-stream audio creatives. - // - // Possible values: - // "IMPRESSION" - // "CLICK_TRACKING" - // "VIDEO_START" - // "VIDEO_FIRST_QUARTILE" - // "VIDEO_MIDPOINT" - // "VIDEO_THIRD_QUARTILE" - // "VIDEO_COMPLETE" - // "VIDEO_MUTE" - // "VIDEO_PAUSE" - // "VIDEO_REWIND" - // "VIDEO_FULLSCREEN" - // "VIDEO_STOP" - // "VIDEO_CUSTOM" - // "SURVEY" - // "RICH_MEDIA_IMPRESSION" - // "RICH_MEDIA_RM_IMPRESSION" - // "RICH_MEDIA_BACKUP_IMPRESSION" - // "VIDEO_SKIP" - // "VIDEO_PROGRESS" - ThirdPartyUrlType string `json:"thirdPartyUrlType,omitempty"` - - // Url: URL for the specified third-party URL type. - Url string `json:"url,omitempty"` - - // ForceSendFields is a list of field names (e.g. "ThirdPartyUrlType") - // 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. "ThirdPartyUrlType") 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 *ThirdPartyTrackingUrl) MarshalJSON() ([]byte, error) { - type NoMethod ThirdPartyTrackingUrl - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// TranscodeSetting: Transcode Settings -type TranscodeSetting struct { - // EnabledVideoFormats: Allowlist of video formats to be served to this - // placement. Set this list to null or empty to serve all video formats. - EnabledVideoFormats []int64 `json:"enabledVideoFormats,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#transcodeSetting". - Kind string `json:"kind,omitempty"` - - // ForceSendFields is a list of field names (e.g. "EnabledVideoFormats") - // 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. "EnabledVideoFormats") 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 *TranscodeSetting) MarshalJSON() ([]byte, error) { - type NoMethod TranscodeSetting - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// UniversalAdId: A Universal Ad ID as per the VAST 4.0 spec. Applicable -// to the following creative types: INSTREAM_AUDIO, INSTREAM_VIDEO and -// VPAID. -type UniversalAdId struct { - // Registry: Registry used for the Ad ID value. - // - // Possible values: - // "OTHER" - // "AD_ID_OFFICIAL" - // "CLEARCAST" - // "DCM" - Registry string `json:"registry,omitempty"` - - // Value: ID value for this creative. Only alphanumeric characters and - // the following symbols are valid: "_/\-". Maximum length is 64 - // characters. Read only when registry is DCM. - Value string `json:"value,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Registry") 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. "Registry") 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 *UniversalAdId) MarshalJSON() ([]byte, error) { - type NoMethod UniversalAdId - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// UserDefinedVariableConfiguration: User Defined Variable -// configuration. -type UserDefinedVariableConfiguration struct { - // DataType: Data type for the variable. This is a required field. - // - // Possible values: - // "STRING" - // "NUMBER" - DataType string `json:"dataType,omitempty"` - - // ReportName: User-friendly name for the variable which will appear in - // reports. This is a required field, must be less than 64 characters - // long, and cannot contain the following characters: ""<>". - ReportName string `json:"reportName,omitempty"` - - // VariableType: Variable name in the tag. This is a required field. - // - // Possible values: - // "U1" - // "U2" - // "U3" - // "U4" - // "U5" - // "U6" - // "U7" - // "U8" - // "U9" - // "U10" - // "U11" - // "U12" - // "U13" - // "U14" - // "U15" - // "U16" - // "U17" - // "U18" - // "U19" - // "U20" - // "U21" - // "U22" - // "U23" - // "U24" - // "U25" - // "U26" - // "U27" - // "U28" - // "U29" - // "U30" - // "U31" - // "U32" - // "U33" - // "U34" - // "U35" - // "U36" - // "U37" - // "U38" - // "U39" - // "U40" - // "U41" - // "U42" - // "U43" - // "U44" - // "U45" - // "U46" - // "U47" - // "U48" - // "U49" - // "U50" - // "U51" - // "U52" - // "U53" - // "U54" - // "U55" - // "U56" - // "U57" - // "U58" - // "U59" - // "U60" - // "U61" - // "U62" - // "U63" - // "U64" - // "U65" - // "U66" - // "U67" - // "U68" - // "U69" - // "U70" - // "U71" - // "U72" - // "U73" - // "U74" - // "U75" - // "U76" - // "U77" - // "U78" - // "U79" - // "U80" - // "U81" - // "U82" - // "U83" - // "U84" - // "U85" - // "U86" - // "U87" - // "U88" - // "U89" - // "U90" - // "U91" - // "U92" - // "U93" - // "U94" - // "U95" - // "U96" - // "U97" - // "U98" - // "U99" - // "U100" - VariableType string `json:"variableType,omitempty"` - - // ForceSendFields is a list of field names (e.g. "DataType") 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. "DataType") 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 *UserDefinedVariableConfiguration) MarshalJSON() ([]byte, error) { - type NoMethod UserDefinedVariableConfiguration - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// UserProfile: A UserProfile resource lets you list all DFA user -// profiles that are associated with a Google user account. The -// profile_id needs to be specified in other API requests. -type UserProfile struct { - // AccountId: The account ID to which this profile belongs. - AccountId int64 `json:"accountId,omitempty,string"` - - // AccountName: The account name this profile belongs to. - AccountName string `json:"accountName,omitempty"` - - // Etag: Etag of this resource. - Etag string `json:"etag,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#userProfile". - Kind string `json:"kind,omitempty"` - - // ProfileId: The unique ID of the user profile. - ProfileId int64 `json:"profileId,omitempty,string"` - - // SubAccountId: The sub account ID this profile belongs to if - // applicable. - SubAccountId int64 `json:"subAccountId,omitempty,string"` - - // SubAccountName: The sub account name this profile belongs to if - // applicable. - SubAccountName string `json:"subAccountName,omitempty"` - - // UserName: The user name. - UserName string `json:"userName,omitempty"` - - // ServerResponse contains the HTTP response code and headers from the - // server. - googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "AccountId") 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. "AccountId") 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 *UserProfile) MarshalJSON() ([]byte, error) { - type NoMethod UserProfile - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// UserProfileList: Represents the list of user profiles. -type UserProfileList struct { - // Etag: Etag of this resource. - Etag string `json:"etag,omitempty"` - - // Items: The user profiles returned in this response. - Items []*UserProfile `json:"items,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#userProfileList". - 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. "Etag") 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. "Etag") 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 *UserProfileList) MarshalJSON() ([]byte, error) { - type NoMethod UserProfileList - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// UserRole: Contains properties of auser role, which is used to manage -// user access. -type UserRole struct { - // AccountId: Account ID of this user role. This is a read-only field - // that can be left blank. - AccountId int64 `json:"accountId,omitempty,string"` - - // DefaultUserRole: Whether this is a default user role. Default user - // roles are created by the system for the account/subaccount and cannot - // be modified or deleted. Each default user role comes with a basic set - // of preassigned permissions. - DefaultUserRole bool `json:"defaultUserRole,omitempty"` - - // Id: ID of this user role. This is a read-only, auto-generated field. - Id int64 `json:"id,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#userRole". - Kind string `json:"kind,omitempty"` - - // Name: Name of this user role. This is a required field. Must be less - // than 256 characters long. If this user role is under a subaccount, - // the name must be unique among sites of the same subaccount. - // Otherwise, this user role is a top-level user role, and the name must - // be unique among top-level user roles of the same account. - Name string `json:"name,omitempty"` - - // ParentUserRoleId: ID of the user role that this user role is based on - // or copied from. This is a required field. - ParentUserRoleId int64 `json:"parentUserRoleId,omitempty,string"` - - // Permissions: List of permissions associated with this user role. - Permissions []*UserRolePermission `json:"permissions,omitempty"` - - // SubaccountId: Subaccount ID of this user role. This is a read-only - // field that can be left blank. - SubaccountId int64 `json:"subaccountId,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. "AccountId") 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. "AccountId") 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 *UserRole) MarshalJSON() ([]byte, error) { - type NoMethod UserRole - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// UserRolePermission: Contains properties of a user role permission. -type UserRolePermission struct { - // Availability: Levels of availability for a user role permission. - // - // Possible values: - // "NOT_AVAILABLE_BY_DEFAULT" - // "ACCOUNT_BY_DEFAULT" - // "SUBACCOUNT_AND_ACCOUNT_BY_DEFAULT" - // "ACCOUNT_ALWAYS" - // "SUBACCOUNT_AND_ACCOUNT_ALWAYS" - // "USER_PROFILE_ONLY" - Availability string `json:"availability,omitempty"` - - // Id: ID of this user role permission. - Id int64 `json:"id,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#userRolePermission". - Kind string `json:"kind,omitempty"` - - // Name: Name of this user role permission. - Name string `json:"name,omitempty"` - - // PermissionGroupId: ID of the permission group that this user role - // permission belongs to. - PermissionGroupId int64 `json:"permissionGroupId,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. "Availability") 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. "Availability") 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 *UserRolePermission) MarshalJSON() ([]byte, error) { - type NoMethod UserRolePermission - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// UserRolePermissionGroup: Represents a grouping of related user role -// permissions. -type UserRolePermissionGroup struct { - // Id: ID of this user role permission. - Id int64 `json:"id,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#userRolePermissionGroup". - Kind string `json:"kind,omitempty"` - - // Name: Name of this user role permission group. - 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. "Id") 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. "Id") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // 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 *UserRolePermissionGroup) MarshalJSON() ([]byte, error) { - type NoMethod UserRolePermissionGroup - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// UserRolePermissionGroupsListResponse: User Role Permission Group List -// Response -type UserRolePermissionGroupsListResponse struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#userRolePermissionGroupsListResponse". - Kind string `json:"kind,omitempty"` - - // UserRolePermissionGroups: User role permission group collection. - UserRolePermissionGroups []*UserRolePermissionGroup `json:"userRolePermissionGroups,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 *UserRolePermissionGroupsListResponse) MarshalJSON() ([]byte, error) { - type NoMethod UserRolePermissionGroupsListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// UserRolePermissionsListResponse: User Role Permission List Response -type UserRolePermissionsListResponse struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#userRolePermissionsListResponse". - Kind string `json:"kind,omitempty"` - - // UserRolePermissions: User role permission collection. - UserRolePermissions []*UserRolePermission `json:"userRolePermissions,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 *UserRolePermissionsListResponse) MarshalJSON() ([]byte, error) { - type NoMethod UserRolePermissionsListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// UserRolesListResponse: User Role List Response -type UserRolesListResponse struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#userRolesListResponse". - Kind string `json:"kind,omitempty"` - - // NextPageToken: Pagination token to be used for the next list - // operation. - NextPageToken string `json:"nextPageToken,omitempty"` - - // UserRoles: User role collection. - UserRoles []*UserRole `json:"userRoles,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 *UserRolesListResponse) MarshalJSON() ([]byte, error) { - type NoMethod UserRolesListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// VideoFormat: Contains information about supported video formats. -type VideoFormat struct { - // FileType: File type of the video format. - // - // Possible values: - // "FLV" - // "THREEGPP" - // "MP4" - // "WEBM" - // "M3U8" - FileType string `json:"fileType,omitempty"` - - // Id: ID of the video format. - Id int64 `json:"id,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#videoFormat". - Kind string `json:"kind,omitempty"` - - // Resolution: The resolution of this video format. - Resolution *Size `json:"resolution,omitempty"` - - // TargetBitRate: The target bit rate of this video format. - TargetBitRate int64 `json:"targetBitRate,omitempty"` - - // ServerResponse contains the HTTP response code and headers from the - // server. - googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "FileType") 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. "FileType") 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 *VideoFormat) MarshalJSON() ([]byte, error) { - type NoMethod VideoFormat - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// VideoFormatsListResponse: Video Format List Response -type VideoFormatsListResponse struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#videoFormatsListResponse". - Kind string `json:"kind,omitempty"` - - // VideoFormats: Video format collection. - VideoFormats []*VideoFormat `json:"videoFormats,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 *VideoFormatsListResponse) MarshalJSON() ([]byte, error) { - type NoMethod VideoFormatsListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// VideoOffset: Video Offset -type VideoOffset struct { - // OffsetPercentage: Duration, as a percentage of video duration. Do not - // set when offsetSeconds is set. Acceptable values are 0 to 100, - // inclusive. - OffsetPercentage int64 `json:"offsetPercentage,omitempty"` - - // OffsetSeconds: Duration, in seconds. Do not set when offsetPercentage - // is set. Acceptable values are 0 to 86399, inclusive. - OffsetSeconds int64 `json:"offsetSeconds,omitempty"` - - // ForceSendFields is a list of field names (e.g. "OffsetPercentage") 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. "OffsetPercentage") 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 *VideoOffset) MarshalJSON() ([]byte, error) { - type NoMethod VideoOffset - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// VideoSettings: Video Settings -type VideoSettings struct { - // CompanionSettings: Settings for the companion creatives of video - // creatives served to this placement. - CompanionSettings *CompanionSetting `json:"companionSettings,omitempty"` - - // DurationSeconds: Duration of a video placement in seconds. - DurationSeconds int64 `json:"durationSeconds,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#videoSettings". - Kind string `json:"kind,omitempty"` - - // ObaEnabled: Whether OBA icons are enabled for this placement. - ObaEnabled bool `json:"obaEnabled,omitempty"` - - // ObaSettings: Settings for the OBA icon of video creatives served to - // this placement. If this object is provided, the creative-level OBA - // settings will be overridden. - ObaSettings *ObaIcon `json:"obaSettings,omitempty"` - - // Orientation: Orientation of a video placement. If this value is set, - // placement will return assets matching the specified orientation. - // - // Possible values: - // "ANY" - // "LANDSCAPE" - // "PORTRAIT" - Orientation string `json:"orientation,omitempty"` - - // SkippableSettings: Settings for the skippability of video creatives - // served to this placement. If this object is provided, the - // creative-level skippable settings will be overridden. - SkippableSettings *SkippableSetting `json:"skippableSettings,omitempty"` - - // TranscodeSettings: Settings for the transcodes of video creatives - // served to this placement. If this object is provided, the - // creative-level transcode settings will be overridden. - TranscodeSettings *TranscodeSetting `json:"transcodeSettings,omitempty"` - - // ForceSendFields is a list of field names (e.g. "CompanionSettings") - // 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. "CompanionSettings") 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 *VideoSettings) MarshalJSON() ([]byte, error) { - type NoMethod VideoSettings - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// method id "dfareporting.accountActiveAdSummaries.get": - -type AccountActiveAdSummariesGetCall struct { - s *Service - profileId int64 - summaryAccountId int64 - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} - -// Get: Gets the account's active ad summary by account ID. -// -// - profileId: User profile ID associated with this request. -// - summaryAccountId: Account ID. -func (r *AccountActiveAdSummariesService) Get(profileId int64, summaryAccountId int64) *AccountActiveAdSummariesGetCall { - c := &AccountActiveAdSummariesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.profileId = profileId - c.summaryAccountId = summaryAccountId - 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 *AccountActiveAdSummariesGetCall) Fields(s ...googleapi.Field) *AccountActiveAdSummariesGetCall { - 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 *AccountActiveAdSummariesGetCall) IfNoneMatch(entityTag string) *AccountActiveAdSummariesGetCall { - 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 *AccountActiveAdSummariesGetCall) Context(ctx context.Context) *AccountActiveAdSummariesGetCall { - 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 *AccountActiveAdSummariesGetCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *AccountActiveAdSummariesGetCall) 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, "userprofiles/{profileId}/accountActiveAdSummaries/{summaryAccountId}") - 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{ - "profileId": strconv.FormatInt(c.profileId, 10), - "summaryAccountId": strconv.FormatInt(c.summaryAccountId, 10), - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "dfareporting.accountActiveAdSummaries.get" call. -// Exactly one of *AccountActiveAdSummary or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *AccountActiveAdSummary.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 *AccountActiveAdSummariesGetCall) Do(opts ...googleapi.CallOption) (*AccountActiveAdSummary, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &AccountActiveAdSummary{ - 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 account's active ad summary by account ID.", - // "flatPath": "userprofiles/{profileId}/accountActiveAdSummaries/{summaryAccountId}", - // "httpMethod": "GET", - // "id": "dfareporting.accountActiveAdSummaries.get", - // "parameterOrder": [ - // "profileId", - // "summaryAccountId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "summaryAccountId": { - // "description": "Account ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/accountActiveAdSummaries/{summaryAccountId}", - // "response": { - // "$ref": "AccountActiveAdSummary" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.accountPermissionGroups.get": - -type AccountPermissionGroupsGetCall struct { - s *Service - profileId int64 - id int64 - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} - -// Get: Gets one account permission group by ID. -// -// - id: Account permission group ID. -// - profileId: User profile ID associated with this request. -func (r *AccountPermissionGroupsService) Get(profileId int64, id int64) *AccountPermissionGroupsGetCall { - c := &AccountPermissionGroupsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.profileId = profileId - c.id = id - 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 *AccountPermissionGroupsGetCall) Fields(s ...googleapi.Field) *AccountPermissionGroupsGetCall { - 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 *AccountPermissionGroupsGetCall) IfNoneMatch(entityTag string) *AccountPermissionGroupsGetCall { - 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 *AccountPermissionGroupsGetCall) Context(ctx context.Context) *AccountPermissionGroupsGetCall { - 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 *AccountPermissionGroupsGetCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *AccountPermissionGroupsGetCall) 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, "userprofiles/{profileId}/accountPermissionGroups/{id}") - 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{ - "profileId": strconv.FormatInt(c.profileId, 10), - "id": strconv.FormatInt(c.id, 10), - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "dfareporting.accountPermissionGroups.get" call. -// Exactly one of *AccountPermissionGroup or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *AccountPermissionGroup.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 *AccountPermissionGroupsGetCall) Do(opts ...googleapi.CallOption) (*AccountPermissionGroup, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &AccountPermissionGroup{ - 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 one account permission group by ID.", - // "flatPath": "userprofiles/{profileId}/accountPermissionGroups/{id}", - // "httpMethod": "GET", - // "id": "dfareporting.accountPermissionGroups.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Account permission group ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/accountPermissionGroups/{id}", - // "response": { - // "$ref": "AccountPermissionGroup" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.accountPermissionGroups.list": - -type AccountPermissionGroupsListCall struct { - s *Service - profileId int64 - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} - -// List: Retrieves the list of account permission groups. -// -// - profileId: User profile ID associated with this request. -func (r *AccountPermissionGroupsService) List(profileId int64) *AccountPermissionGroupsListCall { - c := &AccountPermissionGroupsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.profileId = profileId - 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 *AccountPermissionGroupsListCall) Fields(s ...googleapi.Field) *AccountPermissionGroupsListCall { - 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 *AccountPermissionGroupsListCall) IfNoneMatch(entityTag string) *AccountPermissionGroupsListCall { - 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 *AccountPermissionGroupsListCall) Context(ctx context.Context) *AccountPermissionGroupsListCall { - 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 *AccountPermissionGroupsListCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *AccountPermissionGroupsListCall) 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, "userprofiles/{profileId}/accountPermissionGroups") - 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{ - "profileId": strconv.FormatInt(c.profileId, 10), - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "dfareporting.accountPermissionGroups.list" call. -// Exactly one of *AccountPermissionGroupsListResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *AccountPermissionGroupsListResponse.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 *AccountPermissionGroupsListCall) Do(opts ...googleapi.CallOption) (*AccountPermissionGroupsListResponse, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &AccountPermissionGroupsListResponse{ - 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 list of account permission groups.", - // "flatPath": "userprofiles/{profileId}/accountPermissionGroups", - // "httpMethod": "GET", - // "id": "dfareporting.accountPermissionGroups.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/accountPermissionGroups", - // "response": { - // "$ref": "AccountPermissionGroupsListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.accountPermissions.get": - -type AccountPermissionsGetCall struct { - s *Service - profileId int64 - id int64 - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} - -// Get: Gets one account permission by ID. -// -// - id: Account permission ID. -// - profileId: User profile ID associated with this request. -func (r *AccountPermissionsService) Get(profileId int64, id int64) *AccountPermissionsGetCall { - c := &AccountPermissionsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.profileId = profileId - c.id = id - 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 *AccountPermissionsGetCall) Fields(s ...googleapi.Field) *AccountPermissionsGetCall { - 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 *AccountPermissionsGetCall) IfNoneMatch(entityTag string) *AccountPermissionsGetCall { - 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 *AccountPermissionsGetCall) Context(ctx context.Context) *AccountPermissionsGetCall { - 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 *AccountPermissionsGetCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *AccountPermissionsGetCall) 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, "userprofiles/{profileId}/accountPermissions/{id}") - 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{ - "profileId": strconv.FormatInt(c.profileId, 10), - "id": strconv.FormatInt(c.id, 10), - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "dfareporting.accountPermissions.get" call. -// Exactly one of *AccountPermission or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *AccountPermission.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 *AccountPermissionsGetCall) Do(opts ...googleapi.CallOption) (*AccountPermission, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &AccountPermission{ - 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 one account permission by ID.", - // "flatPath": "userprofiles/{profileId}/accountPermissions/{id}", - // "httpMethod": "GET", - // "id": "dfareporting.accountPermissions.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Account permission ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/accountPermissions/{id}", - // "response": { - // "$ref": "AccountPermission" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.accountPermissions.list": - -type AccountPermissionsListCall struct { - s *Service - profileId int64 - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} - -// List: Retrieves the list of account permissions. -// -// - profileId: User profile ID associated with this request. -func (r *AccountPermissionsService) List(profileId int64) *AccountPermissionsListCall { - c := &AccountPermissionsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.profileId = profileId - 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 *AccountPermissionsListCall) Fields(s ...googleapi.Field) *AccountPermissionsListCall { - 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 *AccountPermissionsListCall) IfNoneMatch(entityTag string) *AccountPermissionsListCall { - 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 *AccountPermissionsListCall) Context(ctx context.Context) *AccountPermissionsListCall { - 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 *AccountPermissionsListCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *AccountPermissionsListCall) 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, "userprofiles/{profileId}/accountPermissions") - 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{ - "profileId": strconv.FormatInt(c.profileId, 10), - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "dfareporting.accountPermissions.list" call. -// Exactly one of *AccountPermissionsListResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *AccountPermissionsListResponse.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 *AccountPermissionsListCall) Do(opts ...googleapi.CallOption) (*AccountPermissionsListResponse, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &AccountPermissionsListResponse{ - 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 list of account permissions.", - // "flatPath": "userprofiles/{profileId}/accountPermissions", - // "httpMethod": "GET", - // "id": "dfareporting.accountPermissions.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/accountPermissions", - // "response": { - // "$ref": "AccountPermissionsListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.accountUserProfiles.get": - -type AccountUserProfilesGetCall struct { - s *Service - profileId int64 - id int64 - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} - -// Get: Gets one account user profile by ID. -// -// - id: User profile ID. -// - profileId: User profile ID associated with this request. -func (r *AccountUserProfilesService) Get(profileId int64, id int64) *AccountUserProfilesGetCall { - c := &AccountUserProfilesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.profileId = profileId - c.id = id - 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 *AccountUserProfilesGetCall) Fields(s ...googleapi.Field) *AccountUserProfilesGetCall { - 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 *AccountUserProfilesGetCall) IfNoneMatch(entityTag string) *AccountUserProfilesGetCall { - 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 *AccountUserProfilesGetCall) Context(ctx context.Context) *AccountUserProfilesGetCall { - 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 *AccountUserProfilesGetCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *AccountUserProfilesGetCall) 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, "userprofiles/{profileId}/accountUserProfiles/{id}") - 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{ - "profileId": strconv.FormatInt(c.profileId, 10), - "id": strconv.FormatInt(c.id, 10), - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "dfareporting.accountUserProfiles.get" call. -// Exactly one of *AccountUserProfile or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *AccountUserProfile.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 *AccountUserProfilesGetCall) Do(opts ...googleapi.CallOption) (*AccountUserProfile, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &AccountUserProfile{ - 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 one account user profile by ID.", - // "flatPath": "userprofiles/{profileId}/accountUserProfiles/{id}", - // "httpMethod": "GET", - // "id": "dfareporting.accountUserProfiles.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "User profile ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/accountUserProfiles/{id}", - // "response": { - // "$ref": "AccountUserProfile" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.accountUserProfiles.insert": - -type AccountUserProfilesInsertCall struct { - s *Service - profileId int64 - accountuserprofile *AccountUserProfile - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// Insert: Inserts a new account user profile. -// -// - profileId: User profile ID associated with this request. -func (r *AccountUserProfilesService) Insert(profileId int64, accountuserprofile *AccountUserProfile) *AccountUserProfilesInsertCall { - c := &AccountUserProfilesInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.profileId = profileId - c.accountuserprofile = accountuserprofile - 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 *AccountUserProfilesInsertCall) Fields(s ...googleapi.Field) *AccountUserProfilesInsertCall { - 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 *AccountUserProfilesInsertCall) Context(ctx context.Context) *AccountUserProfilesInsertCall { - 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 *AccountUserProfilesInsertCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *AccountUserProfilesInsertCall) 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.accountuserprofile) - 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, "userprofiles/{profileId}/accountUserProfiles") - 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{ - "profileId": strconv.FormatInt(c.profileId, 10), - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "dfareporting.accountUserProfiles.insert" call. -// Exactly one of *AccountUserProfile or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *AccountUserProfile.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 *AccountUserProfilesInsertCall) Do(opts ...googleapi.CallOption) (*AccountUserProfile, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &AccountUserProfile{ - 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": "Inserts a new account user profile.", - // "flatPath": "userprofiles/{profileId}/accountUserProfiles", - // "httpMethod": "POST", - // "id": "dfareporting.accountUserProfiles.insert", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/accountUserProfiles", - // "request": { - // "$ref": "AccountUserProfile" - // }, - // "response": { - // "$ref": "AccountUserProfile" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.accountUserProfiles.list": - -type AccountUserProfilesListCall struct { - s *Service - profileId int64 - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} - -// List: Retrieves a list of account user profiles, possibly filtered. -// This method supports paging. -// -// - profileId: User profile ID associated with this request. -func (r *AccountUserProfilesService) List(profileId int64) *AccountUserProfilesListCall { - c := &AccountUserProfilesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.profileId = profileId - return c -} - -// Active sets the optional parameter "active": Select only active user -// profiles. -func (c *AccountUserProfilesListCall) Active(active bool) *AccountUserProfilesListCall { - c.urlParams_.Set("active", fmt.Sprint(active)) - return c -} - -// Ids sets the optional parameter "ids": Select only user profiles with -// these IDs. -func (c *AccountUserProfilesListCall) Ids(ids ...int64) *AccountUserProfilesListCall { - var ids_ []string - for _, v := range ids { - ids_ = append(ids_, fmt.Sprint(v)) - } - c.urlParams_.SetMulti("ids", ids_) - return c -} - -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. -func (c *AccountUserProfilesListCall) MaxResults(maxResults int64) *AccountUserProfilesListCall { - c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) - return c -} - -// PageToken sets the optional parameter "pageToken": Value of the -// nextPageToken from the previous result page. -func (c *AccountUserProfilesListCall) PageToken(pageToken string) *AccountUserProfilesListCall { - c.urlParams_.Set("pageToken", pageToken) - return c -} - -// SearchString sets the optional parameter "searchString": Allows -// searching for objects by name, ID or email. Wildcards (*) are -// allowed. For example, "user profile*2015" will return objects with -// names like "user profile June 2015", "user profile April 2015", or -// simply "user profile 2015". Most of the searches also add wildcards -// implicitly at the start and the end of the search string. For -// example, a search string of "user profile" will match objects with -// name "my user profile", "user profile 2015", or simply "user -// profile". -func (c *AccountUserProfilesListCall) SearchString(searchString string) *AccountUserProfilesListCall { - c.urlParams_.Set("searchString", searchString) - return c -} - -// SortField sets the optional parameter "sortField": Field by which to -// sort the list. -// -// Possible values: -// -// "ID" (default) -// "NAME" -func (c *AccountUserProfilesListCall) SortField(sortField string) *AccountUserProfilesListCall { - c.urlParams_.Set("sortField", sortField) - return c -} - -// SortOrder sets the optional parameter "sortOrder": Order of sorted -// results. -// -// Possible values: -// -// "ASCENDING" (default) -// "DESCENDING" -func (c *AccountUserProfilesListCall) SortOrder(sortOrder string) *AccountUserProfilesListCall { - c.urlParams_.Set("sortOrder", sortOrder) - return c -} - -// SubaccountId sets the optional parameter "subaccountId": Select only -// user profiles with the specified subaccount ID. -func (c *AccountUserProfilesListCall) SubaccountId(subaccountId int64) *AccountUserProfilesListCall { - c.urlParams_.Set("subaccountId", fmt.Sprint(subaccountId)) - return c -} - -// UserRoleId sets the optional parameter "userRoleId": Select only user -// profiles with the specified user role ID. -func (c *AccountUserProfilesListCall) UserRoleId(userRoleId int64) *AccountUserProfilesListCall { - c.urlParams_.Set("userRoleId", fmt.Sprint(userRoleId)) - 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 *AccountUserProfilesListCall) Fields(s ...googleapi.Field) *AccountUserProfilesListCall { - 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 *AccountUserProfilesListCall) IfNoneMatch(entityTag string) *AccountUserProfilesListCall { - 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 *AccountUserProfilesListCall) Context(ctx context.Context) *AccountUserProfilesListCall { - 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 *AccountUserProfilesListCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *AccountUserProfilesListCall) 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, "userprofiles/{profileId}/accountUserProfiles") - 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{ - "profileId": strconv.FormatInt(c.profileId, 10), - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "dfareporting.accountUserProfiles.list" call. -// Exactly one of *AccountUserProfilesListResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *AccountUserProfilesListResponse.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 *AccountUserProfilesListCall) Do(opts ...googleapi.CallOption) (*AccountUserProfilesListResponse, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &AccountUserProfilesListResponse{ - 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 a list of account user profiles, possibly filtered. This method supports paging.", - // "flatPath": "userprofiles/{profileId}/accountUserProfiles", - // "httpMethod": "GET", - // "id": "dfareporting.accountUserProfiles.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "active": { - // "description": "Select only active user profiles.", - // "location": "query", - // "type": "boolean" - // }, - // "ids": { - // "description": "Select only user profiles with these IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "maxResults": { - // "default": "1000", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "1000", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Value of the nextPageToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "searchString": { - // "description": "Allows searching for objects by name, ID or email. Wildcards (*) are allowed. For example, \"user profile*2015\" will return objects with names like \"user profile June 2015\", \"user profile April 2015\", or simply \"user profile 2015\". Most of the searches also add wildcards implicitly at the start and the end of the search string. For example, a search string of \"user profile\" will match objects with name \"my user profile\", \"user profile 2015\", or simply \"user profile\".", - // "location": "query", - // "type": "string" - // }, - // "sortField": { - // "default": "ID", - // "description": "Field by which to sort the list.", - // "enum": [ - // "ID", - // "NAME" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "sortOrder": { - // "default": "ASCENDING", - // "description": "Order of sorted results.", - // "enum": [ - // "ASCENDING", - // "DESCENDING" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "subaccountId": { - // "description": "Select only user profiles with the specified subaccount ID.", - // "format": "int64", - // "location": "query", - // "type": "string" - // }, - // "userRoleId": { - // "description": "Select only user profiles with the specified user role ID.", - // "format": "int64", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/accountUserProfiles", - // "response": { - // "$ref": "AccountUserProfilesListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// 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 *AccountUserProfilesListCall) Pages(ctx context.Context, f func(*AccountUserProfilesListResponse) 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 "dfareporting.accountUserProfiles.patch": - -type AccountUserProfilesPatchCall struct { - s *Service - profileId int64 - accountuserprofile *AccountUserProfile - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// Patch: Updates an existing account user profile. This method supports -// patch semantics. -// -// - id: AccountUserProfile ID. -// - profileId: User profile ID associated with this request. -func (r *AccountUserProfilesService) Patch(profileId int64, id int64, accountuserprofile *AccountUserProfile) *AccountUserProfilesPatchCall { - c := &AccountUserProfilesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.profileId = profileId - c.urlParams_.Set("id", fmt.Sprint(id)) - c.accountuserprofile = accountuserprofile - 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 *AccountUserProfilesPatchCall) Fields(s ...googleapi.Field) *AccountUserProfilesPatchCall { - 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 *AccountUserProfilesPatchCall) Context(ctx context.Context) *AccountUserProfilesPatchCall { - 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 *AccountUserProfilesPatchCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *AccountUserProfilesPatchCall) 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.accountuserprofile) - 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, "userprofiles/{profileId}/accountUserProfiles") - 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{ - "profileId": strconv.FormatInt(c.profileId, 10), - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "dfareporting.accountUserProfiles.patch" call. -// Exactly one of *AccountUserProfile or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *AccountUserProfile.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 *AccountUserProfilesPatchCall) Do(opts ...googleapi.CallOption) (*AccountUserProfile, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &AccountUserProfile{ - 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 an existing account user profile. This method supports patch semantics.", - // "flatPath": "userprofiles/{profileId}/accountUserProfiles", - // "httpMethod": "PATCH", - // "id": "dfareporting.accountUserProfiles.patch", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "AccountUserProfile ID.", - // "format": "int64", - // "location": "query", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/accountUserProfiles", - // "request": { - // "$ref": "AccountUserProfile" - // }, - // "response": { - // "$ref": "AccountUserProfile" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.accountUserProfiles.update": - -type AccountUserProfilesUpdateCall struct { - s *Service - profileId int64 - accountuserprofile *AccountUserProfile - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// Update: Updates an existing account user profile. -// -// - profileId: User profile ID associated with this request. -func (r *AccountUserProfilesService) Update(profileId int64, accountuserprofile *AccountUserProfile) *AccountUserProfilesUpdateCall { - c := &AccountUserProfilesUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.profileId = profileId - c.accountuserprofile = accountuserprofile - 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 *AccountUserProfilesUpdateCall) Fields(s ...googleapi.Field) *AccountUserProfilesUpdateCall { - 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 *AccountUserProfilesUpdateCall) Context(ctx context.Context) *AccountUserProfilesUpdateCall { - 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 *AccountUserProfilesUpdateCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *AccountUserProfilesUpdateCall) 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.accountuserprofile) - 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, "userprofiles/{profileId}/accountUserProfiles") - urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("PUT", urls, body) - if err != nil { - return nil, err - } - req.Header = reqHeaders - googleapi.Expand(req.URL, map[string]string{ - "profileId": strconv.FormatInt(c.profileId, 10), - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "dfareporting.accountUserProfiles.update" call. -// Exactly one of *AccountUserProfile or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *AccountUserProfile.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 *AccountUserProfilesUpdateCall) Do(opts ...googleapi.CallOption) (*AccountUserProfile, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &AccountUserProfile{ - 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 an existing account user profile.", - // "flatPath": "userprofiles/{profileId}/accountUserProfiles", - // "httpMethod": "PUT", - // "id": "dfareporting.accountUserProfiles.update", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/accountUserProfiles", - // "request": { - // "$ref": "AccountUserProfile" - // }, - // "response": { - // "$ref": "AccountUserProfile" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.accounts.get": - -type AccountsGetCall struct { - s *Service - profileId int64 - id int64 - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} - -// Get: Gets one account by ID. -// -// - id: Account ID. -// - profileId: User profile ID associated with this request. -func (r *AccountsService) Get(profileId int64, id int64) *AccountsGetCall { - c := &AccountsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.profileId = profileId - c.id = id - 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 *AccountsGetCall) Fields(s ...googleapi.Field) *AccountsGetCall { - 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 *AccountsGetCall) IfNoneMatch(entityTag string) *AccountsGetCall { - 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 *AccountsGetCall) Context(ctx context.Context) *AccountsGetCall { - 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 *AccountsGetCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *AccountsGetCall) 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, "userprofiles/{profileId}/accounts/{id}") - 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{ - "profileId": strconv.FormatInt(c.profileId, 10), - "id": strconv.FormatInt(c.id, 10), - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "dfareporting.accounts.get" call. -// Exactly one of *Account or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Account.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 *AccountsGetCall) Do(opts ...googleapi.CallOption) (*Account, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &Account{ - 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 one account by ID.", - // "flatPath": "userprofiles/{profileId}/accounts/{id}", - // "httpMethod": "GET", - // "id": "dfareporting.accounts.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Account ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/accounts/{id}", - // "response": { - // "$ref": "Account" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.accounts.list": - -type AccountsListCall struct { - s *Service - profileId int64 - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} - -// List: Retrieves the list of accounts, possibly filtered. This method -// supports paging. -// -// - profileId: User profile ID associated with this request. -func (r *AccountsService) List(profileId int64) *AccountsListCall { - c := &AccountsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.profileId = profileId - return c -} - -// Active sets the optional parameter "active": Select only active -// accounts. Don't set this field to select both active and non-active -// accounts. -func (c *AccountsListCall) Active(active bool) *AccountsListCall { - c.urlParams_.Set("active", fmt.Sprint(active)) - return c -} - -// Ids sets the optional parameter "ids": Select only accounts with -// these IDs. -func (c *AccountsListCall) Ids(ids ...int64) *AccountsListCall { - var ids_ []string - for _, v := range ids { - ids_ = append(ids_, fmt.Sprint(v)) - } - c.urlParams_.SetMulti("ids", ids_) - return c -} - -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. -func (c *AccountsListCall) MaxResults(maxResults int64) *AccountsListCall { - c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) - return c -} - -// PageToken sets the optional parameter "pageToken": Value of the -// nextPageToken from the previous result page. -func (c *AccountsListCall) PageToken(pageToken string) *AccountsListCall { - c.urlParams_.Set("pageToken", pageToken) - return c -} - -// SearchString sets the optional parameter "searchString": Allows -// searching for objects by name or ID. Wildcards (*) are allowed. For -// example, "account*2015" will return objects with names like "account -// June 2015", "account April 2015", or simply "account 2015". Most of -// the searches also add wildcards implicitly at the start and the end -// of the search string. For example, a search string of "account" will -// match objects with name "my account", "account 2015", or simply -// "account". -func (c *AccountsListCall) SearchString(searchString string) *AccountsListCall { - c.urlParams_.Set("searchString", searchString) - return c -} - -// SortField sets the optional parameter "sortField": Field by which to -// sort the list. -// -// Possible values: -// -// "ID" (default) -// "NAME" -func (c *AccountsListCall) SortField(sortField string) *AccountsListCall { - c.urlParams_.Set("sortField", sortField) - return c -} - -// SortOrder sets the optional parameter "sortOrder": Order of sorted -// results. -// -// Possible values: -// -// "ASCENDING" (default) -// "DESCENDING" -func (c *AccountsListCall) SortOrder(sortOrder string) *AccountsListCall { - c.urlParams_.Set("sortOrder", sortOrder) - 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 *AccountsListCall) Fields(s ...googleapi.Field) *AccountsListCall { - 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 *AccountsListCall) IfNoneMatch(entityTag string) *AccountsListCall { - 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 *AccountsListCall) Context(ctx context.Context) *AccountsListCall { - 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 *AccountsListCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *AccountsListCall) 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, "userprofiles/{profileId}/accounts") - 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{ - "profileId": strconv.FormatInt(c.profileId, 10), - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "dfareporting.accounts.list" call. -// Exactly one of *AccountsListResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *AccountsListResponse.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 *AccountsListCall) Do(opts ...googleapi.CallOption) (*AccountsListResponse, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &AccountsListResponse{ - 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 list of accounts, possibly filtered. This method supports paging.", - // "flatPath": "userprofiles/{profileId}/accounts", - // "httpMethod": "GET", - // "id": "dfareporting.accounts.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "active": { - // "description": "Select only active accounts. Don't set this field to select both active and non-active accounts.", - // "location": "query", - // "type": "boolean" - // }, - // "ids": { - // "description": "Select only accounts with these IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "maxResults": { - // "default": "1000", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "1000", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Value of the nextPageToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "searchString": { - // "description": "Allows searching for objects by name or ID. Wildcards (*) are allowed. For example, \"account*2015\" will return objects with names like \"account June 2015\", \"account April 2015\", or simply \"account 2015\". Most of the searches also add wildcards implicitly at the start and the end of the search string. For example, a search string of \"account\" will match objects with name \"my account\", \"account 2015\", or simply \"account\".", - // "location": "query", - // "type": "string" - // }, - // "sortField": { - // "default": "ID", - // "description": "Field by which to sort the list.", - // "enum": [ - // "ID", - // "NAME" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "sortOrder": { - // "default": "ASCENDING", - // "description": "Order of sorted results.", - // "enum": [ - // "ASCENDING", - // "DESCENDING" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/accounts", - // "response": { - // "$ref": "AccountsListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// 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 *AccountsListCall) Pages(ctx context.Context, f func(*AccountsListResponse) 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 "dfareporting.accounts.patch": - -type AccountsPatchCall struct { - s *Service - profileId int64 - account *Account - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// Patch: Updates an existing account. This method supports patch -// semantics. -// -// - id: Account ID. -// - profileId: User profile ID associated with this request. -func (r *AccountsService) Patch(profileId int64, id int64, account *Account) *AccountsPatchCall { - c := &AccountsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.profileId = profileId - c.urlParams_.Set("id", fmt.Sprint(id)) - c.account = account - 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 *AccountsPatchCall) Fields(s ...googleapi.Field) *AccountsPatchCall { - 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 *AccountsPatchCall) Context(ctx context.Context) *AccountsPatchCall { - 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 *AccountsPatchCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *AccountsPatchCall) 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.account) - 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, "userprofiles/{profileId}/accounts") - 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{ - "profileId": strconv.FormatInt(c.profileId, 10), - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "dfareporting.accounts.patch" call. -// Exactly one of *Account or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Account.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 *AccountsPatchCall) Do(opts ...googleapi.CallOption) (*Account, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &Account{ - 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 an existing account. This method supports patch semantics.", - // "flatPath": "userprofiles/{profileId}/accounts", - // "httpMethod": "PATCH", - // "id": "dfareporting.accounts.patch", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Account ID.", - // "format": "int64", - // "location": "query", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/accounts", - // "request": { - // "$ref": "Account" - // }, - // "response": { - // "$ref": "Account" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.accounts.update": - -type AccountsUpdateCall struct { - s *Service - profileId int64 - account *Account - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// Update: Updates an existing account. -// -// - profileId: User profile ID associated with this request. -func (r *AccountsService) Update(profileId int64, account *Account) *AccountsUpdateCall { - c := &AccountsUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.profileId = profileId - c.account = account - 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.account) - 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, "userprofiles/{profileId}/accounts") - urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("PUT", urls, body) - if err != nil { - return nil, err - } - req.Header = reqHeaders - googleapi.Expand(req.URL, map[string]string{ - "profileId": strconv.FormatInt(c.profileId, 10), - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "dfareporting.accounts.update" call. -// Exactly one of *Account or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Account.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 *AccountsUpdateCall) Do(opts ...googleapi.CallOption) (*Account, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &Account{ - 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 an existing account.", - // "flatPath": "userprofiles/{profileId}/accounts", - // "httpMethod": "PUT", - // "id": "dfareporting.accounts.update", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/accounts", - // "request": { - // "$ref": "Account" - // }, - // "response": { - // "$ref": "Account" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.ads.get": - -type AdsGetCall struct { - s *Service - profileId int64 - id int64 - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} - -// Get: Gets one ad by ID. -// -// - id: Ad ID. -// - profileId: User profile ID associated with this request. -func (r *AdsService) Get(profileId int64, id int64) *AdsGetCall { - c := &AdsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.profileId = profileId - c.id = id - 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 *AdsGetCall) Fields(s ...googleapi.Field) *AdsGetCall { - 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 *AdsGetCall) IfNoneMatch(entityTag string) *AdsGetCall { - 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 *AdsGetCall) Context(ctx context.Context) *AdsGetCall { - 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 *AdsGetCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *AdsGetCall) 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, "userprofiles/{profileId}/ads/{id}") - 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{ - "profileId": strconv.FormatInt(c.profileId, 10), - "id": strconv.FormatInt(c.id, 10), - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "dfareporting.ads.get" call. -// Exactly one of *Ad or error will be non-nil. Any non-2xx status code -// is an error. Response headers are in either *Ad.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 *AdsGetCall) Do(opts ...googleapi.CallOption) (*Ad, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &Ad{ - 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 one ad by ID.", - // "flatPath": "userprofiles/{profileId}/ads/{id}", - // "httpMethod": "GET", - // "id": "dfareporting.ads.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Ad ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/ads/{id}", - // "response": { - // "$ref": "Ad" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.ads.insert": - -type AdsInsertCall struct { - s *Service - profileId int64 - ad *Ad - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// Insert: Inserts a new ad. -// -// - profileId: User profile ID associated with this request. -func (r *AdsService) Insert(profileId int64, ad *Ad) *AdsInsertCall { - c := &AdsInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.profileId = profileId - c.ad = ad - 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 *AdsInsertCall) Fields(s ...googleapi.Field) *AdsInsertCall { - 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 *AdsInsertCall) Context(ctx context.Context) *AdsInsertCall { - 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 *AdsInsertCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *AdsInsertCall) 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.ad) - 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, "userprofiles/{profileId}/ads") - 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{ - "profileId": strconv.FormatInt(c.profileId, 10), - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "dfareporting.ads.insert" call. -// Exactly one of *Ad or error will be non-nil. Any non-2xx status code -// is an error. Response headers are in either *Ad.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 *AdsInsertCall) Do(opts ...googleapi.CallOption) (*Ad, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &Ad{ - 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": "Inserts a new ad.", - // "flatPath": "userprofiles/{profileId}/ads", - // "httpMethod": "POST", - // "id": "dfareporting.ads.insert", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/ads", - // "request": { - // "$ref": "Ad" - // }, - // "response": { - // "$ref": "Ad" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.ads.list": - -type AdsListCall struct { - s *Service - profileId int64 - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} - -// List: Retrieves a list of ads, possibly filtered. This method -// supports paging. -// -// - profileId: User profile ID associated with this request. -func (r *AdsService) List(profileId int64) *AdsListCall { - c := &AdsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.profileId = profileId - return c -} - -// Active sets the optional parameter "active": Select only active ads. -func (c *AdsListCall) Active(active bool) *AdsListCall { - c.urlParams_.Set("active", fmt.Sprint(active)) - return c -} - -// AdvertiserId sets the optional parameter "advertiserId": Select only -// ads with this advertiser ID. -func (c *AdsListCall) AdvertiserId(advertiserId int64) *AdsListCall { - c.urlParams_.Set("advertiserId", fmt.Sprint(advertiserId)) - return c -} - -// Archived sets the optional parameter "archived": Select only archived -// ads. -func (c *AdsListCall) Archived(archived bool) *AdsListCall { - c.urlParams_.Set("archived", fmt.Sprint(archived)) - return c -} - -// AudienceSegmentIds sets the optional parameter "audienceSegmentIds": -// Select only ads with these audience segment IDs. -func (c *AdsListCall) AudienceSegmentIds(audienceSegmentIds ...int64) *AdsListCall { - var audienceSegmentIds_ []string - for _, v := range audienceSegmentIds { - audienceSegmentIds_ = append(audienceSegmentIds_, fmt.Sprint(v)) - } - c.urlParams_.SetMulti("audienceSegmentIds", audienceSegmentIds_) - return c -} - -// CampaignIds sets the optional parameter "campaignIds": Select only -// ads with these campaign IDs. -func (c *AdsListCall) CampaignIds(campaignIds ...int64) *AdsListCall { - var campaignIds_ []string - for _, v := range campaignIds { - campaignIds_ = append(campaignIds_, fmt.Sprint(v)) - } - c.urlParams_.SetMulti("campaignIds", campaignIds_) - return c -} - -// Compatibility sets the optional parameter "compatibility": Select -// default ads with the specified compatibility. Applicable when type is -// AD_SERVING_DEFAULT_AD. DISPLAY and DISPLAY_INTERSTITIAL refer to -// rendering either on desktop or on mobile devices for regular or -// interstitial ads, respectively. APP and APP_INTERSTITIAL are for -// rendering in mobile apps. IN_STREAM_VIDEO refers to rendering an -// in-stream video ads developed with the VAST standard. -// -// Possible values: -// -// "DISPLAY" -// "DISPLAY_INTERSTITIAL" -// "APP" -// "APP_INTERSTITIAL" -// "IN_STREAM_VIDEO" -// "IN_STREAM_AUDIO" -func (c *AdsListCall) Compatibility(compatibility string) *AdsListCall { - c.urlParams_.Set("compatibility", compatibility) - return c -} - -// CreativeIds sets the optional parameter "creativeIds": Select only -// ads with these creative IDs assigned. -func (c *AdsListCall) CreativeIds(creativeIds ...int64) *AdsListCall { - var creativeIds_ []string - for _, v := range creativeIds { - creativeIds_ = append(creativeIds_, fmt.Sprint(v)) - } - c.urlParams_.SetMulti("creativeIds", creativeIds_) - return c -} - -// CreativeOptimizationConfigurationIds sets the optional parameter -// "creativeOptimizationConfigurationIds": Select only ads with these -// creative optimization configuration IDs. -func (c *AdsListCall) CreativeOptimizationConfigurationIds(creativeOptimizationConfigurationIds ...int64) *AdsListCall { - var creativeOptimizationConfigurationIds_ []string - for _, v := range creativeOptimizationConfigurationIds { - creativeOptimizationConfigurationIds_ = append(creativeOptimizationConfigurationIds_, fmt.Sprint(v)) - } - c.urlParams_.SetMulti("creativeOptimizationConfigurationIds", creativeOptimizationConfigurationIds_) - return c -} - -// DynamicClickTracker sets the optional parameter -// "dynamicClickTracker": Select only dynamic click trackers. Applicable -// when type is AD_SERVING_CLICK_TRACKER. If true, select dynamic click -// trackers. If false, select static click trackers. Leave unset to -// select both. -func (c *AdsListCall) DynamicClickTracker(dynamicClickTracker bool) *AdsListCall { - c.urlParams_.Set("dynamicClickTracker", fmt.Sprint(dynamicClickTracker)) - return c -} - -// Ids sets the optional parameter "ids": Select only ads with these -// IDs. -func (c *AdsListCall) Ids(ids ...int64) *AdsListCall { - var ids_ []string - for _, v := range ids { - ids_ = append(ids_, fmt.Sprint(v)) - } - c.urlParams_.SetMulti("ids", ids_) - return c -} - -// LandingPageIds sets the optional parameter "landingPageIds": Select -// only ads with these landing page IDs. -func (c *AdsListCall) LandingPageIds(landingPageIds ...int64) *AdsListCall { - var landingPageIds_ []string - for _, v := range landingPageIds { - landingPageIds_ = append(landingPageIds_, fmt.Sprint(v)) - } - c.urlParams_.SetMulti("landingPageIds", landingPageIds_) - return c -} - -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. -func (c *AdsListCall) MaxResults(maxResults int64) *AdsListCall { - c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) - return c -} - -// OverriddenEventTagId sets the optional parameter -// "overriddenEventTagId": Select only ads with this event tag override -// ID. -func (c *AdsListCall) OverriddenEventTagId(overriddenEventTagId int64) *AdsListCall { - c.urlParams_.Set("overriddenEventTagId", fmt.Sprint(overriddenEventTagId)) - return c -} - -// PageToken sets the optional parameter "pageToken": Value of the -// nextPageToken from the previous result page. -func (c *AdsListCall) PageToken(pageToken string) *AdsListCall { - c.urlParams_.Set("pageToken", pageToken) - return c -} - -// PlacementIds sets the optional parameter "placementIds": Select only -// ads with these placement IDs assigned. -func (c *AdsListCall) PlacementIds(placementIds ...int64) *AdsListCall { - var placementIds_ []string - for _, v := range placementIds { - placementIds_ = append(placementIds_, fmt.Sprint(v)) - } - c.urlParams_.SetMulti("placementIds", placementIds_) - return c -} - -// RemarketingListIds sets the optional parameter "remarketingListIds": -// Select only ads whose list targeting expression use these remarketing -// list IDs. -func (c *AdsListCall) RemarketingListIds(remarketingListIds ...int64) *AdsListCall { - var remarketingListIds_ []string - for _, v := range remarketingListIds { - remarketingListIds_ = append(remarketingListIds_, fmt.Sprint(v)) - } - c.urlParams_.SetMulti("remarketingListIds", remarketingListIds_) - return c -} - -// SearchString sets the optional parameter "searchString": Allows -// searching for objects by name or ID. Wildcards (*) are allowed. For -// example, "ad*2015" will return objects with names like "ad June -// 2015", "ad April 2015", or simply "ad 2015". Most of the searches -// also add wildcards implicitly at the start and the end of the search -// string. For example, a search string of "ad" will match objects with -// name "my ad", "ad 2015", or simply "ad". -func (c *AdsListCall) SearchString(searchString string) *AdsListCall { - c.urlParams_.Set("searchString", searchString) - return c -} - -// SizeIds sets the optional parameter "sizeIds": Select only ads with -// these size IDs. -func (c *AdsListCall) SizeIds(sizeIds ...int64) *AdsListCall { - var sizeIds_ []string - for _, v := range sizeIds { - sizeIds_ = append(sizeIds_, fmt.Sprint(v)) - } - c.urlParams_.SetMulti("sizeIds", sizeIds_) - return c -} - -// SortField sets the optional parameter "sortField": Field by which to -// sort the list. -// -// Possible values: -// -// "ID" (default) -// "NAME" -func (c *AdsListCall) SortField(sortField string) *AdsListCall { - c.urlParams_.Set("sortField", sortField) - return c -} - -// SortOrder sets the optional parameter "sortOrder": Order of sorted -// results. -// -// Possible values: -// -// "ASCENDING" (default) -// "DESCENDING" -func (c *AdsListCall) SortOrder(sortOrder string) *AdsListCall { - c.urlParams_.Set("sortOrder", sortOrder) - return c -} - -// SslCompliant sets the optional parameter "sslCompliant": Select only -// ads that are SSL-compliant. -func (c *AdsListCall) SslCompliant(sslCompliant bool) *AdsListCall { - c.urlParams_.Set("sslCompliant", fmt.Sprint(sslCompliant)) - return c -} - -// SslRequired sets the optional parameter "sslRequired": Select only -// ads that require SSL. -func (c *AdsListCall) SslRequired(sslRequired bool) *AdsListCall { - c.urlParams_.Set("sslRequired", fmt.Sprint(sslRequired)) - return c -} - -// Type sets the optional parameter "type": Select only ads with these -// types. -// -// Possible values: -// -// "AD_SERVING_STANDARD_AD" -// "AD_SERVING_DEFAULT_AD" -// "AD_SERVING_CLICK_TRACKER" -// "AD_SERVING_TRACKING" -// "AD_SERVING_BRAND_SAFE_AD" -func (c *AdsListCall) Type(type_ ...string) *AdsListCall { - c.urlParams_.SetMulti("type", append([]string{}, type_...)) - 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 *AdsListCall) Fields(s ...googleapi.Field) *AdsListCall { - 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 *AdsListCall) IfNoneMatch(entityTag string) *AdsListCall { - 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 *AdsListCall) Context(ctx context.Context) *AdsListCall { - 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 *AdsListCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *AdsListCall) 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, "userprofiles/{profileId}/ads") - 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{ - "profileId": strconv.FormatInt(c.profileId, 10), - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "dfareporting.ads.list" call. -// Exactly one of *AdsListResponse or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *AdsListResponse.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 *AdsListCall) Do(opts ...googleapi.CallOption) (*AdsListResponse, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &AdsListResponse{ - 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 a list of ads, possibly filtered. This method supports paging.", - // "flatPath": "userprofiles/{profileId}/ads", - // "httpMethod": "GET", - // "id": "dfareporting.ads.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "active": { - // "description": "Select only active ads.", - // "location": "query", - // "type": "boolean" - // }, - // "advertiserId": { - // "description": "Select only ads with this advertiser ID.", - // "format": "int64", - // "location": "query", - // "type": "string" - // }, - // "archived": { - // "description": "Select only archived ads.", - // "location": "query", - // "type": "boolean" - // }, - // "audienceSegmentIds": { - // "description": "Select only ads with these audience segment IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "campaignIds": { - // "description": "Select only ads with these campaign IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "compatibility": { - // "description": "Select default ads with the specified compatibility. Applicable when type is AD_SERVING_DEFAULT_AD. DISPLAY and DISPLAY_INTERSTITIAL refer to rendering either on desktop or on mobile devices for regular or interstitial ads, respectively. APP and APP_INTERSTITIAL are for rendering in mobile apps. IN_STREAM_VIDEO refers to rendering an in-stream video ads developed with the VAST standard.", - // "enum": [ - // "DISPLAY", - // "DISPLAY_INTERSTITIAL", - // "APP", - // "APP_INTERSTITIAL", - // "IN_STREAM_VIDEO", - // "IN_STREAM_AUDIO" - // ], - // "enumDescriptions": [ - // "", - // "", - // "", - // "", - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "creativeIds": { - // "description": "Select only ads with these creative IDs assigned.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "creativeOptimizationConfigurationIds": { - // "description": "Select only ads with these creative optimization configuration IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "dynamicClickTracker": { - // "description": "Select only dynamic click trackers. Applicable when type is AD_SERVING_CLICK_TRACKER. If true, select dynamic click trackers. If false, select static click trackers. Leave unset to select both.", - // "location": "query", - // "type": "boolean" - // }, - // "ids": { - // "description": "Select only ads with these IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "landingPageIds": { - // "description": "Select only ads with these landing page IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "maxResults": { - // "default": "1000", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "1000", - // "minimum": "0", - // "type": "integer" - // }, - // "overriddenEventTagId": { - // "description": "Select only ads with this event tag override ID.", - // "format": "int64", - // "location": "query", - // "type": "string" - // }, - // "pageToken": { - // "description": "Value of the nextPageToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "placementIds": { - // "description": "Select only ads with these placement IDs assigned.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "remarketingListIds": { - // "description": "Select only ads whose list targeting expression use these remarketing list IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "searchString": { - // "description": "Allows searching for objects by name or ID. Wildcards (*) are allowed. For example, \"ad*2015\" will return objects with names like \"ad June 2015\", \"ad April 2015\", or simply \"ad 2015\". Most of the searches also add wildcards implicitly at the start and the end of the search string. For example, a search string of \"ad\" will match objects with name \"my ad\", \"ad 2015\", or simply \"ad\".", - // "location": "query", - // "type": "string" - // }, - // "sizeIds": { - // "description": "Select only ads with these size IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "sortField": { - // "default": "ID", - // "description": "Field by which to sort the list.", - // "enum": [ - // "ID", - // "NAME" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "sortOrder": { - // "default": "ASCENDING", - // "description": "Order of sorted results.", - // "enum": [ - // "ASCENDING", - // "DESCENDING" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "sslCompliant": { - // "description": "Select only ads that are SSL-compliant.", - // "location": "query", - // "type": "boolean" - // }, - // "sslRequired": { - // "description": "Select only ads that require SSL.", - // "location": "query", - // "type": "boolean" - // }, - // "type": { - // "description": "Select only ads with these types.", - // "enum": [ - // "AD_SERVING_STANDARD_AD", - // "AD_SERVING_DEFAULT_AD", - // "AD_SERVING_CLICK_TRACKER", - // "AD_SERVING_TRACKING", - // "AD_SERVING_BRAND_SAFE_AD" - // ], - // "enumDescriptions": [ - // "", - // "", - // "", - // "", - // "" - // ], - // "location": "query", - // "repeated": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/ads", - // "response": { - // "$ref": "AdsListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// 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 *AdsListCall) Pages(ctx context.Context, f func(*AdsListResponse) 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 "dfareporting.ads.patch": - -type AdsPatchCall struct { - s *Service - profileId int64 - ad *Ad - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// Patch: Updates an existing ad. This method supports patch semantics. -// -// - id: Ad ID. -// - profileId: User profile ID associated with this request. -func (r *AdsService) Patch(profileId int64, id int64, ad *Ad) *AdsPatchCall { - c := &AdsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.profileId = profileId - c.urlParams_.Set("id", fmt.Sprint(id)) - c.ad = ad - 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 *AdsPatchCall) Fields(s ...googleapi.Field) *AdsPatchCall { - 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 *AdsPatchCall) Context(ctx context.Context) *AdsPatchCall { - 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 *AdsPatchCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *AdsPatchCall) 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.ad) - 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, "userprofiles/{profileId}/ads") - 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{ - "profileId": strconv.FormatInt(c.profileId, 10), - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "dfareporting.ads.patch" call. -// Exactly one of *Ad or error will be non-nil. Any non-2xx status code -// is an error. Response headers are in either *Ad.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 *AdsPatchCall) Do(opts ...googleapi.CallOption) (*Ad, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &Ad{ - 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 an existing ad. This method supports patch semantics.", - // "flatPath": "userprofiles/{profileId}/ads", - // "httpMethod": "PATCH", - // "id": "dfareporting.ads.patch", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Ad ID.", - // "format": "int64", - // "location": "query", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/ads", - // "request": { - // "$ref": "Ad" - // }, - // "response": { - // "$ref": "Ad" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.ads.update": - -type AdsUpdateCall struct { - s *Service - profileId int64 - ad *Ad - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// Update: Updates an existing ad. -// -// - profileId: User profile ID associated with this request. -func (r *AdsService) Update(profileId int64, ad *Ad) *AdsUpdateCall { - c := &AdsUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.profileId = profileId - c.ad = ad - 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 *AdsUpdateCall) Fields(s ...googleapi.Field) *AdsUpdateCall { - 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 *AdsUpdateCall) Context(ctx context.Context) *AdsUpdateCall { - 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 *AdsUpdateCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *AdsUpdateCall) 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.ad) - 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, "userprofiles/{profileId}/ads") - urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("PUT", urls, body) - if err != nil { - return nil, err - } - req.Header = reqHeaders - googleapi.Expand(req.URL, map[string]string{ - "profileId": strconv.FormatInt(c.profileId, 10), - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "dfareporting.ads.update" call. -// Exactly one of *Ad or error will be non-nil. Any non-2xx status code -// is an error. Response headers are in either *Ad.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 *AdsUpdateCall) Do(opts ...googleapi.CallOption) (*Ad, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &Ad{ - 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 an existing ad.", - // "flatPath": "userprofiles/{profileId}/ads", - // "httpMethod": "PUT", - // "id": "dfareporting.ads.update", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/ads", - // "request": { - // "$ref": "Ad" - // }, - // "response": { - // "$ref": "Ad" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.advertiserGroups.delete": - -type AdvertiserGroupsDeleteCall struct { - s *Service - profileId int64 - id int64 - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// Delete: Deletes an existing advertiser group. -// -// - id: Advertiser group ID. -// - profileId: User profile ID associated with this request. -func (r *AdvertiserGroupsService) Delete(profileId int64, id int64) *AdvertiserGroupsDeleteCall { - c := &AdvertiserGroupsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.profileId = profileId - c.id = id - 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 *AdvertiserGroupsDeleteCall) Fields(s ...googleapi.Field) *AdvertiserGroupsDeleteCall { - 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 *AdvertiserGroupsDeleteCall) Context(ctx context.Context) *AdvertiserGroupsDeleteCall { - 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 *AdvertiserGroupsDeleteCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *AdvertiserGroupsDeleteCall) 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, "userprofiles/{profileId}/advertiserGroups/{id}") - 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{ - "profileId": strconv.FormatInt(c.profileId, 10), - "id": strconv.FormatInt(c.id, 10), - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "dfareporting.advertiserGroups.delete" call. -func (c *AdvertiserGroupsDeleteCall) 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 gensupport.WrapError(err) - } - return nil - // { - // "description": "Deletes an existing advertiser group.", - // "flatPath": "userprofiles/{profileId}/advertiserGroups/{id}", - // "httpMethod": "DELETE", - // "id": "dfareporting.advertiserGroups.delete", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Advertiser group ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/advertiserGroups/{id}", - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.advertiserGroups.get": - -type AdvertiserGroupsGetCall struct { - s *Service - profileId int64 - id int64 - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} - -// Get: Gets one advertiser group by ID. -// -// - id: Advertiser group ID. -// - profileId: User profile ID associated with this request. -func (r *AdvertiserGroupsService) Get(profileId int64, id int64) *AdvertiserGroupsGetCall { - c := &AdvertiserGroupsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.profileId = profileId - c.id = id - 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 *AdvertiserGroupsGetCall) Fields(s ...googleapi.Field) *AdvertiserGroupsGetCall { - 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 *AdvertiserGroupsGetCall) IfNoneMatch(entityTag string) *AdvertiserGroupsGetCall { - 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 *AdvertiserGroupsGetCall) Context(ctx context.Context) *AdvertiserGroupsGetCall { - 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 *AdvertiserGroupsGetCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *AdvertiserGroupsGetCall) 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, "userprofiles/{profileId}/advertiserGroups/{id}") - 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{ - "profileId": strconv.FormatInt(c.profileId, 10), - "id": strconv.FormatInt(c.id, 10), - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "dfareporting.advertiserGroups.get" call. -// Exactly one of *AdvertiserGroup or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *AdvertiserGroup.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 *AdvertiserGroupsGetCall) Do(opts ...googleapi.CallOption) (*AdvertiserGroup, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &AdvertiserGroup{ - 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 one advertiser group by ID.", - // "flatPath": "userprofiles/{profileId}/advertiserGroups/{id}", - // "httpMethod": "GET", - // "id": "dfareporting.advertiserGroups.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Advertiser group ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/advertiserGroups/{id}", - // "response": { - // "$ref": "AdvertiserGroup" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.advertiserGroups.insert": - -type AdvertiserGroupsInsertCall struct { - s *Service - profileId int64 - advertisergroup *AdvertiserGroup - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// Insert: Inserts a new advertiser group. -// -// - profileId: User profile ID associated with this request. -func (r *AdvertiserGroupsService) Insert(profileId int64, advertisergroup *AdvertiserGroup) *AdvertiserGroupsInsertCall { - c := &AdvertiserGroupsInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.profileId = profileId - c.advertisergroup = advertisergroup - 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 *AdvertiserGroupsInsertCall) Fields(s ...googleapi.Field) *AdvertiserGroupsInsertCall { - 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 *AdvertiserGroupsInsertCall) Context(ctx context.Context) *AdvertiserGroupsInsertCall { - 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 *AdvertiserGroupsInsertCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *AdvertiserGroupsInsertCall) 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.advertisergroup) - 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, "userprofiles/{profileId}/advertiserGroups") - 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{ - "profileId": strconv.FormatInt(c.profileId, 10), - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "dfareporting.advertiserGroups.insert" call. -// Exactly one of *AdvertiserGroup or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *AdvertiserGroup.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 *AdvertiserGroupsInsertCall) Do(opts ...googleapi.CallOption) (*AdvertiserGroup, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &AdvertiserGroup{ - 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": "Inserts a new advertiser group.", - // "flatPath": "userprofiles/{profileId}/advertiserGroups", - // "httpMethod": "POST", - // "id": "dfareporting.advertiserGroups.insert", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/advertiserGroups", - // "request": { - // "$ref": "AdvertiserGroup" - // }, - // "response": { - // "$ref": "AdvertiserGroup" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.advertiserGroups.list": - -type AdvertiserGroupsListCall struct { - s *Service - profileId int64 - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} - -// List: Retrieves a list of advertiser groups, possibly filtered. This -// method supports paging. -// -// - profileId: User profile ID associated with this request. -func (r *AdvertiserGroupsService) List(profileId int64) *AdvertiserGroupsListCall { - c := &AdvertiserGroupsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.profileId = profileId - return c -} - -// Ids sets the optional parameter "ids": Select only advertiser groups -// with these IDs. -func (c *AdvertiserGroupsListCall) Ids(ids ...int64) *AdvertiserGroupsListCall { - var ids_ []string - for _, v := range ids { - ids_ = append(ids_, fmt.Sprint(v)) - } - c.urlParams_.SetMulti("ids", ids_) - return c -} - -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. -func (c *AdvertiserGroupsListCall) MaxResults(maxResults int64) *AdvertiserGroupsListCall { - c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) - return c -} - -// PageToken sets the optional parameter "pageToken": Value of the -// nextPageToken from the previous result page. -func (c *AdvertiserGroupsListCall) PageToken(pageToken string) *AdvertiserGroupsListCall { - c.urlParams_.Set("pageToken", pageToken) - return c -} - -// SearchString sets the optional parameter "searchString": Allows -// searching for objects by name or ID. Wildcards (*) are allowed. For -// example, "advertiser*2015" will return objects with names like -// "advertiser group June 2015", "advertiser group April 2015", or -// simply "advertiser group 2015". Most of the searches also add -// wildcards implicitly at the start and the end of the search string. -// For example, a search string of "advertisergroup" will match objects -// with name "my advertisergroup", "advertisergroup 2015", or simply -// "advertisergroup". -func (c *AdvertiserGroupsListCall) SearchString(searchString string) *AdvertiserGroupsListCall { - c.urlParams_.Set("searchString", searchString) - return c -} - -// SortField sets the optional parameter "sortField": Field by which to -// sort the list. -// -// Possible values: -// -// "ID" (default) -// "NAME" -func (c *AdvertiserGroupsListCall) SortField(sortField string) *AdvertiserGroupsListCall { - c.urlParams_.Set("sortField", sortField) - return c -} - -// SortOrder sets the optional parameter "sortOrder": Order of sorted -// results. -// -// Possible values: -// -// "ASCENDING" (default) -// "DESCENDING" -func (c *AdvertiserGroupsListCall) SortOrder(sortOrder string) *AdvertiserGroupsListCall { - c.urlParams_.Set("sortOrder", sortOrder) - 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 *AdvertiserGroupsListCall) Fields(s ...googleapi.Field) *AdvertiserGroupsListCall { - 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 *AdvertiserGroupsListCall) IfNoneMatch(entityTag string) *AdvertiserGroupsListCall { - 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 *AdvertiserGroupsListCall) Context(ctx context.Context) *AdvertiserGroupsListCall { - 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 *AdvertiserGroupsListCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *AdvertiserGroupsListCall) 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, "userprofiles/{profileId}/advertiserGroups") - 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{ - "profileId": strconv.FormatInt(c.profileId, 10), - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "dfareporting.advertiserGroups.list" call. -// Exactly one of *AdvertiserGroupsListResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *AdvertiserGroupsListResponse.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 *AdvertiserGroupsListCall) Do(opts ...googleapi.CallOption) (*AdvertiserGroupsListResponse, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &AdvertiserGroupsListResponse{ - 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 a list of advertiser groups, possibly filtered. This method supports paging.", - // "flatPath": "userprofiles/{profileId}/advertiserGroups", - // "httpMethod": "GET", - // "id": "dfareporting.advertiserGroups.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "ids": { - // "description": "Select only advertiser groups with these IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "maxResults": { - // "default": "1000", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "1000", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Value of the nextPageToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "searchString": { - // "description": "Allows searching for objects by name or ID. Wildcards (*) are allowed. For example, \"advertiser*2015\" will return objects with names like \"advertiser group June 2015\", \"advertiser group April 2015\", or simply \"advertiser group 2015\". Most of the searches also add wildcards implicitly at the start and the end of the search string. For example, a search string of \"advertisergroup\" will match objects with name \"my advertisergroup\", \"advertisergroup 2015\", or simply \"advertisergroup\".", - // "location": "query", - // "type": "string" - // }, - // "sortField": { - // "default": "ID", - // "description": "Field by which to sort the list.", - // "enum": [ - // "ID", - // "NAME" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "sortOrder": { - // "default": "ASCENDING", - // "description": "Order of sorted results.", - // "enum": [ - // "ASCENDING", - // "DESCENDING" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/advertiserGroups", - // "response": { - // "$ref": "AdvertiserGroupsListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// 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 *AdvertiserGroupsListCall) Pages(ctx context.Context, f func(*AdvertiserGroupsListResponse) 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 "dfareporting.advertiserGroups.patch": - -type AdvertiserGroupsPatchCall struct { - s *Service - profileId int64 - advertisergroup *AdvertiserGroup - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// Patch: Updates an existing advertiser group. This method supports -// patch semantics. -// -// - id: AdvertiserGroup ID. -// - profileId: User profile ID associated with this request. -func (r *AdvertiserGroupsService) Patch(profileId int64, id int64, advertisergroup *AdvertiserGroup) *AdvertiserGroupsPatchCall { - c := &AdvertiserGroupsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.profileId = profileId - c.urlParams_.Set("id", fmt.Sprint(id)) - c.advertisergroup = advertisergroup - 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 *AdvertiserGroupsPatchCall) Fields(s ...googleapi.Field) *AdvertiserGroupsPatchCall { - 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 *AdvertiserGroupsPatchCall) Context(ctx context.Context) *AdvertiserGroupsPatchCall { - 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 *AdvertiserGroupsPatchCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *AdvertiserGroupsPatchCall) 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.advertisergroup) - 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, "userprofiles/{profileId}/advertiserGroups") - 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{ - "profileId": strconv.FormatInt(c.profileId, 10), - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "dfareporting.advertiserGroups.patch" call. -// Exactly one of *AdvertiserGroup or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *AdvertiserGroup.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 *AdvertiserGroupsPatchCall) Do(opts ...googleapi.CallOption) (*AdvertiserGroup, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &AdvertiserGroup{ - 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 an existing advertiser group. This method supports patch semantics.", - // "flatPath": "userprofiles/{profileId}/advertiserGroups", - // "httpMethod": "PATCH", - // "id": "dfareporting.advertiserGroups.patch", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "AdvertiserGroup ID.", - // "format": "int64", - // "location": "query", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/advertiserGroups", - // "request": { - // "$ref": "AdvertiserGroup" - // }, - // "response": { - // "$ref": "AdvertiserGroup" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.advertiserGroups.update": - -type AdvertiserGroupsUpdateCall struct { - s *Service - profileId int64 - advertisergroup *AdvertiserGroup - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// Update: Updates an existing advertiser group. -// -// - profileId: User profile ID associated with this request. -func (r *AdvertiserGroupsService) Update(profileId int64, advertisergroup *AdvertiserGroup) *AdvertiserGroupsUpdateCall { - c := &AdvertiserGroupsUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.profileId = profileId - c.advertisergroup = advertisergroup - 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 *AdvertiserGroupsUpdateCall) Fields(s ...googleapi.Field) *AdvertiserGroupsUpdateCall { - 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 *AdvertiserGroupsUpdateCall) Context(ctx context.Context) *AdvertiserGroupsUpdateCall { - 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 *AdvertiserGroupsUpdateCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *AdvertiserGroupsUpdateCall) 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.advertisergroup) - 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, "userprofiles/{profileId}/advertiserGroups") - urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("PUT", urls, body) - if err != nil { - return nil, err - } - req.Header = reqHeaders - googleapi.Expand(req.URL, map[string]string{ - "profileId": strconv.FormatInt(c.profileId, 10), - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "dfareporting.advertiserGroups.update" call. -// Exactly one of *AdvertiserGroup or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *AdvertiserGroup.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 *AdvertiserGroupsUpdateCall) Do(opts ...googleapi.CallOption) (*AdvertiserGroup, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &AdvertiserGroup{ - 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 an existing advertiser group.", - // "flatPath": "userprofiles/{profileId}/advertiserGroups", - // "httpMethod": "PUT", - // "id": "dfareporting.advertiserGroups.update", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/advertiserGroups", - // "request": { - // "$ref": "AdvertiserGroup" - // }, - // "response": { - // "$ref": "AdvertiserGroup" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.advertiserLandingPages.get": - -type AdvertiserLandingPagesGetCall struct { - s *Service - profileId int64 - id int64 - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} - -// Get: Gets one landing page by ID. -// -// - id: Landing page ID. -// - profileId: User profile ID associated with this request. -func (r *AdvertiserLandingPagesService) Get(profileId int64, id int64) *AdvertiserLandingPagesGetCall { - c := &AdvertiserLandingPagesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.profileId = profileId - c.id = id - 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 *AdvertiserLandingPagesGetCall) Fields(s ...googleapi.Field) *AdvertiserLandingPagesGetCall { - 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 *AdvertiserLandingPagesGetCall) IfNoneMatch(entityTag string) *AdvertiserLandingPagesGetCall { - 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 *AdvertiserLandingPagesGetCall) Context(ctx context.Context) *AdvertiserLandingPagesGetCall { - 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 *AdvertiserLandingPagesGetCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *AdvertiserLandingPagesGetCall) 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, "userprofiles/{profileId}/advertiserLandingPages/{id}") - 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{ - "profileId": strconv.FormatInt(c.profileId, 10), - "id": strconv.FormatInt(c.id, 10), - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "dfareporting.advertiserLandingPages.get" call. -// Exactly one of *LandingPage or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *LandingPage.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 *AdvertiserLandingPagesGetCall) Do(opts ...googleapi.CallOption) (*LandingPage, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &LandingPage{ - 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 one landing page by ID.", - // "flatPath": "userprofiles/{profileId}/advertiserLandingPages/{id}", - // "httpMethod": "GET", - // "id": "dfareporting.advertiserLandingPages.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Landing page ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/advertiserLandingPages/{id}", - // "response": { - // "$ref": "LandingPage" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.advertiserLandingPages.insert": - -type AdvertiserLandingPagesInsertCall struct { - s *Service - profileId int64 - landingpage *LandingPage - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// Insert: Inserts a new landing page. -// -// - profileId: User profile ID associated with this request. -func (r *AdvertiserLandingPagesService) Insert(profileId int64, landingpage *LandingPage) *AdvertiserLandingPagesInsertCall { - c := &AdvertiserLandingPagesInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.profileId = profileId - c.landingpage = landingpage - 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 *AdvertiserLandingPagesInsertCall) Fields(s ...googleapi.Field) *AdvertiserLandingPagesInsertCall { - 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 *AdvertiserLandingPagesInsertCall) Context(ctx context.Context) *AdvertiserLandingPagesInsertCall { - 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 *AdvertiserLandingPagesInsertCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *AdvertiserLandingPagesInsertCall) 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.landingpage) - 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, "userprofiles/{profileId}/advertiserLandingPages") - 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{ - "profileId": strconv.FormatInt(c.profileId, 10), - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "dfareporting.advertiserLandingPages.insert" call. -// Exactly one of *LandingPage or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *LandingPage.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 *AdvertiserLandingPagesInsertCall) Do(opts ...googleapi.CallOption) (*LandingPage, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &LandingPage{ - 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": "Inserts a new landing page.", - // "flatPath": "userprofiles/{profileId}/advertiserLandingPages", - // "httpMethod": "POST", - // "id": "dfareporting.advertiserLandingPages.insert", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/advertiserLandingPages", - // "request": { - // "$ref": "LandingPage" - // }, - // "response": { - // "$ref": "LandingPage" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.advertiserLandingPages.list": - -type AdvertiserLandingPagesListCall struct { - s *Service - profileId int64 - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} - -// List: Retrieves a list of landing pages. -// -// - profileId: User profile ID associated with this request. -func (r *AdvertiserLandingPagesService) List(profileId int64) *AdvertiserLandingPagesListCall { - c := &AdvertiserLandingPagesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.profileId = profileId - return c -} - -// AdvertiserIds sets the optional parameter "advertiserIds": Select -// only landing pages that belong to these advertisers. -func (c *AdvertiserLandingPagesListCall) AdvertiserIds(advertiserIds ...int64) *AdvertiserLandingPagesListCall { - var advertiserIds_ []string - for _, v := range advertiserIds { - advertiserIds_ = append(advertiserIds_, fmt.Sprint(v)) - } - c.urlParams_.SetMulti("advertiserIds", advertiserIds_) - return c -} - -// Archived sets the optional parameter "archived": Select only archived -// landing pages. Don't set this field to select both archived and -// non-archived landing pages. -func (c *AdvertiserLandingPagesListCall) Archived(archived bool) *AdvertiserLandingPagesListCall { - c.urlParams_.Set("archived", fmt.Sprint(archived)) - return c -} - -// CampaignIds sets the optional parameter "campaignIds": Select only -// landing pages that are associated with these campaigns. -func (c *AdvertiserLandingPagesListCall) CampaignIds(campaignIds ...int64) *AdvertiserLandingPagesListCall { - var campaignIds_ []string - for _, v := range campaignIds { - campaignIds_ = append(campaignIds_, fmt.Sprint(v)) - } - c.urlParams_.SetMulti("campaignIds", campaignIds_) - return c -} - -// Ids sets the optional parameter "ids": Select only landing pages with -// these IDs. -func (c *AdvertiserLandingPagesListCall) Ids(ids ...int64) *AdvertiserLandingPagesListCall { - var ids_ []string - for _, v := range ids { - ids_ = append(ids_, fmt.Sprint(v)) - } - c.urlParams_.SetMulti("ids", ids_) - return c -} - -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. -func (c *AdvertiserLandingPagesListCall) MaxResults(maxResults int64) *AdvertiserLandingPagesListCall { - c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) - return c -} - -// PageToken sets the optional parameter "pageToken": Value of the -// nextPageToken from the previous result page. -func (c *AdvertiserLandingPagesListCall) PageToken(pageToken string) *AdvertiserLandingPagesListCall { - c.urlParams_.Set("pageToken", pageToken) - return c -} - -// SearchString sets the optional parameter "searchString": Allows -// searching for landing pages by name or ID. Wildcards (*) are allowed. -// For example, "landingpage*2017" will return landing pages with names -// like "landingpage July 2017", "landingpage March 2017", or simply -// "landingpage 2017". Most of the searches also add wildcards -// implicitly at the start and the end of the search string. For -// example, a search string of "landingpage" will match campaigns with -// name "my landingpage", "landingpage 2015", or simply "landingpage". -func (c *AdvertiserLandingPagesListCall) SearchString(searchString string) *AdvertiserLandingPagesListCall { - c.urlParams_.Set("searchString", searchString) - return c -} - -// SortField sets the optional parameter "sortField": Field by which to -// sort the list. -// -// Possible values: -// -// "ID" (default) -// "NAME" -func (c *AdvertiserLandingPagesListCall) SortField(sortField string) *AdvertiserLandingPagesListCall { - c.urlParams_.Set("sortField", sortField) - return c -} - -// SortOrder sets the optional parameter "sortOrder": Order of sorted -// results. -// -// Possible values: -// -// "ASCENDING" (default) -// "DESCENDING" -func (c *AdvertiserLandingPagesListCall) SortOrder(sortOrder string) *AdvertiserLandingPagesListCall { - c.urlParams_.Set("sortOrder", sortOrder) - return c -} - -// SubaccountId sets the optional parameter "subaccountId": Select only -// landing pages that belong to this subaccount. -func (c *AdvertiserLandingPagesListCall) SubaccountId(subaccountId int64) *AdvertiserLandingPagesListCall { - c.urlParams_.Set("subaccountId", fmt.Sprint(subaccountId)) - 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 *AdvertiserLandingPagesListCall) Fields(s ...googleapi.Field) *AdvertiserLandingPagesListCall { - 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 *AdvertiserLandingPagesListCall) IfNoneMatch(entityTag string) *AdvertiserLandingPagesListCall { - 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 *AdvertiserLandingPagesListCall) Context(ctx context.Context) *AdvertiserLandingPagesListCall { - 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 *AdvertiserLandingPagesListCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *AdvertiserLandingPagesListCall) 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, "userprofiles/{profileId}/advertiserLandingPages") - 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{ - "profileId": strconv.FormatInt(c.profileId, 10), - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "dfareporting.advertiserLandingPages.list" call. -// Exactly one of *AdvertiserLandingPagesListResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *AdvertiserLandingPagesListResponse.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 *AdvertiserLandingPagesListCall) Do(opts ...googleapi.CallOption) (*AdvertiserLandingPagesListResponse, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &AdvertiserLandingPagesListResponse{ - 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 a list of landing pages.", - // "flatPath": "userprofiles/{profileId}/advertiserLandingPages", - // "httpMethod": "GET", - // "id": "dfareporting.advertiserLandingPages.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "advertiserIds": { - // "description": "Select only landing pages that belong to these advertisers.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "archived": { - // "description": "Select only archived landing pages. Don't set this field to select both archived and non-archived landing pages.", - // "location": "query", - // "type": "boolean" - // }, - // "campaignIds": { - // "description": "Select only landing pages that are associated with these campaigns.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "ids": { - // "description": "Select only landing pages with these IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "maxResults": { - // "default": "1000", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "1000", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Value of the nextPageToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "searchString": { - // "description": "Allows searching for landing pages by name or ID. Wildcards (*) are allowed. For example, \"landingpage*2017\" will return landing pages with names like \"landingpage July 2017\", \"landingpage March 2017\", or simply \"landingpage 2017\". Most of the searches also add wildcards implicitly at the start and the end of the search string. For example, a search string of \"landingpage\" will match campaigns with name \"my landingpage\", \"landingpage 2015\", or simply \"landingpage\".", - // "location": "query", - // "type": "string" - // }, - // "sortField": { - // "default": "ID", - // "description": "Field by which to sort the list.", - // "enum": [ - // "ID", - // "NAME" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "sortOrder": { - // "default": "ASCENDING", - // "description": "Order of sorted results.", - // "enum": [ - // "ASCENDING", - // "DESCENDING" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "subaccountId": { - // "description": "Select only landing pages that belong to this subaccount.", - // "format": "int64", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/advertiserLandingPages", - // "response": { - // "$ref": "AdvertiserLandingPagesListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// 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 *AdvertiserLandingPagesListCall) Pages(ctx context.Context, f func(*AdvertiserLandingPagesListResponse) 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 "dfareporting.advertiserLandingPages.patch": - -type AdvertiserLandingPagesPatchCall struct { - s *Service - profileId int64 - landingpage *LandingPage - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// Patch: Updates an existing advertiser landing page. This method -// supports patch semantics. -// -// - id: LandingPage ID. -// - profileId: User profile ID associated with this request. -func (r *AdvertiserLandingPagesService) Patch(profileId int64, id int64, landingpage *LandingPage) *AdvertiserLandingPagesPatchCall { - c := &AdvertiserLandingPagesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.profileId = profileId - c.urlParams_.Set("id", fmt.Sprint(id)) - c.landingpage = landingpage - 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 *AdvertiserLandingPagesPatchCall) Fields(s ...googleapi.Field) *AdvertiserLandingPagesPatchCall { - 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 *AdvertiserLandingPagesPatchCall) Context(ctx context.Context) *AdvertiserLandingPagesPatchCall { - 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 *AdvertiserLandingPagesPatchCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *AdvertiserLandingPagesPatchCall) 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.landingpage) - 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, "userprofiles/{profileId}/advertiserLandingPages") - 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{ - "profileId": strconv.FormatInt(c.profileId, 10), - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "dfareporting.advertiserLandingPages.patch" call. -// Exactly one of *LandingPage or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *LandingPage.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 *AdvertiserLandingPagesPatchCall) Do(opts ...googleapi.CallOption) (*LandingPage, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &LandingPage{ - 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 an existing advertiser landing page. This method supports patch semantics.", - // "flatPath": "userprofiles/{profileId}/advertiserLandingPages", - // "httpMethod": "PATCH", - // "id": "dfareporting.advertiserLandingPages.patch", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "LandingPage ID.", - // "format": "int64", - // "location": "query", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/advertiserLandingPages", - // "request": { - // "$ref": "LandingPage" - // }, - // "response": { - // "$ref": "LandingPage" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.advertiserLandingPages.update": - -type AdvertiserLandingPagesUpdateCall struct { - s *Service - profileId int64 - landingpage *LandingPage - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// Update: Updates an existing landing page. -// -// - profileId: User profile ID associated with this request. -func (r *AdvertiserLandingPagesService) Update(profileId int64, landingpage *LandingPage) *AdvertiserLandingPagesUpdateCall { - c := &AdvertiserLandingPagesUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.profileId = profileId - c.landingpage = landingpage - 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 *AdvertiserLandingPagesUpdateCall) Fields(s ...googleapi.Field) *AdvertiserLandingPagesUpdateCall { - 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 *AdvertiserLandingPagesUpdateCall) Context(ctx context.Context) *AdvertiserLandingPagesUpdateCall { - 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 *AdvertiserLandingPagesUpdateCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *AdvertiserLandingPagesUpdateCall) 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.landingpage) - 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, "userprofiles/{profileId}/advertiserLandingPages") - urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("PUT", urls, body) - if err != nil { - return nil, err - } - req.Header = reqHeaders - googleapi.Expand(req.URL, map[string]string{ - "profileId": strconv.FormatInt(c.profileId, 10), - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "dfareporting.advertiserLandingPages.update" call. -// Exactly one of *LandingPage or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *LandingPage.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 *AdvertiserLandingPagesUpdateCall) Do(opts ...googleapi.CallOption) (*LandingPage, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &LandingPage{ - 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 an existing landing page.", - // "flatPath": "userprofiles/{profileId}/advertiserLandingPages", - // "httpMethod": "PUT", - // "id": "dfareporting.advertiserLandingPages.update", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/advertiserLandingPages", - // "request": { - // "$ref": "LandingPage" - // }, - // "response": { - // "$ref": "LandingPage" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.advertisers.get": - -type AdvertisersGetCall struct { - s *Service - profileId int64 - id int64 - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} - -// Get: Gets one advertiser by ID. -// -// - id: Advertiser ID. -// - profileId: User profile ID associated with this request. -func (r *AdvertisersService) Get(profileId int64, id int64) *AdvertisersGetCall { - c := &AdvertisersGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.profileId = profileId - c.id = id - 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 *AdvertisersGetCall) Fields(s ...googleapi.Field) *AdvertisersGetCall { - 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 *AdvertisersGetCall) IfNoneMatch(entityTag string) *AdvertisersGetCall { - 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 *AdvertisersGetCall) Context(ctx context.Context) *AdvertisersGetCall { - 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 *AdvertisersGetCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *AdvertisersGetCall) 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, "userprofiles/{profileId}/advertisers/{id}") - 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{ - "profileId": strconv.FormatInt(c.profileId, 10), - "id": strconv.FormatInt(c.id, 10), - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "dfareporting.advertisers.get" call. -// Exactly one of *Advertiser or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Advertiser.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 *AdvertisersGetCall) Do(opts ...googleapi.CallOption) (*Advertiser, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &Advertiser{ - 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 one advertiser by ID.", - // "flatPath": "userprofiles/{profileId}/advertisers/{id}", - // "httpMethod": "GET", - // "id": "dfareporting.advertisers.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Advertiser ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/advertisers/{id}", - // "response": { - // "$ref": "Advertiser" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.advertisers.insert": - -type AdvertisersInsertCall struct { - s *Service - profileId int64 - advertiser *Advertiser - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// Insert: Inserts a new advertiser. -// -// - profileId: User profile ID associated with this request. -func (r *AdvertisersService) Insert(profileId int64, advertiser *Advertiser) *AdvertisersInsertCall { - c := &AdvertisersInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.profileId = profileId - c.advertiser = advertiser - 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 *AdvertisersInsertCall) Fields(s ...googleapi.Field) *AdvertisersInsertCall { - 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 *AdvertisersInsertCall) Context(ctx context.Context) *AdvertisersInsertCall { - 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 *AdvertisersInsertCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *AdvertisersInsertCall) 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.advertiser) - 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, "userprofiles/{profileId}/advertisers") - 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{ - "profileId": strconv.FormatInt(c.profileId, 10), - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "dfareporting.advertisers.insert" call. -// Exactly one of *Advertiser or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Advertiser.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 *AdvertisersInsertCall) Do(opts ...googleapi.CallOption) (*Advertiser, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &Advertiser{ - 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": "Inserts a new advertiser.", - // "flatPath": "userprofiles/{profileId}/advertisers", - // "httpMethod": "POST", - // "id": "dfareporting.advertisers.insert", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/advertisers", - // "request": { - // "$ref": "Advertiser" - // }, - // "response": { - // "$ref": "Advertiser" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.advertisers.list": - -type AdvertisersListCall struct { - s *Service - profileId int64 - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} - -// List: Retrieves a list of advertisers, possibly filtered. This method -// supports paging. -// -// - profileId: User profile ID associated with this request. -func (r *AdvertisersService) List(profileId int64) *AdvertisersListCall { - c := &AdvertisersListCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.profileId = profileId - return c -} - -// AdvertiserGroupIds sets the optional parameter "advertiserGroupIds": -// Select only advertisers with these advertiser group IDs. -func (c *AdvertisersListCall) AdvertiserGroupIds(advertiserGroupIds ...int64) *AdvertisersListCall { - var advertiserGroupIds_ []string - for _, v := range advertiserGroupIds { - advertiserGroupIds_ = append(advertiserGroupIds_, fmt.Sprint(v)) - } - c.urlParams_.SetMulti("advertiserGroupIds", advertiserGroupIds_) - return c -} - -// FloodlightConfigurationIds sets the optional parameter -// "floodlightConfigurationIds": Select only advertisers with these -// floodlight configuration IDs. -func (c *AdvertisersListCall) FloodlightConfigurationIds(floodlightConfigurationIds ...int64) *AdvertisersListCall { - var floodlightConfigurationIds_ []string - for _, v := range floodlightConfigurationIds { - floodlightConfigurationIds_ = append(floodlightConfigurationIds_, fmt.Sprint(v)) - } - c.urlParams_.SetMulti("floodlightConfigurationIds", floodlightConfigurationIds_) - return c -} - -// Ids sets the optional parameter "ids": Select only advertisers with -// these IDs. -func (c *AdvertisersListCall) Ids(ids ...int64) *AdvertisersListCall { - var ids_ []string - for _, v := range ids { - ids_ = append(ids_, fmt.Sprint(v)) - } - c.urlParams_.SetMulti("ids", ids_) - return c -} - -// IncludeAdvertisersWithoutGroupsOnly sets the optional parameter -// "includeAdvertisersWithoutGroupsOnly": Select only advertisers which -// do not belong to any advertiser group. -func (c *AdvertisersListCall) IncludeAdvertisersWithoutGroupsOnly(includeAdvertisersWithoutGroupsOnly bool) *AdvertisersListCall { - c.urlParams_.Set("includeAdvertisersWithoutGroupsOnly", fmt.Sprint(includeAdvertisersWithoutGroupsOnly)) - return c -} - -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. -func (c *AdvertisersListCall) MaxResults(maxResults int64) *AdvertisersListCall { - c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) - return c -} - -// OnlyParent sets the optional parameter "onlyParent": Select only -// advertisers which use another advertiser's floodlight configuration. -func (c *AdvertisersListCall) OnlyParent(onlyParent bool) *AdvertisersListCall { - c.urlParams_.Set("onlyParent", fmt.Sprint(onlyParent)) - return c -} - -// PageToken sets the optional parameter "pageToken": Value of the -// nextPageToken from the previous result page. -func (c *AdvertisersListCall) PageToken(pageToken string) *AdvertisersListCall { - c.urlParams_.Set("pageToken", pageToken) - return c -} - -// SearchString sets the optional parameter "searchString": Allows -// searching for objects by name or ID. Wildcards (*) are allowed. For -// example, "advertiser*2015" will return objects with names like -// "advertiser June 2015", "advertiser April 2015", or simply -// "advertiser 2015". Most of the searches also add wildcards implicitly -// at the start and the end of the search string. For example, a search -// string of "advertiser" will match objects with name "my advertiser", -// "advertiser 2015", or simply "advertiser" . -func (c *AdvertisersListCall) SearchString(searchString string) *AdvertisersListCall { - c.urlParams_.Set("searchString", searchString) - return c -} - -// SortField sets the optional parameter "sortField": Field by which to -// sort the list. -// -// Possible values: -// -// "ID" (default) -// "NAME" -func (c *AdvertisersListCall) SortField(sortField string) *AdvertisersListCall { - c.urlParams_.Set("sortField", sortField) - return c -} - -// SortOrder sets the optional parameter "sortOrder": Order of sorted -// results. -// -// Possible values: -// -// "ASCENDING" (default) -// "DESCENDING" -func (c *AdvertisersListCall) SortOrder(sortOrder string) *AdvertisersListCall { - c.urlParams_.Set("sortOrder", sortOrder) - return c -} - -// Status sets the optional parameter "status": Select only advertisers -// with the specified status. -// -// Possible values: -// -// "APPROVED" -// "ON_HOLD" -func (c *AdvertisersListCall) Status(status string) *AdvertisersListCall { - c.urlParams_.Set("status", status) - return c -} - -// SubaccountId sets the optional parameter "subaccountId": Select only -// advertisers with these subaccount IDs. -func (c *AdvertisersListCall) SubaccountId(subaccountId int64) *AdvertisersListCall { - c.urlParams_.Set("subaccountId", fmt.Sprint(subaccountId)) - 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 *AdvertisersListCall) Fields(s ...googleapi.Field) *AdvertisersListCall { - 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 *AdvertisersListCall) IfNoneMatch(entityTag string) *AdvertisersListCall { - 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 *AdvertisersListCall) Context(ctx context.Context) *AdvertisersListCall { - 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 *AdvertisersListCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *AdvertisersListCall) 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, "userprofiles/{profileId}/advertisers") - 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{ - "profileId": strconv.FormatInt(c.profileId, 10), - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "dfareporting.advertisers.list" call. -// Exactly one of *AdvertisersListResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *AdvertisersListResponse.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 *AdvertisersListCall) Do(opts ...googleapi.CallOption) (*AdvertisersListResponse, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &AdvertisersListResponse{ - 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 a list of advertisers, possibly filtered. This method supports paging.", - // "flatPath": "userprofiles/{profileId}/advertisers", - // "httpMethod": "GET", - // "id": "dfareporting.advertisers.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "advertiserGroupIds": { - // "description": "Select only advertisers with these advertiser group IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "floodlightConfigurationIds": { - // "description": "Select only advertisers with these floodlight configuration IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "ids": { - // "description": "Select only advertisers with these IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "includeAdvertisersWithoutGroupsOnly": { - // "description": "Select only advertisers which do not belong to any advertiser group.", - // "location": "query", - // "type": "boolean" - // }, - // "maxResults": { - // "default": "1000", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "1000", - // "minimum": "0", - // "type": "integer" - // }, - // "onlyParent": { - // "description": "Select only advertisers which use another advertiser's floodlight configuration.", - // "location": "query", - // "type": "boolean" - // }, - // "pageToken": { - // "description": "Value of the nextPageToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "searchString": { - // "description": "Allows searching for objects by name or ID. Wildcards (*) are allowed. For example, \"advertiser*2015\" will return objects with names like \"advertiser June 2015\", \"advertiser April 2015\", or simply \"advertiser 2015\". Most of the searches also add wildcards implicitly at the start and the end of the search string. For example, a search string of \"advertiser\" will match objects with name \"my advertiser\", \"advertiser 2015\", or simply \"advertiser\" .", - // "location": "query", - // "type": "string" - // }, - // "sortField": { - // "default": "ID", - // "description": "Field by which to sort the list.", - // "enum": [ - // "ID", - // "NAME" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "sortOrder": { - // "default": "ASCENDING", - // "description": "Order of sorted results.", - // "enum": [ - // "ASCENDING", - // "DESCENDING" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "status": { - // "description": "Select only advertisers with the specified status.", - // "enum": [ - // "APPROVED", - // "ON_HOLD" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "subaccountId": { - // "description": "Select only advertisers with these subaccount IDs.", - // "format": "int64", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/advertisers", - // "response": { - // "$ref": "AdvertisersListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// 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 *AdvertisersListCall) Pages(ctx context.Context, f func(*AdvertisersListResponse) 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 "dfareporting.advertisers.patch": - -type AdvertisersPatchCall struct { - s *Service - profileId int64 - advertiser *Advertiser - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// Patch: Updates an existing advertiser. This method supports patch -// semantics. -// -// - id: Advertiser ID. -// - profileId: User profile ID associated with this request. -func (r *AdvertisersService) Patch(profileId int64, id int64, advertiser *Advertiser) *AdvertisersPatchCall { - c := &AdvertisersPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.profileId = profileId - c.urlParams_.Set("id", fmt.Sprint(id)) - c.advertiser = advertiser - 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 *AdvertisersPatchCall) Fields(s ...googleapi.Field) *AdvertisersPatchCall { - 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 *AdvertisersPatchCall) Context(ctx context.Context) *AdvertisersPatchCall { - 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 *AdvertisersPatchCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *AdvertisersPatchCall) 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.advertiser) - 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, "userprofiles/{profileId}/advertisers") - 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{ - "profileId": strconv.FormatInt(c.profileId, 10), - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "dfareporting.advertisers.patch" call. -// Exactly one of *Advertiser or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Advertiser.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 *AdvertisersPatchCall) Do(opts ...googleapi.CallOption) (*Advertiser, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &Advertiser{ - 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 an existing advertiser. This method supports patch semantics.", - // "flatPath": "userprofiles/{profileId}/advertisers", - // "httpMethod": "PATCH", - // "id": "dfareporting.advertisers.patch", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Advertiser ID.", - // "format": "int64", - // "location": "query", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/advertisers", - // "request": { - // "$ref": "Advertiser" - // }, - // "response": { - // "$ref": "Advertiser" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.advertisers.update": - -type AdvertisersUpdateCall struct { - s *Service - profileId int64 - advertiser *Advertiser - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// Update: Updates an existing advertiser. -// -// - profileId: User profile ID associated with this request. -func (r *AdvertisersService) Update(profileId int64, advertiser *Advertiser) *AdvertisersUpdateCall { - c := &AdvertisersUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.profileId = profileId - c.advertiser = advertiser - 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 *AdvertisersUpdateCall) Fields(s ...googleapi.Field) *AdvertisersUpdateCall { - 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 *AdvertisersUpdateCall) Context(ctx context.Context) *AdvertisersUpdateCall { - 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 *AdvertisersUpdateCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *AdvertisersUpdateCall) 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.advertiser) - 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, "userprofiles/{profileId}/advertisers") - urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("PUT", urls, body) - if err != nil { - return nil, err - } - req.Header = reqHeaders - googleapi.Expand(req.URL, map[string]string{ - "profileId": strconv.FormatInt(c.profileId, 10), - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "dfareporting.advertisers.update" call. -// Exactly one of *Advertiser or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Advertiser.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 *AdvertisersUpdateCall) Do(opts ...googleapi.CallOption) (*Advertiser, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &Advertiser{ - 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 an existing advertiser.", - // "flatPath": "userprofiles/{profileId}/advertisers", - // "httpMethod": "PUT", - // "id": "dfareporting.advertisers.update", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/advertisers", - // "request": { - // "$ref": "Advertiser" - // }, - // "response": { - // "$ref": "Advertiser" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.browsers.list": - -type BrowsersListCall struct { - s *Service - profileId int64 - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} - -// List: Retrieves a list of browsers. -// -// - profileId: User profile ID associated with this request. -func (r *BrowsersService) List(profileId int64) *BrowsersListCall { - c := &BrowsersListCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.profileId = profileId - 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 *BrowsersListCall) Fields(s ...googleapi.Field) *BrowsersListCall { - 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 *BrowsersListCall) IfNoneMatch(entityTag string) *BrowsersListCall { - 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 *BrowsersListCall) Context(ctx context.Context) *BrowsersListCall { - 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 *BrowsersListCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *BrowsersListCall) 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, "userprofiles/{profileId}/browsers") - 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{ - "profileId": strconv.FormatInt(c.profileId, 10), - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "dfareporting.browsers.list" call. -// Exactly one of *BrowsersListResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *BrowsersListResponse.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 *BrowsersListCall) Do(opts ...googleapi.CallOption) (*BrowsersListResponse, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &BrowsersListResponse{ - 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 a list of browsers.", - // "flatPath": "userprofiles/{profileId}/browsers", - // "httpMethod": "GET", - // "id": "dfareporting.browsers.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/browsers", - // "response": { - // "$ref": "BrowsersListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.campaignCreativeAssociations.insert": - -type CampaignCreativeAssociationsInsertCall struct { - s *Service - profileId int64 - campaignId int64 - campaigncreativeassociation *CampaignCreativeAssociation - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// Insert: 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. -// -// - campaignId: Campaign ID in this association. -// - profileId: User profile ID associated with this request. -func (r *CampaignCreativeAssociationsService) Insert(profileId int64, campaignId int64, campaigncreativeassociation *CampaignCreativeAssociation) *CampaignCreativeAssociationsInsertCall { - c := &CampaignCreativeAssociationsInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.profileId = profileId - c.campaignId = campaignId - c.campaigncreativeassociation = campaigncreativeassociation - 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 *CampaignCreativeAssociationsInsertCall) Fields(s ...googleapi.Field) *CampaignCreativeAssociationsInsertCall { - 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 *CampaignCreativeAssociationsInsertCall) Context(ctx context.Context) *CampaignCreativeAssociationsInsertCall { - 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 *CampaignCreativeAssociationsInsertCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *CampaignCreativeAssociationsInsertCall) 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.campaigncreativeassociation) - 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, "userprofiles/{profileId}/campaigns/{campaignId}/campaignCreativeAssociations") - 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{ - "profileId": strconv.FormatInt(c.profileId, 10), - "campaignId": strconv.FormatInt(c.campaignId, 10), - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "dfareporting.campaignCreativeAssociations.insert" call. -// Exactly one of *CampaignCreativeAssociation or error will be non-nil. -// Any non-2xx status code is an error. Response headers are in either -// *CampaignCreativeAssociation.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 *CampaignCreativeAssociationsInsertCall) Do(opts ...googleapi.CallOption) (*CampaignCreativeAssociation, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &CampaignCreativeAssociation{ - 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": "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": "userprofiles/{profileId}/campaigns/{campaignId}/campaignCreativeAssociations", - // "httpMethod": "POST", - // "id": "dfareporting.campaignCreativeAssociations.insert", - // "parameterOrder": [ - // "profileId", - // "campaignId" - // ], - // "parameters": { - // "campaignId": { - // "description": "Campaign ID in this association.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/campaigns/{campaignId}/campaignCreativeAssociations", - // "request": { - // "$ref": "CampaignCreativeAssociation" - // }, - // "response": { - // "$ref": "CampaignCreativeAssociation" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.campaignCreativeAssociations.list": - -type CampaignCreativeAssociationsListCall struct { - s *Service - profileId int64 - campaignId int64 - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} - -// List: Retrieves the list of creative IDs associated with the -// specified campaign. This method supports paging. -// -// - campaignId: Campaign ID in this association. -// - profileId: User profile ID associated with this request. -func (r *CampaignCreativeAssociationsService) List(profileId int64, campaignId int64) *CampaignCreativeAssociationsListCall { - c := &CampaignCreativeAssociationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.profileId = profileId - c.campaignId = campaignId - return c -} - -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. -func (c *CampaignCreativeAssociationsListCall) MaxResults(maxResults int64) *CampaignCreativeAssociationsListCall { - c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) - return c -} - -// PageToken sets the optional parameter "pageToken": Value of the -// nextPageToken from the previous result page. -func (c *CampaignCreativeAssociationsListCall) PageToken(pageToken string) *CampaignCreativeAssociationsListCall { - c.urlParams_.Set("pageToken", pageToken) - return c -} - -// SortOrder sets the optional parameter "sortOrder": Order of sorted -// results. -// -// Possible values: -// -// "ASCENDING" (default) -// "DESCENDING" -func (c *CampaignCreativeAssociationsListCall) SortOrder(sortOrder string) *CampaignCreativeAssociationsListCall { - c.urlParams_.Set("sortOrder", sortOrder) - 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 *CampaignCreativeAssociationsListCall) Fields(s ...googleapi.Field) *CampaignCreativeAssociationsListCall { - 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 *CampaignCreativeAssociationsListCall) IfNoneMatch(entityTag string) *CampaignCreativeAssociationsListCall { - 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 *CampaignCreativeAssociationsListCall) Context(ctx context.Context) *CampaignCreativeAssociationsListCall { - 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 *CampaignCreativeAssociationsListCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *CampaignCreativeAssociationsListCall) 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, "userprofiles/{profileId}/campaigns/{campaignId}/campaignCreativeAssociations") - 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{ - "profileId": strconv.FormatInt(c.profileId, 10), - "campaignId": strconv.FormatInt(c.campaignId, 10), - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "dfareporting.campaignCreativeAssociations.list" call. -// Exactly one of *CampaignCreativeAssociationsListResponse or error -// will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *CampaignCreativeAssociationsListResponse.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 *CampaignCreativeAssociationsListCall) Do(opts ...googleapi.CallOption) (*CampaignCreativeAssociationsListResponse, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &CampaignCreativeAssociationsListResponse{ - 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 list of creative IDs associated with the specified campaign. This method supports paging.", - // "flatPath": "userprofiles/{profileId}/campaigns/{campaignId}/campaignCreativeAssociations", - // "httpMethod": "GET", - // "id": "dfareporting.campaignCreativeAssociations.list", - // "parameterOrder": [ - // "profileId", - // "campaignId" - // ], - // "parameters": { - // "campaignId": { - // "description": "Campaign ID in this association.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "maxResults": { - // "default": "1000", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "1000", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Value of the nextPageToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "sortOrder": { - // "default": "ASCENDING", - // "description": "Order of sorted results.", - // "enum": [ - // "ASCENDING", - // "DESCENDING" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/campaigns/{campaignId}/campaignCreativeAssociations", - // "response": { - // "$ref": "CampaignCreativeAssociationsListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// 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 *CampaignCreativeAssociationsListCall) Pages(ctx context.Context, f func(*CampaignCreativeAssociationsListResponse) 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 "dfareporting.campaigns.get": - -type CampaignsGetCall struct { - s *Service - profileId int64 - id int64 - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} - -// Get: Gets one campaign by ID. -// -// - id: Campaign ID. -// - profileId: User profile ID associated with this request. -func (r *CampaignsService) Get(profileId int64, id int64) *CampaignsGetCall { - c := &CampaignsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.profileId = profileId - c.id = id - 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 *CampaignsGetCall) Fields(s ...googleapi.Field) *CampaignsGetCall { - 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 *CampaignsGetCall) IfNoneMatch(entityTag string) *CampaignsGetCall { - 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 *CampaignsGetCall) Context(ctx context.Context) *CampaignsGetCall { - 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 *CampaignsGetCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *CampaignsGetCall) 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, "userprofiles/{profileId}/campaigns/{id}") - 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{ - "profileId": strconv.FormatInt(c.profileId, 10), - "id": strconv.FormatInt(c.id, 10), - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "dfareporting.campaigns.get" call. -// Exactly one of *Campaign or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Campaign.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 *CampaignsGetCall) Do(opts ...googleapi.CallOption) (*Campaign, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &Campaign{ - 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 one campaign by ID.", - // "flatPath": "userprofiles/{profileId}/campaigns/{id}", - // "httpMethod": "GET", - // "id": "dfareporting.campaigns.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Campaign ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/campaigns/{id}", - // "response": { - // "$ref": "Campaign" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.campaigns.insert": - -type CampaignsInsertCall struct { - s *Service - profileId int64 - campaign *Campaign - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// Insert: Inserts a new campaign. -// -// - profileId: User profile ID associated with this request. -func (r *CampaignsService) Insert(profileId int64, campaign *Campaign) *CampaignsInsertCall { - c := &CampaignsInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.profileId = profileId - c.campaign = campaign - 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 *CampaignsInsertCall) Fields(s ...googleapi.Field) *CampaignsInsertCall { - 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 *CampaignsInsertCall) Context(ctx context.Context) *CampaignsInsertCall { - 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 *CampaignsInsertCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *CampaignsInsertCall) 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.campaign) - 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, "userprofiles/{profileId}/campaigns") - 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{ - "profileId": strconv.FormatInt(c.profileId, 10), - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "dfareporting.campaigns.insert" call. -// Exactly one of *Campaign or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Campaign.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 *CampaignsInsertCall) Do(opts ...googleapi.CallOption) (*Campaign, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &Campaign{ - 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": "Inserts a new campaign.", - // "flatPath": "userprofiles/{profileId}/campaigns", - // "httpMethod": "POST", - // "id": "dfareporting.campaigns.insert", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/campaigns", - // "request": { - // "$ref": "Campaign" - // }, - // "response": { - // "$ref": "Campaign" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.campaigns.list": - -type CampaignsListCall struct { - s *Service - profileId int64 - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} - -// List: Retrieves a list of campaigns, possibly filtered. This method -// supports paging. -// -// - profileId: User profile ID associated with this request. -func (r *CampaignsService) List(profileId int64) *CampaignsListCall { - c := &CampaignsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.profileId = profileId - return c -} - -// AdvertiserGroupIds sets the optional parameter "advertiserGroupIds": -// Select only campaigns whose advertisers belong to these advertiser -// groups. -func (c *CampaignsListCall) AdvertiserGroupIds(advertiserGroupIds ...int64) *CampaignsListCall { - var advertiserGroupIds_ []string - for _, v := range advertiserGroupIds { - advertiserGroupIds_ = append(advertiserGroupIds_, fmt.Sprint(v)) - } - c.urlParams_.SetMulti("advertiserGroupIds", advertiserGroupIds_) - return c -} - -// AdvertiserIds sets the optional parameter "advertiserIds": Select -// only campaigns that belong to these advertisers. -func (c *CampaignsListCall) AdvertiserIds(advertiserIds ...int64) *CampaignsListCall { - var advertiserIds_ []string - for _, v := range advertiserIds { - advertiserIds_ = append(advertiserIds_, fmt.Sprint(v)) - } - c.urlParams_.SetMulti("advertiserIds", advertiserIds_) - return c -} - -// Archived sets the optional parameter "archived": Select only archived -// campaigns. Don't set this field to select both archived and -// non-archived campaigns. -func (c *CampaignsListCall) Archived(archived bool) *CampaignsListCall { - c.urlParams_.Set("archived", fmt.Sprint(archived)) - return c -} - -// AtLeastOneOptimizationActivity sets the optional parameter -// "atLeastOneOptimizationActivity": Select only campaigns that have at -// least one optimization activity. -func (c *CampaignsListCall) AtLeastOneOptimizationActivity(atLeastOneOptimizationActivity bool) *CampaignsListCall { - c.urlParams_.Set("atLeastOneOptimizationActivity", fmt.Sprint(atLeastOneOptimizationActivity)) - return c -} - -// ExcludedIds sets the optional parameter "excludedIds": Exclude -// campaigns with these IDs. -func (c *CampaignsListCall) ExcludedIds(excludedIds ...int64) *CampaignsListCall { - var excludedIds_ []string - for _, v := range excludedIds { - excludedIds_ = append(excludedIds_, fmt.Sprint(v)) - } - c.urlParams_.SetMulti("excludedIds", excludedIds_) - return c -} - -// Ids sets the optional parameter "ids": Select only campaigns with -// these IDs. -func (c *CampaignsListCall) Ids(ids ...int64) *CampaignsListCall { - var ids_ []string - for _, v := range ids { - ids_ = append(ids_, fmt.Sprint(v)) - } - c.urlParams_.SetMulti("ids", ids_) - return c -} - -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. -func (c *CampaignsListCall) MaxResults(maxResults int64) *CampaignsListCall { - c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) - return c -} - -// OverriddenEventTagId sets the optional parameter -// "overriddenEventTagId": Select only campaigns that have overridden -// this event tag ID. -func (c *CampaignsListCall) OverriddenEventTagId(overriddenEventTagId int64) *CampaignsListCall { - c.urlParams_.Set("overriddenEventTagId", fmt.Sprint(overriddenEventTagId)) - return c -} - -// PageToken sets the optional parameter "pageToken": Value of the -// nextPageToken from the previous result page. -func (c *CampaignsListCall) PageToken(pageToken string) *CampaignsListCall { - c.urlParams_.Set("pageToken", pageToken) - return c -} - -// SearchString sets the optional parameter "searchString": Allows -// searching for campaigns by name or ID. Wildcards (*) are allowed. For -// example, "campaign*2015" will return campaigns with names like -// "campaign June 2015", "campaign April 2015", or simply "campaign -// 2015". Most of the searches also add wildcards implicitly at the -// start and the end of the search string. For example, a search string -// of "campaign" will match campaigns with name "my campaign", "campaign -// 2015", or simply "campaign". -func (c *CampaignsListCall) SearchString(searchString string) *CampaignsListCall { - c.urlParams_.Set("searchString", searchString) - return c -} - -// SortField sets the optional parameter "sortField": Field by which to -// sort the list. -// -// Possible values: -// -// "ID" (default) -// "NAME" -func (c *CampaignsListCall) SortField(sortField string) *CampaignsListCall { - c.urlParams_.Set("sortField", sortField) - return c -} - -// SortOrder sets the optional parameter "sortOrder": Order of sorted -// results. -// -// Possible values: -// -// "ASCENDING" (default) -// "DESCENDING" -func (c *CampaignsListCall) SortOrder(sortOrder string) *CampaignsListCall { - c.urlParams_.Set("sortOrder", sortOrder) - return c -} - -// SubaccountId sets the optional parameter "subaccountId": Select only -// campaigns that belong to this subaccount. -func (c *CampaignsListCall) SubaccountId(subaccountId int64) *CampaignsListCall { - c.urlParams_.Set("subaccountId", fmt.Sprint(subaccountId)) - 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 *CampaignsListCall) Fields(s ...googleapi.Field) *CampaignsListCall { - 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 *CampaignsListCall) IfNoneMatch(entityTag string) *CampaignsListCall { - 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 *CampaignsListCall) Context(ctx context.Context) *CampaignsListCall { - 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 *CampaignsListCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *CampaignsListCall) 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, "userprofiles/{profileId}/campaigns") - 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{ - "profileId": strconv.FormatInt(c.profileId, 10), - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "dfareporting.campaigns.list" call. -// Exactly one of *CampaignsListResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *CampaignsListResponse.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 *CampaignsListCall) Do(opts ...googleapi.CallOption) (*CampaignsListResponse, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &CampaignsListResponse{ - 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 a list of campaigns, possibly filtered. This method supports paging.", - // "flatPath": "userprofiles/{profileId}/campaigns", - // "httpMethod": "GET", - // "id": "dfareporting.campaigns.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "advertiserGroupIds": { - // "description": "Select only campaigns whose advertisers belong to these advertiser groups.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "advertiserIds": { - // "description": "Select only campaigns that belong to these advertisers.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "archived": { - // "description": "Select only archived campaigns. Don't set this field to select both archived and non-archived campaigns.", - // "location": "query", - // "type": "boolean" - // }, - // "atLeastOneOptimizationActivity": { - // "description": "Select only campaigns that have at least one optimization activity.", - // "location": "query", - // "type": "boolean" - // }, - // "excludedIds": { - // "description": "Exclude campaigns with these IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "ids": { - // "description": "Select only campaigns with these IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "maxResults": { - // "default": "1000", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "1000", - // "minimum": "0", - // "type": "integer" - // }, - // "overriddenEventTagId": { - // "description": "Select only campaigns that have overridden this event tag ID.", - // "format": "int64", - // "location": "query", - // "type": "string" - // }, - // "pageToken": { - // "description": "Value of the nextPageToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "searchString": { - // "description": "Allows searching for campaigns by name or ID. Wildcards (*) are allowed. For example, \"campaign*2015\" will return campaigns with names like \"campaign June 2015\", \"campaign April 2015\", or simply \"campaign 2015\". Most of the searches also add wildcards implicitly at the start and the end of the search string. For example, a search string of \"campaign\" will match campaigns with name \"my campaign\", \"campaign 2015\", or simply \"campaign\".", - // "location": "query", - // "type": "string" - // }, - // "sortField": { - // "default": "ID", - // "description": "Field by which to sort the list.", - // "enum": [ - // "ID", - // "NAME" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "sortOrder": { - // "default": "ASCENDING", - // "description": "Order of sorted results.", - // "enum": [ - // "ASCENDING", - // "DESCENDING" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "subaccountId": { - // "description": "Select only campaigns that belong to this subaccount.", - // "format": "int64", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/campaigns", - // "response": { - // "$ref": "CampaignsListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// 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 *CampaignsListCall) Pages(ctx context.Context, f func(*CampaignsListResponse) 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 "dfareporting.campaigns.patch": - -type CampaignsPatchCall struct { - s *Service - profileId int64 - campaign *Campaign - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// Patch: Updates an existing campaign. This method supports patch -// semantics. -// -// - id: Campaign ID. -// - profileId: User profile ID associated with this request. -func (r *CampaignsService) Patch(profileId int64, id int64, campaign *Campaign) *CampaignsPatchCall { - c := &CampaignsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.profileId = profileId - c.urlParams_.Set("id", fmt.Sprint(id)) - c.campaign = campaign - 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 *CampaignsPatchCall) Fields(s ...googleapi.Field) *CampaignsPatchCall { - 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 *CampaignsPatchCall) Context(ctx context.Context) *CampaignsPatchCall { - 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 *CampaignsPatchCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *CampaignsPatchCall) 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.campaign) - 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, "userprofiles/{profileId}/campaigns") - 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{ - "profileId": strconv.FormatInt(c.profileId, 10), - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "dfareporting.campaigns.patch" call. -// Exactly one of *Campaign or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Campaign.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 *CampaignsPatchCall) Do(opts ...googleapi.CallOption) (*Campaign, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &Campaign{ - 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 an existing campaign. This method supports patch semantics.", - // "flatPath": "userprofiles/{profileId}/campaigns", - // "httpMethod": "PATCH", - // "id": "dfareporting.campaigns.patch", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Campaign ID.", - // "format": "int64", - // "location": "query", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/campaigns", - // "request": { - // "$ref": "Campaign" - // }, - // "response": { - // "$ref": "Campaign" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.campaigns.update": - -type CampaignsUpdateCall struct { - s *Service - profileId int64 - campaign *Campaign - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// Update: Updates an existing campaign. -// -// - profileId: User profile ID associated with this request. -func (r *CampaignsService) Update(profileId int64, campaign *Campaign) *CampaignsUpdateCall { - c := &CampaignsUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.profileId = profileId - c.campaign = campaign - 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 *CampaignsUpdateCall) Fields(s ...googleapi.Field) *CampaignsUpdateCall { - 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 *CampaignsUpdateCall) Context(ctx context.Context) *CampaignsUpdateCall { - 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 *CampaignsUpdateCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *CampaignsUpdateCall) 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.campaign) - 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, "userprofiles/{profileId}/campaigns") - urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("PUT", urls, body) - if err != nil { - return nil, err - } - req.Header = reqHeaders - googleapi.Expand(req.URL, map[string]string{ - "profileId": strconv.FormatInt(c.profileId, 10), - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "dfareporting.campaigns.update" call. -// Exactly one of *Campaign or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Campaign.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 *CampaignsUpdateCall) Do(opts ...googleapi.CallOption) (*Campaign, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &Campaign{ - 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 an existing campaign.", - // "flatPath": "userprofiles/{profileId}/campaigns", - // "httpMethod": "PUT", - // "id": "dfareporting.campaigns.update", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/campaigns", - // "request": { - // "$ref": "Campaign" - // }, - // "response": { - // "$ref": "Campaign" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.changeLogs.get": - -type ChangeLogsGetCall struct { - s *Service - profileId int64 - id int64 - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} - -// Get: Gets one change log by ID. -// -// - id: Change log ID. -// - profileId: User profile ID associated with this request. -func (r *ChangeLogsService) Get(profileId int64, id int64) *ChangeLogsGetCall { - c := &ChangeLogsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.profileId = profileId - c.id = id - 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 *ChangeLogsGetCall) Fields(s ...googleapi.Field) *ChangeLogsGetCall { - 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 *ChangeLogsGetCall) IfNoneMatch(entityTag string) *ChangeLogsGetCall { - 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 *ChangeLogsGetCall) Context(ctx context.Context) *ChangeLogsGetCall { - 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 *ChangeLogsGetCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *ChangeLogsGetCall) 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, "userprofiles/{profileId}/changeLogs/{id}") - 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{ - "profileId": strconv.FormatInt(c.profileId, 10), - "id": strconv.FormatInt(c.id, 10), - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "dfareporting.changeLogs.get" call. -// Exactly one of *ChangeLog or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *ChangeLog.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 *ChangeLogsGetCall) Do(opts ...googleapi.CallOption) (*ChangeLog, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &ChangeLog{ - 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 one change log by ID.", - // "flatPath": "userprofiles/{profileId}/changeLogs/{id}", - // "httpMethod": "GET", - // "id": "dfareporting.changeLogs.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Change log ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/changeLogs/{id}", - // "response": { - // "$ref": "ChangeLog" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.changeLogs.list": - -type ChangeLogsListCall struct { - s *Service - profileId int64 - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} - -// List: Retrieves a list of change logs. This method supports paging. -// -// - profileId: User profile ID associated with this request. -func (r *ChangeLogsService) List(profileId int64) *ChangeLogsListCall { - c := &ChangeLogsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.profileId = profileId - return c -} - -// Action sets the optional parameter "action": Select only change logs -// with the specified action. -// -// Possible values: -// -// "ACTION_CREATE" -// "ACTION_UPDATE" -// "ACTION_DELETE" -// "ACTION_ENABLE" -// "ACTION_DISABLE" -// "ACTION_ADD" -// "ACTION_REMOVE" -// "ACTION_MARK_AS_DEFAULT" -// "ACTION_ASSOCIATE" -// "ACTION_ASSIGN" -// "ACTION_UNASSIGN" -// "ACTION_SEND" -// "ACTION_LINK" -// "ACTION_UNLINK" -// "ACTION_PUSH" -// "ACTION_EMAIL_TAGS" -// "ACTION_SHARE" -func (c *ChangeLogsListCall) Action(action string) *ChangeLogsListCall { - c.urlParams_.Set("action", action) - return c -} - -// Ids sets the optional parameter "ids": Select only change logs with -// these IDs. -func (c *ChangeLogsListCall) Ids(ids ...int64) *ChangeLogsListCall { - var ids_ []string - for _, v := range ids { - ids_ = append(ids_, fmt.Sprint(v)) - } - c.urlParams_.SetMulti("ids", ids_) - return c -} - -// MaxChangeTime sets the optional parameter "maxChangeTime": Select -// only change logs whose change time is before the specified -// maxChangeTime.The time should be formatted as an RFC3339 date/time -// string. For example, for 10:54 PM on July 18th, 2015, in the -// America/New York time zone, the format is -// "2015-07-18T22:54:00-04:00". In other words, the year, month, day, -// the letter T, the hour (24-hour clock system), minute, second, and -// then the time zone offset. -func (c *ChangeLogsListCall) MaxChangeTime(maxChangeTime string) *ChangeLogsListCall { - c.urlParams_.Set("maxChangeTime", maxChangeTime) - return c -} - -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. -func (c *ChangeLogsListCall) MaxResults(maxResults int64) *ChangeLogsListCall { - c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) - return c -} - -// MinChangeTime sets the optional parameter "minChangeTime": Select -// only change logs whose change time is after the specified -// minChangeTime.The time should be formatted as an RFC3339 date/time -// string. For example, for 10:54 PM on July 18th, 2015, in the -// America/New York time zone, the format is -// "2015-07-18T22:54:00-04:00". In other words, the year, month, day, -// the letter T, the hour (24-hour clock system), minute, second, and -// then the time zone offset. -func (c *ChangeLogsListCall) MinChangeTime(minChangeTime string) *ChangeLogsListCall { - c.urlParams_.Set("minChangeTime", minChangeTime) - return c -} - -// ObjectIds sets the optional parameter "objectIds": Select only change -// logs with these object IDs. -func (c *ChangeLogsListCall) ObjectIds(objectIds ...int64) *ChangeLogsListCall { - var objectIds_ []string - for _, v := range objectIds { - objectIds_ = append(objectIds_, fmt.Sprint(v)) - } - c.urlParams_.SetMulti("objectIds", objectIds_) - return c -} - -// ObjectType sets the optional parameter "objectType": Select only -// change logs with the specified object type. -// -// Possible values: -// -// "OBJECT_ADVERTISER" -// "OBJECT_FLOODLIGHT_CONFIGURATION" -// "OBJECT_AD" -// "OBJECT_FLOODLIGHT_ACTVITY" -// "OBJECT_CAMPAIGN" -// "OBJECT_FLOODLIGHT_ACTIVITY_GROUP" -// "OBJECT_CREATIVE" -// "OBJECT_PLACEMENT" -// "OBJECT_DFA_SITE" -// "OBJECT_USER_ROLE" -// "OBJECT_USER_PROFILE" -// "OBJECT_ADVERTISER_GROUP" -// "OBJECT_ACCOUNT" -// "OBJECT_SUBACCOUNT" -// "OBJECT_RICHMEDIA_CREATIVE" -// "OBJECT_INSTREAM_CREATIVE" -// "OBJECT_MEDIA_ORDER" -// "OBJECT_CONTENT_CATEGORY" -// "OBJECT_PLACEMENT_STRATEGY" -// "OBJECT_SD_SITE" -// "OBJECT_SIZE" -// "OBJECT_CREATIVE_GROUP" -// "OBJECT_CREATIVE_ASSET" -// "OBJECT_USER_PROFILE_FILTER" -// "OBJECT_LANDING_PAGE" -// "OBJECT_CREATIVE_FIELD" -// "OBJECT_REMARKETING_LIST" -// "OBJECT_PROVIDED_LIST_CLIENT" -// "OBJECT_EVENT_TAG" -// "OBJECT_CREATIVE_BUNDLE" -// "OBJECT_BILLING_ACCOUNT_GROUP" -// "OBJECT_BILLING_FEATURE" -// "OBJECT_RATE_CARD" -// "OBJECT_ACCOUNT_BILLING_FEATURE" -// "OBJECT_BILLING_MINIMUM_FEE" -// "OBJECT_BILLING_PROFILE" -// "OBJECT_PLAYSTORE_LINK" -// "OBJECT_TARGETING_TEMPLATE" -// "OBJECT_SEARCH_LIFT_STUDY" -// "OBJECT_FLOODLIGHT_DV360_LINK" -// "OBJECT_ADVERTISER_CUSTOMER_LINK" -func (c *ChangeLogsListCall) ObjectType(objectType string) *ChangeLogsListCall { - c.urlParams_.Set("objectType", objectType) - return c -} - -// PageToken sets the optional parameter "pageToken": Value of the -// nextPageToken from the previous result page. -func (c *ChangeLogsListCall) PageToken(pageToken string) *ChangeLogsListCall { - c.urlParams_.Set("pageToken", pageToken) - return c -} - -// SearchString sets the optional parameter "searchString": Select only -// change logs whose object ID, user name, old or new values match the -// search string. -func (c *ChangeLogsListCall) SearchString(searchString string) *ChangeLogsListCall { - c.urlParams_.Set("searchString", searchString) - return c -} - -// UserProfileIds sets the optional parameter "userProfileIds": Select -// only change logs with these user profile IDs. -func (c *ChangeLogsListCall) UserProfileIds(userProfileIds ...int64) *ChangeLogsListCall { - var userProfileIds_ []string - for _, v := range userProfileIds { - userProfileIds_ = append(userProfileIds_, fmt.Sprint(v)) - } - c.urlParams_.SetMulti("userProfileIds", userProfileIds_) - 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 *ChangeLogsListCall) Fields(s ...googleapi.Field) *ChangeLogsListCall { - 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 *ChangeLogsListCall) IfNoneMatch(entityTag string) *ChangeLogsListCall { - 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 *ChangeLogsListCall) Context(ctx context.Context) *ChangeLogsListCall { - 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 *ChangeLogsListCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *ChangeLogsListCall) 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, "userprofiles/{profileId}/changeLogs") - 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{ - "profileId": strconv.FormatInt(c.profileId, 10), - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "dfareporting.changeLogs.list" call. -// Exactly one of *ChangeLogsListResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *ChangeLogsListResponse.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 *ChangeLogsListCall) Do(opts ...googleapi.CallOption) (*ChangeLogsListResponse, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &ChangeLogsListResponse{ - 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 a list of change logs. This method supports paging.", - // "flatPath": "userprofiles/{profileId}/changeLogs", - // "httpMethod": "GET", - // "id": "dfareporting.changeLogs.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "action": { - // "description": "Select only change logs with the specified action.", - // "enum": [ - // "ACTION_CREATE", - // "ACTION_UPDATE", - // "ACTION_DELETE", - // "ACTION_ENABLE", - // "ACTION_DISABLE", - // "ACTION_ADD", - // "ACTION_REMOVE", - // "ACTION_MARK_AS_DEFAULT", - // "ACTION_ASSOCIATE", - // "ACTION_ASSIGN", - // "ACTION_UNASSIGN", - // "ACTION_SEND", - // "ACTION_LINK", - // "ACTION_UNLINK", - // "ACTION_PUSH", - // "ACTION_EMAIL_TAGS", - // "ACTION_SHARE" - // ], - // "enumDescriptions": [ - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "ids": { - // "description": "Select only change logs with these IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "maxChangeTime": { - // "description": "Select only change logs whose change time is before the specified maxChangeTime.The time should be formatted as an RFC3339 date/time string. For example, for 10:54 PM on July 18th, 2015, in the America/New York time zone, the format is \"2015-07-18T22:54:00-04:00\". In other words, the year, month, day, the letter T, the hour (24-hour clock system), minute, second, and then the time zone offset.", - // "location": "query", - // "type": "string" - // }, - // "maxResults": { - // "default": "1000", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "1000", - // "minimum": "0", - // "type": "integer" - // }, - // "minChangeTime": { - // "description": "Select only change logs whose change time is after the specified minChangeTime.The time should be formatted as an RFC3339 date/time string. For example, for 10:54 PM on July 18th, 2015, in the America/New York time zone, the format is \"2015-07-18T22:54:00-04:00\". In other words, the year, month, day, the letter T, the hour (24-hour clock system), minute, second, and then the time zone offset.", - // "location": "query", - // "type": "string" - // }, - // "objectIds": { - // "description": "Select only change logs with these object IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "objectType": { - // "description": "Select only change logs with the specified object type.", - // "enum": [ - // "OBJECT_ADVERTISER", - // "OBJECT_FLOODLIGHT_CONFIGURATION", - // "OBJECT_AD", - // "OBJECT_FLOODLIGHT_ACTVITY", - // "OBJECT_CAMPAIGN", - // "OBJECT_FLOODLIGHT_ACTIVITY_GROUP", - // "OBJECT_CREATIVE", - // "OBJECT_PLACEMENT", - // "OBJECT_DFA_SITE", - // "OBJECT_USER_ROLE", - // "OBJECT_USER_PROFILE", - // "OBJECT_ADVERTISER_GROUP", - // "OBJECT_ACCOUNT", - // "OBJECT_SUBACCOUNT", - // "OBJECT_RICHMEDIA_CREATIVE", - // "OBJECT_INSTREAM_CREATIVE", - // "OBJECT_MEDIA_ORDER", - // "OBJECT_CONTENT_CATEGORY", - // "OBJECT_PLACEMENT_STRATEGY", - // "OBJECT_SD_SITE", - // "OBJECT_SIZE", - // "OBJECT_CREATIVE_GROUP", - // "OBJECT_CREATIVE_ASSET", - // "OBJECT_USER_PROFILE_FILTER", - // "OBJECT_LANDING_PAGE", - // "OBJECT_CREATIVE_FIELD", - // "OBJECT_REMARKETING_LIST", - // "OBJECT_PROVIDED_LIST_CLIENT", - // "OBJECT_EVENT_TAG", - // "OBJECT_CREATIVE_BUNDLE", - // "OBJECT_BILLING_ACCOUNT_GROUP", - // "OBJECT_BILLING_FEATURE", - // "OBJECT_RATE_CARD", - // "OBJECT_ACCOUNT_BILLING_FEATURE", - // "OBJECT_BILLING_MINIMUM_FEE", - // "OBJECT_BILLING_PROFILE", - // "OBJECT_PLAYSTORE_LINK", - // "OBJECT_TARGETING_TEMPLATE", - // "OBJECT_SEARCH_LIFT_STUDY", - // "OBJECT_FLOODLIGHT_DV360_LINK", - // "OBJECT_ADVERTISER_CUSTOMER_LINK" - // ], - // "enumDescriptions": [ - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "pageToken": { - // "description": "Value of the nextPageToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "searchString": { - // "description": "Select only change logs whose object ID, user name, old or new values match the search string.", - // "location": "query", - // "type": "string" - // }, - // "userProfileIds": { - // "description": "Select only change logs with these user profile IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/changeLogs", - // "response": { - // "$ref": "ChangeLogsListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// 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 *ChangeLogsListCall) Pages(ctx context.Context, f func(*ChangeLogsListResponse) 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 "dfareporting.cities.list": - -type CitiesListCall struct { - s *Service - profileId int64 - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} - -// List: Retrieves a list of cities, possibly filtered. -// -// - profileId: User profile ID associated with this request. -func (r *CitiesService) List(profileId int64) *CitiesListCall { - c := &CitiesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.profileId = profileId - return c -} - -// CountryDartIds sets the optional parameter "countryDartIds": Select -// only cities from these countries. -func (c *CitiesListCall) CountryDartIds(countryDartIds ...int64) *CitiesListCall { - var countryDartIds_ []string - for _, v := range countryDartIds { - countryDartIds_ = append(countryDartIds_, fmt.Sprint(v)) - } - c.urlParams_.SetMulti("countryDartIds", countryDartIds_) - return c -} - -// DartIds sets the optional parameter "dartIds": Select only cities -// with these DART IDs. -func (c *CitiesListCall) DartIds(dartIds ...int64) *CitiesListCall { - var dartIds_ []string - for _, v := range dartIds { - dartIds_ = append(dartIds_, fmt.Sprint(v)) - } - c.urlParams_.SetMulti("dartIds", dartIds_) - return c -} - -// NamePrefix sets the optional parameter "namePrefix": Select only -// cities with names starting with this prefix. -func (c *CitiesListCall) NamePrefix(namePrefix string) *CitiesListCall { - c.urlParams_.Set("namePrefix", namePrefix) - return c -} - -// RegionDartIds sets the optional parameter "regionDartIds": Select -// only cities from these regions. -func (c *CitiesListCall) RegionDartIds(regionDartIds ...int64) *CitiesListCall { - var regionDartIds_ []string - for _, v := range regionDartIds { - regionDartIds_ = append(regionDartIds_, fmt.Sprint(v)) - } - c.urlParams_.SetMulti("regionDartIds", regionDartIds_) - 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 *CitiesListCall) Fields(s ...googleapi.Field) *CitiesListCall { - 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 *CitiesListCall) IfNoneMatch(entityTag string) *CitiesListCall { - 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 *CitiesListCall) Context(ctx context.Context) *CitiesListCall { - 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 *CitiesListCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *CitiesListCall) 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, "userprofiles/{profileId}/cities") - 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{ - "profileId": strconv.FormatInt(c.profileId, 10), - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "dfareporting.cities.list" call. -// Exactly one of *CitiesListResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *CitiesListResponse.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 *CitiesListCall) Do(opts ...googleapi.CallOption) (*CitiesListResponse, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &CitiesListResponse{ - 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 a list of cities, possibly filtered.", - // "flatPath": "userprofiles/{profileId}/cities", - // "httpMethod": "GET", - // "id": "dfareporting.cities.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "countryDartIds": { - // "description": "Select only cities from these countries.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "dartIds": { - // "description": "Select only cities with these DART IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "namePrefix": { - // "description": "Select only cities with names starting with this prefix.", - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "regionDartIds": { - // "description": "Select only cities from these regions.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/cities", - // "response": { - // "$ref": "CitiesListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.connectionTypes.get": - -type ConnectionTypesGetCall struct { - s *Service - profileId int64 - id int64 - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} - -// Get: Gets one connection type by ID. -// -// - id: Connection type ID. -// - profileId: User profile ID associated with this request. -func (r *ConnectionTypesService) Get(profileId int64, id int64) *ConnectionTypesGetCall { - c := &ConnectionTypesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.profileId = profileId - c.id = id - 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 *ConnectionTypesGetCall) Fields(s ...googleapi.Field) *ConnectionTypesGetCall { - 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 *ConnectionTypesGetCall) IfNoneMatch(entityTag string) *ConnectionTypesGetCall { - 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 *ConnectionTypesGetCall) Context(ctx context.Context) *ConnectionTypesGetCall { - 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 *ConnectionTypesGetCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *ConnectionTypesGetCall) 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, "userprofiles/{profileId}/connectionTypes/{id}") - 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{ - "profileId": strconv.FormatInt(c.profileId, 10), - "id": strconv.FormatInt(c.id, 10), - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "dfareporting.connectionTypes.get" call. -// Exactly one of *ConnectionType or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *ConnectionType.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 *ConnectionTypesGetCall) Do(opts ...googleapi.CallOption) (*ConnectionType, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &ConnectionType{ - 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 one connection type by ID.", - // "flatPath": "userprofiles/{profileId}/connectionTypes/{id}", - // "httpMethod": "GET", - // "id": "dfareporting.connectionTypes.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Connection type ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/connectionTypes/{id}", - // "response": { - // "$ref": "ConnectionType" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.connectionTypes.list": - -type ConnectionTypesListCall struct { - s *Service - profileId int64 - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} - -// List: Retrieves a list of connection types. -// -// - profileId: User profile ID associated with this request. -func (r *ConnectionTypesService) List(profileId int64) *ConnectionTypesListCall { - c := &ConnectionTypesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.profileId = profileId - 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 *ConnectionTypesListCall) Fields(s ...googleapi.Field) *ConnectionTypesListCall { - 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 *ConnectionTypesListCall) IfNoneMatch(entityTag string) *ConnectionTypesListCall { - 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 *ConnectionTypesListCall) Context(ctx context.Context) *ConnectionTypesListCall { - 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 *ConnectionTypesListCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *ConnectionTypesListCall) 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, "userprofiles/{profileId}/connectionTypes") - 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{ - "profileId": strconv.FormatInt(c.profileId, 10), - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "dfareporting.connectionTypes.list" call. -// Exactly one of *ConnectionTypesListResponse or error will be non-nil. -// Any non-2xx status code is an error. Response headers are in either -// *ConnectionTypesListResponse.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 *ConnectionTypesListCall) Do(opts ...googleapi.CallOption) (*ConnectionTypesListResponse, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &ConnectionTypesListResponse{ - 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 a list of connection types.", - // "flatPath": "userprofiles/{profileId}/connectionTypes", - // "httpMethod": "GET", - // "id": "dfareporting.connectionTypes.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/connectionTypes", - // "response": { - // "$ref": "ConnectionTypesListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.contentCategories.delete": - -type ContentCategoriesDeleteCall struct { - s *Service - profileId int64 - id int64 - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// Delete: Deletes an existing content category. -// -// - id: Content category ID. -// - profileId: User profile ID associated with this request. -func (r *ContentCategoriesService) Delete(profileId int64, id int64) *ContentCategoriesDeleteCall { - c := &ContentCategoriesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.profileId = profileId - c.id = id - 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 *ContentCategoriesDeleteCall) Fields(s ...googleapi.Field) *ContentCategoriesDeleteCall { - 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 *ContentCategoriesDeleteCall) Context(ctx context.Context) *ContentCategoriesDeleteCall { - 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 *ContentCategoriesDeleteCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *ContentCategoriesDeleteCall) 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, "userprofiles/{profileId}/contentCategories/{id}") - 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{ - "profileId": strconv.FormatInt(c.profileId, 10), - "id": strconv.FormatInt(c.id, 10), - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "dfareporting.contentCategories.delete" call. -func (c *ContentCategoriesDeleteCall) 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 gensupport.WrapError(err) - } - return nil - // { - // "description": "Deletes an existing content category.", - // "flatPath": "userprofiles/{profileId}/contentCategories/{id}", - // "httpMethod": "DELETE", - // "id": "dfareporting.contentCategories.delete", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Content category ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/contentCategories/{id}", - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.contentCategories.get": - -type ContentCategoriesGetCall struct { - s *Service - profileId int64 - id int64 - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} - -// Get: Gets one content category by ID. -// -// - id: Content category ID. -// - profileId: User profile ID associated with this request. -func (r *ContentCategoriesService) Get(profileId int64, id int64) *ContentCategoriesGetCall { - c := &ContentCategoriesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.profileId = profileId - c.id = id - 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 *ContentCategoriesGetCall) Fields(s ...googleapi.Field) *ContentCategoriesGetCall { - 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 *ContentCategoriesGetCall) IfNoneMatch(entityTag string) *ContentCategoriesGetCall { - 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 *ContentCategoriesGetCall) Context(ctx context.Context) *ContentCategoriesGetCall { - 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 *ContentCategoriesGetCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *ContentCategoriesGetCall) 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, "userprofiles/{profileId}/contentCategories/{id}") - 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{ - "profileId": strconv.FormatInt(c.profileId, 10), - "id": strconv.FormatInt(c.id, 10), - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "dfareporting.contentCategories.get" call. -// Exactly one of *ContentCategory or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *ContentCategory.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 *ContentCategoriesGetCall) Do(opts ...googleapi.CallOption) (*ContentCategory, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &ContentCategory{ - 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 one content category by ID.", - // "flatPath": "userprofiles/{profileId}/contentCategories/{id}", - // "httpMethod": "GET", - // "id": "dfareporting.contentCategories.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Content category ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/contentCategories/{id}", - // "response": { - // "$ref": "ContentCategory" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.contentCategories.insert": - -type ContentCategoriesInsertCall struct { - s *Service - profileId int64 - contentcategory *ContentCategory - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// Insert: Inserts a new content category. -// -// - profileId: User profile ID associated with this request. -func (r *ContentCategoriesService) Insert(profileId int64, contentcategory *ContentCategory) *ContentCategoriesInsertCall { - c := &ContentCategoriesInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.profileId = profileId - c.contentcategory = contentcategory - 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 *ContentCategoriesInsertCall) Fields(s ...googleapi.Field) *ContentCategoriesInsertCall { - 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 *ContentCategoriesInsertCall) Context(ctx context.Context) *ContentCategoriesInsertCall { - 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 *ContentCategoriesInsertCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *ContentCategoriesInsertCall) 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.contentcategory) - 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, "userprofiles/{profileId}/contentCategories") - 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{ - "profileId": strconv.FormatInt(c.profileId, 10), - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "dfareporting.contentCategories.insert" call. -// Exactly one of *ContentCategory or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *ContentCategory.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 *ContentCategoriesInsertCall) Do(opts ...googleapi.CallOption) (*ContentCategory, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &ContentCategory{ - 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": "Inserts a new content category.", - // "flatPath": "userprofiles/{profileId}/contentCategories", - // "httpMethod": "POST", - // "id": "dfareporting.contentCategories.insert", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/contentCategories", - // "request": { - // "$ref": "ContentCategory" - // }, - // "response": { - // "$ref": "ContentCategory" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.contentCategories.list": - -type ContentCategoriesListCall struct { - s *Service - profileId int64 - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} - -// List: Retrieves a list of content categories, possibly filtered. This -// method supports paging. -// -// - profileId: User profile ID associated with this request. -func (r *ContentCategoriesService) List(profileId int64) *ContentCategoriesListCall { - c := &ContentCategoriesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.profileId = profileId - return c -} - -// Ids sets the optional parameter "ids": Select only content categories -// with these IDs. -func (c *ContentCategoriesListCall) Ids(ids ...int64) *ContentCategoriesListCall { - var ids_ []string - for _, v := range ids { - ids_ = append(ids_, fmt.Sprint(v)) - } - c.urlParams_.SetMulti("ids", ids_) - return c -} - -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. -func (c *ContentCategoriesListCall) MaxResults(maxResults int64) *ContentCategoriesListCall { - c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) - return c -} - -// PageToken sets the optional parameter "pageToken": Value of the -// nextPageToken from the previous result page. -func (c *ContentCategoriesListCall) PageToken(pageToken string) *ContentCategoriesListCall { - c.urlParams_.Set("pageToken", pageToken) - return c -} - -// SearchString sets the optional parameter "searchString": Allows -// searching for objects by name or ID. Wildcards (*) are allowed. For -// example, "contentcategory*2015" will return objects with names like -// "contentcategory June 2015", "contentcategory April 2015", or simply -// "contentcategory 2015". Most of the searches also add wildcards -// implicitly at the start and the end of the search string. For -// example, a search string of "contentcategory" will match objects with -// name "my contentcategory", "contentcategory 2015", or simply -// "contentcategory". -func (c *ContentCategoriesListCall) SearchString(searchString string) *ContentCategoriesListCall { - c.urlParams_.Set("searchString", searchString) - return c -} - -// SortField sets the optional parameter "sortField": Field by which to -// sort the list. -// -// Possible values: -// -// "ID" (default) -// "NAME" -func (c *ContentCategoriesListCall) SortField(sortField string) *ContentCategoriesListCall { - c.urlParams_.Set("sortField", sortField) - return c -} - -// SortOrder sets the optional parameter "sortOrder": Order of sorted -// results. -// -// Possible values: -// -// "ASCENDING" (default) -// "DESCENDING" -func (c *ContentCategoriesListCall) SortOrder(sortOrder string) *ContentCategoriesListCall { - c.urlParams_.Set("sortOrder", sortOrder) - 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 *ContentCategoriesListCall) Fields(s ...googleapi.Field) *ContentCategoriesListCall { - 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 *ContentCategoriesListCall) IfNoneMatch(entityTag string) *ContentCategoriesListCall { - 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 *ContentCategoriesListCall) Context(ctx context.Context) *ContentCategoriesListCall { - 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 *ContentCategoriesListCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *ContentCategoriesListCall) 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, "userprofiles/{profileId}/contentCategories") - 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{ - "profileId": strconv.FormatInt(c.profileId, 10), - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "dfareporting.contentCategories.list" call. -// Exactly one of *ContentCategoriesListResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *ContentCategoriesListResponse.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 *ContentCategoriesListCall) Do(opts ...googleapi.CallOption) (*ContentCategoriesListResponse, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &ContentCategoriesListResponse{ - 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 a list of content categories, possibly filtered. This method supports paging.", - // "flatPath": "userprofiles/{profileId}/contentCategories", - // "httpMethod": "GET", - // "id": "dfareporting.contentCategories.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "ids": { - // "description": "Select only content categories with these IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "maxResults": { - // "default": "1000", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "1000", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Value of the nextPageToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "searchString": { - // "description": "Allows searching for objects by name or ID. Wildcards (*) are allowed. For example, \"contentcategory*2015\" will return objects with names like \"contentcategory June 2015\", \"contentcategory April 2015\", or simply \"contentcategory 2015\". Most of the searches also add wildcards implicitly at the start and the end of the search string. For example, a search string of \"contentcategory\" will match objects with name \"my contentcategory\", \"contentcategory 2015\", or simply \"contentcategory\".", - // "location": "query", - // "type": "string" - // }, - // "sortField": { - // "default": "ID", - // "description": "Field by which to sort the list.", - // "enum": [ - // "ID", - // "NAME" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "sortOrder": { - // "default": "ASCENDING", - // "description": "Order of sorted results.", - // "enum": [ - // "ASCENDING", - // "DESCENDING" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/contentCategories", - // "response": { - // "$ref": "ContentCategoriesListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// 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 *ContentCategoriesListCall) Pages(ctx context.Context, f func(*ContentCategoriesListResponse) 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 "dfareporting.contentCategories.patch": - -type ContentCategoriesPatchCall struct { - s *Service - profileId int64 - contentcategory *ContentCategory - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// Patch: Updates an existing content category. This method supports -// patch semantics. -// -// - id: ContentCategory ID. -// - profileId: User profile ID associated with this request. -func (r *ContentCategoriesService) Patch(profileId int64, id int64, contentcategory *ContentCategory) *ContentCategoriesPatchCall { - c := &ContentCategoriesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.profileId = profileId - c.urlParams_.Set("id", fmt.Sprint(id)) - c.contentcategory = contentcategory - 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 *ContentCategoriesPatchCall) Fields(s ...googleapi.Field) *ContentCategoriesPatchCall { - 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 *ContentCategoriesPatchCall) Context(ctx context.Context) *ContentCategoriesPatchCall { - 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 *ContentCategoriesPatchCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *ContentCategoriesPatchCall) 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.contentcategory) - 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, "userprofiles/{profileId}/contentCategories") - 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{ - "profileId": strconv.FormatInt(c.profileId, 10), - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "dfareporting.contentCategories.patch" call. -// Exactly one of *ContentCategory or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *ContentCategory.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 *ContentCategoriesPatchCall) Do(opts ...googleapi.CallOption) (*ContentCategory, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &ContentCategory{ - 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 an existing content category. This method supports patch semantics.", - // "flatPath": "userprofiles/{profileId}/contentCategories", - // "httpMethod": "PATCH", - // "id": "dfareporting.contentCategories.patch", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "ContentCategory ID.", - // "format": "int64", - // "location": "query", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/contentCategories", - // "request": { - // "$ref": "ContentCategory" - // }, - // "response": { - // "$ref": "ContentCategory" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.contentCategories.update": - -type ContentCategoriesUpdateCall struct { - s *Service - profileId int64 - contentcategory *ContentCategory - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// Update: Updates an existing content category. -// -// - profileId: User profile ID associated with this request. -func (r *ContentCategoriesService) Update(profileId int64, contentcategory *ContentCategory) *ContentCategoriesUpdateCall { - c := &ContentCategoriesUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.profileId = profileId - c.contentcategory = contentcategory - 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 *ContentCategoriesUpdateCall) Fields(s ...googleapi.Field) *ContentCategoriesUpdateCall { - 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 *ContentCategoriesUpdateCall) Context(ctx context.Context) *ContentCategoriesUpdateCall { - 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 *ContentCategoriesUpdateCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *ContentCategoriesUpdateCall) 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.contentcategory) - 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, "userprofiles/{profileId}/contentCategories") - urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("PUT", urls, body) - if err != nil { - return nil, err - } - req.Header = reqHeaders - googleapi.Expand(req.URL, map[string]string{ - "profileId": strconv.FormatInt(c.profileId, 10), - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "dfareporting.contentCategories.update" call. -// Exactly one of *ContentCategory or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *ContentCategory.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 *ContentCategoriesUpdateCall) Do(opts ...googleapi.CallOption) (*ContentCategory, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &ContentCategory{ - 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 an existing content category.", - // "flatPath": "userprofiles/{profileId}/contentCategories", - // "httpMethod": "PUT", - // "id": "dfareporting.contentCategories.update", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/contentCategories", - // "request": { - // "$ref": "ContentCategory" - // }, - // "response": { - // "$ref": "ContentCategory" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.conversions.batchinsert": - -type ConversionsBatchinsertCall struct { - s *Service - profileId int64 - conversionsbatchinsertrequest *ConversionsBatchInsertRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// Batchinsert: Inserts conversions. -// -// - profileId: User profile ID associated with this request. -func (r *ConversionsService) Batchinsert(profileId int64, conversionsbatchinsertrequest *ConversionsBatchInsertRequest) *ConversionsBatchinsertCall { - c := &ConversionsBatchinsertCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.profileId = profileId - c.conversionsbatchinsertrequest = conversionsbatchinsertrequest - 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 *ConversionsBatchinsertCall) Fields(s ...googleapi.Field) *ConversionsBatchinsertCall { - 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 *ConversionsBatchinsertCall) Context(ctx context.Context) *ConversionsBatchinsertCall { - 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 *ConversionsBatchinsertCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *ConversionsBatchinsertCall) 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.conversionsbatchinsertrequest) - 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, "userprofiles/{profileId}/conversions/batchinsert") - 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{ - "profileId": strconv.FormatInt(c.profileId, 10), - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "dfareporting.conversions.batchinsert" call. -// Exactly one of *ConversionsBatchInsertResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *ConversionsBatchInsertResponse.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 *ConversionsBatchinsertCall) Do(opts ...googleapi.CallOption) (*ConversionsBatchInsertResponse, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &ConversionsBatchInsertResponse{ - 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": "Inserts conversions.", - // "flatPath": "userprofiles/{profileId}/conversions/batchinsert", - // "httpMethod": "POST", - // "id": "dfareporting.conversions.batchinsert", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/conversions/batchinsert", - // "request": { - // "$ref": "ConversionsBatchInsertRequest" - // }, - // "response": { - // "$ref": "ConversionsBatchInsertResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/ddmconversions" - // ] - // } - -} - -// method id "dfareporting.conversions.batchupdate": - -type ConversionsBatchupdateCall struct { - s *Service - profileId int64 - conversionsbatchupdaterequest *ConversionsBatchUpdateRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// Batchupdate: Updates existing conversions. -// -// - profileId: User profile ID associated with this request. -func (r *ConversionsService) Batchupdate(profileId int64, conversionsbatchupdaterequest *ConversionsBatchUpdateRequest) *ConversionsBatchupdateCall { - c := &ConversionsBatchupdateCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.profileId = profileId - c.conversionsbatchupdaterequest = conversionsbatchupdaterequest - 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 *ConversionsBatchupdateCall) Fields(s ...googleapi.Field) *ConversionsBatchupdateCall { - 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 *ConversionsBatchupdateCall) Context(ctx context.Context) *ConversionsBatchupdateCall { - 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 *ConversionsBatchupdateCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *ConversionsBatchupdateCall) 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.conversionsbatchupdaterequest) - 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, "userprofiles/{profileId}/conversions/batchupdate") - 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{ - "profileId": strconv.FormatInt(c.profileId, 10), - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "dfareporting.conversions.batchupdate" call. -// Exactly one of *ConversionsBatchUpdateResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *ConversionsBatchUpdateResponse.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 *ConversionsBatchupdateCall) Do(opts ...googleapi.CallOption) (*ConversionsBatchUpdateResponse, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &ConversionsBatchUpdateResponse{ - 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 existing conversions.", - // "flatPath": "userprofiles/{profileId}/conversions/batchupdate", - // "httpMethod": "POST", - // "id": "dfareporting.conversions.batchupdate", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/conversions/batchupdate", - // "request": { - // "$ref": "ConversionsBatchUpdateRequest" - // }, - // "response": { - // "$ref": "ConversionsBatchUpdateResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/ddmconversions" - // ] - // } - -} - -// method id "dfareporting.countries.get": - -type CountriesGetCall struct { - s *Service - profileId int64 - dartId int64 - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} - -// Get: Gets one country by ID. -// -// - dartId: Country DART ID. -// - profileId: User profile ID associated with this request. -func (r *CountriesService) Get(profileId int64, dartId int64) *CountriesGetCall { - c := &CountriesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.profileId = profileId - c.dartId = dartId - 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 *CountriesGetCall) Fields(s ...googleapi.Field) *CountriesGetCall { - 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 *CountriesGetCall) IfNoneMatch(entityTag string) *CountriesGetCall { - 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 *CountriesGetCall) Context(ctx context.Context) *CountriesGetCall { - 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 *CountriesGetCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *CountriesGetCall) 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, "userprofiles/{profileId}/countries/{dartId}") - 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{ - "profileId": strconv.FormatInt(c.profileId, 10), - "dartId": strconv.FormatInt(c.dartId, 10), - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "dfareporting.countries.get" call. -// Exactly one of *Country or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Country.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 *CountriesGetCall) Do(opts ...googleapi.CallOption) (*Country, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &Country{ - 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 one country by ID.", - // "flatPath": "userprofiles/{profileId}/countries/{dartId}", - // "httpMethod": "GET", - // "id": "dfareporting.countries.get", - // "parameterOrder": [ - // "profileId", - // "dartId" - // ], - // "parameters": { - // "dartId": { - // "description": "Country DART ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/countries/{dartId}", - // "response": { - // "$ref": "Country" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.countries.list": - -type CountriesListCall struct { - s *Service - profileId int64 - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} - -// List: Retrieves a list of countries. -// -// - profileId: User profile ID associated with this request. -func (r *CountriesService) List(profileId int64) *CountriesListCall { - c := &CountriesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.profileId = profileId - 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 *CountriesListCall) Fields(s ...googleapi.Field) *CountriesListCall { - 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 *CountriesListCall) IfNoneMatch(entityTag string) *CountriesListCall { - 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 *CountriesListCall) Context(ctx context.Context) *CountriesListCall { - 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 *CountriesListCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *CountriesListCall) 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, "userprofiles/{profileId}/countries") - 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{ - "profileId": strconv.FormatInt(c.profileId, 10), - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "dfareporting.countries.list" call. -// Exactly one of *CountriesListResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *CountriesListResponse.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 *CountriesListCall) Do(opts ...googleapi.CallOption) (*CountriesListResponse, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &CountriesListResponse{ - 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 a list of countries.", - // "flatPath": "userprofiles/{profileId}/countries", - // "httpMethod": "GET", - // "id": "dfareporting.countries.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/countries", - // "response": { - // "$ref": "CountriesListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.creativeAssets.insert": - -type CreativeAssetsInsertCall struct { - s *Service - profileId int64 - advertiserId int64 - creativeassetmetadata *CreativeAssetMetadata - urlParams_ gensupport.URLParams - mediaInfo_ *gensupport.MediaInfo - ctx_ context.Context - header_ http.Header -} - -// Insert: Inserts a new creative asset. -// -// - advertiserId: Advertiser ID of this creative. This is a required -// field. -// - profileId: User profile ID associated with this request. -func (r *CreativeAssetsService) Insert(profileId int64, advertiserId int64, creativeassetmetadata *CreativeAssetMetadata) *CreativeAssetsInsertCall { - c := &CreativeAssetsInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.profileId = profileId - c.advertiserId = advertiserId - c.creativeassetmetadata = creativeassetmetadata - return c -} - -// Media specifies the media to upload in one or more chunks. The chunk -// size may be controlled by supplying a MediaOption generated by -// googleapi.ChunkSize. The chunk size defaults to -// googleapi.DefaultUploadChunkSize.The Content-Type header used in the -// upload request will be determined by sniffing the contents of r, -// unless a MediaOption generated by googleapi.ContentType is -// supplied. -// At most one of Media and ResumableMedia may be set. -func (c *CreativeAssetsInsertCall) Media(r io.Reader, options ...googleapi.MediaOption) *CreativeAssetsInsertCall { - c.mediaInfo_ = gensupport.NewInfoFromMedia(r, options) - return c -} - -// ResumableMedia specifies the media to upload in chunks and can be -// canceled with ctx. -// -// Deprecated: use Media instead. -// -// At most one of Media and ResumableMedia may be set. mediaType -// identifies the MIME media type of the upload, such as "image/png". If -// mediaType is "", it will be auto-detected. The provided ctx will -// supersede any context previously provided to the Context method. -func (c *CreativeAssetsInsertCall) ResumableMedia(ctx context.Context, r io.ReaderAt, size int64, mediaType string) *CreativeAssetsInsertCall { - c.ctx_ = ctx - c.mediaInfo_ = gensupport.NewInfoFromResumableMedia(r, size, mediaType) - return c -} - -// ProgressUpdater provides a callback function that will be called -// after every chunk. It should be a low-latency function in order to -// not slow down the upload operation. This should only be called when -// using ResumableMedia (as opposed to Media). -func (c *CreativeAssetsInsertCall) ProgressUpdater(pu googleapi.ProgressUpdater) *CreativeAssetsInsertCall { - c.mediaInfo_.SetProgressUpdater(pu) - 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 *CreativeAssetsInsertCall) Fields(s ...googleapi.Field) *CreativeAssetsInsertCall { - 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. -// This context will supersede any context previously provided to the -// ResumableMedia method. -func (c *CreativeAssetsInsertCall) Context(ctx context.Context) *CreativeAssetsInsertCall { - 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 *CreativeAssetsInsertCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *CreativeAssetsInsertCall) 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.creativeassetmetadata) - 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, "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()) - } - if body == nil { - body = new(bytes.Buffer) - reqHeaders.Set("Content-Type", "application/json") - } - body, getBody, cleanup := c.mediaInfo_.UploadRequest(reqHeaders, body) - defer cleanup() - urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) - if err != nil { - return nil, err - } - req.Header = reqHeaders - req.GetBody = getBody - googleapi.Expand(req.URL, map[string]string{ - "profileId": strconv.FormatInt(c.profileId, 10), - "advertiserId": strconv.FormatInt(c.advertiserId, 10), - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "dfareporting.creativeAssets.insert" call. -// Exactly one of *CreativeAssetMetadata or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *CreativeAssetMetadata.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 *CreativeAssetsInsertCall) Do(opts ...googleapi.CallOption) (*CreativeAssetMetadata, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - rx := c.mediaInfo_.ResumableUpload(res.Header.Get("Location")) - if rx != nil { - rx.Client = c.s.client - rx.UserAgent = c.s.userAgent() - ctx := c.ctx_ - if ctx == nil { - ctx = context.TODO() - } - res, err = rx.Upload(ctx) - if err != nil { - return nil, err - } - defer res.Body.Close() - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - } - ret := &CreativeAssetMetadata{ - 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": "Inserts a new creative asset.", - // "flatPath": "userprofiles/{profileId}/creativeAssets/{advertiserId}/creativeAssets", - // "httpMethod": "POST", - // "id": "dfareporting.creativeAssets.insert", - // "mediaUpload": { - // "accept": [ - // "*/*" - // ], - // "maxSize": "1073741824", - // "protocols": { - // "simple": { - // "multipart": true, - // "path": "/upload/dfareporting/v3.5/userprofiles/{profileId}/creativeAssets/{advertiserId}/creativeAssets" - // } - // } - // }, - // "parameterOrder": [ - // "profileId", - // "advertiserId" - // ], - // "parameters": { - // "advertiserId": { - // "description": "Advertiser ID of this creative. This is a required field.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/creativeAssets/{advertiserId}/creativeAssets", - // "request": { - // "$ref": "CreativeAssetMetadata" - // }, - // "response": { - // "$ref": "CreativeAssetMetadata" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ], - // "supportsMediaUpload": true - // } - -} - -// method id "dfareporting.creativeFieldValues.delete": - -type CreativeFieldValuesDeleteCall struct { - s *Service - profileId int64 - creativeFieldId int64 - id int64 - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// Delete: Deletes an existing creative field value. -// -// - creativeFieldId: Creative field ID for this creative field value. -// - id: Creative Field Value ID. -// - profileId: User profile ID associated with this request. -func (r *CreativeFieldValuesService) Delete(profileId int64, creativeFieldId int64, id int64) *CreativeFieldValuesDeleteCall { - c := &CreativeFieldValuesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.profileId = profileId - c.creativeFieldId = creativeFieldId - c.id = id - 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 *CreativeFieldValuesDeleteCall) Fields(s ...googleapi.Field) *CreativeFieldValuesDeleteCall { - 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 *CreativeFieldValuesDeleteCall) Context(ctx context.Context) *CreativeFieldValuesDeleteCall { - 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 *CreativeFieldValuesDeleteCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *CreativeFieldValuesDeleteCall) 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, "userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues/{id}") - 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{ - "profileId": strconv.FormatInt(c.profileId, 10), - "creativeFieldId": strconv.FormatInt(c.creativeFieldId, 10), - "id": strconv.FormatInt(c.id, 10), - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "dfareporting.creativeFieldValues.delete" call. -func (c *CreativeFieldValuesDeleteCall) 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 gensupport.WrapError(err) - } - return nil - // { - // "description": "Deletes an existing creative field value.", - // "flatPath": "userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues/{id}", - // "httpMethod": "DELETE", - // "id": "dfareporting.creativeFieldValues.delete", - // "parameterOrder": [ - // "profileId", - // "creativeFieldId", - // "id" - // ], - // "parameters": { - // "creativeFieldId": { - // "description": "Creative field ID for this creative field value.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "id": { - // "description": "Creative Field Value ID", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues/{id}", - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.creativeFieldValues.get": - -type CreativeFieldValuesGetCall struct { - s *Service - profileId int64 - creativeFieldId int64 - id int64 - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} - -// Get: Gets one creative field value by ID. -// -// - creativeFieldId: Creative field ID for this creative field value. -// - id: Creative Field Value ID. -// - profileId: User profile ID associated with this request. -func (r *CreativeFieldValuesService) Get(profileId int64, creativeFieldId int64, id int64) *CreativeFieldValuesGetCall { - c := &CreativeFieldValuesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.profileId = profileId - c.creativeFieldId = creativeFieldId - c.id = id - 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 *CreativeFieldValuesGetCall) Fields(s ...googleapi.Field) *CreativeFieldValuesGetCall { - 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 *CreativeFieldValuesGetCall) IfNoneMatch(entityTag string) *CreativeFieldValuesGetCall { - 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 *CreativeFieldValuesGetCall) Context(ctx context.Context) *CreativeFieldValuesGetCall { - 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 *CreativeFieldValuesGetCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *CreativeFieldValuesGetCall) 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, "userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues/{id}") - 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{ - "profileId": strconv.FormatInt(c.profileId, 10), - "creativeFieldId": strconv.FormatInt(c.creativeFieldId, 10), - "id": strconv.FormatInt(c.id, 10), - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "dfareporting.creativeFieldValues.get" call. -// Exactly one of *CreativeFieldValue or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *CreativeFieldValue.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 *CreativeFieldValuesGetCall) Do(opts ...googleapi.CallOption) (*CreativeFieldValue, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &CreativeFieldValue{ - 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 one creative field value by ID.", - // "flatPath": "userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues/{id}", - // "httpMethod": "GET", - // "id": "dfareporting.creativeFieldValues.get", - // "parameterOrder": [ - // "profileId", - // "creativeFieldId", - // "id" - // ], - // "parameters": { - // "creativeFieldId": { - // "description": "Creative field ID for this creative field value.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "id": { - // "description": "Creative Field Value ID", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues/{id}", - // "response": { - // "$ref": "CreativeFieldValue" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.creativeFieldValues.insert": - -type CreativeFieldValuesInsertCall struct { - s *Service - profileId int64 - creativeFieldId int64 - creativefieldvalue *CreativeFieldValue - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// Insert: Inserts a new creative field value. -// -// - creativeFieldId: Creative field ID for this creative field value. -// - profileId: User profile ID associated with this request. -func (r *CreativeFieldValuesService) Insert(profileId int64, creativeFieldId int64, creativefieldvalue *CreativeFieldValue) *CreativeFieldValuesInsertCall { - c := &CreativeFieldValuesInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.profileId = profileId - c.creativeFieldId = creativeFieldId - c.creativefieldvalue = creativefieldvalue - 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 *CreativeFieldValuesInsertCall) Fields(s ...googleapi.Field) *CreativeFieldValuesInsertCall { - 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 *CreativeFieldValuesInsertCall) Context(ctx context.Context) *CreativeFieldValuesInsertCall { - 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 *CreativeFieldValuesInsertCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *CreativeFieldValuesInsertCall) 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.creativefieldvalue) - 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, "userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues") - 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{ - "profileId": strconv.FormatInt(c.profileId, 10), - "creativeFieldId": strconv.FormatInt(c.creativeFieldId, 10), - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "dfareporting.creativeFieldValues.insert" call. -// Exactly one of *CreativeFieldValue or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *CreativeFieldValue.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 *CreativeFieldValuesInsertCall) Do(opts ...googleapi.CallOption) (*CreativeFieldValue, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &CreativeFieldValue{ - 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": "Inserts a new creative field value.", - // "flatPath": "userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues", - // "httpMethod": "POST", - // "id": "dfareporting.creativeFieldValues.insert", - // "parameterOrder": [ - // "profileId", - // "creativeFieldId" - // ], - // "parameters": { - // "creativeFieldId": { - // "description": "Creative field ID for this creative field value.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues", - // "request": { - // "$ref": "CreativeFieldValue" - // }, - // "response": { - // "$ref": "CreativeFieldValue" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.creativeFieldValues.list": - -type CreativeFieldValuesListCall struct { - s *Service - profileId int64 - creativeFieldId int64 - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} - -// List: Retrieves a list of creative field values, possibly filtered. -// This method supports paging. -// -// - creativeFieldId: Creative field ID for this creative field value. -// - profileId: User profile ID associated with this request. -func (r *CreativeFieldValuesService) List(profileId int64, creativeFieldId int64) *CreativeFieldValuesListCall { - c := &CreativeFieldValuesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.profileId = profileId - c.creativeFieldId = creativeFieldId - return c -} - -// Ids sets the optional parameter "ids": Select only creative field -// values with these IDs. -func (c *CreativeFieldValuesListCall) Ids(ids ...int64) *CreativeFieldValuesListCall { - var ids_ []string - for _, v := range ids { - ids_ = append(ids_, fmt.Sprint(v)) - } - c.urlParams_.SetMulti("ids", ids_) - return c -} - -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. -func (c *CreativeFieldValuesListCall) MaxResults(maxResults int64) *CreativeFieldValuesListCall { - c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) - return c -} - -// PageToken sets the optional parameter "pageToken": Value of the -// nextPageToken from the previous result page. -func (c *CreativeFieldValuesListCall) PageToken(pageToken string) *CreativeFieldValuesListCall { - c.urlParams_.Set("pageToken", pageToken) - return c -} - -// SearchString sets the optional parameter "searchString": Allows -// searching for creative field values by their values. Wildcards (e.g. -// *) are not allowed. -func (c *CreativeFieldValuesListCall) SearchString(searchString string) *CreativeFieldValuesListCall { - c.urlParams_.Set("searchString", searchString) - return c -} - -// SortField sets the optional parameter "sortField": Field by which to -// sort the list. -// -// Possible values: -// -// "ID" (default) -// "VALUE" -func (c *CreativeFieldValuesListCall) SortField(sortField string) *CreativeFieldValuesListCall { - c.urlParams_.Set("sortField", sortField) - return c -} - -// SortOrder sets the optional parameter "sortOrder": Order of sorted -// results. -// -// Possible values: -// -// "ASCENDING" (default) -// "DESCENDING" -func (c *CreativeFieldValuesListCall) SortOrder(sortOrder string) *CreativeFieldValuesListCall { - c.urlParams_.Set("sortOrder", sortOrder) - 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 *CreativeFieldValuesListCall) Fields(s ...googleapi.Field) *CreativeFieldValuesListCall { - 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 *CreativeFieldValuesListCall) IfNoneMatch(entityTag string) *CreativeFieldValuesListCall { - 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 *CreativeFieldValuesListCall) Context(ctx context.Context) *CreativeFieldValuesListCall { - 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 *CreativeFieldValuesListCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *CreativeFieldValuesListCall) 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, "userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues") - 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{ - "profileId": strconv.FormatInt(c.profileId, 10), - "creativeFieldId": strconv.FormatInt(c.creativeFieldId, 10), - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "dfareporting.creativeFieldValues.list" call. -// Exactly one of *CreativeFieldValuesListResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *CreativeFieldValuesListResponse.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 *CreativeFieldValuesListCall) Do(opts ...googleapi.CallOption) (*CreativeFieldValuesListResponse, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &CreativeFieldValuesListResponse{ - 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 a list of creative field values, possibly filtered. This method supports paging.", - // "flatPath": "userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues", - // "httpMethod": "GET", - // "id": "dfareporting.creativeFieldValues.list", - // "parameterOrder": [ - // "profileId", - // "creativeFieldId" - // ], - // "parameters": { - // "creativeFieldId": { - // "description": "Creative field ID for this creative field value.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "ids": { - // "description": "Select only creative field values with these IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "maxResults": { - // "default": "1000", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "1000", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Value of the nextPageToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "searchString": { - // "description": "Allows searching for creative field values by their values. Wildcards (e.g. *) are not allowed.", - // "location": "query", - // "type": "string" - // }, - // "sortField": { - // "default": "ID", - // "description": "Field by which to sort the list.", - // "enum": [ - // "ID", - // "VALUE" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "sortOrder": { - // "default": "ASCENDING", - // "description": "Order of sorted results.", - // "enum": [ - // "ASCENDING", - // "DESCENDING" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues", - // "response": { - // "$ref": "CreativeFieldValuesListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// 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 *CreativeFieldValuesListCall) Pages(ctx context.Context, f func(*CreativeFieldValuesListResponse) 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 "dfareporting.creativeFieldValues.patch": - -type CreativeFieldValuesPatchCall struct { - s *Service - profileId int64 - creativeFieldId int64 - creativefieldvalue *CreativeFieldValue - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// Patch: Updates an existing creative field value. This method supports -// patch semantics. -// -// - creativeFieldId: CreativeField ID. -// - id: CreativeFieldValue ID. -// - profileId: User profile ID associated with this request. -func (r *CreativeFieldValuesService) Patch(profileId int64, creativeFieldId int64, id int64, creativefieldvalue *CreativeFieldValue) *CreativeFieldValuesPatchCall { - c := &CreativeFieldValuesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.profileId = profileId - c.creativeFieldId = creativeFieldId - c.urlParams_.Set("id", fmt.Sprint(id)) - c.creativefieldvalue = creativefieldvalue - 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 *CreativeFieldValuesPatchCall) Fields(s ...googleapi.Field) *CreativeFieldValuesPatchCall { - 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 *CreativeFieldValuesPatchCall) Context(ctx context.Context) *CreativeFieldValuesPatchCall { - 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 *CreativeFieldValuesPatchCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *CreativeFieldValuesPatchCall) 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.creativefieldvalue) - 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, "userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues") - 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{ - "profileId": strconv.FormatInt(c.profileId, 10), - "creativeFieldId": strconv.FormatInt(c.creativeFieldId, 10), - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "dfareporting.creativeFieldValues.patch" call. -// Exactly one of *CreativeFieldValue or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *CreativeFieldValue.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 *CreativeFieldValuesPatchCall) Do(opts ...googleapi.CallOption) (*CreativeFieldValue, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &CreativeFieldValue{ - 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 an existing creative field value. This method supports patch semantics.", - // "flatPath": "userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues", - // "httpMethod": "PATCH", - // "id": "dfareporting.creativeFieldValues.patch", - // "parameterOrder": [ - // "profileId", - // "creativeFieldId", - // "id" - // ], - // "parameters": { - // "creativeFieldId": { - // "description": "CreativeField ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "id": { - // "description": "CreativeFieldValue ID.", - // "format": "int64", - // "location": "query", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues", - // "request": { - // "$ref": "CreativeFieldValue" - // }, - // "response": { - // "$ref": "CreativeFieldValue" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.creativeFieldValues.update": - -type CreativeFieldValuesUpdateCall struct { - s *Service - profileId int64 - creativeFieldId int64 - creativefieldvalue *CreativeFieldValue - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// Update: Updates an existing creative field value. -// -// - creativeFieldId: Creative field ID for this creative field value. -// - profileId: User profile ID associated with this request. -func (r *CreativeFieldValuesService) Update(profileId int64, creativeFieldId int64, creativefieldvalue *CreativeFieldValue) *CreativeFieldValuesUpdateCall { - c := &CreativeFieldValuesUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.profileId = profileId - c.creativeFieldId = creativeFieldId - c.creativefieldvalue = creativefieldvalue - 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 *CreativeFieldValuesUpdateCall) Fields(s ...googleapi.Field) *CreativeFieldValuesUpdateCall { - 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 *CreativeFieldValuesUpdateCall) Context(ctx context.Context) *CreativeFieldValuesUpdateCall { - 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 *CreativeFieldValuesUpdateCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *CreativeFieldValuesUpdateCall) 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.creativefieldvalue) - 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, "userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues") - urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("PUT", urls, body) - if err != nil { - return nil, err - } - req.Header = reqHeaders - googleapi.Expand(req.URL, map[string]string{ - "profileId": strconv.FormatInt(c.profileId, 10), - "creativeFieldId": strconv.FormatInt(c.creativeFieldId, 10), - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "dfareporting.creativeFieldValues.update" call. -// Exactly one of *CreativeFieldValue or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *CreativeFieldValue.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 *CreativeFieldValuesUpdateCall) Do(opts ...googleapi.CallOption) (*CreativeFieldValue, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &CreativeFieldValue{ - 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 an existing creative field value.", - // "flatPath": "userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues", - // "httpMethod": "PUT", - // "id": "dfareporting.creativeFieldValues.update", - // "parameterOrder": [ - // "profileId", - // "creativeFieldId" - // ], - // "parameters": { - // "creativeFieldId": { - // "description": "Creative field ID for this creative field value.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues", - // "request": { - // "$ref": "CreativeFieldValue" - // }, - // "response": { - // "$ref": "CreativeFieldValue" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.creativeFields.delete": - -type CreativeFieldsDeleteCall struct { - s *Service - profileId int64 - id int64 - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// Delete: Deletes an existing creative field. -// -// - id: Creative Field ID. -// - profileId: User profile ID associated with this request. -func (r *CreativeFieldsService) Delete(profileId int64, id int64) *CreativeFieldsDeleteCall { - c := &CreativeFieldsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.profileId = profileId - c.id = id - 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 *CreativeFieldsDeleteCall) Fields(s ...googleapi.Field) *CreativeFieldsDeleteCall { - 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 *CreativeFieldsDeleteCall) Context(ctx context.Context) *CreativeFieldsDeleteCall { - 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 *CreativeFieldsDeleteCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *CreativeFieldsDeleteCall) 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, "userprofiles/{profileId}/creativeFields/{id}") - 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{ - "profileId": strconv.FormatInt(c.profileId, 10), - "id": strconv.FormatInt(c.id, 10), - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "dfareporting.creativeFields.delete" call. -func (c *CreativeFieldsDeleteCall) 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 gensupport.WrapError(err) - } - return nil - // { - // "description": "Deletes an existing creative field.", - // "flatPath": "userprofiles/{profileId}/creativeFields/{id}", - // "httpMethod": "DELETE", - // "id": "dfareporting.creativeFields.delete", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Creative Field ID", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/creativeFields/{id}", - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.creativeFields.get": - -type CreativeFieldsGetCall struct { - s *Service - profileId int64 - id int64 - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} - -// Get: Gets one creative field by ID. -// -// - id: Creative Field ID. -// - profileId: User profile ID associated with this request. -func (r *CreativeFieldsService) Get(profileId int64, id int64) *CreativeFieldsGetCall { - c := &CreativeFieldsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.profileId = profileId - c.id = id - 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 *CreativeFieldsGetCall) Fields(s ...googleapi.Field) *CreativeFieldsGetCall { - 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 *CreativeFieldsGetCall) IfNoneMatch(entityTag string) *CreativeFieldsGetCall { - 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 *CreativeFieldsGetCall) Context(ctx context.Context) *CreativeFieldsGetCall { - 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 *CreativeFieldsGetCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *CreativeFieldsGetCall) 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, "userprofiles/{profileId}/creativeFields/{id}") - 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{ - "profileId": strconv.FormatInt(c.profileId, 10), - "id": strconv.FormatInt(c.id, 10), - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "dfareporting.creativeFields.get" call. -// Exactly one of *CreativeField or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *CreativeField.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 *CreativeFieldsGetCall) Do(opts ...googleapi.CallOption) (*CreativeField, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &CreativeField{ - 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 one creative field by ID.", - // "flatPath": "userprofiles/{profileId}/creativeFields/{id}", - // "httpMethod": "GET", - // "id": "dfareporting.creativeFields.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Creative Field ID", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/creativeFields/{id}", - // "response": { - // "$ref": "CreativeField" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.creativeFields.insert": - -type CreativeFieldsInsertCall struct { - s *Service - profileId int64 - creativefield *CreativeField - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// Insert: Inserts a new creative field. -// -// - profileId: User profile ID associated with this request. -func (r *CreativeFieldsService) Insert(profileId int64, creativefield *CreativeField) *CreativeFieldsInsertCall { - c := &CreativeFieldsInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.profileId = profileId - c.creativefield = creativefield - 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 *CreativeFieldsInsertCall) Fields(s ...googleapi.Field) *CreativeFieldsInsertCall { - 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 *CreativeFieldsInsertCall) Context(ctx context.Context) *CreativeFieldsInsertCall { - 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 *CreativeFieldsInsertCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *CreativeFieldsInsertCall) 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.creativefield) - 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, "userprofiles/{profileId}/creativeFields") - 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{ - "profileId": strconv.FormatInt(c.profileId, 10), - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "dfareporting.creativeFields.insert" call. -// Exactly one of *CreativeField or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *CreativeField.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 *CreativeFieldsInsertCall) Do(opts ...googleapi.CallOption) (*CreativeField, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &CreativeField{ - 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": "Inserts a new creative field.", - // "flatPath": "userprofiles/{profileId}/creativeFields", - // "httpMethod": "POST", - // "id": "dfareporting.creativeFields.insert", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/creativeFields", - // "request": { - // "$ref": "CreativeField" - // }, - // "response": { - // "$ref": "CreativeField" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.creativeFields.list": - -type CreativeFieldsListCall struct { - s *Service - profileId int64 - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} - -// List: Retrieves a list of creative fields, possibly filtered. This -// method supports paging. -// -// - profileId: User profile ID associated with this request. -func (r *CreativeFieldsService) List(profileId int64) *CreativeFieldsListCall { - c := &CreativeFieldsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.profileId = profileId - return c -} - -// AdvertiserIds sets the optional parameter "advertiserIds": Select -// only creative fields that belong to these advertisers. -func (c *CreativeFieldsListCall) AdvertiserIds(advertiserIds ...int64) *CreativeFieldsListCall { - var advertiserIds_ []string - for _, v := range advertiserIds { - advertiserIds_ = append(advertiserIds_, fmt.Sprint(v)) - } - c.urlParams_.SetMulti("advertiserIds", advertiserIds_) - return c -} - -// Ids sets the optional parameter "ids": Select only creative fields -// with these IDs. -func (c *CreativeFieldsListCall) Ids(ids ...int64) *CreativeFieldsListCall { - var ids_ []string - for _, v := range ids { - ids_ = append(ids_, fmt.Sprint(v)) - } - c.urlParams_.SetMulti("ids", ids_) - return c -} - -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. -func (c *CreativeFieldsListCall) MaxResults(maxResults int64) *CreativeFieldsListCall { - c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) - return c -} - -// PageToken sets the optional parameter "pageToken": Value of the -// nextPageToken from the previous result page. -func (c *CreativeFieldsListCall) PageToken(pageToken string) *CreativeFieldsListCall { - c.urlParams_.Set("pageToken", pageToken) - return c -} - -// SearchString sets the optional parameter "searchString": Allows -// searching for creative fields by name or ID. Wildcards (*) are -// allowed. For example, "creativefield*2015" will return creative -// fields with names like "creativefield June 2015", "creativefield -// April 2015", or simply "creativefield 2015". Most of the searches -// also add wild-cards implicitly at the start and the end of the search -// string. For example, a search string of "creativefield" will match -// creative fields with the name "my creativefield", "creativefield -// 2015", or simply "creativefield". -func (c *CreativeFieldsListCall) SearchString(searchString string) *CreativeFieldsListCall { - c.urlParams_.Set("searchString", searchString) - return c -} - -// SortField sets the optional parameter "sortField": Field by which to -// sort the list. -// -// Possible values: -// -// "ID" (default) -// "NAME" -func (c *CreativeFieldsListCall) SortField(sortField string) *CreativeFieldsListCall { - c.urlParams_.Set("sortField", sortField) - return c -} - -// SortOrder sets the optional parameter "sortOrder": Order of sorted -// results. -// -// Possible values: -// -// "ASCENDING" (default) -// "DESCENDING" -func (c *CreativeFieldsListCall) SortOrder(sortOrder string) *CreativeFieldsListCall { - c.urlParams_.Set("sortOrder", sortOrder) - 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 *CreativeFieldsListCall) Fields(s ...googleapi.Field) *CreativeFieldsListCall { - 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 *CreativeFieldsListCall) IfNoneMatch(entityTag string) *CreativeFieldsListCall { - 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 *CreativeFieldsListCall) Context(ctx context.Context) *CreativeFieldsListCall { - 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 *CreativeFieldsListCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *CreativeFieldsListCall) 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, "userprofiles/{profileId}/creativeFields") - 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{ - "profileId": strconv.FormatInt(c.profileId, 10), - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "dfareporting.creativeFields.list" call. -// Exactly one of *CreativeFieldsListResponse or error will be non-nil. -// Any non-2xx status code is an error. Response headers are in either -// *CreativeFieldsListResponse.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 *CreativeFieldsListCall) Do(opts ...googleapi.CallOption) (*CreativeFieldsListResponse, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &CreativeFieldsListResponse{ - 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 a list of creative fields, possibly filtered. This method supports paging.", - // "flatPath": "userprofiles/{profileId}/creativeFields", - // "httpMethod": "GET", - // "id": "dfareporting.creativeFields.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "advertiserIds": { - // "description": "Select only creative fields that belong to these advertisers.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "ids": { - // "description": "Select only creative fields with these IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "maxResults": { - // "default": "1000", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "1000", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Value of the nextPageToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "searchString": { - // "description": "Allows searching for creative fields by name or ID. Wildcards (*) are allowed. For example, \"creativefield*2015\" will return creative fields with names like \"creativefield June 2015\", \"creativefield April 2015\", or simply \"creativefield 2015\". Most of the searches also add wild-cards implicitly at the start and the end of the search string. For example, a search string of \"creativefield\" will match creative fields with the name \"my creativefield\", \"creativefield 2015\", or simply \"creativefield\".", - // "location": "query", - // "type": "string" - // }, - // "sortField": { - // "default": "ID", - // "description": "Field by which to sort the list.", - // "enum": [ - // "ID", - // "NAME" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "sortOrder": { - // "default": "ASCENDING", - // "description": "Order of sorted results.", - // "enum": [ - // "ASCENDING", - // "DESCENDING" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/creativeFields", - // "response": { - // "$ref": "CreativeFieldsListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// 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 *CreativeFieldsListCall) Pages(ctx context.Context, f func(*CreativeFieldsListResponse) 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 "dfareporting.creativeFields.patch": - -type CreativeFieldsPatchCall struct { - s *Service - profileId int64 - creativefield *CreativeField - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// Patch: Updates an existing creative field. This method supports patch -// semantics. -// -// - id: CreativeField ID. -// - profileId: User profile ID associated with this request. -func (r *CreativeFieldsService) Patch(profileId int64, id int64, creativefield *CreativeField) *CreativeFieldsPatchCall { - c := &CreativeFieldsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.profileId = profileId - c.urlParams_.Set("id", fmt.Sprint(id)) - c.creativefield = creativefield - 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 *CreativeFieldsPatchCall) Fields(s ...googleapi.Field) *CreativeFieldsPatchCall { - 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 *CreativeFieldsPatchCall) Context(ctx context.Context) *CreativeFieldsPatchCall { - 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 *CreativeFieldsPatchCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *CreativeFieldsPatchCall) 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.creativefield) - 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, "userprofiles/{profileId}/creativeFields") - 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{ - "profileId": strconv.FormatInt(c.profileId, 10), - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "dfareporting.creativeFields.patch" call. -// Exactly one of *CreativeField or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *CreativeField.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 *CreativeFieldsPatchCall) Do(opts ...googleapi.CallOption) (*CreativeField, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &CreativeField{ - 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 an existing creative field. This method supports patch semantics.", - // "flatPath": "userprofiles/{profileId}/creativeFields", - // "httpMethod": "PATCH", - // "id": "dfareporting.creativeFields.patch", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "CreativeField ID.", - // "format": "int64", - // "location": "query", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/creativeFields", - // "request": { - // "$ref": "CreativeField" - // }, - // "response": { - // "$ref": "CreativeField" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.creativeFields.update": - -type CreativeFieldsUpdateCall struct { - s *Service - profileId int64 - creativefield *CreativeField - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// Update: Updates an existing creative field. -// -// - profileId: User profile ID associated with this request. -func (r *CreativeFieldsService) Update(profileId int64, creativefield *CreativeField) *CreativeFieldsUpdateCall { - c := &CreativeFieldsUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.profileId = profileId - c.creativefield = creativefield - 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 *CreativeFieldsUpdateCall) Fields(s ...googleapi.Field) *CreativeFieldsUpdateCall { - 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 *CreativeFieldsUpdateCall) Context(ctx context.Context) *CreativeFieldsUpdateCall { - 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 *CreativeFieldsUpdateCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *CreativeFieldsUpdateCall) 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.creativefield) - 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, "userprofiles/{profileId}/creativeFields") - urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("PUT", urls, body) - if err != nil { - return nil, err - } - req.Header = reqHeaders - googleapi.Expand(req.URL, map[string]string{ - "profileId": strconv.FormatInt(c.profileId, 10), - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "dfareporting.creativeFields.update" call. -// Exactly one of *CreativeField or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *CreativeField.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 *CreativeFieldsUpdateCall) Do(opts ...googleapi.CallOption) (*CreativeField, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &CreativeField{ - 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 an existing creative field.", - // "flatPath": "userprofiles/{profileId}/creativeFields", - // "httpMethod": "PUT", - // "id": "dfareporting.creativeFields.update", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/creativeFields", - // "request": { - // "$ref": "CreativeField" - // }, - // "response": { - // "$ref": "CreativeField" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.creativeGroups.get": - -type CreativeGroupsGetCall struct { - s *Service - profileId int64 - id int64 - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} - -// Get: Gets one creative group by ID. -// -// - id: Creative group ID. -// - profileId: User profile ID associated with this request. -func (r *CreativeGroupsService) Get(profileId int64, id int64) *CreativeGroupsGetCall { - c := &CreativeGroupsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.profileId = profileId - c.id = id - 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 *CreativeGroupsGetCall) Fields(s ...googleapi.Field) *CreativeGroupsGetCall { - 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 *CreativeGroupsGetCall) IfNoneMatch(entityTag string) *CreativeGroupsGetCall { - 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 *CreativeGroupsGetCall) Context(ctx context.Context) *CreativeGroupsGetCall { - 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 *CreativeGroupsGetCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *CreativeGroupsGetCall) 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, "userprofiles/{profileId}/creativeGroups/{id}") - 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{ - "profileId": strconv.FormatInt(c.profileId, 10), - "id": strconv.FormatInt(c.id, 10), - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "dfareporting.creativeGroups.get" call. -// Exactly one of *CreativeGroup or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *CreativeGroup.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 *CreativeGroupsGetCall) Do(opts ...googleapi.CallOption) (*CreativeGroup, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &CreativeGroup{ - 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 one creative group by ID.", - // "flatPath": "userprofiles/{profileId}/creativeGroups/{id}", - // "httpMethod": "GET", - // "id": "dfareporting.creativeGroups.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Creative group ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/creativeGroups/{id}", - // "response": { - // "$ref": "CreativeGroup" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.creativeGroups.insert": - -type CreativeGroupsInsertCall struct { - s *Service - profileId int64 - creativegroup *CreativeGroup - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// Insert: Inserts a new creative group. -// -// - profileId: User profile ID associated with this request. -func (r *CreativeGroupsService) Insert(profileId int64, creativegroup *CreativeGroup) *CreativeGroupsInsertCall { - c := &CreativeGroupsInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.profileId = profileId - c.creativegroup = creativegroup - 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 *CreativeGroupsInsertCall) Fields(s ...googleapi.Field) *CreativeGroupsInsertCall { - 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 *CreativeGroupsInsertCall) Context(ctx context.Context) *CreativeGroupsInsertCall { - 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 *CreativeGroupsInsertCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *CreativeGroupsInsertCall) 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.creativegroup) - 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, "userprofiles/{profileId}/creativeGroups") - 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{ - "profileId": strconv.FormatInt(c.profileId, 10), - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "dfareporting.creativeGroups.insert" call. -// Exactly one of *CreativeGroup or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *CreativeGroup.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 *CreativeGroupsInsertCall) Do(opts ...googleapi.CallOption) (*CreativeGroup, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &CreativeGroup{ - 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": "Inserts a new creative group.", - // "flatPath": "userprofiles/{profileId}/creativeGroups", - // "httpMethod": "POST", - // "id": "dfareporting.creativeGroups.insert", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/creativeGroups", - // "request": { - // "$ref": "CreativeGroup" - // }, - // "response": { - // "$ref": "CreativeGroup" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.creativeGroups.list": - -type CreativeGroupsListCall struct { - s *Service - profileId int64 - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} - -// List: Retrieves a list of creative groups, possibly filtered. This -// method supports paging. -// -// - profileId: User profile ID associated with this request. -func (r *CreativeGroupsService) List(profileId int64) *CreativeGroupsListCall { - c := &CreativeGroupsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.profileId = profileId - return c -} - -// AdvertiserIds sets the optional parameter "advertiserIds": Select -// only creative groups that belong to these advertisers. -func (c *CreativeGroupsListCall) AdvertiserIds(advertiserIds ...int64) *CreativeGroupsListCall { - var advertiserIds_ []string - for _, v := range advertiserIds { - advertiserIds_ = append(advertiserIds_, fmt.Sprint(v)) - } - c.urlParams_.SetMulti("advertiserIds", advertiserIds_) - return c -} - -// GroupNumber sets the optional parameter "groupNumber": Select only -// creative groups that belong to this subgroup. -func (c *CreativeGroupsListCall) GroupNumber(groupNumber int64) *CreativeGroupsListCall { - c.urlParams_.Set("groupNumber", fmt.Sprint(groupNumber)) - return c -} - -// Ids sets the optional parameter "ids": Select only creative groups -// with these IDs. -func (c *CreativeGroupsListCall) Ids(ids ...int64) *CreativeGroupsListCall { - var ids_ []string - for _, v := range ids { - ids_ = append(ids_, fmt.Sprint(v)) - } - c.urlParams_.SetMulti("ids", ids_) - return c -} - -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. -func (c *CreativeGroupsListCall) MaxResults(maxResults int64) *CreativeGroupsListCall { - c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) - return c -} - -// PageToken sets the optional parameter "pageToken": Value of the -// nextPageToken from the previous result page. -func (c *CreativeGroupsListCall) PageToken(pageToken string) *CreativeGroupsListCall { - c.urlParams_.Set("pageToken", pageToken) - return c -} - -// SearchString sets the optional parameter "searchString": Allows -// searching for creative groups by name or ID. Wildcards (*) are -// allowed. For example, "creativegroup*2015" will return creative -// groups with names like "creativegroup June 2015", "creativegroup -// April 2015", or simply "creativegroup 2015". Most of the searches -// also add wild-cards implicitly at the start and the end of the search -// string. For example, a search string of "creativegroup" will match -// creative groups with the name "my creativegroup", "creativegroup -// 2015", or simply "creativegroup". -func (c *CreativeGroupsListCall) SearchString(searchString string) *CreativeGroupsListCall { - c.urlParams_.Set("searchString", searchString) - return c -} - -// SortField sets the optional parameter "sortField": Field by which to -// sort the list. -// -// Possible values: -// -// "ID" (default) -// "NAME" -func (c *CreativeGroupsListCall) SortField(sortField string) *CreativeGroupsListCall { - c.urlParams_.Set("sortField", sortField) - return c -} - -// SortOrder sets the optional parameter "sortOrder": Order of sorted -// results. -// -// Possible values: -// -// "ASCENDING" (default) -// "DESCENDING" -func (c *CreativeGroupsListCall) SortOrder(sortOrder string) *CreativeGroupsListCall { - c.urlParams_.Set("sortOrder", sortOrder) - 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 *CreativeGroupsListCall) Fields(s ...googleapi.Field) *CreativeGroupsListCall { - 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 *CreativeGroupsListCall) IfNoneMatch(entityTag string) *CreativeGroupsListCall { - 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 *CreativeGroupsListCall) Context(ctx context.Context) *CreativeGroupsListCall { - 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 *CreativeGroupsListCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *CreativeGroupsListCall) 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, "userprofiles/{profileId}/creativeGroups") - 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{ - "profileId": strconv.FormatInt(c.profileId, 10), - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "dfareporting.creativeGroups.list" call. -// Exactly one of *CreativeGroupsListResponse or error will be non-nil. -// Any non-2xx status code is an error. Response headers are in either -// *CreativeGroupsListResponse.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 *CreativeGroupsListCall) Do(opts ...googleapi.CallOption) (*CreativeGroupsListResponse, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &CreativeGroupsListResponse{ - 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 a list of creative groups, possibly filtered. This method supports paging.", - // "flatPath": "userprofiles/{profileId}/creativeGroups", - // "httpMethod": "GET", - // "id": "dfareporting.creativeGroups.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "advertiserIds": { - // "description": "Select only creative groups that belong to these advertisers.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "groupNumber": { - // "description": "Select only creative groups that belong to this subgroup.", - // "format": "int32", - // "location": "query", - // "maximum": "2", - // "minimum": "1", - // "type": "integer" - // }, - // "ids": { - // "description": "Select only creative groups with these IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "maxResults": { - // "default": "1000", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "1000", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Value of the nextPageToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "searchString": { - // "description": "Allows searching for creative groups by name or ID. Wildcards (*) are allowed. For example, \"creativegroup*2015\" will return creative groups with names like \"creativegroup June 2015\", \"creativegroup April 2015\", or simply \"creativegroup 2015\". Most of the searches also add wild-cards implicitly at the start and the end of the search string. For example, a search string of \"creativegroup\" will match creative groups with the name \"my creativegroup\", \"creativegroup 2015\", or simply \"creativegroup\".", - // "location": "query", - // "type": "string" - // }, - // "sortField": { - // "default": "ID", - // "description": "Field by which to sort the list.", - // "enum": [ - // "ID", - // "NAME" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "sortOrder": { - // "default": "ASCENDING", - // "description": "Order of sorted results.", - // "enum": [ - // "ASCENDING", - // "DESCENDING" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/creativeGroups", - // "response": { - // "$ref": "CreativeGroupsListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// 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 *CreativeGroupsListCall) Pages(ctx context.Context, f func(*CreativeGroupsListResponse) 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 "dfareporting.creativeGroups.patch": - -type CreativeGroupsPatchCall struct { - s *Service - profileId int64 - creativegroup *CreativeGroup - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// Patch: Updates an existing creative group. This method supports patch -// semantics. -// -// - id: CreativeGroup ID. -// - profileId: User profile ID associated with this request. -func (r *CreativeGroupsService) Patch(profileId int64, id int64, creativegroup *CreativeGroup) *CreativeGroupsPatchCall { - c := &CreativeGroupsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.profileId = profileId - c.urlParams_.Set("id", fmt.Sprint(id)) - c.creativegroup = creativegroup - 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 *CreativeGroupsPatchCall) Fields(s ...googleapi.Field) *CreativeGroupsPatchCall { - 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 *CreativeGroupsPatchCall) Context(ctx context.Context) *CreativeGroupsPatchCall { - 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 *CreativeGroupsPatchCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *CreativeGroupsPatchCall) 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.creativegroup) - 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, "userprofiles/{profileId}/creativeGroups") - 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{ - "profileId": strconv.FormatInt(c.profileId, 10), - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "dfareporting.creativeGroups.patch" call. -// Exactly one of *CreativeGroup or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *CreativeGroup.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 *CreativeGroupsPatchCall) Do(opts ...googleapi.CallOption) (*CreativeGroup, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &CreativeGroup{ - 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 an existing creative group. This method supports patch semantics.", - // "flatPath": "userprofiles/{profileId}/creativeGroups", - // "httpMethod": "PATCH", - // "id": "dfareporting.creativeGroups.patch", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "CreativeGroup ID.", - // "format": "int64", - // "location": "query", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/creativeGroups", - // "request": { - // "$ref": "CreativeGroup" - // }, - // "response": { - // "$ref": "CreativeGroup" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.creativeGroups.update": - -type CreativeGroupsUpdateCall struct { - s *Service - profileId int64 - creativegroup *CreativeGroup - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// Update: Updates an existing creative group. -// -// - profileId: User profile ID associated with this request. -func (r *CreativeGroupsService) Update(profileId int64, creativegroup *CreativeGroup) *CreativeGroupsUpdateCall { - c := &CreativeGroupsUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.profileId = profileId - c.creativegroup = creativegroup - 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 *CreativeGroupsUpdateCall) Fields(s ...googleapi.Field) *CreativeGroupsUpdateCall { - 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 *CreativeGroupsUpdateCall) Context(ctx context.Context) *CreativeGroupsUpdateCall { - 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 *CreativeGroupsUpdateCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *CreativeGroupsUpdateCall) 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.creativegroup) - 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, "userprofiles/{profileId}/creativeGroups") - urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("PUT", urls, body) - if err != nil { - return nil, err - } - req.Header = reqHeaders - googleapi.Expand(req.URL, map[string]string{ - "profileId": strconv.FormatInt(c.profileId, 10), - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "dfareporting.creativeGroups.update" call. -// Exactly one of *CreativeGroup or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *CreativeGroup.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 *CreativeGroupsUpdateCall) Do(opts ...googleapi.CallOption) (*CreativeGroup, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &CreativeGroup{ - 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 an existing creative group.", - // "flatPath": "userprofiles/{profileId}/creativeGroups", - // "httpMethod": "PUT", - // "id": "dfareporting.creativeGroups.update", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/creativeGroups", - // "request": { - // "$ref": "CreativeGroup" - // }, - // "response": { - // "$ref": "CreativeGroup" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.creatives.get": - -type CreativesGetCall struct { - s *Service - profileId int64 - id int64 - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} - -// Get: Gets one creative by ID. -// -// - id: Creative ID. -// - profileId: User profile ID associated with this request. -func (r *CreativesService) Get(profileId int64, id int64) *CreativesGetCall { - c := &CreativesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.profileId = profileId - c.id = id - 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 *CreativesGetCall) Fields(s ...googleapi.Field) *CreativesGetCall { - 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 *CreativesGetCall) IfNoneMatch(entityTag string) *CreativesGetCall { - 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 *CreativesGetCall) Context(ctx context.Context) *CreativesGetCall { - 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 *CreativesGetCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *CreativesGetCall) 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, "userprofiles/{profileId}/creatives/{id}") - 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{ - "profileId": strconv.FormatInt(c.profileId, 10), - "id": strconv.FormatInt(c.id, 10), - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "dfareporting.creatives.get" call. -// Exactly one of *Creative or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Creative.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 *CreativesGetCall) Do(opts ...googleapi.CallOption) (*Creative, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &Creative{ - 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 one creative by ID.", - // "flatPath": "userprofiles/{profileId}/creatives/{id}", - // "httpMethod": "GET", - // "id": "dfareporting.creatives.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Creative ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/creatives/{id}", - // "response": { - // "$ref": "Creative" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.creatives.insert": - -type CreativesInsertCall struct { - s *Service - profileId int64 - creative *Creative - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// Insert: Inserts a new creative. -// -// - profileId: User profile ID associated with this request. -func (r *CreativesService) Insert(profileId int64, creative *Creative) *CreativesInsertCall { - c := &CreativesInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.profileId = profileId - c.creative = creative - 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 *CreativesInsertCall) Fields(s ...googleapi.Field) *CreativesInsertCall { - 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 *CreativesInsertCall) Context(ctx context.Context) *CreativesInsertCall { - 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 *CreativesInsertCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *CreativesInsertCall) 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.creative) - 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, "userprofiles/{profileId}/creatives") - 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{ - "profileId": strconv.FormatInt(c.profileId, 10), - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "dfareporting.creatives.insert" call. -// Exactly one of *Creative or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Creative.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 *CreativesInsertCall) Do(opts ...googleapi.CallOption) (*Creative, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &Creative{ - 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": "Inserts a new creative.", - // "flatPath": "userprofiles/{profileId}/creatives", - // "httpMethod": "POST", - // "id": "dfareporting.creatives.insert", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/creatives", - // "request": { - // "$ref": "Creative" - // }, - // "response": { - // "$ref": "Creative" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.creatives.list": - -type CreativesListCall struct { - s *Service - profileId int64 - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} - -// List: Retrieves a list of creatives, possibly filtered. This method -// supports paging. -// -// - profileId: User profile ID associated with this request. -func (r *CreativesService) List(profileId int64) *CreativesListCall { - c := &CreativesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.profileId = profileId - return c -} - -// Active sets the optional parameter "active": Select only active -// creatives. Leave blank to select active and inactive creatives. -func (c *CreativesListCall) Active(active bool) *CreativesListCall { - c.urlParams_.Set("active", fmt.Sprint(active)) - return c -} - -// AdvertiserId sets the optional parameter "advertiserId": Select only -// creatives with this advertiser ID. -func (c *CreativesListCall) AdvertiserId(advertiserId int64) *CreativesListCall { - c.urlParams_.Set("advertiserId", fmt.Sprint(advertiserId)) - return c -} - -// Archived sets the optional parameter "archived": Select only archived -// creatives. Leave blank to select archived and unarchived creatives. -func (c *CreativesListCall) Archived(archived bool) *CreativesListCall { - c.urlParams_.Set("archived", fmt.Sprint(archived)) - return c -} - -// CampaignId sets the optional parameter "campaignId": Select only -// creatives with this campaign ID. -func (c *CreativesListCall) CampaignId(campaignId int64) *CreativesListCall { - c.urlParams_.Set("campaignId", fmt.Sprint(campaignId)) - return c -} - -// CompanionCreativeIds sets the optional parameter -// "companionCreativeIds": Select only in-stream video creatives with -// these companion IDs. -func (c *CreativesListCall) CompanionCreativeIds(companionCreativeIds ...int64) *CreativesListCall { - var companionCreativeIds_ []string - for _, v := range companionCreativeIds { - companionCreativeIds_ = append(companionCreativeIds_, fmt.Sprint(v)) - } - c.urlParams_.SetMulti("companionCreativeIds", companionCreativeIds_) - return c -} - -// CreativeFieldIds sets the optional parameter "creativeFieldIds": -// Select only creatives with these creative field IDs. -func (c *CreativesListCall) CreativeFieldIds(creativeFieldIds ...int64) *CreativesListCall { - var creativeFieldIds_ []string - for _, v := range creativeFieldIds { - creativeFieldIds_ = append(creativeFieldIds_, fmt.Sprint(v)) - } - c.urlParams_.SetMulti("creativeFieldIds", creativeFieldIds_) - return c -} - -// Ids sets the optional parameter "ids": Select only creatives with -// these IDs. -func (c *CreativesListCall) Ids(ids ...int64) *CreativesListCall { - var ids_ []string - for _, v := range ids { - ids_ = append(ids_, fmt.Sprint(v)) - } - c.urlParams_.SetMulti("ids", ids_) - return c -} - -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. -func (c *CreativesListCall) MaxResults(maxResults int64) *CreativesListCall { - c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) - return c -} - -// PageToken sets the optional parameter "pageToken": Value of the -// nextPageToken from the previous result page. -func (c *CreativesListCall) PageToken(pageToken string) *CreativesListCall { - c.urlParams_.Set("pageToken", pageToken) - return c -} - -// RenderingIds sets the optional parameter "renderingIds": Select only -// creatives with these rendering IDs. -func (c *CreativesListCall) RenderingIds(renderingIds ...int64) *CreativesListCall { - var renderingIds_ []string - for _, v := range renderingIds { - renderingIds_ = append(renderingIds_, fmt.Sprint(v)) - } - c.urlParams_.SetMulti("renderingIds", renderingIds_) - return c -} - -// SearchString sets the optional parameter "searchString": Allows -// searching for objects by name or ID. Wildcards (*) are allowed. For -// example, "creative*2015" will return objects with names like -// "creative June 2015", "creative April 2015", or simply "creative -// 2015". Most of the searches also add wildcards implicitly at the -// start and the end of the search string. For example, a search string -// of "creative" will match objects with name "my creative", "creative -// 2015", or simply "creative". -func (c *CreativesListCall) SearchString(searchString string) *CreativesListCall { - c.urlParams_.Set("searchString", searchString) - return c -} - -// SizeIds sets the optional parameter "sizeIds": Select only creatives -// with these size IDs. -func (c *CreativesListCall) SizeIds(sizeIds ...int64) *CreativesListCall { - var sizeIds_ []string - for _, v := range sizeIds { - sizeIds_ = append(sizeIds_, fmt.Sprint(v)) - } - c.urlParams_.SetMulti("sizeIds", sizeIds_) - return c -} - -// SortField sets the optional parameter "sortField": Field by which to -// sort the list. -// -// Possible values: -// -// "ID" (default) -// "NAME" -func (c *CreativesListCall) SortField(sortField string) *CreativesListCall { - c.urlParams_.Set("sortField", sortField) - return c -} - -// SortOrder sets the optional parameter "sortOrder": Order of sorted -// results. -// -// Possible values: -// -// "ASCENDING" (default) -// "DESCENDING" -func (c *CreativesListCall) SortOrder(sortOrder string) *CreativesListCall { - c.urlParams_.Set("sortOrder", sortOrder) - return c -} - -// StudioCreativeId sets the optional parameter "studioCreativeId": -// Select only creatives corresponding to this Studio creative ID. -func (c *CreativesListCall) StudioCreativeId(studioCreativeId int64) *CreativesListCall { - c.urlParams_.Set("studioCreativeId", fmt.Sprint(studioCreativeId)) - return c -} - -// Types sets the optional parameter "types": Select only creatives with -// these creative types. -// -// Possible values: -// -// "IMAGE" -// "DISPLAY_REDIRECT" -// "CUSTOM_DISPLAY" -// "INTERNAL_REDIRECT" -// "CUSTOM_DISPLAY_INTERSTITIAL" -// "INTERSTITIAL_INTERNAL_REDIRECT" -// "TRACKING_TEXT" -// "RICH_MEDIA_DISPLAY_BANNER" -// "RICH_MEDIA_INPAGE_FLOATING" -// "RICH_MEDIA_IM_EXPAND" -// "RICH_MEDIA_DISPLAY_EXPANDING" -// "RICH_MEDIA_DISPLAY_INTERSTITIAL" -// "RICH_MEDIA_DISPLAY_MULTI_FLOATING_INTERSTITIAL" -// "RICH_MEDIA_MOBILE_IN_APP" -// "FLASH_INPAGE" -// "INSTREAM_VIDEO" -// "VPAID_LINEAR_VIDEO" -// "VPAID_NON_LINEAR_VIDEO" -// "INSTREAM_VIDEO_REDIRECT" -// "RICH_MEDIA_PEEL_DOWN" -// "HTML5_BANNER" -// "DISPLAY" -// "DISPLAY_IMAGE_GALLERY" -// "BRAND_SAFE_DEFAULT_INSTREAM_VIDEO" -// "INSTREAM_AUDIO" -func (c *CreativesListCall) Types(types ...string) *CreativesListCall { - c.urlParams_.SetMulti("types", append([]string{}, types...)) - 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 *CreativesListCall) Fields(s ...googleapi.Field) *CreativesListCall { - 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 *CreativesListCall) IfNoneMatch(entityTag string) *CreativesListCall { - 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 *CreativesListCall) Context(ctx context.Context) *CreativesListCall { - 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 *CreativesListCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *CreativesListCall) 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, "userprofiles/{profileId}/creatives") - 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{ - "profileId": strconv.FormatInt(c.profileId, 10), - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "dfareporting.creatives.list" call. -// Exactly one of *CreativesListResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *CreativesListResponse.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 *CreativesListCall) Do(opts ...googleapi.CallOption) (*CreativesListResponse, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &CreativesListResponse{ - 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 a list of creatives, possibly filtered. This method supports paging.", - // "flatPath": "userprofiles/{profileId}/creatives", - // "httpMethod": "GET", - // "id": "dfareporting.creatives.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "active": { - // "description": "Select only active creatives. Leave blank to select active and inactive creatives.", - // "location": "query", - // "type": "boolean" - // }, - // "advertiserId": { - // "description": "Select only creatives with this advertiser ID.", - // "format": "int64", - // "location": "query", - // "type": "string" - // }, - // "archived": { - // "description": "Select only archived creatives. Leave blank to select archived and unarchived creatives.", - // "location": "query", - // "type": "boolean" - // }, - // "campaignId": { - // "description": "Select only creatives with this campaign ID.", - // "format": "int64", - // "location": "query", - // "type": "string" - // }, - // "companionCreativeIds": { - // "description": "Select only in-stream video creatives with these companion IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "creativeFieldIds": { - // "description": "Select only creatives with these creative field IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "ids": { - // "description": "Select only creatives with these IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "maxResults": { - // "default": "1000", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "1000", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Value of the nextPageToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "renderingIds": { - // "description": "Select only creatives with these rendering IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "searchString": { - // "description": "Allows searching for objects by name or ID. Wildcards (*) are allowed. For example, \"creative*2015\" will return objects with names like \"creative June 2015\", \"creative April 2015\", or simply \"creative 2015\". Most of the searches also add wildcards implicitly at the start and the end of the search string. For example, a search string of \"creative\" will match objects with name \"my creative\", \"creative 2015\", or simply \"creative\".", - // "location": "query", - // "type": "string" - // }, - // "sizeIds": { - // "description": "Select only creatives with these size IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "sortField": { - // "default": "ID", - // "description": "Field by which to sort the list.", - // "enum": [ - // "ID", - // "NAME" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "sortOrder": { - // "default": "ASCENDING", - // "description": "Order of sorted results.", - // "enum": [ - // "ASCENDING", - // "DESCENDING" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "studioCreativeId": { - // "description": "Select only creatives corresponding to this Studio creative ID.", - // "format": "int64", - // "location": "query", - // "type": "string" - // }, - // "types": { - // "description": "Select only creatives with these creative types.", - // "enum": [ - // "IMAGE", - // "DISPLAY_REDIRECT", - // "CUSTOM_DISPLAY", - // "INTERNAL_REDIRECT", - // "CUSTOM_DISPLAY_INTERSTITIAL", - // "INTERSTITIAL_INTERNAL_REDIRECT", - // "TRACKING_TEXT", - // "RICH_MEDIA_DISPLAY_BANNER", - // "RICH_MEDIA_INPAGE_FLOATING", - // "RICH_MEDIA_IM_EXPAND", - // "RICH_MEDIA_DISPLAY_EXPANDING", - // "RICH_MEDIA_DISPLAY_INTERSTITIAL", - // "RICH_MEDIA_DISPLAY_MULTI_FLOATING_INTERSTITIAL", - // "RICH_MEDIA_MOBILE_IN_APP", - // "FLASH_INPAGE", - // "INSTREAM_VIDEO", - // "VPAID_LINEAR_VIDEO", - // "VPAID_NON_LINEAR_VIDEO", - // "INSTREAM_VIDEO_REDIRECT", - // "RICH_MEDIA_PEEL_DOWN", - // "HTML5_BANNER", - // "DISPLAY", - // "DISPLAY_IMAGE_GALLERY", - // "BRAND_SAFE_DEFAULT_INSTREAM_VIDEO", - // "INSTREAM_AUDIO" - // ], - // "enumDescriptions": [ - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "" - // ], - // "location": "query", - // "repeated": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/creatives", - // "response": { - // "$ref": "CreativesListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// 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 *CreativesListCall) Pages(ctx context.Context, f func(*CreativesListResponse) 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 "dfareporting.creatives.patch": - -type CreativesPatchCall struct { - s *Service - profileId int64 - creative *Creative - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// Patch: Updates an existing creative. This method supports patch -// semantics. -// -// - id: Creative ID. -// - profileId: User profile ID associated with this request. -func (r *CreativesService) Patch(profileId int64, id int64, creative *Creative) *CreativesPatchCall { - c := &CreativesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.profileId = profileId - c.urlParams_.Set("id", fmt.Sprint(id)) - c.creative = creative - 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 *CreativesPatchCall) Fields(s ...googleapi.Field) *CreativesPatchCall { - 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 *CreativesPatchCall) Context(ctx context.Context) *CreativesPatchCall { - 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 *CreativesPatchCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *CreativesPatchCall) 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.creative) - 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, "userprofiles/{profileId}/creatives") - 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{ - "profileId": strconv.FormatInt(c.profileId, 10), - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "dfareporting.creatives.patch" call. -// Exactly one of *Creative or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Creative.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 *CreativesPatchCall) Do(opts ...googleapi.CallOption) (*Creative, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &Creative{ - 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 an existing creative. This method supports patch semantics.", - // "flatPath": "userprofiles/{profileId}/creatives", - // "httpMethod": "PATCH", - // "id": "dfareporting.creatives.patch", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Creative ID.", - // "format": "int64", - // "location": "query", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/creatives", - // "request": { - // "$ref": "Creative" - // }, - // "response": { - // "$ref": "Creative" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.creatives.update": - -type CreativesUpdateCall struct { - s *Service - profileId int64 - creative *Creative - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// Update: Updates an existing creative. -// -// - profileId: User profile ID associated with this request. -func (r *CreativesService) Update(profileId int64, creative *Creative) *CreativesUpdateCall { - c := &CreativesUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.profileId = profileId - c.creative = creative - 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 *CreativesUpdateCall) Fields(s ...googleapi.Field) *CreativesUpdateCall { - 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 *CreativesUpdateCall) Context(ctx context.Context) *CreativesUpdateCall { - 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 *CreativesUpdateCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *CreativesUpdateCall) 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.creative) - 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, "userprofiles/{profileId}/creatives") - urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("PUT", urls, body) - if err != nil { - return nil, err - } - req.Header = reqHeaders - googleapi.Expand(req.URL, map[string]string{ - "profileId": strconv.FormatInt(c.profileId, 10), - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "dfareporting.creatives.update" call. -// Exactly one of *Creative or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Creative.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 *CreativesUpdateCall) Do(opts ...googleapi.CallOption) (*Creative, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &Creative{ - 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 an existing creative.", - // "flatPath": "userprofiles/{profileId}/creatives", - // "httpMethod": "PUT", - // "id": "dfareporting.creatives.update", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/creatives", - // "request": { - // "$ref": "Creative" - // }, - // "response": { - // "$ref": "Creative" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.dimensionValues.query": - -type DimensionValuesQueryCall struct { - s *Service - profileId int64 - dimensionvaluerequest *DimensionValueRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// Query: Retrieves list of report dimension values for a list of -// filters. -// -// - profileId: The Campaign Manager 360 user profile ID. -func (r *DimensionValuesService) Query(profileId int64, dimensionvaluerequest *DimensionValueRequest) *DimensionValuesQueryCall { - c := &DimensionValuesQueryCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.profileId = profileId - c.dimensionvaluerequest = dimensionvaluerequest - return c -} - -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. -func (c *DimensionValuesQueryCall) MaxResults(maxResults int64) *DimensionValuesQueryCall { - c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) - return c -} - -// PageToken sets the optional parameter "pageToken": The value of the -// nextToken from the previous result page. -func (c *DimensionValuesQueryCall) PageToken(pageToken string) *DimensionValuesQueryCall { - 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 *DimensionValuesQueryCall) Fields(s ...googleapi.Field) *DimensionValuesQueryCall { - 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 *DimensionValuesQueryCall) Context(ctx context.Context) *DimensionValuesQueryCall { - 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 *DimensionValuesQueryCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *DimensionValuesQueryCall) 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.dimensionvaluerequest) - 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, "userprofiles/{profileId}/dimensionvalues/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{ - "profileId": strconv.FormatInt(c.profileId, 10), - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "dfareporting.dimensionValues.query" call. -// Exactly one of *DimensionValueList or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *DimensionValueList.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 *DimensionValuesQueryCall) Do(opts ...googleapi.CallOption) (*DimensionValueList, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &DimensionValueList{ - 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 list of report dimension values for a list of filters.", - // "flatPath": "userprofiles/{profileId}/dimensionvalues/query", - // "httpMethod": "POST", - // "id": "dfareporting.dimensionValues.query", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "maxResults": { - // "default": "100", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "100", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "The value of the nextToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "The Campaign Manager 360 user profile ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/dimensionvalues/query", - // "request": { - // "$ref": "DimensionValueRequest" - // }, - // "response": { - // "$ref": "DimensionValueList" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfareporting" - // ] - // } - -} - -// 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 *DimensionValuesQueryCall) Pages(ctx context.Context, f func(*DimensionValueList) 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 "dfareporting.directorySites.get": - -type DirectorySitesGetCall struct { - s *Service - profileId int64 - id int64 - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} - -// Get: Gets one directory site by ID. -// -// - id: Directory site ID. -// - profileId: User profile ID associated with this request. -func (r *DirectorySitesService) Get(profileId int64, id int64) *DirectorySitesGetCall { - c := &DirectorySitesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.profileId = profileId - c.id = id - 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 *DirectorySitesGetCall) Fields(s ...googleapi.Field) *DirectorySitesGetCall { - 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 *DirectorySitesGetCall) IfNoneMatch(entityTag string) *DirectorySitesGetCall { - 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 *DirectorySitesGetCall) Context(ctx context.Context) *DirectorySitesGetCall { - 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 *DirectorySitesGetCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *DirectorySitesGetCall) 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, "userprofiles/{profileId}/directorySites/{id}") - 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{ - "profileId": strconv.FormatInt(c.profileId, 10), - "id": strconv.FormatInt(c.id, 10), - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "dfareporting.directorySites.get" call. -// Exactly one of *DirectorySite or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *DirectorySite.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 *DirectorySitesGetCall) Do(opts ...googleapi.CallOption) (*DirectorySite, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &DirectorySite{ - 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 one directory site by ID.", - // "flatPath": "userprofiles/{profileId}/directorySites/{id}", - // "httpMethod": "GET", - // "id": "dfareporting.directorySites.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Directory site ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/directorySites/{id}", - // "response": { - // "$ref": "DirectorySite" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.directorySites.insert": - -type DirectorySitesInsertCall struct { - s *Service - profileId int64 - directorysite *DirectorySite - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// Insert: Inserts a new directory site. -// -// - profileId: User profile ID associated with this request. -func (r *DirectorySitesService) Insert(profileId int64, directorysite *DirectorySite) *DirectorySitesInsertCall { - c := &DirectorySitesInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.profileId = profileId - c.directorysite = directorysite - 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 *DirectorySitesInsertCall) Fields(s ...googleapi.Field) *DirectorySitesInsertCall { - 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 *DirectorySitesInsertCall) Context(ctx context.Context) *DirectorySitesInsertCall { - 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 *DirectorySitesInsertCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *DirectorySitesInsertCall) 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.directorysite) - 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, "userprofiles/{profileId}/directorySites") - 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{ - "profileId": strconv.FormatInt(c.profileId, 10), - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "dfareporting.directorySites.insert" call. -// Exactly one of *DirectorySite or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *DirectorySite.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 *DirectorySitesInsertCall) Do(opts ...googleapi.CallOption) (*DirectorySite, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &DirectorySite{ - 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": "Inserts a new directory site.", - // "flatPath": "userprofiles/{profileId}/directorySites", - // "httpMethod": "POST", - // "id": "dfareporting.directorySites.insert", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/directorySites", - // "request": { - // "$ref": "DirectorySite" - // }, - // "response": { - // "$ref": "DirectorySite" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.directorySites.list": - -type DirectorySitesListCall struct { - s *Service - profileId int64 - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} - -// List: Retrieves a list of directory sites, possibly filtered. This -// method supports paging. -// -// - profileId: User profile ID associated with this request. -func (r *DirectorySitesService) List(profileId int64) *DirectorySitesListCall { - c := &DirectorySitesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.profileId = profileId - return c -} - -// AcceptsInStreamVideoPlacements sets the optional parameter -// "acceptsInStreamVideoPlacements": This search filter is no longer -// supported and will have no effect on the results returned. -func (c *DirectorySitesListCall) AcceptsInStreamVideoPlacements(acceptsInStreamVideoPlacements bool) *DirectorySitesListCall { - c.urlParams_.Set("acceptsInStreamVideoPlacements", fmt.Sprint(acceptsInStreamVideoPlacements)) - return c -} - -// AcceptsInterstitialPlacements sets the optional parameter -// "acceptsInterstitialPlacements": This search filter is no longer -// supported and will have no effect on the results returned. -func (c *DirectorySitesListCall) AcceptsInterstitialPlacements(acceptsInterstitialPlacements bool) *DirectorySitesListCall { - c.urlParams_.Set("acceptsInterstitialPlacements", fmt.Sprint(acceptsInterstitialPlacements)) - return c -} - -// AcceptsPublisherPaidPlacements sets the optional parameter -// "acceptsPublisherPaidPlacements": Select only directory sites that -// accept publisher paid placements. This field can be left blank. -func (c *DirectorySitesListCall) AcceptsPublisherPaidPlacements(acceptsPublisherPaidPlacements bool) *DirectorySitesListCall { - c.urlParams_.Set("acceptsPublisherPaidPlacements", fmt.Sprint(acceptsPublisherPaidPlacements)) - return c -} - -// Active sets the optional parameter "active": Select only active -// directory sites. Leave blank to retrieve both active and inactive -// directory sites. -func (c *DirectorySitesListCall) Active(active bool) *DirectorySitesListCall { - c.urlParams_.Set("active", fmt.Sprint(active)) - return c -} - -// DfpNetworkCode sets the optional parameter "dfpNetworkCode": Select -// only directory sites with this Ad Manager network code. -func (c *DirectorySitesListCall) DfpNetworkCode(dfpNetworkCode string) *DirectorySitesListCall { - c.urlParams_.Set("dfpNetworkCode", dfpNetworkCode) - return c -} - -// Ids sets the optional parameter "ids": Select only directory sites -// with these IDs. -func (c *DirectorySitesListCall) Ids(ids ...int64) *DirectorySitesListCall { - var ids_ []string - for _, v := range ids { - ids_ = append(ids_, fmt.Sprint(v)) - } - c.urlParams_.SetMulti("ids", ids_) - return c -} - -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. -func (c *DirectorySitesListCall) MaxResults(maxResults int64) *DirectorySitesListCall { - c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) - return c -} - -// PageToken sets the optional parameter "pageToken": Value of the -// nextPageToken from the previous result page. -func (c *DirectorySitesListCall) PageToken(pageToken string) *DirectorySitesListCall { - c.urlParams_.Set("pageToken", pageToken) - return c -} - -// SearchString sets the optional parameter "searchString": Allows -// searching for objects by name, ID or URL. Wildcards (*) are allowed. -// For example, "directory site*2015" will return objects with names -// like "directory site June 2015", "directory site April 2015", or -// simply "directory site 2015". Most of the searches also add wildcards -// implicitly at the start and the end of the search string. For -// example, a search string of "directory site" will match objects with -// name "my directory site", "directory site 2015" or simply, "directory -// site". -func (c *DirectorySitesListCall) SearchString(searchString string) *DirectorySitesListCall { - c.urlParams_.Set("searchString", searchString) - return c -} - -// SortField sets the optional parameter "sortField": Field by which to -// sort the list. -// -// Possible values: -// -// "ID" (default) -// "NAME" -func (c *DirectorySitesListCall) SortField(sortField string) *DirectorySitesListCall { - c.urlParams_.Set("sortField", sortField) - return c -} - -// SortOrder sets the optional parameter "sortOrder": Order of sorted -// results. -// -// Possible values: -// -// "ASCENDING" (default) -// "DESCENDING" -func (c *DirectorySitesListCall) SortOrder(sortOrder string) *DirectorySitesListCall { - c.urlParams_.Set("sortOrder", sortOrder) - 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 *DirectorySitesListCall) Fields(s ...googleapi.Field) *DirectorySitesListCall { - 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 *DirectorySitesListCall) IfNoneMatch(entityTag string) *DirectorySitesListCall { - 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 *DirectorySitesListCall) Context(ctx context.Context) *DirectorySitesListCall { - 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 *DirectorySitesListCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *DirectorySitesListCall) 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, "userprofiles/{profileId}/directorySites") - 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{ - "profileId": strconv.FormatInt(c.profileId, 10), - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "dfareporting.directorySites.list" call. -// Exactly one of *DirectorySitesListResponse or error will be non-nil. -// Any non-2xx status code is an error. Response headers are in either -// *DirectorySitesListResponse.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 *DirectorySitesListCall) Do(opts ...googleapi.CallOption) (*DirectorySitesListResponse, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &DirectorySitesListResponse{ - 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 a list of directory sites, possibly filtered. This method supports paging.", - // "flatPath": "userprofiles/{profileId}/directorySites", - // "httpMethod": "GET", - // "id": "dfareporting.directorySites.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "acceptsInStreamVideoPlacements": { - // "description": "This search filter is no longer supported and will have no effect on the results returned.", - // "location": "query", - // "type": "boolean" - // }, - // "acceptsInterstitialPlacements": { - // "description": "This search filter is no longer supported and will have no effect on the results returned.", - // "location": "query", - // "type": "boolean" - // }, - // "acceptsPublisherPaidPlacements": { - // "description": "Select only directory sites that accept publisher paid placements. This field can be left blank.", - // "location": "query", - // "type": "boolean" - // }, - // "active": { - // "description": "Select only active directory sites. Leave blank to retrieve both active and inactive directory sites.", - // "location": "query", - // "type": "boolean" - // }, - // "dfpNetworkCode": { - // "description": "Select only directory sites with this Ad Manager network code.", - // "location": "query", - // "type": "string" - // }, - // "ids": { - // "description": "Select only directory sites with these IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "maxResults": { - // "default": "1000", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "1000", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Value of the nextPageToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "searchString": { - // "description": "Allows searching for objects by name, ID or URL. Wildcards (*) are allowed. For example, \"directory site*2015\" will return objects with names like \"directory site June 2015\", \"directory site April 2015\", or simply \"directory site 2015\". Most of the searches also add wildcards implicitly at the start and the end of the search string. For example, a search string of \"directory site\" will match objects with name \"my directory site\", \"directory site 2015\" or simply, \"directory site\".", - // "location": "query", - // "type": "string" - // }, - // "sortField": { - // "default": "ID", - // "description": "Field by which to sort the list.", - // "enum": [ - // "ID", - // "NAME" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "sortOrder": { - // "default": "ASCENDING", - // "description": "Order of sorted results.", - // "enum": [ - // "ASCENDING", - // "DESCENDING" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/directorySites", - // "response": { - // "$ref": "DirectorySitesListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// 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 *DirectorySitesListCall) Pages(ctx context.Context, f func(*DirectorySitesListResponse) 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 "dfareporting.dynamicTargetingKeys.delete": - -type DynamicTargetingKeysDeleteCall struct { - s *Service - profileId int64 - objectId int64 - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// Delete: Deletes an existing dynamic targeting key. -// -// - name: Name of this dynamic targeting key. This is a required field. -// Must be less than 256 characters long and cannot contain commas. -// All characters are converted to lowercase. -// - objectId: ID of the object of this dynamic targeting key. This is a -// required field. -// - objectType: Type of the object of this dynamic targeting key. This -// is a required field. -// - profileId: User profile ID associated with this request. -func (r *DynamicTargetingKeysService) Delete(profileId int64, objectId int64, name string, objectType string) *DynamicTargetingKeysDeleteCall { - c := &DynamicTargetingKeysDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.profileId = profileId - c.objectId = objectId - c.urlParams_.Set("name", name) - c.urlParams_.Set("objectType", objectType) - 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 *DynamicTargetingKeysDeleteCall) Fields(s ...googleapi.Field) *DynamicTargetingKeysDeleteCall { - 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 *DynamicTargetingKeysDeleteCall) Context(ctx context.Context) *DynamicTargetingKeysDeleteCall { - 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 *DynamicTargetingKeysDeleteCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *DynamicTargetingKeysDeleteCall) 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, "userprofiles/{profileId}/dynamicTargetingKeys/{objectId}") - 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{ - "profileId": strconv.FormatInt(c.profileId, 10), - "objectId": strconv.FormatInt(c.objectId, 10), - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "dfareporting.dynamicTargetingKeys.delete" call. -func (c *DynamicTargetingKeysDeleteCall) 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 gensupport.WrapError(err) - } - return nil - // { - // "description": "Deletes an existing dynamic targeting key.", - // "flatPath": "userprofiles/{profileId}/dynamicTargetingKeys/{objectId}", - // "httpMethod": "DELETE", - // "id": "dfareporting.dynamicTargetingKeys.delete", - // "parameterOrder": [ - // "profileId", - // "objectId", - // "name", - // "objectType" - // ], - // "parameters": { - // "name": { - // "description": "Name of this dynamic targeting key. This is a required field. Must be less than 256 characters long and cannot contain commas. All characters are converted to lowercase.", - // "location": "query", - // "required": true, - // "type": "string" - // }, - // "objectId": { - // "description": "ID of the object of this dynamic targeting key. This is a required field.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "objectType": { - // "description": "Type of the object of this dynamic targeting key. This is a required field.", - // "enum": [ - // "OBJECT_ADVERTISER", - // "OBJECT_AD", - // "OBJECT_CREATIVE", - // "OBJECT_PLACEMENT" - // ], - // "enumDescriptions": [ - // "", - // "", - // "", - // "" - // ], - // "location": "query", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/dynamicTargetingKeys/{objectId}", - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.dynamicTargetingKeys.insert": - -type DynamicTargetingKeysInsertCall struct { - s *Service - profileId int64 - dynamictargetingkey *DynamicTargetingKey - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// Insert: 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. -// -// - profileId: User profile ID associated with this request. -func (r *DynamicTargetingKeysService) Insert(profileId int64, dynamictargetingkey *DynamicTargetingKey) *DynamicTargetingKeysInsertCall { - c := &DynamicTargetingKeysInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.profileId = profileId - c.dynamictargetingkey = dynamictargetingkey - 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 *DynamicTargetingKeysInsertCall) Fields(s ...googleapi.Field) *DynamicTargetingKeysInsertCall { - 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 *DynamicTargetingKeysInsertCall) Context(ctx context.Context) *DynamicTargetingKeysInsertCall { - 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 *DynamicTargetingKeysInsertCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *DynamicTargetingKeysInsertCall) 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.dynamictargetingkey) - 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, "userprofiles/{profileId}/dynamicTargetingKeys") - 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{ - "profileId": strconv.FormatInt(c.profileId, 10), - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "dfareporting.dynamicTargetingKeys.insert" call. -// Exactly one of *DynamicTargetingKey or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *DynamicTargetingKey.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 *DynamicTargetingKeysInsertCall) Do(opts ...googleapi.CallOption) (*DynamicTargetingKey, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &DynamicTargetingKey{ - 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": "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": "userprofiles/{profileId}/dynamicTargetingKeys", - // "httpMethod": "POST", - // "id": "dfareporting.dynamicTargetingKeys.insert", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/dynamicTargetingKeys", - // "request": { - // "$ref": "DynamicTargetingKey" - // }, - // "response": { - // "$ref": "DynamicTargetingKey" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.dynamicTargetingKeys.list": - -type DynamicTargetingKeysListCall struct { - s *Service - profileId int64 - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} - -// List: Retrieves a list of dynamic targeting keys. -// -// - profileId: User profile ID associated with this request. -func (r *DynamicTargetingKeysService) List(profileId int64) *DynamicTargetingKeysListCall { - c := &DynamicTargetingKeysListCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.profileId = profileId - return c -} - -// AdvertiserId sets the optional parameter "advertiserId": Select only -// dynamic targeting keys whose object has this advertiser ID. -func (c *DynamicTargetingKeysListCall) AdvertiserId(advertiserId int64) *DynamicTargetingKeysListCall { - c.urlParams_.Set("advertiserId", fmt.Sprint(advertiserId)) - return c -} - -// Names sets the optional parameter "names": Select only dynamic -// targeting keys exactly matching these names. -func (c *DynamicTargetingKeysListCall) Names(names ...string) *DynamicTargetingKeysListCall { - c.urlParams_.SetMulti("names", append([]string{}, names...)) - return c -} - -// ObjectId sets the optional parameter "objectId": Select only dynamic -// targeting keys with this object ID. -func (c *DynamicTargetingKeysListCall) ObjectId(objectId int64) *DynamicTargetingKeysListCall { - c.urlParams_.Set("objectId", fmt.Sprint(objectId)) - return c -} - -// ObjectType sets the optional parameter "objectType": Select only -// dynamic targeting keys with this object type. -// -// Possible values: -// -// "OBJECT_ADVERTISER" -// "OBJECT_AD" -// "OBJECT_CREATIVE" -// "OBJECT_PLACEMENT" -func (c *DynamicTargetingKeysListCall) ObjectType(objectType string) *DynamicTargetingKeysListCall { - c.urlParams_.Set("objectType", objectType) - 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 *DynamicTargetingKeysListCall) Fields(s ...googleapi.Field) *DynamicTargetingKeysListCall { - 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 *DynamicTargetingKeysListCall) IfNoneMatch(entityTag string) *DynamicTargetingKeysListCall { - 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 *DynamicTargetingKeysListCall) Context(ctx context.Context) *DynamicTargetingKeysListCall { - 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 *DynamicTargetingKeysListCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *DynamicTargetingKeysListCall) 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, "userprofiles/{profileId}/dynamicTargetingKeys") - 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{ - "profileId": strconv.FormatInt(c.profileId, 10), - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "dfareporting.dynamicTargetingKeys.list" call. -// Exactly one of *DynamicTargetingKeysListResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *DynamicTargetingKeysListResponse.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 *DynamicTargetingKeysListCall) Do(opts ...googleapi.CallOption) (*DynamicTargetingKeysListResponse, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &DynamicTargetingKeysListResponse{ - 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 a list of dynamic targeting keys.", - // "flatPath": "userprofiles/{profileId}/dynamicTargetingKeys", - // "httpMethod": "GET", - // "id": "dfareporting.dynamicTargetingKeys.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "advertiserId": { - // "description": "Select only dynamic targeting keys whose object has this advertiser ID.", - // "format": "int64", - // "location": "query", - // "type": "string" - // }, - // "names": { - // "description": "Select only dynamic targeting keys exactly matching these names.", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "objectId": { - // "description": "Select only dynamic targeting keys with this object ID.", - // "format": "int64", - // "location": "query", - // "type": "string" - // }, - // "objectType": { - // "description": "Select only dynamic targeting keys with this object type.", - // "enum": [ - // "OBJECT_ADVERTISER", - // "OBJECT_AD", - // "OBJECT_CREATIVE", - // "OBJECT_PLACEMENT" - // ], - // "enumDescriptions": [ - // "", - // "", - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/dynamicTargetingKeys", - // "response": { - // "$ref": "DynamicTargetingKeysListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.eventTags.delete": - -type EventTagsDeleteCall struct { - s *Service - profileId int64 - id int64 - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// Delete: Deletes an existing event tag. -// -// - id: Event tag ID. -// - profileId: User profile ID associated with this request. -func (r *EventTagsService) Delete(profileId int64, id int64) *EventTagsDeleteCall { - c := &EventTagsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.profileId = profileId - c.id = id - 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 *EventTagsDeleteCall) Fields(s ...googleapi.Field) *EventTagsDeleteCall { - 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 *EventTagsDeleteCall) Context(ctx context.Context) *EventTagsDeleteCall { - 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 *EventTagsDeleteCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *EventTagsDeleteCall) 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, "userprofiles/{profileId}/eventTags/{id}") - 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{ - "profileId": strconv.FormatInt(c.profileId, 10), - "id": strconv.FormatInt(c.id, 10), - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "dfareporting.eventTags.delete" call. -func (c *EventTagsDeleteCall) 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 gensupport.WrapError(err) - } - return nil - // { - // "description": "Deletes an existing event tag.", - // "flatPath": "userprofiles/{profileId}/eventTags/{id}", - // "httpMethod": "DELETE", - // "id": "dfareporting.eventTags.delete", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Event tag ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/eventTags/{id}", - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.eventTags.get": - -type EventTagsGetCall struct { - s *Service - profileId int64 - id int64 - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} - -// Get: Gets one event tag by ID. -// -// - id: Event tag ID. -// - profileId: User profile ID associated with this request. -func (r *EventTagsService) Get(profileId int64, id int64) *EventTagsGetCall { - c := &EventTagsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.profileId = profileId - c.id = id - 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 *EventTagsGetCall) Fields(s ...googleapi.Field) *EventTagsGetCall { - 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 *EventTagsGetCall) IfNoneMatch(entityTag string) *EventTagsGetCall { - 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 *EventTagsGetCall) Context(ctx context.Context) *EventTagsGetCall { - 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 *EventTagsGetCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *EventTagsGetCall) 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, "userprofiles/{profileId}/eventTags/{id}") - 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{ - "profileId": strconv.FormatInt(c.profileId, 10), - "id": strconv.FormatInt(c.id, 10), - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "dfareporting.eventTags.get" call. -// Exactly one of *EventTag or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *EventTag.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 *EventTagsGetCall) Do(opts ...googleapi.CallOption) (*EventTag, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &EventTag{ - 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 one event tag by ID.", - // "flatPath": "userprofiles/{profileId}/eventTags/{id}", - // "httpMethod": "GET", - // "id": "dfareporting.eventTags.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Event tag ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/eventTags/{id}", - // "response": { - // "$ref": "EventTag" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.eventTags.insert": - -type EventTagsInsertCall struct { - s *Service - profileId int64 - eventtag *EventTag - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// Insert: Inserts a new event tag. -// -// - profileId: User profile ID associated with this request. -func (r *EventTagsService) Insert(profileId int64, eventtag *EventTag) *EventTagsInsertCall { - c := &EventTagsInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.profileId = profileId - c.eventtag = eventtag - 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 *EventTagsInsertCall) Fields(s ...googleapi.Field) *EventTagsInsertCall { - 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 *EventTagsInsertCall) Context(ctx context.Context) *EventTagsInsertCall { - 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 *EventTagsInsertCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *EventTagsInsertCall) 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.eventtag) - 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, "userprofiles/{profileId}/eventTags") - 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{ - "profileId": strconv.FormatInt(c.profileId, 10), - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "dfareporting.eventTags.insert" call. -// Exactly one of *EventTag or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *EventTag.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 *EventTagsInsertCall) Do(opts ...googleapi.CallOption) (*EventTag, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &EventTag{ - 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": "Inserts a new event tag.", - // "flatPath": "userprofiles/{profileId}/eventTags", - // "httpMethod": "POST", - // "id": "dfareporting.eventTags.insert", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/eventTags", - // "request": { - // "$ref": "EventTag" - // }, - // "response": { - // "$ref": "EventTag" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.eventTags.list": - -type EventTagsListCall struct { - s *Service - profileId int64 - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} - -// List: Retrieves a list of event tags, possibly filtered. -// -// - profileId: User profile ID associated with this request. -func (r *EventTagsService) List(profileId int64) *EventTagsListCall { - c := &EventTagsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.profileId = profileId - return c -} - -// AdId sets the optional parameter "adId": Select only event tags that -// belong to this ad. -func (c *EventTagsListCall) AdId(adId int64) *EventTagsListCall { - c.urlParams_.Set("adId", fmt.Sprint(adId)) - return c -} - -// AdvertiserId sets the optional parameter "advertiserId": Select only -// event tags that belong to this advertiser. -func (c *EventTagsListCall) AdvertiserId(advertiserId int64) *EventTagsListCall { - c.urlParams_.Set("advertiserId", fmt.Sprint(advertiserId)) - return c -} - -// CampaignId sets the optional parameter "campaignId": Select only -// event tags that belong to this campaign. -func (c *EventTagsListCall) CampaignId(campaignId int64) *EventTagsListCall { - c.urlParams_.Set("campaignId", fmt.Sprint(campaignId)) - return c -} - -// DefinitionsOnly sets the optional parameter "definitionsOnly": -// Examine only the specified campaign or advertiser's event tags for -// matching selector criteria. When set to false, the parent advertiser -// and parent campaign of the specified ad or campaign is examined as -// well. In addition, when set to false, the status field is examined as -// well, along with the enabledByDefault field. This parameter can not -// be set to true when adId is specified as ads do not define their own -// even tags. -func (c *EventTagsListCall) DefinitionsOnly(definitionsOnly bool) *EventTagsListCall { - c.urlParams_.Set("definitionsOnly", fmt.Sprint(definitionsOnly)) - return c -} - -// Enabled sets the optional parameter "enabled": Select only enabled -// event tags. What is considered enabled or disabled depends on the -// definitionsOnly parameter. When definitionsOnly is set to true, only -// the specified advertiser or campaign's event tags' enabledByDefault -// field is examined. When definitionsOnly is set to false, the -// specified ad or specified campaign's parent advertiser's or parent -// campaign's event tags' enabledByDefault and status fields are -// examined as well. -func (c *EventTagsListCall) Enabled(enabled bool) *EventTagsListCall { - c.urlParams_.Set("enabled", fmt.Sprint(enabled)) - return c -} - -// EventTagTypes sets the optional parameter "eventTagTypes": Select -// only event tags with the specified event tag types. Event tag types -// can be used to specify whether to use a third-party pixel, a -// third-party JavaScript URL, or a third-party click-through URL for -// either impression or click tracking. -// -// Possible values: -// -// "IMPRESSION_IMAGE_EVENT_TAG" -// "IMPRESSION_JAVASCRIPT_EVENT_TAG" -// "CLICK_THROUGH_EVENT_TAG" -func (c *EventTagsListCall) EventTagTypes(eventTagTypes ...string) *EventTagsListCall { - c.urlParams_.SetMulti("eventTagTypes", append([]string{}, eventTagTypes...)) - return c -} - -// Ids sets the optional parameter "ids": Select only event tags with -// these IDs. -func (c *EventTagsListCall) Ids(ids ...int64) *EventTagsListCall { - var ids_ []string - for _, v := range ids { - ids_ = append(ids_, fmt.Sprint(v)) - } - c.urlParams_.SetMulti("ids", ids_) - return c -} - -// SearchString sets the optional parameter "searchString": Allows -// searching for objects by name or ID. Wildcards (*) are allowed. For -// example, "eventtag*2015" will return objects with names like -// "eventtag June 2015", "eventtag April 2015", or simply "eventtag -// 2015". Most of the searches also add wildcards implicitly at the -// start and the end of the search string. For example, a search string -// of "eventtag" will match objects with name "my eventtag", "eventtag -// 2015", or simply "eventtag". -func (c *EventTagsListCall) SearchString(searchString string) *EventTagsListCall { - c.urlParams_.Set("searchString", searchString) - return c -} - -// SortField sets the optional parameter "sortField": Field by which to -// sort the list. -// -// Possible values: -// -// "ID" (default) -// "NAME" -func (c *EventTagsListCall) SortField(sortField string) *EventTagsListCall { - c.urlParams_.Set("sortField", sortField) - return c -} - -// SortOrder sets the optional parameter "sortOrder": Order of sorted -// results. -// -// Possible values: -// -// "ASCENDING" (default) -// "DESCENDING" -func (c *EventTagsListCall) SortOrder(sortOrder string) *EventTagsListCall { - c.urlParams_.Set("sortOrder", sortOrder) - 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 *EventTagsListCall) Fields(s ...googleapi.Field) *EventTagsListCall { - 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 *EventTagsListCall) IfNoneMatch(entityTag string) *EventTagsListCall { - 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 *EventTagsListCall) Context(ctx context.Context) *EventTagsListCall { - 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 *EventTagsListCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *EventTagsListCall) 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, "userprofiles/{profileId}/eventTags") - 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{ - "profileId": strconv.FormatInt(c.profileId, 10), - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "dfareporting.eventTags.list" call. -// Exactly one of *EventTagsListResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *EventTagsListResponse.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 *EventTagsListCall) Do(opts ...googleapi.CallOption) (*EventTagsListResponse, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &EventTagsListResponse{ - 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 a list of event tags, possibly filtered.", - // "flatPath": "userprofiles/{profileId}/eventTags", - // "httpMethod": "GET", - // "id": "dfareporting.eventTags.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "adId": { - // "description": "Select only event tags that belong to this ad.", - // "format": "int64", - // "location": "query", - // "type": "string" - // }, - // "advertiserId": { - // "description": "Select only event tags that belong to this advertiser.", - // "format": "int64", - // "location": "query", - // "type": "string" - // }, - // "campaignId": { - // "description": "Select only event tags that belong to this campaign.", - // "format": "int64", - // "location": "query", - // "type": "string" - // }, - // "definitionsOnly": { - // "description": "Examine only the specified campaign or advertiser's event tags for matching selector criteria. When set to false, the parent advertiser and parent campaign of the specified ad or campaign is examined as well. In addition, when set to false, the status field is examined as well, along with the enabledByDefault field. This parameter can not be set to true when adId is specified as ads do not define their own even tags.", - // "location": "query", - // "type": "boolean" - // }, - // "enabled": { - // "description": "Select only enabled event tags. What is considered enabled or disabled depends on the definitionsOnly parameter. When definitionsOnly is set to true, only the specified advertiser or campaign's event tags' enabledByDefault field is examined. When definitionsOnly is set to false, the specified ad or specified campaign's parent advertiser's or parent campaign's event tags' enabledByDefault and status fields are examined as well.", - // "location": "query", - // "type": "boolean" - // }, - // "eventTagTypes": { - // "description": "Select only event tags with the specified event tag types. Event tag types can be used to specify whether to use a third-party pixel, a third-party JavaScript URL, or a third-party click-through URL for either impression or click tracking.", - // "enum": [ - // "IMPRESSION_IMAGE_EVENT_TAG", - // "IMPRESSION_JAVASCRIPT_EVENT_TAG", - // "CLICK_THROUGH_EVENT_TAG" - // ], - // "enumDescriptions": [ - // "", - // "", - // "" - // ], - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "ids": { - // "description": "Select only event tags with these IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "searchString": { - // "description": "Allows searching for objects by name or ID. Wildcards (*) are allowed. For example, \"eventtag*2015\" will return objects with names like \"eventtag June 2015\", \"eventtag April 2015\", or simply \"eventtag 2015\". Most of the searches also add wildcards implicitly at the start and the end of the search string. For example, a search string of \"eventtag\" will match objects with name \"my eventtag\", \"eventtag 2015\", or simply \"eventtag\".", - // "location": "query", - // "type": "string" - // }, - // "sortField": { - // "default": "ID", - // "description": "Field by which to sort the list.", - // "enum": [ - // "ID", - // "NAME" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "sortOrder": { - // "default": "ASCENDING", - // "description": "Order of sorted results.", - // "enum": [ - // "ASCENDING", - // "DESCENDING" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/eventTags", - // "response": { - // "$ref": "EventTagsListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.eventTags.patch": - -type EventTagsPatchCall struct { - s *Service - profileId int64 - eventtag *EventTag - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// Patch: Updates an existing event tag. This method supports patch -// semantics. -// -// - id: EventTag ID. -// - profileId: User profile ID associated with this request. -func (r *EventTagsService) Patch(profileId int64, id int64, eventtag *EventTag) *EventTagsPatchCall { - c := &EventTagsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.profileId = profileId - c.urlParams_.Set("id", fmt.Sprint(id)) - c.eventtag = eventtag - 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 *EventTagsPatchCall) Fields(s ...googleapi.Field) *EventTagsPatchCall { - 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 *EventTagsPatchCall) Context(ctx context.Context) *EventTagsPatchCall { - 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 *EventTagsPatchCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *EventTagsPatchCall) 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.eventtag) - 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, "userprofiles/{profileId}/eventTags") - 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{ - "profileId": strconv.FormatInt(c.profileId, 10), - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "dfareporting.eventTags.patch" call. -// Exactly one of *EventTag or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *EventTag.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 *EventTagsPatchCall) Do(opts ...googleapi.CallOption) (*EventTag, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &EventTag{ - 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 an existing event tag. This method supports patch semantics.", - // "flatPath": "userprofiles/{profileId}/eventTags", - // "httpMethod": "PATCH", - // "id": "dfareporting.eventTags.patch", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "EventTag ID.", - // "format": "int64", - // "location": "query", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/eventTags", - // "request": { - // "$ref": "EventTag" - // }, - // "response": { - // "$ref": "EventTag" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.eventTags.update": - -type EventTagsUpdateCall struct { - s *Service - profileId int64 - eventtag *EventTag - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// Update: Updates an existing event tag. -// -// - profileId: User profile ID associated with this request. -func (r *EventTagsService) Update(profileId int64, eventtag *EventTag) *EventTagsUpdateCall { - c := &EventTagsUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.profileId = profileId - c.eventtag = eventtag - 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 *EventTagsUpdateCall) Fields(s ...googleapi.Field) *EventTagsUpdateCall { - 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 *EventTagsUpdateCall) Context(ctx context.Context) *EventTagsUpdateCall { - 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 *EventTagsUpdateCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *EventTagsUpdateCall) 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.eventtag) - 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, "userprofiles/{profileId}/eventTags") - urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("PUT", urls, body) - if err != nil { - return nil, err - } - req.Header = reqHeaders - googleapi.Expand(req.URL, map[string]string{ - "profileId": strconv.FormatInt(c.profileId, 10), - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "dfareporting.eventTags.update" call. -// Exactly one of *EventTag or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *EventTag.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 *EventTagsUpdateCall) Do(opts ...googleapi.CallOption) (*EventTag, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &EventTag{ - 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 an existing event tag.", - // "flatPath": "userprofiles/{profileId}/eventTags", - // "httpMethod": "PUT", - // "id": "dfareporting.eventTags.update", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/eventTags", - // "request": { - // "$ref": "EventTag" - // }, - // "response": { - // "$ref": "EventTag" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.files.get": - -type FilesGetCall struct { - s *Service - reportId int64 - fileId int64 - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} - -// Get: Retrieves a report file by its report ID and file ID. This -// method supports media download. -// -// - fileId: The ID of the report file. -// - reportId: The ID of the report. -func (r *FilesService) Get(reportId int64, fileId int64) *FilesGetCall { - c := &FilesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.reportId = reportId - c.fileId = fileId - 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 *FilesGetCall) Fields(s ...googleapi.Field) *FilesGetCall { - 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 *FilesGetCall) IfNoneMatch(entityTag string) *FilesGetCall { - c.ifNoneMatch_ = entityTag - return c -} - -// Context sets the context to be used in this call's Do and Download -// methods. Any pending HTTP request will be aborted if the provided -// context is canceled. -func (c *FilesGetCall) Context(ctx context.Context) *FilesGetCall { - 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 *FilesGetCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *FilesGetCall) 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, "reports/{reportId}/files/{fileId}") - 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{ - "reportId": strconv.FormatInt(c.reportId, 10), - "fileId": strconv.FormatInt(c.fileId, 10), - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Download fetches the API endpoint's "media" value, instead of the normal -// API response value. If the returned error is nil, the Response is guaranteed to -// have a 2xx status code. Callers must close the Response.Body as usual. -func (c *FilesGetCall) Download(opts ...googleapi.CallOption) (*http.Response, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("media") - if err != nil { - return nil, err - } - if err := googleapi.CheckResponse(res); err != nil { - res.Body.Close() - return nil, gensupport.WrapError(err) - } - return res, nil -} - -// Do executes the "dfareporting.files.get" call. -// Exactly one of *File or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *File.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 *FilesGetCall) Do(opts ...googleapi.CallOption) (*File, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &File{ - 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 a report file by its report ID and file ID. This method supports media download.", - // "flatPath": "reports/{reportId}/files/{fileId}", - // "httpMethod": "GET", - // "id": "dfareporting.files.get", - // "parameterOrder": [ - // "reportId", - // "fileId" - // ], - // "parameters": { - // "fileId": { - // "description": "The ID of the report file.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "reportId": { - // "description": "The ID of the report.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "reports/{reportId}/files/{fileId}", - // "response": { - // "$ref": "File" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfareporting" - // ], - // "supportsMediaDownload": true - // } - -} - -// method id "dfareporting.files.list": - -type FilesListCall struct { - s *Service - profileId int64 - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} - -// List: Lists files for a user profile. -// -// - profileId: The Campaign Manager 360 user profile ID. -func (r *FilesService) List(profileId int64) *FilesListCall { - c := &FilesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.profileId = profileId - return c -} - -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. -func (c *FilesListCall) MaxResults(maxResults int64) *FilesListCall { - c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) - return c -} - -// PageToken sets the optional parameter "pageToken": The value of the -// nextToken from the previous result page. -func (c *FilesListCall) PageToken(pageToken string) *FilesListCall { - c.urlParams_.Set("pageToken", pageToken) - return c -} - -// Scope sets the optional parameter "scope": The scope that defines -// which results are returned. -// -// Possible values: -// -// "ALL" - All files in account. -// "MINE" (default) - My files. -// "SHARED_WITH_ME" - Files shared with me. -func (c *FilesListCall) Scope(scope string) *FilesListCall { - c.urlParams_.Set("scope", scope) - return c -} - -// SortField sets the optional parameter "sortField": The field by which -// to sort the list. -// -// Possible values: -// -// "ID" - Sort by file ID. -// "LAST_MODIFIED_TIME" (default) - Sort by 'lastmodifiedAt' field. -func (c *FilesListCall) SortField(sortField string) *FilesListCall { - c.urlParams_.Set("sortField", sortField) - return c -} - -// SortOrder sets the optional parameter "sortOrder": Order of sorted -// results. -// -// Possible values: -// -// "ASCENDING" - Ascending order. -// "DESCENDING" (default) - Descending order. -func (c *FilesListCall) SortOrder(sortOrder string) *FilesListCall { - c.urlParams_.Set("sortOrder", sortOrder) - 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 *FilesListCall) Fields(s ...googleapi.Field) *FilesListCall { - 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 *FilesListCall) IfNoneMatch(entityTag string) *FilesListCall { - 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 *FilesListCall) Context(ctx context.Context) *FilesListCall { - 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 *FilesListCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *FilesListCall) 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, "userprofiles/{profileId}/files") - 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{ - "profileId": strconv.FormatInt(c.profileId, 10), - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "dfareporting.files.list" call. -// Exactly one of *FileList or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *FileList.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 *FilesListCall) Do(opts ...googleapi.CallOption) (*FileList, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &FileList{ - ServerResponse: googleapi.ServerResponse{ - Header: res.Header, - HTTPStatusCode: res.StatusCode, - }, - } - target := &ret - if err := gensupport.DecodeResponse(target, res); err != nil { - return nil, err - } - return ret, nil - // { - // "description": "Lists files for a user profile.", - // "flatPath": "userprofiles/{profileId}/files", - // "httpMethod": "GET", - // "id": "dfareporting.files.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "maxResults": { - // "default": "10", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "10", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "The value of the nextToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "The Campaign Manager 360 user profile ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "scope": { - // "default": "MINE", - // "description": "The scope that defines which results are returned.", - // "enum": [ - // "ALL", - // "MINE", - // "SHARED_WITH_ME" - // ], - // "enumDescriptions": [ - // "All files in account.", - // "My files.", - // "Files shared with me." - // ], - // "location": "query", - // "type": "string" - // }, - // "sortField": { - // "default": "LAST_MODIFIED_TIME", - // "description": "The field by which to sort the list.", - // "enum": [ - // "ID", - // "LAST_MODIFIED_TIME" - // ], - // "enumDescriptions": [ - // "Sort by file ID.", - // "Sort by 'lastmodifiedAt' field." - // ], - // "location": "query", - // "type": "string" - // }, - // "sortOrder": { - // "default": "DESCENDING", - // "description": "Order of sorted results.", - // "enum": [ - // "ASCENDING", - // "DESCENDING" - // ], - // "enumDescriptions": [ - // "Ascending order.", - // "Descending order." - // ], - // "location": "query", - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/files", - // "response": { - // "$ref": "FileList" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfareporting" - // ] - // } - -} - -// 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 *FilesListCall) Pages(ctx context.Context, f func(*FileList) 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 "dfareporting.floodlightActivities.delete": - -type FloodlightActivitiesDeleteCall struct { - s *Service - profileId int64 - id int64 - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// Delete: Deletes an existing floodlight activity. -// -// - id: Floodlight activity ID. -// - profileId: User profile ID associated with this request. -func (r *FloodlightActivitiesService) Delete(profileId int64, id int64) *FloodlightActivitiesDeleteCall { - c := &FloodlightActivitiesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.profileId = profileId - c.id = id - 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 *FloodlightActivitiesDeleteCall) Fields(s ...googleapi.Field) *FloodlightActivitiesDeleteCall { - 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 *FloodlightActivitiesDeleteCall) Context(ctx context.Context) *FloodlightActivitiesDeleteCall { - 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 *FloodlightActivitiesDeleteCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *FloodlightActivitiesDeleteCall) 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, "userprofiles/{profileId}/floodlightActivities/{id}") - 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{ - "profileId": strconv.FormatInt(c.profileId, 10), - "id": strconv.FormatInt(c.id, 10), - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "dfareporting.floodlightActivities.delete" call. -func (c *FloodlightActivitiesDeleteCall) 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 gensupport.WrapError(err) - } - return nil - // { - // "description": "Deletes an existing floodlight activity.", - // "flatPath": "userprofiles/{profileId}/floodlightActivities/{id}", - // "httpMethod": "DELETE", - // "id": "dfareporting.floodlightActivities.delete", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Floodlight activity ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/floodlightActivities/{id}", - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.floodlightActivities.generatetag": - -type FloodlightActivitiesGeneratetagCall struct { - s *Service - profileId int64 - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// Generatetag: Generates a tag for a floodlight activity. -// -// - profileId: User profile ID associated with this request. -func (r *FloodlightActivitiesService) Generatetag(profileId int64) *FloodlightActivitiesGeneratetagCall { - c := &FloodlightActivitiesGeneratetagCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.profileId = profileId - return c -} - -// FloodlightActivityId sets the optional parameter -// "floodlightActivityId": Floodlight activity ID for which we want to -// generate a tag. -func (c *FloodlightActivitiesGeneratetagCall) FloodlightActivityId(floodlightActivityId int64) *FloodlightActivitiesGeneratetagCall { - c.urlParams_.Set("floodlightActivityId", fmt.Sprint(floodlightActivityId)) - 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 *FloodlightActivitiesGeneratetagCall) Fields(s ...googleapi.Field) *FloodlightActivitiesGeneratetagCall { - 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 *FloodlightActivitiesGeneratetagCall) Context(ctx context.Context) *FloodlightActivitiesGeneratetagCall { - 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 *FloodlightActivitiesGeneratetagCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *FloodlightActivitiesGeneratetagCall) 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, "userprofiles/{profileId}/floodlightActivities/generatetag") - 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{ - "profileId": strconv.FormatInt(c.profileId, 10), - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "dfareporting.floodlightActivities.generatetag" call. -// Exactly one of *FloodlightActivitiesGenerateTagResponse or error will -// be non-nil. Any non-2xx status code is an error. Response headers are -// in either -// *FloodlightActivitiesGenerateTagResponse.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 *FloodlightActivitiesGeneratetagCall) Do(opts ...googleapi.CallOption) (*FloodlightActivitiesGenerateTagResponse, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &FloodlightActivitiesGenerateTagResponse{ - 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": "Generates a tag for a floodlight activity.", - // "flatPath": "userprofiles/{profileId}/floodlightActivities/generatetag", - // "httpMethod": "POST", - // "id": "dfareporting.floodlightActivities.generatetag", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "floodlightActivityId": { - // "description": "Floodlight activity ID for which we want to generate a tag.", - // "format": "int64", - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/floodlightActivities/generatetag", - // "response": { - // "$ref": "FloodlightActivitiesGenerateTagResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.floodlightActivities.get": - -type FloodlightActivitiesGetCall struct { - s *Service - profileId int64 - id int64 - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} - -// Get: Gets one floodlight activity by ID. -// -// - id: Floodlight activity ID. -// - profileId: User profile ID associated with this request. -func (r *FloodlightActivitiesService) Get(profileId int64, id int64) *FloodlightActivitiesGetCall { - c := &FloodlightActivitiesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.profileId = profileId - c.id = id - 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 *FloodlightActivitiesGetCall) Fields(s ...googleapi.Field) *FloodlightActivitiesGetCall { - 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 *FloodlightActivitiesGetCall) IfNoneMatch(entityTag string) *FloodlightActivitiesGetCall { - 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 *FloodlightActivitiesGetCall) Context(ctx context.Context) *FloodlightActivitiesGetCall { - 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 *FloodlightActivitiesGetCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *FloodlightActivitiesGetCall) 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, "userprofiles/{profileId}/floodlightActivities/{id}") - 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{ - "profileId": strconv.FormatInt(c.profileId, 10), - "id": strconv.FormatInt(c.id, 10), - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "dfareporting.floodlightActivities.get" call. -// Exactly one of *FloodlightActivity or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *FloodlightActivity.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 *FloodlightActivitiesGetCall) Do(opts ...googleapi.CallOption) (*FloodlightActivity, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &FloodlightActivity{ - 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 one floodlight activity by ID.", - // "flatPath": "userprofiles/{profileId}/floodlightActivities/{id}", - // "httpMethod": "GET", - // "id": "dfareporting.floodlightActivities.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Floodlight activity ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/floodlightActivities/{id}", - // "response": { - // "$ref": "FloodlightActivity" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.floodlightActivities.insert": - -type FloodlightActivitiesInsertCall struct { - s *Service - profileId int64 - floodlightactivity *FloodlightActivity - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// Insert: Inserts a new floodlight activity. -// -// - profileId: User profile ID associated with this request. -func (r *FloodlightActivitiesService) Insert(profileId int64, floodlightactivity *FloodlightActivity) *FloodlightActivitiesInsertCall { - c := &FloodlightActivitiesInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.profileId = profileId - c.floodlightactivity = floodlightactivity - 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 *FloodlightActivitiesInsertCall) Fields(s ...googleapi.Field) *FloodlightActivitiesInsertCall { - 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 *FloodlightActivitiesInsertCall) Context(ctx context.Context) *FloodlightActivitiesInsertCall { - 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 *FloodlightActivitiesInsertCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *FloodlightActivitiesInsertCall) 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.floodlightactivity) - 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, "userprofiles/{profileId}/floodlightActivities") - 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{ - "profileId": strconv.FormatInt(c.profileId, 10), - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "dfareporting.floodlightActivities.insert" call. -// Exactly one of *FloodlightActivity or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *FloodlightActivity.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 *FloodlightActivitiesInsertCall) Do(opts ...googleapi.CallOption) (*FloodlightActivity, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &FloodlightActivity{ - 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": "Inserts a new floodlight activity.", - // "flatPath": "userprofiles/{profileId}/floodlightActivities", - // "httpMethod": "POST", - // "id": "dfareporting.floodlightActivities.insert", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/floodlightActivities", - // "request": { - // "$ref": "FloodlightActivity" - // }, - // "response": { - // "$ref": "FloodlightActivity" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.floodlightActivities.list": - -type FloodlightActivitiesListCall struct { - s *Service - profileId int64 - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} - -// List: Retrieves a list of floodlight activities, possibly filtered. -// This method supports paging. -// -// - profileId: User profile ID associated with this request. -func (r *FloodlightActivitiesService) List(profileId int64) *FloodlightActivitiesListCall { - c := &FloodlightActivitiesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.profileId = profileId - return c -} - -// AdvertiserId sets the optional parameter "advertiserId": Select only -// floodlight activities for the specified advertiser ID. Must specify -// either ids, advertiserId, or floodlightConfigurationId for a -// non-empty result. -func (c *FloodlightActivitiesListCall) AdvertiserId(advertiserId int64) *FloodlightActivitiesListCall { - c.urlParams_.Set("advertiserId", fmt.Sprint(advertiserId)) - return c -} - -// FloodlightActivityGroupIds sets the optional parameter -// "floodlightActivityGroupIds": Select only floodlight activities with -// the specified floodlight activity group IDs. -func (c *FloodlightActivitiesListCall) FloodlightActivityGroupIds(floodlightActivityGroupIds ...int64) *FloodlightActivitiesListCall { - var floodlightActivityGroupIds_ []string - for _, v := range floodlightActivityGroupIds { - floodlightActivityGroupIds_ = append(floodlightActivityGroupIds_, fmt.Sprint(v)) - } - c.urlParams_.SetMulti("floodlightActivityGroupIds", floodlightActivityGroupIds_) - return c -} - -// FloodlightActivityGroupName sets the optional parameter -// "floodlightActivityGroupName": Select only floodlight activities with -// the specified floodlight activity group name. -func (c *FloodlightActivitiesListCall) FloodlightActivityGroupName(floodlightActivityGroupName string) *FloodlightActivitiesListCall { - c.urlParams_.Set("floodlightActivityGroupName", floodlightActivityGroupName) - return c -} - -// FloodlightActivityGroupTagString sets the optional parameter -// "floodlightActivityGroupTagString": Select only floodlight activities -// with the specified floodlight activity group tag string. -func (c *FloodlightActivitiesListCall) FloodlightActivityGroupTagString(floodlightActivityGroupTagString string) *FloodlightActivitiesListCall { - c.urlParams_.Set("floodlightActivityGroupTagString", floodlightActivityGroupTagString) - return c -} - -// FloodlightActivityGroupType sets the optional parameter -// "floodlightActivityGroupType": Select only floodlight activities with -// the specified floodlight activity group type. -// -// Possible values: -// -// "COUNTER" -// "SALE" -func (c *FloodlightActivitiesListCall) FloodlightActivityGroupType(floodlightActivityGroupType string) *FloodlightActivitiesListCall { - c.urlParams_.Set("floodlightActivityGroupType", floodlightActivityGroupType) - return c -} - -// FloodlightConfigurationId sets the optional parameter -// "floodlightConfigurationId": Select only floodlight activities for -// the specified floodlight configuration ID. Must specify either ids, -// advertiserId, or floodlightConfigurationId for a non-empty result. -func (c *FloodlightActivitiesListCall) FloodlightConfigurationId(floodlightConfigurationId int64) *FloodlightActivitiesListCall { - c.urlParams_.Set("floodlightConfigurationId", fmt.Sprint(floodlightConfigurationId)) - return c -} - -// Ids sets the optional parameter "ids": Select only floodlight -// activities with the specified IDs. Must specify either ids, -// advertiserId, or floodlightConfigurationId for a non-empty result. -func (c *FloodlightActivitiesListCall) Ids(ids ...int64) *FloodlightActivitiesListCall { - var ids_ []string - for _, v := range ids { - ids_ = append(ids_, fmt.Sprint(v)) - } - c.urlParams_.SetMulti("ids", ids_) - return c -} - -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. -func (c *FloodlightActivitiesListCall) MaxResults(maxResults int64) *FloodlightActivitiesListCall { - c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) - return c -} - -// PageToken sets the optional parameter "pageToken": Value of the -// nextPageToken from the previous result page. -func (c *FloodlightActivitiesListCall) PageToken(pageToken string) *FloodlightActivitiesListCall { - c.urlParams_.Set("pageToken", pageToken) - return c -} - -// SearchString sets the optional parameter "searchString": Allows -// searching for objects by name or ID. Wildcards (*) are allowed. For -// example, "floodlightactivity*2015" will return objects with names -// like "floodlightactivity June 2015", "floodlightactivity April 2015", -// or simply "floodlightactivity 2015". Most of the searches also add -// wildcards implicitly at the start and the end of the search string. -// For example, a search string of "floodlightactivity" will match -// objects with name "my floodlightactivity activity", -// "floodlightactivity 2015", or simply "floodlightactivity". -func (c *FloodlightActivitiesListCall) SearchString(searchString string) *FloodlightActivitiesListCall { - c.urlParams_.Set("searchString", searchString) - return c -} - -// SortField sets the optional parameter "sortField": Field by which to -// sort the list. -// -// Possible values: -// -// "ID" (default) -// "NAME" -func (c *FloodlightActivitiesListCall) SortField(sortField string) *FloodlightActivitiesListCall { - c.urlParams_.Set("sortField", sortField) - return c -} - -// SortOrder sets the optional parameter "sortOrder": Order of sorted -// results. -// -// Possible values: -// -// "ASCENDING" (default) -// "DESCENDING" -func (c *FloodlightActivitiesListCall) SortOrder(sortOrder string) *FloodlightActivitiesListCall { - c.urlParams_.Set("sortOrder", sortOrder) - return c -} - -// TagString sets the optional parameter "tagString": Select only -// floodlight activities with the specified tag string. -func (c *FloodlightActivitiesListCall) TagString(tagString string) *FloodlightActivitiesListCall { - c.urlParams_.Set("tagString", tagString) - 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 *FloodlightActivitiesListCall) Fields(s ...googleapi.Field) *FloodlightActivitiesListCall { - 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 *FloodlightActivitiesListCall) IfNoneMatch(entityTag string) *FloodlightActivitiesListCall { - 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 *FloodlightActivitiesListCall) Context(ctx context.Context) *FloodlightActivitiesListCall { - 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 *FloodlightActivitiesListCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *FloodlightActivitiesListCall) 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, "userprofiles/{profileId}/floodlightActivities") - 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{ - "profileId": strconv.FormatInt(c.profileId, 10), - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "dfareporting.floodlightActivities.list" call. -// Exactly one of *FloodlightActivitiesListResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *FloodlightActivitiesListResponse.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 *FloodlightActivitiesListCall) Do(opts ...googleapi.CallOption) (*FloodlightActivitiesListResponse, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &FloodlightActivitiesListResponse{ - 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 a list of floodlight activities, possibly filtered. This method supports paging.", - // "flatPath": "userprofiles/{profileId}/floodlightActivities", - // "httpMethod": "GET", - // "id": "dfareporting.floodlightActivities.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "advertiserId": { - // "description": "Select only floodlight activities for the specified advertiser ID. Must specify either ids, advertiserId, or floodlightConfigurationId for a non-empty result.", - // "format": "int64", - // "location": "query", - // "type": "string" - // }, - // "floodlightActivityGroupIds": { - // "description": "Select only floodlight activities with the specified floodlight activity group IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "floodlightActivityGroupName": { - // "description": "Select only floodlight activities with the specified floodlight activity group name.", - // "location": "query", - // "type": "string" - // }, - // "floodlightActivityGroupTagString": { - // "description": "Select only floodlight activities with the specified floodlight activity group tag string.", - // "location": "query", - // "type": "string" - // }, - // "floodlightActivityGroupType": { - // "description": "Select only floodlight activities with the specified floodlight activity group type.", - // "enum": [ - // "COUNTER", - // "SALE" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "floodlightConfigurationId": { - // "description": "Select only floodlight activities for the specified floodlight configuration ID. Must specify either ids, advertiserId, or floodlightConfigurationId for a non-empty result.", - // "format": "int64", - // "location": "query", - // "type": "string" - // }, - // "ids": { - // "description": "Select only floodlight activities with the specified IDs. Must specify either ids, advertiserId, or floodlightConfigurationId for a non-empty result.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "maxResults": { - // "default": "1000", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "1000", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Value of the nextPageToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "searchString": { - // "description": "Allows searching for objects by name or ID. Wildcards (*) are allowed. For example, \"floodlightactivity*2015\" will return objects with names like \"floodlightactivity June 2015\", \"floodlightactivity April 2015\", or simply \"floodlightactivity 2015\". Most of the searches also add wildcards implicitly at the start and the end of the search string. For example, a search string of \"floodlightactivity\" will match objects with name \"my floodlightactivity activity\", \"floodlightactivity 2015\", or simply \"floodlightactivity\".", - // "location": "query", - // "type": "string" - // }, - // "sortField": { - // "default": "ID", - // "description": "Field by which to sort the list.", - // "enum": [ - // "ID", - // "NAME" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "sortOrder": { - // "default": "ASCENDING", - // "description": "Order of sorted results.", - // "enum": [ - // "ASCENDING", - // "DESCENDING" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "tagString": { - // "description": "Select only floodlight activities with the specified tag string.", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/floodlightActivities", - // "response": { - // "$ref": "FloodlightActivitiesListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// 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 *FloodlightActivitiesListCall) Pages(ctx context.Context, f func(*FloodlightActivitiesListResponse) 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 "dfareporting.floodlightActivities.patch": - -type FloodlightActivitiesPatchCall struct { - s *Service - profileId int64 - floodlightactivity *FloodlightActivity - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// Patch: Updates an existing floodlight activity. This method supports -// patch semantics. -// -// - id: FloodlightActivity ID. -// - profileId: User profile ID associated with this request. -func (r *FloodlightActivitiesService) Patch(profileId int64, id int64, floodlightactivity *FloodlightActivity) *FloodlightActivitiesPatchCall { - c := &FloodlightActivitiesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.profileId = profileId - c.urlParams_.Set("id", fmt.Sprint(id)) - c.floodlightactivity = floodlightactivity - 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 *FloodlightActivitiesPatchCall) Fields(s ...googleapi.Field) *FloodlightActivitiesPatchCall { - 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 *FloodlightActivitiesPatchCall) Context(ctx context.Context) *FloodlightActivitiesPatchCall { - 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 *FloodlightActivitiesPatchCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *FloodlightActivitiesPatchCall) 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.floodlightactivity) - 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, "userprofiles/{profileId}/floodlightActivities") - 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{ - "profileId": strconv.FormatInt(c.profileId, 10), - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "dfareporting.floodlightActivities.patch" call. -// Exactly one of *FloodlightActivity or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *FloodlightActivity.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 *FloodlightActivitiesPatchCall) Do(opts ...googleapi.CallOption) (*FloodlightActivity, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &FloodlightActivity{ - 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 an existing floodlight activity. This method supports patch semantics.", - // "flatPath": "userprofiles/{profileId}/floodlightActivities", - // "httpMethod": "PATCH", - // "id": "dfareporting.floodlightActivities.patch", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "FloodlightActivity ID.", - // "format": "int64", - // "location": "query", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/floodlightActivities", - // "request": { - // "$ref": "FloodlightActivity" - // }, - // "response": { - // "$ref": "FloodlightActivity" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.floodlightActivities.update": - -type FloodlightActivitiesUpdateCall struct { - s *Service - profileId int64 - floodlightactivity *FloodlightActivity - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// Update: Updates an existing floodlight activity. -// -// - profileId: User profile ID associated with this request. -func (r *FloodlightActivitiesService) Update(profileId int64, floodlightactivity *FloodlightActivity) *FloodlightActivitiesUpdateCall { - c := &FloodlightActivitiesUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.profileId = profileId - c.floodlightactivity = floodlightactivity - 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 *FloodlightActivitiesUpdateCall) Fields(s ...googleapi.Field) *FloodlightActivitiesUpdateCall { - 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 *FloodlightActivitiesUpdateCall) Context(ctx context.Context) *FloodlightActivitiesUpdateCall { - 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 *FloodlightActivitiesUpdateCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *FloodlightActivitiesUpdateCall) 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.floodlightactivity) - 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, "userprofiles/{profileId}/floodlightActivities") - urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("PUT", urls, body) - if err != nil { - return nil, err - } - req.Header = reqHeaders - googleapi.Expand(req.URL, map[string]string{ - "profileId": strconv.FormatInt(c.profileId, 10), - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "dfareporting.floodlightActivities.update" call. -// Exactly one of *FloodlightActivity or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *FloodlightActivity.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 *FloodlightActivitiesUpdateCall) Do(opts ...googleapi.CallOption) (*FloodlightActivity, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &FloodlightActivity{ - 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 an existing floodlight activity.", - // "flatPath": "userprofiles/{profileId}/floodlightActivities", - // "httpMethod": "PUT", - // "id": "dfareporting.floodlightActivities.update", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/floodlightActivities", - // "request": { - // "$ref": "FloodlightActivity" - // }, - // "response": { - // "$ref": "FloodlightActivity" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.floodlightActivityGroups.get": - -type FloodlightActivityGroupsGetCall struct { - s *Service - profileId int64 - id int64 - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} - -// Get: Gets one floodlight activity group by ID. -// -// - id: Floodlight activity Group ID. -// - profileId: User profile ID associated with this request. -func (r *FloodlightActivityGroupsService) Get(profileId int64, id int64) *FloodlightActivityGroupsGetCall { - c := &FloodlightActivityGroupsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.profileId = profileId - c.id = id - 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 *FloodlightActivityGroupsGetCall) Fields(s ...googleapi.Field) *FloodlightActivityGroupsGetCall { - 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 *FloodlightActivityGroupsGetCall) IfNoneMatch(entityTag string) *FloodlightActivityGroupsGetCall { - 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 *FloodlightActivityGroupsGetCall) Context(ctx context.Context) *FloodlightActivityGroupsGetCall { - 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 *FloodlightActivityGroupsGetCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *FloodlightActivityGroupsGetCall) 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, "userprofiles/{profileId}/floodlightActivityGroups/{id}") - 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{ - "profileId": strconv.FormatInt(c.profileId, 10), - "id": strconv.FormatInt(c.id, 10), - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "dfareporting.floodlightActivityGroups.get" call. -// Exactly one of *FloodlightActivityGroup or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *FloodlightActivityGroup.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 *FloodlightActivityGroupsGetCall) Do(opts ...googleapi.CallOption) (*FloodlightActivityGroup, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &FloodlightActivityGroup{ - 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 one floodlight activity group by ID.", - // "flatPath": "userprofiles/{profileId}/floodlightActivityGroups/{id}", - // "httpMethod": "GET", - // "id": "dfareporting.floodlightActivityGroups.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Floodlight activity Group ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/floodlightActivityGroups/{id}", - // "response": { - // "$ref": "FloodlightActivityGroup" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.floodlightActivityGroups.insert": - -type FloodlightActivityGroupsInsertCall struct { - s *Service - profileId int64 - floodlightactivitygroup *FloodlightActivityGroup - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// Insert: Inserts a new floodlight activity group. -// -// - profileId: User profile ID associated with this request. -func (r *FloodlightActivityGroupsService) Insert(profileId int64, floodlightactivitygroup *FloodlightActivityGroup) *FloodlightActivityGroupsInsertCall { - c := &FloodlightActivityGroupsInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.profileId = profileId - c.floodlightactivitygroup = floodlightactivitygroup - 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 *FloodlightActivityGroupsInsertCall) Fields(s ...googleapi.Field) *FloodlightActivityGroupsInsertCall { - 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 *FloodlightActivityGroupsInsertCall) Context(ctx context.Context) *FloodlightActivityGroupsInsertCall { - 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 *FloodlightActivityGroupsInsertCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *FloodlightActivityGroupsInsertCall) 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.floodlightactivitygroup) - 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, "userprofiles/{profileId}/floodlightActivityGroups") - 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{ - "profileId": strconv.FormatInt(c.profileId, 10), - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "dfareporting.floodlightActivityGroups.insert" call. -// Exactly one of *FloodlightActivityGroup or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *FloodlightActivityGroup.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 *FloodlightActivityGroupsInsertCall) Do(opts ...googleapi.CallOption) (*FloodlightActivityGroup, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &FloodlightActivityGroup{ - 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": "Inserts a new floodlight activity group.", - // "flatPath": "userprofiles/{profileId}/floodlightActivityGroups", - // "httpMethod": "POST", - // "id": "dfareporting.floodlightActivityGroups.insert", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/floodlightActivityGroups", - // "request": { - // "$ref": "FloodlightActivityGroup" - // }, - // "response": { - // "$ref": "FloodlightActivityGroup" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.floodlightActivityGroups.list": - -type FloodlightActivityGroupsListCall struct { - s *Service - profileId int64 - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} - -// List: Retrieves a list of floodlight activity groups, possibly -// filtered. This method supports paging. -// -// - profileId: User profile ID associated with this request. -func (r *FloodlightActivityGroupsService) List(profileId int64) *FloodlightActivityGroupsListCall { - c := &FloodlightActivityGroupsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.profileId = profileId - return c -} - -// AdvertiserId sets the optional parameter "advertiserId": Select only -// floodlight activity groups with the specified advertiser ID. Must -// specify either advertiserId or floodlightConfigurationId for a -// non-empty result. -func (c *FloodlightActivityGroupsListCall) AdvertiserId(advertiserId int64) *FloodlightActivityGroupsListCall { - c.urlParams_.Set("advertiserId", fmt.Sprint(advertiserId)) - return c -} - -// FloodlightConfigurationId sets the optional parameter -// "floodlightConfigurationId": Select only floodlight activity groups -// with the specified floodlight configuration ID. Must specify either -// advertiserId, or floodlightConfigurationId for a non-empty result. -func (c *FloodlightActivityGroupsListCall) FloodlightConfigurationId(floodlightConfigurationId int64) *FloodlightActivityGroupsListCall { - c.urlParams_.Set("floodlightConfigurationId", fmt.Sprint(floodlightConfigurationId)) - return c -} - -// Ids sets the optional parameter "ids": Select only floodlight -// activity groups with the specified IDs. Must specify either -// advertiserId or floodlightConfigurationId for a non-empty result. -func (c *FloodlightActivityGroupsListCall) Ids(ids ...int64) *FloodlightActivityGroupsListCall { - var ids_ []string - for _, v := range ids { - ids_ = append(ids_, fmt.Sprint(v)) - } - c.urlParams_.SetMulti("ids", ids_) - return c -} - -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. -func (c *FloodlightActivityGroupsListCall) MaxResults(maxResults int64) *FloodlightActivityGroupsListCall { - c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) - return c -} - -// PageToken sets the optional parameter "pageToken": Value of the -// nextPageToken from the previous result page. -func (c *FloodlightActivityGroupsListCall) PageToken(pageToken string) *FloodlightActivityGroupsListCall { - c.urlParams_.Set("pageToken", pageToken) - return c -} - -// SearchString sets the optional parameter "searchString": Allows -// searching for objects by name or ID. Wildcards (*) are allowed. For -// example, "floodlightactivitygroup*2015" will return objects with -// names like "floodlightactivitygroup June 2015", -// "floodlightactivitygroup April 2015", or simply -// "floodlightactivitygroup 2015". Most of the searches also add -// wildcards implicitly at the start and the end of the search string. -// For example, a search string of "floodlightactivitygroup" will match -// objects with name "my floodlightactivitygroup activity", -// "floodlightactivitygroup 2015", or simply "floodlightactivitygroup". -func (c *FloodlightActivityGroupsListCall) SearchString(searchString string) *FloodlightActivityGroupsListCall { - c.urlParams_.Set("searchString", searchString) - return c -} - -// SortField sets the optional parameter "sortField": Field by which to -// sort the list. -// -// Possible values: -// -// "ID" (default) -// "NAME" -func (c *FloodlightActivityGroupsListCall) SortField(sortField string) *FloodlightActivityGroupsListCall { - c.urlParams_.Set("sortField", sortField) - return c -} - -// SortOrder sets the optional parameter "sortOrder": Order of sorted -// results. -// -// Possible values: -// -// "ASCENDING" (default) -// "DESCENDING" -func (c *FloodlightActivityGroupsListCall) SortOrder(sortOrder string) *FloodlightActivityGroupsListCall { - c.urlParams_.Set("sortOrder", sortOrder) - return c -} - -// Type sets the optional parameter "type": Select only floodlight -// activity groups with the specified floodlight activity group type. -// -// Possible values: -// -// "COUNTER" -// "SALE" -func (c *FloodlightActivityGroupsListCall) Type(type_ string) *FloodlightActivityGroupsListCall { - c.urlParams_.Set("type", type_) - 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 *FloodlightActivityGroupsListCall) Fields(s ...googleapi.Field) *FloodlightActivityGroupsListCall { - 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 *FloodlightActivityGroupsListCall) IfNoneMatch(entityTag string) *FloodlightActivityGroupsListCall { - 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 *FloodlightActivityGroupsListCall) Context(ctx context.Context) *FloodlightActivityGroupsListCall { - 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 *FloodlightActivityGroupsListCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *FloodlightActivityGroupsListCall) 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, "userprofiles/{profileId}/floodlightActivityGroups") - 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{ - "profileId": strconv.FormatInt(c.profileId, 10), - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "dfareporting.floodlightActivityGroups.list" call. -// Exactly one of *FloodlightActivityGroupsListResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *FloodlightActivityGroupsListResponse.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 *FloodlightActivityGroupsListCall) Do(opts ...googleapi.CallOption) (*FloodlightActivityGroupsListResponse, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &FloodlightActivityGroupsListResponse{ - 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 a list of floodlight activity groups, possibly filtered. This method supports paging.", - // "flatPath": "userprofiles/{profileId}/floodlightActivityGroups", - // "httpMethod": "GET", - // "id": "dfareporting.floodlightActivityGroups.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "advertiserId": { - // "description": "Select only floodlight activity groups with the specified advertiser ID. Must specify either advertiserId or floodlightConfigurationId for a non-empty result.", - // "format": "int64", - // "location": "query", - // "type": "string" - // }, - // "floodlightConfigurationId": { - // "description": "Select only floodlight activity groups with the specified floodlight configuration ID. Must specify either advertiserId, or floodlightConfigurationId for a non-empty result.", - // "format": "int64", - // "location": "query", - // "type": "string" - // }, - // "ids": { - // "description": "Select only floodlight activity groups with the specified IDs. Must specify either advertiserId or floodlightConfigurationId for a non-empty result.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "maxResults": { - // "default": "1000", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "1000", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Value of the nextPageToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "searchString": { - // "description": "Allows searching for objects by name or ID. Wildcards (*) are allowed. For example, \"floodlightactivitygroup*2015\" will return objects with names like \"floodlightactivitygroup June 2015\", \"floodlightactivitygroup April 2015\", or simply \"floodlightactivitygroup 2015\". Most of the searches also add wildcards implicitly at the start and the end of the search string. For example, a search string of \"floodlightactivitygroup\" will match objects with name \"my floodlightactivitygroup activity\", \"floodlightactivitygroup 2015\", or simply \"floodlightactivitygroup\".", - // "location": "query", - // "type": "string" - // }, - // "sortField": { - // "default": "ID", - // "description": "Field by which to sort the list.", - // "enum": [ - // "ID", - // "NAME" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "sortOrder": { - // "default": "ASCENDING", - // "description": "Order of sorted results.", - // "enum": [ - // "ASCENDING", - // "DESCENDING" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "type": { - // "description": "Select only floodlight activity groups with the specified floodlight activity group type.", - // "enum": [ - // "COUNTER", - // "SALE" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/floodlightActivityGroups", - // "response": { - // "$ref": "FloodlightActivityGroupsListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// 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 *FloodlightActivityGroupsListCall) Pages(ctx context.Context, f func(*FloodlightActivityGroupsListResponse) 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 "dfareporting.floodlightActivityGroups.patch": - -type FloodlightActivityGroupsPatchCall struct { - s *Service - profileId int64 - floodlightactivitygroup *FloodlightActivityGroup - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// Patch: Updates an existing floodlight activity group. This method -// supports patch semantics. -// -// - id: FloodlightActivityGroup ID. -// - profileId: User profile ID associated with this request. -func (r *FloodlightActivityGroupsService) Patch(profileId int64, id int64, floodlightactivitygroup *FloodlightActivityGroup) *FloodlightActivityGroupsPatchCall { - c := &FloodlightActivityGroupsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.profileId = profileId - c.urlParams_.Set("id", fmt.Sprint(id)) - c.floodlightactivitygroup = floodlightactivitygroup - 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 *FloodlightActivityGroupsPatchCall) Fields(s ...googleapi.Field) *FloodlightActivityGroupsPatchCall { - 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 *FloodlightActivityGroupsPatchCall) Context(ctx context.Context) *FloodlightActivityGroupsPatchCall { - 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 *FloodlightActivityGroupsPatchCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *FloodlightActivityGroupsPatchCall) 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.floodlightactivitygroup) - 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, "userprofiles/{profileId}/floodlightActivityGroups") - 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{ - "profileId": strconv.FormatInt(c.profileId, 10), - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "dfareporting.floodlightActivityGroups.patch" call. -// Exactly one of *FloodlightActivityGroup or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *FloodlightActivityGroup.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 *FloodlightActivityGroupsPatchCall) Do(opts ...googleapi.CallOption) (*FloodlightActivityGroup, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &FloodlightActivityGroup{ - 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 an existing floodlight activity group. This method supports patch semantics.", - // "flatPath": "userprofiles/{profileId}/floodlightActivityGroups", - // "httpMethod": "PATCH", - // "id": "dfareporting.floodlightActivityGroups.patch", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "FloodlightActivityGroup ID.", - // "format": "int64", - // "location": "query", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/floodlightActivityGroups", - // "request": { - // "$ref": "FloodlightActivityGroup" - // }, - // "response": { - // "$ref": "FloodlightActivityGroup" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.floodlightActivityGroups.update": - -type FloodlightActivityGroupsUpdateCall struct { - s *Service - profileId int64 - floodlightactivitygroup *FloodlightActivityGroup - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// Update: Updates an existing floodlight activity group. -// -// - profileId: User profile ID associated with this request. -func (r *FloodlightActivityGroupsService) Update(profileId int64, floodlightactivitygroup *FloodlightActivityGroup) *FloodlightActivityGroupsUpdateCall { - c := &FloodlightActivityGroupsUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.profileId = profileId - c.floodlightactivitygroup = floodlightactivitygroup - 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 *FloodlightActivityGroupsUpdateCall) Fields(s ...googleapi.Field) *FloodlightActivityGroupsUpdateCall { - 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 *FloodlightActivityGroupsUpdateCall) Context(ctx context.Context) *FloodlightActivityGroupsUpdateCall { - 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 *FloodlightActivityGroupsUpdateCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *FloodlightActivityGroupsUpdateCall) 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.floodlightactivitygroup) - 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, "userprofiles/{profileId}/floodlightActivityGroups") - urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("PUT", urls, body) - if err != nil { - return nil, err - } - req.Header = reqHeaders - googleapi.Expand(req.URL, map[string]string{ - "profileId": strconv.FormatInt(c.profileId, 10), - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "dfareporting.floodlightActivityGroups.update" call. -// Exactly one of *FloodlightActivityGroup or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *FloodlightActivityGroup.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 *FloodlightActivityGroupsUpdateCall) Do(opts ...googleapi.CallOption) (*FloodlightActivityGroup, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &FloodlightActivityGroup{ - 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 an existing floodlight activity group.", - // "flatPath": "userprofiles/{profileId}/floodlightActivityGroups", - // "httpMethod": "PUT", - // "id": "dfareporting.floodlightActivityGroups.update", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/floodlightActivityGroups", - // "request": { - // "$ref": "FloodlightActivityGroup" - // }, - // "response": { - // "$ref": "FloodlightActivityGroup" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.floodlightConfigurations.get": - -type FloodlightConfigurationsGetCall struct { - s *Service - profileId int64 - id int64 - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} - -// Get: Gets one floodlight configuration by ID. -// -// - id: Floodlight configuration ID. -// - profileId: User profile ID associated with this request. -func (r *FloodlightConfigurationsService) Get(profileId int64, id int64) *FloodlightConfigurationsGetCall { - c := &FloodlightConfigurationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.profileId = profileId - c.id = id - 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 *FloodlightConfigurationsGetCall) Fields(s ...googleapi.Field) *FloodlightConfigurationsGetCall { - 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 *FloodlightConfigurationsGetCall) IfNoneMatch(entityTag string) *FloodlightConfigurationsGetCall { - 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 *FloodlightConfigurationsGetCall) Context(ctx context.Context) *FloodlightConfigurationsGetCall { - 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 *FloodlightConfigurationsGetCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *FloodlightConfigurationsGetCall) 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, "userprofiles/{profileId}/floodlightConfigurations/{id}") - 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{ - "profileId": strconv.FormatInt(c.profileId, 10), - "id": strconv.FormatInt(c.id, 10), - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "dfareporting.floodlightConfigurations.get" call. -// Exactly one of *FloodlightConfiguration or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *FloodlightConfiguration.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 *FloodlightConfigurationsGetCall) Do(opts ...googleapi.CallOption) (*FloodlightConfiguration, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &FloodlightConfiguration{ - 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 one floodlight configuration by ID.", - // "flatPath": "userprofiles/{profileId}/floodlightConfigurations/{id}", - // "httpMethod": "GET", - // "id": "dfareporting.floodlightConfigurations.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Floodlight configuration ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/floodlightConfigurations/{id}", - // "response": { - // "$ref": "FloodlightConfiguration" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.floodlightConfigurations.list": - -type FloodlightConfigurationsListCall struct { - s *Service - profileId int64 - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} - -// List: Retrieves a list of floodlight configurations, possibly -// filtered. -// -// - profileId: User profile ID associated with this request. -func (r *FloodlightConfigurationsService) List(profileId int64) *FloodlightConfigurationsListCall { - c := &FloodlightConfigurationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.profileId = profileId - return c -} - -// Ids sets the optional parameter "ids": Set of IDs of floodlight -// configurations to retrieve. Required field; otherwise an empty list -// will be returned. -func (c *FloodlightConfigurationsListCall) Ids(ids ...int64) *FloodlightConfigurationsListCall { - var ids_ []string - for _, v := range ids { - ids_ = append(ids_, fmt.Sprint(v)) - } - c.urlParams_.SetMulti("ids", ids_) - 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 *FloodlightConfigurationsListCall) Fields(s ...googleapi.Field) *FloodlightConfigurationsListCall { - 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 *FloodlightConfigurationsListCall) IfNoneMatch(entityTag string) *FloodlightConfigurationsListCall { - 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 *FloodlightConfigurationsListCall) Context(ctx context.Context) *FloodlightConfigurationsListCall { - 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 *FloodlightConfigurationsListCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *FloodlightConfigurationsListCall) 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, "userprofiles/{profileId}/floodlightConfigurations") - 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{ - "profileId": strconv.FormatInt(c.profileId, 10), - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "dfareporting.floodlightConfigurations.list" call. -// Exactly one of *FloodlightConfigurationsListResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *FloodlightConfigurationsListResponse.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 *FloodlightConfigurationsListCall) Do(opts ...googleapi.CallOption) (*FloodlightConfigurationsListResponse, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &FloodlightConfigurationsListResponse{ - 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 a list of floodlight configurations, possibly filtered.", - // "flatPath": "userprofiles/{profileId}/floodlightConfigurations", - // "httpMethod": "GET", - // "id": "dfareporting.floodlightConfigurations.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "ids": { - // "description": "Set of IDs of floodlight configurations to retrieve. Required field; otherwise an empty list will be returned.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/floodlightConfigurations", - // "response": { - // "$ref": "FloodlightConfigurationsListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.floodlightConfigurations.patch": - -type FloodlightConfigurationsPatchCall struct { - s *Service - profileId int64 - floodlightconfiguration *FloodlightConfiguration - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// Patch: Updates an existing floodlight configuration. This method -// supports patch semantics. -// -// - id: FloodlightConfiguration ID. -// - profileId: User profile ID associated with this request. -func (r *FloodlightConfigurationsService) Patch(profileId int64, id int64, floodlightconfiguration *FloodlightConfiguration) *FloodlightConfigurationsPatchCall { - c := &FloodlightConfigurationsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.profileId = profileId - c.urlParams_.Set("id", fmt.Sprint(id)) - c.floodlightconfiguration = floodlightconfiguration - 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 *FloodlightConfigurationsPatchCall) Fields(s ...googleapi.Field) *FloodlightConfigurationsPatchCall { - 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 *FloodlightConfigurationsPatchCall) Context(ctx context.Context) *FloodlightConfigurationsPatchCall { - 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 *FloodlightConfigurationsPatchCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *FloodlightConfigurationsPatchCall) 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.floodlightconfiguration) - 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, "userprofiles/{profileId}/floodlightConfigurations") - 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{ - "profileId": strconv.FormatInt(c.profileId, 10), - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "dfareporting.floodlightConfigurations.patch" call. -// Exactly one of *FloodlightConfiguration or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *FloodlightConfiguration.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 *FloodlightConfigurationsPatchCall) Do(opts ...googleapi.CallOption) (*FloodlightConfiguration, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &FloodlightConfiguration{ - 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 an existing floodlight configuration. This method supports patch semantics.", - // "flatPath": "userprofiles/{profileId}/floodlightConfigurations", - // "httpMethod": "PATCH", - // "id": "dfareporting.floodlightConfigurations.patch", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "FloodlightConfiguration ID.", - // "format": "int64", - // "location": "query", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/floodlightConfigurations", - // "request": { - // "$ref": "FloodlightConfiguration" - // }, - // "response": { - // "$ref": "FloodlightConfiguration" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.floodlightConfigurations.update": - -type FloodlightConfigurationsUpdateCall struct { - s *Service - profileId int64 - floodlightconfiguration *FloodlightConfiguration - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// Update: Updates an existing floodlight configuration. -// -// - profileId: User profile ID associated with this request. -func (r *FloodlightConfigurationsService) Update(profileId int64, floodlightconfiguration *FloodlightConfiguration) *FloodlightConfigurationsUpdateCall { - c := &FloodlightConfigurationsUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.profileId = profileId - c.floodlightconfiguration = floodlightconfiguration - 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 *FloodlightConfigurationsUpdateCall) Fields(s ...googleapi.Field) *FloodlightConfigurationsUpdateCall { - 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 *FloodlightConfigurationsUpdateCall) Context(ctx context.Context) *FloodlightConfigurationsUpdateCall { - 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 *FloodlightConfigurationsUpdateCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *FloodlightConfigurationsUpdateCall) 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.floodlightconfiguration) - 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, "userprofiles/{profileId}/floodlightConfigurations") - urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("PUT", urls, body) - if err != nil { - return nil, err - } - req.Header = reqHeaders - googleapi.Expand(req.URL, map[string]string{ - "profileId": strconv.FormatInt(c.profileId, 10), - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "dfareporting.floodlightConfigurations.update" call. -// Exactly one of *FloodlightConfiguration or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *FloodlightConfiguration.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 *FloodlightConfigurationsUpdateCall) Do(opts ...googleapi.CallOption) (*FloodlightConfiguration, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &FloodlightConfiguration{ - 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 an existing floodlight configuration.", - // "flatPath": "userprofiles/{profileId}/floodlightConfigurations", - // "httpMethod": "PUT", - // "id": "dfareporting.floodlightConfigurations.update", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/floodlightConfigurations", - // "request": { - // "$ref": "FloodlightConfiguration" - // }, - // "response": { - // "$ref": "FloodlightConfiguration" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.inventoryItems.get": - -type InventoryItemsGetCall struct { - s *Service - profileId int64 - projectId int64 - id int64 - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} - -// Get: Gets one inventory item by ID. -// -// - id: Inventory item ID. -// - profileId: User profile ID associated with this request. -// - projectId: Project ID for order documents. -func (r *InventoryItemsService) Get(profileId int64, projectId int64, id int64) *InventoryItemsGetCall { - c := &InventoryItemsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.profileId = profileId - c.projectId = projectId - c.id = id - 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 *InventoryItemsGetCall) Fields(s ...googleapi.Field) *InventoryItemsGetCall { - 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 *InventoryItemsGetCall) IfNoneMatch(entityTag string) *InventoryItemsGetCall { - 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 *InventoryItemsGetCall) Context(ctx context.Context) *InventoryItemsGetCall { - 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 *InventoryItemsGetCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *InventoryItemsGetCall) 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, "userprofiles/{profileId}/projects/{projectId}/inventoryItems/{id}") - 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{ - "profileId": strconv.FormatInt(c.profileId, 10), - "projectId": strconv.FormatInt(c.projectId, 10), - "id": strconv.FormatInt(c.id, 10), - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "dfareporting.inventoryItems.get" call. -// Exactly one of *InventoryItem or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *InventoryItem.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 *InventoryItemsGetCall) Do(opts ...googleapi.CallOption) (*InventoryItem, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &InventoryItem{ - 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 one inventory item by ID.", - // "flatPath": "userprofiles/{profileId}/projects/{projectId}/inventoryItems/{id}", - // "httpMethod": "GET", - // "id": "dfareporting.inventoryItems.get", - // "parameterOrder": [ - // "profileId", - // "projectId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Inventory item ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "projectId": { - // "description": "Project ID for order documents.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/projects/{projectId}/inventoryItems/{id}", - // "response": { - // "$ref": "InventoryItem" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.inventoryItems.list": - -type InventoryItemsListCall struct { - s *Service - profileId int64 - projectId int64 - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} - -// List: Retrieves a list of inventory items, possibly filtered. This -// method supports paging. -// -// - profileId: User profile ID associated with this request. -// - projectId: Project ID for order documents. -func (r *InventoryItemsService) List(profileId int64, projectId int64) *InventoryItemsListCall { - c := &InventoryItemsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.profileId = profileId - c.projectId = projectId - return c -} - -// Ids sets the optional parameter "ids": Select only inventory items -// with these IDs. -func (c *InventoryItemsListCall) Ids(ids ...int64) *InventoryItemsListCall { - var ids_ []string - for _, v := range ids { - ids_ = append(ids_, fmt.Sprint(v)) - } - c.urlParams_.SetMulti("ids", ids_) - return c -} - -// InPlan sets the optional parameter "inPlan": Select only inventory -// items that are in plan. -func (c *InventoryItemsListCall) InPlan(inPlan bool) *InventoryItemsListCall { - c.urlParams_.Set("inPlan", fmt.Sprint(inPlan)) - return c -} - -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. -func (c *InventoryItemsListCall) MaxResults(maxResults int64) *InventoryItemsListCall { - c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) - return c -} - -// OrderId sets the optional parameter "orderId": Select only inventory -// items that belong to specified orders. -func (c *InventoryItemsListCall) OrderId(orderId ...int64) *InventoryItemsListCall { - var orderId_ []string - for _, v := range orderId { - orderId_ = append(orderId_, fmt.Sprint(v)) - } - c.urlParams_.SetMulti("orderId", orderId_) - return c -} - -// PageToken sets the optional parameter "pageToken": Value of the -// nextPageToken from the previous result page. -func (c *InventoryItemsListCall) PageToken(pageToken string) *InventoryItemsListCall { - c.urlParams_.Set("pageToken", pageToken) - return c -} - -// SiteId sets the optional parameter "siteId": Select only inventory -// items that are associated with these sites. -func (c *InventoryItemsListCall) SiteId(siteId ...int64) *InventoryItemsListCall { - var siteId_ []string - for _, v := range siteId { - siteId_ = append(siteId_, fmt.Sprint(v)) - } - c.urlParams_.SetMulti("siteId", siteId_) - return c -} - -// SortField sets the optional parameter "sortField": Field by which to -// sort the list. -// -// Possible values: -// -// "ID" (default) -// "NAME" -func (c *InventoryItemsListCall) SortField(sortField string) *InventoryItemsListCall { - c.urlParams_.Set("sortField", sortField) - return c -} - -// SortOrder sets the optional parameter "sortOrder": Order of sorted -// results. -// -// Possible values: -// -// "ASCENDING" (default) -// "DESCENDING" -func (c *InventoryItemsListCall) SortOrder(sortOrder string) *InventoryItemsListCall { - c.urlParams_.Set("sortOrder", sortOrder) - return c -} - -// Type sets the optional parameter "type": Select only inventory items -// with this type. -// -// Possible values: -// -// "PLANNING_PLACEMENT_TYPE_REGULAR" -// "PLANNING_PLACEMENT_TYPE_CREDIT" -func (c *InventoryItemsListCall) Type(type_ string) *InventoryItemsListCall { - c.urlParams_.Set("type", type_) - 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 *InventoryItemsListCall) Fields(s ...googleapi.Field) *InventoryItemsListCall { - 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 *InventoryItemsListCall) IfNoneMatch(entityTag string) *InventoryItemsListCall { - 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 *InventoryItemsListCall) Context(ctx context.Context) *InventoryItemsListCall { - 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 *InventoryItemsListCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *InventoryItemsListCall) 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, "userprofiles/{profileId}/projects/{projectId}/inventoryItems") - 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{ - "profileId": strconv.FormatInt(c.profileId, 10), - "projectId": strconv.FormatInt(c.projectId, 10), - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "dfareporting.inventoryItems.list" call. -// Exactly one of *InventoryItemsListResponse or error will be non-nil. -// Any non-2xx status code is an error. Response headers are in either -// *InventoryItemsListResponse.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 *InventoryItemsListCall) Do(opts ...googleapi.CallOption) (*InventoryItemsListResponse, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &InventoryItemsListResponse{ - 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 a list of inventory items, possibly filtered. This method supports paging.", - // "flatPath": "userprofiles/{profileId}/projects/{projectId}/inventoryItems", - // "httpMethod": "GET", - // "id": "dfareporting.inventoryItems.list", - // "parameterOrder": [ - // "profileId", - // "projectId" - // ], - // "parameters": { - // "ids": { - // "description": "Select only inventory items with these IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "inPlan": { - // "description": "Select only inventory items that are in plan.", - // "location": "query", - // "type": "boolean" - // }, - // "maxResults": { - // "default": "1000", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "1000", - // "minimum": "0", - // "type": "integer" - // }, - // "orderId": { - // "description": "Select only inventory items that belong to specified orders.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "pageToken": { - // "description": "Value of the nextPageToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "projectId": { - // "description": "Project ID for order documents.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "siteId": { - // "description": "Select only inventory items that are associated with these sites.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "sortField": { - // "default": "ID", - // "description": "Field by which to sort the list.", - // "enum": [ - // "ID", - // "NAME" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "sortOrder": { - // "default": "ASCENDING", - // "description": "Order of sorted results.", - // "enum": [ - // "ASCENDING", - // "DESCENDING" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "type": { - // "description": "Select only inventory items with this type.", - // "enum": [ - // "PLANNING_PLACEMENT_TYPE_REGULAR", - // "PLANNING_PLACEMENT_TYPE_CREDIT" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/projects/{projectId}/inventoryItems", - // "response": { - // "$ref": "InventoryItemsListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// 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 *InventoryItemsListCall) Pages(ctx context.Context, f func(*InventoryItemsListResponse) 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 "dfareporting.languages.list": - -type LanguagesListCall struct { - s *Service - profileId int64 - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} - -// List: Retrieves a list of languages. -// -// - profileId: User profile ID associated with this request. -func (r *LanguagesService) List(profileId int64) *LanguagesListCall { - c := &LanguagesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.profileId = profileId - 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 *LanguagesListCall) Fields(s ...googleapi.Field) *LanguagesListCall { - 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 *LanguagesListCall) IfNoneMatch(entityTag string) *LanguagesListCall { - 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 *LanguagesListCall) Context(ctx context.Context) *LanguagesListCall { - 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 *LanguagesListCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *LanguagesListCall) 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, "userprofiles/{profileId}/languages") - 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{ - "profileId": strconv.FormatInt(c.profileId, 10), - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "dfareporting.languages.list" call. -// Exactly one of *LanguagesListResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *LanguagesListResponse.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 *LanguagesListCall) Do(opts ...googleapi.CallOption) (*LanguagesListResponse, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &LanguagesListResponse{ - 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 a list of languages.", - // "flatPath": "userprofiles/{profileId}/languages", - // "httpMethod": "GET", - // "id": "dfareporting.languages.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/languages", - // "response": { - // "$ref": "LanguagesListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.metros.list": - -type MetrosListCall struct { - s *Service - profileId int64 - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} - -// List: Retrieves a list of metros. -// -// - profileId: User profile ID associated with this request. -func (r *MetrosService) List(profileId int64) *MetrosListCall { - c := &MetrosListCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.profileId = profileId - 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 *MetrosListCall) Fields(s ...googleapi.Field) *MetrosListCall { - 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 *MetrosListCall) IfNoneMatch(entityTag string) *MetrosListCall { - 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 *MetrosListCall) Context(ctx context.Context) *MetrosListCall { - 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 *MetrosListCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *MetrosListCall) 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, "userprofiles/{profileId}/metros") - 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{ - "profileId": strconv.FormatInt(c.profileId, 10), - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "dfareporting.metros.list" call. -// Exactly one of *MetrosListResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *MetrosListResponse.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 *MetrosListCall) Do(opts ...googleapi.CallOption) (*MetrosListResponse, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &MetrosListResponse{ - 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 a list of metros.", - // "flatPath": "userprofiles/{profileId}/metros", - // "httpMethod": "GET", - // "id": "dfareporting.metros.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/metros", - // "response": { - // "$ref": "MetrosListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.mobileApps.get": - -type MobileAppsGetCall struct { - s *Service - profileId int64 - id string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} - -// Get: Gets one mobile app by ID. -// -// - id: Mobile app ID. -// - profileId: User profile ID associated with this request. -func (r *MobileAppsService) Get(profileId int64, id string) *MobileAppsGetCall { - c := &MobileAppsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.profileId = profileId - c.id = id - 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 *MobileAppsGetCall) Fields(s ...googleapi.Field) *MobileAppsGetCall { - 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 *MobileAppsGetCall) IfNoneMatch(entityTag string) *MobileAppsGetCall { - 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 *MobileAppsGetCall) Context(ctx context.Context) *MobileAppsGetCall { - 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 *MobileAppsGetCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *MobileAppsGetCall) 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, "userprofiles/{profileId}/mobileApps/{id}") - 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{ - "profileId": strconv.FormatInt(c.profileId, 10), - "id": c.id, - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "dfareporting.mobileApps.get" call. -// Exactly one of *MobileApp or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *MobileApp.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 *MobileAppsGetCall) Do(opts ...googleapi.CallOption) (*MobileApp, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &MobileApp{ - 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 one mobile app by ID.", - // "flatPath": "userprofiles/{profileId}/mobileApps/{id}", - // "httpMethod": "GET", - // "id": "dfareporting.mobileApps.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Mobile app ID.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/mobileApps/{id}", - // "response": { - // "$ref": "MobileApp" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.mobileApps.list": - -type MobileAppsListCall struct { - s *Service - profileId int64 - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} - -// List: Retrieves list of available mobile apps. -// -// - profileId: User profile ID associated with this request. -func (r *MobileAppsService) List(profileId int64) *MobileAppsListCall { - c := &MobileAppsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.profileId = profileId - return c -} - -// Directories sets the optional parameter "directories": Select only -// apps from these directories. -// -// Possible values: -// -// "UNKNOWN" -// "APPLE_APP_STORE" -// "GOOGLE_PLAY_STORE" -// "ROKU_APP_STORE" -// "AMAZON_FIRETV_APP_STORE" -// "PLAYSTATION_APP_STORE" -// "APPLE_TV_APP_STORE" -// "XBOX_APP_STORE" -// "SAMSUNG_TV_APP_STORE" -// "ANDROID_TV_APP_STORE" -// "GENERIC_CTV_APP_STORE" -func (c *MobileAppsListCall) Directories(directories ...string) *MobileAppsListCall { - c.urlParams_.SetMulti("directories", append([]string{}, directories...)) - return c -} - -// Ids sets the optional parameter "ids": Select only apps with these -// IDs. -func (c *MobileAppsListCall) Ids(ids ...string) *MobileAppsListCall { - c.urlParams_.SetMulti("ids", append([]string{}, ids...)) - return c -} - -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. -func (c *MobileAppsListCall) MaxResults(maxResults int64) *MobileAppsListCall { - c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) - return c -} - -// PageToken sets the optional parameter "pageToken": Value of the -// nextPageToken from the previous result page. -func (c *MobileAppsListCall) PageToken(pageToken string) *MobileAppsListCall { - c.urlParams_.Set("pageToken", pageToken) - return c -} - -// SearchString sets the optional parameter "searchString": Allows -// searching for objects by name or ID. Wildcards (*) are allowed. For -// example, "app*2015" will return objects with names like "app Jan -// 2018", "app Jan 2018", or simply "app 2018". Most of the searches -// also add wildcards implicitly at the start and the end of the search -// string. For example, a search string of "app" will match objects with -// name "my app", "app 2018", or simply "app". -func (c *MobileAppsListCall) SearchString(searchString string) *MobileAppsListCall { - c.urlParams_.Set("searchString", searchString) - 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 *MobileAppsListCall) Fields(s ...googleapi.Field) *MobileAppsListCall { - 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 *MobileAppsListCall) IfNoneMatch(entityTag string) *MobileAppsListCall { - 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 *MobileAppsListCall) Context(ctx context.Context) *MobileAppsListCall { - 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 *MobileAppsListCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *MobileAppsListCall) 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, "userprofiles/{profileId}/mobileApps") - 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{ - "profileId": strconv.FormatInt(c.profileId, 10), - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "dfareporting.mobileApps.list" call. -// Exactly one of *MobileAppsListResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *MobileAppsListResponse.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 *MobileAppsListCall) Do(opts ...googleapi.CallOption) (*MobileAppsListResponse, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &MobileAppsListResponse{ - 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 list of available mobile apps.", - // "flatPath": "userprofiles/{profileId}/mobileApps", - // "httpMethod": "GET", - // "id": "dfareporting.mobileApps.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "directories": { - // "description": "Select only apps from these directories.", - // "enum": [ - // "UNKNOWN", - // "APPLE_APP_STORE", - // "GOOGLE_PLAY_STORE", - // "ROKU_APP_STORE", - // "AMAZON_FIRETV_APP_STORE", - // "PLAYSTATION_APP_STORE", - // "APPLE_TV_APP_STORE", - // "XBOX_APP_STORE", - // "SAMSUNG_TV_APP_STORE", - // "ANDROID_TV_APP_STORE", - // "GENERIC_CTV_APP_STORE" - // ], - // "enumDescriptions": [ - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "" - // ], - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "ids": { - // "description": "Select only apps with these IDs.", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "maxResults": { - // "default": "1000", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "1000", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Value of the nextPageToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "searchString": { - // "description": "Allows searching for objects by name or ID. Wildcards (*) are allowed. For example, \"app*2015\" will return objects with names like \"app Jan 2018\", \"app Jan 2018\", or simply \"app 2018\". Most of the searches also add wildcards implicitly at the start and the end of the search string. For example, a search string of \"app\" will match objects with name \"my app\", \"app 2018\", or simply \"app\".", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/mobileApps", - // "response": { - // "$ref": "MobileAppsListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// 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 *MobileAppsListCall) Pages(ctx context.Context, f func(*MobileAppsListResponse) 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 "dfareporting.mobileCarriers.get": - -type MobileCarriersGetCall struct { - s *Service - profileId int64 - id int64 - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} - -// Get: Gets one mobile carrier by ID. -// -// - id: Mobile carrier ID. -// - profileId: User profile ID associated with this request. -func (r *MobileCarriersService) Get(profileId int64, id int64) *MobileCarriersGetCall { - c := &MobileCarriersGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.profileId = profileId - c.id = id - 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 *MobileCarriersGetCall) Fields(s ...googleapi.Field) *MobileCarriersGetCall { - 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 *MobileCarriersGetCall) IfNoneMatch(entityTag string) *MobileCarriersGetCall { - 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 *MobileCarriersGetCall) Context(ctx context.Context) *MobileCarriersGetCall { - 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 *MobileCarriersGetCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *MobileCarriersGetCall) 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, "userprofiles/{profileId}/mobileCarriers/{id}") - 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{ - "profileId": strconv.FormatInt(c.profileId, 10), - "id": strconv.FormatInt(c.id, 10), - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "dfareporting.mobileCarriers.get" call. -// Exactly one of *MobileCarrier or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *MobileCarrier.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 *MobileCarriersGetCall) Do(opts ...googleapi.CallOption) (*MobileCarrier, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &MobileCarrier{ - 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 one mobile carrier by ID.", - // "flatPath": "userprofiles/{profileId}/mobileCarriers/{id}", - // "httpMethod": "GET", - // "id": "dfareporting.mobileCarriers.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Mobile carrier ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/mobileCarriers/{id}", - // "response": { - // "$ref": "MobileCarrier" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.mobileCarriers.list": - -type MobileCarriersListCall struct { - s *Service - profileId int64 - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} - -// List: Retrieves a list of mobile carriers. -// -// - profileId: User profile ID associated with this request. -func (r *MobileCarriersService) List(profileId int64) *MobileCarriersListCall { - c := &MobileCarriersListCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.profileId = profileId - 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 *MobileCarriersListCall) Fields(s ...googleapi.Field) *MobileCarriersListCall { - 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 *MobileCarriersListCall) IfNoneMatch(entityTag string) *MobileCarriersListCall { - 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 *MobileCarriersListCall) Context(ctx context.Context) *MobileCarriersListCall { - 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 *MobileCarriersListCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *MobileCarriersListCall) 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, "userprofiles/{profileId}/mobileCarriers") - 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{ - "profileId": strconv.FormatInt(c.profileId, 10), - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "dfareporting.mobileCarriers.list" call. -// Exactly one of *MobileCarriersListResponse or error will be non-nil. -// Any non-2xx status code is an error. Response headers are in either -// *MobileCarriersListResponse.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 *MobileCarriersListCall) Do(opts ...googleapi.CallOption) (*MobileCarriersListResponse, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &MobileCarriersListResponse{ - 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 a list of mobile carriers.", - // "flatPath": "userprofiles/{profileId}/mobileCarriers", - // "httpMethod": "GET", - // "id": "dfareporting.mobileCarriers.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/mobileCarriers", - // "response": { - // "$ref": "MobileCarriersListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.operatingSystemVersions.get": - -type OperatingSystemVersionsGetCall struct { - s *Service - profileId int64 - id int64 - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} - -// Get: Gets one operating system version by ID. -// -// - id: Operating system version ID. -// - profileId: User profile ID associated with this request. -func (r *OperatingSystemVersionsService) Get(profileId int64, id int64) *OperatingSystemVersionsGetCall { - c := &OperatingSystemVersionsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.profileId = profileId - c.id = id - 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 *OperatingSystemVersionsGetCall) Fields(s ...googleapi.Field) *OperatingSystemVersionsGetCall { - 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 *OperatingSystemVersionsGetCall) IfNoneMatch(entityTag string) *OperatingSystemVersionsGetCall { - 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 *OperatingSystemVersionsGetCall) Context(ctx context.Context) *OperatingSystemVersionsGetCall { - 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 *OperatingSystemVersionsGetCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *OperatingSystemVersionsGetCall) 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, "userprofiles/{profileId}/operatingSystemVersions/{id}") - 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{ - "profileId": strconv.FormatInt(c.profileId, 10), - "id": strconv.FormatInt(c.id, 10), - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "dfareporting.operatingSystemVersions.get" call. -// Exactly one of *OperatingSystemVersion or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *OperatingSystemVersion.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 *OperatingSystemVersionsGetCall) Do(opts ...googleapi.CallOption) (*OperatingSystemVersion, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &OperatingSystemVersion{ - 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 one operating system version by ID.", - // "flatPath": "userprofiles/{profileId}/operatingSystemVersions/{id}", - // "httpMethod": "GET", - // "id": "dfareporting.operatingSystemVersions.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Operating system version ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/operatingSystemVersions/{id}", - // "response": { - // "$ref": "OperatingSystemVersion" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.operatingSystemVersions.list": - -type OperatingSystemVersionsListCall struct { - s *Service - profileId int64 - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} - -// List: Retrieves a list of operating system versions. -// -// - profileId: User profile ID associated with this request. -func (r *OperatingSystemVersionsService) List(profileId int64) *OperatingSystemVersionsListCall { - c := &OperatingSystemVersionsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.profileId = profileId - 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 *OperatingSystemVersionsListCall) Fields(s ...googleapi.Field) *OperatingSystemVersionsListCall { - 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 *OperatingSystemVersionsListCall) IfNoneMatch(entityTag string) *OperatingSystemVersionsListCall { - 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 *OperatingSystemVersionsListCall) Context(ctx context.Context) *OperatingSystemVersionsListCall { - 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 *OperatingSystemVersionsListCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *OperatingSystemVersionsListCall) 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, "userprofiles/{profileId}/operatingSystemVersions") - 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{ - "profileId": strconv.FormatInt(c.profileId, 10), - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "dfareporting.operatingSystemVersions.list" call. -// Exactly one of *OperatingSystemVersionsListResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *OperatingSystemVersionsListResponse.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 *OperatingSystemVersionsListCall) Do(opts ...googleapi.CallOption) (*OperatingSystemVersionsListResponse, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &OperatingSystemVersionsListResponse{ - 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 a list of operating system versions.", - // "flatPath": "userprofiles/{profileId}/operatingSystemVersions", - // "httpMethod": "GET", - // "id": "dfareporting.operatingSystemVersions.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/operatingSystemVersions", - // "response": { - // "$ref": "OperatingSystemVersionsListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.operatingSystems.get": - -type OperatingSystemsGetCall struct { - s *Service - profileId int64 - dartId int64 - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} - -// Get: Gets one operating system by DART ID. -// -// - dartId: Operating system DART ID. -// - profileId: User profile ID associated with this request. -func (r *OperatingSystemsService) Get(profileId int64, dartId int64) *OperatingSystemsGetCall { - c := &OperatingSystemsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.profileId = profileId - c.dartId = dartId - 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 *OperatingSystemsGetCall) Fields(s ...googleapi.Field) *OperatingSystemsGetCall { - 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 *OperatingSystemsGetCall) IfNoneMatch(entityTag string) *OperatingSystemsGetCall { - 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 *OperatingSystemsGetCall) Context(ctx context.Context) *OperatingSystemsGetCall { - 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 *OperatingSystemsGetCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *OperatingSystemsGetCall) 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, "userprofiles/{profileId}/operatingSystems/{dartId}") - 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{ - "profileId": strconv.FormatInt(c.profileId, 10), - "dartId": strconv.FormatInt(c.dartId, 10), - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "dfareporting.operatingSystems.get" call. -// Exactly one of *OperatingSystem or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *OperatingSystem.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 *OperatingSystemsGetCall) Do(opts ...googleapi.CallOption) (*OperatingSystem, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &OperatingSystem{ - 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 one operating system by DART ID.", - // "flatPath": "userprofiles/{profileId}/operatingSystems/{dartId}", - // "httpMethod": "GET", - // "id": "dfareporting.operatingSystems.get", - // "parameterOrder": [ - // "profileId", - // "dartId" - // ], - // "parameters": { - // "dartId": { - // "description": "Operating system DART ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/operatingSystems/{dartId}", - // "response": { - // "$ref": "OperatingSystem" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.operatingSystems.list": - -type OperatingSystemsListCall struct { - s *Service - profileId int64 - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} - -// List: Retrieves a list of operating systems. -// -// - profileId: User profile ID associated with this request. -func (r *OperatingSystemsService) List(profileId int64) *OperatingSystemsListCall { - c := &OperatingSystemsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.profileId = profileId - 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 *OperatingSystemsListCall) Fields(s ...googleapi.Field) *OperatingSystemsListCall { - 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 *OperatingSystemsListCall) IfNoneMatch(entityTag string) *OperatingSystemsListCall { - 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 *OperatingSystemsListCall) Context(ctx context.Context) *OperatingSystemsListCall { - 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 *OperatingSystemsListCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *OperatingSystemsListCall) 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, "userprofiles/{profileId}/operatingSystems") - 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{ - "profileId": strconv.FormatInt(c.profileId, 10), - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "dfareporting.operatingSystems.list" call. -// Exactly one of *OperatingSystemsListResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *OperatingSystemsListResponse.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 *OperatingSystemsListCall) Do(opts ...googleapi.CallOption) (*OperatingSystemsListResponse, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &OperatingSystemsListResponse{ - 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 a list of operating systems.", - // "flatPath": "userprofiles/{profileId}/operatingSystems", - // "httpMethod": "GET", - // "id": "dfareporting.operatingSystems.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/operatingSystems", - // "response": { - // "$ref": "OperatingSystemsListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.orderDocuments.get": - -type OrderDocumentsGetCall struct { - s *Service - profileId int64 - projectId int64 - id int64 - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} - -// Get: Gets one order document by ID. -// -// - id: Order document ID. -// - profileId: User profile ID associated with this request. -// - projectId: Project ID for order documents. -func (r *OrderDocumentsService) Get(profileId int64, projectId int64, id int64) *OrderDocumentsGetCall { - c := &OrderDocumentsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.profileId = profileId - c.projectId = projectId - c.id = id - 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 *OrderDocumentsGetCall) Fields(s ...googleapi.Field) *OrderDocumentsGetCall { - 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 *OrderDocumentsGetCall) IfNoneMatch(entityTag string) *OrderDocumentsGetCall { - 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 *OrderDocumentsGetCall) Context(ctx context.Context) *OrderDocumentsGetCall { - 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 *OrderDocumentsGetCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *OrderDocumentsGetCall) 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, "userprofiles/{profileId}/projects/{projectId}/orderDocuments/{id}") - 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{ - "profileId": strconv.FormatInt(c.profileId, 10), - "projectId": strconv.FormatInt(c.projectId, 10), - "id": strconv.FormatInt(c.id, 10), - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "dfareporting.orderDocuments.get" call. -// Exactly one of *OrderDocument or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *OrderDocument.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 *OrderDocumentsGetCall) Do(opts ...googleapi.CallOption) (*OrderDocument, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &OrderDocument{ - 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 one order document by ID.", - // "flatPath": "userprofiles/{profileId}/projects/{projectId}/orderDocuments/{id}", - // "httpMethod": "GET", - // "id": "dfareporting.orderDocuments.get", - // "parameterOrder": [ - // "profileId", - // "projectId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Order document ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "projectId": { - // "description": "Project ID for order documents.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/projects/{projectId}/orderDocuments/{id}", - // "response": { - // "$ref": "OrderDocument" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.orderDocuments.list": - -type OrderDocumentsListCall struct { - s *Service - profileId int64 - projectId int64 - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} - -// List: Retrieves a list of order documents, possibly filtered. This -// method supports paging. -// -// - profileId: User profile ID associated with this request. -// - projectId: Project ID for order documents. -func (r *OrderDocumentsService) List(profileId int64, projectId int64) *OrderDocumentsListCall { - c := &OrderDocumentsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.profileId = profileId - c.projectId = projectId - return c -} - -// Approved sets the optional parameter "approved": Select only order -// documents that have been approved by at least one user. -func (c *OrderDocumentsListCall) Approved(approved bool) *OrderDocumentsListCall { - c.urlParams_.Set("approved", fmt.Sprint(approved)) - return c -} - -// Ids sets the optional parameter "ids": Select only order documents -// with these IDs. -func (c *OrderDocumentsListCall) Ids(ids ...int64) *OrderDocumentsListCall { - var ids_ []string - for _, v := range ids { - ids_ = append(ids_, fmt.Sprint(v)) - } - c.urlParams_.SetMulti("ids", ids_) - return c -} - -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. -func (c *OrderDocumentsListCall) MaxResults(maxResults int64) *OrderDocumentsListCall { - c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) - return c -} - -// OrderId sets the optional parameter "orderId": Select only order -// documents for specified orders. -func (c *OrderDocumentsListCall) OrderId(orderId ...int64) *OrderDocumentsListCall { - var orderId_ []string - for _, v := range orderId { - orderId_ = append(orderId_, fmt.Sprint(v)) - } - c.urlParams_.SetMulti("orderId", orderId_) - return c -} - -// PageToken sets the optional parameter "pageToken": Value of the -// nextPageToken from the previous result page. -func (c *OrderDocumentsListCall) PageToken(pageToken string) *OrderDocumentsListCall { - c.urlParams_.Set("pageToken", pageToken) - return c -} - -// SearchString sets the optional parameter "searchString": Allows -// searching for order documents by name or ID. Wildcards (*) are -// allowed. For example, "orderdocument*2015" will return order -// documents with names like "orderdocument June 2015", "orderdocument -// April 2015", or simply "orderdocument 2015". Most of the searches -// also add wildcards implicitly at the start and the end of the search -// string. For example, a search string of "orderdocument" will match -// order documents with name "my orderdocument", "orderdocument 2015", -// or simply "orderdocument". -func (c *OrderDocumentsListCall) SearchString(searchString string) *OrderDocumentsListCall { - c.urlParams_.Set("searchString", searchString) - return c -} - -// SiteId sets the optional parameter "siteId": Select only order -// documents that are associated with these sites. -func (c *OrderDocumentsListCall) SiteId(siteId ...int64) *OrderDocumentsListCall { - var siteId_ []string - for _, v := range siteId { - siteId_ = append(siteId_, fmt.Sprint(v)) - } - c.urlParams_.SetMulti("siteId", siteId_) - return c -} - -// SortField sets the optional parameter "sortField": Field by which to -// sort the list. -// -// Possible values: -// -// "ID" (default) -// "NAME" -func (c *OrderDocumentsListCall) SortField(sortField string) *OrderDocumentsListCall { - c.urlParams_.Set("sortField", sortField) - return c -} - -// SortOrder sets the optional parameter "sortOrder": Order of sorted -// results. -// -// Possible values: -// -// "ASCENDING" (default) -// "DESCENDING" -func (c *OrderDocumentsListCall) SortOrder(sortOrder string) *OrderDocumentsListCall { - c.urlParams_.Set("sortOrder", sortOrder) - 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 *OrderDocumentsListCall) Fields(s ...googleapi.Field) *OrderDocumentsListCall { - 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 *OrderDocumentsListCall) IfNoneMatch(entityTag string) *OrderDocumentsListCall { - 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 *OrderDocumentsListCall) Context(ctx context.Context) *OrderDocumentsListCall { - 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 *OrderDocumentsListCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *OrderDocumentsListCall) 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, "userprofiles/{profileId}/projects/{projectId}/orderDocuments") - 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{ - "profileId": strconv.FormatInt(c.profileId, 10), - "projectId": strconv.FormatInt(c.projectId, 10), - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "dfareporting.orderDocuments.list" call. -// Exactly one of *OrderDocumentsListResponse or error will be non-nil. -// Any non-2xx status code is an error. Response headers are in either -// *OrderDocumentsListResponse.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 *OrderDocumentsListCall) Do(opts ...googleapi.CallOption) (*OrderDocumentsListResponse, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &OrderDocumentsListResponse{ - 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 a list of order documents, possibly filtered. This method supports paging.", - // "flatPath": "userprofiles/{profileId}/projects/{projectId}/orderDocuments", - // "httpMethod": "GET", - // "id": "dfareporting.orderDocuments.list", - // "parameterOrder": [ - // "profileId", - // "projectId" - // ], - // "parameters": { - // "approved": { - // "description": "Select only order documents that have been approved by at least one user.", - // "location": "query", - // "type": "boolean" - // }, - // "ids": { - // "description": "Select only order documents with these IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "maxResults": { - // "default": "1000", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "1000", - // "minimum": "0", - // "type": "integer" - // }, - // "orderId": { - // "description": "Select only order documents for specified orders.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "pageToken": { - // "description": "Value of the nextPageToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "projectId": { - // "description": "Project ID for order documents.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "searchString": { - // "description": "Allows searching for order documents by name or ID. Wildcards (*) are allowed. For example, \"orderdocument*2015\" will return order documents with names like \"orderdocument June 2015\", \"orderdocument April 2015\", or simply \"orderdocument 2015\". Most of the searches also add wildcards implicitly at the start and the end of the search string. For example, a search string of \"orderdocument\" will match order documents with name \"my orderdocument\", \"orderdocument 2015\", or simply \"orderdocument\".", - // "location": "query", - // "type": "string" - // }, - // "siteId": { - // "description": "Select only order documents that are associated with these sites.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "sortField": { - // "default": "ID", - // "description": "Field by which to sort the list.", - // "enum": [ - // "ID", - // "NAME" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "sortOrder": { - // "default": "ASCENDING", - // "description": "Order of sorted results.", - // "enum": [ - // "ASCENDING", - // "DESCENDING" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/projects/{projectId}/orderDocuments", - // "response": { - // "$ref": "OrderDocumentsListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// 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 *OrderDocumentsListCall) Pages(ctx context.Context, f func(*OrderDocumentsListResponse) 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 "dfareporting.orders.get": - -type OrdersGetCall struct { - s *Service - profileId int64 - projectId int64 - id int64 - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} - -// Get: Gets one order by ID. -// -// - id: Order ID. -// - profileId: User profile ID associated with this request. -// - projectId: Project ID for orders. -func (r *OrdersService) Get(profileId int64, projectId int64, id int64) *OrdersGetCall { - c := &OrdersGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.profileId = profileId - c.projectId = projectId - c.id = id - 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 *OrdersGetCall) Fields(s ...googleapi.Field) *OrdersGetCall { - 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 *OrdersGetCall) IfNoneMatch(entityTag string) *OrdersGetCall { - 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 *OrdersGetCall) Context(ctx context.Context) *OrdersGetCall { - 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 *OrdersGetCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *OrdersGetCall) 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, "userprofiles/{profileId}/projects/{projectId}/orders/{id}") - 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{ - "profileId": strconv.FormatInt(c.profileId, 10), - "projectId": strconv.FormatInt(c.projectId, 10), - "id": strconv.FormatInt(c.id, 10), - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "dfareporting.orders.get" call. -// Exactly one of *Order or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Order.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 *OrdersGetCall) Do(opts ...googleapi.CallOption) (*Order, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &Order{ - 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 one order by ID.", - // "flatPath": "userprofiles/{profileId}/projects/{projectId}/orders/{id}", - // "httpMethod": "GET", - // "id": "dfareporting.orders.get", - // "parameterOrder": [ - // "profileId", - // "projectId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Order ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "projectId": { - // "description": "Project ID for orders.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/projects/{projectId}/orders/{id}", - // "response": { - // "$ref": "Order" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.orders.list": - -type OrdersListCall struct { - s *Service - profileId int64 - projectId int64 - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} - -// List: Retrieves a list of orders, possibly filtered. This method -// supports paging. -// -// - profileId: User profile ID associated with this request. -// - projectId: Project ID for orders. -func (r *OrdersService) List(profileId int64, projectId int64) *OrdersListCall { - c := &OrdersListCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.profileId = profileId - c.projectId = projectId - return c -} - -// Ids sets the optional parameter "ids": Select only orders with these -// IDs. -func (c *OrdersListCall) Ids(ids ...int64) *OrdersListCall { - var ids_ []string - for _, v := range ids { - ids_ = append(ids_, fmt.Sprint(v)) - } - c.urlParams_.SetMulti("ids", ids_) - return c -} - -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. -func (c *OrdersListCall) MaxResults(maxResults int64) *OrdersListCall { - c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) - return c -} - -// PageToken sets the optional parameter "pageToken": Value of the -// nextPageToken from the previous result page. -func (c *OrdersListCall) PageToken(pageToken string) *OrdersListCall { - c.urlParams_.Set("pageToken", pageToken) - return c -} - -// SearchString sets the optional parameter "searchString": Allows -// searching for orders by name or ID. Wildcards (*) are allowed. For -// example, "order*2015" will return orders with names like "order June -// 2015", "order April 2015", or simply "order 2015". Most of the -// searches also add wildcards implicitly at the start and the end of -// the search string. For example, a search string of "order" will match -// orders with name "my order", "order 2015", or simply "order". -func (c *OrdersListCall) SearchString(searchString string) *OrdersListCall { - c.urlParams_.Set("searchString", searchString) - return c -} - -// SiteId sets the optional parameter "siteId": Select only orders that -// are associated with these site IDs. -func (c *OrdersListCall) SiteId(siteId ...int64) *OrdersListCall { - var siteId_ []string - for _, v := range siteId { - siteId_ = append(siteId_, fmt.Sprint(v)) - } - c.urlParams_.SetMulti("siteId", siteId_) - return c -} - -// SortField sets the optional parameter "sortField": Field by which to -// sort the list. -// -// Possible values: -// -// "ID" (default) -// "NAME" -func (c *OrdersListCall) SortField(sortField string) *OrdersListCall { - c.urlParams_.Set("sortField", sortField) - return c -} - -// SortOrder sets the optional parameter "sortOrder": Order of sorted -// results. -// -// Possible values: -// -// "ASCENDING" (default) -// "DESCENDING" -func (c *OrdersListCall) SortOrder(sortOrder string) *OrdersListCall { - c.urlParams_.Set("sortOrder", sortOrder) - 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 *OrdersListCall) Fields(s ...googleapi.Field) *OrdersListCall { - 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 *OrdersListCall) IfNoneMatch(entityTag string) *OrdersListCall { - 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 *OrdersListCall) Context(ctx context.Context) *OrdersListCall { - 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 *OrdersListCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *OrdersListCall) 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, "userprofiles/{profileId}/projects/{projectId}/orders") - 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{ - "profileId": strconv.FormatInt(c.profileId, 10), - "projectId": strconv.FormatInt(c.projectId, 10), - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "dfareporting.orders.list" call. -// Exactly one of *OrdersListResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *OrdersListResponse.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 *OrdersListCall) Do(opts ...googleapi.CallOption) (*OrdersListResponse, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &OrdersListResponse{ - 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 a list of orders, possibly filtered. This method supports paging.", - // "flatPath": "userprofiles/{profileId}/projects/{projectId}/orders", - // "httpMethod": "GET", - // "id": "dfareporting.orders.list", - // "parameterOrder": [ - // "profileId", - // "projectId" - // ], - // "parameters": { - // "ids": { - // "description": "Select only orders with these IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "maxResults": { - // "default": "1000", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "1000", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Value of the nextPageToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "projectId": { - // "description": "Project ID for orders.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "searchString": { - // "description": "Allows searching for orders by name or ID. Wildcards (*) are allowed. For example, \"order*2015\" will return orders with names like \"order June 2015\", \"order April 2015\", or simply \"order 2015\". Most of the searches also add wildcards implicitly at the start and the end of the search string. For example, a search string of \"order\" will match orders with name \"my order\", \"order 2015\", or simply \"order\".", - // "location": "query", - // "type": "string" - // }, - // "siteId": { - // "description": "Select only orders that are associated with these site IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "sortField": { - // "default": "ID", - // "description": "Field by which to sort the list.", - // "enum": [ - // "ID", - // "NAME" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "sortOrder": { - // "default": "ASCENDING", - // "description": "Order of sorted results.", - // "enum": [ - // "ASCENDING", - // "DESCENDING" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/projects/{projectId}/orders", - // "response": { - // "$ref": "OrdersListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// 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 *OrdersListCall) Pages(ctx context.Context, f func(*OrdersListResponse) 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 "dfareporting.placementGroups.get": - -type PlacementGroupsGetCall struct { - s *Service - profileId int64 - id int64 - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} - -// Get: Gets one placement group by ID. -// -// - id: Placement group ID. -// - profileId: User profile ID associated with this request. -func (r *PlacementGroupsService) Get(profileId int64, id int64) *PlacementGroupsGetCall { - c := &PlacementGroupsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.profileId = profileId - c.id = id - 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 *PlacementGroupsGetCall) Fields(s ...googleapi.Field) *PlacementGroupsGetCall { - 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 *PlacementGroupsGetCall) IfNoneMatch(entityTag string) *PlacementGroupsGetCall { - 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 *PlacementGroupsGetCall) Context(ctx context.Context) *PlacementGroupsGetCall { - 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 *PlacementGroupsGetCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *PlacementGroupsGetCall) 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, "userprofiles/{profileId}/placementGroups/{id}") - 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{ - "profileId": strconv.FormatInt(c.profileId, 10), - "id": strconv.FormatInt(c.id, 10), - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "dfareporting.placementGroups.get" call. -// Exactly one of *PlacementGroup or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *PlacementGroup.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 *PlacementGroupsGetCall) Do(opts ...googleapi.CallOption) (*PlacementGroup, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &PlacementGroup{ - 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 one placement group by ID.", - // "flatPath": "userprofiles/{profileId}/placementGroups/{id}", - // "httpMethod": "GET", - // "id": "dfareporting.placementGroups.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Placement group ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/placementGroups/{id}", - // "response": { - // "$ref": "PlacementGroup" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.placementGroups.insert": - -type PlacementGroupsInsertCall struct { - s *Service - profileId int64 - placementgroup *PlacementGroup - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// Insert: Inserts a new placement group. -// -// - profileId: User profile ID associated with this request. -func (r *PlacementGroupsService) Insert(profileId int64, placementgroup *PlacementGroup) *PlacementGroupsInsertCall { - c := &PlacementGroupsInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.profileId = profileId - c.placementgroup = placementgroup - 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 *PlacementGroupsInsertCall) Fields(s ...googleapi.Field) *PlacementGroupsInsertCall { - 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 *PlacementGroupsInsertCall) Context(ctx context.Context) *PlacementGroupsInsertCall { - 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 *PlacementGroupsInsertCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *PlacementGroupsInsertCall) 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.placementgroup) - 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, "userprofiles/{profileId}/placementGroups") - 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{ - "profileId": strconv.FormatInt(c.profileId, 10), - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "dfareporting.placementGroups.insert" call. -// Exactly one of *PlacementGroup or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *PlacementGroup.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 *PlacementGroupsInsertCall) Do(opts ...googleapi.CallOption) (*PlacementGroup, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &PlacementGroup{ - 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": "Inserts a new placement group.", - // "flatPath": "userprofiles/{profileId}/placementGroups", - // "httpMethod": "POST", - // "id": "dfareporting.placementGroups.insert", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/placementGroups", - // "request": { - // "$ref": "PlacementGroup" - // }, - // "response": { - // "$ref": "PlacementGroup" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.placementGroups.list": - -type PlacementGroupsListCall struct { - s *Service - profileId int64 - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} - -// List: Retrieves a list of placement groups, possibly filtered. This -// method supports paging. -// -// - profileId: User profile ID associated with this request. -func (r *PlacementGroupsService) List(profileId int64) *PlacementGroupsListCall { - c := &PlacementGroupsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.profileId = profileId - return c -} - -// AdvertiserIds sets the optional parameter "advertiserIds": Select -// only placement groups that belong to these advertisers. -func (c *PlacementGroupsListCall) AdvertiserIds(advertiserIds ...int64) *PlacementGroupsListCall { - var advertiserIds_ []string - for _, v := range advertiserIds { - advertiserIds_ = append(advertiserIds_, fmt.Sprint(v)) - } - c.urlParams_.SetMulti("advertiserIds", advertiserIds_) - return c -} - -// Archived sets the optional parameter "archived": Select only archived -// placements. Don't set this field to select both archived and -// non-archived placements. -func (c *PlacementGroupsListCall) Archived(archived bool) *PlacementGroupsListCall { - c.urlParams_.Set("archived", fmt.Sprint(archived)) - return c -} - -// CampaignIds sets the optional parameter "campaignIds": Select only -// placement groups that belong to these campaigns. -func (c *PlacementGroupsListCall) CampaignIds(campaignIds ...int64) *PlacementGroupsListCall { - var campaignIds_ []string - for _, v := range campaignIds { - campaignIds_ = append(campaignIds_, fmt.Sprint(v)) - } - c.urlParams_.SetMulti("campaignIds", campaignIds_) - return c -} - -// ContentCategoryIds sets the optional parameter "contentCategoryIds": -// Select only placement groups that are associated with these content -// categories. -func (c *PlacementGroupsListCall) ContentCategoryIds(contentCategoryIds ...int64) *PlacementGroupsListCall { - var contentCategoryIds_ []string - for _, v := range contentCategoryIds { - contentCategoryIds_ = append(contentCategoryIds_, fmt.Sprint(v)) - } - c.urlParams_.SetMulti("contentCategoryIds", contentCategoryIds_) - return c -} - -// DirectorySiteIds sets the optional parameter "directorySiteIds": -// Select only placement groups that are associated with these directory -// sites. -func (c *PlacementGroupsListCall) DirectorySiteIds(directorySiteIds ...int64) *PlacementGroupsListCall { - var directorySiteIds_ []string - for _, v := range directorySiteIds { - directorySiteIds_ = append(directorySiteIds_, fmt.Sprint(v)) - } - c.urlParams_.SetMulti("directorySiteIds", directorySiteIds_) - return c -} - -// Ids sets the optional parameter "ids": Select only placement groups -// with these IDs. -func (c *PlacementGroupsListCall) Ids(ids ...int64) *PlacementGroupsListCall { - var ids_ []string - for _, v := range ids { - ids_ = append(ids_, fmt.Sprint(v)) - } - c.urlParams_.SetMulti("ids", ids_) - return c -} - -// MaxEndDate sets the optional parameter "maxEndDate": Select only -// placements or placement groups whose end date is on or before the -// specified maxEndDate. The date should be formatted as "yyyy-MM-dd". -func (c *PlacementGroupsListCall) MaxEndDate(maxEndDate string) *PlacementGroupsListCall { - c.urlParams_.Set("maxEndDate", maxEndDate) - return c -} - -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. -func (c *PlacementGroupsListCall) MaxResults(maxResults int64) *PlacementGroupsListCall { - c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) - return c -} - -// MaxStartDate sets the optional parameter "maxStartDate": Select only -// placements or placement groups whose start date is on or before the -// specified maxStartDate. The date should be formatted as "yyyy-MM-dd". -func (c *PlacementGroupsListCall) MaxStartDate(maxStartDate string) *PlacementGroupsListCall { - c.urlParams_.Set("maxStartDate", maxStartDate) - return c -} - -// MinEndDate sets the optional parameter "minEndDate": Select only -// placements or placement groups whose end date is on or after the -// specified minEndDate. The date should be formatted as "yyyy-MM-dd". -func (c *PlacementGroupsListCall) MinEndDate(minEndDate string) *PlacementGroupsListCall { - c.urlParams_.Set("minEndDate", minEndDate) - return c -} - -// MinStartDate sets the optional parameter "minStartDate": Select only -// placements or placement groups whose start date is on or after the -// specified minStartDate. The date should be formatted as "yyyy-MM-dd". -func (c *PlacementGroupsListCall) MinStartDate(minStartDate string) *PlacementGroupsListCall { - c.urlParams_.Set("minStartDate", minStartDate) - return c -} - -// PageToken sets the optional parameter "pageToken": Value of the -// nextPageToken from the previous result page. -func (c *PlacementGroupsListCall) PageToken(pageToken string) *PlacementGroupsListCall { - c.urlParams_.Set("pageToken", pageToken) - return c -} - -// PlacementGroupType sets the optional parameter "placementGroupType": -// Select only placement groups belonging with this group type. A -// package is a simple group of placements that acts as a single pricing -// point for a group of tags. A roadblock is a group of placements that -// not only acts as a single pricing point but also assumes that all the -// tags in it will be served at the same time. A roadblock requires one -// of its assigned placements to be marked as primary for reporting. -// -// Possible values: -// -// "PLACEMENT_PACKAGE" -// "PLACEMENT_ROADBLOCK" -func (c *PlacementGroupsListCall) PlacementGroupType(placementGroupType string) *PlacementGroupsListCall { - c.urlParams_.Set("placementGroupType", placementGroupType) - return c -} - -// PlacementStrategyIds sets the optional parameter -// "placementStrategyIds": Select only placement groups that are -// associated with these placement strategies. -func (c *PlacementGroupsListCall) PlacementStrategyIds(placementStrategyIds ...int64) *PlacementGroupsListCall { - var placementStrategyIds_ []string - for _, v := range placementStrategyIds { - placementStrategyIds_ = append(placementStrategyIds_, fmt.Sprint(v)) - } - c.urlParams_.SetMulti("placementStrategyIds", placementStrategyIds_) - return c -} - -// PricingTypes sets the optional parameter "pricingTypes": Select only -// placement groups with these pricing types. -// -// Possible values: -// -// "PRICING_TYPE_CPM" -// "PRICING_TYPE_CPC" -// "PRICING_TYPE_CPA" -// "PRICING_TYPE_FLAT_RATE_IMPRESSIONS" -// "PRICING_TYPE_FLAT_RATE_CLICKS" -// "PRICING_TYPE_CPM_ACTIVEVIEW" -func (c *PlacementGroupsListCall) PricingTypes(pricingTypes ...string) *PlacementGroupsListCall { - c.urlParams_.SetMulti("pricingTypes", append([]string{}, pricingTypes...)) - return c -} - -// SearchString sets the optional parameter "searchString": Allows -// searching for placement groups by name or ID. Wildcards (*) are -// allowed. For example, "placement*2015" will return placement groups -// with names like "placement group June 2015", "placement group May -// 2015", or simply "placements 2015". Most of the searches also add -// wildcards implicitly at the start and the end of the search string. -// For example, a search string of "placementgroup" will match placement -// groups with name "my placementgroup", "placementgroup 2015", or -// simply "placementgroup". -func (c *PlacementGroupsListCall) SearchString(searchString string) *PlacementGroupsListCall { - c.urlParams_.Set("searchString", searchString) - return c -} - -// SiteIds sets the optional parameter "siteIds": Select only placement -// groups that are associated with these sites. -func (c *PlacementGroupsListCall) SiteIds(siteIds ...int64) *PlacementGroupsListCall { - var siteIds_ []string - for _, v := range siteIds { - siteIds_ = append(siteIds_, fmt.Sprint(v)) - } - c.urlParams_.SetMulti("siteIds", siteIds_) - return c -} - -// SortField sets the optional parameter "sortField": Field by which to -// sort the list. -// -// Possible values: -// -// "ID" (default) -// "NAME" -func (c *PlacementGroupsListCall) SortField(sortField string) *PlacementGroupsListCall { - c.urlParams_.Set("sortField", sortField) - return c -} - -// SortOrder sets the optional parameter "sortOrder": Order of sorted -// results. -// -// Possible values: -// -// "ASCENDING" (default) -// "DESCENDING" -func (c *PlacementGroupsListCall) SortOrder(sortOrder string) *PlacementGroupsListCall { - c.urlParams_.Set("sortOrder", sortOrder) - 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 *PlacementGroupsListCall) Fields(s ...googleapi.Field) *PlacementGroupsListCall { - 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 *PlacementGroupsListCall) IfNoneMatch(entityTag string) *PlacementGroupsListCall { - 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 *PlacementGroupsListCall) Context(ctx context.Context) *PlacementGroupsListCall { - 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 *PlacementGroupsListCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *PlacementGroupsListCall) 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, "userprofiles/{profileId}/placementGroups") - 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{ - "profileId": strconv.FormatInt(c.profileId, 10), - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "dfareporting.placementGroups.list" call. -// Exactly one of *PlacementGroupsListResponse or error will be non-nil. -// Any non-2xx status code is an error. Response headers are in either -// *PlacementGroupsListResponse.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 *PlacementGroupsListCall) Do(opts ...googleapi.CallOption) (*PlacementGroupsListResponse, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &PlacementGroupsListResponse{ - 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 a list of placement groups, possibly filtered. This method supports paging.", - // "flatPath": "userprofiles/{profileId}/placementGroups", - // "httpMethod": "GET", - // "id": "dfareporting.placementGroups.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "advertiserIds": { - // "description": "Select only placement groups that belong to these advertisers.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "archived": { - // "description": "Select only archived placements. Don't set this field to select both archived and non-archived placements.", - // "location": "query", - // "type": "boolean" - // }, - // "campaignIds": { - // "description": "Select only placement groups that belong to these campaigns.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "contentCategoryIds": { - // "description": "Select only placement groups that are associated with these content categories.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "directorySiteIds": { - // "description": "Select only placement groups that are associated with these directory sites.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "ids": { - // "description": "Select only placement groups with these IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "maxEndDate": { - // "description": "Select only placements or placement groups whose end date is on or before the specified maxEndDate. The date should be formatted as \"yyyy-MM-dd\".", - // "location": "query", - // "type": "string" - // }, - // "maxResults": { - // "default": "800", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "800", - // "minimum": "0", - // "type": "integer" - // }, - // "maxStartDate": { - // "description": "Select only placements or placement groups whose start date is on or before the specified maxStartDate. The date should be formatted as \"yyyy-MM-dd\".", - // "location": "query", - // "type": "string" - // }, - // "minEndDate": { - // "description": "Select only placements or placement groups whose end date is on or after the specified minEndDate. The date should be formatted as \"yyyy-MM-dd\".", - // "location": "query", - // "type": "string" - // }, - // "minStartDate": { - // "description": "Select only placements or placement groups whose start date is on or after the specified minStartDate. The date should be formatted as \"yyyy-MM-dd\".", - // "location": "query", - // "type": "string" - // }, - // "pageToken": { - // "description": "Value of the nextPageToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "placementGroupType": { - // "description": "Select only placement groups belonging with this group type. A package is a simple group of placements that acts as a single pricing point for a group of tags. A roadblock is a group of placements that not only acts as a single pricing point but also assumes that all the tags in it will be served at the same time. A roadblock requires one of its assigned placements to be marked as primary for reporting.", - // "enum": [ - // "PLACEMENT_PACKAGE", - // "PLACEMENT_ROADBLOCK" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "placementStrategyIds": { - // "description": "Select only placement groups that are associated with these placement strategies.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "pricingTypes": { - // "description": "Select only placement groups with these pricing types.", - // "enum": [ - // "PRICING_TYPE_CPM", - // "PRICING_TYPE_CPC", - // "PRICING_TYPE_CPA", - // "PRICING_TYPE_FLAT_RATE_IMPRESSIONS", - // "PRICING_TYPE_FLAT_RATE_CLICKS", - // "PRICING_TYPE_CPM_ACTIVEVIEW" - // ], - // "enumDescriptions": [ - // "", - // "", - // "", - // "", - // "", - // "" - // ], - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "searchString": { - // "description": "Allows searching for placement groups by name or ID. Wildcards (*) are allowed. For example, \"placement*2015\" will return placement groups with names like \"placement group June 2015\", \"placement group May 2015\", or simply \"placements 2015\". Most of the searches also add wildcards implicitly at the start and the end of the search string. For example, a search string of \"placementgroup\" will match placement groups with name \"my placementgroup\", \"placementgroup 2015\", or simply \"placementgroup\".", - // "location": "query", - // "type": "string" - // }, - // "siteIds": { - // "description": "Select only placement groups that are associated with these sites.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "sortField": { - // "default": "ID", - // "description": "Field by which to sort the list.", - // "enum": [ - // "ID", - // "NAME" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "sortOrder": { - // "default": "ASCENDING", - // "description": "Order of sorted results.", - // "enum": [ - // "ASCENDING", - // "DESCENDING" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/placementGroups", - // "response": { - // "$ref": "PlacementGroupsListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// 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 *PlacementGroupsListCall) Pages(ctx context.Context, f func(*PlacementGroupsListResponse) 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 "dfareporting.placementGroups.patch": - -type PlacementGroupsPatchCall struct { - s *Service - profileId int64 - placementgroup *PlacementGroup - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// Patch: Updates an existing placement group. This method supports -// patch semantics. -// -// - id: PlacementGroup ID. -// - profileId: User profile ID associated with this request. -func (r *PlacementGroupsService) Patch(profileId int64, id int64, placementgroup *PlacementGroup) *PlacementGroupsPatchCall { - c := &PlacementGroupsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.profileId = profileId - c.urlParams_.Set("id", fmt.Sprint(id)) - c.placementgroup = placementgroup - 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 *PlacementGroupsPatchCall) Fields(s ...googleapi.Field) *PlacementGroupsPatchCall { - 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 *PlacementGroupsPatchCall) Context(ctx context.Context) *PlacementGroupsPatchCall { - 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 *PlacementGroupsPatchCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *PlacementGroupsPatchCall) 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.placementgroup) - 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, "userprofiles/{profileId}/placementGroups") - 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{ - "profileId": strconv.FormatInt(c.profileId, 10), - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "dfareporting.placementGroups.patch" call. -// Exactly one of *PlacementGroup or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *PlacementGroup.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 *PlacementGroupsPatchCall) Do(opts ...googleapi.CallOption) (*PlacementGroup, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &PlacementGroup{ - 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 an existing placement group. This method supports patch semantics.", - // "flatPath": "userprofiles/{profileId}/placementGroups", - // "httpMethod": "PATCH", - // "id": "dfareporting.placementGroups.patch", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "PlacementGroup ID.", - // "format": "int64", - // "location": "query", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/placementGroups", - // "request": { - // "$ref": "PlacementGroup" - // }, - // "response": { - // "$ref": "PlacementGroup" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.placementGroups.update": - -type PlacementGroupsUpdateCall struct { - s *Service - profileId int64 - placementgroup *PlacementGroup - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// Update: Updates an existing placement group. -// -// - profileId: User profile ID associated with this request. -func (r *PlacementGroupsService) Update(profileId int64, placementgroup *PlacementGroup) *PlacementGroupsUpdateCall { - c := &PlacementGroupsUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.profileId = profileId - c.placementgroup = placementgroup - 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 *PlacementGroupsUpdateCall) Fields(s ...googleapi.Field) *PlacementGroupsUpdateCall { - 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 *PlacementGroupsUpdateCall) Context(ctx context.Context) *PlacementGroupsUpdateCall { - 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 *PlacementGroupsUpdateCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *PlacementGroupsUpdateCall) 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.placementgroup) - 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, "userprofiles/{profileId}/placementGroups") - urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("PUT", urls, body) - if err != nil { - return nil, err - } - req.Header = reqHeaders - googleapi.Expand(req.URL, map[string]string{ - "profileId": strconv.FormatInt(c.profileId, 10), - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "dfareporting.placementGroups.update" call. -// Exactly one of *PlacementGroup or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *PlacementGroup.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 *PlacementGroupsUpdateCall) Do(opts ...googleapi.CallOption) (*PlacementGroup, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &PlacementGroup{ - 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 an existing placement group.", - // "flatPath": "userprofiles/{profileId}/placementGroups", - // "httpMethod": "PUT", - // "id": "dfareporting.placementGroups.update", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/placementGroups", - // "request": { - // "$ref": "PlacementGroup" - // }, - // "response": { - // "$ref": "PlacementGroup" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.placementStrategies.delete": - -type PlacementStrategiesDeleteCall struct { - s *Service - profileId int64 - id int64 - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// Delete: Deletes an existing placement strategy. -// -// - id: Placement strategy ID. -// - profileId: User profile ID associated with this request. -func (r *PlacementStrategiesService) Delete(profileId int64, id int64) *PlacementStrategiesDeleteCall { - c := &PlacementStrategiesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.profileId = profileId - c.id = id - 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 *PlacementStrategiesDeleteCall) Fields(s ...googleapi.Field) *PlacementStrategiesDeleteCall { - 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 *PlacementStrategiesDeleteCall) Context(ctx context.Context) *PlacementStrategiesDeleteCall { - 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 *PlacementStrategiesDeleteCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *PlacementStrategiesDeleteCall) 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, "userprofiles/{profileId}/placementStrategies/{id}") - 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{ - "profileId": strconv.FormatInt(c.profileId, 10), - "id": strconv.FormatInt(c.id, 10), - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "dfareporting.placementStrategies.delete" call. -func (c *PlacementStrategiesDeleteCall) 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 gensupport.WrapError(err) - } - return nil - // { - // "description": "Deletes an existing placement strategy.", - // "flatPath": "userprofiles/{profileId}/placementStrategies/{id}", - // "httpMethod": "DELETE", - // "id": "dfareporting.placementStrategies.delete", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Placement strategy ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/placementStrategies/{id}", - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.placementStrategies.get": - -type PlacementStrategiesGetCall struct { - s *Service - profileId int64 - id int64 - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} - -// Get: Gets one placement strategy by ID. -// -// - id: Placement strategy ID. -// - profileId: User profile ID associated with this request. -func (r *PlacementStrategiesService) Get(profileId int64, id int64) *PlacementStrategiesGetCall { - c := &PlacementStrategiesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.profileId = profileId - c.id = id - 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 *PlacementStrategiesGetCall) Fields(s ...googleapi.Field) *PlacementStrategiesGetCall { - 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 *PlacementStrategiesGetCall) IfNoneMatch(entityTag string) *PlacementStrategiesGetCall { - 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 *PlacementStrategiesGetCall) Context(ctx context.Context) *PlacementStrategiesGetCall { - 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 *PlacementStrategiesGetCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *PlacementStrategiesGetCall) 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, "userprofiles/{profileId}/placementStrategies/{id}") - 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{ - "profileId": strconv.FormatInt(c.profileId, 10), - "id": strconv.FormatInt(c.id, 10), - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "dfareporting.placementStrategies.get" call. -// Exactly one of *PlacementStrategy or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *PlacementStrategy.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 *PlacementStrategiesGetCall) Do(opts ...googleapi.CallOption) (*PlacementStrategy, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &PlacementStrategy{ - 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 one placement strategy by ID.", - // "flatPath": "userprofiles/{profileId}/placementStrategies/{id}", - // "httpMethod": "GET", - // "id": "dfareporting.placementStrategies.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Placement strategy ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/placementStrategies/{id}", - // "response": { - // "$ref": "PlacementStrategy" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.placementStrategies.insert": - -type PlacementStrategiesInsertCall struct { - s *Service - profileId int64 - placementstrategy *PlacementStrategy - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// Insert: Inserts a new placement strategy. -// -// - profileId: User profile ID associated with this request. -func (r *PlacementStrategiesService) Insert(profileId int64, placementstrategy *PlacementStrategy) *PlacementStrategiesInsertCall { - c := &PlacementStrategiesInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.profileId = profileId - c.placementstrategy = placementstrategy - 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 *PlacementStrategiesInsertCall) Fields(s ...googleapi.Field) *PlacementStrategiesInsertCall { - 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 *PlacementStrategiesInsertCall) Context(ctx context.Context) *PlacementStrategiesInsertCall { - 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 *PlacementStrategiesInsertCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *PlacementStrategiesInsertCall) 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.placementstrategy) - 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, "userprofiles/{profileId}/placementStrategies") - 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{ - "profileId": strconv.FormatInt(c.profileId, 10), - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "dfareporting.placementStrategies.insert" call. -// Exactly one of *PlacementStrategy or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *PlacementStrategy.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 *PlacementStrategiesInsertCall) Do(opts ...googleapi.CallOption) (*PlacementStrategy, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &PlacementStrategy{ - 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": "Inserts a new placement strategy.", - // "flatPath": "userprofiles/{profileId}/placementStrategies", - // "httpMethod": "POST", - // "id": "dfareporting.placementStrategies.insert", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/placementStrategies", - // "request": { - // "$ref": "PlacementStrategy" - // }, - // "response": { - // "$ref": "PlacementStrategy" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.placementStrategies.list": - -type PlacementStrategiesListCall struct { - s *Service - profileId int64 - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} - -// List: Retrieves a list of placement strategies, possibly filtered. -// This method supports paging. -// -// - profileId: User profile ID associated with this request. -func (r *PlacementStrategiesService) List(profileId int64) *PlacementStrategiesListCall { - c := &PlacementStrategiesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.profileId = profileId - return c -} - -// Ids sets the optional parameter "ids": Select only placement -// strategies with these IDs. -func (c *PlacementStrategiesListCall) Ids(ids ...int64) *PlacementStrategiesListCall { - var ids_ []string - for _, v := range ids { - ids_ = append(ids_, fmt.Sprint(v)) - } - c.urlParams_.SetMulti("ids", ids_) - return c -} - -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. -func (c *PlacementStrategiesListCall) MaxResults(maxResults int64) *PlacementStrategiesListCall { - c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) - return c -} - -// PageToken sets the optional parameter "pageToken": Value of the -// nextPageToken from the previous result page. -func (c *PlacementStrategiesListCall) PageToken(pageToken string) *PlacementStrategiesListCall { - c.urlParams_.Set("pageToken", pageToken) - return c -} - -// SearchString sets the optional parameter "searchString": Allows -// searching for objects by name or ID. Wildcards (*) are allowed. For -// example, "placementstrategy*2015" will return objects with names like -// "placementstrategy June 2015", "placementstrategy April 2015", or -// simply "placementstrategy 2015". Most of the searches also add -// wildcards implicitly at the start and the end of the search string. -// For example, a search string of "placementstrategy" will match -// objects with name "my placementstrategy", "placementstrategy 2015", -// or simply "placementstrategy". -func (c *PlacementStrategiesListCall) SearchString(searchString string) *PlacementStrategiesListCall { - c.urlParams_.Set("searchString", searchString) - return c -} - -// SortField sets the optional parameter "sortField": Field by which to -// sort the list. -// -// Possible values: -// -// "ID" (default) -// "NAME" -func (c *PlacementStrategiesListCall) SortField(sortField string) *PlacementStrategiesListCall { - c.urlParams_.Set("sortField", sortField) - return c -} - -// SortOrder sets the optional parameter "sortOrder": Order of sorted -// results. -// -// Possible values: -// -// "ASCENDING" (default) -// "DESCENDING" -func (c *PlacementStrategiesListCall) SortOrder(sortOrder string) *PlacementStrategiesListCall { - c.urlParams_.Set("sortOrder", sortOrder) - 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 *PlacementStrategiesListCall) Fields(s ...googleapi.Field) *PlacementStrategiesListCall { - 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 *PlacementStrategiesListCall) IfNoneMatch(entityTag string) *PlacementStrategiesListCall { - 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 *PlacementStrategiesListCall) Context(ctx context.Context) *PlacementStrategiesListCall { - 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 *PlacementStrategiesListCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *PlacementStrategiesListCall) 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, "userprofiles/{profileId}/placementStrategies") - 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{ - "profileId": strconv.FormatInt(c.profileId, 10), - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "dfareporting.placementStrategies.list" call. -// Exactly one of *PlacementStrategiesListResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *PlacementStrategiesListResponse.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 *PlacementStrategiesListCall) Do(opts ...googleapi.CallOption) (*PlacementStrategiesListResponse, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &PlacementStrategiesListResponse{ - 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 a list of placement strategies, possibly filtered. This method supports paging.", - // "flatPath": "userprofiles/{profileId}/placementStrategies", - // "httpMethod": "GET", - // "id": "dfareporting.placementStrategies.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "ids": { - // "description": "Select only placement strategies with these IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "maxResults": { - // "default": "1000", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "1000", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Value of the nextPageToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "searchString": { - // "description": "Allows searching for objects by name or ID. Wildcards (*) are allowed. For example, \"placementstrategy*2015\" will return objects with names like \"placementstrategy June 2015\", \"placementstrategy April 2015\", or simply \"placementstrategy 2015\". Most of the searches also add wildcards implicitly at the start and the end of the search string. For example, a search string of \"placementstrategy\" will match objects with name \"my placementstrategy\", \"placementstrategy 2015\", or simply \"placementstrategy\".", - // "location": "query", - // "type": "string" - // }, - // "sortField": { - // "default": "ID", - // "description": "Field by which to sort the list.", - // "enum": [ - // "ID", - // "NAME" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "sortOrder": { - // "default": "ASCENDING", - // "description": "Order of sorted results.", - // "enum": [ - // "ASCENDING", - // "DESCENDING" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/placementStrategies", - // "response": { - // "$ref": "PlacementStrategiesListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// 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 *PlacementStrategiesListCall) Pages(ctx context.Context, f func(*PlacementStrategiesListResponse) 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 "dfareporting.placementStrategies.patch": - -type PlacementStrategiesPatchCall struct { - s *Service - profileId int64 - placementstrategy *PlacementStrategy - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// Patch: Updates an existing placement strategy. This method supports -// patch semantics. -// -// - id: PlacementStrategy ID. -// - profileId: User profile ID associated with this request. -func (r *PlacementStrategiesService) Patch(profileId int64, id int64, placementstrategy *PlacementStrategy) *PlacementStrategiesPatchCall { - c := &PlacementStrategiesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.profileId = profileId - c.urlParams_.Set("id", fmt.Sprint(id)) - c.placementstrategy = placementstrategy - 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 *PlacementStrategiesPatchCall) Fields(s ...googleapi.Field) *PlacementStrategiesPatchCall { - 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 *PlacementStrategiesPatchCall) Context(ctx context.Context) *PlacementStrategiesPatchCall { - 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 *PlacementStrategiesPatchCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *PlacementStrategiesPatchCall) 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.placementstrategy) - 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, "userprofiles/{profileId}/placementStrategies") - 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{ - "profileId": strconv.FormatInt(c.profileId, 10), - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "dfareporting.placementStrategies.patch" call. -// Exactly one of *PlacementStrategy or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *PlacementStrategy.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 *PlacementStrategiesPatchCall) Do(opts ...googleapi.CallOption) (*PlacementStrategy, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &PlacementStrategy{ - 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 an existing placement strategy. This method supports patch semantics.", - // "flatPath": "userprofiles/{profileId}/placementStrategies", - // "httpMethod": "PATCH", - // "id": "dfareporting.placementStrategies.patch", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "PlacementStrategy ID.", - // "format": "int64", - // "location": "query", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/placementStrategies", - // "request": { - // "$ref": "PlacementStrategy" - // }, - // "response": { - // "$ref": "PlacementStrategy" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.placementStrategies.update": - -type PlacementStrategiesUpdateCall struct { - s *Service - profileId int64 - placementstrategy *PlacementStrategy - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// Update: Updates an existing placement strategy. -// -// - profileId: User profile ID associated with this request. -func (r *PlacementStrategiesService) Update(profileId int64, placementstrategy *PlacementStrategy) *PlacementStrategiesUpdateCall { - c := &PlacementStrategiesUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.profileId = profileId - c.placementstrategy = placementstrategy - 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 *PlacementStrategiesUpdateCall) Fields(s ...googleapi.Field) *PlacementStrategiesUpdateCall { - 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 *PlacementStrategiesUpdateCall) Context(ctx context.Context) *PlacementStrategiesUpdateCall { - 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 *PlacementStrategiesUpdateCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *PlacementStrategiesUpdateCall) 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.placementstrategy) - 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, "userprofiles/{profileId}/placementStrategies") - urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("PUT", urls, body) - if err != nil { - return nil, err - } - req.Header = reqHeaders - googleapi.Expand(req.URL, map[string]string{ - "profileId": strconv.FormatInt(c.profileId, 10), - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "dfareporting.placementStrategies.update" call. -// Exactly one of *PlacementStrategy or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *PlacementStrategy.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 *PlacementStrategiesUpdateCall) Do(opts ...googleapi.CallOption) (*PlacementStrategy, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &PlacementStrategy{ - 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 an existing placement strategy.", - // "flatPath": "userprofiles/{profileId}/placementStrategies", - // "httpMethod": "PUT", - // "id": "dfareporting.placementStrategies.update", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/placementStrategies", - // "request": { - // "$ref": "PlacementStrategy" - // }, - // "response": { - // "$ref": "PlacementStrategy" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.placements.generatetags": - -type PlacementsGeneratetagsCall struct { - s *Service - profileId int64 - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// Generatetags: Generates tags for a placement. -// -// - profileId: User profile ID associated with this request. -func (r *PlacementsService) Generatetags(profileId int64) *PlacementsGeneratetagsCall { - c := &PlacementsGeneratetagsCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.profileId = profileId - return c -} - -// CampaignId sets the optional parameter "campaignId": Generate -// placements belonging to this campaign. This is a required field. -func (c *PlacementsGeneratetagsCall) CampaignId(campaignId int64) *PlacementsGeneratetagsCall { - c.urlParams_.Set("campaignId", fmt.Sprint(campaignId)) - return c -} - -// PlacementIds sets the optional parameter "placementIds": Generate -// tags for these placements. -func (c *PlacementsGeneratetagsCall) PlacementIds(placementIds ...int64) *PlacementsGeneratetagsCall { - var placementIds_ []string - for _, v := range placementIds { - placementIds_ = append(placementIds_, fmt.Sprint(v)) - } - c.urlParams_.SetMulti("placementIds", placementIds_) - return c -} - -// TagFormats sets the optional parameter "tagFormats": Tag formats to -// generate for these placements. *Note:* PLACEMENT_TAG_STANDARD can -// only be generated for 1x1 placements. -// -// Possible values: -// -// "PLACEMENT_TAG_STANDARD" -// "PLACEMENT_TAG_IFRAME_JAVASCRIPT" -// "PLACEMENT_TAG_IFRAME_ILAYER" -// "PLACEMENT_TAG_INTERNAL_REDIRECT" -// "PLACEMENT_TAG_JAVASCRIPT" -// "PLACEMENT_TAG_INTERSTITIAL_IFRAME_JAVASCRIPT" -// "PLACEMENT_TAG_INTERSTITIAL_INTERNAL_REDIRECT" -// "PLACEMENT_TAG_INTERSTITIAL_JAVASCRIPT" -// "PLACEMENT_TAG_CLICK_COMMANDS" -// "PLACEMENT_TAG_INSTREAM_VIDEO_PREFETCH" -// "PLACEMENT_TAG_TRACKING" -// "PLACEMENT_TAG_TRACKING_IFRAME" -// "PLACEMENT_TAG_TRACKING_JAVASCRIPT" -// "PLACEMENT_TAG_INSTREAM_VIDEO_PREFETCH_VAST_3" -// "PLACEMENT_TAG_IFRAME_JAVASCRIPT_LEGACY" -// "PLACEMENT_TAG_JAVASCRIPT_LEGACY" -// "PLACEMENT_TAG_INTERSTITIAL_IFRAME_JAVASCRIPT_LEGACY" -// "PLACEMENT_TAG_INTERSTITIAL_JAVASCRIPT_LEGACY" -// "PLACEMENT_TAG_INSTREAM_VIDEO_PREFETCH_VAST_4" -// "PLACEMENT_TAG_TRACKING_THIRD_PARTY_MEASUREMENT" -func (c *PlacementsGeneratetagsCall) TagFormats(tagFormats ...string) *PlacementsGeneratetagsCall { - c.urlParams_.SetMulti("tagFormats", append([]string{}, tagFormats...)) - 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 *PlacementsGeneratetagsCall) Fields(s ...googleapi.Field) *PlacementsGeneratetagsCall { - 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 *PlacementsGeneratetagsCall) Context(ctx context.Context) *PlacementsGeneratetagsCall { - 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 *PlacementsGeneratetagsCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *PlacementsGeneratetagsCall) 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, "userprofiles/{profileId}/placements/generatetags") - 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{ - "profileId": strconv.FormatInt(c.profileId, 10), - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "dfareporting.placements.generatetags" call. -// Exactly one of *PlacementsGenerateTagsResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *PlacementsGenerateTagsResponse.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 *PlacementsGeneratetagsCall) Do(opts ...googleapi.CallOption) (*PlacementsGenerateTagsResponse, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &PlacementsGenerateTagsResponse{ - 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": "Generates tags for a placement.", - // "flatPath": "userprofiles/{profileId}/placements/generatetags", - // "httpMethod": "POST", - // "id": "dfareporting.placements.generatetags", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "campaignId": { - // "description": "Generate placements belonging to this campaign. This is a required field.", - // "format": "int64", - // "location": "query", - // "type": "string" - // }, - // "placementIds": { - // "description": "Generate tags for these placements.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "tagFormats": { - // "description": "Tag formats to generate for these placements. *Note:* PLACEMENT_TAG_STANDARD can only be generated for 1x1 placements.", - // "enum": [ - // "PLACEMENT_TAG_STANDARD", - // "PLACEMENT_TAG_IFRAME_JAVASCRIPT", - // "PLACEMENT_TAG_IFRAME_ILAYER", - // "PLACEMENT_TAG_INTERNAL_REDIRECT", - // "PLACEMENT_TAG_JAVASCRIPT", - // "PLACEMENT_TAG_INTERSTITIAL_IFRAME_JAVASCRIPT", - // "PLACEMENT_TAG_INTERSTITIAL_INTERNAL_REDIRECT", - // "PLACEMENT_TAG_INTERSTITIAL_JAVASCRIPT", - // "PLACEMENT_TAG_CLICK_COMMANDS", - // "PLACEMENT_TAG_INSTREAM_VIDEO_PREFETCH", - // "PLACEMENT_TAG_TRACKING", - // "PLACEMENT_TAG_TRACKING_IFRAME", - // "PLACEMENT_TAG_TRACKING_JAVASCRIPT", - // "PLACEMENT_TAG_INSTREAM_VIDEO_PREFETCH_VAST_3", - // "PLACEMENT_TAG_IFRAME_JAVASCRIPT_LEGACY", - // "PLACEMENT_TAG_JAVASCRIPT_LEGACY", - // "PLACEMENT_TAG_INTERSTITIAL_IFRAME_JAVASCRIPT_LEGACY", - // "PLACEMENT_TAG_INTERSTITIAL_JAVASCRIPT_LEGACY", - // "PLACEMENT_TAG_INSTREAM_VIDEO_PREFETCH_VAST_4", - // "PLACEMENT_TAG_TRACKING_THIRD_PARTY_MEASUREMENT" - // ], - // "enumDescriptions": [ - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "" - // ], - // "location": "query", - // "repeated": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/placements/generatetags", - // "response": { - // "$ref": "PlacementsGenerateTagsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.placements.get": - -type PlacementsGetCall struct { - s *Service - profileId int64 - id int64 - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} - -// Get: Gets one placement by ID. -// -// - id: Placement ID. -// - profileId: User profile ID associated with this request. -func (r *PlacementsService) Get(profileId int64, id int64) *PlacementsGetCall { - c := &PlacementsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.profileId = profileId - c.id = id - 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 *PlacementsGetCall) Fields(s ...googleapi.Field) *PlacementsGetCall { - 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 *PlacementsGetCall) IfNoneMatch(entityTag string) *PlacementsGetCall { - 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 *PlacementsGetCall) Context(ctx context.Context) *PlacementsGetCall { - 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 *PlacementsGetCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *PlacementsGetCall) 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, "userprofiles/{profileId}/placements/{id}") - 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{ - "profileId": strconv.FormatInt(c.profileId, 10), - "id": strconv.FormatInt(c.id, 10), - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "dfareporting.placements.get" call. -// Exactly one of *Placement or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Placement.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 *PlacementsGetCall) Do(opts ...googleapi.CallOption) (*Placement, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &Placement{ - 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 one placement by ID.", - // "flatPath": "userprofiles/{profileId}/placements/{id}", - // "httpMethod": "GET", - // "id": "dfareporting.placements.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Placement ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/placements/{id}", - // "response": { - // "$ref": "Placement" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.placements.insert": - -type PlacementsInsertCall struct { - s *Service - profileId int64 - placement *Placement - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// Insert: Inserts a new placement. -// -// - profileId: User profile ID associated with this request. -func (r *PlacementsService) Insert(profileId int64, placement *Placement) *PlacementsInsertCall { - c := &PlacementsInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.profileId = profileId - c.placement = placement - 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 *PlacementsInsertCall) Fields(s ...googleapi.Field) *PlacementsInsertCall { - 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 *PlacementsInsertCall) Context(ctx context.Context) *PlacementsInsertCall { - 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 *PlacementsInsertCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *PlacementsInsertCall) 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.placement) - 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, "userprofiles/{profileId}/placements") - 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{ - "profileId": strconv.FormatInt(c.profileId, 10), - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "dfareporting.placements.insert" call. -// Exactly one of *Placement or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Placement.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 *PlacementsInsertCall) Do(opts ...googleapi.CallOption) (*Placement, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &Placement{ - 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": "Inserts a new placement.", - // "flatPath": "userprofiles/{profileId}/placements", - // "httpMethod": "POST", - // "id": "dfareporting.placements.insert", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/placements", - // "request": { - // "$ref": "Placement" - // }, - // "response": { - // "$ref": "Placement" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.placements.list": - -type PlacementsListCall struct { - s *Service - profileId int64 - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} - -// List: Retrieves a list of placements, possibly filtered. This method -// supports paging. -// -// - profileId: User profile ID associated with this request. -func (r *PlacementsService) List(profileId int64) *PlacementsListCall { - c := &PlacementsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.profileId = profileId - return c -} - -// AdvertiserIds sets the optional parameter "advertiserIds": Select -// only placements that belong to these advertisers. -func (c *PlacementsListCall) AdvertiserIds(advertiserIds ...int64) *PlacementsListCall { - var advertiserIds_ []string - for _, v := range advertiserIds { - advertiserIds_ = append(advertiserIds_, fmt.Sprint(v)) - } - c.urlParams_.SetMulti("advertiserIds", advertiserIds_) - return c -} - -// Archived sets the optional parameter "archived": Select only archived -// placements. Don't set this field to select both archived and -// non-archived placements. -func (c *PlacementsListCall) Archived(archived bool) *PlacementsListCall { - c.urlParams_.Set("archived", fmt.Sprint(archived)) - return c -} - -// CampaignIds sets the optional parameter "campaignIds": Select only -// placements that belong to these campaigns. -func (c *PlacementsListCall) CampaignIds(campaignIds ...int64) *PlacementsListCall { - var campaignIds_ []string - for _, v := range campaignIds { - campaignIds_ = append(campaignIds_, fmt.Sprint(v)) - } - c.urlParams_.SetMulti("campaignIds", campaignIds_) - return c -} - -// Compatibilities sets the optional parameter "compatibilities": Select -// only placements that are associated with these compatibilities. -// DISPLAY and DISPLAY_INTERSTITIAL refer to rendering either on desktop -// or on mobile devices for regular or interstitial ads respectively. -// APP and APP_INTERSTITIAL are for rendering in mobile apps. -// IN_STREAM_VIDEO refers to rendering in in-stream video ads developed -// with the VAST standard. -// -// Possible values: -// -// "DISPLAY" -// "DISPLAY_INTERSTITIAL" -// "APP" -// "APP_INTERSTITIAL" -// "IN_STREAM_VIDEO" -// "IN_STREAM_AUDIO" -func (c *PlacementsListCall) Compatibilities(compatibilities ...string) *PlacementsListCall { - c.urlParams_.SetMulti("compatibilities", append([]string{}, compatibilities...)) - return c -} - -// ContentCategoryIds sets the optional parameter "contentCategoryIds": -// Select only placements that are associated with these content -// categories. -func (c *PlacementsListCall) ContentCategoryIds(contentCategoryIds ...int64) *PlacementsListCall { - var contentCategoryIds_ []string - for _, v := range contentCategoryIds { - contentCategoryIds_ = append(contentCategoryIds_, fmt.Sprint(v)) - } - c.urlParams_.SetMulti("contentCategoryIds", contentCategoryIds_) - return c -} - -// DirectorySiteIds sets the optional parameter "directorySiteIds": -// Select only placements that are associated with these directory -// sites. -func (c *PlacementsListCall) DirectorySiteIds(directorySiteIds ...int64) *PlacementsListCall { - var directorySiteIds_ []string - for _, v := range directorySiteIds { - directorySiteIds_ = append(directorySiteIds_, fmt.Sprint(v)) - } - c.urlParams_.SetMulti("directorySiteIds", directorySiteIds_) - return c -} - -// GroupIds sets the optional parameter "groupIds": Select only -// placements that belong to these placement groups. -func (c *PlacementsListCall) GroupIds(groupIds ...int64) *PlacementsListCall { - var groupIds_ []string - for _, v := range groupIds { - groupIds_ = append(groupIds_, fmt.Sprint(v)) - } - c.urlParams_.SetMulti("groupIds", groupIds_) - return c -} - -// Ids sets the optional parameter "ids": Select only placements with -// these IDs. -func (c *PlacementsListCall) Ids(ids ...int64) *PlacementsListCall { - var ids_ []string - for _, v := range ids { - ids_ = append(ids_, fmt.Sprint(v)) - } - c.urlParams_.SetMulti("ids", ids_) - return c -} - -// MaxEndDate sets the optional parameter "maxEndDate": Select only -// placements or placement groups whose end date is on or before the -// specified maxEndDate. The date should be formatted as "yyyy-MM-dd". -func (c *PlacementsListCall) MaxEndDate(maxEndDate string) *PlacementsListCall { - c.urlParams_.Set("maxEndDate", maxEndDate) - return c -} - -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. -func (c *PlacementsListCall) MaxResults(maxResults int64) *PlacementsListCall { - c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) - return c -} - -// MaxStartDate sets the optional parameter "maxStartDate": Select only -// placements or placement groups whose start date is on or before the -// specified maxStartDate. The date should be formatted as "yyyy-MM-dd". -func (c *PlacementsListCall) MaxStartDate(maxStartDate string) *PlacementsListCall { - c.urlParams_.Set("maxStartDate", maxStartDate) - return c -} - -// MinEndDate sets the optional parameter "minEndDate": Select only -// placements or placement groups whose end date is on or after the -// specified minEndDate. The date should be formatted as "yyyy-MM-dd". -func (c *PlacementsListCall) MinEndDate(minEndDate string) *PlacementsListCall { - c.urlParams_.Set("minEndDate", minEndDate) - return c -} - -// MinStartDate sets the optional parameter "minStartDate": Select only -// placements or placement groups whose start date is on or after the -// specified minStartDate. The date should be formatted as "yyyy-MM-dd". -func (c *PlacementsListCall) MinStartDate(minStartDate string) *PlacementsListCall { - c.urlParams_.Set("minStartDate", minStartDate) - return c -} - -// PageToken sets the optional parameter "pageToken": Value of the -// nextPageToken from the previous result page. -func (c *PlacementsListCall) PageToken(pageToken string) *PlacementsListCall { - c.urlParams_.Set("pageToken", pageToken) - return c -} - -// PaymentSource sets the optional parameter "paymentSource": Select -// only placements with this payment source. -// -// Possible values: -// -// "PLACEMENT_AGENCY_PAID" -// "PLACEMENT_PUBLISHER_PAID" -func (c *PlacementsListCall) PaymentSource(paymentSource string) *PlacementsListCall { - c.urlParams_.Set("paymentSource", paymentSource) - return c -} - -// PlacementStrategyIds sets the optional parameter -// "placementStrategyIds": Select only placements that are associated -// with these placement strategies. -func (c *PlacementsListCall) PlacementStrategyIds(placementStrategyIds ...int64) *PlacementsListCall { - var placementStrategyIds_ []string - for _, v := range placementStrategyIds { - placementStrategyIds_ = append(placementStrategyIds_, fmt.Sprint(v)) - } - c.urlParams_.SetMulti("placementStrategyIds", placementStrategyIds_) - return c -} - -// PricingTypes sets the optional parameter "pricingTypes": Select only -// placements with these pricing types. -// -// Possible values: -// -// "PRICING_TYPE_CPM" -// "PRICING_TYPE_CPC" -// "PRICING_TYPE_CPA" -// "PRICING_TYPE_FLAT_RATE_IMPRESSIONS" -// "PRICING_TYPE_FLAT_RATE_CLICKS" -// "PRICING_TYPE_CPM_ACTIVEVIEW" -func (c *PlacementsListCall) PricingTypes(pricingTypes ...string) *PlacementsListCall { - c.urlParams_.SetMulti("pricingTypes", append([]string{}, pricingTypes...)) - return c -} - -// SearchString sets the optional parameter "searchString": Allows -// searching for placements by name or ID. Wildcards (*) are allowed. -// For example, "placement*2015" will return placements with names like -// "placement June 2015", "placement May 2015", or simply "placements -// 2015". Most of the searches also add wildcards implicitly at the -// start and the end of the search string. For example, a search string -// of "placement" will match placements with name "my placement", -// "placement 2015", or simply "placement" . -func (c *PlacementsListCall) SearchString(searchString string) *PlacementsListCall { - c.urlParams_.Set("searchString", searchString) - return c -} - -// SiteIds sets the optional parameter "siteIds": Select only placements -// that are associated with these sites. -func (c *PlacementsListCall) SiteIds(siteIds ...int64) *PlacementsListCall { - var siteIds_ []string - for _, v := range siteIds { - siteIds_ = append(siteIds_, fmt.Sprint(v)) - } - c.urlParams_.SetMulti("siteIds", siteIds_) - return c -} - -// SizeIds sets the optional parameter "sizeIds": Select only placements -// that are associated with these sizes. -func (c *PlacementsListCall) SizeIds(sizeIds ...int64) *PlacementsListCall { - var sizeIds_ []string - for _, v := range sizeIds { - sizeIds_ = append(sizeIds_, fmt.Sprint(v)) - } - c.urlParams_.SetMulti("sizeIds", sizeIds_) - return c -} - -// SortField sets the optional parameter "sortField": Field by which to -// sort the list. -// -// Possible values: -// -// "ID" (default) -// "NAME" -func (c *PlacementsListCall) SortField(sortField string) *PlacementsListCall { - c.urlParams_.Set("sortField", sortField) - return c -} - -// SortOrder sets the optional parameter "sortOrder": Order of sorted -// results. -// -// Possible values: -// -// "ASCENDING" (default) -// "DESCENDING" -func (c *PlacementsListCall) SortOrder(sortOrder string) *PlacementsListCall { - c.urlParams_.Set("sortOrder", sortOrder) - 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 *PlacementsListCall) Fields(s ...googleapi.Field) *PlacementsListCall { - 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 *PlacementsListCall) IfNoneMatch(entityTag string) *PlacementsListCall { - 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 *PlacementsListCall) Context(ctx context.Context) *PlacementsListCall { - 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 *PlacementsListCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *PlacementsListCall) 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, "userprofiles/{profileId}/placements") - 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{ - "profileId": strconv.FormatInt(c.profileId, 10), - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "dfareporting.placements.list" call. -// Exactly one of *PlacementsListResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *PlacementsListResponse.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 *PlacementsListCall) Do(opts ...googleapi.CallOption) (*PlacementsListResponse, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &PlacementsListResponse{ - 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 a list of placements, possibly filtered. This method supports paging.", - // "flatPath": "userprofiles/{profileId}/placements", - // "httpMethod": "GET", - // "id": "dfareporting.placements.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "advertiserIds": { - // "description": "Select only placements that belong to these advertisers.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "archived": { - // "description": "Select only archived placements. Don't set this field to select both archived and non-archived placements.", - // "location": "query", - // "type": "boolean" - // }, - // "campaignIds": { - // "description": "Select only placements that belong to these campaigns.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "compatibilities": { - // "description": "Select only placements that are associated with these compatibilities. DISPLAY and DISPLAY_INTERSTITIAL refer to rendering either on desktop or on mobile devices for regular or interstitial ads respectively. APP and APP_INTERSTITIAL are for rendering in mobile apps. IN_STREAM_VIDEO refers to rendering in in-stream video ads developed with the VAST standard.", - // "enum": [ - // "DISPLAY", - // "DISPLAY_INTERSTITIAL", - // "APP", - // "APP_INTERSTITIAL", - // "IN_STREAM_VIDEO", - // "IN_STREAM_AUDIO" - // ], - // "enumDescriptions": [ - // "", - // "", - // "", - // "", - // "", - // "" - // ], - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "contentCategoryIds": { - // "description": "Select only placements that are associated with these content categories.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "directorySiteIds": { - // "description": "Select only placements that are associated with these directory sites.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "groupIds": { - // "description": "Select only placements that belong to these placement groups.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "ids": { - // "description": "Select only placements with these IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "maxEndDate": { - // "description": "Select only placements or placement groups whose end date is on or before the specified maxEndDate. The date should be formatted as \"yyyy-MM-dd\".", - // "location": "query", - // "type": "string" - // }, - // "maxResults": { - // "default": "1000", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "1000", - // "minimum": "0", - // "type": "integer" - // }, - // "maxStartDate": { - // "description": "Select only placements or placement groups whose start date is on or before the specified maxStartDate. The date should be formatted as \"yyyy-MM-dd\".", - // "location": "query", - // "type": "string" - // }, - // "minEndDate": { - // "description": "Select only placements or placement groups whose end date is on or after the specified minEndDate. The date should be formatted as \"yyyy-MM-dd\".", - // "location": "query", - // "type": "string" - // }, - // "minStartDate": { - // "description": "Select only placements or placement groups whose start date is on or after the specified minStartDate. The date should be formatted as \"yyyy-MM-dd\".", - // "location": "query", - // "type": "string" - // }, - // "pageToken": { - // "description": "Value of the nextPageToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "paymentSource": { - // "description": "Select only placements with this payment source.", - // "enum": [ - // "PLACEMENT_AGENCY_PAID", - // "PLACEMENT_PUBLISHER_PAID" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "placementStrategyIds": { - // "description": "Select only placements that are associated with these placement strategies.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "pricingTypes": { - // "description": "Select only placements with these pricing types.", - // "enum": [ - // "PRICING_TYPE_CPM", - // "PRICING_TYPE_CPC", - // "PRICING_TYPE_CPA", - // "PRICING_TYPE_FLAT_RATE_IMPRESSIONS", - // "PRICING_TYPE_FLAT_RATE_CLICKS", - // "PRICING_TYPE_CPM_ACTIVEVIEW" - // ], - // "enumDescriptions": [ - // "", - // "", - // "", - // "", - // "", - // "" - // ], - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "searchString": { - // "description": "Allows searching for placements by name or ID. Wildcards (*) are allowed. For example, \"placement*2015\" will return placements with names like \"placement June 2015\", \"placement May 2015\", or simply \"placements 2015\". Most of the searches also add wildcards implicitly at the start and the end of the search string. For example, a search string of \"placement\" will match placements with name \"my placement\", \"placement 2015\", or simply \"placement\" .", - // "location": "query", - // "type": "string" - // }, - // "siteIds": { - // "description": "Select only placements that are associated with these sites.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "sizeIds": { - // "description": "Select only placements that are associated with these sizes.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "sortField": { - // "default": "ID", - // "description": "Field by which to sort the list.", - // "enum": [ - // "ID", - // "NAME" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "sortOrder": { - // "default": "ASCENDING", - // "description": "Order of sorted results.", - // "enum": [ - // "ASCENDING", - // "DESCENDING" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/placements", - // "response": { - // "$ref": "PlacementsListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// 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 *PlacementsListCall) Pages(ctx context.Context, f func(*PlacementsListResponse) 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 "dfareporting.placements.patch": - -type PlacementsPatchCall struct { - s *Service - profileId int64 - placement *Placement - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// Patch: Updates an existing placement. This method supports patch -// semantics. -// -// - id: Placement ID. -// - profileId: User profile ID associated with this request. -func (r *PlacementsService) Patch(profileId int64, id int64, placement *Placement) *PlacementsPatchCall { - c := &PlacementsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.profileId = profileId - c.urlParams_.Set("id", fmt.Sprint(id)) - c.placement = placement - 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 *PlacementsPatchCall) Fields(s ...googleapi.Field) *PlacementsPatchCall { - 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 *PlacementsPatchCall) Context(ctx context.Context) *PlacementsPatchCall { - 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 *PlacementsPatchCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *PlacementsPatchCall) 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.placement) - 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, "userprofiles/{profileId}/placements") - 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{ - "profileId": strconv.FormatInt(c.profileId, 10), - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "dfareporting.placements.patch" call. -// Exactly one of *Placement or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Placement.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 *PlacementsPatchCall) Do(opts ...googleapi.CallOption) (*Placement, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &Placement{ - 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 an existing placement. This method supports patch semantics.", - // "flatPath": "userprofiles/{profileId}/placements", - // "httpMethod": "PATCH", - // "id": "dfareporting.placements.patch", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Placement ID.", - // "format": "int64", - // "location": "query", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/placements", - // "request": { - // "$ref": "Placement" - // }, - // "response": { - // "$ref": "Placement" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.placements.update": - -type PlacementsUpdateCall struct { - s *Service - profileId int64 - placement *Placement - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// Update: Updates an existing placement. -// -// - profileId: User profile ID associated with this request. -func (r *PlacementsService) Update(profileId int64, placement *Placement) *PlacementsUpdateCall { - c := &PlacementsUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.profileId = profileId - c.placement = placement - 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 *PlacementsUpdateCall) Fields(s ...googleapi.Field) *PlacementsUpdateCall { - 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 *PlacementsUpdateCall) Context(ctx context.Context) *PlacementsUpdateCall { - 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 *PlacementsUpdateCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *PlacementsUpdateCall) 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.placement) - 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, "userprofiles/{profileId}/placements") - urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("PUT", urls, body) - if err != nil { - return nil, err - } - req.Header = reqHeaders - googleapi.Expand(req.URL, map[string]string{ - "profileId": strconv.FormatInt(c.profileId, 10), - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "dfareporting.placements.update" call. -// Exactly one of *Placement or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Placement.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 *PlacementsUpdateCall) Do(opts ...googleapi.CallOption) (*Placement, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &Placement{ - 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 an existing placement.", - // "flatPath": "userprofiles/{profileId}/placements", - // "httpMethod": "PUT", - // "id": "dfareporting.placements.update", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/placements", - // "request": { - // "$ref": "Placement" - // }, - // "response": { - // "$ref": "Placement" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.platformTypes.get": - -type PlatformTypesGetCall struct { - s *Service - profileId int64 - id int64 - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} - -// Get: Gets one platform type by ID. -// -// - id: Platform type ID. -// - profileId: User profile ID associated with this request. -func (r *PlatformTypesService) Get(profileId int64, id int64) *PlatformTypesGetCall { - c := &PlatformTypesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.profileId = profileId - c.id = id - 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 *PlatformTypesGetCall) Fields(s ...googleapi.Field) *PlatformTypesGetCall { - 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 *PlatformTypesGetCall) IfNoneMatch(entityTag string) *PlatformTypesGetCall { - 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 *PlatformTypesGetCall) Context(ctx context.Context) *PlatformTypesGetCall { - 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 *PlatformTypesGetCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *PlatformTypesGetCall) 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, "userprofiles/{profileId}/platformTypes/{id}") - 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{ - "profileId": strconv.FormatInt(c.profileId, 10), - "id": strconv.FormatInt(c.id, 10), - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "dfareporting.platformTypes.get" call. -// Exactly one of *PlatformType or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *PlatformType.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 *PlatformTypesGetCall) Do(opts ...googleapi.CallOption) (*PlatformType, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &PlatformType{ - 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 one platform type by ID.", - // "flatPath": "userprofiles/{profileId}/platformTypes/{id}", - // "httpMethod": "GET", - // "id": "dfareporting.platformTypes.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Platform type ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/platformTypes/{id}", - // "response": { - // "$ref": "PlatformType" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.platformTypes.list": - -type PlatformTypesListCall struct { - s *Service - profileId int64 - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} - -// List: Retrieves a list of platform types. -// -// - profileId: User profile ID associated with this request. -func (r *PlatformTypesService) List(profileId int64) *PlatformTypesListCall { - c := &PlatformTypesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.profileId = profileId - 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 *PlatformTypesListCall) Fields(s ...googleapi.Field) *PlatformTypesListCall { - 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 *PlatformTypesListCall) IfNoneMatch(entityTag string) *PlatformTypesListCall { - 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 *PlatformTypesListCall) Context(ctx context.Context) *PlatformTypesListCall { - 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 *PlatformTypesListCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *PlatformTypesListCall) 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, "userprofiles/{profileId}/platformTypes") - 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{ - "profileId": strconv.FormatInt(c.profileId, 10), - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "dfareporting.platformTypes.list" call. -// Exactly one of *PlatformTypesListResponse or error will be non-nil. -// Any non-2xx status code is an error. Response headers are in either -// *PlatformTypesListResponse.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 *PlatformTypesListCall) Do(opts ...googleapi.CallOption) (*PlatformTypesListResponse, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &PlatformTypesListResponse{ - 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 a list of platform types.", - // "flatPath": "userprofiles/{profileId}/platformTypes", - // "httpMethod": "GET", - // "id": "dfareporting.platformTypes.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/platformTypes", - // "response": { - // "$ref": "PlatformTypesListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.postalCodes.get": - -type PostalCodesGetCall struct { - s *Service - profileId int64 - code string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} - -// Get: Gets one postal code by ID. -// -// - code: Postal code ID. -// - profileId: User profile ID associated with this request. -func (r *PostalCodesService) Get(profileId int64, code string) *PostalCodesGetCall { - c := &PostalCodesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.profileId = profileId - c.code = code - 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 *PostalCodesGetCall) Fields(s ...googleapi.Field) *PostalCodesGetCall { - 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 *PostalCodesGetCall) IfNoneMatch(entityTag string) *PostalCodesGetCall { - 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 *PostalCodesGetCall) Context(ctx context.Context) *PostalCodesGetCall { - 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 *PostalCodesGetCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *PostalCodesGetCall) 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, "userprofiles/{profileId}/postalCodes/{code}") - 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{ - "profileId": strconv.FormatInt(c.profileId, 10), - "code": c.code, - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "dfareporting.postalCodes.get" call. -// Exactly one of *PostalCode or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *PostalCode.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 *PostalCodesGetCall) Do(opts ...googleapi.CallOption) (*PostalCode, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &PostalCode{ - 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 one postal code by ID.", - // "flatPath": "userprofiles/{profileId}/postalCodes/{code}", - // "httpMethod": "GET", - // "id": "dfareporting.postalCodes.get", - // "parameterOrder": [ - // "profileId", - // "code" - // ], - // "parameters": { - // "code": { - // "description": "Postal code ID.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/postalCodes/{code}", - // "response": { - // "$ref": "PostalCode" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.postalCodes.list": - -type PostalCodesListCall struct { - s *Service - profileId int64 - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} - -// List: Retrieves a list of postal codes. -// -// - profileId: User profile ID associated with this request. -func (r *PostalCodesService) List(profileId int64) *PostalCodesListCall { - c := &PostalCodesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.profileId = profileId - 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 *PostalCodesListCall) Fields(s ...googleapi.Field) *PostalCodesListCall { - 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 *PostalCodesListCall) IfNoneMatch(entityTag string) *PostalCodesListCall { - 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 *PostalCodesListCall) Context(ctx context.Context) *PostalCodesListCall { - 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 *PostalCodesListCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *PostalCodesListCall) 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, "userprofiles/{profileId}/postalCodes") - 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{ - "profileId": strconv.FormatInt(c.profileId, 10), - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "dfareporting.postalCodes.list" call. -// Exactly one of *PostalCodesListResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *PostalCodesListResponse.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 *PostalCodesListCall) Do(opts ...googleapi.CallOption) (*PostalCodesListResponse, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &PostalCodesListResponse{ - 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 a list of postal codes.", - // "flatPath": "userprofiles/{profileId}/postalCodes", - // "httpMethod": "GET", - // "id": "dfareporting.postalCodes.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/postalCodes", - // "response": { - // "$ref": "PostalCodesListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.projects.get": - -type ProjectsGetCall struct { - s *Service - profileId int64 - id int64 - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} - -// Get: Gets one project by ID. -// -// - id: Project ID. -// - profileId: User profile ID associated with this request. -func (r *ProjectsService) Get(profileId int64, id int64) *ProjectsGetCall { - c := &ProjectsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.profileId = profileId - c.id = id - 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 *ProjectsGetCall) Fields(s ...googleapi.Field) *ProjectsGetCall { - 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 *ProjectsGetCall) IfNoneMatch(entityTag string) *ProjectsGetCall { - 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 *ProjectsGetCall) Context(ctx context.Context) *ProjectsGetCall { - 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 *ProjectsGetCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *ProjectsGetCall) 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, "userprofiles/{profileId}/projects/{id}") - 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{ - "profileId": strconv.FormatInt(c.profileId, 10), - "id": strconv.FormatInt(c.id, 10), - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "dfareporting.projects.get" call. -// Exactly one of *Project or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Project.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 *ProjectsGetCall) Do(opts ...googleapi.CallOption) (*Project, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &Project{ - 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 one project by ID.", - // "flatPath": "userprofiles/{profileId}/projects/{id}", - // "httpMethod": "GET", - // "id": "dfareporting.projects.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Project ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/projects/{id}", - // "response": { - // "$ref": "Project" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.projects.list": - -type ProjectsListCall struct { - s *Service - profileId int64 - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} - -// List: Retrieves a list of projects, possibly filtered. This method -// supports paging . -// -// - profileId: User profile ID associated with this request. -func (r *ProjectsService) List(profileId int64) *ProjectsListCall { - c := &ProjectsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.profileId = profileId - return c -} - -// AdvertiserIds sets the optional parameter "advertiserIds": Select -// only projects with these advertiser IDs. -func (c *ProjectsListCall) AdvertiserIds(advertiserIds ...int64) *ProjectsListCall { - var advertiserIds_ []string - for _, v := range advertiserIds { - advertiserIds_ = append(advertiserIds_, fmt.Sprint(v)) - } - c.urlParams_.SetMulti("advertiserIds", advertiserIds_) - return c -} - -// Ids sets the optional parameter "ids": Select only projects with -// these IDs. -func (c *ProjectsListCall) Ids(ids ...int64) *ProjectsListCall { - var ids_ []string - for _, v := range ids { - ids_ = append(ids_, fmt.Sprint(v)) - } - c.urlParams_.SetMulti("ids", ids_) - return c -} - -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. -func (c *ProjectsListCall) MaxResults(maxResults int64) *ProjectsListCall { - c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) - return c -} - -// PageToken sets the optional parameter "pageToken": Value of the -// nextPageToken from the previous result page. -func (c *ProjectsListCall) PageToken(pageToken string) *ProjectsListCall { - c.urlParams_.Set("pageToken", pageToken) - return c -} - -// SearchString sets the optional parameter "searchString": Allows -// searching for projects by name or ID. Wildcards (*) are allowed. For -// example, "project*2015" will return projects with names like "project -// June 2015", "project April 2015", or simply "project 2015". Most of -// the searches also add wildcards implicitly at the start and the end -// of the search string. For example, a search string of "project" will -// match projects with name "my project", "project 2015", or simply -// "project". -func (c *ProjectsListCall) SearchString(searchString string) *ProjectsListCall { - c.urlParams_.Set("searchString", searchString) - return c -} - -// SortField sets the optional parameter "sortField": Field by which to -// sort the list. -// -// Possible values: -// -// "ID" (default) -// "NAME" -func (c *ProjectsListCall) SortField(sortField string) *ProjectsListCall { - c.urlParams_.Set("sortField", sortField) - return c -} - -// SortOrder sets the optional parameter "sortOrder": Order of sorted -// results. -// -// Possible values: -// -// "ASCENDING" (default) -// "DESCENDING" -func (c *ProjectsListCall) SortOrder(sortOrder string) *ProjectsListCall { - c.urlParams_.Set("sortOrder", sortOrder) - 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 *ProjectsListCall) Fields(s ...googleapi.Field) *ProjectsListCall { - 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 *ProjectsListCall) IfNoneMatch(entityTag string) *ProjectsListCall { - 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 *ProjectsListCall) Context(ctx context.Context) *ProjectsListCall { - 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 *ProjectsListCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *ProjectsListCall) 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, "userprofiles/{profileId}/projects") - 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{ - "profileId": strconv.FormatInt(c.profileId, 10), - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "dfareporting.projects.list" call. -// Exactly one of *ProjectsListResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *ProjectsListResponse.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 *ProjectsListCall) Do(opts ...googleapi.CallOption) (*ProjectsListResponse, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &ProjectsListResponse{ - 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 a list of projects, possibly filtered. This method supports paging .", - // "flatPath": "userprofiles/{profileId}/projects", - // "httpMethod": "GET", - // "id": "dfareporting.projects.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "advertiserIds": { - // "description": "Select only projects with these advertiser IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "ids": { - // "description": "Select only projects with these IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "maxResults": { - // "default": "1000", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "1000", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Value of the nextPageToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "searchString": { - // "description": "Allows searching for projects by name or ID. Wildcards (*) are allowed. For example, \"project*2015\" will return projects with names like \"project June 2015\", \"project April 2015\", or simply \"project 2015\". Most of the searches also add wildcards implicitly at the start and the end of the search string. For example, a search string of \"project\" will match projects with name \"my project\", \"project 2015\", or simply \"project\".", - // "location": "query", - // "type": "string" - // }, - // "sortField": { - // "default": "ID", - // "description": "Field by which to sort the list.", - // "enum": [ - // "ID", - // "NAME" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "sortOrder": { - // "default": "ASCENDING", - // "description": "Order of sorted results.", - // "enum": [ - // "ASCENDING", - // "DESCENDING" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/projects", - // "response": { - // "$ref": "ProjectsListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// 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 *ProjectsListCall) Pages(ctx context.Context, f func(*ProjectsListResponse) 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 "dfareporting.regions.list": - -type RegionsListCall struct { - s *Service - profileId int64 - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} - -// List: Retrieves a list of regions. -// -// - profileId: User profile ID associated with this request. -func (r *RegionsService) List(profileId int64) *RegionsListCall { - c := &RegionsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.profileId = profileId - 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 *RegionsListCall) Fields(s ...googleapi.Field) *RegionsListCall { - 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 *RegionsListCall) IfNoneMatch(entityTag string) *RegionsListCall { - 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 *RegionsListCall) Context(ctx context.Context) *RegionsListCall { - 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 *RegionsListCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *RegionsListCall) 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, "userprofiles/{profileId}/regions") - 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{ - "profileId": strconv.FormatInt(c.profileId, 10), - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "dfareporting.regions.list" call. -// Exactly one of *RegionsListResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *RegionsListResponse.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 *RegionsListCall) Do(opts ...googleapi.CallOption) (*RegionsListResponse, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &RegionsListResponse{ - 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 a list of regions.", - // "flatPath": "userprofiles/{profileId}/regions", - // "httpMethod": "GET", - // "id": "dfareporting.regions.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/regions", - // "response": { - // "$ref": "RegionsListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.remarketingListShares.get": - -type RemarketingListSharesGetCall struct { - s *Service - profileId int64 - remarketingListId int64 - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} - -// Get: Gets one remarketing list share by remarketing list ID. -// -// - profileId: User profile ID associated with this request. -// - remarketingListId: Remarketing list ID. -func (r *RemarketingListSharesService) Get(profileId int64, remarketingListId int64) *RemarketingListSharesGetCall { - c := &RemarketingListSharesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.profileId = profileId - c.remarketingListId = remarketingListId - 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 *RemarketingListSharesGetCall) Fields(s ...googleapi.Field) *RemarketingListSharesGetCall { - 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 *RemarketingListSharesGetCall) IfNoneMatch(entityTag string) *RemarketingListSharesGetCall { - 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 *RemarketingListSharesGetCall) Context(ctx context.Context) *RemarketingListSharesGetCall { - 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 *RemarketingListSharesGetCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *RemarketingListSharesGetCall) 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, "userprofiles/{profileId}/remarketingListShares/{remarketingListId}") - 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{ - "profileId": strconv.FormatInt(c.profileId, 10), - "remarketingListId": strconv.FormatInt(c.remarketingListId, 10), - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "dfareporting.remarketingListShares.get" call. -// Exactly one of *RemarketingListShare or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *RemarketingListShare.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 *RemarketingListSharesGetCall) Do(opts ...googleapi.CallOption) (*RemarketingListShare, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &RemarketingListShare{ - 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 one remarketing list share by remarketing list ID.", - // "flatPath": "userprofiles/{profileId}/remarketingListShares/{remarketingListId}", - // "httpMethod": "GET", - // "id": "dfareporting.remarketingListShares.get", - // "parameterOrder": [ - // "profileId", - // "remarketingListId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "remarketingListId": { - // "description": "Remarketing list ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/remarketingListShares/{remarketingListId}", - // "response": { - // "$ref": "RemarketingListShare" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.remarketingListShares.patch": - -type RemarketingListSharesPatchCall struct { - s *Service - profileId int64 - remarketinglistshare *RemarketingListShare - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// Patch: Updates an existing remarketing list share. This method -// supports patch semantics. -// -// - id: RemarketingList ID. -// - profileId: User profile ID associated with this request. -func (r *RemarketingListSharesService) Patch(profileId int64, id int64, remarketinglistshare *RemarketingListShare) *RemarketingListSharesPatchCall { - c := &RemarketingListSharesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.profileId = profileId - c.urlParams_.Set("id", fmt.Sprint(id)) - c.remarketinglistshare = remarketinglistshare - 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 *RemarketingListSharesPatchCall) Fields(s ...googleapi.Field) *RemarketingListSharesPatchCall { - 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 *RemarketingListSharesPatchCall) Context(ctx context.Context) *RemarketingListSharesPatchCall { - 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 *RemarketingListSharesPatchCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *RemarketingListSharesPatchCall) 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.remarketinglistshare) - 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, "userprofiles/{profileId}/remarketingListShares") - 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{ - "profileId": strconv.FormatInt(c.profileId, 10), - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "dfareporting.remarketingListShares.patch" call. -// Exactly one of *RemarketingListShare or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *RemarketingListShare.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 *RemarketingListSharesPatchCall) Do(opts ...googleapi.CallOption) (*RemarketingListShare, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &RemarketingListShare{ - 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 an existing remarketing list share. This method supports patch semantics.", - // "flatPath": "userprofiles/{profileId}/remarketingListShares", - // "httpMethod": "PATCH", - // "id": "dfareporting.remarketingListShares.patch", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "RemarketingList ID.", - // "format": "int64", - // "location": "query", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/remarketingListShares", - // "request": { - // "$ref": "RemarketingListShare" - // }, - // "response": { - // "$ref": "RemarketingListShare" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.remarketingListShares.update": - -type RemarketingListSharesUpdateCall struct { - s *Service - profileId int64 - remarketinglistshare *RemarketingListShare - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// Update: Updates an existing remarketing list share. -// -// - profileId: User profile ID associated with this request. -func (r *RemarketingListSharesService) Update(profileId int64, remarketinglistshare *RemarketingListShare) *RemarketingListSharesUpdateCall { - c := &RemarketingListSharesUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.profileId = profileId - c.remarketinglistshare = remarketinglistshare - 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 *RemarketingListSharesUpdateCall) Fields(s ...googleapi.Field) *RemarketingListSharesUpdateCall { - 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 *RemarketingListSharesUpdateCall) Context(ctx context.Context) *RemarketingListSharesUpdateCall { - 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 *RemarketingListSharesUpdateCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *RemarketingListSharesUpdateCall) 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.remarketinglistshare) - 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, "userprofiles/{profileId}/remarketingListShares") - urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("PUT", urls, body) - if err != nil { - return nil, err - } - req.Header = reqHeaders - googleapi.Expand(req.URL, map[string]string{ - "profileId": strconv.FormatInt(c.profileId, 10), - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "dfareporting.remarketingListShares.update" call. -// Exactly one of *RemarketingListShare or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *RemarketingListShare.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 *RemarketingListSharesUpdateCall) Do(opts ...googleapi.CallOption) (*RemarketingListShare, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &RemarketingListShare{ - 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 an existing remarketing list share.", - // "flatPath": "userprofiles/{profileId}/remarketingListShares", - // "httpMethod": "PUT", - // "id": "dfareporting.remarketingListShares.update", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/remarketingListShares", - // "request": { - // "$ref": "RemarketingListShare" - // }, - // "response": { - // "$ref": "RemarketingListShare" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.remarketingLists.get": - -type RemarketingListsGetCall struct { - s *Service - profileId int64 - id int64 - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} - -// Get: Gets one remarketing list by ID. -// -// - id: Remarketing list ID. -// - profileId: User profile ID associated with this request. -func (r *RemarketingListsService) Get(profileId int64, id int64) *RemarketingListsGetCall { - c := &RemarketingListsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.profileId = profileId - c.id = id - 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 *RemarketingListsGetCall) Fields(s ...googleapi.Field) *RemarketingListsGetCall { - 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 *RemarketingListsGetCall) IfNoneMatch(entityTag string) *RemarketingListsGetCall { - 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 *RemarketingListsGetCall) Context(ctx context.Context) *RemarketingListsGetCall { - 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 *RemarketingListsGetCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *RemarketingListsGetCall) 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, "userprofiles/{profileId}/remarketingLists/{id}") - 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{ - "profileId": strconv.FormatInt(c.profileId, 10), - "id": strconv.FormatInt(c.id, 10), - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "dfareporting.remarketingLists.get" call. -// Exactly one of *RemarketingList or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *RemarketingList.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 *RemarketingListsGetCall) Do(opts ...googleapi.CallOption) (*RemarketingList, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &RemarketingList{ - 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 one remarketing list by ID.", - // "flatPath": "userprofiles/{profileId}/remarketingLists/{id}", - // "httpMethod": "GET", - // "id": "dfareporting.remarketingLists.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Remarketing list ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/remarketingLists/{id}", - // "response": { - // "$ref": "RemarketingList" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.remarketingLists.insert": - -type RemarketingListsInsertCall struct { - s *Service - profileId int64 - remarketinglist *RemarketingList - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// Insert: Inserts a new remarketing list. -// -// - profileId: User profile ID associated with this request. -func (r *RemarketingListsService) Insert(profileId int64, remarketinglist *RemarketingList) *RemarketingListsInsertCall { - c := &RemarketingListsInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.profileId = profileId - c.remarketinglist = remarketinglist - 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 *RemarketingListsInsertCall) Fields(s ...googleapi.Field) *RemarketingListsInsertCall { - 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 *RemarketingListsInsertCall) Context(ctx context.Context) *RemarketingListsInsertCall { - 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 *RemarketingListsInsertCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *RemarketingListsInsertCall) 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.remarketinglist) - 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, "userprofiles/{profileId}/remarketingLists") - 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{ - "profileId": strconv.FormatInt(c.profileId, 10), - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "dfareporting.remarketingLists.insert" call. -// Exactly one of *RemarketingList or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *RemarketingList.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 *RemarketingListsInsertCall) Do(opts ...googleapi.CallOption) (*RemarketingList, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &RemarketingList{ - 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": "Inserts a new remarketing list.", - // "flatPath": "userprofiles/{profileId}/remarketingLists", - // "httpMethod": "POST", - // "id": "dfareporting.remarketingLists.insert", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/remarketingLists", - // "request": { - // "$ref": "RemarketingList" - // }, - // "response": { - // "$ref": "RemarketingList" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.remarketingLists.list": - -type RemarketingListsListCall struct { - s *Service - profileId int64 - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} - -// List: Retrieves a list of remarketing lists, possibly filtered. This -// method supports paging. -// -// - advertiserId: Select only remarketing lists owned by this -// advertiser. -// - profileId: User profile ID associated with this request. -func (r *RemarketingListsService) List(profileId int64, advertiserId int64) *RemarketingListsListCall { - c := &RemarketingListsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.profileId = profileId - c.urlParams_.Set("advertiserId", fmt.Sprint(advertiserId)) - return c -} - -// Active sets the optional parameter "active": Select only active or -// only inactive remarketing lists. -func (c *RemarketingListsListCall) Active(active bool) *RemarketingListsListCall { - c.urlParams_.Set("active", fmt.Sprint(active)) - return c -} - -// FloodlightActivityId sets the optional parameter -// "floodlightActivityId": Select only remarketing lists that have this -// floodlight activity ID. -func (c *RemarketingListsListCall) FloodlightActivityId(floodlightActivityId int64) *RemarketingListsListCall { - c.urlParams_.Set("floodlightActivityId", fmt.Sprint(floodlightActivityId)) - return c -} - -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. -func (c *RemarketingListsListCall) MaxResults(maxResults int64) *RemarketingListsListCall { - c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) - return c -} - -// Name sets the optional parameter "name": Allows searching for objects -// by name or ID. Wildcards (*) are allowed. For example, "remarketing -// list*2015" will return objects with names like "remarketing list June -// 2015", "remarketing list April 2015", or simply "remarketing list -// 2015". Most of the searches also add wildcards implicitly at the -// start and the end of the search string. For example, a search string -// of "remarketing list" will match objects with name "my remarketing -// list", "remarketing list 2015", or simply "remarketing list". -func (c *RemarketingListsListCall) Name(name string) *RemarketingListsListCall { - c.urlParams_.Set("name", name) - return c -} - -// PageToken sets the optional parameter "pageToken": Value of the -// nextPageToken from the previous result page. -func (c *RemarketingListsListCall) PageToken(pageToken string) *RemarketingListsListCall { - c.urlParams_.Set("pageToken", pageToken) - return c -} - -// SortField sets the optional parameter "sortField": Field by which to -// sort the list. -// -// Possible values: -// -// "ID" (default) -// "NAME" -func (c *RemarketingListsListCall) SortField(sortField string) *RemarketingListsListCall { - c.urlParams_.Set("sortField", sortField) - return c -} - -// SortOrder sets the optional parameter "sortOrder": Order of sorted -// results. -// -// Possible values: -// -// "ASCENDING" (default) -// "DESCENDING" -func (c *RemarketingListsListCall) SortOrder(sortOrder string) *RemarketingListsListCall { - c.urlParams_.Set("sortOrder", sortOrder) - 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 *RemarketingListsListCall) Fields(s ...googleapi.Field) *RemarketingListsListCall { - 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 *RemarketingListsListCall) IfNoneMatch(entityTag string) *RemarketingListsListCall { - 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 *RemarketingListsListCall) Context(ctx context.Context) *RemarketingListsListCall { - 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 *RemarketingListsListCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *RemarketingListsListCall) 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, "userprofiles/{profileId}/remarketingLists") - 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{ - "profileId": strconv.FormatInt(c.profileId, 10), - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "dfareporting.remarketingLists.list" call. -// Exactly one of *RemarketingListsListResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *RemarketingListsListResponse.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 *RemarketingListsListCall) Do(opts ...googleapi.CallOption) (*RemarketingListsListResponse, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &RemarketingListsListResponse{ - 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 a list of remarketing lists, possibly filtered. This method supports paging.", - // "flatPath": "userprofiles/{profileId}/remarketingLists", - // "httpMethod": "GET", - // "id": "dfareporting.remarketingLists.list", - // "parameterOrder": [ - // "profileId", - // "advertiserId" - // ], - // "parameters": { - // "active": { - // "description": "Select only active or only inactive remarketing lists.", - // "location": "query", - // "type": "boolean" - // }, - // "advertiserId": { - // "description": "Select only remarketing lists owned by this advertiser.", - // "format": "int64", - // "location": "query", - // "required": true, - // "type": "string" - // }, - // "floodlightActivityId": { - // "description": "Select only remarketing lists that have this floodlight activity ID.", - // "format": "int64", - // "location": "query", - // "type": "string" - // }, - // "maxResults": { - // "default": "1000", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "1000", - // "minimum": "0", - // "type": "integer" - // }, - // "name": { - // "description": "Allows searching for objects by name or ID. Wildcards (*) are allowed. For example, \"remarketing list*2015\" will return objects with names like \"remarketing list June 2015\", \"remarketing list April 2015\", or simply \"remarketing list 2015\". Most of the searches also add wildcards implicitly at the start and the end of the search string. For example, a search string of \"remarketing list\" will match objects with name \"my remarketing list\", \"remarketing list 2015\", or simply \"remarketing list\".", - // "location": "query", - // "type": "string" - // }, - // "pageToken": { - // "description": "Value of the nextPageToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "sortField": { - // "default": "ID", - // "description": "Field by which to sort the list.", - // "enum": [ - // "ID", - // "NAME" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "sortOrder": { - // "default": "ASCENDING", - // "description": "Order of sorted results.", - // "enum": [ - // "ASCENDING", - // "DESCENDING" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/remarketingLists", - // "response": { - // "$ref": "RemarketingListsListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// 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 *RemarketingListsListCall) Pages(ctx context.Context, f func(*RemarketingListsListResponse) 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 "dfareporting.remarketingLists.patch": - -type RemarketingListsPatchCall struct { - s *Service - profileId int64 - remarketinglist *RemarketingList - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// Patch: Updates an existing remarketing list. This method supports -// patch semantics. -// -// - id: RemarketingList ID. -// - profileId: User profile ID associated with this request. -func (r *RemarketingListsService) Patch(profileId int64, id int64, remarketinglist *RemarketingList) *RemarketingListsPatchCall { - c := &RemarketingListsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.profileId = profileId - c.urlParams_.Set("id", fmt.Sprint(id)) - c.remarketinglist = remarketinglist - 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 *RemarketingListsPatchCall) Fields(s ...googleapi.Field) *RemarketingListsPatchCall { - 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 *RemarketingListsPatchCall) Context(ctx context.Context) *RemarketingListsPatchCall { - 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 *RemarketingListsPatchCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *RemarketingListsPatchCall) 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.remarketinglist) - 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, "userprofiles/{profileId}/remarketingLists") - 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{ - "profileId": strconv.FormatInt(c.profileId, 10), - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "dfareporting.remarketingLists.patch" call. -// Exactly one of *RemarketingList or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *RemarketingList.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 *RemarketingListsPatchCall) Do(opts ...googleapi.CallOption) (*RemarketingList, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &RemarketingList{ - 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 an existing remarketing list. This method supports patch semantics.", - // "flatPath": "userprofiles/{profileId}/remarketingLists", - // "httpMethod": "PATCH", - // "id": "dfareporting.remarketingLists.patch", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "RemarketingList ID.", - // "format": "int64", - // "location": "query", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/remarketingLists", - // "request": { - // "$ref": "RemarketingList" - // }, - // "response": { - // "$ref": "RemarketingList" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.remarketingLists.update": - -type RemarketingListsUpdateCall struct { - s *Service - profileId int64 - remarketinglist *RemarketingList - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// Update: Updates an existing remarketing list. -// -// - profileId: User profile ID associated with this request. -func (r *RemarketingListsService) Update(profileId int64, remarketinglist *RemarketingList) *RemarketingListsUpdateCall { - c := &RemarketingListsUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.profileId = profileId - c.remarketinglist = remarketinglist - 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 *RemarketingListsUpdateCall) Fields(s ...googleapi.Field) *RemarketingListsUpdateCall { - 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 *RemarketingListsUpdateCall) Context(ctx context.Context) *RemarketingListsUpdateCall { - 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 *RemarketingListsUpdateCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *RemarketingListsUpdateCall) 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.remarketinglist) - 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, "userprofiles/{profileId}/remarketingLists") - urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("PUT", urls, body) - if err != nil { - return nil, err - } - req.Header = reqHeaders - googleapi.Expand(req.URL, map[string]string{ - "profileId": strconv.FormatInt(c.profileId, 10), - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "dfareporting.remarketingLists.update" call. -// Exactly one of *RemarketingList or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *RemarketingList.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 *RemarketingListsUpdateCall) Do(opts ...googleapi.CallOption) (*RemarketingList, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &RemarketingList{ - 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 an existing remarketing list.", - // "flatPath": "userprofiles/{profileId}/remarketingLists", - // "httpMethod": "PUT", - // "id": "dfareporting.remarketingLists.update", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/remarketingLists", - // "request": { - // "$ref": "RemarketingList" - // }, - // "response": { - // "$ref": "RemarketingList" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.reports.delete": - -type ReportsDeleteCall struct { - s *Service - profileId int64 - reportId int64 - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// Delete: Deletes a report by its ID. -// -// - profileId: The Campaign Manager 360 user profile ID. -// - reportId: The ID of the report. -func (r *ReportsService) Delete(profileId int64, reportId int64) *ReportsDeleteCall { - c := &ReportsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.profileId = profileId - c.reportId = reportId - 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 *ReportsDeleteCall) Fields(s ...googleapi.Field) *ReportsDeleteCall { - 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 *ReportsDeleteCall) Context(ctx context.Context) *ReportsDeleteCall { - 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 *ReportsDeleteCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *ReportsDeleteCall) 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, "userprofiles/{profileId}/reports/{reportId}") - 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{ - "profileId": strconv.FormatInt(c.profileId, 10), - "reportId": strconv.FormatInt(c.reportId, 10), - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "dfareporting.reports.delete" call. -func (c *ReportsDeleteCall) 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 gensupport.WrapError(err) - } - return nil - // { - // "description": "Deletes a report by its ID.", - // "flatPath": "userprofiles/{profileId}/reports/{reportId}", - // "httpMethod": "DELETE", - // "id": "dfareporting.reports.delete", - // "parameterOrder": [ - // "profileId", - // "reportId" - // ], - // "parameters": { - // "profileId": { - // "description": "The Campaign Manager 360 user profile ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "reportId": { - // "description": "The ID of the report.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/reports/{reportId}", - // "scopes": [ - // "https://www.googleapis.com/auth/dfareporting" - // ] - // } - -} - -// method id "dfareporting.reports.get": - -type ReportsGetCall struct { - s *Service - profileId int64 - reportId int64 - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} - -// Get: Retrieves a report by its ID. -// -// - profileId: The Campaign Manager 360 user profile ID. -// - reportId: The ID of the report. -func (r *ReportsService) Get(profileId int64, reportId int64) *ReportsGetCall { - c := &ReportsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.profileId = profileId - c.reportId = reportId - 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 *ReportsGetCall) Fields(s ...googleapi.Field) *ReportsGetCall { - 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 *ReportsGetCall) IfNoneMatch(entityTag string) *ReportsGetCall { - 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 *ReportsGetCall) Context(ctx context.Context) *ReportsGetCall { - 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 *ReportsGetCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *ReportsGetCall) 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, "userprofiles/{profileId}/reports/{reportId}") - 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{ - "profileId": strconv.FormatInt(c.profileId, 10), - "reportId": strconv.FormatInt(c.reportId, 10), - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "dfareporting.reports.get" call. -// Exactly one of *Report or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Report.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 *ReportsGetCall) Do(opts ...googleapi.CallOption) (*Report, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &Report{ - 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 a report by its ID.", - // "flatPath": "userprofiles/{profileId}/reports/{reportId}", - // "httpMethod": "GET", - // "id": "dfareporting.reports.get", - // "parameterOrder": [ - // "profileId", - // "reportId" - // ], - // "parameters": { - // "profileId": { - // "description": "The Campaign Manager 360 user profile ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "reportId": { - // "description": "The ID of the report.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/reports/{reportId}", - // "response": { - // "$ref": "Report" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfareporting" - // ] - // } - -} - -// method id "dfareporting.reports.insert": - -type ReportsInsertCall struct { - s *Service - profileId int64 - report *Report - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// Insert: Creates a report. -// -// - profileId: The Campaign Manager 360 user profile ID. -func (r *ReportsService) Insert(profileId int64, report *Report) *ReportsInsertCall { - c := &ReportsInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.profileId = profileId - c.report = report - 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 *ReportsInsertCall) Fields(s ...googleapi.Field) *ReportsInsertCall { - 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 *ReportsInsertCall) Context(ctx context.Context) *ReportsInsertCall { - 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 *ReportsInsertCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *ReportsInsertCall) 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.report) - 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, "userprofiles/{profileId}/reports") - 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{ - "profileId": strconv.FormatInt(c.profileId, 10), - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "dfareporting.reports.insert" call. -// Exactly one of *Report or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Report.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 *ReportsInsertCall) Do(opts ...googleapi.CallOption) (*Report, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &Report{ - 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 report.", - // "flatPath": "userprofiles/{profileId}/reports", - // "httpMethod": "POST", - // "id": "dfareporting.reports.insert", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "The Campaign Manager 360 user profile ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/reports", - // "request": { - // "$ref": "Report" - // }, - // "response": { - // "$ref": "Report" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfareporting" - // ] - // } - -} - -// method id "dfareporting.reports.list": - -type ReportsListCall struct { - s *Service - profileId int64 - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} - -// List: Retrieves list of reports. -// -// - profileId: The Campaign Manager 360 user profile ID. -func (r *ReportsService) List(profileId int64) *ReportsListCall { - c := &ReportsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.profileId = profileId - return c -} - -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. -func (c *ReportsListCall) MaxResults(maxResults int64) *ReportsListCall { - c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) - return c -} - -// PageToken sets the optional parameter "pageToken": The value of the -// nextToken from the previous result page. -func (c *ReportsListCall) PageToken(pageToken string) *ReportsListCall { - c.urlParams_.Set("pageToken", pageToken) - return c -} - -// Scope sets the optional parameter "scope": The scope that defines -// which results are returned. -// -// Possible values: -// -// "ALL" - All reports in account. -// "MINE" (default) - My reports. -func (c *ReportsListCall) Scope(scope string) *ReportsListCall { - c.urlParams_.Set("scope", scope) - return c -} - -// SortField sets the optional parameter "sortField": The field by which -// to sort the list. -// -// Possible values: -// -// "ID" - Sort by report ID. -// "LAST_MODIFIED_TIME" (default) - Sort by 'lastModifiedTime' field. -// "NAME" - Sort by name of reports. -func (c *ReportsListCall) SortField(sortField string) *ReportsListCall { - c.urlParams_.Set("sortField", sortField) - return c -} - -// SortOrder sets the optional parameter "sortOrder": Order of sorted -// results. -// -// Possible values: -// -// "ASCENDING" - Ascending order. -// "DESCENDING" (default) - Descending order. -func (c *ReportsListCall) SortOrder(sortOrder string) *ReportsListCall { - c.urlParams_.Set("sortOrder", sortOrder) - 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 *ReportsListCall) Fields(s ...googleapi.Field) *ReportsListCall { - 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 *ReportsListCall) IfNoneMatch(entityTag string) *ReportsListCall { - 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 *ReportsListCall) Context(ctx context.Context) *ReportsListCall { - 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 *ReportsListCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *ReportsListCall) 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, "userprofiles/{profileId}/reports") - 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{ - "profileId": strconv.FormatInt(c.profileId, 10), - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "dfareporting.reports.list" call. -// Exactly one of *ReportList or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *ReportList.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 *ReportsListCall) Do(opts ...googleapi.CallOption) (*ReportList, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &ReportList{ - 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 list of reports.", - // "flatPath": "userprofiles/{profileId}/reports", - // "httpMethod": "GET", - // "id": "dfareporting.reports.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "maxResults": { - // "default": "10", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "10", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "The value of the nextToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "The Campaign Manager 360 user profile ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "scope": { - // "default": "MINE", - // "description": "The scope that defines which results are returned.", - // "enum": [ - // "ALL", - // "MINE" - // ], - // "enumDescriptions": [ - // "All reports in account.", - // "My reports." - // ], - // "location": "query", - // "type": "string" - // }, - // "sortField": { - // "default": "LAST_MODIFIED_TIME", - // "description": "The field by which to sort the list.", - // "enum": [ - // "ID", - // "LAST_MODIFIED_TIME", - // "NAME" - // ], - // "enumDescriptions": [ - // "Sort by report ID.", - // "Sort by 'lastModifiedTime' field.", - // "Sort by name of reports." - // ], - // "location": "query", - // "type": "string" - // }, - // "sortOrder": { - // "default": "DESCENDING", - // "description": "Order of sorted results.", - // "enum": [ - // "ASCENDING", - // "DESCENDING" - // ], - // "enumDescriptions": [ - // "Ascending order.", - // "Descending order." - // ], - // "location": "query", - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/reports", - // "response": { - // "$ref": "ReportList" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfareporting" - // ] - // } - -} - -// 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 *ReportsListCall) Pages(ctx context.Context, f func(*ReportList) 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 "dfareporting.reports.patch": - -type ReportsPatchCall struct { - s *Service - profileId int64 - reportId int64 - report *Report - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// Patch: Updates an existing report. This method supports patch -// semantics. -// -// - profileId: The DFA user profile ID. -// - reportId: The ID of the report. -func (r *ReportsService) Patch(profileId int64, reportId int64, report *Report) *ReportsPatchCall { - c := &ReportsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.profileId = profileId - c.reportId = reportId - c.report = report - 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 *ReportsPatchCall) Fields(s ...googleapi.Field) *ReportsPatchCall { - 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 *ReportsPatchCall) Context(ctx context.Context) *ReportsPatchCall { - 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 *ReportsPatchCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *ReportsPatchCall) 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.report) - 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, "userprofiles/{profileId}/reports/{reportId}") - 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{ - "profileId": strconv.FormatInt(c.profileId, 10), - "reportId": strconv.FormatInt(c.reportId, 10), - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "dfareporting.reports.patch" call. -// Exactly one of *Report or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Report.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 *ReportsPatchCall) Do(opts ...googleapi.CallOption) (*Report, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &Report{ - 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 an existing report. This method supports patch semantics.", - // "flatPath": "userprofiles/{profileId}/reports/{reportId}", - // "httpMethod": "PATCH", - // "id": "dfareporting.reports.patch", - // "parameterOrder": [ - // "profileId", - // "reportId" - // ], - // "parameters": { - // "profileId": { - // "description": "The DFA user profile ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "reportId": { - // "description": "The ID of the report.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/reports/{reportId}", - // "request": { - // "$ref": "Report" - // }, - // "response": { - // "$ref": "Report" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfareporting" - // ] - // } - -} - -// method id "dfareporting.reports.run": - -type ReportsRunCall struct { - s *Service - profileId int64 - reportId int64 - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// Run: Runs a report. -// -// - profileId: The Campaign Manager 360 user profile ID. -// - reportId: The ID of the report. -func (r *ReportsService) Run(profileId int64, reportId int64) *ReportsRunCall { - c := &ReportsRunCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.profileId = profileId - c.reportId = reportId - return c -} - -// Synchronous sets the optional parameter "synchronous": If set and -// true, tries to run the report synchronously. -func (c *ReportsRunCall) Synchronous(synchronous bool) *ReportsRunCall { - c.urlParams_.Set("synchronous", fmt.Sprint(synchronous)) - 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 *ReportsRunCall) Fields(s ...googleapi.Field) *ReportsRunCall { - 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 *ReportsRunCall) Context(ctx context.Context) *ReportsRunCall { - 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 *ReportsRunCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *ReportsRunCall) 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, "userprofiles/{profileId}/reports/{reportId}/run") - urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) - if err != nil { - return nil, err - } - req.Header = reqHeaders - googleapi.Expand(req.URL, map[string]string{ - "profileId": strconv.FormatInt(c.profileId, 10), - "reportId": strconv.FormatInt(c.reportId, 10), - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "dfareporting.reports.run" call. -// Exactly one of *File or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *File.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 *ReportsRunCall) Do(opts ...googleapi.CallOption) (*File, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &File{ - 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": "Runs a report.", - // "flatPath": "userprofiles/{profileId}/reports/{reportId}/run", - // "httpMethod": "POST", - // "id": "dfareporting.reports.run", - // "parameterOrder": [ - // "profileId", - // "reportId" - // ], - // "parameters": { - // "profileId": { - // "description": "The Campaign Manager 360 user profile ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "reportId": { - // "description": "The ID of the report.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "synchronous": { - // "default": "false", - // "description": "If set and true, tries to run the report synchronously.", - // "location": "query", - // "type": "boolean" - // } - // }, - // "path": "userprofiles/{profileId}/reports/{reportId}/run", - // "response": { - // "$ref": "File" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfareporting" - // ] - // } - -} - -// method id "dfareporting.reports.update": - -type ReportsUpdateCall struct { - s *Service - profileId int64 - reportId int64 - report *Report - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// Update: Updates a report. -// -// - profileId: The Campaign Manager 360 user profile ID. -// - reportId: The ID of the report. -func (r *ReportsService) Update(profileId int64, reportId int64, report *Report) *ReportsUpdateCall { - c := &ReportsUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.profileId = profileId - c.reportId = reportId - c.report = report - 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 *ReportsUpdateCall) Fields(s ...googleapi.Field) *ReportsUpdateCall { - 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 *ReportsUpdateCall) Context(ctx context.Context) *ReportsUpdateCall { - 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 *ReportsUpdateCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *ReportsUpdateCall) 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.report) - 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, "userprofiles/{profileId}/reports/{reportId}") - urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("PUT", urls, body) - if err != nil { - return nil, err - } - req.Header = reqHeaders - googleapi.Expand(req.URL, map[string]string{ - "profileId": strconv.FormatInt(c.profileId, 10), - "reportId": strconv.FormatInt(c.reportId, 10), - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "dfareporting.reports.update" call. -// Exactly one of *Report or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Report.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 *ReportsUpdateCall) Do(opts ...googleapi.CallOption) (*Report, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &Report{ - 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 report.", - // "flatPath": "userprofiles/{profileId}/reports/{reportId}", - // "httpMethod": "PUT", - // "id": "dfareporting.reports.update", - // "parameterOrder": [ - // "profileId", - // "reportId" - // ], - // "parameters": { - // "profileId": { - // "description": "The Campaign Manager 360 user profile ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "reportId": { - // "description": "The ID of the report.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/reports/{reportId}", - // "request": { - // "$ref": "Report" - // }, - // "response": { - // "$ref": "Report" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfareporting" - // ] - // } - -} - -// method id "dfareporting.reports.compatibleFields.query": - -type ReportsCompatibleFieldsQueryCall struct { - s *Service - profileId int64 - report *Report - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// Query: 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. -// -// - profileId: The Campaign Manager 360 user profile ID. -func (r *ReportsCompatibleFieldsService) Query(profileId int64, report *Report) *ReportsCompatibleFieldsQueryCall { - c := &ReportsCompatibleFieldsQueryCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.profileId = profileId - c.report = report - 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 *ReportsCompatibleFieldsQueryCall) Fields(s ...googleapi.Field) *ReportsCompatibleFieldsQueryCall { - 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 *ReportsCompatibleFieldsQueryCall) Context(ctx context.Context) *ReportsCompatibleFieldsQueryCall { - 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 *ReportsCompatibleFieldsQueryCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *ReportsCompatibleFieldsQueryCall) 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.report) - 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, "userprofiles/{profileId}/reports/compatiblefields/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{ - "profileId": strconv.FormatInt(c.profileId, 10), - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "dfareporting.reports.compatibleFields.query" call. -// Exactly one of *CompatibleFields or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *CompatibleFields.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 *ReportsCompatibleFieldsQueryCall) Do(opts ...googleapi.CallOption) (*CompatibleFields, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &CompatibleFields{ - 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 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": "userprofiles/{profileId}/reports/compatiblefields/query", - // "httpMethod": "POST", - // "id": "dfareporting.reports.compatibleFields.query", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "The Campaign Manager 360 user profile ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/reports/compatiblefields/query", - // "request": { - // "$ref": "Report" - // }, - // "response": { - // "$ref": "CompatibleFields" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfareporting" - // ] - // } - -} - -// method id "dfareporting.reports.files.get": - -type ReportsFilesGetCall struct { - s *Service - profileId int64 - reportId int64 - fileId int64 - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} - -// Get: Retrieves a report file by its report ID and file ID. This -// method supports media download. -// -// - fileId: The ID of the report file. -// - profileId: The Campaign Manager 360 user profile ID. -// - reportId: The ID of the report. -func (r *ReportsFilesService) Get(profileId int64, reportId int64, fileId int64) *ReportsFilesGetCall { - c := &ReportsFilesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.profileId = profileId - c.reportId = reportId - c.fileId = fileId - 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 *ReportsFilesGetCall) Fields(s ...googleapi.Field) *ReportsFilesGetCall { - 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 *ReportsFilesGetCall) IfNoneMatch(entityTag string) *ReportsFilesGetCall { - c.ifNoneMatch_ = entityTag - return c -} - -// Context sets the context to be used in this call's Do and Download -// methods. Any pending HTTP request will be aborted if the provided -// context is canceled. -func (c *ReportsFilesGetCall) Context(ctx context.Context) *ReportsFilesGetCall { - 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 *ReportsFilesGetCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *ReportsFilesGetCall) 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, "userprofiles/{profileId}/reports/{reportId}/files/{fileId}") - 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{ - "profileId": strconv.FormatInt(c.profileId, 10), - "reportId": strconv.FormatInt(c.reportId, 10), - "fileId": strconv.FormatInt(c.fileId, 10), - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Download fetches the API endpoint's "media" value, instead of the normal -// API response value. If the returned error is nil, the Response is guaranteed to -// have a 2xx status code. Callers must close the Response.Body as usual. -func (c *ReportsFilesGetCall) Download(opts ...googleapi.CallOption) (*http.Response, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("media") - if err != nil { - return nil, err - } - if err := googleapi.CheckResponse(res); err != nil { - res.Body.Close() - return nil, gensupport.WrapError(err) - } - return res, nil -} - -// Do executes the "dfareporting.reports.files.get" call. -// Exactly one of *File or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *File.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 *ReportsFilesGetCall) Do(opts ...googleapi.CallOption) (*File, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &File{ - 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 a report file by its report ID and file ID. This method supports media download.", - // "flatPath": "userprofiles/{profileId}/reports/{reportId}/files/{fileId}", - // "httpMethod": "GET", - // "id": "dfareporting.reports.files.get", - // "parameterOrder": [ - // "profileId", - // "reportId", - // "fileId" - // ], - // "parameters": { - // "fileId": { - // "description": "The ID of the report file.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "The Campaign Manager 360 user profile ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "reportId": { - // "description": "The ID of the report.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/reports/{reportId}/files/{fileId}", - // "response": { - // "$ref": "File" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfareporting" - // ], - // "supportsMediaDownload": true - // } - -} - -// method id "dfareporting.reports.files.list": - -type ReportsFilesListCall struct { - s *Service - profileId int64 - reportId int64 - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} - -// List: Lists files for a report. -// -// - profileId: The Campaign Manager 360 user profile ID. -// - reportId: The ID of the parent report. -func (r *ReportsFilesService) List(profileId int64, reportId int64) *ReportsFilesListCall { - c := &ReportsFilesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.profileId = profileId - c.reportId = reportId - return c -} - -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. -func (c *ReportsFilesListCall) MaxResults(maxResults int64) *ReportsFilesListCall { - c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) - return c -} - -// PageToken sets the optional parameter "pageToken": The value of the -// nextToken from the previous result page. -func (c *ReportsFilesListCall) PageToken(pageToken string) *ReportsFilesListCall { - c.urlParams_.Set("pageToken", pageToken) - return c -} - -// SortField sets the optional parameter "sortField": The field by which -// to sort the list. -// -// Possible values: -// -// "ID" -// "LAST_MODIFIED_TIME" (default) -func (c *ReportsFilesListCall) SortField(sortField string) *ReportsFilesListCall { - c.urlParams_.Set("sortField", sortField) - return c -} - -// SortOrder sets the optional parameter "sortOrder": Order of sorted -// results. -// -// Possible values: -// -// "ASCENDING" -// "DESCENDING" (default) -func (c *ReportsFilesListCall) SortOrder(sortOrder string) *ReportsFilesListCall { - c.urlParams_.Set("sortOrder", sortOrder) - 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 *ReportsFilesListCall) Fields(s ...googleapi.Field) *ReportsFilesListCall { - 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 *ReportsFilesListCall) IfNoneMatch(entityTag string) *ReportsFilesListCall { - 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 *ReportsFilesListCall) Context(ctx context.Context) *ReportsFilesListCall { - 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 *ReportsFilesListCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *ReportsFilesListCall) 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, "userprofiles/{profileId}/reports/{reportId}/files") - 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{ - "profileId": strconv.FormatInt(c.profileId, 10), - "reportId": strconv.FormatInt(c.reportId, 10), - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "dfareporting.reports.files.list" call. -// Exactly one of *FileList or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *FileList.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 *ReportsFilesListCall) Do(opts ...googleapi.CallOption) (*FileList, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &FileList{ - ServerResponse: googleapi.ServerResponse{ - Header: res.Header, - HTTPStatusCode: res.StatusCode, - }, - } - target := &ret - if err := gensupport.DecodeResponse(target, res); err != nil { - return nil, err - } - return ret, nil - // { - // "description": "Lists files for a report.", - // "flatPath": "userprofiles/{profileId}/reports/{reportId}/files", - // "httpMethod": "GET", - // "id": "dfareporting.reports.files.list", - // "parameterOrder": [ - // "profileId", - // "reportId" - // ], - // "parameters": { - // "maxResults": { - // "default": "10", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "10", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "The value of the nextToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "The Campaign Manager 360 user profile ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "reportId": { - // "description": "The ID of the parent report.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "sortField": { - // "default": "LAST_MODIFIED_TIME", - // "description": "The field by which to sort the list.", - // "enum": [ - // "ID", - // "LAST_MODIFIED_TIME" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "sortOrder": { - // "default": "DESCENDING", - // "description": "Order of sorted results.", - // "enum": [ - // "ASCENDING", - // "DESCENDING" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/reports/{reportId}/files", - // "response": { - // "$ref": "FileList" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfareporting" - // ] - // } - -} - -// 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 *ReportsFilesListCall) Pages(ctx context.Context, f func(*FileList) 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 "dfareporting.sites.get": - -type SitesGetCall struct { - s *Service - profileId int64 - id int64 - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} - -// Get: Gets one site by ID. -// -// - id: Site ID. -// - profileId: User profile ID associated with this request. -func (r *SitesService) Get(profileId int64, id int64) *SitesGetCall { - c := &SitesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.profileId = profileId - c.id = id - 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 *SitesGetCall) Fields(s ...googleapi.Field) *SitesGetCall { - 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 *SitesGetCall) IfNoneMatch(entityTag string) *SitesGetCall { - 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 *SitesGetCall) Context(ctx context.Context) *SitesGetCall { - 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 *SitesGetCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *SitesGetCall) 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, "userprofiles/{profileId}/sites/{id}") - 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{ - "profileId": strconv.FormatInt(c.profileId, 10), - "id": strconv.FormatInt(c.id, 10), - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "dfareporting.sites.get" call. -// Exactly one of *Site or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Site.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 *SitesGetCall) Do(opts ...googleapi.CallOption) (*Site, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &Site{ - 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 one site by ID.", - // "flatPath": "userprofiles/{profileId}/sites/{id}", - // "httpMethod": "GET", - // "id": "dfareporting.sites.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Site ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/sites/{id}", - // "response": { - // "$ref": "Site" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.sites.insert": - -type SitesInsertCall struct { - s *Service - profileId int64 - site *Site - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// Insert: Inserts a new site. -// -// - profileId: User profile ID associated with this request. -func (r *SitesService) Insert(profileId int64, site *Site) *SitesInsertCall { - c := &SitesInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.profileId = profileId - c.site = site - 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 *SitesInsertCall) Fields(s ...googleapi.Field) *SitesInsertCall { - 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 *SitesInsertCall) Context(ctx context.Context) *SitesInsertCall { - 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 *SitesInsertCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *SitesInsertCall) 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.site) - 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, "userprofiles/{profileId}/sites") - 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{ - "profileId": strconv.FormatInt(c.profileId, 10), - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "dfareporting.sites.insert" call. -// Exactly one of *Site or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Site.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 *SitesInsertCall) Do(opts ...googleapi.CallOption) (*Site, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &Site{ - 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": "Inserts a new site.", - // "flatPath": "userprofiles/{profileId}/sites", - // "httpMethod": "POST", - // "id": "dfareporting.sites.insert", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/sites", - // "request": { - // "$ref": "Site" - // }, - // "response": { - // "$ref": "Site" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.sites.list": - -type SitesListCall struct { - s *Service - profileId int64 - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} - -// List: Retrieves a list of sites, possibly filtered. This method -// supports paging. -// -// - profileId: User profile ID associated with this request. -func (r *SitesService) List(profileId int64) *SitesListCall { - c := &SitesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.profileId = profileId - return c -} - -// AcceptsInStreamVideoPlacements sets the optional parameter -// "acceptsInStreamVideoPlacements": This search filter is no longer -// supported and will have no effect on the results returned. -func (c *SitesListCall) AcceptsInStreamVideoPlacements(acceptsInStreamVideoPlacements bool) *SitesListCall { - c.urlParams_.Set("acceptsInStreamVideoPlacements", fmt.Sprint(acceptsInStreamVideoPlacements)) - return c -} - -// AcceptsInterstitialPlacements sets the optional parameter -// "acceptsInterstitialPlacements": This search filter is no longer -// supported and will have no effect on the results returned. -func (c *SitesListCall) AcceptsInterstitialPlacements(acceptsInterstitialPlacements bool) *SitesListCall { - c.urlParams_.Set("acceptsInterstitialPlacements", fmt.Sprint(acceptsInterstitialPlacements)) - return c -} - -// AcceptsPublisherPaidPlacements sets the optional parameter -// "acceptsPublisherPaidPlacements": Select only sites that accept -// publisher paid placements. -func (c *SitesListCall) AcceptsPublisherPaidPlacements(acceptsPublisherPaidPlacements bool) *SitesListCall { - c.urlParams_.Set("acceptsPublisherPaidPlacements", fmt.Sprint(acceptsPublisherPaidPlacements)) - return c -} - -// AdWordsSite sets the optional parameter "adWordsSite": Select only -// AdWords sites. -func (c *SitesListCall) AdWordsSite(adWordsSite bool) *SitesListCall { - c.urlParams_.Set("adWordsSite", fmt.Sprint(adWordsSite)) - return c -} - -// Approved sets the optional parameter "approved": Select only approved -// sites. -func (c *SitesListCall) Approved(approved bool) *SitesListCall { - c.urlParams_.Set("approved", fmt.Sprint(approved)) - return c -} - -// CampaignIds sets the optional parameter "campaignIds": Select only -// sites with these campaign IDs. -func (c *SitesListCall) CampaignIds(campaignIds ...int64) *SitesListCall { - var campaignIds_ []string - for _, v := range campaignIds { - campaignIds_ = append(campaignIds_, fmt.Sprint(v)) - } - c.urlParams_.SetMulti("campaignIds", campaignIds_) - return c -} - -// DirectorySiteIds sets the optional parameter "directorySiteIds": -// Select only sites with these directory site IDs. -func (c *SitesListCall) DirectorySiteIds(directorySiteIds ...int64) *SitesListCall { - var directorySiteIds_ []string - for _, v := range directorySiteIds { - directorySiteIds_ = append(directorySiteIds_, fmt.Sprint(v)) - } - c.urlParams_.SetMulti("directorySiteIds", directorySiteIds_) - return c -} - -// Ids sets the optional parameter "ids": Select only sites with these -// IDs. -func (c *SitesListCall) Ids(ids ...int64) *SitesListCall { - var ids_ []string - for _, v := range ids { - ids_ = append(ids_, fmt.Sprint(v)) - } - c.urlParams_.SetMulti("ids", ids_) - return c -} - -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. -func (c *SitesListCall) MaxResults(maxResults int64) *SitesListCall { - c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) - return c -} - -// PageToken sets the optional parameter "pageToken": Value of the -// nextPageToken from the previous result page. -func (c *SitesListCall) PageToken(pageToken string) *SitesListCall { - c.urlParams_.Set("pageToken", pageToken) - return c -} - -// SearchString sets the optional parameter "searchString": Allows -// searching for objects by name, ID or keyName. Wildcards (*) are -// allowed. For example, "site*2015" will return objects with names like -// "site June 2015", "site April 2015", or simply "site 2015". Most of -// the searches also add wildcards implicitly at the start and the end -// of the search string. For example, a search string of "site" will -// match objects with name "my site", "site 2015", or simply "site". -func (c *SitesListCall) SearchString(searchString string) *SitesListCall { - c.urlParams_.Set("searchString", searchString) - return c -} - -// SortField sets the optional parameter "sortField": Field by which to -// sort the list. -// -// Possible values: -// -// "ID" (default) -// "NAME" -func (c *SitesListCall) SortField(sortField string) *SitesListCall { - c.urlParams_.Set("sortField", sortField) - return c -} - -// SortOrder sets the optional parameter "sortOrder": Order of sorted -// results. -// -// Possible values: -// -// "ASCENDING" (default) -// "DESCENDING" -func (c *SitesListCall) SortOrder(sortOrder string) *SitesListCall { - c.urlParams_.Set("sortOrder", sortOrder) - return c -} - -// SubaccountId sets the optional parameter "subaccountId": Select only -// sites with this subaccount ID. -func (c *SitesListCall) SubaccountId(subaccountId int64) *SitesListCall { - c.urlParams_.Set("subaccountId", fmt.Sprint(subaccountId)) - return c -} - -// UnmappedSite sets the optional parameter "unmappedSite": Select only -// sites that have not been mapped to a directory site. -func (c *SitesListCall) UnmappedSite(unmappedSite bool) *SitesListCall { - c.urlParams_.Set("unmappedSite", fmt.Sprint(unmappedSite)) - 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 *SitesListCall) Fields(s ...googleapi.Field) *SitesListCall { - 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 *SitesListCall) IfNoneMatch(entityTag string) *SitesListCall { - 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 *SitesListCall) Context(ctx context.Context) *SitesListCall { - 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 *SitesListCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *SitesListCall) 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, "userprofiles/{profileId}/sites") - 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{ - "profileId": strconv.FormatInt(c.profileId, 10), - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "dfareporting.sites.list" call. -// Exactly one of *SitesListResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *SitesListResponse.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 *SitesListCall) Do(opts ...googleapi.CallOption) (*SitesListResponse, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &SitesListResponse{ - 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 a list of sites, possibly filtered. This method supports paging.", - // "flatPath": "userprofiles/{profileId}/sites", - // "httpMethod": "GET", - // "id": "dfareporting.sites.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "acceptsInStreamVideoPlacements": { - // "description": "This search filter is no longer supported and will have no effect on the results returned.", - // "location": "query", - // "type": "boolean" - // }, - // "acceptsInterstitialPlacements": { - // "description": "This search filter is no longer supported and will have no effect on the results returned.", - // "location": "query", - // "type": "boolean" - // }, - // "acceptsPublisherPaidPlacements": { - // "description": "Select only sites that accept publisher paid placements.", - // "location": "query", - // "type": "boolean" - // }, - // "adWordsSite": { - // "description": "Select only AdWords sites.", - // "location": "query", - // "type": "boolean" - // }, - // "approved": { - // "description": "Select only approved sites.", - // "location": "query", - // "type": "boolean" - // }, - // "campaignIds": { - // "description": "Select only sites with these campaign IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "directorySiteIds": { - // "description": "Select only sites with these directory site IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "ids": { - // "description": "Select only sites with these IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "maxResults": { - // "default": "1000", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "1000", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Value of the nextPageToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "searchString": { - // "description": "Allows searching for objects by name, ID or keyName. Wildcards (*) are allowed. For example, \"site*2015\" will return objects with names like \"site June 2015\", \"site April 2015\", or simply \"site 2015\". Most of the searches also add wildcards implicitly at the start and the end of the search string. For example, a search string of \"site\" will match objects with name \"my site\", \"site 2015\", or simply \"site\".", - // "location": "query", - // "type": "string" - // }, - // "sortField": { - // "default": "ID", - // "description": "Field by which to sort the list.", - // "enum": [ - // "ID", - // "NAME" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "sortOrder": { - // "default": "ASCENDING", - // "description": "Order of sorted results.", - // "enum": [ - // "ASCENDING", - // "DESCENDING" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "subaccountId": { - // "description": "Select only sites with this subaccount ID.", - // "format": "int64", - // "location": "query", - // "type": "string" - // }, - // "unmappedSite": { - // "description": "Select only sites that have not been mapped to a directory site.", - // "location": "query", - // "type": "boolean" - // } - // }, - // "path": "userprofiles/{profileId}/sites", - // "response": { - // "$ref": "SitesListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// 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 *SitesListCall) Pages(ctx context.Context, f func(*SitesListResponse) 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 "dfareporting.sites.patch": - -type SitesPatchCall struct { - s *Service - profileId int64 - site *Site - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// Patch: Updates an existing site. This method supports patch -// semantics. -// -// - id: Site ID. -// - profileId: User profile ID associated with this request. -func (r *SitesService) Patch(profileId int64, id int64, site *Site) *SitesPatchCall { - c := &SitesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.profileId = profileId - c.urlParams_.Set("id", fmt.Sprint(id)) - c.site = site - 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 *SitesPatchCall) Fields(s ...googleapi.Field) *SitesPatchCall { - 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 *SitesPatchCall) Context(ctx context.Context) *SitesPatchCall { - 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 *SitesPatchCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *SitesPatchCall) 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.site) - 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, "userprofiles/{profileId}/sites") - 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{ - "profileId": strconv.FormatInt(c.profileId, 10), - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "dfareporting.sites.patch" call. -// Exactly one of *Site or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Site.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 *SitesPatchCall) Do(opts ...googleapi.CallOption) (*Site, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &Site{ - 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 an existing site. This method supports patch semantics.", - // "flatPath": "userprofiles/{profileId}/sites", - // "httpMethod": "PATCH", - // "id": "dfareporting.sites.patch", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Site ID.", - // "format": "int64", - // "location": "query", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/sites", - // "request": { - // "$ref": "Site" - // }, - // "response": { - // "$ref": "Site" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.sites.update": - -type SitesUpdateCall struct { - s *Service - profileId int64 - site *Site - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// Update: Updates an existing site. -// -// - profileId: User profile ID associated with this request. -func (r *SitesService) Update(profileId int64, site *Site) *SitesUpdateCall { - c := &SitesUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.profileId = profileId - c.site = site - 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 *SitesUpdateCall) Fields(s ...googleapi.Field) *SitesUpdateCall { - 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 *SitesUpdateCall) Context(ctx context.Context) *SitesUpdateCall { - 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 *SitesUpdateCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *SitesUpdateCall) 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.site) - 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, "userprofiles/{profileId}/sites") - urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("PUT", urls, body) - if err != nil { - return nil, err - } - req.Header = reqHeaders - googleapi.Expand(req.URL, map[string]string{ - "profileId": strconv.FormatInt(c.profileId, 10), - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "dfareporting.sites.update" call. -// Exactly one of *Site or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Site.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 *SitesUpdateCall) Do(opts ...googleapi.CallOption) (*Site, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &Site{ - 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 an existing site.", - // "flatPath": "userprofiles/{profileId}/sites", - // "httpMethod": "PUT", - // "id": "dfareporting.sites.update", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/sites", - // "request": { - // "$ref": "Site" - // }, - // "response": { - // "$ref": "Site" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.sizes.get": - -type SizesGetCall struct { - s *Service - profileId int64 - id int64 - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} - -// Get: Gets one size by ID. -// -// - id: Size ID. -// - profileId: User profile ID associated with this request. -func (r *SizesService) Get(profileId int64, id int64) *SizesGetCall { - c := &SizesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.profileId = profileId - c.id = id - 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 *SizesGetCall) Fields(s ...googleapi.Field) *SizesGetCall { - 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 *SizesGetCall) IfNoneMatch(entityTag string) *SizesGetCall { - 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 *SizesGetCall) Context(ctx context.Context) *SizesGetCall { - 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 *SizesGetCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *SizesGetCall) 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, "userprofiles/{profileId}/sizes/{id}") - 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{ - "profileId": strconv.FormatInt(c.profileId, 10), - "id": strconv.FormatInt(c.id, 10), - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "dfareporting.sizes.get" call. -// Exactly one of *Size or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Size.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 *SizesGetCall) Do(opts ...googleapi.CallOption) (*Size, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &Size{ - 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 one size by ID.", - // "flatPath": "userprofiles/{profileId}/sizes/{id}", - // "httpMethod": "GET", - // "id": "dfareporting.sizes.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Size ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/sizes/{id}", - // "response": { - // "$ref": "Size" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.sizes.insert": - -type SizesInsertCall struct { - s *Service - profileId int64 - size *Size - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// Insert: Inserts a new size. -// -// - profileId: User profile ID associated with this request. -func (r *SizesService) Insert(profileId int64, size *Size) *SizesInsertCall { - c := &SizesInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.profileId = profileId - c.size = size - 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 *SizesInsertCall) Fields(s ...googleapi.Field) *SizesInsertCall { - 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 *SizesInsertCall) Context(ctx context.Context) *SizesInsertCall { - 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 *SizesInsertCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *SizesInsertCall) 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.size) - 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, "userprofiles/{profileId}/sizes") - 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{ - "profileId": strconv.FormatInt(c.profileId, 10), - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "dfareporting.sizes.insert" call. -// Exactly one of *Size or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Size.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 *SizesInsertCall) Do(opts ...googleapi.CallOption) (*Size, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &Size{ - 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": "Inserts a new size.", - // "flatPath": "userprofiles/{profileId}/sizes", - // "httpMethod": "POST", - // "id": "dfareporting.sizes.insert", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/sizes", - // "request": { - // "$ref": "Size" - // }, - // "response": { - // "$ref": "Size" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.sizes.list": - -type SizesListCall struct { - s *Service - profileId int64 - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} - -// List: 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. -// -// - profileId: User profile ID associated with this request. -func (r *SizesService) List(profileId int64) *SizesListCall { - c := &SizesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.profileId = profileId - return c -} - -// Height sets the optional parameter "height": Select only sizes with -// this height. -func (c *SizesListCall) Height(height int64) *SizesListCall { - c.urlParams_.Set("height", fmt.Sprint(height)) - return c -} - -// IabStandard sets the optional parameter "iabStandard": Select only -// IAB standard sizes. -func (c *SizesListCall) IabStandard(iabStandard bool) *SizesListCall { - c.urlParams_.Set("iabStandard", fmt.Sprint(iabStandard)) - return c -} - -// Ids sets the optional parameter "ids": Select only sizes with these -// IDs. -func (c *SizesListCall) Ids(ids ...int64) *SizesListCall { - var ids_ []string - for _, v := range ids { - ids_ = append(ids_, fmt.Sprint(v)) - } - c.urlParams_.SetMulti("ids", ids_) - return c -} - -// Width sets the optional parameter "width": Select only sizes with -// this width. -func (c *SizesListCall) Width(width int64) *SizesListCall { - c.urlParams_.Set("width", fmt.Sprint(width)) - 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 *SizesListCall) Fields(s ...googleapi.Field) *SizesListCall { - 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 *SizesListCall) IfNoneMatch(entityTag string) *SizesListCall { - 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 *SizesListCall) Context(ctx context.Context) *SizesListCall { - 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 *SizesListCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *SizesListCall) 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, "userprofiles/{profileId}/sizes") - 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{ - "profileId": strconv.FormatInt(c.profileId, 10), - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "dfareporting.sizes.list" call. -// Exactly one of *SizesListResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *SizesListResponse.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 *SizesListCall) Do(opts ...googleapi.CallOption) (*SizesListResponse, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &SizesListResponse{ - 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 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": "userprofiles/{profileId}/sizes", - // "httpMethod": "GET", - // "id": "dfareporting.sizes.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "height": { - // "description": "Select only sizes with this height.", - // "format": "int32", - // "location": "query", - // "maximum": "32767", - // "minimum": "0", - // "type": "integer" - // }, - // "iabStandard": { - // "description": "Select only IAB standard sizes.", - // "location": "query", - // "type": "boolean" - // }, - // "ids": { - // "description": "Select only sizes with these IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "width": { - // "description": "Select only sizes with this width.", - // "format": "int32", - // "location": "query", - // "maximum": "32767", - // "minimum": "0", - // "type": "integer" - // } - // }, - // "path": "userprofiles/{profileId}/sizes", - // "response": { - // "$ref": "SizesListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.subaccounts.get": - -type SubaccountsGetCall struct { - s *Service - profileId int64 - id int64 - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} - -// Get: Gets one subaccount by ID. -// -// - id: Subaccount ID. -// - profileId: User profile ID associated with this request. -func (r *SubaccountsService) Get(profileId int64, id int64) *SubaccountsGetCall { - c := &SubaccountsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.profileId = profileId - c.id = id - 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 *SubaccountsGetCall) Fields(s ...googleapi.Field) *SubaccountsGetCall { - 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 *SubaccountsGetCall) IfNoneMatch(entityTag string) *SubaccountsGetCall { - 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 *SubaccountsGetCall) Context(ctx context.Context) *SubaccountsGetCall { - 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 *SubaccountsGetCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *SubaccountsGetCall) 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, "userprofiles/{profileId}/subaccounts/{id}") - 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{ - "profileId": strconv.FormatInt(c.profileId, 10), - "id": strconv.FormatInt(c.id, 10), - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "dfareporting.subaccounts.get" call. -// Exactly one of *Subaccount or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Subaccount.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 *SubaccountsGetCall) Do(opts ...googleapi.CallOption) (*Subaccount, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &Subaccount{ - 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 one subaccount by ID.", - // "flatPath": "userprofiles/{profileId}/subaccounts/{id}", - // "httpMethod": "GET", - // "id": "dfareporting.subaccounts.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Subaccount ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/subaccounts/{id}", - // "response": { - // "$ref": "Subaccount" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.subaccounts.insert": - -type SubaccountsInsertCall struct { - s *Service - profileId int64 - subaccount *Subaccount - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// Insert: Inserts a new subaccount. -// -// - profileId: User profile ID associated with this request. -func (r *SubaccountsService) Insert(profileId int64, subaccount *Subaccount) *SubaccountsInsertCall { - c := &SubaccountsInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.profileId = profileId - c.subaccount = subaccount - 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 *SubaccountsInsertCall) Fields(s ...googleapi.Field) *SubaccountsInsertCall { - 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 *SubaccountsInsertCall) Context(ctx context.Context) *SubaccountsInsertCall { - 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 *SubaccountsInsertCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *SubaccountsInsertCall) 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.subaccount) - 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, "userprofiles/{profileId}/subaccounts") - 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{ - "profileId": strconv.FormatInt(c.profileId, 10), - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "dfareporting.subaccounts.insert" call. -// Exactly one of *Subaccount or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Subaccount.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 *SubaccountsInsertCall) Do(opts ...googleapi.CallOption) (*Subaccount, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &Subaccount{ - 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": "Inserts a new subaccount.", - // "flatPath": "userprofiles/{profileId}/subaccounts", - // "httpMethod": "POST", - // "id": "dfareporting.subaccounts.insert", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/subaccounts", - // "request": { - // "$ref": "Subaccount" - // }, - // "response": { - // "$ref": "Subaccount" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.subaccounts.list": - -type SubaccountsListCall struct { - s *Service - profileId int64 - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} - -// List: Gets a list of subaccounts, possibly filtered. This method -// supports paging. -// -// - profileId: User profile ID associated with this request. -func (r *SubaccountsService) List(profileId int64) *SubaccountsListCall { - c := &SubaccountsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.profileId = profileId - return c -} - -// Ids sets the optional parameter "ids": Select only subaccounts with -// these IDs. -func (c *SubaccountsListCall) Ids(ids ...int64) *SubaccountsListCall { - var ids_ []string - for _, v := range ids { - ids_ = append(ids_, fmt.Sprint(v)) - } - c.urlParams_.SetMulti("ids", ids_) - return c -} - -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. -func (c *SubaccountsListCall) MaxResults(maxResults int64) *SubaccountsListCall { - c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) - return c -} - -// PageToken sets the optional parameter "pageToken": Value of the -// nextPageToken from the previous result page. -func (c *SubaccountsListCall) PageToken(pageToken string) *SubaccountsListCall { - c.urlParams_.Set("pageToken", pageToken) - return c -} - -// SearchString sets the optional parameter "searchString": Allows -// searching for objects by name or ID. Wildcards (*) are allowed. For -// example, "subaccount*2015" will return objects with names like -// "subaccount June 2015", "subaccount April 2015", or simply -// "subaccount 2015". Most of the searches also add wildcards implicitly -// at the start and the end of the search string. For example, a search -// string of "subaccount" will match objects with name "my subaccount", -// "subaccount 2015", or simply "subaccount" . -func (c *SubaccountsListCall) SearchString(searchString string) *SubaccountsListCall { - c.urlParams_.Set("searchString", searchString) - return c -} - -// SortField sets the optional parameter "sortField": Field by which to -// sort the list. -// -// Possible values: -// -// "ID" (default) -// "NAME" -func (c *SubaccountsListCall) SortField(sortField string) *SubaccountsListCall { - c.urlParams_.Set("sortField", sortField) - return c -} - -// SortOrder sets the optional parameter "sortOrder": Order of sorted -// results. -// -// Possible values: -// -// "ASCENDING" (default) -// "DESCENDING" -func (c *SubaccountsListCall) SortOrder(sortOrder string) *SubaccountsListCall { - c.urlParams_.Set("sortOrder", sortOrder) - 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 *SubaccountsListCall) Fields(s ...googleapi.Field) *SubaccountsListCall { - 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 *SubaccountsListCall) IfNoneMatch(entityTag string) *SubaccountsListCall { - 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 *SubaccountsListCall) Context(ctx context.Context) *SubaccountsListCall { - 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 *SubaccountsListCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *SubaccountsListCall) 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, "userprofiles/{profileId}/subaccounts") - 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{ - "profileId": strconv.FormatInt(c.profileId, 10), - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "dfareporting.subaccounts.list" call. -// Exactly one of *SubaccountsListResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *SubaccountsListResponse.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 *SubaccountsListCall) Do(opts ...googleapi.CallOption) (*SubaccountsListResponse, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &SubaccountsListResponse{ - 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 list of subaccounts, possibly filtered. This method supports paging.", - // "flatPath": "userprofiles/{profileId}/subaccounts", - // "httpMethod": "GET", - // "id": "dfareporting.subaccounts.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "ids": { - // "description": "Select only subaccounts with these IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "maxResults": { - // "default": "1000", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "1000", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Value of the nextPageToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "searchString": { - // "description": "Allows searching for objects by name or ID. Wildcards (*) are allowed. For example, \"subaccount*2015\" will return objects with names like \"subaccount June 2015\", \"subaccount April 2015\", or simply \"subaccount 2015\". Most of the searches also add wildcards implicitly at the start and the end of the search string. For example, a search string of \"subaccount\" will match objects with name \"my subaccount\", \"subaccount 2015\", or simply \"subaccount\" .", - // "location": "query", - // "type": "string" - // }, - // "sortField": { - // "default": "ID", - // "description": "Field by which to sort the list.", - // "enum": [ - // "ID", - // "NAME" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "sortOrder": { - // "default": "ASCENDING", - // "description": "Order of sorted results.", - // "enum": [ - // "ASCENDING", - // "DESCENDING" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/subaccounts", - // "response": { - // "$ref": "SubaccountsListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// 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 *SubaccountsListCall) Pages(ctx context.Context, f func(*SubaccountsListResponse) 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 "dfareporting.subaccounts.patch": - -type SubaccountsPatchCall struct { - s *Service - profileId int64 - subaccount *Subaccount - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// Patch: Updates an existing subaccount. This method supports patch -// semantics. -// -// - id: Subaccount ID. -// - profileId: User profile ID associated with this request. -func (r *SubaccountsService) Patch(profileId int64, id int64, subaccount *Subaccount) *SubaccountsPatchCall { - c := &SubaccountsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.profileId = profileId - c.urlParams_.Set("id", fmt.Sprint(id)) - c.subaccount = subaccount - 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 *SubaccountsPatchCall) Fields(s ...googleapi.Field) *SubaccountsPatchCall { - 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 *SubaccountsPatchCall) Context(ctx context.Context) *SubaccountsPatchCall { - 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 *SubaccountsPatchCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *SubaccountsPatchCall) 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.subaccount) - 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, "userprofiles/{profileId}/subaccounts") - 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{ - "profileId": strconv.FormatInt(c.profileId, 10), - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "dfareporting.subaccounts.patch" call. -// Exactly one of *Subaccount or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Subaccount.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 *SubaccountsPatchCall) Do(opts ...googleapi.CallOption) (*Subaccount, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &Subaccount{ - 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 an existing subaccount. This method supports patch semantics.", - // "flatPath": "userprofiles/{profileId}/subaccounts", - // "httpMethod": "PATCH", - // "id": "dfareporting.subaccounts.patch", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Subaccount ID.", - // "format": "int64", - // "location": "query", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/subaccounts", - // "request": { - // "$ref": "Subaccount" - // }, - // "response": { - // "$ref": "Subaccount" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.subaccounts.update": - -type SubaccountsUpdateCall struct { - s *Service - profileId int64 - subaccount *Subaccount - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// Update: Updates an existing subaccount. -// -// - profileId: User profile ID associated with this request. -func (r *SubaccountsService) Update(profileId int64, subaccount *Subaccount) *SubaccountsUpdateCall { - c := &SubaccountsUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.profileId = profileId - c.subaccount = subaccount - 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 *SubaccountsUpdateCall) Fields(s ...googleapi.Field) *SubaccountsUpdateCall { - 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 *SubaccountsUpdateCall) Context(ctx context.Context) *SubaccountsUpdateCall { - 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 *SubaccountsUpdateCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *SubaccountsUpdateCall) 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.subaccount) - 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, "userprofiles/{profileId}/subaccounts") - urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("PUT", urls, body) - if err != nil { - return nil, err - } - req.Header = reqHeaders - googleapi.Expand(req.URL, map[string]string{ - "profileId": strconv.FormatInt(c.profileId, 10), - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "dfareporting.subaccounts.update" call. -// Exactly one of *Subaccount or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Subaccount.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 *SubaccountsUpdateCall) Do(opts ...googleapi.CallOption) (*Subaccount, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &Subaccount{ - 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 an existing subaccount.", - // "flatPath": "userprofiles/{profileId}/subaccounts", - // "httpMethod": "PUT", - // "id": "dfareporting.subaccounts.update", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/subaccounts", - // "request": { - // "$ref": "Subaccount" - // }, - // "response": { - // "$ref": "Subaccount" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.targetableRemarketingLists.get": - -type TargetableRemarketingListsGetCall struct { - s *Service - profileId int64 - id int64 - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} - -// Get: Gets one remarketing list by ID. -// -// - id: Remarketing list ID. -// - profileId: User profile ID associated with this request. -func (r *TargetableRemarketingListsService) Get(profileId int64, id int64) *TargetableRemarketingListsGetCall { - c := &TargetableRemarketingListsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.profileId = profileId - c.id = id - 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 *TargetableRemarketingListsGetCall) Fields(s ...googleapi.Field) *TargetableRemarketingListsGetCall { - 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 *TargetableRemarketingListsGetCall) IfNoneMatch(entityTag string) *TargetableRemarketingListsGetCall { - 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 *TargetableRemarketingListsGetCall) Context(ctx context.Context) *TargetableRemarketingListsGetCall { - 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 *TargetableRemarketingListsGetCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *TargetableRemarketingListsGetCall) 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, "userprofiles/{profileId}/targetableRemarketingLists/{id}") - 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{ - "profileId": strconv.FormatInt(c.profileId, 10), - "id": strconv.FormatInt(c.id, 10), - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "dfareporting.targetableRemarketingLists.get" call. -// Exactly one of *TargetableRemarketingList or error will be non-nil. -// Any non-2xx status code is an error. Response headers are in either -// *TargetableRemarketingList.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 *TargetableRemarketingListsGetCall) Do(opts ...googleapi.CallOption) (*TargetableRemarketingList, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &TargetableRemarketingList{ - 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 one remarketing list by ID.", - // "flatPath": "userprofiles/{profileId}/targetableRemarketingLists/{id}", - // "httpMethod": "GET", - // "id": "dfareporting.targetableRemarketingLists.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Remarketing list ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/targetableRemarketingLists/{id}", - // "response": { - // "$ref": "TargetableRemarketingList" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.targetableRemarketingLists.list": - -type TargetableRemarketingListsListCall struct { - s *Service - profileId int64 - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} - -// List: Retrieves a list of targetable remarketing lists, possibly -// filtered. This method supports paging. -// -// - advertiserId: Select only targetable remarketing lists targetable -// by these advertisers. -// - profileId: User profile ID associated with this request. -func (r *TargetableRemarketingListsService) List(profileId int64, advertiserId int64) *TargetableRemarketingListsListCall { - c := &TargetableRemarketingListsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.profileId = profileId - c.urlParams_.Set("advertiserId", fmt.Sprint(advertiserId)) - return c -} - -// Active sets the optional parameter "active": Select only active or -// only inactive targetable remarketing lists. -func (c *TargetableRemarketingListsListCall) Active(active bool) *TargetableRemarketingListsListCall { - c.urlParams_.Set("active", fmt.Sprint(active)) - return c -} - -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. -func (c *TargetableRemarketingListsListCall) MaxResults(maxResults int64) *TargetableRemarketingListsListCall { - c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) - return c -} - -// Name sets the optional parameter "name": Allows searching for objects -// by name or ID. Wildcards (*) are allowed. For example, "remarketing -// list*2015" will return objects with names like "remarketing list June -// 2015", "remarketing list April 2015", or simply "remarketing list -// 2015". Most of the searches also add wildcards implicitly at the -// start and the end of the search string. For example, a search string -// of "remarketing list" will match objects with name "my remarketing -// list", "remarketing list 2015", or simply "remarketing list". -func (c *TargetableRemarketingListsListCall) Name(name string) *TargetableRemarketingListsListCall { - c.urlParams_.Set("name", name) - return c -} - -// PageToken sets the optional parameter "pageToken": Value of the -// nextPageToken from the previous result page. -func (c *TargetableRemarketingListsListCall) PageToken(pageToken string) *TargetableRemarketingListsListCall { - c.urlParams_.Set("pageToken", pageToken) - return c -} - -// SortField sets the optional parameter "sortField": Field by which to -// sort the list. -// -// Possible values: -// -// "ID" (default) -// "NAME" -func (c *TargetableRemarketingListsListCall) SortField(sortField string) *TargetableRemarketingListsListCall { - c.urlParams_.Set("sortField", sortField) - return c -} - -// SortOrder sets the optional parameter "sortOrder": Order of sorted -// results. -// -// Possible values: -// -// "ASCENDING" (default) -// "DESCENDING" -func (c *TargetableRemarketingListsListCall) SortOrder(sortOrder string) *TargetableRemarketingListsListCall { - c.urlParams_.Set("sortOrder", sortOrder) - 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 *TargetableRemarketingListsListCall) Fields(s ...googleapi.Field) *TargetableRemarketingListsListCall { - 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 *TargetableRemarketingListsListCall) IfNoneMatch(entityTag string) *TargetableRemarketingListsListCall { - 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 *TargetableRemarketingListsListCall) Context(ctx context.Context) *TargetableRemarketingListsListCall { - 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 *TargetableRemarketingListsListCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *TargetableRemarketingListsListCall) 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, "userprofiles/{profileId}/targetableRemarketingLists") - 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{ - "profileId": strconv.FormatInt(c.profileId, 10), - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "dfareporting.targetableRemarketingLists.list" call. -// Exactly one of *TargetableRemarketingListsListResponse or error will -// be non-nil. Any non-2xx status code is an error. Response headers are -// in either -// *TargetableRemarketingListsListResponse.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 *TargetableRemarketingListsListCall) Do(opts ...googleapi.CallOption) (*TargetableRemarketingListsListResponse, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &TargetableRemarketingListsListResponse{ - 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 a list of targetable remarketing lists, possibly filtered. This method supports paging.", - // "flatPath": "userprofiles/{profileId}/targetableRemarketingLists", - // "httpMethod": "GET", - // "id": "dfareporting.targetableRemarketingLists.list", - // "parameterOrder": [ - // "profileId", - // "advertiserId" - // ], - // "parameters": { - // "active": { - // "description": "Select only active or only inactive targetable remarketing lists.", - // "location": "query", - // "type": "boolean" - // }, - // "advertiserId": { - // "description": "Select only targetable remarketing lists targetable by these advertisers.", - // "format": "int64", - // "location": "query", - // "required": true, - // "type": "string" - // }, - // "maxResults": { - // "default": "1000", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "1000", - // "minimum": "0", - // "type": "integer" - // }, - // "name": { - // "description": "Allows searching for objects by name or ID. Wildcards (*) are allowed. For example, \"remarketing list*2015\" will return objects with names like \"remarketing list June 2015\", \"remarketing list April 2015\", or simply \"remarketing list 2015\". Most of the searches also add wildcards implicitly at the start and the end of the search string. For example, a search string of \"remarketing list\" will match objects with name \"my remarketing list\", \"remarketing list 2015\", or simply \"remarketing list\".", - // "location": "query", - // "type": "string" - // }, - // "pageToken": { - // "description": "Value of the nextPageToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "sortField": { - // "default": "ID", - // "description": "Field by which to sort the list.", - // "enum": [ - // "ID", - // "NAME" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "sortOrder": { - // "default": "ASCENDING", - // "description": "Order of sorted results.", - // "enum": [ - // "ASCENDING", - // "DESCENDING" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/targetableRemarketingLists", - // "response": { - // "$ref": "TargetableRemarketingListsListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// 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 *TargetableRemarketingListsListCall) Pages(ctx context.Context, f func(*TargetableRemarketingListsListResponse) 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 "dfareporting.targetingTemplates.get": - -type TargetingTemplatesGetCall struct { - s *Service - profileId int64 - id int64 - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} - -// Get: Gets one targeting template by ID. -// -// - id: Targeting template ID. -// - profileId: User profile ID associated with this request. -func (r *TargetingTemplatesService) Get(profileId int64, id int64) *TargetingTemplatesGetCall { - c := &TargetingTemplatesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.profileId = profileId - c.id = id - 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 *TargetingTemplatesGetCall) Fields(s ...googleapi.Field) *TargetingTemplatesGetCall { - 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 *TargetingTemplatesGetCall) IfNoneMatch(entityTag string) *TargetingTemplatesGetCall { - 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 *TargetingTemplatesGetCall) Context(ctx context.Context) *TargetingTemplatesGetCall { - 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 *TargetingTemplatesGetCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *TargetingTemplatesGetCall) 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, "userprofiles/{profileId}/targetingTemplates/{id}") - 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{ - "profileId": strconv.FormatInt(c.profileId, 10), - "id": strconv.FormatInt(c.id, 10), - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "dfareporting.targetingTemplates.get" call. -// Exactly one of *TargetingTemplate or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *TargetingTemplate.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 *TargetingTemplatesGetCall) Do(opts ...googleapi.CallOption) (*TargetingTemplate, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &TargetingTemplate{ - 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 one targeting template by ID.", - // "flatPath": "userprofiles/{profileId}/targetingTemplates/{id}", - // "httpMethod": "GET", - // "id": "dfareporting.targetingTemplates.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Targeting template ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/targetingTemplates/{id}", - // "response": { - // "$ref": "TargetingTemplate" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.targetingTemplates.insert": - -type TargetingTemplatesInsertCall struct { - s *Service - profileId int64 - targetingtemplate *TargetingTemplate - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// Insert: Inserts a new targeting template. -// -// - profileId: User profile ID associated with this request. -func (r *TargetingTemplatesService) Insert(profileId int64, targetingtemplate *TargetingTemplate) *TargetingTemplatesInsertCall { - c := &TargetingTemplatesInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.profileId = profileId - c.targetingtemplate = targetingtemplate - 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 *TargetingTemplatesInsertCall) Fields(s ...googleapi.Field) *TargetingTemplatesInsertCall { - 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 *TargetingTemplatesInsertCall) Context(ctx context.Context) *TargetingTemplatesInsertCall { - 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 *TargetingTemplatesInsertCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *TargetingTemplatesInsertCall) 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.targetingtemplate) - 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, "userprofiles/{profileId}/targetingTemplates") - 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{ - "profileId": strconv.FormatInt(c.profileId, 10), - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "dfareporting.targetingTemplates.insert" call. -// Exactly one of *TargetingTemplate or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *TargetingTemplate.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 *TargetingTemplatesInsertCall) Do(opts ...googleapi.CallOption) (*TargetingTemplate, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &TargetingTemplate{ - 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": "Inserts a new targeting template.", - // "flatPath": "userprofiles/{profileId}/targetingTemplates", - // "httpMethod": "POST", - // "id": "dfareporting.targetingTemplates.insert", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/targetingTemplates", - // "request": { - // "$ref": "TargetingTemplate" - // }, - // "response": { - // "$ref": "TargetingTemplate" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.targetingTemplates.list": - -type TargetingTemplatesListCall struct { - s *Service - profileId int64 - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} - -// List: Retrieves a list of targeting templates, optionally filtered. -// This method supports paging. -// -// - profileId: User profile ID associated with this request. -func (r *TargetingTemplatesService) List(profileId int64) *TargetingTemplatesListCall { - c := &TargetingTemplatesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.profileId = profileId - return c -} - -// AdvertiserId sets the optional parameter "advertiserId": Select only -// targeting templates with this advertiser ID. -func (c *TargetingTemplatesListCall) AdvertiserId(advertiserId int64) *TargetingTemplatesListCall { - c.urlParams_.Set("advertiserId", fmt.Sprint(advertiserId)) - return c -} - -// Ids sets the optional parameter "ids": Select only targeting -// templates with these IDs. -func (c *TargetingTemplatesListCall) Ids(ids ...int64) *TargetingTemplatesListCall { - var ids_ []string - for _, v := range ids { - ids_ = append(ids_, fmt.Sprint(v)) - } - c.urlParams_.SetMulti("ids", ids_) - return c -} - -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. -func (c *TargetingTemplatesListCall) MaxResults(maxResults int64) *TargetingTemplatesListCall { - c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) - return c -} - -// PageToken sets the optional parameter "pageToken": Value of the -// nextPageToken from the previous result page. -func (c *TargetingTemplatesListCall) PageToken(pageToken string) *TargetingTemplatesListCall { - c.urlParams_.Set("pageToken", pageToken) - return c -} - -// SearchString sets the optional parameter "searchString": Allows -// searching for objects by name or ID. Wildcards (*) are allowed. For -// example, "template*2015" will return objects with names like -// "template June 2015", "template April 2015", or simply "template -// 2015". Most of the searches also add wildcards implicitly at the -// start and the end of the search string. For example, a search string -// of "template" will match objects with name "my template", "template -// 2015", or simply "template". -func (c *TargetingTemplatesListCall) SearchString(searchString string) *TargetingTemplatesListCall { - c.urlParams_.Set("searchString", searchString) - return c -} - -// SortField sets the optional parameter "sortField": Field by which to -// sort the list. -// -// Possible values: -// -// "ID" (default) -// "NAME" -func (c *TargetingTemplatesListCall) SortField(sortField string) *TargetingTemplatesListCall { - c.urlParams_.Set("sortField", sortField) - return c -} - -// SortOrder sets the optional parameter "sortOrder": Order of sorted -// results. -// -// Possible values: -// -// "ASCENDING" (default) -// "DESCENDING" -func (c *TargetingTemplatesListCall) SortOrder(sortOrder string) *TargetingTemplatesListCall { - c.urlParams_.Set("sortOrder", sortOrder) - 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 *TargetingTemplatesListCall) Fields(s ...googleapi.Field) *TargetingTemplatesListCall { - 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 *TargetingTemplatesListCall) IfNoneMatch(entityTag string) *TargetingTemplatesListCall { - 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 *TargetingTemplatesListCall) Context(ctx context.Context) *TargetingTemplatesListCall { - 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 *TargetingTemplatesListCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *TargetingTemplatesListCall) 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, "userprofiles/{profileId}/targetingTemplates") - 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{ - "profileId": strconv.FormatInt(c.profileId, 10), - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "dfareporting.targetingTemplates.list" call. -// Exactly one of *TargetingTemplatesListResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *TargetingTemplatesListResponse.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 *TargetingTemplatesListCall) Do(opts ...googleapi.CallOption) (*TargetingTemplatesListResponse, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &TargetingTemplatesListResponse{ - 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 a list of targeting templates, optionally filtered. This method supports paging.", - // "flatPath": "userprofiles/{profileId}/targetingTemplates", - // "httpMethod": "GET", - // "id": "dfareporting.targetingTemplates.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "advertiserId": { - // "description": "Select only targeting templates with this advertiser ID.", - // "format": "int64", - // "location": "query", - // "type": "string" - // }, - // "ids": { - // "description": "Select only targeting templates with these IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "maxResults": { - // "default": "1000", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "1000", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Value of the nextPageToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "searchString": { - // "description": "Allows searching for objects by name or ID. Wildcards (*) are allowed. For example, \"template*2015\" will return objects with names like \"template June 2015\", \"template April 2015\", or simply \"template 2015\". Most of the searches also add wildcards implicitly at the start and the end of the search string. For example, a search string of \"template\" will match objects with name \"my template\", \"template 2015\", or simply \"template\".", - // "location": "query", - // "type": "string" - // }, - // "sortField": { - // "default": "ID", - // "description": "Field by which to sort the list.", - // "enum": [ - // "ID", - // "NAME" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "sortOrder": { - // "default": "ASCENDING", - // "description": "Order of sorted results.", - // "enum": [ - // "ASCENDING", - // "DESCENDING" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/targetingTemplates", - // "response": { - // "$ref": "TargetingTemplatesListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// 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 *TargetingTemplatesListCall) Pages(ctx context.Context, f func(*TargetingTemplatesListResponse) 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 "dfareporting.targetingTemplates.patch": - -type TargetingTemplatesPatchCall struct { - s *Service - profileId int64 - targetingtemplate *TargetingTemplate - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// Patch: Updates an existing targeting template. This method supports -// patch semantics. -// -// - id: TargetingTemplate ID. -// - profileId: User profile ID associated with this request. -func (r *TargetingTemplatesService) Patch(profileId int64, id int64, targetingtemplate *TargetingTemplate) *TargetingTemplatesPatchCall { - c := &TargetingTemplatesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.profileId = profileId - c.urlParams_.Set("id", fmt.Sprint(id)) - c.targetingtemplate = targetingtemplate - 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 *TargetingTemplatesPatchCall) Fields(s ...googleapi.Field) *TargetingTemplatesPatchCall { - 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 *TargetingTemplatesPatchCall) Context(ctx context.Context) *TargetingTemplatesPatchCall { - 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 *TargetingTemplatesPatchCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *TargetingTemplatesPatchCall) 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.targetingtemplate) - 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, "userprofiles/{profileId}/targetingTemplates") - 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{ - "profileId": strconv.FormatInt(c.profileId, 10), - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "dfareporting.targetingTemplates.patch" call. -// Exactly one of *TargetingTemplate or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *TargetingTemplate.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 *TargetingTemplatesPatchCall) Do(opts ...googleapi.CallOption) (*TargetingTemplate, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &TargetingTemplate{ - 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 an existing targeting template. This method supports patch semantics.", - // "flatPath": "userprofiles/{profileId}/targetingTemplates", - // "httpMethod": "PATCH", - // "id": "dfareporting.targetingTemplates.patch", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "TargetingTemplate ID.", - // "format": "int64", - // "location": "query", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/targetingTemplates", - // "request": { - // "$ref": "TargetingTemplate" - // }, - // "response": { - // "$ref": "TargetingTemplate" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.targetingTemplates.update": - -type TargetingTemplatesUpdateCall struct { - s *Service - profileId int64 - targetingtemplate *TargetingTemplate - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// Update: Updates an existing targeting template. -// -// - profileId: User profile ID associated with this request. -func (r *TargetingTemplatesService) Update(profileId int64, targetingtemplate *TargetingTemplate) *TargetingTemplatesUpdateCall { - c := &TargetingTemplatesUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.profileId = profileId - c.targetingtemplate = targetingtemplate - 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 *TargetingTemplatesUpdateCall) Fields(s ...googleapi.Field) *TargetingTemplatesUpdateCall { - 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 *TargetingTemplatesUpdateCall) Context(ctx context.Context) *TargetingTemplatesUpdateCall { - 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 *TargetingTemplatesUpdateCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *TargetingTemplatesUpdateCall) 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.targetingtemplate) - 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, "userprofiles/{profileId}/targetingTemplates") - urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("PUT", urls, body) - if err != nil { - return nil, err - } - req.Header = reqHeaders - googleapi.Expand(req.URL, map[string]string{ - "profileId": strconv.FormatInt(c.profileId, 10), - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "dfareporting.targetingTemplates.update" call. -// Exactly one of *TargetingTemplate or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *TargetingTemplate.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 *TargetingTemplatesUpdateCall) Do(opts ...googleapi.CallOption) (*TargetingTemplate, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &TargetingTemplate{ - 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 an existing targeting template.", - // "flatPath": "userprofiles/{profileId}/targetingTemplates", - // "httpMethod": "PUT", - // "id": "dfareporting.targetingTemplates.update", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/targetingTemplates", - // "request": { - // "$ref": "TargetingTemplate" - // }, - // "response": { - // "$ref": "TargetingTemplate" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.userProfiles.get": - -type UserProfilesGetCall struct { - s *Service - profileId int64 - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} - -// Get: Gets one user profile by ID. -// -// - profileId: The user profile ID. -func (r *UserProfilesService) Get(profileId int64) *UserProfilesGetCall { - c := &UserProfilesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.profileId = profileId - 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 *UserProfilesGetCall) Fields(s ...googleapi.Field) *UserProfilesGetCall { - 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 *UserProfilesGetCall) IfNoneMatch(entityTag string) *UserProfilesGetCall { - 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 *UserProfilesGetCall) Context(ctx context.Context) *UserProfilesGetCall { - 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 *UserProfilesGetCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *UserProfilesGetCall) 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, "userprofiles/{profileId}") - 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{ - "profileId": strconv.FormatInt(c.profileId, 10), - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "dfareporting.userProfiles.get" call. -// Exactly one of *UserProfile or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *UserProfile.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 *UserProfilesGetCall) Do(opts ...googleapi.CallOption) (*UserProfile, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &UserProfile{ - 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 one user profile by ID.", - // "flatPath": "userprofiles/{profileId}", - // "httpMethod": "GET", - // "id": "dfareporting.userProfiles.get", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "The user profile ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}", - // "response": { - // "$ref": "UserProfile" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/ddmconversions", - // "https://www.googleapis.com/auth/dfareporting", - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.userProfiles.list": - -type UserProfilesListCall struct { - s *Service - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} - -// List: Retrieves list of user profiles for a user. -func (r *UserProfilesService) List() *UserProfilesListCall { - c := &UserProfilesListCall{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 *UserProfilesListCall) Fields(s ...googleapi.Field) *UserProfilesListCall { - 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 *UserProfilesListCall) IfNoneMatch(entityTag string) *UserProfilesListCall { - 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 *UserProfilesListCall) Context(ctx context.Context) *UserProfilesListCall { - 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 *UserProfilesListCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *UserProfilesListCall) 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, "userprofiles") - 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 "dfareporting.userProfiles.list" call. -// Exactly one of *UserProfileList or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *UserProfileList.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 *UserProfilesListCall) Do(opts ...googleapi.CallOption) (*UserProfileList, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &UserProfileList{ - 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 list of user profiles for a user.", - // "flatPath": "userprofiles", - // "httpMethod": "GET", - // "id": "dfareporting.userProfiles.list", - // "parameterOrder": [], - // "parameters": {}, - // "path": "userprofiles", - // "response": { - // "$ref": "UserProfileList" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/ddmconversions", - // "https://www.googleapis.com/auth/dfareporting", - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.userRolePermissionGroups.get": - -type UserRolePermissionGroupsGetCall struct { - s *Service - profileId int64 - id int64 - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} - -// Get: Gets one user role permission group by ID. -// -// - id: User role permission group ID. -// - profileId: User profile ID associated with this request. -func (r *UserRolePermissionGroupsService) Get(profileId int64, id int64) *UserRolePermissionGroupsGetCall { - c := &UserRolePermissionGroupsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.profileId = profileId - c.id = id - 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 *UserRolePermissionGroupsGetCall) Fields(s ...googleapi.Field) *UserRolePermissionGroupsGetCall { - 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 *UserRolePermissionGroupsGetCall) IfNoneMatch(entityTag string) *UserRolePermissionGroupsGetCall { - 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 *UserRolePermissionGroupsGetCall) Context(ctx context.Context) *UserRolePermissionGroupsGetCall { - 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 *UserRolePermissionGroupsGetCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *UserRolePermissionGroupsGetCall) 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, "userprofiles/{profileId}/userRolePermissionGroups/{id}") - 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{ - "profileId": strconv.FormatInt(c.profileId, 10), - "id": strconv.FormatInt(c.id, 10), - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "dfareporting.userRolePermissionGroups.get" call. -// Exactly one of *UserRolePermissionGroup or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *UserRolePermissionGroup.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 *UserRolePermissionGroupsGetCall) Do(opts ...googleapi.CallOption) (*UserRolePermissionGroup, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &UserRolePermissionGroup{ - 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 one user role permission group by ID.", - // "flatPath": "userprofiles/{profileId}/userRolePermissionGroups/{id}", - // "httpMethod": "GET", - // "id": "dfareporting.userRolePermissionGroups.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "User role permission group ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/userRolePermissionGroups/{id}", - // "response": { - // "$ref": "UserRolePermissionGroup" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.userRolePermissionGroups.list": - -type UserRolePermissionGroupsListCall struct { - s *Service - profileId int64 - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} - -// List: Gets a list of all supported user role permission groups. -// -// - profileId: User profile ID associated with this request. -func (r *UserRolePermissionGroupsService) List(profileId int64) *UserRolePermissionGroupsListCall { - c := &UserRolePermissionGroupsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.profileId = profileId - 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 *UserRolePermissionGroupsListCall) Fields(s ...googleapi.Field) *UserRolePermissionGroupsListCall { - 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 *UserRolePermissionGroupsListCall) IfNoneMatch(entityTag string) *UserRolePermissionGroupsListCall { - 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 *UserRolePermissionGroupsListCall) Context(ctx context.Context) *UserRolePermissionGroupsListCall { - 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 *UserRolePermissionGroupsListCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *UserRolePermissionGroupsListCall) 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, "userprofiles/{profileId}/userRolePermissionGroups") - 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{ - "profileId": strconv.FormatInt(c.profileId, 10), - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "dfareporting.userRolePermissionGroups.list" call. -// Exactly one of *UserRolePermissionGroupsListResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *UserRolePermissionGroupsListResponse.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 *UserRolePermissionGroupsListCall) Do(opts ...googleapi.CallOption) (*UserRolePermissionGroupsListResponse, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &UserRolePermissionGroupsListResponse{ - 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 list of all supported user role permission groups.", - // "flatPath": "userprofiles/{profileId}/userRolePermissionGroups", - // "httpMethod": "GET", - // "id": "dfareporting.userRolePermissionGroups.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/userRolePermissionGroups", - // "response": { - // "$ref": "UserRolePermissionGroupsListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.userRolePermissions.get": - -type UserRolePermissionsGetCall struct { - s *Service - profileId int64 - id int64 - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} - -// Get: Gets one user role permission by ID. -// -// - id: User role permission ID. -// - profileId: User profile ID associated with this request. -func (r *UserRolePermissionsService) Get(profileId int64, id int64) *UserRolePermissionsGetCall { - c := &UserRolePermissionsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.profileId = profileId - c.id = id - 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 *UserRolePermissionsGetCall) Fields(s ...googleapi.Field) *UserRolePermissionsGetCall { - 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 *UserRolePermissionsGetCall) IfNoneMatch(entityTag string) *UserRolePermissionsGetCall { - 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 *UserRolePermissionsGetCall) Context(ctx context.Context) *UserRolePermissionsGetCall { - 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 *UserRolePermissionsGetCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *UserRolePermissionsGetCall) 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, "userprofiles/{profileId}/userRolePermissions/{id}") - 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{ - "profileId": strconv.FormatInt(c.profileId, 10), - "id": strconv.FormatInt(c.id, 10), - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "dfareporting.userRolePermissions.get" call. -// Exactly one of *UserRolePermission or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *UserRolePermission.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 *UserRolePermissionsGetCall) Do(opts ...googleapi.CallOption) (*UserRolePermission, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &UserRolePermission{ - 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 one user role permission by ID.", - // "flatPath": "userprofiles/{profileId}/userRolePermissions/{id}", - // "httpMethod": "GET", - // "id": "dfareporting.userRolePermissions.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "User role permission ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/userRolePermissions/{id}", - // "response": { - // "$ref": "UserRolePermission" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.userRolePermissions.list": - -type UserRolePermissionsListCall struct { - s *Service - profileId int64 - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} - -// List: Gets a list of user role permissions, possibly filtered. -// -// - profileId: User profile ID associated with this request. -func (r *UserRolePermissionsService) List(profileId int64) *UserRolePermissionsListCall { - c := &UserRolePermissionsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.profileId = profileId - return c -} - -// Ids sets the optional parameter "ids": Select only user role -// permissions with these IDs. -func (c *UserRolePermissionsListCall) Ids(ids ...int64) *UserRolePermissionsListCall { - var ids_ []string - for _, v := range ids { - ids_ = append(ids_, fmt.Sprint(v)) - } - c.urlParams_.SetMulti("ids", ids_) - 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 *UserRolePermissionsListCall) Fields(s ...googleapi.Field) *UserRolePermissionsListCall { - 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 *UserRolePermissionsListCall) IfNoneMatch(entityTag string) *UserRolePermissionsListCall { - 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 *UserRolePermissionsListCall) Context(ctx context.Context) *UserRolePermissionsListCall { - 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 *UserRolePermissionsListCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *UserRolePermissionsListCall) 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, "userprofiles/{profileId}/userRolePermissions") - 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{ - "profileId": strconv.FormatInt(c.profileId, 10), - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "dfareporting.userRolePermissions.list" call. -// Exactly one of *UserRolePermissionsListResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *UserRolePermissionsListResponse.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 *UserRolePermissionsListCall) Do(opts ...googleapi.CallOption) (*UserRolePermissionsListResponse, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &UserRolePermissionsListResponse{ - 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 list of user role permissions, possibly filtered.", - // "flatPath": "userprofiles/{profileId}/userRolePermissions", - // "httpMethod": "GET", - // "id": "dfareporting.userRolePermissions.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "ids": { - // "description": "Select only user role permissions with these IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/userRolePermissions", - // "response": { - // "$ref": "UserRolePermissionsListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.userRoles.delete": - -type UserRolesDeleteCall struct { - s *Service - profileId int64 - id int64 - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// Delete: Deletes an existing user role. -// -// - id: User role ID. -// - profileId: User profile ID associated with this request. -func (r *UserRolesService) Delete(profileId int64, id int64) *UserRolesDeleteCall { - c := &UserRolesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.profileId = profileId - c.id = id - 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 *UserRolesDeleteCall) Fields(s ...googleapi.Field) *UserRolesDeleteCall { - 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 *UserRolesDeleteCall) Context(ctx context.Context) *UserRolesDeleteCall { - 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 *UserRolesDeleteCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *UserRolesDeleteCall) 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, "userprofiles/{profileId}/userRoles/{id}") - 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{ - "profileId": strconv.FormatInt(c.profileId, 10), - "id": strconv.FormatInt(c.id, 10), - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "dfareporting.userRoles.delete" call. -func (c *UserRolesDeleteCall) 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 gensupport.WrapError(err) - } - return nil - // { - // "description": "Deletes an existing user role.", - // "flatPath": "userprofiles/{profileId}/userRoles/{id}", - // "httpMethod": "DELETE", - // "id": "dfareporting.userRoles.delete", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "User role ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/userRoles/{id}", - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.userRoles.get": - -type UserRolesGetCall struct { - s *Service - profileId int64 - id int64 - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} - -// Get: Gets one user role by ID. -// -// - id: User role ID. -// - profileId: User profile ID associated with this request. -func (r *UserRolesService) Get(profileId int64, id int64) *UserRolesGetCall { - c := &UserRolesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.profileId = profileId - c.id = id - 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 *UserRolesGetCall) Fields(s ...googleapi.Field) *UserRolesGetCall { - 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 *UserRolesGetCall) IfNoneMatch(entityTag string) *UserRolesGetCall { - 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 *UserRolesGetCall) Context(ctx context.Context) *UserRolesGetCall { - 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 *UserRolesGetCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *UserRolesGetCall) 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, "userprofiles/{profileId}/userRoles/{id}") - 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{ - "profileId": strconv.FormatInt(c.profileId, 10), - "id": strconv.FormatInt(c.id, 10), - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "dfareporting.userRoles.get" call. -// Exactly one of *UserRole or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *UserRole.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 *UserRolesGetCall) Do(opts ...googleapi.CallOption) (*UserRole, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &UserRole{ - 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 one user role by ID.", - // "flatPath": "userprofiles/{profileId}/userRoles/{id}", - // "httpMethod": "GET", - // "id": "dfareporting.userRoles.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "User role ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/userRoles/{id}", - // "response": { - // "$ref": "UserRole" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.userRoles.insert": - -type UserRolesInsertCall struct { - s *Service - profileId int64 - userrole *UserRole - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// Insert: Inserts a new user role. -// -// - profileId: User profile ID associated with this request. -func (r *UserRolesService) Insert(profileId int64, userrole *UserRole) *UserRolesInsertCall { - c := &UserRolesInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.profileId = profileId - c.userrole = userrole - 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 *UserRolesInsertCall) Fields(s ...googleapi.Field) *UserRolesInsertCall { - 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 *UserRolesInsertCall) Context(ctx context.Context) *UserRolesInsertCall { - 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 *UserRolesInsertCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *UserRolesInsertCall) 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.userrole) - 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, "userprofiles/{profileId}/userRoles") - 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{ - "profileId": strconv.FormatInt(c.profileId, 10), - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "dfareporting.userRoles.insert" call. -// Exactly one of *UserRole or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *UserRole.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 *UserRolesInsertCall) Do(opts ...googleapi.CallOption) (*UserRole, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &UserRole{ - 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": "Inserts a new user role.", - // "flatPath": "userprofiles/{profileId}/userRoles", - // "httpMethod": "POST", - // "id": "dfareporting.userRoles.insert", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/userRoles", - // "request": { - // "$ref": "UserRole" - // }, - // "response": { - // "$ref": "UserRole" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.userRoles.list": - -type UserRolesListCall struct { - s *Service - profileId int64 - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} - -// List: Retrieves a list of user roles, possibly filtered. This method -// supports paging. -// -// - profileId: User profile ID associated with this request. -func (r *UserRolesService) List(profileId int64) *UserRolesListCall { - c := &UserRolesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.profileId = profileId - return c -} - -// AccountUserRoleOnly sets the optional parameter -// "accountUserRoleOnly": Select only account level user roles not -// associated with any specific subaccount. -func (c *UserRolesListCall) AccountUserRoleOnly(accountUserRoleOnly bool) *UserRolesListCall { - c.urlParams_.Set("accountUserRoleOnly", fmt.Sprint(accountUserRoleOnly)) - return c -} - -// Ids sets the optional parameter "ids": Select only user roles with -// the specified IDs. -func (c *UserRolesListCall) Ids(ids ...int64) *UserRolesListCall { - var ids_ []string - for _, v := range ids { - ids_ = append(ids_, fmt.Sprint(v)) - } - c.urlParams_.SetMulti("ids", ids_) - return c -} - -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. -func (c *UserRolesListCall) MaxResults(maxResults int64) *UserRolesListCall { - c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) - return c -} - -// PageToken sets the optional parameter "pageToken": Value of the -// nextPageToken from the previous result page. -func (c *UserRolesListCall) PageToken(pageToken string) *UserRolesListCall { - c.urlParams_.Set("pageToken", pageToken) - return c -} - -// SearchString sets the optional parameter "searchString": Allows -// searching for objects by name or ID. Wildcards (*) are allowed. For -// example, "userrole*2015" will return objects with names like -// "userrole June 2015", "userrole April 2015", or simply "userrole -// 2015". Most of the searches also add wildcards implicitly at the -// start and the end of the search string. For example, a search string -// of "userrole" will match objects with name "my userrole", "userrole -// 2015", or simply "userrole". -func (c *UserRolesListCall) SearchString(searchString string) *UserRolesListCall { - c.urlParams_.Set("searchString", searchString) - return c -} - -// SortField sets the optional parameter "sortField": Field by which to -// sort the list. -// -// Possible values: -// -// "ID" (default) -// "NAME" -func (c *UserRolesListCall) SortField(sortField string) *UserRolesListCall { - c.urlParams_.Set("sortField", sortField) - return c -} - -// SortOrder sets the optional parameter "sortOrder": Order of sorted -// results. -// -// Possible values: -// -// "ASCENDING" (default) -// "DESCENDING" -func (c *UserRolesListCall) SortOrder(sortOrder string) *UserRolesListCall { - c.urlParams_.Set("sortOrder", sortOrder) - return c -} - -// SubaccountId sets the optional parameter "subaccountId": Select only -// user roles that belong to this subaccount. -func (c *UserRolesListCall) SubaccountId(subaccountId int64) *UserRolesListCall { - c.urlParams_.Set("subaccountId", fmt.Sprint(subaccountId)) - 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 *UserRolesListCall) Fields(s ...googleapi.Field) *UserRolesListCall { - 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 *UserRolesListCall) IfNoneMatch(entityTag string) *UserRolesListCall { - 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 *UserRolesListCall) Context(ctx context.Context) *UserRolesListCall { - 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 *UserRolesListCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *UserRolesListCall) 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, "userprofiles/{profileId}/userRoles") - 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{ - "profileId": strconv.FormatInt(c.profileId, 10), - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "dfareporting.userRoles.list" call. -// Exactly one of *UserRolesListResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *UserRolesListResponse.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 *UserRolesListCall) Do(opts ...googleapi.CallOption) (*UserRolesListResponse, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &UserRolesListResponse{ - 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 a list of user roles, possibly filtered. This method supports paging.", - // "flatPath": "userprofiles/{profileId}/userRoles", - // "httpMethod": "GET", - // "id": "dfareporting.userRoles.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "accountUserRoleOnly": { - // "description": "Select only account level user roles not associated with any specific subaccount.", - // "location": "query", - // "type": "boolean" - // }, - // "ids": { - // "description": "Select only user roles with the specified IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "maxResults": { - // "default": "1000", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "1000", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Value of the nextPageToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "searchString": { - // "description": "Allows searching for objects by name or ID. Wildcards (*) are allowed. For example, \"userrole*2015\" will return objects with names like \"userrole June 2015\", \"userrole April 2015\", or simply \"userrole 2015\". Most of the searches also add wildcards implicitly at the start and the end of the search string. For example, a search string of \"userrole\" will match objects with name \"my userrole\", \"userrole 2015\", or simply \"userrole\".", - // "location": "query", - // "type": "string" - // }, - // "sortField": { - // "default": "ID", - // "description": "Field by which to sort the list.", - // "enum": [ - // "ID", - // "NAME" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "sortOrder": { - // "default": "ASCENDING", - // "description": "Order of sorted results.", - // "enum": [ - // "ASCENDING", - // "DESCENDING" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "subaccountId": { - // "description": "Select only user roles that belong to this subaccount.", - // "format": "int64", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/userRoles", - // "response": { - // "$ref": "UserRolesListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// 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 *UserRolesListCall) Pages(ctx context.Context, f func(*UserRolesListResponse) 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 "dfareporting.userRoles.patch": - -type UserRolesPatchCall struct { - s *Service - profileId int64 - userrole *UserRole - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// Patch: Updates an existing user role. This method supports patch -// semantics. -// -// - id: UserRole ID. -// - profileId: User profile ID associated with this request. -func (r *UserRolesService) Patch(profileId int64, id int64, userrole *UserRole) *UserRolesPatchCall { - c := &UserRolesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.profileId = profileId - c.urlParams_.Set("id", fmt.Sprint(id)) - c.userrole = userrole - 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 *UserRolesPatchCall) Fields(s ...googleapi.Field) *UserRolesPatchCall { - 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 *UserRolesPatchCall) Context(ctx context.Context) *UserRolesPatchCall { - 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 *UserRolesPatchCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *UserRolesPatchCall) 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.userrole) - 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, "userprofiles/{profileId}/userRoles") - 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{ - "profileId": strconv.FormatInt(c.profileId, 10), - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "dfareporting.userRoles.patch" call. -// Exactly one of *UserRole or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *UserRole.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 *UserRolesPatchCall) Do(opts ...googleapi.CallOption) (*UserRole, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &UserRole{ - 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 an existing user role. This method supports patch semantics.", - // "flatPath": "userprofiles/{profileId}/userRoles", - // "httpMethod": "PATCH", - // "id": "dfareporting.userRoles.patch", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "UserRole ID.", - // "format": "int64", - // "location": "query", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/userRoles", - // "request": { - // "$ref": "UserRole" - // }, - // "response": { - // "$ref": "UserRole" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.userRoles.update": - -type UserRolesUpdateCall struct { - s *Service - profileId int64 - userrole *UserRole - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// Update: Updates an existing user role. -// -// - profileId: User profile ID associated with this request. -func (r *UserRolesService) Update(profileId int64, userrole *UserRole) *UserRolesUpdateCall { - c := &UserRolesUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.profileId = profileId - c.userrole = userrole - 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 *UserRolesUpdateCall) Fields(s ...googleapi.Field) *UserRolesUpdateCall { - 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 *UserRolesUpdateCall) Context(ctx context.Context) *UserRolesUpdateCall { - 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 *UserRolesUpdateCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *UserRolesUpdateCall) 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.userrole) - 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, "userprofiles/{profileId}/userRoles") - urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("PUT", urls, body) - if err != nil { - return nil, err - } - req.Header = reqHeaders - googleapi.Expand(req.URL, map[string]string{ - "profileId": strconv.FormatInt(c.profileId, 10), - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "dfareporting.userRoles.update" call. -// Exactly one of *UserRole or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *UserRole.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 *UserRolesUpdateCall) Do(opts ...googleapi.CallOption) (*UserRole, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &UserRole{ - 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 an existing user role.", - // "flatPath": "userprofiles/{profileId}/userRoles", - // "httpMethod": "PUT", - // "id": "dfareporting.userRoles.update", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/userRoles", - // "request": { - // "$ref": "UserRole" - // }, - // "response": { - // "$ref": "UserRole" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } + // NullFields is a list of field names (e.g. "Dimension") 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 *PopupWindowProperties) MarshalJSON() ([]byte, error) { + type NoMethod PopupWindowProperties + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// method id "dfareporting.videoFormats.get": +// Size: Represents the dimensions of ads, placements, creatives, or +// creative assets. +type Size struct { + // Height: Height of this size. Acceptable values are 0 to 32767, + // inclusive. + Height int64 `json:"height,omitempty"` -type VideoFormatsGetCall struct { - s *Service - profileId int64 - id int64 - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} + // Iab: IAB standard size. This is a read-only, auto-generated field. + Iab bool `json:"iab,omitempty"` -// Get: Gets one video format by ID. -// -// - id: Video format ID. -// - profileId: User profile ID associated with this request. -func (r *VideoFormatsService) Get(profileId int64, id int64) *VideoFormatsGetCall { - c := &VideoFormatsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.profileId = profileId - c.id = id - return c -} + // Id: ID of this size. This is a read-only, auto-generated field. + Id int64 `json:"id,omitempty,string"` -// Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. -func (c *VideoFormatsGetCall) Fields(s ...googleapi.Field) *VideoFormatsGetCall { - c.urlParams_.Set("fields", googleapi.CombineFields(s)) - return c -} + // Kind: Identifies what kind of resource this is. Value: the fixed + // string "dfareporting#size". + Kind string `json:"kind,omitempty"` -// 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 *VideoFormatsGetCall) IfNoneMatch(entityTag string) *VideoFormatsGetCall { - c.ifNoneMatch_ = entityTag - return c -} + // Width: Width of this size. Acceptable values are 0 to 32767, + // inclusive. + Width int64 `json:"width,omitempty"` -// 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 *VideoFormatsGetCall) Context(ctx context.Context) *VideoFormatsGetCall { - c.ctx_ = ctx - return c -} + // ForceSendFields is a list of field names (e.g. "Height") 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:"-"` -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. -func (c *VideoFormatsGetCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ + // NullFields is a list of field names (e.g. "Height") 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 (c *VideoFormatsGetCall) 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, "userprofiles/{profileId}/videoFormats/{id}") - 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{ - "profileId": strconv.FormatInt(c.profileId, 10), - "id": strconv.FormatInt(c.id, 10), - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) +func (s *Size) MarshalJSON() ([]byte, error) { + type NoMethod Size + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// Do executes the "dfareporting.videoFormats.get" call. -// Exactly one of *VideoFormat or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *VideoFormat.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 *VideoFormatsGetCall) Do(opts ...googleapi.CallOption) (*VideoFormat, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &VideoFormat{ - 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 one video format by ID.", - // "flatPath": "userprofiles/{profileId}/videoFormats/{id}", - // "httpMethod": "GET", - // "id": "dfareporting.videoFormats.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Video format ID.", - // "format": "int32", - // "location": "path", - // "required": true, - // "type": "integer" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/videoFormats/{id}", - // "response": { - // "$ref": "VideoFormat" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } +// method id "dfareporting.media.upload": +type MediaUploadCall struct { + s *Service + profileId int64 + advertiserId int64 + creativeassetmetadata *CreativeAssetMetadata + urlParams_ gensupport.URLParams + mediaInfo_ *gensupport.MediaInfo + ctx_ context.Context + header_ http.Header } -// method id "dfareporting.videoFormats.list": +// Upload: Inserts a new creative asset. +// +// - advertiserId: Advertiser ID of this creative. This is a required +// field. +// - profileId: User profile ID associated with this request. +func (r *MediaService) Upload(profileId int64, advertiserId int64, creativeassetmetadata *CreativeAssetMetadata) *MediaUploadCall { + c := &MediaUploadCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.profileId = profileId + c.advertiserId = advertiserId + c.creativeassetmetadata = creativeassetmetadata + return c +} -type VideoFormatsListCall struct { - s *Service - profileId int64 - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +// Media specifies the media to upload in one or more chunks. The chunk +// size may be controlled by supplying a MediaOption generated by +// googleapi.ChunkSize. The chunk size defaults to +// googleapi.DefaultUploadChunkSize.The Content-Type header used in the +// upload request will be determined by sniffing the contents of r, +// unless a MediaOption generated by googleapi.ContentType is +// supplied. +// At most one of Media and ResumableMedia may be set. +func (c *MediaUploadCall) Media(r io.Reader, options ...googleapi.MediaOption) *MediaUploadCall { + c.mediaInfo_ = gensupport.NewInfoFromMedia(r, options) + return c } -// List: Lists available video formats. +// ResumableMedia specifies the media to upload in chunks and can be +// canceled with ctx. // -// - profileId: User profile ID associated with this request. -func (r *VideoFormatsService) List(profileId int64) *VideoFormatsListCall { - c := &VideoFormatsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.profileId = profileId +// Deprecated: use Media instead. +// +// At most one of Media and ResumableMedia may be set. mediaType +// identifies the MIME media type of the upload, such as "image/png". If +// mediaType is "", it will be auto-detected. The provided ctx will +// supersede any context previously provided to the Context method. +func (c *MediaUploadCall) ResumableMedia(ctx context.Context, r io.ReaderAt, size int64, mediaType string) *MediaUploadCall { + c.ctx_ = ctx + c.mediaInfo_ = gensupport.NewInfoFromResumableMedia(r, size, mediaType) + return c +} + +// ProgressUpdater provides a callback function that will be called +// after every chunk. It should be a low-latency function in order to +// not slow down the upload operation. This should only be called when +// using ResumableMedia (as opposed to Media). +func (c *MediaUploadCall) ProgressUpdater(pu googleapi.ProgressUpdater) *MediaUploadCall { + c.mediaInfo_.SetProgressUpdater(pu) 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 *VideoFormatsListCall) Fields(s ...googleapi.Field) *VideoFormatsListCall { +func (c *MediaUploadCall) Fields(s ...googleapi.Field) *MediaUploadCall { 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 *VideoFormatsListCall) IfNoneMatch(entityTag string) *VideoFormatsListCall { - 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 *VideoFormatsListCall) Context(ctx context.Context) *VideoFormatsListCall { +// This context will supersede any context previously provided to the +// ResumableMedia method. +func (c *MediaUploadCall) Context(ctx context.Context) *MediaUploadCall { 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 *VideoFormatsListCall) Header() http.Header { +func (c *MediaUploadCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *VideoFormatsListCall) doRequest(alt string) (*http.Response, error) { +func (c *MediaUploadCall) 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 + body, err := googleapi.WithoutDataWrapper.JSONReader(c.creativeassetmetadata) + 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, "userprofiles/{profileId}/videoFormats") + 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()) + } + if body == nil { + body = new(bytes.Buffer) + reqHeaders.Set("Content-Type", "application/json") + } + body, getBody, cleanup := c.mediaInfo_.UploadRequest(reqHeaders, body) + defer cleanup() urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, body) + req, err := http.NewRequest("POST", urls, body) if err != nil { return nil, err } req.Header = reqHeaders + req.GetBody = getBody googleapi.Expand(req.URL, map[string]string{ - "profileId": strconv.FormatInt(c.profileId, 10), + "profileId": strconv.FormatInt(c.profileId, 10), + "advertiserId": strconv.FormatInt(c.advertiserId, 10), }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "dfareporting.videoFormats.list" call. -// Exactly one of *VideoFormatsListResponse or error will be non-nil. -// Any non-2xx status code is an error. Response headers are in either -// *VideoFormatsListResponse.ServerResponse.Header or (if a response was +// Do executes the "dfareporting.media.upload" call. +// Exactly one of *CreativeAssetMetadata or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *CreativeAssetMetadata.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 *VideoFormatsListCall) Do(opts ...googleapi.CallOption) (*VideoFormatsListResponse, error) { +func (c *MediaUploadCall) Do(opts ...googleapi.CallOption) (*CreativeAssetMetadata, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -52527,7 +1097,24 @@ func (c *VideoFormatsListCall) Do(opts ...googleapi.CallOption) (*VideoFormatsLi if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &VideoFormatsListResponse{ + rx := c.mediaInfo_.ResumableUpload(res.Header.Get("Location")) + if rx != nil { + rx.Client = c.s.client + rx.UserAgent = c.s.userAgent() + ctx := c.ctx_ + if ctx == nil { + ctx = context.TODO() + } + res, err = rx.Upload(ctx) + if err != nil { + return nil, err + } + defer res.Body.Close() + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + } + ret := &CreativeAssetMetadata{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -52539,29 +1126,55 @@ func (c *VideoFormatsListCall) Do(opts ...googleapi.CallOption) (*VideoFormatsLi } return ret, nil // { - // "description": "Lists available video formats.", - // "flatPath": "userprofiles/{profileId}/videoFormats", - // "httpMethod": "GET", - // "id": "dfareporting.videoFormats.list", + // "description": "Inserts a new creative asset.", + // "flatPath": "userprofiles/{userprofilesId}/creativeAssets/{creativeAssetsId}/creativeAssets", + // "httpMethod": "POST", + // "id": "dfareporting.media.upload", + // "mediaUpload": { + // "accept": [ + // "*/*" + // ], + // "maxSize": "1073741824", + // "protocols": { + // "simple": { + // "multipart": true, + // "path": "/upload/dfareporting/v3.5/userprofiles/{+profileId}/creativeAssets/{+advertiserId}/creativeAssets" + // } + // } + // }, // "parameterOrder": [ - // "profileId" + // "profileId", + // "advertiserId" // ], // "parameters": { + // "advertiserId": { + // "description": "Advertiser ID of this creative. This is a required field.", + // "format": "int64", + // "location": "path", + // "pattern": "^[^/]+$", + // "required": true, + // "type": "string" + // }, // "profileId": { // "description": "User profile ID associated with this request.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "userprofiles/{profileId}/videoFormats", + // "path": "userprofiles/{+profileId}/creativeAssets/{+advertiserId}/creativeAssets", + // "request": { + // "$ref": "CreativeAssetMetadata" + // }, // "response": { - // "$ref": "VideoFormatsListResponse" + // "$ref": "CreativeAssetMetadata" // }, // "scopes": [ // "https://www.googleapis.com/auth/dfatrafficking" - // ] + // ], + // "supportsMediaUpload": true // } } diff --git a/dfareporting/v4/dfareporting-api.json b/dfareporting/v4/dfareporting-api.json index d94afc91019..c3f7d5df396 100644 --- a/dfareporting/v4/dfareporting-api.json +++ b/dfareporting/v4/dfareporting-api.json @@ -115,7 +115,7 @@ "methods": { "get": { "description": "Gets the account's active ad summary by account ID.", - "flatPath": "userprofiles/{profileId}/accountActiveAdSummaries/{summaryAccountId}", + "flatPath": "userprofiles/{userprofilesId}/accountActiveAdSummaries/{accountActiveAdSummariesId}", "httpMethod": "GET", "id": "dfareporting.accountActiveAdSummaries.get", "parameterOrder": [ @@ -127,6 +127,7 @@ "description": "User profile ID associated with this request.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" }, @@ -134,11 +135,12 @@ "description": "Account ID.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" } }, - "path": "userprofiles/{profileId}/accountActiveAdSummaries/{summaryAccountId}", + "path": "userprofiles/{+profileId}/accountActiveAdSummaries/{+summaryAccountId}", "response": { "$ref": "AccountActiveAdSummary" }, @@ -152,7 +154,7 @@ "methods": { "get": { "description": "Gets one account permission group by ID.", - "flatPath": "userprofiles/{profileId}/accountPermissionGroups/{id}", + "flatPath": "userprofiles/{userprofilesId}/accountPermissionGroups/{accountPermissionGroupsId}", "httpMethod": "GET", "id": "dfareporting.accountPermissionGroups.get", "parameterOrder": [ @@ -164,6 +166,7 @@ "description": "Account permission group ID.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" }, @@ -171,11 +174,12 @@ "description": "User profile ID associated with this request.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" } }, - "path": "userprofiles/{profileId}/accountPermissionGroups/{id}", + "path": "userprofiles/{+profileId}/accountPermissionGroups/{+id}", "response": { "$ref": "AccountPermissionGroup" }, @@ -185,7 +189,7 @@ }, "list": { "description": "Retrieves the list of account permission groups.", - "flatPath": "userprofiles/{profileId}/accountPermissionGroups", + "flatPath": "userprofiles/{userprofilesId}/accountPermissionGroups", "httpMethod": "GET", "id": "dfareporting.accountPermissionGroups.list", "parameterOrder": [ @@ -196,11 +200,12 @@ "description": "User profile ID associated with this request.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" } }, - "path": "userprofiles/{profileId}/accountPermissionGroups", + "path": "userprofiles/{+profileId}/accountPermissionGroups", "response": { "$ref": "AccountPermissionGroupsListResponse" }, @@ -214,7 +219,7 @@ "methods": { "get": { "description": "Gets one account permission by ID.", - "flatPath": "userprofiles/{profileId}/accountPermissions/{id}", + "flatPath": "userprofiles/{userprofilesId}/accountPermissions/{accountPermissionsId}", "httpMethod": "GET", "id": "dfareporting.accountPermissions.get", "parameterOrder": [ @@ -226,6 +231,7 @@ "description": "Account permission ID.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" }, @@ -233,11 +239,12 @@ "description": "User profile ID associated with this request.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" } }, - "path": "userprofiles/{profileId}/accountPermissions/{id}", + "path": "userprofiles/{+profileId}/accountPermissions/{+id}", "response": { "$ref": "AccountPermission" }, @@ -247,7 +254,7 @@ }, "list": { "description": "Retrieves the list of account permissions.", - "flatPath": "userprofiles/{profileId}/accountPermissions", + "flatPath": "userprofiles/{userprofilesId}/accountPermissions", "httpMethod": "GET", "id": "dfareporting.accountPermissions.list", "parameterOrder": [ @@ -258,11 +265,12 @@ "description": "User profile ID associated with this request.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" } }, - "path": "userprofiles/{profileId}/accountPermissions", + "path": "userprofiles/{+profileId}/accountPermissions", "response": { "$ref": "AccountPermissionsListResponse" }, @@ -276,7 +284,7 @@ "methods": { "get": { "description": "Gets one account user profile by ID.", - "flatPath": "userprofiles/{profileId}/accountUserProfiles/{id}", + "flatPath": "userprofiles/{profileId}/accountUserProfiles/{accountUserProfilesId}", "httpMethod": "GET", "id": "dfareporting.accountUserProfiles.get", "parameterOrder": [ @@ -288,6 +296,7 @@ "description": "User profile ID.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" }, @@ -299,7 +308,7 @@ "type": "string" } }, - "path": "userprofiles/{profileId}/accountUserProfiles/{id}", + "path": "userprofiles/{profileId}/accountUserProfiles/{+id}", "response": { "$ref": "AccountUserProfile" }, @@ -309,7 +318,7 @@ }, "insert": { "description": "Inserts a new account user profile.", - "flatPath": "userprofiles/{profileId}/accountUserProfiles", + "flatPath": "userprofiles/{userprofilesId}/accountUserProfiles", "httpMethod": "POST", "id": "dfareporting.accountUserProfiles.insert", "parameterOrder": [ @@ -320,11 +329,12 @@ "description": "User profile ID associated with this request.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" } }, - "path": "userprofiles/{profileId}/accountUserProfiles", + "path": "userprofiles/{+profileId}/accountUserProfiles", "request": { "$ref": "AccountUserProfile" }, @@ -337,7 +347,7 @@ }, "list": { "description": "Retrieves a list of account user profiles, possibly filtered. This method supports paging.", - "flatPath": "userprofiles/{profileId}/accountUserProfiles", + "flatPath": "userprofiles/{userprofilesId}/accountUserProfiles", "httpMethod": "GET", "id": "dfareporting.accountUserProfiles.list", "parameterOrder": [ @@ -361,8 +371,6 @@ "description": "Maximum number of results to return.", "format": "int32", "location": "query", - "maximum": "1000", - "minimum": "0", "type": "integer" }, "pageToken": { @@ -374,6 +382,7 @@ "description": "User profile ID associated with this request.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" }, @@ -404,8 +413,8 @@ "DESCENDING" ], "enumDescriptions": [ - "", - "" + "Ascending order.", + "Descending order." ], "location": "query", "type": "string" @@ -423,7 +432,7 @@ "type": "string" } }, - "path": "userprofiles/{profileId}/accountUserProfiles", + "path": "userprofiles/{+profileId}/accountUserProfiles", "response": { "$ref": "AccountUserProfilesListResponse" }, @@ -432,8 +441,8 @@ ] }, "patch": { - "description": "Updates an existing account user profile. This method supports patch semantics.", - "flatPath": "userprofiles/{profileId}/accountUserProfiles", + "description": "Updates an existing user role. This method supports patch semantics.", + "flatPath": "userprofiles/{userprofilesId}/accountUserProfiles", "httpMethod": "PATCH", "id": "dfareporting.accountUserProfiles.patch", "parameterOrder": [ @@ -442,7 +451,7 @@ ], "parameters": { "id": { - "description": "AccountUserProfile ID.", + "description": "Required. AccountUserProfile ID.", "format": "int64", "location": "query", "required": true, @@ -452,11 +461,12 @@ "description": "User profile ID associated with this request.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" } }, - "path": "userprofiles/{profileId}/accountUserProfiles", + "path": "userprofiles/{+profileId}/accountUserProfiles", "request": { "$ref": "AccountUserProfile" }, @@ -469,7 +479,7 @@ }, "update": { "description": "Updates an existing account user profile.", - "flatPath": "userprofiles/{profileId}/accountUserProfiles", + "flatPath": "userprofiles/{userprofilesId}/accountUserProfiles", "httpMethod": "PUT", "id": "dfareporting.accountUserProfiles.update", "parameterOrder": [ @@ -480,11 +490,12 @@ "description": "User profile ID associated with this request.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" } }, - "path": "userprofiles/{profileId}/accountUserProfiles", + "path": "userprofiles/{+profileId}/accountUserProfiles", "request": { "$ref": "AccountUserProfile" }, @@ -501,7 +512,7 @@ "methods": { "get": { "description": "Gets one account by ID.", - "flatPath": "userprofiles/{profileId}/accounts/{id}", + "flatPath": "userprofiles/{userprofilesId}/accounts/{accountsId}", "httpMethod": "GET", "id": "dfareporting.accounts.get", "parameterOrder": [ @@ -513,6 +524,7 @@ "description": "Account ID.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" }, @@ -520,11 +532,12 @@ "description": "User profile ID associated with this request.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" } }, - "path": "userprofiles/{profileId}/accounts/{id}", + "path": "userprofiles/{+profileId}/accounts/{+id}", "response": { "$ref": "Account" }, @@ -534,7 +547,7 @@ }, "list": { "description": "Retrieves the list of accounts, possibly filtered. This method supports paging.", - "flatPath": "userprofiles/{profileId}/accounts", + "flatPath": "userprofiles/{userprofilesId}/accounts", "httpMethod": "GET", "id": "dfareporting.accounts.list", "parameterOrder": [ @@ -558,8 +571,6 @@ "description": "Maximum number of results to return.", "format": "int32", "location": "query", - "maximum": "1000", - "minimum": "0", "type": "integer" }, "pageToken": { @@ -571,6 +582,7 @@ "description": "User profile ID associated with this request.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" }, @@ -601,14 +613,14 @@ "DESCENDING" ], "enumDescriptions": [ - "", - "" + "Ascending order.", + "Descending order." ], "location": "query", "type": "string" } }, - "path": "userprofiles/{profileId}/accounts", + "path": "userprofiles/{+profileId}/accounts", "response": { "$ref": "AccountsListResponse" }, @@ -618,7 +630,7 @@ }, "patch": { "description": "Updates an existing account. This method supports patch semantics.", - "flatPath": "userprofiles/{profileId}/accounts", + "flatPath": "userprofiles/{userprofilesId}/accounts", "httpMethod": "PATCH", "id": "dfareporting.accounts.patch", "parameterOrder": [ @@ -627,7 +639,7 @@ ], "parameters": { "id": { - "description": "Account ID.", + "description": "Required. Account ID.", "format": "int64", "location": "query", "required": true, @@ -637,11 +649,12 @@ "description": "User profile ID associated with this request.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" } }, - "path": "userprofiles/{profileId}/accounts", + "path": "userprofiles/{+profileId}/accounts", "request": { "$ref": "Account" }, @@ -654,7 +667,7 @@ }, "update": { "description": "Updates an existing account.", - "flatPath": "userprofiles/{profileId}/accounts", + "flatPath": "userprofiles/{userprofilesId}/accounts", "httpMethod": "PUT", "id": "dfareporting.accounts.update", "parameterOrder": [ @@ -665,11 +678,12 @@ "description": "User profile ID associated with this request.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" } }, - "path": "userprofiles/{profileId}/accounts", + "path": "userprofiles/{+profileId}/accounts", "request": { "$ref": "Account" }, @@ -686,7 +700,7 @@ "methods": { "get": { "description": "Gets one ad by ID.", - "flatPath": "userprofiles/{profileId}/ads/{id}", + "flatPath": "userprofiles/{userprofilesId}/ads/{adsId}", "httpMethod": "GET", "id": "dfareporting.ads.get", "parameterOrder": [ @@ -698,6 +712,7 @@ "description": "Ad ID.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" }, @@ -705,11 +720,12 @@ "description": "User profile ID associated with this request.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" } }, - "path": "userprofiles/{profileId}/ads/{id}", + "path": "userprofiles/{+profileId}/ads/{+id}", "response": { "$ref": "Ad" }, @@ -719,7 +735,7 @@ }, "insert": { "description": "Inserts a new ad.", - "flatPath": "userprofiles/{profileId}/ads", + "flatPath": "userprofiles/{userprofilesId}/ads", "httpMethod": "POST", "id": "dfareporting.ads.insert", "parameterOrder": [ @@ -730,11 +746,12 @@ "description": "User profile ID associated with this request.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" } }, - "path": "userprofiles/{profileId}/ads", + "path": "userprofiles/{+profileId}/ads", "request": { "$ref": "Ad" }, @@ -747,7 +764,7 @@ }, "list": { "description": "Retrieves a list of ads, possibly filtered. This method supports paging.", - "flatPath": "userprofiles/{profileId}/ads", + "flatPath": "userprofiles/{userprofilesId}/ads", "httpMethod": "GET", "id": "dfareporting.ads.list", "parameterOrder": [ @@ -797,8 +814,8 @@ "enumDescriptions": [ "", "", - "", - "", + "Deprecated enum value. No longer supported.", + "Deprecated enum value. No longer supported.", "", "" ], @@ -843,8 +860,6 @@ "description": "Maximum number of results to return.", "format": "int32", "location": "query", - "maximum": "1000", - "minimum": "0", "type": "integer" }, "overriddenEventTagId": { @@ -869,6 +884,7 @@ "description": "User profile ID associated with this request.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" }, @@ -913,8 +929,8 @@ "DESCENDING" ], "enumDescriptions": [ - "", - "" + "Ascending order.", + "Descending order." ], "location": "query", "type": "string" @@ -950,7 +966,7 @@ "type": "string" } }, - "path": "userprofiles/{profileId}/ads", + "path": "userprofiles/{+profileId}/ads", "response": { "$ref": "AdsListResponse" }, @@ -959,8 +975,8 @@ ] }, "patch": { - "description": "Updates an existing ad. This method supports patch semantics.", - "flatPath": "userprofiles/{profileId}/ads", + "description": "Updates an existing event tag. This method supports patch semantics.", + "flatPath": "userprofiles/{userprofilesId}/ads", "httpMethod": "PATCH", "id": "dfareporting.ads.patch", "parameterOrder": [ @@ -969,7 +985,7 @@ ], "parameters": { "id": { - "description": "Ad ID.", + "description": "Required. RemarketingList ID.", "format": "int64", "location": "query", "required": true, @@ -979,11 +995,12 @@ "description": "User profile ID associated with this request.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" } }, - "path": "userprofiles/{profileId}/ads", + "path": "userprofiles/{+profileId}/ads", "request": { "$ref": "Ad" }, @@ -996,7 +1013,7 @@ }, "update": { "description": "Updates an existing ad.", - "flatPath": "userprofiles/{profileId}/ads", + "flatPath": "userprofiles/{userprofilesId}/ads", "httpMethod": "PUT", "id": "dfareporting.ads.update", "parameterOrder": [ @@ -1007,11 +1024,12 @@ "description": "User profile ID associated with this request.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" } }, - "path": "userprofiles/{profileId}/ads", + "path": "userprofiles/{+profileId}/ads", "request": { "$ref": "Ad" }, @@ -1028,7 +1046,7 @@ "methods": { "delete": { "description": "Deletes an existing advertiser group.", - "flatPath": "userprofiles/{profileId}/advertiserGroups/{id}", + "flatPath": "userprofiles/{userprofilesId}/advertiserGroups/{advertiserGroupsId}", "httpMethod": "DELETE", "id": "dfareporting.advertiserGroups.delete", "parameterOrder": [ @@ -1040,6 +1058,7 @@ "description": "Advertiser group ID.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" }, @@ -1047,18 +1066,19 @@ "description": "User profile ID associated with this request.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" } }, - "path": "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": "userprofiles/{profileId}/advertiserGroups/{id}", + "flatPath": "userprofiles/{userprofilesId}/advertiserGroups/{advertiserGroupsId}", "httpMethod": "GET", "id": "dfareporting.advertiserGroups.get", "parameterOrder": [ @@ -1070,6 +1090,7 @@ "description": "Advertiser group ID.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" }, @@ -1077,11 +1098,12 @@ "description": "User profile ID associated with this request.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" } }, - "path": "userprofiles/{profileId}/advertiserGroups/{id}", + "path": "userprofiles/{+profileId}/advertiserGroups/{+id}", "response": { "$ref": "AdvertiserGroup" }, @@ -1091,7 +1113,7 @@ }, "insert": { "description": "Inserts a new advertiser group.", - "flatPath": "userprofiles/{profileId}/advertiserGroups", + "flatPath": "userprofiles/{userprofilesId}/advertiserGroups", "httpMethod": "POST", "id": "dfareporting.advertiserGroups.insert", "parameterOrder": [ @@ -1102,11 +1124,12 @@ "description": "User profile ID associated with this request.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" } }, - "path": "userprofiles/{profileId}/advertiserGroups", + "path": "userprofiles/{+profileId}/advertiserGroups", "request": { "$ref": "AdvertiserGroup" }, @@ -1119,7 +1142,7 @@ }, "list": { "description": "Retrieves a list of advertiser groups, possibly filtered. This method supports paging.", - "flatPath": "userprofiles/{profileId}/advertiserGroups", + "flatPath": "userprofiles/{userprofilesId}/advertiserGroups", "httpMethod": "GET", "id": "dfareporting.advertiserGroups.list", "parameterOrder": [ @@ -1138,8 +1161,6 @@ "description": "Maximum number of results to return.", "format": "int32", "location": "query", - "maximum": "1000", - "minimum": "0", "type": "integer" }, "pageToken": { @@ -1151,6 +1172,7 @@ "description": "User profile ID associated with this request.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" }, @@ -1181,14 +1203,14 @@ "DESCENDING" ], "enumDescriptions": [ - "", - "" + "Ascending order.", + "Descending order." ], "location": "query", "type": "string" } }, - "path": "userprofiles/{profileId}/advertiserGroups", + "path": "userprofiles/{+profileId}/advertiserGroups", "response": { "$ref": "AdvertiserGroupsListResponse" }, @@ -1198,7 +1220,7 @@ }, "patch": { "description": "Updates an existing advertiser group. This method supports patch semantics.", - "flatPath": "userprofiles/{profileId}/advertiserGroups", + "flatPath": "userprofiles/{userprofilesId}/advertiserGroups", "httpMethod": "PATCH", "id": "dfareporting.advertiserGroups.patch", "parameterOrder": [ @@ -1207,7 +1229,7 @@ ], "parameters": { "id": { - "description": "AdvertiserGroup ID.", + "description": "Required. Advertiser Group ID.", "format": "int64", "location": "query", "required": true, @@ -1217,11 +1239,12 @@ "description": "User profile ID associated with this request.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" } }, - "path": "userprofiles/{profileId}/advertiserGroups", + "path": "userprofiles/{+profileId}/advertiserGroups", "request": { "$ref": "AdvertiserGroup" }, @@ -1234,7 +1257,7 @@ }, "update": { "description": "Updates an existing advertiser group.", - "flatPath": "userprofiles/{profileId}/advertiserGroups", + "flatPath": "userprofiles/{userprofilesId}/advertiserGroups", "httpMethod": "PUT", "id": "dfareporting.advertiserGroups.update", "parameterOrder": [ @@ -1245,11 +1268,12 @@ "description": "User profile ID associated with this request.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" } }, - "path": "userprofiles/{profileId}/advertiserGroups", + "path": "userprofiles/{+profileId}/advertiserGroups", "request": { "$ref": "AdvertiserGroup" }, @@ -1266,7 +1290,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": "userprofiles/{profileId}/advertisers/{advertiserId}/invoices", + "flatPath": "userprofiles/{userprofilesId}/advertisers/{advertisersId}/invoices", "httpMethod": "GET", "id": "dfareporting.advertiserInvoices.list", "parameterOrder": [ @@ -1278,6 +1302,7 @@ "description": "Advertiser ID of this invoice.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" }, @@ -1291,8 +1316,6 @@ "description": "Maximum number of results to return.", "format": "int32", "location": "query", - "maximum": "1000", - "minimum": "0", "type": "integer" }, "pageToken": { @@ -1304,11 +1327,12 @@ "description": "User profile ID associated with this request.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" } }, - "path": "userprofiles/{profileId}/advertisers/{advertiserId}/invoices", + "path": "userprofiles/{+profileId}/advertisers/{+advertiserId}/invoices", "response": { "$ref": "AdvertiserInvoicesListResponse" }, @@ -1322,7 +1346,7 @@ "methods": { "get": { "description": "Gets one landing page by ID.", - "flatPath": "userprofiles/{profileId}/advertiserLandingPages/{id}", + "flatPath": "userprofiles/{userprofilesId}/advertiserLandingPages/{advertiserLandingPagesId}", "httpMethod": "GET", "id": "dfareporting.advertiserLandingPages.get", "parameterOrder": [ @@ -1334,6 +1358,7 @@ "description": "Landing page ID.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" }, @@ -1341,11 +1366,12 @@ "description": "User profile ID associated with this request.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" } }, - "path": "userprofiles/{profileId}/advertiserLandingPages/{id}", + "path": "userprofiles/{+profileId}/advertiserLandingPages/{+id}", "response": { "$ref": "LandingPage" }, @@ -1355,7 +1381,7 @@ }, "insert": { "description": "Inserts a new landing page.", - "flatPath": "userprofiles/{profileId}/advertiserLandingPages", + "flatPath": "userprofiles/{userprofilesId}/advertiserLandingPages", "httpMethod": "POST", "id": "dfareporting.advertiserLandingPages.insert", "parameterOrder": [ @@ -1366,11 +1392,12 @@ "description": "User profile ID associated with this request.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" } }, - "path": "userprofiles/{profileId}/advertiserLandingPages", + "path": "userprofiles/{+profileId}/advertiserLandingPages", "request": { "$ref": "LandingPage" }, @@ -1383,7 +1410,7 @@ }, "list": { "description": "Retrieves a list of landing pages.", - "flatPath": "userprofiles/{profileId}/advertiserLandingPages", + "flatPath": "userprofiles/{userprofilesId}/advertiserLandingPages", "httpMethod": "GET", "id": "dfareporting.advertiserLandingPages.list", "parameterOrder": [ @@ -1421,8 +1448,6 @@ "description": "Maximum number of results to return.", "format": "int32", "location": "query", - "maximum": "1000", - "minimum": "0", "type": "integer" }, "pageToken": { @@ -1434,6 +1459,7 @@ "description": "User profile ID associated with this request.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" }, @@ -1464,8 +1490,8 @@ "DESCENDING" ], "enumDescriptions": [ - "", - "" + "Ascending order.", + "Descending order." ], "location": "query", "type": "string" @@ -1477,7 +1503,7 @@ "type": "string" } }, - "path": "userprofiles/{profileId}/advertiserLandingPages", + "path": "userprofiles/{+profileId}/advertiserLandingPages", "response": { "$ref": "AdvertiserLandingPagesListResponse" }, @@ -1486,8 +1512,8 @@ ] }, "patch": { - "description": "Updates an existing advertiser landing page. This method supports patch semantics.", - "flatPath": "userprofiles/{profileId}/advertiserLandingPages", + "description": "Updates an existing advertiser. This method supports patch semantics.", + "flatPath": "userprofiles/{userprofilesId}/advertiserLandingPages", "httpMethod": "PATCH", "id": "dfareporting.advertiserLandingPages.patch", "parameterOrder": [ @@ -1496,7 +1522,7 @@ ], "parameters": { "id": { - "description": "LandingPage ID.", + "description": "Required. Landing Page ID.", "format": "int64", "location": "query", "required": true, @@ -1506,11 +1532,12 @@ "description": "User profile ID associated with this request.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" } }, - "path": "userprofiles/{profileId}/advertiserLandingPages", + "path": "userprofiles/{+profileId}/advertiserLandingPages", "request": { "$ref": "LandingPage" }, @@ -1523,7 +1550,7 @@ }, "update": { "description": "Updates an existing landing page.", - "flatPath": "userprofiles/{profileId}/advertiserLandingPages", + "flatPath": "userprofiles/{userprofilesId}/advertiserLandingPages", "httpMethod": "PUT", "id": "dfareporting.advertiserLandingPages.update", "parameterOrder": [ @@ -1534,11 +1561,12 @@ "description": "User profile ID associated with this request.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" } }, - "path": "userprofiles/{profileId}/advertiserLandingPages", + "path": "userprofiles/{+profileId}/advertiserLandingPages", "request": { "$ref": "LandingPage" }, @@ -1555,7 +1583,7 @@ "methods": { "get": { "description": "Gets one advertiser by ID.", - "flatPath": "userprofiles/{profileId}/advertisers/{id}", + "flatPath": "userprofiles/{userprofilesId}/advertisers/{advertisersId}", "httpMethod": "GET", "id": "dfareporting.advertisers.get", "parameterOrder": [ @@ -1567,6 +1595,7 @@ "description": "Advertiser ID.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" }, @@ -1574,11 +1603,12 @@ "description": "User profile ID associated with this request.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" } }, - "path": "userprofiles/{profileId}/advertisers/{id}", + "path": "userprofiles/{+profileId}/advertisers/{+id}", "response": { "$ref": "Advertiser" }, @@ -1588,7 +1618,7 @@ }, "insert": { "description": "Inserts a new advertiser.", - "flatPath": "userprofiles/{profileId}/advertisers", + "flatPath": "userprofiles/{userprofilesId}/advertisers", "httpMethod": "POST", "id": "dfareporting.advertisers.insert", "parameterOrder": [ @@ -1599,11 +1629,12 @@ "description": "User profile ID associated with this request.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" } }, - "path": "userprofiles/{profileId}/advertisers", + "path": "userprofiles/{+profileId}/advertisers", "request": { "$ref": "Advertiser" }, @@ -1616,7 +1647,7 @@ }, "list": { "description": "Retrieves a list of advertisers, possibly filtered. This method supports paging.", - "flatPath": "userprofiles/{profileId}/advertisers", + "flatPath": "userprofiles/{userprofilesId}/advertisers", "httpMethod": "GET", "id": "dfareporting.advertisers.list", "parameterOrder": [ @@ -1654,8 +1685,6 @@ "description": "Maximum number of results to return.", "format": "int32", "location": "query", - "maximum": "1000", - "minimum": "0", "type": "integer" }, "onlyParent": { @@ -1672,6 +1701,7 @@ "description": "User profile ID associated with this request.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" }, @@ -1702,8 +1732,8 @@ "DESCENDING" ], "enumDescriptions": [ - "", - "" + "Ascending order.", + "Descending order." ], "location": "query", "type": "string" @@ -1715,8 +1745,8 @@ "ON_HOLD" ], "enumDescriptions": [ - "", - "" + "Approved (ads can deliver)", + "On-hold (all ads are stopped)" ], "location": "query", "type": "string" @@ -1728,7 +1758,7 @@ "type": "string" } }, - "path": "userprofiles/{profileId}/advertisers", + "path": "userprofiles/{+profileId}/advertisers", "response": { "$ref": "AdvertisersListResponse" }, @@ -1738,7 +1768,7 @@ }, "patch": { "description": "Updates an existing advertiser. This method supports patch semantics.", - "flatPath": "userprofiles/{profileId}/advertisers", + "flatPath": "userprofiles/{userprofilesId}/advertisers", "httpMethod": "PATCH", "id": "dfareporting.advertisers.patch", "parameterOrder": [ @@ -1747,7 +1777,7 @@ ], "parameters": { "id": { - "description": "Advertiser ID.", + "description": "Required. Advertiser ID.", "format": "int64", "location": "query", "required": true, @@ -1757,11 +1787,12 @@ "description": "User profile ID associated with this request.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" } }, - "path": "userprofiles/{profileId}/advertisers", + "path": "userprofiles/{+profileId}/advertisers", "request": { "$ref": "Advertiser" }, @@ -1774,7 +1805,7 @@ }, "update": { "description": "Updates an existing advertiser.", - "flatPath": "userprofiles/{profileId}/advertisers", + "flatPath": "userprofiles/{userprofilesId}/advertisers", "httpMethod": "PUT", "id": "dfareporting.advertisers.update", "parameterOrder": [ @@ -1785,11 +1816,12 @@ "description": "User profile ID associated with this request.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" } }, - "path": "userprofiles/{profileId}/advertisers", + "path": "userprofiles/{+profileId}/advertisers", "request": { "$ref": "Advertiser" }, @@ -1806,7 +1838,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": "userprofiles/{profileId}/billingProfiles/{billingProfileId}/billingAssignments", + "flatPath": "userprofiles/{userprofilesId}/billingProfiles/{billingProfilesId}/billingAssignments", "httpMethod": "POST", "id": "dfareporting.billingAssignments.insert", "parameterOrder": [ @@ -1818,6 +1850,7 @@ "description": "Billing profile ID of this billing assignment.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" }, @@ -1825,11 +1858,12 @@ "description": "User profile ID associated with this request.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" } }, - "path": "userprofiles/{profileId}/billingProfiles/{billingProfileId}/billingAssignments", + "path": "userprofiles/{+profileId}/billingProfiles/{+billingProfileId}/billingAssignments", "request": { "$ref": "BillingAssignment" }, @@ -1842,7 +1876,7 @@ }, "list": { "description": "Retrieves a list of billing assignments.", - "flatPath": "userprofiles/{profileId}/billingProfiles/{billingProfileId}/billingAssignments", + "flatPath": "userprofiles/{userprofilesId}/billingProfiles/{billingProfilesId}/billingAssignments", "httpMethod": "GET", "id": "dfareporting.billingAssignments.list", "parameterOrder": [ @@ -1854,6 +1888,7 @@ "description": "Billing profile ID of this billing assignment.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" }, @@ -1861,11 +1896,12 @@ "description": "User profile ID associated with this request.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" } }, - "path": "userprofiles/{profileId}/billingProfiles/{billingProfileId}/billingAssignments", + "path": "userprofiles/{+profileId}/billingProfiles/{+billingProfileId}/billingAssignments", "response": { "$ref": "BillingAssignmentsListResponse" }, @@ -1879,7 +1915,7 @@ "methods": { "get": { "description": "Gets one billing profile by ID.", - "flatPath": "userprofiles/{profileId}/billingProfiles/{id}", + "flatPath": "userprofiles/{userprofilesId}/billingProfiles/{billingProfilesId}", "httpMethod": "GET", "id": "dfareporting.billingProfiles.get", "parameterOrder": [ @@ -1891,6 +1927,7 @@ "description": "Billing Profile ID.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" }, @@ -1898,11 +1935,12 @@ "description": "User profile ID associated with this request.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" } }, - "path": "userprofiles/{profileId}/billingProfiles/{id}", + "path": "userprofiles/{+profileId}/billingProfiles/{+id}", "response": { "$ref": "BillingProfile" }, @@ -1912,7 +1950,7 @@ }, "list": { "description": "Retrieves a list of billing profiles, possibly filtered. This method supports paging.", - "flatPath": "userprofiles/{profileId}/billingProfiles", + "flatPath": "userprofiles/{userprofilesId}/billingProfiles", "httpMethod": "GET", "id": "dfareporting.billingProfiles.list", "parameterOrder": [ @@ -1936,8 +1974,6 @@ "description": "Maximum number of results to return.", "format": "int32", "location": "query", - "maximum": "1000", - "minimum": "0", "type": "integer" }, "name": { @@ -1959,6 +1995,7 @@ "description": "User profile ID associated with this request.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" }, @@ -1984,8 +2021,8 @@ "DESCENDING" ], "enumDescriptions": [ - "", - "" + "Ascending order.", + "Descending order." ], "location": "query", "type": "string" @@ -2014,7 +2051,7 @@ "type": "string" } }, - "path": "userprofiles/{profileId}/billingProfiles", + "path": "userprofiles/{+profileId}/billingProfiles", "response": { "$ref": "BillingProfilesListResponse" }, @@ -2024,7 +2061,7 @@ }, "update": { "description": "Updates an existing billing profile.", - "flatPath": "userprofiles/{profileId}/billingProfiles", + "flatPath": "userprofiles/{userprofilesId}/billingProfiles", "httpMethod": "PUT", "id": "dfareporting.billingProfiles.update", "parameterOrder": [ @@ -2035,11 +2072,12 @@ "description": "User profile ID associated with this request.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" } }, - "path": "userprofiles/{profileId}/billingProfiles", + "path": "userprofiles/{+profileId}/billingProfiles", "request": { "$ref": "BillingProfile" }, @@ -2056,7 +2094,7 @@ "methods": { "list": { "description": "Retrieves a list of billing rates. This method supports paging.", - "flatPath": "userprofiles/{profileId}/billingProfiles/{billingProfileId}/billingRates", + "flatPath": "userprofiles/{userprofilesId}/billingProfiles/{billingProfilesId}/billingRates", "httpMethod": "GET", "id": "dfareporting.billingRates.list", "parameterOrder": [ @@ -2068,6 +2106,7 @@ "description": "Billing profile ID of this billing rate.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" }, @@ -2075,11 +2114,12 @@ "description": "User profile ID associated with this request.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" } }, - "path": "userprofiles/{profileId}/billingProfiles/{billingProfileId}/billingRates", + "path": "userprofiles/{+profileId}/billingProfiles/{+billingProfileId}/billingRates", "response": { "$ref": "BillingRatesListResponse" }, @@ -2093,7 +2133,7 @@ "methods": { "list": { "description": "Retrieves a list of browsers.", - "flatPath": "userprofiles/{profileId}/browsers", + "flatPath": "userprofiles/{userprofilesId}/browsers", "httpMethod": "GET", "id": "dfareporting.browsers.list", "parameterOrder": [ @@ -2104,11 +2144,12 @@ "description": "User profile ID associated with this request.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" } }, - "path": "userprofiles/{profileId}/browsers", + "path": "userprofiles/{+profileId}/browsers", "response": { "$ref": "BrowsersListResponse" }, @@ -2122,7 +2163,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": "userprofiles/{profileId}/campaigns/{campaignId}/campaignCreativeAssociations", + "flatPath": "userprofiles/{userprofilesId}/campaigns/{campaignsId}/campaignCreativeAssociations", "httpMethod": "POST", "id": "dfareporting.campaignCreativeAssociations.insert", "parameterOrder": [ @@ -2134,6 +2175,7 @@ "description": "Campaign ID in this association.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" }, @@ -2141,11 +2183,12 @@ "description": "User profile ID associated with this request.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" } }, - "path": "userprofiles/{profileId}/campaigns/{campaignId}/campaignCreativeAssociations", + "path": "userprofiles/{+profileId}/campaigns/{+campaignId}/campaignCreativeAssociations", "request": { "$ref": "CampaignCreativeAssociation" }, @@ -2158,7 +2201,7 @@ }, "list": { "description": "Retrieves the list of creative IDs associated with the specified campaign. This method supports paging.", - "flatPath": "userprofiles/{profileId}/campaigns/{campaignId}/campaignCreativeAssociations", + "flatPath": "userprofiles/{userprofilesId}/campaigns/{campaignsId}/campaignCreativeAssociations", "httpMethod": "GET", "id": "dfareporting.campaignCreativeAssociations.list", "parameterOrder": [ @@ -2170,6 +2213,7 @@ "description": "Campaign ID in this association.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" }, @@ -2178,8 +2222,6 @@ "description": "Maximum number of results to return.", "format": "int32", "location": "query", - "maximum": "1000", - "minimum": "0", "type": "integer" }, "pageToken": { @@ -2191,6 +2233,7 @@ "description": "User profile ID associated with this request.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" }, @@ -2202,14 +2245,14 @@ "DESCENDING" ], "enumDescriptions": [ - "", - "" + "Ascending order.", + "Descending order." ], "location": "query", "type": "string" } }, - "path": "userprofiles/{profileId}/campaigns/{campaignId}/campaignCreativeAssociations", + "path": "userprofiles/{+profileId}/campaigns/{+campaignId}/campaignCreativeAssociations", "response": { "$ref": "CampaignCreativeAssociationsListResponse" }, @@ -2223,7 +2266,7 @@ "methods": { "get": { "description": "Gets one campaign by ID.", - "flatPath": "userprofiles/{profileId}/campaigns/{id}", + "flatPath": "userprofiles/{userprofilesId}/campaigns/{campaignsId}", "httpMethod": "GET", "id": "dfareporting.campaigns.get", "parameterOrder": [ @@ -2235,6 +2278,7 @@ "description": "Campaign ID.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" }, @@ -2242,11 +2286,12 @@ "description": "User profile ID associated with this request.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" } }, - "path": "userprofiles/{profileId}/campaigns/{id}", + "path": "userprofiles/{+profileId}/campaigns/{+id}", "response": { "$ref": "Campaign" }, @@ -2256,7 +2301,7 @@ }, "insert": { "description": "Inserts a new campaign.", - "flatPath": "userprofiles/{profileId}/campaigns", + "flatPath": "userprofiles/{userprofilesId}/campaigns", "httpMethod": "POST", "id": "dfareporting.campaigns.insert", "parameterOrder": [ @@ -2267,11 +2312,12 @@ "description": "User profile ID associated with this request.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" } }, - "path": "userprofiles/{profileId}/campaigns", + "path": "userprofiles/{+profileId}/campaigns", "request": { "$ref": "Campaign" }, @@ -2284,7 +2330,7 @@ }, "list": { "description": "Retrieves a list of campaigns, possibly filtered. This method supports paging.", - "flatPath": "userprofiles/{profileId}/campaigns", + "flatPath": "userprofiles/{userprofilesId}/campaigns", "httpMethod": "GET", "id": "dfareporting.campaigns.list", "parameterOrder": [ @@ -2334,8 +2380,6 @@ "description": "Maximum number of results to return.", "format": "int32", "location": "query", - "maximum": "1000", - "minimum": "0", "type": "integer" }, "overriddenEventTagId": { @@ -2353,6 +2397,7 @@ "description": "User profile ID associated with this request.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" }, @@ -2383,8 +2428,8 @@ "DESCENDING" ], "enumDescriptions": [ - "", - "" + "Ascending order.", + "Descending order." ], "location": "query", "type": "string" @@ -2396,7 +2441,7 @@ "type": "string" } }, - "path": "userprofiles/{profileId}/campaigns", + "path": "userprofiles/{+profileId}/campaigns", "response": { "$ref": "CampaignsListResponse" }, @@ -2405,8 +2450,8 @@ ] }, "patch": { - "description": "Updates an existing campaign. This method supports patch semantics.", - "flatPath": "userprofiles/{profileId}/campaigns", + "description": "Updates an existing creative. This method supports patch semantics.", + "flatPath": "userprofiles/{userprofilesId}/campaigns", "httpMethod": "PATCH", "id": "dfareporting.campaigns.patch", "parameterOrder": [ @@ -2415,7 +2460,7 @@ ], "parameters": { "id": { - "description": "Campaign ID.", + "description": "Required. Campaign ID.", "format": "int64", "location": "query", "required": true, @@ -2425,11 +2470,12 @@ "description": "User profile ID associated with this request.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" } }, - "path": "userprofiles/{profileId}/campaigns", + "path": "userprofiles/{+profileId}/campaigns", "request": { "$ref": "Campaign" }, @@ -2442,7 +2488,7 @@ }, "update": { "description": "Updates an existing campaign.", - "flatPath": "userprofiles/{profileId}/campaigns", + "flatPath": "userprofiles/{userprofilesId}/campaigns", "httpMethod": "PUT", "id": "dfareporting.campaigns.update", "parameterOrder": [ @@ -2453,11 +2499,12 @@ "description": "User profile ID associated with this request.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" } }, - "path": "userprofiles/{profileId}/campaigns", + "path": "userprofiles/{+profileId}/campaigns", "request": { "$ref": "Campaign" }, @@ -2474,7 +2521,7 @@ "methods": { "get": { "description": "Gets one change log by ID.", - "flatPath": "userprofiles/{profileId}/changeLogs/{id}", + "flatPath": "userprofiles/{userprofilesId}/changeLogs/{changeLogsId}", "httpMethod": "GET", "id": "dfareporting.changeLogs.get", "parameterOrder": [ @@ -2486,6 +2533,7 @@ "description": "Change log ID.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" }, @@ -2493,11 +2541,12 @@ "description": "User profile ID associated with this request.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" } }, - "path": "userprofiles/{profileId}/changeLogs/{id}", + "path": "userprofiles/{+profileId}/changeLogs/{+id}", "response": { "$ref": "ChangeLog" }, @@ -2507,7 +2556,7 @@ }, "list": { "description": "Retrieves a list of change logs. This method supports paging.", - "flatPath": "userprofiles/{profileId}/changeLogs", + "flatPath": "userprofiles/{userprofilesId}/changeLogs", "httpMethod": "GET", "id": "dfareporting.changeLogs.list", "parameterOrder": [ @@ -2574,8 +2623,6 @@ "description": "Maximum number of results to return.", "format": "int32", "location": "query", - "maximum": "1000", - "minimum": "0", "type": "integer" }, "minChangeTime": { @@ -2690,6 +2737,7 @@ "description": "User profile ID associated with this request.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" }, @@ -2706,7 +2754,7 @@ "type": "string" } }, - "path": "userprofiles/{profileId}/changeLogs", + "path": "userprofiles/{+profileId}/changeLogs", "response": { "$ref": "ChangeLogsListResponse" }, @@ -2720,7 +2768,7 @@ "methods": { "list": { "description": "Retrieves a list of cities, possibly filtered.", - "flatPath": "userprofiles/{profileId}/cities", + "flatPath": "userprofiles/{userprofilesId}/cities", "httpMethod": "GET", "id": "dfareporting.cities.list", "parameterOrder": [ @@ -2750,6 +2798,7 @@ "description": "User profile ID associated with this request.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" }, @@ -2761,7 +2810,7 @@ "type": "string" } }, - "path": "userprofiles/{profileId}/cities", + "path": "userprofiles/{+profileId}/cities", "response": { "$ref": "CitiesListResponse" }, @@ -2775,7 +2824,7 @@ "methods": { "get": { "description": "Gets one connection type by ID.", - "flatPath": "userprofiles/{profileId}/connectionTypes/{id}", + "flatPath": "userprofiles/{userprofilesId}/connectionTypes/{connectionTypesId}", "httpMethod": "GET", "id": "dfareporting.connectionTypes.get", "parameterOrder": [ @@ -2787,6 +2836,7 @@ "description": "Connection type ID.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" }, @@ -2794,11 +2844,12 @@ "description": "User profile ID associated with this request.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" } }, - "path": "userprofiles/{profileId}/connectionTypes/{id}", + "path": "userprofiles/{+profileId}/connectionTypes/{+id}", "response": { "$ref": "ConnectionType" }, @@ -2808,7 +2859,7 @@ }, "list": { "description": "Retrieves a list of connection types.", - "flatPath": "userprofiles/{profileId}/connectionTypes", + "flatPath": "userprofiles/{userprofilesId}/connectionTypes", "httpMethod": "GET", "id": "dfareporting.connectionTypes.list", "parameterOrder": [ @@ -2819,11 +2870,12 @@ "description": "User profile ID associated with this request.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" } }, - "path": "userprofiles/{profileId}/connectionTypes", + "path": "userprofiles/{+profileId}/connectionTypes", "response": { "$ref": "ConnectionTypesListResponse" }, @@ -2837,7 +2889,7 @@ "methods": { "delete": { "description": "Deletes an existing content category.", - "flatPath": "userprofiles/{profileId}/contentCategories/{id}", + "flatPath": "userprofiles/{userprofilesId}/contentCategories/{contentCategoriesId}", "httpMethod": "DELETE", "id": "dfareporting.contentCategories.delete", "parameterOrder": [ @@ -2849,6 +2901,7 @@ "description": "Content category ID.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" }, @@ -2856,18 +2909,19 @@ "description": "User profile ID associated with this request.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" } }, - "path": "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": "userprofiles/{profileId}/contentCategories/{id}", + "flatPath": "userprofiles/{userprofilesId}/contentCategories/{contentCategoriesId}", "httpMethod": "GET", "id": "dfareporting.contentCategories.get", "parameterOrder": [ @@ -2879,6 +2933,7 @@ "description": "Content category ID.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" }, @@ -2886,11 +2941,12 @@ "description": "User profile ID associated with this request.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" } }, - "path": "userprofiles/{profileId}/contentCategories/{id}", + "path": "userprofiles/{+profileId}/contentCategories/{+id}", "response": { "$ref": "ContentCategory" }, @@ -2900,7 +2956,7 @@ }, "insert": { "description": "Inserts a new content category.", - "flatPath": "userprofiles/{profileId}/contentCategories", + "flatPath": "userprofiles/{userprofilesId}/contentCategories", "httpMethod": "POST", "id": "dfareporting.contentCategories.insert", "parameterOrder": [ @@ -2911,11 +2967,12 @@ "description": "User profile ID associated with this request.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" } }, - "path": "userprofiles/{profileId}/contentCategories", + "path": "userprofiles/{+profileId}/contentCategories", "request": { "$ref": "ContentCategory" }, @@ -2928,7 +2985,7 @@ }, "list": { "description": "Retrieves a list of content categories, possibly filtered. This method supports paging.", - "flatPath": "userprofiles/{profileId}/contentCategories", + "flatPath": "userprofiles/{userprofilesId}/contentCategories", "httpMethod": "GET", "id": "dfareporting.contentCategories.list", "parameterOrder": [ @@ -2947,8 +3004,6 @@ "description": "Maximum number of results to return.", "format": "int32", "location": "query", - "maximum": "1000", - "minimum": "0", "type": "integer" }, "pageToken": { @@ -2960,6 +3015,7 @@ "description": "User profile ID associated with this request.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" }, @@ -2990,14 +3046,14 @@ "DESCENDING" ], "enumDescriptions": [ - "", - "" + "Ascending order.", + "Descending order." ], "location": "query", "type": "string" } }, - "path": "userprofiles/{profileId}/contentCategories", + "path": "userprofiles/{+profileId}/contentCategories", "response": { "$ref": "ContentCategoriesListResponse" }, @@ -3007,7 +3063,7 @@ }, "patch": { "description": "Updates an existing content category. This method supports patch semantics.", - "flatPath": "userprofiles/{profileId}/contentCategories", + "flatPath": "userprofiles/{userprofilesId}/contentCategories", "httpMethod": "PATCH", "id": "dfareporting.contentCategories.patch", "parameterOrder": [ @@ -3016,7 +3072,7 @@ ], "parameters": { "id": { - "description": "ContentCategory ID.", + "description": "Required. ContentCategory ID.", "format": "int64", "location": "query", "required": true, @@ -3026,11 +3082,12 @@ "description": "User profile ID associated with this request.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" } }, - "path": "userprofiles/{profileId}/contentCategories", + "path": "userprofiles/{+profileId}/contentCategories", "request": { "$ref": "ContentCategory" }, @@ -3043,7 +3100,7 @@ }, "update": { "description": "Updates an existing content category.", - "flatPath": "userprofiles/{profileId}/contentCategories", + "flatPath": "userprofiles/{userprofilesId}/contentCategories", "httpMethod": "PUT", "id": "dfareporting.contentCategories.update", "parameterOrder": [ @@ -3054,11 +3111,12 @@ "description": "User profile ID associated with this request.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" } }, - "path": "userprofiles/{profileId}/contentCategories", + "path": "userprofiles/{+profileId}/contentCategories", "request": { "$ref": "ContentCategory" }, @@ -3135,7 +3193,7 @@ "methods": { "get": { "description": "Gets one country by ID.", - "flatPath": "userprofiles/{profileId}/countries/{dartId}", + "flatPath": "userprofiles/{userprofilesId}/countries/{countriesId}", "httpMethod": "GET", "id": "dfareporting.countries.get", "parameterOrder": [ @@ -3147,6 +3205,7 @@ "description": "Country DART ID.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" }, @@ -3154,11 +3213,12 @@ "description": "User profile ID associated with this request.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" } }, - "path": "userprofiles/{profileId}/countries/{dartId}", + "path": "userprofiles/{+profileId}/countries/{+dartId}", "response": { "$ref": "Country" }, @@ -3168,7 +3228,7 @@ }, "list": { "description": "Retrieves a list of countries.", - "flatPath": "userprofiles/{profileId}/countries", + "flatPath": "userprofiles/{userprofilesId}/countries", "httpMethod": "GET", "id": "dfareporting.countries.list", "parameterOrder": [ @@ -3179,11 +3239,12 @@ "description": "User profile ID associated with this request.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" } }, - "path": "userprofiles/{profileId}/countries", + "path": "userprofiles/{+profileId}/countries", "response": { "$ref": "CountriesListResponse" }, @@ -3197,7 +3258,7 @@ "methods": { "insert": { "description": "Inserts a new creative asset.", - "flatPath": "userprofiles/{profileId}/creativeAssets/{advertiserId}/creativeAssets", + "flatPath": "userprofiles/{userprofilesId}/creativeAssets/{creativeAssetsId}/creativeAssets", "httpMethod": "POST", "id": "dfareporting.creativeAssets.insert", "mediaUpload": { @@ -3208,7 +3269,7 @@ "protocols": { "simple": { "multipart": true, - "path": "/upload/dfareporting/v4/userprofiles/{profileId}/creativeAssets/{advertiserId}/creativeAssets" + "path": "/upload/dfareporting/v4/userprofiles/{+profileId}/creativeAssets/{+advertiserId}/creativeAssets" } } }, @@ -3221,6 +3282,7 @@ "description": "Advertiser ID of this creative. This is a required field.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" }, @@ -3228,11 +3290,12 @@ "description": "User profile ID associated with this request.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" } }, - "path": "userprofiles/{profileId}/creativeAssets/{advertiserId}/creativeAssets", + "path": "userprofiles/{+profileId}/creativeAssets/{+advertiserId}/creativeAssets", "request": { "$ref": "CreativeAssetMetadata" }, @@ -3250,7 +3313,7 @@ "methods": { "delete": { "description": "Deletes an existing creative field value.", - "flatPath": "userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues/{id}", + "flatPath": "userprofiles/{userprofilesId}/creativeFields/{creativeFieldsId}/creativeFieldValues/{creativeFieldValuesId}", "httpMethod": "DELETE", "id": "dfareporting.creativeFieldValues.delete", "parameterOrder": [ @@ -3263,6 +3326,7 @@ "description": "Creative field ID for this creative field value.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" }, @@ -3270,6 +3334,7 @@ "description": "Creative Field Value ID", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" }, @@ -3277,18 +3342,19 @@ "description": "User profile ID associated with this request.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" } }, - "path": "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": "userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues/{id}", + "flatPath": "userprofiles/{userprofilesId}/creativeFields/{creativeFieldsId}/creativeFieldValues/{creativeFieldValuesId}", "httpMethod": "GET", "id": "dfareporting.creativeFieldValues.get", "parameterOrder": [ @@ -3301,6 +3367,7 @@ "description": "Creative field ID for this creative field value.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" }, @@ -3308,6 +3375,7 @@ "description": "Creative Field Value ID", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" }, @@ -3315,11 +3383,12 @@ "description": "User profile ID associated with this request.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" } }, - "path": "userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues/{id}", + "path": "userprofiles/{+profileId}/creativeFields/{+creativeFieldId}/creativeFieldValues/{+id}", "response": { "$ref": "CreativeFieldValue" }, @@ -3329,7 +3398,7 @@ }, "insert": { "description": "Inserts a new creative field value.", - "flatPath": "userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues", + "flatPath": "userprofiles/{userprofilesId}/creativeFields/{creativeFieldsId}/creativeFieldValues", "httpMethod": "POST", "id": "dfareporting.creativeFieldValues.insert", "parameterOrder": [ @@ -3341,6 +3410,7 @@ "description": "Creative field ID for this creative field value.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" }, @@ -3348,11 +3418,12 @@ "description": "User profile ID associated with this request.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" } }, - "path": "userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues", + "path": "userprofiles/{+profileId}/creativeFields/{+creativeFieldId}/creativeFieldValues", "request": { "$ref": "CreativeFieldValue" }, @@ -3365,7 +3436,7 @@ }, "list": { "description": "Retrieves a list of creative field values, possibly filtered. This method supports paging.", - "flatPath": "userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues", + "flatPath": "userprofiles/{userprofilesId}/creativeFields/{creativeFieldsId}/creativeFieldValues", "httpMethod": "GET", "id": "dfareporting.creativeFieldValues.list", "parameterOrder": [ @@ -3377,6 +3448,7 @@ "description": "Creative field ID for this creative field value.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" }, @@ -3392,8 +3464,6 @@ "description": "Maximum number of results to return.", "format": "int32", "location": "query", - "maximum": "1000", - "minimum": "0", "type": "integer" }, "pageToken": { @@ -3405,6 +3475,7 @@ "description": "User profile ID associated with this request.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" }, @@ -3435,14 +3506,14 @@ "DESCENDING" ], "enumDescriptions": [ - "", - "" + "Ascending order.", + "Descending order." ], "location": "query", "type": "string" } }, - "path": "userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues", + "path": "userprofiles/{+profileId}/creativeFields/{+creativeFieldId}/creativeFieldValues", "response": { "$ref": "CreativeFieldValuesListResponse" }, @@ -3452,7 +3523,7 @@ }, "patch": { "description": "Updates an existing creative field value. This method supports patch semantics.", - "flatPath": "userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues", + "flatPath": "userprofiles/{userprofilesId}/creativeFields/{creativeFieldsId}/creativeFieldValues", "httpMethod": "PATCH", "id": "dfareporting.creativeFieldValues.patch", "parameterOrder": [ @@ -3465,6 +3536,7 @@ "description": "CreativeField ID.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" }, @@ -3479,11 +3551,12 @@ "description": "User profile ID associated with this request.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" } }, - "path": "userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues", + "path": "userprofiles/{+profileId}/creativeFields/{+creativeFieldId}/creativeFieldValues", "request": { "$ref": "CreativeFieldValue" }, @@ -3496,7 +3569,7 @@ }, "update": { "description": "Updates an existing creative field value.", - "flatPath": "userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues", + "flatPath": "userprofiles/{userprofilesId}/creativeFields/{creativeFieldsId}/creativeFieldValues", "httpMethod": "PUT", "id": "dfareporting.creativeFieldValues.update", "parameterOrder": [ @@ -3508,6 +3581,7 @@ "description": "Creative field ID for this creative field value.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" }, @@ -3515,11 +3589,12 @@ "description": "User profile ID associated with this request.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" } }, - "path": "userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues", + "path": "userprofiles/{+profileId}/creativeFields/{+creativeFieldId}/creativeFieldValues", "request": { "$ref": "CreativeFieldValue" }, @@ -3536,7 +3611,7 @@ "methods": { "delete": { "description": "Deletes an existing creative field.", - "flatPath": "userprofiles/{profileId}/creativeFields/{id}", + "flatPath": "userprofiles/{userprofilesId}/creativeFields/{creativeFieldsId}", "httpMethod": "DELETE", "id": "dfareporting.creativeFields.delete", "parameterOrder": [ @@ -3548,6 +3623,7 @@ "description": "Creative Field ID", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" }, @@ -3555,18 +3631,19 @@ "description": "User profile ID associated with this request.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" } }, - "path": "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": "userprofiles/{profileId}/creativeFields/{id}", + "flatPath": "userprofiles/{userprofilesId}/creativeFields/{creativeFieldsId}", "httpMethod": "GET", "id": "dfareporting.creativeFields.get", "parameterOrder": [ @@ -3578,6 +3655,7 @@ "description": "Creative Field ID", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" }, @@ -3585,11 +3663,12 @@ "description": "User profile ID associated with this request.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" } }, - "path": "userprofiles/{profileId}/creativeFields/{id}", + "path": "userprofiles/{+profileId}/creativeFields/{+id}", "response": { "$ref": "CreativeField" }, @@ -3599,7 +3678,7 @@ }, "insert": { "description": "Inserts a new creative field.", - "flatPath": "userprofiles/{profileId}/creativeFields", + "flatPath": "userprofiles/{userprofilesId}/creativeFields", "httpMethod": "POST", "id": "dfareporting.creativeFields.insert", "parameterOrder": [ @@ -3610,11 +3689,12 @@ "description": "User profile ID associated with this request.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" } }, - "path": "userprofiles/{profileId}/creativeFields", + "path": "userprofiles/{+profileId}/creativeFields", "request": { "$ref": "CreativeField" }, @@ -3627,7 +3707,7 @@ }, "list": { "description": "Retrieves a list of creative fields, possibly filtered. This method supports paging.", - "flatPath": "userprofiles/{profileId}/creativeFields", + "flatPath": "userprofiles/{userprofilesId}/creativeFields", "httpMethod": "GET", "id": "dfareporting.creativeFields.list", "parameterOrder": [ @@ -3653,8 +3733,6 @@ "description": "Maximum number of results to return.", "format": "int32", "location": "query", - "maximum": "1000", - "minimum": "0", "type": "integer" }, "pageToken": { @@ -3666,6 +3744,7 @@ "description": "User profile ID associated with this request.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" }, @@ -3696,14 +3775,14 @@ "DESCENDING" ], "enumDescriptions": [ - "", - "" + "Ascending order.", + "Descending order." ], "location": "query", "type": "string" } }, - "path": "userprofiles/{profileId}/creativeFields", + "path": "userprofiles/{+profileId}/creativeFields", "response": { "$ref": "CreativeFieldsListResponse" }, @@ -3713,7 +3792,7 @@ }, "patch": { "description": "Updates an existing creative field. This method supports patch semantics.", - "flatPath": "userprofiles/{profileId}/creativeFields", + "flatPath": "userprofiles/{userprofilesId}/creativeFields", "httpMethod": "PATCH", "id": "dfareporting.creativeFields.patch", "parameterOrder": [ @@ -3732,11 +3811,12 @@ "description": "User profile ID associated with this request.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" } }, - "path": "userprofiles/{profileId}/creativeFields", + "path": "userprofiles/{+profileId}/creativeFields", "request": { "$ref": "CreativeField" }, @@ -3749,7 +3829,7 @@ }, "update": { "description": "Updates an existing creative field.", - "flatPath": "userprofiles/{profileId}/creativeFields", + "flatPath": "userprofiles/{userprofilesId}/creativeFields", "httpMethod": "PUT", "id": "dfareporting.creativeFields.update", "parameterOrder": [ @@ -3760,11 +3840,12 @@ "description": "User profile ID associated with this request.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" } }, - "path": "userprofiles/{profileId}/creativeFields", + "path": "userprofiles/{+profileId}/creativeFields", "request": { "$ref": "CreativeField" }, @@ -3781,7 +3862,7 @@ "methods": { "get": { "description": "Gets one creative group by ID.", - "flatPath": "userprofiles/{profileId}/creativeGroups/{id}", + "flatPath": "userprofiles/{userprofilesId}/creativeGroups/{creativeGroupsId}", "httpMethod": "GET", "id": "dfareporting.creativeGroups.get", "parameterOrder": [ @@ -3793,6 +3874,7 @@ "description": "Creative group ID.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" }, @@ -3800,11 +3882,12 @@ "description": "User profile ID associated with this request.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" } }, - "path": "userprofiles/{profileId}/creativeGroups/{id}", + "path": "userprofiles/{+profileId}/creativeGroups/{+id}", "response": { "$ref": "CreativeGroup" }, @@ -3814,7 +3897,7 @@ }, "insert": { "description": "Inserts a new creative group.", - "flatPath": "userprofiles/{profileId}/creativeGroups", + "flatPath": "userprofiles/{userprofilesId}/creativeGroups", "httpMethod": "POST", "id": "dfareporting.creativeGroups.insert", "parameterOrder": [ @@ -3825,11 +3908,12 @@ "description": "User profile ID associated with this request.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" } }, - "path": "userprofiles/{profileId}/creativeGroups", + "path": "userprofiles/{+profileId}/creativeGroups", "request": { "$ref": "CreativeGroup" }, @@ -3842,7 +3926,7 @@ }, "list": { "description": "Retrieves a list of creative groups, possibly filtered. This method supports paging.", - "flatPath": "userprofiles/{profileId}/creativeGroups", + "flatPath": "userprofiles/{userprofilesId}/creativeGroups", "httpMethod": "GET", "id": "dfareporting.creativeGroups.list", "parameterOrder": [ @@ -3860,8 +3944,6 @@ "description": "Select only creative groups that belong to this subgroup.", "format": "int32", "location": "query", - "maximum": "2", - "minimum": "1", "type": "integer" }, "ids": { @@ -3876,8 +3958,6 @@ "description": "Maximum number of results to return.", "format": "int32", "location": "query", - "maximum": "1000", - "minimum": "0", "type": "integer" }, "pageToken": { @@ -3889,6 +3969,7 @@ "description": "User profile ID associated with this request.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" }, @@ -3919,14 +4000,14 @@ "DESCENDING" ], "enumDescriptions": [ - "", - "" + "Ascending order.", + "Descending order." ], "location": "query", "type": "string" } }, - "path": "userprofiles/{profileId}/creativeGroups", + "path": "userprofiles/{+profileId}/creativeGroups", "response": { "$ref": "CreativeGroupsListResponse" }, @@ -3936,7 +4017,7 @@ }, "patch": { "description": "Updates an existing creative group. This method supports patch semantics.", - "flatPath": "userprofiles/{profileId}/creativeGroups", + "flatPath": "userprofiles/{userprofilesId}/creativeGroups", "httpMethod": "PATCH", "id": "dfareporting.creativeGroups.patch", "parameterOrder": [ @@ -3945,7 +4026,7 @@ ], "parameters": { "id": { - "description": "CreativeGroup ID.", + "description": "Required. Creative Group ID.", "format": "int64", "location": "query", "required": true, @@ -3955,11 +4036,12 @@ "description": "User profile ID associated with this request.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" } }, - "path": "userprofiles/{profileId}/creativeGroups", + "path": "userprofiles/{+profileId}/creativeGroups", "request": { "$ref": "CreativeGroup" }, @@ -3972,7 +4054,7 @@ }, "update": { "description": "Updates an existing creative group.", - "flatPath": "userprofiles/{profileId}/creativeGroups", + "flatPath": "userprofiles/{userprofilesId}/creativeGroups", "httpMethod": "PUT", "id": "dfareporting.creativeGroups.update", "parameterOrder": [ @@ -3983,11 +4065,12 @@ "description": "User profile ID associated with this request.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" } }, - "path": "userprofiles/{profileId}/creativeGroups", + "path": "userprofiles/{+profileId}/creativeGroups", "request": { "$ref": "CreativeGroup" }, @@ -4004,7 +4087,7 @@ "methods": { "get": { "description": "Gets one creative by ID.", - "flatPath": "userprofiles/{profileId}/creatives/{id}", + "flatPath": "userprofiles/{userprofilesId}/creatives/{creativesId}", "httpMethod": "GET", "id": "dfareporting.creatives.get", "parameterOrder": [ @@ -4016,6 +4099,7 @@ "description": "Creative ID.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" }, @@ -4023,11 +4107,12 @@ "description": "User profile ID associated with this request.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" } }, - "path": "userprofiles/{profileId}/creatives/{id}", + "path": "userprofiles/{+profileId}/creatives/{+id}", "response": { "$ref": "Creative" }, @@ -4037,7 +4122,7 @@ }, "insert": { "description": "Inserts a new creative.", - "flatPath": "userprofiles/{profileId}/creatives", + "flatPath": "userprofiles/{userprofilesId}/creatives", "httpMethod": "POST", "id": "dfareporting.creatives.insert", "parameterOrder": [ @@ -4048,11 +4133,12 @@ "description": "User profile ID associated with this request.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" } }, - "path": "userprofiles/{profileId}/creatives", + "path": "userprofiles/{+profileId}/creatives", "request": { "$ref": "Creative" }, @@ -4065,7 +4151,7 @@ }, "list": { "description": "Retrieves a list of creatives, possibly filtered. This method supports paging.", - "flatPath": "userprofiles/{profileId}/creatives", + "flatPath": "userprofiles/{userprofilesId}/creatives", "httpMethod": "GET", "id": "dfareporting.creatives.list", "parameterOrder": [ @@ -4120,8 +4206,6 @@ "description": "Maximum number of results to return.", "format": "int32", "location": "query", - "maximum": "1000", - "minimum": "0", "type": "integer" }, "pageToken": { @@ -4133,6 +4217,7 @@ "description": "User profile ID associated with this request.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" }, @@ -4177,8 +4262,8 @@ "DESCENDING" ], "enumDescriptions": [ - "", - "" + "Ascending order.", + "Descending order." ], "location": "query", "type": "string" @@ -4250,7 +4335,7 @@ "type": "string" } }, - "path": "userprofiles/{profileId}/creatives", + "path": "userprofiles/{+profileId}/creatives", "response": { "$ref": "CreativesListResponse" }, @@ -4260,7 +4345,7 @@ }, "patch": { "description": "Updates an existing creative. This method supports patch semantics.", - "flatPath": "userprofiles/{profileId}/creatives", + "flatPath": "userprofiles/{userprofilesId}/creatives", "httpMethod": "PATCH", "id": "dfareporting.creatives.patch", "parameterOrder": [ @@ -4269,7 +4354,7 @@ ], "parameters": { "id": { - "description": "Creative ID.", + "description": "Required. Creative ID.", "format": "int64", "location": "query", "required": true, @@ -4279,11 +4364,12 @@ "description": "User profile ID associated with this request.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" } }, - "path": "userprofiles/{profileId}/creatives", + "path": "userprofiles/{+profileId}/creatives", "request": { "$ref": "Creative" }, @@ -4296,7 +4382,7 @@ }, "update": { "description": "Updates an existing creative.", - "flatPath": "userprofiles/{profileId}/creatives", + "flatPath": "userprofiles/{userprofilesId}/creatives", "httpMethod": "PUT", "id": "dfareporting.creatives.update", "parameterOrder": [ @@ -4307,11 +4393,12 @@ "description": "User profile ID associated with this request.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" } }, - "path": "userprofiles/{profileId}/creatives", + "path": "userprofiles/{+profileId}/creatives", "request": { "$ref": "Creative" }, @@ -4340,8 +4427,6 @@ "description": "Maximum number of results to return.", "format": "int32", "location": "query", - "maximum": "100", - "minimum": "0", "type": "integer" }, "pageToken": { @@ -4374,7 +4459,7 @@ "methods": { "get": { "description": "Gets one directory site by ID.", - "flatPath": "userprofiles/{profileId}/directorySites/{id}", + "flatPath": "userprofiles/{userprofilesId}/directorySites/{directorySitesId}", "httpMethod": "GET", "id": "dfareporting.directorySites.get", "parameterOrder": [ @@ -4386,6 +4471,7 @@ "description": "Directory site ID.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" }, @@ -4393,11 +4479,12 @@ "description": "User profile ID associated with this request.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" } }, - "path": "userprofiles/{profileId}/directorySites/{id}", + "path": "userprofiles/{+profileId}/directorySites/{+id}", "response": { "$ref": "DirectorySite" }, @@ -4407,7 +4494,7 @@ }, "insert": { "description": "Inserts a new directory site.", - "flatPath": "userprofiles/{profileId}/directorySites", + "flatPath": "userprofiles/{userprofilesId}/directorySites", "httpMethod": "POST", "id": "dfareporting.directorySites.insert", "parameterOrder": [ @@ -4418,11 +4505,12 @@ "description": "User profile ID associated with this request.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" } }, - "path": "userprofiles/{profileId}/directorySites", + "path": "userprofiles/{+profileId}/directorySites", "request": { "$ref": "DirectorySite" }, @@ -4435,7 +4523,7 @@ }, "list": { "description": "Retrieves a list of directory sites, possibly filtered. This method supports paging.", - "flatPath": "userprofiles/{profileId}/directorySites", + "flatPath": "userprofiles/{userprofilesId}/directorySites", "httpMethod": "GET", "id": "dfareporting.directorySites.list", "parameterOrder": [ @@ -4479,8 +4567,6 @@ "description": "Maximum number of results to return.", "format": "int32", "location": "query", - "maximum": "1000", - "minimum": "0", "type": "integer" }, "pageToken": { @@ -4492,6 +4578,7 @@ "description": "User profile ID associated with this request.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" }, @@ -4522,14 +4609,14 @@ "DESCENDING" ], "enumDescriptions": [ - "", - "" + "Ascending order.", + "Descending order." ], "location": "query", "type": "string" } }, - "path": "userprofiles/{profileId}/directorySites", + "path": "userprofiles/{+profileId}/directorySites", "response": { "$ref": "DirectorySitesListResponse" }, @@ -4543,7 +4630,7 @@ "methods": { "delete": { "description": "Deletes an existing dynamic targeting key.", - "flatPath": "userprofiles/{profileId}/dynamicTargetingKeys/{objectId}", + "flatPath": "userprofiles/{userprofilesId}/dynamicTargetingKeys/{dynamicTargetingKeysId}", "httpMethod": "DELETE", "id": "dfareporting.dynamicTargetingKeys.delete", "parameterOrder": [ @@ -4554,7 +4641,7 @@ ], "parameters": { "name": { - "description": "Name of this dynamic targeting key. This is a required field. Must be less than 256 characters long and cannot contain commas. All characters are converted to lowercase.", + "description": "Required. Name of this dynamic targeting key. This is a required field. Must be less than 256 characters long and cannot contain commas. All characters are converted to lowercase.", "location": "query", "required": true, "type": "string" @@ -4563,11 +4650,12 @@ "description": "ID of the object of this dynamic targeting key. This is a required field.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" }, "objectType": { - "description": "Type of the object of this dynamic targeting key. This is a required field.", + "description": "Required. Type of the object of this dynamic targeting key. This is a required field.", "enum": [ "OBJECT_ADVERTISER", "OBJECT_AD", @@ -4588,18 +4676,19 @@ "description": "User profile ID associated with this request.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" } }, - "path": "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": "userprofiles/{profileId}/dynamicTargetingKeys", + "flatPath": "userprofiles/{userprofilesId}/dynamicTargetingKeys", "httpMethod": "POST", "id": "dfareporting.dynamicTargetingKeys.insert", "parameterOrder": [ @@ -4610,11 +4699,12 @@ "description": "User profile ID associated with this request.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" } }, - "path": "userprofiles/{profileId}/dynamicTargetingKeys", + "path": "userprofiles/{+profileId}/dynamicTargetingKeys", "request": { "$ref": "DynamicTargetingKey" }, @@ -4627,7 +4717,7 @@ }, "list": { "description": "Retrieves a list of dynamic targeting keys.", - "flatPath": "userprofiles/{profileId}/dynamicTargetingKeys", + "flatPath": "userprofiles/{userprofilesId}/dynamicTargetingKeys", "httpMethod": "GET", "id": "dfareporting.dynamicTargetingKeys.list", "parameterOrder": [ @@ -4673,11 +4763,12 @@ "description": "User profile ID associated with this request.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" } }, - "path": "userprofiles/{profileId}/dynamicTargetingKeys", + "path": "userprofiles/{+profileId}/dynamicTargetingKeys", "response": { "$ref": "DynamicTargetingKeysListResponse" }, @@ -4691,7 +4782,7 @@ "methods": { "delete": { "description": "Deletes an existing event tag.", - "flatPath": "userprofiles/{profileId}/eventTags/{id}", + "flatPath": "userprofiles/{userprofilesId}/eventTags/{eventTagsId}", "httpMethod": "DELETE", "id": "dfareporting.eventTags.delete", "parameterOrder": [ @@ -4703,6 +4794,7 @@ "description": "Event tag ID.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" }, @@ -4710,18 +4802,19 @@ "description": "User profile ID associated with this request.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" } }, - "path": "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": "userprofiles/{profileId}/eventTags/{id}", + "flatPath": "userprofiles/{userprofilesId}/eventTags/{eventTagsId}", "httpMethod": "GET", "id": "dfareporting.eventTags.get", "parameterOrder": [ @@ -4733,6 +4826,7 @@ "description": "Event tag ID.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" }, @@ -4740,11 +4834,12 @@ "description": "User profile ID associated with this request.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" } }, - "path": "userprofiles/{profileId}/eventTags/{id}", + "path": "userprofiles/{+profileId}/eventTags/{+id}", "response": { "$ref": "EventTag" }, @@ -4754,7 +4849,7 @@ }, "insert": { "description": "Inserts a new event tag.", - "flatPath": "userprofiles/{profileId}/eventTags", + "flatPath": "userprofiles/{userprofilesId}/eventTags", "httpMethod": "POST", "id": "dfareporting.eventTags.insert", "parameterOrder": [ @@ -4765,11 +4860,12 @@ "description": "User profile ID associated with this request.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" } }, - "path": "userprofiles/{profileId}/eventTags", + "path": "userprofiles/{+profileId}/eventTags", "request": { "$ref": "EventTag" }, @@ -4782,7 +4878,7 @@ }, "list": { "description": "Retrieves a list of event tags, possibly filtered.", - "flatPath": "userprofiles/{profileId}/eventTags", + "flatPath": "userprofiles/{userprofilesId}/eventTags", "httpMethod": "GET", "id": "dfareporting.eventTags.list", "parameterOrder": [ @@ -4825,9 +4921,9 @@ "CLICK_THROUGH_EVENT_TAG" ], "enumDescriptions": [ - "", - "", - "" + "A third-party pixel for impression tracking.", + "A third-party JavaScript URL for impression tracking.", + "A third-party URL for click tracking that redirects to the landing page." ], "location": "query", "repeated": true, @@ -4844,6 +4940,7 @@ "description": "User profile ID associated with this request.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" }, @@ -4874,14 +4971,14 @@ "DESCENDING" ], "enumDescriptions": [ - "", - "" + "Ascending order.", + "Descending order." ], "location": "query", "type": "string" } }, - "path": "userprofiles/{profileId}/eventTags", + "path": "userprofiles/{+profileId}/eventTags", "response": { "$ref": "EventTagsListResponse" }, @@ -4891,7 +4988,7 @@ }, "patch": { "description": "Updates an existing event tag. This method supports patch semantics.", - "flatPath": "userprofiles/{profileId}/eventTags", + "flatPath": "userprofiles/{userprofilesId}/eventTags", "httpMethod": "PATCH", "id": "dfareporting.eventTags.patch", "parameterOrder": [ @@ -4900,7 +4997,7 @@ ], "parameters": { "id": { - "description": "EventTag ID.", + "description": "Required. EventTag ID.", "format": "int64", "location": "query", "required": true, @@ -4910,11 +5007,12 @@ "description": "User profile ID associated with this request.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" } }, - "path": "userprofiles/{profileId}/eventTags", + "path": "userprofiles/{+profileId}/eventTags", "request": { "$ref": "EventTag" }, @@ -4927,7 +5025,7 @@ }, "update": { "description": "Updates an existing event tag.", - "flatPath": "userprofiles/{profileId}/eventTags", + "flatPath": "userprofiles/{userprofilesId}/eventTags", "httpMethod": "PUT", "id": "dfareporting.eventTags.update", "parameterOrder": [ @@ -4938,11 +5036,12 @@ "description": "User profile ID associated with this request.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" } }, - "path": "userprofiles/{profileId}/eventTags", + "path": "userprofiles/{+profileId}/eventTags", "request": { "$ref": "EventTag" }, @@ -5005,8 +5104,6 @@ "description": "Maximum number of results to return.", "format": "int32", "location": "query", - "maximum": "10", - "minimum": "0", "type": "integer" }, "pageToken": { @@ -5080,7 +5177,7 @@ "methods": { "delete": { "description": "Deletes an existing floodlight activity.", - "flatPath": "userprofiles/{profileId}/floodlightActivities/{id}", + "flatPath": "userprofiles/{userprofilesId}/floodlightActivities/{floodlightActivitiesId}", "httpMethod": "DELETE", "id": "dfareporting.floodlightActivities.delete", "parameterOrder": [ @@ -5092,6 +5189,7 @@ "description": "Floodlight activity ID.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" }, @@ -5099,18 +5197,19 @@ "description": "User profile ID associated with this request.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" } }, - "path": "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": "userprofiles/{profileId}/floodlightActivities/generatetag", + "flatPath": "userprofiles/{userprofilesId}/floodlightActivities/generatetag", "httpMethod": "POST", "id": "dfareporting.floodlightActivities.generatetag", "parameterOrder": [ @@ -5127,11 +5226,12 @@ "description": "User profile ID associated with this request.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" } }, - "path": "userprofiles/{profileId}/floodlightActivities/generatetag", + "path": "userprofiles/{+profileId}/floodlightActivities/generatetag", "response": { "$ref": "FloodlightActivitiesGenerateTagResponse" }, @@ -5141,7 +5241,7 @@ }, "get": { "description": "Gets one floodlight activity by ID.", - "flatPath": "userprofiles/{profileId}/floodlightActivities/{id}", + "flatPath": "userprofiles/{userprofilesId}/floodlightActivities/{floodlightActivitiesId}", "httpMethod": "GET", "id": "dfareporting.floodlightActivities.get", "parameterOrder": [ @@ -5153,6 +5253,7 @@ "description": "Floodlight activity ID.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" }, @@ -5160,11 +5261,12 @@ "description": "User profile ID associated with this request.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" } }, - "path": "userprofiles/{profileId}/floodlightActivities/{id}", + "path": "userprofiles/{+profileId}/floodlightActivities/{+id}", "response": { "$ref": "FloodlightActivity" }, @@ -5174,7 +5276,7 @@ }, "insert": { "description": "Inserts a new floodlight activity.", - "flatPath": "userprofiles/{profileId}/floodlightActivities", + "flatPath": "userprofiles/{userprofilesId}/floodlightActivities", "httpMethod": "POST", "id": "dfareporting.floodlightActivities.insert", "parameterOrder": [ @@ -5185,11 +5287,12 @@ "description": "User profile ID associated with this request.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" } }, - "path": "userprofiles/{profileId}/floodlightActivities", + "path": "userprofiles/{+profileId}/floodlightActivities", "request": { "$ref": "FloodlightActivity" }, @@ -5202,7 +5305,7 @@ }, "list": { "description": "Retrieves a list of floodlight activities, possibly filtered. This method supports paging.", - "flatPath": "userprofiles/{profileId}/floodlightActivities", + "flatPath": "userprofiles/{userprofilesId}/floodlightActivities", "httpMethod": "GET", "id": "dfareporting.floodlightActivities.list", "parameterOrder": [ @@ -5263,8 +5366,6 @@ "description": "Maximum number of results to return.", "format": "int32", "location": "query", - "maximum": "1000", - "minimum": "0", "type": "integer" }, "pageToken": { @@ -5276,6 +5377,7 @@ "description": "User profile ID associated with this request.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" }, @@ -5306,8 +5408,8 @@ "DESCENDING" ], "enumDescriptions": [ - "", - "" + "Ascending order.", + "Descending order." ], "location": "query", "type": "string" @@ -5318,7 +5420,7 @@ "type": "string" } }, - "path": "userprofiles/{profileId}/floodlightActivities", + "path": "userprofiles/{+profileId}/floodlightActivities", "response": { "$ref": "FloodlightActivitiesListResponse" }, @@ -5327,8 +5429,8 @@ ] }, "patch": { - "description": "Updates an existing floodlight activity. This method supports patch semantics.", - "flatPath": "userprofiles/{profileId}/floodlightActivities", + "description": "Updates an existing event tag. This method supports patch semantics.", + "flatPath": "userprofiles/{userprofilesId}/floodlightActivities", "httpMethod": "PATCH", "id": "dfareporting.floodlightActivities.patch", "parameterOrder": [ @@ -5337,7 +5439,7 @@ ], "parameters": { "id": { - "description": "FloodlightActivity ID.", + "description": "Required. EventTag ID.", "format": "int64", "location": "query", "required": true, @@ -5347,11 +5449,12 @@ "description": "User profile ID associated with this request.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" } }, - "path": "userprofiles/{profileId}/floodlightActivities", + "path": "userprofiles/{+profileId}/floodlightActivities", "request": { "$ref": "FloodlightActivity" }, @@ -5364,7 +5467,7 @@ }, "update": { "description": "Updates an existing floodlight activity.", - "flatPath": "userprofiles/{profileId}/floodlightActivities", + "flatPath": "userprofiles/{userprofilesId}/floodlightActivities", "httpMethod": "PUT", "id": "dfareporting.floodlightActivities.update", "parameterOrder": [ @@ -5375,11 +5478,12 @@ "description": "User profile ID associated with this request.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" } }, - "path": "userprofiles/{profileId}/floodlightActivities", + "path": "userprofiles/{+profileId}/floodlightActivities", "request": { "$ref": "FloodlightActivity" }, @@ -5396,7 +5500,7 @@ "methods": { "get": { "description": "Gets one floodlight activity group by ID.", - "flatPath": "userprofiles/{profileId}/floodlightActivityGroups/{id}", + "flatPath": "userprofiles/{userprofilesId}/floodlightActivityGroups/{floodlightActivityGroupsId}", "httpMethod": "GET", "id": "dfareporting.floodlightActivityGroups.get", "parameterOrder": [ @@ -5408,6 +5512,7 @@ "description": "Floodlight activity Group ID.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" }, @@ -5415,11 +5520,12 @@ "description": "User profile ID associated with this request.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" } }, - "path": "userprofiles/{profileId}/floodlightActivityGroups/{id}", + "path": "userprofiles/{+profileId}/floodlightActivityGroups/{+id}", "response": { "$ref": "FloodlightActivityGroup" }, @@ -5429,7 +5535,7 @@ }, "insert": { "description": "Inserts a new floodlight activity group.", - "flatPath": "userprofiles/{profileId}/floodlightActivityGroups", + "flatPath": "userprofiles/{userprofilesId}/floodlightActivityGroups", "httpMethod": "POST", "id": "dfareporting.floodlightActivityGroups.insert", "parameterOrder": [ @@ -5440,11 +5546,12 @@ "description": "User profile ID associated with this request.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" } }, - "path": "userprofiles/{profileId}/floodlightActivityGroups", + "path": "userprofiles/{+profileId}/floodlightActivityGroups", "request": { "$ref": "FloodlightActivityGroup" }, @@ -5457,7 +5564,7 @@ }, "list": { "description": "Retrieves a list of floodlight activity groups, possibly filtered. This method supports paging.", - "flatPath": "userprofiles/{profileId}/floodlightActivityGroups", + "flatPath": "userprofiles/{userprofilesId}/floodlightActivityGroups", "httpMethod": "GET", "id": "dfareporting.floodlightActivityGroups.list", "parameterOrder": [ @@ -5488,8 +5595,6 @@ "description": "Maximum number of results to return.", "format": "int32", "location": "query", - "maximum": "1000", - "minimum": "0", "type": "integer" }, "pageToken": { @@ -5501,6 +5606,7 @@ "description": "User profile ID associated with this request.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" }, @@ -5531,8 +5637,8 @@ "DESCENDING" ], "enumDescriptions": [ - "", - "" + "Ascending order.", + "Descending order." ], "location": "query", "type": "string" @@ -5551,7 +5657,7 @@ "type": "string" } }, - "path": "userprofiles/{profileId}/floodlightActivityGroups", + "path": "userprofiles/{+profileId}/floodlightActivityGroups", "response": { "$ref": "FloodlightActivityGroupsListResponse" }, @@ -5560,8 +5666,8 @@ ] }, "patch": { - "description": "Updates an existing floodlight activity group. This method supports patch semantics.", - "flatPath": "userprofiles/{profileId}/floodlightActivityGroups", + "description": "Updates an existing event tag. This method supports patch semantics.", + "flatPath": "userprofiles/{userprofilesId}/floodlightActivityGroups", "httpMethod": "PATCH", "id": "dfareporting.floodlightActivityGroups.patch", "parameterOrder": [ @@ -5570,7 +5676,7 @@ ], "parameters": { "id": { - "description": "FloodlightActivityGroup ID.", + "description": "Required. EventTag ID.", "format": "int64", "location": "query", "required": true, @@ -5580,11 +5686,12 @@ "description": "User profile ID associated with this request.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" } }, - "path": "userprofiles/{profileId}/floodlightActivityGroups", + "path": "userprofiles/{+profileId}/floodlightActivityGroups", "request": { "$ref": "FloodlightActivityGroup" }, @@ -5597,7 +5704,7 @@ }, "update": { "description": "Updates an existing floodlight activity group.", - "flatPath": "userprofiles/{profileId}/floodlightActivityGroups", + "flatPath": "userprofiles/{userprofilesId}/floodlightActivityGroups", "httpMethod": "PUT", "id": "dfareporting.floodlightActivityGroups.update", "parameterOrder": [ @@ -5608,11 +5715,12 @@ "description": "User profile ID associated with this request.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" } }, - "path": "userprofiles/{profileId}/floodlightActivityGroups", + "path": "userprofiles/{+profileId}/floodlightActivityGroups", "request": { "$ref": "FloodlightActivityGroup" }, @@ -5629,7 +5737,7 @@ "methods": { "get": { "description": "Gets one floodlight configuration by ID.", - "flatPath": "userprofiles/{profileId}/floodlightConfigurations/{id}", + "flatPath": "userprofiles/{userprofilesId}/floodlightConfigurations/{floodlightConfigurationsId}", "httpMethod": "GET", "id": "dfareporting.floodlightConfigurations.get", "parameterOrder": [ @@ -5641,6 +5749,7 @@ "description": "Floodlight configuration ID.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" }, @@ -5648,11 +5757,12 @@ "description": "User profile ID associated with this request.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" } }, - "path": "userprofiles/{profileId}/floodlightConfigurations/{id}", + "path": "userprofiles/{+profileId}/floodlightConfigurations/{+id}", "response": { "$ref": "FloodlightConfiguration" }, @@ -5662,7 +5772,7 @@ }, "list": { "description": "Retrieves a list of floodlight configurations, possibly filtered.", - "flatPath": "userprofiles/{profileId}/floodlightConfigurations", + "flatPath": "userprofiles/{userprofilesId}/floodlightConfigurations", "httpMethod": "GET", "id": "dfareporting.floodlightConfigurations.list", "parameterOrder": [ @@ -5680,11 +5790,12 @@ "description": "User profile ID associated with this request.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" } }, - "path": "userprofiles/{profileId}/floodlightConfigurations", + "path": "userprofiles/{+profileId}/floodlightConfigurations", "response": { "$ref": "FloodlightConfigurationsListResponse" }, @@ -5693,8 +5804,8 @@ ] }, "patch": { - "description": "Updates an existing floodlight configuration. This method supports patch semantics.", - "flatPath": "userprofiles/{profileId}/floodlightConfigurations", + "description": "Updates an existing event tag. This method supports patch semantics.", + "flatPath": "userprofiles/{userprofilesId}/floodlightConfigurations", "httpMethod": "PATCH", "id": "dfareporting.floodlightConfigurations.patch", "parameterOrder": [ @@ -5703,7 +5814,7 @@ ], "parameters": { "id": { - "description": "FloodlightConfiguration ID.", + "description": "Required. EventTag ID.", "format": "int64", "location": "query", "required": true, @@ -5713,11 +5824,12 @@ "description": "User profile ID associated with this request.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" } }, - "path": "userprofiles/{profileId}/floodlightConfigurations", + "path": "userprofiles/{+profileId}/floodlightConfigurations", "request": { "$ref": "FloodlightConfiguration" }, @@ -5730,7 +5842,7 @@ }, "update": { "description": "Updates an existing floodlight configuration.", - "flatPath": "userprofiles/{profileId}/floodlightConfigurations", + "flatPath": "userprofiles/{userprofilesId}/floodlightConfigurations", "httpMethod": "PUT", "id": "dfareporting.floodlightConfigurations.update", "parameterOrder": [ @@ -5741,11 +5853,12 @@ "description": "User profile ID associated with this request.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" } }, - "path": "userprofiles/{profileId}/floodlightConfigurations", + "path": "userprofiles/{+profileId}/floodlightConfigurations", "request": { "$ref": "FloodlightConfiguration" }, @@ -5762,7 +5875,7 @@ "methods": { "get": { "description": "Gets one inventory item by ID.", - "flatPath": "userprofiles/{profileId}/projects/{projectId}/inventoryItems/{id}", + "flatPath": "userprofiles/{userprofilesId}/projects/{projectId}/inventoryItems/{inventoryItemsId}", "httpMethod": "GET", "id": "dfareporting.inventoryItems.get", "parameterOrder": [ @@ -5775,6 +5888,7 @@ "description": "Inventory item ID.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" }, @@ -5782,6 +5896,7 @@ "description": "User profile ID associated with this request.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" }, @@ -5793,7 +5908,7 @@ "type": "string" } }, - "path": "userprofiles/{profileId}/projects/{projectId}/inventoryItems/{id}", + "path": "userprofiles/{+profileId}/projects/{projectId}/inventoryItems/{+id}", "response": { "$ref": "InventoryItem" }, @@ -5803,7 +5918,7 @@ }, "list": { "description": "Retrieves a list of inventory items, possibly filtered. This method supports paging.", - "flatPath": "userprofiles/{profileId}/projects/{projectId}/inventoryItems", + "flatPath": "userprofiles/{userprofilesId}/projects/{projectId}/inventoryItems", "httpMethod": "GET", "id": "dfareporting.inventoryItems.list", "parameterOrder": [ @@ -5828,8 +5943,6 @@ "description": "Maximum number of results to return.", "format": "int32", "location": "query", - "maximum": "1000", - "minimum": "0", "type": "integer" }, "orderId": { @@ -5848,6 +5961,7 @@ "description": "User profile ID associated with this request.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" }, @@ -5887,8 +6001,8 @@ "DESCENDING" ], "enumDescriptions": [ - "", - "" + "Ascending order.", + "Descending order." ], "location": "query", "type": "string" @@ -5907,7 +6021,7 @@ "type": "string" } }, - "path": "userprofiles/{profileId}/projects/{projectId}/inventoryItems", + "path": "userprofiles/{+profileId}/projects/{projectId}/inventoryItems", "response": { "$ref": "InventoryItemsListResponse" }, @@ -5921,7 +6035,7 @@ "methods": { "list": { "description": "Retrieves a list of languages.", - "flatPath": "userprofiles/{profileId}/languages", + "flatPath": "userprofiles/{userprofilesId}/languages", "httpMethod": "GET", "id": "dfareporting.languages.list", "parameterOrder": [ @@ -5932,11 +6046,12 @@ "description": "User profile ID associated with this request.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" } }, - "path": "userprofiles/{profileId}/languages", + "path": "userprofiles/{+profileId}/languages", "response": { "$ref": "LanguagesListResponse" }, @@ -5950,7 +6065,7 @@ "methods": { "list": { "description": "Retrieves a list of metros.", - "flatPath": "userprofiles/{profileId}/metros", + "flatPath": "userprofiles/{userprofilesId}/metros", "httpMethod": "GET", "id": "dfareporting.metros.list", "parameterOrder": [ @@ -5961,11 +6076,12 @@ "description": "User profile ID associated with this request.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" } }, - "path": "userprofiles/{profileId}/metros", + "path": "userprofiles/{+profileId}/metros", "response": { "$ref": "MetrosListResponse" }, @@ -5979,7 +6095,7 @@ "methods": { "get": { "description": "Gets one mobile app by ID.", - "flatPath": "userprofiles/{profileId}/mobileApps/{id}", + "flatPath": "userprofiles/{userprofilesId}/mobileApps/{mobileAppsId}", "httpMethod": "GET", "id": "dfareporting.mobileApps.get", "parameterOrder": [ @@ -5990,6 +6106,7 @@ "id": { "description": "Mobile app ID.", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" }, @@ -5997,11 +6114,12 @@ "description": "User profile ID associated with this request.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" } }, - "path": "userprofiles/{profileId}/mobileApps/{id}", + "path": "userprofiles/{+profileId}/mobileApps/{+id}", "response": { "$ref": "MobileApp" }, @@ -6011,7 +6129,7 @@ }, "list": { "description": "Retrieves list of available mobile apps.", - "flatPath": "userprofiles/{profileId}/mobileApps", + "flatPath": "userprofiles/{userprofilesId}/mobileApps", "httpMethod": "GET", "id": "dfareporting.mobileApps.list", "parameterOrder": [ @@ -6061,8 +6179,6 @@ "description": "Maximum number of results to return.", "format": "int32", "location": "query", - "maximum": "1000", - "minimum": "0", "type": "integer" }, "pageToken": { @@ -6074,6 +6190,7 @@ "description": "User profile ID associated with this request.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" }, @@ -6083,7 +6200,7 @@ "type": "string" } }, - "path": "userprofiles/{profileId}/mobileApps", + "path": "userprofiles/{+profileId}/mobileApps", "response": { "$ref": "MobileAppsListResponse" }, @@ -6097,7 +6214,7 @@ "methods": { "get": { "description": "Gets one mobile carrier by ID.", - "flatPath": "userprofiles/{profileId}/mobileCarriers/{id}", + "flatPath": "userprofiles/{userprofilesId}/mobileCarriers/{mobileCarriersId}", "httpMethod": "GET", "id": "dfareporting.mobileCarriers.get", "parameterOrder": [ @@ -6109,6 +6226,7 @@ "description": "Mobile carrier ID.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" }, @@ -6116,11 +6234,12 @@ "description": "User profile ID associated with this request.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" } }, - "path": "userprofiles/{profileId}/mobileCarriers/{id}", + "path": "userprofiles/{+profileId}/mobileCarriers/{+id}", "response": { "$ref": "MobileCarrier" }, @@ -6130,7 +6249,7 @@ }, "list": { "description": "Retrieves a list of mobile carriers.", - "flatPath": "userprofiles/{profileId}/mobileCarriers", + "flatPath": "userprofiles/{userprofilesId}/mobileCarriers", "httpMethod": "GET", "id": "dfareporting.mobileCarriers.list", "parameterOrder": [ @@ -6141,11 +6260,12 @@ "description": "User profile ID associated with this request.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" } }, - "path": "userprofiles/{profileId}/mobileCarriers", + "path": "userprofiles/{+profileId}/mobileCarriers", "response": { "$ref": "MobileCarriersListResponse" }, @@ -6159,7 +6279,7 @@ "methods": { "get": { "description": "Gets one operating system version by ID.", - "flatPath": "userprofiles/{profileId}/operatingSystemVersions/{id}", + "flatPath": "userprofiles/{userprofilesId}/operatingSystemVersions/{operatingSystemVersionsId}", "httpMethod": "GET", "id": "dfareporting.operatingSystemVersions.get", "parameterOrder": [ @@ -6171,6 +6291,7 @@ "description": "Operating system version ID.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" }, @@ -6178,11 +6299,12 @@ "description": "User profile ID associated with this request.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" } }, - "path": "userprofiles/{profileId}/operatingSystemVersions/{id}", + "path": "userprofiles/{+profileId}/operatingSystemVersions/{+id}", "response": { "$ref": "OperatingSystemVersion" }, @@ -6192,7 +6314,7 @@ }, "list": { "description": "Retrieves a list of operating system versions.", - "flatPath": "userprofiles/{profileId}/operatingSystemVersions", + "flatPath": "userprofiles/{userprofilesId}/operatingSystemVersions", "httpMethod": "GET", "id": "dfareporting.operatingSystemVersions.list", "parameterOrder": [ @@ -6203,11 +6325,12 @@ "description": "User profile ID associated with this request.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" } }, - "path": "userprofiles/{profileId}/operatingSystemVersions", + "path": "userprofiles/{+profileId}/operatingSystemVersions", "response": { "$ref": "OperatingSystemVersionsListResponse" }, @@ -6221,7 +6344,7 @@ "methods": { "get": { "description": "Gets one operating system by DART ID.", - "flatPath": "userprofiles/{profileId}/operatingSystems/{dartId}", + "flatPath": "userprofiles/{userprofilesId}/operatingSystems/{operatingSystemsId}", "httpMethod": "GET", "id": "dfareporting.operatingSystems.get", "parameterOrder": [ @@ -6233,6 +6356,7 @@ "description": "Operating system DART ID.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" }, @@ -6240,11 +6364,12 @@ "description": "User profile ID associated with this request.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" } }, - "path": "userprofiles/{profileId}/operatingSystems/{dartId}", + "path": "userprofiles/{+profileId}/operatingSystems/{+dartId}", "response": { "$ref": "OperatingSystem" }, @@ -6254,7 +6379,7 @@ }, "list": { "description": "Retrieves a list of operating systems.", - "flatPath": "userprofiles/{profileId}/operatingSystems", + "flatPath": "userprofiles/{userprofilesId}/operatingSystems", "httpMethod": "GET", "id": "dfareporting.operatingSystems.list", "parameterOrder": [ @@ -6265,11 +6390,12 @@ "description": "User profile ID associated with this request.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" } }, - "path": "userprofiles/{profileId}/operatingSystems", + "path": "userprofiles/{+profileId}/operatingSystems", "response": { "$ref": "OperatingSystemsListResponse" }, @@ -6279,162 +6405,11 @@ } } }, - "orderDocuments": { - "methods": { - "get": { - "description": "Gets one order document by ID.", - "flatPath": "userprofiles/{profileId}/projects/{projectId}/orderDocuments/{id}", - "httpMethod": "GET", - "id": "dfareporting.orderDocuments.get", - "parameterOrder": [ - "profileId", - "projectId", - "id" - ], - "parameters": { - "id": { - "description": "Order document ID.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - }, - "profileId": { - "description": "User profile ID associated with this request.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - }, - "projectId": { - "description": "Project ID for order documents.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - } - }, - "path": "userprofiles/{profileId}/projects/{projectId}/orderDocuments/{id}", - "response": { - "$ref": "OrderDocument" - }, - "scopes": [ - "https://www.googleapis.com/auth/dfatrafficking" - ] - }, - "list": { - "description": "Retrieves a list of order documents, possibly filtered. This method supports paging.", - "flatPath": "userprofiles/{profileId}/projects/{projectId}/orderDocuments", - "httpMethod": "GET", - "id": "dfareporting.orderDocuments.list", - "parameterOrder": [ - "profileId", - "projectId" - ], - "parameters": { - "approved": { - "description": "Select only order documents that have been approved by at least one user.", - "location": "query", - "type": "boolean" - }, - "ids": { - "description": "Select only order documents with these IDs.", - "format": "int64", - "location": "query", - "repeated": true, - "type": "string" - }, - "maxResults": { - "default": "1000", - "description": "Maximum number of results to return.", - "format": "int32", - "location": "query", - "maximum": "1000", - "minimum": "0", - "type": "integer" - }, - "orderId": { - "description": "Select only order documents for specified orders.", - "format": "int64", - "location": "query", - "repeated": true, - "type": "string" - }, - "pageToken": { - "description": "Value of the nextPageToken from the previous result page.", - "location": "query", - "type": "string" - }, - "profileId": { - "description": "User profile ID associated with this request.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - }, - "projectId": { - "description": "Project ID for order documents.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - }, - "searchString": { - "description": "Allows searching for order documents by name or ID. Wildcards (*) are allowed. For example, \"orderdocument*2015\" will return order documents with names like \"orderdocument June 2015\", \"orderdocument April 2015\", or simply \"orderdocument 2015\". Most of the searches also add wildcards implicitly at the start and the end of the search string. For example, a search string of \"orderdocument\" will match order documents with name \"my orderdocument\", \"orderdocument 2015\", or simply \"orderdocument\".", - "location": "query", - "type": "string" - }, - "siteId": { - "description": "Select only order documents that are associated with these sites.", - "format": "int64", - "location": "query", - "repeated": true, - "type": "string" - }, - "sortField": { - "default": "ID", - "description": "Field by which to sort the list.", - "enum": [ - "ID", - "NAME" - ], - "enumDescriptions": [ - "", - "" - ], - "location": "query", - "type": "string" - }, - "sortOrder": { - "default": "ASCENDING", - "description": "Order of sorted results.", - "enum": [ - "ASCENDING", - "DESCENDING" - ], - "enumDescriptions": [ - "", - "" - ], - "location": "query", - "type": "string" - } - }, - "path": "userprofiles/{profileId}/projects/{projectId}/orderDocuments", - "response": { - "$ref": "OrderDocumentsListResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/dfatrafficking" - ] - } - } - }, "orders": { "methods": { "get": { "description": "Gets one order by ID.", - "flatPath": "userprofiles/{profileId}/projects/{projectId}/orders/{id}", + "flatPath": "userprofiles/{userprofilesId}/projects/{projectId}/orders/{ordersId}", "httpMethod": "GET", "id": "dfareporting.orders.get", "parameterOrder": [ @@ -6447,6 +6422,7 @@ "description": "Order ID.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" }, @@ -6454,6 +6430,7 @@ "description": "User profile ID associated with this request.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" }, @@ -6465,7 +6442,7 @@ "type": "string" } }, - "path": "userprofiles/{profileId}/projects/{projectId}/orders/{id}", + "path": "userprofiles/{+profileId}/projects/{projectId}/orders/{+id}", "response": { "$ref": "Order" }, @@ -6475,7 +6452,7 @@ }, "list": { "description": "Retrieves a list of orders, possibly filtered. This method supports paging.", - "flatPath": "userprofiles/{profileId}/projects/{projectId}/orders", + "flatPath": "userprofiles/{userprofilesId}/projects/{projectId}/orders", "httpMethod": "GET", "id": "dfareporting.orders.list", "parameterOrder": [ @@ -6495,8 +6472,6 @@ "description": "Maximum number of results to return.", "format": "int32", "location": "query", - "maximum": "1000", - "minimum": "0", "type": "integer" }, "pageToken": { @@ -6508,6 +6483,7 @@ "description": "User profile ID associated with this request.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" }, @@ -6552,14 +6528,14 @@ "DESCENDING" ], "enumDescriptions": [ - "", - "" + "Ascending order.", + "Descending order." ], "location": "query", "type": "string" } }, - "path": "userprofiles/{profileId}/projects/{projectId}/orders", + "path": "userprofiles/{+profileId}/projects/{projectId}/orders", "response": { "$ref": "OrdersListResponse" }, @@ -6573,7 +6549,7 @@ "methods": { "get": { "description": "Gets one placement group by ID.", - "flatPath": "userprofiles/{profileId}/placementGroups/{id}", + "flatPath": "userprofiles/{userprofilesId}/placementGroups/{placementGroupsId}", "httpMethod": "GET", "id": "dfareporting.placementGroups.get", "parameterOrder": [ @@ -6585,6 +6561,7 @@ "description": "Placement group ID.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" }, @@ -6592,11 +6569,12 @@ "description": "User profile ID associated with this request.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" } }, - "path": "userprofiles/{profileId}/placementGroups/{id}", + "path": "userprofiles/{+profileId}/placementGroups/{+id}", "response": { "$ref": "PlacementGroup" }, @@ -6606,7 +6584,7 @@ }, "insert": { "description": "Inserts a new placement group.", - "flatPath": "userprofiles/{profileId}/placementGroups", + "flatPath": "userprofiles/{userprofilesId}/placementGroups", "httpMethod": "POST", "id": "dfareporting.placementGroups.insert", "parameterOrder": [ @@ -6617,11 +6595,12 @@ "description": "User profile ID associated with this request.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" } }, - "path": "userprofiles/{profileId}/placementGroups", + "path": "userprofiles/{+profileId}/placementGroups", "request": { "$ref": "PlacementGroup" }, @@ -6634,7 +6613,7 @@ }, "list": { "description": "Retrieves a list of placement groups, possibly filtered. This method supports paging.", - "flatPath": "userprofiles/{profileId}/placementGroups", + "flatPath": "userprofiles/{userprofilesId}/placementGroups", "httpMethod": "GET", "id": "dfareporting.placementGroups.list", "parameterOrder": [ @@ -6706,8 +6685,6 @@ "description": "Maximum number of results to return.", "format": "int32", "location": "query", - "maximum": "800", - "minimum": "0", "type": "integer" }, "maxStartDate": { @@ -6737,8 +6714,8 @@ "PLACEMENT_ROADBLOCK" ], "enumDescriptions": [ - "", - "" + "A simple group of site-placements (tags). Basically acts as a single pricing point for a group of tags.", + "A group of site-placements (tags) that not only acts as a single pricing point but also assumes that all the tags in it will be served at the same time. This kind of group requires one of its assigned site-placements to be marked as primary for reporting purposes." ], "location": "query", "type": "string" @@ -6776,6 +6753,7 @@ "description": "User profile ID associated with this request.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" }, @@ -6813,14 +6791,14 @@ "DESCENDING" ], "enumDescriptions": [ - "", - "" + "Ascending order.", + "Descending order." ], "location": "query", "type": "string" } }, - "path": "userprofiles/{profileId}/placementGroups", + "path": "userprofiles/{+profileId}/placementGroups", "response": { "$ref": "PlacementGroupsListResponse" }, @@ -6830,7 +6808,7 @@ }, "patch": { "description": "Updates an existing placement group. This method supports patch semantics.", - "flatPath": "userprofiles/{profileId}/placementGroups", + "flatPath": "userprofiles/{userprofilesId}/placementGroups", "httpMethod": "PATCH", "id": "dfareporting.placementGroups.patch", "parameterOrder": [ @@ -6839,7 +6817,7 @@ ], "parameters": { "id": { - "description": "PlacementGroup ID.", + "description": "Required. Placement ID.", "format": "int64", "location": "query", "required": true, @@ -6849,11 +6827,12 @@ "description": "User profile ID associated with this request.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" } }, - "path": "userprofiles/{profileId}/placementGroups", + "path": "userprofiles/{+profileId}/placementGroups", "request": { "$ref": "PlacementGroup" }, @@ -6866,7 +6845,7 @@ }, "update": { "description": "Updates an existing placement group.", - "flatPath": "userprofiles/{profileId}/placementGroups", + "flatPath": "userprofiles/{userprofilesId}/placementGroups", "httpMethod": "PUT", "id": "dfareporting.placementGroups.update", "parameterOrder": [ @@ -6877,11 +6856,12 @@ "description": "User profile ID associated with this request.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" } }, - "path": "userprofiles/{profileId}/placementGroups", + "path": "userprofiles/{+profileId}/placementGroups", "request": { "$ref": "PlacementGroup" }, @@ -6898,7 +6878,7 @@ "methods": { "delete": { "description": "Deletes an existing placement strategy.", - "flatPath": "userprofiles/{profileId}/placementStrategies/{id}", + "flatPath": "userprofiles/{userprofilesId}/placementStrategies/{placementStrategiesId}", "httpMethod": "DELETE", "id": "dfareporting.placementStrategies.delete", "parameterOrder": [ @@ -6910,6 +6890,7 @@ "description": "Placement strategy ID.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" }, @@ -6917,18 +6898,19 @@ "description": "User profile ID associated with this request.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" } }, - "path": "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": "userprofiles/{profileId}/placementStrategies/{id}", + "flatPath": "userprofiles/{userprofilesId}/placementStrategies/{placementStrategiesId}", "httpMethod": "GET", "id": "dfareporting.placementStrategies.get", "parameterOrder": [ @@ -6940,6 +6922,7 @@ "description": "Placement strategy ID.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" }, @@ -6947,11 +6930,12 @@ "description": "User profile ID associated with this request.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" } }, - "path": "userprofiles/{profileId}/placementStrategies/{id}", + "path": "userprofiles/{+profileId}/placementStrategies/{+id}", "response": { "$ref": "PlacementStrategy" }, @@ -6961,7 +6945,7 @@ }, "insert": { "description": "Inserts a new placement strategy.", - "flatPath": "userprofiles/{profileId}/placementStrategies", + "flatPath": "userprofiles/{userprofilesId}/placementStrategies", "httpMethod": "POST", "id": "dfareporting.placementStrategies.insert", "parameterOrder": [ @@ -6972,11 +6956,12 @@ "description": "User profile ID associated with this request.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" } }, - "path": "userprofiles/{profileId}/placementStrategies", + "path": "userprofiles/{+profileId}/placementStrategies", "request": { "$ref": "PlacementStrategy" }, @@ -6989,7 +6974,7 @@ }, "list": { "description": "Retrieves a list of placement strategies, possibly filtered. This method supports paging.", - "flatPath": "userprofiles/{profileId}/placementStrategies", + "flatPath": "userprofiles/{userprofilesId}/placementStrategies", "httpMethod": "GET", "id": "dfareporting.placementStrategies.list", "parameterOrder": [ @@ -7008,8 +6993,6 @@ "description": "Maximum number of results to return.", "format": "int32", "location": "query", - "maximum": "1000", - "minimum": "0", "type": "integer" }, "pageToken": { @@ -7021,6 +7004,7 @@ "description": "User profile ID associated with this request.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" }, @@ -7051,14 +7035,14 @@ "DESCENDING" ], "enumDescriptions": [ - "", - "" + "Ascending order.", + "Descending order." ], "location": "query", "type": "string" } }, - "path": "userprofiles/{profileId}/placementStrategies", + "path": "userprofiles/{+profileId}/placementStrategies", "response": { "$ref": "PlacementStrategiesListResponse" }, @@ -7068,7 +7052,7 @@ }, "patch": { "description": "Updates an existing placement strategy. This method supports patch semantics.", - "flatPath": "userprofiles/{profileId}/placementStrategies", + "flatPath": "userprofiles/{userprofilesId}/placementStrategies", "httpMethod": "PATCH", "id": "dfareporting.placementStrategies.patch", "parameterOrder": [ @@ -7077,7 +7061,7 @@ ], "parameters": { "id": { - "description": "PlacementStrategy ID.", + "description": "Required. PlacementStrategy ID.", "format": "int64", "location": "query", "required": true, @@ -7087,11 +7071,12 @@ "description": "User profile ID associated with this request.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" } }, - "path": "userprofiles/{profileId}/placementStrategies", + "path": "userprofiles/{+profileId}/placementStrategies", "request": { "$ref": "PlacementStrategy" }, @@ -7104,7 +7089,7 @@ }, "update": { "description": "Updates an existing placement strategy.", - "flatPath": "userprofiles/{profileId}/placementStrategies", + "flatPath": "userprofiles/{userprofilesId}/placementStrategies", "httpMethod": "PUT", "id": "dfareporting.placementStrategies.update", "parameterOrder": [ @@ -7115,11 +7100,12 @@ "description": "User profile ID associated with this request.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" } }, - "path": "userprofiles/{profileId}/placementStrategies", + "path": "userprofiles/{+profileId}/placementStrategies", "request": { "$ref": "PlacementStrategy" }, @@ -7136,7 +7122,7 @@ "methods": { "generatetags": { "description": "Generates tags for a placement.", - "flatPath": "userprofiles/{profileId}/placements/generatetags", + "flatPath": "userprofiles/{userprofilesId}/placements/generatetags", "httpMethod": "POST", "id": "dfareporting.placements.generatetags", "parameterOrder": [ @@ -7160,6 +7146,7 @@ "description": "User profile ID associated with this request.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" }, @@ -7214,7 +7201,7 @@ "type": "string" } }, - "path": "userprofiles/{profileId}/placements/generatetags", + "path": "userprofiles/{+profileId}/placements/generatetags", "response": { "$ref": "PlacementsGenerateTagsResponse" }, @@ -7224,7 +7211,7 @@ }, "get": { "description": "Gets one placement by ID.", - "flatPath": "userprofiles/{profileId}/placements/{id}", + "flatPath": "userprofiles/{userprofilesId}/placements/{placementsId}", "httpMethod": "GET", "id": "dfareporting.placements.get", "parameterOrder": [ @@ -7236,6 +7223,7 @@ "description": "Placement ID.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" }, @@ -7243,11 +7231,12 @@ "description": "User profile ID associated with this request.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" } }, - "path": "userprofiles/{profileId}/placements/{id}", + "path": "userprofiles/{+profileId}/placements/{+id}", "response": { "$ref": "Placement" }, @@ -7257,7 +7246,7 @@ }, "insert": { "description": "Inserts a new placement.", - "flatPath": "userprofiles/{profileId}/placements", + "flatPath": "userprofiles/{userprofilesId}/placements", "httpMethod": "POST", "id": "dfareporting.placements.insert", "parameterOrder": [ @@ -7268,11 +7257,12 @@ "description": "User profile ID associated with this request.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" } }, - "path": "userprofiles/{profileId}/placements", + "path": "userprofiles/{+profileId}/placements", "request": { "$ref": "Placement" }, @@ -7285,7 +7275,7 @@ }, "list": { "description": "Retrieves a list of placements, possibly filtered. This method supports paging.", - "flatPath": "userprofiles/{profileId}/placements", + "flatPath": "userprofiles/{userprofilesId}/placements", "httpMethod": "GET", "id": "dfareporting.placements.list", "parameterOrder": [ @@ -7339,8 +7329,8 @@ "enumDescriptions": [ "", "", - "", - "", + "Deprecated enum value. No longer supported.", + "Deprecated enum value. No longer supported.", "", "" ], @@ -7386,8 +7376,6 @@ "description": "Maximum number of results to return.", "format": "int32", "location": "query", - "maximum": "1000", - "minimum": "0", "type": "integer" }, "maxStartDate": { @@ -7456,6 +7444,7 @@ "description": "User profile ID associated with this request.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" }, @@ -7500,14 +7489,14 @@ "DESCENDING" ], "enumDescriptions": [ - "", - "" + "Ascending order.", + "Descending order." ], "location": "query", "type": "string" } }, - "path": "userprofiles/{profileId}/placements", + "path": "userprofiles/{+profileId}/placements", "response": { "$ref": "PlacementsListResponse" }, @@ -7517,7 +7506,7 @@ }, "patch": { "description": "Updates an existing placement. This method supports patch semantics.", - "flatPath": "userprofiles/{profileId}/placements", + "flatPath": "userprofiles/{userprofilesId}/placements", "httpMethod": "PATCH", "id": "dfareporting.placements.patch", "parameterOrder": [ @@ -7526,7 +7515,7 @@ ], "parameters": { "id": { - "description": "Placement ID.", + "description": "Required. Placement ID.", "format": "int64", "location": "query", "required": true, @@ -7536,11 +7525,12 @@ "description": "User profile ID associated with this request.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" } }, - "path": "userprofiles/{profileId}/placements", + "path": "userprofiles/{+profileId}/placements", "request": { "$ref": "Placement" }, @@ -7553,7 +7543,7 @@ }, "update": { "description": "Updates an existing placement.", - "flatPath": "userprofiles/{profileId}/placements", + "flatPath": "userprofiles/{userprofilesId}/placements", "httpMethod": "PUT", "id": "dfareporting.placements.update", "parameterOrder": [ @@ -7564,11 +7554,12 @@ "description": "User profile ID associated with this request.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" } }, - "path": "userprofiles/{profileId}/placements", + "path": "userprofiles/{+profileId}/placements", "request": { "$ref": "Placement" }, @@ -7585,7 +7576,7 @@ "methods": { "get": { "description": "Gets one platform type by ID.", - "flatPath": "userprofiles/{profileId}/platformTypes/{id}", + "flatPath": "userprofiles/{userprofilesId}/platformTypes/{platformTypesId}", "httpMethod": "GET", "id": "dfareporting.platformTypes.get", "parameterOrder": [ @@ -7597,6 +7588,7 @@ "description": "Platform type ID.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" }, @@ -7604,11 +7596,12 @@ "description": "User profile ID associated with this request.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" } }, - "path": "userprofiles/{profileId}/platformTypes/{id}", + "path": "userprofiles/{+profileId}/platformTypes/{+id}", "response": { "$ref": "PlatformType" }, @@ -7618,7 +7611,7 @@ }, "list": { "description": "Retrieves a list of platform types.", - "flatPath": "userprofiles/{profileId}/platformTypes", + "flatPath": "userprofiles/{userprofilesId}/platformTypes", "httpMethod": "GET", "id": "dfareporting.platformTypes.list", "parameterOrder": [ @@ -7629,11 +7622,12 @@ "description": "User profile ID associated with this request.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" } }, - "path": "userprofiles/{profileId}/platformTypes", + "path": "userprofiles/{+profileId}/platformTypes", "response": { "$ref": "PlatformTypesListResponse" }, @@ -7647,7 +7641,7 @@ "methods": { "get": { "description": "Gets one postal code by ID.", - "flatPath": "userprofiles/{profileId}/postalCodes/{code}", + "flatPath": "userprofiles/{userprofilesId}/postalCodes/{postalCodesId}", "httpMethod": "GET", "id": "dfareporting.postalCodes.get", "parameterOrder": [ @@ -7658,6 +7652,7 @@ "code": { "description": "Postal code ID.", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" }, @@ -7665,11 +7660,12 @@ "description": "User profile ID associated with this request.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" } }, - "path": "userprofiles/{profileId}/postalCodes/{code}", + "path": "userprofiles/{+profileId}/postalCodes/{+code}", "response": { "$ref": "PostalCode" }, @@ -7679,7 +7675,7 @@ }, "list": { "description": "Retrieves a list of postal codes.", - "flatPath": "userprofiles/{profileId}/postalCodes", + "flatPath": "userprofiles/{userprofilesId}/postalCodes", "httpMethod": "GET", "id": "dfareporting.postalCodes.list", "parameterOrder": [ @@ -7690,11 +7686,12 @@ "description": "User profile ID associated with this request.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" } }, - "path": "userprofiles/{profileId}/postalCodes", + "path": "userprofiles/{+profileId}/postalCodes", "response": { "$ref": "PostalCodesListResponse" }, @@ -7708,7 +7705,7 @@ "methods": { "get": { "description": "Gets one project by ID.", - "flatPath": "userprofiles/{profileId}/projects/{id}", + "flatPath": "userprofiles/{userprofilesId}/projects/{projectsId}", "httpMethod": "GET", "id": "dfareporting.projects.get", "parameterOrder": [ @@ -7720,6 +7717,7 @@ "description": "Project ID.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" }, @@ -7727,11 +7725,12 @@ "description": "User profile ID associated with this request.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" } }, - "path": "userprofiles/{profileId}/projects/{id}", + "path": "userprofiles/{+profileId}/projects/{+id}", "response": { "$ref": "Project" }, @@ -7741,7 +7740,7 @@ }, "list": { "description": "Retrieves a list of projects, possibly filtered. This method supports paging .", - "flatPath": "userprofiles/{profileId}/projects", + "flatPath": "userprofiles/{userprofilesId}/projects", "httpMethod": "GET", "id": "dfareporting.projects.list", "parameterOrder": [ @@ -7767,8 +7766,6 @@ "description": "Maximum number of results to return.", "format": "int32", "location": "query", - "maximum": "1000", - "minimum": "0", "type": "integer" }, "pageToken": { @@ -7780,6 +7777,7 @@ "description": "User profile ID associated with this request.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" }, @@ -7810,14 +7808,14 @@ "DESCENDING" ], "enumDescriptions": [ - "", - "" + "Ascending order.", + "Descending order." ], "location": "query", "type": "string" } }, - "path": "userprofiles/{profileId}/projects", + "path": "userprofiles/{+profileId}/projects", "response": { "$ref": "ProjectsListResponse" }, @@ -7831,7 +7829,7 @@ "methods": { "list": { "description": "Retrieves a list of regions.", - "flatPath": "userprofiles/{profileId}/regions", + "flatPath": "userprofiles/{userprofilesId}/regions", "httpMethod": "GET", "id": "dfareporting.regions.list", "parameterOrder": [ @@ -7842,11 +7840,12 @@ "description": "User profile ID associated with this request.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" } }, - "path": "userprofiles/{profileId}/regions", + "path": "userprofiles/{+profileId}/regions", "response": { "$ref": "RegionsListResponse" }, @@ -7860,7 +7859,7 @@ "methods": { "get": { "description": "Gets one remarketing list share by remarketing list ID.", - "flatPath": "userprofiles/{profileId}/remarketingListShares/{remarketingListId}", + "flatPath": "userprofiles/{userprofilesId}/remarketingListShares/{remarketingListSharesId}", "httpMethod": "GET", "id": "dfareporting.remarketingListShares.get", "parameterOrder": [ @@ -7872,6 +7871,7 @@ "description": "User profile ID associated with this request.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" }, @@ -7879,11 +7879,12 @@ "description": "Remarketing list ID.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" } }, - "path": "userprofiles/{profileId}/remarketingListShares/{remarketingListId}", + "path": "userprofiles/{+profileId}/remarketingListShares/{+remarketingListId}", "response": { "$ref": "RemarketingListShare" }, @@ -7892,8 +7893,8 @@ ] }, "patch": { - "description": "Updates an existing remarketing list share. This method supports patch semantics.", - "flatPath": "userprofiles/{profileId}/remarketingListShares", + "description": "Updates an existing RemarketingListShare. This method supports patch semantics.", + "flatPath": "userprofiles/{userprofilesId}/remarketingListShares", "httpMethod": "PATCH", "id": "dfareporting.remarketingListShares.patch", "parameterOrder": [ @@ -7902,7 +7903,7 @@ ], "parameters": { "id": { - "description": "RemarketingList ID.", + "description": "Required. RemarketingList ID.", "format": "int64", "location": "query", "required": true, @@ -7912,11 +7913,12 @@ "description": "User profile ID associated with this request.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" } }, - "path": "userprofiles/{profileId}/remarketingListShares", + "path": "userprofiles/{+profileId}/remarketingListShares", "request": { "$ref": "RemarketingListShare" }, @@ -7929,7 +7931,7 @@ }, "update": { "description": "Updates an existing remarketing list share.", - "flatPath": "userprofiles/{profileId}/remarketingListShares", + "flatPath": "userprofiles/{userprofilesId}/remarketingListShares", "httpMethod": "PUT", "id": "dfareporting.remarketingListShares.update", "parameterOrder": [ @@ -7940,11 +7942,12 @@ "description": "User profile ID associated with this request.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" } }, - "path": "userprofiles/{profileId}/remarketingListShares", + "path": "userprofiles/{+profileId}/remarketingListShares", "request": { "$ref": "RemarketingListShare" }, @@ -7961,7 +7964,7 @@ "methods": { "get": { "description": "Gets one remarketing list by ID.", - "flatPath": "userprofiles/{profileId}/remarketingLists/{id}", + "flatPath": "userprofiles/{userprofilesId}/remarketingLists/{remarketingListsId}", "httpMethod": "GET", "id": "dfareporting.remarketingLists.get", "parameterOrder": [ @@ -7973,6 +7976,7 @@ "description": "Remarketing list ID.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" }, @@ -7980,11 +7984,12 @@ "description": "User profile ID associated with this request.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" } }, - "path": "userprofiles/{profileId}/remarketingLists/{id}", + "path": "userprofiles/{+profileId}/remarketingLists/{+id}", "response": { "$ref": "RemarketingList" }, @@ -7994,7 +7999,7 @@ }, "insert": { "description": "Inserts a new remarketing list.", - "flatPath": "userprofiles/{profileId}/remarketingLists", + "flatPath": "userprofiles/{userprofilesId}/remarketingLists", "httpMethod": "POST", "id": "dfareporting.remarketingLists.insert", "parameterOrder": [ @@ -8005,11 +8010,12 @@ "description": "User profile ID associated with this request.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" } }, - "path": "userprofiles/{profileId}/remarketingLists", + "path": "userprofiles/{+profileId}/remarketingLists", "request": { "$ref": "RemarketingList" }, @@ -8022,7 +8028,7 @@ }, "list": { "description": "Retrieves a list of remarketing lists, possibly filtered. This method supports paging.", - "flatPath": "userprofiles/{profileId}/remarketingLists", + "flatPath": "userprofiles/{userprofilesId}/remarketingLists", "httpMethod": "GET", "id": "dfareporting.remarketingLists.list", "parameterOrder": [ @@ -8036,7 +8042,7 @@ "type": "boolean" }, "advertiserId": { - "description": "Select only remarketing lists owned by this advertiser.", + "description": "Required. Select only remarketing lists owned by this advertiser.", "format": "int64", "location": "query", "required": true, @@ -8053,8 +8059,6 @@ "description": "Maximum number of results to return.", "format": "int32", "location": "query", - "maximum": "1000", - "minimum": "0", "type": "integer" }, "name": { @@ -8071,6 +8075,7 @@ "description": "User profile ID associated with this request.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" }, @@ -8096,14 +8101,14 @@ "DESCENDING" ], "enumDescriptions": [ - "", - "" + "Ascending order.", + "Descending order." ], "location": "query", "type": "string" } }, - "path": "userprofiles/{profileId}/remarketingLists", + "path": "userprofiles/{+profileId}/remarketingLists", "response": { "$ref": "RemarketingListsListResponse" }, @@ -8112,8 +8117,8 @@ ] }, "patch": { - "description": "Updates an existing remarketing list. This method supports patch semantics.", - "flatPath": "userprofiles/{profileId}/remarketingLists", + "description": "Updates an existing RemarketingList. This method supports patch semantics.", + "flatPath": "userprofiles/{userprofilesId}/remarketingLists", "httpMethod": "PATCH", "id": "dfareporting.remarketingLists.patch", "parameterOrder": [ @@ -8122,7 +8127,7 @@ ], "parameters": { "id": { - "description": "RemarketingList ID.", + "description": "Required. RemarketingList ID.", "format": "int64", "location": "query", "required": true, @@ -8132,11 +8137,12 @@ "description": "User profile ID associated with this request.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" } }, - "path": "userprofiles/{profileId}/remarketingLists", + "path": "userprofiles/{+profileId}/remarketingLists", "request": { "$ref": "RemarketingList" }, @@ -8149,7 +8155,7 @@ }, "update": { "description": "Updates an existing remarketing list.", - "flatPath": "userprofiles/{profileId}/remarketingLists", + "flatPath": "userprofiles/{userprofilesId}/remarketingLists", "httpMethod": "PUT", "id": "dfareporting.remarketingLists.update", "parameterOrder": [ @@ -8160,11 +8166,12 @@ "description": "User profile ID associated with this request.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" } }, - "path": "userprofiles/{profileId}/remarketingLists", + "path": "userprofiles/{+profileId}/remarketingLists", "request": { "$ref": "RemarketingList" }, @@ -8284,8 +8291,6 @@ "description": "Maximum number of results to return.", "format": "int32", "location": "query", - "maximum": "10", - "minimum": "0", "type": "integer" }, "pageToken": { @@ -8557,8 +8562,6 @@ "description": "Maximum number of results to return.", "format": "int32", "location": "query", - "maximum": "10", - "minimum": "0", "type": "integer" }, "pageToken": { @@ -8625,7 +8628,7 @@ "methods": { "get": { "description": "Gets one site by ID.", - "flatPath": "userprofiles/{profileId}/sites/{id}", + "flatPath": "userprofiles/{userprofilesId}/sites/{sitesId}", "httpMethod": "GET", "id": "dfareporting.sites.get", "parameterOrder": [ @@ -8637,6 +8640,7 @@ "description": "Site ID.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" }, @@ -8644,11 +8648,12 @@ "description": "User profile ID associated with this request.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" } }, - "path": "userprofiles/{profileId}/sites/{id}", + "path": "userprofiles/{+profileId}/sites/{+id}", "response": { "$ref": "Site" }, @@ -8658,7 +8663,7 @@ }, "insert": { "description": "Inserts a new site.", - "flatPath": "userprofiles/{profileId}/sites", + "flatPath": "userprofiles/{userprofilesId}/sites", "httpMethod": "POST", "id": "dfareporting.sites.insert", "parameterOrder": [ @@ -8669,11 +8674,12 @@ "description": "User profile ID associated with this request.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" } }, - "path": "userprofiles/{profileId}/sites", + "path": "userprofiles/{+profileId}/sites", "request": { "$ref": "Site" }, @@ -8686,7 +8692,7 @@ }, "list": { "description": "Retrieves a list of sites, possibly filtered. This method supports paging.", - "flatPath": "userprofiles/{profileId}/sites", + "flatPath": "userprofiles/{userprofilesId}/sites", "httpMethod": "GET", "id": "dfareporting.sites.list", "parameterOrder": [ @@ -8744,8 +8750,6 @@ "description": "Maximum number of results to return.", "format": "int32", "location": "query", - "maximum": "1000", - "minimum": "0", "type": "integer" }, "pageToken": { @@ -8757,6 +8761,7 @@ "description": "User profile ID associated with this request.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" }, @@ -8787,8 +8792,8 @@ "DESCENDING" ], "enumDescriptions": [ - "", - "" + "Ascending order.", + "Descending order." ], "location": "query", "type": "string" @@ -8805,7 +8810,7 @@ "type": "boolean" } }, - "path": "userprofiles/{profileId}/sites", + "path": "userprofiles/{+profileId}/sites", "response": { "$ref": "SitesListResponse" }, @@ -8815,7 +8820,7 @@ }, "patch": { "description": "Updates an existing site. This method supports patch semantics.", - "flatPath": "userprofiles/{profileId}/sites", + "flatPath": "userprofiles/{userprofilesId}/sites", "httpMethod": "PATCH", "id": "dfareporting.sites.patch", "parameterOrder": [ @@ -8824,7 +8829,7 @@ ], "parameters": { "id": { - "description": "Site ID.", + "description": "Required. Site ID.", "format": "int64", "location": "query", "required": true, @@ -8834,11 +8839,12 @@ "description": "User profile ID associated with this request.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" } }, - "path": "userprofiles/{profileId}/sites", + "path": "userprofiles/{+profileId}/sites", "request": { "$ref": "Site" }, @@ -8851,7 +8857,7 @@ }, "update": { "description": "Updates an existing site.", - "flatPath": "userprofiles/{profileId}/sites", + "flatPath": "userprofiles/{userprofilesId}/sites", "httpMethod": "PUT", "id": "dfareporting.sites.update", "parameterOrder": [ @@ -8862,11 +8868,12 @@ "description": "User profile ID associated with this request.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" } }, - "path": "userprofiles/{profileId}/sites", + "path": "userprofiles/{+profileId}/sites", "request": { "$ref": "Site" }, @@ -8883,7 +8890,7 @@ "methods": { "get": { "description": "Gets one size by ID.", - "flatPath": "userprofiles/{profileId}/sizes/{id}", + "flatPath": "userprofiles/{userprofilesId}/sizes/{sizesId}", "httpMethod": "GET", "id": "dfareporting.sizes.get", "parameterOrder": [ @@ -8895,6 +8902,7 @@ "description": "Size ID.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" }, @@ -8902,11 +8910,12 @@ "description": "User profile ID associated with this request.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" } }, - "path": "userprofiles/{profileId}/sizes/{id}", + "path": "userprofiles/{+profileId}/sizes/{+id}", "response": { "$ref": "Size" }, @@ -8916,7 +8925,7 @@ }, "insert": { "description": "Inserts a new size.", - "flatPath": "userprofiles/{profileId}/sizes", + "flatPath": "userprofiles/{userprofilesId}/sizes", "httpMethod": "POST", "id": "dfareporting.sizes.insert", "parameterOrder": [ @@ -8927,11 +8936,12 @@ "description": "User profile ID associated with this request.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" } }, - "path": "userprofiles/{profileId}/sizes", + "path": "userprofiles/{+profileId}/sizes", "request": { "$ref": "Size" }, @@ -8944,7 +8954,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": "userprofiles/{profileId}/sizes", + "flatPath": "userprofiles/{userprofilesId}/sizes", "httpMethod": "GET", "id": "dfareporting.sizes.list", "parameterOrder": [ @@ -8955,8 +8965,6 @@ "description": "Select only sizes with this height.", "format": "int32", "location": "query", - "maximum": "32767", - "minimum": "0", "type": "integer" }, "iabStandard": { @@ -8975,6 +8983,7 @@ "description": "User profile ID associated with this request.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" }, @@ -8982,12 +8991,10 @@ "description": "Select only sizes with this width.", "format": "int32", "location": "query", - "maximum": "32767", - "minimum": "0", "type": "integer" } }, - "path": "userprofiles/{profileId}/sizes", + "path": "userprofiles/{+profileId}/sizes", "response": { "$ref": "SizesListResponse" }, @@ -9001,7 +9008,7 @@ "methods": { "get": { "description": "Gets one subaccount by ID.", - "flatPath": "userprofiles/{profileId}/subaccounts/{id}", + "flatPath": "userprofiles/{userprofilesId}/subaccounts/{subaccountsId}", "httpMethod": "GET", "id": "dfareporting.subaccounts.get", "parameterOrder": [ @@ -9013,6 +9020,7 @@ "description": "Subaccount ID.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" }, @@ -9020,11 +9028,12 @@ "description": "User profile ID associated with this request.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" } }, - "path": "userprofiles/{profileId}/subaccounts/{id}", + "path": "userprofiles/{+profileId}/subaccounts/{+id}", "response": { "$ref": "Subaccount" }, @@ -9034,7 +9043,7 @@ }, "insert": { "description": "Inserts a new subaccount.", - "flatPath": "userprofiles/{profileId}/subaccounts", + "flatPath": "userprofiles/{userprofilesId}/subaccounts", "httpMethod": "POST", "id": "dfareporting.subaccounts.insert", "parameterOrder": [ @@ -9045,11 +9054,12 @@ "description": "User profile ID associated with this request.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" } }, - "path": "userprofiles/{profileId}/subaccounts", + "path": "userprofiles/{+profileId}/subaccounts", "request": { "$ref": "Subaccount" }, @@ -9062,7 +9072,7 @@ }, "list": { "description": "Gets a list of subaccounts, possibly filtered. This method supports paging.", - "flatPath": "userprofiles/{profileId}/subaccounts", + "flatPath": "userprofiles/{userprofilesId}/subaccounts", "httpMethod": "GET", "id": "dfareporting.subaccounts.list", "parameterOrder": [ @@ -9081,8 +9091,6 @@ "description": "Maximum number of results to return.", "format": "int32", "location": "query", - "maximum": "1000", - "minimum": "0", "type": "integer" }, "pageToken": { @@ -9094,6 +9102,7 @@ "description": "User profile ID associated with this request.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" }, @@ -9124,14 +9133,14 @@ "DESCENDING" ], "enumDescriptions": [ - "", - "" + "Ascending order.", + "Descending order." ], "location": "query", "type": "string" } }, - "path": "userprofiles/{profileId}/subaccounts", + "path": "userprofiles/{+profileId}/subaccounts", "response": { "$ref": "SubaccountsListResponse" }, @@ -9141,7 +9150,7 @@ }, "patch": { "description": "Updates an existing subaccount. This method supports patch semantics.", - "flatPath": "userprofiles/{profileId}/subaccounts", + "flatPath": "userprofiles/{userprofilesId}/subaccounts", "httpMethod": "PATCH", "id": "dfareporting.subaccounts.patch", "parameterOrder": [ @@ -9150,7 +9159,7 @@ ], "parameters": { "id": { - "description": "Subaccount ID.", + "description": "Required. Subaccount ID.", "format": "int64", "location": "query", "required": true, @@ -9160,11 +9169,12 @@ "description": "User profile ID associated with this request.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" } }, - "path": "userprofiles/{profileId}/subaccounts", + "path": "userprofiles/{+profileId}/subaccounts", "request": { "$ref": "Subaccount" }, @@ -9177,7 +9187,7 @@ }, "update": { "description": "Updates an existing subaccount.", - "flatPath": "userprofiles/{profileId}/subaccounts", + "flatPath": "userprofiles/{userprofilesId}/subaccounts", "httpMethod": "PUT", "id": "dfareporting.subaccounts.update", "parameterOrder": [ @@ -9188,11 +9198,12 @@ "description": "User profile ID associated with this request.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" } }, - "path": "userprofiles/{profileId}/subaccounts", + "path": "userprofiles/{+profileId}/subaccounts", "request": { "$ref": "Subaccount" }, @@ -9209,7 +9220,7 @@ "methods": { "get": { "description": "Gets one remarketing list by ID.", - "flatPath": "userprofiles/{profileId}/targetableRemarketingLists/{id}", + "flatPath": "userprofiles/{userprofilesId}/targetableRemarketingLists/{targetableRemarketingListsId}", "httpMethod": "GET", "id": "dfareporting.targetableRemarketingLists.get", "parameterOrder": [ @@ -9221,6 +9232,7 @@ "description": "Remarketing list ID.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" }, @@ -9228,11 +9240,12 @@ "description": "User profile ID associated with this request.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" } }, - "path": "userprofiles/{profileId}/targetableRemarketingLists/{id}", + "path": "userprofiles/{+profileId}/targetableRemarketingLists/{+id}", "response": { "$ref": "TargetableRemarketingList" }, @@ -9242,7 +9255,7 @@ }, "list": { "description": "Retrieves a list of targetable remarketing lists, possibly filtered. This method supports paging.", - "flatPath": "userprofiles/{profileId}/targetableRemarketingLists", + "flatPath": "userprofiles/{userprofilesId}/targetableRemarketingLists", "httpMethod": "GET", "id": "dfareporting.targetableRemarketingLists.list", "parameterOrder": [ @@ -9256,7 +9269,7 @@ "type": "boolean" }, "advertiserId": { - "description": "Select only targetable remarketing lists targetable by these advertisers.", + "description": "Required. Select only targetable remarketing lists targetable by these advertisers.", "format": "int64", "location": "query", "required": true, @@ -9267,8 +9280,6 @@ "description": "Maximum number of results to return.", "format": "int32", "location": "query", - "maximum": "1000", - "minimum": "0", "type": "integer" }, "name": { @@ -9285,6 +9296,7 @@ "description": "User profile ID associated with this request.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" }, @@ -9310,14 +9322,14 @@ "DESCENDING" ], "enumDescriptions": [ - "", - "" + "Ascending order.", + "Descending order." ], "location": "query", "type": "string" } }, - "path": "userprofiles/{profileId}/targetableRemarketingLists", + "path": "userprofiles/{+profileId}/targetableRemarketingLists", "response": { "$ref": "TargetableRemarketingListsListResponse" }, @@ -9331,7 +9343,7 @@ "methods": { "get": { "description": "Gets one targeting template by ID.", - "flatPath": "userprofiles/{profileId}/targetingTemplates/{id}", + "flatPath": "userprofiles/{userprofilesId}/targetingTemplates/{targetingTemplatesId}", "httpMethod": "GET", "id": "dfareporting.targetingTemplates.get", "parameterOrder": [ @@ -9343,6 +9355,7 @@ "description": "Targeting template ID.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" }, @@ -9350,11 +9363,12 @@ "description": "User profile ID associated with this request.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" } }, - "path": "userprofiles/{profileId}/targetingTemplates/{id}", + "path": "userprofiles/{+profileId}/targetingTemplates/{+id}", "response": { "$ref": "TargetingTemplate" }, @@ -9364,7 +9378,7 @@ }, "insert": { "description": "Inserts a new targeting template.", - "flatPath": "userprofiles/{profileId}/targetingTemplates", + "flatPath": "userprofiles/{userprofilesId}/targetingTemplates", "httpMethod": "POST", "id": "dfareporting.targetingTemplates.insert", "parameterOrder": [ @@ -9375,11 +9389,12 @@ "description": "User profile ID associated with this request.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" } }, - "path": "userprofiles/{profileId}/targetingTemplates", + "path": "userprofiles/{+profileId}/targetingTemplates", "request": { "$ref": "TargetingTemplate" }, @@ -9392,7 +9407,7 @@ }, "list": { "description": "Retrieves a list of targeting templates, optionally filtered. This method supports paging.", - "flatPath": "userprofiles/{profileId}/targetingTemplates", + "flatPath": "userprofiles/{userprofilesId}/targetingTemplates", "httpMethod": "GET", "id": "dfareporting.targetingTemplates.list", "parameterOrder": [ @@ -9417,8 +9432,6 @@ "description": "Maximum number of results to return.", "format": "int32", "location": "query", - "maximum": "1000", - "minimum": "0", "type": "integer" }, "pageToken": { @@ -9430,6 +9443,7 @@ "description": "User profile ID associated with this request.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" }, @@ -9460,14 +9474,14 @@ "DESCENDING" ], "enumDescriptions": [ - "", - "" + "Ascending order.", + "Descending order." ], "location": "query", "type": "string" } }, - "path": "userprofiles/{profileId}/targetingTemplates", + "path": "userprofiles/{+profileId}/targetingTemplates", "response": { "$ref": "TargetingTemplatesListResponse" }, @@ -9477,7 +9491,7 @@ }, "patch": { "description": "Updates an existing targeting template. This method supports patch semantics.", - "flatPath": "userprofiles/{profileId}/targetingTemplates", + "flatPath": "userprofiles/{userprofilesId}/targetingTemplates", "httpMethod": "PATCH", "id": "dfareporting.targetingTemplates.patch", "parameterOrder": [ @@ -9486,7 +9500,7 @@ ], "parameters": { "id": { - "description": "TargetingTemplate ID.", + "description": "Required. RemarketingList ID.", "format": "int64", "location": "query", "required": true, @@ -9496,11 +9510,12 @@ "description": "User profile ID associated with this request.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" } }, - "path": "userprofiles/{profileId}/targetingTemplates", + "path": "userprofiles/{+profileId}/targetingTemplates", "request": { "$ref": "TargetingTemplate" }, @@ -9513,7 +9528,7 @@ }, "update": { "description": "Updates an existing targeting template.", - "flatPath": "userprofiles/{profileId}/targetingTemplates", + "flatPath": "userprofiles/{userprofilesId}/targetingTemplates", "httpMethod": "PUT", "id": "dfareporting.targetingTemplates.update", "parameterOrder": [ @@ -9524,11 +9539,12 @@ "description": "User profile ID associated with this request.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" } }, - "path": "userprofiles/{profileId}/targetingTemplates", + "path": "userprofiles/{+profileId}/targetingTemplates", "request": { "$ref": "TargetingTemplate" }, @@ -9593,7 +9609,7 @@ "methods": { "get": { "description": "Gets one user role permission group by ID.", - "flatPath": "userprofiles/{profileId}/userRolePermissionGroups/{id}", + "flatPath": "userprofiles/{userprofilesId}/userRolePermissionGroups/{userRolePermissionGroupsId}", "httpMethod": "GET", "id": "dfareporting.userRolePermissionGroups.get", "parameterOrder": [ @@ -9605,6 +9621,7 @@ "description": "User role permission group ID.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" }, @@ -9612,11 +9629,12 @@ "description": "User profile ID associated with this request.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" } }, - "path": "userprofiles/{profileId}/userRolePermissionGroups/{id}", + "path": "userprofiles/{+profileId}/userRolePermissionGroups/{+id}", "response": { "$ref": "UserRolePermissionGroup" }, @@ -9626,7 +9644,7 @@ }, "list": { "description": "Gets a list of all supported user role permission groups.", - "flatPath": "userprofiles/{profileId}/userRolePermissionGroups", + "flatPath": "userprofiles/{userprofilesId}/userRolePermissionGroups", "httpMethod": "GET", "id": "dfareporting.userRolePermissionGroups.list", "parameterOrder": [ @@ -9637,11 +9655,12 @@ "description": "User profile ID associated with this request.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" } }, - "path": "userprofiles/{profileId}/userRolePermissionGroups", + "path": "userprofiles/{+profileId}/userRolePermissionGroups", "response": { "$ref": "UserRolePermissionGroupsListResponse" }, @@ -9655,7 +9674,7 @@ "methods": { "get": { "description": "Gets one user role permission by ID.", - "flatPath": "userprofiles/{profileId}/userRolePermissions/{id}", + "flatPath": "userprofiles/{userprofilesId}/userRolePermissions/{userRolePermissionsId}", "httpMethod": "GET", "id": "dfareporting.userRolePermissions.get", "parameterOrder": [ @@ -9667,6 +9686,7 @@ "description": "User role permission ID.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" }, @@ -9674,11 +9694,12 @@ "description": "User profile ID associated with this request.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" } }, - "path": "userprofiles/{profileId}/userRolePermissions/{id}", + "path": "userprofiles/{+profileId}/userRolePermissions/{+id}", "response": { "$ref": "UserRolePermission" }, @@ -9688,7 +9709,7 @@ }, "list": { "description": "Gets a list of user role permissions, possibly filtered.", - "flatPath": "userprofiles/{profileId}/userRolePermissions", + "flatPath": "userprofiles/{userprofilesId}/userRolePermissions", "httpMethod": "GET", "id": "dfareporting.userRolePermissions.list", "parameterOrder": [ @@ -9706,11 +9727,12 @@ "description": "User profile ID associated with this request.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" } }, - "path": "userprofiles/{profileId}/userRolePermissions", + "path": "userprofiles/{+profileId}/userRolePermissions", "response": { "$ref": "UserRolePermissionsListResponse" }, @@ -9724,7 +9746,7 @@ "methods": { "delete": { "description": "Deletes an existing user role.", - "flatPath": "userprofiles/{profileId}/userRoles/{id}", + "flatPath": "userprofiles/{userprofilesId}/userRoles/{userRolesId}", "httpMethod": "DELETE", "id": "dfareporting.userRoles.delete", "parameterOrder": [ @@ -9736,6 +9758,7 @@ "description": "User role ID.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" }, @@ -9743,18 +9766,19 @@ "description": "User profile ID associated with this request.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" } }, - "path": "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": "userprofiles/{profileId}/userRoles/{id}", + "flatPath": "userprofiles/{userprofilesId}/userRoles/{userRolesId}", "httpMethod": "GET", "id": "dfareporting.userRoles.get", "parameterOrder": [ @@ -9766,6 +9790,7 @@ "description": "User role ID.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" }, @@ -9773,11 +9798,12 @@ "description": "User profile ID associated with this request.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" } }, - "path": "userprofiles/{profileId}/userRoles/{id}", + "path": "userprofiles/{+profileId}/userRoles/{+id}", "response": { "$ref": "UserRole" }, @@ -9787,7 +9813,7 @@ }, "insert": { "description": "Inserts a new user role.", - "flatPath": "userprofiles/{profileId}/userRoles", + "flatPath": "userprofiles/{userprofilesId}/userRoles", "httpMethod": "POST", "id": "dfareporting.userRoles.insert", "parameterOrder": [ @@ -9798,11 +9824,12 @@ "description": "User profile ID associated with this request.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" } }, - "path": "userprofiles/{profileId}/userRoles", + "path": "userprofiles/{+profileId}/userRoles", "request": { "$ref": "UserRole" }, @@ -9815,7 +9842,7 @@ }, "list": { "description": "Retrieves a list of user roles, possibly filtered. This method supports paging.", - "flatPath": "userprofiles/{profileId}/userRoles", + "flatPath": "userprofiles/{userprofilesId}/userRoles", "httpMethod": "GET", "id": "dfareporting.userRoles.list", "parameterOrder": [ @@ -9839,8 +9866,6 @@ "description": "Maximum number of results to return.", "format": "int32", "location": "query", - "maximum": "1000", - "minimum": "0", "type": "integer" }, "pageToken": { @@ -9852,6 +9877,7 @@ "description": "User profile ID associated with this request.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" }, @@ -9882,8 +9908,8 @@ "DESCENDING" ], "enumDescriptions": [ - "", - "" + "Ascending order.", + "Descending order." ], "location": "query", "type": "string" @@ -9895,7 +9921,7 @@ "type": "string" } }, - "path": "userprofiles/{profileId}/userRoles", + "path": "userprofiles/{+profileId}/userRoles", "response": { "$ref": "UserRolesListResponse" }, @@ -9905,7 +9931,7 @@ }, "patch": { "description": "Updates an existing user role. This method supports patch semantics.", - "flatPath": "userprofiles/{profileId}/userRoles", + "flatPath": "userprofiles/{userprofilesId}/userRoles", "httpMethod": "PATCH", "id": "dfareporting.userRoles.patch", "parameterOrder": [ @@ -9914,7 +9940,7 @@ ], "parameters": { "id": { - "description": "UserRole ID.", + "description": "Required. UserRole ID.", "format": "int64", "location": "query", "required": true, @@ -9924,11 +9950,12 @@ "description": "User profile ID associated with this request.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" } }, - "path": "userprofiles/{profileId}/userRoles", + "path": "userprofiles/{+profileId}/userRoles", "request": { "$ref": "UserRole" }, @@ -9941,7 +9968,7 @@ }, "update": { "description": "Updates an existing user role.", - "flatPath": "userprofiles/{profileId}/userRoles", + "flatPath": "userprofiles/{userprofilesId}/userRoles", "httpMethod": "PUT", "id": "dfareporting.userRoles.update", "parameterOrder": [ @@ -9952,11 +9979,12 @@ "description": "User profile ID associated with this request.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" } }, - "path": "userprofiles/{profileId}/userRoles", + "path": "userprofiles/{+profileId}/userRoles", "request": { "$ref": "UserRole" }, @@ -9973,7 +10001,7 @@ "methods": { "get": { "description": "Gets one video format by ID.", - "flatPath": "userprofiles/{profileId}/videoFormats/{id}", + "flatPath": "userprofiles/{userprofilesId}/videoFormats/{videoFormatsId}", "httpMethod": "GET", "id": "dfareporting.videoFormats.get", "parameterOrder": [ @@ -9985,6 +10013,7 @@ "description": "Video format ID.", "format": "int32", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "integer" }, @@ -9992,11 +10021,12 @@ "description": "User profile ID associated with this request.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" } }, - "path": "userprofiles/{profileId}/videoFormats/{id}", + "path": "userprofiles/{+profileId}/videoFormats/{+id}", "response": { "$ref": "VideoFormat" }, @@ -10006,7 +10036,7 @@ }, "list": { "description": "Lists available video formats.", - "flatPath": "userprofiles/{profileId}/videoFormats", + "flatPath": "userprofiles/{userprofilesId}/videoFormats", "httpMethod": "GET", "id": "dfareporting.videoFormats.list", "parameterOrder": [ @@ -10017,11 +10047,12 @@ "description": "User profile ID associated with this request.", "format": "int64", "location": "path", + "pattern": "^[^/]+$", "required": true, "type": "string" } }, - "path": "userprofiles/{profileId}/videoFormats", + "path": "userprofiles/{+profileId}/videoFormats", "response": { "$ref": "VideoFormatsListResponse" }, @@ -10032,7 +10063,7 @@ } } }, - "revision": "20230425", + "revision": "20230523", "rootUrl": "https://dfareporting.googleapis.com/", "schemas": { "Account": { @@ -10054,8 +10085,8 @@ "ACCOUNT_PROFILE_STANDARD" ], "enumDescriptions": [ - "", - "" + "Basic profile has fewer features and lower CPM.", + "Standard profile as a higher CPM and all the features." ], "type": "string" }, @@ -10222,8 +10253,8 @@ "ACCOUNT_PROFILE_STANDARD" ], "enumDescriptions": [ - "", - "" + "Basic profile has fewer features and lower CPM.", + "Standard profile as a higher CPM and all the features." ], "type": "string" }, @@ -10294,7 +10325,7 @@ "type": "array" }, "kind": { - "description": "Identifies what kind of resource this is. Value: the fixed string \"dfareporting#accountPermissionGroupsListResponse\".", + "description": "Identifies what kind of resource this is. Value: the fixed string \"dfareporting#accountPermissionGroupGroupsListResponse\".", "type": "string" } }, @@ -10381,9 +10412,9 @@ "EXTERNAL_TRAFFICKER" ], "enumDescriptions": [ - "", - "", - "" + "Internal profile, but is not a trafficker.", + "Internal profile who is a trafficker.", + "External profile who is a trafficker." ], "type": "string" }, @@ -10396,10 +10427,10 @@ "READ_ONLY_SUPER_USER" ], "enumDescriptions": [ - "", - "", - "", - "" + "Normal user managed by the customer.", + "Super user managed by internal support teams.", + "Internal administrator having super user access to only a specific set of networks.", + "A super-user without permission to mutate any data." ], "type": "string" }, @@ -10549,8 +10580,8 @@ "enumDescriptions": [ "", "", - "", - "", + "Deprecated enum value. No longer supported.", + "Deprecated enum value. No longer supported.", "", "" ], @@ -10725,8 +10756,8 @@ "enumDescriptions": [ "", "", - "", - "", + "Deprecated enum value. No longer supported.", + "Deprecated enum value. No longer supported.", "", "" ], @@ -10861,8 +10892,8 @@ "ON_HOLD" ], "enumDescriptions": [ - "", - "" + "Approved (ads can deliver)", + "On-hold (all ads are stopped)" ], "type": "string" }, @@ -12032,7 +12063,6 @@ "type": "object" }, "ContentCategory": { - "description": "Organizes placements according to the contents of their associated webpages.", "id": "ContentCategory", "properties": { "accountId": { @@ -12129,7 +12159,7 @@ "type": "string" }, "quantity": { - "description": "The quantity of the conversion.", + "description": "The quantity of the conversion. This is a required field.", "format": "int64", "type": "string" }, @@ -12150,7 +12180,7 @@ "type": "array" }, "value": { - "description": "The value of the conversion.", + "description": "The value of the conversion. This is a required field.", "format": "double", "type": "number" } @@ -12376,7 +12406,7 @@ "type": "array" }, "advertiserId": { - "description": "Advertiser ID of this creative. This is a required field. Applicable to all creative types.", + "description": "Required. Advertiser ID of this creative. This is a required field. Applicable to all creative types.", "format": "int64", "type": "string" }, @@ -12397,10 +12427,10 @@ "ARTWORK_TYPE_IMAGE" ], "enumDescriptions": [ - "", - "", - "", - "" + "The creative is a Flash creative.", + "The creative is HTML5.", + "The creative is HTML5 if available, Flash otherwise.", + "The creative is Image." ], "type": "string" }, @@ -12414,11 +12444,11 @@ "CREATIVE_AUTHORING_SOURCE_ACS" ], "enumDescriptions": [ - "", - "", - "", - "", - "" + "DCM-UI or external API used to author the creative.", + "DBM-UI used to author the creative.", + "Studio-UI used to author the creative.", + "Google Web Designer used to author the creative.", + "ACS-UI used to author the creative." ], "type": "string" }, @@ -12570,7 +12600,7 @@ "", "", "", - "", + "POST_MESSAGE always required due to html5 implementation.", "", "", "", @@ -12630,8 +12660,8 @@ "enumDescriptions": [ "", "", - "", - "", + "Deprecated enum value. No longer supported.", + "Deprecated enum value. No longer supported.", "", "" ], @@ -12730,7 +12760,7 @@ "type": "number" }, "name": { - "description": "Name of the creative. This is a required field and must be less than 256 characters long. Applicable to all creative types.", + "description": "Required. Name of the creative. This must be less than 256 characters long. Applicable to all creative types.", "type": "string" }, "obaIcon": { @@ -12835,7 +12865,7 @@ "type": "string" }, "type": { - "description": "Type of this creative. This is a required field. Applicable to all creative types. *Note:* FLASH_INPAGE, HTML5_BANNER, and IMAGE are only used for existing creatives. New creatives should use DISPLAY as a replacement for these types.", + "description": "Required. Type of this creative. Applicable to all creative types. *Note:* FLASH_INPAGE, HTML5_BANNER, and IMAGE are only used for existing creatives. New creatives should use DISPLAY as a replacement for these types.", "enum": [ "IMAGE", "DISPLAY_REDIRECT", @@ -12948,10 +12978,10 @@ "ARTWORK_TYPE_IMAGE" ], "enumDescriptions": [ - "", - "", - "", - "" + "The creative is a Flash creative.", + "The creative is HTML5.", + "The creative is HTML5 if available, Flash otherwise.", + "The creative is Image." ], "type": "string" }, @@ -12987,10 +13017,10 @@ "CHILD_ASSET_TYPE_DATA" ], "enumDescriptions": [ - "", - "", - "", - "" + "swf files", + "flv and any other video files types", + "image files", + "rest of the supported file types .txt, .xml etc." ], "type": "string" }, @@ -13135,7 +13165,7 @@ "", "", "", - "", + "POST_MESSAGE always required due to html5 implementation.", "", "", "", @@ -13169,16 +13199,16 @@ "ASSET_DISPLAY_TYPE_BACKDROP" ], "enumDescriptions": [ - "", - "", - "", - "", - "", - "", - "", - "", - "", - "" + "Asset exists in a box and stays within the box.", + "Asset exists at a self described location on the page.", + "Special display type for IM clients.", + "Asset changes size.", + "Not applicable for HTML5.", + "Not applicable for HTML5.", + "Asset sits on the top right and expands.", + "VPAID linear asset.", + "VPAID non linear asset.", + "Backdrop (skin) asset." ], "type": "string" }, @@ -13195,9 +13225,9 @@ "ASSET_DURATION_TYPE_CUSTOM" ], "enumDescriptions": [ - "", - "", - "" + "Asset is displayed for the single run of the time line.", + "Asset is displayed indefinitely and it loops on the timeline.", + "User entered duration value in seconds." ], "type": "string" }, @@ -13288,9 +13318,9 @@ "OFFSET_UNIT_PIXEL_FROM_CENTER" ], "enumDescriptions": [ - "", - "", - "" + "Pixels on a screen.", + "Percent offset for center asset (rather than top and left).", + "Pixel offset for center of asset from center of browser window." ], "type": "string" }, @@ -13302,9 +13332,9 @@ "OFFSET_UNIT_PIXEL_FROM_CENTER" ], "enumDescriptions": [ - "", - "", - "" + "Pixels on a screen.", + "Percent offset for center asset (rather than top and left).", + "Pixel offset for center of asset from center of browser window." ], "type": "string" }, @@ -13364,8 +13394,8 @@ "ASSET_START_TIME_TYPE_CUSTOM" ], "enumDescriptions": [ - "", - "" + "Asset is not automatically displayed.", + "Asset is automatically displayed after a fixed period of time." ], "type": "string" }, @@ -13389,9 +13419,9 @@ "TRANSPARENT" ], "enumDescriptions": [ - "", - "", - "" + "Allows overlapping of Html and SWF content.", + "Default", + "Used for non-square borders. Allows overlapping of Html and SWF content." ], "type": "string" }, @@ -13588,7 +13618,7 @@ "", "", "", - "", + "POST_MESSAGE always required due to html5 implementation.", "", "", "", @@ -13670,32 +13700,32 @@ "MISSING_ENABLER_REFERENCE" ], "enumDescriptions": [ - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "" + "Click tag initialization detected but not at the top level of the primary html file.", + "No click tag detected.", + "More than one click tag detected.", + "Click tag invalid (failed url validation).", + "Orphaned asset not referenced.", + "Primary html file missing.", + "Reference to a third-party resource. Problematic because the volume of ad serving could bring down unprepared web servers due to high load. e.g. http://www.zibble.net/smiles.gif", + "Reference to INAPP MRAID feature.", + "Reference to INAPP ADMOB feature.", + "Invalid file type referenced.", + "Invalid zip passed in (could not extract from zip", + "A relative file was linked to that wasn't included in zip. e.g. images/missing_file.gif", + "Max flash version at 11.", + "Whether the asset uses secure urls or not.", + "File detail empty.", + "Asset is not valid and could not be processed.", + "GWD properties are invalid.", + "Unsupported Enabler methods in DCM.", + "Asset ad format is unsupported in DCM.", + "Component is unsupported in DCM.", + "Html5 feature is unsupported.", + "Click tag defined in GWD asset. GWD-published creatives should use exit events instead of defining var clickTag. Defined var clickTags are a symptom of an unsupported workflow, and an error should be thrown.", + "Whether the asset has hard coded click tag url(s).", + "Whether an SVG block could not be parsed.", + "Click tag defined in rich media asset. Rich media creatives should use exit events instead of defining var clickTag. Defined var clickTags are a symptom of an unsupported workflow, and an error should be thrown.", + "Rich media primary asset is missing the Enabler reference." ], "type": "string" }, @@ -13854,10 +13884,10 @@ "ARTWORK_TYPE_IMAGE" ], "enumDescriptions": [ - "", - "", - "", - "" + "The creative is a Flash creative.", + "The creative is HTML5.", + "The creative is HTML5 if available, Flash otherwise.", + "The creative is Image." ], "type": "string" }, @@ -13884,11 +13914,11 @@ "TARGET_POPUP" ], "enumDescriptions": [ - "", - "", - "", - "", - "" + "New tab", + "Current tab", + "Same frame", + "Parent frame", + "New window with properties specified in window_properties" ], "type": "string" }, @@ -14173,8 +14203,8 @@ "CREATIVE_ROTATION_TYPE_RANDOM" ], "enumDescriptions": [ - "", - "" + "The weights of each creative in the rotation should be sequential starting at 1. The user may adjust the order.", + "The weights are calculated according to the ad's CreativeRoationWeightStrategy." ], "type": "string" }, @@ -14187,10 +14217,10 @@ "WEIGHT_STRATEGY_OPTIMIZED" ], "enumDescriptions": [ - "", - "", - "", - "" + "The creative weights should all be equal to 1. This is the default value for all ads with a rotation type of Random.", + "The creative weights can be any user provided positive integer.", + "The weights will be automatically calculated giving preference to the creative that has the highest CTR. The CTR for campaigns that are optimized for clicks = clicks/impressions. The CTR for campaigns that are optimized for view-through or click through is sum(activities + floodlight weight)/impressions.", + "The creative weights will be automatically calculated using a formula that could not possibly be explained in these comments. The value will be within some predetermined range (probably 0 - 1,000,000)." ], "type": "string" } @@ -14614,13 +14644,13 @@ "description": "Days of the week when the ad will serve. Acceptable values are: - \"SUNDAY\" - \"MONDAY\" - \"TUESDAY\" - \"WEDNESDAY\" - \"THURSDAY\" - \"FRIDAY\" - \"SATURDAY\" ", "items": { "enum": [ + "SUNDAY", "MONDAY", "TUESDAY", "WEDNESDAY", "THURSDAY", "FRIDAY", - "SATURDAY", - "SUNDAY" + "SATURDAY" ], "enumDescriptions": [ "", @@ -14892,11 +14922,6 @@ "id": "DimensionValueRequest", "properties": { "dimensionName": { - "annotations": { - "required": [ - "dfareporting.dimensionValues.query" - ] - }, "description": "The name of the dimension for which values should be requested.", "type": "string" }, @@ -15233,8 +15258,8 @@ "BLOCKLIST" ], "enumDescriptions": [ - "", - "" + "The event tag should only ever fire on specified sites.", + "The event tag should fire on all sites EXCEPT the specified sites." ], "type": "string" }, @@ -15275,9 +15300,9 @@ "CLICK_THROUGH_EVENT_TAG" ], "enumDescriptions": [ - "", - "", - "" + "A third-party pixel for impression tracking.", + "A third-party JavaScript URL for impression tracking.", + "A third-party URL for click tracking that redirects to the landing page." ], "type": "string" }, @@ -15551,11 +15576,11 @@ "ITEMS_SOLD_COUNTING" ], "enumDescriptions": [ - "", - "", - "", - "", - "" + "Count every conversion.", + "Count the first conversion for each unique user during each 24-hour day, from midnight to midnight, Eastern Time.", + "Count one conversion per user per session. Session length is set by the site where the Spotlight tag is deployed.", + "Count all conversions, plus the total number of sales that take place and the total revenue for these transactions.", + "Count each conversion, plus the total number of items sold and the total revenue for these sales." ], "type": "string" }, @@ -16083,10 +16108,9 @@ "type": "boolean" }, "firstDayOfWeek": { - "description": "Day that will be counted as the first day of the week in reports. This is a required field.", "enum": [ - "MONDAY", - "SUNDAY" + "SUNDAY", + "MONDAY" ], "enumDescriptions": [ "", @@ -16242,8 +16266,8 @@ "DISTANCE_FROM_TOP_LEFT_CORNER" ], "enumDescriptions": [ - "", - "" + "Center of the window Corresponds to \"center\" in UI", + "user-defined distance from top left-hand corner of the window Corresponds to \"top-left\" in UI" ], "type": "string" }, @@ -16798,7 +16822,7 @@ "id": "MeasurementPartnerAdvertiserLink", "properties": { "linkStatus": { - "description": ".", + "description": "Status of the partner link.", "enum": [ "MEASUREMENT_PARTNER_UNLINKED", "MEASUREMENT_PARTNER_LINKED", @@ -16810,14 +16834,14 @@ "MEASUREMENT_PARTNER_MODE_CHANGE_PENDING" ], "enumDescriptions": [ - "", - "", - "", - "", - "", - "", - "", - "" + "Unlinked.", + "Linked successfully", + "Link pending for wrapping.", + "Linking failure.", + "Link opt-out by user.", + "Link opt-out pending sync.", + "Link wrap answer pending.", + "Mode change pending." ], "type": "string" }, @@ -16836,7 +16860,7 @@ "type": "string" }, "partnerAdvertiserId": { - "description": ".", + "description": "partner Advertiser Id.", "type": "string" } }, @@ -16858,14 +16882,14 @@ "MEASUREMENT_PARTNER_MODE_CHANGE_PENDING" ], "enumDescriptions": [ - "", - "", - "", - "", - "", - "", - "", - "" + "Unlinked.", + "Linked successfully", + "Link pending for wrapping.", + "Linking failure.", + "Link opt-out by user.", + "Link opt-out pending sync.", + "Link wrap answer pending.", + "Mode change pending." ], "type": "string" }, @@ -16907,14 +16931,14 @@ "MEASUREMENT_PARTNER_MODE_CHANGE_PENDING" ], "enumDescriptions": [ - "", - "", - "", - "", - "", - "", - "", - "" + "Unlinked.", + "Linked successfully", + "Link pending for wrapping.", + "Linking failure.", + "Link opt-out by user.", + "Link opt-out pending sync.", + "Link wrap answer pending.", + "Mode change pending." ], "type": "string" }, @@ -16984,7 +17008,7 @@ "type": "string" }, "name": { - "description": "The metric name, e.g. dfa:impressions", + "description": "The metric name, e.g. impressions", "type": "string" } }, @@ -17231,9 +17255,9 @@ "ALL" ], "enumDescriptions": [ - "", - "", - "" + "Profile has access to none of the objects.", + "Profile has access to only specific objects.", + "Profile has access to all objects." ], "type": "string" } @@ -17569,125 +17593,6 @@ }, "type": "object" }, - "OrderDocument": { - "description": "Contains properties of a Planning order document.", - "id": "OrderDocument", - "properties": { - "accountId": { - "description": "Account ID of this order document.", - "format": "int64", - "type": "string" - }, - "advertiserId": { - "description": "Advertiser ID of this order document.", - "format": "int64", - "type": "string" - }, - "amendedOrderDocumentId": { - "description": "The amended order document ID of this order document. An order document can be created by optionally amending another order document so that the change history can be preserved.", - "format": "int64", - "type": "string" - }, - "approvedByUserProfileIds": { - "description": "IDs of users who have approved this order document.", - "items": { - "format": "int64", - "type": "string" - }, - "type": "array" - }, - "cancelled": { - "description": "Whether this order document is cancelled.", - "type": "boolean" - }, - "createdInfo": { - "$ref": "LastModifiedInfo", - "description": "Information about the creation of this order document." - }, - "effectiveDate": { - "format": "date", - "type": "string" - }, - "id": { - "description": "ID of this order document.", - "format": "int64", - "type": "string" - }, - "kind": { - "description": "Identifies what kind of resource this is. Value: the fixed string \"dfareporting#orderDocument\".", - "type": "string" - }, - "lastSentRecipients": { - "description": "List of email addresses that received the last sent document.", - "items": { - "type": "string" - }, - "type": "array" - }, - "lastSentTime": { - "format": "date-time", - "type": "string" - }, - "orderId": { - "description": "ID of the order from which this order document is created.", - "format": "int64", - "type": "string" - }, - "projectId": { - "description": "Project ID of this order document.", - "format": "int64", - "type": "string" - }, - "signed": { - "description": "Whether this order document has been signed.", - "type": "boolean" - }, - "subaccountId": { - "description": "Subaccount ID of this order document.", - "format": "int64", - "type": "string" - }, - "title": { - "description": "Title of this order document.", - "type": "string" - }, - "type": { - "description": "Type of this order document", - "enum": [ - "PLANNING_ORDER_TYPE_INSERTION_ORDER", - "PLANNING_ORDER_TYPE_CHANGE_ORDER" - ], - "enumDescriptions": [ - "", - "" - ], - "type": "string" - } - }, - "type": "object" - }, - "OrderDocumentsListResponse": { - "description": "Order document List Response", - "id": "OrderDocumentsListResponse", - "properties": { - "kind": { - "description": "Identifies what kind of resource this is. Value: the fixed string \"dfareporting#orderDocumentsListResponse\".", - "type": "string" - }, - "nextPageToken": { - "description": "Pagination token to be used for the next list operation.", - "type": "string" - }, - "orderDocuments": { - "description": "Order document collection", - "items": { - "$ref": "OrderDocument" - }, - "type": "array" - } - }, - "type": "object" - }, "OrdersListResponse": { "description": "Order List Response", "id": "OrdersListResponse", @@ -17940,8 +17845,8 @@ "enumDescriptions": [ "", "", - "", - "", + "Deprecated enum value. No longer supported.", + "Deprecated enum value. No longer supported.", "", "" ], @@ -18072,12 +17977,12 @@ "DRAFT" ], "enumDescriptions": [ - "", - "", - "", - "", - "", - "" + "Placement is not yet reviewed by publisher.", + "Placement Ad Serving fee is accepted by publisher", + "Placement Ad Serving fee is rejected by publisher", + "Advertisers has accepted rejection of placement ad serving fee. This will suppress future notification on DDMM UI", + "Advertisers has accepted acceptance of placement ad serving fee. This will suppress future notification on DDMM UI", + "Advertisers is still working on placement not yet ready for Publisher review; default status for pub-paid placements" ], "type": "string" }, @@ -18158,7 +18063,7 @@ "BOTH" ], "enumDescriptions": [ - "", + "DEFAULT means Google chooses which adapter, if any, to serve.", "", "", "" @@ -18303,8 +18208,8 @@ "PLACEMENT_ROADBLOCK" ], "enumDescriptions": [ - "", - "" + "A simple group of site-placements (tags). Basically acts as a single pricing point for a group of tags.", + "A group of site-placements (tags) that not only acts as a single pricing point but also assumes that all the tags in it will be served at the same time. This kind of group requires one of its assigned site-placements to be marked as primary for reporting purposes." ], "type": "string" }, @@ -18528,8 +18433,8 @@ "COORDINATES" ], "enumDescriptions": [ - "", - "" + "window positioning at center.", + "window positioning by upper left corner coordinates." ], "type": "string" }, @@ -18607,7 +18512,6 @@ "type": "object" }, "Pricing": { - "description": "Pricing Information", "id": "Pricing", "properties": { "capCostType": { @@ -18642,8 +18546,8 @@ "PLANNING_PLACEMENT_GROUP_TYPE_ROADBLOCK" ], "enumDescriptions": [ - "", - "" + "A placement package represents \"package pricing\": Pricing and flight information is defined on the package, not on its child placements. The placements in a package do not need to be on the same page.", + "A roadblock represents a set of placements that are all the same page. One of the child placements is designated as the \"primary\" placement for reporting purposes." ], "type": "string" }, @@ -18760,7 +18664,7 @@ "type": "string" }, "rateOrCostNanos": { - "description": "Rate or cost of this pricing period in nanos (i.e., multipled by 1000000000). Acceptable values are 0 to 1000000000000000000, inclusive.", + "description": "Rate or cost of this pricing period in nanos (i.e., multiplied by 1000000000). Acceptable values are 0 to 1000000000000000000, inclusive.", "format": "int64", "type": "string" }, @@ -18982,12 +18886,6 @@ "id": "Recipient", "properties": { "deliveryType": { - "annotations": { - "required": [ - "dfareporting.reports.insert", - "dfareporting.reports.update" - ] - }, "description": "The delivery type for the recipient.", "enum": [ "LINK", @@ -19000,12 +18898,6 @@ "type": "string" }, "email": { - "annotations": { - "required": [ - "dfareporting.reports.insert", - "dfareporting.reports.update" - ] - }, "description": "The email address of the recipient.", "type": "string" }, @@ -19132,17 +19024,17 @@ "REMARKETING_LIST_SOURCE_PLAY_STORE" ], "enumDescriptions": [ - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "" + "covers sources not supported in DCM other than those listed below", + "ADX", + "DFP", + "XFP", + "DoubleClick Campaign Manager", + "Google Analytics Premium", + "Youtube", + "DoubleClick Bid Manager", + "G+", + "DoubleClick Audience Center", + "Playstore" ], "type": "string" }, @@ -19217,11 +19109,6 @@ "id": "Report", "properties": { "accountId": { - "annotations": { - "required": [ - "dfareporting.reports.update" - ] - }, "description": "The account ID to which this report belongs.", "format": "int64", "type": "string" @@ -19437,11 +19324,6 @@ "type": "string" }, "id": { - "annotations": { - "required": [ - "dfareporting.reports.update" - ] - }, "description": "The unique ID identifying this report resource.", "format": "int64", "type": "string" @@ -19451,31 +19333,15 @@ "type": "string" }, "lastModifiedTime": { - "annotations": { - "required": [ - "dfareporting.reports.update" - ] - }, "description": "The timestamp (in milliseconds since epoch) of when this report was last modified.", "format": "uint64", "type": "string" }, "name": { - "annotations": { - "required": [ - "dfareporting.reports.insert", - "dfareporting.reports.update" - ] - }, "description": "The name of the report.", "type": "string" }, "ownerProfileId": { - "annotations": { - "required": [ - "dfareporting.reports.update" - ] - }, "description": "The user profile id of the owner of this report.", "format": "int64", "type": "string" @@ -19729,12 +19595,6 @@ "description": "The report's schedule. Can only be set if the report's 'dateRange' is a relative date range and the relative date range is not \"TODAY\".", "properties": { "active": { - "annotations": { - "required": [ - "dfareporting.reports.insert", - "dfareporting.reports.update" - ] - }, "description": "Whether the schedule is active or not. Must be set to either true or false.", "type": "boolean" }, @@ -19748,12 +19608,6 @@ "type": "string" }, "repeats": { - "annotations": { - "required": [ - "dfareporting.reports.insert", - "dfareporting.reports.update" - ] - }, "description": "The interval for which the report is repeated. Note: - \"DAILY\" also requires field \"every\" to be set. - \"WEEKLY\" also requires fields \"every\" and \"repeatsOnWeekDays\" to be set. - \"MONTHLY\" also requires fields \"every\" and \"runsOnDayOfMonth\" to be set. ", "type": "string" }, @@ -19811,12 +19665,6 @@ "type": "string" }, "type": { - "annotations": { - "required": [ - "dfareporting.reports.insert", - "dfareporting.reports.update" - ] - }, "description": "The type of the report.", "enum": [ "STANDARD", @@ -20140,7 +19988,7 @@ "BOTH" ], "enumDescriptions": [ - "", + "DEFAULT means Google chooses which adapter, if any, to serve.", "", "", "" @@ -20514,9 +20362,9 @@ "GENERATE_SEPARATE_TAG_FOR_EACH_KEYWORD" ], "enumDescriptions": [ - "", - "", - "" + "Creates DART ad tags with a placeholder, such as kw=[keyword] and a list of keywords. The site trafficker must replace [keyword] with the keywords targeted by an ad.", + "Creates DART ad tags that do not have a placeholder for keywords and creates a list of keywords separately from the DART ad tags. Use this option if the site uses a keyword referrer or is a site that uses DART for Publishers.", + "Results in unique tag generation for each relevant keyword during tag export. For example, an ad with three keywords will generate three tags with each tag having its kw= parameter filled in with the relevant keyword values." ], "type": "string" } @@ -20554,9 +20402,9 @@ "CUSTOM" ], "enumDescriptions": [ - "", - "", - "" + "Open up a new window to display the backup image Corresponds to \"_blank\" in html", + "Use the current window to display the backup image Corresponds to \"_top\" in html", + "User-defined HTML used to display the backup image Corresponds to \"other\"" ], "type": "string" } @@ -20564,7 +20412,7 @@ "type": "object" }, "TargetableRemarketingList": { - "description": "Contains properties of a targetable remarketing list. Remarketing enables you to create lists of users who have performed specific actions on a site, then target ads to members of those lists. This resource is a read-only view of a remarketing list to be used to faciliate targeting ads to specific lists. Remarketing lists that are owned by your advertisers and those that are shared to your advertisers or account are accessible via this resource. To manage remarketing lists that are owned by your advertisers, use the RemarketingLists resource.", + "description": "Contains properties of a targetable remarketing list. Remarketing enables you to create lists of users who have performed specific actions on a site, then target ads to members of those lists. This resource is a read-only view of a remarketing list to be used to facilitate targeting ads to specific lists. Remarketing lists that are owned by your advertisers and those that are shared to your advertisers or account are accessible via this resource. To manage remarketing lists that are owned by your advertisers, use the RemarketingLists resource.", "id": "TargetableRemarketingList", "properties": { "accountId": { @@ -20624,17 +20472,17 @@ "REMARKETING_LIST_SOURCE_PLAY_STORE" ], "enumDescriptions": [ - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "" + "covers sources not supported in DCM other than those listed below", + "ADX", + "DFP", + "XFP", + "DoubleClick Campaign Manager", + "Google Analytics Premium", + "Youtube", + "DoubleClick Bid Manager", + "G+", + "DoubleClick Audience Center", + "Playstore" ], "type": "string" }, @@ -20849,25 +20697,25 @@ "VIDEO_PROGRESS" ], "enumDescriptions": [ - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "" + "Used to count impressions of the ad after video buffering is complete.", + "Used to track user clicks on the video.", + "Used to track the number of times a user starts a video.", + "Used to track the number of times the video plays to 25% of its length.", + "Used to track the number of times the video plays to 50% of its length.", + "Used to track the number of times the video plays to 75% of its length.", + "Used to track the number of times the video plays to the end.", + "Used to track the number of times a user mutes the video.", + "Used to track the number of times a user pauses the video.", + "Used to track the number of times a user replays the video.", + "Used to track the number of times a user expands the video to full-screen size.", + "Used to track the number of times a user stops the video.", + "Used to track the number of times a user performs a custom click, such as clicking on a video hot spot.", + "Used for DFA6 compatibility, this is deprecating in favor of event tags.", + "Used by Studio RichMediaCreative, maps to its thirdPartyImpressionsUrl", + "Used by Studio RichMediaCreative, maps to its thirdPartyRichMediaImpressionsUrl", + "Used by Studio RichMediaCreative, maps to its thirdPartyBackupImageImpressionsUrl", + "Used to track the number of times the video was skipped.", + "Used to track the number of times the video plays to an offset determined by the user." ], "type": "string" }, @@ -21299,12 +21147,12 @@ "USER_PROFILE_ONLY" ], "enumDescriptions": [ - "", - "", - "", - "", - "", - "" + "Not available by default.", + "Available by default to accounts only.", + "Available by default to both accounts and subaccounts.", + "Always available to accounts.", + "Always available to both accounts and subaccounts.", + "Available for user profile permissions only." ], "type": "string" }, diff --git a/dfareporting/v4/dfareporting-gen.go b/dfareporting/v4/dfareporting-gen.go index 8d4e82644df..4b99f7d42b7 100644 --- a/dfareporting/v4/dfareporting-gen.go +++ b/dfareporting/v4/dfareporting-gen.go @@ -173,7 +173,6 @@ func New(client *http.Client) (*Service, error) { s.MobileCarriers = NewMobileCarriersService(s) s.OperatingSystemVersions = NewOperatingSystemVersionsService(s) s.OperatingSystems = NewOperatingSystemsService(s) - s.OrderDocuments = NewOrderDocumentsService(s) s.Orders = NewOrdersService(s) s.PlacementGroups = NewPlacementGroupsService(s) s.PlacementStrategies = NewPlacementStrategiesService(s) @@ -287,8 +286,6 @@ type Service struct { OperatingSystems *OperatingSystemsService - OrderDocuments *OrderDocumentsService - Orders *OrdersService PlacementGroups *PlacementGroupsService @@ -717,15 +714,6 @@ type OperatingSystemsService struct { s *Service } -func NewOrderDocumentsService(s *Service) *OrderDocumentsService { - rs := &OrderDocumentsService{s: s} - return rs -} - -type OrderDocumentsService struct { - s *Service -} - func NewOrdersService(s *Service) *OrdersService { rs := &OrdersService{s: s} return rs @@ -948,8 +936,10 @@ type Account struct { // that can be left blank. // // Possible values: - // "ACCOUNT_PROFILE_BASIC" - // "ACCOUNT_PROFILE_STANDARD" + // "ACCOUNT_PROFILE_BASIC" - Basic profile has fewer features and + // lower CPM. + // "ACCOUNT_PROFILE_STANDARD" - Standard profile as a higher CPM and + // all the features. AccountProfile string `json:"accountProfile,omitempty"` // Active: Whether this account is active. @@ -1134,8 +1124,10 @@ type AccountPermission struct { // "ACCOUNT_PROFILE_STANDARD" // // Possible values: - // "ACCOUNT_PROFILE_BASIC" - // "ACCOUNT_PROFILE_STANDARD" + // "ACCOUNT_PROFILE_BASIC" - Basic profile has fewer features and + // lower CPM. + // "ACCOUNT_PROFILE_STANDARD" - Standard profile as a higher CPM and + // all the features. AccountProfiles []string `json:"accountProfiles,omitempty"` // Id: ID of this account permission. @@ -1235,7 +1227,7 @@ type AccountPermissionGroupsListResponse struct { AccountPermissionGroups []*AccountPermissionGroup `json:"accountPermissionGroups,omitempty"` // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#accountPermissionGroupsListResponse". + // string "dfareporting#accountPermissionGroupGroupsListResponse". Kind string `json:"kind,omitempty"` // ServerResponse contains the HTTP response code and headers from the @@ -1367,19 +1359,22 @@ type AccountUserProfile struct { // read-only field. // // Possible values: - // "INTERNAL_NON_TRAFFICKER" - // "INTERNAL_TRAFFICKER" - // "EXTERNAL_TRAFFICKER" + // "INTERNAL_NON_TRAFFICKER" - Internal profile, but is not a + // trafficker. + // "INTERNAL_TRAFFICKER" - Internal profile who is a trafficker. + // "EXTERNAL_TRAFFICKER" - External profile who is a trafficker. TraffickerType string `json:"traffickerType,omitempty"` // UserAccessType: User type of the user profile. This is a read-only // field that can be left blank. // // Possible values: - // "NORMAL_USER" - // "SUPER_USER" - // "INTERNAL_ADMINISTRATOR" - // "READ_ONLY_SUPER_USER" + // "NORMAL_USER" - Normal user managed by the customer. + // "SUPER_USER" - Super user managed by internal support teams. + // "INTERNAL_ADMINISTRATOR" - Internal administrator having super user + // access to only a specific set of networks. + // "READ_ONLY_SUPER_USER" - A super-user without permission to mutate + // any data. UserAccessType string `json:"userAccessType,omitempty"` // UserRoleFilter: Filter that describes which user roles are visible to @@ -1592,8 +1587,8 @@ type Ad struct { // Possible values: // "DISPLAY" // "DISPLAY_INTERSTITIAL" - // "APP" - // "APP_INTERSTITIAL" + // "APP" - Deprecated enum value. No longer supported. + // "APP_INTERSTITIAL" - Deprecated enum value. No longer supported. // "IN_STREAM_VIDEO" // "IN_STREAM_AUDIO" Compatibility string `json:"compatibility,omitempty"` @@ -1798,8 +1793,8 @@ type AdSlot struct { // Possible values: // "DISPLAY" // "DISPLAY_INTERSTITIAL" - // "APP" - // "APP_INTERSTITIAL" + // "APP" - Deprecated enum value. No longer supported. + // "APP_INTERSTITIAL" - Deprecated enum value. No longer supported. // "IN_STREAM_VIDEO" // "IN_STREAM_AUDIO" Compatibility string `json:"compatibility,omitempty"` @@ -1961,8 +1956,8 @@ type Advertiser struct { // Status: Status of this advertiser. // // Possible values: - // "APPROVED" - // "ON_HOLD" + // "APPROVED" - Approved (ads can deliver) + // "ON_HOLD" - On-hold (all ads are stopped) Status string `json:"status,omitempty"` // SubaccountId: Subaccount ID of this advertiser.This is a read-only @@ -3740,8 +3735,6 @@ func (s *ContentCategoriesListResponse) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// ContentCategory: Organizes placements according to the contents of -// their associated webpages. type ContentCategory struct { // AccountId: Account ID of this content category. This is a read-only // field that can be left blank. @@ -3879,7 +3872,7 @@ type Conversion struct { // required field. Ordinal string `json:"ordinal,omitempty"` - // Quantity: The quantity of the conversion. + // Quantity: The quantity of the conversion. This is a required field. Quantity int64 `json:"quantity,omitempty,string"` // TimestampMicros: The timestamp of conversion, in Unix epoch micros. @@ -3895,7 +3888,7 @@ type Conversion struct { // maximum number of user identifiers for each conversion is 5. UserIdentifiers []*UserIdentifier `json:"userIdentifiers,omitempty"` - // Value: The value of the conversion. + // Value: The value of the conversion. This is a required field. Value float64 `json:"value,omitempty"` // ForceSendFields is a list of field names (e.g. @@ -4282,8 +4275,8 @@ type Creative struct { // DISPLAY creatives when the primary asset type is HTML_IMAGE. AdditionalSizes []*Size `json:"additionalSizes,omitempty"` - // AdvertiserId: Advertiser ID of this creative. This is a required - // field. Applicable to all creative types. + // AdvertiserId: Required. Advertiser ID of this creative. This is a + // required field. Applicable to all creative types. AdvertiserId int64 `json:"advertiserId,omitempty,string"` // AllowScriptAccess: Whether script access is allowed for this @@ -4301,10 +4294,11 @@ type Creative struct { // RICH_MEDIA, and all VPAID. // // Possible values: - // "ARTWORK_TYPE_FLASH" - // "ARTWORK_TYPE_HTML5" - // "ARTWORK_TYPE_MIXED" - // "ARTWORK_TYPE_IMAGE" + // "ARTWORK_TYPE_FLASH" - The creative is a Flash creative. + // "ARTWORK_TYPE_HTML5" - The creative is HTML5. + // "ARTWORK_TYPE_MIXED" - The creative is HTML5 if available, Flash + // otherwise. + // "ARTWORK_TYPE_IMAGE" - The creative is Image. ArtworkType string `json:"artworkType,omitempty"` // AuthoringSource: Source application where creative was authored. @@ -4312,11 +4306,16 @@ type Creative struct { // Applicable to all creative types. // // Possible values: - // "CREATIVE_AUTHORING_SOURCE_DCM" - // "CREATIVE_AUTHORING_SOURCE_DBM" - // "CREATIVE_AUTHORING_SOURCE_STUDIO" - // "CREATIVE_AUTHORING_SOURCE_GWD" - // "CREATIVE_AUTHORING_SOURCE_ACS" + // "CREATIVE_AUTHORING_SOURCE_DCM" - DCM-UI or external API used to + // author the creative. + // "CREATIVE_AUTHORING_SOURCE_DBM" - DBM-UI used to author the + // creative. + // "CREATIVE_AUTHORING_SOURCE_STUDIO" - Studio-UI used to author the + // creative. + // "CREATIVE_AUTHORING_SOURCE_GWD" - Google Web Designer used to + // author the creative. + // "CREATIVE_AUTHORING_SOURCE_ACS" - ACS-UI used to author the + // creative. AuthoringSource string `json:"authoringSource,omitempty"` // AuthoringTool: Authoring tool for HTML5 banner creatives. This is a @@ -4408,7 +4407,8 @@ type Creative struct { // "INPUT_TYPE_RANGE" // "INPUT_TYPE_COLOR" // "LOCAL_STORAGE" - // "POST_MESSAGE" + // "POST_MESSAGE" - POST_MESSAGE always required due to html5 + // implementation. // "SESSION_STORAGE" // "WEB_SOCKETS" // "WEB_SQL_DATABASE" @@ -4477,8 +4477,8 @@ type Creative struct { // Possible values: // "DISPLAY" // "DISPLAY_INTERSTITIAL" - // "APP" - // "APP_INTERSTITIAL" + // "APP" - Deprecated enum value. No longer supported. + // "APP_INTERSTITIAL" - Deprecated enum value. No longer supported. // "IN_STREAM_VIDEO" // "IN_STREAM_AUDIO" Compatibility []string `json:"compatibility,omitempty"` @@ -4585,8 +4585,8 @@ type Creative struct { // INSTREAM_VIDEO, INSTREAM_AUDIO, all RICH_MEDIA, and all VPAID. MediaDuration float64 `json:"mediaDuration,omitempty"` - // Name: Name of the creative. This is a required field and must be less - // than 256 characters long. Applicable to all creative types. + // Name: Required. Name of the creative. This must be less than 256 + // characters long. Applicable to all creative types. Name string `json:"name,omitempty"` // ObaIcon: Online behavioral advertising icon to be added to the @@ -4709,10 +4709,10 @@ type Creative struct { // RICH_MEDIA, and all VPAID. TotalFileSize int64 `json:"totalFileSize,omitempty,string"` - // Type: Type of this creative. This is a required field. Applicable to - // all creative types. *Note:* FLASH_INPAGE, HTML5_BANNER, and IMAGE are - // only used for existing creatives. New creatives should use DISPLAY as - // a replacement for these types. + // Type: Required. Type of this creative. Applicable to all creative + // types. *Note:* FLASH_INPAGE, HTML5_BANNER, and IMAGE are only used + // for existing creatives. New creatives should use DISPLAY as a + // replacement for these types. // // Possible values: // "IMAGE" @@ -4832,10 +4832,11 @@ type CreativeAsset struct { // field. Applicable to the following creative types: all RICH_MEDIA. // // Possible values: - // "ARTWORK_TYPE_FLASH" - // "ARTWORK_TYPE_HTML5" - // "ARTWORK_TYPE_MIXED" - // "ARTWORK_TYPE_IMAGE" + // "ARTWORK_TYPE_FLASH" - The creative is a Flash creative. + // "ARTWORK_TYPE_HTML5" - The creative is HTML5. + // "ARTWORK_TYPE_MIXED" - The creative is HTML5 if available, Flash + // otherwise. + // "ARTWORK_TYPE_IMAGE" - The creative is Image. ArtworkType string `json:"artworkType,omitempty"` // AssetIdentifier: Identifier of this asset. This is the same @@ -4867,10 +4868,11 @@ type CreativeAsset struct { // field. Applicable to the following creative types: all VPAID. // // Possible values: - // "CHILD_ASSET_TYPE_FLASH" - // "CHILD_ASSET_TYPE_VIDEO" - // "CHILD_ASSET_TYPE_IMAGE" - // "CHILD_ASSET_TYPE_DATA" + // "CHILD_ASSET_TYPE_FLASH" - swf files + // "CHILD_ASSET_TYPE_VIDEO" - flv and any other video files types + // "CHILD_ASSET_TYPE_IMAGE" - image files + // "CHILD_ASSET_TYPE_DATA" - rest of the supported file types .txt, + // .xml etc. ChildAssetType string `json:"childAssetType,omitempty"` // CollapsedSize: Size of an asset when collapsed. This is a read-only @@ -4950,7 +4952,8 @@ type CreativeAsset struct { // "INPUT_TYPE_RANGE" // "INPUT_TYPE_COLOR" // "LOCAL_STORAGE" - // "POST_MESSAGE" + // "POST_MESSAGE" - POST_MESSAGE always required due to html5 + // implementation. // "SESSION_STORAGE" // "WEB_SOCKETS" // "WEB_SQL_DATABASE" @@ -4970,16 +4973,20 @@ type CreativeAsset struct { // Applicable to the following creative types: all RICH_MEDIA. // // Possible values: - // "ASSET_DISPLAY_TYPE_INPAGE" - // "ASSET_DISPLAY_TYPE_FLOATING" - // "ASSET_DISPLAY_TYPE_OVERLAY" - // "ASSET_DISPLAY_TYPE_EXPANDING" - // "ASSET_DISPLAY_TYPE_FLASH_IN_FLASH" - // "ASSET_DISPLAY_TYPE_FLASH_IN_FLASH_EXPANDING" - // "ASSET_DISPLAY_TYPE_PEEL_DOWN" - // "ASSET_DISPLAY_TYPE_VPAID_LINEAR" - // "ASSET_DISPLAY_TYPE_VPAID_NON_LINEAR" - // "ASSET_DISPLAY_TYPE_BACKDROP" + // "ASSET_DISPLAY_TYPE_INPAGE" - Asset exists in a box and stays + // within the box. + // "ASSET_DISPLAY_TYPE_FLOATING" - Asset exists at a self described + // location on the page. + // "ASSET_DISPLAY_TYPE_OVERLAY" - Special display type for IM clients. + // "ASSET_DISPLAY_TYPE_EXPANDING" - Asset changes size. + // "ASSET_DISPLAY_TYPE_FLASH_IN_FLASH" - Not applicable for HTML5. + // "ASSET_DISPLAY_TYPE_FLASH_IN_FLASH_EXPANDING" - Not applicable for + // HTML5. + // "ASSET_DISPLAY_TYPE_PEEL_DOWN" - Asset sits on the top right and + // expands. + // "ASSET_DISPLAY_TYPE_VPAID_LINEAR" - VPAID linear asset. + // "ASSET_DISPLAY_TYPE_VPAID_NON_LINEAR" - VPAID non linear asset. + // "ASSET_DISPLAY_TYPE_BACKDROP" - Backdrop (skin) asset. DisplayType string `json:"displayType,omitempty"` // Duration: Duration in seconds for which an asset will be displayed. @@ -4992,9 +4999,12 @@ type CreativeAsset struct { // Applicable to the following creative types: all RICH_MEDIA. // // Possible values: - // "ASSET_DURATION_TYPE_AUTO" - // "ASSET_DURATION_TYPE_NONE" - // "ASSET_DURATION_TYPE_CUSTOM" + // "ASSET_DURATION_TYPE_AUTO" - Asset is displayed for the single run + // of the time line. + // "ASSET_DURATION_TYPE_NONE" - Asset is displayed indefinitely and it + // loops on the timeline. + // "ASSET_DURATION_TYPE_CUSTOM" - User entered duration value in + // seconds. DurationType string `json:"durationType,omitempty"` // ExpandedDimension: Detected expanded dimension for video asset. This @@ -5082,9 +5092,11 @@ type CreativeAsset struct { // field. Applicable to the following creative types: all RICH_MEDIA. // // Possible values: - // "OFFSET_UNIT_PIXEL" - // "OFFSET_UNIT_PERCENT" - // "OFFSET_UNIT_PIXEL_FROM_CENTER" + // "OFFSET_UNIT_PIXEL" - Pixels on a screen. + // "OFFSET_UNIT_PERCENT" - Percent offset for center asset (rather + // than top and left). + // "OFFSET_UNIT_PIXEL_FROM_CENTER" - Pixel offset for center of asset + // from center of browser window. PositionLeftUnit string `json:"positionLeftUnit,omitempty"` // PositionTopUnit: Offset top unit for an asset. This is a read-only @@ -5092,9 +5104,11 @@ type CreativeAsset struct { // Applicable to the following creative types: all RICH_MEDIA. // // Possible values: - // "OFFSET_UNIT_PIXEL" - // "OFFSET_UNIT_PERCENT" - // "OFFSET_UNIT_PIXEL_FROM_CENTER" + // "OFFSET_UNIT_PIXEL" - Pixels on a screen. + // "OFFSET_UNIT_PERCENT" - Percent offset for center asset (rather + // than top and left). + // "OFFSET_UNIT_PIXEL_FROM_CENTER" - Pixel offset for center of asset + // from center of browser window. PositionTopUnit string `json:"positionTopUnit,omitempty"` // ProgressiveServingUrl: Progressive URL for video asset. This is a @@ -5176,8 +5190,10 @@ type CreativeAsset struct { // visible. Applicable to the following creative types: all RICH_MEDIA. // // Possible values: - // "ASSET_START_TIME_TYPE_NONE" - // "ASSET_START_TIME_TYPE_CUSTOM" + // "ASSET_START_TIME_TYPE_NONE" - Asset is not automatically + // displayed. + // "ASSET_START_TIME_TYPE_CUSTOM" - Asset is automatically displayed + // after a fixed period of time. StartTimeType string `json:"startTimeType,omitempty"` // StreamingServingUrl: Streaming URL for video asset. This is a @@ -5201,9 +5217,10 @@ type CreativeAsset struct { // RICH_MEDIA_INPAGE_FLOATING. // // Possible values: - // "OPAQUE" - // "WINDOW" - // "TRANSPARENT" + // "OPAQUE" - Allows overlapping of Html and SWF content. + // "WINDOW" - Default + // "TRANSPARENT" - Used for non-square borders. Allows overlapping of + // Html and SWF content. WindowMode string `json:"windowMode,omitempty"` // ZIndex: zIndex value of an asset. Applicable to the following @@ -5383,7 +5400,8 @@ type CreativeAssetMetadata struct { // "INPUT_TYPE_RANGE" // "INPUT_TYPE_COLOR" // "LOCAL_STORAGE" - // "POST_MESSAGE" + // "POST_MESSAGE" - POST_MESSAGE always required due to html5 + // implementation. // "SESSION_STORAGE" // "WEB_SOCKETS" // "WEB_SQL_DATABASE" @@ -5440,32 +5458,47 @@ type CreativeAssetMetadata struct { // "ZIP_INVALID" // // Possible values: - // "CLICK_TAG_NON_TOP_LEVEL" - // "CLICK_TAG_MISSING" - // "CLICK_TAG_MORE_THAN_ONE" - // "CLICK_TAG_INVALID" - // "ORPHANED_ASSET" - // "PRIMARY_HTML_MISSING" - // "EXTERNAL_FILE_REFERENCED" - // "MRAID_REFERENCED" - // "ADMOB_REFERENCED" - // "FILE_TYPE_INVALID" - // "ZIP_INVALID" - // "LINKED_FILE_NOT_FOUND" - // "MAX_FLASH_VERSION_11" - // "NOT_SSL_COMPLIANT" - // "FILE_DETAIL_EMPTY" - // "ASSET_INVALID" - // "GWD_PROPERTIES_INVALID" - // "ENABLER_UNSUPPORTED_METHOD_DCM" - // "ASSET_FORMAT_UNSUPPORTED_DCM" - // "COMPONENT_UNSUPPORTED_DCM" - // "HTML5_FEATURE_UNSUPPORTED" - // "CLICK_TAG_IN_GWD" - // "CLICK_TAG_HARD_CODED" - // "SVG_INVALID" - // "CLICK_TAG_IN_RICH_MEDIA" - // "MISSING_ENABLER_REFERENCE" + // "CLICK_TAG_NON_TOP_LEVEL" - Click tag initialization detected but + // not at the top level of the primary html file. + // "CLICK_TAG_MISSING" - No click tag detected. + // "CLICK_TAG_MORE_THAN_ONE" - More than one click tag detected. + // "CLICK_TAG_INVALID" - Click tag invalid (failed url validation). + // "ORPHANED_ASSET" - Orphaned asset not referenced. + // "PRIMARY_HTML_MISSING" - Primary html file missing. + // "EXTERNAL_FILE_REFERENCED" - Reference to a third-party resource. + // Problematic because the volume of ad serving could bring down + // unprepared web servers due to high load. e.g. + // http://www.zibble.net/smiles.gif + // "MRAID_REFERENCED" - Reference to INAPP MRAID feature. + // "ADMOB_REFERENCED" - Reference to INAPP ADMOB feature. + // "FILE_TYPE_INVALID" - Invalid file type referenced. + // "ZIP_INVALID" - Invalid zip passed in (could not extract from zip + // "LINKED_FILE_NOT_FOUND" - A relative file was linked to that wasn't + // included in zip. e.g. images/missing_file.gif + // "MAX_FLASH_VERSION_11" - Max flash version at 11. + // "NOT_SSL_COMPLIANT" - Whether the asset uses secure urls or not. + // "FILE_DETAIL_EMPTY" - File detail empty. + // "ASSET_INVALID" - Asset is not valid and could not be processed. + // "GWD_PROPERTIES_INVALID" - GWD properties are invalid. + // "ENABLER_UNSUPPORTED_METHOD_DCM" - Unsupported Enabler methods in + // DCM. + // "ASSET_FORMAT_UNSUPPORTED_DCM" - Asset ad format is unsupported in + // DCM. + // "COMPONENT_UNSUPPORTED_DCM" - Component is unsupported in DCM. + // "HTML5_FEATURE_UNSUPPORTED" - Html5 feature is unsupported. + // "CLICK_TAG_IN_GWD" - Click tag defined in GWD asset. GWD-published + // creatives should use exit events instead of defining var clickTag. + // Defined var clickTags are a symptom of an unsupported workflow, and + // an error should be thrown. + // "CLICK_TAG_HARD_CODED" - Whether the asset has hard coded click tag + // url(s). + // "SVG_INVALID" - Whether an SVG block could not be parsed. + // "CLICK_TAG_IN_RICH_MEDIA" - Click tag defined in rich media asset. + // Rich media creatives should use exit events instead of defining var + // clickTag. Defined var clickTags are a symptom of an unsupported + // workflow, and an error should be thrown. + // "MISSING_ENABLER_REFERENCE" - Rich media primary asset is missing + // the Enabler reference. WarnedValidationRules []string `json:"warnedValidationRules,omitempty"` // ServerResponse contains the HTTP response code and headers from the @@ -5687,10 +5720,11 @@ type CreativeCustomEvent struct { // field. // // Possible values: - // "ARTWORK_TYPE_FLASH" - // "ARTWORK_TYPE_HTML5" - // "ARTWORK_TYPE_MIXED" - // "ARTWORK_TYPE_IMAGE" + // "ARTWORK_TYPE_FLASH" - The creative is a Flash creative. + // "ARTWORK_TYPE_HTML5" - The creative is HTML5. + // "ARTWORK_TYPE_MIXED" - The creative is HTML5 if available, Flash + // otherwise. + // "ARTWORK_TYPE_IMAGE" - The creative is Image. ArtworkType string `json:"artworkType,omitempty"` // ExitClickThroughUrl: Exit click-through URL for the event. This field @@ -5708,11 +5742,12 @@ type CreativeCustomEvent struct { // TargetType: Target type used by the event. // // Possible values: - // "TARGET_BLANK" - // "TARGET_TOP" - // "TARGET_SELF" - // "TARGET_PARENT" - // "TARGET_POPUP" + // "TARGET_BLANK" - New tab + // "TARGET_TOP" - Current tab + // "TARGET_SELF" - Same frame + // "TARGET_PARENT" - Parent frame + // "TARGET_POPUP" - New window with properties specified in + // window_properties TargetType string `json:"targetType,omitempty"` // VideoReportingId: Video reporting ID, used to differentiate multiple @@ -6163,18 +6198,32 @@ type CreativeRotation struct { // use sequential or random rotation. // // Possible values: - // "CREATIVE_ROTATION_TYPE_SEQUENTIAL" - // "CREATIVE_ROTATION_TYPE_RANDOM" + // "CREATIVE_ROTATION_TYPE_SEQUENTIAL" - The weights of each creative + // in the rotation should be sequential starting at 1. The user may + // adjust the order. + // "CREATIVE_ROTATION_TYPE_RANDOM" - The weights are calculated + // according to the ad's CreativeRoationWeightStrategy. Type string `json:"type,omitempty"` // WeightCalculationStrategy: Strategy for calculating weights. Used // with CREATIVE_ROTATION_TYPE_RANDOM. // // Possible values: - // "WEIGHT_STRATEGY_EQUAL" - // "WEIGHT_STRATEGY_CUSTOM" - // "WEIGHT_STRATEGY_HIGHEST_CTR" - // "WEIGHT_STRATEGY_OPTIMIZED" + // "WEIGHT_STRATEGY_EQUAL" - The creative weights should all be equal + // to 1. This is the default value for all ads with a rotation type of + // Random. + // "WEIGHT_STRATEGY_CUSTOM" - The creative weights can be any user + // provided positive integer. + // "WEIGHT_STRATEGY_HIGHEST_CTR" - The weights will be automatically + // calculated giving preference to the creative that has the highest + // CTR. The CTR for campaigns that are optimized for clicks = + // clicks/impressions. The CTR for campaigns that are optimized for + // view-through or click through is sum(activities + floodlight + // weight)/impressions. + // "WEIGHT_STRATEGY_OPTIMIZED" - The creative weights will be + // automatically calculated using a formula that could not possibly be + // explained in these comments. The value will be within some + // predetermined range (probably 0 - 1,000,000). WeightCalculationStrategy string `json:"weightCalculationStrategy,omitempty"` // ForceSendFields is a list of field names (e.g. "CreativeAssignments") @@ -6603,13 +6652,13 @@ type DayPartTargeting struct { // "THURSDAY" - "FRIDAY" - "SATURDAY" // // Possible values: + // "SUNDAY" // "MONDAY" // "TUESDAY" // "WEDNESDAY" // "THURSDAY" // "FRIDAY" // "SATURDAY" - // "SUNDAY" DaysOfWeek []string `json:"daysOfWeek,omitempty"` // HoursOfDay: Hours of the day when the ad will serve, where 0 is @@ -7472,8 +7521,10 @@ type EventTag struct { // specified then the event tag will be applied to all sites. // // Possible values: - // "ALLOWLIST" - // "BLOCKLIST" + // "ALLOWLIST" - The event tag should only ever fire on specified + // sites. + // "BLOCKLIST" - The event tag should fire on all sites EXCEPT the + // specified sites. SiteFilterType string `json:"siteFilterType,omitempty"` // SiteIds: Filter list of site IDs associated with this event tag. The @@ -7503,9 +7554,12 @@ type EventTag struct { // required field. // // Possible values: - // "IMPRESSION_IMAGE_EVENT_TAG" - // "IMPRESSION_JAVASCRIPT_EVENT_TAG" - // "CLICK_THROUGH_EVENT_TAG" + // "IMPRESSION_IMAGE_EVENT_TAG" - A third-party pixel for impression + // tracking. + // "IMPRESSION_JAVASCRIPT_EVENT_TAG" - A third-party JavaScript URL + // for impression tracking. + // "CLICK_THROUGH_EVENT_TAG" - A third-party URL for click tracking + // that redirects to the landing page. Type string `json:"type,omitempty"` // Url: Payload URL for this event tag. The URL on a click-through event @@ -7926,11 +7980,17 @@ type FloodlightActivity struct { // activity. This is a required field. // // Possible values: - // "STANDARD_COUNTING" - // "UNIQUE_COUNTING" - // "SESSION_COUNTING" - // "TRANSACTIONS_COUNTING" - // "ITEMS_SOLD_COUNTING" + // "STANDARD_COUNTING" - Count every conversion. + // "UNIQUE_COUNTING" - Count the first conversion for each unique user + // during each 24-hour day, from midnight to midnight, Eastern Time. + // "SESSION_COUNTING" - Count one conversion per user per session. + // Session length is set by the site where the Spotlight tag is + // deployed. + // "TRANSACTIONS_COUNTING" - Count all conversions, plus the total + // number of sales that take place and the total revenue for these + // transactions. + // "ITEMS_SOLD_COUNTING" - Count each conversion, plus the total + // number of items sold and the total revenue for these sales. CountingMethod string `json:"countingMethod,omitempty"` // DefaultTags: Dynamic floodlight tags. @@ -8426,12 +8486,9 @@ type FloodlightConfiguration struct { // converting. ExposureToConversionEnabled bool `json:"exposureToConversionEnabled,omitempty"` - // FirstDayOfWeek: Day that will be counted as the first day of the week - // in reports. This is a required field. - // // Possible values: - // "MONDAY" // "SUNDAY" + // "MONDAY" FirstDayOfWeek string `json:"firstDayOfWeek,omitempty"` // Id: ID of this floodlight configuration. This is a read-only, @@ -8635,8 +8692,9 @@ type FsCommand struct { // PositionOption: Position in the browser where the window will open. // // Possible values: - // "CENTERED" - // "DISTANCE_FROM_TOP_LEFT_CORNER" + // "CENTERED" - Center of the window Corresponds to "center" in UI + // "DISTANCE_FROM_TOP_LEFT_CORNER" - user-defined distance from top + // left-hand corner of the window Corresponds to "top-left" in UI PositionOption string `json:"positionOption,omitempty"` // Top: Distance from the top of the browser. Applicable when @@ -9426,17 +9484,19 @@ func (s *LookbackConfiguration) MarshalJSON() ([]byte, error) { } type MeasurementPartnerAdvertiserLink struct { - // LinkStatus: . + // LinkStatus: Status of the partner link. // // Possible values: - // "MEASUREMENT_PARTNER_UNLINKED" - // "MEASUREMENT_PARTNER_LINKED" - // "MEASUREMENT_PARTNER_LINK_PENDING" - // "MEASUREMENT_PARTNER_LINK_FAILURE" - // "MEASUREMENT_PARTNER_LINK_OPT_OUT" - // "MEASUREMENT_PARTNER_LINK_OPT_OUT_PENDING" - // "MEASUREMENT_PARTNER_LINK_WRAPPING_PENDING" - // "MEASUREMENT_PARTNER_MODE_CHANGE_PENDING" + // "MEASUREMENT_PARTNER_UNLINKED" - Unlinked. + // "MEASUREMENT_PARTNER_LINKED" - Linked successfully + // "MEASUREMENT_PARTNER_LINK_PENDING" - Link pending for wrapping. + // "MEASUREMENT_PARTNER_LINK_FAILURE" - Linking failure. + // "MEASUREMENT_PARTNER_LINK_OPT_OUT" - Link opt-out by user. + // "MEASUREMENT_PARTNER_LINK_OPT_OUT_PENDING" - Link opt-out pending + // sync. + // "MEASUREMENT_PARTNER_LINK_WRAPPING_PENDING" - Link wrap answer + // pending. + // "MEASUREMENT_PARTNER_MODE_CHANGE_PENDING" - Mode change pending. LinkStatus string `json:"linkStatus,omitempty"` // MeasurementPartner: Measurement partner used for tag wrapping. @@ -9447,7 +9507,7 @@ type MeasurementPartnerAdvertiserLink struct { // "DOUBLE_VERIFY" MeasurementPartner string `json:"measurementPartner,omitempty"` - // PartnerAdvertiserId: . + // PartnerAdvertiserId: partner Advertiser Id. PartnerAdvertiserId string `json:"partnerAdvertiserId,omitempty"` // ForceSendFields is a list of field names (e.g. "LinkStatus") to @@ -9477,14 +9537,16 @@ type MeasurementPartnerCampaignLink struct { // LinkStatus: . // // Possible values: - // "MEASUREMENT_PARTNER_UNLINKED" - // "MEASUREMENT_PARTNER_LINKED" - // "MEASUREMENT_PARTNER_LINK_PENDING" - // "MEASUREMENT_PARTNER_LINK_FAILURE" - // "MEASUREMENT_PARTNER_LINK_OPT_OUT" - // "MEASUREMENT_PARTNER_LINK_OPT_OUT_PENDING" - // "MEASUREMENT_PARTNER_LINK_WRAPPING_PENDING" - // "MEASUREMENT_PARTNER_MODE_CHANGE_PENDING" + // "MEASUREMENT_PARTNER_UNLINKED" - Unlinked. + // "MEASUREMENT_PARTNER_LINKED" - Linked successfully + // "MEASUREMENT_PARTNER_LINK_PENDING" - Link pending for wrapping. + // "MEASUREMENT_PARTNER_LINK_FAILURE" - Linking failure. + // "MEASUREMENT_PARTNER_LINK_OPT_OUT" - Link opt-out by user. + // "MEASUREMENT_PARTNER_LINK_OPT_OUT_PENDING" - Link opt-out pending + // sync. + // "MEASUREMENT_PARTNER_LINK_WRAPPING_PENDING" - Link wrap answer + // pending. + // "MEASUREMENT_PARTNER_MODE_CHANGE_PENDING" - Mode change pending. LinkStatus string `json:"linkStatus,omitempty"` // MeasurementPartner: Measurement partner used for tag wrapping. @@ -9527,14 +9589,16 @@ type MeasurementPartnerWrappingData struct { // LinkStatus: Placement wrapping status. // // Possible values: - // "MEASUREMENT_PARTNER_UNLINKED" - // "MEASUREMENT_PARTNER_LINKED" - // "MEASUREMENT_PARTNER_LINK_PENDING" - // "MEASUREMENT_PARTNER_LINK_FAILURE" - // "MEASUREMENT_PARTNER_LINK_OPT_OUT" - // "MEASUREMENT_PARTNER_LINK_OPT_OUT_PENDING" - // "MEASUREMENT_PARTNER_LINK_WRAPPING_PENDING" - // "MEASUREMENT_PARTNER_MODE_CHANGE_PENDING" + // "MEASUREMENT_PARTNER_UNLINKED" - Unlinked. + // "MEASUREMENT_PARTNER_LINKED" - Linked successfully + // "MEASUREMENT_PARTNER_LINK_PENDING" - Link pending for wrapping. + // "MEASUREMENT_PARTNER_LINK_FAILURE" - Linking failure. + // "MEASUREMENT_PARTNER_LINK_OPT_OUT" - Link opt-out by user. + // "MEASUREMENT_PARTNER_LINK_OPT_OUT_PENDING" - Link opt-out pending + // sync. + // "MEASUREMENT_PARTNER_LINK_WRAPPING_PENDING" - Link wrap answer + // pending. + // "MEASUREMENT_PARTNER_MODE_CHANGE_PENDING" - Mode change pending. LinkStatus string `json:"linkStatus,omitempty"` // MeasurementPartner: Measurement partner used for wrapping the @@ -9596,7 +9660,7 @@ type Metric struct { // Kind: The kind of resource this is, in this case dfareporting#metric. Kind string `json:"kind,omitempty"` - // Name: The metric name, e.g. dfa:impressions + // Name: The metric name, e.g. impressions Name string `json:"name,omitempty"` // ForceSendFields is a list of field names (e.g. "Kind") to @@ -9963,9 +10027,9 @@ type ObjectFilter struct { // objectIds list. // // Possible values: - // "NONE" - // "ASSIGNED" - // "ALL" + // "NONE" - Profile has access to none of the objects. + // "ASSIGNED" - Profile has access to only specific objects. + // "ALL" - Profile has access to all objects. Status string `json:"status,omitempty"` // ForceSendFields is a list of field names (e.g. "Kind") to @@ -10462,133 +10526,6 @@ func (s *OrderContact) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// OrderDocument: Contains properties of a Planning order document. -type OrderDocument struct { - // AccountId: Account ID of this order document. - AccountId int64 `json:"accountId,omitempty,string"` - - // AdvertiserId: Advertiser ID of this order document. - AdvertiserId int64 `json:"advertiserId,omitempty,string"` - - // AmendedOrderDocumentId: The amended order document ID of this order - // document. An order document can be created by optionally amending - // another order document so that the change history can be preserved. - AmendedOrderDocumentId int64 `json:"amendedOrderDocumentId,omitempty,string"` - - // ApprovedByUserProfileIds: IDs of users who have approved this order - // document. - ApprovedByUserProfileIds googleapi.Int64s `json:"approvedByUserProfileIds,omitempty"` - - // Cancelled: Whether this order document is cancelled. - Cancelled bool `json:"cancelled,omitempty"` - - // CreatedInfo: Information about the creation of this order document. - CreatedInfo *LastModifiedInfo `json:"createdInfo,omitempty"` - - EffectiveDate string `json:"effectiveDate,omitempty"` - - // Id: ID of this order document. - Id int64 `json:"id,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#orderDocument". - Kind string `json:"kind,omitempty"` - - // LastSentRecipients: List of email addresses that received the last - // sent document. - LastSentRecipients []string `json:"lastSentRecipients,omitempty"` - - LastSentTime string `json:"lastSentTime,omitempty"` - - // OrderId: ID of the order from which this order document is created. - OrderId int64 `json:"orderId,omitempty,string"` - - // ProjectId: Project ID of this order document. - ProjectId int64 `json:"projectId,omitempty,string"` - - // Signed: Whether this order document has been signed. - Signed bool `json:"signed,omitempty"` - - // SubaccountId: Subaccount ID of this order document. - SubaccountId int64 `json:"subaccountId,omitempty,string"` - - // Title: Title of this order document. - Title string `json:"title,omitempty"` - - // Type: Type of this order document - // - // Possible values: - // "PLANNING_ORDER_TYPE_INSERTION_ORDER" - // "PLANNING_ORDER_TYPE_CHANGE_ORDER" - Type string `json:"type,omitempty"` - - // ServerResponse contains the HTTP response code and headers from the - // server. - googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "AccountId") 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. "AccountId") 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 *OrderDocument) MarshalJSON() ([]byte, error) { - type NoMethod OrderDocument - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// OrderDocumentsListResponse: Order document List Response -type OrderDocumentsListResponse struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#orderDocumentsListResponse". - Kind string `json:"kind,omitempty"` - - // NextPageToken: Pagination token to be used for the next list - // operation. - NextPageToken string `json:"nextPageToken,omitempty"` - - // OrderDocuments: Order document collection - OrderDocuments []*OrderDocument `json:"orderDocuments,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 *OrderDocumentsListResponse) MarshalJSON() ([]byte, error) { - type NoMethod OrderDocumentsListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - // OrdersListResponse: Order List Response type OrdersListResponse struct { // Kind: Identifies what kind of resource this is. Value: the fixed @@ -10882,8 +10819,8 @@ type Placement struct { // Possible values: // "DISPLAY" // "DISPLAY_INTERSTITIAL" - // "APP" - // "APP_INTERSTITIAL" + // "APP" - Deprecated enum value. No longer supported. + // "APP_INTERSTITIAL" - Deprecated enum value. No longer supported. // "IN_STREAM_VIDEO" // "IN_STREAM_AUDIO" Compatibility string `json:"compatibility,omitempty"` @@ -11001,12 +10938,19 @@ type Placement struct { // Status: Third-party placement status. // // Possible values: - // "PENDING_REVIEW" - // "PAYMENT_ACCEPTED" - // "PAYMENT_REJECTED" - // "ACKNOWLEDGE_REJECTION" - // "ACKNOWLEDGE_ACCEPTANCE" - // "DRAFT" + // "PENDING_REVIEW" - Placement is not yet reviewed by publisher. + // "PAYMENT_ACCEPTED" - Placement Ad Serving fee is accepted by + // publisher + // "PAYMENT_REJECTED" - Placement Ad Serving fee is rejected by + // publisher + // "ACKNOWLEDGE_REJECTION" - Advertisers has accepted rejection of + // placement ad serving fee. This will suppress future notification on + // DDMM UI + // "ACKNOWLEDGE_ACCEPTANCE" - Advertisers has accepted acceptance of + // placement ad serving fee. This will suppress future notification on + // DDMM UI + // "DRAFT" - Advertisers is still working on placement not yet ready + // for Publisher review; default status for pub-paid placements Status string `json:"status,omitempty"` // SubaccountId: Subaccount ID of this placement. This field can be left @@ -11076,7 +11020,8 @@ type Placement struct { // following values are provided: FLASH, BOTH. // // Possible values: - // "DEFAULT" + // "DEFAULT" - DEFAULT means Google chooses which adapter, if any, to + // serve. // "FLASH" // "HTML5" // "BOTH" @@ -11244,8 +11189,13 @@ type PlacementGroup struct { // is required on insertion. // // Possible values: - // "PLACEMENT_PACKAGE" - // "PLACEMENT_ROADBLOCK" + // "PLACEMENT_PACKAGE" - A simple group of site-placements (tags). + // Basically acts as a single pricing point for a group of tags. + // "PLACEMENT_ROADBLOCK" - A group of site-placements (tags) that not + // only acts as a single pricing point but also assumes that all the + // tags in it will be served at the same time. This kind of group + // requires one of its assigned site-placements to be marked as primary + // for reporting purposes. PlacementGroupType string `json:"placementGroupType,omitempty"` // PlacementStrategyId: ID of the placement strategy assigned to this @@ -11631,8 +11581,9 @@ type PopupWindowProperties struct { // coordinate. // // Possible values: - // "CENTER" - // "COORDINATES" + // "CENTER" - window positioning at center. + // "COORDINATES" - window positioning by upper left corner + // coordinates. PositionType string `json:"positionType,omitempty"` // ShowAddressBar: Whether to display the browser address bar. @@ -11760,7 +11711,6 @@ func (s *PostalCodesListResponse) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// Pricing: Pricing Information type Pricing struct { // CapCostType: Cap cost type of this inventory item. // @@ -11787,8 +11737,14 @@ type Pricing struct { // requires one of its assigned inventory items to be marked as primary. // // Possible values: - // "PLANNING_PLACEMENT_GROUP_TYPE_PACKAGE" - // "PLANNING_PLACEMENT_GROUP_TYPE_ROADBLOCK" + // "PLANNING_PLACEMENT_GROUP_TYPE_PACKAGE" - A placement package + // represents "package pricing": Pricing and flight information is + // defined on the package, not on its child placements. The placements + // in a package do not need to be on the same page. + // "PLANNING_PLACEMENT_GROUP_TYPE_ROADBLOCK" - A roadblock represents + // a set of placements that are all the same page. One of the child + // placements is designated as the "primary" placement for reporting + // purposes. GroupType string `json:"groupType,omitempty"` // PricingType: Pricing type of this inventory item. @@ -11900,7 +11856,7 @@ type PricingSchedulePricingPeriod struct { PricingComment string `json:"pricingComment,omitempty"` // RateOrCostNanos: Rate or cost of this pricing period in nanos (i.e., - // multipled by 1000000000). Acceptable values are 0 to + // multiplied by 1000000000). Acceptable values are 0 to // 1000000000000000000, inclusive. RateOrCostNanos int64 `json:"rateOrCostNanos,omitempty,string"` @@ -12309,17 +12265,18 @@ type RemarketingList struct { // ListSource: Product from which this remarketing list was originated. // // Possible values: - // "REMARKETING_LIST_SOURCE_OTHER" - // "REMARKETING_LIST_SOURCE_ADX" - // "REMARKETING_LIST_SOURCE_DFP" - // "REMARKETING_LIST_SOURCE_XFP" - // "REMARKETING_LIST_SOURCE_DFA" - // "REMARKETING_LIST_SOURCE_GA" - // "REMARKETING_LIST_SOURCE_YOUTUBE" - // "REMARKETING_LIST_SOURCE_DBM" - // "REMARKETING_LIST_SOURCE_GPLUS" - // "REMARKETING_LIST_SOURCE_DMP" - // "REMARKETING_LIST_SOURCE_PLAY_STORE" + // "REMARKETING_LIST_SOURCE_OTHER" - covers sources not supported in + // DCM other than those listed below + // "REMARKETING_LIST_SOURCE_ADX" - ADX + // "REMARKETING_LIST_SOURCE_DFP" - DFP + // "REMARKETING_LIST_SOURCE_XFP" - XFP + // "REMARKETING_LIST_SOURCE_DFA" - DoubleClick Campaign Manager + // "REMARKETING_LIST_SOURCE_GA" - Google Analytics Premium + // "REMARKETING_LIST_SOURCE_YOUTUBE" - Youtube + // "REMARKETING_LIST_SOURCE_DBM" - DoubleClick Bid Manager + // "REMARKETING_LIST_SOURCE_GPLUS" - G+ + // "REMARKETING_LIST_SOURCE_DMP" - DoubleClick Audience Center + // "REMARKETING_LIST_SOURCE_PLAY_STORE" - Playstore ListSource string `json:"listSource,omitempty"` // Name: Name of the remarketing list. This is a required field. Must be @@ -13613,7 +13570,8 @@ type SiteSettings struct { // HTML5 when the following values are provided: FLASH, BOTH. // // Possible values: - // "DEFAULT" + // "DEFAULT" - DEFAULT means Google chooses which adapter, if any, to + // serve. // "FLASH" // "HTML5" // "BOTH" @@ -14166,9 +14124,18 @@ type TagSetting struct { // can then add keywords to those placeholders. // // Possible values: - // "PLACEHOLDER_WITH_LIST_OF_KEYWORDS" - // "IGNORE" - // "GENERATE_SEPARATE_TAG_FOR_EACH_KEYWORD" + // "PLACEHOLDER_WITH_LIST_OF_KEYWORDS" - Creates DART ad tags with a + // placeholder, such as kw=[keyword] and a list of keywords. The site + // trafficker must replace [keyword] with the keywords targeted by an + // ad. + // "IGNORE" - Creates DART ad tags that do not have a placeholder for + // keywords and creates a list of keywords separately from the DART ad + // tags. Use this option if the site uses a keyword referrer or is a + // site that uses DART for Publishers. + // "GENERATE_SEPARATE_TAG_FOR_EACH_KEYWORD" - Results in unique tag + // generation for each relevant keyword during tag export. For example, + // an ad with three keywords will generate three tags with each tag + // having its kw= parameter filled in with the relevant keyword values. KeywordOption string `json:"keywordOption,omitempty"` // ForceSendFields is a list of field names (e.g. "AdditionalKeyValues") @@ -14236,9 +14203,12 @@ type TargetWindow struct { // of the flash creative can be displayed. // // Possible values: - // "NEW_WINDOW" - // "CURRENT_WINDOW" - // "CUSTOM" + // "NEW_WINDOW" - Open up a new window to display the backup image + // Corresponds to "_blank" in html + // "CURRENT_WINDOW" - Use the current window to display the backup + // image Corresponds to "_top" in html + // "CUSTOM" - User-defined HTML used to display the backup image + // Corresponds to "other" TargetWindowOption string `json:"targetWindowOption,omitempty"` // ForceSendFields is a list of field names (e.g. "CustomHtml") to @@ -14268,7 +14238,7 @@ func (s *TargetWindow) MarshalJSON() ([]byte, error) { // remarketing list. Remarketing enables you to create lists of users // who have performed specific actions on a site, then target ads to // members of those lists. This resource is a read-only view of a -// remarketing list to be used to faciliate targeting ads to specific +// remarketing list to be used to facilitate targeting ads to specific // lists. Remarketing lists that are owned by your advertisers and those // that are shared to your advertisers or account are accessible via // this resource. To manage remarketing lists that are owned by your @@ -14311,17 +14281,18 @@ type TargetableRemarketingList struct { // originated. // // Possible values: - // "REMARKETING_LIST_SOURCE_OTHER" - // "REMARKETING_LIST_SOURCE_ADX" - // "REMARKETING_LIST_SOURCE_DFP" - // "REMARKETING_LIST_SOURCE_XFP" - // "REMARKETING_LIST_SOURCE_DFA" - // "REMARKETING_LIST_SOURCE_GA" - // "REMARKETING_LIST_SOURCE_YOUTUBE" - // "REMARKETING_LIST_SOURCE_DBM" - // "REMARKETING_LIST_SOURCE_GPLUS" - // "REMARKETING_LIST_SOURCE_DMP" - // "REMARKETING_LIST_SOURCE_PLAY_STORE" + // "REMARKETING_LIST_SOURCE_OTHER" - covers sources not supported in + // DCM other than those listed below + // "REMARKETING_LIST_SOURCE_ADX" - ADX + // "REMARKETING_LIST_SOURCE_DFP" - DFP + // "REMARKETING_LIST_SOURCE_XFP" - XFP + // "REMARKETING_LIST_SOURCE_DFA" - DoubleClick Campaign Manager + // "REMARKETING_LIST_SOURCE_GA" - Google Analytics Premium + // "REMARKETING_LIST_SOURCE_YOUTUBE" - Youtube + // "REMARKETING_LIST_SOURCE_DBM" - DoubleClick Bid Manager + // "REMARKETING_LIST_SOURCE_GPLUS" - G+ + // "REMARKETING_LIST_SOURCE_DMP" - DoubleClick Audience Center + // "REMARKETING_LIST_SOURCE_PLAY_STORE" - Playstore ListSource string `json:"listSource,omitempty"` // Name: Name of the targetable remarketing list. Is no greater than 128 @@ -14623,25 +14594,43 @@ type ThirdPartyTrackingUrl struct { // in-stream audio creatives. // // Possible values: - // "IMPRESSION" - // "CLICK_TRACKING" - // "VIDEO_START" - // "VIDEO_FIRST_QUARTILE" - // "VIDEO_MIDPOINT" - // "VIDEO_THIRD_QUARTILE" - // "VIDEO_COMPLETE" - // "VIDEO_MUTE" - // "VIDEO_PAUSE" - // "VIDEO_REWIND" - // "VIDEO_FULLSCREEN" - // "VIDEO_STOP" - // "VIDEO_CUSTOM" - // "SURVEY" - // "RICH_MEDIA_IMPRESSION" - // "RICH_MEDIA_RM_IMPRESSION" - // "RICH_MEDIA_BACKUP_IMPRESSION" - // "VIDEO_SKIP" - // "VIDEO_PROGRESS" + // "IMPRESSION" - Used to count impressions of the ad after video + // buffering is complete. + // "CLICK_TRACKING" - Used to track user clicks on the video. + // "VIDEO_START" - Used to track the number of times a user starts a + // video. + // "VIDEO_FIRST_QUARTILE" - Used to track the number of times the + // video plays to 25% of its length. + // "VIDEO_MIDPOINT" - Used to track the number of times the video + // plays to 50% of its length. + // "VIDEO_THIRD_QUARTILE" - Used to track the number of times the + // video plays to 75% of its length. + // "VIDEO_COMPLETE" - Used to track the number of times the video + // plays to the end. + // "VIDEO_MUTE" - Used to track the number of times a user mutes the + // video. + // "VIDEO_PAUSE" - Used to track the number of times a user pauses the + // video. + // "VIDEO_REWIND" - Used to track the number of times a user replays + // the video. + // "VIDEO_FULLSCREEN" - Used to track the number of times a user + // expands the video to full-screen size. + // "VIDEO_STOP" - Used to track the number of times a user stops the + // video. + // "VIDEO_CUSTOM" - Used to track the number of times a user performs + // a custom click, such as clicking on a video hot spot. + // "SURVEY" - Used for DFA6 compatibility, this is deprecating in + // favor of event tags. + // "RICH_MEDIA_IMPRESSION" - Used by Studio RichMediaCreative, maps to + // its thirdPartyImpressionsUrl + // "RICH_MEDIA_RM_IMPRESSION" - Used by Studio RichMediaCreative, maps + // to its thirdPartyRichMediaImpressionsUrl + // "RICH_MEDIA_BACKUP_IMPRESSION" - Used by Studio RichMediaCreative, + // maps to its thirdPartyBackupImageImpressionsUrl + // "VIDEO_SKIP" - Used to track the number of times the video was + // skipped. + // "VIDEO_PROGRESS" - Used to track the number of times the video + // plays to an offset determined by the user. ThirdPartyUrlType string `json:"thirdPartyUrlType,omitempty"` // Url: URL for the specified third-party URL type. @@ -15093,12 +15082,14 @@ type UserRolePermission struct { // Availability: Levels of availability for a user role permission. // // Possible values: - // "NOT_AVAILABLE_BY_DEFAULT" - // "ACCOUNT_BY_DEFAULT" - // "SUBACCOUNT_AND_ACCOUNT_BY_DEFAULT" - // "ACCOUNT_ALWAYS" - // "SUBACCOUNT_AND_ACCOUNT_ALWAYS" - // "USER_PROFILE_ONLY" + // "NOT_AVAILABLE_BY_DEFAULT" - Not available by default. + // "ACCOUNT_BY_DEFAULT" - Available by default to accounts only. + // "SUBACCOUNT_AND_ACCOUNT_BY_DEFAULT" - Available by default to both + // accounts and subaccounts. + // "ACCOUNT_ALWAYS" - Always available to accounts. + // "SUBACCOUNT_AND_ACCOUNT_ALWAYS" - Always available to both accounts + // and subaccounts. + // "USER_PROFILE_ONLY" - Available for user profile permissions only. Availability string `json:"availability,omitempty"` // Id: ID of this user role permission. @@ -15603,7 +15594,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, "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 { @@ -15656,7 +15647,7 @@ func (c *AccountActiveAdSummariesGetCall) Do(opts ...googleapi.CallOption) (*Acc return ret, nil // { // "description": "Gets the account's active ad summary by account ID.", - // "flatPath": "userprofiles/{profileId}/accountActiveAdSummaries/{summaryAccountId}", + // "flatPath": "userprofiles/{userprofilesId}/accountActiveAdSummaries/{accountActiveAdSummariesId}", // "httpMethod": "GET", // "id": "dfareporting.accountActiveAdSummaries.get", // "parameterOrder": [ @@ -15668,6 +15659,7 @@ func (c *AccountActiveAdSummariesGetCall) Do(opts ...googleapi.CallOption) (*Acc // "description": "User profile ID associated with this request.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // }, @@ -15675,11 +15667,12 @@ func (c *AccountActiveAdSummariesGetCall) Do(opts ...googleapi.CallOption) (*Acc // "description": "Account ID.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "userprofiles/{profileId}/accountActiveAdSummaries/{summaryAccountId}", + // "path": "userprofiles/{+profileId}/accountActiveAdSummaries/{+summaryAccountId}", // "response": { // "$ref": "AccountActiveAdSummary" // }, @@ -15761,7 +15754,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, "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 { @@ -15814,7 +15807,7 @@ func (c *AccountPermissionGroupsGetCall) Do(opts ...googleapi.CallOption) (*Acco return ret, nil // { // "description": "Gets one account permission group by ID.", - // "flatPath": "userprofiles/{profileId}/accountPermissionGroups/{id}", + // "flatPath": "userprofiles/{userprofilesId}/accountPermissionGroups/{accountPermissionGroupsId}", // "httpMethod": "GET", // "id": "dfareporting.accountPermissionGroups.get", // "parameterOrder": [ @@ -15826,6 +15819,7 @@ func (c *AccountPermissionGroupsGetCall) Do(opts ...googleapi.CallOption) (*Acco // "description": "Account permission group ID.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // }, @@ -15833,11 +15827,12 @@ func (c *AccountPermissionGroupsGetCall) Do(opts ...googleapi.CallOption) (*Acco // "description": "User profile ID associated with this request.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "userprofiles/{profileId}/accountPermissionGroups/{id}", + // "path": "userprofiles/{+profileId}/accountPermissionGroups/{+id}", // "response": { // "$ref": "AccountPermissionGroup" // }, @@ -15916,7 +15911,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, "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 { @@ -15969,7 +15964,7 @@ func (c *AccountPermissionGroupsListCall) Do(opts ...googleapi.CallOption) (*Acc return ret, nil // { // "description": "Retrieves the list of account permission groups.", - // "flatPath": "userprofiles/{profileId}/accountPermissionGroups", + // "flatPath": "userprofiles/{userprofilesId}/accountPermissionGroups", // "httpMethod": "GET", // "id": "dfareporting.accountPermissionGroups.list", // "parameterOrder": [ @@ -15980,11 +15975,12 @@ func (c *AccountPermissionGroupsListCall) Do(opts ...googleapi.CallOption) (*Acc // "description": "User profile ID associated with this request.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "userprofiles/{profileId}/accountPermissionGroups", + // "path": "userprofiles/{+profileId}/accountPermissionGroups", // "response": { // "$ref": "AccountPermissionGroupsListResponse" // }, @@ -16066,7 +16062,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, "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 { @@ -16119,7 +16115,7 @@ func (c *AccountPermissionsGetCall) Do(opts ...googleapi.CallOption) (*AccountPe return ret, nil // { // "description": "Gets one account permission by ID.", - // "flatPath": "userprofiles/{profileId}/accountPermissions/{id}", + // "flatPath": "userprofiles/{userprofilesId}/accountPermissions/{accountPermissionsId}", // "httpMethod": "GET", // "id": "dfareporting.accountPermissions.get", // "parameterOrder": [ @@ -16131,6 +16127,7 @@ func (c *AccountPermissionsGetCall) Do(opts ...googleapi.CallOption) (*AccountPe // "description": "Account permission ID.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // }, @@ -16138,11 +16135,12 @@ func (c *AccountPermissionsGetCall) Do(opts ...googleapi.CallOption) (*AccountPe // "description": "User profile ID associated with this request.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "userprofiles/{profileId}/accountPermissions/{id}", + // "path": "userprofiles/{+profileId}/accountPermissions/{+id}", // "response": { // "$ref": "AccountPermission" // }, @@ -16221,7 +16219,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, "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 { @@ -16273,7 +16271,7 @@ func (c *AccountPermissionsListCall) Do(opts ...googleapi.CallOption) (*AccountP return ret, nil // { // "description": "Retrieves the list of account permissions.", - // "flatPath": "userprofiles/{profileId}/accountPermissions", + // "flatPath": "userprofiles/{userprofilesId}/accountPermissions", // "httpMethod": "GET", // "id": "dfareporting.accountPermissions.list", // "parameterOrder": [ @@ -16284,11 +16282,12 @@ func (c *AccountPermissionsListCall) Do(opts ...googleapi.CallOption) (*AccountP // "description": "User profile ID associated with this request.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "userprofiles/{profileId}/accountPermissions", + // "path": "userprofiles/{+profileId}/accountPermissions", // "response": { // "$ref": "AccountPermissionsListResponse" // }, @@ -16370,7 +16369,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, "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 { @@ -16423,7 +16422,7 @@ func (c *AccountUserProfilesGetCall) Do(opts ...googleapi.CallOption) (*AccountU return ret, nil // { // "description": "Gets one account user profile by ID.", - // "flatPath": "userprofiles/{profileId}/accountUserProfiles/{id}", + // "flatPath": "userprofiles/{profileId}/accountUserProfiles/{accountUserProfilesId}", // "httpMethod": "GET", // "id": "dfareporting.accountUserProfiles.get", // "parameterOrder": [ @@ -16435,6 +16434,7 @@ func (c *AccountUserProfilesGetCall) Do(opts ...googleapi.CallOption) (*AccountU // "description": "User profile ID.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // }, @@ -16446,7 +16446,7 @@ func (c *AccountUserProfilesGetCall) Do(opts ...googleapi.CallOption) (*AccountU // "type": "string" // } // }, - // "path": "userprofiles/{profileId}/accountUserProfiles/{id}", + // "path": "userprofiles/{profileId}/accountUserProfiles/{+id}", // "response": { // "$ref": "AccountUserProfile" // }, @@ -16518,7 +16518,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, "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 { @@ -16570,7 +16570,7 @@ func (c *AccountUserProfilesInsertCall) Do(opts ...googleapi.CallOption) (*Accou return ret, nil // { // "description": "Inserts a new account user profile.", - // "flatPath": "userprofiles/{profileId}/accountUserProfiles", + // "flatPath": "userprofiles/{userprofilesId}/accountUserProfiles", // "httpMethod": "POST", // "id": "dfareporting.accountUserProfiles.insert", // "parameterOrder": [ @@ -16581,11 +16581,12 @@ func (c *AccountUserProfilesInsertCall) Do(opts ...googleapi.CallOption) (*Accou // "description": "User profile ID associated with this request.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "userprofiles/{profileId}/accountUserProfiles", + // "path": "userprofiles/{+profileId}/accountUserProfiles", // "request": { // "$ref": "AccountUserProfile" // }, @@ -16683,8 +16684,8 @@ func (c *AccountUserProfilesListCall) SortField(sortField string) *AccountUserPr // // Possible values: // -// "ASCENDING" (default) -// "DESCENDING" +// "ASCENDING" (default) - Ascending order. +// "DESCENDING" - Descending order. func (c *AccountUserProfilesListCall) SortOrder(sortOrder string) *AccountUserProfilesListCall { c.urlParams_.Set("sortOrder", sortOrder) return c @@ -16752,7 +16753,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, "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 { @@ -16804,7 +16805,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": "userprofiles/{profileId}/accountUserProfiles", + // "flatPath": "userprofiles/{userprofilesId}/accountUserProfiles", // "httpMethod": "GET", // "id": "dfareporting.accountUserProfiles.list", // "parameterOrder": [ @@ -16828,8 +16829,6 @@ func (c *AccountUserProfilesListCall) Do(opts ...googleapi.CallOption) (*Account // "description": "Maximum number of results to return.", // "format": "int32", // "location": "query", - // "maximum": "1000", - // "minimum": "0", // "type": "integer" // }, // "pageToken": { @@ -16841,6 +16840,7 @@ func (c *AccountUserProfilesListCall) Do(opts ...googleapi.CallOption) (*Account // "description": "User profile ID associated with this request.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // }, @@ -16871,8 +16871,8 @@ func (c *AccountUserProfilesListCall) Do(opts ...googleapi.CallOption) (*Account // "DESCENDING" // ], // "enumDescriptions": [ - // "", - // "" + // "Ascending order.", + // "Descending order." // ], // "location": "query", // "type": "string" @@ -16890,7 +16890,7 @@ func (c *AccountUserProfilesListCall) Do(opts ...googleapi.CallOption) (*Account // "type": "string" // } // }, - // "path": "userprofiles/{profileId}/accountUserProfiles", + // "path": "userprofiles/{+profileId}/accountUserProfiles", // "response": { // "$ref": "AccountUserProfilesListResponse" // }, @@ -16933,8 +16933,8 @@ type AccountUserProfilesPatchCall struct { header_ http.Header } -// Patch: Updates an existing account user profile. This method supports -// patch semantics. +// Patch: Updates an existing user role. This method supports patch +// semantics. // // - id: AccountUserProfile ID. // - profileId: User profile ID associated with this request. @@ -16986,7 +16986,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, "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 { @@ -17037,8 +17037,8 @@ func (c *AccountUserProfilesPatchCall) Do(opts ...googleapi.CallOption) (*Accoun } return ret, nil // { - // "description": "Updates an existing account user profile. This method supports patch semantics.", - // "flatPath": "userprofiles/{profileId}/accountUserProfiles", + // "description": "Updates an existing user role. This method supports patch semantics.", + // "flatPath": "userprofiles/{userprofilesId}/accountUserProfiles", // "httpMethod": "PATCH", // "id": "dfareporting.accountUserProfiles.patch", // "parameterOrder": [ @@ -17047,7 +17047,7 @@ func (c *AccountUserProfilesPatchCall) Do(opts ...googleapi.CallOption) (*Accoun // ], // "parameters": { // "id": { - // "description": "AccountUserProfile ID.", + // "description": "Required. AccountUserProfile ID.", // "format": "int64", // "location": "query", // "required": true, @@ -17057,11 +17057,12 @@ func (c *AccountUserProfilesPatchCall) Do(opts ...googleapi.CallOption) (*Accoun // "description": "User profile ID associated with this request.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "userprofiles/{profileId}/accountUserProfiles", + // "path": "userprofiles/{+profileId}/accountUserProfiles", // "request": { // "$ref": "AccountUserProfile" // }, @@ -17136,7 +17137,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, "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 { @@ -17188,7 +17189,7 @@ func (c *AccountUserProfilesUpdateCall) Do(opts ...googleapi.CallOption) (*Accou return ret, nil // { // "description": "Updates an existing account user profile.", - // "flatPath": "userprofiles/{profileId}/accountUserProfiles", + // "flatPath": "userprofiles/{userprofilesId}/accountUserProfiles", // "httpMethod": "PUT", // "id": "dfareporting.accountUserProfiles.update", // "parameterOrder": [ @@ -17199,11 +17200,12 @@ func (c *AccountUserProfilesUpdateCall) Do(opts ...googleapi.CallOption) (*Accou // "description": "User profile ID associated with this request.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "userprofiles/{profileId}/accountUserProfiles", + // "path": "userprofiles/{+profileId}/accountUserProfiles", // "request": { // "$ref": "AccountUserProfile" // }, @@ -17288,7 +17290,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, "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 { @@ -17341,7 +17343,7 @@ func (c *AccountsGetCall) Do(opts ...googleapi.CallOption) (*Account, error) { return ret, nil // { // "description": "Gets one account by ID.", - // "flatPath": "userprofiles/{profileId}/accounts/{id}", + // "flatPath": "userprofiles/{userprofilesId}/accounts/{accountsId}", // "httpMethod": "GET", // "id": "dfareporting.accounts.get", // "parameterOrder": [ @@ -17353,6 +17355,7 @@ func (c *AccountsGetCall) Do(opts ...googleapi.CallOption) (*Account, error) { // "description": "Account ID.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // }, @@ -17360,11 +17363,12 @@ func (c *AccountsGetCall) Do(opts ...googleapi.CallOption) (*Account, error) { // "description": "User profile ID associated with this request.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "userprofiles/{profileId}/accounts/{id}", + // "path": "userprofiles/{+profileId}/accounts/{+id}", // "response": { // "$ref": "Account" // }, @@ -17459,8 +17463,8 @@ func (c *AccountsListCall) SortField(sortField string) *AccountsListCall { // // Possible values: // -// "ASCENDING" (default) -// "DESCENDING" +// "ASCENDING" (default) - Ascending order. +// "DESCENDING" - Descending order. func (c *AccountsListCall) SortOrder(sortOrder string) *AccountsListCall { c.urlParams_.Set("sortOrder", sortOrder) return c @@ -17514,7 +17518,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, "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 { @@ -17566,7 +17570,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": "userprofiles/{profileId}/accounts", + // "flatPath": "userprofiles/{userprofilesId}/accounts", // "httpMethod": "GET", // "id": "dfareporting.accounts.list", // "parameterOrder": [ @@ -17590,8 +17594,6 @@ func (c *AccountsListCall) Do(opts ...googleapi.CallOption) (*AccountsListRespon // "description": "Maximum number of results to return.", // "format": "int32", // "location": "query", - // "maximum": "1000", - // "minimum": "0", // "type": "integer" // }, // "pageToken": { @@ -17603,6 +17605,7 @@ func (c *AccountsListCall) Do(opts ...googleapi.CallOption) (*AccountsListRespon // "description": "User profile ID associated with this request.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // }, @@ -17633,14 +17636,14 @@ func (c *AccountsListCall) Do(opts ...googleapi.CallOption) (*AccountsListRespon // "DESCENDING" // ], // "enumDescriptions": [ - // "", - // "" + // "Ascending order.", + // "Descending order." // ], // "location": "query", // "type": "string" // } // }, - // "path": "userprofiles/{profileId}/accounts", + // "path": "userprofiles/{+profileId}/accounts", // "response": { // "$ref": "AccountsListResponse" // }, @@ -17736,7 +17739,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, "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 { @@ -17788,7 +17791,7 @@ func (c *AccountsPatchCall) Do(opts ...googleapi.CallOption) (*Account, error) { return ret, nil // { // "description": "Updates an existing account. This method supports patch semantics.", - // "flatPath": "userprofiles/{profileId}/accounts", + // "flatPath": "userprofiles/{userprofilesId}/accounts", // "httpMethod": "PATCH", // "id": "dfareporting.accounts.patch", // "parameterOrder": [ @@ -17797,7 +17800,7 @@ func (c *AccountsPatchCall) Do(opts ...googleapi.CallOption) (*Account, error) { // ], // "parameters": { // "id": { - // "description": "Account ID.", + // "description": "Required. Account ID.", // "format": "int64", // "location": "query", // "required": true, @@ -17807,11 +17810,12 @@ func (c *AccountsPatchCall) Do(opts ...googleapi.CallOption) (*Account, error) { // "description": "User profile ID associated with this request.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "userprofiles/{profileId}/accounts", + // "path": "userprofiles/{+profileId}/accounts", // "request": { // "$ref": "Account" // }, @@ -17886,7 +17890,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, "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 { @@ -17938,7 +17942,7 @@ func (c *AccountsUpdateCall) Do(opts ...googleapi.CallOption) (*Account, error) return ret, nil // { // "description": "Updates an existing account.", - // "flatPath": "userprofiles/{profileId}/accounts", + // "flatPath": "userprofiles/{userprofilesId}/accounts", // "httpMethod": "PUT", // "id": "dfareporting.accounts.update", // "parameterOrder": [ @@ -17949,11 +17953,12 @@ func (c *AccountsUpdateCall) Do(opts ...googleapi.CallOption) (*Account, error) // "description": "User profile ID associated with this request.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "userprofiles/{profileId}/accounts", + // "path": "userprofiles/{+profileId}/accounts", // "request": { // "$ref": "Account" // }, @@ -18038,7 +18043,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, "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 { @@ -18091,7 +18096,7 @@ func (c *AdsGetCall) Do(opts ...googleapi.CallOption) (*Ad, error) { return ret, nil // { // "description": "Gets one ad by ID.", - // "flatPath": "userprofiles/{profileId}/ads/{id}", + // "flatPath": "userprofiles/{userprofilesId}/ads/{adsId}", // "httpMethod": "GET", // "id": "dfareporting.ads.get", // "parameterOrder": [ @@ -18103,6 +18108,7 @@ func (c *AdsGetCall) Do(opts ...googleapi.CallOption) (*Ad, error) { // "description": "Ad ID.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // }, @@ -18110,11 +18116,12 @@ func (c *AdsGetCall) Do(opts ...googleapi.CallOption) (*Ad, error) { // "description": "User profile ID associated with this request.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "userprofiles/{profileId}/ads/{id}", + // "path": "userprofiles/{+profileId}/ads/{+id}", // "response": { // "$ref": "Ad" // }, @@ -18186,7 +18193,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, "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 { @@ -18238,7 +18245,7 @@ func (c *AdsInsertCall) Do(opts ...googleapi.CallOption) (*Ad, error) { return ret, nil // { // "description": "Inserts a new ad.", - // "flatPath": "userprofiles/{profileId}/ads", + // "flatPath": "userprofiles/{userprofilesId}/ads", // "httpMethod": "POST", // "id": "dfareporting.ads.insert", // "parameterOrder": [ @@ -18249,11 +18256,12 @@ func (c *AdsInsertCall) Do(opts ...googleapi.CallOption) (*Ad, error) { // "description": "User profile ID associated with this request.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "userprofiles/{profileId}/ads", + // "path": "userprofiles/{+profileId}/ads", // "request": { // "$ref": "Ad" // }, @@ -18342,8 +18350,8 @@ func (c *AdsListCall) CampaignIds(campaignIds ...int64) *AdsListCall { // // "DISPLAY" // "DISPLAY_INTERSTITIAL" -// "APP" -// "APP_INTERSTITIAL" +// "APP" - Deprecated enum value. No longer supported. +// "APP_INTERSTITIAL" - Deprecated enum value. No longer supported. // "IN_STREAM_VIDEO" // "IN_STREAM_AUDIO" func (c *AdsListCall) Compatibility(compatibility string) *AdsListCall { @@ -18491,8 +18499,8 @@ func (c *AdsListCall) SortField(sortField string) *AdsListCall { // // Possible values: // -// "ASCENDING" (default) -// "DESCENDING" +// "ASCENDING" (default) - Ascending order. +// "DESCENDING" - Descending order. func (c *AdsListCall) SortOrder(sortOrder string) *AdsListCall { c.urlParams_.Set("sortOrder", sortOrder) return c @@ -18575,7 +18583,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, "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 { @@ -18627,7 +18635,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": "userprofiles/{profileId}/ads", + // "flatPath": "userprofiles/{userprofilesId}/ads", // "httpMethod": "GET", // "id": "dfareporting.ads.list", // "parameterOrder": [ @@ -18677,8 +18685,8 @@ func (c *AdsListCall) Do(opts ...googleapi.CallOption) (*AdsListResponse, error) // "enumDescriptions": [ // "", // "", - // "", - // "", + // "Deprecated enum value. No longer supported.", + // "Deprecated enum value. No longer supported.", // "", // "" // ], @@ -18723,8 +18731,6 @@ func (c *AdsListCall) Do(opts ...googleapi.CallOption) (*AdsListResponse, error) // "description": "Maximum number of results to return.", // "format": "int32", // "location": "query", - // "maximum": "1000", - // "minimum": "0", // "type": "integer" // }, // "overriddenEventTagId": { @@ -18749,6 +18755,7 @@ func (c *AdsListCall) Do(opts ...googleapi.CallOption) (*AdsListResponse, error) // "description": "User profile ID associated with this request.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // }, @@ -18793,8 +18800,8 @@ func (c *AdsListCall) Do(opts ...googleapi.CallOption) (*AdsListResponse, error) // "DESCENDING" // ], // "enumDescriptions": [ - // "", - // "" + // "Ascending order.", + // "Descending order." // ], // "location": "query", // "type": "string" @@ -18830,7 +18837,7 @@ func (c *AdsListCall) Do(opts ...googleapi.CallOption) (*AdsListResponse, error) // "type": "string" // } // }, - // "path": "userprofiles/{profileId}/ads", + // "path": "userprofiles/{+profileId}/ads", // "response": { // "$ref": "AdsListResponse" // }, @@ -18873,9 +18880,10 @@ type AdsPatchCall struct { header_ http.Header } -// Patch: Updates an existing ad. This method supports patch semantics. +// Patch: Updates an existing event tag. This method supports patch +// semantics. // -// - id: Ad ID. +// - id: RemarketingList ID. // - profileId: User profile ID associated with this request. func (r *AdsService) Patch(profileId int64, id int64, ad *Ad) *AdsPatchCall { c := &AdsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} @@ -18925,7 +18933,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, "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 { @@ -18976,8 +18984,8 @@ func (c *AdsPatchCall) Do(opts ...googleapi.CallOption) (*Ad, error) { } return ret, nil // { - // "description": "Updates an existing ad. This method supports patch semantics.", - // "flatPath": "userprofiles/{profileId}/ads", + // "description": "Updates an existing event tag. This method supports patch semantics.", + // "flatPath": "userprofiles/{userprofilesId}/ads", // "httpMethod": "PATCH", // "id": "dfareporting.ads.patch", // "parameterOrder": [ @@ -18986,7 +18994,7 @@ func (c *AdsPatchCall) Do(opts ...googleapi.CallOption) (*Ad, error) { // ], // "parameters": { // "id": { - // "description": "Ad ID.", + // "description": "Required. RemarketingList ID.", // "format": "int64", // "location": "query", // "required": true, @@ -18996,11 +19004,12 @@ func (c *AdsPatchCall) Do(opts ...googleapi.CallOption) (*Ad, error) { // "description": "User profile ID associated with this request.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "userprofiles/{profileId}/ads", + // "path": "userprofiles/{+profileId}/ads", // "request": { // "$ref": "Ad" // }, @@ -19075,7 +19084,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, "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 { @@ -19127,7 +19136,7 @@ func (c *AdsUpdateCall) Do(opts ...googleapi.CallOption) (*Ad, error) { return ret, nil // { // "description": "Updates an existing ad.", - // "flatPath": "userprofiles/{profileId}/ads", + // "flatPath": "userprofiles/{userprofilesId}/ads", // "httpMethod": "PUT", // "id": "dfareporting.ads.update", // "parameterOrder": [ @@ -19138,11 +19147,12 @@ func (c *AdsUpdateCall) Do(opts ...googleapi.CallOption) (*Ad, error) { // "description": "User profile ID associated with this request.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "userprofiles/{profileId}/ads", + // "path": "userprofiles/{+profileId}/ads", // "request": { // "$ref": "Ad" // }, @@ -19213,7 +19223,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, "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 { @@ -19241,7 +19251,7 @@ func (c *AdvertiserGroupsDeleteCall) Do(opts ...googleapi.CallOption) error { return nil // { // "description": "Deletes an existing advertiser group.", - // "flatPath": "userprofiles/{profileId}/advertiserGroups/{id}", + // "flatPath": "userprofiles/{userprofilesId}/advertiserGroups/{advertiserGroupsId}", // "httpMethod": "DELETE", // "id": "dfareporting.advertiserGroups.delete", // "parameterOrder": [ @@ -19253,6 +19263,7 @@ func (c *AdvertiserGroupsDeleteCall) Do(opts ...googleapi.CallOption) error { // "description": "Advertiser group ID.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // }, @@ -19260,11 +19271,12 @@ func (c *AdvertiserGroupsDeleteCall) Do(opts ...googleapi.CallOption) error { // "description": "User profile ID associated with this request.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "userprofiles/{profileId}/advertiserGroups/{id}", + // "path": "userprofiles/{+profileId}/advertiserGroups/{+id}", // "scopes": [ // "https://www.googleapis.com/auth/dfatrafficking" // ] @@ -19343,7 +19355,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, "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 { @@ -19396,7 +19408,7 @@ func (c *AdvertiserGroupsGetCall) Do(opts ...googleapi.CallOption) (*AdvertiserG return ret, nil // { // "description": "Gets one advertiser group by ID.", - // "flatPath": "userprofiles/{profileId}/advertiserGroups/{id}", + // "flatPath": "userprofiles/{userprofilesId}/advertiserGroups/{advertiserGroupsId}", // "httpMethod": "GET", // "id": "dfareporting.advertiserGroups.get", // "parameterOrder": [ @@ -19408,6 +19420,7 @@ func (c *AdvertiserGroupsGetCall) Do(opts ...googleapi.CallOption) (*AdvertiserG // "description": "Advertiser group ID.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // }, @@ -19415,11 +19428,12 @@ func (c *AdvertiserGroupsGetCall) Do(opts ...googleapi.CallOption) (*AdvertiserG // "description": "User profile ID associated with this request.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "userprofiles/{profileId}/advertiserGroups/{id}", + // "path": "userprofiles/{+profileId}/advertiserGroups/{+id}", // "response": { // "$ref": "AdvertiserGroup" // }, @@ -19491,7 +19505,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, "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 { @@ -19543,7 +19557,7 @@ func (c *AdvertiserGroupsInsertCall) Do(opts ...googleapi.CallOption) (*Advertis return ret, nil // { // "description": "Inserts a new advertiser group.", - // "flatPath": "userprofiles/{profileId}/advertiserGroups", + // "flatPath": "userprofiles/{userprofilesId}/advertiserGroups", // "httpMethod": "POST", // "id": "dfareporting.advertiserGroups.insert", // "parameterOrder": [ @@ -19554,11 +19568,12 @@ func (c *AdvertiserGroupsInsertCall) Do(opts ...googleapi.CallOption) (*Advertis // "description": "User profile ID associated with this request.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "userprofiles/{profileId}/advertiserGroups", + // "path": "userprofiles/{+profileId}/advertiserGroups", // "request": { // "$ref": "AdvertiserGroup" // }, @@ -19649,8 +19664,8 @@ func (c *AdvertiserGroupsListCall) SortField(sortField string) *AdvertiserGroups // // Possible values: // -// "ASCENDING" (default) -// "DESCENDING" +// "ASCENDING" (default) - Ascending order. +// "DESCENDING" - Descending order. func (c *AdvertiserGroupsListCall) SortOrder(sortOrder string) *AdvertiserGroupsListCall { c.urlParams_.Set("sortOrder", sortOrder) return c @@ -19704,7 +19719,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, "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 { @@ -19756,7 +19771,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": "userprofiles/{profileId}/advertiserGroups", + // "flatPath": "userprofiles/{userprofilesId}/advertiserGroups", // "httpMethod": "GET", // "id": "dfareporting.advertiserGroups.list", // "parameterOrder": [ @@ -19775,8 +19790,6 @@ func (c *AdvertiserGroupsListCall) Do(opts ...googleapi.CallOption) (*Advertiser // "description": "Maximum number of results to return.", // "format": "int32", // "location": "query", - // "maximum": "1000", - // "minimum": "0", // "type": "integer" // }, // "pageToken": { @@ -19788,6 +19801,7 @@ func (c *AdvertiserGroupsListCall) Do(opts ...googleapi.CallOption) (*Advertiser // "description": "User profile ID associated with this request.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // }, @@ -19818,14 +19832,14 @@ func (c *AdvertiserGroupsListCall) Do(opts ...googleapi.CallOption) (*Advertiser // "DESCENDING" // ], // "enumDescriptions": [ - // "", - // "" + // "Ascending order.", + // "Descending order." // ], // "location": "query", // "type": "string" // } // }, - // "path": "userprofiles/{profileId}/advertiserGroups", + // "path": "userprofiles/{+profileId}/advertiserGroups", // "response": { // "$ref": "AdvertiserGroupsListResponse" // }, @@ -19871,7 +19885,7 @@ type AdvertiserGroupsPatchCall struct { // Patch: Updates an existing advertiser group. This method supports // patch semantics. // -// - id: AdvertiserGroup ID. +// - id: Advertiser Group ID. // - profileId: User profile ID associated with this request. func (r *AdvertiserGroupsService) Patch(profileId int64, id int64, advertisergroup *AdvertiserGroup) *AdvertiserGroupsPatchCall { c := &AdvertiserGroupsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} @@ -19921,7 +19935,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, "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 { @@ -19973,7 +19987,7 @@ func (c *AdvertiserGroupsPatchCall) Do(opts ...googleapi.CallOption) (*Advertise return ret, nil // { // "description": "Updates an existing advertiser group. This method supports patch semantics.", - // "flatPath": "userprofiles/{profileId}/advertiserGroups", + // "flatPath": "userprofiles/{userprofilesId}/advertiserGroups", // "httpMethod": "PATCH", // "id": "dfareporting.advertiserGroups.patch", // "parameterOrder": [ @@ -19982,7 +19996,7 @@ func (c *AdvertiserGroupsPatchCall) Do(opts ...googleapi.CallOption) (*Advertise // ], // "parameters": { // "id": { - // "description": "AdvertiserGroup ID.", + // "description": "Required. Advertiser Group ID.", // "format": "int64", // "location": "query", // "required": true, @@ -19992,11 +20006,12 @@ func (c *AdvertiserGroupsPatchCall) Do(opts ...googleapi.CallOption) (*Advertise // "description": "User profile ID associated with this request.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "userprofiles/{profileId}/advertiserGroups", + // "path": "userprofiles/{+profileId}/advertiserGroups", // "request": { // "$ref": "AdvertiserGroup" // }, @@ -20071,7 +20086,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, "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 { @@ -20123,7 +20138,7 @@ func (c *AdvertiserGroupsUpdateCall) Do(opts ...googleapi.CallOption) (*Advertis return ret, nil // { // "description": "Updates an existing advertiser group.", - // "flatPath": "userprofiles/{profileId}/advertiserGroups", + // "flatPath": "userprofiles/{userprofilesId}/advertiserGroups", // "httpMethod": "PUT", // "id": "dfareporting.advertiserGroups.update", // "parameterOrder": [ @@ -20134,11 +20149,12 @@ func (c *AdvertiserGroupsUpdateCall) Do(opts ...googleapi.CallOption) (*Advertis // "description": "User profile ID associated with this request.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "userprofiles/{profileId}/advertiserGroups", + // "path": "userprofiles/{+profileId}/advertiserGroups", // "request": { // "$ref": "AdvertiserGroup" // }, @@ -20246,7 +20262,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, "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 { @@ -20299,7 +20315,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": "userprofiles/{profileId}/advertisers/{advertiserId}/invoices", + // "flatPath": "userprofiles/{userprofilesId}/advertisers/{advertisersId}/invoices", // "httpMethod": "GET", // "id": "dfareporting.advertiserInvoices.list", // "parameterOrder": [ @@ -20311,6 +20327,7 @@ func (c *AdvertiserInvoicesListCall) Do(opts ...googleapi.CallOption) (*Advertis // "description": "Advertiser ID of this invoice.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // }, @@ -20324,8 +20341,6 @@ func (c *AdvertiserInvoicesListCall) Do(opts ...googleapi.CallOption) (*Advertis // "description": "Maximum number of results to return.", // "format": "int32", // "location": "query", - // "maximum": "1000", - // "minimum": "0", // "type": "integer" // }, // "pageToken": { @@ -20337,11 +20352,12 @@ func (c *AdvertiserInvoicesListCall) Do(opts ...googleapi.CallOption) (*Advertis // "description": "User profile ID associated with this request.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "userprofiles/{profileId}/advertisers/{advertiserId}/invoices", + // "path": "userprofiles/{+profileId}/advertisers/{+advertiserId}/invoices", // "response": { // "$ref": "AdvertiserInvoicesListResponse" // }, @@ -20444,7 +20460,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, "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 { @@ -20497,7 +20513,7 @@ func (c *AdvertiserLandingPagesGetCall) Do(opts ...googleapi.CallOption) (*Landi return ret, nil // { // "description": "Gets one landing page by ID.", - // "flatPath": "userprofiles/{profileId}/advertiserLandingPages/{id}", + // "flatPath": "userprofiles/{userprofilesId}/advertiserLandingPages/{advertiserLandingPagesId}", // "httpMethod": "GET", // "id": "dfareporting.advertiserLandingPages.get", // "parameterOrder": [ @@ -20509,6 +20525,7 @@ func (c *AdvertiserLandingPagesGetCall) Do(opts ...googleapi.CallOption) (*Landi // "description": "Landing page ID.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // }, @@ -20516,11 +20533,12 @@ func (c *AdvertiserLandingPagesGetCall) Do(opts ...googleapi.CallOption) (*Landi // "description": "User profile ID associated with this request.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "userprofiles/{profileId}/advertiserLandingPages/{id}", + // "path": "userprofiles/{+profileId}/advertiserLandingPages/{+id}", // "response": { // "$ref": "LandingPage" // }, @@ -20592,7 +20610,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, "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 { @@ -20644,7 +20662,7 @@ func (c *AdvertiserLandingPagesInsertCall) Do(opts ...googleapi.CallOption) (*La return ret, nil // { // "description": "Inserts a new landing page.", - // "flatPath": "userprofiles/{profileId}/advertiserLandingPages", + // "flatPath": "userprofiles/{userprofilesId}/advertiserLandingPages", // "httpMethod": "POST", // "id": "dfareporting.advertiserLandingPages.insert", // "parameterOrder": [ @@ -20655,11 +20673,12 @@ func (c *AdvertiserLandingPagesInsertCall) Do(opts ...googleapi.CallOption) (*La // "description": "User profile ID associated with this request.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "userprofiles/{profileId}/advertiserLandingPages", + // "path": "userprofiles/{+profileId}/advertiserLandingPages", // "request": { // "$ref": "LandingPage" // }, @@ -20778,8 +20797,8 @@ func (c *AdvertiserLandingPagesListCall) SortField(sortField string) *Advertiser // // Possible values: // -// "ASCENDING" (default) -// "DESCENDING" +// "ASCENDING" (default) - Ascending order. +// "DESCENDING" - Descending order. func (c *AdvertiserLandingPagesListCall) SortOrder(sortOrder string) *AdvertiserLandingPagesListCall { c.urlParams_.Set("sortOrder", sortOrder) return c @@ -20840,7 +20859,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, "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 { @@ -20893,7 +20912,7 @@ func (c *AdvertiserLandingPagesListCall) Do(opts ...googleapi.CallOption) (*Adve return ret, nil // { // "description": "Retrieves a list of landing pages.", - // "flatPath": "userprofiles/{profileId}/advertiserLandingPages", + // "flatPath": "userprofiles/{userprofilesId}/advertiserLandingPages", // "httpMethod": "GET", // "id": "dfareporting.advertiserLandingPages.list", // "parameterOrder": [ @@ -20931,8 +20950,6 @@ func (c *AdvertiserLandingPagesListCall) Do(opts ...googleapi.CallOption) (*Adve // "description": "Maximum number of results to return.", // "format": "int32", // "location": "query", - // "maximum": "1000", - // "minimum": "0", // "type": "integer" // }, // "pageToken": { @@ -20944,6 +20961,7 @@ func (c *AdvertiserLandingPagesListCall) Do(opts ...googleapi.CallOption) (*Adve // "description": "User profile ID associated with this request.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // }, @@ -20974,8 +20992,8 @@ func (c *AdvertiserLandingPagesListCall) Do(opts ...googleapi.CallOption) (*Adve // "DESCENDING" // ], // "enumDescriptions": [ - // "", - // "" + // "Ascending order.", + // "Descending order." // ], // "location": "query", // "type": "string" @@ -20987,7 +21005,7 @@ func (c *AdvertiserLandingPagesListCall) Do(opts ...googleapi.CallOption) (*Adve // "type": "string" // } // }, - // "path": "userprofiles/{profileId}/advertiserLandingPages", + // "path": "userprofiles/{+profileId}/advertiserLandingPages", // "response": { // "$ref": "AdvertiserLandingPagesListResponse" // }, @@ -21030,10 +21048,10 @@ type AdvertiserLandingPagesPatchCall struct { header_ http.Header } -// Patch: Updates an existing advertiser landing page. This method -// supports patch semantics. +// Patch: Updates an existing advertiser. This method supports patch +// semantics. // -// - id: LandingPage ID. +// - id: Landing Page ID. // - profileId: User profile ID associated with this request. func (r *AdvertiserLandingPagesService) Patch(profileId int64, id int64, landingpage *LandingPage) *AdvertiserLandingPagesPatchCall { c := &AdvertiserLandingPagesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} @@ -21083,7 +21101,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, "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 { @@ -21134,8 +21152,8 @@ func (c *AdvertiserLandingPagesPatchCall) Do(opts ...googleapi.CallOption) (*Lan } return ret, nil // { - // "description": "Updates an existing advertiser landing page. This method supports patch semantics.", - // "flatPath": "userprofiles/{profileId}/advertiserLandingPages", + // "description": "Updates an existing advertiser. This method supports patch semantics.", + // "flatPath": "userprofiles/{userprofilesId}/advertiserLandingPages", // "httpMethod": "PATCH", // "id": "dfareporting.advertiserLandingPages.patch", // "parameterOrder": [ @@ -21144,7 +21162,7 @@ func (c *AdvertiserLandingPagesPatchCall) Do(opts ...googleapi.CallOption) (*Lan // ], // "parameters": { // "id": { - // "description": "LandingPage ID.", + // "description": "Required. Landing Page ID.", // "format": "int64", // "location": "query", // "required": true, @@ -21154,11 +21172,12 @@ func (c *AdvertiserLandingPagesPatchCall) Do(opts ...googleapi.CallOption) (*Lan // "description": "User profile ID associated with this request.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "userprofiles/{profileId}/advertiserLandingPages", + // "path": "userprofiles/{+profileId}/advertiserLandingPages", // "request": { // "$ref": "LandingPage" // }, @@ -21233,7 +21252,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, "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 { @@ -21285,7 +21304,7 @@ func (c *AdvertiserLandingPagesUpdateCall) Do(opts ...googleapi.CallOption) (*La return ret, nil // { // "description": "Updates an existing landing page.", - // "flatPath": "userprofiles/{profileId}/advertiserLandingPages", + // "flatPath": "userprofiles/{userprofilesId}/advertiserLandingPages", // "httpMethod": "PUT", // "id": "dfareporting.advertiserLandingPages.update", // "parameterOrder": [ @@ -21296,11 +21315,12 @@ func (c *AdvertiserLandingPagesUpdateCall) Do(opts ...googleapi.CallOption) (*La // "description": "User profile ID associated with this request.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "userprofiles/{profileId}/advertiserLandingPages", + // "path": "userprofiles/{+profileId}/advertiserLandingPages", // "request": { // "$ref": "LandingPage" // }, @@ -21385,7 +21405,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, "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 { @@ -21438,7 +21458,7 @@ func (c *AdvertisersGetCall) Do(opts ...googleapi.CallOption) (*Advertiser, erro return ret, nil // { // "description": "Gets one advertiser by ID.", - // "flatPath": "userprofiles/{profileId}/advertisers/{id}", + // "flatPath": "userprofiles/{userprofilesId}/advertisers/{advertisersId}", // "httpMethod": "GET", // "id": "dfareporting.advertisers.get", // "parameterOrder": [ @@ -21450,6 +21470,7 @@ func (c *AdvertisersGetCall) Do(opts ...googleapi.CallOption) (*Advertiser, erro // "description": "Advertiser ID.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // }, @@ -21457,11 +21478,12 @@ func (c *AdvertisersGetCall) Do(opts ...googleapi.CallOption) (*Advertiser, erro // "description": "User profile ID associated with this request.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "userprofiles/{profileId}/advertisers/{id}", + // "path": "userprofiles/{+profileId}/advertisers/{+id}", // "response": { // "$ref": "Advertiser" // }, @@ -21533,7 +21555,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, "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 { @@ -21585,7 +21607,7 @@ func (c *AdvertisersInsertCall) Do(opts ...googleapi.CallOption) (*Advertiser, e return ret, nil // { // "description": "Inserts a new advertiser.", - // "flatPath": "userprofiles/{profileId}/advertisers", + // "flatPath": "userprofiles/{userprofilesId}/advertisers", // "httpMethod": "POST", // "id": "dfareporting.advertisers.insert", // "parameterOrder": [ @@ -21596,11 +21618,12 @@ func (c *AdvertisersInsertCall) Do(opts ...googleapi.CallOption) (*Advertiser, e // "description": "User profile ID associated with this request.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "userprofiles/{profileId}/advertisers", + // "path": "userprofiles/{+profileId}/advertisers", // "request": { // "$ref": "Advertiser" // }, @@ -21728,8 +21751,8 @@ func (c *AdvertisersListCall) SortField(sortField string) *AdvertisersListCall { // // Possible values: // -// "ASCENDING" (default) -// "DESCENDING" +// "ASCENDING" (default) - Ascending order. +// "DESCENDING" - Descending order. func (c *AdvertisersListCall) SortOrder(sortOrder string) *AdvertisersListCall { c.urlParams_.Set("sortOrder", sortOrder) return c @@ -21740,8 +21763,8 @@ func (c *AdvertisersListCall) SortOrder(sortOrder string) *AdvertisersListCall { // // Possible values: // -// "APPROVED" -// "ON_HOLD" +// "APPROVED" - Approved (ads can deliver) +// "ON_HOLD" - On-hold (all ads are stopped) func (c *AdvertisersListCall) Status(status string) *AdvertisersListCall { c.urlParams_.Set("status", status) return c @@ -21802,7 +21825,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, "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 { @@ -21854,7 +21877,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": "userprofiles/{profileId}/advertisers", + // "flatPath": "userprofiles/{userprofilesId}/advertisers", // "httpMethod": "GET", // "id": "dfareporting.advertisers.list", // "parameterOrder": [ @@ -21892,8 +21915,6 @@ func (c *AdvertisersListCall) Do(opts ...googleapi.CallOption) (*AdvertisersList // "description": "Maximum number of results to return.", // "format": "int32", // "location": "query", - // "maximum": "1000", - // "minimum": "0", // "type": "integer" // }, // "onlyParent": { @@ -21910,6 +21931,7 @@ func (c *AdvertisersListCall) Do(opts ...googleapi.CallOption) (*AdvertisersList // "description": "User profile ID associated with this request.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // }, @@ -21940,8 +21962,8 @@ func (c *AdvertisersListCall) Do(opts ...googleapi.CallOption) (*AdvertisersList // "DESCENDING" // ], // "enumDescriptions": [ - // "", - // "" + // "Ascending order.", + // "Descending order." // ], // "location": "query", // "type": "string" @@ -21953,8 +21975,8 @@ func (c *AdvertisersListCall) Do(opts ...googleapi.CallOption) (*AdvertisersList // "ON_HOLD" // ], // "enumDescriptions": [ - // "", - // "" + // "Approved (ads can deliver)", + // "On-hold (all ads are stopped)" // ], // "location": "query", // "type": "string" @@ -21966,7 +21988,7 @@ func (c *AdvertisersListCall) Do(opts ...googleapi.CallOption) (*AdvertisersList // "type": "string" // } // }, - // "path": "userprofiles/{profileId}/advertisers", + // "path": "userprofiles/{+profileId}/advertisers", // "response": { // "$ref": "AdvertisersListResponse" // }, @@ -22062,7 +22084,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, "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 { @@ -22114,7 +22136,7 @@ func (c *AdvertisersPatchCall) Do(opts ...googleapi.CallOption) (*Advertiser, er return ret, nil // { // "description": "Updates an existing advertiser. This method supports patch semantics.", - // "flatPath": "userprofiles/{profileId}/advertisers", + // "flatPath": "userprofiles/{userprofilesId}/advertisers", // "httpMethod": "PATCH", // "id": "dfareporting.advertisers.patch", // "parameterOrder": [ @@ -22123,7 +22145,7 @@ func (c *AdvertisersPatchCall) Do(opts ...googleapi.CallOption) (*Advertiser, er // ], // "parameters": { // "id": { - // "description": "Advertiser ID.", + // "description": "Required. Advertiser ID.", // "format": "int64", // "location": "query", // "required": true, @@ -22133,11 +22155,12 @@ func (c *AdvertisersPatchCall) Do(opts ...googleapi.CallOption) (*Advertiser, er // "description": "User profile ID associated with this request.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "userprofiles/{profileId}/advertisers", + // "path": "userprofiles/{+profileId}/advertisers", // "request": { // "$ref": "Advertiser" // }, @@ -22212,7 +22235,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, "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 { @@ -22264,7 +22287,7 @@ func (c *AdvertisersUpdateCall) Do(opts ...googleapi.CallOption) (*Advertiser, e return ret, nil // { // "description": "Updates an existing advertiser.", - // "flatPath": "userprofiles/{profileId}/advertisers", + // "flatPath": "userprofiles/{userprofilesId}/advertisers", // "httpMethod": "PUT", // "id": "dfareporting.advertisers.update", // "parameterOrder": [ @@ -22275,11 +22298,12 @@ func (c *AdvertisersUpdateCall) Do(opts ...googleapi.CallOption) (*Advertiser, e // "description": "User profile ID associated with this request.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "userprofiles/{profileId}/advertisers", + // "path": "userprofiles/{+profileId}/advertisers", // "request": { // "$ref": "Advertiser" // }, @@ -22361,7 +22385,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, "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 { @@ -22414,7 +22438,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": "userprofiles/{profileId}/billingProfiles/{billingProfileId}/billingAssignments", + // "flatPath": "userprofiles/{userprofilesId}/billingProfiles/{billingProfilesId}/billingAssignments", // "httpMethod": "POST", // "id": "dfareporting.billingAssignments.insert", // "parameterOrder": [ @@ -22426,6 +22450,7 @@ func (c *BillingAssignmentsInsertCall) Do(opts ...googleapi.CallOption) (*Billin // "description": "Billing profile ID of this billing assignment.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // }, @@ -22433,11 +22458,12 @@ func (c *BillingAssignmentsInsertCall) Do(opts ...googleapi.CallOption) (*Billin // "description": "User profile ID associated with this request.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "userprofiles/{profileId}/billingProfiles/{billingProfileId}/billingAssignments", + // "path": "userprofiles/{+profileId}/billingProfiles/{+billingProfileId}/billingAssignments", // "request": { // "$ref": "BillingAssignment" // }, @@ -22522,7 +22548,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, "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 { @@ -22575,7 +22601,7 @@ func (c *BillingAssignmentsListCall) Do(opts ...googleapi.CallOption) (*BillingA return ret, nil // { // "description": "Retrieves a list of billing assignments.", - // "flatPath": "userprofiles/{profileId}/billingProfiles/{billingProfileId}/billingAssignments", + // "flatPath": "userprofiles/{userprofilesId}/billingProfiles/{billingProfilesId}/billingAssignments", // "httpMethod": "GET", // "id": "dfareporting.billingAssignments.list", // "parameterOrder": [ @@ -22587,6 +22613,7 @@ func (c *BillingAssignmentsListCall) Do(opts ...googleapi.CallOption) (*BillingA // "description": "Billing profile ID of this billing assignment.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // }, @@ -22594,11 +22621,12 @@ func (c *BillingAssignmentsListCall) Do(opts ...googleapi.CallOption) (*BillingA // "description": "User profile ID associated with this request.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "userprofiles/{profileId}/billingProfiles/{billingProfileId}/billingAssignments", + // "path": "userprofiles/{+profileId}/billingProfiles/{+billingProfileId}/billingAssignments", // "response": { // "$ref": "BillingAssignmentsListResponse" // }, @@ -22680,7 +22708,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, "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 { @@ -22733,7 +22761,7 @@ func (c *BillingProfilesGetCall) Do(opts ...googleapi.CallOption) (*BillingProfi return ret, nil // { // "description": "Gets one billing profile by ID.", - // "flatPath": "userprofiles/{profileId}/billingProfiles/{id}", + // "flatPath": "userprofiles/{userprofilesId}/billingProfiles/{billingProfilesId}", // "httpMethod": "GET", // "id": "dfareporting.billingProfiles.get", // "parameterOrder": [ @@ -22745,6 +22773,7 @@ func (c *BillingProfilesGetCall) Do(opts ...googleapi.CallOption) (*BillingProfi // "description": "Billing Profile ID.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // }, @@ -22752,11 +22781,12 @@ func (c *BillingProfilesGetCall) Do(opts ...googleapi.CallOption) (*BillingProfi // "description": "User profile ID associated with this request.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "userprofiles/{profileId}/billingProfiles/{id}", + // "path": "userprofiles/{+profileId}/billingProfiles/{+id}", // "response": { // "$ref": "BillingProfile" // }, @@ -22858,8 +22888,8 @@ func (c *BillingProfilesListCall) SortField(sortField string) *BillingProfilesLi // // Possible values: // -// "ASCENDING" (default) -// "DESCENDING" +// "ASCENDING" (default) - Ascending order. +// "DESCENDING" - Descending order. func (c *BillingProfilesListCall) SortOrder(sortOrder string) *BillingProfilesListCall { c.urlParams_.Set("sortOrder", sortOrder) return c @@ -22938,7 +22968,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, "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 { @@ -22990,7 +23020,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": "userprofiles/{profileId}/billingProfiles", + // "flatPath": "userprofiles/{userprofilesId}/billingProfiles", // "httpMethod": "GET", // "id": "dfareporting.billingProfiles.list", // "parameterOrder": [ @@ -23014,8 +23044,6 @@ func (c *BillingProfilesListCall) Do(opts ...googleapi.CallOption) (*BillingProf // "description": "Maximum number of results to return.", // "format": "int32", // "location": "query", - // "maximum": "1000", - // "minimum": "0", // "type": "integer" // }, // "name": { @@ -23037,6 +23065,7 @@ func (c *BillingProfilesListCall) Do(opts ...googleapi.CallOption) (*BillingProf // "description": "User profile ID associated with this request.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // }, @@ -23062,8 +23091,8 @@ func (c *BillingProfilesListCall) Do(opts ...googleapi.CallOption) (*BillingProf // "DESCENDING" // ], // "enumDescriptions": [ - // "", - // "" + // "Ascending order.", + // "Descending order." // ], // "location": "query", // "type": "string" @@ -23092,7 +23121,7 @@ func (c *BillingProfilesListCall) Do(opts ...googleapi.CallOption) (*BillingProf // "type": "string" // } // }, - // "path": "userprofiles/{profileId}/billingProfiles", + // "path": "userprofiles/{+profileId}/billingProfiles", // "response": { // "$ref": "BillingProfilesListResponse" // }, @@ -23185,7 +23214,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, "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 { @@ -23237,7 +23266,7 @@ func (c *BillingProfilesUpdateCall) Do(opts ...googleapi.CallOption) (*BillingPr return ret, nil // { // "description": "Updates an existing billing profile.", - // "flatPath": "userprofiles/{profileId}/billingProfiles", + // "flatPath": "userprofiles/{userprofilesId}/billingProfiles", // "httpMethod": "PUT", // "id": "dfareporting.billingProfiles.update", // "parameterOrder": [ @@ -23248,11 +23277,12 @@ func (c *BillingProfilesUpdateCall) Do(opts ...googleapi.CallOption) (*BillingPr // "description": "User profile ID associated with this request.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "userprofiles/{profileId}/billingProfiles", + // "path": "userprofiles/{+profileId}/billingProfiles", // "request": { // "$ref": "BillingProfile" // }, @@ -23337,7 +23367,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, "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 { @@ -23390,7 +23420,7 @@ func (c *BillingRatesListCall) Do(opts ...googleapi.CallOption) (*BillingRatesLi return ret, nil // { // "description": "Retrieves a list of billing rates. This method supports paging.", - // "flatPath": "userprofiles/{profileId}/billingProfiles/{billingProfileId}/billingRates", + // "flatPath": "userprofiles/{userprofilesId}/billingProfiles/{billingProfilesId}/billingRates", // "httpMethod": "GET", // "id": "dfareporting.billingRates.list", // "parameterOrder": [ @@ -23402,6 +23432,7 @@ func (c *BillingRatesListCall) Do(opts ...googleapi.CallOption) (*BillingRatesLi // "description": "Billing profile ID of this billing rate.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // }, @@ -23409,11 +23440,12 @@ func (c *BillingRatesListCall) Do(opts ...googleapi.CallOption) (*BillingRatesLi // "description": "User profile ID associated with this request.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "userprofiles/{profileId}/billingProfiles/{billingProfileId}/billingRates", + // "path": "userprofiles/{+profileId}/billingProfiles/{+billingProfileId}/billingRates", // "response": { // "$ref": "BillingRatesListResponse" // }, @@ -23492,7 +23524,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, "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 { @@ -23544,7 +23576,7 @@ func (c *BrowsersListCall) Do(opts ...googleapi.CallOption) (*BrowsersListRespon return ret, nil // { // "description": "Retrieves a list of browsers.", - // "flatPath": "userprofiles/{profileId}/browsers", + // "flatPath": "userprofiles/{userprofilesId}/browsers", // "httpMethod": "GET", // "id": "dfareporting.browsers.list", // "parameterOrder": [ @@ -23555,11 +23587,12 @@ func (c *BrowsersListCall) Do(opts ...googleapi.CallOption) (*BrowsersListRespon // "description": "User profile ID associated with this request.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "userprofiles/{profileId}/browsers", + // "path": "userprofiles/{+profileId}/browsers", // "response": { // "$ref": "BrowsersListResponse" // }, @@ -23636,7 +23669,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, "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 { @@ -23689,7 +23722,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": "userprofiles/{profileId}/campaigns/{campaignId}/campaignCreativeAssociations", + // "flatPath": "userprofiles/{userprofilesId}/campaigns/{campaignsId}/campaignCreativeAssociations", // "httpMethod": "POST", // "id": "dfareporting.campaignCreativeAssociations.insert", // "parameterOrder": [ @@ -23701,6 +23734,7 @@ func (c *CampaignCreativeAssociationsInsertCall) Do(opts ...googleapi.CallOption // "description": "Campaign ID in this association.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // }, @@ -23708,11 +23742,12 @@ func (c *CampaignCreativeAssociationsInsertCall) Do(opts ...googleapi.CallOption // "description": "User profile ID associated with this request.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "userprofiles/{profileId}/campaigns/{campaignId}/campaignCreativeAssociations", + // "path": "userprofiles/{+profileId}/campaigns/{+campaignId}/campaignCreativeAssociations", // "request": { // "$ref": "CampaignCreativeAssociation" // }, @@ -23769,8 +23804,8 @@ func (c *CampaignCreativeAssociationsListCall) PageToken(pageToken string) *Camp // // Possible values: // -// "ASCENDING" (default) -// "DESCENDING" +// "ASCENDING" (default) - Ascending order. +// "DESCENDING" - Descending order. func (c *CampaignCreativeAssociationsListCall) SortOrder(sortOrder string) *CampaignCreativeAssociationsListCall { c.urlParams_.Set("sortOrder", sortOrder) return c @@ -23824,7 +23859,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, "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 { @@ -23879,7 +23914,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": "userprofiles/{profileId}/campaigns/{campaignId}/campaignCreativeAssociations", + // "flatPath": "userprofiles/{userprofilesId}/campaigns/{campaignsId}/campaignCreativeAssociations", // "httpMethod": "GET", // "id": "dfareporting.campaignCreativeAssociations.list", // "parameterOrder": [ @@ -23891,6 +23926,7 @@ func (c *CampaignCreativeAssociationsListCall) Do(opts ...googleapi.CallOption) // "description": "Campaign ID in this association.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // }, @@ -23899,8 +23935,6 @@ func (c *CampaignCreativeAssociationsListCall) Do(opts ...googleapi.CallOption) // "description": "Maximum number of results to return.", // "format": "int32", // "location": "query", - // "maximum": "1000", - // "minimum": "0", // "type": "integer" // }, // "pageToken": { @@ -23912,6 +23946,7 @@ func (c *CampaignCreativeAssociationsListCall) Do(opts ...googleapi.CallOption) // "description": "User profile ID associated with this request.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // }, @@ -23923,14 +23958,14 @@ func (c *CampaignCreativeAssociationsListCall) Do(opts ...googleapi.CallOption) // "DESCENDING" // ], // "enumDescriptions": [ - // "", - // "" + // "Ascending order.", + // "Descending order." // ], // "location": "query", // "type": "string" // } // }, - // "path": "userprofiles/{profileId}/campaigns/{campaignId}/campaignCreativeAssociations", + // "path": "userprofiles/{+profileId}/campaigns/{+campaignId}/campaignCreativeAssociations", // "response": { // "$ref": "CampaignCreativeAssociationsListResponse" // }, @@ -24033,7 +24068,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, "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 { @@ -24086,7 +24121,7 @@ func (c *CampaignsGetCall) Do(opts ...googleapi.CallOption) (*Campaign, error) { return ret, nil // { // "description": "Gets one campaign by ID.", - // "flatPath": "userprofiles/{profileId}/campaigns/{id}", + // "flatPath": "userprofiles/{userprofilesId}/campaigns/{campaignsId}", // "httpMethod": "GET", // "id": "dfareporting.campaigns.get", // "parameterOrder": [ @@ -24098,6 +24133,7 @@ func (c *CampaignsGetCall) Do(opts ...googleapi.CallOption) (*Campaign, error) { // "description": "Campaign ID.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // }, @@ -24105,11 +24141,12 @@ func (c *CampaignsGetCall) Do(opts ...googleapi.CallOption) (*Campaign, error) { // "description": "User profile ID associated with this request.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "userprofiles/{profileId}/campaigns/{id}", + // "path": "userprofiles/{+profileId}/campaigns/{+id}", // "response": { // "$ref": "Campaign" // }, @@ -24181,7 +24218,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, "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 { @@ -24233,7 +24270,7 @@ func (c *CampaignsInsertCall) Do(opts ...googleapi.CallOption) (*Campaign, error return ret, nil // { // "description": "Inserts a new campaign.", - // "flatPath": "userprofiles/{profileId}/campaigns", + // "flatPath": "userprofiles/{userprofilesId}/campaigns", // "httpMethod": "POST", // "id": "dfareporting.campaigns.insert", // "parameterOrder": [ @@ -24244,11 +24281,12 @@ func (c *CampaignsInsertCall) Do(opts ...googleapi.CallOption) (*Campaign, error // "description": "User profile ID associated with this request.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "userprofiles/{profileId}/campaigns", + // "path": "userprofiles/{+profileId}/campaigns", // "request": { // "$ref": "Campaign" // }, @@ -24396,8 +24434,8 @@ func (c *CampaignsListCall) SortField(sortField string) *CampaignsListCall { // // Possible values: // -// "ASCENDING" (default) -// "DESCENDING" +// "ASCENDING" (default) - Ascending order. +// "DESCENDING" - Descending order. func (c *CampaignsListCall) SortOrder(sortOrder string) *CampaignsListCall { c.urlParams_.Set("sortOrder", sortOrder) return c @@ -24458,7 +24496,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, "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 { @@ -24510,7 +24548,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": "userprofiles/{profileId}/campaigns", + // "flatPath": "userprofiles/{userprofilesId}/campaigns", // "httpMethod": "GET", // "id": "dfareporting.campaigns.list", // "parameterOrder": [ @@ -24560,8 +24598,6 @@ func (c *CampaignsListCall) Do(opts ...googleapi.CallOption) (*CampaignsListResp // "description": "Maximum number of results to return.", // "format": "int32", // "location": "query", - // "maximum": "1000", - // "minimum": "0", // "type": "integer" // }, // "overriddenEventTagId": { @@ -24579,6 +24615,7 @@ func (c *CampaignsListCall) Do(opts ...googleapi.CallOption) (*CampaignsListResp // "description": "User profile ID associated with this request.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // }, @@ -24609,8 +24646,8 @@ func (c *CampaignsListCall) Do(opts ...googleapi.CallOption) (*CampaignsListResp // "DESCENDING" // ], // "enumDescriptions": [ - // "", - // "" + // "Ascending order.", + // "Descending order." // ], // "location": "query", // "type": "string" @@ -24622,7 +24659,7 @@ func (c *CampaignsListCall) Do(opts ...googleapi.CallOption) (*CampaignsListResp // "type": "string" // } // }, - // "path": "userprofiles/{profileId}/campaigns", + // "path": "userprofiles/{+profileId}/campaigns", // "response": { // "$ref": "CampaignsListResponse" // }, @@ -24665,7 +24702,7 @@ type CampaignsPatchCall struct { header_ http.Header } -// Patch: Updates an existing campaign. This method supports patch +// Patch: Updates an existing creative. This method supports patch // semantics. // // - id: Campaign ID. @@ -24718,7 +24755,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, "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 { @@ -24769,8 +24806,8 @@ func (c *CampaignsPatchCall) Do(opts ...googleapi.CallOption) (*Campaign, error) } return ret, nil // { - // "description": "Updates an existing campaign. This method supports patch semantics.", - // "flatPath": "userprofiles/{profileId}/campaigns", + // "description": "Updates an existing creative. This method supports patch semantics.", + // "flatPath": "userprofiles/{userprofilesId}/campaigns", // "httpMethod": "PATCH", // "id": "dfareporting.campaigns.patch", // "parameterOrder": [ @@ -24779,7 +24816,7 @@ func (c *CampaignsPatchCall) Do(opts ...googleapi.CallOption) (*Campaign, error) // ], // "parameters": { // "id": { - // "description": "Campaign ID.", + // "description": "Required. Campaign ID.", // "format": "int64", // "location": "query", // "required": true, @@ -24789,11 +24826,12 @@ func (c *CampaignsPatchCall) Do(opts ...googleapi.CallOption) (*Campaign, error) // "description": "User profile ID associated with this request.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "userprofiles/{profileId}/campaigns", + // "path": "userprofiles/{+profileId}/campaigns", // "request": { // "$ref": "Campaign" // }, @@ -24868,7 +24906,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, "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 { @@ -24920,7 +24958,7 @@ func (c *CampaignsUpdateCall) Do(opts ...googleapi.CallOption) (*Campaign, error return ret, nil // { // "description": "Updates an existing campaign.", - // "flatPath": "userprofiles/{profileId}/campaigns", + // "flatPath": "userprofiles/{userprofilesId}/campaigns", // "httpMethod": "PUT", // "id": "dfareporting.campaigns.update", // "parameterOrder": [ @@ -24931,11 +24969,12 @@ func (c *CampaignsUpdateCall) Do(opts ...googleapi.CallOption) (*Campaign, error // "description": "User profile ID associated with this request.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "userprofiles/{profileId}/campaigns", + // "path": "userprofiles/{+profileId}/campaigns", // "request": { // "$ref": "Campaign" // }, @@ -25020,7 +25059,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, "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 { @@ -25073,7 +25112,7 @@ func (c *ChangeLogsGetCall) Do(opts ...googleapi.CallOption) (*ChangeLog, error) return ret, nil // { // "description": "Gets one change log by ID.", - // "flatPath": "userprofiles/{profileId}/changeLogs/{id}", + // "flatPath": "userprofiles/{userprofilesId}/changeLogs/{changeLogsId}", // "httpMethod": "GET", // "id": "dfareporting.changeLogs.get", // "parameterOrder": [ @@ -25085,6 +25124,7 @@ func (c *ChangeLogsGetCall) Do(opts ...googleapi.CallOption) (*ChangeLog, error) // "description": "Change log ID.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // }, @@ -25092,11 +25132,12 @@ func (c *ChangeLogsGetCall) Do(opts ...googleapi.CallOption) (*ChangeLog, error) // "description": "User profile ID associated with this request.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "userprofiles/{profileId}/changeLogs/{id}", + // "path": "userprofiles/{+profileId}/changeLogs/{+id}", // "response": { // "$ref": "ChangeLog" // }, @@ -25334,7 +25375,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, "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 { @@ -25386,7 +25427,7 @@ func (c *ChangeLogsListCall) Do(opts ...googleapi.CallOption) (*ChangeLogsListRe return ret, nil // { // "description": "Retrieves a list of change logs. This method supports paging.", - // "flatPath": "userprofiles/{profileId}/changeLogs", + // "flatPath": "userprofiles/{userprofilesId}/changeLogs", // "httpMethod": "GET", // "id": "dfareporting.changeLogs.list", // "parameterOrder": [ @@ -25453,8 +25494,6 @@ func (c *ChangeLogsListCall) Do(opts ...googleapi.CallOption) (*ChangeLogsListRe // "description": "Maximum number of results to return.", // "format": "int32", // "location": "query", - // "maximum": "1000", - // "minimum": "0", // "type": "integer" // }, // "minChangeTime": { @@ -25569,6 +25608,7 @@ func (c *ChangeLogsListCall) Do(opts ...googleapi.CallOption) (*ChangeLogsListRe // "description": "User profile ID associated with this request.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // }, @@ -25585,7 +25625,7 @@ func (c *ChangeLogsListCall) Do(opts ...googleapi.CallOption) (*ChangeLogsListRe // "type": "string" // } // }, - // "path": "userprofiles/{profileId}/changeLogs", + // "path": "userprofiles/{+profileId}/changeLogs", // "response": { // "$ref": "ChangeLogsListResponse" // }, @@ -25725,7 +25765,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, "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 { @@ -25777,7 +25817,7 @@ func (c *CitiesListCall) Do(opts ...googleapi.CallOption) (*CitiesListResponse, return ret, nil // { // "description": "Retrieves a list of cities, possibly filtered.", - // "flatPath": "userprofiles/{profileId}/cities", + // "flatPath": "userprofiles/{userprofilesId}/cities", // "httpMethod": "GET", // "id": "dfareporting.cities.list", // "parameterOrder": [ @@ -25807,6 +25847,7 @@ func (c *CitiesListCall) Do(opts ...googleapi.CallOption) (*CitiesListResponse, // "description": "User profile ID associated with this request.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // }, @@ -25818,7 +25859,7 @@ func (c *CitiesListCall) Do(opts ...googleapi.CallOption) (*CitiesListResponse, // "type": "string" // } // }, - // "path": "userprofiles/{profileId}/cities", + // "path": "userprofiles/{+profileId}/cities", // "response": { // "$ref": "CitiesListResponse" // }, @@ -25900,7 +25941,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, "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 { @@ -25953,7 +25994,7 @@ func (c *ConnectionTypesGetCall) Do(opts ...googleapi.CallOption) (*ConnectionTy return ret, nil // { // "description": "Gets one connection type by ID.", - // "flatPath": "userprofiles/{profileId}/connectionTypes/{id}", + // "flatPath": "userprofiles/{userprofilesId}/connectionTypes/{connectionTypesId}", // "httpMethod": "GET", // "id": "dfareporting.connectionTypes.get", // "parameterOrder": [ @@ -25965,6 +26006,7 @@ func (c *ConnectionTypesGetCall) Do(opts ...googleapi.CallOption) (*ConnectionTy // "description": "Connection type ID.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // }, @@ -25972,11 +26014,12 @@ func (c *ConnectionTypesGetCall) Do(opts ...googleapi.CallOption) (*ConnectionTy // "description": "User profile ID associated with this request.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "userprofiles/{profileId}/connectionTypes/{id}", + // "path": "userprofiles/{+profileId}/connectionTypes/{+id}", // "response": { // "$ref": "ConnectionType" // }, @@ -26055,7 +26098,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, "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 { @@ -26107,7 +26150,7 @@ func (c *ConnectionTypesListCall) Do(opts ...googleapi.CallOption) (*ConnectionT return ret, nil // { // "description": "Retrieves a list of connection types.", - // "flatPath": "userprofiles/{profileId}/connectionTypes", + // "flatPath": "userprofiles/{userprofilesId}/connectionTypes", // "httpMethod": "GET", // "id": "dfareporting.connectionTypes.list", // "parameterOrder": [ @@ -26118,11 +26161,12 @@ func (c *ConnectionTypesListCall) Do(opts ...googleapi.CallOption) (*ConnectionT // "description": "User profile ID associated with this request.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "userprofiles/{profileId}/connectionTypes", + // "path": "userprofiles/{+profileId}/connectionTypes", // "response": { // "$ref": "ConnectionTypesListResponse" // }, @@ -26190,7 +26234,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, "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 { @@ -26218,7 +26262,7 @@ func (c *ContentCategoriesDeleteCall) Do(opts ...googleapi.CallOption) error { return nil // { // "description": "Deletes an existing content category.", - // "flatPath": "userprofiles/{profileId}/contentCategories/{id}", + // "flatPath": "userprofiles/{userprofilesId}/contentCategories/{contentCategoriesId}", // "httpMethod": "DELETE", // "id": "dfareporting.contentCategories.delete", // "parameterOrder": [ @@ -26230,6 +26274,7 @@ func (c *ContentCategoriesDeleteCall) Do(opts ...googleapi.CallOption) error { // "description": "Content category ID.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // }, @@ -26237,11 +26282,12 @@ func (c *ContentCategoriesDeleteCall) Do(opts ...googleapi.CallOption) error { // "description": "User profile ID associated with this request.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "userprofiles/{profileId}/contentCategories/{id}", + // "path": "userprofiles/{+profileId}/contentCategories/{+id}", // "scopes": [ // "https://www.googleapis.com/auth/dfatrafficking" // ] @@ -26320,7 +26366,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, "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 { @@ -26373,7 +26419,7 @@ func (c *ContentCategoriesGetCall) Do(opts ...googleapi.CallOption) (*ContentCat return ret, nil // { // "description": "Gets one content category by ID.", - // "flatPath": "userprofiles/{profileId}/contentCategories/{id}", + // "flatPath": "userprofiles/{userprofilesId}/contentCategories/{contentCategoriesId}", // "httpMethod": "GET", // "id": "dfareporting.contentCategories.get", // "parameterOrder": [ @@ -26385,6 +26431,7 @@ func (c *ContentCategoriesGetCall) Do(opts ...googleapi.CallOption) (*ContentCat // "description": "Content category ID.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // }, @@ -26392,11 +26439,12 @@ func (c *ContentCategoriesGetCall) Do(opts ...googleapi.CallOption) (*ContentCat // "description": "User profile ID associated with this request.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "userprofiles/{profileId}/contentCategories/{id}", + // "path": "userprofiles/{+profileId}/contentCategories/{+id}", // "response": { // "$ref": "ContentCategory" // }, @@ -26468,7 +26516,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, "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 { @@ -26520,7 +26568,7 @@ func (c *ContentCategoriesInsertCall) Do(opts ...googleapi.CallOption) (*Content return ret, nil // { // "description": "Inserts a new content category.", - // "flatPath": "userprofiles/{profileId}/contentCategories", + // "flatPath": "userprofiles/{userprofilesId}/contentCategories", // "httpMethod": "POST", // "id": "dfareporting.contentCategories.insert", // "parameterOrder": [ @@ -26531,11 +26579,12 @@ func (c *ContentCategoriesInsertCall) Do(opts ...googleapi.CallOption) (*Content // "description": "User profile ID associated with this request.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "userprofiles/{profileId}/contentCategories", + // "path": "userprofiles/{+profileId}/contentCategories", // "request": { // "$ref": "ContentCategory" // }, @@ -26626,8 +26675,8 @@ func (c *ContentCategoriesListCall) SortField(sortField string) *ContentCategori // // Possible values: // -// "ASCENDING" (default) -// "DESCENDING" +// "ASCENDING" (default) - Ascending order. +// "DESCENDING" - Descending order. func (c *ContentCategoriesListCall) SortOrder(sortOrder string) *ContentCategoriesListCall { c.urlParams_.Set("sortOrder", sortOrder) return c @@ -26681,7 +26730,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, "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 { @@ -26733,7 +26782,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": "userprofiles/{profileId}/contentCategories", + // "flatPath": "userprofiles/{userprofilesId}/contentCategories", // "httpMethod": "GET", // "id": "dfareporting.contentCategories.list", // "parameterOrder": [ @@ -26752,8 +26801,6 @@ func (c *ContentCategoriesListCall) Do(opts ...googleapi.CallOption) (*ContentCa // "description": "Maximum number of results to return.", // "format": "int32", // "location": "query", - // "maximum": "1000", - // "minimum": "0", // "type": "integer" // }, // "pageToken": { @@ -26765,6 +26812,7 @@ func (c *ContentCategoriesListCall) Do(opts ...googleapi.CallOption) (*ContentCa // "description": "User profile ID associated with this request.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // }, @@ -26795,14 +26843,14 @@ func (c *ContentCategoriesListCall) Do(opts ...googleapi.CallOption) (*ContentCa // "DESCENDING" // ], // "enumDescriptions": [ - // "", - // "" + // "Ascending order.", + // "Descending order." // ], // "location": "query", // "type": "string" // } // }, - // "path": "userprofiles/{profileId}/contentCategories", + // "path": "userprofiles/{+profileId}/contentCategories", // "response": { // "$ref": "ContentCategoriesListResponse" // }, @@ -26898,7 +26946,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, "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 { @@ -26950,7 +26998,7 @@ func (c *ContentCategoriesPatchCall) Do(opts ...googleapi.CallOption) (*ContentC return ret, nil // { // "description": "Updates an existing content category. This method supports patch semantics.", - // "flatPath": "userprofiles/{profileId}/contentCategories", + // "flatPath": "userprofiles/{userprofilesId}/contentCategories", // "httpMethod": "PATCH", // "id": "dfareporting.contentCategories.patch", // "parameterOrder": [ @@ -26959,7 +27007,7 @@ func (c *ContentCategoriesPatchCall) Do(opts ...googleapi.CallOption) (*ContentC // ], // "parameters": { // "id": { - // "description": "ContentCategory ID.", + // "description": "Required. ContentCategory ID.", // "format": "int64", // "location": "query", // "required": true, @@ -26969,11 +27017,12 @@ func (c *ContentCategoriesPatchCall) Do(opts ...googleapi.CallOption) (*ContentC // "description": "User profile ID associated with this request.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "userprofiles/{profileId}/contentCategories", + // "path": "userprofiles/{+profileId}/contentCategories", // "request": { // "$ref": "ContentCategory" // }, @@ -27048,7 +27097,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, "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 { @@ -27100,7 +27149,7 @@ func (c *ContentCategoriesUpdateCall) Do(opts ...googleapi.CallOption) (*Content return ret, nil // { // "description": "Updates an existing content category.", - // "flatPath": "userprofiles/{profileId}/contentCategories", + // "flatPath": "userprofiles/{userprofilesId}/contentCategories", // "httpMethod": "PUT", // "id": "dfareporting.contentCategories.update", // "parameterOrder": [ @@ -27111,11 +27160,12 @@ func (c *ContentCategoriesUpdateCall) Do(opts ...googleapi.CallOption) (*Content // "description": "User profile ID associated with this request.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "userprofiles/{profileId}/contentCategories", + // "path": "userprofiles/{+profileId}/contentCategories", // "request": { // "$ref": "ContentCategory" // }, @@ -27484,7 +27534,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, "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 { @@ -27537,7 +27587,7 @@ func (c *CountriesGetCall) Do(opts ...googleapi.CallOption) (*Country, error) { return ret, nil // { // "description": "Gets one country by ID.", - // "flatPath": "userprofiles/{profileId}/countries/{dartId}", + // "flatPath": "userprofiles/{userprofilesId}/countries/{countriesId}", // "httpMethod": "GET", // "id": "dfareporting.countries.get", // "parameterOrder": [ @@ -27549,6 +27599,7 @@ func (c *CountriesGetCall) Do(opts ...googleapi.CallOption) (*Country, error) { // "description": "Country DART ID.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // }, @@ -27556,11 +27607,12 @@ func (c *CountriesGetCall) Do(opts ...googleapi.CallOption) (*Country, error) { // "description": "User profile ID associated with this request.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "userprofiles/{profileId}/countries/{dartId}", + // "path": "userprofiles/{+profileId}/countries/{+dartId}", // "response": { // "$ref": "Country" // }, @@ -27639,7 +27691,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, "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 { @@ -27691,7 +27743,7 @@ func (c *CountriesListCall) Do(opts ...googleapi.CallOption) (*CountriesListResp return ret, nil // { // "description": "Retrieves a list of countries.", - // "flatPath": "userprofiles/{profileId}/countries", + // "flatPath": "userprofiles/{userprofilesId}/countries", // "httpMethod": "GET", // "id": "dfareporting.countries.list", // "parameterOrder": [ @@ -27702,11 +27754,12 @@ func (c *CountriesListCall) Do(opts ...googleapi.CallOption) (*CountriesListResp // "description": "User profile ID associated with this request.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "userprofiles/{profileId}/countries", + // "path": "userprofiles/{+profileId}/countries", // "response": { // "$ref": "CountriesListResponse" // }, @@ -27822,9 +27875,9 @@ 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, "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") + urls = googleapi.ResolveRelative(c.s.BasePath, "/upload/dfareporting/v4/userprofiles/{+profileId}/creativeAssets/{+advertiserId}/creativeAssets") c.urlParams_.Set("uploadType", c.mediaInfo_.UploadType()) } if body == nil { @@ -27903,7 +27956,7 @@ func (c *CreativeAssetsInsertCall) Do(opts ...googleapi.CallOption) (*CreativeAs return ret, nil // { // "description": "Inserts a new creative asset.", - // "flatPath": "userprofiles/{profileId}/creativeAssets/{advertiserId}/creativeAssets", + // "flatPath": "userprofiles/{userprofilesId}/creativeAssets/{creativeAssetsId}/creativeAssets", // "httpMethod": "POST", // "id": "dfareporting.creativeAssets.insert", // "mediaUpload": { @@ -27914,7 +27967,7 @@ func (c *CreativeAssetsInsertCall) Do(opts ...googleapi.CallOption) (*CreativeAs // "protocols": { // "simple": { // "multipart": true, - // "path": "/upload/dfareporting/v4/userprofiles/{profileId}/creativeAssets/{advertiserId}/creativeAssets" + // "path": "/upload/dfareporting/v4/userprofiles/{+profileId}/creativeAssets/{+advertiserId}/creativeAssets" // } // } // }, @@ -27927,6 +27980,7 @@ func (c *CreativeAssetsInsertCall) Do(opts ...googleapi.CallOption) (*CreativeAs // "description": "Advertiser ID of this creative. This is a required field.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // }, @@ -27934,11 +27988,12 @@ func (c *CreativeAssetsInsertCall) Do(opts ...googleapi.CallOption) (*CreativeAs // "description": "User profile ID associated with this request.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "userprofiles/{profileId}/creativeAssets/{advertiserId}/creativeAssets", + // "path": "userprofiles/{+profileId}/creativeAssets/{+advertiserId}/creativeAssets", // "request": { // "$ref": "CreativeAssetMetadata" // }, @@ -28013,7 +28068,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, "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 { @@ -28042,7 +28097,7 @@ func (c *CreativeFieldValuesDeleteCall) Do(opts ...googleapi.CallOption) error { return nil // { // "description": "Deletes an existing creative field value.", - // "flatPath": "userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues/{id}", + // "flatPath": "userprofiles/{userprofilesId}/creativeFields/{creativeFieldsId}/creativeFieldValues/{creativeFieldValuesId}", // "httpMethod": "DELETE", // "id": "dfareporting.creativeFieldValues.delete", // "parameterOrder": [ @@ -28055,6 +28110,7 @@ func (c *CreativeFieldValuesDeleteCall) Do(opts ...googleapi.CallOption) error { // "description": "Creative field ID for this creative field value.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // }, @@ -28062,6 +28118,7 @@ func (c *CreativeFieldValuesDeleteCall) Do(opts ...googleapi.CallOption) error { // "description": "Creative Field Value ID", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // }, @@ -28069,11 +28126,12 @@ func (c *CreativeFieldValuesDeleteCall) Do(opts ...googleapi.CallOption) error { // "description": "User profile ID associated with this request.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues/{id}", + // "path": "userprofiles/{+profileId}/creativeFields/{+creativeFieldId}/creativeFieldValues/{+id}", // "scopes": [ // "https://www.googleapis.com/auth/dfatrafficking" // ] @@ -28155,7 +28213,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, "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 { @@ -28209,7 +28267,7 @@ func (c *CreativeFieldValuesGetCall) Do(opts ...googleapi.CallOption) (*Creative return ret, nil // { // "description": "Gets one creative field value by ID.", - // "flatPath": "userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues/{id}", + // "flatPath": "userprofiles/{userprofilesId}/creativeFields/{creativeFieldsId}/creativeFieldValues/{creativeFieldValuesId}", // "httpMethod": "GET", // "id": "dfareporting.creativeFieldValues.get", // "parameterOrder": [ @@ -28222,6 +28280,7 @@ func (c *CreativeFieldValuesGetCall) Do(opts ...googleapi.CallOption) (*Creative // "description": "Creative field ID for this creative field value.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // }, @@ -28229,6 +28288,7 @@ func (c *CreativeFieldValuesGetCall) Do(opts ...googleapi.CallOption) (*Creative // "description": "Creative Field Value ID", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // }, @@ -28236,11 +28296,12 @@ func (c *CreativeFieldValuesGetCall) Do(opts ...googleapi.CallOption) (*Creative // "description": "User profile ID associated with this request.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues/{id}", + // "path": "userprofiles/{+profileId}/creativeFields/{+creativeFieldId}/creativeFieldValues/{+id}", // "response": { // "$ref": "CreativeFieldValue" // }, @@ -28315,7 +28376,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, "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 { @@ -28368,7 +28429,7 @@ func (c *CreativeFieldValuesInsertCall) Do(opts ...googleapi.CallOption) (*Creat return ret, nil // { // "description": "Inserts a new creative field value.", - // "flatPath": "userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues", + // "flatPath": "userprofiles/{userprofilesId}/creativeFields/{creativeFieldsId}/creativeFieldValues", // "httpMethod": "POST", // "id": "dfareporting.creativeFieldValues.insert", // "parameterOrder": [ @@ -28380,6 +28441,7 @@ func (c *CreativeFieldValuesInsertCall) Do(opts ...googleapi.CallOption) (*Creat // "description": "Creative field ID for this creative field value.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // }, @@ -28387,11 +28449,12 @@ func (c *CreativeFieldValuesInsertCall) Do(opts ...googleapi.CallOption) (*Creat // "description": "User profile ID associated with this request.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues", + // "path": "userprofiles/{+profileId}/creativeFields/{+creativeFieldId}/creativeFieldValues", // "request": { // "$ref": "CreativeFieldValue" // }, @@ -28479,8 +28542,8 @@ func (c *CreativeFieldValuesListCall) SortField(sortField string) *CreativeField // // Possible values: // -// "ASCENDING" (default) -// "DESCENDING" +// "ASCENDING" (default) - Ascending order. +// "DESCENDING" - Descending order. func (c *CreativeFieldValuesListCall) SortOrder(sortOrder string) *CreativeFieldValuesListCall { c.urlParams_.Set("sortOrder", sortOrder) return c @@ -28534,7 +28597,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, "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 { @@ -28587,7 +28650,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": "userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues", + // "flatPath": "userprofiles/{userprofilesId}/creativeFields/{creativeFieldsId}/creativeFieldValues", // "httpMethod": "GET", // "id": "dfareporting.creativeFieldValues.list", // "parameterOrder": [ @@ -28599,6 +28662,7 @@ func (c *CreativeFieldValuesListCall) Do(opts ...googleapi.CallOption) (*Creativ // "description": "Creative field ID for this creative field value.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // }, @@ -28614,8 +28678,6 @@ func (c *CreativeFieldValuesListCall) Do(opts ...googleapi.CallOption) (*Creativ // "description": "Maximum number of results to return.", // "format": "int32", // "location": "query", - // "maximum": "1000", - // "minimum": "0", // "type": "integer" // }, // "pageToken": { @@ -28627,6 +28689,7 @@ func (c *CreativeFieldValuesListCall) Do(opts ...googleapi.CallOption) (*Creativ // "description": "User profile ID associated with this request.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // }, @@ -28657,14 +28720,14 @@ func (c *CreativeFieldValuesListCall) Do(opts ...googleapi.CallOption) (*Creativ // "DESCENDING" // ], // "enumDescriptions": [ - // "", - // "" + // "Ascending order.", + // "Descending order." // ], // "location": "query", // "type": "string" // } // }, - // "path": "userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues", + // "path": "userprofiles/{+profileId}/creativeFields/{+creativeFieldId}/creativeFieldValues", // "response": { // "$ref": "CreativeFieldValuesListResponse" // }, @@ -28763,7 +28826,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, "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 { @@ -28816,7 +28879,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": "userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues", + // "flatPath": "userprofiles/{userprofilesId}/creativeFields/{creativeFieldsId}/creativeFieldValues", // "httpMethod": "PATCH", // "id": "dfareporting.creativeFieldValues.patch", // "parameterOrder": [ @@ -28829,6 +28892,7 @@ func (c *CreativeFieldValuesPatchCall) Do(opts ...googleapi.CallOption) (*Creati // "description": "CreativeField ID.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // }, @@ -28843,11 +28907,12 @@ func (c *CreativeFieldValuesPatchCall) Do(opts ...googleapi.CallOption) (*Creati // "description": "User profile ID associated with this request.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues", + // "path": "userprofiles/{+profileId}/creativeFields/{+creativeFieldId}/creativeFieldValues", // "request": { // "$ref": "CreativeFieldValue" // }, @@ -28925,7 +28990,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, "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 { @@ -28978,7 +29043,7 @@ func (c *CreativeFieldValuesUpdateCall) Do(opts ...googleapi.CallOption) (*Creat return ret, nil // { // "description": "Updates an existing creative field value.", - // "flatPath": "userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues", + // "flatPath": "userprofiles/{userprofilesId}/creativeFields/{creativeFieldsId}/creativeFieldValues", // "httpMethod": "PUT", // "id": "dfareporting.creativeFieldValues.update", // "parameterOrder": [ @@ -28990,6 +29055,7 @@ func (c *CreativeFieldValuesUpdateCall) Do(opts ...googleapi.CallOption) (*Creat // "description": "Creative field ID for this creative field value.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // }, @@ -28997,11 +29063,12 @@ func (c *CreativeFieldValuesUpdateCall) Do(opts ...googleapi.CallOption) (*Creat // "description": "User profile ID associated with this request.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues", + // "path": "userprofiles/{+profileId}/creativeFields/{+creativeFieldId}/creativeFieldValues", // "request": { // "$ref": "CreativeFieldValue" // }, @@ -29072,7 +29139,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, "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 { @@ -29100,7 +29167,7 @@ func (c *CreativeFieldsDeleteCall) Do(opts ...googleapi.CallOption) error { return nil // { // "description": "Deletes an existing creative field.", - // "flatPath": "userprofiles/{profileId}/creativeFields/{id}", + // "flatPath": "userprofiles/{userprofilesId}/creativeFields/{creativeFieldsId}", // "httpMethod": "DELETE", // "id": "dfareporting.creativeFields.delete", // "parameterOrder": [ @@ -29112,6 +29179,7 @@ func (c *CreativeFieldsDeleteCall) Do(opts ...googleapi.CallOption) error { // "description": "Creative Field ID", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // }, @@ -29119,11 +29187,12 @@ func (c *CreativeFieldsDeleteCall) Do(opts ...googleapi.CallOption) error { // "description": "User profile ID associated with this request.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "userprofiles/{profileId}/creativeFields/{id}", + // "path": "userprofiles/{+profileId}/creativeFields/{+id}", // "scopes": [ // "https://www.googleapis.com/auth/dfatrafficking" // ] @@ -29202,7 +29271,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, "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 { @@ -29255,7 +29324,7 @@ func (c *CreativeFieldsGetCall) Do(opts ...googleapi.CallOption) (*CreativeField return ret, nil // { // "description": "Gets one creative field by ID.", - // "flatPath": "userprofiles/{profileId}/creativeFields/{id}", + // "flatPath": "userprofiles/{userprofilesId}/creativeFields/{creativeFieldsId}", // "httpMethod": "GET", // "id": "dfareporting.creativeFields.get", // "parameterOrder": [ @@ -29267,6 +29336,7 @@ func (c *CreativeFieldsGetCall) Do(opts ...googleapi.CallOption) (*CreativeField // "description": "Creative Field ID", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // }, @@ -29274,11 +29344,12 @@ func (c *CreativeFieldsGetCall) Do(opts ...googleapi.CallOption) (*CreativeField // "description": "User profile ID associated with this request.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "userprofiles/{profileId}/creativeFields/{id}", + // "path": "userprofiles/{+profileId}/creativeFields/{+id}", // "response": { // "$ref": "CreativeField" // }, @@ -29350,7 +29421,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, "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 { @@ -29402,7 +29473,7 @@ func (c *CreativeFieldsInsertCall) Do(opts ...googleapi.CallOption) (*CreativeFi return ret, nil // { // "description": "Inserts a new creative field.", - // "flatPath": "userprofiles/{profileId}/creativeFields", + // "flatPath": "userprofiles/{userprofilesId}/creativeFields", // "httpMethod": "POST", // "id": "dfareporting.creativeFields.insert", // "parameterOrder": [ @@ -29413,11 +29484,12 @@ func (c *CreativeFieldsInsertCall) Do(opts ...googleapi.CallOption) (*CreativeFi // "description": "User profile ID associated with this request.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "userprofiles/{profileId}/creativeFields", + // "path": "userprofiles/{+profileId}/creativeFields", // "request": { // "$ref": "CreativeField" // }, @@ -29519,8 +29591,8 @@ func (c *CreativeFieldsListCall) SortField(sortField string) *CreativeFieldsList // // Possible values: // -// "ASCENDING" (default) -// "DESCENDING" +// "ASCENDING" (default) - Ascending order. +// "DESCENDING" - Descending order. func (c *CreativeFieldsListCall) SortOrder(sortOrder string) *CreativeFieldsListCall { c.urlParams_.Set("sortOrder", sortOrder) return c @@ -29574,7 +29646,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, "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 { @@ -29626,7 +29698,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": "userprofiles/{profileId}/creativeFields", + // "flatPath": "userprofiles/{userprofilesId}/creativeFields", // "httpMethod": "GET", // "id": "dfareporting.creativeFields.list", // "parameterOrder": [ @@ -29652,8 +29724,6 @@ func (c *CreativeFieldsListCall) Do(opts ...googleapi.CallOption) (*CreativeFiel // "description": "Maximum number of results to return.", // "format": "int32", // "location": "query", - // "maximum": "1000", - // "minimum": "0", // "type": "integer" // }, // "pageToken": { @@ -29665,6 +29735,7 @@ func (c *CreativeFieldsListCall) Do(opts ...googleapi.CallOption) (*CreativeFiel // "description": "User profile ID associated with this request.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // }, @@ -29695,14 +29766,14 @@ func (c *CreativeFieldsListCall) Do(opts ...googleapi.CallOption) (*CreativeFiel // "DESCENDING" // ], // "enumDescriptions": [ - // "", - // "" + // "Ascending order.", + // "Descending order." // ], // "location": "query", // "type": "string" // } // }, - // "path": "userprofiles/{profileId}/creativeFields", + // "path": "userprofiles/{+profileId}/creativeFields", // "response": { // "$ref": "CreativeFieldsListResponse" // }, @@ -29798,7 +29869,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, "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 { @@ -29850,7 +29921,7 @@ func (c *CreativeFieldsPatchCall) Do(opts ...googleapi.CallOption) (*CreativeFie return ret, nil // { // "description": "Updates an existing creative field. This method supports patch semantics.", - // "flatPath": "userprofiles/{profileId}/creativeFields", + // "flatPath": "userprofiles/{userprofilesId}/creativeFields", // "httpMethod": "PATCH", // "id": "dfareporting.creativeFields.patch", // "parameterOrder": [ @@ -29869,11 +29940,12 @@ func (c *CreativeFieldsPatchCall) Do(opts ...googleapi.CallOption) (*CreativeFie // "description": "User profile ID associated with this request.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "userprofiles/{profileId}/creativeFields", + // "path": "userprofiles/{+profileId}/creativeFields", // "request": { // "$ref": "CreativeField" // }, @@ -29948,7 +30020,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, "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 { @@ -30000,7 +30072,7 @@ func (c *CreativeFieldsUpdateCall) Do(opts ...googleapi.CallOption) (*CreativeFi return ret, nil // { // "description": "Updates an existing creative field.", - // "flatPath": "userprofiles/{profileId}/creativeFields", + // "flatPath": "userprofiles/{userprofilesId}/creativeFields", // "httpMethod": "PUT", // "id": "dfareporting.creativeFields.update", // "parameterOrder": [ @@ -30011,11 +30083,12 @@ func (c *CreativeFieldsUpdateCall) Do(opts ...googleapi.CallOption) (*CreativeFi // "description": "User profile ID associated with this request.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "userprofiles/{profileId}/creativeFields", + // "path": "userprofiles/{+profileId}/creativeFields", // "request": { // "$ref": "CreativeField" // }, @@ -30100,7 +30173,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, "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 { @@ -30153,7 +30226,7 @@ func (c *CreativeGroupsGetCall) Do(opts ...googleapi.CallOption) (*CreativeGroup return ret, nil // { // "description": "Gets one creative group by ID.", - // "flatPath": "userprofiles/{profileId}/creativeGroups/{id}", + // "flatPath": "userprofiles/{userprofilesId}/creativeGroups/{creativeGroupsId}", // "httpMethod": "GET", // "id": "dfareporting.creativeGroups.get", // "parameterOrder": [ @@ -30165,6 +30238,7 @@ func (c *CreativeGroupsGetCall) Do(opts ...googleapi.CallOption) (*CreativeGroup // "description": "Creative group ID.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // }, @@ -30172,11 +30246,12 @@ func (c *CreativeGroupsGetCall) Do(opts ...googleapi.CallOption) (*CreativeGroup // "description": "User profile ID associated with this request.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "userprofiles/{profileId}/creativeGroups/{id}", + // "path": "userprofiles/{+profileId}/creativeGroups/{+id}", // "response": { // "$ref": "CreativeGroup" // }, @@ -30248,7 +30323,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, "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 { @@ -30300,7 +30375,7 @@ func (c *CreativeGroupsInsertCall) Do(opts ...googleapi.CallOption) (*CreativeGr return ret, nil // { // "description": "Inserts a new creative group.", - // "flatPath": "userprofiles/{profileId}/creativeGroups", + // "flatPath": "userprofiles/{userprofilesId}/creativeGroups", // "httpMethod": "POST", // "id": "dfareporting.creativeGroups.insert", // "parameterOrder": [ @@ -30311,11 +30386,12 @@ func (c *CreativeGroupsInsertCall) Do(opts ...googleapi.CallOption) (*CreativeGr // "description": "User profile ID associated with this request.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "userprofiles/{profileId}/creativeGroups", + // "path": "userprofiles/{+profileId}/creativeGroups", // "request": { // "$ref": "CreativeGroup" // }, @@ -30424,8 +30500,8 @@ func (c *CreativeGroupsListCall) SortField(sortField string) *CreativeGroupsList // // Possible values: // -// "ASCENDING" (default) -// "DESCENDING" +// "ASCENDING" (default) - Ascending order. +// "DESCENDING" - Descending order. func (c *CreativeGroupsListCall) SortOrder(sortOrder string) *CreativeGroupsListCall { c.urlParams_.Set("sortOrder", sortOrder) return c @@ -30479,7 +30555,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, "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 { @@ -30531,7 +30607,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": "userprofiles/{profileId}/creativeGroups", + // "flatPath": "userprofiles/{userprofilesId}/creativeGroups", // "httpMethod": "GET", // "id": "dfareporting.creativeGroups.list", // "parameterOrder": [ @@ -30549,8 +30625,6 @@ func (c *CreativeGroupsListCall) Do(opts ...googleapi.CallOption) (*CreativeGrou // "description": "Select only creative groups that belong to this subgroup.", // "format": "int32", // "location": "query", - // "maximum": "2", - // "minimum": "1", // "type": "integer" // }, // "ids": { @@ -30565,8 +30639,6 @@ func (c *CreativeGroupsListCall) Do(opts ...googleapi.CallOption) (*CreativeGrou // "description": "Maximum number of results to return.", // "format": "int32", // "location": "query", - // "maximum": "1000", - // "minimum": "0", // "type": "integer" // }, // "pageToken": { @@ -30578,6 +30650,7 @@ func (c *CreativeGroupsListCall) Do(opts ...googleapi.CallOption) (*CreativeGrou // "description": "User profile ID associated with this request.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // }, @@ -30608,14 +30681,14 @@ func (c *CreativeGroupsListCall) Do(opts ...googleapi.CallOption) (*CreativeGrou // "DESCENDING" // ], // "enumDescriptions": [ - // "", - // "" + // "Ascending order.", + // "Descending order." // ], // "location": "query", // "type": "string" // } // }, - // "path": "userprofiles/{profileId}/creativeGroups", + // "path": "userprofiles/{+profileId}/creativeGroups", // "response": { // "$ref": "CreativeGroupsListResponse" // }, @@ -30661,7 +30734,7 @@ type CreativeGroupsPatchCall struct { // Patch: Updates an existing creative group. This method supports patch // semantics. // -// - id: CreativeGroup ID. +// - id: Creative Group ID. // - profileId: User profile ID associated with this request. func (r *CreativeGroupsService) Patch(profileId int64, id int64, creativegroup *CreativeGroup) *CreativeGroupsPatchCall { c := &CreativeGroupsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} @@ -30711,7 +30784,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, "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 { @@ -30763,7 +30836,7 @@ func (c *CreativeGroupsPatchCall) Do(opts ...googleapi.CallOption) (*CreativeGro return ret, nil // { // "description": "Updates an existing creative group. This method supports patch semantics.", - // "flatPath": "userprofiles/{profileId}/creativeGroups", + // "flatPath": "userprofiles/{userprofilesId}/creativeGroups", // "httpMethod": "PATCH", // "id": "dfareporting.creativeGroups.patch", // "parameterOrder": [ @@ -30772,7 +30845,7 @@ func (c *CreativeGroupsPatchCall) Do(opts ...googleapi.CallOption) (*CreativeGro // ], // "parameters": { // "id": { - // "description": "CreativeGroup ID.", + // "description": "Required. Creative Group ID.", // "format": "int64", // "location": "query", // "required": true, @@ -30782,11 +30855,12 @@ func (c *CreativeGroupsPatchCall) Do(opts ...googleapi.CallOption) (*CreativeGro // "description": "User profile ID associated with this request.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "userprofiles/{profileId}/creativeGroups", + // "path": "userprofiles/{+profileId}/creativeGroups", // "request": { // "$ref": "CreativeGroup" // }, @@ -30861,7 +30935,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, "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 { @@ -30913,7 +30987,7 @@ func (c *CreativeGroupsUpdateCall) Do(opts ...googleapi.CallOption) (*CreativeGr return ret, nil // { // "description": "Updates an existing creative group.", - // "flatPath": "userprofiles/{profileId}/creativeGroups", + // "flatPath": "userprofiles/{userprofilesId}/creativeGroups", // "httpMethod": "PUT", // "id": "dfareporting.creativeGroups.update", // "parameterOrder": [ @@ -30924,11 +30998,12 @@ func (c *CreativeGroupsUpdateCall) Do(opts ...googleapi.CallOption) (*CreativeGr // "description": "User profile ID associated with this request.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "userprofiles/{profileId}/creativeGroups", + // "path": "userprofiles/{+profileId}/creativeGroups", // "request": { // "$ref": "CreativeGroup" // }, @@ -31013,7 +31088,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, "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 { @@ -31066,7 +31141,7 @@ func (c *CreativesGetCall) Do(opts ...googleapi.CallOption) (*Creative, error) { return ret, nil // { // "description": "Gets one creative by ID.", - // "flatPath": "userprofiles/{profileId}/creatives/{id}", + // "flatPath": "userprofiles/{userprofilesId}/creatives/{creativesId}", // "httpMethod": "GET", // "id": "dfareporting.creatives.get", // "parameterOrder": [ @@ -31078,6 +31153,7 @@ func (c *CreativesGetCall) Do(opts ...googleapi.CallOption) (*Creative, error) { // "description": "Creative ID.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // }, @@ -31085,11 +31161,12 @@ func (c *CreativesGetCall) Do(opts ...googleapi.CallOption) (*Creative, error) { // "description": "User profile ID associated with this request.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "userprofiles/{profileId}/creatives/{id}", + // "path": "userprofiles/{+profileId}/creatives/{+id}", // "response": { // "$ref": "Creative" // }, @@ -31161,7 +31238,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, "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 { @@ -31213,7 +31290,7 @@ func (c *CreativesInsertCall) Do(opts ...googleapi.CallOption) (*Creative, error return ret, nil // { // "description": "Inserts a new creative.", - // "flatPath": "userprofiles/{profileId}/creatives", + // "flatPath": "userprofiles/{userprofilesId}/creatives", // "httpMethod": "POST", // "id": "dfareporting.creatives.insert", // "parameterOrder": [ @@ -31224,11 +31301,12 @@ func (c *CreativesInsertCall) Do(opts ...googleapi.CallOption) (*Creative, error // "description": "User profile ID associated with this request.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "userprofiles/{profileId}/creatives", + // "path": "userprofiles/{+profileId}/creatives", // "request": { // "$ref": "Creative" // }, @@ -31391,8 +31469,8 @@ func (c *CreativesListCall) SortField(sortField string) *CreativesListCall { // // Possible values: // -// "ASCENDING" (default) -// "DESCENDING" +// "ASCENDING" (default) - Ascending order. +// "DESCENDING" - Descending order. func (c *CreativesListCall) SortOrder(sortOrder string) *CreativesListCall { c.urlParams_.Set("sortOrder", sortOrder) return c @@ -31488,7 +31566,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, "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 { @@ -31540,7 +31618,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": "userprofiles/{profileId}/creatives", + // "flatPath": "userprofiles/{userprofilesId}/creatives", // "httpMethod": "GET", // "id": "dfareporting.creatives.list", // "parameterOrder": [ @@ -31595,8 +31673,6 @@ func (c *CreativesListCall) Do(opts ...googleapi.CallOption) (*CreativesListResp // "description": "Maximum number of results to return.", // "format": "int32", // "location": "query", - // "maximum": "1000", - // "minimum": "0", // "type": "integer" // }, // "pageToken": { @@ -31608,6 +31684,7 @@ func (c *CreativesListCall) Do(opts ...googleapi.CallOption) (*CreativesListResp // "description": "User profile ID associated with this request.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // }, @@ -31652,8 +31729,8 @@ func (c *CreativesListCall) Do(opts ...googleapi.CallOption) (*CreativesListResp // "DESCENDING" // ], // "enumDescriptions": [ - // "", - // "" + // "Ascending order.", + // "Descending order." // ], // "location": "query", // "type": "string" @@ -31725,7 +31802,7 @@ func (c *CreativesListCall) Do(opts ...googleapi.CallOption) (*CreativesListResp // "type": "string" // } // }, - // "path": "userprofiles/{profileId}/creatives", + // "path": "userprofiles/{+profileId}/creatives", // "response": { // "$ref": "CreativesListResponse" // }, @@ -31821,7 +31898,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, "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 { @@ -31873,7 +31950,7 @@ func (c *CreativesPatchCall) Do(opts ...googleapi.CallOption) (*Creative, error) return ret, nil // { // "description": "Updates an existing creative. This method supports patch semantics.", - // "flatPath": "userprofiles/{profileId}/creatives", + // "flatPath": "userprofiles/{userprofilesId}/creatives", // "httpMethod": "PATCH", // "id": "dfareporting.creatives.patch", // "parameterOrder": [ @@ -31882,7 +31959,7 @@ func (c *CreativesPatchCall) Do(opts ...googleapi.CallOption) (*Creative, error) // ], // "parameters": { // "id": { - // "description": "Creative ID.", + // "description": "Required. Creative ID.", // "format": "int64", // "location": "query", // "required": true, @@ -31892,11 +31969,12 @@ func (c *CreativesPatchCall) Do(opts ...googleapi.CallOption) (*Creative, error) // "description": "User profile ID associated with this request.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "userprofiles/{profileId}/creatives", + // "path": "userprofiles/{+profileId}/creatives", // "request": { // "$ref": "Creative" // }, @@ -31971,7 +32049,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, "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 { @@ -32023,7 +32101,7 @@ func (c *CreativesUpdateCall) Do(opts ...googleapi.CallOption) (*Creative, error return ret, nil // { // "description": "Updates an existing creative.", - // "flatPath": "userprofiles/{profileId}/creatives", + // "flatPath": "userprofiles/{userprofilesId}/creatives", // "httpMethod": "PUT", // "id": "dfareporting.creatives.update", // "parameterOrder": [ @@ -32034,11 +32112,12 @@ func (c *CreativesUpdateCall) Do(opts ...googleapi.CallOption) (*Creative, error // "description": "User profile ID associated with this request.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "userprofiles/{profileId}/creatives", + // "path": "userprofiles/{+profileId}/creatives", // "request": { // "$ref": "Creative" // }, @@ -32192,8 +32271,6 @@ func (c *DimensionValuesQueryCall) Do(opts ...googleapi.CallOption) (*DimensionV // "description": "Maximum number of results to return.", // "format": "int32", // "location": "query", - // "maximum": "100", - // "minimum": "0", // "type": "integer" // }, // "pageToken": { @@ -32315,7 +32392,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, "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 { @@ -32368,7 +32445,7 @@ func (c *DirectorySitesGetCall) Do(opts ...googleapi.CallOption) (*DirectorySite return ret, nil // { // "description": "Gets one directory site by ID.", - // "flatPath": "userprofiles/{profileId}/directorySites/{id}", + // "flatPath": "userprofiles/{userprofilesId}/directorySites/{directorySitesId}", // "httpMethod": "GET", // "id": "dfareporting.directorySites.get", // "parameterOrder": [ @@ -32380,6 +32457,7 @@ func (c *DirectorySitesGetCall) Do(opts ...googleapi.CallOption) (*DirectorySite // "description": "Directory site ID.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // }, @@ -32387,11 +32465,12 @@ func (c *DirectorySitesGetCall) Do(opts ...googleapi.CallOption) (*DirectorySite // "description": "User profile ID associated with this request.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "userprofiles/{profileId}/directorySites/{id}", + // "path": "userprofiles/{+profileId}/directorySites/{+id}", // "response": { // "$ref": "DirectorySite" // }, @@ -32463,7 +32542,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, "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 { @@ -32515,7 +32594,7 @@ func (c *DirectorySitesInsertCall) Do(opts ...googleapi.CallOption) (*DirectoryS return ret, nil // { // "description": "Inserts a new directory site.", - // "flatPath": "userprofiles/{profileId}/directorySites", + // "flatPath": "userprofiles/{userprofilesId}/directorySites", // "httpMethod": "POST", // "id": "dfareporting.directorySites.insert", // "parameterOrder": [ @@ -32526,11 +32605,12 @@ func (c *DirectorySitesInsertCall) Do(opts ...googleapi.CallOption) (*DirectoryS // "description": "User profile ID associated with this request.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "userprofiles/{profileId}/directorySites", + // "path": "userprofiles/{+profileId}/directorySites", // "request": { // "$ref": "DirectorySite" // }, @@ -32660,8 +32740,8 @@ func (c *DirectorySitesListCall) SortField(sortField string) *DirectorySitesList // // Possible values: // -// "ASCENDING" (default) -// "DESCENDING" +// "ASCENDING" (default) - Ascending order. +// "DESCENDING" - Descending order. func (c *DirectorySitesListCall) SortOrder(sortOrder string) *DirectorySitesListCall { c.urlParams_.Set("sortOrder", sortOrder) return c @@ -32715,7 +32795,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, "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 { @@ -32767,7 +32847,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": "userprofiles/{profileId}/directorySites", + // "flatPath": "userprofiles/{userprofilesId}/directorySites", // "httpMethod": "GET", // "id": "dfareporting.directorySites.list", // "parameterOrder": [ @@ -32811,8 +32891,6 @@ func (c *DirectorySitesListCall) Do(opts ...googleapi.CallOption) (*DirectorySit // "description": "Maximum number of results to return.", // "format": "int32", // "location": "query", - // "maximum": "1000", - // "minimum": "0", // "type": "integer" // }, // "pageToken": { @@ -32824,6 +32902,7 @@ func (c *DirectorySitesListCall) Do(opts ...googleapi.CallOption) (*DirectorySit // "description": "User profile ID associated with this request.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // }, @@ -32854,14 +32933,14 @@ func (c *DirectorySitesListCall) Do(opts ...googleapi.CallOption) (*DirectorySit // "DESCENDING" // ], // "enumDescriptions": [ - // "", - // "" + // "Ascending order.", + // "Descending order." // ], // "location": "query", // "type": "string" // } // }, - // "path": "userprofiles/{profileId}/directorySites", + // "path": "userprofiles/{+profileId}/directorySites", // "response": { // "$ref": "DirectorySitesListResponse" // }, @@ -32958,7 +33037,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, "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 { @@ -32986,7 +33065,7 @@ func (c *DynamicTargetingKeysDeleteCall) Do(opts ...googleapi.CallOption) error return nil // { // "description": "Deletes an existing dynamic targeting key.", - // "flatPath": "userprofiles/{profileId}/dynamicTargetingKeys/{objectId}", + // "flatPath": "userprofiles/{userprofilesId}/dynamicTargetingKeys/{dynamicTargetingKeysId}", // "httpMethod": "DELETE", // "id": "dfareporting.dynamicTargetingKeys.delete", // "parameterOrder": [ @@ -32997,7 +33076,7 @@ func (c *DynamicTargetingKeysDeleteCall) Do(opts ...googleapi.CallOption) error // ], // "parameters": { // "name": { - // "description": "Name of this dynamic targeting key. This is a required field. Must be less than 256 characters long and cannot contain commas. All characters are converted to lowercase.", + // "description": "Required. Name of this dynamic targeting key. This is a required field. Must be less than 256 characters long and cannot contain commas. All characters are converted to lowercase.", // "location": "query", // "required": true, // "type": "string" @@ -33006,11 +33085,12 @@ func (c *DynamicTargetingKeysDeleteCall) Do(opts ...googleapi.CallOption) error // "description": "ID of the object of this dynamic targeting key. This is a required field.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // }, // "objectType": { - // "description": "Type of the object of this dynamic targeting key. This is a required field.", + // "description": "Required. Type of the object of this dynamic targeting key. This is a required field.", // "enum": [ // "OBJECT_ADVERTISER", // "OBJECT_AD", @@ -33031,11 +33111,12 @@ func (c *DynamicTargetingKeysDeleteCall) Do(opts ...googleapi.CallOption) error // "description": "User profile ID associated with this request.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "userprofiles/{profileId}/dynamicTargetingKeys/{objectId}", + // "path": "userprofiles/{+profileId}/dynamicTargetingKeys/{+objectId}", // "scopes": [ // "https://www.googleapis.com/auth/dfatrafficking" // ] @@ -33108,7 +33189,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, "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 { @@ -33160,7 +33241,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": "userprofiles/{profileId}/dynamicTargetingKeys", + // "flatPath": "userprofiles/{userprofilesId}/dynamicTargetingKeys", // "httpMethod": "POST", // "id": "dfareporting.dynamicTargetingKeys.insert", // "parameterOrder": [ @@ -33171,11 +33252,12 @@ func (c *DynamicTargetingKeysInsertCall) Do(opts ...googleapi.CallOption) (*Dyna // "description": "User profile ID associated with this request.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "userprofiles/{profileId}/dynamicTargetingKeys", + // "path": "userprofiles/{+profileId}/dynamicTargetingKeys", // "request": { // "$ref": "DynamicTargetingKey" // }, @@ -33292,7 +33374,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, "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 { @@ -33344,7 +33426,7 @@ func (c *DynamicTargetingKeysListCall) Do(opts ...googleapi.CallOption) (*Dynami return ret, nil // { // "description": "Retrieves a list of dynamic targeting keys.", - // "flatPath": "userprofiles/{profileId}/dynamicTargetingKeys", + // "flatPath": "userprofiles/{userprofilesId}/dynamicTargetingKeys", // "httpMethod": "GET", // "id": "dfareporting.dynamicTargetingKeys.list", // "parameterOrder": [ @@ -33390,11 +33472,12 @@ func (c *DynamicTargetingKeysListCall) Do(opts ...googleapi.CallOption) (*Dynami // "description": "User profile ID associated with this request.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "userprofiles/{profileId}/dynamicTargetingKeys", + // "path": "userprofiles/{+profileId}/dynamicTargetingKeys", // "response": { // "$ref": "DynamicTargetingKeysListResponse" // }, @@ -33462,7 +33545,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, "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 { @@ -33490,7 +33573,7 @@ func (c *EventTagsDeleteCall) Do(opts ...googleapi.CallOption) error { return nil // { // "description": "Deletes an existing event tag.", - // "flatPath": "userprofiles/{profileId}/eventTags/{id}", + // "flatPath": "userprofiles/{userprofilesId}/eventTags/{eventTagsId}", // "httpMethod": "DELETE", // "id": "dfareporting.eventTags.delete", // "parameterOrder": [ @@ -33502,6 +33585,7 @@ func (c *EventTagsDeleteCall) Do(opts ...googleapi.CallOption) error { // "description": "Event tag ID.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // }, @@ -33509,11 +33593,12 @@ func (c *EventTagsDeleteCall) Do(opts ...googleapi.CallOption) error { // "description": "User profile ID associated with this request.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "userprofiles/{profileId}/eventTags/{id}", + // "path": "userprofiles/{+profileId}/eventTags/{+id}", // "scopes": [ // "https://www.googleapis.com/auth/dfatrafficking" // ] @@ -33592,7 +33677,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, "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 { @@ -33645,7 +33730,7 @@ func (c *EventTagsGetCall) Do(opts ...googleapi.CallOption) (*EventTag, error) { return ret, nil // { // "description": "Gets one event tag by ID.", - // "flatPath": "userprofiles/{profileId}/eventTags/{id}", + // "flatPath": "userprofiles/{userprofilesId}/eventTags/{eventTagsId}", // "httpMethod": "GET", // "id": "dfareporting.eventTags.get", // "parameterOrder": [ @@ -33657,6 +33742,7 @@ func (c *EventTagsGetCall) Do(opts ...googleapi.CallOption) (*EventTag, error) { // "description": "Event tag ID.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // }, @@ -33664,11 +33750,12 @@ func (c *EventTagsGetCall) Do(opts ...googleapi.CallOption) (*EventTag, error) { // "description": "User profile ID associated with this request.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "userprofiles/{profileId}/eventTags/{id}", + // "path": "userprofiles/{+profileId}/eventTags/{+id}", // "response": { // "$ref": "EventTag" // }, @@ -33740,7 +33827,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, "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 { @@ -33792,7 +33879,7 @@ func (c *EventTagsInsertCall) Do(opts ...googleapi.CallOption) (*EventTag, error return ret, nil // { // "description": "Inserts a new event tag.", - // "flatPath": "userprofiles/{profileId}/eventTags", + // "flatPath": "userprofiles/{userprofilesId}/eventTags", // "httpMethod": "POST", // "id": "dfareporting.eventTags.insert", // "parameterOrder": [ @@ -33803,11 +33890,12 @@ func (c *EventTagsInsertCall) Do(opts ...googleapi.CallOption) (*EventTag, error // "description": "User profile ID associated with this request.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "userprofiles/{profileId}/eventTags", + // "path": "userprofiles/{+profileId}/eventTags", // "request": { // "$ref": "EventTag" // }, @@ -33896,9 +33984,17 @@ func (c *EventTagsListCall) Enabled(enabled bool) *EventTagsListCall { // // Possible values: // -// "IMPRESSION_IMAGE_EVENT_TAG" -// "IMPRESSION_JAVASCRIPT_EVENT_TAG" -// "CLICK_THROUGH_EVENT_TAG" +// "IMPRESSION_IMAGE_EVENT_TAG" - A third-party pixel for impression +// +// tracking. +// +// "IMPRESSION_JAVASCRIPT_EVENT_TAG" - A third-party JavaScript URL +// +// for impression tracking. +// +// "CLICK_THROUGH_EVENT_TAG" - A third-party URL for click tracking +// +// that redirects to the landing page. func (c *EventTagsListCall) EventTagTypes(eventTagTypes ...string) *EventTagsListCall { c.urlParams_.SetMulti("eventTagTypes", append([]string{}, eventTagTypes...)) return c @@ -33945,8 +34041,8 @@ func (c *EventTagsListCall) SortField(sortField string) *EventTagsListCall { // // Possible values: // -// "ASCENDING" (default) -// "DESCENDING" +// "ASCENDING" (default) - Ascending order. +// "DESCENDING" - Descending order. func (c *EventTagsListCall) SortOrder(sortOrder string) *EventTagsListCall { c.urlParams_.Set("sortOrder", sortOrder) return c @@ -34000,7 +34096,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, "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 { @@ -34052,7 +34148,7 @@ func (c *EventTagsListCall) Do(opts ...googleapi.CallOption) (*EventTagsListResp return ret, nil // { // "description": "Retrieves a list of event tags, possibly filtered.", - // "flatPath": "userprofiles/{profileId}/eventTags", + // "flatPath": "userprofiles/{userprofilesId}/eventTags", // "httpMethod": "GET", // "id": "dfareporting.eventTags.list", // "parameterOrder": [ @@ -34095,9 +34191,9 @@ func (c *EventTagsListCall) Do(opts ...googleapi.CallOption) (*EventTagsListResp // "CLICK_THROUGH_EVENT_TAG" // ], // "enumDescriptions": [ - // "", - // "", - // "" + // "A third-party pixel for impression tracking.", + // "A third-party JavaScript URL for impression tracking.", + // "A third-party URL for click tracking that redirects to the landing page." // ], // "location": "query", // "repeated": true, @@ -34114,6 +34210,7 @@ func (c *EventTagsListCall) Do(opts ...googleapi.CallOption) (*EventTagsListResp // "description": "User profile ID associated with this request.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // }, @@ -34144,14 +34241,14 @@ func (c *EventTagsListCall) Do(opts ...googleapi.CallOption) (*EventTagsListResp // "DESCENDING" // ], // "enumDescriptions": [ - // "", - // "" + // "Ascending order.", + // "Descending order." // ], // "location": "query", // "type": "string" // } // }, - // "path": "userprofiles/{profileId}/eventTags", + // "path": "userprofiles/{+profileId}/eventTags", // "response": { // "$ref": "EventTagsListResponse" // }, @@ -34226,7 +34323,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, "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 { @@ -34278,7 +34375,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": "userprofiles/{profileId}/eventTags", + // "flatPath": "userprofiles/{userprofilesId}/eventTags", // "httpMethod": "PATCH", // "id": "dfareporting.eventTags.patch", // "parameterOrder": [ @@ -34287,7 +34384,7 @@ func (c *EventTagsPatchCall) Do(opts ...googleapi.CallOption) (*EventTag, error) // ], // "parameters": { // "id": { - // "description": "EventTag ID.", + // "description": "Required. EventTag ID.", // "format": "int64", // "location": "query", // "required": true, @@ -34297,11 +34394,12 @@ func (c *EventTagsPatchCall) Do(opts ...googleapi.CallOption) (*EventTag, error) // "description": "User profile ID associated with this request.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "userprofiles/{profileId}/eventTags", + // "path": "userprofiles/{+profileId}/eventTags", // "request": { // "$ref": "EventTag" // }, @@ -34376,7 +34474,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, "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 { @@ -34428,7 +34526,7 @@ func (c *EventTagsUpdateCall) Do(opts ...googleapi.CallOption) (*EventTag, error return ret, nil // { // "description": "Updates an existing event tag.", - // "flatPath": "userprofiles/{profileId}/eventTags", + // "flatPath": "userprofiles/{userprofilesId}/eventTags", // "httpMethod": "PUT", // "id": "dfareporting.eventTags.update", // "parameterOrder": [ @@ -34439,11 +34537,12 @@ func (c *EventTagsUpdateCall) Do(opts ...googleapi.CallOption) (*EventTag, error // "description": "User profile ID associated with this request.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "userprofiles/{profileId}/eventTags", + // "path": "userprofiles/{+profileId}/eventTags", // "request": { // "$ref": "EventTag" // }, @@ -34816,8 +34915,6 @@ func (c *FilesListCall) Do(opts ...googleapi.CallOption) (*FileList, error) { // "description": "Maximum number of results to return.", // "format": "int32", // "location": "query", - // "maximum": "10", - // "minimum": "0", // "type": "integer" // }, // "pageToken": { @@ -34966,7 +35063,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, "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 { @@ -34994,7 +35091,7 @@ func (c *FloodlightActivitiesDeleteCall) Do(opts ...googleapi.CallOption) error return nil // { // "description": "Deletes an existing floodlight activity.", - // "flatPath": "userprofiles/{profileId}/floodlightActivities/{id}", + // "flatPath": "userprofiles/{userprofilesId}/floodlightActivities/{floodlightActivitiesId}", // "httpMethod": "DELETE", // "id": "dfareporting.floodlightActivities.delete", // "parameterOrder": [ @@ -35006,6 +35103,7 @@ func (c *FloodlightActivitiesDeleteCall) Do(opts ...googleapi.CallOption) error // "description": "Floodlight activity ID.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // }, @@ -35013,11 +35111,12 @@ func (c *FloodlightActivitiesDeleteCall) Do(opts ...googleapi.CallOption) error // "description": "User profile ID associated with this request.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "userprofiles/{profileId}/floodlightActivities/{id}", + // "path": "userprofiles/{+profileId}/floodlightActivities/{+id}", // "scopes": [ // "https://www.googleapis.com/auth/dfatrafficking" // ] @@ -35087,7 +35186,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, "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 { @@ -35140,7 +35239,7 @@ func (c *FloodlightActivitiesGeneratetagCall) Do(opts ...googleapi.CallOption) ( return ret, nil // { // "description": "Generates a tag for a floodlight activity.", - // "flatPath": "userprofiles/{profileId}/floodlightActivities/generatetag", + // "flatPath": "userprofiles/{userprofilesId}/floodlightActivities/generatetag", // "httpMethod": "POST", // "id": "dfareporting.floodlightActivities.generatetag", // "parameterOrder": [ @@ -35157,11 +35256,12 @@ func (c *FloodlightActivitiesGeneratetagCall) Do(opts ...googleapi.CallOption) ( // "description": "User profile ID associated with this request.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "userprofiles/{profileId}/floodlightActivities/generatetag", + // "path": "userprofiles/{+profileId}/floodlightActivities/generatetag", // "response": { // "$ref": "FloodlightActivitiesGenerateTagResponse" // }, @@ -35243,7 +35343,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, "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 { @@ -35296,7 +35396,7 @@ func (c *FloodlightActivitiesGetCall) Do(opts ...googleapi.CallOption) (*Floodli return ret, nil // { // "description": "Gets one floodlight activity by ID.", - // "flatPath": "userprofiles/{profileId}/floodlightActivities/{id}", + // "flatPath": "userprofiles/{userprofilesId}/floodlightActivities/{floodlightActivitiesId}", // "httpMethod": "GET", // "id": "dfareporting.floodlightActivities.get", // "parameterOrder": [ @@ -35308,6 +35408,7 @@ func (c *FloodlightActivitiesGetCall) Do(opts ...googleapi.CallOption) (*Floodli // "description": "Floodlight activity ID.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // }, @@ -35315,11 +35416,12 @@ func (c *FloodlightActivitiesGetCall) Do(opts ...googleapi.CallOption) (*Floodli // "description": "User profile ID associated with this request.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "userprofiles/{profileId}/floodlightActivities/{id}", + // "path": "userprofiles/{+profileId}/floodlightActivities/{+id}", // "response": { // "$ref": "FloodlightActivity" // }, @@ -35391,7 +35493,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, "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 { @@ -35443,7 +35545,7 @@ func (c *FloodlightActivitiesInsertCall) Do(opts ...googleapi.CallOption) (*Floo return ret, nil // { // "description": "Inserts a new floodlight activity.", - // "flatPath": "userprofiles/{profileId}/floodlightActivities", + // "flatPath": "userprofiles/{userprofilesId}/floodlightActivities", // "httpMethod": "POST", // "id": "dfareporting.floodlightActivities.insert", // "parameterOrder": [ @@ -35454,11 +35556,12 @@ func (c *FloodlightActivitiesInsertCall) Do(opts ...googleapi.CallOption) (*Floo // "description": "User profile ID associated with this request.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "userprofiles/{profileId}/floodlightActivities", + // "path": "userprofiles/{+profileId}/floodlightActivities", // "request": { // "$ref": "FloodlightActivity" // }, @@ -35609,8 +35712,8 @@ func (c *FloodlightActivitiesListCall) SortField(sortField string) *FloodlightAc // // Possible values: // -// "ASCENDING" (default) -// "DESCENDING" +// "ASCENDING" (default) - Ascending order. +// "DESCENDING" - Descending order. func (c *FloodlightActivitiesListCall) SortOrder(sortOrder string) *FloodlightActivitiesListCall { c.urlParams_.Set("sortOrder", sortOrder) return c @@ -35671,7 +35774,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, "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 { @@ -35723,7 +35826,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": "userprofiles/{profileId}/floodlightActivities", + // "flatPath": "userprofiles/{userprofilesId}/floodlightActivities", // "httpMethod": "GET", // "id": "dfareporting.floodlightActivities.list", // "parameterOrder": [ @@ -35784,8 +35887,6 @@ func (c *FloodlightActivitiesListCall) Do(opts ...googleapi.CallOption) (*Floodl // "description": "Maximum number of results to return.", // "format": "int32", // "location": "query", - // "maximum": "1000", - // "minimum": "0", // "type": "integer" // }, // "pageToken": { @@ -35797,6 +35898,7 @@ func (c *FloodlightActivitiesListCall) Do(opts ...googleapi.CallOption) (*Floodl // "description": "User profile ID associated with this request.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // }, @@ -35827,8 +35929,8 @@ func (c *FloodlightActivitiesListCall) Do(opts ...googleapi.CallOption) (*Floodl // "DESCENDING" // ], // "enumDescriptions": [ - // "", - // "" + // "Ascending order.", + // "Descending order." // ], // "location": "query", // "type": "string" @@ -35839,7 +35941,7 @@ func (c *FloodlightActivitiesListCall) Do(opts ...googleapi.CallOption) (*Floodl // "type": "string" // } // }, - // "path": "userprofiles/{profileId}/floodlightActivities", + // "path": "userprofiles/{+profileId}/floodlightActivities", // "response": { // "$ref": "FloodlightActivitiesListResponse" // }, @@ -35882,10 +35984,10 @@ type FloodlightActivitiesPatchCall struct { header_ http.Header } -// Patch: Updates an existing floodlight activity. This method supports -// patch semantics. +// Patch: Updates an existing event tag. This method supports patch +// semantics. // -// - id: FloodlightActivity ID. +// - id: EventTag ID. // - profileId: User profile ID associated with this request. func (r *FloodlightActivitiesService) Patch(profileId int64, id int64, floodlightactivity *FloodlightActivity) *FloodlightActivitiesPatchCall { c := &FloodlightActivitiesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} @@ -35935,7 +36037,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, "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 { @@ -35986,8 +36088,8 @@ func (c *FloodlightActivitiesPatchCall) Do(opts ...googleapi.CallOption) (*Flood } return ret, nil // { - // "description": "Updates an existing floodlight activity. This method supports patch semantics.", - // "flatPath": "userprofiles/{profileId}/floodlightActivities", + // "description": "Updates an existing event tag. This method supports patch semantics.", + // "flatPath": "userprofiles/{userprofilesId}/floodlightActivities", // "httpMethod": "PATCH", // "id": "dfareporting.floodlightActivities.patch", // "parameterOrder": [ @@ -35996,7 +36098,7 @@ func (c *FloodlightActivitiesPatchCall) Do(opts ...googleapi.CallOption) (*Flood // ], // "parameters": { // "id": { - // "description": "FloodlightActivity ID.", + // "description": "Required. EventTag ID.", // "format": "int64", // "location": "query", // "required": true, @@ -36006,11 +36108,12 @@ func (c *FloodlightActivitiesPatchCall) Do(opts ...googleapi.CallOption) (*Flood // "description": "User profile ID associated with this request.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "userprofiles/{profileId}/floodlightActivities", + // "path": "userprofiles/{+profileId}/floodlightActivities", // "request": { // "$ref": "FloodlightActivity" // }, @@ -36085,7 +36188,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, "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 { @@ -36137,7 +36240,7 @@ func (c *FloodlightActivitiesUpdateCall) Do(opts ...googleapi.CallOption) (*Floo return ret, nil // { // "description": "Updates an existing floodlight activity.", - // "flatPath": "userprofiles/{profileId}/floodlightActivities", + // "flatPath": "userprofiles/{userprofilesId}/floodlightActivities", // "httpMethod": "PUT", // "id": "dfareporting.floodlightActivities.update", // "parameterOrder": [ @@ -36148,11 +36251,12 @@ func (c *FloodlightActivitiesUpdateCall) Do(opts ...googleapi.CallOption) (*Floo // "description": "User profile ID associated with this request.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "userprofiles/{profileId}/floodlightActivities", + // "path": "userprofiles/{+profileId}/floodlightActivities", // "request": { // "$ref": "FloodlightActivity" // }, @@ -36237,7 +36341,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, "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 { @@ -36290,7 +36394,7 @@ func (c *FloodlightActivityGroupsGetCall) Do(opts ...googleapi.CallOption) (*Flo return ret, nil // { // "description": "Gets one floodlight activity group by ID.", - // "flatPath": "userprofiles/{profileId}/floodlightActivityGroups/{id}", + // "flatPath": "userprofiles/{userprofilesId}/floodlightActivityGroups/{floodlightActivityGroupsId}", // "httpMethod": "GET", // "id": "dfareporting.floodlightActivityGroups.get", // "parameterOrder": [ @@ -36302,6 +36406,7 @@ func (c *FloodlightActivityGroupsGetCall) Do(opts ...googleapi.CallOption) (*Flo // "description": "Floodlight activity Group ID.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // }, @@ -36309,11 +36414,12 @@ func (c *FloodlightActivityGroupsGetCall) Do(opts ...googleapi.CallOption) (*Flo // "description": "User profile ID associated with this request.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "userprofiles/{profileId}/floodlightActivityGroups/{id}", + // "path": "userprofiles/{+profileId}/floodlightActivityGroups/{+id}", // "response": { // "$ref": "FloodlightActivityGroup" // }, @@ -36385,7 +36491,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, "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 { @@ -36437,7 +36543,7 @@ func (c *FloodlightActivityGroupsInsertCall) Do(opts ...googleapi.CallOption) (* return ret, nil // { // "description": "Inserts a new floodlight activity group.", - // "flatPath": "userprofiles/{profileId}/floodlightActivityGroups", + // "flatPath": "userprofiles/{userprofilesId}/floodlightActivityGroups", // "httpMethod": "POST", // "id": "dfareporting.floodlightActivityGroups.insert", // "parameterOrder": [ @@ -36448,11 +36554,12 @@ func (c *FloodlightActivityGroupsInsertCall) Do(opts ...googleapi.CallOption) (* // "description": "User profile ID associated with this request.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "userprofiles/{profileId}/floodlightActivityGroups", + // "path": "userprofiles/{+profileId}/floodlightActivityGroups", // "request": { // "$ref": "FloodlightActivityGroup" // }, @@ -36563,8 +36670,8 @@ func (c *FloodlightActivityGroupsListCall) SortField(sortField string) *Floodlig // // Possible values: // -// "ASCENDING" (default) -// "DESCENDING" +// "ASCENDING" (default) - Ascending order. +// "DESCENDING" - Descending order. func (c *FloodlightActivityGroupsListCall) SortOrder(sortOrder string) *FloodlightActivityGroupsListCall { c.urlParams_.Set("sortOrder", sortOrder) return c @@ -36630,7 +36737,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, "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 { @@ -36683,7 +36790,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": "userprofiles/{profileId}/floodlightActivityGroups", + // "flatPath": "userprofiles/{userprofilesId}/floodlightActivityGroups", // "httpMethod": "GET", // "id": "dfareporting.floodlightActivityGroups.list", // "parameterOrder": [ @@ -36714,8 +36821,6 @@ func (c *FloodlightActivityGroupsListCall) Do(opts ...googleapi.CallOption) (*Fl // "description": "Maximum number of results to return.", // "format": "int32", // "location": "query", - // "maximum": "1000", - // "minimum": "0", // "type": "integer" // }, // "pageToken": { @@ -36727,6 +36832,7 @@ func (c *FloodlightActivityGroupsListCall) Do(opts ...googleapi.CallOption) (*Fl // "description": "User profile ID associated with this request.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // }, @@ -36757,8 +36863,8 @@ func (c *FloodlightActivityGroupsListCall) Do(opts ...googleapi.CallOption) (*Fl // "DESCENDING" // ], // "enumDescriptions": [ - // "", - // "" + // "Ascending order.", + // "Descending order." // ], // "location": "query", // "type": "string" @@ -36777,7 +36883,7 @@ func (c *FloodlightActivityGroupsListCall) Do(opts ...googleapi.CallOption) (*Fl // "type": "string" // } // }, - // "path": "userprofiles/{profileId}/floodlightActivityGroups", + // "path": "userprofiles/{+profileId}/floodlightActivityGroups", // "response": { // "$ref": "FloodlightActivityGroupsListResponse" // }, @@ -36820,10 +36926,10 @@ type FloodlightActivityGroupsPatchCall struct { header_ http.Header } -// Patch: Updates an existing floodlight activity group. This method -// supports patch semantics. +// Patch: Updates an existing event tag. This method supports patch +// semantics. // -// - id: FloodlightActivityGroup ID. +// - id: EventTag ID. // - profileId: User profile ID associated with this request. func (r *FloodlightActivityGroupsService) Patch(profileId int64, id int64, floodlightactivitygroup *FloodlightActivityGroup) *FloodlightActivityGroupsPatchCall { c := &FloodlightActivityGroupsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} @@ -36873,7 +36979,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, "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 { @@ -36924,8 +37030,8 @@ func (c *FloodlightActivityGroupsPatchCall) Do(opts ...googleapi.CallOption) (*F } return ret, nil // { - // "description": "Updates an existing floodlight activity group. This method supports patch semantics.", - // "flatPath": "userprofiles/{profileId}/floodlightActivityGroups", + // "description": "Updates an existing event tag. This method supports patch semantics.", + // "flatPath": "userprofiles/{userprofilesId}/floodlightActivityGroups", // "httpMethod": "PATCH", // "id": "dfareporting.floodlightActivityGroups.patch", // "parameterOrder": [ @@ -36934,7 +37040,7 @@ func (c *FloodlightActivityGroupsPatchCall) Do(opts ...googleapi.CallOption) (*F // ], // "parameters": { // "id": { - // "description": "FloodlightActivityGroup ID.", + // "description": "Required. EventTag ID.", // "format": "int64", // "location": "query", // "required": true, @@ -36944,11 +37050,12 @@ func (c *FloodlightActivityGroupsPatchCall) Do(opts ...googleapi.CallOption) (*F // "description": "User profile ID associated with this request.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "userprofiles/{profileId}/floodlightActivityGroups", + // "path": "userprofiles/{+profileId}/floodlightActivityGroups", // "request": { // "$ref": "FloodlightActivityGroup" // }, @@ -37023,7 +37130,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, "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 { @@ -37075,7 +37182,7 @@ func (c *FloodlightActivityGroupsUpdateCall) Do(opts ...googleapi.CallOption) (* return ret, nil // { // "description": "Updates an existing floodlight activity group.", - // "flatPath": "userprofiles/{profileId}/floodlightActivityGroups", + // "flatPath": "userprofiles/{userprofilesId}/floodlightActivityGroups", // "httpMethod": "PUT", // "id": "dfareporting.floodlightActivityGroups.update", // "parameterOrder": [ @@ -37086,11 +37193,12 @@ func (c *FloodlightActivityGroupsUpdateCall) Do(opts ...googleapi.CallOption) (* // "description": "User profile ID associated with this request.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "userprofiles/{profileId}/floodlightActivityGroups", + // "path": "userprofiles/{+profileId}/floodlightActivityGroups", // "request": { // "$ref": "FloodlightActivityGroup" // }, @@ -37175,7 +37283,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, "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 { @@ -37228,7 +37336,7 @@ func (c *FloodlightConfigurationsGetCall) Do(opts ...googleapi.CallOption) (*Flo return ret, nil // { // "description": "Gets one floodlight configuration by ID.", - // "flatPath": "userprofiles/{profileId}/floodlightConfigurations/{id}", + // "flatPath": "userprofiles/{userprofilesId}/floodlightConfigurations/{floodlightConfigurationsId}", // "httpMethod": "GET", // "id": "dfareporting.floodlightConfigurations.get", // "parameterOrder": [ @@ -37240,6 +37348,7 @@ func (c *FloodlightConfigurationsGetCall) Do(opts ...googleapi.CallOption) (*Flo // "description": "Floodlight configuration ID.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // }, @@ -37247,11 +37356,12 @@ func (c *FloodlightConfigurationsGetCall) Do(opts ...googleapi.CallOption) (*Flo // "description": "User profile ID associated with this request.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "userprofiles/{profileId}/floodlightConfigurations/{id}", + // "path": "userprofiles/{+profileId}/floodlightConfigurations/{+id}", // "response": { // "$ref": "FloodlightConfiguration" // }, @@ -37343,7 +37453,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, "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 { @@ -37396,7 +37506,7 @@ func (c *FloodlightConfigurationsListCall) Do(opts ...googleapi.CallOption) (*Fl return ret, nil // { // "description": "Retrieves a list of floodlight configurations, possibly filtered.", - // "flatPath": "userprofiles/{profileId}/floodlightConfigurations", + // "flatPath": "userprofiles/{userprofilesId}/floodlightConfigurations", // "httpMethod": "GET", // "id": "dfareporting.floodlightConfigurations.list", // "parameterOrder": [ @@ -37414,11 +37524,12 @@ func (c *FloodlightConfigurationsListCall) Do(opts ...googleapi.CallOption) (*Fl // "description": "User profile ID associated with this request.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "userprofiles/{profileId}/floodlightConfigurations", + // "path": "userprofiles/{+profileId}/floodlightConfigurations", // "response": { // "$ref": "FloodlightConfigurationsListResponse" // }, @@ -37440,10 +37551,10 @@ type FloodlightConfigurationsPatchCall struct { header_ http.Header } -// Patch: Updates an existing floodlight configuration. This method -// supports patch semantics. +// Patch: Updates an existing event tag. This method supports patch +// semantics. // -// - id: FloodlightConfiguration ID. +// - id: EventTag ID. // - profileId: User profile ID associated with this request. func (r *FloodlightConfigurationsService) Patch(profileId int64, id int64, floodlightconfiguration *FloodlightConfiguration) *FloodlightConfigurationsPatchCall { c := &FloodlightConfigurationsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} @@ -37493,7 +37604,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, "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 { @@ -37544,8 +37655,8 @@ func (c *FloodlightConfigurationsPatchCall) Do(opts ...googleapi.CallOption) (*F } return ret, nil // { - // "description": "Updates an existing floodlight configuration. This method supports patch semantics.", - // "flatPath": "userprofiles/{profileId}/floodlightConfigurations", + // "description": "Updates an existing event tag. This method supports patch semantics.", + // "flatPath": "userprofiles/{userprofilesId}/floodlightConfigurations", // "httpMethod": "PATCH", // "id": "dfareporting.floodlightConfigurations.patch", // "parameterOrder": [ @@ -37554,7 +37665,7 @@ func (c *FloodlightConfigurationsPatchCall) Do(opts ...googleapi.CallOption) (*F // ], // "parameters": { // "id": { - // "description": "FloodlightConfiguration ID.", + // "description": "Required. EventTag ID.", // "format": "int64", // "location": "query", // "required": true, @@ -37564,11 +37675,12 @@ func (c *FloodlightConfigurationsPatchCall) Do(opts ...googleapi.CallOption) (*F // "description": "User profile ID associated with this request.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "userprofiles/{profileId}/floodlightConfigurations", + // "path": "userprofiles/{+profileId}/floodlightConfigurations", // "request": { // "$ref": "FloodlightConfiguration" // }, @@ -37643,7 +37755,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, "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 { @@ -37695,7 +37807,7 @@ func (c *FloodlightConfigurationsUpdateCall) Do(opts ...googleapi.CallOption) (* return ret, nil // { // "description": "Updates an existing floodlight configuration.", - // "flatPath": "userprofiles/{profileId}/floodlightConfigurations", + // "flatPath": "userprofiles/{userprofilesId}/floodlightConfigurations", // "httpMethod": "PUT", // "id": "dfareporting.floodlightConfigurations.update", // "parameterOrder": [ @@ -37706,11 +37818,12 @@ func (c *FloodlightConfigurationsUpdateCall) Do(opts ...googleapi.CallOption) (* // "description": "User profile ID associated with this request.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "userprofiles/{profileId}/floodlightConfigurations", + // "path": "userprofiles/{+profileId}/floodlightConfigurations", // "request": { // "$ref": "FloodlightConfiguration" // }, @@ -37798,7 +37911,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, "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 { @@ -37852,7 +37965,7 @@ func (c *InventoryItemsGetCall) Do(opts ...googleapi.CallOption) (*InventoryItem return ret, nil // { // "description": "Gets one inventory item by ID.", - // "flatPath": "userprofiles/{profileId}/projects/{projectId}/inventoryItems/{id}", + // "flatPath": "userprofiles/{userprofilesId}/projects/{projectId}/inventoryItems/{inventoryItemsId}", // "httpMethod": "GET", // "id": "dfareporting.inventoryItems.get", // "parameterOrder": [ @@ -37865,6 +37978,7 @@ func (c *InventoryItemsGetCall) Do(opts ...googleapi.CallOption) (*InventoryItem // "description": "Inventory item ID.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // }, @@ -37872,6 +37986,7 @@ func (c *InventoryItemsGetCall) Do(opts ...googleapi.CallOption) (*InventoryItem // "description": "User profile ID associated with this request.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // }, @@ -37883,7 +37998,7 @@ func (c *InventoryItemsGetCall) Do(opts ...googleapi.CallOption) (*InventoryItem // "type": "string" // } // }, - // "path": "userprofiles/{profileId}/projects/{projectId}/inventoryItems/{id}", + // "path": "userprofiles/{+profileId}/projects/{projectId}/inventoryItems/{+id}", // "response": { // "$ref": "InventoryItem" // }, @@ -37989,8 +38104,8 @@ func (c *InventoryItemsListCall) SortField(sortField string) *InventoryItemsList // // Possible values: // -// "ASCENDING" (default) -// "DESCENDING" +// "ASCENDING" (default) - Ascending order. +// "DESCENDING" - Descending order. func (c *InventoryItemsListCall) SortOrder(sortOrder string) *InventoryItemsListCall { c.urlParams_.Set("sortOrder", sortOrder) return c @@ -38056,7 +38171,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, "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 { @@ -38109,7 +38224,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": "userprofiles/{profileId}/projects/{projectId}/inventoryItems", + // "flatPath": "userprofiles/{userprofilesId}/projects/{projectId}/inventoryItems", // "httpMethod": "GET", // "id": "dfareporting.inventoryItems.list", // "parameterOrder": [ @@ -38134,8 +38249,6 @@ func (c *InventoryItemsListCall) Do(opts ...googleapi.CallOption) (*InventoryIte // "description": "Maximum number of results to return.", // "format": "int32", // "location": "query", - // "maximum": "1000", - // "minimum": "0", // "type": "integer" // }, // "orderId": { @@ -38154,6 +38267,7 @@ func (c *InventoryItemsListCall) Do(opts ...googleapi.CallOption) (*InventoryIte // "description": "User profile ID associated with this request.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // }, @@ -38193,8 +38307,8 @@ func (c *InventoryItemsListCall) Do(opts ...googleapi.CallOption) (*InventoryIte // "DESCENDING" // ], // "enumDescriptions": [ - // "", - // "" + // "Ascending order.", + // "Descending order." // ], // "location": "query", // "type": "string" @@ -38213,7 +38327,7 @@ func (c *InventoryItemsListCall) Do(opts ...googleapi.CallOption) (*InventoryIte // "type": "string" // } // }, - // "path": "userprofiles/{profileId}/projects/{projectId}/inventoryItems", + // "path": "userprofiles/{+profileId}/projects/{projectId}/inventoryItems", // "response": { // "$ref": "InventoryItemsListResponse" // }, @@ -38313,7 +38427,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, "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 { @@ -38365,7 +38479,7 @@ func (c *LanguagesListCall) Do(opts ...googleapi.CallOption) (*LanguagesListResp return ret, nil // { // "description": "Retrieves a list of languages.", - // "flatPath": "userprofiles/{profileId}/languages", + // "flatPath": "userprofiles/{userprofilesId}/languages", // "httpMethod": "GET", // "id": "dfareporting.languages.list", // "parameterOrder": [ @@ -38376,11 +38490,12 @@ func (c *LanguagesListCall) Do(opts ...googleapi.CallOption) (*LanguagesListResp // "description": "User profile ID associated with this request.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "userprofiles/{profileId}/languages", + // "path": "userprofiles/{+profileId}/languages", // "response": { // "$ref": "LanguagesListResponse" // }, @@ -38459,7 +38574,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, "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 { @@ -38511,7 +38626,7 @@ func (c *MetrosListCall) Do(opts ...googleapi.CallOption) (*MetrosListResponse, return ret, nil // { // "description": "Retrieves a list of metros.", - // "flatPath": "userprofiles/{profileId}/metros", + // "flatPath": "userprofiles/{userprofilesId}/metros", // "httpMethod": "GET", // "id": "dfareporting.metros.list", // "parameterOrder": [ @@ -38522,11 +38637,12 @@ func (c *MetrosListCall) Do(opts ...googleapi.CallOption) (*MetrosListResponse, // "description": "User profile ID associated with this request.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "userprofiles/{profileId}/metros", + // "path": "userprofiles/{+profileId}/metros", // "response": { // "$ref": "MetrosListResponse" // }, @@ -38608,7 +38724,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, "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 { @@ -38661,7 +38777,7 @@ func (c *MobileAppsGetCall) Do(opts ...googleapi.CallOption) (*MobileApp, error) return ret, nil // { // "description": "Gets one mobile app by ID.", - // "flatPath": "userprofiles/{profileId}/mobileApps/{id}", + // "flatPath": "userprofiles/{userprofilesId}/mobileApps/{mobileAppsId}", // "httpMethod": "GET", // "id": "dfareporting.mobileApps.get", // "parameterOrder": [ @@ -38672,6 +38788,7 @@ func (c *MobileAppsGetCall) Do(opts ...googleapi.CallOption) (*MobileApp, error) // "id": { // "description": "Mobile app ID.", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // }, @@ -38679,11 +38796,12 @@ func (c *MobileAppsGetCall) Do(opts ...googleapi.CallOption) (*MobileApp, error) // "description": "User profile ID associated with this request.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "userprofiles/{profileId}/mobileApps/{id}", + // "path": "userprofiles/{+profileId}/mobileApps/{+id}", // "response": { // "$ref": "MobileApp" // }, @@ -38816,7 +38934,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, "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 { @@ -38868,7 +38986,7 @@ func (c *MobileAppsListCall) Do(opts ...googleapi.CallOption) (*MobileAppsListRe return ret, nil // { // "description": "Retrieves list of available mobile apps.", - // "flatPath": "userprofiles/{profileId}/mobileApps", + // "flatPath": "userprofiles/{userprofilesId}/mobileApps", // "httpMethod": "GET", // "id": "dfareporting.mobileApps.list", // "parameterOrder": [ @@ -38918,8 +39036,6 @@ func (c *MobileAppsListCall) Do(opts ...googleapi.CallOption) (*MobileAppsListRe // "description": "Maximum number of results to return.", // "format": "int32", // "location": "query", - // "maximum": "1000", - // "minimum": "0", // "type": "integer" // }, // "pageToken": { @@ -38931,6 +39047,7 @@ func (c *MobileAppsListCall) Do(opts ...googleapi.CallOption) (*MobileAppsListRe // "description": "User profile ID associated with this request.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // }, @@ -38940,7 +39057,7 @@ func (c *MobileAppsListCall) Do(opts ...googleapi.CallOption) (*MobileAppsListRe // "type": "string" // } // }, - // "path": "userprofiles/{profileId}/mobileApps", + // "path": "userprofiles/{+profileId}/mobileApps", // "response": { // "$ref": "MobileAppsListResponse" // }, @@ -39043,7 +39160,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, "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 { @@ -39096,7 +39213,7 @@ func (c *MobileCarriersGetCall) Do(opts ...googleapi.CallOption) (*MobileCarrier return ret, nil // { // "description": "Gets one mobile carrier by ID.", - // "flatPath": "userprofiles/{profileId}/mobileCarriers/{id}", + // "flatPath": "userprofiles/{userprofilesId}/mobileCarriers/{mobileCarriersId}", // "httpMethod": "GET", // "id": "dfareporting.mobileCarriers.get", // "parameterOrder": [ @@ -39108,6 +39225,7 @@ func (c *MobileCarriersGetCall) Do(opts ...googleapi.CallOption) (*MobileCarrier // "description": "Mobile carrier ID.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // }, @@ -39115,11 +39233,12 @@ func (c *MobileCarriersGetCall) Do(opts ...googleapi.CallOption) (*MobileCarrier // "description": "User profile ID associated with this request.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "userprofiles/{profileId}/mobileCarriers/{id}", + // "path": "userprofiles/{+profileId}/mobileCarriers/{+id}", // "response": { // "$ref": "MobileCarrier" // }, @@ -39198,7 +39317,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, "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 { @@ -39250,7 +39369,7 @@ func (c *MobileCarriersListCall) Do(opts ...googleapi.CallOption) (*MobileCarrie return ret, nil // { // "description": "Retrieves a list of mobile carriers.", - // "flatPath": "userprofiles/{profileId}/mobileCarriers", + // "flatPath": "userprofiles/{userprofilesId}/mobileCarriers", // "httpMethod": "GET", // "id": "dfareporting.mobileCarriers.list", // "parameterOrder": [ @@ -39261,11 +39380,12 @@ func (c *MobileCarriersListCall) Do(opts ...googleapi.CallOption) (*MobileCarrie // "description": "User profile ID associated with this request.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "userprofiles/{profileId}/mobileCarriers", + // "path": "userprofiles/{+profileId}/mobileCarriers", // "response": { // "$ref": "MobileCarriersListResponse" // }, @@ -39347,7 +39467,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, "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 { @@ -39400,7 +39520,7 @@ func (c *OperatingSystemVersionsGetCall) Do(opts ...googleapi.CallOption) (*Oper return ret, nil // { // "description": "Gets one operating system version by ID.", - // "flatPath": "userprofiles/{profileId}/operatingSystemVersions/{id}", + // "flatPath": "userprofiles/{userprofilesId}/operatingSystemVersions/{operatingSystemVersionsId}", // "httpMethod": "GET", // "id": "dfareporting.operatingSystemVersions.get", // "parameterOrder": [ @@ -39412,6 +39532,7 @@ func (c *OperatingSystemVersionsGetCall) Do(opts ...googleapi.CallOption) (*Oper // "description": "Operating system version ID.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // }, @@ -39419,11 +39540,12 @@ func (c *OperatingSystemVersionsGetCall) Do(opts ...googleapi.CallOption) (*Oper // "description": "User profile ID associated with this request.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "userprofiles/{profileId}/operatingSystemVersions/{id}", + // "path": "userprofiles/{+profileId}/operatingSystemVersions/{+id}", // "response": { // "$ref": "OperatingSystemVersion" // }, @@ -39502,7 +39624,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, "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 { @@ -39555,7 +39677,7 @@ func (c *OperatingSystemVersionsListCall) Do(opts ...googleapi.CallOption) (*Ope return ret, nil // { // "description": "Retrieves a list of operating system versions.", - // "flatPath": "userprofiles/{profileId}/operatingSystemVersions", + // "flatPath": "userprofiles/{userprofilesId}/operatingSystemVersions", // "httpMethod": "GET", // "id": "dfareporting.operatingSystemVersions.list", // "parameterOrder": [ @@ -39566,11 +39688,12 @@ func (c *OperatingSystemVersionsListCall) Do(opts ...googleapi.CallOption) (*Ope // "description": "User profile ID associated with this request.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "userprofiles/{profileId}/operatingSystemVersions", + // "path": "userprofiles/{+profileId}/operatingSystemVersions", // "response": { // "$ref": "OperatingSystemVersionsListResponse" // }, @@ -39652,7 +39775,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, "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 { @@ -39705,7 +39828,7 @@ func (c *OperatingSystemsGetCall) Do(opts ...googleapi.CallOption) (*OperatingSy return ret, nil // { // "description": "Gets one operating system by DART ID.", - // "flatPath": "userprofiles/{profileId}/operatingSystems/{dartId}", + // "flatPath": "userprofiles/{userprofilesId}/operatingSystems/{operatingSystemsId}", // "httpMethod": "GET", // "id": "dfareporting.operatingSystems.get", // "parameterOrder": [ @@ -39717,6 +39840,7 @@ func (c *OperatingSystemsGetCall) Do(opts ...googleapi.CallOption) (*OperatingSy // "description": "Operating system DART ID.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // }, @@ -39724,11 +39848,12 @@ func (c *OperatingSystemsGetCall) Do(opts ...googleapi.CallOption) (*OperatingSy // "description": "User profile ID associated with this request.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "userprofiles/{profileId}/operatingSystems/{dartId}", + // "path": "userprofiles/{+profileId}/operatingSystems/{+dartId}", // "response": { // "$ref": "OperatingSystem" // }, @@ -39807,7 +39932,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, "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 { @@ -39859,7 +39984,7 @@ func (c *OperatingSystemsListCall) Do(opts ...googleapi.CallOption) (*OperatingS return ret, nil // { // "description": "Retrieves a list of operating systems.", - // "flatPath": "userprofiles/{profileId}/operatingSystems", + // "flatPath": "userprofiles/{userprofilesId}/operatingSystems", // "httpMethod": "GET", // "id": "dfareporting.operatingSystems.list", // "parameterOrder": [ @@ -39870,11 +39995,12 @@ func (c *OperatingSystemsListCall) Do(opts ...googleapi.CallOption) (*OperatingS // "description": "User profile ID associated with this request.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "userprofiles/{profileId}/operatingSystems", + // "path": "userprofiles/{+profileId}/operatingSystems", // "response": { // "$ref": "OperatingSystemsListResponse" // }, @@ -39885,9 +40011,9 @@ func (c *OperatingSystemsListCall) Do(opts ...googleapi.CallOption) (*OperatingS } -// method id "dfareporting.orderDocuments.get": +// method id "dfareporting.orders.get": -type OrderDocumentsGetCall struct { +type OrdersGetCall struct { s *Service profileId int64 projectId int64 @@ -39898,13 +40024,13 @@ type OrderDocumentsGetCall struct { header_ http.Header } -// Get: Gets one order document by ID. +// Get: Gets one order by ID. // -// - id: Order document ID. +// - id: Order ID. // - profileId: User profile ID associated with this request. -// - projectId: Project ID for order documents. -func (r *OrderDocumentsService) Get(profileId int64, projectId int64, id int64) *OrderDocumentsGetCall { - c := &OrderDocumentsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - projectId: Project ID for orders. +func (r *OrdersService) Get(profileId int64, projectId int64, id int64) *OrdersGetCall { + c := &OrdersGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId c.projectId = projectId c.id = id @@ -39914,7 +40040,7 @@ func (r *OrderDocumentsService) Get(profileId int64, projectId int64, id int64) // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *OrderDocumentsGetCall) Fields(s ...googleapi.Field) *OrderDocumentsGetCall { +func (c *OrdersGetCall) Fields(s ...googleapi.Field) *OrdersGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -39924,7 +40050,7 @@ func (c *OrderDocumentsGetCall) Fields(s ...googleapi.Field) *OrderDocumentsGetC // 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 *OrderDocumentsGetCall) IfNoneMatch(entityTag string) *OrderDocumentsGetCall { +func (c *OrdersGetCall) IfNoneMatch(entityTag string) *OrdersGetCall { c.ifNoneMatch_ = entityTag return c } @@ -39932,21 +40058,21 @@ func (c *OrderDocumentsGetCall) IfNoneMatch(entityTag string) *OrderDocumentsGet // 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 *OrderDocumentsGetCall) Context(ctx context.Context) *OrderDocumentsGetCall { +func (c *OrdersGetCall) Context(ctx context.Context) *OrdersGetCall { 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 *OrderDocumentsGetCall) Header() http.Header { +func (c *OrdersGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *OrderDocumentsGetCall) doRequest(alt string) (*http.Response, error) { +func (c *OrdersGetCall) 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_ { @@ -39959,7 +40085,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, "userprofiles/{profileId}/projects/{projectId}/orderDocuments/{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 { @@ -39974,14 +40100,14 @@ func (c *OrderDocumentsGetCall) doRequest(alt string) (*http.Response, error) { return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "dfareporting.orderDocuments.get" call. -// Exactly one of *OrderDocument or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *OrderDocument.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 *OrderDocumentsGetCall) Do(opts ...googleapi.CallOption) (*OrderDocument, error) { +// Do executes the "dfareporting.orders.get" call. +// Exactly one of *Order or error will be non-nil. Any non-2xx status +// code is an error. Response headers are in either +// *Order.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 *OrdersGetCall) Do(opts ...googleapi.CallOption) (*Order, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -40000,7 +40126,7 @@ func (c *OrderDocumentsGetCall) Do(opts ...googleapi.CallOption) (*OrderDocument if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &OrderDocument{ + ret := &Order{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -40012,10 +40138,10 @@ func (c *OrderDocumentsGetCall) Do(opts ...googleapi.CallOption) (*OrderDocument } return ret, nil // { - // "description": "Gets one order document by ID.", - // "flatPath": "userprofiles/{profileId}/projects/{projectId}/orderDocuments/{id}", + // "description": "Gets one order by ID.", + // "flatPath": "userprofiles/{userprofilesId}/projects/{projectId}/orders/{ordersId}", // "httpMethod": "GET", - // "id": "dfareporting.orderDocuments.get", + // "id": "dfareporting.orders.get", // "parameterOrder": [ // "profileId", // "projectId", @@ -40023,9 +40149,10 @@ func (c *OrderDocumentsGetCall) Do(opts ...googleapi.CallOption) (*OrderDocument // ], // "parameters": { // "id": { - // "description": "Order document ID.", + // "description": "Order ID.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // }, @@ -40033,20 +40160,21 @@ func (c *OrderDocumentsGetCall) Do(opts ...googleapi.CallOption) (*OrderDocument // "description": "User profile ID associated with this request.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // }, // "projectId": { - // "description": "Project ID for order documents.", + // "description": "Project ID for orders.", // "format": "int64", // "location": "path", // "required": true, // "type": "string" // } // }, - // "path": "userprofiles/{profileId}/projects/{projectId}/orderDocuments/{id}", + // "path": "userprofiles/{+profileId}/projects/{projectId}/orders/{+id}", // "response": { - // "$ref": "OrderDocument" + // "$ref": "Order" // }, // "scopes": [ // "https://www.googleapis.com/auth/dfatrafficking" @@ -40055,9 +40183,9 @@ func (c *OrderDocumentsGetCall) Do(opts ...googleapi.CallOption) (*OrderDocument } -// method id "dfareporting.orderDocuments.list": +// method id "dfareporting.orders.list": -type OrderDocumentsListCall struct { +type OrdersListCall struct { s *Service profileId int64 projectId int64 @@ -40067,28 +40195,21 @@ type OrderDocumentsListCall struct { header_ http.Header } -// List: Retrieves a list of order documents, possibly filtered. This -// method supports paging. +// List: Retrieves a list of orders, possibly filtered. This method +// supports paging. // // - profileId: User profile ID associated with this request. -// - projectId: Project ID for order documents. -func (r *OrderDocumentsService) List(profileId int64, projectId int64) *OrderDocumentsListCall { - c := &OrderDocumentsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - projectId: Project ID for orders. +func (r *OrdersService) List(profileId int64, projectId int64) *OrdersListCall { + c := &OrdersListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId c.projectId = projectId return c } -// Approved sets the optional parameter "approved": Select only order -// documents that have been approved by at least one user. -func (c *OrderDocumentsListCall) Approved(approved bool) *OrderDocumentsListCall { - c.urlParams_.Set("approved", fmt.Sprint(approved)) - return c -} - -// Ids sets the optional parameter "ids": Select only order documents -// with these IDs. -func (c *OrderDocumentsListCall) Ids(ids ...int64) *OrderDocumentsListCall { +// Ids sets the optional parameter "ids": Select only orders with these +// IDs. +func (c *OrdersListCall) Ids(ids ...int64) *OrdersListCall { var ids_ []string for _, v := range ids { ids_ = append(ids_, fmt.Sprint(v)) @@ -40099,46 +40220,33 @@ func (c *OrderDocumentsListCall) Ids(ids ...int64) *OrderDocumentsListCall { // MaxResults sets the optional parameter "maxResults": Maximum number // of results to return. -func (c *OrderDocumentsListCall) MaxResults(maxResults int64) *OrderDocumentsListCall { +func (c *OrdersListCall) MaxResults(maxResults int64) *OrdersListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c } -// OrderId sets the optional parameter "orderId": Select only order -// documents for specified orders. -func (c *OrderDocumentsListCall) OrderId(orderId ...int64) *OrderDocumentsListCall { - var orderId_ []string - for _, v := range orderId { - orderId_ = append(orderId_, fmt.Sprint(v)) - } - c.urlParams_.SetMulti("orderId", orderId_) - return c -} - // PageToken sets the optional parameter "pageToken": Value of the // nextPageToken from the previous result page. -func (c *OrderDocumentsListCall) PageToken(pageToken string) *OrderDocumentsListCall { +func (c *OrdersListCall) PageToken(pageToken string) *OrdersListCall { c.urlParams_.Set("pageToken", pageToken) return c } // SearchString sets the optional parameter "searchString": Allows -// searching for order documents by name or ID. Wildcards (*) are -// allowed. For example, "orderdocument*2015" will return order -// documents with names like "orderdocument June 2015", "orderdocument -// April 2015", or simply "orderdocument 2015". Most of the searches -// also add wildcards implicitly at the start and the end of the search -// string. For example, a search string of "orderdocument" will match -// order documents with name "my orderdocument", "orderdocument 2015", -// or simply "orderdocument". -func (c *OrderDocumentsListCall) SearchString(searchString string) *OrderDocumentsListCall { +// searching for orders by name or ID. Wildcards (*) are allowed. For +// example, "order*2015" will return orders with names like "order June +// 2015", "order April 2015", or simply "order 2015". Most of the +// searches also add wildcards implicitly at the start and the end of +// the search string. For example, a search string of "order" will match +// orders with name "my order", "order 2015", or simply "order". +func (c *OrdersListCall) SearchString(searchString string) *OrdersListCall { c.urlParams_.Set("searchString", searchString) return c } -// SiteId sets the optional parameter "siteId": Select only order -// documents that are associated with these sites. -func (c *OrderDocumentsListCall) SiteId(siteId ...int64) *OrderDocumentsListCall { +// SiteId sets the optional parameter "siteId": Select only orders that +// are associated with these site IDs. +func (c *OrdersListCall) SiteId(siteId ...int64) *OrdersListCall { var siteId_ []string for _, v := range siteId { siteId_ = append(siteId_, fmt.Sprint(v)) @@ -40154,7 +40262,7 @@ func (c *OrderDocumentsListCall) SiteId(siteId ...int64) *OrderDocumentsListCall // // "ID" (default) // "NAME" -func (c *OrderDocumentsListCall) SortField(sortField string) *OrderDocumentsListCall { +func (c *OrdersListCall) SortField(sortField string) *OrdersListCall { c.urlParams_.Set("sortField", sortField) return c } @@ -40164,9 +40272,9 @@ func (c *OrderDocumentsListCall) SortField(sortField string) *OrderDocumentsList // // Possible values: // -// "ASCENDING" (default) -// "DESCENDING" -func (c *OrderDocumentsListCall) SortOrder(sortOrder string) *OrderDocumentsListCall { +// "ASCENDING" (default) - Ascending order. +// "DESCENDING" - Descending order. +func (c *OrdersListCall) SortOrder(sortOrder string) *OrdersListCall { c.urlParams_.Set("sortOrder", sortOrder) return c } @@ -40174,7 +40282,7 @@ func (c *OrderDocumentsListCall) SortOrder(sortOrder string) *OrderDocumentsList // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *OrderDocumentsListCall) Fields(s ...googleapi.Field) *OrderDocumentsListCall { +func (c *OrdersListCall) Fields(s ...googleapi.Field) *OrdersListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -40184,7 +40292,7 @@ func (c *OrderDocumentsListCall) Fields(s ...googleapi.Field) *OrderDocumentsLis // 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 *OrderDocumentsListCall) IfNoneMatch(entityTag string) *OrderDocumentsListCall { +func (c *OrdersListCall) IfNoneMatch(entityTag string) *OrdersListCall { c.ifNoneMatch_ = entityTag return c } @@ -40192,21 +40300,21 @@ func (c *OrderDocumentsListCall) IfNoneMatch(entityTag string) *OrderDocumentsLi // 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 *OrderDocumentsListCall) Context(ctx context.Context) *OrderDocumentsListCall { +func (c *OrdersListCall) Context(ctx context.Context) *OrdersListCall { 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 *OrderDocumentsListCall) Header() http.Header { +func (c *OrdersListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *OrderDocumentsListCall) doRequest(alt string) (*http.Response, error) { +func (c *OrdersListCall) 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_ { @@ -40219,502 +40327,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, "userprofiles/{profileId}/projects/{projectId}/orderDocuments") - 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{ - "profileId": strconv.FormatInt(c.profileId, 10), - "projectId": strconv.FormatInt(c.projectId, 10), - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "dfareporting.orderDocuments.list" call. -// Exactly one of *OrderDocumentsListResponse or error will be non-nil. -// Any non-2xx status code is an error. Response headers are in either -// *OrderDocumentsListResponse.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 *OrderDocumentsListCall) Do(opts ...googleapi.CallOption) (*OrderDocumentsListResponse, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &OrderDocumentsListResponse{ - 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 a list of order documents, possibly filtered. This method supports paging.", - // "flatPath": "userprofiles/{profileId}/projects/{projectId}/orderDocuments", - // "httpMethod": "GET", - // "id": "dfareporting.orderDocuments.list", - // "parameterOrder": [ - // "profileId", - // "projectId" - // ], - // "parameters": { - // "approved": { - // "description": "Select only order documents that have been approved by at least one user.", - // "location": "query", - // "type": "boolean" - // }, - // "ids": { - // "description": "Select only order documents with these IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "maxResults": { - // "default": "1000", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "1000", - // "minimum": "0", - // "type": "integer" - // }, - // "orderId": { - // "description": "Select only order documents for specified orders.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "pageToken": { - // "description": "Value of the nextPageToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "projectId": { - // "description": "Project ID for order documents.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "searchString": { - // "description": "Allows searching for order documents by name or ID. Wildcards (*) are allowed. For example, \"orderdocument*2015\" will return order documents with names like \"orderdocument June 2015\", \"orderdocument April 2015\", or simply \"orderdocument 2015\". Most of the searches also add wildcards implicitly at the start and the end of the search string. For example, a search string of \"orderdocument\" will match order documents with name \"my orderdocument\", \"orderdocument 2015\", or simply \"orderdocument\".", - // "location": "query", - // "type": "string" - // }, - // "siteId": { - // "description": "Select only order documents that are associated with these sites.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "sortField": { - // "default": "ID", - // "description": "Field by which to sort the list.", - // "enum": [ - // "ID", - // "NAME" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "sortOrder": { - // "default": "ASCENDING", - // "description": "Order of sorted results.", - // "enum": [ - // "ASCENDING", - // "DESCENDING" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/projects/{projectId}/orderDocuments", - // "response": { - // "$ref": "OrderDocumentsListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// 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 *OrderDocumentsListCall) Pages(ctx context.Context, f func(*OrderDocumentsListResponse) 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 "dfareporting.orders.get": - -type OrdersGetCall struct { - s *Service - profileId int64 - projectId int64 - id int64 - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} - -// Get: Gets one order by ID. -// -// - id: Order ID. -// - profileId: User profile ID associated with this request. -// - projectId: Project ID for orders. -func (r *OrdersService) Get(profileId int64, projectId int64, id int64) *OrdersGetCall { - c := &OrdersGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.profileId = profileId - c.projectId = projectId - c.id = id - 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 *OrdersGetCall) Fields(s ...googleapi.Field) *OrdersGetCall { - 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 *OrdersGetCall) IfNoneMatch(entityTag string) *OrdersGetCall { - 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 *OrdersGetCall) Context(ctx context.Context) *OrdersGetCall { - 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 *OrdersGetCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *OrdersGetCall) 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, "userprofiles/{profileId}/projects/{projectId}/orders/{id}") - 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{ - "profileId": strconv.FormatInt(c.profileId, 10), - "projectId": strconv.FormatInt(c.projectId, 10), - "id": strconv.FormatInt(c.id, 10), - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "dfareporting.orders.get" call. -// Exactly one of *Order or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Order.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 *OrdersGetCall) Do(opts ...googleapi.CallOption) (*Order, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &Order{ - 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 one order by ID.", - // "flatPath": "userprofiles/{profileId}/projects/{projectId}/orders/{id}", - // "httpMethod": "GET", - // "id": "dfareporting.orders.get", - // "parameterOrder": [ - // "profileId", - // "projectId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Order ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "projectId": { - // "description": "Project ID for orders.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/projects/{projectId}/orders/{id}", - // "response": { - // "$ref": "Order" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.orders.list": - -type OrdersListCall struct { - s *Service - profileId int64 - projectId int64 - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} - -// List: Retrieves a list of orders, possibly filtered. This method -// supports paging. -// -// - profileId: User profile ID associated with this request. -// - projectId: Project ID for orders. -func (r *OrdersService) List(profileId int64, projectId int64) *OrdersListCall { - c := &OrdersListCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.profileId = profileId - c.projectId = projectId - return c -} - -// Ids sets the optional parameter "ids": Select only orders with these -// IDs. -func (c *OrdersListCall) Ids(ids ...int64) *OrdersListCall { - var ids_ []string - for _, v := range ids { - ids_ = append(ids_, fmt.Sprint(v)) - } - c.urlParams_.SetMulti("ids", ids_) - return c -} - -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. -func (c *OrdersListCall) MaxResults(maxResults int64) *OrdersListCall { - c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) - return c -} - -// PageToken sets the optional parameter "pageToken": Value of the -// nextPageToken from the previous result page. -func (c *OrdersListCall) PageToken(pageToken string) *OrdersListCall { - c.urlParams_.Set("pageToken", pageToken) - return c -} - -// SearchString sets the optional parameter "searchString": Allows -// searching for orders by name or ID. Wildcards (*) are allowed. For -// example, "order*2015" will return orders with names like "order June -// 2015", "order April 2015", or simply "order 2015". Most of the -// searches also add wildcards implicitly at the start and the end of -// the search string. For example, a search string of "order" will match -// orders with name "my order", "order 2015", or simply "order". -func (c *OrdersListCall) SearchString(searchString string) *OrdersListCall { - c.urlParams_.Set("searchString", searchString) - return c -} - -// SiteId sets the optional parameter "siteId": Select only orders that -// are associated with these site IDs. -func (c *OrdersListCall) SiteId(siteId ...int64) *OrdersListCall { - var siteId_ []string - for _, v := range siteId { - siteId_ = append(siteId_, fmt.Sprint(v)) - } - c.urlParams_.SetMulti("siteId", siteId_) - return c -} - -// SortField sets the optional parameter "sortField": Field by which to -// sort the list. -// -// Possible values: -// -// "ID" (default) -// "NAME" -func (c *OrdersListCall) SortField(sortField string) *OrdersListCall { - c.urlParams_.Set("sortField", sortField) - return c -} - -// SortOrder sets the optional parameter "sortOrder": Order of sorted -// results. -// -// Possible values: -// -// "ASCENDING" (default) -// "DESCENDING" -func (c *OrdersListCall) SortOrder(sortOrder string) *OrdersListCall { - c.urlParams_.Set("sortOrder", sortOrder) - 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 *OrdersListCall) Fields(s ...googleapi.Field) *OrdersListCall { - 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 *OrdersListCall) IfNoneMatch(entityTag string) *OrdersListCall { - 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 *OrdersListCall) Context(ctx context.Context) *OrdersListCall { - 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 *OrdersListCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *OrdersListCall) 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, "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 { @@ -40767,7 +40380,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": "userprofiles/{profileId}/projects/{projectId}/orders", + // "flatPath": "userprofiles/{userprofilesId}/projects/{projectId}/orders", // "httpMethod": "GET", // "id": "dfareporting.orders.list", // "parameterOrder": [ @@ -40787,8 +40400,6 @@ func (c *OrdersListCall) Do(opts ...googleapi.CallOption) (*OrdersListResponse, // "description": "Maximum number of results to return.", // "format": "int32", // "location": "query", - // "maximum": "1000", - // "minimum": "0", // "type": "integer" // }, // "pageToken": { @@ -40800,6 +40411,7 @@ func (c *OrdersListCall) Do(opts ...googleapi.CallOption) (*OrdersListResponse, // "description": "User profile ID associated with this request.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // }, @@ -40844,14 +40456,14 @@ func (c *OrdersListCall) Do(opts ...googleapi.CallOption) (*OrdersListResponse, // "DESCENDING" // ], // "enumDescriptions": [ - // "", - // "" + // "Ascending order.", + // "Descending order." // ], // "location": "query", // "type": "string" // } // }, - // "path": "userprofiles/{profileId}/projects/{projectId}/orders", + // "path": "userprofiles/{+profileId}/projects/{projectId}/orders", // "response": { // "$ref": "OrdersListResponse" // }, @@ -40954,7 +40566,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, "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 { @@ -41007,7 +40619,7 @@ func (c *PlacementGroupsGetCall) Do(opts ...googleapi.CallOption) (*PlacementGro return ret, nil // { // "description": "Gets one placement group by ID.", - // "flatPath": "userprofiles/{profileId}/placementGroups/{id}", + // "flatPath": "userprofiles/{userprofilesId}/placementGroups/{placementGroupsId}", // "httpMethod": "GET", // "id": "dfareporting.placementGroups.get", // "parameterOrder": [ @@ -41019,6 +40631,7 @@ func (c *PlacementGroupsGetCall) Do(opts ...googleapi.CallOption) (*PlacementGro // "description": "Placement group ID.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // }, @@ -41026,11 +40639,12 @@ func (c *PlacementGroupsGetCall) Do(opts ...googleapi.CallOption) (*PlacementGro // "description": "User profile ID associated with this request.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "userprofiles/{profileId}/placementGroups/{id}", + // "path": "userprofiles/{+profileId}/placementGroups/{+id}", // "response": { // "$ref": "PlacementGroup" // }, @@ -41102,7 +40716,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, "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 { @@ -41154,7 +40768,7 @@ func (c *PlacementGroupsInsertCall) Do(opts ...googleapi.CallOption) (*Placement return ret, nil // { // "description": "Inserts a new placement group.", - // "flatPath": "userprofiles/{profileId}/placementGroups", + // "flatPath": "userprofiles/{userprofilesId}/placementGroups", // "httpMethod": "POST", // "id": "dfareporting.placementGroups.insert", // "parameterOrder": [ @@ -41165,11 +40779,12 @@ func (c *PlacementGroupsInsertCall) Do(opts ...googleapi.CallOption) (*Placement // "description": "User profile ID associated with this request.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "userprofiles/{profileId}/placementGroups", + // "path": "userprofiles/{+profileId}/placementGroups", // "request": { // "$ref": "PlacementGroup" // }, @@ -41332,8 +40947,16 @@ func (c *PlacementGroupsListCall) PageToken(pageToken string) *PlacementGroupsLi // // Possible values: // -// "PLACEMENT_PACKAGE" -// "PLACEMENT_ROADBLOCK" +// "PLACEMENT_PACKAGE" - A simple group of site-placements (tags). +// +// Basically acts as a single pricing point for a group of tags. +// +// "PLACEMENT_ROADBLOCK" - A group of site-placements (tags) that not +// +// only acts as a single pricing point but also assumes that all the +// tags in it will be served at the same time. This kind of group +// requires one of its assigned site-placements to be marked as primary +// for reporting purposes. func (c *PlacementGroupsListCall) PlacementGroupType(placementGroupType string) *PlacementGroupsListCall { c.urlParams_.Set("placementGroupType", placementGroupType) return c @@ -41409,8 +41032,8 @@ func (c *PlacementGroupsListCall) SortField(sortField string) *PlacementGroupsLi // // Possible values: // -// "ASCENDING" (default) -// "DESCENDING" +// "ASCENDING" (default) - Ascending order. +// "DESCENDING" - Descending order. func (c *PlacementGroupsListCall) SortOrder(sortOrder string) *PlacementGroupsListCall { c.urlParams_.Set("sortOrder", sortOrder) return c @@ -41464,7 +41087,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, "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 { @@ -41516,7 +41139,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": "userprofiles/{profileId}/placementGroups", + // "flatPath": "userprofiles/{userprofilesId}/placementGroups", // "httpMethod": "GET", // "id": "dfareporting.placementGroups.list", // "parameterOrder": [ @@ -41588,8 +41211,6 @@ func (c *PlacementGroupsListCall) Do(opts ...googleapi.CallOption) (*PlacementGr // "description": "Maximum number of results to return.", // "format": "int32", // "location": "query", - // "maximum": "800", - // "minimum": "0", // "type": "integer" // }, // "maxStartDate": { @@ -41619,8 +41240,8 @@ func (c *PlacementGroupsListCall) Do(opts ...googleapi.CallOption) (*PlacementGr // "PLACEMENT_ROADBLOCK" // ], // "enumDescriptions": [ - // "", - // "" + // "A simple group of site-placements (tags). Basically acts as a single pricing point for a group of tags.", + // "A group of site-placements (tags) that not only acts as a single pricing point but also assumes that all the tags in it will be served at the same time. This kind of group requires one of its assigned site-placements to be marked as primary for reporting purposes." // ], // "location": "query", // "type": "string" @@ -41658,6 +41279,7 @@ func (c *PlacementGroupsListCall) Do(opts ...googleapi.CallOption) (*PlacementGr // "description": "User profile ID associated with this request.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // }, @@ -41695,14 +41317,14 @@ func (c *PlacementGroupsListCall) Do(opts ...googleapi.CallOption) (*PlacementGr // "DESCENDING" // ], // "enumDescriptions": [ - // "", - // "" + // "Ascending order.", + // "Descending order." // ], // "location": "query", // "type": "string" // } // }, - // "path": "userprofiles/{profileId}/placementGroups", + // "path": "userprofiles/{+profileId}/placementGroups", // "response": { // "$ref": "PlacementGroupsListResponse" // }, @@ -41748,7 +41370,7 @@ type PlacementGroupsPatchCall struct { // Patch: Updates an existing placement group. This method supports // patch semantics. // -// - id: PlacementGroup ID. +// - id: Placement ID. // - profileId: User profile ID associated with this request. func (r *PlacementGroupsService) Patch(profileId int64, id int64, placementgroup *PlacementGroup) *PlacementGroupsPatchCall { c := &PlacementGroupsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} @@ -41798,7 +41420,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, "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 { @@ -41850,7 +41472,7 @@ func (c *PlacementGroupsPatchCall) Do(opts ...googleapi.CallOption) (*PlacementG return ret, nil // { // "description": "Updates an existing placement group. This method supports patch semantics.", - // "flatPath": "userprofiles/{profileId}/placementGroups", + // "flatPath": "userprofiles/{userprofilesId}/placementGroups", // "httpMethod": "PATCH", // "id": "dfareporting.placementGroups.patch", // "parameterOrder": [ @@ -41859,7 +41481,7 @@ func (c *PlacementGroupsPatchCall) Do(opts ...googleapi.CallOption) (*PlacementG // ], // "parameters": { // "id": { - // "description": "PlacementGroup ID.", + // "description": "Required. Placement ID.", // "format": "int64", // "location": "query", // "required": true, @@ -41869,11 +41491,12 @@ func (c *PlacementGroupsPatchCall) Do(opts ...googleapi.CallOption) (*PlacementG // "description": "User profile ID associated with this request.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "userprofiles/{profileId}/placementGroups", + // "path": "userprofiles/{+profileId}/placementGroups", // "request": { // "$ref": "PlacementGroup" // }, @@ -41948,7 +41571,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, "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 { @@ -42000,7 +41623,7 @@ func (c *PlacementGroupsUpdateCall) Do(opts ...googleapi.CallOption) (*Placement return ret, nil // { // "description": "Updates an existing placement group.", - // "flatPath": "userprofiles/{profileId}/placementGroups", + // "flatPath": "userprofiles/{userprofilesId}/placementGroups", // "httpMethod": "PUT", // "id": "dfareporting.placementGroups.update", // "parameterOrder": [ @@ -42011,11 +41634,12 @@ func (c *PlacementGroupsUpdateCall) Do(opts ...googleapi.CallOption) (*Placement // "description": "User profile ID associated with this request.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "userprofiles/{profileId}/placementGroups", + // "path": "userprofiles/{+profileId}/placementGroups", // "request": { // "$ref": "PlacementGroup" // }, @@ -42086,7 +41710,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, "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 { @@ -42114,7 +41738,7 @@ func (c *PlacementStrategiesDeleteCall) Do(opts ...googleapi.CallOption) error { return nil // { // "description": "Deletes an existing placement strategy.", - // "flatPath": "userprofiles/{profileId}/placementStrategies/{id}", + // "flatPath": "userprofiles/{userprofilesId}/placementStrategies/{placementStrategiesId}", // "httpMethod": "DELETE", // "id": "dfareporting.placementStrategies.delete", // "parameterOrder": [ @@ -42126,6 +41750,7 @@ func (c *PlacementStrategiesDeleteCall) Do(opts ...googleapi.CallOption) error { // "description": "Placement strategy ID.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // }, @@ -42133,11 +41758,12 @@ func (c *PlacementStrategiesDeleteCall) Do(opts ...googleapi.CallOption) error { // "description": "User profile ID associated with this request.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "userprofiles/{profileId}/placementStrategies/{id}", + // "path": "userprofiles/{+profileId}/placementStrategies/{+id}", // "scopes": [ // "https://www.googleapis.com/auth/dfatrafficking" // ] @@ -42216,7 +41842,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, "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 { @@ -42269,7 +41895,7 @@ func (c *PlacementStrategiesGetCall) Do(opts ...googleapi.CallOption) (*Placemen return ret, nil // { // "description": "Gets one placement strategy by ID.", - // "flatPath": "userprofiles/{profileId}/placementStrategies/{id}", + // "flatPath": "userprofiles/{userprofilesId}/placementStrategies/{placementStrategiesId}", // "httpMethod": "GET", // "id": "dfareporting.placementStrategies.get", // "parameterOrder": [ @@ -42281,6 +41907,7 @@ func (c *PlacementStrategiesGetCall) Do(opts ...googleapi.CallOption) (*Placemen // "description": "Placement strategy ID.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // }, @@ -42288,11 +41915,12 @@ func (c *PlacementStrategiesGetCall) Do(opts ...googleapi.CallOption) (*Placemen // "description": "User profile ID associated with this request.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "userprofiles/{profileId}/placementStrategies/{id}", + // "path": "userprofiles/{+profileId}/placementStrategies/{+id}", // "response": { // "$ref": "PlacementStrategy" // }, @@ -42364,7 +41992,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, "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 { @@ -42416,7 +42044,7 @@ func (c *PlacementStrategiesInsertCall) Do(opts ...googleapi.CallOption) (*Place return ret, nil // { // "description": "Inserts a new placement strategy.", - // "flatPath": "userprofiles/{profileId}/placementStrategies", + // "flatPath": "userprofiles/{userprofilesId}/placementStrategies", // "httpMethod": "POST", // "id": "dfareporting.placementStrategies.insert", // "parameterOrder": [ @@ -42427,11 +42055,12 @@ func (c *PlacementStrategiesInsertCall) Do(opts ...googleapi.CallOption) (*Place // "description": "User profile ID associated with this request.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "userprofiles/{profileId}/placementStrategies", + // "path": "userprofiles/{+profileId}/placementStrategies", // "request": { // "$ref": "PlacementStrategy" // }, @@ -42522,8 +42151,8 @@ func (c *PlacementStrategiesListCall) SortField(sortField string) *PlacementStra // // Possible values: // -// "ASCENDING" (default) -// "DESCENDING" +// "ASCENDING" (default) - Ascending order. +// "DESCENDING" - Descending order. func (c *PlacementStrategiesListCall) SortOrder(sortOrder string) *PlacementStrategiesListCall { c.urlParams_.Set("sortOrder", sortOrder) return c @@ -42577,7 +42206,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, "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 { @@ -42629,7 +42258,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": "userprofiles/{profileId}/placementStrategies", + // "flatPath": "userprofiles/{userprofilesId}/placementStrategies", // "httpMethod": "GET", // "id": "dfareporting.placementStrategies.list", // "parameterOrder": [ @@ -42648,8 +42277,6 @@ func (c *PlacementStrategiesListCall) Do(opts ...googleapi.CallOption) (*Placeme // "description": "Maximum number of results to return.", // "format": "int32", // "location": "query", - // "maximum": "1000", - // "minimum": "0", // "type": "integer" // }, // "pageToken": { @@ -42661,6 +42288,7 @@ func (c *PlacementStrategiesListCall) Do(opts ...googleapi.CallOption) (*Placeme // "description": "User profile ID associated with this request.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // }, @@ -42691,14 +42319,14 @@ func (c *PlacementStrategiesListCall) Do(opts ...googleapi.CallOption) (*Placeme // "DESCENDING" // ], // "enumDescriptions": [ - // "", - // "" + // "Ascending order.", + // "Descending order." // ], // "location": "query", // "type": "string" // } // }, - // "path": "userprofiles/{profileId}/placementStrategies", + // "path": "userprofiles/{+profileId}/placementStrategies", // "response": { // "$ref": "PlacementStrategiesListResponse" // }, @@ -42794,7 +42422,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, "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 { @@ -42846,7 +42474,7 @@ func (c *PlacementStrategiesPatchCall) Do(opts ...googleapi.CallOption) (*Placem return ret, nil // { // "description": "Updates an existing placement strategy. This method supports patch semantics.", - // "flatPath": "userprofiles/{profileId}/placementStrategies", + // "flatPath": "userprofiles/{userprofilesId}/placementStrategies", // "httpMethod": "PATCH", // "id": "dfareporting.placementStrategies.patch", // "parameterOrder": [ @@ -42855,7 +42483,7 @@ func (c *PlacementStrategiesPatchCall) Do(opts ...googleapi.CallOption) (*Placem // ], // "parameters": { // "id": { - // "description": "PlacementStrategy ID.", + // "description": "Required. PlacementStrategy ID.", // "format": "int64", // "location": "query", // "required": true, @@ -42865,11 +42493,12 @@ func (c *PlacementStrategiesPatchCall) Do(opts ...googleapi.CallOption) (*Placem // "description": "User profile ID associated with this request.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "userprofiles/{profileId}/placementStrategies", + // "path": "userprofiles/{+profileId}/placementStrategies", // "request": { // "$ref": "PlacementStrategy" // }, @@ -42944,7 +42573,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, "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 { @@ -42996,7 +42625,7 @@ func (c *PlacementStrategiesUpdateCall) Do(opts ...googleapi.CallOption) (*Place return ret, nil // { // "description": "Updates an existing placement strategy.", - // "flatPath": "userprofiles/{profileId}/placementStrategies", + // "flatPath": "userprofiles/{userprofilesId}/placementStrategies", // "httpMethod": "PUT", // "id": "dfareporting.placementStrategies.update", // "parameterOrder": [ @@ -43007,11 +42636,12 @@ func (c *PlacementStrategiesUpdateCall) Do(opts ...googleapi.CallOption) (*Place // "description": "User profile ID associated with this request.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "userprofiles/{profileId}/placementStrategies", + // "path": "userprofiles/{+profileId}/placementStrategies", // "request": { // "$ref": "PlacementStrategy" // }, @@ -43128,7 +42758,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, "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 { @@ -43180,7 +42810,7 @@ func (c *PlacementsGeneratetagsCall) Do(opts ...googleapi.CallOption) (*Placemen return ret, nil // { // "description": "Generates tags for a placement.", - // "flatPath": "userprofiles/{profileId}/placements/generatetags", + // "flatPath": "userprofiles/{userprofilesId}/placements/generatetags", // "httpMethod": "POST", // "id": "dfareporting.placements.generatetags", // "parameterOrder": [ @@ -43204,6 +42834,7 @@ func (c *PlacementsGeneratetagsCall) Do(opts ...googleapi.CallOption) (*Placemen // "description": "User profile ID associated with this request.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // }, @@ -43258,7 +42889,7 @@ func (c *PlacementsGeneratetagsCall) Do(opts ...googleapi.CallOption) (*Placemen // "type": "string" // } // }, - // "path": "userprofiles/{profileId}/placements/generatetags", + // "path": "userprofiles/{+profileId}/placements/generatetags", // "response": { // "$ref": "PlacementsGenerateTagsResponse" // }, @@ -43340,7 +42971,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, "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 { @@ -43393,7 +43024,7 @@ func (c *PlacementsGetCall) Do(opts ...googleapi.CallOption) (*Placement, error) return ret, nil // { // "description": "Gets one placement by ID.", - // "flatPath": "userprofiles/{profileId}/placements/{id}", + // "flatPath": "userprofiles/{userprofilesId}/placements/{placementsId}", // "httpMethod": "GET", // "id": "dfareporting.placements.get", // "parameterOrder": [ @@ -43405,6 +43036,7 @@ func (c *PlacementsGetCall) Do(opts ...googleapi.CallOption) (*Placement, error) // "description": "Placement ID.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // }, @@ -43412,11 +43044,12 @@ func (c *PlacementsGetCall) Do(opts ...googleapi.CallOption) (*Placement, error) // "description": "User profile ID associated with this request.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "userprofiles/{profileId}/placements/{id}", + // "path": "userprofiles/{+profileId}/placements/{+id}", // "response": { // "$ref": "Placement" // }, @@ -43488,7 +43121,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, "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 { @@ -43540,7 +43173,7 @@ func (c *PlacementsInsertCall) Do(opts ...googleapi.CallOption) (*Placement, err return ret, nil // { // "description": "Inserts a new placement.", - // "flatPath": "userprofiles/{profileId}/placements", + // "flatPath": "userprofiles/{userprofilesId}/placements", // "httpMethod": "POST", // "id": "dfareporting.placements.insert", // "parameterOrder": [ @@ -43551,11 +43184,12 @@ func (c *PlacementsInsertCall) Do(opts ...googleapi.CallOption) (*Placement, err // "description": "User profile ID associated with this request.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "userprofiles/{profileId}/placements", + // "path": "userprofiles/{+profileId}/placements", // "request": { // "$ref": "Placement" // }, @@ -43639,8 +43273,8 @@ func (c *PlacementsListCall) CampaignIds(campaignIds ...int64) *PlacementsListCa // // "DISPLAY" // "DISPLAY_INTERSTITIAL" -// "APP" -// "APP_INTERSTITIAL" +// "APP" - Deprecated enum value. No longer supported. +// "APP_INTERSTITIAL" - Deprecated enum value. No longer supported. // "IN_STREAM_VIDEO" // "IN_STREAM_AUDIO" func (c *PlacementsListCall) Compatibilities(compatibilities ...string) *PlacementsListCall { @@ -43832,8 +43466,8 @@ func (c *PlacementsListCall) SortField(sortField string) *PlacementsListCall { // // Possible values: // -// "ASCENDING" (default) -// "DESCENDING" +// "ASCENDING" (default) - Ascending order. +// "DESCENDING" - Descending order. func (c *PlacementsListCall) SortOrder(sortOrder string) *PlacementsListCall { c.urlParams_.Set("sortOrder", sortOrder) return c @@ -43887,7 +43521,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, "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 { @@ -43939,7 +43573,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": "userprofiles/{profileId}/placements", + // "flatPath": "userprofiles/{userprofilesId}/placements", // "httpMethod": "GET", // "id": "dfareporting.placements.list", // "parameterOrder": [ @@ -43993,8 +43627,8 @@ func (c *PlacementsListCall) Do(opts ...googleapi.CallOption) (*PlacementsListRe // "enumDescriptions": [ // "", // "", - // "", - // "", + // "Deprecated enum value. No longer supported.", + // "Deprecated enum value. No longer supported.", // "", // "" // ], @@ -44040,8 +43674,6 @@ func (c *PlacementsListCall) Do(opts ...googleapi.CallOption) (*PlacementsListRe // "description": "Maximum number of results to return.", // "format": "int32", // "location": "query", - // "maximum": "1000", - // "minimum": "0", // "type": "integer" // }, // "maxStartDate": { @@ -44110,6 +43742,7 @@ func (c *PlacementsListCall) Do(opts ...googleapi.CallOption) (*PlacementsListRe // "description": "User profile ID associated with this request.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // }, @@ -44154,14 +43787,14 @@ func (c *PlacementsListCall) Do(opts ...googleapi.CallOption) (*PlacementsListRe // "DESCENDING" // ], // "enumDescriptions": [ - // "", - // "" + // "Ascending order.", + // "Descending order." // ], // "location": "query", // "type": "string" // } // }, - // "path": "userprofiles/{profileId}/placements", + // "path": "userprofiles/{+profileId}/placements", // "response": { // "$ref": "PlacementsListResponse" // }, @@ -44257,7 +43890,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, "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 { @@ -44309,7 +43942,7 @@ func (c *PlacementsPatchCall) Do(opts ...googleapi.CallOption) (*Placement, erro return ret, nil // { // "description": "Updates an existing placement. This method supports patch semantics.", - // "flatPath": "userprofiles/{profileId}/placements", + // "flatPath": "userprofiles/{userprofilesId}/placements", // "httpMethod": "PATCH", // "id": "dfareporting.placements.patch", // "parameterOrder": [ @@ -44318,7 +43951,7 @@ func (c *PlacementsPatchCall) Do(opts ...googleapi.CallOption) (*Placement, erro // ], // "parameters": { // "id": { - // "description": "Placement ID.", + // "description": "Required. Placement ID.", // "format": "int64", // "location": "query", // "required": true, @@ -44328,11 +43961,12 @@ func (c *PlacementsPatchCall) Do(opts ...googleapi.CallOption) (*Placement, erro // "description": "User profile ID associated with this request.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "userprofiles/{profileId}/placements", + // "path": "userprofiles/{+profileId}/placements", // "request": { // "$ref": "Placement" // }, @@ -44407,7 +44041,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, "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 { @@ -44459,7 +44093,7 @@ func (c *PlacementsUpdateCall) Do(opts ...googleapi.CallOption) (*Placement, err return ret, nil // { // "description": "Updates an existing placement.", - // "flatPath": "userprofiles/{profileId}/placements", + // "flatPath": "userprofiles/{userprofilesId}/placements", // "httpMethod": "PUT", // "id": "dfareporting.placements.update", // "parameterOrder": [ @@ -44470,11 +44104,12 @@ func (c *PlacementsUpdateCall) Do(opts ...googleapi.CallOption) (*Placement, err // "description": "User profile ID associated with this request.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "userprofiles/{profileId}/placements", + // "path": "userprofiles/{+profileId}/placements", // "request": { // "$ref": "Placement" // }, @@ -44559,7 +44194,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, "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 { @@ -44612,7 +44247,7 @@ func (c *PlatformTypesGetCall) Do(opts ...googleapi.CallOption) (*PlatformType, return ret, nil // { // "description": "Gets one platform type by ID.", - // "flatPath": "userprofiles/{profileId}/platformTypes/{id}", + // "flatPath": "userprofiles/{userprofilesId}/platformTypes/{platformTypesId}", // "httpMethod": "GET", // "id": "dfareporting.platformTypes.get", // "parameterOrder": [ @@ -44624,6 +44259,7 @@ func (c *PlatformTypesGetCall) Do(opts ...googleapi.CallOption) (*PlatformType, // "description": "Platform type ID.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // }, @@ -44631,11 +44267,12 @@ func (c *PlatformTypesGetCall) Do(opts ...googleapi.CallOption) (*PlatformType, // "description": "User profile ID associated with this request.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "userprofiles/{profileId}/platformTypes/{id}", + // "path": "userprofiles/{+profileId}/platformTypes/{+id}", // "response": { // "$ref": "PlatformType" // }, @@ -44714,7 +44351,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, "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 { @@ -44766,7 +44403,7 @@ func (c *PlatformTypesListCall) Do(opts ...googleapi.CallOption) (*PlatformTypes return ret, nil // { // "description": "Retrieves a list of platform types.", - // "flatPath": "userprofiles/{profileId}/platformTypes", + // "flatPath": "userprofiles/{userprofilesId}/platformTypes", // "httpMethod": "GET", // "id": "dfareporting.platformTypes.list", // "parameterOrder": [ @@ -44777,11 +44414,12 @@ func (c *PlatformTypesListCall) Do(opts ...googleapi.CallOption) (*PlatformTypes // "description": "User profile ID associated with this request.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "userprofiles/{profileId}/platformTypes", + // "path": "userprofiles/{+profileId}/platformTypes", // "response": { // "$ref": "PlatformTypesListResponse" // }, @@ -44863,7 +44501,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, "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 { @@ -44916,7 +44554,7 @@ func (c *PostalCodesGetCall) Do(opts ...googleapi.CallOption) (*PostalCode, erro return ret, nil // { // "description": "Gets one postal code by ID.", - // "flatPath": "userprofiles/{profileId}/postalCodes/{code}", + // "flatPath": "userprofiles/{userprofilesId}/postalCodes/{postalCodesId}", // "httpMethod": "GET", // "id": "dfareporting.postalCodes.get", // "parameterOrder": [ @@ -44927,6 +44565,7 @@ func (c *PostalCodesGetCall) Do(opts ...googleapi.CallOption) (*PostalCode, erro // "code": { // "description": "Postal code ID.", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // }, @@ -44934,11 +44573,12 @@ func (c *PostalCodesGetCall) Do(opts ...googleapi.CallOption) (*PostalCode, erro // "description": "User profile ID associated with this request.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "userprofiles/{profileId}/postalCodes/{code}", + // "path": "userprofiles/{+profileId}/postalCodes/{+code}", // "response": { // "$ref": "PostalCode" // }, @@ -45017,7 +44657,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, "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 { @@ -45069,7 +44709,7 @@ func (c *PostalCodesListCall) Do(opts ...googleapi.CallOption) (*PostalCodesList return ret, nil // { // "description": "Retrieves a list of postal codes.", - // "flatPath": "userprofiles/{profileId}/postalCodes", + // "flatPath": "userprofiles/{userprofilesId}/postalCodes", // "httpMethod": "GET", // "id": "dfareporting.postalCodes.list", // "parameterOrder": [ @@ -45080,11 +44720,12 @@ func (c *PostalCodesListCall) Do(opts ...googleapi.CallOption) (*PostalCodesList // "description": "User profile ID associated with this request.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "userprofiles/{profileId}/postalCodes", + // "path": "userprofiles/{+profileId}/postalCodes", // "response": { // "$ref": "PostalCodesListResponse" // }, @@ -45166,7 +44807,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, "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 { @@ -45219,7 +44860,7 @@ func (c *ProjectsGetCall) Do(opts ...googleapi.CallOption) (*Project, error) { return ret, nil // { // "description": "Gets one project by ID.", - // "flatPath": "userprofiles/{profileId}/projects/{id}", + // "flatPath": "userprofiles/{userprofilesId}/projects/{projectsId}", // "httpMethod": "GET", // "id": "dfareporting.projects.get", // "parameterOrder": [ @@ -45231,6 +44872,7 @@ func (c *ProjectsGetCall) Do(opts ...googleapi.CallOption) (*Project, error) { // "description": "Project ID.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // }, @@ -45238,11 +44880,12 @@ func (c *ProjectsGetCall) Do(opts ...googleapi.CallOption) (*Project, error) { // "description": "User profile ID associated with this request.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "userprofiles/{profileId}/projects/{id}", + // "path": "userprofiles/{+profileId}/projects/{+id}", // "response": { // "$ref": "Project" // }, @@ -45340,8 +44983,8 @@ func (c *ProjectsListCall) SortField(sortField string) *ProjectsListCall { // // Possible values: // -// "ASCENDING" (default) -// "DESCENDING" +// "ASCENDING" (default) - Ascending order. +// "DESCENDING" - Descending order. func (c *ProjectsListCall) SortOrder(sortOrder string) *ProjectsListCall { c.urlParams_.Set("sortOrder", sortOrder) return c @@ -45395,7 +45038,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, "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 { @@ -45447,7 +45090,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": "userprofiles/{profileId}/projects", + // "flatPath": "userprofiles/{userprofilesId}/projects", // "httpMethod": "GET", // "id": "dfareporting.projects.list", // "parameterOrder": [ @@ -45473,8 +45116,6 @@ func (c *ProjectsListCall) Do(opts ...googleapi.CallOption) (*ProjectsListRespon // "description": "Maximum number of results to return.", // "format": "int32", // "location": "query", - // "maximum": "1000", - // "minimum": "0", // "type": "integer" // }, // "pageToken": { @@ -45486,6 +45127,7 @@ func (c *ProjectsListCall) Do(opts ...googleapi.CallOption) (*ProjectsListRespon // "description": "User profile ID associated with this request.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // }, @@ -45516,14 +45158,14 @@ func (c *ProjectsListCall) Do(opts ...googleapi.CallOption) (*ProjectsListRespon // "DESCENDING" // ], // "enumDescriptions": [ - // "", - // "" + // "Ascending order.", + // "Descending order." // ], // "location": "query", // "type": "string" // } // }, - // "path": "userprofiles/{profileId}/projects", + // "path": "userprofiles/{+profileId}/projects", // "response": { // "$ref": "ProjectsListResponse" // }, @@ -45623,7 +45265,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, "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 { @@ -45675,7 +45317,7 @@ func (c *RegionsListCall) Do(opts ...googleapi.CallOption) (*RegionsListResponse return ret, nil // { // "description": "Retrieves a list of regions.", - // "flatPath": "userprofiles/{profileId}/regions", + // "flatPath": "userprofiles/{userprofilesId}/regions", // "httpMethod": "GET", // "id": "dfareporting.regions.list", // "parameterOrder": [ @@ -45686,11 +45328,12 @@ func (c *RegionsListCall) Do(opts ...googleapi.CallOption) (*RegionsListResponse // "description": "User profile ID associated with this request.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "userprofiles/{profileId}/regions", + // "path": "userprofiles/{+profileId}/regions", // "response": { // "$ref": "RegionsListResponse" // }, @@ -45772,7 +45415,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, "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 { @@ -45825,7 +45468,7 @@ func (c *RemarketingListSharesGetCall) Do(opts ...googleapi.CallOption) (*Remark return ret, nil // { // "description": "Gets one remarketing list share by remarketing list ID.", - // "flatPath": "userprofiles/{profileId}/remarketingListShares/{remarketingListId}", + // "flatPath": "userprofiles/{userprofilesId}/remarketingListShares/{remarketingListSharesId}", // "httpMethod": "GET", // "id": "dfareporting.remarketingListShares.get", // "parameterOrder": [ @@ -45837,6 +45480,7 @@ func (c *RemarketingListSharesGetCall) Do(opts ...googleapi.CallOption) (*Remark // "description": "User profile ID associated with this request.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // }, @@ -45844,11 +45488,12 @@ func (c *RemarketingListSharesGetCall) Do(opts ...googleapi.CallOption) (*Remark // "description": "Remarketing list ID.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "userprofiles/{profileId}/remarketingListShares/{remarketingListId}", + // "path": "userprofiles/{+profileId}/remarketingListShares/{+remarketingListId}", // "response": { // "$ref": "RemarketingListShare" // }, @@ -45870,8 +45515,8 @@ type RemarketingListSharesPatchCall struct { header_ http.Header } -// Patch: Updates an existing remarketing list share. This method -// supports patch semantics. +// Patch: Updates an existing RemarketingListShare. This method supports +// patch semantics. // // - id: RemarketingList ID. // - profileId: User profile ID associated with this request. @@ -45923,7 +45568,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, "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 { @@ -45974,8 +45619,8 @@ func (c *RemarketingListSharesPatchCall) Do(opts ...googleapi.CallOption) (*Rema } return ret, nil // { - // "description": "Updates an existing remarketing list share. This method supports patch semantics.", - // "flatPath": "userprofiles/{profileId}/remarketingListShares", + // "description": "Updates an existing RemarketingListShare. This method supports patch semantics.", + // "flatPath": "userprofiles/{userprofilesId}/remarketingListShares", // "httpMethod": "PATCH", // "id": "dfareporting.remarketingListShares.patch", // "parameterOrder": [ @@ -45984,7 +45629,7 @@ func (c *RemarketingListSharesPatchCall) Do(opts ...googleapi.CallOption) (*Rema // ], // "parameters": { // "id": { - // "description": "RemarketingList ID.", + // "description": "Required. RemarketingList ID.", // "format": "int64", // "location": "query", // "required": true, @@ -45994,11 +45639,12 @@ func (c *RemarketingListSharesPatchCall) Do(opts ...googleapi.CallOption) (*Rema // "description": "User profile ID associated with this request.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "userprofiles/{profileId}/remarketingListShares", + // "path": "userprofiles/{+profileId}/remarketingListShares", // "request": { // "$ref": "RemarketingListShare" // }, @@ -46073,7 +45719,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, "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 { @@ -46125,7 +45771,7 @@ func (c *RemarketingListSharesUpdateCall) Do(opts ...googleapi.CallOption) (*Rem return ret, nil // { // "description": "Updates an existing remarketing list share.", - // "flatPath": "userprofiles/{profileId}/remarketingListShares", + // "flatPath": "userprofiles/{userprofilesId}/remarketingListShares", // "httpMethod": "PUT", // "id": "dfareporting.remarketingListShares.update", // "parameterOrder": [ @@ -46136,11 +45782,12 @@ func (c *RemarketingListSharesUpdateCall) Do(opts ...googleapi.CallOption) (*Rem // "description": "User profile ID associated with this request.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "userprofiles/{profileId}/remarketingListShares", + // "path": "userprofiles/{+profileId}/remarketingListShares", // "request": { // "$ref": "RemarketingListShare" // }, @@ -46225,7 +45872,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, "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 { @@ -46278,7 +45925,7 @@ func (c *RemarketingListsGetCall) Do(opts ...googleapi.CallOption) (*Remarketing return ret, nil // { // "description": "Gets one remarketing list by ID.", - // "flatPath": "userprofiles/{profileId}/remarketingLists/{id}", + // "flatPath": "userprofiles/{userprofilesId}/remarketingLists/{remarketingListsId}", // "httpMethod": "GET", // "id": "dfareporting.remarketingLists.get", // "parameterOrder": [ @@ -46290,6 +45937,7 @@ func (c *RemarketingListsGetCall) Do(opts ...googleapi.CallOption) (*Remarketing // "description": "Remarketing list ID.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // }, @@ -46297,11 +45945,12 @@ func (c *RemarketingListsGetCall) Do(opts ...googleapi.CallOption) (*Remarketing // "description": "User profile ID associated with this request.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "userprofiles/{profileId}/remarketingLists/{id}", + // "path": "userprofiles/{+profileId}/remarketingLists/{+id}", // "response": { // "$ref": "RemarketingList" // }, @@ -46373,7 +46022,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, "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 { @@ -46425,7 +46074,7 @@ func (c *RemarketingListsInsertCall) Do(opts ...googleapi.CallOption) (*Remarket return ret, nil // { // "description": "Inserts a new remarketing list.", - // "flatPath": "userprofiles/{profileId}/remarketingLists", + // "flatPath": "userprofiles/{userprofilesId}/remarketingLists", // "httpMethod": "POST", // "id": "dfareporting.remarketingLists.insert", // "parameterOrder": [ @@ -46436,11 +46085,12 @@ func (c *RemarketingListsInsertCall) Do(opts ...googleapi.CallOption) (*Remarket // "description": "User profile ID associated with this request.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "userprofiles/{profileId}/remarketingLists", + // "path": "userprofiles/{+profileId}/remarketingLists", // "request": { // "$ref": "RemarketingList" // }, @@ -46537,8 +46187,8 @@ func (c *RemarketingListsListCall) SortField(sortField string) *RemarketingLists // // Possible values: // -// "ASCENDING" (default) -// "DESCENDING" +// "ASCENDING" (default) - Ascending order. +// "DESCENDING" - Descending order. func (c *RemarketingListsListCall) SortOrder(sortOrder string) *RemarketingListsListCall { c.urlParams_.Set("sortOrder", sortOrder) return c @@ -46592,7 +46242,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, "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 { @@ -46644,7 +46294,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": "userprofiles/{profileId}/remarketingLists", + // "flatPath": "userprofiles/{userprofilesId}/remarketingLists", // "httpMethod": "GET", // "id": "dfareporting.remarketingLists.list", // "parameterOrder": [ @@ -46658,7 +46308,7 @@ func (c *RemarketingListsListCall) Do(opts ...googleapi.CallOption) (*Remarketin // "type": "boolean" // }, // "advertiserId": { - // "description": "Select only remarketing lists owned by this advertiser.", + // "description": "Required. Select only remarketing lists owned by this advertiser.", // "format": "int64", // "location": "query", // "required": true, @@ -46675,8 +46325,6 @@ func (c *RemarketingListsListCall) Do(opts ...googleapi.CallOption) (*Remarketin // "description": "Maximum number of results to return.", // "format": "int32", // "location": "query", - // "maximum": "1000", - // "minimum": "0", // "type": "integer" // }, // "name": { @@ -46693,6 +46341,7 @@ func (c *RemarketingListsListCall) Do(opts ...googleapi.CallOption) (*Remarketin // "description": "User profile ID associated with this request.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // }, @@ -46718,14 +46367,14 @@ func (c *RemarketingListsListCall) Do(opts ...googleapi.CallOption) (*Remarketin // "DESCENDING" // ], // "enumDescriptions": [ - // "", - // "" + // "Ascending order.", + // "Descending order." // ], // "location": "query", // "type": "string" // } // }, - // "path": "userprofiles/{profileId}/remarketingLists", + // "path": "userprofiles/{+profileId}/remarketingLists", // "response": { // "$ref": "RemarketingListsListResponse" // }, @@ -46768,7 +46417,7 @@ type RemarketingListsPatchCall struct { header_ http.Header } -// Patch: Updates an existing remarketing list. This method supports +// Patch: Updates an existing RemarketingList. This method supports // patch semantics. // // - id: RemarketingList ID. @@ -46821,7 +46470,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, "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 { @@ -46872,8 +46521,8 @@ func (c *RemarketingListsPatchCall) Do(opts ...googleapi.CallOption) (*Remarketi } return ret, nil // { - // "description": "Updates an existing remarketing list. This method supports patch semantics.", - // "flatPath": "userprofiles/{profileId}/remarketingLists", + // "description": "Updates an existing RemarketingList. This method supports patch semantics.", + // "flatPath": "userprofiles/{userprofilesId}/remarketingLists", // "httpMethod": "PATCH", // "id": "dfareporting.remarketingLists.patch", // "parameterOrder": [ @@ -46882,7 +46531,7 @@ func (c *RemarketingListsPatchCall) Do(opts ...googleapi.CallOption) (*Remarketi // ], // "parameters": { // "id": { - // "description": "RemarketingList ID.", + // "description": "Required. RemarketingList ID.", // "format": "int64", // "location": "query", // "required": true, @@ -46892,11 +46541,12 @@ func (c *RemarketingListsPatchCall) Do(opts ...googleapi.CallOption) (*Remarketi // "description": "User profile ID associated with this request.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "userprofiles/{profileId}/remarketingLists", + // "path": "userprofiles/{+profileId}/remarketingLists", // "request": { // "$ref": "RemarketingList" // }, @@ -46971,7 +46621,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, "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 { @@ -47023,7 +46673,7 @@ func (c *RemarketingListsUpdateCall) Do(opts ...googleapi.CallOption) (*Remarket return ret, nil // { // "description": "Updates an existing remarketing list.", - // "flatPath": "userprofiles/{profileId}/remarketingLists", + // "flatPath": "userprofiles/{userprofilesId}/remarketingLists", // "httpMethod": "PUT", // "id": "dfareporting.remarketingLists.update", // "parameterOrder": [ @@ -47034,11 +46684,12 @@ func (c *RemarketingListsUpdateCall) Do(opts ...googleapi.CallOption) (*Remarket // "description": "User profile ID associated with this request.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "userprofiles/{profileId}/remarketingLists", + // "path": "userprofiles/{+profileId}/remarketingLists", // "request": { // "$ref": "RemarketingList" // }, @@ -47651,8 +47302,6 @@ func (c *ReportsListCall) Do(opts ...googleapi.CallOption) (*ReportList, error) // "description": "Maximum number of results to return.", // "format": "int32", // "location": "query", - // "maximum": "10", - // "minimum": "0", // "type": "integer" // }, // "pageToken": { @@ -48717,8 +48366,6 @@ func (c *ReportsFilesListCall) Do(opts ...googleapi.CallOption) (*FileList, erro // "description": "Maximum number of results to return.", // "format": "int32", // "location": "query", - // "maximum": "10", - // "minimum": "0", // "type": "integer" // }, // "pageToken": { @@ -48872,7 +48519,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, "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 { @@ -48925,7 +48572,7 @@ func (c *SitesGetCall) Do(opts ...googleapi.CallOption) (*Site, error) { return ret, nil // { // "description": "Gets one site by ID.", - // "flatPath": "userprofiles/{profileId}/sites/{id}", + // "flatPath": "userprofiles/{userprofilesId}/sites/{sitesId}", // "httpMethod": "GET", // "id": "dfareporting.sites.get", // "parameterOrder": [ @@ -48937,6 +48584,7 @@ func (c *SitesGetCall) Do(opts ...googleapi.CallOption) (*Site, error) { // "description": "Site ID.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // }, @@ -48944,11 +48592,12 @@ func (c *SitesGetCall) Do(opts ...googleapi.CallOption) (*Site, error) { // "description": "User profile ID associated with this request.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "userprofiles/{profileId}/sites/{id}", + // "path": "userprofiles/{+profileId}/sites/{+id}", // "response": { // "$ref": "Site" // }, @@ -49020,7 +48669,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, "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 { @@ -49072,7 +48721,7 @@ func (c *SitesInsertCall) Do(opts ...googleapi.CallOption) (*Site, error) { return ret, nil // { // "description": "Inserts a new site.", - // "flatPath": "userprofiles/{profileId}/sites", + // "flatPath": "userprofiles/{userprofilesId}/sites", // "httpMethod": "POST", // "id": "dfareporting.sites.insert", // "parameterOrder": [ @@ -49083,11 +48732,12 @@ func (c *SitesInsertCall) Do(opts ...googleapi.CallOption) (*Site, error) { // "description": "User profile ID associated with this request.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "userprofiles/{profileId}/sites", + // "path": "userprofiles/{+profileId}/sites", // "request": { // "$ref": "Site" // }, @@ -49236,8 +48886,8 @@ func (c *SitesListCall) SortField(sortField string) *SitesListCall { // // Possible values: // -// "ASCENDING" (default) -// "DESCENDING" +// "ASCENDING" (default) - Ascending order. +// "DESCENDING" - Descending order. func (c *SitesListCall) SortOrder(sortOrder string) *SitesListCall { c.urlParams_.Set("sortOrder", sortOrder) return c @@ -49305,7 +48955,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, "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 { @@ -49357,7 +49007,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": "userprofiles/{profileId}/sites", + // "flatPath": "userprofiles/{userprofilesId}/sites", // "httpMethod": "GET", // "id": "dfareporting.sites.list", // "parameterOrder": [ @@ -49415,8 +49065,6 @@ func (c *SitesListCall) Do(opts ...googleapi.CallOption) (*SitesListResponse, er // "description": "Maximum number of results to return.", // "format": "int32", // "location": "query", - // "maximum": "1000", - // "minimum": "0", // "type": "integer" // }, // "pageToken": { @@ -49428,6 +49076,7 @@ func (c *SitesListCall) Do(opts ...googleapi.CallOption) (*SitesListResponse, er // "description": "User profile ID associated with this request.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // }, @@ -49458,8 +49107,8 @@ func (c *SitesListCall) Do(opts ...googleapi.CallOption) (*SitesListResponse, er // "DESCENDING" // ], // "enumDescriptions": [ - // "", - // "" + // "Ascending order.", + // "Descending order." // ], // "location": "query", // "type": "string" @@ -49476,7 +49125,7 @@ func (c *SitesListCall) Do(opts ...googleapi.CallOption) (*SitesListResponse, er // "type": "boolean" // } // }, - // "path": "userprofiles/{profileId}/sites", + // "path": "userprofiles/{+profileId}/sites", // "response": { // "$ref": "SitesListResponse" // }, @@ -49572,7 +49221,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, "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 { @@ -49624,7 +49273,7 @@ func (c *SitesPatchCall) Do(opts ...googleapi.CallOption) (*Site, error) { return ret, nil // { // "description": "Updates an existing site. This method supports patch semantics.", - // "flatPath": "userprofiles/{profileId}/sites", + // "flatPath": "userprofiles/{userprofilesId}/sites", // "httpMethod": "PATCH", // "id": "dfareporting.sites.patch", // "parameterOrder": [ @@ -49633,7 +49282,7 @@ func (c *SitesPatchCall) Do(opts ...googleapi.CallOption) (*Site, error) { // ], // "parameters": { // "id": { - // "description": "Site ID.", + // "description": "Required. Site ID.", // "format": "int64", // "location": "query", // "required": true, @@ -49643,11 +49292,12 @@ func (c *SitesPatchCall) Do(opts ...googleapi.CallOption) (*Site, error) { // "description": "User profile ID associated with this request.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "userprofiles/{profileId}/sites", + // "path": "userprofiles/{+profileId}/sites", // "request": { // "$ref": "Site" // }, @@ -49722,7 +49372,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, "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 { @@ -49774,7 +49424,7 @@ func (c *SitesUpdateCall) Do(opts ...googleapi.CallOption) (*Site, error) { return ret, nil // { // "description": "Updates an existing site.", - // "flatPath": "userprofiles/{profileId}/sites", + // "flatPath": "userprofiles/{userprofilesId}/sites", // "httpMethod": "PUT", // "id": "dfareporting.sites.update", // "parameterOrder": [ @@ -49785,11 +49435,12 @@ func (c *SitesUpdateCall) Do(opts ...googleapi.CallOption) (*Site, error) { // "description": "User profile ID associated with this request.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "userprofiles/{profileId}/sites", + // "path": "userprofiles/{+profileId}/sites", // "request": { // "$ref": "Site" // }, @@ -49874,7 +49525,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, "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 { @@ -49927,7 +49578,7 @@ func (c *SizesGetCall) Do(opts ...googleapi.CallOption) (*Size, error) { return ret, nil // { // "description": "Gets one size by ID.", - // "flatPath": "userprofiles/{profileId}/sizes/{id}", + // "flatPath": "userprofiles/{userprofilesId}/sizes/{sizesId}", // "httpMethod": "GET", // "id": "dfareporting.sizes.get", // "parameterOrder": [ @@ -49939,6 +49590,7 @@ func (c *SizesGetCall) Do(opts ...googleapi.CallOption) (*Size, error) { // "description": "Size ID.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // }, @@ -49946,11 +49598,12 @@ func (c *SizesGetCall) Do(opts ...googleapi.CallOption) (*Size, error) { // "description": "User profile ID associated with this request.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "userprofiles/{profileId}/sizes/{id}", + // "path": "userprofiles/{+profileId}/sizes/{+id}", // "response": { // "$ref": "Size" // }, @@ -50022,7 +49675,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, "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 { @@ -50074,7 +49727,7 @@ func (c *SizesInsertCall) Do(opts ...googleapi.CallOption) (*Size, error) { return ret, nil // { // "description": "Inserts a new size.", - // "flatPath": "userprofiles/{profileId}/sizes", + // "flatPath": "userprofiles/{userprofilesId}/sizes", // "httpMethod": "POST", // "id": "dfareporting.sizes.insert", // "parameterOrder": [ @@ -50085,11 +49738,12 @@ func (c *SizesInsertCall) Do(opts ...googleapi.CallOption) (*Size, error) { // "description": "User profile ID associated with this request.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "userprofiles/{profileId}/sizes", + // "path": "userprofiles/{+profileId}/sizes", // "request": { // "$ref": "Size" // }, @@ -50206,7 +49860,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, "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 { @@ -50258,7 +49912,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": "userprofiles/{profileId}/sizes", + // "flatPath": "userprofiles/{userprofilesId}/sizes", // "httpMethod": "GET", // "id": "dfareporting.sizes.list", // "parameterOrder": [ @@ -50269,8 +49923,6 @@ func (c *SizesListCall) Do(opts ...googleapi.CallOption) (*SizesListResponse, er // "description": "Select only sizes with this height.", // "format": "int32", // "location": "query", - // "maximum": "32767", - // "minimum": "0", // "type": "integer" // }, // "iabStandard": { @@ -50289,6 +49941,7 @@ func (c *SizesListCall) Do(opts ...googleapi.CallOption) (*SizesListResponse, er // "description": "User profile ID associated with this request.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // }, @@ -50296,12 +49949,10 @@ func (c *SizesListCall) Do(opts ...googleapi.CallOption) (*SizesListResponse, er // "description": "Select only sizes with this width.", // "format": "int32", // "location": "query", - // "maximum": "32767", - // "minimum": "0", // "type": "integer" // } // }, - // "path": "userprofiles/{profileId}/sizes", + // "path": "userprofiles/{+profileId}/sizes", // "response": { // "$ref": "SizesListResponse" // }, @@ -50383,7 +50034,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, "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 { @@ -50436,7 +50087,7 @@ func (c *SubaccountsGetCall) Do(opts ...googleapi.CallOption) (*Subaccount, erro return ret, nil // { // "description": "Gets one subaccount by ID.", - // "flatPath": "userprofiles/{profileId}/subaccounts/{id}", + // "flatPath": "userprofiles/{userprofilesId}/subaccounts/{subaccountsId}", // "httpMethod": "GET", // "id": "dfareporting.subaccounts.get", // "parameterOrder": [ @@ -50448,6 +50099,7 @@ func (c *SubaccountsGetCall) Do(opts ...googleapi.CallOption) (*Subaccount, erro // "description": "Subaccount ID.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // }, @@ -50455,11 +50107,12 @@ func (c *SubaccountsGetCall) Do(opts ...googleapi.CallOption) (*Subaccount, erro // "description": "User profile ID associated with this request.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "userprofiles/{profileId}/subaccounts/{id}", + // "path": "userprofiles/{+profileId}/subaccounts/{+id}", // "response": { // "$ref": "Subaccount" // }, @@ -50531,7 +50184,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, "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 { @@ -50583,7 +50236,7 @@ func (c *SubaccountsInsertCall) Do(opts ...googleapi.CallOption) (*Subaccount, e return ret, nil // { // "description": "Inserts a new subaccount.", - // "flatPath": "userprofiles/{profileId}/subaccounts", + // "flatPath": "userprofiles/{userprofilesId}/subaccounts", // "httpMethod": "POST", // "id": "dfareporting.subaccounts.insert", // "parameterOrder": [ @@ -50594,11 +50247,12 @@ func (c *SubaccountsInsertCall) Do(opts ...googleapi.CallOption) (*Subaccount, e // "description": "User profile ID associated with this request.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "userprofiles/{profileId}/subaccounts", + // "path": "userprofiles/{+profileId}/subaccounts", // "request": { // "$ref": "Subaccount" // }, @@ -50688,8 +50342,8 @@ func (c *SubaccountsListCall) SortField(sortField string) *SubaccountsListCall { // // Possible values: // -// "ASCENDING" (default) -// "DESCENDING" +// "ASCENDING" (default) - Ascending order. +// "DESCENDING" - Descending order. func (c *SubaccountsListCall) SortOrder(sortOrder string) *SubaccountsListCall { c.urlParams_.Set("sortOrder", sortOrder) return c @@ -50743,7 +50397,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, "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 { @@ -50795,7 +50449,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": "userprofiles/{profileId}/subaccounts", + // "flatPath": "userprofiles/{userprofilesId}/subaccounts", // "httpMethod": "GET", // "id": "dfareporting.subaccounts.list", // "parameterOrder": [ @@ -50814,8 +50468,6 @@ func (c *SubaccountsListCall) Do(opts ...googleapi.CallOption) (*SubaccountsList // "description": "Maximum number of results to return.", // "format": "int32", // "location": "query", - // "maximum": "1000", - // "minimum": "0", // "type": "integer" // }, // "pageToken": { @@ -50827,6 +50479,7 @@ func (c *SubaccountsListCall) Do(opts ...googleapi.CallOption) (*SubaccountsList // "description": "User profile ID associated with this request.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // }, @@ -50857,14 +50510,14 @@ func (c *SubaccountsListCall) Do(opts ...googleapi.CallOption) (*SubaccountsList // "DESCENDING" // ], // "enumDescriptions": [ - // "", - // "" + // "Ascending order.", + // "Descending order." // ], // "location": "query", // "type": "string" // } // }, - // "path": "userprofiles/{profileId}/subaccounts", + // "path": "userprofiles/{+profileId}/subaccounts", // "response": { // "$ref": "SubaccountsListResponse" // }, @@ -50960,7 +50613,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, "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 { @@ -51012,7 +50665,7 @@ func (c *SubaccountsPatchCall) Do(opts ...googleapi.CallOption) (*Subaccount, er return ret, nil // { // "description": "Updates an existing subaccount. This method supports patch semantics.", - // "flatPath": "userprofiles/{profileId}/subaccounts", + // "flatPath": "userprofiles/{userprofilesId}/subaccounts", // "httpMethod": "PATCH", // "id": "dfareporting.subaccounts.patch", // "parameterOrder": [ @@ -51021,7 +50674,7 @@ func (c *SubaccountsPatchCall) Do(opts ...googleapi.CallOption) (*Subaccount, er // ], // "parameters": { // "id": { - // "description": "Subaccount ID.", + // "description": "Required. Subaccount ID.", // "format": "int64", // "location": "query", // "required": true, @@ -51031,11 +50684,12 @@ func (c *SubaccountsPatchCall) Do(opts ...googleapi.CallOption) (*Subaccount, er // "description": "User profile ID associated with this request.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "userprofiles/{profileId}/subaccounts", + // "path": "userprofiles/{+profileId}/subaccounts", // "request": { // "$ref": "Subaccount" // }, @@ -51110,7 +50764,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, "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 { @@ -51162,7 +50816,7 @@ func (c *SubaccountsUpdateCall) Do(opts ...googleapi.CallOption) (*Subaccount, e return ret, nil // { // "description": "Updates an existing subaccount.", - // "flatPath": "userprofiles/{profileId}/subaccounts", + // "flatPath": "userprofiles/{userprofilesId}/subaccounts", // "httpMethod": "PUT", // "id": "dfareporting.subaccounts.update", // "parameterOrder": [ @@ -51173,11 +50827,12 @@ func (c *SubaccountsUpdateCall) Do(opts ...googleapi.CallOption) (*Subaccount, e // "description": "User profile ID associated with this request.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "userprofiles/{profileId}/subaccounts", + // "path": "userprofiles/{+profileId}/subaccounts", // "request": { // "$ref": "Subaccount" // }, @@ -51262,7 +50917,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, "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 { @@ -51315,7 +50970,7 @@ func (c *TargetableRemarketingListsGetCall) Do(opts ...googleapi.CallOption) (*T return ret, nil // { // "description": "Gets one remarketing list by ID.", - // "flatPath": "userprofiles/{profileId}/targetableRemarketingLists/{id}", + // "flatPath": "userprofiles/{userprofilesId}/targetableRemarketingLists/{targetableRemarketingListsId}", // "httpMethod": "GET", // "id": "dfareporting.targetableRemarketingLists.get", // "parameterOrder": [ @@ -51327,6 +50982,7 @@ func (c *TargetableRemarketingListsGetCall) Do(opts ...googleapi.CallOption) (*T // "description": "Remarketing list ID.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // }, @@ -51334,11 +50990,12 @@ func (c *TargetableRemarketingListsGetCall) Do(opts ...googleapi.CallOption) (*T // "description": "User profile ID associated with this request.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "userprofiles/{profileId}/targetableRemarketingLists/{id}", + // "path": "userprofiles/{+profileId}/targetableRemarketingLists/{+id}", // "response": { // "$ref": "TargetableRemarketingList" // }, @@ -51424,8 +51081,8 @@ func (c *TargetableRemarketingListsListCall) SortField(sortField string) *Target // // Possible values: // -// "ASCENDING" (default) -// "DESCENDING" +// "ASCENDING" (default) - Ascending order. +// "DESCENDING" - Descending order. func (c *TargetableRemarketingListsListCall) SortOrder(sortOrder string) *TargetableRemarketingListsListCall { c.urlParams_.Set("sortOrder", sortOrder) return c @@ -51479,7 +51136,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, "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 { @@ -51532,7 +51189,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": "userprofiles/{profileId}/targetableRemarketingLists", + // "flatPath": "userprofiles/{userprofilesId}/targetableRemarketingLists", // "httpMethod": "GET", // "id": "dfareporting.targetableRemarketingLists.list", // "parameterOrder": [ @@ -51546,7 +51203,7 @@ func (c *TargetableRemarketingListsListCall) Do(opts ...googleapi.CallOption) (* // "type": "boolean" // }, // "advertiserId": { - // "description": "Select only targetable remarketing lists targetable by these advertisers.", + // "description": "Required. Select only targetable remarketing lists targetable by these advertisers.", // "format": "int64", // "location": "query", // "required": true, @@ -51557,8 +51214,6 @@ func (c *TargetableRemarketingListsListCall) Do(opts ...googleapi.CallOption) (* // "description": "Maximum number of results to return.", // "format": "int32", // "location": "query", - // "maximum": "1000", - // "minimum": "0", // "type": "integer" // }, // "name": { @@ -51575,6 +51230,7 @@ func (c *TargetableRemarketingListsListCall) Do(opts ...googleapi.CallOption) (* // "description": "User profile ID associated with this request.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // }, @@ -51600,14 +51256,14 @@ func (c *TargetableRemarketingListsListCall) Do(opts ...googleapi.CallOption) (* // "DESCENDING" // ], // "enumDescriptions": [ - // "", - // "" + // "Ascending order.", + // "Descending order." // ], // "location": "query", // "type": "string" // } // }, - // "path": "userprofiles/{profileId}/targetableRemarketingLists", + // "path": "userprofiles/{+profileId}/targetableRemarketingLists", // "response": { // "$ref": "TargetableRemarketingListsListResponse" // }, @@ -51710,7 +51366,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, "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 { @@ -51763,7 +51419,7 @@ func (c *TargetingTemplatesGetCall) Do(opts ...googleapi.CallOption) (*Targeting return ret, nil // { // "description": "Gets one targeting template by ID.", - // "flatPath": "userprofiles/{profileId}/targetingTemplates/{id}", + // "flatPath": "userprofiles/{userprofilesId}/targetingTemplates/{targetingTemplatesId}", // "httpMethod": "GET", // "id": "dfareporting.targetingTemplates.get", // "parameterOrder": [ @@ -51775,6 +51431,7 @@ func (c *TargetingTemplatesGetCall) Do(opts ...googleapi.CallOption) (*Targeting // "description": "Targeting template ID.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // }, @@ -51782,11 +51439,12 @@ func (c *TargetingTemplatesGetCall) Do(opts ...googleapi.CallOption) (*Targeting // "description": "User profile ID associated with this request.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "userprofiles/{profileId}/targetingTemplates/{id}", + // "path": "userprofiles/{+profileId}/targetingTemplates/{+id}", // "response": { // "$ref": "TargetingTemplate" // }, @@ -51858,7 +51516,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, "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 { @@ -51910,7 +51568,7 @@ func (c *TargetingTemplatesInsertCall) Do(opts ...googleapi.CallOption) (*Target return ret, nil // { // "description": "Inserts a new targeting template.", - // "flatPath": "userprofiles/{profileId}/targetingTemplates", + // "flatPath": "userprofiles/{userprofilesId}/targetingTemplates", // "httpMethod": "POST", // "id": "dfareporting.targetingTemplates.insert", // "parameterOrder": [ @@ -51921,11 +51579,12 @@ func (c *TargetingTemplatesInsertCall) Do(opts ...googleapi.CallOption) (*Target // "description": "User profile ID associated with this request.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "userprofiles/{profileId}/targetingTemplates", + // "path": "userprofiles/{+profileId}/targetingTemplates", // "request": { // "$ref": "TargetingTemplate" // }, @@ -52022,8 +51681,8 @@ func (c *TargetingTemplatesListCall) SortField(sortField string) *TargetingTempl // // Possible values: // -// "ASCENDING" (default) -// "DESCENDING" +// "ASCENDING" (default) - Ascending order. +// "DESCENDING" - Descending order. func (c *TargetingTemplatesListCall) SortOrder(sortOrder string) *TargetingTemplatesListCall { c.urlParams_.Set("sortOrder", sortOrder) return c @@ -52077,7 +51736,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, "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 { @@ -52129,7 +51788,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": "userprofiles/{profileId}/targetingTemplates", + // "flatPath": "userprofiles/{userprofilesId}/targetingTemplates", // "httpMethod": "GET", // "id": "dfareporting.targetingTemplates.list", // "parameterOrder": [ @@ -52154,8 +51813,6 @@ func (c *TargetingTemplatesListCall) Do(opts ...googleapi.CallOption) (*Targetin // "description": "Maximum number of results to return.", // "format": "int32", // "location": "query", - // "maximum": "1000", - // "minimum": "0", // "type": "integer" // }, // "pageToken": { @@ -52167,6 +51824,7 @@ func (c *TargetingTemplatesListCall) Do(opts ...googleapi.CallOption) (*Targetin // "description": "User profile ID associated with this request.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // }, @@ -52197,14 +51855,14 @@ func (c *TargetingTemplatesListCall) Do(opts ...googleapi.CallOption) (*Targetin // "DESCENDING" // ], // "enumDescriptions": [ - // "", - // "" + // "Ascending order.", + // "Descending order." // ], // "location": "query", // "type": "string" // } // }, - // "path": "userprofiles/{profileId}/targetingTemplates", + // "path": "userprofiles/{+profileId}/targetingTemplates", // "response": { // "$ref": "TargetingTemplatesListResponse" // }, @@ -52250,7 +51908,7 @@ type TargetingTemplatesPatchCall struct { // Patch: Updates an existing targeting template. This method supports // patch semantics. // -// - id: TargetingTemplate ID. +// - id: RemarketingList ID. // - profileId: User profile ID associated with this request. func (r *TargetingTemplatesService) Patch(profileId int64, id int64, targetingtemplate *TargetingTemplate) *TargetingTemplatesPatchCall { c := &TargetingTemplatesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} @@ -52300,7 +51958,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, "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 { @@ -52352,7 +52010,7 @@ func (c *TargetingTemplatesPatchCall) Do(opts ...googleapi.CallOption) (*Targeti return ret, nil // { // "description": "Updates an existing targeting template. This method supports patch semantics.", - // "flatPath": "userprofiles/{profileId}/targetingTemplates", + // "flatPath": "userprofiles/{userprofilesId}/targetingTemplates", // "httpMethod": "PATCH", // "id": "dfareporting.targetingTemplates.patch", // "parameterOrder": [ @@ -52361,7 +52019,7 @@ func (c *TargetingTemplatesPatchCall) Do(opts ...googleapi.CallOption) (*Targeti // ], // "parameters": { // "id": { - // "description": "TargetingTemplate ID.", + // "description": "Required. RemarketingList ID.", // "format": "int64", // "location": "query", // "required": true, @@ -52371,11 +52029,12 @@ func (c *TargetingTemplatesPatchCall) Do(opts ...googleapi.CallOption) (*Targeti // "description": "User profile ID associated with this request.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "userprofiles/{profileId}/targetingTemplates", + // "path": "userprofiles/{+profileId}/targetingTemplates", // "request": { // "$ref": "TargetingTemplate" // }, @@ -52450,7 +52109,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, "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 { @@ -52502,7 +52161,7 @@ func (c *TargetingTemplatesUpdateCall) Do(opts ...googleapi.CallOption) (*Target return ret, nil // { // "description": "Updates an existing targeting template.", - // "flatPath": "userprofiles/{profileId}/targetingTemplates", + // "flatPath": "userprofiles/{userprofilesId}/targetingTemplates", // "httpMethod": "PUT", // "id": "dfareporting.targetingTemplates.update", // "parameterOrder": [ @@ -52513,11 +52172,12 @@ func (c *TargetingTemplatesUpdateCall) Do(opts ...googleapi.CallOption) (*Target // "description": "User profile ID associated with this request.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "userprofiles/{profileId}/targetingTemplates", + // "path": "userprofiles/{+profileId}/targetingTemplates", // "request": { // "$ref": "TargetingTemplate" // }, @@ -52881,7 +52541,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, "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 { @@ -52934,7 +52594,7 @@ func (c *UserRolePermissionGroupsGetCall) Do(opts ...googleapi.CallOption) (*Use return ret, nil // { // "description": "Gets one user role permission group by ID.", - // "flatPath": "userprofiles/{profileId}/userRolePermissionGroups/{id}", + // "flatPath": "userprofiles/{userprofilesId}/userRolePermissionGroups/{userRolePermissionGroupsId}", // "httpMethod": "GET", // "id": "dfareporting.userRolePermissionGroups.get", // "parameterOrder": [ @@ -52946,6 +52606,7 @@ func (c *UserRolePermissionGroupsGetCall) Do(opts ...googleapi.CallOption) (*Use // "description": "User role permission group ID.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // }, @@ -52953,11 +52614,12 @@ func (c *UserRolePermissionGroupsGetCall) Do(opts ...googleapi.CallOption) (*Use // "description": "User profile ID associated with this request.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "userprofiles/{profileId}/userRolePermissionGroups/{id}", + // "path": "userprofiles/{+profileId}/userRolePermissionGroups/{+id}", // "response": { // "$ref": "UserRolePermissionGroup" // }, @@ -53036,7 +52698,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, "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 { @@ -53089,7 +52751,7 @@ func (c *UserRolePermissionGroupsListCall) Do(opts ...googleapi.CallOption) (*Us return ret, nil // { // "description": "Gets a list of all supported user role permission groups.", - // "flatPath": "userprofiles/{profileId}/userRolePermissionGroups", + // "flatPath": "userprofiles/{userprofilesId}/userRolePermissionGroups", // "httpMethod": "GET", // "id": "dfareporting.userRolePermissionGroups.list", // "parameterOrder": [ @@ -53100,11 +52762,12 @@ func (c *UserRolePermissionGroupsListCall) Do(opts ...googleapi.CallOption) (*Us // "description": "User profile ID associated with this request.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "userprofiles/{profileId}/userRolePermissionGroups", + // "path": "userprofiles/{+profileId}/userRolePermissionGroups", // "response": { // "$ref": "UserRolePermissionGroupsListResponse" // }, @@ -53186,7 +52849,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, "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 { @@ -53239,7 +52902,7 @@ func (c *UserRolePermissionsGetCall) Do(opts ...googleapi.CallOption) (*UserRole return ret, nil // { // "description": "Gets one user role permission by ID.", - // "flatPath": "userprofiles/{profileId}/userRolePermissions/{id}", + // "flatPath": "userprofiles/{userprofilesId}/userRolePermissions/{userRolePermissionsId}", // "httpMethod": "GET", // "id": "dfareporting.userRolePermissions.get", // "parameterOrder": [ @@ -53251,6 +52914,7 @@ func (c *UserRolePermissionsGetCall) Do(opts ...googleapi.CallOption) (*UserRole // "description": "User role permission ID.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // }, @@ -53258,11 +52922,12 @@ func (c *UserRolePermissionsGetCall) Do(opts ...googleapi.CallOption) (*UserRole // "description": "User profile ID associated with this request.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "userprofiles/{profileId}/userRolePermissions/{id}", + // "path": "userprofiles/{+profileId}/userRolePermissions/{+id}", // "response": { // "$ref": "UserRolePermission" // }, @@ -53352,7 +53017,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, "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 { @@ -53404,7 +53069,7 @@ func (c *UserRolePermissionsListCall) Do(opts ...googleapi.CallOption) (*UserRol return ret, nil // { // "description": "Gets a list of user role permissions, possibly filtered.", - // "flatPath": "userprofiles/{profileId}/userRolePermissions", + // "flatPath": "userprofiles/{userprofilesId}/userRolePermissions", // "httpMethod": "GET", // "id": "dfareporting.userRolePermissions.list", // "parameterOrder": [ @@ -53422,11 +53087,12 @@ func (c *UserRolePermissionsListCall) Do(opts ...googleapi.CallOption) (*UserRol // "description": "User profile ID associated with this request.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "userprofiles/{profileId}/userRolePermissions", + // "path": "userprofiles/{+profileId}/userRolePermissions", // "response": { // "$ref": "UserRolePermissionsListResponse" // }, @@ -53494,7 +53160,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, "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 { @@ -53522,7 +53188,7 @@ func (c *UserRolesDeleteCall) Do(opts ...googleapi.CallOption) error { return nil // { // "description": "Deletes an existing user role.", - // "flatPath": "userprofiles/{profileId}/userRoles/{id}", + // "flatPath": "userprofiles/{userprofilesId}/userRoles/{userRolesId}", // "httpMethod": "DELETE", // "id": "dfareporting.userRoles.delete", // "parameterOrder": [ @@ -53534,6 +53200,7 @@ func (c *UserRolesDeleteCall) Do(opts ...googleapi.CallOption) error { // "description": "User role ID.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // }, @@ -53541,11 +53208,12 @@ func (c *UserRolesDeleteCall) Do(opts ...googleapi.CallOption) error { // "description": "User profile ID associated with this request.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "userprofiles/{profileId}/userRoles/{id}", + // "path": "userprofiles/{+profileId}/userRoles/{+id}", // "scopes": [ // "https://www.googleapis.com/auth/dfatrafficking" // ] @@ -53624,7 +53292,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, "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 { @@ -53677,7 +53345,7 @@ func (c *UserRolesGetCall) Do(opts ...googleapi.CallOption) (*UserRole, error) { return ret, nil // { // "description": "Gets one user role by ID.", - // "flatPath": "userprofiles/{profileId}/userRoles/{id}", + // "flatPath": "userprofiles/{userprofilesId}/userRoles/{userRolesId}", // "httpMethod": "GET", // "id": "dfareporting.userRoles.get", // "parameterOrder": [ @@ -53689,6 +53357,7 @@ func (c *UserRolesGetCall) Do(opts ...googleapi.CallOption) (*UserRole, error) { // "description": "User role ID.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // }, @@ -53696,11 +53365,12 @@ func (c *UserRolesGetCall) Do(opts ...googleapi.CallOption) (*UserRole, error) { // "description": "User profile ID associated with this request.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "userprofiles/{profileId}/userRoles/{id}", + // "path": "userprofiles/{+profileId}/userRoles/{+id}", // "response": { // "$ref": "UserRole" // }, @@ -53772,7 +53442,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, "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 { @@ -53824,7 +53494,7 @@ func (c *UserRolesInsertCall) Do(opts ...googleapi.CallOption) (*UserRole, error return ret, nil // { // "description": "Inserts a new user role.", - // "flatPath": "userprofiles/{profileId}/userRoles", + // "flatPath": "userprofiles/{userprofilesId}/userRoles", // "httpMethod": "POST", // "id": "dfareporting.userRoles.insert", // "parameterOrder": [ @@ -53835,11 +53505,12 @@ func (c *UserRolesInsertCall) Do(opts ...googleapi.CallOption) (*UserRole, error // "description": "User profile ID associated with this request.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "userprofiles/{profileId}/userRoles", + // "path": "userprofiles/{+profileId}/userRoles", // "request": { // "$ref": "UserRole" // }, @@ -53937,8 +53608,8 @@ func (c *UserRolesListCall) SortField(sortField string) *UserRolesListCall { // // Possible values: // -// "ASCENDING" (default) -// "DESCENDING" +// "ASCENDING" (default) - Ascending order. +// "DESCENDING" - Descending order. func (c *UserRolesListCall) SortOrder(sortOrder string) *UserRolesListCall { c.urlParams_.Set("sortOrder", sortOrder) return c @@ -53999,7 +53670,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, "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 { @@ -54051,7 +53722,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": "userprofiles/{profileId}/userRoles", + // "flatPath": "userprofiles/{userprofilesId}/userRoles", // "httpMethod": "GET", // "id": "dfareporting.userRoles.list", // "parameterOrder": [ @@ -54075,8 +53746,6 @@ func (c *UserRolesListCall) Do(opts ...googleapi.CallOption) (*UserRolesListResp // "description": "Maximum number of results to return.", // "format": "int32", // "location": "query", - // "maximum": "1000", - // "minimum": "0", // "type": "integer" // }, // "pageToken": { @@ -54088,6 +53757,7 @@ func (c *UserRolesListCall) Do(opts ...googleapi.CallOption) (*UserRolesListResp // "description": "User profile ID associated with this request.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // }, @@ -54118,8 +53788,8 @@ func (c *UserRolesListCall) Do(opts ...googleapi.CallOption) (*UserRolesListResp // "DESCENDING" // ], // "enumDescriptions": [ - // "", - // "" + // "Ascending order.", + // "Descending order." // ], // "location": "query", // "type": "string" @@ -54131,7 +53801,7 @@ func (c *UserRolesListCall) Do(opts ...googleapi.CallOption) (*UserRolesListResp // "type": "string" // } // }, - // "path": "userprofiles/{profileId}/userRoles", + // "path": "userprofiles/{+profileId}/userRoles", // "response": { // "$ref": "UserRolesListResponse" // }, @@ -54227,7 +53897,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, "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 { @@ -54279,7 +53949,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": "userprofiles/{profileId}/userRoles", + // "flatPath": "userprofiles/{userprofilesId}/userRoles", // "httpMethod": "PATCH", // "id": "dfareporting.userRoles.patch", // "parameterOrder": [ @@ -54288,7 +53958,7 @@ func (c *UserRolesPatchCall) Do(opts ...googleapi.CallOption) (*UserRole, error) // ], // "parameters": { // "id": { - // "description": "UserRole ID.", + // "description": "Required. UserRole ID.", // "format": "int64", // "location": "query", // "required": true, @@ -54298,11 +53968,12 @@ func (c *UserRolesPatchCall) Do(opts ...googleapi.CallOption) (*UserRole, error) // "description": "User profile ID associated with this request.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "userprofiles/{profileId}/userRoles", + // "path": "userprofiles/{+profileId}/userRoles", // "request": { // "$ref": "UserRole" // }, @@ -54377,7 +54048,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, "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 { @@ -54429,7 +54100,7 @@ func (c *UserRolesUpdateCall) Do(opts ...googleapi.CallOption) (*UserRole, error return ret, nil // { // "description": "Updates an existing user role.", - // "flatPath": "userprofiles/{profileId}/userRoles", + // "flatPath": "userprofiles/{userprofilesId}/userRoles", // "httpMethod": "PUT", // "id": "dfareporting.userRoles.update", // "parameterOrder": [ @@ -54440,11 +54111,12 @@ func (c *UserRolesUpdateCall) Do(opts ...googleapi.CallOption) (*UserRole, error // "description": "User profile ID associated with this request.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "userprofiles/{profileId}/userRoles", + // "path": "userprofiles/{+profileId}/userRoles", // "request": { // "$ref": "UserRole" // }, @@ -54529,7 +54201,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, "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 { @@ -54582,7 +54254,7 @@ func (c *VideoFormatsGetCall) Do(opts ...googleapi.CallOption) (*VideoFormat, er return ret, nil // { // "description": "Gets one video format by ID.", - // "flatPath": "userprofiles/{profileId}/videoFormats/{id}", + // "flatPath": "userprofiles/{userprofilesId}/videoFormats/{videoFormatsId}", // "httpMethod": "GET", // "id": "dfareporting.videoFormats.get", // "parameterOrder": [ @@ -54594,6 +54266,7 @@ func (c *VideoFormatsGetCall) Do(opts ...googleapi.CallOption) (*VideoFormat, er // "description": "Video format ID.", // "format": "int32", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "integer" // }, @@ -54601,11 +54274,12 @@ func (c *VideoFormatsGetCall) Do(opts ...googleapi.CallOption) (*VideoFormat, er // "description": "User profile ID associated with this request.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "userprofiles/{profileId}/videoFormats/{id}", + // "path": "userprofiles/{+profileId}/videoFormats/{+id}", // "response": { // "$ref": "VideoFormat" // }, @@ -54684,7 +54358,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, "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 { @@ -54736,7 +54410,7 @@ func (c *VideoFormatsListCall) Do(opts ...googleapi.CallOption) (*VideoFormatsLi return ret, nil // { // "description": "Lists available video formats.", - // "flatPath": "userprofiles/{profileId}/videoFormats", + // "flatPath": "userprofiles/{userprofilesId}/videoFormats", // "httpMethod": "GET", // "id": "dfareporting.videoFormats.list", // "parameterOrder": [ @@ -54747,11 +54421,12 @@ func (c *VideoFormatsListCall) Do(opts ...googleapi.CallOption) (*VideoFormatsLi // "description": "User profile ID associated with this request.", // "format": "int64", // "location": "path", + // "pattern": "^[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "userprofiles/{profileId}/videoFormats", + // "path": "userprofiles/{+profileId}/videoFormats", // "response": { // "$ref": "VideoFormatsListResponse" // }, diff --git a/dialogflow/v2/dialogflow-api.json b/dialogflow/v2/dialogflow-api.json index e1463b051ff..e4cf93408b4 100644 --- a/dialogflow/v2/dialogflow-api.json +++ b/dialogflow/v2/dialogflow-api.json @@ -8211,7 +8211,7 @@ } } }, - "revision": "20230612", + "revision": "20230621", "rootUrl": "https://dialogflow.googleapis.com/", "schemas": { "GoogleCloudDialogflowCxV3AudioInput": { @@ -12494,6 +12494,11 @@ "agent": { "description": "Required. ID of the Dialogflow agent environment to use. This project needs to either be the same project as the conversation or you need to grant `service-@gcp-sa-dialogflow.iam.gserviceaccount.com` the `Dialogflow API Service Agent` role in this project. - For ES agents, use format: `projects//locations//agent/environments/`. If environment is not specified, the default `draft` environment is used. Refer to [DetectIntentRequest](/dialogflow/docs/reference/rpc/google.cloud.dialogflow.v2#google.cloud.dialogflow.v2.DetectIntentRequest) for more details. - For CX agents, use format `projects//locations//agents//environments/`. If environment is not specified, the default `draft` environment is used.", "type": "string" + }, + "sessionTtl": { + "description": "Optional. Sets Dialogflow CX session life time. By default, a Dialogflow CX session remains active and its data is stored for 30 minutes after the last request is sent for the session. This value should be no longer than 1 day.", + "format": "google-duration", + "type": "string" } }, "type": "object" @@ -16579,6 +16584,10 @@ "description": "The request message for Conversations.SuggestConversationSummary.", "id": "GoogleCloudDialogflowV2SuggestConversationSummaryRequest", "properties": { + "assistQueryParams": { + "$ref": "GoogleCloudDialogflowV2AssistQueryParameters", + "description": "Parameters for a human assist query. Only used for POC/demo purpose." + }, "contextSize": { "description": "Max number of messages prior to and including [latest_message] to use as context when compiling the suggestion. By default 500 and at most 1000.", "format": "int32", diff --git a/dialogflow/v2/dialogflow-gen.go b/dialogflow/v2/dialogflow-gen.go index 576601bb958..a0d747fe5d2 100644 --- a/dialogflow/v2/dialogflow-gen.go +++ b/dialogflow/v2/dialogflow-gen.go @@ -8733,6 +8733,12 @@ type GoogleCloudDialogflowV2AutomatedAgentConfig struct { // used. Agent string `json:"agent,omitempty"` + // SessionTtl: Optional. Sets Dialogflow CX session life time. By + // default, a Dialogflow CX session remains active and its data is + // stored for 30 minutes after the last request is sent for the session. + // This value should be no longer than 1 day. + SessionTtl string `json:"sessionTtl,omitempty"` + // ForceSendFields is a list of field names (e.g. "Agent") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any @@ -16188,6 +16194,10 @@ func (s *GoogleCloudDialogflowV2SuggestArticlesResponse) MarshalJSON() ([]byte, // GoogleCloudDialogflowV2SuggestConversationSummaryRequest: The request // message for Conversations.SuggestConversationSummary. type GoogleCloudDialogflowV2SuggestConversationSummaryRequest struct { + // AssistQueryParams: Parameters for a human assist query. Only used for + // POC/demo purpose. + AssistQueryParams *GoogleCloudDialogflowV2AssistQueryParameters `json:"assistQueryParams,omitempty"` + // ContextSize: Max number of messages prior to and including // [latest_message] to use as context when compiling the suggestion. By // default 500 and at most 1000. @@ -16199,20 +16209,21 @@ type GoogleCloudDialogflowV2SuggestConversationSummaryRequest struct { // `projects//locations//conversations//messages/`. LatestMessage string `json:"latestMessage,omitempty"` - // ForceSendFields is a list of field names (e.g. "ContextSize") to - // unconditionally include in API requests. By default, fields with + // ForceSendFields is a list of field names (e.g. "AssistQueryParams") + // 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. "ContextSize") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AssistQueryParams") 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:"-"` } diff --git a/dialogflow/v2beta1/dialogflow-api.json b/dialogflow/v2beta1/dialogflow-api.json index e44998ec27e..5eaaaac2dd4 100644 --- a/dialogflow/v2beta1/dialogflow-api.json +++ b/dialogflow/v2beta1/dialogflow-api.json @@ -7579,7 +7579,7 @@ } } }, - "revision": "20230612", + "revision": "20230621", "rootUrl": "https://dialogflow.googleapis.com/", "schemas": { "GoogleCloudDialogflowCxV3AudioInput": { @@ -14003,6 +14003,11 @@ "agent": { "description": "Required. ID of the Dialogflow agent environment to use. This project needs to either be the same project as the conversation or you need to grant `service-@gcp-sa-dialogflow.iam.gserviceaccount.com` the `Dialogflow API Service Agent` role in this project. - For ES agents, use format: `projects//locations//agent/environments/`. If environment is not specified, the default `draft` environment is used. Refer to [DetectIntentRequest](/dialogflow/docs/reference/rpc/google.cloud.dialogflow.v2beta1#google.cloud.dialogflow.v2beta1.DetectIntentRequest) for more details. - For CX agents, use format `projects//locations//agents//environments/`. If environment is not specified, the default `draft` environment is used.", "type": "string" + }, + "sessionTtl": { + "description": "Optional. Sets Dialogflow CX session life time. By default, a Dialogflow CX session remains active and its data is stored for 30 minutes after the last request is sent for the session. This value should be no longer than 1 day.", + "format": "google-duration", + "type": "string" } }, "type": "object" @@ -18287,6 +18292,10 @@ "description": "The request message for Conversations.SuggestConversationSummary.", "id": "GoogleCloudDialogflowV2beta1SuggestConversationSummaryRequest", "properties": { + "assistQueryParams": { + "$ref": "GoogleCloudDialogflowV2beta1AssistQueryParameters", + "description": "Parameters for a human assist query. Only used for POC/demo purpose." + }, "contextSize": { "description": "Max number of messages prior to and including [latest_message] to use as context when compiling the suggestion. By default 500 and at most 1000.", "format": "int32", diff --git a/dialogflow/v2beta1/dialogflow-gen.go b/dialogflow/v2beta1/dialogflow-gen.go index 745da26c449..42ef00b3091 100644 --- a/dialogflow/v2beta1/dialogflow-gen.go +++ b/dialogflow/v2beta1/dialogflow-gen.go @@ -12243,6 +12243,12 @@ type GoogleCloudDialogflowV2beta1AutomatedAgentConfig struct { // specified, the default `draft` environment is used. Agent string `json:"agent,omitempty"` + // SessionTtl: Optional. Sets Dialogflow CX session life time. By + // default, a Dialogflow CX session remains active and its data is + // stored for 30 minutes after the last request is sent for the session. + // This value should be no longer than 1 day. + SessionTtl string `json:"sessionTtl,omitempty"` + // ForceSendFields is a list of field names (e.g. "Agent") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any @@ -20124,6 +20130,10 @@ func (s *GoogleCloudDialogflowV2beta1SuggestArticlesResponse) MarshalJSON() ([]b // GoogleCloudDialogflowV2beta1SuggestConversationSummaryRequest: The // request message for Conversations.SuggestConversationSummary. type GoogleCloudDialogflowV2beta1SuggestConversationSummaryRequest struct { + // AssistQueryParams: Parameters for a human assist query. Only used for + // POC/demo purpose. + AssistQueryParams *GoogleCloudDialogflowV2beta1AssistQueryParameters `json:"assistQueryParams,omitempty"` + // ContextSize: Max number of messages prior to and including // [latest_message] to use as context when compiling the suggestion. By // default 500 and at most 1000. @@ -20135,20 +20145,21 @@ type GoogleCloudDialogflowV2beta1SuggestConversationSummaryRequest struct { // `projects//locations//conversations//messages/`. LatestMessage string `json:"latestMessage,omitempty"` - // ForceSendFields is a list of field names (e.g. "ContextSize") to - // unconditionally include in API requests. By default, fields with + // ForceSendFields is a list of field names (e.g. "AssistQueryParams") + // 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. "ContextSize") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AssistQueryParams") 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:"-"` } diff --git a/dialogflow/v3/dialogflow-api.json b/dialogflow/v3/dialogflow-api.json index 48e3d5e8888..2b1b77e4a69 100644 --- a/dialogflow/v3/dialogflow-api.json +++ b/dialogflow/v3/dialogflow-api.json @@ -3820,7 +3820,7 @@ } } }, - "revision": "20230612", + "revision": "20230621", "rootUrl": "https://dialogflow.googleapis.com/", "schemas": { "GoogleCloudDialogflowCxV3AdvancedSettings": { @@ -4938,6 +4938,10 @@ "environment": { "description": "Optional. Environment name. If not set, draft environment is assumed. Format: `projects//locations//agents//environments/`.", "type": "string" + }, + "includeBigqueryExportSettings": { + "description": "Optional. Whether to include BigQuery Export setting.", + "type": "boolean" } }, "type": "object" @@ -6409,6 +6413,11 @@ }, "type": "array" }, + "sessionTtl": { + "description": "Optional. Sets Dialogflow session life time. By default, a Dialogflow session remains active and its data is stored for 30 minutes after the last request is sent for the session. This value should be no longer than 1 day.", + "format": "google-duration", + "type": "string" + }, "timeZone": { "description": "The time zone of this conversational query from the [time zone database](https://www.iana.org/time-zones), e.g., America/New_York, Europe/Paris. If not provided, the time zone specified in the agent is used.", "type": "string" diff --git a/dialogflow/v3/dialogflow-gen.go b/dialogflow/v3/dialogflow-gen.go index 8e263046ac5..62eec59cc22 100644 --- a/dialogflow/v3/dialogflow-gen.go +++ b/dialogflow/v3/dialogflow-gen.go @@ -2424,6 +2424,10 @@ type GoogleCloudDialogflowCxV3ExportAgentRequest struct { // `projects//locations//agents//environments/`. Environment string `json:"environment,omitempty"` + // IncludeBigqueryExportSettings: Optional. Whether to include BigQuery + // Export setting. + IncludeBigqueryExportSettings bool `json:"includeBigqueryExportSettings,omitempty"` + // ForceSendFields is a list of field names (e.g. "AgentUri") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any @@ -5345,6 +5349,12 @@ type GoogleCloudDialogflowCxV3QueryParameters struct { // languages and persist for the session of this query. SessionEntityTypes []*GoogleCloudDialogflowCxV3SessionEntityType `json:"sessionEntityTypes,omitempty"` + // SessionTtl: Optional. Sets Dialogflow session life time. By default, + // a Dialogflow session remains active and its data is stored for 30 + // minutes after the last request is sent for the session. This value + // should be no longer than 1 day. + SessionTtl string `json:"sessionTtl,omitempty"` + // TimeZone: The time zone of this conversational query from the time // zone database (https://www.iana.org/time-zones), e.g., // America/New_York, Europe/Paris. If not provided, the time zone diff --git a/dialogflow/v3beta1/dialogflow-api.json b/dialogflow/v3beta1/dialogflow-api.json index cf0b6d9c3dc..85fd5dc1ee8 100644 --- a/dialogflow/v3beta1/dialogflow-api.json +++ b/dialogflow/v3beta1/dialogflow-api.json @@ -3820,7 +3820,7 @@ } } }, - "revision": "20230612", + "revision": "20230621", "rootUrl": "https://dialogflow.googleapis.com/", "schemas": { "GoogleCloudDialogflowCxV3AudioInput": { @@ -6864,6 +6864,10 @@ "environment": { "description": "Optional. Environment name. If not set, draft environment is assumed. Format: `projects//locations//agents//environments/`.", "type": "string" + }, + "includeBigqueryExportSettings": { + "description": "Optional. Whether to include BigQuery Export setting.", + "type": "boolean" } }, "type": "object" @@ -8335,6 +8339,11 @@ }, "type": "array" }, + "sessionTtl": { + "description": "Optional. Sets Dialogflow session life time. By default, a Dialogflow session remains active and its data is stored for 30 minutes after the last request is sent for the session. This value should be no longer than 1 day.", + "format": "google-duration", + "type": "string" + }, "timeZone": { "description": "The time zone of this conversational query from the [time zone database](https://www.iana.org/time-zones), e.g., America/New_York, Europe/Paris. If not provided, the time zone specified in the agent is used.", "type": "string" diff --git a/dialogflow/v3beta1/dialogflow-gen.go b/dialogflow/v3beta1/dialogflow-gen.go index 8641a37265b..0065c949ddf 100644 --- a/dialogflow/v3beta1/dialogflow-gen.go +++ b/dialogflow/v3beta1/dialogflow-gen.go @@ -5997,6 +5997,10 @@ type GoogleCloudDialogflowCxV3beta1ExportAgentRequest struct { // `projects//locations//agents//environments/`. Environment string `json:"environment,omitempty"` + // IncludeBigqueryExportSettings: Optional. Whether to include BigQuery + // Export setting. + IncludeBigqueryExportSettings bool `json:"includeBigqueryExportSettings,omitempty"` + // ForceSendFields is a list of field names (e.g. "AgentUri") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any @@ -8923,6 +8927,12 @@ type GoogleCloudDialogflowCxV3beta1QueryParameters struct { // languages and persist for the session of this query. SessionEntityTypes []*GoogleCloudDialogflowCxV3beta1SessionEntityType `json:"sessionEntityTypes,omitempty"` + // SessionTtl: Optional. Sets Dialogflow session life time. By default, + // a Dialogflow session remains active and its data is stored for 30 + // minutes after the last request is sent for the session. This value + // should be no longer than 1 day. + SessionTtl string `json:"sessionTtl,omitempty"` + // TimeZone: The time zone of this conversational query from the time // zone database (https://www.iana.org/time-zones), e.g., // America/New_York, Europe/Paris. If not provided, the time zone diff --git a/dlp/v2/dlp-api.json b/dlp/v2/dlp-api.json index 36d0172c4fe..ee692699121 100644 --- a/dlp/v2/dlp-api.json +++ b/dlp/v2/dlp-api.json @@ -3412,7 +3412,7 @@ } } }, - "revision": "20230521", + "revision": "20230618", "rootUrl": "https://dlp.googleapis.com/", "schemas": { "GooglePrivacyDlpV2Action": { @@ -4021,6 +4021,176 @@ }, "type": "object" }, + "GooglePrivacyDlpV2ColumnDataProfile": { + "description": "The profile for a scanned column within a table.", + "id": "GooglePrivacyDlpV2ColumnDataProfile", + "properties": { + "column": { + "description": "The name of the column.", + "type": "string" + }, + "columnInfoType": { + "$ref": "GooglePrivacyDlpV2InfoTypeSummary", + "description": "If it's been determined this column can be identified as a single type, this will be set. Otherwise the column either has unidentifiable content or mixed types." + }, + "columnType": { + "description": "The data type of a given column.", + "enum": [ + "COLUMN_DATA_TYPE_UNSPECIFIED", + "TYPE_INT64", + "TYPE_BOOL", + "TYPE_FLOAT64", + "TYPE_STRING", + "TYPE_BYTES", + "TYPE_TIMESTAMP", + "TYPE_DATE", + "TYPE_TIME", + "TYPE_DATETIME", + "TYPE_GEOGRAPHY", + "TYPE_NUMERIC", + "TYPE_RECORD", + "TYPE_BIGNUMERIC", + "TYPE_JSON" + ], + "enumDescriptions": [ + "Invalid type.", + "Encoded as a string in decimal format.", + "Encoded as a boolean \"false\" or \"true\".", + "Encoded as a number, or string \"NaN\", \"Infinity\" or \"-Infinity\".", + "Encoded as a string value.", + "Encoded as a base64 string per RFC 4648, section 4.", + "Encoded as an RFC 3339 timestamp with mandatory \"Z\" time zone string: 1985-04-12T23:20:50.52Z", + "Encoded as RFC 3339 full-date format string: 1985-04-12", + "Encoded as RFC 3339 partial-time format string: 23:20:50.52", + "Encoded as RFC 3339 full-date \"T\" partial-time: 1985-04-12T23:20:50.52", + "Encoded as WKT", + "Encoded as a decimal string.", + "Container of ordered fields, each with a type and field name.", + "Decimal type.", + "Json type." + ], + "type": "string" + }, + "dataRiskLevel": { + "$ref": "GooglePrivacyDlpV2DataRiskLevel", + "description": "The data risk level for this column." + }, + "datasetId": { + "description": "The BigQuery dataset ID.", + "type": "string" + }, + "datasetLocation": { + "description": "The BigQuery location where the dataset's data is stored. See https://cloud.google.com/bigquery/docs/locations for supported locations.", + "type": "string" + }, + "datasetProjectId": { + "description": "The Google Cloud project ID that owns the BigQuery dataset.", + "type": "string" + }, + "estimatedNullPercentage": { + "description": "Approximate percentage of entries being null in the column.", + "enum": [ + "NULL_PERCENTAGE_LEVEL_UNSPECIFIED", + "NULL_PERCENTAGE_VERY_LOW", + "NULL_PERCENTAGE_LOW", + "NULL_PERCENTAGE_MEDIUM", + "NULL_PERCENTAGE_HIGH" + ], + "enumDescriptions": [ + "Unused.", + "Very few null entries.", + "Some null entries.", + "", + "A lot of null entries." + ], + "type": "string" + }, + "estimatedUniquenessScore": { + "description": "Approximate uniqueness of the column.", + "enum": [ + "UNIQUENESS_SCORE_LEVEL_UNSPECIFIED", + "UNIQUENESS_SCORE_LOW", + "UNIQUENESS_SCORE_MEDIUM", + "UNIQUENESS_SCORE_HIGH" + ], + "enumDescriptions": [ + "Some columns do not have estimated uniqueness. Possible reasons include having too few values.", + "Low uniqueness, possibly a boolean, enum or similiarly typed column.", + "Medium uniqueness.", + "High uniqueness, possibly a column of free text or unique identifiers." + ], + "type": "string" + }, + "freeTextScore": { + "description": "The likelihood that this column contains free-form text. A value close to 1 may indicate the column is likely to contain free-form or natural language text. Range in 0-1.", + "format": "double", + "type": "number" + }, + "name": { + "description": "The name of the profile.", + "type": "string" + }, + "otherMatches": { + "description": "Other types found within this column. List will be un-ordered.", + "items": { + "$ref": "GooglePrivacyDlpV2OtherInfoTypeSummary" + }, + "type": "array" + }, + "policyState": { + "description": "Indicates if a policy tag has been applied to the column.", + "enum": [ + "COLUMN_POLICY_STATE_UNSPECIFIED", + "COLUMN_POLICY_TAGGED" + ], + "enumDescriptions": [ + "No policy tags.", + "Column has policy tag applied." + ], + "type": "string" + }, + "profileLastGenerated": { + "description": "The last time the profile was generated.", + "format": "google-datetime", + "type": "string" + }, + "profileStatus": { + "$ref": "GooglePrivacyDlpV2ProfileStatus", + "description": "Success or error status from the most recent profile generation attempt. May be empty if the profile is still being generated." + }, + "sensitivityScore": { + "$ref": "GooglePrivacyDlpV2SensitivityScore", + "description": "The sensitivity of this column." + }, + "state": { + "description": "State of a profile.", + "enum": [ + "STATE_UNSPECIFIED", + "RUNNING", + "DONE" + ], + "enumDescriptions": [ + "Unused.", + "The profile is currently running. Once a profile has finished it will transition to DONE.", + "The profile is no longer generating. If profile_status.status.code is 0, the profile succeeded, otherwise, it failed." + ], + "type": "string" + }, + "tableDataProfile": { + "description": "The resource name to the table data profile.", + "type": "string" + }, + "tableFullResource": { + "description": "The resource name of the table this column is within.", + "type": "string" + }, + "tableId": { + "description": "The BigQuery table ID.", + "type": "string" + } + }, + "type": "object" + }, "GooglePrivacyDlpV2Condition": { "description": "The field type of `value` and `field` do not need to match to be considered equal, but not all comparisons are possible. EQUAL_TO and NOT_EQUAL_TO attempt to compare even with incompatible types, but all other comparisons are invalid with incompatible types. A `value` of type: - `string` can be compared against all other types - `boolean` can only be compared against other booleans - `integer` can be compared against doubles or a string if the string value can be parsed as an integer. - `double` can be compared against integers or a string if the string can be parsed as a double. - `Timestamp` can be compared against strings in RFC 3339 date string format. - `TimeOfDay` can be compared against timestamps and strings in the format of 'HH:mm:ss'. If we fail to compare do to type mismatch, a warning will be given and the condition will evaluate to false.", "id": "GooglePrivacyDlpV2Condition", @@ -4443,6 +4613,21 @@ }, "type": "object" }, + "GooglePrivacyDlpV2DataProfileBigQueryRowSchema": { + "description": "The schema of data to be saved to the BigQuery when the `DataProfileAction` is enabled.", + "id": "GooglePrivacyDlpV2DataProfileBigQueryRowSchema", + "properties": { + "columnProfile": { + "$ref": "GooglePrivacyDlpV2ColumnDataProfile", + "description": "Column data profile column" + }, + "tableProfile": { + "$ref": "GooglePrivacyDlpV2TableDataProfile", + "description": "Table data profile column" + } + }, + "type": "object" + }, "GooglePrivacyDlpV2DataProfileConfigSnapshot": { "description": "Snapshot of the configurations used to generate the profile.", "id": "GooglePrivacyDlpV2DataProfileConfigSnapshot", @@ -6972,7 +7157,7 @@ "properties": { "status": { "$ref": "GoogleRpcStatus", - "description": "Profiling status code and optional message. status.code will be 0 (default value) for OK." + "description": "Profiling status code and optional message. The `status.code` value is 0 (default value) for OK." }, "timestamp": { "description": "Time when the profile generation status was updated", diff --git a/dlp/v2/dlp-gen.go b/dlp/v2/dlp-gen.go index 97853ed2ac3..b605afe263d 100644 --- a/dlp/v2/dlp-gen.go +++ b/dlp/v2/dlp-gen.go @@ -1514,6 +1514,170 @@ func (s *GooglePrivacyDlpV2Color) UnmarshalJSON(data []byte) error { return nil } +// GooglePrivacyDlpV2ColumnDataProfile: The profile for a scanned column +// within a table. +type GooglePrivacyDlpV2ColumnDataProfile struct { + // Column: The name of the column. + Column string `json:"column,omitempty"` + + // ColumnInfoType: If it's been determined this column can be identified + // as a single type, this will be set. Otherwise the column either has + // unidentifiable content or mixed types. + ColumnInfoType *GooglePrivacyDlpV2InfoTypeSummary `json:"columnInfoType,omitempty"` + + // ColumnType: The data type of a given column. + // + // Possible values: + // "COLUMN_DATA_TYPE_UNSPECIFIED" - Invalid type. + // "TYPE_INT64" - Encoded as a string in decimal format. + // "TYPE_BOOL" - Encoded as a boolean "false" or "true". + // "TYPE_FLOAT64" - Encoded as a number, or string "NaN", "Infinity" + // or "-Infinity". + // "TYPE_STRING" - Encoded as a string value. + // "TYPE_BYTES" - Encoded as a base64 string per RFC 4648, section 4. + // "TYPE_TIMESTAMP" - Encoded as an RFC 3339 timestamp with mandatory + // "Z" time zone string: 1985-04-12T23:20:50.52Z + // "TYPE_DATE" - Encoded as RFC 3339 full-date format string: + // 1985-04-12 + // "TYPE_TIME" - Encoded as RFC 3339 partial-time format string: + // 23:20:50.52 + // "TYPE_DATETIME" - Encoded as RFC 3339 full-date "T" partial-time: + // 1985-04-12T23:20:50.52 + // "TYPE_GEOGRAPHY" - Encoded as WKT + // "TYPE_NUMERIC" - Encoded as a decimal string. + // "TYPE_RECORD" - Container of ordered fields, each with a type and + // field name. + // "TYPE_BIGNUMERIC" - Decimal type. + // "TYPE_JSON" - Json type. + ColumnType string `json:"columnType,omitempty"` + + // DataRiskLevel: The data risk level for this column. + DataRiskLevel *GooglePrivacyDlpV2DataRiskLevel `json:"dataRiskLevel,omitempty"` + + // DatasetId: The BigQuery dataset ID. + DatasetId string `json:"datasetId,omitempty"` + + // DatasetLocation: The BigQuery location where the dataset's data is + // stored. See https://cloud.google.com/bigquery/docs/locations for + // supported locations. + DatasetLocation string `json:"datasetLocation,omitempty"` + + // DatasetProjectId: The Google Cloud project ID that owns the BigQuery + // dataset. + DatasetProjectId string `json:"datasetProjectId,omitempty"` + + // EstimatedNullPercentage: Approximate percentage of entries being null + // in the column. + // + // Possible values: + // "NULL_PERCENTAGE_LEVEL_UNSPECIFIED" - Unused. + // "NULL_PERCENTAGE_VERY_LOW" - Very few null entries. + // "NULL_PERCENTAGE_LOW" - Some null entries. + // "NULL_PERCENTAGE_MEDIUM" + // "NULL_PERCENTAGE_HIGH" - A lot of null entries. + EstimatedNullPercentage string `json:"estimatedNullPercentage,omitempty"` + + // EstimatedUniquenessScore: Approximate uniqueness of the column. + // + // Possible values: + // "UNIQUENESS_SCORE_LEVEL_UNSPECIFIED" - Some columns do not have + // estimated uniqueness. Possible reasons include having too few values. + // "UNIQUENESS_SCORE_LOW" - Low uniqueness, possibly a boolean, enum + // or similiarly typed column. + // "UNIQUENESS_SCORE_MEDIUM" - Medium uniqueness. + // "UNIQUENESS_SCORE_HIGH" - High uniqueness, possibly a column of + // free text or unique identifiers. + EstimatedUniquenessScore string `json:"estimatedUniquenessScore,omitempty"` + + // FreeTextScore: The likelihood that this column contains free-form + // text. A value close to 1 may indicate the column is likely to contain + // free-form or natural language text. Range in 0-1. + FreeTextScore float64 `json:"freeTextScore,omitempty"` + + // Name: The name of the profile. + Name string `json:"name,omitempty"` + + // OtherMatches: Other types found within this column. List will be + // un-ordered. + OtherMatches []*GooglePrivacyDlpV2OtherInfoTypeSummary `json:"otherMatches,omitempty"` + + // PolicyState: Indicates if a policy tag has been applied to the + // column. + // + // Possible values: + // "COLUMN_POLICY_STATE_UNSPECIFIED" - No policy tags. + // "COLUMN_POLICY_TAGGED" - Column has policy tag applied. + PolicyState string `json:"policyState,omitempty"` + + // ProfileLastGenerated: The last time the profile was generated. + ProfileLastGenerated string `json:"profileLastGenerated,omitempty"` + + // ProfileStatus: Success or error status from the most recent profile + // generation attempt. May be empty if the profile is still being + // generated. + ProfileStatus *GooglePrivacyDlpV2ProfileStatus `json:"profileStatus,omitempty"` + + // SensitivityScore: The sensitivity of this column. + SensitivityScore *GooglePrivacyDlpV2SensitivityScore `json:"sensitivityScore,omitempty"` + + // State: State of a profile. + // + // Possible values: + // "STATE_UNSPECIFIED" - Unused. + // "RUNNING" - The profile is currently running. Once a profile has + // finished it will transition to DONE. + // "DONE" - The profile is no longer generating. If + // profile_status.status.code is 0, the profile succeeded, otherwise, it + // failed. + State string `json:"state,omitempty"` + + // TableDataProfile: The resource name to the table data profile. + TableDataProfile string `json:"tableDataProfile,omitempty"` + + // TableFullResource: The resource name of the table this column is + // within. + TableFullResource string `json:"tableFullResource,omitempty"` + + // TableId: The BigQuery table ID. + TableId string `json:"tableId,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Column") 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. "Column") 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 *GooglePrivacyDlpV2ColumnDataProfile) MarshalJSON() ([]byte, error) { + type NoMethod GooglePrivacyDlpV2ColumnDataProfile + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +func (s *GooglePrivacyDlpV2ColumnDataProfile) UnmarshalJSON(data []byte) error { + type NoMethod GooglePrivacyDlpV2ColumnDataProfile + var s1 struct { + FreeTextScore gensupport.JSONFloat64 `json:"freeTextScore"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.FreeTextScore = float64(s1.FreeTextScore) + return nil +} + // GooglePrivacyDlpV2Condition: The field type of `value` and `field` do // not need to match to be considered equal, but not all comparisons are // possible. EQUAL_TO and NOT_EQUAL_TO attempt to compare even with @@ -2329,6 +2493,38 @@ func (s *GooglePrivacyDlpV2DataProfileAction) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GooglePrivacyDlpV2DataProfileBigQueryRowSchema: The schema of data to +// be saved to the BigQuery when the `DataProfileAction` is enabled. +type GooglePrivacyDlpV2DataProfileBigQueryRowSchema struct { + // ColumnProfile: Column data profile column + ColumnProfile *GooglePrivacyDlpV2ColumnDataProfile `json:"columnProfile,omitempty"` + + // TableProfile: Table data profile column + TableProfile *GooglePrivacyDlpV2TableDataProfile `json:"tableProfile,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ColumnProfile") 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. "ColumnProfile") 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 *GooglePrivacyDlpV2DataProfileBigQueryRowSchema) MarshalJSON() ([]byte, error) { + type NoMethod GooglePrivacyDlpV2DataProfileBigQueryRowSchema + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GooglePrivacyDlpV2DataProfileConfigSnapshot: Snapshot of the // configurations used to generate the profile. type GooglePrivacyDlpV2DataProfileConfigSnapshot struct { @@ -6795,8 +6991,8 @@ func (s *GooglePrivacyDlpV2PrivacyMetric) MarshalJSON() ([]byte, error) { } type GooglePrivacyDlpV2ProfileStatus struct { - // Status: Profiling status code and optional message. status.code will - // be 0 (default value) for OK. + // Status: Profiling status code and optional message. The `status.code` + // value is 0 (default value) for OK. Status *GoogleRpcStatus `json:"status,omitempty"` // Timestamp: Time when the profile generation status was updated diff --git a/doubleclickbidmanager/v2/doubleclickbidmanager-api.json b/doubleclickbidmanager/v2/doubleclickbidmanager-api.json index 132b6237364..81c26fd5fb5 100644 --- a/doubleclickbidmanager/v2/doubleclickbidmanager-api.json +++ b/doubleclickbidmanager/v2/doubleclickbidmanager-api.json @@ -320,7 +320,7 @@ } } }, - "revision": "20230502", + "revision": "20230613", "rootUrl": "https://doubleclickbidmanager.googleapis.com/", "schemas": { "ChannelGrouping": { @@ -547,7 +547,7 @@ "description": "Additional query options." }, "type": { - "description": "The type of the report. The type of the report will dictate what dimesions, filters, and metrics can be used. **Warning:** The `AUDIENCE_COMPOSITION` report type will be deprecated in Display \u0026 Video 360 on **June 8, 2023**. Once deprecated, you will no longer be able to create new or retrieve existing Query and Report resources of this type.", + "description": "The type of the report. The type of the report will dictate what dimesions, filters, and metrics can be used.", "enum": [ "REPORT_TYPE_UNSPECIFIED", "STANDARD", @@ -566,7 +566,7 @@ "Default value when report type is not specified or is unknown in this version.", "Standard report.", "Inventory Availability report.", - "Audience Composition report. **Warning:** This report type will be deprecated in Display \u0026 Video 360 on **June 8, 2023**. Once deprecated, you will no longer be able to create new or retrieve existing Query and Report resources of this type.", + "Audience Composition report.", "Floodlight report.", "YouTube report.", "GRP report.", diff --git a/doubleclickbidmanager/v2/doubleclickbidmanager-gen.go b/doubleclickbidmanager/v2/doubleclickbidmanager-gen.go index 8a3177933c9..f8d06548e32 100644 --- a/doubleclickbidmanager/v2/doubleclickbidmanager-gen.go +++ b/doubleclickbidmanager/v2/doubleclickbidmanager-gen.go @@ -523,21 +523,14 @@ type Parameters struct { Options *Options `json:"options,omitempty"` // Type: The type of the report. The type of the report will dictate - // what dimesions, filters, and metrics can be used. **Warning:** The - // `AUDIENCE_COMPOSITION` report type will be deprecated in Display & - // Video 360 on **June 8, 2023**. Once deprecated, you will no longer be - // able to create new or retrieve existing Query and Report resources of - // this type. + // what dimesions, filters, and metrics can be used. // // Possible values: // "REPORT_TYPE_UNSPECIFIED" - Default value when report type is not // specified or is unknown in this version. // "STANDARD" - Standard report. // "INVENTORY_AVAILABILITY" - Inventory Availability report. - // "AUDIENCE_COMPOSITION" - Audience Composition report. **Warning:** - // This report type will be deprecated in Display & Video 360 on **June - // 8, 2023**. Once deprecated, you will no longer be able to create new - // or retrieve existing Query and Report resources of this type. + // "AUDIENCE_COMPOSITION" - Audience Composition report. // "FLOODLIGHT" - Floodlight report. // "YOUTUBE" - YouTube report. // "GRP" - GRP report. diff --git a/gkehub/v1/gkehub-api.json b/gkehub/v1/gkehub-api.json index 2efc9061da0..6062aa0dd9b 100644 --- a/gkehub/v1/gkehub-api.json +++ b/gkehub/v1/gkehub-api.json @@ -1518,7 +1518,7 @@ } } }, - "revision": "20230609", + "revision": "20230620", "rootUrl": "https://gkehub.googleapis.com/", "schemas": { "AppDevExperienceFeatureSpec": { @@ -1701,23 +1701,20 @@ "id": "ConfigManagementConfigSync", "properties": { "allowVerticalScale": { + "deprecated": true, "description": "Set to true to allow the vertical scaling. Defaults to false which disallows vertical scaling. This field is deprecated.", "type": "boolean" }, "enabled": { - "description": "Enables the installation of ConfigSync. If set to true, ConfigSync resources will be created and the other ConfigSync fields will be applied if exist. If set to false and Managed Config Sync is disabled, all other ConfigSync fields will be ignored, ConfigSync resources will be deleted. Setting this field to false while enabling Managed Config Sync is invalid. If omitted, ConfigSync resources will be managed if: * the git or oci field is present; or * Managed Config Sync is enabled (i.e., managed.enabled is true).", + "description": "Enables the installation of ConfigSync. If set to true, ConfigSync resources will be created and the other ConfigSync fields will be applied if exist. If set to false, all other ConfigSync fields will be ignored, ConfigSync resources will be deleted. If omitted, ConfigSync resources will be managed depends on the presence of the git or oci field.", "type": "boolean" }, "git": { "$ref": "ConfigManagementGitConfig", "description": "Git repo configuration for the cluster." }, - "managed": { - "$ref": "ConfigManagementManaged", - "description": "Configuration for Managed Config Sync." - }, "metricsGcpServiceAccountEmail": { - "description": "The Email of the GCP Service Account (GSA) used for exporting Config Sync metrics to Cloud Monitoring and Cloud Monarch when Workload Identity is enabled. The GSA should have the Monitoring Metric Writer (roles/monitoring.metricWriter) IAM role. The Kubernetes ServiceAccount `default` in the namespace `config-management-monitoring` should be binded to the GSA. This field is required when Managed Config Sync is enabled.", + "description": "The Email of the Google Cloud Service Account (GSA) used for exporting Config Sync metrics to Cloud Monitoring and Cloud Monarch when Workload Identity is enabled. The GSA should have the Monitoring Metric Writer (roles/monitoring.metricWriter) IAM role. The Kubernetes ServiceAccount `default` in the namespace `config-management-monitoring` should be binded to the GSA. This field is required when automatic Feature management is enabled.", "type": "string" }, "oci": { @@ -1731,6 +1728,10 @@ "sourceFormat": { "description": "Specifies whether the Config Sync Repo is in \"hierarchical\" or \"unstructured\" mode.", "type": "string" + }, + "stopSyncing": { + "description": "Set to true to stop syncing configs for a single cluster when automatic Feature management is enabled. Default to false. The field will be ignored when automatic Feature management is disabled.", + "type": "boolean" } }, "type": "object" @@ -2009,7 +2010,7 @@ "id": "ConfigManagementGitConfig", "properties": { "gcpServiceAccountEmail": { - "description": "The GCP Service Account Email used for auth when secret_type is gcpServiceAccount.", + "description": "The Google Cloud Service Account Email used for auth when secret_type is gcpServiceAccount.", "type": "string" }, "httpsProxy": { @@ -2162,21 +2163,6 @@ }, "type": "object" }, - "ConfigManagementManaged": { - "description": "Configuration for Managed Config Sync.", - "id": "ConfigManagementManaged", - "properties": { - "enabled": { - "description": "Set to true to enable Managed Config Sync. Defaults to false which disables Managed Config Sync. Setting this field to true when configSync.enabled is false is invalid.", - "type": "boolean" - }, - "stopSyncing": { - "description": "Set to true to stop syncing configs for a single cluster. Default to false. If set to true, Managed Config Sync will not upgrade Config Sync.", - "type": "boolean" - } - }, - "type": "object" - }, "ConfigManagementMembershipSpec": { "description": "**Anthos Config Management**: Configuration for a single cluster. Intended to parallel the ConfigManagement CR.", "id": "ConfigManagementMembershipSpec", @@ -2193,6 +2179,20 @@ "$ref": "ConfigManagementHierarchyControllerConfig", "description": "Hierarchy Controller configuration for the cluster." }, + "management": { + "description": "Enables automatic Feature management.", + "enum": [ + "MANAGEMENT_UNSPECIFIED", + "MANAGEMENT_AUTOMATIC", + "MANAGEMENT_MANUAL" + ], + "enumDescriptions": [ + "Unspecified", + "Google will manage the Feature for the cluster.", + "User will manually manage the Feature for the cluster." + ], + "type": "string" + }, "policyController": { "$ref": "ConfigManagementPolicyController", "description": "Policy Controller configuration for the cluster." @@ -2240,7 +2240,7 @@ "id": "ConfigManagementOciConfig", "properties": { "gcpServiceAccountEmail": { - "description": "The GCP Service Account Email used for auth when secret_type is gcpServiceAccount.", + "description": "The Google Cloud Service Account Email used for auth when secret_type is gcpServiceAccount.", "type": "string" }, "policyDir": { @@ -2488,6 +2488,7 @@ "type": "string" }, "lastSync": { + "deprecated": true, "description": "Deprecated: use last_sync_time instead. Timestamp of when ACM last successfully synced the repo The time format is specified in https://golang.org/pkg/time/#Time.String", "type": "string" }, @@ -3471,10 +3472,6 @@ "$ref": "ConfigManagementMembershipSpec", "description": "Config Management-specific spec." }, - "fleetInherited": { - "description": "True if value of `feature_spec` was inherited from a fleet-level default.", - "type": "boolean" - }, "fleetobservability": { "$ref": "FleetObservabilityMembershipSpec", "description": "Fleet observability membership spec" @@ -3486,6 +3483,10 @@ "mesh": { "$ref": "ServiceMeshMembershipSpec", "description": "Anthos Service Mesh-specific spec" + }, + "origin": { + "$ref": "Origin", + "description": "Whether this per-Membership spec was inherited from a fleet-level default. This field can be updated by users by either overriding a Membership config (updated to USER implicitly) or setting to FLEET explicitly." } }, "type": "object" @@ -3720,6 +3721,27 @@ }, "type": "object" }, + "Origin": { + "description": "Origin defines where this MembershipFeatureSpec originated from.", + "id": "Origin", + "properties": { + "type": { + "description": "Type specifies which type of origin is set.", + "enum": [ + "TYPE_UNSPECIFIED", + "FLEET", + "USER" + ], + "enumDescriptions": [ + "Type is unknown or not set.", + "Per-Membership spec was inherited from the fleet-level default.", + "Per-Membership spec was inherited from a user specification." + ], + "type": "string" + } + }, + "type": "object" + }, "Policy": { "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": "Policy", @@ -3953,6 +3975,7 @@ "id": "ServiceMeshMembershipSpec", "properties": { "controlPlane": { + "deprecated": true, "description": "Deprecated: use `management` instead Enables automatic control plane management.", "enum": [ "CONTROL_PLANE_MANAGEMENT_UNSPECIFIED", diff --git a/gkehub/v1/gkehub-gen.go b/gkehub/v1/gkehub-gen.go index e7600e78bb4..c21f881605c 100644 --- a/gkehub/v1/gkehub-gen.go +++ b/gkehub/v1/gkehub-gen.go @@ -659,27 +659,23 @@ type ConfigManagementConfigSync struct { // Enabled: Enables the installation of ConfigSync. If set to true, // ConfigSync resources will be created and the other ConfigSync fields - // will be applied if exist. If set to false and Managed Config Sync is - // disabled, all other ConfigSync fields will be ignored, ConfigSync - // resources will be deleted. Setting this field to false while enabling - // Managed Config Sync is invalid. If omitted, ConfigSync resources will - // be managed if: * the git or oci field is present; or * Managed Config - // Sync is enabled (i.e., managed.enabled is true). + // will be applied if exist. If set to false, all other ConfigSync + // fields will be ignored, ConfigSync resources will be deleted. If + // omitted, ConfigSync resources will be managed depends on the presence + // of the git or oci field. Enabled bool `json:"enabled,omitempty"` // Git: Git repo configuration for the cluster. Git *ConfigManagementGitConfig `json:"git,omitempty"` - // Managed: Configuration for Managed Config Sync. - Managed *ConfigManagementManaged `json:"managed,omitempty"` - - // MetricsGcpServiceAccountEmail: The Email of the GCP Service Account - // (GSA) used for exporting Config Sync metrics to Cloud Monitoring and - // Cloud Monarch when Workload Identity is enabled. The GSA should have - // the Monitoring Metric Writer (roles/monitoring.metricWriter) IAM - // role. The Kubernetes ServiceAccount `default` in the namespace + // MetricsGcpServiceAccountEmail: The Email of the Google Cloud Service + // Account (GSA) used for exporting Config Sync metrics to Cloud + // Monitoring and Cloud Monarch when Workload Identity is enabled. The + // GSA should have the Monitoring Metric Writer + // (roles/monitoring.metricWriter) IAM role. The Kubernetes + // ServiceAccount `default` in the namespace // `config-management-monitoring` should be binded to the GSA. This - // field is required when Managed Config Sync is enabled. + // field is required when automatic Feature management is enabled. MetricsGcpServiceAccountEmail string `json:"metricsGcpServiceAccountEmail,omitempty"` // Oci: OCI repo configuration for the cluster @@ -694,6 +690,11 @@ type ConfigManagementConfigSync struct { // "hierarchical" or "unstructured" mode. SourceFormat string `json:"sourceFormat,omitempty"` + // StopSyncing: Set to true to stop syncing configs for a single cluster + // when automatic Feature management is enabled. Default to false. The + // field will be ignored when automatic Feature management is disabled. + StopSyncing bool `json:"stopSyncing,omitempty"` + // ForceSendFields is a list of field names (e.g. "AllowVerticalScale") // to unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any @@ -1033,8 +1034,8 @@ func (s *ConfigManagementGatekeeperDeploymentState) MarshalJSON() ([]byte, error // ConfigManagementGitConfig: Git repo configuration for a single // cluster. type ConfigManagementGitConfig struct { - // GcpServiceAccountEmail: The GCP Service Account Email used for auth - // when secret_type is gcpServiceAccount. + // GcpServiceAccountEmail: The Google Cloud Service Account Email used + // for auth when secret_type is gcpServiceAccount. GcpServiceAccountEmail string `json:"gcpServiceAccountEmail,omitempty"` // HttpsProxy: URL for the HTTPS proxy to be used when communicating @@ -1304,41 +1305,6 @@ func (s *ConfigManagementInstallError) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// ConfigManagementManaged: Configuration for Managed Config Sync. -type ConfigManagementManaged struct { - // Enabled: Set to true to enable Managed Config Sync. Defaults to false - // which disables Managed Config Sync. Setting this field to true when - // configSync.enabled is false is invalid. - Enabled bool `json:"enabled,omitempty"` - - // StopSyncing: Set to true to stop syncing configs for a single - // cluster. Default to false. If set to true, Managed Config Sync will - // not upgrade Config Sync. - StopSyncing bool `json:"stopSyncing,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 *ConfigManagementManaged) MarshalJSON() ([]byte, error) { - type NoMethod ConfigManagementManaged - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - // ConfigManagementMembershipSpec: **Anthos Config Management**: // Configuration for a single cluster. Intended to parallel the // ConfigManagement CR. @@ -1359,6 +1325,16 @@ type ConfigManagementMembershipSpec struct { // cluster. HierarchyController *ConfigManagementHierarchyControllerConfig `json:"hierarchyController,omitempty"` + // Management: Enables automatic Feature management. + // + // Possible values: + // "MANAGEMENT_UNSPECIFIED" - Unspecified + // "MANAGEMENT_AUTOMATIC" - Google will manage the Feature for the + // cluster. + // "MANAGEMENT_MANUAL" - User will manually manage the Feature for the + // cluster. + Management string `json:"management,omitempty"` + // PolicyController: Policy Controller configuration for the cluster. PolicyController *ConfigManagementPolicyController `json:"policyController,omitempty"` @@ -1439,8 +1415,8 @@ func (s *ConfigManagementMembershipState) MarshalJSON() ([]byte, error) { // ConfigManagementOciConfig: OCI repo configuration for a single // cluster type ConfigManagementOciConfig struct { - // GcpServiceAccountEmail: The GCP Service Account Email used for auth - // when secret_type is gcpServiceAccount. + // GcpServiceAccountEmail: The Google Cloud Service Account Email used + // for auth when secret_type is gcpServiceAccount. GcpServiceAccountEmail string `json:"gcpServiceAccountEmail,omitempty"` // PolicyDir: The absolute path of the directory that contains the local @@ -3361,10 +3337,6 @@ type MembershipFeatureSpec struct { // Configmanagement: Config Management-specific spec. Configmanagement *ConfigManagementMembershipSpec `json:"configmanagement,omitempty"` - // FleetInherited: True if value of `feature_spec` was inherited from a - // fleet-level default. - FleetInherited bool `json:"fleetInherited,omitempty"` - // Fleetobservability: Fleet observability membership spec Fleetobservability *FleetObservabilityMembershipSpec `json:"fleetobservability,omitempty"` @@ -3374,6 +3346,12 @@ type MembershipFeatureSpec struct { // Mesh: Anthos Service Mesh-specific spec Mesh *ServiceMeshMembershipSpec `json:"mesh,omitempty"` + // Origin: Whether this per-Membership spec was inherited from a + // fleet-level default. This field can be updated by users by either + // overriding a Membership config (updated to USER implicitly) or + // setting to FLEET explicitly. + Origin *Origin `json:"origin,omitempty"` + // ForceSendFields is a list of field names (e.g. "Configmanagement") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any @@ -3774,6 +3752,42 @@ func (s *OperationMetadata) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// Origin: Origin defines where this MembershipFeatureSpec originated +// from. +type Origin struct { + // Type: Type specifies which type of origin is set. + // + // Possible values: + // "TYPE_UNSPECIFIED" - Type is unknown or not set. + // "FLEET" - Per-Membership spec was inherited from the fleet-level + // default. + // "USER" - Per-Membership spec was inherited from a user + // specification. + Type string `json:"type,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Type") 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. "Type") 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 *Origin) MarshalJSON() ([]byte, error) { + type NoMethod Origin + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // Policy: 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 diff --git a/gkehub/v1alpha/gkehub-api.json b/gkehub/v1alpha/gkehub-api.json index 5013be190bf..c98a290236b 100644 --- a/gkehub/v1alpha/gkehub-api.json +++ b/gkehub/v1alpha/gkehub-api.json @@ -1217,6 +1217,196 @@ ] } } + }, + "rbacrolebindings": { + "methods": { + "create": { + "description": "Creates a Membership RBACRoleBinding.", + "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/memberships/{membershipsId}/rbacrolebindings", + "httpMethod": "POST", + "id": "gkehub.projects.locations.memberships.rbacrolebindings.create", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "Required. The parent (project and location) where the RBACRoleBinding will be created. Specified in the format `projects/*/locations/*/memberships/*`.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/memberships/[^/]+$", + "required": true, + "type": "string" + }, + "rbacrolebindingId": { + "description": "Required. Client chosen ID for the RBACRoleBinding. `rbacrolebinding_id` must be a valid RFC 1123 compliant DNS label: 1. At most 63 characters in length 2. It must consist of lower case alphanumeric characters or `-` 3. It must start and end with an alphanumeric character Which can be expressed as the regex: `[a-z0-9]([-a-z0-9]*[a-z0-9])?`, with a maximum length of 63 characters.", + "location": "query", + "type": "string" + } + }, + "path": "v1alpha/{+parent}/rbacrolebindings", + "request": { + "$ref": "RBACRoleBinding" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "delete": { + "description": "Deletes a Membership RBACRoleBinding.", + "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/memberships/{membershipsId}/rbacrolebindings/{rbacrolebindingsId}", + "httpMethod": "DELETE", + "id": "gkehub.projects.locations.memberships.rbacrolebindings.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The RBACRoleBinding resource name in the format `projects/*/locations/*/memberships/*/rbacrolebindings/*`.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/memberships/[^/]+/rbacrolebindings/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1alpha/{+name}", + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "generateMembershipRBACRoleBindingYAML": { + "description": "Generates a YAML of the RBAC policies for the specified RoleBinding and its associated impersonation resources.", + "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/memberships/{membershipsId}/rbacrolebindings:generateMembershipRBACRoleBindingYAML", + "httpMethod": "POST", + "id": "gkehub.projects.locations.memberships.rbacrolebindings.generateMembershipRBACRoleBindingYAML", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "Required. The parent (project and location) where the RBACRoleBinding will be created. Specified in the format `projects/*/locations/*/memberships/*`.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/memberships/[^/]+$", + "required": true, + "type": "string" + }, + "rbacrolebindingId": { + "description": "Required. Client chosen ID for the RBACRoleBinding. `rbacrolebinding_id` must be a valid RFC 1123 compliant DNS label: 1. At most 63 characters in length 2. It must consist of lower case alphanumeric characters or `-` 3. It must start and end with an alphanumeric character Which can be expressed as the regex: `[a-z0-9]([-a-z0-9]*[a-z0-9])?`, with a maximum length of 63 characters.", + "location": "query", + "type": "string" + } + }, + "path": "v1alpha/{+parent}/rbacrolebindings:generateMembershipRBACRoleBindingYAML", + "request": { + "$ref": "RBACRoleBinding" + }, + "response": { + "$ref": "GenerateMembershipRBACRoleBindingYAMLResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "get": { + "description": "Returns the details of a Membership RBACRoleBinding.", + "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/memberships/{membershipsId}/rbacrolebindings/{rbacrolebindingsId}", + "httpMethod": "GET", + "id": "gkehub.projects.locations.memberships.rbacrolebindings.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The RBACRoleBinding resource name in the format `projects/*/locations/*/memberships/*/rbacrolebindings/*`.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/memberships/[^/]+/rbacrolebindings/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1alpha/{+name}", + "response": { + "$ref": "RBACRoleBinding" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Lists all Membership RBACRoleBindings.", + "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/memberships/{membershipsId}/rbacrolebindings", + "httpMethod": "GET", + "id": "gkehub.projects.locations.memberships.rbacrolebindings.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "pageSize": { + "description": "Optional. When requesting a 'page' of resources, `page_size` specifies number of resources to return. If unspecified or set to 0, all resources will be returned.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "Optional. Token returned by previous call to `ListMembershipRBACRoleBindings` which specifies the position in the list from where to continue listing the resources.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The parent (project and location) where the Features will be listed. Specified in the format `projects/*/locations/*/memberships/*`.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/memberships/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1alpha/{+parent}/rbacrolebindings", + "response": { + "$ref": "ListMembershipRBACRoleBindingsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "patch": { + "description": "Updates a Membership RBACRoleBinding.", + "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/memberships/{membershipsId}/rbacrolebindings/{rbacrolebindingsId}", + "httpMethod": "PATCH", + "id": "gkehub.projects.locations.memberships.rbacrolebindings.patch", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The resource name for the rbacrolebinding `projects/{project}/locations/{location}/namespaces/{namespace}/rbacrolebindings/{rbacrolebinding}` or `projects/{project}/locations/{location}/memberships/{membership}/rbacrolebindings/{rbacrolebinding}`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/memberships/[^/]+/rbacrolebindings/[^/]+$", + "required": true, + "type": "string" + }, + "updateMask": { + "description": "Required. The fields to be updated.", + "format": "google-fieldmask", + "location": "query", + "type": "string" + } + }, + "path": "v1alpha/{+name}", + "request": { + "$ref": "RBACRoleBinding" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } } } }, @@ -1908,7 +2098,7 @@ } } }, - "revision": "20230609", + "revision": "20230620", "rootUrl": "https://gkehub.googleapis.com/", "schemas": { "AnthosObservabilityFeatureSpec": { @@ -2484,23 +2674,20 @@ "id": "ConfigManagementConfigSync", "properties": { "allowVerticalScale": { + "deprecated": true, "description": "Set to true to allow the vertical scaling. Defaults to false which disallows vertical scaling. This field is deprecated.", "type": "boolean" }, "enabled": { - "description": "Enables the installation of ConfigSync. If set to true, ConfigSync resources will be created and the other ConfigSync fields will be applied if exist. If set to false and Managed Config Sync is disabled, all other ConfigSync fields will be ignored, ConfigSync resources will be deleted. Setting this field to false while enabling Managed Config Sync is invalid. If omitted, ConfigSync resources will be managed if: * the git or oci field is present; or * Managed Config Sync is enabled (i.e., managed.enabled is true).", + "description": "Enables the installation of ConfigSync. If set to true, ConfigSync resources will be created and the other ConfigSync fields will be applied if exist. If set to false, all other ConfigSync fields will be ignored, ConfigSync resources will be deleted. If omitted, ConfigSync resources will be managed depends on the presence of the git or oci field.", "type": "boolean" }, "git": { "$ref": "ConfigManagementGitConfig", "description": "Git repo configuration for the cluster." }, - "managed": { - "$ref": "ConfigManagementManaged", - "description": "Configuration for Managed Config Sync." - }, "metricsGcpServiceAccountEmail": { - "description": "The Email of the GCP Service Account (GSA) used for exporting Config Sync metrics to Cloud Monitoring and Cloud Monarch when Workload Identity is enabled. The GSA should have the Monitoring Metric Writer (roles/monitoring.metricWriter) IAM role. The Kubernetes ServiceAccount `default` in the namespace `config-management-monitoring` should be binded to the GSA. This field is required when Managed Config Sync is enabled.", + "description": "The Email of the Google Cloud Service Account (GSA) used for exporting Config Sync metrics to Cloud Monitoring and Cloud Monarch when Workload Identity is enabled. The GSA should have the Monitoring Metric Writer (roles/monitoring.metricWriter) IAM role. The Kubernetes ServiceAccount `default` in the namespace `config-management-monitoring` should be binded to the GSA. This field is required when automatic Feature management is enabled.", "type": "string" }, "oci": { @@ -2514,6 +2701,10 @@ "sourceFormat": { "description": "Specifies whether the Config Sync Repo is in \"hierarchical\" or \"unstructured\" mode.", "type": "string" + }, + "stopSyncing": { + "description": "Set to true to stop syncing configs for a single cluster when automatic Feature management is enabled. Default to false. The field will be ignored when automatic Feature management is disabled.", + "type": "boolean" } }, "type": "object" @@ -2792,7 +2983,7 @@ "id": "ConfigManagementGitConfig", "properties": { "gcpServiceAccountEmail": { - "description": "The GCP Service Account Email used for auth when secret_type is gcpServiceAccount.", + "description": "The Google Cloud Service Account Email used for auth when secret_type is gcpServiceAccount.", "type": "string" }, "httpsProxy": { @@ -2945,21 +3136,6 @@ }, "type": "object" }, - "ConfigManagementManaged": { - "description": "Configuration for Managed Config Sync.", - "id": "ConfigManagementManaged", - "properties": { - "enabled": { - "description": "Set to true to enable Managed Config Sync. Defaults to false which disables Managed Config Sync. Setting this field to true when configSync.enabled is false is invalid.", - "type": "boolean" - }, - "stopSyncing": { - "description": "Set to true to stop syncing configs for a single cluster. Default to false. If set to true, Managed Config Sync will not upgrade Config Sync.", - "type": "boolean" - } - }, - "type": "object" - }, "ConfigManagementMembershipSpec": { "description": "**Anthos Config Management**: Configuration for a single cluster. Intended to parallel the ConfigManagement CR.", "id": "ConfigManagementMembershipSpec", @@ -2980,6 +3156,20 @@ "$ref": "ConfigManagementHierarchyControllerConfig", "description": "Hierarchy Controller configuration for the cluster." }, + "management": { + "description": "Enables automatic Feature management.", + "enum": [ + "MANAGEMENT_UNSPECIFIED", + "MANAGEMENT_AUTOMATIC", + "MANAGEMENT_MANUAL" + ], + "enumDescriptions": [ + "Unspecified", + "Google will manage the Feature for the cluster.", + "User will manually manage the Feature for the cluster." + ], + "type": "string" + }, "policyController": { "$ref": "ConfigManagementPolicyController", "description": "Policy Controller configuration for the cluster." @@ -3031,7 +3221,7 @@ "id": "ConfigManagementOciConfig", "properties": { "gcpServiceAccountEmail": { - "description": "The GCP Service Account Email used for auth when secret_type is gcpServiceAccount.", + "description": "The Google Cloud Service Account Email used for auth when secret_type is gcpServiceAccount.", "type": "string" }, "policyDir": { @@ -3279,6 +3469,7 @@ "type": "string" }, "lastSync": { + "deprecated": true, "description": "Deprecated: use last_sync_time instead. Timestamp of when ACM last successfully synced the repo The time format is specified in https://golang.org/pkg/time/#Time.String", "type": "string" }, @@ -3675,6 +3866,17 @@ }, "type": "object" }, + "GenerateMembershipRBACRoleBindingYAMLResponse": { + "description": "Response for GenerateRBACRoleBindingYAML.", + "id": "GenerateMembershipRBACRoleBindingYAMLResponse", + "properties": { + "roleBindingsYaml": { + "description": "a yaml text blob including the RBAC policies.", + "type": "string" + } + }, + "type": "object" + }, "GkeCluster": { "description": "GkeCluster contains information specific to GKE clusters.", "id": "GkeCluster", @@ -4066,6 +4268,24 @@ }, "type": "object" }, + "ListMembershipRBACRoleBindingsResponse": { + "description": "List of Membership RBACRoleBindings.", + "id": "ListMembershipRBACRoleBindingsResponse", + "properties": { + "nextPageToken": { + "description": "A token to request the next page of resources from the `ListMembershipRBACRoleBindings` method. The value of an empty string means that there are no more resources to return.", + "type": "string" + }, + "rbacrolebindings": { + "description": "The list of Membership RBACRoleBindings.", + "items": { + "$ref": "RBACRoleBinding" + }, + "type": "array" + } + }, + "type": "object" + }, "ListMembershipsResponse": { "description": "Response message for the `GkeHub.ListMemberships` method.", "id": "ListMembershipsResponse", @@ -4401,10 +4621,6 @@ "$ref": "ConfigManagementMembershipSpec", "description": "Config Management-specific spec." }, - "fleetInherited": { - "description": "True if value of `feature_spec` was inherited from a fleet-level default.", - "type": "boolean" - }, "fleetobservability": { "$ref": "FleetObservabilityMembershipSpec", "description": "Fleet observability membership spec" @@ -4417,6 +4633,10 @@ "$ref": "ServiceMeshMembershipSpec", "description": "Anthos Service Mesh-specific spec" }, + "origin": { + "$ref": "Origin", + "description": "Whether this per-Membership spec was inherited from a fleet-level default. This field can be updated by users by either overriding a Membership config (updated to USER implicitly) or setting to FLEET explicitly." + }, "policycontroller": { "$ref": "PolicyControllerMembershipSpec", "description": "Policy Controller spec." @@ -4585,6 +4805,7 @@ "id": "MultiClusterIngressFeatureSpec", "properties": { "billing": { + "deprecated": true, "description": "Deprecated: This field will be ignored and should not be set. Customer's billing structure.", "enum": [ "BILLING_UNSPECIFIED", @@ -4791,6 +5012,27 @@ }, "type": "object" }, + "Origin": { + "description": "Origin defines where this MembershipFeatureSpec originated from.", + "id": "Origin", + "properties": { + "type": { + "description": "Type specifies which type of origin is set.", + "enum": [ + "TYPE_UNSPECIFIED", + "FLEET", + "USER" + ], + "enumDescriptions": [ + "Type is unknown or not set.", + "Per-Membership spec was inherited from the fleet-level default.", + "Per-Membership spec was inherited from a user specification." + ], + "type": "string" + } + }, + "type": "object" + }, "Policy": { "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": "Policy", @@ -5312,13 +5554,15 @@ "UNKNOWN", "ADMIN", "EDIT", - "VIEW" + "VIEW", + "ANTHOS_SUPPORT" ], "enumDescriptions": [ "UNKNOWN", "ADMIN has EDIT and RBAC permissions", "EDIT can edit all resources except RBAC", - "VIEW can only read resources" + "VIEW can only read resources", + "ANTHOS_SUPPORT gives Google Support read-only access to a number of cluster resources." ], "type": "string" } @@ -5578,6 +5822,7 @@ "id": "ServiceMeshMembershipSpec", "properties": { "controlPlane": { + "deprecated": true, "description": "Deprecated: use `management` instead Enables automatic control plane management.", "enum": [ "CONTROL_PLANE_MANAGEMENT_UNSPECIFIED", diff --git a/gkehub/v1alpha/gkehub-gen.go b/gkehub/v1alpha/gkehub-gen.go index fd417431bf5..e89306db282 100644 --- a/gkehub/v1alpha/gkehub-gen.go +++ b/gkehub/v1alpha/gkehub-gen.go @@ -234,6 +234,7 @@ type ProjectsLocationsFleetsService struct { func NewProjectsLocationsMembershipsService(s *Service) *ProjectsLocationsMembershipsService { rs := &ProjectsLocationsMembershipsService{s: s} rs.Bindings = NewProjectsLocationsMembershipsBindingsService(s) + rs.Rbacrolebindings = NewProjectsLocationsMembershipsRbacrolebindingsService(s) return rs } @@ -241,6 +242,8 @@ type ProjectsLocationsMembershipsService struct { s *Service Bindings *ProjectsLocationsMembershipsBindingsService + + Rbacrolebindings *ProjectsLocationsMembershipsRbacrolebindingsService } func NewProjectsLocationsMembershipsBindingsService(s *Service) *ProjectsLocationsMembershipsBindingsService { @@ -252,6 +255,15 @@ type ProjectsLocationsMembershipsBindingsService struct { s *Service } +func NewProjectsLocationsMembershipsRbacrolebindingsService(s *Service) *ProjectsLocationsMembershipsRbacrolebindingsService { + rs := &ProjectsLocationsMembershipsRbacrolebindingsService{s: s} + return rs +} + +type ProjectsLocationsMembershipsRbacrolebindingsService struct { + s *Service +} + func NewProjectsLocationsNamespacesService(s *Service) *ProjectsLocationsNamespacesService { rs := &ProjectsLocationsNamespacesService{s: s} rs.Rbacrolebindings = NewProjectsLocationsNamespacesRbacrolebindingsService(s) @@ -1410,27 +1422,23 @@ type ConfigManagementConfigSync struct { // Enabled: Enables the installation of ConfigSync. If set to true, // ConfigSync resources will be created and the other ConfigSync fields - // will be applied if exist. If set to false and Managed Config Sync is - // disabled, all other ConfigSync fields will be ignored, ConfigSync - // resources will be deleted. Setting this field to false while enabling - // Managed Config Sync is invalid. If omitted, ConfigSync resources will - // be managed if: * the git or oci field is present; or * Managed Config - // Sync is enabled (i.e., managed.enabled is true). + // will be applied if exist. If set to false, all other ConfigSync + // fields will be ignored, ConfigSync resources will be deleted. If + // omitted, ConfigSync resources will be managed depends on the presence + // of the git or oci field. Enabled bool `json:"enabled,omitempty"` // Git: Git repo configuration for the cluster. Git *ConfigManagementGitConfig `json:"git,omitempty"` - // Managed: Configuration for Managed Config Sync. - Managed *ConfigManagementManaged `json:"managed,omitempty"` - - // MetricsGcpServiceAccountEmail: The Email of the GCP Service Account - // (GSA) used for exporting Config Sync metrics to Cloud Monitoring and - // Cloud Monarch when Workload Identity is enabled. The GSA should have - // the Monitoring Metric Writer (roles/monitoring.metricWriter) IAM - // role. The Kubernetes ServiceAccount `default` in the namespace + // MetricsGcpServiceAccountEmail: The Email of the Google Cloud Service + // Account (GSA) used for exporting Config Sync metrics to Cloud + // Monitoring and Cloud Monarch when Workload Identity is enabled. The + // GSA should have the Monitoring Metric Writer + // (roles/monitoring.metricWriter) IAM role. The Kubernetes + // ServiceAccount `default` in the namespace // `config-management-monitoring` should be binded to the GSA. This - // field is required when Managed Config Sync is enabled. + // field is required when automatic Feature management is enabled. MetricsGcpServiceAccountEmail string `json:"metricsGcpServiceAccountEmail,omitempty"` // Oci: OCI repo configuration for the cluster @@ -1445,6 +1453,11 @@ type ConfigManagementConfigSync struct { // "hierarchical" or "unstructured" mode. SourceFormat string `json:"sourceFormat,omitempty"` + // StopSyncing: Set to true to stop syncing configs for a single cluster + // when automatic Feature management is enabled. Default to false. The + // field will be ignored when automatic Feature management is disabled. + StopSyncing bool `json:"stopSyncing,omitempty"` + // ForceSendFields is a list of field names (e.g. "AllowVerticalScale") // to unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any @@ -1784,8 +1797,8 @@ func (s *ConfigManagementGatekeeperDeploymentState) MarshalJSON() ([]byte, error // ConfigManagementGitConfig: Git repo configuration for a single // cluster. type ConfigManagementGitConfig struct { - // GcpServiceAccountEmail: The GCP Service Account Email used for auth - // when secret_type is gcpServiceAccount. + // GcpServiceAccountEmail: The Google Cloud Service Account Email used + // for auth when secret_type is gcpServiceAccount. GcpServiceAccountEmail string `json:"gcpServiceAccountEmail,omitempty"` // HttpsProxy: URL for the HTTPS proxy to be used when communicating @@ -2055,41 +2068,6 @@ func (s *ConfigManagementInstallError) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// ConfigManagementManaged: Configuration for Managed Config Sync. -type ConfigManagementManaged struct { - // Enabled: Set to true to enable Managed Config Sync. Defaults to false - // which disables Managed Config Sync. Setting this field to true when - // configSync.enabled is false is invalid. - Enabled bool `json:"enabled,omitempty"` - - // StopSyncing: Set to true to stop syncing configs for a single - // cluster. Default to false. If set to true, Managed Config Sync will - // not upgrade Config Sync. - StopSyncing bool `json:"stopSyncing,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 *ConfigManagementManaged) MarshalJSON() ([]byte, error) { - type NoMethod ConfigManagementManaged - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - // ConfigManagementMembershipSpec: **Anthos Config Management**: // Configuration for a single cluster. Intended to parallel the // ConfigManagement CR. @@ -2113,6 +2091,16 @@ type ConfigManagementMembershipSpec struct { // cluster. HierarchyController *ConfigManagementHierarchyControllerConfig `json:"hierarchyController,omitempty"` + // Management: Enables automatic Feature management. + // + // Possible values: + // "MANAGEMENT_UNSPECIFIED" - Unspecified + // "MANAGEMENT_AUTOMATIC" - Google will manage the Feature for the + // cluster. + // "MANAGEMENT_MANUAL" - User will manually manage the Feature for the + // cluster. + Management string `json:"management,omitempty"` + // PolicyController: Policy Controller configuration for the cluster. PolicyController *ConfigManagementPolicyController `json:"policyController,omitempty"` @@ -2196,8 +2184,8 @@ func (s *ConfigManagementMembershipState) MarshalJSON() ([]byte, error) { // ConfigManagementOciConfig: OCI repo configuration for a single // cluster type ConfigManagementOciConfig struct { - // GcpServiceAccountEmail: The GCP Service Account Email used for auth - // when secret_type is gcpServiceAccount. + // GcpServiceAccountEmail: The Google Cloud Service Account Email used + // for auth when secret_type is gcpServiceAccount. GcpServiceAccountEmail string `json:"gcpServiceAccountEmail,omitempty"` // PolicyDir: The absolute path of the directory that contains the local @@ -3217,6 +3205,40 @@ func (s *GenerateConnectManifestResponse) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GenerateMembershipRBACRoleBindingYAMLResponse: Response for +// GenerateRBACRoleBindingYAML. +type GenerateMembershipRBACRoleBindingYAMLResponse struct { + // RoleBindingsYaml: a yaml text blob including the RBAC policies. + RoleBindingsYaml string `json:"roleBindingsYaml,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "RoleBindingsYaml") 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. "RoleBindingsYaml") 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 *GenerateMembershipRBACRoleBindingYAMLResponse) MarshalJSON() ([]byte, error) { + type NoMethod GenerateMembershipRBACRoleBindingYAMLResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GkeCluster: GkeCluster contains information specific to GKE clusters. type GkeCluster struct { // ClusterMissing: Output only. If cluster_missing is set then it @@ -3874,6 +3896,44 @@ func (s *ListMembershipBindingsResponse) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// ListMembershipRBACRoleBindingsResponse: List of Membership +// RBACRoleBindings. +type ListMembershipRBACRoleBindingsResponse struct { + // NextPageToken: A token to request the next page of resources from the + // `ListMembershipRBACRoleBindings` method. The value of an empty string + // means that there are no more resources to return. + NextPageToken string `json:"nextPageToken,omitempty"` + + // Rbacrolebindings: The list of Membership RBACRoleBindings. + Rbacrolebindings []*RBACRoleBinding `json:"rbacrolebindings,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 *ListMembershipRBACRoleBindingsResponse) MarshalJSON() ([]byte, error) { + type NoMethod ListMembershipRBACRoleBindingsResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // ListMembershipsResponse: Response message for the // `GkeHub.ListMemberships` method. type ListMembershipsResponse struct { @@ -4383,10 +4443,6 @@ type MembershipFeatureSpec struct { // Configmanagement: Config Management-specific spec. Configmanagement *ConfigManagementMembershipSpec `json:"configmanagement,omitempty"` - // FleetInherited: True if value of `feature_spec` was inherited from a - // fleet-level default. - FleetInherited bool `json:"fleetInherited,omitempty"` - // Fleetobservability: Fleet observability membership spec Fleetobservability *FleetObservabilityMembershipSpec `json:"fleetobservability,omitempty"` @@ -4396,6 +4452,12 @@ type MembershipFeatureSpec struct { // Mesh: Anthos Service Mesh-specific spec Mesh *ServiceMeshMembershipSpec `json:"mesh,omitempty"` + // Origin: Whether this per-Membership spec was inherited from a + // fleet-level default. This field can be updated by users by either + // overriding a Membership config (updated to USER implicitly) or + // setting to FLEET explicitly. + Origin *Origin `json:"origin,omitempty"` + // Policycontroller: Policy Controller spec. Policycontroller *PolicyControllerMembershipSpec `json:"policycontroller,omitempty"` @@ -4994,6 +5056,42 @@ func (s *OperationMetadata) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// Origin: Origin defines where this MembershipFeatureSpec originated +// from. +type Origin struct { + // Type: Type specifies which type of origin is set. + // + // Possible values: + // "TYPE_UNSPECIFIED" - Type is unknown or not set. + // "FLEET" - Per-Membership spec was inherited from the fleet-level + // default. + // "USER" - Per-Membership spec was inherited from a user + // specification. + Type string `json:"type,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Type") 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. "Type") 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 *Origin) MarshalJSON() ([]byte, error) { + type NoMethod Origin + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // Policy: 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 @@ -5898,6 +5996,8 @@ type Role struct { // "ADMIN" - ADMIN has EDIT and RBAC permissions // "EDIT" - EDIT can edit all resources except RBAC // "VIEW" - VIEW can only read resources + // "ANTHOS_SUPPORT" - ANTHOS_SUPPORT gives Google Support read-only + // access to a number of cluster resources. PredefinedRole string `json:"predefinedRole,omitempty"` // ForceSendFields is a list of field names (e.g. "PredefinedRole") to @@ -12251,6 +12351,970 @@ func (c *ProjectsLocationsMembershipsBindingsPatchCall) Do(opts ...googleapi.Cal } +// method id "gkehub.projects.locations.memberships.rbacrolebindings.create": + +type ProjectsLocationsMembershipsRbacrolebindingsCreateCall struct { + s *Service + parent string + rbacrolebinding *RBACRoleBinding + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Create: Creates a Membership RBACRoleBinding. +// +// - parent: The parent (project and location) where the RBACRoleBinding +// will be created. Specified in the format +// `projects/*/locations/*/memberships/*`. +func (r *ProjectsLocationsMembershipsRbacrolebindingsService) Create(parent string, rbacrolebinding *RBACRoleBinding) *ProjectsLocationsMembershipsRbacrolebindingsCreateCall { + c := &ProjectsLocationsMembershipsRbacrolebindingsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.rbacrolebinding = rbacrolebinding + return c +} + +// RbacrolebindingId sets the optional parameter "rbacrolebindingId": +// Required. Client chosen ID for the RBACRoleBinding. +// `rbacrolebinding_id` must be a valid RFC 1123 compliant DNS label: 1. +// At most 63 characters in length 2. It must consist of lower case +// alphanumeric characters or `-` 3. It must start and end with an +// alphanumeric character Which can be expressed as the regex: +// `[a-z0-9]([-a-z0-9]*[a-z0-9])?`, with a maximum length of 63 +// characters. +func (c *ProjectsLocationsMembershipsRbacrolebindingsCreateCall) RbacrolebindingId(rbacrolebindingId string) *ProjectsLocationsMembershipsRbacrolebindingsCreateCall { + c.urlParams_.Set("rbacrolebindingId", rbacrolebindingId) + 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 *ProjectsLocationsMembershipsRbacrolebindingsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsMembershipsRbacrolebindingsCreateCall { + 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 *ProjectsLocationsMembershipsRbacrolebindingsCreateCall) Context(ctx context.Context) *ProjectsLocationsMembershipsRbacrolebindingsCreateCall { + 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 *ProjectsLocationsMembershipsRbacrolebindingsCreateCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsMembershipsRbacrolebindingsCreateCall) 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.rbacrolebinding) + 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, "v1alpha/{+parent}/rbacrolebindings") + 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 "gkehub.projects.locations.memberships.rbacrolebindings.create" call. +// Exactly one of *Operation or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified +// to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsMembershipsRbacrolebindingsCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &Operation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Creates a Membership RBACRoleBinding.", + // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/memberships/{membershipsId}/rbacrolebindings", + // "httpMethod": "POST", + // "id": "gkehub.projects.locations.memberships.rbacrolebindings.create", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "parent": { + // "description": "Required. The parent (project and location) where the RBACRoleBinding will be created. Specified in the format `projects/*/locations/*/memberships/*`.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/memberships/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "rbacrolebindingId": { + // "description": "Required. Client chosen ID for the RBACRoleBinding. `rbacrolebinding_id` must be a valid RFC 1123 compliant DNS label: 1. At most 63 characters in length 2. It must consist of lower case alphanumeric characters or `-` 3. It must start and end with an alphanumeric character Which can be expressed as the regex: `[a-z0-9]([-a-z0-9]*[a-z0-9])?`, with a maximum length of 63 characters.", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1alpha/{+parent}/rbacrolebindings", + // "request": { + // "$ref": "RBACRoleBinding" + // }, + // "response": { + // "$ref": "Operation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "gkehub.projects.locations.memberships.rbacrolebindings.delete": + +type ProjectsLocationsMembershipsRbacrolebindingsDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Delete: Deletes a Membership RBACRoleBinding. +// +// - name: The RBACRoleBinding resource name in the format +// `projects/*/locations/*/memberships/*/rbacrolebindings/*`. +func (r *ProjectsLocationsMembershipsRbacrolebindingsService) Delete(name string) *ProjectsLocationsMembershipsRbacrolebindingsDeleteCall { + c := &ProjectsLocationsMembershipsRbacrolebindingsDeleteCall{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 *ProjectsLocationsMembershipsRbacrolebindingsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsMembershipsRbacrolebindingsDeleteCall { + 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 *ProjectsLocationsMembershipsRbacrolebindingsDeleteCall) Context(ctx context.Context) *ProjectsLocationsMembershipsRbacrolebindingsDeleteCall { + 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 *ProjectsLocationsMembershipsRbacrolebindingsDeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsMembershipsRbacrolebindingsDeleteCall) 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, "v1alpha/{+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 "gkehub.projects.locations.memberships.rbacrolebindings.delete" call. +// Exactly one of *Operation or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified +// to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsMembershipsRbacrolebindingsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &Operation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Deletes a Membership RBACRoleBinding.", + // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/memberships/{membershipsId}/rbacrolebindings/{rbacrolebindingsId}", + // "httpMethod": "DELETE", + // "id": "gkehub.projects.locations.memberships.rbacrolebindings.delete", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The RBACRoleBinding resource name in the format `projects/*/locations/*/memberships/*/rbacrolebindings/*`.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/memberships/[^/]+/rbacrolebindings/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1alpha/{+name}", + // "response": { + // "$ref": "Operation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "gkehub.projects.locations.memberships.rbacrolebindings.generateMembershipRBACRoleBindingYAML": + +type ProjectsLocationsMembershipsRbacrolebindingsGenerateMembershipRBACRoleBindingYAMLCall struct { + s *Service + parent string + rbacrolebinding *RBACRoleBinding + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// GenerateMembershipRBACRoleBindingYAML: Generates a YAML of the RBAC +// policies for the specified RoleBinding and its associated +// impersonation resources. +// +// - parent: The parent (project and location) where the RBACRoleBinding +// will be created. Specified in the format +// `projects/*/locations/*/memberships/*`. +func (r *ProjectsLocationsMembershipsRbacrolebindingsService) GenerateMembershipRBACRoleBindingYAML(parent string, rbacrolebinding *RBACRoleBinding) *ProjectsLocationsMembershipsRbacrolebindingsGenerateMembershipRBACRoleBindingYAMLCall { + c := &ProjectsLocationsMembershipsRbacrolebindingsGenerateMembershipRBACRoleBindingYAMLCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.rbacrolebinding = rbacrolebinding + return c +} + +// RbacrolebindingId sets the optional parameter "rbacrolebindingId": +// Required. Client chosen ID for the RBACRoleBinding. +// `rbacrolebinding_id` must be a valid RFC 1123 compliant DNS label: 1. +// At most 63 characters in length 2. It must consist of lower case +// alphanumeric characters or `-` 3. It must start and end with an +// alphanumeric character Which can be expressed as the regex: +// `[a-z0-9]([-a-z0-9]*[a-z0-9])?`, with a maximum length of 63 +// characters. +func (c *ProjectsLocationsMembershipsRbacrolebindingsGenerateMembershipRBACRoleBindingYAMLCall) RbacrolebindingId(rbacrolebindingId string) *ProjectsLocationsMembershipsRbacrolebindingsGenerateMembershipRBACRoleBindingYAMLCall { + c.urlParams_.Set("rbacrolebindingId", rbacrolebindingId) + 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 *ProjectsLocationsMembershipsRbacrolebindingsGenerateMembershipRBACRoleBindingYAMLCall) Fields(s ...googleapi.Field) *ProjectsLocationsMembershipsRbacrolebindingsGenerateMembershipRBACRoleBindingYAMLCall { + 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 *ProjectsLocationsMembershipsRbacrolebindingsGenerateMembershipRBACRoleBindingYAMLCall) Context(ctx context.Context) *ProjectsLocationsMembershipsRbacrolebindingsGenerateMembershipRBACRoleBindingYAMLCall { + 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 *ProjectsLocationsMembershipsRbacrolebindingsGenerateMembershipRBACRoleBindingYAMLCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsMembershipsRbacrolebindingsGenerateMembershipRBACRoleBindingYAMLCall) 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.rbacrolebinding) + 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, "v1alpha/{+parent}/rbacrolebindings:generateMembershipRBACRoleBindingYAML") + 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 "gkehub.projects.locations.memberships.rbacrolebindings.generateMembershipRBACRoleBindingYAML" call. +// Exactly one of *GenerateMembershipRBACRoleBindingYAMLResponse or +// error will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GenerateMembershipRBACRoleBindingYAMLResponse.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 *ProjectsLocationsMembershipsRbacrolebindingsGenerateMembershipRBACRoleBindingYAMLCall) Do(opts ...googleapi.CallOption) (*GenerateMembershipRBACRoleBindingYAMLResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GenerateMembershipRBACRoleBindingYAMLResponse{ + 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": "Generates a YAML of the RBAC policies for the specified RoleBinding and its associated impersonation resources.", + // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/memberships/{membershipsId}/rbacrolebindings:generateMembershipRBACRoleBindingYAML", + // "httpMethod": "POST", + // "id": "gkehub.projects.locations.memberships.rbacrolebindings.generateMembershipRBACRoleBindingYAML", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "parent": { + // "description": "Required. The parent (project and location) where the RBACRoleBinding will be created. Specified in the format `projects/*/locations/*/memberships/*`.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/memberships/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "rbacrolebindingId": { + // "description": "Required. Client chosen ID for the RBACRoleBinding. `rbacrolebinding_id` must be a valid RFC 1123 compliant DNS label: 1. At most 63 characters in length 2. It must consist of lower case alphanumeric characters or `-` 3. It must start and end with an alphanumeric character Which can be expressed as the regex: `[a-z0-9]([-a-z0-9]*[a-z0-9])?`, with a maximum length of 63 characters.", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1alpha/{+parent}/rbacrolebindings:generateMembershipRBACRoleBindingYAML", + // "request": { + // "$ref": "RBACRoleBinding" + // }, + // "response": { + // "$ref": "GenerateMembershipRBACRoleBindingYAMLResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "gkehub.projects.locations.memberships.rbacrolebindings.get": + +type ProjectsLocationsMembershipsRbacrolebindingsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Returns the details of a Membership RBACRoleBinding. +// +// - name: The RBACRoleBinding resource name in the format +// `projects/*/locations/*/memberships/*/rbacrolebindings/*`. +func (r *ProjectsLocationsMembershipsRbacrolebindingsService) Get(name string) *ProjectsLocationsMembershipsRbacrolebindingsGetCall { + c := &ProjectsLocationsMembershipsRbacrolebindingsGetCall{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 *ProjectsLocationsMembershipsRbacrolebindingsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsMembershipsRbacrolebindingsGetCall { + 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 *ProjectsLocationsMembershipsRbacrolebindingsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsMembershipsRbacrolebindingsGetCall { + 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 *ProjectsLocationsMembershipsRbacrolebindingsGetCall) Context(ctx context.Context) *ProjectsLocationsMembershipsRbacrolebindingsGetCall { + 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 *ProjectsLocationsMembershipsRbacrolebindingsGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsMembershipsRbacrolebindingsGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+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 "gkehub.projects.locations.memberships.rbacrolebindings.get" call. +// Exactly one of *RBACRoleBinding or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *RBACRoleBinding.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 *ProjectsLocationsMembershipsRbacrolebindingsGetCall) Do(opts ...googleapi.CallOption) (*RBACRoleBinding, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &RBACRoleBinding{ + 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 details of a Membership RBACRoleBinding.", + // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/memberships/{membershipsId}/rbacrolebindings/{rbacrolebindingsId}", + // "httpMethod": "GET", + // "id": "gkehub.projects.locations.memberships.rbacrolebindings.get", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The RBACRoleBinding resource name in the format `projects/*/locations/*/memberships/*/rbacrolebindings/*`.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/memberships/[^/]+/rbacrolebindings/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1alpha/{+name}", + // "response": { + // "$ref": "RBACRoleBinding" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "gkehub.projects.locations.memberships.rbacrolebindings.list": + +type ProjectsLocationsMembershipsRbacrolebindingsListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists all Membership RBACRoleBindings. +// +// - parent: The parent (project and location) where the Features will +// be listed. Specified in the format +// `projects/*/locations/*/memberships/*`. +func (r *ProjectsLocationsMembershipsRbacrolebindingsService) List(parent string) *ProjectsLocationsMembershipsRbacrolebindingsListCall { + c := &ProjectsLocationsMembershipsRbacrolebindingsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// PageSize sets the optional parameter "pageSize": When requesting a +// 'page' of resources, `page_size` specifies number of resources to +// return. If unspecified or set to 0, all resources will be returned. +func (c *ProjectsLocationsMembershipsRbacrolebindingsListCall) PageSize(pageSize int64) *ProjectsLocationsMembershipsRbacrolebindingsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": Token returned by +// previous call to `ListMembershipRBACRoleBindings` which specifies the +// position in the list from where to continue listing the resources. +func (c *ProjectsLocationsMembershipsRbacrolebindingsListCall) PageToken(pageToken string) *ProjectsLocationsMembershipsRbacrolebindingsListCall { + 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 *ProjectsLocationsMembershipsRbacrolebindingsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsMembershipsRbacrolebindingsListCall { + 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 *ProjectsLocationsMembershipsRbacrolebindingsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsMembershipsRbacrolebindingsListCall { + 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 *ProjectsLocationsMembershipsRbacrolebindingsListCall) Context(ctx context.Context) *ProjectsLocationsMembershipsRbacrolebindingsListCall { + 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 *ProjectsLocationsMembershipsRbacrolebindingsListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsMembershipsRbacrolebindingsListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/rbacrolebindings") + 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 "gkehub.projects.locations.memberships.rbacrolebindings.list" call. +// Exactly one of *ListMembershipRBACRoleBindingsResponse or error will +// be non-nil. Any non-2xx status code is an error. Response headers are +// in either +// *ListMembershipRBACRoleBindingsResponse.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 *ProjectsLocationsMembershipsRbacrolebindingsListCall) Do(opts ...googleapi.CallOption) (*ListMembershipRBACRoleBindingsResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &ListMembershipRBACRoleBindingsResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Lists all Membership RBACRoleBindings.", + // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/memberships/{membershipsId}/rbacrolebindings", + // "httpMethod": "GET", + // "id": "gkehub.projects.locations.memberships.rbacrolebindings.list", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "pageSize": { + // "description": "Optional. When requesting a 'page' of resources, `page_size` specifies number of resources to return. If unspecified or set to 0, all resources will be returned.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "Optional. Token returned by previous call to `ListMembershipRBACRoleBindings` which specifies the position in the list from where to continue listing the resources.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "Required. The parent (project and location) where the Features will be listed. Specified in the format `projects/*/locations/*/memberships/*`.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/memberships/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1alpha/{+parent}/rbacrolebindings", + // "response": { + // "$ref": "ListMembershipRBACRoleBindingsResponse" + // }, + // "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 *ProjectsLocationsMembershipsRbacrolebindingsListCall) Pages(ctx context.Context, f func(*ListMembershipRBACRoleBindingsResponse) 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 "gkehub.projects.locations.memberships.rbacrolebindings.patch": + +type ProjectsLocationsMembershipsRbacrolebindingsPatchCall struct { + s *Service + name string + rbacrolebinding *RBACRoleBinding + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Patch: Updates a Membership RBACRoleBinding. +// +// - name: The resource name for the rbacrolebinding +// `projects/{project}/locations/{location}/namespaces/{namespace}/rbac +// rolebindings/{rbacrolebinding}` or +// `projects/{project}/locations/{location}/memberships/{membership}/rb +// acrolebindings/{rbacrolebinding}`. +func (r *ProjectsLocationsMembershipsRbacrolebindingsService) Patch(name string, rbacrolebinding *RBACRoleBinding) *ProjectsLocationsMembershipsRbacrolebindingsPatchCall { + c := &ProjectsLocationsMembershipsRbacrolebindingsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.rbacrolebinding = rbacrolebinding + return c +} + +// UpdateMask sets the optional parameter "updateMask": Required. The +// fields to be updated. +func (c *ProjectsLocationsMembershipsRbacrolebindingsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsMembershipsRbacrolebindingsPatchCall { + 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 *ProjectsLocationsMembershipsRbacrolebindingsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsMembershipsRbacrolebindingsPatchCall { + 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 *ProjectsLocationsMembershipsRbacrolebindingsPatchCall) Context(ctx context.Context) *ProjectsLocationsMembershipsRbacrolebindingsPatchCall { + 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 *ProjectsLocationsMembershipsRbacrolebindingsPatchCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsMembershipsRbacrolebindingsPatchCall) 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.rbacrolebinding) + 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, "v1alpha/{+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 "gkehub.projects.locations.memberships.rbacrolebindings.patch" call. +// Exactly one of *Operation or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified +// to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsMembershipsRbacrolebindingsPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &Operation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Updates a Membership RBACRoleBinding.", + // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/memberships/{membershipsId}/rbacrolebindings/{rbacrolebindingsId}", + // "httpMethod": "PATCH", + // "id": "gkehub.projects.locations.memberships.rbacrolebindings.patch", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "The resource name for the rbacrolebinding `projects/{project}/locations/{location}/namespaces/{namespace}/rbacrolebindings/{rbacrolebinding}` or `projects/{project}/locations/{location}/memberships/{membership}/rbacrolebindings/{rbacrolebinding}`", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/memberships/[^/]+/rbacrolebindings/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "updateMask": { + // "description": "Required. The fields to be updated.", + // "format": "google-fieldmask", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1alpha/{+name}", + // "request": { + // "$ref": "RBACRoleBinding" + // }, + // "response": { + // "$ref": "Operation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + // method id "gkehub.projects.locations.namespaces.create": type ProjectsLocationsNamespacesCreateCall struct { diff --git a/gkehub/v1beta/gkehub-api.json b/gkehub/v1beta/gkehub-api.json index 9dd35df068e..60eb05b57bb 100644 --- a/gkehub/v1beta/gkehub-api.json +++ b/gkehub/v1beta/gkehub-api.json @@ -903,6 +903,196 @@ ] } } + }, + "rbacrolebindings": { + "methods": { + "create": { + "description": "Creates a Membership RBACRoleBinding.", + "flatPath": "v1beta/projects/{projectsId}/locations/{locationsId}/memberships/{membershipsId}/rbacrolebindings", + "httpMethod": "POST", + "id": "gkehub.projects.locations.memberships.rbacrolebindings.create", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "Required. The parent (project and location) where the RBACRoleBinding will be created. Specified in the format `projects/*/locations/*/memberships/*`.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/memberships/[^/]+$", + "required": true, + "type": "string" + }, + "rbacrolebindingId": { + "description": "Required. Client chosen ID for the RBACRoleBinding. `rbacrolebinding_id` must be a valid RFC 1123 compliant DNS label: 1. At most 63 characters in length 2. It must consist of lower case alphanumeric characters or `-` 3. It must start and end with an alphanumeric character Which can be expressed as the regex: `[a-z0-9]([-a-z0-9]*[a-z0-9])?`, with a maximum length of 63 characters.", + "location": "query", + "type": "string" + } + }, + "path": "v1beta/{+parent}/rbacrolebindings", + "request": { + "$ref": "RBACRoleBinding" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "delete": { + "description": "Deletes a Membership RBACRoleBinding.", + "flatPath": "v1beta/projects/{projectsId}/locations/{locationsId}/memberships/{membershipsId}/rbacrolebindings/{rbacrolebindingsId}", + "httpMethod": "DELETE", + "id": "gkehub.projects.locations.memberships.rbacrolebindings.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The RBACRoleBinding resource name in the format `projects/*/locations/*/memberships/*/rbacrolebindings/*`.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/memberships/[^/]+/rbacrolebindings/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta/{+name}", + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "generateMembershipRBACRoleBindingYAML": { + "description": "Generates a YAML of the RBAC policies for the specified RoleBinding and its associated impersonation resources.", + "flatPath": "v1beta/projects/{projectsId}/locations/{locationsId}/memberships/{membershipsId}/rbacrolebindings:generateMembershipRBACRoleBindingYAML", + "httpMethod": "POST", + "id": "gkehub.projects.locations.memberships.rbacrolebindings.generateMembershipRBACRoleBindingYAML", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "Required. The parent (project and location) where the RBACRoleBinding will be created. Specified in the format `projects/*/locations/*/memberships/*`.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/memberships/[^/]+$", + "required": true, + "type": "string" + }, + "rbacrolebindingId": { + "description": "Required. Client chosen ID for the RBACRoleBinding. `rbacrolebinding_id` must be a valid RFC 1123 compliant DNS label: 1. At most 63 characters in length 2. It must consist of lower case alphanumeric characters or `-` 3. It must start and end with an alphanumeric character Which can be expressed as the regex: `[a-z0-9]([-a-z0-9]*[a-z0-9])?`, with a maximum length of 63 characters.", + "location": "query", + "type": "string" + } + }, + "path": "v1beta/{+parent}/rbacrolebindings:generateMembershipRBACRoleBindingYAML", + "request": { + "$ref": "RBACRoleBinding" + }, + "response": { + "$ref": "GenerateMembershipRBACRoleBindingYAMLResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "get": { + "description": "Returns the details of a Membership RBACRoleBinding.", + "flatPath": "v1beta/projects/{projectsId}/locations/{locationsId}/memberships/{membershipsId}/rbacrolebindings/{rbacrolebindingsId}", + "httpMethod": "GET", + "id": "gkehub.projects.locations.memberships.rbacrolebindings.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The RBACRoleBinding resource name in the format `projects/*/locations/*/memberships/*/rbacrolebindings/*`.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/memberships/[^/]+/rbacrolebindings/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta/{+name}", + "response": { + "$ref": "RBACRoleBinding" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Lists all Membership RBACRoleBindings.", + "flatPath": "v1beta/projects/{projectsId}/locations/{locationsId}/memberships/{membershipsId}/rbacrolebindings", + "httpMethod": "GET", + "id": "gkehub.projects.locations.memberships.rbacrolebindings.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "pageSize": { + "description": "Optional. When requesting a 'page' of resources, `page_size` specifies number of resources to return. If unspecified or set to 0, all resources will be returned.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "Optional. Token returned by previous call to `ListMembershipRBACRoleBindings` which specifies the position in the list from where to continue listing the resources.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The parent (project and location) where the Features will be listed. Specified in the format `projects/*/locations/*/memberships/*`.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/memberships/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta/{+parent}/rbacrolebindings", + "response": { + "$ref": "ListMembershipRBACRoleBindingsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "patch": { + "description": "Updates a Membership RBACRoleBinding.", + "flatPath": "v1beta/projects/{projectsId}/locations/{locationsId}/memberships/{membershipsId}/rbacrolebindings/{rbacrolebindingsId}", + "httpMethod": "PATCH", + "id": "gkehub.projects.locations.memberships.rbacrolebindings.patch", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The resource name for the rbacrolebinding `projects/{project}/locations/{location}/namespaces/{namespace}/rbacrolebindings/{rbacrolebinding}` or `projects/{project}/locations/{location}/memberships/{membership}/rbacrolebindings/{rbacrolebinding}`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/memberships/[^/]+/rbacrolebindings/[^/]+$", + "required": true, + "type": "string" + }, + "updateMask": { + "description": "Required. The fields to be updated.", + "format": "google-fieldmask", + "location": "query", + "type": "string" + } + }, + "path": "v1beta/{+name}", + "request": { + "$ref": "RBACRoleBinding" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } } } }, @@ -1594,7 +1784,7 @@ } } }, - "revision": "20230609", + "revision": "20230620", "rootUrl": "https://gkehub.googleapis.com/", "schemas": { "AnthosObservabilityFeatureSpec": { @@ -1828,23 +2018,20 @@ "id": "ConfigManagementConfigSync", "properties": { "allowVerticalScale": { + "deprecated": true, "description": "Set to true to allow the vertical scaling. Defaults to false which disallows vertical scaling. This field is deprecated.", "type": "boolean" }, "enabled": { - "description": "Enables the installation of ConfigSync. If set to true, ConfigSync resources will be created and the other ConfigSync fields will be applied if exist. If set to false and Managed Config Sync is disabled, all other ConfigSync fields will be ignored, ConfigSync resources will be deleted. Setting this field to false while enabling Managed Config Sync is invalid. If omitted, ConfigSync resources will be managed if: * the git or oci field is present; or * Managed Config Sync is enabled (i.e., managed.enabled is true).", + "description": "Enables the installation of ConfigSync. If set to true, ConfigSync resources will be created and the other ConfigSync fields will be applied if exist. If set to false, all other ConfigSync fields will be ignored, ConfigSync resources will be deleted. If omitted, ConfigSync resources will be managed depends on the presence of the git or oci field.", "type": "boolean" }, "git": { "$ref": "ConfigManagementGitConfig", "description": "Git repo configuration for the cluster." }, - "managed": { - "$ref": "ConfigManagementManaged", - "description": "Configuration for Managed Config Sync." - }, "metricsGcpServiceAccountEmail": { - "description": "The Email of the GCP Service Account (GSA) used for exporting Config Sync metrics to Cloud Monitoring and Cloud Monarch when Workload Identity is enabled. The GSA should have the Monitoring Metric Writer (roles/monitoring.metricWriter) IAM role. The Kubernetes ServiceAccount `default` in the namespace `config-management-monitoring` should be binded to the GSA. This field is required when Managed Config Sync is enabled.", + "description": "The Email of the Google Cloud Service Account (GSA) used for exporting Config Sync metrics to Cloud Monitoring and Cloud Monarch when Workload Identity is enabled. The GSA should have the Monitoring Metric Writer (roles/monitoring.metricWriter) IAM role. The Kubernetes ServiceAccount `default` in the namespace `config-management-monitoring` should be binded to the GSA. This field is required when automatic Feature management is enabled.", "type": "string" }, "oci": { @@ -1858,6 +2045,10 @@ "sourceFormat": { "description": "Specifies whether the Config Sync Repo is in \"hierarchical\" or \"unstructured\" mode.", "type": "string" + }, + "stopSyncing": { + "description": "Set to true to stop syncing configs for a single cluster when automatic Feature management is enabled. Default to false. The field will be ignored when automatic Feature management is disabled.", + "type": "boolean" } }, "type": "object" @@ -2136,7 +2327,7 @@ "id": "ConfigManagementGitConfig", "properties": { "gcpServiceAccountEmail": { - "description": "The GCP Service Account Email used for auth when secret_type is gcpServiceAccount.", + "description": "The Google Cloud Service Account Email used for auth when secret_type is gcpServiceAccount.", "type": "string" }, "httpsProxy": { @@ -2289,21 +2480,6 @@ }, "type": "object" }, - "ConfigManagementManaged": { - "description": "Configuration for Managed Config Sync.", - "id": "ConfigManagementManaged", - "properties": { - "enabled": { - "description": "Set to true to enable Managed Config Sync. Defaults to false which disables Managed Config Sync. Setting this field to true when configSync.enabled is false is invalid.", - "type": "boolean" - }, - "stopSyncing": { - "description": "Set to true to stop syncing configs for a single cluster. Default to false. If set to true, Managed Config Sync will not upgrade Config Sync.", - "type": "boolean" - } - }, - "type": "object" - }, "ConfigManagementMembershipSpec": { "description": "**Anthos Config Management**: Configuration for a single cluster. Intended to parallel the ConfigManagement CR.", "id": "ConfigManagementMembershipSpec", @@ -2324,6 +2500,20 @@ "$ref": "ConfigManagementHierarchyControllerConfig", "description": "Hierarchy Controller configuration for the cluster." }, + "management": { + "description": "Enables automatic Feature management.", + "enum": [ + "MANAGEMENT_UNSPECIFIED", + "MANAGEMENT_AUTOMATIC", + "MANAGEMENT_MANUAL" + ], + "enumDescriptions": [ + "Unspecified", + "Google will manage the Feature for the cluster.", + "User will manually manage the Feature for the cluster." + ], + "type": "string" + }, "policyController": { "$ref": "ConfigManagementPolicyController", "description": "Policy Controller configuration for the cluster." @@ -2375,7 +2565,7 @@ "id": "ConfigManagementOciConfig", "properties": { "gcpServiceAccountEmail": { - "description": "The GCP Service Account Email used for auth when secret_type is gcpServiceAccount.", + "description": "The Google Cloud Service Account Email used for auth when secret_type is gcpServiceAccount.", "type": "string" }, "policyDir": { @@ -2623,6 +2813,7 @@ "type": "string" }, "lastSync": { + "deprecated": true, "description": "Deprecated: use last_sync_time instead. Timestamp of when ACM last successfully synced the repo The time format is specified in https://golang.org/pkg/time/#Time.String", "type": "string" }, @@ -2950,6 +3141,17 @@ }, "type": "object" }, + "GenerateMembershipRBACRoleBindingYAMLResponse": { + "description": "Response for GenerateRBACRoleBindingYAML.", + "id": "GenerateMembershipRBACRoleBindingYAMLResponse", + "properties": { + "roleBindingsYaml": { + "description": "a yaml text blob including the RBAC policies.", + "type": "string" + } + }, + "type": "object" + }, "GoogleRpcStatus": { "description": "The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors).", "id": "GoogleRpcStatus", @@ -3228,6 +3430,24 @@ }, "type": "object" }, + "ListMembershipRBACRoleBindingsResponse": { + "description": "List of Membership RBACRoleBindings.", + "id": "ListMembershipRBACRoleBindingsResponse", + "properties": { + "nextPageToken": { + "description": "A token to request the next page of resources from the `ListMembershipRBACRoleBindings` method. The value of an empty string means that there are no more resources to return.", + "type": "string" + }, + "rbacrolebindings": { + "description": "The list of Membership RBACRoleBindings.", + "items": { + "$ref": "RBACRoleBinding" + }, + "type": "array" + } + }, + "type": "object" + }, "ListNamespacesResponse": { "description": "List of fleet namespaces.", "id": "ListNamespacesResponse", @@ -3423,10 +3643,6 @@ "$ref": "ConfigManagementMembershipSpec", "description": "Config Management-specific spec." }, - "fleetInherited": { - "description": "True if value of `feature_spec` was inherited from a fleet-level default.", - "type": "boolean" - }, "fleetobservability": { "$ref": "FleetObservabilityMembershipSpec", "description": "Fleet observability membership spec" @@ -3439,6 +3655,10 @@ "$ref": "ServiceMeshMembershipSpec", "description": "Anthos Service Mesh-specific spec" }, + "origin": { + "$ref": "Origin", + "description": "Whether this per-Membership spec was inherited from a fleet-level default. This field can be updated by users by either overriding a Membership config (updated to USER implicitly) or setting to FLEET explicitly." + }, "policycontroller": { "$ref": "PolicyControllerMembershipSpec", "description": "Policy Controller spec." @@ -3532,6 +3752,7 @@ "id": "MultiClusterIngressFeatureSpec", "properties": { "billing": { + "deprecated": true, "description": "Deprecated: This field will be ignored and should not be set. Customer's billing structure.", "enum": [ "BILLING_UNSPECIFIED", @@ -3700,6 +3921,27 @@ }, "type": "object" }, + "Origin": { + "description": "Origin defines where this MembershipFeatureSpec originated from.", + "id": "Origin", + "properties": { + "type": { + "description": "Type specifies which type of origin is set.", + "enum": [ + "TYPE_UNSPECIFIED", + "FLEET", + "USER" + ], + "enumDescriptions": [ + "Type is unknown or not set.", + "Per-Membership spec was inherited from the fleet-level default.", + "Per-Membership spec was inherited from a user specification." + ], + "type": "string" + } + }, + "type": "object" + }, "Policy": { "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": "Policy", @@ -4187,13 +4429,15 @@ "UNKNOWN", "ADMIN", "EDIT", - "VIEW" + "VIEW", + "ANTHOS_SUPPORT" ], "enumDescriptions": [ "UNKNOWN", "ADMIN has EDIT and RBAC permissions", "EDIT can edit all resources except RBAC", - "VIEW can only read resources" + "VIEW can only read resources", + "ANTHOS_SUPPORT gives Google Support read-only access to a number of cluster resources." ], "type": "string" } @@ -4368,6 +4612,7 @@ "id": "ServiceMeshMembershipSpec", "properties": { "controlPlane": { + "deprecated": true, "description": "Deprecated: use `management` instead Enables automatic control plane management.", "enum": [ "CONTROL_PLANE_MANAGEMENT_UNSPECIFIED", diff --git a/gkehub/v1beta/gkehub-gen.go b/gkehub/v1beta/gkehub-gen.go index c837792351d..46d62a3e952 100644 --- a/gkehub/v1beta/gkehub-gen.go +++ b/gkehub/v1beta/gkehub-gen.go @@ -234,6 +234,7 @@ type ProjectsLocationsFleetsService struct { func NewProjectsLocationsMembershipsService(s *Service) *ProjectsLocationsMembershipsService { rs := &ProjectsLocationsMembershipsService{s: s} rs.Bindings = NewProjectsLocationsMembershipsBindingsService(s) + rs.Rbacrolebindings = NewProjectsLocationsMembershipsRbacrolebindingsService(s) return rs } @@ -241,6 +242,8 @@ type ProjectsLocationsMembershipsService struct { s *Service Bindings *ProjectsLocationsMembershipsBindingsService + + Rbacrolebindings *ProjectsLocationsMembershipsRbacrolebindingsService } func NewProjectsLocationsMembershipsBindingsService(s *Service) *ProjectsLocationsMembershipsBindingsService { @@ -252,6 +255,15 @@ type ProjectsLocationsMembershipsBindingsService struct { s *Service } +func NewProjectsLocationsMembershipsRbacrolebindingsService(s *Service) *ProjectsLocationsMembershipsRbacrolebindingsService { + rs := &ProjectsLocationsMembershipsRbacrolebindingsService{s: s} + return rs +} + +type ProjectsLocationsMembershipsRbacrolebindingsService struct { + s *Service +} + func NewProjectsLocationsNamespacesService(s *Service) *ProjectsLocationsNamespacesService { rs := &ProjectsLocationsNamespacesService{s: s} rs.Rbacrolebindings = NewProjectsLocationsNamespacesRbacrolebindingsService(s) @@ -787,27 +799,23 @@ type ConfigManagementConfigSync struct { // Enabled: Enables the installation of ConfigSync. If set to true, // ConfigSync resources will be created and the other ConfigSync fields - // will be applied if exist. If set to false and Managed Config Sync is - // disabled, all other ConfigSync fields will be ignored, ConfigSync - // resources will be deleted. Setting this field to false while enabling - // Managed Config Sync is invalid. If omitted, ConfigSync resources will - // be managed if: * the git or oci field is present; or * Managed Config - // Sync is enabled (i.e., managed.enabled is true). + // will be applied if exist. If set to false, all other ConfigSync + // fields will be ignored, ConfigSync resources will be deleted. If + // omitted, ConfigSync resources will be managed depends on the presence + // of the git or oci field. Enabled bool `json:"enabled,omitempty"` // Git: Git repo configuration for the cluster. Git *ConfigManagementGitConfig `json:"git,omitempty"` - // Managed: Configuration for Managed Config Sync. - Managed *ConfigManagementManaged `json:"managed,omitempty"` - - // MetricsGcpServiceAccountEmail: The Email of the GCP Service Account - // (GSA) used for exporting Config Sync metrics to Cloud Monitoring and - // Cloud Monarch when Workload Identity is enabled. The GSA should have - // the Monitoring Metric Writer (roles/monitoring.metricWriter) IAM - // role. The Kubernetes ServiceAccount `default` in the namespace + // MetricsGcpServiceAccountEmail: The Email of the Google Cloud Service + // Account (GSA) used for exporting Config Sync metrics to Cloud + // Monitoring and Cloud Monarch when Workload Identity is enabled. The + // GSA should have the Monitoring Metric Writer + // (roles/monitoring.metricWriter) IAM role. The Kubernetes + // ServiceAccount `default` in the namespace // `config-management-monitoring` should be binded to the GSA. This - // field is required when Managed Config Sync is enabled. + // field is required when automatic Feature management is enabled. MetricsGcpServiceAccountEmail string `json:"metricsGcpServiceAccountEmail,omitempty"` // Oci: OCI repo configuration for the cluster @@ -822,6 +830,11 @@ type ConfigManagementConfigSync struct { // "hierarchical" or "unstructured" mode. SourceFormat string `json:"sourceFormat,omitempty"` + // StopSyncing: Set to true to stop syncing configs for a single cluster + // when automatic Feature management is enabled. Default to false. The + // field will be ignored when automatic Feature management is disabled. + StopSyncing bool `json:"stopSyncing,omitempty"` + // ForceSendFields is a list of field names (e.g. "AllowVerticalScale") // to unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any @@ -1161,8 +1174,8 @@ func (s *ConfigManagementGatekeeperDeploymentState) MarshalJSON() ([]byte, error // ConfigManagementGitConfig: Git repo configuration for a single // cluster. type ConfigManagementGitConfig struct { - // GcpServiceAccountEmail: The GCP Service Account Email used for auth - // when secret_type is gcpServiceAccount. + // GcpServiceAccountEmail: The Google Cloud Service Account Email used + // for auth when secret_type is gcpServiceAccount. GcpServiceAccountEmail string `json:"gcpServiceAccountEmail,omitempty"` // HttpsProxy: URL for the HTTPS proxy to be used when communicating @@ -1432,41 +1445,6 @@ func (s *ConfigManagementInstallError) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// ConfigManagementManaged: Configuration for Managed Config Sync. -type ConfigManagementManaged struct { - // Enabled: Set to true to enable Managed Config Sync. Defaults to false - // which disables Managed Config Sync. Setting this field to true when - // configSync.enabled is false is invalid. - Enabled bool `json:"enabled,omitempty"` - - // StopSyncing: Set to true to stop syncing configs for a single - // cluster. Default to false. If set to true, Managed Config Sync will - // not upgrade Config Sync. - StopSyncing bool `json:"stopSyncing,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 *ConfigManagementManaged) MarshalJSON() ([]byte, error) { - type NoMethod ConfigManagementManaged - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - // ConfigManagementMembershipSpec: **Anthos Config Management**: // Configuration for a single cluster. Intended to parallel the // ConfigManagement CR. @@ -1490,6 +1468,16 @@ type ConfigManagementMembershipSpec struct { // cluster. HierarchyController *ConfigManagementHierarchyControllerConfig `json:"hierarchyController,omitempty"` + // Management: Enables automatic Feature management. + // + // Possible values: + // "MANAGEMENT_UNSPECIFIED" - Unspecified + // "MANAGEMENT_AUTOMATIC" - Google will manage the Feature for the + // cluster. + // "MANAGEMENT_MANUAL" - User will manually manage the Feature for the + // cluster. + Management string `json:"management,omitempty"` + // PolicyController: Policy Controller configuration for the cluster. PolicyController *ConfigManagementPolicyController `json:"policyController,omitempty"` @@ -1573,8 +1561,8 @@ func (s *ConfigManagementMembershipState) MarshalJSON() ([]byte, error) { // ConfigManagementOciConfig: OCI repo configuration for a single // cluster type ConfigManagementOciConfig struct { - // GcpServiceAccountEmail: The GCP Service Account Email used for auth - // when secret_type is gcpServiceAccount. + // GcpServiceAccountEmail: The Google Cloud Service Account Email used + // for auth when secret_type is gcpServiceAccount. GcpServiceAccountEmail string `json:"gcpServiceAccountEmail,omitempty"` // PolicyDir: The absolute path of the directory that contains the local @@ -2450,6 +2438,40 @@ func (s *FleetObservabilityRoutingConfig) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GenerateMembershipRBACRoleBindingYAMLResponse: Response for +// GenerateRBACRoleBindingYAML. +type GenerateMembershipRBACRoleBindingYAMLResponse struct { + // RoleBindingsYaml: a yaml text blob including the RBAC policies. + RoleBindingsYaml string `json:"roleBindingsYaml,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "RoleBindingsYaml") 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. "RoleBindingsYaml") 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 *GenerateMembershipRBACRoleBindingYAMLResponse) MarshalJSON() ([]byte, error) { + type NoMethod GenerateMembershipRBACRoleBindingYAMLResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleRpcStatus: The `Status` type defines a logical error model that // is suitable for different programming environments, including REST // APIs and RPC APIs. It is used by gRPC (https://github.com/grpc). Each @@ -2909,6 +2931,44 @@ func (s *ListMembershipBindingsResponse) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// ListMembershipRBACRoleBindingsResponse: List of Membership +// RBACRoleBindings. +type ListMembershipRBACRoleBindingsResponse struct { + // NextPageToken: A token to request the next page of resources from the + // `ListMembershipRBACRoleBindings` method. The value of an empty string + // means that there are no more resources to return. + NextPageToken string `json:"nextPageToken,omitempty"` + + // Rbacrolebindings: The list of Membership RBACRoleBindings. + Rbacrolebindings []*RBACRoleBinding `json:"rbacrolebindings,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 *ListMembershipRBACRoleBindingsResponse) MarshalJSON() ([]byte, error) { + type NoMethod ListMembershipRBACRoleBindingsResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // ListNamespacesResponse: List of fleet namespaces. type ListNamespacesResponse struct { // Namespaces: The list of fleet namespaces @@ -3221,10 +3281,6 @@ type MembershipFeatureSpec struct { // Configmanagement: Config Management-specific spec. Configmanagement *ConfigManagementMembershipSpec `json:"configmanagement,omitempty"` - // FleetInherited: True if value of `feature_spec` was inherited from a - // fleet-level default. - FleetInherited bool `json:"fleetInherited,omitempty"` - // Fleetobservability: Fleet observability membership spec Fleetobservability *FleetObservabilityMembershipSpec `json:"fleetobservability,omitempty"` @@ -3234,6 +3290,12 @@ type MembershipFeatureSpec struct { // Mesh: Anthos Service Mesh-specific spec Mesh *ServiceMeshMembershipSpec `json:"mesh,omitempty"` + // Origin: Whether this per-Membership spec was inherited from a + // fleet-level default. This field can be updated by users by either + // overriding a Membership config (updated to USER implicitly) or + // setting to FLEET explicitly. + Origin *Origin `json:"origin,omitempty"` + // Policycontroller: Policy Controller spec. Policycontroller *PolicyControllerMembershipSpec `json:"policycontroller,omitempty"` @@ -3643,6 +3705,42 @@ func (s *OperationMetadata) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// Origin: Origin defines where this MembershipFeatureSpec originated +// from. +type Origin struct { + // Type: Type specifies which type of origin is set. + // + // Possible values: + // "TYPE_UNSPECIFIED" - Type is unknown or not set. + // "FLEET" - Per-Membership spec was inherited from the fleet-level + // default. + // "USER" - Per-Membership spec was inherited from a user + // specification. + Type string `json:"type,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Type") 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. "Type") 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 *Origin) MarshalJSON() ([]byte, error) { + type NoMethod Origin + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // Policy: 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 @@ -4467,6 +4565,8 @@ type Role struct { // "ADMIN" - ADMIN has EDIT and RBAC permissions // "EDIT" - EDIT can edit all resources except RBAC // "VIEW" - VIEW can only read resources + // "ANTHOS_SUPPORT" - ANTHOS_SUPPORT gives Google Support read-only + // access to a number of cluster resources. PredefinedRole string `json:"predefinedRole,omitempty"` // ForceSendFields is a list of field names (e.g. "PredefinedRole") to @@ -8954,6 +9054,970 @@ func (c *ProjectsLocationsMembershipsBindingsPatchCall) Do(opts ...googleapi.Cal } +// method id "gkehub.projects.locations.memberships.rbacrolebindings.create": + +type ProjectsLocationsMembershipsRbacrolebindingsCreateCall struct { + s *Service + parent string + rbacrolebinding *RBACRoleBinding + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Create: Creates a Membership RBACRoleBinding. +// +// - parent: The parent (project and location) where the RBACRoleBinding +// will be created. Specified in the format +// `projects/*/locations/*/memberships/*`. +func (r *ProjectsLocationsMembershipsRbacrolebindingsService) Create(parent string, rbacrolebinding *RBACRoleBinding) *ProjectsLocationsMembershipsRbacrolebindingsCreateCall { + c := &ProjectsLocationsMembershipsRbacrolebindingsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.rbacrolebinding = rbacrolebinding + return c +} + +// RbacrolebindingId sets the optional parameter "rbacrolebindingId": +// Required. Client chosen ID for the RBACRoleBinding. +// `rbacrolebinding_id` must be a valid RFC 1123 compliant DNS label: 1. +// At most 63 characters in length 2. It must consist of lower case +// alphanumeric characters or `-` 3. It must start and end with an +// alphanumeric character Which can be expressed as the regex: +// `[a-z0-9]([-a-z0-9]*[a-z0-9])?`, with a maximum length of 63 +// characters. +func (c *ProjectsLocationsMembershipsRbacrolebindingsCreateCall) RbacrolebindingId(rbacrolebindingId string) *ProjectsLocationsMembershipsRbacrolebindingsCreateCall { + c.urlParams_.Set("rbacrolebindingId", rbacrolebindingId) + 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 *ProjectsLocationsMembershipsRbacrolebindingsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsMembershipsRbacrolebindingsCreateCall { + 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 *ProjectsLocationsMembershipsRbacrolebindingsCreateCall) Context(ctx context.Context) *ProjectsLocationsMembershipsRbacrolebindingsCreateCall { + 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 *ProjectsLocationsMembershipsRbacrolebindingsCreateCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsMembershipsRbacrolebindingsCreateCall) 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.rbacrolebinding) + 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, "v1beta/{+parent}/rbacrolebindings") + 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 "gkehub.projects.locations.memberships.rbacrolebindings.create" call. +// Exactly one of *Operation or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified +// to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsMembershipsRbacrolebindingsCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &Operation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Creates a Membership RBACRoleBinding.", + // "flatPath": "v1beta/projects/{projectsId}/locations/{locationsId}/memberships/{membershipsId}/rbacrolebindings", + // "httpMethod": "POST", + // "id": "gkehub.projects.locations.memberships.rbacrolebindings.create", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "parent": { + // "description": "Required. The parent (project and location) where the RBACRoleBinding will be created. Specified in the format `projects/*/locations/*/memberships/*`.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/memberships/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "rbacrolebindingId": { + // "description": "Required. Client chosen ID for the RBACRoleBinding. `rbacrolebinding_id` must be a valid RFC 1123 compliant DNS label: 1. At most 63 characters in length 2. It must consist of lower case alphanumeric characters or `-` 3. It must start and end with an alphanumeric character Which can be expressed as the regex: `[a-z0-9]([-a-z0-9]*[a-z0-9])?`, with a maximum length of 63 characters.", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1beta/{+parent}/rbacrolebindings", + // "request": { + // "$ref": "RBACRoleBinding" + // }, + // "response": { + // "$ref": "Operation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "gkehub.projects.locations.memberships.rbacrolebindings.delete": + +type ProjectsLocationsMembershipsRbacrolebindingsDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Delete: Deletes a Membership RBACRoleBinding. +// +// - name: The RBACRoleBinding resource name in the format +// `projects/*/locations/*/memberships/*/rbacrolebindings/*`. +func (r *ProjectsLocationsMembershipsRbacrolebindingsService) Delete(name string) *ProjectsLocationsMembershipsRbacrolebindingsDeleteCall { + c := &ProjectsLocationsMembershipsRbacrolebindingsDeleteCall{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 *ProjectsLocationsMembershipsRbacrolebindingsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsMembershipsRbacrolebindingsDeleteCall { + 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 *ProjectsLocationsMembershipsRbacrolebindingsDeleteCall) Context(ctx context.Context) *ProjectsLocationsMembershipsRbacrolebindingsDeleteCall { + 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 *ProjectsLocationsMembershipsRbacrolebindingsDeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsMembershipsRbacrolebindingsDeleteCall) 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, "v1beta/{+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 "gkehub.projects.locations.memberships.rbacrolebindings.delete" call. +// Exactly one of *Operation or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified +// to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsMembershipsRbacrolebindingsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &Operation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Deletes a Membership RBACRoleBinding.", + // "flatPath": "v1beta/projects/{projectsId}/locations/{locationsId}/memberships/{membershipsId}/rbacrolebindings/{rbacrolebindingsId}", + // "httpMethod": "DELETE", + // "id": "gkehub.projects.locations.memberships.rbacrolebindings.delete", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The RBACRoleBinding resource name in the format `projects/*/locations/*/memberships/*/rbacrolebindings/*`.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/memberships/[^/]+/rbacrolebindings/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta/{+name}", + // "response": { + // "$ref": "Operation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "gkehub.projects.locations.memberships.rbacrolebindings.generateMembershipRBACRoleBindingYAML": + +type ProjectsLocationsMembershipsRbacrolebindingsGenerateMembershipRBACRoleBindingYAMLCall struct { + s *Service + parent string + rbacrolebinding *RBACRoleBinding + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// GenerateMembershipRBACRoleBindingYAML: Generates a YAML of the RBAC +// policies for the specified RoleBinding and its associated +// impersonation resources. +// +// - parent: The parent (project and location) where the RBACRoleBinding +// will be created. Specified in the format +// `projects/*/locations/*/memberships/*`. +func (r *ProjectsLocationsMembershipsRbacrolebindingsService) GenerateMembershipRBACRoleBindingYAML(parent string, rbacrolebinding *RBACRoleBinding) *ProjectsLocationsMembershipsRbacrolebindingsGenerateMembershipRBACRoleBindingYAMLCall { + c := &ProjectsLocationsMembershipsRbacrolebindingsGenerateMembershipRBACRoleBindingYAMLCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.rbacrolebinding = rbacrolebinding + return c +} + +// RbacrolebindingId sets the optional parameter "rbacrolebindingId": +// Required. Client chosen ID for the RBACRoleBinding. +// `rbacrolebinding_id` must be a valid RFC 1123 compliant DNS label: 1. +// At most 63 characters in length 2. It must consist of lower case +// alphanumeric characters or `-` 3. It must start and end with an +// alphanumeric character Which can be expressed as the regex: +// `[a-z0-9]([-a-z0-9]*[a-z0-9])?`, with a maximum length of 63 +// characters. +func (c *ProjectsLocationsMembershipsRbacrolebindingsGenerateMembershipRBACRoleBindingYAMLCall) RbacrolebindingId(rbacrolebindingId string) *ProjectsLocationsMembershipsRbacrolebindingsGenerateMembershipRBACRoleBindingYAMLCall { + c.urlParams_.Set("rbacrolebindingId", rbacrolebindingId) + 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 *ProjectsLocationsMembershipsRbacrolebindingsGenerateMembershipRBACRoleBindingYAMLCall) Fields(s ...googleapi.Field) *ProjectsLocationsMembershipsRbacrolebindingsGenerateMembershipRBACRoleBindingYAMLCall { + 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 *ProjectsLocationsMembershipsRbacrolebindingsGenerateMembershipRBACRoleBindingYAMLCall) Context(ctx context.Context) *ProjectsLocationsMembershipsRbacrolebindingsGenerateMembershipRBACRoleBindingYAMLCall { + 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 *ProjectsLocationsMembershipsRbacrolebindingsGenerateMembershipRBACRoleBindingYAMLCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsMembershipsRbacrolebindingsGenerateMembershipRBACRoleBindingYAMLCall) 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.rbacrolebinding) + 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, "v1beta/{+parent}/rbacrolebindings:generateMembershipRBACRoleBindingYAML") + 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 "gkehub.projects.locations.memberships.rbacrolebindings.generateMembershipRBACRoleBindingYAML" call. +// Exactly one of *GenerateMembershipRBACRoleBindingYAMLResponse or +// error will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GenerateMembershipRBACRoleBindingYAMLResponse.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 *ProjectsLocationsMembershipsRbacrolebindingsGenerateMembershipRBACRoleBindingYAMLCall) Do(opts ...googleapi.CallOption) (*GenerateMembershipRBACRoleBindingYAMLResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GenerateMembershipRBACRoleBindingYAMLResponse{ + 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": "Generates a YAML of the RBAC policies for the specified RoleBinding and its associated impersonation resources.", + // "flatPath": "v1beta/projects/{projectsId}/locations/{locationsId}/memberships/{membershipsId}/rbacrolebindings:generateMembershipRBACRoleBindingYAML", + // "httpMethod": "POST", + // "id": "gkehub.projects.locations.memberships.rbacrolebindings.generateMembershipRBACRoleBindingYAML", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "parent": { + // "description": "Required. The parent (project and location) where the RBACRoleBinding will be created. Specified in the format `projects/*/locations/*/memberships/*`.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/memberships/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "rbacrolebindingId": { + // "description": "Required. Client chosen ID for the RBACRoleBinding. `rbacrolebinding_id` must be a valid RFC 1123 compliant DNS label: 1. At most 63 characters in length 2. It must consist of lower case alphanumeric characters or `-` 3. It must start and end with an alphanumeric character Which can be expressed as the regex: `[a-z0-9]([-a-z0-9]*[a-z0-9])?`, with a maximum length of 63 characters.", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1beta/{+parent}/rbacrolebindings:generateMembershipRBACRoleBindingYAML", + // "request": { + // "$ref": "RBACRoleBinding" + // }, + // "response": { + // "$ref": "GenerateMembershipRBACRoleBindingYAMLResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "gkehub.projects.locations.memberships.rbacrolebindings.get": + +type ProjectsLocationsMembershipsRbacrolebindingsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Returns the details of a Membership RBACRoleBinding. +// +// - name: The RBACRoleBinding resource name in the format +// `projects/*/locations/*/memberships/*/rbacrolebindings/*`. +func (r *ProjectsLocationsMembershipsRbacrolebindingsService) Get(name string) *ProjectsLocationsMembershipsRbacrolebindingsGetCall { + c := &ProjectsLocationsMembershipsRbacrolebindingsGetCall{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 *ProjectsLocationsMembershipsRbacrolebindingsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsMembershipsRbacrolebindingsGetCall { + 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 *ProjectsLocationsMembershipsRbacrolebindingsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsMembershipsRbacrolebindingsGetCall { + 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 *ProjectsLocationsMembershipsRbacrolebindingsGetCall) Context(ctx context.Context) *ProjectsLocationsMembershipsRbacrolebindingsGetCall { + 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 *ProjectsLocationsMembershipsRbacrolebindingsGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsMembershipsRbacrolebindingsGetCall) 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, "v1beta/{+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 "gkehub.projects.locations.memberships.rbacrolebindings.get" call. +// Exactly one of *RBACRoleBinding or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *RBACRoleBinding.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 *ProjectsLocationsMembershipsRbacrolebindingsGetCall) Do(opts ...googleapi.CallOption) (*RBACRoleBinding, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &RBACRoleBinding{ + 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 details of a Membership RBACRoleBinding.", + // "flatPath": "v1beta/projects/{projectsId}/locations/{locationsId}/memberships/{membershipsId}/rbacrolebindings/{rbacrolebindingsId}", + // "httpMethod": "GET", + // "id": "gkehub.projects.locations.memberships.rbacrolebindings.get", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The RBACRoleBinding resource name in the format `projects/*/locations/*/memberships/*/rbacrolebindings/*`.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/memberships/[^/]+/rbacrolebindings/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta/{+name}", + // "response": { + // "$ref": "RBACRoleBinding" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "gkehub.projects.locations.memberships.rbacrolebindings.list": + +type ProjectsLocationsMembershipsRbacrolebindingsListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists all Membership RBACRoleBindings. +// +// - parent: The parent (project and location) where the Features will +// be listed. Specified in the format +// `projects/*/locations/*/memberships/*`. +func (r *ProjectsLocationsMembershipsRbacrolebindingsService) List(parent string) *ProjectsLocationsMembershipsRbacrolebindingsListCall { + c := &ProjectsLocationsMembershipsRbacrolebindingsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// PageSize sets the optional parameter "pageSize": When requesting a +// 'page' of resources, `page_size` specifies number of resources to +// return. If unspecified or set to 0, all resources will be returned. +func (c *ProjectsLocationsMembershipsRbacrolebindingsListCall) PageSize(pageSize int64) *ProjectsLocationsMembershipsRbacrolebindingsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": Token returned by +// previous call to `ListMembershipRBACRoleBindings` which specifies the +// position in the list from where to continue listing the resources. +func (c *ProjectsLocationsMembershipsRbacrolebindingsListCall) PageToken(pageToken string) *ProjectsLocationsMembershipsRbacrolebindingsListCall { + 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 *ProjectsLocationsMembershipsRbacrolebindingsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsMembershipsRbacrolebindingsListCall { + 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 *ProjectsLocationsMembershipsRbacrolebindingsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsMembershipsRbacrolebindingsListCall { + 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 *ProjectsLocationsMembershipsRbacrolebindingsListCall) Context(ctx context.Context) *ProjectsLocationsMembershipsRbacrolebindingsListCall { + 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 *ProjectsLocationsMembershipsRbacrolebindingsListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsMembershipsRbacrolebindingsListCall) 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, "v1beta/{+parent}/rbacrolebindings") + 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 "gkehub.projects.locations.memberships.rbacrolebindings.list" call. +// Exactly one of *ListMembershipRBACRoleBindingsResponse or error will +// be non-nil. Any non-2xx status code is an error. Response headers are +// in either +// *ListMembershipRBACRoleBindingsResponse.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 *ProjectsLocationsMembershipsRbacrolebindingsListCall) Do(opts ...googleapi.CallOption) (*ListMembershipRBACRoleBindingsResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &ListMembershipRBACRoleBindingsResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Lists all Membership RBACRoleBindings.", + // "flatPath": "v1beta/projects/{projectsId}/locations/{locationsId}/memberships/{membershipsId}/rbacrolebindings", + // "httpMethod": "GET", + // "id": "gkehub.projects.locations.memberships.rbacrolebindings.list", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "pageSize": { + // "description": "Optional. When requesting a 'page' of resources, `page_size` specifies number of resources to return. If unspecified or set to 0, all resources will be returned.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "Optional. Token returned by previous call to `ListMembershipRBACRoleBindings` which specifies the position in the list from where to continue listing the resources.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "Required. The parent (project and location) where the Features will be listed. Specified in the format `projects/*/locations/*/memberships/*`.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/memberships/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta/{+parent}/rbacrolebindings", + // "response": { + // "$ref": "ListMembershipRBACRoleBindingsResponse" + // }, + // "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 *ProjectsLocationsMembershipsRbacrolebindingsListCall) Pages(ctx context.Context, f func(*ListMembershipRBACRoleBindingsResponse) 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 "gkehub.projects.locations.memberships.rbacrolebindings.patch": + +type ProjectsLocationsMembershipsRbacrolebindingsPatchCall struct { + s *Service + name string + rbacrolebinding *RBACRoleBinding + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Patch: Updates a Membership RBACRoleBinding. +// +// - name: The resource name for the rbacrolebinding +// `projects/{project}/locations/{location}/namespaces/{namespace}/rbac +// rolebindings/{rbacrolebinding}` or +// `projects/{project}/locations/{location}/memberships/{membership}/rb +// acrolebindings/{rbacrolebinding}`. +func (r *ProjectsLocationsMembershipsRbacrolebindingsService) Patch(name string, rbacrolebinding *RBACRoleBinding) *ProjectsLocationsMembershipsRbacrolebindingsPatchCall { + c := &ProjectsLocationsMembershipsRbacrolebindingsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.rbacrolebinding = rbacrolebinding + return c +} + +// UpdateMask sets the optional parameter "updateMask": Required. The +// fields to be updated. +func (c *ProjectsLocationsMembershipsRbacrolebindingsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsMembershipsRbacrolebindingsPatchCall { + 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 *ProjectsLocationsMembershipsRbacrolebindingsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsMembershipsRbacrolebindingsPatchCall { + 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 *ProjectsLocationsMembershipsRbacrolebindingsPatchCall) Context(ctx context.Context) *ProjectsLocationsMembershipsRbacrolebindingsPatchCall { + 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 *ProjectsLocationsMembershipsRbacrolebindingsPatchCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsMembershipsRbacrolebindingsPatchCall) 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.rbacrolebinding) + 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, "v1beta/{+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 "gkehub.projects.locations.memberships.rbacrolebindings.patch" call. +// Exactly one of *Operation or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified +// to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsMembershipsRbacrolebindingsPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &Operation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Updates a Membership RBACRoleBinding.", + // "flatPath": "v1beta/projects/{projectsId}/locations/{locationsId}/memberships/{membershipsId}/rbacrolebindings/{rbacrolebindingsId}", + // "httpMethod": "PATCH", + // "id": "gkehub.projects.locations.memberships.rbacrolebindings.patch", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "The resource name for the rbacrolebinding `projects/{project}/locations/{location}/namespaces/{namespace}/rbacrolebindings/{rbacrolebinding}` or `projects/{project}/locations/{location}/memberships/{membership}/rbacrolebindings/{rbacrolebinding}`", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/memberships/[^/]+/rbacrolebindings/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "updateMask": { + // "description": "Required. The fields to be updated.", + // "format": "google-fieldmask", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1beta/{+name}", + // "request": { + // "$ref": "RBACRoleBinding" + // }, + // "response": { + // "$ref": "Operation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + // method id "gkehub.projects.locations.namespaces.create": type ProjectsLocationsNamespacesCreateCall struct { diff --git a/gkehub/v1beta1/gkehub-api.json b/gkehub/v1beta1/gkehub-api.json index 5734d232cf9..f38b617a82a 100644 --- a/gkehub/v1beta1/gkehub-api.json +++ b/gkehub/v1beta1/gkehub-api.json @@ -712,7 +712,7 @@ } } }, - "revision": "20230515", + "revision": "20230620", "rootUrl": "https://gkehub.googleapis.com/", "schemas": { "ApplianceCluster": { @@ -1271,10 +1271,12 @@ "type": "string" }, "description": { + "deprecated": true, "description": "This field is never set by the Hub Service.", "type": "string" }, "updateTime": { + "deprecated": true, "description": "This field is never set by the Hub Service.", "format": "google-datetime", "type": "string" diff --git a/gkeonprem/v1/gkeonprem-api.json b/gkeonprem/v1/gkeonprem-api.json index d5b60966d8a..5ff2082a8ad 100644 --- a/gkeonprem/v1/gkeonprem-api.json +++ b/gkeonprem/v1/gkeonprem-api.json @@ -2996,7 +2996,7 @@ } } }, - "revision": "20230607", + "revision": "20230620", "rootUrl": "https://gkeonprem.googleapis.com/", "schemas": { "Authorization": { @@ -4385,7 +4385,7 @@ "id": "EnrollBareMetalAdminClusterRequest", "properties": { "bareMetalAdminClusterId": { - "description": "User provided OnePlatform identifier that is used as part of the resource name. This must be unique among all GKE on-prem clusters within a project and location and will return a 409 if the cluster already exists. This value must be up to 40 characters and follow RFC-1123 (https://tools.ietf.org/html/rfc1123) format.", + "description": "User provided OnePlatform identifier that is used as part of the resource name. This must be unique among all GKE on-prem clusters within a project and location and will return a 409 if the cluster already exists. (https://tools.ietf.org/html/rfc1123) format.", "type": "string" }, "membership": { @@ -4404,11 +4404,11 @@ "type": "string" }, "bareMetalClusterId": { - "description": "User provided OnePlatform identifier that is used as part of the resource name. This must be unique among all bare metal clusters within a project and location and will return a 409 if the cluster already exists. This value must be up to 40 characters and follow RFC-1123 (https://tools.ietf.org/html/rfc1123) format.", + "description": "User provided OnePlatform identifier that is used as part of the resource name. This must be unique among all bare metal clusters within a project and location and will return a 409 if the cluster already exists. (https://tools.ietf.org/html/rfc1123) format.", "type": "string" }, "localName": { - "description": "The object name of the bare metal cluster custom resource on the associated admin cluster. This field is used to support conflicting resource names when enrolling existing clusters to the API. When not provided, this field will resolve to the bare_metal_cluster_id. Otherwise, it must match the object name of the bare metal cluster custom resource. It is not modifiable outside / beyond the enrollment operation.", + "description": "Optional. The object name of the bare metal cluster custom resource on the associated admin cluster. This field is used to support conflicting resource names when enrolling existing clusters to the API. When not provided, this field will resolve to the bare_metal_cluster_id. Otherwise, it must match the object name of the bare metal cluster custom resource. It is not modifiable outside / beyond the enrollment operation.", "type": "string" } }, @@ -4419,7 +4419,7 @@ "id": "EnrollBareMetalNodePoolRequest", "properties": { "bareMetalNodePoolId": { - "description": "User provided OnePlatform identifier that is used as part of the resource name. This value must be up to 40 characters and follow RFC-1123 (https://tools.ietf.org/html/rfc1123) format.", + "description": "User provided OnePlatform identifier that is used as part of the resource name. (https://tools.ietf.org/html/rfc1123) format.", "type": "string" }, "validateOnly": { @@ -4438,7 +4438,7 @@ "type": "string" }, "vmwareAdminClusterId": { - "description": "User provided OnePlatform identifier that is used as part of the resource name. This must be unique among all GKE on-prem clusters within a project and location and will return a 409 if the cluster already exists. This value must be up to 40 characters and follow RFC-1123 (https://tools.ietf.org/html/rfc1123) format.", + "description": "User provided OnePlatform identifier that is used as part of the resource name. This must be unique among all GKE on-prem clusters within a project and location and will return a 409 if the cluster already exists. (https://tools.ietf.org/html/rfc1123) format.", "type": "string" } }, @@ -4453,7 +4453,7 @@ "type": "string" }, "localName": { - "description": "The object name of the VMware OnPremUserCluster custom resource on the associated admin cluster. This field is used to support conflicting resource names when enrolling existing clusters to the API. When not provided, this field will resolve to the vmware_cluster_id. Otherwise, it must match the object name of the VMware OnPremUserCluster custom resource. It is not modifiable outside / beyond the enrollment operation.", + "description": "Optional. The object name of the VMware OnPremUserCluster custom resource on the associated admin cluster. This field is used to support conflicting resource names when enrolling existing clusters to the API. When not provided, this field will resolve to the vmware_cluster_id. Otherwise, it must match the object name of the VMware OnPremUserCluster custom resource. It is not modifiable outside / beyond the enrollment operation.", "type": "string" }, "validateOnly": { @@ -4461,7 +4461,7 @@ "type": "boolean" }, "vmwareClusterId": { - "description": "User provided OnePlatform identifier that is used as part of the resource name. This must be unique among all GKE on-prem clusters within a project and location and will return a 409 if the cluster already exists. This value must be up to 40 characters and follow RFC-1123 (https://tools.ietf.org/html/rfc1123) format.", + "description": "User provided OnePlatform identifier that is used as part of the resource name. This must be unique among all GKE on-prem clusters within a project and location and will return a 409 if the cluster already exists. (https://tools.ietf.org/html/rfc1123) format.", "type": "string" } }, @@ -5793,6 +5793,10 @@ "datastore": { "description": "The Vsphere datastore used by the control plane Node.", "type": "string" + }, + "storagePolicyName": { + "description": "The Vsphere storage policy used by the control plane Node.", + "type": "string" } }, "type": "object" @@ -6271,6 +6275,10 @@ "resourcePool": { "description": "The name of the vCenter resource pool for the user cluster.", "type": "string" + }, + "storagePolicyName": { + "description": "The name of the vCenter storage policy for the user cluster.", + "type": "string" } }, "type": "object" @@ -6317,6 +6325,10 @@ "description": "The name of the vCenter datastore. Inherited from the user cluster.", "type": "string" }, + "storagePolicyName": { + "description": "The name of the vCenter storage policy. Inherited from the user cluster.", + "type": "string" + }, "tags": { "description": "Tags to apply to VMs.", "items": { diff --git a/gkeonprem/v1/gkeonprem-gen.go b/gkeonprem/v1/gkeonprem-gen.go index 70021a219a6..e773d06e218 100644 --- a/gkeonprem/v1/gkeonprem-gen.go +++ b/gkeonprem/v1/gkeonprem-gen.go @@ -2900,8 +2900,8 @@ type EnrollBareMetalAdminClusterRequest struct { // BareMetalAdminClusterId: User provided OnePlatform identifier that is // used as part of the resource name. This must be unique among all GKE // on-prem clusters within a project and location and will return a 409 - // if the cluster already exists. This value must be up to 40 characters - // and follow RFC-1123 (https://tools.ietf.org/html/rfc1123) format. + // if the cluster already exists. (https://tools.ietf.org/html/rfc1123) + // format. BareMetalAdminClusterId string `json:"bareMetalAdminClusterId,omitempty"` // Membership: Required. This is the full resource name of this admin @@ -2946,14 +2946,14 @@ type EnrollBareMetalClusterRequest struct { // BareMetalClusterId: User provided OnePlatform identifier that is used // as part of the resource name. This must be unique among all bare // metal clusters within a project and location and will return a 409 if - // the cluster already exists. This value must be up to 40 characters - // and follow RFC-1123 (https://tools.ietf.org/html/rfc1123) format. + // the cluster already exists. (https://tools.ietf.org/html/rfc1123) + // format. BareMetalClusterId string `json:"bareMetalClusterId,omitempty"` - // LocalName: The object name of the bare metal cluster custom resource - // on the associated admin cluster. This field is used to support - // conflicting resource names when enrolling existing clusters to the - // API. When not provided, this field will resolve to the + // LocalName: Optional. The object name of the bare metal cluster custom + // resource on the associated admin cluster. This field is used to + // support conflicting resource names when enrolling existing clusters + // to the API. When not provided, this field will resolve to the // bare_metal_cluster_id. Otherwise, it must match the object name of // the bare metal cluster custom resource. It is not modifiable outside // / beyond the enrollment operation. @@ -2988,9 +2988,8 @@ func (s *EnrollBareMetalClusterRequest) MarshalJSON() ([]byte, error) { // bare metal node pool to the GKE on-prem API. type EnrollBareMetalNodePoolRequest struct { // BareMetalNodePoolId: User provided OnePlatform identifier that is - // used as part of the resource name. This value must be up to 40 - // characters and follow RFC-1123 (https://tools.ietf.org/html/rfc1123) - // format. + // used as part of the resource name. + // (https://tools.ietf.org/html/rfc1123) format. BareMetalNodePoolId string `json:"bareMetalNodePoolId,omitempty"` // ValidateOnly: If set, only validate the request, but do not actually @@ -3031,8 +3030,8 @@ type EnrollVmwareAdminClusterRequest struct { // VmwareAdminClusterId: User provided OnePlatform identifier that is // used as part of the resource name. This must be unique among all GKE // on-prem clusters within a project and location and will return a 409 - // if the cluster already exists. This value must be up to 40 characters - // and follow RFC-1123 (https://tools.ietf.org/html/rfc1123) format. + // if the cluster already exists. (https://tools.ietf.org/html/rfc1123) + // format. VmwareAdminClusterId string `json:"vmwareAdminClusterId,omitempty"` // ForceSendFields is a list of field names (e.g. "Membership") to @@ -3068,12 +3067,12 @@ type EnrollVmwareClusterRequest struct { // their own resources. AdminClusterMembership string `json:"adminClusterMembership,omitempty"` - // LocalName: The object name of the VMware OnPremUserCluster custom - // resource on the associated admin cluster. This field is used to - // support conflicting resource names when enrolling existing clusters - // to the API. When not provided, this field will resolve to the - // vmware_cluster_id. Otherwise, it must match the object name of the - // VMware OnPremUserCluster custom resource. It is not modifiable + // LocalName: Optional. The object name of the VMware OnPremUserCluster + // custom resource on the associated admin cluster. This field is used + // to support conflicting resource names when enrolling existing + // clusters to the API. When not provided, this field will resolve to + // the vmware_cluster_id. Otherwise, it must match the object name of + // the VMware OnPremUserCluster custom resource. It is not modifiable // outside / beyond the enrollment operation. LocalName string `json:"localName,omitempty"` @@ -3084,8 +3083,7 @@ type EnrollVmwareClusterRequest struct { // VmwareClusterId: User provided OnePlatform identifier that is used as // part of the resource name. This must be unique among all GKE on-prem // clusters within a project and location and will return a 409 if the - // cluster already exists. This value must be up to 40 characters and - // follow RFC-1123 (https://tools.ietf.org/html/rfc1123) format. + // cluster already exists. (https://tools.ietf.org/html/rfc1123) format. VmwareClusterId string `json:"vmwareClusterId,omitempty"` // ForceSendFields is a list of field names (e.g. @@ -5290,6 +5288,10 @@ type VmwareControlPlaneVsphereConfig struct { // Datastore: The Vsphere datastore used by the control plane Node. Datastore string `json:"datastore,omitempty"` + // StoragePolicyName: The Vsphere storage policy used by the control + // plane Node. + StoragePolicyName string `json:"storagePolicyName,omitempty"` + // ForceSendFields is a list of field names (e.g. "Datastore") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any @@ -6036,6 +6038,10 @@ type VmwareVCenterConfig struct { // cluster. ResourcePool string `json:"resourcePool,omitempty"` + // StoragePolicyName: The name of the vCenter storage policy for the + // user cluster. + StoragePolicyName string `json:"storagePolicyName,omitempty"` + // ForceSendFields is a list of field names (e.g. "Address") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any @@ -6141,6 +6147,10 @@ type VmwareVsphereConfig struct { // cluster. Datastore string `json:"datastore,omitempty"` + // StoragePolicyName: The name of the vCenter storage policy. Inherited + // from the user cluster. + StoragePolicyName string `json:"storagePolicyName,omitempty"` + // Tags: Tags to apply to VMs. Tags []*VmwareVsphereTag `json:"tags,omitempty"` diff --git a/kmsinventory/v1/kmsinventory-api.json b/kmsinventory/v1/kmsinventory-api.json index a89386cd013..d0c3fec78c0 100644 --- a/kmsinventory/v1/kmsinventory-api.json +++ b/kmsinventory/v1/kmsinventory-api.json @@ -236,7 +236,7 @@ } } }, - "revision": "20230326", + "revision": "20230625", "rootUrl": "https://kmsinventory.googleapis.com/", "schemas": { "GoogleCloudKmsInventoryV1ListCryptoKeysResponse": { @@ -427,6 +427,7 @@ "ENCRYPT_DECRYPT", "ASYMMETRIC_SIGN", "ASYMMETRIC_DECRYPT", + "RAW_ENCRYPT_DECRYPT", "MAC" ], "enumDescriptions": [ @@ -434,6 +435,7 @@ "CryptoKeys with this purpose may be used with Encrypt and Decrypt.", "CryptoKeys with this purpose may be used with AsymmetricSign and GetPublicKey.", "CryptoKeys with this purpose may be used with AsymmetricDecrypt and GetPublicKey.", + "CryptoKeys with this purpose may be used with RawEncrypt and RawDecrypt. This purpose is meant to be used for interoperable symmetric encryption and does not support automatic CryptoKey rotation.", "CryptoKeys with this purpose may be used with MacSign." ], "type": "string" @@ -459,6 +461,8 @@ "enum": [ "CRYPTO_KEY_VERSION_ALGORITHM_UNSPECIFIED", "GOOGLE_SYMMETRIC_ENCRYPTION", + "AES_128_GCM", + "AES_256_GCM", "RSA_SIGN_PSS_2048_SHA256", "RSA_SIGN_PSS_3072_SHA256", "RSA_SIGN_PSS_4096_SHA256", @@ -490,6 +494,8 @@ "enumDescriptions": [ "Not specified.", "Creates symmetric encryption keys.", + "AES-GCM (Galois Counter Mode) using 128-bit keys.", + "AES-GCM (Galois Counter Mode) using 256-bit keys.", "RSASSA-PSS 2048 bit key with a SHA256 digest.", "RSASSA-PSS 3072 bit key with a SHA256 digest.", "RSASSA-PSS 4096 bit key with a SHA256 digest.", @@ -651,6 +657,8 @@ "enum": [ "CRYPTO_KEY_VERSION_ALGORITHM_UNSPECIFIED", "GOOGLE_SYMMETRIC_ENCRYPTION", + "AES_128_GCM", + "AES_256_GCM", "RSA_SIGN_PSS_2048_SHA256", "RSA_SIGN_PSS_3072_SHA256", "RSA_SIGN_PSS_4096_SHA256", @@ -682,6 +690,8 @@ "enumDescriptions": [ "Not specified.", "Creates symmetric encryption keys.", + "AES-GCM (Galois Counter Mode) using 128-bit keys.", + "AES-GCM (Galois Counter Mode) using 256-bit keys.", "RSASSA-PSS 2048 bit key with a SHA256 digest.", "RSASSA-PSS 3072 bit key with a SHA256 digest.", "RSASSA-PSS 4096 bit key with a SHA256 digest.", diff --git a/kmsinventory/v1/kmsinventory-gen.go b/kmsinventory/v1/kmsinventory-gen.go index 73a98df71e9..fef792ba313 100644 --- a/kmsinventory/v1/kmsinventory-gen.go +++ b/kmsinventory/v1/kmsinventory-gen.go @@ -487,6 +487,10 @@ type GoogleCloudKmsV1CryptoKey struct { // AsymmetricSign and GetPublicKey. // "ASYMMETRIC_DECRYPT" - CryptoKeys with this purpose may be used // with AsymmetricDecrypt and GetPublicKey. + // "RAW_ENCRYPT_DECRYPT" - CryptoKeys with this purpose may be used + // with RawEncrypt and RawDecrypt. This purpose is meant to be used for + // interoperable symmetric encryption and does not support automatic + // CryptoKey rotation. // "MAC" - CryptoKeys with this purpose may be used with MacSign. Purpose string `json:"purpose,omitempty"` @@ -541,6 +545,8 @@ type GoogleCloudKmsV1CryptoKeyVersion struct { // Possible values: // "CRYPTO_KEY_VERSION_ALGORITHM_UNSPECIFIED" - Not specified. // "GOOGLE_SYMMETRIC_ENCRYPTION" - Creates symmetric encryption keys. + // "AES_128_GCM" - AES-GCM (Galois Counter Mode) using 128-bit keys. + // "AES_256_GCM" - AES-GCM (Galois Counter Mode) using 256-bit keys. // "RSA_SIGN_PSS_2048_SHA256" - RSASSA-PSS 2048 bit key with a SHA256 // digest. // "RSA_SIGN_PSS_3072_SHA256" - RSASSA-PSS 3072 bit key with a SHA256 @@ -750,6 +756,8 @@ type GoogleCloudKmsV1CryptoKeyVersionTemplate struct { // Possible values: // "CRYPTO_KEY_VERSION_ALGORITHM_UNSPECIFIED" - Not specified. // "GOOGLE_SYMMETRIC_ENCRYPTION" - Creates symmetric encryption keys. + // "AES_128_GCM" - AES-GCM (Galois Counter Mode) using 128-bit keys. + // "AES_256_GCM" - AES-GCM (Galois Counter Mode) using 256-bit keys. // "RSA_SIGN_PSS_2048_SHA256" - RSASSA-PSS 2048 bit key with a SHA256 // digest. // "RSA_SIGN_PSS_3072_SHA256" - RSASSA-PSS 3072 bit key with a SHA256 diff --git a/migrationcenter/v1alpha1/migrationcenter-api.json b/migrationcenter/v1alpha1/migrationcenter-api.json index dc972013b30..ef9f5a743b3 100644 --- a/migrationcenter/v1alpha1/migrationcenter-api.json +++ b/migrationcenter/v1alpha1/migrationcenter-api.json @@ -2102,7 +2102,7 @@ } } }, - "revision": "20230613", + "revision": "20230619", "rootUrl": "https://migrationcenter.googleapis.com/", "schemas": { "AddAssetsToGroupRequest": { @@ -2639,6 +2639,41 @@ "series": { "description": "Compute Engine machine series.", "type": "string" + }, + "storage": { + "description": "Compute Engine storage. Never empty.", + "items": { + "$ref": "ComputeStorageDescriptor" + }, + "type": "array" + } + }, + "type": "object" + }, + "ComputeStorageDescriptor": { + "description": "Compute Engine storage option descriptor.", + "id": "ComputeStorageDescriptor", + "properties": { + "sizeGb": { + "description": "Disk size in GiB.", + "format": "int32", + "type": "integer" + }, + "type": { + "description": "Disk type backing the storage.", + "enum": [ + "PERSISTENT_DISK_TYPE_UNSPECIFIED", + "PERSISTENT_DISK_TYPE_STANDARD", + "PERSISTENT_DISK_TYPE_BALANCED", + "PERSISTENT_DISK_TYPE_SSD" + ], + "enumDescriptions": [ + "Unspecified (default value). Selecting this value allows the system to use any disk type according to reported usage. This a good value to start with.", + "Standard HDD Persistent Disk.", + "Balanced Persistent Disk.", + "SSD Persistent Disk." + ], + "type": "string" } }, "type": "object" diff --git a/migrationcenter/v1alpha1/migrationcenter-gen.go b/migrationcenter/v1alpha1/migrationcenter-gen.go index bb1341228e3..e22c613bd1a 100644 --- a/migrationcenter/v1alpha1/migrationcenter-gen.go +++ b/migrationcenter/v1alpha1/migrationcenter-gen.go @@ -1200,6 +1200,9 @@ type ComputeEngineShapeDescriptor struct { // Series: Compute Engine machine series. Series string `json:"series,omitempty"` + // Storage: Compute Engine storage. Never empty. + Storage []*ComputeStorageDescriptor `json:"storage,omitempty"` + // ForceSendFields is a list of field names (e.g. "LogicalCoreCount") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any @@ -1224,6 +1227,45 @@ func (s *ComputeEngineShapeDescriptor) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// ComputeStorageDescriptor: Compute Engine storage option descriptor. +type ComputeStorageDescriptor struct { + // SizeGb: Disk size in GiB. + SizeGb int64 `json:"sizeGb,omitempty"` + + // Type: Disk type backing the storage. + // + // Possible values: + // "PERSISTENT_DISK_TYPE_UNSPECIFIED" - Unspecified (default value). + // Selecting this value allows the system to use any disk type according + // to reported usage. This a good value to start with. + // "PERSISTENT_DISK_TYPE_STANDARD" - Standard HDD Persistent Disk. + // "PERSISTENT_DISK_TYPE_BALANCED" - Balanced Persistent Disk. + // "PERSISTENT_DISK_TYPE_SSD" - SSD Persistent Disk. + Type string `json:"type,omitempty"` + + // ForceSendFields is a list of field names (e.g. "SizeGb") 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. "SizeGb") 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 *ComputeStorageDescriptor) MarshalJSON() ([]byte, error) { + type NoMethod ComputeStorageDescriptor + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // CpuUsageSample: CPU usage sample. type CpuUsageSample struct { // UtilizedPercentage: Percentage of total CPU capacity utilized. Must diff --git a/networkconnectivity/v1/networkconnectivity-api.json b/networkconnectivity/v1/networkconnectivity-api.json index bc126f2f62d..e793bb7faee 100644 --- a/networkconnectivity/v1/networkconnectivity-api.json +++ b/networkconnectivity/v1/networkconnectivity-api.json @@ -351,6 +351,73 @@ "https://www.googleapis.com/auth/cloud-platform" ] }, + "listSpokes": { + "description": "Lists the Network Connectivity Center spokes associated with a specified hub and location. The list includes both spokes that are attached to the hub and spokes that have been proposed but not yet accepted.", + "flatPath": "v1/projects/{projectsId}/locations/global/hubs/{hubsId}:listSpokes", + "httpMethod": "GET", + "id": "networkconnectivity.projects.locations.global.hubs.listSpokes", + "parameterOrder": [ + "name" + ], + "parameters": { + "filter": { + "description": "An expression that filters the list of results.", + "location": "query", + "type": "string" + }, + "name": { + "description": "Required. The name of the hub.", + "location": "path", + "pattern": "^projects/[^/]+/locations/global/hubs/[^/]+$", + "required": true, + "type": "string" + }, + "orderBy": { + "description": "Sort the results by name or create_time.", + "location": "query", + "type": "string" + }, + "pageSize": { + "description": "The maximum number of results to return per page.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "The page token.", + "location": "query", + "type": "string" + }, + "spokeLocations": { + "description": "A list of locations. Specify one of the following: `[global]`, a single region (for example, `[us-central1]`), or a combination of values (for example, `[global, us-central1, us-west1]`). If the spoke_locations field is populated, the list of results includes only spokes in the specified location. If the spoke_locations field is not populated, the list of results includes spokes in all locations.", + "location": "query", + "repeated": true, + "type": "string" + }, + "view": { + "description": "The view of the spoke to return. The view you use determines which spoke fields are included in the response.", + "enum": [ + "SPOKE_VIEW_UNSPECIFIED", + "BASIC", + "DETAILED" + ], + "enumDescriptions": [ + "The spoke view is unspecified. When the spoke view is unspecified, the API returns the same fields as the `BASIC` view.", + "Includes `name`, `create_time`, `hub`, `unique_id`, `state`, `reasons`, and `spoke_type`. This is the default value.", + "Includes all spoke fields except `labels`. You can use the `DETAILED` view only when you set the `spoke_locations` field to `[global]`." + ], + "location": "query", + "type": "string" + } + }, + "path": "v1/{+name}:listSpokes", + "response": { + "$ref": "ListHubSpokesResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, "patch": { "description": "Updates the description and/or labels of a Network Connectivity Center hub.", "flatPath": "v1/projects/{projectsId}/locations/global/hubs/{hubsId}", @@ -538,6 +605,158 @@ ] } } + }, + "routeTables": { + "methods": { + "get": { + "description": "Gets details about a Network Connectivity Center route table.", + "flatPath": "v1/projects/{projectsId}/locations/global/hubs/{hubsId}/routeTables/{routeTablesId}", + "httpMethod": "GET", + "id": "networkconnectivity.projects.locations.global.hubs.routeTables.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the route table resource.", + "location": "path", + "pattern": "^projects/[^/]+/locations/global/hubs/[^/]+/routeTables/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "RouteTable" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Lists route tables in a given project.", + "flatPath": "v1/projects/{projectsId}/locations/global/hubs/{hubsId}/routeTables", + "httpMethod": "GET", + "id": "networkconnectivity.projects.locations.global.hubs.routeTables.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "filter": { + "description": "An expression that filters the list of results.", + "location": "query", + "type": "string" + }, + "orderBy": { + "description": "Sort the results by a certain order.", + "location": "query", + "type": "string" + }, + "pageSize": { + "description": "The maximum number of results to return per page.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "The page token.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The parent resource's name.", + "location": "path", + "pattern": "^projects/[^/]+/locations/global/hubs/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/routeTables", + "response": { + "$ref": "ListRouteTablesResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + }, + "resources": { + "routes": { + "methods": { + "get": { + "description": "Gets details about the specified route.", + "flatPath": "v1/projects/{projectsId}/locations/global/hubs/{hubsId}/routeTables/{routeTablesId}/routes/{routesId}", + "httpMethod": "GET", + "id": "networkconnectivity.projects.locations.global.hubs.routeTables.routes.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the route resource.", + "location": "path", + "pattern": "^projects/[^/]+/locations/global/hubs/[^/]+/routeTables/[^/]+/routes/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "Route" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Lists routes in a given project.", + "flatPath": "v1/projects/{projectsId}/locations/global/hubs/{hubsId}/routeTables/{routeTablesId}/routes", + "httpMethod": "GET", + "id": "networkconnectivity.projects.locations.global.hubs.routeTables.routes.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "filter": { + "description": "An expression that filters the list of results.", + "location": "query", + "type": "string" + }, + "orderBy": { + "description": "Sort the results by a certain order.", + "location": "query", + "type": "string" + }, + "pageSize": { + "description": "The maximum number of results to return per page.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "The page token.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The parent resource's name.", + "location": "path", + "pattern": "^projects/[^/]+/locations/global/hubs/[^/]+/routeTables/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/routes", + "response": { + "$ref": "ListRoutesResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + } + } } } }, @@ -950,6 +1169,11 @@ "name" ], "parameters": { + "etag": { + "description": "Optional. The etag is computed by the server, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.", + "location": "query", + "type": "string" + }, "name": { "description": "Required. The name of the ServiceClass to delete.", "location": "path", @@ -1219,6 +1443,11 @@ "name" ], "parameters": { + "etag": { + "description": "Optional. The etag is computed by the server, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.", + "location": "query", + "type": "string" + }, "name": { "description": "Required. The name of the ServiceConnectionMap to delete.", "location": "path", @@ -1488,6 +1717,11 @@ "name" ], "parameters": { + "etag": { + "description": "Optional. The etag is computed by the server, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.", + "location": "query", + "type": "string" + }, "name": { "description": "Required. The name of the ServiceConnectionPolicy to delete.", "location": "path", @@ -1757,6 +1991,11 @@ "name" ], "parameters": { + "etag": { + "description": "Optional. The etag is computed by the server, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.", + "location": "query", + "type": "string" + }, "name": { "description": "Required. The name of the ServiceConnectionToken to delete.", "location": "path", @@ -1853,6 +2092,34 @@ }, "spokes": { "methods": { + "accept": { + "description": "Accepts a proposal to attach a Network Connectivity Center spoke to the hub.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/spokes/{spokesId}:accept", + "httpMethod": "POST", + "id": "networkconnectivity.projects.locations.spokes.accept", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the spoke to accept.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/spokes/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}:accept", + "request": { + "$ref": "AcceptSpokeRequest" + }, + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, "create": { "description": "Creates a Network Connectivity Center spoke.", "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/spokes", @@ -2062,6 +2329,34 @@ "https://www.googleapis.com/auth/cloud-platform" ] }, + "reject": { + "description": "Does one of the following: * Rejects a proposal to attach a Network Connectivity Center spoke to the hub. * Rejects and removes a previously attached spoke from the hub.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/spokes/{spokesId}:reject", + "httpMethod": "POST", + "id": "networkconnectivity.projects.locations.spokes.reject", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the spoke to reject.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/spokes/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}:reject", + "request": { + "$ref": "RejectSpokeRequest" + }, + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, "setIamPolicy": { "description": "Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.", "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/spokes/{spokesId}:setIamPolicy", @@ -2125,9 +2420,20 @@ } } }, - "revision": "20230524", + "revision": "20230621", "rootUrl": "https://networkconnectivity.googleapis.com/", "schemas": { + "AcceptSpokeRequest": { + "description": "The request for HubService.AcceptSpoke.", + "id": "AcceptSpokeRequest", + "properties": { + "requestId": { + "description": "Optional. A unique request ID (optional). If you specify this ID, you can use it in cases when you need to retry your request. When you need to retry, this ID lets the server know that it can ignore the request if it has already been completed. The server guarantees that for at least 60 minutes after the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check to see whether the original operation was received. If it was, the server ignores the second request. This behavior prevents clients from mistakenly creating duplicate commitments. The request ID must be a valid UUID, with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).", + "type": "string" + } + }, + "type": "object" + }, "AuditConfig": { "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": "AuditConfig", @@ -2445,6 +2751,14 @@ "description": "Immutable. The name of the hub. Hub names must be unique. They use the following form: `projects/{project_number}/locations/global/hubs/{hub_id}`", "type": "string" }, + "routeTables": { + "description": "Output only. The route tables that belong to this hub. They use the following form: `projects/{project_number}/locations/global/hubs/{hub_id}/routeTables/{route_table_id}` This field is read-only. Network Connectivity Center automatically populates it based on the route tables nested under the hub.", + "items": { + "type": "string" + }, + "readOnly": true, + "type": "array" + }, "routingVpcs": { "description": "The VPC networks associated with this hub's spokes. This field is read-only. Network Connectivity Center automatically populates it based on the set of spokes attached to the hub.", "items": { @@ -2452,6 +2766,11 @@ }, "type": "array" }, + "spokeSummary": { + "$ref": "SpokeSummary", + "description": "Output only. A summary of the spokes associated with a hub. The summary includes a count of spokes according to type and according to state. If any spokes are inactive, the summary also lists the reasons they are inactive, including a count for each reason.", + "readOnly": true + }, "state": { "description": "Output only. The current lifecycle state of this hub.", "enum": [ @@ -2459,14 +2778,22 @@ "CREATING", "ACTIVE", "DELETING", - "UPDATING" + "ACCEPTING", + "REJECTING", + "UPDATING", + "INACTIVE", + "OBSOLETE" ], "enumDescriptions": [ "No state information available", "The resource's create operation is in progress.", "The resource is active", "The resource's delete operation is in progress.", - "The resource's update operation is in progress." + "The resource's accept operation is in progress.", + "The resource's reject operation is in progress.", + "The resource's update operation is in progress.", + "The resource is inactive.", + "The hub associated with this spoke resource has been deleted. This state applies to spoke resources only." ], "readOnly": true, "type": "string" @@ -2636,6 +2963,24 @@ }, "type": "object" }, + "LinkedVpcNetwork": { + "description": "An existing VPC network.", + "id": "LinkedVpcNetwork", + "properties": { + "excludeExportRanges": { + "description": "Optional. IP Ranges encompassing the subnets to be excluded from peering.", + "items": { + "type": "string" + }, + "type": "array" + }, + "uri": { + "description": "Required. The URI of the VPC network resource", + "type": "string" + } + }, + "type": "object" + }, "LinkedVpnTunnels": { "description": "A collection of Cloud VPN tunnel resources. These resources should be redundant HA VPN tunnels that all advertise the same prefixes to Google Cloud. Alternatively, in a passive/active configuration, all tunnels should be capable of advertising the same prefixes.", "id": "LinkedVpnTunnels", @@ -2659,6 +3004,31 @@ }, "type": "object" }, + "ListHubSpokesResponse": { + "description": "The response for HubService.ListHubSpokes.", + "id": "ListHubSpokesResponse", + "properties": { + "nextPageToken": { + "description": "The token for the next page of the response. To see more results, use this value as the page_token for your next request. If this value is empty, there are no more results.", + "type": "string" + }, + "spokes": { + "description": "The requested spokes. The spoke fields can be partially populated based on the `view` field in the request message.", + "items": { + "$ref": "Spoke" + }, + "type": "array" + }, + "unreachable": { + "description": "Locations that could not be reached.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, "ListHubsResponse": { "description": "Response for HubService.ListHubs method.", "id": "ListHubsResponse", @@ -2727,6 +3097,56 @@ }, "type": "object" }, + "ListRouteTablesResponse": { + "description": "Response for HubService.ListRouteTables method.", + "id": "ListRouteTablesResponse", + "properties": { + "nextPageToken": { + "description": "The token for the next page of the response. To see more results, use this value as the page_token for your next request. If this value is empty, there are no more results.", + "type": "string" + }, + "routeTables": { + "description": "The requested route tables.", + "items": { + "$ref": "RouteTable" + }, + "type": "array" + }, + "unreachable": { + "description": "Hubs that could not be reached.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, + "ListRoutesResponse": { + "description": "Response for HubService.ListRoutes method.", + "id": "ListRoutesResponse", + "properties": { + "nextPageToken": { + "description": "The token for the next page of the response. To see more results, use this value as the page_token for your next request. If this value is empty, there are no more results.", + "type": "string" + }, + "routes": { + "description": "The requested routes.", + "items": { + "$ref": "Route" + }, + "type": "array" + }, + "unreachable": { + "description": "RouteTables that could not be reached.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, "ListServiceClassesResponse": { "description": "Response for ListServiceClasses.", "id": "ListServiceClassesResponse", @@ -2910,6 +3330,16 @@ }, "type": "object" }, + "NextHopVpcNetwork": { + "id": "NextHopVpcNetwork", + "properties": { + "uri": { + "description": "The URI of the VPC network resource", + "type": "string" + } + }, + "type": "object" + }, "OperationMetadata": { "description": "Represents the metadata of the long-running operation.", "id": "OperationMetadata", @@ -3001,7 +3431,7 @@ "id": "PscConfig", "properties": { "limit": { - "description": "Max number of PSC connections for this policy.", + "description": "Optional. Max number of PSC connections for this policy.", "format": "int64", "type": "string" }, @@ -3080,6 +3510,184 @@ }, "type": "object" }, + "RejectSpokeRequest": { + "description": "The request for HubService.RejectSpoke.", + "id": "RejectSpokeRequest", + "properties": { + "details": { + "description": "Optional. Additional Details behind the rejection", + "type": "string" + }, + "requestId": { + "description": "Optional. A unique request ID (optional). If you specify this ID, you can use it in cases when you need to retry your request. When you need to retry, this ID lets the server know that it can ignore the request if it has already been completed. The server guarantees that for at least 60 minutes after the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check to see whether the original operation was received. If it was, the server ignores the second request. This behavior prevents clients from mistakenly creating duplicate commitments. The request ID must be a valid UUID, with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).", + "type": "string" + } + }, + "type": "object" + }, + "Route": { + "description": "A route defines a path from VM instances within a spoke to a specific destination resource. Only VPC spokes have routes.", + "id": "Route", + "properties": { + "createTime": { + "description": "Output only. The time the route was created.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "description": { + "description": "An optional description of the route.", + "type": "string" + }, + "ipCidrRange": { + "description": "The destination IP address range.", + "type": "string" + }, + "labels": { + "additionalProperties": { + "type": "string" + }, + "description": "Optional labels in key:value format. For more information about labels, see [Requirements for labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements).", + "type": "object" + }, + "location": { + "description": "Output only. The location of the route. Uses the following form: \"projects/{project}/locations/{location}\" Example: projects/1234/locations/us-central1", + "readOnly": true, + "type": "string" + }, + "name": { + "description": "Immutable. The name of the route. Route names must be unique. They use the following form: `projects/{project_number}/locations/global/hubs/{hub}/routeTables/{route_table_id}/routes/{route_id}`", + "type": "string" + }, + "nextHopVpcNetwork": { + "$ref": "NextHopVpcNetwork", + "description": "Immutable. The destination VPC network for packets on this route." + }, + "spoke": { + "description": "Immutable. The spoke that this route leads to. Example: projects/12345/locations/global/spokes/SPOKE", + "type": "string" + }, + "state": { + "description": "Output only. The current lifecycle state of the route.", + "enum": [ + "STATE_UNSPECIFIED", + "CREATING", + "ACTIVE", + "DELETING", + "ACCEPTING", + "REJECTING", + "UPDATING", + "INACTIVE", + "OBSOLETE" + ], + "enumDescriptions": [ + "No state information available", + "The resource's create operation is in progress.", + "The resource is active", + "The resource's delete operation is in progress.", + "The resource's accept operation is in progress.", + "The resource's reject operation is in progress.", + "The resource's update operation is in progress.", + "The resource is inactive.", + "The hub associated with this spoke resource has been deleted. This state applies to spoke resources only." + ], + "readOnly": true, + "type": "string" + }, + "type": { + "description": "Output only. The route's type. Its type is determined by the properties of its IP address range.", + "enum": [ + "ROUTE_TYPE_UNSPECIFIED", + "VPC_PRIMARY_SUBNET", + "VPC_SECONDARY_SUBNET" + ], + "enumDescriptions": [ + "No route type information specified", + "The route leads to a destination within the primary address range of the VPC network's subnet.", + "The route leads to a destination within the secondary address range of the VPC network's subnet." + ], + "readOnly": true, + "type": "string" + }, + "uid": { + "description": "Output only. The Google-generated UUID for the route. This value is unique across all Network Connectivity Center route resources. If a route is deleted and another with the same name is created, the new route is assigned a different unique_id.", + "readOnly": true, + "type": "string" + }, + "updateTime": { + "description": "Output only. The time the route was last updated.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, + "RouteTable": { + "id": "RouteTable", + "properties": { + "createTime": { + "description": "Output only. The time the route table was created.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "description": { + "description": "An optional description of the route table.", + "type": "string" + }, + "labels": { + "additionalProperties": { + "type": "string" + }, + "description": "Optional labels in key:value format. For more information about labels, see [Requirements for labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements).", + "type": "object" + }, + "name": { + "description": "Immutable. The name of the route table. Route Table names must be unique. They use the following form: `projects/{project_number}/locations/global/hubs/{hub}/routeTables/{route_table_id}`", + "type": "string" + }, + "state": { + "description": "Output only. The current lifecycle state of this route table.", + "enum": [ + "STATE_UNSPECIFIED", + "CREATING", + "ACTIVE", + "DELETING", + "ACCEPTING", + "REJECTING", + "UPDATING", + "INACTIVE", + "OBSOLETE" + ], + "enumDescriptions": [ + "No state information available", + "The resource's create operation is in progress.", + "The resource is active", + "The resource's delete operation is in progress.", + "The resource's accept operation is in progress.", + "The resource's reject operation is in progress.", + "The resource's update operation is in progress.", + "The resource is inactive.", + "The hub associated with this spoke resource has been deleted. This state applies to spoke resources only." + ], + "readOnly": true, + "type": "string" + }, + "uid": { + "description": "Output only. The Google-generated UUID for the route table. This value is unique across all route table resources. If a route table is deleted and another with the same name is created, the new route table is assigned a different unique_id.", + "readOnly": true, + "type": "string" + }, + "updateTime": { + "description": "Output only. The time the route table was last updated.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, "RouterApplianceInstance": { "description": "A router appliance instance is a Compute Engine virtual machine (VM) instance that acts as a BGP speaker. A router appliance instance is specified by the URI of the VM and the internal IP address of one of the VM's network interfaces.", "id": "RouterApplianceInstance", @@ -3112,7 +3720,7 @@ "type": "object" }, "ServiceClass": { - "description": "The ServiceClass resource. Next id: 8", + "description": "The ServiceClass resource. Next id: 9", "id": "ServiceClass", "properties": { "createTime": { @@ -3125,6 +3733,10 @@ "description": "A description of this resource.", "type": "string" }, + "etag": { + "description": "Optional. The etag is computed by the server, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.", + "type": "string" + }, "labels": { "additionalProperties": { "type": "string" @@ -3159,7 +3771,7 @@ "type": "object" }, "ServiceConnectionMap": { - "description": "The ServiceConnectionMap resource. Next id: 14", + "description": "The ServiceConnectionMap resource. Next id: 15", "id": "ServiceConnectionMap", "properties": { "consumerPscConfigs": { @@ -3187,6 +3799,10 @@ "description": "A description of this resource.", "type": "string" }, + "etag": { + "description": "Optional. The etag is computed by the server, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.", + "type": "string" + }, "infrastructure": { "description": "Output only. The infrastructure used for connections between consumers/producers.", "enum": [ @@ -3241,7 +3857,7 @@ "type": "object" }, "ServiceConnectionPolicy": { - "description": "The ServiceConnectionPolicy resource. Next id: 11", + "description": "The ServiceConnectionPolicy resource. Next id: 12", "id": "ServiceConnectionPolicy", "properties": { "createTime": { @@ -3254,6 +3870,10 @@ "description": "A description of this resource.", "type": "string" }, + "etag": { + "description": "Optional. The etag is computed by the server, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.", + "type": "string" + }, "infrastructure": { "description": "Output only. The type of underlying resources used to create the connection.", "enum": [ @@ -3308,7 +3928,7 @@ "type": "object" }, "ServiceConnectionToken": { - "description": "The ServiceConnectionToken resource. Next id: 9", + "description": "The ServiceConnectionToken resource. Next id: 10", "id": "ServiceConnectionToken", "properties": { "createTime": { @@ -3321,6 +3941,10 @@ "description": "A description of this resource.", "type": "string" }, + "etag": { + "description": "Optional. The etag is computed by the server, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.", + "type": "string" + }, "expireTime": { "description": "Output only. The time to which this token is valid.", "format": "google-datetime", @@ -3405,6 +4029,10 @@ "$ref": "LinkedRouterApplianceInstances", "description": "Router appliance instances that are associated with the spoke." }, + "linkedVpcNetwork": { + "$ref": "LinkedVpcNetwork", + "description": "Optional. VPC network that is associated with the spoke." + }, "linkedVpnTunnels": { "$ref": "LinkedVpnTunnels", "description": "VPN tunnels that are associated with the spoke." @@ -3413,6 +4041,33 @@ "description": "Immutable. The name of the spoke. Spoke names must be unique. They use the following form: `projects/{project_number}/locations/{region}/spokes/{spoke_id}`", "type": "string" }, + "reasons": { + "description": "Output only. The reasons for current state of the spoke.", + "items": { + "$ref": "StateReason" + }, + "readOnly": true, + "type": "array" + }, + "spokeType": { + "description": "Output only. The type of resource associated with the spoke.", + "enum": [ + "SPOKE_TYPE_UNSPECIFIED", + "VPN_TUNNEL", + "INTERCONNECT_ATTACHMENT", + "ROUTER_APPLIANCE", + "VPC_NETWORK" + ], + "enumDescriptions": [ + "Unspecified spoke type.", + "Spokes associated with VPN tunnels.", + "Spokes associated with VLAN attachments.", + "Spokes associated with router appliance instances.", + "Spokes associated with VPC networks." + ], + "readOnly": true, + "type": "string" + }, "state": { "description": "Output only. The current lifecycle state of this spoke.", "enum": [ @@ -3420,14 +4075,22 @@ "CREATING", "ACTIVE", "DELETING", - "UPDATING" + "ACCEPTING", + "REJECTING", + "UPDATING", + "INACTIVE", + "OBSOLETE" ], "enumDescriptions": [ "No state information available", "The resource's create operation is in progress.", "The resource is active", "The resource's delete operation is in progress.", - "The resource's update operation is in progress." + "The resource's accept operation is in progress.", + "The resource's reject operation is in progress.", + "The resource's update operation is in progress.", + "The resource is inactive.", + "The hub associated with this spoke resource has been deleted. This state applies to spoke resources only." ], "readOnly": true, "type": "string" @@ -3446,6 +4109,174 @@ }, "type": "object" }, + "SpokeStateCount": { + "description": "The number of spokes that are in a particular state and associated with a given hub.", + "id": "SpokeStateCount", + "properties": { + "count": { + "description": "Output only. The total number of spokes that are in this state and associated with a given hub.", + "format": "int64", + "readOnly": true, + "type": "string" + }, + "state": { + "description": "Output only. The state of the spokes.", + "enum": [ + "STATE_UNSPECIFIED", + "CREATING", + "ACTIVE", + "DELETING", + "ACCEPTING", + "REJECTING", + "UPDATING", + "INACTIVE", + "OBSOLETE" + ], + "enumDescriptions": [ + "No state information available", + "The resource's create operation is in progress.", + "The resource is active", + "The resource's delete operation is in progress.", + "The resource's accept operation is in progress.", + "The resource's reject operation is in progress.", + "The resource's update operation is in progress.", + "The resource is inactive.", + "The hub associated with this spoke resource has been deleted. This state applies to spoke resources only." + ], + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, + "SpokeStateReasonCount": { + "description": "The number of spokes in the hub that are inactive for this reason.", + "id": "SpokeStateReasonCount", + "properties": { + "count": { + "description": "Output only. The total number of spokes that are inactive for a particular reason and associated with a given hub.", + "format": "int64", + "readOnly": true, + "type": "string" + }, + "stateReasonCode": { + "description": "Output only. The reason that a spoke is inactive.", + "enum": [ + "CODE_UNSPECIFIED", + "PENDING_REVIEW", + "REJECTED", + "PAUSED", + "FAILED" + ], + "enumDescriptions": [ + "No information available.", + "The proposed spoke is pending review.", + "The proposed spoke has been rejected by the hub administrator.", + "The spoke has been deactivated internally.", + "Network Connectivity Center encountered errors while accepting the spoke." + ], + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, + "SpokeSummary": { + "description": "Summarizes information about the spokes associated with a hub. The summary includes a count of spokes according to type and according to state. If any spokes are inactive, the summary also lists the reasons they are inactive, including a count for each reason.", + "id": "SpokeSummary", + "properties": { + "spokeStateCounts": { + "description": "Output only. Counts the number of spokes that are in each state and associated with a given hub.", + "items": { + "$ref": "SpokeStateCount" + }, + "readOnly": true, + "type": "array" + }, + "spokeStateReasonCounts": { + "description": "Output only. Counts the number of spokes that are inactive for each possible reason and associated with a given hub.", + "items": { + "$ref": "SpokeStateReasonCount" + }, + "readOnly": true, + "type": "array" + }, + "spokeTypeCounts": { + "description": "Output only. Counts the number of spokes of each type that are associated with a specific hub.", + "items": { + "$ref": "SpokeTypeCount" + }, + "readOnly": true, + "type": "array" + } + }, + "type": "object" + }, + "SpokeTypeCount": { + "description": "The number of spokes of a given type that are associated with a specific hub. The type indicates what kind of resource is associated with the spoke.", + "id": "SpokeTypeCount", + "properties": { + "count": { + "description": "Output only. The total number of spokes of this type that are associated with the hub.", + "format": "int64", + "readOnly": true, + "type": "string" + }, + "spokeType": { + "description": "Output only. The type of the spokes.", + "enum": [ + "SPOKE_TYPE_UNSPECIFIED", + "VPN_TUNNEL", + "INTERCONNECT_ATTACHMENT", + "ROUTER_APPLIANCE", + "VPC_NETWORK" + ], + "enumDescriptions": [ + "Unspecified spoke type.", + "Spokes associated with VPN tunnels.", + "Spokes associated with VLAN attachments.", + "Spokes associated with router appliance instances.", + "Spokes associated with VPC networks." + ], + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, + "StateReason": { + "description": "The reason a spoke is inactive.", + "id": "StateReason", + "properties": { + "code": { + "description": "The code associated with this reason.", + "enum": [ + "CODE_UNSPECIFIED", + "PENDING_REVIEW", + "REJECTED", + "PAUSED", + "FAILED" + ], + "enumDescriptions": [ + "No information available.", + "The proposed spoke is pending review.", + "The proposed spoke has been rejected by the hub administrator.", + "The spoke has been deactivated internally.", + "Network Connectivity Center encountered errors while accepting the spoke." + ], + "type": "string" + }, + "message": { + "description": "Human-readable details about this reason.", + "type": "string" + }, + "userDetails": { + "description": "Additional information provided by the user in the RejectSpoke call.", + "type": "string" + } + }, + "type": "object" + }, "TestIamPermissionsRequest": { "description": "Request message for `TestIamPermissions` method.", "id": "TestIamPermissionsRequest", diff --git a/networkconnectivity/v1/networkconnectivity-gen.go b/networkconnectivity/v1/networkconnectivity-gen.go index 3297edefd92..cbebdf4c355 100644 --- a/networkconnectivity/v1/networkconnectivity-gen.go +++ b/networkconnectivity/v1/networkconnectivity-gen.go @@ -201,6 +201,7 @@ type ProjectsLocationsGlobalService struct { func NewProjectsLocationsGlobalHubsService(s *Service) *ProjectsLocationsGlobalHubsService { rs := &ProjectsLocationsGlobalHubsService{s: s} rs.Groups = NewProjectsLocationsGlobalHubsGroupsService(s) + rs.RouteTables = NewProjectsLocationsGlobalHubsRouteTablesService(s) return rs } @@ -208,6 +209,8 @@ type ProjectsLocationsGlobalHubsService struct { s *Service Groups *ProjectsLocationsGlobalHubsGroupsService + + RouteTables *ProjectsLocationsGlobalHubsRouteTablesService } func NewProjectsLocationsGlobalHubsGroupsService(s *Service) *ProjectsLocationsGlobalHubsGroupsService { @@ -219,6 +222,27 @@ type ProjectsLocationsGlobalHubsGroupsService struct { s *Service } +func NewProjectsLocationsGlobalHubsRouteTablesService(s *Service) *ProjectsLocationsGlobalHubsRouteTablesService { + rs := &ProjectsLocationsGlobalHubsRouteTablesService{s: s} + rs.Routes = NewProjectsLocationsGlobalHubsRouteTablesRoutesService(s) + return rs +} + +type ProjectsLocationsGlobalHubsRouteTablesService struct { + s *Service + + Routes *ProjectsLocationsGlobalHubsRouteTablesRoutesService +} + +func NewProjectsLocationsGlobalHubsRouteTablesRoutesService(s *Service) *ProjectsLocationsGlobalHubsRouteTablesRoutesService { + rs := &ProjectsLocationsGlobalHubsRouteTablesRoutesService{s: s} + return rs +} + +type ProjectsLocationsGlobalHubsRouteTablesRoutesService struct { + s *Service +} + func NewProjectsLocationsGlobalPolicyBasedRoutesService(s *Service) *ProjectsLocationsGlobalPolicyBasedRoutesService { rs := &ProjectsLocationsGlobalPolicyBasedRoutesService{s: s} return rs @@ -291,6 +315,46 @@ type ProjectsLocationsSpokesService struct { s *Service } +// AcceptSpokeRequest: The request for HubService.AcceptSpoke. +type AcceptSpokeRequest struct { + // RequestId: Optional. A unique request ID (optional). If you specify + // this ID, you can use it in cases when you need to retry your request. + // When you need to retry, this ID lets the server know that it can + // ignore the request if it has already been completed. The server + // guarantees that for at least 60 minutes after the first request. For + // example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check to see whether the original + // operation was received. If it was, the server ignores the second + // request. This behavior prevents clients from mistakenly creating + // duplicate commitments. The request ID must be a valid UUID, with the + // exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). + RequestId string `json:"requestId,omitempty"` + + // ForceSendFields is a list of field names (e.g. "RequestId") 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. "RequestId") 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 *AcceptSpokeRequest) MarshalJSON() ([]byte, error) { + type NoMethod AcceptSpokeRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // AuditConfig: 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 @@ -847,11 +911,26 @@ type Hub struct { // `projects/{project_number}/locations/global/hubs/{hub_id}` Name string `json:"name,omitempty"` + // RouteTables: Output only. The route tables that belong to this hub. + // They use the following form: + // `projects/{project_number}/locations/global/hubs/{hub_id}/routeTables/ + // {route_table_id}` This field is read-only. Network Connectivity + // Center automatically populates it based on the route tables nested + // under the hub. + RouteTables []string `json:"routeTables,omitempty"` + // RoutingVpcs: The VPC networks associated with this hub's spokes. This // field is read-only. Network Connectivity Center automatically // populates it based on the set of spokes attached to the hub. RoutingVpcs []*RoutingVPC `json:"routingVpcs,omitempty"` + // SpokeSummary: Output only. A summary of the spokes associated with a + // hub. The summary includes a count of spokes according to type and + // according to state. If any spokes are inactive, the summary also + // lists the reasons they are inactive, including a count for each + // reason. + SpokeSummary *SpokeSummary `json:"spokeSummary,omitempty"` + // State: Output only. The current lifecycle state of this hub. // // Possible values: @@ -859,7 +938,12 @@ type Hub struct { // "CREATING" - The resource's create operation is in progress. // "ACTIVE" - The resource is active // "DELETING" - The resource's delete operation is in progress. + // "ACCEPTING" - The resource's accept operation is in progress. + // "REJECTING" - The resource's reject operation is in progress. // "UPDATING" - The resource's update operation is in progress. + // "INACTIVE" - The resource is inactive. + // "OBSOLETE" - The hub associated with this spoke resource has been + // deleted. This state applies to spoke resources only. State string `json:"state,omitempty"` // UniqueId: Output only. The Google-generated UUID for the hub. This @@ -1118,6 +1202,39 @@ func (s *LinkedRouterApplianceInstances) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// LinkedVpcNetwork: An existing VPC network. +type LinkedVpcNetwork struct { + // ExcludeExportRanges: Optional. IP Ranges encompassing the subnets to + // be excluded from peering. + ExcludeExportRanges []string `json:"excludeExportRanges,omitempty"` + + // Uri: Required. The URI of the VPC network resource + Uri string `json:"uri,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ExcludeExportRanges") + // 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. "ExcludeExportRanges") 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 *LinkedVpcNetwork) MarshalJSON() ([]byte, error) { + type NoMethod LinkedVpcNetwork + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // LinkedVpnTunnels: A collection of Cloud VPN tunnel resources. These // resources should be redundant HA VPN tunnels that all advertise the // same prefixes to Google Cloud. Alternatively, in a passive/active @@ -1162,6 +1279,47 @@ func (s *LinkedVpnTunnels) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// ListHubSpokesResponse: The response for HubService.ListHubSpokes. +type ListHubSpokesResponse struct { + // NextPageToken: The token for the next page of the response. To see + // more results, use this value as the page_token for your next request. + // If this value is empty, there are no more results. + NextPageToken string `json:"nextPageToken,omitempty"` + + // Spokes: The requested spokes. The spoke fields can be partially + // populated based on the `view` field in the request message. + Spokes []*Spoke `json:"spokes,omitempty"` + + // Unreachable: Locations that could not be reached. + Unreachable []string `json:"unreachable,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "NextPageToken") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "NextPageToken") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *ListHubSpokesResponse) MarshalJSON() ([]byte, error) { + type NoMethod ListHubSpokesResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // ListHubsResponse: Response for HubService.ListHubs method. type ListHubsResponse struct { // Hubs: The requested hubs. @@ -1281,6 +1439,87 @@ func (s *ListLocationsResponse) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// ListRouteTablesResponse: Response for HubService.ListRouteTables +// method. +type ListRouteTablesResponse struct { + // NextPageToken: The token for the next page of the response. To see + // more results, use this value as the page_token for your next request. + // If this value is empty, there are no more results. + NextPageToken string `json:"nextPageToken,omitempty"` + + // RouteTables: The requested route tables. + RouteTables []*RouteTable `json:"routeTables,omitempty"` + + // Unreachable: Hubs that could not be reached. + Unreachable []string `json:"unreachable,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "NextPageToken") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "NextPageToken") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *ListRouteTablesResponse) MarshalJSON() ([]byte, error) { + type NoMethod ListRouteTablesResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// ListRoutesResponse: Response for HubService.ListRoutes method. +type ListRoutesResponse struct { + // NextPageToken: The token for the next page of the response. To see + // more results, use this value as the page_token for your next request. + // If this value is empty, there are no more results. + NextPageToken string `json:"nextPageToken,omitempty"` + + // Routes: The requested routes. + Routes []*Route `json:"routes,omitempty"` + + // Unreachable: RouteTables that could not be reached. + Unreachable []string `json:"unreachable,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "NextPageToken") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "NextPageToken") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *ListRoutesResponse) MarshalJSON() ([]byte, error) { + type NoMethod ListRoutesResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // ListServiceClassesResponse: Response for ListServiceClasses. type ListServiceClassesResponse struct { // NextPageToken: The next pagination token in the List response. It @@ -1571,6 +1810,33 @@ func (s *LocationMetadata) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +type NextHopVpcNetwork struct { + // Uri: The URI of the VPC network resource + Uri string `json:"uri,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Uri") 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. "Uri") 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 *NextHopVpcNetwork) MarshalJSON() ([]byte, error) { + type NoMethod NextHopVpcNetwork + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // OperationMetadata: Represents the metadata of the long-running // operation. type OperationMetadata struct { @@ -1769,7 +2035,7 @@ func (s *ProducerPscConfig) MarshalJSON() ([]byte, error) { // PscConfig: Configuration used for Private Service Connect // connections. Used when Infrastructure is PSC. type PscConfig struct { - // Limit: Max number of PSC connections for this policy. + // Limit: Optional. Max number of PSC connections for this policy. Limit int64 `json:"limit,omitempty,string"` // Subnetworks: The resource paths of subnetworks to use for IP address @@ -1873,18 +2139,27 @@ func (s *PscConnection) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// RouterApplianceInstance: A router appliance instance is a Compute -// Engine virtual machine (VM) instance that acts as a BGP speaker. A -// router appliance instance is specified by the URI of the VM and the -// internal IP address of one of the VM's network interfaces. -type RouterApplianceInstance struct { - // IpAddress: The IP address on the VM to use for peering. - IpAddress string `json:"ipAddress,omitempty"` - - // VirtualMachine: The URI of the VM. - VirtualMachine string `json:"virtualMachine,omitempty"` - - // ForceSendFields is a list of field names (e.g. "IpAddress") to +// RejectSpokeRequest: The request for HubService.RejectSpoke. +type RejectSpokeRequest struct { + // Details: Optional. Additional Details behind the rejection + Details string `json:"details,omitempty"` + + // RequestId: Optional. A unique request ID (optional). If you specify + // this ID, you can use it in cases when you need to retry your request. + // When you need to retry, this ID lets the server know that it can + // ignore the request if it has already been completed. The server + // guarantees that for at least 60 minutes after the first request. For + // example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check to see whether the original + // operation was received. If it was, the server ignores the second + // request. This behavior prevents clients from mistakenly creating + // duplicate commitments. The request ID must be a valid UUID, with the + // exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). + RequestId string `json:"requestId,omitempty"` + + // ForceSendFields is a list of field names (e.g. "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 @@ -1892,7 +2167,7 @@ type RouterApplianceInstance struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "IpAddress") to include in + // 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 @@ -1901,73 +2176,279 @@ type RouterApplianceInstance struct { NullFields []string `json:"-"` } -func (s *RouterApplianceInstance) MarshalJSON() ([]byte, error) { - type NoMethod RouterApplianceInstance - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// RoutingVPC: RoutingVPC contains information about the VPC networks -// associated with the spokes of a Network Connectivity Center hub. -type RoutingVPC struct { - // RequiredForNewSiteToSiteDataTransferSpokes: Output only. If true, - // indicates that this VPC network is currently associated with spokes - // that use the data transfer feature (spokes where the - // site_to_site_data_transfer field is set to true). If you create new - // spokes that use data transfer, they must be associated with this VPC - // network. At most, one VPC network will have this field set to true. - RequiredForNewSiteToSiteDataTransferSpokes bool `json:"requiredForNewSiteToSiteDataTransferSpokes,omitempty"` - - // Uri: The URI of the VPC network. - Uri string `json:"uri,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "RequiredForNewSiteToSiteDataTransferSpokes") 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. - // "RequiredForNewSiteToSiteDataTransferSpokes") 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 *RoutingVPC) MarshalJSON() ([]byte, error) { - type NoMethod RoutingVPC +func (s *RejectSpokeRequest) MarshalJSON() ([]byte, error) { + type NoMethod RejectSpokeRequest raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// ServiceClass: The ServiceClass resource. Next id: 8 -type ServiceClass struct { - // CreateTime: Output only. Time when the ServiceClass was created. +// Route: A route defines a path from VM instances within a spoke to a +// specific destination resource. Only VPC spokes have routes. +type Route struct { + // CreateTime: Output only. The time the route was created. CreateTime string `json:"createTime,omitempty"` - // Description: A description of this resource. + // Description: An optional description of the route. Description string `json:"description,omitempty"` - // Labels: User-defined labels. + // IpCidrRange: The destination IP address range. + IpCidrRange string `json:"ipCidrRange,omitempty"` + + // Labels: Optional labels in key:value format. For more information + // about labels, see Requirements for labels + // (https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements). Labels map[string]string `json:"labels,omitempty"` - // Name: Immutable. The name of a ServiceClass resource. Format: - // projects/{project}/locations/{location}/serviceClasses/{service_class} - // See: https://google.aip.dev/122#fields-representing-resource-names + // Location: Output only. The location of the route. Uses the following + // form: "projects/{project}/locations/{location}" Example: + // projects/1234/locations/us-central1 + Location string `json:"location,omitempty"` + + // Name: Immutable. The name of the route. Route names must be unique. + // They use the following form: + // `projects/{project_number}/locations/global/hubs/{hub}/routeTables/{ro + // ute_table_id}/routes/{route_id}` Name string `json:"name,omitempty"` - // ServiceClass: Output only. The generated service class name. Use this - // name to refer to the Service class in Service Connection Maps and - // Service Connection Policies. - ServiceClass string `json:"serviceClass,omitempty"` + // NextHopVpcNetwork: Immutable. The destination VPC network for packets + // on this route. + NextHopVpcNetwork *NextHopVpcNetwork `json:"nextHopVpcNetwork,omitempty"` - // ServiceConnectionMaps: Output only. URIs of all Service Connection + // Spoke: Immutable. The spoke that this route leads to. Example: + // projects/12345/locations/global/spokes/SPOKE + Spoke string `json:"spoke,omitempty"` + + // State: Output only. The current lifecycle state of the route. + // + // Possible values: + // "STATE_UNSPECIFIED" - No state information available + // "CREATING" - The resource's create operation is in progress. + // "ACTIVE" - The resource is active + // "DELETING" - The resource's delete operation is in progress. + // "ACCEPTING" - The resource's accept operation is in progress. + // "REJECTING" - The resource's reject operation is in progress. + // "UPDATING" - The resource's update operation is in progress. + // "INACTIVE" - The resource is inactive. + // "OBSOLETE" - The hub associated with this spoke resource has been + // deleted. This state applies to spoke resources only. + State string `json:"state,omitempty"` + + // Type: Output only. The route's type. Its type is determined by the + // properties of its IP address range. + // + // Possible values: + // "ROUTE_TYPE_UNSPECIFIED" - No route type information specified + // "VPC_PRIMARY_SUBNET" - The route leads to a destination within the + // primary address range of the VPC network's subnet. + // "VPC_SECONDARY_SUBNET" - The route leads to a destination within + // the secondary address range of the VPC network's subnet. + Type string `json:"type,omitempty"` + + // Uid: Output only. The Google-generated UUID for the route. This value + // is unique across all Network Connectivity Center route resources. If + // a route is deleted and another with the same name is created, the new + // route is assigned a different unique_id. + Uid string `json:"uid,omitempty"` + + // UpdateTime: Output only. The time the route was last updated. + UpdateTime string `json:"updateTime,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "CreateTime") 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. "CreateTime") 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 *Route) MarshalJSON() ([]byte, error) { + type NoMethod Route + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +type RouteTable struct { + // CreateTime: Output only. The time the route table was created. + CreateTime string `json:"createTime,omitempty"` + + // Description: An optional description of the route table. + Description string `json:"description,omitempty"` + + // Labels: Optional labels in key:value format. For more information + // about labels, see Requirements for labels + // (https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements). + Labels map[string]string `json:"labels,omitempty"` + + // Name: Immutable. The name of the route table. Route Table names must + // be unique. They use the following form: + // `projects/{project_number}/locations/global/hubs/{hub}/routeTables/{ro + // ute_table_id}` + Name string `json:"name,omitempty"` + + // State: Output only. The current lifecycle state of this route table. + // + // Possible values: + // "STATE_UNSPECIFIED" - No state information available + // "CREATING" - The resource's create operation is in progress. + // "ACTIVE" - The resource is active + // "DELETING" - The resource's delete operation is in progress. + // "ACCEPTING" - The resource's accept operation is in progress. + // "REJECTING" - The resource's reject operation is in progress. + // "UPDATING" - The resource's update operation is in progress. + // "INACTIVE" - The resource is inactive. + // "OBSOLETE" - The hub associated with this spoke resource has been + // deleted. This state applies to spoke resources only. + State string `json:"state,omitempty"` + + // Uid: Output only. The Google-generated UUID for the route table. This + // value is unique across all route table resources. If a route table is + // deleted and another with the same name is created, the new route + // table is assigned a different unique_id. + Uid string `json:"uid,omitempty"` + + // UpdateTime: Output only. The time the route table was last updated. + UpdateTime string `json:"updateTime,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "CreateTime") 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. "CreateTime") 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 *RouteTable) MarshalJSON() ([]byte, error) { + type NoMethod RouteTable + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// RouterApplianceInstance: A router appliance instance is a Compute +// Engine virtual machine (VM) instance that acts as a BGP speaker. A +// router appliance instance is specified by the URI of the VM and the +// internal IP address of one of the VM's network interfaces. +type RouterApplianceInstance struct { + // IpAddress: The IP address on the VM to use for peering. + IpAddress string `json:"ipAddress,omitempty"` + + // VirtualMachine: The URI of the VM. + VirtualMachine string `json:"virtualMachine,omitempty"` + + // ForceSendFields is a list of field names (e.g. "IpAddress") 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. "IpAddress") 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 *RouterApplianceInstance) MarshalJSON() ([]byte, error) { + type NoMethod RouterApplianceInstance + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// RoutingVPC: RoutingVPC contains information about the VPC networks +// associated with the spokes of a Network Connectivity Center hub. +type RoutingVPC struct { + // RequiredForNewSiteToSiteDataTransferSpokes: Output only. If true, + // indicates that this VPC network is currently associated with spokes + // that use the data transfer feature (spokes where the + // site_to_site_data_transfer field is set to true). If you create new + // spokes that use data transfer, they must be associated with this VPC + // network. At most, one VPC network will have this field set to true. + RequiredForNewSiteToSiteDataTransferSpokes bool `json:"requiredForNewSiteToSiteDataTransferSpokes,omitempty"` + + // Uri: The URI of the VPC network. + Uri string `json:"uri,omitempty"` + + // ForceSendFields is a list of field names (e.g. + // "RequiredForNewSiteToSiteDataTransferSpokes") 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. + // "RequiredForNewSiteToSiteDataTransferSpokes") 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 *RoutingVPC) MarshalJSON() ([]byte, error) { + type NoMethod RoutingVPC + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// ServiceClass: The ServiceClass resource. Next id: 9 +type ServiceClass struct { + // CreateTime: Output only. Time when the ServiceClass was created. + CreateTime string `json:"createTime,omitempty"` + + // Description: A description of this resource. + Description string `json:"description,omitempty"` + + // Etag: Optional. The etag is computed by the server, and may be sent + // on update and delete requests to ensure the client has an up-to-date + // value before proceeding. + Etag string `json:"etag,omitempty"` + + // Labels: User-defined labels. + Labels map[string]string `json:"labels,omitempty"` + + // Name: Immutable. The name of a ServiceClass resource. Format: + // projects/{project}/locations/{location}/serviceClasses/{service_class} + // See: https://google.aip.dev/122#fields-representing-resource-names + Name string `json:"name,omitempty"` + + // ServiceClass: Output only. The generated service class name. Use this + // name to refer to the Service class in Service Connection Maps and + // Service Connection Policies. + ServiceClass string `json:"serviceClass,omitempty"` + + // ServiceConnectionMaps: Output only. URIs of all Service Connection // Maps using this service class. ServiceConnectionMaps []string `json:"serviceConnectionMaps,omitempty"` @@ -2001,7 +2482,7 @@ func (s *ServiceClass) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// ServiceConnectionMap: The ServiceConnectionMap resource. Next id: 14 +// ServiceConnectionMap: The ServiceConnectionMap resource. Next id: 15 type ServiceConnectionMap struct { // ConsumerPscConfigs: The PSC configurations on consumer side. ConsumerPscConfigs []*ConsumerPscConfig `json:"consumerPscConfigs,omitempty"` @@ -2017,6 +2498,11 @@ type ServiceConnectionMap struct { // Description: A description of this resource. Description string `json:"description,omitempty"` + // Etag: Optional. The etag is computed by the server, and may be sent + // on update and delete requests to ensure the client has an up-to-date + // value before proceeding. + Etag string `json:"etag,omitempty"` + // Infrastructure: Output only. The infrastructure used for connections // between consumers/producers. // @@ -2086,7 +2572,7 @@ func (s *ServiceConnectionMap) MarshalJSON() ([]byte, error) { } // ServiceConnectionPolicy: The ServiceConnectionPolicy resource. Next -// id: 11 +// id: 12 type ServiceConnectionPolicy struct { // CreateTime: Output only. Time when the ServiceConnectionMap was // created. @@ -2095,6 +2581,11 @@ type ServiceConnectionPolicy struct { // Description: A description of this resource. Description string `json:"description,omitempty"` + // Etag: Optional. The etag is computed by the server, and may be sent + // on update and delete requests to ensure the client has an up-to-date + // value before proceeding. + Etag string `json:"etag,omitempty"` + // Infrastructure: Output only. The type of underlying resources used to // create the connection. // @@ -2165,7 +2656,7 @@ func (s *ServiceConnectionPolicy) MarshalJSON() ([]byte, error) { } // ServiceConnectionToken: The ServiceConnectionToken resource. Next id: -// 9 +// 10 type ServiceConnectionToken struct { // CreateTime: Output only. Time when the ServiceConnectionToken was // created. @@ -2174,6 +2665,11 @@ type ServiceConnectionToken struct { // Description: A description of this resource. Description string `json:"description,omitempty"` + // Etag: Optional. The etag is computed by the server, and may be sent + // on update and delete requests to ensure the client has an up-to-date + // value before proceeding. + Etag string `json:"etag,omitempty"` + // ExpireTime: Output only. The time to which this token is valid. ExpireTime string `json:"expireTime,omitempty"` @@ -2289,6 +2785,10 @@ type Spoke struct { // associated with the spoke. LinkedRouterApplianceInstances *LinkedRouterApplianceInstances `json:"linkedRouterApplianceInstances,omitempty"` + // LinkedVpcNetwork: Optional. VPC network that is associated with the + // spoke. + LinkedVpcNetwork *LinkedVpcNetwork `json:"linkedVpcNetwork,omitempty"` + // LinkedVpnTunnels: VPN tunnels that are associated with the spoke. LinkedVpnTunnels *LinkedVpnTunnels `json:"linkedVpnTunnels,omitempty"` @@ -2297,6 +2797,22 @@ type Spoke struct { // `projects/{project_number}/locations/{region}/spokes/{spoke_id}` Name string `json:"name,omitempty"` + // Reasons: Output only. The reasons for current state of the spoke. + Reasons []*StateReason `json:"reasons,omitempty"` + + // SpokeType: Output only. The type of resource associated with the + // spoke. + // + // Possible values: + // "SPOKE_TYPE_UNSPECIFIED" - Unspecified spoke type. + // "VPN_TUNNEL" - Spokes associated with VPN tunnels. + // "INTERCONNECT_ATTACHMENT" - Spokes associated with VLAN + // attachments. + // "ROUTER_APPLIANCE" - Spokes associated with router appliance + // instances. + // "VPC_NETWORK" - Spokes associated with VPC networks. + SpokeType string `json:"spokeType,omitempty"` + // State: Output only. The current lifecycle state of this spoke. // // Possible values: @@ -2304,7 +2820,12 @@ type Spoke struct { // "CREATING" - The resource's create operation is in progress. // "ACTIVE" - The resource is active // "DELETING" - The resource's delete operation is in progress. + // "ACCEPTING" - The resource's accept operation is in progress. + // "REJECTING" - The resource's reject operation is in progress. // "UPDATING" - The resource's update operation is in progress. + // "INACTIVE" - The resource is inactive. + // "OBSOLETE" - The hub associated with this spoke resource has been + // deleted. This state applies to spoke resources only. State string `json:"state,omitempty"` // UniqueId: Output only. The Google-generated UUID for the spoke. This @@ -2343,16 +2864,29 @@ func (s *Spoke) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// TestIamPermissionsRequest: Request message for `TestIamPermissions` -// method. -type TestIamPermissionsRequest 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"` +// SpokeStateCount: The number of spokes that are in a particular state +// and associated with a given hub. +type SpokeStateCount struct { + // Count: Output only. The total number of spokes that are in this state + // and associated with a given hub. + Count int64 `json:"count,omitempty,string"` - // ForceSendFields is a list of field names (e.g. "Permissions") to + // State: Output only. The state of the spokes. + // + // Possible values: + // "STATE_UNSPECIFIED" - No state information available + // "CREATING" - The resource's create operation is in progress. + // "ACTIVE" - The resource is active + // "DELETING" - The resource's delete operation is in progress. + // "ACCEPTING" - The resource's accept operation is in progress. + // "REJECTING" - The resource's reject operation is in progress. + // "UPDATING" - The resource's update operation is in progress. + // "INACTIVE" - The resource is inactive. + // "OBSOLETE" - The hub associated with this spoke resource has been + // deleted. This state applies to spoke resources only. + State string `json:"state,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Count") 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 @@ -2360,33 +2894,41 @@ type TestIamPermissionsRequest struct { // 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 + // NullFields is a list of field names (e.g. "Count") 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 *TestIamPermissionsRequest) MarshalJSON() ([]byte, error) { - type NoMethod TestIamPermissionsRequest +func (s *SpokeStateCount) MarshalJSON() ([]byte, error) { + type NoMethod SpokeStateCount raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// TestIamPermissionsResponse: Response message for `TestIamPermissions` -// method. -type TestIamPermissionsResponse 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:"-"` +// SpokeStateReasonCount: The number of spokes in the hub that are +// inactive for this reason. +type SpokeStateReasonCount struct { + // Count: Output only. The total number of spokes that are inactive for + // a particular reason and associated with a given hub. + Count int64 `json:"count,omitempty,string"` - // ForceSendFields is a list of field names (e.g. "Permissions") to + // StateReasonCode: Output only. The reason that a spoke is inactive. + // + // Possible values: + // "CODE_UNSPECIFIED" - No information available. + // "PENDING_REVIEW" - The proposed spoke is pending review. + // "REJECTED" - The proposed spoke has been rejected by the hub + // administrator. + // "PAUSED" - The spoke has been deactivated internally. + // "FAILED" - Network Connectivity Center encountered errors while + // accepting the spoke. + StateReasonCode string `json:"stateReasonCode,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Count") 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 @@ -2394,36 +2936,232 @@ type TestIamPermissionsResponse struct { // 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 + // NullFields is a list of field names (e.g. "Count") 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 *TestIamPermissionsResponse) MarshalJSON() ([]byte, error) { - type NoMethod TestIamPermissionsResponse +func (s *SpokeStateReasonCount) MarshalJSON() ([]byte, error) { + type NoMethod SpokeStateReasonCount raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// method id "networkconnectivity.projects.locations.get": +// SpokeSummary: Summarizes information about the spokes associated with +// a hub. The summary includes a count of spokes according to type and +// according to state. If any spokes are inactive, the summary also +// lists the reasons they are inactive, including a count for each +// reason. +type SpokeSummary struct { + // SpokeStateCounts: Output only. Counts the number of spokes that are + // in each state and associated with a given hub. + SpokeStateCounts []*SpokeStateCount `json:"spokeStateCounts,omitempty"` -type ProjectsLocationsGetCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} + // SpokeStateReasonCounts: Output only. Counts the number of spokes that + // are inactive for each possible reason and associated with a given + // hub. + SpokeStateReasonCounts []*SpokeStateReasonCount `json:"spokeStateReasonCounts,omitempty"` -// Get: Gets information about a location. -// -// - name: Resource name for the location. -func (r *ProjectsLocationsService) Get(name string) *ProjectsLocationsGetCall { + // SpokeTypeCounts: Output only. Counts the number of spokes of each + // type that are associated with a specific hub. + SpokeTypeCounts []*SpokeTypeCount `json:"spokeTypeCounts,omitempty"` + + // ForceSendFields is a list of field names (e.g. "SpokeStateCounts") 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. "SpokeStateCounts") 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 *SpokeSummary) MarshalJSON() ([]byte, error) { + type NoMethod SpokeSummary + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// SpokeTypeCount: The number of spokes of a given type that are +// associated with a specific hub. The type indicates what kind of +// resource is associated with the spoke. +type SpokeTypeCount struct { + // Count: Output only. The total number of spokes of this type that are + // associated with the hub. + Count int64 `json:"count,omitempty,string"` + + // SpokeType: Output only. The type of the spokes. + // + // Possible values: + // "SPOKE_TYPE_UNSPECIFIED" - Unspecified spoke type. + // "VPN_TUNNEL" - Spokes associated with VPN tunnels. + // "INTERCONNECT_ATTACHMENT" - Spokes associated with VLAN + // attachments. + // "ROUTER_APPLIANCE" - Spokes associated with router appliance + // instances. + // "VPC_NETWORK" - Spokes associated with VPC networks. + SpokeType string `json:"spokeType,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Count") 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. "Count") 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 *SpokeTypeCount) MarshalJSON() ([]byte, error) { + type NoMethod SpokeTypeCount + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// StateReason: The reason a spoke is inactive. +type StateReason struct { + // Code: The code associated with this reason. + // + // Possible values: + // "CODE_UNSPECIFIED" - No information available. + // "PENDING_REVIEW" - The proposed spoke is pending review. + // "REJECTED" - The proposed spoke has been rejected by the hub + // administrator. + // "PAUSED" - The spoke has been deactivated internally. + // "FAILED" - Network Connectivity Center encountered errors while + // accepting the spoke. + Code string `json:"code,omitempty"` + + // Message: Human-readable details about this reason. + Message string `json:"message,omitempty"` + + // UserDetails: Additional information provided by the user in the + // RejectSpoke call. + UserDetails string `json:"userDetails,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 *StateReason) MarshalJSON() ([]byte, error) { + type NoMethod StateReason + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// TestIamPermissionsRequest: Request message for `TestIamPermissions` +// method. +type TestIamPermissionsRequest 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 *TestIamPermissionsRequest) MarshalJSON() ([]byte, error) { + type NoMethod TestIamPermissionsRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// TestIamPermissionsResponse: Response message for `TestIamPermissions` +// method. +type TestIamPermissionsResponse 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 *TestIamPermissionsResponse) MarshalJSON() ([]byte, error) { + type NoMethod TestIamPermissionsResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// method id "networkconnectivity.projects.locations.get": + +type ProjectsLocationsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Gets information about a location. +// +// - name: Resource name for the location. +func (r *ProjectsLocationsService) Get(name string) *ProjectsLocationsGetCall { c := &ProjectsLocationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c @@ -3634,102 +4372,143 @@ func (c *ProjectsLocationsGlobalHubsListCall) Pages(ctx context.Context, f func( } } -// method id "networkconnectivity.projects.locations.global.hubs.patch": +// method id "networkconnectivity.projects.locations.global.hubs.listSpokes": -type ProjectsLocationsGlobalHubsPatchCall struct { - s *Service - name string - hub *Hub - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsGlobalHubsListSpokesCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// Patch: Updates the description and/or labels of a Network -// Connectivity Center hub. +// ListSpokes: Lists the Network Connectivity Center spokes associated +// with a specified hub and location. The list includes both spokes that +// are attached to the hub and spokes that have been proposed but not +// yet accepted. // -// - name: Immutable. The name of the hub. Hub names must be unique. -// They use the following form: -// `projects/{project_number}/locations/global/hubs/{hub_id}`. -func (r *ProjectsLocationsGlobalHubsService) Patch(name string, hub *Hub) *ProjectsLocationsGlobalHubsPatchCall { - c := &ProjectsLocationsGlobalHubsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The name of the hub. +func (r *ProjectsLocationsGlobalHubsService) ListSpokes(name string) *ProjectsLocationsGlobalHubsListSpokesCall { + c := &ProjectsLocationsGlobalHubsListSpokesCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name - c.hub = hub return c } -// RequestId sets the optional parameter "requestId": A unique request -// ID (optional). If you specify this ID, you can use it in cases when -// you need to retry your request. When you need to retry, this ID lets -// the server know that it can ignore the request if it has already been -// completed. The server guarantees that for at least 60 minutes after -// the first request. For example, consider a situation where you make -// an initial request and the request times out. If you make the request -// again with the same request ID, the server can check to see whether -// the original operation was received. If it was, the server ignores -// the second request. This behavior prevents clients from mistakenly -// creating duplicate commitments. The request ID must be a valid UUID, -// with the exception that zero UUID is not supported -// (00000000-0000-0000-0000-000000000000). -func (c *ProjectsLocationsGlobalHubsPatchCall) RequestId(requestId string) *ProjectsLocationsGlobalHubsPatchCall { - c.urlParams_.Set("requestId", requestId) +// Filter sets the optional parameter "filter": An expression that +// filters the list of results. +func (c *ProjectsLocationsGlobalHubsListSpokesCall) Filter(filter string) *ProjectsLocationsGlobalHubsListSpokesCall { + c.urlParams_.Set("filter", filter) return c } -// UpdateMask sets the optional parameter "updateMask": In the case of -// an update to an existing hub, field mask is used to specify the -// fields to be overwritten. The fields specified in the update_mask are -// relative to the resource, not the full request. A field is -// overwritten if it is in the mask. If the user does not provide a -// mask, then all fields are overwritten. -func (c *ProjectsLocationsGlobalHubsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsGlobalHubsPatchCall { - c.urlParams_.Set("updateMask", updateMask) +// OrderBy sets the optional parameter "orderBy": Sort the results by +// name or create_time. +func (c *ProjectsLocationsGlobalHubsListSpokesCall) OrderBy(orderBy string) *ProjectsLocationsGlobalHubsListSpokesCall { + c.urlParams_.Set("orderBy", orderBy) + return c +} + +// PageSize sets the optional parameter "pageSize": The maximum number +// of results to return per page. +func (c *ProjectsLocationsGlobalHubsListSpokesCall) PageSize(pageSize int64) *ProjectsLocationsGlobalHubsListSpokesCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": The page token. +func (c *ProjectsLocationsGlobalHubsListSpokesCall) PageToken(pageToken string) *ProjectsLocationsGlobalHubsListSpokesCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// SpokeLocations sets the optional parameter "spokeLocations": A list +// of locations. Specify one of the following: `[global]`, a single +// region (for example, `[us-central1]`), or a combination of values +// (for example, `[global, us-central1, us-west1]`). If the +// spoke_locations field is populated, the list of results includes only +// spokes in the specified location. If the spoke_locations field is not +// populated, the list of results includes spokes in all locations. +func (c *ProjectsLocationsGlobalHubsListSpokesCall) SpokeLocations(spokeLocations ...string) *ProjectsLocationsGlobalHubsListSpokesCall { + c.urlParams_.SetMulti("spokeLocations", append([]string{}, spokeLocations...)) + return c +} + +// View sets the optional parameter "view": The view of the spoke to +// return. The view you use determines which spoke fields are included +// in the response. +// +// Possible values: +// +// "SPOKE_VIEW_UNSPECIFIED" - The spoke view is unspecified. When the +// +// spoke view is unspecified, the API returns the same fields as the +// `BASIC` view. +// +// "BASIC" - Includes `name`, `create_time`, `hub`, `unique_id`, +// +// `state`, `reasons`, and `spoke_type`. This is the default value. +// +// "DETAILED" - Includes all spoke fields except `labels`. You can use +// +// the `DETAILED` view only when you set the `spoke_locations` field to +// `[global]`. +func (c *ProjectsLocationsGlobalHubsListSpokesCall) View(view string) *ProjectsLocationsGlobalHubsListSpokesCall { + c.urlParams_.Set("view", view) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsGlobalHubsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsGlobalHubsPatchCall { +func (c *ProjectsLocationsGlobalHubsListSpokesCall) Fields(s ...googleapi.Field) *ProjectsLocationsGlobalHubsListSpokesCall { 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 *ProjectsLocationsGlobalHubsListSpokesCall) IfNoneMatch(entityTag string) *ProjectsLocationsGlobalHubsListSpokesCall { + 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 *ProjectsLocationsGlobalHubsPatchCall) Context(ctx context.Context) *ProjectsLocationsGlobalHubsPatchCall { +func (c *ProjectsLocationsGlobalHubsListSpokesCall) Context(ctx context.Context) *ProjectsLocationsGlobalHubsListSpokesCall { 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 *ProjectsLocationsGlobalHubsPatchCall) Header() http.Header { +func (c *ProjectsLocationsGlobalHubsListSpokesCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsGlobalHubsPatchCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsGlobalHubsListSpokesCall) 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.hub) - if err != nil { - return nil, err + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } - reqHeaders.Set("Content-Type", "application/json") + var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:listSpokes") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("PATCH", urls, body) + req, err := http.NewRequest("GET", urls, body) if err != nil { return nil, err } @@ -3740,14 +4519,14 @@ func (c *ProjectsLocationsGlobalHubsPatchCall) doRequest(alt string) (*http.Resp return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "networkconnectivity.projects.locations.global.hubs.patch" call. -// Exactly one of *GoogleLongrunningOperation or error will be non-nil. -// Any non-2xx status code is an error. Response headers are in either -// *GoogleLongrunningOperation.ServerResponse.Header or (if a response -// was returned at all) in error.(*googleapi.Error).Header. Use +// Do executes the "networkconnectivity.projects.locations.global.hubs.listSpokes" call. +// Exactly one of *ListHubSpokesResponse or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *ListHubSpokesResponse.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 *ProjectsLocationsGlobalHubsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsGlobalHubsListSpokesCall) Do(opts ...googleapi.CallOption) (*ListHubSpokesResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -3766,7 +4545,241 @@ func (c *ProjectsLocationsGlobalHubsPatchCall) Do(opts ...googleapi.CallOption) if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleLongrunningOperation{ + ret := &ListHubSpokesResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Lists the Network Connectivity Center spokes associated with a specified hub and location. The list includes both spokes that are attached to the hub and spokes that have been proposed but not yet accepted.", + // "flatPath": "v1/projects/{projectsId}/locations/global/hubs/{hubsId}:listSpokes", + // "httpMethod": "GET", + // "id": "networkconnectivity.projects.locations.global.hubs.listSpokes", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "filter": { + // "description": "An expression that filters the list of results.", + // "location": "query", + // "type": "string" + // }, + // "name": { + // "description": "Required. The name of the hub.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/global/hubs/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "orderBy": { + // "description": "Sort the results by name or create_time.", + // "location": "query", + // "type": "string" + // }, + // "pageSize": { + // "description": "The maximum number of results to return per page.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "The page token.", + // "location": "query", + // "type": "string" + // }, + // "spokeLocations": { + // "description": "A list of locations. Specify one of the following: `[global]`, a single region (for example, `[us-central1]`), or a combination of values (for example, `[global, us-central1, us-west1]`). If the spoke_locations field is populated, the list of results includes only spokes in the specified location. If the spoke_locations field is not populated, the list of results includes spokes in all locations.", + // "location": "query", + // "repeated": true, + // "type": "string" + // }, + // "view": { + // "description": "The view of the spoke to return. The view you use determines which spoke fields are included in the response.", + // "enum": [ + // "SPOKE_VIEW_UNSPECIFIED", + // "BASIC", + // "DETAILED" + // ], + // "enumDescriptions": [ + // "The spoke view is unspecified. When the spoke view is unspecified, the API returns the same fields as the `BASIC` view.", + // "Includes `name`, `create_time`, `hub`, `unique_id`, `state`, `reasons`, and `spoke_type`. This is the default value.", + // "Includes all spoke fields except `labels`. You can use the `DETAILED` view only when you set the `spoke_locations` field to `[global]`." + // ], + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1/{+name}:listSpokes", + // "response": { + // "$ref": "ListHubSpokesResponse" + // }, + // "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 *ProjectsLocationsGlobalHubsListSpokesCall) Pages(ctx context.Context, f func(*ListHubSpokesResponse) 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 "networkconnectivity.projects.locations.global.hubs.patch": + +type ProjectsLocationsGlobalHubsPatchCall struct { + s *Service + name string + hub *Hub + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Patch: Updates the description and/or labels of a Network +// Connectivity Center hub. +// +// - name: Immutable. The name of the hub. Hub names must be unique. +// They use the following form: +// `projects/{project_number}/locations/global/hubs/{hub_id}`. +func (r *ProjectsLocationsGlobalHubsService) Patch(name string, hub *Hub) *ProjectsLocationsGlobalHubsPatchCall { + c := &ProjectsLocationsGlobalHubsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.hub = hub + return c +} + +// RequestId sets the optional parameter "requestId": A unique request +// ID (optional). If you specify this ID, you can use it in cases when +// you need to retry your request. When you need to retry, this ID lets +// the server know that it can ignore the request if it has already been +// completed. The server guarantees that for at least 60 minutes after +// the first request. For example, consider a situation where you make +// an initial request and the request times out. If you make the request +// again with the same request ID, the server can check to see whether +// the original operation was received. If it was, the server ignores +// the second request. This behavior prevents clients from mistakenly +// creating duplicate commitments. The request ID must be a valid UUID, +// with the exception that zero UUID is not supported +// (00000000-0000-0000-0000-000000000000). +func (c *ProjectsLocationsGlobalHubsPatchCall) RequestId(requestId string) *ProjectsLocationsGlobalHubsPatchCall { + c.urlParams_.Set("requestId", requestId) + return c +} + +// UpdateMask sets the optional parameter "updateMask": In the case of +// an update to an existing hub, field mask is used to specify the +// fields to be overwritten. The fields specified in the update_mask are +// relative to the resource, not the full request. A field is +// overwritten if it is in the mask. If the user does not provide a +// mask, then all fields are overwritten. +func (c *ProjectsLocationsGlobalHubsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsGlobalHubsPatchCall { + 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 *ProjectsLocationsGlobalHubsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsGlobalHubsPatchCall { + 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 *ProjectsLocationsGlobalHubsPatchCall) Context(ctx context.Context) *ProjectsLocationsGlobalHubsPatchCall { + 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 *ProjectsLocationsGlobalHubsPatchCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsGlobalHubsPatchCall) 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.hub) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + 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 "networkconnectivity.projects.locations.global.hubs.patch" call. +// Exactly one of *GoogleLongrunningOperation or error will be non-nil. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleLongrunningOperation.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 *ProjectsLocationsGlobalHubsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleLongrunningOperation{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -4588,6 +5601,728 @@ func (c *ProjectsLocationsGlobalHubsGroupsTestIamPermissionsCall) Do(opts ...goo } +// method id "networkconnectivity.projects.locations.global.hubs.routeTables.get": + +type ProjectsLocationsGlobalHubsRouteTablesGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Gets details about a Network Connectivity Center route table. +// +// - name: The name of the route table resource. +func (r *ProjectsLocationsGlobalHubsRouteTablesService) Get(name string) *ProjectsLocationsGlobalHubsRouteTablesGetCall { + c := &ProjectsLocationsGlobalHubsRouteTablesGetCall{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 *ProjectsLocationsGlobalHubsRouteTablesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsGlobalHubsRouteTablesGetCall { + 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 *ProjectsLocationsGlobalHubsRouteTablesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsGlobalHubsRouteTablesGetCall { + 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 *ProjectsLocationsGlobalHubsRouteTablesGetCall) Context(ctx context.Context) *ProjectsLocationsGlobalHubsRouteTablesGetCall { + 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 *ProjectsLocationsGlobalHubsRouteTablesGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsGlobalHubsRouteTablesGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "networkconnectivity.projects.locations.global.hubs.routeTables.get" call. +// Exactly one of *RouteTable or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *RouteTable.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 *ProjectsLocationsGlobalHubsRouteTablesGetCall) Do(opts ...googleapi.CallOption) (*RouteTable, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &RouteTable{ + 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 details about a Network Connectivity Center route table.", + // "flatPath": "v1/projects/{projectsId}/locations/global/hubs/{hubsId}/routeTables/{routeTablesId}", + // "httpMethod": "GET", + // "id": "networkconnectivity.projects.locations.global.hubs.routeTables.get", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The name of the route table resource.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/global/hubs/[^/]+/routeTables/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}", + // "response": { + // "$ref": "RouteTable" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "networkconnectivity.projects.locations.global.hubs.routeTables.list": + +type ProjectsLocationsGlobalHubsRouteTablesListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists route tables in a given project. +// +// - parent: The parent resource's name. +func (r *ProjectsLocationsGlobalHubsRouteTablesService) List(parent string) *ProjectsLocationsGlobalHubsRouteTablesListCall { + c := &ProjectsLocationsGlobalHubsRouteTablesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// Filter sets the optional parameter "filter": An expression that +// filters the list of results. +func (c *ProjectsLocationsGlobalHubsRouteTablesListCall) Filter(filter string) *ProjectsLocationsGlobalHubsRouteTablesListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// OrderBy sets the optional parameter "orderBy": Sort the results by a +// certain order. +func (c *ProjectsLocationsGlobalHubsRouteTablesListCall) OrderBy(orderBy string) *ProjectsLocationsGlobalHubsRouteTablesListCall { + c.urlParams_.Set("orderBy", orderBy) + return c +} + +// PageSize sets the optional parameter "pageSize": The maximum number +// of results to return per page. +func (c *ProjectsLocationsGlobalHubsRouteTablesListCall) PageSize(pageSize int64) *ProjectsLocationsGlobalHubsRouteTablesListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": The page token. +func (c *ProjectsLocationsGlobalHubsRouteTablesListCall) PageToken(pageToken string) *ProjectsLocationsGlobalHubsRouteTablesListCall { + 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 *ProjectsLocationsGlobalHubsRouteTablesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsGlobalHubsRouteTablesListCall { + 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 *ProjectsLocationsGlobalHubsRouteTablesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsGlobalHubsRouteTablesListCall { + 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 *ProjectsLocationsGlobalHubsRouteTablesListCall) Context(ctx context.Context) *ProjectsLocationsGlobalHubsRouteTablesListCall { + 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 *ProjectsLocationsGlobalHubsRouteTablesListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsGlobalHubsRouteTablesListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/routeTables") + 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 "networkconnectivity.projects.locations.global.hubs.routeTables.list" call. +// Exactly one of *ListRouteTablesResponse or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *ListRouteTablesResponse.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 *ProjectsLocationsGlobalHubsRouteTablesListCall) Do(opts ...googleapi.CallOption) (*ListRouteTablesResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &ListRouteTablesResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Lists route tables in a given project.", + // "flatPath": "v1/projects/{projectsId}/locations/global/hubs/{hubsId}/routeTables", + // "httpMethod": "GET", + // "id": "networkconnectivity.projects.locations.global.hubs.routeTables.list", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "filter": { + // "description": "An expression that filters the list of results.", + // "location": "query", + // "type": "string" + // }, + // "orderBy": { + // "description": "Sort the results by a certain order.", + // "location": "query", + // "type": "string" + // }, + // "pageSize": { + // "description": "The maximum number of results to return per page.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "The page token.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "Required. The parent resource's name.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/global/hubs/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+parent}/routeTables", + // "response": { + // "$ref": "ListRouteTablesResponse" + // }, + // "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 *ProjectsLocationsGlobalHubsRouteTablesListCall) Pages(ctx context.Context, f func(*ListRouteTablesResponse) 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 "networkconnectivity.projects.locations.global.hubs.routeTables.routes.get": + +type ProjectsLocationsGlobalHubsRouteTablesRoutesGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Gets details about the specified route. +// +// - name: The name of the route resource. +func (r *ProjectsLocationsGlobalHubsRouteTablesRoutesService) Get(name string) *ProjectsLocationsGlobalHubsRouteTablesRoutesGetCall { + c := &ProjectsLocationsGlobalHubsRouteTablesRoutesGetCall{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 *ProjectsLocationsGlobalHubsRouteTablesRoutesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsGlobalHubsRouteTablesRoutesGetCall { + 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 *ProjectsLocationsGlobalHubsRouteTablesRoutesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsGlobalHubsRouteTablesRoutesGetCall { + 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 *ProjectsLocationsGlobalHubsRouteTablesRoutesGetCall) Context(ctx context.Context) *ProjectsLocationsGlobalHubsRouteTablesRoutesGetCall { + 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 *ProjectsLocationsGlobalHubsRouteTablesRoutesGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsGlobalHubsRouteTablesRoutesGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "networkconnectivity.projects.locations.global.hubs.routeTables.routes.get" call. +// Exactly one of *Route or error will be non-nil. Any non-2xx status +// code is an error. Response headers are in either +// *Route.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 *ProjectsLocationsGlobalHubsRouteTablesRoutesGetCall) Do(opts ...googleapi.CallOption) (*Route, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &Route{ + 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 details about the specified route.", + // "flatPath": "v1/projects/{projectsId}/locations/global/hubs/{hubsId}/routeTables/{routeTablesId}/routes/{routesId}", + // "httpMethod": "GET", + // "id": "networkconnectivity.projects.locations.global.hubs.routeTables.routes.get", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The name of the route resource.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/global/hubs/[^/]+/routeTables/[^/]+/routes/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}", + // "response": { + // "$ref": "Route" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "networkconnectivity.projects.locations.global.hubs.routeTables.routes.list": + +type ProjectsLocationsGlobalHubsRouteTablesRoutesListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists routes in a given project. +// +// - parent: The parent resource's name. +func (r *ProjectsLocationsGlobalHubsRouteTablesRoutesService) List(parent string) *ProjectsLocationsGlobalHubsRouteTablesRoutesListCall { + c := &ProjectsLocationsGlobalHubsRouteTablesRoutesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// Filter sets the optional parameter "filter": An expression that +// filters the list of results. +func (c *ProjectsLocationsGlobalHubsRouteTablesRoutesListCall) Filter(filter string) *ProjectsLocationsGlobalHubsRouteTablesRoutesListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// OrderBy sets the optional parameter "orderBy": Sort the results by a +// certain order. +func (c *ProjectsLocationsGlobalHubsRouteTablesRoutesListCall) OrderBy(orderBy string) *ProjectsLocationsGlobalHubsRouteTablesRoutesListCall { + c.urlParams_.Set("orderBy", orderBy) + return c +} + +// PageSize sets the optional parameter "pageSize": The maximum number +// of results to return per page. +func (c *ProjectsLocationsGlobalHubsRouteTablesRoutesListCall) PageSize(pageSize int64) *ProjectsLocationsGlobalHubsRouteTablesRoutesListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": The page token. +func (c *ProjectsLocationsGlobalHubsRouteTablesRoutesListCall) PageToken(pageToken string) *ProjectsLocationsGlobalHubsRouteTablesRoutesListCall { + 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 *ProjectsLocationsGlobalHubsRouteTablesRoutesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsGlobalHubsRouteTablesRoutesListCall { + 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 *ProjectsLocationsGlobalHubsRouteTablesRoutesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsGlobalHubsRouteTablesRoutesListCall { + 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 *ProjectsLocationsGlobalHubsRouteTablesRoutesListCall) Context(ctx context.Context) *ProjectsLocationsGlobalHubsRouteTablesRoutesListCall { + 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 *ProjectsLocationsGlobalHubsRouteTablesRoutesListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsGlobalHubsRouteTablesRoutesListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/routes") + 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 "networkconnectivity.projects.locations.global.hubs.routeTables.routes.list" call. +// Exactly one of *ListRoutesResponse or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *ListRoutesResponse.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 *ProjectsLocationsGlobalHubsRouteTablesRoutesListCall) Do(opts ...googleapi.CallOption) (*ListRoutesResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &ListRoutesResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Lists routes in a given project.", + // "flatPath": "v1/projects/{projectsId}/locations/global/hubs/{hubsId}/routeTables/{routeTablesId}/routes", + // "httpMethod": "GET", + // "id": "networkconnectivity.projects.locations.global.hubs.routeTables.routes.list", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "filter": { + // "description": "An expression that filters the list of results.", + // "location": "query", + // "type": "string" + // }, + // "orderBy": { + // "description": "Sort the results by a certain order.", + // "location": "query", + // "type": "string" + // }, + // "pageSize": { + // "description": "The maximum number of results to return per page.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "The page token.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "Required. The parent resource's name.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/global/hubs/[^/]+/routeTables/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+parent}/routes", + // "response": { + // "$ref": "ListRoutesResponse" + // }, + // "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 *ProjectsLocationsGlobalHubsRouteTablesRoutesListCall) Pages(ctx context.Context, f func(*ListRoutesResponse) 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 "networkconnectivity.projects.locations.global.policyBasedRoutes.getIamPolicy": type ProjectsLocationsGlobalPolicyBasedRoutesGetIamPolicyCall struct { @@ -6600,6 +8335,14 @@ func (r *ProjectsLocationsServiceClassesService) Delete(name string) *ProjectsLo return c } +// Etag sets the optional parameter "etag": The etag is computed by the +// server, and may be sent on update and delete requests to ensure the +// client has an up-to-date value before proceeding. +func (c *ProjectsLocationsServiceClassesDeleteCall) Etag(etag string) *ProjectsLocationsServiceClassesDeleteCall { + c.urlParams_.Set("etag", etag) + return c +} + // RequestId sets the optional parameter "requestId": An optional // request ID to identify requests. Specify a unique request ID so that // if you must retry your request, the server will know to ignore the @@ -6712,6 +8455,11 @@ func (c *ProjectsLocationsServiceClassesDeleteCall) Do(opts ...googleapi.CallOpt // "name" // ], // "parameters": { + // "etag": { + // "description": "Optional. The etag is computed by the server, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.", + // "location": "query", + // "type": "string" + // }, // "name": { // "description": "Required. The name of the ServiceClass to delete.", // "location": "path", @@ -7954,6 +9702,14 @@ func (r *ProjectsLocationsServiceConnectionMapsService) Delete(name string) *Pro return c } +// Etag sets the optional parameter "etag": The etag is computed by the +// server, and may be sent on update and delete requests to ensure the +// client has an up-to-date value before proceeding. +func (c *ProjectsLocationsServiceConnectionMapsDeleteCall) Etag(etag string) *ProjectsLocationsServiceConnectionMapsDeleteCall { + c.urlParams_.Set("etag", etag) + return c +} + // RequestId sets the optional parameter "requestId": An optional // request ID to identify requests. Specify a unique request ID so that // if you must retry your request, the server will know to ignore the @@ -8066,6 +9822,11 @@ func (c *ProjectsLocationsServiceConnectionMapsDeleteCall) Do(opts ...googleapi. // "name" // ], // "parameters": { + // "etag": { + // "description": "Optional. The etag is computed by the server, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.", + // "location": "query", + // "type": "string" + // }, // "name": { // "description": "Required. The name of the ServiceConnectionMap to delete.", // "location": "path", @@ -9308,6 +11069,14 @@ func (r *ProjectsLocationsServiceConnectionPoliciesService) Delete(name string) return c } +// Etag sets the optional parameter "etag": The etag is computed by the +// server, and may be sent on update and delete requests to ensure the +// client has an up-to-date value before proceeding. +func (c *ProjectsLocationsServiceConnectionPoliciesDeleteCall) Etag(etag string) *ProjectsLocationsServiceConnectionPoliciesDeleteCall { + c.urlParams_.Set("etag", etag) + return c +} + // RequestId sets the optional parameter "requestId": An optional // request ID to identify requests. Specify a unique request ID so that // if you must retry your request, the server will know to ignore the @@ -9420,6 +11189,11 @@ func (c *ProjectsLocationsServiceConnectionPoliciesDeleteCall) Do(opts ...google // "name" // ], // "parameters": { + // "etag": { + // "description": "Optional. The etag is computed by the server, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.", + // "location": "query", + // "type": "string" + // }, // "name": { // "description": "Required. The name of the ServiceConnectionPolicy to delete.", // "location": "path", @@ -10664,6 +12438,14 @@ func (r *ProjectsLocationsServiceConnectionTokensService) Delete(name string) *P return c } +// Etag sets the optional parameter "etag": The etag is computed by the +// server, and may be sent on update and delete requests to ensure the +// client has an up-to-date value before proceeding. +func (c *ProjectsLocationsServiceConnectionTokensDeleteCall) Etag(etag string) *ProjectsLocationsServiceConnectionTokensDeleteCall { + c.urlParams_.Set("etag", etag) + return c +} + // RequestId sets the optional parameter "requestId": An optional // request ID to identify requests. Specify a unique request ID so that // if you must retry your request, the server will know to ignore the @@ -10776,6 +12558,11 @@ func (c *ProjectsLocationsServiceConnectionTokensDeleteCall) Do(opts ...googleap // "name" // ], // "parameters": { + // "etag": { + // "description": "Optional. The etag is computed by the server, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.", + // "location": "query", + // "type": "string" + // }, // "name": { // "description": "Required. The name of the ServiceConnectionToken to delete.", // "location": "path", @@ -11162,6 +12949,149 @@ func (c *ProjectsLocationsServiceConnectionTokensListCall) Pages(ctx context.Con } } +// method id "networkconnectivity.projects.locations.spokes.accept": + +type ProjectsLocationsSpokesAcceptCall struct { + s *Service + name string + acceptspokerequest *AcceptSpokeRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Accept: Accepts a proposal to attach a Network Connectivity Center +// spoke to the hub. +// +// - name: The name of the spoke to accept. +func (r *ProjectsLocationsSpokesService) Accept(name string, acceptspokerequest *AcceptSpokeRequest) *ProjectsLocationsSpokesAcceptCall { + c := &ProjectsLocationsSpokesAcceptCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.acceptspokerequest = acceptspokerequest + 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 *ProjectsLocationsSpokesAcceptCall) Fields(s ...googleapi.Field) *ProjectsLocationsSpokesAcceptCall { + 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 *ProjectsLocationsSpokesAcceptCall) Context(ctx context.Context) *ProjectsLocationsSpokesAcceptCall { + 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 *ProjectsLocationsSpokesAcceptCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsSpokesAcceptCall) 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.acceptspokerequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:accept") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "networkconnectivity.projects.locations.spokes.accept" call. +// Exactly one of *GoogleLongrunningOperation or error will be non-nil. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleLongrunningOperation.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 *ProjectsLocationsSpokesAcceptCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleLongrunningOperation{ + 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": "Accepts a proposal to attach a Network Connectivity Center spoke to the hub.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/spokes/{spokesId}:accept", + // "httpMethod": "POST", + // "id": "networkconnectivity.projects.locations.spokes.accept", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The name of the spoke to accept.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/spokes/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}:accept", + // "request": { + // "$ref": "AcceptSpokeRequest" + // }, + // "response": { + // "$ref": "GoogleLongrunningOperation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + // method id "networkconnectivity.projects.locations.spokes.create": type ProjectsLocationsSpokesCreateCall struct { @@ -12215,6 +14145,150 @@ func (c *ProjectsLocationsSpokesPatchCall) Do(opts ...googleapi.CallOption) (*Go } +// method id "networkconnectivity.projects.locations.spokes.reject": + +type ProjectsLocationsSpokesRejectCall struct { + s *Service + name string + rejectspokerequest *RejectSpokeRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Reject: Does one of the following: * Rejects a proposal to attach a +// Network Connectivity Center spoke to the hub. * Rejects and removes a +// previously attached spoke from the hub. +// +// - name: The name of the spoke to reject. +func (r *ProjectsLocationsSpokesService) Reject(name string, rejectspokerequest *RejectSpokeRequest) *ProjectsLocationsSpokesRejectCall { + c := &ProjectsLocationsSpokesRejectCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.rejectspokerequest = rejectspokerequest + 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 *ProjectsLocationsSpokesRejectCall) Fields(s ...googleapi.Field) *ProjectsLocationsSpokesRejectCall { + 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 *ProjectsLocationsSpokesRejectCall) Context(ctx context.Context) *ProjectsLocationsSpokesRejectCall { + 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 *ProjectsLocationsSpokesRejectCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsSpokesRejectCall) 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.rejectspokerequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:reject") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "networkconnectivity.projects.locations.spokes.reject" call. +// Exactly one of *GoogleLongrunningOperation or error will be non-nil. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleLongrunningOperation.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 *ProjectsLocationsSpokesRejectCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleLongrunningOperation{ + 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": "Does one of the following: * Rejects a proposal to attach a Network Connectivity Center spoke to the hub. * Rejects and removes a previously attached spoke from the hub.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/spokes/{spokesId}:reject", + // "httpMethod": "POST", + // "id": "networkconnectivity.projects.locations.spokes.reject", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The name of the spoke to reject.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/spokes/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}:reject", + // "request": { + // "$ref": "RejectSpokeRequest" + // }, + // "response": { + // "$ref": "GoogleLongrunningOperation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + // method id "networkconnectivity.projects.locations.spokes.setIamPolicy": type ProjectsLocationsSpokesSetIamPolicyCall struct { diff --git a/networkconnectivity/v1alpha1/networkconnectivity-api.json b/networkconnectivity/v1alpha1/networkconnectivity-api.json index 28a0b721548..814e876b5b1 100644 --- a/networkconnectivity/v1alpha1/networkconnectivity-api.json +++ b/networkconnectivity/v1alpha1/networkconnectivity-api.json @@ -1116,7 +1116,7 @@ } } }, - "revision": "20230502", + "revision": "20230621", "rootUrl": "https://networkconnectivity.googleapis.com/", "schemas": { "AuditConfig": { @@ -1405,11 +1405,13 @@ "items": { "enum": [ "OVERLAP_UNSPECIFIED", - "OVERLAP_ROUTE_RANGE" + "OVERLAP_ROUTE_RANGE", + "OVERLAP_EXISTING_SUBNET_RANGE" ], "enumDescriptions": [ "No overlap overrides.", - "Allow creation of static routes more specific than the current internal range." + "Allow creation of static routes more specific than the current internal range.", + "Allow creation of internal ranges that overlap with existing subnets." ], "type": "string" }, diff --git a/networkconnectivity/v1alpha1/networkconnectivity-gen.go b/networkconnectivity/v1alpha1/networkconnectivity-gen.go index c66487738ef..6287fdcd50f 100644 --- a/networkconnectivity/v1alpha1/networkconnectivity-gen.go +++ b/networkconnectivity/v1alpha1/networkconnectivity-gen.go @@ -719,6 +719,8 @@ type InternalRange struct { // "OVERLAP_UNSPECIFIED" - No overlap overrides. // "OVERLAP_ROUTE_RANGE" - Allow creation of static routes more // specific than the current internal range. + // "OVERLAP_EXISTING_SUBNET_RANGE" - Allow creation of internal ranges + // that overlap with existing subnets. Overlaps []string `json:"overlaps,omitempty"` // Peering: The type of peering set for this internal range. diff --git a/networkservices/v1/networkservices-api.json b/networkservices/v1/networkservices-api.json index 94a63a5788e..d0147d5e55e 100644 --- a/networkservices/v1/networkservices-api.json +++ b/networkservices/v1/networkservices-api.json @@ -2148,7 +2148,7 @@ } } }, - "revision": "20230519", + "revision": "20230619", "rootUrl": "https://networkservices.googleapis.com/", "schemas": { "AuditConfig": { @@ -2383,7 +2383,7 @@ "id": "Gateway", "properties": { "addresses": { - "description": "Optional. Zero or one IPv4-address on which the Gateway will receive the traffic. When no address is provided, an IP from the subnetwork is allocated This field only applies to gateways of type 'SECURE_WEB_GATEWAY'. Gateways of type 'OPEN_MESH' listen on 0.0.0.0.", + "description": "Optional. Zero or one IPv4 or IPv6 address on which the Gateway will receive the traffic. When no address is provided, an IP from the subnetwork is allocated This field only applies to gateways of type 'SECURE_WEB_GATEWAY'. Gateways of type 'OPEN_MESH' listen on 0.0.0.0 for IPv4 and :: for IPv6.", "items": { "type": "string" }, @@ -2426,7 +2426,7 @@ "type": "string" }, "ports": { - "description": "Required. One or more port numbers (1-65535), on which the Gateway will receive traffic. The proxy binds to the specified ports. Gateways of type 'SECURE_WEB_GATEWAY' are limited to 1 port. Gateways of type 'OPEN_MESH' listen on 0.0.0.0 and support multiple ports.", + "description": "Required. One or more port numbers (1-65535), on which the Gateway will receive traffic. The proxy binds to the specified ports. Gateways of type 'SECURE_WEB_GATEWAY' are limited to 1 port. Gateways of type 'OPEN_MESH' listen on 0.0.0.0 for IPv4 and :: for IPv6 and support multiple ports.", "items": { "format": "int32", "type": "integer" @@ -3654,6 +3654,11 @@ "description": "Required. The full Service Directory Service name of the format projects/*/locations/*/namespaces/*/services/*", "type": "string" }, + "serviceId": { + "description": "Output only. The unique identifier of the Service Directory Service against which the Service Binding resource is validated. This is populated when the Service Binding resource is used in another resource (like Backend Service). This is of the UUID4 format.", + "readOnly": true, + "type": "string" + }, "updateTime": { "description": "Output only. The timestamp when the resource was updated.", "format": "google-datetime", diff --git a/networkservices/v1/networkservices-gen.go b/networkservices/v1/networkservices-gen.go index 6592b52c213..e2c7acf5d4d 100644 --- a/networkservices/v1/networkservices-gen.go +++ b/networkservices/v1/networkservices-gen.go @@ -781,10 +781,11 @@ func (s *Expr) MarshalJSON() ([]byte, error) { // have reference to to Gateways to dictate how requests should be // routed by this Gateway. type Gateway struct { - // Addresses: Optional. Zero or one IPv4-address on which the Gateway - // will receive the traffic. When no address is provided, an IP from the - // subnetwork is allocated This field only applies to gateways of type - // 'SECURE_WEB_GATEWAY'. Gateways of type 'OPEN_MESH' listen on 0.0.0.0. + // Addresses: Optional. Zero or one IPv4 or IPv6 address on which the + // Gateway will receive the traffic. When no address is provided, an IP + // from the subnetwork is allocated This field only applies to gateways + // of type 'SECURE_WEB_GATEWAY'. Gateways of type 'OPEN_MESH' listen on + // 0.0.0.0 for IPv4 and :: for IPv6. Addresses []string `json:"addresses,omitempty"` // CertificateUrls: Optional. A fully-qualified Certificates URL @@ -825,7 +826,8 @@ type Gateway struct { // Ports: Required. One or more port numbers (1-65535), on which the // Gateway will receive traffic. The proxy binds to the specified ports. // Gateways of type 'SECURE_WEB_GATEWAY' are limited to 1 port. Gateways - // of type 'OPEN_MESH' listen on 0.0.0.0 and support multiple ports. + // of type 'OPEN_MESH' listen on 0.0.0.0 for IPv4 and :: for IPv6 and + // support multiple ports. Ports []int64 `json:"ports,omitempty"` // Scope: Optional. Scope determines how configuration across multiple @@ -2961,6 +2963,13 @@ type ServiceBinding struct { // format projects/*/locations/*/namespaces/*/services/* Service string `json:"service,omitempty"` + // ServiceId: Output only. The unique identifier of the Service + // Directory Service against which the Service Binding resource is + // validated. This is populated when the Service Binding resource is + // used in another resource (like Backend Service). This is of the UUID4 + // format. + ServiceId string `json:"serviceId,omitempty"` + // UpdateTime: Output only. The timestamp when the resource was updated. UpdateTime string `json:"updateTime,omitempty"` diff --git a/networkservices/v1beta1/networkservices-api.json b/networkservices/v1beta1/networkservices-api.json index 8d4d0088425..d8facfebf25 100644 --- a/networkservices/v1beta1/networkservices-api.json +++ b/networkservices/v1beta1/networkservices-api.json @@ -1556,6 +1556,250 @@ } } }, + "serviceLbPolicies": { + "methods": { + "create": { + "description": "Creates a new ServiceLbPolicy in a given project and location.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/serviceLbPolicies", + "httpMethod": "POST", + "id": "networkservices.projects.locations.serviceLbPolicies.create", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "Required. The parent resource of the ServiceLbPolicy. Must be in the format `projects/{project}/locations/{location}`.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + }, + "serviceLbPolicyId": { + "description": "Required. Short name of the ServiceLbPolicy resource to be created. E.g. for resource name `projects/{project}/locations/{location}/serviceLbPolicies/{service_lb_policy_name}`. the id is value of {service_lb_policy_name}", + "location": "query", + "type": "string" + } + }, + "path": "v1beta1/{+parent}/serviceLbPolicies", + "request": { + "$ref": "ServiceLbPolicy" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "delete": { + "description": "Deletes a single ServiceLbPolicy.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/serviceLbPolicies/{serviceLbPoliciesId}", + "httpMethod": "DELETE", + "id": "networkservices.projects.locations.serviceLbPolicies.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. A name of the ServiceLbPolicy to delete. Must be in the format `projects/{project}/locations/{location}/serviceLbPolicies/*`.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/serviceLbPolicies/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+name}", + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "get": { + "description": "Gets details of a single ServiceLbPolicy.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/serviceLbPolicies/{serviceLbPoliciesId}", + "httpMethod": "GET", + "id": "networkservices.projects.locations.serviceLbPolicies.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. A name of the ServiceLbPolicy to get. Must be in the format `projects/{project}/locations/{location}/serviceLbPolicies/*`.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/serviceLbPolicies/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+name}", + "response": { + "$ref": "ServiceLbPolicy" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "getIamPolicy": { + "description": "Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/serviceLbPolicies/{serviceLbPoliciesId}:getIamPolicy", + "httpMethod": "GET", + "id": "networkservices.projects.locations.serviceLbPolicies.getIamPolicy", + "parameterOrder": [ + "resource" + ], + "parameters": { + "options.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", + "location": "query", + "type": "integer" + }, + "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/[^/]+/locations/[^/]+/serviceLbPolicies/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+resource}:getIamPolicy", + "response": { + "$ref": "Policy" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Lists ServiceLbPolicies in a given project and location.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/serviceLbPolicies", + "httpMethod": "GET", + "id": "networkservices.projects.locations.serviceLbPolicies.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "pageSize": { + "description": "Maximum number of ServiceLbPolicies to return per call.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "The value returned by the last `ListServiceLbPoliciesResponse` Indicates that this is a continuation of a prior `ListRouters` call, and that the system should return the next page of data.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The project and location from which the ServiceLbPolicies should be listed, specified in the format `projects/{project}/locations/{location}`.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+parent}/serviceLbPolicies", + "response": { + "$ref": "ListServiceLbPoliciesResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "patch": { + "description": "Updates the parameters of a single ServiceLbPolicy.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/serviceLbPolicies/{serviceLbPoliciesId}", + "httpMethod": "PATCH", + "id": "networkservices.projects.locations.serviceLbPolicies.patch", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. Name of the ServiceLbPolicy resource. It matches pattern `projects/{project}/locations/{location}/serviceLbPolicies/{service_lb_policy_name}`.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/serviceLbPolicies/[^/]+$", + "required": true, + "type": "string" + }, + "updateMask": { + "description": "Optional. Field mask is used to specify the fields to be overwritten in the ServiceLbPolicy resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten.", + "format": "google-fieldmask", + "location": "query", + "type": "string" + } + }, + "path": "v1beta1/{+name}", + "request": { + "$ref": "ServiceLbPolicy" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "setIamPolicy": { + "description": "Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/serviceLbPolicies/{serviceLbPoliciesId}:setIamPolicy", + "httpMethod": "POST", + "id": "networkservices.projects.locations.serviceLbPolicies.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/[^/]+/locations/[^/]+/serviceLbPolicies/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+resource}:setIamPolicy", + "request": { + "$ref": "SetIamPolicyRequest" + }, + "response": { + "$ref": "Policy" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "testIamPermissions": { + "description": "Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a `NOT_FOUND` error. Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may \"fail open\" without warning.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/serviceLbPolicies/{serviceLbPoliciesId}:testIamPermissions", + "httpMethod": "POST", + "id": "networkservices.projects.locations.serviceLbPolicies.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/[^/]+/locations/[^/]+/serviceLbPolicies/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+resource}:testIamPermissions", + "request": { + "$ref": "TestIamPermissionsRequest" + }, + "response": { + "$ref": "TestIamPermissionsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + }, "tcpRoutes": { "methods": { "create": { @@ -1875,7 +2119,7 @@ } } }, - "revision": "20230510", + "revision": "20230619", "rootUrl": "https://networkservices.googleapis.com/", "schemas": { "AuditConfig": { @@ -2067,7 +2311,7 @@ "id": "Gateway", "properties": { "addresses": { - "description": "Optional. Zero or one IPv4-address on which the Gateway will receive the traffic. When no address is provided, an IP from the subnetwork is allocated This field only applies to gateways of type 'SECURE_WEB_GATEWAY'. Gateways of type 'OPEN_MESH' listen on 0.0.0.0.", + "description": "Optional. Zero or one IPv4 or IPv6 address on which the Gateway will receive the traffic. When no address is provided, an IP from the subnetwork is allocated This field only applies to gateways of type 'SECURE_WEB_GATEWAY'. Gateways of type 'OPEN_MESH' listen on 0.0.0.0 for IPv4 and :: for IPv6.", "items": { "type": "string" }, @@ -2110,7 +2354,7 @@ "type": "string" }, "ports": { - "description": "Required. One or more port numbers (1-65535), on which the Gateway will receive traffic. The proxy binds to the specified ports. Gateways of type 'SECURE_WEB_GATEWAY' are limited to 1 port. Gateways of type 'OPEN_MESH' listen on 0.0.0.0 and support multiple ports.", + "description": "Required. One or more port numbers (1-65535), on which the Gateway will receive traffic. The proxy binds to the specified ports. Gateways of type 'SECURE_WEB_GATEWAY' are limited to 1 port. Gateways of type 'OPEN_MESH' listen on 0.0.0.0 for IPv4 and :: for IPv6 and support multiple ports.", "items": { "format": "int32", "type": "integer" @@ -3085,6 +3329,24 @@ }, "type": "object" }, + "ListServiceLbPoliciesResponse": { + "description": "Response returned by the ListServiceLbPolicies method.", + "id": "ListServiceLbPoliciesResponse", + "properties": { + "nextPageToken": { + "description": "If there might be more results than those appearing in this response, then `next_page_token` is included. To get the next set of results, call this method again using the value of `next_page_token` as `page_token`.", + "type": "string" + }, + "serviceLbPolicies": { + "description": "List of ServiceLbPolicy resources.", + "items": { + "$ref": "ServiceLbPolicy" + }, + "type": "array" + } + }, + "type": "object" + }, "ListTcpRoutesResponse": { "description": "Response returned by the ListTcpRoutes method.", "id": "ListTcpRoutesResponse", @@ -3381,6 +3643,11 @@ "description": "Required. The full Service Directory Service name of the format projects/*/locations/*/namespaces/*/services/*", "type": "string" }, + "serviceId": { + "description": "Output only. The unique identifier of the Service Directory Service against which the Service Binding resource is validated. This is populated when the Service Binding resource is used in another resource (like Backend Service). This is of the UUID4 format.", + "readOnly": true, + "type": "string" + }, "updateTime": { "description": "Output only. The timestamp when the resource was updated.", "format": "google-datetime", @@ -3390,6 +3657,89 @@ }, "type": "object" }, + "ServiceLbPolicy": { + "description": "ServiceLbPolicy holds global load balancing and traffic distribution configuration that can be applied to a BackendService.", + "id": "ServiceLbPolicy", + "properties": { + "autoCapacityDrain": { + "$ref": "ServiceLbPolicyAutoCapacityDrain", + "description": "Optional. Configuration to automatically move traffic away for unhealthy IG/NEG for the associated Backend Service." + }, + "createTime": { + "description": "Output only. The timestamp when this resource was created.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "description": { + "description": "Optional. A free-text description of the resource. Max length 1024 characters.", + "type": "string" + }, + "failoverConfig": { + "$ref": "ServiceLbPolicyFailoverConfig", + "description": "Optional. Configuration related to health based failover." + }, + "labels": { + "additionalProperties": { + "type": "string" + }, + "description": "Optional. Set of label tags associated with the ServiceLbPolicy resource.", + "type": "object" + }, + "loadBalancingAlgorithm": { + "description": "Optional. The type of load balancing algorithm to be used. The default behavior is WATERFALL_BY_REGION.", + "enum": [ + "LOAD_BALANCING_ALGORITHM_UNSPECIFIED", + "SPRAY_TO_WORLD", + "SPRAY_TO_REGION", + "WATERFALL_BY_REGION", + "WATERFALL_BY_ZONE" + ], + "enumDescriptions": [ + "The type of the loadbalancing algorithm is unspecified.", + "Balance traffic across all backends across the world proportionally based on capacity.", + "Direct traffic to the nearest region with endpoints and capacity before spilling over to other regions and spread the traffic from each client to all the MIGs/NEGs in a region.", + "Direct traffic to the nearest region with endpoints and capacity before spilling over to other regions. All MIGs/NEGs within a region are evenly loaded but each client might not spread the traffic to all the MIGs/NEGs in the region.", + "Attempt to keep traffic in a single zone closest to the client, before spilling over to other zones." + ], + "type": "string" + }, + "name": { + "description": "Required. Name of the ServiceLbPolicy resource. It matches pattern `projects/{project}/locations/{location}/serviceLbPolicies/{service_lb_policy_name}`.", + "type": "string" + }, + "updateTime": { + "description": "Output only. The timestamp when this resource was last updated.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, + "ServiceLbPolicyAutoCapacityDrain": { + "description": "Option to specify if an unhealthy IG/NEG should be considered for global load balancing and traffic routing.", + "id": "ServiceLbPolicyAutoCapacityDrain", + "properties": { + "enable": { + "description": "Optional. If set to 'True', an unhealthy IG/NEG will be set as drained. - An IG/NEG is considered unhealthy if less than 25% of the instances/endpoints in the IG/NEG are healthy. - This option will never result in draining more than 50% of the configured IGs/NEGs for the Backend Service.", + "type": "boolean" + } + }, + "type": "object" + }, + "ServiceLbPolicyFailoverConfig": { + "description": "Option to specify health based failover behavior. This is not related to Network load balancer FailoverPolicy.", + "id": "ServiceLbPolicyFailoverConfig", + "properties": { + "failoverHealthThreshold": { + "description": "Optional. The percentage threshold that a load balancer will begin to send traffic to failover backends. If the percentage of endpoints in a MIG/NEG is smaller than this value, traffic would be sent to failover backends if possible. This field should be set to a value between 1 and 99. The default value is 50 for Global external HTTP(S) load balancer (classic) and Proxyless service mesh, and 70 for others.", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, "SetIamPolicyRequest": { "description": "Request message for `SetIamPolicy` method.", "id": "SetIamPolicyRequest", diff --git a/networkservices/v1beta1/networkservices-gen.go b/networkservices/v1beta1/networkservices-gen.go index a919a37fd11..648e4e78cc9 100644 --- a/networkservices/v1beta1/networkservices-gen.go +++ b/networkservices/v1beta1/networkservices-gen.go @@ -159,6 +159,7 @@ func NewProjectsLocationsService(s *Service) *ProjectsLocationsService { rs.Meshes = NewProjectsLocationsMeshesService(s) rs.Operations = NewProjectsLocationsOperationsService(s) rs.ServiceBindings = NewProjectsLocationsServiceBindingsService(s) + rs.ServiceLbPolicies = NewProjectsLocationsServiceLbPoliciesService(s) rs.TcpRoutes = NewProjectsLocationsTcpRoutesService(s) rs.TlsRoutes = NewProjectsLocationsTlsRoutesService(s) return rs @@ -181,6 +182,8 @@ type ProjectsLocationsService struct { ServiceBindings *ProjectsLocationsServiceBindingsService + ServiceLbPolicies *ProjectsLocationsServiceLbPoliciesService + TcpRoutes *ProjectsLocationsTcpRoutesService TlsRoutes *ProjectsLocationsTlsRoutesService @@ -249,6 +252,15 @@ type ProjectsLocationsServiceBindingsService struct { s *Service } +func NewProjectsLocationsServiceLbPoliciesService(s *Service) *ProjectsLocationsServiceLbPoliciesService { + rs := &ProjectsLocationsServiceLbPoliciesService{s: s} + return rs +} + +type ProjectsLocationsServiceLbPoliciesService struct { + s *Service +} + func NewProjectsLocationsTcpRoutesService(s *Service) *ProjectsLocationsTcpRoutesService { rs := &ProjectsLocationsTcpRoutesService{s: s} return rs @@ -653,10 +665,11 @@ func (s *Expr) MarshalJSON() ([]byte, error) { // have reference to to Gateways to dictate how requests should be // routed by this Gateway. type Gateway struct { - // Addresses: Optional. Zero or one IPv4-address on which the Gateway - // will receive the traffic. When no address is provided, an IP from the - // subnetwork is allocated This field only applies to gateways of type - // 'SECURE_WEB_GATEWAY'. Gateways of type 'OPEN_MESH' listen on 0.0.0.0. + // Addresses: Optional. Zero or one IPv4 or IPv6 address on which the + // Gateway will receive the traffic. When no address is provided, an IP + // from the subnetwork is allocated This field only applies to gateways + // of type 'SECURE_WEB_GATEWAY'. Gateways of type 'OPEN_MESH' listen on + // 0.0.0.0 for IPv4 and :: for IPv6. Addresses []string `json:"addresses,omitempty"` // CertificateUrls: Optional. A fully-qualified Certificates URL @@ -697,7 +710,8 @@ type Gateway struct { // Ports: Required. One or more port numbers (1-65535), on which the // Gateway will receive traffic. The proxy binds to the specified ports. // Gateways of type 'SECURE_WEB_GATEWAY' are limited to 1 port. Gateways - // of type 'OPEN_MESH' listen on 0.0.0.0 and support multiple ports. + // of type 'OPEN_MESH' listen on 0.0.0.0 for IPv4 and :: for IPv6 and + // support multiple ports. Ports []int64 `json:"ports,omitempty"` // Scope: Optional. Scope determines how configuration across multiple @@ -2398,6 +2412,45 @@ func (s *ListServiceBindingsResponse) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// ListServiceLbPoliciesResponse: Response returned by the +// ListServiceLbPolicies method. +type ListServiceLbPoliciesResponse struct { + // NextPageToken: If there might be more results than those appearing in + // this response, then `next_page_token` is included. To get the next + // set of results, call this method again using the value of + // `next_page_token` as `page_token`. + NextPageToken string `json:"nextPageToken,omitempty"` + + // ServiceLbPolicies: List of ServiceLbPolicy resources. + ServiceLbPolicies []*ServiceLbPolicy `json:"serviceLbPolicies,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 *ListServiceLbPoliciesResponse) MarshalJSON() ([]byte, error) { + type NoMethod ListServiceLbPoliciesResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // ListTcpRoutesResponse: Response returned by the ListTcpRoutes method. type ListTcpRoutesResponse struct { // NextPageToken: If there might be more results than those appearing in @@ -2924,6 +2977,13 @@ type ServiceBinding struct { // format projects/*/locations/*/namespaces/*/services/* Service string `json:"service,omitempty"` + // ServiceId: Output only. The unique identifier of the Service + // Directory Service against which the Service Binding resource is + // validated. This is populated when the Service Binding resource is + // used in another resource (like Backend Service). This is of the UUID4 + // format. + ServiceId string `json:"serviceId,omitempty"` + // UpdateTime: Output only. The timestamp when the resource was updated. UpdateTime string `json:"updateTime,omitempty"` @@ -2954,6 +3014,159 @@ func (s *ServiceBinding) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// ServiceLbPolicy: ServiceLbPolicy holds global load balancing and +// traffic distribution configuration that can be applied to a +// BackendService. +type ServiceLbPolicy struct { + // AutoCapacityDrain: Optional. Configuration to automatically move + // traffic away for unhealthy IG/NEG for the associated Backend Service. + AutoCapacityDrain *ServiceLbPolicyAutoCapacityDrain `json:"autoCapacityDrain,omitempty"` + + // CreateTime: Output only. The timestamp when this resource was + // created. + CreateTime string `json:"createTime,omitempty"` + + // Description: Optional. A free-text description of the resource. Max + // length 1024 characters. + Description string `json:"description,omitempty"` + + // FailoverConfig: Optional. Configuration related to health based + // failover. + FailoverConfig *ServiceLbPolicyFailoverConfig `json:"failoverConfig,omitempty"` + + // Labels: Optional. Set of label tags associated with the + // ServiceLbPolicy resource. + Labels map[string]string `json:"labels,omitempty"` + + // LoadBalancingAlgorithm: Optional. The type of load balancing + // algorithm to be used. The default behavior is WATERFALL_BY_REGION. + // + // Possible values: + // "LOAD_BALANCING_ALGORITHM_UNSPECIFIED" - The type of the + // loadbalancing algorithm is unspecified. + // "SPRAY_TO_WORLD" - Balance traffic across all backends across the + // world proportionally based on capacity. + // "SPRAY_TO_REGION" - Direct traffic to the nearest region with + // endpoints and capacity before spilling over to other regions and + // spread the traffic from each client to all the MIGs/NEGs in a region. + // "WATERFALL_BY_REGION" - Direct traffic to the nearest region with + // endpoints and capacity before spilling over to other regions. All + // MIGs/NEGs within a region are evenly loaded but each client might not + // spread the traffic to all the MIGs/NEGs in the region. + // "WATERFALL_BY_ZONE" - Attempt to keep traffic in a single zone + // closest to the client, before spilling over to other zones. + LoadBalancingAlgorithm string `json:"loadBalancingAlgorithm,omitempty"` + + // Name: Required. Name of the ServiceLbPolicy resource. It matches + // pattern + // `projects/{project}/locations/{location}/serviceLbPolicies/{service_lb + // _policy_name}`. + Name string `json:"name,omitempty"` + + // UpdateTime: Output only. The timestamp when this resource was last + // updated. + UpdateTime string `json:"updateTime,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "AutoCapacityDrain") + // 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. "AutoCapacityDrain") 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 *ServiceLbPolicy) MarshalJSON() ([]byte, error) { + type NoMethod ServiceLbPolicy + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// ServiceLbPolicyAutoCapacityDrain: Option to specify if an unhealthy +// IG/NEG should be considered for global load balancing and traffic +// routing. +type ServiceLbPolicyAutoCapacityDrain struct { + // Enable: Optional. If set to 'True', an unhealthy IG/NEG will be set + // as drained. - An IG/NEG is considered unhealthy if less than 25% of + // the instances/endpoints in the IG/NEG are healthy. - This option will + // never result in draining more than 50% of the configured IGs/NEGs for + // the Backend Service. + Enable bool `json:"enable,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Enable") 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. "Enable") 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 *ServiceLbPolicyAutoCapacityDrain) MarshalJSON() ([]byte, error) { + type NoMethod ServiceLbPolicyAutoCapacityDrain + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// ServiceLbPolicyFailoverConfig: Option to specify health based +// failover behavior. This is not related to Network load balancer +// FailoverPolicy. +type ServiceLbPolicyFailoverConfig struct { + // FailoverHealthThreshold: Optional. The percentage threshold that a + // load balancer will begin to send traffic to failover backends. If the + // percentage of endpoints in a MIG/NEG is smaller than this value, + // traffic would be sent to failover backends if possible. This field + // should be set to a value between 1 and 99. The default value is 50 + // for Global external HTTP(S) load balancer (classic) and Proxyless + // service mesh, and 70 for others. + FailoverHealthThreshold int64 `json:"failoverHealthThreshold,omitempty"` + + // ForceSendFields is a list of field names (e.g. + // "FailoverHealthThreshold") 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. "FailoverHealthThreshold") + // 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 *ServiceLbPolicyFailoverConfig) MarshalJSON() ([]byte, error) { + type NoMethod ServiceLbPolicyFailoverConfig + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // SetIamPolicyRequest: Request message for `SetIamPolicy` method. type SetIamPolicyRequest struct { // Policy: REQUIRED: The complete policy to be applied to the @@ -11031,6 +11244,1275 @@ func (c *ProjectsLocationsServiceBindingsTestIamPermissionsCall) Do(opts ...goog } +// method id "networkservices.projects.locations.serviceLbPolicies.create": + +type ProjectsLocationsServiceLbPoliciesCreateCall struct { + s *Service + parent string + servicelbpolicy *ServiceLbPolicy + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Create: Creates a new ServiceLbPolicy in a given project and +// location. +// +// - parent: The parent resource of the ServiceLbPolicy. Must be in the +// format `projects/{project}/locations/{location}`. +func (r *ProjectsLocationsServiceLbPoliciesService) Create(parent string, servicelbpolicy *ServiceLbPolicy) *ProjectsLocationsServiceLbPoliciesCreateCall { + c := &ProjectsLocationsServiceLbPoliciesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.servicelbpolicy = servicelbpolicy + return c +} + +// ServiceLbPolicyId sets the optional parameter "serviceLbPolicyId": +// Required. Short name of the ServiceLbPolicy resource to be created. +// E.g. for resource name +// `projects/{project}/locations/{location}/serviceLbPolicies/{service_lb +// _policy_name}`. the id is value of {service_lb_policy_name} +func (c *ProjectsLocationsServiceLbPoliciesCreateCall) ServiceLbPolicyId(serviceLbPolicyId string) *ProjectsLocationsServiceLbPoliciesCreateCall { + c.urlParams_.Set("serviceLbPolicyId", serviceLbPolicyId) + 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 *ProjectsLocationsServiceLbPoliciesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsServiceLbPoliciesCreateCall { + 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 *ProjectsLocationsServiceLbPoliciesCreateCall) Context(ctx context.Context) *ProjectsLocationsServiceLbPoliciesCreateCall { + 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 *ProjectsLocationsServiceLbPoliciesCreateCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsServiceLbPoliciesCreateCall) 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.servicelbpolicy) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/serviceLbPolicies") + 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 "networkservices.projects.locations.serviceLbPolicies.create" call. +// Exactly one of *Operation or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified +// to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsServiceLbPoliciesCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &Operation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Creates a new ServiceLbPolicy in a given project and location.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/serviceLbPolicies", + // "httpMethod": "POST", + // "id": "networkservices.projects.locations.serviceLbPolicies.create", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "parent": { + // "description": "Required. The parent resource of the ServiceLbPolicy. Must be in the format `projects/{project}/locations/{location}`.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "serviceLbPolicyId": { + // "description": "Required. Short name of the ServiceLbPolicy resource to be created. E.g. for resource name `projects/{project}/locations/{location}/serviceLbPolicies/{service_lb_policy_name}`. the id is value of {service_lb_policy_name}", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1beta1/{+parent}/serviceLbPolicies", + // "request": { + // "$ref": "ServiceLbPolicy" + // }, + // "response": { + // "$ref": "Operation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "networkservices.projects.locations.serviceLbPolicies.delete": + +type ProjectsLocationsServiceLbPoliciesDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Delete: Deletes a single ServiceLbPolicy. +// +// - name: A name of the ServiceLbPolicy to delete. Must be in the +// format +// `projects/{project}/locations/{location}/serviceLbPolicies/*`. +func (r *ProjectsLocationsServiceLbPoliciesService) Delete(name string) *ProjectsLocationsServiceLbPoliciesDeleteCall { + c := &ProjectsLocationsServiceLbPoliciesDeleteCall{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 *ProjectsLocationsServiceLbPoliciesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsServiceLbPoliciesDeleteCall { + 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 *ProjectsLocationsServiceLbPoliciesDeleteCall) Context(ctx context.Context) *ProjectsLocationsServiceLbPoliciesDeleteCall { + 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 *ProjectsLocationsServiceLbPoliciesDeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsServiceLbPoliciesDeleteCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("DELETE", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "networkservices.projects.locations.serviceLbPolicies.delete" call. +// Exactly one of *Operation or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified +// to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsServiceLbPoliciesDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &Operation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Deletes a single ServiceLbPolicy.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/serviceLbPolicies/{serviceLbPoliciesId}", + // "httpMethod": "DELETE", + // "id": "networkservices.projects.locations.serviceLbPolicies.delete", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. A name of the ServiceLbPolicy to delete. Must be in the format `projects/{project}/locations/{location}/serviceLbPolicies/*`.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/serviceLbPolicies/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+name}", + // "response": { + // "$ref": "Operation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "networkservices.projects.locations.serviceLbPolicies.get": + +type ProjectsLocationsServiceLbPoliciesGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Gets details of a single ServiceLbPolicy. +// +// - name: A name of the ServiceLbPolicy to get. Must be in the format +// `projects/{project}/locations/{location}/serviceLbPolicies/*`. +func (r *ProjectsLocationsServiceLbPoliciesService) Get(name string) *ProjectsLocationsServiceLbPoliciesGetCall { + c := &ProjectsLocationsServiceLbPoliciesGetCall{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 *ProjectsLocationsServiceLbPoliciesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsServiceLbPoliciesGetCall { + 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 *ProjectsLocationsServiceLbPoliciesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsServiceLbPoliciesGetCall { + 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 *ProjectsLocationsServiceLbPoliciesGetCall) Context(ctx context.Context) *ProjectsLocationsServiceLbPoliciesGetCall { + 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 *ProjectsLocationsServiceLbPoliciesGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsServiceLbPoliciesGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "networkservices.projects.locations.serviceLbPolicies.get" call. +// Exactly one of *ServiceLbPolicy or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *ServiceLbPolicy.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 *ProjectsLocationsServiceLbPoliciesGetCall) Do(opts ...googleapi.CallOption) (*ServiceLbPolicy, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &ServiceLbPolicy{ + 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 details of a single ServiceLbPolicy.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/serviceLbPolicies/{serviceLbPoliciesId}", + // "httpMethod": "GET", + // "id": "networkservices.projects.locations.serviceLbPolicies.get", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. A name of the ServiceLbPolicy to get. Must be in the format `projects/{project}/locations/{location}/serviceLbPolicies/*`.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/serviceLbPolicies/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+name}", + // "response": { + // "$ref": "ServiceLbPolicy" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "networkservices.projects.locations.serviceLbPolicies.getIamPolicy": + +type ProjectsLocationsServiceLbPoliciesGetIamPolicyCall struct { + s *Service + resource string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// GetIamPolicy: Gets the access control policy for a resource. Returns +// an empty policy if the resource exists and does not have a policy +// set. +// +// - 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 *ProjectsLocationsServiceLbPoliciesService) GetIamPolicy(resource string) *ProjectsLocationsServiceLbPoliciesGetIamPolicyCall { + c := &ProjectsLocationsServiceLbPoliciesGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.resource = resource + return c +} + +// OptionsRequestedPolicyVersion sets the optional parameter +// "options.requestedPolicyVersion": 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). +func (c *ProjectsLocationsServiceLbPoliciesGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ProjectsLocationsServiceLbPoliciesGetIamPolicyCall { + c.urlParams_.Set("options.requestedPolicyVersion", fmt.Sprint(optionsRequestedPolicyVersion)) + 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 *ProjectsLocationsServiceLbPoliciesGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsServiceLbPoliciesGetIamPolicyCall { + 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 *ProjectsLocationsServiceLbPoliciesGetIamPolicyCall) IfNoneMatch(entityTag string) *ProjectsLocationsServiceLbPoliciesGetIamPolicyCall { + 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 *ProjectsLocationsServiceLbPoliciesGetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsServiceLbPoliciesGetIamPolicyCall { + 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 *ProjectsLocationsServiceLbPoliciesGetIamPolicyCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsServiceLbPoliciesGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+resource}:getIamPolicy") + 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{ + "resource": c.resource, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "networkservices.projects.locations.serviceLbPolicies.getIamPolicy" call. +// Exactly one of *Policy or error will be non-nil. Any non-2xx status +// code is an error. Response headers are in either +// *Policy.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 *ProjectsLocationsServiceLbPoliciesGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &Policy{ + 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. Returns an empty policy if the resource exists and does not have a policy set.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/serviceLbPolicies/{serviceLbPoliciesId}:getIamPolicy", + // "httpMethod": "GET", + // "id": "networkservices.projects.locations.serviceLbPolicies.getIamPolicy", + // "parameterOrder": [ + // "resource" + // ], + // "parameters": { + // "options.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", + // "location": "query", + // "type": "integer" + // }, + // "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/[^/]+/locations/[^/]+/serviceLbPolicies/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+resource}:getIamPolicy", + // "response": { + // "$ref": "Policy" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "networkservices.projects.locations.serviceLbPolicies.list": + +type ProjectsLocationsServiceLbPoliciesListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists ServiceLbPolicies in a given project and location. +// +// - parent: The project and location from which the ServiceLbPolicies +// should be listed, specified in the format +// `projects/{project}/locations/{location}`. +func (r *ProjectsLocationsServiceLbPoliciesService) List(parent string) *ProjectsLocationsServiceLbPoliciesListCall { + c := &ProjectsLocationsServiceLbPoliciesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// PageSize sets the optional parameter "pageSize": Maximum number of +// ServiceLbPolicies to return per call. +func (c *ProjectsLocationsServiceLbPoliciesListCall) PageSize(pageSize int64) *ProjectsLocationsServiceLbPoliciesListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": The value returned +// by the last `ListServiceLbPoliciesResponse` Indicates that this is a +// continuation of a prior `ListRouters` call, and that the system +// should return the next page of data. +func (c *ProjectsLocationsServiceLbPoliciesListCall) PageToken(pageToken string) *ProjectsLocationsServiceLbPoliciesListCall { + 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 *ProjectsLocationsServiceLbPoliciesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsServiceLbPoliciesListCall { + 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 *ProjectsLocationsServiceLbPoliciesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsServiceLbPoliciesListCall { + 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 *ProjectsLocationsServiceLbPoliciesListCall) Context(ctx context.Context) *ProjectsLocationsServiceLbPoliciesListCall { + 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 *ProjectsLocationsServiceLbPoliciesListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsServiceLbPoliciesListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/serviceLbPolicies") + 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 "networkservices.projects.locations.serviceLbPolicies.list" call. +// Exactly one of *ListServiceLbPoliciesResponse or error will be +// non-nil. Any non-2xx status code is an error. Response headers are in +// either *ListServiceLbPoliciesResponse.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 *ProjectsLocationsServiceLbPoliciesListCall) Do(opts ...googleapi.CallOption) (*ListServiceLbPoliciesResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &ListServiceLbPoliciesResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Lists ServiceLbPolicies in a given project and location.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/serviceLbPolicies", + // "httpMethod": "GET", + // "id": "networkservices.projects.locations.serviceLbPolicies.list", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "pageSize": { + // "description": "Maximum number of ServiceLbPolicies to return per call.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "The value returned by the last `ListServiceLbPoliciesResponse` Indicates that this is a continuation of a prior `ListRouters` call, and that the system should return the next page of data.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "Required. The project and location from which the ServiceLbPolicies should be listed, specified in the format `projects/{project}/locations/{location}`.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+parent}/serviceLbPolicies", + // "response": { + // "$ref": "ListServiceLbPoliciesResponse" + // }, + // "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 *ProjectsLocationsServiceLbPoliciesListCall) Pages(ctx context.Context, f func(*ListServiceLbPoliciesResponse) 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 "networkservices.projects.locations.serviceLbPolicies.patch": + +type ProjectsLocationsServiceLbPoliciesPatchCall struct { + s *Service + name string + servicelbpolicy *ServiceLbPolicy + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Patch: Updates the parameters of a single ServiceLbPolicy. +// +// - name: Name of the ServiceLbPolicy resource. It matches pattern +// `projects/{project}/locations/{location}/serviceLbPolicies/{service_ +// lb_policy_name}`. +func (r *ProjectsLocationsServiceLbPoliciesService) Patch(name string, servicelbpolicy *ServiceLbPolicy) *ProjectsLocationsServiceLbPoliciesPatchCall { + c := &ProjectsLocationsServiceLbPoliciesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.servicelbpolicy = servicelbpolicy + return c +} + +// UpdateMask sets the optional parameter "updateMask": Field mask is +// used to specify the fields to be overwritten in the ServiceLbPolicy +// resource by the update. The fields specified in the update_mask are +// relative to the resource, not the full request. A field will be +// overwritten if it is in the mask. If the user does not provide a mask +// then all fields will be overwritten. +func (c *ProjectsLocationsServiceLbPoliciesPatchCall) UpdateMask(updateMask string) *ProjectsLocationsServiceLbPoliciesPatchCall { + 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 *ProjectsLocationsServiceLbPoliciesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsServiceLbPoliciesPatchCall { + 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 *ProjectsLocationsServiceLbPoliciesPatchCall) Context(ctx context.Context) *ProjectsLocationsServiceLbPoliciesPatchCall { + 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 *ProjectsLocationsServiceLbPoliciesPatchCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsServiceLbPoliciesPatchCall) 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.servicelbpolicy) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("PATCH", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "networkservices.projects.locations.serviceLbPolicies.patch" call. +// Exactly one of *Operation or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified +// to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsServiceLbPoliciesPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &Operation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Updates the parameters of a single ServiceLbPolicy.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/serviceLbPolicies/{serviceLbPoliciesId}", + // "httpMethod": "PATCH", + // "id": "networkservices.projects.locations.serviceLbPolicies.patch", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. Name of the ServiceLbPolicy resource. It matches pattern `projects/{project}/locations/{location}/serviceLbPolicies/{service_lb_policy_name}`.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/serviceLbPolicies/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "updateMask": { + // "description": "Optional. Field mask is used to specify the fields to be overwritten in the ServiceLbPolicy resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten.", + // "format": "google-fieldmask", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1beta1/{+name}", + // "request": { + // "$ref": "ServiceLbPolicy" + // }, + // "response": { + // "$ref": "Operation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "networkservices.projects.locations.serviceLbPolicies.setIamPolicy": + +type ProjectsLocationsServiceLbPoliciesSetIamPolicyCall struct { + s *Service + resource string + setiampolicyrequest *SetIamPolicyRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// SetIamPolicy: Sets the access control policy on the specified +// resource. Replaces any existing policy. Can return `NOT_FOUND`, +// `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. +// +// - 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 *ProjectsLocationsServiceLbPoliciesService) SetIamPolicy(resource string, setiampolicyrequest *SetIamPolicyRequest) *ProjectsLocationsServiceLbPoliciesSetIamPolicyCall { + c := &ProjectsLocationsServiceLbPoliciesSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.resource = resource + c.setiampolicyrequest = setiampolicyrequest + 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 *ProjectsLocationsServiceLbPoliciesSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsServiceLbPoliciesSetIamPolicyCall { + 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 *ProjectsLocationsServiceLbPoliciesSetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsServiceLbPoliciesSetIamPolicyCall { + 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 *ProjectsLocationsServiceLbPoliciesSetIamPolicyCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsServiceLbPoliciesSetIamPolicyCall) 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.setiampolicyrequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+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 "networkservices.projects.locations.serviceLbPolicies.setIamPolicy" call. +// Exactly one of *Policy or error will be non-nil. Any non-2xx status +// code is an error. Response headers are in either +// *Policy.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 *ProjectsLocationsServiceLbPoliciesSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &Policy{ + 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 on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/serviceLbPolicies/{serviceLbPoliciesId}:setIamPolicy", + // "httpMethod": "POST", + // "id": "networkservices.projects.locations.serviceLbPolicies.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/[^/]+/locations/[^/]+/serviceLbPolicies/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+resource}:setIamPolicy", + // "request": { + // "$ref": "SetIamPolicyRequest" + // }, + // "response": { + // "$ref": "Policy" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "networkservices.projects.locations.serviceLbPolicies.testIamPermissions": + +type ProjectsLocationsServiceLbPoliciesTestIamPermissionsCall struct { + s *Service + resource string + testiampermissionsrequest *TestIamPermissionsRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// TestIamPermissions: Returns permissions that a caller has on the +// specified resource. If the resource does not exist, this will return +// an empty set of permissions, not a `NOT_FOUND` error. Note: This +// operation is designed to be used for building permission-aware UIs +// and command-line tools, not for authorization checking. This +// operation may "fail open" without warning. +// +// - 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 *ProjectsLocationsServiceLbPoliciesService) TestIamPermissions(resource string, testiampermissionsrequest *TestIamPermissionsRequest) *ProjectsLocationsServiceLbPoliciesTestIamPermissionsCall { + c := &ProjectsLocationsServiceLbPoliciesTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.resource = resource + c.testiampermissionsrequest = testiampermissionsrequest + 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 *ProjectsLocationsServiceLbPoliciesTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsServiceLbPoliciesTestIamPermissionsCall { + 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 *ProjectsLocationsServiceLbPoliciesTestIamPermissionsCall) Context(ctx context.Context) *ProjectsLocationsServiceLbPoliciesTestIamPermissionsCall { + 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 *ProjectsLocationsServiceLbPoliciesTestIamPermissionsCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsServiceLbPoliciesTestIamPermissionsCall) 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.testiampermissionsrequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+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 "networkservices.projects.locations.serviceLbPolicies.testIamPermissions" call. +// Exactly one of *TestIamPermissionsResponse or error will be non-nil. +// Any non-2xx status code is an error. Response headers are in either +// *TestIamPermissionsResponse.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 *ProjectsLocationsServiceLbPoliciesTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestIamPermissionsResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &TestIamPermissionsResponse{ + 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 permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a `NOT_FOUND` error. Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may \"fail open\" without warning.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/serviceLbPolicies/{serviceLbPoliciesId}:testIamPermissions", + // "httpMethod": "POST", + // "id": "networkservices.projects.locations.serviceLbPolicies.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/[^/]+/locations/[^/]+/serviceLbPolicies/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+resource}:testIamPermissions", + // "request": { + // "$ref": "TestIamPermissionsRequest" + // }, + // "response": { + // "$ref": "TestIamPermissionsResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + // method id "networkservices.projects.locations.tcpRoutes.create": type ProjectsLocationsTcpRoutesCreateCall struct { diff --git a/notebooks/v1/notebooks-api.json b/notebooks/v1/notebooks-api.json index 0659f255ce8..17067961f88 100644 --- a/notebooks/v1/notebooks-api.json +++ b/notebooks/v1/notebooks-api.json @@ -1932,7 +1932,7 @@ } } }, - "revision": "20230604", + "revision": "20230606", "rootUrl": "https://notebooks.googleapis.com/", "schemas": { "AcceleratorConfig": { @@ -2655,6 +2655,11 @@ "description": "Path to a Bash script that automatically runs after a notebook instance fully boots up. The path must be a URL or Cloud Storage path (`gs://path-to-file/file-name`).", "type": "string" }, + "preMigrationCheck": { + "$ref": "PreMigrationCheck", + "description": "Output only. Check how possible a migration from UmN to WbI is.", + "readOnly": true + }, "proxyUri": { "description": "Output only. The proxy endpoint that is used to access the Jupyter notebook.", "readOnly": true, @@ -3190,6 +3195,33 @@ }, "type": "object" }, + "PreMigrationCheck": { + "description": "PreMigrationCheck checks how feasible a migration from UmN is.", + "id": "PreMigrationCheck", + "properties": { + "message": { + "description": "Message provides a summary or workaround.", + "type": "string" + }, + "result": { + "description": "Result returns the result of the check.", + "enum": [ + "RESULT_UNSPECIFIED", + "IDENTICAL", + "PARTIAL", + "NOT_RECOMMENDED" + ], + "enumDescriptions": [ + "Default type.", + "UmN can be migrated to WbI as is minus non-relevant parts.", + "Part of the UmN won't be ported. The migration might default some values.", + "UmN has too many unsupported options for a migration to WbI." + ], + "type": "string" + } + }, + "type": "object" + }, "RefreshRuntimeTokenInternalRequest": { "description": "Request for getting a new access token.", "id": "RefreshRuntimeTokenInternalRequest", diff --git a/notebooks/v1/notebooks-gen.go b/notebooks/v1/notebooks-gen.go index d893031df98..6bcb0819a96 100644 --- a/notebooks/v1/notebooks-gen.go +++ b/notebooks/v1/notebooks-gen.go @@ -1290,6 +1290,10 @@ type Instance struct { // Cloud Storage path (`gs://path-to-file/file-name`). PostStartupScript string `json:"postStartupScript,omitempty"` + // PreMigrationCheck: Output only. Check how possible a migration from + // UmN to WbI is. + PreMigrationCheck *PreMigrationCheck `json:"preMigrationCheck,omitempty"` + // ProxyUri: Output only. The proxy endpoint that is used to access the // Jupyter notebook. ProxyUri string `json:"proxyUri,omitempty"` @@ -2174,6 +2178,47 @@ func (s *Policy) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// PreMigrationCheck: PreMigrationCheck checks how feasible a migration +// from UmN is. +type PreMigrationCheck struct { + // Message: Message provides a summary or workaround. + Message string `json:"message,omitempty"` + + // Result: Result returns the result of the check. + // + // Possible values: + // "RESULT_UNSPECIFIED" - Default type. + // "IDENTICAL" - UmN can be migrated to WbI as is minus non-relevant + // parts. + // "PARTIAL" - Part of the UmN won't be ported. The migration might + // default some values. + // "NOT_RECOMMENDED" - UmN has too many unsupported options for a + // migration to WbI. + Result string `json:"result,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Message") 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. "Message") 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 *PreMigrationCheck) MarshalJSON() ([]byte, error) { + type NoMethod PreMigrationCheck + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // RefreshRuntimeTokenInternalRequest: Request for getting a new access // token. type RefreshRuntimeTokenInternalRequest struct { diff --git a/orgpolicy/v2/orgpolicy-api.json b/orgpolicy/v2/orgpolicy-api.json index 6cc8f15ca9a..df86388745c 100644 --- a/orgpolicy/v2/orgpolicy-api.json +++ b/orgpolicy/v2/orgpolicy-api.json @@ -12,7 +12,7 @@ "baseUrl": "https://orgpolicy.googleapis.com/", "batchPath": "batch", "canonicalName": "OrgPolicy API", - "description": "The Org Policy API allows users to configure governance rules on their GCP resources across the Cloud Resource Hierarchy.", + "description": "The Organization Policy API allows users to configure governance rules on their Google Cloud resources across the resource hierarchy.", "discoveryVersion": "v1", "documentationLink": "https://cloud.google.com/orgpolicy/docs/reference/rest/index.html", "fullyEncodeReservedExpansion": true, @@ -915,7 +915,7 @@ } } }, - "revision": "20230405", + "revision": "20230625", "rootUrl": "https://orgpolicy.googleapis.com/", "schemas": { "GoogleCloudOrgpolicyV2AlternatePolicySpec": { diff --git a/people/v1/people-api.json b/people/v1/people-api.json index 7956abeddd1..be182a4d5d9 100644 --- a/people/v1/people-api.json +++ b/people/v1/people-api.json @@ -1172,7 +1172,7 @@ } } }, - "revision": "20230104", + "revision": "20230621", "rootUrl": "https://people.googleapis.com/", "schemas": { "Address": { @@ -1437,6 +1437,7 @@ "description": "Metadata about the birthday." }, "text": { + "deprecated": true, "description": "Prefer to use the `date` field if set. A free-form string representing the user's birthday. This value is not validated.", "type": "string" } @@ -1444,6 +1445,7 @@ "type": "object" }, "BraggingRights": { + "deprecated": true, "description": "**DEPRECATED**: No data will be returned A person's bragging rights.", "id": "BraggingRights", "properties": { @@ -1571,6 +1573,7 @@ "id": "ContactGroupMembership", "properties": { "contactGroupId": { + "deprecated": true, "description": "Output only. The contact group ID for the contact group membership.", "readOnly": true, "type": "string" @@ -1993,6 +1996,7 @@ "type": "integer" }, "totalPeople": { + "deprecated": true, "description": "**DEPRECATED** (Please use totalItems) The total number of people in the list without pagination.", "format": "int32", "type": "integer" @@ -2332,6 +2336,15 @@ "ALTERNATE_NAME", "SHORT_NAME" ], + "enumDeprecated": [ + false, + true, + true, + true, + true, + false, + true + ], "enumDescriptions": [ "Generic nickname.", "Maiden name or birth family name. Used when the person's family name has changed as a result of marriage.", @@ -2450,6 +2463,7 @@ "type": "array" }, "ageRange": { + "deprecated": true, "description": "Output only. **DEPRECATED** (Please use `person.ageRanges` instead) The person's age range.", "enum": [ "AGE_RANGE_UNSPECIFIED", @@ -2489,6 +2503,7 @@ "type": "array" }, "braggingRights": { + "deprecated": true, "description": "**DEPRECATED**: No data will be returned The person's bragging rights.", "items": { "$ref": "BraggingRights" @@ -2654,6 +2669,7 @@ "type": "array" }, "relationshipInterests": { + "deprecated": true, "description": "Output only. **DEPRECATED**: No data will be returned The person's relationship interests.", "items": { "$ref": "RelationshipInterest" @@ -2662,6 +2678,7 @@ "type": "array" }, "relationshipStatuses": { + "deprecated": true, "description": "Output only. **DEPRECATED**: No data will be returned The person's relationship statuses.", "items": { "$ref": "RelationshipStatus" @@ -2670,6 +2687,7 @@ "type": "array" }, "residences": { + "deprecated": true, "description": "**DEPRECATED**: (Please use `person.locations` instead) The person's residences.", "items": { "$ref": "Residence" @@ -2695,6 +2713,7 @@ "type": "array" }, "taglines": { + "deprecated": true, "description": "Output only. **DEPRECATED**: No data will be returned The person's taglines.", "items": { "$ref": "Tagline" @@ -2737,6 +2756,7 @@ "type": "array" }, "objectType": { + "deprecated": true, "description": "Output only. **DEPRECATED** (Please use `person.metadata.sources.profileMetadata.objectType` instead) The type of the person object.", "enum": [ "OBJECT_TYPE_UNSPECIFIED", @@ -2774,6 +2794,7 @@ "id": "PersonResponse", "properties": { "httpStatusCode": { + "deprecated": true, "description": "**DEPRECATED** (Please use status instead) [HTTP 1.1 status code] (http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html).", "format": "int32", "type": "integer" @@ -2908,6 +2929,7 @@ "type": "object" }, "RelationshipInterest": { + "deprecated": true, "description": "**DEPRECATED**: No data will be returned A person's relationship interest .", "id": "RelationshipInterest", "properties": { @@ -2928,6 +2950,7 @@ "type": "object" }, "RelationshipStatus": { + "deprecated": true, "description": "**DEPRECATED**: No data will be returned A person's relationship status.", "id": "RelationshipStatus", "properties": { @@ -2948,6 +2971,7 @@ "type": "object" }, "Residence": { + "deprecated": true, "description": "**DEPRECATED**: Please use `person.locations` instead. A person's past or current residence.", "id": "Residence", "properties": { @@ -3129,6 +3153,7 @@ "type": "object" }, "Tagline": { + "deprecated": true, "description": "**DEPRECATED**: No data will be returned A brief one-line description of the person.", "id": "Tagline", "properties": { diff --git a/privateca/v1/privateca-api.json b/privateca/v1/privateca-api.json index 1ca047da666..d141b8526e2 100644 --- a/privateca/v1/privateca-api.json +++ b/privateca/v1/privateca-api.json @@ -1605,7 +1605,7 @@ } } }, - "revision": "20230503", + "revision": "20230620", "rootUrl": "https://privateca.googleapis.com/", "schemas": { "AccessUrls": { @@ -3040,6 +3040,7 @@ "id": "ReconciliationOperationMetadata", "properties": { "deleteResource": { + "deprecated": true, "description": "DEPRECATED. Use exclusive_action instead.", "type": "boolean" }, @@ -3050,6 +3051,11 @@ "DELETE", "RETRY" ], + "enumDeprecated": [ + false, + true, + false + ], "enumDescriptions": [ "Unknown repair action.", "The resource has to be deleted. When using this bit, the CLH should fail the operation. DEPRECATED. Instead use DELETE_RESOURCE OperationSignal in SideChannel.", diff --git a/privateca/v1beta1/privateca-api.json b/privateca/v1beta1/privateca-api.json index c4156c8e552..f40aaf3bc7e 100644 --- a/privateca/v1beta1/privateca-api.json +++ b/privateca/v1beta1/privateca-api.json @@ -580,7 +580,7 @@ } } }, - "revision": "20230426", + "revision": "20230620", "rootUrl": "https://privateca.googleapis.com/", "schemas": { "AuditConfig": { @@ -829,6 +829,7 @@ "id": "ReconciliationOperationMetadata", "properties": { "deleteResource": { + "deprecated": true, "description": "DEPRECATED. Use exclusive_action instead.", "type": "boolean" }, @@ -839,6 +840,11 @@ "DELETE", "RETRY" ], + "enumDeprecated": [ + false, + true, + false + ], "enumDescriptions": [ "Unknown repair action.", "The resource has to be deleted. When using this bit, the CLH should fail the operation. DEPRECATED. Instead use DELETE_RESOURCE OperationSignal in SideChannel.", diff --git a/prod_tt_sasportal/v1alpha1/prod_tt_sasportal-api.json b/prod_tt_sasportal/v1alpha1/prod_tt_sasportal-api.json index 87e9b72ded3..262840a1b32 100644 --- a/prod_tt_sasportal/v1alpha1/prod_tt_sasportal-api.json +++ b/prod_tt_sasportal/v1alpha1/prod_tt_sasportal-api.json @@ -110,6 +110,22 @@ "resources": { "customers": { "methods": { + "checkHasProvisionedDeployment": { + "description": "Checks whether a SAS deployment for the authentication context exists.", + "flatPath": "v1alpha1/customers:checkHasProvisionedDeployment", + "httpMethod": "GET", + "id": "prod_tt_sasportal.customers.checkHasProvisionedDeployment", + "parameterOrder": [], + "parameters": {}, + "path": "v1alpha1/customers:checkHasProvisionedDeployment", + "response": { + "$ref": "SasPortalCheckHasProvisionedDeploymentResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/sasportal" + ] + }, "get": { "description": "Returns a requested customer.", "flatPath": "v1alpha1/customers/{customersId}", @@ -164,6 +180,25 @@ "https://www.googleapis.com/auth/sasportal" ] }, + "migrateOrganization": { + "description": "Migrates a SAS organization to the cloud. This will create GCP projects for each deployment and associate them. The SAS Organization is linked to the gcp project that called the command. go/sas-legacy-customer-migration", + "flatPath": "v1alpha1/customers:migrateOrganization", + "httpMethod": "POST", + "id": "prod_tt_sasportal.customers.migrateOrganization", + "parameterOrder": [], + "parameters": {}, + "path": "v1alpha1/customers:migrateOrganization", + "request": { + "$ref": "SasPortalMigrateOrganizationRequest" + }, + "response": { + "$ref": "SasPortalOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/sasportal" + ] + }, "patch": { "description": "Updates an existing customer.", "flatPath": "v1alpha1/customers/{customersId}", @@ -2583,7 +2618,7 @@ } } }, - "revision": "20230607", + "revision": "20230625", "rootUrl": "https://prod-tt-sasportal.googleapis.com/", "schemas": { "SasPortalAssignment": { @@ -2620,6 +2655,17 @@ }, "type": "object" }, + "SasPortalCheckHasProvisionedDeploymentResponse": { + "description": "Response for [CheckHasProvisionedDeployment]. [spectrum.sas.portal.v1alpha1.Provisioning.CheckHasProvisionedDeployment].", + "id": "SasPortalCheckHasProvisionedDeploymentResponse", + "properties": { + "hasProvisionedDeployment": { + "description": "Whether a SAS deployment for the authentication context exists.", + "type": "boolean" + } + }, + "type": "object" + }, "SasPortalCreateSignedDeviceRequest": { "description": "Request for CreateSignedDevice.", "id": "SasPortalCreateSignedDeviceRequest", @@ -2689,6 +2735,21 @@ }, "type": "object" }, + "SasPortalDeploymentAssociation": { + "description": "Association between a gcp project and a SAS user id.", + "id": "SasPortalDeploymentAssociation", + "properties": { + "gcpProjectId": { + "description": "GCP project id of the associated project.", + "type": "string" + }, + "userId": { + "description": "User id of the deployment.", + "type": "string" + } + }, + "type": "object" + }, "SasPortalDevice": { "id": "SasPortalDevice", "properties": { @@ -3244,6 +3305,58 @@ }, "type": "object" }, + "SasPortalMigrateOrganizationMetadata": { + "description": "Long-running operation metadata message returned by the MigrateOrganization.", + "id": "SasPortalMigrateOrganizationMetadata", + "properties": { + "operationState": { + "description": "Output only. Current operation state", + "enum": [ + "OPERATION_STATE_UNSPECIFIED", + "OPERATION_STATE_PENDING", + "OPERATION_STATE_RUNNING", + "OPERATION_STATE_SUCCEEDED", + "OPERATION_STATE_FAILED" + ], + "enumDescriptions": [ + "Unspecified.", + "Pending (Not started).", + "In-progress.", + "Done successfully.", + "Done with errors." + ], + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, + "SasPortalMigrateOrganizationRequest": { + "description": "Request for [MigrateOrganization]. [spectrum.sas.portal.v1alpha1.Provisioning.MigrateOrganization]. GCP Project, Organization Info, and caller's GAIA ID should be retrieved from the RPC handler, and used to check authorization on SAS Portal organization and to create GCP Projects.", + "id": "SasPortalMigrateOrganizationRequest", + "properties": { + "organizationId": { + "description": "Required. Id of the SAS organization to be migrated.", + "format": "int64", + "type": "string" + } + }, + "type": "object" + }, + "SasPortalMigrateOrganizationResponse": { + "description": "Response for [MigrateOrganization]. [spectrum.sas.portal.v1alpha1.Provisioning.MigrateOrganization].", + "id": "SasPortalMigrateOrganizationResponse", + "properties": { + "deploymentAssociation": { + "description": "Optional. A list of deployment association that were created for the migration, or current associations if they already exist.", + "items": { + "$ref": "SasPortalDeploymentAssociation" + }, + "type": "array" + } + }, + "type": "object" + }, "SasPortalMoveDeploymentRequest": { "description": "Request for MoveDeployment.", "id": "SasPortalMoveDeploymentRequest", diff --git a/prod_tt_sasportal/v1alpha1/prod_tt_sasportal-gen.go b/prod_tt_sasportal/v1alpha1/prod_tt_sasportal-gen.go index c1a232e38a7..3e444f1b88f 100644 --- a/prod_tt_sasportal/v1alpha1/prod_tt_sasportal-gen.go +++ b/prod_tt_sasportal/v1alpha1/prod_tt_sasportal-gen.go @@ -464,6 +464,44 @@ func (s *SasPortalChannelWithScore) UnmarshalJSON(data []byte) error { return nil } +// SasPortalCheckHasProvisionedDeploymentResponse: Response for +// [CheckHasProvisionedDeployment]. +// [spectrum.sas.portal.v1alpha1.Provisioning.CheckHasProvisionedDeployme +// nt]. +type SasPortalCheckHasProvisionedDeploymentResponse struct { + // HasProvisionedDeployment: Whether a SAS deployment for the + // authentication context exists. + HasProvisionedDeployment bool `json:"hasProvisionedDeployment,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. + // "HasProvisionedDeployment") 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. "HasProvisionedDeployment") + // 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 *SasPortalCheckHasProvisionedDeploymentResponse) MarshalJSON() ([]byte, error) { + type NoMethod SasPortalCheckHasProvisionedDeploymentResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // SasPortalCreateSignedDeviceRequest: Request for CreateSignedDevice. type SasPortalCreateSignedDeviceRequest struct { // EncodedDevice: Required. JSON Web Token signed using a CPI private @@ -580,6 +618,38 @@ func (s *SasPortalDeployment) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// SasPortalDeploymentAssociation: Association between a gcp project and +// a SAS user id. +type SasPortalDeploymentAssociation struct { + // GcpProjectId: GCP project id of the associated project. + GcpProjectId string `json:"gcpProjectId,omitempty"` + + // UserId: User id of the deployment. + UserId string `json:"userId,omitempty"` + + // ForceSendFields is a list of field names (e.g. "GcpProjectId") 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. "GcpProjectId") 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 *SasPortalDeploymentAssociation) MarshalJSON() ([]byte, error) { + type NoMethod SasPortalDeploymentAssociation + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + type SasPortalDevice struct { // ActiveConfig: Output only. Current configuration of the device as // registered to the SAS. @@ -1401,6 +1471,111 @@ func (s *SasPortalListNodesResponse) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// SasPortalMigrateOrganizationMetadata: Long-running operation metadata +// message returned by the MigrateOrganization. +type SasPortalMigrateOrganizationMetadata struct { + // OperationState: Output only. Current operation state + // + // Possible values: + // "OPERATION_STATE_UNSPECIFIED" - Unspecified. + // "OPERATION_STATE_PENDING" - Pending (Not started). + // "OPERATION_STATE_RUNNING" - In-progress. + // "OPERATION_STATE_SUCCEEDED" - Done successfully. + // "OPERATION_STATE_FAILED" - Done with errors. + OperationState string `json:"operationState,omitempty"` + + // ForceSendFields is a list of field names (e.g. "OperationState") 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. "OperationState") 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 *SasPortalMigrateOrganizationMetadata) MarshalJSON() ([]byte, error) { + type NoMethod SasPortalMigrateOrganizationMetadata + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// SasPortalMigrateOrganizationRequest: Request for +// [MigrateOrganization]. +// [spectrum.sas.portal.v1alpha1.Provisioning.MigrateOrganization]. GCP +// Project, Organization Info, and caller's GAIA ID should be retrieved +// from the RPC handler, and used to check authorization on SAS Portal +// organization and to create GCP Projects. +type SasPortalMigrateOrganizationRequest struct { + // OrganizationId: Required. Id of the SAS organization to be migrated. + OrganizationId int64 `json:"organizationId,omitempty,string"` + + // ForceSendFields is a list of field names (e.g. "OrganizationId") 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. "OrganizationId") 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 *SasPortalMigrateOrganizationRequest) MarshalJSON() ([]byte, error) { + type NoMethod SasPortalMigrateOrganizationRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// SasPortalMigrateOrganizationResponse: Response for +// [MigrateOrganization]. +// [spectrum.sas.portal.v1alpha1.Provisioning.MigrateOrganization]. +type SasPortalMigrateOrganizationResponse struct { + // DeploymentAssociation: Optional. A list of deployment association + // that were created for the migration, or current associations if they + // already exist. + DeploymentAssociation []*SasPortalDeploymentAssociation `json:"deploymentAssociation,omitempty"` + + // ForceSendFields is a list of field names (e.g. + // "DeploymentAssociation") 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. "DeploymentAssociation") 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 *SasPortalMigrateOrganizationResponse) MarshalJSON() ([]byte, error) { + type NoMethod SasPortalMigrateOrganizationResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // SasPortalMoveDeploymentRequest: Request for MoveDeployment. type SasPortalMoveDeploymentRequest struct { // Destination: Required. The name of the new parent resource node or @@ -2027,6 +2202,139 @@ type SasPortalValidateInstallerResponse struct { googleapi.ServerResponse `json:"-"` } +// method id "prod_tt_sasportal.customers.checkHasProvisionedDeployment": + +type CustomersCheckHasProvisionedDeploymentCall struct { + s *Service + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// CheckHasProvisionedDeployment: Checks whether a SAS deployment for +// the authentication context exists. +func (r *CustomersService) CheckHasProvisionedDeployment() *CustomersCheckHasProvisionedDeploymentCall { + c := &CustomersCheckHasProvisionedDeploymentCall{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 *CustomersCheckHasProvisionedDeploymentCall) Fields(s ...googleapi.Field) *CustomersCheckHasProvisionedDeploymentCall { + 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 *CustomersCheckHasProvisionedDeploymentCall) IfNoneMatch(entityTag string) *CustomersCheckHasProvisionedDeploymentCall { + 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 *CustomersCheckHasProvisionedDeploymentCall) Context(ctx context.Context) *CustomersCheckHasProvisionedDeploymentCall { + 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 *CustomersCheckHasProvisionedDeploymentCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *CustomersCheckHasProvisionedDeploymentCall) 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, "v1alpha1/customers:checkHasProvisionedDeployment") + 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 "prod_tt_sasportal.customers.checkHasProvisionedDeployment" call. +// Exactly one of *SasPortalCheckHasProvisionedDeploymentResponse or +// error will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *SasPortalCheckHasProvisionedDeploymentResponse.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 *CustomersCheckHasProvisionedDeploymentCall) Do(opts ...googleapi.CallOption) (*SasPortalCheckHasProvisionedDeploymentResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &SasPortalCheckHasProvisionedDeploymentResponse{ + 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": "Checks whether a SAS deployment for the authentication context exists.", + // "flatPath": "v1alpha1/customers:checkHasProvisionedDeployment", + // "httpMethod": "GET", + // "id": "prod_tt_sasportal.customers.checkHasProvisionedDeployment", + // "parameterOrder": [], + // "parameters": {}, + // "path": "v1alpha1/customers:checkHasProvisionedDeployment", + // "response": { + // "$ref": "SasPortalCheckHasProvisionedDeploymentResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/sasportal" + // ] + // } + +} + // method id "prod_tt_sasportal.customers.get": type CustomersGetCall struct { @@ -2352,6 +2660,135 @@ func (c *CustomersListCall) Pages(ctx context.Context, f func(*SasPortalListCust } } +// method id "prod_tt_sasportal.customers.migrateOrganization": + +type CustomersMigrateOrganizationCall struct { + s *Service + sasportalmigrateorganizationrequest *SasPortalMigrateOrganizationRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// MigrateOrganization: Migrates a SAS organization to the cloud. This +// will create GCP projects for each deployment and associate them. The +// SAS Organization is linked to the gcp project that called the +// command. go/sas-legacy-customer-migration +func (r *CustomersService) MigrateOrganization(sasportalmigrateorganizationrequest *SasPortalMigrateOrganizationRequest) *CustomersMigrateOrganizationCall { + c := &CustomersMigrateOrganizationCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.sasportalmigrateorganizationrequest = sasportalmigrateorganizationrequest + 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 *CustomersMigrateOrganizationCall) Fields(s ...googleapi.Field) *CustomersMigrateOrganizationCall { + 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 *CustomersMigrateOrganizationCall) Context(ctx context.Context) *CustomersMigrateOrganizationCall { + 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 *CustomersMigrateOrganizationCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *CustomersMigrateOrganizationCall) 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.sasportalmigrateorganizationrequest) + 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, "v1alpha1/customers:migrateOrganization") + 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 "prod_tt_sasportal.customers.migrateOrganization" call. +// Exactly one of *SasPortalOperation or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *SasPortalOperation.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 *CustomersMigrateOrganizationCall) Do(opts ...googleapi.CallOption) (*SasPortalOperation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &SasPortalOperation{ + 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": "Migrates a SAS organization to the cloud. This will create GCP projects for each deployment and associate them. The SAS Organization is linked to the gcp project that called the command. go/sas-legacy-customer-migration", + // "flatPath": "v1alpha1/customers:migrateOrganization", + // "httpMethod": "POST", + // "id": "prod_tt_sasportal.customers.migrateOrganization", + // "parameterOrder": [], + // "parameters": {}, + // "path": "v1alpha1/customers:migrateOrganization", + // "request": { + // "$ref": "SasPortalMigrateOrganizationRequest" + // }, + // "response": { + // "$ref": "SasPortalOperation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/sasportal" + // ] + // } + +} + // method id "prod_tt_sasportal.customers.patch": type CustomersPatchCall struct { diff --git a/redis/v1/redis-api.json b/redis/v1/redis-api.json index 00791dfb47d..608bd0d6e07 100644 --- a/redis/v1/redis-api.json +++ b/redis/v1/redis-api.json @@ -624,7 +624,7 @@ } } }, - "revision": "20230428", + "revision": "20230620", "rootUrl": "https://redis.googleapis.com/", "schemas": { "Empty": { @@ -1160,6 +1160,7 @@ "id": "MaintenanceSchedule", "properties": { "canReschedule": { + "deprecated": true, "description": "If the scheduled maintenance can be rescheduled, default is true.", "type": "boolean" }, @@ -1302,6 +1303,7 @@ "id": "ReconciliationOperationMetadata", "properties": { "deleteResource": { + "deprecated": true, "description": "DEPRECATED. Use exclusive_action instead.", "type": "boolean" }, @@ -1312,6 +1314,11 @@ "DELETE", "RETRY" ], + "enumDeprecated": [ + false, + true, + false + ], "enumDescriptions": [ "Unknown repair action.", "The resource has to be deleted. When using this bit, the CLH should fail the operation. DEPRECATED. Instead use DELETE_RESOURCE OperationSignal in SideChannel.", diff --git a/redis/v1beta1/redis-api.json b/redis/v1beta1/redis-api.json index 15a0250baa1..db0600a1dc6 100644 --- a/redis/v1beta1/redis-api.json +++ b/redis/v1beta1/redis-api.json @@ -624,7 +624,7 @@ } } }, - "revision": "20230428", + "revision": "20230620", "rootUrl": "https://redis.googleapis.com/", "schemas": { "Empty": { @@ -1167,6 +1167,7 @@ "id": "MaintenanceSchedule", "properties": { "canReschedule": { + "deprecated": true, "description": "If the scheduled maintenance can be rescheduled, default is true.", "type": "boolean" }, @@ -1309,6 +1310,7 @@ "id": "ReconciliationOperationMetadata", "properties": { "deleteResource": { + "deprecated": true, "description": "DEPRECATED. Use exclusive_action instead.", "type": "boolean" }, @@ -1319,6 +1321,11 @@ "DELETE", "RETRY" ], + "enumDeprecated": [ + false, + true, + false + ], "enumDescriptions": [ "Unknown repair action.", "The resource has to be deleted. When using this bit, the CLH should fail the operation. DEPRECATED. Instead use DELETE_RESOURCE OperationSignal in SideChannel.", diff --git a/run/v2/run-api.json b/run/v2/run-api.json index 8fc96437bd4..2bd30332af9 100644 --- a/run/v2/run-api.json +++ b/run/v2/run-api.json @@ -1087,7 +1087,7 @@ } } }, - "revision": "20230611", + "revision": "20230618", "rootUrl": "https://run.googleapis.com/", "schemas": { "GoogleCloudRunV2BinaryAuthorization": { @@ -2977,7 +2977,7 @@ "type": "string" }, "egress": { - "description": "Traffic VPC egress settings.", + "description": "Traffic VPC egress settings. If not provided, it defaults to PRIVATE_RANGES_ONLY.", "enum": [ "VPC_EGRESS_UNSPECIFIED", "ALL_TRAFFIC", diff --git a/run/v2/run-gen.go b/run/v2/run-gen.go index ea7b7853454..882da887dd8 100644 --- a/run/v2/run-gen.go +++ b/run/v2/run-gen.go @@ -2837,7 +2837,8 @@ type GoogleCloudRunV2VpcAccess struct { // {project} can be project id or number. Connector string `json:"connector,omitempty"` - // Egress: Traffic VPC egress settings. + // Egress: Traffic VPC egress settings. If not provided, it defaults to + // PRIVATE_RANGES_ONLY. // // Possible values: // "VPC_EGRESS_UNSPECIFIED" - Unspecified diff --git a/securitycenter/v1/securitycenter-api.json b/securitycenter/v1/securitycenter-api.json index ab90b30e899..e9a6b4fb494 100644 --- a/securitycenter/v1/securitycenter-api.json +++ b/securitycenter/v1/securitycenter-api.json @@ -110,6 +110,7 @@ "assets": { "methods": { "group": { + "deprecated": true, "description": "Filters an organization's assets and groups them by their specified properties.", "flatPath": "v1/folders/{foldersId}/assets:group", "httpMethod": "POST", @@ -138,6 +139,7 @@ ] }, "list": { + "deprecated": true, "description": "Lists an organization's assets.", "flatPath": "v1/folders/{foldersId}/assets", "httpMethod": "GET", @@ -1379,6 +1381,7 @@ "assets": { "methods": { "group": { + "deprecated": true, "description": "Filters an organization's assets and groups them by their specified properties.", "flatPath": "v1/organizations/{organizationsId}/assets:group", "httpMethod": "POST", @@ -1407,6 +1410,7 @@ ] }, "list": { + "deprecated": true, "description": "Lists an organization's assets.", "flatPath": "v1/organizations/{organizationsId}/assets", "httpMethod": "GET", @@ -1471,6 +1475,7 @@ ] }, "runDiscovery": { + "deprecated": true, "description": "Runs asset discovery. The discovery is tracked with a long-running operation. This API can only be called with limited frequency for an organization. If it is called too frequently the caller will receive a TOO_MANY_REQUESTS error.", "flatPath": "v1/organizations/{organizationsId}/assets:runDiscovery", "httpMethod": "POST", @@ -2939,6 +2944,7 @@ "assets": { "methods": { "group": { + "deprecated": true, "description": "Filters an organization's assets and groups them by their specified properties.", "flatPath": "v1/projects/{projectsId}/assets:group", "httpMethod": "POST", @@ -2967,6 +2973,7 @@ ] }, "list": { + "deprecated": true, "description": "Lists an organization's assets.", "flatPath": "v1/projects/{projectsId}/assets", "httpMethod": "GET", @@ -4143,7 +4150,7 @@ } } }, - "revision": "20230607", + "revision": "20230626", "rootUrl": "https://securitycenter.googleapis.com/", "schemas": { "Access": { diff --git a/securitycenter/v1/securitycenter-gen.go b/securitycenter/v1/securitycenter-gen.go index a2a541275d7..16ceb4bef91 100644 --- a/securitycenter/v1/securitycenter-gen.go +++ b/securitycenter/v1/securitycenter-gen.go @@ -5923,6 +5923,7 @@ func (c *FoldersAssetsGroupCall) Do(opts ...googleapi.CallOption) (*GroupAssetsR } return ret, nil // { + // "deprecated": true, // "description": "Filters an organization's assets and groups them by their specified properties.", // "flatPath": "v1/folders/{foldersId}/assets:group", // "httpMethod": "POST", @@ -6220,6 +6221,7 @@ func (c *FoldersAssetsListCall) Do(opts ...googleapi.CallOption) (*ListAssetsRes } return ret, nil // { + // "deprecated": true, // "description": "Lists an organization's assets.", // "flatPath": "v1/folders/{foldersId}/assets", // "httpMethod": "GET", @@ -12349,6 +12351,7 @@ func (c *OrganizationsAssetsGroupCall) Do(opts ...googleapi.CallOption) (*GroupA } return ret, nil // { + // "deprecated": true, // "description": "Filters an organization's assets and groups them by their specified properties.", // "flatPath": "v1/organizations/{organizationsId}/assets:group", // "httpMethod": "POST", @@ -12646,6 +12649,7 @@ func (c *OrganizationsAssetsListCall) Do(opts ...googleapi.CallOption) (*ListAss } return ret, nil // { + // "deprecated": true, // "description": "Lists an organization's assets.", // "flatPath": "v1/organizations/{organizationsId}/assets", // "httpMethod": "GET", @@ -12849,6 +12853,7 @@ func (c *OrganizationsAssetsRunDiscoveryCall) Do(opts ...googleapi.CallOption) ( } return ret, nil // { + // "deprecated": true, // "description": "Runs asset discovery. The discovery is tracked with a long-running operation. This API can only be called with limited frequency for an organization. If it is called too frequently the caller will receive a TOO_MANY_REQUESTS error.", // "flatPath": "v1/organizations/{organizationsId}/assets:runDiscovery", // "httpMethod": "POST", @@ -20287,6 +20292,7 @@ func (c *ProjectsAssetsGroupCall) Do(opts ...googleapi.CallOption) (*GroupAssets } return ret, nil // { + // "deprecated": true, // "description": "Filters an organization's assets and groups them by their specified properties.", // "flatPath": "v1/projects/{projectsId}/assets:group", // "httpMethod": "POST", @@ -20584,6 +20590,7 @@ func (c *ProjectsAssetsListCall) Do(opts ...googleapi.CallOption) (*ListAssetsRe } return ret, nil // { + // "deprecated": true, // "description": "Lists an organization's assets.", // "flatPath": "v1/projects/{projectsId}/assets", // "httpMethod": "GET", diff --git a/servicedirectory/v1beta1/servicedirectory-api.json b/servicedirectory/v1beta1/servicedirectory-api.json index ce5f20fc944..89bfedd75fa 100644 --- a/servicedirectory/v1beta1/servicedirectory-api.json +++ b/servicedirectory/v1beta1/servicedirectory-api.json @@ -1053,101 +1053,13 @@ } } } - }, - "registrationPolicies": { - "methods": { - "getIamPolicy": { - "description": "Gets the IAM Policy for a resource", - "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/registrationPolicies/{registrationPoliciesId}:getIamPolicy", - "httpMethod": "POST", - "id": "servicedirectory.projects.locations.registrationPolicies.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/[^/]+/locations/[^/]+/registrationPolicies/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1beta1/{+resource}:getIamPolicy", - "request": { - "$ref": "GetIamPolicyRequest" - }, - "response": { - "$ref": "Policy" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, - "setIamPolicy": { - "description": "Sets the IAM Policy for a resource", - "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/registrationPolicies/{registrationPoliciesId}:setIamPolicy", - "httpMethod": "POST", - "id": "servicedirectory.projects.locations.registrationPolicies.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/[^/]+/locations/[^/]+/registrationPolicies/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1beta1/{+resource}:setIamPolicy", - "request": { - "$ref": "SetIamPolicyRequest" - }, - "response": { - "$ref": "Policy" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, - "testIamPermissions": { - "description": "Tests IAM permissions for a resource (namespace, service or service workload only).", - "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/registrationPolicies/{registrationPoliciesId}:testIamPermissions", - "httpMethod": "POST", - "id": "servicedirectory.projects.locations.registrationPolicies.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/[^/]+/locations/[^/]+/registrationPolicies/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1beta1/{+resource}:testIamPermissions", - "request": { - "$ref": "TestIamPermissionsRequest" - }, - "response": { - "$ref": "TestIamPermissionsResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - } - } } } } } } }, - "revision": "20230516", + "revision": "20230618", "rootUrl": "https://servicedirectory.googleapis.com/", "schemas": { "Binding": { diff --git a/servicedirectory/v1beta1/servicedirectory-gen.go b/servicedirectory/v1beta1/servicedirectory-gen.go index 90d11887de9..ec5cd78934d 100644 --- a/servicedirectory/v1beta1/servicedirectory-gen.go +++ b/servicedirectory/v1beta1/servicedirectory-gen.go @@ -153,7 +153,6 @@ type ProjectsService struct { func NewProjectsLocationsService(s *APIService) *ProjectsLocationsService { rs := &ProjectsLocationsService{s: s} rs.Namespaces = NewProjectsLocationsNamespacesService(s) - rs.RegistrationPolicies = NewProjectsLocationsRegistrationPoliciesService(s) return rs } @@ -161,8 +160,6 @@ type ProjectsLocationsService struct { s *APIService Namespaces *ProjectsLocationsNamespacesService - - RegistrationPolicies *ProjectsLocationsRegistrationPoliciesService } func NewProjectsLocationsNamespacesService(s *APIService) *ProjectsLocationsNamespacesService { @@ -222,15 +219,6 @@ type ProjectsLocationsNamespacesWorkloadsService struct { s *APIService } -func NewProjectsLocationsRegistrationPoliciesService(s *APIService) *ProjectsLocationsRegistrationPoliciesService { - rs := &ProjectsLocationsRegistrationPoliciesService{s: s} - return rs -} - -type ProjectsLocationsRegistrationPoliciesService struct { - s *APIService -} - // Binding: Associates `members`, or principals, with a `role`. type Binding struct { // Condition: The condition that is associated with this binding. If the @@ -5894,439 +5882,3 @@ func (c *ProjectsLocationsNamespacesWorkloadsTestIamPermissionsCall) Do(opts ... // } } - -// method id "servicedirectory.projects.locations.registrationPolicies.getIamPolicy": - -type ProjectsLocationsRegistrationPoliciesGetIamPolicyCall struct { - s *APIService - resource string - getiampolicyrequest *GetIamPolicyRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// GetIamPolicy: Gets the IAM Policy for a 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 *ProjectsLocationsRegistrationPoliciesService) GetIamPolicy(resource string, getiampolicyrequest *GetIamPolicyRequest) *ProjectsLocationsRegistrationPoliciesGetIamPolicyCall { - c := &ProjectsLocationsRegistrationPoliciesGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.resource = resource - c.getiampolicyrequest = getiampolicyrequest - 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 *ProjectsLocationsRegistrationPoliciesGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsRegistrationPoliciesGetIamPolicyCall { - 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 *ProjectsLocationsRegistrationPoliciesGetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsRegistrationPoliciesGetIamPolicyCall { - 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 *ProjectsLocationsRegistrationPoliciesGetIamPolicyCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *ProjectsLocationsRegistrationPoliciesGetIamPolicyCall) 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.getiampolicyrequest) - if err != nil { - return nil, err - } - reqHeaders.Set("Content-Type", "application/json") - c.urlParams_.Set("alt", alt) - c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+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 "servicedirectory.projects.locations.registrationPolicies.getIamPolicy" call. -// Exactly one of *Policy or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Policy.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 *ProjectsLocationsRegistrationPoliciesGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &Policy{ - 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 IAM Policy for a resource", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/registrationPolicies/{registrationPoliciesId}:getIamPolicy", - // "httpMethod": "POST", - // "id": "servicedirectory.projects.locations.registrationPolicies.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/[^/]+/locations/[^/]+/registrationPolicies/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta1/{+resource}:getIamPolicy", - // "request": { - // "$ref": "GetIamPolicyRequest" - // }, - // "response": { - // "$ref": "Policy" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "servicedirectory.projects.locations.registrationPolicies.setIamPolicy": - -type ProjectsLocationsRegistrationPoliciesSetIamPolicyCall struct { - s *APIService - resource string - setiampolicyrequest *SetIamPolicyRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// SetIamPolicy: Sets the IAM Policy for a 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 *ProjectsLocationsRegistrationPoliciesService) SetIamPolicy(resource string, setiampolicyrequest *SetIamPolicyRequest) *ProjectsLocationsRegistrationPoliciesSetIamPolicyCall { - c := &ProjectsLocationsRegistrationPoliciesSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.resource = resource - c.setiampolicyrequest = setiampolicyrequest - 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 *ProjectsLocationsRegistrationPoliciesSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsRegistrationPoliciesSetIamPolicyCall { - 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 *ProjectsLocationsRegistrationPoliciesSetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsRegistrationPoliciesSetIamPolicyCall { - 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 *ProjectsLocationsRegistrationPoliciesSetIamPolicyCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *ProjectsLocationsRegistrationPoliciesSetIamPolicyCall) 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.setiampolicyrequest) - if err != nil { - return nil, err - } - reqHeaders.Set("Content-Type", "application/json") - c.urlParams_.Set("alt", alt) - c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+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 "servicedirectory.projects.locations.registrationPolicies.setIamPolicy" call. -// Exactly one of *Policy or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Policy.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 *ProjectsLocationsRegistrationPoliciesSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &Policy{ - 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 IAM Policy for a resource", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/registrationPolicies/{registrationPoliciesId}:setIamPolicy", - // "httpMethod": "POST", - // "id": "servicedirectory.projects.locations.registrationPolicies.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/[^/]+/locations/[^/]+/registrationPolicies/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta1/{+resource}:setIamPolicy", - // "request": { - // "$ref": "SetIamPolicyRequest" - // }, - // "response": { - // "$ref": "Policy" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "servicedirectory.projects.locations.registrationPolicies.testIamPermissions": - -type ProjectsLocationsRegistrationPoliciesTestIamPermissionsCall struct { - s *APIService - resource string - testiampermissionsrequest *TestIamPermissionsRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// TestIamPermissions: Tests IAM permissions for a resource (namespace, -// service or service workload only). -// -// - 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 *ProjectsLocationsRegistrationPoliciesService) TestIamPermissions(resource string, testiampermissionsrequest *TestIamPermissionsRequest) *ProjectsLocationsRegistrationPoliciesTestIamPermissionsCall { - c := &ProjectsLocationsRegistrationPoliciesTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.resource = resource - c.testiampermissionsrequest = testiampermissionsrequest - 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 *ProjectsLocationsRegistrationPoliciesTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsRegistrationPoliciesTestIamPermissionsCall { - 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 *ProjectsLocationsRegistrationPoliciesTestIamPermissionsCall) Context(ctx context.Context) *ProjectsLocationsRegistrationPoliciesTestIamPermissionsCall { - 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 *ProjectsLocationsRegistrationPoliciesTestIamPermissionsCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *ProjectsLocationsRegistrationPoliciesTestIamPermissionsCall) 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.testiampermissionsrequest) - if err != nil { - return nil, err - } - reqHeaders.Set("Content-Type", "application/json") - c.urlParams_.Set("alt", alt) - c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+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 "servicedirectory.projects.locations.registrationPolicies.testIamPermissions" call. -// Exactly one of *TestIamPermissionsResponse or error will be non-nil. -// Any non-2xx status code is an error. Response headers are in either -// *TestIamPermissionsResponse.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 *ProjectsLocationsRegistrationPoliciesTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestIamPermissionsResponse, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &TestIamPermissionsResponse{ - 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": "Tests IAM permissions for a resource (namespace, service or service workload only).", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/registrationPolicies/{registrationPoliciesId}:testIamPermissions", - // "httpMethod": "POST", - // "id": "servicedirectory.projects.locations.registrationPolicies.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/[^/]+/locations/[^/]+/registrationPolicies/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta1/{+resource}:testIamPermissions", - // "request": { - // "$ref": "TestIamPermissionsRequest" - // }, - // "response": { - // "$ref": "TestIamPermissionsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} diff --git a/sheets/v4/sheets-api.json b/sheets/v4/sheets-api.json index 8027222b295..da842cdd25b 100644 --- a/sheets/v4/sheets-api.json +++ b/sheets/v4/sheets-api.json @@ -403,9 +403,9 @@ "FORMULA" ], "enumDescriptions": [ - "Values will be calculated \u0026 formatted in the reply according to the cell's formatting. Formatting is based on the spreadsheet's locale, not the requesting user's locale. For example, if `A1` is `1.23` and `A2` is `=A1` and formatted as currency, then `A2` would return `\"$1.23\"`.", + "Values will be calculated \u0026 formatted in the response according to the cell's formatting. Formatting is based on the spreadsheet's locale, not the requesting user's locale. For example, if `A1` is `1.23` and `A2` is `=A1` and formatted as currency, then `A2` would return `\"$1.23\"`.", "Values will be calculated, but not formatted in the reply. For example, if `A1` is `1.23` and `A2` is `=A1` and formatted as currency, then `A2` would return the number `1.23`.", - "Values will not be calculated. The reply will include the formulas. For example, if `A1` is `1.23` and `A2` is `=A1` and formatted as currency, then A2 would return `\"=A1\"`." + "Values will not be calculated. The reply will include the formulas. For example, if `A1` is `1.23` and `A2` is `=A1` and formatted as currency, then A2 would return `\"=A1\"`. Sheets treats date and time values as decimal values. This lets you perform arithmetic on them in formulas. For more information on interpreting date and time values, see [About date \u0026 time values](https://developers.google.com/sheets/api/guides/formats#about_date_time_values)." ], "location": "query", "type": "string" @@ -560,9 +560,9 @@ "FORMULA" ], "enumDescriptions": [ - "Values will be calculated \u0026 formatted in the reply according to the cell's formatting. Formatting is based on the spreadsheet's locale, not the requesting user's locale. For example, if `A1` is `1.23` and `A2` is `=A1` and formatted as currency, then `A2` would return `\"$1.23\"`.", + "Values will be calculated \u0026 formatted in the response according to the cell's formatting. Formatting is based on the spreadsheet's locale, not the requesting user's locale. For example, if `A1` is `1.23` and `A2` is `=A1` and formatted as currency, then `A2` would return `\"$1.23\"`.", "Values will be calculated, but not formatted in the reply. For example, if `A1` is `1.23` and `A2` is `=A1` and formatted as currency, then `A2` would return the number `1.23`.", - "Values will not be calculated. The reply will include the formulas. For example, if `A1` is `1.23` and `A2` is `=A1` and formatted as currency, then A2 would return `\"=A1\"`." + "Values will not be calculated. The reply will include the formulas. For example, if `A1` is `1.23` and `A2` is `=A1` and formatted as currency, then A2 would return `\"=A1\"`. Sheets treats date and time values as decimal values. This lets you perform arithmetic on them in formulas. For more information on interpreting date and time values, see [About date \u0026 time values](https://developers.google.com/sheets/api/guides/formats#about_date_time_values)." ], "location": "query", "type": "string" @@ -761,9 +761,9 @@ "FORMULA" ], "enumDescriptions": [ - "Values will be calculated \u0026 formatted in the reply according to the cell's formatting. Formatting is based on the spreadsheet's locale, not the requesting user's locale. For example, if `A1` is `1.23` and `A2` is `=A1` and formatted as currency, then `A2` would return `\"$1.23\"`.", + "Values will be calculated \u0026 formatted in the response according to the cell's formatting. Formatting is based on the spreadsheet's locale, not the requesting user's locale. For example, if `A1` is `1.23` and `A2` is `=A1` and formatted as currency, then `A2` would return `\"$1.23\"`.", "Values will be calculated, but not formatted in the reply. For example, if `A1` is `1.23` and `A2` is `=A1` and formatted as currency, then `A2` would return the number `1.23`.", - "Values will not be calculated. The reply will include the formulas. For example, if `A1` is `1.23` and `A2` is `=A1` and formatted as currency, then A2 would return `\"=A1\"`." + "Values will not be calculated. The reply will include the formulas. For example, if `A1` is `1.23` and `A2` is `=A1` and formatted as currency, then A2 would return `\"=A1\"`. Sheets treats date and time values as decimal values. This lets you perform arithmetic on them in formulas. For more information on interpreting date and time values, see [About date \u0026 time values](https://developers.google.com/sheets/api/guides/formats#about_date_time_values)." ], "location": "query", "type": "string" @@ -823,9 +823,9 @@ "FORMULA" ], "enumDescriptions": [ - "Values will be calculated \u0026 formatted in the reply according to the cell's formatting. Formatting is based on the spreadsheet's locale, not the requesting user's locale. For example, if `A1` is `1.23` and `A2` is `=A1` and formatted as currency, then `A2` would return `\"$1.23\"`.", + "Values will be calculated \u0026 formatted in the response according to the cell's formatting. Formatting is based on the spreadsheet's locale, not the requesting user's locale. For example, if `A1` is `1.23` and `A2` is `=A1` and formatted as currency, then `A2` would return `\"$1.23\"`.", "Values will be calculated, but not formatted in the reply. For example, if `A1` is `1.23` and `A2` is `=A1` and formatted as currency, then `A2` would return the number `1.23`.", - "Values will not be calculated. The reply will include the formulas. For example, if `A1` is `1.23` and `A2` is `=A1` and formatted as currency, then A2 would return `\"=A1\"`." + "Values will not be calculated. The reply will include the formulas. For example, if `A1` is `1.23` and `A2` is `=A1` and formatted as currency, then A2 would return `\"=A1\"`. Sheets treats date and time values as decimal values. This lets you perform arithmetic on them in formulas. For more information on interpreting date and time values, see [About date \u0026 time values](https://developers.google.com/sheets/api/guides/formats#about_date_time_values)." ], "location": "query", "type": "string" @@ -870,7 +870,7 @@ } } }, - "revision": "20230526", + "revision": "20230620", "rootUrl": "https://sheets.googleapis.com/", "schemas": { "AddBandingRequest": { @@ -1734,9 +1734,9 @@ "FORMULA" ], "enumDescriptions": [ - "Values will be calculated \u0026 formatted in the reply according to the cell's formatting. Formatting is based on the spreadsheet's locale, not the requesting user's locale. For example, if `A1` is `1.23` and `A2` is `=A1` and formatted as currency, then `A2` would return `\"$1.23\"`.", + "Values will be calculated \u0026 formatted in the response according to the cell's formatting. Formatting is based on the spreadsheet's locale, not the requesting user's locale. For example, if `A1` is `1.23` and `A2` is `=A1` and formatted as currency, then `A2` would return `\"$1.23\"`.", "Values will be calculated, but not formatted in the reply. For example, if `A1` is `1.23` and `A2` is `=A1` and formatted as currency, then `A2` would return the number `1.23`.", - "Values will not be calculated. The reply will include the formulas. For example, if `A1` is `1.23` and `A2` is `=A1` and formatted as currency, then A2 would return `\"=A1\"`." + "Values will not be calculated. The reply will include the formulas. For example, if `A1` is `1.23` and `A2` is `=A1` and formatted as currency, then A2 would return `\"=A1\"`. Sheets treats date and time values as decimal values. This lets you perform arithmetic on them in formulas. For more information on interpreting date and time values, see [About date \u0026 time values](https://developers.google.com/sheets/api/guides/formats#about_date_time_values)." ], "type": "string" } @@ -1865,9 +1865,9 @@ "FORMULA" ], "enumDescriptions": [ - "Values will be calculated \u0026 formatted in the reply according to the cell's formatting. Formatting is based on the spreadsheet's locale, not the requesting user's locale. For example, if `A1` is `1.23` and `A2` is `=A1` and formatted as currency, then `A2` would return `\"$1.23\"`.", + "Values will be calculated \u0026 formatted in the response according to the cell's formatting. Formatting is based on the spreadsheet's locale, not the requesting user's locale. For example, if `A1` is `1.23` and `A2` is `=A1` and formatted as currency, then `A2` would return `\"$1.23\"`.", "Values will be calculated, but not formatted in the reply. For example, if `A1` is `1.23` and `A2` is `=A1` and formatted as currency, then `A2` would return the number `1.23`.", - "Values will not be calculated. The reply will include the formulas. For example, if `A1` is `1.23` and `A2` is `=A1` and formatted as currency, then A2 would return `\"=A1\"`." + "Values will not be calculated. The reply will include the formulas. For example, if `A1` is `1.23` and `A2` is `=A1` and formatted as currency, then A2 would return `\"=A1\"`. Sheets treats date and time values as decimal values. This lets you perform arithmetic on them in formulas. For more information on interpreting date and time values, see [About date \u0026 time values](https://developers.google.com/sheets/api/guides/formats#about_date_time_values)." ], "type": "string" }, @@ -1961,9 +1961,9 @@ "FORMULA" ], "enumDescriptions": [ - "Values will be calculated \u0026 formatted in the reply according to the cell's formatting. Formatting is based on the spreadsheet's locale, not the requesting user's locale. For example, if `A1` is `1.23` and `A2` is `=A1` and formatted as currency, then `A2` would return `\"$1.23\"`.", + "Values will be calculated \u0026 formatted in the response according to the cell's formatting. Formatting is based on the spreadsheet's locale, not the requesting user's locale. For example, if `A1` is `1.23` and `A2` is `=A1` and formatted as currency, then `A2` would return `\"$1.23\"`.", "Values will be calculated, but not formatted in the reply. For example, if `A1` is `1.23` and `A2` is `=A1` and formatted as currency, then `A2` would return the number `1.23`.", - "Values will not be calculated. The reply will include the formulas. For example, if `A1` is `1.23` and `A2` is `=A1` and formatted as currency, then A2 would return `\"=A1\"`." + "Values will not be calculated. The reply will include the formulas. For example, if `A1` is `1.23` and `A2` is `=A1` and formatted as currency, then A2 would return `\"=A1\"`. Sheets treats date and time values as decimal values. This lets you perform arithmetic on them in formulas. For more information on interpreting date and time values, see [About date \u0026 time values](https://developers.google.com/sheets/api/guides/formats#about_date_time_values)." ], "type": "string" }, @@ -2109,7 +2109,8 @@ "CUSTOM_FORMULA", "BOOLEAN", "TEXT_NOT_EQ", - "DATE_NOT_EQ" + "DATE_NOT_EQ", + "FILTER_EXPRESSION" ], "enumDescriptions": [ "The default value, do not use.", @@ -2143,7 +2144,8 @@ "The condition's formula must evaluate to true. Supported by data validation, conditional formatting and filters. Not supported by data source sheet filters. Requires a single ConditionValue.", "The cell's value must be TRUE/FALSE or in the list of condition values. Supported by data validation. Renders as a cell checkbox. Supports zero, one or two ConditionValues. No values indicates the cell must be TRUE or FALSE, where TRUE renders as checked and FALSE renders as unchecked. One value indicates the cell will render as checked when it contains that value and unchecked when it is blank. Two values indicate that the cell will render as checked when it contains the first value and unchecked when it contains the second value. For example, [\"Yes\",\"No\"] indicates that the cell will render a checked box when it has the value \"Yes\" and an unchecked box when it has the value \"No\".", "The cell's value must be exactly not the condition's value. Supported by filters on data source objects. Requires at least one ConditionValue.", - "The cell's value must be exactly not the condition's value. Supported by filters on data source objects. Requires at least one ConditionValue." + "The cell's value must be exactly not the condition's value. Supported by filters on data source objects. Requires at least one ConditionValue.", + "The cell's value must follow the pattern specified. Requires a single ConditionValue." ], "type": "string" }, @@ -2898,7 +2900,7 @@ "type": "object" }, "Color": { - "description": "Represents a color in the RGBA color space. This representation is designed for simplicity of conversion to and from color representations in various languages over compactness. For example, the fields of this representation can be trivially provided to the constructor of `java.awt.Color` in Java; it can also be trivially provided to UIColor's `+colorWithRed:green:blue:alpha` method in iOS; and, with just a little work, it can be easily formatted into a CSS `rgba()` string in JavaScript. This reference page does not have information about the absolute color space that should be used to interpret the RGB value—for example, sRGB, Adobe RGB, DCI-P3, and BT.2020. By default, applications should assume the sRGB color space. When color equality needs to be decided, implementations, unless documented otherwise, treat two colors as equal if all their red, green, blue, and alpha values each differ by at most `1e-5`. Example (Java): import com.google.type.Color; // ... public static java.awt.Color fromProto(Color protocolor) { float alpha = protocolor.hasAlpha() ? protocolor.getAlpha().getValue() : 1.0; return new java.awt.Color( protocolor.getRed(), protocolor.getGreen(), protocolor.getBlue(), alpha); } public static Color toProto(java.awt.Color color) { float red = (float) color.getRed(); float green = (float) color.getGreen(); float blue = (float) color.getBlue(); float denominator = 255.0; Color.Builder resultBuilder = Color .newBuilder() .setRed(red / denominator) .setGreen(green / denominator) .setBlue(blue / denominator); int alpha = color.getAlpha(); if (alpha != 255) { result.setAlpha( FloatValue .newBuilder() .setValue(((float) alpha) / denominator) .build()); } return resultBuilder.build(); } // ... Example (iOS / Obj-C): // ... static UIColor* fromProto(Color* protocolor) { float red = [protocolor red]; float green = [protocolor green]; float blue = [protocolor blue]; FloatValue* alpha_wrapper = [protocolor alpha]; float alpha = 1.0; if (alpha_wrapper != nil) { alpha = [alpha_wrapper value]; } return [UIColor colorWithRed:red green:green blue:blue alpha:alpha]; } static Color* toProto(UIColor* color) { CGFloat red, green, blue, alpha; if (![color getRed:\u0026red green:\u0026green blue:\u0026blue alpha:\u0026alpha]) { return nil; } Color* result = [[Color alloc] init]; [result setRed:red]; [result setGreen:green]; [result setBlue:blue]; if (alpha \u003c= 0.9999) { [result setAlpha:floatWrapperWithValue(alpha)]; } [result autorelease]; return result; } // ... Example (JavaScript): // ... var protoToCssColor = function(rgb_color) { var redFrac = rgb_color.red || 0.0; var greenFrac = rgb_color.green || 0.0; var blueFrac = rgb_color.blue || 0.0; var red = Math.floor(redFrac * 255); var green = Math.floor(greenFrac * 255); var blue = Math.floor(blueFrac * 255); if (!('alpha' in rgb_color)) { return rgbToCssColor(red, green, blue); } var alphaFrac = rgb_color.alpha.value || 0.0; var rgbParams = [red, green, blue].join(','); return ['rgba(', rgbParams, ',', alphaFrac, ')'].join(''); }; var rgbToCssColor = function(red, green, blue) { var rgbNumber = new Number((red \u003c\u003c 16) | (green \u003c\u003c 8) | blue); var hexString = rgbNumber.toString(16); var missingZeros = 6 - hexString.length; var resultBuilder = ['#']; for (var i = 0; i \u003c missingZeros; i++) { resultBuilder.push('0'); } resultBuilder.push(hexString); return resultBuilder.join(''); }; // ...", + "description": "Represents a color in the RGBA color space. This representation is designed for simplicity of conversion to and from color representations in various languages over compactness. For example, the fields of this representation can be trivially provided to the constructor of `java.awt.Color` in Java; it can also be trivially provided to UIColor's `+colorWithRed:green:blue:alpha` method in iOS; and, with just a little work, it can be easily formatted into a CSS `rgba()` string in JavaScript. This reference page doesn't have information about the absolute color space that should be used to interpret the RGB value—for example, sRGB, Adobe RGB, DCI-P3, and BT.2020. By default, applications should assume the sRGB color space. When color equality needs to be decided, implementations, unless documented otherwise, treat two colors as equal if all their red, green, blue, and alpha values each differ by at most `1e-5`. Example (Java): import com.google.type.Color; // ... public static java.awt.Color fromProto(Color protocolor) { float alpha = protocolor.hasAlpha() ? protocolor.getAlpha().getValue() : 1.0; return new java.awt.Color( protocolor.getRed(), protocolor.getGreen(), protocolor.getBlue(), alpha); } public static Color toProto(java.awt.Color color) { float red = (float) color.getRed(); float green = (float) color.getGreen(); float blue = (float) color.getBlue(); float denominator = 255.0; Color.Builder resultBuilder = Color .newBuilder() .setRed(red / denominator) .setGreen(green / denominator) .setBlue(blue / denominator); int alpha = color.getAlpha(); if (alpha != 255) { result.setAlpha( FloatValue .newBuilder() .setValue(((float) alpha) / denominator) .build()); } return resultBuilder.build(); } // ... Example (iOS / Obj-C): // ... static UIColor* fromProto(Color* protocolor) { float red = [protocolor red]; float green = [protocolor green]; float blue = [protocolor blue]; FloatValue* alpha_wrapper = [protocolor alpha]; float alpha = 1.0; if (alpha_wrapper != nil) { alpha = [alpha_wrapper value]; } return [UIColor colorWithRed:red green:green blue:blue alpha:alpha]; } static Color* toProto(UIColor* color) { CGFloat red, green, blue, alpha; if (![color getRed:\u0026red green:\u0026green blue:\u0026blue alpha:\u0026alpha]) { return nil; } Color* result = [[Color alloc] init]; [result setRed:red]; [result setGreen:green]; [result setBlue:blue]; if (alpha \u003c= 0.9999) { [result setAlpha:floatWrapperWithValue(alpha)]; } [result autorelease]; return result; } // ... Example (JavaScript): // ... var protoToCssColor = function(rgb_color) { var redFrac = rgb_color.red || 0.0; var greenFrac = rgb_color.green || 0.0; var blueFrac = rgb_color.blue || 0.0; var red = Math.floor(redFrac * 255); var green = Math.floor(greenFrac * 255); var blue = Math.floor(blueFrac * 255); if (!('alpha' in rgb_color)) { return rgbToCssColor(red, green, blue); } var alphaFrac = rgb_color.alpha.value || 0.0; var rgbParams = [red, green, blue].join(','); return ['rgba(', rgbParams, ',', alphaFrac, ')'].join(''); }; var rgbToCssColor = function(red, green, blue) { var rgbNumber = new Number((red \u003c\u003c 16) | (green \u003c\u003c 8) | blue); var hexString = rgbNumber.toString(16); var missingZeros = 6 - hexString.length; var resultBuilder = ['#']; for (var i = 0; i \u003c missingZeros; i++) { resultBuilder.push('0'); } resultBuilder.push(hexString); return resultBuilder.join(''); }; // ...", "id": "Color", "properties": { "alpha": { @@ -6062,7 +6064,7 @@ }, "refreshDataSource": { "$ref": "RefreshDataSourceRequest", - "description": "Refreshs one or multiple data sources and associated dbobjects." + "description": "Refreshes one or multiple data sources and associated dbobjects." }, "repeatCell": { "$ref": "RepeatCellRequest", diff --git a/sheets/v4/sheets-gen.go b/sheets/v4/sheets-gen.go index 897e452bfcd..fc5e6990cb0 100644 --- a/sheets/v4/sheets-gen.go +++ b/sheets/v4/sheets-gen.go @@ -1747,16 +1747,21 @@ type BatchGetValuesByDataFilterRequest struct { // // Possible values: // "FORMATTED_VALUE" - Values will be calculated & formatted in the - // reply according to the cell's formatting. Formatting is based on the - // spreadsheet's locale, not the requesting user's locale. For example, - // if `A1` is `1.23` and `A2` is `=A1` and formatted as currency, then - // `A2` would return "$1.23". + // response according to the cell's formatting. Formatting is based on + // the spreadsheet's locale, not the requesting user's locale. For + // example, if `A1` is `1.23` and `A2` is `=A1` and formatted as + // currency, then `A2` would return "$1.23". // "UNFORMATTED_VALUE" - Values will be calculated, but not formatted // in the reply. For example, if `A1` is `1.23` and `A2` is `=A1` and // formatted as currency, then `A2` would return the number `1.23`. // "FORMULA" - Values will not be calculated. The reply will include // the formulas. For example, if `A1` is `1.23` and `A2` is `=A1` and - // formatted as currency, then A2 would return "=A1". + // formatted as currency, then A2 would return "=A1". Sheets treats + // date and time values as decimal values. This lets you perform + // arithmetic on them in formulas. For more information on interpreting + // date and time values, see [About date & time + // values](https://developers.google.com/sheets/api/guides/formats#about_ + // date_time_values). ValueRenderOption string `json:"valueRenderOption,omitempty"` // ForceSendFields is a list of field names (e.g. "DataFilters") to @@ -1988,16 +1993,21 @@ type BatchUpdateValuesByDataFilterRequest struct { // // Possible values: // "FORMATTED_VALUE" - Values will be calculated & formatted in the - // reply according to the cell's formatting. Formatting is based on the - // spreadsheet's locale, not the requesting user's locale. For example, - // if `A1` is `1.23` and `A2` is `=A1` and formatted as currency, then - // `A2` would return "$1.23". + // response according to the cell's formatting. Formatting is based on + // the spreadsheet's locale, not the requesting user's locale. For + // example, if `A1` is `1.23` and `A2` is `=A1` and formatted as + // currency, then `A2` would return "$1.23". // "UNFORMATTED_VALUE" - Values will be calculated, but not formatted // in the reply. For example, if `A1` is `1.23` and `A2` is `=A1` and // formatted as currency, then `A2` would return the number `1.23`. // "FORMULA" - Values will not be calculated. The reply will include // the formulas. For example, if `A1` is `1.23` and `A2` is `=A1` and - // formatted as currency, then A2 would return "=A1". + // formatted as currency, then A2 would return "=A1". Sheets treats + // date and time values as decimal values. This lets you perform + // arithmetic on them in formulas. For more information on interpreting + // date and time values, see [About date & time + // values](https://developers.google.com/sheets/api/guides/formats#about_ + // date_time_values). ResponseValueRenderOption string `json:"responseValueRenderOption,omitempty"` // ValueInputOption: How the input data should be interpreted. @@ -2127,16 +2137,21 @@ type BatchUpdateValuesRequest struct { // // Possible values: // "FORMATTED_VALUE" - Values will be calculated & formatted in the - // reply according to the cell's formatting. Formatting is based on the - // spreadsheet's locale, not the requesting user's locale. For example, - // if `A1` is `1.23` and `A2` is `=A1` and formatted as currency, then - // `A2` would return "$1.23". + // response according to the cell's formatting. Formatting is based on + // the spreadsheet's locale, not the requesting user's locale. For + // example, if `A1` is `1.23` and `A2` is `=A1` and formatted as + // currency, then `A2` would return "$1.23". // "UNFORMATTED_VALUE" - Values will be calculated, but not formatted // in the reply. For example, if `A1` is `1.23` and `A2` is `=A1` and // formatted as currency, then `A2` would return the number `1.23`. // "FORMULA" - Values will not be calculated. The reply will include // the formulas. For example, if `A1` is `1.23` and `A2` is `=A1` and - // formatted as currency, then A2 would return "=A1". + // formatted as currency, then A2 would return "=A1". Sheets treats + // date and time values as decimal values. This lets you perform + // arithmetic on them in formulas. For more information on interpreting + // date and time values, see [About date & time + // values](https://developers.google.com/sheets/api/guides/formats#about_ + // date_time_values). ResponseValueRenderOption string `json:"responseValueRenderOption,omitempty"` // ValueInputOption: How the input data should be interpreted. @@ -2448,6 +2463,8 @@ type BooleanCondition struct { // "DATE_NOT_EQ" - The cell's value must be exactly not the // condition's value. Supported by filters on data source objects. // Requires at least one ConditionValue. + // "FILTER_EXPRESSION" - The cell's value must follow the pattern + // specified. Requires a single ConditionValue. Type string `json:"type,omitempty"` // Values: The values of the condition. The number of supported values @@ -3607,7 +3624,7 @@ func (s *ClearValuesResponse) MarshalJSON() ([]byte, error) { // trivially provided to UIColor's `+colorWithRed:green:blue:alpha` // method in iOS; and, with just a little work, it can be easily // formatted into a CSS `rgba()` string in JavaScript. This reference -// page does not have information about the absolute color space that +// page doesn't have information about the absolute color space that // should be used to interpret the RGB value—for example, sRGB, Adobe // RGB, DCI-P3, and BT.2020. By default, applications should assume the // sRGB color space. When color equality needs to be decided, @@ -8826,7 +8843,7 @@ type Request struct { // RandomizeRange: Randomizes the order of the rows in a range. RandomizeRange *RandomizeRangeRequest `json:"randomizeRange,omitempty"` - // RefreshDataSource: Refreshs one or multiple data sources and + // RefreshDataSource: Refreshes one or multiple data sources and // associated dbobjects. RefreshDataSource *RefreshDataSourceRequest `json:"refreshDataSource,omitempty"` @@ -12792,10 +12809,10 @@ func (c *SpreadsheetsValuesAppendCall) ResponseDateTimeRenderOption(responseDate // // "FORMATTED_VALUE" - Values will be calculated & formatted in the // -// reply according to the cell's formatting. Formatting is based on the -// spreadsheet's locale, not the requesting user's locale. For example, -// if `A1` is `1.23` and `A2` is `=A1` and formatted as currency, then -// `A2` would return "$1.23". +// response according to the cell's formatting. Formatting is based on +// the spreadsheet's locale, not the requesting user's locale. For +// example, if `A1` is `1.23` and `A2` is `=A1` and formatted as +// currency, then `A2` would return "$1.23". // // "UNFORMATTED_VALUE" - Values will be calculated, but not formatted // @@ -12805,7 +12822,12 @@ func (c *SpreadsheetsValuesAppendCall) ResponseDateTimeRenderOption(responseDate // "FORMULA" - Values will not be calculated. The reply will include // // the formulas. For example, if `A1` is `1.23` and `A2` is `=A1` and -// formatted as currency, then A2 would return "=A1". +// formatted as currency, then A2 would return "=A1". Sheets treats +// date and time values as decimal values. This lets you perform +// arithmetic on them in formulas. For more information on interpreting +// date and time values, see [About date & time +// values](https://developers.google.com/sheets/api/guides/formats#about_ +// date_time_values). func (c *SpreadsheetsValuesAppendCall) ResponseValueRenderOption(responseValueRenderOption string) *SpreadsheetsValuesAppendCall { c.urlParams_.Set("responseValueRenderOption", responseValueRenderOption) return c @@ -12980,9 +13002,9 @@ func (c *SpreadsheetsValuesAppendCall) Do(opts ...googleapi.CallOption) (*Append // "FORMULA" // ], // "enumDescriptions": [ - // "Values will be calculated \u0026 formatted in the reply according to the cell's formatting. Formatting is based on the spreadsheet's locale, not the requesting user's locale. For example, if `A1` is `1.23` and `A2` is `=A1` and formatted as currency, then `A2` would return `\"$1.23\"`.", + // "Values will be calculated \u0026 formatted in the response according to the cell's formatting. Formatting is based on the spreadsheet's locale, not the requesting user's locale. For example, if `A1` is `1.23` and `A2` is `=A1` and formatted as currency, then `A2` would return `\"$1.23\"`.", // "Values will be calculated, but not formatted in the reply. For example, if `A1` is `1.23` and `A2` is `=A1` and formatted as currency, then `A2` would return the number `1.23`.", - // "Values will not be calculated. The reply will include the formulas. For example, if `A1` is `1.23` and `A2` is `=A1` and formatted as currency, then A2 would return `\"=A1\"`." + // "Values will not be calculated. The reply will include the formulas. For example, if `A1` is `1.23` and `A2` is `=A1` and formatted as currency, then A2 would return `\"=A1\"`. Sheets treats date and time values as decimal values. This lets you perform arithmetic on them in formulas. For more information on interpreting date and time values, see [About date \u0026 time values](https://developers.google.com/sheets/api/guides/formats#about_date_time_values)." // ], // "location": "query", // "type": "string" @@ -13400,10 +13422,10 @@ func (c *SpreadsheetsValuesBatchGetCall) Ranges(ranges ...string) *SpreadsheetsV // // "FORMATTED_VALUE" - Values will be calculated & formatted in the // -// reply according to the cell's formatting. Formatting is based on the -// spreadsheet's locale, not the requesting user's locale. For example, -// if `A1` is `1.23` and `A2` is `=A1` and formatted as currency, then -// `A2` would return "$1.23". +// response according to the cell's formatting. Formatting is based on +// the spreadsheet's locale, not the requesting user's locale. For +// example, if `A1` is `1.23` and `A2` is `=A1` and formatted as +// currency, then `A2` would return "$1.23". // // "UNFORMATTED_VALUE" - Values will be calculated, but not formatted // @@ -13413,7 +13435,12 @@ func (c *SpreadsheetsValuesBatchGetCall) Ranges(ranges ...string) *SpreadsheetsV // "FORMULA" - Values will not be calculated. The reply will include // // the formulas. For example, if `A1` is `1.23` and `A2` is `=A1` and -// formatted as currency, then A2 would return "=A1". +// formatted as currency, then A2 would return "=A1". Sheets treats +// date and time values as decimal values. This lets you perform +// arithmetic on them in formulas. For more information on interpreting +// date and time values, see [About date & time +// values](https://developers.google.com/sheets/api/guides/formats#about_ +// date_time_values). func (c *SpreadsheetsValuesBatchGetCall) ValueRenderOption(valueRenderOption string) *SpreadsheetsValuesBatchGetCall { c.urlParams_.Set("valueRenderOption", valueRenderOption) return c @@ -13574,9 +13601,9 @@ func (c *SpreadsheetsValuesBatchGetCall) Do(opts ...googleapi.CallOption) (*Batc // "FORMULA" // ], // "enumDescriptions": [ - // "Values will be calculated \u0026 formatted in the reply according to the cell's formatting. Formatting is based on the spreadsheet's locale, not the requesting user's locale. For example, if `A1` is `1.23` and `A2` is `=A1` and formatted as currency, then `A2` would return `\"$1.23\"`.", + // "Values will be calculated \u0026 formatted in the response according to the cell's formatting. Formatting is based on the spreadsheet's locale, not the requesting user's locale. For example, if `A1` is `1.23` and `A2` is `=A1` and formatted as currency, then `A2` would return `\"$1.23\"`.", // "Values will be calculated, but not formatted in the reply. For example, if `A1` is `1.23` and `A2` is `=A1` and formatted as currency, then `A2` would return the number `1.23`.", - // "Values will not be calculated. The reply will include the formulas. For example, if `A1` is `1.23` and `A2` is `=A1` and formatted as currency, then A2 would return `\"=A1\"`." + // "Values will not be calculated. The reply will include the formulas. For example, if `A1` is `1.23` and `A2` is `=A1` and formatted as currency, then A2 would return `\"=A1\"`. Sheets treats date and time values as decimal values. This lets you perform arithmetic on them in formulas. For more information on interpreting date and time values, see [About date \u0026 time values](https://developers.google.com/sheets/api/guides/formats#about_date_time_values)." // ], // "location": "query", // "type": "string" @@ -14271,10 +14298,10 @@ func (c *SpreadsheetsValuesGetCall) MajorDimension(majorDimension string) *Sprea // // "FORMATTED_VALUE" - Values will be calculated & formatted in the // -// reply according to the cell's formatting. Formatting is based on the -// spreadsheet's locale, not the requesting user's locale. For example, -// if `A1` is `1.23` and `A2` is `=A1` and formatted as currency, then -// `A2` would return "$1.23". +// response according to the cell's formatting. Formatting is based on +// the spreadsheet's locale, not the requesting user's locale. For +// example, if `A1` is `1.23` and `A2` is `=A1` and formatted as +// currency, then `A2` would return "$1.23". // // "UNFORMATTED_VALUE" - Values will be calculated, but not formatted // @@ -14284,7 +14311,12 @@ func (c *SpreadsheetsValuesGetCall) MajorDimension(majorDimension string) *Sprea // "FORMULA" - Values will not be calculated. The reply will include // // the formulas. For example, if `A1` is `1.23` and `A2` is `=A1` and -// formatted as currency, then A2 would return "=A1". +// formatted as currency, then A2 would return "=A1". Sheets treats +// date and time values as decimal values. This lets you perform +// arithmetic on them in formulas. For more information on interpreting +// date and time values, see [About date & time +// values](https://developers.google.com/sheets/api/guides/formats#about_ +// date_time_values). func (c *SpreadsheetsValuesGetCall) ValueRenderOption(valueRenderOption string) *SpreadsheetsValuesGetCall { c.urlParams_.Set("valueRenderOption", valueRenderOption) return c @@ -14447,9 +14479,9 @@ func (c *SpreadsheetsValuesGetCall) Do(opts ...googleapi.CallOption) (*ValueRang // "FORMULA" // ], // "enumDescriptions": [ - // "Values will be calculated \u0026 formatted in the reply according to the cell's formatting. Formatting is based on the spreadsheet's locale, not the requesting user's locale. For example, if `A1` is `1.23` and `A2` is `=A1` and formatted as currency, then `A2` would return `\"$1.23\"`.", + // "Values will be calculated \u0026 formatted in the response according to the cell's formatting. Formatting is based on the spreadsheet's locale, not the requesting user's locale. For example, if `A1` is `1.23` and `A2` is `=A1` and formatted as currency, then `A2` would return `\"$1.23\"`.", // "Values will be calculated, but not formatted in the reply. For example, if `A1` is `1.23` and `A2` is `=A1` and formatted as currency, then `A2` would return the number `1.23`.", - // "Values will not be calculated. The reply will include the formulas. For example, if `A1` is `1.23` and `A2` is `=A1` and formatted as currency, then A2 would return `\"=A1\"`." + // "Values will not be calculated. The reply will include the formulas. For example, if `A1` is `1.23` and `A2` is `=A1` and formatted as currency, then A2 would return `\"=A1\"`. Sheets treats date and time values as decimal values. This lets you perform arithmetic on them in formulas. For more information on interpreting date and time values, see [About date \u0026 time values](https://developers.google.com/sheets/api/guides/formats#about_date_time_values)." // ], // "location": "query", // "type": "string" @@ -14544,10 +14576,10 @@ func (c *SpreadsheetsValuesUpdateCall) ResponseDateTimeRenderOption(responseDate // // "FORMATTED_VALUE" - Values will be calculated & formatted in the // -// reply according to the cell's formatting. Formatting is based on the -// spreadsheet's locale, not the requesting user's locale. For example, -// if `A1` is `1.23` and `A2` is `=A1` and formatted as currency, then -// `A2` would return "$1.23". +// response according to the cell's formatting. Formatting is based on +// the spreadsheet's locale, not the requesting user's locale. For +// example, if `A1` is `1.23` and `A2` is `=A1` and formatted as +// currency, then `A2` would return "$1.23". // // "UNFORMATTED_VALUE" - Values will be calculated, but not formatted // @@ -14557,7 +14589,12 @@ func (c *SpreadsheetsValuesUpdateCall) ResponseDateTimeRenderOption(responseDate // "FORMULA" - Values will not be calculated. The reply will include // // the formulas. For example, if `A1` is `1.23` and `A2` is `=A1` and -// formatted as currency, then A2 would return "=A1". +// formatted as currency, then A2 would return "=A1". Sheets treats +// date and time values as decimal values. This lets you perform +// arithmetic on them in formulas. For more information on interpreting +// date and time values, see [About date & time +// values](https://developers.google.com/sheets/api/guides/formats#about_ +// date_time_values). func (c *SpreadsheetsValuesUpdateCall) ResponseValueRenderOption(responseValueRenderOption string) *SpreadsheetsValuesUpdateCall { c.urlParams_.Set("responseValueRenderOption", responseValueRenderOption) return c @@ -14719,9 +14756,9 @@ func (c *SpreadsheetsValuesUpdateCall) Do(opts ...googleapi.CallOption) (*Update // "FORMULA" // ], // "enumDescriptions": [ - // "Values will be calculated \u0026 formatted in the reply according to the cell's formatting. Formatting is based on the spreadsheet's locale, not the requesting user's locale. For example, if `A1` is `1.23` and `A2` is `=A1` and formatted as currency, then `A2` would return `\"$1.23\"`.", + // "Values will be calculated \u0026 formatted in the response according to the cell's formatting. Formatting is based on the spreadsheet's locale, not the requesting user's locale. For example, if `A1` is `1.23` and `A2` is `=A1` and formatted as currency, then `A2` would return `\"$1.23\"`.", // "Values will be calculated, but not formatted in the reply. For example, if `A1` is `1.23` and `A2` is `=A1` and formatted as currency, then `A2` would return the number `1.23`.", - // "Values will not be calculated. The reply will include the formulas. For example, if `A1` is `1.23` and `A2` is `=A1` and formatted as currency, then A2 would return `\"=A1\"`." + // "Values will not be calculated. The reply will include the formulas. For example, if `A1` is `1.23` and `A2` is `=A1` and formatted as currency, then A2 would return `\"=A1\"`. Sheets treats date and time values as decimal values. This lets you perform arithmetic on them in formulas. For more information on interpreting date and time values, see [About date \u0026 time values](https://developers.google.com/sheets/api/guides/formats#about_date_time_values)." // ], // "location": "query", // "type": "string" diff --git a/tpu/v1/tpu-api.json b/tpu/v1/tpu-api.json index 820cbf9681d..b669c24c791 100644 --- a/tpu/v1/tpu-api.json +++ b/tpu/v1/tpu-api.json @@ -659,7 +659,7 @@ } } }, - "revision": "20230420", + "revision": "20230621", "rootUrl": "https://tpu.googleapis.com/", "schemas": { "AcceleratorType": { @@ -909,6 +909,7 @@ "type": "string" }, "ipAddress": { + "deprecated": true, "description": "Output only. DEPRECATED! Use network_endpoints instead. The network address for the TPU Node as visible to Compute Engine instances.", "type": "string" }, @@ -937,6 +938,7 @@ "type": "array" }, "port": { + "deprecated": true, "description": "Output only. DEPRECATED! Use network_endpoints instead. The network port for the TPU Node as visible to Compute Engine instances.", "type": "string" }, diff --git a/tpu/v1alpha1/tpu-api.json b/tpu/v1alpha1/tpu-api.json index a44f9d34351..c8569a8a776 100644 --- a/tpu/v1alpha1/tpu-api.json +++ b/tpu/v1alpha1/tpu-api.json @@ -669,7 +669,7 @@ } } }, - "revision": "20230420", + "revision": "20230621", "rootUrl": "https://tpu.googleapis.com/", "schemas": { "AcceleratorType": { @@ -919,6 +919,7 @@ "type": "string" }, "ipAddress": { + "deprecated": true, "description": "Output only. DEPRECATED! Use network_endpoints instead. The network address for the TPU Node as visible to Compute Engine instances.", "type": "string" }, @@ -947,6 +948,7 @@ "type": "array" }, "port": { + "deprecated": true, "description": "Output only. DEPRECATED! Use network_endpoints instead. The network port for the TPU Node as visible to Compute Engine instances.", "type": "string" }, diff --git a/tpu/v2/tpu-api.json b/tpu/v2/tpu-api.json index 10902216e88..527340dabc4 100644 --- a/tpu/v2/tpu-api.json +++ b/tpu/v2/tpu-api.json @@ -721,7 +721,7 @@ } } }, - "revision": "20230420", + "revision": "20230621", "rootUrl": "https://tpu.googleapis.com/", "schemas": { "AcceleratorConfig": { @@ -1255,7 +1255,7 @@ "TPU node is restarting.", "TPU node is undergoing reimaging.", "TPU node is being deleted.", - "TPU node is being repaired and may be unusable. Details can be found in the `help_description` field.", + "TPU node is being repaired and may be unusable. Details can be found in the 'help_description' field.", "TPU node is stopped.", "TPU node is currently stopping.", "TPU node is currently starting.", diff --git a/tpu/v2/tpu-gen.go b/tpu/v2/tpu-gen.go index 5e91fe545a0..826c50dcf46 100644 --- a/tpu/v2/tpu-gen.go +++ b/tpu/v2/tpu-gen.go @@ -980,7 +980,7 @@ type Node struct { // "REIMAGING" - TPU node is undergoing reimaging. // "DELETING" - TPU node is being deleted. // "REPAIRING" - TPU node is being repaired and may be unusable. - // Details can be found in the `help_description` field. + // Details can be found in the 'help_description' field. // "STOPPED" - TPU node is stopped. // "STOPPING" - TPU node is currently stopping. // "STARTING" - TPU node is currently starting. diff --git a/workflows/v1/workflows-api.json b/workflows/v1/workflows-api.json index a2409424fd6..ce2825909f2 100644 --- a/workflows/v1/workflows-api.json +++ b/workflows/v1/workflows-api.json @@ -449,7 +449,7 @@ } } }, - "revision": "20230510", + "revision": "20230619", "rootUrl": "https://workflows.googleapis.com/", "schemas": { "Empty": { @@ -756,6 +756,13 @@ "format": "google-datetime", "readOnly": true, "type": "string" + }, + "userEnvVars": { + "additionalProperties": { + "type": "string" + }, + "description": "Optional. User-defined environment variables associated with this workflow revision. This map has a maximum length of 20. Each string can take up to 40KiB. Keys cannot be empty strings and cannot start with “GOOGLE” or “WORKFLOWS\".", + "type": "object" } }, "type": "object" diff --git a/workflows/v1/workflows-gen.go b/workflows/v1/workflows-gen.go index 2781d6aa9b8..f62a9045e35 100644 --- a/workflows/v1/workflows-gen.go +++ b/workflows/v1/workflows-gen.go @@ -632,6 +632,12 @@ type Workflow struct { // updated. UpdateTime string `json:"updateTime,omitempty"` + // UserEnvVars: Optional. User-defined environment variables associated + // with this workflow revision. This map has a maximum length of 20. + // Each string can take up to 40KiB. Keys cannot be empty strings and + // cannot start with “GOOGLE” or “WORKFLOWS". + UserEnvVars map[string]string `json:"userEnvVars,omitempty"` + // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` diff --git a/workstations/v1beta/workstations-api.json b/workstations/v1beta/workstations-api.json index f96ab310b71..6d4a6bd7a3d 100644 --- a/workstations/v1beta/workstations-api.json +++ b/workstations/v1beta/workstations-api.json @@ -1127,7 +1127,7 @@ } } }, - "revision": "20230531", + "revision": "20230619", "rootUrl": "https://workstations.googleapis.com/", "schemas": { "Accelerator": { @@ -1248,7 +1248,7 @@ "type": "object" }, "image": { - "description": "A Docker container image that defines a custom environment. Cloud Workstations provides a number of [preconfigured images](https://cloud.google.com/workstations/docs/preconfigured-base-images), but you can create your own [custom container images](https://cloud.google.com/workstations/docs/custom-container-images). If using a private image, the `host.gceInstance.serviceAccount` field must be specified in the workstation configuration and must have permission to pull the specified image. Otherwise, the image must be publicly accessible.s", + "description": "A Docker container image that defines a custom environment. Cloud Workstations provides a number of [preconfigured images](https://cloud.google.com/workstations/docs/preconfigured-base-images), but you can create your own [custom container images](https://cloud.google.com/workstations/docs/custom-container-images). If using a private image, the `host.gceInstance.serviceAccount` field must be specified in the workstation configuration and must have permission to pull the specified image. Otherwise, the image must be publicly accessible.", "type": "string" }, "runAsUser": { @@ -1336,6 +1336,10 @@ "description": "When set to true, disables public IP addresses for VMs. If you disable public IP addresses, you must set up Private Google Access or Cloud NAT on your network. If you use Private Google Access and you use `private.googleapis.com` or `restricted.googleapis.com` for Container Registry and Artifact Registry, make sure that you set up DNS records for domains `*.gcr.io` and `*.pkg.dev`. Defaults to false (VMs have public IP addresses).", "type": "boolean" }, + "enableNestedVirtualization": { + "description": "Whether to enable nested virtualization on instances.", + "type": "boolean" + }, "machineType": { "description": "The type of machine to use for VM instances—for example, `e2-standard-4`. For more information about machine types that Cloud Workstations supports, see the list of [available machine types](https://cloud.google.com/workstations/docs/available-machine-types).", "type": "string" @@ -2102,7 +2106,7 @@ "type": "string" }, "degraded": { - "description": "Output only. Whether this resource is in degraded mode, in which case it may require user action to restore full functionality. Details can be found in the `conditions` field.", + "description": "Output only. Whether this resource is degraded, in which case it may require user action to restore full functionality. See also the `conditions` field.", "readOnly": true, "type": "boolean" }, diff --git a/workstations/v1beta/workstations-gen.go b/workstations/v1beta/workstations-gen.go index 4696534c11b..f0c53bea295 100644 --- a/workstations/v1beta/workstations-gen.go +++ b/workstations/v1beta/workstations-gen.go @@ -439,7 +439,7 @@ type Container struct { // If using a private image, the `host.gceInstance.serviceAccount` field // must be specified in the workstation configuration and must have // permission to pull the specified image. Otherwise, the image must be - // publicly accessible.s + // publicly accessible. Image string `json:"image,omitempty"` // RunAsUser: If set, overrides the USER specified in the image with the @@ -634,6 +634,10 @@ type GceInstance struct { // addresses). DisablePublicIpAddresses bool `json:"disablePublicIpAddresses,omitempty"` + // EnableNestedVirtualization: Whether to enable nested virtualization + // on instances. + EnableNestedVirtualization bool `json:"enableNestedVirtualization,omitempty"` + // MachineType: The type of machine to use for VM instances—for // example, `e2-standard-4`. For more information about machine types // that Cloud Workstations supports, see the list of available machine @@ -1903,9 +1907,9 @@ type WorkstationConfig struct { // CreateTime: Output only. Time when this resource was created. CreateTime string `json:"createTime,omitempty"` - // Degraded: Output only. Whether this resource is in degraded mode, in - // which case it may require user action to restore full functionality. - // Details can be found in the `conditions` field. + // Degraded: Output only. Whether this resource is degraded, in which + // case it may require user action to restore full functionality. See + // also the `conditions` field. Degraded bool `json:"degraded,omitempty"` // DeleteTime: Output only. Time when this resource was soft-deleted. From 78ebbdb0ea67c7936888eab6c93db50c734cfc93 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Tue, 27 Jun 2023 14:34:18 +0000 Subject: [PATCH 11/11] chore(main): release 0.129.0 (#2029) :robot: I have created a release *beep* *boop* --- ## [0.129.0](https://togithub.com/googleapis/google-api-go-client/compare/v0.128.0...v0.129.0) (2023-06-27) ### Features * **all:** Auto-regenerate discovery clients ([#2028](https://togithub.com/googleapis/google-api-go-client/issues/2028)) ([922fc6a](https://togithub.com/googleapis/google-api-go-client/commit/922fc6a38962d441b49d8592d62b5b4c70354b7a)) * **all:** Auto-regenerate discovery clients ([#2030](https://togithub.com/googleapis/google-api-go-client/issues/2030)) ([3eb845f](https://togithub.com/googleapis/google-api-go-client/commit/3eb845f12832f5a8943983d54b4a23da38e6f0ba)) * **all:** Auto-regenerate discovery clients ([#2032](https://togithub.com/googleapis/google-api-go-client/issues/2032)) ([247ad09](https://togithub.com/googleapis/google-api-go-client/commit/247ad09c5eaa9c06208a1acd99ccbf3b41b5e8f4)) * **all:** Auto-regenerate discovery clients ([#2033](https://togithub.com/googleapis/google-api-go-client/issues/2033)) ([cc73573](https://togithub.com/googleapis/google-api-go-client/commit/cc73573e605b04cdaabb4bdfbc355d79c6fba8ba)) * **all:** Auto-regenerate discovery clients ([#2035](https://togithub.com/googleapis/google-api-go-client/issues/2035)) ([177408e](https://togithub.com/googleapis/google-api-go-client/commit/177408ea127ce2e5a171fa54008838560203e587)) * **all:** Auto-regenerate discovery clients ([#2040](https://togithub.com/googleapis/google-api-go-client/issues/2040)) ([5e1c531](https://togithub.com/googleapis/google-api-go-client/commit/5e1c531ef949b53a8997c25e3f4ea7943b3335b7)) --- This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please). --- CHANGES.md | 12 ++++++++++++ internal/version.go | 2 +- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/CHANGES.md b/CHANGES.md index 7a047f88524..95c34312ec1 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,5 +1,17 @@ # Changes +## [0.129.0](https://github.com/googleapis/google-api-go-client/compare/v0.128.0...v0.129.0) (2023-06-27) + + +### Features + +* **all:** Auto-regenerate discovery clients ([#2028](https://github.com/googleapis/google-api-go-client/issues/2028)) ([922fc6a](https://github.com/googleapis/google-api-go-client/commit/922fc6a38962d441b49d8592d62b5b4c70354b7a)) +* **all:** Auto-regenerate discovery clients ([#2030](https://github.com/googleapis/google-api-go-client/issues/2030)) ([3eb845f](https://github.com/googleapis/google-api-go-client/commit/3eb845f12832f5a8943983d54b4a23da38e6f0ba)) +* **all:** Auto-regenerate discovery clients ([#2032](https://github.com/googleapis/google-api-go-client/issues/2032)) ([247ad09](https://github.com/googleapis/google-api-go-client/commit/247ad09c5eaa9c06208a1acd99ccbf3b41b5e8f4)) +* **all:** Auto-regenerate discovery clients ([#2033](https://github.com/googleapis/google-api-go-client/issues/2033)) ([cc73573](https://github.com/googleapis/google-api-go-client/commit/cc73573e605b04cdaabb4bdfbc355d79c6fba8ba)) +* **all:** Auto-regenerate discovery clients ([#2035](https://github.com/googleapis/google-api-go-client/issues/2035)) ([177408e](https://github.com/googleapis/google-api-go-client/commit/177408ea127ce2e5a171fa54008838560203e587)) +* **all:** Auto-regenerate discovery clients ([#2040](https://github.com/googleapis/google-api-go-client/issues/2040)) ([5e1c531](https://github.com/googleapis/google-api-go-client/commit/5e1c531ef949b53a8997c25e3f4ea7943b3335b7)) + ## [0.128.0](https://github.com/googleapis/google-api-go-client/compare/v0.127.0...v0.128.0) (2023-06-15) diff --git a/internal/version.go b/internal/version.go index 54d30ef667a..6aeb50de806 100644 --- a/internal/version.go +++ b/internal/version.go @@ -5,4 +5,4 @@ package internal // Version is the current tagged release of the library. -const Version = "0.128.0" +const Version = "0.129.0"