diff --git a/androidpublisher/v2/androidpublisher-api.json b/androidpublisher/v2/androidpublisher-api.json index 2d6535d3eb1..752d88e5e11 100644 --- a/androidpublisher/v2/androidpublisher-api.json +++ b/androidpublisher/v2/androidpublisher-api.json @@ -15,7 +15,7 @@ "description": "Accesses Android application developers' Google Play accounts.", "discoveryVersion": "v1", "documentationLink": "https://developers.google.com/android-publisher", - "etag": "\"9eZ1uxVRThTDhLJCZHhqs3eQWz4/ZlrjHKgPxkTZv7bj40ZdNs4BSVM\"", + "etag": "\"9eZ1uxVRThTDhLJCZHhqs3eQWz4/QOSAA79zadBSuM2-uR1KK8Jwjsk\"", "icons": { "x16": "https://www.google.com/images/icons/product/android-16.png", "x32": "https://www.google.com/images/icons/product/android-32.png" @@ -2328,7 +2328,7 @@ ], "parameters": { "endTime": { - "description": "The time, in milliseconds since the Epoch, of the newest voided in-app product purchase that you want to see in the response. The value of this parameter cannot be greater than the current time and is ignored if a pagination token is set. Default value is current time. Note: This filter is applied on the time at which the record is seen as voided by our systems and not the actual voided time returned in the response.", + "description": "The time, in milliseconds since the Epoch, of the newest voided purchase that you want to see in the response. The value of this parameter cannot be greater than the current time and is ignored if a pagination token is set. Default value is current time. Note: This filter is applied on the time at which the record is seen as voided by our systems and not the actual voided time returned in the response.", "format": "int64", "location": "query", "type": "string" @@ -2350,7 +2350,7 @@ "type": "integer" }, "startTime": { - "description": "The time, in milliseconds since the Epoch, of the oldest voided in-app product purchase that you want to see in the response. The value of this parameter cannot be older than 30 days and is ignored if a pagination token is set. Default value is current time minus 30 days. Note: This filter is applied on the time at which the record is seen as voided by our systems and not the actual voided time returned in the response.", + "description": "The time, in milliseconds since the Epoch, of the oldest voided purchase that you want to see in the response. The value of this parameter cannot be older than 30 days and is ignored if a pagination token is set. Default value is current time minus 30 days. Note: This filter is applied on the time at which the record is seen as voided by our systems and not the actual voided time returned in the response.", "format": "int64", "location": "query", "type": "string" @@ -2483,7 +2483,7 @@ } } }, - "revision": "20190730", + "revision": "20190818", "rootUrl": "https://www.googleapis.com/", "schemas": { "Apk": { @@ -3601,7 +3601,7 @@ "type": "string" }, "purchaseToken": { - "description": "The token that was generated when a purchase was made. This uniquely identifies a purchase.", + "description": "The token which uniquely identifies a one-time purchase or subscription. To uniquely identify subscription renewals use order_id (available starting from version 3 of the API).", "type": "string" }, "voidedTimeMillis": { diff --git a/androidpublisher/v2/androidpublisher-gen.go b/androidpublisher/v2/androidpublisher-gen.go index e773b77594d..bf970994df2 100644 --- a/androidpublisher/v2/androidpublisher-gen.go +++ b/androidpublisher/v2/androidpublisher-gen.go @@ -2426,8 +2426,9 @@ type VoidedPurchase struct { // milliseconds since the epoch (Jan 1, 1970). PurchaseTimeMillis int64 `json:"purchaseTimeMillis,omitempty,string"` - // PurchaseToken: The token that was generated when a purchase was made. - // This uniquely identifies a purchase. + // PurchaseToken: The token which uniquely identifies a one-time + // purchase or subscription. To uniquely identify subscription renewals + // use order_id (available starting from version 3 of the API). PurchaseToken string `json:"purchaseToken,omitempty"` // VoidedTimeMillis: The time at which the purchase was @@ -11194,13 +11195,12 @@ func (r *PurchasesVoidedpurchasesService) List(packageName string) *PurchasesVoi } // EndTime sets the optional parameter "endTime": The time, in -// milliseconds since the Epoch, of the newest voided in-app product -// purchase that you want to see in the response. The value of this -// parameter cannot be greater than the current time and is ignored if a -// pagination token is set. Default value is current time. Note: This -// filter is applied on the time at which the record is seen as voided -// by our systems and not the actual voided time returned in the -// response. +// milliseconds since the Epoch, of the newest voided purchase that you +// want to see in the response. The value of this parameter cannot be +// greater than the current time and is ignored if a pagination token is +// set. Default value is current time. Note: This filter is applied on +// the time at which the record is seen as voided by our systems and not +// the actual voided time returned in the response. func (c *PurchasesVoidedpurchasesListCall) EndTime(endTime int64) *PurchasesVoidedpurchasesListCall { c.urlParams_.Set("endTime", fmt.Sprint(endTime)) return c @@ -11219,13 +11219,12 @@ func (c *PurchasesVoidedpurchasesListCall) StartIndex(startIndex int64) *Purchas } // StartTime sets the optional parameter "startTime": The time, in -// milliseconds since the Epoch, of the oldest voided in-app product -// purchase that you want to see in the response. The value of this -// parameter cannot be older than 30 days and is ignored if a pagination -// token is set. Default value is current time minus 30 days. Note: This -// filter is applied on the time at which the record is seen as voided -// by our systems and not the actual voided time returned in the -// response. +// milliseconds since the Epoch, of the oldest voided purchase that you +// want to see in the response. The value of this parameter cannot be +// older than 30 days and is ignored if a pagination token is set. +// Default value is current time minus 30 days. Note: This filter is +// applied on the time at which the record is seen as voided by our +// systems and not the actual voided time returned in the response. func (c *PurchasesVoidedpurchasesListCall) StartTime(startTime int64) *PurchasesVoidedpurchasesListCall { c.urlParams_.Set("startTime", fmt.Sprint(startTime)) return c @@ -11344,7 +11343,7 @@ func (c *PurchasesVoidedpurchasesListCall) Do(opts ...googleapi.CallOption) (*Vo // ], // "parameters": { // "endTime": { - // "description": "The time, in milliseconds since the Epoch, of the newest voided in-app product purchase that you want to see in the response. The value of this parameter cannot be greater than the current time and is ignored if a pagination token is set. Default value is current time. Note: This filter is applied on the time at which the record is seen as voided by our systems and not the actual voided time returned in the response.", + // "description": "The time, in milliseconds since the Epoch, of the newest voided purchase that you want to see in the response. The value of this parameter cannot be greater than the current time and is ignored if a pagination token is set. Default value is current time. Note: This filter is applied on the time at which the record is seen as voided by our systems and not the actual voided time returned in the response.", // "format": "int64", // "location": "query", // "type": "string" @@ -11366,7 +11365,7 @@ func (c *PurchasesVoidedpurchasesListCall) Do(opts ...googleapi.CallOption) (*Vo // "type": "integer" // }, // "startTime": { - // "description": "The time, in milliseconds since the Epoch, of the oldest voided in-app product purchase that you want to see in the response. The value of this parameter cannot be older than 30 days and is ignored if a pagination token is set. Default value is current time minus 30 days. Note: This filter is applied on the time at which the record is seen as voided by our systems and not the actual voided time returned in the response.", + // "description": "The time, in milliseconds since the Epoch, of the oldest voided purchase that you want to see in the response. The value of this parameter cannot be older than 30 days and is ignored if a pagination token is set. Default value is current time minus 30 days. Note: This filter is applied on the time at which the record is seen as voided by our systems and not the actual voided time returned in the response.", // "format": "int64", // "location": "query", // "type": "string" diff --git a/androidpublisher/v3/androidpublisher-api.json b/androidpublisher/v3/androidpublisher-api.json index e59df42e984..ff8127bdeb3 100644 --- a/androidpublisher/v3/androidpublisher-api.json +++ b/androidpublisher/v3/androidpublisher-api.json @@ -15,7 +15,7 @@ "description": "Accesses Android application developers' Google Play accounts.", "discoveryVersion": "v1", "documentationLink": "https://developers.google.com/android-publisher", - "etag": "\"9eZ1uxVRThTDhLJCZHhqs3eQWz4/3tx6VdUXP7L7Yr2512fVLQnP1WA\"", + "etag": "\"9eZ1uxVRThTDhLJCZHhqs3eQWz4/3qicJ9GohF0nzsqFBKgiv8iuS2E\"", "icons": { "x16": "https://www.google.com/images/icons/product/android-16.png", "x32": "https://www.google.com/images/icons/product/android-32.png" @@ -2227,7 +2227,7 @@ ], "parameters": { "endTime": { - "description": "The time, in milliseconds since the Epoch, of the newest voided in-app product purchase that you want to see in the response. The value of this parameter cannot be greater than the current time and is ignored if a pagination token is set. Default value is current time. Note: This filter is applied on the time at which the record is seen as voided by our systems and not the actual voided time returned in the response.", + "description": "The time, in milliseconds since the Epoch, of the newest voided purchase that you want to see in the response. The value of this parameter cannot be greater than the current time and is ignored if a pagination token is set. Default value is current time. Note: This filter is applied on the time at which the record is seen as voided by our systems and not the actual voided time returned in the response.", "format": "int64", "location": "query", "type": "string" @@ -2249,7 +2249,7 @@ "type": "integer" }, "startTime": { - "description": "The time, in milliseconds since the Epoch, of the oldest voided in-app product purchase that you want to see in the response. The value of this parameter cannot be older than 30 days and is ignored if a pagination token is set. Default value is current time minus 30 days. Note: This filter is applied on the time at which the record is seen as voided by our systems and not the actual voided time returned in the response.", + "description": "The time, in milliseconds since the Epoch, of the oldest voided purchase that you want to see in the response. The value of this parameter cannot be older than 30 days and is ignored if a pagination token is set. Default value is current time minus 30 days. Note: This filter is applied on the time at which the record is seen as voided by our systems and not the actual voided time returned in the response.", "format": "int64", "location": "query", "type": "string" @@ -2257,6 +2257,12 @@ "token": { "location": "query", "type": "string" + }, + "type": { + "description": "The type of voided purchases that you want to see in the response. Possible values are: \n- 0: Only voided in-app product purchases will be returned in the response. This is the default value.\n- 1: Both voided in-app purchases and voided subscription purchases will be returned in the response. Note: Before requesting to receive voided subscription purchases, you must switch to use orderId in the response which uniquely identifies one-time purchases and subscriptions. Otherwise, you will receive multiple subscription orders with the same PurchaseToken, because subscription renewal orders share the same PurchaseToken.", + "format": "int32", + "location": "query", + "type": "integer" } }, "path": "{packageName}/purchases/voidedpurchases", @@ -2382,7 +2388,7 @@ } } }, - "revision": "20190730", + "revision": "20190818", "rootUrl": "https://www.googleapis.com/", "schemas": { "Apk": { @@ -3607,15 +3613,29 @@ "description": "This kind represents a voided purchase object in the androidpublisher service.", "type": "string" }, + "orderId": { + "description": "The order id which uniquely identifies a one-time purchase, subscription purchase, or subscription renewal.", + "type": "string" + }, "purchaseTimeMillis": { "description": "The time at which the purchase was made, in milliseconds since the epoch (Jan 1, 1970).", "format": "int64", "type": "string" }, "purchaseToken": { - "description": "The token that was generated when a purchase was made. This uniquely identifies a purchase.", + "description": "The token which uniquely identifies a one-time purchase or subscription. To uniquely identify subscription renewals use order_id (available starting from version 3 of the API).", "type": "string" }, + "voidedReason": { + "description": "The reason why the purchase was voided, possible values are: \n- Other \n- Remorse \n- Not_received \n- Defective \n- Accidental_purchase \n- Fraud \n- Friendly_fraud \n- Chargeback", + "format": "int32", + "type": "integer" + }, + "voidedSource": { + "description": "The initiator of voided purchase, possible values are: \n- User \n- Developer \n- Google", + "format": "int32", + "type": "integer" + }, "voidedTimeMillis": { "description": "The time at which the purchase was canceled/refunded/charged-back, in milliseconds since the epoch (Jan 1, 1970).", "format": "int64", diff --git a/androidpublisher/v3/androidpublisher-gen.go b/androidpublisher/v3/androidpublisher-gen.go index a8f742ae7e0..9dce68daa1c 100644 --- a/androidpublisher/v3/androidpublisher-gen.go +++ b/androidpublisher/v3/androidpublisher-gen.go @@ -2640,14 +2640,38 @@ type VoidedPurchase struct { // androidpublisher service. Kind string `json:"kind,omitempty"` + // OrderId: The order id which uniquely identifies a one-time purchase, + // subscription purchase, or subscription renewal. + OrderId string `json:"orderId,omitempty"` + // PurchaseTimeMillis: The time at which the purchase was made, in // milliseconds since the epoch (Jan 1, 1970). PurchaseTimeMillis int64 `json:"purchaseTimeMillis,omitempty,string"` - // PurchaseToken: The token that was generated when a purchase was made. - // This uniquely identifies a purchase. + // PurchaseToken: The token which uniquely identifies a one-time + // purchase or subscription. To uniquely identify subscription renewals + // use order_id (available starting from version 3 of the API). PurchaseToken string `json:"purchaseToken,omitempty"` + // VoidedReason: The reason why the purchase was voided, possible values + // are: + // - Other + // - Remorse + // - Not_received + // - Defective + // - Accidental_purchase + // - Fraud + // - Friendly_fraud + // - Chargeback + VoidedReason int64 `json:"voidedReason,omitempty"` + + // VoidedSource: The initiator of voided purchase, possible values are: + // + // - User + // - Developer + // - Google + VoidedSource int64 `json:"voidedSource,omitempty"` + // VoidedTimeMillis: The time at which the purchase was // canceled/refunded/charged-back, in milliseconds since the epoch (Jan // 1, 1970). @@ -11176,13 +11200,12 @@ func (r *PurchasesVoidedpurchasesService) List(packageName string) *PurchasesVoi } // EndTime sets the optional parameter "endTime": The time, in -// milliseconds since the Epoch, of the newest voided in-app product -// purchase that you want to see in the response. The value of this -// parameter cannot be greater than the current time and is ignored if a -// pagination token is set. Default value is current time. Note: This -// filter is applied on the time at which the record is seen as voided -// by our systems and not the actual voided time returned in the -// response. +// milliseconds since the Epoch, of the newest voided purchase that you +// want to see in the response. The value of this parameter cannot be +// greater than the current time and is ignored if a pagination token is +// set. Default value is current time. Note: This filter is applied on +// the time at which the record is seen as voided by our systems and not +// the actual voided time returned in the response. func (c *PurchasesVoidedpurchasesListCall) EndTime(endTime int64) *PurchasesVoidedpurchasesListCall { c.urlParams_.Set("endTime", fmt.Sprint(endTime)) return c @@ -11201,13 +11224,12 @@ func (c *PurchasesVoidedpurchasesListCall) StartIndex(startIndex int64) *Purchas } // StartTime sets the optional parameter "startTime": The time, in -// milliseconds since the Epoch, of the oldest voided in-app product -// purchase that you want to see in the response. The value of this -// parameter cannot be older than 30 days and is ignored if a pagination -// token is set. Default value is current time minus 30 days. Note: This -// filter is applied on the time at which the record is seen as voided -// by our systems and not the actual voided time returned in the -// response. +// milliseconds since the Epoch, of the oldest voided purchase that you +// want to see in the response. The value of this parameter cannot be +// older than 30 days and is ignored if a pagination token is set. +// Default value is current time minus 30 days. Note: This filter is +// applied on the time at which the record is seen as voided by our +// systems and not the actual voided time returned in the response. func (c *PurchasesVoidedpurchasesListCall) StartTime(startTime int64) *PurchasesVoidedpurchasesListCall { c.urlParams_.Set("startTime", fmt.Sprint(startTime)) return c @@ -11219,6 +11241,22 @@ func (c *PurchasesVoidedpurchasesListCall) Token(token string) *PurchasesVoidedp return c } +// Type sets the optional parameter "type": The type of voided purchases +// that you want to see in the response. Possible values are: +// - 0: Only voided in-app product purchases will be returned in the +// response. This is the default value. +// - 1: Both voided in-app purchases and voided subscription purchases +// will be returned in the response. Note: Before requesting to receive +// voided subscription purchases, you must switch to use orderId in the +// response which uniquely identifies one-time purchases and +// subscriptions. Otherwise, you will receive multiple subscription +// orders with the same PurchaseToken, because subscription renewal +// orders share the same PurchaseToken. +func (c *PurchasesVoidedpurchasesListCall) Type(type_ int64) *PurchasesVoidedpurchasesListCall { + c.urlParams_.Set("type", fmt.Sprint(type_)) + return c +} + // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. @@ -11326,7 +11364,7 @@ func (c *PurchasesVoidedpurchasesListCall) Do(opts ...googleapi.CallOption) (*Vo // ], // "parameters": { // "endTime": { - // "description": "The time, in milliseconds since the Epoch, of the newest voided in-app product purchase that you want to see in the response. The value of this parameter cannot be greater than the current time and is ignored if a pagination token is set. Default value is current time. Note: This filter is applied on the time at which the record is seen as voided by our systems and not the actual voided time returned in the response.", + // "description": "The time, in milliseconds since the Epoch, of the newest voided purchase that you want to see in the response. The value of this parameter cannot be greater than the current time and is ignored if a pagination token is set. Default value is current time. Note: This filter is applied on the time at which the record is seen as voided by our systems and not the actual voided time returned in the response.", // "format": "int64", // "location": "query", // "type": "string" @@ -11348,7 +11386,7 @@ func (c *PurchasesVoidedpurchasesListCall) Do(opts ...googleapi.CallOption) (*Vo // "type": "integer" // }, // "startTime": { - // "description": "The time, in milliseconds since the Epoch, of the oldest voided in-app product purchase that you want to see in the response. The value of this parameter cannot be older than 30 days and is ignored if a pagination token is set. Default value is current time minus 30 days. Note: This filter is applied on the time at which the record is seen as voided by our systems and not the actual voided time returned in the response.", + // "description": "The time, in milliseconds since the Epoch, of the oldest voided purchase that you want to see in the response. The value of this parameter cannot be older than 30 days and is ignored if a pagination token is set. Default value is current time minus 30 days. Note: This filter is applied on the time at which the record is seen as voided by our systems and not the actual voided time returned in the response.", // "format": "int64", // "location": "query", // "type": "string" @@ -11356,6 +11394,12 @@ func (c *PurchasesVoidedpurchasesListCall) Do(opts ...googleapi.CallOption) (*Vo // "token": { // "location": "query", // "type": "string" + // }, + // "type": { + // "description": "The type of voided purchases that you want to see in the response. Possible values are: \n- 0: Only voided in-app product purchases will be returned in the response. This is the default value.\n- 1: Both voided in-app purchases and voided subscription purchases will be returned in the response. Note: Before requesting to receive voided subscription purchases, you must switch to use orderId in the response which uniquely identifies one-time purchases and subscriptions. Otherwise, you will receive multiple subscription orders with the same PurchaseToken, because subscription renewal orders share the same PurchaseToken.", + // "format": "int32", + // "location": "query", + // "type": "integer" // } // }, // "path": "{packageName}/purchases/voidedpurchases", diff --git a/cloudfunctions/v1/cloudfunctions-api.json b/cloudfunctions/v1/cloudfunctions-api.json index 7ef752cf229..53bb5d67c94 100644 --- a/cloudfunctions/v1/cloudfunctions-api.json +++ b/cloudfunctions/v1/cloudfunctions-api.json @@ -390,6 +390,12 @@ "resource" ], "parameters": { + "options.requestedPolicyVersion": { + "description": "Optional. The policy format version to be returned.\nAcceptable values are 0, 1, and 3.\nIf the value is 0, or the field is omitted, policy format version 1 will be\nreturned.", + "format": "int32", + "location": "query", + "type": "integer" + }, "resource": { "description": "REQUIRED: The resource for which the policy is being requested.\nSee the operation documentation for the appropriate value for this field.", "location": "path", @@ -539,11 +545,11 @@ } } }, - "revision": "20190607", + "revision": "20190807", "rootUrl": "https://cloudfunctions.googleapis.com/", "schemas": { "AuditConfig": { - "description": "Specifies the audit configuration for a service.\nThe configuration determines which permission types are logged, and what\nidentities, if any, are exempted from logging.\nAn AuditConfig must have one or more AuditLogConfigs.\n\nIf there are AuditConfigs for both `allServices` and a specific service,\nthe union of the two AuditConfigs is used for that service: the log_types\nspecified in each AuditConfig are enabled, and the exempted_members in each\nAuditLogConfig are exempted.\n\nExample Policy with multiple AuditConfigs:\n\n {\n \"audit_configs\": [\n {\n \"service\": \"allServices\"\n \"audit_log_configs\": [\n {\n \"log_type\": \"DATA_READ\",\n \"exempted_members\": [\n \"user:foo@gmail.com\"\n ]\n },\n {\n \"log_type\": \"DATA_WRITE\",\n },\n {\n \"log_type\": \"ADMIN_READ\",\n }\n ]\n },\n {\n \"service\": \"fooservice.googleapis.com\"\n \"audit_log_configs\": [\n {\n \"log_type\": \"DATA_READ\",\n },\n {\n \"log_type\": \"DATA_WRITE\",\n \"exempted_members\": [\n \"user:bar@gmail.com\"\n ]\n }\n ]\n }\n ]\n }\n\nFor fooservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ\nlogging. It also exempts foo@gmail.com from DATA_READ logging, and\nbar@gmail.com from DATA_WRITE logging.", + "description": "Specifies the audit configuration for a service.\nThe configuration determines which permission types are logged, and what\nidentities, if any, are exempted from logging.\nAn AuditConfig must have one or more AuditLogConfigs.\n\nIf there are AuditConfigs for both `allServices` and a specific service,\nthe union of the two AuditConfigs is used for that service: the log_types\nspecified in each AuditConfig are enabled, and the exempted_members in each\nAuditLogConfig are exempted.\n\nExample Policy with multiple AuditConfigs:\n\n {\n \"audit_configs\": [\n {\n \"service\": \"allServices\"\n \"audit_log_configs\": [\n {\n \"log_type\": \"DATA_READ\",\n \"exempted_members\": [\n \"user:jose@example.com\"\n ]\n },\n {\n \"log_type\": \"DATA_WRITE\",\n },\n {\n \"log_type\": \"ADMIN_READ\",\n }\n ]\n },\n {\n \"service\": \"sampleservice.googleapis.com\"\n \"audit_log_configs\": [\n {\n \"log_type\": \"DATA_READ\",\n },\n {\n \"log_type\": \"DATA_WRITE\",\n \"exempted_members\": [\n \"user:aliya@example.com\"\n ]\n }\n ]\n }\n ]\n }\n\nFor sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ\nlogging. It also exempts jose@example.com from DATA_READ logging, and\naliya@example.com from DATA_WRITE logging.", "id": "AuditConfig", "properties": { "auditLogConfigs": { @@ -561,7 +567,7 @@ "type": "object" }, "AuditLogConfig": { - "description": "Provides the configuration for logging a type of permissions.\nExample:\n\n {\n \"audit_log_configs\": [\n {\n \"log_type\": \"DATA_READ\",\n \"exempted_members\": [\n \"user:foo@gmail.com\"\n ]\n },\n {\n \"log_type\": \"DATA_WRITE\",\n }\n ]\n }\n\nThis enables 'DATA_READ' and 'DATA_WRITE' logging, while exempting\nfoo@gmail.com from DATA_READ logging.", + "description": "Provides the configuration for logging a type of permissions.\nExample:\n\n {\n \"audit_log_configs\": [\n {\n \"log_type\": \"DATA_READ\",\n \"exempted_members\": [\n \"user:jose@example.com\"\n ]\n },\n {\n \"log_type\": \"DATA_WRITE\",\n }\n ]\n }\n\nThis enables 'DATA_READ' and 'DATA_WRITE' logging, while exempting\njose@example.com from DATA_READ logging.", "id": "AuditLogConfig", "properties": { "exemptedMembers": { @@ -599,7 +605,7 @@ "description": "The condition that is associated with this binding.\nNOTE: An unsatisfied condition will not allow user access via current\nbinding. Different bindings, including their conditions, are examined\nindependently." }, "members": { - "description": "Specifies the identities requesting access for a Cloud Platform resource.\n`members` can have the following values:\n\n* `allUsers`: A special identifier that represents anyone who is\n on the internet; with or without a Google account.\n\n* `allAuthenticatedUsers`: A special identifier that represents anyone\n who is authenticated with a Google account or a service account.\n\n* `user:{emailid}`: An email address that represents a specific Google\n account. For example, `alice@gmail.com` .\n\n\n* `serviceAccount:{emailid}`: An email address that represents a service\n account. For example, `my-other-app@appspot.gserviceaccount.com`.\n\n* `group:{emailid}`: An email address that represents a Google group.\n For example, `admins@example.com`.\n\n\n* `domain:{domain}`: The G Suite domain (primary) that represents all the\n users of that domain. For example, `google.com` or `example.com`.\n\n", + "description": "Specifies the identities requesting access for a Cloud Platform resource.\n`members` can have the following values:\n\n* `allUsers`: A special identifier that represents anyone who is\n on the internet; with or without a Google account.\n\n* `allAuthenticatedUsers`: A special identifier that represents anyone\n who is authenticated with a Google account or a service account.\n\n* `user:{emailid}`: An email address that represents a specific Google\n account. For example, `alice@example.com` .\n\n\n* `serviceAccount:{emailid}`: An email address that represents a service\n account. For example, `my-other-app@appspot.gserviceaccount.com`.\n\n* `group:{emailid}`: An email address that represents a Google group.\n For example, `admins@example.com`.\n\n\n* `domain:{domain}`: The G Suite domain (primary) that represents all the\n users of that domain. For example, `google.com` or `example.com`.\n\n", "items": { "type": "string" }, @@ -643,7 +649,7 @@ "type": "object" }, "CloudFunction": { - "description": "Describes a Cloud Function that contains user computation executed in\nresponse to an event. It encapsulate function and triggers configurations.\nLINT.IfChange", + "description": "Describes a Cloud Function that contains user computation executed in\nresponse to an event. It encapsulate function and triggers configurations.", "id": "CloudFunction", "properties": { "availableMemoryMb": { @@ -691,15 +697,15 @@ "type": "string" }, "network": { - "description": "The VPC Network that this cloud function can connect to. It can be\neither the fully-qualified URI, or the short name of the network resource.\nIf the short network name is used, the network must belong to the same\nproject. Otherwise, it must belong to a project within the same\norganization. The format of this field is either\n`projects/{project}/global/networks/{network}` or `{network}`, where\n{project} is a project id where the network is defined, and {network} is\nthe short name of the network.\n\nThis field is mutually exclusive with `vpc_connector` and will be replaced\nby it.\n\nSee [the VPC documentation](https://cloud.google.com/compute/docs/vpc) for\nmore information on connecting Cloud projects.\n\nThis feature is currently in alpha, available only for whitelisted users.", + "description": "The VPC Network that this cloud function can connect to. It can be\neither the fully-qualified URI, or the short name of the network resource.\nIf the short network name is used, the network must belong to the same\nproject. Otherwise, it must belong to a project within the same\norganization. The format of this field is either\n`projects/{project}/global/networks/{network}` or `{network}`, where\n{project} is a project id where the network is defined, and {network} is\nthe short name of the network.\n\nThis field is mutually exclusive with `vpc_connector` and will be replaced\nby it.\n\nSee [the VPC documentation](https://cloud.google.com/compute/docs/vpc) for\nmore information on connecting Cloud projects.", "type": "string" }, "runtime": { - "description": "Required. The runtime in which the function is going to run. Choices:\n\n* `nodejs6`: Node.js 6\n* `nodejs8`: Node.js 8\n* `nodejs10`: Node.js 10\n* `python37`: Python 3.7\n* `go111`: Go 1.11", + "description": "The runtime in which to run the function. Required when deploying a new\nfunction, optional when updating an existing function. For a complete\nlist of possible choices, see the\n[`gcloud` command\nreference](/sdk/gcloud/reference/functions/deploy#--runtime).", "type": "string" }, "serviceAccountEmail": { - "description": "The email of the function's service account. If empty, defaults to\n{project_id}@appspot.gserviceaccount.com.", + "description": "The email of the function's service account. If empty, defaults to\n`{project_id}@appspot.gserviceaccount.com`.", "type": "string" }, "sourceArchiveUrl": { @@ -745,12 +751,12 @@ "type": "string" }, "versionId": { - "description": "Output only.\nThe version identifier of the Cloud Function. Each deployment attempt\nresults in a new version of a function being created.", + "description": "Output only. The version identifier of the Cloud Function. Each deployment attempt\nresults in a new version of a function being created.", "format": "int64", "type": "string" }, "vpcConnector": { - "description": "The VPC Network Connector that this cloud function can connect to. It can\nbe either the fully-qualified URI, or the short name of the network\nconnector resource. The format of this field is\n`projects/*/locations/*/connectors/*`\n\nThis field is mutually exclusive with `network` field and will eventually\nreplace it.\n\nSee [the VPC documentation](https://cloud.google.com/compute/docs/vpc) for\nmore information on connecting Cloud projects.\n\nThis feature is currently in alpha, available only for whitelisted users.", + "description": "The VPC Network Connector that this cloud function can connect to. It can\nbe either the fully-qualified URI, or the short name of the network\nconnector resource. The format of this field is\n`projects/*/locations/*/connectors/*`\n\nThis field is mutually exclusive with `network` field and will eventually\nreplace it.\n\nSee [the VPC documentation](https://cloud.google.com/compute/docs/vpc) for\nmore information on connecting Cloud projects.", "type": "string" } }, @@ -1096,7 +1102,7 @@ "type": "array" }, "etag": { - "description": "`etag` is used for optimistic concurrency control as a way to help\nprevent simultaneous updates of a policy from overwriting each other.\nIt is strongly suggested that systems make use of the `etag` in the\nread-modify-write cycle to perform policy updates in order to avoid race\nconditions: An `etag` is returned in the response to `getIamPolicy`, and\nsystems are expected to put that etag in the request to `setIamPolicy` to\nensure that their change will be applied to the same version of the policy.\n\nIf no `etag` is provided in the call to `setIamPolicy`, then the existing\npolicy is overwritten blindly.", + "description": "`etag` is used for optimistic concurrency control as a way to help\nprevent simultaneous updates of a policy from overwriting each other.\nIt is strongly suggested that systems make use of the `etag` in the\nread-modify-write cycle to perform policy updates in order to avoid race\nconditions: An `etag` is returned in the response to `getIamPolicy`, and\nsystems are expected to put that etag in the request to `setIamPolicy` to\nensure that their change will be applied to the same version of the policy.\n\nIf no `etag` is provided in the call to `setIamPolicy`, then the existing\npolicy is overwritten.", "format": "byte", "type": "string" }, diff --git a/cloudfunctions/v1/cloudfunctions-gen.go b/cloudfunctions/v1/cloudfunctions-gen.go index 0fc02070843..f66b458e85e 100644 --- a/cloudfunctions/v1/cloudfunctions-gen.go +++ b/cloudfunctions/v1/cloudfunctions-gen.go @@ -199,7 +199,7 @@ type ProjectsLocationsFunctionsService struct { // { // "log_type": "DATA_READ", // "exempted_members": [ -// "user:foo@gmail.com" +// "user:jose@example.com" // ] // }, // { @@ -211,7 +211,7 @@ type ProjectsLocationsFunctionsService struct { // ] // }, // { -// "service": "fooservice.googleapis.com" +// "service": "sampleservice.googleapis.com" // "audit_log_configs": [ // { // "log_type": "DATA_READ", @@ -219,7 +219,7 @@ type ProjectsLocationsFunctionsService struct { // { // "log_type": "DATA_WRITE", // "exempted_members": [ -// "user:bar@gmail.com" +// "user:aliya@example.com" // ] // } // ] @@ -227,11 +227,11 @@ type ProjectsLocationsFunctionsService struct { // ] // } // -// For fooservice, this policy enables DATA_READ, DATA_WRITE and +// For sampleservice, this policy enables DATA_READ, DATA_WRITE and // ADMIN_READ -// logging. It also exempts foo@gmail.com from DATA_READ logging, +// logging. It also exempts jose@example.com from DATA_READ logging, // and -// bar@gmail.com from DATA_WRITE logging. +// aliya@example.com from DATA_WRITE logging. type AuditConfig struct { // AuditLogConfigs: The configuration for logging of each type of // permission. @@ -277,7 +277,7 @@ func (s *AuditConfig) MarshalJSON() ([]byte, error) { // { // "log_type": "DATA_READ", // "exempted_members": [ -// "user:foo@gmail.com" +// "user:jose@example.com" // ] // }, // { @@ -288,7 +288,7 @@ func (s *AuditConfig) MarshalJSON() ([]byte, error) { // // This enables 'DATA_READ' and 'DATA_WRITE' logging, while // exempting -// foo@gmail.com from DATA_READ logging. +// jose@example.com from DATA_READ logging. type AuditLogConfig struct { // ExemptedMembers: Specifies the identities that do not cause logging // for this type of @@ -353,7 +353,7 @@ type Binding struct { // // * `user:{emailid}`: An email address that represents a specific // Google - // account. For example, `alice@gmail.com` . + // account. For example, `alice@example.com` . // // // * `serviceAccount:{emailid}`: An email address that represents a @@ -476,7 +476,6 @@ func (s *CallFunctionResponse) MarshalJSON() ([]byte, error) { // computation executed in // response to an event. It encapsulate function and triggers // configurations. -// LINT.IfChange type CloudFunction struct { // AvailableMemoryMb: The amount of memory in MB available for a // function. @@ -546,24 +545,21 @@ type CloudFunction struct { // See [the VPC // documentation](https://cloud.google.com/compute/docs/vpc) for // more information on connecting Cloud projects. - // - // This feature is currently in alpha, available only for whitelisted - // users. Network string `json:"network,omitempty"` - // Runtime: Required. The runtime in which the function is going to run. - // Choices: - // - // * `nodejs6`: Node.js 6 - // * `nodejs8`: Node.js 8 - // * `nodejs10`: Node.js 10 - // * `python37`: Python 3.7 - // * `go111`: Go 1.11 + // Runtime: The runtime in which to run the function. Required when + // deploying a new + // function, optional when updating an existing function. For a + // complete + // list of possible choices, see the + // [`gcloud` + // command + // reference](/sdk/gcloud/reference/functions/deploy#--runtime). Runtime string `json:"runtime,omitempty"` // ServiceAccountEmail: The email of the function's service account. If // empty, defaults to - // {project_id}@appspot.gserviceaccount.com. + // `{project_id}@appspot.gserviceaccount.com`. ServiceAccountEmail string `json:"serviceAccountEmail,omitempty"` // SourceArchiveUrl: The Google Cloud Storage URL, starting with gs://, @@ -607,9 +603,8 @@ type CloudFunction struct { // Function. UpdateTime string `json:"updateTime,omitempty"` - // VersionId: Output only. - // The version identifier of the Cloud Function. Each deployment - // attempt + // VersionId: Output only. The version identifier of the Cloud Function. + // Each deployment attempt // results in a new version of a function being created. VersionId int64 `json:"versionId,omitempty,string"` @@ -628,9 +623,6 @@ type CloudFunction struct { // See [the VPC // documentation](https://cloud.google.com/compute/docs/vpc) for // more information on connecting Cloud projects. - // - // This feature is currently in alpha, available only for whitelisted - // users. VpcConnector string `json:"vpcConnector,omitempty"` // ServerResponse contains the HTTP response code and headers from the @@ -1384,7 +1376,7 @@ type Policy struct { // // If no `etag` is provided in the call to `setIamPolicy`, then the // existing - // policy is overwritten blindly. + // policy is overwritten. Etag string `json:"etag,omitempty"` // Version: Deprecated. @@ -3127,6 +3119,18 @@ func (r *ProjectsLocationsFunctionsService) GetIamPolicy(resource string) *Proje return c } +// OptionsRequestedPolicyVersion sets the optional parameter +// "options.requestedPolicyVersion": The policy format version to be +// returned. +// Acceptable values are 0, 1, and 3. +// If the value is 0, or the field is omitted, policy format version 1 +// will be +// returned. +func (c *ProjectsLocationsFunctionsGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ProjectsLocationsFunctionsGetIamPolicyCall { + 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. @@ -3234,6 +3238,12 @@ func (c *ProjectsLocationsFunctionsGetIamPolicyCall) Do(opts ...googleapi.CallOp // "resource" // ], // "parameters": { + // "options.requestedPolicyVersion": { + // "description": "Optional. The policy format version to be returned.\nAcceptable values are 0, 1, and 3.\nIf the value is 0, or the field is omitted, policy format version 1 will be\nreturned.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, // "resource": { // "description": "REQUIRED: The resource for which the policy is being requested.\nSee the operation documentation for the appropriate value for this field.", // "location": "path", diff --git a/cloudfunctions/v1beta2/cloudfunctions-api.json b/cloudfunctions/v1beta2/cloudfunctions-api.json index b85d7c38112..8548716d75a 100644 --- a/cloudfunctions/v1beta2/cloudfunctions-api.json +++ b/cloudfunctions/v1beta2/cloudfunctions-api.json @@ -452,7 +452,7 @@ } } }, - "revision": "20190607", + "revision": "20190807", "rootUrl": "https://cloudfunctions.googleapis.com/", "schemas": { "CallFunctionRequest": { @@ -534,15 +534,15 @@ "type": "string" }, "network": { - "description": "The VPC Network that this cloud function can connect to. It can be\neither the fully-qualified URI, or the short name of the network resource.\nIf the short network name is used, the network must belong to the same\nproject. Otherwise, it must belong to a project within the same\norganization. The format of this field is either\n`projects/{project}/global/networks/{network}` or `{network}`, where\n{project} is a project id where the network is defined, and {network} is\nthe short name of the network.\n\nThis field is mutually exclusive with `vpc_connector` and will be replaced\nby it.\n\nSee [the VPC documentation](https://cloud.google.com/compute/docs/vpc) for\nmore information on connecting Cloud projects.\n\nThis feature is currently in alpha, available only for whitelisted users.", + "description": "The VPC Network that this cloud function can connect to. It can be\neither the fully-qualified URI, or the short name of the network resource.\nIf the short network name is used, the network must belong to the same\nproject. Otherwise, it must belong to a project within the same\norganization. The format of this field is either\n`projects/{project}/global/networks/{network}` or `{network}`, where\n{project} is a project id where the network is defined, and {network} is\nthe short name of the network.\n\nThis field is mutually exclusive with `vpc_connector` and will be replaced\nby it.\n\nSee [the VPC documentation](https://cloud.google.com/compute/docs/vpc) for\nmore information on connecting Cloud projects.", "type": "string" }, "runtime": { - "description": "Required. The runtime in which the function is going to run. Choices:\n\n* `nodejs6`: Node.js 6\n* `nodejs8`: Node.js 8\n* `nodejs10`: Node.js 10\n* `python37`: Python 3.7\n* `go111`: Go 1.11", + "description": "The runtime in which to run the function. Required when deploying a new\nfunction, optional when updating an existing function. For a complete\nlist of possible choices, see the\n[`gcloud` command\nreference](/sdk/gcloud/reference/functions/deploy#--runtime).", "type": "string" }, "serviceAccount": { - "description": "The email of the function's service account. If empty, defaults to\n{project_id}@appspot.gserviceaccount.com.", + "description": "The email of the function's service account. If empty, defaults to\n`{project_id}@appspot.gserviceaccount.com`.", "type": "string" }, "sourceArchiveUrl": { @@ -590,12 +590,12 @@ "type": "string" }, "versionId": { - "description": "Output only.\nThe version identifier of the Cloud Function. Each deployment attempt\nresults in a new version of a function being created.", + "description": "Output only. The version identifier of the Cloud Function. Each deployment attempt\nresults in a new version of a function being created.", "format": "int64", "type": "string" }, "vpcConnector": { - "description": "The VPC Network Connector that this cloud function can connect to. It can\nbe either the fully-qualified URI, or the short name of the network\nconnector resource. The format of this field is\n`projects/*/locations/*/connectors/*`\n\nThis field is mutually exclusive with `network` field and will eventually\nreplace it.\n\nSee [the VPC documentation](https://cloud.google.com/compute/docs/vpc) for\nmore information on connecting Cloud projects.\n\nThis feature is currently in alpha, available only for whitelisted users.", + "description": "The VPC Network Connector that this cloud function can connect to. It can\nbe either the fully-qualified URI, or the short name of the network\nconnector resource. The format of this field is\n`projects/*/locations/*/connectors/*`\n\nThis field is mutually exclusive with `network` field and will eventually\nreplace it.\n\nSee [the VPC documentation](https://cloud.google.com/compute/docs/vpc) for\nmore information on connecting Cloud projects.", "type": "string" } }, diff --git a/cloudfunctions/v1beta2/cloudfunctions-gen.go b/cloudfunctions/v1beta2/cloudfunctions-gen.go index 6619b74efdd..109441421c3 100644 --- a/cloudfunctions/v1beta2/cloudfunctions-gen.go +++ b/cloudfunctions/v1beta2/cloudfunctions-gen.go @@ -323,24 +323,21 @@ type CloudFunction struct { // See [the VPC // documentation](https://cloud.google.com/compute/docs/vpc) for // more information on connecting Cloud projects. - // - // This feature is currently in alpha, available only for whitelisted - // users. Network string `json:"network,omitempty"` - // Runtime: Required. The runtime in which the function is going to run. - // Choices: - // - // * `nodejs6`: Node.js 6 - // * `nodejs8`: Node.js 8 - // * `nodejs10`: Node.js 10 - // * `python37`: Python 3.7 - // * `go111`: Go 1.11 + // Runtime: The runtime in which to run the function. Required when + // deploying a new + // function, optional when updating an existing function. For a + // complete + // list of possible choices, see the + // [`gcloud` + // command + // reference](/sdk/gcloud/reference/functions/deploy#--runtime). Runtime string `json:"runtime,omitempty"` // ServiceAccount: The email of the function's service account. If // empty, defaults to - // {project_id}@appspot.gserviceaccount.com. + // `{project_id}@appspot.gserviceaccount.com`. ServiceAccount string `json:"serviceAccount,omitempty"` // SourceArchiveUrl: The Google Cloud Storage URL, starting with gs://, @@ -403,9 +400,8 @@ type CloudFunction struct { // Function. UpdateTime string `json:"updateTime,omitempty"` - // VersionId: Output only. - // The version identifier of the Cloud Function. Each deployment - // attempt + // VersionId: Output only. The version identifier of the Cloud Function. + // Each deployment attempt // results in a new version of a function being created. VersionId int64 `json:"versionId,omitempty,string"` @@ -424,9 +420,6 @@ type CloudFunction struct { // See [the VPC // documentation](https://cloud.google.com/compute/docs/vpc) for // more information on connecting Cloud projects. - // - // This feature is currently in alpha, available only for whitelisted - // users. VpcConnector string `json:"vpcConnector,omitempty"` // ServerResponse contains the HTTP response code and headers from the diff --git a/cloudtasks/v2beta2/cloudtasks-api.json b/cloudtasks/v2beta2/cloudtasks-api.json index 1930fce1eae..6a914ff0919 100644 --- a/cloudtasks/v2beta2/cloudtasks-api.json +++ b/cloudtasks/v2beta2/cloudtasks-api.json @@ -786,7 +786,7 @@ } } }, - "revision": "20190618", + "revision": "20190531", "rootUrl": "https://cloudtasks.googleapis.com/", "schemas": { "AcknowledgeTaskRequest": { @@ -1025,7 +1025,7 @@ "type": "string" }, "leaseDuration": { - "description": "Required.\n\nThe duration of the lease.\n\nEach task returned in the response will\nhave its schedule_time set to the current\ntime plus the `lease_duration`. The task is leased until its\nschedule_time; thus, the task will not be\nreturned to another LeaseTasks call\nbefore its schedule_time.\n\n\nAfter the worker has successfully finished the work associated\nwith the task, the worker must call via\nAcknowledgeTask before the\nschedule_time. Otherwise the task will be\nreturned to a later LeaseTasks call so\nthat another worker can retry it.\n\nThe maximum lease duration is 1 week.\n`lease_duration` will be truncated to the nearest second.", + "description": "\nAfter the worker has successfully finished the work associated\nwith the task, the worker must call via\nAcknowledgeTask before the\nschedule_time. Otherwise the task will be\nreturned to a later LeaseTasks call so\nthat another worker can retry it.\n\nThe maximum lease duration is 1 week.\n`lease_duration` will be truncated to the nearest second.", "format": "google-duration", "type": "string" }, diff --git a/cloudtasks/v2beta2/cloudtasks-gen.go b/cloudtasks/v2beta2/cloudtasks-gen.go index 2ca9194fe32..48c29eb974d 100644 --- a/cloudtasks/v2beta2/cloudtasks-gen.go +++ b/cloudtasks/v2beta2/cloudtasks-gen.go @@ -1088,19 +1088,7 @@ type LeaseTasksRequest struct { // tag will be displayed as empty in Cloud Tasks. Filter string `json:"filter,omitempty"` - // LeaseDuration: Required. - // - // The duration of the lease. - // - // Each task returned in the response will - // have its schedule_time set to the current - // time plus the `lease_duration`. The task is leased until - // its - // schedule_time; thus, the task will not be - // returned to another LeaseTasks call - // before its schedule_time. - // - // + // LeaseDuration: // After the worker has successfully finished the work associated // with the task, the worker must call via // AcknowledgeTask before the